openfeel 1.5.15 → 1.5.16

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 CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  OpenFeel 是一个 TypeScript CLI 工具,为 AI Agent 开发提供端到端的流程治理。核心理念:**「提示词瘦身,流程入工具」** —— Agent 不靠读长文本理解流程,而是通过 `flow.json` 获取当前状态和下一步指令。
12
12
 
13
- > 📦 **最新版本 v1.5.15**(owner 缺省链修复) — `.openfeel/.info.json` 里持久化的 `"user": "unknown"` 不再阻断回落:`getUserName` 把 `unknown`(大小写/空白不敏感)与空串视为未解析,继续读 `git config user.name`,`feel_req claim` 重新可以不带 `--owner`;`ensureInfoJson` 会在 git 身份可用时自愈历史 `unknown` 文件。版本能力概览见 [docs/VERSIONS.md](docs/VERSIONS.md)。
13
+ > 📦 **最新版本 v1.5.16**(一致性收尾) — ① `attempt` 现在同步 `checkpoints.exec.attempts`,不再与顶层 `attempts` 漂移;② `flow ops list` 对 **done** op 不再报「模板未填充」告警(`fill` 仍如实反映填充度);③ 文档明确:`req claim` 只写 owner/claimed_at 不改状态(用 `req advance`)、第 4 类 shell 判定为**非阻断告警**且支持 `OPENFEEL_SHELL_ALLOW` 整条命令白名单、删除 done op 需 `--force`。版本能力概览见 [docs/VERSIONS.md](docs/VERSIONS.md)。
14
14
 
15
15
  > 📌 本项目基于 [AI_Prompt](https://github.com/Liuary/AI_Prompt) 开发,参考了 [OpenSpec](https://github.com/Fission-AI/OpenSpec) 等工具的设计思路。
16
16
 
@@ -73,6 +73,7 @@ openfeel setup --tools dsh # 2. 部署到 DSH profile(默认全部;可 --
73
73
  - 前提:DSH `0.2.0-rc.2`、Node ≥ 20.17、存在 DSH profile、全局 `openfeel` 可用。
74
74
  - 升级:`npm i -g openfeel@latest` → 重启 DSH;`link:` 指向同一路径,随包更新。
75
75
  - 开发态可直接 `link:` 仓库 `dsh/`;详见 [dsh/README.md](dsh/README.md) 与 [dsh/ADAPTER.md](dsh/ADAPTER.md)。
76
+ - 写入门禁第 4 类(无法静态判定写入目标)默认 **告警放行、不阻断**,只落审计 + 一行 stderr(不消耗模型轮次);已知安全命令可用 `OPENFEEL_SHELL_ALLOW` 白名单(`||` 分隔,折叠空白后**整条命令全等**,`strict` 档同样生效),例如 `OPENFEEL_SHELL_ALLOW="Build.bat all || node Tools/gen-typings.js"`。
76
77
  - `openfeel update --tools dsh` 不适用(DSH 是全局部署)。
77
78
 
78
79
  ## 快速迭代模式(v1.1.7 起)
@@ -1 +1 @@
1
- {"version":3,"file":"flow.d.ts","sourceRoot":"","sources":["../../src/commands/flow.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,OAAO,EAAE,WAAW,EAAyO,MAAM,yBAAyB,CAAC;AA+B7R,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAy3F1D;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,aAAa,EAAE,OAAO,EAAE,iBAAiB,EAAE,OAAO,GAAG,QAAQ,GAAG,MAAM,CAE9G;AAwHD;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAwCzE"}
1
+ {"version":3,"file":"flow.d.ts","sourceRoot":"","sources":["../../src/commands/flow.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,OAAO,EAAE,WAAW,EAAyO,MAAM,yBAAyB,CAAC;AA+B7R,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA43F1D;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,aAAa,EAAE,OAAO,EAAE,iBAAiB,EAAE,OAAO,GAAG,QAAQ,GAAG,MAAM,CAE9G;AAwHD;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAwCzE"}
@@ -1482,7 +1482,9 @@ export function registerFlowCommand(program) {
1482
1482
  title: it.title,
1483
1483
  state: it.state,
1484
1484
  fill: it.fill,
1485
- warning: it.fill === 'empty' ? t('flow.ops.emptyWarningTmpl', lang, { opId: it.opId }) : null,
1485
+ // v1.5.16 / REQ-024:done/failed 已无可执行动作,空模板告警只制造噪声 → 只对其它状态提示;
1486
+ // `fill` 仍为真实模板填充度(不把未填充伪装成已填充)。
1487
+ warning: it.fill === 'empty' && it.state !== 'done' && it.state !== 'failed' ? t('flow.ops.emptyWarningTmpl', lang, { opId: it.opId }) : null,
1486
1488
  }));
1487
1489
  console.log(JSON.stringify({ schemaVersion: 1, ops }, null, 2));
1488
1490
  return;
@@ -1497,8 +1499,9 @@ export function registerFlowCommand(program) {
1497
1499
  console.log(label);
1498
1500
  for (const it of list) {
1499
1501
  console.log(` ${it.stage}.${it.opId} [${it.state}] (${it.fill}) ${it.title}`);
1500
- // 空模板 warning(draft 亦提示,引导 publish 前先填充)
1501
- if (it.fill === 'empty') {
1502
+ // 空模板 warning(draft/pending 等**可推进**状态提示,引导 publish 前先填充;
1503
+ // done/failed 已是终态,不再提示——v1.5.16 / REQ-024)
1504
+ if (it.fill === 'empty' && it.state !== 'done' && it.state !== 'failed') {
1502
1505
  console.log(t('flow.ops.emptyWarningTmpl', lang, { opId: it.opId }));
1503
1506
  }
1504
1507
  }