@realtimex/sdk 2.0.39 → 2.0.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -55,6 +55,31 @@ export interface ArchiveActiveThreadSpaOptions extends RealtimeXRequestOptions {
55
55
  body?: ArchiveActiveThreadSpaBody;
56
56
  }
57
57
 
58
+ export type CalibrateDecisionBatteryParams = Record<string, never>;
59
+ export type CalibrateDecisionBatteryQuery = Record<string, never>;
60
+ export type CalibrateDecisionBatteryHeaders = {
61
+ "x-app-id"?: string;
62
+ };
63
+ export type CalibrateDecisionBatteryBody = {
64
+ battery: string;
65
+ labels: Array<{
66
+ state?: unknown;
67
+ stateDigest?: string;
68
+ expected: Record<string, unknown>;
69
+ }>;
70
+ write?: boolean;
71
+ workspaceSlug?: string;
72
+ timeoutMs?: number;
73
+ perStateTimeoutMs?: number;
74
+ };
75
+ export type CalibrateDecisionBatteryResponse = unknown;
76
+ export interface CalibrateDecisionBatteryOptions extends RealtimeXRequestOptions {
77
+ params?: CalibrateDecisionBatteryParams;
78
+ query?: CalibrateDecisionBatteryQuery;
79
+ headers?: CalibrateDecisionBatteryHeaders & Record<string, string>;
80
+ body?: CalibrateDecisionBatteryBody;
81
+ }
82
+
58
83
  export type ChatRichContentContainmentParams = Record<string, never>;
59
84
  export type ChatRichContentContainmentQuery = Record<string, never>;
60
85
  export type ChatRichContentContainmentHeaders = Record<string, never>;
@@ -366,6 +391,29 @@ export interface CreateWorkspaceAgentSkillOptions extends RealtimeXRequestOption
366
391
  body?: CreateWorkspaceAgentSkillBody;
367
392
  }
368
393
 
394
+ export type DecideParams = Record<string, never>;
395
+ export type DecideQuery = Record<string, never>;
396
+ export type DecideHeaders = {
397
+ "x-app-id"?: string;
398
+ };
399
+ export type DecideBody = {
400
+ battery?: string;
401
+ questions?: Record<string, unknown>;
402
+ input?: string;
403
+ inputs?: Array<string>;
404
+ states?: Array<Record<string, unknown>>;
405
+ workspaceSlug?: string;
406
+ timeoutMs?: number;
407
+ perStateTimeoutMs?: number;
408
+ };
409
+ export type DecideResponse = unknown;
410
+ export interface DecideOptions extends RealtimeXRequestOptions {
411
+ params?: DecideParams;
412
+ query?: DecideQuery;
413
+ headers?: DecideHeaders & Record<string, string>;
414
+ body?: DecideBody;
415
+ }
416
+
369
417
  export type DelegateHumanTaskFixtureParams = Record<string, never>;
370
418
  export type DelegateHumanTaskFixtureQuery = Record<string, never>;
371
419
  export type DelegateHumanTaskFixtureHeaders = Record<string, never>;
@@ -898,6 +946,22 @@ export interface ListChannelsOptions extends RealtimeXRequestOptions {
898
946
  body?: ListChannelsBody;
899
947
  }
900
948
 
949
+ export type ListDecisionBatteriesParams = Record<string, never>;
950
+ export type ListDecisionBatteriesQuery = {
951
+ workspaceSlug?: string;
952
+ };
953
+ export type ListDecisionBatteriesHeaders = {
954
+ "x-app-id"?: string;
955
+ };
956
+ export type ListDecisionBatteriesBody = unknown;
957
+ export type ListDecisionBatteriesResponse = unknown;
958
+ export interface ListDecisionBatteriesOptions extends RealtimeXRequestOptions {
959
+ params?: ListDecisionBatteriesParams;
960
+ query?: ListDecisionBatteriesQuery;
961
+ headers?: ListDecisionBatteriesHeaders & Record<string, string>;
962
+ body?: ListDecisionBatteriesBody;
963
+ }
964
+
901
965
  export type ListLlmModelsParams = {
902
966
  provider: string;
903
967
  };
@@ -1152,6 +1216,23 @@ export interface LoopLiveHandoffOrderE2eOptions extends RealtimeXRequestOptions
1152
1216
  body?: LoopLiveHandoffOrderE2eBody;
1153
1217
  }
1154
1218
 
1219
+ export type MemoryPageParams = Record<string, never>;
1220
+ export type MemoryPageQuery = Record<string, never>;
1221
+ export type MemoryPageHeaders = Record<string, never>;
1222
+ export type MemoryPageBody = {
1223
+ cdpUrl?: string;
1224
+ artifactPath?: string;
1225
+ timeoutMs?: number;
1226
+ confirmDestructive?: boolean;
1227
+ };
1228
+ export type MemoryPageResponse = Record<string, unknown>;
1229
+ export interface MemoryPageOptions extends RealtimeXRequestOptions {
1230
+ params?: MemoryPageParams;
1231
+ query?: MemoryPageQuery;
1232
+ headers?: MemoryPageHeaders & Record<string, string>;
1233
+ body?: MemoryPageBody;
1234
+ }
1235
+
1155
1236
  export type OpenTerminalSessionParams = Record<string, never>;
1156
1237
  export type OpenTerminalSessionQuery = Record<string, never>;
1157
1238
  export type OpenTerminalSessionHeaders = {
@@ -1259,6 +1340,34 @@ export interface PostCliDelegateSubmissionsLookupOptions extends RealtimeXReques
1259
1340
  body?: PostCliDelegateSubmissionsLookupBody;
1260
1341
  }
1261
1342
 
