@exaudeus/workrail 3.25.0 → 3.26.1

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 (59) hide show
  1. package/dist/cli/commands/index.d.ts +5 -0
  2. package/dist/cli/commands/index.js +12 -1
  3. package/dist/cli/commands/worktrain-await.d.ts +35 -0
  4. package/dist/cli/commands/worktrain-await.js +207 -0
  5. package/dist/cli/commands/worktrain-inbox.d.ts +23 -0
  6. package/dist/cli/commands/worktrain-inbox.js +82 -0
  7. package/dist/cli/commands/worktrain-init.d.ts +23 -0
  8. package/dist/cli/commands/worktrain-init.js +338 -0
  9. package/dist/cli/commands/worktrain-spawn.d.ts +28 -0
  10. package/dist/cli/commands/worktrain-spawn.js +106 -0
  11. package/dist/cli/commands/worktrain-tell.d.ts +25 -0
  12. package/dist/cli/commands/worktrain-tell.js +32 -0
  13. package/dist/cli-worktrain.d.ts +2 -0
  14. package/dist/cli-worktrain.js +169 -0
  15. package/dist/cli.js +13 -3
  16. package/dist/config/config-file.d.ts +2 -0
  17. package/dist/config/config-file.js +55 -0
  18. package/dist/daemon/agent-loop.d.ts +90 -0
  19. package/dist/daemon/agent-loop.js +214 -0
  20. package/dist/daemon/pi-mono-loader.d.ts +0 -5
  21. package/dist/daemon/pi-mono-loader.js +0 -64
  22. package/dist/daemon/soul-template.d.ts +2 -0
  23. package/dist/daemon/soul-template.js +22 -0
  24. package/dist/daemon/workflow-runner.d.ts +24 -2
  25. package/dist/daemon/workflow-runner.js +244 -120
  26. package/dist/manifest.json +147 -51
  27. package/dist/mcp/output-schemas.d.ts +154 -154
  28. package/dist/mcp/transports/bridge-entry.js +20 -2
  29. package/dist/mcp/transports/bridge-events.d.ts +34 -0
  30. package/dist/mcp/transports/bridge-events.js +24 -0
  31. package/dist/mcp/transports/fatal-exit.d.ts +5 -0
  32. package/dist/mcp/transports/fatal-exit.js +82 -0
  33. package/dist/mcp/transports/http-entry.js +3 -0
  34. package/dist/mcp/transports/stdio-entry.js +3 -7
  35. package/dist/mcp/v2/tools.d.ts +7 -7
  36. package/dist/trigger/delivery-action.d.ts +37 -0
  37. package/dist/trigger/delivery-action.js +204 -0
  38. package/dist/trigger/delivery-client.d.ts +11 -0
  39. package/dist/trigger/delivery-client.js +27 -0
  40. package/dist/trigger/trigger-listener.d.ts +2 -0
  41. package/dist/trigger/trigger-listener.js +12 -2
  42. package/dist/trigger/trigger-router.d.ts +8 -2
  43. package/dist/trigger/trigger-router.js +164 -6
  44. package/dist/trigger/trigger-store.d.ts +11 -3
  45. package/dist/trigger/trigger-store.js +254 -13
  46. package/dist/trigger/types.d.ts +24 -0
  47. package/dist/trigger/types.js +4 -0
  48. package/dist/v2/durable-core/schemas/execution-snapshot/blocked-snapshot.d.ts +22 -22
  49. package/dist/v2/durable-core/schemas/execution-snapshot/execution-snapshot.v1.d.ts +114 -114
  50. package/dist/v2/durable-core/schemas/export-bundle/index.d.ts +454 -454
  51. package/dist/v2/durable-core/schemas/session/blockers.d.ts +14 -14
  52. package/dist/v2/durable-core/schemas/session/events.d.ts +93 -93
  53. package/dist/v2/durable-core/schemas/session/gaps.d.ts +2 -2
  54. package/dist/v2/durable-core/schemas/session/validation-event.d.ts +4 -4
  55. package/dist/v2/usecases/console-routes.js +33 -3
  56. package/package.json +6 -4
  57. package/spec/workflow-tags.json +1 -0
  58. package/workflows/classify-task-workflow.json +68 -0
  59. package/workflows/coding-task-workflow-agentic.lean.v2.json +43 -13
@@ -4,11 +4,11 @@ export declare const BlockerPointerSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
4
4
  kind: z.ZodLiteral<"context_key">;
5
5
  key: z.ZodString;
