optio-contracts 0.4.5 → 0.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.
- package/dist/api-to-frontend.d.ts +359 -0
- package/dist/api-to-frontend.d.ts.map +1 -1
- package/dist/api-to-frontend.js +17 -1
- package/dist/api-to-frontend.js.map +1 -1
- package/dist/engine-failure-reasons.d.ts +2 -0
- package/dist/engine-failure-reasons.d.ts.map +1 -1
- package/dist/engine-failure-reasons.js +8 -0
- package/dist/engine-failure-reasons.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/optio-engine-to-api.d.ts +421 -0
- package/dist/optio-engine-to-api.d.ts.map +1 -1
- package/dist/optio-engine-to-api.js +13 -1
- package/dist/optio-engine-to-api.js.map +1 -1
- package/dist/route-error-reasons.d.ts +1 -0
- package/dist/route-error-reasons.d.ts.map +1 -1
- package/dist/route-error-reasons.js +2 -1
- package/dist/route-error-reasons.js.map +1 -1
- package/dist/schemas/process.d.ts +9 -0
- package/dist/schemas/process.d.ts.map +1 -1
- package/dist/schemas/process.js +6 -0
- package/dist/schemas/process.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,6 @@ export type { Process, ProcessState, LogEntry, ProcessMetadataFilter, ProcessMet
|
|
|
5
5
|
export type { SessionEventsStreamMessage } from './schemas/session-events.js';
|
|
6
6
|
export { and, or, not, leaf, eq, ne, isIn, notIn, exists, gt, gte, lt, lte } from './process-filter-helpers.js';
|
|
7
7
|
export { processesContract, discoveryContract } from './api-to-frontend.js';
|
|
8
|
-
export { LaunchFailureReason, CancelFailureReason, DismissFailureReason, GroupCancelFailureReason, BlockLaunchesFailureReason, } from './engine-failure-reasons.js';
|
|
8
|
+
export { LaunchFailureReason, CancelFailureReason, DismissFailureReason, ResurrectFailureReason, GroupCancelFailureReason, BlockLaunchesFailureReason, } from './engine-failure-reasons.js';
|
|
9
9
|
export { apiToFrontendRouteErrorReasons, type ApiToFrontendRouteId, } from './route-error-reasons.js';
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,qBAAqB,EAC3D,uBAAuB,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACvF,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,cAAc,EACjD,2BAA2B,EAAE,8BAA8B,EAC3D,8BAA8B,EAAE,iCAAiC,EACjE,YAAY,EAAE,aAAa,EAAE,eAAe,EAC5C,wBAAwB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACpF,OAAO,EAAE,gCAAgC,EAAE,MAAM,6BAA6B,CAAC;AAG/E,YAAY,EAAE,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,qBAAqB,EACtD,wBAAwB,EACxB,kBAAkB,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAC7E,YAAY,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAG9E,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,6BAA6B,CAAC;AAGhH,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAG5E,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,wBAAwB,EACxB,0BAA0B,GAC3B,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EACL,8BAA8B,EAC9B,KAAK,oBAAoB,GAC1B,MAAM,0BAA0B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,qBAAqB,EAC3D,uBAAuB,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACvF,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,cAAc,EACjD,2BAA2B,EAAE,8BAA8B,EAC3D,8BAA8B,EAAE,iCAAiC,EACjE,YAAY,EAAE,aAAa,EAAE,eAAe,EAC5C,wBAAwB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACpF,OAAO,EAAE,gCAAgC,EAAE,MAAM,6BAA6B,CAAC;AAG/E,YAAY,EAAE,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,qBAAqB,EACtD,wBAAwB,EACxB,kBAAkB,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAC7E,YAAY,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAG9E,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,6BAA6B,CAAC;AAGhH,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAG5E,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,0BAA0B,GAC3B,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EACL,8BAA8B,EAC9B,KAAK,oBAAoB,GAC1B,MAAM,0BAA0B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ export { and, or, not, leaf, eq, ne, isIn, notIn, exists, gt, gte, lt, lte } fro
|
|
|
7
7
|
// Contract
|
|
8
8
|
export { processesContract, discoveryContract } from './api-to-frontend.js';
|
|
9
9
|
// Engine contract failure-reason enums (Zod schemas + types) — browser-safe re-exports
|
|
10
|
-
export { LaunchFailureReason, CancelFailureReason, DismissFailureReason, GroupCancelFailureReason, BlockLaunchesFailureReason, } from './engine-failure-reasons.js';
|
|
10
|
+
export { LaunchFailureReason, CancelFailureReason, DismissFailureReason, ResurrectFailureReason, GroupCancelFailureReason, BlockLaunchesFailureReason, } from './engine-failure-reasons.js';
|
|
11
11
|
// Cross-package error-route manifest (consumed by host-app lints)
|
|
12
12
|
export { apiToFrontendRouteErrorReasons, } from './route-error-reasons.js';
|
|
13
13
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,UAAU;AACV,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,qBAAqB,EAC3D,uBAAuB,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACvF,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,cAAc,EACjD,2BAA2B,EAAE,8BAA8B,EAC3D,8BAA8B,EAAE,iCAAiC,EACjE,YAAY,EAAE,aAAa,EAAE,eAAe,EAC5C,wBAAwB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACpF,OAAO,EAAE,gCAAgC,EAAE,MAAM,6BAA6B,CAAC;AAQ/E,yBAAyB;AACzB,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,6BAA6B,CAAC;AAEhH,WAAW;AACX,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE5E,uFAAuF;AACvF,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,wBAAwB,EACxB,0BAA0B,GAC3B,MAAM,6BAA6B,CAAC;AAErC,kEAAkE;AAClE,OAAO,EACL,8BAA8B,GAE/B,MAAM,0BAA0B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,UAAU;AACV,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,qBAAqB,EAC3D,uBAAuB,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACvF,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,cAAc,EACjD,2BAA2B,EAAE,8BAA8B,EAC3D,8BAA8B,EAAE,iCAAiC,EACjE,YAAY,EAAE,aAAa,EAAE,eAAe,EAC5C,wBAAwB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACpF,OAAO,EAAE,gCAAgC,EAAE,MAAM,6BAA6B,CAAC;AAQ/E,yBAAyB;AACzB,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,6BAA6B,CAAC;AAEhH,WAAW;AACX,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE5E,uFAAuF;AACvF,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,0BAA0B,GAC3B,MAAM,6BAA6B,CAAC;AAErC,kEAAkE;AAClE,OAAO,EACL,8BAA8B,GAE/B,MAAM,0BAA0B,CAAC"}
|
|
@@ -83,6 +83,9 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
83
83
|
widgetData: z.ZodOptional<z.ZodUnknown>;
|
|
84
84
|
supportsResume: z.ZodOptional<z.ZodBoolean>;
|
|
85
85
|
hasSavedState: z.ZodOptional<z.ZodBoolean>;
|
|
86
|
+
supportsResurrect: z.ZodOptional<z.ZodBoolean>;
|
|
87
|
+
hasUnsavedWork: z.ZodOptional<z.ZodBoolean>;
|
|
88
|
+
resurrecting: z.ZodOptional<z.ZodBoolean>;
|
|
86
89
|
autoResumeScheduled: z.ZodOptional<z.ZodBoolean>;
|
|
87
90
|
browserOpenRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
88
91
|
requestId: z.ZodString;
|
|
@@ -165,6 +168,9 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
165
168
|
widgetData?: unknown;
|
|
166
169
|
supportsResume?: boolean | undefined;
|
|
167
170
|
hasSavedState?: boolean | undefined;
|
|
171
|
+
supportsResurrect?: boolean | undefined;
|
|
172
|
+
hasUnsavedWork?: boolean | undefined;
|
|
173
|
+
resurrecting?: boolean | undefined;
|
|
168
174
|
autoResumeScheduled?: boolean | undefined;
|
|
169
175
|
browserOpenRequests?: {
|
|
170
176
|
requestId: string;
|
|
@@ -220,6 +226,9 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
220
226
|
widgetData?: unknown;
|
|
221
227
|
supportsResume?: boolean | undefined;
|
|
222
228
|
hasSavedState?: boolean | undefined;
|
|
229
|
+
supportsResurrect?: boolean | undefined;
|
|
230
|
+
hasUnsavedWork?: boolean | undefined;
|
|
231
|
+
resurrecting?: boolean | undefined;
|
|
223
232
|
autoResumeScheduled?: boolean | undefined;
|
|
224
233
|
browserOpenRequests?: {
|
|
225
234
|
requestId: string;
|
|
@@ -278,6 +287,9 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
278
287
|
widgetData?: unknown;
|
|
279
288
|
supportsResume?: boolean | undefined;
|
|
280
289
|
hasSavedState?: boolean | undefined;
|
|
290
|
+
supportsResurrect?: boolean | undefined;
|
|
291
|
+
hasUnsavedWork?: boolean | undefined;
|
|
292
|
+
resurrecting?: boolean | undefined;
|
|
281
293
|
autoResumeScheduled?: boolean | undefined;
|
|
282
294
|
browserOpenRequests?: {
|
|
283
295
|
requestId: string;
|
|
@@ -336,6 +348,9 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
336
348
|
widgetData?: unknown;
|
|
337
349
|
supportsResume?: boolean | undefined;
|
|
338
350
|
hasSavedState?: boolean | undefined;
|
|
351
|
+
supportsResurrect?: boolean | undefined;
|
|
352
|
+
hasUnsavedWork?: boolean | undefined;
|
|
353
|
+
resurrecting?: boolean | undefined;
|
|
339
354
|
autoResumeScheduled?: boolean | undefined;
|
|
340
355
|
browserOpenRequests?: {
|
|
341
356
|
requestId: string;
|
|
@@ -441,6 +456,9 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
441
456
|
widgetData: z.ZodOptional<z.ZodUnknown>;
|
|
442
457
|
supportsResume: z.ZodOptional<z.ZodBoolean>;
|
|
443
458
|
hasSavedState: z.ZodOptional<z.ZodBoolean>;
|
|
459
|
+
supportsResurrect: z.ZodOptional<z.ZodBoolean>;
|
|
460
|
+
hasUnsavedWork: z.ZodOptional<z.ZodBoolean>;
|
|
461
|
+
resurrecting: z.ZodOptional<z.ZodBoolean>;
|
|
444
462
|
autoResumeScheduled: z.ZodOptional<z.ZodBoolean>;
|
|
445
463
|
browserOpenRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
446
464
|
requestId: z.ZodString;
|
|
@@ -523,6 +541,9 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
523
541
|
widgetData?: unknown;
|
|
524
542
|
supportsResume?: boolean | undefined;
|
|
525
543
|
hasSavedState?: boolean | undefined;
|
|
544
|
+
supportsResurrect?: boolean | undefined;
|
|
545
|
+
hasUnsavedWork?: boolean | undefined;
|
|
546
|
+
resurrecting?: boolean | undefined;
|
|
526
547
|
autoResumeScheduled?: boolean | undefined;
|
|
527
548
|
browserOpenRequests?: {
|
|
528
549
|
requestId: string;
|
|
@@ -578,6 +599,9 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
578
599
|
widgetData?: unknown;
|
|
579
600
|
supportsResume?: boolean | undefined;
|
|
580
601
|
hasSavedState?: boolean | undefined;
|
|
602
|
+
supportsResurrect?: boolean | undefined;
|
|
603
|
+
hasUnsavedWork?: boolean | undefined;
|
|
604
|
+
resurrecting?: boolean | undefined;
|
|
581
605
|
autoResumeScheduled?: boolean | undefined;
|
|
582
606
|
browserOpenRequests?: {
|
|
583
607
|
requestId: string;
|
|
@@ -636,6 +660,9 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
636
660
|
widgetData?: unknown;
|
|
637
661
|
supportsResume?: boolean | undefined;
|
|
638
662
|
hasSavedState?: boolean | undefined;
|
|
663
|
+
supportsResurrect?: boolean | undefined;
|
|
664
|
+
hasUnsavedWork?: boolean | undefined;
|
|
665
|
+
resurrecting?: boolean | undefined;
|
|
639
666
|
autoResumeScheduled?: boolean | undefined;
|
|
640
667
|
browserOpenRequests?: {
|
|
641
668
|
requestId: string;
|
|
@@ -694,6 +721,9 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
694
721
|
widgetData?: unknown;
|
|
695
722
|
supportsResume?: boolean | undefined;
|
|
696
723
|
hasSavedState?: boolean | undefined;
|
|
724
|
+
supportsResurrect?: boolean | undefined;
|
|
725
|
+
hasUnsavedWork?: boolean | undefined;
|
|
726
|
+
resurrecting?: boolean | undefined;
|
|
697
727
|
autoResumeScheduled?: boolean | undefined;
|
|
698
728
|
browserOpenRequests?: {
|
|
699
729
|
requestId: string;
|
|
@@ -799,6 +829,9 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
799
829
|
widgetData: z.ZodOptional<z.ZodUnknown>;
|
|
800
830
|
supportsResume: z.ZodOptional<z.ZodBoolean>;
|
|
801
831
|
hasSavedState: z.ZodOptional<z.ZodBoolean>;
|
|
832
|
+
supportsResurrect: z.ZodOptional<z.ZodBoolean>;
|
|
833
|
+
hasUnsavedWork: z.ZodOptional<z.ZodBoolean>;
|
|
834
|
+
resurrecting: z.ZodOptional<z.ZodBoolean>;
|
|
802
835
|
autoResumeScheduled: z.ZodOptional<z.ZodBoolean>;
|
|
803
836
|
browserOpenRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
804
837
|
requestId: z.ZodString;
|
|
@@ -881,6 +914,9 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
881
914
|
widgetData?: unknown;
|
|
882
915
|
supportsResume?: boolean | undefined;
|
|
883
916
|
hasSavedState?: boolean | undefined;
|
|
917
|
+
supportsResurrect?: boolean | undefined;
|
|
918
|
+
hasUnsavedWork?: boolean | undefined;
|
|
919
|
+
resurrecting?: boolean | undefined;
|
|
884
920
|
autoResumeScheduled?: boolean | undefined;
|
|
885
921
|
browserOpenRequests?: {
|
|
886
922
|
requestId: string;
|
|
@@ -936,6 +972,9 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
936
972
|
widgetData?: unknown;
|
|
937
973
|
supportsResume?: boolean | undefined;
|
|
938
974
|
hasSavedState?: boolean | undefined;
|
|
975
|
+
supportsResurrect?: boolean | undefined;
|
|
976
|
+
hasUnsavedWork?: boolean | undefined;
|
|
977
|
+
resurrecting?: boolean | undefined;
|
|
939
978
|
autoResumeScheduled?: boolean | undefined;
|
|
940
979
|
browserOpenRequests?: {
|
|
941
980
|
requestId: string;
|
|
@@ -994,6 +1033,9 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
994
1033
|
widgetData?: unknown;
|
|
995
1034
|
supportsResume?: boolean | undefined;
|
|
996
1035
|
hasSavedState?: boolean | undefined;
|
|
1036
|
+
supportsResurrect?: boolean | undefined;
|
|
1037
|
+
hasUnsavedWork?: boolean | undefined;
|
|
1038
|
+
resurrecting?: boolean | undefined;
|
|
997
1039
|
autoResumeScheduled?: boolean | undefined;
|
|
998
1040
|
browserOpenRequests?: {
|
|
999
1041
|
requestId: string;
|
|
@@ -1052,6 +1094,9 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
1052
1094
|
widgetData?: unknown;
|
|
1053
1095
|
supportsResume?: boolean | undefined;
|
|
1054
1096
|
hasSavedState?: boolean | undefined;
|
|
1097
|
+
supportsResurrect?: boolean | undefined;
|
|
1098
|
+
hasUnsavedWork?: boolean | undefined;
|
|
1099
|
+
resurrecting?: boolean | undefined;
|
|
1055
1100
|
autoResumeScheduled?: boolean | undefined;
|
|
1056
1101
|
browserOpenRequests?: {
|
|
1057
1102
|
requestId: string;
|
|
@@ -1080,6 +1125,382 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
1080
1125
|
reason: "not-found" | "not-dismissable";
|
|
1081
1126
|
ok: false;
|
|
1082
1127
|
}>]>>;
|
|
1128
|
+
resurrect: import("@clamator/protocol").MethodDef<z.ZodObject<{
|
|
1129
|
+
processId: z.ZodString;
|
|
1130
|
+
sessionId: z.ZodNullable<z.ZodString>;
|
|
1131
|
+
}, "strip", z.ZodTypeAny, {
|
|
1132
|
+
processId: string;
|
|
1133
|
+
sessionId: string | null;
|
|
1134
|
+
}, {
|
|
1135
|
+
processId: string;
|
|
1136
|
+
sessionId: string | null;
|
|
1137
|
+
}>, z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
|
|
1138
|
+
ok: z.ZodLiteral<true>;
|
|
1139
|
+
process: z.ZodObject<{
|
|
1140
|
+
_id: z.ZodString;
|
|
1141
|
+
processId: z.ZodString;
|
|
1142
|
+
name: z.ZodString;
|
|
1143
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1144
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1145
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
1146
|
+
rootId: z.ZodString;
|
|
1147
|
+
depth: z.ZodNumber;
|
|
1148
|
+
order: z.ZodNumber;
|
|
1149
|
+
cancellable: z.ZodBoolean;
|
|
1150
|
+
special: z.ZodOptional<z.ZodBoolean>;
|
|
1151
|
+
warning: z.ZodOptional<z.ZodString>;
|
|
1152
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1153
|
+
status: z.ZodObject<{
|
|
1154
|
+
state: z.ZodEnum<["idle", "scheduled", "running", "done", "failed", "cancel_requested", "cancelling", "cancelled"]>;
|
|
1155
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1156
|
+
runningSince: z.ZodOptional<z.ZodDate>;
|
|
1157
|
+
doneAt: z.ZodOptional<z.ZodDate>;
|
|
1158
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
1159
|
+
failedAt: z.ZodOptional<z.ZodDate>;
|
|
1160
|
+
stoppedAt: z.ZodOptional<z.ZodDate>;
|
|
1161
|
+
}, "strip", z.ZodTypeAny, {
|
|
1162
|
+
state: "idle" | "scheduled" | "running" | "done" | "failed" | "cancel_requested" | "cancelling" | "cancelled";
|
|
1163
|
+
error?: string | undefined;
|
|
1164
|
+
runningSince?: Date | undefined;
|
|
1165
|
+
doneAt?: Date | undefined;
|
|
1166
|
+
duration?: number | undefined;
|
|
1167
|
+
failedAt?: Date | undefined;
|
|
1168
|
+
stoppedAt?: Date | undefined;
|
|
1169
|
+
}, {
|
|
1170
|
+
state: "idle" | "scheduled" | "running" | "done" | "failed" | "cancel_requested" | "cancelling" | "cancelled";
|
|
1171
|
+
error?: string | undefined;
|
|
1172
|
+
runningSince?: Date | undefined;
|
|
1173
|
+
doneAt?: Date | undefined;
|
|
1174
|
+
duration?: number | undefined;
|
|
1175
|
+
failedAt?: Date | undefined;
|
|
1176
|
+
stoppedAt?: Date | undefined;
|
|
1177
|
+
}>;
|
|
1178
|
+
progress: z.ZodObject<{
|
|
1179
|
+
percent: z.ZodNullable<z.ZodNumber>;
|
|
1180
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1181
|
+
}, "strip", z.ZodTypeAny, {
|
|
1182
|
+
percent: number | null;
|
|
1183
|
+
message?: string | undefined;
|
|
1184
|
+
}, {
|
|
1185
|
+
percent: number | null;
|
|
1186
|
+
message?: string | undefined;
|
|
1187
|
+
}>;
|
|
1188
|
+
log: z.ZodArray<z.ZodObject<{
|
|
1189
|
+
timestamp: z.ZodDate;
|
|
1190
|
+
level: z.ZodEnum<["event", "info", "debug", "warning", "error"]>;
|
|
1191
|
+
message: z.ZodString;
|
|
1192
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1193
|
+
}, "strip", z.ZodTypeAny, {
|
|
1194
|
+
message: string;
|
|
1195
|
+
timestamp: Date;
|
|
1196
|
+
level: "error" | "event" | "info" | "debug" | "warning";
|
|
1197
|
+
data?: Record<string, unknown> | undefined;
|
|
1198
|
+
}, {
|
|
1199
|
+
message: string;
|
|
1200
|
+
timestamp: Date;
|
|
1201
|
+
level: "error" | "event" | "info" | "debug" | "warning";
|
|
1202
|
+
data?: Record<string, unknown> | undefined;
|
|
1203
|
+
}>, "many">;
|
|
1204
|
+
uiWidget: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1205
|
+
widgetData: z.ZodOptional<z.ZodUnknown>;
|
|
1206
|
+
supportsResume: z.ZodOptional<z.ZodBoolean>;
|
|
1207
|
+
hasSavedState: z.ZodOptional<z.ZodBoolean>;
|
|
1208
|
+
supportsResurrect: z.ZodOptional<z.ZodBoolean>;
|
|
1209
|
+
hasUnsavedWork: z.ZodOptional<z.ZodBoolean>;
|
|
1210
|
+
resurrecting: z.ZodOptional<z.ZodBoolean>;
|
|
1211
|
+
autoResumeScheduled: z.ZodOptional<z.ZodBoolean>;
|
|
1212
|
+
browserOpenRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1213
|
+
requestId: z.ZodString;
|
|
1214
|
+
url: z.ZodString;
|
|
1215
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
1216
|
+
}, "strip", z.ZodTypeAny, {
|
|
1217
|
+
requestId: string;
|
|
1218
|
+
url: string;
|
|
1219
|
+
createdAt?: Date | undefined;
|
|
1220
|
+
}, {
|
|
1221
|
+
requestId: string;
|
|
1222
|
+
url: string;
|
|
1223
|
+
createdAt?: Date | undefined;
|
|
1224
|
+
}>, "many">>;
|
|
1225
|
+
sessionEvents: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1226
|
+
requestId: z.ZodString;
|
|
1227
|
+
type: z.ZodLiteral<"attention">;
|
|
1228
|
+
reason: z.ZodString;
|
|
1229
|
+
}, "strip", z.ZodTypeAny, {
|
|
1230
|
+
type: "attention";
|
|
1231
|
+
requestId: string;
|
|
1232
|
+
reason: string;
|
|
1233
|
+
}, {
|
|
1234
|
+
type: "attention";
|
|
1235
|
+
requestId: string;
|
|
1236
|
+
reason: string;
|
|
1237
|
+
}>, z.ZodObject<{
|
|
1238
|
+
requestId: z.ZodString;
|
|
1239
|
+
type: z.ZodLiteral<"client">;
|
|
1240
|
+
keyword: z.ZodString;
|
|
1241
|
+
data: z.ZodUnknown;
|
|
1242
|
+
}, "strip", z.ZodTypeAny, {
|
|
1243
|
+
type: "client";
|
|
1244
|
+
requestId: string;
|
|
1245
|
+
keyword: string;
|
|
1246
|
+
data?: unknown;
|
|
1247
|
+
}, {
|
|
1248
|
+
type: "client";
|
|
1249
|
+
requestId: string;
|
|
1250
|
+
keyword: string;
|
|
1251
|
+
data?: unknown;
|
|
1252
|
+
}>]>, "many">>;
|
|
1253
|
+
originatingSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1254
|
+
createdAt: z.ZodDate;
|
|
1255
|
+
}, "strip", z.ZodTypeAny, {
|
|
1256
|
+
status: {
|
|
1257
|
+
state: "idle" | "scheduled" | "running" | "done" | "failed" | "cancel_requested" | "cancelling" | "cancelled";
|
|
1258
|
+
error?: string | undefined;
|
|
1259
|
+
runningSince?: Date | undefined;
|
|
1260
|
+
doneAt?: Date | undefined;
|
|
1261
|
+
duration?: number | undefined;
|
|
1262
|
+
failedAt?: Date | undefined;
|
|
1263
|
+
stoppedAt?: Date | undefined;
|
|
1264
|
+
};
|
|
1265
|
+
createdAt: Date;
|
|
1266
|
+
_id: string;
|
|
1267
|
+
processId: string;
|
|
1268
|
+
name: string;
|
|
1269
|
+
rootId: string;
|
|
1270
|
+
depth: number;
|
|
1271
|
+
order: number;
|
|
1272
|
+
cancellable: boolean;
|
|
1273
|
+
progress: {
|
|
1274
|
+
percent: number | null;
|
|
1275
|
+
message?: string | undefined;
|
|
1276
|
+
};
|
|
1277
|
+
log: {
|
|
1278
|
+
message: string;
|
|
1279
|
+
timestamp: Date;
|
|
1280
|
+
level: "error" | "event" | "info" | "debug" | "warning";
|
|
1281
|
+
data?: Record<string, unknown> | undefined;
|
|
1282
|
+
}[];
|
|
1283
|
+
params?: Record<string, unknown> | undefined;
|
|
1284
|
+
warning?: string | undefined;
|
|
1285
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1286
|
+
parentId?: string | undefined;
|
|
1287
|
+
special?: boolean | undefined;
|
|
1288
|
+
description?: string | null | undefined;
|
|
1289
|
+
uiWidget?: string | null | undefined;
|
|
1290
|
+
widgetData?: unknown;
|
|
1291
|
+
supportsResume?: boolean | undefined;
|
|
1292
|
+
hasSavedState?: boolean | undefined;
|
|
1293
|
+
supportsResurrect?: boolean | undefined;
|
|
1294
|
+
hasUnsavedWork?: boolean | undefined;
|
|
1295
|
+
resurrecting?: boolean | undefined;
|
|
1296
|
+
autoResumeScheduled?: boolean | undefined;
|
|
1297
|
+
browserOpenRequests?: {
|
|
1298
|
+
requestId: string;
|
|
1299
|
+
url: string;
|
|
1300
|
+
createdAt?: Date | undefined;
|
|
1301
|
+
}[] | undefined;
|
|
1302
|
+
sessionEvents?: ({
|
|
1303
|
+
type: "attention";
|
|
1304
|
+
requestId: string;
|
|
1305
|
+
reason: string;
|
|
1306
|
+
} | {
|
|
1307
|
+
type: "client";
|
|
1308
|
+
requestId: string;
|
|
1309
|
+
keyword: string;
|
|
1310
|
+
data?: unknown;
|
|
1311
|
+
})[] | undefined;
|
|
1312
|
+
originatingSessionId?: string | null | undefined;
|
|
1313
|
+
}, {
|
|
1314
|
+
status: {
|
|
1315
|
+
state: "idle" | "scheduled" | "running" | "done" | "failed" | "cancel_requested" | "cancelling" | "cancelled";
|
|
1316
|
+
error?: string | undefined;
|
|
1317
|
+
runningSince?: Date | undefined;
|
|
1318
|
+
doneAt?: Date | undefined;
|
|
1319
|
+
duration?: number | undefined;
|
|
1320
|
+
failedAt?: Date | undefined;
|
|
1321
|
+
stoppedAt?: Date | undefined;
|
|
1322
|
+
};
|
|
1323
|
+
createdAt: Date;
|
|
1324
|
+
_id: string;
|
|
1325
|
+
processId: string;
|
|
1326
|
+
name: string;
|
|
1327
|
+
rootId: string;
|
|
1328
|
+
depth: number;
|
|
1329
|
+
order: number;
|
|
1330
|
+
cancellable: boolean;
|
|
1331
|
+
progress: {
|
|
1332
|
+
percent: number | null;
|
|
1333
|
+
message?: string | undefined;
|
|
1334
|
+
};
|
|
1335
|
+
log: {
|
|
1336
|
+
message: string;
|
|
1337
|
+
timestamp: Date;
|
|
1338
|
+
level: "error" | "event" | "info" | "debug" | "warning";
|
|
1339
|
+
data?: Record<string, unknown> | undefined;
|
|
1340
|
+
}[];
|
|
1341
|
+
params?: Record<string, unknown> | undefined;
|
|
1342
|
+
warning?: string | undefined;
|
|
1343
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1344
|
+
parentId?: string | undefined;
|
|
1345
|
+
special?: boolean | undefined;
|
|
1346
|
+
description?: string | null | undefined;
|
|
1347
|
+
uiWidget?: string | null | undefined;
|
|
1348
|
+
widgetData?: unknown;
|
|
1349
|
+
supportsResume?: boolean | undefined;
|
|
1350
|
+
hasSavedState?: boolean | undefined;
|
|
1351
|
+
supportsResurrect?: boolean | undefined;
|
|
1352
|
+
hasUnsavedWork?: boolean | undefined;
|
|
1353
|
+
resurrecting?: boolean | undefined;
|
|
1354
|
+
autoResumeScheduled?: boolean | undefined;
|
|
1355
|
+
browserOpenRequests?: {
|
|
1356
|
+
requestId: string;
|
|
1357
|
+
url: string;
|
|
1358
|
+
createdAt?: Date | undefined;
|
|
1359
|
+
}[] | undefined;
|
|
1360
|
+
sessionEvents?: ({
|
|
1361
|
+
type: "attention";
|
|
1362
|
+
requestId: string;
|
|
1363
|
+
reason: string;
|
|
1364
|
+
} | {
|
|
1365
|
+
type: "client";
|
|
1366
|
+
requestId: string;
|
|
1367
|
+
keyword: string;
|
|
1368
|
+
data?: unknown;
|
|
1369
|
+
})[] | undefined;
|
|
1370
|
+
originatingSessionId?: string | null | undefined;
|
|
1371
|
+
}>;
|
|
1372
|
+
}, "strip", z.ZodTypeAny, {
|
|
1373
|
+
ok: true;
|
|
1374
|
+
process: {
|
|
1375
|
+
status: {
|
|
1376
|
+
state: "idle" | "scheduled" | "running" | "done" | "failed" | "cancel_requested" | "cancelling" | "cancelled";
|
|
1377
|
+
error?: string | undefined;
|
|
1378
|
+
runningSince?: Date | undefined;
|
|
1379
|
+
doneAt?: Date | undefined;
|
|
1380
|
+
duration?: number | undefined;
|
|
1381
|
+
failedAt?: Date | undefined;
|
|
1382
|
+
stoppedAt?: Date | undefined;
|
|
1383
|
+
};
|
|
1384
|
+
createdAt: Date;
|
|
1385
|
+
_id: string;
|
|
1386
|
+
processId: string;
|
|
1387
|
+
name: string;
|
|
1388
|
+
rootId: string;
|
|
1389
|
+
depth: number;
|
|
1390
|
+
order: number;
|
|
1391
|
+
cancellable: boolean;
|
|
1392
|
+
progress: {
|
|
1393
|
+
percent: number | null;
|
|
1394
|
+
message?: string | undefined;
|
|
1395
|
+
};
|
|
1396
|
+
log: {
|
|
1397
|
+
message: string;
|
|
1398
|
+
timestamp: Date;
|
|
1399
|
+
level: "error" | "event" | "info" | "debug" | "warning";
|
|
1400
|
+
data?: Record<string, unknown> | undefined;
|
|
1401
|
+
}[];
|
|
1402
|
+
params?: Record<string, unknown> | undefined;
|
|
1403
|
+
warning?: string | undefined;
|
|
1404
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1405
|
+
parentId?: string | undefined;
|
|
1406
|
+
special?: boolean | undefined;
|
|
1407
|
+
description?: string | null | undefined;
|
|
1408
|
+
uiWidget?: string | null | undefined;
|
|
1409
|
+
widgetData?: unknown;
|
|
1410
|
+
supportsResume?: boolean | undefined;
|
|
1411
|
+
hasSavedState?: boolean | undefined;
|
|
1412
|
+
supportsResurrect?: boolean | undefined;
|
|
1413
|
+
hasUnsavedWork?: boolean | undefined;
|
|
1414
|
+
resurrecting?: boolean | undefined;
|
|
1415
|
+
autoResumeScheduled?: boolean | undefined;
|
|
1416
|
+
browserOpenRequests?: {
|
|
1417
|
+
requestId: string;
|
|
1418
|
+
url: string;
|
|
1419
|
+
createdAt?: Date | undefined;
|
|
1420
|
+
}[] | undefined;
|
|
1421
|
+
sessionEvents?: ({
|
|
1422
|
+
type: "attention";
|
|
1423
|
+
requestId: string;
|
|
1424
|
+
reason: string;
|
|
1425
|
+
} | {
|
|
1426
|
+
type: "client";
|
|
1427
|
+
requestId: string;
|
|
1428
|
+
keyword: string;
|
|
1429
|
+
data?: unknown;
|
|
1430
|
+
})[] | undefined;
|
|
1431
|
+
originatingSessionId?: string | null | undefined;
|
|
1432
|
+
};
|
|
1433
|
+
}, {
|
|
1434
|
+
ok: true;
|
|
1435
|
+
process: {
|
|
1436
|
+
status: {
|
|
1437
|
+
state: "idle" | "scheduled" | "running" | "done" | "failed" | "cancel_requested" | "cancelling" | "cancelled";
|
|
1438
|
+
error?: string | undefined;
|
|
1439
|
+
runningSince?: Date | undefined;
|
|
1440
|
+
doneAt?: Date | undefined;
|
|
1441
|
+
duration?: number | undefined;
|
|
1442
|
+
failedAt?: Date | undefined;
|
|
1443
|
+
stoppedAt?: Date | undefined;
|
|
1444
|
+
};
|
|
1445
|
+
createdAt: Date;
|
|
1446
|
+
_id: string;
|
|
1447
|
+
processId: string;
|
|
1448
|
+
name: string;
|
|
1449
|
+
rootId: string;
|
|
1450
|
+
depth: number;
|
|
1451
|
+
order: number;
|
|
1452
|
+
cancellable: boolean;
|
|
1453
|
+
progress: {
|
|
1454
|
+
percent: number | null;
|
|
1455
|
+
message?: string | undefined;
|
|
1456
|
+
};
|
|
1457
|
+
log: {
|
|
1458
|
+
message: string;
|
|
1459
|
+
timestamp: Date;
|
|
1460
|
+
level: "error" | "event" | "info" | "debug" | "warning";
|
|
1461
|
+
data?: Record<string, unknown> | undefined;
|
|
1462
|
+
}[];
|
|
1463
|
+
params?: Record<string, unknown> | undefined;
|
|
1464
|
+
warning?: string | undefined;
|
|
1465
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1466
|
+
parentId?: string | undefined;
|
|
1467
|
+
special?: boolean | undefined;
|
|
1468
|
+
description?: string | null | undefined;
|
|
1469
|
+
uiWidget?: string | null | undefined;
|
|
1470
|
+
widgetData?: unknown;
|
|
1471
|
+
supportsResume?: boolean | undefined;
|
|
1472
|
+
hasSavedState?: boolean | undefined;
|
|
1473
|
+
supportsResurrect?: boolean | undefined;
|
|
1474
|
+
hasUnsavedWork?: boolean | undefined;
|
|
1475
|
+
resurrecting?: boolean | undefined;
|
|
1476
|
+
autoResumeScheduled?: boolean | undefined;
|
|
1477
|
+
browserOpenRequests?: {
|
|
1478
|
+
requestId: string;
|
|
1479
|
+
url: string;
|
|
1480
|
+
createdAt?: Date | undefined;
|
|
1481
|
+
}[] | undefined;
|
|
1482
|
+
sessionEvents?: ({
|
|
1483
|
+
type: "attention";
|
|
1484
|
+
requestId: string;
|
|
1485
|
+
reason: string;
|
|
1486
|
+
} | {
|
|
1487
|
+
type: "client";
|
|
1488
|
+
requestId: string;
|
|
1489
|
+
keyword: string;
|
|
1490
|
+
data?: unknown;
|
|
1491
|
+
})[] | undefined;
|
|
1492
|
+
originatingSessionId?: string | null | undefined;
|
|
1493
|
+
};
|
|
1494
|
+
}>, z.ZodObject<{
|
|
1495
|
+
ok: z.ZodLiteral<false>;
|
|
1496
|
+
reason: z.ZodEnum<["not-found", "not-resurrectable", "no-resurrect-support", "resurrect-in-progress", "launch-blocked", "shutting-down"]>;
|
|
1497
|
+
}, "strip", z.ZodTypeAny, {
|
|
1498
|
+
reason: "not-found" | "launch-blocked" | "not-resurrectable" | "no-resurrect-support" | "resurrect-in-progress" | "shutting-down";
|
|
1499
|
+
ok: false;
|
|
1500
|
+
}, {
|
|
1501
|
+
reason: "not-found" | "launch-blocked" | "not-resurrectable" | "no-resurrect-support" | "resurrect-in-progress" | "shutting-down";
|
|
1502
|
+
ok: false;
|
|
1503
|
+
}>]>>;
|
|
1083
1504
|
groupCancel: import("@clamator/protocol").MethodDef<z.ZodObject<{
|
|
1084
1505
|
metadataFilter: z.ZodType<unknown, z.ZodTypeDef, unknown>;
|
|
1085
1506
|
blockNewLaunches: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -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;
|
|
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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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyE9B,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { defineContract, defineMethod, defineNotification } from '@clamator/protocol';
|
|
3
3
|
import { ProcessSchema, ProcessMetadataFilterSchema } from './schemas/process.js';
|
|
4
|
-
import { LaunchFailureReason, CancelFailureReason, DismissFailureReason, GroupCancelFailureReason, BlockLaunchesFailureReason, } from './engine-failure-reasons.js';
|
|
4
|
+
import { LaunchFailureReason, CancelFailureReason, DismissFailureReason, ResurrectFailureReason, GroupCancelFailureReason, BlockLaunchesFailureReason, } from './engine-failure-reasons.js';
|
|
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 }),
|
|
@@ -15,6 +15,10 @@ const dismissResult = z.discriminatedUnion('ok', [
|
|
|
15
15
|
z.object({ ok: z.literal(true), process: ProcessSchema }),
|
|
16
16
|
z.object({ ok: z.literal(false), reason: DismissFailureReason }),
|
|
17
17
|
]);
|
|
18
|
+
const resurrectResult = z.discriminatedUnion('ok', [
|
|
19
|
+
z.object({ ok: z.literal(true), process: ProcessSchema }),
|
|
20
|
+
z.object({ ok: z.literal(false), reason: ResurrectFailureReason }),
|
|
21
|
+
]);
|
|
18
22
|
const groupCancelResult = z.discriminatedUnion('ok', [
|
|
19
23
|
z.object({ ok: z.literal(true), cancelledCount: z.number().int().nonnegative() }),
|
|
20
24
|
z.object({ ok: z.literal(false), reason: GroupCancelFailureReason }),
|
|
@@ -54,6 +58,14 @@ export const optioEngineContract = defineContract('optio-engine', {
|
|
|
54
58
|
params: z.object({ processId: ProcessIdParam }),
|
|
55
59
|
result: dismissResult,
|
|
56
60
|
}),
|
|
61
|
+
resurrect: defineMethod({
|
|
62
|
+
params: z.object({
|
|
63
|
+
processId: ProcessIdParam,
|
|
64
|
+
// Like launch: the initiating session, or explicit null.
|
|
65
|
+
sessionId: z.string().nullable(),
|
|
66
|
+
}),
|
|
67
|
+
result: resurrectResult,
|
|
68
|
+
}),
|
|
57
69
|
groupCancel: defineMethod({
|
|
58
70
|
params: z.object({
|
|
59
71
|
metadataFilter: ProcessMetadataFilterSchema,
|
|
@@ -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,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,E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;QACF,MAAM,EAAE,mBAAmB;KAC5B,CAAC;IACF,eAAe,EAAE,YAAY,CAAC;QAC5B,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,YAAY,EAAE,2BAA2B,EAAE,CAAC;QAC/D,MAAM,EAAE,qBAAqB;KAC9B,CAAC;IACF,iBAAiB,EAAE,YAAY,CAAC;QAC9B,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;YACf,SAAS,EAAE,cAAc;YACzB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;YAClB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;SACrB,CAAC;QACF,MAAM,EAAE,uBAAuB;KAChC,CAAC;IACF,MAAM,EAAE,kBAAkB,CAAC;QACzB,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;YACf,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;YAC7B,cAAc,EAAE,2BAA2B,CAAC,QAAQ,EAAE;SACvD,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -2,6 +2,7 @@ export declare const apiToFrontendRouteErrorReasons: {
|
|
|
2
2
|
readonly 'processes.launch': ["not-found", "not-launchable", "no-resume-support", "launch-blocked"];
|
|
3
3
|
readonly 'processes.cancel': ["not-found", "not-cancellable"];
|
|
4
4
|
readonly 'processes.dismiss': ["not-found", "not-dismissable"];
|
|
5
|
+
readonly 'processes.resurrect': ["not-found", "not-resurrectable", "no-resurrect-support", "resurrect-in-progress", "launch-blocked", "shutting-down"];
|
|
5
6
|
};
|
|
6
7
|
export type ApiToFrontendRouteId = keyof typeof apiToFrontendRouteErrorReasons;
|
|
7
8
|
//# sourceMappingURL=route-error-reasons.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route-error-reasons.d.ts","sourceRoot":"","sources":["../src/route-error-reasons.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"route-error-reasons.d.ts","sourceRoot":"","sources":["../src/route-error-reasons.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,8BAA8B;;;;;CAKjC,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG,MAAM,OAAO,8BAA8B,CAAC"}
|
|
@@ -6,10 +6,11 @@
|
|
|
6
6
|
// Only api-to-frontend routes whose responses carry a typed
|
|
7
7
|
// `{reason, message}` body are listed; engine-internal admin RPCs
|
|
8
8
|
// (groupCancel, blockLaunches) are not exposed to the frontend.
|
|
9
|
-
import { LaunchFailureReason, CancelFailureReason, DismissFailureReason, } from './engine-failure-reasons.js';
|
|
9
|
+
import { LaunchFailureReason, CancelFailureReason, DismissFailureReason, ResurrectFailureReason, } from './engine-failure-reasons.js';
|
|
10
10
|
export const apiToFrontendRouteErrorReasons = {
|
|
11
11
|
'processes.launch': LaunchFailureReason.options,
|
|
12
12
|
'processes.cancel': CancelFailureReason.options,
|
|
13
13
|
'processes.dismiss': DismissFailureReason.options,
|
|
14
|
+
'processes.resurrect': ResurrectFailureReason.options,
|
|
14
15
|
};
|
|
15
16
|
//# sourceMappingURL=route-error-reasons.js.map
|