@exaudeus/workrail 3.40.0 → 3.42.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 (105) hide show
  1. package/dist/cli/commands/init.js +0 -3
  2. package/dist/cli-worktrain.js +48 -11
  3. package/dist/cli.js +0 -18
  4. package/dist/config/app-config.d.ts +0 -16
  5. package/dist/config/app-config.js +0 -14
  6. package/dist/config/config-file.js +0 -3
  7. package/dist/console-ui/assets/index-DGj8EsFR.css +1 -0
  8. package/dist/console-ui/assets/index-DwfWMKvv.js +28 -0
  9. package/dist/console-ui/index.html +2 -2
  10. package/dist/context-assembly/deps.d.ts +8 -0
  11. package/dist/context-assembly/deps.js +2 -0
  12. package/dist/context-assembly/index.d.ts +6 -0
  13. package/dist/context-assembly/index.js +50 -0
  14. package/dist/context-assembly/infra.d.ts +3 -0
  15. package/dist/context-assembly/infra.js +154 -0
  16. package/dist/context-assembly/types.d.ts +30 -0
  17. package/dist/context-assembly/types.js +2 -0
  18. package/dist/coordinators/pr-review.d.ts +20 -1
  19. package/dist/coordinators/pr-review.js +189 -4
  20. package/dist/daemon/daemon-events.d.ts +9 -1
  21. package/dist/daemon/soul-template.d.ts +2 -2
  22. package/dist/daemon/soul-template.js +11 -1
  23. package/dist/daemon/workflow-runner.d.ts +14 -1
  24. package/dist/daemon/workflow-runner.js +406 -25
  25. package/dist/di/container.js +1 -25
  26. package/dist/di/tokens.d.ts +0 -3
  27. package/dist/di/tokens.js +0 -3
  28. package/dist/domain/execution/state.d.ts +6 -6
  29. package/dist/engine/engine-factory.js +0 -1
  30. package/dist/infrastructure/console-defaults.d.ts +1 -0
  31. package/dist/infrastructure/console-defaults.js +4 -0
  32. package/dist/infrastructure/session/index.d.ts +0 -1
  33. package/dist/infrastructure/session/index.js +1 -3
  34. package/dist/manifest.json +138 -122
  35. package/dist/mcp/handlers/session.d.ts +1 -0
  36. package/dist/mcp/handlers/session.js +61 -13
  37. package/dist/mcp/handlers/v2-workflow.d.ts +2 -2
  38. package/dist/mcp/output-schemas.d.ts +234 -234
  39. package/dist/mcp/server.js +1 -18
  40. package/dist/mcp/tools.d.ts +2 -2
  41. package/dist/mcp/transports/http-entry.js +0 -2
  42. package/dist/mcp/transports/stdio-entry.js +1 -2
  43. package/dist/mcp/types.d.ts +0 -2
  44. package/dist/mcp/v2/tools.d.ts +24 -24
  45. package/dist/trigger/daemon-console.d.ts +2 -0
  46. package/dist/trigger/daemon-console.js +1 -1
  47. package/dist/trigger/trigger-listener.d.ts +2 -0
  48. package/dist/trigger/trigger-listener.js +3 -1
  49. package/dist/trigger/trigger-router.d.ts +4 -3
  50. package/dist/trigger/trigger-router.js +4 -3
  51. package/dist/trigger/trigger-store.js +17 -4
  52. package/dist/v2/durable-core/schemas/artifacts/assessment.d.ts +2 -2
  53. package/dist/v2/durable-core/schemas/artifacts/coordinator-signal.d.ts +2 -2
  54. package/dist/v2/durable-core/schemas/artifacts/loop-control.d.ts +6 -6
  55. package/dist/v2/durable-core/schemas/artifacts/review-verdict.d.ts +6 -6
  56. package/dist/v2/durable-core/schemas/compiled-workflow/index.d.ts +56 -56
  57. package/dist/v2/durable-core/schemas/execution-snapshot/blocked-snapshot.d.ts +83 -83
  58. package/dist/v2/durable-core/schemas/execution-snapshot/execution-snapshot.v1.d.ts +1024 -1024
  59. package/dist/v2/durable-core/schemas/export-bundle/index.d.ts +2336 -2336
  60. package/dist/v2/durable-core/schemas/session/dag-topology.d.ts +6 -6
  61. package/dist/v2/durable-core/schemas/session/events.d.ts +339 -339
  62. package/dist/v2/durable-core/schemas/session/gaps.d.ts +30 -30
  63. package/dist/v2/durable-core/schemas/session/manifest.d.ts +6 -6
  64. package/dist/v2/durable-core/schemas/session/outputs.d.ts +8 -8
  65. package/dist/v2/durable-core/schemas/session/validation-event.d.ts +3 -3
  66. package/dist/v2/usecases/console-routes.d.ts +2 -1
  67. package/dist/v2/usecases/console-routes.js +29 -5
  68. package/dist/v2/usecases/console-service.js +14 -0
  69. package/dist/v2/usecases/console-types.d.ts +1 -0
  70. package/docs/authoring.md +16 -16
  71. package/docs/design/context-assembly-design-candidates.md +199 -0
  72. package/docs/design/context-assembly-implementation-plan.md +211 -0
  73. package/docs/design/context-assembly-review-findings.md +112 -0
  74. package/docs/design/coordinator-message-queue-drain-plan.md +241 -0
  75. package/docs/design/coordinator-message-queue-drain-review.md +120 -0
  76. package/docs/design/coordinator-message-queue-drain.md +289 -0
  77. package/docs/design/shaping-workflow-external-research.md +119 -0
  78. package/docs/discovery/late-bound-goals-impl-plan.md +147 -0
  79. package/docs/discovery/late-bound-goals-review.md +82 -0
  80. package/docs/discovery/late-bound-goals.md +118 -0
  81. package/docs/discovery/steer-endpoint-design-candidates.md +288 -0
  82. package/docs/discovery/steer-endpoint-design-review-findings.md +104 -0
  83. package/docs/discovery/steer-endpoint-implementation-plan.md +284 -0
  84. package/docs/ideas/backlog.md +356 -0
  85. package/docs/ideas/design-candidates-console-session-tree-impl.md +64 -0
  86. package/docs/ideas/design-candidates-session-tree-view.md +196 -0
  87. package/docs/ideas/design-review-findings-console-session-tree-impl.md +75 -0
  88. package/docs/ideas/design-review-findings-session-tree-view.md +88 -0
  89. package/docs/ideas/implementation_plan_session_tree_view.md +238 -0
  90. package/package.json +2 -1
  91. package/spec/authoring-spec.json +16 -16
  92. package/spec/shape.schema.json +178 -0
  93. package/spec/workflow-tags.json +232 -47
  94. package/workflows/coding-task-workflow-agentic.json +491 -480
  95. package/workflows/wr.shaping.json +182 -0
  96. package/dist/console-ui/assets/index-8dh0Psu-.css +0 -1
  97. package/dist/console-ui/assets/index-CXWCAonr.js +0 -28
  98. package/dist/infrastructure/session/DashboardHeartbeat.d.ts +0 -8
  99. package/dist/infrastructure/session/DashboardHeartbeat.js +0 -39
  100. package/dist/infrastructure/session/DashboardLockRelease.d.ts +0 -2
  101. package/dist/infrastructure/session/DashboardLockRelease.js +0 -29
  102. package/dist/infrastructure/session/HttpServer.d.ts +0 -60
  103. package/dist/infrastructure/session/HttpServer.js +0 -912
  104. package/workflows/coding-task-workflow-agentic.lean.v2.json +0 -648
  105. package/workflows/coding-task-workflow-agentic.v2.json +0 -324
