optio-contracts 0.6.0 → 0.7.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.
package/README.md CHANGED
@@ -27,28 +27,28 @@ Zod schemas and ts-rest contract for the Optio process management API.
27
27
 
28
28
  ## Contracts
29
29
 
30
- The package hosts two typed contracts. Contract files follow `<server>-to-<client>.ts` naming: the server side is the one that exposes the contract; the client side calls it.
30
+ The package hosts two contract files. Contract files follow `<server>-to-<client>.ts` naming: the server side is the one that exposes the contract; the client side calls it.
31
31
 
32
- - `processesContract` (in `src/api-to-frontend.ts`) — ts-rest HTTP contract that `optio-api` exposes to its REST clients.
32
+ - `processesContract` (in `src/api-to-frontend.ts`) — ts-rest HTTP contract that `optio-api` exposes to its REST clients. The same file exports `discoveryContract` (`GET /optio/instances`).
33
33
  - `optioEngineContract` (in `src/optio-engine-to-api.ts`) — clamator RPC contract that `optio-core` exposes to its RPC callers. Wire service name: `'optio-engine'`.
34
34
 
35
35
  ### `processesContract` (HTTP, ts-rest)
36
36
 
37
- ts-rest router with 11 endpoints, used by `optio-ui` to call `optio-api`:
37
+ ts-rest router with 11 endpoints, used by `optio-ui` to call `optio-api`. Every endpoint takes the optional query parameters `?database=&prefix=` that select the optio instance; `:id` is either the process `_id` or its `processId`:
38
38
 
39
39
  | Name | Method | Path |
40
40
  |------|--------|------|
41
- | `list` | GET | `/processes/:prefix` |
42
- | `get` | GET | `/processes/:prefix/:id` |
43
- | `getTree` | GET | `/processes/:prefix/:id/tree` |
44
- | `getLog` | GET | `/processes/:prefix/:id/log` |
45
- | `getTreeLog` | GET | `/processes/:prefix/:id/tree/log` |
41
+ | `list` | GET | `/processes` |
42
+ | `get` | GET | `/processes/:id` |
43
+ | `getTree` | GET | `/processes/:id/tree` |
44
+ | `getLog` | GET | `/processes/:id/log` |
45
+ | `getTreeLog` | GET | `/processes/:id/tree/log` |
46
46
  | `getConversation` | GET | `/processes/:id/conversation` |
47
- | `launch` | POST | `/processes/:prefix/:id/launch` |
48
- | `cancel` | POST | `/processes/:prefix/:id/cancel` |
49
- | `dismiss` | POST | `/processes/:prefix/:id/dismiss` |
47
+ | `launch` | POST | `/processes/:id/launch` |
48
+ | `cancel` | POST | `/processes/:id/cancel` |
49
+ | `dismiss` | POST | `/processes/:id/dismiss` |
50
50
  | `resurrect` | POST | `/processes/:id/resurrect` |
51
- | `resync` | POST | `/processes/:prefix/resync` |
51
+ | `resync` | POST | `/processes/resync` |
52
52
 
53
53
  Used at runtime by ts-rest; no codegen step.
54
54
 
@@ -61,15 +61,17 @@ clamator service named `optio-engine`, used by `optio-api` to call `optio-core`.
61
61
  | `launch` | request/reply | Launch a process; returns post-command process state or typed failure reason. |
62
62
  | `cancel` | request/reply | Cancel a running or scheduled process; returns post-command state or typed failure reason. |
63
63
  | `dismiss` | request/reply | Reset a terminal process to idle; returns post-command state or typed failure reason. |
64
+ | `resurrect` | request/reply | Save the work a failed run left on its host, then resume; returns post-command state or typed failure reason. |
64
65
  | `groupCancel` | request/reply | Cancel all processes matching a metadata filter; returns count. |
65
66
  | `groupCancelAndWait` | request/reply | Cancel all matching processes and wait until they reach a terminal state. |
66
67
  | `blockLaunches` | request/reply | Add a persistent launch block. |
67
68
  | `unblockLaunches` | request/reply | Remove a persistent launch block; returns count removed. |
69
+ | `materializeUpload` | request/reply | Land a staged upload (a GridFS blob) in a running process's workdir; returns its path. |
68
70
  | `resync` | notification | Re-sync task definitions. Fire-and-forget; no reply. |
69
71
 
70
72
  Failure modes use discriminated-union result types (e.g. `{ ok: true, process } | { ok: false, reason: 'not-found' | 'not-launchable' | … }`) so consumers get exhaustive type coverage on success and failure branches.
71
73
 
72
- Generated wrappers ship next to consumers: `packages/optio-api/src/_generated/engine.ts` for TypeScript, `packages/optio-core/src/optio_core/_generated/engine.py` for Python. Regenerate via `make codegen` at the repo root.
74
+ Generated wrappers ship next to consumers: `packages/optio-api/src/_generated/optio-engine.ts` for TypeScript, `packages/optio-core/src/optio_core/_generated/optio_engine.py` for Python. Regenerate via `make codegen` at the repo root.
73
75
 
74
76
  ## See Also
75
77
 
@@ -125,6 +125,8 @@ export declare const processesContract: {
125
125
  }>, "many">;
126
126
  uiWidget: z.ZodOptional<z.ZodNullable<z.ZodString>>;
127
127
  widgetData: z.ZodOptional<z.ZodUnknown>;
128
+ taskFactory: z.ZodOptional<z.ZodBoolean>;
129
+ parameters: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
128
130
  supportsResume: z.ZodOptional<z.ZodBoolean>;
129
131
  hasSavedState: z.ZodOptional<z.ZodBoolean>;
130
132
  supportsResurrect: z.ZodOptional<z.ZodBoolean>;
