@realtimex/sdk 1.7.7 → 1.7.8
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/{chunk-EMMHP4JM.mjs → chunk-3DVGTGOK.mjs} +65 -73
- package/dist/{errors-kN70vQrd.d.mts → errors-BmVxnpJS.d.mts} +47 -52
- package/dist/{errors-kN70vQrd.d.ts → errors-BmVxnpJS.d.ts} +47 -52
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +64 -72
- package/dist/index.mjs +1 -1
- package/dist/v1/index.d.mts +2 -2
- package/dist/v1/index.d.ts +2 -2
- package/dist/v1/index.js +66 -74
- package/dist/v1/index.mjs +3 -3
- package/package.json +1 -1
- package/skills/realtimex-moderator-sdk/SKILL.md +3 -3
- package/skills/realtimex-moderator-sdk/references/api-reference.md +33 -33
- package/skills/realtimex-moderator-sdk/references/known-issues.md +1 -1
|
@@ -487,77 +487,6 @@ var V1SystemModule = class {
|
|
|
487
487
|
}
|
|
488
488
|
};
|
|
489
489
|
|
|
490
|
-
// src/v1/modules/v1RuntimeSessions.ts
|
|
491
|
-
var V1RuntimeSessionsModule = class {
|
|
492
|
-
constructor(client) {
|
|
493
|
-
this.client = client;
|
|
494
|
-
}
|
|
495
|
-
/**
|
|
496
|
-
* Resolve the desktop shell launch working directory for a workspace or thread context.
|
|
497
|
-
* @see POST /v1/runtime-sessions/desktop-shell/launch-spec
|
|
498
|
-
*/
|
|
499
|
-
async desktopShellLaunchSpec(body) {
|
|
500
|
-
return this.client.request("POST", `/v1/runtime-sessions/desktop-shell/launch-spec`, body);
|
|
501
|
-
}
|
|
502
|
-
/**
|
|
503
|
-
* Evaluate the runtime terminal permission policy for a pending CLI action.
|
|
504
|
-
* @see POST /v1/runtime-sessions/terminal-permissions/evaluate
|
|
505
|
-
*/
|
|
506
|
-
async terminalPermissionsEvaluate(body) {
|
|
507
|
-
return this.client.request("POST", `/v1/runtime-sessions/terminal-permissions/evaluate`, body);
|
|
508
|
-
}
|
|
509
|
-
/**
|
|
510
|
-
* Resolve the CLI agent terminal launch command and working directory.
|
|
511
|
-
* @see POST /v1/runtime-sessions/cli-agent/launch-spec
|
|
512
|
-
*/
|
|
513
|
-
async cliAgentLaunchSpec(body) {
|
|
514
|
-
return this.client.request("POST", `/v1/runtime-sessions/cli-agent/launch-spec`, body);
|
|
515
|
-
}
|
|
516
|
-
/**
|
|
517
|
-
* Create a persistent ACP-backed CLI agent runtime session.
|
|
518
|
-
* @see POST /v1/runtime-sessions/cli-agent
|
|
519
|
-
*/
|
|
520
|
-
async cliAgent(body) {
|
|
521
|
-
return this.client.request("POST", `/v1/runtime-sessions/cli-agent`, body);
|
|
522
|
-
}
|
|
523
|
-
/**
|
|
524
|
-
* Stream a chat turn to an existing CLI agent runtime session using Server-Sent Events.
|
|
525
|
-
* @see POST /v1/runtime-sessions/cli-agent/{sessionKey}/chat/stream
|
|
526
|
-
*/
|
|
527
|
-
// @streaming-stub — implement SSE parsing in overrides/v1RuntimeSessionsStreaming.ts
|
|
528
|
-
async cliAgentChatStream(sessionKey, body) {
|
|
529
|
-
return this.client.requestRaw("POST", `/v1/runtime-sessions/cli-agent/${sessionKey}/chat/stream`, body);
|
|
530
|
-
}
|
|
531
|
-
/**
|
|
532
|
-
* Resolve a pending permission request for a CLI agent runtime session.
|
|
533
|
-
* @see POST /v1/runtime-sessions/cli-agent/{sessionKey}/permission
|
|
534
|
-
*/
|
|
535
|
-
async cliAgentPermission(sessionKey, body) {
|
|
536
|
-
return this.client.request("POST", `/v1/runtime-sessions/cli-agent/${sessionKey}/permission`, body);
|
|
537
|
-
}
|
|
538
|
-
/**
|
|
539
|
-
* Cancel the current CLI turn for an active runtime session.
|
|
540
|
-
* @see POST /v1/runtime-sessions/cli-agent/{sessionKey}/cancel
|
|
541
|
-
*/
|
|
542
|
-
async cliAgentCancel(sessionKey, body) {
|
|
543
|
-
return this.client.request("POST", `/v1/runtime-sessions/cli-agent/${sessionKey}/cancel`, body);
|
|
544
|
-
}
|
|
545
|
-
/**
|
|
546
|
-
* Close a CLI agent runtime session and clear its control-plane metadata.
|
|
547
|
-
* @see DELETE /v1/runtime-sessions/cli-agent/{sessionKey}
|
|
548
|
-
*/
|
|
549
|
-
async deleteCliAgent(sessionKey) {
|
|
550
|
-
return this.client.request("DELETE", `/v1/runtime-sessions/cli-agent/${sessionKey}`);
|
|
551
|
-
}
|
|
552
|
-
/**
|
|
553
|
-
* Fetch the current state and runtime options for a CLI agent session.
|
|
554
|
-
* @see GET /v1/runtime-sessions/cli-agent/{sessionKey}
|
|
555
|
-
*/
|
|
556
|
-
async getCliAgent(sessionKey) {
|
|
557
|
-
return this.client.request("GET", `/v1/runtime-sessions/cli-agent/${sessionKey}`);
|
|
558
|
-
}
|
|
559
|
-
};
|
|
560
|
-
|
|
561
490
|
// src/v1/modules/v1Thread.ts
|
|
562
491
|
var V1ThreadModule = class {
|
|
563
492
|
constructor(client) {
|
|
@@ -713,6 +642,69 @@ var V1EmbedModule = class {
|
|
|
713
642
|
}
|
|
714
643
|
};
|
|
715
644
|
|
|
645
|
+
// src/v1/modules/v1DesktopRuntimeSessions.ts
|
|
646
|
+
var V1DesktopRuntimeSessionsModule = class {
|
|
647
|
+
constructor(client) {
|
|
648
|
+
this.client = client;
|
|
649
|
+
}
|
|
650
|
+
/**
|
|
651
|
+
* Open the shared terminal launcher in the Electron desktop app.
|
|
652
|
+
* @see POST /sdk/desktop/runtime-sessions/open-launcher
|
|
653
|
+
*/
|
|
654
|
+
async openLauncher(body) {
|
|
655
|
+
return this.client.request("POST", `/sdk/desktop/runtime-sessions/open-launcher`, body);
|
|
656
|
+
}
|
|
657
|
+
/**
|
|
658
|
+
* Launch a local PTY-backed shell terminal in the Electron desktop app.
|
|
659
|
+
* @see POST /sdk/desktop/runtime-sessions/launch-terminal-shell
|
|
660
|
+
*/
|
|
661
|
+
async launchTerminalShell(body) {
|
|
662
|
+
return this.client.request("POST", `/sdk/desktop/runtime-sessions/launch-terminal-shell`, body);
|
|
663
|
+
}
|
|
664
|
+
/**
|
|
665
|
+
* Launch a local PTY-backed CLI agent terminal in the Electron desktop app.
|
|
666
|
+
* @see POST /sdk/desktop/runtime-sessions/launch-terminal-cli-agent
|
|
667
|
+
*/
|
|
668
|
+
async launchTerminalCliAgent(body) {
|
|
669
|
+
return this.client.request("POST", `/sdk/desktop/runtime-sessions/launch-terminal-cli-agent`, body);
|
|
670
|
+
}
|
|
671
|
+
/**
|
|
672
|
+
* List desktop PTY-backed runtime sessions currently known to the Electron app.
|
|
673
|
+
* @see GET /sdk/desktop/runtime-sessions
|
|
674
|
+
*/
|
|
675
|
+
async listRuntimeSessions() {
|
|
676
|
+
return this.client.request("GET", `/sdk/desktop/runtime-sessions`);
|
|
677
|
+
}
|
|
678
|
+
/**
|
|
679
|
+
* Fetch one desktop PTY-backed runtime session by runtime session ID or PTY session ID.
|
|
680
|
+
* @see GET /sdk/desktop/runtime-sessions/{sessionId}
|
|
681
|
+
*/
|
|
682
|
+
async getRuntimeSession(sessionId) {
|
|
683
|
+
return this.client.request("GET", `/sdk/desktop/runtime-sessions/${sessionId}`);
|
|
684
|
+
}
|
|
685
|
+
/**
|
|
686
|
+
* Close an existing desktop runtime session.
|
|
687
|
+
* @see DELETE /sdk/desktop/runtime-sessions/{sessionId}
|
|
688
|
+
*/
|
|
689
|
+
async deleteRuntimeSession(sessionId) {
|
|
690
|
+
return this.client.request("DELETE", `/sdk/desktop/runtime-sessions/${sessionId}`);
|
|
691
|
+
}
|
|
692
|
+
/**
|
|
693
|
+
* Write input to an existing desktop runtime session. Use `message` to submit a CLI turn or `input` for raw PTY data.
|
|
694
|
+
* @see POST /sdk/desktop/runtime-sessions/{sessionId}/write
|
|
695
|
+
*/
|
|
696
|
+
async write(sessionId, body) {
|
|
697
|
+
return this.client.request("POST", `/sdk/desktop/runtime-sessions/${sessionId}/write`, body);
|
|
698
|
+
}
|
|
699
|
+
/**
|
|
700
|
+
* Approve or deny a pending desktop runtime session action.
|
|
701
|
+
* @see POST /sdk/desktop/runtime-sessions/{sessionId}/permission
|
|
702
|
+
*/
|
|
703
|
+
async permission(sessionId, body) {
|
|
704
|
+
return this.client.request("POST", `/sdk/desktop/runtime-sessions/${sessionId}/permission`, body);
|
|
705
|
+
}
|
|
706
|
+
};
|
|
707
|
+
|
|
716
708
|
// src/v1/namespace.ts
|
|
717
709
|
var V1ApiNamespace = class {
|
|
718
710
|
// [GENERATED-PROPS-END]
|
|
@@ -723,11 +715,11 @@ var V1ApiNamespace = class {
|
|
|
723
715
|
this.document = new V1DocumentModule(this._client);
|
|
724
716
|
this.workspace = new V1WorkspaceModule(this._client);
|
|
725
717
|
this.system = new V1SystemModule(this._client);
|
|
726
|
-
this.runtimeSessions = new V1RuntimeSessionsModule(this._client);
|
|
727
718
|
this.thread = new V1ThreadModule(this._client);
|
|
728
719
|
this.users = new V1UsersModule(this._client);
|
|
729
720
|
this.openai = new V1OpenAIModule(this._client);
|
|
730
721
|
this.embed = new V1EmbedModule(this._client);
|
|
722
|
+
this.desktopRuntimeSessions = new V1DesktopRuntimeSessionsModule(this._client);
|
|
731
723
|
}
|
|
732
724
|
};
|
|
733
725
|
|
|
@@ -743,10 +735,10 @@ export {
|
|
|
743
735
|
V1DocumentModule,
|
|
744
736
|
V1WorkspaceModule,
|
|
745
737
|
V1SystemModule,
|
|
746
|
-
V1RuntimeSessionsModule,
|
|
747
738
|
V1ThreadModule,
|
|
748
739
|
V1UsersModule,
|
|
749
740
|
V1OpenAIModule,
|
|
750
741
|
V1EmbedModule,
|
|
742
|
+
V1DesktopRuntimeSessionsModule,
|
|
751
743
|
V1ApiNamespace
|
|
752
744
|
};
|
|
@@ -295,56 +295,6 @@ declare class V1SystemModule {
|
|
|
295
295
|
getHealthVersion3(): Promise<unknown>;
|
|
296
296
|
}
|
|
297
297
|
|
|
298
|
-
declare class V1RuntimeSessionsModule {
|
|
299
|
-
private readonly client;
|
|
300
|
-
constructor(client: DeveloperApiClient);
|
|
301
|
-
/**
|
|
302
|
-
* Resolve the desktop shell launch working directory for a workspace or thread context.
|
|
303
|
-
* @see POST /v1/runtime-sessions/desktop-shell/launch-spec
|
|
304
|
-
*/
|
|
305
|
-
desktopShellLaunchSpec(body?: Record<string, unknown>): Promise<unknown>;
|
|
306
|
-
/**
|
|
307
|
-
* Evaluate the runtime terminal permission policy for a pending CLI action.
|
|
308
|
-
* @see POST /v1/runtime-sessions/terminal-permissions/evaluate
|
|
309
|
-
*/
|
|
310
|
-
terminalPermissionsEvaluate(body?: Record<string, unknown>): Promise<unknown>;
|
|
311
|
-
/**
|
|
312
|
-
* Resolve the CLI agent terminal launch command and working directory.
|
|
313
|
-
* @see POST /v1/runtime-sessions/cli-agent/launch-spec
|
|
314
|
-
*/
|
|
315
|
-
cliAgentLaunchSpec(body?: Record<string, unknown>): Promise<unknown>;
|
|
316
|
-
/**
|
|
317
|
-
* Create a persistent ACP-backed CLI agent runtime session.
|
|
318
|
-
* @see POST /v1/runtime-sessions/cli-agent
|
|
319
|
-
*/
|
|
320
|
-
cliAgent(body?: Record<string, unknown>): Promise<unknown>;
|
|
321
|
-
/**
|
|
322
|
-
* Stream a chat turn to an existing CLI agent runtime session using Server-Sent Events.
|
|
323
|
-
* @see POST /v1/runtime-sessions/cli-agent/{sessionKey}/chat/stream
|
|
324
|
-
*/
|
|
325
|
-
cliAgentChatStream(sessionKey: string, body?: Record<string, unknown>): Promise<Response>;
|
|
326
|
-
/**
|
|
327
|
-
* Resolve a pending permission request for a CLI agent runtime session.
|
|
328
|
-
* @see POST /v1/runtime-sessions/cli-agent/{sessionKey}/permission
|
|
329
|
-
*/
|
|
330
|
-
cliAgentPermission(sessionKey: string, body?: Record<string, unknown>): Promise<unknown>;
|
|
331
|
-
/**
|
|
332
|
-
* Cancel the current CLI turn for an active runtime session.
|
|
333
|
-
* @see POST /v1/runtime-sessions/cli-agent/{sessionKey}/cancel
|
|
334
|
-
*/
|
|
335
|
-
cliAgentCancel(sessionKey: string, body?: Record<string, unknown>): Promise<unknown>;
|
|
336
|
-
/**
|
|
337
|
-
* Close a CLI agent runtime session and clear its control-plane metadata.
|
|
338
|
-
* @see DELETE /v1/runtime-sessions/cli-agent/{sessionKey}
|
|
339
|
-
*/
|
|
340
|
-
deleteCliAgent(sessionKey: string): Promise<unknown>;
|
|
341
|
-
/**
|
|
342
|
-
* Fetch the current state and runtime options for a CLI agent session.
|
|
343
|
-
* @see GET /v1/runtime-sessions/cli-agent/{sessionKey}
|
|
344
|
-
*/
|
|
345
|
-
getCliAgent(sessionKey: string): Promise<unknown>;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
298
|
declare class V1ThreadModule {
|
|
349
299
|
private readonly client;
|
|
350
300
|
constructor(client: DeveloperApiClient);
|
|
@@ -455,6 +405,51 @@ declare class V1EmbedModule {
|
|
|
455
405
|
deleteEmbed(embedUuid: string): Promise<unknown>;
|
|
456
406
|
}
|
|
457
407
|
|
|
408
|
+
declare class V1DesktopRuntimeSessionsModule {
|
|
409
|
+
private readonly client;
|
|
410
|
+
constructor(client: DeveloperApiClient);
|
|
411
|
+
/**
|
|
412
|
+
* Open the shared terminal launcher in the Electron desktop app.
|
|
413
|
+
* @see POST /sdk/desktop/runtime-sessions/open-launcher
|
|
414
|
+
*/
|
|
415
|
+
openLauncher(body?: Record<string, unknown>): Promise<unknown>;
|
|
416
|
+
/**
|
|
417
|
+
* Launch a local PTY-backed shell terminal in the Electron desktop app.
|
|
418
|
+
* @see POST /sdk/desktop/runtime-sessions/launch-terminal-shell
|
|
419
|
+
*/
|
|
420
|
+
launchTerminalShell(body?: Record<string, unknown>): Promise<unknown>;
|
|
421
|
+
/**
|
|
422
|
+
* Launch a local PTY-backed CLI agent terminal in the Electron desktop app.
|
|
423
|
+
* @see POST /sdk/desktop/runtime-sessions/launch-terminal-cli-agent
|
|
424
|
+
*/
|
|
425
|
+
launchTerminalCliAgent(body?: Record<string, unknown>): Promise<unknown>;
|
|
426
|
+
/**
|
|
427
|
+
* List desktop PTY-backed runtime sessions currently known to the Electron app.
|
|
428
|
+
* @see GET /sdk/desktop/runtime-sessions
|
|
429
|
+
*/
|
|
430
|
+
listRuntimeSessions(): Promise<unknown>;
|
|
431
|
+
/**
|
|
432
|
+
* Fetch one desktop PTY-backed runtime session by runtime session ID or PTY session ID.
|
|
433
|
+
* @see GET /sdk/desktop/runtime-sessions/{sessionId}
|
|
434
|
+
*/
|
|
435
|
+
getRuntimeSession(sessionId: string): Promise<unknown>;
|
|
436
|
+
/**
|
|
437
|
+
* Close an existing desktop runtime session.
|
|
438
|
+
* @see DELETE /sdk/desktop/runtime-sessions/{sessionId}
|
|
439
|
+
*/
|
|
440
|
+
deleteRuntimeSession(sessionId: string): Promise<unknown>;
|
|
441
|
+
/**
|
|
442
|
+
* Write input to an existing desktop runtime session. Use `message` to submit a CLI turn or `input` for raw PTY data.
|
|
443
|
+
* @see POST /sdk/desktop/runtime-sessions/{sessionId}/write
|
|
444
|
+
*/
|
|
445
|
+
write(sessionId: string, body?: Record<string, unknown>): Promise<unknown>;
|
|
446
|
+
/**
|
|
447
|
+
* Approve or deny a pending desktop runtime session action.
|
|
448
|
+
* @see POST /sdk/desktop/runtime-sessions/{sessionId}/permission
|
|
449
|
+
*/
|
|
450
|
+
permission(sessionId: string, body?: Record<string, unknown>): Promise<unknown>;
|
|
451
|
+
}
|
|
452
|
+
|
|
458
453
|
/**
|
|
459
454
|
* V1ApiNamespace - Container for all RealtimeX Developer API (v1) modules.
|
|
460
455
|
*
|
|
@@ -474,11 +469,11 @@ declare class V1ApiNamespace {
|
|
|
474
469
|
document: V1DocumentModule;
|
|
475
470
|
workspace: V1WorkspaceModule;
|
|
476
471
|
system: V1SystemModule;
|
|
477
|
-
runtimeSessions: V1RuntimeSessionsModule;
|
|
478
472
|
thread: V1ThreadModule;
|
|
479
473
|
users: V1UsersModule;
|
|
480
474
|
openai: V1OpenAIModule;
|
|
481
475
|
embed: V1EmbedModule;
|
|
476
|
+
desktopRuntimeSessions: V1DesktopRuntimeSessionsModule;
|
|
482
477
|
constructor(baseUrl: string, apiKey: string, appId?: string);
|
|
483
478
|
}
|
|
484
479
|
|
|
@@ -503,4 +498,4 @@ declare class ServerError extends DeveloperApiError {
|
|
|
503
498
|
constructor(message?: string);
|
|
504
499
|
}
|
|
505
500
|
|
|
506
|
-
export { AuthenticationError as A, DeveloperApiClient as D, NotFoundError as N, ServerError as S, V1ApiNamespace as V, DeveloperApiError as a, ValidationError as b, V1AuthModule as c, V1AdminModule as d, V1DocumentModule as e, V1WorkspaceModule as f, V1SystemModule as g,
|
|
501
|
+
export { AuthenticationError as A, DeveloperApiClient as D, NotFoundError as N, ServerError as S, V1ApiNamespace as V, DeveloperApiError as a, ValidationError as b, V1AuthModule as c, V1AdminModule as d, V1DocumentModule as e, V1WorkspaceModule as f, V1SystemModule as g, V1ThreadModule as h, V1UsersModule as i, V1OpenAIModule as j, V1EmbedModule as k, V1DesktopRuntimeSessionsModule as l };
|
|
@@ -295,56 +295,6 @@ declare class V1SystemModule {
|
|
|
295
295
|
getHealthVersion3(): Promise<unknown>;
|
|
296
296
|
}
|
|
297
297
|
|
|
298
|
-
declare class V1RuntimeSessionsModule {
|
|
299
|
-
private readonly client;
|
|
300
|
-
constructor(client: DeveloperApiClient);
|
|
301
|
-
/**
|
|
302
|
-
* Resolve the desktop shell launch working directory for a workspace or thread context.
|
|
303
|
-
* @see POST /v1/runtime-sessions/desktop-shell/launch-spec
|
|
304
|
-
*/
|
|
305
|
-
desktopShellLaunchSpec(body?: Record<string, unknown>): Promise<unknown>;
|
|
306
|
-
/**
|
|
307
|
-
* Evaluate the runtime terminal permission policy for a pending CLI action.
|
|
308
|
-
* @see POST /v1/runtime-sessions/terminal-permissions/evaluate
|
|
309
|
-
*/
|
|
310
|
-
terminalPermissionsEvaluate(body?: Record<string, unknown>): Promise<unknown>;
|
|
311
|
-
/**
|
|
312
|
-
* Resolve the CLI agent terminal launch command and working directory.
|
|
313
|
-
* @see POST /v1/runtime-sessions/cli-agent/launch-spec
|
|
314
|
-
*/
|
|
315
|
-
cliAgentLaunchSpec(body?: Record<string, unknown>): Promise<unknown>;
|
|
316
|
-
/**
|
|
317
|
-
* Create a persistent ACP-backed CLI agent runtime session.
|
|
318
|
-
* @see POST /v1/runtime-sessions/cli-agent
|
|
319
|
-
*/
|
|
320
|
-
cliAgent(body?: Record<string, unknown>): Promise<unknown>;
|
|
321
|
-
/**
|
|
322
|
-
* Stream a chat turn to an existing CLI agent runtime session using Server-Sent Events.
|
|
323
|
-
* @see POST /v1/runtime-sessions/cli-agent/{sessionKey}/chat/stream
|
|
324
|
-
*/
|
|
325
|
-
cliAgentChatStream(sessionKey: string, body?: Record<string, unknown>): Promise<Response>;
|
|
326
|
-
/**
|
|
327
|
-
* Resolve a pending permission request for a CLI agent runtime session.
|
|
328
|
-
* @see POST /v1/runtime-sessions/cli-agent/{sessionKey}/permission
|
|
329
|
-
*/
|
|
330
|
-
cliAgentPermission(sessionKey: string, body?: Record<string, unknown>): Promise<unknown>;
|
|
331
|
-
/**
|
|
332
|
-
* Cancel the current CLI turn for an active runtime session.
|
|
333
|
-
* @see POST /v1/runtime-sessions/cli-agent/{sessionKey}/cancel
|
|
334
|
-
*/
|
|
335
|
-
cliAgentCancel(sessionKey: string, body?: Record<string, unknown>): Promise<unknown>;
|
|
336
|
-
/**
|
|
337
|
-
* Close a CLI agent runtime session and clear its control-plane metadata.
|
|
338
|
-
* @see DELETE /v1/runtime-sessions/cli-agent/{sessionKey}
|
|
339
|
-
*/
|
|
340
|
-
deleteCliAgent(sessionKey: string): Promise<unknown>;
|
|
341
|
-
/**
|
|
342
|
-
* Fetch the current state and runtime options for a CLI agent session.
|
|
343
|
-
* @see GET /v1/runtime-sessions/cli-agent/{sessionKey}
|
|
344
|
-
*/
|
|
345
|
-
getCliAgent(sessionKey: string): Promise<unknown>;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
298
|
declare class V1ThreadModule {
|
|
349
299
|
private readonly client;
|
|
350
300
|
constructor(client: DeveloperApiClient);
|
|
@@ -455,6 +405,51 @@ declare class V1EmbedModule {
|
|
|
455
405
|
deleteEmbed(embedUuid: string): Promise<unknown>;
|
|
456
406
|
}
|
|
457
407
|
|
|
408
|
+
declare class V1DesktopRuntimeSessionsModule {
|
|
409
|
+
private readonly client;
|
|
410
|
+
constructor(client: DeveloperApiClient);
|
|
411
|
+
/**
|
|
412
|
+
* Open the shared terminal launcher in the Electron desktop app.
|
|
413
|
+
* @see POST /sdk/desktop/runtime-sessions/open-launcher
|
|
414
|
+
*/
|
|
415
|
+
openLauncher(body?: Record<string, unknown>): Promise<unknown>;
|
|
416
|
+
/**
|
|
417
|
+
* Launch a local PTY-backed shell terminal in the Electron desktop app.
|
|
418
|
+
* @see POST /sdk/desktop/runtime-sessions/launch-terminal-shell
|
|
419
|
+
*/
|
|
420
|
+
launchTerminalShell(body?: Record<string, unknown>): Promise<unknown>;
|
|
421
|
+
/**
|
|
422
|
+
* Launch a local PTY-backed CLI agent terminal in the Electron desktop app.
|
|
423
|
+
* @see POST /sdk/desktop/runtime-sessions/launch-terminal-cli-agent
|
|
424
|
+
*/
|
|
425
|
+
launchTerminalCliAgent(body?: Record<string, unknown>): Promise<unknown>;
|
|
426
|
+
/**
|
|
427
|
+
* List desktop PTY-backed runtime sessions currently known to the Electron app.
|
|
428
|
+
* @see GET /sdk/desktop/runtime-sessions
|
|
429
|
+
*/
|
|
430
|
+
listRuntimeSessions(): Promise<unknown>;
|
|
431
|
+
/**
|
|
432
|
+
* Fetch one desktop PTY-backed runtime session by runtime session ID or PTY session ID.
|
|
433
|
+
* @see GET /sdk/desktop/runtime-sessions/{sessionId}
|
|
434
|
+
*/
|
|
435
|
+
getRuntimeSession(sessionId: string): Promise<unknown>;
|
|
436
|
+
/**
|
|
437
|
+
* Close an existing desktop runtime session.
|
|
438
|
+
* @see DELETE /sdk/desktop/runtime-sessions/{sessionId}
|
|
439
|
+
*/
|
|
440
|
+
deleteRuntimeSession(sessionId: string): Promise<unknown>;
|
|
441
|
+
/**
|
|
442
|
+
* Write input to an existing desktop runtime session. Use `message` to submit a CLI turn or `input` for raw PTY data.
|
|
443
|
+
* @see POST /sdk/desktop/runtime-sessions/{sessionId}/write
|
|
444
|
+
*/
|
|
445
|
+
write(sessionId: string, body?: Record<string, unknown>): Promise<unknown>;
|
|
446
|
+
/**
|
|
447
|
+
* Approve or deny a pending desktop runtime session action.
|
|
448
|
+
* @see POST /sdk/desktop/runtime-sessions/{sessionId}/permission
|
|
449
|
+
*/
|
|
450
|
+
permission(sessionId: string, body?: Record<string, unknown>): Promise<unknown>;
|
|
451
|
+
}
|
|
452
|
+
|
|
458
453
|
/**
|
|
459
454
|
* V1ApiNamespace - Container for all RealtimeX Developer API (v1) modules.
|
|
460
455
|
*
|
|
@@ -474,11 +469,11 @@ declare class V1ApiNamespace {
|
|
|
474
469
|
document: V1DocumentModule;
|
|
475
470
|
workspace: V1WorkspaceModule;
|
|
476
471
|
system: V1SystemModule;
|
|
477
|
-
runtimeSessions: V1RuntimeSessionsModule;
|
|
478
472
|
thread: V1ThreadModule;
|
|
479
473
|
users: V1UsersModule;
|
|
480
474
|
openai: V1OpenAIModule;
|
|
481
475
|
embed: V1EmbedModule;
|
|
476
|
+
desktopRuntimeSessions: V1DesktopRuntimeSessionsModule;
|
|
482
477
|
constructor(baseUrl: string, apiKey: string, appId?: string);
|
|
483
478
|
}
|
|
484
479
|
|
|
@@ -503,4 +498,4 @@ declare class ServerError extends DeveloperApiError {
|
|
|
503
498
|
constructor(message?: string);
|
|
504
499
|
}
|
|
505
500
|
|
|
506
|
-
export { AuthenticationError as A, DeveloperApiClient as D, NotFoundError as N, ServerError as S, V1ApiNamespace as V, DeveloperApiError as a, ValidationError as b, V1AuthModule as c, V1AdminModule as d, V1DocumentModule as e, V1WorkspaceModule as f, V1SystemModule as g,
|
|
501
|
+
export { AuthenticationError as A, DeveloperApiClient as D, NotFoundError as N, ServerError as S, V1ApiNamespace as V, DeveloperApiError as a, ValidationError as b, V1AuthModule as c, V1AdminModule as d, V1DocumentModule as e, V1WorkspaceModule as f, V1SystemModule as g, V1ThreadModule as h, V1UsersModule as i, V1OpenAIModule as j, V1EmbedModule as k, V1DesktopRuntimeSessionsModule as l };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as V1ApiNamespace } from './errors-
|
|
2
|
-
export { A as AuthenticationError, D as DeveloperApiClient, a as DeveloperApiError, N as NotFoundError, S as ServerError, b as ValidationError } from './errors-
|
|
1
|
+
import { V as V1ApiNamespace } from './errors-BmVxnpJS.mjs';
|
|
2
|
+
export { A as AuthenticationError, D as DeveloperApiClient, a as DeveloperApiError, N as NotFoundError, S as ServerError, b as ValidationError } from './errors-BmVxnpJS.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* RealtimeX Local App SDK - Types
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as V1ApiNamespace } from './errors-
|
|
2
|
-
export { A as AuthenticationError, D as DeveloperApiClient, a as DeveloperApiError, N as NotFoundError, S as ServerError, b as ValidationError } from './errors-
|
|
1
|
+
import { V as V1ApiNamespace } from './errors-BmVxnpJS.js';
|
|
2
|
+
export { A as AuthenticationError, D as DeveloperApiClient, a as DeveloperApiError, N as NotFoundError, S as ServerError, b as ValidationError } from './errors-BmVxnpJS.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* RealtimeX Local App SDK - Types
|
package/dist/index.js
CHANGED
|
@@ -3532,77 +3532,6 @@ var V1SystemModule = class {
|
|
|
3532
3532
|
}
|
|
3533
3533
|
};
|
|
3534
3534
|
|
|
3535
|
-
// src/v1/modules/v1RuntimeSessions.ts
|
|
3536
|
-
var V1RuntimeSessionsModule = class {
|
|
3537
|
-
constructor(client) {
|
|
3538
|
-
this.client = client;
|
|
3539
|
-
}
|
|
3540
|
-
/**
|
|
3541
|
-
* Resolve the desktop shell launch working directory for a workspace or thread context.
|
|
3542
|
-
* @see POST /v1/runtime-sessions/desktop-shell/launch-spec
|
|
3543
|
-
*/
|
|
3544
|
-
async desktopShellLaunchSpec(body) {
|
|
3545
|
-
return this.client.request("POST", `/v1/runtime-sessions/desktop-shell/launch-spec`, body);
|
|
3546
|
-
}
|
|
3547
|
-
/**
|
|
3548
|
-
* Evaluate the runtime terminal permission policy for a pending CLI action.
|
|
3549
|
-
* @see POST /v1/runtime-sessions/terminal-permissions/evaluate
|
|
3550
|
-
*/
|
|
3551
|
-
async terminalPermissionsEvaluate(body) {
|
|
3552
|
-
return this.client.request("POST", `/v1/runtime-sessions/terminal-permissions/evaluate`, body);
|
|
3553
|
-
}
|
|
3554
|
-
/**
|
|
3555
|
-
* Resolve the CLI agent terminal launch command and working directory.
|
|
3556
|
-
* @see POST /v1/runtime-sessions/cli-agent/launch-spec
|
|
3557
|
-
*/
|
|
3558
|
-
async cliAgentLaunchSpec(body) {
|
|
3559
|
-
return this.client.request("POST", `/v1/runtime-sessions/cli-agent/launch-spec`, body);
|
|
3560
|
-
}
|
|
3561
|
-
/**
|
|
3562
|
-
* Create a persistent ACP-backed CLI agent runtime session.
|
|
3563
|
-
* @see POST /v1/runtime-sessions/cli-agent
|
|
3564
|
-
*/
|
|
3565
|
-
async cliAgent(body) {
|
|
3566
|
-
return this.client.request("POST", `/v1/runtime-sessions/cli-agent`, body);
|
|
3567
|
-
}
|
|
3568
|
-
/**
|
|
3569
|
-
* Stream a chat turn to an existing CLI agent runtime session using Server-Sent Events.
|
|
3570
|
-
* @see POST /v1/runtime-sessions/cli-agent/{sessionKey}/chat/stream
|
|
3571
|
-
*/
|
|
3572
|
-
// @streaming-stub — implement SSE parsing in overrides/v1RuntimeSessionsStreaming.ts
|
|
3573
|
-
async cliAgentChatStream(sessionKey, body) {
|
|
3574
|
-
return this.client.requestRaw("POST", `/v1/runtime-sessions/cli-agent/${sessionKey}/chat/stream`, body);
|
|
3575
|
-
}
|
|
3576
|
-
/**
|
|
3577
|
-
* Resolve a pending permission request for a CLI agent runtime session.
|
|
3578
|
-
* @see POST /v1/runtime-sessions/cli-agent/{sessionKey}/permission
|
|
3579
|
-
*/
|
|
3580
|
-
async cliAgentPermission(sessionKey, body) {
|
|
3581
|
-
return this.client.request("POST", `/v1/runtime-sessions/cli-agent/${sessionKey}/permission`, body);
|
|
3582
|
-
}
|
|
3583
|
-
/**
|
|
3584
|
-
* Cancel the current CLI turn for an active runtime session.
|
|
3585
|
-
* @see POST /v1/runtime-sessions/cli-agent/{sessionKey}/cancel
|
|
3586
|
-
*/
|
|
3587
|
-
async cliAgentCancel(sessionKey, body) {
|
|
3588
|
-
return this.client.request("POST", `/v1/runtime-sessions/cli-agent/${sessionKey}/cancel`, body);
|
|
3589
|
-
}
|
|
3590
|
-
/**
|
|
3591
|
-
* Close a CLI agent runtime session and clear its control-plane metadata.
|
|
3592
|
-
* @see DELETE /v1/runtime-sessions/cli-agent/{sessionKey}
|
|
3593
|
-
*/
|
|
3594
|
-
async deleteCliAgent(sessionKey) {
|
|
3595
|
-
return this.client.request("DELETE", `/v1/runtime-sessions/cli-agent/${sessionKey}`);
|
|
3596
|
-
}
|
|
3597
|
-
/**
|
|
3598
|
-
* Fetch the current state and runtime options for a CLI agent session.
|
|
3599
|
-
* @see GET /v1/runtime-sessions/cli-agent/{sessionKey}
|
|
3600
|
-
*/
|
|
3601
|
-
async getCliAgent(sessionKey) {
|
|
3602
|
-
return this.client.request("GET", `/v1/runtime-sessions/cli-agent/${sessionKey}`);
|
|
3603
|
-
}
|
|
3604
|
-
};
|
|
3605
|
-
|
|
3606
3535
|
// src/v1/modules/v1Thread.ts
|
|
3607
3536
|
var V1ThreadModule = class {
|
|
3608
3537
|
constructor(client) {
|
|
@@ -3758,6 +3687,69 @@ var V1EmbedModule = class {
|
|
|
3758
3687
|
}
|
|
3759
3688
|
};
|
|
3760
3689
|
|
|
3690
|
+
// src/v1/modules/v1DesktopRuntimeSessions.ts
|
|
3691
|
+
var V1DesktopRuntimeSessionsModule = class {
|
|
3692
|
+
constructor(client) {
|
|
3693
|
+
this.client = client;
|
|
3694
|
+
}
|
|
3695
|
+
/**
|
|
3696
|
+
* Open the shared terminal launcher in the Electron desktop app.
|
|
3697
|
+
* @see POST /sdk/desktop/runtime-sessions/open-launcher
|
|
3698
|
+
*/
|
|
3699
|
+
async openLauncher(body) {
|
|
3700
|
+
return this.client.request("POST", `/sdk/desktop/runtime-sessions/open-launcher`, body);
|
|
3701
|
+
}
|
|
3702
|
+
/**
|
|
3703
|
+
* Launch a local PTY-backed shell terminal in the Electron desktop app.
|
|
3704
|
+
* @see POST /sdk/desktop/runtime-sessions/launch-terminal-shell
|
|
3705
|
+
*/
|
|
3706
|
+
async launchTerminalShell(body) {
|
|
3707
|
+
return this.client.request("POST", `/sdk/desktop/runtime-sessions/launch-terminal-shell`, body);
|
|
3708
|
+
}
|
|
3709
|
+
/**
|
|
3710
|
+
* Launch a local PTY-backed CLI agent terminal in the Electron desktop app.
|
|
3711
|
+
* @see POST /sdk/desktop/runtime-sessions/launch-terminal-cli-agent
|
|
3712
|
+
*/
|
|
3713
|
+
async launchTerminalCliAgent(body) {
|
|
3714
|
+
return this.client.request("POST", `/sdk/desktop/runtime-sessions/launch-terminal-cli-agent`, body);
|
|
3715
|
+
}
|
|
3716
|
+
/**
|
|
3717
|
+
* List desktop PTY-backed runtime sessions currently known to the Electron app.
|
|
3718
|
+
* @see GET /sdk/desktop/runtime-sessions
|
|
3719
|
+
*/
|
|
3720
|
+
async listRuntimeSessions() {
|
|
3721
|
+
return this.client.request("GET", `/sdk/desktop/runtime-sessions`);
|
|
3722
|
+
}
|
|
3723
|
+
/**
|
|
3724
|
+
* Fetch one desktop PTY-backed runtime session by runtime session ID or PTY session ID.
|
|
3725
|
+
* @see GET /sdk/desktop/runtime-sessions/{sessionId}
|
|
3726
|
+
*/
|
|
3727
|
+
async getRuntimeSession(sessionId) {
|
|
3728
|
+
return this.client.request("GET", `/sdk/desktop/runtime-sessions/${sessionId}`);
|
|
3729
|
+
}
|
|
3730
|
+
/**
|
|
3731
|
+
* Close an existing desktop runtime session.
|
|
3732
|
+
* @see DELETE /sdk/desktop/runtime-sessions/{sessionId}
|
|
3733
|
+
*/
|
|
3734
|
+
async deleteRuntimeSession(sessionId) {
|
|
3735
|
+
return this.client.request("DELETE", `/sdk/desktop/runtime-sessions/${sessionId}`);
|
|
3736
|
+
}
|
|
3737
|
+
/**
|
|
3738
|
+
* Write input to an existing desktop runtime session. Use `message` to submit a CLI turn or `input` for raw PTY data.
|
|
3739
|
+
* @see POST /sdk/desktop/runtime-sessions/{sessionId}/write
|
|
3740
|
+
*/
|
|
3741
|
+
async write(sessionId, body) {
|
|
3742
|
+
return this.client.request("POST", `/sdk/desktop/runtime-sessions/${sessionId}/write`, body);
|
|
3743
|
+
}
|
|
3744
|
+
/**
|
|
3745
|
+
* Approve or deny a pending desktop runtime session action.
|
|
3746
|
+
* @see POST /sdk/desktop/runtime-sessions/{sessionId}/permission
|
|
3747
|
+
*/
|
|
3748
|
+
async permission(sessionId, body) {
|
|
3749
|
+
return this.client.request("POST", `/sdk/desktop/runtime-sessions/${sessionId}/permission`, body);
|
|
3750
|
+
}
|
|
3751
|
+
};
|
|
3752
|
+
|
|
3761
3753
|
// src/v1/namespace.ts
|
|
3762
3754
|
var V1ApiNamespace = class {
|
|
3763
3755
|
// [GENERATED-PROPS-END]
|
|
@@ -3768,11 +3760,11 @@ var V1ApiNamespace = class {
|
|
|
3768
3760
|
this.document = new V1DocumentModule(this._client);
|
|
3769
3761
|
this.workspace = new V1WorkspaceModule(this._client);
|
|
3770
3762
|
this.system = new V1SystemModule(this._client);
|
|
3771
|
-
this.runtimeSessions = new V1RuntimeSessionsModule(this._client);
|
|
3772
3763
|
this.thread = new V1ThreadModule(this._client);
|
|
3773
3764
|
this.users = new V1UsersModule(this._client);
|
|
3774
3765
|
this.openai = new V1OpenAIModule(this._client);
|
|
3775
3766
|
this.embed = new V1EmbedModule(this._client);
|
|
3767
|
+
this.desktopRuntimeSessions = new V1DesktopRuntimeSessionsModule(this._client);
|
|
3776
3768
|
}
|
|
3777
3769
|
};
|
|
3778
3770
|
|
package/dist/index.mjs
CHANGED
package/dist/v1/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as DeveloperApiClient } from '../errors-
|
|
2
|
-
export { A as AuthenticationError, a as DeveloperApiError, N as NotFoundError, S as ServerError, d as V1AdminModule, V as V1ApiNamespace, c as V1AuthModule,
|
|
1
|
+
import { D as DeveloperApiClient } from '../errors-BmVxnpJS.mjs';
|
|
2
|
+
export { A as AuthenticationError, a as DeveloperApiError, N as NotFoundError, S as ServerError, d as V1AdminModule, V as V1ApiNamespace, c as V1AuthModule, l as V1DesktopRuntimeSessionsModule, e as V1DocumentModule, k as V1EmbedModule, j as V1OpenAIModule, g as V1SystemModule, h as V1ThreadModule, i as V1UsersModule, f as V1WorkspaceModule, b as ValidationError } from '../errors-BmVxnpJS.mjs';
|
|
3
3
|
|
|
4
4
|
interface WorkspaceStreamChunk {
|
|
5
5
|
/** The text fragment emitted by this SSE event */
|
package/dist/v1/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as DeveloperApiClient } from '../errors-
|
|
2
|
-
export { A as AuthenticationError, a as DeveloperApiError, N as NotFoundError, S as ServerError, d as V1AdminModule, V as V1ApiNamespace, c as V1AuthModule,
|
|
1
|
+
import { D as DeveloperApiClient } from '../errors-BmVxnpJS.js';
|
|
2
|
+
export { A as AuthenticationError, a as DeveloperApiError, N as NotFoundError, S as ServerError, d as V1AdminModule, V as V1ApiNamespace, c as V1AuthModule, l as V1DesktopRuntimeSessionsModule, e as V1DocumentModule, k as V1EmbedModule, j as V1OpenAIModule, g as V1SystemModule, h as V1ThreadModule, i as V1UsersModule, f as V1WorkspaceModule, b as ValidationError } from '../errors-BmVxnpJS.js';
|
|
3
3
|
|
|
4
4
|
interface WorkspaceStreamChunk {
|
|
5
5
|
/** The text fragment emitted by this SSE event */
|
package/dist/v1/index.js
CHANGED
|
@@ -28,10 +28,10 @@ __export(v1_exports, {
|
|
|
28
28
|
V1AdminModule: () => V1AdminModule,
|
|
29
29
|
V1ApiNamespace: () => V1ApiNamespace,
|
|
30
30
|
V1AuthModule: () => V1AuthModule,
|
|
31
|
+
V1DesktopRuntimeSessionsModule: () => V1DesktopRuntimeSessionsModule,
|
|
31
32
|
V1DocumentModule: () => V1DocumentModule,
|
|
32
33
|
V1EmbedModule: () => V1EmbedModule,
|
|
33
34
|
V1OpenAIModule: () => V1OpenAIModule,
|
|
34
|
-
V1RuntimeSessionsModule: () => V1RuntimeSessionsModule,
|
|
35
35
|
V1SystemModule: () => V1SystemModule,
|
|
36
36
|
V1ThreadModule: () => V1ThreadModule,
|
|
37
37
|
V1UsersModule: () => V1UsersModule,
|
|
@@ -533,77 +533,6 @@ var V1SystemModule = class {
|
|
|
533
533
|
}
|
|
534
534
|
};
|
|
535
535
|
|
|
536
|
-
// src/v1/modules/v1RuntimeSessions.ts
|
|
537
|
-
var V1RuntimeSessionsModule = class {
|
|
538
|
-
constructor(client) {
|
|
539
|
-
this.client = client;
|
|
540
|
-
}
|
|
541
|
-
/**
|
|
542
|
-
* Resolve the desktop shell launch working directory for a workspace or thread context.
|
|
543
|
-
* @see POST /v1/runtime-sessions/desktop-shell/launch-spec
|
|
544
|
-
*/
|
|
545
|
-
async desktopShellLaunchSpec(body) {
|
|
546
|
-
return this.client.request("POST", `/v1/runtime-sessions/desktop-shell/launch-spec`, body);
|
|
547
|
-
}
|
|
548
|
-
/**
|
|
549
|
-
* Evaluate the runtime terminal permission policy for a pending CLI action.
|
|
550
|
-
* @see POST /v1/runtime-sessions/terminal-permissions/evaluate
|
|
551
|
-
*/
|
|
552
|
-
async terminalPermissionsEvaluate(body) {
|
|
553
|
-
return this.client.request("POST", `/v1/runtime-sessions/terminal-permissions/evaluate`, body);
|
|
554
|
-
}
|
|
555
|
-
/**
|
|
556
|
-
* Resolve the CLI agent terminal launch command and working directory.
|
|
557
|
-
* @see POST /v1/runtime-sessions/cli-agent/launch-spec
|
|
558
|
-
*/
|
|
559
|
-
async cliAgentLaunchSpec(body) {
|
|
560
|
-
return this.client.request("POST", `/v1/runtime-sessions/cli-agent/launch-spec`, body);
|
|
561
|
-
}
|
|
562
|
-
/**
|
|
563
|
-
* Create a persistent ACP-backed CLI agent runtime session.
|
|
564
|
-
* @see POST /v1/runtime-sessions/cli-agent
|
|
565
|
-
*/
|
|
566
|
-
async cliAgent(body) {
|
|
567
|
-
return this.client.request("POST", `/v1/runtime-sessions/cli-agent`, body);
|
|
568
|
-
}
|
|
569
|
-
/**
|
|
570
|
-
* Stream a chat turn to an existing CLI agent runtime session using Server-Sent Events.
|
|
571
|
-
* @see POST /v1/runtime-sessions/cli-agent/{sessionKey}/chat/stream
|
|
572
|
-
*/
|
|
573
|
-
// @streaming-stub — implement SSE parsing in overrides/v1RuntimeSessionsStreaming.ts
|
|
574
|
-
async cliAgentChatStream(sessionKey, body) {
|
|
575
|
-
return this.client.requestRaw("POST", `/v1/runtime-sessions/cli-agent/${sessionKey}/chat/stream`, body);
|
|
576
|
-
}
|
|
577
|
-
/**
|
|
578
|
-
* Resolve a pending permission request for a CLI agent runtime session.
|
|
579
|
-
* @see POST /v1/runtime-sessions/cli-agent/{sessionKey}/permission
|
|
580
|
-
*/
|
|
581
|
-
async cliAgentPermission(sessionKey, body) {
|
|
582
|
-
return this.client.request("POST", `/v1/runtime-sessions/cli-agent/${sessionKey}/permission`, body);
|
|
583
|
-
}
|
|
584
|
-
/**
|
|
585
|
-
* Cancel the current CLI turn for an active runtime session.
|
|
586
|
-
* @see POST /v1/runtime-sessions/cli-agent/{sessionKey}/cancel
|
|
587
|
-
*/
|
|
588
|
-
async cliAgentCancel(sessionKey, body) {
|
|
589
|
-
return this.client.request("POST", `/v1/runtime-sessions/cli-agent/${sessionKey}/cancel`, body);
|
|
590
|
-
}
|
|
591
|
-
/**
|
|
592
|
-
* Close a CLI agent runtime session and clear its control-plane metadata.
|
|
593
|
-
* @see DELETE /v1/runtime-sessions/cli-agent/{sessionKey}
|
|
594
|
-
*/
|
|
595
|
-
async deleteCliAgent(sessionKey) {
|
|
596
|
-
return this.client.request("DELETE", `/v1/runtime-sessions/cli-agent/${sessionKey}`);
|
|
597
|
-
}
|
|
598
|
-
/**
|
|
599
|
-
* Fetch the current state and runtime options for a CLI agent session.
|
|
600
|
-
* @see GET /v1/runtime-sessions/cli-agent/{sessionKey}
|
|
601
|
-
*/
|
|
602
|
-
async getCliAgent(sessionKey) {
|
|
603
|
-
return this.client.request("GET", `/v1/runtime-sessions/cli-agent/${sessionKey}`);
|
|
604
|
-
}
|
|
605
|
-
};
|
|
606
|
-
|
|
607
536
|
// src/v1/modules/v1Thread.ts
|
|
608
537
|
var V1ThreadModule = class {
|
|
609
538
|
constructor(client) {
|
|
@@ -759,6 +688,69 @@ var V1EmbedModule = class {
|
|
|
759
688
|
}
|
|
760
689
|
};
|
|
761
690
|
|
|
691
|
+
// src/v1/modules/v1DesktopRuntimeSessions.ts
|
|
692
|
+
var V1DesktopRuntimeSessionsModule = class {
|
|
693
|
+
constructor(client) {
|
|
694
|
+
this.client = client;
|
|
695
|
+
}
|
|
696
|
+
/**
|
|
697
|
+
* Open the shared terminal launcher in the Electron desktop app.
|
|
698
|
+
* @see POST /sdk/desktop/runtime-sessions/open-launcher
|
|
699
|
+
*/
|
|
700
|
+
async openLauncher(body) {
|
|
701
|
+
return this.client.request("POST", `/sdk/desktop/runtime-sessions/open-launcher`, body);
|
|
702
|
+
}
|
|
703
|
+
/**
|
|
704
|
+
* Launch a local PTY-backed shell terminal in the Electron desktop app.
|
|
705
|
+
* @see POST /sdk/desktop/runtime-sessions/launch-terminal-shell
|
|
706
|
+
*/
|
|
707
|
+
async launchTerminalShell(body) {
|
|
708
|
+
return this.client.request("POST", `/sdk/desktop/runtime-sessions/launch-terminal-shell`, body);
|
|
709
|
+
}
|
|
710
|
+
/**
|
|
711
|
+
* Launch a local PTY-backed CLI agent terminal in the Electron desktop app.
|
|
712
|
+
* @see POST /sdk/desktop/runtime-sessions/launch-terminal-cli-agent
|
|
713
|
+
*/
|
|
714
|
+
async launchTerminalCliAgent(body) {
|
|
715
|
+
return this.client.request("POST", `/sdk/desktop/runtime-sessions/launch-terminal-cli-agent`, body);
|
|
716
|
+
}
|
|
717
|
+
/**
|
|
718
|
+
* List desktop PTY-backed runtime sessions currently known to the Electron app.
|
|
719
|
+
* @see GET /sdk/desktop/runtime-sessions
|
|
720
|
+
*/
|
|
721
|
+
async listRuntimeSessions() {
|
|
722
|
+
return this.client.request("GET", `/sdk/desktop/runtime-sessions`);
|
|
723
|
+
}
|
|
724
|
+
/**
|
|
725
|
+
* Fetch one desktop PTY-backed runtime session by runtime session ID or PTY session ID.
|
|
726
|
+
* @see GET /sdk/desktop/runtime-sessions/{sessionId}
|
|
727
|
+
*/
|
|
728
|
+
async getRuntimeSession(sessionId) {
|
|
729
|
+
return this.client.request("GET", `/sdk/desktop/runtime-sessions/${sessionId}`);
|
|
730
|
+
}
|
|
731
|
+
/**
|
|
732
|
+
* Close an existing desktop runtime session.
|
|
733
|
+
* @see DELETE /sdk/desktop/runtime-sessions/{sessionId}
|
|
734
|
+
*/
|
|
735
|
+
async deleteRuntimeSession(sessionId) {
|
|
736
|
+
return this.client.request("DELETE", `/sdk/desktop/runtime-sessions/${sessionId}`);
|
|
737
|
+
}
|
|
738
|
+
/**
|
|
739
|
+
* Write input to an existing desktop runtime session. Use `message` to submit a CLI turn or `input` for raw PTY data.
|
|
740
|
+
* @see POST /sdk/desktop/runtime-sessions/{sessionId}/write
|
|
741
|
+
*/
|
|
742
|
+
async write(sessionId, body) {
|
|
743
|
+
return this.client.request("POST", `/sdk/desktop/runtime-sessions/${sessionId}/write`, body);
|
|
744
|
+
}
|
|
745
|
+
/**
|
|
746
|
+
* Approve or deny a pending desktop runtime session action.
|
|
747
|
+
* @see POST /sdk/desktop/runtime-sessions/{sessionId}/permission
|
|
748
|
+
*/
|
|
749
|
+
async permission(sessionId, body) {
|
|
750
|
+
return this.client.request("POST", `/sdk/desktop/runtime-sessions/${sessionId}/permission`, body);
|
|
751
|
+
}
|
|
752
|
+
};
|
|
753
|
+
|
|
762
754
|
// src/v1/namespace.ts
|
|
763
755
|
var V1ApiNamespace = class {
|
|
764
756
|
// [GENERATED-PROPS-END]
|
|
@@ -769,11 +761,11 @@ var V1ApiNamespace = class {
|
|
|
769
761
|
this.document = new V1DocumentModule(this._client);
|
|
770
762
|
this.workspace = new V1WorkspaceModule(this._client);
|
|
771
763
|
this.system = new V1SystemModule(this._client);
|
|
772
|
-
this.runtimeSessions = new V1RuntimeSessionsModule(this._client);
|
|
773
764
|
this.thread = new V1ThreadModule(this._client);
|
|
774
765
|
this.users = new V1UsersModule(this._client);
|
|
775
766
|
this.openai = new V1OpenAIModule(this._client);
|
|
776
767
|
this.embed = new V1EmbedModule(this._client);
|
|
768
|
+
this.desktopRuntimeSessions = new V1DesktopRuntimeSessionsModule(this._client);
|
|
777
769
|
}
|
|
778
770
|
};
|
|
779
771
|
|
|
@@ -900,10 +892,10 @@ async function uploadFileToFolder(client, file, folderName, options = {}) {
|
|
|
900
892
|
V1AdminModule,
|
|
901
893
|
V1ApiNamespace,
|
|
902
894
|
V1AuthModule,
|
|
895
|
+
V1DesktopRuntimeSessionsModule,
|
|
903
896
|
V1DocumentModule,
|
|
904
897
|
V1EmbedModule,
|
|
905
898
|
V1OpenAIModule,
|
|
906
|
-
V1RuntimeSessionsModule,
|
|
907
899
|
V1SystemModule,
|
|
908
900
|
V1ThreadModule,
|
|
909
901
|
V1UsersModule,
|
package/dist/v1/index.mjs
CHANGED
|
@@ -7,16 +7,16 @@ import {
|
|
|
7
7
|
V1AdminModule,
|
|
8
8
|
V1ApiNamespace,
|
|
9
9
|
V1AuthModule,
|
|
10
|
+
V1DesktopRuntimeSessionsModule,
|
|
10
11
|
V1DocumentModule,
|
|
11
12
|
V1EmbedModule,
|
|
12
13
|
V1OpenAIModule,
|
|
13
|
-
V1RuntimeSessionsModule,
|
|
14
14
|
V1SystemModule,
|
|
15
15
|
V1ThreadModule,
|
|
16
16
|
V1UsersModule,
|
|
17
17
|
V1WorkspaceModule,
|
|
18
18
|
ValidationError
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-3DVGTGOK.mjs";
|
|
20
20
|
|
|
21
21
|
// src/v1/overrides/v1WorkspaceStreaming.ts
|
|
22
22
|
async function* streamWorkspaceChat(client, slug, body) {
|
|
@@ -140,10 +140,10 @@ export {
|
|
|
140
140
|
V1AdminModule,
|
|
141
141
|
V1ApiNamespace,
|
|
142
142
|
V1AuthModule,
|
|
143
|
+
V1DesktopRuntimeSessionsModule,
|
|
143
144
|
V1DocumentModule,
|
|
144
145
|
V1EmbedModule,
|
|
145
146
|
V1OpenAIModule,
|
|
146
|
-
V1RuntimeSessionsModule,
|
|
147
147
|
V1SystemModule,
|
|
148
148
|
V1ThreadModule,
|
|
149
149
|
V1UsersModule,
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: realtimex-moderator-sdk
|
|
3
3
|
description: Control and interact with the RealTimeX application through its Node.js SDK. This skill should be used when users want to manage workspaces, threads, agents, activities, LLM chat, vector store, MCP tools, ACP agent sessions, TTS/STT, or any other RealTimeX platform feature via the API. All method signatures are verified against the SDK source code.
|
|
4
|
-
generated: 2026-05-
|
|
5
|
-
sdk_version: 1.7.
|
|
4
|
+
generated: 2026-05-06
|
|
5
|
+
sdk_version: 1.7.8
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# RealTimeX Moderator (SDK Source-Verified)
|
|
9
9
|
|
|
10
|
-
Interact with the RealTimeX platform (`http://localhost:3001`) using `@realtimex/sdk` **v1.7.
|
|
10
|
+
Interact with the RealTimeX platform (`http://localhost:3001`) using `@realtimex/sdk` **v1.7.8**. Authentication is automatic when running inside RealtimeX.
|
|
11
11
|
|
|
12
12
|
`<SKILL_DIR>` below refers to the directory containing this SKILL.md.
|
|
13
13
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# RealTimeX SDK — API Reference
|
|
2
2
|
|
|
3
|
-
> Auto-generated from `@realtimex/sdk` source · v**1.7.
|
|
3
|
+
> Auto-generated from `@realtimex/sdk` source · v**1.7.8** · 2026-05-06
|
|
4
4
|
|
|
5
5
|
**Package:** `@realtimex/sdk` (CJS) · **Server:** `http://localhost:3001`
|
|
6
6
|
**Developer Mode auth:** `Authorization: Bearer <apiKey>`
|
|
@@ -834,6 +834,38 @@ async deleteExposure(exposureId: string): Promise<unknown>
|
|
|
834
834
|
|
|
835
835
|
---
|
|
836
836
|
|
|
837
|
+
## sdk.v1.desktopRuntimeSessions — v1 Desktop Runtime Sessions
|
|
838
|
+
|
|
839
|
+
### `V1DesktopRuntimeSessionsModule`
|
|
840
|
+
|
|
841
|
+
```ts
|
|
842
|
+
// Open the shared terminal launcher in the Electron desktop app.
|
|
843
|
+
async openLauncher(body?: Record<string, unknown>): Promise<unknown>
|
|
844
|
+
|
|
845
|
+
// Launch a local PTY-backed shell terminal in the Electron desktop app.
|
|
846
|
+
async launchTerminalShell(body?: Record<string, unknown>): Promise<unknown>
|
|
847
|
+
|
|
848
|
+
// Launch a local PTY-backed CLI agent terminal in the Electron desktop app.
|
|
849
|
+
async launchTerminalCliAgent(body?: Record<string, unknown>): Promise<unknown>
|
|
850
|
+
|
|
851
|
+
// List desktop PTY-backed runtime sessions currently known to the Electron app.
|
|
852
|
+
async listRuntimeSessions(): Promise<unknown>
|
|
853
|
+
|
|
854
|
+
// Fetch one desktop PTY-backed runtime session by runtime session ID or PTY session ID.
|
|
855
|
+
async getRuntimeSession(sessionId: string): Promise<unknown>
|
|
856
|
+
|
|
857
|
+
// Close an existing desktop runtime session.
|
|
858
|
+
async deleteRuntimeSession(sessionId: string): Promise<unknown>
|
|
859
|
+
|
|
860
|
+
// Write input to an existing desktop runtime session. Use `message` to submit a CLI turn or `input` for raw PTY data.
|
|
861
|
+
async write(sessionId: string, body?: Record<string, unknown>): Promise<unknown>
|
|
862
|
+
|
|
863
|
+
// Approve or deny a pending desktop runtime session action.
|
|
864
|
+
async permission(sessionId: string, body?: Record<string, unknown>): Promise<unknown>
|
|
865
|
+
```
|
|
866
|
+
|
|
867
|
+
---
|
|
868
|
+
|
|
837
869
|
## sdk.v1.document — v1 Document
|
|
838
870
|
|
|
839
871
|
### `V1DocumentModule`
|
|
@@ -918,38 +950,6 @@ async listVectorStores(): Promise<unknown>
|
|
|
918
950
|
|
|
919
951
|
---
|
|
920
952
|
|
|
921
|
-
## sdk.v1.runtimeSessions — Runtime Sessions (CLI Agent / Terminal mode)
|
|
922
|
-
|
|
923
|
-
### `V1RuntimeSessionsModule`
|
|
924
|
-
|
|
925
|
-
```ts
|
|
926
|
-
// Resolve the desktop shell launch working directory for a workspace or thread context.
|
|
927
|
-
async desktopShellLaunchSpec(body?: Record<string, unknown>): Promise<unknown>
|
|
928
|
-
|
|
929
|
-
// Evaluate the runtime terminal permission policy for a pending CLI action.
|
|
930
|
-
async terminalPermissionsEvaluate(body?: Record<string, unknown>): Promise<unknown>
|
|
931
|
-
|
|
932
|
-
// Resolve the CLI agent terminal launch command and working directory.
|
|
933
|
-
async cliAgentLaunchSpec(body?: Record<string, unknown>): Promise<unknown>
|
|
934
|
-
|
|
935
|
-
// Create a persistent ACP-backed CLI agent runtime session.
|
|
936
|
-
async cliAgent(body?: Record<string, unknown>): Promise<unknown>
|
|
937
|
-
|
|
938
|
-
// Stream a chat turn to an existing CLI agent runtime session using Server-Sent Events.
|
|
939
|
-
async cliAgentPermission(sessionKey: string, body?: Record<string, unknown>): Promise<unknown>
|
|
940
|
-
|
|
941
|
-
// Cancel the current CLI turn for an active runtime session.
|
|
942
|
-
async cliAgentCancel(sessionKey: string, body?: Record<string, unknown>): Promise<unknown>
|
|
943
|
-
|
|
944
|
-
// Close a CLI agent runtime session and clear its control-plane metadata.
|
|
945
|
-
async deleteCliAgent(sessionKey: string): Promise<unknown>
|
|
946
|
-
|
|
947
|
-
// Fetch the current state and runtime options for a CLI agent session.
|
|
948
|
-
async getCliAgent(sessionKey: string): Promise<unknown>
|
|
949
|
-
```
|
|
950
|
-
|
|
951
|
-
---
|
|
952
|
-
|
|
953
953
|
## sdk.v1.sttApi — v1 Stt Api
|
|
954
954
|
|
|
955
955
|
### `V1SttApiModule`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Known Issues — Source-Detected
|
|
2
2
|
|
|
3
|
-
> Auto-generated by `scripts/generate-skill.mjs` · SDK **1.7.
|
|
3
|
+
> Auto-generated by `scripts/generate-skill.mjs` · SDK **1.7.8** · 2026-05-06
|
|
4
4
|
|
|
5
5
|
Run `node scripts/generate-skill.mjs --force` after SDK source changes to refresh.
|
|
6
6
|
|