6
6
  }, "strip", z.ZodTypeAny, {
7
- key: string;
8
7
  kind: "context_key";
9
- }, {
10
8
  key: string;
9
+ }, {
11
10
  kind: "context_key";
11
+ key: string;
12
12
  }>, z.ZodObject<{
13
13
  kind: z.ZodLiteral<"context_budget">;
14
14
  }, "strip", z.ZodTypeAny, {
@@ -49,11 +49,11 @@ export declare const BlockerSchema: z.ZodObject<{
49
49
  kind: z.ZodLiteral<"context_key">;
50
50
  key: z.ZodString;
51
51
  }, "strip", z.ZodTypeAny, {
52
- key: string;
53
52
  kind: "context_key";
54
- }, {
55
53
  key: string;
54
+ }, {
56
55
  kind: "context_key";
56
+ key: string;
57
57
  }>, z.ZodObject<{
58
58
  kind: z.ZodLiteral<"context_budget">;
59
59
  }, "strip", z.ZodTypeAny, {
@@ -94,8 +94,8 @@ export declare const BlockerSchema: z.ZodObject<{
94
94
  message: string;
95
95
  code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "MISSING_REQUIRED_NOTES" | "MISSING_CONTEXT_KEY" | "CONTEXT_BUDGET_EXCEEDED" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
96
96
  pointer: {
97
- key: string;
98
97
  kind: "context_key";
98
+ key: string;
99
99
  } | {
100
100
  kind: "context_budget";
101
101
  } | {
@@ -113,8 +113,8 @@ export declare const BlockerSchema: z.ZodObject<{
113
113
  message: string;
114
114
  code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "MISSING_REQUIRED_NOTES" | "MISSING_CONTEXT_KEY" | "CONTEXT_BUDGET_EXCEEDED" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
115
115
  pointer: {
116
- key: string;
117
116
  kind: "context_key";
117
+ key: string;
118
118
  } | {
119
119
  kind: "context_budget";
120
120
  } | {
@@ -136,11 +136,11 @@ export declare const BlockerReportV1Schema: z.ZodEffects<z.ZodObject<{
136
136
  kind: z.ZodLiteral<"context_key">;
137
137
  key: z.ZodString;
138
138
  }, "strip", z.ZodTypeAny, {
139
- key: string;
140
139
  kind: "context_key";
141
- }, {
142
140
  key: string;
141
+ }, {
143
142
  kind: "context_key";
143
+ key: string;
144
144
  }>, z.ZodObject<{
145
145
  kind: z.ZodLiteral<"context_budget">;
146
146
  }, "strip", z.ZodTypeAny, {
@@ -181,8 +181,8 @@ export declare const BlockerReportV1Schema: z.ZodEffects<z.ZodObject<{
181
181
  message: string;
182
182
  code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "MISSING_REQUIRED_NOTES" | "MISSING_CONTEXT_KEY" | "CONTEXT_BUDGET_EXCEEDED" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
183
183
  pointer: {
184
- key: string;
185
184
  kind: "context_key";
185
+ key: string;
186
186
  } | {
187
187
  kind: "context_budget";
188
188
  } | {
@@ -200,8 +200,8 @@ export declare const BlockerReportV1Schema: z.ZodEffects<z.ZodObject<{
200
200
  message: string;
201
201
  code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "MISSING_REQUIRED_NOTES" | "MISSING_CONTEXT_KEY" | "CONTEXT_BUDGET_EXCEEDED" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
202
202
  pointer: {
203
- key: string;
204
203
  kind: "context_key";
204
+ key: string;
205
205
  } | {
206
206
  kind: "context_budget";
207
207
  } | {
@@ -221,8 +221,8 @@ export declare const BlockerReportV1Schema: z.ZodEffects<z.ZodObject<{
221
221
  message: string;
222
222
  code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "MISSING_REQUIRED_NOTES" | "MISSING_CONTEXT_KEY" | "CONTEXT_BUDGET_EXCEEDED" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
223
223
  pointer: {
224
- key: string;
225
224
  kind: "context_key";
225
+ key: string;
226
226
  } | {
227
227
  kind: "context_budget";
228
228
  } | {
@@ -242,8 +242,8 @@ export declare const BlockerReportV1Schema: z.ZodEffects<z.ZodObject<{
242
242
  message: string;
243
243
  code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "MISSING_REQUIRED_NOTES" | "MISSING_CONTEXT_KEY" | "CONTEXT_BUDGET_EXCEEDED" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
244
244
  pointer: {
245
- key: string;
246
245
  kind: "context_key";
246
+ key: string;
247
247
  } | {
248
248
  kind: "context_budget";
249
249
  } | {
@@ -263,8 +263,8 @@ export declare const BlockerReportV1Schema: z.ZodEffects<z.ZodObject<{
263
263
  message: string;
264
264
  code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "MISSING_REQUIRED_NOTES" | "MISSING_CONTEXT_KEY" | "CONTEXT_BUDGET_EXCEEDED" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
265
265
  pointer: {
266
- key: string;
267
266
  kind: "context_key";
267
+ key: string;
268
268
  } | {
269
269
  kind: "context_budget";
270
270
  } | {
@@ -284,8 +284,8 @@ export declare const BlockerReportV1Schema: z.ZodEffects<z.ZodObject<{
284
284
  message: string;
285
285
  code: "USER_ONLY_DEPENDENCY" | "MISSING_REQUIRED_OUTPUT" | "INVALID_REQUIRED_OUTPUT" | "MISSING_REQUIRED_NOTES" | "MISSING_CONTEXT_KEY" | "CONTEXT_BUDGET_EXCEEDED" | "REQUIRED_CAPABILITY_UNKNOWN" | "REQUIRED_CAPABILITY_UNAVAILABLE" | "INVARIANT_VIOLATION" | "STORAGE_CORRUPTION_DETECTED";
286
286
  pointer: {
287
- key: string;
288
287
  kind: "context_key";
288
+ key: string;
289
289
  } | {
290
290
  kind: "context_budget";
291
291
  } | {