@realtimex/sdk 2.0.8 → 2.0.10
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), send messages, setup personality,
|
|
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."
|
|
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.10
|
|
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.10`.
|
|
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.10`, 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,10 @@ 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-sessions** — Manage list terminal sessions
|
|
118
|
+
|
|
119
|
+
- `realtimex-pp-cli list-terminal-sessions` — List terminal runtime sessions known to the desktop app. Optionally filter by workspaceSlug and threadSlug.
|
|
120
|
+
|
|
117
121
|
**list-threads** — Manage list threads
|
|
118
122
|
|
|
119
123
|
- `realtimex-pp-cli list-threads <workspaceSlug>` — List threads for one exact workspace slug.
|
|
@@ -130,6 +134,10 @@ If `--version` reports "command not found" after install, the npm global bin dir
|
|
|
130
134
|
|
|
131
135
|
- `realtimex-pp-cli prepare` — Return compact workspace, thread, current workspace/thread from explicit workspaceSlug and threadSlug query parameters
|
|
132
136
|
|
|
137
|
+
**reload-agent-skills** — Manage reload agent skills
|
|
138
|
+
|
|
139
|
+
- `realtimex-pp-cli reload-agent-skills` — Force reload all enabled agent skills into one workspace working directory.
|
|
140
|
+
|
|
133
141
|
**reload-plugin** — Manage reload plugin
|
|
134
142
|
|
|
135
143
|
- `realtimex-pp-cli reload-plugin <pluginId>` — Reload one enabled plugin in runtime. Disabled plugins must be enabled before reload.
|
|
@@ -142,6 +150,14 @@ If `--version` reports "command not found" after install, the npm global bin dir
|
|
|
142
150
|
|
|
143
151
|
- `realtimex-pp-cli rename-workspace <workspaceSlug>` — Rename one workspace by exact workspace slug. Only the name is changed.
|
|
144
152
|
|
|
153
|
+
**resume-latest-terminal-session** — Manage resume latest terminal session
|
|
154
|
+
|
|
155
|
+
- `realtimex-pp-cli resume-latest-terminal-session` — Resume the latest terminal runtime session for one exact thread.
|
|
156
|
+
|
|
157
|
+
**resume-terminal-session** — Manage resume terminal session
|
|
158
|
+
|
|
159
|
+
- `realtimex-pp-cli resume-terminal-session <sessionId>` — Resume a terminal runtime session by attaching a CLI controller.
|
|
160
|
+
|
|
145
161
|
**send-message** — Manage send message
|
|
146
162
|
|
|
147
163
|
- `realtimex-pp-cli send-message <workspaceSlug> <threadSlug>` — Send one message to an exact thread using the same routing as channel replies.
|
|
@@ -190,6 +206,10 @@ If `--version` reports "command not found" after install, the npm global bin dir
|
|
|
190
206
|
|
|
191
207
|
- `realtimex-pp-cli stop-channel <channelId>` — Stop one chat channel by exact channel id.
|
|
192
208
|
|
|
209
|
+
**terminate-terminal-session** — Manage terminate terminal session
|
|
210
|
+
|
|
211
|
+
- `realtimex-pp-cli terminate-terminal-session <sessionId>` — Terminate a terminal runtime session by detaching any controller and closing the underlying PTY session.
|
|
212
|
+
|
|
193
213
|
**update-channel** — Manage update channel
|
|
194
214
|
|
|
195
215
|
- `realtimex-pp-cli update-channel <channelId>` — Update one chat channel by exact channel id. Only channel writable fields are changed.
|
|
@@ -320,9 +340,9 @@ Verify: `claude mcp list`
|
|
|
320
340
|
```bash
|
|
321
341
|
realtimex-pp-cli --version
|
|
322
342
|
```
|
|
323
|
-
If the command is missing or the output is not exactly `realtimex-pp-cli 2.0.
|
|
343
|
+
If the command is missing or the output is not exactly `realtimex-pp-cli 2.0.10`, reinstall the pinned version:
|
|
324
344
|
```bash
|
|
325
|
-
npm install -g @realtimex/pp-cli@2.0.
|
|
345
|
+
npm install -g @realtimex/pp-cli@2.0.10
|
|
326
346
|
```
|
|
327
347
|
Then run `realtimex-pp-cli --version` again and proceed only after exact-version verification succeeds.
|
|
328
348
|
2. Match the user query to the best command from the Unique Capabilities and Command Reference above.
|
|
@@ -340,6 +360,15 @@ This skill intentionally exposes a small action-first command set. Prefer these
|
|
|
340
360
|
* Never call the RealTimeX API directly with `curl`, `fetch`, raw HTTP clients, or custom scripts.
|
|
341
361
|
* If the current CLI cannot do the requested task, say the feature is not available and will be added soon.
|
|
342
362
|
* Use `--agent` on every command.
|
|
363
|
+
* 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.
|
|
364
|
+
* For requests that refer to "current workspace", "this workspace", "current thread", or "this thread", use those environment values directly when they are available.
|
|
365
|
+
* When you need the resolved current workspace/thread objects or related context, call:
|
|
366
|
+
|
|
367
|
+
```bash
|
|
368
|
+
realtimex-pp-cli prepare --workspace-slug "$RTX_WORKSPACE_SLUG" --thread-slug "$RTX_THREAD_SLUG" --agent
|
|
369
|
+
```
|
|
370
|
+
|
|
371
|
+
* 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.
|
|
343
372
|
* Always run first:
|
|
344
373
|
|
|
345
374
|
```bash
|
|
@@ -370,6 +399,13 @@ For workspace default-agent setup:
|
|
|
370
399
|
* Use exact agent `canonical` and optional agent `modelId` values from `prepare.agents`.
|
|
371
400
|
* Never use `prepare.models` for workspace default-agent setup.
|
|
372
401
|
|
|
402
|
+
For agent skills:
|
|
403
|
+
|
|
404
|
+
* Use `list-workspace-agent-skills` before enabling, disabling, or reloading workspace skills.
|
|
405
|
+
* For `reload-agent-skills`, always pass a workspace slug.
|
|
406
|
+
* If the user asks to reload skills for the current workspace, pass `--workspace-slug "$RTX_WORKSPACE_SLUG"`.
|
|
407
|
+
* After `reload-agent-skills` succeeds, reload your own skill context before relying on updated skill instructions.
|
|
408
|
+
|
|
373
409
|
For personality and heartbeat setup:
|
|
374
410
|
|
|
375
411
|
* Use `setup-personality` to get the target directory for workspace or global personality files.
|