agentic-flow-kit 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/package.json +1 -1
- package/src/doctor.mjs +13 -6
- package/templates/_agents/cache/kb-index.json +1 -1
package/README.md
CHANGED
|
@@ -62,3 +62,4 @@ modules/gates/ 可选门禁模块(dotnet-ca:Clean Architecture 参考
|
|
|
62
62
|
- [x] v0.2.0 已发布:npm view agentic-flow-kit(npx agentic-flow-kit init 即用;默认镜像源用户需等 npmmirror 同步或 --registry npmjs)
|
|
63
63
|
- [x] v0.2.1:Shipyard 回流第二笔(模板引用去死链 + owned 台账记账策略:add-gate 接线刷新 + sync 盘面自愈)+ 全项目审查修复(量化台账 fail-loud / 生成器锚点与 ENOENT 守卫 / sync 跳过件持续报告 / P4 清账 / metrics glob 词表收口)——已发布
|
|
64
64
|
- [x] v0.3.0:init 交互升级(序号菜单 + ANSI 色彩降级 + ts/js 技术栈别名归一 node)+ AGENTS.md 骨架探测补齐(已存在无标记时文末追加,原内容保留)+ wiki 模板预置 7 主题内容目录 + 关单 verify 固定编排(npm test + check-loop 一键过门,非绿不关单)+ workflow 看板纸墨视觉改版
|
|
65
|
+
- [x] v0.3.1:doctor 修复——Windows 无 sh 环境(PowerShell)把 sh ENOENT 误报成 check-loop hard-block(探测分流:明示「未跑勿当作通过」,git 钩子门禁不受影响)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentic-flow-kit",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "AI-Native 闭环工作流 + wiki 知识层脚手架——flow-kit init 一条命令为新项目装好 .agents 工作流引擎(阶段命令/角色契约/门禁钩子/kb 检索/看板/规则面预算)+ workflow 文档闭环 + wiki 知识库,装完自包含、零运行时依赖",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
package/src/doctor.mjs
CHANGED
|
@@ -127,13 +127,20 @@ export function doctor(args, pkgRoot) {
|
|
|
127
127
|
else add('WARN', `delegations 台账结构漂移——${String(agg.stderr || agg.stdout || '').split('\n')[0]}`);
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
// 7. check-loop
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
130
|
+
// 7. check-loop——先探 sh 可用性(对齐 run-tests.mjs 先例):Windows PowerShell 常无 sh,
|
|
131
|
+
// ENOENT 曾被吞进 hard-block 分支报成空原因假警报(incident 2026-09-24-doctor-sh-enoent)。
|
|
132
|
+
// git 钩子门禁不受此影响——git 以自带 sh 执行钩子,与用户 PATH 无关。
|
|
133
|
+
const shProbe = spawnSync('sh', ['-c', 'true'], { encoding: 'utf8' });
|
|
134
|
+
if (shProbe.status !== 0) {
|
|
135
|
+
add('WARN', '环境无 sh——check-loop 未跑,勿当作通过;装 Git Bash / WSL 后重跑 doctor(git 钩子门禁不受影响,git 以自带 sh 执行)');
|
|
135
136
|
} else {
|
|
136
|
-
|
|
137
|
+
const cl = spawnSync('sh', ['.agents/scripts/check-loop.sh'], { cwd: target, encoding: 'utf8' });
|
|
138
|
+
if (cl.status === 0) {
|
|
139
|
+
const warnTxt = String(cl.stderr || '').trim();
|
|
140
|
+
add('PASS', `check-loop 干净${warnTxt ? `(${warnTxt.split('\n').filter((l) => l.includes('WARN')).length} 条 advisory 警告)` : ''}`);
|
|
141
|
+
} else {
|
|
142
|
+
add('FAIL', `check-loop 有 hard-block:\n${String(cl.stderr || '').split('\n').slice(0, 8).join('\n')}`);
|
|
143
|
+
}
|
|
137
144
|
}
|
|
138
145
|
|
|
139
146
|
// 8. 看板端口(信息级)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"fp":"b779761db958797b","files":{"/tmp/kb-search-test-
|
|
1
|
+
{"fp":"b779761db958797b","files":{"/tmp/kb-search-test-T8zWVC::workflow/intents/2026-09-21-bbb.md":{"st":[1790250003552.587,270],"kind":"wf","meta":{"状态":"approved","级别":"L1","日期":"2026-09-21","模块":"pipeline"},"title":"乙需求","lines":[[1,"(frontmatter)","---"],[2,"(frontmatter)","状态: approved"],[3,"(frontmatter)","级别: L1"],[4,"(frontmatter)","日期: 2026-09-21"],[5,"(frontmatter)","模块: pipeline"],[6,"(frontmatter)","---"],[7,"(标题)","# INTENT — 乙需求"],[9,"目标","## 目标"],[10,"目标","- 统一口径:编码模板与分类层级,冲突处理见 A/B乙"],[11,"目标",""]]},"/tmp/kb-search-test-T8zWVC::workflow/plans/2026-09-20-ccc.md":{"st":[1790250003552.587,200],"kind":"wf","meta":{"状态":"approved","级别":"L1","模块":"purchase"},"title":"丙计划","lines":[[1,"(frontmatter)","---"],[2,"(frontmatter)","状态: approved"],[3,"(frontmatter)","级别: L1"],[4,"(frontmatter)","模块: purchase"],[5,"(frontmatter)","---"],[6,"(标题)","# PLAN — 丙计划"],[8,"目标","## 目标"],[9,"目标","- 只讲编码模板,不提另一个词"],[10,"目标",""]]},"/tmp/kb-search-test-T8zWVC::workflow/incidents/2026-09-01-aaa.md":{"st":[1790250003552.587,270],"kind":"wf","meta":{"状态":"closed","级别":"L2","发现":"2026-09-01","模块":"material"},"title":"甲事故","lines":[[1,"(frontmatter)","---"],[2,"(frontmatter)","状态: closed"],[3,"(frontmatter)","级别: L2"],[4,"(frontmatter)","发现: 2026-09-01"],[5,"(frontmatter)","模块: material"],[6,"(frontmatter)","---"],[7,"(标题)","# INCIDENT — 甲事故"],[9,"目标","## 目标"],[10,"目标","- 统一口径:编码模板与分类层级,冲突处理见 A/B甲"],[11,"目标",""]]},"/tmp/kb-search-test-T8zWVC::wiki/测试主题/说明.md":{"st":[1790250003552.587,47],"kind":"wiki","lines":[[1,"# 说明"],[2,""],[3,"编码模板的领域知识条目。"],[4,""]]}}}
|