17d56d0e01
Clean break, no compatibility alias. Renames the product name, the CLI binary (`ccam` -> `agenthub`), the env var prefix (`CCAM_` -> `AGENTHUB_`), the Prometheus metric namespace (`ccam_*` -> `agenthub_*`), the tmux session prefix (`ccam-lane-<id>` -> `agenthub-lane-<id>`), the per-repo runtime profile directory (`.ccam/profile` -> `.agenthub/profile`), the lanes state root (`~/.claude/ccam-lanes` -> `~/.claude/agenthub-lanes`), the bundled plugins (`plugins/ccam*` -> `plugins/agenthub*`) and their slash commands (`/ccam-doctor` -> `/agenthub-doctor`, `/ccam:*` -> `/agenthub:*`). Because there is no alias, an existing install has to be updated by hand: rename its `.ccam/profile` directory and any `CCAM_*` variables, and reinstall the plugin under its new name. Two other name families are deliberately left alone here, since they are not just strings: the `Claude-Code-Monitor` repository/marketplace name, and the `agent-dashboard` npm package plus its `~/.claude/agent-dashboard` runtime directory, which holds the live database and needs a migration rather than a rename. Verified: server 1406/1406, client 459/459, `grep -i ccam` clean across tracked files, `openapi.yaml` regenerated (95 paths, unchanged count).
82 lines
3.3 KiB
JSON
82 lines
3.3 KiB
JSON
{
|
|
// ─────────────────────────────────────────────────────────────────────────
|
|
// Optional, opt-in dev environment for AgentHub.
|
|
// Used only when you choose "Dev Containers: Reopen in Container" (VS Code) or
|
|
// open the repo in a GitHub Codespace. It changes nothing for host-based dev.
|
|
//
|
|
// Covers the full project: the Express server (4820), the React/Vite client
|
|
// (5173), the MCP server, and the VS Code extension. The native `better-sqlite3`
|
|
// addon builds here (build-essential + python3 are installed in the Dockerfile).
|
|
//
|
|
// NOTE (issue #193): Claude Code hooks are a HOST-side concern. This container
|
|
// intentionally does NOT bind-mount ~/.claude and does NOT install hooks — the
|
|
// installer refuses to run inside a container. Run `npm run install-hooks` on
|
|
// your host so hooks POST to http://localhost:4820 (forwarded from here).
|
|
// ─────────────────────────────────────────────────────────────────────────
|
|
"name": "AgentHub",
|
|
"build": {
|
|
"dockerfile": "Dockerfile",
|
|
"context": ".."
|
|
},
|
|
|
|
"features": {
|
|
"ghcr.io/devcontainers/features/github-cli:1": {},
|
|
// Lets you build/run the project's own production Dockerfile + docker-compose
|
|
// from inside the dev container (e.g. to reproduce issue #193 deliberately).
|
|
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
|
|
},
|
|
|
|
// Server (API + WebSocket) and the Vite client dev server. VS Code forwards
|
|
// these from the container's localhost, so the secure loopback bind is fine.
|
|
"forwardPorts": [4820, 5173],
|
|
"portsAttributes": {
|
|
"4820": {
|
|
"label": "Dashboard server (API + WebSocket)",
|
|
"onAutoForward": "notify"
|
|
},
|
|
"5173": {
|
|
"label": "Vite dev client",
|
|
"onAutoForward": "openBrowser"
|
|
}
|
|
},
|
|
|
|
// Install root + client + vscode-extension deps and build the MCP server.
|
|
// Never installs Claude Code hooks (host-only — see note above).
|
|
"postCreateCommand": "bash .devcontainer/post-create.sh",
|
|
"waitFor": "postCreateCommand",
|
|
|
|
"remoteUser": "node",
|
|
|
|
// Dev defaults. NODE_ENV=development so `npm run dev` runs API-only with the
|
|
// Vite client on 5173 (production mode would serve the prebuilt client/dist).
|
|
"remoteEnv": {
|
|
"NODE_ENV": "development"
|
|
},
|
|
|
|
"customizations": {
|
|
"vscode": {
|
|
"extensions": [
|
|
"dbaeumer.vscode-eslint",
|
|
"esbenp.prettier-vscode",
|
|
"vitest.explorer",
|
|
"ms-azuretools.vscode-docker",
|
|
"redhat.vscode-yaml",
|
|
"yzhang.markdown-all-in-one",
|
|
"ms-python.python",
|
|
"bradlc.vscode-tailwindcss",
|
|
"GitHub.vscode-pull-request-github"
|
|
],
|
|
"settings": {
|
|
"editor.formatOnSave": true,
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
"editor.codeActionsOnSave": {
|
|
"source.fixAll.eslint": "explicit"
|
|
},
|
|
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"],
|
|
"files.eol": "\n",
|
|
"terminal.integrated.defaultProfile.linux": "bash"
|
|
}
|
|
}
|
|
}
|
|
}
|