@coda-console/plugin-check 0.8.12 → 0.8.14
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/README.md +1 -1
- package/check/coda/adapters/provider-api.mjs +0 -1
- package/check/coda/builtin.json +36 -72
- package/check/coda/components/plugins/plugin-rules.mjs +1 -2
- package/check/coda/components/session-config/commands.mjs +1 -12
- package/check/coda/contract.json +6 -6
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ plugins/git/ Git 源与快照:本机仓库 provider、运行关联
|
|
|
20
20
|
plugins/host/ 宿主资源:发布本机 coda/executor@1 执行环境,执行 execute 并写 coda/run@1;Xcode 构建、Apple 模拟器与项目要求排队的命令共用这台机器的一组名额(组 host、持锁执行 run-held、host-sim),资源「构建名额」
|
|
21
21
|
plugins/magpie/ Magpie:把本机的 Magpie 网关作为模型服务提供给 Pi 等插件,安装时装好 Magpie 并让网关常驻
|
|
22
22
|
plugins/network-log/ 网络记录:默认关闭,按需开启建连等待与定时探测采集;关闭后仍可查看历史
|
|
23
|
-
plugins/review/ PR 生命流程:会话开的 PR
|
|
23
|
+
plugins/review/ PR 生命流程:会话开的 PR 先跑项目的检查、再交叉评审,你批准后合并、部署与发布,别人的 PR 只评审;也是写 PR 流程的样例
|
|
24
24
|
plugins/desktop-pet/ 桌面宠物:Coda 娘待在 Mac 桌面上,Agent 在跑时打字,有事等你时举卡片叫你(Coda 的浮窗)
|
|
25
25
|
plugins/testbed/ 测试机:长插在 Mac 上的 iPhone、iPad 只经 use-testbed 使用,排到后装 App、交给会话操作、用完切黑屏;依赖宿主资源
|
|
26
26
|
plugins/composer/ 输入框模式与开发流程:监督开发(一个需求一条泳道,主 Agent 用泳道 PR 合进泳道,用户批准一次)与需求交付;Ultra 名单引用 composer.templates
|
|
@@ -16,7 +16,6 @@ export function providerAPI({ call, watch, connection, plugin, operations, repor
|
|
|
16
16
|
delete: (kind, id) => call('delete', [kind, id]),
|
|
17
17
|
publish: (kind, id, enabled = true) => call('publish', [kind, id, enabled]),
|
|
18
18
|
// An upload of this machine a post to a session names (`upload`): `{ id, name, size, mime?, duration?, …, path }`.
|
|
19
|
-
remoteCode: id => call('remoteCode', [id]),
|
|
20
19
|
upload: id => call('upload', [id]),
|
|
21
20
|
observe,
|
|
22
21
|
handle(kind, operation, handler) {
|
package/check/coda/builtin.json
CHANGED
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"workflows": [],
|
|
86
86
|
"services": [],
|
|
87
87
|
"agents": [],
|
|
88
|
-
"instructions": "
|
|
88
|
+
"instructions": "改插件设置(如 composer.templates)时调用 workflow_run,workflow 为 change-setting,inputs 给 plugin、setting、value(新值的 JSON,null 清除)、reason(一行,必写),可加 project、machines(写到哪几台,默认装了它的各台);先不给 value 读现值。用户点「应用」才写入,密文不经这里。",
|
|
89
89
|
"commands": [],
|
|
90
90
|
"capabilities": [
|
|
91
91
|
"change-setting"
|
|
@@ -255,7 +255,7 @@
|
|
|
255
255
|
"id": "github",
|
|
256
256
|
"displayName": "GitHub",
|
|
257
257
|
"description": "登录账号,推送时自动选对账号",
|
|
258
|
-
"version": "1.
|
|
258
|
+
"version": "1.11.0",
|
|
259
259
|
"category": "模型与账号",
|
|
260
260
|
"icon": {
|
|
261
261
|
"symbol": "arrow.triangle.pull",
|
|
@@ -330,6 +330,19 @@
|
|
|
330
330
|
"name": "pull_request.closed",
|
|
331
331
|
"starts": false,
|
|
332
332
|
"ends": true
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"name": "foreign_pull_request.opened",
|
|
336
|
+
"starts": true
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"name": "foreign_pull_request.synchronize",
|
|
340
|
+
"starts": true
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"name": "foreign_pull_request.closed",
|
|
344
|
+
"starts": false,
|
|
345
|
+
"ends": true
|
|
333
346
|
}
|
|
334
347
|
],
|
|
335
348
|
"gitCredentials": [
|
|
@@ -842,7 +855,7 @@
|
|
|
842
855
|
"id": "session",
|
|
843
856
|
"displayName": "会话生命周期",
|
|
844
857
|
"description": "空闲进程、归档收尾与工作树回收",
|
|
845
|
-
"version": "1.
|
|
858
|
+
"version": "1.1.0",
|
|
846
859
|
"category": "工作流程",
|
|
847
860
|
"icon": {
|
|
848
861
|
"symbol": "hourglass",
|
|
@@ -877,15 +890,6 @@
|
|
|
877
890
|
"title": "会话静止多久停掉进程",
|
|
878
891
|
"order": 5,
|
|
879
892
|
"default": "PT1H"
|
|
880
|
-
},
|
|
881
|
-
"session.subagents": {
|
|
882
|
-
"type": "integer",
|
|
883
|
-
"minimum": 1,
|
|
884
|
-
"maximum": 64,
|
|
885
|
-
"description": "Agent 开的子会话为父会话干活时各占一个名额;满了再开会当场失败,Agent 等其中一个做完再开,或者自己做。按这台机器算。",
|
|
886
|
-
"title": "同时执行的子会话",
|
|
887
|
-
"order": 10,
|
|
888
|
-
"default": 5
|
|
889
893
|
}
|
|
890
894
|
},
|
|
891
895
|
"workflows": [
|
|
@@ -896,12 +900,7 @@
|
|
|
896
900
|
"agents": [],
|
|
897
901
|
"commands": [],
|
|
898
902
|
"capabilities": [],
|
|
899
|
-
"groups": [
|
|
900
|
-
{
|
|
901
|
-
"name": "subagents",
|
|
902
|
-
"capacity": "session.subagents"
|
|
903
|
-
}
|
|
904
|
-
],
|
|
903
|
+
"groups": [],
|
|
905
904
|
"gitCredentials": [],
|
|
906
905
|
"endpoints": [],
|
|
907
906
|
"views": [],
|
|
@@ -1004,7 +1003,7 @@
|
|
|
1004
1003
|
"id": "workflows",
|
|
1005
1004
|
"displayName": "工作流",
|
|
1006
1005
|
"description": "流程模板、运行进度与流程图",
|
|
1007
|
-
"version": "1.0.
|
|
1006
|
+
"version": "1.0.3",
|
|
1008
1007
|
"category": "工作流程",
|
|
1009
1008
|
"icon": {
|
|
1010
1009
|
"symbol": "flowchart.fill",
|
|
@@ -1016,29 +1015,7 @@
|
|
|
1016
1015
|
},
|
|
1017
1016
|
"dir": "src/resources/plugins/workflows",
|
|
1018
1017
|
"title": "工作流",
|
|
1019
|
-
"properties": {
|
|
1020
|
-
"workflows.remoteCallerWorkflows": {
|
|
1021
|
-
"type": "array",
|
|
1022
|
-
"description": "本机所有绑定的会话记录共用;project 填本机目录 ID,workflow 填流程名。",
|
|
1023
|
-
"title": "远端调用方可发起的流程",
|
|
1024
|
-
"rows": {
|
|
1025
|
-
"type": "object",
|
|
1026
|
-
"columns": {
|
|
1027
|
-
"project": {
|
|
1028
|
-
"type": "string"
|
|
1029
|
-
},
|
|
1030
|
-
"workflow": {
|
|
1031
|
-
"type": "string"
|
|
1032
|
-
}
|
|
1033
|
-
},
|
|
1034
|
-
"required": [
|
|
1035
|
-
"project",
|
|
1036
|
-
"workflow"
|
|
1037
|
-
]
|
|
1038
|
-
},
|
|
1039
|
-
"default": []
|
|
1040
|
-
}
|
|
1041
|
-
},
|
|
1018
|
+
"properties": {},
|
|
1042
1019
|
"main": "main.mjs",
|
|
1043
1020
|
"workflows": [],
|
|
1044
1021
|
"services": [],
|
|
@@ -1088,7 +1065,7 @@
|
|
|
1088
1065
|
"id": "claude",
|
|
1089
1066
|
"displayName": "Claude",
|
|
1090
1067
|
"description": "用 Claude Agent SDK 跑会话",
|
|
1091
|
-
"version": "1.12.
|
|
1068
|
+
"version": "1.12.3",
|
|
1092
1069
|
"category": "Agent",
|
|
1093
1070
|
"icon": {
|
|
1094
1071
|
"light": "JVBERi0xLjcKJbXtrvsKNCAwIG9iago8PCAvTGVuZ3RoIDUgMCBSCiAgIC9GaWx0ZXIgL0ZsYXRlRGVjb2RlCj4+CnN0cmVhbQp4nG1WSY4YNxC76xX6QBTtyzP8hCCAnUP74OT/QFhkqWcMewaYaUrqWlisUpeY8ftHwZ/T0hrx7+/hR/gSf4Sc9shnx5z6xM/CQ+ulrBn//Rb//CvHb/+FntPaJe6T8qzxe+w15dPjbqmO+MTe0gBcwwwD9rRLjfM4HOm0HWeF3R5s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5mbyAxMCAwIFIKPj4Kc3RyZWFtCnicY2Bg+P+fiYGTgQFEMDGy2DAwMDLwAwkWNZAYO4jVAiRY2UCENEQdI4hgZmRbBhRj28vAAADC2ATdCmVuZHN0cmVhbQplbmRvYmoKc3RhcnR4cmVmCjE3MjUKJSVFT0YK",
|
|
@@ -1099,8 +1076,8 @@
|
|
|
1099
1076
|
"kind": "builtin",
|
|
1100
1077
|
"package": "@coda-console/claude",
|
|
1101
1078
|
"tag": "latest",
|
|
1102
|
-
"version": "1.12.
|
|
1103
|
-
"integrity": "sha512-
|
|
1079
|
+
"version": "1.12.3",
|
|
1080
|
+
"integrity": "sha512-IeLAR+Fx1DuAdE7CawFvb7SaY9bSpIZ15Z7VVMJXRFprwG2N8i7P9QfsOnpVeCFNGWuY0+8k2cwxi+4rE18tfw==",
|
|
1104
1081
|
"repo": "https://github.com/coda-console/coda-plugins.git",
|
|
1105
1082
|
"path": "plugins/claude"
|
|
1106
1083
|
},
|
|
@@ -1351,7 +1328,7 @@
|
|
|
1351
1328
|
"id": "composer",
|
|
1352
1329
|
"displayName": "输入框模式",
|
|
1353
1330
|
"description": "交接、子会话、! 命令、Ultra 与循环",
|
|
1354
|
-
"version": "
|
|
1331
|
+
"version": "9.2.0",
|
|
1355
1332
|
"category": "工作流程",
|
|
1356
1333
|
"icon": {
|
|
1357
1334
|
"symbol": "character.cursor.ibeam",
|
|
@@ -1362,8 +1339,8 @@
|
|
|
1362
1339
|
"kind": "builtin",
|
|
1363
1340
|
"package": "@coda-console/composer",
|
|
1364
1341
|
"tag": "latest",
|
|
1365
|
-
"version": "
|
|
1366
|
-
"integrity": "sha512-
|
|
1342
|
+
"version": "9.2.0",
|
|
1343
|
+
"integrity": "sha512-upykW4ctCyaLNw4LTvBxR/L77hQBIw7wix93sB7LurVDZNWlgvCQn3tNFxgcRBnPlyhWv+bYiTOts25MEbBHLw==",
|
|
1367
1344
|
"repo": "https://github.com/coda-console/coda-plugins.git",
|
|
1368
1345
|
"path": "plugins/composer"
|
|
1369
1346
|
},
|
|
@@ -1941,7 +1918,7 @@
|
|
|
1941
1918
|
"id": "review",
|
|
1942
1919
|
"displayName": "PR 生命流程",
|
|
1943
1920
|
"description": "PR 从检查、评审到批准合并;简易开发",
|
|
1944
|
-
"version": "
|
|
1921
|
+
"version": "3.3.0",
|
|
1945
1922
|
"category": "工作流程",
|
|
1946
1923
|
"icon": {
|
|
1947
1924
|
"symbol": "checkmark.bubble.fill",
|
|
@@ -1952,8 +1929,8 @@
|
|
|
1952
1929
|
"kind": "builtin",
|
|
1953
1930
|
"package": "@coda-console/review",
|
|
1954
1931
|
"tag": "latest",
|
|
1955
|
-
"version": "
|
|
1956
|
-
"integrity": "sha512-
|
|
1932
|
+
"version": "3.3.0",
|
|
1933
|
+
"integrity": "sha512-gRoC1I+MZmlx+hBI2seQVSIYG0flcxYQcgc5CuTPC0BTPpOOxz1UnAo6ftn/TvAO0dZeF+KQdMsZGrQCKkfgkQ==",
|
|
1957
1934
|
"repo": "https://github.com/coda-console/coda-plugins.git",
|
|
1958
1935
|
"path": "plugins/review"
|
|
1959
1936
|
},
|
|
@@ -1962,7 +1939,7 @@
|
|
|
1962
1939
|
"properties": {
|
|
1963
1940
|
"review.autoRun": {
|
|
1964
1941
|
"type": "boolean",
|
|
1965
|
-
"description": "会话开的 PR 新建或有新提交时自动开始 PR
|
|
1942
|
+
"description": "会话开的 PR 新建或有新提交时自动开始 PR 生命流程,别人写的 PR 自动开始只评审。关掉后只能手动发起;会话或目录在「工作流」里单独设过的,按它们的。不影响简易开发。",
|
|
1966
1943
|
"title": "PR 自动运行",
|
|
1967
1944
|
"order": 0,
|
|
1968
1945
|
"default": true
|
|
@@ -1997,6 +1974,10 @@
|
|
|
1997
1974
|
"opencode": {
|
|
1998
1975
|
"agent": "claude-sdk",
|
|
1999
1976
|
"mode": "auto"
|
|
1977
|
+
},
|
|
1978
|
+
"*": {
|
|
1979
|
+
"agent": "codex",
|
|
1980
|
+
"mode": "agent"
|
|
2000
1981
|
}
|
|
2001
1982
|
}
|
|
2002
1983
|
},
|
|
@@ -2070,7 +2051,7 @@
|
|
|
2070
2051
|
},
|
|
2071
2052
|
"review.mergeOptions": {
|
|
2072
2053
|
"type": "array",
|
|
2073
|
-
"description": "
|
|
2054
|
+
"description": "合并卡片初始勾选这些选项,直接点「合并」也按此执行。每次合并前可以调整;目录可以覆盖。合并后的流程勾不勾由项目里的流程自己声明。",
|
|
2074
2055
|
"title": "合并时默认勾选",
|
|
2075
2056
|
"order": 6,
|
|
2076
2057
|
"options": [
|
|
@@ -2079,28 +2060,10 @@
|
|
|
2079
2060
|
"title": "合并后删除远程分支",
|
|
2080
2061
|
"description": "删除这个 PR 的远程源分支,本地分支和工作树保留"
|
|
2081
2062
|
},
|
|
2082
|
-
{
|
|
2083
|
-
"value": "deploy",
|
|
2084
|
-
"title": "部署",
|
|
2085
|
-
"description": "调用项目里的部署流程",
|
|
2086
|
-
"workflowKind": "deploy"
|
|
2087
|
-
},
|
|
2088
|
-
{
|
|
2089
|
-
"value": "preview",
|
|
2090
|
-
"title": "发布预览版",
|
|
2091
|
-
"description": "调用项目里的预览发布流程",
|
|
2092
|
-
"workflowKind": "preview"
|
|
2093
|
-
},
|
|
2094
|
-
{
|
|
2095
|
-
"value": "release",
|
|
2096
|
-
"title": "发布正式版",
|
|
2097
|
-
"description": "调用项目里的正式发布流程",
|
|
2098
|
-
"workflowKind": "release"
|
|
2099
|
-
},
|
|
2100
2063
|
{
|
|
2101
2064
|
"value": "notify",
|
|
2102
2065
|
"title": "全部完成后通知 Agent",
|
|
2103
|
-
"description": "
|
|
2066
|
+
"description": "合并及所选删除分支、合并后的流程结束后通知"
|
|
2104
2067
|
}
|
|
2105
2068
|
],
|
|
2106
2069
|
"default": []
|
|
@@ -2108,6 +2071,7 @@
|
|
|
2108
2071
|
},
|
|
2109
2072
|
"workflows": [
|
|
2110
2073
|
"pull-request",
|
|
2074
|
+
"pull-request-review",
|
|
2111
2075
|
"simple"
|
|
2112
2076
|
],
|
|
2113
2077
|
"services": [],
|
|
@@ -61,8 +61,7 @@ export function setting(value, where) {
|
|
|
61
61
|
if (value.items.modelApis) out.modelApis = [...new Set(value.items.modelApis)];
|
|
62
62
|
} else if (value.type === 'array' && value.items.type === 'object') out.rows = setting(value.items, `${where}.items`);
|
|
63
63
|
else if (value.type === 'array') out.options = value.items.anyOf.map(option => ({ value: option.const,
|
|
64
|
-
...(option.title ? { title: option.title } : {}), ...(option.description ? { description: option.description } : {})
|
|
65
|
-
...(option.workflowKind ? { workflowKind: option.workflowKind } : {}) }));
|
|
64
|
+
...(option.title ? { title: option.title } : {}), ...(option.description ? { description: option.description } : {}) }));
|
|
66
65
|
else if (value.type === 'object' && value.properties) {
|
|
67
66
|
out.columns = Object.fromEntries(Object.entries(value.properties).map(([name, column]) => [name, setting(column, `${where}.properties.${name}`)]));
|
|
68
67
|
if (value.required?.length) out.required = [...value.required];
|
|
@@ -56,7 +56,7 @@ const UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;
|
|
|
56
56
|
export function firstMessage(value) {
|
|
57
57
|
object(value, '首次发送');
|
|
58
58
|
keys(value, ['requestId', 'projectId', 'title', 'agent', 'checkout', 'settings', 'text', 'attachments', 'quotes', 'handoffSource', 'parentThreadId',
|
|
59
|
-
'replyTo', 'threadId', 'modes', 'initiatedBy'
|
|
59
|
+
'replyTo', 'threadId', 'modes', 'initiatedBy']);
|
|
60
60
|
const initiatedBy = value.initiatedBy === undefined ? {} : (() => {
|
|
61
61
|
const source = object(value.initiatedBy, '发起会话');
|
|
62
62
|
keys(source, ['threadId', 'title']);
|
|
@@ -66,16 +66,6 @@ export function firstMessage(value) {
|
|
|
66
66
|
})();
|
|
67
67
|
const handoff = value.handoffSource === undefined ? {} : { handoffSource: text(value.handoffSource, '交接来源', 100) };
|
|
68
68
|
const parent = value.parentThreadId === undefined ? {} : { parentThreadId: text(value.parentThreadId, '父会话', 100) };
|
|
69
|
-
// A session made in a session a plugin provides, as its bot (components/session-links): the `coda/session@1` record, this
|
|
70
|
-
// machine's or another's by its `remote:` reference, and what there wakes it — a message that @s or answers it
|
|
71
|
-
// (`mention`, the default), or any (`all`). That the record is one a provider has is checked as the session is made.
|
|
72
|
-
const link = value.link === undefined ? {} : (() => {
|
|
73
|
-
const named = object(value.link, '外部会话');
|
|
74
|
-
keys(named, ['record', 'wake']);
|
|
75
|
-
check(!parent.parentThreadId && !value.initiatedBy, 'invalid_input', '外部会话里的会话须为用户新建的独立会话');
|
|
76
|
-
check([undefined, 'mention', 'all'].includes(named.wake), 'invalid_input', 'wake 须为 mention 或 all');
|
|
77
|
-
return { link: { record: text(named.record, '外部会话', 2048), wake: named.wake ?? 'mention' } };
|
|
78
|
-
})();
|
|
79
69
|
check(!parent.parentThreadId || handoff.handoffSource === parent.parentThreadId, 'invalid_input', '子会话必须引用父会话上下文');
|
|
80
70
|
// Whom a child the user starts answers (#1904「回复权」): its parent, as a call of the parent's would (`parent`, the
|
|
81
71
|
// default), or the user who started it (`sender`): under its parent all the same, which is where it belongs, not whom it
|
|
@@ -104,7 +94,6 @@ export function firstMessage(value) {
|
|
|
104
94
|
...handoff,
|
|
105
95
|
...initiatedBy,
|
|
106
96
|
...parent,
|
|
107
|
-
...link,
|
|
108
97
|
...reply,
|
|
109
98
|
...(value.threadId === undefined ? {} : { threadId: value.threadId }),
|
|
110
99
|
requestId: text(value.requestId, '请求标识', 100),
|
package/check/coda/contract.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"commit": "
|
|
2
|
+
"commit": "90e925cb08a4b4608364c9fd6161d267bcb1d075",
|
|
3
3
|
"packages": {
|
|
4
4
|
"@0dep/piso": "5.2.0",
|
|
5
5
|
"@agentclientprotocol/sdk": "2.6.0",
|
|
6
|
-
"@coda-console/protocol": "
|
|
6
|
+
"@coda-console/protocol": "6.1.0",
|
|
7
7
|
"ajv": "8.20.0",
|
|
8
8
|
"yaml": "2.9.1"
|
|
9
9
|
},
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"check/coda/application/contributions.mjs": "2796b02e92c7ba0805d1d1d83afd08c6f8beeab92d026381736c7d54b39b455f",
|
|
12
12
|
"check/coda/components/protocols/creation.mjs": "2b4a400d3064af4b5106077dc783c567910fef3c47b2d52af3f0d838c5accf19",
|
|
13
13
|
"check/coda/components/protocols/types.mjs": "6876689142866bd45fc085951f6ea9e1fc303334e3657e97cc9cf5e277311248",
|
|
14
|
-
"check/coda/adapters/provider-api.mjs": "
|
|
14
|
+
"check/coda/adapters/provider-api.mjs": "2b0802b52ae4d894e92f1fa7647cf727556f4008ad5e63c14e6400dc24bb3a6e",
|
|
15
15
|
"check/coda/adapters/admission-api.mjs": "f19706eb66e598fceb1a72ac81c51e48f4dc0179a18a73edaccb4d68ca629f56",
|
|
16
16
|
"check/coda/components/composers/contributions.mjs": "43d3e15fb1f63b7b5c20716030d9537613809ed5cc2fb466a3678bfa308f9f92",
|
|
17
17
|
"check/coda/components/composers/schemas.mjs": "6d497f58147756e789f9a566b2366f2fe36c0c72310421fb02508bf24a04f2c0",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"check/coda/components/plugins/model-contributions.mjs": "018a7157954b2326887ba1a780b37d3beb33338e41a28936b313562c2939d563",
|
|
21
21
|
"check/coda/components/plugins/plugin-extensions.mjs": "4d7963185195ba6d21a4e49a66987613d5892210b1eb1dc02cffb7b816407776",
|
|
22
22
|
"check/coda/components/plugins/plugin-icons.mjs": "ec29cadce4948ecacabfe911a2ceb45414b96e28971358acbc4e952bedc78e1a",
|
|
23
|
-
"check/coda/components/plugins/plugin-rules.mjs": "
|
|
23
|
+
"check/coda/components/plugins/plugin-rules.mjs": "8709c797c14c6dc99a378a9d907ca804e3a025da910723378161af40fafeaa8a",
|
|
24
24
|
"check/coda/components/plugins/plugin-source-rules.mjs": "1b6c0fb1868481627f09b7227bc64ef07fe669dcc344dad353e6743adf6c9c5d",
|
|
25
25
|
"check/coda/components/plugins/skill-document.mjs": "153ad3c096c7c9b7774bcf7dcc0ba603c962ee1ac8697c8a71e3f2c9ba9c92e6",
|
|
26
26
|
"check/coda/components/prompt-recovery/prompt-recovery.mjs": "f43f21d24c19a58113d3304f9248225b12080ab00ed15eab74bf7b94642732de",
|
|
27
|
-
"check/coda/components/session-config/commands.mjs": "
|
|
27
|
+
"check/coda/components/session-config/commands.mjs": "a303876b39478f217cb465138da96c864d68d836041e705db3a540982a014391",
|
|
28
28
|
"check/coda/components/session-config/contributions.mjs": "74d52d65dc7b6f13ef301a211bdf50cc91ae468c462cbe201f5dc34f7437b97b",
|
|
29
29
|
"check/coda/components/workflows/contributions.mjs": "43e656a2d502b851679d8da11e74a6fb843c47a1502bfc948da719855ca7b438",
|
|
30
30
|
"check/coda/domain/agent-protocol.mjs": "14ea3549a80810a2b8bcf869fc27dc799ad1beb3b77a608034345b9972c3d566",
|
|
@@ -39,6 +39,6 @@
|
|
|
39
39
|
"check/coda/resources/plugins/resources/panels/panels.mjs": "452860c6b1b39dd9a67a8dadf4dac8f7773741b3608274494a8ac518a01f5b33",
|
|
40
40
|
"check/coda/resources/plugins/resources/panels/rules.mjs": "80da2709985c3866fff1698ea4d1c1afdf59cac2cc955605d3ec6c35f181eec6",
|
|
41
41
|
"check/coda/resources/plugins/resources/panels/sign-in.mjs": "1271a24e33b1b882a1fb9bee03b8e240db8b9bee1b5208f0e1c84499cfb1be7e",
|
|
42
|
-
"check/coda/builtin.json": "
|
|
42
|
+
"check/coda/builtin.json": "1c77e396106383516e7f771a986406059f6328eb61108c450b8affe06a15fb29"
|
|
43
43
|
}
|
|
44
44
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coda-console/plugin-check",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.14",
|
|
4
4
|
"description": "Coda 插件的契约检查:扮演 Coda 读清单、启动 Agent 讲 ACP 与 _coda/wait、读资源类型(与旧的面板)。",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@0dep/piso": "5.2.0",
|
|
26
26
|
"@agentclientprotocol/sdk": "2.6.0",
|
|
27
|
-
"@coda-console/protocol": "
|
|
27
|
+
"@coda-console/protocol": "6.1.0",
|
|
28
28
|
"ajv": "8.20.0",
|
|
29
29
|
"yaml": "2.9.1"
|
|
30
30
|
},
|