ring/platforms/opencode/package.json
Gandalf f85aa61440
feat: add OpenCode platform integration (consolidate ring-for-opencode)
Move OpenCode runtime plugin and installer into Ring monorepo under platforms/opencode/.
The installer reads skills, agents, and commands directly from the Ring monorepo's
canonical directories (default/, dev-team/, pm-team/, etc.) — zero asset duplication.

What's included:
- installer.sh: reads from Ring dirs, applies frontmatter/tool transforms, installs to ~/.config/opencode/
- plugin/: TypeScript runtime (RingUnifiedPlugin) with hooks, lifecycle, loaders
- src/: CLI (doctor, config-manager)
- prompts/: session-start and context-injection templates
- standards/: coding standards (from dev-team/docs/)
- ring.jsonc: default config with full 86-skill/35-agent/33-command inventory

What's NOT included (intentionally):
- assets/ directory: eliminated, content comes from Ring monorepo
- scripts/codereview/: eliminated, replaced by mithril
- using-ring-opencode skill: uses canonical using-ring instead

Transforms applied by installer:
- Agent: type→mode, strip version/changelog/output_schema/input_schema
- Skill: keep name+description frontmatter, body unchanged
- Command: strip argument-hint (unsupported by OpenCode)
- All: normalize tool names (Bash→bash, Read→read, etc.)
- All: strip Model Requirement sections from agents

Replaces: LerianStudio/ring-for-opencode repository
Generated-by: Gandalf
AI-Model: claude-opus-4
2026-03-07 22:46:47 -03:00

50 lines
1.5 KiB
JSON

{
"name": "ring-opencode",
"version": "1.0.0",
"description": "Ring skills library for OpenCode - enforces proven software engineering practices",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"bin": {
"ring": "./dist/cli/index.js"
},
"files": [
"dist",
"assets"
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./schema.json": "./assets/ring-config.schema.json"
},
"scripts": {
"build": "bun build src/index.ts --outdir dist --target bun --format esm && tsc --emitDeclarationOnly && bun build src/cli/index.ts --outdir dist/cli --target bun --format esm && bun run build:schema",
"build:schema": "bun run scripts/build-schema.ts",
"clean": "rm -rf dist",
"prepublishOnly": "bun run clean && bun run build",
"typecheck": "tsc --noEmit && tsc -p plugin/tsconfig.json --noEmit",
"test": "bun test",
"test:plugin": "bun test __tests__/plugin/",
"lint": "biome check .",
"lint:fix": "biome check --write .",
"format": "biome format --write ."
},
"dependencies": {
"@clack/prompts": "^0.11.0",
"@opencode-ai/plugin": "1.1.3",
"better-sqlite3": "12.6.0",
"commander": "^14.0.2",
"jsonc-parser": "^3.3.1",
"picocolors": "^1.1.1",
"zod": "^4.1.8"
},
"devDependencies": {
"@biomejs/biome": "^2.3.11",
"@types/better-sqlite3": "7.6.13",
"@types/node": "22.19.5",
"bun-types": "latest",
"typescript": "5.9.3"
}
}