mirror of
https://github.com/coleam00/Archon
synced 2026-04-21 21:47:53 +00:00
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>
26 lines
755 B
JSON
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"
|
|
}
|
|
}
|