@realtimex/sdk 2.0.26 → 2.0.27

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
@@ -1550,7 +1550,7 @@ export declare class RealtimeXClient {
1550
1550
  /** Pause one published artifact by artifact id. Paused artifacts remain listed but stop serving publicly. */
1551
1551
  pauseArtifact(options?: PauseArtifactOptions): Promise<PauseArtifactResponse>;
1552
1552
  pauseArtifact(artifactId: string, options?: Omit<PauseArtifactOptions, 'params'>): Promise<PauseArtifactResponse>;
1553
- /** Return compact workspace, thread, current workspace/thread from explicit workspaceSlug and threadSlug query parameters, LLM provider, model, and CLI agent context for agents before choosing arguments. Agents should pass --workspace-slug "$RTX_WORKSPACE_SLUG" and --thread-slug "$RTX_THREAD_SLUG" when those environment variables exist. */
1553
+ /** 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. */
1554
1554
  prepare(options?: PrepareOptions): Promise<PrepareResponse>;
1555
1555
  prepare(query?: PrepareQuery, options?: Omit<PrepareOptions, 'query'>): Promise<PrepareResponse>;
1556
1556
  /** Promote one workspace-owned agent skill to a global managed skill by copying its files into a new global skill row. */
package/index.js CHANGED
@@ -1576,5 +1576,5 @@ module.exports = {
1576
1576
  createClient: createRealtimeXClient,
1577
1577
  createRealtimeXClient,
1578
1578
  operations,
1579
- version: "2.0.26",
1579
+ version: "2.0.27",
1580
1580
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realtimex/sdk",
3
- "version": "2.0.26",
3
+ "version": "2.0.27",
4
4
  "description": "RealtimeX runtime SDK package and moderator agent skill assets.",
5
5
  "private": false,
6
6
  "main": "./index.js",
@@ -20,20 +20,20 @@ This skill drives the `realtimex-pp-cli` binary. Verify the CLI is installed and
20
20
 
21
21
  1. Install or reinstall the pinned version via npm:
22
22
  ```bash
23
- npm install -g @realtimex/pp-cli@2.0.26
23
+ npm install -g @realtimex/pp-cli@2.0.27
24
24
  ```
25
25
  2. Verify the exact version:
26
26
  ```bash
27
27
  realtimex-pp-cli --version
28
28
  ```
29
- The output must be `realtimex-pp-cli 2.0.26`.
29
+ The output must be `realtimex-pp-cli 2.0.27`.
30
30
 
31
- If `--version` reports "command not found" after install, the npm global bin directory is not on `$PATH`. If it reports any version other than `2.0.26`, reinstall with the pinned npm command above. Do not proceed with skill commands until exact-version verification succeeds.
31
+ If `--version` reports "command not found" after install, the npm global bin directory is not on `$PATH`. If it reports any version other than `2.0.27`, reinstall with the pinned npm command above. Do not proceed with skill commands until exact-version verification succeeds.
32
32
 
33
33
  * Always run first:
34
34
 
35
35
  ```bash
36
- realtimex-pp-cli prepare --workspace-slug "$RTX_WORKSPACE_SLUG" --thread-slug "$RTX_THREAD_SLUG" --agent
36
+ realtimex-pp-cli prepare --agent
37
37
  ```
38
38
 
39
39
  ## Command Reference
@@ -188,7 +188,7 @@ If `--version` reports "command not found" after install, the npm global bin dir
188
188
 
189
189
  **prepare** — Manage prepare
190
190
 
191
- - `realtimex-pp-cli prepare` — Return compact workspace, thread, current workspace/thread from explicit workspaceSlug and threadSlug query parameters
191
+ - `realtimex-pp-cli prepare` — Return compact workspace, thread, current workspace/thread, LLM provider, model
192
192
 
193
193
  **promote-workspace-agent-skill** — Manage promote workspace agent skill
194
194
 
@@ -456,9 +456,9 @@ Verify: `claude mcp list`
456
456
  ```bash
457
457
  realtimex-pp-cli --version
458
458
  ```
459
- If the command is missing or the output is not exactly `realtimex-pp-cli 2.0.26`, reinstall the pinned version:
459
+ If the command is missing or the output is not exactly `realtimex-pp-cli 2.0.27`, reinstall the pinned version:
460
460
  ```bash
461
- npm install -g @realtimex/pp-cli@2.0.26
461
+ npm install -g @realtimex/pp-cli@2.0.27
462
462
  ```
463
463
  Then run `realtimex-pp-cli --version` again and proceed only after exact-version verification succeeds.
464
464
  2. Match the user query to the best command from the Unique Capabilities and Command Reference above.
@@ -476,19 +476,21 @@ This skill intentionally exposes a small action-first command set. Prefer these
476
476
  * Never call the RealTimeX API directly with `curl`, `fetch`, raw HTTP clients, or custom scripts.
477
477
  * If the current CLI cannot do the requested task, say the feature is not available and will be added soon.
478
478
  * Use `--agent` on every command.
479
- * Treat `$RTX_WORKSPACE_SLUG` as the current workspace slug when it is set, and `$RTX_THREAD_SLUG` as the current thread slug when it is set.
480
- * For requests that refer to "current workspace", "this workspace", "current thread", or "this thread", use those environment values directly when they are available.
481
- * When you need the resolved current workspace/thread objects or related context, call:
479
+ * In a managed RealtimeX terminal, let `prepare` resolve the current workspace and thread from authenticated terminal-session context. Do not require or forward workspace/thread environment variables to `prepare`.
480
+ * Treat `prepare` as the resolved source of truth for requests that refer to "current workspace", "this workspace", "current thread", or "this thread".
481
+ * `RTX_AGENT_CONTEXT_JSON` and the legacy `$RTX_WORKSPACE_SLUG` and `$RTX_THREAD_SLUG` aliases may be present for runtime compatibility, but do not block on inspecting them or manually pass them to `prepare`.
482
+ * Call the following whenever you need the resolved current workspace/thread objects or related context:
482
483
 
483
484
  ```bash
484
- realtimex-pp-cli prepare --workspace-slug "$RTX_WORKSPACE_SLUG" --thread-slug "$RTX_THREAD_SLUG" --agent
485
+ realtimex-pp-cli prepare --agent
485
486
  ```
486
487
 
487
- * If `$RTX_WORKSPACE_SLUG` or `$RTX_THREAD_SLUG` is missing for a current-context request that requires it, ask for the missing workspace or thread before running the command.
488
+ * For callers outside a managed RealtimeX terminal, `prepare` still accepts explicit `--workspace-slug` and `--thread-slug` compatibility inputs.
489
+ * Ask for a missing workspace or thread only when `prepare` cannot resolve the required current context or when the user intends to target a different context.
488
490
  * Always run first:
489
491
 
490
492
  ```bash
491
- realtimex-pp-cli prepare --workspace-slug "$RTX_WORKSPACE_SLUG" --thread-slug "$RTX_THREAD_SLUG" --agent
493
+ realtimex-pp-cli prepare --agent
492
494
  ```
493
495
 
494
496
  * Use exact workspace slugs, thread slugs, provider ids, model ids, agent `canonical`, and agent `modelId` values from `prepare`.
@@ -530,7 +532,7 @@ For terminal agents and terminal sessions:
530
532
  * Use `list-terminal-agents` when you only need available terminal agents. Use `prepare` when you also need workspace/thread/provider/model context.
531
533
  * Use `open-terminal-session` to open a new desktop terminal session for a terminal agent. It auto-attaches the CLI controller through the desktop runtime launch request.
532
534
  * Use exact `agentName`, `providerId`, and `modelId` values from `list-terminal-agents` or `prepare.agents`.
533
- * When opening a terminal session for the current thread, pass both `--workspace-slug "$RTX_WORKSPACE_SLUG"` and `--thread-slug "$RTX_THREAD_SLUG"`.
535
+ * When opening a terminal session for the current thread, pass the exact current workspace and thread slugs returned by `prepare`.
534
536
  * Use `list-terminal-sessions` to inspect grouped terminal sessions by `workspaceSlug` and `threadSlug`. Each session includes compact identity fields and `attached` status.
535
537
  * Use `resume-terminal-session` or `resume-latest-terminal-session` to resume + attach an existing session. Use `terminate-terminal-session` to close + detach a session.
536
538
 
@@ -538,7 +540,7 @@ For agent skills:
538
540
 
539
541
  * Use `list-workspace-agent-skills` before enabling, disabling, or reloading workspace skills.
540
542
  * For `reload-agent-skills`, always pass a workspace slug.
541
- * If the user asks to reload skills for the current workspace, pass `--workspace-slug "$RTX_WORKSPACE_SLUG"`.
543
+ * If the user asks to reload skills for the current workspace, pass the exact current workspace slug returned by `prepare`.
542
544
  * After `reload-agent-skills` succeeds, reload your own skill context before relying on updated skill instructions.
543
545
 
544
546
  For personality and heartbeat setup: