@tomflow/chatloop-tools 0.9.20 → 0.9.22
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/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 +10 -2
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
// One self-contained Context capability contract. Registered at build time.
|
|
2
|
+
export const capability={
|
|
3
|
+
"id": "start",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"purpose": "Persist a bounded Start lease after effective R/P approvals",
|
|
6
|
+
"startWith": "start.reserve",
|
|
7
|
+
"methods": [
|
|
8
|
+
{
|
|
9
|
+
"id": "start.reserve",
|
|
10
|
+
"group": "start",
|
|
11
|
+
"mode": "write",
|
|
12
|
+
"description": "Reserve a short-lived start lease after both effective R/P approvals.",
|
|
13
|
+
"inputSchema": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [
|
|
16
|
+
"operation",
|
|
17
|
+
"projectId",
|
|
18
|
+
"taskId",
|
|
19
|
+
"expectedTaskRevision",
|
|
20
|
+
"expectedApprovalRevision",
|
|
21
|
+
"expectedStoreEpoch",
|
|
22
|
+
"writeRequestId"
|
|
23
|
+
],
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"properties": {
|
|
26
|
+
"operation": {
|
|
27
|
+
"const": "start.reserve"
|
|
28
|
+
},
|
|
29
|
+
"projectId": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
32
|
+
},
|
|
33
|
+
"taskId": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
36
|
+
},
|
|
37
|
+
"expectedTaskRevision": {
|
|
38
|
+
"type": "integer",
|
|
39
|
+
"minimum": 1
|
|
40
|
+
},
|
|
41
|
+
"expectedApprovalRevision": {
|
|
42
|
+
"type": "integer",
|
|
43
|
+
"minimum": 1
|
|
44
|
+
},
|
|
45
|
+
"expectedStoreEpoch": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"minLength": 10,
|
|
48
|
+
"maxLength": 64
|
|
49
|
+
},
|
|
50
|
+
"writeRequestId": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"minLength": 8,
|
|
53
|
+
"maxLength": 128
|
|
54
|
+
},
|
|
55
|
+
"purpose": {
|
|
56
|
+
"enum": [
|
|
57
|
+
"NEW_EXECUTION",
|
|
58
|
+
"REPAIR_SAME_SCOPE"
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"order": 30,
|
|
64
|
+
"route": {
|
|
65
|
+
"kind": "core",
|
|
66
|
+
"method": "reserve",
|
|
67
|
+
"params": [
|
|
68
|
+
"$args"
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
};
|
|
@@ -0,0 +1,507 @@
|
|
|
1
|
+
// One self-contained Context capability contract. Registered at build time.
|
|
2
|
+
export const capability={
|
|
3
|
+
"id": "task",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"purpose": "Task status and revisions; raw get remains a distinct Registry read projection",
|
|
6
|
+
"startWith": "task.open",
|
|
7
|
+
"methods": [
|
|
8
|
+
{
|
|
9
|
+
"id": "task.list",
|
|
10
|
+
"group": "task",
|
|
11
|
+
"mode": "read",
|
|
12
|
+
"description": "List tasks in a fixed {tasks,incomplete,nextCursor,limit} page, default limit=30; continue with the last-visible task cursor.",
|
|
13
|
+
"inputSchema": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [
|
|
16
|
+
"operation",
|
|
17
|
+
"projectId"
|
|
18
|
+
],
|
|
19
|
+
"additionalProperties": false,
|
|
20
|
+
"properties": {
|
|
21
|
+
"operation": {
|
|
22
|
+
"const": "task.list"
|
|
23
|
+
},
|
|
24
|
+
"projectId": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
27
|
+
},
|
|
28
|
+
"limit": {
|
|
29
|
+
"type": "integer",
|
|
30
|
+
"minimum": 1,
|
|
31
|
+
"maximum": 100
|
|
32
|
+
},
|
|
33
|
+
"cursor": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"order": 4,
|
|
40
|
+
"route": {
|
|
41
|
+
"kind": "core",
|
|
42
|
+
"method": "taskList",
|
|
43
|
+
"params": [
|
|
44
|
+
"projectId",
|
|
45
|
+
{
|
|
46
|
+
"$object": {
|
|
47
|
+
"limit": {
|
|
48
|
+
"$field": "limit",
|
|
49
|
+
"$default": 30
|
|
50
|
+
},
|
|
51
|
+
"cursor": {
|
|
52
|
+
"$field": "cursor"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"id": "task.open",
|
|
61
|
+
"group": "task",
|
|
62
|
+
"mode": "read",
|
|
63
|
+
"description": "Load one chosen task current state and versioned recovery references.",
|
|
64
|
+
"inputSchema": {
|
|
65
|
+
"type": "object",
|
|
66
|
+
"required": [
|
|
67
|
+
"operation",
|
|
68
|
+
"projectId",
|
|
69
|
+
"taskId"
|
|
70
|
+
],
|
|
71
|
+
"additionalProperties": false,
|
|
72
|
+
"properties": {
|
|
73
|
+
"operation": {
|
|
74
|
+
"const": "task.open"
|
|
75
|
+
},
|
|
76
|
+
"projectId": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
79
|
+
},
|
|
80
|
+
"taskId": {
|
|
81
|
+
"type": "string",
|
|
82
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"order": 15,
|
|
87
|
+
"route": {
|
|
88
|
+
"kind": "adapter",
|
|
89
|
+
"name": "task.open"
|
|
90
|
+
},
|
|
91
|
+
"lifecycle": {
|
|
92
|
+
"surface": "public",
|
|
93
|
+
"note": "Task plus Store epoch and Project authority"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"id": "task.create",
|
|
98
|
+
"group": "task",
|
|
99
|
+
"mode": "write",
|
|
100
|
+
"description": "Create a project-scoped task with an initial DRAFT state.",
|
|
101
|
+
"inputSchema": {
|
|
102
|
+
"type": "object",
|
|
103
|
+
"required": [
|
|
104
|
+
"operation",
|
|
105
|
+
"projectId",
|
|
106
|
+
"taskId",
|
|
107
|
+
"title",
|
|
108
|
+
"expectedStoreEpoch",
|
|
109
|
+
"writeRequestId"
|
|
110
|
+
],
|
|
111
|
+
"additionalProperties": false,
|
|
112
|
+
"properties": {
|
|
113
|
+
"operation": {
|
|
114
|
+
"const": "task.create"
|
|
115
|
+
},
|
|
116
|
+
"projectId": {
|
|
117
|
+
"type": "string",
|
|
118
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
119
|
+
},
|
|
120
|
+
"taskId": {
|
|
121
|
+
"type": "string",
|
|
122
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
123
|
+
},
|
|
124
|
+
"title": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"minLength": 1,
|
|
127
|
+
"maxLength": 200
|
|
128
|
+
},
|
|
129
|
+
"expectedStoreEpoch": {
|
|
130
|
+
"type": "string",
|
|
131
|
+
"minLength": 10,
|
|
132
|
+
"maxLength": 64
|
|
133
|
+
},
|
|
134
|
+
"writeRequestId": {
|
|
135
|
+
"type": "string",
|
|
136
|
+
"minLength": 8,
|
|
137
|
+
"maxLength": 128
|
|
138
|
+
},
|
|
139
|
+
"objective": {
|
|
140
|
+
"type": "string",
|
|
141
|
+
"maxLength": 10000
|
|
142
|
+
},
|
|
143
|
+
"context": {
|
|
144
|
+
"type": "object"
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
"order": 18,
|
|
149
|
+
"route": {
|
|
150
|
+
"kind": "core",
|
|
151
|
+
"method": "taskCreate",
|
|
152
|
+
"params": [
|
|
153
|
+
"$args"
|
|
154
|
+
]
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"id": "task.reopen",
|
|
159
|
+
"group": "task",
|
|
160
|
+
"mode": "write",
|
|
161
|
+
"description": "Reopen a delivered task only for authorized same-scope repair.",
|
|
162
|
+
"inputSchema": {
|
|
163
|
+
"type": "object",
|
|
164
|
+
"required": [
|
|
165
|
+
"operation",
|
|
166
|
+
"projectId",
|
|
167
|
+
"taskId",
|
|
168
|
+
"expectedTaskRevision",
|
|
169
|
+
"reason",
|
|
170
|
+
"userTurn",
|
|
171
|
+
"expectedStoreEpoch",
|
|
172
|
+
"writeRequestId"
|
|
173
|
+
],
|
|
174
|
+
"additionalProperties": false,
|
|
175
|
+
"properties": {
|
|
176
|
+
"operation": {
|
|
177
|
+
"const": "task.reopen"
|
|
178
|
+
},
|
|
179
|
+
"projectId": {
|
|
180
|
+
"type": "string",
|
|
181
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
182
|
+
},
|
|
183
|
+
"taskId": {
|
|
184
|
+
"type": "string",
|
|
185
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
186
|
+
},
|
|
187
|
+
"expectedTaskRevision": {
|
|
188
|
+
"type": "integer",
|
|
189
|
+
"minimum": 1
|
|
190
|
+
},
|
|
191
|
+
"reason": {
|
|
192
|
+
"const": "REPAIR_SAME_SCOPE"
|
|
193
|
+
},
|
|
194
|
+
"userTurn": {
|
|
195
|
+
"type": "string",
|
|
196
|
+
"minLength": 8,
|
|
197
|
+
"maxLength": 256
|
|
198
|
+
},
|
|
199
|
+
"expectedStoreEpoch": {
|
|
200
|
+
"type": "string",
|
|
201
|
+
"minLength": 10,
|
|
202
|
+
"maxLength": 64
|
|
203
|
+
},
|
|
204
|
+
"writeRequestId": {
|
|
205
|
+
"type": "string",
|
|
206
|
+
"minLength": 8,
|
|
207
|
+
"maxLength": 128
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"order": 19,
|
|
212
|
+
"route": {
|
|
213
|
+
"kind": "core",
|
|
214
|
+
"method": "taskReopen",
|
|
215
|
+
"params": [
|
|
216
|
+
"$args"
|
|
217
|
+
]
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"id": "task.reviewProjectRules",
|
|
222
|
+
"group": "task",
|
|
223
|
+
"mode": "write",
|
|
224
|
+
"description": "Adopt verified new project rules or require R/P reapproval.",
|
|
225
|
+
"inputSchema": {
|
|
226
|
+
"type": "object",
|
|
227
|
+
"required": [
|
|
228
|
+
"operation",
|
|
229
|
+
"projectId",
|
|
230
|
+
"taskId",
|
|
231
|
+
"expectedTaskRevision",
|
|
232
|
+
"expectedProjectRevision",
|
|
233
|
+
"impact",
|
|
234
|
+
"reviewEvidenceRef",
|
|
235
|
+
"expectedStoreEpoch",
|
|
236
|
+
"writeRequestId"
|
|
237
|
+
],
|
|
238
|
+
"additionalProperties": false,
|
|
239
|
+
"properties": {
|
|
240
|
+
"operation": {
|
|
241
|
+
"const": "task.reviewProjectRules"
|
|
242
|
+
},
|
|
243
|
+
"projectId": {
|
|
244
|
+
"type": "string",
|
|
245
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
246
|
+
},
|
|
247
|
+
"taskId": {
|
|
248
|
+
"type": "string",
|
|
249
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
250
|
+
},
|
|
251
|
+
"expectedTaskRevision": {
|
|
252
|
+
"type": "integer",
|
|
253
|
+
"minimum": 1
|
|
254
|
+
},
|
|
255
|
+
"expectedProjectRevision": {
|
|
256
|
+
"type": "integer",
|
|
257
|
+
"minimum": 1
|
|
258
|
+
},
|
|
259
|
+
"impact": {
|
|
260
|
+
"enum": [
|
|
261
|
+
"NO_SCOPE_IMPACT",
|
|
262
|
+
"R_AND_P_REAPPROVAL"
|
|
263
|
+
]
|
|
264
|
+
},
|
|
265
|
+
"reviewEvidenceRef": {
|
|
266
|
+
"type": "string",
|
|
267
|
+
"minLength": 8,
|
|
268
|
+
"maxLength": 4096
|
|
269
|
+
},
|
|
270
|
+
"expectedStoreEpoch": {
|
|
271
|
+
"type": "string",
|
|
272
|
+
"minLength": 10,
|
|
273
|
+
"maxLength": 64
|
|
274
|
+
},
|
|
275
|
+
"writeRequestId": {
|
|
276
|
+
"type": "string",
|
|
277
|
+
"minLength": 8,
|
|
278
|
+
"maxLength": 128
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
"order": 20,
|
|
283
|
+
"route": {
|
|
284
|
+
"kind": "core",
|
|
285
|
+
"method": "taskReviewProjectRules",
|
|
286
|
+
"params": [
|
|
287
|
+
"$args"
|
|
288
|
+
]
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"id": "task.accept",
|
|
293
|
+
"group": "task",
|
|
294
|
+
"mode": "write",
|
|
295
|
+
"description": "Record actual user delivery acceptance decision.",
|
|
296
|
+
"inputSchema": {
|
|
297
|
+
"type": "object",
|
|
298
|
+
"required": [
|
|
299
|
+
"operation",
|
|
300
|
+
"projectId",
|
|
301
|
+
"taskId",
|
|
302
|
+
"expectedTaskRevision",
|
|
303
|
+
"decision",
|
|
304
|
+
"userTurn",
|
|
305
|
+
"expectedStoreEpoch",
|
|
306
|
+
"writeRequestId"
|
|
307
|
+
],
|
|
308
|
+
"additionalProperties": false,
|
|
309
|
+
"properties": {
|
|
310
|
+
"operation": {
|
|
311
|
+
"const": "task.accept"
|
|
312
|
+
},
|
|
313
|
+
"projectId": {
|
|
314
|
+
"type": "string",
|
|
315
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
316
|
+
},
|
|
317
|
+
"taskId": {
|
|
318
|
+
"type": "string",
|
|
319
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
320
|
+
},
|
|
321
|
+
"expectedTaskRevision": {
|
|
322
|
+
"type": "integer",
|
|
323
|
+
"minimum": 1
|
|
324
|
+
},
|
|
325
|
+
"decision": {
|
|
326
|
+
"enum": [
|
|
327
|
+
"ACCEPT",
|
|
328
|
+
"REJECT"
|
|
329
|
+
]
|
|
330
|
+
},
|
|
331
|
+
"userTurn": {
|
|
332
|
+
"type": "string",
|
|
333
|
+
"minLength": 8,
|
|
334
|
+
"maxLength": 256
|
|
335
|
+
},
|
|
336
|
+
"expectedStoreEpoch": {
|
|
337
|
+
"type": "string",
|
|
338
|
+
"minLength": 10,
|
|
339
|
+
"maxLength": 64
|
|
340
|
+
},
|
|
341
|
+
"writeRequestId": {
|
|
342
|
+
"type": "string",
|
|
343
|
+
"minLength": 8,
|
|
344
|
+
"maxLength": 128
|
|
345
|
+
},
|
|
346
|
+
"comment": {
|
|
347
|
+
"type": "string",
|
|
348
|
+
"maxLength": 2000
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
"order": 21,
|
|
353
|
+
"route": {
|
|
354
|
+
"kind": "core",
|
|
355
|
+
"method": "taskAccept",
|
|
356
|
+
"params": [
|
|
357
|
+
"$args"
|
|
358
|
+
]
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"id": "task.complete",
|
|
363
|
+
"group": "task",
|
|
364
|
+
"mode": "write",
|
|
365
|
+
"description": "Commit machine delivery outcome under current run-binding authorization.",
|
|
366
|
+
"inputSchema": {
|
|
367
|
+
"type": "object",
|
|
368
|
+
"required": [
|
|
369
|
+
"operation",
|
|
370
|
+
"projectId",
|
|
371
|
+
"taskId",
|
|
372
|
+
"expectedTaskRevision",
|
|
373
|
+
"expectedBindingRevision",
|
|
374
|
+
"runRef",
|
|
375
|
+
"runCredential",
|
|
376
|
+
"deliveryRef",
|
|
377
|
+
"expectedStoreEpoch",
|
|
378
|
+
"writeRequestId"
|
|
379
|
+
],
|
|
380
|
+
"additionalProperties": false,
|
|
381
|
+
"properties": {
|
|
382
|
+
"operation": {
|
|
383
|
+
"const": "task.complete"
|
|
384
|
+
},
|
|
385
|
+
"projectId": {
|
|
386
|
+
"type": "string",
|
|
387
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
388
|
+
},
|
|
389
|
+
"taskId": {
|
|
390
|
+
"type": "string",
|
|
391
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
392
|
+
},
|
|
393
|
+
"expectedTaskRevision": {
|
|
394
|
+
"type": "integer",
|
|
395
|
+
"minimum": 1
|
|
396
|
+
},
|
|
397
|
+
"expectedBindingRevision": {
|
|
398
|
+
"type": "integer",
|
|
399
|
+
"minimum": 0
|
|
400
|
+
},
|
|
401
|
+
"runRef": {
|
|
402
|
+
"type": "string",
|
|
403
|
+
"minLength": 8,
|
|
404
|
+
"maxLength": 256
|
|
405
|
+
},
|
|
406
|
+
"runCredential": {
|
|
407
|
+
"type": "string",
|
|
408
|
+
"pattern": "^[0-9a-f]{64}$"
|
|
409
|
+
},
|
|
410
|
+
"deliveryRef": {
|
|
411
|
+
"type": "string",
|
|
412
|
+
"minLength": 8,
|
|
413
|
+
"maxLength": 4096
|
|
414
|
+
},
|
|
415
|
+
"expectedStoreEpoch": {
|
|
416
|
+
"type": "string",
|
|
417
|
+
"minLength": 10,
|
|
418
|
+
"maxLength": 64
|
|
419
|
+
},
|
|
420
|
+
"writeRequestId": {
|
|
421
|
+
"type": "string",
|
|
422
|
+
"minLength": 8,
|
|
423
|
+
"maxLength": 128
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
},
|
|
427
|
+
"order": 22,
|
|
428
|
+
"route": {
|
|
429
|
+
"kind": "core",
|
|
430
|
+
"method": "taskComplete",
|
|
431
|
+
"params": [
|
|
432
|
+
"$args"
|
|
433
|
+
]
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"id": "task.patch",
|
|
438
|
+
"group": "task",
|
|
439
|
+
"mode": "write",
|
|
440
|
+
"description": "Patch permitted Task fields with revision and run-holder checks.",
|
|
441
|
+
"inputSchema": {
|
|
442
|
+
"type": "object",
|
|
443
|
+
"required": [
|
|
444
|
+
"operation",
|
|
445
|
+
"projectId",
|
|
446
|
+
"taskId",
|
|
447
|
+
"expectedTaskRevision",
|
|
448
|
+
"patch",
|
|
449
|
+
"expectedStoreEpoch",
|
|
450
|
+
"writeRequestId"
|
|
451
|
+
],
|
|
452
|
+
"additionalProperties": false,
|
|
453
|
+
"properties": {
|
|
454
|
+
"operation": {
|
|
455
|
+
"const": "task.patch"
|
|
456
|
+
},
|
|
457
|
+
"projectId": {
|
|
458
|
+
"type": "string",
|
|
459
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
460
|
+
},
|
|
461
|
+
"taskId": {
|
|
462
|
+
"type": "string",
|
|
463
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
|
|
464
|
+
},
|
|
465
|
+
"expectedTaskRevision": {
|
|
466
|
+
"type": "integer",
|
|
467
|
+
"minimum": 1
|
|
468
|
+
},
|
|
469
|
+
"patch": {
|
|
470
|
+
"type": "object"
|
|
471
|
+
},
|
|
472
|
+
"expectedStoreEpoch": {
|
|
473
|
+
"type": "string",
|
|
474
|
+
"minLength": 10,
|
|
475
|
+
"maxLength": 64
|
|
476
|
+
},
|
|
477
|
+
"writeRequestId": {
|
|
478
|
+
"type": "string",
|
|
479
|
+
"minLength": 8,
|
|
480
|
+
"maxLength": 128
|
|
481
|
+
},
|
|
482
|
+
"expectedBindingRevision": {
|
|
483
|
+
"type": "integer",
|
|
484
|
+
"minimum": 0
|
|
485
|
+
},
|
|
486
|
+
"runRef": {
|
|
487
|
+
"type": "string",
|
|
488
|
+
"minLength": 8,
|
|
489
|
+
"maxLength": 256
|
|
490
|
+
},
|
|
491
|
+
"runCredential": {
|
|
492
|
+
"type": "string",
|
|
493
|
+
"pattern": "^[0-9a-f]{64}$"
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
},
|
|
497
|
+
"order": 23,
|
|
498
|
+
"route": {
|
|
499
|
+
"kind": "core",
|
|
500
|
+
"method": "taskPatch",
|
|
501
|
+
"params": [
|
|
502
|
+
"$args"
|
|
503
|
+
]
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
]
|
|
507
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// GENERATED from capabilities/*.mjs. Do not edit.
|
|
2
|
+
import {capability as c0} from './capabilities/approval.mjs';
|
|
3
|
+
import {capability as c1} from './capabilities/context.mjs';
|
|
4
|
+
import {capability as c2} from './capabilities/document.mjs';
|
|
5
|
+
import {capability as c3} from './capabilities/evidence.mjs';
|
|
6
|
+
import {capability as c4} from './capabilities/presentation.mjs';
|
|
7
|
+
import {capability as c5} from './capabilities/project.mjs';
|
|
8
|
+
import {capability as c6} from './capabilities/sdk.mjs';
|
|
9
|
+
import {capability as c7} from './capabilities/start.mjs';
|
|
10
|
+
import {capability as c8} from './capabilities/task.mjs';
|
|
11
|
+
export const capabilities=Object.freeze([c0,c1,c2,c3,c4,c5,c6,c7,c8]);
|