Archon/packages/cli/package.json
Cole Medin 7815e308d5 feat: comprehensive test coverage across all packages (#645)
Add 500+ new tests across 8 packages, filling critical coverage gaps:

**@archon/web** (NEW — 47 tests)
- format.ts: ensureUtc, formatDuration, formatDurationMs, formatStarted
- message-cache.ts: LRU eviction, getCachedMessages, setSendInFlight

**@archon/core** (179 new tests)
- orchestrator-agent.ts: parseOrchestratorCommands, filterToolIndicators, stream/batch modes
- handlers/clone.ts: URL normalization, SSH→HTTPS, GH_TOKEN injection, command auto-loading
- utils/error-formatter.ts: all error categories, security filtering
- db/adapters/postgres.ts: query, withTransaction, dialect helpers

**@archon/server** (91 new tests)
- api.codebases: POST/GET/DELETE codebase CRUD
- api.messages: POST message, GET history, PATCH conversation
- api.health: health, db health, concurrency, config, commands
- api.workflow-runs: run/cancel/list/get workflow executions, dashboard

**@archon/workflows** (141 new tests)
- event-emitter.ts: subscribe, emit, listener isolation, run mapping
- validation-parser.ts: markdown table parsing, result cells, edge cases
- types.ts: all type guards (isParallelBlock, isDagWorkflow, isBashNode, etc.)
- command-validation.ts: path traversal, dotfiles, empty names

**@archon/isolation** (42 new tests)
- WorktreeProvider: destroy(), get(), list(), adopt(), healthCheck()
- Orphan directory cleanup with Windows path fix

**@archon/adapters** (24 new tests)
- Discord: ensureThread, thread creation, mention stripping, history
- Telegram: getConversationId, sendFormattedChunk fallback

**@archon/cli** (8 new tests)
- chatCommand: message streaming, conversation ID generation

Also updates package.json test scripts to include all new files with
proper mock.module isolation batching.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-14 15:44:24 -05:00

26 lines
755 B
JSON

{
"name": "@archon/cli",
"version": "0.2.0",
"type": "module",
"main": "./src/cli.ts",
"bin": {
"archon": "./src/cli.ts"
},
"scripts": {
"cli": "bun src/cli.ts",
"test": "bun test src/commands/version.test.ts src/commands/setup.test.ts && bun test src/commands/workflow.test.ts && bun test src/commands/isolation.test.ts && bun test src/commands/chat.test.ts",
"type-check": "bun x tsc --noEmit"
},
"dependencies": {
"@archon/core": "workspace:*",
"@archon/git": "workspace:*",
"@archon/isolation": "workspace:*",
"@archon/paths": "workspace:*",
"@archon/workflows": "workspace:*",
"@clack/prompts": "^1.0.0",
"dotenv": "^17.2.3"
},
"devDependencies": {
"@types/node": "^22.0.0"
}
}