@@ -20,10 +20,10 @@ export declare const CompiledWorkflowSnapshotV1Schema: z.ZodDiscriminatedUnion<"
20
20
  prompt: string;
21
21
  }>;
22
22
  }, "strip", z.ZodTypeAny, {
23
+ workflowId: string;
23
24
  name: string;
24
25
  description: string;
25
26
  version: string;
26
- workflowId: string;
27
27
  schemaVersion: 1;
28
28
  sourceKind: "v1_preview";
29
29
  preview: {
@@ -32,10 +32,10 @@ export declare const CompiledWorkflowSnapshotV1Schema: z.ZodDiscriminatedUnion<"
32
32
  prompt: string;
33
33
  };
34
34
  }, {
35
+ workflowId: string;
35
36
  name: string;
36
37
  description: string;
37
38
  version: string;
38
- workflowId: string;
39
39
  schemaVersion: 1;
40
40
  sourceKind: "v1_preview";
41
41
  preview: {
@@ -64,19 +64,19 @@ export declare const CompiledWorkflowSnapshotV1Schema: z.ZodDiscriminatedUnion<"
64
64
  resolvedPath: z.ZodString;
65
65
  }, "strip", z.ZodTypeAny, {
66
66
  status: "resolved";
67
- id: string;
67
+ source: string;
68
68
  title: string;
69
+ id: string;
69
70
  purpose: string;
70
- source: string;
71
71
  authoritative: boolean;
72
72
  resolveFrom: "workspace" | "package";
73
73
  resolvedPath: string;
74
74
  }, {
75
75
  status: "resolved";
76
- id: string;
76
+ source: string;
77
77
  title: string;
78
+ id: string;
78
79
  purpose: string;
79
- source: string;
80
80
  authoritative: boolean;
81
81
  resolveFrom: "workspace" | "package";
82
82
  resolvedPath: string;
@@ -90,18 +90,18 @@ export declare const CompiledWorkflowSnapshotV1Schema: z.ZodDiscriminatedUnion<"
90
90
  status: z.ZodLiteral<"unresolved">;
91
91
  }, "strip", z.ZodTypeAny, {
92
92
  status: "unresolved";
93
- id: string;
93
+ source: string;
94
94
  title: string;
95
+ id: string;
95
96
  purpose: string;
96
- source: string;
97
97
  authoritative: boolean;
98
98
  resolveFrom: "workspace" | "package";
99
99
  }, {
100
100
  status: "unresolved";
101
- id: string;
101
+ source: string;
102
102
  title: string;
103
+ id: string;
103
104
  purpose: string;
104
- source: string;
105
105
  authoritative: boolean;
106
106
  resolveFrom: "workspace" | "package";
107
107
  }>, z.ZodObject<{
@@ -114,26 +114,26 @@ export declare const CompiledWorkflowSnapshotV1Schema: z.ZodDiscriminatedUnion<"
114
114
  status: z.ZodLiteral<"pinned">;
115
115
  }, "strip", z.ZodTypeAny, {
116
116
  status: "pinned";
117
- id: string;
117
+ source: string;
118
118
  title: string;
119
+ id: string;
119
120
  purpose: string;
120
- source: string;
121
121
  authoritative: boolean;
122
122
  resolveFrom: "workspace" | "package";
123
123
  }, {
124
124
  status: "pinned";
125
- id: string;
125
+ source: string;
126
126
  title: string;
127
+ id: string;
127
128
  purpose: string;
128
- source: string;
129
129
  authoritative: boolean;
130
130
  resolveFrom: "workspace" | "package";
131
131
  }>]>, "many">>;
