{"_id":"@agent-profiler/opencode-telemetry-plugin","name":"@agent-profiler/opencode-telemetry-plugin","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@agent-profiler/opencode-telemetry-plugin","version":"1.0.0","description":"OpenCode plugin that emits telemetry hooks to agent-profiler.","type":"module","main":"src/index.js","repository":{"type":"git","url":"git+https://github.com/cleverb/agent-profiler.git","directory":"packages/opencode-telemetry-plugin"},"homepage":"https://github.com/cleverb/agent-profiler/tree/main/packages/opencode-telemetry-plugin#readme","bugs":{"url":"https://github.com/cleverb/agent-profiler/issues"},"license":"MIT","keywords":["opencode","plugin","telemetry","agent-profiler"],"engines":{"node":">=22"},"publishConfig":{"access":"public","provenance":false,"registry":"https://registry.npmjs.org/"},"_id":"@agent-profiler/opencode-telemetry-plugin@1.0.0","gitHead":"327ecb186de6d98029296ba8b397a51ad1b673a4","_nodeVersion":"22.21.1","_npmVersion":"10.9.4","dist":{"integrity":"sha512-ZpKK5WoXjk7S62o2E9+HAU8ufia2nQOwdnlfiGLQV1kV5mxcNlf+RZOe2wdUf0CyC2UIgwasNAb8v9j0v+QPeg==","shasum":"cea93af74d0b852de878ca44389e2591797fb1dd","tarball":"https://registry.npmjs.org/@agent-profiler/opencode-telemetry-plugin/-/opencode-telemetry-plugin-1.0.0.tgz","fileCount":3,"unpackedSize":8904,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFfiJkDOIpw+zt9S25kf3Hoj59BEgkeG+ogD4jB6ebHDAiAESOLJ0jX+BOSSSZ/Znf115tA5JTfHTqBNRa5CLRviVA=="}]},"_npmUser":{"name":"cleverboyx","email":"cleverboy@gmail.com"},"directories":{},"maintainers":[{"name":"cleverboyx","email":"cleverboy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/opencode-telemetry-plugin_1.0.0_1779280252556_0.08726314575735383"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-20T12:30:52.256Z","1.0.0":"2026-05-20T12:30:52.690Z","modified":"2026-05-20T12:30:52.980Z"},"maintainers":[{"name":"cleverboyx","email":"cleverboy@gmail.com"}],"description":"OpenCode plugin that emits telemetry hooks to agent-profiler.","homepage":"https://github.com/cleverb/agent-profiler/tree/main/packages/opencode-telemetry-plugin#readme","keywords":["opencode","plugin","telemetry","agent-profiler"],"repository":{"type":"git","url":"git+https://github.com/cleverb/agent-profiler.git","directory":"packages/opencode-telemetry-plugin"},"bugs":{"url":"https://github.com/cleverb/agent-profiler/issues"},"license":"MIT","readme":"# OpenCode telemetry plugin\n\n`@agent-profiler/opencode-telemetry-plugin` captures OpenCode plugin events and\nforwards normalized payloads into Agent Profiler with:\n\n- `agent-profiler hook opencode <event-name>`\n\n## Captured lifecycle events\n\n- `session.created`\n- `session.idle`\n- `message.updated.user`\n- `message.updated.assistant`\n- `tool.execute.before`\n- `tool.execute.after`\n- `tool.execute.failure`\n- `file.edited`\n- `command.executed`\n\n## Example `opencode.json`\n\n```json\n{\n  \"$schema\": \"https://opencode.ai/config.json\",\n  \"plugin\": [\"@agent-profiler/opencode-telemetry-plugin\"]\n}\n```\n\nThe plugin is intentionally minimal: it emits stable telemetry events and\nversion metadata so adapter mappings can be version-pinned over time.\n\n## Versioning and release\n\nThis package is **not** tied to `agent-profiler` CLI releases. The plugin changes\ninfrequently, so it uses its own semver and is published manually when needed.\n\n```bash\n# from the repository root\nnpm pack --workspace=@agent-profiler/opencode-telemetry-plugin --dry-run\nnpm publish --workspace=@agent-profiler/opencode-telemetry-plugin --access public\n```\n\nBump `version` in `package.json` (patch/minor/major) before publishing. Requires\nnpm access to the `@agent-profiler` scope.\n","readmeFilename":"README.md","_rev":"1-45ebe0e161c801bef7a0ede3db7803c7"}