Some checks failed
CI/CD / lint (pull_request) Successful in 1m11s
CI/CD / test (pull_request) Successful in 1m24s
CI/CD / typecheck (pull_request) Successful in 3m20s
CI/CD / smoke (pull_request) Failing after 2m1s
CI/CD / build (pull_request) Successful in 2m37s
CI/CD / publish (pull_request) Has been skipped
The prime-agent switcher existed only as a 275-line string literal inside
prime-agent-extension.ts, so nothing typechecked or linted it — the exact gap
that let a wrong ctx.ui.select() option shape ship in the pi extension. It now
lives at src/prime-agent-ext/mcpctl-switch.ts with a generator, a tsconfig
checking it against the real @earendil-works/pi-coding-agent types, eslint
coverage and an embed-freshness test, matching pi and opencode.
The extraction was verified byte-identical before any edit, so the behaviour
shipped today is exactly what was captured. Linting it then found six problems
in code nothing had ever checked: object-truthiness null guards, a nullable
string conditional and a missing return type. All behaviour-preserving to fix,
but exactly the class of thing that ships silently when nothing is looking.
Also:
- `config pi` gains --dry-run, the last agent without it.
- The SessionStart hook installer now drops untagged duplicates of its own
exact command — rows left behind before the marker existed, or by a suite
that used to write into a real ~/.claude. Invisible in the UI; they just run
the sync twice per session. A hook the user wrote is never touched, even one
calling `mcpctl skills sync` with different flags.
- docs/claude-integration.md and docs/prime-agent-extension.md, the two
integrations that had no page.
prime-agent deliberately keeps its per-project MCP entry name rather than the
constant `mcpctl` claude and opencode now use: its switcher already unmounts the
previous project, so it never accumulates entries, and re-keying auth.json from
mcp:<project> to mcp:mcpctl would give up per-project token caching and needs a
migration. Documented as its own change rather than folded in here.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BVwuCjuMoA13gmzYEfcrNP
67 lines
2.7 KiB
JSON
67 lines
2.7 KiB
JSON
{
|
|
"name": "mcpctl",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"description": "kubectl-like CLI for managing MCP servers",
|
|
"type": "module",
|
|
"scripts": {
|
|
"build": "pnpm -r run build",
|
|
"test": "vitest",
|
|
"test:run": "vitest run",
|
|
"test:coverage": "vitest run --coverage",
|
|
"test:smoke": "pnpm --filter mcplocal run test:smoke",
|
|
"test:ui": "vitest --ui",
|
|
"lint": "eslint 'src/*/src/**/*.ts'",
|
|
"lint:fix": "eslint 'src/*/src/**/*.ts' --fix",
|
|
"clean": "pnpm -r run clean && rimraf node_modules",
|
|
"db:up": "docker compose -f deploy/docker-compose.yml up -d",
|
|
"db:down": "docker compose -f deploy/docker-compose.yml down",
|
|
"typecheck": "tsc --build && pnpm run typecheck:pi-ext && pnpm run typecheck:opencode-ext && pnpm run typecheck:prime-agent-ext",
|
|
"completions:generate": "tsx scripts/generate-completions.ts --write",
|
|
"completions:check": "tsx scripts/generate-completions.ts --check",
|
|
"rpm:build": "bash scripts/build-rpm.sh",
|
|
"rpm:build:amd64": "MCPCTL_TARGET_ARCH=amd64 bash scripts/build-rpm.sh",
|
|
"rpm:build:arm64": "MCPCTL_TARGET_ARCH=arm64 bash scripts/build-rpm.sh",
|
|
"rpm:publish": "bash scripts/publish-rpm.sh",
|
|
"deb:build": "bash scripts/build-deb.sh",
|
|
"deb:build:amd64": "MCPCTL_TARGET_ARCH=amd64 bash scripts/build-deb.sh",
|
|
"deb:build:arm64": "MCPCTL_TARGET_ARCH=arm64 bash scripts/build-deb.sh",
|
|
"deb:publish": "bash scripts/publish-deb.sh",
|
|
"release": "bash scripts/release.sh",
|
|
"release:both": "bash scripts/release.sh --both-arches",
|
|
"mcpd:build": "bash scripts/build-mcpd.sh",
|
|
"mcpd:deploy": "bash deploy.sh",
|
|
"mcpd:deploy-dry": "bash deploy.sh --dry-run",
|
|
"mcpd:logs": "bash logs.sh",
|
|
"typecheck:pi-ext": "tsc -p src/pi-ext/tsconfig.json",
|
|
"typecheck:opencode-ext": "tsc -p src/opencode-ext/tsconfig.json",
|
|
"typecheck:prime-agent-ext": "tsc -p src/prime-agent-ext/tsconfig.json",
|
|
"smoke:clean": "tsx scripts/clean-smoke-resources.ts"
|
|
},
|
|
"engines": {
|
|
"node": ">=20.0.0",
|
|
"pnpm": ">=9.0.0"
|
|
},
|
|
"packageManager": "pnpm@9.15.0",
|
|
"devDependencies": {
|
|
"@earendil-works/pi-ai": "^0.84.1",
|
|
"@earendil-works/pi-coding-agent": "0.84.1",
|
|
"@opencode-ai/plugin": "1.18.15",
|
|
"@opentui/core": "0.4.5",
|
|
"@opentui/keymap": "0.4.5",
|
|
"@opentui/solid": "0.4.5",
|
|
"@types/node": "^25.3.0",
|
|
"@typescript-eslint/eslint-plugin": "^8.56.0",
|
|
"@typescript-eslint/parser": "^8.56.0",
|
|
"@vitest/coverage-v8": "^4.0.18",
|
|
"eslint": "^10.0.1",
|
|
"eslint-config-prettier": "^10.1.8",
|
|
"rimraf": "^6.1.3",
|
|
"solid-js": "1.9.12",
|
|
"tsx": "^4.21.0",
|
|
"typebox": "1.3.11",
|
|
"typescript": "^5.9.3",
|
|
"vitest": "^4.0.18"
|
|
}
|
|
}
|