132
132
  }, "strip", z.ZodTypeAny, {
133
+ workflowId: string;
133
134
  name: string;
134
135
  description: string;
135
136
  version: string;
136
- workflowId: string;
137
137
  schemaVersion: 1;
138
138
  sourceKind: "v1_pinned";
139
139
  definition?: unknown;
@@ -141,35 +141,35 @@ export declare const CompiledWorkflowSnapshotV1Schema: z.ZodDiscriminatedUnion<"
141
141
  pinnedOverrides?: Record<string, string> | undefined;
142
142
  resolvedReferences?: ({
143
143
  status: "resolved";
144
- id: string;
144
+ source: string;
145
145
  title: string;
146
+ id: string;
146
147
  purpose: string;
147
- source: string;
148
148
  authoritative: boolean;
149
149
  resolveFrom: "workspace" | "package";
150
150
  resolvedPath: string;
151
151
  } | {
152
152
  status: "unresolved";
153
- id: string;
153
+ source: string;
154
154
  title: string;
155
+ id: string;
155
156
  purpose: string;
156
- source: string;
157
157
  authoritative: boolean;
158
158
  resolveFrom: "workspace" | "package";
159
159
  } | {
160
160
  status: "pinned";
161
- id: string;
161
+ source: string;
162
162
  title: string;
163
+ id: string;
163
164
  purpose: string;
164
- source: string;
165
165
  authoritative: boolean;
166
166
  resolveFrom: "workspace" | "package";
167
167
  })[] | undefined;
168
168
  }, {
169
+ workflowId: string;
169
170
  name: string;
170
171
  description: string;
171
172
  version: string;
172
- workflowId: string;
173
173
  schemaVersion: 1;
174
174
  sourceKind: "v1_pinned";
175
175
  definition?: unknown;
@@ -177,27 +177,27 @@ export declare const CompiledWorkflowSnapshotV1Schema: z.ZodDiscriminatedUnion<"
177
177
  pinnedOverrides?: Record<string, string> | undefined;
178
178
  resolvedReferences?: ({
179
179
  status: "resolved";
180
- id: string;
180
+ source: string;
181
181
  title: string;
182
+ id: string;
182
183
  purpose: string;
183
- source: string;
184
184
  authoritative: boolean;
185
185
  resolveFrom: "workspace" | "package";
186
186
  resolvedPath: string;
187
187
  } | {
188
188
  status: "unresolved";
189
- id: string;
189
+ source: string;
190
190
  title: string;
191
+ id: string;
191
192
  purpose: string;
192
- source: string;
193
193
  authoritative: boolean;
194
194
  resolveFrom: "workspace" | "package";
195
195
  } | {
196
196
  status: "pinned";
197
- id: string;
197
+ source: string;
198
198
  title: string;
199
+ id: string;
199
200
  purpose: string;
200
- source: string;
201
201
  authoritative: boolean;
202
202
  resolveFrom: "workspace" | "package";
203
203
  })[] | undefined;
@@ -224,10 +224,10 @@ export declare const CompiledWorkflowSnapshotSchema: z.ZodDiscriminatedUnion<"so
224
224
  prompt: string;
225
225
  }>;
