ruicode 0.98.0 → 0.98.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/README.md CHANGED
@@ -180,7 +180,7 @@ An explicit `tools: []` allows no tools.
180
180
  `provider` may be left out when the Host serves one provider.
181
181
  A creation naming `parent` inherits that Session's Workspace and provider and cannot supply either field.
182
182
  `effort: null` and `compactAt: null` request the Host defaults for the selected model.
183
- Updates preserve omitted settings and may change the model within the Session's fixed provider; the Workspace remains fixed.
183
+ Updates preserve omitted settings and may change the model, and the connection to another served one of the same wire format; the Workspace remains fixed.
184
184
 
185
185
  ```ts
186
186
  const session = await rui.sessions.create({
@@ -9,8 +9,9 @@ export const REJECTION_SENTENCES = {
9
9
  "archive_pending": "This Session is still settling its archive request.",
10
10
  "background_unavailable": "This saved promotion was refused under an earlier Host policy.",
11
11
  "compact_at_too_large": "The compaction trigger is larger than the model's context window.",
12
- "connection_is_immutable": "An existing Session cannot change its connection.",
12
+ "connection_is_immutable": "This saved command was rejected when a Session could not change its connection.",
13
13
  "connection_unserved": "This Host does not serve that connection.",
14
+ "connection_wire_differs": "A Session can switch only to a connection that speaks the same wire format as its current one. Nothing was changed.",
14
15
  "duplicate_app_tool_name": "Two app tools share a name.",
15
16
  "invalid_app_tool_name": "An app tool name is not a valid tool name.",
16
17
  "invalid_app_tool_policy": "An app tool's replay, restart limit or wait is out of range.",
@@ -32,9 +32,9 @@ export interface AppToolSpec {
32
32
  export interface AgentSpec {
33
33
  /** The Session Workspace, fixed for its life. Root creation requires it; children inherit it. */
34
34
  workspace?: string;
35
- /** `openai` or `codex`. Fixed for the Session's life. */
35
+ /** A served connection name. May change later only to another served connection of the same wire format. */
36
36
  connection?: NonNullable<Schemas["AgentSpec"]["connection"]>;
37
- /** Creation requires a model, supplied directly or by a preset. May change within the fixed provider. */
37
+ /** Creation requires a model, supplied directly or by a preset. May change later; a new connection must offer the Session's tools. */
38
38
  model: string;
39
39
  instructions?: string;
40
40
  /** JSON output schema object; `null` clears it. */
@@ -1,4 +1,4 @@
1
- export declare const WIRE_VERSION = "31";
1
+ export declare const WIRE_VERSION = "32";
2
2
  export interface Post {
3
3
  socketPath: string;
4
4
  path: string;
package/dist/transport.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { request } from "node:http";
2
2
  import { RuiRequestError } from "./errors.js";
3
- export const WIRE_VERSION = "31";
3
+ export const WIRE_VERSION = "32";
4
4
  const MAX_REPLY_BYTES = 64 * 1024 * 1024;
5
5
  const TRANSFER_IDLE_MS = 60_000;
6
6
  export class ConnectionError extends Error {
package/dist/wire.d.ts CHANGED
@@ -519,7 +519,7 @@ export interface components {
519
519
  schemas: {
520
520
  ActionBackgroundConflictReply: {
521
521
  /** @constant */
522
- version: "31";
522
+ version: "32";
523
523
  /** @constant */
524
524
  type: "action_background_reply";
525
525
  answer: {
@@ -535,7 +535,7 @@ export interface components {
535
535
  };
536
536
  ActionBackgroundReply: {
537
537
  /** @constant */
538
- version: "31";
538
+ version: "32";
539
539
  /** @constant */
540
540
  type: "action_background_reply";
541
541
  answer: {
@@ -552,7 +552,7 @@ export interface components {
552
552
  };
553
553
  } | {
554
554
  /** @constant */
555
- version: "31";
555
+ version: "32";
556
556
  /** @constant */
557
557
  type: "action_background_reply";
558
558
  answer: {
@@ -567,7 +567,7 @@ export interface components {
567
567
  };
568
568
  ActionBackgroundRequest: {
569
569
  /** @constant */
570
- version: "31";
570
+ version: "32";
571
571
  /** @constant */
572
572
  kind: "action_background";
573
573
  store: string;
@@ -583,7 +583,7 @@ export interface components {
583
583
  };
584
584
  ActionPublishRequest: {
585
585
  /** @constant */
586
- version: "31";
586
+ version: "32";
587
587
  /** @constant */
588
588
  kind: "action_publish";
589
589
  store: string;
@@ -593,7 +593,7 @@ export interface components {
593
593
  };
594
594
  ActionStopConflictReply: {
595
595
  /** @constant */
596
- version: "31";
596
+ version: "32";
597
597
  /** @constant */
598
598
  type: "action_stop_reply";
599
599
  answer: {
@@ -609,7 +609,7 @@ export interface components {
609
609
  };
610
610
  ActionStopReply: {
611
611
  /** @constant */
612
- version: "31";
612
+ version: "32";
613
613
  /** @constant */
614
614
  type: "action_stop_reply";
615
615
  answer: {
@@ -622,7 +622,7 @@ export interface components {
622
622
  };
623
623
  } | {
624
624
  /** @constant */
625
- version: "31";
625
+ version: "32";
626
626
  /** @constant */
627
627
  type: "action_stop_reply";
628
628
  answer: {
@@ -637,7 +637,7 @@ export interface components {
637
637
  };
638
638
  ActionStopRequest: {
639
639
  /** @constant */
640
- version: "31";
640
+ version: "32";
641
641
  /** @constant */
642
642
  kind: "action_stop";
643
643
  store: string;
@@ -647,7 +647,7 @@ export interface components {
647
647
  };
648
648
  ActivityContentRequest: {
649
649
  /** @constant */
650
- version: "31";
650
+ version: "32";
651
651
  /** @constant */
652
652
  kind: "activity_content";
653
653
  store: string;
@@ -865,7 +865,7 @@ export interface components {
865
865
  };
866
866
  ActivityPageReply: {
867
867
  /** @constant */
868
- version: "31";
868
+ version: "32";
869
869
  /** @constant */
870
870
  type: "activity_page";
871
871
  end: components["schemas"]["Decimal"];
@@ -880,7 +880,7 @@ export interface components {
880
880
  since: string | null;
881
881
  } | {
882
882
  /** @constant */
883
- version: "31";
883
+ version: "32";
884
884
  /** @constant */
885
885
  type: "activity_page";
886
886
  /** @constant */
@@ -889,7 +889,7 @@ export interface components {
889
889
  };
890
890
  ActivityPageRequest: {
891
891
  /** @constant */
892
- version: "31";
892
+ version: "32";
893
893
  /** @constant */
894
894
  kind: "activity_page";
895
895
  store: string;
@@ -923,7 +923,7 @@ export interface components {
923
923
  };
924
924
  ActivitySearchReply: {
925
925
  /** @constant */
926
- version: "31";
926
+ version: "32";
927
927
  /** @constant */
928
928
  type: "activity_search";
929
929
  items: components["schemas"]["ActivitySearchItem"][];
@@ -931,7 +931,7 @@ export interface components {
931
931
  };
932
932
  ActivitySearchRequest: {
933
933
  /** @constant */
934
- version: "31";
934
+ version: "32";
935
935
  /** @constant */
936
936
  kind: "activity_search";
937
937
  store: string;
@@ -1021,7 +1021,7 @@ export interface components {
1021
1021
  };
1022
1022
  ConfigureConflictReply: {
1023
1023
  /** @constant */
1024
- version: "31";
1024
+ version: "32";
1025
1025
  /** @constant */
1026
1026
  type: "configuration_reply";
1027
1027
  answer: {
@@ -1042,7 +1042,7 @@ export interface components {
1042
1042
  };
1043
1043
  ConfigureReply: {
1044
1044
  /** @constant */
1045
- version: "31";
1045
+ version: "32";
1046
1046
  /** @constant */
1047
1047
  type: "configuration_reply";
1048
1048
  answer: {
@@ -1061,7 +1061,7 @@ export interface components {
1061
1061
  };
1062
1062
  } | {
1063
1063
  /** @constant */
1064
- version: "31";
1064
+ version: "32";
1065
1065
  /** @constant */
1066
1066
  type: "configuration_reply";
1067
1067
  answer: {
@@ -1094,7 +1094,7 @@ export interface components {
1094
1094
  };
1095
1095
  } | {
1096
1096
  /** @constant */
1097
- version: "31";
1097
+ version: "32";
1098
1098
  /** @constant */
1099
1099
  type: "configuration_reply";
1100
1100
  answer: {
@@ -1116,7 +1116,7 @@ export interface components {
1116
1116
  };
1117
1117
  } | {
1118
1118
  /** @constant */
1119
- version: "31";
1119
+ version: "32";
1120
1120
  /** @constant */
1121
1121
  type: "configuration_reply";
1122
1122
  answer: {
@@ -1125,7 +1125,7 @@ export interface components {
1125
1125
  replayed: boolean;
1126
1126
  session: string;
1127
1127
  /** @enum {string} */
1128
- code: "invalid_session_reference" | "unknown_session" | "unsupported_permission_mode" | "unknown_connection" | "invalid_model" | "model_capability_unavailable" | "invalid_output_schema" | "invalid_compaction_trigger" | "compact_at_too_large" | "invalid_output_reservation" | "unsupported_reasoning_effort" | "unknown_tool" | "mcp_server_unavailable" | "provider_tool_missing" | "loaded_tools_not_in_tools" | "loaded_tools_unreachable" | "invalid_label" | "missing_settings" | "settings_on_reload" | "unknown_preset" | "preset_on_update" | "parent_on_update" | "parent_provider_forbidden" | "parent_workspace_forbidden" | "tools_not_in_parent" | "permission_mode_wider_than_parent" | "invalid_workspace" | "workspace_is_immutable" | "connection_is_immutable" | "model_is_immutable" | "revision_exhausted" | "skills_unavailable" | "preferences_on_update" | "invalid_app_tools" | "app_tools_too_large" | "invalid_app_tool_name" | "duplicate_app_tool_name" | "app_tool_built_in_clash" | "app_tool_host_clash" | "invalid_app_tool_policy" | "app_tools_on_child" | "connection_unserved";
1128
+ code: "invalid_session_reference" | "unknown_session" | "unsupported_permission_mode" | "unknown_connection" | "invalid_model" | "model_capability_unavailable" | "invalid_output_schema" | "invalid_compaction_trigger" | "compact_at_too_large" | "invalid_output_reservation" | "unsupported_reasoning_effort" | "unknown_tool" | "mcp_server_unavailable" | "provider_tool_missing" | "loaded_tools_not_in_tools" | "loaded_tools_unreachable" | "invalid_label" | "missing_settings" | "settings_on_reload" | "unknown_preset" | "preset_on_update" | "parent_on_update" | "parent_provider_forbidden" | "parent_workspace_forbidden" | "tools_not_in_parent" | "permission_mode_wider_than_parent" | "invalid_workspace" | "workspace_is_immutable" | "connection_is_immutable" | "connection_wire_differs" | "model_is_immutable" | "revision_exhausted" | "skills_unavailable" | "preferences_on_update" | "invalid_app_tools" | "app_tools_too_large" | "invalid_app_tool_name" | "duplicate_app_tool_name" | "app_tool_built_in_clash" | "app_tool_host_clash" | "invalid_app_tool_policy" | "app_tools_on_child" | "connection_unserved";
1129
1129
  message: string | null;
1130
1130
  missing: ("model" | "workspace" | "connection")[] | null;
1131
1131
  };
@@ -1138,7 +1138,7 @@ export interface components {
1138
1138
  };
1139
1139
  ConfigureRequest: {
1140
1140
  /** @constant */
1141
- version: "31";
1141
+ version: "32";
1142
1142
  /** @constant */
1143
1143
  kind: "configure";
1144
1144
  store: string;
@@ -1177,7 +1177,7 @@ export interface components {
1177
1177
  };
1178
1178
  ConversationContentRequest: {
1179
1179
  /** @constant */
1180
- version: "31";
1180
+ version: "32";
1181
1181
  /** @constant */
1182
1182
  kind: "conversation_content";
1183
1183
  store: string;
@@ -1193,7 +1193,7 @@ export interface components {
1193
1193
  Decimal: string;
1194
1194
  ErrorReply: {
1195
1195
  /** @constant */
1196
- version: "31";
1196
+ version: "32";
1197
1197
  /** @enum {string} */
1198
1198
  type: "invocation_error" | "observation_error" | "busy" | "unsupported" | "host_unavailable" | "result_unavailable" | "action_unavailable" | "conversation_unavailable" | "activity_unavailable" | "failed_response_unavailable" | "parts_unavailable";
1199
1199
  code: string;
@@ -1207,7 +1207,7 @@ export interface components {
1207
1207
  };
1208
1208
  HostInfoReply: {
1209
1209
  /** @constant */
1210
- version: "31";
1210
+ version: "32";
1211
1211
  /** @constant */
1212
1212
  type: "host_info";
1213
1213
  store: string;
@@ -1228,21 +1228,21 @@ export interface components {
1228
1228
  };
1229
1229
  HostInfoRequest: {
1230
1230
  /** @constant */
1231
- version: "31";
1231
+ version: "32";
1232
1232
  /** @constant */
1233
1233
  kind: "host_info";
1234
1234
  store: string;
1235
1235
  };
1236
1236
  HostPauseReply: {
1237
1237
  /** @constant */
1238
- version: "31";
1238
+ version: "32";
1239
1239
  /** @constant */
1240
1240
  type: "host_pause_reply";
1241
1241
  paused: boolean;
1242
1242
  };
1243
1243
  HostPauseRequest: {
1244
1244
  /** @constant */
1245
- version: "31";
1245
+ version: "32";
1246
1246
  /** @constant */
1247
1247
  kind: "host_pause";
1248
1248
  store: string;
@@ -1392,14 +1392,14 @@ export interface components {
1392
1392
  };
1393
1393
  HostStopReply: {
1394
1394
  /** @constant */
1395
- version: "31";
1395
+ version: "32";
1396
1396
  /** @constant */
1397
1397
  type: "host_stop_reply";
1398
1398
  /** @constant */
1399
1399
  status: "acknowledged";
1400
1400
  } | {
1401
1401
  /** @constant */
1402
- version: "31";
1402
+ version: "32";
1403
1403
  /** @constant */
1404
1404
  type: "host_stop_reply";
1405
1405
  /** @constant */
@@ -1408,13 +1408,13 @@ export interface components {
1408
1408
  };
1409
1409
  HostStopRequest: {
1410
1410
  /** @constant */
1411
- version: "31";
1411
+ version: "32";
1412
1412
  /** @constant */
1413
1413
  kind: "host_stop";
1414
1414
  store: string;
1415
1415
  } | {
1416
1416
  /** @constant */
1417
- version: "31";
1417
+ version: "32";
1418
1418
  /** @constant */
1419
1419
  kind: "host_stop";
1420
1420
  store: string;
@@ -1441,7 +1441,7 @@ export interface components {
1441
1441
  };
1442
1442
  InspectSessionReply: {
1443
1443
  /** @constant */
1444
- version: "31";
1444
+ version: "32";
1445
1445
  /** @constant */
1446
1446
  type: "session_report";
1447
1447
  /** @constant */
@@ -1464,7 +1464,7 @@ export interface components {
1464
1464
  execution: components["schemas"]["domainreportExecutionJson"];
1465
1465
  } | {
1466
1466
  /** @constant */
1467
- version: "31";
1467
+ version: "32";
1468
1468
  /** @constant */
1469
1469
  type: "session_report";
1470
1470
  /** @constant */
@@ -1485,7 +1485,7 @@ export interface components {
1485
1485
  execution: components["schemas"]["domainreportExecutionJson"];
1486
1486
  } | {
1487
1487
  /** @constant */
1488
- version: "31";
1488
+ version: "32";
1489
1489
  /** @constant */
1490
1490
  type: "session_report";
1491
1491
  /** @constant */
@@ -1504,7 +1504,7 @@ export interface components {
1504
1504
  };
1505
1505
  } | {
1506
1506
  /** @constant */
1507
- version: "31";
1507
+ version: "32";
1508
1508
  /** @constant */
1509
1509
  type: "session_report";
1510
1510
  /** @constant */
@@ -1521,7 +1521,7 @@ export interface components {
1521
1521
  };
1522
1522
  InspectSessionRequest: {
1523
1523
  /** @constant */
1524
- version: "31";
1524
+ version: "32";
1525
1525
  /** @constant */
1526
1526
  kind: "inspect_session";
1527
1527
  store: string;
@@ -1529,7 +1529,7 @@ export interface components {
1529
1529
  since?: string | null;
1530
1530
  } | {
1531
1531
  /** @constant */
1532
- version: "31";
1532
+ version: "32";
1533
1533
  /** @constant */
1534
1534
  kind: "inspect_session";
1535
1535
  store: string;
@@ -1538,7 +1538,7 @@ export interface components {
1538
1538
  profile: "full";
1539
1539
  } | {
1540
1540
  /** @constant */
1541
- version: "31";
1541
+ version: "32";
1542
1542
  /** @constant */
1543
1543
  kind: "inspect_session";
1544
1544
  store: string;
@@ -1550,7 +1550,7 @@ export interface components {
1550
1550
  };
1551
1551
  ListSessionsReply: {
1552
1552
  /** @constant */
1553
- version: "31";
1553
+ version: "32";
1554
1554
  /** @constant */
1555
1555
  type: "session_list";
1556
1556
  sessions: components["schemas"]["SessionRow"][];
@@ -1563,7 +1563,7 @@ export interface components {
1563
1563
  };
1564
1564
  } | {
1565
1565
  /** @constant */
1566
- version: "31";
1566
+ version: "32";
1567
1567
  /** @constant */
1568
1568
  type: "session_list";
1569
1569
  sessions: components["schemas"]["SessionRow"][];
@@ -1576,7 +1576,7 @@ export interface components {
1576
1576
  };
1577
1577
  } | {
1578
1578
  /** @constant */
1579
- version: "31";
1579
+ version: "32";
1580
1580
  /** @constant */
1581
1581
  type: "session_list";
1582
1582
  sessions: components["schemas"]["SessionRow"][];
@@ -1586,7 +1586,7 @@ export interface components {
1586
1586
  next: null;
1587
1587
  } | {
1588
1588
  /** @constant */
1589
- version: "31";
1589
+ version: "32";
1590
1590
  /** @constant */
1591
1591
  type: "session_list";
1592
1592
  sessions: components["schemas"]["ArchivedRowFields"][];
@@ -1602,7 +1602,7 @@ export interface components {
1602
1602
  };
1603
1603
  ListSessionsRequest: {
1604
1604
  /** @constant */
1605
- version: "31";
1605
+ version: "32";
1606
1606
  /** @constant */
1607
1607
  kind: "list_sessions";
1608
1608
  store: string;
@@ -1616,7 +1616,7 @@ export interface components {
1616
1616
  after_reference?: string;
1617
1617
  } | {
1618
1618
  /** @constant */
1619
- version: "31";
1619
+ version: "32";
1620
1620
  /** @constant */
1621
1621
  kind: "list_sessions";
1622
1622
  store: string;
@@ -1630,7 +1630,7 @@ export interface components {
1630
1630
  };
1631
1631
  MessageConflictReply: {
1632
1632
  /** @constant */
1633
- version: "31";
1633
+ version: "32";
1634
1634
  /** @constant */
1635
1635
  type: "message_reply";
1636
1636
  answer: {
@@ -1682,7 +1682,7 @@ export interface components {
1682
1682
  };
1683
1683
  MessageReply: {
1684
1684
  /** @constant */
1685
- version: "31";
1685
+ version: "32";
1686
1686
  /** @constant */
1687
1687
  type: "message_reply";
1688
1688
  answer: {
@@ -1704,7 +1704,7 @@ export interface components {
1704
1704
  };
1705
1705
  } | {
1706
1706
  /** @constant */
1707
- version: "31";
1707
+ version: "32";
1708
1708
  /** @constant */
1709
1709
  type: "message_reply";
1710
1710
  answer: {
@@ -1740,7 +1740,7 @@ export interface components {
1740
1740
  };
1741
1741
  } | {
1742
1742
  /** @constant */
1743
- version: "31";
1743
+ version: "32";
1744
1744
  /** @constant */
1745
1745
  type: "message_reply";
1746
1746
  answer: {
@@ -1749,7 +1749,7 @@ export interface components {
1749
1749
  replayed: boolean;
1750
1750
  session: string;
1751
1751
  /** @enum {string} */
1752
- code: "session_archiving" | "invalid_session_reference" | "unknown_session" | "unsupported_permission_mode" | "unknown_connection" | "connection_unserved" | "invalid_model" | "model_capability_unavailable" | "invalid_output_schema" | "invalid_compaction_trigger" | "compact_at_too_large" | "invalid_output_reservation" | "unsupported_reasoning_effort" | "unknown_tool" | "mcp_server_unavailable" | "provider_tool_missing" | "loaded_tools_not_in_tools" | "loaded_tools_unreachable" | "invalid_label" | "missing_settings" | "unknown_preset" | "preset_on_update" | "parent_on_update" | "parent_provider_forbidden" | "parent_workspace_forbidden" | "tools_not_in_parent" | "permission_mode_wider_than_parent" | "invalid_workspace" | "workspace_is_immutable" | "connection_is_immutable" | "model_is_immutable" | "revision_exhausted" | "skills_unavailable" | "preferences_on_update" | "invalid_app_tools" | "app_tools_too_large" | "invalid_app_tool_name" | "duplicate_app_tool_name" | "app_tool_built_in_clash" | "invalid_app_tool_policy" | "app_tools_on_child" | "skill_file_unavailable" | "skill_file_too_large" | "skill_text_invalid";
1752
+ code: "session_archiving" | "invalid_session_reference" | "unknown_session" | "unsupported_permission_mode" | "unknown_connection" | "connection_unserved" | "invalid_model" | "model_capability_unavailable" | "invalid_output_schema" | "invalid_compaction_trigger" | "compact_at_too_large" | "invalid_output_reservation" | "unsupported_reasoning_effort" | "unknown_tool" | "mcp_server_unavailable" | "provider_tool_missing" | "loaded_tools_not_in_tools" | "loaded_tools_unreachable" | "invalid_label" | "missing_settings" | "unknown_preset" | "preset_on_update" | "parent_on_update" | "parent_provider_forbidden" | "parent_workspace_forbidden" | "tools_not_in_parent" | "permission_mode_wider_than_parent" | "invalid_workspace" | "workspace_is_immutable" | "connection_is_immutable" | "connection_wire_differs" | "model_is_immutable" | "revision_exhausted" | "skills_unavailable" | "preferences_on_update" | "invalid_app_tools" | "app_tools_too_large" | "invalid_app_tool_name" | "duplicate_app_tool_name" | "app_tool_built_in_clash" | "invalid_app_tool_policy" | "app_tools_on_child" | "skill_file_unavailable" | "skill_file_too_large" | "skill_text_invalid";
1753
1753
  message: string | null;
1754
1754
  missing: ("model" | "workspace" | "connection")[] | null;
1755
1755
  };
@@ -1765,7 +1765,7 @@ export interface components {
1765
1765
  };
1766
1766
  } | {
1767
1767
  /** @constant */
1768
- version: "31";
1768
+ version: "32";
1769
1769
  /** @constant */
1770
1770
  type: "message_reply";
1771
1771
  answer: {
@@ -1774,7 +1774,7 @@ export interface components {
1774
1774
  replayed: boolean;
1775
1775
  session: string;
1776
1776
  /** @enum {string} */
1777
- code: "session_archiving" | "invalid_session_reference" | "unknown_session" | "unsupported_permission_mode" | "unknown_connection" | "connection_unserved" | "invalid_model" | "model_capability_unavailable" | "invalid_output_schema" | "invalid_compaction_trigger" | "compact_at_too_large" | "invalid_output_reservation" | "unsupported_reasoning_effort" | "unknown_tool" | "mcp_server_unavailable" | "provider_tool_missing" | "loaded_tools_not_in_tools" | "loaded_tools_unreachable" | "invalid_label" | "missing_settings" | "unknown_preset" | "preset_on_update" | "parent_on_update" | "parent_provider_forbidden" | "parent_workspace_forbidden" | "tools_not_in_parent" | "permission_mode_wider_than_parent" | "invalid_workspace" | "workspace_is_immutable" | "connection_is_immutable" | "model_is_immutable" | "revision_exhausted" | "skills_unavailable" | "preferences_on_update" | "invalid_app_tools" | "app_tools_too_large" | "invalid_app_tool_name" | "duplicate_app_tool_name" | "app_tool_built_in_clash" | "invalid_app_tool_policy" | "app_tools_on_child" | "skill_file_unavailable" | "skill_file_too_large" | "skill_text_invalid";
1777
+ code: "session_archiving" | "invalid_session_reference" | "unknown_session" | "unsupported_permission_mode" | "unknown_connection" | "connection_unserved" | "invalid_model" | "model_capability_unavailable" | "invalid_output_schema" | "invalid_compaction_trigger" | "compact_at_too_large" | "invalid_output_reservation" | "unsupported_reasoning_effort" | "unknown_tool" | "mcp_server_unavailable" | "provider_tool_missing" | "loaded_tools_not_in_tools" | "loaded_tools_unreachable" | "invalid_label" | "missing_settings" | "unknown_preset" | "preset_on_update" | "parent_on_update" | "parent_provider_forbidden" | "parent_workspace_forbidden" | "tools_not_in_parent" | "permission_mode_wider_than_parent" | "invalid_workspace" | "workspace_is_immutable" | "connection_is_immutable" | "connection_wire_differs" | "model_is_immutable" | "revision_exhausted" | "skills_unavailable" | "preferences_on_update" | "invalid_app_tools" | "app_tools_too_large" | "invalid_app_tool_name" | "duplicate_app_tool_name" | "app_tool_built_in_clash" | "invalid_app_tool_policy" | "app_tools_on_child" | "skill_file_unavailable" | "skill_file_too_large" | "skill_text_invalid";
1778
1778
  message: string | null;
1779
1779
  missing: ("model" | "workspace" | "connection")[] | null;
1780
1780
  };
@@ -1791,7 +1791,7 @@ export interface components {
1791
1791
  };
1792
1792
  MessageRequest: {
1793
1793
  /** @constant */
1794
- version: "31";
1794
+ version: "32";
1795
1795
  /** @constant */
1796
1796
  kind: "message";
1797
1797
  store: string;
@@ -1808,7 +1808,7 @@ export interface components {
1808
1808
  require_model?: true;
1809
1809
  } | {
1810
1810
  /** @constant */
1811
- version: "31";
1811
+ version: "32";
1812
1812
  /** @constant */
1813
1813
  kind: "message";
1814
1814
  store: string;
@@ -1821,7 +1821,7 @@ export interface components {
1821
1821
  };
1822
1822
  ModelInterruptionConflictReply: {
1823
1823
  /** @constant */
1824
- version: "31";
1824
+ version: "32";
1825
1825
  /** @constant */
1826
1826
  type: "model_interruption_reply";
1827
1827
  answer: {
@@ -1840,7 +1840,7 @@ export interface components {
1840
1840
  };
1841
1841
  ModelInterruptionReply: {
1842
1842
  /** @constant */
1843
- version: "31";
1843
+ version: "32";
1844
1844
  /** @constant */
1845
1845
  type: "model_interruption_reply";
1846
1846
  answer: {
@@ -1855,7 +1855,7 @@ export interface components {
1855
1855
  };
1856
1856
  } | {
1857
1857
  /** @constant */
1858
- version: "31";
1858
+ version: "32";
1859
1859
  /** @constant */
1860
1860
  type: "model_interruption_reply";
1861
1861
  answer: {
@@ -1873,7 +1873,7 @@ export interface components {
1873
1873
  };
1874
1874
  ModelInterruptionRequest: {
1875
1875
  /** @constant */
1876
- version: "31";
1876
+ version: "32";
1877
1877
  /** @constant */
1878
1878
  kind: "model_interruption";
1879
1879
  store: string;
@@ -1895,14 +1895,14 @@ export interface components {
1895
1895
  };
1896
1896
  ModelListReply: {
1897
1897
  /** @constant */
1898
- version: "31";
1898
+ version: "32";
1899
1899
  /** @constant */
1900
1900
  type: "model_list";
1901
1901
  connections: components["schemas"]["ModelListEntry"][];
1902
1902
  };
1903
1903
  ModelListRequest: {
1904
1904
  /** @constant */
1905
- version: "31";
1905
+ version: "32";
1906
1906
  /** @constant */
1907
1907
  kind: "model_list";
1908
1908
  store: string;
@@ -1913,7 +1913,7 @@ export interface components {
1913
1913
  };
1914
1914
  ObserveCommandReply: {
1915
1915
  /** @constant */
1916
- version: "31";
1916
+ version: "32";
1917
1917
  /** @constant */
1918
1918
  type: "command_observation";
1919
1919
  key: string;
@@ -1926,7 +1926,7 @@ export interface components {
1926
1926
  };
1927
1927
  } | {
1928
1928
  /** @constant */
1929
- version: "31";
1929
+ version: "32";
1930
1930
  /** @constant */
1931
1931
  type: "command_observation";
1932
1932
  key: string;
@@ -1966,7 +1966,7 @@ export interface components {
1966
1966
  };
1967
1967
  } | ({
1968
1968
  /** @constant */
1969
- version: "31";
1969
+ version: "32";
1970
1970
  /** @constant */
1971
1971
  type: "command_observation";
1972
1972
  key: string;
@@ -1994,7 +1994,7 @@ export interface components {
1994
1994
  };
1995
1995
  } | {
1996
1996
  /** @constant */
1997
- version: "31";
1997
+ version: "32";
1998
1998
  /** @constant */
1999
1999
  type: "command_observation";
2000
2000
  key: string;
@@ -2027,7 +2027,7 @@ export interface components {
2027
2027
  };
2028
2028
  } | {
2029
2029
  /** @constant */
2030
- version: "31";
2030
+ version: "32";
2031
2031
  /** @constant */
2032
2032
  type: "command_observation";
2033
2033
  key: string;
@@ -2061,7 +2061,7 @@ export interface components {
2061
2061
  };
2062
2062
  } | {
2063
2063
  /** @constant */
2064
- version: "31";
2064
+ version: "32";
2065
2065
  /** @constant */
2066
2066
  type: "command_observation";
2067
2067
  key: string;
@@ -2093,7 +2093,7 @@ export interface components {
2093
2093
  };
2094
2094
  } | {
2095
2095
  /** @constant */
2096
- version: "31";
2096
+ version: "32";
2097
2097
  /** @constant */
2098
2098
  type: "command_observation";
2099
2099
  key: string;
@@ -2130,7 +2130,7 @@ export interface components {
2130
2130
  };
2131
2131
  } | {
2132
2132
  /** @constant */
2133
- version: "31";
2133
+ version: "32";
2134
2134
  /** @constant */
2135
2135
  type: "command_observation";
2136
2136
  key: string;
@@ -2168,7 +2168,7 @@ export interface components {
2168
2168
  };
2169
2169
  } | {
2170
2170
  /** @constant */
2171
- version: "31";
2171
+ version: "32";
2172
2172
  /** @constant */
2173
2173
  type: "command_observation";
2174
2174
  key: string;
@@ -2196,7 +2196,7 @@ export interface components {
2196
2196
  };
2197
2197
  } | {
2198
2198
  /** @constant */
2199
- version: "31";
2199
+ version: "32";
2200
2200
  /** @constant */
2201
2201
  type: "command_observation";
2202
2202
  key: string;
@@ -2234,7 +2234,7 @@ export interface components {
2234
2234
  };
2235
2235
  } | {
2236
2236
  /** @constant */
2237
- version: "31";
2237
+ version: "32";
2238
2238
  /** @constant */
2239
2239
  type: "command_observation";
2240
2240
  key: string;
@@ -2273,7 +2273,7 @@ export interface components {
2273
2273
  };
2274
2274
  } | {
2275
2275
  /** @constant */
2276
- version: "31";
2276
+ version: "32";
2277
2277
  /** @constant */
2278
2278
  type: "command_observation";
2279
2279
  key: string;
@@ -2306,7 +2306,7 @@ export interface components {
2306
2306
  };
2307
2307
  } | {
2308
2308
  /** @constant */
2309
- version: "31";
2309
+ version: "32";
2310
2310
  /** @constant */
2311
2311
  type: "command_observation";
2312
2312
  key: string;
@@ -2340,7 +2340,7 @@ export interface components {
2340
2340
  };
2341
2341
  } | {
2342
2342
  /** @constant */
2343
- version: "31";
2343
+ version: "32";
2344
2344
  /** @constant */
2345
2345
  type: "command_observation";
2346
2346
  key: string;
@@ -2373,7 +2373,7 @@ export interface components {
2373
2373
  };
2374
2374
  } | {
2375
2375
  /** @constant */
2376
- version: "31";
2376
+ version: "32";
2377
2377
  /** @constant */
2378
2378
  type: "command_observation";
2379
2379
  key: string;
@@ -2407,7 +2407,7 @@ export interface components {
2407
2407
  };
2408
2408
  } | {
2409
2409
  /** @constant */
2410
- version: "31";
2410
+ version: "32";
2411
2411
  /** @constant */
2412
2412
  type: "command_observation";
2413
2413
  key: string;
@@ -2426,7 +2426,7 @@ export interface components {
2426
2426
  };
2427
2427
  }) | {
2428
2428
  /** @constant */
2429
- version: "31";
2429
+ version: "32";
2430
2430
  /** @constant */
2431
2431
  type: "command_observation";
2432
2432
  key: string;
@@ -2478,7 +2478,7 @@ export interface components {
2478
2478
  };
2479
2479
  } | {
2480
2480
  /** @constant */
2481
- version: "31";
2481
+ version: "32";
2482
2482
  /** @constant */
2483
2483
  type: "command_observation";
2484
2484
  key: string;
@@ -2524,7 +2524,7 @@ export interface components {
2524
2524
  };
2525
2525
  } | {
2526
2526
  /** @constant */
2527
- version: "31";
2527
+ version: "32";
2528
2528
  /** @constant */
2529
2529
  type: "command_observation";
2530
2530
  key: string;
@@ -2570,7 +2570,7 @@ export interface components {
2570
2570
  };
2571
2571
  } | {
2572
2572
  /** @constant */
2573
- version: "31";
2573
+ version: "32";
2574
2574
  /** @constant */
2575
2575
  type: "command_observation";
2576
2576
  key: string;
@@ -2616,7 +2616,7 @@ export interface components {
2616
2616
  };
2617
2617
  } | {
2618
2618
  /** @constant */
2619
- version: "31";
2619
+ version: "32";
2620
2620
  /** @constant */
2621
2621
  type: "command_observation";
2622
2622
  key: string;
@@ -2654,7 +2654,7 @@ export interface components {
2654
2654
  };
2655
2655
  } | {
2656
2656
  /** @constant */
2657
- version: "31";
2657
+ version: "32";
2658
2658
  /** @constant */
2659
2659
  type: "command_observation";
2660
2660
  key: string;
@@ -2712,7 +2712,7 @@ export interface components {
2712
2712
  };
2713
2713
  } | {
2714
2714
  /** @constant */
2715
- version: "31";
2715
+ version: "32";
2716
2716
  /** @constant */
2717
2717
  type: "command_observation";
2718
2718
  key: string;
@@ -2762,7 +2762,7 @@ export interface components {
2762
2762
  };
2763
2763
  } | {
2764
2764
  /** @constant */
2765
- version: "31";
2765
+ version: "32";
2766
2766
  /** @constant */
2767
2767
  type: "command_observation";
2768
2768
  key: string;
@@ -2772,7 +2772,7 @@ export interface components {
2772
2772
  };
2773
2773
  ObserveCommandRequest: {
2774
2774
  /** @constant */
2775
- version: "31";
2775
+ version: "32";
2776
2776
  /** @constant */
2777
2777
  kind: "observe_command";
2778
2778
  store: string;
@@ -2803,7 +2803,7 @@ export interface components {
2803
2803
  };
2804
2804
  PermissionDecisionConflictReply: {
2805
2805
  /** @constant */
2806
- version: "31";
2806
+ version: "32";
2807
2807
  /** @constant */
2808
2808
  type: "permission_decision_reply";
2809
2809
  answer: {
@@ -2821,7 +2821,7 @@ export interface components {
2821
2821
  };
2822
2822
  PermissionDecisionReply: {
2823
2823
  /** @constant */
2824
- version: "31";
2824
+ version: "32";
2825
2825
  /** @constant */
2826
2826
  type: "permission_decision_reply";
2827
2827
  answer: {
@@ -2835,7 +2835,7 @@ export interface components {
2835
2835
  };
2836
2836
  } | {
2837
2837
  /** @constant */
2838
- version: "31";
2838
+ version: "32";
2839
2839
  /** @constant */
2840
2840
  type: "permission_decision_reply";
2841
2841
  answer: {
@@ -2852,7 +2852,7 @@ export interface components {
2852
2852
  };
2853
2853
  PermissionDecisionRequest: {
2854
2854
  /** @constant */
2855
- version: "31";
2855
+ version: "32";
2856
2856
  /** @constant */
2857
2857
  kind: "permission_decision";
2858
2858
  store: string;
@@ -2887,7 +2887,7 @@ export interface components {
2887
2887
  };
2888
2888
  PublicPartContentRequest: {
2889
2889
  /** @constant */
2890
- version: "31";
2890
+ version: "32";
2891
2891
  /** @constant */
2892
2892
  kind: "public_part_content";
2893
2893
  store: string;
@@ -2900,7 +2900,7 @@ export interface components {
2900
2900
  };
2901
2901
  PublicPartsReply: {
2902
2902
  /** @constant */
2903
- version: "31";
2903
+ version: "32";
2904
2904
  /** @constant */
2905
2905
  type: "public_parts";
2906
2906
  session: string;
@@ -2909,7 +2909,7 @@ export interface components {
2909
2909
  };
2910
2910
  PublicPartsRequest: {
2911
2911
  /** @constant */
2912
- version: "31";
2912
+ version: "32";
2913
2913
  /** @constant */
2914
2914
  kind: "public_parts";
2915
2915
  store: string;
@@ -2925,7 +2925,7 @@ export interface components {
2925
2925
  };
2926
2926
  ReadActionArgumentsRequest: {
2927
2927
  /** @constant */
2928
- version: "31";
2928
+ version: "32";
2929
2929
  /** @constant */
2930
2930
  kind: "read_action_arguments";
2931
2931
  store: string;
@@ -2934,7 +2934,7 @@ export interface components {
2934
2934
  };
2935
2935
  ReadActionCallIdRequest: {
2936
2936
  /** @constant */
2937
- version: "31";
2937
+ version: "32";
2938
2938
  /** @constant */
2939
2939
  kind: "read_action_call_id";
2940
2940
  store: string;
@@ -2943,7 +2943,7 @@ export interface components {
2943
2943
  };
2944
2944
  ReadActionReply: {
2945
2945
  /** @constant */
2946
- version: "31";
2946
+ version: "32";
2947
2947
  /** @constant */
2948
2948
  type: "action_read";
2949
2949
  session: string;
@@ -2962,7 +2962,7 @@ export interface components {
2962
2962
  };
2963
2963
  } | {
2964
2964
  /** @constant */
2965
- version: "31";
2965
+ version: "32";
2966
2966
  /** @constant */
2967
2967
  type: "action_read";
2968
2968
  session: string;
@@ -2991,7 +2991,7 @@ export interface components {
2991
2991
  };
2992
2992
  } | {
2993
2993
  /** @constant */
2994
- version: "31";
2994
+ version: "32";
2995
2995
  /** @constant */
2996
2996
  type: "action_read";
2997
2997
  session: string;
@@ -3016,7 +3016,7 @@ export interface components {
3016
3016
  };
3017
3017
  ReadActionRequest: {
3018
3018
  /** @constant */
3019
- version: "31";
3019
+ version: "32";
3020
3020
  /** @constant */
3021
3021
  kind: "read_action";
3022
3022
  store: string;
@@ -3027,7 +3027,7 @@ export interface components {
3027
3027
  };
3028
3028
  ReadResultRequest: {
3029
3029
  /** @constant */
3030
- version: "31";
3030
+ version: "32";
3031
3031
  /** @constant */
3032
3032
  kind: "read_result";
3033
3033
  store: string;
@@ -3035,7 +3035,7 @@ export interface components {
3035
3035
  };
3036
3036
  SessionArchiveConflictReply: {
3037
3037
  /** @constant */
3038
- version: "31";
3038
+ version: "32";
3039
3039
  /** @constant */
3040
3040
  type: "session_archive_reply";
3041
3041
  answer: {
@@ -3054,7 +3054,7 @@ export interface components {
3054
3054
  };
3055
3055
  SessionArchiveReply: {
3056
3056
  /** @constant */
3057
- version: "31";
3057
+ version: "32";
3058
3058
  /** @constant */
3059
3059
  type: "session_archive_reply";
3060
3060
  answer: {
@@ -3070,7 +3070,7 @@ export interface components {
3070
3070
  };
3071
3071
  } | {
3072
3072
  /** @constant */
3073
- version: "31";
3073
+ version: "32";
3074
3074
  /** @constant */
3075
3075
  type: "session_archive_reply";
3076
3076
  answer: {
@@ -3088,7 +3088,7 @@ export interface components {
3088
3088
  };
3089
3089
  SessionArchiveRequest: {
3090
3090
  /** @constant */
3091
- version: "31";
3091
+ version: "32";
3092
3092
  /** @constant */
3093
3093
  kind: "session_archive";
3094
3094
  store: string;
@@ -3098,7 +3098,7 @@ export interface components {
3098
3098
  };
3099
3099
  SessionPinConflictReply: {
3100
3100
  /** @constant */
3101
- version: "31";
3101
+ version: "32";
3102
3102
  /** @constant */
3103
3103
  type: "session_pin_reply";
3104
3104
  answer: {
@@ -3113,7 +3113,7 @@ export interface components {
3113
3113
  };
3114
3114
  SessionPinReply: {
3115
3115
  /** @constant */
3116
- version: "31";
3116
+ version: "32";
3117
3117
  /** @constant */
3118
3118
  type: "session_pin_reply";
3119
3119
  answer: {
@@ -3125,7 +3125,7 @@ export interface components {
3125
3125
  };
3126
3126
  } | {
3127
3127
  /** @constant */
3128
- version: "31";
3128
+ version: "32";
3129
3129
  /** @constant */
3130
3130
  type: "session_pin_reply";
3131
3131
  answer: {
@@ -3139,7 +3139,7 @@ export interface components {
3139
3139
  };
3140
3140
  SessionPinRequest: {
3141
3141
  /** @constant */
3142
- version: "31";
3142
+ version: "32";
3143
3143
  /** @constant */
3144
3144
  kind: "session_pin";
3145
3145
  store: string;
@@ -3177,7 +3177,7 @@ export interface components {
3177
3177
  };
3178
3178
  SessionStopConflictReply: {
3179
3179
  /** @constant */
3180
- version: "31";
3180
+ version: "32";
3181
3181
  /** @constant */
3182
3182
  type: "session_stop_reply";
3183
3183
  answer: {
@@ -3196,7 +3196,7 @@ export interface components {
3196
3196
  };
3197
3197
  SessionStopReply: {
3198
3198
  /** @constant */
3199
- version: "31";
3199
+ version: "32";
3200
3200
  /** @constant */
3201
3201
  type: "session_stop_reply";
3202
3202
  answer: {
@@ -3215,7 +3215,7 @@ export interface components {
3215
3215
  };
3216
3216
  } | {
3217
3217
  /** @constant */
3218
- version: "31";
3218
+ version: "32";
3219
3219
  /** @constant */
3220
3220
  type: "session_stop_reply";
3221
3221
  answer: {
@@ -3233,7 +3233,7 @@ export interface components {
3233
3233
  };
3234
3234
  SessionStopRequest: {
3235
3235
  /** @constant */
3236
- version: "31";
3236
+ version: "32";
3237
3237
  /** @constant */
3238
3238
  kind: "session_stop";
3239
3239
  store: string;
@@ -3249,7 +3249,7 @@ export interface components {
3249
3249
  };
3250
3250
  SkillSuggestionsReply: {
3251
3251
  /** @constant */
3252
- version: "31";
3252
+ version: "32";
3253
3253
  /** @constant */
3254
3254
  type: "skill_suggestions";
3255
3255
  revision: components["schemas"]["Decimal"];
@@ -3261,7 +3261,7 @@ export interface components {
3261
3261
  };
3262
3262
  SkillSuggestionsRequest: {
3263
3263
  /** @constant */
3264
- version: "31";
3264
+ version: "32";
3265
3265
  /** @constant */
3266
3266
  kind: "skill_suggestions";
3267
3267
  store: string;
@@ -3269,7 +3269,7 @@ export interface components {
3269
3269
  prefix: string;
3270
3270
  } | {
3271
3271
  /** @constant */
3272
- version: "31";
3272
+ version: "32";
3273
3273
  /** @constant */
3274
3274
  kind: "skill_suggestions";
3275
3275
  store: string;
@@ -3298,7 +3298,7 @@ export interface components {
3298
3298
  };
3299
3299
  ToolsReloadReply: {
3300
3300
  /** @constant */
3301
- version: "31";
3301
+ version: "32";
3302
3302
  /** @constant */
3303
3303
  type: "tools_reload_reply";
3304
3304
  instance: string;
@@ -3309,13 +3309,13 @@ export interface components {
3309
3309
  };
3310
3310
  ToolsReloadRequest: {
3311
3311
  /** @constant */
3312
- version: "31";
3312
+ version: "32";
3313
3313
  /** @constant */
3314
3314
  kind: "tools_reload";
3315
3315
  store: string;
3316
3316
  } | {
3317
3317
  /** @constant */
3318
- version: "31";
3318
+ version: "32";
3319
3319
  /** @constant */
3320
3320
  kind: "tools_reload";
3321
3321
  store: string;
@@ -3323,7 +3323,7 @@ export interface components {
3323
3323
  };
3324
3324
  ToolsStatusReply: {
3325
3325
  /** @constant */
3326
- version: "31";
3326
+ version: "32";
3327
3327
  /** @constant */
3328
3328
  type: "tools_status";
3329
3329
  instance: string;
@@ -3342,7 +3342,7 @@ export interface components {
3342
3342
  };
3343
3343
  ToolsStatusRequest: {
3344
3344
  /** @constant */
3345
- version: "31";
3345
+ version: "32";
3346
3346
  /** @constant */
3347
3347
  kind: "tools_status";
3348
3348
  store: string;
@@ -3702,7 +3702,7 @@ export interface components {
3702
3702
  responses: never;
3703
3703
  parameters: {
3704
3704
  /** @description The wire version this document describes. Any other version is refused. */
3705
- WireVersion: "31";
3705
+ WireVersion: "32";
3706
3706
  /** @description The Host instance (from host-info) the request is meant for; a different instance refuses it. */
3707
3707
  HostInstance: string;
3708
3708
  /** @description The Host instance (from host-info) the request is meant for; a different instance refuses it, and a request without it is refused. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ruicode",
3
- "version": "0.98.0",
3
+ "version": "0.98.2",
4
4
  "description": "Start a Rui Host as a child process and talk to it over its local socket.",
5
5
  "type": "module",
6
6
  "engines": {
@@ -32,8 +32,8 @@
32
32
  "mcp"
33
33
  ],
34
34
  "optionalDependencies": {
35
- "ruicode-linux-x64": "0.98.0",
36
- "ruicode-linux-arm64": "0.98.0",
37
- "ruicode-darwin-arm64": "0.98.0"
35
+ "ruicode-linux-x64": "0.98.2",
36
+ "ruicode-linux-arm64": "0.98.2",
37
+ "ruicode-darwin-arm64": "0.98.2"
38
38
  }
39
39
  }