Files
opencode-power-pack/package.json
T
Yefta Sutanto 422d54c592 feat(opencode): adapt the plugin to OpenCode 1 and 2 from one entrypoint
OpenCode 1 calls the default export's server() hook while OpenCode 2
calls setup(), so a single module can support both:

- Keep the original config hook (config.skills.paths and config.agent)
  and expose it through server() plus the legacy OpencodePowerPack named
  export for releases that only discover named exports.
- Keep the V2 skill and agent transforms for OpenCode 2 unchanged.
- Build both the V1 permission maps and the V2 ordered rulesets from the
  same SKILL.md frontmatter.
- Extend the smoke test to verify both hosts: the OpenCode 1 path asserts
  skill-derived commands and agent permissions from the REST API, and the
  OpenCode 2 path keeps the verifier plugin.
- Run the smoke matrix on 1.18.7 and 2.0.14, and advertise >=1.18.7.
2026-09-23 20:00:00 +10:00

75 lines
1.9 KiB
JSON

{
"name": "@waybarrios/opencode-power-pack",
"version": "0.5.0",
"description": "Fifty-four software-development workflows for Claude Code, Codex, OpenCode, and Pi: code review, feature development, security review, frontend design, authoring, and project memory.",
"type": "module",
"main": ".opencode/plugins/opencode-power-pack.js",
"bin": {
"opencode-power-pack": "bin/opencode-power-pack.mjs"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"engines": {
"node": ">=20.11.0",
"opencode": ">=1.18.7"
},
"files": [
"skills",
".claude-plugin",
".codex-plugin",
".opencode",
"bin",
"sandbox",
"docs/sandbox-compatibility.md",
"assets",
"skillsets.json",
"UPSTREAMS.json",
"THIRD_PARTY_NOTICES.md",
"LICENSES"
],
"scripts": {
"test": "node --test",
"test:sandbox": "node --test tests/sandbox-policy.test.mjs tests/sandbox-runtime.test.mjs tests/sandbox-runtime.integration.test.mjs",
"prepublishOnly": "npm test",
"eval:behavioral": "node scripts/behavioral-evals.mjs run",
"eval:behavioral:accept": "node scripts/behavioral-evals.mjs accept",
"smoke:opencode": "node scripts/opencode-smoke.mjs 1.18.7 && node scripts/opencode-smoke.mjs 2.0.14"
},
"pi": {
"skills": [
"./skills"
]
},
"license": "MIT AND Apache-2.0",
"author": "Wayner Barrios",
"repository": {
"type": "git",
"url": "git+https://github.com/waybarrios/opencode-power-pack.git"
},
"keywords": [
"codex",
"codex-cli",
"openai-codex",
"openai",
"opencode",
"pi",
"pi-coding-agent",
"pi-package",
"claude-code",
"skills",
"code-review",
"security-review",
"feature-dev",
"frontend-design",
"mcp-builder",
"multi-agent",
"plugin"
],
"dependencies": {
"@anthropic-ai/sandbox-runtime": "0.0.73",
"@opencode/plugin": "^2.0.14"
}
}