ruicode 0.74.3 → 0.75.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/sessions.d.ts +7 -0
- package/dist/sessions.js +22 -0
- package/dist/transport.d.ts +1 -1
- package/dist/transport.js +1 -1
- package/dist/wire.d.ts +225 -71
- package/package.json +4 -4
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 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";
|
package/dist/sessions.d.ts
CHANGED
|
@@ -65,6 +65,9 @@ export interface SessionArchiveResult {
|
|
|
65
65
|
/** Accepted intent can remain pending until stopped work has really settled. */
|
|
66
66
|
completion: "pending" | "completed";
|
|
67
67
|
}
|
|
68
|
+
export type SessionPinResult = Pick<Extract<Schemas["SessionPinReply"]["answer"], {
|
|
69
|
+
status: "accepted";
|
|
70
|
+
}>, "pinned">;
|
|
68
71
|
export interface SessionSummary {
|
|
69
72
|
id: string;
|
|
70
73
|
label: string | null;
|
|
@@ -134,6 +137,10 @@ export declare class Session {
|
|
|
134
137
|
archive(options?: WriteOptions): Promise<SessionArchiveResult>;
|
|
135
138
|
/** Restores organization only. Previously stopped work is never resumed. */
|
|
136
139
|
unarchive(options?: WriteOptions): Promise<SessionArchiveResult>;
|
|
140
|
+
/** Pins this Session without starting or interrupting work. Repeated pins preserve its position. */
|
|
141
|
+
pin(options?: WriteOptions): Promise<SessionPinResult>;
|
|
142
|
+
/** Removes this Session's pin without changing its work. */
|
|
143
|
+
unpin(options?: WriteOptions): Promise<SessionPinResult>;
|
|
137
144
|
/**
|
|
138
145
|
* Cuts off the model call that is current now while the Session keeps going.
|
|
139
146
|
* It takes no key: each call names the work it sees at that moment, so a
|
package/dist/sessions.js
CHANGED
|
@@ -166,6 +166,28 @@ 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
|
+
}
|
|
169
191
|
/**
|
|
170
192
|
* Cuts off the model call that is current now while the Session keeps going.
|
|
171
193
|
* It takes no key: each call names the work it sees at that moment, so a
|
package/dist/transport.d.ts
CHANGED
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 = "
|
|
7
|
+
export const WIRE_VERSION = "18";
|
|
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;
|
|
@@ -383,7 +400,7 @@ export interface components {
|
|
|
383
400
|
schemas: {
|
|
384
401
|
ActivityContentRequest: {
|
|
385
402
|
/** @constant */
|
|
386
|
-
version: "
|
|
403
|
+
version: "18";
|
|
387
404
|
/** @constant */
|
|
388
405
|
kind: "activity_content";
|
|
389
406
|
store: string;
|
|
@@ -602,7 +619,7 @@ export interface components {
|
|
|
602
619
|
};
|
|
603
620
|
ActivityPageReply: {
|
|
604
621
|
/** @constant */
|
|
605
|
-
version: "
|
|
622
|
+
version: "18";
|
|
606
623
|
/** @constant */
|
|
607
624
|
type: "activity_page";
|
|
608
625
|
end: components["schemas"]["Decimal"];
|
|
@@ -618,7 +635,7 @@ export interface components {
|
|
|
618
635
|
since: string | null;
|
|
619
636
|
} | {
|
|
620
637
|
/** @constant */
|
|
621
|
-
version: "
|
|
638
|
+
version: "18";
|
|
622
639
|
/** @constant */
|
|
623
640
|
type: "activity_page";
|
|
624
641
|
/** @constant */
|
|
@@ -627,7 +644,7 @@ export interface components {
|
|
|
627
644
|
};
|
|
628
645
|
ActivityPageRequest: {
|
|
629
646
|
/** @constant */
|
|
630
|
-
version: "
|
|
647
|
+
version: "18";
|
|
631
648
|
/** @constant */
|
|
632
649
|
kind: "activity_page";
|
|
633
650
|
store: string;
|
|
@@ -660,7 +677,7 @@ export interface components {
|
|
|
660
677
|
};
|
|
661
678
|
ActivitySearchReply: {
|
|
662
679
|
/** @constant */
|
|
663
|
-
version: "
|
|
680
|
+
version: "18";
|
|
664
681
|
/** @constant */
|
|
665
682
|
type: "activity_search";
|
|
666
683
|
items: components["schemas"]["ActivitySearchItem"][];
|
|
@@ -668,7 +685,7 @@ export interface components {
|
|
|
668
685
|
};
|
|
669
686
|
ActivitySearchRequest: {
|
|
670
687
|
/** @constant */
|
|
671
|
-
version: "
|
|
688
|
+
version: "18";
|
|
672
689
|
/** @constant */
|
|
673
690
|
kind: "activity_search";
|
|
674
691
|
store: string;
|
|
@@ -728,7 +745,7 @@ export interface components {
|
|
|
728
745
|
};
|
|
729
746
|
ConfigureConflictReply: {
|
|
730
747
|
/** @constant */
|
|
731
|
-
version: "
|
|
748
|
+
version: "18";
|
|
732
749
|
/** @constant */
|
|
733
750
|
type: "configuration_reply";
|
|
734
751
|
answer: {
|
|
@@ -749,7 +766,7 @@ export interface components {
|
|
|
749
766
|
};
|
|
750
767
|
ConfigureReply: {
|
|
751
768
|
/** @constant */
|
|
752
|
-
version: "
|
|
769
|
+
version: "18";
|
|
753
770
|
/** @constant */
|
|
754
771
|
type: "configuration_reply";
|
|
755
772
|
answer: {
|
|
@@ -768,7 +785,7 @@ export interface components {
|
|
|
768
785
|
};
|
|
769
786
|
} | {
|
|
770
787
|
/** @constant */
|
|
771
|
-
version: "
|
|
788
|
+
version: "18";
|
|
772
789
|
/** @constant */
|
|
773
790
|
type: "configuration_reply";
|
|
774
791
|
answer: {
|
|
@@ -790,7 +807,7 @@ export interface components {
|
|
|
790
807
|
};
|
|
791
808
|
} | {
|
|
792
809
|
/** @constant */
|
|
793
|
-
version: "
|
|
810
|
+
version: "18";
|
|
794
811
|
/** @constant */
|
|
795
812
|
type: "configuration_reply";
|
|
796
813
|
answer: {
|
|
@@ -811,7 +828,7 @@ export interface components {
|
|
|
811
828
|
};
|
|
812
829
|
ConfigureRequest: {
|
|
813
830
|
/** @constant */
|
|
814
|
-
version: "
|
|
831
|
+
version: "18";
|
|
815
832
|
/** @constant */
|
|
816
833
|
kind: "configure";
|
|
817
834
|
store: string;
|
|
@@ -826,7 +843,7 @@ export interface components {
|
|
|
826
843
|
};
|
|
827
844
|
ConversationContentRequest: {
|
|
828
845
|
/** @constant */
|
|
829
|
-
version: "
|
|
846
|
+
version: "18";
|
|
830
847
|
/** @constant */
|
|
831
848
|
kind: "conversation_content";
|
|
832
849
|
store: string;
|
|
@@ -840,7 +857,7 @@ export interface components {
|
|
|
840
857
|
};
|
|
841
858
|
ConversationPageReply: {
|
|
842
859
|
/** @constant */
|
|
843
|
-
version: "
|
|
860
|
+
version: "18";
|
|
844
861
|
/** @constant */
|
|
845
862
|
type: "conversation_page";
|
|
846
863
|
/** @constant */
|
|
@@ -920,7 +937,7 @@ export interface components {
|
|
|
920
937
|
more: false;
|
|
921
938
|
} | {
|
|
922
939
|
/** @constant */
|
|
923
|
-
version: "
|
|
940
|
+
version: "18";
|
|
924
941
|
/** @constant */
|
|
925
942
|
type: "conversation_page";
|
|
926
943
|
/** @constant */
|
|
@@ -1003,7 +1020,7 @@ export interface components {
|
|
|
1003
1020
|
};
|
|
1004
1021
|
ConversationPageRequest: {
|
|
1005
1022
|
/** @constant */
|
|
1006
|
-
version: "
|
|
1023
|
+
version: "18";
|
|
1007
1024
|
/** @constant */
|
|
1008
1025
|
kind: "conversation_page";
|
|
1009
1026
|
store: string;
|
|
@@ -1016,7 +1033,7 @@ export interface components {
|
|
|
1016
1033
|
Decimal: string;
|
|
1017
1034
|
ErrorReply: {
|
|
1018
1035
|
/** @constant */
|
|
1019
|
-
version: "
|
|
1036
|
+
version: "18";
|
|
1020
1037
|
/** @enum {string} */
|
|
1021
1038
|
type: "invocation_error" | "observation_error" | "busy" | "unsupported" | "host_unavailable" | "result_unavailable" | "action_unavailable" | "conversation_unavailable" | "activity_unavailable" | "failed_response_unavailable";
|
|
1022
1039
|
code: string;
|
|
@@ -1030,7 +1047,7 @@ export interface components {
|
|
|
1030
1047
|
};
|
|
1031
1048
|
HostInfoReply: {
|
|
1032
1049
|
/** @constant */
|
|
1033
|
-
version: "
|
|
1050
|
+
version: "18";
|
|
1034
1051
|
/** @constant */
|
|
1035
1052
|
type: "host_info";
|
|
1036
1053
|
store: string;
|
|
@@ -1057,21 +1074,21 @@ export interface components {
|
|
|
1057
1074
|
};
|
|
1058
1075
|
HostInfoRequest: {
|
|
1059
1076
|
/** @constant */
|
|
1060
|
-
version: "
|
|
1077
|
+
version: "18";
|
|
1061
1078
|
/** @constant */
|
|
1062
1079
|
kind: "host_info";
|
|
1063
1080
|
store: string;
|
|
1064
1081
|
};
|
|
1065
1082
|
HostPauseReply: {
|
|
1066
1083
|
/** @constant */
|
|
1067
|
-
version: "
|
|
1084
|
+
version: "18";
|
|
1068
1085
|
/** @constant */
|
|
1069
1086
|
type: "host_pause_reply";
|
|
1070
1087
|
paused: boolean;
|
|
1071
1088
|
};
|
|
1072
1089
|
HostPauseRequest: {
|
|
1073
1090
|
/** @constant */
|
|
1074
|
-
version: "
|
|
1091
|
+
version: "18";
|
|
1075
1092
|
/** @constant */
|
|
1076
1093
|
kind: "host_pause";
|
|
1077
1094
|
store: string;
|
|
@@ -1208,7 +1225,7 @@ export interface components {
|
|
|
1208
1225
|
};
|
|
1209
1226
|
HostStopReply: {
|
|
1210
1227
|
/** @constant */
|
|
1211
|
-
version: "
|
|
1228
|
+
version: "18";
|
|
1212
1229
|
/** @constant */
|
|
1213
1230
|
type: "host_stop_reply";
|
|
1214
1231
|
/** @constant */
|
|
@@ -1216,14 +1233,14 @@ export interface components {
|
|
|
1216
1233
|
};
|
|
1217
1234
|
HostStopRequest: {
|
|
1218
1235
|
/** @constant */
|
|
1219
|
-
version: "
|
|
1236
|
+
version: "18";
|
|
1220
1237
|
/** @constant */
|
|
1221
1238
|
kind: "host_stop";
|
|
1222
1239
|
store: string;
|
|
1223
1240
|
};
|
|
1224
1241
|
InspectSessionReply: {
|
|
1225
1242
|
/** @constant */
|
|
1226
|
-
version: "
|
|
1243
|
+
version: "18";
|
|
1227
1244
|
/** @constant */
|
|
1228
1245
|
type: "session_report";
|
|
1229
1246
|
/** @constant */
|
|
@@ -1246,7 +1263,7 @@ export interface components {
|
|
|
1246
1263
|
execution: components["schemas"]["domainreportExecutionJson"];
|
|
1247
1264
|
} | {
|
|
1248
1265
|
/** @constant */
|
|
1249
|
-
version: "
|
|
1266
|
+
version: "18";
|
|
1250
1267
|
/** @constant */
|
|
1251
1268
|
type: "session_report";
|
|
1252
1269
|
/** @constant */
|
|
@@ -1267,7 +1284,7 @@ export interface components {
|
|
|
1267
1284
|
execution: components["schemas"]["domainreportExecutionJson"];
|
|
1268
1285
|
} | {
|
|
1269
1286
|
/** @constant */
|
|
1270
|
-
version: "
|
|
1287
|
+
version: "18";
|
|
1271
1288
|
/** @constant */
|
|
1272
1289
|
type: "session_report";
|
|
1273
1290
|
/** @constant */
|
|
@@ -1286,7 +1303,7 @@ export interface components {
|
|
|
1286
1303
|
};
|
|
1287
1304
|
} | {
|
|
1288
1305
|
/** @constant */
|
|
1289
|
-
version: "
|
|
1306
|
+
version: "18";
|
|
1290
1307
|
/** @constant */
|
|
1291
1308
|
type: "session_report";
|
|
1292
1309
|
/** @constant */
|
|
@@ -1303,7 +1320,7 @@ export interface components {
|
|
|
1303
1320
|
};
|
|
1304
1321
|
InspectSessionRequest: {
|
|
1305
1322
|
/** @constant */
|
|
1306
|
-
version: "
|
|
1323
|
+
version: "18";
|
|
1307
1324
|
/** @constant */
|
|
1308
1325
|
kind: "inspect_session";
|
|
1309
1326
|
store: string;
|
|
@@ -1311,7 +1328,7 @@ export interface components {
|
|
|
1311
1328
|
since?: string | null;
|
|
1312
1329
|
} | {
|
|
1313
1330
|
/** @constant */
|
|
1314
|
-
version: "
|
|
1331
|
+
version: "18";
|
|
1315
1332
|
/** @constant */
|
|
1316
1333
|
kind: "inspect_session";
|
|
1317
1334
|
store: string;
|
|
@@ -1320,7 +1337,7 @@ export interface components {
|
|
|
1320
1337
|
profile: "full";
|
|
1321
1338
|
} | {
|
|
1322
1339
|
/** @constant */
|
|
1323
|
-
version: "
|
|
1340
|
+
version: "18";
|
|
1324
1341
|
/** @constant */
|
|
1325
1342
|
kind: "inspect_session";
|
|
1326
1343
|
store: string;
|
|
@@ -1336,7 +1353,7 @@ export interface components {
|
|
|
1336
1353
|
};
|
|
1337
1354
|
ListSessionsReply: {
|
|
1338
1355
|
/** @constant */
|
|
1339
|
-
version: "
|
|
1356
|
+
version: "18";
|
|
1340
1357
|
/** @constant */
|
|
1341
1358
|
type: "session_list";
|
|
1342
1359
|
sessions: components["schemas"]["SessionRow"][];
|
|
@@ -1349,7 +1366,7 @@ export interface components {
|
|
|
1349
1366
|
};
|
|
1350
1367
|
} | {
|
|
1351
1368
|
/** @constant */
|
|
1352
|
-
version: "
|
|
1369
|
+
version: "18";
|
|
1353
1370
|
/** @constant */
|
|
1354
1371
|
type: "session_list";
|
|
1355
1372
|
sessions: components["schemas"]["SessionRow"][];
|
|
@@ -1362,7 +1379,7 @@ export interface components {
|
|
|
1362
1379
|
};
|
|
1363
1380
|
} | {
|
|
1364
1381
|
/** @constant */
|
|
1365
|
-
version: "
|
|
1382
|
+
version: "18";
|
|
1366
1383
|
/** @constant */
|
|
1367
1384
|
type: "session_list";
|
|
1368
1385
|
sessions: components["schemas"]["SessionRow"][];
|
|
@@ -1373,7 +1390,7 @@ export interface components {
|
|
|
1373
1390
|
};
|
|
1374
1391
|
ListSessionsRequest: {
|
|
1375
1392
|
/** @constant */
|
|
1376
|
-
version: "
|
|
1393
|
+
version: "18";
|
|
1377
1394
|
/** @constant */
|
|
1378
1395
|
kind: "list_sessions";
|
|
1379
1396
|
store: string;
|
|
@@ -1388,7 +1405,7 @@ export interface components {
|
|
|
1388
1405
|
};
|
|
1389
1406
|
MessageConflictReply: {
|
|
1390
1407
|
/** @constant */
|
|
1391
|
-
version: "
|
|
1408
|
+
version: "18";
|
|
1392
1409
|
/** @constant */
|
|
1393
1410
|
type: "message_reply";
|
|
1394
1411
|
answer: {
|
|
@@ -1417,7 +1434,7 @@ export interface components {
|
|
|
1417
1434
|
};
|
|
1418
1435
|
MessageReply: {
|
|
1419
1436
|
/** @constant */
|
|
1420
|
-
version: "
|
|
1437
|
+
version: "18";
|
|
1421
1438
|
/** @constant */
|
|
1422
1439
|
type: "message_reply";
|
|
1423
1440
|
answer: {
|
|
@@ -1444,7 +1461,7 @@ export interface components {
|
|
|
1444
1461
|
};
|
|
1445
1462
|
} | {
|
|
1446
1463
|
/** @constant */
|
|
1447
|
-
version: "
|
|
1464
|
+
version: "18";
|
|
1448
1465
|
/** @constant */
|
|
1449
1466
|
type: "message_reply";
|
|
1450
1467
|
answer: {
|
|
@@ -1469,7 +1486,7 @@ export interface components {
|
|
|
1469
1486
|
};
|
|
1470
1487
|
MessageRequest: {
|
|
1471
1488
|
/** @constant */
|
|
1472
|
-
version: "
|
|
1489
|
+
version: "18";
|
|
1473
1490
|
/** @constant */
|
|
1474
1491
|
kind: "message";
|
|
1475
1492
|
store: string;
|
|
@@ -1492,7 +1509,7 @@ export interface components {
|
|
|
1492
1509
|
};
|
|
1493
1510
|
ModelInterruptionConflictReply: {
|
|
1494
1511
|
/** @constant */
|
|
1495
|
-
version: "
|
|
1512
|
+
version: "18";
|
|
1496
1513
|
/** @constant */
|
|
1497
1514
|
type: "model_interruption_reply";
|
|
1498
1515
|
answer: {
|
|
@@ -1511,7 +1528,7 @@ export interface components {
|
|
|
1511
1528
|
};
|
|
1512
1529
|
ModelInterruptionReply: {
|
|
1513
1530
|
/** @constant */
|
|
1514
|
-
version: "
|
|
1531
|
+
version: "18";
|
|
1515
1532
|
/** @constant */
|
|
1516
1533
|
type: "model_interruption_reply";
|
|
1517
1534
|
answer: {
|
|
@@ -1526,7 +1543,7 @@ export interface components {
|
|
|
1526
1543
|
};
|
|
1527
1544
|
} | {
|
|
1528
1545
|
/** @constant */
|
|
1529
|
-
version: "
|
|
1546
|
+
version: "18";
|
|
1530
1547
|
/** @constant */
|
|
1531
1548
|
type: "model_interruption_reply";
|
|
1532
1549
|
answer: {
|
|
@@ -1544,7 +1561,7 @@ export interface components {
|
|
|
1544
1561
|
};
|
|
1545
1562
|
ModelInterruptionRequest: {
|
|
1546
1563
|
/** @constant */
|
|
1547
|
-
version: "
|
|
1564
|
+
version: "18";
|
|
1548
1565
|
/** @constant */
|
|
1549
1566
|
kind: "model_interruption";
|
|
1550
1567
|
store: string;
|
|
@@ -1567,14 +1584,14 @@ export interface components {
|
|
|
1567
1584
|
};
|
|
1568
1585
|
ModelListReply: {
|
|
1569
1586
|
/** @constant */
|
|
1570
|
-
version: "
|
|
1587
|
+
version: "18";
|
|
1571
1588
|
/** @constant */
|
|
1572
1589
|
type: "model_list";
|
|
1573
1590
|
providers: components["schemas"]["ModelListEntry"][];
|
|
1574
1591
|
};
|
|
1575
1592
|
ModelListRequest: {
|
|
1576
1593
|
/** @constant */
|
|
1577
|
-
version: "
|
|
1594
|
+
version: "18";
|
|
1578
1595
|
/** @constant */
|
|
1579
1596
|
kind: "model_list";
|
|
1580
1597
|
store: string;
|
|
@@ -1585,7 +1602,7 @@ export interface components {
|
|
|
1585
1602
|
};
|
|
1586
1603
|
ObserveCommandReply: {
|
|
1587
1604
|
/** @constant */
|
|
1588
|
-
version: "
|
|
1605
|
+
version: "18";
|
|
1589
1606
|
/** @constant */
|
|
1590
1607
|
type: "command_observation";
|
|
1591
1608
|
key: string;
|
|
@@ -1598,7 +1615,7 @@ export interface components {
|
|
|
1598
1615
|
};
|
|
1599
1616
|
} | {
|
|
1600
1617
|
/** @constant */
|
|
1601
|
-
version: "
|
|
1618
|
+
version: "18";
|
|
1602
1619
|
/** @constant */
|
|
1603
1620
|
type: "command_observation";
|
|
1604
1621
|
key: string;
|
|
@@ -1638,7 +1655,7 @@ export interface components {
|
|
|
1638
1655
|
};
|
|
1639
1656
|
} | {
|
|
1640
1657
|
/** @constant */
|
|
1641
|
-
version: "
|
|
1658
|
+
version: "18";
|
|
1642
1659
|
/** @constant */
|
|
1643
1660
|
type: "command_observation";
|
|
1644
1661
|
key: string;
|
|
@@ -2447,7 +2464,7 @@ export interface components {
|
|
|
2447
2464
|
};
|
|
2448
2465
|
} | {
|
|
2449
2466
|
/** @constant */
|
|
2450
|
-
version: "
|
|
2467
|
+
version: "18";
|
|
2451
2468
|
/** @constant */
|
|
2452
2469
|
type: "command_observation";
|
|
2453
2470
|
key: string;
|
|
@@ -2499,7 +2516,7 @@ export interface components {
|
|
|
2499
2516
|
};
|
|
2500
2517
|
} | {
|
|
2501
2518
|
/** @constant */
|
|
2502
|
-
version: "
|
|
2519
|
+
version: "18";
|
|
2503
2520
|
/** @constant */
|
|
2504
2521
|
type: "command_observation";
|
|
2505
2522
|
key: string;
|
|
@@ -2545,7 +2562,7 @@ export interface components {
|
|
|
2545
2562
|
};
|
|
2546
2563
|
} | {
|
|
2547
2564
|
/** @constant */
|
|
2548
|
-
version: "
|
|
2565
|
+
version: "18";
|
|
2549
2566
|
/** @constant */
|
|
2550
2567
|
type: "command_observation";
|
|
2551
2568
|
key: string;
|
|
@@ -2591,7 +2608,7 @@ export interface components {
|
|
|
2591
2608
|
};
|
|
2592
2609
|
} | {
|
|
2593
2610
|
/** @constant */
|
|
2594
|
-
version: "
|
|
2611
|
+
version: "18";
|
|
2595
2612
|
/** @constant */
|
|
2596
2613
|
type: "command_observation";
|
|
2597
2614
|
key: string;
|
|
@@ -2637,7 +2654,45 @@ export interface components {
|
|
|
2637
2654
|
};
|
|
2638
2655
|
} | {
|
|
2639
2656
|
/** @constant */
|
|
2640
|
-
version: "
|
|
2657
|
+
version: "18";
|
|
2658
|
+
/** @constant */
|
|
2659
|
+
type: "command_observation";
|
|
2660
|
+
key: string;
|
|
2661
|
+
/** @constant */
|
|
2662
|
+
delta: "full";
|
|
2663
|
+
since: string | null;
|
|
2664
|
+
observation: {
|
|
2665
|
+
/** @enum {string} */
|
|
2666
|
+
status: "absent" | "accepted" | "rejected";
|
|
2667
|
+
/** @constant */
|
|
2668
|
+
kind: "session_pin";
|
|
2669
|
+
target: string;
|
|
2670
|
+
} | {
|
|
2671
|
+
/** @enum {string} */
|
|
2672
|
+
status: "absent" | "accepted" | "rejected";
|
|
2673
|
+
/** @constant */
|
|
2674
|
+
kind: "session_pin";
|
|
2675
|
+
target: string;
|
|
2676
|
+
code: string;
|
|
2677
|
+
} | {
|
|
2678
|
+
/** @enum {string} */
|
|
2679
|
+
status: "absent" | "accepted" | "rejected";
|
|
2680
|
+
/** @constant */
|
|
2681
|
+
kind: "session_pin";
|
|
2682
|
+
target: string;
|
|
2683
|
+
pinned: boolean;
|
|
2684
|
+
} | {
|
|
2685
|
+
/** @enum {string} */
|
|
2686
|
+
status: "absent" | "accepted" | "rejected";
|
|
2687
|
+
/** @constant */
|
|
2688
|
+
kind: "session_pin";
|
|
2689
|
+
target: string;
|
|
2690
|
+
code: string;
|
|
2691
|
+
pinned: boolean;
|
|
2692
|
+
};
|
|
2693
|
+
} | {
|
|
2694
|
+
/** @constant */
|
|
2695
|
+
version: "18";
|
|
2641
2696
|
/** @constant */
|
|
2642
2697
|
type: "command_observation";
|
|
2643
2698
|
key: string;
|
|
@@ -2647,7 +2702,7 @@ export interface components {
|
|
|
2647
2702
|
};
|
|
2648
2703
|
ObserveCommandRequest: {
|
|
2649
2704
|
/** @constant */
|
|
2650
|
-
version: "
|
|
2705
|
+
version: "18";
|
|
2651
2706
|
/** @constant */
|
|
2652
2707
|
kind: "observe_command";
|
|
2653
2708
|
store: string;
|
|
@@ -2672,7 +2727,7 @@ export interface components {
|
|
|
2672
2727
|
};
|
|
2673
2728
|
PermissionDecisionConflictReply: {
|
|
2674
2729
|
/** @constant */
|
|
2675
|
-
version: "
|
|
2730
|
+
version: "18";
|
|
2676
2731
|
/** @constant */
|
|
2677
2732
|
type: "permission_decision_reply";
|
|
2678
2733
|
answer: {
|
|
@@ -2690,7 +2745,7 @@ export interface components {
|
|
|
2690
2745
|
};
|
|
2691
2746
|
PermissionDecisionReply: {
|
|
2692
2747
|
/** @constant */
|
|
2693
|
-
version: "
|
|
2748
|
+
version: "18";
|
|
2694
2749
|
/** @constant */
|
|
2695
2750
|
type: "permission_decision_reply";
|
|
2696
2751
|
answer: {
|
|
@@ -2704,7 +2759,7 @@ export interface components {
|
|
|
2704
2759
|
};
|
|
2705
2760
|
} | {
|
|
2706
2761
|
/** @constant */
|
|
2707
|
-
version: "
|
|
2762
|
+
version: "18";
|
|
2708
2763
|
/** @constant */
|
|
2709
2764
|
type: "permission_decision_reply";
|
|
2710
2765
|
answer: {
|
|
@@ -2721,7 +2776,7 @@ export interface components {
|
|
|
2721
2776
|
};
|
|
2722
2777
|
PermissionDecisionRequest: {
|
|
2723
2778
|
/** @constant */
|
|
2724
|
-
version: "
|
|
2779
|
+
version: "18";
|
|
2725
2780
|
/** @constant */
|
|
2726
2781
|
kind: "permission_decision";
|
|
2727
2782
|
store: string;
|
|
@@ -2739,7 +2794,7 @@ export interface components {
|
|
|
2739
2794
|
};
|
|
2740
2795
|
ReadActionArgumentsRequest: {
|
|
2741
2796
|
/** @constant */
|
|
2742
|
-
version: "
|
|
2797
|
+
version: "18";
|
|
2743
2798
|
/** @constant */
|
|
2744
2799
|
kind: "read_action_arguments";
|
|
2745
2800
|
store: string;
|
|
@@ -2748,7 +2803,7 @@ export interface components {
|
|
|
2748
2803
|
};
|
|
2749
2804
|
ReadActionCallIdRequest: {
|
|
2750
2805
|
/** @constant */
|
|
2751
|
-
version: "
|
|
2806
|
+
version: "18";
|
|
2752
2807
|
/** @constant */
|
|
2753
2808
|
kind: "read_action_call_id";
|
|
2754
2809
|
store: string;
|
|
@@ -2757,7 +2812,7 @@ export interface components {
|
|
|
2757
2812
|
};
|
|
2758
2813
|
ReadResultRequest: {
|
|
2759
2814
|
/** @constant */
|
|
2760
|
-
version: "
|
|
2815
|
+
version: "18";
|
|
2761
2816
|
/** @constant */
|
|
2762
2817
|
kind: "read_result";
|
|
2763
2818
|
store: string;
|
|
@@ -2765,7 +2820,7 @@ export interface components {
|
|
|
2765
2820
|
};
|
|
2766
2821
|
SessionArchiveConflictReply: {
|
|
2767
2822
|
/** @constant */
|
|
2768
|
-
version: "
|
|
2823
|
+
version: "18";
|
|
2769
2824
|
/** @constant */
|
|
2770
2825
|
type: "session_archive_reply";
|
|
2771
2826
|
answer: {
|
|
@@ -2784,7 +2839,7 @@ export interface components {
|
|
|
2784
2839
|
};
|
|
2785
2840
|
SessionArchiveReply: {
|
|
2786
2841
|
/** @constant */
|
|
2787
|
-
version: "
|
|
2842
|
+
version: "18";
|
|
2788
2843
|
/** @constant */
|
|
2789
2844
|
type: "session_archive_reply";
|
|
2790
2845
|
answer: {
|
|
@@ -2800,7 +2855,7 @@ export interface components {
|
|
|
2800
2855
|
};
|
|
2801
2856
|
} | {
|
|
2802
2857
|
/** @constant */
|
|
2803
|
-
version: "
|
|
2858
|
+
version: "18";
|
|
2804
2859
|
/** @constant */
|
|
2805
2860
|
type: "session_archive_reply";
|
|
2806
2861
|
answer: {
|
|
@@ -2818,7 +2873,7 @@ export interface components {
|
|
|
2818
2873
|
};
|
|
2819
2874
|
SessionArchiveRequest: {
|
|
2820
2875
|
/** @constant */
|
|
2821
|
-
version: "
|
|
2876
|
+
version: "18";
|
|
2822
2877
|
/** @constant */
|
|
2823
2878
|
kind: "session_archive";
|
|
2824
2879
|
store: string;
|
|
@@ -2826,10 +2881,62 @@ export interface components {
|
|
|
2826
2881
|
session: string;
|
|
2827
2882
|
archived?: boolean;
|
|
2828
2883
|
};
|
|
2884
|
+
SessionPinConflictReply: {
|
|
2885
|
+
/** @constant */
|
|
2886
|
+
version: "18";
|
|
2887
|
+
/** @constant */
|
|
2888
|
+
type: "session_pin_reply";
|
|
2889
|
+
answer: {
|
|
2890
|
+
/** @constant */
|
|
2891
|
+
status: "conflict";
|
|
2892
|
+
/** @constant */
|
|
2893
|
+
replayed: false;
|
|
2894
|
+
session: string;
|
|
2895
|
+
/** @constant */
|
|
2896
|
+
code: "idempotency_key_conflict";
|
|
2897
|
+
};
|
|
2898
|
+
};
|
|
2899
|
+
SessionPinReply: {
|
|
2900
|
+
/** @constant */
|
|
2901
|
+
version: "18";
|
|
2902
|
+
/** @constant */
|
|
2903
|
+
type: "session_pin_reply";
|
|
2904
|
+
answer: {
|
|
2905
|
+
/** @constant */
|
|
2906
|
+
status: "accepted";
|
|
2907
|
+
replayed: boolean;
|
|
2908
|
+
session: string;
|
|
2909
|
+
pinned: boolean;
|
|
2910
|
+
};
|
|
2911
|
+
} | {
|
|
2912
|
+
/** @constant */
|
|
2913
|
+
version: "18";
|
|
2914
|
+
/** @constant */
|
|
2915
|
+
type: "session_pin_reply";
|
|
2916
|
+
answer: {
|
|
2917
|
+
/** @constant */
|
|
2918
|
+
status: "rejected";
|
|
2919
|
+
replayed: boolean;
|
|
2920
|
+
session: string;
|
|
2921
|
+
/** @enum {string} */
|
|
2922
|
+
code: "invalid_session_reference" | "unknown_session" | "session_archiving" | "session_archived";
|
|
2923
|
+
};
|
|
2924
|
+
};
|
|
2925
|
+
SessionPinRequest: {
|
|
2926
|
+
/** @constant */
|
|
2927
|
+
version: "18";
|
|
2928
|
+
/** @constant */
|
|
2929
|
+
kind: "session_pin";
|
|
2930
|
+
store: string;
|
|
2931
|
+
key: string;
|
|
2932
|
+
session: string;
|
|
2933
|
+
pinned: boolean;
|
|
2934
|
+
};
|
|
2829
2935
|
SessionRow: {
|
|
2830
2936
|
read_version: string;
|
|
2831
2937
|
/** @enum {string} */
|
|
2832
2938
|
archive_state: "active" | "archiving" | "archived";
|
|
2939
|
+
pin_order: components["schemas"]["Decimal"] | null;
|
|
2833
2940
|
reference: string;
|
|
2834
2941
|
workspace: string;
|
|
2835
2942
|
/** @enum {string} */
|
|
@@ -2851,7 +2958,7 @@ export interface components {
|
|
|
2851
2958
|
};
|
|
2852
2959
|
SessionStopConflictReply: {
|
|
2853
2960
|
/** @constant */
|
|
2854
|
-
version: "
|
|
2961
|
+
version: "18";
|
|
2855
2962
|
/** @constant */
|
|
2856
2963
|
type: "session_stop_reply";
|
|
2857
2964
|
answer: {
|
|
@@ -2870,7 +2977,7 @@ export interface components {
|
|
|
2870
2977
|
};
|
|
2871
2978
|
SessionStopReply: {
|
|
2872
2979
|
/** @constant */
|
|
2873
|
-
version: "
|
|
2980
|
+
version: "18";
|
|
2874
2981
|
/** @constant */
|
|
2875
2982
|
type: "session_stop_reply";
|
|
2876
2983
|
answer: {
|
|
@@ -2889,7 +2996,7 @@ export interface components {
|
|
|
2889
2996
|
};
|
|
2890
2997
|
} | {
|
|
2891
2998
|
/** @constant */
|
|
2892
|
-
version: "
|
|
2999
|
+
version: "18";
|
|
2893
3000
|
/** @constant */
|
|
2894
3001
|
type: "session_stop_reply";
|
|
2895
3002
|
answer: {
|
|
@@ -2907,7 +3014,7 @@ export interface components {
|
|
|
2907
3014
|
};
|
|
2908
3015
|
SessionStopRequest: {
|
|
2909
3016
|
/** @constant */
|
|
2910
|
-
version: "
|
|
3017
|
+
version: "18";
|
|
2911
3018
|
/** @constant */
|
|
2912
3019
|
kind: "session_stop";
|
|
2913
3020
|
store: string;
|
|
@@ -2922,7 +3029,7 @@ export interface components {
|
|
|
2922
3029
|
};
|
|
2923
3030
|
SkillSuggestionsReply: {
|
|
2924
3031
|
/** @constant */
|
|
2925
|
-
version: "
|
|
3032
|
+
version: "18";
|
|
2926
3033
|
/** @constant */
|
|
2927
3034
|
type: "skill_suggestions";
|
|
2928
3035
|
revision: components["schemas"]["Decimal"];
|
|
@@ -2934,7 +3041,7 @@ export interface components {
|
|
|
2934
3041
|
};
|
|
2935
3042
|
SkillSuggestionsRequest: {
|
|
2936
3043
|
/** @constant */
|
|
2937
|
-
version: "
|
|
3044
|
+
version: "18";
|
|
2938
3045
|
/** @constant */
|
|
2939
3046
|
kind: "skill_suggestions";
|
|
2940
3047
|
store: string;
|
|
@@ -2942,7 +3049,7 @@ export interface components {
|
|
|
2942
3049
|
prefix: string;
|
|
2943
3050
|
} | {
|
|
2944
3051
|
/** @constant */
|
|
2945
|
-
version: "
|
|
3052
|
+
version: "18";
|
|
2946
3053
|
/** @constant */
|
|
2947
3054
|
kind: "skill_suggestions";
|
|
2948
3055
|
store: string;
|
|
@@ -3289,7 +3396,7 @@ export interface components {
|
|
|
3289
3396
|
responses: never;
|
|
3290
3397
|
parameters: {
|
|
3291
3398
|
/** @description The wire version this document describes. Any other version is refused. */
|
|
3292
|
-
WireVersion: "
|
|
3399
|
+
WireVersion: "18";
|
|
3293
3400
|
/** @description The Host instance (from host-info) the request is meant for; a different instance refuses it. */
|
|
3294
3401
|
HostInstance: string;
|
|
3295
3402
|
/** @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 +3714,53 @@ export interface operations {
|
|
|
3607
3714
|
};
|
|
3608
3715
|
};
|
|
3609
3716
|
};
|
|
3717
|
+
sessionPin: {
|
|
3718
|
+
parameters: {
|
|
3719
|
+
query?: never;
|
|
3720
|
+
header: {
|
|
3721
|
+
/** @description The wire version this document describes. Any other version is refused. */
|
|
3722
|
+
"X-Rui-Wire-Version": components["parameters"]["WireVersion"];
|
|
3723
|
+
/** @description The Host instance (from host-info) the request is meant for; a different instance refuses it. */
|
|
3724
|
+
"X-Rui-Host-Instance"?: components["parameters"]["HostInstance"];
|
|
3725
|
+
};
|
|
3726
|
+
path?: never;
|
|
3727
|
+
cookie?: never;
|
|
3728
|
+
};
|
|
3729
|
+
requestBody: {
|
|
3730
|
+
content: {
|
|
3731
|
+
"application/json": components["schemas"]["SessionPinRequest"];
|
|
3732
|
+
};
|
|
3733
|
+
};
|
|
3734
|
+
responses: {
|
|
3735
|
+
/** @description The reply. */
|
|
3736
|
+
200: {
|
|
3737
|
+
headers: {
|
|
3738
|
+
[name: string]: unknown;
|
|
3739
|
+
};
|
|
3740
|
+
content: {
|
|
3741
|
+
"application/json": components["schemas"]["SessionPinReply"];
|
|
3742
|
+
};
|
|
3743
|
+
};
|
|
3744
|
+
/** @description The key was used before with different input (the conflict reply), or the request names another Store or Host instance (a refusal). */
|
|
3745
|
+
409: {
|
|
3746
|
+
headers: {
|
|
3747
|
+
[name: string]: unknown;
|
|
3748
|
+
};
|
|
3749
|
+
content: {
|
|
3750
|
+
"application/json": components["schemas"]["SessionPinConflictReply"] | components["schemas"]["ErrorReply"];
|
|
3751
|
+
};
|
|
3752
|
+
};
|
|
3753
|
+
/** @description A refusal or failure. */
|
|
3754
|
+
default: {
|
|
3755
|
+
headers: {
|
|
3756
|
+
[name: string]: unknown;
|
|
3757
|
+
};
|
|
3758
|
+
content: {
|
|
3759
|
+
"application/json": components["schemas"]["ErrorReply"];
|
|
3760
|
+
};
|
|
3761
|
+
};
|
|
3762
|
+
};
|
|
3763
|
+
};
|
|
3610
3764
|
modelInterruption: {
|
|
3611
3765
|
parameters: {
|
|
3612
3766
|
query?: never;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ruicode",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.75.0",
|
|
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.
|
|
32
|
-
"ruicode-linux-arm64": "0.
|
|
33
|
-
"ruicode-darwin-arm64": "0.
|
|
31
|
+
"ruicode-linux-x64": "0.75.0",
|
|
32
|
+
"ruicode-linux-arm64": "0.75.0",
|
|
33
|
+
"ruicode-darwin-arm64": "0.75.0"
|
|
34
34
|
}
|
|
35
35
|
}
|