@oked/openclaw-cli 0.6.19 → 0.6.21

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.
Files changed (2) hide show
  1. package/README.md +17 -11
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,6 +1,11 @@
1
1
  # @oked/openclaw-cli
2
2
 
3
- Installer CLI for the [`@oked/openclaw`](../openclaw) plugin. Wraps `openclaw plugins install`, writes the OKed entry into `~/.openclaw/openclaw.json`, and restarts the gateway.
3
+ [![npm version](https://img.shields.io/npm/v/@oked/openclaw-cli.svg)](https://www.npmjs.com/package/@oked/openclaw-cli)
4
+ [![License: Apache-2.0](https://img.shields.io/npm/l/@oked/openclaw-cli.svg)](./LICENSE)
5
+
6
+ Installer for the [`@oked/openclaw`](../openclaw) plugin. It runs `openclaw plugins install`, writes the OKed entry into `~/.openclaw/openclaw.json`, and can restart the gateway.
7
+
8
+ Approvals are decided in Telegram and on the [web dashboard](https://oked.ai/dashboard). The iPhone app is coming soon.
4
9
 
5
10
  ## Install
6
11
 
@@ -9,22 +14,23 @@ npm install -g @oked/openclaw @oked/openclaw-cli
9
14
  oked-openclaw init
10
15
  ```
11
16
 
12
- `init` will:
17
+ `openclaw` must already be on your PATH. `init` then:
13
18
 
14
- 1. Locate the plugin source (sibling monorepo package or the global install).
15
- 2. Run `openclaw plugins install --link <path>`.
16
- 3. Prompt for `OKED_API_KEY` and `minTier` (defaults to `review`).
17
- 4. Write `plugins.allow: ["oked"]` and `plugins.entries.oked: { enabled, apiKey, backendUrl, minTier }` into `openclaw.json`.
18
- 5. Detect the OpenClaw daemon (systemd / pm2 / launchd / bare process) and offer to restart it.
19
+ 1. Finds the plugin (a sibling `packages/openclaw` in this monorepo, or the global `@oked/openclaw` install).
20
+ 2. Runs `openclaw plugins install --link <path>`.
21
+ 3. Reuses `OKED_API_KEY` or an existing `plugins.entries.oked.apiKey`. Otherwise it pairs this device in the browser and saves the key to `~/.oked/config.json`. It does not ask you to paste a key.
22
+ 4. Keeps `OKED_MIN_TIER` or an existing `minTier` when one is set. Otherwise a terminal asks (default `review`), and a non-interactive run uses `review`. Accepted values are `safe`, `warning`, `review`, and `high_stakes`.
23
+ 5. Adds `"oked"` to `plugins.allow` and writes `plugins.entries.oked` with `enabled`, `apiKey`, `backendUrl`, and `minTier`. Existing keys on that entry are kept.
24
+ 6. Looks for a running gateway (systemd user or system, pm2, launchd, or a bare process) and asks before restarting it.
19
25
 
20
26
  ## Subcommands
21
27
 
22
28
  | Command | Description |
23
29
  |---|---|
24
- | `oked-openclaw init` | Install the plugin and configure openclaw.json |
25
- | `oked-openclaw status` | Show install state, config, and backend reachability |
26
- | `oked-openclaw test` | Send a test approval request via the OKed SDK |
27
- | `oked-openclaw uninstall` | Remove the OKed entry and uninstall the plugin |
30
+ | `oked-openclaw init` | Install the plugin and update `openclaw.json` |
31
+ | `oked-openclaw status` | Show install state, config, and whether `GET /health` on the backend succeeds |
32
+ | `oked-openclaw test` | Send one `high_stakes` approval. Decide it in Telegram or on the dashboard. |
33
+ | `oked-openclaw uninstall` | Remove the OKed entry and run `openclaw plugins uninstall oked` |
28
34
 
29
35
  ## License
30
36
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oked/openclaw-cli",
3
- "version": "0.6.19",
3
+ "version": "0.6.21",
4
4
  "description": "Installer CLI for the @oked/openclaw plugin. Wraps `openclaw plugins install` and configures the plugin entry in openclaw.json.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -14,7 +14,7 @@
14
14
  "test": "node --check bin/oked-openclaw.mjs"
15
15
  },
16
16
  "dependencies": {
17
- "@oked/sdk": "0.6.19"
17
+ "@oked/sdk": "0.6.21"
18
18
  },
19
19
  "keywords": [
20
20
  "openclaw",