@maudecode/talaria-web-contracts 1.17.2 → 1.18.0
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/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/openapi.js +5 -1
- package/dist/openapi.js.map +1 -1
- package/dist/router.d.ts +3555 -1107
- package/dist/routes/automation.d.ts +26 -1
- package/dist/routes/automation.js +2 -1
- package/dist/routes/automation.js.map +1 -1
- package/dist/routes/chat.d.ts +1164 -16
- package/dist/routes/chat.js +5 -3
- package/dist/routes/chat.js.map +1 -1
- package/dist/routes/core.d.ts +11 -0
- package/dist/routes/core.js +3 -0
- package/dist/routes/core.js.map +1 -1
- package/dist/routes/git.d.ts +76 -1
- package/dist/routes/git.js +13 -3
- package/dist/routes/git.js.map +1 -1
- package/dist/routes/raw.d.ts +3 -1
- package/dist/routes/raw.js +29 -5
- package/dist/routes/raw.js.map +1 -1
- package/dist/routes/sessions.d.ts +2807 -581
- package/dist/routes/sessions.js +58 -1
- package/dist/routes/sessions.js.map +1 -1
- package/dist/routes/settings.d.ts +31 -0
- package/dist/routes/tools.d.ts +356 -15
- package/dist/routes/tools.js +22 -3
- package/dist/routes/tools.js.map +1 -1
- package/dist/routes/workspaces.d.ts +82 -0
- package/dist/routes/workspaces.js +18 -1
- package/dist/routes/workspaces.js.map +1 -1
- package/dist/sidecar/methods.d.ts +133 -0
- package/dist/sidecar/methods.js +2 -1
- package/dist/sidecar/methods.js.map +1 -1
- package/dist/sidecar/namespaces.d.ts +177 -0
- package/dist/sidecar/namespaces.js +36 -3
- package/dist/sidecar/namespaces.js.map +1 -1
- package/dist/sidecar/version.d.ts +1 -1
- package/dist/sidecar/version.js +1 -1
- package/dist/sse.d.ts +37 -10
- package/dist/sse.js +1 -2
- package/dist/sse.js.map +1 -1
- package/dist/theme.d.ts +10 -0
- package/dist/theme.js +10 -0
- package/dist/theme.js.map +1 -0
- package/dist/views.d.ts +808 -37
- package/dist/views.js +110 -11
- package/dist/views.js.map +1 -1
- package/fixtures/sidecar/checkpoints.json +50 -0
- package/fixtures/sidecar/commands.json +55 -4
- package/fixtures/sidecar/cron.json +38 -55
- package/fixtures/sidecar/goals.json +6 -6
- package/fixtures/sidecar/kanban.json +92 -91
- package/fixtures/sidecar/plugins.json +171 -172
- package/fixtures/sidecar/profiles.json +10 -2
- package/fixtures/sidecar/providers.json +25 -12
- package/fixtures/sidecar/rpc.json +15 -0
- package/fixtures/sidecar/runtime.json +22 -29
- package/fixtures/sidecar/state_db.json +15 -0
- package/fixtures/sidecar/text.json +2 -2
- package/fixtures/sidecar/usage.json +10 -10
- package/package.json +1 -1
|
@@ -164,6 +164,13 @@ export declare const workspacesContract: {
|
|
|
164
164
|
ok: z.ZodLiteral<true>;
|
|
165
165
|
path: z.ZodString;
|
|
166
166
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
167
|
+
path: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
168
|
+
session_id: z.ZodString;
|
|
169
|
+
path: z.ZodString;
|
|
170
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
171
|
+
ok: z.ZodLiteral<true>;
|
|
172
|
+
path: z.ZodString;
|
|
173
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
167
174
|
openVsCode: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
168
175
|
session_id: z.ZodString;
|
|
169
176
|
path: z.ZodString;
|
|
@@ -171,5 +178,80 @@ export declare const workspacesContract: {
|
|
|
171
178
|
ok: z.ZodLiteral<true>;
|
|
172
179
|
path: z.ZodString;
|
|
173
180
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
181
|
+
/**
|
|
182
|
+
* TAL-263: a 300-second, read-only grant for one workspace symlink whose target sits outside the workspace. A directory
|
|
183
|
+
* grant reaches the target's tree; a file grant reaches that file alone. Requires a same-origin `Origin` header; a
|
|
184
|
+
* supplied `token` is refused. Any later change to the link expires the grant (403).
|
|
185
|
+
*/
|
|
186
|
+
escapeAuthorize: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
187
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
188
|
+
path: z.ZodOptional<z.ZodString>;
|
|
189
|
+
token: z.ZodOptional<z.ZodString>;
|
|
190
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
191
|
+
token: z.ZodString;
|
|
192
|
+
path: z.ZodString;
|
|
193
|
+
is_dir: z.ZodBoolean;
|
|
194
|
+
expires_at: z.ZodNumber;
|
|
195
|
+
expires_in: z.ZodNumber;
|
|
196
|
+
read_only: z.ZodLiteral<true>;
|
|
197
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
198
|
+
/** TAL-263: a granted directory listed under virtual workspace paths; nested links leaving the grant stay display-only. */
|
|
199
|
+
escapeList: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
200
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
201
|
+
token: z.ZodOptional<z.ZodString>;
|
|
202
|
+
path: z.ZodOptional<z.ZodString>;
|
|
203
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
204
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
205
|
+
workspace: z.ZodOptional<z.ZodString>;
|
|
206
|
+
workspace_recovered: z.ZodOptional<z.ZodBoolean>;
|
|
207
|
+
is_git: z.ZodOptional<z.ZodBoolean>;
|
|
208
|
+
path: z.ZodString;
|
|
209
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
210
|
+
name: z.ZodString;
|
|
211
|
+
path: z.ZodOptional<z.ZodString>;
|
|
212
|
+
is_dir: z.ZodOptional<z.ZodBoolean>;
|
|
213
|
+
type: z.ZodOptional<z.ZodString>;
|
|
214
|
+
size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
215
|
+
mtime: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
216
|
+
mtime_ns: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
217
|
+
birthtime_ns: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
218
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
219
|
+
workspace_sort_rank: z.ZodOptional<z.ZodNumber>;
|
|
220
|
+
target: z.ZodOptional<z.ZodString>;
|
|
221
|
+
target_outside_workspace: z.ZodOptional<z.ZodBoolean>;
|
|
222
|
+
escape_read_only: z.ZodLiteral<true>;
|
|
223
|
+
}, z.core.$loose>>;
|
|
224
|
+
virtual_root: z.ZodString;
|
|
225
|
+
read_only: z.ZodLiteral<true>;
|
|
226
|
+
}, z.core.$loose>, Record<never, never>, Record<never, never>>;
|
|
227
|
+
/** TAL-263: a granted file's content and preview kind; an `html` preview's `preview_url` frames `/api/escape/file/raw`. */
|
|
228
|
+
escapeRead: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
229
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
230
|
+
token: z.ZodOptional<z.ZodString>;
|
|
231
|
+
path: z.ZodOptional<z.ZodString>;
|
|
232
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
233
|
+
path: z.ZodOptional<z.ZodString>;
|
|
234
|
+
content: z.ZodOptional<z.ZodString>;
|
|
235
|
+
lines: z.ZodOptional<z.ZodNumber>;
|
|
236
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
237
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
238
|
+
binary: z.ZodOptional<z.ZodBoolean>;
|
|
239
|
+
mime: z.ZodOptional<z.ZodString>;
|
|
240
|
+
preview: z.ZodOptional<z.ZodEnum<{
|
|
241
|
+
text: "text";
|
|
242
|
+
image: "image";
|
|
243
|
+
audio: "audio";
|
|
244
|
+
video: "video";
|
|
245
|
+
pdf: "pdf";
|
|
246
|
+
markdown: "markdown";
|
|
247
|
+
csv: "csv";
|
|
248
|
+
html: "html";
|
|
249
|
+
binary: "binary";
|
|
250
|
+
}>>;
|
|
251
|
+
table: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
|
|
252
|
+
table_truncated: z.ZodOptional<z.ZodBoolean>;
|
|
253
|
+
preview_url: z.ZodOptional<z.ZodString>;
|
|
254
|
+
escape_read_only: z.ZodLiteral<true>;
|
|
255
|
+
}, z.core.$loose>, Record<never, never>, Record<never, never>>;
|
|
174
256
|
};
|
|
175
257
|
};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { oc } from '@orpc/contract';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { WorkspaceEntrySchema, WorkspacesSchema, DirListingSchema, FileContentSchema } from '../views.js';
|
|
3
|
+
import { WorkspaceEntrySchema, WorkspacesSchema, DirListingSchema, FileContentSchema, FileEntrySchema } from '../views.js';
|
|
4
4
|
const Json = z.unknown();
|
|
5
5
|
const tags = ['workspaces'];
|
|
6
6
|
const WorkspacesMutation = z.object({ ok: z.literal(true), workspaces: z.array(WorkspaceEntrySchema) });
|
|
7
7
|
const SessionPath = z.object({ session_id: z.string(), path: z.string() });
|
|
8
8
|
const OkPath = z.object({ ok: z.literal(true), path: z.string() });
|
|
9
|
+
/** TAL-263: `token` is the grant from `files.escapeAuthorize`; `path` is workspace-relative and must sit under the granted symlink. */
|
|
10
|
+
const EscapeQuery = z.object({ session_id: z.string().optional(), token: z.string().optional(), path: z.string().optional() });
|
|
11
|
+
const EscapeReadOnly = { escape_read_only: z.literal(true).describe('Opened through an escape grant; clients offer no edits.') };
|
|
9
12
|
export const workspacesContract = {
|
|
10
13
|
workspaces: {
|
|
11
14
|
list: oc.route({ method: 'GET', path: '/api/workspaces', tags }).output(WorkspacesSchema),
|
|
@@ -25,7 +28,21 @@ export const workspacesContract = {
|
|
|
25
28
|
rename: oc.route({ method: 'POST', path: '/api/file/rename', tags: ['files'] }).input(SessionPath.extend({ new_name: z.string() })).output(z.object({ ok: z.literal(true), old_path: z.string(), new_path: z.string() })),
|
|
26
29
|
move: oc.route({ method: 'POST', path: '/api/file/move', tags: ['files'] }).input(SessionPath.extend({ dest_dir: z.string().optional(), destination: z.string().optional() })).output(z.object({ ok: z.literal(true), old_path: z.string(), new_path: z.string() })),
|
|
27
30
|
reveal: oc.route({ method: 'POST', path: '/api/file/reveal', tags: ['files'] }).input(SessionPath).output(OkPath),
|
|
31
|
+
path: oc.route({ method: 'POST', path: '/api/file/path', tags: ['files'], summary: 'Absolute on-disk path of a workspace-relative path; the file need not exist.' }).input(SessionPath).output(OkPath),
|
|
28
32
|
openVsCode: oc.route({ method: 'POST', path: '/api/file/open-vscode', tags: ['files'] }).input(SessionPath).output(OkPath),
|
|
33
|
+
/**
|
|
34
|
+
* TAL-263: a 300-second, read-only grant for one workspace symlink whose target sits outside the workspace. A directory
|
|
35
|
+
* grant reaches the target's tree; a file grant reaches that file alone. Requires a same-origin `Origin` header; a
|
|
36
|
+
* supplied `token` is refused. Any later change to the link expires the grant (403).
|
|
37
|
+
*/
|
|
38
|
+
escapeAuthorize: oc.route({ method: 'POST', path: '/api/escape/authorize', tags: ['files'] })
|
|
39
|
+
.input(z.object({ session_id: z.string().optional(), path: z.string().optional(), token: z.string().optional() }))
|
|
40
|
+
.output(z.object({ token: z.string(), path: z.string(), is_dir: z.boolean(), expires_at: z.number(), expires_in: z.number().int(), read_only: z.literal(true) })),
|
|
41
|
+
/** TAL-263: a granted directory listed under virtual workspace paths; nested links leaving the grant stay display-only. */
|
|
42
|
+
escapeList: oc.route({ method: 'GET', path: '/api/escape/list', tags: ['files'] }).input(EscapeQuery)
|
|
43
|
+
.output(DirListingSchema.extend({ path: z.string(), entries: z.array(FileEntrySchema.extend(EscapeReadOnly)), virtual_root: z.string(), read_only: z.literal(true) })),
|
|
44
|
+
/** TAL-263: a granted file's content and preview kind; an `html` preview's `preview_url` frames `/api/escape/file/raw`. */
|
|
45
|
+
escapeRead: oc.route({ method: 'GET', path: '/api/escape/file/read', tags: ['files'] }).input(EscapeQuery).output(FileContentSchema.extend(EscapeReadOnly)),
|
|
29
46
|
},
|
|
30
47
|
};
|
|
31
48
|
//# sourceMappingURL=workspaces.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspaces.js","sourceRoot":"","sources":["../../src/routes/workspaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAA;AACnC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"workspaces.js","sourceRoot":"","sources":["../../src/routes/workspaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAA;AACnC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAE1H,MAAM,IAAI,GAAG,CAAC,CAAC,OAAO,EAAE,CAAA;AACxB,MAAM,IAAI,GAAG,CAAC,YAAY,CAAC,CAAA;AAC3B,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,EAAE,CAAC,CAAA;AAGvG,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAA;AAC1E,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,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AE,CAAC,CAAC,MAAM,EAAE,EAAE,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACnK,2HAA2H;QAC3H,UAAU,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,kBAAkB,EAAE,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC;aAClG,MAAM,CAAC,gBAAgB,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACxK,2HAA2H;QAC3H,UAAU,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,uBAAuB,EAAE,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,iBAAiB,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;KAC5J;CACF,CAAA"}
|
|
@@ -328,6 +328,46 @@ export declare const SIDECAR_METHODS: {
|
|
|
328
328
|
supports_reasoning: z.ZodNullable<z.ZodBoolean>;
|
|
329
329
|
}, z.core.$strip>;
|
|
330
330
|
};
|
|
331
|
+
readonly 'checkpoints.list': {
|
|
332
|
+
readonly params: z.ZodObject<{
|
|
333
|
+
profile_home: z.ZodString;
|
|
334
|
+
workspace: z.ZodString;
|
|
335
|
+
}, z.core.$strip>;
|
|
336
|
+
readonly result: z.ZodObject<{
|
|
337
|
+
checkpoints: z.ZodArray<z.ZodObject<{
|
|
338
|
+
hash: z.ZodString;
|
|
339
|
+
short_hash: z.ZodString;
|
|
340
|
+
timestamp: z.ZodString;
|
|
341
|
+
reason: z.ZodString;
|
|
342
|
+
files_changed: z.ZodNumber;
|
|
343
|
+
insertions: z.ZodNumber;
|
|
344
|
+
deletions: z.ZodNumber;
|
|
345
|
+
}, z.core.$strip>>;
|
|
346
|
+
store: z.ZodString;
|
|
347
|
+
}, z.core.$strip>;
|
|
348
|
+
};
|
|
349
|
+
readonly 'checkpoints.diff': {
|
|
350
|
+
readonly params: z.ZodObject<{
|
|
351
|
+
profile_home: z.ZodString;
|
|
352
|
+
workspace: z.ZodString;
|
|
353
|
+
checkpoint: z.ZodString;
|
|
354
|
+
}, z.core.$strip>;
|
|
355
|
+
readonly result: z.ZodObject<{
|
|
356
|
+
stat: z.ZodString;
|
|
357
|
+
diff: z.ZodString;
|
|
358
|
+
}, z.core.$strip>;
|
|
359
|
+
};
|
|
360
|
+
readonly 'checkpoints.restore': {
|
|
361
|
+
readonly params: z.ZodObject<{
|
|
362
|
+
profile_home: z.ZodString;
|
|
363
|
+
workspace: z.ZodString;
|
|
364
|
+
checkpoint: z.ZodString;
|
|
365
|
+
}, z.core.$strip>;
|
|
366
|
+
readonly result: z.ZodObject<{
|
|
367
|
+
restored_to: z.ZodString;
|
|
368
|
+
reason: z.ZodString;
|
|
369
|
+
}, z.core.$strip>;
|
|
370
|
+
};
|
|
331
371
|
readonly 'worktree.create': {
|
|
332
372
|
readonly params: z.ZodObject<{
|
|
333
373
|
profile_home: z.ZodString;
|
|
@@ -340,6 +380,39 @@ export declare const SIDECAR_METHODS: {
|
|
|
340
380
|
base: z.ZodNullable<z.ZodString>;
|
|
341
381
|
}, z.core.$strip>;
|
|
342
382
|
};
|
|
383
|
+
readonly 'gateway.control': {
|
|
384
|
+
readonly params: z.ZodObject<{
|
|
385
|
+
profile_home: z.ZodString;
|
|
386
|
+
cli_profile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
387
|
+
quick_timeout_seconds: z.ZodOptional<z.ZodNumber>;
|
|
388
|
+
background_wait_seconds: z.ZodOptional<z.ZodNumber>;
|
|
389
|
+
action: z.ZodEnum<{
|
|
390
|
+
start: "start";
|
|
391
|
+
stop: "stop";
|
|
392
|
+
restart: "restart";
|
|
393
|
+
}>;
|
|
394
|
+
}, z.core.$strip>;
|
|
395
|
+
readonly result: z.ZodObject<{
|
|
396
|
+
status: z.ZodEnum<{
|
|
397
|
+
completed: "completed";
|
|
398
|
+
failed: "failed";
|
|
399
|
+
busy: "busy";
|
|
400
|
+
}>;
|
|
401
|
+
message: z.ZodString;
|
|
402
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
403
|
+
returncode: z.ZodOptional<z.ZodNumber>;
|
|
404
|
+
timed_out: z.ZodOptional<z.ZodBoolean>;
|
|
405
|
+
}, z.core.$strip>;
|
|
406
|
+
readonly stream: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
407
|
+
event: z.ZodLiteral<"progress">;
|
|
408
|
+
data: z.ZodObject<{
|
|
409
|
+
phase: z.ZodEnum<{
|
|
410
|
+
started: "started";
|
|
411
|
+
draining: "draining";
|
|
412
|
+
}>;
|
|
413
|
+
}, z.core.$strip>;
|
|
414
|
+
}, z.core.$strip>], "event">;
|
|
415
|
+
};
|
|
343
416
|
readonly 'gateway.restart': {
|
|
344
417
|
readonly params: z.ZodObject<{
|
|
345
418
|
profile_home: z.ZodString;
|
|
@@ -356,6 +429,7 @@ export declare const SIDECAR_METHODS: {
|
|
|
356
429
|
message: z.ZodString;
|
|
357
430
|
detail: z.ZodOptional<z.ZodString>;
|
|
358
431
|
returncode: z.ZodOptional<z.ZodNumber>;
|
|
432
|
+
timed_out: z.ZodOptional<z.ZodBoolean>;
|
|
359
433
|
}, z.core.$strip>;
|
|
360
434
|
readonly stream: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
361
435
|
event: z.ZodLiteral<"progress">;
|
|
@@ -645,6 +719,8 @@ export declare const SIDECAR_METHODS: {
|
|
|
645
719
|
main_fallback: z.ZodOptional<z.ZodBoolean>;
|
|
646
720
|
max_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
647
721
|
temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
722
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
723
|
+
provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
648
724
|
}, z.core.$strip>;
|
|
649
725
|
readonly result: z.ZodObject<{
|
|
650
726
|
model: z.ZodString;
|
|
@@ -654,6 +730,7 @@ export declare const SIDECAR_METHODS: {
|
|
|
654
730
|
completion_tokens: z.ZodOptional<z.ZodNumber>;
|
|
655
731
|
total_tokens: z.ZodOptional<z.ZodNumber>;
|
|
656
732
|
}, z.core.$strip>>;
|
|
733
|
+
finish_reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
657
734
|
}, z.core.$strip>;
|
|
658
735
|
readonly stream: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
659
736
|
event: z.ZodLiteral<"token">;
|
|
@@ -1144,6 +1221,13 @@ export declare const SIDECAR_METHODS: {
|
|
|
1144
1221
|
skill_count: z.ZodNumber;
|
|
1145
1222
|
enabled_skills: z.ZodNumber;
|
|
1146
1223
|
total_skills: z.ZodNumber;
|
|
1224
|
+
display_name: z.ZodDefault<z.ZodString>;
|
|
1225
|
+
description: z.ZodDefault<z.ZodString>;
|
|
1226
|
+
has_avatar: z.ZodDefault<z.ZodBoolean>;
|
|
1227
|
+
canonical_session: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
1228
|
+
session_id: z.ZodString;
|
|
1229
|
+
tip_session_id: z.ZodString;
|
|
1230
|
+
}, z.core.$strip>>>;
|
|
1147
1231
|
}, z.core.$strip>>;
|
|
1148
1232
|
}, z.core.$strip>;
|
|
1149
1233
|
};
|
|
@@ -1167,6 +1251,13 @@ export declare const SIDECAR_METHODS: {
|
|
|
1167
1251
|
skill_count: z.ZodNumber;
|
|
1168
1252
|
enabled_skills: z.ZodNumber;
|
|
1169
1253
|
total_skills: z.ZodNumber;
|
|
1254
|
+
display_name: z.ZodDefault<z.ZodString>;
|
|
1255
|
+
description: z.ZodDefault<z.ZodString>;
|
|
1256
|
+
has_avatar: z.ZodDefault<z.ZodBoolean>;
|
|
1257
|
+
canonical_session: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
1258
|
+
session_id: z.ZodString;
|
|
1259
|
+
tip_session_id: z.ZodString;
|
|
1260
|
+
}, z.core.$strip>>>;
|
|
1170
1261
|
}, z.core.$strip>;
|
|
1171
1262
|
}, z.core.$strip>;
|
|
1172
1263
|
};
|
|
@@ -1230,6 +1321,7 @@ export declare const SIDECAR_METHODS: {
|
|
|
1230
1321
|
profile_home: z.ZodString;
|
|
1231
1322
|
session_id: z.ZodString;
|
|
1232
1323
|
title: z.ZodString;
|
|
1324
|
+
manual: z.ZodOptional<z.ZodBoolean>;
|
|
1233
1325
|
}, z.core.$strip>;
|
|
1234
1326
|
readonly result: z.ZodObject<{
|
|
1235
1327
|
ok: z.ZodBoolean;
|
|
@@ -1244,6 +1336,19 @@ export declare const SIDECAR_METHODS: {
|
|
|
1244
1336
|
ok: z.ZodBoolean;
|
|
1245
1337
|
}, z.core.$strip>;
|
|
1246
1338
|
};
|
|
1339
|
+
readonly 'state_db.append_message': {
|
|
1340
|
+
readonly params: z.ZodObject<{
|
|
1341
|
+
profile_home: z.ZodString;
|
|
1342
|
+
session_id: z.ZodString;
|
|
1343
|
+
role: z.ZodString;
|
|
1344
|
+
content: z.ZodString;
|
|
1345
|
+
tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1346
|
+
timestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1347
|
+
}, z.core.$strip>;
|
|
1348
|
+
readonly result: z.ZodObject<{
|
|
1349
|
+
ok: z.ZodBoolean;
|
|
1350
|
+
}, z.core.$strip>;
|
|
1351
|
+
};
|
|
1247
1352
|
readonly 'kanban.board': {
|
|
1248
1353
|
readonly params: z.ZodObject<{
|
|
1249
1354
|
profile_home: z.ZodString;
|
|
@@ -1624,6 +1729,32 @@ export declare const SIDECAR_METHODS: {
|
|
|
1624
1729
|
}>;
|
|
1625
1730
|
}, z.core.$strip>;
|
|
1626
1731
|
};
|
|
1732
|
+
readonly 'commands.bundles': {
|
|
1733
|
+
readonly params: z.ZodObject<{
|
|
1734
|
+
profile_home: z.ZodString;
|
|
1735
|
+
}, z.core.$strip>;
|
|
1736
|
+
readonly result: z.ZodObject<{
|
|
1737
|
+
bundles: z.ZodArray<z.ZodObject<{
|
|
1738
|
+
name: z.ZodString;
|
|
1739
|
+
description: z.ZodString;
|
|
1740
|
+
skill_count: z.ZodNumber;
|
|
1741
|
+
source: z.ZodLiteral<"bundle">;
|
|
1742
|
+
}, z.core.$strip>>;
|
|
1743
|
+
}, z.core.$strip>;
|
|
1744
|
+
};
|
|
1745
|
+
readonly 'commands.bundle_resolve': {
|
|
1746
|
+
readonly params: z.ZodObject<{
|
|
1747
|
+
profile_home: z.ZodString;
|
|
1748
|
+
command: z.ZodString;
|
|
1749
|
+
}, z.core.$strip>;
|
|
1750
|
+
readonly result: z.ZodObject<{
|
|
1751
|
+
name: z.ZodString;
|
|
1752
|
+
source: z.ZodLiteral<"bundle">;
|
|
1753
|
+
message: z.ZodString;
|
|
1754
|
+
loaded_skills: z.ZodArray<z.ZodString>;
|
|
1755
|
+
missing_skills: z.ZodArray<z.ZodString>;
|
|
1756
|
+
}, z.core.$strip>;
|
|
1757
|
+
};
|
|
1627
1758
|
readonly 'commands.moa_preset': {
|
|
1628
1759
|
readonly params: z.ZodObject<{
|
|
1629
1760
|
profile_home: z.ZodString;
|
|
@@ -1874,6 +2005,8 @@ export type SidecarMethods = typeof SIDECAR_METHODS;
|
|
|
1874
2005
|
export type SidecarMethodName = keyof SidecarMethods;
|
|
1875
2006
|
export type SidecarParams<M extends SidecarMethodName> = z.input<SidecarMethods[M]['params']>;
|
|
1876
2007
|
export type SidecarResult<M extends SidecarMethodName> = z.output<SidecarMethods[M]['result']>;
|
|
2008
|
+
/** A result before its schema applies defaults (what a fake sidecar may answer; the call parses it). */
|
|
2009
|
+
export type SidecarResultInput<M extends SidecarMethodName> = z.input<SidecarMethods[M]['result']>;
|
|
1877
2010
|
export type SidecarStreamEvent<M extends SidecarMethodName> = SidecarMethods[M] extends {
|
|
1878
2011
|
stream: infer S extends z.ZodType;
|
|
1879
2012
|
} ? z.output<S> : never;
|
package/dist/sidecar/methods.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { AUX_METHODS, COMMANDS_METHODS, CRON_METHODS, GATEWAY_METHODS, GOALS_METHODS, KANBAN_METHODS, MCP_METHODS, PROCESS_METHODS, PROFILES_METHODS, PROVIDERS_METHODS, SKILLS_METHODS, STATE_DB_METHODS, STT_METHODS, OAUTH_METHODS, TEXT_METHODS, USAGE_METHODS, WORKTREE_METHODS, CHAT_METHODS, CONFIG_METHODS, } from './namespaces.js';
|
|
2
|
+
import { AUX_METHODS, COMMANDS_METHODS, CRON_METHODS, GATEWAY_METHODS, GOALS_METHODS, KANBAN_METHODS, MCP_METHODS, PROCESS_METHODS, PROFILES_METHODS, PROVIDERS_METHODS, SKILLS_METHODS, STATE_DB_METHODS, STT_METHODS, OAUTH_METHODS, TEXT_METHODS, USAGE_METHODS, WORKTREE_METHODS, CHECKPOINTS_METHODS, CHAT_METHODS, CONFIG_METHODS, } from './namespaces.js';
|
|
3
3
|
import { OkResultSchema, RpcCancelParamsSchema, RpcCancelResultSchema, RpcMethodsResultSchema, RuntimeDescribeSchema, RuntimeEnsureCurrentResultSchema, RuntimeEnvParamsSchema, RuntimeHandshakeParamsSchema, RuntimeShutdownParamsSchema, } from './runtime.js';
|
|
4
4
|
const Empty = z.object({});
|
|
5
5
|
/**
|
|
@@ -32,6 +32,7 @@ export const SIDECAR_METHODS = {
|
|
|
32
32
|
...USAGE_METHODS,
|
|
33
33
|
...GATEWAY_METHODS,
|
|
34
34
|
...WORKTREE_METHODS,
|
|
35
|
+
...CHECKPOINTS_METHODS,
|
|
35
36
|
...CONFIG_METHODS,
|
|
36
37
|
...CHAT_METHODS,
|
|
37
38
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"methods.js","sourceRoot":"","sources":["../../src/sidecar/methods.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EACL,WAAW,EAAE,gBAAgB,EAAE,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,cAAc,EAAE,WAAW,EAAE,eAAe,EAAE,gBAAgB,EAC3I,iBAAiB,EAAE,cAAc,EAAE,gBAAgB,EAAE,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,gBAAgB,EAAE,YAAY,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"methods.js","sourceRoot":"","sources":["../../src/sidecar/methods.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EACL,WAAW,EAAE,gBAAgB,EAAE,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,cAAc,EAAE,WAAW,EAAE,eAAe,EAAE,gBAAgB,EAC3I,iBAAiB,EAAE,cAAc,EAAE,gBAAgB,EAAE,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,YAAY,EAAE,cAAc,GAClL,MAAM,iBAAiB,CAAA;AACxB,OAAO,EACL,cAAc,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,qBAAqB,EAC3G,gCAAgC,EAAE,sBAAsB,EAAE,4BAA4B,EAAE,2BAA2B,GACpH,MAAM,cAAc,CAAA;AAErB,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;AAE1B;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,YAAY,EAAE,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,EAAE,qBAAqB,EAAE;IAC9E,aAAa,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,sBAAsB,EAAE;IAChE,mBAAmB,EAAE,EAAE,MAAM,EAAE,4BAA4B,EAAE,MAAM,EAAE,qBAAqB,EAAE;IAC5F,gBAAgB,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,qBAAqB,EAAE;IAClE,wBAAwB,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,gCAAgC,EAAE;IACrF,kBAAkB,EAAE,EAAE,MAAM,EAAE,2BAA2B,EAAE,MAAM,EAAE,cAAc,EAAE;IACnF,aAAa,EAAE,EAAE,MAAM,EAAE,sBAAsB,EAAE,MAAM,EAAE,cAAc,EAAE;IACzE,GAAG,aAAa;IAChB,GAAG,gBAAgB;IACnB,GAAG,cAAc;IACjB,GAAG,gBAAgB;IACnB,GAAG,gBAAgB;IACnB,GAAG,cAAc;IACjB,GAAG,WAAW;IACd,GAAG,WAAW;IACd,GAAG,YAAY;IACf,GAAG,iBAAiB;IACpB,GAAG,aAAa;IAChB,GAAG,WAAW;IACd,GAAG,YAAY;IACf,GAAG,eAAe;IAClB,GAAG,aAAa;IAChB,GAAG,eAAe;IAClB,GAAG,gBAAgB;IACnB,GAAG,mBAAmB;IACtB,GAAG,cAAc;IACjB,GAAG,YAAY;CACP,CAAA;AAUV,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC,IAAI,CAAC,eAAe,CAAwB,CAAA"}
|
|
@@ -194,6 +194,21 @@ export declare const PluginProviderSchema: z.ZodObject<{
|
|
|
194
194
|
unavailable: "unavailable";
|
|
195
195
|
}>;
|
|
196
196
|
}, z.core.$strip>;
|
|
197
|
+
/** A skill bundle: `/<name>` loads its `skill_count` skills in one message (TAL-265). */
|
|
198
|
+
export declare const CommandBundleSchema: z.ZodObject<{
|
|
199
|
+
name: z.ZodString;
|
|
200
|
+
description: z.ZodString;
|
|
201
|
+
skill_count: z.ZodNumber;
|
|
202
|
+
source: z.ZodLiteral<"bundle">;
|
|
203
|
+
}, z.core.$strip>;
|
|
204
|
+
/** `message` is the user message that loads the bundle's skills; members not installed or disabled are in `missing_skills` or left out. */
|
|
205
|
+
export declare const CommandBundleInvocationSchema: z.ZodObject<{
|
|
206
|
+
name: z.ZodString;
|
|
207
|
+
source: z.ZodLiteral<"bundle">;
|
|
208
|
+
message: z.ZodString;
|
|
209
|
+
loaded_skills: z.ZodArray<z.ZodString>;
|
|
210
|
+
missing_skills: z.ZodArray<z.ZodString>;
|
|
211
|
+
}, z.core.$strip>;
|
|
197
212
|
export declare const COMMANDS_METHODS: {
|
|
198
213
|
readonly 'commands.registry': {
|
|
199
214
|
readonly params: z.ZodObject<{
|
|
@@ -226,6 +241,32 @@ export declare const COMMANDS_METHODS: {
|
|
|
226
241
|
}>;
|
|
227
242
|
}, z.core.$strip>;
|
|
228
243
|
};
|
|
244
|
+
readonly 'commands.bundles': {
|
|
245
|
+
readonly params: z.ZodObject<{
|
|
246
|
+
profile_home: z.ZodString;
|
|
247
|
+
}, z.core.$strip>;
|
|
248
|
+
readonly result: z.ZodObject<{
|
|
249
|
+
bundles: z.ZodArray<z.ZodObject<{
|
|
250
|
+
name: z.ZodString;
|
|
251
|
+
description: z.ZodString;
|
|
252
|
+
skill_count: z.ZodNumber;
|
|
253
|
+
source: z.ZodLiteral<"bundle">;
|
|
254
|
+
}, z.core.$strip>>;
|
|
255
|
+
}, z.core.$strip>;
|
|
256
|
+
};
|
|
257
|
+
readonly 'commands.bundle_resolve': {
|
|
258
|
+
readonly params: z.ZodObject<{
|
|
259
|
+
profile_home: z.ZodString;
|
|
260
|
+
command: z.ZodString;
|
|
261
|
+
}, z.core.$strip>;
|
|
262
|
+
readonly result: z.ZodObject<{
|
|
263
|
+
name: z.ZodString;
|
|
264
|
+
source: z.ZodLiteral<"bundle">;
|
|
265
|
+
message: z.ZodString;
|
|
266
|
+
loaded_skills: z.ZodArray<z.ZodString>;
|
|
267
|
+
missing_skills: z.ZodArray<z.ZodString>;
|
|
268
|
+
}, z.core.$strip>;
|
|
269
|
+
};
|
|
229
270
|
readonly 'commands.moa_preset': {
|
|
230
271
|
readonly params: z.ZodObject<{
|
|
231
272
|
profile_home: z.ZodString;
|
|
@@ -711,11 +752,13 @@ export declare const STATE_DB_METHODS: {
|
|
|
711
752
|
ok: z.ZodBoolean;
|
|
712
753
|
}, z.core.$strip>;
|
|
713
754
|
};
|
|
755
|
+
/** TAL-574: `manual` writes a user-requested title (rename or regenerate) with `user` provenance; otherwise it is an `llm` auto title. */
|
|
714
756
|
readonly 'state_db.sync_title': {
|
|
715
757
|
readonly params: z.ZodObject<{
|
|
716
758
|
profile_home: z.ZodString;
|
|
717
759
|
session_id: z.ZodString;
|
|
718
760
|
title: z.ZodString;
|
|
761
|
+
manual: z.ZodOptional<z.ZodBoolean>;
|
|
719
762
|
}, z.core.$strip>;
|
|
720
763
|
readonly result: z.ZodObject<{
|
|
721
764
|
ok: z.ZodBoolean;
|
|
@@ -730,7 +773,26 @@ export declare const STATE_DB_METHODS: {
|
|
|
730
773
|
ok: z.ZodBoolean;
|
|
731
774
|
}, z.core.$strip>;
|
|
732
775
|
};
|
|
776
|
+
/** TAL-258: append one row through the Agent's `SessionDB.append_message` (bumps `message_count`); `ok` is false without a state.db. */
|
|
777
|
+
readonly 'state_db.append_message': {
|
|
778
|
+
readonly params: z.ZodObject<{
|
|
779
|
+
profile_home: z.ZodString;
|
|
780
|
+
session_id: z.ZodString;
|
|
781
|
+
role: z.ZodString;
|
|
782
|
+
content: z.ZodString;
|
|
783
|
+
tool_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
784
|
+
timestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
785
|
+
}, z.core.$strip>;
|
|
786
|
+
readonly result: z.ZodObject<{
|
|
787
|
+
ok: z.ZodBoolean;
|
|
788
|
+
}, z.core.$strip>;
|
|
789
|
+
};
|
|
733
790
|
};
|
|
791
|
+
/** TAL-213: the profile's canonical Bot Chat (its session titled exactly "Bot Chat") and that chat's live compression tip. */
|
|
792
|
+
export declare const CanonicalBotChatSchema: z.ZodObject<{
|
|
793
|
+
session_id: z.ZodString;
|
|
794
|
+
tip_session_id: z.ZodString;
|
|
795
|
+
}, z.core.$strip>;
|
|
734
796
|
export declare const ProfileRowSchema: z.ZodObject<{
|
|
735
797
|
name: z.ZodString;
|
|
736
798
|
path: z.ZodString;
|
|
@@ -743,6 +805,13 @@ export declare const ProfileRowSchema: z.ZodObject<{
|
|
|
743
805
|
skill_count: z.ZodNumber;
|
|
744
806
|
enabled_skills: z.ZodNumber;
|
|
745
807
|
total_skills: z.ZodNumber;
|
|
808
|
+
display_name: z.ZodDefault<z.ZodString>;
|
|
809
|
+
description: z.ZodDefault<z.ZodString>;
|
|
810
|
+
has_avatar: z.ZodDefault<z.ZodBoolean>;
|
|
811
|
+
canonical_session: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
812
|
+
session_id: z.ZodString;
|
|
813
|
+
tip_session_id: z.ZodString;
|
|
814
|
+
}, z.core.$strip>>>;
|
|
746
815
|
}, z.core.$strip>;
|
|
747
816
|
export declare const PROFILES_METHODS: {
|
|
748
817
|
readonly 'profiles.list': {
|
|
@@ -762,6 +831,13 @@ export declare const PROFILES_METHODS: {
|
|
|
762
831
|
skill_count: z.ZodNumber;
|
|
763
832
|
enabled_skills: z.ZodNumber;
|
|
764
833
|
total_skills: z.ZodNumber;
|
|
834
|
+
display_name: z.ZodDefault<z.ZodString>;
|
|
835
|
+
description: z.ZodDefault<z.ZodString>;
|
|
836
|
+
has_avatar: z.ZodDefault<z.ZodBoolean>;
|
|
837
|
+
canonical_session: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
838
|
+
session_id: z.ZodString;
|
|
839
|
+
tip_session_id: z.ZodString;
|
|
840
|
+
}, z.core.$strip>>>;
|
|
765
841
|
}, z.core.$strip>>;
|
|
766
842
|
}, z.core.$strip>;
|
|
767
843
|
};
|
|
@@ -785,6 +861,13 @@ export declare const PROFILES_METHODS: {
|
|
|
785
861
|
skill_count: z.ZodNumber;
|
|
786
862
|
enabled_skills: z.ZodNumber;
|
|
787
863
|
total_skills: z.ZodNumber;
|
|
864
|
+
display_name: z.ZodDefault<z.ZodString>;
|
|
865
|
+
description: z.ZodDefault<z.ZodString>;
|
|
866
|
+
has_avatar: z.ZodDefault<z.ZodBoolean>;
|
|
867
|
+
canonical_session: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
868
|
+
session_id: z.ZodString;
|
|
869
|
+
tip_session_id: z.ZodString;
|
|
870
|
+
}, z.core.$strip>>>;
|
|
788
871
|
}, z.core.$strip>;
|
|
789
872
|
}, z.core.$strip>;
|
|
790
873
|
};
|
|
@@ -1342,6 +1425,10 @@ export declare const AuxUsageSchema: z.ZodObject<{
|
|
|
1342
1425
|
total_tokens: z.ZodOptional<z.ZodNumber>;
|
|
1343
1426
|
}, z.core.$strip>;
|
|
1344
1427
|
export declare const AUX_METHODS: {
|
|
1428
|
+
/**
|
|
1429
|
+
* One auxiliary completion. TAL-258: `model` (with `provider`) asks that model itself, reasoning off and no tools, instead
|
|
1430
|
+
* of the task's auxiliary route; `credential_missing` means it has no credential. `finish_reason` is the provider's, when known.
|
|
1431
|
+
*/
|
|
1345
1432
|
readonly 'aux.complete': {
|
|
1346
1433
|
readonly params: z.ZodObject<{
|
|
1347
1434
|
profile_home: z.ZodString;
|
|
@@ -1351,6 +1438,8 @@ export declare const AUX_METHODS: {
|
|
|
1351
1438
|
main_fallback: z.ZodOptional<z.ZodBoolean>;
|
|
1352
1439
|
max_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1353
1440
|
temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1441
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1442
|
+
provider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1354
1443
|
}, z.core.$strip>;
|
|
1355
1444
|
readonly result: z.ZodObject<{
|
|
1356
1445
|
model: z.ZodString;
|
|
@@ -1360,6 +1449,7 @@ export declare const AUX_METHODS: {
|
|
|
1360
1449
|
completion_tokens: z.ZodOptional<z.ZodNumber>;
|
|
1361
1450
|
total_tokens: z.ZodOptional<z.ZodNumber>;
|
|
1362
1451
|
}, z.core.$strip>>;
|
|
1452
|
+
finish_reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1363
1453
|
}, z.core.$strip>;
|
|
1364
1454
|
readonly stream: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1365
1455
|
event: z.ZodLiteral<"token">;
|
|
@@ -1781,6 +1871,58 @@ export declare const WORKTREE_METHODS: {
|
|
|
1781
1871
|
}, z.core.$strip>;
|
|
1782
1872
|
};
|
|
1783
1873
|
};
|
|
1874
|
+
export declare const AgentCheckpointSchema: z.ZodObject<{
|
|
1875
|
+
hash: z.ZodString;
|
|
1876
|
+
short_hash: z.ZodString;
|
|
1877
|
+
timestamp: z.ZodString;
|
|
1878
|
+
reason: z.ZodString;
|
|
1879
|
+
files_changed: z.ZodNumber;
|
|
1880
|
+
insertions: z.ZodNumber;
|
|
1881
|
+
deletions: z.ZodNumber;
|
|
1882
|
+
}, z.core.$strip>;
|
|
1883
|
+
export declare const CHECKPOINTS_METHODS: {
|
|
1884
|
+
readonly 'checkpoints.list': {
|
|
1885
|
+
readonly params: z.ZodObject<{
|
|
1886
|
+
profile_home: z.ZodString;
|
|
1887
|
+
workspace: z.ZodString;
|
|
1888
|
+
}, z.core.$strip>;
|
|
1889
|
+
readonly result: z.ZodObject<{
|
|
1890
|
+
checkpoints: z.ZodArray<z.ZodObject<{
|
|
1891
|
+
hash: z.ZodString;
|
|
1892
|
+
short_hash: z.ZodString;
|
|
1893
|
+
timestamp: z.ZodString;
|
|
1894
|
+
reason: z.ZodString;
|
|
1895
|
+
files_changed: z.ZodNumber;
|
|
1896
|
+
insertions: z.ZodNumber;
|
|
1897
|
+
deletions: z.ZodNumber;
|
|
1898
|
+
}, z.core.$strip>>;
|
|
1899
|
+
store: z.ZodString;
|
|
1900
|
+
}, z.core.$strip>;
|
|
1901
|
+
};
|
|
1902
|
+
/** `diff` is `git diff <checkpoint> --cached` over the workspace: `a/` is the checkpoint, `b/` the files now. */
|
|
1903
|
+
readonly 'checkpoints.diff': {
|
|
1904
|
+
readonly params: z.ZodObject<{
|
|
1905
|
+
profile_home: z.ZodString;
|
|
1906
|
+
workspace: z.ZodString;
|
|
1907
|
+
checkpoint: z.ZodString;
|
|
1908
|
+
}, z.core.$strip>;
|
|
1909
|
+
readonly result: z.ZodObject<{
|
|
1910
|
+
stat: z.ZodString;
|
|
1911
|
+
diff: z.ZodString;
|
|
1912
|
+
}, z.core.$strip>;
|
|
1913
|
+
};
|
|
1914
|
+
readonly 'checkpoints.restore': {
|
|
1915
|
+
readonly params: z.ZodObject<{
|
|
1916
|
+
profile_home: z.ZodString;
|
|
1917
|
+
workspace: z.ZodString;
|
|
1918
|
+
checkpoint: z.ZodString;
|
|
1919
|
+
}, z.core.$strip>;
|
|
1920
|
+
readonly result: z.ZodObject<{
|
|
1921
|
+
restored_to: z.ZodString;
|
|
1922
|
+
reason: z.ZodString;
|
|
1923
|
+
}, z.core.$strip>;
|
|
1924
|
+
};
|
|
1925
|
+
};
|
|
1784
1926
|
export declare const ChatUsageSchema: z.ZodObject<{
|
|
1785
1927
|
prompt_tokens: z.ZodNumber;
|
|
1786
1928
|
completion_tokens: z.ZodNumber;
|
|
@@ -2212,7 +2354,41 @@ export declare const CHAT_METHODS: {
|
|
|
2212
2354
|
}, z.core.$strip>;
|
|
2213
2355
|
};
|
|
2214
2356
|
};
|
|
2357
|
+
export declare const GATEWAY_ACTIONS: readonly ["start", "stop", "restart"];
|
|
2215
2358
|
export declare const GATEWAY_METHODS: {
|
|
2359
|
+
readonly 'gateway.control': {
|
|
2360
|
+
readonly params: z.ZodObject<{
|
|
2361
|
+
profile_home: z.ZodString;
|
|
2362
|
+
cli_profile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2363
|
+
quick_timeout_seconds: z.ZodOptional<z.ZodNumber>;
|
|
2364
|
+
background_wait_seconds: z.ZodOptional<z.ZodNumber>;
|
|
2365
|
+
action: z.ZodEnum<{
|
|
2366
|
+
start: "start";
|
|
2367
|
+
stop: "stop";
|
|
2368
|
+
restart: "restart";
|
|
2369
|
+
}>;
|
|
2370
|
+
}, z.core.$strip>;
|
|
2371
|
+
readonly result: z.ZodObject<{
|
|
2372
|
+
status: z.ZodEnum<{
|
|
2373
|
+
completed: "completed";
|
|
2374
|
+
failed: "failed";
|
|
2375
|
+
busy: "busy";
|
|
2376
|
+
}>;
|
|
2377
|
+
message: z.ZodString;
|
|
2378
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
2379
|
+
returncode: z.ZodOptional<z.ZodNumber>;
|
|
2380
|
+
timed_out: z.ZodOptional<z.ZodBoolean>;
|
|
2381
|
+
}, z.core.$strip>;
|
|
2382
|
+
readonly stream: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2383
|
+
event: z.ZodLiteral<"progress">;
|
|
2384
|
+
data: z.ZodObject<{
|
|
2385
|
+
phase: z.ZodEnum<{
|
|
2386
|
+
started: "started";
|
|
2387
|
+
draining: "draining";
|
|
2388
|
+
}>;
|
|
2389
|
+
}, z.core.$strip>;
|
|
2390
|
+
}, z.core.$strip>], "event">;
|
|
2391
|
+
};
|
|
2216
2392
|
readonly 'gateway.restart': {
|
|
2217
2393
|
readonly params: z.ZodObject<{
|
|
2218
2394
|
profile_home: z.ZodString;
|
|
@@ -2229,6 +2405,7 @@ export declare const GATEWAY_METHODS: {
|
|
|
2229
2405
|
message: z.ZodString;
|
|
2230
2406
|
detail: z.ZodOptional<z.ZodString>;
|
|
2231
2407
|
returncode: z.ZodOptional<z.ZodNumber>;
|
|
2408
|
+
timed_out: z.ZodOptional<z.ZodBoolean>;
|
|
2232
2409
|
}, z.core.$strip>;
|
|
2233
2410
|
readonly stream: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2234
2411
|
event: z.ZodLiteral<"progress">;
|