openclaw-diag-cli 0.1.2 → 0.1.3
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 +1 -1
- package/bin/openclaw-diag.js +2 -2
- package/diag/02_environment.py +2 -2
- package/diag/10_shell_history.py +2 -2
- package/ocdiag/__init__.py +1 -1
- package/package.json +2 -3
package/README.md
CHANGED
package/bin/openclaw-diag.js
CHANGED
|
@@ -67,7 +67,7 @@ function printVersion() {
|
|
|
67
67
|
|
|
68
68
|
function printHelp() {
|
|
69
69
|
const lines = [
|
|
70
|
-
'openclaw-diag — OpenClaw
|
|
70
|
+
'openclaw-diag — OpenClaw 诊断工具箱',
|
|
71
71
|
'',
|
|
72
72
|
'Usage:',
|
|
73
73
|
' openclaw-diag 打印 banner + 诊断目录',
|
|
@@ -258,7 +258,7 @@ function main() {
|
|
|
258
258
|
if (argv.length === 0) {
|
|
259
259
|
const py = findPython();
|
|
260
260
|
if (!py) pythonNotFound();
|
|
261
|
-
console.log(`openclaw-diag v${PKG.version} — OpenClaw
|
|
261
|
+
console.log(`openclaw-diag v${PKG.version} — OpenClaw 诊断工具箱`);
|
|
262
262
|
console.log('');
|
|
263
263
|
const dispatcher = path.join(REPO_ROOT, 'bin', 'ocdiag');
|
|
264
264
|
spawnSync(py.cmd, [dispatcher, 'list'], { stdio: 'inherit' });
|
package/diag/02_environment.py
CHANGED
|
@@ -118,9 +118,9 @@ def main() -> int:
|
|
|
118
118
|
|
|
119
119
|
oc_version = detect_oc_version()
|
|
120
120
|
if oc_version:
|
|
121
|
-
out.item(f"
|
|
121
|
+
out.item(f"OpenClaw 版本: {oc_version}")
|
|
122
122
|
else:
|
|
123
|
-
out.item("
|
|
123
|
+
out.item("OpenClaw 版本: 无法确定")
|
|
124
124
|
out.evidence("openclaw --version", "命令未找到或无输出")
|
|
125
125
|
out.set_data("oc_version", oc_version)
|
|
126
126
|
|
package/diag/10_shell_history.py
CHANGED
|
@@ -89,13 +89,13 @@ def main() -> int:
|
|
|
89
89
|
oc_cmds = oc_all[-30:]
|
|
90
90
|
if oc_total:
|
|
91
91
|
out.item(
|
|
92
|
-
f"
|
|
92
|
+
f" OpenClaw 相关命令: 全文 {oc_total} 条,最近 30 条采样 {len(oc_cmds)} 条 — "
|
|
93
93
|
"用户手动执行的 openclaw 命令"
|
|
94
94
|
)
|
|
95
95
|
ev = "\n".join(f"{n}: {ln}" for n, ln in oc_cmds)
|
|
96
96
|
out.evidence(f"{hfile} (openclaw)", ev)
|
|
97
97
|
else:
|
|
98
|
-
out.item("
|
|
98
|
+
out.item(" OpenClaw 相关命令: 0 条")
|
|
99
99
|
|
|
100
100
|
recent = lines[-20:]
|
|
101
101
|
if recent:
|
package/ocdiag/__init__.py
CHANGED
package/package.json
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openclaw-diag-cli",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "OpenClaw
|
|
3
|
+
"version": "0.1.3",
|
|
4
|
+
"description": "OpenClaw read-only diagnostic CLI. Zero-dependency Python scripts wrapped in Node for npx-friendly install.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"openclaw",
|
|
7
|
-
"arkclaw",
|
|
8
7
|
"diagnostic",
|
|
9
8
|
"cli",
|
|
10
9
|
"ops",
|