@maudecode/talaria-web-contracts 1.20.0 → 1.21.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/checkpoint.d.ts +78 -0
- package/dist/checkpoint.js +16 -0
- package/dist/checkpoint.js.map +1 -0
- package/dist/context-detail.d.ts +1 -1
- package/dist/gateway-session.d.ts +160 -3
- package/dist/gateway-session.js +23 -1
- package/dist/gateway-session.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/mcp-cost-policy.d.ts +110 -0
- package/dist/mcp-cost-policy.js +24 -0
- package/dist/mcp-cost-policy.js.map +1 -0
- package/dist/outbound-drafts.d.ts +114 -0
- package/dist/outbound-drafts.js +20 -0
- package/dist/outbound-drafts.js.map +1 -0
- package/dist/prompt-queue.d.ts +96 -0
- package/dist/prompt-queue.js +19 -0
- package/dist/prompt-queue.js.map +1 -0
- package/dist/router.d.ts +2394 -80
- package/dist/routes/automation.d.ts +328 -9
- package/dist/routes/automation.js +16 -2
- package/dist/routes/automation.js.map +1 -1
- package/dist/routes/chat.d.ts +503 -16
- package/dist/routes/core.d.ts +2 -2
- package/dist/routes/git.d.ts +50 -0
- package/dist/routes/git.js +3 -2
- package/dist/routes/git.js.map +1 -1
- package/dist/routes/sessions.d.ts +1369 -38
- package/dist/routes/sessions.js +5 -0
- package/dist/routes/sessions.js.map +1 -1
- package/dist/routes/tools.d.ts +533 -29
- package/dist/routes/tools.js +19 -1
- package/dist/routes/tools.js.map +1 -1
- package/dist/routes/workspaces.d.ts +45 -0
- package/dist/routes/workspaces.js +5 -4
- package/dist/routes/workspaces.js.map +1 -1
- package/dist/sidecar/methods.d.ts +310 -10
- package/dist/sidecar/namespaces.d.ts +335 -13
- package/dist/sidecar/namespaces.js +20 -1
- package/dist/sidecar/namespaces.js.map +1 -1
- package/dist/sidecar/runtime.d.ts +43 -0
- package/dist/sidecar/runtime.js +12 -2
- package/dist/sidecar/runtime.js.map +1 -1
- package/dist/sidecar/version.d.ts +1 -1
- package/dist/sidecar/version.js +1 -1
- package/dist/sse.d.ts +126 -8
- package/dist/sse.js +7 -2
- package/dist/sse.js.map +1 -1
- package/dist/views.d.ts +1066 -36
- package/dist/views.js +58 -16
- package/dist/views.js.map +1 -1
- package/fixtures/sidecar/gateway.json +45 -0
- package/fixtures/sidecar/kanban.json +197 -0
- package/fixtures/sidecar/managed-buffers.json +16 -0
- package/fixtures/sidecar/mcp.json +12 -0
- package/fixtures/sidecar/outbound-drafts.json +1 -0
- package/fixtures/sidecar/runtime.json +3 -3
- package/package.json +1 -1
|
@@ -399,7 +399,67 @@ export declare const CommandBundleInvocationSchema: z.ZodObject<{
|
|
|
399
399
|
loaded_skills: z.ZodArray<z.ZodString>;
|
|
400
400
|
missing_skills: z.ZodArray<z.ZodString>;
|
|
401
401
|
}, z.core.$strip>;
|
|
402
|
+
export declare const MAX_MANAGED_BUFFER_BYTES: number;
|
|
402
403
|
export declare const COMMANDS_METHODS: {
|
|
404
|
+
readonly 'drafts.review': {
|
|
405
|
+
readonly params: z.ZodObject<{
|
|
406
|
+
draft_id: z.ZodString;
|
|
407
|
+
card: z.ZodNumber;
|
|
408
|
+
profile_home: z.ZodString;
|
|
409
|
+
session_id: z.ZodString;
|
|
410
|
+
action: z.ZodEnum<{
|
|
411
|
+
edit: "edit";
|
|
412
|
+
approve: "approve";
|
|
413
|
+
read: "read";
|
|
414
|
+
}>;
|
|
415
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
416
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
417
|
+
fields: z.ZodOptional<z.ZodObject<{
|
|
418
|
+
from: z.ZodString;
|
|
419
|
+
to: z.ZodArray<z.ZodString>;
|
|
420
|
+
cc: z.ZodArray<z.ZodString>;
|
|
421
|
+
bcc: z.ZodArray<z.ZodString>;
|
|
422
|
+
subject: z.ZodString;
|
|
423
|
+
body: z.ZodString;
|
|
424
|
+
}, z.core.$strip>>;
|
|
425
|
+
}, z.core.$strip>;
|
|
426
|
+
readonly result: z.ZodObject<{
|
|
427
|
+
draft: z.ZodNullable<z.ZodObject<{
|
|
428
|
+
draft_id: z.ZodString;
|
|
429
|
+
card: z.ZodNumber;
|
|
430
|
+
producer: z.ZodLiteral<"draft-cards">;
|
|
431
|
+
producer_revision: z.ZodString;
|
|
432
|
+
kind: z.ZodEnum<{
|
|
433
|
+
message: "message";
|
|
434
|
+
email: "email";
|
|
435
|
+
}>;
|
|
436
|
+
platform: z.ZodString;
|
|
437
|
+
version: z.ZodNumber;
|
|
438
|
+
revision: z.ZodString;
|
|
439
|
+
fields: z.ZodObject<{
|
|
440
|
+
from: z.ZodString;
|
|
441
|
+
to: z.ZodArray<z.ZodString>;
|
|
442
|
+
cc: z.ZodArray<z.ZodString>;
|
|
443
|
+
bcc: z.ZodArray<z.ZodString>;
|
|
444
|
+
subject: z.ZodString;
|
|
445
|
+
body: z.ZodString;
|
|
446
|
+
}, z.core.$strip>;
|
|
447
|
+
state: z.ZodEnum<{
|
|
448
|
+
unavailable: "unavailable";
|
|
449
|
+
draft: "draft";
|
|
450
|
+
approved: "approved";
|
|
451
|
+
sent: "sent";
|
|
452
|
+
saved: "saved";
|
|
453
|
+
failed: "failed";
|
|
454
|
+
discarded: "discarded";
|
|
455
|
+
superseded: "superseded";
|
|
456
|
+
}>;
|
|
457
|
+
can_edit: z.ZodBoolean;
|
|
458
|
+
can_approve: z.ZodBoolean;
|
|
459
|
+
masked: z.ZodBoolean;
|
|
460
|
+
}, z.core.$strip>>;
|
|
461
|
+
}, z.core.$strip>;
|
|
462
|
+
};
|
|
403
463
|
readonly 'commands.registry': {
|
|
404
464
|
readonly params: z.ZodObject<{
|
|
405
465
|
profile_home: z.ZodString;
|
|
@@ -494,6 +554,32 @@ export declare const COMMANDS_METHODS: {
|
|
|
494
554
|
moa: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
495
555
|
}, z.core.$strip>;
|
|
496
556
|
};
|
|
557
|
+
/** Fixed devkit buffer adapter. No arbitrary HTTP paths, promotion or cleanup. Native saves are unconditional. */
|
|
558
|
+
readonly 'plugins.buffers': {
|
|
559
|
+
readonly params: z.ZodObject<{
|
|
560
|
+
profile_home: z.ZodString;
|
|
561
|
+
action: z.ZodEnum<{
|
|
562
|
+
read: "read";
|
|
563
|
+
list: "list";
|
|
564
|
+
save: "save";
|
|
565
|
+
}>;
|
|
566
|
+
session_id: z.ZodString;
|
|
567
|
+
name: z.ZodOptional<z.ZodString>;
|
|
568
|
+
content: z.ZodOptional<z.ZodString>;
|
|
569
|
+
}, z.core.$strip>;
|
|
570
|
+
readonly result: z.ZodObject<{
|
|
571
|
+
supported: z.ZodBoolean;
|
|
572
|
+
buffers: z.ZodArray<z.ZodObject<{
|
|
573
|
+
name: z.ZodString;
|
|
574
|
+
size: z.ZodNumber;
|
|
575
|
+
read_only: z.ZodBoolean;
|
|
576
|
+
}, z.core.$strip>>;
|
|
577
|
+
content: z.ZodOptional<z.ZodString>;
|
|
578
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
579
|
+
read_only: z.ZodOptional<z.ZodBoolean>;
|
|
580
|
+
write_semantics: z.ZodLiteral<"unconditional">;
|
|
581
|
+
}, z.core.$strip>;
|
|
582
|
+
};
|
|
497
583
|
readonly 'plugins.dashboard_list': {
|
|
498
584
|
readonly params: z.ZodObject<{
|
|
499
585
|
profile_home: z.ZodString;
|
|
@@ -871,7 +957,81 @@ export declare const KanbanBoardMetaSchema: z.ZodObject<{
|
|
|
871
957
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
872
958
|
archived: z.ZodOptional<z.ZodBoolean>;
|
|
873
959
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
960
|
+
export declare const KanbanInspectionEdgeSchema: z.ZodObject<{
|
|
961
|
+
source: z.ZodString;
|
|
962
|
+
target: z.ZodString;
|
|
963
|
+
}, z.core.$strip>;
|
|
964
|
+
export declare const KanbanInspectionNodeSchema: z.ZodObject<{
|
|
965
|
+
key: z.ZodString;
|
|
966
|
+
board: z.ZodString;
|
|
967
|
+
board_name: z.ZodString;
|
|
968
|
+
task: z.ZodObject<{
|
|
969
|
+
id: z.ZodString;
|
|
970
|
+
title: z.ZodString;
|
|
971
|
+
status: z.ZodString;
|
|
972
|
+
priority: z.ZodNumber;
|
|
973
|
+
claim_live: z.ZodBoolean;
|
|
974
|
+
has_completion_evidence: z.ZodBoolean;
|
|
975
|
+
agent_move_targets: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
976
|
+
current_run_started_at: z.ZodNullable<z.ZodNumber>;
|
|
977
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
978
|
+
}, z.core.$strip>;
|
|
979
|
+
export declare const KanbanInspectionSnapshotSchema: z.ZodObject<{
|
|
980
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
981
|
+
key: z.ZodString;
|
|
982
|
+
board: z.ZodString;
|
|
983
|
+
board_name: z.ZodString;
|
|
984
|
+
task: z.ZodObject<{
|
|
985
|
+
id: z.ZodString;
|
|
986
|
+
title: z.ZodString;
|
|
987
|
+
status: z.ZodString;
|
|
988
|
+
priority: z.ZodNumber;
|
|
989
|
+
claim_live: z.ZodBoolean;
|
|
990
|
+
has_completion_evidence: z.ZodBoolean;
|
|
991
|
+
agent_move_targets: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
992
|
+
current_run_started_at: z.ZodNullable<z.ZodNumber>;
|
|
993
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
994
|
+
}, z.core.$strip>>;
|
|
995
|
+
edges: z.ZodArray<z.ZodObject<{
|
|
996
|
+
source: z.ZodString;
|
|
997
|
+
target: z.ZodString;
|
|
998
|
+
}, z.core.$strip>>;
|
|
999
|
+
generated_at: z.ZodNumber;
|
|
1000
|
+
truncated: z.ZodBoolean;
|
|
1001
|
+
read_only: z.ZodBoolean;
|
|
1002
|
+
}, z.core.$strip>;
|
|
874
1003
|
export declare const KANBAN_METHODS: {
|
|
1004
|
+
readonly 'kanban.inspection': {
|
|
1005
|
+
readonly params: z.ZodObject<{
|
|
1006
|
+
profile_home: z.ZodString;
|
|
1007
|
+
board: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1008
|
+
include_archived: z.ZodOptional<z.ZodBoolean>;
|
|
1009
|
+
}, z.core.$strip>;
|
|
1010
|
+
readonly result: z.ZodObject<{
|
|
1011
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
1012
|
+
key: z.ZodString;
|
|
1013
|
+
board: z.ZodString;
|
|
1014
|
+
board_name: z.ZodString;
|
|
1015
|
+
task: z.ZodObject<{
|
|
1016
|
+
id: z.ZodString;
|
|
1017
|
+
title: z.ZodString;
|
|
1018
|
+
status: z.ZodString;
|
|
1019
|
+
priority: z.ZodNumber;
|
|
1020
|
+
claim_live: z.ZodBoolean;
|
|
1021
|
+
has_completion_evidence: z.ZodBoolean;
|
|
1022
|
+
agent_move_targets: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
1023
|
+
current_run_started_at: z.ZodNullable<z.ZodNumber>;
|
|
1024
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
1025
|
+
}, z.core.$strip>>;
|
|
1026
|
+
edges: z.ZodArray<z.ZodObject<{
|
|
1027
|
+
source: z.ZodString;
|
|
1028
|
+
target: z.ZodString;
|
|
1029
|
+
}, z.core.$strip>>;
|
|
1030
|
+
generated_at: z.ZodNumber;
|
|
1031
|
+
truncated: z.ZodBoolean;
|
|
1032
|
+
read_only: z.ZodBoolean;
|
|
1033
|
+
}, z.core.$strip>;
|
|
1034
|
+
};
|
|
875
1035
|
readonly 'kanban.board': {
|
|
876
1036
|
readonly params: z.ZodObject<{
|
|
877
1037
|
profile_home: z.ZodString;
|
|
@@ -1592,6 +1752,61 @@ export declare const SKILLS_METHODS: {
|
|
|
1592
1752
|
};
|
|
1593
1753
|
};
|
|
1594
1754
|
export declare const MCP_METHODS: {
|
|
1755
|
+
readonly 'mcp.cost_policies': {
|
|
1756
|
+
readonly params: z.ZodObject<{
|
|
1757
|
+
profile_home: z.ZodString;
|
|
1758
|
+
servers: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1759
|
+
}, z.core.$strip>;
|
|
1760
|
+
readonly result: z.ZodObject<{
|
|
1761
|
+
supported: z.ZodBoolean;
|
|
1762
|
+
policies: z.ZodArray<z.ZodObject<{
|
|
1763
|
+
name: z.ZodString;
|
|
1764
|
+
source: z.ZodEnum<{
|
|
1765
|
+
native: "native";
|
|
1766
|
+
package: "package";
|
|
1767
|
+
native_override: "native_override";
|
|
1768
|
+
}>;
|
|
1769
|
+
valid: z.ZodBoolean;
|
|
1770
|
+
can_edit: z.ZodBoolean;
|
|
1771
|
+
error: z.ZodNullable<z.ZodString>;
|
|
1772
|
+
package_revision: z.ZodString;
|
|
1773
|
+
overrides: z.ZodObject<{
|
|
1774
|
+
tool_costs: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodNumber, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>, z.ZodObject<{
|
|
1775
|
+
credits: z.ZodUnion<readonly [z.ZodNumber, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
|
|
1776
|
+
note: z.ZodOptional<z.ZodString>;
|
|
1777
|
+
}, z.core.$strict>]>>>;
|
|
1778
|
+
spend_limit: z.ZodNullable<z.ZodNumber>;
|
|
1779
|
+
cost_unit: z.ZodNullable<z.ZodString>;
|
|
1780
|
+
}, z.core.$strip>;
|
|
1781
|
+
tool_costs: z.ZodArray<z.ZodObject<{
|
|
1782
|
+
name: z.ZodString;
|
|
1783
|
+
low: z.ZodNumber;
|
|
1784
|
+
high: z.ZodNumber;
|
|
1785
|
+
note: z.ZodString;
|
|
1786
|
+
}, z.core.$strip>>;
|
|
1787
|
+
spend_limit: z.ZodNumber;
|
|
1788
|
+
cost_unit: z.ZodString;
|
|
1789
|
+
budget_enabled: z.ZodBoolean;
|
|
1790
|
+
field_sources: z.ZodObject<{
|
|
1791
|
+
tool_costs: z.ZodEnum<{
|
|
1792
|
+
default: "default";
|
|
1793
|
+
native: "native";
|
|
1794
|
+
package: "package";
|
|
1795
|
+
}>;
|
|
1796
|
+
spend_limit: z.ZodEnum<{
|
|
1797
|
+
default: "default";
|
|
1798
|
+
native: "native";
|
|
1799
|
+
package: "package";
|
|
1800
|
+
}>;
|
|
1801
|
+
cost_unit: z.ZodEnum<{
|
|
1802
|
+
default: "default";
|
|
1803
|
+
native: "native";
|
|
1804
|
+
package: "package";
|
|
1805
|
+
}>;
|
|
1806
|
+
}, z.core.$strip>;
|
|
1807
|
+
}, z.core.$strip>>;
|
|
1808
|
+
}, z.core.$strip>;
|
|
1809
|
+
};
|
|
1595
1810
|
readonly 'mcp.status': {
|
|
1596
1811
|
readonly params: z.ZodObject<{
|
|
1597
1812
|
profile_home: z.ZodString;
|
|
@@ -1649,9 +1864,9 @@ export declare const ConnectorOperationTargetSchema: z.ZodObject<{
|
|
|
1649
1864
|
pending: "pending";
|
|
1650
1865
|
expired: "expired";
|
|
1651
1866
|
skipped: "skipped";
|
|
1867
|
+
failed: "failed";
|
|
1652
1868
|
initiated: "initiated";
|
|
1653
1869
|
connected: "connected";
|
|
1654
|
-
failed: "failed";
|
|
1655
1870
|
not_connected: "not_connected";
|
|
1656
1871
|
}>;
|
|
1657
1872
|
detail: z.ZodString;
|
|
@@ -1679,9 +1894,9 @@ export declare const ConnectorOperationSnapshotSchema: z.ZodObject<{
|
|
|
1679
1894
|
pending: "pending";
|
|
1680
1895
|
expired: "expired";
|
|
1681
1896
|
skipped: "skipped";
|
|
1897
|
+
failed: "failed";
|
|
1682
1898
|
initiated: "initiated";
|
|
1683
1899
|
connected: "connected";
|
|
1684
|
-
failed: "failed";
|
|
1685
1900
|
not_connected: "not_connected";
|
|
1686
1901
|
}>;
|
|
1687
1902
|
detail: z.ZodString;
|
|
@@ -1856,9 +2071,9 @@ export declare const CONNECTORS_METHODS: {
|
|
|
1856
2071
|
pending: "pending";
|
|
1857
2072
|
expired: "expired";
|
|
1858
2073
|
skipped: "skipped";
|
|
2074
|
+
failed: "failed";
|
|
1859
2075
|
initiated: "initiated";
|
|
1860
2076
|
connected: "connected";
|
|
1861
|
-
failed: "failed";
|
|
1862
2077
|
not_connected: "not_connected";
|
|
1863
2078
|
}>;
|
|
1864
2079
|
detail: z.ZodString;
|
|
@@ -1892,9 +2107,9 @@ export declare const CONNECTORS_METHODS: {
|
|
|
1892
2107
|
pending: "pending";
|
|
1893
2108
|
expired: "expired";
|
|
1894
2109
|
skipped: "skipped";
|
|
2110
|
+
failed: "failed";
|
|
1895
2111
|
initiated: "initiated";
|
|
1896
2112
|
connected: "connected";
|
|
1897
|
-
failed: "failed";
|
|
1898
2113
|
not_connected: "not_connected";
|
|
1899
2114
|
}>;
|
|
1900
2115
|
detail: z.ZodString;
|
|
@@ -1914,8 +2129,8 @@ export declare const CONNECTORS_METHODS: {
|
|
|
1914
2129
|
op_id: z.ZodString;
|
|
1915
2130
|
action: z.ZodEnum<{
|
|
1916
2131
|
retry: "retry";
|
|
1917
|
-
skip: "skip";
|
|
1918
2132
|
approve: "approve";
|
|
2133
|
+
skip: "skip";
|
|
1919
2134
|
continue: "continue";
|
|
1920
2135
|
}>;
|
|
1921
2136
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -1936,9 +2151,9 @@ export declare const CONNECTORS_METHODS: {
|
|
|
1936
2151
|
pending: "pending";
|
|
1937
2152
|
expired: "expired";
|
|
1938
2153
|
skipped: "skipped";
|
|
2154
|
+
failed: "failed";
|
|
1939
2155
|
initiated: "initiated";
|
|
1940
2156
|
connected: "connected";
|
|
1941
|
-
failed: "failed";
|
|
1942
2157
|
not_connected: "not_connected";
|
|
1943
2158
|
}>;
|
|
1944
2159
|
detail: z.ZodString;
|
|
@@ -3541,9 +3756,9 @@ export declare const ChatStreamSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3541
3756
|
pending: "pending";
|
|
3542
3757
|
expired: "expired";
|
|
3543
3758
|
skipped: "skipped";
|
|
3759
|
+
failed: "failed";
|
|
3544
3760
|
initiated: "initiated";
|
|
3545
3761
|
connected: "connected";
|
|
3546
|
-
failed: "failed";
|
|
3547
3762
|
not_connected: "not_connected";
|
|
3548
3763
|
}>;
|
|
3549
3764
|
detail: z.ZodString;
|
|
@@ -3759,9 +3974,9 @@ export declare const CHAT_METHODS: {
|
|
|
3759
3974
|
pending: "pending";
|
|
3760
3975
|
expired: "expired";
|
|
3761
3976
|
skipped: "skipped";
|
|
3977
|
+
failed: "failed";
|
|
3762
3978
|
initiated: "initiated";
|
|
3763
3979
|
connected: "connected";
|
|
3764
|
-
failed: "failed";
|
|
3765
3980
|
not_connected: "not_connected";
|
|
3766
3981
|
}>;
|
|
3767
3982
|
detail: z.ZodString;
|
|
@@ -3990,9 +4205,9 @@ export declare const CHAT_METHODS: {
|
|
|
3990
4205
|
characters: z.ZodNullable<z.ZodNumber>;
|
|
3991
4206
|
tokens: z.ZodNullable<z.ZodNumber>;
|
|
3992
4207
|
status: z.ZodEnum<{
|
|
4208
|
+
truncated: "truncated";
|
|
3993
4209
|
unknown: "unknown";
|
|
3994
4210
|
loaded: "loaded";
|
|
3995
|
-
truncated: "truncated";
|
|
3996
4211
|
flagged: "flagged";
|
|
3997
4212
|
shadowed: "shadowed";
|
|
3998
4213
|
blocked: "blocked";
|
|
@@ -4138,6 +4353,7 @@ export declare const GATEWAY_METHODS: {
|
|
|
4138
4353
|
receipt: "receipt";
|
|
4139
4354
|
context_detail: "context_detail";
|
|
4140
4355
|
export: "export";
|
|
4356
|
+
checkpoint_diff: "checkpoint_diff";
|
|
4141
4357
|
watch: "watch";
|
|
4142
4358
|
submit: "submit";
|
|
4143
4359
|
cancel: "cancel";
|
|
@@ -4149,13 +4365,28 @@ export declare const GATEWAY_METHODS: {
|
|
|
4149
4365
|
clarify_lock: "clarify_lock";
|
|
4150
4366
|
discard: "discard";
|
|
4151
4367
|
mutate: "mutate";
|
|
4368
|
+
terminal_info: "terminal_info";
|
|
4369
|
+
shell_exec: "shell_exec";
|
|
4370
|
+
react: "react";
|
|
4152
4371
|
}>;
|
|
4372
|
+
row_id: z.ZodOptional<z.ZodNumber>;
|
|
4373
|
+
emoji: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
4374
|
+
"\uD83D\uDC4D": "👍";
|
|
4375
|
+
"\uD83D\uDC4E": "👎";
|
|
4376
|
+
"\u2764\uFE0F": "❤️";
|
|
4377
|
+
"\uD83D\uDE02": "😂";
|
|
4378
|
+
"\uD83D\uDE2E": "😮";
|
|
4379
|
+
"\uD83C\uDF89": "🎉";
|
|
4380
|
+
}>>>;
|
|
4153
4381
|
format: z.ZodOptional<z.ZodEnum<{
|
|
4154
4382
|
json: "json";
|
|
4155
4383
|
markdown: "markdown";
|
|
4156
4384
|
html: "html";
|
|
4157
4385
|
}>>;
|
|
4158
4386
|
redact: z.ZodOptional<z.ZodBoolean>;
|
|
4387
|
+
command: z.ZodOptional<z.ZodString>;
|
|
4388
|
+
authority_epoch: z.ZodOptional<z.ZodNumber>;
|
|
4389
|
+
replay_epoch: z.ZodOptional<z.ZodString>;
|
|
4159
4390
|
request_id: z.ZodOptional<z.ZodString>;
|
|
4160
4391
|
text: z.ZodOptional<z.ZodString>;
|
|
4161
4392
|
submission_id: z.ZodOptional<z.ZodString>;
|
|
@@ -4173,6 +4404,7 @@ export declare const GATEWAY_METHODS: {
|
|
|
4173
4404
|
answer: z.ZodOptional<z.ZodString>;
|
|
4174
4405
|
expected_revision: z.ZodOptional<z.ZodNumber>;
|
|
4175
4406
|
operation: z.ZodOptional<z.ZodEnum<{
|
|
4407
|
+
workspace: "workspace";
|
|
4176
4408
|
model: "model";
|
|
4177
4409
|
rename: "rename";
|
|
4178
4410
|
archive: "archive";
|
|
@@ -4181,7 +4413,6 @@ export declare const GATEWAY_METHODS: {
|
|
|
4181
4413
|
delete: "delete";
|
|
4182
4414
|
rewind: "rewind";
|
|
4183
4415
|
reset: "reset";
|
|
4184
|
-
workspace: "workspace";
|
|
4185
4416
|
compress: "compress";
|
|
4186
4417
|
}>>;
|
|
4187
4418
|
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -4208,6 +4439,7 @@ export declare const GATEWAY_METHODS: {
|
|
|
4208
4439
|
subscription_id: z.ZodString;
|
|
4209
4440
|
revision: z.ZodNumber;
|
|
4210
4441
|
execution_generation: z.ZodNumber;
|
|
4442
|
+
reactions_supported: z.ZodOptional<z.ZodBoolean>;
|
|
4211
4443
|
pending: z.ZodArray<z.ZodObject<{
|
|
4212
4444
|
admission_id: z.ZodString;
|
|
4213
4445
|
sequence: z.ZodNumber;
|
|
@@ -4309,9 +4541,9 @@ export declare const GATEWAY_METHODS: {
|
|
|
4309
4541
|
characters: z.ZodNullable<z.ZodNumber>;
|
|
4310
4542
|
tokens: z.ZodNullable<z.ZodNumber>;
|
|
4311
4543
|
status: z.ZodEnum<{
|
|
4544
|
+
truncated: "truncated";
|
|
4312
4545
|
unknown: "unknown";
|
|
4313
4546
|
loaded: "loaded";
|
|
4314
|
-
truncated: "truncated";
|
|
4315
4547
|
flagged: "flagged";
|
|
4316
4548
|
shadowed: "shadowed";
|
|
4317
4549
|
blocked: "blocked";
|
|
@@ -4334,6 +4566,35 @@ export declare const GATEWAY_METHODS: {
|
|
|
4334
4566
|
filename: z.ZodString;
|
|
4335
4567
|
content: z.ZodString;
|
|
4336
4568
|
}, z.core.$strip>>;
|
|
4569
|
+
checkpoint_diff: z.ZodOptional<z.ZodObject<{
|
|
4570
|
+
diff: z.ZodString;
|
|
4571
|
+
stat: z.ZodString;
|
|
4572
|
+
comparison: z.ZodObject<{
|
|
4573
|
+
provenance: z.ZodEnum<{
|
|
4574
|
+
native_owner: "native_owner";
|
|
4575
|
+
direct_workspace: "direct_workspace";
|
|
4576
|
+
}>;
|
|
4577
|
+
baseline: z.ZodEnum<{
|
|
4578
|
+
earliest_retained_project_checkpoint: "earliest_retained_project_checkpoint";
|
|
4579
|
+
selected_checkpoint: "selected_checkpoint";
|
|
4580
|
+
}>;
|
|
4581
|
+
available: z.ZodBoolean;
|
|
4582
|
+
reason: z.ZodNullable<z.ZodEnum<{
|
|
4583
|
+
checkpoints_disabled: "checkpoints_disabled";
|
|
4584
|
+
no_baseline: "no_baseline";
|
|
4585
|
+
checkpoint_unavailable: "checkpoint_unavailable";
|
|
4586
|
+
payload_too_large: "payload_too_large";
|
|
4587
|
+
invalid_payload: "invalid_payload";
|
|
4588
|
+
owner_unavailable: "owner_unavailable";
|
|
4589
|
+
}>>;
|
|
4590
|
+
truncated: z.ZodBoolean;
|
|
4591
|
+
}, z.core.$strip>;
|
|
4592
|
+
}, z.core.$strip>>;
|
|
4593
|
+
shell: z.ZodOptional<z.ZodObject<{
|
|
4594
|
+
stdout: z.ZodString;
|
|
4595
|
+
stderr: z.ZodString;
|
|
4596
|
+
code: z.ZodNumber;
|
|
4597
|
+
}, z.core.$strip>>;
|
|
4337
4598
|
restarting: z.ZodOptional<z.ZodBoolean>;
|
|
4338
4599
|
lock: z.ZodOptional<z.ZodObject<{
|
|
4339
4600
|
status: z.ZodEnum<{
|
|
@@ -4367,6 +4628,7 @@ export declare const GATEWAY_METHODS: {
|
|
|
4367
4628
|
subscription_id: z.ZodString;
|
|
4368
4629
|
revision: z.ZodNumber;
|
|
4369
4630
|
execution_generation: z.ZodNumber;
|
|
4631
|
+
reactions_supported: z.ZodOptional<z.ZodBoolean>;
|
|
4370
4632
|
pending: z.ZodArray<z.ZodObject<{
|
|
4371
4633
|
admission_id: z.ZodString;
|
|
4372
4634
|
sequence: z.ZodNumber;
|
|
@@ -4468,9 +4730,9 @@ export declare const GATEWAY_METHODS: {
|
|
|
4468
4730
|
characters: z.ZodNullable<z.ZodNumber>;
|
|
4469
4731
|
tokens: z.ZodNullable<z.ZodNumber>;
|
|
4470
4732
|
status: z.ZodEnum<{
|
|
4733
|
+
truncated: "truncated";
|
|
4471
4734
|
unknown: "unknown";
|
|
4472
4735
|
loaded: "loaded";
|
|
4473
|
-
truncated: "truncated";
|
|
4474
4736
|
flagged: "flagged";
|
|
4475
4737
|
shadowed: "shadowed";
|
|
4476
4738
|
blocked: "blocked";
|
|
@@ -4493,6 +4755,35 @@ export declare const GATEWAY_METHODS: {
|
|
|
4493
4755
|
filename: z.ZodString;
|
|
4494
4756
|
content: z.ZodString;
|
|
4495
4757
|
}, z.core.$strip>>;
|
|
4758
|
+
checkpoint_diff: z.ZodOptional<z.ZodObject<{
|
|
4759
|
+
diff: z.ZodString;
|
|
4760
|
+
stat: z.ZodString;
|
|
4761
|
+
comparison: z.ZodObject<{
|
|
4762
|
+
provenance: z.ZodEnum<{
|
|
4763
|
+
native_owner: "native_owner";
|
|
4764
|
+
direct_workspace: "direct_workspace";
|
|
4765
|
+
}>;
|
|
4766
|
+
baseline: z.ZodEnum<{
|
|
4767
|
+
earliest_retained_project_checkpoint: "earliest_retained_project_checkpoint";
|
|
4768
|
+
selected_checkpoint: "selected_checkpoint";
|
|
4769
|
+
}>;
|
|
4770
|
+
available: z.ZodBoolean;
|
|
4771
|
+
reason: z.ZodNullable<z.ZodEnum<{
|
|
4772
|
+
checkpoints_disabled: "checkpoints_disabled";
|
|
4773
|
+
no_baseline: "no_baseline";
|
|
4774
|
+
checkpoint_unavailable: "checkpoint_unavailable";
|
|
4775
|
+
payload_too_large: "payload_too_large";
|
|
4776
|
+
invalid_payload: "invalid_payload";
|
|
4777
|
+
owner_unavailable: "owner_unavailable";
|
|
4778
|
+
}>>;
|
|
4779
|
+
truncated: z.ZodBoolean;
|
|
4780
|
+
}, z.core.$strip>;
|
|
4781
|
+
}, z.core.$strip>>;
|
|
4782
|
+
shell: z.ZodOptional<z.ZodObject<{
|
|
4783
|
+
stdout: z.ZodString;
|
|
4784
|
+
stderr: z.ZodString;
|
|
4785
|
+
code: z.ZodNumber;
|
|
4786
|
+
}, z.core.$strip>>;
|
|
4496
4787
|
restarting: z.ZodOptional<z.ZodBoolean>;
|
|
4497
4788
|
lock: z.ZodOptional<z.ZodObject<{
|
|
4498
4789
|
status: z.ZodEnum<{
|
|
@@ -4502,6 +4793,7 @@ export declare const GATEWAY_METHODS: {
|
|
|
4502
4793
|
remaining: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4503
4794
|
}, z.core.$strip>>;
|
|
4504
4795
|
replaying: z.ZodOptional<z.ZodBoolean>;
|
|
4796
|
+
reaction_only: z.ZodOptional<z.ZodBoolean>;
|
|
4505
4797
|
}, z.core.$strip>;
|
|
4506
4798
|
}, z.core.$strip>, z.ZodObject<{
|
|
4507
4799
|
event: z.ZodLiteral<"event">;
|
|
@@ -4564,6 +4856,7 @@ export declare const GATEWAY_METHODS: {
|
|
|
4564
4856
|
subscription_id: z.ZodString;
|
|
4565
4857
|
revision: z.ZodNumber;
|
|
4566
4858
|
execution_generation: z.ZodNumber;
|
|
4859
|
+
reactions_supported: z.ZodOptional<z.ZodBoolean>;
|
|
4567
4860
|
pending: z.ZodArray<z.ZodObject<{
|
|
4568
4861
|
admission_id: z.ZodString;
|
|
4569
4862
|
sequence: z.ZodNumber;
|
|
@@ -4665,9 +4958,9 @@ export declare const GATEWAY_METHODS: {
|
|
|
4665
4958
|
characters: z.ZodNullable<z.ZodNumber>;
|
|
4666
4959
|
tokens: z.ZodNullable<z.ZodNumber>;
|
|
4667
4960
|
status: z.ZodEnum<{
|
|
4961
|
+
truncated: "truncated";
|
|
4668
4962
|
unknown: "unknown";
|
|
4669
4963
|
loaded: "loaded";
|
|
4670
|
-
truncated: "truncated";
|
|
4671
4964
|
flagged: "flagged";
|
|
4672
4965
|
shadowed: "shadowed";
|
|
4673
4966
|
blocked: "blocked";
|
|
@@ -4690,6 +4983,35 @@ export declare const GATEWAY_METHODS: {
|
|
|
4690
4983
|
filename: z.ZodString;
|
|
4691
4984
|
content: z.ZodString;
|
|
4692
4985
|
}, z.core.$strip>>;
|
|
4986
|
+
checkpoint_diff: z.ZodOptional<z.ZodObject<{
|
|
4987
|
+
diff: z.ZodString;
|
|
4988
|
+
stat: z.ZodString;
|
|
4989
|
+
comparison: z.ZodObject<{
|
|
4990
|
+
provenance: z.ZodEnum<{
|
|
4991
|
+
native_owner: "native_owner";
|
|
4992
|
+
direct_workspace: "direct_workspace";
|
|
4993
|
+
}>;
|
|
4994
|
+
baseline: z.ZodEnum<{
|
|
4995
|
+
earliest_retained_project_checkpoint: "earliest_retained_project_checkpoint";
|
|
4996
|
+
selected_checkpoint: "selected_checkpoint";
|
|
4997
|
+
}>;
|
|
4998
|
+
available: z.ZodBoolean;
|
|
4999
|
+
reason: z.ZodNullable<z.ZodEnum<{
|
|
5000
|
+
checkpoints_disabled: "checkpoints_disabled";
|
|
5001
|
+
no_baseline: "no_baseline";
|
|
5002
|
+
checkpoint_unavailable: "checkpoint_unavailable";
|
|
5003
|
+
payload_too_large: "payload_too_large";
|
|
5004
|
+
invalid_payload: "invalid_payload";
|
|
5005
|
+
owner_unavailable: "owner_unavailable";
|
|
5006
|
+
}>>;
|
|
5007
|
+
truncated: z.ZodBoolean;
|
|
5008
|
+
}, z.core.$strip>;
|
|
5009
|
+
}, z.core.$strip>>;
|
|
5010
|
+
shell: z.ZodOptional<z.ZodObject<{
|
|
5011
|
+
stdout: z.ZodString;
|
|
5012
|
+
stderr: z.ZodString;
|
|
5013
|
+
code: z.ZodNumber;
|
|
5014
|
+
}, z.core.$strip>>;
|
|
4693
5015
|
restarting: z.ZodOptional<z.ZodBoolean>;
|
|
4694
5016
|
lock: z.ZodOptional<z.ZodObject<{
|
|
4695
5017
|
status: z.ZodEnum<{
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { OutboundDraftRefSchema, OutboundDraftFieldsSchema, OutboundDraftResultSchema } from '../outbound-drafts.js';
|
|
2
|
+
import { McpCostPolicyDataSchema } from '../mcp-cost-policy.js';
|
|
1
3
|
import { ContextDetailSchema } from '../context-detail.js';
|
|
2
4
|
import { z } from 'zod';
|
|
3
5
|
import { ProviderPhaseSchema } from '../run-status.js';
|
|
@@ -105,7 +107,11 @@ const DashboardNameParams = ProfileHomeParams.extend({ name: z.string() });
|
|
|
105
107
|
export const CommandBundleSchema = z.object({ name: z.string(), description: z.string(), skill_count: z.number().int(), source: z.literal('bundle') });
|
|
106
108
|
/** `message` is the user message that loads the bundle's skills; members not installed or disabled are in `missing_skills` or left out. */
|
|
107
109
|
export const CommandBundleInvocationSchema = z.object({ name: z.string(), source: z.literal('bundle'), message: z.string(), loaded_skills: z.array(z.string()), missing_skills: z.array(z.string()) });
|
|
110
|
+
export const MAX_MANAGED_BUFFER_BYTES = 256 * 1024;
|
|
111
|
+
const ManagedBufferName = z.string().regex(/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/);
|
|
112
|
+
const ManagedBufferSize = z.number().int().min(0).max(MAX_MANAGED_BUFFER_BYTES);
|
|
108
113
|
export const COMMANDS_METHODS = {
|
|
114
|
+
'drafts.review': { params: OutboundDraftRefSchema.extend({ profile_home: z.string().min(1), session_id: z.string().min(1), action: z.enum(['read', 'edit', 'approve']), version: z.number().int().positive().optional(), revision: z.string().optional(), fields: OutboundDraftFieldsSchema.optional() }), result: OutboundDraftResultSchema },
|
|
109
115
|
'commands.registry': { params: ProfileHomeParams, result: z.object({ commands: z.array(CommandSchema) }) },
|
|
110
116
|
/**
|
|
111
117
|
* With `session_id`, a plugin command runs under that chat's session binding and `workspace` (TAL-904) and receives the session
|
|
@@ -121,6 +127,11 @@ export const COMMANDS_METHODS = {
|
|
|
121
127
|
'commands.bundles': { params: ProfileHomeParams, result: z.object({ bundles: z.array(CommandBundleSchema) }) },
|
|
122
128
|
'commands.bundle_resolve': { params: ProfileHomeParams.extend({ command: z.string().min(1) }), result: CommandBundleInvocationSchema },
|
|
123
129
|
'commands.moa_preset': { params: ProfileHomeParams.extend({ preset: z.string().nullable().optional() }), result: z.object({ moa: Loose }) },
|
|
130
|
+
/** Fixed devkit buffer adapter. No arbitrary HTTP paths, promotion or cleanup. Native saves are unconditional. */
|
|
131
|
+
'plugins.buffers': {
|
|
132
|
+
params: ProfileHomeParams.extend({ action: z.enum(['list', 'read', 'save']), session_id: z.string().min(1).max(200), name: ManagedBufferName.optional(), content: z.string().max(MAX_MANAGED_BUFFER_BYTES).optional() }),
|
|
133
|
+
result: z.object({ supported: z.boolean(), buffers: z.array(z.object({ name: ManagedBufferName, size: ManagedBufferSize, read_only: z.boolean() })).max(200), content: z.string().max(MAX_MANAGED_BUFFER_BYTES).optional(), size: ManagedBufferSize.optional(), read_only: z.boolean().optional(), write_semantics: z.literal('unconditional') }),
|
|
134
|
+
},
|
|
124
135
|
'plugins.dashboard_list': { params: ProfileHomeParams, result: z.object({ supported: z.boolean(), plugins: z.array(AgentDashboardPluginSchema) }) },
|
|
125
136
|
'plugins.dashboard_toggle': { params: DashboardNameParams.extend({ enabled: z.boolean() }), result: z.object({ ok: z.literal(true) }) },
|
|
126
137
|
'plugins.dashboard_asset': { params: DashboardNameParams.extend({ path: z.string() }), result: AgentDashboardResponseSchema },
|
|
@@ -172,7 +183,14 @@ export const KanbanBoardSchema = z.union([
|
|
|
172
183
|
export const KanbanAssigneeSchema = z.union([z.string(), z.object({ name: z.string(), on_disk: z.boolean().optional(), counts: z.record(z.string(), z.number().int()).optional() }).catchall(Json)]);
|
|
173
184
|
export const KanbanEventSchema = z.object({ id: z.number().int(), task_id: z.string().nullable(), run_id: z.union([z.number().int(), z.string()]).nullable(), kind: z.string(), payload: Json, created_at: z.number().nullable() });
|
|
174
185
|
export const KanbanBoardMetaSchema = z.object({ slug: z.string(), name: z.string().nullable().optional(), archived: z.boolean().optional() }).catchall(Json);
|
|
186
|
+
export const KanbanInspectionEdgeSchema = z.object({ source: z.string(), target: z.string() });
|
|
187
|
+
export const KanbanInspectionNodeSchema = z.object({ key: z.string(), board: z.string(), board_name: z.string(), task: KanbanTaskSchema.extend(KanbanRunStartShape) });
|
|
188
|
+
export const KanbanInspectionSnapshotSchema = z.object({
|
|
189
|
+
nodes: z.array(KanbanInspectionNodeSchema).max(500),
|
|
190
|
+
edges: z.array(KanbanInspectionEdgeSchema).max(2000), generated_at: z.number(), truncated: z.boolean(), read_only: z.boolean(),
|
|
191
|
+
});
|
|
175
192
|
export const KANBAN_METHODS = {
|
|
193
|
+
'kanban.inspection': { params: Board.extend({ include_archived: z.boolean().optional() }), result: KanbanInspectionSnapshotSchema },
|
|
176
194
|
'kanban.board': { params: Board.extend({ tenant: z.string().nullable().optional(), assignee: z.string().nullable().optional(), include_archived: z.boolean().optional(), only_mine: z.boolean().optional(), since: z.number().int().nullable().optional(), profile: z.string().nullable().optional() }), result: KanbanBoardSchema },
|
|
177
195
|
'kanban.boards': { params: ProfileHomeParams.extend({ include_archived: z.boolean().optional() }), result: z.object({ boards: z.array(KanbanBoardMetaSchema.extend({ is_current: z.boolean(), counts: z.record(z.string(), z.number().int()), total: z.number().int() })), current: z.string(), read_only: z.boolean() }) },
|
|
178
196
|
'kanban.create_board': { params: ProfileHomeParams.extend({ board_spec: Loose }), result: z.object({ board: KanbanBoardMetaSchema, current: z.string(), read_only: z.boolean() }) },
|
|
@@ -263,6 +281,7 @@ export const SKILLS_METHODS = {
|
|
|
263
281
|
};
|
|
264
282
|
// ── mcp ────────────────────────────────────────────────────────────────
|
|
265
283
|
export const MCP_METHODS = {
|
|
284
|
+
'mcp.cost_policies': { params: ProfileHomeParams.extend({ servers: Loose }), result: z.object({ supported: z.boolean(), policies: z.array(McpCostPolicyDataSchema) }) },
|
|
266
285
|
'mcp.status': { params: ProfileHomeParams, result: z.object({ servers: z.array(z.object({ name: z.string() }).catchall(Json)) }) },
|
|
267
286
|
'mcp.registry_tools': { params: ProfileHomeParams, result: z.object({ tools: z.array(z.object({ name: z.string(), server: z.string(), schema: Loose })) }) },
|
|
268
287
|
'mcp.reload': { params: ProfileHomeParams, result: z.object({ output: z.string() }) },
|
|
@@ -745,7 +764,7 @@ const GatewayActionStream = z.discriminatedUnion('event', [z.object({ event: z.l
|
|
|
745
764
|
export const GATEWAY_ACTIONS = ['start', 'stop', 'restart'];
|
|
746
765
|
export const GATEWAY_METHODS = {
|
|
747
766
|
'gateway.session': { params: GatewaySessionParamsSchema, result: GatewaySessionResultSchema, stream: z.discriminatedUnion('event', [
|
|
748
|
-
z.object({ event: z.literal('snapshot'), data: GatewaySessionResultSchema.extend({ replaying: z.boolean().optional() }) }),
|
|
767
|
+
z.object({ event: z.literal('snapshot'), data: GatewaySessionResultSchema.extend({ replaying: z.boolean().optional(), reaction_only: z.boolean().optional() }) }),
|
|
749
768
|
z.object({ event: z.literal('event'), data: Loose }),
|
|
750
769
|
z.object({ event: z.literal('replay_complete'), data: z.object({}) }),
|
|
751
770
|
z.object({ event: z.literal('clarify_batch'), data: GatewayClarifyBatchSchema }),
|