@otto-code/protocol 0.5.4 → 0.5.5

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.
@@ -19,6 +19,7 @@ export declare const ArtifactCreateRequestSchema: z.ZodObject<{
19
19
  glowA: z.ZodString;
20
20
  glowB: z.ZodString;
21
21
  }, z.core.$loose>>;
22
+ personalityName: z.ZodOptional<z.ZodString>;
22
23
  requestId: z.ZodString;
23
24
  }, z.core.$strip>;
24
25
  export declare const ArtifactUpdateRequestSchema: z.ZodObject<{
@@ -87,6 +88,7 @@ export declare const ArtifactListResponseSchema: z.ZodObject<{
87
88
  glowA: z.ZodString;
88
89
  glowB: z.ZodString;
89
90
  }, z.core.$loose>>>;
91
+ generationPersonalityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
90
92
  errorMessage: z.ZodNullable<z.ZodString>;
91
93
  }, z.core.$strip>>;
92
94
  success: z.ZodBoolean;
@@ -123,6 +125,7 @@ export declare const ArtifactCreateResponseSchema: z.ZodObject<{
123
125
  glowA: z.ZodString;
124
126
  glowB: z.ZodString;
125
127
  }, z.core.$loose>>>;
128
+ generationPersonalityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
126
129
  errorMessage: z.ZodNullable<z.ZodString>;
127
130
  }, z.core.$strip>;
128
131
  success: z.ZodBoolean;
@@ -167,6 +170,7 @@ export declare const ArtifactStarResponseSchema: z.ZodObject<{
167
170
  glowA: z.ZodString;
168
171
  glowB: z.ZodString;
169
172
  }, z.core.$loose>>>;
173
+ generationPersonalityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
170
174
  errorMessage: z.ZodNullable<z.ZodString>;
171
175
  }, z.core.$strip>;
172
176
  success: z.ZodBoolean;
@@ -203,6 +207,7 @@ export declare const ArtifactUpdateResponseSchema: z.ZodObject<{
203
207
  glowA: z.ZodString;
204
208
  glowB: z.ZodString;
205
209
  }, z.core.$loose>>>;
210
+ generationPersonalityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
206
211
  errorMessage: z.ZodNullable<z.ZodString>;
207
212
  }, z.core.$strip>;
208
213
  success: z.ZodBoolean;
@@ -239,6 +244,7 @@ export declare const ArtifactRegenerateResponseSchema: z.ZodObject<{
239
244
  glowA: z.ZodString;
240
245
  glowB: z.ZodString;
241
246
  }, z.core.$loose>>>;
247
+ generationPersonalityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
242
248
  errorMessage: z.ZodNullable<z.ZodString>;
243
249
  }, z.core.$strip>;
244
250
  success: z.ZodBoolean;
@@ -275,6 +281,7 @@ export declare const ArtifactCancelResponseSchema: z.ZodObject<{
275
281
  glowA: z.ZodString;
276
282
  glowB: z.ZodString;
277
283
  }, z.core.$loose>>>;
284
+ generationPersonalityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
278
285
  errorMessage: z.ZodNullable<z.ZodString>;
279
286
  }, z.core.$strip>;
280
287
  success: z.ZodBoolean;
@@ -320,6 +327,7 @@ export declare const ArtifactCreatedNotificationSchema: z.ZodObject<{
320
327
  glowA: z.ZodString;
321
328
  glowB: z.ZodString;
322
329
  }, z.core.$loose>>>;
330
+ generationPersonalityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
323
331
  errorMessage: z.ZodNullable<z.ZodString>;
324
332
  }, z.core.$strip>;
325
333
  }, z.core.$strip>;
@@ -353,6 +361,7 @@ export declare const ArtifactUpdatedNotificationSchema: z.ZodObject<{
353
361
  glowA: z.ZodString;
354
362
  glowB: z.ZodString;
355
363
  }, z.core.$loose>>>;
364
+ generationPersonalityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
356
365
  errorMessage: z.ZodNullable<z.ZodString>;
357
366
  }, z.core.$strip>;
358
367
  }, z.core.$strip>;
@@ -20,6 +20,9 @@ export const ArtifactCreateRequestSchema = z.object({
20
20
  systemPrompt: z.string().optional(),
21
21
  // Snapshotted spinner colors of the chosen Agent Personality (optional).
22
22
  spinner: ArtifactSpinnerSchema.optional(),
23
+ // Snapshotted human name of the chosen Agent Personality (optional) — shown
24
+ // on the artifact card's identity line as the "who generated it".
25
+ personalityName: z.string().optional(),
23
26
  requestId: z.string(),
24
27
  });
25
28
  // Update edits an artifact's metadata (name/description/project/provider/
@@ -40,6 +40,7 @@ export declare const ArtifactMetadataSchema: z.ZodObject<{
40
40
  glowA: z.ZodString;
41
41
  glowB: z.ZodString;
42
42
  }, z.core.$loose>>>;
43
+ generationPersonalityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
44
  errorMessage: z.ZodNullable<z.ZodString>;
