@cateds/opencode-ptyOpenCode plugin for interactive PTY management - run background processes, send input, read output with regex filtering
GitHub 星标
0
月装机量
32
近 7 天 9
综合评分SCORE
25.1
生态多维模型
最近提交
2 个月前
2026-05-29
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@cateds/opencode-pty@0.4.1"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@cateds/opencode-pty@0.4.1"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D @cateds/opencode-ptyopencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
README.md
查看原始文件→A collection of plugins and tools for OpenCode.
Packages
| Package | Description | Install |
|---|---|---|
| opencode-open-in-desktop | Open current project / directory in OpenCode Desktop app | bun i -g opencode-open-in-desktop and opencode plug -g opencode-open-in-desktop |
| @cateds/opencode-pty | Interactive PTY management for background processes | npm i @cateds/opencode-pty and add to opencode.json |
Development
This is a monorepo managed with Bun workspaces.
Setup
bun install
Run locally
# Run a specific package
bun run packages/opencode-open-in-desktop/src/cli.ts
# Link a package globally for testing
cd packages/opencode-open-in-desktop && bun link
Project structure
opencode-plugins/
├── packages/
│ ├── opencode-open-in-desktop/ # CLI + TUI plugin
│ └── opencode-pty/ # PTY management plugin
├── package.json # Workspace config
└── README.md
License
MIT