Skip to content

Reverse Engineering / Authorized Penetration Testing / Security Research Skill Router Pack AI-powered routing + On-demand toolchain bootstrapping + Self-evolving knowledge base Supports Claude Code, Kiro, Cursor, Cline, and other AI coding clients 逆向/渗透/安全技能路由包 - AI 自动路由 + 按需自举工具链 + 自动进化经验库 | 支持 Claude Code / Kiro / Cursor / Cline 等代码 AI 客户端

Shell

test: require explicit null version field

zhaoxuya5205f69d6ca2462
diff --git a/skills/scripts/test-client-neutral-bootstrap.sh b/skills/scripts/test-client-neutral-bootstrap.sh
index be5f3ef..1a3763a 100644
--- a/skills/scripts/test-client-neutral-bootstrap.sh
+++ b/skills/scripts/test-client-neutral-bootstrap.sh
@@ -166,10 +166,16 @@ data = json.loads(Path(sys.argv[2]).read_text(encoding="utf-8"))
node_records = [tool for tool in data.get("tools", []) if tool.get("name") == "node"]
if len(node_records) != 1:
raise SystemExit(f"expected exactly one node JSON record, got {len(node_records)}")
-if node_records[0].get("version") is not None:
+node_record = node_records[0]
+if "version" not in node_record:
raise SystemExit(
- "empty node version_spec expected JSON null; "
- f"got {node_records[0].get('version')!r}"
+ "empty node version_spec expected explicit JSON null field; "
+ "version field is missing"
+ )
+if node_record["version"] is not None:
+ raise SystemExit(
+ "empty node version_spec expected explicit JSON null field; "
+ f"got {node_record['version']!r}"
)
PY
empty_version_validation_status=$?