ruicode 0.74.4 → 0.75.1

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/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export { Rui, type HostSettings, type ClientOptions, type ExitEvent } from "./client.ts";
2
2
  export { RuiRequestError, RuiStartError, RuiUnavailableError } from "./errors.ts";
3
- export { Session, Sessions, type AgentSpec, type ListSessionsOptions, type SessionArchiveState, type SessionArchiveResult, type SessionCreate, type ModelSummary, type SendOptions, type SessionSpec, type SessionSummary, type SessionStatus, type SessionUpdate, type WriteOptions, } from "./sessions.ts";
3
+ export { Session, Sessions, type AgentSpec, type ActionStatus, type ListSessionsOptions, type SessionArchiveState, type SessionArchiveResult, type SessionPinResult, type SessionCreate, type ModelSummary, type SendOptions, type SessionSpec, type SessionSummary, type SessionStatus, type SessionUpdate, type WriteOptions, } from "./sessions.ts";
4
4
  export { FEED_KINDS, INLINE_TEXT_BYTES, type FeedEntry, type FeedKind, type ListActivityOptions, type SearchActivityOptions, type ActivitySearchEntry } from "./feed.ts";
@@ -8,6 +8,7 @@ export interface Link {
8
8
  exchange(path: string, build: (store: string) => string, environment?: Buffer, limits?: ReplyLimits): Promise<Buffer>;
9
9
  }
10
10
  type Schemas = components["schemas"];
11
+ export type ActionStatus = Schemas["ReadActionReply"];
11
12
  /** The Session settings the Host takes today. */
12
13
  export interface AgentSpec {
13
14
  /** The working directory for Bash. Required with `bash`, fixed for the Session's life. */
@@ -65,6 +66,9 @@ export interface SessionArchiveResult {
65
66
  /** Accepted intent can remain pending until stopped work has really settled. */
66
67
  completion: "pending" | "completed";
67
68
  }
69
+ export type SessionPinResult = Pick<Extract<Schemas["SessionPinReply"]["answer"], {
70
+ status: "accepted";
71
+ }>, "pinned">;
68
72
  export interface SessionSummary {
69
73
  id: string;
70
74
  label: string | null;
@@ -134,6 +138,12 @@ export declare class Session {
134
138
  archive(options?: WriteOptions): Promise<SessionArchiveResult>;
135
139
  /** Restores organization only. Previously stopped work is never resumed. */
136
140
  unarchive(options?: WriteOptions): Promise<SessionArchiveResult>;
141
+ /** Pins this Session without starting or interrupting work. Repeated pins preserve its position. */
142
+ pin(options?: WriteOptions): Promise<SessionPinResult>;
143
+ /** Removes this Session's pin without changing its work. */
144
+ unpin(options?: WriteOptions): Promise<SessionPinResult>;
145
+ /** Reads an owned Action. Acceptance and attempted state do not assert a running process. */
146
+ readAction(action: string, offset?: string): Promise<ActionStatus>;
137
147
  /**
138
148
  * Cuts off the model call that is current now while the Session keeps going.
139
149
  * It takes no key: each call names the work it sees at that moment, so a
package/dist/sessions.js CHANGED
@@ -166,6 +166,34 @@ export class Session {
166
166
  this.#link.activity?.notify(this.id);
167
167
  return { archived: answer.archived, completion };
168
168
  }
169
+ /** Pins this Session without starting or interrupting work. Repeated pins preserve its position. */
170
+ pin(options) {
171
+ return this.#setPinned(true, options);
172
+ }
173
+ /** Removes this Session's pin without changing its work. */
174
+ unpin(options) {
175
+ return this.#setPinned(false, options);
176
+ }
177
+ async #setPinned(pinned, options) {
178
+ const idempotencyKey = key(options);
179
+ const reply = parse(await this.#link.exchange("/v1/control/session-pin", (store) => JSON.stringify({
180
+ version: WIRE_VERSION,
181
+ kind: "session_pin",
182
+ store,
183
+ key: idempotencyKey,
184
+ session: this.id,
185
+ pinned,
186
+ })));
187
+ const answer = accepted(reply.answer);
188
+ this.#link.activity?.notify(this.id);
189
+ return { pinned: answer.pinned };
190
+ }
191
+ /** Reads an owned Action. Acceptance and attempted state do not assert a running process. */
192
+ async readAction(action, offset = "0") {
193
+ return parse(await this.#link.exchange("/v1/read-action", (store) => JSON.stringify({
194
+ version: WIRE_VERSION, kind: "read_action", store, session: this.id, action, offset,
195
+ })));
196
+ }
169
197
  /**
170
198
  * Cuts off the model call that is current now while the Session keeps going.
171
199
  * It takes no key: each call names the work it sees at that moment, so a
@@ -1,5 +1,5 @@
1
1
  /** The wire version openapi.json describes. A test keeps the two equal. */
2
- export declare const WIRE_VERSION = "17";
2
+ export declare const WIRE_VERSION = "19";
3
3
  export interface Post {
4
4
  socketPath: string;
5
5
  path: string;
package/dist/transport.js CHANGED
@@ -4,7 +4,7 @@
4
4
  import { request } from "node:http";
5
5
  import { RuiRequestError } from "./errors.js";
6
6
  /** The wire version openapi.json describes. A test keeps the two equal. */
7
- export const WIRE_VERSION = "17";
7
+ export const WIRE_VERSION = "19";
8
8
  /** The largest reply body read. The Host's own replies stay far below it. */
9
9
  const MAX_REPLY_BYTES = 64 * 1024 * 1024;
10
10
  /** After the request is sent, the longest the Host may stay silent before its first reply byte. */
package/dist/wire.d.ts CHANGED
@@ -122,6 +122,23 @@ export interface paths {
122
122
  patch?: never;
123
123
  trace?: never;
124
124
  };
125
+ "/v1/control/session-pin": {
126
+ parameters: {
127
+ query?: never;
128
+ header?: never;
129
+ path?: never;
130
+ cookie?: never;
131
+ };
132
+ get?: never;
133
+ put?: never;
134
+ /** Pins or unpins a Session without changing its work. Retried by its key. */
135
+ post: operations["sessionPin"];
136
+ delete?: never;
137
+ options?: never;
138
+ head?: never;
139
+ patch?: never;
140
+ trace?: never;
141
+ };
125
142
  "/v1/control/model-interruption": {
126
143
  parameters: {
127
144
  query?: never;
@@ -156,6 +173,23 @@ export interface paths {
156
173
  patch?: never;
157
174
  trace?: never;
158
175
  };
176
+ "/v1/read-action": {
177
+ parameters: {
178
+ query?: never;
179
+ header?: never;
180
+ path?: never;
181
+ cookie?: never;
182
+ };
183
+ get?: never;
184
+ put?: never;
185
+ /** Reads one Session-owned Action's status and one bounded final-result window without waiting or consuming it. */
186
+ post: operations["readAction"];
187
+ delete?: never;
188
+ options?: never;
189
+ head?: never;
190
+ patch?: never;
191
+ trace?: never;
192
+ };
159
193
  "/v1/observe-command": {
160
194
  parameters: {
161
195
  query?: never;
@@ -383,7 +417,7 @@ export interface components {
383
417
  schemas: {
384
418
  ActivityContentRequest: {
385
419
  /** @constant */
386
- version: "17";
420
+ version: "19";
387
421
  /** @constant */
388
422
  kind: "activity_content";
389
423
  store: string;
@@ -602,7 +636,7 @@ export interface components {
602
636
  };
603
637
  ActivityPageReply: {
604
638
  /** @constant */
605
- version: "17";
639
+ version: "19";
606
640
  /** @constant */
607
641
  type: "activity_page";
608
642
  end: components["schemas"]["Decimal"];
@@ -618,7 +652,7 @@ export interface components {
618
652
  since: string | null;
619
653
  } | {
620
654
  /** @constant */
621
- version: "17";
655
+ version: "19";
622
656
  /** @constant */
623
657
  type: "activity_page";
624
658
  /** @constant */
@@ -627,7 +661,7 @@ export interface components {
627
661
  };
628
662
  ActivityPageRequest: {
629
663
  /** @constant */
630
- version: "17";
664
+ version: "19";
631
665
  /** @constant */
632
666
  kind: "activity_page";
633
667
  store: string;
@@ -660,7 +694,7 @@ export interface components {
660
694
  };
661
695
  ActivitySearchReply: {
662
696
  /** @constant */
663
- version: "17";
697
+ version: "19";
664
698
  /** @constant */
665
699
  type: "activity_search";
666
700
  items: components["schemas"]["ActivitySearchItem"][];
@@ -668,7 +702,7 @@ export interface components {
668
702
  };
669
703
  ActivitySearchRequest: {
670
704
  /** @constant */
671
- version: "17";
705
+ version: "19";
672
706
  /** @constant */
673
707
  kind: "activity_search";
674
708
  store: string;
@@ -728,7 +762,7 @@ export interface components {
728
762
  };
729
763
  ConfigureConflictReply: {
730
764
  /** @constant */
731
- version: "17";
765
+ version: "19";
732
766
  /** @constant */
733
767
  type: "configuration_reply";
734
768
  answer: {
@@ -749,7 +783,7 @@ export interface components {
749
783
  };
750
784
  ConfigureReply: {
751
785
  /** @constant */
752
- version: "17";
786
+ version: "19";
753
787
  /** @constant */
754
788
  type: "configuration_reply";
755
789
  answer: {
@@ -768,7 +802,7 @@ export interface components {
768
802
  };
769
803
  } | {
770
804
  /** @constant */
771
- version: "17";
805
+ version: "19";
772
806
  /** @constant */
773
807
  type: "configuration_reply";
774
808
  answer: {
@@ -790,7 +824,7 @@ export interface components {
790
824
  };
791
825
  } | {
792
826
  /** @constant */
793
- version: "17";
827
+ version: "19";
794
828
  /** @constant */
795
829
  type: "configuration_reply";
796
830
  answer: {
@@ -811,7 +845,7 @@ export interface components {
811
845
  };
812
846
  ConfigureRequest: {
813
847
  /** @constant */
814
- version: "17";
848
+ version: "19";
815
849
  /** @constant */
816
850
  kind: "configure";
817
851
  store: string;
@@ -826,7 +860,7 @@ export interface components {
826
860
  };
827
861
  ConversationContentRequest: {
828
862
  /** @constant */
829
- version: "17";
863
+ version: "19";
830
864
  /** @constant */
831
865
  kind: "conversation_content";
832
866
  store: string;
@@ -840,7 +874,7 @@ export interface components {
840
874
  };
841
875
  ConversationPageReply: {
842
876
  /** @constant */
843
- version: "17";
877
+ version: "19";
844
878
  /** @constant */
845
879
  type: "conversation_page";
846
880
  /** @constant */
@@ -920,7 +954,7 @@ export interface components {
920
954
  more: false;
921
955
  } | {
922
956
  /** @constant */
923
- version: "17";
957
+ version: "19";
924
958
  /** @constant */
925
959
  type: "conversation_page";
926
960
  /** @constant */
@@ -1003,7 +1037,7 @@ export interface components {
1003
1037
  };
1004
1038
  ConversationPageRequest: {
1005
1039
  /** @constant */
1006
- version: "17";
1040
+ version: "19";
1007
1041
  /** @constant */
1008
1042
  kind: "conversation_page";
1009
1043
  store: string;
@@ -1016,7 +1050,7 @@ export interface components {
1016
1050
  Decimal: string;
1017
1051
  ErrorReply: {
1018
1052
  /** @constant */
1019
- version: "17";
1053
+ version: "19";
1020
1054
  /** @enum {string} */
1021
1055
  type: "invocation_error" | "observation_error" | "busy" | "unsupported" | "host_unavailable" | "result_unavailable" | "action_unavailable" | "conversation_unavailable" | "activity_unavailable" | "failed_response_unavailable";
1022
1056
  code: string;
@@ -1030,7 +1064,7 @@ export interface components {
1030
1064
  };
1031
1065
  HostInfoReply: {
1032
1066
  /** @constant */
1033
- version: "17";
1067
+ version: "19";
1034
1068
  /** @constant */
1035
1069
  type: "host_info";
1036
1070
  store: string;
@@ -1057,21 +1091,21 @@ export interface components {
1057
1091
  };
1058
1092
  HostInfoRequest: {
1059
1093
  /** @constant */
1060
- version: "17";
1094
+ version: "19";
1061
1095
  /** @constant */
1062
1096
  kind: "host_info";
1063
1097
  store: string;
1064
1098
  };
1065
1099
  HostPauseReply: {
1066
1100
  /** @constant */
1067
- version: "17";
1101
+ version: "19";
1068
1102
  /** @constant */
1069
1103
  type: "host_pause_reply";
1070
1104
  paused: boolean;
1071
1105
  };
1072
1106
  HostPauseRequest: {
1073
1107
  /** @constant */
1074
- version: "17";
1108
+ version: "19";
1075
1109
  /** @constant */
1076
1110
  kind: "host_pause";
1077
1111
  store: string;
@@ -1208,7 +1242,7 @@ export interface components {
1208
1242
  };
1209
1243
  HostStopReply: {
1210
1244
  /** @constant */
1211
- version: "17";
1245
+ version: "19";
1212
1246
  /** @constant */
1213
1247
  type: "host_stop_reply";
1214
1248
  /** @constant */
@@ -1216,14 +1250,14 @@ export interface components {
1216
1250
  };
1217
1251
  HostStopRequest: {
1218
1252
  /** @constant */
1219
- version: "17";
1253
+ version: "19";
1220
1254
  /** @constant */
1221
1255
  kind: "host_stop";
1222
1256
  store: string;
1223
1257
  };
1224
1258
  InspectSessionReply: {
1225
1259
  /** @constant */
1226
- version: "17";
1260
+ version: "19";
1227
1261
  /** @constant */
1228
1262
  type: "session_report";
1229
1263
  /** @constant */
@@ -1246,7 +1280,7 @@ export interface components {
1246
1280
  execution: components["schemas"]["domainreportExecutionJson"];
1247
1281
  } | {
1248
1282
  /** @constant */
1249
- version: "17";
1283
+ version: "19";
1250
1284
  /** @constant */
1251
1285
  type: "session_report";
1252
1286
  /** @constant */
@@ -1267,7 +1301,7 @@ export interface components {
1267
1301
  execution: components["schemas"]["domainreportExecutionJson"];
1268
1302
  } | {
1269
1303
  /** @constant */
1270
- version: "17";
1304
+ version: "19";
1271
1305
  /** @constant */
1272
1306
  type: "session_report";
1273
1307
  /** @constant */
@@ -1286,7 +1320,7 @@ export interface components {
1286
1320
  };
1287
1321
  } | {
1288
1322
  /** @constant */
1289
- version: "17";
1323
+ version: "19";
1290
1324
  /** @constant */
1291
1325
  type: "session_report";
1292
1326
  /** @constant */
@@ -1303,7 +1337,7 @@ export interface components {
1303
1337
  };
1304
1338
  InspectSessionRequest: {
1305
1339
  /** @constant */
1306
- version: "17";
1340
+ version: "19";
1307
1341
  /** @constant */
1308
1342
  kind: "inspect_session";
1309
1343
  store: string;
@@ -1311,7 +1345,7 @@ export interface components {
1311
1345
  since?: string | null;
1312
1346
  } | {
1313
1347
  /** @constant */
1314
- version: "17";
1348
+ version: "19";
1315
1349
  /** @constant */
1316
1350
  kind: "inspect_session";
1317
1351
  store: string;
@@ -1320,7 +1354,7 @@ export interface components {
1320
1354
  profile: "full";
1321
1355
  } | {
1322
1356
  /** @constant */
1323
- version: "17";
1357
+ version: "19";
1324
1358
  /** @constant */
1325
1359
  kind: "inspect_session";
1326
1360
  store: string;
@@ -1336,7 +1370,7 @@ export interface components {
1336
1370
  };
1337
1371
  ListSessionsReply: {
1338
1372
  /** @constant */
1339
- version: "17";
1373
+ version: "19";
1340
1374
  /** @constant */
1341
1375
  type: "session_list";
1342
1376
  sessions: components["schemas"]["SessionRow"][];
@@ -1349,7 +1383,7 @@ export interface components {
1349
1383
  };
1350
1384
  } | {
1351
1385
  /** @constant */
1352
- version: "17";
1386
+ version: "19";
1353
1387
  /** @constant */
1354
1388
  type: "session_list";
1355
1389
  sessions: components["schemas"]["SessionRow"][];
@@ -1362,7 +1396,7 @@ export interface components {
1362
1396
  };
1363
1397
  } | {
1364
1398
  /** @constant */
1365
- version: "17";
1399
+ version: "19";
1366
1400
  /** @constant */
1367
1401
  type: "session_list";
1368
1402
  sessions: components["schemas"]["SessionRow"][];
@@ -1373,7 +1407,7 @@ export interface components {
1373
1407
  };
1374
1408
  ListSessionsRequest: {
1375
1409
  /** @constant */
1376
- version: "17";
1410
+ version: "19";
1377
1411
  /** @constant */
1378
1412
  kind: "list_sessions";
1379
1413
  store: string;
@@ -1388,7 +1422,7 @@ export interface components {
1388
1422
  };
1389
1423
  MessageConflictReply: {
1390
1424
  /** @constant */
1391
- version: "17";
1425
+ version: "19";
1392
1426
  /** @constant */
1393
1427
  type: "message_reply";
1394
1428
  answer: {
@@ -1417,7 +1451,7 @@ export interface components {
1417
1451
  };
1418
1452
  MessageReply: {
1419
1453
  /** @constant */
1420
- version: "17";
1454
+ version: "19";
1421
1455
  /** @constant */
1422
1456
  type: "message_reply";
1423
1457
  answer: {
@@ -1444,7 +1478,7 @@ export interface components {
1444
1478
  };
1445
1479
  } | {
1446
1480
  /** @constant */
1447
- version: "17";
1481
+ version: "19";
1448
1482
  /** @constant */
1449
1483
  type: "message_reply";
1450
1484
  answer: {
@@ -1469,7 +1503,7 @@ export interface components {
1469
1503
  };
1470
1504
  MessageRequest: {
1471
1505
  /** @constant */
1472
- version: "17";
1506
+ version: "19";
1473
1507
  /** @constant */
1474
1508
  kind: "message";
1475
1509
  store: string;
@@ -1492,7 +1526,7 @@ export interface components {
1492
1526
  };
1493
1527
  ModelInterruptionConflictReply: {
1494
1528
  /** @constant */
1495
- version: "17";
1529
+ version: "19";
1496
1530
  /** @constant */
1497
1531
  type: "model_interruption_reply";
1498
1532
  answer: {
@@ -1511,7 +1545,7 @@ export interface components {
1511
1545
  };
1512
1546
  ModelInterruptionReply: {
1513
1547
  /** @constant */
1514
- version: "17";
1548
+ version: "19";
1515
1549
  /** @constant */
1516
1550
  type: "model_interruption_reply";
1517
1551
  answer: {
@@ -1526,7 +1560,7 @@ export interface components {
1526
1560
  };
1527
1561
  } | {
1528
1562
  /** @constant */
1529
- version: "17";
1563
+ version: "19";
1530
1564
  /** @constant */
1531
1565
  type: "model_interruption_reply";
1532
1566
  answer: {
@@ -1544,7 +1578,7 @@ export interface components {
1544
1578
  };
1545
1579
  ModelInterruptionRequest: {
1546
1580
  /** @constant */
1547
- version: "17";
1581
+ version: "19";
1548
1582
  /** @constant */
1549
1583
  kind: "model_interruption";
1550
1584
  store: string;
@@ -1567,14 +1601,14 @@ export interface components {
1567
1601
  };
1568
1602
  ModelListReply: {
1569
1603
  /** @constant */
1570
- version: "17";
1604
+ version: "19";
1571
1605
  /** @constant */
1572
1606
  type: "model_list";
1573
1607
  providers: components["schemas"]["ModelListEntry"][];
1574
1608
  };
1575
1609
  ModelListRequest: {
1576
1610
  /** @constant */
1577
- version: "17";
1611
+ version: "19";
1578
1612
  /** @constant */
1579
1613
  kind: "model_list";
1580
1614
  store: string;
@@ -1585,7 +1619,7 @@ export interface components {
1585
1619
  };
1586
1620
  ObserveCommandReply: {
1587
1621
  /** @constant */
1588
- version: "17";
1622
+ version: "19";
1589
1623
  /** @constant */
1590
1624
  type: "command_observation";
1591
1625
  key: string;
@@ -1598,7 +1632,7 @@ export interface components {
1598
1632
  };
1599
1633
  } | {
1600
1634
  /** @constant */
1601
- version: "17";
1635
+ version: "19";
1602
1636
  /** @constant */
1603
1637
  type: "command_observation";
1604
1638
  key: string;
@@ -1638,7 +1672,7 @@ export interface components {
1638
1672
  };
1639
1673
  } | {
1640
1674
  /** @constant */
1641
- version: "17";
1675
+ version: "19";
1642
1676
  /** @constant */
1643
1677
  type: "command_observation";
1644
1678
  key: string;
@@ -2447,7 +2481,7 @@ export interface components {
2447
2481
  };
2448
2482
  } | {
2449
2483
  /** @constant */
2450
- version: "17";
2484
+ version: "19";
2451
2485
  /** @constant */
2452
2486
  type: "command_observation";
2453
2487
  key: string;
@@ -2499,7 +2533,7 @@ export interface components {
2499
2533
  };
2500
2534
  } | {
2501
2535
  /** @constant */
2502
- version: "17";
2536
+ version: "19";
2503
2537
  /** @constant */
2504
2538
  type: "command_observation";
2505
2539
  key: string;
@@ -2545,7 +2579,7 @@ export interface components {
2545
2579
  };
2546
2580
  } | {
2547
2581
  /** @constant */
2548
- version: "17";
2582
+ version: "19";
2549
2583
  /** @constant */
2550
2584
  type: "command_observation";
2551
2585
  key: string;
@@ -2591,7 +2625,7 @@ export interface components {
2591
2625
  };
2592
2626
  } | {
2593
2627
  /** @constant */
2594
- version: "17";
2628
+ version: "19";
2595
2629
  /** @constant */
2596
2630
  type: "command_observation";
2597
2631
  key: string;
@@ -2637,7 +2671,45 @@ export interface components {
2637
2671
  };
2638
2672
  } | {
2639
2673
  /** @constant */
2640
- version: "17";
2674
+ version: "19";
2675
+ /** @constant */
2676
+ type: "command_observation";
2677
+ key: string;
2678
+ /** @constant */
2679
+ delta: "full";
2680
+ since: string | null;
2681
+ observation: {
2682
+ /** @enum {string} */
2683
+ status: "absent" | "accepted" | "rejected";
2684
+ /** @constant */
2685
+ kind: "session_pin";
2686
+ target: string;
2687
+ } | {
2688
+ /** @enum {string} */
2689
+ status: "absent" | "accepted" | "rejected";
2690
+ /** @constant */
2691
+ kind: "session_pin";
2692
+ target: string;
2693
+ code: string;
2694
+ } | {
2695
+ /** @enum {string} */
2696
+ status: "absent" | "accepted" | "rejected";
2697
+ /** @constant */
2698
+ kind: "session_pin";
2699
+ target: string;
2700
+ pinned: boolean;
2701
+ } | {
2702
+ /** @enum {string} */
2703
+ status: "absent" | "accepted" | "rejected";
2704
+ /** @constant */
2705
+ kind: "session_pin";
2706
+ target: string;
2707
+ code: string;
2708
+ pinned: boolean;
2709
+ };
2710
+ } | {
2711
+ /** @constant */
2712
+ version: "19";
2641
2713
  /** @constant */
2642
2714
  type: "command_observation";
2643
2715
  key: string;
@@ -2647,7 +2719,7 @@ export interface components {
2647
2719
  };
2648
2720
  ObserveCommandRequest: {
2649
2721
  /** @constant */
2650
- version: "17";
2722
+ version: "19";
2651
2723
  /** @constant */
2652
2724
  kind: "observe_command";
2653
2725
  store: string;
@@ -2672,7 +2744,7 @@ export interface components {
2672
2744
  };
2673
2745
  PermissionDecisionConflictReply: {
2674
2746
  /** @constant */
2675
- version: "17";
2747
+ version: "19";
2676
2748
  /** @constant */
2677
2749
  type: "permission_decision_reply";
2678
2750
  answer: {
@@ -2690,7 +2762,7 @@ export interface components {
2690
2762
  };
2691
2763
  PermissionDecisionReply: {
2692
2764
  /** @constant */
2693
- version: "17";
2765
+ version: "19";
2694
2766
  /** @constant */
2695
2767
  type: "permission_decision_reply";
2696
2768
  answer: {
@@ -2704,7 +2776,7 @@ export interface components {
2704
2776
  };
2705
2777
  } | {
2706
2778
  /** @constant */
2707
- version: "17";
2779
+ version: "19";
2708
2780
  /** @constant */
2709
2781
  type: "permission_decision_reply";
2710
2782
  answer: {
@@ -2721,7 +2793,7 @@ export interface components {
2721
2793
  };
2722
2794
  PermissionDecisionRequest: {
2723
2795
  /** @constant */
2724
- version: "17";
2796
+ version: "19";
2725
2797
  /** @constant */
2726
2798
  kind: "permission_decision";
2727
2799
  store: string;
@@ -2739,7 +2811,7 @@ export interface components {
2739
2811
  };
2740
2812
  ReadActionArgumentsRequest: {
2741
2813
  /** @constant */
2742
- version: "17";
2814
+ version: "19";
2743
2815
  /** @constant */
2744
2816
  kind: "read_action_arguments";
2745
2817
  store: string;
@@ -2748,16 +2820,60 @@ export interface components {
2748
2820
  };
2749
2821
  ReadActionCallIdRequest: {
2750
2822
  /** @constant */
2751
- version: "17";
2823
+ version: "19";
2752
2824
  /** @constant */
2753
2825
  kind: "read_action_call_id";
2754
2826
  store: string;
2755
2827
  session: string;
2756
2828
  action: components["schemas"]["Decimal"];
2757
2829
  };
2830
+ ReadActionReply: {
2831
+ /** @constant */
2832
+ version: "19";
2833
+ /** @constant */
2834
+ type: "action_read";
2835
+ session: string;
2836
+ action: components["schemas"]["Decimal"];
2837
+ /** @enum {string} */
2838
+ state: "waiting_approval" | "queued" | "attempted";
2839
+ final: null;
2840
+ } | {
2841
+ /** @constant */
2842
+ version: "19";
2843
+ /** @constant */
2844
+ type: "action_read";
2845
+ session: string;
2846
+ action: components["schemas"]["Decimal"];
2847
+ /** @constant */
2848
+ state: "resolved";
2849
+ final: {
2850
+ position: components["schemas"]["Decimal"];
2851
+ code: string;
2852
+ content: {
2853
+ bytes: components["schemas"]["Decimal"];
2854
+ sha256: string;
2855
+ };
2856
+ window: {
2857
+ offset: components["schemas"]["Decimal"];
2858
+ next: components["schemas"]["Decimal"];
2859
+ more: boolean;
2860
+ text: string;
2861
+ };
2862
+ };
2863
+ };
2864
+ ReadActionRequest: {
2865
+ /** @constant */
2866
+ version: "19";
2867
+ /** @constant */
2868
+ kind: "read_action";
2869
+ store: string;
2870
+ session: string;
2871
+ action: components["schemas"]["Decimal"];
2872
+ offset?: components["schemas"]["Decimal"];
2873
+ };
2758
2874
  ReadResultRequest: {
2759
2875
  /** @constant */
2760
- version: "17";
2876
+ version: "19";
2761
2877
  /** @constant */
2762
2878
  kind: "read_result";
2763
2879
  store: string;
@@ -2765,7 +2881,7 @@ export interface components {
2765
2881
  };
2766
2882
  SessionArchiveConflictReply: {
2767
2883
  /** @constant */
2768
- version: "17";
2884
+ version: "19";
2769
2885
  /** @constant */
2770
2886
  type: "session_archive_reply";
2771
2887
  answer: {
@@ -2784,7 +2900,7 @@ export interface components {
2784
2900
  };
2785
2901
  SessionArchiveReply: {
2786
2902
  /** @constant */
2787
- version: "17";
2903
+ version: "19";
2788
2904
  /** @constant */
2789
2905
  type: "session_archive_reply";
2790
2906
  answer: {
@@ -2800,7 +2916,7 @@ export interface components {
2800
2916
  };
2801
2917
  } | {
2802
2918
  /** @constant */
2803
- version: "17";
2919
+ version: "19";
2804
2920
  /** @constant */
2805
2921
  type: "session_archive_reply";
2806
2922
  answer: {
@@ -2818,7 +2934,7 @@ export interface components {
2818
2934
  };
2819
2935
  SessionArchiveRequest: {
2820
2936
  /** @constant */
2821
- version: "17";
2937
+ version: "19";
2822
2938
  /** @constant */
2823
2939
  kind: "session_archive";
2824
2940
  store: string;
@@ -2826,10 +2942,62 @@ export interface components {
2826
2942
  session: string;
2827
2943
  archived?: boolean;
2828
2944
  };
2945
+ SessionPinConflictReply: {
2946
+ /** @constant */
2947
+ version: "19";
2948
+ /** @constant */
2949
+ type: "session_pin_reply";
2950
+ answer: {
2951
+ /** @constant */
2952
+ status: "conflict";
2953
+ /** @constant */
2954
+ replayed: false;
2955
+ session: string;
2956
+ /** @constant */
2957
+ code: "idempotency_key_conflict";
2958
+ };
2959
+ };
2960
+ SessionPinReply: {
2961
+ /** @constant */
2962
+ version: "19";
2963
+ /** @constant */
2964
+ type: "session_pin_reply";
2965
+ answer: {
2966
+ /** @constant */
2967
+ status: "accepted";
2968
+ replayed: boolean;
2969
+ session: string;
2970
+ pinned: boolean;
2971
+ };
2972
+ } | {
2973
+ /** @constant */
2974
+ version: "19";
2975
+ /** @constant */
2976
+ type: "session_pin_reply";
2977
+ answer: {
2978
+ /** @constant */
2979
+ status: "rejected";
2980
+ replayed: boolean;
2981
+ session: string;
2982
+ /** @enum {string} */
2983
+ code: "invalid_session_reference" | "unknown_session" | "session_archiving" | "session_archived";
2984
+ };
2985
+ };
2986
+ SessionPinRequest: {
2987
+ /** @constant */
2988
+ version: "19";
2989
+ /** @constant */
2990
+ kind: "session_pin";
2991
+ store: string;
2992
+ key: string;
2993
+ session: string;
2994
+ pinned: boolean;
2995
+ };
2829
2996
  SessionRow: {
2830
2997
  read_version: string;
2831
2998
  /** @enum {string} */
2832
2999
  archive_state: "active" | "archiving" | "archived";
3000
+ pin_order: components["schemas"]["Decimal"] | null;
2833
3001
  reference: string;
2834
3002
  workspace: string;
2835
3003
  /** @enum {string} */
@@ -2851,7 +3019,7 @@ export interface components {
2851
3019
  };
2852
3020
  SessionStopConflictReply: {
2853
3021
  /** @constant */
2854
- version: "17";
3022
+ version: "19";
2855
3023
  /** @constant */
2856
3024
  type: "session_stop_reply";
2857
3025
  answer: {
@@ -2870,7 +3038,7 @@ export interface components {
2870
3038
  };
2871
3039
  SessionStopReply: {
2872
3040
  /** @constant */
2873
- version: "17";
3041
+ version: "19";
2874
3042
  /** @constant */
2875
3043
  type: "session_stop_reply";
2876
3044
  answer: {
@@ -2889,7 +3057,7 @@ export interface components {
2889
3057
  };
2890
3058
  } | {
2891
3059
  /** @constant */
2892
- version: "17";
3060
+ version: "19";
2893
3061
  /** @constant */
2894
3062
  type: "session_stop_reply";
2895
3063
  answer: {
@@ -2907,7 +3075,7 @@ export interface components {
2907
3075
  };
2908
3076
  SessionStopRequest: {
2909
3077
  /** @constant */
2910
- version: "17";
3078
+ version: "19";
2911
3079
  /** @constant */
2912
3080
  kind: "session_stop";
2913
3081
  store: string;
@@ -2922,7 +3090,7 @@ export interface components {
2922
3090
  };
2923
3091
  SkillSuggestionsReply: {
2924
3092
  /** @constant */
2925
- version: "17";
3093
+ version: "19";
2926
3094
  /** @constant */
2927
3095
  type: "skill_suggestions";
2928
3096
  revision: components["schemas"]["Decimal"];
@@ -2934,7 +3102,7 @@ export interface components {
2934
3102
  };
2935
3103
  SkillSuggestionsRequest: {
2936
3104
  /** @constant */
2937
- version: "17";
3105
+ version: "19";
2938
3106
  /** @constant */
2939
3107
  kind: "skill_suggestions";
2940
3108
  store: string;
@@ -2942,7 +3110,7 @@ export interface components {
2942
3110
  prefix: string;
2943
3111
  } | {
2944
3112
  /** @constant */
2945
- version: "17";
3113
+ version: "19";
2946
3114
  /** @constant */
2947
3115
  kind: "skill_suggestions";
2948
3116
  store: string;
@@ -3289,7 +3457,7 @@ export interface components {
3289
3457
  responses: never;
3290
3458
  parameters: {
3291
3459
  /** @description The wire version this document describes. Any other version is refused. */
3292
- WireVersion: "17";
3460
+ WireVersion: "19";
3293
3461
  /** @description The Host instance (from host-info) the request is meant for; a different instance refuses it. */
3294
3462
  HostInstance: string;
3295
3463
  /** @description The Host instance (from host-info) the request is meant for; a different instance refuses it, and a request without it is refused. */
@@ -3607,6 +3775,53 @@ export interface operations {
3607
3775
  };
3608
3776
  };
3609
3777
  };
3778
+ sessionPin: {
3779
+ parameters: {
3780
+ query?: never;
3781
+ header: {
3782
+ /** @description The wire version this document describes. Any other version is refused. */
3783
+ "X-Rui-Wire-Version": components["parameters"]["WireVersion"];
3784
+ /** @description The Host instance (from host-info) the request is meant for; a different instance refuses it. */
3785
+ "X-Rui-Host-Instance"?: components["parameters"]["HostInstance"];
3786
+ };
3787
+ path?: never;
3788
+ cookie?: never;
3789
+ };
3790
+ requestBody: {
3791
+ content: {
3792
+ "application/json": components["schemas"]["SessionPinRequest"];
3793
+ };
3794
+ };
3795
+ responses: {
3796
+ /** @description The reply. */
3797
+ 200: {
3798
+ headers: {
3799
+ [name: string]: unknown;
3800
+ };
3801
+ content: {
3802
+ "application/json": components["schemas"]["SessionPinReply"];
3803
+ };
3804
+ };
3805
+ /** @description The key was used before with different input (the conflict reply), or the request names another Store or Host instance (a refusal). */
3806
+ 409: {
3807
+ headers: {
3808
+ [name: string]: unknown;
3809
+ };
3810
+ content: {
3811
+ "application/json": components["schemas"]["SessionPinConflictReply"] | components["schemas"]["ErrorReply"];
3812
+ };
3813
+ };
3814
+ /** @description A refusal or failure. */
3815
+ default: {
3816
+ headers: {
3817
+ [name: string]: unknown;
3818
+ };
3819
+ content: {
3820
+ "application/json": components["schemas"]["ErrorReply"];
3821
+ };
3822
+ };
3823
+ };
3824
+ };
3610
3825
  modelInterruption: {
3611
3826
  parameters: {
3612
3827
  query?: never;
@@ -3701,6 +3916,44 @@ export interface operations {
3701
3916
  };
3702
3917
  };
3703
3918
  };
3919
+ readAction: {
3920
+ parameters: {
3921
+ query?: never;
3922
+ header: {
3923
+ /** @description The wire version this document describes. Any other version is refused. */
3924
+ "X-Rui-Wire-Version": components["parameters"]["WireVersion"];
3925
+ /** @description The Host instance (from host-info) the request is meant for; a different instance refuses it. */
3926
+ "X-Rui-Host-Instance"?: components["parameters"]["HostInstance"];
3927
+ };
3928
+ path?: never;
3929
+ cookie?: never;
3930
+ };
3931
+ requestBody: {
3932
+ content: {
3933
+ "application/json": components["schemas"]["ReadActionRequest"];
3934
+ };
3935
+ };
3936
+ responses: {
3937
+ /** @description The reply. */
3938
+ 200: {
3939
+ headers: {
3940
+ [name: string]: unknown;
3941
+ };
3942
+ content: {
3943
+ "application/json": components["schemas"]["ReadActionReply"];
3944
+ };
3945
+ };
3946
+ /** @description A refusal or failure. */
3947
+ default: {
3948
+ headers: {
3949
+ [name: string]: unknown;
3950
+ };
3951
+ content: {
3952
+ "application/json": components["schemas"]["ErrorReply"];
3953
+ };
3954
+ };
3955
+ };
3956
+ };
3704
3957
  observeCommand: {
3705
3958
  parameters: {
3706
3959
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ruicode",
3
- "version": "0.74.4",
3
+ "version": "0.75.1",
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": {
@@ -28,8 +28,8 @@
28
28
  "mcp"
29
29
  ],
30
30
  "optionalDependencies": {
31
- "ruicode-linux-x64": "0.74.4",
32
- "ruicode-linux-arm64": "0.74.4",
33
- "ruicode-darwin-arm64": "0.74.4"
31
+ "ruicode-linux-x64": "0.75.1",
32
+ "ruicode-linux-arm64": "0.75.1",
33
+ "ruicode-darwin-arm64": "0.75.1"
34
34
  }
35
35
  }