226
226
  }, "strip", z.ZodTypeAny, {
227
+ workflowId: string;
227
228
  name: string;
228
229
  description: string;
229
230
  version: string;
230
- workflowId: string;
231
231
  schemaVersion: 1;
232
232
  sourceKind: "v1_preview";
233
233
  preview: {
@@ -236,10 +236,10 @@ export declare const CompiledWorkflowSnapshotSchema: z.ZodDiscriminatedUnion<"so
236
236
  prompt: string;
237
237
  };
238
238
  }, {
239
+ workflowId: string;
239
240
  name: string;
240
241
  description: string;
241
242
  version: string;
242
- workflowId: string;
243
243
  schemaVersion: 1;
244
244
  sourceKind: "v1_preview";
245
245
  preview: {
@@ -268,19 +268,19 @@ export declare const CompiledWorkflowSnapshotSchema: z.ZodDiscriminatedUnion<"so
268
268
  resolvedPath: z.ZodString;
269
269
  }, "strip", z.ZodTypeAny, {
270
270
  status: "resolved";
271
- id: string;
271
+ source: string;
272
272
  title: string;
273
+ id: string;
273
274
  purpose: string;
274
- source: string;
275
275
  authoritative: boolean;
276
276
  resolveFrom: "workspace" | "package";
277
277
  resolvedPath: string;
278
278
  }, {
279
279
  status: "resolved";
280
- id: string;
280
+ source: string;
281
281
  title: string;
282
+ id: string;
282
283
  purpose: string;
283
- source: string;
284
284
  authoritative: boolean;
285
285
  resolveFrom: "workspace" | "package";
286
286
  resolvedPath: string;
@@ -294,18 +294,18 @@ export declare const CompiledWorkflowSnapshotSchema: z.ZodDiscriminatedUnion<"so
294
294
  status: z.ZodLiteral<"unresolved">;
295
295
  }, "strip", z.ZodTypeAny, {
296
296
  status: "unresolved";
297
- id: string;
297
+ source: string;
298
298
  title: string;
299
+ id: string;
299
300
  purpose: string;
300
- source: string;
301
301
  authoritative: boolean;
302
302
  resolveFrom: "workspace" | "package";
303
303
  }, {
304
304
  status: "unresolved";
305
- id: string;
305
+ source: string;
306
306
  title: string;
307
+ id: string;
307
308
  purpose: string;
308
- source: string;
309
309
  authoritative: boolean;
310
310
  resolveFrom: "workspace" | "package";
311
311
  }>, z.ZodObject<{
@@ -318,26 +318,26 @@ export declare const CompiledWorkflowSnapshotSchema: z.ZodDiscriminatedUnion<"so
318
318
  status: z.ZodLiteral<"pinned">;
319
319
  }, "strip", z.ZodTypeAny, {
320
320
  status: "pinned";
321
- id: string;
321
+ source: string;
322
322
  title: string;
323
+ id: string;
323
324
  purpose: string;
324
- source: string;
325
325
  authoritative: boolean;
326
326
  resolveFrom: "workspace" | "package";
327
327
  }, {
328
328
  status: "pinned";
329
- id: string;
329
+ source: string;
330
330
  title: string;
331
+ id: string;
331
332
  purpose: string;
332
- source: string;
333
333
  authoritative: boolean;
334
334
  resolveFrom: "workspace" | "package";
335
335
  }>]>, "many">>;
