@rkat/sdk 0.7.28 → 0.7.30

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.
@@ -1,4 +1,4 @@
1
- export declare const CONTRACT_VERSION = "0.7.28";
1
+ export declare const CONTRACT_VERSION = "0.7.30";
2
2
  export type Value = unknown;
3
3
  export interface WireUsage {
4
4
  input_tokens: number;
@@ -473,12 +473,14 @@ export interface ForkSessionAtParams {
473
473
  message_index: number;
474
474
  running_behavior?: "reject";
475
475
  session_id: string;
476
+ tool_access_policy?: Record<string, unknown>;
476
477
  }
477
478
  export interface ForkSessionReplaceParams {
478
479
  message_index: number;
479
480
  replacement: Record<string, unknown>;
480
481
  running_behavior?: "reject";
481
482
  session_id: string;
483
+ tool_access_policy?: Record<string, unknown>;
482
484
  }
483
485
  export interface HelpRequest {
484
486
  execution_mode?: "explain_only" | "plan_execution";
@@ -601,10 +603,10 @@ export interface RuntimeHostHealth {
601
603
  status: "ok" | "degraded" | "unhealthy";
602
604
  }
603
605
  export interface RuntimeHostInfo {
604
- capabilities: Record<string, unknown>;
606
+ capabilities: RuntimeHostCapabilities;
605
607
  contract_version: Record<string, unknown>;
606
608
  endpoints: Record<string, unknown>;
607
- health: Record<string, unknown>;
609
+ health: RuntimeHostHealth;
608
610
  host_id: string;
609
611
  host_id_scope: "process" | "realm_instance";
610
612
  placement_labels?: Record<string, string>;
@@ -749,6 +751,7 @@ export interface MobSpawnParams {
749
751
  labels?: Record<string, string>;
750
752
  launch_mode?: WireMemberLaunchMode;
751
753
  mob_id: string;
754
+ model_override?: string;
752
755
  override_profile?: WireMobProfile;
753
756
  profile: string;
754
757
  runtime_mode?: WireMobRuntimeMode;
@@ -768,6 +771,7 @@ export interface MobSpawnSpecParams {
768
771
  context?: unknown;
769
772
  initial_message?: WireContentInput;
770
773
  labels?: Record<string, string>;
774
+ model_override?: string;
771
775
  profile: string;
772
776
  runtime_mode?: WireMobRuntimeMode;
773
777
  }
@@ -805,6 +809,13 @@ export interface MobMemberListEntryWire {
805
809
  status: WireMobMemberStatus;
806
810
  wired_to?: string[];
807
811
  }
812
+ export interface WireMemberProgressSnapshot {
813
+ health: "healthy" | "degraded" | "wedged" | "unknown";
814
+ in_flight_work: number;
815
+ last_progress_at_ms: number;
816
+ last_progress_event: "execution_advanced" | "became_idle" | "unchanged";
817
+ run_state: "idle" | "run_open" | "unknown";
818
+ }
808
819
  export interface WireMobToolConfig {
809
820
  builtins?: boolean;
810
821
  comms?: boolean;
@@ -957,7 +968,7 @@ export interface MobIngressInteractionParams {
957
968
  }
958
969
  export interface MobIngressInteractionResult {
959
970
  agent_identity: string;
960
- delivery: Record<string, unknown>;
971
+ delivery: MobMemberSendResult;
961
972
  ensure_outcome: {
962
973
  spawned: MobSpawnReceiptWire;
963
974
  } | {
@@ -1003,14 +1014,14 @@ export interface MobFlowStatusParams {
1003
1014
  run_id: string;
1004
1015
  }
1005
1016
  export interface MobFlowStatusResult {
1006
- run?: Record<string, unknown>;
1017
+ run?: WireMobRun;
1007
1018
  }
1008
1019
  export interface MobRunResultParams {
1009
1020
  mob_id: string;
1010
1021
  run_id: string;
1011
1022
  }
1012
1023
  export interface MobRunResult {
1013
- run?: Record<string, unknown>;
1024
+ run?: WireMobRunResultEnvelope;
1014
1025
  }
1015
1026
  export interface MobFlowCancelParams {
1016
1027
  mob_id: string;
@@ -1024,6 +1035,7 @@ export interface MobSpawnHelperParams {
1024
1035
  auth_binding?: WireAuthBindingRef;
1025
1036
  backend?: WireMobBackendKind;
1026
1037
  mob_id: string;
1038
+ model_override?: string;
1027
1039
  prompt: string;
1028
1040
  role_name?: string;
1029
1041
  runtime_mode?: WireMobRuntimeMode;
@@ -1034,6 +1046,7 @@ export interface MobForkHelperParams {
1034
1046
  backend?: WireMobBackendKind;
1035
1047
  fork_context?: unknown;
1036
1048
  mob_id: string;
1049
+ model_override?: string;
1037
1050
  prompt: string;
1038
1051
  role_name?: string;
1039
1052
  runtime_mode?: WireMobRuntimeMode;
@@ -1074,7 +1087,8 @@ export interface MobMemberStatusResult {
1074
1087
  kickoff?: unknown;
1075
1088
  member_ref: WireMemberRef;
1076
1089
  output_preview?: string;
1077
- peer_connectivity?: Record<string, unknown>;
1090
+ peer_connectivity?: WirePeerConnectivity;
1091
+ progress?: WireMemberProgressSnapshot;
1078
1092
  resolved_capabilities?: WireResolvedModelCapabilities;
1079
1093
  status: WireMobMemberStatus;
1080
1094
  tokens_used: number;
@@ -1103,14 +1117,26 @@ export interface MobSubmitWorkParams {
1103
1117
  content: WireContentInput;
1104
1118
  injected_context?: WireContentInput[];
1105
1119
  member_ref: WireMemberRef;
1120
+ objective_id?: string;
1106
1121
  origin?: "external" | "internal";
1107
1122
  work_ref?: string;
1108
1123
  }
1109
1124
  export interface MobSubmitWorkResult {
1110
1125
  member_ref: WireMemberRef;
1111
1126
  mob_id: string;
1127
+ objective_id?: string;
1112
1128
  work_ref: string;
1113
1129
  }
1130
+ export interface MobConcludeObjectiveParams {
1131
+ member_ref: WireMemberRef;
1132
+ objective_id: string;
1133
+ outcome: string;
1134
+ }
1135
+ export interface MobConcludeObjectiveResult {
1136
+ concluded: boolean;
1137
+ member_ref: WireMemberRef;
1138
+ objective_id: string;
1139
+ }
1114
1140
  export interface MobCancelWorkParams {
1115
1141
  mob_id: string;
1116
1142
  work_ref: string;
@@ -1150,7 +1176,7 @@ export interface MobProfileLookupResult {
1150
1176
  updated_at?: string;
1151
1177
  }
1152
1178
  export interface MobProfileListResult {
1153
- profiles: Record<string, unknown>[];
1179
+ profiles: MobProfileLookupResult[];
1154
1180
  }
1155
1181
  export interface MobProfileUpdateParams {
1156
1182
  expected_revision: number;
@@ -1536,6 +1562,7 @@ export interface BridgeDeliveryPayload {
1536
1562
  handling_mode: HandlingMode;
1537
1563
  injected_context?: ContentInput[];
1538
1564
  input_id: string;
1565
+ objective_id?: string;
1539
1566
  protocol_version: BridgeProtocolVersion;
1540
1567
  supervisor: BridgePeerSpec;
1541
1568
  }
@@ -2019,6 +2046,7 @@ export interface BridgeCommandDeliverMemberInput {
2019
2046
  handling_mode: HandlingMode;
2020
2047
  injected_context?: ContentInput[];
2021
2048
  input_id: string;
2049
+ objective_id?: unknown;
2022
2050
  protocol_version: BridgeProtocolVersion;
2023
2051
  supervisor: BridgePeerSpec;
2024
2052
  }
@@ -2240,7 +2268,7 @@ export interface CommsSendResultInputAccepted {
2240
2268
  stream_reserved: boolean;
2241
2269
  }
2242
2270
  export interface CommsSendResultPeerMessageSent {
2243
- acked: boolean;
2271
+ delivery: "acked" | "handed_off" | "queued";
2244
2272
  envelope_id: string;
2245
2273
  kind: "peer_message_sent";
2246
2274
  }
@@ -2829,7 +2857,7 @@ export interface WireInputState {
2829
2857
  created_at: string;
2830
2858
  current_state: "accepted" | "queued" | "staged" | "applied" | "applied_pending_consumption" | "consumed" | "superseded" | "coalesced" | "abandoned";
2831
2859
  durability?: "durable" | "volatile" | "ephemeral";
2832
- history?: Record<string, unknown>[];
2860
+ history?: WireInputStateHistoryEntry[];
2833
2861
  idempotency_key?: string;
2834
2862
  input_id: string;
2835
2863
  last_boundary_sequence?: number;
@@ -2842,7 +2870,7 @@ export interface WireInputState {
2842
2870
  updated_at: string;
2843
2871
  }
2844
2872
  export interface ScheduleListResult {
2845
- schedules: Record<string, unknown>[];
2873
+ schedules: Schedule[];
2846
2874
  }
2847
2875
  export interface ScheduleOccurrencesResult {
2848
2876
  occurrences: Record<string, unknown>[];
@@ -2892,12 +2920,12 @@ export interface CatalogModelEntry {
2892
2920
  }
2893
2921
  export interface ProviderCatalog {
2894
2922
  default_model_id: string;
2895
- models: Record<string, unknown>[];
2923
+ models: CatalogModelEntry[];
2896
2924
  provider: string;
2897
2925
  }
2898
2926
  export interface ModelsCatalogResponse {
2899
- contract_version: Record<string, unknown>;
2900
- providers: Record<string, unknown>[];
2927
+ contract_version: ContractVersion;
2928
+ providers: ProviderCatalog[];
2901
2929
  }
2902
2930
  export interface WireModelProfile {
2903
2931
  beta_headers?: Record<string, unknown>[];
@@ -2975,9 +3003,9 @@ export interface WireProviderBinding {
2975
3003
  require_metadata_workspace?: boolean;
2976
3004
  }
2977
3005
  export interface WireRealmConnectionSet {
2978
- auth_profiles: Record<string, Record<string, unknown>>;
2979
- backends: Record<string, Record<string, unknown>>;
2980
- bindings: Record<string, Record<string, unknown>>;
3006
+ auth_profiles: Record<string, WireAuthProfile>;
3007
+ backends: Record<string, WireBackendProfile>;
3008
+ bindings: Record<string, WireProviderBinding>;
2981
3009
  default_binding?: string;
2982
3010
  realm_id: string;
2983
3011
  }
@@ -2997,7 +3025,7 @@ export interface WireAuthProfileCreated {
2997
3025
  }
2998
3026
  export interface WireAuthProfileDetail {
2999
3027
  auth_binding: WireAuthBindingRef;
3000
- auth_profile: Record<string, unknown>;
3028
+ auth_profile: WireAuthProfile;
3001
3029
  binding_id: string;
3002
3030
  profile_id: string;
3003
3031
  }
@@ -3042,12 +3070,12 @@ export interface WireRealmSummary {
3042
3070
  realm_id: string;
3043
3071
  }
3044
3072
  export interface WireRealmList {
3045
- realms: Record<string, unknown>[];
3073
+ realms: WireRealmSummary[];
3046
3074
  }
3047
3075
  export interface WireAuthProfilesList {
3048
- auth_profiles: Record<string, unknown>[];
3049
- backend_profiles: Record<string, unknown>[];
3050
- bindings: Record<string, unknown>[];
3076
+ auth_profiles: WireAuthProfile[];
3077
+ backend_profiles: WireBackendProfile[];
3078
+ bindings: WireProviderBinding[];
3051
3079
  realm_id: string;
3052
3080
  }
3053
3081
  export interface WireAuthStatus {