optio-contracts 0.10.0 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/api-to-frontend.d.ts +217 -0
- package/dist/api-to-frontend.d.ts.map +1 -1
- package/dist/api-to-frontend.js +26 -0
- 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 +2 -2
- 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 +28 -0
- package/dist/optio-engine-to-api.d.ts.map +1 -1
- package/dist/optio-engine-to-api.js +21 -1
- package/dist/optio-engine-to-api.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -68,6 +68,7 @@ clamator service named `optio-engine`, used by `optio-api` to call `optio-core`.
|
|
|
68
68
|
| `blockLaunches` | request/reply | Add a persistent launch block. |
|
|
69
69
|
| `unblockLaunches` | request/reply | Remove a persistent launch block; returns count removed. |
|
|
70
70
|
| `materializeUpload` | request/reply | Land a staged upload (a GridFS blob) in a running process's workdir; returns its path. |
|
|
71
|
+
| `storeAvatar` | request/reply | Check and store an app user's picture (base64) in the engine's chat avatar bucket, as the chat hub stores an upload; returns its avatar id or `invalid-image` / `too-large`. |
|
|
71
72
|
| `resync` | notification | Re-sync task definitions. Fire-and-forget; no reply. |
|
|
72
73
|
|
|
73
74
|
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.
|
|
@@ -9,6 +9,32 @@ import { z } from 'zod';
|
|
|
9
9
|
*/
|
|
10
10
|
export declare const ConversationFailureReason: z.ZodEnum<["forbidden", "not-found", "no-conversation-support", "no-conversation", "not-suspended", "read-failed", "engine-unavailable"]>;
|
|
11
11
|
export type ConversationFailureReason = z.infer<typeof ConversationFailureReason>;
|
|
12
|
+
/**
|
|
13
|
+
* A file a chat message carries (chat attachments,
|
|
14
|
+
* docs/2026-11-27-chat-attachments-design.md section 1), as the chat hub
|
|
15
|
+
* (optio-chat-hub) stamped it (optio-chat's `wire.attachments_json`): `id` the
|
|
16
|
+
* file's id (32 lowercase hex of its content's hash), `name` the name the
|
|
17
|
+
* message carries it under (the original, for display), `type` the type the hub
|
|
18
|
+
* recorded from the bytes, `size` in bytes. `type` is a plain string, so a type a
|
|
19
|
+
* newer hub records never makes optio-api drop the list.
|
|
20
|
+
*/
|
|
21
|
+
export declare const ChatAttachmentSchema: z.ZodObject<{
|
|
22
|
+
id: z.ZodString;
|
|
23
|
+
name: z.ZodString;
|
|
24
|
+
type: z.ZodString;
|
|
25
|
+
size: z.ZodNumber;
|
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
type: string;
|
|
28
|
+
name: string;
|
|
29
|
+
size: number;
|
|
30
|
+
id: string;
|
|
31
|
+
}, {
|
|
32
|
+
type: string;
|
|
33
|
+
name: string;
|
|
34
|
+
size: number;
|
|
35
|
+
id: string;
|
|
36
|
+
}>;
|
|
37
|
+
export type ChatAttachment = z.infer<typeof ChatAttachmentSchema>;
|
|
12
38
|
/**
|
|
13
39
|
* A chat message waiting for a suspended agent (agent chat,
|
|
14
40
|
* docs/2026-11-24-agent-chat-design.md section 5): the engine holds it until
|
|
@@ -18,6 +44,13 @@ export type ConversationFailureReason = z.infer<typeof ConversationFailureReason
|
|
|
18
44
|
* docs/2026-11-24-subagent-chat-identities-design.md section 5): the extra
|
|
19
45
|
* chat name of the process the message reached, which one of its sub-agents
|
|
20
46
|
* reads; absent for a message to the process's primary name.
|
|
47
|
+
* Chat participation (docs/2026-11-25-chat-participation-design.md sections
|
|
48
|
+
* 6.2-6.4), each present only when it says something: `kind` the sender's kind
|
|
49
|
+
* (`'human'`; absent counts as agent), `event` an announcement the hub made
|
|
50
|
+
* (`'joined'` / `'left'`), `description` the sender's full description. Plain
|
|
51
|
+
* strings, so a value a newer engine adds never makes optio-api drop the list.
|
|
52
|
+
* `attachments` (chat attachments): the files the message carries, in its
|
|
53
|
+
* order; absent when it carries none.
|
|
21
54
|
*/
|
|
22
55
|
export declare const PendingChatMessageSchema: z.ZodObject<{
|
|
23
56
|
id: z.ZodString;
|
|
@@ -27,6 +60,25 @@ export declare const PendingChatMessageSchema: z.ZodObject<{
|
|
|
27
60
|
text: z.ZodString;
|
|
28
61
|
at: z.ZodString;
|
|
29
62
|
to: z.ZodOptional<z.ZodString>;
|
|
63
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
64
|
+
event: z.ZodOptional<z.ZodString>;
|
|
65
|
+
description: z.ZodOptional<z.ZodString>;
|
|
66
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
67
|
+
id: z.ZodString;
|
|
68
|
+
name: z.ZodString;
|
|
69
|
+
type: z.ZodString;
|
|
70
|
+
size: z.ZodNumber;
|
|
71
|
+
}, "strip", z.ZodTypeAny, {
|
|
72
|
+
type: string;
|
|
73
|
+
name: string;
|
|
74
|
+
size: number;
|
|
75
|
+
id: string;
|
|
76
|
+
}, {
|
|
77
|
+
type: string;
|
|
78
|
+
name: string;
|
|
79
|
+
size: number;
|
|
80
|
+
id: string;
|
|
81
|
+
}>, "many">>;
|
|
30
82
|
}, "strip", z.ZodTypeAny, {
|
|
31
83
|
at: string;
|
|
32
84
|
id: string;
|
|
@@ -34,7 +86,16 @@ export declare const PendingChatMessageSchema: z.ZodObject<{
|
|
|
34
86
|
from: string;
|
|
35
87
|
avatarId: string | null;
|
|
36
88
|
text: string;
|
|
89
|
+
event?: string | undefined;
|
|
90
|
+
description?: string | undefined;
|
|
37
91
|
to?: string | undefined;
|
|
92
|
+
kind?: string | undefined;
|
|
93
|
+
attachments?: {
|
|
94
|
+
type: string;
|
|
95
|
+
name: string;
|
|
96
|
+
size: number;
|
|
97
|
+
id: string;
|
|
98
|
+
}[] | undefined;
|
|
38
99
|
}, {
|
|
39
100
|
at: string;
|
|
40
101
|
id: string;
|
|
@@ -42,7 +103,16 @@ export declare const PendingChatMessageSchema: z.ZodObject<{
|
|
|
42
103
|
from: string;
|
|
43
104
|
avatarId: string | null;
|
|
44
105
|
text: string;
|
|
106
|
+
event?: string | undefined;
|
|
107
|
+
description?: string | undefined;
|
|
45
108
|
to?: string | undefined;
|
|
109
|
+
kind?: string | undefined;
|
|
110
|
+
attachments?: {
|
|
111
|
+
type: string;
|
|
112
|
+
name: string;
|
|
113
|
+
size: number;
|
|
114
|
+
id: string;
|
|
115
|
+
}[] | undefined;
|
|
46
116
|
}>;
|
|
47
117
|
export type PendingChatMessage = z.infer<typeof PendingChatMessageSchema>;
|
|
48
118
|
/** The chat messages waiting for a suspended agent, oldest first. */
|
|
@@ -54,6 +124,25 @@ export declare const PendingChatSchema: z.ZodArray<z.ZodObject<{
|
|
|
54
124
|
text: z.ZodString;
|
|
55
125
|
at: z.ZodString;
|
|
56
126
|
to: z.ZodOptional<z.ZodString>;
|
|
127
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
128
|
+
event: z.ZodOptional<z.ZodString>;
|
|
129
|
+
description: z.ZodOptional<z.ZodString>;
|
|
130
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
131
|
+
id: z.ZodString;
|
|
132
|
+
name: z.ZodString;
|
|
133
|
+
type: z.ZodString;
|
|
134
|
+
size: z.ZodNumber;
|
|
135
|
+
}, "strip", z.ZodTypeAny, {
|
|
136
|
+
type: string;
|
|
137
|
+
name: string;
|
|
138
|
+
size: number;
|
|
139
|
+
id: string;
|
|
140
|
+
}, {
|
|
141
|
+
type: string;
|
|
142
|
+
name: string;
|
|
143
|
+
size: number;
|
|
144
|
+
id: string;
|
|
145
|
+
}>, "many">>;
|
|
57
146
|
}, "strip", z.ZodTypeAny, {
|
|
58
147
|
at: string;
|
|
59
148
|
id: string;
|
|
@@ -61,7 +150,16 @@ export declare const PendingChatSchema: z.ZodArray<z.ZodObject<{
|
|
|
61
150
|
from: string;
|
|
62
151
|
avatarId: string | null;
|
|
63
152
|
text: string;
|
|
153
|
+
event?: string | undefined;
|
|
154
|
+
description?: string | undefined;
|
|
64
155
|
to?: string | undefined;
|
|
156
|
+
kind?: string | undefined;
|
|
157
|
+
attachments?: {
|
|
158
|
+
type: string;
|
|
159
|
+
name: string;
|
|
160
|
+
size: number;
|
|
161
|
+
id: string;
|
|
162
|
+
}[] | undefined;
|
|
65
163
|
}, {
|
|
66
164
|
at: string;
|
|
67
165
|
id: string;
|
|
@@ -69,7 +167,16 @@ export declare const PendingChatSchema: z.ZodArray<z.ZodObject<{
|
|
|
69
167
|
from: string;
|
|
70
168
|
avatarId: string | null;
|
|
71
169
|
text: string;
|
|
170
|
+
event?: string | undefined;
|
|
171
|
+
description?: string | undefined;
|
|
72
172
|
to?: string | undefined;
|
|
173
|
+
kind?: string | undefined;
|
|
174
|
+
attachments?: {
|
|
175
|
+
type: string;
|
|
176
|
+
name: string;
|
|
177
|
+
size: number;
|
|
178
|
+
id: string;
|
|
179
|
+
}[] | undefined;
|
|
73
180
|
}>, "many">;
|
|
74
181
|
/**
|
|
75
182
|
* A suspended process's saved conversation record: `events` are `[seq, event]`
|
|
@@ -88,6 +195,25 @@ export declare const ConversationRecordSchema: z.ZodObject<{
|
|
|
88
195
|
text: z.ZodString;
|
|
89
196
|
at: z.ZodString;
|
|
90
197
|
to: z.ZodOptional<z.ZodString>;
|
|
198
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
199
|
+
event: z.ZodOptional<z.ZodString>;
|
|
200
|
+
description: z.ZodOptional<z.ZodString>;
|
|
201
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
202
|
+
id: z.ZodString;
|
|
203
|
+
name: z.ZodString;
|
|
204
|
+
type: z.ZodString;
|
|
205
|
+
size: z.ZodNumber;
|
|
206
|
+
}, "strip", z.ZodTypeAny, {
|
|
207
|
+
type: string;
|
|
208
|
+
name: string;
|
|
209
|
+
size: number;
|
|
210
|
+
id: string;
|
|
211
|
+
}, {
|
|
212
|
+
type: string;
|
|
213
|
+
name: string;
|
|
214
|
+
size: number;
|
|
215
|
+
id: string;
|
|
216
|
+
}>, "many">>;
|
|
91
217
|
}, "strip", z.ZodTypeAny, {
|
|
92
218
|
at: string;
|
|
93
219
|
id: string;
|
|
@@ -95,7 +221,16 @@ export declare const ConversationRecordSchema: z.ZodObject<{
|
|
|
95
221
|
from: string;
|
|
96
222
|
avatarId: string | null;
|
|
97
223
|
text: string;
|
|
224
|
+
event?: string | undefined;
|
|
225
|
+
description?: string | undefined;
|
|
98
226
|
to?: string | undefined;
|
|
227
|
+
kind?: string | undefined;
|
|
228
|
+
attachments?: {
|
|
229
|
+
type: string;
|
|
230
|
+
name: string;
|
|
231
|
+
size: number;
|
|
232
|
+
id: string;
|
|
233
|
+
}[] | undefined;
|
|
99
234
|
}, {
|
|
100
235
|
at: string;
|
|
101
236
|
id: string;
|
|
@@ -103,7 +238,16 @@ export declare const ConversationRecordSchema: z.ZodObject<{
|
|
|
103
238
|
from: string;
|
|
104
239
|
avatarId: string | null;
|
|
105
240
|
text: string;
|
|
241
|
+
event?: string | undefined;
|
|
242
|
+
description?: string | undefined;
|
|
106
243
|
to?: string | undefined;
|
|
244
|
+
kind?: string | undefined;
|
|
245
|
+
attachments?: {
|
|
246
|
+
type: string;
|
|
247
|
+
name: string;
|
|
248
|
+
size: number;
|
|
249
|
+
id: string;
|
|
250
|
+
}[] | undefined;
|
|
107
251
|
}>, "many">>;
|
|
108
252
|
}, "strip", z.ZodTypeAny, {
|
|
109
253
|
capturedAt: string | null;
|
|
@@ -115,7 +259,16 @@ export declare const ConversationRecordSchema: z.ZodObject<{
|
|
|
115
259
|
from: string;
|
|
116
260
|
avatarId: string | null;
|
|
117
261
|
text: string;
|
|
262
|
+
event?: string | undefined;
|
|
263
|
+
description?: string | undefined;
|
|
118
264
|
to?: string | undefined;
|
|
265
|
+
kind?: string | undefined;
|
|
266
|
+
attachments?: {
|
|
267
|
+
type: string;
|
|
268
|
+
name: string;
|
|
269
|
+
size: number;
|
|
270
|
+
id: string;
|
|
271
|
+
}[] | undefined;
|
|
119
272
|
}[] | undefined;
|
|
120
273
|
}, {
|
|
121
274
|
capturedAt: string | null;
|
|
@@ -127,7 +280,16 @@ export declare const ConversationRecordSchema: z.ZodObject<{
|
|
|
127
280
|
from: string;
|
|
128
281
|
avatarId: string | null;
|
|
129
282
|
text: string;
|
|
283
|
+
event?: string | undefined;
|
|
284
|
+
description?: string | undefined;
|
|
130
285
|
to?: string | undefined;
|
|
286
|
+
kind?: string | undefined;
|
|
287
|
+
attachments?: {
|
|
288
|
+
type: string;
|
|
289
|
+
name: string;
|
|
290
|
+
size: number;
|
|
291
|
+
id: string;
|
|
292
|
+
}[] | undefined;
|
|
131
293
|
}[] | undefined;
|
|
132
294
|
}>;
|
|
133
295
|
export type ConversationRecord = z.infer<typeof ConversationRecordSchema>;
|
|
@@ -1809,6 +1971,25 @@ export declare const processesContract: {
|
|
|
1809
1971
|
text: z.ZodString;
|
|
1810
1972
|
at: z.ZodString;
|
|
1811
1973
|
to: z.ZodOptional<z.ZodString>;
|
|
1974
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
1975
|
+
event: z.ZodOptional<z.ZodString>;
|
|
1976
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1977
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1978
|
+
id: z.ZodString;
|
|
1979
|
+
name: z.ZodString;
|
|
1980
|
+
type: z.ZodString;
|
|
1981
|
+
size: z.ZodNumber;
|
|
1982
|
+
}, "strip", z.ZodTypeAny, {
|
|
1983
|
+
type: string;
|
|
1984
|
+
name: string;
|
|
1985
|
+
size: number;
|
|
1986
|
+
id: string;
|
|
1987
|
+
}, {
|
|
1988
|
+
type: string;
|
|
1989
|
+
name: string;
|
|
1990
|
+
size: number;
|
|
1991
|
+
id: string;
|
|
1992
|
+
}>, "many">>;
|
|
1812
1993
|
}, "strip", z.ZodTypeAny, {
|
|
1813
1994
|
at: string;
|
|
1814
1995
|
id: string;
|
|
@@ -1816,7 +1997,16 @@ export declare const processesContract: {
|
|
|
1816
1997
|
from: string;
|
|
1817
1998
|
avatarId: string | null;
|
|
1818
1999
|
text: string;
|
|
2000
|
+
event?: string | undefined;
|
|
2001
|
+
description?: string | undefined;
|
|
1819
2002
|
to?: string | undefined;
|
|
2003
|
+
kind?: string | undefined;
|
|
2004
|
+
attachments?: {
|
|
2005
|
+
type: string;
|
|
2006
|
+
name: string;
|
|
2007
|
+
size: number;
|
|
2008
|
+
id: string;
|
|
2009
|
+
}[] | undefined;
|
|
1820
2010
|
}, {
|
|
1821
2011
|
at: string;
|
|
1822
2012
|
id: string;
|
|
@@ -1824,7 +2014,16 @@ export declare const processesContract: {
|
|
|
1824
2014
|
from: string;
|
|
1825
2015
|
avatarId: string | null;
|
|
1826
2016
|
text: string;
|
|
2017
|
+
event?: string | undefined;
|
|
2018
|
+
description?: string | undefined;
|
|
1827
2019
|
to?: string | undefined;
|
|
2020
|
+
kind?: string | undefined;
|
|
2021
|
+
attachments?: {
|
|
2022
|
+
type: string;
|
|
2023
|
+
name: string;
|
|
2024
|
+
size: number;
|
|
2025
|
+
id: string;
|
|
2026
|
+
}[] | undefined;
|
|
1828
2027
|
}>, "many">>;
|
|
1829
2028
|
}, "strip", z.ZodTypeAny, {
|
|
1830
2029
|
capturedAt: string | null;
|
|
@@ -1836,7 +2035,16 @@ export declare const processesContract: {
|
|
|
1836
2035
|
from: string;
|
|
1837
2036
|
avatarId: string | null;
|
|
1838
2037
|
text: string;
|
|
2038
|
+
event?: string | undefined;
|
|
2039
|
+
description?: string | undefined;
|
|
1839
2040
|
to?: string | undefined;
|
|
2041
|
+
kind?: string | undefined;
|
|
2042
|
+
attachments?: {
|
|
2043
|
+
type: string;
|
|
2044
|
+
name: string;
|
|
2045
|
+
size: number;
|
|
2046
|
+
id: string;
|
|
2047
|
+
}[] | undefined;
|
|
1840
2048
|
}[] | undefined;
|
|
1841
2049
|
}, {
|
|
1842
2050
|
capturedAt: string | null;
|
|
@@ -1848,7 +2056,16 @@ export declare const processesContract: {
|
|
|
1848
2056
|
from: string;
|
|
1849
2057
|
avatarId: string | null;
|
|
1850
2058
|
text: string;
|
|
2059
|
+
event?: string | undefined;
|
|
2060
|
+
description?: string | undefined;
|
|
1851
2061
|
to?: string | undefined;
|
|
2062
|
+
kind?: string | undefined;
|
|
2063
|
+
attachments?: {
|
|
2064
|
+
type: string;
|
|
2065
|
+
name: string;
|
|
2066
|
+
size: number;
|
|
2067
|
+
id: string;
|
|
2068
|
+
}[] | undefined;
|
|
1852
2069
|
}[] | undefined;
|
|
1853
2070
|
}>;
|
|
1854
2071
|
401: z.ZodObject<{
|
|
@@ -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;AA0BxB;;;;;;;GAOG;AACH,eAAO,MAAM,yBAAyB,2IAQpC,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAIlF
|
|
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;AA0BxB;;;;;;;GAOG;AACH,eAAO,MAAM,yBAAyB,2IAQpC,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAIlF;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;EAK/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+L5B,CAAC;AAQH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAS5B,CAAC"}
|
package/dist/api-to-frontend.js
CHANGED
|
@@ -36,6 +36,21 @@ export const ConversationFailureReason = z.enum([
|
|
|
36
36
|
'engine-unavailable',
|
|
37
37
|
]);
|
|
38
38
|
const ConversationErrorBody = z.object({ reason: ConversationFailureReason, message: z.string() });
|
|
39
|
+
/**
|
|
40
|
+
* A file a chat message carries (chat attachments,
|
|
41
|
+
* docs/2026-11-27-chat-attachments-design.md section 1), as the chat hub
|
|
42
|
+
* (optio-chat-hub) stamped it (optio-chat's `wire.attachments_json`): `id` the
|
|
43
|
+
* file's id (32 lowercase hex of its content's hash), `name` the name the
|
|
44
|
+
* message carries it under (the original, for display), `type` the type the hub
|
|
45
|
+
* recorded from the bytes, `size` in bytes. `type` is a plain string, so a type a
|
|
46
|
+
* newer hub records never makes optio-api drop the list.
|
|
47
|
+
*/
|
|
48
|
+
export const ChatAttachmentSchema = z.object({
|
|
49
|
+
id: z.string().regex(/^[0-9a-f]{32}$/),
|
|
50
|
+
name: z.string(),
|
|
51
|
+
type: z.string(),
|
|
52
|
+
size: z.number().int().min(0),
|
|
53
|
+
});
|
|
39
54
|
/**
|
|
40
55
|
* A chat message waiting for a suspended agent (agent chat,
|
|
41
56
|
* docs/2026-11-24-agent-chat-design.md section 5): the engine holds it until
|
|
@@ -45,6 +60,13 @@ const ConversationErrorBody = z.object({ reason: ConversationFailureReason, mess
|
|
|
45
60
|
* docs/2026-11-24-subagent-chat-identities-design.md section 5): the extra
|
|
46
61
|
* chat name of the process the message reached, which one of its sub-agents
|
|
47
62
|
* reads; absent for a message to the process's primary name.
|
|
63
|
+
* Chat participation (docs/2026-11-25-chat-participation-design.md sections
|
|
64
|
+
* 6.2-6.4), each present only when it says something: `kind` the sender's kind
|
|
65
|
+
* (`'human'`; absent counts as agent), `event` an announcement the hub made
|
|
66
|
+
* (`'joined'` / `'left'`), `description` the sender's full description. Plain
|
|
67
|
+
* strings, so a value a newer engine adds never makes optio-api drop the list.
|
|
68
|
+
* `attachments` (chat attachments): the files the message carries, in its
|
|
69
|
+
* order; absent when it carries none.
|
|
48
70
|
*/
|
|
49
71
|
export const PendingChatMessageSchema = z.object({
|
|
50
72
|
id: z.string(),
|
|
@@ -54,6 +76,10 @@ export const PendingChatMessageSchema = z.object({
|
|
|
54
76
|
text: z.string(),
|
|
55
77
|
at: z.string(),
|
|
56
78
|
to: z.string().optional(),
|
|
79
|
+
kind: z.string().optional(),
|
|
80
|
+
event: z.string().optional(),
|
|
81
|
+
description: z.string().optional(),
|
|
82
|
+
attachments: z.array(ChatAttachmentSchema).optional(),
|
|
57
83
|
});
|
|
58
84
|
/** The chat messages waiting for a suspended agent, oldest first. */
|
|
59
85
|
export const PendingChatSchema = z.array(PendingChatMessageSchema);
|
|
@@ -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,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,mBAAmB;IAC3B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAC;AAEH,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,MAAM,EAAE,oBAAoB;IAC5B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAC;AAEH,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,sBAAsB,EAAE,OA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E,0DAA0D;KACpE;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"}
|
|
@@ -6,6 +6,7 @@ export declare const ResurrectFailureReason: z.ZodEnum<["not-found", "not-resurr
|
|
|
6
6
|
export declare const ListSnapshotsFailureReason: z.ZodEnum<["not-found", "no-snapshot-support"]>;
|
|
7
7
|
export declare const GroupCancelFailureReason: z.ZodEnum<["invalid-persist-without-block"]>;
|
|
8
8
|
export declare const BlockLaunchesFailureReason: z.ZodEnum<["invalid-filter"]>;
|
|
9
|
+
export declare const StoreAvatarFailureReason: z.ZodEnum<["invalid-image", "too-large"]>;
|
|
9
10
|
export type LaunchFailureReason = z.infer<typeof LaunchFailureReason>;
|
|
10
11
|
export type CancelFailureReason = z.infer<typeof CancelFailureReason>;
|
|
11
12
|
export type DismissFailureReason = z.infer<typeof DismissFailureReason>;
|
|
@@ -13,4 +14,5 @@ export type ResurrectFailureReason = z.infer<typeof ResurrectFailureReason>;
|
|
|
13
14
|
export type ListSnapshotsFailureReason = z.infer<typeof ListSnapshotsFailureReason>;
|
|
14
15
|
export type GroupCancelFailureReason = z.infer<typeof GroupCancelFailureReason>;
|
|
15
16
|
export type BlockLaunchesFailureReason = z.infer<typeof BlockLaunchesFailureReason>;
|
|
17
|
+
export type StoreAvatarFailureReason = z.infer<typeof StoreAvatarFailureReason>;
|
|
16
18
|
//# 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,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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,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAChF,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"}
|
|
@@ -60,4 +60,12 @@ export const GroupCancelFailureReason = z.enum([
|
|
|
60
60
|
export const BlockLaunchesFailureReason = z.enum([
|
|
61
61
|
'invalid-filter',
|
|
62
62
|
]);
|
|
63
|
+
// Why `storeAvatar` stored no author avatar (chat participation spec,
|
|
64
|
+
// docs/2026-11-25-chat-participation-design.md §5.3): not a PNG, JPEG or WebP
|
|
65
|
+
// image that decodes as such, or over optio-chat's MAX_AVATAR_BYTES /
|
|
66
|
+
// MAX_AVATAR_PIXELS.
|
|
67
|
+
export const StoreAvatarFailureReason = z.enum([
|
|
68
|
+
'invalid-image',
|
|
69
|
+
'too-large',
|
|
70
|
+
]);
|
|
63
71
|
//# sourceMappingURL=engine-failure-reasons.js.map
|
|
@@ -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;IAClB,uEAAuE;IACvE,iBAAiB;IACjB,qEAAqE;IACrE,qBAAqB;IACrB,wEAAwE;IACxE,oBAAoB;IACpB,2FAA2F;IAC3F,iBAAiB;CAClB,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;IACf,0FAA0F;IAC1F,gBAAgB;CACjB,CAAC,CAAC;AAEH,wEAAwE;AACxE,sBAAsB;AACtB,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,IAAI,CAAC;IAC/C,WAAW;IACX,qBAAqB;CACtB,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;IACpB,uEAAuE;IACvE,iEAAiE;IACjE,0CAA0C;IAC1C,kBAAkB;IAClB,uEAAuE;IACvE,iBAAiB;IACjB,qEAAqE;IACrE,qBAAqB;IACrB,wEAAwE;IACxE,oBAAoB;IACpB,2FAA2F;IAC3F,iBAAiB;CAClB,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;IACf,0FAA0F;IAC1F,gBAAgB;CACjB,CAAC,CAAC;AAEH,wEAAwE;AACxE,sBAAsB;AACtB,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,IAAI,CAAC;IAC/C,WAAW;IACX,qBAAqB;CACtB,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;AAEH,sEAAsE;AACtE,8EAA8E;AAC9E,sEAAsE;AACtE,qBAAqB;AACrB,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC7C,eAAe;IACf,WAAW;CACZ,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export { SessionEventsStreamMessageSchema } from './schemas/session-events.js';
|
|
|
4
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
|
-
export { processesContract, discoveryContract, ConversationFailureReason, ConversationRecordSchema, type ConversationRecord, PendingChatMessageSchema, PendingChatSchema, type PendingChatMessage, } from './api-to-frontend.js';
|
|
8
|
-
export { LaunchFailureReason, CancelFailureReason, DismissFailureReason, ResurrectFailureReason, ListSnapshotsFailureReason, GroupCancelFailureReason, BlockLaunchesFailureReason, } from './engine-failure-reasons.js';
|
|
7
|
+
export { processesContract, discoveryContract, ConversationFailureReason, ConversationRecordSchema, type ConversationRecord, PendingChatMessageSchema, PendingChatSchema, type PendingChatMessage, ChatAttachmentSchema, type ChatAttachment, } from './api-to-frontend.js';
|
|
8
|
+
export { LaunchFailureReason, CancelFailureReason, DismissFailureReason, ResurrectFailureReason, ListSnapshotsFailureReason, GroupCancelFailureReason, BlockLaunchesFailureReason, StoreAvatarFailureReason, } 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,eAA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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,EACvB,wBAAwB,EACxB,iBAAiB,EACjB,KAAK,kBAAkB,EACvB,oBAAoB,EACpB,KAAK,cAAc,GACpB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,0BAA0B,EAC1B,wBAAwB,EACxB,0BAA0B,EAC1B,wBAAwB,GACzB,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EACL,8BAA8B,EAC9B,KAAK,oBAAoB,GAC1B,MAAM,0BAA0B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -5,9 +5,9 @@ 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
|
-
export { processesContract, discoveryContract, ConversationFailureReason, ConversationRecordSchema, PendingChatMessageSchema, PendingChatSchema, } from './api-to-frontend.js';
|
|
8
|
+
export { processesContract, discoveryContract, ConversationFailureReason, ConversationRecordSchema, PendingChatMessageSchema, PendingChatSchema, ChatAttachmentSchema, } 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, ListSnapshotsFailureReason, GroupCancelFailureReason, BlockLaunchesFailureReason, } from './engine-failure-reasons.js';
|
|
10
|
+
export { LaunchFailureReason, CancelFailureReason, DismissFailureReason, ResurrectFailureReason, ListSnapshotsFailureReason, GroupCancelFailureReason, BlockLaunchesFailureReason, StoreAvatarFailureReason, } 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,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,EAExB,wBAAwB,EACxB,iBAAiB,
|
|
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,EAExB,wBAAwB,EACxB,iBAAiB,EAEjB,oBAAoB,GAErB,MAAM,sBAAsB,CAAC;AAE9B,uFAAuF;AACvF,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,0BAA0B,EAC1B,wBAAwB,EACxB,0BAA0B,EAC1B,wBAAwB,GACzB,MAAM,6BAA6B,CAAC;AAErC,kEAAkE;AAClE,OAAO,EACL,8BAA8B,GAE/B,MAAM,0BAA0B,CAAC"}
|
|
@@ -1891,6 +1891,34 @@ export declare const optioEngineContract: import("@clamator/protocol").Contract<
|
|
|
1891
1891
|
reason: string;
|
|
1892
1892
|
ok: false;
|
|
1893
1893
|
}>]>>;
|
|
1894
|
+
storeAvatar: import("@clamator/protocol").MethodDef<z.ZodObject<{
|
|
1895
|
+
data: z.ZodString;
|
|
1896
|
+
contentType: z.ZodString;
|
|
1897
|
+
}, "strip", z.ZodTypeAny, {
|
|
1898
|
+
data: string;
|
|
1899
|
+
contentType: string;
|
|
1900
|
+
}, {
|
|
1901
|
+
data: string;
|
|
1902
|
+
contentType: string;
|
|
1903
|
+
}>, z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
|
|
1904
|
+
ok: z.ZodLiteral<true>;
|
|
1905
|
+
avatarId: z.ZodString;
|
|
1906
|
+
}, "strip", z.ZodTypeAny, {
|
|
1907
|
+
avatarId: string;
|
|
1908
|
+
ok: true;
|
|
1909
|
+
}, {
|
|
1910
|
+
avatarId: string;
|
|
1911
|
+
ok: true;
|
|
1912
|
+
}>, z.ZodObject<{
|
|
1913
|
+
ok: z.ZodLiteral<false>;
|
|
1914
|
+
reason: z.ZodEnum<["invalid-image", "too-large"]>;
|
|
1915
|
+
}, "strip", z.ZodTypeAny, {
|
|
1916
|
+
reason: "invalid-image" | "too-large";
|
|
1917
|
+
ok: false;
|
|
1918
|
+
}, {
|
|
1919
|
+
reason: "invalid-image" | "too-large";
|
|
1920
|
+
ok: false;
|
|
1921
|
+
}>]>>;
|
|
1894
1922
|
resync: import("@clamator/protocol").NotificationDef<z.ZodObject<{
|
|
1895
1923
|
clean: z.ZodOptional<z.ZodBoolean>;
|
|
1896
1924
|
metadataFilter: z.ZodOptional<z.ZodType<unknown, z.ZodTypeDef, unknown>>;
|
|
@@ -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;AA8ExB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;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cessSnapshotSchema } from './schemas/process.js';
|
|
4
|
-
import { LaunchFailureReason, CancelFailureReason, DismissFailureReason, ResurrectFailureReason, ListSnapshotsFailureReason, GroupCancelFailureReason, BlockLaunchesFailureReason, } from './engine-failure-reasons.js';
|
|
4
|
+
import { LaunchFailureReason, CancelFailureReason, DismissFailureReason, ResurrectFailureReason, ListSnapshotsFailureReason, GroupCancelFailureReason, BlockLaunchesFailureReason, StoreAvatarFailureReason, } 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 }),
|
|
@@ -46,6 +46,14 @@ const materializeUploadResult = z.discriminatedUnion('ok', [
|
|
|
46
46
|
z.object({ ok: z.literal(true), path: z.string() }),
|
|
47
47
|
z.object({ ok: z.literal(false), reason: z.string() }),
|
|
48
48
|
]);
|
|
49
|
+
// An author avatar stored in the engine's chat avatar bucket (chat
|
|
50
|
+
// participation spec, docs/2026-11-25-chat-participation-design.md §5.3):
|
|
51
|
+
// `avatarId` is optio-chat's avatar id of the image (the first 32 hex digits of
|
|
52
|
+
// its SHA-256).
|
|
53
|
+
const storeAvatarResult = z.discriminatedUnion('ok', [
|
|
54
|
+
z.object({ ok: z.literal(true), avatarId: z.string() }),
|
|
55
|
+
z.object({ ok: z.literal(false), reason: StoreAvatarFailureReason }),
|
|
56
|
+
]);
|
|
49
57
|
export const optioEngineContract = defineContract('optio-engine', {
|
|
50
58
|
launch: defineMethod({
|
|
51
59
|
params: z.object({
|
|
@@ -131,6 +139,18 @@ export const optioEngineContract = defineContract('optio-engine', {
|
|
|
131
139
|
}),
|
|
132
140
|
result: materializeUploadResult,
|
|
133
141
|
}),
|
|
142
|
+
// A host user's picture (optio-api's `inputAuthor` avatar, read once on a
|
|
143
|
+
// miss) for the engine to check and store exactly as the chat hub stores an
|
|
144
|
+
// upload (optio-chat-hub's images.py), into `{prefix}_chat_avatars`: the
|
|
145
|
+
// engine owns the write.
|
|
146
|
+
storeAvatar: defineMethod({
|
|
147
|
+
params: z.object({
|
|
148
|
+
// The image bytes, base64 (standard alphabet).
|
|
149
|
+
data: z.string(),
|
|
150
|
+
contentType: z.string(),
|
|
151
|
+
}),
|
|
152
|
+
result: storeAvatarResult,
|
|
153
|
+
}),
|
|
134
154
|
resync: defineNotification({
|
|
135
155
|
params: z.object({
|
|
136
156
|
clean: z.boolean().optional(),
|
|
@@ -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,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AACzG,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,0BAA0B,EAC1B,wBAAwB,EACxB,0BAA0B,
|
|
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,sBAAsB,CAAC;AACzG,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,0BAA0B,EAC1B,wBAAwB,EACxB,0BAA0B,EAC1B,wBAAwB,GACzB,MAAM,6BAA6B,CAAC;AAErC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CA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