Add shell command explainer (#75004) · openclaw/openclaw@207aa18
jesse-merhi
·
2026-05-03
·
via Recent Commits to openclaw:main
File tree
src/infra/command-explainer
| Original file line number | Diff line number | Diff line change |
|---|
@@ -15,6 +15,7 @@ Docs: https://docs.openclaw.ai
|
15 | 15 | - Discord/status: add degraded Discord transport and gateway event-loop starvation signals to `openclaw channels status`, `openclaw status --deep`, and fetch-timeout logs so intermittent socket resets do not look like a healthy running channel. (#76327) Thanks @joshavant. |
16 | 16 | - Plugins/update: on the beta OpenClaw update channel, default-line npm and ClawHub plugin updates try `@beta` first and fall back to default/latest when no plugin beta release exists. |
17 | 17 | - Channels/WhatsApp: support explicit WhatsApp Channel/Newsletter `@newsletter` outbound message targets with channel session metadata instead of DM routing. Fixes #13417; carries forward the narrow outbound target idea from #13424. Thanks @vincentkoc and @agentz-manfred. |
| 18 | +- Exec approvals: add a tree-sitter-backed shell command explainer for future approval and command-review surfaces. (#75004) Thanks @jesse-merhi. |
18 | 19 | |
19 | 20 | ### Fixes |
20 | 21 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -10,6 +10,7 @@ const rootEntries = [
|
10 | 10 | "src/entry.ts!", |
11 | 11 | "src/cli/daemon-cli.ts!", |
12 | 12 | "src/infra/warning-filter.ts!", |
| 13 | +"src/infra/command-explainer/index.ts!", |
13 | 14 | bundledPluginFile("telegram", "src/audit.ts", "!"), |
14 | 15 | bundledPluginFile("telegram", "src/token.ts", "!"), |
15 | 16 | "src/hooks/bundled/*/handler.ts!", |
@@ -139,6 +140,7 @@ const config = {
|
139 | 140 | "@openclaw/*", |
140 | 141 | "playwright-core", |
141 | 142 | "sqlite-vec", |
| 143 | +"tree-sitter-bash", |
142 | 144 | ...rootBundledPluginRuntimeDependencies, |
143 | 145 | ], |
144 | 146 | project: [ |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1700,10 +1700,12 @@
|
1700 | 1700 | "sqlite-vec": "0.1.9", |
1701 | 1701 | "tar": "7.5.13", |
1702 | 1702 | "tokenjuice": "0.7.0", |
| 1703 | +"tree-sitter-bash": "^0.25.1", |
1703 | 1704 | "tslog": "^4.10.2", |
1704 | 1705 | "typebox": "1.1.37", |
1705 | 1706 | "undici": "8.1.0", |
1706 | 1707 | "web-push": "^3.6.7", |
| 1708 | +"web-tree-sitter": "^0.26.8", |
1707 | 1709 | "ws": "^8.20.0", |
1708 | 1710 | "yaml": "^2.8.3", |
1709 | 1711 | "zod": "^4.4.1" |
|
1784 | 1786 | "sharp" |
1785 | 1787 | ], |
1786 | 1788 | "ignoredBuiltDependencies": [ |
1787 | | -"koffi" |
| 1789 | +"koffi", |
| 1790 | +"tree-sitter-bash" |
1788 | 1791 | ], |
1789 | 1792 | "packageExtensions": { |
1790 | 1793 | "@mariozechner/pi-coding-agent": { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -48,3 +48,4 @@ onlyBuiltDependencies:
|
48 | 48 | |
49 | 49 | ignoredBuiltDependencies: |
50 | 50 | - koffi |
| 51 | + - tree-sitter-bash |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。