- packages/sdk-ts: BatchTransport, TraceBuilder, models, decision helpers Zero external deps, native fetch, ESM+CJS output - packages/opencode-plugin: OpenCode plugin with hooks for: - Session lifecycle (create/idle/error/delete/diff) - Tool execution capture (before/after -> TOOL_CALL spans + TOOL_SELECTION decisions) - LLM call tracking (chat.message -> LLM_CALL spans with model/provider) - Permission flow (permission.ask -> ESCALATION decisions) - File edit events - Model cost estimation (Claude, GPT-4o, o3-mini pricing)
48 lines
1.0 KiB
JSON
48 lines
1.0 KiB
JSON
{
|
|
"name": "opencode-agentlens",
|
|
"version": "0.1.0",
|
|
"description": "OpenCode plugin for AgentLens — trace your coding agent's decisions, tool calls, and sessions",
|
|
"type": "module",
|
|
"main": "./dist/index.cjs",
|
|
"module": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"import": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/index.d.cts",
|
|
"default": "./dist/index.cjs"
|
|
}
|
|
}
|
|
},
|
|
"files": ["dist"],
|
|
"scripts": {
|
|
"build": "tsup",
|
|
"dev": "tsup --watch",
|
|
"typecheck": "tsc --noEmit",
|
|
"clean": "rm -rf dist"
|
|
},
|
|
"dependencies": {
|
|
"agentlens-sdk": "*"
|
|
},
|
|
"devDependencies": {
|
|
"@opencode-ai/plugin": "^1.1.53",
|
|
"tsup": "^8.3.0",
|
|
"typescript": "^5.7.0"
|
|
},
|
|
"peerDependencies": {
|
|
"@opencode-ai/plugin": ">=1.1.0"
|
|
},
|
|
"keywords": [
|
|
"opencode",
|
|
"agentlens",
|
|
"observability",
|
|
"tracing",
|
|
"coding-agent"
|
|
],
|
|
"license": "MIT"
|
|
}
|