@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
package/dist/agent-labels.d.ts
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
export declare const PARENT_AGENT_ID_LABEL = "otto.parent-agent-id";
|
|
2
|
+
/** Stamped only by the daemon for a chat that owns an unpublished Architectural View draft. */
|
|
3
|
+
export declare const ARCHITECTURAL_VIEW_AUTHORING_LABEL = "otto.architectural-view-authoring";
|
|
4
|
+
export declare const ARCHITECTURAL_VIEW_ID_LABEL = "otto.architectural-view-id";
|
|
5
|
+
export declare const ARCHITECTURAL_VIEW_DRAFT_ID_LABEL = "otto.architectural-view-draft-id";
|
|
6
|
+
export interface ArchitecturalViewAuthoringLabels {
|
|
7
|
+
viewId: string;
|
|
8
|
+
draftId: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function getArchitecturalViewAuthoringLabels(labels: Record<string, unknown> | null | undefined): ArchitecturalViewAuthoringLabels | null;
|
|
2
11
|
export declare function getOpenAgentTabLabel(clientId: string): string;
|
|
3
12
|
export declare function isOpenAgentTabLabel(label: string): boolean;
|
|
4
13
|
export interface AgentLabelSource {
|
package/dist/agent-labels.js
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
export const PARENT_AGENT_ID_LABEL = "otto.parent-agent-id";
|
|
2
|
+
/** Stamped only by the daemon for a chat that owns an unpublished Architectural View draft. */
|
|
3
|
+
export const ARCHITECTURAL_VIEW_AUTHORING_LABEL = "otto.architectural-view-authoring";
|
|
4
|
+
export const ARCHITECTURAL_VIEW_ID_LABEL = "otto.architectural-view-id";
|
|
5
|
+
export const ARCHITECTURAL_VIEW_DRAFT_ID_LABEL = "otto.architectural-view-draft-id";
|
|
2
6
|
const OPEN_AGENT_TAB_LABEL_PREFIX = "otto.open-agent-tab.";
|
|
7
|
+
export function getArchitecturalViewAuthoringLabels(labels) {
|
|
8
|
+
if (labels?.[ARCHITECTURAL_VIEW_AUTHORING_LABEL] !== "true")
|
|
9
|
+
return null;
|
|
10
|
+
const viewId = labels[ARCHITECTURAL_VIEW_ID_LABEL];
|
|
11
|
+
const draftId = labels[ARCHITECTURAL_VIEW_DRAFT_ID_LABEL];
|
|
12
|
+
return typeof viewId === "string" &&
|
|
13
|
+
viewId.trim() &&
|
|
14
|
+
typeof draftId === "string" &&
|
|
15
|
+
draftId.trim()
|
|
16
|
+
? { viewId: viewId.trim(), draftId: draftId.trim() }
|
|
17
|
+
: null;
|
|
18
|
+
}
|
|
3
19
|
export function getOpenAgentTabLabel(clientId) {
|
|
4
20
|
return `${OPEN_AGENT_TAB_LABEL_PREFIX}${clientId}`;
|
|
5
21
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const AgentRateLimitInfoSchema: z.ZodObject<{
|
|
3
|
+
status: z.ZodEnum<{
|
|
4
|
+
allowed: "allowed";
|
|
5
|
+
warning: "warning";
|
|
6
|
+
rejected: "rejected";
|
|
7
|
+
}>;
|
|
8
|
+
utilizationPercent: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
limitType: z.ZodOptional<z.ZodString>;
|
|
10
|
+
resetsAt: z.ZodOptional<z.ZodString>;
|
|
11
|
+
isUsingOverage: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
//# sourceMappingURL=agent-rate-limit.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
// Provider-reported plan rate-limit status (e.g. Claude claude.ai plan
|
|
3
|
+
// windows), pushed on the agent stream when it changes. Presentation-only:
|
|
4
|
+
// the app decides whether to show it (rateLimitWarningsEnabled setting).
|
|
5
|
+
export const AgentRateLimitInfoSchema = z.object({
|
|
6
|
+
status: z.enum(["allowed", "warning", "rejected"]),
|
|
7
|
+
// Percentage of the limit window used, 0-100. Absent when the provider
|
|
8
|
+
// does not report it (Claude only includes it near the limit).
|
|
9
|
+
utilizationPercent: z.number().optional(),
|
|
10
|
+
// Provider-reported window identifier, e.g. "five_hour" | "seven_day".
|
|
11
|
+
// Open set - display code falls back to a generic label for unknown values.
|
|
12
|
+
limitType: z.string().optional(),
|
|
13
|
+
// ISO 8601 timestamp when the window resets.
|
|
14
|
+
resetsAt: z.string().optional(),
|
|
15
|
+
// True when usage is currently drawing from overage/extra usage credits.
|
|
16
|
+
isUsingOverage: z.boolean().optional(),
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=agent-rate-limit.js.map
|
package/dist/agent-types.d.ts
CHANGED
|
@@ -388,11 +388,17 @@ export interface AgentTaskItem {
|
|
|
388
388
|
status?: "pending" | "in_progress" | "completed";
|
|
389
389
|
activeForm?: string;
|
|
390
390
|
}
|
|
391
|
+
/** A daemon-materialized user image. Timeline rows carry this reference, not bytes. */
|
|
392
|
+
export interface AgentTimelineImageAttachment {
|
|
393
|
+
path: string;
|
|
394
|
+
mimeType: string;
|
|
395
|
+
}
|
|
391
396
|
export type AgentTimelineItem = {
|
|
392
397
|
type: "user_message";
|
|
393
398
|
text: string;
|
|
394
399
|
messageId?: string;
|
|
395
400
|
clientMessageId?: string;
|
|
401
|
+
images?: AgentTimelineImageAttachment[];
|
|
396
402
|
} | {
|
|
397
403
|
type: "assistant_message";
|
|
398
404
|
text: string;
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const ArchitecturalViewIdSchema: z.ZodString;
|
|
3
|
+
export declare const ArchitecturalViewDiagramTypeSchema: z.ZodEnum<{
|
|
4
|
+
workflow: "workflow";
|
|
5
|
+
architecture: "architecture";
|
|
6
|
+
sequence: "sequence";
|
|
7
|
+
dataflow: "dataflow";
|
|
8
|
+
lifecycle: "lifecycle";
|
|
9
|
+
}>;
|
|
10
|
+
export type ArchitecturalViewDiagramType = z.infer<typeof ArchitecturalViewDiagramTypeSchema>;
|
|
3
11
|
export declare const ArchitecturalViewKnowledgeReferenceSchema: z.ZodObject<{
|
|
4
12
|
kind: z.ZodEnum<{
|
|
5
13
|
record: "record";
|
|
@@ -20,6 +28,13 @@ export declare const ArchitecturalViewsDeliverRequestSchema: z.ZodObject<{
|
|
|
20
28
|
id: z.ZodString;
|
|
21
29
|
}, z.core.$strip>>;
|
|
22
30
|
sourcePath: z.ZodString;
|
|
31
|
+
diagramType: z.ZodOptional<z.ZodEnum<{
|
|
32
|
+
workflow: "workflow";
|
|
33
|
+
architecture: "architecture";
|
|
34
|
+
sequence: "sequence";
|
|
35
|
+
dataflow: "dataflow";
|
|
36
|
+
lifecycle: "lifecycle";
|
|
37
|
+
}>>;
|
|
23
38
|
quality: z.ZodOptional<z.ZodEnum<{
|
|
24
39
|
standard: "standard";
|
|
25
40
|
showcase: "showcase";
|
|
@@ -56,6 +71,13 @@ export declare const ArchitecturalViewSummarySchema: z.ZodObject<{
|
|
|
56
71
|
}>;
|
|
57
72
|
htmlPath: z.ZodString;
|
|
58
73
|
renderedAt: z.ZodString;
|
|
74
|
+
diagramType: z.ZodOptional<z.ZodEnum<{
|
|
75
|
+
workflow: "workflow";
|
|
76
|
+
architecture: "architecture";
|
|
77
|
+
sequence: "sequence";
|
|
78
|
+
dataflow: "dataflow";
|
|
79
|
+
lifecycle: "lifecycle";
|
|
80
|
+
}>>;
|
|
59
81
|
sourceStatus: z.ZodOptional<z.ZodEnum<{
|
|
60
82
|
unknown: "unknown";
|
|
61
83
|
stale: "stale";
|
|
@@ -74,6 +96,13 @@ export declare const ArchitecturalViewDraftSchema: z.ZodObject<{
|
|
|
74
96
|
id: z.ZodString;
|
|
75
97
|
}, z.core.$strip>>;
|
|
76
98
|
baseSpecificationSha256: z.ZodNullable<z.ZodString>;
|
|
99
|
+
diagramType: z.ZodOptional<z.ZodEnum<{
|
|
100
|
+
workflow: "workflow";
|
|
101
|
+
architecture: "architecture";
|
|
102
|
+
sequence: "sequence";
|
|
103
|
+
dataflow: "dataflow";
|
|
104
|
+
lifecycle: "lifecycle";
|
|
105
|
+
}>>;
|
|
77
106
|
authoringAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
78
107
|
createdAt: z.ZodString;
|
|
79
108
|
updatedAt: z.ZodString;
|
|
@@ -92,6 +121,13 @@ export declare const ArchitecturalViewsDraftCreateRequestSchema: z.ZodObject<{
|
|
|
92
121
|
id: z.ZodString;
|
|
93
122
|
}, z.core.$strip>>;
|
|
94
123
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
124
|
+
diagramType: z.ZodOptional<z.ZodEnum<{
|
|
125
|
+
workflow: "workflow";
|
|
126
|
+
architecture: "architecture";
|
|
127
|
+
sequence: "sequence";
|
|
128
|
+
dataflow: "dataflow";
|
|
129
|
+
lifecycle: "lifecycle";
|
|
130
|
+
}>>;
|
|
95
131
|
quality: z.ZodOptional<z.ZodEnum<{
|
|
96
132
|
standard: "standard";
|
|
97
133
|
showcase: "showcase";
|
|
@@ -115,6 +151,13 @@ export declare const ArchitecturalViewsDraftCreateResponseSchema: z.ZodObject<{
|
|
|
115
151
|
id: z.ZodString;
|
|
116
152
|
}, z.core.$strip>>;
|
|
117
153
|
baseSpecificationSha256: z.ZodNullable<z.ZodString>;
|
|
154
|
+
diagramType: z.ZodOptional<z.ZodEnum<{
|
|
155
|
+
workflow: "workflow";
|
|
156
|
+
architecture: "architecture";
|
|
157
|
+
sequence: "sequence";
|
|
158
|
+
dataflow: "dataflow";
|
|
159
|
+
lifecycle: "lifecycle";
|
|
160
|
+
}>>;
|
|
118
161
|
authoringAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
119
162
|
createdAt: z.ZodString;
|
|
120
163
|
updatedAt: z.ZodString;
|
|
@@ -151,6 +194,13 @@ export declare const ArchitecturalViewsDraftUpdateResponseSchema: z.ZodObject<{
|
|
|
151
194
|
id: z.ZodString;
|
|
152
195
|
}, z.core.$strip>>;
|
|
153
196
|
baseSpecificationSha256: z.ZodNullable<z.ZodString>;
|
|
197
|
+
diagramType: z.ZodOptional<z.ZodEnum<{
|
|
198
|
+
workflow: "workflow";
|
|
199
|
+
architecture: "architecture";
|
|
200
|
+
sequence: "sequence";
|
|
201
|
+
dataflow: "dataflow";
|
|
202
|
+
lifecycle: "lifecycle";
|
|
203
|
+
}>>;
|
|
154
204
|
authoringAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
155
205
|
createdAt: z.ZodString;
|
|
156
206
|
updatedAt: z.ZodString;
|
|
@@ -186,6 +236,13 @@ export declare const ArchitecturalViewsDraftPublishResponseSchema: z.ZodObject<{
|
|
|
186
236
|
}>;
|
|
187
237
|
htmlPath: z.ZodString;
|
|
188
238
|
renderedAt: z.ZodString;
|
|
239
|
+
diagramType: z.ZodOptional<z.ZodEnum<{
|
|
240
|
+
workflow: "workflow";
|
|
241
|
+
architecture: "architecture";
|
|
242
|
+
sequence: "sequence";
|
|
243
|
+
dataflow: "dataflow";
|
|
244
|
+
lifecycle: "lifecycle";
|
|
245
|
+
}>>;
|
|
189
246
|
sourceStatus: z.ZodOptional<z.ZodEnum<{
|
|
190
247
|
unknown: "unknown";
|
|
191
248
|
stale: "stale";
|
|
@@ -234,6 +291,13 @@ export declare const ArchitecturalViewsDraftGetContentResponseSchema: z.ZodObjec
|
|
|
234
291
|
id: z.ZodString;
|
|
235
292
|
}, z.core.$strip>>;
|
|
236
293
|
baseSpecificationSha256: z.ZodNullable<z.ZodString>;
|
|
294
|
+
diagramType: z.ZodOptional<z.ZodEnum<{
|
|
295
|
+
workflow: "workflow";
|
|
296
|
+
architecture: "architecture";
|
|
297
|
+
sequence: "sequence";
|
|
298
|
+
dataflow: "dataflow";
|
|
299
|
+
lifecycle: "lifecycle";
|
|
300
|
+
}>>;
|
|
237
301
|
authoringAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
238
302
|
createdAt: z.ZodString;
|
|
239
303
|
updatedAt: z.ZodString;
|
|
@@ -242,6 +306,49 @@ export declare const ArchitecturalViewsDraftGetContentResponseSchema: z.ZodObjec
|
|
|
242
306
|
error: z.ZodNullable<z.ZodString>;
|
|
243
307
|
}, z.core.$strip>;
|
|
244
308
|
}, z.core.$strip>;
|
|
309
|
+
export declare const ArchitecturalViewsDraftListRequestSchema: z.ZodObject<{
|
|
310
|
+
type: z.ZodLiteral<"architectural-views.draft.list.request">;
|
|
311
|
+
workspaceId: z.ZodString;
|
|
312
|
+
knowledgeReference: z.ZodOptional<z.ZodObject<{
|
|
313
|
+
kind: z.ZodEnum<{
|
|
314
|
+
record: "record";
|
|
315
|
+
root: "root";
|
|
316
|
+
}>;
|
|
317
|
+
id: z.ZodString;
|
|
318
|
+
}, z.core.$strip>>;
|
|
319
|
+
requestId: z.ZodString;
|
|
320
|
+
}, z.core.$strip>;
|
|
321
|
+
export declare const ArchitecturalViewsDraftListResponseSchema: z.ZodObject<{
|
|
322
|
+
type: z.ZodLiteral<"architectural-views.draft.list.response">;
|
|
323
|
+
payload: z.ZodObject<{
|
|
324
|
+
requestId: z.ZodString;
|
|
325
|
+
success: z.ZodBoolean;
|
|
326
|
+
drafts: z.ZodArray<z.ZodObject<{
|
|
327
|
+
id: z.ZodString;
|
|
328
|
+
viewId: z.ZodString;
|
|
329
|
+
title: z.ZodString;
|
|
330
|
+
knowledgeReferences: z.ZodArray<z.ZodObject<{
|
|
331
|
+
kind: z.ZodEnum<{
|
|
332
|
+
record: "record";
|
|
333
|
+
root: "root";
|
|
334
|
+
}>;
|
|
335
|
+
id: z.ZodString;
|
|
336
|
+
}, z.core.$strip>>;
|
|
337
|
+
baseSpecificationSha256: z.ZodNullable<z.ZodString>;
|
|
338
|
+
diagramType: z.ZodOptional<z.ZodEnum<{
|
|
339
|
+
workflow: "workflow";
|
|
340
|
+
architecture: "architecture";
|
|
341
|
+
sequence: "sequence";
|
|
342
|
+
dataflow: "dataflow";
|
|
343
|
+
lifecycle: "lifecycle";
|
|
344
|
+
}>>;
|
|
345
|
+
authoringAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
346
|
+
createdAt: z.ZodString;
|
|
347
|
+
updatedAt: z.ZodString;
|
|
348
|
+
}, z.core.$strip>>;
|
|
349
|
+
error: z.ZodNullable<z.ZodString>;
|
|
350
|
+
}, z.core.$strip>;
|
|
351
|
+
}, z.core.$strip>;
|
|
245
352
|
export declare const ArchitecturalViewsListRequestSchema: z.ZodObject<{
|
|
246
353
|
type: z.ZodLiteral<"architectural-views.list.request">;
|
|
247
354
|
workspaceId: z.ZodString;
|
|
@@ -275,6 +382,13 @@ export declare const ArchitecturalViewsListResponseSchema: z.ZodObject<{
|
|
|
275
382
|
}>;
|
|
276
383
|
htmlPath: z.ZodString;
|
|
277
384
|
renderedAt: z.ZodString;
|
|
385
|
+
diagramType: z.ZodOptional<z.ZodEnum<{
|
|
386
|
+
workflow: "workflow";
|
|
387
|
+
architecture: "architecture";
|
|
388
|
+
sequence: "sequence";
|
|
389
|
+
dataflow: "dataflow";
|
|
390
|
+
lifecycle: "lifecycle";
|
|
391
|
+
}>>;
|
|
278
392
|
sourceStatus: z.ZodOptional<z.ZodEnum<{
|
|
279
393
|
unknown: "unknown";
|
|
280
394
|
stale: "stale";
|
|
@@ -311,6 +425,13 @@ export declare const ArchitecturalViewsGetContentResponseSchema: z.ZodObject<{
|
|
|
311
425
|
}>;
|
|
312
426
|
htmlPath: z.ZodString;
|
|
313
427
|
renderedAt: z.ZodString;
|
|
428
|
+
diagramType: z.ZodOptional<z.ZodEnum<{
|
|
429
|
+
workflow: "workflow";
|
|
430
|
+
architecture: "architecture";
|
|
431
|
+
sequence: "sequence";
|
|
432
|
+
dataflow: "dataflow";
|
|
433
|
+
lifecycle: "lifecycle";
|
|
434
|
+
}>>;
|
|
314
435
|
sourceStatus: z.ZodOptional<z.ZodEnum<{
|
|
315
436
|
unknown: "unknown";
|
|
316
437
|
stale: "stale";
|
|
@@ -339,4 +460,6 @@ export type ArchitecturalViewsGetContentResponse = z.infer<typeof ArchitecturalV
|
|
|
339
460
|
export type ArchitecturalViewsOpenNotification = z.infer<typeof ArchitecturalViewsOpenNotificationSchema>;
|
|
340
461
|
export type ArchitecturalViewsDraftGetContentRequest = z.infer<typeof ArchitecturalViewsDraftGetContentRequestSchema>;
|
|
341
462
|
export type ArchitecturalViewsDraftGetContentResponse = z.infer<typeof ArchitecturalViewsDraftGetContentResponseSchema>;
|
|
463
|
+
export type ArchitecturalViewsDraftListRequest = z.infer<typeof ArchitecturalViewsDraftListRequestSchema>;
|
|
464
|
+
export type ArchitecturalViewsDraftListResponse = z.infer<typeof ArchitecturalViewsDraftListResponseSchema>;
|
|
342
465
|
//# sourceMappingURL=rpc-schemas.d.ts.map
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export const ArchitecturalViewIdSchema = z.string().regex(/^[a-z][a-z0-9-]*$/);
|
|
3
|
+
export const ArchitecturalViewDiagramTypeSchema = z.enum([
|
|
4
|
+
"architecture",
|
|
5
|
+
"workflow",
|
|
6
|
+
"sequence",
|
|
7
|
+
"dataflow",
|
|
8
|
+
"lifecycle",
|
|
9
|
+
]);
|
|
3
10
|
export const ArchitecturalViewKnowledgeReferenceSchema = z.object({
|
|
4
11
|
kind: z.enum(["root", "record"]),
|
|
5
12
|
id: z.string().min(1),
|
|
@@ -11,6 +18,9 @@ export const ArchitecturalViewsDeliverRequestSchema = z.object({
|
|
|
11
18
|
title: z.string().min(1),
|
|
12
19
|
knowledgeReferences: z.array(ArchitecturalViewKnowledgeReferenceSchema).min(1),
|
|
13
20
|
sourcePath: z.string().min(1),
|
|
21
|
+
// COMPAT(architecturalViewDiagramType): added in v0.9.0 on 2026-09-06;
|
|
22
|
+
// remove after 2027-03-06 once every supported host writes a typed View.
|
|
23
|
+
diagramType: ArchitecturalViewDiagramTypeSchema.optional(),
|
|
14
24
|
quality: z.enum(["standard", "showcase"]).optional(),
|
|
15
25
|
requestId: z.string(),
|
|
16
26
|
});
|
|
@@ -32,6 +42,9 @@ export const ArchitecturalViewSummarySchema = z.object({
|
|
|
32
42
|
storeLocation: z.enum(["repository", "host"]),
|
|
33
43
|
htmlPath: z.string(),
|
|
34
44
|
renderedAt: z.string(),
|
|
45
|
+
// COMPAT(architecturalViewDiagramType): added in v0.9.0 on 2026-09-06;
|
|
46
|
+
// remove after 2027-03-06 once every supported host writes a typed View.
|
|
47
|
+
diagramType: ArchitecturalViewDiagramTypeSchema.optional(),
|
|
35
48
|
// COMPAT(architecturalViewSourceStatus): added in v0.9.0, remove after 2027-02-28.
|
|
36
49
|
sourceStatus: z.enum(["current", "stale", "unknown"]).optional(),
|
|
37
50
|
});
|
|
@@ -41,6 +54,9 @@ export const ArchitecturalViewDraftSchema = z.object({
|
|
|
41
54
|
title: z.string(),
|
|
42
55
|
knowledgeReferences: z.array(ArchitecturalViewKnowledgeReferenceSchema),
|
|
43
56
|
baseSpecificationSha256: z.string().nullable(),
|
|
57
|
+
// COMPAT(architecturalViewDiagramType): added in v0.9.0 on 2026-09-06;
|
|
58
|
+
// remove after 2027-03-06 once every supported host writes a typed View.
|
|
59
|
+
diagramType: ArchitecturalViewDiagramTypeSchema.optional(),
|
|
44
60
|
// COMPAT(architecturalViewDraftAuthoring): added in v0.9.0, remove after 2027-02-28.
|
|
45
61
|
authoringAgentId: z.string().nullable().optional(),
|
|
46
62
|
createdAt: z.string(),
|
|
@@ -54,6 +70,9 @@ export const ArchitecturalViewsDraftCreateRequestSchema = z.object({
|
|
|
54
70
|
title: z.string().min(1),
|
|
55
71
|
knowledgeReferences: z.array(ArchitecturalViewKnowledgeReferenceSchema).min(1),
|
|
56
72
|
sourcePath: z.string().min(1).optional(),
|
|
73
|
+
// COMPAT(architecturalViewDiagramType): added in v0.9.0 on 2026-09-06;
|
|
74
|
+
// remove after 2027-03-06 once every supported host writes a typed View.
|
|
75
|
+
diagramType: ArchitecturalViewDiagramTypeSchema.optional(),
|
|
57
76
|
quality: z.enum(["standard", "showcase"]).optional(),
|
|
58
77
|
requestId: z.string(),
|
|
59
78
|
});
|
|
@@ -128,6 +147,21 @@ export const ArchitecturalViewsDraftGetContentResponseSchema = z.object({
|
|
|
128
147
|
error: z.string().nullable(),
|
|
129
148
|
}),
|
|
130
149
|
});
|
|
150
|
+
export const ArchitecturalViewsDraftListRequestSchema = z.object({
|
|
151
|
+
type: z.literal("architectural-views.draft.list.request"),
|
|
152
|
+
workspaceId: z.string(),
|
|
153
|
+
knowledgeReference: ArchitecturalViewKnowledgeReferenceSchema.optional(),
|
|
154
|
+
requestId: z.string(),
|
|
155
|
+
});
|
|
156
|
+
export const ArchitecturalViewsDraftListResponseSchema = z.object({
|
|
157
|
+
type: z.literal("architectural-views.draft.list.response"),
|
|
158
|
+
payload: z.object({
|
|
159
|
+
requestId: z.string(),
|
|
160
|
+
success: z.boolean(),
|
|
161
|
+
drafts: z.array(ArchitecturalViewDraftSchema),
|
|
162
|
+
error: z.string().nullable(),
|
|
163
|
+
}),
|
|
164
|
+
});
|
|
131
165
|
export const ArchitecturalViewsListRequestSchema = z.object({
|
|
132
166
|
type: z.literal("architectural-views.list.request"),
|
|
133
167
|
workspaceId: z.string(),
|
package/dist/brain.d.ts
CHANGED
|
@@ -665,9 +665,9 @@ export declare const BrainBindAddressSchema: z.ZodObject<{
|
|
|
665
665
|
value: z.ZodString;
|
|
666
666
|
label: z.ZodString;
|
|
667
667
|
kind: z.ZodEnum<{
|
|
668
|
+
all: "all";
|
|
668
669
|
tailscale: "tailscale";
|
|
669
670
|
loopback: "loopback";
|
|
670
|
-
all: "all";
|
|
671
671
|
lan: "lan";
|
|
672
672
|
}>;
|
|
673
673
|
}, z.core.$loose>;
|
|
@@ -677,9 +677,9 @@ export declare const BrainNetworkInfoSchema: z.ZodObject<{
|
|
|
677
677
|
value: z.ZodString;
|
|
678
678
|
label: z.ZodString;
|
|
679
679
|
kind: z.ZodEnum<{
|
|
680
|
+
all: "all";
|
|
680
681
|
tailscale: "tailscale";
|
|
681
682
|
loopback: "loopback";
|
|
682
|
-
all: "all";
|
|
683
683
|
lan: "lan";
|
|
684
684
|
}>;
|
|
685
685
|
}, z.core.$loose>>>;
|
|
@@ -742,9 +742,9 @@ export declare const BrainNetworkDiscoverResponseSchema: z.ZodObject<{
|
|
|
742
742
|
value: z.ZodString;
|
|
743
743
|
label: z.ZodString;
|
|
744
744
|
kind: z.ZodEnum<{
|
|
745
|
+
all: "all";
|
|
745
746
|
tailscale: "tailscale";
|
|
746
747
|
loopback: "loopback";
|
|
747
|
-
all: "all";
|
|
748
748
|
lan: "lan";
|
|
749
749
|
}>;
|
|
750
750
|
}, z.core.$loose>>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const BrowserAutomationHostCapabilitySchema: z.ZodObject<{
|
|
3
|
-
supportedCommands: z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<("type" | "fill" | "
|
|
3
|
+
supportedCommands: z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<("type" | "fill" | "list_tabs" | "new_tab" | "snapshot" | "click" | "wait" | "keypress" | "navigate" | "back" | "forward" | "reload" | "screenshot" | "upload" | "select" | "hover" | "drag" | "logs" | "evaluate" | "inspect" | "network" | "scroll" | "resize" | "close_tab" | "focus_tab" | "page_text" | "set_color_scheme" | "screenshot_element")[], string[]>>;
|
|
4
4
|
hostKind: z.ZodDefault<z.ZodString>;
|
|
5
5
|
}, z.core.$loose>;
|
|
6
6
|
export type BrowserAutomationHostCapability = z.infer<typeof BrowserAutomationHostCapabilitySchema>;
|
|
@@ -16,8 +16,6 @@ export declare const BROWSER_AUTOMATION_COMMAND_NAMES: readonly ["list_tabs", "n
|
|
|
16
16
|
export declare const BrowserAutomationCommandNameSchema: z.ZodEnum<{
|
|
17
17
|
type: "type";
|
|
18
18
|
fill: "fill";
|
|
19
|
-
select: "select";
|
|
20
|
-
logs: "logs";
|
|
21
19
|
list_tabs: "list_tabs";
|
|
22
20
|
new_tab: "new_tab";
|
|
23
21
|
snapshot: "snapshot";
|
|
@@ -30,8 +28,10 @@ export declare const BrowserAutomationCommandNameSchema: z.ZodEnum<{
|
|
|
30
28
|
reload: "reload";
|
|
31
29
|
screenshot: "screenshot";
|
|
32
30
|
upload: "upload";
|
|
31
|
+
select: "select";
|
|
33
32
|
hover: "hover";
|
|
34
33
|
drag: "drag";
|
|
34
|
+
logs: "logs";
|
|
35
35
|
evaluate: "evaluate";
|
|
36
36
|
inspect: "inspect";
|
|
37
37
|
network: "network";
|
|
@@ -213,8 +213,8 @@ export declare const BrowserAutomationNetworkCommandSchema: z.ZodObject<{
|
|
|
213
213
|
args: z.ZodObject<{
|
|
214
214
|
browserId: z.ZodString;
|
|
215
215
|
filter: z.ZodDefault<z.ZodEnum<{
|
|
216
|
-
failed: "failed";
|
|
217
216
|
all: "all";
|
|
217
|
+
failed: "failed";
|
|
218
218
|
}>>;
|
|
219
219
|
requestId: z.ZodOptional<z.ZodString>;
|
|
220
220
|
}, z.core.$strict>;
|
|
@@ -256,18 +256,18 @@ export declare const BrowserAutomationPageTextCommandSchema: z.ZodObject<{
|
|
|
256
256
|
}, z.core.$strict>;
|
|
257
257
|
}, z.core.$strip>;
|
|
258
258
|
export declare const BrowserAutomationColorSchemeSchema: z.ZodEnum<{
|
|
259
|
-
auto: "auto";
|
|
260
259
|
light: "light";
|
|
261
260
|
dark: "dark";
|
|
261
|
+
auto: "auto";
|
|
262
262
|
}>;
|
|
263
263
|
export declare const BrowserAutomationSetColorSchemeCommandSchema: z.ZodObject<{
|
|
264
264
|
command: z.ZodLiteral<"set_color_scheme">;
|
|
265
265
|
args: z.ZodObject<{
|
|
266
266
|
browserId: z.ZodString;
|
|
267
267
|
colorScheme: z.ZodEnum<{
|
|
268
|
-
auto: "auto";
|
|
269
268
|
light: "light";
|
|
270
269
|
dark: "dark";
|
|
270
|
+
auto: "auto";
|
|
271
271
|
}>;
|
|
272
272
|
}, z.core.$strict>;
|
|
273
273
|
}, z.core.$strip>;
|
|
@@ -427,8 +427,8 @@ export declare const BrowserAutomationCommandSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
427
427
|
args: z.ZodObject<{
|
|
428
428
|
browserId: z.ZodString;
|
|
429
429
|
filter: z.ZodDefault<z.ZodEnum<{
|
|
430
|
-
failed: "failed";
|
|
431
430
|
all: "all";
|
|
431
|
+
failed: "failed";
|
|
432
432
|
}>>;
|
|
433
433
|
requestId: z.ZodOptional<z.ZodString>;
|
|
434
434
|
}, z.core.$strict>;
|
|
@@ -468,9 +468,9 @@ export declare const BrowserAutomationCommandSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
468
468
|
args: z.ZodObject<{
|
|
469
469
|
browserId: z.ZodString;
|
|
470
470
|
colorScheme: z.ZodEnum<{
|
|
471
|
-
auto: "auto";
|
|
472
471
|
light: "light";
|
|
473
472
|
dark: "dark";
|
|
473
|
+
auto: "auto";
|
|
474
474
|
}>;
|
|
475
475
|
}, z.core.$strict>;
|
|
476
476
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -490,8 +490,8 @@ export declare const BrowserAutomationTabInfoSchema: z.ZodObject<{
|
|
|
490
490
|
canGoBack: z.ZodOptional<z.ZodBoolean>;
|
|
491
491
|
canGoForward: z.ZodOptional<z.ZodBoolean>;
|
|
492
492
|
status: z.ZodOptional<z.ZodEnum<{
|
|
493
|
-
ready: "ready";
|
|
494
493
|
starting: "starting";
|
|
494
|
+
ready: "ready";
|
|
495
495
|
detached: "detached";
|
|
496
496
|
}>>;
|
|
497
497
|
}, z.core.$strip>;
|
|
@@ -507,8 +507,8 @@ export declare const BrowserAutomationListTabsResultSchema: z.ZodObject<{
|
|
|
507
507
|
canGoBack: z.ZodOptional<z.ZodBoolean>;
|
|
508
508
|
canGoForward: z.ZodOptional<z.ZodBoolean>;
|
|
509
509
|
status: z.ZodOptional<z.ZodEnum<{
|
|
510
|
-
ready: "ready";
|
|
511
510
|
starting: "starting";
|
|
511
|
+
ready: "ready";
|
|
512
512
|
detached: "detached";
|
|
513
513
|
}>>;
|
|
514
514
|
}, z.core.$strip>>;
|
|
@@ -777,9 +777,9 @@ export declare const BrowserAutomationSetColorSchemeResultSchema: z.ZodObject<{
|
|
|
777
777
|
command: z.ZodLiteral<"set_color_scheme">;
|
|
778
778
|
browserId: z.ZodString;
|
|
779
779
|
colorScheme: z.ZodEnum<{
|
|
780
|
-
auto: "auto";
|
|
781
780
|
light: "light";
|
|
782
781
|
dark: "dark";
|
|
782
|
+
auto: "auto";
|
|
783
783
|
}>;
|
|
784
784
|
}, z.core.$strip>;
|
|
785
785
|
export declare const BrowserAutomationResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -794,8 +794,8 @@ export declare const BrowserAutomationResultSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
794
794
|
canGoBack: z.ZodOptional<z.ZodBoolean>;
|
|
795
795
|
canGoForward: z.ZodOptional<z.ZodBoolean>;
|
|
796
796
|
status: z.ZodOptional<z.ZodEnum<{
|
|
797
|
-
ready: "ready";
|
|
798
797
|
starting: "starting";
|
|
798
|
+
ready: "ready";
|
|
799
799
|
detached: "detached";
|
|
800
800
|
}>>;
|
|
801
801
|
}, z.core.$strip>>;
|
|
@@ -993,9 +993,9 @@ export declare const BrowserAutomationResultSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
993
993
|
command: z.ZodLiteral<"set_color_scheme">;
|
|
994
994
|
browserId: z.ZodString;
|
|
995
995
|
colorScheme: z.ZodEnum<{
|
|
996
|
-
auto: "auto";
|
|
997
996
|
light: "light";
|
|
998
997
|
dark: "dark";
|
|
998
|
+
auto: "auto";
|
|
999
999
|
}>;
|
|
1000
1000
|
}, z.core.$strip>, z.ZodObject<{
|
|
1001
1001
|
command: z.ZodLiteral<"screenshot_element">;
|
|
@@ -1195,8 +1195,8 @@ export declare const BrowserAutomationExecuteRequestSchema: z.ZodObject<{
|
|
|
1195
1195
|
args: z.ZodObject<{
|
|
1196
1196
|
browserId: z.ZodString;
|
|
1197
1197
|
filter: z.ZodDefault<z.ZodEnum<{
|
|
1198
|
-
failed: "failed";
|
|
1199
1198
|
all: "all";
|
|
1199
|
+
failed: "failed";
|
|
1200
1200
|
}>>;
|
|
1201
1201
|
requestId: z.ZodOptional<z.ZodString>;
|
|
1202
1202
|
}, z.core.$strict>;
|
|
@@ -1236,9 +1236,9 @@ export declare const BrowserAutomationExecuteRequestSchema: z.ZodObject<{
|
|
|
1236
1236
|
args: z.ZodObject<{
|
|
1237
1237
|
browserId: z.ZodString;
|
|
1238
1238
|
colorScheme: z.ZodEnum<{
|
|
1239
|
-
auto: "auto";
|
|
1240
1239
|
light: "light";
|
|
1241
1240
|
dark: "dark";
|
|
1241
|
+
auto: "auto";
|
|
1242
1242
|
}>;
|
|
1243
1243
|
}, z.core.$strict>;
|
|
1244
1244
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1266,8 +1266,8 @@ export declare const BrowserAutomationExecuteResponseSchema: z.ZodObject<{
|
|
|
1266
1266
|
canGoBack: z.ZodOptional<z.ZodBoolean>;
|
|
1267
1267
|
canGoForward: z.ZodOptional<z.ZodBoolean>;
|
|
1268
1268
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1269
|
-
ready: "ready";
|
|
1270
1269
|
starting: "starting";
|
|
1270
|
+
ready: "ready";
|
|
1271
1271
|
detached: "detached";
|
|
1272
1272
|
}>>;
|
|
1273
1273
|
}, z.core.$strip>>;
|
|
@@ -1465,9 +1465,9 @@ export declare const BrowserAutomationExecuteResponseSchema: z.ZodObject<{
|
|
|
1465
1465
|
command: z.ZodLiteral<"set_color_scheme">;
|
|
1466
1466
|
browserId: z.ZodString;
|
|
1467
1467
|
colorScheme: z.ZodEnum<{
|
|
1468
|
-
auto: "auto";
|
|
1469
1468
|
light: "light";
|
|
1470
1469
|
dark: "dark";
|
|
1470
|
+
auto: "auto";
|
|
1471
1471
|
}>;
|
|
1472
1472
|
}, z.core.$strip>, z.ZodObject<{
|
|
1473
1473
|
command: z.ZodLiteral<"screenshot_element">;
|
|
@@ -57,9 +57,9 @@ export declare const SolutionTreeProjectSchema: z.ZodObject<{
|
|
|
57
57
|
* broken. One project that fails must not blank the tree, so this status is per project.
|
|
58
58
|
*/
|
|
59
59
|
export declare const SolutionProjectStatusSchema: z.ZodEnum<{
|
|
60
|
+
failed: "failed";
|
|
60
61
|
ok: "ok";
|
|
61
62
|
unavailable: "unavailable";
|
|
62
|
-
failed: "failed";
|
|
63
63
|
}>;
|
|
64
64
|
/**
|
|
65
65
|
* One entry in a project's evaluated membership, flat with parent links like the folders above.
|
|
@@ -265,8 +265,8 @@ export declare const CodeSolutionLoadProjectRequestSchema: z.ZodObject<{
|
|
|
265
265
|
*/
|
|
266
266
|
export declare const CodeDiagnosticSeveritySchema: z.ZodEnum<{
|
|
267
267
|
error: "error";
|
|
268
|
-
info: "info";
|
|
269
268
|
warning: "warning";
|
|
269
|
+
info: "info";
|
|
270
270
|
hint: "hint";
|
|
271
271
|
}>;
|
|
272
272
|
/** One problem the language server reported, 1-based like every other position. */
|
|
@@ -277,8 +277,8 @@ export declare const CodeDiagnosticSchema: z.ZodObject<{
|
|
|
277
277
|
endColumn: z.ZodNumber;
|
|
278
278
|
severity: z.ZodEnum<{
|
|
279
279
|
error: "error";
|
|
280
|
-
info: "info";
|
|
281
280
|
warning: "warning";
|
|
281
|
+
info: "info";
|
|
282
282
|
hint: "hint";
|
|
283
283
|
}>;
|
|
284
284
|
message: z.ZodString;
|
|
@@ -664,9 +664,9 @@ export declare const CodeSolutionLoadProjectResponseSchema: z.ZodObject<{
|
|
|
664
664
|
solutionPath: z.ZodString;
|
|
665
665
|
projectPath: z.ZodString;
|
|
666
666
|
status: z.ZodEnum<{
|
|
667
|
+
failed: "failed";
|
|
667
668
|
ok: "ok";
|
|
668
669
|
unavailable: "unavailable";
|
|
669
|
-
failed: "failed";
|
|
670
670
|
}>;
|
|
671
671
|
nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
672
672
|
kind: z.ZodLiteral<"directory">;
|
|
@@ -823,8 +823,8 @@ export declare const LspDiagnosticsChangedStatusPayloadSchema: z.ZodObject<{
|
|
|
823
823
|
endColumn: z.ZodNumber;
|
|
824
824
|
severity: z.ZodEnum<{
|
|
825
825
|
error: "error";
|
|
826
|
-
info: "info";
|
|
827
826
|
warning: "warning";
|
|
827
|
+
info: "info";
|
|
828
828
|
hint: "hint";
|
|
829
829
|
}>;
|
|
830
830
|
message: z.ZodString;
|
|
@@ -290,8 +290,8 @@ export declare const FileSearchResponseSchema: z.ZodObject<{
|
|
|
290
290
|
cwd: z.ZodString;
|
|
291
291
|
status: z.ZodEnum<{
|
|
292
292
|
error: "error";
|
|
293
|
-
completed: "completed";
|
|
294
293
|
truncated: "truncated";
|
|
294
|
+
completed: "completed";
|
|
295
295
|
superseded: "superseded";
|
|
296
296
|
}>;
|
|
297
297
|
error: z.ZodNullable<z.ZodString>;
|