{"_id":"@ben1849/feishu-channel","name":"@ben1849/feishu-channel","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@ben1849/feishu-channel","version":"1.0.0","description":"CLI tools for feishu-channel — sandbox profile management for Claude Code","bin":{"feishu-channel":"bin/cli.js"},"engines":{"node":">=16.0.0"},"keywords":["claude-code","feishu","lark","sandbox","security","cli"],"author":{"name":"cheng-pang"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/pangcheng1849/g-claude-code-plugins.git","directory":"feishu-channel-cli"},"homepage":"https://github.com/pangcheng1849/g-claude-code-plugins/tree/main/feishu-channel-cli","bugs":{"url":"https://github.com/pangcheng1849/g-claude-code-plugins/issues"},"publishConfig":{"access":"public"},"dependencies":{"@clack/prompts":"^1.1.0"},"gitHead":"cd44892726ec90b66921c7787312ef0c839c20b4","_id":"@ben1849/feishu-channel@1.0.0","_nodeVersion":"24.14.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-rVATYlklOzX1Vst19c24WxwWKGpboxWAFcyEoZdryIzHW5Khqof/3Pw3J6qjI2oFZB7nHl/f5ow6d/KHPVrjQA==","shasum":"68f272ba5786a6ad4aaaecd82915aa5e20854697","tarball":"https://registry.npmjs.org/@ben1849/feishu-channel/-/feishu-channel-1.0.0.tgz","fileCount":7,"unpackedSize":27238,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQD61jYTcOuYyVesS+6TWp6QPhCV+RV7DiVerO3UYN25FAIgFdum8pUKqo2jUxqraMFuj1ePr8Qek9wtwiKAokZMY00="}]},"_npmUser":{"name":"cheng-pang","email":"pangcheng33@gmail.com"},"directories":{},"maintainers":[{"name":"cheng-pang","email":"pangcheng33@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/feishu-channel_1.0.0_1774182622009_0.21210516861910222"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-22T12:30:21.895Z","1.0.0":"2026-03-22T12:30:22.197Z","modified":"2026-03-22T12:30:22.439Z"},"maintainers":[{"name":"cheng-pang","email":"pangcheng33@gmail.com"}],"description":"CLI tools for feishu-channel — sandbox profile management for Claude Code","homepage":"https://github.com/pangcheng1849/g-claude-code-plugins/tree/main/feishu-channel-cli","keywords":["claude-code","feishu","lark","sandbox","security","cli"],"repository":{"type":"git","url":"git+https://github.com/pangcheng1849/g-claude-code-plugins.git","directory":"feishu-channel-cli"},"author":{"name":"cheng-pang"},"bugs":{"url":"https://github.com/pangcheng1849/g-claude-code-plugins/issues"},"license":"MIT","readme":"# @ben1849/feishu-channel\n\n[feishu-channel](https://github.com/pangcheng1849/g-claude-code-plugins/tree/main/plugins/feishu-channel) 的配套 CLI 工具 — 管理 Claude Code 内置 sandbox 的安全配置。\n\n## 快速开始\n\n```bash\nnpx @ben1849/feishu-channel sandbox\n```\n\n交互式菜单，箭头键选择，回车确认：\n\n```\n┌  🔒 Sandbox Profile Manager\n│\n◇  Current status\n│  Profile:  (none)\n│  Settings: .claude/settings.local.json\n│\n◆  Select action\n│  ● Apply profile\n│  ○ Show current config\n│  ○ Show a profile template\n│  ○ Reset\n│  ○ Create custom profile\n│  ○ Delete custom profile\n└\n```\n\n也支持直接执行：\n\n```bash\nnpx @ben1849/feishu-channel sandbox apply default   # 应用安全模式\nnpx @ben1849/feishu-channel sandbox apply dev       # 应用开发模式\nnpx @ben1849/feishu-channel sandbox reset           # 移除配置\nnpx @ben1849/feishu-channel sandbox show            # 查看当前配置\nnpx @ben1849/feishu-channel sandbox list            # 列出可用 profile\n```\n\n配置写入当前项目的 `.claude/settings.local.json`（个人、gitignored），Claude Code 自动重载。\n\n**注意**：必须在启动 Claude Code 的同一目录下执行。\n\n## 预置模板\n\n### `default` — 安全模式\n\n推荐飞书频道日常使用。\n\n| 项目 | 配置 |\n|------|------|\n| Sandbox | 开启，关闭逃逸口 |\n| 权限模式 | `dontAsk`（allow 列表外静默拒绝） |\n| 文件写入 | 仅 CWD + `~/.claude/channels/feishu` + `~/.feishu-auth-cache` + `/tmp` |\n| 文件读取 | 禁止 `~/.ssh`、`~/.aws`、`~/.gnupg` |\n| 网络 | 常见 TLD 放行（`*.com`、`*.cn` 等） |\n| 命令 | 只读命令 + skill 脚本 + git 只读 + MCP 工具 |\n| 禁止 | `curl`/`wget`/`rm -rf`/`git push`/修改 settings |\n\n### `dev` — 开发模式\n\n开发调试使用，权限更宽松。\n\n| 项目 | 配置 |\n|------|------|\n| Sandbox | 开启，允许逃逸口 |\n| 权限模式 | `dontAsk` |\n| 文件写入 | CWD + 包管理器缓存 + 开发工具目录 |\n| 网络 | 常见 TLD 放行 |\n| 命令 | git/npm/pip/cargo/curl/docker/make 等全开 + MCP 工具 |\n| 禁止 | `rm -rf /`/修改 settings |\n\n### `dangerously-open` — 无限制\n\n关闭 sandbox + `bypassPermissions`。等同 `--dangerously-skip-permissions`。仅在信任环境使用。\n\n## 自定义模板\n\n```bash\n# 基于 dev 创建\nnpx @ben1849/feishu-channel sandbox create myprofile dev\n\n# 编辑 ~/.claude/channels/feishu/sandbox-profile/profiles/myprofile.json\n\n# 应用\nnpx @ben1849/feishu-channel sandbox apply myprofile\n\n# 删除（如有项目在用，需 --force）\nnpx @ben1849/feishu-channel sandbox delete myprofile\n```\n\n预置模板（default/dev/dangerously-open）不可删除。\n\n## 工作原理\n\n- 利用 Claude Code 内置 OS 级 sandbox（macOS Seatbelt / Linux bubblewrap）\n- 配置写入 `.claude/settings.local.json`，包含 `sandbox` + `permissions` 规则\n- 切换 profile 时**先删后加**：精确删除旧 profile 的规则，保留用户手动添加的规则\n- 每个项目独立追踪当前 profile（`~/.claude/channels/feishu/sandbox-profile/active/`）\n- reset 时兜底清理：无 active 记录也能清除 sandbox 配置\n\n## 许可\n\nMIT\n","readmeFilename":"README.md","_rev":"1-6a7b9309f43f06f51da614014574fcb1"}