@otto-code/protocol 0.5.4 → 0.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/artifacts/rpc-schemas.d.ts +9 -0
- package/dist/artifacts/rpc-schemas.js +3 -0
- package/dist/artifacts/types.d.ts +9 -0
- package/dist/artifacts/types.js +11 -1
- package/dist/default-personalities.js +1 -1
- package/dist/generated/validation/ws-outbound.aot.js +11599 -10907
- package/dist/messages.d.ts +679 -0
- package/dist/messages.js +154 -5
- package/dist/schedule/rpc-schemas.d.ts +33 -0
- package/dist/schedule/types.d.ts +12 -0
- package/dist/schedule/types.js +15 -0
- package/dist/validation/ws-outbound-schema-metadata.d.ts +127 -0
- package/package.json +1 -1
|
@@ -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
|
package/dist/artifacts/types.js
CHANGED
|
@@ -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
|
|
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
|
|
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".
|