@coda-console/plugin-check 0.5.30 → 0.5.32
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.
|
@@ -4,6 +4,8 @@ import { admissionFeatures } from '../domain/resource-admission.mjs';
|
|
|
4
4
|
export function admissionAPI(call) {
|
|
5
5
|
return {
|
|
6
6
|
features: admissionFeatures,
|
|
7
|
+
declareGroups: groups => call('declareGroups', [groups]),
|
|
8
|
+
groupOwner: name => call('groupOwner', [name]),
|
|
7
9
|
acquire: request => call('acquire', [request]),
|
|
8
10
|
release: lease => call('release', [lease]),
|
|
9
11
|
list: () => call('list', []),
|
package/check/coda/builtin.json
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"id": "changes",
|
|
32
32
|
"displayName": "变更",
|
|
33
33
|
"description": "会话旁的「变更」页:新建工作树的会话从起点到现在改了哪些文件、每个文件改了什么(Mac 会话侧栏、iPhone 会话菜单);Mac 输入框上方写着改了几个文件、多少行,点开就是这一页。",
|
|
34
|
-
"version": "1.0.
|
|
34
|
+
"version": "1.0.1",
|
|
35
35
|
"category": "工作流程",
|
|
36
36
|
"source": {
|
|
37
37
|
"kind": "builtin"
|
|
@@ -57,7 +57,8 @@
|
|
|
57
57
|
],
|
|
58
58
|
"icon": "plus.forwardslash.minus",
|
|
59
59
|
"readout": "changes",
|
|
60
|
-
"checkout": "worktree"
|
|
60
|
+
"checkout": "worktree",
|
|
61
|
+
"frame": "document"
|
|
61
62
|
}
|
|
62
63
|
],
|
|
63
64
|
"agents": [],
|
|
@@ -326,7 +327,7 @@
|
|
|
326
327
|
{
|
|
327
328
|
"id": "maintenance",
|
|
328
329
|
"displayName": "维护",
|
|
329
|
-
"description": "
|
|
330
|
+
"description": "按周期为每个目录做维护:删除超过保留期未活动的工具详情,清掉空闲工作树的构建产物,以及已归档会话的密钥与命令输出;整台机器清一次没人引用的旧附件。",
|
|
330
331
|
"version": "1.0.0",
|
|
331
332
|
"category": "工作流程",
|
|
332
333
|
"source": {
|
|
@@ -342,22 +343,6 @@
|
|
|
342
343
|
"order": 1,
|
|
343
344
|
"default": "R/PT6H"
|
|
344
345
|
},
|
|
345
|
-
"maintenance.coldAfterAny": {
|
|
346
|
-
"type": "string",
|
|
347
|
-
"format": "duration",
|
|
348
|
-
"description": "已结束的工具调用多久没有变化,就把详情移出数据库、存进冷文件;会话里打开这一步时照常读回。ISO 8601 时长,如 P30D。",
|
|
349
|
-
"title": "工具详情多久后转冷",
|
|
350
|
-
"order": 2,
|
|
351
|
-
"default": "P30D"
|
|
352
|
-
},
|
|
353
|
-
"maintenance.coldAfterArchived": {
|
|
354
|
-
"type": "string",
|
|
355
|
-
"format": "duration",
|
|
356
|
-
"description": "会话(或它的根会话)已归档时,工具详情多久没有变化就转冷。ISO 8601 时长,如 P7D。",
|
|
357
|
-
"title": "已归档会话的工具详情多久后转冷",
|
|
358
|
-
"order": 3,
|
|
359
|
-
"default": "P7D"
|
|
360
|
-
},
|
|
361
346
|
"maintenance.buildIdle": {
|
|
362
347
|
"type": "string",
|
|
363
348
|
"format": "duration",
|
|
@@ -381,6 +366,14 @@
|
|
|
381
366
|
"title": "归档后多久删掉会话的密钥与命令输出",
|
|
382
367
|
"order": 6,
|
|
383
368
|
"default": "PT10M"
|
|
369
|
+
},
|
|
370
|
+
"maintenance.toolDetailsAfter": {
|
|
371
|
+
"type": "string",
|
|
372
|
+
"format": "duration",
|
|
373
|
+
"description": "已结束的工具调用最后活动超过此时长后,只保留卡片摘要。原生子 Agent 卡片保留。ISO 8601 时长,如 P7D。",
|
|
374
|
+
"title": "工具详情保留多久",
|
|
375
|
+
"order": 2,
|
|
376
|
+
"default": "P7D"
|
|
384
377
|
}
|
|
385
378
|
},
|
|
386
379
|
"workflows": [
|
|
@@ -403,7 +396,7 @@
|
|
|
403
396
|
"id": "resources",
|
|
404
397
|
"displayName": "资源",
|
|
405
398
|
"description": "资源页:这台电脑(看一组电脑时是每一台)上已安装插件的面板,如账号与额度,按插件排列;可以隐藏、从 Coda 登录、选择显示的指标。",
|
|
406
|
-
"version": "1.2.
|
|
399
|
+
"version": "1.2.1",
|
|
407
400
|
"category": "机器与资源",
|
|
408
401
|
"source": {
|
|
409
402
|
"kind": "builtin"
|
|
@@ -428,7 +421,8 @@
|
|
|
428
421
|
"page"
|
|
429
422
|
],
|
|
430
423
|
"icon": "square.stack.3d.up",
|
|
431
|
-
"readout": "machines"
|
|
424
|
+
"readout": "machines",
|
|
425
|
+
"frame": "document"
|
|
432
426
|
}
|
|
433
427
|
],
|
|
434
428
|
"agents": [],
|
|
@@ -735,7 +729,7 @@
|
|
|
735
729
|
"id": "workflows",
|
|
736
730
|
"displayName": "工作流",
|
|
737
731
|
"description": "工作流的页面:会话的流程模板与相关运行(会话侧栏、iPhone 会话菜单),所有机器的流程运行(一页),运行的进度与流程图、每个节点的执行记录与步骤输出。打开运行的卡片与链接也由它接管。",
|
|
738
|
-
"version": "1.0.
|
|
732
|
+
"version": "1.0.1",
|
|
739
733
|
"category": "工作流程",
|
|
740
734
|
"source": {
|
|
741
735
|
"kind": "builtin"
|
|
@@ -762,7 +756,8 @@
|
|
|
762
756
|
"icon": "point.3.connected.trianglepath.dotted",
|
|
763
757
|
"handles": [
|
|
764
758
|
"workflow-runs"
|
|
765
|
-
]
|
|
759
|
+
],
|
|
760
|
+
"frame": "document"
|
|
766
761
|
},
|
|
767
762
|
{
|
|
768
763
|
"id": "runs",
|
|
@@ -772,12 +767,14 @@
|
|
|
772
767
|
"page"
|
|
773
768
|
],
|
|
774
769
|
"icon": "point.3.connected.trianglepath.dotted",
|
|
775
|
-
"readout": "workflow-runs"
|
|
770
|
+
"readout": "workflow-runs",
|
|
771
|
+
"frame": "document"
|
|
776
772
|
},
|
|
777
773
|
{
|
|
778
774
|
"id": "graph",
|
|
779
775
|
"title": "流程图",
|
|
780
|
-
"entry": "view/graph.html"
|
|
776
|
+
"entry": "view/graph.html",
|
|
777
|
+
"frame": "canvas"
|
|
781
778
|
}
|
|
782
779
|
],
|
|
783
780
|
"agents": [],
|
|
@@ -789,14 +786,14 @@
|
|
|
789
786
|
"id": "claude",
|
|
790
787
|
"displayName": "Claude",
|
|
791
788
|
"description": "Claude SDK Agent:Coda 基于 Claude Agent SDK 写的 ACP 入口,一个进程一个 SDK 会话;资源页的「Claude」面板显示会话报告的额度,可从 Coda 登录。",
|
|
792
|
-
"version": "1.7.
|
|
789
|
+
"version": "1.7.9",
|
|
793
790
|
"category": "Agent",
|
|
794
791
|
"source": {
|
|
795
792
|
"kind": "builtin",
|
|
796
793
|
"package": "@coda-console/claude",
|
|
797
794
|
"tag": "latest",
|
|
798
|
-
"version": "1.7.
|
|
799
|
-
"integrity": "sha512-
|
|
795
|
+
"version": "1.7.9",
|
|
796
|
+
"integrity": "sha512-MfJDrhFrzJ4rAdI1hSGd60ILdZY4mtklOjDoc0y1YfWFYrCpOn2s/nAGYbEuiD9JNP5KpzPP56xF39GV5UtMiQ==",
|
|
800
797
|
"repo": "https://github.com/coda-console/coda-plugins.git",
|
|
801
798
|
"path": "plugins/claude"
|
|
802
799
|
},
|
|
@@ -879,14 +876,14 @@
|
|
|
879
876
|
"id": "codex",
|
|
880
877
|
"displayName": "Codex",
|
|
881
878
|
"description": "Codex Agent:Coda 自带的入口运行 codex-acp,报告子 Agent、后台命令与命令的自动审核。额度与登录由账号来源插件接管;未接入账号来源时使用 Codex 自己的登录面板。",
|
|
882
|
-
"version": "1.
|
|
879
|
+
"version": "1.9.0",
|
|
883
880
|
"category": "Agent",
|
|
884
881
|
"source": {
|
|
885
882
|
"kind": "builtin",
|
|
886
883
|
"package": "@coda-console/codex",
|
|
887
884
|
"tag": "latest",
|
|
888
|
-
"version": "1.
|
|
889
|
-
"integrity": "sha512-
|
|
885
|
+
"version": "1.9.0",
|
|
886
|
+
"integrity": "sha512-TQMgUt2mVoacCOZDs+weWsJnQGGrXkgNuWtRCgVEAbhwFIy6aew28KMqi64TnurrYPR0PaM3hO/biyqulqr52Q==",
|
|
890
887
|
"repo": "https://github.com/coda-console/coda-plugins.git",
|
|
891
888
|
"path": "plugins/codex"
|
|
892
889
|
},
|
|
@@ -943,7 +940,7 @@
|
|
|
943
940
|
"command": "exec \"$CODA_NODE\" \"$CODA_PLUGIN_PATH/agent/entry.mjs\"",
|
|
944
941
|
"modes": {
|
|
945
942
|
"title": "审批模式",
|
|
946
|
-
"unset": "
|
|
943
|
+
"unset": "完全访问",
|
|
947
944
|
"auto": "agent",
|
|
948
945
|
"full": "agent-full-access"
|
|
949
946
|
},
|
|
@@ -1035,14 +1032,14 @@
|
|
|
1035
1032
|
"id": "composer",
|
|
1036
1033
|
"displayName": "输入框模式",
|
|
1037
1034
|
"description": "输入框可同时开启的五种模式:交接到新会话、从任意会话创建子会话、打 ! 执行命令、Ultra 协调模式,以及按周期重复任务的循环模式。Ultra 按需求交付,通过关联的开发流程委派功能,主 Agent 亲自审查、判断达标,统一验收与批准后按序合并、部署并在真实环境验证。",
|
|
1038
|
-
"version": "3.
|
|
1035
|
+
"version": "3.8.0",
|
|
1039
1036
|
"category": "工作流程",
|
|
1040
1037
|
"source": {
|
|
1041
1038
|
"kind": "builtin",
|
|
1042
1039
|
"package": "@coda-console/composer",
|
|
1043
1040
|
"tag": "latest",
|
|
1044
|
-
"version": "3.
|
|
1045
|
-
"integrity": "sha512-
|
|
1041
|
+
"version": "3.8.0",
|
|
1042
|
+
"integrity": "sha512-E/aeIb0xSFvRfPKXo2e4sRDpu7Y7BmqcPzQwRleIEQZiNFPwH5gVpDqUQkXmvyLjdP0fz6sCsT+JWC6Hmn2b+A==",
|
|
1046
1043
|
"repo": "https://github.com/coda-console/coda-plugins.git",
|
|
1047
1044
|
"path": "plugins/composer"
|
|
1048
1045
|
},
|
|
@@ -1454,14 +1451,14 @@
|
|
|
1454
1451
|
"id": "kimi",
|
|
1455
1452
|
"displayName": "Kimi Code",
|
|
1456
1453
|
"description": "Kimi Code Agent:Coda 的入口在运行机的 kimi acp 与 Coda 之间转发,读 Kimi 的会话文件报出后台命令与子 Agent;资源页的「Kimi」面板显示账号与额度,可从 Coda 安装和登录。",
|
|
1457
|
-
"version": "1.2.
|
|
1454
|
+
"version": "1.2.4",
|
|
1458
1455
|
"category": "Agent",
|
|
1459
1456
|
"source": {
|
|
1460
1457
|
"kind": "builtin",
|
|
1461
1458
|
"package": "@coda-console/kimi",
|
|
1462
1459
|
"tag": "latest",
|
|
1463
|
-
"version": "1.2.
|
|
1464
|
-
"integrity": "sha512-
|
|
1460
|
+
"version": "1.2.4",
|
|
1461
|
+
"integrity": "sha512-Mg4mHnzuWASYcjJYFzCnYm23eML9DZKTIkVQHMQKFPw9vknbIBWOz3d/C2kSAFudR3RuLXAxLtO3EgdEGOssAw==",
|
|
1465
1462
|
"repo": "https://github.com/coda-console/coda-plugins.git",
|
|
1466
1463
|
"path": "plugins/kimi"
|
|
1467
1464
|
},
|
|
@@ -21,7 +21,7 @@ export const composerType = { kind: 'composers', participants: () => [],
|
|
|
21
21
|
spec: { ...object({ thread: string, project: string, modes: array(object({ mode, values })) }, ['modes']),
|
|
22
22
|
oneOf: [{ required: ['thread'], not: { required: ['project'] } }, { required: ['project'], not: { required: ['thread'] } }] },
|
|
23
23
|
status: object({ modes: array(object({ mode, sent: { type: 'integer', minimum: 0 }, changedSinceSent: { type: 'boolean' }, presets: { type: 'object', additionalProperties: array(object({ name: {}, values: array(values) })) } })) }) };
|
|
24
|
-
const tell = array({ type: 'string', minLength: 1,
|
|
24
|
+
const tell = array({ type: 'string', minLength: 1, pattern:'^[^\\u0000]*\\S[^\\u0000]*$' });
|
|
25
25
|
const targets = array(target), divert = { type: 'boolean' };
|
|
26
26
|
export const submissionType = { kind: 'submissions',
|
|
27
27
|
participants: object => object.spec.modes.map(({ mode }) => { const [plugin, key] = mode.split('/'); return { plugin, key }; }),
|
|
@@ -136,7 +136,7 @@ export function readPlugin(dir, source) {
|
|
|
136
136
|
// The entry as one path in its directory (`./view/a.html`, `view//a.html` are `view/a.html`): the clients load it by that.
|
|
137
137
|
views: (contributes.views ?? []).map(v => ({ id: v.id, title: v.title, entry: posix.normalize(v.entry), ...(v.in?.length ? { in: [...v.in] } : {}),
|
|
138
138
|
...(v.icon ? { icon: v.icon } : {}), ...(v.handles?.length ? { handles: [...v.handles] } : {}), ...(v.readout ? { readout: v.readout } : {}),
|
|
139
|
-
...(v.checkout ? { checkout: v.checkout } : {}) })),
|
|
139
|
+
...(v.checkout ? { checkout: v.checkout } : {}), ...(v.frame ? { frame: v.frame } : {}) })),
|
|
140
140
|
...(contributes.composerModes?.length ? { composerModes: composerModes(contributes.composerModes) } : {}),
|
|
141
141
|
...(Object.keys(offers).length ? { offers } : {}),
|
|
142
142
|
agents: agentDeclarations(contributes.agents, dir),
|
package/check/coda/contract.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"commit": "
|
|
2
|
+
"commit": "b133b738adb57f44665c89f5a8ed8b1ebc84920c",
|
|
3
3
|
"packages": {
|
|
4
4
|
"@0dep/piso": "5.2.0",
|
|
5
5
|
"@agentclientprotocol/sdk": "1.4.0",
|
|
6
|
-
"@coda-console/protocol": "2.
|
|
6
|
+
"@coda-console/protocol": "2.4.0",
|
|
7
7
|
"ajv": "8.20.0",
|
|
8
8
|
"yaml": "2.9.1"
|
|
9
9
|
},
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
"check/coda/components/protocols/provider-definition.mjs": "98327f1900f84109fd5493d2de8f683eb020754245f3049869ca3b30468821f9",
|
|
13
13
|
"check/coda/components/protocols/types.mjs": "94bb3f30a3fcbe50e5a5c286fa84f4bd80951932adb582046a7820622415a229",
|
|
14
14
|
"check/coda/adapters/provider-api.mjs": "8a2b5d7b4a3766f9e28270bd355f4b4081d3069b4cedad120671995bea160253",
|
|
15
|
-
"check/coda/adapters/admission-api.mjs": "
|
|
16
|
-
"check/coda/components/composers/schemas.mjs": "
|
|
15
|
+
"check/coda/adapters/admission-api.mjs": "461b5a8a1ad73d7afed5db308813d02324e29c643b8e773ad127d4bdb00fb524",
|
|
16
|
+
"check/coda/components/composers/schemas.mjs": "282052bb58bdbf612a55b275456c6fea04d979136cf8a3700a4641380e501b3f",
|
|
17
17
|
"check/coda/components/plugins/agent-plugins.mjs": "d117702f83c988aa89c2e5ae26aafd6ae3e8ba0829adaeedf9e8640f5f8282be",
|
|
18
18
|
"check/coda/components/plugins/plugin-extensions.mjs": "4d7963185195ba6d21a4e49a66987613d5892210b1eb1dc02cffb7b816407776",
|
|
19
|
-
"check/coda/components/plugins/plugin-rules.mjs": "
|
|
19
|
+
"check/coda/components/plugins/plugin-rules.mjs": "e0fd9c1dade361667337a4c680e399f02ddd557af79e476bcecd91daebcf81d5",
|
|
20
20
|
"check/coda/components/plugins/plugin-source-rules.mjs": "d894d55a3272df5ef3b108b68820c64aefdf6b69346404b58954f2a3503cb4a5",
|
|
21
21
|
"check/coda/components/plugins/skill-document.mjs": "c5b5e815c42cd836572f7b60e22a46af6ac607fd9df0170fa36f955825636ce6",
|
|
22
22
|
"check/coda/components/prompt-recovery/prompt-recovery.mjs": "f43f21d24c19a58113d3304f9248225b12080ab00ed15eab74bf7b94642732de",
|
|
@@ -33,6 +33,6 @@
|
|
|
33
33
|
"check/coda/resources/plugins/resources/panels/panels.mjs": "9e25cfbc16ed9f68101fc7bfc34b8056c13a29d2368c5561e65e333233eb921e",
|
|
34
34
|
"check/coda/resources/plugins/resources/panels/rules.mjs": "8418ed83b796f18047c154d8dea8dca7d98244af8ddfe3ddf188520c59324ee8",
|
|
35
35
|
"check/coda/resources/plugins/resources/panels/sign-in.mjs": "1271a24e33b1b882a1fb9bee03b8e240db8b9bee1b5208f0e1c84499cfb1be7e",
|
|
36
|
-
"check/coda/builtin.json": "
|
|
36
|
+
"check/coda/builtin.json": "837c8cc80b5313f41c0e452da6355183b7e9070eb44e00a21e30cf59eff38e9e"
|
|
37
37
|
}
|
|
38
38
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coda-console/plugin-check",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.32",
|
|
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": "1.4.0",
|
|
27
|
-
"@coda-console/protocol": "2.
|
|
27
|
+
"@coda-console/protocol": "2.4.0",
|
|
28
28
|
"ajv": "8.20.0",
|
|
29
29
|
"yaml": "2.9.1"
|
|
30
30
|
},
|