@coda-console/protocol 2.3.0 → 2.4.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.
|
|
8
|
+
协议对象版本 `protocolVersion: 1`、本目录的 v1、npm 包版本 2.4.0 和插件清单的 v2 分开演进。
|
|
9
9
|
本次只增加契约;不改变 `contributes.executors`,也不宣称 host、scheduler、空间引用解析或账本接口已经实现。
|
|
10
10
|
|
|
11
11
|
## 定义与登记
|
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
|
|
5
|
+
"description": "插件目录里的 HTML,客户端在沙箱里开:在哪常驻(side 会话旁、page 一页),图标,接管打开的引用种类(handles,像 VS Code 的自定义编辑器),读数(readout),只给哪种工作位置的会话(checkout)与占位(frame:document 由客户端整页滚动、横向锁死,canvas 铺满视图、自己滚动)。",
|
|
6
6
|
"type": "array",
|
|
7
7
|
"maxItems": 10,
|
|
8
8
|
"items": {
|
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
"items": {"$ref": "common.json#/$defs/id"}
|
|
22
22
|
},
|
|
23
23
|
"readout": {"description": "读数:workflow-runs、machines、changes", "enum": ["workflow-runs", "machines", "changes"]},
|
|
24
|
-
"checkout": {"description": "只给哪种工作位置的会话:worktree", "enum": ["worktree"]}
|
|
24
|
+
"checkout": {"description": "只给哪种工作位置的会话:worktree", "enum": ["worktree"]},
|
|
25
|
+
"frame": {"description": "它怎么占位:document 由客户端整页滚动、横向锁死;canvas 铺满视图、自己滚动;不写暂与 canvas 相同", "enum": ["document", "canvas"]}
|
|
25
26
|
},
|
|
26
27
|
"required": ["id", "title", "entry"],
|
|
27
28
|
"additionalProperties": false
|