Skip to content

feat(core): built-in /dag-init and /dag-auto commands - #309

Merged
LeXwDeX merged 6 commits into
devfrom
feat/builtin-dag-commands
Aug 17, 2026
Merged

feat(core): built-in /dag-init and /dag-auto commands#309
LeXwDeX merged 6 commits into
devfrom
feat/builtin-dag-commands

Conversation

@LeXwDeX

@LeXwDeX LeXwDeX commented Aug 17, 2026

Copy link
Copy Markdown
Owner

Closes #308

内容

单体开箱即用的最后一步:/dag-init/dag-auto 编译进二进制(DagFlowContent 同款通道),用户命令文件同名覆盖仍生效。

  • packages/core/src/plugin/command/dag-init.txt:平台握手——仅 GitHub/GitLab(含自建,其他 host 硬拒绝);origin 默认、origin≠upstream 一问记录;探针 issue 读/push/CI/rulesets;模板可用性(含 builtin 兜底);全过才写 .opencode/dag-init.json(唯一本地状态,幂等刷新)
  • packages/core/src/plugin/command/dag-auto.txt:超流入口——分类器纪律内化(不调用任何 skill);宽泛请求 → ultra-flow-route 六积木+五道分级检查点(verdict continue/replan,replan ≤3 回环);窄请求 → 域路线单积木;spec 一次性确认门(full-auto 跳过);product-dpc 显式清单;计划序合并(合并门前 rebase+重 watch CI);发布默认人工门;监听只认 issue-closed/PR-merged/CI checks;远端真相重入对账
  • 注册:core command.ts(导入/导出/draft.update)+ opencode command/index.ts(Default.DAG_INIT/DAG_AUTO + 登记)
  • 测试:core command.test.ts 断言注册+内容锚点;opencode command.test.ts 断言注册表条目

验证

  • packages/core:bun typecheck ✅,bun test test/plugin/command.test.ts 21/21 ✅
  • packages/opencode:bun typecheck ✅,bun test test/command/command.test.ts 8/8 ✅

配套:模板侧 ultra-flow-route/release-route 见 LeXwDeX/opencode-dag-config#12

release: goal-loop silent-stall fixes (GOAL-FP-01-17/18/19)
release: issue #285 durable scan boundary + issue #286 hook field drift
release: memory config — remove dead topic_limit_floor knob
feat(dag): harness batch — parallel writers, REJECT checkpoints, union-arg tolerance
fix(dag): live-test fixes — synthesize final-gate binding and review gate wording
Ship the platform handshake and ultra-flow entry as built-in commands so a
binary-only install runs the full dag pipeline; user command files still
override by name. /dag-init probes GitHub/GitLab (self-hosted included)
permissions and writes the connection config. /dag-auto internalizes the
stage-classifier discipline and drives the six-block ultra-flow with
direction checkpoints, spec confirmation gate, ordered merge, and remote
reconciliation.
@LeXwDeX
LeXwDeX merged commit 16f9add into dev Aug 17, 2026
5 checks passed
@LeXwDeX
LeXwDeX deleted the feat/builtin-dag-commands branch August 17, 2026 01:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant