@coda-console/protocol 5.10.0 → 5.12.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 +10 -1
- package/README.md +14 -4
- package/docs/agent-protocol.md +10 -7
- package/package.json +5 -3
- package/schemas/agent/failure.json +12 -1
- package/schemas/plugin/plugin.json +2 -0
- package/stable/manifest.json +171 -0
- package/stable/view.json +100 -0
- package/workflow/actions.json +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
# 变更记录
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
版本规矩见 README 的[「版本」一节](README.md#版本)。协议自己的大版本写在协议名里(如 `coda/run@1`),与 npm 包版本、插件清单的 v2 独立;更早的版本见 git 历史。
|
|
4
|
+
|
|
5
|
+
## 5.12.0 — 2026-11-13
|
|
6
|
+
|
|
7
|
+
- 圈定第三方稳定面:随包发布 53 条清单路径及页面接口、外观清单,各从 revision 1 起;增加只增不减、schema 路径可达与第三方清单样本校验,PR 对目标分支、发布前对 npm latest 检查。补充清单的 displayName、version;稳定面只增不减,内部面删改不升主版本(coda#2463)。
|
|
8
|
+
|
|
9
|
+
## 5.11.0 — 2026-11-11
|
|
10
|
+
|
|
11
|
+
- Agent 的额度不足标记(`failure.json` 的 `kind: quota_exhausted`)加可选的 `resetAt`:上游给出的额度预计重置时间,UTC ISO 8601 字符串,以 `Z` 结尾,可带 1 到 9 位小数秒;没有确切时间时省略。校验拒绝非法格式;这是兼容扩展,旧发送端可不写、旧接收端可忽略,`service_unavailable` 的约束与语义不变。
|
|
12
|
+
- 流程动作加 `send-session`(参数 `text`、`key`、`session`):在指定会话(默认运行所属的)里提交普通消息,和用户发的一样开始一轮,供额度重置后发送「继续」;同一个 key 只发一次,已归档就不发。
|
|
4
13
|
|
|
5
14
|
## 5.10.0 — 2026-11-10
|
|
6
15
|
|
package/README.md
CHANGED
|
@@ -144,11 +144,21 @@ agentValueProblem('review.json', review, '工具的审核');
|
|
|
144
144
|
|
|
145
145
|
## 版本
|
|
146
146
|
|
|
147
|
-
|
|
147
|
+
Coda 与检查包都钉一个确切版本。对第三方的兼容承诺只覆盖**稳定面**:第三方实际在用的清单键和页面接口,定义在随 npm 包发布的 [`stable/manifest.json`](stable/manifest.json) 与 [`stable/view.json`](stable/view.json)。稳定面只增不减;要改变或删除承诺,先标弃用,保留过渡时间,不能直接移除定义或破坏现有用法。
|
|
148
148
|
|
|
149
|
-
-
|
|
150
|
-
|
|
151
|
-
|
|
149
|
+
其余都是**内部面**,不承诺兼容,删改升次版本。包括未列入稳定面的清单键、扩展点、模块的 `coda` 对象、`CODA_*` 环境变量、Agent 接入协议、协议定义与流程方言,以及 `coda-view://service/…`。新增可选字段、新类型、放宽限制升次版本。主版本只留给稳定面的不兼容改动;按稳定面只增不减的规矩,这不该发生,真要发生须先标弃用、留过渡时间。协议名里的版本(如 `coda/run@1`)与 npm 包版本、schema 的 `$id` 独立。
|
|
150
|
+
|
|
151
|
+
两份数据各有从 1 起的整数 `revision`。每项清单以 `path` 标识;`.` 分隔固定键,`[]` 表示数组项,`*` 表示插件自行命名的键。例如 `contributes.configuration.properties.*.additionalProperties.properties.*.format`。`values` 是承诺接受的取值,而非完整枚举。页面文件的成员、事件、根类名、CSS 变量分别列出;`open.targets` 只承诺 `{ view, args }`,`toolbar.fields/kinds` 只承诺列出的字段和种类。
|
|
152
|
+
|
|
153
|
+
三道检查分别守住:
|
|
154
|
+
|
|
155
|
+
- `scripts/stable-grows.mjs <基线>`:两份数据的旧条目及其取值必须全部保留,有新增时对应文件的 revision 必须增大,不能倒退。基线可为 git 提交、解包目录或 `npm:latest`。PR 和目标分支比较,发布前下载并解包 npm latest 比较;基线还没有 stable 文件时通过。
|
|
156
|
+
- `test/stable.test.mjs`:53 条路径仍在 schema 中可达,承诺的取值仍被接受。使用固定样本选择条件分支,支持 `$ref`、`allOf`、`anyOf`、`if/then/else`、`not`、`properties`、`items`、`additionalProperties` 及布尔 schema;未知写法失败,不推测其含义。`agents`、`commands`、`skills` 从各自的业务 schema 起步。
|
|
157
|
+
- `test/third-party.test.mjs`:两版 pi、一版 resource-manager 原文与 company 合成样本,分别跑整份清单和每个贡献键的校验,防止样本用到的约束被收紧。不检查磁盘文件与页面桥行为。这个仓库只守页面接口清单只增不减;页面接口的实现在 Coda 的客户端里,这里不核对。
|
|
158
|
+
|
|
159
|
+
增加稳定面一项时,先补 schema 或页面实现,再把路径、取值或页面条目加进对应 JSON;每加一项,该文件 revision 加一。补充能覆盖新路径和条件分支的测试样本,运行三道检查,并更新次版本与 CHANGELOG。
|
|
160
|
+
|
|
161
|
+
协议自己的大版本写在协议名里(`coda/run@1`);同一大版本只加可选字段和新操作,改含义或删东西升大版本,新旧可并存。
|
|
152
162
|
|
|
153
163
|
3.0.0 删除了 `executor` 与 `execution`,并把执行请求并入 `coda/executor@1` 的 `execute`;这是不兼容变更,旧代码须改用 `@coda-console/protocol/protocol` 与 `coda/run@1`。
|
|
154
164
|
|
package/docs/agent-protocol.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Agent 接入协议
|
|
2
2
|
|
|
3
|
-
Coda 用 [ACP](https://agentclientprotocol.com)(Agent Client Protocol)接 Agent
|
|
3
|
+
Coda 用 [ACP](https://agentclientprotocol.com)(Agent Client Protocol)接 Agent,把[会话指令](#会话指令)交给 Agent(ACP 的 `systemPrompt`;不收它的由 Coda 在第一轮送入),
|
|
4
4
|
可选支持[插话](#插话)(`_session/steering`),另收 Agent 活动报告(`_coda/wait`)、入口[没适配的东西](#没适配的东西)(`_coda/unrecognized`)、[执行失败事实](#执行失败)(ACP 错误数据里的 `_meta.coda.failure`)和[工具调用的审核](#工具调用的审核)(`_meta.coda.review`)。本文是这份协议的唯一正文,写给要让一个 Agent(比如 Cursor 的)接入 Coda 的人:照它实现,
|
|
5
5
|
Coda 就知道这个 Agent 在一轮之外还在做什么,如实显示、不回收它的进程,把它处理这些东西时的输出、审批和提问放进正确的一轮,
|
|
6
6
|
并在这次调用结清时把结果只交回一次。产品上这些规则的来由见会话行为契约(Coda 的 docs/session-contracts.md)与完成唤醒契约(Coda 的 docs/subagent-design.md「完成唤醒契约」)。
|
|
@@ -44,7 +44,7 @@ Coda 过去静默丢弃的值,契约检查现在可得到具体位置;过去
|
|
|
44
44
|
不把原始输入拼入错误(避免巨大值或深层对象导致报错本身失败)。
|
|
45
45
|
|
|
46
46
|
**校验不是整理或运行状态判断**:审核未知 `risk` 不影响整条审核有效,宿主仍只保存 `$defs/risk` 接受的值;
|
|
47
|
-
|
|
47
|
+
额度不足按 `kind` 判断,可选的 `resetAt` 须符合下文的 UTC 时间格式,不校验也不采用它附带的 `input`/`retryAfterMs`;压缩答复的未知字段照样允许,
|
|
48
48
|
宿主仍只保存已知字段、裁剪原因,畸形答复仍按原有兜底处理,不应把整个答复的校验失败改成执行失败。
|
|
49
49
|
压缩的 `before`/`after` 沿用有限数要求,不新增整数或非负限制。能力声明 schema 描述对象声明,
|
|
50
50
|
不代替能力探测:未声明、不合法的声明仍按宿主原有方式处理(旧 `supportsRemote` 还把数组视为声明,不能直接用 schema 替换该谓词)。
|
|
@@ -76,7 +76,7 @@ Coda 是 ACP 的客户端。每个会话的 Agent 进程由一个会话托管进
|
|
|
76
76
|
| 方法 | 方向 | Coda 怎么用 |
|
|
77
77
|
| --- | --- | --- |
|
|
78
78
|
| `initialize` | Coda → Agent | 握手。`clientCapabilities` 带 `elicitation.form`、`elicitation.url`、`session.compaction`、`session.configOptions.boolean`、`_meta.coda.waits`(见[能力协商](#能力协商))、`_meta.coda.unrecognized`(见[没适配的东西](#没适配的东西))与 `_meta.coda.remote`(见[远端入口](#远端入口)) |
|
|
79
|
-
| `session/new`、`session/load` | Coda → Agent | 新建或恢复原生会话,会话 ID 由 Agent 给;Agent 声明 `loadSession`
|
|
79
|
+
| `session/new`、`session/load` | Coda → Agent | 新建或恢复原生会话,会话 ID 由 Agent 给;Agent 声明 `loadSession` 才会被要求恢复。Agent 声明了才带 `systemPrompt`([会话指令](#会话指令))。结果里要报出当前模型(见下)。恢复期间重放的历史 Coda 不收(它有自己的),只收命令与标题 |
|
|
80
80
|
| `session/prompt` | Coda → Agent | 一轮:Coda 送出用户的消息或它自己合成的输入(子会话结果等),Agent 回复 `stopReason` 即本轮结束 |
|
|
81
81
|
| `_session/steering` | Coda → Agent | [插话](#插话):把用户的消息加进正在进行的一轮;只对声明支持的 Agent 发 |
|
|
82
82
|
| `session/cancel` | Coda → Agent | 停止:本轮在进行时取消本轮;Agent 在一轮之外处理活动(`handling`)时,停止处理 |
|
|
@@ -126,7 +126,7 @@ ACP 只允许在一轮(`session/prompt`)进行时交互。Agent 在两轮之
|
|
|
126
126
|
|
|
127
127
|
Coda 给每个会话一份指令:回复怎样在 Mac 与 iPhone 上显示、默认回复语言,再接目录启用的插件说明(插件(Coda 的 docs/plugins.md)的 `contributes.instructions`),
|
|
128
128
|
正文在 `backend/src/components/session-config/client-instructions.mjs`。它走 ACP 的 [`systemPrompt`](https://agentclientprotocol.com/protocol/draft/session-setup#system-prompt-unstable)(unstable),
|
|
129
|
-
|
|
129
|
+
有原生入口的 Agent 声明并接收它;没有的不必声明,由 Coda 自己送入(见本节最后一条):
|
|
130
130
|
|
|
131
131
|
- **声明**:`initialize` 结果的 `agentCapabilities.sessionCapabilities.systemPrompt: {}`。Coda 只用 `append` 模式,不需要声明 `mode.override`。
|
|
132
132
|
- **传入**:`session/new` 与 `session/load` 都带同一份 `{"mode": "append", "content": [{"type": "text", "text": …}]}`,只有一个文本块。
|
|
@@ -135,7 +135,7 @@ Coda 给每个会话一份指令:回复怎样在 Mac 与 iPhone 上显示、
|
|
|
135
135
|
没有原生入口的,由插件在这个原生会话**第一次** `session/prompt` 时把指令作为单独、明确分隔的一段放在用户输入前面一起送入,之后不再送(第一轮是斜杠命令时顺延到下一轮,免得命令不再被认出);
|
|
136
136
|
`session/load` 恢复的会话已经送过,不再送。Coda 显示与保存的用户原文不变。首条消息里的指令分量不如系统提示词,这是没有原生入口时的近似。
|
|
137
137
|
- **失败**:应用不了(不认识的模式、内容超出上限)时 `session/new`、`session/load` 回错误,不建立会话(ACP 建议 -32602)。
|
|
138
|
-
-
|
|
138
|
+
- **没声明的 Agent**:Coda 照 ACP 的规矩不发 `systemPrompt`,由 Coda 自己在这个原生会话**第一次** `session/prompt` 时把指令作为单独的一个文本块放在用户输入前面一起送入,之后不再送。这一块以 `<coda-session-instructions>` 起、`</coda-session-instructions>` 止,开头写明它来自 Coda、不是用户消息的一部分。第一轮是斜杠命令时顺延到下一轮,免得命令不再被认出;`session/load` 恢复的会话已经送过,不再送。Coda 显示与保存的用户原文不变;Agent 拿这一轮的开头起的标题,Coda 不采用。首条消息里的指令分量不如系统提示词,这是没有原生入口时的近似。插件不用为此写代码。
|
|
139
139
|
|
|
140
140
|
Coda 的 MCP 服务器只提供工具,不带 `instructions`。
|
|
141
141
|
|
|
@@ -179,7 +179,7 @@ Coda 使用的形状见 [steering.json](../schemas/agent/steering.json);`promp
|
|
|
179
179
|
HTTP 429 或上游的认证错误分类判断。真正的认证失败仍沿用 ACP `auth_required`,不得报为额度不足。
|
|
180
180
|
|
|
181
181
|
```json
|
|
182
|
-
{"jsonrpc":"2.0","id":"prompt-1","error":{"code":-32603,"message":"当前用量窗口的额度已耗尽,<t:2026-10-24T18:10:00.000Z> 重置","data":{"_meta":{"coda":{"failure":{"kind":"quota_exhausted"}}}}}}
|
|
182
|
+
{"jsonrpc":"2.0","id":"prompt-1","error":{"code":-32603,"message":"当前用量窗口的额度已耗尽,<t:2026-10-24T18:10:00.000Z> 重置","data":{"_meta":{"coda":{"failure":{"kind":"quota_exhausted","resetAt":"2026-10-24T18:10:00.000Z"}}}}}}
|
|
183
183
|
```
|
|
184
184
|
|
|
185
185
|
Coda 按该类别显示「额度不足」,保留完整原因,不安排自动重试;这个类别不要求 `input`,即使带了也不进入服务故障重试。
|
|
@@ -187,7 +187,10 @@ Coda 按该类别显示「额度不足」,保留完整原因,不安排自动
|
|
|
187
187
|
操作已结算不代表任务成功,子会话向调用方交回 `failed`。两端同一原因只显示一次,不再标作「执行结果未知」。
|
|
188
188
|
交回 `failed` 的状态文案为「失败」,涵盖准备与执行阶段。调用结清前,后续轮次的额度错误仍连同原因算进这次调用的结果,即使没有正文或还有其他活动在等;结清后不再另交。
|
|
189
189
|
插件以普通执行错误返回(例如 -32603),不得把额度耗尽伪装成要求重新登录的 -32000。
|
|
190
|
-
|
|
190
|
+
可选 `resetAt` 表示上游给出的额度预计重置时间,须为 UTC ISO 8601 时间字符串:`YYYY-MM-DDTHH:mm:ssZ`,
|
|
191
|
+
可带 1 到 9 位小数秒,例如 `2026-11-11T19:00:00Z` 或 `2026-11-11T19:00:00.000Z`;必须以 `Z` 结尾。
|
|
192
|
+
上游没有给出确切时间时省略,不推算时间。该字段是兼容扩展:旧发送端可不写,旧接收端可忽略;不改变失败类别或服务故障重试语义。
|
|
193
|
+
恢复条件(等待窗口重置、补充额度等)仍由插件放在原因中,重置时刻按[文字里的时刻](#文字里的时刻)写。
|
|
191
194
|
|
|
192
195
|
### 服务暂不可用
|
|
193
196
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coda-console/protocol",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.12.0",
|
|
4
4
|
"description": "Coda 的协议:插件清单的类型(JSON Schema)、通用校验器、协议定义与调用信封、流程方言与 Agent 接入协议",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
"workflow.mjs",
|
|
20
20
|
"docs",
|
|
21
21
|
"protocol.mjs",
|
|
22
|
-
"CHANGELOG.md"
|
|
22
|
+
"CHANGELOG.md",
|
|
23
|
+
"stable"
|
|
23
24
|
],
|
|
24
25
|
"exports": {
|
|
25
26
|
"./validate": "./validate.mjs",
|
|
@@ -29,7 +30,8 @@
|
|
|
29
30
|
"./docs/*": "./docs/*",
|
|
30
31
|
"./package.json": "./package.json",
|
|
31
32
|
"./agent": "./agent.mjs",
|
|
32
|
-
"./protocol": "./protocol.mjs"
|
|
33
|
+
"./protocol": "./protocol.mjs",
|
|
34
|
+
"./stable/*": "./stable/*"
|
|
33
35
|
},
|
|
34
36
|
"engines": {
|
|
35
37
|
"node": ">=24"
|
|
@@ -47,5 +47,16 @@
|
|
|
47
47
|
"input"
|
|
48
48
|
]
|
|
49
49
|
},
|
|
50
|
-
"
|
|
50
|
+
"else": {
|
|
51
|
+
"type": "object",
|
|
52
|
+
"properties": {
|
|
53
|
+
"resetAt": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"format": "date-parse",
|
|
56
|
+
"pattern": "^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.\\d{1,9})?Z$(?![\\s\\S])",
|
|
57
|
+
"description": "resetAt 须为 UTC ISO 8601 时间字符串(以 Z 结尾),表示上游给出的额度预计重置时间;没有确切时间时不写"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"$comment": "quota_exhausted 不检查 input 或 retryAfterMs;service_unavailable 不检查 resetAt。"
|
|
51
62
|
}
|
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
"properties": {
|
|
8
8
|
"id": {"$ref": "common.json#/$defs/id", "description": "插件 ID:小写字母、数字和「-」,以字母开头,至多 40 个字符;不写就用 name"},
|
|
9
9
|
"name": {"type": "string"},
|
|
10
|
+
"displayName": {"type": "string"},
|
|
11
|
+
"version": {"type": "string"},
|
|
10
12
|
"description": {"description": "一句话简介:插件列表里只显示一行,20 字以内为宜;更多的说明写在插件目录的 README.md,插件页里显示", "type": "string"},
|
|
11
13
|
"icon": {
|
|
12
14
|
"description": "插件的图标:插件目录里的 PDF(light 必填,dark 与 template 可选,同 Agent 的图标),或 SF Symbols 的符号画在系统色的底上(symbol 与 color);客户端裁成圆角方块。不写时,只带一个 Agent 的插件用那个 Agent 的图标,其余用分类的默认图标",
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
{
|
|
2
|
+
"revision": 1,
|
|
3
|
+
"entries": [
|
|
4
|
+
{
|
|
5
|
+
"path": "name"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"path": "id"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"path": "displayName"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"path": "description"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"path": "version"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"path": "categories"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"path": "icon.symbol"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"path": "icon.color"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"path": "main"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"path": "contributes.agents[].id"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"path": "contributes.agents[].displayName"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"path": "contributes.agents[].command"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"path": "contributes.agents[].icon.light"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"path": "contributes.agents[].modes.title"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"path": "contributes.agents[].modes.note"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"path": "contributes.agents[].skillsDir"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"path": "contributes.agents[].configFiles[]"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"path": "contributes.agents[].setupHint"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"path": "contributes.agents[].modes.unset"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"path": "contributes.agents[].modes.auto"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"path": "contributes.agents[].modes.full"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"path": "contributes.agents[].icon.dark"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"path": "contributes.agents[].icon.template"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"path": "contributes.configuration.title"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"path": "contributes.configuration.properties.*"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"path": "contributes.configuration.properties.*.type"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"path": "contributes.configuration.properties.*.title"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"path": "contributes.configuration.properties.*.description"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"path": "contributes.configuration.properties.*.order"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"path": "contributes.configuration.properties.*.default"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"path": "contributes.configuration.properties.*.additionalProperties.type"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"path": "contributes.configuration.properties.*.additionalProperties.properties.*"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"path": "contributes.configuration.properties.*.additionalProperties.properties.*.type"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"path": "contributes.configuration.properties.*.additionalProperties.properties.*.title"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"path": "contributes.configuration.properties.*.additionalProperties.properties.*.description"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"path": "contributes.configuration.properties.*.additionalProperties.properties.*.order"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"path": "contributes.configuration.properties.*.additionalProperties.properties.*.default"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"path": "contributes.configuration.properties.*.additionalProperties.properties.*.enum"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"path": "contributes.configuration.properties.*.additionalProperties.properties.*.minimum"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"path": "contributes.configuration.properties.*.additionalProperties.properties.*.format",
|
|
123
|
+
"values": [
|
|
124
|
+
"coda-model-provider",
|
|
125
|
+
"coda-model-url"
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"path": "contributes.configuration.properties.*.additionalProperties.properties.*.writeOnly"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"path": "contributes.configuration.properties.*.additionalProperties.properties.*.modelKey"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"path": "contributes.configuration.properties.*.additionalProperties.properties.*.modelApi"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"path": "contributes.setup.command"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"path": "contributes.skills[]"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"path": "contributes.commands[].name"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"path": "contributes.commands[].command"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"path": "contributes.environment.*"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"path": "contributes.views[].id"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"path": "contributes.views[].title"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"path": "contributes.views[].entry"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"path": "contributes.views[].in[]",
|
|
163
|
+
"values": [
|
|
164
|
+
"side"
|
|
165
|
+
]
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"path": "contributes.views[].icon"
|
|
169
|
+
}
|
|
170
|
+
]
|
|
171
|
+
}
|
package/stable/view.json
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
{
|
|
2
|
+
"revision": 1,
|
|
3
|
+
"entries": [
|
|
4
|
+
{
|
|
5
|
+
"path": "window.coda.platform"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"path": "window.coda.args"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"path": "window.coda.getState"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"path": "window.coda.setState"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"path": "window.coda.copy"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"path": "window.coda.open",
|
|
21
|
+
"targets": [
|
|
22
|
+
{
|
|
23
|
+
"view": true,
|
|
24
|
+
"args": true
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"path": "window.coda.close"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"path": "window.coda.back"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"path": "window.coda.toolbar",
|
|
36
|
+
"fields": [
|
|
37
|
+
"id",
|
|
38
|
+
"label",
|
|
39
|
+
"icon",
|
|
40
|
+
"kind",
|
|
41
|
+
"on"
|
|
42
|
+
],
|
|
43
|
+
"kinds": [
|
|
44
|
+
"button",
|
|
45
|
+
"toggle"
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"path": "window.coda.postMessage"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"path": "window.coda.on",
|
|
53
|
+
"events": [
|
|
54
|
+
"toolbar",
|
|
55
|
+
"visibility",
|
|
56
|
+
"back",
|
|
57
|
+
"theme",
|
|
58
|
+
"context"
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"path": "window",
|
|
63
|
+
"events": [
|
|
64
|
+
"message"
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"path": "root.classes",
|
|
69
|
+
"values": [
|
|
70
|
+
"coda-ios",
|
|
71
|
+
"coda-mac",
|
|
72
|
+
"coda-dark",
|
|
73
|
+
"coda-light"
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"path": "root.cssVariables",
|
|
78
|
+
"values": [
|
|
79
|
+
"--coda-accent",
|
|
80
|
+
"--coda-secondary",
|
|
81
|
+
"--coda-radius",
|
|
82
|
+
"--coda-selection",
|
|
83
|
+
"--coda-tertiary",
|
|
84
|
+
"--coda-background",
|
|
85
|
+
"--coda-font-size",
|
|
86
|
+
"--coda-card",
|
|
87
|
+
"--coda-orange",
|
|
88
|
+
"--coda-foreground",
|
|
89
|
+
"--coda-fill",
|
|
90
|
+
"--coda-separator",
|
|
91
|
+
"--coda-secondary-background",
|
|
92
|
+
"--coda-radius-card",
|
|
93
|
+
"--coda-outline",
|
|
94
|
+
"--coda-mono",
|
|
95
|
+
"--coda-hover",
|
|
96
|
+
"--coda-font"
|
|
97
|
+
]
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
}
|
package/workflow/actions.json
CHANGED
|
@@ -43,6 +43,8 @@
|
|
|
43
43
|
"description": "从仓库地址添加项目:本机已有就是它,没有就克隆;新项目没有 Tag 时带上运行所属项目的 Tag"},
|
|
44
44
|
"tell-session": {"params": ["text", "key", "session"],
|
|
45
45
|
"description": "告诉一个会话(不写就是运行所属的)一句话,像结果一样叫醒它的 Agent;同一个 key(或同样的话)只说一次,已归档就不说"},
|
|
46
|
+
"send-session": {"params": ["text", "key", "session"],
|
|
47
|
+
"description": "在一个会话(不写就是运行所属的)里提交一条普通消息,和用户发的一样开始一轮;同一个 key 只发一次;已归档就不发"},
|
|
46
48
|
"session-state": {"params": ["session"],
|
|
47
49
|
"description": "一个会话(不写就是运行所属的)现在的样子:它或它的根会话是否已归档"}
|
|
48
50
|
}
|