@coda-console/protocol 5.6.0 → 5.7.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
+ ## 5.7.0 — 2026-11-10
6
+
7
+ - 插件提供的模型服务的接口(`contributes.modelProviders` 的 `api`,以及设置的 `modelApis` 可列的接口名)加 `openai-speech`:OpenAI 语音合成接口(`POST /v1/audio/speech`)。只加接口名,字段与语义不变。
8
+
5
9
  ## 5.6.0 — 2026-11-10
6
10
 
7
11
  - 流程种类 `develop`(开发流程):把一项改动从开工做到合进默认分支,结果交回发起它的会话;任何提交都能跑,不算部署类。设置选项的 `workflowKind` 也接受它。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coda-console/protocol",
3
- "version": "5.6.0",
3
+ "version": "5.7.0",
4
4
  "description": "Coda 的协议:插件清单的类型(JSON Schema)、通用校验器、协议定义与调用信封、流程方言与 Agent 接入协议",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -11,8 +11,8 @@
11
11
  "id": {"$ref": "common.json#/$defs/id"},
12
12
  "title": {"$ref": "common.json#/$defs/line40"},
13
13
  "api": {
14
- "description": "接口:openai-completions、openai-responses、anthropic-messages",
15
- "enum": ["openai-completions", "openai-responses", "anthropic-messages"]
14
+ "description": "接口:openai-completions、openai-responses、anthropic-messages、openai-speech",
15
+ "enum": ["openai-completions", "openai-responses", "anthropic-messages", "openai-speech"]
16
16
  },
17
17
  "url": {
18
18
  "description": "一行地址,只能引用本插件的单值设置(${config:<设置名>},不能是密文)",
@@ -132,11 +132,11 @@
132
132
  "type": {"const": "string"},
133
133
  "format": {"const": "coda-model-provider"},
134
134
  "modelApis": {
135
- "description": "modelApis 是 1–10 个接口名,取 openai-completions、openai-responses、anthropic-messages",
135
+ "description": "modelApis 是 1–10 个接口名,取 openai-completions、openai-responses、anthropic-messages、openai-speech",
136
136
  "type": "array",
137
137
  "minItems": 1,
138
138
  "maxItems": 10,
139
- "items": {"enum": ["openai-completions", "openai-responses", "anthropic-messages"]}
139
+ "items": {"enum": ["openai-completions", "openai-responses", "anthropic-messages", "openai-speech"]}
140
140
  }
141
141
  },
142
142
  "required": ["type", "format"],