OpenACP/package.json

82 lines
2.2 KiB
JSON
Raw Permalink Normal View History

{
"name": "@openacp/cli",
"version": "2026.408.4",
"private": true,
"license": "MIT",
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
feat: extract Discord plugin to standalone package * fix(api): respect channel param in POST /api/sessions (#76) Session creation always used the first registered adapter. Add optional `channel` field so callers can target a specific platform (e.g. discord). Falls back to first-adapter behavior when omitted for backward compat. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix(api): wire --channel flag in CLI and assistant prompts (#76) The API endpoint accepted `channel` but the CLI `openacp api new` didn't pass it through. Add --channel flag to CLI and update Discord/Telegram assistant prompts to include --channel so sessions are created on the correct platform. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Entire-Checkpoint: 27c1f141d0c1 * docs: add session cleanup feature design spec Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Entire-Checkpoint: 8de760ac911e * docs: address spec review feedback for session cleanup - Reference existing TopicManager and archiveSession() instead of reimplementing - Add parseDuration utility for --older-than flag - Fix API route collision (/api/cleanup/ instead of /api/sessions/cleanable) - Add CleanupFlowState for Telegram selection state with TTL - Clarify default filter excludes active/initializing - Add archiving flag edge case to test plan Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Entire-Checkpoint: 98610f1a27c8 * docs: add design spec for extracting Discord plugin to standalone package Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Entire-Checkpoint: 10f437186acf * docs: address spec review feedback for Discord plugin extraction - Fix npm scope to @openacp (not @open-acp) for consistency - Fix peerDependency version to match date-based versioning - Move misclassified exports to "Need to add" section - Add ConfigManager, AgentCatalog, requestRestart to SDK exports list - Add essential: false, pluginDependencies notes - Add tsconfig.json template - Add exports field and .npmignore to package.json - Add runAdapterConformanceTests to SDK testing exports - Add legacy migration map update for backward compat - Add boot order note for pluginDependencies Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Entire-Checkpoint: c5db89eae6aa * docs: add implementation plan for extracting Discord plugin 9 tasks: extend CLI exports, extend SDK, migration map, scaffold project, copy+refactor source, verify build, remove from OpenACP, update README, push repos. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Entire-Checkpoint: a54a5510736a * feat(core): export format-utils, message-formatter, CommandRegistry, Doctor, PRODUCT_GUIDE for plugin SDK Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Entire-Checkpoint: 27b04551e9a7 * feat(plugin-sdk): export all symbols needed by adapter plugins Entire-Checkpoint: a1ed33612eb6 * fix(plugin): add @openacp/plugin-discord migration alias for backward compat Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Entire-Checkpoint: a9db7beb2975 * fix(sdk): add missing adapter-primitive exports and testing entry point - Add MessagingAdapterConfig, IRenderer, RenderedMessage type exports to src/core/index.ts - Add DisplayVerbosity, ToolCallMeta, ToolUpdateMeta, ViewerLinks type exports - Add STATUS_ICONS, KIND_ICONS, progressBar, formatTokens, truncateContent, stripCodeFences, splitMessage exports - Add extractContentText, formatToolSummary, formatToolTitle, resolveToolIcon exports - Create src/testing.ts as a separate entry point exporting runAdapterConformanceTests - Add ./testing export map to @openacp/cli package.json - Fix @openacp/plugin-sdk/testing.ts to import from @openacp/cli/testing - Fix version strings to use valid semver (2026.326.4 not 2026.0326.4) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix: restore original version format YYYY.MMDD.patch Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * feat: remove built-in Discord plugin (now available as @openacp/plugin-discord) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix(plugin): resolve 3 bugs preventing dev plugins from loading - lifecycle-manager: include already-loaded plugins in dependency resolution so late-booted dev plugins aren't cascade-skipped - dev-loader: use URL query string for ESM cache busting instead of copying to temp dir, which broke relative imports (e.g., './adapter.js') - adapter-primitives: remove runAdapterConformanceTests from main barrel to prevent vitest from leaking into runtime bundle Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Entire-Checkpoint: 64f604573bb7 * fix(review): address PR #80 code review feedback - Remove core→plugin-discord import in config-editor (architecture violation): inline Discord token validation using REST API /users/@me instead of importing from @openacp/plugin-discord/validators - Mark legacyMap in lifecycle-manager as @deprecated with migration notes - Remove 98 planning artifacts from docs/superpowers/ (72k+ lines) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Entire-Checkpoint: cdeeaa98a4f1 * Revert "fix(plugin): resolve 3 bugs preventing dev plugins from loading" This reverts commit 031464640560628dd8c093a4d8d30895c775ef98. Entire-Checkpoint: 6ed1a02a0cb5 * Reapply "fix(plugin): resolve 3 bugs preventing dev plugins from loading" This reverts commit 5707bf1c240f52baab277d21333cd7d92c191fac. Entire-Checkpoint: bfaaa263a765 * revert: restore docs/superpowers/ plans and specs Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Entire-Checkpoint: 9195220e9172 * fix(review): revert unrelated changes and organize SDK sub-paths - Revert --channel flag, assistant prompt changes, and session route changes that don't belong in Discord extraction PR (#82) - Add SDK sub-path exports: @openacp/plugin-sdk/formatting, @openacp/plugin-sdk/config (alongside existing /testing) (#83) - Mark SDK exports as @stable vs @experimental - Fix plugin count test (10 → 9 after Discord removal) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Entire-Checkpoint: 9bd5c44d98c4 * fix(review): address round 2 feedback on PR #80 - Rename @openacp/plugin-discord → @openacp/adapter-discord in all refs (setup-channels, wizard, lifecycle-manager, docs) - Keep @openacp/plugin-discord as legacy alias in lifecycle-manager - Remove unrelated session-cleanup-design.md spec from PR - SDK: deduplicate main barrel by re-exporting from sub-path modules Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Entire-Checkpoint: 4454289e400f * fix(review): remove remaining Discord references from core - Remove Discord doctor check from core (plugin registers its own) - Dynamic adapter discovery via ServiceRegistry instead of hardcoded list - Remove @openacp/discord from auto-register built-in plugins list Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Entire-Checkpoint: c15c5fbf08c8 * fix(config): auto-install Discord plugin when enabling via config editor When user enables or configures Discord through `openacp config` (not onboarding), check if @openacp/adapter-discord is installed. If not, prompt to install it automatically via npm. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Entire-Checkpoint: dd218c585ae3 * fix(review): round 3 cleanup — extensible ChannelId, update CLAUDE.md - Change ChannelId from fixed union to string for extensibility - Remove discord/ from CLAUDE.md project layout (now external plugin) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Entire-Checkpoint: 66d8d185cda7 * fix(review): resolve all remaining Discord coupling in core - Remove DiscordPlatformData from core types (plugin defines its own) - Remove DiscordPlatformData from SDK re-exports - Config editor: delegate Discord config to plugin configure() instead of 100+ lines of inline Discord logic - Update integrate.ts help text to be adapter-agnostic - Clean absolute local paths from planning docs Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Entire-Checkpoint: 094cc484aaae * fix: replace execSync npm install with async utility Extract installNpmPlugin() into a shared utility that uses async exec instead of execSync, preventing event loop blocking. Used by both config-editor.ts and wizard.ts instead of inline execSync calls. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: 0xmrpeter <0xmrpeter@gmail.com>
2026-03-27 16:05:50 +07:00
},
"./testing": {
"types": "./dist/testing.d.ts",
"import": "./dist/testing.js"
}
},
"bin": {
"openacp": "dist/cli.js"
},
"scripts": {
"build": "tsc && mkdir -p dist/data && cp src/data/registry-snapshot.json dist/data/",
"build:publish": "tsx scripts/build-publish.ts",
"dev": "./scripts/dev-loop.sh",
"dev:loop": "./scripts/dev-loop.sh",
"start": "node dist/cli.js",
"debug": "OPENACP_DEBUG=true pnpm start 2>&1 | pino-pretty",
"test": "vitest run",
"test:watch": "vitest",
"build:ui": "cd ui && pnpm install --frozen-lockfile && pnpm build",
"build:dev": "pnpm build && npm link --force",
"prepare": "husky"
},
"homepage": "https://github.com/Open-ACP/OpenACP",
"repository": {
"type": "git",
"url": "https://github.com/Open-ACP/OpenACP"
},
"packageManager": "pnpm@10.5.0",
"engines": {
"node": ">=20"
},
"dependencies": {
"@agentclientprotocol/claude-agent-acp": "^0.24.2",
"@agentclientprotocol/sdk": "^0.16.0",
"@clack/prompts": "^1.1.0",
"@fastify/rate-limit": "^10.3.0",
"@fastify/swagger": "^9.7.0",
"@fastify/swagger-ui": "^5.2.5",
"diff": "^8.0.3",
"fastest-levenshtein": "^1.0.16",
"fastify": "^5.8.4",
"fastify-type-provider-zod": "~5.1.0",
"grammy": "^1.41.1",
"ignore": "^7.0.5",
"jsonwebtoken": "^9.0.3",
"nanoid": "^5.0.0",
"node-wav": "^0.0.2",
"ogg-opus-decoder": "^1.7.3",
"ora": "^9.3.0",
"pino": "^10.3.1",
"pino-pretty": "^13.1.3",
"pino-roll": "^4.0.0",
"qrcode-terminal": "^0.12.0",
fix: comprehensive security hardening and reliability improvements Address 23 issues found during full codebase review: Security (Critical): - Replace hand-rolled HTML sanitizer with sanitize-html library (allowlist approach) - Fix shell injection in plugin installer (exec → execFile with array args) - Add zip pre-extraction validation to prevent path traversal - Block prototype pollution in config deepMerge - Add redirect limit (max 10) and fix command injection in install-binary - Fix token store silently swallowing save errors (revocations could be lost) Process & Data Integrity: - Fix cancelSession not destroying agent subprocess (process leak) - Fix failed session registered but never cleaned up - Fix session-store cleanup crash on null lastActiveAt - Make config save() atomic (write-to-temp-then-rename) Reliability: - Isolate EventBus listener errors (one bad listener no longer breaks all) - Fix multi-bridge relay duplicating events N times - Fix PromptQueue abort race breaking serial execution guarantee - Fix CommandRegistry.unregister deleting wrong plugin's command - Add MessageTransformer session cache cleanup on disconnect - Add TypedEmitter max buffer size (10000) to prevent unbounded growth - Fix Draft flush() race condition losing buffer content - Fix nodeToWebWritable event listener leak on backpressure - Auto-cleanup exited terminals after 30s grace period - Fix TerminalManager waitForExit TOCTOU race - Clean up PluginContext menu items and assistant sections on plugin unload - Only trust X-Forwarded-For for rate limiting when behind proxy - Fix workspace cache eviction deleting all entries instead of stale ones - Delete legacy displayVerbosity key during config migration Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-05 16:54:47 +07:00
"sanitize-html": "^2.17.2",
"zod": "^3.25.0",
"zod-to-json-schema": "^3.25.2"
},
"devDependencies": {
"@rolldown/binding-darwin-arm64": "1.0.0-rc.10",
"@types/diff": "^8.0.0",
"@types/jsonwebtoken": "^9.0.10",
"@types/node": "^25.5.0",
"@types/qrcode-terminal": "^0.12.2",
fix: comprehensive security hardening and reliability improvements Address 23 issues found during full codebase review: Security (Critical): - Replace hand-rolled HTML sanitizer with sanitize-html library (allowlist approach) - Fix shell injection in plugin installer (exec → execFile with array args) - Add zip pre-extraction validation to prevent path traversal - Block prototype pollution in config deepMerge - Add redirect limit (max 10) and fix command injection in install-binary - Fix token store silently swallowing save errors (revocations could be lost) Process & Data Integrity: - Fix cancelSession not destroying agent subprocess (process leak) - Fix failed session registered but never cleaned up - Fix session-store cleanup crash on null lastActiveAt - Make config save() atomic (write-to-temp-then-rename) Reliability: - Isolate EventBus listener errors (one bad listener no longer breaks all) - Fix multi-bridge relay duplicating events N times - Fix PromptQueue abort race breaking serial execution guarantee - Fix CommandRegistry.unregister deleting wrong plugin's command - Add MessageTransformer session cache cleanup on disconnect - Add TypedEmitter max buffer size (10000) to prevent unbounded growth - Fix Draft flush() race condition losing buffer content - Fix nodeToWebWritable event listener leak on backpressure - Auto-cleanup exited terminals after 30s grace period - Fix TerminalManager waitForExit TOCTOU race - Clean up PluginContext menu items and assistant sections on plugin unload - Only trust X-Forwarded-For for rate limiting when behind proxy - Fix workspace cache eviction deleting all entries instead of stale ones - Delete legacy displayVerbosity key during config migration Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-05 16:54:47 +07:00
"@types/sanitize-html": "^2.16.1",
"husky": "^9.1.7",
"tsup": "^8.5.1",
"tsx": "^4.21.0",
"typescript": "^5.7.0",
"vitest": "^4.1.0"
}
}