Upgrade the human-flow skill (Gemini-assisted, Claude-reviewed): - scan.mjs rewritten to AST-based (@babel/parser/traverse) with 4 detectors: unlabeled-icon-button, tiny-target, missing-feedback-props, click-without-keyboard; regex fallback on parse failure. - Objective Friction Index (Motor 3.0 / Cognitive 2.5 / Keyboard 2.5 / Feedback 2.0); 0-10 Human Workflow Score. - New heuristics: State-Flow Audit, Precision Rail / Fumble Zones, Restraint-o-Meter (1-5) for the fancy pass. - `fix` command DISABLED for now (advisory only): the AST generator reprints whole files and produces noisy diffs; agents apply surgical fixes from the report. To be revisited with a string-splice editor. - Add @babel/* deps + package-lock.json. - Memory: agy review/review-files is NOT actually read-only (wrote files + ran npm despite documented plan-mode) — diff after every agy review. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
218 lines
7.8 KiB
JSON
218 lines
7.8 KiB
JSON
{
|
|
"name": "human-flow",
|
|
"version": "0.1.0",
|
|
"lockfileVersion": 3,
|
|
"requires": true,
|
|
"packages": {
|
|
"": {
|
|
"name": "human-flow",
|
|
"version": "0.1.0",
|
|
"dependencies": {
|
|
"@babel/generator": "^7.29.7",
|
|
"@babel/parser": "^7.29.7",
|
|
"@babel/traverse": "^7.29.7",
|
|
"@babel/types": "^7.29.7"
|
|
}
|
|
},
|
|
"node_modules/@babel/code-frame": {
|
|
"version": "7.29.7",
|
|
"resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.7.tgz",
|
|
"integrity": "sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"@babel/helper-validator-identifier": "^7.29.7",
|
|
"js-tokens": "^4.0.0",
|
|
"picocolors": "^1.1.1"
|
|
},
|
|
"engines": {
|
|
"node": ">=6.9.0"
|
|
}
|
|
},
|
|
"node_modules/@babel/generator": {
|
|
"version": "7.29.7",
|
|
"resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.7.tgz",
|
|
"integrity": "sha512-DkXD5OJQaAQIdZ1bt3UZdEnHAn9Imd3IVBdX03UFe+ony9Ojw5pzr9YVKGDY1jt+Gcn/FnGkNf8r+Vj5NOJWtQ==",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"@babel/parser": "^7.29.7",
|
|
"@babel/types": "^7.29.7",
|
|
"@jridgewell/gen-mapping": "^0.3.12",
|
|
"@jridgewell/trace-mapping": "^0.3.28",
|
|
"jsesc": "^3.0.2"
|
|
},
|
|
"engines": {
|
|
"node": ">=6.9.0"
|
|
}
|
|
},
|
|
"node_modules/@babel/helper-globals": {
|
|
"version": "7.29.7",
|
|
"resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.29.7.tgz",
|
|
"integrity": "sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==",
|
|
"license": "MIT",
|
|
"engines": {
|
|
"node": ">=6.9.0"
|
|
}
|
|
},
|
|
"node_modules/@babel/helper-string-parser": {
|
|
"version": "7.29.7",
|
|
"resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz",
|
|
"integrity": "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==",
|
|
"license": "MIT",
|
|
"engines": {
|
|
"node": ">=6.9.0"
|
|
}
|
|
},
|
|
"node_modules/@babel/helper-validator-identifier": {
|
|
"version": "7.29.7",
|
|
"resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz",
|
|
"integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==",
|
|
"license": "MIT",
|
|
"engines": {
|
|
"node": ">=6.9.0"
|
|
}
|
|
},
|
|
"node_modules/@babel/parser": {
|
|
"version": "7.29.7",
|
|
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.7.tgz",
|
|
"integrity": "sha512-hnORnjP/1P/zFEndoeX+n+t1RwWRJiJpM/jO7FW32Kn9r5+sJB2JWOdYo4L6k78j15eCwY3Gm/7364B1EMwtNg==",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"@babel/types": "^7.29.7"
|
|
},
|
|
"bin": {
|
|
"parser": "bin/babel-parser.js"
|
|
},
|
|
"engines": {
|
|
"node": ">=6.0.0"
|
|
}
|
|
},
|
|
"node_modules/@babel/template": {
|
|
"version": "7.29.7",
|
|
"resolved": "https://registry.npmjs.org/@babel/template/-/template-7.29.7.tgz",
|
|
"integrity": "sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"@babel/code-frame": "^7.29.7",
|
|
"@babel/parser": "^7.29.7",
|
|
"@babel/types": "^7.29.7"
|
|
},
|
|
"engines": {
|
|
"node": ">=6.9.0"
|
|
}
|
|
},
|
|
"node_modules/@babel/traverse": {
|
|
"version": "7.29.7",
|
|
"resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.7.tgz",
|
|
"integrity": "sha512-EhlfNQtZ+NK22w5BM61ciuiq1m58ed33Wr1Xan//ZRTy6hgjnwyCffRYwzsGXdASJSUJ1guZILsErh1eQcl+zw==",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"@babel/code-frame": "^7.29.7",
|
|
"@babel/generator": "^7.29.7",
|
|
"@babel/helper-globals": "^7.29.7",
|
|
"@babel/parser": "^7.29.7",
|
|
"@babel/template": "^7.29.7",
|
|
"@babel/types": "^7.29.7",
|
|
"debug": "^4.3.1"
|
|
},
|
|
"engines": {
|
|
"node": ">=6.9.0"
|
|
}
|
|
},
|
|
"node_modules/@babel/types": {
|
|
"version": "7.29.7",
|
|
"resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.7.tgz",
|
|
"integrity": "sha512-4zBIxpPzowiZpusoFkyGVwakdRJUyuH5PxQ/PrqghfdFWWasvnCdPfQXHrenDai+gyLARulZjZowCOj6fjT4pA==",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"@babel/helper-string-parser": "^7.29.7",
|
|
"@babel/helper-validator-identifier": "^7.29.7"
|
|
},
|
|
"engines": {
|
|
"node": ">=6.9.0"
|
|
}
|
|
},
|
|
"node_modules/@jridgewell/gen-mapping": {
|
|
"version": "0.3.13",
|
|
"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",
|
|
"integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"@jridgewell/sourcemap-codec": "^1.5.0",
|
|
"@jridgewell/trace-mapping": "^0.3.24"
|
|
}
|
|
},
|
|
"node_modules/@jridgewell/resolve-uri": {
|
|
"version": "3.1.2",
|
|
"resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
|
|
"integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
|
|
"license": "MIT",
|
|
"engines": {
|
|
"node": ">=6.0.0"
|
|
}
|
|
},
|
|
"node_modules/@jridgewell/sourcemap-codec": {
|
|
"version": "1.5.5",
|
|
"resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",
|
|
"integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",
|
|
"license": "MIT"
|
|
},
|
|
"node_modules/@jridgewell/trace-mapping": {
|
|
"version": "0.3.31",
|
|
"resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",
|
|
"integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"@jridgewell/resolve-uri": "^3.1.0",
|
|
"@jridgewell/sourcemap-codec": "^1.4.14"
|
|
}
|
|
},
|
|
"node_modules/debug": {
|
|
"version": "4.4.3",
|
|
"resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
|
|
"integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"ms": "^2.1.3"
|
|
},
|
|
"engines": {
|
|
"node": ">=6.0"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"supports-color": {
|
|
"optional": true
|
|
}
|
|
}
|
|
},
|
|
"node_modules/js-tokens": {
|
|
"version": "4.0.0",
|
|
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
|
|
"integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
|
|
"license": "MIT"
|
|
},
|
|
"node_modules/jsesc": {
|
|
"version": "3.1.0",
|
|
"resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",
|
|
"integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",
|
|
"license": "MIT",
|
|
"bin": {
|
|
"jsesc": "bin/jsesc"
|
|
},
|
|
"engines": {
|
|
"node": ">=6"
|
|
}
|
|
},
|
|
"node_modules/ms": {
|
|
"version": "2.1.3",
|
|
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
|
|
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
|
|
"license": "MIT"
|
|
},
|
|
"node_modules/picocolors": {
|
|
"version": "1.1.1",
|
|
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
|
|
"integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
|
|
"license": "ISC"
|
|
}
|
|
}
|
|
}
|