@realtimex/sdk 2.0.9 → 2.0.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-moderator-sdk
|
|
3
|
-
description: "Use the RealTimeX API through the generated CLI for workspace, thread, channel (Telegram, Zalo, Discord), skills, plugins and send messages, setup personality, heartbeat tasks operations."
|
|
3
|
+
description: "Use the RealTimeX API through the generated CLI for workspace, thread, terminal-agent sessions, channel (Telegram, Zalo, Discord), skills, plugins and send messages, setup personality, heartbeat tasks operations."
|
|
4
4
|
author: ""
|
|
5
5
|
license: "Apache-2.0"
|
|
6
6
|
argument-hint: "<command> [args] | install cli"
|
|
@@ -20,15 +20,15 @@ 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.
|
|
23
|
+
npm install -g @realtimex/pp-cli@2.0.11
|
|
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.
|
|
29
|
+
The output must be `realtimex-pp-cli 2.0.11`.
|
|
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.
|
|
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.11`, 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
|
|
|
@@ -114,6 +114,14 @@ If `--version` reports "command not found" after install, the npm global bin dir
|
|
|
114
114
|
|
|
115
115
|
- `realtimex-pp-cli list-plugins` — List installed plugins with enabled state and runtime load status.
|
|
116
116
|
|
|
117
|
+
**list-terminal-agents** — Manage list terminal agents
|
|
118
|
+
|
|
119
|
+
- `realtimex-pp-cli list-terminal-agents` — List terminal CLI agents that can be used with open-terminal-session.
|
|
120
|
+
|
|
121
|
+
**list-terminal-sessions** — Manage list terminal sessions
|
|
122
|
+
|
|
123
|
+
- `realtimex-pp-cli list-terminal-sessions` — List terminal runtime sessions known to the desktop app. Optionally filter by workspaceSlug and threadSlug.
|
|
124
|
+
|
|
117
125
|
**list-threads** — Manage list threads
|
|
118
126
|
|
|
119
127
|
- `realtimex-pp-cli list-threads <workspaceSlug>` — List threads for one exact workspace slug.
|
|
@@ -126,6 +134,10 @@ If `--version` reports "command not found" after install, the npm global bin dir
|
|
|
126
134
|
|
|
127
135
|
- `realtimex-pp-cli list-workspaces` — List all workspaces visible to the current API caller. Use this before choosing a workspace slug.
|
|
128
136
|
|
|
137
|
+
**open-terminal-session** — Manage open terminal session
|
|
138
|
+
|
|
139
|
+
- `realtimex-pp-cli open-terminal-session` — Open a new desktop terminal session for one terminal CLI agent. Use list-terminal-agents or prepare.
|
|
140
|
+
|
|
129
141
|
**prepare** — Manage prepare
|
|
130
142
|
|
|
131
143
|
- `realtimex-pp-cli prepare` — Return compact workspace, thread, current workspace/thread from explicit workspaceSlug and threadSlug query parameters
|
|
@@ -146,6 +158,14 @@ If `--version` reports "command not found" after install, the npm global bin dir
|
|
|
146
158
|
|
|
147
159
|
- `realtimex-pp-cli rename-workspace <workspaceSlug>` — Rename one workspace by exact workspace slug. Only the name is changed.
|
|
148
160
|
|
|
161
|
+
**resume-latest-terminal-session** — Manage resume latest terminal session
|
|
162
|
+
|
|
163
|
+
- `realtimex-pp-cli resume-latest-terminal-session` — Resume the latest terminal runtime session for one exact thread.
|
|
164
|
+
|
|
165
|
+
**resume-terminal-session** — Manage resume terminal session
|
|
166
|
+
|
|
167
|
+
- `realtimex-pp-cli resume-terminal-session <sessionId>` — Resume a terminal runtime session by attaching a CLI controller.
|
|
168
|
+
|
|
149
169
|
**send-message** — Manage send message
|
|
150
170
|
|
|
151
171
|
- `realtimex-pp-cli send-message <workspaceSlug> <threadSlug>` — Send one message to an exact thread using the same routing as channel replies.
|
|
@@ -194,6 +214,10 @@ If `--version` reports "command not found" after install, the npm global bin dir
|
|
|
194
214
|
|
|
195
215
|
- `realtimex-pp-cli stop-channel <channelId>` — Stop one chat channel by exact channel id.
|
|
196
216
|
|
|
217
|
+
**terminate-terminal-session** — Manage terminate terminal session
|
|
218
|
+
|
|
219
|
+
- `realtimex-pp-cli terminate-terminal-session <sessionId>` — Terminate a terminal runtime session by detaching any controller and closing the underlying PTY session.
|
|
220
|
+
|
|
197
221
|
**update-channel** — Manage update channel
|
|
198
222
|
|
|
199
223
|
- `realtimex-pp-cli update-channel <channelId>` — Update one chat channel by exact channel id. Only channel writable fields are changed.
|
|
@@ -324,9 +348,9 @@ Verify: `claude mcp list`
|
|
|
324
348
|
```bash
|
|
325
349
|
realtimex-pp-cli --version
|
|
326
350
|
```
|
|
327
|
-
If the command is missing or the output is not exactly `realtimex-pp-cli 2.0.
|
|
351
|
+
If the command is missing or the output is not exactly `realtimex-pp-cli 2.0.11`, reinstall the pinned version:
|
|
328
352
|
```bash
|
|
329
|
-
npm install -g @realtimex/pp-cli@2.0.
|
|
353
|
+
npm install -g @realtimex/pp-cli@2.0.11
|
|
330
354
|
```
|
|
331
355
|
Then run `realtimex-pp-cli --version` again and proceed only after exact-version verification succeeds.
|
|
332
356
|
2. Match the user query to the best command from the Unique Capabilities and Command Reference above.
|
|
@@ -344,6 +368,15 @@ This skill intentionally exposes a small action-first command set. Prefer these
|
|
|
344
368
|
* Never call the RealTimeX API directly with `curl`, `fetch`, raw HTTP clients, or custom scripts.
|
|
345
369
|
* If the current CLI cannot do the requested task, say the feature is not available and will be added soon.
|
|
346
370
|
* Use `--agent` on every command.
|
|
371
|
+
* 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.
|
|
372
|
+
* For requests that refer to "current workspace", "this workspace", "current thread", or "this thread", use those environment values directly when they are available.
|
|
373
|
+
* When you need the resolved current workspace/thread objects or related context, call:
|
|
374
|
+
|
|
375
|
+
```bash
|
|
376
|
+
realtimex-pp-cli prepare --workspace-slug "$RTX_WORKSPACE_SLUG" --thread-slug "$RTX_THREAD_SLUG" --agent
|
|
377
|
+
```
|
|
378
|
+
|
|
379
|
+
* 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.
|
|
347
380
|
* Always run first:
|
|
348
381
|
|
|
349
382
|
```bash
|
|
@@ -374,6 +407,15 @@ For workspace default-agent setup:
|
|
|
374
407
|
* Use exact agent `canonical` and optional agent `modelId` values from `prepare.agents`.
|
|
375
408
|
* Never use `prepare.models` for workspace default-agent setup.
|
|
376
409
|
|
|
410
|
+
For terminal agents and terminal sessions:
|
|
411
|
+
|
|
412
|
+
* Use `list-terminal-agents` when you only need available terminal agents. Use `prepare` when you also need workspace/thread/provider/model context.
|
|
413
|
+
* 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.
|
|
414
|
+
* Use exact `agentName`, `providerId`, and `modelId` values from `list-terminal-agents` or `prepare.agents`.
|
|
415
|
+
* When opening a terminal session for the current thread, pass both `--workspace-slug "$RTX_WORKSPACE_SLUG"` and `--thread-slug "$RTX_THREAD_SLUG"`.
|
|
416
|
+
* Use `list-terminal-sessions` to inspect grouped terminal sessions by `workspaceSlug` and `threadSlug`. Each session includes compact identity fields and `attached` status.
|
|
417
|
+
* Use `resume-terminal-session` or `resume-latest-terminal-session` to resume + attach an existing session. Use `terminate-terminal-session` to close + detach a session.
|
|
418
|
+
|
|
377
419
|
For agent skills:
|
|
378
420
|
|
|
379
421
|
* Use `list-workspace-agent-skills` before enabling, disabling, or reloading workspace skills.
|