@@ -210,6 +212,8 @@ export declare const processesContract: {
210
212
  description?: string | null | undefined;
211
213
  uiWidget?: string | null | undefined;
212
214
  widgetData?: unknown;
215
+ taskFactory?: boolean | undefined;
216
+ parameters?: unknown[] | undefined;
213
217
  supportsResume?: boolean | undefined;
214
218
  hasSavedState?: boolean | undefined;
215
219
  supportsResurrect?: boolean | undefined;
@@ -268,6 +272,8 @@ export declare const processesContract: {
268
272
  description?: string | null | undefined;
269
273
  uiWidget?: string | null | undefined;
270
274
  widgetData?: unknown;
275
+ taskFactory?: boolean | undefined;
276
+ parameters?: unknown[] | undefined;
271
277
  supportsResume?: boolean | undefined;
272
278
  hasSavedState?: boolean | undefined;
273
279
  supportsResurrect?: boolean | undefined;
@@ -330,6 +336,8 @@ export declare const processesContract: {
330
336
  description?: string | null | undefined;
331
337
  uiWidget?: string | null | undefined;
332
338
  widgetData?: unknown;
339
+ taskFactory?: boolean | undefined;
340
+ parameters?: unknown[] | undefined;
333
341
  supportsResume?: boolean | undefined;
334
342
  hasSavedState?: boolean | undefined;
335
343
  supportsResurrect?: boolean | undefined;
@@ -392,6 +400,8 @@ export declare const processesContract: {
392
400
  description?: string | null | undefined;
393
401
  uiWidget?: string | null | undefined;
394
402
  widgetData?: unknown;
403
+ taskFactory?: boolean | undefined;
404
+ parameters?: unknown[] | undefined;
395
405
  supportsResume?: boolean | undefined;
396
406
  hasSavedState?: boolean | undefined;
397
407
  supportsResurrect?: boolean | undefined;
@@ -509,6 +519,8 @@ export declare const processesContract: {
509
519
  }>, "many">;
510
520
  uiWidget: z.ZodOptional<z.ZodNullable<z.ZodString>>;
511
521
  widgetData: z.ZodOptional<z.ZodUnknown>;
522
+ taskFactory: z.ZodOptional<z.ZodBoolean>;
523
+ parameters: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
512
524
  supportsResume: z.ZodOptional<z.ZodBoolean>;
513
525
  hasSavedState: z.ZodOptional<z.ZodBoolean>;
514
526
  supportsResurrect: z.ZodOptional<z.ZodBoolean>;
@@ -594,6 +606,8 @@ export declare const processesContract: {
594
606
  description?: string | null | undefined;
595
607
  uiWidget?: string | null | undefined;
596
608
  widgetData?: unknown;
609
+ taskFactory?: boolean | undefined;
610
+ parameters?: unknown[] | undefined;
597
611
  supportsResume?: boolean | undefined;
598
612
  hasSavedState?: boolean | undefined;
599
613
  supportsResurrect?: boolean | undefined;
@@ -652,6 +666,8 @@ export declare const processesContract: {
652
666
  description?: string | null | undefined;
653
667
  uiWidget?: string | null | undefined;
654
668
  widgetData?: unknown;
669
+ taskFactory?: boolean | undefined;
670
+ parameters?: unknown[] | undefined;
655
671
  supportsResume?: boolean | undefined;
656
672
  hasSavedState?: boolean | undefined;
657
673
  supportsResurrect?: boolean | undefined;
@@ -776,6 +792,8 @@ export declare const processesContract: {
776
792
  }>, "many">;
777
793
  uiWidget: z.ZodOptional<z.ZodNullable<z.ZodString>>;
778
794
  widgetData: z.ZodOptional<z.ZodUnknown>;
795
+ taskFactory: z.ZodOptional<z.ZodBoolean>;
796
+ parameters: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
779
797
  supportsResume: z.ZodOptional<z.ZodBoolean>;
780
798
  hasSavedState: z.ZodOptional<z.ZodBoolean>;
781
799
  supportsResurrect: z.ZodOptional<z.ZodBoolean>;
@@ -893,6 +911,8 @@ export declare const processesContract: {
893
911
  }>, "many">;
894
912
  uiWidget: z.ZodOptional<z.ZodNullable<z.ZodString>>;
895
913
  widgetData: z.ZodOptional<z.ZodUnknown>;
914
+ taskFactory: z.ZodOptional<z.ZodBoolean>;
915
+ parameters: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
896
916
  supportsResume: z.ZodOptional<z.ZodBoolean>;
897
917
  hasSavedState: z.ZodOptional<z.ZodBoolean>;
898
918
  supportsResurrect: z.ZodOptional<z.ZodBoolean>;
@@ -981,6 +1001,8 @@ export declare const processesContract: {
981
1001
  description?: string | null | undefined;
982
1002
  uiWidget?: string | null | undefined;
983
1003
  widgetData?: unknown;
1004
+ taskFactory?: boolean | undefined;
1005
+ parameters?: unknown[] | undefined;
984
1006
  supportsResume?: boolean | undefined;
985
1007
  hasSavedState?: boolean | undefined;
986
1008
  supportsResurrect?: boolean | undefined;
@@ -1040,6 +1062,8 @@ export declare const processesContract: {
1040
1062
  description?: string | null | undefined;
1041
1063
  uiWidget?: string | null | undefined;
1042
1064
  widgetData?: unknown;
1065
+ taskFactory?: boolean | undefined;
1066
+ parameters?: unknown[] | undefined;
1043
1067
  supportsResume?: boolean | undefined;
1044
1068
  hasSavedState?: boolean | undefined;
1045
1069
  supportsResurrect?: boolean | undefined;
@@ -1128,6 +1152,8 @@ export declare const processesContract: {
1128
1152
  description?: string | null | undefined;
1129
1153
  uiWidget?: string | null | undefined;
1130
1154
  widgetData?: unknown;
1155
+ taskFactory?: boolean | undefined;
1156
+ parameters?: unknown[] | undefined;
1131
1157
  supportsResume?: boolean | undefined;
1132
1158
  hasSavedState?: boolean | undefined;
1133
1159
  supportsResurrect?: boolean | undefined;
@@ -1159,6 +1185,8 @@ export declare const processesContract: {
1159
1185
  description?: string | null | undefined;
1160
1186
  uiWidget?: string | null | undefined;
1161
1187
  widgetData?: unknown;
1188
+ taskFactory?: boolean | undefined;
1189
+ parameters?: unknown[] | undefined;
1162
1190
  supportsResume?: boolean | undefined;
1163
1191
  hasSavedState?: boolean | undefined;
1164
1192
  supportsResurrect?: boolean | undefined;
@@ -1246,6 +1274,8 @@ export declare const processesContract: {
1246
1274
  description?: string | null | undefined;
1247
1275
  uiWidget?: string | null | undefined;
1248
1276
  widgetData?: unknown;
1277
+ taskFactory?: boolean | undefined;
1278
+ parameters?: unknown[] | undefined;
1249
1279
  supportsResume?: boolean | undefined;
1250
1280
  hasSavedState?: boolean | undefined;
1251
1281
  supportsResurrect?: boolean | undefined;
@@ -1277,6 +1307,8 @@ export declare const processesContract: {
1277
1307
  description?: string | null | undefined;
1278
1308
  uiWidget?: string | null | undefined;
1279
1309
  widgetData?: unknown;
1310
+ taskFactory?: boolean | undefined;
1311
+ parameters?: unknown[] | undefined;
1280
1312
  supportsResume?: boolean | undefined;
1281
1313
  hasSavedState?: boolean | undefined;
1282
1314
  supportsResurrect?: boolean | undefined;
@@ -1584,15 +1616,18 @@ export declare const processesContract: {
1584
1616
  database?: string | undefined;
1585
1617
  prefix?: string | undefined;
1586
1618
  }>;
1587
- summary: "Launch a process (optionally in resume mode)";
1619
+ summary: "Launch a process (optionally in resume mode; a task factory with parameter values)";
1588
1620
  method: "POST";
1589
1621
  body: z.ZodOptional<z.ZodObject<{
1590
1622
  resume: z.ZodOptional<z.ZodBoolean>;
1591
1623
  sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1624
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1592
1625
  }, "strip", z.ZodTypeAny, {
1626
+ params?: Record<string, unknown> | undefined;
1593
1627
  resume?: boolean | undefined;
1594
1628
  sessionId?: string | null | undefined;
1595
1629
  }, {
1630
+ params?: Record<string, unknown> | undefined;
1596
1631
  resume?: boolean | undefined;
1597
1632
  sessionId?: string | null | undefined;
1598
1633
  }>>;
@@ -1665,6 +1700,8 @@ export declare const processesContract: {
1665
1700
  }>, "many">;
1666
1701
  uiWidget: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1667
1702
  widgetData: z.ZodOptional<z.ZodUnknown>;
1703
+ taskFactory: z.ZodOptional<z.ZodBoolean>;
1704
+ parameters: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
1668
1705
  supportsResume: z.ZodOptional<z.ZodBoolean>;
1669
1706
  hasSavedState: z.ZodOptional<z.ZodBoolean>;
1670
1707
  supportsResurrect: z.ZodOptional<z.ZodBoolean>;
@@ -1750,6 +1787,8 @@ export declare const processesContract: {
1750
1787
  description?: string | null | undefined;
1751
1788
  uiWidget?: string | null | undefined;
1752
1789
  widgetData?: unknown;
1790
+ taskFactory?: boolean | undefined;
1791
+ parameters?: unknown[] | undefined;
1753
1792
  supportsResume?: boolean | undefined;
1754
1793
  hasSavedState?: boolean | undefined;
1755
1794
  supportsResurrect?: boolean | undefined;
@@ -1808,6 +1847,8 @@ export declare const processesContract: {
1808
1847
  description?: string | null | undefined;
1809
1848
  uiWidget?: string | null | undefined;
1810
1849
  widgetData?: unknown;
1850
+ taskFactory?: boolean | undefined;
1851
+ parameters?: unknown[] | undefined;
1811
1852
  supportsResume?: boolean | undefined;
1812
1853
  hasSavedState?: boolean | undefined;
1813
1854
  supportsResurrect?: boolean | undefined;
@@ -1831,25 +1872,35 @@ export declare const processesContract: {
1831
1872
  })[] | undefined;
1832
1873
  originatingSessionId?: string | null | undefined;
1833
1874
  }>;
1875
+ 400: z.ZodObject<{
1876
+ reason: z.ZodEnum<["not-found", "not-launchable", "no-resume-support", "launch-blocked", "shutting-down", "parameters-required", "not-a-factory", "invalid-parameters"]>;
1877
+ message: z.ZodString;
1878
+ }, "strip", z.ZodTypeAny, {
1879
+ message: string;
1880
+ reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters";
1881
+ }, {
1882
+ message: string;
1883
+ reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters";
1884
+ }>;
1834
1885
  404: z.ZodObject<{
1835
- reason: z.ZodEnum<["not-found", "not-launchable", "no-resume-support", "launch-blocked"]>;
1886
+ reason: z.ZodEnum<["not-found", "not-launchable", "no-resume-support", "launch-blocked", "shutting-down", "parameters-required", "not-a-factory", "invalid-parameters"]>;
1836
1887
  message: z.ZodString;
1837
1888
  }, "strip", z.ZodTypeAny, {
1838
1889
  message: string;
1839
- reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked";
1890
+ reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters";
1840
1891
  }, {
1841
1892
  message: string;
1842
- reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked";
1893
+ reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters";
1843
1894
  }>;
1844
1895
  409: z.ZodObject<{
1845
- reason: z.ZodEnum<["not-found", "not-launchable", "no-resume-support", "launch-blocked"]>;
1896
+ reason: z.ZodEnum<["not-found", "not-launchable", "no-resume-support", "launch-blocked", "shutting-down", "parameters-required", "not-a-factory", "invalid-parameters"]>;
1846
1897
  message: z.ZodString;
1847
1898
  }, "strip", z.ZodTypeAny, {
1848
1899
  message: string;
1849
- reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked";
1900
+ reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters";
1850
1901
  }, {
1851
1902
  message: string;
1852
- reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked";
1903
+ reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters";
1853
1904
  }>;
1854
1905
  };
1855
1906
  };
@@ -1943,6 +1994,8 @@ export declare const processesContract: {
1943
1994
  }>, "many">;
1944
1995
  uiWidget: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1945
1996
  widgetData: z.ZodOptional<z.ZodUnknown>;
1997
+ taskFactory: z.ZodOptional<z.ZodBoolean>;
1998
+ parameters: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
1946
1999
  supportsResume: z.ZodOptional<z.ZodBoolean>;
1947
2000
  hasSavedState: z.ZodOptional<z.ZodBoolean>;
1948
2001
  supportsResurrect: z.ZodOptional<z.ZodBoolean>;
@@ -2028,6 +2081,8 @@ export declare const processesContract: {
2028
2081
  description?: string | null | undefined;
2029
2082
  uiWidget?: string | null | undefined;
2030
2083
  widgetData?: unknown;
2084
+ taskFactory?: boolean | undefined;
2085
+ parameters?: unknown[] | undefined;
2031
2086
  supportsResume?: boolean | undefined;
2032
2087
  hasSavedState?: boolean | undefined;
2033
2088
  supportsResurrect?: boolean | undefined;
@@ -2086,6 +2141,8 @@ export declare const processesContract: {
2086
2141
  description?: string | null | undefined;
2087
2142
  uiWidget?: string | null | undefined;
2088
2143
  widgetData?: unknown;
2144
+ taskFactory?: boolean | undefined;
2145
+ parameters?: unknown[] | undefined;
2089
2146
  supportsResume?: boolean | undefined;
2090
2147
  hasSavedState?: boolean | undefined;
2091
2148
  supportsResurrect?: boolean | undefined;
@@ -2221,6 +2278,8 @@ export declare const processesContract: {
2221
2278
  }>, "many">;
2222
2279
  uiWidget: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2223
2280
  widgetData: z.ZodOptional<z.ZodUnknown>;
2281
+ taskFactory: z.ZodOptional<z.ZodBoolean>;
2282
+ parameters: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
2224
2283
  supportsResume: z.ZodOptional<z.ZodBoolean>;
2225
2284
  hasSavedState: z.ZodOptional<z.ZodBoolean>;
2226
2285
  supportsResurrect: z.ZodOptional<z.ZodBoolean>;
@@ -2306,6 +2365,8 @@ export declare const processesContract: {
2306
2365
  description?: string | null | undefined;
2307
2366
  uiWidget?: string | null | undefined;
2308
2367
  widgetData?: unknown;
2368
+ taskFactory?: boolean | undefined;
2369
+ parameters?: unknown[] | undefined;
2309
2370
  supportsResume?: boolean | undefined;
2310
2371
  hasSavedState?: boolean | undefined;
2311
2372
  supportsResurrect?: boolean | undefined;
@@ -2364,6 +2425,8 @@ export declare const processesContract: {
2364
2425
  description?: string | null | undefined;
2365
2426
  uiWidget?: string | null | undefined;
2366
2427
  widgetData?: unknown;
2428
+ taskFactory?: boolean | undefined;
2429
+ parameters?: unknown[] | undefined;
2367
2430
  supportsResume?: boolean | undefined;
2368
2431
  hasSavedState?: boolean | undefined;
2369
2432
  supportsResurrect?: boolean | undefined;
@@ -2505,6 +2568,8 @@ export declare const processesContract: {
2505
2568
  }>, "many">;
2506
2569
  uiWidget: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2507
2570
  widgetData: z.ZodOptional<z.ZodUnknown>;
2571
+ taskFactory: z.ZodOptional<z.ZodBoolean>;
2572
+ parameters: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
2508
2573
  supportsResume: z.ZodOptional<z.ZodBoolean>;
2509
2574
  hasSavedState: z.ZodOptional<z.ZodBoolean>;
2510
2575
  supportsResurrect: z.ZodOptional<z.ZodBoolean>;
@@ -2590,6 +2655,8 @@ export declare const processesContract: {
2590
2655
  description?: string | null | undefined;
2591
2656
  uiWidget?: string | null | undefined;
2592
2657
  widgetData?: unknown;
2658
+ taskFactory?: boolean | undefined;
2659
+ parameters?: unknown[] | undefined;
2593
2660
  supportsResume?: boolean | undefined;
2594
2661
  hasSavedState?: boolean | undefined;
2595
2662
  supportsResurrect?: boolean | undefined;
@@ -2648,6 +2715,8 @@ export declare const processesContract: {
2648
2715
  description?: string | null | undefined;
2649
2716
  uiWidget?: string | null | undefined;
2650
2717
  widgetData?: unknown;
2718
+ taskFactory?: boolean | undefined;
2719
+ parameters?: unknown[] | undefined;
2651
2720
  supportsResume?: boolean | undefined;
2652
2721
  hasSavedState?: boolean | undefined;
2653
2722
  supportsResurrect?: boolean | undefined;
@@ -2676,20 +2745,20 @@ export declare const processesContract: {
2676
2745
  message: z.ZodString;
2677
2746
  }, "strip", z.ZodTypeAny, {
2678
2747
  message: string;
2679
- reason: "not-found" | "launch-blocked" | "not-resurrectable" | "no-resurrect-support" | "resurrect-in-progress" | "shutting-down";
2748
+ reason: "not-found" | "launch-blocked" | "shutting-down" | "not-resurrectable" | "no-resurrect-support" | "resurrect-in-progress";
2680
2749
  }, {
2681
2750
  message: string;
2682
- reason: "not-found" | "launch-blocked" | "not-resurrectable" | "no-resurrect-support" | "resurrect-in-progress" | "shutting-down";
2751
+ reason: "not-found" | "launch-blocked" | "shutting-down" | "not-resurrectable" | "no-resurrect-support" | "resurrect-in-progress";
2683
2752
  }>;
2684
2753
  409: z.ZodObject<{
2685
2754
  reason: z.ZodEnum<["not-found", "not-resurrectable", "no-resurrect-support", "resurrect-in-progress", "launch-blocked", "shutting-down"]>;
2686
2755
  message: z.ZodString;
2687
2756
  }, "strip", z.ZodTypeAny, {
2688
2757
  message: string;
2689
- reason: "not-found" | "launch-blocked" | "not-resurrectable" | "no-resurrect-support" | "resurrect-in-progress" | "shutting-down";
2758
+ reason: "not-found" | "launch-blocked" | "shutting-down" | "not-resurrectable" | "no-resurrect-support" | "resurrect-in-progress";
2690
2759
  }, {
2691
2760
  message: string;
2692
- reason: "not-found" | "launch-blocked" | "not-resurrectable" | "no-resurrect-support" | "resurrect-in-progress" | "shutting-down";
2761
+ reason: "not-found" | "launch-blocked" | "shutting-down" | "not-resurrectable" | "no-resurrect-support" | "resurrect-in-progress";
2693
2762
  }>;
2694
2763
  };
2695
2764
  };
@@ -1 +1 @@
1
- {"version":3,"file":"api-to-frontend.d.ts","sourceRoot":"","sources":["../src/api-to-frontend.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAwBxB;;;;;;;GAOG;AACH,eAAO,MAAM,yBAAyB,2IAQpC,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAIlF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 -149,13 +149,16 @@ export const processesContract = c.router({
149
149
  body: z.object({
150
150
  resume: z.boolean().optional(),
151
151
  sessionId: z.string().nullable().optional(),
152
+ // A task factory's parameter values; the answer is the child's record.
153
+ params: z.record(z.unknown()).optional(),
152
154
  }).optional(),
153
155
  responses: {
154
156
  200: ProcessSchema,
157
+ 400: LaunchErrorBody,
155
158
  404: LaunchErrorBody,
156
159
  409: LaunchErrorBody,
157
160
  },
158
- summary: 'Launch a process (optionally in resume mode)',
161
+ summary: 'Launch a process (optionally in resume mode; a task factory with parameter values)',
159
162
  },
160
163
  cancel: {
161
164
  method: 'POST',
@@ -1 +1 @@
1
- {"version":3,"file":"api-to-frontend.js","sourceRoot":"","sources":["../src/api-to-frontend.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,WAAW,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AACxI,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,cAAc,EAAE,2BAA2B,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAC;AACtJ,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErI,MAAM,CAAC,GAAG,YAAY,EAAE,CAAC;AAEzB,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/B,MAAM,EAAE,mBAAmB;IAC3B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAC;AAEH,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/B,MAAM,EAAE,mBAAmB;IAC3B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAC;AAEH,MAAM,gBAAgB,GAAG,CAAC,CAA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;IACD,MAAM,EAAE;QACN,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,mBAAmB;QACzB,KAAK,EAAE,mBAAmB;QAC1B,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE,cAAc,EAAE,2BAA2B,CAAC,QAAQ,EAAE,EAAE,CAAC;QACzG,SAAS,EAAE;YACT,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC;SACvC;QACD,OAAO,EAAE,6BAA6B;KACvC;CACF,CAAC,CAAC;AAEH,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,IAAI,EAAE,CAAC,CAAC,OAAO,EAAE;CAClB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,SAAS,EAAE;QACT,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,kBAAkB;QACxB,SAAS,EAAE;YACT,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,EAAE,CAAC;SACtD;QACD,OAAO,EAAE,kDAAkD;KAC5D;CACF,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- export declare const LaunchFailureReason: z.ZodEnum<["not-found", "not-launchable", "no-resume-support", "launch-blocked"]>;
2
+ export declare const LaunchFailureReason: z.ZodEnum<["not-found", "not-launchable", "no-resume-support", "launch-blocked", "shutting-down", "parameters-required", "not-a-factory", "invalid-parameters"]>;
3
3
  export declare const CancelFailureReason: z.ZodEnum<["not-found", "not-cancellable"]>;
4
4
  export declare const DismissFailureReason: z.ZodEnum<["not-found", "not-dismissable"]>;
5
5
  export declare const ResurrectFailureReason: z.ZodEnum<["not-found", "not-resurrectable", "no-resurrect-support", "resurrect-in-progress", "launch-blocked", "shutting-down"]>;
@@ -1 +1 @@
1
- {"version":3,"file":"engine-failure-reasons.d.ts","sourceRoot":"","sources":["../src/engine-failure-reasons.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB,mFAK9B,CAAC;AAEH,eAAO,MAAM,mBAAmB,6CAG9B,CAAC;AAEH,eAAO,MAAM,oBAAoB,6CAG/B,CAAC;AAEH,eAAO,MAAM,sBAAsB,mIAOjC,CAAC;AAEH,eAAO,MAAM,wBAAwB,8CAEnC,CAAC;AAEH,eAAO,MAAM,0BAA0B,+BAErC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACtE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACtE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACxE,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAC5E,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAChF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
1
+ {"version":3,"file":"engine-failure-reasons.d.ts","sourceRoot":"","sources":["../src/engine-failure-reasons.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB,kKAY9B,CAAC;AAEH,eAAO,MAAM,mBAAmB,6CAG9B,CAAC;AAEH,eAAO,MAAM,oBAAoB,6CAG/B,CAAC;AAEH,eAAO,MAAM,sBAAsB,mIAOjC,CAAC;AAEH,eAAO,MAAM,wBAAwB,8CAEnC,CAAC;AAEH,eAAO,MAAM,0BAA0B,+BAErC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACtE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACtE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACxE,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAC5E,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAChF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
@@ -10,6 +10,13 @@ export const LaunchFailureReason = z.enum([
10
10
  'not-launchable',
11
11
  'no-resume-support',
12
12
  'launch-blocked',
13
+ 'shutting-down',
14
+ // Task factories: a launch of a factory without `params`, `params` on a
15
+ // process that is not a factory, and values the factory refused (the
16
+ // message names the parameter: "<id>: <what>").
17
+ 'parameters-required',
18
+ 'not-a-factory',
19
+ 'invalid-parameters',
13
20
  ]);
14
21
  export const CancelFailureReason = z.enum([
15
22
  'not-found',
@@ -1 +1 @@
1
- {"version":3,"file":"engine-failure-reasons.js","sourceRoot":"","sources":["../src/engine-failure-reasons.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,EAAE;AACF,qEAAqE;AACrE,2EAA2E;AAC3E,+EAA+E;AAC/E,6EAA6E;AAE7E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,IAAI,CAAC;IACxC,WAAW;IACX,gBAAgB;IAChB,mBAAmB;IACnB,gBAAgB;CACjB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,IAAI,CAAC;IACxC,WAAW;IACX,iBAAiB;CAClB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,IAAI,CAAC;IACzC,WAAW;IACX,iBAAiB;CAClB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC3C,WAAW;IACX,mBAAmB;IACnB,sBAAsB;IACtB,uBAAuB;IACvB,gBAAgB;IAChB,eAAe;CAChB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC7C,+BAA+B;CAChC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,IAAI,CAAC;IAC/C,gBAAgB;CACjB,CAAC,CAAC"}
1
+ {"version":3,"file":"engine-failure-reasons.js","sourceRoot":"","sources":["../src/engine-failure-reasons.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,EAAE;AACF,qEAAqE;AACrE,2EAA2E;AAC3E,+EAA+E;AAC/E,6EAA6E;AAE7E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,IAAI,CAAC;IACxC,WAAW;IACX,gBAAgB;IAChB,mBAAmB;IACnB,gBAAgB;IAChB,eAAe;IACf,wEAAwE;IACxE,qEAAqE;IACrE,gDAAgD;IAChD,qBAAqB;IACrB,eAAe;IACf,oBAAoB;CACrB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,IAAI,CAAC;IACxC,WAAW;IACX,iBAAiB;CAClB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,IAAI,CAAC;IACzC,WAAW;IACX,iBAAiB;CAClB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC3C,WAAW;IACX,mBAAmB;IACnB,sBAAsB;IACtB,uBAAuB;IACvB,gBAAgB;IAChB,eAAe;CAChB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC7C,+BAA+B;CAChC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,IAAI,CAAC;IAC/C,gBAAgB;CACjB,CAAC,CAAC"}
@@ -4,13 +4,16 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
4
4
  processId: z.ZodString;
5
5
  resume: z.ZodOptional<z.ZodBoolean>;
6
6
  sessionId: z.ZodNullable<z.ZodString>;
7
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7
8
  }, "strip", z.ZodTypeAny, {
8
9
  processId: string;
9
10
  sessionId: string | null;
11
+ params?: Record<string, unknown> | undefined;
10
12
  resume?: boolean | undefined;
11
13
  }, {
12
14
  processId: string;
13
15
  sessionId: string | null;
16
+ params?: Record<string, unknown> | undefined;
14
17
  resume?: boolean | undefined;
15
18
  }>, z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
16
19
  ok: z.ZodLiteral<true>;
@@ -81,6 +84,8 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
81
84
  }>, "many">;
82
85
  uiWidget: z.ZodOptional<z.ZodNullable<z.ZodString>>;
83
86
  widgetData: z.ZodOptional<z.ZodUnknown>;
87
+ taskFactory: z.ZodOptional<z.ZodBoolean>;
88
+ parameters: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
84
89
  supportsResume: z.ZodOptional<z.ZodBoolean>;
85
90
  hasSavedState: z.ZodOptional<z.ZodBoolean>;
86
91
  supportsResurrect: z.ZodOptional<z.ZodBoolean>;
@@ -166,6 +171,8 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
166
171
  description?: string | null | undefined;
167
172
  uiWidget?: string | null | undefined;
168
173
  widgetData?: unknown;
174
+ taskFactory?: boolean | undefined;
175
+ parameters?: unknown[] | undefined;
169
176
  supportsResume?: boolean | undefined;
170
177
  hasSavedState?: boolean | undefined;
171
178
  supportsResurrect?: boolean | undefined;
@@ -224,6 +231,8 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
224
231
  description?: string | null | undefined;
225
232
  uiWidget?: string | null | undefined;
226
233
  widgetData?: unknown;
234
+ taskFactory?: boolean | undefined;
235
+ parameters?: unknown[] | undefined;
227
236
  supportsResume?: boolean | undefined;
228
237
  hasSavedState?: boolean | undefined;
229
238
  supportsResurrect?: boolean | undefined;
@@ -285,6 +294,8 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
285
294
  description?: string | null | undefined;
286
295
  uiWidget?: string | null | undefined;
287
296
  widgetData?: unknown;
297
+ taskFactory?: boolean | undefined;
298
+ parameters?: unknown[] | undefined;
288
299
  supportsResume?: boolean | undefined;
289
300
  hasSavedState?: boolean | undefined;
290
301
  supportsResurrect?: boolean | undefined;
@@ -346,6 +357,8 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
346
357
  description?: string | null | undefined;
347
358
  uiWidget?: string | null | undefined;
348
359
  widgetData?: unknown;
360
+ taskFactory?: boolean | undefined;
361
+ parameters?: unknown[] | undefined;
349
362
  supportsResume?: boolean | undefined;
350
363
  hasSavedState?: boolean | undefined;
351
364
  supportsResurrect?: boolean | undefined;
@@ -371,13 +384,16 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
371
384
  };
372
385
  }>, z.ZodObject<{
373
386
  ok: z.ZodLiteral<false>;
374
- reason: z.ZodEnum<["not-found", "not-launchable", "no-resume-support", "launch-blocked"]>;
387
+ reason: z.ZodEnum<["not-found", "not-launchable", "no-resume-support", "launch-blocked", "shutting-down", "parameters-required", "not-a-factory", "invalid-parameters"]>;
388
+ message: z.ZodOptional<z.ZodString>;
375
389
  }, "strip", z.ZodTypeAny, {
376
- reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked";
390
+ reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters";
377
391
  ok: false;
392
+ message?: string | undefined;
378
393
  }, {
379
- reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked";
394
+ reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters";
380
395
  ok: false;
396
+ message?: string | undefined;
381
397
  }>]>>;
382
398
  cancel: import("@clamator/protocol").MethodDef<z.ZodObject<{
383
399
  processId: z.ZodString;
@@ -454,6 +470,8 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
454
470
  }>, "many">;
455
471
  uiWidget: z.ZodOptional<z.ZodNullable<z.ZodString>>;
456
472
  widgetData: z.ZodOptional<z.ZodUnknown>;
473
+ taskFactory: z.ZodOptional<z.ZodBoolean>;
474
+ parameters: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
457
475
  supportsResume: z.ZodOptional<z.ZodBoolean>;
458
476
  hasSavedState: z.ZodOptional<z.ZodBoolean>;
459
477
  supportsResurrect: z.ZodOptional<z.ZodBoolean>;
@@ -539,6 +557,8 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
539
557
  description?: string | null | undefined;
540
558
  uiWidget?: string | null | undefined;
541
559
  widgetData?: unknown;
560
+ taskFactory?: boolean | undefined;
561
+ parameters?: unknown[] | undefined;
542
562
  supportsResume?: boolean | undefined;
543
563
  hasSavedState?: boolean | undefined;
544
564
  supportsResurrect?: boolean | undefined;
@@ -597,6 +617,8 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
597
617
  description?: string | null | undefined;
598
618
  uiWidget?: string | null | undefined;
599
619
  widgetData?: unknown;
620
+ taskFactory?: boolean | undefined;
621
+ parameters?: unknown[] | undefined;
600
622
  supportsResume?: boolean | undefined;
601
623
  hasSavedState?: boolean | undefined;
602
624
  supportsResurrect?: boolean | undefined;
@@ -658,6 +680,8 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
658
680
  description?: string | null | undefined;
659
681
  uiWidget?: string | null | undefined;
660
682
  widgetData?: unknown;
683
+ taskFactory?: boolean | undefined;
684
+ parameters?: unknown[] | undefined;
661
685
  supportsResume?: boolean | undefined;
662
686
  hasSavedState?: boolean | undefined;
663
687
  supportsResurrect?: boolean | undefined;
@@ -719,6 +743,8 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
719
743
  description?: string | null | undefined;
720
744
  uiWidget?: string | null | undefined;
721
745
  widgetData?: unknown;
746
+ taskFactory?: boolean | undefined;
747
+ parameters?: unknown[] | undefined;
722
748
  supportsResume?: boolean | undefined;
723
749
  hasSavedState?: boolean | undefined;
724
750
  supportsResurrect?: boolean | undefined;
@@ -827,6 +853,8 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
827
853
  }>, "many">;
828
854
  uiWidget: z.ZodOptional<z.ZodNullable<z.ZodString>>;
829
855
  widgetData: z.ZodOptional<z.ZodUnknown>;
856
+ taskFactory: z.ZodOptional<z.ZodBoolean>;
857
+ parameters: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
830
858
  supportsResume: z.ZodOptional<z.ZodBoolean>;
831
859
  hasSavedState: z.ZodOptional<z.ZodBoolean>;
832
860
  supportsResurrect: z.ZodOptional<z.ZodBoolean>;
@@ -912,6 +940,8 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
912
940
  description?: string | null | undefined;
913
941
  uiWidget?: string | null | undefined;
914
942
  widgetData?: unknown;
943
+ taskFactory?: boolean | undefined;
944
+ parameters?: unknown[] | undefined;
915
945
  supportsResume?: boolean | undefined;
916
946
  hasSavedState?: boolean | undefined;
917
947
  supportsResurrect?: boolean | undefined;
@@ -970,6 +1000,8 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
970
1000
  description?: string | null | undefined;
971
1001
  uiWidget?: string | null | undefined;
972
1002
  widgetData?: unknown;
1003
+ taskFactory?: boolean | undefined;
1004
+ parameters?: unknown[] | undefined;
973
1005
  supportsResume?: boolean | undefined;
974
1006
  hasSavedState?: boolean | undefined;
975
1007
  supportsResurrect?: boolean | undefined;
@@ -1031,6 +1063,8 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
1031
1063
  description?: string | null | undefined;
1032
1064
  uiWidget?: string | null | undefined;
1033
1065
  widgetData?: unknown;
1066
+ taskFactory?: boolean | undefined;
1067
+ parameters?: unknown[] | undefined;
1034
1068
  supportsResume?: boolean | undefined;
1035
1069
  hasSavedState?: boolean | undefined;
1036
1070
  supportsResurrect?: boolean | undefined;
@@ -1092,6 +1126,8 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
1092
1126
  description?: string | null | undefined;
1093
1127
  uiWidget?: string | null | undefined;
1094
1128
  widgetData?: unknown;
1129
+ taskFactory?: boolean | undefined;
1130
+ parameters?: unknown[] | undefined;
1095
1131
  supportsResume?: boolean | undefined;
1096
1132
  hasSavedState?: boolean | undefined;
1097
1133
  supportsResurrect?: boolean | undefined;
@@ -1203,6 +1239,8 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
1203
1239
  }>, "many">;
1204
1240
  uiWidget: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1205
1241
  widgetData: z.ZodOptional<z.ZodUnknown>;
1242
+ taskFactory: z.ZodOptional<z.ZodBoolean>;
1243
+ parameters: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
1206
1244
  supportsResume: z.ZodOptional<z.ZodBoolean>;
1207
1245
  hasSavedState: z.ZodOptional<z.ZodBoolean>;
1208
1246
  supportsResurrect: z.ZodOptional<z.ZodBoolean>;
@@ -1288,6 +1326,8 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
1288
1326
  description?: string | null | undefined;
1289
1327
  uiWidget?: string | null | undefined;
1290
1328
  widgetData?: unknown;
1329
+ taskFactory?: boolean | undefined;
1330
+ parameters?: unknown[] | undefined;
1291
1331
  supportsResume?: boolean | undefined;
1292
1332
  hasSavedState?: boolean | undefined;
1293
1333
  supportsResurrect?: boolean | undefined;
@@ -1346,6 +1386,8 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
1346
1386
  description?: string | null | undefined;
1347
1387
  uiWidget?: string | null | undefined;
1348
1388
  widgetData?: unknown;
1389
+ taskFactory?: boolean | undefined;
1390
+ parameters?: unknown[] | undefined;
1349
1391
  supportsResume?: boolean | undefined;
1350
1392
  hasSavedState?: boolean | undefined;
1351
1393
  supportsResurrect?: boolean | undefined;
@@ -1407,6 +1449,8 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
1407
1449
  description?: string | null | undefined;
1408
1450
  uiWidget?: string | null | undefined;
1409
1451
  widgetData?: unknown;
1452
+ taskFactory?: boolean | undefined;
1453
+ parameters?: unknown[] | undefined;
1410
1454
  supportsResume?: boolean | undefined;
1411
1455
  hasSavedState?: boolean | undefined;
1412
1456
  supportsResurrect?: boolean | undefined;
@@ -1468,6 +1512,8 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
1468
1512
  description?: string | null | undefined;
1469
1513
  uiWidget?: string | null | undefined;
1470
1514
  widgetData?: unknown;
1515
+ taskFactory?: boolean | undefined;
1516
+ parameters?: unknown[] | undefined;
1471
1517
  supportsResume?: boolean | undefined;
1472
1518
  hasSavedState?: boolean | undefined;
1473
1519
  supportsResurrect?: boolean | undefined;
@@ -1495,10 +1541,10 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
1495
1541
  ok: z.ZodLiteral<false>;
1496
1542
  reason: z.ZodEnum<["not-found", "not-resurrectable", "no-resurrect-support", "resurrect-in-progress", "launch-blocked", "shutting-down"]>;
1497
1543
  }, "strip", z.ZodTypeAny, {
1498
- reason: "not-found" | "launch-blocked" | "not-resurrectable" | "no-resurrect-support" | "resurrect-in-progress" | "shutting-down";
1544
+ reason: "not-found" | "launch-blocked" | "shutting-down" | "not-resurrectable" | "no-resurrect-support" | "resurrect-in-progress";
1499
1545
  ok: false;
1500
1546
  }, {
1501
- reason: "not-found" | "launch-blocked" | "not-resurrectable" | "no-resurrect-support" | "resurrect-in-progress" | "shutting-down";
1547
+ reason: "not-found" | "launch-blocked" | "shutting-down" | "not-resurrectable" | "no-resurrect-support" | "resurrect-in-progress";
1502
1548
  ok: false;
1503
1549
  }>]>>;
1504
1550
  groupCancel: import("@clamator/protocol").MethodDef<z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"optio-engine-to-api.d.ts","sourceRoot":"","sources":["../src/optio-engine-to-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA0DxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4E9B,CAAC"}
@@ -5,7 +5,8 @@ import { LaunchFailureReason, CancelFailureReason, DismissFailureReason, Resurre
5
5
  const ProcessIdParam = z.string().min(1);
6
6
  const launchResult = z.discriminatedUnion('ok', [
7
7
  z.object({ ok: z.literal(true), process: ProcessSchema }),
8
- z.object({ ok: z.literal(false), reason: LaunchFailureReason }),
8
+ // `message` is optio-core's text of an `invalid-parameters` refusal.
9
+ z.object({ ok: z.literal(false), reason: LaunchFailureReason, message: z.string().optional() }),
9
10
  ]);
10
11
  const cancelResult = z.discriminatedUnion('ok', [
11
12
  z.object({ ok: z.literal(true), process: ProcessSchema }),
@@ -47,6 +48,9 @@ export const optioEngineContract = defineContract('optio-engine', {
47
48
  // consciously supply the initiating session token, or explicit null
48
49
  // for unattended launches.
49
50
  sessionId: z.string().nullable(),
51
+ // A task factory's parameter values (required for a factory, refused
52
+ // for any other process).
53
+ params: z.record(z.unknown()).optional(),
50
54
  }),
51
55
  result: launchResult,
52
56
  }),
@@ -1 +1 @@
1
- {"version":3,"file":"optio-engine-to-api.js","sourceRoot":"","sources":["../src/optio-engine-to-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACtF,OAAO,EAAE,aAAa,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AAClF,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,0BAA0B,GAC3B,MAAM,6BAA6B,CAAC;AAErC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAEzC,MAAM,YAAY,GAAG,CAAC,CAAC,kBAAkB,CAAC,IAAI,EAAE;IAC9C,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,aAAa,EAAE,CAAC;IACzD,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,mBAAmB,EAA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CACH,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  export declare const apiToFrontendRouteErrorReasons: {
2
- readonly 'processes.launch': ["not-found", "not-launchable", "no-resume-support", "launch-blocked"];
2
+ readonly 'processes.launch': ["not-found", "not-launchable", "no-resume-support", "launch-blocked", "shutting-down", "parameters-required", "not-a-factory", "invalid-parameters"];
3
3
  readonly 'processes.cancel': ["not-found", "not-cancellable"];
4
4
  readonly 'processes.dismiss': ["not-found", "not-dismissable"];
5
5
  readonly 'processes.resurrect': ["not-found", "not-resurrectable", "no-resurrect-support", "resurrect-in-progress", "launch-blocked", "shutting-down"];
@@ -124,6 +124,8 @@ export declare const ProcessSchema: z.ZodObject<{
124
124
  }>, "many">;
125
125
  uiWidget: z.ZodOptional<z.ZodNullable<z.ZodString>>;
126
126
  widgetData: z.ZodOptional<z.ZodUnknown>;
127
+ taskFactory: z.ZodOptional<z.ZodBoolean>;
128
+ parameters: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
127
129
  supportsResume: z.ZodOptional<z.ZodBoolean>;
128
130
  hasSavedState: z.ZodOptional<z.ZodBoolean>;
129
131
  supportsResurrect: z.ZodOptional<z.ZodBoolean>;
@@ -209,6 +211,8 @@ export declare const ProcessSchema: z.ZodObject<{
209
211
  description?: string | null | undefined;
210
212
  uiWidget?: string | null | undefined;
211
213
  widgetData?: unknown;
214
+ taskFactory?: boolean | undefined;
215
+ parameters?: unknown[] | undefined;
212
216
  supportsResume?: boolean | undefined;
213
217
  hasSavedState?: boolean | undefined;
214
218
  supportsResurrect?: boolean | undefined;
@@ -267,6 +271,8 @@ export declare const ProcessSchema: z.ZodObject<{
267
271
  description?: string | null | undefined;
268
272
  uiWidget?: string | null | undefined;
269
273
  widgetData?: unknown;
274
+ taskFactory?: boolean | undefined;
275
+ parameters?: unknown[] | undefined;
270
276
  supportsResume?: boolean | undefined;
271
277
  hasSavedState?: boolean | undefined;
272
278
  supportsResurrect?: boolean | undefined;
@@ -1 +1 @@
1
- {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AC7C,eAAO,MAAM,8BAA8B,2CAA0B,CAAC;AACtE,eAAO,MAAM,iCAAiC,4FAAuB,CAAC;AACtE,eAAO,MAAM,2BAA2B,2CAAuB,CAAC;AAChE,eAAO,MAAM,8BAA8B,qHAA2B,CAAC;AAEvE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAC1D,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AACpD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AACtD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AACxD,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
@@ -58,6 +58,11 @@ export const ProcessSchema = z.object({
58
58
  // Widget extensions (widgetUpstream is server-side only and must never appear here)
59
59
  uiWidget: z.string().nullable().optional(),
60
60
  widgetData: z.unknown().optional(),
61
+ // Task factory: the record of a factory carries taskFactory and its
62
+ // parameters (field definitions as data; optio-ui types them with
63
+ // vultus-core). Missing taskFactory = false.
64
+ taskFactory: z.boolean().optional(),
65
+ parameters: z.array(z.unknown()).optional(),
61
66
  // Resume feature — default false when absent in stored doc (UI treats
62
67
  // missing fields as false defensively)
63
68
  sup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SAAS,EAAE,eAAe;IAC1B,gBAAgB,EAAE,mCAAmC;CACtD,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,aAAa,GAAG,OAAO,CAAC,OAAO,CAAC;AAC7C,MAAM,CAAC,MAAM,8BAA8B,GAAG,OAAO,CAAC,eAAe,CAAC;AACtE,MAAM,CAAC,MAAM,iCAAiC,GAAG,OAAO,CAAC,YAAY,CAAC;AACtE,MAAM,CAAC,MAAM,2BAA2B,GAAG,OAAO,CAAC,YAAY,CAAC;AAChE,MAAM,CAAC,MAAM,8BAA8B,GAAG,OAAO,CAAC,gBAAgB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "optio-contracts",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Shared wire-protocol types and ts-rest contracts for the optio task runner.",
6
6
  "repository": {