FABRIC/package.json
jeda 57e8193f7b feat(bd-2kf): Add comprehensive test coverage for parser and store
- Add 36 parser tests covering:
  - parseLogLine with valid/invalid inputs
  - parseLogLines for multi-line parsing
  - formatEvent with all options
  - Edge cases: malformed JSON, missing fields, colorization

- Add 35 store tests covering:
  - InMemoryEventStore add/query operations
  - Worker status tracking (active/idle/error)
  - Event filtering by worker, level, bead, timestamp
  - maxEvents limit and LRU trimming
  - getStore/resetStore singleton management

- Close phase beads (bd-2pa, bd-n8l, bd-2nu) as infrastructure complete
- Close test beads (bd-5eh, bd-2en) with comprehensive coverage
- Total: 91 tests passing across parser, store, and tailer

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

Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-03 10:43:24 +00:00

59 lines
1.4 KiB
JSON

{
"name": "@needle/fabric",
"version": "0.1.0",
"description": "Flow Analysis & Bead Reporting Interface Console - Live display for NEEDLE worker activity",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"bin": {
"fabric": "./dist/cli.js"
},
"scripts": {
"build": "tsc",
"build:web": "vite build",
"dev": "tsc --watch",
"dev:web": "vite",
"start": "node dist/cli.js",
"tui": "node dist/cli.js tui",
"web": "node dist/cli.js web",
"clean": "rm -rf dist",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage"
},
"keywords": [
"needle",
"worker",
"monitoring",
"tui",
"dashboard"
],
"author": "",
"license": "ISC",
"type": "module",
"engines": {
"node": ">=18.0.0"
},
"devDependencies": {
"@types/express": "^5.0.6",
"@types/node": "^20.11.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@types/ws": "^8.18.1",
"@vitejs/plugin-react": "^5.1.4",
"@vitest/coverage-v8": "^4.0.18",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"typescript": "^5.3.0",
"vite": "^7.3.1",
"vitest": "^4.0.18"
},
"dependencies": {
"@types/blessed": "^0.1.27",
"blessed": "^0.1.81",
"chalk": "^4.1.2",
"commander": "^12.0.0",
"express": "^5.2.1",
"ws": "^8.19.0"
}
}