@realtimex/sdk 2.0.23 → 2.0.25
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/index.d.ts +49 -0
- package/index.js +35 -1
- package/package.json +1 -1
- package/skills/realtimex-moderator-sdk/SKILL.md +13 -5
package/index.d.ts
CHANGED
|
@@ -904,6 +904,29 @@ export interface SendMessageOptions extends RealtimeXRequestOptions {
|
|
|
904
904
|
body?: SendMessageBody;
|
|
905
905
|
}
|
|
906
906
|
|
|
907
|
+
export type SendTerminalSessionMessageParams = {
|
|
908
|
+
sessionId: string;
|
|
909
|
+
};
|
|
910
|
+
export type SendTerminalSessionMessageQuery = Record<string, never>;
|
|
911
|
+
export type SendTerminalSessionMessageHeaders = {
|
|
912
|
+
"x-app-id"?: string;
|
|
913
|
+
};
|
|
914
|
+
export type SendTerminalSessionMessageBody = {
|
|
915
|
+
message: string;
|
|
916
|
+
attachments?: Array<Record<string, unknown>>;
|
|
917
|
+
webSearchEnabled?: boolean;
|
|
918
|
+
broadcastThreadEvents?: boolean;
|
|
919
|
+
stripAgentPrefixForDelivery?: boolean;
|
|
920
|
+
channelTurnId?: string;
|
|
921
|
+
};
|
|
922
|
+
export type SendTerminalSessionMessageResponse = Record<string, unknown>;
|
|
923
|
+
export interface SendTerminalSessionMessageOptions extends RealtimeXRequestOptions {
|
|
924
|
+
params?: SendTerminalSessionMessageParams;
|
|
925
|
+
query?: SendTerminalSessionMessageQuery;
|
|
926
|
+
headers?: SendTerminalSessionMessageHeaders & Record<string, string>;
|
|
927
|
+
body?: SendTerminalSessionMessageBody;
|
|
928
|
+
}
|
|
929
|
+
|
|
907
930
|
export type SetDefaultWorkspaceAgentParams = Record<string, never>;
|
|
908
931
|
export type SetDefaultWorkspaceAgentQuery = Record<string, never>;
|
|
909
932
|
export type SetDefaultWorkspaceAgentHeaders = Record<string, never>;
|
|
@@ -1270,6 +1293,26 @@ export interface UpdateChannelOptions extends RealtimeXRequestOptions {
|
|
|
1270
1293
|
body?: UpdateChannelBody;
|
|
1271
1294
|
}
|
|
1272
1295
|
|
|
1296
|
+
export type WorkspaceShellLayoutParams = Record<string, never>;
|
|
1297
|
+
export type WorkspaceShellLayoutQuery = Record<string, never>;
|
|
1298
|
+
export type WorkspaceShellLayoutHeaders = Record<string, never>;
|
|
1299
|
+
export type WorkspaceShellLayoutBody = {
|
|
1300
|
+
cdpUrl?: string;
|
|
1301
|
+
mainAppUrl?: string;
|
|
1302
|
+
workspaceSlug?: string;
|
|
1303
|
+
artifactPath?: string;
|
|
1304
|
+
screenshotDir?: string;
|
|
1305
|
+
timeoutMs?: number;
|
|
1306
|
+
confirmDestructive?: boolean;
|
|
1307
|
+
};
|
|
1308
|
+
export type WorkspaceShellLayoutResponse = Record<string, unknown>;
|
|
1309
|
+
export interface WorkspaceShellLayoutOptions extends RealtimeXRequestOptions {
|
|
1310
|
+
params?: WorkspaceShellLayoutParams;
|
|
1311
|
+
query?: WorkspaceShellLayoutQuery;
|
|
1312
|
+
headers?: WorkspaceShellLayoutHeaders & Record<string, string>;
|
|
1313
|
+
body?: WorkspaceShellLayoutBody;
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1273
1316
|
export interface RealtimeXClientOptions {
|
|
1274
1317
|
baseUrl?: string;
|
|
1275
1318
|
appId?: string;
|
|
@@ -1436,6 +1479,9 @@ export declare class RealtimeXClient {
|
|
|
1436
1479
|
/** Send one message to an exact thread using the same routing as channel replies. Terminal-agent threads are dispatched to the terminal runtime; other threads use the configured LLM chat path. */
|
|
1437
1480
|
sendMessage(options?: SendMessageOptions): Promise<SendMessageResponse>;
|
|
1438
1481
|
sendMessage(params: SendMessageParams, body: SendMessageBody, options?: Omit<SendMessageOptions, 'params' | 'body'>): Promise<SendMessageResponse>;
|
|
1482
|
+
/** Send one message directly to an exact live terminal session. Requires local terminal-session or desktop-app authentication. */
|
|
1483
|
+
sendTerminalSessionMessage(options?: SendTerminalSessionMessageOptions): Promise<SendTerminalSessionMessageResponse>;
|
|
1484
|
+
sendTerminalSessionMessage(sessionId: string, body: SendTerminalSessionMessageBody, options?: Omit<SendTerminalSessionMessageOptions, 'params' | 'body'>): Promise<SendTerminalSessionMessageResponse>;
|
|
1439
1485
|
/** Set a workspace default agent from the desktop workspace chat settings UI. */
|
|
1440
1486
|
setDefaultWorkspaceAgent(options?: SetDefaultWorkspaceAgentOptions): Promise<SetDefaultWorkspaceAgentResponse>;
|
|
1441
1487
|
setDefaultWorkspaceAgent(body: SetDefaultWorkspaceAgentBody, options?: Omit<SetDefaultWorkspaceAgentOptions, 'body'>): Promise<SetDefaultWorkspaceAgentResponse>;
|
|
@@ -1489,6 +1535,9 @@ export declare class RealtimeXClient {
|
|
|
1489
1535
|
/** Update one chat channel by exact channel id. Only channel writable fields are changed. */
|
|
1490
1536
|
updateChannel(options?: UpdateChannelOptions): Promise<UpdateChannelResponse>;
|
|
1491
1537
|
updateChannel(channelId: string, body: UpdateChannelBody, options?: Omit<UpdateChannelOptions, 'params' | 'body'>): Promise<UpdateChannelResponse>;
|
|
1538
|
+
/** Verify workspace navigation, title-bar containment, Files dock behavior, and action contrast at desktop and compact viewports. */
|
|
1539
|
+
workspaceShellLayout(options?: WorkspaceShellLayoutOptions): Promise<WorkspaceShellLayoutResponse>;
|
|
1540
|
+
workspaceShellLayout(body: WorkspaceShellLayoutBody, options?: Omit<WorkspaceShellLayoutOptions, 'body'>): Promise<WorkspaceShellLayoutResponse>;
|
|
1492
1541
|
}
|
|
1493
1542
|
|
|
1494
1543
|
export declare function createRealtimeXClient(
|
package/index.js
CHANGED
|
@@ -563,6 +563,18 @@ const operations = {
|
|
|
563
563
|
],
|
|
564
564
|
"hasBody": true
|
|
565
565
|
},
|
|
566
|
+
"sendTerminalSessionMessage": {
|
|
567
|
+
"method": "POST",
|
|
568
|
+
"path": "/send-terminal-session-message/{sessionId}",
|
|
569
|
+
"pathParams": [
|
|
570
|
+
"sessionId"
|
|
571
|
+
],
|
|
572
|
+
"queryParams": [],
|
|
573
|
+
"headerParams": [
|
|
574
|
+
"x-app-id"
|
|
575
|
+
],
|
|
576
|
+
"hasBody": true
|
|
577
|
+
},
|
|
566
578
|
"setDefaultWorkspaceAgent": {
|
|
567
579
|
"method": "POST",
|
|
568
580
|
"path": "/set-default-workspace-agent",
|
|
@@ -759,6 +771,14 @@ const operations = {
|
|
|
759
771
|
"x-app-id"
|
|
760
772
|
],
|
|
761
773
|
"hasBody": true
|
|
774
|
+
},
|
|
775
|
+
"workspaceShellLayout": {
|
|
776
|
+
"method": "POST",
|
|
777
|
+
"path": "/workspace-shell-layout",
|
|
778
|
+
"pathParams": [],
|
|
779
|
+
"queryParams": [],
|
|
780
|
+
"headerParams": [],
|
|
781
|
+
"hasBody": true
|
|
762
782
|
}
|
|
763
783
|
};
|
|
764
784
|
|
|
@@ -1292,6 +1312,13 @@ class RealtimeXClient {
|
|
|
1292
1312
|
);
|
|
1293
1313
|
}
|
|
1294
1314
|
|
|
1315
|
+
sendTerminalSessionMessage(...args) {
|
|
1316
|
+
return this.request(
|
|
1317
|
+
"sendTerminalSessionMessage",
|
|
1318
|
+
normalizeOperationOptions(operations["sendTerminalSessionMessage"], args)
|
|
1319
|
+
);
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1295
1322
|
setDefaultWorkspaceAgent(...args) {
|
|
1296
1323
|
return this.request(
|
|
1297
1324
|
"setDefaultWorkspaceAgent",
|
|
@@ -1417,6 +1444,13 @@ class RealtimeXClient {
|
|
|
1417
1444
|
normalizeOperationOptions(operations["updateChannel"], args)
|
|
1418
1445
|
);
|
|
1419
1446
|
}
|
|
1447
|
+
|
|
1448
|
+
workspaceShellLayout(...args) {
|
|
1449
|
+
return this.request(
|
|
1450
|
+
"workspaceShellLayout",
|
|
1451
|
+
normalizeOperationOptions(operations["workspaceShellLayout"], args)
|
|
1452
|
+
);
|
|
1453
|
+
}
|
|
1420
1454
|
}
|
|
1421
1455
|
|
|
1422
1456
|
function createRealtimeXClient(options = {}) {
|
|
@@ -1429,5 +1463,5 @@ module.exports = {
|
|
|
1429
1463
|
createClient: createRealtimeXClient,
|
|
1430
1464
|
createRealtimeXClient,
|
|
1431
1465
|
operations,
|
|
1432
|
-
version: "2.0.
|
|
1466
|
+
version: "2.0.25",
|
|
1433
1467
|
};
|
package/package.json
CHANGED
|
@@ -20,15 +20,15 @@ This skill drives the `realtimex-pp-cli` binary. Verify the CLI is installed and
|
|
|
20
20
|
|
|
21
21
|
1. Install or reinstall the pinned version via npm:
|
|
22
22
|
```bash
|
|
23
|
-
npm install -g @realtimex/pp-cli@2.0.
|
|
23
|
+
npm install -g @realtimex/pp-cli@2.0.25
|
|
24
24
|
```
|
|
25
25
|
2. Verify the exact version:
|
|
26
26
|
```bash
|
|
27
27
|
realtimex-pp-cli --version
|
|
28
28
|
```
|
|
29
|
-
The output must be `realtimex-pp-cli 2.0.
|
|
29
|
+
The output must be `realtimex-pp-cli 2.0.25`.
|
|
30
30
|
|
|
31
|
-
If `--version` reports "command not found" after install, the npm global bin directory is not on `$PATH`. If it reports any version other than `2.0.
|
|
31
|
+
If `--version` reports "command not found" after install, the npm global bin directory is not on `$PATH`. If it reports any version other than `2.0.25`, reinstall with the pinned npm command above. Do not proceed with skill commands until exact-version verification succeeds.
|
|
32
32
|
|
|
33
33
|
* Always run first:
|
|
34
34
|
|
|
@@ -226,6 +226,10 @@ If `--version` reports "command not found" after install, the npm global bin dir
|
|
|
226
226
|
|
|
227
227
|
- `realtimex-pp-cli send-message <workspaceSlug> <threadSlug>` — Send one message to an exact thread using the same routing as channel replies.
|
|
228
228
|
|
|
229
|
+
**send-terminal-session-message** — Manage send terminal session message
|
|
230
|
+
|
|
231
|
+
- `realtimex-pp-cli send-terminal-session-message <sessionId>` — Send one message directly to an exact live terminal session.
|
|
232
|
+
|
|
229
233
|
**set-default-workspace-agent** — Manage set default workspace agent
|
|
230
234
|
|
|
231
235
|
- `realtimex-pp-cli set-default-workspace-agent` — Set a workspace default agent from the desktop workspace chat settings UI.
|
|
@@ -298,6 +302,10 @@ If `--version` reports "command not found" after install, the npm global bin dir
|
|
|
298
302
|
|
|
299
303
|
- `realtimex-pp-cli update-channel <channelId>` — Update one chat channel by exact channel id. Only channel writable fields are changed.
|
|
300
304
|
|
|
305
|
+
**workspace-shell-layout** — Manage workspace shell layout
|
|
306
|
+
|
|
307
|
+
- `realtimex-pp-cli workspace-shell-layout` — Verify workspace navigation, title-bar containment, Files dock behavior
|
|
308
|
+
|
|
301
309
|
|
|
302
310
|
### Finding the right command
|
|
303
311
|
|
|
@@ -424,9 +432,9 @@ Verify: `claude mcp list`
|
|
|
424
432
|
```bash
|
|
425
433
|
realtimex-pp-cli --version
|
|
426
434
|
```
|
|
427
|
-
If the command is missing or the output is not exactly `realtimex-pp-cli 2.0.
|
|
435
|
+
If the command is missing or the output is not exactly `realtimex-pp-cli 2.0.25`, reinstall the pinned version:
|
|
428
436
|
```bash
|
|
429
|
-
npm install -g @realtimex/pp-cli@2.0.
|
|
437
|
+
npm install -g @realtimex/pp-cli@2.0.25
|
|
430
438
|
```
|
|
431
439
|
Then run `realtimex-pp-cli --version` again and proceed only after exact-version verification succeeds.
|
|
432
440
|
2. Match the user query to the best command from the Unique Capabilities and Command Reference above.
|