@coda-console/protocol 4.0.0 → 4.1.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  按 semver。协议自己的大版本写在协议名里(如 `coda/run@1`),与 npm 包版本、插件清单的 v2 独立;更早的版本见 git 历史。
4
4
 
5
+ ## 4.1.0 — 2026-11-09
6
+
7
+ - 流程属性 `coda:autoRun`:事件(如 PR)来时,会话与目录都没设「自动运行」的,按它决定起不起运行:`true`、`false`,或插件的一项设置 `=vars.<插件>.<设置>`(如 `=vars.review.autoRun`;事件来时还没有运行,别的都读不到,所以只收这种写法),不写为起。手动发起不受它影响(Coda #2303 后续:在插件设置里关掉 PR 生命流程的自动运行)。
8
+
5
9
  ## 4.0.0 — 2026-11-09
6
10
 
7
11
  不兼容变更:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coda-console/protocol",
3
- "version": "4.0.0",
3
+ "version": "4.1.0",
4
4
  "description": "Coda 的协议:插件清单的类型(JSON Schema)、通用校验器、协议定义与调用信封、流程方言与 Agent 接入协议",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -10,7 +10,7 @@
10
10
  "name": "ProcessProperties",
11
11
  "isAbstract": true,
12
12
  "extends": ["bpmn:Process"],
13
- "description": "流程本身:concurrency 并发、key 未结束运行的业务键、deploy 只跑默认分支的提交、title 运行在卡片上的名字(同 GitHub 的 run-name)、kind 种类(见 dialect.json 的 kinds)、dispatch 能否手动发起、inline Agent 用 workflow_run 发起时等它结束再回答、subagents 为 false 时会话 Agent 的原生子 Agent 不能发起、agents 生命周期流程跟随哪些 Agent 的会话(ID,逗号或空格分隔,不写是全部)",
13
+ "description": "流程本身:concurrency 并发、key 未结束运行的业务键、deploy 只跑默认分支的提交、title 运行在卡片上的名字(同 GitHub 的 run-name)、kind 种类(见 dialect.json 的 kinds)、dispatch 能否手动发起、inline Agent 用 workflow_run 发起时等它结束再回答、subagents 为 false 时会话 Agent 的原生子 Agent 不能发起、agents 生命周期流程跟随哪些 Agent 的会话(ID,逗号或空格分隔,不写是全部)、autoRun 事件(如 PR)来时会话与目录都没设「自动运行」的,按它决定起不起运行:true、false 或 =vars.<插件>.<设置>(不写为起)",
14
14
  "properties": [
15
15
  {"name": "concurrency", "isAttr": true, "type": "String"},
16
16
  {"name": "key", "isAttr": true, "type": "String"},
@@ -20,7 +20,8 @@
20
20
  {"name": "dispatch", "isAttr": true, "type": "Boolean"},
21
21
  {"name": "inline", "isAttr": true, "type": "Boolean"},
22
22
  {"name": "subagents", "isAttr": true, "type": "Boolean"},
23
- {"name": "agents", "isAttr": true, "type": "String"}
23
+ {"name": "agents", "isAttr": true, "type": "String"},
24
+ {"name": "autoRun", "isAttr": true, "type": "String"}
24
25
  ]
25
26
  },
26
27
  {
@@ -12,7 +12,9 @@
12
12
  "title": {"type": "string", "pattern": "\\S", "maxLength": 200, "x-feel": true, "description": "coda:title 须为 1–200 个字符"},
13
13
  "kind": {"enum": ["deploy", "preview", "release", "check", "premerge", "prebuild"], "description": "coda:kind 只能是 deploy、preview、release、check、premerge、prebuild"},
14
14
  "agents": {"type": "string", "pattern": "^[\\s,]*[a-z][a-z0-9-]{0,39}(?:[\\s,]+[a-z][a-z0-9-]{0,39})*[\\s,]*$",
15
- "description": "coda:agents 写 Agent 的 ID,用逗号或空格分隔(小写字母、数字和「-」,以字母开头,至多 40 个字符),不能为空"}
15
+ "description": "coda:agents 写 Agent 的 ID,用逗号或空格分隔(小写字母、数字和「-」,以字母开头,至多 40 个字符),不能为空"},
16
+ "autoRun": {"type": "string", "anyOf": [{"enum": ["true", "false"]}, {"pattern": "^\\s*=\\s*vars(\\.[A-Za-z_][A-Za-z0-9_-]*)+\\s*$"}], "x-feel": {"names": ["vars"]},
17
+ "description": "coda:autoRun 须为 true、false 或 =vars.<插件>.<设置>:事件来时还没有运行,能读的只有插件设置"}
16
18
  }
17
19
  },
18
20
  "ScriptTaskProperties": {