@tomflow/chatloop-tools 0.9.16 → 0.9.17
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/index.mjs +4 -0
- package/lib/gateway.mjs +15 -3
- package/lib/mcp-tool-router.mjs +50 -3
- package/node_modules/@tomflow/chatloop-context/README.md +240 -0
- package/node_modules/@tomflow/chatloop-context/bin/cli.mjs +48 -0
- package/node_modules/@tomflow/chatloop-context/capabilities/approval.mjs +151 -0
- package/node_modules/@tomflow/chatloop-context/capabilities/context.mjs +376 -0
- package/node_modules/@tomflow/chatloop-context/capabilities/document.mjs +266 -0
- package/node_modules/@tomflow/chatloop-context/capabilities/evidence.mjs +134 -0
- package/node_modules/@tomflow/chatloop-context/capabilities/presentation.mjs +82 -0
- package/node_modules/@tomflow/chatloop-context/capabilities/project.mjs +349 -0
- package/node_modules/@tomflow/chatloop-context/capabilities/sdk.mjs +72 -0
- package/node_modules/@tomflow/chatloop-context/capabilities/start.mjs +73 -0
- package/node_modules/@tomflow/chatloop-context/capabilities/task.mjs +507 -0
- package/node_modules/@tomflow/chatloop-context/capabilities.generated.mjs +11 -0
- package/node_modules/@tomflow/chatloop-context/docs/interfaces.md +182 -0
- package/node_modules/@tomflow/chatloop-context/docs/operator-and-migration.md +277 -0
- package/node_modules/@tomflow/chatloop-context/index.mjs +233 -0
- package/node_modules/@tomflow/chatloop-context/lib/api-log.mjs +86 -0
- package/node_modules/@tomflow/chatloop-context/lib/approval-policy.mjs +24 -0
- package/node_modules/@tomflow/chatloop-context/lib/capability-catalog.generated.json +1989 -0
- package/node_modules/@tomflow/chatloop-context/lib/capability-router.mjs +67 -0
- package/node_modules/@tomflow/chatloop-context/lib/cli-commands.mjs +280 -0
- package/node_modules/@tomflow/chatloop-context/lib/context-cli.mjs +298 -0
- package/node_modules/@tomflow/chatloop-context/lib/context-migration.mjs +280 -0
- package/node_modules/@tomflow/chatloop-context/lib/core/context.mjs +115 -0
- package/node_modules/@tomflow/chatloop-context/lib/core/evidence.mjs +51 -0
- package/node_modules/@tomflow/chatloop-context/lib/core/health.mjs +55 -0
- package/node_modules/@tomflow/chatloop-context/lib/core/migration.mjs +262 -0
- package/node_modules/@tomflow/chatloop-context/lib/core/project.mjs +246 -0
- package/node_modules/@tomflow/chatloop-context/lib/core/review.mjs +147 -0
- package/node_modules/@tomflow/chatloop-context/lib/core/run.mjs +343 -0
- package/node_modules/@tomflow/chatloop-context/lib/core/store.mjs +391 -0
- package/node_modules/@tomflow/chatloop-context/lib/core/task.mjs +166 -0
- package/node_modules/@tomflow/chatloop-context/lib/line-review.mjs +13 -0
- package/node_modules/@tomflow/chatloop-context/lib/methods.mjs +111 -0
- package/node_modules/@tomflow/chatloop-context/lib/operations.mjs +107 -0
- package/node_modules/@tomflow/chatloop-context/lib/orphan-operator.mjs +117 -0
- package/node_modules/@tomflow/chatloop-context/lib/process-inventory.mjs +20 -0
- package/node_modules/@tomflow/chatloop-context/lib/project-branch.mjs +312 -0
- package/node_modules/@tomflow/chatloop-context/lib/project-diagnostic.mjs +153 -0
- package/node_modules/@tomflow/chatloop-context/lib/project-guards.mjs +19 -0
- package/node_modules/@tomflow/chatloop-context/lib/project-store.mjs +115 -0
- package/node_modules/@tomflow/chatloop-context/lib/trusted-run.mjs +86 -0
- package/node_modules/@tomflow/chatloop-context/lib/workspace-operator.mjs +169 -0
- package/node_modules/@tomflow/chatloop-context/package.json +40 -0
- package/node_modules/@tomflow/chatloop-context/scripts/build-capabilities.mjs +114 -0
- package/node_modules/@tomflow/chatloop-extension/README.md +94 -0
- package/node_modules/@tomflow/chatloop-extension/actions.generated.mjs +11 -0
- package/node_modules/@tomflow/chatloop-extension/bin/cli.mjs +141 -0
- package/node_modules/@tomflow/chatloop-extension/bin/native-host.mjs +109 -0
- package/node_modules/@tomflow/chatloop-extension/capabilities/chat_dom.mjs +1 -0
- package/node_modules/@tomflow/chatloop-extension/capabilities/chat_screenshot.mjs +1 -0
- package/node_modules/@tomflow/chatloop-extension/capabilities/chat_text.mjs +1 -0
- package/node_modules/@tomflow/chatloop-extension/capabilities/clean.mjs +1 -0
- package/node_modules/@tomflow/chatloop-extension/capabilities/continue.mjs +1 -0
- package/node_modules/@tomflow/chatloop-extension/capabilities/handoff.mjs +1 -0
- package/node_modules/@tomflow/chatloop-extension/capabilities/reload.mjs +1 -0
- package/node_modules/@tomflow/chatloop-extension/capabilities/start.mjs +1 -0
- package/node_modules/@tomflow/chatloop-extension/capabilities/status.mjs +1 -0
- package/node_modules/@tomflow/chatloop-extension/extension/actions/clean.js +120 -0
- package/node_modules/@tomflow/chatloop-extension/extension/actions/common.js +180 -0
- package/node_modules/@tomflow/chatloop-extension/extension/actions/continue.js +322 -0
- package/node_modules/@tomflow/chatloop-extension/extension/actions/dom.js +2 -0
- package/node_modules/@tomflow/chatloop-extension/extension/actions/handoff.js +378 -0
- package/node_modules/@tomflow/chatloop-extension/extension/actions/index.js +2 -0
- package/node_modules/@tomflow/chatloop-extension/extension/actions/model-intent.js +54 -0
- package/node_modules/@tomflow/chatloop-extension/extension/actions/read-mode.js +9 -0
- package/node_modules/@tomflow/chatloop-extension/extension/actions/reload.js +20 -0
- package/node_modules/@tomflow/chatloop-extension/extension/actions/screenshot.js +69 -0
- package/node_modules/@tomflow/chatloop-extension/extension/actions/start.js +287 -0
- package/node_modules/@tomflow/chatloop-extension/extension/actions/status.js +23 -0
- package/node_modules/@tomflow/chatloop-extension/extension/actions/text.js +2 -0
- package/node_modules/@tomflow/chatloop-extension/extension/background.js +16 -0
- package/node_modules/@tomflow/chatloop-extension/extension/clean.html +5 -0
- package/node_modules/@tomflow/chatloop-extension/extension/content.js +40 -0
- package/node_modules/@tomflow/chatloop-extension/extension/continue.html +9 -0
- package/node_modules/@tomflow/chatloop-extension/extension/dom.html +17 -0
- package/node_modules/@tomflow/chatloop-extension/extension/handoff.html +9 -0
- package/node_modules/@tomflow/chatloop-extension/extension/loop/action-catalog.generated.js +2 -0
- package/node_modules/@tomflow/chatloop-extension/extension/loop/api-aspect.generated.js +275 -0
- package/node_modules/@tomflow/chatloop-extension/extension/loop/api-observation-queue.generated.js +76 -0
- package/node_modules/@tomflow/chatloop-extension/extension/loop/core.js +107 -0
- package/node_modules/@tomflow/chatloop-extension/extension/loop/index.js +36 -0
- package/node_modules/@tomflow/chatloop-extension/extension/loop/observer-approval.js +227 -0
- package/node_modules/@tomflow/chatloop-extension/extension/loop/observer-inspect.js +144 -0
- package/node_modules/@tomflow/chatloop-extension/extension/loop/observer-poll.js +171 -0
- package/node_modules/@tomflow/chatloop-extension/extension/loop/observer-recovery.js +109 -0
- package/node_modules/@tomflow/chatloop-extension/extension/loop/observer.js +154 -0
- package/node_modules/@tomflow/chatloop-extension/extension/loop/resources.js +254 -0
- package/node_modules/@tomflow/chatloop-extension/extension/manifest.json +42 -0
- package/node_modules/@tomflow/chatloop-extension/extension/popup.html +25 -0
- package/node_modules/@tomflow/chatloop-extension/extension/popup.js +93 -0
- package/node_modules/@tomflow/chatloop-extension/extension/reload.html +17 -0
- package/node_modules/@tomflow/chatloop-extension/extension/screenshot.html +17 -0
- package/node_modules/@tomflow/chatloop-extension/extension/start.html +6 -0
- package/node_modules/@tomflow/chatloop-extension/extension/status.html +6 -0
- package/node_modules/@tomflow/chatloop-extension/extension/text.html +17 -0
- package/node_modules/@tomflow/chatloop-extension/extension/worker/action-result.js +136 -0
- package/node_modules/@tomflow/chatloop-extension/extension/worker/action-take.js +220 -0
- package/node_modules/@tomflow/chatloop-extension/extension/worker/admission.js +122 -0
- package/node_modules/@tomflow/chatloop-extension/extension/worker/adopt-prepare.js +155 -0
- package/node_modules/@tomflow/chatloop-extension/extension/worker/adopt-recovery.js +185 -0
- package/node_modules/@tomflow/chatloop-extension/extension/worker/adopt-result.js +120 -0
- package/node_modules/@tomflow/chatloop-extension/extension/worker/bootstrap.js +172 -0
- package/node_modules/@tomflow/chatloop-extension/extension/worker/manual.js +165 -0
- package/node_modules/@tomflow/chatloop-extension/extension/worker/readiness.js +244 -0
- package/node_modules/@tomflow/chatloop-extension/extension/worker/router.js +181 -0
- package/node_modules/@tomflow/chatloop-extension/extension/worker/scheduler.js +147 -0
- package/node_modules/@tomflow/chatloop-extension/extension/worker/turn-failure.js +197 -0
- package/node_modules/@tomflow/chatloop-extension/extension/worker/turn-finished.js +200 -0
- package/node_modules/@tomflow/chatloop-extension/index.mjs +71 -0
- package/node_modules/@tomflow/chatloop-extension/lib/action-routing.mjs +18 -0
- package/node_modules/@tomflow/chatloop-extension/lib/api-observation-queue.mjs +74 -0
- package/node_modules/@tomflow/chatloop-extension/lib/bridge.mjs +208 -0
- package/node_modules/@tomflow/chatloop-extension/lib/browser-launch.mjs +40 -0
- package/node_modules/@tomflow/chatloop-extension/lib/context-binding.mjs +45 -0
- package/node_modules/@tomflow/chatloop-extension/lib/context-ipc.mjs +111 -0
- package/node_modules/@tomflow/chatloop-extension/lib/owner-evidence.mjs +67 -0
- package/node_modules/@tomflow/chatloop-extension/lib/session-file.mjs +120 -0
- package/node_modules/@tomflow/chatloop-extension/package.json +38 -0
- package/node_modules/@tomflow/chatloop-extension/scripts/build-actions.mjs +133 -0
- package/node_modules/@tomflow/chatloop-trace/README.md +105 -0
- package/node_modules/@tomflow/chatloop-trace/events/context.api.mjs +23 -0
- package/node_modules/@tomflow/chatloop-trace/events/typed.api.call.mjs +22 -0
- package/node_modules/@tomflow/chatloop-trace/events.generated.mjs +4 -0
- package/node_modules/@tomflow/chatloop-trace/index.mjs +59 -0
- package/node_modules/@tomflow/chatloop-trace/lib/api-aspect.mjs +273 -0
- package/node_modules/@tomflow/chatloop-trace/lib/trace-reader.mjs +265 -0
- package/node_modules/@tomflow/chatloop-trace/lib/trace.mjs +205 -0
- package/node_modules/@tomflow/chatloop-trace/package.json +30 -0
- package/node_modules/@tomflow/chatloop-trace/scripts/build-events.mjs +68 -0
- package/node_modules/ps-list/index.d.ts +76 -0
- package/node_modules/ps-list/index.js +366 -0
- package/node_modules/ps-list/license +9 -0
- package/node_modules/ps-list/package.json +44 -0
- package/node_modules/ps-list/readme.md +56 -0
- package/node_modules/ps-list/vendor/fastlist-0.3.0-x64.exe +0 -0
- package/node_modules/ps-list/vendor/fastlist-0.3.0-x86.exe +0 -0
- package/package.json +23 -8
- package/providers/form.mjs +68 -8
- package/scripts/build-form-app.mjs +27 -0
- package/ui/form/review-app.js +128 -0
- package/ui/form/review.html +859 -0
- package/ui/form/review.template.html +45 -0
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
// One self-contained Context capability contract. Registered at build time.
|
|
2
|
+
export const capability={
|
|
3
|
+
"id": "evidence",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"purpose": "Store evidence references; collection remains with external providers",
|
|
6
|
+
"startWith": "evidence.list",
|
|
7
|
+
"methods": [
|
|
8
|
+
{
|
|
9
|
+
"id": "evidence.list",
|
|
10
|
+
"group": "evidence",
|
|
11
|
+
"mode": "read",
|
|
12
|
+
"description": "List task evidence references and verification state.",
|
|
13
|
+
"inputSchema": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [
|
|
16
|
+
"operation",
|
|
17
|
+
"projectId",
|
|
18
|
+
"taskId"
|
|
19
|
+
],
|
|
20
|
+
"additionalProperties": false,
|
|
21
|
+
"properties": {
|
|
22
|
+
"operation": {
|
|
23
|
+
"const": "evidence.list"
|
|
24
|
+
},
|
|
25
|
+
"projectId": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
28
|
+
},
|
|
29
|
+
"taskId": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"order": 7,
|
|
36
|
+
"route": {
|
|
37
|
+
"kind": "core",
|
|
38
|
+
"method": "evidenceList",
|
|
39
|
+
"params": [
|
|
40
|
+
"projectId",
|
|
41
|
+
"taskId"
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"id": "evidence.attach",
|
|
47
|
+
"group": "evidence",
|
|
48
|
+
"mode": "write",
|
|
49
|
+
"description": "Attach a verified external evidence reference to one task.",
|
|
50
|
+
"inputSchema": {
|
|
51
|
+
"type": "object",
|
|
52
|
+
"required": [
|
|
53
|
+
"operation",
|
|
54
|
+
"projectId",
|
|
55
|
+
"taskId",
|
|
56
|
+
"expectedTaskRevision",
|
|
57
|
+
"locator",
|
|
58
|
+
"role",
|
|
59
|
+
"expectedStoreEpoch",
|
|
60
|
+
"writeRequestId"
|
|
61
|
+
],
|
|
62
|
+
"additionalProperties": false,
|
|
63
|
+
"properties": {
|
|
64
|
+
"operation": {
|
|
65
|
+
"const": "evidence.attach"
|
|
66
|
+
},
|
|
67
|
+
"projectId": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
70
|
+
},
|
|
71
|
+
"taskId": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
74
|
+
},
|
|
75
|
+
"expectedTaskRevision": {
|
|
76
|
+
"type": "integer",
|
|
77
|
+
"minimum": 1
|
|
78
|
+
},
|
|
79
|
+
"locator": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"minLength": 1,
|
|
82
|
+
"maxLength": 4096
|
|
83
|
+
},
|
|
84
|
+
"role": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"pattern": "^[a-z][a-z0-9_-]{0,63}$"
|
|
87
|
+
},
|
|
88
|
+
"expectedStoreEpoch": {
|
|
89
|
+
"type": "string",
|
|
90
|
+
"minLength": 10,
|
|
91
|
+
"maxLength": 64
|
|
92
|
+
},
|
|
93
|
+
"writeRequestId": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"minLength": 8,
|
|
96
|
+
"maxLength": 128
|
|
97
|
+
},
|
|
98
|
+
"contentHash": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
101
|
+
},
|
|
102
|
+
"retention": {
|
|
103
|
+
"enum": [
|
|
104
|
+
"RETAINED",
|
|
105
|
+
"EXTERNAL",
|
|
106
|
+
"EPHEMERAL"
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
"expectedBindingRevision": {
|
|
110
|
+
"type": "integer",
|
|
111
|
+
"minimum": 0
|
|
112
|
+
},
|
|
113
|
+
"runRef": {
|
|
114
|
+
"type": "string",
|
|
115
|
+
"minLength": 8,
|
|
116
|
+
"maxLength": 256
|
|
117
|
+
},
|
|
118
|
+
"runCredential": {
|
|
119
|
+
"type": "string",
|
|
120
|
+
"pattern": "^[0-9a-f]{64}$"
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"order": 29,
|
|
125
|
+
"route": {
|
|
126
|
+
"kind": "core",
|
|
127
|
+
"method": "evidenceAttach",
|
|
128
|
+
"params": [
|
|
129
|
+
"$args"
|
|
130
|
+
]
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
]
|
|
134
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
// One self-contained Context capability contract. Registered at build time.
|
|
2
|
+
export const capability={
|
|
3
|
+
"id": "presentation",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"purpose": "Resolve incomplete R/P presentation evidence",
|
|
6
|
+
"startWith": "presentation.resolve",
|
|
7
|
+
"methods": [
|
|
8
|
+
{
|
|
9
|
+
"id": "presentation.resolve",
|
|
10
|
+
"group": "presentation",
|
|
11
|
+
"mode": "write",
|
|
12
|
+
"description": "Resolve an uncompleted R/P presentation attempt with evidence.",
|
|
13
|
+
"inputSchema": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [
|
|
16
|
+
"operation",
|
|
17
|
+
"projectId",
|
|
18
|
+
"taskId",
|
|
19
|
+
"issueId",
|
|
20
|
+
"outcome",
|
|
21
|
+
"sourceRef",
|
|
22
|
+
"expectedTaskRevision",
|
|
23
|
+
"expectedStoreEpoch",
|
|
24
|
+
"writeRequestId"
|
|
25
|
+
],
|
|
26
|
+
"additionalProperties": false,
|
|
27
|
+
"properties": {
|
|
28
|
+
"operation": {
|
|
29
|
+
"const": "presentation.resolve"
|
|
30
|
+
},
|
|
31
|
+
"projectId": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
34
|
+
},
|
|
35
|
+
"taskId": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
38
|
+
},
|
|
39
|
+
"issueId": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"minLength": 8,
|
|
42
|
+
"maxLength": 64
|
|
43
|
+
},
|
|
44
|
+
"outcome": {
|
|
45
|
+
"enum": [
|
|
46
|
+
"CANCELLED",
|
|
47
|
+
"FAILED",
|
|
48
|
+
"REJECTED"
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
"sourceRef": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"minLength": 8,
|
|
54
|
+
"maxLength": 256
|
|
55
|
+
},
|
|
56
|
+
"expectedTaskRevision": {
|
|
57
|
+
"type": "integer",
|
|
58
|
+
"minimum": 1
|
|
59
|
+
},
|
|
60
|
+
"expectedStoreEpoch": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"minLength": 10,
|
|
63
|
+
"maxLength": 64
|
|
64
|
+
},
|
|
65
|
+
"writeRequestId": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"minLength": 8,
|
|
68
|
+
"maxLength": 128
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"order": 25,
|
|
73
|
+
"route": {
|
|
74
|
+
"kind": "core",
|
|
75
|
+
"method": "presentationResolve",
|
|
76
|
+
"params": [
|
|
77
|
+
"$args"
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
};
|
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
// One self-contained Context capability contract. Registered at build time.
|
|
2
|
+
export const capability={
|
|
3
|
+
"id": "project",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"purpose": "Identity, authority, workspace resolution and immutable Project Materials",
|
|
6
|
+
"startWith": "project.open",
|
|
7
|
+
"methods": [
|
|
8
|
+
{
|
|
9
|
+
"id": "project.list",
|
|
10
|
+
"group": "project",
|
|
11
|
+
"mode": "read",
|
|
12
|
+
"description": "List authorized Project identities in a fixed {projects,incomplete,nextCursor,limit} page, default limit=30; use a visible Project cursor to continue.",
|
|
13
|
+
"inputSchema": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [
|
|
16
|
+
"operation"
|
|
17
|
+
],
|
|
18
|
+
"additionalProperties": false,
|
|
19
|
+
"properties": {
|
|
20
|
+
"operation": {
|
|
21
|
+
"const": "project.list"
|
|
22
|
+
},
|
|
23
|
+
"limit": {
|
|
24
|
+
"type": "integer",
|
|
25
|
+
"minimum": 1,
|
|
26
|
+
"maximum": 100
|
|
27
|
+
},
|
|
28
|
+
"cursor": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"order": 0,
|
|
35
|
+
"route": {
|
|
36
|
+
"kind": "adapter",
|
|
37
|
+
"name": "project.list"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"id": "project.authority",
|
|
42
|
+
"group": "project",
|
|
43
|
+
"mode": "read",
|
|
44
|
+
"description": "Check whether a project is actually managed and writable.",
|
|
45
|
+
"inputSchema": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"required": [
|
|
48
|
+
"operation",
|
|
49
|
+
"projectId"
|
|
50
|
+
],
|
|
51
|
+
"additionalProperties": false,
|
|
52
|
+
"properties": {
|
|
53
|
+
"operation": {
|
|
54
|
+
"const": "project.authority"
|
|
55
|
+
},
|
|
56
|
+
"projectId": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"order": 1,
|
|
63
|
+
"route": {
|
|
64
|
+
"kind": "core",
|
|
65
|
+
"method": "projectBusinessAuthority",
|
|
66
|
+
"params": [
|
|
67
|
+
"projectId"
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"id": "project.material.list",
|
|
73
|
+
"group": "project",
|
|
74
|
+
"mode": "read",
|
|
75
|
+
"description": "List versioned project materials without returning full bodies.",
|
|
76
|
+
"inputSchema": {
|
|
77
|
+
"type": "object",
|
|
78
|
+
"required": [
|
|
79
|
+
"operation",
|
|
80
|
+
"projectId"
|
|
81
|
+
],
|
|
82
|
+
"additionalProperties": false,
|
|
83
|
+
"properties": {
|
|
84
|
+
"operation": {
|
|
85
|
+
"const": "project.material.list"
|
|
86
|
+
},
|
|
87
|
+
"projectId": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"order": 2,
|
|
94
|
+
"route": {
|
|
95
|
+
"kind": "core",
|
|
96
|
+
"method": "projectMaterialList",
|
|
97
|
+
"params": [
|
|
98
|
+
"projectId"
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"id": "project.material.get",
|
|
104
|
+
"group": "project",
|
|
105
|
+
"mode": "read",
|
|
106
|
+
"description": "Read exact reviewed project Instructions or historical material by version.",
|
|
107
|
+
"inputSchema": {
|
|
108
|
+
"type": "object",
|
|
109
|
+
"required": [
|
|
110
|
+
"operation",
|
|
111
|
+
"projectId",
|
|
112
|
+
"materialId",
|
|
113
|
+
"version"
|
|
114
|
+
],
|
|
115
|
+
"additionalProperties": false,
|
|
116
|
+
"properties": {
|
|
117
|
+
"operation": {
|
|
118
|
+
"const": "project.material.get"
|
|
119
|
+
},
|
|
120
|
+
"projectId": {
|
|
121
|
+
"type": "string",
|
|
122
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
123
|
+
},
|
|
124
|
+
"materialId": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
127
|
+
},
|
|
128
|
+
"version": {
|
|
129
|
+
"type": "integer",
|
|
130
|
+
"minimum": 1
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"order": 3,
|
|
135
|
+
"route": {
|
|
136
|
+
"kind": "core",
|
|
137
|
+
"method": "projectMaterialGet",
|
|
138
|
+
"params": [
|
|
139
|
+
"projectId",
|
|
140
|
+
"materialId",
|
|
141
|
+
"version"
|
|
142
|
+
]
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"id": "project.resolve",
|
|
147
|
+
"group": "project",
|
|
148
|
+
"mode": "read",
|
|
149
|
+
"description": "Find authorized projects matching confirmed workspace roots; never guesses identity.",
|
|
150
|
+
"inputSchema": {
|
|
151
|
+
"type": "object",
|
|
152
|
+
"required": [
|
|
153
|
+
"operation",
|
|
154
|
+
"workspaceRoots"
|
|
155
|
+
],
|
|
156
|
+
"additionalProperties": false,
|
|
157
|
+
"properties": {
|
|
158
|
+
"operation": {
|
|
159
|
+
"const": "project.resolve"
|
|
160
|
+
},
|
|
161
|
+
"workspaceRoots": {
|
|
162
|
+
"type": "array",
|
|
163
|
+
"minItems": 1,
|
|
164
|
+
"maxItems": 16,
|
|
165
|
+
"items": {
|
|
166
|
+
"type": "string",
|
|
167
|
+
"maxLength": 4096
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"order": 13,
|
|
173
|
+
"route": {
|
|
174
|
+
"kind": "adapter",
|
|
175
|
+
"name": "project.resolve"
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"id": "project.open",
|
|
180
|
+
"group": "project",
|
|
181
|
+
"mode": "read",
|
|
182
|
+
"description": "Open an authorized project summary, current instruction reference and task candidates.",
|
|
183
|
+
"inputSchema": {
|
|
184
|
+
"type": "object",
|
|
185
|
+
"required": [
|
|
186
|
+
"operation",
|
|
187
|
+
"projectId"
|
|
188
|
+
],
|
|
189
|
+
"additionalProperties": false,
|
|
190
|
+
"properties": {
|
|
191
|
+
"operation": {
|
|
192
|
+
"const": "project.open"
|
|
193
|
+
},
|
|
194
|
+
"projectId": {
|
|
195
|
+
"type": "string",
|
|
196
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
"order": 14,
|
|
201
|
+
"route": {
|
|
202
|
+
"kind": "adapter",
|
|
203
|
+
"name": "project.open"
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"id": "project.material.put",
|
|
208
|
+
"group": "project",
|
|
209
|
+
"mode": "write",
|
|
210
|
+
"description": "Write one immutable project material version.",
|
|
211
|
+
"inputSchema": {
|
|
212
|
+
"type": "object",
|
|
213
|
+
"required": [
|
|
214
|
+
"operation",
|
|
215
|
+
"projectId",
|
|
216
|
+
"materialId",
|
|
217
|
+
"version",
|
|
218
|
+
"kind",
|
|
219
|
+
"body",
|
|
220
|
+
"expectedProjectRevision",
|
|
221
|
+
"expectedStoreEpoch",
|
|
222
|
+
"writeRequestId"
|
|
223
|
+
],
|
|
224
|
+
"additionalProperties": false,
|
|
225
|
+
"properties": {
|
|
226
|
+
"operation": {
|
|
227
|
+
"const": "project.material.put"
|
|
228
|
+
},
|
|
229
|
+
"projectId": {
|
|
230
|
+
"type": "string",
|
|
231
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
232
|
+
},
|
|
233
|
+
"materialId": {
|
|
234
|
+
"type": "string",
|
|
235
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
236
|
+
},
|
|
237
|
+
"version": {
|
|
238
|
+
"type": "integer",
|
|
239
|
+
"minimum": 1
|
|
240
|
+
},
|
|
241
|
+
"kind": {
|
|
242
|
+
"enum": [
|
|
243
|
+
"R",
|
|
244
|
+
"P",
|
|
245
|
+
"INSTRUCTIONS",
|
|
246
|
+
"HISTORY",
|
|
247
|
+
"LEGACY_EVIDENCE",
|
|
248
|
+
"REFERENCE"
|
|
249
|
+
]
|
|
250
|
+
},
|
|
251
|
+
"body": {
|
|
252
|
+
"type": "string",
|
|
253
|
+
"minLength": 1,
|
|
254
|
+
"maxLength": 4194304
|
|
255
|
+
},
|
|
256
|
+
"expectedProjectRevision": {
|
|
257
|
+
"type": "integer",
|
|
258
|
+
"minimum": 1
|
|
259
|
+
},
|
|
260
|
+
"expectedStoreEpoch": {
|
|
261
|
+
"type": "string",
|
|
262
|
+
"minLength": 10,
|
|
263
|
+
"maxLength": 64
|
|
264
|
+
},
|
|
265
|
+
"writeRequestId": {
|
|
266
|
+
"type": "string",
|
|
267
|
+
"minLength": 8,
|
|
268
|
+
"maxLength": 128
|
|
269
|
+
},
|
|
270
|
+
"sourcePath": {
|
|
271
|
+
"type": "string",
|
|
272
|
+
"minLength": 1,
|
|
273
|
+
"maxLength": 4096
|
|
274
|
+
},
|
|
275
|
+
"contentHash": {
|
|
276
|
+
"type": "string",
|
|
277
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
278
|
+
},
|
|
279
|
+
"provenance": {
|
|
280
|
+
"enum": [
|
|
281
|
+
"USER_AUTHORED",
|
|
282
|
+
"LEGACY_UNVERIFIED"
|
|
283
|
+
]
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
"order": 16,
|
|
288
|
+
"route": {
|
|
289
|
+
"kind": "core",
|
|
290
|
+
"method": "projectMaterialPut",
|
|
291
|
+
"params": [
|
|
292
|
+
"$args"
|
|
293
|
+
]
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"id": "project.patch",
|
|
298
|
+
"group": "project",
|
|
299
|
+
"mode": "write",
|
|
300
|
+
"description": "Change project context and explicit current Instructions reference with CAS.",
|
|
301
|
+
"inputSchema": {
|
|
302
|
+
"type": "object",
|
|
303
|
+
"required": [
|
|
304
|
+
"operation",
|
|
305
|
+
"projectId",
|
|
306
|
+
"expectedProjectRevision",
|
|
307
|
+
"sharedContext",
|
|
308
|
+
"expectedStoreEpoch",
|
|
309
|
+
"writeRequestId"
|
|
310
|
+
],
|
|
311
|
+
"additionalProperties": false,
|
|
312
|
+
"properties": {
|
|
313
|
+
"operation": {
|
|
314
|
+
"const": "project.patch"
|
|
315
|
+
},
|
|
316
|
+
"projectId": {
|
|
317
|
+
"type": "string",
|
|
318
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
319
|
+
},
|
|
320
|
+
"expectedProjectRevision": {
|
|
321
|
+
"type": "integer",
|
|
322
|
+
"minimum": 1
|
|
323
|
+
},
|
|
324
|
+
"sharedContext": {
|
|
325
|
+
"type": "object"
|
|
326
|
+
},
|
|
327
|
+
"expectedStoreEpoch": {
|
|
328
|
+
"type": "string",
|
|
329
|
+
"minLength": 10,
|
|
330
|
+
"maxLength": 64
|
|
331
|
+
},
|
|
332
|
+
"writeRequestId": {
|
|
333
|
+
"type": "string",
|
|
334
|
+
"minLength": 8,
|
|
335
|
+
"maxLength": 128
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
"order": 17,
|
|
340
|
+
"route": {
|
|
341
|
+
"kind": "core",
|
|
342
|
+
"method": "projectPatch",
|
|
343
|
+
"params": [
|
|
344
|
+
"$args"
|
|
345
|
+
]
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
]
|
|
349
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
// One self-contained Context capability contract. Registered at build time.
|
|
2
|
+
export const capability={
|
|
3
|
+
"id": "sdk",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"purpose": "Method discovery and exact schemas; no Project Store access",
|
|
6
|
+
"startWith": "sdk.methods.describe",
|
|
7
|
+
"methods": [
|
|
8
|
+
{
|
|
9
|
+
"id": "sdk.methods.list",
|
|
10
|
+
"group": "sdk",
|
|
11
|
+
"mode": "read",
|
|
12
|
+
"description": "Discover capability groups first (view=groups), then methods by group and exact schemas via sdk.methods.describe.",
|
|
13
|
+
"inputSchema": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [
|
|
16
|
+
"operation"
|
|
17
|
+
],
|
|
18
|
+
"additionalProperties": false,
|
|
19
|
+
"properties": {
|
|
20
|
+
"operation": {
|
|
21
|
+
"const": "sdk.methods.list"
|
|
22
|
+
},
|
|
23
|
+
"group": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"minLength": 1,
|
|
26
|
+
"maxLength": 64
|
|
27
|
+
},
|
|
28
|
+
"view": {
|
|
29
|
+
"enum": [
|
|
30
|
+
"methods",
|
|
31
|
+
"groups"
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"order": 11,
|
|
37
|
+
"route": {
|
|
38
|
+
"kind": "adapter",
|
|
39
|
+
"name": "sdk.methods.list"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"id": "sdk.methods.describe",
|
|
44
|
+
"group": "sdk",
|
|
45
|
+
"mode": "read",
|
|
46
|
+
"description": "Read the exact input schema, semantics and failure conditions of one method.",
|
|
47
|
+
"inputSchema": {
|
|
48
|
+
"type": "object",
|
|
49
|
+
"required": [
|
|
50
|
+
"operation",
|
|
51
|
+
"methodId"
|
|
52
|
+
],
|
|
53
|
+
"additionalProperties": false,
|
|
54
|
+
"properties": {
|
|
55
|
+
"operation": {
|
|
56
|
+
"const": "sdk.methods.describe"
|
|
57
|
+
},
|
|
58
|
+
"methodId": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"minLength": 3,
|
|
61
|
+
"maxLength": 128
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"order": 12,
|
|
66
|
+
"route": {
|
|
67
|
+
"kind": "adapter",
|
|
68
|
+
"name": "sdk.methods.describe"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
};
|