@coda-console/plugin-check 0.8.5 → 0.8.6
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.
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
import { admissionFeatures } from '../domain/resource-admission.mjs';
|
|
2
2
|
|
|
3
3
|
// The module's local ledger API, exported unchanged to plugin-check.
|
|
4
|
-
export function admissionAPI(call) {
|
|
4
|
+
export function admissionAPI(call, handlers = new Map()) {
|
|
5
5
|
return {
|
|
6
|
+
handle(operation, fn) {
|
|
7
|
+
if (!['lend', 'return'].includes(operation) || typeof fn !== 'function') throw new TypeError('resources.handle(lend|return, fn)');
|
|
8
|
+
if (handlers.has(operation)) throw new TypeError(`资源钩子已登记:${operation}`);
|
|
9
|
+
handlers.set(operation, fn);
|
|
10
|
+
return { dispose: () => handlers.delete(operation) };
|
|
11
|
+
},
|
|
12
|
+
declareEntities: entities => call('declareEntities', [entities]),
|
|
13
|
+
declareLinks: links => call('declareLinks', [links]),
|
|
14
|
+
links: entity => call('links', [entity]),
|
|
6
15
|
features: admissionFeatures,
|
|
7
16
|
declareGroups: groups => call('declareGroups', [groups]),
|
|
8
17
|
groupOwner: name => call('groupOwner', [name]),
|
package/check/coda/builtin.json
CHANGED
|
@@ -1317,7 +1317,7 @@
|
|
|
1317
1317
|
"id": "composer",
|
|
1318
1318
|
"displayName": "输入框模式",
|
|
1319
1319
|
"description": "交接、子会话、! 命令、Ultra 与循环",
|
|
1320
|
-
"version": "5.1.
|
|
1320
|
+
"version": "5.1.1",
|
|
1321
1321
|
"category": "工作流程",
|
|
1322
1322
|
"icon": {
|
|
1323
1323
|
"symbol": "character.cursor.ibeam",
|
|
@@ -1328,8 +1328,8 @@
|
|
|
1328
1328
|
"kind": "builtin",
|
|
1329
1329
|
"package": "@coda-console/composer",
|
|
1330
1330
|
"tag": "latest",
|
|
1331
|
-
"version": "5.1.
|
|
1332
|
-
"integrity": "sha512-
|
|
1331
|
+
"version": "5.1.1",
|
|
1332
|
+
"integrity": "sha512-mNqhja3Lw5nrBX7i+r+iU+i0wShOUs7OtEOedstqnMkY6WQPiimOATz43AYR7mKblbfLDB9zh+rrx8BUeb90HA==",
|
|
1333
1333
|
"repo": "https://github.com/coda-console/coda-plugins.git",
|
|
1334
1334
|
"path": "plugins/composer"
|
|
1335
1335
|
},
|
|
@@ -1377,7 +1377,7 @@
|
|
|
1377
1377
|
],
|
|
1378
1378
|
"services": [],
|
|
1379
1379
|
"agents": [],
|
|
1380
|
-
"instructions": "要把改动合进默认分支时,先用 workflow_run 发起 kickoff(给 title、goal、建议的 way
|
|
1380
|
+
"instructions": "要把改动合进默认分支时,先用 workflow_run 发起 kickoff(给 title、goal、建议的 way、要不要设备验收;开在别的目录或要指定分支时给 branch),用户在开工卡上选定后,流程会把下一步交给你;不要先改完再补开开发流程。",
|
|
1381
1381
|
"commands": [],
|
|
1382
1382
|
"capabilities": [],
|
|
1383
1383
|
"groups": [],
|
|
@@ -1907,7 +1907,7 @@
|
|
|
1907
1907
|
"id": "review",
|
|
1908
1908
|
"displayName": "PR 生命流程",
|
|
1909
1909
|
"description": "PR 从检查、评审到批准合并;简易开发",
|
|
1910
|
-
"version": "2.
|
|
1910
|
+
"version": "2.15.0",
|
|
1911
1911
|
"category": "工作流程",
|
|
1912
1912
|
"icon": {
|
|
1913
1913
|
"symbol": "checkmark.bubble.fill",
|
|
@@ -1918,8 +1918,8 @@
|
|
|
1918
1918
|
"kind": "builtin",
|
|
1919
1919
|
"package": "@coda-console/review",
|
|
1920
1920
|
"tag": "latest",
|
|
1921
|
-
"version": "2.
|
|
1922
|
-
"integrity": "sha512-
|
|
1921
|
+
"version": "2.15.0",
|
|
1922
|
+
"integrity": "sha512-YSVt911nBNnBQo3oePfQxnXNeKfFg+QvJd8YkPqKBWXP5OYyO8NrDg48PNnwav8SztVDT6OO42iOw4UsQwebLg==",
|
|
1923
1923
|
"repo": "https://github.com/coda-console/coda-plugins.git",
|
|
1924
1924
|
"path": "plugins/review"
|
|
1925
1925
|
},
|
|
@@ -139,7 +139,7 @@ export function readPlugin(dir, source, points = CONTRIBUTION_POINTS) {
|
|
|
139
139
|
// The entry as one path in its directory (`./view/a.html`, `view//a.html` are `view/a.html`): the clients load it by that.
|
|
140
140
|
views: (contributes.views ?? []).map(v => ({ id: v.id, title: v.title, entry: posix.normalize(v.entry), ...(v.in?.length ? { in: [...v.in] } : {}),
|
|
141
141
|
...(v.icon ? { icon: v.icon } : {}), ...(v.handles?.length ? { handles: [...v.handles] } : {}), ...(v.readout ? { readout: v.readout } : {}),
|
|
142
|
-
...(v.checkout ? { checkout: v.checkout } : {}), ...(v.frame ? { frame: v.frame } : {}) })),
|
|
142
|
+
...(v.checkout ? { checkout: v.checkout } : {}), ...(v.frame ? { frame: v.frame } : {}), ...(v.provides?.length ? { provides: [...v.provides] } : {}) })),
|
|
143
143
|
...(contributes.protocols?.length ? { protocols: structuredClone(contributes.protocols) } : {}),
|
|
144
144
|
...(contributes.protocolImplementations?.length ? { protocolImplementations: [...contributes.protocolImplementations] } : {}),
|
|
145
145
|
...(Object.keys(offers).length ? { offers } : {}),
|
|
@@ -331,7 +331,7 @@ export function contributions(plugin, catalog = new Map()) {
|
|
|
331
331
|
// The pages it opens in the clients, by name, with where they stay and their icon there: they run in the client's
|
|
332
332
|
// sandbox, not as commands here.
|
|
333
333
|
...(plugin.views?.length ? { views: plugin.views.map(v => ({ id: v.id, title: v.title, ...(v.in ? { in: v.in } : {}), ...(v.icon ? { icon: v.icon } : {}), ...(v.handles ? { handles: v.handles } : {}), ...(v.readout ? { readout: v.readout } : {}),
|
|
334
|
-
...(v.checkout ? { checkout: v.checkout } : {}) })) } : {}),
|
|
334
|
+
...(v.checkout ? { checkout: v.checkout } : {}), ...(v.provides ? { provides: v.provides } : {}) })) } : {}),
|
|
335
335
|
...Object.assign({}, ...[...CONTRIBUTION_POINTS.values()].map(point => point.confirm?.(plugin))),
|
|
336
336
|
extensions: plugin.extensions.map(e => ({ plugin: e.plugin, point: e.point, command: e.command })),
|
|
337
337
|
// What it writes for points under keys of `contributes` (the resources plugin's panels): by point, how many and the
|
package/check/coda/contract.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"commit": "
|
|
2
|
+
"commit": "8cb0da14acae31719a5021e1d5e04aa705f63175",
|
|
3
3
|
"packages": {
|
|
4
4
|
"@0dep/piso": "5.2.0",
|
|
5
5
|
"@agentclientprotocol/sdk": "1.4.0",
|
|
6
|
-
"@coda-console/protocol": "5.
|
|
6
|
+
"@coda-console/protocol": "5.10.0",
|
|
7
7
|
"ajv": "8.20.0",
|
|
8
8
|
"yaml": "2.9.1"
|
|
9
9
|
},
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"check/coda/components/protocols/creation.mjs": "2b4a400d3064af4b5106077dc783c567910fef3c47b2d52af3f0d838c5accf19",
|
|
13
13
|
"check/coda/components/protocols/types.mjs": "6876689142866bd45fc085951f6ea9e1fc303334e3657e97cc9cf5e277311248",
|
|
14
14
|
"check/coda/adapters/provider-api.mjs": "e8f622cc4d70dc641399b8a26d678d566006edd506893773b18a58f21fa8ed7b",
|
|
15
|
-
"check/coda/adapters/admission-api.mjs": "
|
|
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",
|
|
18
18
|
"check/coda/components/plugins/contribution-points.mjs": "2dade9fe4f3fa2b4e89f49a1ac4378ab2621e5ac542eb175967091f04568b45c",
|
|
@@ -20,8 +20,8 @@
|
|
|
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": "
|
|
24
|
-
"check/coda/components/plugins/plugin-source-rules.mjs": "
|
|
23
|
+
"check/coda/components/plugins/plugin-rules.mjs": "54e063391e1091e403364cc2dc1f34630ccba065996462a81e4b437f39ce0bef",
|
|
24
|
+
"check/coda/components/plugins/plugin-source-rules.mjs": "3e0e3267d43546c131255d7c13dea80959efad95be698fe1a4a0f6a211419364",
|
|
25
25
|
"check/coda/components/plugins/skill-document.mjs": "153ad3c096c7c9b7774bcf7dcc0ba603c962ee1ac8697c8a71e3f2c9ba9c92e6",
|
|
26
26
|
"check/coda/components/prompt-recovery/prompt-recovery.mjs": "f43f21d24c19a58113d3304f9248225b12080ab00ed15eab74bf7b94642732de",
|
|
27
27
|
"check/coda/components/session-config/commands.mjs": "7ce6b7872b3bf4dbc73b2af9a53cca4b5356ad32656903218757f449bb5abed4",
|
|
@@ -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": "b2f7cb8f69bf270b84bbe4c49bfe27440482fba729eb53287cd4b5e2955943bd"
|
|
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.6",
|
|
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": "5.
|
|
27
|
+
"@coda-console/protocol": "5.10.0",
|
|
28
28
|
"ajv": "8.20.0",
|
|
29
29
|
"yaml": "2.9.1"
|
|
30
30
|
},
|