@otto-code/protocol 0.9.0 → 0.9.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.
- package/dist/agent-labels.d.ts +9 -0
- package/dist/agent-labels.js +16 -0
- package/dist/agent-rate-limit.d.ts +13 -0
- package/dist/agent-rate-limit.js +18 -0
- package/dist/agent-types.d.ts +6 -0
- package/dist/architectural-views/rpc-schemas.d.ts +123 -0
- package/dist/architectural-views/rpc-schemas.js +34 -0
- package/dist/brain.d.ts +3 -3
- package/dist/browser-automation/capabilities.d.ts +1 -1
- package/dist/browser-automation/rpc-schemas.d.ts +16 -16
- package/dist/code-intelligence.d.ts +5 -5
- package/dist/file-operations.d.ts +1 -1
- package/dist/generated/validation/ws-outbound.aot.js +70849 -70487
- package/dist/loop/rpc-schemas.d.ts +6 -6
- package/dist/messages.d.ts +771 -421
- package/dist/messages.js +42 -103
- package/dist/model-preferences.d.ts +26 -0
- package/dist/model-preferences.js +47 -0
- package/dist/personality-schemas.d.ts +4 -4
- package/dist/project-knowledge.d.ts +38 -16
- package/dist/project-knowledge.js +17 -1
- package/dist/schedule/rpc-schemas.d.ts +12 -12
- package/dist/schedule/types.d.ts +3 -3
- package/dist/suggested-tasks.d.ts +7 -3
- package/dist/suggested-tasks.js +2 -0
- package/dist/validation/ws-outbound-schema-metadata.d.ts +165 -72
- package/dist/websocket-control.d.ts +39 -0
- package/dist/websocket-control.js +36 -0
- package/package.json +1 -1
|
@@ -127,14 +127,14 @@ export declare const ScheduleCreateResponseSchema: z.ZodObject<{
|
|
|
127
127
|
schedule: z.ZodNullable<z.ZodObject<{
|
|
128
128
|
prompt: z.ZodString;
|
|
129
129
|
name: z.ZodNullable<z.ZodString>;
|
|
130
|
-
id: z.ZodString;
|
|
131
|
-
createdAt: z.ZodString;
|
|
132
|
-
updatedAt: z.ZodString;
|
|
133
130
|
status: z.ZodEnum<{
|
|
134
131
|
completed: "completed";
|
|
135
132
|
active: "active";
|
|
136
133
|
paused: "paused";
|
|
137
134
|
}>;
|
|
135
|
+
id: z.ZodString;
|
|
136
|
+
createdAt: z.ZodString;
|
|
137
|
+
updatedAt: z.ZodString;
|
|
138
138
|
expiresAt: z.ZodNullable<z.ZodString>;
|
|
139
139
|
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
140
140
|
type: z.ZodLiteral<"agent">;
|
|
@@ -204,14 +204,14 @@ export declare const ScheduleListResponseSchema: z.ZodObject<{
|
|
|
204
204
|
schedules: z.ZodArray<z.ZodObject<{
|
|
205
205
|
prompt: z.ZodString;
|
|
206
206
|
name: z.ZodNullable<z.ZodString>;
|
|
207
|
-
id: z.ZodString;
|
|
208
|
-
createdAt: z.ZodString;
|
|
209
|
-
updatedAt: z.ZodString;
|
|
210
207
|
status: z.ZodEnum<{
|
|
211
208
|
completed: "completed";
|
|
212
209
|
active: "active";
|
|
213
210
|
paused: "paused";
|
|
214
211
|
}>;
|
|
212
|
+
id: z.ZodString;
|
|
213
|
+
createdAt: z.ZodString;
|
|
214
|
+
updatedAt: z.ZodString;
|
|
215
215
|
expiresAt: z.ZodNullable<z.ZodString>;
|
|
216
216
|
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
217
217
|
type: z.ZodLiteral<"agent">;
|
|
@@ -491,14 +491,14 @@ export declare const SchedulePauseResponseSchema: z.ZodObject<{
|
|
|
491
491
|
schedule: z.ZodNullable<z.ZodObject<{
|
|
492
492
|
prompt: z.ZodString;
|
|
493
493
|
name: z.ZodNullable<z.ZodString>;
|
|
494
|
-
id: z.ZodString;
|
|
495
|
-
createdAt: z.ZodString;
|
|
496
|
-
updatedAt: z.ZodString;
|
|
497
494
|
status: z.ZodEnum<{
|
|
498
495
|
completed: "completed";
|
|
499
496
|
active: "active";
|
|
500
497
|
paused: "paused";
|
|
501
498
|
}>;
|
|
499
|
+
id: z.ZodString;
|
|
500
|
+
createdAt: z.ZodString;
|
|
501
|
+
updatedAt: z.ZodString;
|
|
502
502
|
expiresAt: z.ZodNullable<z.ZodString>;
|
|
503
503
|
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
504
504
|
type: z.ZodLiteral<"agent">;
|
|
@@ -568,14 +568,14 @@ export declare const ScheduleResumeResponseSchema: z.ZodObject<{
|
|
|
568
568
|
schedule: z.ZodNullable<z.ZodObject<{
|
|
569
569
|
prompt: z.ZodString;
|
|
570
570
|
name: z.ZodNullable<z.ZodString>;
|
|
571
|
-
id: z.ZodString;
|
|
572
|
-
createdAt: z.ZodString;
|
|
573
|
-
updatedAt: z.ZodString;
|
|
574
571
|
status: z.ZodEnum<{
|
|
575
572
|
completed: "completed";
|
|
576
573
|
active: "active";
|
|
577
574
|
paused: "paused";
|
|
578
575
|
}>;
|
|
576
|
+
id: z.ZodString;
|
|
577
|
+
createdAt: z.ZodString;
|
|
578
|
+
updatedAt: z.ZodString;
|
|
579
579
|
expiresAt: z.ZodNullable<z.ZodString>;
|
|
580
580
|
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
581
581
|
type: z.ZodLiteral<"agent">;
|
package/dist/schedule/types.d.ts
CHANGED
|
@@ -253,14 +253,14 @@ export type StoredSchedule = z.infer<typeof StoredScheduleSchema>;
|
|
|
253
253
|
export declare const ScheduleSummarySchema: z.ZodObject<{
|
|
254
254
|
prompt: z.ZodString;
|
|
255
255
|
name: z.ZodNullable<z.ZodString>;
|
|
256
|
-
id: z.ZodString;
|
|
257
|
-
createdAt: z.ZodString;
|
|
258
|
-
updatedAt: z.ZodString;
|
|
259
256
|
status: z.ZodEnum<{
|
|
260
257
|
completed: "completed";
|
|
261
258
|
active: "active";
|
|
262
259
|
paused: "paused";
|
|
263
260
|
}>;
|
|
261
|
+
id: z.ZodString;
|
|
262
|
+
createdAt: z.ZodString;
|
|
263
|
+
updatedAt: z.ZodString;
|
|
264
264
|
expiresAt: z.ZodNullable<z.ZodString>;
|
|
265
265
|
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
266
266
|
type: z.ZodLiteral<"agent">;
|
|
@@ -3,9 +3,9 @@ import { z } from "zod";
|
|
|
3
3
|
* Otto suggested-task wire schemas: the tasks.suggested.* start and dismiss RPCs and the suggested-task payloads. Fork-only capability, so it owns its schemas; messages.ts re-exports them.
|
|
4
4
|
*/
|
|
5
5
|
export declare const SuggestedTaskStateSchema: z.ZodEnum<{
|
|
6
|
+
dismissed: "dismissed";
|
|
6
7
|
pending: "pending";
|
|
7
8
|
started: "started";
|
|
8
|
-
dismissed: "dismissed";
|
|
9
9
|
}>;
|
|
10
10
|
export declare const SuggestedTaskInfoSchema: z.ZodObject<{
|
|
11
11
|
taskId: z.ZodString;
|
|
@@ -14,9 +14,9 @@ export declare const SuggestedTaskInfoSchema: z.ZodObject<{
|
|
|
14
14
|
tldr: z.ZodString;
|
|
15
15
|
cwd: z.ZodOptional<z.ZodString>;
|
|
16
16
|
state: z.ZodEnum<{
|
|
17
|
+
dismissed: "dismissed";
|
|
17
18
|
pending: "pending";
|
|
18
19
|
started: "started";
|
|
19
|
-
dismissed: "dismissed";
|
|
20
20
|
}>;
|
|
21
21
|
createdAt: z.ZodString;
|
|
22
22
|
updatedAt: z.ZodString;
|
|
@@ -32,9 +32,9 @@ export declare const SuggestedTasksChangedSchema: z.ZodObject<{
|
|
|
32
32
|
tldr: z.ZodString;
|
|
33
33
|
cwd: z.ZodOptional<z.ZodString>;
|
|
34
34
|
state: z.ZodEnum<{
|
|
35
|
+
dismissed: "dismissed";
|
|
35
36
|
pending: "pending";
|
|
36
37
|
started: "started";
|
|
37
|
-
dismissed: "dismissed";
|
|
38
38
|
}>;
|
|
39
39
|
createdAt: z.ZodString;
|
|
40
40
|
updatedAt: z.ZodString;
|
|
@@ -65,6 +65,10 @@ export declare const TasksSuggestedStartRequestMessageSchema: z.ZodObject<{
|
|
|
65
65
|
subagent: "subagent";
|
|
66
66
|
in_session: "in_session";
|
|
67
67
|
}>;
|
|
68
|
+
launch: z.ZodOptional<z.ZodObject<{
|
|
69
|
+
provider: z.ZodString;
|
|
70
|
+
model: z.ZodString;
|
|
71
|
+
}, z.core.$strip>>;
|
|
68
72
|
requestId: z.ZodString;
|
|
69
73
|
}, z.core.$strip>;
|
|
70
74
|
export declare const TasksSuggestedStartResponseMessageSchema: z.ZodObject<{
|
package/dist/suggested-tasks.js
CHANGED
|
@@ -62,6 +62,8 @@ export const TasksSuggestedStartRequestMessageSchema = z.object({
|
|
|
62
62
|
parentAgentId: z.string(),
|
|
63
63
|
taskIds: z.array(z.string()),
|
|
64
64
|
mode: TasksSuggestedStartModeSchema,
|
|
65
|
+
// Omitted by older clients, which retain the source chat's configuration.
|
|
66
|
+
launch: z.object({ provider: z.string(), model: z.string() }).optional(),
|
|
65
67
|
requestId: z.string(),
|
|
66
68
|
});
|
|
67
69
|
export const TasksSuggestedStartResponseMessageSchema = z.object({
|