@dailephd/my-dev-kit-lab 0.3.0 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/README.md +19 -6
  2. package/dist/scripts/audits/runAudit.js +9 -2
  3. package/dist/scripts/security/validate.js +8 -29
  4. package/dist/src/audits/codeRot/detectors/deadCodeCandidateDetector.js +138 -11
  5. package/dist/src/audits/codeRot/detectors/duplicateImplementationDetector.js +93 -1
  6. package/dist/src/audits/codeRot/detectors/testRotDetector.js +176 -0
  7. package/dist/src/audits/codeRot/utils/filePatternUtils.js +50 -0
  8. package/dist/src/audits/codeRot/utils/sourceFactsLookup.js +53 -0
  9. package/dist/src/audits/core/auditConfig.js +2 -2
  10. package/dist/src/audits/core/auditRunner.js +23 -1
  11. package/dist/src/audits/core/auditTypes.js +14 -7
  12. package/dist/src/audits/core/collectSourceFacts.js +142 -0
  13. package/dist/src/audits/core/languageAnalyzerRegistry.js +36 -0
  14. package/dist/src/audits/core/projectInventory.js +185 -3
  15. package/dist/src/audits/core/pythonAnalyzer.js +328 -0
  16. package/dist/src/audits/core/pythonProjectMetadata.js +80 -0
  17. package/dist/src/audits/core/sourceFacts.js +17 -0
  18. package/dist/src/audits/core/typescriptJavaScriptAnalyzer.js +299 -0
  19. package/dist/src/audits/report/auditReportModel.js +15 -0
  20. package/dist/src/audits/report/renderAuditJsonReport.js +3 -0
  21. package/dist/src/audits/report/renderAuditTextReport.js +59 -3
  22. package/dist/src/audits/security/mapSecurityFindingToAuditIssue.js +70 -0
  23. package/dist/src/audits/security/securityAuditAdapter.js +67 -0
  24. package/dist/src/audits/security/securityAuditTypes.js +17 -0
  25. package/dist/src/securityValidation/report/buildSecurityReport.js +31 -0
  26. package/dist/src/securityValidation/validate/resolveTarget.js +9 -0
  27. package/package.json +97 -96
