@realtimex/sdk 1.7.5 → 1.7.7
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-2FPRJPXR.mjs → chunk-EMMHP4JM.mjs} +73 -0
- package/dist/{errors-wfNrYt9K.d.mts → errors-kN70vQrd.d.mts} +52 -1
- package/dist/{errors-wfNrYt9K.d.ts → errors-kN70vQrd.d.ts} +52 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +72 -0
- 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 +74 -0
- package/dist/v1/index.mjs +3 -1
- package/package.json +1 -1
- package/skills/realtimex-moderator-sdk/SKILL.md +15 -3
- package/skills/realtimex-moderator-sdk/references/api-reference.md +34 -2
- package/skills/realtimex-moderator-sdk/references/app-concepts.md +7 -2
- package/skills/realtimex-moderator-sdk/references/known-issues.md +1 -1
|
@@ -487,6 +487,77 @@ 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
|
+
|
|
490
561
|
// src/v1/modules/v1Thread.ts
|
|
491
562
|
var V1ThreadModule = class {
|
|
492
563
|
constructor(client) {
|
|
@@ -652,6 +723,7 @@ var V1ApiNamespace = class {
|
|
|
652
723
|
this.document = new V1DocumentModule(this._client);
|
|
653
724
|
this.workspace = new V1WorkspaceModule(this._client);
|
|
654
725
|
this.system = new V1SystemModule(this._client);
|
|
726
|
+
this.runtimeSessions = new V1RuntimeSessionsModule(this._client);
|
|
655
727
|
this.thread = new V1ThreadModule(this._client);
|
|
656
728
|
this.users = new V1UsersModule(this._client);
|
|
657
729
|
this.openai = new V1OpenAIModule(this._client);
|
|
@@ -671,6 +743,7 @@ export {
|
|
|
671
743
|
V1DocumentModule,
|
|
672
744
|
V1WorkspaceModule,
|
|
673
745
|
V1SystemModule,
|
|
746
|
+
V1RuntimeSessionsModule,
|
|
674
747
|
V1ThreadModule,
|
|
675
748
|
V1UsersModule,
|
|
676
749
|
V1OpenAIModule,
|
|
@@ -295,6 +295,56 @@ 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
|
+
|
|
298
348
|
declare class V1ThreadModule {
|
|
299
349
|
private readonly client;
|
|
300
350
|
constructor(client: DeveloperApiClient);
|
|
@@ -424,6 +474,7 @@ declare class V1ApiNamespace {
|
|
|
424
474
|
document: V1DocumentModule;
|
|
425
475
|
workspace: V1WorkspaceModule;
|
|
426
476
|
system: V1SystemModule;
|
|
477
|
+
runtimeSessions: V1RuntimeSessionsModule;
|
|
427
478
|
thread: V1ThreadModule;
|
|
428
479
|
users: V1UsersModule;
|
|
429
480
|
openai: V1OpenAIModule;
|
|
@@ -452,4 +503,4 @@ declare class ServerError extends DeveloperApiError {
|
|
|
452
503
|
constructor(message?: string);
|
|
453
504
|
}
|
|
454
505
|
|
|
455
|
-
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,
|
|
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, V1RuntimeSessionsModule as h, V1ThreadModule as i, V1UsersModule as j, V1OpenAIModule as k, V1EmbedModule as l };
|
|
@@ -295,6 +295,56 @@ 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
|
+
|
|
298
348
|
declare class V1ThreadModule {
|
|
299
349
|
private readonly client;
|
|
300
350
|
constructor(client: DeveloperApiClient);
|
|
@@ -424,6 +474,7 @@ declare class V1ApiNamespace {
|
|
|
424
474
|
document: V1DocumentModule;
|
|
425
475
|
workspace: V1WorkspaceModule;
|
|
426
476
|
system: V1SystemModule;
|
|
477
|
+
runtimeSessions: V1RuntimeSessionsModule;
|
|
427
478
|
thread: V1ThreadModule;
|
|
428
479
|
users: V1UsersModule;
|
|
429
480
|
openai: V1OpenAIModule;
|
|
@@ -452,4 +503,4 @@ declare class ServerError extends DeveloperApiError {
|
|
|
452
503
|
constructor(message?: string);
|
|
453
504
|
}
|
|
454
505
|
|
|
455
|
-
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,
|
|
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, V1RuntimeSessionsModule 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, a as DeveloperApiError, N as NotFoundError, S as ServerError, b as ValidationError } from './errors-
|
|
1
|
+
import { V as V1ApiNamespace } from './errors-kN70vQrd.mjs';
|
|
2
|
+
export { A as AuthenticationError, D as DeveloperApiClient, a as DeveloperApiError, N as NotFoundError, S as ServerError, b as ValidationError } from './errors-kN70vQrd.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-kN70vQrd.js';
|
|
2
|
+
export { A as AuthenticationError, D as DeveloperApiClient, a as DeveloperApiError, N as NotFoundError, S as ServerError, b as ValidationError } from './errors-kN70vQrd.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* RealtimeX Local App SDK - Types
|
package/dist/index.js
CHANGED
|
@@ -3532,6 +3532,77 @@ 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
|
+
|
|
3535
3606
|
// src/v1/modules/v1Thread.ts
|
|
3536
3607
|
var V1ThreadModule = class {
|
|
3537
3608
|
constructor(client) {
|
|
@@ -3697,6 +3768,7 @@ var V1ApiNamespace = class {
|
|
|
3697
3768
|
this.document = new V1DocumentModule(this._client);
|
|
3698
3769
|
this.workspace = new V1WorkspaceModule(this._client);
|
|
3699
3770
|
this.system = new V1SystemModule(this._client);
|
|
3771
|
+
this.runtimeSessions = new V1RuntimeSessionsModule(this._client);
|
|
3700
3772
|
this.thread = new V1ThreadModule(this._client);
|
|
3701
3773
|
this.users = new V1UsersModule(this._client);
|
|
3702
3774
|
this.openai = new V1OpenAIModule(this._client);
|
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, e as V1DocumentModule,
|
|
1
|
+
import { D as DeveloperApiClient } from '../errors-kN70vQrd.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, l as V1EmbedModule, k as V1OpenAIModule, h as V1RuntimeSessionsModule, g as V1SystemModule, i as V1ThreadModule, j as V1UsersModule, f as V1WorkspaceModule, b as ValidationError } from '../errors-kN70vQrd.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, e as V1DocumentModule,
|
|
1
|
+
import { D as DeveloperApiClient } from '../errors-kN70vQrd.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, l as V1EmbedModule, k as V1OpenAIModule, h as V1RuntimeSessionsModule, g as V1SystemModule, i as V1ThreadModule, j as V1UsersModule, f as V1WorkspaceModule, b as ValidationError } from '../errors-kN70vQrd.js';
|
|
3
3
|
|
|
4
4
|
interface WorkspaceStreamChunk {
|
|
5
5
|
/** The text fragment emitted by this SSE event */
|
package/dist/v1/index.js
CHANGED
|
@@ -31,6 +31,7 @@ __export(v1_exports, {
|
|
|
31
31
|
V1DocumentModule: () => V1DocumentModule,
|
|
32
32
|
V1EmbedModule: () => V1EmbedModule,
|
|
33
33
|
V1OpenAIModule: () => V1OpenAIModule,
|
|
34
|
+
V1RuntimeSessionsModule: () => V1RuntimeSessionsModule,
|
|
34
35
|
V1SystemModule: () => V1SystemModule,
|
|
35
36
|
V1ThreadModule: () => V1ThreadModule,
|
|
36
37
|
V1UsersModule: () => V1UsersModule,
|
|
@@ -532,6 +533,77 @@ var V1SystemModule = class {
|
|
|
532
533
|
}
|
|
533
534
|
};
|
|
534
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
|
+
|
|
535
607
|
// src/v1/modules/v1Thread.ts
|
|
536
608
|
var V1ThreadModule = class {
|
|
537
609
|
constructor(client) {
|
|
@@ -697,6 +769,7 @@ var V1ApiNamespace = class {
|
|
|
697
769
|
this.document = new V1DocumentModule(this._client);
|
|
698
770
|
this.workspace = new V1WorkspaceModule(this._client);
|
|
699
771
|
this.system = new V1SystemModule(this._client);
|
|
772
|
+
this.runtimeSessions = new V1RuntimeSessionsModule(this._client);
|
|
700
773
|
this.thread = new V1ThreadModule(this._client);
|
|
701
774
|
this.users = new V1UsersModule(this._client);
|
|
702
775
|
this.openai = new V1OpenAIModule(this._client);
|
|
@@ -830,6 +903,7 @@ async function uploadFileToFolder(client, file, folderName, options = {}) {
|
|
|
830
903
|
V1DocumentModule,
|
|
831
904
|
V1EmbedModule,
|
|
832
905
|
V1OpenAIModule,
|
|
906
|
+
V1RuntimeSessionsModule,
|
|
833
907
|
V1SystemModule,
|
|
834
908
|
V1ThreadModule,
|
|
835
909
|
V1UsersModule,
|
package/dist/v1/index.mjs
CHANGED
|
@@ -10,12 +10,13 @@ import {
|
|
|
10
10
|
V1DocumentModule,
|
|
11
11
|
V1EmbedModule,
|
|
12
12
|
V1OpenAIModule,
|
|
13
|
+
V1RuntimeSessionsModule,
|
|
13
14
|
V1SystemModule,
|
|
14
15
|
V1ThreadModule,
|
|
15
16
|
V1UsersModule,
|
|
16
17
|
V1WorkspaceModule,
|
|
17
18
|
ValidationError
|
|
18
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-EMMHP4JM.mjs";
|
|
19
20
|
|
|
20
21
|
// src/v1/overrides/v1WorkspaceStreaming.ts
|
|
21
22
|
async function* streamWorkspaceChat(client, slug, body) {
|
|
@@ -142,6 +143,7 @@ export {
|
|
|
142
143
|
V1DocumentModule,
|
|
143
144
|
V1EmbedModule,
|
|
144
145
|
V1OpenAIModule,
|
|
146
|
+
V1RuntimeSessionsModule,
|
|
145
147
|
V1SystemModule,
|
|
146
148
|
V1ThreadModule,
|
|
147
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-
|
|
5
|
-
sdk_version: 1.7.
|
|
4
|
+
generated: 2026-05-05
|
|
5
|
+
sdk_version: 1.7.7
|
|
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.7**. Authentication is automatic when running inside RealtimeX.
|
|
11
11
|
|
|
12
12
|
`<SKILL_DIR>` below refers to the directory containing this SKILL.md.
|
|
13
13
|
|
|
@@ -44,6 +44,18 @@ Scripts using the SDK must exit explicitly — `process.exit(0)` on success, `pr
|
|
|
44
44
|
|
|
45
45
|
---
|
|
46
46
|
|
|
47
|
+
## Runtime Sessions
|
|
48
|
+
|
|
49
|
+
In this SDK, **Runtime Sessions** means the CLI Agent in **Terminal mode**. Use `sdk.agent.*` for that path.
|
|
50
|
+
|
|
51
|
+
This is separate from ACP mode:
|
|
52
|
+
- `sdk.agent.*` = Runtime Sessions = CLI Agent / Terminal mode
|
|
53
|
+
- `sdk.acpAgent.*` = ACP-backed CLI agent sessions
|
|
54
|
+
|
|
55
|
+
If a user refers to the v1/OpenAPI tag `Runtime Sessions`, interpret that as the Terminal mode session flow, not ACP.
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
47
59
|
## ACP Session Management
|
|
48
60
|
|
|
49
61
|
ACP sessions are persistent agent processes. **Always reuse sessions** across turns instead of spawning a new process for every message — it preserves context and is far more efficient.
|
|
@@ -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.7** · 2026-05-05
|
|
4
4
|
|
|
5
5
|
**Package:** `@realtimex/sdk` (CJS) · **Server:** `http://localhost:3001`
|
|
6
6
|
**Developer Mode auth:** `Authorization: Bearer <apiKey>`
|
|
@@ -503,7 +503,7 @@ outcome?: string
|
|
|
503
503
|
|
|
504
504
|
---
|
|
505
505
|
|
|
506
|
-
## sdk.agent —
|
|
506
|
+
## sdk.agent — Runtime Sessions (CLI Agent / Terminal mode)
|
|
507
507
|
|
|
508
508
|
### `AgentModule`
|
|
509
509
|
|
|
@@ -918,6 +918,38 @@ async listVectorStores(): Promise<unknown>
|
|
|
918
918
|
|
|
919
919
|
---
|
|
920
920
|
|
|
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
|
+
|
|
921
953
|
## sdk.v1.sttApi — v1 Stt Api
|
|
922
954
|
|
|
923
955
|
### `V1SttApiModule`
|
|
@@ -55,7 +55,9 @@ monitor context (calendar, documents, threads) and take autonomous actions.
|
|
|
55
55
|
| `timezone` | `null` | — |
|
|
56
56
|
| `llmProvider` | `DEFAULT_AMBIENT_LLM_PROVIDER` | — |
|
|
57
57
|
| `llmModel` | `DEFAULT_AMBIENT_LLM_MODEL` | autoPilotEnabled: when true, the CLI ACP agent will automatically select |
|
|
58
|
-
| `autoPilotEnabled` | `false` |
|
|
58
|
+
| `autoPilotEnabled` | `false` | resumeSession: when true, each heartbeat execution resumes the last ACP |
|
|
59
|
+
| `resumeSession` | `false` | — |
|
|
60
|
+
| `customInstructions` | `""` | — |
|
|
59
61
|
|
|
60
62
|
### Calendar Routines
|
|
61
63
|
|
|
@@ -121,6 +123,7 @@ Skills are loaded from git repositories, zip files, or installed plugins.
|
|
|
121
123
|
|---|---|
|
|
122
124
|
| `repo` | Skill loaded from a git repository URL |
|
|
123
125
|
| `zip` | Skill loaded from an uploaded .zip file |
|
|
126
|
+
| `local-path` | — |
|
|
124
127
|
|
|
125
128
|
### Skill Scopes
|
|
126
129
|
|
|
@@ -781,13 +784,15 @@ A skill (tool-set) available to agents. Can come from a git repo, zip file, or p
|
|
|
781
784
|
|---|---|---|---|
|
|
782
785
|
| `name` | String | — | — |
|
|
783
786
|
| `display_name` | String | — | — |
|
|
787
|
+
| `normalized_display_name` | String? | — | — |
|
|
784
788
|
| `description` | String? | — | — |
|
|
785
789
|
| `skill_id` | String? | — | Store's ID, used when synced from marketplace |
|
|
786
790
|
| `repository_url` | String? | — | — |
|
|
787
791
|
| `ref` | String? | — | Git ref (branch/tag) |
|
|
788
792
|
| `skill_path` | String? | — | Path within repository |
|
|
789
793
|
| `zip_file` | String? | — | Path to local zip file |
|
|
790
|
-
| `
|
|
794
|
+
| `local_path` | String? | — | Absolute source path for local-path type skills |
|
|
795
|
+
| `type` | String | repo | 'repo' | 'zip' | 'local-path' |
|
|
791
796
|
| `scope` | String | uploaded | 'global' | 'workspace' | 'local-app' | 'uploaded' | 'plugin' |
|
|
792
797
|
| `status` | String | draft | 'draft' | 'published' |
|
|
793
798
|
| `pending_publish` | Boolean | true | Tracks if code/ZIP changed and needs new version publish |
|
|
@@ -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.7** · 2026-05-05
|
|
4
4
|
|
|
5
5
|
Run `node scripts/generate-skill.mjs --force` after SDK source changes to refresh.
|
|
6
6
|
|