1343
+ export type PostCliReplaceChannelTokenChannelIdParams = {
1344
+ channelId: string;
1345
+ };
1346
+ export type PostCliReplaceChannelTokenChannelIdQuery = Record<string, never>;
1347
+ export type PostCliReplaceChannelTokenChannelIdHeaders = {
1348
+ "x-app-id"?: string;
1349
+ };
1350
+ export type PostCliReplaceChannelTokenChannelIdBody = unknown;
1351
+ export type PostCliReplaceChannelTokenChannelIdResponse = Record<string, unknown>;
1352
+ export interface PostCliReplaceChannelTokenChannelIdOptions extends RealtimeXRequestOptions {
1353
+ params?: PostCliReplaceChannelTokenChannelIdParams;
1354
+ query?: PostCliReplaceChannelTokenChannelIdQuery;
1355
+ headers?: PostCliReplaceChannelTokenChannelIdHeaders & Record<string, string>;
1356
+ body?: PostCliReplaceChannelTokenChannelIdBody;
1357
+ }
1358
+
1359
+ export type PostV1DelegatesMandateAuthoringParams = Record<string, never>;
1360
+ export type PostV1DelegatesMandateAuthoringQuery = Record<string, never>;
1361
+ export type PostV1DelegatesMandateAuthoringHeaders = Record<string, never>;
1362
+ export type PostV1DelegatesMandateAuthoringBody = unknown;
1363
+ export type PostV1DelegatesMandateAuthoringResponse = unknown;
1364
+ export interface PostV1DelegatesMandateAuthoringOptions extends RealtimeXRequestOptions {
1365
+ params?: PostV1DelegatesMandateAuthoringParams;
1366
+ query?: PostV1DelegatesMandateAuthoringQuery;
1367
+ headers?: PostV1DelegatesMandateAuthoringHeaders & Record<string, string>;
1368
+ body?: PostV1DelegatesMandateAuthoringBody;
1369
+ }
1370
+
1262
1371
  export type PrepareParams = Record<string, never>;
