@rivus/agent 0.14.4 → 0.15.0

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": "@rivus/agent",
3
- "version": "0.14.4",
3
+ "version": "0.15.0",
4
4
  "description": "A local agent daemon core built around a usable agent harness and domain events.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -50,7 +50,8 @@
50
50
  "types": "./dist/bootstrap/pi-feishu.d.ts",
51
51
  "import": "./dist/bootstrap/pi-feishu.js"
52
52
  },
53
- "./plugin/starter": "./examples/rivus-starter.plugin.mjs"
53
+ "./plugin/starter": "./examples/rivus-starter.plugin.mjs",
54
+ "./skills/runtime-management/SKILL.md": "./skills/runtime-management/SKILL.md"
54
55
  },
55
56
  "files": [
56
57
  "dist",
@@ -58,7 +59,8 @@
58
59
  "examples/*.bootstrap.ts",
59
60
  "examples/*.json",
60
61
  "README.md",
61
- "LICENSE"
62
+ "LICENSE",
63
+ "skills/runtime-management/SKILL.md"
62
64
  ],
63
65
  "publishConfig": {
64
66
  "access": "public"
@@ -0,0 +1,61 @@
1
+ ---
2
+ name: runtime-management
3
+ description: Use when the user asks what model is active, requests a persistent model change, or asks to restore the previous model; invoke the installed Rivus CLI and report the returned status.
4
+ ---
5
+
6
+ # Runtime management
7
+
8
+ Use the installed `rivus` executable for the personal Home's model management. The CLI is the source of truth for the
9
+ current revision and the durable request status. It validates an exact `provider/model` submitted by the Host; it does
10
+ not enumerate the supported model catalog. Use a model identifier already confirmed by the Home configuration,
11
+ deployment, the provider's official documentation, or a trusted Host response. Do not guess aliases or infer an
12
+ identifier from a model family name. When the identifier remains ambiguous, ask the user for the exact value; the Host
13
+ performs the final validation before accepting it.
14
+
15
+ ## Query
16
+
17
+ Run:
18
+
19
+ ```bash
20
+ rivus model status --json
21
+ ```
22
+
23
+ Read `current`, `source`, `revision`, and `pending` from the JSON response. If a request is in progress, keep its
24
+ `requestId` and `reason` visible to the user. Query a known request with:
25
+
26
+ ```bash
27
+ rivus model status --request <request-id> --json
28
+ ```
29
+
30
+ ## Set a default model
31
+
32
+ Use the exact `provider/model` value confirmed by the Host. First obtain the current `revision`, then submit one request
33
+ with a fresh request id:
34
+
35
+ ```bash
36
+ rivus model set --model <provider/model> --expected-revision <revision> --request <request-id> --json
37
+ ```
38
+
39
+ The first response confirms receipt. When the response is `pending`, report its `requestId` and finish the current Run.
40
+ The Host completes validation and activation across the safe boundary and sends the final notification. A later Run can
41
+ query the request to determine whether the final state is `applied`, `failed`, `restored`, or `recovery-required`.
42
+ Keep the same request id after a disconnect instead of submitting the change again with a new id.
43
+
44
+ ## Restore the previous model
45
+
46
+ Use the same revision and request rules:
47
+
48
+ ```bash
49
+ rivus model rollback --expected-revision <revision> --request <request-id> --json
50
+ ```
51
+
52
+ If there is no previous selection, or the provider no longer supports it, report the returned limitation. Restoring a
53
+ model does not undo messages, memory, or completed business effects.
54
+
55
+ ## Trust and scope
56
+
57
+ Only a trusted Host Run can authorize `set` and `rollback`. A local client without that context can read diagnostics but
58
+ cannot grant itself permission. Do not add identity, owner, Home, credential, or authorization fields to a command.
59
+
60
+ When a command reports `failed` or `recovery-required`, preserve the returned error code and request id. Do not infer
61
+ success from process exit code `0`; inspect the JSON business status.