@realtimex/sdk 2.0.11 → 2.0.12

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": "2.0.11",
3
+ "version": "2.0.12",
4
4
  "description": "SDK for building Local Apps that integrate with RealtimeX",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -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.11
23
+ npm install -g @realtimex/pp-cli@2.0.12
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.11`.
29
+ The output must be `realtimex-pp-cli 2.0.12`.
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.11`, 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.12`, 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
 
@@ -218,6 +218,14 @@ If `--version` reports "command not found" after install, the npm global bin dir
218
218
 
219
219
  - `realtimex-pp-cli terminate-terminal-session <sessionId>` — Terminate a terminal runtime session by detaching any controller and closing the underlying PTY session.
220
220
 
221
+ **trigger-workspace-heartbeat** — Manage trigger workspace heartbeat
222
+
223
+ - `realtimex-pp-cli trigger-workspace-heartbeat <workspaceSlug>` — Trigger the main heartbeat executor for a workspace immediately. Scheduled tasks are ignored.
224
+
225
+ **trigger-workspace-heartbeat-tasks** — Manage trigger workspace heartbeat tasks
226
+
227
+ - `realtimex-pp-cli trigger-workspace-heartbeat-tasks <workspaceSlug>` — Trigger specified HEARTBEAT.md task names for a workspace immediately.
228
+
221
229
  **update-channel** — Manage update channel
222
230
 
223
231
  - `realtimex-pp-cli update-channel <channelId>` — Update one chat channel by exact channel id. Only channel writable fields are changed.
@@ -348,9 +356,9 @@ Verify: `claude mcp list`
348
356
  ```bash
349
357
  realtimex-pp-cli --version
350
358
  ```
351
- If the command is missing or the output is not exactly `realtimex-pp-cli 2.0.11`, reinstall the pinned version:
359
+ If the command is missing or the output is not exactly `realtimex-pp-cli 2.0.12`, reinstall the pinned version:
352
360
  ```bash
353
- npm install -g @realtimex/pp-cli@2.0.11
361
+ npm install -g @realtimex/pp-cli@2.0.12
354
362
  ```
355
363
  Then run `realtimex-pp-cli --version` again and proceed only after exact-version verification succeeds.
356
364
  2. Match the user query to the best command from the Unique Capabilities and Command Reference above.
@@ -14,7 +14,32 @@ Use `cron` for complex schedules, for example `0 9 * * *`.
14
14
  Use `agent` to run a task with a specific terminal agent, for example `@codex-terminal`.
15
15
  Use `model` to run a task with a specific model, for example `gpt-5.5-medium`.
16
16
  Use `skills` to prefer skills for the task, for example `agent-browser, realtimex-moderator-sdk`.
17
- `agent`, `model`, `skills`, `interval`, and `cron` are optional. If omitted, the task inherits from the main heartbeat executor.
17
+ Use `executor: shell` and `command` to run a shell command instead of an agent.
18
+ `agent`, `model`, `skills`, `executor`, `command`, `interval`, and `cron` are optional. If omitted, the task inherits from the main heartbeat executor.
19
+ When a shell command prints valid JSON, it can trigger additional tasks. Use one of these forms:
20
+
21
+ ```json
22
+ ["task-name-1", "task-name-2"]
23
+ ```
24
+
25
+ ```json
26
+ {
27
+ "tasks": ["task-name-1", "task-name-2"],
28
+ "reason": "metrics changed"
29
+ }
30
+ ```
31
+
32
+ To trigger tasks in another workspace, include `workspace`:
33
+
34
+ ```json
35
+ {
36
+ "workspace": "other-workspace-slug",
37
+ "tasks": ["task-name-1"],
38
+ "reason": "shared dependency changed"
39
+ }
40
+ ```
41
+
42
+ Only valid JSON triggers task dispatch. If the shell output is not valid JSON, no extra tasks are run.
18
43
 
19
44
  tasks:
20
45
 
@@ -27,6 +52,10 @@ tasks:
27
52
  - name: weekday-morning-task
28
53
  cron: 0 9 * * 1-5
29
54
  prompt: Describe what should run on a cron schedule
55
+ - name: sync-metrics
56
+ interval: 30m
57
+ executor: shell
58
+ command: bash ./scripts/sync-metrics.sh
30
59
  - name: another-task
31
60
  prompt: Tasks without interval run at the main check interval
32
61