@coda-console/protocol 5.9.0 → 5.10.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 +4 -0
- package/package.json +1 -1
- package/schemas/plugin/views.json +9 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
按 semver。协议自己的大版本写在协议名里(如 `coda/run@1`),与 npm 包版本、插件清单的 v2 独立;更早的版本见 git 历史。
|
|
4
4
|
|
|
5
|
+
## 5.10.0 — 2026-11-10
|
|
6
|
+
|
|
7
|
+
- 视图(`contributes.views` 的每项)加可选的 `provides`:作为附件来源时能交回的 part 类型,与 `coda/session@1` status 的 `accepts` 的键同一套,现在只有 `audio`。写了的视图出现在外部会话输入框的「+」里,只列会话 accepts 里有的类型;交回的方式由 Coda 客户端的视图桥定(Coda #2398)。
|
|
8
|
+
|
|
5
9
|
## 5.9.0 — 2026-11-10
|
|
6
10
|
|
|
7
11
|
- 流程方言的脚本步骤加 `coda:source`:这一步在哪个工作副本目录里跑(本机绝对路径,可写 FEEL 表达式),只用于 `coda:checkout="false"` 的步骤,须与它同时写。本机就地跑、不检出;交给别的执行环境时,调用方给这个目录所在的工作副本拍快照(含未提交、未跟踪的改动,不含忽略的文件),对方检出快照并在对应的子目录里跑,用的是 `coda/executor@1` 的 `execute` 输入里已有的 `source.snapshot` 与 `workingDirectory`,执行器协议不改(Coda #2078 B2 前置)。
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://coda.pub/schemas/plugin/v2/views.json",
|
|
4
4
|
"title": "contributes.views:客户端为插件打开的页面",
|
|
5
|
-
"description": "插件目录里的 HTML,客户端在沙箱里开:在哪常驻(side 会话旁、page 一页),图标,接管打开的引用种类(handles,像 VS Code 的自定义编辑器),读数(readout),只给哪种工作位置的会话(checkout)与占位(frame:document 由客户端整页滚动、横向锁死,canvas
|
|
5
|
+
"description": "插件目录里的 HTML,客户端在沙箱里开:在哪常驻(side 会话旁、page 一页),图标,接管打开的引用种类(handles,像 VS Code 的自定义编辑器),读数(readout),只给哪种工作位置的会话(checkout)与占位(frame:document 由客户端整页滚动、横向锁死,canvas 铺满视图、自己滚动),以及作为附件来源能交回的内容(provides)。",
|
|
6
6
|
"type": "array",
|
|
7
7
|
"maxItems": 10,
|
|
8
8
|
"items": {
|
|
@@ -22,7 +22,14 @@
|
|
|
22
22
|
},
|
|
23
23
|
"readout": {"description": "读数:workflow-runs、machines、changes", "enum": ["workflow-runs", "machines", "changes"]},
|
|
24
24
|
"checkout": {"description": "只给哪种工作位置的会话:worktree", "enum": ["worktree"]},
|
|
25
|
-
"frame": {"description": "它怎么占位:document 由客户端整页滚动、横向锁死;canvas 铺满视图、自己滚动;不写暂与 canvas 相同", "enum": ["document", "canvas"]}
|
|
25
|
+
"frame": {"description": "它怎么占位:document 由客户端整页滚动、横向锁死;canvas 铺满视图、自己滚动;不写暂与 canvas 相同", "enum": ["document", "canvas"]},
|
|
26
|
+
"provides": {
|
|
27
|
+
"description": "作为附件来源时能交回的 part 类型,与会话 status.accepts 的键同一套(以后 accepts 加类型时两处一起加);写了的视图出现在外部会话输入框的「+」里,只列会话 accepts 里有的类型",
|
|
28
|
+
"type": "array",
|
|
29
|
+
"minItems": 1,
|
|
30
|
+
"uniqueItems": true,
|
|
31
|
+
"items": {"enum": ["audio"]}
|
|
32
|
+
}
|
|
26
33
|
},
|
|
27
34
|
"required": ["id", "title", "entry"],
|
|
28
35
|
"additionalProperties": false
|