@realtimex/sdk 1.7.7 → 1.7.9
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-x6ngbrlA.d.mts} +47 -52
- package/dist/{errors-kN70vQrd.d.ts → errors-x6ngbrlA.d.ts} +47 -52
- package/dist/index.d.mts +7 -2
- package/dist/index.d.ts +7 -2
- package/dist/index.js +65 -72
- package/dist/index.mjs +2 -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 +93 -9
- package/skills/realtimex-moderator-sdk/references/api-reference.md +106 -34
- package/skills/realtimex-moderator-sdk/references/known-issues.md +1 -1
- package/skills/realtimex-moderator-sdk/scripts/rtx.js +143 -0
|
@@ -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,
|
|
501
|
+
export { AuthenticationError as A, DeveloperApiClient as D, NotFoundError as N, ServerError as S, V1ApiNamespace as V, V1DesktopRuntimeSessionsModule as a, DeveloperApiError as b, ValidationError as c, V1AuthModule as d, V1AdminModule as e, V1DocumentModule as f, V1WorkspaceModule as g, V1SystemModule as h, V1ThreadModule as i, V1UsersModule as j, V1OpenAIModule as k, V1EmbedModule 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,
|
|
501
|
+
export { AuthenticationError as A, DeveloperApiClient as D, NotFoundError as N, ServerError as S, V1ApiNamespace as V, V1DesktopRuntimeSessionsModule as a, DeveloperApiError as b, ValidationError as c, V1AuthModule as d, V1AdminModule as e, V1DocumentModule as f, V1WorkspaceModule as g, V1SystemModule as h, V1ThreadModule as i, V1UsersModule as j, V1OpenAIModule as k, V1EmbedModule 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,
|
|
1
|
+
import { V as V1ApiNamespace, a as V1DesktopRuntimeSessionsModule } from './errors-x6ngbrlA.mjs';
|
|
2
|
+
export { A as AuthenticationError, D as DeveloperApiClient, b as DeveloperApiError, N as NotFoundError, S as ServerError, c as ValidationError } from './errors-x6ngbrlA.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* RealtimeX Local App SDK - Types
|
|
@@ -2022,6 +2022,11 @@ declare class RealtimeXSDK {
|
|
|
2022
2022
|
* Provides access to workspace management, admin, documents, system settings, and more.
|
|
2023
2023
|
*/
|
|
2024
2024
|
v1: V1ApiNamespace | undefined;
|
|
2025
|
+
/**
|
|
2026
|
+
* Desktop terminal sessions — top-level alias for the desktop runtime session APIs.
|
|
2027
|
+
* Backed by `sdk.v1.desktopRuntimeSessions` for compatibility with generated v1 modules.
|
|
2028
|
+
*/
|
|
2029
|
+
desktopRuntimeSessions: V1DesktopRuntimeSessionsModule | undefined;
|
|
2025
2030
|
readonly appId: string;
|
|
2026
2031
|
readonly appName: string | undefined;
|
|
2027
2032
|
readonly apiKey: string | undefined;
|
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,
|
|
1
|
+
import { V as V1ApiNamespace, a as V1DesktopRuntimeSessionsModule } from './errors-x6ngbrlA.js';
|
|
2
|
+
export { A as AuthenticationError, D as DeveloperApiClient, b as DeveloperApiError, N as NotFoundError, S as ServerError, c as ValidationError } from './errors-x6ngbrlA.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* RealtimeX Local App SDK - Types
|
|
@@ -2022,6 +2022,11 @@ declare class RealtimeXSDK {
|
|
|
2022
2022
|
* Provides access to workspace management, admin, documents, system settings, and more.
|
|
2023
2023
|
*/
|
|
2024
2024
|
v1: V1ApiNamespace | undefined;
|
|
2025
|
+
/**
|
|
2026
|
+
* Desktop terminal sessions — top-level alias for the desktop runtime session APIs.
|
|
2027
|
+
* Backed by `sdk.v1.desktopRuntimeSessions` for compatibility with generated v1 modules.
|
|
2028
|
+
*/
|
|
2029
|
+
desktopRuntimeSessions: V1DesktopRuntimeSessionsModule | undefined;
|
|
2025
2030
|
readonly appId: string;
|
|
2026
2031
|
readonly appName: string | undefined;
|
|
2027
2032
|
readonly apiKey: string | undefined;
|
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
|
|
|
@@ -4475,6 +4467,7 @@ var _RealtimeXSDK = class _RealtimeXSDK {
|
|
|
4475
4467
|
this.auth = new AuthModule(this.realtimexUrl, this.appId, this.apiKey);
|
|
4476
4468
|
this.credentials = new CredentialsModule(this.httpClient);
|
|
4477
4469
|
this.v1 = this.apiKey || this.appId ? new V1ApiNamespace(this.realtimexUrl, this.apiKey ?? "", this.appId || void 0) : void 0;
|
|
4470
|
+
this.desktopRuntimeSessions = this.v1?.desktopRuntimeSessions;
|
|
4478
4471
|
if (this.permissions.length > 0 && this.appId && !this.apiKey) {
|
|
4479
4472
|
this.register().catch((err) => {
|
|
4480
4473
|
console.error("[RealtimeX SDK] Auto-registration failed:", err.message);
|
package/dist/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
ServerError,
|
|
7
7
|
V1ApiNamespace,
|
|
8
8
|
ValidationError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3DVGTGOK.mjs";
|
|
10
10
|
|
|
11
11
|
// src/modules/api.ts
|
|
12
12
|
var PermissionDeniedError = class extends Error {
|
|
@@ -3652,6 +3652,7 @@ var _RealtimeXSDK = class _RealtimeXSDK {
|
|
|
3652
3652
|
this.auth = new AuthModule(this.realtimexUrl, this.appId, this.apiKey);
|
|
3653
3653
|
this.credentials = new CredentialsModule(this.httpClient);
|
|
3654
3654
|
this.v1 = this.apiKey || this.appId ? new V1ApiNamespace(this.realtimexUrl, this.apiKey ?? "", this.appId || void 0) : void 0;
|
|
3655
|
+
this.desktopRuntimeSessions = this.v1?.desktopRuntimeSessions;
|
|
3655
3656
|
if (this.permissions.length > 0 && this.appId && !this.apiKey) {
|
|
3656
3657
|
this.register().catch((err) => {
|
|
3657
3658
|
console.error("[RealtimeX SDK] Auto-registration failed:", err.message);
|
package/dist/v1/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as DeveloperApiClient } from '../errors-
|
|
2
|
-
export { A as AuthenticationError,
|
|
1
|
+
import { D as DeveloperApiClient } from '../errors-x6ngbrlA.mjs';
|
|
2
|
+
export { A as AuthenticationError, b as DeveloperApiError, N as NotFoundError, S as ServerError, e as V1AdminModule, V as V1ApiNamespace, d as V1AuthModule, a as V1DesktopRuntimeSessionsModule, f as V1DocumentModule, l as V1EmbedModule, k as V1OpenAIModule, h as V1SystemModule, i as V1ThreadModule, j as V1UsersModule, g as V1WorkspaceModule, c as ValidationError } from '../errors-x6ngbrlA.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,
|
|
1
|
+
import { D as DeveloperApiClient } from '../errors-x6ngbrlA.js';
|
|
2
|
+
export { A as AuthenticationError, b as DeveloperApiError, N as NotFoundError, S as ServerError, e as V1AdminModule, V as V1ApiNamespace, d as V1AuthModule, a as V1DesktopRuntimeSessionsModule, f as V1DocumentModule, l as V1EmbedModule, k as V1OpenAIModule, h as V1SystemModule, i as V1ThreadModule, j as V1UsersModule, g as V1WorkspaceModule, c as ValidationError } from '../errors-x6ngbrlA.js';
|
|
3
3
|
|
|
4
4
|
interface WorkspaceStreamChunk {
|
|
5
5
|
/** The text fragment emitted by this SSE event */
|