Commit Graph

2 Commits

Author SHA1 Message Date
zhi
5efd4ece18 feat: add /ego-mgr slash command
新增 /ego-mgr slash command 支持:
-  - 获取字段值
-  - 设置字段值
-  - 列出所有字段名
-  - 删除字段
-  - 添加 Agent Scope 字段
-  - 添加 Public Scope 字段
-  - 显示所有字段和值

实现细节:
- 创建 EgoMgrSlashCommand 类处理所有子命令
- 使用 pcexec 工具调用 ego-mgr 二进制
- 自动注入 AGENT_ID, AGENT_WORKSPACE, AGENT_VERIFY 环境变量
- 支持带空格的字段值
- 友好的错误提示和用法说明
2026-03-24 10:21:35 +00:00
zhi
0569a5dcf5 feat: refactor project structure + add pcguard + AGENT_VERIFY injection
- Restructure: pcexec/ and safe-restart/ → plugin/{tools,core,commands}
- New pcguard Go binary: validates AGENT_VERIFY, AGENT_ID, AGENT_WORKSPACE
- pcexec now injects AGENT_VERIFY env + appends openclaw bin to PATH
- plugin/index.ts: unified TypeScript entry point with resolveOpenclawPath()
- install.mjs: support --openclaw-profile-path, install pcguard, new paths
- README: updated structure docs + security limitations note
- Removed old root index.js and openclaw.plugin.json
2026-03-08 11:48:53 +00:00