Files
heretek-openclaw-core/package.json
T
John Doe fa19336499 Phase 3: Testing Infrastructure and CI/CD Pipeline
FEATURES:
- Add comprehensive test coverage for A2A, Agent Lifecycle, and Approval systems
- Create CI/CD pipelines for automated testing and deployment
- Add Docker-based test environment for consistent test execution

TESTS ADDED:
- tests/integration/gateway-rpc.test.ts - Gateway RPC and WebSocket tests
- tests/integration/redis-messaging.test.ts - Redis pub/sub and messaging tests
- tests/unit/agent-heartbeat.test.ts - Agent heartbeat mechanism tests
- tests/unit/approval-bypass.test.ts - Approval bypass and Liberation plugin tests

CI/CD WORKFLOWS:
- .github/workflows/ci.yml - Main CI pipeline with lint, typecheck, unit, integration tests
- .github/workflows/cd.yml - Deployment pipeline for staging and production
- .github/workflows/patch-validation.yml - Validate patches on upstream sync

SCRIPTS:
- scripts/run-tests.sh - Run all tests with coverage reporting
- scripts/run-tests-e2e.sh - Run E2E tests with service orchestration
- scripts/generate-coverage-report.sh - Generate HTML coverage reports

DOCKER:
- docker-compose.test.yml - Test environment with Redis, Postgres, Gateway
- tests/Dockerfile - Containerized test runner image

CONFIGURATION:
- .github/CODEOWNERS - Code ownership assignments
- package.json - Updated with new test scripts and dependencies
- tests/vitest.config.ts - Expanded test patterns and coverage settings

Signed-off-by: Roo <roo@heretek.io>
2026-04-01 13:09:08 -04:00

133 lines
4.1 KiB
JSON

{
"name": "@heretek/openclaw-core",
"version": "1.0.0",
"description": "Heretek OpenClaw - Self-improving autonomous agent collective with LiteLLM A2A protocol",
"type": "module",
"scripts": {
"postinstall": "scripts/patch-apply.sh",
"test": "vitest run",
"test:watch": "vitest watch",
"test:unit": "vitest run tests/unit/",
"test:integration": "vitest run tests/integration/",
"test:e2e": "vitest run tests/e2e/",
"test:skills": "vitest run tests/skills/",
"test:coverage": "vitest run --coverage",
"test:coverage:html": "vitest run --coverage --reporter=html",
"test:ui": "vitest --ui",
"test:all": "./scripts/run-tests.sh",
"test:all:coverage": "./scripts/run-tests.sh --coverage",
"test:e2e:full": "./scripts/run-tests-e2e.sh",
"test:coverage:report": "./scripts/generate-coverage-report.sh",
"test:coverage:serve": "./scripts/generate-coverage-report.sh --serve",
"typecheck": "tsc --noEmit",
"typecheck:watch": "tsc --noEmit --watch",
"lint": "eslint . --cache",
"lint:fix": "eslint . --cache --fix",
"format": "prettier --write .",
"format:check": "prettier --check .",
"format:write": "prettier --write .",
"clean": "rm -rf dist/ build/ .svelte-kit/ coverage/ test-results/",
"clean:modules": "rm -rf node_modules/ plugins/*/node_modules/",
"build": "npm run typecheck && npm run lint && npm run format:check",
"build:ci": "npm run typecheck && npm run lint",
"prepare": "husky install",
"precommit": "lint-staged",
"docker:build": "docker compose build",
"docker:up": "docker compose up -d",
"docker:down": "docker compose down",
"docker:logs": "docker compose logs -f",
"docker:restart": "docker compose restart",
"docker:test:up": "docker-compose -f docker-compose.test.yml up -d",
"docker:test:down": "docker-compose -f docker-compose.test.yml down",
"docker:test:run": "docker-compose -f docker-compose.test.yml up test-runner",
"docker:test:e2e": "docker-compose -f docker-compose.test.yml up --build test-runner",
"health:check": "./scripts/health-check.sh",
"health:litellm": "python3 ./scripts/litellm-healthcheck.py",
"backup": "./scripts/production-backup.sh",
"validate:config": "node scripts/validate-config.js",
"validate:config:strict": "node scripts/validate-config.js --strict",
"validate:cycles": "./scripts/validate-cycles.sh",
"test:e2e:playwright": "playwright test",
"test:e2e:ui": "playwright test --ui",
"patch:apply": "scripts/patch-apply.sh",
"patch:create": "scripts/patch-create.sh",
"patch:status": "scripts/patch-status.sh",
"patch:list": "cat .patchestoo",
"upstream:sync": "scripts/upstream-sync.sh",
"upstream:fetch": "git fetch upstream",
"upstream:rebase": "git rebase upstream/main"
},
"keywords": [
"ai",
"agents",
"llm",
"litellm",
"a2a",
"autonomous",
"collective",
"heretek",
"openclaw"
],
"author": "Heretek",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/heretek/heretek-openclaw-core.git"
},
"bugs": {
"url": "https://github.com/heretek/heretek-openclaw-core/issues"
},
"homepage": "https://github.com/heretek/heretek-openclaw-core#readme",
"engines": {
"node": ">=20.0.0",
"npm": ">=9.0.0"
},
"devDependencies": {
"@eslint/js": "^9.0.0",
"@playwright/test": "^1.42.0",
"@types/node": "^20.11.0",
"@types/ws": "^8.5.0",
"@vitest/coverage-v8": "^1.3.0",
"@vitest/ui": "^1.3.0",
"eslint": "^9.0.0",
"eslint-config-prettier": "^9.1.0",
"husky": "^9.0.0",
"lint-staged": "^15.2.0",
"prettier": "^3.2.0",
"redis": "^4.6.0",
"typescript": "^5.3.0",
"typescript-eslint": "^8.0.0",
"vitest": "^1.3.0",
"ws": "^8.16.0"
},
"lint-staged": {
"*.{js,ts}": [
"eslint --cache --fix",
"prettier --write"
],
"*.{json,md,yaml,yml}": [
"prettier --write"
]
},
"volta": {
"node": "20.11.0",
"npm": "10.2.4"
}
}