kynjal-cli 2.0.6 → 3.1.0-alpha.44
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/.claude/agents/analysis/analyze-code-quality.md +179 -0
- package/.claude/agents/analysis/code-analyzer.md +210 -0
- package/.claude/agents/analysis/code-review/analyze-code-quality.md +179 -0
- package/.claude/agents/architecture/arch-system-design.md +157 -0
- package/.claude/agents/architecture/system-design/arch-system-design.md +155 -0
- package/.claude/agents/browser/browser-agent.yaml +182 -0
- package/.claude/agents/consensus/byzantine-coordinator.md +63 -0
- package/.claude/agents/consensus/crdt-synchronizer.md +997 -0
- package/.claude/agents/consensus/gossip-coordinator.md +63 -0
- package/.claude/agents/consensus/performance-benchmarker.md +851 -0
- package/.claude/agents/consensus/quorum-manager.md +823 -0
- package/.claude/agents/consensus/raft-manager.md +63 -0
- package/.claude/agents/consensus/security-manager.md +622 -0
- package/.claude/agents/core/coder.md +453 -0
- package/.claude/agents/core/planner.md +375 -0
- package/.claude/agents/core/researcher.md +369 -0
- package/.claude/agents/core/reviewer.md +520 -0
- package/.claude/agents/core/tester.md +512 -0
- package/.claude/agents/custom/test-long-runner.md +44 -0
- package/.claude/agents/data/data-ml-model.md +445 -0
- package/.claude/agents/data/ml/data-ml-model.md +193 -0
- package/.claude/agents/development/backend/dev-backend-api.md +142 -0
- package/.claude/agents/development/dev-backend-api.md +345 -0
- package/.claude/agents/devops/ci-cd/ops-cicd-github.md +164 -0
- package/.claude/agents/devops/ops-cicd-github.md +165 -0
- package/.claude/agents/documentation/api-docs/docs-api-openapi.md +174 -0
- package/.claude/agents/documentation/docs-api-openapi.md +355 -0
- package/.claude/agents/flow-nexus/app-store.md +88 -0
- package/.claude/agents/flow-nexus/authentication.md +69 -0
- package/.claude/agents/flow-nexus/challenges.md +81 -0
- package/.claude/agents/flow-nexus/neural-network.md +88 -0
- package/.claude/agents/flow-nexus/payments.md +83 -0
- package/.claude/agents/flow-nexus/sandbox.md +76 -0
- package/.claude/agents/flow-nexus/swarm.md +76 -0
- package/.claude/agents/flow-nexus/user-tools.md +96 -0
- package/.claude/agents/flow-nexus/workflow.md +84 -0
- package/.claude/agents/github/code-review-swarm.md +377 -0
- package/.claude/agents/github/github-modes.md +173 -0
- package/.claude/agents/github/issue-tracker.md +576 -0
- package/.claude/agents/github/multi-repo-swarm.md +553 -0
- package/.claude/agents/github/pr-manager.md +438 -0
- package/.claude/agents/github/project-board-sync.md +509 -0
- package/.claude/agents/github/release-manager.md +605 -0
- package/.claude/agents/github/release-swarm.md +583 -0
- package/.claude/agents/github/repo-architect.md +398 -0
- package/.claude/agents/github/swarm-issue.md +573 -0
- package/.claude/agents/github/swarm-pr.md +428 -0
- package/.claude/agents/github/sync-coordinator.md +452 -0
- package/.claude/agents/github/workflow-automation.md +903 -0
- package/.claude/agents/goal/agent.md +816 -0
- package/.claude/agents/goal/goal-planner.md +73 -0
- package/.claude/agents/optimization/benchmark-suite.md +665 -0
- package/.claude/agents/optimization/load-balancer.md +431 -0
- package/.claude/agents/optimization/performance-monitor.md +672 -0
- package/.claude/agents/optimization/resource-allocator.md +674 -0
- package/.claude/agents/optimization/topology-optimizer.md +808 -0
- package/.claude/agents/payments/agentic-payments.md +126 -0
- package/.claude/agents/sona/sona-learning-optimizer.md +74 -0
- package/.claude/agents/sparc/architecture.md +699 -0
- package/.claude/agents/sparc/pseudocode.md +520 -0
- package/.claude/agents/sparc/refinement.md +802 -0
- package/.claude/agents/sparc/specification.md +478 -0
- package/.claude/agents/specialized/mobile/spec-mobile-react-native.md +225 -0
- package/.claude/agents/specialized/spec-mobile-react-native.md +227 -0
- package/.claude/agents/sublinear/consensus-coordinator.md +338 -0
- package/.claude/agents/sublinear/matrix-optimizer.md +185 -0
- package/.claude/agents/sublinear/pagerank-analyzer.md +299 -0
- package/.claude/agents/sublinear/performance-optimizer.md +368 -0
- package/.claude/agents/sublinear/trading-predictor.md +246 -0
- package/.claude/agents/swarm/adaptive-coordinator.md +1127 -0
- package/.claude/agents/swarm/hierarchical-coordinator.md +710 -0
- package/.claude/agents/swarm/mesh-coordinator.md +963 -0
- package/.claude/agents/templates/automation-smart-agent.md +205 -0
- package/.claude/agents/templates/base-template-generator.md +268 -0
- package/.claude/agents/templates/coordinator-swarm-init.md +90 -0
- package/.claude/agents/templates/github-pr-manager.md +177 -0
- package/.claude/agents/templates/implementer-sparc-coder.md +259 -0
- package/.claude/agents/templates/memory-coordinator.md +187 -0
- package/.claude/agents/templates/orchestrator-task.md +139 -0
- package/.claude/agents/templates/performance-analyzer.md +199 -0
- package/.claude/agents/templates/sparc-coordinator.md +514 -0
- package/.claude/agents/testing/production-validator.md +395 -0
- package/.claude/agents/testing/tdd-london-swarm.md +244 -0
- package/.claude/agents/tmp.json +0 -0
- package/.claude/agents/v3/adr-architect.md +184 -0
- package/.claude/agents/v3/aidefence-guardian.md +282 -0
- package/.claude/agents/v3/claims-authorizer.md +208 -0
- package/.claude/agents/v3/collective-intelligence-coordinator.md +993 -0
- package/.claude/agents/v3/ddd-domain-expert.md +220 -0
- package/.claude/agents/v3/injection-analyst.md +236 -0
- package/.claude/agents/v3/memory-specialist.md +995 -0
- package/.claude/agents/v3/performance-engineer.md +1233 -0
- package/.claude/agents/v3/pii-detector.md +151 -0
- package/.claude/agents/v3/reasoningbank-learner.md +213 -0
- package/.claude/agents/v3/security-architect-aidefence.md +410 -0
- package/.claude/agents/v3/security-architect.md +867 -0
- package/.claude/agents/v3/security-auditor.md +771 -0
- package/.claude/agents/v3/sparc-orchestrator.md +182 -0
- package/.claude/agents/v3/swarm-memory-manager.md +157 -0
- package/.claude/agents/v3/v3-integration-architect.md +205 -0
- package/.claude/commands/agents/README.md +50 -0
- package/.claude/commands/agents/agent-capabilities.md +140 -0
- package/.claude/commands/agents/agent-coordination.md +28 -0
- package/.claude/commands/agents/agent-spawning.md +28 -0
- package/.claude/commands/agents/agent-types.md +216 -0
- package/.claude/commands/agents/health.md +139 -0
- package/.claude/commands/agents/list.md +100 -0
- package/.claude/commands/agents/logs.md +130 -0
- package/.claude/commands/agents/metrics.md +122 -0
- package/.claude/commands/agents/pool.md +127 -0
- package/.claude/commands/agents/spawn.md +140 -0
- package/.claude/commands/agents/status.md +115 -0
- package/.claude/commands/agents/stop.md +102 -0
- package/.claude/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +54 -0
- package/.claude/commands/analysis/README.md +9 -0
- package/.claude/commands/analysis/bottleneck-detect.md +162 -0
- package/.claude/commands/analysis/performance-bottlenecks.md +59 -0
- package/.claude/commands/analysis/performance-report.md +25 -0
- package/.claude/commands/analysis/token-efficiency.md +45 -0
- package/.claude/commands/analysis/token-usage.md +25 -0
- package/.claude/commands/automation/README.md +9 -0
- package/.claude/commands/automation/auto-agent.md +122 -0
- package/.claude/commands/automation/self-healing.md +106 -0
- package/.claude/commands/automation/session-memory.md +90 -0
- package/.claude/commands/automation/smart-agents.md +73 -0
- package/.claude/commands/automation/smart-spawn.md +25 -0
- package/.claude/commands/automation/workflow-select.md +25 -0
- package/.claude/commands/claude-flow-help.md +103 -0
- package/.claude/commands/claude-flow-memory.md +107 -0
- package/.claude/commands/claude-flow-swarm.md +205 -0
- package/.claude/commands/coordination/README.md +9 -0
- package/.claude/commands/coordination/agent-spawn.md +25 -0
- package/.claude/commands/coordination/init.md +44 -0
- package/.claude/commands/coordination/orchestrate.md +43 -0
- package/.claude/commands/coordination/spawn.md +45 -0
- package/.claude/commands/coordination/swarm-init.md +85 -0
- package/.claude/commands/coordination/task-orchestrate.md +25 -0
- package/.claude/commands/flow-nexus/app-store.md +124 -0
- package/.claude/commands/flow-nexus/challenges.md +120 -0
- package/.claude/commands/flow-nexus/login-registration.md +65 -0
- package/.claude/commands/flow-nexus/neural-network.md +134 -0
- package/.claude/commands/flow-nexus/payments.md +116 -0
- package/.claude/commands/flow-nexus/sandbox.md +83 -0
- package/.claude/commands/flow-nexus/swarm.md +87 -0
- package/.claude/commands/flow-nexus/user-tools.md +152 -0
- package/.claude/commands/flow-nexus/workflow.md +115 -0
- package/.claude/commands/github/README.md +11 -0
- package/.claude/commands/github/code-review-swarm.md +514 -0
- package/.claude/commands/github/code-review.md +25 -0
- package/.claude/commands/github/github-modes.md +147 -0
- package/.claude/commands/github/github-swarm.md +121 -0
- package/.claude/commands/github/issue-tracker.md +292 -0
- package/.claude/commands/github/issue-triage.md +25 -0
- package/.claude/commands/github/multi-repo-swarm.md +519 -0
- package/.claude/commands/github/pr-enhance.md +26 -0
- package/.claude/commands/github/pr-manager.md +170 -0
- package/.claude/commands/github/project-board-sync.md +471 -0
- package/.claude/commands/github/release-manager.md +338 -0
- package/.claude/commands/github/release-swarm.md +544 -0
- package/.claude/commands/github/repo-analyze.md +25 -0
- package/.claude/commands/github/repo-architect.md +367 -0
- package/.claude/commands/github/swarm-issue.md +482 -0
- package/.claude/commands/github/swarm-pr.md +285 -0
- package/.claude/commands/github/sync-coordinator.md +301 -0
- package/.claude/commands/github/workflow-automation.md +442 -0
- package/.claude/commands/hive-mind/README.md +17 -0
- package/.claude/commands/hive-mind/hive-mind-consensus.md +8 -0
- package/.claude/commands/hive-mind/hive-mind-init.md +18 -0
- package/.claude/commands/hive-mind/hive-mind-memory.md +8 -0
- package/.claude/commands/hive-mind/hive-mind-metrics.md +8 -0
- package/.claude/commands/hive-mind/hive-mind-resume.md +8 -0
- package/.claude/commands/hive-mind/hive-mind-sessions.md +8 -0
- package/.claude/commands/hive-mind/hive-mind-spawn.md +21 -0
- package/.claude/commands/hive-mind/hive-mind-status.md +8 -0
- package/.claude/commands/hive-mind/hive-mind-stop.md +8 -0
- package/.claude/commands/hive-mind/hive-mind-wizard.md +8 -0
- package/.claude/commands/hive-mind/hive-mind.md +27 -0
- package/.claude/commands/hooks/README.md +11 -0
- package/.claude/commands/hooks/overview.md +58 -0
- package/.claude/commands/hooks/post-edit.md +117 -0
- package/.claude/commands/hooks/post-task.md +112 -0
- package/.claude/commands/hooks/pre-edit.md +113 -0
- package/.claude/commands/hooks/pre-task.md +111 -0
- package/.claude/commands/hooks/session-end.md +118 -0
- package/.claude/commands/hooks/setup.md +103 -0
- package/.claude/commands/memory/README.md +9 -0
- package/.claude/commands/memory/memory-persist.md +25 -0
- package/.claude/commands/memory/memory-search.md +25 -0
- package/.claude/commands/memory/memory-usage.md +25 -0
- package/.claude/commands/memory/neural.md +47 -0
- package/.claude/commands/monitoring/README.md +9 -0
- package/.claude/commands/monitoring/agent-metrics.md +25 -0
- package/.claude/commands/monitoring/agents.md +44 -0
- package/.claude/commands/monitoring/real-time-view.md +25 -0
- package/.claude/commands/monitoring/status.md +46 -0
- package/.claude/commands/monitoring/swarm-monitor.md +25 -0
- package/.claude/commands/optimization/README.md +9 -0
- package/.claude/commands/optimization/auto-topology.md +62 -0
- package/.claude/commands/optimization/cache-manage.md +25 -0
- package/.claude/commands/optimization/parallel-execute.md +25 -0
- package/.claude/commands/optimization/parallel-execution.md +50 -0
- package/.claude/commands/optimization/topology-optimize.md +25 -0
- package/.claude/commands/pair/README.md +261 -0
- package/.claude/commands/pair/commands.md +546 -0
- package/.claude/commands/pair/config.md +510 -0
- package/.claude/commands/pair/examples.md +512 -0
- package/.claude/commands/pair/modes.md +348 -0
- package/.claude/commands/pair/session.md +407 -0
- package/.claude/commands/pair/start.md +209 -0
- package/.claude/commands/sparc/analyzer.md +52 -0
- package/.claude/commands/sparc/architect.md +53 -0
- package/.claude/commands/sparc/ask.md +97 -0
- package/.claude/commands/sparc/batch-executor.md +54 -0
- package/.claude/commands/sparc/code.md +89 -0
- package/.claude/commands/sparc/coder.md +54 -0
- package/.claude/commands/sparc/debug.md +83 -0
- package/.claude/commands/sparc/debugger.md +54 -0
- package/.claude/commands/sparc/designer.md +53 -0
- package/.claude/commands/sparc/devops.md +109 -0
- package/.claude/commands/sparc/docs-writer.md +80 -0
- package/.claude/commands/sparc/documenter.md +54 -0
- package/.claude/commands/sparc/innovator.md +54 -0
- package/.claude/commands/sparc/integration.md +83 -0
- package/.claude/commands/sparc/mcp.md +117 -0
- package/.claude/commands/sparc/memory-manager.md +54 -0
- package/.claude/commands/sparc/optimizer.md +54 -0
- package/.claude/commands/sparc/orchestrator.md +132 -0
- package/.claude/commands/sparc/post-deployment-monitoring-mode.md +83 -0
- package/.claude/commands/sparc/refinement-optimization-mode.md +83 -0
- package/.claude/commands/sparc/researcher.md +54 -0
- package/.claude/commands/sparc/reviewer.md +54 -0
- package/.claude/commands/sparc/security-review.md +80 -0
- package/.claude/commands/sparc/sparc-modes.md +174 -0
- package/.claude/commands/sparc/sparc.md +111 -0
- package/.claude/commands/sparc/spec-pseudocode.md +80 -0
- package/.claude/commands/sparc/supabase-admin.md +348 -0
- package/.claude/commands/sparc/swarm-coordinator.md +54 -0
- package/.claude/commands/sparc/tdd.md +54 -0
- package/.claude/commands/sparc/tester.md +54 -0
- package/.claude/commands/sparc/tutorial.md +79 -0
- package/.claude/commands/sparc/workflow-manager.md +54 -0
- package/.claude/commands/sparc.md +166 -0
- package/.claude/commands/stream-chain/pipeline.md +121 -0
- package/.claude/commands/stream-chain/run.md +70 -0
- package/.claude/commands/swarm/README.md +15 -0
- package/.claude/commands/swarm/analysis.md +95 -0
- package/.claude/commands/swarm/development.md +96 -0
- package/.claude/commands/swarm/examples.md +168 -0
- package/.claude/commands/swarm/maintenance.md +102 -0
- package/.claude/commands/swarm/optimization.md +117 -0
- package/.claude/commands/swarm/research.md +136 -0
- package/.claude/commands/swarm/swarm-analysis.md +8 -0
- package/.claude/commands/swarm/swarm-background.md +8 -0
- package/.claude/commands/swarm/swarm-init.md +19 -0
- package/.claude/commands/swarm/swarm-modes.md +8 -0
- package/.claude/commands/swarm/swarm-monitor.md +8 -0
- package/.claude/commands/swarm/swarm-spawn.md +19 -0
- package/.claude/commands/swarm/swarm-status.md +8 -0
- package/.claude/commands/swarm/swarm-strategies.md +8 -0
- package/.claude/commands/swarm/swarm.md +87 -0
- package/.claude/commands/swarm/testing.md +131 -0
- package/.claude/commands/training/README.md +9 -0
- package/.claude/commands/training/model-update.md +25 -0
- package/.claude/commands/training/neural-patterns.md +108 -0
- package/.claude/commands/training/neural-train.md +75 -0
- package/.claude/commands/training/pattern-learn.md +25 -0
- package/.claude/commands/training/specialization.md +63 -0
- package/.claude/commands/truth/start.md +143 -0
- package/.claude/commands/verify/check.md +50 -0
- package/.claude/commands/verify/start.md +128 -0
- package/.claude/commands/workflows/README.md +9 -0
- package/.claude/commands/workflows/development.md +78 -0
- package/.claude/commands/workflows/research.md +63 -0
- package/.claude/commands/workflows/workflow-create.md +25 -0
- package/.claude/commands/workflows/workflow-execute.md +25 -0
- package/.claude/commands/workflows/workflow-export.md +25 -0
- package/.claude/helpers/README.md +97 -0
- package/.claude/helpers/adr-compliance.sh +186 -0
- package/.claude/helpers/auto-commit.sh +178 -0
- package/.claude/helpers/auto-memory-hook.mjs +350 -0
- package/.claude/helpers/checkpoint-manager.sh +251 -0
- package/.claude/helpers/daemon-manager.sh +252 -0
- package/.claude/helpers/ddd-tracker.sh +144 -0
- package/.claude/helpers/github-safe.js +106 -0
- package/.claude/helpers/github-setup.sh +28 -0
- package/.claude/helpers/guidance-hook.sh +13 -0
- package/.claude/helpers/guidance-hooks.sh +102 -0
- package/.claude/helpers/health-monitor.sh +108 -0
- package/.claude/helpers/hook-handler.cjs +232 -0
- package/.claude/helpers/intelligence.cjs +916 -0
- package/.claude/helpers/learning-hooks.sh +329 -0
- package/.claude/helpers/learning-optimizer.sh +127 -0
- package/.claude/helpers/learning-service.mjs +1144 -0
- package/.claude/helpers/memory.js +83 -0
- package/.claude/helpers/metrics-db.mjs +488 -0
- package/.claude/helpers/pattern-consolidator.sh +86 -0
- package/.claude/helpers/perf-worker.sh +160 -0
- package/.claude/helpers/post-commit +16 -0
- package/.claude/helpers/pre-commit +26 -0
- package/.claude/helpers/quick-start.sh +19 -0
- package/.claude/helpers/router.js +66 -0
- package/.claude/helpers/security-scanner.sh +127 -0
- package/.claude/helpers/session.js +135 -0
- package/.claude/helpers/setup-mcp.sh +18 -0
- package/.claude/helpers/standard-checkpoint-hooks.sh +189 -0
- package/.claude/helpers/statusline-hook.sh +21 -0
- package/.claude/helpers/statusline.cjs +577 -0
- package/.claude/helpers/statusline.js +316 -0
- package/.claude/helpers/swarm-comms.sh +353 -0
- package/.claude/helpers/swarm-hooks.sh +761 -0
- package/.claude/helpers/swarm-monitor.sh +211 -0
- package/.claude/helpers/sync-v3-metrics.sh +245 -0
- package/.claude/helpers/update-v3-progress.sh +166 -0
- package/.claude/helpers/v3-quick-status.sh +58 -0
- package/.claude/helpers/v3.sh +111 -0
- package/.claude/helpers/validate-v3-config.sh +216 -0
- package/.claude/helpers/worker-manager.sh +170 -0
- package/.claude/settings.json +182 -0
- package/.claude/skills/agentdb-advanced/SKILL.md +550 -0
- package/.claude/skills/agentdb-learning/SKILL.md +545 -0
- package/.claude/skills/agentdb-memory-patterns/SKILL.md +339 -0
- package/.claude/skills/agentdb-optimization/SKILL.md +509 -0
- package/.claude/skills/agentdb-vector-search/SKILL.md +339 -0
- package/.claude/skills/agentic-jujutsu/SKILL.md +645 -0
- package/.claude/skills/aidefence-scan.md +151 -0
- package/.claude/skills/aidefence.yaml +297 -0
- package/.claude/skills/browser/SKILL.md +204 -0
- package/.claude/skills/flow-nexus-neural/SKILL.md +738 -0
- package/.claude/skills/flow-nexus-platform/SKILL.md +1157 -0
- package/.claude/skills/flow-nexus-swarm/SKILL.md +610 -0
- package/.claude/skills/github-code-review/SKILL.md +1140 -0
- package/.claude/skills/github-multi-repo/SKILL.md +874 -0
- package/.claude/skills/github-project-management/SKILL.md +1277 -0
- package/.claude/skills/github-release-management/SKILL.md +1081 -0
- package/.claude/skills/github-workflow-automation/SKILL.md +1065 -0
- package/.claude/skills/hive-mind-advanced/SKILL.md +712 -0
- package/.claude/skills/hooks-automation/SKILL.md +1201 -0
- package/.claude/skills/pair-programming/SKILL.md +1202 -0
- package/.claude/skills/performance-analysis/SKILL.md +563 -0
- package/.claude/skills/reasoningbank-agentdb/SKILL.md +446 -0
- package/.claude/skills/reasoningbank-intelligence/SKILL.md +201 -0
- package/.claude/skills/secure-review.md +181 -0
- package/.claude/skills/skill-builder/SKILL.md +910 -0
- package/.claude/skills/sparc-methodology/SKILL.md +1115 -0
- package/.claude/skills/stream-chain/SKILL.md +563 -0
- package/.claude/skills/swarm-advanced/SKILL.md +973 -0
- package/.claude/skills/swarm-orchestration/SKILL.md +179 -0
- package/.claude/skills/v3-cli-modernization/SKILL.md +872 -0
- package/.claude/skills/v3-core-implementation/SKILL.md +797 -0
- package/.claude/skills/v3-ddd-architecture/SKILL.md +442 -0
- package/.claude/skills/v3-integration-deep/SKILL.md +241 -0
- package/.claude/skills/v3-mcp-optimization/SKILL.md +777 -0
- package/.claude/skills/v3-memory-unification/SKILL.md +174 -0
- package/.claude/skills/v3-performance-optimization/SKILL.md +390 -0
- package/.claude/skills/v3-security-overhaul/SKILL.md +82 -0
- package/.claude/skills/v3-swarm-coordination/SKILL.md +340 -0
- package/.claude/skills/verification-quality/SKILL.md +649 -0
- package/.claude/skills/worker-benchmarks/skill.md +135 -0
- package/.claude/skills/worker-integration/skill.md +154 -0
- package/README.md +7280 -100
- package/bin/cli.js +156 -0
- package/bin/mcp-server.js +189 -0
- package/dist/src/benchmarks/pretrain/index.d.ts +58 -0
- package/dist/src/benchmarks/pretrain/index.d.ts.map +1 -0
- package/dist/src/benchmarks/pretrain/index.js +404 -0
- package/dist/src/benchmarks/pretrain/index.js.map +1 -0
- package/dist/src/commands/agent.d.ts +8 -0
- package/dist/src/commands/agent.d.ts.map +1 -0
- package/dist/src/commands/agent.js +819 -0
- package/dist/src/commands/agent.js.map +1 -0
- package/dist/src/commands/analyze.d.ts +19 -0
- package/dist/src/commands/analyze.d.ts.map +1 -0
- package/dist/src/commands/analyze.js +1823 -0
- package/dist/src/commands/analyze.js.map +1 -0
- package/dist/src/commands/benchmark.d.ts +10 -0
- package/dist/src/commands/benchmark.d.ts.map +1 -0
- package/dist/src/commands/benchmark.js +459 -0
- package/dist/src/commands/benchmark.js.map +1 -0
- package/dist/src/commands/claims.d.ts +10 -0
- package/dist/src/commands/claims.d.ts.map +1 -0
- package/dist/src/commands/claims.js +373 -0
- package/dist/src/commands/claims.js.map +1 -0
- package/dist/src/commands/completions.d.ts +10 -0
- package/dist/src/commands/completions.d.ts.map +1 -0
- package/dist/src/commands/completions.js +539 -0
- package/dist/src/commands/completions.js.map +1 -0
- package/dist/src/commands/config.d.ts +8 -0
- package/dist/src/commands/config.d.ts.map +1 -0
- package/dist/src/commands/config.js +406 -0
- package/dist/src/commands/config.js.map +1 -0
- package/dist/src/commands/daemon.d.ts +8 -0
- package/dist/src/commands/daemon.d.ts.map +1 -0
- package/dist/src/commands/daemon.js +593 -0
- package/dist/src/commands/daemon.js.map +1 -0
- package/dist/src/commands/deployment.d.ts +10 -0
- package/dist/src/commands/deployment.d.ts.map +1 -0
- package/dist/src/commands/deployment.js +289 -0
- package/dist/src/commands/deployment.js.map +1 -0
- package/dist/src/commands/doctor.d.ts +10 -0
- package/dist/src/commands/doctor.d.ts.map +1 -0
- package/dist/src/commands/doctor.js +571 -0
- package/dist/src/commands/doctor.js.map +1 -0
- package/dist/src/commands/embeddings.d.ts +18 -0
- package/dist/src/commands/embeddings.d.ts.map +1 -0
- package/dist/src/commands/embeddings.js +1576 -0
- package/dist/src/commands/embeddings.js.map +1 -0
- package/dist/src/commands/guidance.d.ts +8 -0
- package/dist/src/commands/guidance.d.ts.map +1 -0
- package/dist/src/commands/guidance.js +560 -0
- package/dist/src/commands/guidance.js.map +1 -0
- package/dist/src/commands/hive-mind.d.ts +11 -0
- package/dist/src/commands/hive-mind.d.ts.map +1 -0
- package/dist/src/commands/hive-mind.js +1230 -0
- package/dist/src/commands/hive-mind.js.map +1 -0
- package/dist/src/commands/hooks.d.ts +8 -0
- package/dist/src/commands/hooks.d.ts.map +1 -0
- package/dist/src/commands/hooks.js +3741 -0
- package/dist/src/commands/hooks.js.map +1 -0
- package/dist/src/commands/index.d.ts +108 -0
- package/dist/src/commands/index.d.ts.map +1 -0
- package/dist/src/commands/index.js +359 -0
- package/dist/src/commands/index.js.map +1 -0
- package/dist/src/commands/init.d.ts +8 -0
- package/dist/src/commands/init.d.ts.map +1 -0
- package/dist/src/commands/init.js +965 -0
- package/dist/src/commands/init.js.map +1 -0
- package/dist/src/commands/issues.d.ts +21 -0
- package/dist/src/commands/issues.d.ts.map +1 -0
- package/dist/src/commands/issues.js +567 -0
- package/dist/src/commands/issues.js.map +1 -0
- package/dist/src/commands/mcp.d.ts +11 -0
- package/dist/src/commands/mcp.d.ts.map +1 -0
- package/dist/src/commands/mcp.js +700 -0
- package/dist/src/commands/mcp.js.map +1 -0
- package/dist/src/commands/memory.d.ts +8 -0
- package/dist/src/commands/memory.d.ts.map +1 -0
- package/dist/src/commands/memory.js +1268 -0
- package/dist/src/commands/memory.js.map +1 -0
- package/dist/src/commands/migrate.d.ts +8 -0
- package/dist/src/commands/migrate.d.ts.map +1 -0
- package/dist/src/commands/migrate.js +410 -0
- package/dist/src/commands/migrate.js.map +1 -0
- package/dist/src/commands/neural.d.ts +10 -0
- package/dist/src/commands/neural.d.ts.map +1 -0
- package/dist/src/commands/neural.js +1448 -0
- package/dist/src/commands/neural.js.map +1 -0
- package/dist/src/commands/performance.d.ts +10 -0
- package/dist/src/commands/performance.d.ts.map +1 -0
- package/dist/src/commands/performance.js +579 -0
- package/dist/src/commands/performance.js.map +1 -0
- package/dist/src/commands/plugins.d.ts +11 -0
- package/dist/src/commands/plugins.d.ts.map +1 -0
- package/dist/src/commands/plugins.js +820 -0
- package/dist/src/commands/plugins.js.map +1 -0
- package/dist/src/commands/process.d.ts +10 -0
- package/dist/src/commands/process.d.ts.map +1 -0
- package/dist/src/commands/process.js +641 -0
- package/dist/src/commands/process.js.map +1 -0
- package/dist/src/commands/progress.d.ts +11 -0
- package/dist/src/commands/progress.d.ts.map +1 -0
- package/dist/src/commands/progress.js +259 -0
- package/dist/src/commands/progress.js.map +1 -0
- package/dist/src/commands/providers.d.ts +10 -0
- package/dist/src/commands/providers.d.ts.map +1 -0
- package/dist/src/commands/providers.js +232 -0
- package/dist/src/commands/providers.js.map +1 -0
- package/dist/src/commands/route.d.ts +16 -0
- package/dist/src/commands/route.d.ts.map +1 -0
- package/dist/src/commands/route.js +813 -0
- package/dist/src/commands/route.js.map +1 -0
- package/dist/src/commands/ruvector/backup.d.ts +11 -0
- package/dist/src/commands/ruvector/backup.d.ts.map +1 -0
- package/dist/src/commands/ruvector/backup.js +746 -0
- package/dist/src/commands/ruvector/backup.js.map +1 -0
- package/dist/src/commands/ruvector/benchmark.d.ts +11 -0
- package/dist/src/commands/ruvector/benchmark.d.ts.map +1 -0
- package/dist/src/commands/ruvector/benchmark.js +480 -0
- package/dist/src/commands/ruvector/benchmark.js.map +1 -0
- package/dist/src/commands/ruvector/import.d.ts +18 -0
- package/dist/src/commands/ruvector/import.d.ts.map +1 -0
- package/dist/src/commands/ruvector/import.js +349 -0
- package/dist/src/commands/ruvector/import.js.map +1 -0
- package/dist/src/commands/ruvector/index.d.ts +29 -0
- package/dist/src/commands/ruvector/index.d.ts.map +1 -0
- package/dist/src/commands/ruvector/index.js +129 -0
- package/dist/src/commands/ruvector/index.js.map +1 -0
- package/dist/src/commands/ruvector/init.d.ts +11 -0
- package/dist/src/commands/ruvector/init.d.ts.map +1 -0
- package/dist/src/commands/ruvector/init.js +431 -0
- package/dist/src/commands/ruvector/init.js.map +1 -0
- package/dist/src/commands/ruvector/migrate.d.ts +11 -0
- package/dist/src/commands/ruvector/migrate.d.ts.map +1 -0
- package/dist/src/commands/ruvector/migrate.js +481 -0
- package/dist/src/commands/ruvector/migrate.js.map +1 -0
- package/dist/src/commands/ruvector/optimize.d.ts +11 -0
- package/dist/src/commands/ruvector/optimize.d.ts.map +1 -0
- package/dist/src/commands/ruvector/optimize.js +503 -0
- package/dist/src/commands/ruvector/optimize.js.map +1 -0
- package/dist/src/commands/ruvector/setup.d.ts +18 -0
- package/dist/src/commands/ruvector/setup.d.ts.map +1 -0
- package/dist/src/commands/ruvector/setup.js +765 -0
- package/dist/src/commands/ruvector/setup.js.map +1 -0
- package/dist/src/commands/ruvector/status.d.ts +11 -0
- package/dist/src/commands/ruvector/status.d.ts.map +1 -0
- package/dist/src/commands/ruvector/status.js +456 -0
- package/dist/src/commands/ruvector/status.js.map +1 -0
- package/dist/src/commands/security.d.ts +10 -0
- package/dist/src/commands/security.d.ts.map +1 -0
- package/dist/src/commands/security.js +575 -0
- package/dist/src/commands/security.js.map +1 -0
- package/dist/src/commands/session.d.ts +8 -0
- package/dist/src/commands/session.d.ts.map +1 -0
- package/dist/src/commands/session.js +750 -0
- package/dist/src/commands/session.js.map +1 -0
- package/dist/src/commands/start.d.ts +8 -0
- package/dist/src/commands/start.d.ts.map +1 -0
- package/dist/src/commands/start.js +418 -0
- package/dist/src/commands/start.js.map +1 -0
- package/dist/src/commands/status.d.ts +8 -0
- package/dist/src/commands/status.d.ts.map +1 -0
- package/dist/src/commands/status.js +584 -0
- package/dist/src/commands/status.js.map +1 -0
- package/dist/src/commands/swarm.d.ts +8 -0
- package/dist/src/commands/swarm.d.ts.map +1 -0
- package/dist/src/commands/swarm.js +748 -0
- package/dist/src/commands/swarm.js.map +1 -0
- package/dist/src/commands/task.d.ts +8 -0
- package/dist/src/commands/task.d.ts.map +1 -0
- package/dist/src/commands/task.js +671 -0
- package/dist/src/commands/task.js.map +1 -0
- package/dist/src/commands/transfer-store.d.ts +13 -0
- package/dist/src/commands/transfer-store.d.ts.map +1 -0
- package/dist/src/commands/transfer-store.js +428 -0
- package/dist/src/commands/transfer-store.js.map +1 -0
- package/dist/src/commands/update.d.ts +8 -0
- package/dist/src/commands/update.d.ts.map +1 -0
- package/dist/src/commands/update.js +276 -0
- package/dist/src/commands/update.js.map +1 -0
- package/dist/src/commands/workflow.d.ts +8 -0
- package/dist/src/commands/workflow.d.ts.map +1 -0
- package/dist/src/commands/workflow.js +617 -0
- package/dist/src/commands/workflow.js.map +1 -0
- package/dist/src/config-adapter.d.ts +15 -0
- package/dist/src/config-adapter.d.ts.map +1 -0
- package/dist/src/config-adapter.js +186 -0
- package/dist/src/config-adapter.js.map +1 -0
- package/dist/src/index.d.ts +76 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +470 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/infrastructure/in-memory-repositories.d.ts +68 -0
- package/dist/src/infrastructure/in-memory-repositories.d.ts.map +1 -0
- package/dist/src/infrastructure/in-memory-repositories.js +264 -0
- package/dist/src/infrastructure/in-memory-repositories.js.map +1 -0
- package/dist/src/init/claudemd-generator.d.ts +25 -0
- package/dist/src/init/claudemd-generator.d.ts.map +1 -0
- package/dist/src/init/claudemd-generator.js +486 -0
- package/dist/src/init/claudemd-generator.js.map +1 -0
- package/dist/src/init/executor.d.ts +41 -0
- package/dist/src/init/executor.d.ts.map +1 -0
- package/dist/src/init/executor.js +1757 -0
- package/dist/src/init/executor.js.map +1 -0
- package/dist/src/init/helpers-generator.d.ts +60 -0
- package/dist/src/init/helpers-generator.d.ts.map +1 -0
- package/dist/src/init/helpers-generator.js +1111 -0
- package/dist/src/init/helpers-generator.js.map +1 -0
- package/dist/src/init/index.d.ts +13 -0
- package/dist/src/init/index.d.ts.map +1 -0
- package/dist/src/init/index.js +15 -0
- package/dist/src/init/index.js.map +1 -0
- package/dist/src/init/mcp-generator.d.ts +27 -0
- package/dist/src/init/mcp-generator.d.ts.map +1 -0
- package/dist/src/init/mcp-generator.js +100 -0
- package/dist/src/init/mcp-generator.js.map +1 -0
- package/dist/src/init/settings-generator.d.ts +14 -0
- package/dist/src/init/settings-generator.d.ts.map +1 -0
- package/dist/src/init/settings-generator.js +337 -0
- package/dist/src/init/settings-generator.js.map +1 -0
- package/dist/src/init/statusline-generator.d.ts +20 -0
- package/dist/src/init/statusline-generator.d.ts.map +1 -0
- package/dist/src/init/statusline-generator.js +1311 -0
- package/dist/src/init/statusline-generator.js.map +1 -0
- package/dist/src/init/types.d.ts +287 -0
- package/dist/src/init/types.d.ts.map +1 -0
- package/dist/src/init/types.js +259 -0
- package/dist/src/init/types.js.map +1 -0
- package/dist/src/mcp-client.d.ts +92 -0
- package/dist/src/mcp-client.d.ts.map +1 -0
- package/dist/src/mcp-client.js +233 -0
- package/dist/src/mcp-client.js.map +1 -0
- package/dist/src/mcp-server.d.ts +161 -0
- package/dist/src/mcp-server.d.ts.map +1 -0
- package/dist/src/mcp-server.js +601 -0
- package/dist/src/mcp-server.js.map +1 -0
- package/dist/src/mcp-tools/agent-tools.d.ts +9 -0
- package/dist/src/mcp-tools/agent-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/agent-tools.js +549 -0
- package/dist/src/mcp-tools/agent-tools.js.map +1 -0
- package/dist/src/mcp-tools/analyze-tools.d.ts +38 -0
- package/dist/src/mcp-tools/analyze-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/analyze-tools.js +317 -0
- package/dist/src/mcp-tools/analyze-tools.js.map +1 -0
- package/dist/src/mcp-tools/auto-install.d.ts +83 -0
- package/dist/src/mcp-tools/auto-install.d.ts.map +1 -0
- package/dist/src/mcp-tools/auto-install.js +131 -0
- package/dist/src/mcp-tools/auto-install.js.map +1 -0
- package/dist/src/mcp-tools/browser-tools.d.ts +13 -0
- package/dist/src/mcp-tools/browser-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/browser-tools.js +550 -0
- package/dist/src/mcp-tools/browser-tools.js.map +1 -0
- package/dist/src/mcp-tools/claims-tools.d.ts +12 -0
- package/dist/src/mcp-tools/claims-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/claims-tools.js +732 -0
- package/dist/src/mcp-tools/claims-tools.js.map +1 -0
- package/dist/src/mcp-tools/config-tools.d.ts +8 -0
- package/dist/src/mcp-tools/config-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/config-tools.js +333 -0
- package/dist/src/mcp-tools/config-tools.js.map +1 -0
- package/dist/src/mcp-tools/coordination-tools.d.ts +13 -0
- package/dist/src/mcp-tools/coordination-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/coordination-tools.js +486 -0
- package/dist/src/mcp-tools/coordination-tools.js.map +1 -0
- package/dist/src/mcp-tools/daa-tools.d.ts +13 -0
- package/dist/src/mcp-tools/daa-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/daa-tools.js +426 -0
- package/dist/src/mcp-tools/daa-tools.js.map +1 -0
- package/dist/src/mcp-tools/embeddings-tools.d.ts +9 -0
- package/dist/src/mcp-tools/embeddings-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/embeddings-tools.js +782 -0
- package/dist/src/mcp-tools/embeddings-tools.js.map +1 -0
- package/dist/src/mcp-tools/github-tools.d.ts +13 -0
- package/dist/src/mcp-tools/github-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/github-tools.js +373 -0
- package/dist/src/mcp-tools/github-tools.js.map +1 -0
- package/dist/src/mcp-tools/hive-mind-tools.d.ts +8 -0
- package/dist/src/mcp-tools/hive-mind-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/hive-mind-tools.js +583 -0
- package/dist/src/mcp-tools/hive-mind-tools.js.map +1 -0
- package/dist/src/mcp-tools/hooks-tools.d.ts +44 -0
- package/dist/src/mcp-tools/hooks-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/hooks-tools.js +2797 -0
- package/dist/src/mcp-tools/hooks-tools.js.map +1 -0
- package/dist/src/mcp-tools/index.d.ts +23 -0
- package/dist/src/mcp-tools/index.d.ts.map +1 -0
- package/dist/src/mcp-tools/index.js +22 -0
- package/dist/src/mcp-tools/index.js.map +1 -0
- package/dist/src/mcp-tools/memory-tools.d.ts +14 -0
- package/dist/src/mcp-tools/memory-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/memory-tools.js +482 -0
- package/dist/src/mcp-tools/memory-tools.js.map +1 -0
- package/dist/src/mcp-tools/neural-tools.d.ts +16 -0
- package/dist/src/mcp-tools/neural-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/neural-tools.js +456 -0
- package/dist/src/mcp-tools/neural-tools.js.map +1 -0
- package/dist/src/mcp-tools/performance-tools.d.ts +16 -0
- package/dist/src/mcp-tools/performance-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/performance-tools.js +534 -0
- package/dist/src/mcp-tools/performance-tools.js.map +1 -0
- package/dist/src/mcp-tools/progress-tools.d.ts +14 -0
- package/dist/src/mcp-tools/progress-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/progress-tools.js +348 -0
- package/dist/src/mcp-tools/progress-tools.js.map +1 -0
- package/dist/src/mcp-tools/security-tools.d.ts +18 -0
- package/dist/src/mcp-tools/security-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/security-tools.js +434 -0
- package/dist/src/mcp-tools/security-tools.js.map +1 -0
- package/dist/src/mcp-tools/session-tools.d.ts +8 -0
- package/dist/src/mcp-tools/session-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/session-tools.js +315 -0
- package/dist/src/mcp-tools/session-tools.js.map +1 -0
- package/dist/src/mcp-tools/swarm-tools.d.ts +8 -0
- package/dist/src/mcp-tools/swarm-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/swarm-tools.js +102 -0
- package/dist/src/mcp-tools/swarm-tools.js.map +1 -0
- package/dist/src/mcp-tools/system-tools.d.ts +13 -0
- package/dist/src/mcp-tools/system-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/system-tools.js +314 -0
- package/dist/src/mcp-tools/system-tools.js.map +1 -0
- package/dist/src/mcp-tools/task-tools.d.ts +8 -0
- package/dist/src/mcp-tools/task-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/task-tools.js +302 -0
- package/dist/src/mcp-tools/task-tools.js.map +1 -0
- package/dist/src/mcp-tools/terminal-tools.d.ts +13 -0
- package/dist/src/mcp-tools/terminal-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/terminal-tools.js +246 -0
- package/dist/src/mcp-tools/terminal-tools.js.map +1 -0
- package/dist/src/mcp-tools/transfer-tools.d.ts +14 -0
- package/dist/src/mcp-tools/transfer-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/transfer-tools.js +396 -0
- package/dist/src/mcp-tools/transfer-tools.js.map +1 -0
- package/dist/src/mcp-tools/types.d.ts +31 -0
- package/dist/src/mcp-tools/types.d.ts.map +1 -0
- package/dist/src/mcp-tools/types.js +7 -0
- package/dist/src/mcp-tools/types.js.map +1 -0
- package/dist/src/mcp-tools/workflow-tools.d.ts +8 -0
- package/dist/src/mcp-tools/workflow-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/workflow-tools.js +481 -0
- package/dist/src/mcp-tools/workflow-tools.js.map +1 -0
- package/dist/src/memory/ewc-consolidation.d.ts +271 -0
- package/dist/src/memory/ewc-consolidation.d.ts.map +1 -0
- package/dist/src/memory/ewc-consolidation.js +542 -0
- package/dist/src/memory/ewc-consolidation.js.map +1 -0
- package/dist/src/memory/intelligence.d.ts +285 -0
- package/dist/src/memory/intelligence.d.ts.map +1 -0
- package/dist/src/memory/intelligence.js +766 -0
- package/dist/src/memory/intelligence.js.map +1 -0
- package/dist/src/memory/memory-initializer.d.ts +396 -0
- package/dist/src/memory/memory-initializer.d.ts.map +1 -0
- package/dist/src/memory/memory-initializer.js +1929 -0
- package/dist/src/memory/memory-initializer.js.map +1 -0
- package/dist/src/memory/sona-optimizer.d.ts +227 -0
- package/dist/src/memory/sona-optimizer.d.ts.map +1 -0
- package/dist/src/memory/sona-optimizer.js +633 -0
- package/dist/src/memory/sona-optimizer.js.map +1 -0
- package/dist/src/output.d.ts +133 -0
- package/dist/src/output.d.ts.map +1 -0
- package/dist/src/output.js +513 -0
- package/dist/src/output.js.map +1 -0
- package/dist/src/parser.d.ts +41 -0
- package/dist/src/parser.d.ts.map +1 -0
- package/dist/src/parser.js +377 -0
- package/dist/src/parser.js.map +1 -0
- package/dist/src/plugins/manager.d.ts +133 -0
- package/dist/src/plugins/manager.d.ts.map +1 -0
- package/dist/src/plugins/manager.js +383 -0
- package/dist/src/plugins/manager.js.map +1 -0
- package/dist/src/plugins/store/discovery.d.ts +88 -0
- package/dist/src/plugins/store/discovery.d.ts.map +1 -0
- package/dist/src/plugins/store/discovery.js +1147 -0
- package/dist/src/plugins/store/discovery.js.map +1 -0
- package/dist/src/plugins/store/index.d.ts +76 -0
- package/dist/src/plugins/store/index.d.ts.map +1 -0
- package/dist/src/plugins/store/index.js +141 -0
- package/dist/src/plugins/store/index.js.map +1 -0
- package/dist/src/plugins/store/search.d.ts +46 -0
- package/dist/src/plugins/store/search.d.ts.map +1 -0
- package/dist/src/plugins/store/search.js +230 -0
- package/dist/src/plugins/store/search.js.map +1 -0
- package/dist/src/plugins/store/types.d.ts +274 -0
- package/dist/src/plugins/store/types.d.ts.map +1 -0
- package/dist/src/plugins/store/types.js +7 -0
- package/dist/src/plugins/store/types.js.map +1 -0
- package/dist/src/plugins/tests/demo-plugin-store.d.ts +7 -0
- package/dist/src/plugins/tests/demo-plugin-store.d.ts.map +1 -0
- package/dist/src/plugins/tests/demo-plugin-store.js +126 -0
- package/dist/src/plugins/tests/demo-plugin-store.js.map +1 -0
- package/dist/src/plugins/tests/standalone-test.d.ts +12 -0
- package/dist/src/plugins/tests/standalone-test.d.ts.map +1 -0
- package/dist/src/plugins/tests/standalone-test.js +188 -0
- package/dist/src/plugins/tests/standalone-test.js.map +1 -0
- package/dist/src/plugins/tests/test-plugin-store.d.ts +7 -0
- package/dist/src/plugins/tests/test-plugin-store.d.ts.map +1 -0
- package/dist/src/plugins/tests/test-plugin-store.js +206 -0
- package/dist/src/plugins/tests/test-plugin-store.js.map +1 -0
- package/dist/src/production/circuit-breaker.d.ts +101 -0
- package/dist/src/production/circuit-breaker.d.ts.map +1 -0
- package/dist/src/production/circuit-breaker.js +241 -0
- package/dist/src/production/circuit-breaker.js.map +1 -0
- package/dist/src/production/error-handler.d.ts +92 -0
- package/dist/src/production/error-handler.d.ts.map +1 -0
- package/dist/src/production/error-handler.js +299 -0
- package/dist/src/production/error-handler.js.map +1 -0
- package/dist/src/production/index.d.ts +23 -0
- package/dist/src/production/index.d.ts.map +1 -0
- package/dist/src/production/index.js +18 -0
- package/dist/src/production/index.js.map +1 -0
- package/dist/src/production/monitoring.d.ts +161 -0
- package/dist/src/production/monitoring.d.ts.map +1 -0
- package/dist/src/production/monitoring.js +356 -0
- package/dist/src/production/monitoring.js.map +1 -0
- package/dist/src/production/rate-limiter.d.ts +80 -0
- package/dist/src/production/rate-limiter.d.ts.map +1 -0
- package/dist/src/production/rate-limiter.js +201 -0
- package/dist/src/production/rate-limiter.js.map +1 -0
- package/dist/src/production/retry.d.ts +48 -0
- package/dist/src/production/retry.d.ts.map +1 -0
- package/dist/src/production/retry.js +179 -0
- package/dist/src/production/retry.js.map +1 -0
- package/dist/src/prompt.d.ts +44 -0
- package/dist/src/prompt.d.ts.map +1 -0
- package/dist/src/prompt.js +501 -0
- package/dist/src/prompt.js.map +1 -0
- package/dist/src/runtime/headless.d.ts +60 -0
- package/dist/src/runtime/headless.d.ts.map +1 -0
- package/dist/src/runtime/headless.js +284 -0
- package/dist/src/runtime/headless.js.map +1 -0
- package/dist/src/ruvector/ast-analyzer.d.ts +67 -0
- package/dist/src/ruvector/ast-analyzer.d.ts.map +1 -0
- package/dist/src/ruvector/ast-analyzer.js +277 -0
- package/dist/src/ruvector/ast-analyzer.js.map +1 -0
- package/dist/src/ruvector/coverage-router.d.ts +160 -0
- package/dist/src/ruvector/coverage-router.d.ts.map +1 -0
- package/dist/src/ruvector/coverage-router.js +529 -0
- package/dist/src/ruvector/coverage-router.js.map +1 -0
- package/dist/src/ruvector/coverage-tools.d.ts +33 -0
- package/dist/src/ruvector/coverage-tools.d.ts.map +1 -0
- package/dist/src/ruvector/coverage-tools.js +157 -0
- package/dist/src/ruvector/coverage-tools.js.map +1 -0
- package/dist/src/ruvector/diff-classifier.d.ts +175 -0
- package/dist/src/ruvector/diff-classifier.d.ts.map +1 -0
- package/dist/src/ruvector/diff-classifier.js +698 -0
- package/dist/src/ruvector/diff-classifier.js.map +1 -0
- package/dist/src/ruvector/enhanced-model-router.d.ts +146 -0
- package/dist/src/ruvector/enhanced-model-router.d.ts.map +1 -0
- package/dist/src/ruvector/enhanced-model-router.js +519 -0
- package/dist/src/ruvector/enhanced-model-router.js.map +1 -0
- package/dist/src/ruvector/flash-attention.d.ts +195 -0
- package/dist/src/ruvector/flash-attention.d.ts.map +1 -0
- package/dist/src/ruvector/flash-attention.js +643 -0
- package/dist/src/ruvector/flash-attention.js.map +1 -0
- package/dist/src/ruvector/graph-analyzer.d.ts +187 -0
- package/dist/src/ruvector/graph-analyzer.d.ts.map +1 -0
- package/dist/src/ruvector/graph-analyzer.js +929 -0
- package/dist/src/ruvector/graph-analyzer.js.map +1 -0
- package/dist/src/ruvector/index.d.ts +34 -0
- package/dist/src/ruvector/index.d.ts.map +1 -0
- package/dist/src/ruvector/index.js +60 -0
- package/dist/src/ruvector/index.js.map +1 -0
- package/dist/src/ruvector/lora-adapter.d.ts +218 -0
- package/dist/src/ruvector/lora-adapter.d.ts.map +1 -0
- package/dist/src/ruvector/lora-adapter.js +455 -0
- package/dist/src/ruvector/lora-adapter.js.map +1 -0
- package/dist/src/ruvector/model-router.d.ts +220 -0
- package/dist/src/ruvector/model-router.d.ts.map +1 -0
- package/dist/src/ruvector/model-router.js +488 -0
- package/dist/src/ruvector/model-router.js.map +1 -0
- package/dist/src/ruvector/moe-router.d.ts +206 -0
- package/dist/src/ruvector/moe-router.d.ts.map +1 -0
- package/dist/src/ruvector/moe-router.js +626 -0
- package/dist/src/ruvector/moe-router.js.map +1 -0
- package/dist/src/ruvector/q-learning-router.d.ts +211 -0
- package/dist/src/ruvector/q-learning-router.d.ts.map +1 -0
- package/dist/src/ruvector/q-learning-router.js +681 -0
- package/dist/src/ruvector/q-learning-router.js.map +1 -0
- package/dist/src/ruvector/semantic-router.d.ts +77 -0
- package/dist/src/ruvector/semantic-router.d.ts.map +1 -0
- package/dist/src/ruvector/semantic-router.js +178 -0
- package/dist/src/ruvector/semantic-router.js.map +1 -0
- package/dist/src/ruvector/vector-db.d.ts +69 -0
- package/dist/src/ruvector/vector-db.d.ts.map +1 -0
- package/dist/src/ruvector/vector-db.js +243 -0
- package/dist/src/ruvector/vector-db.js.map +1 -0
- package/dist/src/services/claim-service.d.ts +204 -0
- package/dist/src/services/claim-service.d.ts.map +1 -0
- package/dist/src/services/claim-service.js +818 -0
- package/dist/src/services/claim-service.js.map +1 -0
- package/dist/src/services/container-worker-pool.d.ts +197 -0
- package/dist/src/services/container-worker-pool.d.ts.map +1 -0
- package/dist/src/services/container-worker-pool.js +581 -0
- package/dist/src/services/container-worker-pool.js.map +1 -0
- package/dist/src/services/headless-worker-executor.d.ts +304 -0
- package/dist/src/services/headless-worker-executor.d.ts.map +1 -0
- package/dist/src/services/headless-worker-executor.js +999 -0
- package/dist/src/services/headless-worker-executor.js.map +1 -0
- package/dist/src/services/index.d.ts +13 -0
- package/dist/src/services/index.d.ts.map +1 -0
- package/dist/src/services/index.js +11 -0
- package/dist/src/services/index.js.map +1 -0
- package/dist/src/services/registry-api.d.ts +58 -0
- package/dist/src/services/registry-api.d.ts.map +1 -0
- package/dist/src/services/registry-api.js +146 -0
- package/dist/src/services/registry-api.js.map +1 -0
- package/dist/src/services/ruvector-training.d.ts +213 -0
- package/dist/src/services/ruvector-training.d.ts.map +1 -0
- package/dist/src/services/ruvector-training.js +498 -0
- package/dist/src/services/ruvector-training.js.map +1 -0
- package/dist/src/services/worker-daemon.d.ts +203 -0
- package/dist/src/services/worker-daemon.d.ts.map +1 -0
- package/dist/src/services/worker-daemon.js +756 -0
- package/dist/src/services/worker-daemon.js.map +1 -0
- package/dist/src/services/worker-queue.d.ts +194 -0
- package/dist/src/services/worker-queue.d.ts.map +1 -0
- package/dist/src/services/worker-queue.js +511 -0
- package/dist/src/services/worker-queue.js.map +1 -0
- package/dist/src/suggest.d.ts +53 -0
- package/dist/src/suggest.d.ts.map +1 -0
- package/dist/src/suggest.js +200 -0
- package/dist/src/suggest.js.map +1 -0
- package/dist/src/transfer/anonymization/index.d.ts +25 -0
- package/dist/src/transfer/anonymization/index.d.ts.map +1 -0
- package/dist/src/transfer/anonymization/index.js +175 -0
- package/dist/src/transfer/anonymization/index.js.map +1 -0
- package/dist/src/transfer/deploy-seraphine.d.ts +13 -0
- package/dist/src/transfer/deploy-seraphine.d.ts.map +1 -0
- package/dist/src/transfer/deploy-seraphine.js +205 -0
- package/dist/src/transfer/deploy-seraphine.js.map +1 -0
- package/dist/src/transfer/export.d.ts +25 -0
- package/dist/src/transfer/export.d.ts.map +1 -0
- package/dist/src/transfer/export.js +113 -0
- package/dist/src/transfer/export.js.map +1 -0
- package/dist/src/transfer/index.d.ts +12 -0
- package/dist/src/transfer/index.d.ts.map +1 -0
- package/dist/src/transfer/index.js +31 -0
- package/dist/src/transfer/index.js.map +1 -0
- package/dist/src/transfer/ipfs/client.d.ts +109 -0
- package/dist/src/transfer/ipfs/client.d.ts.map +1 -0
- package/dist/src/transfer/ipfs/client.js +299 -0
- package/dist/src/transfer/ipfs/client.js.map +1 -0
- package/dist/src/transfer/ipfs/upload.d.ts +95 -0
- package/dist/src/transfer/ipfs/upload.d.ts.map +1 -0
- package/dist/src/transfer/ipfs/upload.js +413 -0
- package/dist/src/transfer/ipfs/upload.js.map +1 -0
- package/dist/src/transfer/models/seraphine.d.ts +72 -0
- package/dist/src/transfer/models/seraphine.d.ts.map +1 -0
- package/dist/src/transfer/models/seraphine.js +373 -0
- package/dist/src/transfer/models/seraphine.js.map +1 -0
- package/dist/src/transfer/serialization/cfp.d.ts +49 -0
- package/dist/src/transfer/serialization/cfp.d.ts.map +1 -0
- package/dist/src/transfer/serialization/cfp.js +180 -0
- package/dist/src/transfer/serialization/cfp.js.map +1 -0
- package/dist/src/transfer/storage/gcs.d.ts +82 -0
- package/dist/src/transfer/storage/gcs.d.ts.map +1 -0
- package/dist/src/transfer/storage/gcs.js +230 -0
- package/dist/src/transfer/storage/gcs.js.map +1 -0
- package/dist/src/transfer/storage/index.d.ts +6 -0
- package/dist/src/transfer/storage/index.d.ts.map +1 -0
- package/dist/src/transfer/storage/index.js +6 -0
- package/dist/src/transfer/storage/index.js.map +1 -0
- package/dist/src/transfer/store/discovery.d.ts +84 -0
- package/dist/src/transfer/store/discovery.d.ts.map +1 -0
- package/dist/src/transfer/store/discovery.js +382 -0
- package/dist/src/transfer/store/discovery.js.map +1 -0
- package/dist/src/transfer/store/download.d.ts +70 -0
- package/dist/src/transfer/store/download.d.ts.map +1 -0
- package/dist/src/transfer/store/download.js +334 -0
- package/dist/src/transfer/store/download.js.map +1 -0
- package/dist/src/transfer/store/index.d.ts +84 -0
- package/dist/src/transfer/store/index.d.ts.map +1 -0
- package/dist/src/transfer/store/index.js +153 -0
- package/dist/src/transfer/store/index.js.map +1 -0
- package/dist/src/transfer/store/publish.d.ts +76 -0
- package/dist/src/transfer/store/publish.d.ts.map +1 -0
- package/dist/src/transfer/store/publish.js +294 -0
- package/dist/src/transfer/store/publish.js.map +1 -0
- package/dist/src/transfer/store/registry.d.ts +58 -0
- package/dist/src/transfer/store/registry.d.ts.map +1 -0
- package/dist/src/transfer/store/registry.js +285 -0
- package/dist/src/transfer/store/registry.js.map +1 -0
- package/dist/src/transfer/store/search.d.ts +54 -0
- package/dist/src/transfer/store/search.d.ts.map +1 -0
- package/dist/src/transfer/store/search.js +232 -0
- package/dist/src/transfer/store/search.js.map +1 -0
- package/dist/src/transfer/store/tests/standalone-test.d.ts +12 -0
- package/dist/src/transfer/store/tests/standalone-test.d.ts.map +1 -0
- package/dist/src/transfer/store/tests/standalone-test.js +190 -0
- package/dist/src/transfer/store/tests/standalone-test.js.map +1 -0
- package/dist/src/transfer/store/types.d.ts +193 -0
- package/dist/src/transfer/store/types.d.ts.map +1 -0
- package/dist/src/transfer/store/types.js +6 -0
- package/dist/src/transfer/store/types.js.map +1 -0
- package/dist/src/transfer/test-seraphine.d.ts +6 -0
- package/dist/src/transfer/test-seraphine.d.ts.map +1 -0
- package/dist/src/transfer/test-seraphine.js +105 -0
- package/dist/src/transfer/test-seraphine.js.map +1 -0
- package/dist/src/transfer/tests/test-store.d.ts +7 -0
- package/dist/src/transfer/tests/test-store.d.ts.map +1 -0
- package/dist/src/transfer/tests/test-store.js +214 -0
- package/dist/src/transfer/tests/test-store.js.map +1 -0
- package/dist/src/transfer/types.d.ts +245 -0
- package/dist/src/transfer/types.d.ts.map +1 -0
- package/dist/src/transfer/types.js +6 -0
- package/dist/src/transfer/types.js.map +1 -0
- package/dist/src/types.d.ts +198 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/types.js +38 -0
- package/dist/src/types.js.map +1 -0
- package/dist/src/update/checker.d.ts +34 -0
- package/dist/src/update/checker.d.ts.map +1 -0
- package/dist/src/update/checker.js +190 -0
- package/dist/src/update/checker.js.map +1 -0
- package/dist/src/update/executor.d.ts +32 -0
- package/dist/src/update/executor.d.ts.map +1 -0
- package/dist/src/update/executor.js +181 -0
- package/dist/src/update/executor.js.map +1 -0
- package/dist/src/update/index.d.ts +33 -0
- package/dist/src/update/index.d.ts.map +1 -0
- package/dist/src/update/index.js +64 -0
- package/dist/src/update/index.js.map +1 -0
- package/dist/src/update/rate-limiter.d.ts +20 -0
- package/dist/src/update/rate-limiter.d.ts.map +1 -0
- package/dist/src/update/rate-limiter.js +96 -0
- package/dist/src/update/rate-limiter.js.map +1 -0
- package/dist/src/update/validator.d.ts +17 -0
- package/dist/src/update/validator.d.ts.map +1 -0
- package/dist/src/update/validator.js +123 -0
- package/dist/src/update/validator.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +88 -56
- package/LICENSE +0 -21
- package/bin/kynjal.js +0 -27
- package/dist/commands/add.d.ts +0 -11
- package/dist/commands/add.js +0 -295
- package/dist/commands/convex.d.ts +0 -11
- package/dist/commands/convex.js +0 -319
- package/dist/commands/init.d.ts +0 -13
- package/dist/commands/init.js +0 -340
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -61
- package/dist/index.test.d.ts +0 -1
- package/dist/index.test.js +0 -6
- package/dist/registry/accordion.d.ts +0 -139
- package/dist/registry/accordion.js +0 -164
- package/dist/registry/accordion.ts +0 -183
- package/dist/registry/action-sheet.d.ts +0 -138
- package/dist/registry/action-sheet.js +0 -164
- package/dist/registry/action-sheet.ts +0 -182
- package/dist/registry/alert-dialog.d.ts +0 -71
- package/dist/registry/alert-dialog.js +0 -88
- package/dist/registry/alert-dialog.ts +0 -97
- package/dist/registry/alert.d.ts +0 -172
- package/dist/registry/alert.js +0 -204
- package/dist/registry/alert.ts +0 -225
- package/dist/registry/audio-player.d.ts +0 -139
- package/dist/registry/audio-player.js +0 -165
- package/dist/registry/audio-player.ts +0 -183
- package/dist/registry/audio-recorder.d.ts +0 -156
- package/dist/registry/audio-recorder.js +0 -184
- package/dist/registry/audio-recorder.ts +0 -203
- package/dist/registry/audio-waveform.d.ts +0 -121
- package/dist/registry/audio-waveform.js +0 -144
- package/dist/registry/audio-waveform.ts +0 -165
- package/dist/registry/avatar.d.ts +0 -139
- package/dist/registry/avatar.js +0 -164
- package/dist/registry/avatar.ts +0 -172
- package/dist/registry/avoid-keyboard.d.ts +0 -128
- package/dist/registry/avoid-keyboard.js +0 -150
- package/dist/registry/avoid-keyboard.ts +0 -165
- package/dist/registry/badge.d.ts +0 -139
- package/dist/registry/badge.js +0 -164
- package/dist/registry/badge.ts +0 -172
- package/dist/registry/bottom-sheet.d.ts +0 -156
- package/dist/registry/bottom-sheet.js +0 -184
- package/dist/registry/bottom-sheet.ts +0 -203
- package/dist/registry/button.d.ts +0 -173
- package/dist/registry/button.js +0 -209
- package/dist/registry/button.ts +0 -230
- package/dist/registry/camera-preview.d.ts +0 -37
- package/dist/registry/camera-preview.js +0 -56
- package/dist/registry/camera-preview.ts +0 -61
- package/dist/registry/camera.d.ts +0 -139
- package/dist/registry/camera.js +0 -168
- package/dist/registry/camera.ts +0 -185
- package/dist/registry/card.d.ts +0 -139
- package/dist/registry/card.js +0 -165
- package/dist/registry/card.ts +0 -173
- package/dist/registry/carousel.d.ts +0 -140
- package/dist/registry/carousel.js +0 -169
- package/dist/registry/carousel.ts +0 -186
- package/dist/registry/charts/area-chart.d.ts +0 -88
- package/dist/registry/charts/area-chart.js +0 -106
- package/dist/registry/charts/area-chart.ts +0 -117
- package/dist/registry/charts/bar-chart.d.ts +0 -71
- package/dist/registry/charts/bar-chart.js +0 -85
- package/dist/registry/charts/bar-chart.ts +0 -94
- package/dist/registry/charts/bubble-chart.d.ts +0 -88
- package/dist/registry/charts/bubble-chart.js +0 -109
- package/dist/registry/charts/bubble-chart.ts +0 -120
- package/dist/registry/charts/candlestick-chart.d.ts +0 -88
- package/dist/registry/charts/candlestick-chart.js +0 -109
- package/dist/registry/charts/candlestick-chart.ts +0 -125
- package/dist/registry/charts/chart-container.d.ts +0 -54
- package/dist/registry/charts/chart-container.js +0 -62
- package/dist/registry/charts/chart-container.ts +0 -71
- package/dist/registry/charts/column-chart.d.ts +0 -88
- package/dist/registry/charts/column-chart.js +0 -106
- package/dist/registry/charts/column-chart.ts +0 -117
- package/dist/registry/charts/doughnut-chart.d.ts +0 -88
- package/dist/registry/charts/doughnut-chart.js +0 -106
- package/dist/registry/charts/doughnut-chart.ts +0 -121
- package/dist/registry/charts/heatmap-chart.d.ts +0 -88
- package/dist/registry/charts/heatmap-chart.js +0 -106
- package/dist/registry/charts/heatmap-chart.ts +0 -117
- package/dist/registry/charts/index.d.ts +0 -1499
- package/dist/registry/charts/index.js +0 -38
- package/dist/registry/charts/index.ts +0 -39
- package/dist/registry/charts/line-chart.d.ts +0 -88
- package/dist/registry/charts/line-chart.js +0 -109
- package/dist/registry/charts/line-chart.ts +0 -120
- package/dist/registry/charts/pie-chart.d.ts +0 -88
- package/dist/registry/charts/pie-chart.js +0 -106
- package/dist/registry/charts/pie-chart.ts +0 -117
- package/dist/registry/charts/polar-area-chart.d.ts +0 -88
- package/dist/registry/charts/polar-area-chart.js +0 -106
- package/dist/registry/charts/polar-area-chart.ts +0 -121
- package/dist/registry/charts/progress-ring-chart.d.ts +0 -88
- package/dist/registry/charts/progress-ring-chart.js +0 -106
- package/dist/registry/charts/progress-ring-chart.ts +0 -121
- package/dist/registry/charts/radar-chart.d.ts +0 -88
- package/dist/registry/charts/radar-chart.js +0 -106
- package/dist/registry/charts/radar-chart.ts +0 -117
- package/dist/registry/charts/radial-bar-chart.d.ts +0 -88
- package/dist/registry/charts/radial-bar-chart.js +0 -106
- package/dist/registry/charts/radial-bar-chart.ts +0 -121
- package/dist/registry/charts/scatter-chart.d.ts +0 -88
- package/dist/registry/charts/scatter-chart.js +0 -106
- package/dist/registry/charts/scatter-chart.ts +0 -117
- package/dist/registry/charts/stacked-area-chart.d.ts +0 -88
- package/dist/registry/charts/stacked-area-chart.js +0 -106
- package/dist/registry/charts/stacked-area-chart.ts +0 -123
- package/dist/registry/charts/stacked-bar-chart.d.ts +0 -88
- package/dist/registry/charts/stacked-bar-chart.js +0 -109
- package/dist/registry/charts/stacked-bar-chart.ts +0 -125
- package/dist/registry/charts/treemap-chart.d.ts +0 -88
- package/dist/registry/charts/treemap-chart.js +0 -106
- package/dist/registry/charts/treemap-chart.ts +0 -117
- package/dist/registry/checkbox.d.ts +0 -122
- package/dist/registry/checkbox.js +0 -145
- package/dist/registry/checkbox.ts +0 -160
- package/dist/registry/collapsible.d.ts +0 -105
- package/dist/registry/collapsible.js +0 -125
- package/dist/registry/collapsible.ts +0 -137
- package/dist/registry/color-picker.d.ts +0 -156
- package/dist/registry/color-picker.js +0 -186
- package/dist/registry/color-picker.ts +0 -205
- package/dist/registry/combobox.d.ts +0 -139
- package/dist/registry/combobox.js +0 -158
- package/dist/registry/combobox.ts +0 -170
- package/dist/registry/date-picker.d.ts +0 -156
- package/dist/registry/date-picker.js +0 -190
- package/dist/registry/date-picker.ts +0 -209
- package/dist/registry/file-picker.d.ts +0 -139
- package/dist/registry/file-picker.js +0 -158
- package/dist/registry/file-picker.ts +0 -175
- package/dist/registry/gallery.d.ts +0 -122
- package/dist/registry/gallery.js +0 -144
- package/dist/registry/gallery.ts +0 -160
- package/dist/registry/hello-wave.d.ts +0 -37
- package/dist/registry/hello-wave.js +0 -44
- package/dist/registry/hello-wave.ts +0 -49
- package/dist/registry/hooks/index.d.ts +0 -60
- package/dist/registry/hooks/index.js +0 -75
- package/dist/registry/hooks/index.ts +0 -80
- package/dist/registry/icon.d.ts +0 -139
- package/dist/registry/icon.js +0 -164
- package/dist/registry/icon.ts +0 -173
- package/dist/registry/image.d.ts +0 -156
- package/dist/registry/image.js +0 -180
- package/dist/registry/image.ts +0 -191
- package/dist/registry/index.d.ts +0 -12
- package/dist/registry/index.js +0 -189
- package/dist/registry/index.ts +0 -209
- package/dist/registry/input-otp.d.ts +0 -155
- package/dist/registry/input-otp.js +0 -178
- package/dist/registry/input-otp.ts +0 -197
- package/dist/registry/input.d.ts +0 -164
- package/dist/registry/input.js +0 -192
- package/dist/registry/input.ts +0 -211
- package/dist/registry/link.d.ts +0 -139
- package/dist/registry/link.js +0 -164
- package/dist/registry/link.ts +0 -181
- package/dist/registry/media-picker.d.ts +0 -145
- package/dist/registry/media-picker.js +0 -175
- package/dist/registry/media-picker.ts +0 -192
- package/dist/registry/mode-toggle.d.ts +0 -37
- package/dist/registry/mode-toggle.js +0 -44
- package/dist/registry/mode-toggle.ts +0 -49
- package/dist/registry/onboarding.d.ts +0 -144
- package/dist/registry/onboarding.js +0 -164
- package/dist/registry/onboarding.ts +0 -181
- package/dist/registry/parallax-scrollview.d.ts +0 -125
- package/dist/registry/parallax-scrollview.js +0 -147
- package/dist/registry/parallax-scrollview.ts +0 -168
- package/dist/registry/picker.d.ts +0 -157
- package/dist/registry/picker.js +0 -178
- package/dist/registry/picker.ts +0 -198
- package/dist/registry/popover.d.ts +0 -139
- package/dist/registry/popover.js +0 -164
- package/dist/registry/popover.ts +0 -181
- package/dist/registry/progress.d.ts +0 -139
- package/dist/registry/progress.js +0 -159
- package/dist/registry/progress.ts +0 -172
- package/dist/registry/radio.d.ts +0 -139
- package/dist/registry/radio.js +0 -164
- package/dist/registry/radio.ts +0 -181
- package/dist/registry/schema/index.d.ts +0 -26
- package/dist/registry/schema/index.js +0 -1
- package/dist/registry/schema/index.ts +0 -28
- package/dist/registry/scroll-view.d.ts +0 -156
- package/dist/registry/scroll-view.js +0 -184
- package/dist/registry/scroll-view.ts +0 -203
- package/dist/registry/searchbar.d.ts +0 -139
- package/dist/registry/searchbar.js +0 -164
- package/dist/registry/searchbar.ts +0 -181
- package/dist/registry/separator.d.ts +0 -105
- package/dist/registry/separator.js +0 -124
- package/dist/registry/separator.ts +0 -130
- package/dist/registry/share.d.ts +0 -156
- package/dist/registry/share.js +0 -183
- package/dist/registry/share.ts +0 -202
- package/dist/registry/sheet.d.ts +0 -107
- package/dist/registry/sheet.js +0 -122
- package/dist/registry/sheet.ts +0 -135
- package/dist/registry/skeleton.d.ts +0 -122
- package/dist/registry/skeleton.js +0 -140
- package/dist/registry/skeleton.ts +0 -155
- package/dist/registry/spinner.d.ts +0 -156
- package/dist/registry/spinner.js +0 -184
- package/dist/registry/spinner.ts +0 -205
- package/dist/registry/switch.d.ts +0 -122
- package/dist/registry/switch.js +0 -139
- package/dist/registry/switch.ts +0 -154
- package/dist/registry/table.d.ts +0 -122
- package/dist/registry/table.js +0 -139
- package/dist/registry/table.ts +0 -154
- package/dist/registry/tabs.d.ts +0 -88
- package/dist/registry/tabs.js +0 -101
- package/dist/registry/tabs.ts +0 -112
- package/dist/registry/text.d.ts +0 -71
- package/dist/registry/text.js +0 -82
- package/dist/registry/text.ts +0 -87
- package/dist/registry/theme/index.d.ts +0 -35
- package/dist/registry/theme/index.js +0 -41
- package/dist/registry/theme/index.ts +0 -43
- package/dist/registry/toast.d.ts +0 -122
- package/dist/registry/toast.js +0 -148
- package/dist/registry/toast.ts +0 -164
- package/dist/registry/toggle.d.ts +0 -173
- package/dist/registry/toggle.js +0 -205
- package/dist/registry/toggle.ts +0 -225
- package/dist/registry/video.d.ts +0 -156
- package/dist/registry/video.js +0 -184
- package/dist/registry/video.ts +0 -203
- package/dist/registry/view.d.ts +0 -37
- package/dist/registry/view.js +0 -44
- package/dist/registry/view.ts +0 -47
- package/dist/templates/components/charts/area-chart.tsx +0 -38
- package/dist/templates/components/charts/bar-chart.tsx +0 -130
- package/dist/templates/components/charts/bubble-chart.tsx +0 -205
- package/dist/templates/components/charts/candlestick-chart.tsx +0 -178
- package/dist/templates/components/charts/chart-container.tsx +0 -47
- package/dist/templates/components/charts/column-chart.tsx +0 -130
- package/dist/templates/components/charts/doughnut-chart.tsx +0 -182
- package/dist/templates/components/charts/heatmap-chart.tsx +0 -253
- package/dist/templates/components/charts/line-chart.tsx +0 -349
- package/dist/templates/components/charts/pie-chart.tsx +0 -172
- package/dist/templates/components/charts/polar-area-chart.tsx +0 -185
- package/dist/templates/components/charts/progress-ring-chart.tsx +0 -161
- package/dist/templates/components/charts/radar-chart.tsx +0 -188
- package/dist/templates/components/charts/radial-bar-chart.tsx +0 -216
- package/dist/templates/components/charts/scatter-chart.tsx +0 -176
- package/dist/templates/components/charts/stacked-area-chart.tsx +0 -289
- package/dist/templates/components/charts/stacked-bar-chart.tsx +0 -311
- package/dist/templates/components/charts/treemap-chart.tsx +0 -273
- package/dist/templates/components/ui/accordion.tsx +0 -175
- package/dist/templates/components/ui/action-sheet.tsx +0 -408
- package/dist/templates/components/ui/alert-dialog.tsx +0 -195
- package/dist/templates/components/ui/alert.tsx +0 -208
- package/dist/templates/components/ui/audio-player.tsx +0 -300
- package/dist/templates/components/ui/audio-recorder.tsx +0 -476
- package/dist/templates/components/ui/audio-waveform.tsx +0 -292
- package/dist/templates/components/ui/avatar.tsx +0 -84
- package/dist/templates/components/ui/avoid-keyboard.tsx +0 -49
- package/dist/templates/components/ui/badge.tsx +0 -88
- package/dist/templates/components/ui/bottom-sheet.tsx +0 -352
- package/dist/templates/components/ui/button.tsx +0 -392
- package/dist/templates/components/ui/camera-preview.tsx +0 -410
- package/dist/templates/components/ui/camera.tsx +0 -1008
- package/dist/templates/components/ui/card.tsx +0 -110
- package/dist/templates/components/ui/carousel.tsx +0 -546
- package/dist/templates/components/ui/checkbox.tsx +0 -82
- package/dist/templates/components/ui/collapsible.tsx +0 -46
- package/dist/templates/components/ui/color-picker.tsx +0 -450
- package/dist/templates/components/ui/combobox.tsx +0 -624
- package/dist/templates/components/ui/date-picker.tsx +0 -1147
- package/dist/templates/components/ui/file-picker.tsx +0 -526
- package/dist/templates/components/ui/gallery.tsx +0 -871
- package/dist/templates/components/ui/hello-wave.tsx +0 -69
- package/dist/templates/components/ui/icon.tsx +0 -34
- package/dist/templates/components/ui/image.tsx +0 -174
- package/dist/templates/components/ui/input-otp.tsx +0 -302
- package/dist/templates/components/ui/input.tsx +0 -607
- package/dist/templates/components/ui/link.tsx +0 -143
- package/dist/templates/components/ui/media-picker.tsx +0 -548
- package/dist/templates/components/ui/mode-toggle.tsx +0 -55
- package/dist/templates/components/ui/onboarding.tsx +0 -357
- package/dist/templates/components/ui/parallax-scrollview.tsx +0 -85
- package/dist/templates/components/ui/picker.tsx +0 -476
- package/dist/templates/components/ui/popover.tsx +0 -450
- package/dist/templates/components/ui/progress.tsx +0 -159
- package/dist/templates/components/ui/radio.tsx +0 -133
- package/dist/templates/components/ui/scroll-view.tsx +0 -14
- package/dist/templates/components/ui/searchbar.tsx +0 -241
- package/dist/templates/components/ui/separator.tsx +0 -30
- package/dist/templates/components/ui/share.tsx +0 -304
- package/dist/templates/components/ui/sheet.tsx +0 -302
- package/dist/templates/components/ui/skeleton.tsx +0 -64
- package/dist/templates/components/ui/spinner.tsx +0 -462
- package/dist/templates/components/ui/switch.tsx +0 -78
- package/dist/templates/components/ui/table.tsx +0 -478
- package/dist/templates/components/ui/tabs.tsx +0 -500
- package/dist/templates/components/ui/text.tsx +0 -86
- package/dist/templates/components/ui/toast.tsx +0 -456
- package/dist/templates/components/ui/toggle.tsx +0 -347
- package/dist/templates/components/ui/video.tsx +0 -555
- package/dist/templates/components/ui/view.tsx +0 -14
- package/dist/templates/demo/accordion/accordion-controlled.tsx +0 -55
- package/dist/templates/demo/accordion/accordion-demo.tsx +0 -38
- package/dist/templates/demo/accordion/accordion-faq.tsx +0 -51
- package/dist/templates/demo/accordion/accordion-multiple.tsx +0 -51
- package/dist/templates/demo/accordion/accordion-non-collapsible.tsx +0 -51
- package/dist/templates/demo/accordion/accordion-single.tsx +0 -45
- package/dist/templates/demo/accordion/accordion-styled.tsx +0 -55
- package/dist/templates/demo/action-sheet/action-sheet-demo.tsx +0 -37
- package/dist/templates/demo/action-sheet/action-sheet-destructive.tsx +0 -44
- package/dist/templates/demo/action-sheet/action-sheet-disabled.tsx +0 -50
- package/dist/templates/demo/action-sheet/action-sheet-hook.tsx +0 -63
- package/dist/templates/demo/action-sheet/action-sheet-icons.tsx +0 -47
- package/dist/templates/demo/action-sheet/action-sheet-long.tsx +0 -105
- package/dist/templates/demo/action-sheet/action-sheet-styled.tsx +0 -52
- package/dist/templates/demo/alert/alert-advanced-demo.tsx +0 -132
- package/dist/templates/demo/alert/alert-confirm-demo.tsx +0 -20
- package/dist/templates/demo/alert/alert-custom-demo.tsx +0 -29
- package/dist/templates/demo/alert/alert-demo.tsx +0 -25
- package/dist/templates/demo/alert/alert-error-demo.tsx +0 -17
- package/dist/templates/demo/alert/alert-success-demo.tsx +0 -19
- package/dist/templates/demo/alert/alert-three-button-demo.tsx +0 -33
- package/dist/templates/demo/alert/alert-visual-demo.tsx +0 -22
- package/dist/templates/demo/alert/alert-visual-destructive-demo.tsx +0 -22
- package/dist/templates/demo/alert-dialog/alert-dialog-custom.tsx +0 -40
- package/dist/templates/demo/alert-dialog/alert-dialog-demo.tsx +0 -28
- package/dist/templates/demo/alert-dialog/alert-dialog-destructive.tsx +0 -30
- package/dist/templates/demo/audio-player/audio-player-autoplay.tsx +0 -22
- package/dist/templates/demo/audio-player/audio-player-demo.tsx +0 -21
- package/dist/templates/demo/audio-player/audio-player-minimal.tsx +0 -17
- package/dist/templates/demo/audio-player/audio-player-music.tsx +0 -158
- package/dist/templates/demo/audio-player/audio-player-progress.tsx +0 -17
- package/dist/templates/demo/audio-player/audio-player-styled.tsx +0 -32
- package/dist/templates/demo/audio-player/audio-player-waveform.tsx +0 -17
- package/dist/templates/demo/audio-recorder/audio-recorder-callbacks.tsx +0 -65
- package/dist/templates/demo/audio-recorder/audio-recorder-cloud.tsx +0 -67
- package/dist/templates/demo/audio-recorder/audio-recorder-demo.tsx +0 -27
- package/dist/templates/demo/audio-recorder/audio-recorder-hq.tsx +0 -24
- package/dist/templates/demo/audio-recorder/audio-recorder-interview.tsx +0 -98
- package/dist/templates/demo/audio-recorder/audio-recorder-minimal.tsx +0 -17
- package/dist/templates/demo/audio-recorder/audio-recorder-styled.tsx +0 -29
- package/dist/templates/demo/audio-recorder/audio-recorder-voice.tsx +0 -18
- package/dist/templates/demo/audio-waveform/audio-waveform-compact.tsx +0 -127
- package/dist/templates/demo/audio-waveform/audio-waveform-demo.tsx +0 -56
- package/dist/templates/demo/audio-waveform/audio-waveform-interactive.tsx +0 -114
- package/dist/templates/demo/audio-waveform/audio-waveform-realtime.tsx +0 -223
- package/dist/templates/demo/audio-waveform/audio-waveform-recording.tsx +0 -100
- package/dist/templates/demo/audio-waveform/audio-waveform-styled.tsx +0 -195
- package/dist/templates/demo/avatar/avatar-bordered.tsx +0 -64
- package/dist/templates/demo/avatar/avatar-demo.tsx +0 -13
- package/dist/templates/demo/avatar/avatar-fallback.tsx +0 -25
- package/dist/templates/demo/avatar/avatar-group.tsx +0 -76
- package/dist/templates/demo/avatar/avatar-sizes.tsx +0 -54
- package/dist/templates/demo/avatar/avatar-status.tsx +0 -76
- package/dist/templates/demo/avatar/avatar-styled.tsx +0 -64
- package/dist/templates/demo/avoid-keyboard/avoid-keyboard-chat.tsx +0 -176
- package/dist/templates/demo/avoid-keyboard/avoid-keyboard-demo.tsx +0 -37
- package/dist/templates/demo/avoid-keyboard/avoid-keyboard-duration.tsx +0 -62
- package/dist/templates/demo/avoid-keyboard/avoid-keyboard-form.tsx +0 -175
- package/dist/templates/demo/avoid-keyboard/avoid-keyboard-offset.tsx +0 -31
- package/dist/templates/demo/avoid-keyboard/avoid-keyboard-playground.tsx +0 -252
- package/dist/templates/demo/badge/badge-demo.tsx +0 -15
- package/dist/templates/demo/badge/badge-icons.tsx +0 -33
- package/dist/templates/demo/badge/badge-interactive.tsx +0 -81
- package/dist/templates/demo/badge/badge-notifications.tsx +0 -96
- package/dist/templates/demo/badge/badge-sizes.tsx +0 -104
- package/dist/templates/demo/badge/badge-status.tsx +0 -151
- package/dist/templates/demo/badge/badge-styled.tsx +0 -71
- package/dist/templates/demo/bottom-sheet/bottom-sheet-demo.tsx +0 -31
- package/dist/templates/demo/bottom-sheet/bottom-sheet-form.tsx +0 -72
- package/dist/templates/demo/bottom-sheet/bottom-sheet-list.tsx +0 -57
- package/dist/templates/demo/bottom-sheet/bottom-sheet-menu.tsx +0 -61
- package/dist/templates/demo/bottom-sheet/bottom-sheet-no-dismiss.tsx +0 -41
- package/dist/templates/demo/bottom-sheet/bottom-sheet-snap-points.tsx +0 -37
- package/dist/templates/demo/bottom-sheet/bottom-sheet-styled.tsx +0 -50
- package/dist/templates/demo/bottom-sheet/bottom-sheet-title.tsx +0 -32
- package/dist/templates/demo/button/button-animation.tsx +0 -28
- package/dist/templates/demo/button/button-custom.tsx +0 -52
- package/dist/templates/demo/button/button-demo.tsx +0 -8
- package/dist/templates/demo/button/button-disabled.tsx +0 -21
- package/dist/templates/demo/button/button-icon-only.tsx +0 -26
- package/dist/templates/demo/button/button-loading.tsx +0 -23
- package/dist/templates/demo/button/button-sizes.tsx +0 -19
- package/dist/templates/demo/button/button-variants.tsx +0 -33
- package/dist/templates/demo/button/button-with-icons.tsx +0 -23
- package/dist/templates/demo/camera/camera-custom-controls.tsx +0 -25
- package/dist/templates/demo/camera/camera-demo.tsx +0 -21
- package/dist/templates/demo/camera/camera-picture-only.tsx +0 -17
- package/dist/templates/demo/camera/camera-settings.tsx +0 -29
- package/dist/templates/demo/camera/camera-timer.tsx +0 -22
- package/dist/templates/demo/camera/camera-video.tsx +0 -25
- package/dist/templates/demo/camera/camera-zoom.tsx +0 -21
- package/dist/templates/demo/camera-preview/camera-preview-demo.tsx +0 -5
- package/dist/templates/demo/card/card-demo.tsx +0 -35
- package/dist/templates/demo/card/card-notification.tsx +0 -51
- package/dist/templates/demo/card/card-pricing.tsx +0 -115
- package/dist/templates/demo/card/card-simple.tsx +0 -16
- package/dist/templates/demo/card/card-stats.tsx +0 -33
- package/dist/templates/demo/card/card-with-form.tsx +0 -76
- package/dist/templates/demo/card/card-with-image.tsx +0 -43
- package/dist/templates/demo/carousel/carousel-arrows.tsx +0 -79
- package/dist/templates/demo/carousel/carousel-cards.tsx +0 -146
- package/dist/templates/demo/carousel/carousel-custom-width.tsx +0 -85
- package/dist/templates/demo/carousel/carousel-demo.tsx +0 -57
- package/dist/templates/demo/carousel/carousel-images.tsx +0 -83
- package/dist/templates/demo/carousel/carousel-manual.tsx +0 -215
- package/dist/templates/demo/carousel/carousel-no-indicators.tsx +0 -120
- package/dist/templates/demo/charts/area-chart/area-chart-demo.tsx +0 -33
- package/dist/templates/demo/charts/area-chart/area-chart-interactive.tsx +0 -36
- package/dist/templates/demo/charts/area-chart/area-chart-large.tsx +0 -41
- package/dist/templates/demo/charts/area-chart/area-chart-styled.tsx +0 -51
- package/dist/templates/demo/charts/bar-chart/bar-chart-demo.tsx +0 -31
- package/dist/templates/demo/charts/bar-chart/bar-chart-minimal.tsx +0 -26
- package/dist/templates/demo/charts/bar-chart/bar-chart-sample.tsx +0 -30
- package/dist/templates/demo/charts/bubble-chart/bubble-chart-demo.tsx +0 -34
- package/dist/templates/demo/charts/bubble-chart/bubble-chart-minimal.tsx +0 -26
- package/dist/templates/demo/charts/bubble-chart/bubble-chart-sample.tsx +0 -32
- package/dist/templates/demo/charts/bubble-chart/bubble-chart-styled.tsx +0 -39
- package/dist/templates/demo/charts/candlestick-chart/candlestick-chart-demo.tsx +0 -36
- package/dist/templates/demo/charts/candlestick-chart/candlestick-chart-minimal.tsx +0 -31
- package/dist/templates/demo/charts/candlestick-chart/candlestick-chart-sample.tsx +0 -34
- package/dist/templates/demo/charts/candlestick-chart/candlestick-chart-styled.tsx +0 -38
- package/dist/templates/demo/charts/chart-container/chart-container-demo.tsx +0 -30
- package/dist/templates/demo/charts/chart-container/chart-container-styled.tsx +0 -42
- package/dist/templates/demo/charts/column-chart/column-chart-demo.tsx +0 -31
- package/dist/templates/demo/charts/column-chart/column-chart-large.tsx +0 -42
- package/dist/templates/demo/charts/column-chart/column-chart-sample.tsx +0 -75
- package/dist/templates/demo/charts/column-chart/column-chart-styled.tsx +0 -37
- package/dist/templates/demo/charts/doughnut-chart/doughnut-chart-demo.tsx +0 -32
- package/dist/templates/demo/charts/doughnut-chart/doughnut-chart-large.tsx +0 -36
- package/dist/templates/demo/charts/doughnut-chart/doughnut-chart-sample.tsx +0 -40
- package/dist/templates/demo/charts/doughnut-chart/doughnut-chart-styled.tsx +0 -35
- package/dist/templates/demo/charts/heatmap-chart/heatmap-chart-demo.tsx +0 -41
- package/dist/templates/demo/charts/heatmap-chart/heatmap-chart-large.tsx +0 -66
- package/dist/templates/demo/charts/heatmap-chart/heatmap-chart-sample.tsx +0 -42
- package/dist/templates/demo/charts/heatmap-chart/heatmap-chart-styled.tsx +0 -43
- package/dist/templates/demo/charts/line-chart/line-chart-demo.tsx +0 -34
- package/dist/templates/demo/charts/line-chart/line-chart-interactive.tsx +0 -35
- package/dist/templates/demo/charts/line-chart/line-chart-minimal.tsx +0 -28
- package/dist/templates/demo/charts/line-chart/line-chart-styled.tsx +0 -51
- package/dist/templates/demo/charts/pie-chart/pie-chart-demo.tsx +0 -31
- package/dist/templates/demo/charts/pie-chart/pie-chart-large.tsx +0 -31
- package/dist/templates/demo/charts/pie-chart/pie-chart-sample.tsx +0 -29
- package/dist/templates/demo/charts/pie-chart/pie-chart-styled.tsx +0 -35
- package/dist/templates/demo/charts/polar-area-chart/polar-area-chart-demo.tsx +0 -31
- package/dist/templates/demo/charts/polar-area-chart/polar-area-chart-large.tsx +0 -37
- package/dist/templates/demo/charts/polar-area-chart/polar-area-chart-sample.tsx +0 -44
- package/dist/templates/demo/charts/polar-area-chart/polar-area-chart-styled.tsx +0 -37
- package/dist/templates/demo/charts/progress-ring-chart/progress-ring-chart-demo.tsx +0 -25
- package/dist/templates/demo/charts/progress-ring-chart/progress-ring-chart-large.tsx +0 -26
- package/dist/templates/demo/charts/progress-ring-chart/progress-ring-chart-sample.tsx +0 -26
- package/dist/templates/demo/charts/progress-ring-chart/progress-ring-chart-styled.tsx +0 -26
- package/dist/templates/demo/charts/radar-chart/radar-chart-demo.tsx +0 -31
- package/dist/templates/demo/charts/radar-chart/radar-chart-large.tsx +0 -36
- package/dist/templates/demo/charts/radar-chart/radar-chart-sample.tsx +0 -31
- package/dist/templates/demo/charts/radar-chart/radar-chart-styled.tsx +0 -41
- package/dist/templates/demo/charts/radial-bar-chart/radial-bar-chart-demo.tsx +0 -29
- package/dist/templates/demo/charts/radial-bar-chart/radial-bar-chart-gradient.tsx +0 -40
- package/dist/templates/demo/charts/radial-bar-chart/radial-bar-chart-large.tsx +0 -32
- package/dist/templates/demo/charts/radial-bar-chart/radial-bar-chart-sample.tsx +0 -37
- package/dist/templates/demo/charts/scatter-chart/scatter-chart-demo.tsx +0 -34
- package/dist/templates/demo/charts/scatter-chart/scatter-chart-large.tsx +0 -39
- package/dist/templates/demo/charts/scatter-chart/scatter-chart-sample.tsx +0 -36
- package/dist/templates/demo/charts/scatter-chart/scatter-chart-styled.tsx +0 -42
- package/dist/templates/demo/charts/stacked-area-chart/stacked-area-chart-demo.tsx +0 -35
- package/dist/templates/demo/charts/stacked-area-chart/stacked-area-chart-large.tsx +0 -63
- package/dist/templates/demo/charts/stacked-area-chart/stacked-area-chart-sample.tsx +0 -36
- package/dist/templates/demo/charts/stacked-area-chart/stacked-area-chart-styled.tsx +0 -44
- package/dist/templates/demo/charts/stacked-bar-chart/stacked-bar-chart-demo.tsx +0 -33
- package/dist/templates/demo/charts/stacked-bar-chart/stacked-bar-chart-horizontal.tsx +0 -35
- package/dist/templates/demo/charts/stacked-bar-chart/stacked-bar-chart-large.tsx +0 -42
- package/dist/templates/demo/charts/stacked-bar-chart/stacked-bar-chart-styled.tsx +0 -43
- package/dist/templates/demo/charts/treemap-chart/treemap-chart-demo.tsx +0 -31
- package/dist/templates/demo/charts/treemap-chart/treemap-chart-large.tsx +0 -41
- package/dist/templates/demo/charts/treemap-chart/treemap-chart-sample.tsx +0 -33
- package/dist/templates/demo/charts/treemap-chart/treemap-chart-styled.tsx +0 -32
- package/dist/templates/demo/checkbox/checkbox-custom-styling.tsx +0 -34
- package/dist/templates/demo/checkbox/checkbox-demo.tsx +0 -14
- package/dist/templates/demo/checkbox/checkbox-group.tsx +0 -44
- package/dist/templates/demo/checkbox/checkbox-states.tsx +0 -37
- package/dist/templates/demo/checkbox/checkbox-with-error.tsx +0 -24
- package/dist/templates/demo/checkbox/checkbox-without-label.tsx +0 -8
- package/dist/templates/demo/collapsible/collapsible-demo.tsx +0 -16
- package/dist/templates/demo/collapsible/collapsible-faq.tsx +0 -45
- package/dist/templates/demo/collapsible/collapsible-multiple.tsx +0 -34
- package/dist/templates/demo/collapsible/collapsible-nested.tsx +0 -39
- package/dist/templates/demo/collapsible/collapsible-with-content.tsx +0 -53
- package/dist/templates/demo/color-picker/color-picker-colors.tsx +0 -36
- package/dist/templates/demo/color-picker/color-picker-demo.tsx +0 -17
- package/dist/templates/demo/color-picker/color-picker-disabled.tsx +0 -15
- package/dist/templates/demo/color-picker/color-picker-labeled.tsx +0 -84
- package/dist/templates/demo/color-picker/color-picker-palette.tsx +0 -54
- package/dist/templates/demo/color-picker/color-picker-sizes.tsx +0 -39
- package/dist/templates/demo/color-picker/color-picker-styled.tsx +0 -52
- package/dist/templates/demo/color-picker/color-swatch-demo.tsx +0 -46
- package/dist/templates/demo/combobox/combobox-demo.tsx +0 -44
- package/dist/templates/demo/combobox/combobox-disabled.tsx +0 -44
- package/dist/templates/demo/combobox/combobox-form.tsx +0 -91
- package/dist/templates/demo/combobox/combobox-groups.tsx +0 -51
- package/dist/templates/demo/combobox/combobox-large.tsx +0 -89
- package/dist/templates/demo/combobox/combobox-multiple.tsx +0 -48
- package/dist/templates/demo/combobox/combobox-search.tsx +0 -67
- package/dist/templates/demo/date-picker/date-picker-constraints.tsx +0 -51
- package/dist/templates/demo/date-picker/date-picker-datetime.tsx +0 -17
- package/dist/templates/demo/date-picker/date-picker-demo.tsx +0 -15
- package/dist/templates/demo/date-picker/date-picker-form.tsx +0 -96
- package/dist/templates/demo/date-picker/date-picker-formats.tsx +0 -39
- package/dist/templates/demo/date-picker/date-picker-range.tsx +0 -16
- package/dist/templates/demo/date-picker/date-picker-time.tsx +0 -30
- package/dist/templates/demo/date-picker/date-picker-variants.tsx +0 -37
- package/dist/templates/demo/file-picker/file-picker-controlled.tsx +0 -134
- package/dist/templates/demo/file-picker/file-picker-demo.tsx +0 -16
- package/dist/templates/demo/file-picker/file-picker-images.tsx +0 -30
- package/dist/templates/demo/file-picker/file-picker-info.tsx +0 -192
- package/dist/templates/demo/file-picker/file-picker-single.tsx +0 -35
- package/dist/templates/demo/file-picker/file-picker-styled.tsx +0 -78
- package/dist/templates/demo/file-picker/file-picker-validation.tsx +0 -61
- package/dist/templates/demo/gallery/gallery-controls.tsx +0 -85
- package/dist/templates/demo/gallery/gallery-demo.tsx +0 -66
- package/dist/templates/demo/gallery/gallery-grid.tsx +0 -109
- package/dist/templates/demo/gallery/gallery-info.tsx +0 -70
- package/dist/templates/demo/gallery/gallery-layouts.tsx +0 -109
- package/dist/templates/demo/gallery/gallery-overlay.tsx +0 -89
- package/dist/templates/demo/hello-wave/hello-wave-demo.tsx +0 -6
- package/dist/templates/demo/icon/icon-colors.tsx +0 -39
- package/dist/templates/demo/icon/icon-demo.tsx +0 -7
- package/dist/templates/demo/icon/icon-grid.tsx +0 -69
- package/dist/templates/demo/icon/icon-interactive.tsx +0 -66
- package/dist/templates/demo/icon/icon-sizes.tsx +0 -23
- package/dist/templates/demo/icon/icon-stroke.tsx +0 -34
- package/dist/templates/demo/icon/icon-themed.tsx +0 -57
- package/dist/templates/demo/image/image-content-fit.tsx +0 -67
- package/dist/templates/demo/image/image-demo.tsx +0 -12
- package/dist/templates/demo/image/image-error.tsx +0 -50
- package/dist/templates/demo/image/image-gallery.tsx +0 -65
- package/dist/templates/demo/image/image-loading.tsx +0 -50
- package/dist/templates/demo/image/image-responsive.tsx +0 -53
- package/dist/templates/demo/image/image-sizes.tsx +0 -54
- package/dist/templates/demo/image/image-variants.tsx +0 -46
- package/dist/templates/demo/input/input-demo.tsx +0 -9
- package/dist/templates/demo/input/input-disabled.tsx +0 -18
- package/dist/templates/demo/input/input-form.tsx +0 -159
- package/dist/templates/demo/input/input-grouped.tsx +0 -28
- package/dist/templates/demo/input/input-icons.tsx +0 -30
- package/dist/templates/demo/input/input-right-components.tsx +0 -65
- package/dist/templates/demo/input/input-validation.tsx +0 -39
- package/dist/templates/demo/input/input-variants.tsx +0 -23
- package/dist/templates/demo/input-otp/input-otp-demo.tsx +0 -17
- package/dist/templates/demo/input-otp/input-otp-disabled.tsx +0 -40
- package/dist/templates/demo/input-otp/input-otp-error.tsx +0 -71
- package/dist/templates/demo/input-otp/input-otp-lengths.tsx +0 -25
- package/dist/templates/demo/input-otp/input-otp-masked.tsx +0 -42
- package/dist/templates/demo/input-otp/input-otp-no-cursor.tsx +0 -39
- package/dist/templates/demo/input-otp/input-otp-separator.tsx +0 -61
- package/dist/templates/demo/input-otp/input-otp-styled.tsx +0 -67
- package/dist/templates/demo/link/link-browser.tsx +0 -36
- package/dist/templates/demo/link/link-buttons.tsx +0 -65
- package/dist/templates/demo/link/link-custom.tsx +0 -42
- package/dist/templates/demo/link/link-demo.tsx +0 -13
- package/dist/templates/demo/link/link-external.tsx +0 -13
- package/dist/templates/demo/link/link-styled.tsx +0 -72
- package/dist/templates/demo/link/link-types.tsx +0 -45
- package/dist/templates/demo/media-picker/media-picker-demo.tsx +0 -16
- package/dist/templates/demo/media-picker/media-picker-gallery.tsx +0 -21
- package/dist/templates/demo/media-picker/media-picker-images.tsx +0 -17
- package/dist/templates/demo/media-picker/media-picker-multiple.tsx +0 -31
- package/dist/templates/demo/media-picker/media-picker-preview.tsx +0 -39
- package/dist/templates/demo/media-picker/media-picker-quality.tsx +0 -62
- package/dist/templates/demo/media-picker/media-picker-videos.tsx +0 -17
- package/dist/templates/demo/mode-toggle/mode-toggle-demo.tsx +0 -6
- package/dist/templates/demo/onboarding/onboarding-custom-buttons.tsx +0 -41
- package/dist/templates/demo/onboarding/onboarding-demo.tsx +0 -114
- package/dist/templates/demo/onboarding/onboarding-hook.tsx +0 -97
- package/dist/templates/demo/onboarding/onboarding-images.tsx +0 -70
- package/dist/templates/demo/onboarding/onboarding-no-skip.tsx +0 -62
- package/dist/templates/demo/onboarding/onboarding-no-swipe.tsx +0 -68
- package/dist/templates/demo/onboarding/onboarding-styled.tsx +0 -70
- package/dist/templates/demo/parallax-scrollview/parallax-scrollview-article.tsx +0 -180
- package/dist/templates/demo/parallax-scrollview/parallax-scrollview-custom-height.tsx +0 -44
- package/dist/templates/demo/parallax-scrollview/parallax-scrollview-demo.tsx +0 -39
- package/dist/templates/demo/parallax-scrollview/parallax-scrollview-gradient.tsx +0 -77
- package/dist/templates/demo/parallax-scrollview/parallax-scrollview-product.tsx +0 -181
- package/dist/templates/demo/parallax-scrollview/parallax-scrollview-profile.tsx +0 -144
- package/dist/templates/demo/picker/picker-advanced.tsx +0 -82
- package/dist/templates/demo/picker/picker-demo.tsx +0 -22
- package/dist/templates/demo/picker/picker-form.tsx +0 -81
- package/dist/templates/demo/picker/picker-multiple.tsx +0 -26
- package/dist/templates/demo/picker/picker-searchable.tsx +0 -31
- package/dist/templates/demo/picker/picker-sections.tsx +0 -35
- package/dist/templates/demo/picker/picker-styled.tsx +0 -63
- package/dist/templates/demo/picker/picker-variants.tsx +0 -60
- package/dist/templates/demo/popover/popover-alignment.tsx +0 -92
- package/dist/templates/demo/popover/popover-controlled.tsx +0 -53
- package/dist/templates/demo/popover/popover-custom.tsx +0 -79
- package/dist/templates/demo/popover/popover-demo.tsx +0 -39
- package/dist/templates/demo/popover/popover-form.tsx +0 -78
- package/dist/templates/demo/popover/popover-menu.tsx +0 -143
- package/dist/templates/demo/popover/popover-positioning.tsx +0 -62
- package/dist/templates/demo/progress/progress-animated.tsx +0 -71
- package/dist/templates/demo/progress/progress-demo.tsx +0 -6
- package/dist/templates/demo/progress/progress-heights.tsx +0 -35
- package/dist/templates/demo/progress/progress-interactive.tsx +0 -28
- package/dist/templates/demo/progress/progress-labels.tsx +0 -58
- package/dist/templates/demo/progress/progress-media.tsx +0 -120
- package/dist/templates/demo/progress/progress-steps.tsx +0 -137
- package/dist/templates/demo/radio/radio-demo.tsx +0 -18
- package/dist/templates/demo/radio/radio-disabled.tsx +0 -47
- package/dist/templates/demo/radio/radio-form.tsx +0 -82
- package/dist/templates/demo/radio/radio-horizontal.tsx +0 -19
- package/dist/templates/demo/radio/radio-large.tsx +0 -27
- package/dist/templates/demo/radio/radio-single.tsx +0 -36
- package/dist/templates/demo/radio/radio-styled.tsx +0 -77
- package/dist/templates/demo/scroll-view/scroll-view-demo.tsx +0 -37
- package/dist/templates/demo/scroll-view/scroll-view-horizontal.tsx +0 -57
- package/dist/templates/demo/scroll-view/scroll-view-indicators.tsx +0 -91
- package/dist/templates/demo/scroll-view/scroll-view-inset.tsx +0 -116
- package/dist/templates/demo/scroll-view/scroll-view-nested.tsx +0 -85
- package/dist/templates/demo/scroll-view/scroll-view-refresh.tsx +0 -81
- package/dist/templates/demo/scroll-view/scroll-view-styled.tsx +0 -91
- package/dist/templates/demo/scroll-view/scroll-view-vertical.tsx +0 -50
- package/dist/templates/demo/searchbar/searchbar-demo.tsx +0 -19
- package/dist/templates/demo/searchbar/searchbar-icons.tsx +0 -36
- package/dist/templates/demo/searchbar/searchbar-instant.tsx +0 -58
- package/dist/templates/demo/searchbar/searchbar-loading.tsx +0 -28
- package/dist/templates/demo/searchbar/searchbar-no-clear.tsx +0 -20
- package/dist/templates/demo/searchbar/searchbar-styled.tsx +0 -65
- package/dist/templates/demo/searchbar/searchbar-suggestions.tsx +0 -40
- package/dist/templates/demo/separator/separator-colors.tsx +0 -35
- package/dist/templates/demo/separator/separator-demo.tsx +0 -14
- package/dist/templates/demo/separator/separator-spacing.tsx +0 -26
- package/dist/templates/demo/separator/separator-thickness.tsx +0 -30
- package/dist/templates/demo/separator/separator-vertical.tsx +0 -21
- package/dist/templates/demo/share/share-callbacks.tsx +0 -61
- package/dist/templates/demo/share/share-custom-content.tsx +0 -53
- package/dist/templates/demo/share/share-demo.tsx +0 -22
- package/dist/templates/demo/share/share-hook.tsx +0 -71
- package/dist/templates/demo/share/share-icon-only.tsx +0 -42
- package/dist/templates/demo/share/share-sizes.tsx +0 -28
- package/dist/templates/demo/share/share-url-only.tsx +0 -24
- package/dist/templates/demo/share/share-variants.tsx +0 -38
- package/dist/templates/demo/sheet/sheet-demo.tsx +0 -38
- package/dist/templates/demo/sheet/sheet-filter.tsx +0 -191
- package/dist/templates/demo/sheet/sheet-form.tsx +0 -170
- package/dist/templates/demo/sheet/sheet-left.tsx +0 -39
- package/dist/templates/demo/sheet/sheet-navigation.tsx +0 -111
- package/dist/templates/demo/skeleton/skeleton-card.tsx +0 -39
- package/dist/templates/demo/skeleton/skeleton-demo.tsx +0 -6
- package/dist/templates/demo/skeleton/skeleton-list.tsx +0 -34
- package/dist/templates/demo/skeleton/skeleton-profile.tsx +0 -53
- package/dist/templates/demo/skeleton/skeleton-shapes.tsx +0 -44
- package/dist/templates/demo/skeleton/skeleton-sizes.tsx +0 -14
- package/dist/templates/demo/spinner/spinner-colors.tsx +0 -27
- package/dist/templates/demo/spinner/spinner-demo.tsx +0 -6
- package/dist/templates/demo/spinner/spinner-inline.tsx +0 -25
- package/dist/templates/demo/spinner/spinner-labels.tsx +0 -14
- package/dist/templates/demo/spinner/spinner-overlay.tsx +0 -31
- package/dist/templates/demo/spinner/spinner-sizes.tsx +0 -26
- package/dist/templates/demo/spinner/spinner-speeds.tsx +0 -25
- package/dist/templates/demo/spinner/spinner-variants.tsx +0 -27
- package/dist/templates/demo/switch/switch-colors.tsx +0 -33
- package/dist/templates/demo/switch/switch-demo.tsx +0 -14
- package/dist/templates/demo/switch/switch-disabled.tsx +0 -20
- package/dist/templates/demo/switch/switch-error.tsx +0 -24
- package/dist/templates/demo/switch/switch-settings.tsx +0 -42
- package/dist/templates/demo/switch/switch-simple.tsx +0 -8
- package/dist/templates/demo/table/table-custom-cells.tsx +0 -153
- package/dist/templates/demo/table/table-demo.tsx +0 -90
- package/dist/templates/demo/table/table-loading.tsx +0 -84
- package/dist/templates/demo/table/table-pagination.tsx +0 -114
- package/dist/templates/demo/table/table-search.tsx +0 -168
- package/dist/templates/demo/table/table-sortable.tsx +0 -119
- package/dist/templates/demo/tabs/tabs-demo.tsx +0 -85
- package/dist/templates/demo/tabs/tabs-disabled.tsx +0 -61
- package/dist/templates/demo/tabs/tabs-styled.tsx +0 -105
- package/dist/templates/demo/tabs/tabs-vertical.tsx +0 -61
- package/dist/templates/demo/text/text-colors.tsx +0 -40
- package/dist/templates/demo/text/text-demo.tsx +0 -19
- package/dist/templates/demo/text/text-variants.tsx +0 -60
- package/dist/templates/demo/toast/toast-actions.tsx +0 -51
- package/dist/templates/demo/toast/toast-compact.tsx +0 -66
- package/dist/templates/demo/toast/toast-demo.tsx +0 -18
- package/dist/templates/demo/toast/toast-duration.tsx +0 -68
- package/dist/templates/demo/toast/toast-multiple.tsx +0 -65
- package/dist/templates/demo/toast/toast-variants.tsx +0 -45
- package/dist/templates/demo/toggle/toggle-demo.tsx +0 -13
- package/dist/templates/demo/toggle/toggle-disabled.tsx +0 -23
- package/dist/templates/demo/toggle/toggle-group-multiple.tsx +0 -22
- package/dist/templates/demo/toggle/toggle-group-outline.tsx +0 -23
- package/dist/templates/demo/toggle/toggle-group-single.tsx +0 -22
- package/dist/templates/demo/toggle/toggle-group-vertical.tsx +0 -23
- package/dist/templates/demo/toggle/toggle-sizes.tsx +0 -20
- package/dist/templates/demo/toggle/toggle-text.tsx +0 -28
- package/dist/templates/demo/toggle/toggle-variants.tsx +0 -44
- package/dist/templates/demo/video/video-autoplay-loop.tsx +0 -22
- package/dist/templates/demo/video/video-content-fit.tsx +0 -47
- package/dist/templates/demo/video/video-custom-controls.tsx +0 -28
- package/dist/templates/demo/video/video-demo.tsx +0 -20
- package/dist/templates/demo/video/video-gestures.tsx +0 -34
- package/dist/templates/demo/video/video-native-controls.tsx +0 -20
- package/dist/templates/demo/video/video-sources.tsx +0 -39
- package/dist/templates/demo/video/video-subtitles.tsx +0 -29
- package/dist/templates/demo/view/view-demo.tsx +0 -17
- package/dist/templates/hooks/useBottomTabOverflow.ts +0 -6
- package/dist/templates/hooks/useColor.ts +0 -16
- package/dist/templates/hooks/useColorScheme.ts +0 -1
- package/dist/templates/hooks/useColorScheme.web.ts +0 -21
- package/dist/templates/hooks/useKeyboardHeight.ts +0 -131
- package/dist/templates/hooks/useModeToggle.tsx +0 -50
- package/dist/templates/hooks/useThemeColor.ts +0 -21
- package/dist/templates/start/README.md +0 -198
- package/dist/templates/start/app/(tabs)/(home)/_layout.tsx +0 -43
- package/dist/templates/start/app/(tabs)/(home)/index.tsx +0 -96
- package/dist/templates/start/app/(tabs)/_layout.tsx +0 -68
- package/dist/templates/start/app/(tabs)/_layout.web.tsx +0 -48
- package/dist/templates/start/app/(tabs)/search/_layout.tsx +0 -60
- package/dist/templates/start/app/(tabs)/search/index.tsx +0 -44
- package/dist/templates/start/app/(tabs)/settings/_layout.tsx +0 -42
- package/dist/templates/start/app/(tabs)/settings/index.tsx +0 -105
- package/dist/templates/start/app/+not-found.tsx +0 -24
- package/dist/templates/start/app/_layout.tsx +0 -90
- package/dist/templates/start/app/sheet.tsx +0 -1
- package/dist/templates/start/app.json +0 -50
- package/dist/templates/start/assets/images/icon.png +0 -0
- package/dist/templates/start/assets/images/splash.png +0 -0
- package/dist/templates/start/components/sheet.tsx +0 -79
- package/dist/templates/start/components/ui/avoid-keyboard.tsx +0 -49
- package/dist/templates/start/components/ui/button.tsx +0 -392
- package/dist/templates/start/components/ui/card.tsx +0 -110
- package/dist/templates/start/components/ui/icon.tsx +0 -34
- package/dist/templates/start/components/ui/input-otp.tsx +0 -302
- package/dist/templates/start/components/ui/input.tsx +0 -607
- package/dist/templates/start/components/ui/link.tsx +0 -143
- package/dist/templates/start/components/ui/mode-toggle.tsx +0 -55
- package/dist/templates/start/components/ui/scroll-view.tsx +0 -14
- package/dist/templates/start/components/ui/spinner.tsx +0 -462
- package/dist/templates/start/components/ui/tabs.tsx +0 -500
- package/dist/templates/start/components/ui/text.tsx +0 -86
- package/dist/templates/start/components/ui/view.tsx +0 -14
- package/dist/templates/start/eslint.config.js +0 -10
- package/dist/templates/start/hooks/useColor.ts +0 -16
- package/dist/templates/start/hooks/useColorScheme.ts +0 -1
- package/dist/templates/start/hooks/useColorScheme.web.ts +0 -21
- package/dist/templates/start/hooks/useKeyboardHeight.ts +0 -131
- package/dist/templates/start/hooks/useModeToggle.tsx +0 -88
- package/dist/templates/start/package.json +0 -58
- package/dist/templates/start/providers/search-context.tsx +0 -26
- package/dist/templates/start/theme/colors.ts +0 -184
- package/dist/templates/start/theme/globals.ts +0 -4
- package/dist/templates/start/theme/theme-provider.tsx +0 -59
- package/dist/templates/start/tsconfig.json +0 -17
- package/dist/templates/start-convex/README.md +0 -213
- package/dist/templates/start-convex/app/(tabs)/(home)/_layout.tsx +0 -43
- package/dist/templates/start-convex/app/(tabs)/(home)/index.tsx +0 -96
- package/dist/templates/start-convex/app/(tabs)/_layout.tsx +0 -68
- package/dist/templates/start-convex/app/(tabs)/_layout.web.tsx +0 -48
- package/dist/templates/start-convex/app/(tabs)/search/_layout.tsx +0 -60
- package/dist/templates/start-convex/app/(tabs)/search/index.tsx +0 -44
- package/dist/templates/start-convex/app/(tabs)/settings/_layout.tsx +0 -42
- package/dist/templates/start-convex/app/(tabs)/settings/index.tsx +0 -49
- package/dist/templates/start-convex/app/+not-found.tsx +0 -24
- package/dist/templates/start-convex/app/_layout.tsx +0 -136
- package/dist/templates/start-convex/app/sheet.tsx +0 -1
- package/dist/templates/start-convex/app.json +0 -51
- package/dist/templates/start-convex/assets/images/icon.png +0 -0
- package/dist/templates/start-convex/assets/images/splash.png +0 -0
- package/dist/templates/start-convex/components/auth/apple.tsx +0 -60
- package/dist/templates/start-convex/components/auth/auth.tsx +0 -127
- package/dist/templates/start-convex/components/auth/email-otp.tsx +0 -186
- package/dist/templates/start-convex/components/auth/google.tsx +0 -60
- package/dist/templates/start-convex/components/auth/password.tsx +0 -335
- package/dist/templates/start-convex/components/auth/singout.tsx +0 -36
- package/dist/templates/start-convex/components/sheet.tsx +0 -79
- package/dist/templates/start-convex/components/ui/avoid-keyboard.tsx +0 -49
- package/dist/templates/start-convex/components/ui/button.tsx +0 -392
- package/dist/templates/start-convex/components/ui/card.tsx +0 -110
- package/dist/templates/start-convex/components/ui/icon.tsx +0 -34
- package/dist/templates/start-convex/components/ui/input-otp.tsx +0 -302
- package/dist/templates/start-convex/components/ui/input.tsx +0 -607
- package/dist/templates/start-convex/components/ui/link.tsx +0 -143
- package/dist/templates/start-convex/components/ui/mode-toggle.tsx +0 -55
- package/dist/templates/start-convex/components/ui/scroll-view.tsx +0 -14
- package/dist/templates/start-convex/components/ui/spinner.tsx +0 -462
- package/dist/templates/start-convex/components/ui/tabs.tsx +0 -500
- package/dist/templates/start-convex/components/ui/text.tsx +0 -86
- package/dist/templates/start-convex/components/ui/view.tsx +0 -14
- package/dist/templates/start-convex/convex/README.md +0 -90
- package/dist/templates/start-convex/convex/_generated/api.d.ts +0 -61
- package/dist/templates/start-convex/convex/_generated/api.js +0 -23
- package/dist/templates/start-convex/convex/_generated/dataModel.d.ts +0 -60
- package/dist/templates/start-convex/convex/_generated/server.d.ts +0 -143
- package/dist/templates/start-convex/convex/_generated/server.js +0 -93
- package/dist/templates/start-convex/convex/auth.config.ts +0 -8
- package/dist/templates/start-convex/convex/auth.ts +0 -112
- package/dist/templates/start-convex/convex/http.ts +0 -8
- package/dist/templates/start-convex/convex/passwordReset.ts +0 -69
- package/dist/templates/start-convex/convex/resendOTP.ts +0 -60
- package/dist/templates/start-convex/convex/resendPasswordOTP.ts +0 -64
- package/dist/templates/start-convex/convex/router.ts +0 -5
- package/dist/templates/start-convex/convex/schema.ts +0 -23
- package/dist/templates/start-convex/convex/tsconfig.json +0 -25
- package/dist/templates/start-convex/convex/users.ts +0 -111
- package/dist/templates/start-convex/eslint.config.js +0 -10
- package/dist/templates/start-convex/hooks/useColor.ts +0 -16
- package/dist/templates/start-convex/hooks/useColorScheme.ts +0 -1
- package/dist/templates/start-convex/hooks/useColorScheme.web.ts +0 -21
- package/dist/templates/start-convex/hooks/useKeyboardHeight.ts +0 -131
- package/dist/templates/start-convex/hooks/useModeToggle.tsx +0 -88
- package/dist/templates/start-convex/package.json +0 -64
- package/dist/templates/start-convex/providers/search-context.tsx +0 -26
- package/dist/templates/start-convex/theme/colors.ts +0 -184
- package/dist/templates/start-convex/theme/globals.ts +0 -4
- package/dist/templates/start-convex/theme/theme-provider.tsx +0 -59
- package/dist/templates/start-convex/tsconfig.json +0 -17
- package/dist/templates/theme/colors.ts +0 -205
- package/dist/templates/theme/globals.ts +0 -4
- package/dist/templates/theme/theme-provider.tsx +0 -52
- package/dist/utils/dependencies.d.ts +0 -7
- package/dist/utils/dependencies.js +0 -109
- package/dist/utils/filesystem.d.ts +0 -6
- package/dist/utils/filesystem.js +0 -72
- package/dist/utils/git.d.ts +0 -2
- package/dist/utils/git.js +0 -33
- package/dist/utils/logger.d.ts +0 -11
- package/dist/utils/logger.js +0 -43
- package/dist/utils/package-manager.d.ts +0 -8
- package/dist/utils/package-manager.js +0 -128
- package/dist/utils/project-config.d.ts +0 -2
- package/dist/utils/project-config.js +0 -46
- package/dist/utils/registry.d.ts +0 -17
- package/dist/utils/registry.js +0 -181
- package/dist/utils/validation.d.ts +0 -16
- package/dist/utils/validation.js +0 -84
|
@@ -0,0 +1,1757 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Init Executor
|
|
3
|
+
* Main execution logic for V3 initialization
|
|
4
|
+
*/
|
|
5
|
+
import * as fs from 'fs';
|
|
6
|
+
import * as path from 'path';
|
|
7
|
+
import { fileURLToPath } from 'url';
|
|
8
|
+
import { createRequire } from 'module';
|
|
9
|
+
import { dirname } from 'path';
|
|
10
|
+
// ESM-compatible __dirname
|
|
11
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
12
|
+
const __dirname = dirname(__filename);
|
|
13
|
+
import { detectPlatform, DEFAULT_INIT_OPTIONS } from './types.js';
|
|
14
|
+
import { generateSettingsJson, generateSettings } from './settings-generator.js';
|
|
15
|
+
import { generateMCPJson } from './mcp-generator.js';
|
|
16
|
+
import { generateStatuslineScript } from './statusline-generator.js';
|
|
17
|
+
import { generatePreCommitHook, generatePostCommitHook, generateSessionManager, generateAgentRouter, generateMemoryHelper, generateHookHandler, generateIntelligenceStub, generateAutoMemoryHook, } from './helpers-generator.js';
|
|
18
|
+
import { generateClaudeMd } from './claudemd-generator.js';
|
|
19
|
+
/**
|
|
20
|
+
* Skills to copy based on configuration
|
|
21
|
+
*/
|
|
22
|
+
const SKILLS_MAP = {
|
|
23
|
+
core: [
|
|
24
|
+
'swarm-orchestration',
|
|
25
|
+
'swarm-advanced',
|
|
26
|
+
'sparc-methodology',
|
|
27
|
+
'hooks-automation',
|
|
28
|
+
'pair-programming',
|
|
29
|
+
'verification-quality',
|
|
30
|
+
'stream-chain',
|
|
31
|
+
'skill-builder',
|
|
32
|
+
],
|
|
33
|
+
browser: ['browser'], // agent-browser integration
|
|
34
|
+
dualMode: ['dual-mode'], // Claude Code + Codex hybrid execution
|
|
35
|
+
agentdb: [
|
|
36
|
+
'agentdb-advanced',
|
|
37
|
+
'agentdb-learning',
|
|
38
|
+
'agentdb-memory-patterns',
|
|
39
|
+
'agentdb-optimization',
|
|
40
|
+
'agentdb-vector-search',
|
|
41
|
+
'reasoningbank-agentdb',
|
|
42
|
+
'reasoningbank-intelligence',
|
|
43
|
+
],
|
|
44
|
+
github: [
|
|
45
|
+
'github-code-review',
|
|
46
|
+
'github-multi-repo',
|
|
47
|
+
'github-project-management',
|
|
48
|
+
'github-release-management',
|
|
49
|
+
'github-workflow-automation',
|
|
50
|
+
],
|
|
51
|
+
flowNexus: [
|
|
52
|
+
'flow-nexus-neural',
|
|
53
|
+
'flow-nexus-platform',
|
|
54
|
+
'flow-nexus-swarm',
|
|
55
|
+
],
|
|
56
|
+
v3: [
|
|
57
|
+
'v3-cli-modernization',
|
|
58
|
+
'v3-core-implementation',
|
|
59
|
+
'v3-ddd-architecture',
|
|
60
|
+
'v3-integration-deep',
|
|
61
|
+
'v3-mcp-optimization',
|
|
62
|
+
'v3-memory-unification',
|
|
63
|
+
'v3-performance-optimization',
|
|
64
|
+
'v3-security-overhaul',
|
|
65
|
+
'v3-swarm-coordination',
|
|
66
|
+
],
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* Commands to copy based on configuration
|
|
70
|
+
*/
|
|
71
|
+
const COMMANDS_MAP = {
|
|
72
|
+
core: ['claude-flow-help.md', 'claude-flow-swarm.md', 'claude-flow-memory.md'],
|
|
73
|
+
analysis: ['analysis'],
|
|
74
|
+
automation: ['automation'],
|
|
75
|
+
github: ['github'],
|
|
76
|
+
hooks: ['hooks'],
|
|
77
|
+
monitoring: ['monitoring'],
|
|
78
|
+
optimization: ['optimization'],
|
|
79
|
+
sparc: ['sparc'],
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* Agents to copy based on configuration
|
|
83
|
+
*/
|
|
84
|
+
const AGENTS_MAP = {
|
|
85
|
+
core: ['core'],
|
|
86
|
+
consensus: ['consensus'],
|
|
87
|
+
github: ['github'],
|
|
88
|
+
hiveMind: ['hive-mind'],
|
|
89
|
+
sparc: ['sparc'],
|
|
90
|
+
swarm: ['swarm'],
|
|
91
|
+
browser: ['browser'], // agent-browser integration
|
|
92
|
+
dualMode: ['dual-mode'], // Claude Code + Codex hybrid execution
|
|
93
|
+
// V3-specific agents
|
|
94
|
+
v3: ['v3'],
|
|
95
|
+
optimization: ['optimization'],
|
|
96
|
+
templates: ['templates'],
|
|
97
|
+
testing: ['testing'],
|
|
98
|
+
sublinear: ['sublinear'],
|
|
99
|
+
flowNexus: ['flow-nexus'],
|
|
100
|
+
analysis: ['analysis'],
|
|
101
|
+
architecture: ['architecture'],
|
|
102
|
+
development: ['development'],
|
|
103
|
+
devops: ['devops'],
|
|
104
|
+
documentation: ['documentation'],
|
|
105
|
+
specialized: ['specialized'],
|
|
106
|
+
goal: ['goal'],
|
|
107
|
+
sona: ['sona'],
|
|
108
|
+
payments: ['payments'],
|
|
109
|
+
data: ['data'],
|
|
110
|
+
custom: ['custom'],
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* Directory structure to create
|
|
114
|
+
*/
|
|
115
|
+
const DIRECTORIES = {
|
|
116
|
+
claude: [
|
|
117
|
+
'.claude',
|
|
118
|
+
'.claude/skills',
|
|
119
|
+
'.claude/commands',
|
|
120
|
+
'.claude/agents',
|
|
121
|
+
'.claude/helpers',
|
|
122
|
+
],
|
|
123
|
+
runtime: [
|
|
124
|
+
'.claude-flow',
|
|
125
|
+
'.claude-flow/data',
|
|
126
|
+
'.claude-flow/logs',
|
|
127
|
+
'.claude-flow/sessions',
|
|
128
|
+
'.claude-flow/hooks',
|
|
129
|
+
'.claude-flow/agents',
|
|
130
|
+
'.claude-flow/workflows',
|
|
131
|
+
],
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* Execute initialization
|
|
135
|
+
*/
|
|
136
|
+
export async function executeInit(options) {
|
|
137
|
+
// Detect platform
|
|
138
|
+
const platform = detectPlatform();
|
|
139
|
+
const result = {
|
|
140
|
+
success: true,
|
|
141
|
+
platform,
|
|
142
|
+
created: {
|
|
143
|
+
directories: [],
|
|
144
|
+
files: [],
|
|
145
|
+
},
|
|
146
|
+
skipped: [],
|
|
147
|
+
errors: [],
|
|
148
|
+
summary: {
|
|
149
|
+
skillsCount: 0,
|
|
150
|
+
commandsCount: 0,
|
|
151
|
+
agentsCount: 0,
|
|
152
|
+
hooksEnabled: 0,
|
|
153
|
+
},
|
|
154
|
+
};
|
|
155
|
+
const targetDir = options.targetDir;
|
|
156
|
+
try {
|
|
157
|
+
// Create directory structure
|
|
158
|
+
await createDirectories(targetDir, options, result);
|
|
159
|
+
// Generate and write settings.json
|
|
160
|
+
if (options.components.settings) {
|
|
161
|
+
await writeSettings(targetDir, options, result);
|
|
162
|
+
}
|
|
163
|
+
// Generate and write .mcp.json
|
|
164
|
+
if (options.components.mcp) {
|
|
165
|
+
await writeMCPConfig(targetDir, options, result);
|
|
166
|
+
}
|
|
167
|
+
// Copy skills
|
|
168
|
+
if (options.components.skills) {
|
|
169
|
+
await copySkills(targetDir, options, result);
|
|
170
|
+
}
|
|
171
|
+
// Copy commands
|
|
172
|
+
if (options.components.commands) {
|
|
173
|
+
await copyCommands(targetDir, options, result);
|
|
174
|
+
}
|
|
175
|
+
// Copy agents
|
|
176
|
+
if (options.components.agents) {
|
|
177
|
+
await copyAgents(targetDir, options, result);
|
|
178
|
+
}
|
|
179
|
+
// Generate helpers
|
|
180
|
+
if (options.components.helpers) {
|
|
181
|
+
await writeHelpers(targetDir, options, result);
|
|
182
|
+
}
|
|
183
|
+
// Generate statusline
|
|
184
|
+
if (options.components.statusline) {
|
|
185
|
+
await writeStatusline(targetDir, options, result);
|
|
186
|
+
}
|
|
187
|
+
// Generate runtime config
|
|
188
|
+
if (options.components.runtime) {
|
|
189
|
+
await writeRuntimeConfig(targetDir, options, result);
|
|
190
|
+
}
|
|
191
|
+
// Create initial metrics for statusline (prevents "all zeros" display)
|
|
192
|
+
if (options.components.statusline) {
|
|
193
|
+
await writeInitialMetrics(targetDir, options, result);
|
|
194
|
+
}
|
|
195
|
+
// Generate CLAUDE.md
|
|
196
|
+
if (options.components.claudeMd) {
|
|
197
|
+
await writeClaudeMd(targetDir, options, result);
|
|
198
|
+
}
|
|
199
|
+
// Count enabled hooks
|
|
200
|
+
result.summary.hooksEnabled = countEnabledHooks(options);
|
|
201
|
+
}
|
|
202
|
+
catch (error) {
|
|
203
|
+
result.success = false;
|
|
204
|
+
result.errors.push(error instanceof Error ? error.message : String(error));
|
|
205
|
+
}
|
|
206
|
+
return result;
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* Merge new settings into existing settings.json
|
|
210
|
+
* Preserves user customizations while adding new features like Agent Teams
|
|
211
|
+
* Uses platform-specific commands for Mac, Linux, and Windows
|
|
212
|
+
*/
|
|
213
|
+
function mergeSettingsForUpgrade(existing) {
|
|
214
|
+
const merged = { ...existing };
|
|
215
|
+
const platform = detectPlatform();
|
|
216
|
+
const isWindows = platform.os === 'windows';
|
|
217
|
+
// Platform-specific command wrappers
|
|
218
|
+
// Windows: Use PowerShell-compatible commands
|
|
219
|
+
// Mac/Linux: Use bash-compatible commands with 2>/dev/null
|
|
220
|
+
const teammateIdleCmd = isWindows
|
|
221
|
+
? 'npx @kynjal/cli@latest hooks teammate-idle --auto-assign true 2>$null; exit 0'
|
|
222
|
+
: 'npx @kynjal/cli@latest hooks teammate-idle --auto-assign true 2>/dev/null || true';
|
|
223
|
+
const taskCompletedCmd = isWindows
|
|
224
|
+
? 'if ($env:TASK_ID) { npx @kynjal/cli@latest hooks task-completed --task-id $env:TASK_ID --train-patterns true 2>$null }; exit 0'
|
|
225
|
+
: '[ -n "$TASK_ID" ] && npx @kynjal/cli@latest hooks task-completed --task-id "$TASK_ID" --train-patterns true 2>/dev/null || true';
|
|
226
|
+
// 1. Merge env vars (preserve existing, add new)
|
|
227
|
+
const existingEnv = existing.env || {};
|
|
228
|
+
merged.env = {
|
|
229
|
+
...existingEnv,
|
|
230
|
+
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS: '1',
|
|
231
|
+
CLAUDE_FLOW_V3_ENABLED: existingEnv.CLAUDE_FLOW_V3_ENABLED || 'true',
|
|
232
|
+
CLAUDE_FLOW_HOOKS_ENABLED: existingEnv.CLAUDE_FLOW_HOOKS_ENABLED || 'true',
|
|
233
|
+
};
|
|
234
|
+
// 2. Merge hooks (preserve existing, add new Agent Teams + auto-memory hooks)
|
|
235
|
+
const existingHooks = existing.hooks || {};
|
|
236
|
+
merged.hooks = { ...existingHooks };
|
|
237
|
+
// Platform-specific auto-memory hook commands
|
|
238
|
+
const autoMemoryImportCmd = isWindows
|
|
239
|
+
? 'node .claude/helpers/auto-memory-hook.mjs import 2>$null; exit 0'
|
|
240
|
+
: 'node .claude/helpers/auto-memory-hook.mjs import 2>/dev/null || true';
|
|
241
|
+
const autoMemorySyncCmd = isWindows
|
|
242
|
+
? 'node .claude/helpers/auto-memory-hook.mjs sync 2>$null; exit 0'
|
|
243
|
+
: 'node .claude/helpers/auto-memory-hook.mjs sync 2>/dev/null || true';
|
|
244
|
+
// Add auto-memory import to SessionStart (if not already present)
|
|
245
|
+
const sessionStartHooks = existingHooks.SessionStart;
|
|
246
|
+
const hasAutoMemoryImport = sessionStartHooks?.some(group => group.hooks?.some(h => h.command?.includes('auto-memory-hook')));
|
|
247
|
+
if (!hasAutoMemoryImport) {
|
|
248
|
+
const startHooks = merged.hooks;
|
|
249
|
+
if (!startHooks.SessionStart) {
|
|
250
|
+
startHooks.SessionStart = [{ hooks: [] }];
|
|
251
|
+
}
|
|
252
|
+
const startGroup = startHooks.SessionStart[0];
|
|
253
|
+
if (!startGroup.hooks)
|
|
254
|
+
startGroup.hooks = [];
|
|
255
|
+
startGroup.hooks.push({
|
|
256
|
+
type: 'command',
|
|
257
|
+
command: autoMemoryImportCmd,
|
|
258
|
+
timeout: 6000,
|
|
259
|
+
continueOnError: true,
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
// Add auto-memory sync to SessionEnd (if not already present)
|
|
263
|
+
const sessionEndHooks = existingHooks.SessionEnd;
|
|
264
|
+
const hasAutoMemorySync = sessionEndHooks?.some(group => group.hooks?.some(h => h.command?.includes('auto-memory-hook')));
|
|
265
|
+
if (!hasAutoMemorySync) {
|
|
266
|
+
const endHooks = merged.hooks;
|
|
267
|
+
if (!endHooks.SessionEnd) {
|
|
268
|
+
endHooks.SessionEnd = [{ hooks: [] }];
|
|
269
|
+
}
|
|
270
|
+
const endGroup = endHooks.SessionEnd[0];
|
|
271
|
+
if (!endGroup.hooks)
|
|
272
|
+
endGroup.hooks = [];
|
|
273
|
+
// Insert at beginning so sync runs before other cleanup
|
|
274
|
+
endGroup.hooks.unshift({
|
|
275
|
+
type: 'command',
|
|
276
|
+
command: autoMemorySyncCmd,
|
|
277
|
+
timeout: 8000,
|
|
278
|
+
continueOnError: true,
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
// Add TeammateIdle hook if not present
|
|
282
|
+
if (!existingHooks.TeammateIdle) {
|
|
283
|
+
merged.hooks.TeammateIdle = [
|
|
284
|
+
{
|
|
285
|
+
hooks: [
|
|
286
|
+
{
|
|
287
|
+
type: 'command',
|
|
288
|
+
command: teammateIdleCmd,
|
|
289
|
+
timeout: 5000,
|
|
290
|
+
continueOnError: true,
|
|
291
|
+
},
|
|
292
|
+
],
|
|
293
|
+
},
|
|
294
|
+
];
|
|
295
|
+
}
|
|
296
|
+
// Add TaskCompleted hook if not present
|
|
297
|
+
if (!existingHooks.TaskCompleted) {
|
|
298
|
+
merged.hooks.TaskCompleted = [
|
|
299
|
+
{
|
|
300
|
+
hooks: [
|
|
301
|
+
{
|
|
302
|
+
type: 'command',
|
|
303
|
+
command: taskCompletedCmd,
|
|
304
|
+
timeout: 5000,
|
|
305
|
+
continueOnError: true,
|
|
306
|
+
},
|
|
307
|
+
],
|
|
308
|
+
},
|
|
309
|
+
];
|
|
310
|
+
}
|
|
311
|
+
// 3. Merge claudeFlow settings (preserve existing, add agentTeams + memory)
|
|
312
|
+
const existingClaudeFlow = existing.claudeFlow || {};
|
|
313
|
+
const existingMemory = existingClaudeFlow.memory || {};
|
|
314
|
+
merged.claudeFlow = {
|
|
315
|
+
...existingClaudeFlow,
|
|
316
|
+
version: existingClaudeFlow.version || '3.0.0',
|
|
317
|
+
enabled: existingClaudeFlow.enabled !== false,
|
|
318
|
+
agentTeams: {
|
|
319
|
+
enabled: true,
|
|
320
|
+
teammateMode: 'auto',
|
|
321
|
+
taskListEnabled: true,
|
|
322
|
+
mailboxEnabled: true,
|
|
323
|
+
coordination: {
|
|
324
|
+
autoAssignOnIdle: true,
|
|
325
|
+
trainPatternsOnComplete: true,
|
|
326
|
+
notifyLeadOnComplete: true,
|
|
327
|
+
sharedMemoryNamespace: 'agent-teams',
|
|
328
|
+
},
|
|
329
|
+
hooks: {
|
|
330
|
+
teammateIdle: { enabled: true, autoAssign: true, checkTaskList: true },
|
|
331
|
+
taskCompleted: { enabled: true, trainPatterns: true, notifyLead: true },
|
|
332
|
+
},
|
|
333
|
+
},
|
|
334
|
+
memory: {
|
|
335
|
+
...existingMemory,
|
|
336
|
+
learningBridge: existingMemory.learningBridge ?? { enabled: true },
|
|
337
|
+
memoryGraph: existingMemory.memoryGraph ?? { enabled: true },
|
|
338
|
+
agentScopes: existingMemory.agentScopes ?? { enabled: true },
|
|
339
|
+
},
|
|
340
|
+
};
|
|
341
|
+
return merged;
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* Execute upgrade - updates helpers and creates missing metrics without losing data
|
|
345
|
+
* This is safe for existing users who want the latest statusline fixes
|
|
346
|
+
* @param targetDir - Target directory
|
|
347
|
+
* @param upgradeSettings - If true, merge new settings into existing settings.json
|
|
348
|
+
*/
|
|
349
|
+
export async function executeUpgrade(targetDir, upgradeSettings = false) {
|
|
350
|
+
const result = {
|
|
351
|
+
success: true,
|
|
352
|
+
updated: [],
|
|
353
|
+
created: [],
|
|
354
|
+
preserved: [],
|
|
355
|
+
errors: [],
|
|
356
|
+
settingsUpdated: [],
|
|
357
|
+
};
|
|
358
|
+
try {
|
|
359
|
+
// Ensure required directories exist
|
|
360
|
+
const dirs = [
|
|
361
|
+
'.claude/helpers',
|
|
362
|
+
'.claude-flow/metrics',
|
|
363
|
+
'.claude-flow/security',
|
|
364
|
+
'.claude-flow/learning',
|
|
365
|
+
];
|
|
366
|
+
for (const dir of dirs) {
|
|
367
|
+
const fullPath = path.join(targetDir, dir);
|
|
368
|
+
if (!fs.existsSync(fullPath)) {
|
|
369
|
+
fs.mkdirSync(fullPath, { recursive: true });
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
// 0. ALWAYS update critical helpers (force overwrite)
|
|
373
|
+
const sourceHelpersForUpgrade = findSourceHelpersDir();
|
|
374
|
+
if (sourceHelpersForUpgrade) {
|
|
375
|
+
const criticalHelpers = ['auto-memory-hook.mjs', 'hook-handler.cjs', 'intelligence.cjs'];
|
|
376
|
+
for (const helperName of criticalHelpers) {
|
|
377
|
+
const targetPath = path.join(targetDir, '.claude', 'helpers', helperName);
|
|
378
|
+
const sourcePath = path.join(sourceHelpersForUpgrade, helperName);
|
|
379
|
+
if (fs.existsSync(sourcePath)) {
|
|
380
|
+
if (fs.existsSync(targetPath)) {
|
|
381
|
+
result.updated.push(`.claude/helpers/${helperName}`);
|
|
382
|
+
}
|
|
383
|
+
else {
|
|
384
|
+
result.created.push(`.claude/helpers/${helperName}`);
|
|
385
|
+
}
|
|
386
|
+
fs.copyFileSync(sourcePath, targetPath);
|
|
387
|
+
try {
|
|
388
|
+
fs.chmodSync(targetPath, '755');
|
|
389
|
+
}
|
|
390
|
+
catch { }
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
else {
|
|
395
|
+
// Source not found (npx with broken paths) — use generated fallbacks
|
|
396
|
+
const generatedCritical = {
|
|
397
|
+
'hook-handler.cjs': generateHookHandler(),
|
|
398
|
+
'intelligence.cjs': generateIntelligenceStub(),
|
|
399
|
+
'auto-memory-hook.mjs': generateAutoMemoryHook(),
|
|
400
|
+
};
|
|
401
|
+
for (const [helperName, content] of Object.entries(generatedCritical)) {
|
|
402
|
+
const targetPath = path.join(targetDir, '.claude', 'helpers', helperName);
|
|
403
|
+
if (fs.existsSync(targetPath)) {
|
|
404
|
+
result.updated.push(`.claude/helpers/${helperName}`);
|
|
405
|
+
}
|
|
406
|
+
else {
|
|
407
|
+
result.created.push(`.claude/helpers/${helperName}`);
|
|
408
|
+
}
|
|
409
|
+
fs.writeFileSync(targetPath, content, 'utf-8');
|
|
410
|
+
try {
|
|
411
|
+
fs.chmodSync(targetPath, '755');
|
|
412
|
+
}
|
|
413
|
+
catch { }
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
// 1. ALWAYS update statusline helper (force overwrite)
|
|
417
|
+
const statuslinePath = path.join(targetDir, '.claude', 'helpers', 'statusline.cjs');
|
|
418
|
+
// Use default options with statusline config
|
|
419
|
+
const upgradeOptions = {
|
|
420
|
+
...DEFAULT_INIT_OPTIONS,
|
|
421
|
+
targetDir,
|
|
422
|
+
force: true,
|
|
423
|
+
statusline: {
|
|
424
|
+
...DEFAULT_INIT_OPTIONS.statusline,
|
|
425
|
+
refreshInterval: 5000,
|
|
426
|
+
},
|
|
427
|
+
};
|
|
428
|
+
const statuslineContent = generateStatuslineScript(upgradeOptions);
|
|
429
|
+
if (fs.existsSync(statuslinePath)) {
|
|
430
|
+
result.updated.push('.claude/helpers/statusline.cjs');
|
|
431
|
+
}
|
|
432
|
+
else {
|
|
433
|
+
result.created.push('.claude/helpers/statusline.cjs');
|
|
434
|
+
}
|
|
435
|
+
fs.writeFileSync(statuslinePath, statuslineContent, 'utf-8');
|
|
436
|
+
// 2. Create MISSING metrics files only (preserve existing data)
|
|
437
|
+
const metricsDir = path.join(targetDir, '.claude-flow', 'metrics');
|
|
438
|
+
const securityDir = path.join(targetDir, '.claude-flow', 'security');
|
|
439
|
+
// v3-progress.json
|
|
440
|
+
const progressPath = path.join(metricsDir, 'v3-progress.json');
|
|
441
|
+
if (!fs.existsSync(progressPath)) {
|
|
442
|
+
const progress = {
|
|
443
|
+
version: '3.0.0',
|
|
444
|
+
initialized: new Date().toISOString(),
|
|
445
|
+
domains: { completed: 0, total: 5, status: 'INITIALIZING' },
|
|
446
|
+
ddd: { progress: 0, modules: 0, totalFiles: 0, totalLines: 0 },
|
|
447
|
+
swarm: { activeAgents: 0, maxAgents: 15, topology: 'hierarchical-mesh' },
|
|
448
|
+
learning: { status: 'READY', patternsLearned: 0, sessionsCompleted: 0 },
|
|
449
|
+
_note: 'Metrics will update as you use KynjalFlow'
|
|
450
|
+
};
|
|
451
|
+
fs.writeFileSync(progressPath, JSON.stringify(progress, null, 2), 'utf-8');
|
|
452
|
+
result.created.push('.claude-flow/metrics/v3-progress.json');
|
|
453
|
+
}
|
|
454
|
+
else {
|
|
455
|
+
result.preserved.push('.claude-flow/metrics/v3-progress.json');
|
|
456
|
+
}
|
|
457
|
+
// swarm-activity.json
|
|
458
|
+
const activityPath = path.join(metricsDir, 'swarm-activity.json');
|
|
459
|
+
if (!fs.existsSync(activityPath)) {
|
|
460
|
+
const activity = {
|
|
461
|
+
timestamp: new Date().toISOString(),
|
|
462
|
+
processes: { agentic_flow: 0, mcp_server: 0, estimated_agents: 0 },
|
|
463
|
+
swarm: { active: false, agent_count: 0, coordination_active: false },
|
|
464
|
+
integration: { agentic_flow_active: false, mcp_active: false },
|
|
465
|
+
_initialized: true
|
|
466
|
+
};
|
|
467
|
+
fs.writeFileSync(activityPath, JSON.stringify(activity, null, 2), 'utf-8');
|
|
468
|
+
result.created.push('.claude-flow/metrics/swarm-activity.json');
|
|
469
|
+
}
|
|
470
|
+
else {
|
|
471
|
+
result.preserved.push('.claude-flow/metrics/swarm-activity.json');
|
|
472
|
+
}
|
|
473
|
+
// learning.json
|
|
474
|
+
const learningPath = path.join(metricsDir, 'learning.json');
|
|
475
|
+
if (!fs.existsSync(learningPath)) {
|
|
476
|
+
const learning = {
|
|
477
|
+
initialized: new Date().toISOString(),
|
|
478
|
+
routing: { accuracy: 0, decisions: 0 },
|
|
479
|
+
patterns: { shortTerm: 0, longTerm: 0, quality: 0 },
|
|
480
|
+
sessions: { total: 0, current: null },
|
|
481
|
+
_note: 'Intelligence grows as you use KynjalFlow'
|
|
482
|
+
};
|
|
483
|
+
fs.writeFileSync(learningPath, JSON.stringify(learning, null, 2), 'utf-8');
|
|
484
|
+
result.created.push('.claude-flow/metrics/learning.json');
|
|
485
|
+
}
|
|
486
|
+
else {
|
|
487
|
+
result.preserved.push('.claude-flow/metrics/learning.json');
|
|
488
|
+
}
|
|
489
|
+
// audit-status.json
|
|
490
|
+
const auditPath = path.join(securityDir, 'audit-status.json');
|
|
491
|
+
if (!fs.existsSync(auditPath)) {
|
|
492
|
+
const audit = {
|
|
493
|
+
initialized: new Date().toISOString(),
|
|
494
|
+
status: 'PENDING',
|
|
495
|
+
cvesFixed: 0,
|
|
496
|
+
totalCves: 3,
|
|
497
|
+
lastScan: null,
|
|
498
|
+
_note: 'Run: npx @kynjal/cli@latest security scan'
|
|
499
|
+
};
|
|
500
|
+
fs.writeFileSync(auditPath, JSON.stringify(audit, null, 2), 'utf-8');
|
|
501
|
+
result.created.push('.claude-flow/security/audit-status.json');
|
|
502
|
+
}
|
|
503
|
+
else {
|
|
504
|
+
result.preserved.push('.claude-flow/security/audit-status.json');
|
|
505
|
+
}
|
|
506
|
+
// 3. Merge settings if requested
|
|
507
|
+
if (upgradeSettings) {
|
|
508
|
+
const settingsPath = path.join(targetDir, '.claude', 'settings.json');
|
|
509
|
+
if (fs.existsSync(settingsPath)) {
|
|
510
|
+
try {
|
|
511
|
+
const existingSettings = JSON.parse(fs.readFileSync(settingsPath, 'utf-8'));
|
|
512
|
+
const mergedSettings = mergeSettingsForUpgrade(existingSettings);
|
|
513
|
+
fs.writeFileSync(settingsPath, JSON.stringify(mergedSettings, null, 2), 'utf-8');
|
|
514
|
+
result.updated.push('.claude/settings.json');
|
|
515
|
+
result.settingsUpdated = [
|
|
516
|
+
'env.CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS',
|
|
517
|
+
'hooks.SessionStart (auto-memory import)',
|
|
518
|
+
'hooks.SessionEnd (auto-memory sync)',
|
|
519
|
+
'hooks.TeammateIdle',
|
|
520
|
+
'hooks.TaskCompleted',
|
|
521
|
+
'claudeFlow.agentTeams',
|
|
522
|
+
'claudeFlow.memory (learningBridge, memoryGraph, agentScopes)',
|
|
523
|
+
];
|
|
524
|
+
}
|
|
525
|
+
catch (settingsError) {
|
|
526
|
+
result.errors.push(`Settings merge failed: ${settingsError instanceof Error ? settingsError.message : String(settingsError)}`);
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
else {
|
|
530
|
+
// Create new settings.json with defaults
|
|
531
|
+
const defaultSettings = generateSettings(DEFAULT_INIT_OPTIONS);
|
|
532
|
+
fs.writeFileSync(settingsPath, JSON.stringify(defaultSettings, null, 2), 'utf-8');
|
|
533
|
+
result.created.push('.claude/settings.json');
|
|
534
|
+
result.settingsUpdated = ['Created new settings.json with Agent Teams'];
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
catch (error) {
|
|
539
|
+
result.success = false;
|
|
540
|
+
result.errors.push(error instanceof Error ? error.message : String(error));
|
|
541
|
+
}
|
|
542
|
+
return result;
|
|
543
|
+
}
|
|
544
|
+
/**
|
|
545
|
+
* Execute upgrade with --add-missing flag
|
|
546
|
+
* Adds any new skills, agents, and commands that don't exist yet
|
|
547
|
+
* @param targetDir - Target directory
|
|
548
|
+
* @param upgradeSettings - If true, merge new settings into existing settings.json
|
|
549
|
+
*/
|
|
550
|
+
export async function executeUpgradeWithMissing(targetDir, upgradeSettings = false) {
|
|
551
|
+
// First do the normal upgrade (pass through upgradeSettings)
|
|
552
|
+
const result = await executeUpgrade(targetDir, upgradeSettings);
|
|
553
|
+
if (!result.success) {
|
|
554
|
+
return result;
|
|
555
|
+
}
|
|
556
|
+
// Initialize tracking arrays
|
|
557
|
+
result.addedSkills = [];
|
|
558
|
+
result.addedAgents = [];
|
|
559
|
+
result.addedCommands = [];
|
|
560
|
+
try {
|
|
561
|
+
// Ensure target directories exist
|
|
562
|
+
const skillsDir = path.join(targetDir, '.claude', 'skills');
|
|
563
|
+
const agentsDir = path.join(targetDir, '.claude', 'agents');
|
|
564
|
+
const commandsDir = path.join(targetDir, '.claude', 'commands');
|
|
565
|
+
for (const dir of [skillsDir, agentsDir, commandsDir]) {
|
|
566
|
+
if (!fs.existsSync(dir)) {
|
|
567
|
+
fs.mkdirSync(dir, { recursive: true });
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
// Find source directories
|
|
571
|
+
const sourceSkillsDir = findSourceDir('skills');
|
|
572
|
+
const sourceAgentsDir = findSourceDir('agents');
|
|
573
|
+
const sourceCommandsDir = findSourceDir('commands');
|
|
574
|
+
// Debug: Log source directories found
|
|
575
|
+
if (process.env.DEBUG || process.env.CLAUDE_FLOW_DEBUG) {
|
|
576
|
+
console.log('[DEBUG] Source directories:');
|
|
577
|
+
console.log(` Skills: ${sourceSkillsDir || 'NOT FOUND'}`);
|
|
578
|
+
console.log(` Agents: ${sourceAgentsDir || 'NOT FOUND'}`);
|
|
579
|
+
console.log(` Commands: ${sourceCommandsDir || 'NOT FOUND'}`);
|
|
580
|
+
}
|
|
581
|
+
// Add missing skills
|
|
582
|
+
if (sourceSkillsDir) {
|
|
583
|
+
const allSkills = Object.values(SKILLS_MAP).flat();
|
|
584
|
+
const debugMode = process.env.DEBUG || process.env.CLAUDE_FLOW_DEBUG;
|
|
585
|
+
if (debugMode) {
|
|
586
|
+
console.log(`[DEBUG] Checking ${allSkills.length} skills from SKILLS_MAP`);
|
|
587
|
+
}
|
|
588
|
+
for (const skillName of [...new Set(allSkills)]) {
|
|
589
|
+
const sourcePath = path.join(sourceSkillsDir, skillName);
|
|
590
|
+
const targetPath = path.join(skillsDir, skillName);
|
|
591
|
+
const sourceExists = fs.existsSync(sourcePath);
|
|
592
|
+
const targetExists = fs.existsSync(targetPath);
|
|
593
|
+
if (debugMode) {
|
|
594
|
+
console.log(`[DEBUG] Skill '${skillName}': source=${sourceExists}, target=${targetExists}`);
|
|
595
|
+
}
|
|
596
|
+
if (sourceExists && !targetExists) {
|
|
597
|
+
copyDirRecursive(sourcePath, targetPath);
|
|
598
|
+
result.addedSkills.push(skillName);
|
|
599
|
+
result.created.push(`.claude/skills/${skillName}`);
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
// Add missing agents
|
|
604
|
+
if (sourceAgentsDir) {
|
|
605
|
+
const allAgents = Object.values(AGENTS_MAP).flat();
|
|
606
|
+
for (const agentCategory of [...new Set(allAgents)]) {
|
|
607
|
+
const sourcePath = path.join(sourceAgentsDir, agentCategory);
|
|
608
|
+
const targetPath = path.join(agentsDir, agentCategory);
|
|
609
|
+
if (fs.existsSync(sourcePath) && !fs.existsSync(targetPath)) {
|
|
610
|
+
copyDirRecursive(sourcePath, targetPath);
|
|
611
|
+
result.addedAgents.push(agentCategory);
|
|
612
|
+
result.created.push(`.claude/agents/${agentCategory}`);
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
// Add missing commands
|
|
617
|
+
if (sourceCommandsDir) {
|
|
618
|
+
const allCommands = Object.values(COMMANDS_MAP).flat();
|
|
619
|
+
for (const cmdName of [...new Set(allCommands)]) {
|
|
620
|
+
const sourcePath = path.join(sourceCommandsDir, cmdName);
|
|
621
|
+
const targetPath = path.join(commandsDir, cmdName);
|
|
622
|
+
if (fs.existsSync(sourcePath) && !fs.existsSync(targetPath)) {
|
|
623
|
+
if (fs.statSync(sourcePath).isDirectory()) {
|
|
624
|
+
copyDirRecursive(sourcePath, targetPath);
|
|
625
|
+
}
|
|
626
|
+
else {
|
|
627
|
+
fs.copyFileSync(sourcePath, targetPath);
|
|
628
|
+
}
|
|
629
|
+
result.addedCommands.push(cmdName);
|
|
630
|
+
result.created.push(`.claude/commands/${cmdName}`);
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
catch (error) {
|
|
636
|
+
result.errors.push(`Add missing failed: ${error instanceof Error ? error.message : String(error)}`);
|
|
637
|
+
}
|
|
638
|
+
return result;
|
|
639
|
+
}
|
|
640
|
+
/**
|
|
641
|
+
* Create directory structure
|
|
642
|
+
*/
|
|
643
|
+
async function createDirectories(targetDir, options, result) {
|
|
644
|
+
const dirs = [
|
|
645
|
+
...DIRECTORIES.claude,
|
|
646
|
+
...(options.components.runtime ? DIRECTORIES.runtime : []),
|
|
647
|
+
];
|
|
648
|
+
for (const dir of dirs) {
|
|
649
|
+
const fullPath = path.join(targetDir, dir);
|
|
650
|
+
if (!fs.existsSync(fullPath)) {
|
|
651
|
+
fs.mkdirSync(fullPath, { recursive: true });
|
|
652
|
+
result.created.directories.push(dir);
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
/**
|
|
657
|
+
* Write settings.json
|
|
658
|
+
*/
|
|
659
|
+
async function writeSettings(targetDir, options, result) {
|
|
660
|
+
const settingsPath = path.join(targetDir, '.claude', 'settings.json');
|
|
661
|
+
if (fs.existsSync(settingsPath) && !options.force) {
|
|
662
|
+
result.skipped.push('.claude/settings.json');
|
|
663
|
+
return;
|
|
664
|
+
}
|
|
665
|
+
const content = generateSettingsJson(options);
|
|
666
|
+
fs.writeFileSync(settingsPath, content, 'utf-8');
|
|
667
|
+
result.created.files.push('.claude/settings.json');
|
|
668
|
+
}
|
|
669
|
+
/**
|
|
670
|
+
* Write .mcp.json
|
|
671
|
+
*/
|
|
672
|
+
async function writeMCPConfig(targetDir, options, result) {
|
|
673
|
+
const mcpPath = path.join(targetDir, '.mcp.json');
|
|
674
|
+
if (fs.existsSync(mcpPath) && !options.force) {
|
|
675
|
+
result.skipped.push('.mcp.json');
|
|
676
|
+
return;
|
|
677
|
+
}
|
|
678
|
+
const content = generateMCPJson(options);
|
|
679
|
+
fs.writeFileSync(mcpPath, content, 'utf-8');
|
|
680
|
+
result.created.files.push('.mcp.json');
|
|
681
|
+
}
|
|
682
|
+
/**
|
|
683
|
+
* Copy skills from source
|
|
684
|
+
*/
|
|
685
|
+
async function copySkills(targetDir, options, result) {
|
|
686
|
+
const skillsConfig = options.skills;
|
|
687
|
+
const targetSkillsDir = path.join(targetDir, '.claude', 'skills');
|
|
688
|
+
// Determine which skills to copy
|
|
689
|
+
const skillsToCopy = [];
|
|
690
|
+
if (skillsConfig.all) {
|
|
691
|
+
// Copy all available skills
|
|
692
|
+
Object.values(SKILLS_MAP).forEach(skills => skillsToCopy.push(...skills));
|
|
693
|
+
}
|
|
694
|
+
else {
|
|
695
|
+
if (skillsConfig.core)
|
|
696
|
+
skillsToCopy.push(...SKILLS_MAP.core);
|
|
697
|
+
if (skillsConfig.agentdb)
|
|
698
|
+
skillsToCopy.push(...SKILLS_MAP.agentdb);
|
|
699
|
+
if (skillsConfig.github)
|
|
700
|
+
skillsToCopy.push(...SKILLS_MAP.github);
|
|
701
|
+
if (skillsConfig.flowNexus)
|
|
702
|
+
skillsToCopy.push(...SKILLS_MAP.flowNexus);
|
|
703
|
+
if (skillsConfig.browser)
|
|
704
|
+
skillsToCopy.push(...SKILLS_MAP.browser);
|
|
705
|
+
if (skillsConfig.v3)
|
|
706
|
+
skillsToCopy.push(...SKILLS_MAP.v3);
|
|
707
|
+
if (skillsConfig.dualMode)
|
|
708
|
+
skillsToCopy.push(...SKILLS_MAP.dualMode);
|
|
709
|
+
}
|
|
710
|
+
// Find source skills directory
|
|
711
|
+
const sourceSkillsDir = findSourceDir('skills', options.sourceBaseDir);
|
|
712
|
+
if (!sourceSkillsDir) {
|
|
713
|
+
result.errors.push('Could not find source skills directory');
|
|
714
|
+
return;
|
|
715
|
+
}
|
|
716
|
+
// Copy each skill
|
|
717
|
+
for (const skillName of [...new Set(skillsToCopy)]) {
|
|
718
|
+
const sourcePath = path.join(sourceSkillsDir, skillName);
|
|
719
|
+
const targetPath = path.join(targetSkillsDir, skillName);
|
|
720
|
+
if (fs.existsSync(sourcePath)) {
|
|
721
|
+
if (!fs.existsSync(targetPath) || options.force) {
|
|
722
|
+
copyDirRecursive(sourcePath, targetPath);
|
|
723
|
+
result.created.files.push(`.claude/skills/${skillName}`);
|
|
724
|
+
result.summary.skillsCount++;
|
|
725
|
+
}
|
|
726
|
+
else {
|
|
727
|
+
result.skipped.push(`.claude/skills/${skillName}`);
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
/**
|
|
733
|
+
* Copy commands from source
|
|
734
|
+
*/
|
|
735
|
+
async function copyCommands(targetDir, options, result) {
|
|
736
|
+
const commandsConfig = options.commands;
|
|
737
|
+
const targetCommandsDir = path.join(targetDir, '.claude', 'commands');
|
|
738
|
+
// Determine which commands to copy
|
|
739
|
+
const commandsToCopy = [];
|
|
740
|
+
if (commandsConfig.all) {
|
|
741
|
+
Object.values(COMMANDS_MAP).forEach(cmds => commandsToCopy.push(...cmds));
|
|
742
|
+
}
|
|
743
|
+
else {
|
|
744
|
+
if (commandsConfig.core)
|
|
745
|
+
commandsToCopy.push(...COMMANDS_MAP.core);
|
|
746
|
+
if (commandsConfig.analysis)
|
|
747
|
+
commandsToCopy.push(...COMMANDS_MAP.analysis);
|
|
748
|
+
if (commandsConfig.automation)
|
|
749
|
+
commandsToCopy.push(...COMMANDS_MAP.automation);
|
|
750
|
+
if (commandsConfig.github)
|
|
751
|
+
commandsToCopy.push(...COMMANDS_MAP.github);
|
|
752
|
+
if (commandsConfig.hooks)
|
|
753
|
+
commandsToCopy.push(...COMMANDS_MAP.hooks);
|
|
754
|
+
if (commandsConfig.monitoring)
|
|
755
|
+
commandsToCopy.push(...COMMANDS_MAP.monitoring);
|
|
756
|
+
if (commandsConfig.optimization)
|
|
757
|
+
commandsToCopy.push(...COMMANDS_MAP.optimization);
|
|
758
|
+
if (commandsConfig.sparc)
|
|
759
|
+
commandsToCopy.push(...COMMANDS_MAP.sparc);
|
|
760
|
+
}
|
|
761
|
+
// Find source commands directory
|
|
762
|
+
const sourceCommandsDir = findSourceDir('commands', options.sourceBaseDir);
|
|
763
|
+
if (!sourceCommandsDir) {
|
|
764
|
+
result.errors.push('Could not find source commands directory');
|
|
765
|
+
return;
|
|
766
|
+
}
|
|
767
|
+
// Copy each command/directory
|
|
768
|
+
for (const cmdName of [...new Set(commandsToCopy)]) {
|
|
769
|
+
const sourcePath = path.join(sourceCommandsDir, cmdName);
|
|
770
|
+
const targetPath = path.join(targetCommandsDir, cmdName);
|
|
771
|
+
if (fs.existsSync(sourcePath)) {
|
|
772
|
+
if (!fs.existsSync(targetPath) || options.force) {
|
|
773
|
+
if (fs.statSync(sourcePath).isDirectory()) {
|
|
774
|
+
copyDirRecursive(sourcePath, targetPath);
|
|
775
|
+
}
|
|
776
|
+
else {
|
|
777
|
+
fs.copyFileSync(sourcePath, targetPath);
|
|
778
|
+
}
|
|
779
|
+
result.created.files.push(`.claude/commands/${cmdName}`);
|
|
780
|
+
result.summary.commandsCount++;
|
|
781
|
+
}
|
|
782
|
+
else {
|
|
783
|
+
result.skipped.push(`.claude/commands/${cmdName}`);
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
/**
|
|
789
|
+
* Copy agents from source
|
|
790
|
+
*/
|
|
791
|
+
async function copyAgents(targetDir, options, result) {
|
|
792
|
+
const agentsConfig = options.agents;
|
|
793
|
+
const targetAgentsDir = path.join(targetDir, '.claude', 'agents');
|
|
794
|
+
// Determine which agents to copy
|
|
795
|
+
const agentsToCopy = [];
|
|
796
|
+
if (agentsConfig.all) {
|
|
797
|
+
Object.values(AGENTS_MAP).forEach(agents => agentsToCopy.push(...agents));
|
|
798
|
+
}
|
|
799
|
+
else {
|
|
800
|
+
if (agentsConfig.core)
|
|
801
|
+
agentsToCopy.push(...AGENTS_MAP.core);
|
|
802
|
+
if (agentsConfig.consensus)
|
|
803
|
+
agentsToCopy.push(...AGENTS_MAP.consensus);
|
|
804
|
+
if (agentsConfig.github)
|
|
805
|
+
agentsToCopy.push(...AGENTS_MAP.github);
|
|
806
|
+
if (agentsConfig.hiveMind)
|
|
807
|
+
agentsToCopy.push(...AGENTS_MAP.hiveMind);
|
|
808
|
+
if (agentsConfig.sparc)
|
|
809
|
+
agentsToCopy.push(...AGENTS_MAP.sparc);
|
|
810
|
+
if (agentsConfig.swarm)
|
|
811
|
+
agentsToCopy.push(...AGENTS_MAP.swarm);
|
|
812
|
+
if (agentsConfig.browser)
|
|
813
|
+
agentsToCopy.push(...AGENTS_MAP.browser);
|
|
814
|
+
// V3-specific agent categories
|
|
815
|
+
if (agentsConfig.v3)
|
|
816
|
+
agentsToCopy.push(...(AGENTS_MAP.v3 || []));
|
|
817
|
+
if (agentsConfig.optimization)
|
|
818
|
+
agentsToCopy.push(...(AGENTS_MAP.optimization || []));
|
|
819
|
+
if (agentsConfig.testing)
|
|
820
|
+
agentsToCopy.push(...(AGENTS_MAP.testing || []));
|
|
821
|
+
// Dual-mode agents (Claude Code + Codex hybrid)
|
|
822
|
+
if (agentsConfig.dualMode)
|
|
823
|
+
agentsToCopy.push(...(AGENTS_MAP.dualMode || []));
|
|
824
|
+
}
|
|
825
|
+
// Find source agents directory
|
|
826
|
+
const sourceAgentsDir = findSourceDir('agents', options.sourceBaseDir);
|
|
827
|
+
if (!sourceAgentsDir) {
|
|
828
|
+
result.errors.push('Could not find source agents directory');
|
|
829
|
+
return;
|
|
830
|
+
}
|
|
831
|
+
// Copy each agent category
|
|
832
|
+
for (const agentCategory of [...new Set(agentsToCopy)]) {
|
|
833
|
+
const sourcePath = path.join(sourceAgentsDir, agentCategory);
|
|
834
|
+
const targetPath = path.join(targetAgentsDir, agentCategory);
|
|
835
|
+
if (fs.existsSync(sourcePath)) {
|
|
836
|
+
if (!fs.existsSync(targetPath) || options.force) {
|
|
837
|
+
copyDirRecursive(sourcePath, targetPath);
|
|
838
|
+
// Count agent files (.yaml and .md)
|
|
839
|
+
const yamlFiles = countFiles(sourcePath, '.yaml');
|
|
840
|
+
const mdFiles = countFiles(sourcePath, '.md');
|
|
841
|
+
result.summary.agentsCount += yamlFiles + mdFiles;
|
|
842
|
+
result.created.files.push(`.claude/agents/${agentCategory}`);
|
|
843
|
+
}
|
|
844
|
+
else {
|
|
845
|
+
result.skipped.push(`.claude/agents/${agentCategory}`);
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
/**
|
|
851
|
+
* Find source helpers directory.
|
|
852
|
+
* Validates that the directory contains hook-handler.cjs to avoid
|
|
853
|
+
* returning the target directory or an incomplete source.
|
|
854
|
+
*/
|
|
855
|
+
function findSourceHelpersDir(sourceBaseDir) {
|
|
856
|
+
const possiblePaths = [];
|
|
857
|
+
const SENTINEL_FILE = 'hook-handler.cjs'; // Must exist in valid source
|
|
858
|
+
// If explicit source base directory is provided, check it first
|
|
859
|
+
if (sourceBaseDir) {
|
|
860
|
+
possiblePaths.push(path.join(sourceBaseDir, '.claude', 'helpers'));
|
|
861
|
+
}
|
|
862
|
+
// Strategy 1: require.resolve to find package root (most reliable for npx)
|
|
863
|
+
try {
|
|
864
|
+
const esmRequire = createRequire(import.meta.url);
|
|
865
|
+
const pkgJsonPath = esmRequire.resolve('@claude-flow/cli/package.json');
|
|
866
|
+
const pkgRoot = path.dirname(pkgJsonPath);
|
|
867
|
+
possiblePaths.push(path.join(pkgRoot, '.claude', 'helpers'));
|
|
868
|
+
}
|
|
869
|
+
catch {
|
|
870
|
+
// Not installed as a package — skip
|
|
871
|
+
}
|
|
872
|
+
// Strategy 2: __dirname-based (dist/src/init -> package root)
|
|
873
|
+
const packageRoot = path.resolve(__dirname, '..', '..', '..');
|
|
874
|
+
const packageHelpers = path.join(packageRoot, '.claude', 'helpers');
|
|
875
|
+
possiblePaths.push(packageHelpers);
|
|
876
|
+
// Strategy 3: Walk up from __dirname looking for package root
|
|
877
|
+
let currentDir = __dirname;
|
|
878
|
+
for (let i = 0; i < 10; i++) {
|
|
879
|
+
const parentDir = path.dirname(currentDir);
|
|
880
|
+
if (parentDir === currentDir)
|
|
881
|
+
break; // hit filesystem root
|
|
882
|
+
const helpersPath = path.join(parentDir, '.claude', 'helpers');
|
|
883
|
+
possiblePaths.push(helpersPath);
|
|
884
|
+
currentDir = parentDir;
|
|
885
|
+
}
|
|
886
|
+
// Strategy 4: Check cwd-relative paths (for local dev)
|
|
887
|
+
const cwdBased = [
|
|
888
|
+
path.join(process.cwd(), '.claude', 'helpers'),
|
|
889
|
+
path.join(process.cwd(), '..', '.claude', 'helpers'),
|
|
890
|
+
path.join(process.cwd(), '..', '..', '.claude', 'helpers'),
|
|
891
|
+
];
|
|
892
|
+
possiblePaths.push(...cwdBased);
|
|
893
|
+
// Return first path that exists AND contains the sentinel file
|
|
894
|
+
for (const p of possiblePaths) {
|
|
895
|
+
if (fs.existsSync(p) && fs.existsSync(path.join(p, SENTINEL_FILE))) {
|
|
896
|
+
return p;
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
return null;
|
|
900
|
+
}
|
|
901
|
+
/**
|
|
902
|
+
* Write helper scripts
|
|
903
|
+
*/
|
|
904
|
+
async function writeHelpers(targetDir, options, result) {
|
|
905
|
+
const helpersDir = path.join(targetDir, '.claude', 'helpers');
|
|
906
|
+
// Find source helpers directory (works for npm package and local dev)
|
|
907
|
+
const sourceHelpersDir = findSourceHelpersDir(options.sourceBaseDir);
|
|
908
|
+
// Try to copy existing helpers from source first
|
|
909
|
+
if (sourceHelpersDir && fs.existsSync(sourceHelpersDir)) {
|
|
910
|
+
const helperFiles = fs.readdirSync(sourceHelpersDir);
|
|
911
|
+
let copiedCount = 0;
|
|
912
|
+
for (const file of helperFiles) {
|
|
913
|
+
const sourcePath = path.join(sourceHelpersDir, file);
|
|
914
|
+
const destPath = path.join(helpersDir, file);
|
|
915
|
+
// Skip directories and only copy files
|
|
916
|
+
if (!fs.statSync(sourcePath).isFile())
|
|
917
|
+
continue;
|
|
918
|
+
if (!fs.existsSync(destPath) || options.force) {
|
|
919
|
+
fs.copyFileSync(sourcePath, destPath);
|
|
920
|
+
// Make shell scripts and mjs files executable
|
|
921
|
+
if (file.endsWith('.sh') || file.endsWith('.mjs')) {
|
|
922
|
+
fs.chmodSync(destPath, '755');
|
|
923
|
+
}
|
|
924
|
+
result.created.files.push(`.claude/helpers/${file}`);
|
|
925
|
+
copiedCount++;
|
|
926
|
+
}
|
|
927
|
+
else {
|
|
928
|
+
result.skipped.push(`.claude/helpers/${file}`);
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
if (copiedCount > 0) {
|
|
932
|
+
return; // Skip generating if we copied from source
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
// Fall back to generating helpers if source not available
|
|
936
|
+
const helpers = {
|
|
937
|
+
'pre-commit': generatePreCommitHook(),
|
|
938
|
+
'post-commit': generatePostCommitHook(),
|
|
939
|
+
'session.js': generateSessionManager(),
|
|
940
|
+
'router.js': generateAgentRouter(),
|
|
941
|
+
'memory.js': generateMemoryHelper(),
|
|
942
|
+
'hook-handler.cjs': generateHookHandler(),
|
|
943
|
+
'intelligence.cjs': generateIntelligenceStub(),
|
|
944
|
+
'auto-memory-hook.mjs': generateAutoMemoryHook(),
|
|
945
|
+
};
|
|
946
|
+
for (const [name, content] of Object.entries(helpers)) {
|
|
947
|
+
const filePath = path.join(helpersDir, name);
|
|
948
|
+
if (!fs.existsSync(filePath) || options.force) {
|
|
949
|
+
fs.writeFileSync(filePath, content, 'utf-8');
|
|
950
|
+
// Make shell scripts executable
|
|
951
|
+
if (!name.endsWith('.js')) {
|
|
952
|
+
fs.chmodSync(filePath, '755');
|
|
953
|
+
}
|
|
954
|
+
result.created.files.push(`.claude/helpers/${name}`);
|
|
955
|
+
}
|
|
956
|
+
else {
|
|
957
|
+
result.skipped.push(`.claude/helpers/${name}`);
|
|
958
|
+
}
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
/**
|
|
962
|
+
* Find source .claude directory for statusline files
|
|
963
|
+
*/
|
|
964
|
+
function findSourceClaudeDir(sourceBaseDir) {
|
|
965
|
+
const possiblePaths = [];
|
|
966
|
+
// If explicit source base directory is provided, check it first
|
|
967
|
+
if (sourceBaseDir) {
|
|
968
|
+
possiblePaths.push(path.join(sourceBaseDir, '.claude'));
|
|
969
|
+
}
|
|
970
|
+
// IMPORTANT: Check the package's own .claude directory
|
|
971
|
+
// Go up 3 levels: dist/src/init -> dist/src -> dist -> root
|
|
972
|
+
const packageRoot = path.resolve(__dirname, '..', '..', '..');
|
|
973
|
+
const packageClaude = path.join(packageRoot, '.claude');
|
|
974
|
+
if (fs.existsSync(packageClaude)) {
|
|
975
|
+
possiblePaths.unshift(packageClaude); // Add to beginning (highest priority)
|
|
976
|
+
}
|
|
977
|
+
// From dist/src/init -> go up to project root
|
|
978
|
+
let currentDir = __dirname;
|
|
979
|
+
for (let i = 0; i < 10; i++) {
|
|
980
|
+
const parentDir = path.dirname(currentDir);
|
|
981
|
+
const claudePath = path.join(parentDir, '.claude');
|
|
982
|
+
if (fs.existsSync(claudePath)) {
|
|
983
|
+
possiblePaths.push(claudePath);
|
|
984
|
+
}
|
|
985
|
+
currentDir = parentDir;
|
|
986
|
+
}
|
|
987
|
+
for (const p of possiblePaths) {
|
|
988
|
+
if (fs.existsSync(p)) {
|
|
989
|
+
return p;
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
return null;
|
|
993
|
+
}
|
|
994
|
+
/**
|
|
995
|
+
* Write statusline configuration
|
|
996
|
+
*/
|
|
997
|
+
async function writeStatusline(targetDir, options, result) {
|
|
998
|
+
const claudeDir = path.join(targetDir, '.claude');
|
|
999
|
+
const helpersDir = path.join(targetDir, '.claude', 'helpers');
|
|
1000
|
+
// Find source .claude directory (works for npm package and local dev)
|
|
1001
|
+
const sourceClaudeDir = findSourceClaudeDir(options.sourceBaseDir);
|
|
1002
|
+
// Try to copy existing advanced statusline files from source
|
|
1003
|
+
const advancedStatuslineFiles = [
|
|
1004
|
+
{ src: 'statusline.sh', dest: 'statusline.sh', dir: claudeDir },
|
|
1005
|
+
{ src: 'statusline.mjs', dest: 'statusline.mjs', dir: claudeDir },
|
|
1006
|
+
];
|
|
1007
|
+
if (sourceClaudeDir) {
|
|
1008
|
+
for (const file of advancedStatuslineFiles) {
|
|
1009
|
+
const sourcePath = path.join(sourceClaudeDir, file.src);
|
|
1010
|
+
const destPath = path.join(file.dir, file.dest);
|
|
1011
|
+
if (fs.existsSync(sourcePath)) {
|
|
1012
|
+
if (!fs.existsSync(destPath) || options.force) {
|
|
1013
|
+
fs.copyFileSync(sourcePath, destPath);
|
|
1014
|
+
// Make shell scripts and mjs executable
|
|
1015
|
+
if (file.src.endsWith('.sh') || file.src.endsWith('.mjs')) {
|
|
1016
|
+
fs.chmodSync(destPath, '755');
|
|
1017
|
+
}
|
|
1018
|
+
result.created.files.push(`.claude/${file.dest}`);
|
|
1019
|
+
}
|
|
1020
|
+
else {
|
|
1021
|
+
result.skipped.push(`.claude/${file.dest}`);
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
// ALWAYS generate statusline.cjs — settings.json references this path
|
|
1027
|
+
// regardless of whether advanced statusline files were also copied.
|
|
1028
|
+
const statuslineScript = generateStatuslineScript(options);
|
|
1029
|
+
const statuslinePath = path.join(helpersDir, 'statusline.cjs');
|
|
1030
|
+
if (!fs.existsSync(statuslinePath) || options.force) {
|
|
1031
|
+
fs.writeFileSync(statuslinePath, statuslineScript, 'utf-8');
|
|
1032
|
+
result.created.files.push('.claude/helpers/statusline.cjs');
|
|
1033
|
+
}
|
|
1034
|
+
else {
|
|
1035
|
+
result.skipped.push('.claude/helpers/statusline.cjs');
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
/**
|
|
1039
|
+
* Write runtime configuration (.claude-flow/)
|
|
1040
|
+
*/
|
|
1041
|
+
async function writeRuntimeConfig(targetDir, options, result) {
|
|
1042
|
+
const configPath = path.join(targetDir, '.claude-flow', 'config.yaml');
|
|
1043
|
+
if (fs.existsSync(configPath) && !options.force) {
|
|
1044
|
+
result.skipped.push('.claude-flow/config.yaml');
|
|
1045
|
+
return;
|
|
1046
|
+
}
|
|
1047
|
+
const config = `# KynjalFlow V3 Runtime Configuration
|
|
1048
|
+
# Generated: ${new Date().toISOString()}
|
|
1049
|
+
|
|
1050
|
+
version: "3.0.0"
|
|
1051
|
+
|
|
1052
|
+
swarm:
|
|
1053
|
+
topology: ${options.runtime.topology}
|
|
1054
|
+
maxAgents: ${options.runtime.maxAgents}
|
|
1055
|
+
autoScale: true
|
|
1056
|
+
coordinationStrategy: consensus
|
|
1057
|
+
|
|
1058
|
+
memory:
|
|
1059
|
+
backend: ${options.runtime.memoryBackend}
|
|
1060
|
+
enableHNSW: ${options.runtime.enableHNSW}
|
|
1061
|
+
persistPath: .claude-flow/data
|
|
1062
|
+
cacheSize: 100
|
|
1063
|
+
# ADR-049: Self-Learning Memory
|
|
1064
|
+
learningBridge:
|
|
1065
|
+
enabled: ${options.runtime.enableLearningBridge ?? options.runtime.enableNeural}
|
|
1066
|
+
sonaMode: balanced
|
|
1067
|
+
confidenceDecayRate: 0.005
|
|
1068
|
+
accessBoostAmount: 0.03
|
|
1069
|
+
consolidationThreshold: 10
|
|
1070
|
+
memoryGraph:
|
|
1071
|
+
enabled: ${options.runtime.enableMemoryGraph ?? true}
|
|
1072
|
+
pageRankDamping: 0.85
|
|
1073
|
+
maxNodes: 5000
|
|
1074
|
+
similarityThreshold: 0.8
|
|
1075
|
+
agentScopes:
|
|
1076
|
+
enabled: ${options.runtime.enableAgentScopes ?? true}
|
|
1077
|
+
defaultScope: project
|
|
1078
|
+
|
|
1079
|
+
neural:
|
|
1080
|
+
enabled: ${options.runtime.enableNeural}
|
|
1081
|
+
modelPath: .claude-flow/neural
|
|
1082
|
+
|
|
1083
|
+
hooks:
|
|
1084
|
+
enabled: true
|
|
1085
|
+
autoExecute: true
|
|
1086
|
+
|
|
1087
|
+
mcp:
|
|
1088
|
+
autoStart: ${options.mcp.autoStart}
|
|
1089
|
+
port: ${options.mcp.port}
|
|
1090
|
+
`;
|
|
1091
|
+
fs.writeFileSync(configPath, config, 'utf-8');
|
|
1092
|
+
result.created.files.push('.claude-flow/config.yaml');
|
|
1093
|
+
// Write .gitignore
|
|
1094
|
+
const gitignorePath = path.join(targetDir, '.claude-flow', '.gitignore');
|
|
1095
|
+
const gitignore = `# KynjalFlow runtime files
|
|
1096
|
+
data/
|
|
1097
|
+
logs/
|
|
1098
|
+
sessions/
|
|
1099
|
+
neural/
|
|
1100
|
+
*.log
|
|
1101
|
+
*.tmp
|
|
1102
|
+
`;
|
|
1103
|
+
if (!fs.existsSync(gitignorePath) || options.force) {
|
|
1104
|
+
fs.writeFileSync(gitignorePath, gitignore, 'utf-8');
|
|
1105
|
+
result.created.files.push('.claude-flow/.gitignore');
|
|
1106
|
+
}
|
|
1107
|
+
// Write CAPABILITIES.md with full system overview
|
|
1108
|
+
await writeCapabilitiesDoc(targetDir, options, result);
|
|
1109
|
+
}
|
|
1110
|
+
/**
|
|
1111
|
+
* Write initial metrics files for statusline
|
|
1112
|
+
* Creates baseline data so statusline shows meaningful state instead of all zeros
|
|
1113
|
+
*/
|
|
1114
|
+
async function writeInitialMetrics(targetDir, options, result) {
|
|
1115
|
+
const metricsDir = path.join(targetDir, '.claude-flow', 'metrics');
|
|
1116
|
+
const learningDir = path.join(targetDir, '.claude-flow', 'learning');
|
|
1117
|
+
const securityDir = path.join(targetDir, '.claude-flow', 'security');
|
|
1118
|
+
// Ensure directories exist
|
|
1119
|
+
for (const dir of [metricsDir, learningDir, securityDir]) {
|
|
1120
|
+
if (!fs.existsSync(dir)) {
|
|
1121
|
+
fs.mkdirSync(dir, { recursive: true });
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
// Create initial v3-progress.json
|
|
1125
|
+
const progressPath = path.join(metricsDir, 'v3-progress.json');
|
|
1126
|
+
if (!fs.existsSync(progressPath) || options.force) {
|
|
1127
|
+
const progress = {
|
|
1128
|
+
version: '3.0.0',
|
|
1129
|
+
initialized: new Date().toISOString(),
|
|
1130
|
+
domains: {
|
|
1131
|
+
completed: 0,
|
|
1132
|
+
total: 5,
|
|
1133
|
+
status: 'INITIALIZING'
|
|
1134
|
+
},
|
|
1135
|
+
ddd: {
|
|
1136
|
+
progress: 0,
|
|
1137
|
+
modules: 0,
|
|
1138
|
+
totalFiles: 0,
|
|
1139
|
+
totalLines: 0
|
|
1140
|
+
},
|
|
1141
|
+
swarm: {
|
|
1142
|
+
activeAgents: 0,
|
|
1143
|
+
maxAgents: options.runtime.maxAgents,
|
|
1144
|
+
topology: options.runtime.topology
|
|
1145
|
+
},
|
|
1146
|
+
learning: {
|
|
1147
|
+
status: 'READY',
|
|
1148
|
+
patternsLearned: 0,
|
|
1149
|
+
sessionsCompleted: 0
|
|
1150
|
+
},
|
|
1151
|
+
_note: 'Metrics will update as you use KynjalFlow. Run: npx @kynjal/cli@latest daemon start'
|
|
1152
|
+
};
|
|
1153
|
+
fs.writeFileSync(progressPath, JSON.stringify(progress, null, 2), 'utf-8');
|
|
1154
|
+
result.created.files.push('.claude-flow/metrics/v3-progress.json');
|
|
1155
|
+
}
|
|
1156
|
+
// Create initial swarm-activity.json
|
|
1157
|
+
const activityPath = path.join(metricsDir, 'swarm-activity.json');
|
|
1158
|
+
if (!fs.existsSync(activityPath) || options.force) {
|
|
1159
|
+
const activity = {
|
|
1160
|
+
timestamp: new Date().toISOString(),
|
|
1161
|
+
processes: {
|
|
1162
|
+
agentic_flow: 0,
|
|
1163
|
+
mcp_server: 0,
|
|
1164
|
+
estimated_agents: 0
|
|
1165
|
+
},
|
|
1166
|
+
swarm: {
|
|
1167
|
+
active: false,
|
|
1168
|
+
agent_count: 0,
|
|
1169
|
+
coordination_active: false
|
|
1170
|
+
},
|
|
1171
|
+
integration: {
|
|
1172
|
+
agentic_flow_active: false,
|
|
1173
|
+
mcp_active: false
|
|
1174
|
+
},
|
|
1175
|
+
_initialized: true
|
|
1176
|
+
};
|
|
1177
|
+
fs.writeFileSync(activityPath, JSON.stringify(activity, null, 2), 'utf-8');
|
|
1178
|
+
result.created.files.push('.claude-flow/metrics/swarm-activity.json');
|
|
1179
|
+
}
|
|
1180
|
+
// Create initial learning.json
|
|
1181
|
+
const learningPath = path.join(metricsDir, 'learning.json');
|
|
1182
|
+
if (!fs.existsSync(learningPath) || options.force) {
|
|
1183
|
+
const learning = {
|
|
1184
|
+
initialized: new Date().toISOString(),
|
|
1185
|
+
routing: {
|
|
1186
|
+
accuracy: 0,
|
|
1187
|
+
decisions: 0
|
|
1188
|
+
},
|
|
1189
|
+
patterns: {
|
|
1190
|
+
shortTerm: 0,
|
|
1191
|
+
longTerm: 0,
|
|
1192
|
+
quality: 0
|
|
1193
|
+
},
|
|
1194
|
+
sessions: {
|
|
1195
|
+
total: 0,
|
|
1196
|
+
current: null
|
|
1197
|
+
},
|
|
1198
|
+
_note: 'Intelligence grows as you use KynjalFlow'
|
|
1199
|
+
};
|
|
1200
|
+
fs.writeFileSync(learningPath, JSON.stringify(learning, null, 2), 'utf-8');
|
|
1201
|
+
result.created.files.push('.claude-flow/metrics/learning.json');
|
|
1202
|
+
}
|
|
1203
|
+
// Create initial audit-status.json
|
|
1204
|
+
const auditPath = path.join(securityDir, 'audit-status.json');
|
|
1205
|
+
if (!fs.existsSync(auditPath) || options.force) {
|
|
1206
|
+
const audit = {
|
|
1207
|
+
initialized: new Date().toISOString(),
|
|
1208
|
+
status: 'PENDING',
|
|
1209
|
+
cvesFixed: 0,
|
|
1210
|
+
totalCves: 3,
|
|
1211
|
+
lastScan: null,
|
|
1212
|
+
_note: 'Run: npx @kynjal/cli@latest security scan'
|
|
1213
|
+
};
|
|
1214
|
+
fs.writeFileSync(auditPath, JSON.stringify(audit, null, 2), 'utf-8');
|
|
1215
|
+
result.created.files.push('.claude-flow/security/audit-status.json');
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
/**
|
|
1219
|
+
* Write CAPABILITIES.md - comprehensive overview of all KynjalFlow features
|
|
1220
|
+
*/
|
|
1221
|
+
async function writeCapabilitiesDoc(targetDir, options, result) {
|
|
1222
|
+
const capabilitiesPath = path.join(targetDir, '.claude-flow', 'CAPABILITIES.md');
|
|
1223
|
+
if (fs.existsSync(capabilitiesPath) && !options.force) {
|
|
1224
|
+
result.skipped.push('.claude-flow/CAPABILITIES.md');
|
|
1225
|
+
return;
|
|
1226
|
+
}
|
|
1227
|
+
const capabilities = `# KynjalFlow V3 - Complete Capabilities Reference
|
|
1228
|
+
> Generated: ${new Date().toISOString()}
|
|
1229
|
+
> Full documentation: https://github.com/KingJune28/claude-flow
|
|
1230
|
+
|
|
1231
|
+
## 📋 Table of Contents
|
|
1232
|
+
|
|
1233
|
+
1. [Overview](#overview)
|
|
1234
|
+
2. [Swarm Orchestration](#swarm-orchestration)
|
|
1235
|
+
3. [Available Agents (60+)](#available-agents)
|
|
1236
|
+
4. [CLI Commands (26 Commands, 140+ Subcommands)](#cli-commands)
|
|
1237
|
+
5. [Hooks System (27 Hooks + 12 Workers)](#hooks-system)
|
|
1238
|
+
6. [Memory & Intelligence (RuVector)](#memory--intelligence)
|
|
1239
|
+
7. [Hive-Mind Consensus](#hive-mind-consensus)
|
|
1240
|
+
8. [Performance Targets](#performance-targets)
|
|
1241
|
+
9. [Integration Ecosystem](#integration-ecosystem)
|
|
1242
|
+
|
|
1243
|
+
---
|
|
1244
|
+
|
|
1245
|
+
## Overview
|
|
1246
|
+
|
|
1247
|
+
KynjalFlow V3 is a domain-driven design architecture for multi-agent AI coordination with:
|
|
1248
|
+
|
|
1249
|
+
- **15-Agent Swarm Coordination** with hierarchical and mesh topologies
|
|
1250
|
+
- **HNSW Vector Search** - 150x-12,500x faster pattern retrieval
|
|
1251
|
+
- **SONA Neural Learning** - Self-optimizing with <0.05ms adaptation
|
|
1252
|
+
- **Byzantine Fault Tolerance** - Queen-led consensus mechanisms
|
|
1253
|
+
- **MCP Server Integration** - Model Context Protocol support
|
|
1254
|
+
|
|
1255
|
+
### Current Configuration
|
|
1256
|
+
| Setting | Value |
|
|
1257
|
+
|---------|-------|
|
|
1258
|
+
| Topology | ${options.runtime.topology} |
|
|
1259
|
+
| Max Agents | ${options.runtime.maxAgents} |
|
|
1260
|
+
| Memory Backend | ${options.runtime.memoryBackend} |
|
|
1261
|
+
| HNSW Indexing | ${options.runtime.enableHNSW ? 'Enabled' : 'Disabled'} |
|
|
1262
|
+
| Neural Learning | ${options.runtime.enableNeural ? 'Enabled' : 'Disabled'} |
|
|
1263
|
+
| LearningBridge | ${options.runtime.enableLearningBridge ? 'Enabled (SONA + ReasoningBank)' : 'Disabled'} |
|
|
1264
|
+
| Knowledge Graph | ${options.runtime.enableMemoryGraph ? 'Enabled (PageRank + Communities)' : 'Disabled'} |
|
|
1265
|
+
| Agent Scopes | ${options.runtime.enableAgentScopes ? 'Enabled (project/local/user)' : 'Disabled'} |
|
|
1266
|
+
|
|
1267
|
+
---
|
|
1268
|
+
|
|
1269
|
+
## Swarm Orchestration
|
|
1270
|
+
|
|
1271
|
+
### Topologies
|
|
1272
|
+
| Topology | Description | Best For |
|
|
1273
|
+
|----------|-------------|----------|
|
|
1274
|
+
| \`hierarchical\` | Queen controls workers directly | Anti-drift, tight control |
|
|
1275
|
+
| \`mesh\` | Fully connected peer network | Distributed tasks |
|
|
1276
|
+
| \`hierarchical-mesh\` | V3 hybrid (recommended) | 10+ agents |
|
|
1277
|
+
| \`ring\` | Circular communication | Sequential workflows |
|
|
1278
|
+
| \`star\` | Central coordinator | Simple coordination |
|
|
1279
|
+
| \`adaptive\` | Dynamic based on load | Variable workloads |
|
|
1280
|
+
|
|
1281
|
+
### Strategies
|
|
1282
|
+
- \`balanced\` - Even distribution across agents
|
|
1283
|
+
- \`specialized\` - Clear roles, no overlap (anti-drift)
|
|
1284
|
+
- \`adaptive\` - Dynamic task routing
|
|
1285
|
+
|
|
1286
|
+
### Quick Commands
|
|
1287
|
+
\`\`\`bash
|
|
1288
|
+
# Initialize swarm
|
|
1289
|
+
npx @kynjal/cli@latest swarm init --topology hierarchical --max-agents 8 --strategy specialized
|
|
1290
|
+
|
|
1291
|
+
# Check status
|
|
1292
|
+
npx @kynjal/cli@latest swarm status
|
|
1293
|
+
|
|
1294
|
+
# Monitor activity
|
|
1295
|
+
npx @kynjal/cli@latest swarm monitor
|
|
1296
|
+
\`\`\`
|
|
1297
|
+
|
|
1298
|
+
---
|
|
1299
|
+
|
|
1300
|
+
## Available Agents
|
|
1301
|
+
|
|
1302
|
+
### Core Development (5)
|
|
1303
|
+
\`coder\`, \`reviewer\`, \`tester\`, \`planner\`, \`researcher\`
|
|
1304
|
+
|
|
1305
|
+
### V3 Specialized (4)
|
|
1306
|
+
\`security-architect\`, \`security-auditor\`, \`memory-specialist\`, \`performance-engineer\`
|
|
1307
|
+
|
|
1308
|
+
### Swarm Coordination (5)
|
|
1309
|
+
\`hierarchical-coordinator\`, \`mesh-coordinator\`, \`adaptive-coordinator\`, \`collective-intelligence-coordinator\`, \`swarm-memory-manager\`
|
|
1310
|
+
|
|
1311
|
+
### Consensus & Distributed (7)
|
|
1312
|
+
\`byzantine-coordinator\`, \`raft-manager\`, \`gossip-coordinator\`, \`consensus-builder\`, \`crdt-synchronizer\`, \`quorum-manager\`, \`security-manager\`
|
|
1313
|
+
|
|
1314
|
+
### Performance & Optimization (5)
|
|
1315
|
+
\`perf-analyzer\`, \`performance-benchmarker\`, \`task-orchestrator\`, \`memory-coordinator\`, \`smart-agent\`
|
|
1316
|
+
|
|
1317
|
+
### GitHub & Repository (9)
|
|
1318
|
+
\`github-modes\`, \`pr-manager\`, \`code-review-swarm\`, \`issue-tracker\`, \`release-manager\`, \`workflow-automation\`, \`project-board-sync\`, \`repo-architect\`, \`multi-repo-swarm\`
|
|
1319
|
+
|
|
1320
|
+
### SPARC Methodology (6)
|
|
1321
|
+
\`sparc-coord\`, \`sparc-coder\`, \`specification\`, \`pseudocode\`, \`architecture\`, \`refinement\`
|
|
1322
|
+
|
|
1323
|
+
### Specialized Development (8)
|
|
1324
|
+
\`backend-dev\`, \`mobile-dev\`, \`ml-developer\`, \`cicd-engineer\`, \`api-docs\`, \`system-architect\`, \`code-analyzer\`, \`base-template-generator\`
|
|
1325
|
+
|
|
1326
|
+
### Testing & Validation (2)
|
|
1327
|
+
\`tdd-london-swarm\`, \`production-validator\`
|
|
1328
|
+
|
|
1329
|
+
### Agent Routing by Task
|
|
1330
|
+
| Task Type | Recommended Agents | Topology |
|
|
1331
|
+
|-----------|-------------------|----------|
|
|
1332
|
+
| Bug Fix | researcher, coder, tester | mesh |
|
|
1333
|
+
| New Feature | coordinator, architect, coder, tester, reviewer | hierarchical |
|
|
1334
|
+
| Refactoring | architect, coder, reviewer | mesh |
|
|
1335
|
+
| Performance | researcher, perf-engineer, coder | hierarchical |
|
|
1336
|
+
| Security | security-architect, auditor, reviewer | hierarchical |
|
|
1337
|
+
| Docs | researcher, api-docs | mesh |
|
|
1338
|
+
|
|
1339
|
+
---
|
|
1340
|
+
|
|
1341
|
+
## CLI Commands
|
|
1342
|
+
|
|
1343
|
+
### Core Commands (12)
|
|
1344
|
+
| Command | Subcommands | Description |
|
|
1345
|
+
|---------|-------------|-------------|
|
|
1346
|
+
| \`init\` | 4 | Project initialization |
|
|
1347
|
+
| \`agent\` | 8 | Agent lifecycle management |
|
|
1348
|
+
| \`swarm\` | 6 | Multi-agent coordination |
|
|
1349
|
+
| \`memory\` | 11 | AgentDB with HNSW search |
|
|
1350
|
+
| \`mcp\` | 9 | MCP server management |
|
|
1351
|
+
| \`task\` | 6 | Task assignment |
|
|
1352
|
+
| \`session\` | 7 | Session persistence |
|
|
1353
|
+
| \`config\` | 7 | Configuration |
|
|
1354
|
+
| \`status\` | 3 | System monitoring |
|
|
1355
|
+
| \`workflow\` | 6 | Workflow templates |
|
|
1356
|
+
| \`hooks\` | 17 | Self-learning hooks |
|
|
1357
|
+
| \`hive-mind\` | 6 | Consensus coordination |
|
|
1358
|
+
|
|
1359
|
+
### Advanced Commands (14)
|
|
1360
|
+
| Command | Subcommands | Description |
|
|
1361
|
+
|---------|-------------|-------------|
|
|
1362
|
+
| \`daemon\` | 5 | Background workers |
|
|
1363
|
+
| \`neural\` | 5 | Pattern training |
|
|
1364
|
+
| \`security\` | 6 | Security scanning |
|
|
1365
|
+
| \`performance\` | 5 | Profiling & benchmarks |
|
|
1366
|
+
| \`providers\` | 5 | AI provider config |
|
|
1367
|
+
| \`plugins\` | 5 | Plugin management |
|
|
1368
|
+
| \`deployment\` | 5 | Deploy management |
|
|
1369
|
+
| \`embeddings\` | 4 | Vector embeddings |
|
|
1370
|
+
| \`claims\` | 4 | Authorization |
|
|
1371
|
+
| \`migrate\` | 5 | V2→V3 migration |
|
|
1372
|
+
| \`process\` | 4 | Process management |
|
|
1373
|
+
| \`doctor\` | 1 | Health diagnostics |
|
|
1374
|
+
| \`completions\` | 4 | Shell completions |
|
|
1375
|
+
|
|
1376
|
+
### Example Commands
|
|
1377
|
+
\`\`\`bash
|
|
1378
|
+
# Initialize
|
|
1379
|
+
npx @kynjal/cli@latest init --wizard
|
|
1380
|
+
|
|
1381
|
+
# Spawn agent
|
|
1382
|
+
npx @kynjal/cli@latest agent spawn -t coder --name my-coder
|
|
1383
|
+
|
|
1384
|
+
# Memory operations
|
|
1385
|
+
npx @kynjal/cli@latest memory store --key "pattern" --value "data" --namespace patterns
|
|
1386
|
+
npx @kynjal/cli@latest memory search --query "authentication"
|
|
1387
|
+
|
|
1388
|
+
# Diagnostics
|
|
1389
|
+
npx @kynjal/cli@latest doctor --fix
|
|
1390
|
+
\`\`\`
|
|
1391
|
+
|
|
1392
|
+
---
|
|
1393
|
+
|
|
1394
|
+
## Hooks System
|
|
1395
|
+
|
|
1396
|
+
### 27 Available Hooks
|
|
1397
|
+
|
|
1398
|
+
#### Core Hooks (6)
|
|
1399
|
+
| Hook | Description |
|
|
1400
|
+
|------|-------------|
|
|
1401
|
+
| \`pre-edit\` | Context before file edits |
|
|
1402
|
+
| \`post-edit\` | Record edit outcomes |
|
|
1403
|
+
| \`pre-command\` | Risk assessment |
|
|
1404
|
+
| \`post-command\` | Command metrics |
|
|
1405
|
+
| \`pre-task\` | Task start + agent suggestions |
|
|
1406
|
+
| \`post-task\` | Task completion learning |
|
|
1407
|
+
|
|
1408
|
+
#### Session Hooks (4)
|
|
1409
|
+
| Hook | Description |
|
|
1410
|
+
|------|-------------|
|
|
1411
|
+
| \`session-start\` | Start/restore session |
|
|
1412
|
+
| \`session-end\` | Persist state |
|
|
1413
|
+
| \`session-restore\` | Restore previous |
|
|
1414
|
+
| \`notify\` | Cross-agent notifications |
|
|
1415
|
+
|
|
1416
|
+
#### Intelligence Hooks (5)
|
|
1417
|
+
| Hook | Description |
|
|
1418
|
+
|------|-------------|
|
|
1419
|
+
| \`route\` | Optimal agent routing |
|
|
1420
|
+
| \`explain\` | Routing decisions |
|
|
1421
|
+
| \`pretrain\` | Bootstrap intelligence |
|
|
1422
|
+
| \`build-agents\` | Generate configs |
|
|
1423
|
+
| \`transfer\` | Pattern transfer |
|
|
1424
|
+
|
|
1425
|
+
#### Coverage Hooks (3)
|
|
1426
|
+
| Hook | Description |
|
|
1427
|
+
|------|-------------|
|
|
1428
|
+
| \`coverage-route\` | Coverage-based routing |
|
|
1429
|
+
| \`coverage-suggest\` | Improvement suggestions |
|
|
1430
|
+
| \`coverage-gaps\` | Gap analysis |
|
|
1431
|
+
|
|
1432
|
+
### 12 Background Workers
|
|
1433
|
+
| Worker | Priority | Purpose |
|
|
1434
|
+
|--------|----------|---------|
|
|
1435
|
+
| \`ultralearn\` | normal | Deep knowledge |
|
|
1436
|
+
| \`optimize\` | high | Performance |
|
|
1437
|
+
| \`consolidate\` | low | Memory consolidation |
|
|
1438
|
+
| \`predict\` | normal | Predictive preload |
|
|
1439
|
+
| \`audit\` | critical | Security |
|
|
1440
|
+
| \`map\` | normal | Codebase mapping |
|
|
1441
|
+
| \`preload\` | low | Resource preload |
|
|
1442
|
+
| \`deepdive\` | normal | Deep analysis |
|
|
1443
|
+
| \`document\` | normal | Auto-docs |
|
|
1444
|
+
| \`refactor\` | normal | Suggestions |
|
|
1445
|
+
| \`benchmark\` | normal | Benchmarking |
|
|
1446
|
+
| \`testgaps\` | normal | Coverage gaps |
|
|
1447
|
+
|
|
1448
|
+
---
|
|
1449
|
+
|
|
1450
|
+
## Memory & Intelligence
|
|
1451
|
+
|
|
1452
|
+
### RuVector Intelligence System
|
|
1453
|
+
- **SONA**: Self-Optimizing Neural Architecture (<0.05ms)
|
|
1454
|
+
- **MoE**: Mixture of Experts routing
|
|
1455
|
+
- **HNSW**: 150x-12,500x faster search
|
|
1456
|
+
- **EWC++**: Prevents catastrophic forgetting
|
|
1457
|
+
- **Flash Attention**: 2.49x-7.47x speedup
|
|
1458
|
+
- **Int8 Quantization**: 3.92x memory reduction
|
|
1459
|
+
|
|
1460
|
+
### 4-Step Intelligence Pipeline
|
|
1461
|
+
1. **RETRIEVE** - HNSW pattern search
|
|
1462
|
+
2. **JUDGE** - Success/failure verdicts
|
|
1463
|
+
3. **DISTILL** - LoRA learning extraction
|
|
1464
|
+
4. **CONSOLIDATE** - EWC++ preservation
|
|
1465
|
+
|
|
1466
|
+
### Self-Learning Memory (ADR-049)
|
|
1467
|
+
|
|
1468
|
+
| Component | Status | Description |
|
|
1469
|
+
|-----------|--------|-------------|
|
|
1470
|
+
| **LearningBridge** | ${options.runtime.enableLearningBridge ? '✅ Enabled' : '⏸ Disabled'} | Connects insights to SONA/ReasoningBank neural pipeline |
|
|
1471
|
+
| **MemoryGraph** | ${options.runtime.enableMemoryGraph ? '✅ Enabled' : '⏸ Disabled'} | PageRank knowledge graph + community detection |
|
|
1472
|
+
| **AgentMemoryScope** | ${options.runtime.enableAgentScopes ? '✅ Enabled' : '⏸ Disabled'} | 3-scope agent memory (project/local/user) |
|
|
1473
|
+
|
|
1474
|
+
**LearningBridge** - Insights trigger learning trajectories. Confidence evolves: +0.03 on access, -0.005/hour decay. Consolidation runs the JUDGE/DISTILL/CONSOLIDATE pipeline.
|
|
1475
|
+
|
|
1476
|
+
**MemoryGraph** - Builds a knowledge graph from entry references. PageRank identifies influential insights. Communities group related knowledge. Graph-aware ranking blends vector + structural scores.
|
|
1477
|
+
|
|
1478
|
+
**AgentMemoryScope** - Maps Claude Code 3-scope directories:
|
|
1479
|
+
- \`project\`: \`<gitRoot>/.claude/agent-memory/<agent>/\`
|
|
1480
|
+
- \`local\`: \`<gitRoot>/.claude/agent-memory-local/<agent>/\`
|
|
1481
|
+
- \`user\`: \`~/.claude/agent-memory/<agent>/\`
|
|
1482
|
+
|
|
1483
|
+
High-confidence insights (>0.8) can transfer between agents.
|
|
1484
|
+
|
|
1485
|
+
### Memory Commands
|
|
1486
|
+
\`\`\`bash
|
|
1487
|
+
# Store pattern
|
|
1488
|
+
npx @kynjal/cli@latest memory store --key "name" --value "data" --namespace patterns
|
|
1489
|
+
|
|
1490
|
+
# Semantic search
|
|
1491
|
+
npx @kynjal/cli@latest memory search --query "authentication"
|
|
1492
|
+
|
|
1493
|
+
# List entries
|
|
1494
|
+
npx @kynjal/cli@latest memory list --namespace patterns
|
|
1495
|
+
|
|
1496
|
+
# Initialize database
|
|
1497
|
+
npx @kynjal/cli@latest memory init --force
|
|
1498
|
+
\`\`\`
|
|
1499
|
+
|
|
1500
|
+
---
|
|
1501
|
+
|
|
1502
|
+
## Hive-Mind Consensus
|
|
1503
|
+
|
|
1504
|
+
### Queen Types
|
|
1505
|
+
| Type | Role |
|
|
1506
|
+
|------|------|
|
|
1507
|
+
| Strategic Queen | Long-term planning |
|
|
1508
|
+
| Tactical Queen | Execution coordination |
|
|
1509
|
+
| Adaptive Queen | Dynamic optimization |
|
|
1510
|
+
|
|
1511
|
+
### Worker Types (8)
|
|
1512
|
+
\`researcher\`, \`coder\`, \`analyst\`, \`tester\`, \`architect\`, \`reviewer\`, \`optimizer\`, \`documenter\`
|
|
1513
|
+
|
|
1514
|
+
### Consensus Mechanisms
|
|
1515
|
+
| Mechanism | Fault Tolerance | Use Case |
|
|
1516
|
+
|-----------|-----------------|----------|
|
|
1517
|
+
| \`byzantine\` | f < n/3 faulty | Adversarial |
|
|
1518
|
+
| \`raft\` | f < n/2 failed | Leader-based |
|
|
1519
|
+
| \`gossip\` | Eventually consistent | Large scale |
|
|
1520
|
+
| \`crdt\` | Conflict-free | Distributed |
|
|
1521
|
+
| \`quorum\` | Configurable | Flexible |
|
|
1522
|
+
|
|
1523
|
+
### Hive-Mind Commands
|
|
1524
|
+
\`\`\`bash
|
|
1525
|
+
# Initialize
|
|
1526
|
+
npx @kynjal/cli@latest hive-mind init --queen-type strategic
|
|
1527
|
+
|
|
1528
|
+
# Status
|
|
1529
|
+
npx @kynjal/cli@latest hive-mind status
|
|
1530
|
+
|
|
1531
|
+
# Spawn workers
|
|
1532
|
+
npx @kynjal/cli@latest hive-mind spawn --count 5 --type worker
|
|
1533
|
+
|
|
1534
|
+
# Consensus
|
|
1535
|
+
npx @kynjal/cli@latest hive-mind consensus --propose "task"
|
|
1536
|
+
\`\`\`
|
|
1537
|
+
|
|
1538
|
+
---
|
|
1539
|
+
|
|
1540
|
+
## Performance Targets
|
|
1541
|
+
|
|
1542
|
+
| Metric | Target | Status |
|
|
1543
|
+
|--------|--------|--------|
|
|
1544
|
+
| HNSW Search | 150x-12,500x faster | ✅ Implemented |
|
|
1545
|
+
| Memory Reduction | 50-75% | ✅ Implemented (3.92x) |
|
|
1546
|
+
| SONA Integration | Pattern learning | ✅ Implemented |
|
|
1547
|
+
| Flash Attention | 2.49x-7.47x | 🔄 In Progress |
|
|
1548
|
+
| MCP Response | <100ms | ✅ Achieved |
|
|
1549
|
+
| CLI Startup | <500ms | ✅ Achieved |
|
|
1550
|
+
| SONA Adaptation | <0.05ms | 🔄 In Progress |
|
|
1551
|
+
| Graph Build (1k) | <200ms | ✅ 2.78ms (71.9x headroom) |
|
|
1552
|
+
| PageRank (1k) | <100ms | ✅ 12.21ms (8.2x headroom) |
|
|
1553
|
+
| Insight Recording | <5ms/each | ✅ 0.12ms (41x headroom) |
|
|
1554
|
+
| Consolidation | <500ms | ✅ 0.26ms (1,955x headroom) |
|
|
1555
|
+
| Knowledge Transfer | <100ms | ✅ 1.25ms (80x headroom) |
|
|
1556
|
+
|
|
1557
|
+
---
|
|
1558
|
+
|
|
1559
|
+
## Integration Ecosystem
|
|
1560
|
+
|
|
1561
|
+
### Integrated Packages
|
|
1562
|
+
| Package | Version | Purpose |
|
|
1563
|
+
|---------|---------|---------|
|
|
1564
|
+
| agentic-flow | 2.0.1-alpha | Core coordination |
|
|
1565
|
+
| agentdb | 2.0.0-alpha.3.4 | Vector database |
|
|
1566
|
+
| @ruvector/attention | 0.1.3 | Flash attention |
|
|
1567
|
+
| @ruvector/sona | 0.1.5 | Neural learning |
|
|
1568
|
+
|
|
1569
|
+
### Optional Integrations
|
|
1570
|
+
| Package | Command |
|
|
1571
|
+
|---------|---------|
|
|
1572
|
+
| ruv-swarm | \`npx ruv-swarm mcp start\` |
|
|
1573
|
+
| flow-nexus | \`npx flow-nexus@latest mcp start\` |
|
|
1574
|
+
| agentic-jujutsu | \`npx agentic-jujutsu@latest\` |
|
|
1575
|
+
|
|
1576
|
+
### MCP Server Setup
|
|
1577
|
+
\`\`\`bash
|
|
1578
|
+
# Add KynjalFlow MCP
|
|
1579
|
+
claude mcp add claude-flow -- npx -y @claude-flow/cli@latest
|
|
1580
|
+
|
|
1581
|
+
# Optional servers
|
|
1582
|
+
claude mcp add ruv-swarm -- npx -y ruv-swarm mcp start
|
|
1583
|
+
claude mcp add flow-nexus -- npx -y flow-nexus@latest mcp start
|
|
1584
|
+
\`\`\`
|
|
1585
|
+
|
|
1586
|
+
---
|
|
1587
|
+
|
|
1588
|
+
## Quick Reference
|
|
1589
|
+
|
|
1590
|
+
### Essential Commands
|
|
1591
|
+
\`\`\`bash
|
|
1592
|
+
# Setup
|
|
1593
|
+
npx @kynjal/cli@latest init --wizard
|
|
1594
|
+
npx @kynjal/cli@latest daemon start
|
|
1595
|
+
npx @kynjal/cli@latest doctor --fix
|
|
1596
|
+
|
|
1597
|
+
# Swarm
|
|
1598
|
+
npx @kynjal/cli@latest swarm init --topology hierarchical --max-agents 8
|
|
1599
|
+
npx @kynjal/cli@latest swarm status
|
|
1600
|
+
|
|
1601
|
+
# Agents
|
|
1602
|
+
npx @kynjal/cli@latest agent spawn -t coder
|
|
1603
|
+
npx @kynjal/cli@latest agent list
|
|
1604
|
+
|
|
1605
|
+
# Memory
|
|
1606
|
+
npx @kynjal/cli@latest memory search --query "patterns"
|
|
1607
|
+
|
|
1608
|
+
# Hooks
|
|
1609
|
+
npx @kynjal/cli@latest hooks pre-task --description "task"
|
|
1610
|
+
npx @kynjal/cli@latest hooks worker dispatch --trigger optimize
|
|
1611
|
+
\`\`\`
|
|
1612
|
+
|
|
1613
|
+
### File Structure
|
|
1614
|
+
\`\`\`
|
|
1615
|
+
.claude-flow/
|
|
1616
|
+
├── config.yaml # Runtime configuration
|
|
1617
|
+
├── CAPABILITIES.md # This file
|
|
1618
|
+
├── data/ # Memory storage
|
|
1619
|
+
├── logs/ # Operation logs
|
|
1620
|
+
├── sessions/ # Session state
|
|
1621
|
+
├── hooks/ # Custom hooks
|
|
1622
|
+
├── agents/ # Agent configs
|
|
1623
|
+
└── workflows/ # Workflow templates
|
|
1624
|
+
\`\`\`
|
|
1625
|
+
|
|
1626
|
+
---
|
|
1627
|
+
|
|
1628
|
+
**Full Documentation**: https://github.com/KingJune28/claude-flow
|
|
1629
|
+
**Issues**: https://github.com/KingJune28/claude-flow/issues
|
|
1630
|
+
`;
|
|
1631
|
+
fs.writeFileSync(capabilitiesPath, capabilities, 'utf-8');
|
|
1632
|
+
result.created.files.push('.claude-flow/CAPABILITIES.md');
|
|
1633
|
+
}
|
|
1634
|
+
/**
|
|
1635
|
+
* Write CLAUDE.md with swarm guidance
|
|
1636
|
+
*/
|
|
1637
|
+
async function writeClaudeMd(targetDir, options, result) {
|
|
1638
|
+
const claudeMdPath = path.join(targetDir, 'CLAUDE.md');
|
|
1639
|
+
if (fs.existsSync(claudeMdPath) && !options.force) {
|
|
1640
|
+
result.skipped.push('CLAUDE.md');
|
|
1641
|
+
return;
|
|
1642
|
+
}
|
|
1643
|
+
// Determine template: explicit option > infer from components > 'standard'
|
|
1644
|
+
const inferredTemplate = (!options.components.commands && !options.components.agents) ? 'minimal' : undefined;
|
|
1645
|
+
const content = generateClaudeMd(options, inferredTemplate);
|
|
1646
|
+
fs.writeFileSync(claudeMdPath, content, 'utf-8');
|
|
1647
|
+
result.created.files.push('CLAUDE.md');
|
|
1648
|
+
}
|
|
1649
|
+
/**
|
|
1650
|
+
* Find source directory for skills/commands/agents
|
|
1651
|
+
*/
|
|
1652
|
+
function findSourceDir(type, sourceBaseDir) {
|
|
1653
|
+
// Build list of possible paths to check
|
|
1654
|
+
const possiblePaths = [];
|
|
1655
|
+
// If explicit source base directory is provided, use it first
|
|
1656
|
+
if (sourceBaseDir) {
|
|
1657
|
+
possiblePaths.push(path.join(sourceBaseDir, '.claude', type));
|
|
1658
|
+
}
|
|
1659
|
+
// IMPORTANT: Check the package's own .claude directory first
|
|
1660
|
+
// This is the primary path when running as an npm package
|
|
1661
|
+
// __dirname is typically /path/to/node_modules/@claude-flow/cli/dist/src/init
|
|
1662
|
+
// We need to go up 3 levels to reach the package root (dist/src/init -> dist/src -> dist -> root)
|
|
1663
|
+
const packageRoot = path.resolve(__dirname, '..', '..', '..');
|
|
1664
|
+
const packageDotClaude = path.join(packageRoot, '.claude', type);
|
|
1665
|
+
if (fs.existsSync(packageDotClaude)) {
|
|
1666
|
+
possiblePaths.unshift(packageDotClaude); // Add to beginning (highest priority)
|
|
1667
|
+
}
|
|
1668
|
+
// From dist/src/init -> go up to project root
|
|
1669
|
+
const distPath = __dirname;
|
|
1670
|
+
// Try to find the project root by looking for .claude directory
|
|
1671
|
+
let currentDir = distPath;
|
|
1672
|
+
for (let i = 0; i < 10; i++) {
|
|
1673
|
+
const parentDir = path.dirname(currentDir);
|
|
1674
|
+
const dotClaudePath = path.join(parentDir, '.claude', type);
|
|
1675
|
+
if (fs.existsSync(dotClaudePath)) {
|
|
1676
|
+
possiblePaths.push(dotClaudePath);
|
|
1677
|
+
}
|
|
1678
|
+
currentDir = parentDir;
|
|
1679
|
+
}
|
|
1680
|
+
// Also check relative to process.cwd() for development
|
|
1681
|
+
const cwdBased = [
|
|
1682
|
+
path.join(process.cwd(), '.claude', type),
|
|
1683
|
+
path.join(process.cwd(), '..', '.claude', type),
|
|
1684
|
+
path.join(process.cwd(), '..', '..', '.claude', type),
|
|
1685
|
+
];
|
|
1686
|
+
possiblePaths.push(...cwdBased);
|
|
1687
|
+
// Check v2 directory for agents
|
|
1688
|
+
if (type === 'agents') {
|
|
1689
|
+
possiblePaths.push(path.join(process.cwd(), 'v2', '.claude', type), path.join(process.cwd(), '..', 'v2', '.claude', type));
|
|
1690
|
+
}
|
|
1691
|
+
// Plugin directory
|
|
1692
|
+
possiblePaths.push(path.join(process.cwd(), 'plugin', type), path.join(process.cwd(), '..', 'plugin', type));
|
|
1693
|
+
for (const p of possiblePaths) {
|
|
1694
|
+
if (fs.existsSync(p)) {
|
|
1695
|
+
return p;
|
|
1696
|
+
}
|
|
1697
|
+
}
|
|
1698
|
+
return null;
|
|
1699
|
+
}
|
|
1700
|
+
/**
|
|
1701
|
+
* Copy directory recursively
|
|
1702
|
+
*/
|
|
1703
|
+
function copyDirRecursive(src, dest) {
|
|
1704
|
+
fs.mkdirSync(dest, { recursive: true });
|
|
1705
|
+
const entries = fs.readdirSync(src, { withFileTypes: true });
|
|
1706
|
+
for (const entry of entries) {
|
|
1707
|
+
const srcPath = path.join(src, entry.name);
|
|
1708
|
+
const destPath = path.join(dest, entry.name);
|
|
1709
|
+
if (entry.isDirectory()) {
|
|
1710
|
+
copyDirRecursive(srcPath, destPath);
|
|
1711
|
+
}
|
|
1712
|
+
else {
|
|
1713
|
+
fs.copyFileSync(srcPath, destPath);
|
|
1714
|
+
}
|
|
1715
|
+
}
|
|
1716
|
+
}
|
|
1717
|
+
/**
|
|
1718
|
+
* Count files with extension in directory
|
|
1719
|
+
*/
|
|
1720
|
+
function countFiles(dir, ext) {
|
|
1721
|
+
let count = 0;
|
|
1722
|
+
const entries = fs.readdirSync(dir, { withFileTypes: true });
|
|
1723
|
+
for (const entry of entries) {
|
|
1724
|
+
const fullPath = path.join(dir, entry.name);
|
|
1725
|
+
if (entry.isDirectory()) {
|
|
1726
|
+
count += countFiles(fullPath, ext);
|
|
1727
|
+
}
|
|
1728
|
+
else if (entry.name.endsWith(ext)) {
|
|
1729
|
+
count++;
|
|
1730
|
+
}
|
|
1731
|
+
}
|
|
1732
|
+
return count;
|
|
1733
|
+
}
|
|
1734
|
+
/**
|
|
1735
|
+
* Count enabled hooks
|
|
1736
|
+
*/
|
|
1737
|
+
function countEnabledHooks(options) {
|
|
1738
|
+
const hooks = options.hooks;
|
|
1739
|
+
let count = 0;
|
|
1740
|
+
if (hooks.preToolUse)
|
|
1741
|
+
count++;
|
|
1742
|
+
if (hooks.postToolUse)
|
|
1743
|
+
count++;
|
|
1744
|
+
if (hooks.userPromptSubmit)
|
|
1745
|
+
count++;
|
|
1746
|
+
if (hooks.sessionStart)
|
|
1747
|
+
count++;
|
|
1748
|
+
if (hooks.stop)
|
|
1749
|
+
count++;
|
|
1750
|
+
if (hooks.preCompact)
|
|
1751
|
+
count++;
|
|
1752
|
+
if (hooks.notification)
|
|
1753
|
+
count++;
|
|
1754
|
+
return count;
|
|
1755
|
+
}
|
|
1756
|
+
export default executeInit;
|
|
1757
|
+
//# sourceMappingURL=executor.js.map
|