paqad-ai 1.0.2 → 1.0.4

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 (135) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/LICENSE +1 -1
  3. package/README.md +34 -1
  4. package/dist/cli/index.js +1279 -49
  5. package/dist/cli/index.js.map +1 -1
  6. package/dist/index.d.ts +1 -1
  7. package/dist/index.js +1 -1
  8. package/dist/index.js.map +1 -1
  9. package/package.json +64 -20
  10. package/runtime/base/skills/acceptance-criteria-gen/scripts/extract-ac-ids.sh +0 -0
  11. package/runtime/base/skills/acceptance-criteria-gen/scripts/lint-ac-output.sh +0 -0
  12. package/runtime/base/skills/acceptance-criteria-gen/scripts/next-ac-id.sh +0 -0
  13. package/runtime/base/skills/adversarial-review/scripts/digest-evidence.sh +0 -0
  14. package/runtime/base/skills/adversarial-review/scripts/lint-findings.sh +0 -0
  15. package/runtime/base/skills/api-doc-maintainer/scripts/find-api-docs.sh +0 -0
  16. package/runtime/base/skills/api-doc-maintainer/scripts/lint-output.sh +0 -0
  17. package/runtime/base/skills/canonical-doc-sync/scripts/lint-output.sh +0 -0
  18. package/runtime/base/skills/canonical-doc-sync/scripts/list-canonical-docs.sh +0 -0
  19. package/runtime/base/skills/context-budget-planner/scripts/estimate-tokens.sh +0 -0
  20. package/runtime/base/skills/context-budget-planner/scripts/lint-output.sh +0 -0
  21. package/runtime/base/skills/cross-module-impact-scanner/scripts/find-integration-docs.sh +0 -0
  22. package/runtime/base/skills/cross-module-impact-scanner/scripts/lint-output.sh +8 -1
  23. package/runtime/base/skills/cross-module-impact-scanner/scripts/list-modules.sh +0 -0
  24. package/runtime/base/skills/diff-doc-sync/scripts/detect-stale-docs.sh +0 -0
  25. package/runtime/base/skills/diff-doc-sync/scripts/lint-output.sh +0 -0
  26. package/runtime/base/skills/diff-minimizer/scripts/extract-ac-ids.sh +0 -0
  27. package/runtime/base/skills/diff-minimizer/scripts/lint-output.sh +0 -0
  28. package/runtime/base/skills/documentation-sync-engine/scripts/lint-output.sh +0 -0
  29. package/runtime/base/skills/documentation-sync-engine/scripts/route-paths.sh +0 -0
  30. package/runtime/base/skills/documentation-workflow/scripts/check-stage2-prereq.sh +0 -0
  31. package/runtime/base/skills/documentation-workflow/scripts/lint-output.sh +0 -0
  32. package/runtime/base/skills/documentation-workflow/scripts/list-orphan-module-dirs.sh +0 -0
  33. package/runtime/base/skills/edge-case-detection/scripts/lint-output.sh +0 -0
  34. package/runtime/base/skills/error-catalog-maintainer/scripts/extract-error-codes.sh +0 -0
  35. package/runtime/base/skills/error-catalog-maintainer/scripts/find-error-catalogs.sh +0 -0
  36. package/runtime/base/skills/error-catalog-maintainer/scripts/lint-output.sh +0 -0
  37. package/runtime/base/skills/existing-doc-checker/scripts/lint-output.sh +0 -0
  38. package/runtime/base/skills/existing-doc-checker/scripts/scan-docs.sh +0 -0
  39. package/runtime/base/skills/glossary-maintainer/scripts/find-term-uses.sh +0 -0
  40. package/runtime/base/skills/glossary-maintainer/scripts/lint-output.sh +0 -0
  41. package/runtime/base/skills/integration-doc-maintainer/scripts/extract-events.sh +0 -0
  42. package/runtime/base/skills/integration-doc-maintainer/scripts/find-integration-docs.sh +0 -0
  43. package/runtime/base/skills/integration-doc-maintainer/scripts/lint-output.sh +0 -0
  44. package/runtime/base/skills/performance-regression-estimator/scripts/lint-output.sh +0 -0
  45. package/runtime/base/skills/performance-regression-estimator/scripts/scan-perf-smells.sh +0 -0
  46. package/runtime/base/skills/request-classifier/scripts/extract-signals.sh +0 -0
  47. package/runtime/base/skills/request-classifier/scripts/lint-output.sh +0 -0
  48. package/runtime/base/skills/requirement-enrichment/scripts/lint-output.sh +0 -0
  49. package/runtime/base/skills/rollback-safety-planner/scripts/lint-output.sh +0 -0
  50. package/runtime/base/skills/rollback-safety-planner/scripts/select-stories.sh +0 -0
  51. package/runtime/base/skills/scope-check/scripts/check-spec-presence.sh +0 -0
  52. package/runtime/base/skills/scope-check/scripts/lint-output.sh +0 -0
  53. package/runtime/base/skills/sequence-planner/scripts/lint-output.sh +0 -0
  54. package/runtime/base/skills/session-resume/scripts/lint-output.sh +0 -0
  55. package/runtime/base/skills/session-resume/scripts/load-resume-bundle.sh +0 -0
  56. package/runtime/base/skills/spec-diff/scripts/extract-ac-ids.sh +0 -0
  57. package/runtime/base/skills/spec-diff/scripts/lint-output.sh +0 -0
  58. package/runtime/base/skills/spec-quality-review/scripts/lint-output.sh +0 -0
  59. package/runtime/base/skills/spec-quality-review/scripts/scan-defects.sh +0 -0
  60. package/runtime/base/skills/story-and-solution-writer/scripts/lint-output.sh +0 -0
  61. package/runtime/base/skills/test-execution-feedback-loop/scripts/lint-output.sh +0 -0
  62. package/runtime/base/skills/test-execution-feedback-loop/scripts/load-failures.sh +0 -0
  63. package/runtime/base/skills/test-per-ac-planner/scripts/check-coverage.sh +0 -0
  64. package/runtime/base/skills/test-per-ac-planner/scripts/extract-ac-ids.sh +0 -0
  65. package/runtime/base/skills/test-per-ac-planner/scripts/lint-output.sh +0 -0
  66. package/runtime/base/skills/workflow-router/scripts/lint-output.sh +0 -0
  67. package/runtime/base/skills/workflow-router/scripts/route-request.sh +0 -0
  68. package/runtime/capabilities/coding/skills/database-design-review/scripts/lint-output.sh +0 -0
  69. package/runtime/capabilities/coding/skills/database-design-review/scripts/scan-migration-smells.sh +0 -0
  70. package/runtime/capabilities/coding/skills/index-optimization/scripts/lint-output.sh +0 -0
  71. package/runtime/capabilities/coding/skills/index-optimization/scripts/scan-query-shapes.sh +0 -0
  72. package/runtime/capabilities/coding/skills/query-pattern-analysis/scripts/lint-output.sh +0 -0
  73. package/runtime/capabilities/coding/skills/query-pattern-analysis/scripts/scan-query-risks.sh +0 -0
  74. package/runtime/capabilities/coding/skills/root-cause-analysis/scripts/lint-output.sh +0 -0
  75. package/runtime/capabilities/coding/skills/ui-doc-maintainer/scripts/find-ui-docs.sh +0 -0
  76. package/runtime/capabilities/coding/skills/ui-doc-maintainer/scripts/lint-output.sh +0 -0
  77. package/runtime/capabilities/coding/skills/user-flow-generation/scripts/lint-output.sh +0 -0
  78. package/runtime/capabilities/coding/skills/ux-design-research/scripts/lint-output.sh +0 -0
  79. package/runtime/capabilities/coding/skills/ux-heuristic-evaluation/scripts/lint-output.sh +0 -0
  80. package/runtime/capabilities/coding/skills/ux-state-machine/scripts/lint-output.sh +0 -0
  81. package/runtime/capabilities/content/skills/content-planner/scripts/lint-brief.sh +0 -0
  82. package/runtime/capabilities/content/skills/content-reviewer/scripts/lint-output.sh +0 -0
  83. package/runtime/capabilities/content/skills/content-reviewer/scripts/scan-prose.sh +0 -0
  84. package/runtime/capabilities/content/skills/content-writer/scripts/check-coverage.sh +0 -0
  85. package/runtime/capabilities/content/skills/content-writer/scripts/word-count.sh +0 -0
  86. package/runtime/capabilities/content/skills/script-writer/scripts/estimate-runtime.sh +0 -0
  87. package/runtime/capabilities/content/skills/seo-optimizer/scripts/audit-seo.sh +0 -0
  88. package/runtime/capabilities/content/skills/seo-optimizer/scripts/lint-output.sh +0 -0
  89. package/runtime/capabilities/content/skills/style-enforcer/scripts/check-style.sh +0 -0
  90. package/runtime/capabilities/security/skills/auth-mechanism-review/scripts/lint-findings.sh +0 -0
  91. package/runtime/capabilities/security/skills/auth-mechanism-review/scripts/scan-auth-smells.sh +0 -0
  92. package/runtime/capabilities/security/skills/business-logic-abuse-review/scripts/find-workflow-docs.sh +0 -0
  93. package/runtime/capabilities/security/skills/business-logic-abuse-review/scripts/lint-findings.sh +0 -0
  94. package/runtime/capabilities/security/skills/cryptographic-review/scripts/lint-findings.sh +0 -0
  95. package/runtime/capabilities/security/skills/cryptographic-review/scripts/scan-crypto-smells.sh +0 -0
  96. package/runtime/capabilities/security/skills/dependency-advisory-triage/scripts/lint-output.sh +0 -0
  97. package/runtime/capabilities/security/skills/dependency-advisory-triage/scripts/normalize-advisories.sh +0 -0
  98. package/runtime/capabilities/security/skills/finding-normalizer/scripts/validate-findings.sh +0 -0
  99. package/runtime/capabilities/security/skills/input-validation-review/scripts/lint-findings.sh +0 -0
  100. package/runtime/capabilities/security/skills/input-validation-review/scripts/scan-injection-smells.sh +0 -0
  101. package/runtime/capabilities/security/skills/logging-monitoring-review/scripts/lint-findings.sh +0 -0
  102. package/runtime/capabilities/security/skills/logging-monitoring-review/scripts/scan-log-smells.sh +0 -0
  103. package/runtime/capabilities/security/skills/permission-boundary-review/scripts/lint-findings.sh +0 -0
  104. package/runtime/capabilities/security/skills/permission-boundary-review/scripts/scan-authz-smells.sh +0 -0
  105. package/runtime/capabilities/security/skills/rate-limiting-review/scripts/lint-findings.sh +0 -0
  106. package/runtime/capabilities/security/skills/rate-limiting-review/scripts/scan-rate-limit.sh +0 -0
  107. package/runtime/capabilities/security/skills/retest-verification/scripts/lint-output.sh +0 -0
  108. package/runtime/capabilities/security/skills/retest-verification/scripts/load-source-findings.sh +0 -0
  109. package/runtime/capabilities/security/skills/runtime-surface-probing/scripts/lint-findings.sh +0 -0
  110. package/runtime/capabilities/security/skills/runtime-surface-probing/scripts/probe-surfaces.sh +0 -0
  111. package/runtime/capabilities/security/skills/stride-threat-model/scripts/list-modules.sh +0 -0
  112. package/runtime/capabilities/security/skills/stride-threat-model/scripts/validate-threats.sh +0 -0
  113. package/runtime/graph-ui/assets/index-4b3KOlpT.js +361 -0
  114. package/runtime/graph-ui/assets/index-fx4nTJpK.css +1 -0
  115. package/runtime/graph-ui/assets/layout.worker-B_9N-hQJ.js +1 -0
  116. package/runtime/graph-ui/index.html +13 -0
  117. package/runtime/hooks/block-destructive.sh +0 -0
  118. package/runtime/hooks/context-budget-check.sh +0 -0
  119. package/runtime/hooks/context-hit-tracker.sh +0 -0
  120. package/runtime/hooks/conversation-summarize.sh +0 -0
  121. package/runtime/hooks/module-health-sync.sh +0 -0
  122. package/runtime/hooks/post-destructive-approved.sh +0 -0
  123. package/runtime/hooks/pre-commit-check.sh +0 -0
  124. package/runtime/hooks/pre-compact-preserve.mjs +0 -0
  125. package/runtime/hooks/pre-compact-preserve.sh +0 -0
  126. package/runtime/hooks/pre-migrate-check.sh +0 -0
  127. package/runtime/hooks/pre-write-check-spec.sh +0 -0
  128. package/runtime/hooks/reset-doc-progress.sh +0 -0
  129. package/runtime/hooks/silent-update.sh +0 -0
  130. package/runtime/hooks/skill-cache-check.sh +0 -0
  131. package/runtime/hooks/skill-index-gen.mjs +0 -0
  132. package/runtime/hooks/stale-doc-detector.sh +0 -0
  133. package/runtime/hooks/track-file-changes.sh +0 -0
  134. package/scripts/deprecate-old-versions.sh +0 -55
  135. package/scripts/run-vitest-with-summary.mjs +0 -78