package/package.json CHANGED
@@ -1,96 +1,97 @@
1
- {
2
- "name": "@dailephd/my-dev-kit-lab",
3
- "version": "0.3.0",
4
- "type": "module",
5
- "description": "Evidence, benchmark, and evaluation companion for my-dev-kit.",
6
- "bin": {
7
- "my-dev-kit-lab": "dist/scripts/run-final-demo.js"
8
- },
9
- "files": [
10
- "dist/scripts/",
11
- "dist/src/",
12
- "benchmarks/",
13
- "docs/METRICS.md",
14
- "examples/",
15
- "tests/fixtures/"
16
- ],
17
- "repository": {
18
- "type": "git",
19
- "url": "git+https://github.com/dailephd/my-dev-kit-lab.git"
20
- },
21
- "homepage": "https://github.com/dailephd/my-dev-kit-lab#readme",
22
- "bugs": {
23
- "url": "https://github.com/dailephd/my-dev-kit-lab/issues"
24
- },
25
- "publishConfig": {
26
- "access": "public"
27
- },
28
- "funding": [
29
- "https://github.com/sponsors/dailephd",
30
- "https://paypal.me/daile88"
31
- ],
32
- "keywords": [
33
- "benchmark",
34
- "evaluation",
35
- "reporting",
36
- "graph-retrieval",
37
- "codex",
38
- "claude"
39
- ],
40
- "author": "Dai Le",
41
- "license": "MIT",
42
- "scripts": {
43
- "build": "node scripts/clean-dist.mjs && tsc -p tsconfig.json",
44
- "typecheck": "tsc --noEmit",
45
- "test": "vitest run",
46
- "test:benchmarks": "vitest run tests/benchmarks tests/scripts",
47
- "test:report": "vitest run tests/report tests/commands",
48
- "test:screenshot": "vitest run tests/screenshot",
49
- "test:evaluation": "vitest run tests/core tests/evaluation tests/commands",
50
- "test:gallery": "vitest run tests/gallery",
51
- "test:demo": "vitest run tests/commands/runLabDemo.spec.ts tests/integration/runLabDemoCommand.spec.ts",
52
- "test:integration": "vitest run tests/integration",
53
- "test:e2e": "vitest run tests/e2e",
54
- "test:agents": "vitest run tests/agents tests/commands/runAgentPromptCommand.spec.ts tests/integration/runAgentPromptFake.spec.ts",
55
- "test:experiments": "vitest run tests/evaluation/buildExperimentMatrix.spec.ts tests/evaluation/classifyAgentRunOutcome.spec.ts tests/evaluation/parseAgentAnswer.spec.ts tests/evaluation/scoreCorrectness.spec.ts tests/evaluation/compareExperimentRuns.spec.ts tests/evaluation/runControlledExperiment.spec.ts tests/commands/runControlledExperimentCommand.spec.ts tests/integration/runControlledExperimentFake.spec.ts",
56
- "capture-demo-report": "tsx scripts/capture-demo-report.ts",
57
- "evaluate-token-savings": "tsx scripts/evaluate-token-savings.ts",
58
- "generate-experiment-plots": "tsx scripts/generate-experiment-plots.ts",
59
- "generate-prompt-variants": "tsx scripts/generate-prompt-variants.ts",
60
- "build-gallery": "tsx scripts/build-gallery.ts",
61
- "lab-demo": "tsx scripts/run-lab-demo.ts",
62
- "render-experiment-report": "tsx scripts/render-experiment-report.ts",
63
- "experiment:list": "tsx scripts/experiments/listExperiments.ts",
64
- "experiment:describe": "tsx scripts/experiments/describeExperiment.ts",
65
- "experiment:run": "tsx scripts/experiments/runExperiment.ts",
66
- "run-final-demo": "tsx scripts/run-final-demo.ts",
67
- "run-agent-prompt": "tsx scripts/run-agent-prompt.ts",
68
- "run-controlled-experiment": "tsx scripts/run-controlled-experiment.ts",
69
- "run-visualization-demos": "tsx scripts/run-visualization-demos.ts",
70
- "test:plots": "vitest run tests/plots tests/commands/generateExperimentPlotsCommand.spec.ts",
71
- "test:visualization-demos": "vitest run tests/visualizationDemos tests/commands/runVisualizationDemosCommand.spec.ts",
72
- "verify:benchmarks": "tsx scripts/verify-benchmarks.ts",
73
- "verify": "npm run build && npm run test && npm run test:benchmarks && npm run test:report && npm run test:screenshot && npm run test:evaluation && npm run test:agents && npm run test:experiments && npm run test:plots && npm run test:visualization-demos && npm run test:gallery && npm run test:demo && npm run test:integration && npm run test:e2e && npm run verify:benchmarks",
74
- "security:deps": "tsx scripts/security/runDependencyChecks.ts",
75
- "security:package": "tsx scripts/security/runPackageChecks.ts",
76
- "security:codeql": "tsx scripts/security/runCodeql.ts",
77
- "security:semgrep": "tsx scripts/security/runSemgrep.ts",
78
- "test:security": "vitest run tests/security/",
79
- "test:fuzz:smoke": "tsx scripts/security/runFuzzSmoke.ts",
80
- "security:validate": "tsx scripts/security/validate.ts",
81
- "audit": "tsx scripts/audits/runAudit.ts"
82
- },
83
- "devDependencies": {
84
- "@types/node": "^24.0.0",
85
- "playwright": "^1.54.1",
86
- "tsx": "^4.20.3",
87
- "typescript": "^5.8.3",
88
- "vitest": "^3.2.4"
89
- },
90
- "overrides": {
91
- "vite": "7.3.6"
92
- },
93
- "engines": {
94
- "node": ">=20"
95
- }
96
- }
1
+ {
2
+ "name": "@dailephd/my-dev-kit-lab",
3
+ "version": "0.3.2",
4
+ "type": "module",
5
+ "description": "Evidence, benchmark, and evaluation companion for my-dev-kit.",
6
+ "bin": {
7
+ "my-dev-kit-lab": "dist/scripts/run-final-demo.js"
8
+ },
9
+ "files": [
10
+ "dist/scripts/",
11
+ "!dist/scripts/docs/",
12
+ "dist/src/",
13
+ "benchmarks/",
14
+ "docs/METRICS.md",
15
+ "examples/",
16
+ "tests/fixtures/"
17
+ ],
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "git+https://github.com/dailephd/my-dev-kit-lab.git"
21
+ },
22
+ "homepage": "https://github.com/dailephd/my-dev-kit-lab#readme",
23
+ "bugs": {
24
+ "url": "https://github.com/dailephd/my-dev-kit-lab/issues"
25
+ },
26
+ "publishConfig": {
27
+ "access": "public"
28
+ },
29
+ "funding": [
30
+ "https://github.com/sponsors/dailephd",
31
+ "https://paypal.me/daile88"
32
+ ],
33
+ "keywords": [
34
+ "benchmark",
35
+ "evaluation",
36
+ "reporting",
37
+ "graph-retrieval",
38
+ "codex",
39
+ "claude"
40
+ ],
41
+ "author": "Dai Le",
42
+ "license": "MIT",
43
+ "scripts": {
44
+ "build": "node scripts/clean-dist.mjs && tsc -p tsconfig.json",
45
+ "typecheck": "tsc --noEmit",
46
+ "test": "vitest run",
47
+ "test:benchmarks": "vitest run tests/benchmarks tests/scripts",
48
+ "test:report": "vitest run tests/report tests/commands",
49
+ "test:screenshot": "vitest run tests/screenshot",
50
+ "test:evaluation": "vitest run tests/core tests/evaluation tests/commands",
51
+ "test:gallery": "vitest run tests/gallery",
52
+ "test:demo": "vitest run tests/commands/runLabDemo.spec.ts tests/integration/runLabDemoCommand.spec.ts",
53
+ "test:integration": "vitest run tests/integration",
54
+ "test:e2e": "vitest run tests/e2e",
55
+ "test:agents": "vitest run tests/agents tests/commands/runAgentPromptCommand.spec.ts tests/integration/runAgentPromptFake.spec.ts",
56
+ "test:experiments": "vitest run tests/evaluation/buildExperimentMatrix.spec.ts tests/evaluation/classifyAgentRunOutcome.spec.ts tests/evaluation/parseAgentAnswer.spec.ts tests/evaluation/scoreCorrectness.spec.ts tests/evaluation/compareExperimentRuns.spec.ts tests/evaluation/runControlledExperiment.spec.ts tests/commands/runControlledExperimentCommand.spec.ts tests/integration/runControlledExperimentFake.spec.ts",
57
+ "capture-demo-report": "tsx scripts/capture-demo-report.ts",
58
+ "evaluate-token-savings": "tsx scripts/evaluate-token-savings.ts",
59
+ "generate-experiment-plots": "tsx scripts/generate-experiment-plots.ts",
60
+ "generate-prompt-variants": "tsx scripts/generate-prompt-variants.ts",
61
+ "build-gallery": "tsx scripts/build-gallery.ts",
62
+ "lab-demo": "tsx scripts/run-lab-demo.ts",
63
+ "render-experiment-report": "tsx scripts/render-experiment-report.ts",
64
+ "experiment:list": "tsx scripts/experiments/listExperiments.ts",
65
+ "experiment:describe": "tsx scripts/experiments/describeExperiment.ts",
66
+ "experiment:run": "tsx scripts/experiments/runExperiment.ts",
67
+ "run-final-demo": "tsx scripts/run-final-demo.ts",
68
+ "run-agent-prompt": "tsx scripts/run-agent-prompt.ts",
69
+ "run-controlled-experiment": "tsx scripts/run-controlled-experiment.ts",
70
+ "run-visualization-demos": "tsx scripts/run-visualization-demos.ts",
71
+ "test:plots": "vitest run tests/plots tests/commands/generateExperimentPlotsCommand.spec.ts",
72
+ "test:visualization-demos": "vitest run tests/visualizationDemos tests/commands/runVisualizationDemosCommand.spec.ts",
73
+ "verify:benchmarks": "tsx scripts/verify-benchmarks.ts",
74
+ "verify": "npm run build && npm run test && npm run test:benchmarks && npm run test:report && npm run test:screenshot && npm run test:evaluation && npm run test:agents && npm run test:experiments && npm run test:plots && npm run test:visualization-demos && npm run test:gallery && npm run test:demo && npm run test:integration && npm run test:e2e && npm run verify:benchmarks",
75
+ "security:deps": "tsx scripts/security/runDependencyChecks.ts",
76
+ "security:package": "tsx scripts/security/runPackageChecks.ts",
77
+ "security:codeql": "tsx scripts/security/runCodeql.ts",
78
+ "security:semgrep": "tsx scripts/security/runSemgrep.ts",
79
+ "test:security": "vitest run tests/security/",
80
+ "test:fuzz:smoke": "tsx scripts/security/runFuzzSmoke.ts",
81
+ "security:validate": "tsx scripts/security/validate.ts",
82
+ "audit": "tsx scripts/audits/runAudit.ts"
83
+ },
84
+ "devDependencies": {
85
+ "@types/node": "^24.0.0",
86
+ "playwright": "^1.54.1",
87
+ "tsx": "^4.20.3",
88
+ "typescript": "^5.8.3",
89
+ "vitest": "^3.2.4"
90
+ },
91
+ "overrides": {
92
+ "vite": "7.3.6"
93
+ },
94
+ "engines": {
95
+ "node": ">=20"
96
+ }
97
+ }