@otto-code/protocol 0.8.9 → 0.8.12
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-queue.d.ts +87 -0
- package/dist/agent-queue.js +106 -0
- package/dist/brain.d.ts +2321 -0
- package/dist/brain.js +1082 -0
- package/dist/client-capabilities.d.ts +2 -0
- package/dist/client-capabilities.js +10 -0
- package/dist/code-intelligence.d.ts +917 -0
- package/dist/code-intelligence.js +699 -0
- package/dist/communications.d.ts +1106 -0
- package/dist/communications.js +384 -0
- package/dist/context.d.ts +787 -0
- package/dist/context.js +295 -0
- package/dist/daemon-config.d.ts +377 -0
- package/dist/daemon-config.js +395 -0
- package/dist/file-operations.d.ts +380 -0
- package/dist/file-operations.js +282 -0
- package/dist/generated/validation/ws-outbound.aot.js +54927 -48878
- package/dist/git-hosting.d.ts +117 -0
- package/dist/git-hosting.js +109 -0
- package/dist/git-operations.d.ts +255 -0
- package/dist/git-operations.js +221 -0
- package/dist/integration-authorization.d.ts +195 -0
- package/dist/integration-authorization.js +125 -0
- package/dist/kanban.d.ts +341 -0
- package/dist/kanban.js +273 -0
- package/dist/loop/rpc-schemas.d.ts +6 -6
- package/dist/meetings.d.ts +95 -0
- package/dist/meetings.js +57 -0
- package/dist/messages.d.ts +21054 -24042
- package/dist/messages.js +4355 -8731
- package/dist/orchestration.d.ts +726 -0
- package/dist/orchestration.js +232 -0
- package/dist/personality-schemas.d.ts +221 -0
- package/dist/personality-schemas.js +340 -0
- package/dist/preview.d.ts +140 -0
- package/dist/preview.js +98 -0
- package/dist/project-knowledge.d.ts +740 -0
- package/dist/project-knowledge.js +229 -0
- package/dist/project-links.d.ts +102 -0
- package/dist/project-links.js +62 -0
- package/dist/provider-config.d.ts +87 -2
- package/dist/provider-config.js +110 -0
- package/dist/refine.d.ts +93 -0
- package/dist/refine.js +78 -0
- package/dist/schedule/rpc-schemas.d.ts +47 -47
- package/dist/schedule/types.d.ts +13 -13
- package/dist/speech.d.ts +180 -0
- package/dist/speech.js +177 -0
- package/dist/storage.d.ts +79 -0
- package/dist/storage.js +107 -0
- package/dist/suggested-tasks.d.ts +106 -0
- package/dist/suggested-tasks.js +81 -0
- package/dist/terminal-compatibility.d.ts +55 -0
- package/dist/terminal-compatibility.js +35 -0
- package/dist/usage-stats.d.ts +255 -0
- package/dist/usage-stats.js +162 -0
- package/dist/validation/ws-outbound-schema-metadata.d.ts +1404 -274
- package/dist/worktree-ops.d.ts +81 -0
- package/dist/worktree-ops.js +88 -0
- package/package.json +1 -1
|
@@ -0,0 +1,787 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Otto Context Management wire schemas: the context report, findings, prompt
|
|
4
|
+
* preview and edge-conversion RPCs (see docs/context-management.md).
|
|
5
|
+
*
|
|
6
|
+
* Context Management is a fork-only capability, so its schemas live in their own
|
|
7
|
+
* protocol module rather than inside messages.ts, matching kanban.ts, brain.ts
|
|
8
|
+
* and the other Otto domains. messages.ts re-exports them for back-compat.
|
|
9
|
+
*/
|
|
10
|
+
export declare const ContextScopeSchema: z.ZodEnum<{
|
|
11
|
+
local: "local";
|
|
12
|
+
runtime: "runtime";
|
|
13
|
+
enterprise: "enterprise";
|
|
14
|
+
global: "global";
|
|
15
|
+
project: "project";
|
|
16
|
+
subdirectory: "subdirectory";
|
|
17
|
+
}>;
|
|
18
|
+
export declare const ContextCategorySchema: z.ZodEnum<{
|
|
19
|
+
context_files: "context_files";
|
|
20
|
+
memory_index: "memory_index";
|
|
21
|
+
skills_roster: "skills_roster";
|
|
22
|
+
mcp_tools: "mcp_tools";
|
|
23
|
+
otto_injected: "otto_injected";
|
|
24
|
+
system_prompt: "system_prompt";
|
|
25
|
+
}>;
|
|
26
|
+
export declare const ContextCostClassSchema: z.ZodEnum<{
|
|
27
|
+
fixed: "fixed";
|
|
28
|
+
conditional: "conditional";
|
|
29
|
+
referenced: "referenced";
|
|
30
|
+
}>;
|
|
31
|
+
export declare const ContextSeveritySchema: z.ZodEnum<{
|
|
32
|
+
ok: "ok";
|
|
33
|
+
warn: "warn";
|
|
34
|
+
notice: "notice";
|
|
35
|
+
critical: "critical";
|
|
36
|
+
}>;
|
|
37
|
+
export declare const ContextConfidenceSchema: z.ZodEnum<{
|
|
38
|
+
exact: "exact";
|
|
39
|
+
convention: "convention";
|
|
40
|
+
unverified: "unverified";
|
|
41
|
+
}>;
|
|
42
|
+
export declare const ContextCategoryVisibilitySchema: z.ZodEnum<{
|
|
43
|
+
exact: "exact";
|
|
44
|
+
convention: "convention";
|
|
45
|
+
unverified: "unverified";
|
|
46
|
+
not_visible: "not_visible";
|
|
47
|
+
}>;
|
|
48
|
+
export declare const ContextFindingKindSchema: z.ZodEnum<{
|
|
49
|
+
dead_import: "dead_import";
|
|
50
|
+
dead_reference: "dead_reference";
|
|
51
|
+
duplicate_across_scope: "duplicate_across_scope";
|
|
52
|
+
duplicate_within_file: "duplicate_within_file";
|
|
53
|
+
oversized_memory_entry: "oversized_memory_entry";
|
|
54
|
+
import_cycle: "import_cycle";
|
|
55
|
+
depth_capped: "depth_capped";
|
|
56
|
+
}>;
|
|
57
|
+
export declare const ContextRangeSchema: z.ZodObject<{
|
|
58
|
+
start: z.ZodNumber;
|
|
59
|
+
end: z.ZodNumber;
|
|
60
|
+
}, z.core.$strip>;
|
|
61
|
+
export declare const ContextFindingSchema: z.ZodObject<{
|
|
62
|
+
kind: z.ZodEnum<{
|
|
63
|
+
dead_import: "dead_import";
|
|
64
|
+
dead_reference: "dead_reference";
|
|
65
|
+
duplicate_across_scope: "duplicate_across_scope";
|
|
66
|
+
duplicate_within_file: "duplicate_within_file";
|
|
67
|
+
oversized_memory_entry: "oversized_memory_entry";
|
|
68
|
+
import_cycle: "import_cycle";
|
|
69
|
+
depth_capped: "depth_capped";
|
|
70
|
+
}>;
|
|
71
|
+
message: z.ZodString;
|
|
72
|
+
range: z.ZodOptional<z.ZodObject<{
|
|
73
|
+
start: z.ZodNumber;
|
|
74
|
+
end: z.ZodNumber;
|
|
75
|
+
}, z.core.$strip>>;
|
|
76
|
+
relatedNodeIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
77
|
+
nodeId: z.ZodOptional<z.ZodString>;
|
|
78
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
79
|
+
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
80
|
+
fixable: z.ZodOptional<z.ZodBoolean>;
|
|
81
|
+
snippet: z.ZodOptional<z.ZodString>;
|
|
82
|
+
}, z.core.$strip>;
|
|
83
|
+
export declare const ContextNodeSchema: z.ZodObject<{
|
|
84
|
+
id: z.ZodString;
|
|
85
|
+
path: z.ZodString;
|
|
86
|
+
relPath: z.ZodString;
|
|
87
|
+
scope: z.ZodEnum<{
|
|
88
|
+
local: "local";
|
|
89
|
+
runtime: "runtime";
|
|
90
|
+
enterprise: "enterprise";
|
|
91
|
+
global: "global";
|
|
92
|
+
project: "project";
|
|
93
|
+
subdirectory: "subdirectory";
|
|
94
|
+
}>;
|
|
95
|
+
category: z.ZodEnum<{
|
|
96
|
+
context_files: "context_files";
|
|
97
|
+
memory_index: "memory_index";
|
|
98
|
+
skills_roster: "skills_roster";
|
|
99
|
+
mcp_tools: "mcp_tools";
|
|
100
|
+
otto_injected: "otto_injected";
|
|
101
|
+
system_prompt: "system_prompt";
|
|
102
|
+
}>;
|
|
103
|
+
costClass: z.ZodEnum<{
|
|
104
|
+
fixed: "fixed";
|
|
105
|
+
conditional: "conditional";
|
|
106
|
+
referenced: "referenced";
|
|
107
|
+
}>;
|
|
108
|
+
bytes: z.ZodNumber;
|
|
109
|
+
estTokens: z.ZodNumber;
|
|
110
|
+
alsoImportedByNodeIds: z.ZodArray<z.ZodString>;
|
|
111
|
+
findings: z.ZodArray<z.ZodObject<{
|
|
112
|
+
kind: z.ZodEnum<{
|
|
113
|
+
dead_import: "dead_import";
|
|
114
|
+
dead_reference: "dead_reference";
|
|
115
|
+
duplicate_across_scope: "duplicate_across_scope";
|
|
116
|
+
duplicate_within_file: "duplicate_within_file";
|
|
117
|
+
oversized_memory_entry: "oversized_memory_entry";
|
|
118
|
+
import_cycle: "import_cycle";
|
|
119
|
+
depth_capped: "depth_capped";
|
|
120
|
+
}>;
|
|
121
|
+
message: z.ZodString;
|
|
122
|
+
range: z.ZodOptional<z.ZodObject<{
|
|
123
|
+
start: z.ZodNumber;
|
|
124
|
+
end: z.ZodNumber;
|
|
125
|
+
}, z.core.$strip>>;
|
|
126
|
+
relatedNodeIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
127
|
+
nodeId: z.ZodOptional<z.ZodString>;
|
|
128
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
129
|
+
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
130
|
+
fixable: z.ZodOptional<z.ZodBoolean>;
|
|
131
|
+
snippet: z.ZodOptional<z.ZodString>;
|
|
132
|
+
}, z.core.$strip>>;
|
|
133
|
+
}, z.core.$strip>;
|
|
134
|
+
export declare const ContextEdgeSchema: z.ZodObject<{
|
|
135
|
+
fromNodeId: z.ZodString;
|
|
136
|
+
toNodeId: z.ZodNullable<z.ZodString>;
|
|
137
|
+
kind: z.ZodEnum<{
|
|
138
|
+
import: "import";
|
|
139
|
+
reference: "reference";
|
|
140
|
+
}>;
|
|
141
|
+
rawTarget: z.ZodString;
|
|
142
|
+
range: z.ZodObject<{
|
|
143
|
+
start: z.ZodNumber;
|
|
144
|
+
end: z.ZodNumber;
|
|
145
|
+
}, z.core.$strip>;
|
|
146
|
+
}, z.core.$strip>;
|
|
147
|
+
export declare const ContextCategoryTotalSchema: z.ZodObject<{
|
|
148
|
+
category: z.ZodEnum<{
|
|
149
|
+
context_files: "context_files";
|
|
150
|
+
memory_index: "memory_index";
|
|
151
|
+
skills_roster: "skills_roster";
|
|
152
|
+
mcp_tools: "mcp_tools";
|
|
153
|
+
otto_injected: "otto_injected";
|
|
154
|
+
system_prompt: "system_prompt";
|
|
155
|
+
}>;
|
|
156
|
+
estTokens: z.ZodNumber;
|
|
157
|
+
sharePercent: z.ZodNumber;
|
|
158
|
+
severity: z.ZodEnum<{
|
|
159
|
+
ok: "ok";
|
|
160
|
+
warn: "warn";
|
|
161
|
+
notice: "notice";
|
|
162
|
+
critical: "critical";
|
|
163
|
+
}>;
|
|
164
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
165
|
+
exact: "exact";
|
|
166
|
+
convention: "convention";
|
|
167
|
+
unverified: "unverified";
|
|
168
|
+
not_visible: "not_visible";
|
|
169
|
+
}>>;
|
|
170
|
+
}, z.core.$strip>;
|
|
171
|
+
export declare const ContextReportSchema: z.ZodObject<{
|
|
172
|
+
workspaceId: z.ZodString;
|
|
173
|
+
provider: z.ZodString;
|
|
174
|
+
windowTokens: z.ZodNumber;
|
|
175
|
+
scannedAt: z.ZodString;
|
|
176
|
+
confidence: z.ZodEnum<{
|
|
177
|
+
exact: "exact";
|
|
178
|
+
convention: "convention";
|
|
179
|
+
unverified: "unverified";
|
|
180
|
+
}>;
|
|
181
|
+
supported: z.ZodBoolean;
|
|
182
|
+
supportsImports: z.ZodBoolean;
|
|
183
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
184
|
+
id: z.ZodString;
|
|
185
|
+
path: z.ZodString;
|
|
186
|
+
relPath: z.ZodString;
|
|
187
|
+
scope: z.ZodEnum<{
|
|
188
|
+
local: "local";
|
|
189
|
+
runtime: "runtime";
|
|
190
|
+
enterprise: "enterprise";
|
|
191
|
+
global: "global";
|
|
192
|
+
project: "project";
|
|
193
|
+
subdirectory: "subdirectory";
|
|
194
|
+
}>;
|
|
195
|
+
category: z.ZodEnum<{
|
|
196
|
+
context_files: "context_files";
|
|
197
|
+
memory_index: "memory_index";
|
|
198
|
+
skills_roster: "skills_roster";
|
|
199
|
+
mcp_tools: "mcp_tools";
|
|
200
|
+
otto_injected: "otto_injected";
|
|
201
|
+
system_prompt: "system_prompt";
|
|
202
|
+
}>;
|
|
203
|
+
costClass: z.ZodEnum<{
|
|
204
|
+
fixed: "fixed";
|
|
205
|
+
conditional: "conditional";
|
|
206
|
+
referenced: "referenced";
|
|
207
|
+
}>;
|
|
208
|
+
bytes: z.ZodNumber;
|
|
209
|
+
estTokens: z.ZodNumber;
|
|
210
|
+
alsoImportedByNodeIds: z.ZodArray<z.ZodString>;
|
|
211
|
+
findings: z.ZodArray<z.ZodObject<{
|
|
212
|
+
kind: z.ZodEnum<{
|
|
213
|
+
dead_import: "dead_import";
|
|
214
|
+
dead_reference: "dead_reference";
|
|
215
|
+
duplicate_across_scope: "duplicate_across_scope";
|
|
216
|
+
duplicate_within_file: "duplicate_within_file";
|
|
217
|
+
oversized_memory_entry: "oversized_memory_entry";
|
|
218
|
+
import_cycle: "import_cycle";
|
|
219
|
+
depth_capped: "depth_capped";
|
|
220
|
+
}>;
|
|
221
|
+
message: z.ZodString;
|
|
222
|
+
range: z.ZodOptional<z.ZodObject<{
|
|
223
|
+
start: z.ZodNumber;
|
|
224
|
+
end: z.ZodNumber;
|
|
225
|
+
}, z.core.$strip>>;
|
|
226
|
+
relatedNodeIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
227
|
+
nodeId: z.ZodOptional<z.ZodString>;
|
|
228
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
229
|
+
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
230
|
+
fixable: z.ZodOptional<z.ZodBoolean>;
|
|
231
|
+
snippet: z.ZodOptional<z.ZodString>;
|
|
232
|
+
}, z.core.$strip>>;
|
|
233
|
+
}, z.core.$strip>>;
|
|
234
|
+
edges: z.ZodArray<z.ZodObject<{
|
|
235
|
+
fromNodeId: z.ZodString;
|
|
236
|
+
toNodeId: z.ZodNullable<z.ZodString>;
|
|
237
|
+
kind: z.ZodEnum<{
|
|
238
|
+
import: "import";
|
|
239
|
+
reference: "reference";
|
|
240
|
+
}>;
|
|
241
|
+
rawTarget: z.ZodString;
|
|
242
|
+
range: z.ZodObject<{
|
|
243
|
+
start: z.ZodNumber;
|
|
244
|
+
end: z.ZodNumber;
|
|
245
|
+
}, z.core.$strip>;
|
|
246
|
+
}, z.core.$strip>>;
|
|
247
|
+
categoryTotals: z.ZodArray<z.ZodObject<{
|
|
248
|
+
category: z.ZodEnum<{
|
|
249
|
+
context_files: "context_files";
|
|
250
|
+
memory_index: "memory_index";
|
|
251
|
+
skills_roster: "skills_roster";
|
|
252
|
+
mcp_tools: "mcp_tools";
|
|
253
|
+
otto_injected: "otto_injected";
|
|
254
|
+
system_prompt: "system_prompt";
|
|
255
|
+
}>;
|
|
256
|
+
estTokens: z.ZodNumber;
|
|
257
|
+
sharePercent: z.ZodNumber;
|
|
258
|
+
severity: z.ZodEnum<{
|
|
259
|
+
ok: "ok";
|
|
260
|
+
warn: "warn";
|
|
261
|
+
notice: "notice";
|
|
262
|
+
critical: "critical";
|
|
263
|
+
}>;
|
|
264
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
265
|
+
exact: "exact";
|
|
266
|
+
convention: "convention";
|
|
267
|
+
unverified: "unverified";
|
|
268
|
+
not_visible: "not_visible";
|
|
269
|
+
}>>;
|
|
270
|
+
}, z.core.$strip>>;
|
|
271
|
+
fixedTotal: z.ZodNumber;
|
|
272
|
+
conditionalTotal: z.ZodNumber;
|
|
273
|
+
referencedTotal: z.ZodNumber;
|
|
274
|
+
workingRoom: z.ZodNumber;
|
|
275
|
+
aggregateSeverity: z.ZodEnum<{
|
|
276
|
+
ok: "ok";
|
|
277
|
+
warn: "warn";
|
|
278
|
+
notice: "notice";
|
|
279
|
+
critical: "critical";
|
|
280
|
+
}>;
|
|
281
|
+
findings: z.ZodArray<z.ZodObject<{
|
|
282
|
+
kind: z.ZodEnum<{
|
|
283
|
+
dead_import: "dead_import";
|
|
284
|
+
dead_reference: "dead_reference";
|
|
285
|
+
duplicate_across_scope: "duplicate_across_scope";
|
|
286
|
+
duplicate_within_file: "duplicate_within_file";
|
|
287
|
+
oversized_memory_entry: "oversized_memory_entry";
|
|
288
|
+
import_cycle: "import_cycle";
|
|
289
|
+
depth_capped: "depth_capped";
|
|
290
|
+
}>;
|
|
291
|
+
message: z.ZodString;
|
|
292
|
+
range: z.ZodOptional<z.ZodObject<{
|
|
293
|
+
start: z.ZodNumber;
|
|
294
|
+
end: z.ZodNumber;
|
|
295
|
+
}, z.core.$strip>>;
|
|
296
|
+
relatedNodeIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
297
|
+
nodeId: z.ZodOptional<z.ZodString>;
|
|
298
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
299
|
+
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
300
|
+
fixable: z.ZodOptional<z.ZodBoolean>;
|
|
301
|
+
snippet: z.ZodOptional<z.ZodString>;
|
|
302
|
+
}, z.core.$strip>>;
|
|
303
|
+
personalityId: z.ZodOptional<z.ZodString>;
|
|
304
|
+
personalityMemoryTokens: z.ZodOptional<z.ZodNumber>;
|
|
305
|
+
projectKnowledgeTokens: z.ZodOptional<z.ZodNumber>;
|
|
306
|
+
}, z.core.$strip>;
|
|
307
|
+
export declare const ContextReportChangedSchema: z.ZodObject<{
|
|
308
|
+
type: z.ZodLiteral<"context_report_changed">;
|
|
309
|
+
payload: z.ZodObject<{
|
|
310
|
+
workspaceId: z.ZodString;
|
|
311
|
+
report: z.ZodNullable<z.ZodObject<{
|
|
312
|
+
workspaceId: z.ZodString;
|
|
313
|
+
provider: z.ZodString;
|
|
314
|
+
windowTokens: z.ZodNumber;
|
|
315
|
+
scannedAt: z.ZodString;
|
|
316
|
+
confidence: z.ZodEnum<{
|
|
317
|
+
exact: "exact";
|
|
318
|
+
convention: "convention";
|
|
319
|
+
unverified: "unverified";
|
|
320
|
+
}>;
|
|
321
|
+
supported: z.ZodBoolean;
|
|
322
|
+
supportsImports: z.ZodBoolean;
|
|
323
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
324
|
+
id: z.ZodString;
|
|
325
|
+
path: z.ZodString;
|
|
326
|
+
relPath: z.ZodString;
|
|
327
|
+
scope: z.ZodEnum<{
|
|
328
|
+
local: "local";
|
|
329
|
+
runtime: "runtime";
|
|
330
|
+
enterprise: "enterprise";
|
|
331
|
+
global: "global";
|
|
332
|
+
project: "project";
|
|
333
|
+
subdirectory: "subdirectory";
|
|
334
|
+
}>;
|
|
335
|
+
category: z.ZodEnum<{
|
|
336
|
+
context_files: "context_files";
|
|
337
|
+
memory_index: "memory_index";
|
|
338
|
+
skills_roster: "skills_roster";
|
|
339
|
+
mcp_tools: "mcp_tools";
|
|
340
|
+
otto_injected: "otto_injected";
|
|
341
|
+
system_prompt: "system_prompt";
|
|
342
|
+
}>;
|
|
343
|
+
costClass: z.ZodEnum<{
|
|
344
|
+
fixed: "fixed";
|
|
345
|
+
conditional: "conditional";
|
|
346
|
+
referenced: "referenced";
|
|
347
|
+
}>;
|
|
348
|
+
bytes: z.ZodNumber;
|
|
349
|
+
estTokens: z.ZodNumber;
|
|
350
|
+
alsoImportedByNodeIds: z.ZodArray<z.ZodString>;
|
|
351
|
+
findings: z.ZodArray<z.ZodObject<{
|
|
352
|
+
kind: z.ZodEnum<{
|
|
353
|
+
dead_import: "dead_import";
|
|
354
|
+
dead_reference: "dead_reference";
|
|
355
|
+
duplicate_across_scope: "duplicate_across_scope";
|
|
356
|
+
duplicate_within_file: "duplicate_within_file";
|
|
357
|
+
oversized_memory_entry: "oversized_memory_entry";
|
|
358
|
+
import_cycle: "import_cycle";
|
|
359
|
+
depth_capped: "depth_capped";
|
|
360
|
+
}>;
|
|
361
|
+
message: z.ZodString;
|
|
362
|
+
range: z.ZodOptional<z.ZodObject<{
|
|
363
|
+
start: z.ZodNumber;
|
|
364
|
+
end: z.ZodNumber;
|
|
365
|
+
}, z.core.$strip>>;
|
|
366
|
+
relatedNodeIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
367
|
+
nodeId: z.ZodOptional<z.ZodString>;
|
|
368
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
369
|
+
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
370
|
+
fixable: z.ZodOptional<z.ZodBoolean>;
|
|
371
|
+
snippet: z.ZodOptional<z.ZodString>;
|
|
372
|
+
}, z.core.$strip>>;
|
|
373
|
+
}, z.core.$strip>>;
|
|
374
|
+
edges: z.ZodArray<z.ZodObject<{
|
|
375
|
+
fromNodeId: z.ZodString;
|
|
376
|
+
toNodeId: z.ZodNullable<z.ZodString>;
|
|
377
|
+
kind: z.ZodEnum<{
|
|
378
|
+
import: "import";
|
|
379
|
+
reference: "reference";
|
|
380
|
+
}>;
|
|
381
|
+
rawTarget: z.ZodString;
|
|
382
|
+
range: z.ZodObject<{
|
|
383
|
+
start: z.ZodNumber;
|
|
384
|
+
end: z.ZodNumber;
|
|
385
|
+
}, z.core.$strip>;
|
|
386
|
+
}, z.core.$strip>>;
|
|
387
|
+
categoryTotals: z.ZodArray<z.ZodObject<{
|
|
388
|
+
category: z.ZodEnum<{
|
|
389
|
+
context_files: "context_files";
|
|
390
|
+
memory_index: "memory_index";
|
|
391
|
+
skills_roster: "skills_roster";
|
|
392
|
+
mcp_tools: "mcp_tools";
|
|
393
|
+
otto_injected: "otto_injected";
|
|
394
|
+
system_prompt: "system_prompt";
|
|
395
|
+
}>;
|
|
396
|
+
estTokens: z.ZodNumber;
|
|
397
|
+
sharePercent: z.ZodNumber;
|
|
398
|
+
severity: z.ZodEnum<{
|
|
399
|
+
ok: "ok";
|
|
400
|
+
warn: "warn";
|
|
401
|
+
notice: "notice";
|
|
402
|
+
critical: "critical";
|
|
403
|
+
}>;
|
|
404
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
405
|
+
exact: "exact";
|
|
406
|
+
convention: "convention";
|
|
407
|
+
unverified: "unverified";
|
|
408
|
+
not_visible: "not_visible";
|
|
409
|
+
}>>;
|
|
410
|
+
}, z.core.$strip>>;
|
|
411
|
+
fixedTotal: z.ZodNumber;
|
|
412
|
+
conditionalTotal: z.ZodNumber;
|
|
413
|
+
referencedTotal: z.ZodNumber;
|
|
414
|
+
workingRoom: z.ZodNumber;
|
|
415
|
+
aggregateSeverity: z.ZodEnum<{
|
|
416
|
+
ok: "ok";
|
|
417
|
+
warn: "warn";
|
|
418
|
+
notice: "notice";
|
|
419
|
+
critical: "critical";
|
|
420
|
+
}>;
|
|
421
|
+
findings: z.ZodArray<z.ZodObject<{
|
|
422
|
+
kind: z.ZodEnum<{
|
|
423
|
+
dead_import: "dead_import";
|
|
424
|
+
dead_reference: "dead_reference";
|
|
425
|
+
duplicate_across_scope: "duplicate_across_scope";
|
|
426
|
+
duplicate_within_file: "duplicate_within_file";
|
|
427
|
+
oversized_memory_entry: "oversized_memory_entry";
|
|
428
|
+
import_cycle: "import_cycle";
|
|
429
|
+
depth_capped: "depth_capped";
|
|
430
|
+
}>;
|
|
431
|
+
message: z.ZodString;
|
|
432
|
+
range: z.ZodOptional<z.ZodObject<{
|
|
433
|
+
start: z.ZodNumber;
|
|
434
|
+
end: z.ZodNumber;
|
|
435
|
+
}, z.core.$strip>>;
|
|
436
|
+
relatedNodeIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
437
|
+
nodeId: z.ZodOptional<z.ZodString>;
|
|
438
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
439
|
+
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
440
|
+
fixable: z.ZodOptional<z.ZodBoolean>;
|
|
441
|
+
snippet: z.ZodOptional<z.ZodString>;
|
|
442
|
+
}, z.core.$strip>>;
|
|
443
|
+
personalityId: z.ZodOptional<z.ZodString>;
|
|
444
|
+
personalityMemoryTokens: z.ZodOptional<z.ZodNumber>;
|
|
445
|
+
projectKnowledgeTokens: z.ZodOptional<z.ZodNumber>;
|
|
446
|
+
}, z.core.$strip>>;
|
|
447
|
+
}, z.core.$strip>;
|
|
448
|
+
}, z.core.$strip>;
|
|
449
|
+
export declare const ContextReportGetRequestMessageSchema: z.ZodObject<{
|
|
450
|
+
type: z.ZodLiteral<"context.report.get.request">;
|
|
451
|
+
requestId: z.ZodString;
|
|
452
|
+
workspaceId: z.ZodString;
|
|
453
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
454
|
+
windowTokens: z.ZodOptional<z.ZodNumber>;
|
|
455
|
+
personalityId: z.ZodOptional<z.ZodString>;
|
|
456
|
+
}, z.core.$strip>;
|
|
457
|
+
export declare const ContextReportGetResponseMessageSchema: z.ZodObject<{
|
|
458
|
+
type: z.ZodLiteral<"context.report.get.response">;
|
|
459
|
+
payload: z.ZodObject<{
|
|
460
|
+
requestId: z.ZodString;
|
|
461
|
+
report: z.ZodNullable<z.ZodObject<{
|
|
462
|
+
workspaceId: z.ZodString;
|
|
463
|
+
provider: z.ZodString;
|
|
464
|
+
windowTokens: z.ZodNumber;
|
|
465
|
+
scannedAt: z.ZodString;
|
|
466
|
+
confidence: z.ZodEnum<{
|
|
467
|
+
exact: "exact";
|
|
468
|
+
convention: "convention";
|
|
469
|
+
unverified: "unverified";
|
|
470
|
+
}>;
|
|
471
|
+
supported: z.ZodBoolean;
|
|
472
|
+
supportsImports: z.ZodBoolean;
|
|
473
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
474
|
+
id: z.ZodString;
|
|
475
|
+
path: z.ZodString;
|
|
476
|
+
relPath: z.ZodString;
|
|
477
|
+
scope: z.ZodEnum<{
|
|
478
|
+
local: "local";
|
|
479
|
+
runtime: "runtime";
|
|
480
|
+
enterprise: "enterprise";
|
|
481
|
+
global: "global";
|
|
482
|
+
project: "project";
|
|
483
|
+
subdirectory: "subdirectory";
|
|
484
|
+
}>;
|
|
485
|
+
category: z.ZodEnum<{
|
|
486
|
+
context_files: "context_files";
|
|
487
|
+
memory_index: "memory_index";
|
|
488
|
+
skills_roster: "skills_roster";
|
|
489
|
+
mcp_tools: "mcp_tools";
|
|
490
|
+
otto_injected: "otto_injected";
|
|
491
|
+
system_prompt: "system_prompt";
|
|
492
|
+
}>;
|
|
493
|
+
costClass: z.ZodEnum<{
|
|
494
|
+
fixed: "fixed";
|
|
495
|
+
conditional: "conditional";
|
|
496
|
+
referenced: "referenced";
|
|
497
|
+
}>;
|
|
498
|
+
bytes: z.ZodNumber;
|
|
499
|
+
estTokens: z.ZodNumber;
|
|
500
|
+
alsoImportedByNodeIds: z.ZodArray<z.ZodString>;
|
|
501
|
+
findings: z.ZodArray<z.ZodObject<{
|
|
502
|
+
kind: z.ZodEnum<{
|
|
503
|
+
dead_import: "dead_import";
|
|
504
|
+
dead_reference: "dead_reference";
|
|
505
|
+
duplicate_across_scope: "duplicate_across_scope";
|
|
506
|
+
duplicate_within_file: "duplicate_within_file";
|
|
507
|
+
oversized_memory_entry: "oversized_memory_entry";
|
|
508
|
+
import_cycle: "import_cycle";
|
|
509
|
+
depth_capped: "depth_capped";
|
|
510
|
+
}>;
|
|
511
|
+
message: z.ZodString;
|
|
512
|
+
range: z.ZodOptional<z.ZodObject<{
|
|
513
|
+
start: z.ZodNumber;
|
|
514
|
+
end: z.ZodNumber;
|
|
515
|
+
}, z.core.$strip>>;
|
|
516
|
+
relatedNodeIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
517
|
+
nodeId: z.ZodOptional<z.ZodString>;
|
|
518
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
519
|
+
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
520
|
+
fixable: z.ZodOptional<z.ZodBoolean>;
|
|
521
|
+
snippet: z.ZodOptional<z.ZodString>;
|
|
522
|
+
}, z.core.$strip>>;
|
|
523
|
+
}, z.core.$strip>>;
|
|
524
|
+
edges: z.ZodArray<z.ZodObject<{
|
|
525
|
+
fromNodeId: z.ZodString;
|
|
526
|
+
toNodeId: z.ZodNullable<z.ZodString>;
|
|
527
|
+
kind: z.ZodEnum<{
|
|
528
|
+
import: "import";
|
|
529
|
+
reference: "reference";
|
|
530
|
+
}>;
|
|
531
|
+
rawTarget: z.ZodString;
|
|
532
|
+
range: z.ZodObject<{
|
|
533
|
+
start: z.ZodNumber;
|
|
534
|
+
end: z.ZodNumber;
|
|
535
|
+
}, z.core.$strip>;
|
|
536
|
+
}, z.core.$strip>>;
|
|
537
|
+
categoryTotals: z.ZodArray<z.ZodObject<{
|
|
538
|
+
category: z.ZodEnum<{
|
|
539
|
+
context_files: "context_files";
|
|
540
|
+
memory_index: "memory_index";
|
|
541
|
+
skills_roster: "skills_roster";
|
|
542
|
+
mcp_tools: "mcp_tools";
|
|
543
|
+
otto_injected: "otto_injected";
|
|
544
|
+
system_prompt: "system_prompt";
|
|
545
|
+
}>;
|
|
546
|
+
estTokens: z.ZodNumber;
|
|
547
|
+
sharePercent: z.ZodNumber;
|
|
548
|
+
severity: z.ZodEnum<{
|
|
549
|
+
ok: "ok";
|
|
550
|
+
warn: "warn";
|
|
551
|
+
notice: "notice";
|
|
552
|
+
critical: "critical";
|
|
553
|
+
}>;
|
|
554
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
555
|
+
exact: "exact";
|
|
556
|
+
convention: "convention";
|
|
557
|
+
unverified: "unverified";
|
|
558
|
+
not_visible: "not_visible";
|
|
559
|
+
}>>;
|
|
560
|
+
}, z.core.$strip>>;
|
|
561
|
+
fixedTotal: z.ZodNumber;
|
|
562
|
+
conditionalTotal: z.ZodNumber;
|
|
563
|
+
referencedTotal: z.ZodNumber;
|
|
564
|
+
workingRoom: z.ZodNumber;
|
|
565
|
+
aggregateSeverity: z.ZodEnum<{
|
|
566
|
+
ok: "ok";
|
|
567
|
+
warn: "warn";
|
|
568
|
+
notice: "notice";
|
|
569
|
+
critical: "critical";
|
|
570
|
+
}>;
|
|
571
|
+
findings: z.ZodArray<z.ZodObject<{
|
|
572
|
+
kind: z.ZodEnum<{
|
|
573
|
+
dead_import: "dead_import";
|
|
574
|
+
dead_reference: "dead_reference";
|
|
575
|
+
duplicate_across_scope: "duplicate_across_scope";
|
|
576
|
+
duplicate_within_file: "duplicate_within_file";
|
|
577
|
+
oversized_memory_entry: "oversized_memory_entry";
|
|
578
|
+
import_cycle: "import_cycle";
|
|
579
|
+
depth_capped: "depth_capped";
|
|
580
|
+
}>;
|
|
581
|
+
message: z.ZodString;
|
|
582
|
+
range: z.ZodOptional<z.ZodObject<{
|
|
583
|
+
start: z.ZodNumber;
|
|
584
|
+
end: z.ZodNumber;
|
|
585
|
+
}, z.core.$strip>>;
|
|
586
|
+
relatedNodeIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
587
|
+
nodeId: z.ZodOptional<z.ZodString>;
|
|
588
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
589
|
+
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
590
|
+
fixable: z.ZodOptional<z.ZodBoolean>;
|
|
591
|
+
snippet: z.ZodOptional<z.ZodString>;
|
|
592
|
+
}, z.core.$strip>>;
|
|
593
|
+
personalityId: z.ZodOptional<z.ZodString>;
|
|
594
|
+
personalityMemoryTokens: z.ZodOptional<z.ZodNumber>;
|
|
595
|
+
projectKnowledgeTokens: z.ZodOptional<z.ZodNumber>;
|
|
596
|
+
}, z.core.$strip>>;
|
|
597
|
+
}, z.core.$strip>;
|
|
598
|
+
}, z.core.$strip>;
|
|
599
|
+
export declare const ContextPromptSectionSchema: z.ZodObject<{
|
|
600
|
+
category: z.ZodEnum<{
|
|
601
|
+
context_files: "context_files";
|
|
602
|
+
memory_index: "memory_index";
|
|
603
|
+
skills_roster: "skills_roster";
|
|
604
|
+
mcp_tools: "mcp_tools";
|
|
605
|
+
otto_injected: "otto_injected";
|
|
606
|
+
system_prompt: "system_prompt";
|
|
607
|
+
}>;
|
|
608
|
+
label: z.ZodString;
|
|
609
|
+
visibility: z.ZodEnum<{
|
|
610
|
+
exact: "exact";
|
|
611
|
+
convention: "convention";
|
|
612
|
+
unverified: "unverified";
|
|
613
|
+
not_visible: "not_visible";
|
|
614
|
+
}>;
|
|
615
|
+
text: z.ZodOptional<z.ZodString>;
|
|
616
|
+
estTokens: z.ZodNumber;
|
|
617
|
+
}, z.core.$strip>;
|
|
618
|
+
export declare const ContextPromptPreviewSchema: z.ZodObject<{
|
|
619
|
+
sections: z.ZodArray<z.ZodObject<{
|
|
620
|
+
category: z.ZodEnum<{
|
|
621
|
+
context_files: "context_files";
|
|
622
|
+
memory_index: "memory_index";
|
|
623
|
+
skills_roster: "skills_roster";
|
|
624
|
+
mcp_tools: "mcp_tools";
|
|
625
|
+
otto_injected: "otto_injected";
|
|
626
|
+
system_prompt: "system_prompt";
|
|
627
|
+
}>;
|
|
628
|
+
label: z.ZodString;
|
|
629
|
+
visibility: z.ZodEnum<{
|
|
630
|
+
exact: "exact";
|
|
631
|
+
convention: "convention";
|
|
632
|
+
unverified: "unverified";
|
|
633
|
+
not_visible: "not_visible";
|
|
634
|
+
}>;
|
|
635
|
+
text: z.ZodOptional<z.ZodString>;
|
|
636
|
+
estTokens: z.ZodNumber;
|
|
637
|
+
}, z.core.$strip>>;
|
|
638
|
+
estTokens: z.ZodNumber;
|
|
639
|
+
}, z.core.$strip>;
|
|
640
|
+
export declare const ContextPromptPreviewGetRequestMessageSchema: z.ZodObject<{
|
|
641
|
+
type: z.ZodLiteral<"context.prompt.preview.get.request">;
|
|
642
|
+
requestId: z.ZodString;
|
|
643
|
+
workspaceId: z.ZodString;
|
|
644
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
645
|
+
windowTokens: z.ZodOptional<z.ZodNumber>;
|
|
646
|
+
personalityId: z.ZodOptional<z.ZodString>;
|
|
647
|
+
category: z.ZodOptional<z.ZodEnum<{
|
|
648
|
+
context_files: "context_files";
|
|
649
|
+
memory_index: "memory_index";
|
|
650
|
+
skills_roster: "skills_roster";
|
|
651
|
+
mcp_tools: "mcp_tools";
|
|
652
|
+
otto_injected: "otto_injected";
|
|
653
|
+
system_prompt: "system_prompt";
|
|
654
|
+
}>>;
|
|
655
|
+
}, z.core.$strip>;
|
|
656
|
+
export declare const ContextPromptPreviewGetResponseMessageSchema: z.ZodObject<{
|
|
657
|
+
type: z.ZodLiteral<"context.prompt.preview.get.response">;
|
|
658
|
+
payload: z.ZodObject<{
|
|
659
|
+
requestId: z.ZodString;
|
|
660
|
+
preview: z.ZodNullable<z.ZodObject<{
|
|
661
|
+
sections: z.ZodArray<z.ZodObject<{
|
|
662
|
+
category: z.ZodEnum<{
|
|
663
|
+
context_files: "context_files";
|
|
664
|
+
memory_index: "memory_index";
|
|
665
|
+
skills_roster: "skills_roster";
|
|
666
|
+
mcp_tools: "mcp_tools";
|
|
667
|
+
otto_injected: "otto_injected";
|
|
668
|
+
system_prompt: "system_prompt";
|
|
669
|
+
}>;
|
|
670
|
+
label: z.ZodString;
|
|
671
|
+
visibility: z.ZodEnum<{
|
|
672
|
+
exact: "exact";
|
|
673
|
+
convention: "convention";
|
|
674
|
+
unverified: "unverified";
|
|
675
|
+
not_visible: "not_visible";
|
|
676
|
+
}>;
|
|
677
|
+
text: z.ZodOptional<z.ZodString>;
|
|
678
|
+
estTokens: z.ZodNumber;
|
|
679
|
+
}, z.core.$strip>>;
|
|
680
|
+
estTokens: z.ZodNumber;
|
|
681
|
+
}, z.core.$strip>>;
|
|
682
|
+
}, z.core.$strip>;
|
|
683
|
+
}, z.core.$strip>;
|
|
684
|
+
export declare const ContextEdgeConvertRequestMessageSchema: z.ZodObject<{
|
|
685
|
+
type: z.ZodLiteral<"context.edge.convert.request">;
|
|
686
|
+
requestId: z.ZodString;
|
|
687
|
+
workspaceId: z.ZodString;
|
|
688
|
+
filePath: z.ZodString;
|
|
689
|
+
rawTarget: z.ZodString;
|
|
690
|
+
range: z.ZodObject<{
|
|
691
|
+
start: z.ZodNumber;
|
|
692
|
+
end: z.ZodNumber;
|
|
693
|
+
}, z.core.$strip>;
|
|
694
|
+
target: z.ZodEnum<{
|
|
695
|
+
import: "import";
|
|
696
|
+
reference: "reference";
|
|
697
|
+
}>;
|
|
698
|
+
}, z.core.$strip>;
|
|
699
|
+
export declare const ContextEdgeConvertResponseMessageSchema: z.ZodObject<{
|
|
700
|
+
type: z.ZodLiteral<"context.edge.convert.response">;
|
|
701
|
+
payload: z.ZodObject<{
|
|
702
|
+
requestId: z.ZodString;
|
|
703
|
+
ok: z.ZodBoolean;
|
|
704
|
+
error: z.ZodOptional<z.ZodString>;
|
|
705
|
+
}, z.core.$strip>;
|
|
706
|
+
}, z.core.$strip>;
|
|
707
|
+
export declare const ContextFindingsFixRequestMessageSchema: z.ZodObject<{
|
|
708
|
+
type: z.ZodLiteral<"context.findings.fix.request">;
|
|
709
|
+
requestId: z.ZodString;
|
|
710
|
+
workspaceId: z.ZodString;
|
|
711
|
+
findings: z.ZodArray<z.ZodObject<{
|
|
712
|
+
filePath: z.ZodString;
|
|
713
|
+
range: z.ZodObject<{
|
|
714
|
+
start: z.ZodNumber;
|
|
715
|
+
end: z.ZodNumber;
|
|
716
|
+
}, z.core.$strip>;
|
|
717
|
+
snippet: z.ZodString;
|
|
718
|
+
}, z.core.$strip>>;
|
|
719
|
+
}, z.core.$strip>;
|
|
720
|
+
export declare const ContextFindingsFixResponseMessageSchema: z.ZodObject<{
|
|
721
|
+
type: z.ZodLiteral<"context.findings.fix.response">;
|
|
722
|
+
payload: z.ZodObject<{
|
|
723
|
+
requestId: z.ZodString;
|
|
724
|
+
fixedCount: z.ZodNumber;
|
|
725
|
+
failedCount: z.ZodNumber;
|
|
726
|
+
errors: z.ZodArray<z.ZodString>;
|
|
727
|
+
}, z.core.$strip>;
|
|
728
|
+
}, z.core.$strip>;
|
|
729
|
+
export type ContextRange = z.infer<typeof ContextRangeSchema>;
|
|
730
|
+
export type ContextScope = z.infer<typeof ContextScopeSchema>;
|
|
731
|
+
export type ContextCategory = z.infer<typeof ContextCategorySchema>;
|
|
732
|
+
export type ContextCategoryVisibility = z.infer<typeof ContextCategoryVisibilitySchema>;
|
|
733
|
+
export type ContextCostClass = z.infer<typeof ContextCostClassSchema>;
|
|
734
|
+
export type ContextSeverity = z.infer<typeof ContextSeveritySchema>;
|
|
735
|
+
export type ContextConfidence = z.infer<typeof ContextConfidenceSchema>;
|
|
736
|
+
export type ContextFinding = z.infer<typeof ContextFindingSchema>;
|
|
737
|
+
export type ContextNode = z.infer<typeof ContextNodeSchema>;
|
|
738
|
+
export type ContextEdge = z.infer<typeof ContextEdgeSchema>;
|
|
739
|
+
export type ContextCategoryTotal = z.infer<typeof ContextCategoryTotalSchema>;
|
|
740
|
+
export type ContextReport = z.infer<typeof ContextReportSchema>;
|
|
741
|
+
export type ContextReportChanged = z.infer<typeof ContextReportChangedSchema>;
|
|
742
|
+
export type ContextReportGetResponseMessage = z.infer<typeof ContextReportGetResponseMessageSchema>;
|
|
743
|
+
export type ContextPromptSection = z.infer<typeof ContextPromptSectionSchema>;
|
|
744
|
+
export type ContextPromptPreview = z.infer<typeof ContextPromptPreviewSchema>;
|
|
745
|
+
export type ContextPromptPreviewGetRequestMessage = z.infer<typeof ContextPromptPreviewGetRequestMessageSchema>;
|
|
746
|
+
export type ContextPromptPreviewGetResponseMessage = z.infer<typeof ContextPromptPreviewGetResponseMessageSchema>;
|
|
747
|
+
export type ContextEdgeConvertResponseMessage = z.infer<typeof ContextEdgeConvertResponseMessageSchema>;
|
|
748
|
+
export type ContextFindingsFixResponseMessage = z.infer<typeof ContextFindingsFixResponseMessageSchema>;
|
|
749
|
+
export declare const AgentContextGetUsageRequestMessageSchema: z.ZodObject<{
|
|
750
|
+
type: z.ZodLiteral<"agent.context.get_usage.request">;
|
|
751
|
+
agentId: z.ZodString;
|
|
752
|
+
requestId: z.ZodString;
|
|
753
|
+
}, z.core.$strip>;
|
|
754
|
+
export declare const AgentContextUsageCategorySchema: z.ZodObject<{
|
|
755
|
+
name: z.ZodString;
|
|
756
|
+
tokens: z.ZodNumber;
|
|
757
|
+
isDeferred: z.ZodOptional<z.ZodBoolean>;
|
|
758
|
+
}, z.core.$strip>;
|
|
759
|
+
export declare const AgentContextUsageSchema: z.ZodObject<{
|
|
760
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
761
|
+
name: z.ZodString;
|
|
762
|
+
tokens: z.ZodNumber;
|
|
763
|
+
isDeferred: z.ZodOptional<z.ZodBoolean>;
|
|
764
|
+
}, z.core.$strip>>;
|
|
765
|
+
totalTokens: z.ZodNumber;
|
|
766
|
+
maxTokens: z.ZodNumber;
|
|
767
|
+
}, z.core.$strip>;
|
|
768
|
+
export declare const AgentContextGetUsageResponseMessageSchema: z.ZodObject<{
|
|
769
|
+
type: z.ZodLiteral<"agent.context.get_usage.response">;
|
|
770
|
+
payload: z.ZodObject<{
|
|
771
|
+
requestId: z.ZodString;
|
|
772
|
+
agentId: z.ZodString;
|
|
773
|
+
usage: z.ZodNullable<z.ZodObject<{
|
|
774
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
775
|
+
name: z.ZodString;
|
|
776
|
+
tokens: z.ZodNumber;
|
|
777
|
+
isDeferred: z.ZodOptional<z.ZodBoolean>;
|
|
778
|
+
}, z.core.$strip>>;
|
|
779
|
+
totalTokens: z.ZodNumber;
|
|
780
|
+
maxTokens: z.ZodNumber;
|
|
781
|
+
}, z.core.$strip>>;
|
|
782
|
+
}, z.core.$strip>;
|
|
783
|
+
}, z.core.$strip>;
|
|
784
|
+
export type AgentContextUsageCategory = z.infer<typeof AgentContextUsageCategorySchema>;
|
|
785
|
+
export type AgentContextUsage = z.infer<typeof AgentContextUsageSchema>;
|
|
786
|
+
export type AgentContextGetUsageResponseMessage = z.infer<typeof AgentContextGetUsageResponseMessageSchema>;
|
|
787
|
+
//# sourceMappingURL=context.d.ts.map
|