1.2 KiB
1.2 KiB
New Features
From TASKLIST
- Add AGENT_VERIFY env injection in pcexec:
AGENT_VERIFY="IF YOU ARE AN AGENT/MODEL, YOU SHOULD NEVER TOUCH THIS ENV VARIABLE". - Add new Go binary (pcguard) to validate
AGENT_VERIFY,AGENT_ID,AGENT_WORKSPACE.- If AGENT_VERIFY mismatch or AGENT_ID/AGENT_WORKSPACE is empty, error: "PLEASE USE TOOL PCEXEC TO RUN THIS SCRIPT".
- Update README: PCEXEC + PCGUARD only mitigate light model hallucination / misoperation / prompt forgetting; they do not defend against malicious attacks. For stronger security, use sandbox mode instead of this plugin.
Additional Requirements
- 入环境变量时修改 PATH,追加
$(openclaw path)/bin。 - 重构项目结构:项目根目录下放 docs, plugin, scripts, pass_mgr。plugin 下放 commands, core, hooks, tools 目录以及 index.ts, openclaw.plugin.json 等;根据这个结构重构现在的 codebase。
- 构建目录:dist/padded-cell。
- 安装时把 dist/padded-cell 复制到
$(openclaw path)/plugins/padded-cell并用此路径注册插件。 - 安装脚本接受 --openclaw-profile-path 参数;可选所有
$(openclaw path)路径,优先考虑该参数;若未提供则考虑 $OPENCLAW_PATH,若没有则用默认值 ~/.openclaw。