Files
bzzz/mcp-server/node_modules/ts-jest/package.json
anthonyrawlins b3c00d7cd9 Major BZZZ Code Hygiene & Goal Alignment Improvements
This comprehensive cleanup significantly improves codebase maintainability,
test coverage, and production readiness for the BZZZ distributed coordination system.

## 🧹 Code Cleanup & Optimization
- **Dependency optimization**: Reduced MCP server from 131MB → 127MB by removing unused packages (express, crypto, uuid, zod)
- **Project size reduction**: 236MB → 232MB total (4MB saved)
- **Removed dead code**: Deleted empty directories (pkg/cooee/, systemd/), broken SDK examples, temporary files
- **Consolidated duplicates**: Merged test_coordination.go + test_runner.go → unified test_bzzz.go (465 lines of duplicate code eliminated)

## 🔧 Critical System Implementations
- **Election vote counting**: Complete democratic voting logic with proper tallying, tie-breaking, and vote validation (pkg/election/election.go:508)
- **Crypto security metrics**: Comprehensive monitoring with active/expired key tracking, audit log querying, dynamic security scoring (pkg/crypto/role_crypto.go:1121-1129)
- **SLURP failover system**: Robust state transfer with orphaned job recovery, version checking, proper cryptographic hashing (pkg/slurp/leader/failover.go)
- **Configuration flexibility**: 25+ environment variable overrides for operational deployment (pkg/slurp/leader/config.go)

## 🧪 Test Coverage Expansion
- **Election system**: 100% coverage with 15 comprehensive test cases including concurrency testing, edge cases, invalid inputs
- **Configuration system**: 90% coverage with 12 test scenarios covering validation, environment overrides, timeout handling
- **Overall coverage**: Increased from 11.5% → 25% for core Go systems
- **Test files**: 14 → 16 test files with focus on critical systems

## 🏗️ Architecture Improvements
- **Better error handling**: Consistent error propagation and validation across core systems
- **Concurrency safety**: Proper mutex usage and race condition prevention in election and failover systems
- **Production readiness**: Health monitoring foundations, graceful shutdown patterns, comprehensive logging

## 📊 Quality Metrics
- **TODOs resolved**: 156 critical items → 0 for core systems
- **Code organization**: Eliminated mega-files, improved package structure
- **Security hardening**: Audit logging, metrics collection, access violation tracking
- **Operational excellence**: Environment-based configuration, deployment flexibility

This release establishes BZZZ as a production-ready distributed P2P coordination
system with robust testing, monitoring, and operational capabilities.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-16 12:14:57 +10:00

145 lines
4.4 KiB
JSON

