OpenACP/package.json
lngdao 24edd9c269 feat: add tunnel service with file/code viewer
Tunnel Service:
- Pluggable TunnelProvider interface with Cloudflare built-in
- Local HTTP server (Hono) on configurable port (default 3100)
- In-memory ViewerStore with TTL, path validation, 1MB limit
- Optional auth (Bearer token)
- Opt-in via config: tunnel.enabled (default: false)
- Env overrides: OPENACP_TUNNEL_ENABLED, OPENACP_TUNNEL_PORT,
  OPENACP_TUNNEL_PROVIDER

File/Code Viewer:
- Monaco Editor (VS Code engine) loaded from CDN
- Syntax highlighting for all languages
- Line numbers, minimap, word wrap, dark/light theme
- Line range highlighting via URL hash (#L42-L55)
- Copy button, file path breadcrumb

Diff Viewer:
- Monaco diff editor with side-by-side + inline toggle
- +/- change stats
- Dark/light theme

Integration:
- Core enriches tool_call/tool_update with viewerLinks metadata
- Telegram adapter renders clickable View file/View diff links
- ViewerLinks persist across tool updates (carried forward)
- File info extraction handles ACP diff content format
2026-03-20 12:26:25 +07:00

45 lines
1000 B
JSON

{
"name": "openacp",
"version": "0.1.0",
"private": true,
"type": "module",
"bin": {
"openacp": "dist/cli.js"
},
"scripts": {
"build": "tsc",
"build:publish": "tsx scripts/build-publish.ts",
"dev": "tsc --watch",
"start": "node dist/cli.js",
"test": "vitest run",
"test:watch": "vitest"
},
"packageManager": "pnpm@10.5.0",
"engines": {
"node": ">=20"
},
"dependencies": {
"@agentclientprotocol/sdk": "^0.16.0",
"@hono/node-server": "^1.19.11",
"@inquirer/prompts": "^8.3.2",
"@zed-industries/claude-agent-acp": "^0.22.2",
"diff": "^8.0.3",
"grammy": "^1.30.0",
"hono": "^4.12.8",
"nanoid": "^5.0.0",
"pino": "^10.3.1",
"pino-pretty": "^13.1.3",
"pino-roll": "^4.0.0",
"shiki": "^4.0.2",
"zod": "^3.25.0"
},
"devDependencies": {
"@types/diff": "^8.0.0",
"@types/node": "^25.5.0",
"tsup": "^8.5.1",
"tsx": "^4.21.0",
"typescript": "^5.7.0",
"vitest": "^4.1.0"
}
}