@vezham/tamizhi-contracts 0.0.0-stage → 26.3.2

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.
@@ -0,0 +1,225 @@
1
+ import { z } from 'zod';
2
+ import type { Outfit, Persona } from './chat';
3
+ export interface TamizhiAppearance {
4
+ persona: Persona;
5
+ outfit: Outfit;
6
+ }
7
+ export interface TamizhiSuggestion {
8
+ title: string;
9
+ prompt: string;
10
+ }
11
+ export interface TamizhiProfile extends TamizhiAppearance {
12
+ id: string;
13
+ name: string;
14
+ category?: string;
15
+ suggestions?: readonly TamizhiSuggestion[];
16
+ activities?: Readonly<Record<string, Partial<TamizhiAppearance>>>;
17
+ }
18
+ export interface TamizhiProfileOptions {
19
+ appId?: string;
20
+ profiles?: readonly TamizhiProfile[];
21
+ }
22
+ export declare const tamizhiProfileSchema: z.ZodObject<{
23
+ persona: z.ZodEnum<{
24
+ tutor: "tutor";
25
+ planner: "planner";
26
+ helper: "helper";
27
+ coder: "coder";
28
+ writer: "writer";
29
+ explorer: "explorer";
30
+ }>;
31
+ outfit: z.ZodEnum<{
32
+ rest: "rest";
33
+ cook: "cook";
34
+ investigate: "investigate";
35
+ write: "write";
36
+ builder: "builder";
37
+ music: "music";
38
+ tutor: "tutor";
39
+ garden: "garden";
40
+ designer: "designer";
41
+ director: "director";
42
+ coach: "coach";
43
+ traveller: "traveller";
44
+ money: "money";
45
+ planner: "planner";
46
+ captain: "captain";
47
+ tester: "tester";
48
+ guard: "guard";
49
+ bug: "bug";
50
+ }>;
51
+ id: z.ZodString;
52
+ name: z.ZodString;
53
+ category: z.ZodOptional<z.ZodString>;
54
+ suggestions: z.ZodOptional<z.ZodArray<z.ZodObject<{
55
+ title: z.ZodString;
56
+ prompt: z.ZodString;
57
+ }, z.core.$strict>>>;
58
+ activities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
59
+ persona: z.ZodOptional<z.ZodEnum<{
60
+ tutor: "tutor";
61
+ planner: "planner";
62
+ helper: "helper";
63
+ coder: "coder";
64
+ writer: "writer";
65
+ explorer: "explorer";
66
+ }>>;
67
+ outfit: z.ZodOptional<z.ZodEnum<{
68
+ rest: "rest";
69
+ cook: "cook";
70
+ investigate: "investigate";
71
+ write: "write";
72
+ builder: "builder";
73
+ music: "music";
74
+ tutor: "tutor";
75
+ garden: "garden";
76
+ designer: "designer";
77
+ director: "director";
78
+ coach: "coach";
79
+ traveller: "traveller";
80
+ money: "money";
81
+ planner: "planner";
82
+ captain: "captain";
83
+ tester: "tester";
84
+ guard: "guard";
85
+ bug: "bug";
86
+ }>>;
87
+ }, z.core.$strict>>>;
88
+ }, z.core.$strict>;
89
+ export declare const tamizhiProfilesSchema: z.ZodArray<z.ZodObject<{
90
+ persona: z.ZodEnum<{
91
+ tutor: "tutor";
92
+ planner: "planner";
93
+ helper: "helper";
94
+ coder: "coder";
95
+ writer: "writer";
96
+ explorer: "explorer";
97
+ }>;
98
+ outfit: z.ZodEnum<{
99
+ rest: "rest";
100
+ cook: "cook";
101
+ investigate: "investigate";
102
+ write: "write";
103
+ builder: "builder";
104
+ music: "music";
105
+ tutor: "tutor";
106
+ garden: "garden";
107
+ designer: "designer";
108
+ director: "director";
109
+ coach: "coach";
110
+ traveller: "traveller";
111
+ money: "money";
112
+ planner: "planner";
113
+ captain: "captain";
114
+ tester: "tester";
115
+ guard: "guard";
116
+ bug: "bug";
117
+ }>;
118
+ id: z.ZodString;
119
+ name: z.ZodString;
120
+ category: z.ZodOptional<z.ZodString>;
121
+ suggestions: z.ZodOptional<z.ZodArray<z.ZodObject<{
122
+ title: z.ZodString;
123
+ prompt: z.ZodString;
124
+ }, z.core.$strict>>>;
125
+ activities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
126
+ persona: z.ZodOptional<z.ZodEnum<{
127
+ tutor: "tutor";
128
+ planner: "planner";
129
+ helper: "helper";
130
+ coder: "coder";
131
+ writer: "writer";
132
+ explorer: "explorer";
133
+ }>>;
134
+ outfit: z.ZodOptional<z.ZodEnum<{
135
+ rest: "rest";
136
+ cook: "cook";
137
+ investigate: "investigate";
138
+ write: "write";
139
+ builder: "builder";
140
+ music: "music";
141
+ tutor: "tutor";
142
+ garden: "garden";
143
+ designer: "designer";
144
+ director: "director";
145
+ coach: "coach";
146
+ traveller: "traveller";
147
+ money: "money";
148
+ planner: "planner";
149
+ captain: "captain";
150
+ tester: "tester";
151
+ guard: "guard";
152
+ bug: "bug";
153
+ }>>;
154
+ }, z.core.$strict>>>;
155
+ }, z.core.$strict>>;
156
+ export declare const tamizhiConfigSchema: z.ZodObject<{
157
+ profiles: z.ZodArray<z.ZodObject<{
158
+ persona: z.ZodEnum<{
159
+ tutor: "tutor";
160
+ planner: "planner";
161
+ helper: "helper";
162
+ coder: "coder";
163
+ writer: "writer";
164
+ explorer: "explorer";
165
+ }>;
166
+ outfit: z.ZodEnum<{
167
+ rest: "rest";
168
+ cook: "cook";
169
+ investigate: "investigate";
170
+ write: "write";
171
+ builder: "builder";
172
+ music: "music";
173
+ tutor: "tutor";
174
+ garden: "garden";
175
+ designer: "designer";
176
+ director: "director";
177
+ coach: "coach";
178
+ traveller: "traveller";
179
+ money: "money";
180
+ planner: "planner";
181
+ captain: "captain";
182
+ tester: "tester";
183
+ guard: "guard";
184
+ bug: "bug";
185
+ }>;
186
+ id: z.ZodString;
187
+ name: z.ZodString;
188
+ category: z.ZodOptional<z.ZodString>;
189
+ suggestions: z.ZodOptional<z.ZodArray<z.ZodObject<{
190
+ title: z.ZodString;
191
+ prompt: z.ZodString;
192
+ }, z.core.$strict>>>;
193
+ activities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
194
+ persona: z.ZodOptional<z.ZodEnum<{
195
+ tutor: "tutor";
196
+ planner: "planner";
197
+ helper: "helper";
198
+ coder: "coder";
199
+ writer: "writer";
200
+ explorer: "explorer";
201
+ }>>;
202
+ outfit: z.ZodOptional<z.ZodEnum<{
203
+ rest: "rest";
204
+ cook: "cook";
205
+ investigate: "investigate";
206
+ write: "write";
207
+ builder: "builder";
208
+ music: "music";
209
+ tutor: "tutor";
210
+ garden: "garden";
211
+ designer: "designer";
212
+ director: "director";
213
+ coach: "coach";
214
+ traveller: "traveller";
215
+ money: "money";
216
+ planner: "planner";
217
+ captain: "captain";
218
+ tester: "tester";
219
+ guard: "guard";
220
+ bug: "bug";
221
+ }>>;
222
+ }, z.core.$strict>>>;
223
+ }, z.core.$strict>>;
224
+ }, z.core.$strict>;
225
+ //# sourceMappingURL=profiles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profiles.d.ts","sourceRoot":"","sources":["../../src/lib/profiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AAG7C,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,OAAO,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,cAAe,SAAQ,iBAAiB;IACvD,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,SAAS,iBAAiB,EAAE,CAAA;IAC1C,UAAU,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAA;CAClE;AAED,MAAM,WAAW,qBAAqB;IACpC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,SAAS,cAAc,EAAE,CAAA;CACrC;AAOD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAsBK,CAAA;AAEtC,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAe/B,CAAA;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAE9B,CAAA"}
@@ -0,0 +1,21 @@
1
+ import { wireMessageSchema } from "./protocol.js";
2
+ import { z } from "zod";
3
+ //#region src/lib/profiles.ts
4
+ var appearanceSchema = z.strictObject({
5
+ persona: wireMessageSchema.shape.persona.unwrap(),
6
+ outfit: wireMessageSchema.shape.outfit.unwrap()
7
+ });
8
+ var tamizhiProfileSchema = appearanceSchema.extend({
9
+ id: z.string().trim().min(1).max(128),
10
+ name: z.string().trim().min(1).max(128),
11
+ category: z.string().trim().min(1).max(64).optional(),
12
+ suggestions: z.array(z.strictObject({
13
+ title: z.string().trim().min(1).max(80),
14
+ prompt: z.string().trim().min(1).max(2e3)
15
+ })).max(10).refine((items) => new Set(items.map((item) => item.title)).size === items.length, { message: "Suggestion titles must be unique within a profile" }).optional(),
16
+ activities: z.record(z.string().min(1).max(256), appearanceSchema.partial()).optional()
17
+ });
18
+ var tamizhiProfilesSchema = z.array(tamizhiProfileSchema).min(1).refine((profiles) => new Set(profiles.map((profile) => profile.id)).size === profiles.length, { message: "Profile IDs must be unique" }).refine((profiles) => profiles.some((profile) => profile.id === "vezham-tamizhi"), { message: "The default vezham-tamizhi profile is required" });
19
+ var tamizhiConfigSchema = z.strictObject({ profiles: tamizhiProfilesSchema });
20
+ //#endregion
21
+ export { tamizhiConfigSchema, tamizhiProfileSchema, tamizhiProfilesSchema };
@@ -0,0 +1,334 @@
1
+ import { z } from 'zod';
2
+ export declare const permissionModeSchema: z.ZodEnum<{
3
+ ask: "ask";
4
+ safe: "safe";
5
+ full: "full";
6
+ }>;
7
+ export type PermissionMode = z.infer<typeof permissionModeSchema>;
8
+ export declare const attachmentSchema: z.ZodObject<{
9
+ id: z.ZodString;
10
+ name: z.ZodString;
11
+ mimeType: z.ZodString;
12
+ size: z.ZodNumber;
13
+ text: z.ZodOptional<z.ZodString>;
14
+ }, z.core.$strip>;
15
+ export declare const wireMessageSchema: z.ZodObject<{
16
+ id: z.ZodOptional<z.ZodString>;
17
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
18
+ id: z.ZodString;
19
+ name: z.ZodString;
20
+ mimeType: z.ZodString;
21
+ size: z.ZodNumber;
22
+ text: z.ZodOptional<z.ZodString>;
23
+ }, z.core.$strip>>>;
24
+ role: z.ZodEnum<{
25
+ user: "user";
26
+ assistant: "assistant";
27
+ }>;
28
+ content: z.ZodString;
29
+ outfitLocked: z.ZodOptional<z.ZodBoolean>;
30
+ profileId: z.ZodOptional<z.ZodString>;
31
+ persona: z.ZodOptional<z.ZodEnum<{
32
+ tutor: "tutor";
33
+ planner: "planner";
34
+ helper: "helper";
35
+ coder: "coder";
36
+ writer: "writer";
37
+ explorer: "explorer";
38
+ }>>;
39
+ outfit: z.ZodOptional<z.ZodEnum<{
40
+ rest: "rest";
41
+ cook: "cook";
42
+ investigate: "investigate";
43
+ write: "write";
44
+ builder: "builder";
45
+ music: "music";
46
+ tutor: "tutor";
47
+ garden: "garden";
48
+ designer: "designer";
49
+ director: "director";
50
+ coach: "coach";
51
+ traveller: "traveller";
52
+ money: "money";
53
+ planner: "planner";
54
+ captain: "captain";
55
+ tester: "tester";
56
+ guard: "guard";
57
+ bug: "bug";
58
+ }>>;
59
+ }, z.core.$strip>;
60
+ export declare const runRequestSchema: z.ZodObject<{
61
+ activityProfiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
62
+ persona: z.ZodOptional<z.ZodEnum<{
63
+ tutor: "tutor";
64
+ planner: "planner";
65
+ helper: "helper";
66
+ coder: "coder";
67
+ writer: "writer";
68
+ explorer: "explorer";
69
+ }>>;
70
+ outfit: z.ZodOptional<z.ZodEnum<{
71
+ rest: "rest";
72
+ cook: "cook";
73
+ investigate: "investigate";
74
+ write: "write";
75
+ builder: "builder";
76
+ music: "music";
77
+ tutor: "tutor";
78
+ garden: "garden";
79
+ designer: "designer";
80
+ director: "director";
81
+ coach: "coach";
82
+ traveller: "traveller";
83
+ money: "money";
84
+ planner: "planner";
85
+ captain: "captain";
86
+ tester: "tester";
87
+ guard: "guard";
88
+ bug: "bug";
89
+ }>>;
90
+ }, z.core.$strip>>>;
91
+ conversationId: z.ZodString;
92
+ messages: z.ZodArray<z.ZodObject<{
93
+ id: z.ZodOptional<z.ZodString>;
94
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
95
+ id: z.ZodString;
96
+ name: z.ZodString;
97
+ mimeType: z.ZodString;
98
+ size: z.ZodNumber;
99
+ text: z.ZodOptional<z.ZodString>;
100
+ }, z.core.$strip>>>;
101
+ role: z.ZodEnum<{
102
+ user: "user";
103
+ assistant: "assistant";
104
+ }>;
105
+ content: z.ZodString;
106
+ outfitLocked: z.ZodOptional<z.ZodBoolean>;
107
+ profileId: z.ZodOptional<z.ZodString>;
108
+ persona: z.ZodOptional<z.ZodEnum<{
109
+ tutor: "tutor";
110
+ planner: "planner";
111
+ helper: "helper";
112
+ coder: "coder";
113
+ writer: "writer";
114
+ explorer: "explorer";
115
+ }>>;
116
+ outfit: z.ZodOptional<z.ZodEnum<{
117
+ rest: "rest";
118
+ cook: "cook";
119
+ investigate: "investigate";
120
+ write: "write";
121
+ builder: "builder";
122
+ music: "music";
123
+ tutor: "tutor";
124
+ garden: "garden";
125
+ designer: "designer";
126
+ director: "director";
127
+ coach: "coach";
128
+ traveller: "traveller";
129
+ money: "money";
130
+ planner: "planner";
131
+ captain: "captain";
132
+ tester: "tester";
133
+ guard: "guard";
134
+ bug: "bug";
135
+ }>>;
136
+ }, z.core.$strip>>;
137
+ title: z.ZodOptional<z.ZodString>;
138
+ expectedVersion: z.ZodOptional<z.ZodNumber>;
139
+ model: z.ZodOptional<z.ZodString>;
140
+ fast: z.ZodDefault<z.ZodBoolean>;
141
+ permission: z.ZodDefault<z.ZodEnum<{
142
+ ask: "ask";
143
+ safe: "safe";
144
+ full: "full";
145
+ }>>;
146
+ }, z.core.$strip>;
147
+ export type RunRequest = z.infer<typeof runRequestSchema>;
148
+ export type WireMessage = z.infer<typeof wireMessageSchema>;
149
+ export declare const approvalDecisionSchema: z.ZodObject<{
150
+ runId: z.ZodString;
151
+ callId: z.ZodString;
152
+ approved: z.ZodBoolean;
153
+ }, z.core.$strip>;
154
+ export type ApprovalDecision = z.infer<typeof approvalDecisionSchema>;
155
+ export declare const modelInfoSchema: z.ZodObject<{
156
+ id: z.ZodString;
157
+ name: z.ZodString;
158
+ provider: z.ZodString;
159
+ modalities: z.ZodOptional<z.ZodArray<z.ZodString>>;
160
+ contextWindow: z.ZodOptional<z.ZodNumber>;
161
+ fast: z.ZodOptional<z.ZodBoolean>;
162
+ }, z.core.$strip>;
163
+ export type ModelInfo = z.infer<typeof modelInfoSchema>;
164
+ export declare const pluginInfoSchema: z.ZodObject<{
165
+ required: z.ZodOptional<z.ZodBoolean>;
166
+ error: z.ZodOptional<z.ZodString>;
167
+ name: z.ZodString;
168
+ services: z.ZodOptional<z.ZodArray<z.ZodString>>;
169
+ kind: z.ZodOptional<z.ZodString>;
170
+ enabled: z.ZodOptional<z.ZodBoolean>;
171
+ status: z.ZodOptional<z.ZodString>;
172
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
173
+ }, z.core.$strip>;
174
+ export type PluginInfo = z.infer<typeof pluginInfoSchema>;
175
+ export declare const streamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
176
+ type: z.ZodLiteral<"start">;
177
+ runId: z.ZodString;
178
+ conversationId: z.ZodString;
179
+ sequence: z.ZodOptional<z.ZodNumber>;
180
+ parentRunId: z.ZodOptional<z.ZodString>;
181
+ }, z.core.$strip>, z.ZodObject<{
182
+ type: z.ZodLiteral<"text">;
183
+ delta: z.ZodString;
184
+ runId: z.ZodString;
185
+ conversationId: z.ZodString;
186
+ sequence: z.ZodOptional<z.ZodNumber>;
187
+ parentRunId: z.ZodOptional<z.ZodString>;
188
+ }, z.core.$strip>, z.ZodObject<{
189
+ type: z.ZodLiteral<"tool">;
190
+ callId: z.ZodString;
191
+ name: z.ZodString;
192
+ input: z.ZodUnknown;
193
+ runId: z.ZodString;
194
+ conversationId: z.ZodString;
195
+ sequence: z.ZodOptional<z.ZodNumber>;
196
+ parentRunId: z.ZodOptional<z.ZodString>;
197
+ }, z.core.$strip>, z.ZodObject<{
198
+ type: z.ZodLiteral<"approval">;
199
+ callId: z.ZodString;
200
+ name: z.ZodString;
201
+ input: z.ZodUnknown;
202
+ runId: z.ZodString;
203
+ conversationId: z.ZodString;
204
+ sequence: z.ZodOptional<z.ZodNumber>;
205
+ parentRunId: z.ZodOptional<z.ZodString>;
206
+ }, z.core.$strip>, z.ZodObject<{
207
+ type: z.ZodLiteral<"tool-result">;
208
+ callId: z.ZodString;
209
+ name: z.ZodString;
210
+ output: z.ZodUnknown;
211
+ runId: z.ZodString;
212
+ conversationId: z.ZodString;
213
+ sequence: z.ZodOptional<z.ZodNumber>;
214
+ parentRunId: z.ZodOptional<z.ZodString>;
215
+ }, z.core.$strip>, z.ZodObject<{
216
+ type: z.ZodLiteral<"finish">;
217
+ reason: z.ZodEnum<{
218
+ complete: "complete";
219
+ canceled: "canceled";
220
+ }>;
221
+ runId: z.ZodString;
222
+ conversationId: z.ZodString;
223
+ sequence: z.ZodOptional<z.ZodNumber>;
224
+ parentRunId: z.ZodOptional<z.ZodString>;
225
+ }, z.core.$strip>, z.ZodObject<{
226
+ type: z.ZodLiteral<"error">;
227
+ message: z.ZodString;
228
+ runId: z.ZodString;
229
+ conversationId: z.ZodString;
230
+ sequence: z.ZodOptional<z.ZodNumber>;
231
+ parentRunId: z.ZodOptional<z.ZodString>;
232
+ }, z.core.$strip>, z.ZodObject<{
233
+ type: z.ZodLiteral<"status">;
234
+ name: z.ZodString;
235
+ runId: z.ZodString;
236
+ conversationId: z.ZodString;
237
+ sequence: z.ZodOptional<z.ZodNumber>;
238
+ parentRunId: z.ZodOptional<z.ZodString>;
239
+ }, z.core.$strip>, z.ZodObject<{
240
+ type: z.ZodLiteral<"subagent">;
241
+ output: z.ZodUnknown;
242
+ runId: z.ZodString;
243
+ conversationId: z.ZodString;
244
+ sequence: z.ZodOptional<z.ZodNumber>;
245
+ parentRunId: z.ZodOptional<z.ZodString>;
246
+ }, z.core.$strip>, z.ZodObject<{
247
+ type: z.ZodLiteral<"subagent-event">;
248
+ output: z.ZodUnknown;
249
+ runId: z.ZodString;
250
+ conversationId: z.ZodString;
251
+ sequence: z.ZodOptional<z.ZodNumber>;
252
+ parentRunId: z.ZodOptional<z.ZodString>;
253
+ }, z.core.$strip>, z.ZodObject<{
254
+ type: z.ZodLiteral<"client-action">;
255
+ output: z.ZodObject<{
256
+ name: z.ZodLiteral<"navigate">;
257
+ path: z.ZodString;
258
+ }, z.core.$strip>;
259
+ runId: z.ZodString;
260
+ conversationId: z.ZodString;
261
+ sequence: z.ZodOptional<z.ZodNumber>;
262
+ parentRunId: z.ZodOptional<z.ZodString>;
263
+ }, z.core.$strip>], "type">;
264
+ export type StreamEvent = z.infer<typeof streamEventSchema>;
265
+ export type ToolActivity = Extract<StreamEvent, {
266
+ type: 'tool' | 'approval' | 'tool-result';
267
+ }>;
268
+ export interface ApprovalRequest {
269
+ runId: string;
270
+ callId: string;
271
+ name: string;
272
+ input: unknown;
273
+ }
274
+ export declare const storedConversationSchema: z.ZodObject<{
275
+ id: z.ZodString;
276
+ title: z.ZodOptional<z.ZodString>;
277
+ version: z.ZodOptional<z.ZodNumber>;
278
+ parentId: z.ZodOptional<z.ZodString>;
279
+ summary: z.ZodOptional<z.ZodString>;
280
+ messages: z.ZodArray<z.ZodObject<{
281
+ id: z.ZodOptional<z.ZodString>;
282
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
283
+ id: z.ZodString;
284
+ name: z.ZodString;
285
+ mimeType: z.ZodString;
286
+ size: z.ZodNumber;
287
+ text: z.ZodOptional<z.ZodString>;
288
+ }, z.core.$strip>>>;
289
+ content: z.ZodString;
290
+ outfitLocked: z.ZodOptional<z.ZodBoolean>;
291
+ profileId: z.ZodOptional<z.ZodString>;
292
+ persona: z.ZodOptional<z.ZodEnum<{
293
+ tutor: "tutor";
294
+ planner: "planner";
295
+ helper: "helper";
296
+ coder: "coder";
297
+ writer: "writer";
298
+ explorer: "explorer";
299
+ }>>;
300
+ outfit: z.ZodOptional<z.ZodEnum<{
301
+ rest: "rest";
302
+ cook: "cook";
303
+ investigate: "investigate";
304
+ write: "write";
305
+ builder: "builder";
306
+ music: "music";
307
+ tutor: "tutor";
308
+ garden: "garden";
309
+ designer: "designer";
310
+ director: "director";
311
+ coach: "coach";
312
+ traveller: "traveller";
313
+ money: "money";
314
+ planner: "planner";
315
+ captain: "captain";
316
+ tester: "tester";
317
+ guard: "guard";
318
+ bug: "bug";
319
+ }>>;
320
+ role: z.ZodEnum<{
321
+ user: "user";
322
+ assistant: "assistant";
323
+ tool: "tool";
324
+ }>;
325
+ rating: z.ZodOptional<z.ZodString>;
326
+ tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
327
+ label: z.ZodString;
328
+ done: z.ZodBoolean;
329
+ }, z.core.$strip>>>;
330
+ }, z.core.$strip>>;
331
+ updatedAt: z.ZodNumber;
332
+ }, z.core.$strip>;
333
+ export type StoredConversationData = z.infer<typeof storedConversationSchema>;
334
+ //# sourceMappingURL=protocol.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../../src/lib/protocol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,oBAAoB;;;;EAAkC,CAAA;AACnE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,o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