voidforge-build 23.9.1
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.
- package/dist/.claude/agents/adolin-brand.md +40 -0
- package/dist/.claude/agents/ahsoka-access-control.md +56 -0
- package/dist/.claude/agents/alfred-dependencies.md +43 -0
- package/dist/.claude/agents/alia-threat-detect.md +40 -0
- package/dist/.claude/agents/anakin-dark-side.md +41 -0
- package/dist/.claude/agents/aquaman-deep-dive.md +43 -0
- package/dist/.claude/agents/aragorn-orchestration.md +39 -0
- package/dist/.claude/agents/archer-greenfield.md +48 -0
- package/dist/.claude/agents/armin-clever.md +39 -0
- package/dist/.claude/agents/arwen-ui-polish.md +42 -0
- package/dist/.claude/agents/ashitaka-tech-debt.md +39 -0
- package/dist/.claude/agents/asuka-performance.md +39 -0
- package/dist/.claude/agents/bail-organa-governance.md +37 -0
- package/dist/.claude/agents/banner-database.md +44 -0
- package/dist/.claude/agents/barton-smoke-test.md +59 -0
- package/dist/.claude/agents/bashir-field-medic.md +63 -0
- package/dist/.claude/agents/batgirl-detail.md +43 -0
- package/dist/.claude/agents/batman-qa.md +73 -0
- package/dist/.claude/agents/bayta-evals.md +41 -0
- package/dist/.claude/agents/beast-boy-cross-env.md +43 -0
- package/dist/.claude/agents/beerus-destroyer.md +39 -0
- package/dist/.claude/agents/bel-riose-orchestration.md +40 -0
- package/dist/.claude/agents/beru-subprocess.md +37 -0
- package/dist/.claude/agents/bilbo-microcopy.md +43 -0
- package/dist/.claude/agents/black-canary-monitoring.md +43 -0
- package/dist/.claude/agents/bliss-ai-safety.md +40 -0
- package/dist/.claude/agents/bo-katan-perimeter.md +40 -0
- package/dist/.claude/agents/bombadil-forge-sync.md +62 -0
- package/dist/.claude/agents/boromir-hubris.md +40 -0
- package/dist/.claude/agents/breeze-platform-relations.md +40 -0
- package/dist/.claude/agents/bucky-legacy.md +43 -0
- package/dist/.claude/agents/bulma-engineering.md +40 -0
- package/dist/.claude/agents/calcifer-daemon.md +39 -0
- package/dist/.claude/agents/cara-dune-enforcement.md +37 -0
- package/dist/.claude/agents/cassian-recon.md +37 -0
- package/dist/.claude/agents/cc-persistent-process.md +39 -0
- package/dist/.claude/agents/celeborn-design-system.md +40 -0
- package/dist/.claude/agents/celebrimbor-forge-artist.md +62 -0
- package/dist/.claude/agents/chakotay-bridge.md +47 -0
- package/dist/.claude/agents/chani-worm-rider.md +61 -0
- package/dist/.claude/agents/chewie-dependency-audit.md +41 -0
- package/dist/.claude/agents/chrome-discovery.md +37 -0
- package/dist/.claude/agents/constantine-cursed-code.md +59 -0
- package/dist/.claude/agents/coulson-release.md +64 -0
- package/dist/.claude/agents/crusher-diagnostics.md +48 -0
- package/dist/.claude/agents/cyborg-system-integration.md +43 -0
- package/dist/.claude/agents/dalinar-positioning.md +40 -0
- package/dist/.claude/agents/daneel-model-migration.md +40 -0
- package/dist/.claude/agents/data-tech-debt.md +48 -0
- package/dist/.claude/agents/dax-legacy-wisdom.md +48 -0
- package/dist/.claude/agents/deathstroke-adversarial.md +59 -0
- package/dist/.claude/agents/denji-determination.md +39 -0
- package/dist/.claude/agents/din-djarin-bounty.md +42 -0
- package/dist/.claude/agents/dockson-treasury.md +67 -0
- package/dist/.claude/agents/dori-integration-check.md +37 -0
- package/dist/.claude/agents/dors-observability.md +40 -0
- package/dist/.claude/agents/drax-exact-match.md +42 -0
- package/dist/.claude/agents/ducem-token-economics.md +41 -0
- package/dist/.claude/agents/duncan-relay.md +40 -0
- package/dist/.claude/agents/duo-teardown.md +38 -0
- package/dist/.claude/agents/ed-network-scan.md +38 -0
- package/dist/.claude/agents/elrond-ux-strategy.md +39 -0
- package/dist/.claude/agents/eowyn-delight.md +56 -0
- package/dist/.claude/agents/erwin-strategy.md +39 -0
- package/dist/.claude/agents/ezra-catches-missed.md +40 -0
- package/dist/.claude/agents/ezri-session-analyst.md +45 -0
- package/dist/.claude/agents/falcon-migration.md +43 -0
- package/dist/.claude/agents/faramir-judgment.md +40 -0
- package/dist/.claude/agents/faye-resourceful.md +39 -0
- package/dist/.claude/agents/fenring-passive-monitor.md +37 -0
- package/dist/.claude/agents/fern-protocol.md +37 -0
- package/dist/.claude/agents/feyd-adversarial.md +41 -0
- package/dist/.claude/agents/flash-rapid-test.md +43 -0
- package/dist/.claude/agents/friday-automation.md +42 -0
- package/dist/.claude/agents/frieren-long-term.md +39 -0
- package/dist/.claude/agents/frodo-critical-path.md +40 -0
- package/dist/.claude/agents/fury-initiative.md +65 -0
- package/dist/.claude/agents/gaal-prompt-arch.md +41 -0
- package/dist/.claude/agents/galadriel-frontend.md +69 -0
- package/dist/.claude/agents/gamora-perf-assassin.md +43 -0
- package/dist/.claude/agents/gandalf-setup-wizard.md +63 -0
- package/dist/.claude/agents/gen-docs.md +37 -0
- package/dist/.claude/agents/ghanima-paired-monitor.md +37 -0
- package/dist/.claude/agents/gimli-performance.md +41 -0
- package/dist/.claude/agents/giyu-silent-guard.md +39 -0
- package/dist/.claude/agents/glorfindel-rendering.md +40 -0
- package/dist/.claude/agents/gohan-hidden-power.md +39 -0
- package/dist/.claude/agents/gojo-infinite-scale.md +39 -0
- package/dist/.claude/agents/goku-scaling.md +39 -0
- package/dist/.claude/agents/goldberry-change-detect.md +37 -0
- package/dist/.claude/agents/gordon-escalation.md +42 -0
- package/dist/.claude/agents/green-arrow-precision.md +43 -0
- package/dist/.claude/agents/green-lantern-scenarios.md +43 -0
- package/dist/.claude/agents/grogu-tiny-vulns.md +38 -0
- package/dist/.claude/agents/groot-caching.md +43 -0
- package/dist/.claude/agents/gurney-delivery.md +40 -0
- package/dist/.claude/agents/haku-deploy-wizard.md +65 -0
- package/dist/.claude/agents/haldir-boundaries.md +40 -0
- package/dist/.claude/agents/han-vuln-hunter.md +40 -0
- package/dist/.claude/agents/hange-experimentation.md +39 -0
- package/dist/.claude/agents/harah-protocol.md +38 -0
- package/dist/.claude/agents/hawkgirl-regression-sweep.md +43 -0
- package/dist/.claude/agents/heero-mission-deploy.md +39 -0
- package/dist/.claude/agents/hera-navigation.md +41 -0
- package/dist/.claude/agents/hill-mission-control.md +43 -0
- package/dist/.claude/agents/himmel-legacy.md +37 -0
- package/dist/.claude/agents/hober-tool-schema.md +40 -0
- package/dist/.claude/agents/hoid-copywriting.md +40 -0
- package/dist/.claude/agents/howl-migration.md +39 -0
- package/dist/.claude/agents/hughes-observability.md +37 -0
- package/dist/.claude/agents/huntress-flaky-bugs.md +42 -0
- package/dist/.claude/agents/irulan-historian.md +37 -0
- package/dist/.claude/agents/jake-reporter.md +45 -0
- package/dist/.claude/agents/janeway-novel-arch.md +48 -0
- package/dist/.claude/agents/janov-context-eng.md +40 -0
- package/dist/.claude/agents/jarvis-status.md +42 -0
- package/dist/.claude/agents/jean-pragmatic.md +39 -0
- package/dist/.claude/agents/jessica-voice.md +40 -0
- package/dist/.claude/agents/jet-maintenance.md +39 -0
- package/dist/.claude/agents/jin-disciplined-adv.md +39 -0
- package/dist/.claude/agents/kaji-intelligence.md +39 -0
- package/dist/.claude/agents/kaladin-organic-growth.md +40 -0
- package/dist/.claude/agents/kallen-hard-deploy.md +39 -0
- package/dist/.claude/agents/kanan-intuitive.md +41 -0
- package/dist/.claude/agents/kaoru-harmony.md +37 -0
- package/dist/.claude/agents/kaworu-solver.md +39 -0
- package/dist/.claude/agents/kelsier-growth.md +64 -0
- package/dist/.claude/agents/kenobi-security.md +70 -0
- package/dist/.claude/agents/kim-api-design.md +49 -0
- package/dist/.claude/agents/kira-pragmatic.md +48 -0
- package/dist/.claude/agents/kishibe-hardening.md +39 -0
- package/dist/.claude/agents/kohaku-rapid-response.md +36 -0
- package/dist/.claude/agents/krillin-support.md +36 -0
- package/dist/.claude/agents/kusanagi-devops.md +70 -0
- package/dist/.claude/agents/la-forge-reliability.md +63 -0
- package/dist/.claude/agents/lang-micro-changes.md +43 -0
- package/dist/.claude/agents/legolas-precision.md +42 -0
- package/dist/.claude/agents/leia-secrets.md +41 -0
- package/dist/.claude/agents/lelouch-orchestration.md +39 -0
- package/dist/.claude/agents/leto-ii-persistence.md +40 -0
- package/dist/.claude/agents/leto-protection.md +40 -0
- package/dist/.claude/agents/levi-deploy.md +40 -0
- package/dist/.claude/agents/liet-kynes-deep-system.md +40 -0
- package/dist/.claude/agents/lift-social-media.md +40 -0
- package/dist/.claude/agents/loki-chaos.md +58 -0
- package/dist/.claude/agents/lucius-config.md +43 -0
- package/dist/.claude/agents/luke-audit-journey.md +41 -0
- package/dist/.claude/agents/manhunter-shapeshifting.md +43 -0
- package/dist/.claude/agents/marsh-competitive-intel.md +41 -0
- package/dist/.claude/agents/maul-red-team.md +57 -0
- package/dist/.claude/agents/merry-pair-review.md +40 -0
- package/dist/.claude/agents/mikasa-protection.md +39 -0
- package/dist/.claude/agents/miles-teg-perf.md +40 -0
- package/dist/.claude/agents/milim-load-test.md +39 -0
- package/dist/.claude/agents/misato-operations.md +39 -0
- package/dist/.claude/agents/mob-capacity.md +39 -0
- package/dist/.claude/agents/mohiam-authentication.md +40 -0
- package/dist/.claude/agents/mon-mothma-security-mgmt.md +41 -0
- package/dist/.claude/agents/mugen-chaos.md +39 -0
- package/dist/.claude/agents/mule-adversarial-ai.md +41 -0
- package/dist/.claude/agents/mustang-cleanup.md +39 -0
- package/dist/.claude/agents/nanami-structured-ops.md +39 -0
- package/dist/.claude/agents/nausicaa-resources.md +39 -0
- package/dist/.claude/agents/navani-technical-seo.md +40 -0
- package/dist/.claude/agents/nebula-optimization.md +43 -0
- package/dist/.claude/agents/nightwing-regression.md +59 -0
- package/dist/.claude/agents/nobara-direct-fix.md +39 -0
- package/dist/.claude/agents/nog-solutions.md +48 -0
- package/dist/.claude/agents/nori-asset-scanner.md +37 -0
- package/dist/.claude/agents/obrien-root-cause.md +48 -0
- package/dist/.claude/agents/odo-structural-anomaly.md +48 -0
- package/dist/.claude/agents/okoye-data-integrity.md +43 -0
- package/dist/.claude/agents/olivier-hardening.md +39 -0
- package/dist/.claude/agents/oracle-static-analysis.md +59 -0
- package/dist/.claude/agents/ori-prompt-crafter.md +37 -0
- package/dist/.claude/agents/padme-data-protection.md +42 -0
- package/dist/.claude/agents/paris-route-planner.md +47 -0
- package/dist/.claude/agents/parker-connections.md +43 -0
- package/dist/.claude/agents/paul-orchestration.md +40 -0
- package/dist/.claude/agents/picard-architecture.md +64 -0
- package/dist/.claude/agents/piccolo-tactics.md +39 -0
- package/dist/.claude/agents/pike-bold-decisions.md +48 -0
- package/dist/.claude/agents/pippin-discovery.md +40 -0
- package/dist/.claude/agents/plo-koon-edge-cases.md +37 -0
- package/dist/.claude/agents/power-chaotic.md +39 -0
- package/dist/.claude/agents/qui-gon-subtle-vulns.md +40 -0
- package/dist/.claude/agents/radagast-edge-cases.md +41 -0
- package/dist/.claude/agents/raoden-conversion.md +41 -0
- package/dist/.claude/agents/raven-deep-analysis.md +43 -0
- package/dist/.claude/agents/red-hood-aggressive.md +47 -0
- package/dist/.claude/agents/rei-dangerous-tasks.md +39 -0
- package/dist/.claude/agents/reigen-debugger.md +39 -0
- package/dist/.claude/agents/rengoku-intense-monitor.md +39 -0
- package/dist/.claude/agents/rex-infrastructure.md +41 -0
- package/dist/.claude/agents/rhodes-production.md +43 -0
- package/dist/.claude/agents/riker-review.md +62 -0
- package/dist/.claude/agents/rimuru-adapter.md +39 -0
- package/dist/.claude/agents/riza-backup.md +39 -0
- package/dist/.claude/agents/robin-apprentice.md +42 -0
- package/dist/.claude/agents/rocket-scrappy.md +43 -0
- package/dist/.claude/agents/rogers-api-design.md +43 -0
- package/dist/.claude/agents/romanoff-integrations.md +44 -0
- package/dist/.claude/agents/sabine-unconventional.md +40 -0
- package/dist/.claude/agents/salvor-model-selection.md +42 -0
- package/dist/.claude/agents/samwise-accessibility.md +43 -0
- package/dist/.claude/agents/sarene-outreach.md +40 -0
- package/dist/.claude/agents/sasha-resources.md +37 -0
- package/dist/.claude/agents/scotty-infrastructure.md +48 -0
- package/dist/.claude/agents/seldon-ai.md +67 -0
- package/dist/.claude/agents/senku-provisioning.md +40 -0
- package/dist/.claude/agents/sentaro-scheduling.md +37 -0
- package/dist/.claude/agents/seven-optimization.md +48 -0
- package/dist/.claude/agents/shallan-creative.md +40 -0
- package/dist/.claude/agents/sheeana-transport.md +40 -0
- package/dist/.claude/agents/shuri-innovation.md +43 -0
- package/dist/.claude/agents/silver-surfer-herald.md +90 -0
- package/dist/.claude/agents/siona-evasion.md +41 -0
- package/dist/.claude/agents/sisko-campaign.md +68 -0
- package/dist/.claude/agents/spike-routing.md +40 -0
- package/dist/.claude/agents/spock-schema.md +62 -0
- package/dist/.claude/agents/starfire-brute-force.md +43 -0
- package/dist/.claude/agents/stark-backend.md +71 -0
- package/dist/.claude/agents/steris-budget.md +41 -0
- package/dist/.claude/agents/stilgar-channel-security.md +40 -0
- package/dist/.claude/agents/strange-service-arch.md +44 -0
- package/dist/.claude/agents/sung-workers.md +39 -0
- package/dist/.claude/agents/superman-strength-test.md +43 -0
- package/dist/.claude/agents/suzaku-execution.md +39 -0
- package/dist/.claude/agents/szeth-compliance.md +40 -0
- package/dist/.claude/agents/tanjiro-persistent.md +39 -0
- package/dist/.claude/agents/tchalla-quality.md +43 -0
- package/dist/.claude/agents/thanos-gauntlet.md +68 -0
- package/dist/.claude/agents/theoden-rally.md +40 -0
- package/dist/.claude/agents/thor-queues.md +44 -0
- package/dist/.claude/agents/thufir-protocol-parsing.md +40 -0
- package/dist/.claude/agents/todo-brute-force.md +39 -0
- package/dist/.claude/agents/torres-site-scanner.md +47 -0
- package/dist/.claude/agents/totoro-guardian.md +39 -0
- package/dist/.claude/agents/tpol-disciplined.md +48 -0
- package/dist/.claude/agents/treebeard-deliberation.md +41 -0
- package/dist/.claude/agents/troi-prd-compliance.md +64 -0
- package/dist/.claude/agents/trunks-rollback.md +39 -0
- package/dist/.claude/agents/tuvok-deep-current.md +63 -0
- package/dist/.claude/agents/uhura-integration.md +47 -0
- package/dist/.claude/agents/valkyrie-recovery.md +43 -0
- package/dist/.claude/agents/vegeta-monitoring.md +39 -0
- package/dist/.claude/agents/veldora-dormant.md +37 -0
- package/dist/.claude/agents/vin-analytics.md +41 -0
- package/dist/.claude/agents/vision-data-analysis.md +43 -0
- package/dist/.claude/agents/wanda-seldon-validation.md +38 -0
- package/dist/.claude/agents/wanda-state.md +43 -0
- package/dist/.claude/agents/wax-paid-ads.md +40 -0
- package/dist/.claude/agents/wayne-ab-testing.md +40 -0
- package/dist/.claude/agents/whis-precision.md +39 -0
- package/dist/.claude/agents/windu-input-validation.md +41 -0
- package/dist/.claude/agents/winry-maintenance.md +39 -0
- package/dist/.claude/agents/wonder-woman-truth.md +43 -0
- package/dist/.claude/agents/wong-documentation.md +58 -0
- package/dist/.claude/agents/worf-security-arch.md +49 -0
- package/dist/.claude/agents/yoda-auth.md +57 -0
- package/dist/.claude/agents/yueh-trust-verify.md +40 -0
- package/dist/.claude/agents/zatanna-impossible.md +43 -0
- package/dist/.claude/agents/zechs-rival.md +39 -0
- package/dist/.claude/agents/zenitsu-alerts.md +37 -0
- package/dist/.claude/commands/ai.md +84 -0
- package/dist/.claude/commands/architect.md +107 -0
- package/dist/.claude/commands/assemble.md +223 -0
- package/dist/.claude/commands/assess.md +86 -0
- package/dist/.claude/commands/blueprint.md +135 -0
- package/dist/.claude/commands/build.md +138 -0
- package/dist/.claude/commands/campaign.md +224 -0
- package/dist/.claude/commands/cultivation.md +184 -0
- package/dist/.claude/commands/current.md +128 -0
- package/dist/.claude/commands/dangerroom.md +74 -0
- package/dist/.claude/commands/debrief.md +180 -0
- package/dist/.claude/commands/deploy.md +108 -0
- package/dist/.claude/commands/devops.md +160 -0
- package/dist/.claude/commands/engage.md +135 -0
- package/dist/.claude/commands/gauntlet.md +179 -0
- package/dist/.claude/commands/git.md +104 -0
- package/dist/.claude/commands/grow.md +160 -0
- package/dist/.claude/commands/imagine.md +126 -0
- package/dist/.claude/commands/portfolio.md +51 -0
- package/dist/.claude/commands/prd.md +113 -0
- package/dist/.claude/commands/qa.md +130 -0
- package/dist/.claude/commands/review.md +9 -0
- package/dist/.claude/commands/security.md +9 -0
- package/dist/.claude/commands/sentinel.md +90 -0
- package/dist/.claude/commands/test.md +114 -0
- package/dist/.claude/commands/thumper.md +116 -0
- package/dist/.claude/commands/treasury.md +117 -0
- package/dist/.claude/commands/ux.md +132 -0
- package/dist/.claude/commands/vault.md +198 -0
- package/dist/.claude/commands/void.md +148 -0
- package/dist/CHANGELOG.md +2621 -0
- package/dist/CLAUDE.md +292 -0
- package/dist/HOLOCRON.md +859 -0
- package/dist/VERSION.md +149 -0
- package/dist/docs/NAMING_REGISTRY.md +479 -0
- package/dist/docs/methods/AI_INTELLIGENCE.md +276 -0
- package/dist/docs/methods/ASSEMBLER.md +142 -0
- package/dist/docs/methods/BACKEND_ENGINEER.md +165 -0
- package/dist/docs/methods/BUILD_JOURNAL.md +214 -0
- package/dist/docs/methods/BUILD_PROTOCOL.md +436 -0
- package/dist/docs/methods/CAMPAIGN.md +569 -0
- package/dist/docs/methods/CONTEXT_MANAGEMENT.md +189 -0
- package/dist/docs/methods/DEEP_CURRENT.md +184 -0
- package/dist/docs/methods/DEVOPS_ENGINEER.md +297 -0
- package/dist/docs/methods/FIELD_MEDIC.md +265 -0
- package/dist/docs/methods/FORGE_ARTIST.md +108 -0
- package/dist/docs/methods/FORGE_KEEPER.md +270 -0
- package/dist/docs/methods/GAUNTLET.md +364 -0
- package/dist/docs/methods/GROWTH_STRATEGIST.md +466 -0
- package/dist/docs/methods/HEARTBEAT.md +168 -0
- package/dist/docs/methods/MCP_INTEGRATION.md +139 -0
- package/dist/docs/methods/MUSTER.md +152 -0
- package/dist/docs/methods/PRD_GENERATOR.md +186 -0
- package/dist/docs/methods/PRODUCT_DESIGN_FRONTEND.md +252 -0
- package/dist/docs/methods/QA_ENGINEER.md +360 -0
- package/dist/docs/methods/RELEASE_MANAGER.md +145 -0
- package/dist/docs/methods/SECURITY_AUDITOR.md +328 -0
- package/dist/docs/methods/SUB_AGENTS.md +375 -0
- package/dist/docs/methods/SYSTEMS_ARCHITECT.md +180 -0
- package/dist/docs/methods/TESTING.md +359 -0
- package/dist/docs/methods/THUMPER.md +175 -0
- package/dist/docs/methods/TIME_VAULT.md +120 -0
- package/dist/docs/methods/TREASURY.md +184 -0
- package/dist/docs/methods/TROUBLESHOOTING.md +265 -0
- package/dist/docs/patterns/README.md +52 -0
- package/dist/docs/patterns/ad-billing-adapter.ts +537 -0
- package/dist/docs/patterns/ad-platform-adapter.ts +421 -0
- package/dist/docs/patterns/ai-classifier.ts +195 -0
- package/dist/docs/patterns/ai-eval.ts +272 -0
- package/dist/docs/patterns/ai-orchestrator.ts +341 -0
- package/dist/docs/patterns/ai-router.ts +194 -0
- package/dist/docs/patterns/ai-tool-schema.ts +237 -0
- package/dist/docs/patterns/api-route.ts +241 -0
- package/dist/docs/patterns/backtest-engine.ts +499 -0
- package/dist/docs/patterns/browser-review.ts +292 -0
- package/dist/docs/patterns/combobox.tsx +300 -0
- package/dist/docs/patterns/component.tsx +262 -0
- package/dist/docs/patterns/daemon-process.ts +338 -0
- package/dist/docs/patterns/data-pipeline.ts +297 -0
- package/dist/docs/patterns/database-migration.ts +466 -0
- package/dist/docs/patterns/e2e-test.ts +629 -0
- package/dist/docs/patterns/error-handling.ts +312 -0
- package/dist/docs/patterns/execution-safety.ts +601 -0
- package/dist/docs/patterns/financial-transaction.ts +366 -0
- package/dist/docs/patterns/funding-plan.ts +462 -0
- package/dist/docs/patterns/game-entity.ts +137 -0
- package/dist/docs/patterns/game-loop.ts +113 -0
- package/dist/docs/patterns/game-state.ts +143 -0
- package/dist/docs/patterns/job-queue.ts +225 -0
- package/dist/docs/patterns/kongo-integration.ts +164 -0
- package/dist/docs/patterns/middleware.ts +363 -0
- package/dist/docs/patterns/mobile-screen.tsx +139 -0
- package/dist/docs/patterns/mobile-service.ts +167 -0
- package/dist/docs/patterns/multi-tenant.ts +382 -0
- package/dist/docs/patterns/oauth-token-lifecycle.ts +223 -0
- package/dist/docs/patterns/outbound-rate-limiter.ts +260 -0
- package/dist/docs/patterns/prompt-template.ts +195 -0
- package/dist/docs/patterns/revenue-source-adapter.ts +311 -0
- package/dist/docs/patterns/service.ts +224 -0
- package/dist/docs/patterns/sse-endpoint.ts +118 -0
- package/dist/docs/patterns/stablecoin-adapter.ts +511 -0
- package/dist/docs/patterns/third-party-script.ts +68 -0
- package/dist/scripts/thumper/gom-jabbar.sh +241 -0
- package/dist/scripts/thumper/relay.sh +610 -0
- package/dist/scripts/thumper/scan.sh +359 -0
- package/dist/scripts/thumper/thumper.sh +190 -0
- package/dist/scripts/thumper/water-rings.sh +76 -0
- package/dist/scripts/vault-read.d.ts +11 -0
- package/dist/scripts/vault-read.js +89 -0
- package/dist/scripts/voidforge.d.ts +21 -0
- package/dist/scripts/voidforge.js +614 -0
- package/dist/wizard/api/auth.d.ts +5 -0
- package/dist/wizard/api/auth.js +139 -0
- package/dist/wizard/api/blueprint.d.ts +34 -0
- package/dist/wizard/api/blueprint.js +161 -0
- package/dist/wizard/api/cloud-providers.d.ts +16 -0
- package/dist/wizard/api/cloud-providers.js +363 -0
- package/dist/wizard/api/credentials.d.ts +1 -0
- package/dist/wizard/api/credentials.js +265 -0
- package/dist/wizard/api/danger-room.d.ts +24 -0
- package/dist/wizard/api/danger-room.js +274 -0
- package/dist/wizard/api/deploy.d.ts +4 -0
- package/dist/wizard/api/deploy.js +164 -0
- package/dist/wizard/api/prd.d.ts +1 -0
- package/dist/wizard/api/prd.js +363 -0
- package/dist/wizard/api/project.d.ts +1 -0
- package/dist/wizard/api/project.js +241 -0
- package/dist/wizard/api/projects-data.d.ts +5 -0
- package/dist/wizard/api/projects-data.js +234 -0
- package/dist/wizard/api/projects-list.d.ts +5 -0
- package/dist/wizard/api/projects-list.js +227 -0
- package/dist/wizard/api/projects.d.ts +7 -0
- package/dist/wizard/api/projects.js +273 -0
- package/dist/wizard/api/provision-status.d.ts +5 -0
- package/dist/wizard/api/provision-status.js +47 -0
- package/dist/wizard/api/provision-steps.d.ts +21 -0
- package/dist/wizard/api/provision-steps.js +44 -0
- package/dist/wizard/api/provision-validate.d.ts +22 -0
- package/dist/wizard/api/provision-validate.js +164 -0
- package/dist/wizard/api/provision.d.ts +2 -0
- package/dist/wizard/api/provision.js +239 -0
- package/dist/wizard/api/terminal.d.ts +25 -0
- package/dist/wizard/api/terminal.js +246 -0
- package/dist/wizard/api/users.d.ts +6 -0
- package/dist/wizard/api/users.js +244 -0
- package/dist/wizard/api/war-room.d.ts +16 -0
- package/dist/wizard/api/war-room.js +70 -0
- package/dist/wizard/danger-room.config.json +5 -0
- package/dist/wizard/lib/ad-platform-core.d.ts +6 -0
- package/dist/wizard/lib/ad-platform-core.js +1 -0
- package/dist/wizard/lib/adapters/index.d.ts +52 -0
- package/dist/wizard/lib/adapters/index.js +38 -0
- package/dist/wizard/lib/adapters/sandbox-bank.d.ts +17 -0
- package/dist/wizard/lib/adapters/sandbox-bank.js +77 -0
- package/dist/wizard/lib/adapters/sandbox.d.ts +39 -0
- package/dist/wizard/lib/adapters/sandbox.js +174 -0
- package/dist/wizard/lib/adapters/stripe.d.ts +19 -0
- package/dist/wizard/lib/adapters/stripe.js +143 -0
- package/dist/wizard/lib/adapters/types.d.ts +9 -0
- package/dist/wizard/lib/adapters/types.js +10 -0
- package/dist/wizard/lib/agent-memory.d.ts +36 -0
- package/dist/wizard/lib/agent-memory.js +114 -0
- package/dist/wizard/lib/agent-registry.d.ts +21 -0
- package/dist/wizard/lib/agent-registry.js +105 -0
- package/dist/wizard/lib/anomaly-detection.d.ts +59 -0
- package/dist/wizard/lib/anomaly-detection.js +122 -0
- package/dist/wizard/lib/anthropic.d.ts +21 -0
- package/dist/wizard/lib/anthropic.js +105 -0
- package/dist/wizard/lib/asset-scanner.d.ts +23 -0
- package/dist/wizard/lib/asset-scanner.js +107 -0
- package/dist/wizard/lib/audit-log.d.ts +23 -0
- package/dist/wizard/lib/audit-log.js +70 -0
- package/dist/wizard/lib/autonomy-controller.d.ts +76 -0
- package/dist/wizard/lib/autonomy-controller.js +184 -0
- package/dist/wizard/lib/body-parser.d.ts +2 -0
- package/dist/wizard/lib/body-parser.js +36 -0
- package/dist/wizard/lib/build-analytics.d.ts +39 -0
- package/dist/wizard/lib/build-analytics.js +91 -0
- package/dist/wizard/lib/build-step.d.ts +21 -0
- package/dist/wizard/lib/build-step.js +104 -0
- package/dist/wizard/lib/campaign-proposer.d.ts +39 -0
- package/dist/wizard/lib/campaign-proposer.js +181 -0
- package/dist/wizard/lib/campaign-state-machine.d.ts +63 -0
- package/dist/wizard/lib/campaign-state-machine.js +114 -0
- package/dist/wizard/lib/ci-generator.d.ts +14 -0
- package/dist/wizard/lib/ci-generator.js +187 -0
- package/dist/wizard/lib/claude-merge.d.ts +38 -0
- package/dist/wizard/lib/claude-merge.js +115 -0
- package/dist/wizard/lib/codegen/erd-gen.d.ts +16 -0
- package/dist/wizard/lib/codegen/erd-gen.js +98 -0
- package/dist/wizard/lib/codegen/integrations.d.ts +18 -0
- package/dist/wizard/lib/codegen/integrations.js +189 -0
- package/dist/wizard/lib/codegen/openapi-gen.d.ts +15 -0
- package/dist/wizard/lib/codegen/openapi-gen.js +79 -0
- package/dist/wizard/lib/codegen/prisma-types.d.ts +15 -0
- package/dist/wizard/lib/codegen/prisma-types.js +44 -0
- package/dist/wizard/lib/codegen/seed-gen.d.ts +16 -0
- package/dist/wizard/lib/codegen/seed-gen.js +128 -0
- package/dist/wizard/lib/compliance.d.ts +51 -0
- package/dist/wizard/lib/compliance.js +112 -0
- package/dist/wizard/lib/correlation-engine.d.ts +59 -0
- package/dist/wizard/lib/correlation-engine.js +152 -0
- package/dist/wizard/lib/cost-estimator.d.ts +22 -0
- package/dist/wizard/lib/cost-estimator.js +72 -0
- package/dist/wizard/lib/cost-tracker.d.ts +27 -0
- package/dist/wizard/lib/cost-tracker.js +37 -0
- package/dist/wizard/lib/daemon-aggregator.d.ts +76 -0
- package/dist/wizard/lib/daemon-aggregator.js +241 -0
- package/dist/wizard/lib/daemon-core.d.ts +16 -0
- package/dist/wizard/lib/daemon-core.js +39 -0
- package/dist/wizard/lib/dashboard-data.d.ts +123 -0
- package/dist/wizard/lib/dashboard-data.js +314 -0
- package/dist/wizard/lib/dashboard-ws.d.ts +28 -0
- package/dist/wizard/lib/dashboard-ws.js +117 -0
- package/dist/wizard/lib/deep-current.d.ts +77 -0
- package/dist/wizard/lib/deep-current.js +247 -0
- package/dist/wizard/lib/deploy-coordinator.d.ts +40 -0
- package/dist/wizard/lib/deploy-coordinator.js +86 -0
- package/dist/wizard/lib/deploy-log.d.ts +28 -0
- package/dist/wizard/lib/deploy-log.js +52 -0
- package/dist/wizard/lib/desktop-notify.d.ts +27 -0
- package/dist/wizard/lib/desktop-notify.js +98 -0
- package/dist/wizard/lib/dns/cloudflare-dns.d.ts +35 -0
- package/dist/wizard/lib/dns/cloudflare-dns.js +216 -0
- package/dist/wizard/lib/dns/cloudflare-registrar.d.ts +31 -0
- package/dist/wizard/lib/dns/cloudflare-registrar.js +148 -0
- package/dist/wizard/lib/dns/types.d.ts +22 -0
- package/dist/wizard/lib/dns/types.js +4 -0
- package/dist/wizard/lib/document-discovery.d.ts +33 -0
- package/dist/wizard/lib/document-discovery.js +145 -0
- package/dist/wizard/lib/env-validator.d.ts +14 -0
- package/dist/wizard/lib/env-validator.js +205 -0
- package/dist/wizard/lib/env-writer.d.ts +13 -0
- package/dist/wizard/lib/env-writer.js +26 -0
- package/dist/wizard/lib/exec.d.ts +30 -0
- package/dist/wizard/lib/exec.js +52 -0
- package/dist/wizard/lib/experiment.d.ts +70 -0
- package/dist/wizard/lib/experiment.js +169 -0
- package/dist/wizard/lib/extensions.d.ts +20 -0
- package/dist/wizard/lib/extensions.js +183 -0
- package/dist/wizard/lib/financial/adapter-factory.d.ts +47 -0
- package/dist/wizard/lib/financial/adapter-factory.js +225 -0
- package/dist/wizard/lib/financial/billing/base.d.ts +6 -0
- package/dist/wizard/lib/financial/billing/base.js +1 -0
- package/dist/wizard/lib/financial/billing/google-billing.d.ts +56 -0
- package/dist/wizard/lib/financial/billing/google-billing.js +298 -0
- package/dist/wizard/lib/financial/billing/meta-billing.d.ts +54 -0
- package/dist/wizard/lib/financial/billing/meta-billing.js +243 -0
- package/dist/wizard/lib/financial/billing/tiktok-billing.d.ts +54 -0
- package/dist/wizard/lib/financial/billing/tiktok-billing.js +260 -0
- package/dist/wizard/lib/financial/campaign/base.d.ts +13 -0
- package/dist/wizard/lib/financial/campaign/base.js +1 -0
- package/dist/wizard/lib/financial/campaign/campaign-common.d.ts +21 -0
- package/dist/wizard/lib/financial/campaign/campaign-common.js +58 -0
- package/dist/wizard/lib/financial/campaign/google-api.d.ts +35 -0
- package/dist/wizard/lib/financial/campaign/google-api.js +118 -0
- package/dist/wizard/lib/financial/campaign/google-campaign.d.ts +38 -0
- package/dist/wizard/lib/financial/campaign/google-campaign.js +186 -0
- package/dist/wizard/lib/financial/campaign/meta-api.d.ts +28 -0
- package/dist/wizard/lib/financial/campaign/meta-api.js +93 -0
- package/dist/wizard/lib/financial/campaign/meta-campaign.d.ts +32 -0
- package/dist/wizard/lib/financial/campaign/meta-campaign.js +189 -0
- package/dist/wizard/lib/financial/campaign/sandbox-campaign.d.ts +45 -0
- package/dist/wizard/lib/financial/campaign/sandbox-campaign.js +261 -0
- package/dist/wizard/lib/financial/campaign/tiktok-api.d.ts +25 -0
- package/dist/wizard/lib/financial/campaign/tiktok-api.js +81 -0
- package/dist/wizard/lib/financial/campaign/tiktok-campaign.d.ts +37 -0
- package/dist/wizard/lib/financial/campaign/tiktok-campaign.js +155 -0
- package/dist/wizard/lib/financial/funding-auto.d.ts +44 -0
- package/dist/wizard/lib/financial/funding-auto.js +52 -0
- package/dist/wizard/lib/financial/funding-policy.d.ts +60 -0
- package/dist/wizard/lib/financial/funding-policy.js +179 -0
- package/dist/wizard/lib/financial/platform-planner.d.ts +47 -0
- package/dist/wizard/lib/financial/platform-planner.js +134 -0
- package/dist/wizard/lib/financial/reconciliation-engine.d.ts +78 -0
- package/dist/wizard/lib/financial/reconciliation-engine.js +193 -0
- package/dist/wizard/lib/financial/registry.d.ts +22 -0
- package/dist/wizard/lib/financial/registry.js +26 -0
- package/dist/wizard/lib/financial/reporting.d.ts +96 -0
- package/dist/wizard/lib/financial/reporting.js +198 -0
- package/dist/wizard/lib/financial/stablecoin/base.d.ts +6 -0
- package/dist/wizard/lib/financial/stablecoin/base.js +1 -0
- package/dist/wizard/lib/financial/stablecoin/circle.d.ts +54 -0
- package/dist/wizard/lib/financial/stablecoin/circle.js +367 -0
- package/dist/wizard/lib/financial/stablecoin/mercury.d.ts +24 -0
- package/dist/wizard/lib/financial/stablecoin/mercury.js +171 -0
- package/dist/wizard/lib/financial/stablecoin/sandbox-stablecoin.d.ts +47 -0
- package/dist/wizard/lib/financial/stablecoin/sandbox-stablecoin.js +202 -0
- package/dist/wizard/lib/financial/treasury-planner.d.ts +52 -0
- package/dist/wizard/lib/financial/treasury-planner.js +128 -0
- package/dist/wizard/lib/financial-core.d.ts +6 -0
- package/dist/wizard/lib/financial-core.js +5 -0
- package/dist/wizard/lib/financial-vault.d.ts +34 -0
- package/dist/wizard/lib/financial-vault.js +200 -0
- package/dist/wizard/lib/frontmatter.d.ts +30 -0
- package/dist/wizard/lib/frontmatter.js +99 -0
- package/dist/wizard/lib/gap-analysis.d.ts +37 -0
- package/dist/wizard/lib/gap-analysis.js +218 -0
- package/dist/wizard/lib/github.d.ts +22 -0
- package/dist/wizard/lib/github.js +261 -0
- package/dist/wizard/lib/headless-deploy.d.ts +14 -0
- package/dist/wizard/lib/headless-deploy.js +452 -0
- package/dist/wizard/lib/health-monitor.d.ts +15 -0
- package/dist/wizard/lib/health-monitor.js +91 -0
- package/dist/wizard/lib/health-poller.d.ts +9 -0
- package/dist/wizard/lib/health-poller.js +123 -0
- package/dist/wizard/lib/heartbeat-lifecycle.d.ts +71 -0
- package/dist/wizard/lib/heartbeat-lifecycle.js +107 -0
- package/dist/wizard/lib/heartbeat-scheduler.d.ts +26 -0
- package/dist/wizard/lib/heartbeat-scheduler.js +155 -0
- package/dist/wizard/lib/heartbeat.d.ts +22 -0
- package/dist/wizard/lib/heartbeat.js +538 -0
- package/dist/wizard/lib/herald.d.ts +28 -0
- package/dist/wizard/lib/herald.js +167 -0
- package/dist/wizard/lib/http-helpers.d.ts +9 -0
- package/dist/wizard/lib/http-helpers.js +24 -0
- package/dist/wizard/lib/image-gen.d.ts +56 -0
- package/dist/wizard/lib/image-gen.js +159 -0
- package/dist/wizard/lib/instance-sizing.d.ts +26 -0
- package/dist/wizard/lib/instance-sizing.js +51 -0
- package/dist/wizard/lib/kongo/analytics.d.ts +29 -0
- package/dist/wizard/lib/kongo/analytics.js +179 -0
- package/dist/wizard/lib/kongo/campaigns.d.ts +52 -0
- package/dist/wizard/lib/kongo/campaigns.js +91 -0
- package/dist/wizard/lib/kongo/client.d.ts +58 -0
- package/dist/wizard/lib/kongo/client.js +221 -0
- package/dist/wizard/lib/kongo/jobs.d.ts +57 -0
- package/dist/wizard/lib/kongo/jobs.js +122 -0
- package/dist/wizard/lib/kongo/pages.d.ts +60 -0
- package/dist/wizard/lib/kongo/pages.js +150 -0
- package/dist/wizard/lib/kongo/provisioner.d.ts +64 -0
- package/dist/wizard/lib/kongo/provisioner.js +116 -0
- package/dist/wizard/lib/kongo/seed.d.ts +49 -0
- package/dist/wizard/lib/kongo/seed.js +237 -0
- package/dist/wizard/lib/kongo/types.d.ts +323 -0
- package/dist/wizard/lib/kongo/types.js +11 -0
- package/dist/wizard/lib/kongo/variants.d.ts +57 -0
- package/dist/wizard/lib/kongo/variants.js +88 -0
- package/dist/wizard/lib/kongo/webhooks.d.ts +41 -0
- package/dist/wizard/lib/kongo/webhooks.js +112 -0
- package/dist/wizard/lib/marker.d.ts +28 -0
- package/dist/wizard/lib/marker.js +79 -0
- package/dist/wizard/lib/migrator.d.ts +35 -0
- package/dist/wizard/lib/migrator.js +190 -0
- package/dist/wizard/lib/natural-language-deploy.d.ts +30 -0
- package/dist/wizard/lib/natural-language-deploy.js +186 -0
- package/dist/wizard/lib/network.d.ts +22 -0
- package/dist/wizard/lib/network.js +72 -0
- package/dist/wizard/lib/oauth-core.d.ts +6 -0
- package/dist/wizard/lib/oauth-core.js +5 -0
- package/dist/wizard/lib/open-browser.d.ts +1 -0
- package/dist/wizard/lib/open-browser.js +26 -0
- package/dist/wizard/lib/patterns/ad-billing-adapter.d.ts +209 -0
- package/dist/wizard/lib/patterns/ad-billing-adapter.js +269 -0
- package/dist/wizard/lib/patterns/ad-platform-adapter.d.ts +200 -0
- package/dist/wizard/lib/patterns/ad-platform-adapter.js +212 -0
- package/dist/wizard/lib/patterns/daemon-process.d.ts +88 -0
- package/dist/wizard/lib/patterns/daemon-process.js +271 -0
- package/dist/wizard/lib/patterns/financial-transaction.d.ts +171 -0
- package/dist/wizard/lib/patterns/financial-transaction.js +154 -0
- package/dist/wizard/lib/patterns/funding-plan.d.ts +136 -0
- package/dist/wizard/lib/patterns/funding-plan.js +200 -0
- package/dist/wizard/lib/patterns/oauth-token-lifecycle.d.ts +94 -0
- package/dist/wizard/lib/patterns/oauth-token-lifecycle.js +139 -0
- package/dist/wizard/lib/patterns/outbound-rate-limiter.d.ts +67 -0
- package/dist/wizard/lib/patterns/outbound-rate-limiter.js +216 -0
- package/dist/wizard/lib/patterns/revenue-source-adapter.d.ts +96 -0
- package/dist/wizard/lib/patterns/revenue-source-adapter.js +182 -0
- package/dist/wizard/lib/patterns/stablecoin-adapter.d.ts +218 -0
- package/dist/wizard/lib/patterns/stablecoin-adapter.js +264 -0
- package/dist/wizard/lib/prd-validator.d.ts +39 -0
- package/dist/wizard/lib/prd-validator.js +137 -0
- package/dist/wizard/lib/project-init.d.ts +24 -0
- package/dist/wizard/lib/project-init.js +228 -0
- package/dist/wizard/lib/project-registry.d.ts +86 -0
- package/dist/wizard/lib/project-registry.js +359 -0
- package/dist/wizard/lib/project-scope.d.ts +64 -0
- package/dist/wizard/lib/project-scope.js +96 -0
- package/dist/wizard/lib/project-vault.d.ts +47 -0
- package/dist/wizard/lib/project-vault.js +221 -0
- package/dist/wizard/lib/provision-manifest.d.ts +44 -0
- package/dist/wizard/lib/provision-manifest.js +164 -0
- package/dist/wizard/lib/provisioner-registry.d.ts +15 -0
- package/dist/wizard/lib/provisioner-registry.js +34 -0
- package/dist/wizard/lib/provisioners/aws-config.d.ts +36 -0
- package/dist/wizard/lib/provisioners/aws-config.js +56 -0
- package/dist/wizard/lib/provisioners/aws-ec2.d.ts +19 -0
- package/dist/wizard/lib/provisioners/aws-ec2.js +241 -0
- package/dist/wizard/lib/provisioners/aws-rds.d.ts +10 -0
- package/dist/wizard/lib/provisioners/aws-rds.js +199 -0
- package/dist/wizard/lib/provisioners/aws-vps.d.ts +6 -0
- package/dist/wizard/lib/provisioners/aws-vps.js +231 -0
- package/dist/wizard/lib/provisioners/cloudflare.d.ts +6 -0
- package/dist/wizard/lib/provisioners/cloudflare.js +300 -0
- package/dist/wizard/lib/provisioners/docker.d.ts +6 -0
- package/dist/wizard/lib/provisioners/docker.js +75 -0
- package/dist/wizard/lib/provisioners/http-client.d.ts +20 -0
- package/dist/wizard/lib/provisioners/http-client.js +79 -0
- package/dist/wizard/lib/provisioners/railway-config.d.ts +24 -0
- package/dist/wizard/lib/provisioners/railway-config.js +220 -0
- package/dist/wizard/lib/provisioners/railway-deploy.d.ts +19 -0
- package/dist/wizard/lib/provisioners/railway-deploy.js +205 -0
- package/dist/wizard/lib/provisioners/railway.d.ts +6 -0
- package/dist/wizard/lib/provisioners/railway.js +45 -0
- package/dist/wizard/lib/provisioners/scripts/caddyfile.d.ts +10 -0
- package/dist/wizard/lib/provisioners/scripts/caddyfile.js +54 -0
- package/dist/wizard/lib/provisioners/scripts/deploy-vps.d.ts +10 -0
- package/dist/wizard/lib/provisioners/scripts/deploy-vps.js +112 -0
- package/dist/wizard/lib/provisioners/scripts/docker-compose.d.ts +11 -0
- package/dist/wizard/lib/provisioners/scripts/docker-compose.js +91 -0
- package/dist/wizard/lib/provisioners/scripts/dockerfile.d.ts +5 -0
- package/dist/wizard/lib/provisioners/scripts/dockerfile.js +185 -0
- package/dist/wizard/lib/provisioners/scripts/ecosystem-config.d.ts +10 -0
- package/dist/wizard/lib/provisioners/scripts/ecosystem-config.js +36 -0
- package/dist/wizard/lib/provisioners/scripts/provision-vps.d.ts +14 -0
- package/dist/wizard/lib/provisioners/scripts/provision-vps.js +202 -0
- package/dist/wizard/lib/provisioners/scripts/rollback-vps.d.ts +10 -0
- package/dist/wizard/lib/provisioners/scripts/rollback-vps.js +67 -0
- package/dist/wizard/lib/provisioners/self-deploy.d.ts +41 -0
- package/dist/wizard/lib/provisioners/self-deploy.js +185 -0
- package/dist/wizard/lib/provisioners/static-s3.d.ts +6 -0
- package/dist/wizard/lib/provisioners/static-s3.js +235 -0
- package/dist/wizard/lib/provisioners/types.d.ts +40 -0
- package/dist/wizard/lib/provisioners/types.js +4 -0
- package/dist/wizard/lib/provisioners/vercel.d.ts +6 -0
- package/dist/wizard/lib/provisioners/vercel.js +287 -0
- package/dist/wizard/lib/pty-manager.d.ts +42 -0
- package/dist/wizard/lib/pty-manager.js +244 -0
- package/dist/wizard/lib/rate-limiter-core.d.ts +5 -0
- package/dist/wizard/lib/rate-limiter-core.js +5 -0
- package/dist/wizard/lib/reconciliation.d.ts +43 -0
- package/dist/wizard/lib/reconciliation.js +173 -0
- package/dist/wizard/lib/revenue-types.d.ts +5 -0
- package/dist/wizard/lib/revenue-types.js +1 -0
- package/dist/wizard/lib/route-optimizer.d.ts +28 -0
- package/dist/wizard/lib/route-optimizer.js +93 -0
- package/dist/wizard/lib/s3-deploy.d.ts +19 -0
- package/dist/wizard/lib/s3-deploy.js +156 -0
- package/dist/wizard/lib/safety-tiers.d.ts +76 -0
- package/dist/wizard/lib/safety-tiers.js +134 -0
- package/dist/wizard/lib/sentry-generator.d.ts +15 -0
- package/dist/wizard/lib/sentry-generator.js +116 -0
- package/dist/wizard/lib/server-config.d.ts +13 -0
- package/dist/wizard/lib/server-config.js +23 -0
- package/dist/wizard/lib/service-install.d.ts +18 -0
- package/dist/wizard/lib/service-install.js +182 -0
- package/dist/wizard/lib/site-scanner.d.ts +80 -0
- package/dist/wizard/lib/site-scanner.js +262 -0
- package/dist/wizard/lib/ssh-deploy.d.ts +25 -0
- package/dist/wizard/lib/ssh-deploy.js +225 -0
- package/dist/wizard/lib/templates.d.ts +24 -0
- package/dist/wizard/lib/templates.js +219 -0
- package/dist/wizard/lib/totp.d.ts +35 -0
- package/dist/wizard/lib/totp.js +277 -0
- package/dist/wizard/lib/tower-auth.d.ts +43 -0
- package/dist/wizard/lib/tower-auth.js +352 -0
- package/dist/wizard/lib/tower-rate-limit.d.ts +14 -0
- package/dist/wizard/lib/tower-rate-limit.js +61 -0
- package/dist/wizard/lib/tower-session.d.ts +28 -0
- package/dist/wizard/lib/tower-session.js +119 -0
- package/dist/wizard/lib/treasury-backup.d.ts +23 -0
- package/dist/wizard/lib/treasury-backup.js +127 -0
- package/dist/wizard/lib/treasury-circuit-breakers.d.ts +28 -0
- package/dist/wizard/lib/treasury-circuit-breakers.js +74 -0
- package/dist/wizard/lib/treasury-handlers.d.ts +21 -0
- package/dist/wizard/lib/treasury-handlers.js +281 -0
- package/dist/wizard/lib/treasury-heartbeat.d.ts +18 -0
- package/dist/wizard/lib/treasury-heartbeat.js +20 -0
- package/dist/wizard/lib/treasury-io.d.ts +107 -0
- package/dist/wizard/lib/treasury-io.js +254 -0
- package/dist/wizard/lib/treasury-jobs.d.ts +14 -0
- package/dist/wizard/lib/treasury-jobs.js +589 -0
- package/dist/wizard/lib/treasury-migrator.d.ts +59 -0
- package/dist/wizard/lib/treasury-migrator.js +227 -0
- package/dist/wizard/lib/treasury-reader.d.ts +52 -0
- package/dist/wizard/lib/treasury-reader.js +235 -0
- package/dist/wizard/lib/updater.d.ts +29 -0
- package/dist/wizard/lib/updater.js +203 -0
- package/dist/wizard/lib/user-manager.d.ts +39 -0
- package/dist/wizard/lib/user-manager.js +182 -0
- package/dist/wizard/lib/vault.d.ts +26 -0
- package/dist/wizard/lib/vault.js +161 -0
- package/dist/wizard/router.d.ts +12 -0
- package/dist/wizard/router.js +58 -0
- package/dist/wizard/server.d.ts +18 -0
- package/dist/wizard/server.js +427 -0
- package/dist/wizard/ui/app.js +1357 -0
- package/dist/wizard/ui/danger-room-prophecy.js +217 -0
- package/dist/wizard/ui/danger-room.html +27 -0
- package/dist/wizard/ui/danger-room.js +29 -0
- package/dist/wizard/ui/deploy.html +181 -0
- package/dist/wizard/ui/deploy.js +616 -0
- package/dist/wizard/ui/favicon.svg +11 -0
- package/dist/wizard/ui/index.html +407 -0
- package/dist/wizard/ui/lobby.html +235 -0
- package/dist/wizard/ui/lobby.js +843 -0
- package/dist/wizard/ui/login.html +111 -0
- package/dist/wizard/ui/login.js +199 -0
- package/dist/wizard/ui/project.html +285 -0
- package/dist/wizard/ui/project.js +324 -0
- package/dist/wizard/ui/rollback.js +107 -0
- package/dist/wizard/ui/styles.css +1040 -0
- package/dist/wizard/ui/tower.html +177 -0
- package/dist/wizard/ui/tower.js +445 -0
- package/dist/wizard/ui/war-room-prophecy.js +217 -0
- package/dist/wizard/ui/war-room.html +27 -0
- package/dist/wizard/ui/war-room.js +29 -0
- package/package.json +60 -0
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard data parsers — shared between Danger Room and War Room.
|
|
3
|
+
* Reads campaign-state.md, assemble-state.md, log files, deploy logs, VERSION.md.
|
|
4
|
+
*
|
|
5
|
+
* v22.0 (ADR-041 M1): All project-scoped functions accept logsDir/projectDir
|
|
6
|
+
* from ProjectContext. Global data (context stats) stays at ~/.voidforge/.
|
|
7
|
+
*
|
|
8
|
+
* Parser fixes from field reports #127, #128:
|
|
9
|
+
* - parseCampaignState: rewritten for actual 5-column format, handles bold status
|
|
10
|
+
* - parseBuildState: explicit trim to remove capture artifacts
|
|
11
|
+
* - parseFindings: reads Known Issues from build-state.md first, falls back to regex
|
|
12
|
+
*/
|
|
13
|
+
import { readdir, unlink } from 'node:fs/promises';
|
|
14
|
+
import { join } from 'node:path';
|
|
15
|
+
import { homedir } from 'node:os';
|
|
16
|
+
import { readFileOrNull } from './http-helpers.js';
|
|
17
|
+
const VOIDFORGE_DIR = join(homedir(), '.voidforge');
|
|
18
|
+
// ── Parsers ──────────────────────────────────────
|
|
19
|
+
/**
|
|
20
|
+
* Parse campaign-state.md into structured campaign data.
|
|
21
|
+
*
|
|
22
|
+
* Handles the actual format written by /campaign:
|
|
23
|
+
* | # | Mission | Scope | Status | Debrief |
|
|
24
|
+
* | 1 | Name | ... | NOT STARTED | — |
|
|
25
|
+
*
|
|
26
|
+
* Status values may be wrapped in bold: **DONE**, **COMPLETE**
|
|
27
|
+
* Normalizes to: COMPLETE, ACTIVE, BLOCKED, PENDING, STRUCTURAL
|
|
28
|
+
*/
|
|
29
|
+
export async function parseCampaignState(logsDir) {
|
|
30
|
+
const content = await readFileOrNull(join(logsDir, 'campaign-state.md'));
|
|
31
|
+
if (!content)
|
|
32
|
+
return null;
|
|
33
|
+
const missions = [];
|
|
34
|
+
const re = /\|\s*(\d+)\s*\|\s*(.+?)\s*\|\s*(.+?)\s*\|\s*\*{0,2}(COMPLETE|DONE|IN PROGRESS|NOT STARTED|BLOCKED|STRUCTURAL|ACTIVE|ABANDONED)\*{0,2}\s*\|\s*(.+?)\s*\|/g;
|
|
35
|
+
let m;
|
|
36
|
+
while ((m = re.exec(content)) !== null) {
|
|
37
|
+
const rawStatus = m[4].trim();
|
|
38
|
+
const status = rawStatus === 'IN PROGRESS' ? 'ACTIVE'
|
|
39
|
+
: rawStatus === 'NOT STARTED' ? 'PENDING'
|
|
40
|
+
: rawStatus === 'DONE' ? 'COMPLETE'
|
|
41
|
+
: rawStatus;
|
|
42
|
+
missions.push({
|
|
43
|
+
name: m[2].trim(),
|
|
44
|
+
status,
|
|
45
|
+
number: parseInt(m[1]),
|
|
46
|
+
debrief: m[5].trim() === '—' ? undefined : m[5].trim(),
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
if (missions.length === 0) {
|
|
50
|
+
if (content.length > 100) {
|
|
51
|
+
console.warn('parseCampaignState: no missions found in non-empty file (%d chars)', content.length);
|
|
52
|
+
}
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
const statusMatch = content.match(/CAMPAIGN STATUS:\s*(.+?)(?:\n|$)/);
|
|
56
|
+
const status = statusMatch ? statusMatch[1] : 'ACTIVE';
|
|
57
|
+
const sections = missions.map(mi => ({ name: mi.name, status: mi.status }));
|
|
58
|
+
return { missions, status, sections };
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Parse assemble-state.md into phase pipeline data.
|
|
62
|
+
* Explicit trim on captures to remove leading artifacts.
|
|
63
|
+
*/
|
|
64
|
+
export async function parseBuildState(logsDir) {
|
|
65
|
+
const content = await readFileOrNull(join(logsDir, 'assemble-state.md'));
|
|
66
|
+
if (!content)
|
|
67
|
+
return null;
|
|
68
|
+
const phases = [];
|
|
69
|
+
const re = /\|\s*(?:\d+\.\s*)?(.+?)\s*\|\s*(COMPLETE|IN PROGRESS|NOT STARTED|PENDING|SKIPPED)\s*\|/g;
|
|
70
|
+
let m;
|
|
71
|
+
while ((m = re.exec(content)) !== null) {
|
|
72
|
+
const name = m[1].trim().replace(/^\|\s*/, '');
|
|
73
|
+
if (name === 'Phase' || name === 'Status' || name.startsWith('-') || name === '')
|
|
74
|
+
continue;
|
|
75
|
+
const raw = m[2].trim();
|
|
76
|
+
const normalized = raw === 'IN PROGRESS' ? 'active' : raw === 'NOT STARTED' ? 'pending' : raw.toLowerCase();
|
|
77
|
+
phases.push({ name, status: normalized });
|
|
78
|
+
}
|
|
79
|
+
return phases.length > 0 ? { phases } : null;
|
|
80
|
+
}
|
|
81
|
+
function countSeverity(content, severity) {
|
|
82
|
+
const tableHits = (content.match(new RegExp(`\\|\\s*${severity}\\s*\\|`, 'gi')) || []).length;
|
|
83
|
+
const boldHits = (content.match(new RegExp(`\\*\\*${severity}\\*\\*`, 'gi')) || []).length;
|
|
84
|
+
return tableHits + boldHits;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Parse findings — prefer Known Issues from build-state.md (curated, reflects open issues only).
|
|
88
|
+
* Falls back to regex counting across log files (historical totals, may overcount).
|
|
89
|
+
*/
|
|
90
|
+
export async function parseFindings(logsDir) {
|
|
91
|
+
const counts = { critical: 0, high: 0, medium: 0, low: 0 };
|
|
92
|
+
const buildState = await readFileOrNull(join(logsDir, 'build-state.md'));
|
|
93
|
+
if (buildState) {
|
|
94
|
+
const knownIssuesMatch = buildState.match(/## Known Issues[\s\S]*?(?=\n## |\n---|$)/);
|
|
95
|
+
if (knownIssuesMatch) {
|
|
96
|
+
const section = knownIssuesMatch[0];
|
|
97
|
+
counts.critical = countSeverity(section, 'CRITICAL');
|
|
98
|
+
counts.high = countSeverity(section, 'HIGH');
|
|
99
|
+
counts.medium = countSeverity(section, 'MEDIUM');
|
|
100
|
+
counts.low = countSeverity(section, 'LOW');
|
|
101
|
+
return counts;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
try {
|
|
105
|
+
const files = await readdir(logsDir);
|
|
106
|
+
const logFiles = files.filter(f => f.startsWith('phase-') || f === 'gauntlet-state.md');
|
|
107
|
+
for (const file of logFiles) {
|
|
108
|
+
const content = await readFileOrNull(join(logsDir, file));
|
|
109
|
+
if (!content)
|
|
110
|
+
continue;
|
|
111
|
+
counts.critical += countSeverity(content, 'CRITICAL');
|
|
112
|
+
counts.high += countSeverity(content, 'HIGH');
|
|
113
|
+
counts.medium += countSeverity(content, 'MEDIUM');
|
|
114
|
+
counts.low += countSeverity(content, 'LOW');
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
catch { /* no logs directory */ }
|
|
118
|
+
return counts;
|
|
119
|
+
}
|
|
120
|
+
/** Read deploy log from project logs or .voidforge directory. Also reads deploy-state.md (v15.0). */
|
|
121
|
+
export async function readDeployLog(logsDir) {
|
|
122
|
+
const jsonPaths = [
|
|
123
|
+
join(logsDir, 'deploy-log.json'),
|
|
124
|
+
join(VOIDFORGE_DIR, 'deploys', 'latest.json'),
|
|
125
|
+
];
|
|
126
|
+
for (const p of jsonPaths) {
|
|
127
|
+
const content = await readFileOrNull(p);
|
|
128
|
+
if (!content)
|
|
129
|
+
continue;
|
|
130
|
+
try {
|
|
131
|
+
const data = JSON.parse(content);
|
|
132
|
+
return {
|
|
133
|
+
url: String(data.url || ''),
|
|
134
|
+
healthy: Boolean(data.healthy),
|
|
135
|
+
target: String(data.target || ''),
|
|
136
|
+
timestamp: String(data.timestamp || ''),
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
catch {
|
|
140
|
+
continue;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
const deployState = await readFileOrNull(join(logsDir, 'deploy-state.md'));
|
|
144
|
+
if (deployState) {
|
|
145
|
+
const urlMatch = deployState.match(/(?:URL|Target):\s*(.+?)(?:\n|$)/i);
|
|
146
|
+
const statusMatch = deployState.match(/Status:\s*(.+?)(?:\n|$)/i);
|
|
147
|
+
const timestampMatch = deployState.match(/(?:Last deployed|Timestamp):\s*(.+?)(?:\n|$)/i);
|
|
148
|
+
const commitMatch = deployState.match(/Commit:\s*(.+?)(?:\n|$)/i);
|
|
149
|
+
if (urlMatch || statusMatch) {
|
|
150
|
+
return {
|
|
151
|
+
url: urlMatch ? urlMatch[1].trim() : '',
|
|
152
|
+
healthy: statusMatch ? statusMatch[1].trim().toLowerCase() === 'healthy' : false,
|
|
153
|
+
target: '',
|
|
154
|
+
timestamp: timestampMatch ? timestampMatch[1].trim() : '',
|
|
155
|
+
commit: commitMatch ? commitMatch[1].trim() : undefined,
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
return null;
|
|
160
|
+
}
|
|
161
|
+
/** Detect deployment drift — compare deployed commit against current HEAD. */
|
|
162
|
+
export async function detectDeployDrift(logsDir, projectDir) {
|
|
163
|
+
const deployState = await readFileOrNull(join(logsDir, 'deploy-state.md'));
|
|
164
|
+
let deployedCommit = null;
|
|
165
|
+
if (deployState) {
|
|
166
|
+
const match = deployState.match(/Commit:\s*(\w+)/);
|
|
167
|
+
if (match)
|
|
168
|
+
deployedCommit = match[1];
|
|
169
|
+
}
|
|
170
|
+
if (!deployedCommit)
|
|
171
|
+
return null;
|
|
172
|
+
try {
|
|
173
|
+
const { execFile } = await import('node:child_process');
|
|
174
|
+
const { promisify } = await import('node:util');
|
|
175
|
+
const exec = promisify(execFile);
|
|
176
|
+
const result = await exec('git', ['rev-parse', '--short', 'HEAD'], { cwd: projectDir, timeout: 5000 });
|
|
177
|
+
const headCommit = result.stdout.trim();
|
|
178
|
+
return {
|
|
179
|
+
deployed_commit: deployedCommit,
|
|
180
|
+
head_commit: headCommit,
|
|
181
|
+
drifted: deployedCommit !== headCommit,
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
catch {
|
|
185
|
+
return { deployed_commit: deployedCommit, head_commit: null, drifted: true };
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
/** Read current version from VERSION.md. */
|
|
189
|
+
export async function readVersion(projectDir) {
|
|
190
|
+
const content = await readFileOrNull(join(projectDir, 'VERSION.md'));
|
|
191
|
+
if (!content)
|
|
192
|
+
return { version: 'unknown', branch: 'unknown' };
|
|
193
|
+
const match = content.match(/\*\*Current:\*\*\s*([\d.]+)/);
|
|
194
|
+
return { version: match ? match[1] : 'unknown', branch: 'main' };
|
|
195
|
+
}
|
|
196
|
+
const STALENESS_THRESHOLD_MS = 60000; // 60 seconds
|
|
197
|
+
/**
|
|
198
|
+
* Read context stats from the Status Line bridge (GLOBAL — not project-scoped).
|
|
199
|
+
* Reads per-session files (~/.voidforge/context-stats-*.json) and returns the most recent.
|
|
200
|
+
*/
|
|
201
|
+
export async function readContextStats() {
|
|
202
|
+
try {
|
|
203
|
+
const files = await readdir(VOIDFORGE_DIR);
|
|
204
|
+
const statsFiles = files.filter(f => f.startsWith('context-stats-') && f.endsWith('.json'));
|
|
205
|
+
if (statsFiles.length === 0)
|
|
206
|
+
return null;
|
|
207
|
+
let mostRecent = null;
|
|
208
|
+
let latestTime = 0;
|
|
209
|
+
const now = Date.now() / 1000;
|
|
210
|
+
const CLEANUP_AGE_S = 300;
|
|
211
|
+
for (const file of statsFiles) {
|
|
212
|
+
const filePath = join(VOIDFORGE_DIR, file);
|
|
213
|
+
const content = await readFileOrNull(filePath);
|
|
214
|
+
if (!content)
|
|
215
|
+
continue;
|
|
216
|
+
try {
|
|
217
|
+
const data = JSON.parse(content);
|
|
218
|
+
if (!data.updated_at)
|
|
219
|
+
continue;
|
|
220
|
+
if (now - data.updated_at > CLEANUP_AGE_S) {
|
|
221
|
+
try {
|
|
222
|
+
await unlink(filePath);
|
|
223
|
+
}
|
|
224
|
+
catch { /* ignore */ }
|
|
225
|
+
continue;
|
|
226
|
+
}
|
|
227
|
+
if (now - data.updated_at > STALENESS_THRESHOLD_MS / 1000)
|
|
228
|
+
continue;
|
|
229
|
+
if (data.updated_at > latestTime) {
|
|
230
|
+
latestTime = data.updated_at;
|
|
231
|
+
mostRecent = data;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
catch {
|
|
235
|
+
continue;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
return mostRecent;
|
|
239
|
+
}
|
|
240
|
+
catch {
|
|
241
|
+
return null;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
/** Read test results from test-results.json (written by test runner or hook). */
|
|
245
|
+
export async function readTestResults(projectDir, logsDir) {
|
|
246
|
+
const paths = [
|
|
247
|
+
join(projectDir, 'test-results.json'),
|
|
248
|
+
join(logsDir, 'test-results.json'),
|
|
249
|
+
];
|
|
250
|
+
for (const p of paths) {
|
|
251
|
+
const content = await readFileOrNull(p);
|
|
252
|
+
if (!content)
|
|
253
|
+
continue;
|
|
254
|
+
try {
|
|
255
|
+
const data = JSON.parse(content);
|
|
256
|
+
if (typeof data.total === 'number')
|
|
257
|
+
return data;
|
|
258
|
+
}
|
|
259
|
+
catch {
|
|
260
|
+
continue;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
return null;
|
|
264
|
+
}
|
|
265
|
+
/** Read danger-room.config.json for project-specific panel settings. */
|
|
266
|
+
export async function readDashboardConfig(projectDir) {
|
|
267
|
+
const paths = [
|
|
268
|
+
join(projectDir, 'wizard', 'danger-room.config.json'),
|
|
269
|
+
join(projectDir, 'danger-room.config.json'),
|
|
270
|
+
];
|
|
271
|
+
for (const p of paths) {
|
|
272
|
+
const content = await readFileOrNull(p);
|
|
273
|
+
if (!content)
|
|
274
|
+
continue;
|
|
275
|
+
try {
|
|
276
|
+
return JSON.parse(content);
|
|
277
|
+
}
|
|
278
|
+
catch {
|
|
279
|
+
continue;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
return {};
|
|
283
|
+
}
|
|
284
|
+
/** Read git status for the Git Status panel. */
|
|
285
|
+
export async function readGitStatus(projectDir) {
|
|
286
|
+
try {
|
|
287
|
+
const { execFile } = await import('node:child_process');
|
|
288
|
+
const { promisify } = await import('node:util');
|
|
289
|
+
const exec = promisify(execFile);
|
|
290
|
+
const [branchResult, statusResult, logResult] = await Promise.all([
|
|
291
|
+
exec('git', ['branch', '--show-current'], { cwd: projectDir, timeout: 5000 }).catch(() => ({ stdout: 'unknown' })),
|
|
292
|
+
exec('git', ['status', '--porcelain'], { cwd: projectDir, timeout: 5000 }).catch(() => ({ stdout: '' })),
|
|
293
|
+
exec('git', ['log', '--oneline', '-1'], { cwd: projectDir, timeout: 5000 }).catch(() => ({ stdout: '—' })),
|
|
294
|
+
]);
|
|
295
|
+
const branch = branchResult.stdout.trim() || 'unknown';
|
|
296
|
+
const uncommitted = statusResult.stdout.trim().split('\n').filter(Boolean).length;
|
|
297
|
+
const lastCommit = logResult.stdout.trim();
|
|
298
|
+
let ahead = 0;
|
|
299
|
+
let behind = 0;
|
|
300
|
+
try {
|
|
301
|
+
const abResult = await exec('git', ['rev-list', '--count', '--left-right', `origin/${branch}...HEAD`], { cwd: projectDir, timeout: 5000 });
|
|
302
|
+
const parts = abResult.stdout.trim().split('\t');
|
|
303
|
+
if (parts.length === 2) {
|
|
304
|
+
behind = parseInt(parts[0]) || 0;
|
|
305
|
+
ahead = parseInt(parts[1]) || 0;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
catch { /* no upstream — normal for some branches */ }
|
|
309
|
+
return { branch, uncommitted, ahead, behind, lastCommit };
|
|
310
|
+
}
|
|
311
|
+
catch {
|
|
312
|
+
return null;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard WebSocket infrastructure factory.
|
|
3
|
+
* Creates WebSocket server instances for dashboards (Danger Room, War Room)
|
|
4
|
+
* with heartbeat, connection management, origin validation, and broadcast.
|
|
5
|
+
*
|
|
6
|
+
* v22.0 (ADR-041 M5): Subscription rooms — clients subscribe to a project ID,
|
|
7
|
+
* broadcasts are filtered by project. Global broadcasts (no projectId) reach all clients.
|
|
8
|
+
*/
|
|
9
|
+
import type { IncomingMessage } from 'node:http';
|
|
10
|
+
import type { Duplex } from 'node:stream';
|
|
11
|
+
export interface DashboardWs {
|
|
12
|
+
/** Broadcast a message to all clients, or only to clients subscribed to a specific project. */
|
|
13
|
+
broadcast: (data: {
|
|
14
|
+
type: string;
|
|
15
|
+
[key: string]: unknown;
|
|
16
|
+
}, projectId?: string) => void;
|
|
17
|
+
/** Handle WebSocket upgrade for this dashboard's path. */
|
|
18
|
+
handleUpgrade: (req: IncomingMessage, socket: Duplex, head: Buffer, projectId?: string) => void;
|
|
19
|
+
/** Close all connections and shut down. */
|
|
20
|
+
close: () => void;
|
|
21
|
+
/** Current number of connected clients. */
|
|
22
|
+
clientCount: () => number;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Create a new dashboard WebSocket instance.
|
|
26
|
+
* @param name — Human-readable name for logging (e.g., 'Danger Room')
|
|
27
|
+
*/
|
|
28
|
+
export declare function createDashboardWs(name: string): DashboardWs;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard WebSocket infrastructure factory.
|
|
3
|
+
* Creates WebSocket server instances for dashboards (Danger Room, War Room)
|
|
4
|
+
* with heartbeat, connection management, origin validation, and broadcast.
|
|
5
|
+
*
|
|
6
|
+
* v22.0 (ADR-041 M5): Subscription rooms — clients subscribe to a project ID,
|
|
7
|
+
* broadcasts are filtered by project. Global broadcasts (no projectId) reach all clients.
|
|
8
|
+
*/
|
|
9
|
+
import { WebSocketServer, WebSocket } from 'ws';
|
|
10
|
+
import { getServerPort, getServerHost } from './server-config.js';
|
|
11
|
+
import { isLanMode } from './tower-auth.js';
|
|
12
|
+
import { isPrivateOrigin } from './network.js';
|
|
13
|
+
const HEARTBEAT_INTERVAL_MS = 30000;
|
|
14
|
+
const MAX_CLIENTS = 50;
|
|
15
|
+
// Symbol keys for WebSocket metadata
|
|
16
|
+
const PROJECT_ID_KEY = Symbol.for('voidforge.ws.projectId');
|
|
17
|
+
const IS_ALIVE_KEY = Symbol.for('voidforge.ws.isAlive');
|
|
18
|
+
/**
|
|
19
|
+
* Create a new dashboard WebSocket instance.
|
|
20
|
+
* @param name — Human-readable name for logging (e.g., 'Danger Room')
|
|
21
|
+
*/
|
|
22
|
+
export function createDashboardWs(name) {
|
|
23
|
+
const wss = new WebSocketServer({ noServer: true, maxPayload: 64 * 1024 }); // 64KB max message
|
|
24
|
+
const clients = new Set();
|
|
25
|
+
const heartbeat = setInterval(() => {
|
|
26
|
+
for (const client of clients) {
|
|
27
|
+
const ext = client;
|
|
28
|
+
if (!ext[IS_ALIVE_KEY]) {
|
|
29
|
+
clients.delete(client);
|
|
30
|
+
client.terminate();
|
|
31
|
+
continue;
|
|
32
|
+
}
|
|
33
|
+
ext[IS_ALIVE_KEY] = false;
|
|
34
|
+
try {
|
|
35
|
+
client.ping();
|
|
36
|
+
}
|
|
37
|
+
catch {
|
|
38
|
+
clients.delete(client);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}, HEARTBEAT_INTERVAL_MS);
|
|
42
|
+
return {
|
|
43
|
+
broadcast(data, projectId) {
|
|
44
|
+
const message = JSON.stringify(data);
|
|
45
|
+
for (const client of clients) {
|
|
46
|
+
if (client.readyState !== WebSocket.OPEN)
|
|
47
|
+
continue;
|
|
48
|
+
// If projectId is specified, only send to clients subscribed to that project
|
|
49
|
+
if (projectId) {
|
|
50
|
+
const clientProject = client[PROJECT_ID_KEY];
|
|
51
|
+
if (clientProject !== projectId)
|
|
52
|
+
continue;
|
|
53
|
+
}
|
|
54
|
+
try {
|
|
55
|
+
client.send(message);
|
|
56
|
+
}
|
|
57
|
+
catch { /* client gone */ }
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
handleUpgrade(req, socket, head, projectId) {
|
|
61
|
+
const origin = req.headers.origin || '';
|
|
62
|
+
const port = getServerPort();
|
|
63
|
+
const allowed = [`http://127.0.0.1:${port}`, `http://localhost:${port}`];
|
|
64
|
+
const remoteHost = getServerHost();
|
|
65
|
+
if (remoteHost)
|
|
66
|
+
allowed.push(`https://${remoteHost}`);
|
|
67
|
+
const originAllowed = allowed.includes(origin)
|
|
68
|
+
|| (isLanMode() && isPrivateOrigin(origin));
|
|
69
|
+
if (!origin || !originAllowed) {
|
|
70
|
+
socket.write('HTTP/1.1 403 Forbidden\r\n\r\n');
|
|
71
|
+
socket.destroy();
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
if (clients.size >= MAX_CLIENTS) {
|
|
75
|
+
socket.write('HTTP/1.1 503 Service Unavailable\r\n\r\n');
|
|
76
|
+
socket.destroy();
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
wss.handleUpgrade(req, socket, head, (ws) => {
|
|
80
|
+
clients.add(ws);
|
|
81
|
+
const ext = ws;
|
|
82
|
+
ext[IS_ALIVE_KEY] = true;
|
|
83
|
+
// Tag with project ID if provided at upgrade time
|
|
84
|
+
if (projectId) {
|
|
85
|
+
ext[PROJECT_ID_KEY] = projectId;
|
|
86
|
+
}
|
|
87
|
+
// Handle subscription messages from the client
|
|
88
|
+
ws.on('message', (raw) => {
|
|
89
|
+
try {
|
|
90
|
+
const msg = JSON.parse(String(raw));
|
|
91
|
+
if (msg.type === 'subscribe' && typeof msg.projectId === 'string') {
|
|
92
|
+
ext[PROJECT_ID_KEY] = msg.projectId;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
catch { /* ignore non-JSON or malformed messages */ }
|
|
96
|
+
});
|
|
97
|
+
ws.on('pong', () => { ext[IS_ALIVE_KEY] = true; });
|
|
98
|
+
ws.on('close', () => clients.delete(ws));
|
|
99
|
+
ws.on('error', () => clients.delete(ws));
|
|
100
|
+
});
|
|
101
|
+
},
|
|
102
|
+
close() {
|
|
103
|
+
clearInterval(heartbeat);
|
|
104
|
+
for (const client of clients) {
|
|
105
|
+
try {
|
|
106
|
+
client.close(1001, 'Server shutting down');
|
|
107
|
+
}
|
|
108
|
+
catch { /* ignore */ }
|
|
109
|
+
}
|
|
110
|
+
clients.clear();
|
|
111
|
+
wss.close();
|
|
112
|
+
},
|
|
113
|
+
clientCount() {
|
|
114
|
+
return clients.size;
|
|
115
|
+
},
|
|
116
|
+
};
|
|
117
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Deep Current — Situation Model + Cold Start Intake (v12.0).
|
|
3
|
+
*
|
|
4
|
+
* The Deep Current maintains a persistent situation model that represents
|
|
5
|
+
* the system's understanding of the project at any point in time. The
|
|
6
|
+
* cold start intake classifies new projects and bootstraps the model.
|
|
7
|
+
*
|
|
8
|
+
* PRD Reference: ROADMAP v12.0, docs/methods/DEEP_CURRENT.md
|
|
9
|
+
*/
|
|
10
|
+
import type { SiteScanResult } from './site-scanner.js';
|
|
11
|
+
declare function deepCurrentDir(projectDir: string): string;
|
|
12
|
+
declare function situationPath(projectDir: string): string;
|
|
13
|
+
declare function proposalsDir(projectDir: string): string;
|
|
14
|
+
declare function predictionsPath(projectDir: string): string;
|
|
15
|
+
declare function correlationsPath(projectDir: string): string;
|
|
16
|
+
type ProjectState = 'GREENFIELD' | 'IDEA_PRD' | 'PARTIAL' | 'DEPLOYED' | 'OPERATING';
|
|
17
|
+
interface ProjectClassification {
|
|
18
|
+
state: ProjectState;
|
|
19
|
+
hasCodebase: boolean;
|
|
20
|
+
hasPrd: boolean;
|
|
21
|
+
isDeployed: boolean;
|
|
22
|
+
hasAnalytics: boolean;
|
|
23
|
+
hasRevenue: boolean;
|
|
24
|
+
deployedUrl?: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Classify the current project's state by checking for key files and config.
|
|
28
|
+
*/
|
|
29
|
+
export declare function classifyProject(): Promise<ProjectClassification>;
|
|
30
|
+
interface DimensionScore {
|
|
31
|
+
score: number;
|
|
32
|
+
gaps: string[];
|
|
33
|
+
lastUpdated: string;
|
|
34
|
+
}
|
|
35
|
+
interface CampaignRecord {
|
|
36
|
+
id: string;
|
|
37
|
+
name: string;
|
|
38
|
+
proposedDate: string;
|
|
39
|
+
executedDate?: string;
|
|
40
|
+
predictedImpact: string;
|
|
41
|
+
actualImpact?: string;
|
|
42
|
+
predictionAccuracy?: number;
|
|
43
|
+
}
|
|
44
|
+
interface SituationModel {
|
|
45
|
+
projectState: ProjectState;
|
|
46
|
+
projectName: string;
|
|
47
|
+
deployedUrl?: string;
|
|
48
|
+
lastScan: string;
|
|
49
|
+
dimensions: {
|
|
50
|
+
featureCompleteness: DimensionScore;
|
|
51
|
+
quality: DimensionScore;
|
|
52
|
+
performance: DimensionScore;
|
|
53
|
+
growthReadiness: DimensionScore;
|
|
54
|
+
revenuePotential: DimensionScore;
|
|
55
|
+
};
|
|
56
|
+
campaignHistory: CampaignRecord[];
|
|
57
|
+
pendingProposals: string[];
|
|
58
|
+
averagePredictionAccuracy: number;
|
|
59
|
+
autonomyTier: 1 | 2 | 3;
|
|
60
|
+
lastSiteScan?: SiteScanResult;
|
|
61
|
+
}
|
|
62
|
+
export declare function loadSituation(projectDir: string): Promise<SituationModel | null>;
|
|
63
|
+
export declare function saveSituation(projectDir: string, model: SituationModel): Promise<void>;
|
|
64
|
+
export declare function sense(model: SituationModel): Promise<SituationModel>;
|
|
65
|
+
interface IntakeResult {
|
|
66
|
+
classification: ProjectClassification;
|
|
67
|
+
situation: SituationModel;
|
|
68
|
+
siteScan?: SiteScanResult;
|
|
69
|
+
recommendedFirstAction: string;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Cold start intake: classify the project, scan if deployed, create situation model.
|
|
73
|
+
* Returns the initial situation and a recommended first action.
|
|
74
|
+
*/
|
|
75
|
+
export declare function intake(projectName: string, projectDir?: string): Promise<IntakeResult>;
|
|
76
|
+
export type { ProjectState, ProjectClassification, SituationModel, DimensionScore, CampaignRecord, IntakeResult };
|
|
77
|
+
export { deepCurrentDir, situationPath, proposalsDir, predictionsPath, correlationsPath };
|