Oc Ping
OpenCode V2 iMessage notifications and permission/question replies powered by Photon.
3
近 30 天 +2
187
近 7 天 4
41.9
生态多维模型
13 天前
2026-09-21
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["oc-ping@0.0.1"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["oc-ping@0.0.1"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D oc-pingOpenCode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
OpenCode V2 plugins by Ope Oginni, developed in one monorepo and released as independent npm packages.
Plugins
| Package | Description |
|---|---|
oc-auto-perms |
Universal intent-aware permissions powered by TypeSafe AI's Jev model |
oc-ping |
WIP — iMessage notifications and remote replies powered by Photon |
oc-invaders |
WIP — Play TUI Invaders while an OpenCode agent works |
Development
Install dependencies and run every package's checks:
bun install
bun run check
bun test
bun run build
Run a command for one plugin:
bun run --filter oc-ping test
bun run --filter oc-ping build
Each plugin keeps its own local OpenCode example. To test oc-ping, enter its
workspace, copy the example, build it, and start an isolated OpenCode instance:
cd packages/oc-ping
cp opencode.example.jsonc opencode.jsonc
bun run build
opencode2 --standalone
Releases
Packages are independently versioned with Changesets:
bun run changeset
bun run version-packages
bun run release
Before publishing, test the package contents with:
bun run pack:dry-run
同类生态推荐
Smart Notify
opencode-smart-notify
Desktop notifications for OpenCode that stay quiet when auto-approve handles the request
Notification
opencode-notification
OpenCode plugin for simple system notifications when permissions are needed, generation completes, or errors occur
Sfx
opencode-sfx
OpenCode plugin that plays Warcraft-style sound effects for session events