cloving 1.4.0 → 1.5.0

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 (167) hide show
  1. package/README.md +100 -15
  2. package/dist/src/broker/actor/authority-health.d.ts +9 -0
  3. package/dist/src/broker/actor/authority-health.js +24 -0
  4. package/dist/src/broker/actor/authority-runtime.d.ts +4 -2
  5. package/dist/src/broker/actor/authority-runtime.js +29 -20
  6. package/dist/src/broker/actor/authority-session.d.ts +6 -19
  7. package/dist/src/broker/actor/authority-session.js +66 -88
  8. package/dist/src/broker/actor/authority-settings.d.ts +2 -1
  9. package/dist/src/broker/actor/authority-settings.js +4 -1
  10. package/dist/src/broker/actor/authority-upgrades.d.ts +5 -1
  11. package/dist/src/broker/actor/authority-upgrades.js +2 -1
  12. package/dist/src/broker/actor/authority-watchdog.d.ts +6 -2
  13. package/dist/src/broker/actor/authority-watchdog.js +31 -9
  14. package/dist/src/broker/actor/authority.js +3 -1
  15. package/dist/src/broker/actor/projection-memory.d.ts +43 -0
  16. package/dist/src/broker/actor/projection-memory.js +207 -0
  17. package/dist/src/broker/actor/runtime-parts.d.ts +5 -0
  18. package/dist/src/broker/actor/runtime-parts.js +8 -3
  19. package/dist/src/broker/authority-restore.js +1 -1
  20. package/dist/src/broker/effect-upgrade.d.ts +1 -0
  21. package/dist/src/broker/effect-upgrade.js +4 -1
  22. package/dist/src/cli/arguments.js +1 -0
  23. package/dist/src/cli/client.d.ts +3 -1
  24. package/dist/src/cli/client.js +4 -4
  25. package/dist/src/cli/command-requests.d.ts +30 -1
  26. package/dist/src/cli/command-requests.js +43 -2
  27. package/dist/src/cli/commands.js +57 -48
  28. package/dist/src/cli/config-notice.js +5 -2
  29. package/dist/src/cli/doctor-retention.d.ts +2 -0
  30. package/dist/src/cli/doctor-retention.js +93 -0
  31. package/dist/src/cli/doctor.js +5 -0
  32. package/dist/src/cli/init-prompt.js +1 -1
  33. package/dist/src/cli/mcp-server.js +4 -4
  34. package/dist/src/cli/mcp-tools.d.ts +14 -14
  35. package/dist/src/cli/mcp-tools.js +212 -50
  36. package/dist/src/cli/queue-arguments.d.ts +15 -0
  37. package/dist/src/cli/queue-arguments.js +31 -0
  38. package/dist/src/cli/queue-render.d.ts +3 -0
  39. package/dist/src/cli/queue-render.js +26 -0
  40. package/dist/src/cli/reload-render.d.ts +2 -0
  41. package/dist/src/cli/reload-render.js +12 -0
  42. package/dist/src/cli/render.js +37 -8
  43. package/dist/src/cli/report-github-reader.js +1 -1
  44. package/dist/src/cli/runtime-arguments.d.ts +17 -3
  45. package/dist/src/cli/runtime-arguments.js +23 -19
  46. package/dist/src/cli/toolchain.d.ts +1 -0
  47. package/dist/src/cli/toolchain.js +1 -0
  48. package/dist/src/cli/usage.d.ts +2 -2
  49. package/dist/src/cli/usage.js +40 -5
  50. package/dist/src/cli/watch-api-document.d.ts +430 -0
  51. package/dist/src/cli/watch-api-document.js +291 -0
  52. package/dist/src/cli/watch-api-run.d.ts +56 -0
  53. package/dist/src/cli/watch-api-run.js +112 -0
  54. package/dist/src/cli/watch-api.d.ts +17 -0
  55. package/dist/src/cli/watch-api.js +230 -0
  56. package/dist/src/cli/watch-header-view.d.ts +1 -0
  57. package/dist/src/cli/watch-header-view.js +9 -1
  58. package/dist/src/cli/watch-model.d.ts +1 -0
  59. package/dist/src/cli/watch-model.js +3 -0
  60. package/dist/src/cli/watch-page.js +3 -1
  61. package/dist/src/cli/watch-reads.d.ts +1 -0
  62. package/dist/src/cli/watch-reads.js +6 -5
  63. package/dist/src/cli/watch-render.d.ts +1 -0
  64. package/dist/src/cli/watch-server.js +18 -4
  65. package/dist/src/cli.js +50 -43
  66. package/dist/src/configuration-display.js +2 -0
  67. package/dist/src/configuration-schema.d.ts +5 -0
  68. package/dist/src/daemon/claude-recovery.js +13 -9
  69. package/dist/src/daemon/claude-worker.d.ts +3 -3
  70. package/dist/src/daemon/claude-worker.js +10 -11
  71. package/dist/src/daemon/daemon-adapters.d.ts +7 -0
  72. package/dist/src/daemon/daemon-adapters.js +7 -3
  73. package/dist/src/daemon/daemon-loops.d.ts +2 -0
  74. package/dist/src/daemon/daemon-loops.js +17 -11
  75. package/dist/src/daemon/daemon.js +71 -60
  76. package/dist/src/daemon/github-attach.js +77 -4
  77. package/dist/src/daemon/github-calls.js +1 -1
  78. package/dist/src/daemon/github-methods.js +6 -2
  79. package/dist/src/daemon/issue-queue.d.ts +3 -0
  80. package/dist/src/daemon/issue-queue.js +66 -73
  81. package/dist/src/daemon/merge-turns.d.ts +10 -0
  82. package/dist/src/daemon/merge-turns.js +37 -0
  83. package/dist/src/daemon/queue-control.d.ts +13 -0
  84. package/dist/src/daemon/queue-control.js +86 -0
  85. package/dist/src/daemon/queue-journal.d.ts +20 -0
  86. package/dist/src/daemon/queue-journal.js +89 -0
  87. package/dist/src/daemon/record-archive.d.ts +19 -0
  88. package/dist/src/daemon/record-archive.js +82 -0
  89. package/dist/src/daemon/record-sweep.d.ts +24 -0
  90. package/dist/src/daemon/record-sweep.js +147 -0
  91. package/dist/src/daemon/retrying-turn.js +4 -4
  92. package/dist/src/daemon/settings-reload.d.ts +26 -0
  93. package/dist/src/daemon/settings-reload.js +82 -0
  94. package/dist/src/daemon/turn-details.d.ts +4 -0
  95. package/dist/src/daemon/turn-details.js +33 -0
  96. package/dist/src/daemon/worker-profile.d.ts +1 -0
  97. package/dist/src/daemon/worker-profile.js +4 -0
  98. package/dist/src/daemon/workflow-generations.d.ts +7 -4
  99. package/dist/src/daemon/workflow-generations.js +22 -14
  100. package/dist/src/daemon/workflow-reload.d.ts +41 -0
  101. package/dist/src/daemon/workflow-reload.js +244 -0
  102. package/dist/src/daemon/workflow-replay.d.ts +2 -1
  103. package/dist/src/daemon/workflow-replay.js +7 -3
  104. package/dist/src/doctor-report.d.ts +2 -2
  105. package/dist/src/doctor-report.js +2 -0
  106. package/dist/src/private-config.schema.json +31 -0
  107. package/dist/src/project-settings.d.ts +15 -1
  108. package/dist/src/project-settings.js +33 -1
  109. package/dist/src/queue-state.d.ts +26 -0
  110. package/dist/src/queue-state.js +34 -0
  111. package/dist/src/record-retention.d.ts +46 -0
  112. package/dist/src/record-retention.js +81 -0
  113. package/dist/src/service/active-tickets.js +5 -0
  114. package/dist/src/service/dispatcher.d.ts +4 -0
  115. package/dist/src/service/dispatcher.js +33 -0
  116. package/dist/src/service/queue-handlers.d.ts +4 -0
  117. package/dist/src/service/queue-handlers.js +32 -0
  118. package/dist/src/service/registry.d.ts +28 -2
  119. package/dist/src/service/registry.js +48 -0
  120. package/dist/src/service/replies.d.ts +16 -9
  121. package/dist/src/service/replies.js +5 -2
  122. package/dist/src/service/run-handlers.js +15 -10
  123. package/dist/src/service/service.d.ts +7 -3
  124. package/dist/src/service/service.js +16 -31
  125. package/dist/src/service/worker-totals.d.ts +4 -0
  126. package/dist/src/service/worker-totals.js +7 -0
  127. package/dist/src/service/workflow-reload.d.ts +35 -0
  128. package/dist/src/service/workflow-reload.js +52 -0
  129. package/dist/src/storage/decision-snapshots.d.ts +1 -2
  130. package/dist/src/storage/decision-snapshots.js +1 -7
  131. package/dist/src/storage/domain-changes.d.ts +1 -1
  132. package/dist/src/storage/domain-changes.js +1 -0
  133. package/dist/src/storage/domain-schema.d.ts +4 -1
  134. package/dist/src/storage/domain-schema.js +6 -2
  135. package/dist/src/storage/effect-schema.d.ts +1 -0
  136. package/dist/src/storage/effect-schema.js +4 -0
  137. package/dist/src/storage/projection-changes.d.ts +12 -0
  138. package/dist/src/storage/projection-changes.js +194 -0
  139. package/dist/src/storage/projection-lookups.d.ts +7 -0
  140. package/dist/src/storage/projection-lookups.js +30 -0
  141. package/dist/src/workflow-declaration.d.ts +1 -0
  142. package/dist/src/workflow-declaration.js +3 -0
  143. package/dist/tools/compile-workflows.js +3 -0
  144. package/dist/tools/project-configuration.d.ts +7 -2
  145. package/dist/tools/project-configuration.js +30 -1
  146. package/dist/tools/self-host-processes.js +37 -13
  147. package/dist/tools/self-host-project.d.ts +2 -0
  148. package/dist/tools/self-host-project.js +21 -3
  149. package/dist/tools/self-host.js +34 -24
  150. package/dist/tools/workflow-candidate-program.d.ts +4 -2
  151. package/dist/tools/workflow-candidate-program.js +30 -11
  152. package/dist/tools/workflow-candidate-source.d.ts +1 -0
  153. package/dist/tools/workflow-candidate-source.js +11 -3
  154. package/package.json +2 -2
  155. package/templates/develop/README.md +81 -4
  156. package/templates/develop/develop/flow-tests.ts +1 -1
  157. package/templates/develop/develop/interruption-tests.ts +157 -0
  158. package/templates/develop/develop/local.ts +1 -0
  159. package/templates/develop/develop/option-tests.ts +138 -9
  160. package/templates/develop/develop/red-green.ts +55 -0
  161. package/templates/develop/develop/report.ts +31 -11
  162. package/templates/develop/develop/round.ts +1 -0
  163. package/templates/develop/develop/scenarios.ts +27 -0
  164. package/templates/develop/develop/turn.ts +26 -6
  165. package/templates/develop/develop.declaration.json +1 -1
  166. package/templates/develop/develop.test.ts +4 -0
  167. package/templates/develop/template.json +29 -2
@@ -0,0 +1,430 @@
1
+ export declare const runStates: readonly ["queued", "running", "waiting_gate", "paused", "completed", "failed", "cancelled"];
2
+ export declare const runLimit: {
3
+ readonly type: "integer";
4
+ readonly minimum: 1;
5
+ readonly maximum: 200;
6
+ readonly default: 50;
7
+ };
8
+ export declare const watchApiDocument: {
9
+ openapi: string;
10
+ info: {
11
+ title: string;
12
+ version: string;
13
+ };
14
+ servers: {
15
+ url: string;
16
+ }[];
17
+ tags: {
18
+ name: string;
19
+ description: string;
20
+ }[];
21
+ paths: {
22
+ "/": {
23
+ get: {
24
+ operationId: string;
25
+ tags: string[];
26
+ summary: string;
27
+ responses: {
28
+ "200": {
29
+ description: string;
30
+ content: {
31
+ "application/json": {
32
+ schema: unknown;
33
+ };
34
+ };
35
+ };
36
+ "400": {
37
+ description: string;
38
+ content: {
39
+ "application/problem+json": {
40
+ schema: {
41
+ readonly $ref: string;
42
+ };
43
+ };
44
+ };
45
+ };
46
+ };
47
+ };
48
+ };
49
+ "/openapi.json": {
50
+ get: {
51
+ operationId: string;
52
+ tags: string[];
53
+ summary: string;
54
+ responses: {
55
+ "200": {
56
+ description: string;
57
+ content: {
58
+ "application/json": {
59
+ schema: unknown;
60
+ };
61
+ };
62
+ };
63
+ "400": {
64
+ description: string;
65
+ content: {
66
+ "application/problem+json": {
67
+ schema: {
68
+ readonly $ref: string;
69
+ };
70
+ };
71
+ };
72
+ };
73
+ };
74
+ };
75
+ };
76
+ "/service": {
77
+ get: {
78
+ operationId: string;
79
+ tags: string[];
80
+ summary: string;
81
+ responses: {
82
+ "200": {
83
+ description: string;
84
+ content: {
85
+ "application/json": {
86
+ schema: unknown;
87
+ };
88
+ };
89
+ };
90
+ "400": {
91
+ description: string;
92
+ content: {
93
+ "application/problem+json": {
94
+ schema: {
95
+ readonly $ref: string;
96
+ };
97
+ };
98
+ };
99
+ };
100
+ };
101
+ };
102
+ };
103
+ "/workflows": {
104
+ get: {
105
+ operationId: string;
106
+ tags: string[];
107
+ summary: string;
108
+ responses: {
109
+ "200": {
110
+ description: string;
111
+ content: {
112
+ "application/json": {
113
+ schema: unknown;
114
+ };
115
+ };
116
+ };
117
+ "400": {
118
+ description: string;
119
+ content: {
120
+ "application/problem+json": {
121
+ schema: {
122
+ readonly $ref: string;
123
+ };
124
+ };
125
+ };
126
+ };
127
+ "503": {
128
+ description: string;
129
+ content: {
130
+ "application/problem+json": {
131
+ schema: {
132
+ readonly $ref: string;
133
+ };
134
+ };
135
+ };
136
+ };
137
+ };
138
+ };
139
+ };
140
+ "/runs": {
141
+ get: {
142
+ operationId: string;
143
+ tags: string[];
144
+ summary: string;
145
+ parameters: ({
146
+ name: string;
147
+ in: string;
148
+ description: string;
149
+ schema: {
150
+ type: string;
151
+ };
152
+ } | {
153
+ name: string;
154
+ in: string;
155
+ description: string;
156
+ schema: {
157
+ type: string;
158
+ enum: readonly ["queued", "running", "waiting_gate", "paused", "completed", "failed", "cancelled"];
159
+ };
160
+ } | {
161
+ name: string;
162
+ in: string;
163
+ description: string;
164
+ schema: {
165
+ readonly type: "integer";
166
+ readonly minimum: 1;
167
+ readonly maximum: 200;
168
+ readonly default: 50;
169
+ };
170
+ })[];
171
+ responses: {
172
+ "200": {
173
+ description: string;
174
+ content: {
175
+ "application/json": {
176
+ schema: unknown;
177
+ };
178
+ };
179
+ };
180
+ "400": {
181
+ description: string;
182
+ content: {
183
+ "application/problem+json": {
184
+ schema: {
185
+ readonly $ref: string;
186
+ };
187
+ };
188
+ };
189
+ };
190
+ "503": {
191
+ description: string;
192
+ content: {
193
+ "application/problem+json": {
194
+ schema: {
195
+ readonly $ref: string;
196
+ };
197
+ };
198
+ };
199
+ };
200
+ };
201
+ };
202
+ };
203
+ "/runs/{runId}": {
204
+ get: {
205
+ operationId: string;
206
+ tags: string[];
207
+ summary: string;
208
+ parameters: {
209
+ name: string;
210
+ in: string;
211
+ required: boolean;
212
+ description: string;
213
+ schema: {
214
+ type: string;
215
+ };
216
+ }[];
217
+ responses: {
218
+ "200": {
219
+ description: string;
220
+ content: {
221
+ "application/json": {
222
+ schema: unknown;
223
+ };
224
+ };
225
+ };
226
+ "400": {
227
+ description: string;
228
+ content: {
229
+ "application/problem+json": {
230
+ schema: {
231
+ readonly $ref: string;
232
+ };
233
+ };
234
+ };
235
+ };
236
+ "404": {
237
+ description: string;
238
+ content: {
239
+ "application/problem+json": {
240
+ schema: {
241
+ readonly $ref: string;
242
+ };
243
+ };
244
+ };
245
+ };
246
+ "503": {
247
+ description: string;
248
+ content: {
249
+ "application/problem+json": {
250
+ schema: {
251
+ readonly $ref: string;
252
+ };
253
+ };
254
+ };
255
+ };
256
+ };
257
+ };
258
+ };
259
+ "/runs/{runId}/events": {
260
+ get: {
261
+ operationId: string;
262
+ tags: string[];
263
+ summary: string;
264
+ parameters: ({
265
+ name: string;
266
+ in: string;
267
+ required: boolean;
268
+ description: string;
269
+ schema: {
270
+ type: string;
271
+ };
272
+ } | {
273
+ name: string;
274
+ in: string;
275
+ description: string;
276
+ schema: {
277
+ type: string;
278
+ minimum: number;
279
+ default: number;
280
+ };
281
+ })[];
282
+ responses: {
283
+ "200": {
284
+ description: string;
285
+ content: {
286
+ "application/json": {
287
+ schema: unknown;
288
+ };
289
+ };
290
+ };
291
+ "400": {
292
+ description: string;
293
+ content: {
294
+ "application/problem+json": {
295
+ schema: {
296
+ readonly $ref: string;
297
+ };
298
+ };
299
+ };
300
+ };
301
+ "404": {
302
+ description: string;
303
+ content: {
304
+ "application/problem+json": {
305
+ schema: {
306
+ readonly $ref: string;
307
+ };
308
+ };
309
+ };
310
+ };
311
+ "503": {
312
+ description: string;
313
+ content: {
314
+ "application/problem+json": {
315
+ schema: {
316
+ readonly $ref: string;
317
+ };
318
+ };
319
+ };
320
+ };
321
+ };
322
+ };
323
+ };
324
+ "/stream": {
325
+ get: {
326
+ operationId: string;
327
+ tags: string[];
328
+ summary: string;
329
+ responses: {
330
+ "200": {
331
+ description: string;
332
+ content: {
333
+ "text/event-stream": {
334
+ schema: {
335
+ type: string;
336
+ };
337
+ };
338
+ };
339
+ };
340
+ "400": {
341
+ description: string;
342
+ content: {
343
+ "application/problem+json": {
344
+ schema: {
345
+ readonly $ref: string;
346
+ };
347
+ };
348
+ };
349
+ };
350
+ };
351
+ };
352
+ };
353
+ };
354
+ components: {
355
+ schemas: {
356
+ Service: {
357
+ type: string;
358
+ required: string[];
359
+ properties: Readonly<Record<string, unknown>>;
360
+ additionalProperties: boolean;
361
+ };
362
+ Workflow: {
363
+ type: string;
364
+ required: string[];
365
+ properties: Readonly<Record<string, unknown>>;
366
+ additionalProperties: boolean;
367
+ };
368
+ CardField: {
369
+ type: string;
370
+ required: string[];
371
+ properties: Readonly<Record<string, unknown>>;
372
+ additionalProperties: boolean;
373
+ };
374
+ RunSummary: {
375
+ type: string;
376
+ required: string[];
377
+ properties: Readonly<Record<string, unknown>>;
378
+ additionalProperties: boolean;
379
+ };
380
+ RunPage: {
381
+ type: string;
382
+ required: string[];
383
+ properties: Readonly<Record<string, unknown>>;
384
+ additionalProperties: boolean;
385
+ };
386
+ RunDetail: {
387
+ type: string;
388
+ required: string[];
389
+ properties: Readonly<Record<string, unknown>>;
390
+ additionalProperties: boolean;
391
+ };
392
+ Decision: {
393
+ type: string;
394
+ required: string[];
395
+ properties: Readonly<Record<string, unknown>>;
396
+ additionalProperties: boolean;
397
+ };
398
+ Phase: {
399
+ type: string;
400
+ required: string[];
401
+ properties: Readonly<Record<string, unknown>>;
402
+ additionalProperties: boolean;
403
+ };
404
+ Review: {
405
+ type: string;
406
+ required: string[];
407
+ properties: Readonly<Record<string, unknown>>;
408
+ additionalProperties: boolean;
409
+ };
410
+ Turn: {
411
+ type: string;
412
+ required: string[];
413
+ properties: Readonly<Record<string, unknown>>;
414
+ additionalProperties: boolean;
415
+ };
416
+ Event: {
417
+ type: string;
418
+ required: string[];
419
+ properties: Readonly<Record<string, unknown>>;
420
+ additionalProperties: boolean;
421
+ };
422
+ Problem: {
423
+ type: string;
424
+ required: string[];
425
+ properties: Readonly<Record<string, unknown>>;
426
+ additionalProperties: boolean;
427
+ };
428
+ };
429
+ };
430
+ };