@rkat/sdk 0.8.21 → 0.8.23
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/client.d.ts +21 -24
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +233 -30
- package/dist/client.js.map +1 -1
- package/dist/events.d.ts +39 -1
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +17 -0
- package/dist/events.js.map +1 -1
- package/dist/generated/events.d.ts +1 -1
- package/dist/generated/events.d.ts.map +1 -1
- package/dist/generated/events.js +2 -1
- package/dist/generated/events.js.map +1 -1
- package/dist/generated/types.d.ts +112 -13
- package/dist/generated/types.d.ts.map +1 -1
- package/dist/generated/types.js +8 -4
- package/dist/generated/types.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/mob.d.ts +30 -20
- package/dist/mob.d.ts.map +1 -1
- package/dist/mob.js.map +1 -1
- package/dist/session.d.ts +3 -1
- package/dist/session.d.ts.map +1 -1
- package/dist/session.js +6 -0
- package/dist/session.js.map +1 -1
- package/dist/types.d.ts +74 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const CONTRACT_VERSION = "0.8.
|
|
1
|
+
export declare const CONTRACT_VERSION = "0.8.23";
|
|
2
2
|
export type Value = unknown;
|
|
3
3
|
export interface WireUsage {
|
|
4
4
|
input_tokens: number;
|
|
@@ -454,6 +454,12 @@ export interface EventsSnapshotResult {
|
|
|
454
454
|
scope: Record<string, unknown>;
|
|
455
455
|
snapshot: Record<string, unknown>;
|
|
456
456
|
}
|
|
457
|
+
export interface ExportAtifParams {
|
|
458
|
+
agent_name?: string | null;
|
|
459
|
+
agent_version?: string | null;
|
|
460
|
+
model_name?: string | null;
|
|
461
|
+
session_id: string;
|
|
462
|
+
}
|
|
457
463
|
export interface ForkSessionAtParams {
|
|
458
464
|
message_index: number;
|
|
459
465
|
running_behavior?: "reject";
|
|
@@ -486,7 +492,7 @@ export interface HelpResponse {
|
|
|
486
492
|
text: string;
|
|
487
493
|
tool_calls: number;
|
|
488
494
|
turns: number;
|
|
489
|
-
usage:
|
|
495
|
+
usage: WireUsage;
|
|
490
496
|
}
|
|
491
497
|
export interface InjectSystemContextParams {
|
|
492
498
|
content: Record<string, unknown>;
|
|
@@ -647,6 +653,7 @@ export interface ScheduleToolsResult {
|
|
|
647
653
|
tools: unknown[];
|
|
648
654
|
}
|
|
649
655
|
export interface SessionForkResult {
|
|
656
|
+
cache_inheritance: Record<string, unknown>;
|
|
650
657
|
message_count: number;
|
|
651
658
|
session_id: string;
|
|
652
659
|
session_ref?: string | null;
|
|
@@ -660,6 +667,15 @@ export interface SessionPeerResponseTerminalParams {
|
|
|
660
667
|
session_id: string;
|
|
661
668
|
status: "completed" | "failed" | "cancelled";
|
|
662
669
|
}
|
|
670
|
+
export interface SystemPromptUpdateResult {
|
|
671
|
+
commit?: Record<string, unknown> | null;
|
|
672
|
+
key: SystemPromptKey;
|
|
673
|
+
message_index: number;
|
|
674
|
+
session_id: string;
|
|
675
|
+
status: "applied" | "duplicate";
|
|
676
|
+
transcript_revision: string;
|
|
677
|
+
version: SystemPromptVersion;
|
|
678
|
+
}
|
|
663
679
|
export interface SessionTranscriptRewriteResult {
|
|
664
680
|
commit: Record<string, unknown>;
|
|
665
681
|
message_count: number;
|
|
@@ -667,6 +683,15 @@ export interface SessionTranscriptRewriteResult {
|
|
|
667
683
|
revision: string;
|
|
668
684
|
session_id: string;
|
|
669
685
|
}
|
|
686
|
+
export interface UpdateSystemPromptParams {
|
|
687
|
+
actor?: string | null;
|
|
688
|
+
content: string;
|
|
689
|
+
expected_parent_revision?: string | null;
|
|
690
|
+
expected_version?: SystemPromptVersion | null;
|
|
691
|
+
key: SystemPromptKey;
|
|
692
|
+
session_id: string;
|
|
693
|
+
target_message_index?: number | null;
|
|
694
|
+
}
|
|
670
695
|
export interface WireProvisionApiKeyResult {
|
|
671
696
|
auth_binding: WireAuthBindingRef;
|
|
672
697
|
auth_mode: string;
|
|
@@ -1033,6 +1058,7 @@ export interface WireMobToolConfig {
|
|
|
1033
1058
|
mcp?: string[];
|
|
1034
1059
|
memory?: boolean;
|
|
1035
1060
|
mob?: boolean;
|
|
1061
|
+
read_only?: boolean;
|
|
1036
1062
|
schedule?: boolean;
|
|
1037
1063
|
shell?: boolean;
|
|
1038
1064
|
workgraph?: boolean;
|
|
@@ -1060,7 +1086,26 @@ export interface WireMobRun {
|
|
|
1060
1086
|
run_id: string;
|
|
1061
1087
|
status: WireMobRunStatus;
|
|
1062
1088
|
}
|
|
1089
|
+
export interface WireMobRunMemberAccounting {
|
|
1090
|
+
agent_identity: string;
|
|
1091
|
+
message_count?: number | null;
|
|
1092
|
+
model?: string | null;
|
|
1093
|
+
provider?: Provider | null;
|
|
1094
|
+
role: string;
|
|
1095
|
+
session_id?: string | null;
|
|
1096
|
+
usage?: WireUsage | null;
|
|
1097
|
+
usage_unavailable?: string | null;
|
|
1098
|
+
}
|
|
1099
|
+
export interface WireMobRunAccounting {
|
|
1100
|
+
attribution: WireMobRunUsageAttribution;
|
|
1101
|
+
member_session_ids?: string[];
|
|
1102
|
+
members?: WireMobRunMemberAccounting[];
|
|
1103
|
+
members_usage_unavailable?: number;
|
|
1104
|
+
unpriced_reason: string;
|
|
1105
|
+
usage_total: WireUsage;
|
|
1106
|
+
}
|
|
1063
1107
|
export interface WireMobRunResultEnvelope {
|
|
1108
|
+
accounting?: WireMobRunAccounting | null;
|
|
1064
1109
|
flow_id: string;
|
|
1065
1110
|
mob_id: string;
|
|
1066
1111
|
outputs?: Record<string, unknown>;
|
|
@@ -1259,9 +1304,11 @@ export interface MobSpawnHelperParams {
|
|
|
1259
1304
|
agent_identity?: string | null;
|
|
1260
1305
|
auth_binding?: WireAuthBindingRef | null;
|
|
1261
1306
|
backend?: WireMobBackendKind | null;
|
|
1307
|
+
max_text_bytes: number;
|
|
1262
1308
|
mob_id: string;
|
|
1263
1309
|
model_override?: string | null;
|
|
1264
1310
|
prompt: string;
|
|
1311
|
+
result_label: string;
|
|
1265
1312
|
role_name?: string | null;
|
|
1266
1313
|
runtime_mode?: WireMobRuntimeMode | null;
|
|
1267
1314
|
}
|
|
@@ -1270,18 +1317,26 @@ export interface MobForkHelperParams {
|
|
|
1270
1317
|
auth_binding?: WireAuthBindingRef | null;
|
|
1271
1318
|
backend?: WireMobBackendKind | null;
|
|
1272
1319
|
fork_context?: unknown;
|
|
1320
|
+
max_text_bytes: number;
|
|
1273
1321
|
mob_id: string;
|
|
1274
1322
|
model_override?: string | null;
|
|
1275
1323
|
prompt: string;
|
|
1324
|
+
result_label: string;
|
|
1276
1325
|
role_name?: string | null;
|
|
1277
1326
|
runtime_mode?: WireMobRuntimeMode | null;
|
|
1278
1327
|
source_member_id: string;
|
|
1279
1328
|
}
|
|
1280
1329
|
export interface MobHelperResult {
|
|
1281
1330
|
agent_identity: string;
|
|
1331
|
+
bounded_result: Record<string, unknown>;
|
|
1282
1332
|
member_ref: WireMemberRef;
|
|
1283
|
-
output
|
|
1333
|
+
output: string;
|
|
1334
|
+
retirement_error?: string | null;
|
|
1335
|
+
session_id: string;
|
|
1284
1336
|
tokens_used: number;
|
|
1337
|
+
tool_calls: number;
|
|
1338
|
+
turns: number;
|
|
1339
|
+
usage: Record<string, unknown>;
|
|
1285
1340
|
}
|
|
1286
1341
|
export interface MobForceCancelResult {
|
|
1287
1342
|
cancelled: boolean;
|
|
@@ -1615,6 +1670,7 @@ export interface MobFlowStepInput {
|
|
|
1615
1670
|
depends_on_mode?: MobDependencyModeInput;
|
|
1616
1671
|
dispatch_mode?: MobDispatchModeInput;
|
|
1617
1672
|
expected_schema_ref?: string | null;
|
|
1673
|
+
failure_policy?: MobFlowNodeFailurePolicyInput;
|
|
1618
1674
|
message: WireContentInput;
|
|
1619
1675
|
output_format?: MobStepOutputFormatInput | null;
|
|
1620
1676
|
role: string;
|
|
@@ -1668,6 +1724,7 @@ export interface MobToolConfigInput {
|
|
|
1668
1724
|
mcp?: string[];
|
|
1669
1725
|
memory?: boolean;
|
|
1670
1726
|
mob?: boolean;
|
|
1727
|
+
read_only?: boolean;
|
|
1671
1728
|
schedule?: boolean;
|
|
1672
1729
|
shell?: boolean;
|
|
1673
1730
|
workgraph?: boolean;
|
|
@@ -1826,6 +1883,7 @@ export interface WorkGraphSnapshotFilter {
|
|
|
1826
1883
|
statuses?: WorkStatus[];
|
|
1827
1884
|
}
|
|
1828
1885
|
export interface WorkItem {
|
|
1886
|
+
cancelled_child_join_policy: "require_success" | "propagate" | "accept";
|
|
1829
1887
|
claim?: WorkItemClaim | null;
|
|
1830
1888
|
completion_policy: WorkCompletionPolicy;
|
|
1831
1889
|
created_at: string;
|
|
@@ -1833,6 +1891,7 @@ export interface WorkItem {
|
|
|
1833
1891
|
due_at?: string | null;
|
|
1834
1892
|
evidence_refs?: WorkEvidenceRef[];
|
|
1835
1893
|
external_refs?: WorkItemExternalRef[];
|
|
1894
|
+
failed_child_join_policy: "require_success" | "propagate" | "accept";
|
|
1836
1895
|
id: string;
|
|
1837
1896
|
labels?: string[];
|
|
1838
1897
|
machine_state: Record<string, unknown>;
|
|
@@ -1881,6 +1940,7 @@ export interface WorkEvidenceRef {
|
|
|
1881
1940
|
}
|
|
1882
1941
|
export interface WorkGraphEvent {
|
|
1883
1942
|
at: string;
|
|
1943
|
+
facts?: unknown[];
|
|
1884
1944
|
item_id?: string | null;
|
|
1885
1945
|
kind: WorkGraphEventKind;
|
|
1886
1946
|
namespace: string;
|
|
@@ -1894,6 +1954,7 @@ export interface WorkOwnerKey {
|
|
|
1894
1954
|
}
|
|
1895
1955
|
export interface WorkItemClaim {
|
|
1896
1956
|
claimed_at: string;
|
|
1957
|
+
expiry_observed_at?: string | null;
|
|
1897
1958
|
lease_expires_at?: string | null;
|
|
1898
1959
|
owner: WorkItemOwner;
|
|
1899
1960
|
}
|
|
@@ -1914,12 +1975,14 @@ export interface BridgeBindPayload {
|
|
|
1914
1975
|
epoch: number;
|
|
1915
1976
|
expected_address: string;
|
|
1916
1977
|
expected_peer_id: string;
|
|
1978
|
+
member: Record<string, unknown>;
|
|
1917
1979
|
protocol_version: BridgeProtocolVersion;
|
|
1918
1980
|
supervisor: BridgePeerSpec;
|
|
1919
1981
|
}
|
|
1920
1982
|
export interface BridgeBindResponse {
|
|
1921
1983
|
address: string;
|
|
1922
1984
|
capabilities: BridgeCapabilities;
|
|
1985
|
+
member_fence: Record<string, unknown>;
|
|
1923
1986
|
peer_id: string;
|
|
1924
1987
|
}
|
|
1925
1988
|
export interface BridgeCapabilities {
|
|
@@ -1944,6 +2007,7 @@ export interface BridgeCapabilities {
|
|
|
1944
2007
|
wire_member?: boolean;
|
|
1945
2008
|
}
|
|
1946
2009
|
export interface BridgeDeliveryPayload {
|
|
2010
|
+
bounded_result_spec?: Record<string, unknown> | null;
|
|
1947
2011
|
content: ContentInput;
|
|
1948
2012
|
epoch: number;
|
|
1949
2013
|
expected_member?: BridgeMemberIncarnation | null;
|
|
@@ -1998,8 +2062,7 @@ export interface BridgePeerWiringPayload {
|
|
|
1998
2062
|
supervisor: BridgePeerSpec;
|
|
1999
2063
|
}
|
|
2000
2064
|
export interface BridgeRetireResponse {
|
|
2001
|
-
|
|
2002
|
-
inputs_pending_drain: number;
|
|
2065
|
+
outcome: Record<string, unknown>;
|
|
2003
2066
|
}
|
|
2004
2067
|
export interface BridgeSupervisorPayload {
|
|
2005
2068
|
epoch: number;
|
|
@@ -2093,6 +2156,7 @@ export interface WireFlowFailureDetail {
|
|
|
2093
2156
|
truncated: boolean;
|
|
2094
2157
|
}
|
|
2095
2158
|
export interface BridgeTurnOutcomeRecord {
|
|
2159
|
+
bounded_result?: unknown | null;
|
|
2096
2160
|
fence_token: number;
|
|
2097
2161
|
generation: number;
|
|
2098
2162
|
input_id: string;
|
|
@@ -2334,7 +2398,10 @@ export interface WireToolAccessPolicyDenyList {
|
|
|
2334
2398
|
type: "deny_list";
|
|
2335
2399
|
value: string[];
|
|
2336
2400
|
}
|
|
2337
|
-
export
|
|
2401
|
+
export interface WireToolAccessPolicyReadOnly {
|
|
2402
|
+
type: "read_only";
|
|
2403
|
+
}
|
|
2404
|
+
export type WireToolAccessPolicy = WireToolAccessPolicyInherit | WireToolAccessPolicyAllowList | WireToolAccessPolicyDenyList | WireToolAccessPolicyReadOnly;
|
|
2338
2405
|
export type WireToolFilter = "All" | {
|
|
2339
2406
|
Allow: string[];
|
|
2340
2407
|
} | {
|
|
@@ -2392,10 +2459,12 @@ export interface MobConditionExprInputNot {
|
|
|
2392
2459
|
export type MobConditionExprInput = MobConditionExprInputEq | MobConditionExprInputIn | MobConditionExprInputGt | MobConditionExprInputLt | MobConditionExprInputAnd | MobConditionExprInputOr | MobConditionExprInputNot;
|
|
2393
2460
|
export type MobDependencyModeInput = "all" | "any";
|
|
2394
2461
|
export type MobDispatchModeInput = "fan_out" | "one_to_one" | "fan_in";
|
|
2462
|
+
export type MobFlowNodeFailurePolicyInput = "escalate" | "continue";
|
|
2395
2463
|
export interface MobFlowNodeInputStep {
|
|
2396
2464
|
branch?: string | null;
|
|
2397
2465
|
depends_on?: string[];
|
|
2398
2466
|
depends_on_mode?: MobDependencyModeInput;
|
|
2467
|
+
failure_policy?: MobFlowNodeFailurePolicyInput;
|
|
2399
2468
|
kind: "step";
|
|
2400
2469
|
step_id: string;
|
|
2401
2470
|
}
|
|
@@ -2403,6 +2472,7 @@ export interface MobFlowNodeInputRepeatUntil {
|
|
|
2403
2472
|
body: MobFrameSpecInput;
|
|
2404
2473
|
depends_on?: string[];
|
|
2405
2474
|
depends_on_mode?: MobDependencyModeInput;
|
|
2475
|
+
failure_policy?: MobFlowNodeFailurePolicyInput;
|
|
2406
2476
|
kind: "repeat_until";
|
|
2407
2477
|
loop_id: string;
|
|
2408
2478
|
max_iterations: number;
|
|
@@ -2436,6 +2506,7 @@ export type WireProjectionProvenance = "host_claimed" | "controlling_host_verifi
|
|
|
2436
2506
|
export type WireReachability = "reachable" | "stale" | "unreachable" | "unknown";
|
|
2437
2507
|
export type WireNonPortableResourceKind = "rust_bundles" | "per_spawn_external_tools" | "mob_default_external_tools" | "default_llm_client_override" | "host_surface_mcp_allowlist" | "workgraph_tools";
|
|
2438
2508
|
export type WireMobRunStatus = "pending" | "running" | "completed" | "failed" | "canceled";
|
|
2509
|
+
export type WireMobRunUsageAttribution = "session_cumulative";
|
|
2439
2510
|
export type WireWorkExecutionLifecyclePhase = "absent" | "launch_requested" | "launch_uncertain" | "launch_quarantined" | "running" | "evidence_projection_requested" | "failure_evidence_projection_requested" | "cancellation_evidence_projection_requested" | "launch_failure_evidence_projection_requested" | "work_closure_requested" | "flow_failed" | "flow_canceled" | "evidence_projected" | "work_closed" | "launch_failed";
|
|
2440
2511
|
export interface WirePeerConnectivityNotApplicable {
|
|
2441
2512
|
status: "not_applicable";
|
|
@@ -2536,14 +2607,14 @@ export interface WorkCompletionPolicyReviewerQuorum {
|
|
|
2536
2607
|
export type WorkCompletionPolicy = WorkCompletionPolicySelfAttest | WorkCompletionPolicyHostConfirmed | WorkCompletionPolicyPrincipalConfirmed | WorkCompletionPolicySupervisor | WorkCompletionPolicyReviewerQuorum;
|
|
2537
2608
|
export type WorkEdgeKind = "blocks" | "parent" | "related" | "supersedes" | "derived_from";
|
|
2538
2609
|
export type WorkEvidenceKind = "host_confirmation" | "principal_confirmation" | "supervisor_confirmation" | "reviewer_confirmation" | "self_attest";
|
|
2539
|
-
export type WorkGraphEventKind = "created" | "updated" | "claimed" | "released" | "blocked" | "closed" | "linked" | "evidence_added" | "attention_created" | "attention_updated" | "execution_bound" | "execution_transitioned";
|
|
2610
|
+
export type WorkGraphEventKind = "created" | "updated" | "readiness_observed" | "claimed" | "released" | "blocked" | "closed" | "linked" | "evidence_added" | "attention_created" | "attention_updated" | "execution_bound" | "execution_transitioned";
|
|
2540
2611
|
export type WorkOwnerKind = "principal" | "agent" | "session" | "mob" | "label";
|
|
2541
2612
|
export type WorkStatus = "open" | "in_progress" | "blocked" | "completed" | "cancelled" | "failed";
|
|
2542
2613
|
export declare const WORK_GRAPH_STATUSES: readonly ["open", "in_progress", "blocked", "completed", "cancelled", "failed"];
|
|
2543
2614
|
export type WorkGraphStatus = typeof WORK_GRAPH_STATUSES[number];
|
|
2544
2615
|
export declare const WORK_GRAPH_PRIORITIES: readonly ["low", "medium", "high"];
|
|
2545
2616
|
export type WorkGraphPriority = typeof WORK_GRAPH_PRIORITIES[number];
|
|
2546
|
-
export declare const WORK_GRAPH_EVENT_KINDS: readonly ["created", "updated", "claimed", "released", "blocked", "closed", "linked", "evidence_added", "attention_created", "attention_updated", "execution_bound", "execution_transitioned"];
|
|
2617
|
+
export declare const WORK_GRAPH_EVENT_KINDS: readonly ["created", "updated", "readiness_observed", "claimed", "released", "blocked", "closed", "linked", "evidence_added", "attention_created", "attention_updated", "execution_bound", "execution_transitioned"];
|
|
2547
2618
|
export type McpLiveOperation = "add" | "remove" | "reload";
|
|
2548
2619
|
export type McpLiveOpStatus = "staged" | "applied" | "rejected";
|
|
2549
2620
|
export type McpHttpTransport = "streamable-http" | "sse";
|
|
@@ -2638,6 +2709,7 @@ export interface BridgeCommandBindMember {
|
|
|
2638
2709
|
epoch: number;
|
|
2639
2710
|
expected_address: string;
|
|
2640
2711
|
expected_peer_id: string;
|
|
2712
|
+
member: Record<string, unknown>;
|
|
2641
2713
|
protocol_version: BridgeProtocolVersion;
|
|
2642
2714
|
supervisor: BridgePeerSpec;
|
|
2643
2715
|
}
|
|
@@ -2654,6 +2726,7 @@ export interface BridgeCommandRevokeSupervisor {
|
|
|
2654
2726
|
supervisor: BridgePeerSpec;
|
|
2655
2727
|
}
|
|
2656
2728
|
export interface BridgeCommandDeliverMemberInput {
|
|
2729
|
+
bounded_result_spec?: Record<string, unknown> | null;
|
|
2657
2730
|
command: "deliver_member_input";
|
|
2658
2731
|
content: ContentInput;
|
|
2659
2732
|
epoch: number;
|
|
@@ -2704,6 +2777,7 @@ export interface BridgeCommandCancelTrackedMemberInput {
|
|
|
2704
2777
|
export interface BridgeCommandRetireMember {
|
|
2705
2778
|
command: "retire_member";
|
|
2706
2779
|
epoch: number;
|
|
2780
|
+
member_fence: Record<string, unknown>;
|
|
2707
2781
|
protocol_version: BridgeProtocolVersion;
|
|
2708
2782
|
supervisor: BridgePeerSpec;
|
|
2709
2783
|
}
|
|
@@ -2974,6 +3048,12 @@ export interface BridgeRejectionCauseHistoryRowTooLargePayload {
|
|
|
2974
3048
|
export interface BridgeRejectionCauseHistoryRowTooLarge {
|
|
2975
3049
|
history_row_too_large: BridgeRejectionCauseHistoryRowTooLargePayload;
|
|
2976
3050
|
}
|
|
3051
|
+
export interface BridgeRejectionCauseRuntimeRetirementInProgressPayload {
|
|
3052
|
+
stage: string;
|
|
3053
|
+
}
|
|
3054
|
+
export interface BridgeRejectionCauseRuntimeRetirementInProgress {
|
|
3055
|
+
runtime_retirement_in_progress: BridgeRejectionCauseRuntimeRetirementInProgressPayload;
|
|
3056
|
+
}
|
|
2977
3057
|
export interface BridgeRejectionCauseScopeDeniedPayload {
|
|
2978
3058
|
presented: WireControlScope[];
|
|
2979
3059
|
required: WireControlScope;
|
|
@@ -3050,10 +3130,11 @@ export interface BridgeRejectionCauseSessionOwnershipConflictPayload {
|
|
|
3050
3130
|
export interface BridgeRejectionCauseSessionOwnershipConflict {
|
|
3051
3131
|
session_ownership_conflict: BridgeRejectionCauseSessionOwnershipConflictPayload;
|
|
3052
3132
|
}
|
|
3053
|
-
export type BridgeRejectionCause = "not_bound" | "stale_supervisor" | "sender_mismatch" | "already_bound" | "invalid_bootstrap_token" | "unsupported_protocol_version" | "invalid_supervisor_spec" | "invalid_peer_spec" | "address_mismatch" | "unsupported" | "internal" | "stale_fence" | BridgeRejectionCauseStaleCursor | BridgeRejectionCauseOversizedEvent | BridgeRejectionCauseHistoryRowTooLarge | "unavailable" | BridgeRejectionCauseScopeDenied | "spec_digest_mismatch" | BridgeRejectionCauseMaterializeBuildRejected | BridgeRejectionCauseModelUnresolvable | BridgeRejectionCauseAuthBindingUnresolvable | BridgeRejectionCauseMcpCommandMissing | "realm_backend_unavailable" | BridgeRejectionCauseEnvKeyMissing | BridgeRejectionCauseHostEngineVersionChanged | BridgeRejectionCauseModelNotRealtime | BridgeRejectionCauseLiveAdapterUnavailable | "live_transport_unavailable" | "live_channel_already_bound" | "live_channel_not_found" | BridgeRejectionCauseLiveTransportUnsupported | "resume_session_not_found" | BridgeRejectionCauseCapabilityMissing | "launch_mode_unsupported" | "launch_mode_placement_mismatch" | BridgeRejectionCauseSessionOwnershipConflict;
|
|
3133
|
+
export type BridgeRejectionCause = "not_bound" | "stale_supervisor" | "sender_mismatch" | "already_bound" | "invalid_bootstrap_token" | "unsupported_protocol_version" | "invalid_supervisor_spec" | "invalid_peer_spec" | "address_mismatch" | "unsupported" | "internal" | "bind_admission_outcome_unknown" | "stale_fence" | BridgeRejectionCauseStaleCursor | BridgeRejectionCauseOversizedEvent | BridgeRejectionCauseHistoryRowTooLarge | "unavailable" | BridgeRejectionCauseRuntimeRetirementInProgress | BridgeRejectionCauseScopeDenied | "spec_digest_mismatch" | BridgeRejectionCauseMaterializeBuildRejected | BridgeRejectionCauseModelUnresolvable | BridgeRejectionCauseAuthBindingUnresolvable | BridgeRejectionCauseMcpCommandMissing | "realm_backend_unavailable" | BridgeRejectionCauseEnvKeyMissing | BridgeRejectionCauseHostEngineVersionChanged | BridgeRejectionCauseModelNotRealtime | BridgeRejectionCauseLiveAdapterUnavailable | "live_transport_unavailable" | "live_channel_already_bound" | "live_channel_not_found" | BridgeRejectionCauseLiveTransportUnsupported | "resume_session_not_found" | BridgeRejectionCauseCapabilityMissing | "launch_mode_unsupported" | "launch_mode_placement_mismatch" | BridgeRejectionCauseSessionOwnershipConflict;
|
|
3054
3134
|
export interface BridgeReplyBindMember {
|
|
3055
3135
|
address: string;
|
|
3056
3136
|
capabilities: BridgeCapabilities;
|
|
3137
|
+
member_fence: Record<string, unknown>;
|
|
3057
3138
|
peer_id: string;
|
|
3058
3139
|
result: "bind_member";
|
|
3059
3140
|
}
|
|
@@ -3083,8 +3164,7 @@ export interface BridgeReplyTrackedInputCancelled {
|
|
|
3083
3164
|
result: "tracked_input_cancelled";
|
|
3084
3165
|
}
|
|
3085
3166
|
export interface BridgeReplyRetire {
|
|
3086
|
-
|
|
3087
|
-
inputs_pending_drain: number;
|
|
3167
|
+
outcome: Record<string, unknown>;
|
|
3088
3168
|
result: "retire";
|
|
3089
3169
|
}
|
|
3090
3170
|
export interface BridgeReplyDestroy {
|
|
@@ -3286,15 +3366,23 @@ export interface CommsSendResultInputAccepted {
|
|
|
3286
3366
|
stream_reserved: boolean;
|
|
3287
3367
|
}
|
|
3288
3368
|
export interface CommsSendResultPeerMessageSent {
|
|
3289
|
-
delivery:
|
|
3369
|
+
delivery: {
|
|
3370
|
+
durably_resolved: Record<string, unknown>;
|
|
3371
|
+
} | "acked" | "volatile_handed_off" | "queued";
|
|
3290
3372
|
envelope_id: string;
|
|
3291
3373
|
kind: "peer_message_sent";
|
|
3292
3374
|
}
|
|
3293
3375
|
export interface CommsSendResultPeerLifecycleSent {
|
|
3376
|
+
delivery: {
|
|
3377
|
+
durably_resolved: Record<string, unknown>;
|
|
3378
|
+
} | "acked" | "volatile_handed_off" | "queued";
|
|
3294
3379
|
envelope_id: string;
|
|
3295
3380
|
kind: "peer_lifecycle_sent";
|
|
3296
3381
|
}
|
|
3297
3382
|
export interface CommsSendResultPeerRequestSent {
|
|
3383
|
+
delivery: {
|
|
3384
|
+
durably_resolved: Record<string, unknown>;
|
|
3385
|
+
} | "acked" | "volatile_handed_off" | "queued";
|
|
3298
3386
|
envelope_id: string;
|
|
3299
3387
|
interaction_id: string;
|
|
3300
3388
|
kind: "peer_request_sent";
|
|
@@ -3302,6 +3390,9 @@ export interface CommsSendResultPeerRequestSent {
|
|
|
3302
3390
|
stream_reserved: boolean;
|
|
3303
3391
|
}
|
|
3304
3392
|
export interface CommsSendResultPeerResponseSent {
|
|
3393
|
+
delivery: {
|
|
3394
|
+
durably_resolved: Record<string, unknown>;
|
|
3395
|
+
} | "acked" | "volatile_handed_off" | "queued";
|
|
3305
3396
|
envelope_id: string;
|
|
3306
3397
|
in_reply_to: string;
|
|
3307
3398
|
kind: "peer_response_sent";
|
|
@@ -3799,7 +3890,7 @@ export interface WireLiveAdapterObservationAssistantTranscriptFinal {
|
|
|
3799
3890
|
response_id?: string | null;
|
|
3800
3891
|
stop_reason: WireStopReason;
|
|
3801
3892
|
text: string;
|
|
3802
|
-
usage:
|
|
3893
|
+
usage: WireUsage;
|
|
3803
3894
|
}
|
|
3804
3895
|
export interface WireLiveAdapterObservationAssistantTranscriptTruncated {
|
|
3805
3896
|
content_index?: number | null;
|
|
@@ -4361,6 +4452,12 @@ export interface SystemNoticeBlockUnknown {
|
|
|
4361
4452
|
}
|
|
4362
4453
|
export type SystemNoticeBlock = SystemNoticeBlockComms | SystemNoticeBlockExternalEvent | SystemNoticeBlockToolConfig | SystemNoticeBlockMcp | SystemNoticeBlockBackgroundJob | SystemNoticeBlockAuth | SystemNoticeBlockRuntimeNotice | SystemNoticeBlockUnknown;
|
|
4363
4454
|
export type SystemNoticeKind = "generic" | "comms" | "external_event" | "mcp_pending" | "mcp" | "background_job" | "tool_scope" | "tool_scope_warning" | "auth_reauth_required";
|
|
4455
|
+
export type SystemPromptKey = string;
|
|
4456
|
+
export type SystemPromptVersion = number;
|
|
4457
|
+
export interface SystemPromptVersionIdentity {
|
|
4458
|
+
key: SystemPromptKey;
|
|
4459
|
+
version: SystemPromptVersion;
|
|
4460
|
+
}
|
|
4364
4461
|
export type TranscriptUserRole = "conversational" | "compaction_summary" | "injected_context";
|
|
4365
4462
|
export type AssistantImageId = string;
|
|
4366
4463
|
export interface BlobRef {
|
|
@@ -4430,6 +4527,7 @@ export type WireServerToolKind = WireServerToolKindWebSearch | WireServerToolKin
|
|
|
4430
4527
|
export interface TranscriptRewriteMessageSystem {
|
|
4431
4528
|
content: string;
|
|
4432
4529
|
created_at?: string | null;
|
|
4530
|
+
prompt_version?: SystemPromptVersionIdentity | null;
|
|
4433
4531
|
role: "system";
|
|
4434
4532
|
}
|
|
4435
4533
|
export interface TranscriptRewriteMessageSystemNotice {
|
|
@@ -4521,6 +4619,7 @@ export interface WireSessionMessageSystem {
|
|
|
4521
4619
|
content: string;
|
|
4522
4620
|
created_at: string;
|
|
4523
4621
|
identity?: Record<string, unknown> | null;
|
|
4622
|
+
prompt_version?: SystemPromptVersionIdentity | null;
|
|
4524
4623
|
role: "system";
|
|
4525
4624
|
}
|
|
4526
4625
|
export interface WireSessionMessageSystemNotice {
|