@realtimex/sdk 1.7.6 → 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.
@@ -642,73 +642,66 @@ var V1EmbedModule = class {
642
642
  }
643
643
  };
644
644
 
645
- // src/v1/modules/v1RuntimeSessions.ts
646
- var V1RuntimeSessionsModule = class {
645
+ // src/v1/modules/v1DesktopRuntimeSessions.ts
646
+ var V1DesktopRuntimeSessionsModule = class {
647
647
  constructor(client) {
648
648
  this.client = client;
649
649
  }
650
650
  /**
651
- * Resolve the desktop shell launch working directory for a workspace or thread context.
652
- * @see POST /runtime-sessions/desktop-shell/launch-spec
651
+ * Open the shared terminal launcher in the Electron desktop app.
652
+ * @see POST /sdk/desktop/runtime-sessions/open-launcher
653
653
  */
654
- async desktopShellLaunchSpec(body) {
655
- return this.client.request("POST", `/runtime-sessions/desktop-shell/launch-spec`, body);
654
+ async openLauncher(body) {
655
+ return this.client.request("POST", `/sdk/desktop/runtime-sessions/open-launcher`, body);
656
656
  }
657
657
  /**
658
- * Evaluate the runtime terminal permission policy for a pending CLI action.
659
- * @see POST /runtime-sessions/terminal-permissions/evaluate
658
+ * Launch a local PTY-backed shell terminal in the Electron desktop app.
659
+ * @see POST /sdk/desktop/runtime-sessions/launch-terminal-shell
660
660
  */
661
- async terminalPermissionsEvaluate(body) {
662
- return this.client.request("POST", `/runtime-sessions/terminal-permissions/evaluate`, body);
661
+ async launchTerminalShell(body) {
662
+ return this.client.request("POST", `/sdk/desktop/runtime-sessions/launch-terminal-shell`, body);
663
663
  }
664
664
  /**
665
- * Resolve the CLI agent terminal launch command and working directory.
666
- * @see POST /runtime-sessions/cli-agent/launch-spec
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
667
  */
668
- async cliAgentLaunchSpec(body) {
669
- return this.client.request("POST", `/runtime-sessions/cli-agent/launch-spec`, body);
668
+ async launchTerminalCliAgent(body) {
669
+ return this.client.request("POST", `/sdk/desktop/runtime-sessions/launch-terminal-cli-agent`, body);
670
670
  }
671
671
  /**
672
- * Create a persistent ACP-backed CLI agent runtime session.
673
- * @see POST /runtime-sessions/cli-agent
672
+ * List desktop PTY-backed runtime sessions currently known to the Electron app.
673
+ * @see GET /sdk/desktop/runtime-sessions
674
674
  */
675
- async cliAgent(body) {
676
- return this.client.request("POST", `/runtime-sessions/cli-agent`, body);
675
+ async listRuntimeSessions() {
676
+ return this.client.request("GET", `/sdk/desktop/runtime-sessions`);
677
677
  }
678
678
  /**
679
- * Stream a chat turn to an existing CLI agent runtime session using Server-Sent Events.
680
- * @see POST /runtime-sessions/cli-agent/{sessionKey}/chat/stream
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
681
  */
682
- async cliAgentChatStream(sessionKey, body) {
683
- return this.client.request("POST", `/runtime-sessions/cli-agent/${sessionKey}/chat/stream`, body);
682
+ async getRuntimeSession(sessionId) {
683
+ return this.client.request("GET", `/sdk/desktop/runtime-sessions/${sessionId}`);
684
684
  }
685
685
  /**
686
- * Resolve a pending permission request for a CLI agent runtime session.
687
- * @see POST /runtime-sessions/cli-agent/{sessionKey}/permission
686
+ * Close an existing desktop runtime session.
687
+ * @see DELETE /sdk/desktop/runtime-sessions/{sessionId}
688
688
  */
689
- async cliAgentPermission(sessionKey, body) {
690
- return this.client.request("POST", `/runtime-sessions/cli-agent/${sessionKey}/permission`, body);
689
+ async deleteRuntimeSession(sessionId) {
690
+ return this.client.request("DELETE", `/sdk/desktop/runtime-sessions/${sessionId}`);
691
691
  }
692
692
  /**
693
- * Cancel the current CLI turn for an active runtime session.
694
- * @see POST /runtime-sessions/cli-agent/{sessionKey}/cancel
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
695
  */
696
- async cliAgentCancel(sessionKey, body) {
697
- return this.client.request("POST", `/runtime-sessions/cli-agent/${sessionKey}/cancel`, body);
696
+ async write(sessionId, body) {
697
+ return this.client.request("POST", `/sdk/desktop/runtime-sessions/${sessionId}/write`, body);
698
698
  }
699
699
  /**
700
- * Close a CLI agent runtime session and clear its control-plane metadata.
701
- * @see DELETE /runtime-sessions/cli-agent/{sessionKey}
700
+ * Approve or deny a pending desktop runtime session action.
701
+ * @see POST /sdk/desktop/runtime-sessions/{sessionId}/permission
702
702
  */
703
- async deleteCliAgent(sessionKey) {
704
- return this.client.request("DELETE", `/runtime-sessions/cli-agent/${sessionKey}`);
705
- }
706
- /**
707
- * Fetch the current state and runtime options for a CLI agent session.
708
- * @see GET /runtime-sessions/cli-agent/{sessionKey}
709
- */
710
- async getCliAgent(sessionKey) {
711
- return this.client.request("GET", `/runtime-sessions/cli-agent/${sessionKey}`);
703
+ async permission(sessionId, body) {
704
+ return this.client.request("POST", `/sdk/desktop/runtime-sessions/${sessionId}/permission`, body);
712
705
  }
713
706
  };
714
707
 
@@ -726,7 +719,7 @@ var V1ApiNamespace = class {
726
719
  this.users = new V1UsersModule(this._client);
727
720
  this.openai = new V1OpenAIModule(this._client);
728
721
  this.embed = new V1EmbedModule(this._client);
729
- this.runtimeSessions = new V1RuntimeSessionsModule(this._client);
722
+ this.desktopRuntimeSessions = new V1DesktopRuntimeSessionsModule(this._client);
730
723
  }
731
724
  };
732
725
 
@@ -746,6 +739,6 @@ export {
746
739
  V1UsersModule,
747
740
  V1OpenAIModule,
748
741
  V1EmbedModule,
749
- V1RuntimeSessionsModule,
742
+ V1DesktopRuntimeSessionsModule,
750
743
  V1ApiNamespace
751
744
  };
@@ -405,54 +405,49 @@ declare class V1EmbedModule {
405
405
  deleteEmbed(embedUuid: string): Promise<unknown>;
406
406
  }
407
407
 
408
- declare class V1RuntimeSessionsModule {
408
+ declare class V1DesktopRuntimeSessionsModule {
409
409
  private readonly client;
410
410
  constructor(client: DeveloperApiClient);
411
411
  /**
412
- * Resolve the desktop shell launch working directory for a workspace or thread context.
413
- * @see POST /runtime-sessions/desktop-shell/launch-spec
412
+ * Open the shared terminal launcher in the Electron desktop app.
413
+ * @see POST /sdk/desktop/runtime-sessions/open-launcher
414
414
  */
415
- desktopShellLaunchSpec(body?: Record<string, unknown>): Promise<unknown>;
415
+ openLauncher(body?: Record<string, unknown>): Promise<unknown>;
416
416
  /**
417
- * Evaluate the runtime terminal permission policy for a pending CLI action.
418
- * @see POST /runtime-sessions/terminal-permissions/evaluate
417
+ * Launch a local PTY-backed shell terminal in the Electron desktop app.
418
+ * @see POST /sdk/desktop/runtime-sessions/launch-terminal-shell
419
419
  */
420
- terminalPermissionsEvaluate(body?: Record<string, unknown>): Promise<unknown>;
420
+ launchTerminalShell(body?: Record<string, unknown>): Promise<unknown>;
421
421
  /**
422
- * Resolve the CLI agent terminal launch command and working directory.
423
- * @see POST /runtime-sessions/cli-agent/launch-spec
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
424
  */
425
- cliAgentLaunchSpec(body?: Record<string, unknown>): Promise<unknown>;
425
+ launchTerminalCliAgent(body?: Record<string, unknown>): Promise<unknown>;
426
426
  /**
427
- * Create a persistent ACP-backed CLI agent runtime session.
428
- * @see POST /runtime-sessions/cli-agent
427
+ * List desktop PTY-backed runtime sessions currently known to the Electron app.
428
+ * @see GET /sdk/desktop/runtime-sessions
429
429
  */
430
- cliAgent(body?: Record<string, unknown>): Promise<unknown>;
430
+ listRuntimeSessions(): Promise<unknown>;
431
431
  /**
432
- * Stream a chat turn to an existing CLI agent runtime session using Server-Sent Events.
433
- * @see POST /runtime-sessions/cli-agent/{sessionKey}/chat/stream
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
434
  */
435
- cliAgentChatStream(sessionKey: string, body?: Record<string, unknown>): Promise<unknown>;
435
+ getRuntimeSession(sessionId: string): Promise<unknown>;
436
436
  /**
437
- * Resolve a pending permission request for a CLI agent runtime session.
438
- * @see POST /runtime-sessions/cli-agent/{sessionKey}/permission
437
+ * Close an existing desktop runtime session.
438
+ * @see DELETE /sdk/desktop/runtime-sessions/{sessionId}
439
439
  */
440
- cliAgentPermission(sessionKey: string, body?: Record<string, unknown>): Promise<unknown>;
440
+ deleteRuntimeSession(sessionId: string): Promise<unknown>;
441
441
  /**
442
- * Cancel the current CLI turn for an active runtime session.
443
- * @see POST /runtime-sessions/cli-agent/{sessionKey}/cancel
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
444
  */
445
- cliAgentCancel(sessionKey: string, body?: Record<string, unknown>): Promise<unknown>;
445
+ write(sessionId: string, body?: Record<string, unknown>): Promise<unknown>;
446
446
  /**
447
- * Close a CLI agent runtime session and clear its control-plane metadata.
448
- * @see DELETE /runtime-sessions/cli-agent/{sessionKey}
447
+ * Approve or deny a pending desktop runtime session action.
448
+ * @see POST /sdk/desktop/runtime-sessions/{sessionId}/permission
449
449
  */
450
- deleteCliAgent(sessionKey: string): Promise<unknown>;
451
- /**
452
- * Fetch the current state and runtime options for a CLI agent session.
453
- * @see GET /runtime-sessions/cli-agent/{sessionKey}
454
- */
455
- getCliAgent(sessionKey: string): Promise<unknown>;
450
+ permission(sessionId: string, body?: Record<string, unknown>): Promise<unknown>;
456
451
  }
457
452
 
458
453
  /**
@@ -478,7 +473,7 @@ declare class V1ApiNamespace {
478
473
  users: V1UsersModule;
479
474
  openai: V1OpenAIModule;
480
475
  embed: V1EmbedModule;
481
- runtimeSessions: V1RuntimeSessionsModule;
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, V1ThreadModule as h, V1UsersModule as i, V1OpenAIModule as j, V1EmbedModule as k, V1RuntimeSessionsModule as l };
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 };
@@ -405,54 +405,49 @@ declare class V1EmbedModule {
405
405
  deleteEmbed(embedUuid: string): Promise<unknown>;
406
406
  }
407
407
 
408
- declare class V1RuntimeSessionsModule {
408
+ declare class V1DesktopRuntimeSessionsModule {
409
409
  private readonly client;
410
410
  constructor(client: DeveloperApiClient);
411
411
  /**
412
- * Resolve the desktop shell launch working directory for a workspace or thread context.
413
- * @see POST /runtime-sessions/desktop-shell/launch-spec
412
+ * Open the shared terminal launcher in the Electron desktop app.
413
+ * @see POST /sdk/desktop/runtime-sessions/open-launcher
414
414
  */
415
- desktopShellLaunchSpec(body?: Record<string, unknown>): Promise<unknown>;
415
+ openLauncher(body?: Record<string, unknown>): Promise<unknown>;
416
416
  /**
417
- * Evaluate the runtime terminal permission policy for a pending CLI action.
418
- * @see POST /runtime-sessions/terminal-permissions/evaluate
417
+ * Launch a local PTY-backed shell terminal in the Electron desktop app.
418
+ * @see POST /sdk/desktop/runtime-sessions/launch-terminal-shell
419
419
  */
420
- terminalPermissionsEvaluate(body?: Record<string, unknown>): Promise<unknown>;
420
+ launchTerminalShell(body?: Record<string, unknown>): Promise<unknown>;
421
421
  /**
422
- * Resolve the CLI agent terminal launch command and working directory.
423
- * @see POST /runtime-sessions/cli-agent/launch-spec
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
424
  */
425
- cliAgentLaunchSpec(body?: Record<string, unknown>): Promise<unknown>;
425
+ launchTerminalCliAgent(body?: Record<string, unknown>): Promise<unknown>;
426
426
  /**
427
- * Create a persistent ACP-backed CLI agent runtime session.
428
- * @see POST /runtime-sessions/cli-agent
427
+ * List desktop PTY-backed runtime sessions currently known to the Electron app.
428
+ * @see GET /sdk/desktop/runtime-sessions
429
429
  */
430
- cliAgent(body?: Record<string, unknown>): Promise<unknown>;
430
+ listRuntimeSessions(): Promise<unknown>;
431
431
  /**
432
- * Stream a chat turn to an existing CLI agent runtime session using Server-Sent Events.
433
- * @see POST /runtime-sessions/cli-agent/{sessionKey}/chat/stream
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
434
  */
435
- cliAgentChatStream(sessionKey: string, body?: Record<string, unknown>): Promise<unknown>;
435
+ getRuntimeSession(sessionId: string): Promise<unknown>;
436
436
  /**
437
- * Resolve a pending permission request for a CLI agent runtime session.
438
- * @see POST /runtime-sessions/cli-agent/{sessionKey}/permission
437
+ * Close an existing desktop runtime session.
438
+ * @see DELETE /sdk/desktop/runtime-sessions/{sessionId}
439
439
  */
440
- cliAgentPermission(sessionKey: string, body?: Record<string, unknown>): Promise<unknown>;
440
+ deleteRuntimeSession(sessionId: string): Promise<unknown>;
441
441
  /**
442
- * Cancel the current CLI turn for an active runtime session.
443
- * @see POST /runtime-sessions/cli-agent/{sessionKey}/cancel
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
444
  */
445
- cliAgentCancel(sessionKey: string, body?: Record<string, unknown>): Promise<unknown>;
445
+ write(sessionId: string, body?: Record<string, unknown>): Promise<unknown>;
446
446
  /**
447
- * Close a CLI agent runtime session and clear its control-plane metadata.
448
- * @see DELETE /runtime-sessions/cli-agent/{sessionKey}
447
+ * Approve or deny a pending desktop runtime session action.
448
+ * @see POST /sdk/desktop/runtime-sessions/{sessionId}/permission
449
449
  */
450
- deleteCliAgent(sessionKey: string): Promise<unknown>;
451
- /**
452
- * Fetch the current state and runtime options for a CLI agent session.
453
- * @see GET /runtime-sessions/cli-agent/{sessionKey}
454
- */
455
- getCliAgent(sessionKey: string): Promise<unknown>;
450
+ permission(sessionId: string, body?: Record<string, unknown>): Promise<unknown>;
456
451
  }
457
452
 
458
453
  /**
@@ -478,7 +473,7 @@ declare class V1ApiNamespace {
478
473
  users: V1UsersModule;
479
474
  openai: V1OpenAIModule;
480
475
  embed: V1EmbedModule;
481
- runtimeSessions: V1RuntimeSessionsModule;
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, V1ThreadModule as h, V1UsersModule as i, V1OpenAIModule as j, V1EmbedModule as k, V1RuntimeSessionsModule as l };
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-7Y9damGS.mjs';
2
- export { A as AuthenticationError, D as DeveloperApiClient, a as DeveloperApiError, N as NotFoundError, S as ServerError, b as ValidationError } from './errors-7Y9damGS.mjs';
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-7Y9damGS.js';
2
- export { A as AuthenticationError, D as DeveloperApiClient, a as DeveloperApiError, N as NotFoundError, S as ServerError, b as ValidationError } from './errors-7Y9damGS.js';
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
@@ -3687,73 +3687,66 @@ var V1EmbedModule = class {
3687
3687
  }
3688
3688
  };
3689
3689
 
3690
- // src/v1/modules/v1RuntimeSessions.ts
3691
- var V1RuntimeSessionsModule = class {
3690
+ // src/v1/modules/v1DesktopRuntimeSessions.ts
3691
+ var V1DesktopRuntimeSessionsModule = class {
3692
3692
  constructor(client) {
3693
3693
  this.client = client;
3694
3694
  }
3695
3695
  /**
3696
- * Resolve the desktop shell launch working directory for a workspace or thread context.
3697
- * @see POST /runtime-sessions/desktop-shell/launch-spec
3696
+ * Open the shared terminal launcher in the Electron desktop app.
3697
+ * @see POST /sdk/desktop/runtime-sessions/open-launcher
3698
3698
  */
3699
- async desktopShellLaunchSpec(body) {
3700
- return this.client.request("POST", `/runtime-sessions/desktop-shell/launch-spec`, body);
3699
+ async openLauncher(body) {
3700
+ return this.client.request("POST", `/sdk/desktop/runtime-sessions/open-launcher`, body);
3701
3701
  }
3702
3702
  /**
3703
- * Evaluate the runtime terminal permission policy for a pending CLI action.
3704
- * @see POST /runtime-sessions/terminal-permissions/evaluate
3703
+ * Launch a local PTY-backed shell terminal in the Electron desktop app.
3704
+ * @see POST /sdk/desktop/runtime-sessions/launch-terminal-shell
3705
3705
  */
3706
- async terminalPermissionsEvaluate(body) {
3707
- return this.client.request("POST", `/runtime-sessions/terminal-permissions/evaluate`, body);
3706
+ async launchTerminalShell(body) {
3707
+ return this.client.request("POST", `/sdk/desktop/runtime-sessions/launch-terminal-shell`, body);
3708
3708
  }
3709
3709
  /**
3710
- * Resolve the CLI agent terminal launch command and working directory.
3711
- * @see POST /runtime-sessions/cli-agent/launch-spec
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
3712
  */
3713
- async cliAgentLaunchSpec(body) {
3714
- return this.client.request("POST", `/runtime-sessions/cli-agent/launch-spec`, body);
3713
+ async launchTerminalCliAgent(body) {
3714
+ return this.client.request("POST", `/sdk/desktop/runtime-sessions/launch-terminal-cli-agent`, body);
3715
3715
  }
3716
3716
  /**
3717
- * Create a persistent ACP-backed CLI agent runtime session.
3718
- * @see POST /runtime-sessions/cli-agent
3717
+ * List desktop PTY-backed runtime sessions currently known to the Electron app.
3718
+ * @see GET /sdk/desktop/runtime-sessions
3719
3719
  */
3720
- async cliAgent(body) {
3721
- return this.client.request("POST", `/runtime-sessions/cli-agent`, body);
3720
+ async listRuntimeSessions() {
3721
+ return this.client.request("GET", `/sdk/desktop/runtime-sessions`);
3722
3722
  }
3723
3723
  /**
3724
- * Stream a chat turn to an existing CLI agent runtime session using Server-Sent Events.
3725
- * @see POST /runtime-sessions/cli-agent/{sessionKey}/chat/stream
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
3726
  */
3727
- async cliAgentChatStream(sessionKey, body) {
3728
- return this.client.request("POST", `/runtime-sessions/cli-agent/${sessionKey}/chat/stream`, body);
3727
+ async getRuntimeSession(sessionId) {
3728
+ return this.client.request("GET", `/sdk/desktop/runtime-sessions/${sessionId}`);
3729
3729
  }
3730
3730
  /**
3731
- * Resolve a pending permission request for a CLI agent runtime session.
3732
- * @see POST /runtime-sessions/cli-agent/{sessionKey}/permission
3731
+ * Close an existing desktop runtime session.
3732
+ * @see DELETE /sdk/desktop/runtime-sessions/{sessionId}
3733
3733
  */
3734
- async cliAgentPermission(sessionKey, body) {
3735
- return this.client.request("POST", `/runtime-sessions/cli-agent/${sessionKey}/permission`, body);
3734
+ async deleteRuntimeSession(sessionId) {
3735
+ return this.client.request("DELETE", `/sdk/desktop/runtime-sessions/${sessionId}`);
3736
3736
  }
3737
3737
  /**
3738
- * Cancel the current CLI turn for an active runtime session.
3739
- * @see POST /runtime-sessions/cli-agent/{sessionKey}/cancel
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
3740
  */
3741
- async cliAgentCancel(sessionKey, body) {
3742
- return this.client.request("POST", `/runtime-sessions/cli-agent/${sessionKey}/cancel`, body);
3741
+ async write(sessionId, body) {
3742
+ return this.client.request("POST", `/sdk/desktop/runtime-sessions/${sessionId}/write`, body);
3743
3743
  }
3744
3744
  /**
3745
- * Close a CLI agent runtime session and clear its control-plane metadata.
3746
- * @see DELETE /runtime-sessions/cli-agent/{sessionKey}
3745
+ * Approve or deny a pending desktop runtime session action.
3746
+ * @see POST /sdk/desktop/runtime-sessions/{sessionId}/permission
3747
3747
  */
3748
- async deleteCliAgent(sessionKey) {
3749
- return this.client.request("DELETE", `/runtime-sessions/cli-agent/${sessionKey}`);
3750
- }
3751
- /**
3752
- * Fetch the current state and runtime options for a CLI agent session.
3753
- * @see GET /runtime-sessions/cli-agent/{sessionKey}
3754
- */
3755
- async getCliAgent(sessionKey) {
3756
- return this.client.request("GET", `/runtime-sessions/cli-agent/${sessionKey}`);
3748
+ async permission(sessionId, body) {
3749
+ return this.client.request("POST", `/sdk/desktop/runtime-sessions/${sessionId}/permission`, body);
3757
3750
  }
3758
3751
  };
3759
3752
 
@@ -3771,7 +3764,7 @@ var V1ApiNamespace = class {
3771
3764
  this.users = new V1UsersModule(this._client);
3772
3765
  this.openai = new V1OpenAIModule(this._client);
3773
3766
  this.embed = new V1EmbedModule(this._client);
3774
- this.runtimeSessions = new V1RuntimeSessionsModule(this._client);
3767
+ this.desktopRuntimeSessions = new V1DesktopRuntimeSessionsModule(this._client);
3775
3768
  }
3776
3769
  };
3777
3770
 
package/dist/index.mjs CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  ServerError,
7
7
  V1ApiNamespace,
8
8
  ValidationError
9
- } from "./chunk-YHNURPXJ.mjs";
9
+ } from "./chunk-3DVGTGOK.mjs";
10
10
 
11
11
  // src/modules/api.ts
12
12
  var PermissionDeniedError = class extends Error {
@@ -1,5 +1,5 @@
1
- import { D as DeveloperApiClient } from '../errors-7Y9damGS.mjs';
2
- export { A as AuthenticationError, a as DeveloperApiError, N as NotFoundError, S as ServerError, d as V1AdminModule, V as V1ApiNamespace, c as V1AuthModule, e as V1DocumentModule, k as V1EmbedModule, j as V1OpenAIModule, l as V1RuntimeSessionsModule, g as V1SystemModule, h as V1ThreadModule, i as V1UsersModule, f as V1WorkspaceModule, b as ValidationError } from '../errors-7Y9damGS.mjs';
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 */
@@ -1,5 +1,5 @@
1
- import { D as DeveloperApiClient } from '../errors-7Y9damGS.js';
2
- export { A as AuthenticationError, a as DeveloperApiError, N as NotFoundError, S as ServerError, d as V1AdminModule, V as V1ApiNamespace, c as V1AuthModule, e as V1DocumentModule, k as V1EmbedModule, j as V1OpenAIModule, l as V1RuntimeSessionsModule, g as V1SystemModule, h as V1ThreadModule, i as V1UsersModule, f as V1WorkspaceModule, b as ValidationError } from '../errors-7Y9damGS.js';
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,
@@ -688,73 +688,66 @@ var V1EmbedModule = class {
688
688
  }
689
689
  };
690
690
 
691
- // src/v1/modules/v1RuntimeSessions.ts
692
- var V1RuntimeSessionsModule = class {
691
+ // src/v1/modules/v1DesktopRuntimeSessions.ts
692
+ var V1DesktopRuntimeSessionsModule = class {
693
693
  constructor(client) {
694
694
  this.client = client;
695
695
  }
696
696
  /**
697
- * Resolve the desktop shell launch working directory for a workspace or thread context.
698
- * @see POST /runtime-sessions/desktop-shell/launch-spec
697
+ * Open the shared terminal launcher in the Electron desktop app.
698
+ * @see POST /sdk/desktop/runtime-sessions/open-launcher
699
699
  */
700
- async desktopShellLaunchSpec(body) {
701
- return this.client.request("POST", `/runtime-sessions/desktop-shell/launch-spec`, body);
700
+ async openLauncher(body) {
701
+ return this.client.request("POST", `/sdk/desktop/runtime-sessions/open-launcher`, body);
702
702
  }
703
703
  /**
704
- * Evaluate the runtime terminal permission policy for a pending CLI action.
705
- * @see POST /runtime-sessions/terminal-permissions/evaluate
704
+ * Launch a local PTY-backed shell terminal in the Electron desktop app.
705
+ * @see POST /sdk/desktop/runtime-sessions/launch-terminal-shell
706
706
  */
707
- async terminalPermissionsEvaluate(body) {
708
- return this.client.request("POST", `/runtime-sessions/terminal-permissions/evaluate`, body);
707
+ async launchTerminalShell(body) {
708
+ return this.client.request("POST", `/sdk/desktop/runtime-sessions/launch-terminal-shell`, body);
709
709
  }
710
710
  /**
711
- * Resolve the CLI agent terminal launch command and working directory.
712
- * @see POST /runtime-sessions/cli-agent/launch-spec
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
713
  */
714
- async cliAgentLaunchSpec(body) {
715
- return this.client.request("POST", `/runtime-sessions/cli-agent/launch-spec`, body);
714
+ async launchTerminalCliAgent(body) {
715
+ return this.client.request("POST", `/sdk/desktop/runtime-sessions/launch-terminal-cli-agent`, body);
716
716
  }
717
717
  /**
718
- * Create a persistent ACP-backed CLI agent runtime session.
719
- * @see POST /runtime-sessions/cli-agent
718
+ * List desktop PTY-backed runtime sessions currently known to the Electron app.
719
+ * @see GET /sdk/desktop/runtime-sessions
720
720
  */
721
- async cliAgent(body) {
722
- return this.client.request("POST", `/runtime-sessions/cli-agent`, body);
721
+ async listRuntimeSessions() {
722
+ return this.client.request("GET", `/sdk/desktop/runtime-sessions`);
723
723
  }
724
724
  /**
725
- * Stream a chat turn to an existing CLI agent runtime session using Server-Sent Events.
726
- * @see POST /runtime-sessions/cli-agent/{sessionKey}/chat/stream
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
727
  */
728
- async cliAgentChatStream(sessionKey, body) {
729
- return this.client.request("POST", `/runtime-sessions/cli-agent/${sessionKey}/chat/stream`, body);
728
+ async getRuntimeSession(sessionId) {
729
+ return this.client.request("GET", `/sdk/desktop/runtime-sessions/${sessionId}`);
730
730
  }
731
731
  /**
732
- * Resolve a pending permission request for a CLI agent runtime session.
733
- * @see POST /runtime-sessions/cli-agent/{sessionKey}/permission
732
+ * Close an existing desktop runtime session.
733
+ * @see DELETE /sdk/desktop/runtime-sessions/{sessionId}
734
734
  */
735
- async cliAgentPermission(sessionKey, body) {
736
- return this.client.request("POST", `/runtime-sessions/cli-agent/${sessionKey}/permission`, body);
735
+ async deleteRuntimeSession(sessionId) {
736
+ return this.client.request("DELETE", `/sdk/desktop/runtime-sessions/${sessionId}`);
737
737
  }
738
738
  /**
739
- * Cancel the current CLI turn for an active runtime session.
740
- * @see POST /runtime-sessions/cli-agent/{sessionKey}/cancel
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
741
  */
742
- async cliAgentCancel(sessionKey, body) {
743
- return this.client.request("POST", `/runtime-sessions/cli-agent/${sessionKey}/cancel`, body);
742
+ async write(sessionId, body) {
743
+ return this.client.request("POST", `/sdk/desktop/runtime-sessions/${sessionId}/write`, body);
744
744
  }
745
745
  /**
746
- * Close a CLI agent runtime session and clear its control-plane metadata.
747
- * @see DELETE /runtime-sessions/cli-agent/{sessionKey}
746
+ * Approve or deny a pending desktop runtime session action.
747
+ * @see POST /sdk/desktop/runtime-sessions/{sessionId}/permission
748
748
  */
749
- async deleteCliAgent(sessionKey) {
750
- return this.client.request("DELETE", `/runtime-sessions/cli-agent/${sessionKey}`);
751
- }
752
- /**
753
- * Fetch the current state and runtime options for a CLI agent session.
754
- * @see GET /runtime-sessions/cli-agent/{sessionKey}
755
- */
756
- async getCliAgent(sessionKey) {
757
- return this.client.request("GET", `/runtime-sessions/cli-agent/${sessionKey}`);
749
+ async permission(sessionId, body) {
750
+ return this.client.request("POST", `/sdk/desktop/runtime-sessions/${sessionId}/permission`, body);
758
751
  }
759
752
  };
760
753
 
@@ -772,7 +765,7 @@ var V1ApiNamespace = class {
772
765
  this.users = new V1UsersModule(this._client);
773
766
  this.openai = new V1OpenAIModule(this._client);
774
767
  this.embed = new V1EmbedModule(this._client);
775
- this.runtimeSessions = new V1RuntimeSessionsModule(this._client);
768
+ this.desktopRuntimeSessions = new V1DesktopRuntimeSessionsModule(this._client);
776
769
  }
777
770
  };
778
771
 
@@ -899,10 +892,10 @@ async function uploadFileToFolder(client, file, folderName, options = {}) {
899
892
  V1AdminModule,
900
893
  V1ApiNamespace,
901
894
  V1AuthModule,
895
+ V1DesktopRuntimeSessionsModule,
902
896
  V1DocumentModule,
903
897
  V1EmbedModule,
904
898
  V1OpenAIModule,
905
- V1RuntimeSessionsModule,
906
899
  V1SystemModule,
907
900
  V1ThreadModule,
908
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-YHNURPXJ.mjs";
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@realtimex/sdk",
3
- "version": "1.7.6",
3
+ "version": "1.7.8",
4
4
  "description": "SDK for building Local Apps that integrate with RealtimeX",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -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-04
5
- sdk_version: 1.7.6
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.6**. Authentication is automatic when running inside RealtimeX.
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.6** · 2026-05-04
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,41 +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 cliAgentChatStream(sessionKey: string, body?: Record<string, unknown>): Promise<unknown>
940
-
941
- // Resolve a pending permission request for a CLI agent runtime session.
942
- async cliAgentPermission(sessionKey: string, body?: Record<string, unknown>): Promise<unknown>
943
-
944
- // Cancel the current CLI turn for an active runtime session.
945
- async cliAgentCancel(sessionKey: string, body?: Record<string, unknown>): Promise<unknown>
946
-
947
- // Close a CLI agent runtime session and clear its control-plane metadata.
948
- async deleteCliAgent(sessionKey: string): Promise<unknown>
949
-
950
- // Fetch the current state and runtime options for a CLI agent session.
951
- async getCliAgent(sessionKey: string): Promise<unknown>
952
- ```
953
-
954
- ---
955
-
956
953
  ## sdk.v1.sttApi — v1 Stt Api
957
954
 
958
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.6** · 2026-05-04
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