1263
1372
  export type PrepareQuery = {
1264
1373
  workspaceSlug?: string;
@@ -1642,7 +1751,7 @@ export type SendChannelFileHeaders = {
1642
1751
  "x-app-id"?: string;
1643
1752
  };
1644
1753
  export type SendChannelFileBody = {
1645
- context: string;
1754
+ context?: string;
1646
1755
  filePath?: string;
1647
1756
  fileName?: string;
1648
1757
  runtimeSessionId?: string;
@@ -1658,6 +1767,24 @@ export interface SendChannelFileOptions extends RealtimeXRequestOptions {
1658
1767
  body?: SendChannelFileBody;
1659
1768
  }
1660
1769
 
1770
+ export type SendChannelMessageParams = Record<string, never>;
1771
+ export type SendChannelMessageQuery = Record<string, never>;
1772
+ export type SendChannelMessageHeaders = {
1773
+ "x-app-id"?: string;
1774
+ };
1775
+ export type SendChannelMessageBody = {
1776
+ text: string;
1777
+ context?: string;
1778
+ idempotencyKey?: string;
1779
+ };
1780
+ export type SendChannelMessageResponse = Record<string, unknown>;
1781
+ export interface SendChannelMessageOptions extends RealtimeXRequestOptions {
1782
+ params?: SendChannelMessageParams;
1783
+ query?: SendChannelMessageQuery;
1784
+ headers?: SendChannelMessageHeaders & Record<string, string>;
1785
+ body?: SendChannelMessageBody;
1786
+ }
1787
+
1661
1788
  export type SendMessageParams = {
1662
1789
  workspaceSlug: string;
1663
1790
  threadSlug: string;
@@ -2165,6 +2292,7 @@ export type UpdateChannelBody = {
2165
2292
  terminalProgressRelay?: boolean;
2166
2293
  terminalProgressThrottleSeconds?: number;
2167
2294
  terminalExternalUserContext?: boolean;
2295
+ busyTurnPolicy?: "immediate" | "queue";
2168
2296
  maxFileUploadMb?: number;
2169
2297
  ttsEnabled?: boolean;
2170
2298
  tts_enabled?: boolean;
@@ -2418,6 +2546,9 @@ export declare class RealtimeXClient {
2418
2546
  /** Verify archive and global-search thread navigation stay in one Electron renderer without eager TTS workers or runaway renderer RSS. */
2419
2547
  archiveActiveThreadSpa(options?: ArchiveActiveThreadSpaOptions): Promise<ArchiveActiveThreadSpaResponse>;
2420
2548
  archiveActiveThreadSpa(body: ArchiveActiveThreadSpaBody, options?: Omit<ArchiveActiveThreadSpaOptions, 'body'>): Promise<ArchiveActiveThreadSpaResponse>;
2549
+ /** Fit per-model battery thresholds from labelled states or paired decision digests; report only unless write=true. */
2550
+ calibrateDecisionBattery(options?: CalibrateDecisionBatteryOptions): Promise<CalibrateDecisionBatteryResponse>;
2551
+ calibrateDecisionBattery(body: CalibrateDecisionBatteryBody, options?: Omit<CalibrateDecisionBatteryOptions, 'body'>): Promise<CalibrateDecisionBatteryResponse>;
2421
2552
  /** Measure chat rich-content containment in the owned Electron renderer. */
2422
2553
  chatRichContentContainment(options?: ChatRichContentContainmentOptions): Promise<ChatRichContentContainmentResponse>;
2423
2554
  chatRichContentContainment(body: ChatRichContentContainmentBody, options?: Omit<ChatRichContentContainmentOptions, 'body'>): Promise<ChatRichContentContainmentResponse>;
@@ -2455,6 +2586,9 @@ export declare class RealtimeXClient {
2455
2586
  /** Create a managed agent skill owned by one workspace. Terminal agents should use this instead of writing final skill content into runtime skill directories. */
2456
2587
  createWorkspaceAgentSkill(options?: CreateWorkspaceAgentSkillOptions): Promise<CreateWorkspaceAgentSkillResponse>;
2457
2588
  createWorkspaceAgentSkill(workspaceSlug: string, body: CreateWorkspaceAgentSkillBody, options?: Omit<CreateWorkspaceAgentSkillOptions, 'params' | 'body'>): Promise<CreateWorkspaceAgentSkillResponse>;
2589
+ /** Advisory decisions over freeform inputs or a named declarative battery. Workspace/freeform content is on-host only. */
2590
+ decide(options?: DecideOptions): Promise<DecideResponse>;
2591
+ decide(body: DecideBody, options?: Omit<DecideOptions, 'body'>): Promise<DecideResponse>;
2458
2592
  /** Create and deliver a valid synthetic Delegate Human-authorization task in an isolated development runtime. */
2459
2593
  delegateHumanTaskFixture(options?: DelegateHumanTaskFixtureOptions): Promise<DelegateHumanTaskFixtureResponse>;
2460
2594
  delegateHumanTaskFixture(body: DelegateHumanTaskFixtureBody, options?: Omit<DelegateHumanTaskFixtureOptions, 'body'>): Promise<DelegateHumanTaskFixtureResponse>;
@@ -2543,6 +2677,9 @@ export declare class RealtimeXClient {
2543
2677
  listBrowserSessions(options?: ListBrowserSessionsOptions): Promise<ListBrowserSessionsResponse>;
2544
2678
  /** List configured chat channels. Use returned channel ids with update-channel. */
2545
2679
  listChannels(options?: ListChannelsOptions): Promise<ListChannelsResponse>;
2680
+ /** List host and workspace batteries with the fitted status for the active model; no model call. */
2681
+ listDecisionBatteries(options?: ListDecisionBatteriesOptions): Promise<ListDecisionBatteriesResponse>;
2682
+ listDecisionBatteries(query?: ListDecisionBatteriesQuery, options?: Omit<ListDecisionBatteriesOptions, 'query'>): Promise<ListDecisionBatteriesResponse>;
2546
2683
  /** List models for one provider id. Use an exact model id from this response when configuring workspace or thread LLM settings. */
2547
2684
  listLlmModels(options?: ListLlmModelsOptions): Promise<ListLlmModelsResponse>;
2548
2685
  listLlmModels(provider: string, options?: Omit<ListLlmModelsOptions, 'params'>): Promise<ListLlmModelsResponse>;
@@ -2581,6 +2718,9 @@ export declare class RealtimeXClient {
2581
2718
  /** Prove a live loop handoff stays above its active terminal-session card and card-linked reply. */
2582
2719
  loopLiveHandoffOrderE2e(options?: LoopLiveHandoffOrderE2eOptions): Promise<LoopLiveHandoffOrderE2eResponse>;
2583
2720
  loopLiveHandoffOrderE2e(body: LoopLiveHandoffOrderE2eBody, options?: Omit<LoopLiveHandoffOrderE2eOptions, 'body'>): Promise<LoopLiveHandoffOrderE2eResponse>;
2721
+ /** Exercise the global Memory page with intercepted synthetic sources in an owned dev renderer. */
2722
+ memoryPage(options?: MemoryPageOptions): Promise<MemoryPageResponse>;
2723
+ memoryPage(body: MemoryPageBody, options?: Omit<MemoryPageOptions, 'body'>): Promise<MemoryPageResponse>;
2584
2724
  /** Open a new desktop terminal session for one terminal CLI agent. Use list-terminal-agents or prepare.agents to choose agentName/providerId/modelId. workspaceSlug is required when threadSlug is provided. */
2585
2725
  openTerminalSession(options?: OpenTerminalSessionOptions): Promise<OpenTerminalSessionResponse>;
2586
2726
  openTerminalSession(body: OpenTerminalSessionBody, options?: Omit<OpenTerminalSessionOptions, 'body'>): Promise<OpenTerminalSessionResponse>;
@@ -2596,6 +2736,10 @@ export declare class RealtimeXClient {
2596
2736
  postCliDelegateRunsRunIdEvidence(options?: PostCliDelegateRunsRunIdEvidenceOptions): Promise<PostCliDelegateRunsRunIdEvidenceResponse>;
2597
2737
  postCliDelegateRunsRunIdEvidence(runId: string, options?: Omit<PostCliDelegateRunsRunIdEvidenceOptions, 'params'>): Promise<PostCliDelegateRunsRunIdEvidenceResponse>;
2598
2738
  postCliDelegateSubmissionsLookup(options?: PostCliDelegateSubmissionsLookupOptions): Promise<PostCliDelegateSubmissionsLookupResponse>;
2739
+ postCliReplaceChannelTokenChannelId(options?: PostCliReplaceChannelTokenChannelIdOptions): Promise<PostCliReplaceChannelTokenChannelIdResponse>;
2740
+ postCliReplaceChannelTokenChannelId(channelId: string, options?: Omit<PostCliReplaceChannelTokenChannelIdOptions, 'params'>): Promise<PostCliReplaceChannelTokenChannelIdResponse>;
2741
+ /** Legacy conversational mandate authoring */
2742
+ postV1DelegatesMandateAuthoring(options?: PostV1DelegatesMandateAuthoringOptions): Promise<PostV1DelegatesMandateAuthoringResponse>;
2599
2743
  /** Return compact workspace, thread, current workspace/thread, LLM provider, model, and CLI agent context before choosing arguments. Managed RealtimeX terminal authentication supplies the current route automatically; workspaceSlug and threadSlug remain optional compatibility inputs for other callers. */
2600
2744
  prepare(options?: PrepareOptions): Promise<PrepareResponse>;
2601
2745
  prepare(query?: PrepareQuery, options?: Omit<PrepareOptions, 'query'>): Promise<PrepareResponse>;
@@ -2651,9 +2795,12 @@ export declare class RealtimeXClient {
2651
2795
  runAutomationWorkflow(body: RunAutomationWorkflowBody, options?: Omit<RunAutomationWorkflowOptions, 'body'>): Promise<RunAutomationWorkflowResponse>;
2652
2796
  searchMemory(options?: SearchMemoryOptions): Promise<SearchMemoryResponse>;
2653
2797
  searchMemory(query?: SearchMemoryQuery, options?: Omit<SearchMemoryOptions, 'query'>): Promise<SearchMemoryResponse>;
2654
- /** Send one local CLI file back to an external channel using an explicit channel delivery context id. Channel-linked terminal agents should pass --context "$REALTIMEX_CHANNEL_DELIVERY_CONTEXT_ID". In desktop/local runtime the CLI should send an absolute filePath; contentBase64 remains available as fallback transport. */
2798
+ /** Send one local file to the external chat that this terminal is answering. Run it from the channel-linked terminal with --file-path <absolute path>: the target chat comes from your terminal session, so --context is optional. Send one file per command. Channels that cannot send files return an error. contentBase64 with fileName remains available when no local path exists. */
2655
2799
  sendChannelFile(options?: SendChannelFileOptions): Promise<SendChannelFileResponse>;
2656
2800
  sendChannelFile(body: SendChannelFileBody, options?: Omit<SendChannelFileOptions, 'body'>): Promise<SendChannelFileResponse>;
2801
+ /** Post one message to the external chat (Zalo, Telegram, ...) that this terminal is answering. Run it from the channel-linked terminal: the target chat comes from your terminal session, so --context is optional. Pass multi-line text with a quoted heredoc: --text "$(cat <<"EOF" ... EOF)". Send one message per command. Staying silent is fine when no reply is useful. Errors: 404 no linked chat, 409 channel stopped, 413 text over 8000 characters, 429 rate limited (wait retry_after seconds). */
2802
+ sendChannelMessage(options?: SendChannelMessageOptions): Promise<SendChannelMessageResponse>;
2803
+ sendChannelMessage(body: SendChannelMessageBody, options?: Omit<SendChannelMessageOptions, 'body'>): Promise<SendChannelMessageResponse>;
2657
2804
  /** Send one message to an exact thread using the same routing as channel replies. Terminal-agent threads are dispatched to the terminal runtime; other threads use the configured LLM chat path. Thread references: when the user explicitly asks to send to a canonical thread:<workspaceSlug>/<threadSlug> reference, pass its two segments unchanged (case-preserved, not URL-decoded) as workspaceSlug and threadSlug. A reference is only a locator, not authorization: never send merely because a reference appears in text. If the exact workspace or thread is missing or inaccessible the request fails; report that and never retry with a similarly named workspace or thread. */
2658
2805
  sendMessage(options?: SendMessageOptions): Promise<SendMessageResponse>;
2659
2806
  sendMessage(params: SendMessageParams, body: SendMessageBody, options?: Omit<SendMessageOptions, 'params' | 'body'>): Promise<SendMessageResponse>;
package/index.js CHANGED
@@ -23,6 +23,16 @@ const operations = {
23
23
  "headerParams": [],
24
24
  "hasBody": true
25
25
  },
26
+ "calibrateDecisionBattery": {
27
+ "method": "POST",
28
+ "path": "/calibrate-decision-battery",
29
+ "pathParams": [],
30
+ "queryParams": [],
31
+ "headerParams": [
32
+ "x-app-id"
33
+ ],
34
+ "hasBody": true
35
+ },
26
36
  "chatRichContentContainment": {
27
37
  "method": "POST",
28
38
  "path": "/chat-rich-content-containment",
@@ -153,6 +163,16 @@ const operations = {
153
163
  ],
154
164
  "hasBody": true
155
165
  },
166
+ "decide": {
167
+ "method": "POST",
168
+ "path": "/decide",
169
+ "pathParams": [],
170
+ "queryParams": [],
171
+ "headerParams": [
172
+ "x-app-id"
173
+ ],
174
+ "hasBody": true
175
+ },
156
176
  "delegateHumanTaskFixture": {
157
177
  "method": "POST",
158
178
  "path": "/delegate-human-task-fixture",
@@ -513,6 +533,18 @@ const operations = {
513
533
  ],
514
534
  "hasBody": false
515
535
  },
536
+ "listDecisionBatteries": {
537
+ "method": "GET",
538
+ "path": "/list-decision-batteries",
539
+ "pathParams": [],
540
+ "queryParams": [
541
+ "workspaceSlug"
542
+ ],
543
+ "headerParams": [
544
+ "x-app-id"
545
+ ],
546
+ "hasBody": false
547
+ },
516
548
  "listLlmModels": {
517
549
  "method": "GET",
518
550
  "path": "/list-llm-models/{provider}",
@@ -682,6 +714,14 @@ const operations = {
682
714
  "headerParams": [],
683
715
  "hasBody": true
684
716
  },
717
+ "memoryPage": {
718
+ "method": "POST",
719
+ "path": "/memory-page",
720
+ "pathParams": [],
721
+ "queryParams": [],
722
+ "headerParams": [],
723
+ "hasBody": true
724
+ },
685
725
  "openTerminalSession": {
686
726
  "method": "POST",
687
727
  "path": "/open-terminal-session",
@@ -752,6 +792,26 @@ const operations = {
752
792
  "headerParams": [],
753
793
  "hasBody": false
754
794
  },
795
+ "postCliReplaceChannelTokenChannelId": {
796
+ "method": "POST",
797
+ "path": "/replace-channel-token/{channelId}",
798
+ "pathParams": [
799
+ "channelId"
800
+ ],
801
+ "queryParams": [],
802
+ "headerParams": [
803
+ "x-app-id"
804
+ ],
805
+ "hasBody": false
806
+ },
807
+ "postV1DelegatesMandateAuthoring": {
808
+ "method": "POST",
809
+ "path": "/v1/delegates/mandate-authoring",
810
+ "pathParams": [],
811
+ "queryParams": [],
812
+ "headerParams": [],
813
+ "hasBody": false
814
+ },
755
815
  "prepare": {
756
816
  "method": "GET",
757
817
  "path": "/prepare",
@@ -991,6 +1051,16 @@ const operations = {
991
1051
  ],
992
1052
  "hasBody": true
993
1053
  },
1054
+ "sendChannelMessage": {
1055
+ "method": "POST",
1056
+ "path": "/send-channel-message",
1057
+ "pathParams": [],
1058
+ "queryParams": [],
1059
+ "headerParams": [
1060
+ "x-app-id"
1061
+ ],
1062
+ "hasBody": true
1063
+ },
994
1064
  "sendMessage": {
995
1065
  "method": "POST",
996
1066
  "path": "/send-message/{workspaceSlug}/{threadSlug}",
@@ -1770,6 +1840,13 @@ class RealtimeXClient {
1770
1840
  );
1771
1841
  }
1772
1842
 
1843
+ calibrateDecisionBattery(...args) {
1844
+ return this.request(
1845
+ "calibrateDecisionBattery",
1846
+ normalizeOperationOptions(operations["calibrateDecisionBattery"], args)
1847
+ );
1848
+ }
1849
+
1773
1850
  chatRichContentContainment(...args) {
1774
1851
  return this.request(
1775
1852
  "chatRichContentContainment",
@@ -1861,6 +1938,13 @@ class RealtimeXClient {
1861
1938
  );
1862
1939
  }
1863
1940
 
1941
+ decide(...args) {
1942
+ return this.request(
1943
+ "decide",
1944
+ normalizeOperationOptions(operations["decide"], args)
1945
+ );
1946
+ }
1947
+
1864
1948
  delegateHumanTaskFixture(...args) {
1865
1949
  return this.request(
1866
1950
  "delegateHumanTaskFixture",
@@ -2092,6 +2176,13 @@ class RealtimeXClient {
2092
2176
  );
2093
2177
  }
2094
2178
 
2179
+ listDecisionBatteries(...args) {
2180
+ return this.request(
2181
+ "listDecisionBatteries",
2182
+ normalizeOperationOptions(operations["listDecisionBatteries"], args)
2183
+ );
2184
+ }
2185
+
2095
2186
  listLlmModels(...args) {
2096
2187
  return this.request(
2097
2188
  "listLlmModels",
@@ -2204,6 +2295,13 @@ class RealtimeXClient {
2204
2295
  );
2205
2296
  }
2206
2297
 
2298
+ memoryPage(...args) {
2299
+ return this.request(
2300
+ "memoryPage",
2301
+ normalizeOperationOptions(operations["memoryPage"], args)
2302
+ );
2303
+ }
2304
+
2207
2305
  openTerminalSession(...args) {
2208
2306
  return this.request(
2209
2307
  "openTerminalSession",
@@ -2253,6 +2351,20 @@ class RealtimeXClient {
2253
2351
  );
2254
2352
  }
2255
2353
 
2354
+ postCliReplaceChannelTokenChannelId(...args) {
2355
+ return this.request(
2356
+ "postCliReplaceChannelTokenChannelId",
2357
+ normalizeOperationOptions(operations["postCliReplaceChannelTokenChannelId"], args)
2358
+ );
2359
+ }
2360
+
2361
+ postV1DelegatesMandateAuthoring(...args) {
2362
+ return this.request(
2363
+ "postV1DelegatesMandateAuthoring",
2364
+ normalizeOperationOptions(operations["postV1DelegatesMandateAuthoring"], args)
2365
+ );
2366
+ }
2367
+
2256
2368
  prepare(...args) {
2257
2369
  return this.request(
2258
2370
  "prepare",
@@ -2400,6 +2512,13 @@ class RealtimeXClient {
2400
2512
  );
2401
2513
  }
2402
2514
 
2515
+ sendChannelMessage(...args) {
2516
+ return this.request(
2517
+ "sendChannelMessage",
2518
+ normalizeOperationOptions(operations["sendChannelMessage"], args)
2519
+ );
2520
+ }
2521
+
2403
2522
  sendMessage(...args) {
2404
2523
  return this.request(
2405
2524
  "sendMessage",
@@ -2642,5 +2761,5 @@ module.exports = {
2642
2761
  createRealtimeXClient,
2643
2762
  createRealtimeXWebhookClient,
2644
2763
  operations,
2645
- version: "2.0.39",
2764
+ version: "2.0.41",
2646
2765
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realtimex/sdk",
3
- "version": "2.0.39",
3
+ "version": "2.0.41",
4
4
  "description": "RealtimeX runtime SDK package and moderator agent skill assets.",
5
5
  "private": false,
6
6
  "main": "./index.js",
@@ -15,16 +15,16 @@ List, publish, inspect, pause, resume, and revoke RealTimeX workspace artifacts.
15
15
 
16
16
  ## CLI setup
17
17
 
18
- This skill uses `realtimex-pp-cli` version 2.0.39. Before using its commands:
18
+ This skill uses `realtimex-pp-cli` version 2.0.41. Before using its commands:
19
19
 
20
20
  ```bash
21
21
  realtimex-pp-cli --version
22
22
  ```
23
23
 
24
- If it is missing or does not report `realtimex-pp-cli 2.0.39`, install the pinned version:
24
+ If it is missing or does not report `realtimex-pp-cli 2.0.41`, install the pinned version:
25
25
 
26
26
  ```bash
27
- npm install -g @realtimex/pp-cli@2.0.39
27
+ npm install -g @realtimex/pp-cli@2.0.41
28
28
  ```
29
29
 
30
30
  For requests about the current workspace or thread, resolve context first:
@@ -15,16 +15,16 @@ Run RealTimeX automation workflows and guided automation-flow commands, includin
15
15
 
16
16
  ## CLI setup
17
17
 
18
- This skill uses `realtimex-pp-cli` version 2.0.39. Before using its commands:
18
+ This skill uses `realtimex-pp-cli` version 2.0.41. Before using its commands:
19
19
 
20
20
  ```bash
21
21
  realtimex-pp-cli --version
22
22
  ```
23
23
 
24
- If it is missing or does not report `realtimex-pp-cli 2.0.39`, install the pinned version:
24
+ If it is missing or does not report `realtimex-pp-cli 2.0.41`, install the pinned version:
25
25
 
26
26
  ```bash
27
- npm install -g @realtimex/pp-cli@2.0.39
27
+ npm install -g @realtimex/pp-cli@2.0.41
28
28
  ```
29
29
 
30
30
  For requests about the current workspace or thread, resolve context first:
@@ -79,6 +79,10 @@ realtimex-pp-cli prepare --agent
79
79
 
80
80
  - `realtimex-pp-cli loop-live-handoff-order-e2e` — Prove a live loop handoff stays above its active terminal-session card and card-linked reply.
81
81
 
82
+ **memory-page** — Manage memory page
83
+
84
+ - `realtimex-pp-cli memory-page` — Exercise the global Memory page with intercepted synthetic sources in an owned dev renderer.
85
+
82
86
  **run-automation-workflow** — Manage run automation workflow
83
87
 
84
88
  - `realtimex-pp-cli run-automation-workflow` — Run any app automation flow or scenario exposed via flowMetadata.cli.enabled=true by passing workflowName.
@@ -15,16 +15,16 @@ List, create, start, stop, and delete isolated RealTimeX browser sessions. Use f
15
15
 
16
16
  ## CLI setup
17
17
 
18
- This skill uses `realtimex-pp-cli` version 2.0.39. Before using its commands:
18
+ This skill uses `realtimex-pp-cli` version 2.0.41. Before using its commands:
19
19
 
20
20
  ```bash
21
21
  realtimex-pp-cli --version
22
22
  ```
23
23
 
24
- If it is missing or does not report `realtimex-pp-cli 2.0.39`, install the pinned version:
24
+ If it is missing or does not report `realtimex-pp-cli 2.0.41`, install the pinned version:
25
25
 
26
26
  ```bash
27
- npm install -g @realtimex/pp-cli@2.0.39
27
+ npm install -g @realtimex/pp-cli@2.0.41
28
28
  ```
29
29
 
30
30
  For requests about the current workspace or thread, resolve context first:
@@ -15,16 +15,16 @@ Create, configure, start, stop, and delete RealTimeX chat channels, approve pair
15
15
 
16
16
  ## CLI setup
17
17
 
18
- This skill uses `realtimex-pp-cli` version 2.0.39. Before using its commands:
18
+ This skill uses `realtimex-pp-cli` version 2.0.41. Before using its commands:
19
19
 
20
20
  ```bash
21
21
  realtimex-pp-cli --version
22
22
  ```
23
23
 
24
- If it is missing or does not report `realtimex-pp-cli 2.0.39`, install the pinned version:
24
+ If it is missing or does not report `realtimex-pp-cli 2.0.41`, install the pinned version:
25
25
 
26
26
  ```bash
27
- npm install -g @realtimex/pp-cli@2.0.39
27
+ npm install -g @realtimex/pp-cli@2.0.41
28
28
  ```
29
29
 
30
30
  For requests about the current workspace or thread, resolve context first:
@@ -53,7 +53,11 @@ realtimex-pp-cli prepare --agent
53
53
 
54
54
  **send-channel-file** — Manage send channel file
55
55
 
56
- - `realtimex-pp-cli send-channel-file` — Send one local CLI file back to an external channel using an explicit channel delivery context id.
56
+ - `realtimex-pp-cli send-channel-file` — Send one local file to the external chat that this terminal is answering.
57
+
58
+ **send-channel-message** — Manage send channel message
59
+
60
+ - `realtimex-pp-cli send-channel-message` — Post one message to the external chat (Zalo, Telegram, ...) that this terminal is answering.
57
61
 
58
62
  **start-channel** — Manage start channel
59
63
 
@@ -0,0 +1,62 @@
1
+ ---
2
+ name: realtimex-decisions
3
+ description: "Run advisory decision-model judgments, list decision batteries, and calibrate battery thresholds with the moderator CLI. Use for batch judgments and battery inspection."
4
+ allowed-tools: "Read Bash"
5
+ metadata:
6
+ openclaw:
7
+ requires:
8
+ bins:
9
+ - realtimex-pp-cli
10
+ ---
11
+
12
+ # RealTimeX Decisions
13
+
14
+ Run advisory decision-model judgments, list decision batteries, and calibrate battery thresholds with the moderator CLI. Use for batch judgments and battery inspection.
15
+
16
+ ## CLI setup
17
+
18
+ This skill uses `realtimex-pp-cli` version 2.0.41. Before using its commands:
19
+
20
+ ```bash
21
+ realtimex-pp-cli --version
22
+ ```
23
+
24
+ If it is missing or does not report `realtimex-pp-cli 2.0.41`, install the pinned version:
25
+
26
+ ```bash
27
+ npm install -g @realtimex/pp-cli@2.0.41
28
+ ```
29
+
30
+ For requests about the current workspace or thread, resolve context first:
31
+
32
+ ```bash
33
+ realtimex-pp-cli prepare --agent
34
+ ```
35
+
36
+ ## Command reference
37
+
38
+ **calibrate-decision-battery** — Manage calibrate decision battery
39
+
40
+ - `realtimex-pp-cli calibrate-decision-battery` — Fit per-model battery thresholds from labelled states or paired decision digests; report only unless write=true.
41
+
42
+ **decide** — Manage decide
43
+
44
+ - `realtimex-pp-cli decide` — Advisory decisions over freeform inputs or a named declarative battery. Workspace/freeform content is on-host only.
45
+
46
+ **list-decision-batteries** — Manage list decision batteries
47
+
48
+ - `realtimex-pp-cli list-decision-batteries` — List host and workspace batteries with the fitted status for the active model; no model call.
49
+
50
+ ## Domain rules
51
+
52
+ - Treat decision results as advisory. When fitted is false, only raw probabilities are available; do not treat them as approval.
53
+ - List batteries before using a named battery. Supply exactly one of battery or questions, and use workspaceSlug for workspace batteries.
54
+ - Freeform and workspace batteries stay on host. Off-host host batteries require consent for their egress class; do not bypass a denial.
55
+ - Calibrate in report-only mode before explicitly writing thresholds. A backend-unavailable response requires independent judgment, not a retry loop.
56
+
57
+ ## Shared constraints
58
+
59
+ - Run documented commands with `--agent`.
60
+ - Use exact identifiers returned by `prepare` or the relevant list/get command; do not guess values.
61
+ - Do not bypass the CLI with raw HTTP calls. If a required operation is absent, report that limitation.
62
+ - Ask one concise clarification when required target context is missing or ambiguous.
@@ -15,16 +15,16 @@ Manage RealTimeX Delegate scope bindings, policy drafts and compiler jobs, activ
15
15
 
16
16
  ## CLI setup
17
17
 
18
- This skill uses `realtimex-pp-cli` version 2.0.39. Before using its commands:
18
+ This skill uses `realtimex-pp-cli` version 2.0.41. Before using its commands:
19
19
 
20
20
  ```bash
21
21
  realtimex-pp-cli --version
22
22
  ```
23
23
 
24
- If it is missing or does not report `realtimex-pp-cli 2.0.39`, install the pinned version:
24
+ If it is missing or does not report `realtimex-pp-cli 2.0.41`, install the pinned version:
25
25
 
26
26
  ```bash
27
- npm install -g @realtimex/pp-cli@2.0.39
27
+ npm install -g @realtimex/pp-cli@2.0.41
28
28
  ```
29
29
 
30
30
  For requests about the current workspace or thread, resolve context first:
@@ -15,16 +15,16 @@ Configure RealTimeX heartbeat scheduling, agents, active hours, timezone, autopi
15
15
 
16
16
  ## CLI setup
17
17
 
18
- This skill uses `realtimex-pp-cli` version 2.0.39. Before using its commands:
18
+ This skill uses `realtimex-pp-cli` version 2.0.41. Before using its commands:
19
19
 
20
20
  ```bash
21
21
  realtimex-pp-cli --version
22
22
  ```
23
23
 
24
- If it is missing or does not report `realtimex-pp-cli 2.0.39`, install the pinned version:
24
+ If it is missing or does not report `realtimex-pp-cli 2.0.41`, install the pinned version:
25
25
 
26
26
  ```bash
27
- npm install -g @realtimex/pp-cli@2.0.39
27
+ npm install -g @realtimex/pp-cli@2.0.41
28
28
  ```
29
29
 
30
30
  For requests about the current workspace or thread, resolve context first:
@@ -15,16 +15,16 @@ Create, inspect, configure, start, stop, restart, and delete RealTimeX Local App
15
15
 
16
16
  ## CLI setup
17
17
 
18
- This skill uses `realtimex-pp-cli` version 2.0.39. Before using its commands:
18
+ This skill uses `realtimex-pp-cli` version 2.0.41. Before using its commands:
19
19
 
20
20
  ```bash
21
21
  realtimex-pp-cli --version
22
22
  ```
23
23
 
24
- If it is missing or does not report `realtimex-pp-cli 2.0.39`, install the pinned version:
24
+ If it is missing or does not report `realtimex-pp-cli 2.0.41`, install the pinned version:
25
25
 
26
26
  ```bash
27
- npm install -g @realtimex/pp-cli@2.0.39
27
+ npm install -g @realtimex/pp-cli@2.0.41
28
28
  ```
29
29
 
30
30
  For requests about the current workspace or thread, resolve context first:
@@ -15,16 +15,16 @@ Use this router to select the smallest RealTimeX skill that owns the requested o
15
15
 
16
16
  ## CLI setup
17
17
 
18
- This skill uses `realtimex-pp-cli` version 2.0.39. Before using its commands:
18
+ This skill uses `realtimex-pp-cli` version 2.0.41. Before using its commands:
19
19
 
20
20
  ```bash
21
21
  realtimex-pp-cli --version
22
22
  ```
23
23
 
24
- If it is missing or does not report `realtimex-pp-cli 2.0.39`, install the pinned version:
24
+ If it is missing or does not report `realtimex-pp-cli 2.0.41`, install the pinned version:
25
25
 
26
26
  ```bash
27
- npm install -g @realtimex/pp-cli@2.0.39
27
+ npm install -g @realtimex/pp-cli@2.0.41
28
28
  ```
29
29
 
30
30
  For requests about the current workspace or thread, resolve context first:
@@ -37,6 +37,7 @@ realtimex-pp-cli prepare --agent
37
37
 
38
38
  | Skill | Use for |
39
39
  | --- | --- |
40
+ | `realtimex-decisions` | Run advisory decision-model judgments, list decision batteries, and calibrate battery thresholds with the moderator CLI. Use for batch judgments and battery inspection. |
40
41
  | `realtimex-secrets` | Manage encrypted Login, Card, Identity, SSH key and Secure note items, tags and workspace scope with the moderator CLI. Use saved fields in terminal commands or browser forms through rtxexec. |
41
42
  | `realtimex-workspaces` | Manage RealTimeX workspaces, threads, messages, workspace personality, LLM configuration, and default agents. Use for workspace and conversation operations. |
42
43
  | `realtimex-terminal-agents` | Manage RealTimeX terminal agents, terminal sessions, session messages, and idle prompts. Use for desktop terminal-agent runtime and terminal-session lifecycle work. |
@@ -15,16 +15,16 @@ Manage RealTimeX plugins and agent skills, including configuration, enablement,
15
15
 
16
16
  ## CLI setup
17
17
 
18
- This skill uses `realtimex-pp-cli` version 2.0.39. Before using its commands:
18
+ This skill uses `realtimex-pp-cli` version 2.0.41. Before using its commands:
19
19
 
20
20
  ```bash
21
21
  realtimex-pp-cli --version
22
22
  ```
23
23
 
24
- If it is missing or does not report `realtimex-pp-cli 2.0.39`, install the pinned version:
24
+ If it is missing or does not report `realtimex-pp-cli 2.0.41`, install the pinned version:
25
25
 
26
26
  ```bash
27
- npm install -g @realtimex/pp-cli@2.0.39
27
+ npm install -g @realtimex/pp-cli@2.0.41
28
28
  ```
29
29
 
30
30
  For requests about the current workspace or thread, resolve context first:
@@ -15,16 +15,16 @@ Manage encrypted Login, Card, Identity, SSH key and Secure note items, tags and
15
15
 
16
16
  ## CLI setup
17
17
 
18
- This skill uses `realtimex-pp-cli` version 2.0.39. Before using its commands:
18
+ This skill uses `realtimex-pp-cli` version 2.0.41. Before using its commands:
19
19
 
20
20
  ```bash
21
21
  realtimex-pp-cli --version
22
22
  ```
23
23
 
24
- If it is missing or does not report `realtimex-pp-cli 2.0.39`, install the pinned version:
24
+ If it is missing or does not report `realtimex-pp-cli 2.0.41`, install the pinned version:
25
25
 
26
26
  ```bash
27
- npm install -g @realtimex/pp-cli@2.0.39
27
+ npm install -g @realtimex/pp-cli@2.0.41
28
28
  ```
29
29
 
30
30
  For requests about the current workspace or thread, resolve context first:
@@ -15,16 +15,16 @@ Manage RealTimeX terminal agents, terminal sessions, session messages, and idle
15
15
 
16
16
  ## CLI setup
17
17
 
18
- This skill uses `realtimex-pp-cli` version 2.0.39. Before using its commands:
18
+ This skill uses `realtimex-pp-cli` version 2.0.41. Before using its commands:
19
19
 
20
20
  ```bash
21
21
  realtimex-pp-cli --version
22
22
  ```
23
23
 
24
- If it is missing or does not report `realtimex-pp-cli 2.0.39`, install the pinned version:
24
+ If it is missing or does not report `realtimex-pp-cli 2.0.41`, install the pinned version:
25
25
 
26
26
  ```bash
27
- npm install -g @realtimex/pp-cli@2.0.39
27
+ npm install -g @realtimex/pp-cli@2.0.41
28
28
  ```
29
29
 
30
30
  For requests about the current workspace or thread, resolve context first:
@@ -15,16 +15,16 @@ Create, inspect, update, test, and delete RealTimeX public webhook endpoints and
15
15
 
16
16
  ## CLI setup
17
17
 
18
- This skill uses `realtimex-pp-cli` version 2.0.39. Before using its commands:
18
+ This skill uses `realtimex-pp-cli` version 2.0.41. Before using its commands:
19
19
 
20
20
  ```bash
21
21
  realtimex-pp-cli --version
22
22
  ```
23
23
 
24
- If it is missing or does not report `realtimex-pp-cli 2.0.39`, install the pinned version:
24
+ If it is missing or does not report `realtimex-pp-cli 2.0.41`, install the pinned version:
25
25
 
26
26
  ```bash
27
- npm install -g @realtimex/pp-cli@2.0.39
27
+ npm install -g @realtimex/pp-cli@2.0.41
28
28
  ```
29
29
 
30
30
  For requests about the current workspace or thread, resolve context first:
@@ -15,16 +15,16 @@ Manage RealTimeX workspaces, threads, messages, workspace personality, LLM confi
15
15
 
16
16
  ## CLI setup
17
17
 
18
- This skill uses `realtimex-pp-cli` version 2.0.39. Before using its commands:
18
+ This skill uses `realtimex-pp-cli` version 2.0.41. Before using its commands:
19
19
 
20
20
  ```bash
21
21
  realtimex-pp-cli --version
22
22
  ```
23
23
 
24
- If it is missing or does not report `realtimex-pp-cli 2.0.39`, install the pinned version:
24
+ If it is missing or does not report `realtimex-pp-cli 2.0.41`, install the pinned version:
25
25
 
26
26
  ```bash
27
- npm install -g @realtimex/pp-cli@2.0.39
27
+ npm install -g @realtimex/pp-cli@2.0.41
28
28
  ```
29
29
 
30
30
  For requests about the current workspace or thread, resolve context first: