@tomflow/chatloop-tools 0.9.62 → 0.9.64

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.
Files changed (154) hide show
  1. package/README.md +13 -1
  2. package/index.mjs +7 -7
  3. package/lib/context-control-run.mjs +23 -5
  4. package/lib/extension-proxy.mjs +29 -10
  5. package/lib/native-owner-v2.mjs +128 -0
  6. package/lib/release-health-checks.mjs +29 -5
  7. package/lib/trace-gateway.mjs +3 -1
  8. package/package.json +3 -13
  9. package/providers/extension.mjs +59 -16
  10. package/node_modules/@tomflow/chatloop-context/README.md +0 -240
  11. package/node_modules/@tomflow/chatloop-context/bin/cli.mjs +0 -48
  12. package/node_modules/@tomflow/chatloop-context/capabilities/approval.mjs +0 -151
  13. package/node_modules/@tomflow/chatloop-context/capabilities/context.mjs +0 -376
  14. package/node_modules/@tomflow/chatloop-context/capabilities/document.mjs +0 -266
  15. package/node_modules/@tomflow/chatloop-context/capabilities/evidence.mjs +0 -134
  16. package/node_modules/@tomflow/chatloop-context/capabilities/presentation.mjs +0 -82
  17. package/node_modules/@tomflow/chatloop-context/capabilities/project.mjs +0 -349
  18. package/node_modules/@tomflow/chatloop-context/capabilities/sdk.mjs +0 -72
  19. package/node_modules/@tomflow/chatloop-context/capabilities/start.mjs +0 -73
  20. package/node_modules/@tomflow/chatloop-context/capabilities/task.mjs +0 -507
  21. package/node_modules/@tomflow/chatloop-context/capabilities.generated.mjs +0 -11
  22. package/node_modules/@tomflow/chatloop-context/docs/interfaces.md +0 -192
  23. package/node_modules/@tomflow/chatloop-context/docs/operator-and-migration.md +0 -277
  24. package/node_modules/@tomflow/chatloop-context/index.mjs +0 -236
  25. package/node_modules/@tomflow/chatloop-context/lib/api-log.mjs +0 -86
  26. package/node_modules/@tomflow/chatloop-context/lib/approval-policy.mjs +0 -77
  27. package/node_modules/@tomflow/chatloop-context/lib/capability-catalog.generated.json +0 -1989
  28. package/node_modules/@tomflow/chatloop-context/lib/capability-router.mjs +0 -69
  29. package/node_modules/@tomflow/chatloop-context/lib/cli-commands.mjs +0 -285
  30. package/node_modules/@tomflow/chatloop-context/lib/context-cli.mjs +0 -298
  31. package/node_modules/@tomflow/chatloop-context/lib/context-migration.mjs +0 -286
  32. package/node_modules/@tomflow/chatloop-context/lib/core/context.mjs +0 -115
  33. package/node_modules/@tomflow/chatloop-context/lib/core/evidence.mjs +0 -51
  34. package/node_modules/@tomflow/chatloop-context/lib/core/health.mjs +0 -75
  35. package/node_modules/@tomflow/chatloop-context/lib/core/migration.mjs +0 -262
  36. package/node_modules/@tomflow/chatloop-context/lib/core/project.mjs +0 -246
  37. package/node_modules/@tomflow/chatloop-context/lib/core/review.mjs +0 -147
  38. package/node_modules/@tomflow/chatloop-context/lib/core/run-cancel.mjs +0 -54
  39. package/node_modules/@tomflow/chatloop-context/lib/core/run.mjs +0 -375
  40. package/node_modules/@tomflow/chatloop-context/lib/core/store.mjs +0 -397
  41. package/node_modules/@tomflow/chatloop-context/lib/core/task.mjs +0 -183
  42. package/node_modules/@tomflow/chatloop-context/lib/line-review.mjs +0 -13
  43. package/node_modules/@tomflow/chatloop-context/lib/methods.mjs +0 -111
  44. package/node_modules/@tomflow/chatloop-context/lib/operations.mjs +0 -107
  45. package/node_modules/@tomflow/chatloop-context/lib/orphan-operator.mjs +0 -118
  46. package/node_modules/@tomflow/chatloop-context/lib/process-inventory.mjs +0 -20
  47. package/node_modules/@tomflow/chatloop-context/lib/project-branch.mjs +0 -316
  48. package/node_modules/@tomflow/chatloop-context/lib/project-diagnostic.mjs +0 -153
  49. package/node_modules/@tomflow/chatloop-context/lib/project-guards.mjs +0 -19
  50. package/node_modules/@tomflow/chatloop-context/lib/project-store.mjs +0 -117
  51. package/node_modules/@tomflow/chatloop-context/lib/trusted-run.mjs +0 -97
  52. package/node_modules/@tomflow/chatloop-context/lib/workspace-operator.mjs +0 -169
  53. package/node_modules/@tomflow/chatloop-context/package.json +0 -40
  54. package/node_modules/@tomflow/chatloop-context/scripts/build-capabilities.mjs +0 -114
  55. package/node_modules/@tomflow/chatloop-extension/README.md +0 -124
  56. package/node_modules/@tomflow/chatloop-extension/actions.generated.mjs +0 -13
  57. package/node_modules/@tomflow/chatloop-extension/bin/cli.mjs +0 -153
  58. package/node_modules/@tomflow/chatloop-extension/bin/native-host.mjs +0 -207
  59. package/node_modules/@tomflow/chatloop-extension/capabilities/chat_dom.mjs +0 -1
  60. package/node_modules/@tomflow/chatloop-extension/capabilities/chat_screenshot.mjs +0 -1
  61. package/node_modules/@tomflow/chatloop-extension/capabilities/chat_text.mjs +0 -1
  62. package/node_modules/@tomflow/chatloop-extension/capabilities/clean.mjs +0 -1
  63. package/node_modules/@tomflow/chatloop-extension/capabilities/continue.mjs +0 -1
  64. package/node_modules/@tomflow/chatloop-extension/capabilities/entry_test.mjs +0 -1
  65. package/node_modules/@tomflow/chatloop-extension/capabilities/handoff.mjs +0 -1
  66. package/node_modules/@tomflow/chatloop-extension/capabilities/reload.mjs +0 -1
  67. package/node_modules/@tomflow/chatloop-extension/capabilities/session.mjs +0 -1
  68. package/node_modules/@tomflow/chatloop-extension/capabilities/start.mjs +0 -1
  69. package/node_modules/@tomflow/chatloop-extension/capabilities/status.mjs +0 -1
  70. package/node_modules/@tomflow/chatloop-extension/extension/actions/clean.js +0 -123
  71. package/node_modules/@tomflow/chatloop-extension/extension/actions/common.js +0 -183
  72. package/node_modules/@tomflow/chatloop-extension/extension/actions/continue.js +0 -340
  73. package/node_modules/@tomflow/chatloop-extension/extension/actions/dom.js +0 -2
  74. package/node_modules/@tomflow/chatloop-extension/extension/actions/entry_test.js +0 -241
  75. package/node_modules/@tomflow/chatloop-extension/extension/actions/handoff.js +0 -393
  76. package/node_modules/@tomflow/chatloop-extension/extension/actions/index.js +0 -2
  77. package/node_modules/@tomflow/chatloop-extension/extension/actions/model-intent.js +0 -56
  78. package/node_modules/@tomflow/chatloop-extension/extension/actions/read-mode.js +0 -9
  79. package/node_modules/@tomflow/chatloop-extension/extension/actions/reload.js +0 -20
  80. package/node_modules/@tomflow/chatloop-extension/extension/actions/screenshot.js +0 -77
  81. package/node_modules/@tomflow/chatloop-extension/extension/actions/session.js +0 -52
  82. package/node_modules/@tomflow/chatloop-extension/extension/actions/start.js +0 -295
  83. package/node_modules/@tomflow/chatloop-extension/extension/actions/status.js +0 -24
  84. package/node_modules/@tomflow/chatloop-extension/extension/actions/text.js +0 -2
  85. package/node_modules/@tomflow/chatloop-extension/extension/background.js +0 -17
  86. package/node_modules/@tomflow/chatloop-extension/extension/clean.html +0 -5
  87. package/node_modules/@tomflow/chatloop-extension/extension/content.js +0 -40
  88. package/node_modules/@tomflow/chatloop-extension/extension/continue.html +0 -9
  89. package/node_modules/@tomflow/chatloop-extension/extension/dom.html +0 -17
  90. package/node_modules/@tomflow/chatloop-extension/extension/entry_test.html +0 -6
  91. package/node_modules/@tomflow/chatloop-extension/extension/handoff.html +0 -9
  92. package/node_modules/@tomflow/chatloop-extension/extension/loop/action-catalog.generated.js +0 -2
  93. package/node_modules/@tomflow/chatloop-extension/extension/loop/api-aspect.generated.js +0 -275
  94. package/node_modules/@tomflow/chatloop-extension/extension/loop/api-observation-queue.generated.js +0 -84
  95. package/node_modules/@tomflow/chatloop-extension/extension/loop/core.js +0 -107
  96. package/node_modules/@tomflow/chatloop-extension/extension/loop/index.js +0 -36
  97. package/node_modules/@tomflow/chatloop-extension/extension/loop/observer-approval.js +0 -299
  98. package/node_modules/@tomflow/chatloop-extension/extension/loop/observer-inspect.js +0 -144
  99. package/node_modules/@tomflow/chatloop-extension/extension/loop/observer-poll.js +0 -171
  100. package/node_modules/@tomflow/chatloop-extension/extension/loop/observer-recovery.js +0 -109
  101. package/node_modules/@tomflow/chatloop-extension/extension/loop/observer.js +0 -154
  102. package/node_modules/@tomflow/chatloop-extension/extension/loop/resources.js +0 -259
  103. package/node_modules/@tomflow/chatloop-extension/extension/manifest.json +0 -42
  104. package/node_modules/@tomflow/chatloop-extension/extension/popup.html +0 -25
  105. package/node_modules/@tomflow/chatloop-extension/extension/popup.js +0 -99
  106. package/node_modules/@tomflow/chatloop-extension/extension/reload.html +0 -17
  107. package/node_modules/@tomflow/chatloop-extension/extension/screenshot.html +0 -17
  108. package/node_modules/@tomflow/chatloop-extension/extension/session.html +0 -6
  109. package/node_modules/@tomflow/chatloop-extension/extension/start.html +0 -6
  110. package/node_modules/@tomflow/chatloop-extension/extension/status.html +0 -6
  111. package/node_modules/@tomflow/chatloop-extension/extension/text.html +0 -17
  112. package/node_modules/@tomflow/chatloop-extension/extension/worker/action-result.js +0 -136
  113. package/node_modules/@tomflow/chatloop-extension/extension/worker/action-take.js +0 -218
  114. package/node_modules/@tomflow/chatloop-extension/extension/worker/admission.js +0 -124
  115. package/node_modules/@tomflow/chatloop-extension/extension/worker/adopt-prepare.js +0 -296
  116. package/node_modules/@tomflow/chatloop-extension/extension/worker/adopt-recovery.js +0 -186
  117. package/node_modules/@tomflow/chatloop-extension/extension/worker/adopt-result.js +0 -126
  118. package/node_modules/@tomflow/chatloop-extension/extension/worker/bootstrap.js +0 -230
  119. package/node_modules/@tomflow/chatloop-extension/extension/worker/manual.js +0 -163
  120. package/node_modules/@tomflow/chatloop-extension/extension/worker/readiness.js +0 -345
  121. package/node_modules/@tomflow/chatloop-extension/extension/worker/router.js +0 -192
  122. package/node_modules/@tomflow/chatloop-extension/extension/worker/scheduler.js +0 -161
  123. package/node_modules/@tomflow/chatloop-extension/extension/worker/session-control.js +0 -75
  124. package/node_modules/@tomflow/chatloop-extension/extension/worker/turn-failure.js +0 -197
  125. package/node_modules/@tomflow/chatloop-extension/extension/worker/turn-finished.js +0 -205
  126. package/node_modules/@tomflow/chatloop-extension/index.mjs +0 -71
  127. package/node_modules/@tomflow/chatloop-extension/lib/action-routing.mjs +0 -19
  128. package/node_modules/@tomflow/chatloop-extension/lib/api-observation-queue.mjs +0 -82
  129. package/node_modules/@tomflow/chatloop-extension/lib/bridge.mjs +0 -303
  130. package/node_modules/@tomflow/chatloop-extension/lib/browser-launch.mjs +0 -83
  131. package/node_modules/@tomflow/chatloop-extension/lib/context-binding.mjs +0 -45
  132. package/node_modules/@tomflow/chatloop-extension/lib/context-ipc.mjs +0 -115
  133. package/node_modules/@tomflow/chatloop-extension/lib/owner-evidence.mjs +0 -75
  134. package/node_modules/@tomflow/chatloop-extension/lib/session-file.mjs +0 -185
  135. package/node_modules/@tomflow/chatloop-extension/package.json +0 -38
  136. package/node_modules/@tomflow/chatloop-extension/scripts/build-actions.mjs +0 -138
  137. package/node_modules/@tomflow/chatloop-trace/README.md +0 -118
  138. package/node_modules/@tomflow/chatloop-trace/events/context.api.mjs +0 -23
  139. package/node_modules/@tomflow/chatloop-trace/events/typed.api.call.mjs +0 -22
  140. package/node_modules/@tomflow/chatloop-trace/events.generated.mjs +0 -4
  141. package/node_modules/@tomflow/chatloop-trace/index.mjs +0 -59
  142. package/node_modules/@tomflow/chatloop-trace/lib/api-aspect.mjs +0 -273
  143. package/node_modules/@tomflow/chatloop-trace/lib/trace-reader.mjs +0 -308
  144. package/node_modules/@tomflow/chatloop-trace/lib/trace-retention.mjs +0 -140
  145. package/node_modules/@tomflow/chatloop-trace/lib/trace.mjs +0 -236
  146. package/node_modules/@tomflow/chatloop-trace/package.json +0 -30
  147. package/node_modules/@tomflow/chatloop-trace/scripts/build-events.mjs +0 -68
  148. package/node_modules/ps-list/index.d.ts +0 -76
  149. package/node_modules/ps-list/index.js +0 -366
  150. package/node_modules/ps-list/license +0 -9
  151. package/node_modules/ps-list/package.json +0 -44
  152. package/node_modules/ps-list/readme.md +0 -56
  153. package/node_modules/ps-list/vendor/fastlist-0.3.0-x64.exe +0 -0
  154. package/node_modules/ps-list/vendor/fastlist-0.3.0-x86.exe +0 -0
@@ -1,73 +0,0 @@
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
- };
@@ -1,507 +0,0 @@
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
- };
@@ -1,11 +0,0 @@
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]);