@oked/openclaw-cli 0.6.25 → 0.6.26
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/README.md +4 -4
- package/bin/oked-openclaw.mjs +9 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -3,23 +3,23 @@
|
|
|
3
3
|
[](https://www.npmjs.com/package/@oked/openclaw-cli)
|
|
4
4
|
[](./LICENSE)
|
|
5
5
|
|
|
6
|
-
Pairing CLI for the [`@oked/openclaw`](../openclaw) plugin. Install the plugin with `openclaw plugins install
|
|
6
|
+
Pairing CLI for the [`@oked/openclaw`](../openclaw) plugin. Install the plugin from [ClawHub](https://clawhub.ai/plugins/@oked/openclaw) with `openclaw plugins install clawhub:@oked/openclaw`, then use this CLI to pair the device, write the OKed entry into `~/.openclaw/openclaw.json`, and restart the gateway. To install the plugin straight from npm, use `openclaw plugins install npm:@oked/openclaw`. The plugin requires OpenClaw 2026.5.4 or newer.
|
|
7
7
|
|
|
8
8
|
Approvals are decided in Telegram and on the [web dashboard](https://oked.ai/dashboard). The iPhone app is coming soon.
|
|
9
9
|
|
|
10
10
|
## Install
|
|
11
11
|
|
|
12
12
|
```bash
|
|
13
|
-
openclaw plugins install
|
|
13
|
+
openclaw plugins install clawhub:@oked/openclaw
|
|
14
14
|
npm install -g @oked/openclaw-cli
|
|
15
15
|
oked-openclaw init
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
`openclaw plugins install clawhub:@oked/openclaw` installs from [ClawHub](https://clawhub.ai/plugins/@oked/openclaw). On OpenClaw 2026.10.9 a package name with no source locator is an npm install. To install the plugin straight from npm instead, use `openclaw plugins install npm:@oked/openclaw`.
|
|
19
19
|
|
|
20
20
|
`openclaw` must already be on your PATH. `init` then:
|
|
21
21
|
|
|
22
|
-
1. If a local checkout or a global npm copy of `@oked/openclaw` is present, runs `openclaw plugins install --link <path>`. If the plugin is already installed and no local copy is present, skips install. Otherwise it tries `openclaw plugins install
|
|
22
|
+
1. If a local checkout or a global npm copy of `@oked/openclaw` is present, runs `openclaw plugins install --link <path>`. If the plugin is already installed and no local copy is present, skips install. Otherwise it tries `openclaw plugins install clawhub:@oked/openclaw` ([ClawHub](https://clawhub.ai/plugins/@oked/openclaw)). If that fails, it retries `openclaw plugins install npm:@oked/openclaw`.
|
|
23
23
|
2. 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.
|
|
24
24
|
3. 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`.
|
|
25
25
|
4. Adds `"oked"` to `plugins.allow` and writes `plugins.entries.oked` with `enabled`, `apiKey`, and `minTier`. Existing keys on that entry are kept.
|
package/bin/oked-openclaw.mjs
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Subcommands:
|
|
6
6
|
* oked-openclaw init Install the plugin if needed (`openclaw plugins install
|
|
7
|
-
*
|
|
8
|
-
* fails, or `--link` for a local copy),
|
|
7
|
+
* clawhub:@oked/openclaw`, then `npm:@oked/openclaw` if
|
|
8
|
+
* ClawHub fails, or `--link` for a local copy),
|
|
9
9
|
* persist API key + minTier into ~/.openclaw/openclaw.json,
|
|
10
10
|
* and restart the OpenClaw gateway daemon.
|
|
11
11
|
* oked-openclaw status Print install state, config, and backend reachability.
|
|
@@ -276,8 +276,12 @@ function detectDaemon() {
|
|
|
276
276
|
|
|
277
277
|
// --- commands -------------------------------------------------------------
|
|
278
278
|
|
|
279
|
-
/**
|
|
280
|
-
|
|
279
|
+
/**
|
|
280
|
+
* ClawHub locator. On OpenClaw 2026.10.9 a bare package name is an npm spec
|
|
281
|
+
* (`resolvePluginInstallSourcePlan`), and a noninteractive npm install stops
|
|
282
|
+
* with "Install cancelled; rerun with --force". The clawhub: prefix selects ClawHub.
|
|
283
|
+
*/
|
|
284
|
+
export const CLAWHUB_INSTALL_ARGS = ['plugins', 'install', 'clawhub:@oked/openclaw'];
|
|
281
285
|
/** npm specifier. Used when the ClawHub install fails. */
|
|
282
286
|
export const NPM_INSTALL_ARGS = ['plugins', 'install', 'npm:@oked/openclaw'];
|
|
283
287
|
/** Printed when both registry installs fail. */
|
|
@@ -359,7 +363,7 @@ async function cmdInit() {
|
|
|
359
363
|
console.log(' Leaving the current install in place.\n');
|
|
360
364
|
} else {
|
|
361
365
|
console.log('not on disk');
|
|
362
|
-
console.log(' Will try ClawHub: openclaw plugins install
|
|
366
|
+
console.log(' Will try ClawHub: openclaw plugins install clawhub:@oked/openclaw');
|
|
363
367
|
console.log(' If that fails: openclaw plugins install npm:@oked/openclaw\n');
|
|
364
368
|
}
|
|
365
369
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oked/openclaw-cli",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.26",
|
|
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 && node test/install-plan.test.mjs"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@oked/sdk": "0.6.
|
|
17
|
+
"@oked/sdk": "0.6.26"
|
|
18
18
|
},
|
|
19
19
|
"keywords": [
|
|
20
20
|
"openclaw",
|