44
45
  }, z.core.$strip>;
45
46
  export type ArtifactMetadata = z.infer<typeof ArtifactMetadataSchema>;
@@ -69,6 +70,7 @@ export declare const ArtifactSummarySchema: z.ZodObject<{
69
70
  glowA: z.ZodString;
70
71
  glowB: z.ZodString;
71
72
  }, z.core.$loose>>>;
73
+ generationPersonalityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
74
  errorMessage: z.ZodNullable<z.ZodString>;
73
75
  }, z.core.$strip>;
74
76
  export type ArtifactSummary = z.infer<typeof ArtifactSummarySchema>;
@@ -99,6 +101,7 @@ export declare const ArtifactRunSchema: z.ZodObject<{
99
101
  agentId: z.ZodNullable<z.ZodString>;
100
102
  provider: z.ZodNullable<z.ZodString>;
101
103
  model: z.ZodNullable<z.ZodString>;
104
+ personalityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
102
105
  error: z.ZodNullable<z.ZodString>;
103
106
  }, z.core.$strip>;
104
107
  export type ArtifactRun = z.infer<typeof ArtifactRunSchema>;
@@ -128,6 +131,7 @@ export declare const StoredArtifactSchema: z.ZodObject<{
128
131
  glowA: z.ZodString;
129
132
  glowB: z.ZodString;
130
133
  }, z.core.$loose>>>;
134
+ generationPersonalityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
131
135
  errorMessage: z.ZodNullable<z.ZodString>;
132
136
  runs: z.ZodDefault<z.ZodArray<z.ZodObject<{
133
137
  id: z.ZodString;
@@ -145,6 +149,7 @@ export declare const StoredArtifactSchema: z.ZodObject<{
145
149
  agentId: z.ZodNullable<z.ZodString>;
146
150
  provider: z.ZodNullable<z.ZodString>;
147
151
  model: z.ZodNullable<z.ZodString>;
152
+ personalityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
148
153
  error: z.ZodNullable<z.ZodString>;
149
154
  }, z.core.$strip>>>;
150
155
  }, z.core.$strip>;
@@ -162,5 +167,9 @@ export interface CreateArtifactInput {
162
167
  /** Spinner colors of the chosen Agent Personality, snapshotted onto the
163
168
  * artifact so its generating card renders in the personality's identity. */
164
169
  spinner?: ArtifactSpinner;
170
+ /** Human name of the chosen Agent Personality, snapshotted onto the artifact
171
+ * so its card can show who generated it (persona · provider · model). Absent
172
+ * when no personality was used. */
173
+ personalityName?: string;
165
174
  }
166
175
  //# sourceMappingURL=types.d.ts.map
@@ -35,8 +35,14 @@ export const ArtifactMetadataSchema = z.object({
35
35
  // Spinner glow colors of the Agent Personality this artifact was generated
36
36
  // under, snapshotted at create time like the provider/model above. Absent ⇒
37
37
  // the card falls back to the theme's default spinner colors. Purely additive
38
- // (no daemon floor needed). See projects/agent-personalities/.
38
+ // (no daemon floor needed). See docs/agent-personalities.md.
39
39
  generationSpinner: ArtifactSpinnerSchema.nullable().optional(),
40
+ // Human name of the Agent Personality that generated (last generated) this
41
+ // artifact, snapshotted at create/regenerate time like the provider/model
42
+ // above — the "who actually did it" the card's identity line shows alongside
43
+ // provider/model. Absent ⇒ no personality was used (plain provider/model
44
+ // selection). Purely additive (no daemon floor needed).
45
+ generationPersonalityName: z.string().nullable().optional(),
40
46
  errorMessage: z.string().nullable(),
41
47
  });
42
48
  export const ArtifactSummarySchema = ArtifactMetadataSchema;
@@ -57,6 +63,10 @@ export const ArtifactRunSchema = z.object({
57
63
  agentId: z.string().nullable(),
58
64
  provider: z.string().nullable(),
59
65
  model: z.string().nullable(),
66
+ // Personality that ran this attempt. Optional (not just nullable): run
67
+ // records written before this field existed omit it entirely, so old on-disk
68
+ // runs still parse.
69
+ personalityName: z.string().nullable().optional(),
60
70
  error: z.string().nullable(),
61
71
  });
62
72
  // The full on-disk record: the lean metadata plus its generation run history.
@@ -5,7 +5,7 @@
5
5
  // restore button) import this one list so the shipped set stays identical on
6
6
  // both sides.
7
7
  //
8
- // Design notes (see projects/agent-personalities/agent-personalities.md):
8
+ // Design notes (see docs/agent-personalities.md):
9
9
  // - Ids are STABLE and prefixed `personality_builtin_*`. Restore re-adds only
10
10
  // the builtins whose id is missing, so a user who kept/renamed some never
11
11
  // gets duplicates. Renaming a builtin keeps its id, so it is still "present".
@@ -2036,6 +2036,13 @@ export const WSOutboundMessageSchema = /* @__PURE__ */ (() => {
2036
2036
  }
2037
2037
  }
