@maudecode/talaria-web-contracts 1.15.0 → 1.17.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/router.d.ts +1681 -87
- package/dist/routes/automation.d.ts +168 -16
- package/dist/routes/automation.js +15 -8
- package/dist/routes/automation.js.map +1 -1
- package/dist/routes/chat.d.ts +193 -6
- package/dist/routes/core.d.ts +8 -4
- package/dist/routes/core.js +2 -0
- package/dist/routes/core.js.map +1 -1
- package/dist/routes/git.d.ts +22 -1
- package/dist/routes/git.js +7 -3
- package/dist/routes/git.js.map +1 -1
- package/dist/routes/raw.js +2 -2
- package/dist/routes/raw.js.map +1 -1
- package/dist/routes/sessions.d.ts +1187 -43
- package/dist/routes/sessions.js +22 -3
- package/dist/routes/sessions.js.map +1 -1
- package/dist/routes/settings.d.ts +254 -11
- package/dist/routes/settings.js +9 -8
- package/dist/routes/settings.js.map +1 -1
- package/dist/routes/tools.d.ts +86 -9
- package/dist/routes/tools.js +1 -1
- package/dist/routes/tools.js.map +1 -1
- package/dist/routes/workspaces.d.ts +19 -5
- package/dist/sidecar/methods.d.ts +192 -12
- package/dist/sidecar/methods.js +2 -1
- package/dist/sidecar/methods.js.map +1 -1
- package/dist/sidecar/namespaces.d.ts +315 -15
- package/dist/sidecar/namespaces.js +78 -9
- 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/sidecar/version.js.map +1 -1
- package/dist/sse.d.ts +68 -9
- package/dist/sse.js +21 -7
- package/dist/sse.js.map +1 -1
- package/dist/views.d.ts +1392 -40
- package/dist/views.js +242 -37
- package/dist/views.js.map +1 -1
- package/fixtures/sidecar/commands.json +195 -92
- package/fixtures/sidecar/kanban.json +24 -8
- package/fixtures/sidecar/plugins.json +1 -403
- package/fixtures/sidecar/process.json +25 -0
- package/fixtures/sidecar/rpc.json +2 -1
- package/fixtures/sidecar/runtime.json +3 -3
- package/fixtures/sidecar/text.json +0 -10
- package/fixtures/sidecar/usage.json +51 -0
- package/package.json +1 -1
|
@@ -175,12 +175,24 @@ export declare const CommandSchema: z.ZodObject<{
|
|
|
175
175
|
subcommands: z.ZodArray<z.ZodString>;
|
|
176
176
|
cli_only: z.ZodBoolean;
|
|
177
177
|
gateway_only: z.ZodBoolean;
|
|
178
|
+
exec: z.ZodBoolean;
|
|
178
179
|
}, z.core.$strip>;
|
|
180
|
+
/**
|
|
181
|
+
* A model-provider plugin installed and enabled in the profile (TAL-288); bundled providers are built-ins. `setup` is the Agent's
|
|
182
|
+
* own verdict without spawning the plugin's CLI: `not_loaded` means the installed plugin could not be loaded (import failure, or its
|
|
183
|
+
* provider id or directory name is taken by another profile's plugin in this process-wide registry).
|
|
184
|
+
*/
|
|
179
185
|
export declare const PluginProviderSchema: z.ZodObject<{
|
|
180
186
|
name: z.ZodString;
|
|
181
187
|
display_name: z.ZodString;
|
|
182
|
-
|
|
183
|
-
|
|
188
|
+
auth_type: z.ZodString;
|
|
189
|
+
setup: z.ZodEnum<{
|
|
190
|
+
ready: "ready";
|
|
191
|
+
missing_cli: "missing_cli";
|
|
192
|
+
needs_setup: "needs_setup";
|
|
193
|
+
not_loaded: "not_loaded";
|
|
194
|
+
unavailable: "unavailable";
|
|
195
|
+
}>;
|
|
184
196
|
}, z.core.$strip>;
|
|
185
197
|
export declare const COMMANDS_METHODS: {
|
|
186
198
|
readonly 'commands.registry': {
|
|
@@ -197,6 +209,7 @@ export declare const COMMANDS_METHODS: {
|
|
|
197
209
|
subcommands: z.ZodArray<z.ZodString>;
|
|
198
210
|
cli_only: z.ZodBoolean;
|
|
199
211
|
gateway_only: z.ZodBoolean;
|
|
212
|
+
exec: z.ZodBoolean;
|
|
200
213
|
}, z.core.$strip>>;
|
|
201
214
|
}, z.core.$strip>;
|
|
202
215
|
};
|
|
@@ -230,8 +243,14 @@ export declare const COMMANDS_METHODS: {
|
|
|
230
243
|
providers: z.ZodArray<z.ZodObject<{
|
|
231
244
|
name: z.ZodString;
|
|
232
245
|
display_name: z.ZodString;
|
|
233
|
-
|
|
234
|
-
|
|
246
|
+
auth_type: z.ZodString;
|
|
247
|
+
setup: z.ZodEnum<{
|
|
248
|
+
ready: "ready";
|
|
249
|
+
missing_cli: "missing_cli";
|
|
250
|
+
needs_setup: "needs_setup";
|
|
251
|
+
not_loaded: "not_loaded";
|
|
252
|
+
unavailable: "unavailable";
|
|
253
|
+
}>;
|
|
235
254
|
}, z.core.$strip>>;
|
|
236
255
|
}, z.core.$strip>;
|
|
237
256
|
};
|
|
@@ -256,11 +275,14 @@ export declare const COMMANDS_METHODS: {
|
|
|
256
275
|
}, z.core.$strip>;
|
|
257
276
|
};
|
|
258
277
|
};
|
|
278
|
+
/** `claim_live`: a running task's worker still holds its claim. `has_completion_evidence`: the task stores a result, which the Agent requires to complete it (TAL-557). */
|
|
259
279
|
export declare const KanbanTaskSchema: z.ZodObject<{
|
|
260
280
|
id: z.ZodString;
|
|
261
281
|
title: z.ZodString;
|
|
262
282
|
status: z.ZodString;
|
|
263
283
|
priority: z.ZodNumber;
|
|
284
|
+
claim_live: z.ZodBoolean;
|
|
285
|
+
has_completion_evidence: z.ZodBoolean;
|
|
264
286
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
265
287
|
export declare const KanbanBoardSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
266
288
|
changed: z.ZodLiteral<false>;
|
|
@@ -275,6 +297,8 @@ export declare const KanbanBoardSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
275
297
|
title: z.ZodString;
|
|
276
298
|
status: z.ZodString;
|
|
277
299
|
priority: z.ZodNumber;
|
|
300
|
+
claim_live: z.ZodBoolean;
|
|
301
|
+
has_completion_evidence: z.ZodBoolean;
|
|
278
302
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
279
303
|
}, z.core.$strip>>;
|
|
280
304
|
tenants: z.ZodArray<z.ZodString>;
|
|
@@ -332,6 +356,8 @@ export declare const KANBAN_METHODS: {
|
|
|
332
356
|
title: z.ZodString;
|
|
333
357
|
status: z.ZodString;
|
|
334
358
|
priority: z.ZodNumber;
|
|
359
|
+
claim_live: z.ZodBoolean;
|
|
360
|
+
has_completion_evidence: z.ZodBoolean;
|
|
335
361
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
336
362
|
}, z.core.$strip>>;
|
|
337
363
|
tenants: z.ZodArray<z.ZodString>;
|
|
@@ -429,6 +455,8 @@ export declare const KANBAN_METHODS: {
|
|
|
429
455
|
title: z.ZodString;
|
|
430
456
|
status: z.ZodString;
|
|
431
457
|
priority: z.ZodNumber;
|
|
458
|
+
claim_live: z.ZodBoolean;
|
|
459
|
+
has_completion_evidence: z.ZodBoolean;
|
|
432
460
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
433
461
|
comments: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
434
462
|
events: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -452,6 +480,8 @@ export declare const KANBAN_METHODS: {
|
|
|
452
480
|
title: z.ZodString;
|
|
453
481
|
status: z.ZodString;
|
|
454
482
|
priority: z.ZodNumber;
|
|
483
|
+
claim_live: z.ZodBoolean;
|
|
484
|
+
has_completion_evidence: z.ZodBoolean;
|
|
455
485
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
456
486
|
read_only: z.ZodBoolean;
|
|
457
487
|
}, z.core.$strip>;
|
|
@@ -469,6 +499,8 @@ export declare const KANBAN_METHODS: {
|
|
|
469
499
|
title: z.ZodString;
|
|
470
500
|
status: z.ZodString;
|
|
471
501
|
priority: z.ZodNumber;
|
|
502
|
+
claim_live: z.ZodBoolean;
|
|
503
|
+
has_completion_evidence: z.ZodBoolean;
|
|
472
504
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
473
505
|
read_only: z.ZodBoolean;
|
|
474
506
|
}, z.core.$strip>;
|
|
@@ -483,6 +515,7 @@ export declare const KANBAN_METHODS: {
|
|
|
483
515
|
unblock: "unblock";
|
|
484
516
|
}>;
|
|
485
517
|
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
518
|
+
confirm_running_exit: z.ZodOptional<z.ZodBoolean>;
|
|
486
519
|
}, z.core.$strip>;
|
|
487
520
|
readonly result: z.ZodObject<{
|
|
488
521
|
task: z.ZodObject<{
|
|
@@ -490,6 +523,8 @@ export declare const KANBAN_METHODS: {
|
|
|
490
523
|
title: z.ZodString;
|
|
491
524
|
status: z.ZodString;
|
|
492
525
|
priority: z.ZodNumber;
|
|
526
|
+
claim_live: z.ZodBoolean;
|
|
527
|
+
has_completion_evidence: z.ZodBoolean;
|
|
493
528
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
494
529
|
read_only: z.ZodBoolean;
|
|
495
530
|
}, z.core.$strip>;
|
|
@@ -1232,6 +1267,75 @@ export declare const PROVIDERS_METHODS: {
|
|
|
1232
1267
|
}, z.core.$strip>;
|
|
1233
1268
|
};
|
|
1234
1269
|
};
|
|
1270
|
+
/**
|
|
1271
|
+
* TAL-398: an Agent device-code sign-in (Nous Portal, OpenAI Codex, xAI, MiniMax) the sidecar runs for one profile home.
|
|
1272
|
+
* `oauth.start` answers the code to show; a sidecar thread polls the provider and writes the credential through the
|
|
1273
|
+
* Agent's own auth store. A flow belongs to the profile home that started it: poll and cancel from another home do not
|
|
1274
|
+
* find it. `error` is the Agent's reason for a flow that ended without a credential.
|
|
1275
|
+
*/
|
|
1276
|
+
export declare const OAuthFlowStatusSchema: z.ZodEnum<{
|
|
1277
|
+
error: "error";
|
|
1278
|
+
cancelled: "cancelled";
|
|
1279
|
+
pending: "pending";
|
|
1280
|
+
approved: "approved";
|
|
1281
|
+
denied: "denied";
|
|
1282
|
+
expired: "expired";
|
|
1283
|
+
}>;
|
|
1284
|
+
export declare const OAUTH_METHODS: {
|
|
1285
|
+
readonly 'oauth.start': {
|
|
1286
|
+
readonly params: z.ZodObject<{
|
|
1287
|
+
profile_home: z.ZodString;
|
|
1288
|
+
provider: z.ZodString;
|
|
1289
|
+
}, z.core.$strip>;
|
|
1290
|
+
readonly result: z.ZodObject<{
|
|
1291
|
+
flow_id: z.ZodString;
|
|
1292
|
+
provider: z.ZodString;
|
|
1293
|
+
status: z.ZodLiteral<"pending">;
|
|
1294
|
+
user_code: z.ZodString;
|
|
1295
|
+
verification_url: z.ZodString;
|
|
1296
|
+
expires_in: z.ZodNumber;
|
|
1297
|
+
interval: z.ZodNumber;
|
|
1298
|
+
}, z.core.$strip>;
|
|
1299
|
+
};
|
|
1300
|
+
readonly 'oauth.poll': {
|
|
1301
|
+
readonly params: z.ZodObject<{
|
|
1302
|
+
profile_home: z.ZodString;
|
|
1303
|
+
flow_id: z.ZodString;
|
|
1304
|
+
}, z.core.$strip>;
|
|
1305
|
+
readonly result: z.ZodObject<{
|
|
1306
|
+
flow_id: z.ZodString;
|
|
1307
|
+
provider: z.ZodString;
|
|
1308
|
+
status: z.ZodEnum<{
|
|
1309
|
+
error: "error";
|
|
1310
|
+
cancelled: "cancelled";
|
|
1311
|
+
pending: "pending";
|
|
1312
|
+
approved: "approved";
|
|
1313
|
+
denied: "denied";
|
|
1314
|
+
expired: "expired";
|
|
1315
|
+
}>;
|
|
1316
|
+
error: z.ZodNullable<z.ZodString>;
|
|
1317
|
+
}, z.core.$strip>;
|
|
1318
|
+
};
|
|
1319
|
+
readonly 'oauth.cancel': {
|
|
1320
|
+
readonly params: z.ZodObject<{
|
|
1321
|
+
profile_home: z.ZodString;
|
|
1322
|
+
flow_id: z.ZodString;
|
|
1323
|
+
}, z.core.$strip>;
|
|
1324
|
+
readonly result: z.ZodObject<{
|
|
1325
|
+
flow_id: z.ZodString;
|
|
1326
|
+
provider: z.ZodString;
|
|
1327
|
+
status: z.ZodEnum<{
|
|
1328
|
+
error: "error";
|
|
1329
|
+
cancelled: "cancelled";
|
|
1330
|
+
pending: "pending";
|
|
1331
|
+
approved: "approved";
|
|
1332
|
+
denied: "denied";
|
|
1333
|
+
expired: "expired";
|
|
1334
|
+
}>;
|
|
1335
|
+
error: z.ZodNullable<z.ZodString>;
|
|
1336
|
+
}, z.core.$strip>;
|
|
1337
|
+
};
|
|
1338
|
+
};
|
|
1235
1339
|
export declare const AuxUsageSchema: z.ZodObject<{
|
|
1236
1340
|
prompt_tokens: z.ZodOptional<z.ZodNumber>;
|
|
1237
1341
|
completion_tokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1278,15 +1382,6 @@ export declare const AUX_METHODS: {
|
|
|
1278
1382
|
};
|
|
1279
1383
|
};
|
|
1280
1384
|
export declare const TEXT_METHODS: {
|
|
1281
|
-
readonly 'text.redact': {
|
|
1282
|
-
readonly params: z.ZodObject<{
|
|
1283
|
-
text: z.ZodString;
|
|
1284
|
-
force: z.ZodOptional<z.ZodBoolean>;
|
|
1285
|
-
}, z.core.$strip>;
|
|
1286
|
-
readonly result: z.ZodObject<{
|
|
1287
|
-
text: z.ZodString;
|
|
1288
|
-
}, z.core.$strip>;
|
|
1289
|
-
};
|
|
1290
1385
|
readonly 'text.image_mode': {
|
|
1291
1386
|
readonly params: z.ZodObject<{
|
|
1292
1387
|
profile_home: z.ZodString;
|
|
@@ -1338,6 +1433,15 @@ export declare const PROCESS_METHODS: {
|
|
|
1338
1433
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
1339
1434
|
}, z.core.$strip>;
|
|
1340
1435
|
};
|
|
1436
|
+
/** TAL-533: re-adopt the base home's and every named profile's checkpointed background processes in a fresh sidecar. */
|
|
1437
|
+
readonly 'process.recover': {
|
|
1438
|
+
readonly params: z.ZodObject<{
|
|
1439
|
+
base_home: z.ZodString;
|
|
1440
|
+
}, z.core.$strip>;
|
|
1441
|
+
readonly result: z.ZodObject<{
|
|
1442
|
+
homes: z.ZodNumber;
|
|
1443
|
+
}, z.core.$strip>;
|
|
1444
|
+
};
|
|
1341
1445
|
readonly 'process.requeue': {
|
|
1342
1446
|
readonly params: z.ZodObject<{
|
|
1343
1447
|
events: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -1354,6 +1458,15 @@ export declare const PROCESS_METHODS: {
|
|
|
1354
1458
|
ok: z.ZodBoolean;
|
|
1355
1459
|
}, z.core.$strip>;
|
|
1356
1460
|
};
|
|
1461
|
+
/** TAL-532: the subset the agent already holds from its own turn (consumed via wait/log, or poll-observed). */
|
|
1462
|
+
readonly 'process.consumed': {
|
|
1463
|
+
readonly params: z.ZodObject<{
|
|
1464
|
+
process_ids: z.ZodArray<z.ZodString>;
|
|
1465
|
+
}, z.core.$strip>;
|
|
1466
|
+
readonly result: z.ZodObject<{
|
|
1467
|
+
consumed: z.ZodArray<z.ZodString>;
|
|
1468
|
+
}, z.core.$strip>;
|
|
1469
|
+
};
|
|
1357
1470
|
/** TAL-459: the Agent's durable delivery ledger. A null claim means another consumer delivered (or holds) it; "" means nothing durable to acknowledge. */
|
|
1358
1471
|
readonly 'process.claim_delivery': {
|
|
1359
1472
|
readonly params: z.ZodObject<{
|
|
@@ -1466,6 +1579,62 @@ export declare const AccountUsageSnapshotSchema: z.ZodObject<{
|
|
|
1466
1579
|
windows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1467
1580
|
details: z.ZodArray<z.ZodUnknown>;
|
|
1468
1581
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
1582
|
+
/**
|
|
1583
|
+
* TAL-548: one credential-pool entry's local state (no network, no secrets); the server derives a quota source per entry.
|
|
1584
|
+
* `matches_api_key`: the entry's key is the server-resolved `api_key` passed to `usage.pool`.
|
|
1585
|
+
*/
|
|
1586
|
+
export declare const PoolEntrySchema: z.ZodObject<{
|
|
1587
|
+
credential_id: z.ZodString;
|
|
1588
|
+
label: z.ZodString;
|
|
1589
|
+
status: z.ZodEnum<{
|
|
1590
|
+
available: "available";
|
|
1591
|
+
exhausted: "exhausted";
|
|
1592
|
+
dead: "dead";
|
|
1593
|
+
}>;
|
|
1594
|
+
unavailable_reason: z.ZodNullable<z.ZodString>;
|
|
1595
|
+
retry_after: z.ZodNullable<z.ZodString>;
|
|
1596
|
+
matches_api_key: z.ZodBoolean;
|
|
1597
|
+
}, z.core.$strip>;
|
|
1598
|
+
/**
|
|
1599
|
+
* TAL-548: one key-based balance read. The key is the pool entry's (`credential_id`) or the server-resolved `api_key`.
|
|
1600
|
+
* `ok` carries the provider's sanitised fields: OpenRouter `quota`/`label`, DeepSeek `balances`/`is_available`, OpenCode Go
|
|
1601
|
+
* `windows`; `http_error` carries the status code.
|
|
1602
|
+
*/
|
|
1603
|
+
export declare const BalanceResultSchema: z.ZodObject<{
|
|
1604
|
+
status: z.ZodEnum<{
|
|
1605
|
+
ok: "ok";
|
|
1606
|
+
unavailable: "unavailable";
|
|
1607
|
+
no_key: "no_key";
|
|
1608
|
+
http_error: "http_error";
|
|
1609
|
+
}>;
|
|
1610
|
+
http_status: z.ZodNullable<z.ZodNumber>;
|
|
1611
|
+
quota: z.ZodNullable<z.ZodObject<{
|
|
1612
|
+
limit_remaining: z.ZodNullable<z.ZodNumber>;
|
|
1613
|
+
usage: z.ZodNullable<z.ZodNumber>;
|
|
1614
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
1615
|
+
}, z.core.$strip>>;
|
|
1616
|
+
label: z.ZodNullable<z.ZodString>;
|
|
1617
|
+
is_available: z.ZodNullable<z.ZodBoolean>;
|
|
1618
|
+
balances: z.ZodArray<z.ZodObject<{
|
|
1619
|
+
currency: z.ZodEnum<{
|
|
1620
|
+
CNY: "CNY";
|
|
1621
|
+
USD: "USD";
|
|
1622
|
+
}>;
|
|
1623
|
+
total: z.ZodNumber;
|
|
1624
|
+
granted: z.ZodNullable<z.ZodNumber>;
|
|
1625
|
+
topped_up: z.ZodNullable<z.ZodNumber>;
|
|
1626
|
+
}, z.core.$strip>>;
|
|
1627
|
+
windows: z.ZodArray<z.ZodObject<{
|
|
1628
|
+
key: z.ZodEnum<{
|
|
1629
|
+
rolling: "rolling";
|
|
1630
|
+
weekly: "weekly";
|
|
1631
|
+
monthly: "monthly";
|
|
1632
|
+
}>;
|
|
1633
|
+
used_percent: z.ZodNumber;
|
|
1634
|
+
reset_at: z.ZodString;
|
|
1635
|
+
rate_limited: z.ZodBoolean;
|
|
1636
|
+
}, z.core.$strip>>;
|
|
1637
|
+
}, z.core.$strip>;
|
|
1469
1638
|
export declare const USAGE_METHODS: {
|
|
1470
1639
|
readonly 'usage.account': {
|
|
1471
1640
|
readonly params: z.ZodObject<{
|
|
@@ -1473,6 +1642,7 @@ export declare const USAGE_METHODS: {
|
|
|
1473
1642
|
provider: z.ZodString;
|
|
1474
1643
|
base_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1475
1644
|
api_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1645
|
+
credential_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1476
1646
|
}, z.core.$strip>;
|
|
1477
1647
|
readonly result: z.ZodObject<{
|
|
1478
1648
|
snapshot: z.ZodNullable<z.ZodObject<{
|
|
@@ -1484,6 +1654,83 @@ export declare const USAGE_METHODS: {
|
|
|
1484
1654
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
1485
1655
|
}, z.core.$strip>;
|
|
1486
1656
|
};
|
|
1657
|
+
readonly 'usage.pool': {
|
|
1658
|
+
readonly params: z.ZodObject<{
|
|
1659
|
+
profile_home: z.ZodString;
|
|
1660
|
+
provider: z.ZodString;
|
|
1661
|
+
api_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1662
|
+
}, z.core.$strip>;
|
|
1663
|
+
readonly result: z.ZodObject<{
|
|
1664
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
1665
|
+
credential_id: z.ZodString;
|
|
1666
|
+
label: z.ZodString;
|
|
1667
|
+
status: z.ZodEnum<{
|
|
1668
|
+
available: "available";
|
|
1669
|
+
exhausted: "exhausted";
|
|
1670
|
+
dead: "dead";
|
|
1671
|
+
}>;
|
|
1672
|
+
unavailable_reason: z.ZodNullable<z.ZodString>;
|
|
1673
|
+
retry_after: z.ZodNullable<z.ZodString>;
|
|
1674
|
+
matches_api_key: z.ZodBoolean;
|
|
1675
|
+
}, z.core.$strip>>;
|
|
1676
|
+
}, z.core.$strip>;
|
|
1677
|
+
};
|
|
1678
|
+
/** TAL-548: the providers whose persisted credential pool holds an account the user added, keyed or not. */
|
|
1679
|
+
readonly 'usage.pool_providers': {
|
|
1680
|
+
readonly params: z.ZodObject<{
|
|
1681
|
+
profile_home: z.ZodString;
|
|
1682
|
+
}, z.core.$strip>;
|
|
1683
|
+
readonly result: z.ZodObject<{
|
|
1684
|
+
providers: z.ZodArray<z.ZodString>;
|
|
1685
|
+
}, z.core.$strip>;
|
|
1686
|
+
};
|
|
1687
|
+
readonly 'usage.balance': {
|
|
1688
|
+
readonly params: z.ZodObject<{
|
|
1689
|
+
profile_home: z.ZodString;
|
|
1690
|
+
provider: z.ZodEnum<{
|
|
1691
|
+
openrouter: "openrouter";
|
|
1692
|
+
deepseek: "deepseek";
|
|
1693
|
+
"opencode-go": "opencode-go";
|
|
1694
|
+
}>;
|
|
1695
|
+
credential_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1696
|
+
api_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1697
|
+
}, z.core.$strip>;
|
|
1698
|
+
readonly result: z.ZodObject<{
|
|
1699
|
+
status: z.ZodEnum<{
|
|
1700
|
+
ok: "ok";
|
|
1701
|
+
unavailable: "unavailable";
|
|
1702
|
+
no_key: "no_key";
|
|
1703
|
+
http_error: "http_error";
|
|
1704
|
+
}>;
|
|
1705
|
+
http_status: z.ZodNullable<z.ZodNumber>;
|
|
1706
|
+
quota: z.ZodNullable<z.ZodObject<{
|
|
1707
|
+
limit_remaining: z.ZodNullable<z.ZodNumber>;
|
|
1708
|
+
usage: z.ZodNullable<z.ZodNumber>;
|
|
1709
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
1710
|
+
}, z.core.$strip>>;
|
|
1711
|
+
label: z.ZodNullable<z.ZodString>;
|
|
1712
|
+
is_available: z.ZodNullable<z.ZodBoolean>;
|
|
1713
|
+
balances: z.ZodArray<z.ZodObject<{
|
|
1714
|
+
currency: z.ZodEnum<{
|
|
1715
|
+
CNY: "CNY";
|
|
1716
|
+
USD: "USD";
|
|
1717
|
+
}>;
|
|
1718
|
+
total: z.ZodNumber;
|
|
1719
|
+
granted: z.ZodNullable<z.ZodNumber>;
|
|
1720
|
+
topped_up: z.ZodNullable<z.ZodNumber>;
|
|
1721
|
+
}, z.core.$strip>>;
|
|
1722
|
+
windows: z.ZodArray<z.ZodObject<{
|
|
1723
|
+
key: z.ZodEnum<{
|
|
1724
|
+
rolling: "rolling";
|
|
1725
|
+
weekly: "weekly";
|
|
1726
|
+
monthly: "monthly";
|
|
1727
|
+
}>;
|
|
1728
|
+
used_percent: z.ZodNumber;
|
|
1729
|
+
reset_at: z.ZodString;
|
|
1730
|
+
rate_limited: z.ZodBoolean;
|
|
1731
|
+
}, z.core.$strip>>;
|
|
1732
|
+
}, z.core.$strip>;
|
|
1733
|
+
};
|
|
1487
1734
|
};
|
|
1488
1735
|
export declare const CONFIG_METHODS: {
|
|
1489
1736
|
readonly 'config.get': {
|
|
@@ -1541,6 +1788,13 @@ export declare const ChatUsageSchema: z.ZodObject<{
|
|
|
1541
1788
|
cache_write_tokens: z.ZodNumber;
|
|
1542
1789
|
estimated_cost_usd: z.ZodNullable<z.ZodNumber>;
|
|
1543
1790
|
}, z.core.$strip>;
|
|
1791
|
+
/**
|
|
1792
|
+
* `failed`, `partial`, and `compression_exhausted` are the Agent's own turn-result flags, forwarded as sent; `failed` also sets `status: 'error'`.
|
|
1793
|
+
* `max_iterations_summary_request` is the Agent's text for the user row it appends to ask for a summary once its tool budget runs out
|
|
1794
|
+
* (`tool_limit_reached`); the server drops that trailing row of an exhausted turn from the transcript and the model context (TAL-537).
|
|
1795
|
+
* A completed `compressed` turn also carries `context_messages`, its `messages` with tool output pruned and capped for the model (row for row),
|
|
1796
|
+
* and `post_compression_context_tokens_estimate`, the next request's estimated size (TAL-539); both are null otherwise.
|
|
1797
|
+
*/
|
|
1544
1798
|
export declare const ChatStartResultSchema: z.ZodObject<{
|
|
1545
1799
|
status: z.ZodEnum<{
|
|
1546
1800
|
error: "error";
|
|
@@ -1548,10 +1802,15 @@ export declare const ChatStartResultSchema: z.ZodObject<{
|
|
|
1548
1802
|
completed: "completed";
|
|
1549
1803
|
}>;
|
|
1550
1804
|
messages: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1805
|
+
context_messages: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
1806
|
+
post_compression_context_tokens_estimate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1551
1807
|
final_response: z.ZodString;
|
|
1552
1808
|
error: z.ZodNullable<z.ZodString>;
|
|
1553
|
-
|
|
1809
|
+
failed: z.ZodBoolean;
|
|
1810
|
+
partial: z.ZodBoolean;
|
|
1811
|
+
compression_exhausted: z.ZodBoolean;
|
|
1554
1812
|
tool_limit_reached: z.ZodBoolean;
|
|
1813
|
+
max_iterations_summary_request: z.ZodString;
|
|
1555
1814
|
usage: z.ZodObject<{
|
|
1556
1815
|
prompt_tokens: z.ZodNumber;
|
|
1557
1816
|
completion_tokens: z.ZodNumber;
|
|
@@ -1588,6 +1847,15 @@ export declare const ChatStreamSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1588
1847
|
data: z.ZodObject<{
|
|
1589
1848
|
text: z.ZodString;
|
|
1590
1849
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
1850
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1851
|
+
event: z.ZodLiteral<"usage">;
|
|
1852
|
+
data: z.ZodObject<{
|
|
1853
|
+
prompt_tokens: z.ZodNumber;
|
|
1854
|
+
completion_tokens: z.ZodNumber;
|
|
1855
|
+
cache_read_tokens: z.ZodNumber;
|
|
1856
|
+
cache_write_tokens: z.ZodNumber;
|
|
1857
|
+
estimated_cost_usd: z.ZodNullable<z.ZodNumber>;
|
|
1858
|
+
}, z.core.$strip>;
|
|
1591
1859
|
}, z.core.$strip>, z.ZodObject<{
|
|
1592
1860
|
event: z.ZodLiteral<"tool">;
|
|
1593
1861
|
data: z.ZodObject<{
|
|
@@ -1617,6 +1885,13 @@ export declare const ChatStreamSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1617
1885
|
}, z.core.$strip>, z.ZodObject<{
|
|
1618
1886
|
event: z.ZodLiteral<"clarify_resolved">;
|
|
1619
1887
|
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1888
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1889
|
+
event: z.ZodLiteral<"approval_resolved">;
|
|
1890
|
+
data: z.ZodObject<{
|
|
1891
|
+
approval_id: z.ZodString;
|
|
1892
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
1893
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1894
|
+
}, z.core.$loose>;
|
|
1620
1895
|
}, z.core.$strip>, z.ZodObject<{
|
|
1621
1896
|
event: z.ZodLiteral<"compressing">;
|
|
1622
1897
|
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -1648,6 +1923,8 @@ export declare const CHAT_METHODS: {
|
|
|
1648
1923
|
effort: z.ZodOptional<z.ZodString>;
|
|
1649
1924
|
}, z.core.$strip>>>;
|
|
1650
1925
|
ephemeral_system_prompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1926
|
+
persist_user_message: z.ZodOptional<z.ZodString>;
|
|
1927
|
+
ephemeral: z.ZodOptional<z.ZodBoolean>;
|
|
1651
1928
|
}, z.core.$strip>;
|
|
1652
1929
|
readonly result: z.ZodObject<{
|
|
1653
1930
|
status: z.ZodEnum<{
|
|
@@ -1656,10 +1933,15 @@ export declare const CHAT_METHODS: {
|
|
|
1656
1933
|
completed: "completed";
|
|
1657
1934
|
}>;
|
|
1658
1935
|
messages: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1936
|
+
context_messages: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
1937
|
+
post_compression_context_tokens_estimate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1659
1938
|
final_response: z.ZodString;
|
|
1660
1939
|
error: z.ZodNullable<z.ZodString>;
|
|
1661
|
-
|
|
1940
|
+
failed: z.ZodBoolean;
|
|
1941
|
+
partial: z.ZodBoolean;
|
|
1942
|
+
compression_exhausted: z.ZodBoolean;
|
|
1662
1943
|
tool_limit_reached: z.ZodBoolean;
|
|
1944
|
+
max_iterations_summary_request: z.ZodString;
|
|
1663
1945
|
usage: z.ZodObject<{
|
|
1664
1946
|
prompt_tokens: z.ZodNumber;
|
|
1665
1947
|
completion_tokens: z.ZodNumber;
|
|
@@ -1696,6 +1978,15 @@ export declare const CHAT_METHODS: {
|
|
|
1696
1978
|
data: z.ZodObject<{
|
|
1697
1979
|
text: z.ZodString;
|
|
1698
1980
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
1981
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1982
|
+
event: z.ZodLiteral<"usage">;
|
|
1983
|
+
data: z.ZodObject<{
|
|
1984
|
+
prompt_tokens: z.ZodNumber;
|
|
1985
|
+
completion_tokens: z.ZodNumber;
|
|
1986
|
+
cache_read_tokens: z.ZodNumber;
|
|
1987
|
+
cache_write_tokens: z.ZodNumber;
|
|
1988
|
+
estimated_cost_usd: z.ZodNullable<z.ZodNumber>;
|
|
1989
|
+
}, z.core.$strip>;
|
|
1699
1990
|
}, z.core.$strip>, z.ZodObject<{
|
|
1700
1991
|
event: z.ZodLiteral<"tool">;
|
|
1701
1992
|
data: z.ZodObject<{
|
|
@@ -1725,6 +2016,13 @@ export declare const CHAT_METHODS: {
|
|
|
1725
2016
|
}, z.core.$strip>, z.ZodObject<{
|
|
1726
2017
|
event: z.ZodLiteral<"clarify_resolved">;
|
|
1727
2018
|
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2019
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2020
|
+
event: z.ZodLiteral<"approval_resolved">;
|
|
2021
|
+
data: z.ZodObject<{
|
|
2022
|
+
approval_id: z.ZodString;
|
|
2023
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
2024
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
2025
|
+
}, z.core.$loose>;
|
|
1728
2026
|
}, z.core.$strip>, z.ZodObject<{
|
|
1729
2027
|
event: z.ZodLiteral<"compressing">;
|
|
1730
2028
|
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -1850,6 +2148,7 @@ export declare const CHAT_METHODS: {
|
|
|
1850
2148
|
readonly 'chat.evict_agent': {
|
|
1851
2149
|
readonly params: z.ZodObject<{
|
|
1852
2150
|
session_id: z.ZodString;
|
|
2151
|
+
clear_session: z.ZodOptional<z.ZodBoolean>;
|
|
1853
2152
|
}, z.core.$strip>;
|
|
1854
2153
|
readonly result: z.ZodObject<{
|
|
1855
2154
|
evicted: z.ZodBoolean;
|
|
@@ -1857,6 +2156,7 @@ export declare const CHAT_METHODS: {
|
|
|
1857
2156
|
};
|
|
1858
2157
|
readonly 'chat.commit_memory': {
|
|
1859
2158
|
readonly params: z.ZodObject<{
|
|
2159
|
+
profile_home: z.ZodString;
|
|
1860
2160
|
session_id: z.ZodString;
|
|
1861
2161
|
}, z.core.$strip>;
|
|
1862
2162
|
readonly result: z.ZodObject<{
|