UNPKG

acpx

Version:

Headless CLI client for the Agent Client Protocol (ACP) — talk to coding agents from the command line

132 lines (131 loc) • 6.39 kB
{ "name": "acpx", "version": "0.22.0", "description": "Headless CLI client for the Agent Client Protocol (ACP) — talk to coding agents from the command line", "keywords": [ "acp", "agent-client-protocol", "ai", "claude-code", "cli", "codex", "coding-agent" ], "license": "MIT", "author": "OpenClaw Team <dev@openclaw.ai>", "repository": { "type": "git", "url": "https://github.com/openclaw/acpx" }, "bin": { "acpx": "dist/cli.js" }, "files": [ "dist", "skills", "README.md", "LICENSE" ], "type": "module", "exports": { ".": "./dist/cli.js", "./runtime": "./dist/runtime.js", "./flows": "./dist/flows.js", "./dist/*": "./dist/*", "./package.json": "./package.json", "./agent-registry": "./dist/agent-registry.js" }, "scripts": { "build": "tsdown src/cli.ts src/flows.ts src/runtime.ts src/agent-registry.ts --format esm --dts --clean --platform node --target node22 --no-fixedExtension", "build:quiet": "tsdown --logLevel silent src/cli.ts src/flows.ts src/runtime.ts src/agent-registry.ts --format esm --dts --clean --platform node --target node22 --no-fixedExtension", "build:test": "node -e \"require('node:fs').rmSync('dist-test',{recursive:true,force:true})\" && tsc -p tsconfig.test.json", "check": "pnpm run format:check && pnpm run typecheck && pnpm run lint && pnpm run build && pnpm run viewer:typecheck && pnpm run viewer:build && pnpm run test:coverage", "check:changed": "pnpm run check", "check:docs": "pnpm run format:docs:check && pnpm run lint:docs && pnpm run docs:site", "check:mutation": "pnpm run mutate", "conformance:run": "tsx conformance/runner/run.ts", "crabbox:hydrate": "crabbox actions hydrate", "crabbox:run": "crabbox run", "crabbox:stop": "crabbox stop", "crabbox:warmup": "crabbox warmup", "dev": "tsx src/cli.ts", "docs:site": "node scripts/build-docs-site.mjs", "format": "oxfmt --write", "format:check": "oxfmt --check", "format:diff": "oxfmt --write && git --no-pager diff", "format:docs": "git ls-files -z 'docs/*.md' 'examples/flows/*.md' 'README.md' | xargs -0 oxfmt --write", "format:docs:check": "git ls-files -z 'docs/*.md' 'examples/flows/*.md' 'README.md' | xargs -0 oxfmt --check", "lint": "oxlint --type-aware --deny-warnings src scripts examples test conformance && pnpm run lint:persisted-key-casing && pnpm run lint:flow-schema-terms", "lint:docs": "markdownlint-cli2 README.md \"docs/**/*.md\" \"examples/flows/**/*.md\"", "lint:fix": "oxlint --type-aware --fix src && pnpm run format", "lint:flow-schema-terms": "tsx scripts/lint-flow-schema-terms.ts", "lint:persisted-key-casing": "tsx scripts/lint-persisted-key-casing.ts", "mutate": "stryker run", "perf:report": "tsx scripts/perf-report.ts", "precommit": "pnpm exec lint-staged && pnpm run -s build", "prepack": "tsdown --logLevel silent src/cli.ts src/flows.ts src/runtime.ts src/agent-registry.ts --format esm --dts --clean --platform node --target node22 --no-fixedExtension", "prepare": "husky", "test": "pnpm run build && pnpm run build:test && node --test --test-concurrency=4 dist-test/test/*.test.js", "test:changed": "pnpm run test:coverage", "test:coverage": "pnpm run build && pnpm run build:test && node --test --test-concurrency=4 dist-test/test/*.test.js && c8 --all --check-coverage --lines 85 --branches 85 --functions 85 --statements 85 --include 'dist-test/src/flows/authoring.js' --include 'dist-test/src/flows/decision.js' --include 'dist-test/src/flows/definition.js' --include 'dist-test/src/flows/json.js' --include 'dist-test/src/flows/schema.js' --include 'dist-test/src/flows/store.js' --include 'dist-test/src/runtime/public/**/*.js' --include 'dist-test/src/runtime/engine/manager.js' --include 'dist-test/src/runtime/engine/status.js' --exclude 'dist-test/test/**/*.js' --exclude 'dist/**/*.js' node --test dist-test/test/flows.test.js dist-test/test/flows-store.test.js dist-test/test/runtime.test.js dist-test/test/runtime-events.test.js dist-test/test/runtime-manager.test.js dist-test/test/runtime-probe.test.js", "test:live": "pnpm run build && pnpm run build:test && node --test dist-test/test/live.integration.js", "typecheck": "tsc --noEmit", "typecheck:tsc": "tsc --noEmit", "viewer": "tsx examples/flows/replay-viewer/server.ts", "viewer:build": "vite build --config examples/flows/replay-viewer/vite.config.ts", "viewer:dev": "tsx examples/flows/replay-viewer/server.ts start", "viewer:open": "tsx examples/flows/replay-viewer/server.ts start --open", "viewer:preview": "tsx examples/flows/replay-viewer/server.ts start", "viewer:status": "tsx examples/flows/replay-viewer/server.ts status", "viewer:stop": "tsx examples/flows/replay-viewer/server.ts stop", "viewer:typecheck": "tsc -p examples/flows/replay-viewer/tsconfig.json --noEmit && tsc -p examples/flows/replay-viewer/tsconfig.server.json --noEmit" }, "dependencies": { "@agentclientprotocol/sdk": "^1.9.0", "@openclaw/fs-safe": "^0.27.0", "commander": "^15.0.0", "skillflag": "^0.2.1", "tsx": "^4.23.15", "zod": "^4.6.7" }, "devDependencies": { "@stryker-mutator/core": "^10.1.1", "@types/node": "^26.6.6", "@types/react": "^19.3.0", "@types/react-dom": "^19.3.0", "@types/react-test-renderer": "^19.3.0", "@types/ws": "^8.18.2", "@typescript/native": "npm:typescript@^7.0.2", "@vitejs/plugin-react": "^6.2.1", "@xyflow/react": "^12.12.1", "c8": "^12.0.0", "elkjs": "^0.12.0", "fast-json-patch": "^3.1.1", "husky": "^9.1.7", "lint-staged": "^17.6.0", "markdownlint-cli2": "^0.24.0", "oxfmt": "^0.75.0", "oxlint": "^1.89.0", "oxlint-tsgolint": "^7.0.2005", "react": "^19.3.1", "react-dom": "^19.3.1", "react-test-renderer": "^19.3.1", "tsdown": "^0.23.4", "typescript": "npm:@typescript/typescript6@^6.0.2", "vite": "^8.3.5", "ws": "^8.22.1" }, "lint-staged": { "*.{js,ts}": [ "oxfmt --write --no-error-on-unmatched-pattern", "oxlint --fix --no-error-on-unmatched-pattern" ], "*.{json,md}": [ "oxfmt --write --no-error-on-unmatched-pattern" ] }, "engines": { "node": ">=22.13.0" }, "packageManager": "pnpm@11.27.1" }