optio-contracts 0.7.2 → 0.8.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 +78 -19
- package/dist/api-to-frontend.d.ts.map +1 -1
- package/dist/api-to-frontend.js +18 -2
- package/dist/api-to-frontend.js.map +1 -1
- package/dist/engine-failure-reasons.d.ts +4 -2
- package/dist/engine-failure-reasons.d.ts.map +1 -1
- package/dist/engine-failure-reasons.js +16 -0
- package/dist/engine-failure-reasons.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/optio-engine-to-api.d.ts +49 -6
- package/dist/optio-engine-to-api.d.ts.map +1 -1
- package/dist/optio-engine-to-api.js +15 -2
- package/dist/optio-engine-to-api.js.map +1 -1
- package/dist/route-error-reasons.d.ts +2 -2
- package/dist/schemas/process.d.ts +11 -0
- package/dist/schemas/process.d.ts.map +1 -1
- package/dist/schemas/process.js +9 -0
- package/dist/schemas/process.js.map +1 -1
- package/package.json +1 -1
|
@@ -18,11 +18,11 @@ export declare const ConversationRecordSchema: z.ZodObject<{
|
|
|
18
18
|
events: z.ZodArray<z.ZodUnknown, "many">;
|
|
19
19
|
capturedAt: z.ZodNullable<z.ZodString>;
|
|
20
20
|
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
events: unknown[];
|
|
22
21
|
capturedAt: string | null;
|
|
23
|
-
}, {
|
|
24
22
|
events: unknown[];
|
|
23
|
+
}, {
|
|
25
24
|
capturedAt: string | null;
|
|
25
|
+
events: unknown[];
|
|
26
26
|
}>;
|
|
27
27
|
export type ConversationRecord = z.infer<typeof ConversationRecordSchema>;
|
|
28
28
|
export declare const processesContract: {
|
|
@@ -1696,11 +1696,11 @@ export declare const processesContract: {
|
|
|
1696
1696
|
events: z.ZodArray<z.ZodUnknown, "many">;
|
|
1697
1697
|
capturedAt: z.ZodNullable<z.ZodString>;
|
|
1698
1698
|
}, "strip", z.ZodTypeAny, {
|
|
1699
|
-
events: unknown[];
|
|
1700
1699
|
capturedAt: string | null;
|
|
1701
|
-
}, {
|
|
1702
1700
|
events: unknown[];
|
|
1701
|
+
}, {
|
|
1703
1702
|
capturedAt: string | null;
|
|
1703
|
+
events: unknown[];
|
|
1704
1704
|
}>;
|
|
1705
1705
|
401: z.ZodObject<{
|
|
1706
1706
|
message: z.ZodString;
|
|
@@ -1761,6 +1761,62 @@ export declare const processesContract: {
|
|
|
1761
1761
|
}>;
|
|
1762
1762
|
};
|
|
1763
1763
|
};
|
|
1764
|
+
getSnapshots: {
|
|
1765
|
+
pathParams: z.ZodObject<{
|
|
1766
|
+
id: z.ZodString;
|
|
1767
|
+
}, "strip", z.ZodTypeAny, {
|
|
1768
|
+
id: string;
|
|
1769
|
+
}, {
|
|
1770
|
+
id: string;
|
|
1771
|
+
}>;
|
|
1772
|
+
query: z.ZodObject<{
|
|
1773
|
+
database: z.ZodOptional<z.ZodString>;
|
|
1774
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
1775
|
+
}, "strip", z.ZodTypeAny, {
|
|
1776
|
+
database?: string | undefined;
|
|
1777
|
+
prefix?: string | undefined;
|
|
1778
|
+
}, {
|
|
1779
|
+
database?: string | undefined;
|
|
1780
|
+
prefix?: string | undefined;
|
|
1781
|
+
}>;
|
|
1782
|
+
summary: "List a process's valid snapshots, newest first (a launch's resumeFrom names one)";
|
|
1783
|
+
method: "GET";
|
|
1784
|
+
path: "/processes/:id/snapshots";
|
|
1785
|
+
responses: {
|
|
1786
|
+
200: z.ZodObject<{
|
|
1787
|
+
snapshots: z.ZodArray<z.ZodObject<{
|
|
1788
|
+
capturedAt: z.ZodString;
|
|
1789
|
+
endState: z.ZodString;
|
|
1790
|
+
}, "strip", z.ZodTypeAny, {
|
|
1791
|
+
capturedAt: string;
|
|
1792
|
+
endState: string;
|
|
1793
|
+
}, {
|
|
1794
|
+
capturedAt: string;
|
|
1795
|
+
endState: string;
|
|
1796
|
+
}>, "many">;
|
|
1797
|
+
}, "strip", z.ZodTypeAny, {
|
|
1798
|
+
snapshots: {
|
|
1799
|
+
capturedAt: string;
|
|
1800
|
+
endState: string;
|
|
1801
|
+
}[];
|
|
1802
|
+
}, {
|
|
1803
|
+
snapshots: {
|
|
1804
|
+
capturedAt: string;
|
|
1805
|
+
endState: string;
|
|
1806
|
+
}[];
|
|
1807
|
+
}>;
|
|
1808
|
+
404: z.ZodObject<{
|
|
1809
|
+
reason: z.ZodEnum<["not-found", "no-snapshot-support"]>;
|
|
1810
|
+
message: z.ZodString;
|
|
1811
|
+
}, "strip", z.ZodTypeAny, {
|
|
1812
|
+
message: string;
|
|
1813
|
+
reason: "not-found" | "no-snapshot-support";
|
|
1814
|
+
}, {
|
|
1815
|
+
message: string;
|
|
1816
|
+
reason: "not-found" | "no-snapshot-support";
|
|
1817
|
+
}>;
|
|
1818
|
+
};
|
|
1819
|
+
};
|
|
1764
1820
|
launch: {
|
|
1765
1821
|
pathParams: z.ZodObject<{
|
|
1766
1822
|
id: z.ZodString;
|
|
@@ -1783,17 +1839,20 @@ export declare const processesContract: {
|
|
|
1783
1839
|
method: "POST";
|
|
1784
1840
|
body: z.ZodOptional<z.ZodObject<{
|
|
1785
1841
|
resume: z.ZodOptional<z.ZodBoolean>;
|
|
1842
|
+
resumeFrom: z.ZodOptional<z.ZodString>;
|
|
1786
1843
|
sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1787
1844
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1788
1845
|
ephemeral: z.ZodOptional<z.ZodBoolean>;
|
|
1789
1846
|
}, "strip", z.ZodTypeAny, {
|
|
1790
1847
|
params?: Record<string, unknown> | undefined;
|
|
1791
1848
|
resume?: boolean | undefined;
|
|
1849
|
+
resumeFrom?: string | undefined;
|
|
1792
1850
|
sessionId?: string | null | undefined;
|
|
1793
1851
|
ephemeral?: boolean | undefined;
|
|
1794
1852
|
}, {
|
|
1795
1853
|
params?: Record<string, unknown> | undefined;
|
|
1796
1854
|
resume?: boolean | undefined;
|
|
1855
|
+
resumeFrom?: string | undefined;
|
|
1797
1856
|
sessionId?: string | null | undefined;
|
|
1798
1857
|
ephemeral?: boolean | undefined;
|
|
1799
1858
|
}>>;
|
|
@@ -2065,34 +2124,34 @@ export declare const processesContract: {
|
|
|
2065
2124
|
originatingSessionId?: string | null | undefined;
|
|
2066
2125
|
}>;
|
|
2067
2126
|
400: z.ZodObject<{
|
|
2068
|
-
reason: z.ZodEnum<["not-found", "not-launchable", "no-resume-support", "launch-blocked", "shutting-down", "parameters-required", "not-a-factory", "invalid-parameters", "invalid-metadata"]>;
|
|
2127
|
+
reason: z.ZodEnum<["not-found", "not-launchable", "no-resume-support", "launch-blocked", "shutting-down", "parameters-required", "not-a-factory", "invalid-parameters", "invalid-metadata", "invalid-request", "no-snapshot-support", "snapshot-not-found", "capture-pending"]>;
|
|
2069
2128
|
message: z.ZodString;
|
|
2070
2129
|
}, "strip", z.ZodTypeAny, {
|
|
2071
2130
|
message: string;
|
|
2072
|
-
reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters" | "invalid-metadata";
|
|
2131
|
+
reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters" | "invalid-metadata" | "invalid-request" | "no-snapshot-support" | "snapshot-not-found" | "capture-pending";
|
|
2073
2132
|
}, {
|
|
2074
2133
|
message: string;
|
|
2075
|
-
reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters" | "invalid-metadata";
|
|
2134
|
+
reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters" | "invalid-metadata" | "invalid-request" | "no-snapshot-support" | "snapshot-not-found" | "capture-pending";
|
|
2076
2135
|
}>;
|
|
2077
2136
|
404: z.ZodObject<{
|
|
2078
|
-
reason: z.ZodEnum<["not-found", "not-launchable", "no-resume-support", "launch-blocked", "shutting-down", "parameters-required", "not-a-factory", "invalid-parameters", "invalid-metadata"]>;
|
|
2137
|
+
reason: z.ZodEnum<["not-found", "not-launchable", "no-resume-support", "launch-blocked", "shutting-down", "parameters-required", "not-a-factory", "invalid-parameters", "invalid-metadata", "invalid-request", "no-snapshot-support", "snapshot-not-found", "capture-pending"]>;
|
|
2079
2138
|
message: z.ZodString;
|
|
2080
2139
|
}, "strip", z.ZodTypeAny, {
|
|
2081
2140
|
message: string;
|
|
2082
|
-
reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters" | "invalid-metadata";
|
|
2141
|
+
reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters" | "invalid-metadata" | "invalid-request" | "no-snapshot-support" | "snapshot-not-found" | "capture-pending";
|
|
2083
2142
|
}, {
|
|
2084
2143
|
message: string;
|
|
2085
|
-
reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters" | "invalid-metadata";
|
|
2144
|
+
reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters" | "invalid-metadata" | "invalid-request" | "no-snapshot-support" | "snapshot-not-found" | "capture-pending";
|
|
2086
2145
|
}>;
|
|
2087
2146
|
409: z.ZodObject<{
|
|
2088
|
-
reason: z.ZodEnum<["not-found", "not-launchable", "no-resume-support", "launch-blocked", "shutting-down", "parameters-required", "not-a-factory", "invalid-parameters", "invalid-metadata"]>;
|
|
2147
|
+
reason: z.ZodEnum<["not-found", "not-launchable", "no-resume-support", "launch-blocked", "shutting-down", "parameters-required", "not-a-factory", "invalid-parameters", "invalid-metadata", "invalid-request", "no-snapshot-support", "snapshot-not-found", "capture-pending"]>;
|
|
2089
2148
|
message: z.ZodString;
|
|
2090
2149
|
}, "strip", z.ZodTypeAny, {
|
|
2091
2150
|
message: string;
|
|
2092
|
-
reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters" | "invalid-metadata";
|
|
2151
|
+
reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters" | "invalid-metadata" | "invalid-request" | "no-snapshot-support" | "snapshot-not-found" | "capture-pending";
|
|
2093
2152
|
}, {
|
|
2094
2153
|
message: string;
|
|
2095
|
-
reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters" | "invalid-metadata";
|
|
2154
|
+
reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters" | "invalid-metadata" | "invalid-request" | "no-snapshot-support" | "snapshot-not-found" | "capture-pending";
|
|
2096
2155
|
}>;
|
|
2097
2156
|
};
|
|
2098
2157
|
};
|
|
@@ -3011,24 +3070,24 @@ export declare const processesContract: {
|
|
|
3011
3070
|
originatingSessionId?: string | null | undefined;
|
|
3012
3071
|
}>;
|
|
3013
3072
|
404: z.ZodObject<{
|
|
3014
|
-
reason: z.ZodEnum<["not-found", "not-resurrectable", "no-resurrect-support", "resurrect-in-progress", "launch-blocked", "shutting-down"]>;
|
|
3073
|
+
reason: z.ZodEnum<["not-found", "not-resurrectable", "no-resurrect-support", "resurrect-in-progress", "launch-blocked", "shutting-down", "not-launchable"]>;
|
|
3015
3074
|
message: z.ZodString;
|
|
3016
3075
|
}, "strip", z.ZodTypeAny, {
|
|
3017
3076
|
message: string;
|
|
3018
|
-
reason: "not-found" | "launch-blocked" | "shutting-down" | "not-resurrectable" | "no-resurrect-support" | "resurrect-in-progress";
|
|
3077
|
+
reason: "not-found" | "not-launchable" | "launch-blocked" | "shutting-down" | "not-resurrectable" | "no-resurrect-support" | "resurrect-in-progress";
|
|
3019
3078
|
}, {
|
|
3020
3079
|
message: string;
|
|
3021
|
-
reason: "not-found" | "launch-blocked" | "shutting-down" | "not-resurrectable" | "no-resurrect-support" | "resurrect-in-progress";
|
|
3080
|
+
reason: "not-found" | "not-launchable" | "launch-blocked" | "shutting-down" | "not-resurrectable" | "no-resurrect-support" | "resurrect-in-progress";
|
|
3022
3081
|
}>;
|
|
3023
3082
|
409: z.ZodObject<{
|
|
3024
|
-
reason: z.ZodEnum<["not-found", "not-resurrectable", "no-resurrect-support", "resurrect-in-progress", "launch-blocked", "shutting-down"]>;
|
|
3083
|
+
reason: z.ZodEnum<["not-found", "not-resurrectable", "no-resurrect-support", "resurrect-in-progress", "launch-blocked", "shutting-down", "not-launchable"]>;
|
|
3025
3084
|
message: z.ZodString;
|
|
3026
3085
|
}, "strip", z.ZodTypeAny, {
|
|
3027
3086
|
message: string;
|
|
3028
|
-
reason: "not-found" | "launch-blocked" | "shutting-down" | "not-resurrectable" | "no-resurrect-support" | "resurrect-in-progress";
|
|
3087
|
+
reason: "not-found" | "not-launchable" | "launch-blocked" | "shutting-down" | "not-resurrectable" | "no-resurrect-support" | "resurrect-in-progress";
|
|
3029
3088
|
}, {
|
|
3030
3089
|
message: string;
|
|
3031
|
-
reason: "not-found" | "launch-blocked" | "shutting-down" | "not-resurrectable" | "no-resurrect-support" | "resurrect-in-progress";
|
|
3090
|
+
reason: "not-found" | "not-launchable" | "launch-blocked" | "shutting-down" | "not-resurrectable" | "no-resurrect-support" | "resurrect-in-progress";
|
|
3032
3091
|
}>;
|
|
3033
3092
|
};
|
|
3034
3093
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-to-frontend.d.ts","sourceRoot":"","sources":["../src/api-to-frontend.ts"],"names":[],"mapp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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+L5B,CAAC;AAQH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAS5B,CAAC"}
|
package/dist/api-to-frontend.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { initContract } from '@ts-rest/core';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { PaginationQuerySchema, PaginatedResponseSchema, ErrorSchema, ObjectIdSchema, ProcessIdParamSchema } from './schemas/common.js';
|
|
4
|
-
import { ProcessSchema, ProcessStateSchema, LogEntrySchema, ProcessMetadataFilterSchema, MetadataFilterQueryParamSchema } from './schemas/process.js';
|
|
5
|
-
import { LaunchFailureReason, CancelFailureReason, DismissFailureReason, ResurrectFailureReason } from './engine-failure-reasons.js';
|
|
4
|
+
import { ProcessSchema, ProcessStateSchema, LogEntrySchema, ProcessMetadataFilterSchema, MetadataFilterQueryParamSchema, ProcessSnapshotSchema } from './schemas/process.js';
|
|
5
|
+
import { LaunchFailureReason, CancelFailureReason, DismissFailureReason, ResurrectFailureReason, ListSnapshotsFailureReason } from './engine-failure-reasons.js';
|
|
6
6
|
const c = initContract();
|
|
7
7
|
const LaunchErrorBody = z.object({
|
|
8
8
|
reason: LaunchFailureReason,
|
|
@@ -17,6 +17,7 @@ const DismissErrorBody = z.object({
|
|
|
17
17
|
message: z.string(),
|
|
18
18
|
});
|
|
19
19
|
const ResurrectErrorBody = z.object({ reason: ResurrectFailureReason, message: z.string() });
|
|
20
|
+
const SnapshotsErrorBody = z.object({ reason: ListSnapshotsFailureReason, message: z.string() });
|
|
20
21
|
/**
|
|
21
22
|
* Why `getConversation` gave no record. The engine's conversation archive
|
|
22
23
|
* answers not-found / no-conversation-support / no-conversation (404),
|
|
@@ -154,6 +155,19 @@ export const processesContract = c.router({
|
|
|
154
155
|
},
|
|
155
156
|
summary: 'Read a suspended process\'s saved conversation record (read-only; proxied from the engine)',
|
|
156
157
|
},
|
|
158
|
+
getSnapshots: {
|
|
159
|
+
method: 'GET',
|
|
160
|
+
path: '/processes/:id/snapshots',
|
|
161
|
+
pathParams: z.object({ id: ProcessIdParamSchema }),
|
|
162
|
+
query: InstanceQuerySchema,
|
|
163
|
+
responses: {
|
|
164
|
+
// Newest first, valid snapshots only, the newest included.
|
|
165
|
+
200: z.object({ snapshots: z.array(ProcessSnapshotSchema) }),
|
|
166
|
+
// not-found also answers a process the request may not see.
|
|
167
|
+
404: SnapshotsErrorBody,
|
|
168
|
+
},
|
|
169
|
+
summary: 'List a process\'s valid snapshots, newest first (a launch\'s resumeFrom names one)',
|
|
170
|
+
},
|
|
157
171
|
launch: {
|
|
158
172
|
method: 'POST',
|
|
159
173
|
path: '/processes/:id/launch',
|
|
@@ -161,6 +175,8 @@ export const processesContract = c.router({
|
|
|
161
175
|
query: InstanceQuerySchema,
|
|
162
176
|
body: z.object({
|
|
163
177
|
resume: z.boolean().optional(),
|
|
178
|
+
// Resume from an older snapshot (a getSnapshots capturedAt); needs resume: true.
|
|
179
|
+
resumeFrom: z.string().min(1).optional(),
|
|
164
180
|
sessionId: z.string().nullable().optional(),
|
|
165
181
|
// A task factory's parameter values; the answer is the child's record.
|
|
166
182
|
params: z.record(z.unknown()).optional(),
|
|
@@ -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;
|
|
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,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7K,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAEjK,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,mB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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,14 +1,16 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
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", "invalid-metadata"]>;
|
|
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", "invalid-metadata", "invalid-request", "no-snapshot-support", "snapshot-not-found", "capture-pending"]>;
|
|
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
|
-
export declare const ResurrectFailureReason: z.ZodEnum<["not-found", "not-resurrectable", "no-resurrect-support", "resurrect-in-progress", "launch-blocked", "shutting-down"]>;
|
|
5
|
+
export declare const ResurrectFailureReason: z.ZodEnum<["not-found", "not-resurrectable", "no-resurrect-support", "resurrect-in-progress", "launch-blocked", "shutting-down", "not-launchable"]>;
|
|
6
|
+
export declare const ListSnapshotsFailureReason: z.ZodEnum<["not-found", "no-snapshot-support"]>;
|
|
6
7
|
export declare const GroupCancelFailureReason: z.ZodEnum<["invalid-persist-without-block"]>;
|
|
7
8
|
export declare const BlockLaunchesFailureReason: z.ZodEnum<["invalid-filter"]>;
|
|
8
9
|
export type LaunchFailureReason = z.infer<typeof LaunchFailureReason>;
|
|
9
10
|
export type CancelFailureReason = z.infer<typeof CancelFailureReason>;
|
|
10
11
|
export type DismissFailureReason = z.infer<typeof DismissFailureReason>;
|
|
11
12
|
export type ResurrectFailureReason = z.infer<typeof ResurrectFailureReason>;
|
|
13
|
+
export type ListSnapshotsFailureReason = z.infer<typeof ListSnapshotsFailureReason>;
|
|
12
14
|
export type GroupCancelFailureReason = z.infer<typeof GroupCancelFailureReason>;
|
|
13
15
|
export type BlockLaunchesFailureReason = z.infer<typeof BlockLaunchesFailureReason>;
|
|
14
16
|
//# sourceMappingURL=engine-failure-reasons.d.ts.map
|
|
@@ -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,
|
|
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,yQAwB9B,CAAC;AAEH,eAAO,MAAM,mBAAmB,6CAG9B,CAAC;AAEH,eAAO,MAAM,oBAAoB,6CAG/B,CAAC;AAEH,eAAO,MAAM,sBAAsB,qJASjC,CAAC;AAIH,eAAO,MAAM,0BAA0B,iDAGrC,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,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AACpF,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"}
|
|
@@ -21,6 +21,14 @@ export const LaunchFailureReason = z.enum([
|
|
|
21
21
|
// metadata (with `task_for`, the instance's too) or the reserved
|
|
22
22
|
// `taskFactory` (the message names them).
|
|
23
23
|
'invalid-metadata',
|
|
24
|
+
// `resumeFrom` (resume from an older snapshot) without `resume: true`.
|
|
25
|
+
'invalid-request',
|
|
26
|
+
// `resumeFrom`: the task has no hook to discard the newer snapshots.
|
|
27
|
+
'no-snapshot-support',
|
|
28
|
+
// `resumeFrom`: no valid snapshot of the process has that `capturedAt`.
|
|
29
|
+
'snapshot-not-found',
|
|
30
|
+
// `resumeFrom`: an unfinished capture is pending (Resurrect or a plain Resume settles it).
|
|
31
|
+
'capture-pending',
|
|
24
32
|
]);
|
|
25
33
|
export const CancelFailureReason = z.enum([
|
|
26
34
|
'not-found',
|
|
@@ -37,6 +45,14 @@ export const ResurrectFailureReason = z.enum([
|
|
|
37
45
|
'resurrect-in-progress',
|
|
38
46
|
'launch-blocked',
|
|
39
47
|
'shutting-down',
|
|
48
|
+
// A launch with `resumeFrom` of the process, or a run a launch scheduled, is in progress.
|
|
49
|
+
'not-launchable',
|
|
50
|
+
]);
|
|
51
|
+
// Why `listSnapshots` gave no list: no such process, or its task has no
|
|
52
|
+
// snapshot list hook.
|
|
53
|
+
export const ListSnapshotsFailureReason = z.enum([
|
|
54
|
+
'not-found',
|
|
55
|
+
'no-snapshot-support',
|
|
40
56
|
]);
|
|
41
57
|
export const GroupCancelFailureReason = z.enum([
|
|
42
58
|
'invalid-persist-without-block',
|
|
@@ -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;IAChB,eAAe;IACf,wEAAwE;IACxE,qEAAqE;IACrE,gDAAgD;IAChD,qBAAqB;IACrB,eAAe;IACf,oBAAoB;IACpB,uEAAuE;IACvE,iEAAiE;IACjE,0CAA0C;IAC1C,kBAAkB;
|
|
1
|
+
{"version":3,"file":"engine-failure-reasons.js","sourceRoot":"","sources":["../src/engine-failure-reas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,CAAC,CAAC,IAAI,CAAC;IAC/C,gBAAgB;CACjB,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export { ObjectIdSchema, ProcessIdParamSchema, PaginationQuerySchema, PaginatedResponseSchema, ErrorSchema, DateSchema } from './schemas/common.js';
|
|
2
|
-
export { ProcessSchema, ProcessStateSchema, LogEntrySchema, ProcessMetadataFilterSchema, MetadataFilterQueryParamSchema, ProcessMetadataPredicateSchema, ProcessMetadataFilterLegacySchema, FilterScalar, FilterLeafOps, FilterFieldPath, BrowserOpenRequestSchema, SessionEventSchema } from './schemas/process.js';
|
|
2
|
+
export { ProcessSchema, ProcessStateSchema, LogEntrySchema, ProcessMetadataFilterSchema, MetadataFilterQueryParamSchema, ProcessMetadataPredicateSchema, ProcessMetadataFilterLegacySchema, FilterScalar, FilterLeafOps, FilterFieldPath, BrowserOpenRequestSchema, SessionEventSchema, ProcessSnapshotSchema } from './schemas/process.js';
|
|
3
3
|
export { SessionEventsStreamMessageSchema } from './schemas/session-events.js';
|
|
4
|
-
export type { Process, ProcessState, LogEntry, ProcessMetadataFilter, ProcessMetadataPredicate, BrowserOpenRequest, SessionEvent } from './schemas/process.js';
|
|
4
|
+
export type { Process, ProcessState, LogEntry, ProcessMetadataFilter, ProcessMetadataPredicate, BrowserOpenRequest, SessionEvent, ProcessSnapshot } from './schemas/process.js';
|
|
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, ConversationFailureReason, ConversationRecordSchema, type ConversationRecord, } from './api-to-frontend.js';
|
|
8
|
-
export { LaunchFailureReason, CancelFailureReason, DismissFailureReason, ResurrectFailureReason, GroupCancelFailureReason, BlockLaunchesFailureReason, } from './engine-failure-reasons.js';
|
|
8
|
+
export { LaunchFailureReason, CancelFailureReason, DismissFailureReason, ResurrectFailureReason, ListSnapshotsFailureReason, 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;
|
|
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,EAC5C,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,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,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC9F,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,EACL,iBAAiB,EACjB,iBAAiB,EACjB,yBAAyB,EACzB,wBAAwB,EACxB,KAAK,kBAAkB,GACxB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,0BAA0B,EAC1B,wBAAwB,EACxB,0BAA0B,GAC3B,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EACL,8BAA8B,EAC9B,KAAK,oBAAoB,GAC1B,MAAM,0BAA0B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// Schemas
|
|
2
2
|
export { ObjectIdSchema, ProcessIdParamSchema, PaginationQuerySchema, PaginatedResponseSchema, ErrorSchema, DateSchema } from './schemas/common.js';
|
|
3
|
-
export { ProcessSchema, ProcessStateSchema, LogEntrySchema, ProcessMetadataFilterSchema, MetadataFilterQueryParamSchema, ProcessMetadataPredicateSchema, ProcessMetadataFilterLegacySchema, FilterScalar, FilterLeafOps, FilterFieldPath, BrowserOpenRequestSchema, SessionEventSchema } from './schemas/process.js';
|
|
3
|
+
export { ProcessSchema, ProcessStateSchema, LogEntrySchema, ProcessMetadataFilterSchema, MetadataFilterQueryParamSchema, ProcessMetadataPredicateSchema, ProcessMetadataFilterLegacySchema, FilterScalar, FilterLeafOps, FilterFieldPath, BrowserOpenRequestSchema, SessionEventSchema, ProcessSnapshotSchema } from './schemas/process.js';
|
|
4
4
|
export { SessionEventsStreamMessageSchema } from './schemas/session-events.js';
|
|
5
5
|
// Filter builder helpers
|
|
6
6
|
export { and, or, not, leaf, eq, ne, isIn, notIn, exists, gt, gte, lt, lte } from './process-filter-helpers.js';
|
|
7
7
|
// Contract
|
|
8
8
|
export { processesContract, discoveryContract, ConversationFailureReason, ConversationRecordSchema, } from './api-to-frontend.js';
|
|
9
9
|
// Engine contract failure-reason enums (Zod schemas + types) — browser-safe re-exports
|
|
10
|
-
export { LaunchFailureReason, CancelFailureReason, DismissFailureReason, ResurrectFailureReason, GroupCancelFailureReason, BlockLaunchesFailureReason, } from './engine-failure-reasons.js';
|
|
10
|
+
export { LaunchFailureReason, CancelFailureReason, DismissFailureReason, ResurrectFailureReason, ListSnapshotsFailureReason, 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;
|
|
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,EAC5C,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,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,EACL,iBAAiB,EACjB,iBAAiB,EACjB,yBAAyB,EACzB,wBAAwB,GAEzB,MAAM,sBAAsB,CAAC;AAE9B,uFAAuF;AACvF,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,0BAA0B,EAC1B,wBAAwB,EACxB,0BAA0B,GAC3B,MAAM,6BAA6B,CAAC;AAErC,kEAAkE;AAClE,OAAO,EACL,8BAA8B,GAE/B,MAAM,0BAA0B,CAAC"}
|
|
@@ -3,6 +3,7 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
3
3
|
launch: import("@clamator/protocol").MethodDef<z.ZodObject<{
|
|
4
4
|
processId: z.ZodString;
|
|
5
5
|
resume: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
resumeFrom: z.ZodOptional<z.ZodString>;
|
|
6
7
|
sessionId: z.ZodNullable<z.ZodString>;
|
|
7
8
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8
9
|
ephemeral: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -13,6 +14,7 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
13
14
|
params?: Record<string, unknown> | undefined;
|
|
14
15
|
metadata?: Record<string, string | number | boolean | null> | undefined;
|
|
15
16
|
resume?: boolean | undefined;
|
|
17
|
+
resumeFrom?: string | undefined;
|
|
16
18
|
ephemeral?: boolean | undefined;
|
|
17
19
|
}, {
|
|
18
20
|
processId: string;
|
|
@@ -20,6 +22,7 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
20
22
|
params?: Record<string, unknown> | undefined;
|
|
21
23
|
metadata?: Record<string, string | number | boolean | null> | undefined;
|
|
22
24
|
resume?: boolean | undefined;
|
|
25
|
+
resumeFrom?: string | undefined;
|
|
23
26
|
ephemeral?: boolean | undefined;
|
|
24
27
|
}>, z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
|
|
25
28
|
ok: z.ZodLiteral<true>;
|
|
@@ -428,14 +431,14 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
428
431
|
};
|
|
429
432
|
}>, z.ZodObject<{
|
|
430
433
|
ok: z.ZodLiteral<false>;
|
|
431
|
-
reason: z.ZodEnum<["not-found", "not-launchable", "no-resume-support", "launch-blocked", "shutting-down", "parameters-required", "not-a-factory", "invalid-parameters", "invalid-metadata"]>;
|
|
434
|
+
reason: z.ZodEnum<["not-found", "not-launchable", "no-resume-support", "launch-blocked", "shutting-down", "parameters-required", "not-a-factory", "invalid-parameters", "invalid-metadata", "invalid-request", "no-snapshot-support", "snapshot-not-found", "capture-pending"]>;
|
|
432
435
|
message: z.ZodOptional<z.ZodString>;
|
|
433
436
|
}, "strip", z.ZodTypeAny, {
|
|
434
|
-
reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters" | "invalid-metadata";
|
|
437
|
+
reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters" | "invalid-metadata" | "invalid-request" | "no-snapshot-support" | "snapshot-not-found" | "capture-pending";
|
|
435
438
|
ok: false;
|
|
436
439
|
message?: string | undefined;
|
|
437
440
|
}, {
|
|
438
|
-
reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters" | "invalid-metadata";
|
|
441
|
+
reason: "not-found" | "not-launchable" | "no-resume-support" | "launch-blocked" | "shutting-down" | "parameters-required" | "not-a-factory" | "invalid-parameters" | "invalid-metadata" | "invalid-request" | "no-snapshot-support" | "snapshot-not-found" | "capture-pending";
|
|
439
442
|
ok: false;
|
|
440
443
|
message?: string | undefined;
|
|
441
444
|
}>]>>;
|
|
@@ -1697,12 +1700,52 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
1697
1700
|
};
|
|
1698
1701
|
}>, z.ZodObject<{
|
|
1699
1702
|
ok: z.ZodLiteral<false>;
|
|
1700
|
-
reason: z.ZodEnum<["not-found", "not-resurrectable", "no-resurrect-support", "resurrect-in-progress", "launch-blocked", "shutting-down"]>;
|
|
1703
|
+
reason: z.ZodEnum<["not-found", "not-resurrectable", "no-resurrect-support", "resurrect-in-progress", "launch-blocked", "shutting-down", "not-launchable"]>;
|
|
1701
1704
|
}, "strip", z.ZodTypeAny, {
|
|
1702
|
-
reason: "not-found" | "launch-blocked" | "shutting-down" | "not-resurrectable" | "no-resurrect-support" | "resurrect-in-progress";
|
|
1705
|
+
reason: "not-found" | "not-launchable" | "launch-blocked" | "shutting-down" | "not-resurrectable" | "no-resurrect-support" | "resurrect-in-progress";
|
|
1703
1706
|
ok: false;
|
|
1704
1707
|
}, {
|
|
1705
|
-
reason: "not-found" | "launch-blocked" | "shutting-down" | "not-resurrectable" | "no-resurrect-support" | "resurrect-in-progress";
|
|
1708
|
+
reason: "not-found" | "not-launchable" | "launch-blocked" | "shutting-down" | "not-resurrectable" | "no-resurrect-support" | "resurrect-in-progress";
|
|
1709
|
+
ok: false;
|
|
1710
|
+
}>]>>;
|
|
1711
|
+
listSnapshots: import("@clamator/protocol").MethodDef<z.ZodObject<{
|
|
1712
|
+
processId: z.ZodString;
|
|
1713
|
+
}, "strip", z.ZodTypeAny, {
|
|
1714
|
+
processId: string;
|
|
1715
|
+
}, {
|
|
1716
|
+
processId: string;
|
|
1717
|
+
}>, z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
|
|
1718
|
+
ok: z.ZodLiteral<true>;
|
|
1719
|
+
snapshots: z.ZodArray<z.ZodObject<{
|
|
1720
|
+
capturedAt: z.ZodString;
|
|
1721
|
+
endState: z.ZodString;
|
|
1722
|
+
}, "strip", z.ZodTypeAny, {
|
|
1723
|
+
capturedAt: string;
|
|
1724
|
+
endState: string;
|
|
1725
|
+
}, {
|
|
1726
|
+
capturedAt: string;
|
|
1727
|
+
endState: string;
|
|
1728
|
+
}>, "many">;
|
|
1729
|
+
}, "strip", z.ZodTypeAny, {
|
|
1730
|
+
snapshots: {
|
|
1731
|
+
capturedAt: string;
|
|
1732
|
+
endState: string;
|
|
1733
|
+
}[];
|
|
1734
|
+
ok: true;
|
|
1735
|
+
}, {
|
|
1736
|
+
snapshots: {
|
|
1737
|
+
capturedAt: string;
|
|
1738
|
+
endState: string;
|
|
1739
|
+
}[];
|
|
1740
|
+
ok: true;
|
|
1741
|
+
}>, z.ZodObject<{
|
|
1742
|
+
ok: z.ZodLiteral<false>;
|
|
1743
|
+
reason: z.ZodEnum<["not-found", "no-snapshot-support"]>;
|
|
1744
|
+
}, "strip", z.ZodTypeAny, {
|
|
1745
|
+
reason: "not-found" | "no-snapshot-support";
|
|
1746
|
+
ok: false;
|
|
1747
|
+
}, {
|
|
1748
|
+
reason: "not-found" | "no-snapshot-support";
|
|
1706
1749
|
ok: false;
|
|
1707
1750
|
}>]>>;
|
|
1708
1751
|
groupCancel: import("@clamator/protocol").MethodDef<z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"optio-engine-to-api.d.ts","sourceRoot":"","sources":["../src/opt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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2F9B,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { defineContract, defineMethod, defineNotification } from '@clamator/protocol';
|
|
3
|
-
import { ProcessSchema, ProcessMetadataFilterSchema } from './schemas/process.js';
|
|
4
|
-
import { LaunchFailureReason, CancelFailureReason, DismissFailureReason, ResurrectFailureReason, GroupCancelFailureReason, BlockLaunchesFailureReason, } from './engine-failure-reasons.js';
|
|
3
|
+
import { ProcessSchema, ProcessMetadataFilterSchema, ProcessSnapshotSchema } from './schemas/process.js';
|
|
4
|
+
import { LaunchFailureReason, CancelFailureReason, DismissFailureReason, ResurrectFailureReason, ListSnapshotsFailureReason, 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 }),
|
|
@@ -22,6 +22,11 @@ const resurrectResult = z.discriminatedUnion('ok', [
|
|
|
22
22
|
z.object({ ok: z.literal(true), process: ProcessSchema }),
|
|
23
23
|
z.object({ ok: z.literal(false), reason: ResurrectFailureReason }),
|
|
24
24
|
]);
|
|
25
|
+
// The process's valid snapshots, newest first, the newest included.
|
|
26
|
+
const listSnapshotsResult = z.discriminatedUnion('ok', [
|
|
27
|
+
z.object({ ok: z.literal(true), snapshots: z.array(ProcessSnapshotSchema) }),
|
|
28
|
+
z.object({ ok: z.literal(false), reason: ListSnapshotsFailureReason }),
|
|
29
|
+
]);
|
|
25
30
|
const groupCancelResult = z.discriminatedUnion('ok', [
|
|
26
31
|
z.object({ ok: z.literal(true), cancelledCount: z.number().int().nonnegative() }),
|
|
27
32
|
z.object({ ok: z.literal(false), reason: GroupCancelFailureReason }),
|
|
@@ -46,6 +51,10 @@ export const optioEngineContract = defineContract('optio-engine', {
|
|
|
46
51
|
params: z.object({
|
|
47
52
|
processId: ProcessIdParam,
|
|
48
53
|
resume: z.boolean().optional(),
|
|
54
|
+
// Resume from an older snapshot: the capturedAt listSnapshots gave
|
|
55
|
+
// it. Needs `resume: true` (else invalid-request); the newer
|
|
56
|
+
// snapshots are deleted once every launch check has passed.
|
|
57
|
+
resumeFrom: z.string().min(1).optional(),
|
|
49
58
|
// Required (no `.optional()`) but nullable: every caller must
|
|
50
59
|
// consciously supply the initiating session token, or explicit null
|
|
51
60
|
// for unattended launches.
|
|
@@ -79,6 +88,10 @@ export const optioEngineContract = defineContract('optio-engine', {
|
|
|
79
88
|
}),
|
|
80
89
|
result: resurrectResult,
|
|
81
90
|
}),
|
|
91
|
+
listSnapshots: defineMethod({
|
|
92
|
+
params: z.object({ processId: ProcessIdParam }),
|
|
93
|
+
result: listSnapshotsResult,
|
|
94
|
+
}),
|
|
82
95
|
groupCancel: defineMethod({
|
|
83
96
|
params: z.object({
|
|
84
97
|
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;
|
|
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,qBAAqB,EAAE,MAAM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MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;SAC9B,CAAC;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"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare const apiToFrontendRouteErrorReasons: {
|
|
2
|
-
readonly 'processes.launch': ["not-found", "not-launchable", "no-resume-support", "launch-blocked", "shutting-down", "parameters-required", "not-a-factory", "invalid-parameters", "invalid-metadata"];
|
|
2
|
+
readonly 'processes.launch': ["not-found", "not-launchable", "no-resume-support", "launch-blocked", "shutting-down", "parameters-required", "not-a-factory", "invalid-parameters", "invalid-metadata", "invalid-request", "no-snapshot-support", "snapshot-not-found", "capture-pending"];
|
|
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
|
+
readonly 'processes.resurrect': ["not-found", "not-resurrectable", "no-resurrect-support", "resurrect-in-progress", "launch-blocked", "shutting-down", "not-launchable"];
|
|
6
6
|
};
|
|
7
7
|
export type ApiToFrontendRouteId = keyof typeof apiToFrontendRouteErrorReasons;
|
|
8
8
|
//# sourceMappingURL=route-error-reasons.d.ts.map
|
|
@@ -322,6 +322,16 @@ export declare const ProcessSchema: z.ZodObject<{
|
|
|
322
322
|
})[] | undefined;
|
|
323
323
|
originatingSessionId?: string | null | undefined;
|
|
324
324
|
}>;
|
|
325
|
+
export declare const ProcessSnapshotSchema: z.ZodObject<{
|
|
326
|
+
capturedAt: z.ZodString;
|
|
327
|
+
endState: z.ZodString;
|
|
328
|
+
}, "strip", z.ZodTypeAny, {
|
|
329
|
+
capturedAt: string;
|
|
330
|
+
endState: string;
|
|
331
|
+
}, {
|
|
332
|
+
capturedAt: string;
|
|
333
|
+
endState: string;
|
|
334
|
+
}>;
|
|
325
335
|
export declare const FilterScalar: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
326
336
|
export declare const FilterFieldPath: z.ZodString;
|
|
327
337
|
export declare const FilterLeafOps: z.ZodEffects<z.ZodObject<{
|
|
@@ -348,4 +358,5 @@ export type LogEntry = z.infer<typeof LogEntrySchema>;
|
|
|
348
358
|
export type FilterScalar = z.infer<typeof FilterScalar>;
|
|
349
359
|
export type BrowserOpenRequest = z.infer<typeof BrowserOpenRequestSchema>;
|
|
350
360
|
export type SessionEvent = z.infer<typeof SessionEventSchema>;
|
|
361
|
+
export type ProcessSnapshot = z.infer<typeof ProcessSnapshotSchema>;
|
|
351
362
|
//# sourceMappingURL=process.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process.d.ts","sourceRoot":"","sources":["../../src/schemas/process.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,kBAAkB,8GA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AA8B,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;AAC9D,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
package/dist/schemas/process.js
CHANGED
|
@@ -96,6 +96,15 @@ export const ProcessSchema = z.object({
|
|
|
96
96
|
originatingSessionId: z.string().nullable().optional(),
|
|
97
97
|
createdAt: DateSchema,
|
|
98
98
|
});
|
|
99
|
+
// One of a process's valid snapshots (listSnapshots, GET /processes/:id/snapshots):
|
|
100
|
+
// capturedAt is its capture time as optio-core gave it (UTC, three fraction
|
|
101
|
+
// digits, e.g. 2026-11-19T13:05:12.345Z; a launch's resumeFrom names it so,
|
|
102
|
+
// hence non-empty as resumeFrom is); endState the state the run ended in (""
|
|
103
|
+
// when the snapshot has none).
|
|
104
|
+
export const ProcessSnapshotSchema = z.object({
|
|
105
|
+
capturedAt: z.string().min(1),
|
|
106
|
+
endState: z.string(),
|
|
107
|
+
});
|
|
99
108
|
// Allowed leaf scalar value types in the filter.
|
|
100
109
|
export const FilterScalar = z.union([z.string(), z.number(), z.boolean(), z.null()]);
|
|
101
110
|
// Field-path validator: dotted segments under `metadata.*`, each non-empty,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process.js","sourceRoot":"","sources":["../../src/schemas/process.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,IAAI,CAAC;IACvC,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ;IAChD,kBAAkB,EAAE,YAAY,EAAE,WAAW;CAC9C,CAAC,CAAC;AAEH,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,KAAK,EAAE,kBAAkB;IACzB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,YAAY,EAAE,UAAU,CAAC,QAAQ,EAAE;IACnC,MAAM,EAAE,UAAU,CAAC,QAAQ,EAAE;IAC7B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,QAAQ,EAAE,UAAU,CAAC,QAAQ,EAAE;IAC/B,SAAS,EAAE,UAAU,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC;AAEH,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GA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