### Start Development Servers with pnpm dev Source: https://deepwiki.com/BradGroux/veritas-kanban/2.1-installation-and-setup Starts both the API server and web development server. The command runs package.json15 which executes concurrently with server and web processes. ```bash pnpm dev ``` -------------------------------- ### Restore Example Tasks with pnpm seed Source: https://deepwiki.com/BradGroux/veritas-kanban/2.1-installation-and-setup Run the seed command to restore the example tasks after they have been removed. ```bash pnpm seed ``` -------------------------------- ### Copy Environment File Source: https://deepwiki.com/BradGroux/veritas-kanban/2.1-installation-and-setup Copies the example environment file to server/.env for configuration. This is required before setting environment variables. ```bash cp server/.env.example server/.env ``` -------------------------------- ### Remove Example Tasks Source: https://deepwiki.com/BradGroux/veritas-kanban/2.1-installation-and-setup Delete example tasks to start fresh. The command removes all task files matching the pattern, then refresh the browser. ```bash rm tasks/active/task_example_*.md # Refresh the browser ``` -------------------------------- ### vk begin usage examples Source: https://deepwiki.com/BradGroux/veritas-kanban/6.3-cli-and-workflow-commands Starts work on a task by setting status to in-progress, starting the time tracker, and updating agent status to working. Supports partial ID matching and JSON output with --json. ```bash vk begin task_20260201_abc123 vk begin abc123 # Partial ID matching supported vk begin abc123 --json # JSON output ``` -------------------------------- ### Web UI Access URL Source: https://deepwiki.com/BradGroux/veritas-kanban/2.1-installation-and-setup Open a browser and navigate to this URL to access the Kanban board. The board is pre-populated with four example tasks on first run. ```text http://localhost:3000 ``` -------------------------------- ### Install pnpm globally or via corepack Source: https://deepwiki.com/BradGroux/veritas-kanban/2.1-installation-and-setup Two methods to install pnpm: using npm globally or using corepack (recommended for Node 16+). ```bash npm install -g pnpm # OR using corepack (recommended for Node 16+) corepack enable corepack prepare pnpm@latest --activate ``` -------------------------------- ### Verify vk CLI installation Source: https://deepwiki.com/BradGroux/veritas-kanban/2.1-installation-and-setup Run vk --help to confirm the CLI is installed and accessible. This should display usage information for the vk command. ```bash vk --help ``` -------------------------------- ### Install vk CLI globally with npm link Source: https://deepwiki.com/BradGroux/veritas-kanban/2.1-installation-and-setup Run from the cli directory to make the vk command available globally. After linking, verify with vk --help. The CLI connects to the API at http://localhost:3001 by default and stores configuration in .veritas-kanban/config.json after vk setup. ```bash cd cli npm link ``` -------------------------------- ### Feature Settings Response Example Source: https://deepwiki.com/BradGroux/veritas-kanban/8-configuration-reference Example JSON response for the GET /api/config/settings endpoint, showing the structure of FeatureSettings. ```json { "board": { "showDashboard": true, "cardDensity": "normal" }, "tasks": { "enableTimeTracking": true, "defaultPriority": "medium" }, "agents": { "timeoutMinutes": 30 }, "telemetry": { "enabled": true, "retentionDays": 90 }, "notifications": { "enabled": false }, "archive": { "autoArchiveEnabled": false }, "budget": { "enabled": true, "monthlyTokenLimit": 0 }, "hooks": { "enabled": false } } ``` -------------------------------- ### Setup Wizard Command (vk setup) Source: https://deepwiki.com/BradGroux/veritas-kanban/6-ai-agent-integration Runs the CLI setup wizard to configure API URL and key, test connection, and optionally create a sample task. ```bash vk setup ``` -------------------------------- ### vk time start usage examples Source: https://deepwiki.com/BradGroux/veritas-kanban/6.3-cli-and-workflow-commands Starts the time tracker for a task. Creates a new time entry with a startedAt timestamp; returns an error if a timer is already running. The timer remains running until explicitly stopped or the server is restarted. ```bash vk time start task_20260201_abc123 vk time start abc123 ``` -------------------------------- ### vk project list example output Source: https://deepwiki.com/BradGroux/veritas-kanban/6.3-cli-and-workflow-commands Example output showing project list with IDs, colors, and descriptions. ```text Projects: 1. my-app (#3d72de) - Main product 2. rubicon (#7c3aed) - Internal tools ``` -------------------------------- ### vk begin example output Source: https://deepwiki.com/BradGroux/veritas-kanban/6.3-cli-and-workflow-commands Example output from the vk begin command showing success messages for each orchestrated step and the task title. ```text ✓ Task status updated to in-progress ✓ Time tracker started ✓ Agent status set to working Task: Implement OAuth login ``` -------------------------------- ### Build MCP server with pnpm Source: https://deepwiki.com/BradGroux/veritas-kanban/2.1-installation-and-setup Navigate to the mcp directory and build the MCP server using pnpm. This is the first step to integrate with Claude Desktop via the Model Context Protocol. ```bash cd mcp pnpm build ``` -------------------------------- ### Example metrics API request Source: https://deepwiki.com/BradGroux/veritas-kanban/7.4-telemetry-processing-pipeline Shows a sample GET request to the metrics endpoint with query parameters for period and project filter. ```http GET /api/metrics/all?period=7d&project=veritas-kanban ``` -------------------------------- ### Data Directory Structure Source: https://deepwiki.com/BradGroux/veritas-kanban/2.1-installation-and-setup Shows the directory structure created automatically on first run, including configuration files, telemetry logs, and task directories. ```text .veritas-kanban/ ├── config.json # Application configuration ├── integrations.json # GitHub sync configuration ├── settings.json # Feature flags and settings ├── agent-registry.json # Registered AI agents ├── status-history.json # Task status change log ├── telemetry/ # Event logs (NDJSON format) │ └── events-YYYY-MM-DD.ndjson ├── logs/ # Application logs └── worktrees/ # Git worktree metadata tasks/ ├── active/ # Current tasks (todo, in-progress, blocked) ├── archive/ # Completed tasks └── templates/ # Task templates ``` -------------------------------- ### Example Metrics API Requests Source: https://deepwiki.com/BradGroux/veritas-kanban/5.3-dashboard-and-metrics-visualization Example HTTP GET requests for the metrics endpoints, demonstrating period filtering, project scoping, custom date ranges, and timezone offset parameters. ```http GET /api/metrics/all?period=7d&project=veritas-core ``` ```http GET /api/metrics/trends?period=custom&from=2026-01-01&to=2026-01-31 ``` ```http GET /api/metrics/utilization?period=30d&tz=-6 ``` -------------------------------- ### Install Dependencies with pnpm Source: https://deepwiki.com/BradGroux/veritas-kanban/2.1-installation-and-setup Installs dependencies for all workspace packages (server, web, shared, cli, mcp), links workspace dependencies, and generates pnpm-lock.yaml. TypeScript errors during initial install are normal if shared types haven't been built yet; they resolve on subsequent pnpm install or pnpm build runs. ```bash pnpm install ``` -------------------------------- ### GET /api/agents/register/stats response example Source: https://deepwiki.com/BradGroux/veritas-kanban/6.1-agent-registry-system Example JSON response for the registry statistics endpoint. Shows total agent count, online/busy/idle/offline counts, and the list of available capabilities. ```json { "total": 10, "online": 1, "busy": 0, "idle": 7, "offline": 2, "capabilities": [ "analysis", "architecture", "automation", "backend", "code-review", "data-analysis", "devops", "documentation", "frontend", "orchestration", "research", "security", "strategy", "testing", "ui-design", "writing" ] } ``` -------------------------------- ### settings.json Example Source: https://deepwiki.com/BradGroux/veritas-kanban/8-configuration-reference Example of the settings.json configuration file, which stores user preferences and feature toggles. It is managed by the API and Settings UI. The file is located in the data directory, which defaults to `.veritas-kanban/` in the repository root. ```json { "board": { "showDashboard": true, "cardDensity": "normal", "enableDragAndDrop": true }, "tasks": { "enableTimeTracking": true, "defaultPriority": "medium" }, "telemetry": { "enabled": true, "retentionDays": 90 } } ``` -------------------------------- ### Service Control Commands Source: https://deepwiki.com/BradGroux/veritas-kanban/10-troubleshooting-and-operations Commands to start development server, build for production, start production server, and run tests. ```bash # Start development server pnpm dev ``` ```bash # Production build pnpm build ``` ```bash # Start production server NODE_ENV=production pnpm start ``` ```bash # Run tests pnpm test ``` -------------------------------- ### Clone the Repository Source: https://deepwiki.com/BradGroux/veritas-kanban/2.1-installation-and-setup Clones the veritas-kanban repository and navigates into the project directory. The repository's .gitignore excludes tasks/active/, tasks/archive/, and .veritas-kanban/ to prevent accidental commits of local data. ```bash git clone https://github.com/BradGroux/veritas-kanban.git cd veritas-kanban ``` -------------------------------- ### vk github mappings example output Source: https://deepwiki.com/BradGroux/veritas-kanban/6.3-cli-and-workflow-commands Example output showing issue-to-task mappings. ```text Issue-Task Mappings: Issue #42 → task_20260201_abc123 (Implement OAuth) Issue #43 → task_20260201_def456 (Fix login bug) ``` -------------------------------- ### User prompt: Read active tasks Source: https://deepwiki.com/BradGroux/veritas-kanban/6.4-mcp-server-for-claude-desktop Example user prompt for querying active tasks. Claude reads the kanban://tasks/active resource and the MCP server fetches GET /api/tasks?status=in-progress,review. ```text What tasks are currently in progress? ``` -------------------------------- ### Expected Output from pnpm dev Source: https://deepwiki.com/BradGroux/veritas-kanban/2.1-installation-and-setup Shows the expected output when running pnpm dev, indicating the server and web processes are running successfully. ```bash [server] Server running on http://localhost:3001 [server] WebSocket server ready at ws://localhost:3001/ws [web] VITE dev server running at http://localhost:3000 ``` -------------------------------- ### Concurrently Run Server and Web Source: https://deepwiki.com/BradGroux/veritas-kanban/2.1-installation-and-setup Executes the server and web development processes concurrently with color-coded output. This is the underlying command run by pnpm dev. ```bash concurrently -n server,web -c blue,green \ "pnpm --filter server dev" \ "pnpm --filter web dev" ``` -------------------------------- ### vk summary usage examples Source: https://deepwiki.com/BradGroux/veritas-kanban/6.3-cli-and-workflow-commands Shows the basic usage of the vk summary command to display project statistics, including the optional --json flag for JSON output. The command calls the GET /api/summary API endpoint. ```bash vk summary vk summary --json ``` -------------------------------- ### vk github status example output Source: https://deepwiki.com/BradGroux/veritas-kanban/6.3-cli-and-workflow-commands Example output showing last sync timestamp, status, and counts. ```text Last Sync: 2026-02-06 14:32:18 Status: success Issues imported: 3 Tasks updated: 1 Errors: 0 ``` -------------------------------- ### CLI Installation Commands Source: https://deepwiki.com/BradGroux/veritas-kanban/6-ai-agent-integration Install the vk CLI by linking the cli directory and verify with vk --help. Run from the project root. ```bash cd cli && npm link vk --help ``` -------------------------------- ### Clean rebuild for TypeScript errors Source: https://deepwiki.com/BradGroux/veritas-kanban/2.1-installation-and-setup Run these commands to clean and rebuild the project when TypeScript errors occur during pnpm install or pnpm build. This happens when workspace packages are built out of order; the second pnpm install resolves it. ```bash # Clean rebuild pnpm clean rm -rf node_modules pnpm install pnpm build ``` -------------------------------- ### Node.js and pnpm version constraints in package.json Source: https://deepwiki.com/BradGroux/veritas-kanban/2.1-installation-and-setup Defines the required Node.js and pnpm versions for the project. The build will fail if these minimum versions are not met. ```json "engines": { "node": ">=22.0.0", "pnpm": ">=9.0.0" } ``` -------------------------------- ### vk show usage examples Source: https://deepwiki.com/BradGroux/veritas-kanban/6.3-cli-and-workflow-commands Shows detailed information for a task. Supports partial ID matching (unique suffix of task ID). Flags: --json. API call: GET /api/tasks/. ```bash vk show task_20260201_abc123 vk show abc123 # Partial ID matching vk show abc123 --json ``` -------------------------------- ### Claude Desktop MCP configuration Source: https://deepwiki.com/BradGroux/veritas-kanban/2.1-installation-and-setup Add this JSON to Claude Desktop's configuration file (e.g., ~/Library/Application Support/Claude/claude_desktop_config.json on macOS). It registers the veritas-kanban MCP server, pointing to the built index.js and setting VK_API_URL and VK_API_KEY environment variables. Replace /absolute/path/to/veritas-kanban with the actual path. ```json { "mcpServers": { "veritas-kanban": { "command": "node", "args": ["/absolute/path/to/veritas-kanban/mcp/dist/index.js"], "env": { "VK_API_URL": "http://localhost:3001", "VK_API_KEY": "your-admin-key" } } } } ``` -------------------------------- ### POST /api/automation/:id/start Source: https://deepwiki.com/BradGroux/veritas-kanban/6.4-mcp-server-for-claude-desktop Start an automation task via a sub-agent. Returns the start status. ```APIDOC ## [POST] /api/automation/:id/start ### Description Start automation task via sub-agent. ### Method POST ### Endpoint /api/automation/:id/start ### Parameters #### Path Parameters - **id** (string) - Required - The automation task ID ### Response #### Success Response (200) - **status** (string) - The start status ``` -------------------------------- ### vk time show example output Source: https://deepwiki.com/BradGroux/veritas-kanban/6.3-cli-and-workflow-commands Example output from vk time show, showing total time tracked, whether a timer is running, and individual time entries with descriptions and durations. ```text Task: Implement OAuth login Total time: 3h 42m Time Entries: 1. 2h 15m - Initial implementation (stopped) 2. 1h 27m - Bug fixes and testing (stopped) ``` -------------------------------- ### Create and Start Task with curl Source: https://deepwiki.com/BradGroux/veritas-kanban/9-api-reference Shows how to create a task via POST /api/tasks, update it to in-progress with PATCH, and start the timer with POST /time/start. Includes a sample response with a task ID. ```bash # Create task curl -X POST http://localhost:3001/api/tasks \ -H "Authorization: Bearer your-api-key" \ -H "Content-Type: application/json" \ -d '{ "title": "Implement feature X", "type": "feature", "priority": "high", "project": "veritas-kanban", "agent": "auto" }' # Response: { "success": true, "data": { "id": "task_20240204_abc123", ... } } # Update to in-progress and start timer curl -X PATCH http://localhost:3001/api/tasks/task_20240204_abc123 \ -H "Authorization: Bearer your-api-key" \ -H "Content-Type: application/json" \ -d '{ "status": "in-progress" }' curl -X POST http://localhost:3001/api/tasks/task_20240204_abc123/time/start \ -H "Authorization: Bearer your-api-key" ``` -------------------------------- ### Remove example tasks with shell commands Source: https://deepwiki.com/BradGroux/veritas-kanban/2-getting-started Commands to delete example tasks from the active directory and archive them via the CLI. The first removes files directly, the second uses vk list with jq to filter example IDs and archive them. ```bash rm tasks/active/task_example_*.md # Or via CLI: vk list --json | jq -r '.data[].id' | grep example | xargs -I {} vk archive {} ``` -------------------------------- ### Clean development processes with pnpm dev:clean Source: https://deepwiki.com/BradGroux/veritas-kanban/2.1-installation-and-setup Run pnpm dev:clean to kill VK-specific processes and free ports 3000/3001 before restarting. Use this when the development server hangs or ports remain captured after stopping. ```bash pnpm dev:clean ``` -------------------------------- ### vk list usage examples Source: https://deepwiki.com/BradGroux/veritas-kanban/6.3-cli-and-workflow-commands Lists tasks with optional filters. Supports --status, --type, --project, and --json flags. Aliases: ls. API call: GET /api/tasks?status=&type=&project=. ```bash vk list # All tasks vk list --status in-progress # Filter by status vk list --type code # Filter by type vk list --project my-app # Filter by project vk list --status in-progress --type code # Combine filters vk list --json # JSON output ``` -------------------------------- ### vk begin Source: https://deepwiki.com/BradGroux/veritas-kanban/6.3-cli-and-workflow-commands Starts work on a task by orchestrating three operations: setting the task status to in-progress, starting the time tracker, and updating the agent status to working. Supports partial ID matching and JSON output. ```APIDOC ## [POST] /api/tasks//time/start ### Description Starts the time tracker for a task. ### Method POST ### Endpoint /api/tasks//time/start ### Parameters #### Path Parameters - **id** (string) - Required - The task ID. ### Response #### Success Response (200) No response body specified. ### Request Example ``` POST /api/tasks//time/start ``` ### Response Example ``` No response body specified. ``` ``` ```APIDOC ## [POST] /api/agent/status ### Description Updates the agent status to working. ### Method POST ### Endpoint /api/agent/status ### Parameters #### Request Body - **status** (string) - Required - The new agent status (e.g., "working"). - **taskId** (string) - Required - The task ID. - **taskTitle** (string) - Required - The task title. ### Response #### Success Response (200) No response body specified. ### Request Example ``` POST /api/agent/status { "status": "working", "taskId": "task_20260201_abc123", "taskTitle": "Implement OAuth login" } ``` ### Response Example ``` No response body specified. ``` ``` -------------------------------- ### transition-hooks.json configuration example Source: https://deepwiki.com/BradGroux/veritas-kanban/7.2-task-lifecycle-and-hooks Example configuration for `.veritas-kanban/transition-hooks.json` showing two hooks: a `subtask-gate` that blocks transitions to `done` when subtasks are incomplete, and a `notification` hook that sends a message to `team-updates` when a high-priority task moves to `done`. The `enabled` flag at the top level controls whether hooks are active. ```json { "enabled": true, "hooks": [ { "type": "subtask-gate", "enabled": true, "trigger": { "toStatus": "done" } }, { "type": "notification", "enabled": true, "trigger": { "toStatus": "done" }, "config": { "channel": "team-updates", "condition": "task.priority === 'high'" } } ] } ``` -------------------------------- ### Check and free ports 3001 and 3000 Source: https://deepwiki.com/BradGroux/veritas-kanban/2.1-installation-and-setup Use lsof to identify processes using ports 3001 (API) and 3000 (web). Then kill those processes or change the port in server/.env by setting PORT=3002. This resolves 'Port Already in Use' errors. ```bash # Check what's using the ports lsof -i :3001 lsof -i :3000 # Kill processes or change ports in server/.env PORT=3002 ``` -------------------------------- ### POST /api/agents/:id/start Source: https://deepwiki.com/BradGroux/veritas-kanban/6.4-mcp-server-for-claude-desktop Start an AI agent on a code task. Returns the agent start status. ```APIDOC ## [POST] /api/agents/:id/start ### Description Start AI agent on a code task. ### Method POST ### Endpoint /api/agents/:id/start ### Parameters #### Path Parameters - **id** (string) - Required - The agent ID ### Response #### Success Response (200) - **status** (string) - The start status ``` -------------------------------- ### vk summary example output Source: https://deepwiki.com/BradGroux/veritas-kanban/6.3-cli-and-workflow-commands Example output from the vk summary command, showing total tasks, status counts, and high-priority tasks. This output is displayed when the command is run without the --json flag. ```text Project Summary: Total tasks: 42 In progress: 8 Blocked: 2 Done: 28 High-priority tasks: 1. task_20260201_abc123 - Fix authentication bug 2. task_20260201_def456 - Deploy to production ``` -------------------------------- ### Partial Update Request Body Example Source: https://deepwiki.com/BradGroux/veritas-kanban/8-configuration-reference Example request body for the PATCH endpoint, showing partial settings for board and tasks. ```json { "board": { "cardDensity": "compact" }, "tasks": { "defaultPriority": "high" } } ``` -------------------------------- ### Install pnpm via npm or corepack Source: https://deepwiki.com/BradGroux/veritas-kanban/2-getting-started Install pnpm globally if not present. The corepack command is recommended for version pinning. ```bash npm install -g pnpm # or use corepack (recommended for version pinning) corepack enable && corepack prepare pnpm@latest --activate ``` -------------------------------- ### integrations.json configuration example Source: https://deepwiki.com/BradGroux/veritas-kanban/3.2-data-storage-and-file-format Example of the integrations.json configuration file, which stores external service configs for GitHub and Teams. The GitHub section includes a token placeholder, repository details, polling settings, and field mappings. The Teams section is disabled by default with an empty webhook URL. ```json { "github": { "enabled": true, "token": "ghp_xxxxx", "owner": "BradGroux", "repo": "veritas-kanban", "label": "kanban", "polling": { "enabled": true, "intervalMinutes": 15 }, "fieldMappings": { "priority": "priority:", "type": "type:" } }, "teams": { "enabled": false, "webhookUrl": "" } } ``` -------------------------------- ### vk summary standup usage examples Source: https://deepwiki.com/BradGroux/veritas-kanban/6.3-cli-and-workflow-commands Shows the usage of the vk summary standup command to generate a daily standup summary. Supports flags for yesterday's standup (--yesterday), a specific date (--date), plain text format (--text), and JSON format (--json). The command calls the GET /api/summary/standup?date=YYYY-MM-DD&format=json|markdown|text API endpoint. ```bash vk summary standup # Today's standup vk summary standup --yesterday # Yesterday's standup vk summary standup --date 2026-02-05 # Specific date vk summary standup --text # Plain text format vk summary standup --json # JSON format ``` -------------------------------- ### Combined create and begin task Source: https://deepwiki.com/BradGroux/veritas-kanban/6.3-cli-and-workflow-commands Create a task and immediately start working on it. Uses vk create with JSON output and jq to extract the task ID, then passes it to vk begin. ```bash TASK_ID=$(vk create "Fix login bug" --type code --project my-app --json | jq -r '.id') vk begin "$TASK_ID" ``` -------------------------------- ### vk done example output Source: https://deepwiki.com/BradGroux/veritas-kanban/6.3-cli-and-workflow-commands Example output from the vk done command showing success messages for each orchestrated step, including tracked time and task completion. ```text ✓ Time tracker stopped (3h 42m tracked) ✓ Task status updated to done ✓ Comment added ✓ Agent status set to idle Task completed: Implement OAuth login ``` -------------------------------- ### API Health Check with curl Source: https://deepwiki.com/BradGroux/veritas-kanban/2.1-installation-and-setup Verify the API server is responding by sending a GET request to the health endpoint. Expected response includes ok, service, and version fields. ```bash curl http://localhost:3001/api/health ``` -------------------------------- ### Server Initialization Structure Source: https://deepwiki.com/BradGroux/veritas-kanban/6.4-mcp-server-for-claude-desktop Shows the compiled MCP server entry point structure, including SDK import, server instance creation, tool and resource handler registration, and transport connection. ```text mcp/dist/index.js (compiled from TypeScript) ├── Import @modelcontextprotocol/sdk ├── Create Server instance ├── Register tool handlers (server.setRequestHandler CallToolRequest) │ ├── list_tasks │ ├── get_task │ ├── create_task │ ├── ... (15+ tools) ├── Register resource handlers (server.setRequestHandler ReadResourceRequest) │ ├── kanban://tasks │ ├── kanban://tasks/active │ ├── kanban://task/{id} ├── Create StdioServerTransport └── Connect transport to server (server.connect(transport)) ``` -------------------------------- ### vk summary standup example output Source: https://deepwiki.com/BradGroux/veritas-kanban/6.3-cli-and-workflow-commands Example output from the vk summary standup command, showing a daily standup report with sections for Completed, In Progress, Blocked, and Stats. The output includes task IDs, status indicators, and velocity metrics. ```text # Daily Standup - 2026-02-06 ## Completed (3 tasks) - ✓ task_20260201_abc123 - Implement OAuth login - ✓ task_20260201_def456 - Fix button alignment - ✓ task_20260201_ghi789 - Update documentation ## In Progress (2 tasks) - → task_20260201_jkl012 - Database migration - → task_20260201_mno345 - Performance optimization ## Blocked (1 task) - ⊗ task_20260201_pqr678 - API integration (Waiting on credentials) ## Stats - Velocity: 3 tasks/day - Time tracked: 7h 23m ``` -------------------------------- ### @Mention Parsing Example Source: https://deepwiki.com/BradGroux/veritas-kanban/6-ai-agent-integration Example of @mention syntax used in comments to notify specific agents. ```text @TARS can you review the security implications of this change? ``` -------------------------------- ### vk create usage examples Source: https://deepwiki.com/BradGroux/veritas-kanban/6.3-cli-and-workflow-commands Creates a new task. Flags: --type, --priority, --project, --json. API call: POST /api/tasks with JSON body containing task fields. ```bash vk create "Implement OAuth login" vk create "Fix button alignment" --type code --priority high --project my-app ``` -------------------------------- ### Expected startup output Source: https://deepwiki.com/BradGroux/veritas-kanban/2-getting-started Shows the expected output when running pnpm dev. ```text [server] Server listening on http://127.0.0.1:3001 [server] WebSocket server ready at ws://127.0.0.1:3001/ws [web] VITE v6.4.1 ready in 523 ms [web] ➜ Local: http://localhost:3000/ ``` -------------------------------- ### Terminal-First Development Loop (vk list, vk create, vk begin, vk block, vk unblock, vk done, vk summary) Source: https://deepwiki.com/BradGroux/veritas-kanban/6.3-cli-and-workflow-commands Full development cycle for human developers using the CLI without switching to the browser. Covers checking in-progress tasks, creating a new task, starting work, blocking and unblocking, completing with a summary, and generating a standup report. ```bash # Morning: check what's in progress vk list --status in-progress # Create new task vk create "Implement OAuth login" --type code --project my-app # Start work (gets task ID from previous output) vk begin abc123 # Work happens in editor/terminal... # Block if needed vk block abc123 "Waiting on API key from client" # Resume later vk unblock abc123 # Complete with summary vk done abc123 "Added OAuth2 with Google and GitHub providers" # Generate standup vk summary standup --text ``` -------------------------------- ### NDJSON telemetry event examples Source: https://deepwiki.com/BradGroux/veritas-kanban/3.2-data-storage-and-file-format Example NDJSON lines representing telemetry events. Each line is a complete JSON object for a single event, such as task creation, run start, and run completion. The format enables streaming and append-only processing. ```ndjson {"type":"task.created","taskId":"task_20260126_abc123","project":"rubicon","status":"todo","timestamp":"2026-01-26T10:30:00.000Z"} {"type":"run.started","runId":"run_001","taskId":"task_20260126_abc123","agent":"claude-code","timestamp":"2026-01-26T10:31:00.000Z"} {"type":"run.completed","runId":"run_001","success":true,"durationMs":120000,"timestamp":"2026-01-26T10:33:00.000Z"} ``` -------------------------------- ### Liveness Probe Response Source: https://deepwiki.com/BradGroux/veritas-kanban/4.6-health-checks-and-monitoring Example JSON response from the `GET /health/live` endpoint. It always returns HTTP 200 and includes a status and timestamp. ```json { "status": "ok", "timestamp": "2024-01-15T10:30:00.000Z" } ``` -------------------------------- ### Key Development Commands Source: https://deepwiki.com/BradGroux/veritas-kanban/2.2-development-environment Commands for starting, testing, and building the development environment. Includes `pnpm dev` for normal development, `pnpm dev:clean` for a clean restart that kills stale processes, `pnpm dev:watchdog` for auto-restart on health failure, `curl` to check server health, `pnpm test` for tests, and `pnpm build` for production. ```bash # Start development servers pnpm dev # Clean restart (kills stale processes) pnpm dev:clean # Auto-restart on health failure (optional) pnpm dev:watchdog # Check server health curl http://localhost:3001/api/health # Run tests pnpm test # Build for production pnpm build ``` -------------------------------- ### Expected API Health Check Response Source: https://deepwiki.com/BradGroux/veritas-kanban/2.1-installation-and-setup The expected JSON response from the health endpoint, indicating the service is operational. ```json { "ok": true, "service": "veritas-kanban", "version": "2.0.0" } ``` -------------------------------- ### Build frontend for production Source: https://deepwiki.com/BradGroux/veritas-kanban/5-frontend-(web) Builds the frontend from the web directory, outputting static assets to web/dist/. The backend serves these files with cache headers: hashed assets cached for 1 year with immutable flag, index.html always revalidated. ```bash # Build frontend for production cd web pnpm build # Output: web/dist/ (static assets) # - index.html # - assets/*.js (hashed bundles) # - assets/*.css (hashed styles) ``` -------------------------------- ### vk project create usage with flags Source: https://deepwiki.com/BradGroux/veritas-kanban/6.3-cli-and-workflow-commands Creates a new project. Supports --color, --description, and --json flags. API call: POST /api/projects. ```bash vk project create "my-app" vk project create "rubicon" --color "#7c3aed" --description "Main product" ``` -------------------------------- ### Deep Diagnostics Response Example for GET /health/deep Source: https://deepwiki.com/BradGroux/veritas-kanban/4.6-health-checks-and-monitoring Example JSON response from the deep diagnostics endpoint, showing status, checks, uptime, version, memory, WebSocket connections, circuit breaker status, node info, data directory size, and timestamp. Requires admin authentication via authenticate and authorize('admin') middleware. ```json { "status": "ok", "checks": { "storage": "ok", "memory": "ok", "disk": "ok" }, "uptime": 3600.5, "version": "1.2.3", "memory": { "heapUsed": 45678912, "heapTotal": 67108864, "rss": 89012345, "external": 1234567 }, "wsConnections": 3, "circuitBreakers": { "github": { "state": "closed", "failures": 0, "successRate": 1.0 } }, "node": { "version": "v20.11.0", "platform": "darwin" }, "dataDirectory": { "path": "/path/to/.veritas-kanban", "sizeBytes": 12345678 }, "timestamp": "2024-01-15T10:30:00.000Z" } ``` -------------------------------- ### Import Settings - POST /api/config/import Source: https://deepwiki.com/BradGroux/veritas-kanban/8-configuration-reference Imports configuration from a previously exported JSON file. Validates structure before applying. Returns imported settings with 200 OK. ```http POST /api/config/import ``` -------------------------------- ### GET /api-docs Source: https://deepwiki.com/BradGroux/veritas-kanban/9-api-reference Interactive API documentation available at http://localhost:3001/api-docs. Provides complete endpoint catalog with request/response examples, try-it-out functionality, schema definitions, and authentication configuration. ```APIDOC ## [GET] /api-docs ### Description Interactive API documentation with complete endpoint catalog, try-it-out functionality, schema definitions, and authentication configuration. ### Method GET ### Endpoint http://localhost:3001/api-docs ### Response #### Success Response (200) - Swagger UI HTML page ``` -------------------------------- ### Configure server/.env Source: https://deepwiki.com/BradGroux/veritas-kanban/2-getting-started Edit server/.env to set authentication and server binding. VERITAS_ADMIN_KEY must be at least 32 characters; the server logs a warning at startup if it is shorter. ```bash # Authentication VERITAS_AUTH_ENABLED=true VERITAS_ADMIN_KEY=your-secure-admin-key-here # CHANGE THIS VERITAS_API_KEYS=agent1:key1:agent,dashboard:key2:read-only # Server binding PORT=3001 HOST=127.0.0.1 # Feature flags VERITAS_AUTO_SEED=true # Load example tasks on first run ``` -------------------------------- ### ETag Conditional Request Example Source: https://deepwiki.com/BradGroux/veritas-kanban/3.3-client-server-communication Shows a GET request with an If-None-Match header and the possible responses: 304 Not Modified if unchanged, or 200 OK with body if changed. Express generates weak ETags for JSON responses. ```http GET /api/v1/tasks If-None-Match: W/"123-abc" → 304 Not Modified (if unchanged) → 200 OK + body (if changed) ``` -------------------------------- ### Mandatory Registration Flow (curl) Source: https://deepwiki.com/BradGroux/veritas-kanban/6.1-agent-registry-system First action on startup: registers the agent with the registry via POST to /api/agents/register. Includes agent details like id, model, provider, capabilities, and metadata role. ```bash # 1. FIRST ACTION: Register on startup curl -s -X POST http://localhost:3001/api/agents/register \ -H 'Content-Type: application/json' \ -d '{ "id": "TARS", "name": "TARS", "model": "claude-opus-4-6", "provider": "anthropic", "capabilities": [{"name": "code-review"}], "version": "2.0.0", "metadata": {"role": "lead"} }' ``` -------------------------------- ### Generate Admin Key and Set VERITAS_ADMIN_KEY Source: https://deepwiki.com/BradGroux/veritas-kanban/2.1-installation-and-setup Generates a strong random key (32+ characters recommended) and adds it to server/.env as VERITAS_ADMIN_KEY. This key provides admin-level API access. ```bash # Generate a strong key (32+ characters recommended) node -e "console.log(require('crypto').randomBytes(32).toString('hex'))" # Add to server/.env VERITAS_ADMIN_KEY= ``` -------------------------------- ### User prompt: Multi-step workflow Source: https://deepwiki.com/BradGroux/veritas-kanban/6.4-mcp-server-for-claude-desktop Example user prompt for a multi-step workflow. Claude invokes create_task, then update_task with project and status, and optionally start_agent for code tasks. ```text Create a task for fixing the login bug, assign it to the my-app project, and start working on it ``` -------------------------------- ### Run development servers with pnpm dev Source: https://deepwiki.com/BradGroux/veritas-kanban/5-frontend-(web) Starts the backend and frontend concurrently from the repository root. Backend runs on port 3001 via tsx watch, frontend on port 3000 via Vite with HMR. ```bash # From repository root pnpm dev # This runs concurrently: # - Backend: tsx watch server/src/index.ts (port 3001) # - Frontend: vite dev (port 3000) ``` -------------------------------- ### GET /api/health Response JSON Source: https://deepwiki.com/BradGroux/veritas-kanban/4.6-health-checks-and-monitoring Example response from the /api/health endpoint. Includes ok, service, version, uptimeMs, and timestamp fields. The service field identifies the response as coming from Veritas Kanban, and ok: true is a boolean signal for scripting. ```json { "ok": true, "service": "veritas-kanban", "version": "1.2.3", "uptimeMs": 3600500, "timestamp": "2024-01-15T10:30:00.000Z" } ``` -------------------------------- ### vk github CLI usage examples Source: https://deepwiki.com/BradGroux/veritas-kanban/7.5-github-integration Shows common commands for the vk github command group: sync, status, mappings, and config. All commands support --json for machine-readable output. ```bash # Trigger sync and see result vk github sync # Check when last sync occurred vk github status # Get mappings as JSON for scripting vk github mappings --json | jq '.mappings' # View current configuration vk github config ``` -------------------------------- ### Check API authentication status Source: https://deepwiki.com/BradGroux/veritas-kanban/2.1-installation-and-setup Use curl to check the authentication status of the API. This is part of troubleshooting 'Authentication required' errors. Ensure VERITAS_ADMIN_KEY is set in server/.env and consider VERITAS_AUTH_LOCALHOST_BYPASS=true for local development. ```bash curl http://localhost:3001/api/auth/status ``` -------------------------------- ### Restore from backup Source: https://deepwiki.com/BradGroux/veritas-kanban/10-troubleshooting-and-operations Commands to extract a backup, copy files to the active directory, and restart the server to rebuild the cache. Run from the `.veritas-kanban/backups` directory. ```bash # Extract backup cd .veritas-kanban/backups tar -xzf backup-2025-01-15T10-30-00.tar.gz # Copy files to active directory cp -r backup-2025-01-15T10-30-00/* ../ # Restart server to rebuild cache pnpm dev ``` -------------------------------- ### Use Agent Helper Functions for Assignment Source: https://deepwiki.com/BradGroux/veritas-kanban/9-api-reference Imports and uses agent helper functions from '@veritas-kanban/shared' to retrieve assigned agents, get the primary agent, and check if a specific agent is assigned to a task. The comments show example return values. ```typescript import { getAssignedAgents, getPrimaryAgent, isAgentAssigned } from '@veritas-kanban/shared'; const agents = getAssignedAgents(task); // ['claude-code', 'veritas'] const primary = getPrimaryAgent(task); // 'claude-code' const assigned = isAgentAssigned(task, 'veritas'); // true ``` -------------------------------- ### vk time show usage examples Source: https://deepwiki.com/BradGroux/veritas-kanban/6.3-cli-and-workflow-commands Displays a time tracking summary for a task. The task ID supports partial matching, and the --json flag outputs the summary in JSON format. Time data is embedded in the task object returned by GET /api/tasks/. ```bash vk time show task_20260201_abc123 vk time show abc123 --json ``` -------------------------------- ### Build shared package for troubleshooting Source: https://deepwiki.com/BradGroux/veritas-kanban/2-getting-started Run this if you see TypeScript errors about missing types from @veritas-kanban/shared. ```bash pnpm --filter @veritas-kanban/shared build ``` -------------------------------- ### GET /api/cost-prediction/accuracy Source: https://deepwiki.com/BradGroux/veritas-kanban/9-api-reference Gets prediction accuracy. ```APIDOC ## GET /api/cost-prediction/accuracy ### Description Gets prediction accuracy. ### Method GET ### Endpoint /api/cost-prediction/accuracy ``` -------------------------------- ### list_tasks Tool Flow Source: https://deepwiki.com/BradGroux/veritas-kanban/6.4-mcp-server-for-claude-desktop Illustrates the implementation pattern for the list_tasks tool, including schema definition, parameter extraction, URL construction, fetch call, parsing, and response formatting. ```text list_tasks tool ├── Schema: z.object({ status?: z.string(), type?: z.string(), project?: z.string() }) ├── Extract: const { status, type, project } = args ├── Build URL: /api/tasks?status=${status}&type=${type}&project=${project} ├── Fetch: await fetch(url, { headers: { 'X-API-Key': API_KEY } }) ├── Parse: const tasks = await response.json() └── Return: { content: [{ type: 'text', text: JSON.stringify(tasks) }] } ``` -------------------------------- ### GET /api/agents/routing Source: https://deepwiki.com/BradGroux/veritas-kanban/9-api-reference Gets the routing configuration. ```APIDOC ## GET /api/agents/routing ### Description Gets the routing configuration. ### Method GET ### Endpoint /api/agents/routing ### Response No response body documented. ``` -------------------------------- ### CI/CD Deployment Script (vk create, vk begin, vk done, vk block) Source: https://deepwiki.com/BradGroux/veritas-kanban/6.3-cli-and-workflow-commands Bash script for embedding the CLI in CI/CD pipelines to track deployment tasks. Creates a deployment task with 'vk create', starts tracking with 'vk begin', runs a deployment script, then completes with 'vk done' on success or blocks with 'vk block' and exits with code 1 on failure. ```bash #!/bin/bash # Deploy and track with Veritas Kanban # Create deployment task TASK_ID=$(vk create "Deploy v2.1.0 to staging" \ --type automation \ --project ops \ --json | jq -r '.id') # Start tracking vk begin "$TASK_ID" # Run deployment ./deploy.sh # Complete or block based on result if [ $? -eq 0 ]; then vk done "$TASK_ID" "Successfully deployed v2.1.0 to staging" else vk block "$TASK_ID" "Deployment failed — check CI logs" exit 1 fi ``` -------------------------------- ### GET /api/cost-prediction/accuracy/stats Source: https://deepwiki.com/BradGroux/veritas-kanban/9-api-reference Gets aggregate accuracy statistics. ```APIDOC ## GET /api/cost-prediction/accuracy/stats ### Description Gets aggregate accuracy statistics. ### Method GET ### Endpoint /api/cost-prediction/accuracy/stats ``` -------------------------------- ### GET /api/github/status Source: https://deepwiki.com/BradGroux/veritas-kanban/9-api-reference Gets the GitHub sync status. ```APIDOC ## GET /api/github/status ### Description Gets the GitHub sync status. ### Method GET ### Endpoint /api/github/status ``` -------------------------------- ### GET /api/templates/:id Source: https://deepwiki.com/BradGroux/veritas-kanban/9-api-reference Gets a template by ID. ```APIDOC ## GET /api/templates/:id ### Description Gets a template by ID. ### Method GET ### Endpoint /api/templates/:id ### Parameters #### Path Parameters - **id** (string) - Required - The ID of the template. ``` -------------------------------- ### GET /api/agent/status Source: https://deepwiki.com/BradGroux/veritas-kanban/9-api-reference Gets the current agent status. ```APIDOC ## GET /api/agent/status ### Description Gets the current agent status. ### Method GET ### Endpoint /api/agent/status ### Response No response body documented. ``` -------------------------------- ### GET /api/notifications/pending Source: https://deepwiki.com/BradGroux/veritas-kanban/6.4-mcp-server-for-claude-desktop Get unsent notifications formatted for Teams. Returns a list of pending notifications. ```APIDOC ## [GET] /api/notifications/pending ### Description Get unsent notifications formatted for Teams. ### Method GET ### Endpoint /api/notifications/pending ### Response #### Success Response (200) - **notifications** (array) - List of pending notifications ``` -------------------------------- ### Example Pino log entries Source: https://deepwiki.com/BradGroux/veritas-kanban/10-troubleshooting-and-operations Shows the structured JSON format of log entries, including server startup, WebSocket origin rejection, and task update failure with error context. ```json {"level":30,"time":1705315800000,"name":"server","msg":"Veritas Kanban Server started","port":3001,"api":"http://localhost:3001","ws":"ws://localhost:3001/ws"} {"level":40,"time":1705315850000,"name":"auth","msg":"WebSocket origin rejected","origin":"http://evil.com","reason":"not in allowed origins"} {"level":50,"time":1705315900000,"name":"tasks","err":{"type":"ValidationError","message":"Task status transition not allowed"},"msg":"Task update failed"} ``` -------------------------------- ### GET /api/summary/memory Source: https://deepwiki.com/BradGroux/veritas-kanban/6.4-mcp-server-for-claude-desktop Get a task summary formatted for AI memory files. Returns a memory-formatted summary. ```APIDOC ## [GET] /api/summary/memory ### Description Task summary formatted for AI memory files. ### Method GET ### Endpoint /api/summary/memory ### Response #### Success Response (200) - **summary** (object) - The memory-formatted task summary ``` -------------------------------- ### vk project list usage and JSON output Source: https://deepwiki.com/BradGroux/veritas-kanban/6.3-cli-and-workflow-commands Lists all projects. Supports --json flag for JSON output. API call: GET /api/projects. ```bash vk project list vk project list --json ``` -------------------------------- ### Verify vk CLI installation Source: https://deepwiki.com/BradGroux/veritas-kanban/6.3-cli-and-workflow-commands If the vk command is not recognized, verify the npm link was created. Run cd cli && npm link, then check which vk shows the linked path. ```bash cd cli && npm link which vk # Should show the linked path ``` -------------------------------- ### User prompt: Create a code task Source: https://deepwiki.com/BradGroux/veritas-kanban/6.4-mcp-server-for-claude-desktop Example user prompt for creating a task via Claude. The MCP server invokes the create_task tool with the provided parameters. ```text Create a new code task called "Implement OAuth login" for the my-app project with high priority ``` -------------------------------- ### Mount v1 and v2 routers with backward-compat alias Source: https://deepwiki.com/BradGroux/veritas-kanban/4.2-api-routes-and-versioning Shows how to mount v1 at legacy paths and v2 at the new canonical path, allowing simultaneous support for multiple API versions. The `/api` alias points to v1 for backward compatibility, and clients can opt into v2 via `/api/v2/*` paths. ```javascript // Mount v1 at legacy paths app.use('/api/v1', v1Router); app.use('/api', v1Router); // Backward-compat alias // Mount v2 at new canonical path app.use('/api/v2', v2Router); ``` -------------------------------- ### GET /api/chat/sessions/:sessionId Source: https://deepwiki.com/BradGroux/veritas-kanban/9-api-reference Gets session history for a specific chat session. ```APIDOC ## GET /api/chat/sessions/:sessionId ### Description Gets session history for a specific chat session. ### Method GET ### Endpoint /api/chat/sessions/:sessionId ### Parameters #### Path Parameters - **sessionId** (string) - Required - The ID of the chat session. ```