@coda-console/protocol 2.2.0 → 2.3.0

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.
@@ -5,7 +5,7 @@
5
5
  2.2.0 按[第 7 步方案](https://github.com/coda-console/coda/issues/2078#issuecomment-6559423071)补齐流程接入:
6
6
  **无资源或一个资源的一单位**,可独占所申请资源;多单位、多资源原子申请仍未开放。
7
7
 
8
- 协议对象版本 `protocolVersion: 1`、本目录的 v1、npm 包版本 2.2.0 和插件清单的 v2 分开演进。
8
+ 协议对象版本 `protocolVersion: 1`、本目录的 v1、npm 包版本 2.3.0 和插件清单的 v2 分开演进。
9
9
  本次只增加契约;不改变 `contributes.executors`,也不宣称 host、scheduler、空间引用解析或账本接口已经实现。
10
10
 
11
11
  ## 定义与登记
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coda-console/protocol",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "Coda 的协议:插件清单的类型(JSON Schema)、通用校验器、流程方言与 Agent 接入协议",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -17,8 +17,10 @@
17
17
  "description": "在 commit(默认本次运行的)上启动项目里所选种类(kind,逗号分隔)的全部流程,各给它声明了的 inputs(JSON 对象),等它们都结束;有一个失败就失败"},
18
18
  "workflow-kinds": {"params": ["commit"],
19
19
  "description": "项目在这个提交上有没有各种类可调用的流程(项目自己的和启用插件的),各是布尔值"},
20
+ "expire-tool-details": {"params": ["olderThan"],
21
+ "description": "运行所属项目的会话里,已结束、最后活动距今超过 olderThan(ISO 8601 时长,如 P7D)的工具调用(含后台任务、用户自己的命令,不含原生子 Agent 卡片),删除完整输入输出,只留卡片摘要;删除不可恢复"},
20
22
  "cold-store": {"params": ["anyAfter", "archivedAfter"],
21
- "description": "运行所属项目的会话里,已结束、超过 anyAfter(根会话已归档的超过 archivedAfter)没有更新的工具调用,详情移到冷文件"},
23
+ "description": "运行所属项目的会话里,已结束、超过 anyAfter(根会话已归档的超过 archivedAfter)没有更新的工具调用,详情移到冷文件;已被 expire-tool-details 取代,下一个主版本删除"},
22
24
  "trim-builds": {"params": ["idleAfter"],
23
25
  "description": "运行所属项目里,会话没有归档、空闲满 idleAfter 的工作树清掉构建产物"},
24
26
  "sweep-uploads": {"params": ["olderThan"],