@realtimex/sdk 1.7.10 → 1.7.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realtimex/sdk",
3
- "version": "1.7.10",
3
+ "version": "1.7.11",
4
4
  "description": "SDK for building Local Apps that integrate with RealtimeX",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -2,12 +2,12 @@
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
4
  generated: 2026-05-07
5
- sdk_version: 1.7.10
5
+ sdk_version: 1.7.11
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**. Authentication is automatic when running inside RealtimeX.
10
+ Interact with the RealTimeX platform (`http://localhost:3001`) using `@realtimex/sdk` **v1.7.11**. Authentication is automatic when running inside RealtimeX.
11
11
 
12
12
  `<SKILL_DIR>` below refers to the directory containing this SKILL.md.
13
13
 
@@ -20,6 +20,7 @@ SKILL=<SKILL_DIR>/scripts/rtx.js
20
20
  ENV=--env-dir=<cwd>
21
21
 
22
22
  node "$SKILL" ping $ENV
23
+ node "$SKILL" context $ENV
23
24
  node "$SKILL" agents $ENV
24
25
  node "$SKILL" workspaces $ENV
25
26
  node "$SKILL" threads <workspace-slug> $ENV
@@ -52,6 +53,21 @@ When the skill runs inside a spawned ACP or desktop terminal session, RealtimeX
52
53
 
53
54
  The bundled `sdk-init` and `rtx.js` helpers use those env vars as default context for terminal actions and thread listing. Explicit arguments still win.
54
55
 
56
+ ## Workspace And Thread Rule
57
+
58
+ When the skill is used and a task needs workspace/thread context:
59
+
60
+ 1. Check current context first.
61
+ Use `const { sdk, context } = await initSDK()` or `node "$SKILL" context`.
62
+ 2. If `context.workspaceSlug` or `context.threadSlug` exists, use it as the default.
63
+ 3. If the user explicitly provided workspace/thread, those values override the default context.
64
+ 4. If no current context is available:
65
+ - list workspaces first
66
+ - list threads for the chosen workspace if a thread is needed
67
+ - ask the user only when still ambiguous
68
+
69
+ Do not guess a workspace or thread if the current context is unknown.
70
+
55
71
  ---
56
72
 
57
73
  ## Desktop Terminal Sessions
@@ -1,6 +1,6 @@
1
1
  # RealTimeX SDK — API Reference
2
2
 
3
- > Auto-generated from `@realtimex/sdk` source · v**1.7.10** · 2026-05-07
3
+ > Auto-generated from `@realtimex/sdk` source · v**1.7.11** · 2026-05-07
4
4
 
5
5
  **Package:** `@realtimex/sdk` (CJS) · **Server:** `http://localhost:3001`
6
6
  **Developer Mode auth:** `Authorization: Bearer <apiKey>`
@@ -42,6 +42,7 @@ Use this module for visible Electron terminal sessions. This is the correct path
42
42
 
43
43
  Do not use ACP for these unless the user explicitly asks for ACP/headless mode.
44
44
  If the current process was spawned by RealtimeX, prefer `process.env.RTX_WORKSPACE_SLUG` and `process.env.RTX_THREAD_SLUG` as default context before guessing or asking the user.
45
+ Always resolve current workspace/thread context first when a terminal action needs it: explicit user input > spawned-process env > list workspaces/threads > ask user if still ambiguous.
45
46
 
46
47
  ### `V1DesktopRuntimeSessionsModule`
47
48
 
@@ -1,6 +1,6 @@
1
1
  # Known Issues — Source-Detected
2
2
 
3
- > Auto-generated by `scripts/generate-skill.mjs` · SDK **1.7.10** · 2026-05-07
3
+ > Auto-generated by `scripts/generate-skill.mjs` · SDK **1.7.11** · 2026-05-07
4
4
 
5
5
  Run `node scripts/generate-skill.mjs --force` after SDK source changes to refresh.
6
6
 
@@ -73,6 +73,15 @@ function resolveWorkspaceFlagOrContext(context = {}) {
73
73
  // ---------------------------------------------------------------------------
74
74
  const CMD = {};
75
75
 
76
+ CMD.context = async () => {
77
+ const { context } = await getSDK();
78
+ print({
79
+ workspaceSlug: context?.workspaceSlug || null,
80
+ threadSlug: context?.threadSlug || null,
81
+ hasContext: Boolean(context?.workspaceSlug || context?.threadSlug),
82
+ });
83
+ };
84
+
76
85
  // -- ping -------------------------------------------------------------------
77
86
  // Source: index.ts → sdk.ping() → { success, mode, appId, timestamp }
78
87
  CMD.ping = async () => { const { sdk } = await getSDK(); print(await sdk.ping()); };
@@ -892,6 +901,7 @@ Connection:
892
901
 
893
902
  sdk.api.*:
894
903
  agents / workspaces / threads <slug> / task <uuid>
904
+ context
895
905
 
896
906
  sdk.activities.*:
897
907
  activities [--status --limit --offset]