336
336
  }, "strip", z.ZodTypeAny, {
337
+ workflowId: string;
337
338
  name: string;
338
339
  description: string;
339
340
  version: string;
340
- workflowId: string;
341
341
  schemaVersion: 1;
342
342
  sourceKind: "v1_pinned";
343
343
  definition?: unknown;
@@ -345,35 +345,35 @@ export declare const CompiledWorkflowSnapshotSchema: z.ZodDiscriminatedUnion<"so
345
345
  pinnedOverrides?: Record<string, string> | undefined;
346
346
  resolvedReferences?: ({
347
347
  status: "resolved";
348
- id: string;
348
+ source: string;
349
349
  title: string;
350
+ id: string;
350
351
  purpose: string;
351
- source: string;
352
352
  authoritative: boolean;
353
353
  resolveFrom: "workspace" | "package";
354
354
  resolvedPath: string;
355
355
  } | {
356
356
  status: "unresolved";
357
- id: string;
357
+ source: string;
358
358
  title: string;
359
+ id: string;
359
360
  purpose: string;
360
- source: string;
361
361
  authoritative: boolean;
362
362
  resolveFrom: "workspace" | "package";
363
363
  } | {
364
364
  status: "pinned";
365
- id: string;
365
+ source: string;
366
366
  title: string;
367
+ id: string;
367
368
  purpose: string;
368
- source: string;
369
369
  authoritative: boolean;
370
370
  resolveFrom: "workspace" | "package";
371
371
  })[] | undefined;
372
372
  }, {
373
+ workflowId: string;
373
374
  name: string;
374
375
  description: string;
375
376
  version: string;
376
- workflowId: string;
377
377
  schemaVersion: 1;
378
378
  sourceKind: "v1_pinned";
379
379
  definition?: unknown;
@@ -381,27 +381,27 @@ export declare const CompiledWorkflowSnapshotSchema: z.ZodDiscriminatedUnion<"so
381
381
  pinnedOverrides?: Record<string, string> | undefined;
382
382
  resolvedReferences?: ({
383
383
  status: "resolved";
384
- id: string;
384
+ source: string;
385
385
  title: string;
386
+ id: string;
386
387
  purpose: string;
387
- source: string;
388
388
  authoritative: boolean;
389
389
  resolveFrom: "workspace" | "package";
390
390
  resolvedPath: string;
391
391
  } | {
392
392
  status: "unresolved";
393
- id: string;
393
+ source: string;
394
394
  title: string;
395
+ id: string;
395
396
  purpose: string;
396
- source: string;
397
397
  authoritative: boolean;
398
398
  resolveFrom: "workspace" | "package";
399
399
  } | {
400
400
  status: "pinned";
401
- id: string;
401
+ source: string;
402
402
  title: string;
403
+ id: string;
403
404
  purpose: string;
404
- source: string;
405
405
  authoritative: boolean;
406
406
  resolveFrom: "workspace" | "package";
407
407
  })[] | undefined;