2038
2038
  }
2039
+ if (__o_104["generationPersonalityName"] !== undefined) {
2040
+ if (__o_104["generationPersonalityName"] !== null) {
2041
+ if (typeof __o_104["generationPersonalityName"] !== "string") {
2042
+ _e.push({ code: "invalid_type", expected: "string", input: __o_104["generationPersonalityName"], path: ["message"].concat("payload").concat("artifact").concat("generationPersonalityName") });
2043
+ }
2044
+ }
2045
+ }
2039
2046
  if (__o_104["errorMessage"] !== null) {
2040
2047
  if (typeof __o_104["errorMessage"] !== "string") {
2041
2048
  _e.push({ code: "invalid_type", expected: "string", input: __o_104["errorMessage"], path: ["message"].concat("payload").concat("artifact").concat("errorMessage") });
@@ -45819,6 +45826,27 @@ export const WSOutboundMessageSchema = /* @__PURE__ */ (() => {
45819
45826
  }
45820
45827
  }
45821
45828
  }
45829
+ if (__o_2970["lastRunPersonalityName"] !== undefined) {
45830
+ if (__o_2970["lastRunPersonalityName"] !== null) {
45831
+ if (typeof __o_2970["lastRunPersonalityName"] !== "string") {
45832
+ _e.push({ code: "invalid_type", expected: "string", input: __o_2970["lastRunPersonalityName"], path: ["message"].concat("payload").concat("schedule").concat("lastRunPersonalityName") });
45833
+ }
45834
+ }
45835
+ }
45836
+ if (__o_2970["lastRunProvider"] !== undefined) {
45837
+ if (__o_2970["lastRunProvider"] !== null) {
45838
+ if (typeof __o_2970["lastRunProvider"] !== "string") {
45839
+ _e.push({ code: "invalid_type", expected: "string", input: __o_2970["lastRunProvider"], path: ["message"].concat("payload").concat("schedule").concat("lastRunProvider") });
45840
+ }
45841
+ }
45842
+ }
45843
+ if (__o_2970["lastRunModel"] !== undefined) {
45844
+ if (__o_2970["lastRunModel"] !== null) {
45845
+ if (typeof __o_2970["lastRunModel"] !== "string") {
45846
+ _e.push({ code: "invalid_type", expected: "string", input: __o_2970["lastRunModel"], path: ["message"].concat("payload").concat("schedule").concat("lastRunModel") });
45847
+ }
45848
+ }
45849
+ }
45822
45850
  if (__o_2970["pausedAt"] !== null) {
45823
45851
  if (typeof __o_2970["pausedAt"] !== "string") {
45824
45852
  _e.push({ code: "invalid_type", expected: "string", input: __o_2970["pausedAt"], path: ["message"].concat("payload").concat("schedule").concat("pausedAt") });
@@ -46242,6 +46270,27 @@ export const WSOutboundMessageSchema = /* @__PURE__ */ (() => {
46242
46270
  }
46243
46271
  }
46244
46272
  }
46273
+ if (__o_2999["lastRunPersonalityName"] !== undefined) {
46274
+ if (__o_2999["lastRunPersonalityName"] !== null) {
46275
+ if (typeof __o_2999["lastRunPersonalityName"] !== "string") {
46276
+ _e.push({ code: "invalid_type", expected: "string", input: __o_2999["lastRunPersonalityName"], path: ["message"].concat("payload").concat("schedules").concat(__i_2998).concat("lastRunPersonalityName") });
46277
+ }
46278
+ }
46279
+ }
46280
+ if (__o_2999["lastRunProvider"] !== undefined) {
46281
+ if (__o_2999["lastRunProvider"] !== null) {
46282
+ if (typeof __o_2999["lastRunProvider"] !== "string") {
46283
+ _e.push({ code: "invalid_type", expected: "string", input: __o_2999["lastRunProvider"], path: ["message"].concat("payload").concat("schedules").concat(__i_2998).concat("lastRunProvider") });
46284
+ }
46285
+ }
46286
+ }
46287
+ if (__o_2999["lastRunModel"] !== undefined) {
46288
+ if (__o_2999["lastRunModel"] !== null) {
46289
+ if (typeof __o_2999["lastRunModel"] !== "string") {
46290
+ _e.push({ code: "invalid_type", expected: "string", input: __o_2999["lastRunModel"], path: ["message"].concat("payload").concat("schedules").concat(__i_2998).concat("lastRunModel") });
46291
+ }
46292
+ }
46293
+ }
46245
46294
  if (__o_2999["pausedAt"] !== null) {
46246
46295
  if (typeof __o_2999["pausedAt"] !== "string") {
46247
46296
  _e.push({ code: "invalid_type", expected: "string", input: __o_2999["pausedAt"], path: ["message"].concat("payload").concat("schedules").concat(__i_2998).concat("pausedAt") });
@@ -46662,6 +46711,27 @@ export const WSOutboundMessageSchema = /* @__PURE__ */ (() => {
46662
46711
  }
46663
46712
  }
46664
46713
  }
46714
+ if (__o_3026["lastRunPersonalityName"] !== undefined) {
46715
+ if (__o_3026["lastRunPersonalityName"] !== null) {
46716
+ if (typeof __o_3026["lastRunPersonalityName"] !== "string") {
46717
+ _e.push({ code: "invalid_type", expected: "string", input: __o_3026["lastRunPersonalityName"], path: ["message"].concat("payload").concat("schedule").concat("lastRunPersonalityName") });
46718
+ }
46719
+ }
46720
+ }
46721
+ if (__o_3026["lastRunProvider"] !== undefined) {
46722
+ if (__o_3026["lastRunProvider"] !== null) {
46723
+ if (typeof __o_3026["lastRunProvider"] !== "string") {
46724
+ _e.push({ code: "invalid_type", expected: "string", input: __o_3026["lastRunProvider"], path: ["message"].concat("payload").concat("schedule").concat("lastRunProvider") });
46725
+ }
46726
+ }
46727
+ }
46728
+ if (__o_3026["lastRunModel"] !== undefined) {
46729
+ if (__o_3026["lastRunModel"] !== null) {
46730
+ if (typeof __o_3026["lastRunModel"] !== "string") {
46731
+ _e.push({ code: "invalid_type", expected: "string", input: __o_3026["lastRunModel"], path: ["message"].concat("payload").concat("schedule").concat("lastRunModel") });
46732
+ }
46733
+ }
46734
+ }
46665
46735
  if (__o_3026["pausedAt"] !== null) {
46666
46736
  if (typeof __o_3026["pausedAt"] !== "string") {
46667
46737
  _e.push({ code: "invalid_type", expected: "string", input: __o_3026["pausedAt"], path: ["message"].concat("payload").concat("schedule").concat("pausedAt") });
@@ -46735,6 +46805,27 @@ export const WSOutboundMessageSchema = /* @__PURE__ */ (() => {
46735
46805
  }
46736
46806
  }
46737
46807
  }
46808
+ if (__o_3052["personalityName"] !== undefined) {
46809
+ if (__o_3052["personalityName"] !== null) {
46810
+ if (typeof __o_3052["personalityName"] !== "string") {
46811
+ _e.push({ code: "invalid_type", expected: "string", input: __o_3052["personalityName"], path: ["message"].concat("payload").concat("schedule").concat("runs").concat(__i_3051).concat("personalityName") });
46812
+ }
46813
+ }
46814
+ }
46815
+ if (__o_3052["provider"] !== undefined) {
46816
+ if (__o_3052["provider"] !== null) {
46817
+ if (typeof __o_3052["provider"] !== "string") {
46818
+ _e.push({ code: "invalid_type", expected: "string", input: __o_3052["provider"], path: ["message"].concat("payload").concat("schedule").concat("runs").concat(__i_3051).concat("provider") });
46819
+ }
46820
+ }
46821
+ }
46822
+ if (__o_3052["model"] !== undefined) {
46823
+ if (__o_3052["model"] !== null) {
46824
+ if (typeof __o_3052["model"] !== "string") {
46825
+ _e.push({ code: "invalid_type", expected: "string", input: __o_3052["model"], path: ["message"].concat("payload").concat("schedule").concat("runs").concat(__i_3051).concat("model") });
46826
+ }
46827
+ }
46828
+ }
46738
46829
  if (__o_3052["output"] !== null) {
46739
46830
  if (typeof __o_3052["output"] !== "string") {
46740
46831
  _e.push({ code: "invalid_type", expected: "string", input: __o_3052["output"], path: ["message"].concat("payload").concat("schedule").concat("runs").concat(__i_3051).concat("output") });
@@ -46820,6 +46911,27 @@ export const WSOutboundMessageSchema = /* @__PURE__ */ (() => {
46820
46911
  }
46821
46912
  }
46822
46913
  }
46914
+ if (__o_3056["personalityName"] !== undefined) {
46915
+ if (__o_3056["personalityName"] !== null) {
46916
+ if (typeof __o_3056["personalityName"] !== "string") {
46917
+ _e.push({ code: "invalid_type", expected: "string", input: __o_3056["personalityName"], path: ["message"].concat("payload").concat("runs").concat(__i_3055).concat("personalityName") });
46918
+ }
46919
+ }
46920
+ }
46921
+ if (__o_3056["provider"] !== undefined) {
46922
+ if (__o_3056["provider"] !== null) {
46923
+ if (typeof __o_3056["provider"] !== "string") {
46924
+ _e.push({ code: "invalid_type", expected: "string", input: __o_3056["provider"], path: ["message"].concat("payload").concat("runs").concat(__i_3055).concat("provider") });
46925
+ }
46926
+ }
46927
+ }
46928
+ if (__o_3056["model"] !== undefined) {
46929
+ if (__o_3056["model"] !== null) {
46930
+ if (typeof __o_3056["model"] !== "string") {
46931
+ _e.push({ code: "invalid_type", expected: "string", input: __o_3056["model"], path: ["message"].concat("payload").concat("runs").concat(__i_3055).concat("model") });
46932
+ }
46933
+ }
46934
+ }
46823
46935
  if (__o_3056["output"] !== null) {
46824
46936
  if (typeof __o_3056["output"] !== "string") {
46825
46937
  _e.push({ code: "invalid_type", expected: "string", input: __o_3056["output"], path: ["message"].concat("payload").concat("runs").concat(__i_3055).concat("output") });
@@ -47221,6 +47333,27 @@ export const WSOutboundMessageSchema = /* @__PURE__ */ (() => {
47221
47333
  }
47222
47334
  }
47223
47335
  }
47336
+ if (__o_3059["lastRunPersonalityName"] !== undefined) {
47337
+ if (__o_3059["lastRunPersonalityName"] !== null) {
47338
+ if (typeof __o_3059["lastRunPersonalityName"] !== "string") {
47339
+ _e.push({ code: "invalid_type", expected: "string", input: __o_3059["lastRunPersonalityName"], path: ["message"].concat("payload").concat("schedule").concat("lastRunPersonalityName") });
47340
+ }
47341
+ }
47342
+ }
47343
+ if (__o_3059["lastRunProvider"] !== undefined) {
47344
+ if (__o_3059["lastRunProvider"] !== null) {
47345
+ if (typeof __o_3059["lastRunProvider"] !== "string") {
47346
+ _e.push({ code: "invalid_type", expected: "string", input: __o_3059["lastRunProvider"], path: ["message"].concat("payload").concat("schedule").concat("lastRunProvider") });
47347
+ }
47348
+ }
47349
+ }
47350
+ if (__o_3059["lastRunModel"] !== undefined) {
47351
+ if (__o_3059["lastRunModel"] !== null) {
47352
+ if (typeof __o_3059["lastRunModel"] !== "string") {
47353
+ _e.push({ code: "invalid_type", expected: "string", input: __o_3059["lastRunModel"], path: ["message"].concat("payload").concat("schedule").concat("lastRunModel") });
47354
+ }
47355
+ }
47356
+ }
47224
47357
  if (__o_3059["pausedAt"] !== null) {
47225
47358
  if (typeof __o_3059["pausedAt"] !== "string") {
47226
47359
  _e.push({ code: "invalid_type", expected: "string", input: __o_3059["pausedAt"], path: ["message"].concat("payload").concat("schedule").concat("pausedAt") });
@@ -47640,6 +47773,27 @@ export const WSOutboundMessageSchema = /* @__PURE__ */ (() => {
47640
47773
  }
47641
47774
  }
47642
47775
  }
47776
+ if (__o_3086["lastRunPersonalityName"] !== undefined) {
47777
+ if (__o_3086["lastRunPersonalityName"] !== null) {
47778
+ if (typeof __o_3086["lastRunPersonalityName"] !== "string") {
47779
+ _e.push({ code: "invalid_type", expected: "string", input: __o_3086["lastRunPersonalityName"], path: ["message"].concat("payload").concat("schedule").concat("lastRunPersonalityName") });
47780
+ }
47781
+ }
47782
+ }
47783
+ if (__o_3086["lastRunProvider"] !== undefined) {
47784
+ if (__o_3086["lastRunProvider"] !== null) {
47785
+ if (typeof __o_3086["lastRunProvider"] !== "string") {
47786
+ _e.push({ code: "invalid_type", expected: "string", input: __o_3086["lastRunProvider"], path: ["message"].concat("payload").concat("schedule").concat("lastRunProvider") });
47787
+ }
47788
+ }
47789
+ }
47790
+ if (__o_3086["lastRunModel"] !== undefined) {
47791
+ if (__o_3086["lastRunModel"] !== null) {
47792
+ if (typeof __o_3086["lastRunModel"] !== "string") {
47793
+ _e.push({ code: "invalid_type", expected: "string", input: __o_3086["lastRunModel"], path: ["message"].concat("payload").concat("schedule").concat("lastRunModel") });
47794
+ }
47795
+ }
47796
+ }
47643
47797
  if (__o_3086["pausedAt"] !== null) {
47644
47798
  if (typeof __o_3086["pausedAt"] !== "string") {
47645
47799
  _e.push({ code: "invalid_type", expected: "string", input: __o_3086["pausedAt"], path: ["message"].concat("payload").concat("schedule").concat("pausedAt") });
@@ -48088,6 +48242,27 @@ export const WSOutboundMessageSchema = /* @__PURE__ */ (() => {
48088
48242
  }
48089
48243
  }
48090
48244
  }
48245
+ if (__o_3115["lastRunPersonalityName"] !== undefined) {
48246
+ if (__o_3115["lastRunPersonalityName"] !== null) {
48247
+ if (typeof __o_3115["lastRunPersonalityName"] !== "string") {
48248
+ _e.push({ code: "invalid_type", expected: "string", input: __o_3115["lastRunPersonalityName"], path: ["message"].concat("payload").concat("schedule").concat("lastRunPersonalityName") });
48249
+ }
48250
+ }
48251
+ }
48252
+ if (__o_3115["lastRunProvider"] !== undefined) {
48253
+ if (__o_3115["lastRunProvider"] !== null) {
48254
+ if (typeof __o_3115["lastRunProvider"] !== "string") {
48255
+ _e.push({ code: "invalid_type", expected: "string", input: __o_3115["lastRunProvider"], path: ["message"].concat("payload").concat("schedule").concat("lastRunProvider") });
48256
+ }
48257
+ }
48258
+ }
48259
+ if (__o_3115["lastRunModel"] !== undefined) {
48260
+ if (__o_3115["lastRunModel"] !== null) {
48261
+ if (typeof __o_3115["lastRunModel"] !== "string") {
48262
+ _e.push({ code: "invalid_type", expected: "string", input: __o_3115["lastRunModel"], path: ["message"].concat("payload").concat("schedule").concat("lastRunModel") });
48263
+ }
48264
+ }
48265
+ }
48091
48266
  if (__o_3115["pausedAt"] !== null) {
48092
48267
  if (typeof __o_3115["pausedAt"] !== "string") {
48093
48268
  _e.push({ code: "invalid_type", expected: "string", input: __o_3115["pausedAt"], path: ["message"].concat("payload").concat("schedule").concat("pausedAt") });
@@ -48161,6 +48336,27 @@ export const WSOutboundMessageSchema = /* @__PURE__ */ (() => {
48161
48336
  }
48162
48337
  }
48163
48338
  }
48339
+ if (__o_3141["personalityName"] !== undefined) {
48340
+ if (__o_3141["personalityName"] !== null) {
48341
+ if (typeof __o_3141["personalityName"] !== "string") {
48342
+ _e.push({ code: "invalid_type", expected: "string", input: __o_3141["personalityName"], path: ["message"].concat("payload").concat("schedule").concat("runs").concat(__i_3140).concat("personalityName") });
48343
+ }
48344
+ }
48345
+ }
48346
+ if (__o_3141["provider"] !== undefined) {
48347
+ if (__o_3141["provider"] !== null) {
48348
+ if (typeof __o_3141["provider"] !== "string") {
48349
+ _e.push({ code: "invalid_type", expected: "string", input: __o_3141["provider"], path: ["message"].concat("payload").concat("schedule").concat("runs").concat(__i_3140).concat("provider") });
48350
+ }
48351
+ }
48352
+ }
48353
+ if (__o_3141["model"] !== undefined) {
48354
+ if (__o_3141["model"] !== null) {
48355
+ if (typeof __o_3141["model"] !== "string") {
48356
+ _e.push({ code: "invalid_type", expected: "string", input: __o_3141["model"], path: ["message"].concat("payload").concat("schedule").concat("runs").concat(__i_3140).concat("model") });
48357
+ }
48358
+ }
48359
+ }
48164
48360
  if (__o_3141["output"] !== null) {
48165
48361
  if (typeof __o_3141["output"] !== "string") {
48166
48362
  _e.push({ code: "invalid_type", expected: "string", input: __o_3141["output"], path: ["message"].concat("payload").concat("schedule").concat("runs").concat(__i_3140).concat("output") });
@@ -48564,6 +48760,27 @@ export const WSOutboundMessageSchema = /* @__PURE__ */ (() => {
48564
48760
  }
48565
48761
  }
48566
48762
  }
48763
+ if (__o_3144["lastRunPersonalityName"] !== undefined) {
48764
+ if (__o_3144["lastRunPersonalityName"] !== null) {
48765
+ if (typeof __o_3144["lastRunPersonalityName"] !== "string") {
48766
+ _e.push({ code: "invalid_type", expected: "string", input: __o_3144["lastRunPersonalityName"], path: ["message"].concat("payload").concat("schedule").concat("lastRunPersonalityName") });
48767
+ }
48768
+ }
48769
+ }
48770
+ if (__o_3144["lastRunProvider"] !== undefined) {
48771
+ if (__o_3144["lastRunProvider"] !== null) {
48772
+ if (typeof __o_3144["lastRunProvider"] !== "string") {
48773
+ _e.push({ code: "invalid_type", expected: "string", input: __o_3144["lastRunProvider"], path: ["message"].concat("payload").concat("schedule").concat("lastRunProvider") });
48774
+ }
48775
+ }
48776
+ }
48777
+ if (__o_3144["lastRunModel"] !== undefined) {
48778
+ if (__o_3144["lastRunModel"] !== null) {
48779
+ if (typeof __o_3144["lastRunModel"] !== "string") {
48780
+ _e.push({ code: "invalid_type", expected: "string", input: __o_3144["lastRunModel"], path: ["message"].concat("payload").concat("schedule").concat("lastRunModel") });
48781
+ }
48782
+ }
48783
+ }
48567
48784
  if (__o_3144["pausedAt"] !== null) {
48568
48785
  if (typeof __o_3144["pausedAt"] !== "string") {
48569
48786
  _e.push({ code: "invalid_type", expected: "string", input: __o_3144["pausedAt"], path: ["message"].concat("payload").concat("schedule").concat("pausedAt") });
@@ -48637,6 +48854,27 @@ export const WSOutboundMessageSchema = /* @__PURE__ */ (() => {
48637
48854
  }
48638
48855
  }
48639
48856
  }
48857
+ if (__o_3170["personalityName"] !== undefined) {
48858
+ if (__o_3170["personalityName"] !== null) {
48859
+ if (typeof __o_3170["personalityName"] !== "string") {
48860
+ _e.push({ code: "invalid_type", expected: "string", input: __o_3170["personalityName"], path: ["message"].concat("payload").concat("schedule").concat("runs").concat(__i_3169).concat("personalityName") });
48861
+ }
48862
+ }
48863
+ }
48864
+ if (__o_3170["provider"] !== undefined) {
48865
+ if (__o_3170["provider"] !== null) {
48866
+ if (typeof __o_3170["provider"] !== "string") {
48867
+ _e.push({ code: "invalid_type", expected: "string", input: __o_3170["provider"], path: ["message"].concat("payload").concat("schedule").concat("runs").concat(__i_3169).concat("provider") });
48868
+ }
48869
+ }
48870
+ }
48871
+ if (__o_3170["model"] !== undefined) {
48872
+ if (__o_3170["model"] !== null) {
48873
+ if (typeof __o_3170["model"] !== "string") {
48874
+ _e.push({ code: "invalid_type", expected: "string", input: __o_3170["model"], path: ["message"].concat("payload").concat("schedule").concat("runs").concat(__i_3169).concat("model") });
48875
+ }
48876
+ }
48877
+ }
48640
48878
  if (__o_3170["output"] !== null) {
48641
48879
  if (typeof __o_3170["output"] !== "string") {
48642
48880
  _e.push({ code: "invalid_type", expected: "string", input: __o_3170["output"], path: ["message"].concat("payload").concat("schedule").concat("runs").concat(__i_3169).concat("output") });
@@ -50717,6 +50955,13 @@ export const WSOutboundMessageSchema = /* @__PURE__ */ (() => {
50717
50955
  }
50718
50956
  }
50719
50957
  }
50958
+ if (__o_3243["generationPersonalityName"] !== undefined) {
50959
+ if (__o_3243["generationPersonalityName"] !== null) {
50960
+ if (typeof __o_3243["generationPersonalityName"] !== "string") {
50961
+ _e.push({ code: "invalid_type", expected: "string", input: __o_3243["generationPersonalityName"], path: ["message"].concat("payload").concat("artifacts").concat(__i_3242).concat("generationPersonalityName") });
50962
+ }
50963
+ }
50964
+ }
50720
50965
  if (__o_3243["errorMessage"] !== null) {
50721
50966
  if (typeof __o_3243["errorMessage"] !== "string") {
50722
50967
  _e.push({ code: "invalid_type", expected: "string", input: __o_3243["errorMessage"], path: ["message"].concat("payload").concat("artifacts").concat(__i_3242).concat("errorMessage") });
@@ -50844,6 +51089,13 @@ export const WSOutboundMessageSchema = /* @__PURE__ */ (() => {
50844
51089
  }
50845
51090
  }
50846
51091
  }
51092
+ if (__o_3247["generationPersonalityName"] !== undefined) {
51093
+ if (__o_3247["generationPersonalityName"] !== null) {
51094
+ if (typeof __o_3247["generationPersonalityName"] !== "string") {
51095
+ _e.push({ code: "invalid_type", expected: "string", input: __o_3247["generationPersonalityName"], path: ["message"].concat("payload").concat("artifact").concat("generationPersonalityName") });
51096
+ }
51097
+ }
51098
+ }
50847
51099
  if (__o_3247["errorMessage"] !== null) {
50848
51100
  if (typeof __o_3247["errorMessage"] !== "string") {
50849
51101
  _e.push({ code: "invalid_type", expected: "string", input: __o_3247["errorMessage"], path: ["message"].concat("payload").concat("artifact").concat("errorMessage") });
@@ -50969,6 +51221,13 @@ export const WSOutboundMessageSchema = /* @__PURE__ */ (() => {
50969
51221
  }
50970
51222
  }
50971
51223
  }
51224
+ if (__o_3251["generationPersonalityName"] !== undefined) {
51225
+ if (__o_3251["generationPersonalityName"] !== null) {
51226
+ if (typeof __o_3251["generationPersonalityName"] !== "string") {
51227
+ _e.push({ code: "invalid_type", expected: "string", input: __o_3251["generationPersonalityName"], path: ["message"].concat("payload").concat("artifact").concat("generationPersonalityName") });
51228
+ }
51229
+ }
51230
+ }
50972
51231
  if (__o_3251["errorMessage"] !== null) {
50973
51232
  if (typeof __o_3251["errorMessage"] !== "string") {
50974
51233
  _e.push({ code: "invalid_type", expected: "string", input: __o_3251["errorMessage"], path: ["message"].concat("payload").concat("artifact").concat("errorMessage") });
@@ -51094,6 +51353,13 @@ export const WSOutboundMessageSchema = /* @__PURE__ */ (() => {
51094
51353
  }
51095
51354
  }
51096
51355
  }
51356
+ if (__o_3255["generationPersonalityName"] !== undefined) {
51357
+ if (__o_3255["generationPersonalityName"] !== null) {
51358
+ if (typeof __o_3255["generationPersonalityName"] !== "string") {
51359
+ _e.push({ code: "invalid_type", expected: "string", input: __o_3255["generationPersonalityName"], path: ["message"].concat("payload").concat("artifact").concat("generationPersonalityName") });
51360
+ }
51361
+ }
51362
+ }
51097
51363
  if (__o_3255["errorMessage"] !== null) {
51098
51364
  if (typeof __o_3255["errorMessage"] !== "string") {
51099
51365
  _e.push({ code: "invalid_type", expected: "string", input: __o_3255["errorMessage"], path: ["message"].concat("payload").concat("artifact").concat("errorMessage") });
@@ -51219,6 +51485,13 @@ export const WSOutboundMessageSchema = /* @__PURE__ */ (() => {
51219
51485
  }
51220
51486
  }
51221
51487
  }
51488
+ if (__o_3259["generationPersonalityName"] !== undefined) {
51489
+ if (__o_3259["generationPersonalityName"] !== null) {
51490
+ if (typeof __o_3259["generationPersonalityName"] !== "string") {
51491
+ _e.push({ code: "invalid_type", expected: "string", input: __o_3259["generationPersonalityName"], path: ["message"].concat("payload").concat("artifact").concat("generationPersonalityName") });
51492
+ }
51493
+ }
51494
+ }
51222
51495
  if (__o_3259["errorMessage"] !== null) {
51223
51496
  if (typeof __o_3259["errorMessage"] !== "string") {
51224
51497
  _e.push({ code: "invalid_type", expected: "string", input: __o_3259["errorMessage"], path: ["message"].concat("payload").concat("artifact").concat("errorMessage") });
@@ -51373,6 +51646,13 @@ export const WSOutboundMessageSchema = /* @__PURE__ */ (() => {
51373
51646
  }
51374
51647
  }
51375
51648
  }
51649
+ if (__o_3265["generationPersonalityName"] !== undefined) {
51650
+ if (__o_3265["generationPersonalityName"] !== null) {
51651
+ if (typeof __o_3265["generationPersonalityName"] !== "string") {
51652
+ _e.push({ code: "invalid_type", expected: "string", input: __o_3265["generationPersonalityName"], path: ["message"].concat("payload").concat("artifact").concat("generationPersonalityName") });
51653
+ }
51654
+ }
51655
+ }
51376
51656
  if (__o_3265["errorMessage"] !== null) {
51377
51657
  if (typeof __o_3265["errorMessage"] !== "string") {
51378
51658
  _e.push({ code: "invalid_type", expected: "string", input: __o_3265["errorMessage"], path: ["message"].concat("payload").concat("artifact").concat("errorMessage") });
@@ -51530,6 +51810,13 @@ export const WSOutboundMessageSchema = /* @__PURE__ */ (() => {
51530
51810
  }
51531
51811
  }
51532
51812
  }
51813
+ if (__o_3271["generationPersonalityName"] !== undefined) {
51814
+ if (__o_3271["generationPersonalityName"] !== null) {
51815
+ if (typeof __o_3271["generationPersonalityName"] !== "string") {
51816
+ _e.push({ code: "invalid_type", expected: "string", input: __o_3271["generationPersonalityName"], path: ["message"].concat("payload").concat("artifact").concat("generationPersonalityName") });
51817
+ }
51818
+ }
51819
+ }
51533
51820
  if (__o_3271["errorMessage"] !== null) {
51534
51821
  if (typeof __o_3271["errorMessage"] !== "string") {
51535
51822
  _e.push({ code: "invalid_type", expected: "string", input: __o_3271["errorMessage"], path: ["message"].concat("payload").concat("artifact").concat("errorMessage") });
@@ -51644,6 +51931,13 @@ export const WSOutboundMessageSchema = /* @__PURE__ */ (() => {
51644
51931
  }
51645
51932
  }
51646
51933
  }
51934
+ if (__o_3275["generationPersonalityName"] !== undefined) {
51935
+ if (__o_3275["generationPersonalityName"] !== null) {
51936
+ if (typeof __o_3275["generationPersonalityName"] !== "string") {
51937
+ _e.push({ code: "invalid_type", expected: "string", input: __o_3275["generationPersonalityName"], path: ["message"].concat("payload").concat("artifact").concat("generationPersonalityName") });
51938
+ }
51939
+ }
51940
+ }
51647
51941
  if (__o_3275["errorMessage"] !== null) {
51648
51942
  if (typeof __o_3275["errorMessage"] !== "string") {
51649
51943
  _e.push({ code: "invalid_type", expected: "string", input: __o_3275["errorMessage"], path: ["message"].concat("payload").concat("artifact").concat("errorMessage") });