@oked/openclaw 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 CHANGED
@@ -11,13 +11,19 @@ OpenClaw 2026.5.4 or newer is required. That release treats the returned denial
11
11
 
12
12
  ## Install
13
13
 
14
- Install from npm:
14
+ Install from [ClawHub](https://clawhub.ai/plugins/@oked/openclaw):
15
15
 
16
16
  ```bash
17
- openclaw plugins install npm:@oked/openclaw
17
+ openclaw plugins install clawhub:@oked/openclaw
18
18
  ```
19
19
 
20
- Once the package is listed on ClawHub, `openclaw plugins install @oked/openclaw` installs it from there.
20
+ On OpenClaw 2026.10.9 a package name with no source locator is an npm install. A noninteractive npm install stops with `Install cancelled; rerun with --force`. The `clawhub:` locator selects ClawHub. That install may also ask you to accept the plugin capabilities.
21
+
22
+ To install straight from npm instead:
23
+
24
+ ```bash
25
+ openclaw plugins install npm:@oked/openclaw
26
+ ```
21
27
 
22
28
  Pair this machine with [`@oked/openclaw-cli`](../openclaw-cli). The CLI needs the `openclaw` command on your PATH. It pairs this device (or reuses an existing API key), sets `minTier` (a terminal prompt when none is set), writes the entry into `~/.openclaw/openclaw.json`, and offers to restart the gateway.
23
29
 
@@ -26,7 +32,7 @@ npm install -g @oked/openclaw-cli
26
32
  oked-openclaw init
27
33
  ```
28
34
 
29
- If this package is not already installed, and there is no local checkout, `oked-openclaw init` tries `openclaw plugins install @oked/openclaw` (ClawHub). If that fails, it retries `openclaw plugins install npm:@oked/openclaw`. A checkout or a global npm copy is still linked with `openclaw plugins install --link`.
35
+ If this package is not already installed, and there is no local checkout, `oked-openclaw init` 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`. A checkout or a global npm copy is still linked with `openclaw plugins install --link`.
30
36
 
31
37
  To wire the config by hand after the plugin install, edit `~/.openclaw/openclaw.json`:
32
38
 
@@ -66,7 +72,7 @@ Names are matched against OpenClaw skill conventions, then unknown names default
66
72
 
67
73
  - **High stakes** (always an approval at the default `minTier`): names that send, post, publish, call, dial, charge, pay, delete, drop, deploy, or release, among the patterns in `src/classify-openclaw.ts`.
68
74
  - **Review** (an approval at the default `minTier`): `create`, `update`, `write`, `edit`, `rename`, `modify`, and any tool name the classifier does not recognize.
69
- - **Safe** (never gated): `get_*`, `list_*`, `search_*`, `read_*`, `find_*`, and the other read-style prefixes and suffixes in that file.
75
+ - **Safe** (never gated): exact read-only OpenClaw built-ins such as `read`, `ls`, `web_search`, `web_fetch`, and `memory_search` (the full list is in `src/classify-openclaw.ts`), plus `get_*`, `list_*`, `search_*`, `read_*`, `find_*`, and the other read-style prefixes and suffixes in that file. `write`, `edit`, and `apply_patch` stay at review.
70
76
  - **Bash / shell / exec**: deferred to the `@oked/sdk` shell classifier (`rm -rf`, `git push --force`, and the rest).
71
77
 
72
78
  `warning` is logged by the SDK classifier and does not block, even if you set `minTier` below `review`.
@@ -32,6 +32,41 @@ const SAFE_PATTERNS = [
32
32
  /_version$/,
33
33
  /_health$/,
34
34
  ];
35
+ /**
36
+ * Exact OpenClaw core tool ids that only read, list, search, or fetch.
37
+ * The match is case-insensitive and exact, so `read` is safe and
38
+ * `read_and_delete_file` is not. Names are from OpenClaw v2026.10.9
39
+ * `src/agents/tool-catalog.ts` (`CORE_TOOL_DEFINITIONS`). Session summaries
40
+ * are from `src/agents/tool-description-presets.ts` at the same tag.
41
+ *
42
+ * Not included: `glob`, `grep`, `find`, and `search` are not core tool ids
43
+ * in that catalog. `write`, `edit`, and `apply_patch` change files.
44
+ * `exec`, `bash`, and `shell` stay on the shell classifier.
45
+ */
46
+ const SAFE_BUILTIN_TOOLS = new Set([
47
+ // Files: "List directory entries", "Read file contents".
48
+ "ls",
49
+ "read",
50
+ // Web: "Search the web", "Fetch web content", "Search X posts".
51
+ "web_search",
52
+ "web_fetch",
53
+ "x_search",
54
+ // Memory: "Semantic search", "Read memory files".
55
+ "memory_search",
56
+ "memory_get",
57
+ // Sessions and agents that only list, read, or search.
58
+ "presence",
59
+ "sessions_list",
60
+ "sessions_history",
61
+ "sessions_search",
62
+ "conversations_list",
63
+ "session_status",
64
+ "github_identity_status",
65
+ "agents_list",
66
+ "get_goal",
67
+ "skills_search",
68
+ "skills_read",
69
+ ]);
35
70
  const HIGH_STAKES_PATTERNS = [
36
71
  // Communication that touches the real world
37
72
  /(_|^)(send|reply|post|publish|broadcast|email|sms|imessage|whatsapp|slack|telegram|tweet|toot)$/,
@@ -72,6 +107,8 @@ export function classifyOpenClawTool(toolName, toolInput, opts) {
72
107
  if (re.test(lower))
73
108
  return "high_stakes";
74
109
  }
110
+ if (SAFE_BUILTIN_TOOLS.has(lower))
111
+ return "safe";
75
112
  for (const re of SAFE_PATTERNS) {
76
113
  if (re.test(lower))
77
114
  return "safe";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oked/openclaw",
3
- "version": "0.6.25",
3
+ "version": "0.6.26",
4
4
  "description": "Pauses risky OpenClaw actions, like rm -rf, force-push, destructive SQL and prod deploys, until you approve them in Telegram or on the OKed web dashboard. Everything else just runs. Every decision gets a signed receipt.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -21,7 +21,7 @@
21
21
  "prebuild": "npm run build --workspace=@oked/sdk",
22
22
  "build": "tsc",
23
23
  "dev": "tsc --watch",
24
- "test": "npm run build && node src/clawhub-metadata.test.mjs && node src/script-excerpt.test.mjs && node src/smoke.test.mjs",
24
+ "test": "npm run build && node src/classify-openclaw.test.mjs && node src/clawhub-metadata.test.mjs && node src/script-excerpt.test.mjs && node src/smoke.test.mjs",
25
25
  "prepublishOnly": "npm run build"
26
26
  },
27
27
  "openclaw": {
@@ -51,7 +51,7 @@
51
51
  }
52
52
  },
53
53
  "dependencies": {
54
- "@oked/sdk": "0.6.25"
54
+ "@oked/sdk": "0.6.26"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@types/node": "^26.6.5",