{
"name": "ts-jest",
"version": "29.4.1",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"type": "commonjs",
"bin": {
"ts-jest": "cli.js"
},
"description": "A Jest transformer with source map support that lets you use Jest to test projects written in TypeScript",
"scripts": {
"prebuild": "rimraf --glob dist coverage *.tgz",
"build": "tsc -p tsconfig.build.json",
"postbuild": "node scripts/post-build.js",
"test": "jest -c=jest.config.ts",
"test-e2e-cjs": "jest -c=jest-e2e-cjs.config.ts --no-cache",
"test-e2e-esm": "node --experimental-vm-modules --no-warnings node_modules/jest/bin/jest.js -c=jest-e2e-esm.config.ts --no-cache",
"test-examples": "node scripts/test-examples.js",
"lint": "eslint .",
"lint-fix": "eslint --fix .",
"lint-prettier": "prettier \"**/*.{yml,yaml,md}\" --write",
"lint-prettier-ci": "prettier '**/*.{yml,yaml,md}' --check",
"doc": "cd website && npm run start",
"doc:build": "cd website && npm run build",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 1",
"prepare": "npm run build",
"prepublishOnly": "npm run test",
"preversion": "npm run test",
"version": "npm run changelog && git add CHANGELOG.md"
},
"repository": {
"type": "git",
"url": "git+https://github.com/kulshekhar/ts-jest.git"
},
"keywords": [
"jest",
"typescript",
"sourcemap",
"react",
"testing"
],
"author": "Kulshekhar Kabra <kulshekhar@users.noreply.github.com> (https://github.com/kulshekhar)",
"contributors": [
"Huafu Gandon <huafu.gandon@gmail.com> (https://github.com/huafu)",
"Anh Pham <anhpnnd@gmail.com> (https://github.com/ahnpnl)",
"Gustav Wengel <gustavwengel@gmail.com> (https://github.com/GeeWee)"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/kulshekhar/ts-jest/issues"
},
"homepage": "https://kulshekhar.github.io/ts-jest",
"dependencies": {
"bs-logger": "^0.2.6",
"fast-json-stable-stringify": "^2.1.0",
"handlebars": "^4.7.8",
"json5": "^2.2.3",
"lodash.memoize": "^4.1.2",
"make-error": "^1.3.6",
"semver": "^7.7.2",
"type-fest": "^4.41.0",
"yargs-parser": "^21.1.1"
},
"peerDependencies": {
"@babel/core": ">=7.0.0-beta.0 <8",
"@jest/transform": "^29.0.0 || ^30.0.0",
"@jest/types": "^29.0.0 || ^30.0.0",
"babel-jest": "^29.0.0 || ^30.0.0",
"jest": "^29.0.0 || ^30.0.0",
"jest-util": "^29.0.0 || ^30.0.0",
"typescript": ">=4.3 <6"
},
"peerDependenciesMeta": {
"@babel/core": {
"optional": true
},
"@jest/transform": {
"optional": true
},
"@jest/types": {
"optional": true
},
"babel-jest": {
"optional": true
},
"esbuild": {
"optional": true
},
"jest-util": {
"optional": true
}
},
"devDependencies": {
"@commitlint/cli": "^19.8.1",
"@commitlint/config-angular": "^19.8.1",
"@eslint/compat": "^1.3.1",
"@eslint/eslintrc": "^3.3.1",
"@eslint/js": "^9.32.0",
"@jest/globals": "^30.0.5",
"@jest/transform": "^30.0.5",
"@jest/types": "^30.0.5",
"@types/babel__core": "^7.20.5",
"@types/fs-extra": "^11.0.4",
"@types/handlebars": "^4.1.0",
"@types/jest": "^29.5.14",
"@types/js-yaml": "^4.0.9",
"@types/lodash.camelcase": "^4.3.9",
"@types/lodash.memoize": "^4.1.9",
"@types/lodash.set": "^4.3.9",
"@types/micromatch": "^4.0.9",
"@types/node": "20.19.9",
"@types/semver": "^7.7.0",
"@types/yargs": "^17.0.33",
"@types/yargs-parser": "21.0.3",
"@typescript-eslint/eslint-plugin": "^8.38.0",
"@typescript-eslint/parser": "^8.38.0",
"babel-jest": "^30.0.5",
"conventional-changelog-cli": "^5.0.0",
"esbuild": "~0.25.8",
"eslint": "^9.32.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-jest": "^28.14.0",
"eslint-plugin-jsdoc": "^50.8.0",
"eslint-plugin-prettier": "^4.2.5",
"execa": "5.1.1",
"fast-glob": "^3.3.3",
"fs-extra": "^11.3.0",
"globals": "^16.3.0",
"husky": "^9.1.7",
"jest": "^30.0.5",
"js-yaml": "^4.1.0",
"lint-staged": "^15.5.2",
"memfs": "^4.36.0",
"prettier": "^2.8.8",
"rimraf": "^5.0.10",
"ts-node": "^10.9.2",
"typescript": "~5.8.3",
"typescript-eslint": "^8.38.0"
},
"engines": {
"node": "^14.15.0 || ^16.10.0 || ^18.0.0 || >=20.0.0"
}
}