kynjal-cli 2.0.6 → 3.1.0
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 +1760 -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 +289 -0
- package/dist/src/init/types.d.ts.map +1 -0
- package/dist/src/init/types.js +261 -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,356 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Production Monitoring and Observability
|
|
3
|
+
*
|
|
4
|
+
* Provides monitoring hooks for:
|
|
5
|
+
* - Request/response metrics
|
|
6
|
+
* - Error tracking
|
|
7
|
+
* - Performance monitoring
|
|
8
|
+
* - Health checks
|
|
9
|
+
* - Alerting
|
|
10
|
+
*
|
|
11
|
+
* @module @claude-flow/cli/production/monitoring
|
|
12
|
+
*/
|
|
13
|
+
// ============================================================================
|
|
14
|
+
// Default Configuration
|
|
15
|
+
// ============================================================================
|
|
16
|
+
const DEFAULT_CONFIG = {
|
|
17
|
+
enabled: true,
|
|
18
|
+
retentionMs: 3600000, // 1 hour
|
|
19
|
+
maxMetrics: 100000,
|
|
20
|
+
samplingRate: 1.0,
|
|
21
|
+
alertThresholds: {
|
|
22
|
+
'error_rate': { warning: 0.05, critical: 0.1 },
|
|
23
|
+
'response_time_ms': { warning: 1000, critical: 5000 },
|
|
24
|
+
'active_requests': { warning: 100, critical: 500 },
|
|
25
|
+
},
|
|
26
|
+
healthCheckIntervalMs: 30000,
|
|
27
|
+
globalLabels: {},
|
|
28
|
+
};
|
|
29
|
+
// ============================================================================
|
|
30
|
+
// Monitoring Implementation
|
|
31
|
+
// ============================================================================
|
|
32
|
+
export class MonitoringHooks {
|
|
33
|
+
config;
|
|
34
|
+
metrics = [];
|
|
35
|
+
responseTimes = [];
|
|
36
|
+
alerts = [];
|
|
37
|
+
healthStatus;
|
|
38
|
+
startTime = Date.now();
|
|
39
|
+
activeRequests = 0;
|
|
40
|
+
requestCount = 0;
|
|
41
|
+
errorCount = 0;
|
|
42
|
+
healthChecks = new Map();
|
|
43
|
+
constructor(config = {}) {
|
|
44
|
+
this.config = { ...DEFAULT_CONFIG, ...config };
|
|
45
|
+
this.healthStatus = {
|
|
46
|
+
healthy: true,
|
|
47
|
+
checks: {},
|
|
48
|
+
timestamp: Date.now(),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
// ============================================================================
|
|
52
|
+
// Metrics Collection
|
|
53
|
+
// ============================================================================
|
|
54
|
+
/**
|
|
55
|
+
* Record a counter metric
|
|
56
|
+
*/
|
|
57
|
+
counter(name, value = 1, labels = {}) {
|
|
58
|
+
this.recordMetric(name, 'counter', value, labels);
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Record a gauge metric
|
|
62
|
+
*/
|
|
63
|
+
gauge(name, value, labels = {}) {
|
|
64
|
+
this.recordMetric(name, 'gauge', value, labels);
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Record a histogram metric
|
|
68
|
+
*/
|
|
69
|
+
histogram(name, value, labels = {}) {
|
|
70
|
+
this.recordMetric(name, 'histogram', value, labels);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Record a metric event
|
|
74
|
+
*/
|
|
75
|
+
recordMetric(name, type, value, labels) {
|
|
76
|
+
if (!this.config.enabled)
|
|
77
|
+
return;
|
|
78
|
+
// Apply sampling
|
|
79
|
+
if (Math.random() > this.config.samplingRate)
|
|
80
|
+
return;
|
|
81
|
+
const event = {
|
|
82
|
+
name,
|
|
83
|
+
type,
|
|
84
|
+
value,
|
|
85
|
+
labels: { ...this.config.globalLabels, ...labels },
|
|
86
|
+
timestamp: Date.now(),
|
|
87
|
+
};
|
|
88
|
+
this.metrics.push(event);
|
|
89
|
+
// Check alerts
|
|
90
|
+
this.checkAlerts(name, value);
|
|
91
|
+
// Cleanup old metrics
|
|
92
|
+
this.cleanupMetrics();
|
|
93
|
+
}
|
|
94
|
+
// ============================================================================
|
|
95
|
+
// Request Tracking
|
|
96
|
+
// ============================================================================
|
|
97
|
+
/**
|
|
98
|
+
* Start tracking a request
|
|
99
|
+
*/
|
|
100
|
+
startRequest(requestId) {
|
|
101
|
+
this.activeRequests++;
|
|
102
|
+
this.requestCount++;
|
|
103
|
+
const startTime = Date.now();
|
|
104
|
+
this.counter('request_started', 1, { requestId });
|
|
105
|
+
// Return end function
|
|
106
|
+
return () => {
|
|
107
|
+
this.activeRequests--;
|
|
108
|
+
const duration = Date.now() - startTime;
|
|
109
|
+
this.responseTimes.push(duration);
|
|
110
|
+
this.histogram('response_time_ms', duration, { requestId });
|
|
111
|
+
// Keep only last 1000 response times
|
|
112
|
+
if (this.responseTimes.length > 1000) {
|
|
113
|
+
this.responseTimes = this.responseTimes.slice(-1000);
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Record an error
|
|
119
|
+
*/
|
|
120
|
+
recordError(error, labels = {}) {
|
|
121
|
+
this.errorCount++;
|
|
122
|
+
this.counter('error', 1, {
|
|
123
|
+
...labels,
|
|
124
|
+
errorType: error.name,
|
|
125
|
+
errorMessage: error.message.slice(0, 100),
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
// ============================================================================
|
|
129
|
+
// Health Checks
|
|
130
|
+
// ============================================================================
|
|
131
|
+
/**
|
|
132
|
+
* Register a health check
|
|
133
|
+
*/
|
|
134
|
+
registerHealthCheck(name, check) {
|
|
135
|
+
this.healthChecks.set(name, check);
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Run all health checks
|
|
139
|
+
*/
|
|
140
|
+
async runHealthChecks() {
|
|
141
|
+
const checks = {};
|
|
142
|
+
let allHealthy = true;
|
|
143
|
+
for (const [name, check] of this.healthChecks) {
|
|
144
|
+
const startTime = Date.now();
|
|
145
|
+
try {
|
|
146
|
+
const result = await check();
|
|
147
|
+
checks[name] = {
|
|
148
|
+
status: result.healthy ? 'healthy' : 'unhealthy',
|
|
149
|
+
message: result.message,
|
|
150
|
+
lastCheck: Date.now(),
|
|
151
|
+
responseTimeMs: Date.now() - startTime,
|
|
152
|
+
};
|
|
153
|
+
if (!result.healthy)
|
|
154
|
+
allHealthy = false;
|
|
155
|
+
}
|
|
156
|
+
catch (error) {
|
|
157
|
+
checks[name] = {
|
|
158
|
+
status: 'unhealthy',
|
|
159
|
+
message: error.message,
|
|
160
|
+
lastCheck: Date.now(),
|
|
161
|
+
responseTimeMs: Date.now() - startTime,
|
|
162
|
+
};
|
|
163
|
+
allHealthy = false;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
this.healthStatus = {
|
|
167
|
+
healthy: allHealthy,
|
|
168
|
+
checks,
|
|
169
|
+
timestamp: Date.now(),
|
|
170
|
+
};
|
|
171
|
+
return this.healthStatus;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Get current health status
|
|
175
|
+
*/
|
|
176
|
+
getHealthStatus() {
|
|
177
|
+
return this.healthStatus;
|
|
178
|
+
}
|
|
179
|
+
// ============================================================================
|
|
180
|
+
// Performance Metrics
|
|
181
|
+
// ============================================================================
|
|
182
|
+
/**
|
|
183
|
+
* Get performance metrics
|
|
184
|
+
*/
|
|
185
|
+
getPerformanceMetrics() {
|
|
186
|
+
const sortedTimes = [...this.responseTimes].sort((a, b) => a - b);
|
|
187
|
+
const count = sortedTimes.length;
|
|
188
|
+
const percentile = (p) => {
|
|
189
|
+
if (count === 0)
|
|
190
|
+
return 0;
|
|
191
|
+
const index = Math.ceil(count * p) - 1;
|
|
192
|
+
return sortedTimes[Math.min(index, count - 1)];
|
|
193
|
+
};
|
|
194
|
+
const avgResponseTime = count > 0
|
|
195
|
+
? sortedTimes.reduce((a, b) => a + b, 0) / count
|
|
196
|
+
: 0;
|
|
197
|
+
return {
|
|
198
|
+
requestCount: this.requestCount,
|
|
199
|
+
errorCount: this.errorCount,
|
|
200
|
+
errorRate: this.requestCount > 0 ? this.errorCount / this.requestCount : 0,
|
|
201
|
+
avgResponseTimeMs: Math.round(avgResponseTime),
|
|
202
|
+
p50ResponseTimeMs: percentile(0.5),
|
|
203
|
+
p95ResponseTimeMs: percentile(0.95),
|
|
204
|
+
p99ResponseTimeMs: percentile(0.99),
|
|
205
|
+
activeRequests: this.activeRequests,
|
|
206
|
+
uptime: Date.now() - this.startTime,
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
// ============================================================================
|
|
210
|
+
// Alerting
|
|
211
|
+
// ============================================================================
|
|
212
|
+
/**
|
|
213
|
+
* Get active alerts
|
|
214
|
+
*/
|
|
215
|
+
getAlerts(level) {
|
|
216
|
+
let filtered = this.alerts.filter(a => !a.acknowledged);
|
|
217
|
+
if (level) {
|
|
218
|
+
filtered = filtered.filter(a => a.level === level);
|
|
219
|
+
}
|
|
220
|
+
return filtered;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Acknowledge an alert
|
|
224
|
+
*/
|
|
225
|
+
acknowledgeAlert(alertId) {
|
|
226
|
+
const alert = this.alerts.find(a => a.id === alertId);
|
|
227
|
+
if (alert) {
|
|
228
|
+
alert.acknowledged = true;
|
|
229
|
+
return true;
|
|
230
|
+
}
|
|
231
|
+
return false;
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* Clear all alerts
|
|
235
|
+
*/
|
|
236
|
+
clearAlerts() {
|
|
237
|
+
this.alerts = [];
|
|
238
|
+
}
|
|
239
|
+
// ============================================================================
|
|
240
|
+
// Data Export
|
|
241
|
+
// ============================================================================
|
|
242
|
+
/**
|
|
243
|
+
* Get metrics for a specific name
|
|
244
|
+
*/
|
|
245
|
+
getMetrics(name, since) {
|
|
246
|
+
let filtered = this.metrics.filter(m => m.name === name);
|
|
247
|
+
if (since) {
|
|
248
|
+
filtered = filtered.filter(m => m.timestamp >= since);
|
|
249
|
+
}
|
|
250
|
+
return filtered;
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* Get all metrics summary
|
|
254
|
+
*/
|
|
255
|
+
getMetricsSummary() {
|
|
256
|
+
const summary = {};
|
|
257
|
+
for (const metric of this.metrics) {
|
|
258
|
+
if (!summary[metric.name]) {
|
|
259
|
+
summary[metric.name] = { count: 0, sum: 0, lastValue: 0 };
|
|
260
|
+
}
|
|
261
|
+
summary[metric.name].count++;
|
|
262
|
+
summary[metric.name].sum += metric.value;
|
|
263
|
+
summary[metric.name].lastValue = metric.value;
|
|
264
|
+
}
|
|
265
|
+
const result = {};
|
|
266
|
+
for (const [name, data] of Object.entries(summary)) {
|
|
267
|
+
result[name] = {
|
|
268
|
+
count: data.count,
|
|
269
|
+
lastValue: data.lastValue,
|
|
270
|
+
avgValue: data.count > 0 ? data.sum / data.count : 0,
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
return result;
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Reset all metrics
|
|
277
|
+
*/
|
|
278
|
+
reset() {
|
|
279
|
+
this.metrics = [];
|
|
280
|
+
this.responseTimes = [];
|
|
281
|
+
this.alerts = [];
|
|
282
|
+
this.requestCount = 0;
|
|
283
|
+
this.errorCount = 0;
|
|
284
|
+
this.activeRequests = 0;
|
|
285
|
+
this.startTime = Date.now();
|
|
286
|
+
}
|
|
287
|
+
// ============================================================================
|
|
288
|
+
// Private Methods
|
|
289
|
+
// ============================================================================
|
|
290
|
+
checkAlerts(name, value) {
|
|
291
|
+
const thresholds = this.config.alertThresholds[name];
|
|
292
|
+
if (!thresholds)
|
|
293
|
+
return;
|
|
294
|
+
let level = null;
|
|
295
|
+
let threshold = 0;
|
|
296
|
+
if (value >= thresholds.critical) {
|
|
297
|
+
level = 'critical';
|
|
298
|
+
threshold = thresholds.critical;
|
|
299
|
+
}
|
|
300
|
+
else if (value >= thresholds.warning) {
|
|
301
|
+
level = 'warning';
|
|
302
|
+
threshold = thresholds.warning;
|
|
303
|
+
}
|
|
304
|
+
if (level) {
|
|
305
|
+
// Check if we already have a recent alert for this metric
|
|
306
|
+
const recentAlert = this.alerts.find(a => a.metric === name &&
|
|
307
|
+
!a.acknowledged &&
|
|
308
|
+
Date.now() - a.timestamp < 60000);
|
|
309
|
+
if (!recentAlert) {
|
|
310
|
+
this.alerts.push({
|
|
311
|
+
id: `alert_${Date.now()}_${Math.random().toString(36).substring(7)}`,
|
|
312
|
+
level,
|
|
313
|
+
metric: name,
|
|
314
|
+
message: `${name} exceeded ${level} threshold: ${value} >= ${threshold}`,
|
|
315
|
+
value,
|
|
316
|
+
threshold,
|
|
317
|
+
timestamp: Date.now(),
|
|
318
|
+
acknowledged: false,
|
|
319
|
+
});
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
cleanupMetrics() {
|
|
324
|
+
const now = Date.now();
|
|
325
|
+
const cutoff = now - this.config.retentionMs;
|
|
326
|
+
// Remove old metrics
|
|
327
|
+
this.metrics = this.metrics.filter(m => m.timestamp > cutoff);
|
|
328
|
+
// Limit total metrics
|
|
329
|
+
if (this.metrics.length > this.config.maxMetrics) {
|
|
330
|
+
this.metrics = this.metrics.slice(-this.config.maxMetrics);
|
|
331
|
+
}
|
|
332
|
+
// Remove old acknowledged alerts
|
|
333
|
+
this.alerts = this.alerts.filter(a => !a.acknowledged || Date.now() - a.timestamp < 300000);
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
// ============================================================================
|
|
337
|
+
// Convenience Functions
|
|
338
|
+
// ============================================================================
|
|
339
|
+
let defaultMonitor = null;
|
|
340
|
+
/**
|
|
341
|
+
* Create or get the default monitor
|
|
342
|
+
*/
|
|
343
|
+
export function createMonitor(config) {
|
|
344
|
+
if (!defaultMonitor) {
|
|
345
|
+
defaultMonitor = new MonitoringHooks(config);
|
|
346
|
+
}
|
|
347
|
+
return defaultMonitor;
|
|
348
|
+
}
|
|
349
|
+
/**
|
|
350
|
+
* Get the default monitor
|
|
351
|
+
*/
|
|
352
|
+
export function getMonitor() {
|
|
353
|
+
return createMonitor();
|
|
354
|
+
}
|
|
355
|
+
export default MonitoringHooks;
|
|
356
|
+
//# sourceMappingURL=monitoring.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monitoring.js","sourceRoot":"","sources":["../../../src/production/monitoring.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAuE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|
|
|
1
|
+
/**
|
|
2
|
+
* Production Rate Limiting
|
|
3
|
+
*
|
|
4
|
+
* Provides token bucket rate limiting with:
|
|
5
|
+
* - Per-operation limits
|
|
6
|
+
* - Per-user/agent limits
|
|
7
|
+
* - Burst allowance
|
|
8
|
+
* - Sliding window tracking
|
|
9
|
+
*
|
|
10
|
+
* @module @claude-flow/cli/production/rate-limiter
|
|
11
|
+
*/
|
|
12
|
+
export interface RateLimiterConfig {
|
|
13
|
+
maxRequests: number;
|
|
14
|
+
windowMs: number;
|
|
15
|
+
burstMultiplier: number;
|
|
16
|
+
whitelist: string[];
|
|
17
|
+
operationLimits: Record<string, {
|
|
18
|
+
maxRequests: number;
|
|
19
|
+
windowMs: number;
|
|
20
|
+
}>;
|
|
21
|
+
perUserLimits: boolean;
|
|
22
|
+
maxTrackedUsers: number;
|
|
23
|
+
}
|
|
24
|
+
export interface RateLimitResult {
|
|
25
|
+
allowed: boolean;
|
|
26
|
+
remaining: number;
|
|
27
|
+
resetAt: number;
|
|
28
|
+
retryAfterMs?: number;
|
|
29
|
+
}
|
|
30
|
+
export declare class RateLimiter {
|
|
31
|
+
private config;
|
|
32
|
+
private buckets;
|
|
33
|
+
private globalBucket;
|
|
34
|
+
constructor(config?: Partial<RateLimiterConfig>);
|
|
35
|
+
/**
|
|
36
|
+
* Check if a request is allowed
|
|
37
|
+
*/
|
|
38
|
+
check(operation: string, userId?: string): RateLimitResult;
|
|
39
|
+
/**
|
|
40
|
+
* Consume a token (use after successful request)
|
|
41
|
+
*/
|
|
42
|
+
consume(operation: string, userId?: string): boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Get current rate limit status
|
|
45
|
+
*/
|
|
46
|
+
getStatus(operation: string, userId?: string): {
|
|
47
|
+
current: number;
|
|
48
|
+
limit: number;
|
|
49
|
+
remaining: number;
|
|
50
|
+
resetAt: number;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Reset limits for a specific key
|
|
54
|
+
*/
|
|
55
|
+
reset(operation: string, userId?: string): void;
|
|
56
|
+
/**
|
|
57
|
+
* Reset all limits
|
|
58
|
+
*/
|
|
59
|
+
resetAll(): void;
|
|
60
|
+
/**
|
|
61
|
+
* Get statistics
|
|
62
|
+
*/
|
|
63
|
+
getStats(): {
|
|
64
|
+
totalBuckets: number;
|
|
65
|
+
activeUsers: number;
|
|
66
|
+
mostLimitedOperations: Array<{
|
|
67
|
+
operation: string;
|
|
68
|
+
requests: number;
|
|
69
|
+
}>;
|
|
70
|
+
};
|
|
71
|
+
private getLimits;
|
|
72
|
+
private createBucket;
|
|
73
|
+
private cleanupBuckets;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Create a rate limiter with default config
|
|
77
|
+
*/
|
|
78
|
+
export declare function createRateLimiter(config?: Partial<RateLimiterConfig>): RateLimiter;
|
|
79
|
+
export default RateLimiter;
|
|
80
|
+
//# sourceMappingURL=rate-limiter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rate-limiter.d.ts","sourceRoot":"","sources":["../../../src/production/rate-limiter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAMH,MAAM,WAAW,iBAAiB;IAEhC,WAAW,EAAE,MAAM,CAAC;IAEpB,QAAQ,EAAE,MAAM,CAAC;IAEjB,eAAe,EAAE,MAAM,CAAC;IAExB,SAAS,EAAE,MAAM,EAAE,CAAC;IAEpB,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAE3E,aAAa,EAAE,OAAO,CAAC;IAEvB,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAsBD,qB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its
|
|
6
|
+
* - Per-user/agent limits
|
|
7
|
+
* - Burst allowance
|
|
8
|
+
* - Sliding window tracking
|
|
9
|
+
*
|
|
10
|
+
* @module @claude-flow/cli/production/rate-limiter
|
|
11
|
+
*/
|
|
12
|
+
// ============================================================================
|
|
13
|
+
// Rate Limiter
|
|
14
|
+
// ============================================================================
|
|
15
|
+
const DEFAULT_CONFIG = {
|
|
16
|
+
maxRequests: 100,
|
|
17
|
+
windowMs: 60000, // 1 minute
|
|
18
|
+
burstMultiplier: 1.5,
|
|
19
|
+
whitelist: [],
|
|
20
|
+
operationLimits: {},
|
|
21
|
+
perUserLimits: true,
|
|
22
|
+
maxTrackedUsers: 10000,
|
|
23
|
+
};
|
|
24
|
+
export class RateLimiter {
|
|
25
|
+
config;
|
|
26
|
+
buckets = new Map();
|
|
27
|
+
globalBucket;
|
|
28
|
+
constructor(config = {}) {
|
|
29
|
+
this.config = { ...DEFAULT_CONFIG, ...config };
|
|
30
|
+
this.globalBucket = this.createBucket();
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a request is allowed
|
|
34
|
+
*/
|
|
35
|
+
check(operation, userId) {
|
|
36
|
+
// Check whitelist
|
|
37
|
+
if (this.config.whitelist.includes(operation)) {
|
|
38
|
+
return { allowed: true, remaining: Infinity, resetAt: 0 };
|
|
39
|
+
}
|
|
40
|
+
// Get limits for this operation
|
|
41
|
+
const limits = this.getLimits(operation);
|
|
42
|
+
const now = Date.now();
|
|
43
|
+
// Get or create bucket
|
|
44
|
+
const bucketKey = userId && this.config.perUserLimits
|
|
45
|
+
? `${operation}:${userId}`
|
|
46
|
+
: `global:${operation}`;
|
|
47
|
+
let bucket = this.buckets.get(bucketKey);
|
|
48
|
+
if (!bucket) {
|
|
49
|
+
bucket = this.createBucket();
|
|
50
|
+
this.buckets.set(bucketKey, bucket);
|
|
51
|
+
this.cleanupBuckets();
|
|
52
|
+
}
|
|
53
|
+
// Clean old requests from sliding window
|
|
54
|
+
bucket.requests = bucket.requests.filter(t => t > now - limits.windowMs);
|
|
55
|
+
// Calculate remaining
|
|
56
|
+
const maxWithBurst = Math.floor(limits.maxRequests * this.config.burstMultiplier);
|
|
57
|
+
const remaining = maxWithBurst - bucket.requests.length;
|
|
58
|
+
if (remaining <= 0) {
|
|
59
|
+
// Rate limited
|
|
60
|
+
const oldestRequest = bucket.requests[0];
|
|
61
|
+
const resetAt = oldestRequest + limits.windowMs;
|
|
62
|
+
const retryAfterMs = resetAt - now;
|
|
63
|
+
return {
|
|
64
|
+
allowed: false,
|
|
65
|
+
remaining: 0,
|
|
66
|
+
resetAt,
|
|
67
|
+
retryAfterMs: Math.max(0, retryAfterMs),
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
// Allow request
|
|
71
|
+
bucket.requests.push(now);
|
|
72
|
+
return {
|
|
73
|
+
allowed: true,
|
|
74
|
+
remaining: remaining - 1,
|
|
75
|
+
resetAt: now + limits.windowMs,
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Consume a token (use after successful request)
|
|
80
|
+
*/
|
|
81
|
+
consume(operation, userId) {
|
|
82
|
+
const result = this.check(operation, userId);
|
|
83
|
+
return result.allowed;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Get current rate limit status
|
|
87
|
+
*/
|
|
88
|
+
getStatus(operation, userId) {
|
|
89
|
+
const limits = this.getLimits(operation);
|
|
90
|
+
const bucketKey = userId && this.config.perUserLimits
|
|
91
|
+
? `${operation}:${userId}`
|
|
92
|
+
: `global:${operation}`;
|
|
93
|
+
const bucket = this.buckets.get(bucketKey);
|
|
94
|
+
const now = Date.now();
|
|
95
|
+
if (!bucket) {
|
|
96
|
+
return {
|
|
97
|
+
current: 0,
|
|
98
|
+
limit: limits.maxRequests,
|
|
99
|
+
remaining: limits.maxRequests,
|
|
100
|
+
resetAt: now + limits.windowMs,
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
// Clean old requests
|
|
104
|
+
const validRequests = bucket.requests.filter(t => t > now - limits.windowMs);
|
|
105
|
+
return {
|
|
106
|
+
current: validRequests.length,
|
|
107
|
+
limit: limits.maxRequests,
|
|
108
|
+
remaining: Math.max(0, limits.maxRequests - validRequests.length),
|
|
109
|
+
resetAt: validRequests.length > 0
|
|
110
|
+
? validRequests[0] + limits.windowMs
|
|
111
|
+
: now + limits.windowMs,
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Reset limits for a specific key
|
|
116
|
+
*/
|
|
117
|
+
reset(operation, userId) {
|
|
118
|
+
const bucketKey = userId && this.config.perUserLimits
|
|
119
|
+
? `${operation}:${userId}`
|
|
120
|
+
: `global:${operation}`;
|
|
121
|
+
this.buckets.delete(bucketKey);
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Reset all limits
|
|
125
|
+
*/
|
|
126
|
+
resetAll() {
|
|
127
|
+
this.buckets.clear();
|
|
128
|
+
this.globalBucket = this.createBucket();
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Get statistics
|
|
132
|
+
*/
|
|
133
|
+
getStats() {
|
|
134
|
+
const operationCounts = new Map();
|
|
135
|
+
const users = new Set();
|
|
136
|
+
for (const [key, bucket] of this.buckets) {
|
|
137
|
+
const [operation, userId] = key.split(':');
|
|
138
|
+
if (userId)
|
|
139
|
+
users.add(userId);
|
|
140
|
+
const current = operationCounts.get(operation) || 0;
|
|
141
|
+
operationCounts.set(operation, current + bucket.requests.length);
|
|
142
|
+
}
|
|
143
|
+
const mostLimited = Array.from(operationCounts.entries())
|
|
144
|
+
.map(([operation, requests]) => ({ operation, requests }))
|
|
145
|
+
.sort((a, b) => b.requests - a.requests)
|
|
146
|
+
.slice(0, 10);
|
|
147
|
+
return {
|
|
148
|
+
totalBuckets: this.buckets.size,
|
|
149
|
+
activeUsers: users.size,
|
|
150
|
+
mostLimitedOperations: mostLimited,
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
// ============================================================================
|
|
154
|
+
// Private Methods
|
|
155
|
+
// ============================================================================
|
|
156
|
+
getLimits(operation) {
|
|
157
|
+
return this.config.operationLimits[operation] || {
|
|
158
|
+
maxRequests: this.config.maxRequests,
|
|
159
|
+
windowMs: this.config.windowMs,
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
createBucket() {
|
|
163
|
+
return {
|
|
164
|
+
tokens: this.config.maxRequests,
|
|
165
|
+
lastRefill: Date.now(),
|
|
166
|
+
requests: [],
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
cleanupBuckets() {
|
|
170
|
+
// Limit number of tracked buckets
|
|
171
|
+
if (this.buckets.size > this.config.maxTrackedUsers) {
|
|
172
|
+
const now = Date.now();
|
|
173
|
+
const toDelete = [];
|
|
174
|
+
// Find buckets with no recent requests
|
|
175
|
+
for (const [key, bucket] of this.buckets) {
|
|
176
|
+
const recent = bucket.requests.filter(t => t > now - this.config.windowMs * 2);
|
|
177
|
+
if (recent.length === 0) {
|
|
178
|
+
toDelete.push(key);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
// Delete stale buckets
|
|
182
|
+
for (const key of toDelete) {
|
|
183
|
+
this.buckets.delete(key);
|
|
184
|
+
if (this.buckets.size <= this.config.maxTrackedUsers * 0.8) {
|
|
185
|
+
break;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
// ============================================================================
|
|
192
|
+
// Convenience Functions
|
|
193
|
+
// ============================================================================
|
|
194
|
+
/**
|
|
195
|
+
* Create a rate limiter with default config
|
|
196
|
+
*/
|
|
197
|
+
export function createRateLimiter(config) {
|
|
198
|
+
return new RateLimiter(config);
|
|
199
|
+
}
|
|
200
|
+
export default RateLimiter;
|
|
201
|
+
//# sourceMappingURL=rate-limiter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rate-limiter.js","sourceRoot":"","sources":["../../../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