package/CHANGELOG.md ADDED
@@ -0,0 +1,15 @@
1
+ # paqad-ai
2
+
3
+ ## 1.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#21](https://github.com/Eliyce/paqad-ai/pull/21) [`8bc2642`](https://github.com/Eliyce/paqad-ai/commit/8bc2642c3af5f0af5dfc569507544c092b891503) Thanks [@HLasani](https://github.com/HLasani)! - Read `VERSION` constant dynamically from `package.json` at module load instead of hardcoding it. Future releases no longer need a manual `src/index.ts` edit to keep the exported constant in sync with the published version. Closes [#18](https://github.com/Eliyce/paqad-ai/issues/18).
8
+
9
+ ## 1.0.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [#15](https://github.com/Eliyce/paqad-ai/pull/15) [`99b1e5b`](https://github.com/Eliyce/paqad-ai/commit/99b1e5b18f42634006f88e16c7eb2fc7091d3f43) Thanks [@HLasani](https://github.com/HLasani)! - First automated release via Changesets + GitHub Actions. No runtime change — this release exists only to validate the new publish pipeline (CI gating, version PR, npm provenance).
14
+
15
+ All notable changes to this project will be documented in this file. See [Changesets](https://github.com/changesets/changesets) for commit guidelines.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2026 Paqad
3
+ Copyright (c) 2026 Haider Lasani <haider@eliyce.com>
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -9,7 +9,14 @@
9
9
 
10
10
  **AI agents that think before they type.** paqad-ai reads your codebase, detects your stack, builds optional hybrid RAG context, and generates the docs, rules, MCP configs, security checks, and workflows your coding agents need to operate with real project context.
11
11
 
12
- [![npm version](https://img.shields.io/npm/v/paqad-ai)](https://npmjs.com/package/paqad-ai) [![license](https://img.shields.io/npm/l/paqad-ai)](./LICENSE) [![website](https://img.shields.io/badge/website-paqad.ai-0A7A5C)](https://paqad.ai) [![docs](https://img.shields.io/badge/docs-paqad.ai-1f6feb)](https://paqad.ai)
12
+ [![npm version](https://img.shields.io/npm/v/paqad-ai.svg?style=flat-square)](https://www.npmjs.com/package/paqad-ai)
13
+ [![npm downloads](https://img.shields.io/npm/dm/paqad-ai.svg?style=flat-square)](https://www.npmjs.com/package/paqad-ai)
14
+ [![CI](https://img.shields.io/github/actions/workflow/status/Eliyce/paqad-ai/ci.yml?branch=main&style=flat-square&label=CI)](https://github.com/Eliyce/paqad-ai/actions/workflows/ci.yml)
15
+ [![License: MIT](https://img.shields.io/npm/l/paqad-ai.svg?style=flat-square)](./LICENSE)
16
+ [![Node](https://img.shields.io/node/v/paqad-ai.svg?style=flat-square)](https://nodejs.org)
17
+ [![PRs welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](./CONTRIBUTING.md)
18
+ [![website](https://img.shields.io/badge/website-paqad.ai-0A7A5C?style=flat-square)](https://paqad.ai)
19
+ [![docs](https://img.shields.io/badge/docs-paqad.ai-1f6feb?style=flat-square)](https://paqad.ai)
13
20
 
14
21
  ---
15
22
 
@@ -62,6 +69,7 @@ npx paqad-ai onboard
62
69
  | **Stack detection** | Lockfile-driven framework, trait, and archetype detection across 9 ecosystems |
63
70
  | **Documentation** | Stack, architecture, design-system, registry, and module documentation flows |
64
71
  | **Hybrid RAG** | Optional vector indexing, hybrid retrieval, reranking, evals, and benchmarks |
72
+ | **Project graph** | One-command WebGL map of modules, files, chunks, symbols, imports, and similarities |
65
73
  | **Security** | OWASP-mapped pentest workflow with incremental retests |
66
74
  | **Spec compliance** | Obligation extraction, test evidence checks, and failing skeleton generation |
67
75
  | **Built-in agent roles** | 20 internal specialist roles for routing, review, design, verification, and security |
@@ -480,6 +488,30 @@ paqad-ai rag eval --model-graded # Also run the optional model-graded
480
488
 
481
489
  Benchmark comparisons support `lexical-vs-rag`, `rag-vs-candidate`, and `feature-off-vs-on`.
482
490
 
491
+ ### `paqad-ai graph`
492
+
493
+ Open an interactive WebGL map of your project in the browser. One command, no extra install — the server, frontend, and Force Atlas 2 layout worker all ship inside `paqad-ai`.
494
+
495
+ ```bash
496
+ paqad-ai graph # Opens http://127.0.0.1:5371 in your browser
497
+ paqad-ai graph --no-open # Print the URL and skip auto-open
498
+ paqad-ai graph --port 8080 # Custom port (auto-increments if busy)
499
+ paqad-ai graph --host 0.0.0.0 # Share on a trusted network (loopback by default)
500
+ paqad-ai graph --threshold 0.85 # Initial similarity threshold
501
+ paqad-ai graph --no-watch # Disable live reload on .paqad/ changes
502
+ ```
503
+
504
+ **What you get:**
505
+
506
+ - Modules, files, chunks, symbols, and the full import graph rendered together as one explorable map
507
+ - Click-through detail panel: module file lists, file `imports_in` / `imports_out`, chunk content with show-more, symbol metadata
508
+ - Search across modules, files, symbols, and file basenames — `/` to focus, `n` / `N` to cycle matches; the camera pans to each hit
509
+ - Similarity slider — adjust the cosine threshold and watch the orange semantic-neighbour edges redraw on demand. Works with `local`, `openai`, and `voyageai` embeddings.
510
+ - Four intelligence overlays — health, defect density (log-scaled), risk floor, complexity correction — with a persistent legend
511
+ - Live reload — change anything under `.paqad/` and the graph updates in place while preserving viewport and selection
512
+
513
+ **Pre-conditions:** the current directory must contain a `.paqad/` from a previous `paqad-ai onboard`. RAG is optional — without it the graph still renders fully, with similarity and chunk nodes disabled behind a clear banner.
514
+
483
515
  ### Security workflows
484
516
 
485
517
  Security and retest flows are part of the framework runtime and agent workflows in this package version. They are not exposed as standalone top-level CLI commands in `paqad-ai` today.
@@ -574,6 +606,7 @@ Entry files stay thin. Knowledge lives in shared instruction bundles that extern
574
606
  | **Refresh** | `paqad-ai refresh` | Re-detect stack, update derived docs |
575
607
  | **Update** | `paqad-ai update` | Regenerate framework files after version bump |
576
608
  | **RAG** | `paqad-ai rag ...` | Build, inspect, clear, and benchmark hybrid retrieval |
609
+ | **Project graph** | `paqad-ai graph` | Interactive browser view of modules, files, chunks, deps |
577
610
  | **Documentation** | Ask agent: _"create documentation"_ | Stack → architecture → design system → modules |
578
611
  | **Pentest** | Ask agent: _"run pentest"_ | 5-step scan → findings → report |
579
612
  | **Retest** | Ask agent: _"retest pentest"_ | Replay findings → fixed / still-open / needs-verification |