Archon/package.json
Wirasm ca6a5b2dd5
chore: Improve unit test coverage (#3)
* docs: add PRP for improving test coverage

- Create comprehensive PRP documenting test infrastructure improvements
- Add coverage directory to .gitignore
- Plan covers 6 phases: infrastructure, utilities, database, adapters, orchestrator, CI/CD
- Target: increase coverage from 15.98% to 80%+

* test: add comprehensive unit test coverage

- Add test infrastructure: setup.ts, mock utilities for database, platform, and streaming
- Add tests for all database modules (conversations, codebases, sessions)
- Add tests for test adapter, client factory, orchestrator
- Expand Claude and Codex client tests with full mock coverage
- Add tool-formatter tests
- Configure Jest with coverage thresholds (30% branches, 40% functions/lines/statements)
- Add CI workflow for automated testing on push/PR
- Add test:coverage and test:ci npm scripts

Coverage: 170 tests passing, 53% lines, 48% branches, 65% functions

Co-Authored-By: Claude <noreply@anthropic.com>

* chore: improve test coverage and fix type issues

- Fix type annotations across multiple files
- Improve test mocks for streaming and database operations
- Update jest config for better coverage reporting
- Fix minor type issues in orchestrator, sessions, and adapters
- Update documentation for architecture and cloud deployment

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-12-01 11:31:00 +02:00

59 lines
1.5 KiB
JSON

{
"name": "remote-coding-agent",
"version": "1.0.0",
"description": "Remote agentic coding platform - Control AI coding assistants from Telegram, Slack, and GitHub",
"main": "dist/index.js",
"scripts": {
"dev": "tsx watch src/index.ts",
"build": "tsc",
"start": "node dist/index.js",
"setup-auth": "node dist/scripts/setup-auth.js",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"test:ci": "jest --coverage --ci --maxWorkers=2",
"type-check": "tsc --noEmit",
"lint": "eslint . --cache",
"lint:fix": "eslint . --cache --fix",
"format": "prettier --write .",
"format:check": "prettier --check ."
},
"keywords": [
"ai",
"coding-assistant",
"telegram",
"slack",
"github",
"claude",
"codex"
],
"author": "",
"license": "MIT",
"dependencies": {
"@anthropic-ai/claude-agent-sdk": "^0.1.30",
"@octokit/rest": "^22.0.0",
"@openai/codex-sdk": "^0.57.0",
"dotenv": "^16.4.0",
"express": "^4.18.0",
"pg": "^8.11.0",
"telegraf": "^4.16.0"
},
"devDependencies": {
"@eslint/js": "^9.39.1",
"@types/express": "^4.17.0",
"@types/jest": "^29.5.0",
"@types/node": "^20.0.0",
"@types/pg": "^8.11.0",
"eslint": "^9.39.1",
"eslint-config-prettier": "10.1.8",
"jest": "^29.7.0",
"prettier": "3.6.2",
"ts-jest": "^29.1.0",
"tsx": "^4.7.0",
"typescript": "^5.3.0",
"typescript-eslint": "^8.46.4"
},
"engines": {
"node": ">=20.0.0"
}
}