Repository navigation
docs(console): add workflow variable autocomplete prototype - #3706
Open
AbigailDeng wants to merge 3 commits into
Open
AbigailDeng wants to merge 3 commits into
AbigailDeng wants to merge 3 commits into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## dev #3706 +/- ##
==========================================
- Coverage 83.43% 83.42% -0.02%
==========================================
Files 1685 1685
Lines 193217 193217
Branches 23239 23239
==========================================
- Hits 161218 161196 -22
- Misses 21188 21205 +17
- Partials 10811 10816 +5
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题与结果
填写 workflow 参数时,用户需要记住
${steps...}的写法,也看不到当前有哪些上游节点和输出字段可用。本 PR 提供一个可直接在本地体验的独立交互原型:输入${steps后,在当前输入框下面选择上游节点,再选择完整输出或已知字段,自动补全引用。这是设计评审用原型,正式 workflow 编辑器尚未接入。本页使用明确标注的示例数据;“应用到示例”仅修改页面内存,刷新后重置,不保存或执行真实 workflow。
交互与范围
.output,不猜测字段。仅新增两个文件:
apps/aevatar-console-web/docs/prototypes/2026-10-19-workflow-output-picker/index.htmlapps/aevatar-console-web/docs/superpowers/specs/2026-10-19-workflow-output-picker-design.md不修改产品路由、后端、API、认证、依赖或运行数据。正式接入仍需复用现有 workflow document 图逻辑,并覆盖生产编辑器中的各类参数与变量作用域。中文输入法组合确认仍待人工体验。
本地体验
本机服务已运行在 http://127.0.0.1:58147/。其他 checkout 可从本分支仓库根目录启动:
关联 worktree 启动前先执行本机环境同步规则。该静态页面无需 pnpm、后端或登录,不涉及 OAuth。若端口已被此原型占用可直接复用;否则使用空闲端口并一致打开该端口。
document_id输入框输入${steps,选择prepare_document,再选document_id,确认补成${steps.prepare_document.json.document_id}。完整说明见设计与本地体验文档。
验证
node --check <从 HTML 提取的临时脚本.js>:通过。bash tools/docs/lint.sh:通过,94 files,0 errors。git diff --check与git diff --cached --check:通过;两个新增文件的 UTF-8、末尾换行与行尾空白检查通过。/Users/xiezixin/Documents/work/aevatar/apps/aevatar-console-web/node_modules/.bin/biome lint --no-errors-on-unmatched --reporter=summary docs/prototypes/2026-10-19-workflow-output-picker/index.html docs/superpowers/specs/2026-10-19-workflow-output-picker-design.md:exit 0,0 errors;保留 5 条noImportantStyleswarnings 与 31 条useTemplateinfos。worktree 本身未安装 Biome,未为原型安装依赖。未修改生产 TypeScript、构建或依赖,因此未运行产品 tsc/build,未新增或运行产品单元测试;完整前端/仓库测试套件、集成、E2E 和 smoke 套件均未运行。原型体验不构成真实 API、保存或执行验证。
Documentation
设计说明新增本地启动命令与体验步骤,区分原型覆盖和正式接入目标,并记录已验证行为、引用替换限制与尚未验证的中文输入法行为。根项目文档无需宣称产品功能已经上线。
Design baseline declaration
apps/aevatar-console-web/docs/design-baselines/workflow-activity-vnext/aevatar-workflow-activity-vnext.excalidraw30e74d7b410ae72c4c91432355436679033679c54c10b1702908435b001577de(verified)apps/aevatar-console-web/docs/superpowers/specs/2026-08-04-workflow-activity-vnext-design.mdapps/aevatar-console-web/docs/superpowers/specs/2026-08-04-workflow-activity-vnext-user-paths.md