@dirgha/code 1.2.1 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.changeset/README.md +23 -0
- package/.changeset/config.json +11 -0
- package/.changeset/sprint-1.3.0.md +5 -0
- package/CHANGELOG.md +135 -0
- package/CLA.md +104 -0
- package/CODE_OF_CONDUCT.md +50 -0
- package/CONTRIBUTING.md +81 -0
- package/CREDITS.md +46 -0
- package/LICENSING.md +105 -0
- package/README.md +71 -626
- package/SECURITY.md +61 -0
- package/SUPPORT.md +53 -0
- package/assets/audio/dirgha-ambient-150s.m4a +0 -0
- package/assets/logo/dirgha-mark-amber.svg +8 -0
- package/assets/logo/dirgha-mark-cream.svg +8 -0
- package/assets/logo/dirgha-wordmark-cream.svg +5 -0
- package/assets/logo/dirgha-wordmark-ink.svg +5 -0
- package/changelog/1.4.0-promo.mp4 +0 -0
- package/changelog/1.4.0.md +89 -0
- package/changelog/1.4.1-promo.mp4 +0 -0
- package/changelog/README.md +73 -0
- package/dist/agent/capabilities.d.ts +1 -0
- package/dist/agent/capabilities.js +21 -0
- package/dist/agent/collaboration/consensus.d.ts +77 -0
- package/dist/agent/collaboration/consensus.js +279 -0
- package/dist/agent/collaboration/index.d.ts +7 -0
- package/dist/agent/collaboration/index.js +7 -0
- package/dist/agent/collaboration/message-bus.d.ts +48 -0
- package/dist/agent/collaboration/message-bus.js +219 -0
- package/dist/agent/collaboration/shared-context.d.ts +67 -0
- package/dist/agent/collaboration/shared-context.js +217 -0
- package/dist/agent/collaboration/types.d.ts +95 -0
- package/dist/agent/collaboration/types.js +6 -0
- package/dist/agent/commands/chat.d.ts +21 -0
- package/dist/agent/commands/chat.js +55 -0
- package/dist/agent/compaction-tiers.d.ts +10 -0
- package/dist/agent/compaction-tiers.js +70 -0
- package/dist/agent/compaction.d.ts +16 -0
- package/dist/agent/compaction.js +129 -0
- package/dist/agent/context-optimizer.d.ts +2 -0
- package/dist/agent/context-optimizer.js +30 -0
- package/dist/agent/context.d.ts +14 -0
- package/dist/agent/context.js +241 -0
- package/dist/agent/error-classifier.d.ts +10 -0
- package/dist/agent/error-classifier.js +67 -0
- package/dist/agent/event-emit.d.ts +6 -0
- package/dist/agent/event-emit.js +98 -0
- package/dist/agent/executor.d.ts +9 -0
- package/dist/agent/executor.js +44 -0
- package/dist/agent/gateway.d.ts +11 -0
- package/dist/agent/gateway.js +11 -0
- package/dist/agent/index.d.ts +7 -0
- package/dist/agent/index.js +58 -0
- package/dist/agent/injector.d.ts +35 -0
- package/dist/agent/injector.js +57 -0
- package/dist/agent/loop-detector.d.ts +18 -0
- package/dist/agent/loop-detector.js +91 -0
- package/dist/agent/loop.d.ts +22 -0
- package/dist/agent/loop.js +348 -0
- package/dist/agent/memory-sync.d.ts +5 -0
- package/dist/agent/memory-sync.js +17 -0
- package/dist/agent/model-fallback.d.ts +23 -0
- package/dist/agent/model-fallback.js +112 -0
- package/dist/agent/moim.d.ts +5 -0
- package/dist/agent/moim.js +29 -0
- package/dist/agent/orchestration/agent-pool.d.ts +59 -0
- package/dist/agent/orchestration/agent-pool.js +165 -0
- package/dist/agent/orchestration/circuit-breaker.d.ts +121 -0
- package/dist/agent/orchestration/circuit-breaker.js +298 -0
- package/dist/agent/orchestration/coordinator.d.ts +17 -0
- package/dist/agent/orchestration/coordinator.js +150 -0
- package/dist/agent/orchestration/dag-runner.d.ts +18 -0
- package/dist/agent/orchestration/dag-runner.js +172 -0
- package/dist/agent/orchestration/dag.d.ts +33 -0
- package/dist/agent/orchestration/dag.js +209 -0
- package/dist/agent/orchestration/decomposer.d.ts +19 -0
- package/dist/agent/orchestration/decomposer.js +65 -0
- package/dist/agent/orchestration/observability.d.ts +117 -0
- package/dist/agent/orchestration/observability.js +244 -0
- package/dist/agent/orchestration/parallel.d.ts +8 -0
- package/dist/agent/orchestration/parallel.js +191 -0
- package/dist/agent/orchestration/pool-cleanup.d.ts +16 -0
- package/dist/agent/orchestration/pool-cleanup.js +21 -0
- package/dist/agent/orchestration/pool-queue.d.ts +23 -0
- package/dist/agent/orchestration/pool-queue.js +62 -0
- package/dist/agent/orchestration/pool-scaler.d.ts +22 -0
- package/dist/agent/orchestration/pool-scaler.js +53 -0
- package/dist/agent/orchestration/researcher.d.ts +28 -0
- package/dist/agent/orchestration/researcher.js +78 -0
- package/dist/agent/orchestration/retry.d.ts +14 -0
- package/dist/agent/orchestration/retry.js +107 -0
- package/dist/agent/orchestration/scheduler.d.ts +24 -0
- package/dist/agent/orchestration/scheduler.js +66 -0
- package/dist/agent/orchestration/shared-memory.d.ts +31 -0
- package/dist/agent/orchestration/shared-memory.js +57 -0
- package/dist/agent/orchestration/structured.d.ts +63 -0
- package/dist/agent/orchestration/structured.js +152 -0
- package/dist/agent/orchestration/task-queue.d.ts +32 -0
- package/dist/agent/orchestration/task-queue.js +105 -0
- package/dist/agent/orchestration/types.d.ts +139 -0
- package/dist/agent/orchestration/types.js +7 -0
- package/dist/agent/output.d.ts +31 -0
- package/dist/agent/output.js +108 -0
- package/dist/agent/parser.d.ts +5 -0
- package/dist/agent/parser.js +74 -0
- package/dist/agent/pending-messages.d.ts +33 -0
- package/dist/agent/pending-messages.js +57 -0
- package/dist/agent/project.d.ts +2 -0
- package/dist/agent/project.js +19 -0
- package/dist/agent/reflection.d.ts +36 -0
- package/dist/agent/reflection.js +93 -0
- package/dist/agent/rerank-engine.d.ts +18 -0
- package/dist/agent/rerank-engine.js +52 -0
- package/dist/agent/routing.d.ts +10 -0
- package/dist/agent/routing.js +95 -0
- package/dist/agent/secrets.d.ts +6 -0
- package/dist/agent/secrets.js +84 -0
- package/dist/agent/skill-registry.d.ts +37 -0
- package/dist/agent/skill-registry.js +113 -0
- package/dist/agent/spawn/index.d.ts +8 -0
- package/dist/agent/spawn/index.js +5 -0
- package/dist/agent/spawn/lifecycle.d.ts +9 -0
- package/dist/agent/spawn/lifecycle.js +92 -0
- package/dist/agent/spawn/messaging.d.ts +6 -0
- package/dist/agent/spawn/messaging.js +36 -0
- package/dist/agent/spawn/state.d.ts +7 -0
- package/dist/agent/spawn/state.js +57 -0
- package/dist/agent/spawn/types.d.ts +55 -0
- package/dist/agent/spawn/types.js +5 -0
- package/dist/agent/spawn/utils.d.ts +14 -0
- package/dist/agent/spawn/utils.js +72 -0
- package/dist/agent/spawn-agent.d.ts +47 -0
- package/dist/agent/spawn-agent.js +114 -0
- package/dist/agent/structured-output.d.ts +15 -0
- package/dist/agent/structured-output.js +66 -0
- package/dist/agent/tool-execution.d.ts +18 -0
- package/dist/agent/tool-execution.js +242 -0
- package/dist/agent/tools.d.ts +6 -0
- package/dist/agent/tools.js +7 -0
- package/dist/agent/types.d.ts +62 -0
- package/dist/agent/types.js +6 -0
- package/dist/agents/consensus.d.ts +14 -0
- package/dist/agents/consensus.js +34 -0
- package/dist/agents/delegate.d.ts +18 -0
- package/dist/agents/delegate.js +32 -0
- package/dist/agents/ensemble.d.ts +18 -0
- package/dist/agents/ensemble.js +33 -0
- package/dist/agents/orchestrate.d.ts +12 -0
- package/dist/agents/orchestrate.js +32 -0
- package/dist/agents/types.d.ts +29 -0
- package/dist/agents/types.js +2 -0
- package/dist/analytics/export.d.ts +11 -0
- package/dist/analytics/export.js +58 -0
- package/dist/analytics/insights.d.ts +27 -0
- package/dist/analytics/insights.js +33 -0
- package/dist/api/knowledge.d.ts +38 -0
- package/dist/api/knowledge.js +65 -0
- package/dist/billing/db.d.ts +11 -0
- package/dist/billing/db.js +88 -0
- package/dist/billing/index.d.ts +10 -0
- package/dist/billing/index.js +12 -0
- package/dist/billing/meter.d.ts +11 -0
- package/dist/billing/meter.js +46 -0
- package/dist/billing/middleware.d.ts +28 -0
- package/dist/billing/middleware.js +103 -0
- package/dist/billing/pricing.d.ts +6 -0
- package/dist/billing/pricing.js +48 -0
- package/dist/billing/quota.d.ts +24 -0
- package/dist/billing/quota.js +105 -0
- package/dist/billing/ratelimit-fixed.d.ts +16 -0
- package/dist/billing/ratelimit-fixed.js +112 -0
- package/dist/billing/ratelimit.d.ts +7 -0
- package/dist/billing/ratelimit.js +58 -0
- package/dist/billing/tokenizer-v2.d.ts +76 -0
- package/dist/billing/tokenizer-v2.js +263 -0
- package/dist/billing/tokenizer.d.ts +9 -0
- package/dist/billing/tokenizer.js +46 -0
- package/dist/billing/types.d.ts +60 -0
- package/dist/billing/types.js +17 -0
- package/dist/browser/accessibility.d.ts +6 -0
- package/dist/browser/accessibility.js +47 -0
- package/dist/browser/commands.d.ts +5 -0
- package/dist/browser/commands.js +82 -0
- package/dist/browser/ipc-client.d.ts +26 -0
- package/dist/browser/ipc-client.js +60 -0
- package/dist/browser/launcher.d.ts +13 -0
- package/dist/browser/launcher.js +78 -0
- package/dist/browser/navigation.d.ts +12 -0
- package/dist/browser/navigation.js +28 -0
- package/dist/browser/snapshot.d.ts +7 -0
- package/dist/browser/snapshot.js +18 -0
- package/dist/browser/types.d.ts +28 -0
- package/dist/browser/types.js +2 -0
- package/dist/checkpoint/create.d.ts +2 -0
- package/dist/checkpoint/create.js +44 -0
- package/dist/checkpoint/git.d.ts +8 -0
- package/dist/checkpoint/git.js +45 -0
- package/dist/checkpoint/restore.d.ts +5 -0
- package/dist/checkpoint/restore.js +18 -0
- package/dist/checkpoint/store.d.ts +9 -0
- package/dist/checkpoint/store.js +40 -0
- package/dist/checkpoint/types.d.ts +23 -0
- package/dist/checkpoint/types.js +2 -0
- package/dist/commands/agent-swarm.d.ts +7 -0
- package/dist/commands/agent-swarm.js +223 -0
- package/dist/commands/analytics.d.ts +5 -0
- package/dist/commands/analytics.js +20 -0
- package/dist/commands/ask.d.ts +12 -0
- package/dist/commands/ask.js +99 -0
- package/dist/commands/audit.d.ts +5 -0
- package/dist/commands/audit.js +78 -0
- package/dist/commands/auth.d.ts +1 -0
- package/dist/commands/auth.js +126 -0
- package/dist/commands/autocomplete.d.ts +10 -0
- package/dist/commands/autocomplete.js +89 -0
- package/dist/commands/bounties.d.ts +2 -0
- package/dist/commands/bounties.js +107 -0
- package/dist/commands/browser-cmd.d.ts +7 -0
- package/dist/commands/browser-cmd.js +101 -0
- package/dist/commands/browser-integration.d.ts +15 -0
- package/dist/commands/browser-integration.js +58 -0
- package/dist/commands/btw.d.ts +7 -0
- package/dist/commands/btw.js +62 -0
- package/dist/commands/bucky.d.ts +19 -0
- package/dist/commands/bucky.js +328 -0
- package/dist/commands/bug-hunter.d.ts +6 -0
- package/dist/commands/bug-hunter.js +55 -0
- package/dist/commands/capture.d.ts +10 -0
- package/dist/commands/capture.js +167 -0
- package/dist/commands/chat.d.ts +4 -0
- package/dist/commands/chat.js +107 -0
- package/dist/commands/checkpoint.d.ts +6 -0
- package/dist/commands/checkpoint.js +83 -0
- package/dist/commands/coming-soon.d.ts +2 -0
- package/dist/commands/coming-soon.js +50 -0
- package/dist/commands/compact.d.ts +5 -0
- package/dist/commands/compact.js +38 -0
- package/dist/commands/connect.d.ts +7 -0
- package/dist/commands/connect.js +155 -0
- package/dist/commands/curate/embeddings.d.ts +7 -0
- package/dist/commands/curate/embeddings.js +38 -0
- package/dist/commands/curate/files.d.ts +4 -0
- package/dist/commands/curate/files.js +28 -0
- package/dist/commands/curate/project.d.ts +1 -0
- package/dist/commands/curate/project.js +20 -0
- package/dist/commands/curate/schema.d.ts +1 -0
- package/dist/commands/curate/schema.js +30 -0
- package/dist/commands/curate/types.d.ts +26 -0
- package/dist/commands/curate/types.js +6 -0
- package/dist/commands/curate/vss-integration.d.ts +1 -0
- package/dist/commands/curate/vss-integration.js +19 -0
- package/dist/commands/curate.d.ts +9 -0
- package/dist/commands/curate.js +50 -0
- package/dist/commands/dao.d.ts +8 -0
- package/dist/commands/dao.js +290 -0
- package/dist/commands/data-query.d.ts +7 -0
- package/dist/commands/data-query.js +55 -0
- package/dist/commands/doctor.d.ts +2 -0
- package/dist/commands/doctor.js +145 -0
- package/dist/commands/ensemble.d.ts +7 -0
- package/dist/commands/ensemble.js +88 -0
- package/dist/commands/error-recovery.d.ts +10 -0
- package/dist/commands/error-recovery.js +50 -0
- package/dist/commands/export-session.d.ts +7 -0
- package/dist/commands/export-session.js +70 -0
- package/dist/commands/import-session.d.ts +7 -0
- package/dist/commands/import-session.js +49 -0
- package/dist/commands/index.d.ts +62 -0
- package/dist/commands/index.js +76 -0
- package/dist/commands/init.d.ts +5 -0
- package/dist/commands/init.js +101 -0
- package/dist/commands/jobs.d.ts +2 -0
- package/dist/commands/jobs.js +108 -0
- package/dist/commands/join-mesh.d.ts +5 -0
- package/dist/commands/join-mesh.js +97 -0
- package/dist/commands/knowledge.d.ts +19 -0
- package/dist/commands/knowledge.js +218 -0
- package/dist/commands/local.d.ts +2 -0
- package/dist/commands/local.js +77 -0
- package/dist/commands/login.d.ts +10 -0
- package/dist/commands/login.js +160 -0
- package/dist/commands/logout.d.ts +2 -0
- package/dist/commands/logout.js +12 -0
- package/dist/commands/make.d.ts +2 -0
- package/dist/commands/make.js +69 -0
- package/dist/commands/mcp.d.ts +7 -0
- package/dist/commands/mcp.js +202 -0
- package/dist/commands/mesh/add-member.d.ts +2 -0
- package/dist/commands/mesh/add-member.js +23 -0
- package/dist/commands/mesh/ask.d.ts +2 -0
- package/dist/commands/mesh/ask.js +60 -0
- package/dist/commands/mesh/billing.d.ts +1 -0
- package/dist/commands/mesh/billing.js +16 -0
- package/dist/commands/mesh/consensus.d.ts +1 -0
- package/dist/commands/mesh/consensus.js +17 -0
- package/dist/commands/mesh/context.d.ts +4 -0
- package/dist/commands/mesh/context.js +11 -0
- package/dist/commands/mesh/index.d.ts +4 -0
- package/dist/commands/mesh/index.js +64 -0
- package/dist/commands/mesh/join.d.ts +2 -0
- package/dist/commands/mesh/join.js +38 -0
- package/dist/commands/mesh/leave.d.ts +1 -0
- package/dist/commands/mesh/leave.js +14 -0
- package/dist/commands/mesh/quota.d.ts +1 -0
- package/dist/commands/mesh/quota.js +31 -0
- package/dist/commands/mesh/status.d.ts +1 -0
- package/dist/commands/mesh/status.js +48 -0
- package/dist/commands/mesh/types.d.ts +36 -0
- package/dist/commands/mesh/types.js +2 -0
- package/dist/commands/mesh.d.ts +6 -0
- package/dist/commands/mesh.js +258 -0
- package/dist/commands/models.d.ts +1 -0
- package/dist/commands/models.js +194 -0
- package/dist/commands/pay.d.ts +7 -0
- package/dist/commands/pay.js +305 -0
- package/dist/commands/profile.d.ts +2 -0
- package/dist/commands/profile.js +99 -0
- package/dist/commands/progress.d.ts +23 -0
- package/dist/commands/progress.js +93 -0
- package/dist/commands/prune.d.ts +2 -0
- package/dist/commands/prune.js +64 -0
- package/dist/commands/query.d.ts +9 -0
- package/dist/commands/query.js +135 -0
- package/dist/commands/recall-cmd.d.ts +7 -0
- package/dist/commands/recall-cmd.js +65 -0
- package/dist/commands/remember-cmd.d.ts +7 -0
- package/dist/commands/remember-cmd.js +40 -0
- package/dist/commands/research.d.ts +5 -0
- package/dist/commands/research.js +40 -0
- package/dist/commands/sandbox-connect.d.ts +2 -0
- package/dist/commands/sandbox-connect.js +171 -0
- package/dist/commands/scan/arniko.d.ts +1 -0
- package/dist/commands/scan/arniko.js +79 -0
- package/dist/commands/scan/deps.d.ts +21 -0
- package/dist/commands/scan/deps.js +56 -0
- package/dist/commands/scan/index.d.ts +7 -0
- package/dist/commands/scan/index.js +97 -0
- package/dist/commands/scan/output.d.ts +2 -0
- package/dist/commands/scan/output.js +42 -0
- package/dist/commands/scan/types.d.ts +21 -0
- package/dist/commands/scan/types.js +2 -0
- package/dist/commands/scan/utils.d.ts +5 -0
- package/dist/commands/scan/utils.js +101 -0
- package/dist/commands/scan.d.ts +7 -0
- package/dist/commands/scan.js +327 -0
- package/dist/commands/scratchpad.d.ts +8 -0
- package/dist/commands/scratchpad.js +82 -0
- package/dist/commands/session.d.ts +3 -0
- package/dist/commands/session.js +70 -0
- package/dist/commands/setup-local.d.ts +2 -0
- package/dist/commands/setup-local.js +137 -0
- package/dist/commands/setup.d.ts +1 -0
- package/dist/commands/setup.js +230 -0
- package/dist/commands/smart-exec.d.ts +2 -0
- package/dist/commands/smart-exec.js +217 -0
- package/dist/commands/sprint.d.ts +9 -0
- package/dist/commands/sprint.js +321 -0
- package/dist/commands/stats.d.ts +1 -0
- package/dist/commands/stats.js +163 -0
- package/dist/commands/status.d.ts +1 -0
- package/dist/commands/status.js +97 -0
- package/dist/commands/support.d.ts +5 -0
- package/dist/commands/support.js +43 -0
- package/dist/commands/sync.d.ts +7 -0
- package/dist/commands/sync.js +130 -0
- package/dist/commands/unified-memory/context.d.ts +5 -0
- package/dist/commands/unified-memory/context.js +33 -0
- package/dist/commands/unified-memory/index.d.ts +12 -0
- package/dist/commands/unified-memory/index.js +23 -0
- package/dist/commands/unified-memory/recall.d.ts +5 -0
- package/dist/commands/unified-memory/recall.js +50 -0
- package/dist/commands/unified-memory/remember.d.ts +5 -0
- package/dist/commands/unified-memory/remember.js +49 -0
- package/dist/commands/unified-memory/session.d.ts +5 -0
- package/dist/commands/unified-memory/session.js +64 -0
- package/dist/commands/unified-memory/stats.d.ts +5 -0
- package/dist/commands/unified-memory/stats.js +29 -0
- package/dist/commands/update.d.ts +7 -0
- package/dist/commands/update.js +45 -0
- package/dist/commands/voice-entry.d.ts +8 -0
- package/dist/commands/voice-entry.js +120 -0
- package/dist/commands/yolo.d.ts +8 -0
- package/dist/commands/yolo.js +88 -0
- package/dist/compaction/index.d.ts +15 -0
- package/dist/compaction/index.js +21 -0
- package/dist/compaction/protect.d.ts +8 -0
- package/dist/compaction/protect.js +15 -0
- package/dist/compaction/prune.d.ts +5 -0
- package/dist/compaction/prune.js +19 -0
- package/dist/compaction/summarize.d.ts +6 -0
- package/dist/compaction/summarize.js +27 -0
- package/dist/compaction/types.d.ts +27 -0
- package/dist/compaction/types.js +2 -0
- package/dist/compaction/update.d.ts +6 -0
- package/dist/compaction/update.js +18 -0
- package/dist/config/execution.d.ts +22 -0
- package/dist/config/execution.js +59 -0
- package/dist/config/rate-limits.d.ts +15 -0
- package/dist/config/rate-limits.js +34 -0
- package/dist/context/jit.d.ts +16 -0
- package/dist/context/jit.js +120 -0
- package/dist/context/todos.d.ts +7 -0
- package/dist/context/todos.js +21 -0
- package/dist/cron/runner.d.ts +16 -0
- package/dist/cron/runner.js +57 -0
- package/dist/cron/store.d.ts +19 -0
- package/dist/cron/store.js +91 -0
- package/dist/dirgha.mjs +2 -2
- package/dist/embeddings/gateway.d.ts +9 -0
- package/dist/embeddings/gateway.js +55 -0
- package/dist/embeddings/math.d.ts +17 -0
- package/dist/embeddings/math.js +33 -0
- package/dist/embeddings/ollama.d.ts +10 -0
- package/dist/embeddings/ollama.js +74 -0
- package/dist/embeddings/provider.d.ts +28 -0
- package/dist/embeddings/provider.js +73 -0
- package/dist/embeddings/vss.d.ts +22 -0
- package/dist/embeddings/vss.js +102 -0
- package/dist/errors/tokenLimit.d.ts +15 -0
- package/dist/errors/tokenLimit.js +93 -0
- package/dist/extensions/manager.d.ts +6 -0
- package/dist/extensions/manager.js +62 -0
- package/dist/extensions/rpc.d.ts +10 -0
- package/dist/extensions/rpc.js +90 -0
- package/dist/extensions/types.d.ts +24 -0
- package/dist/extensions/types.js +5 -0
- package/dist/fleet/apply-back.d.ts +11 -0
- package/dist/fleet/apply-back.js +82 -0
- package/dist/fleet/commands.d.ts +2 -0
- package/dist/fleet/commands.js +227 -0
- package/dist/fleet/decompose.d.ts +7 -0
- package/dist/fleet/decompose.js +80 -0
- package/dist/fleet/events.d.ts +24 -0
- package/dist/fleet/events.js +35 -0
- package/dist/fleet/runtime.d.ts +9 -0
- package/dist/fleet/runtime.js +131 -0
- package/dist/fleet/tripleshot.d.ts +9 -0
- package/dist/fleet/tripleshot.js +114 -0
- package/dist/fleet/types.d.ts +60 -0
- package/dist/fleet/types.js +11 -0
- package/dist/fleet/worktree.d.ts +17 -0
- package/dist/fleet/worktree.js +80 -0
- package/dist/gateway/acp/adapter.d.ts +46 -0
- package/dist/gateway/acp/adapter.js +181 -0
- package/dist/gateway/acp/index.d.ts +6 -0
- package/dist/gateway/acp/index.js +6 -0
- package/dist/gateway/acp/registry.d.ts +51 -0
- package/dist/gateway/acp/registry.js +171 -0
- package/dist/gateway/acp/types.d.ts +123 -0
- package/dist/gateway/acp/types.js +7 -0
- package/dist/gateway/index.d.ts +5 -0
- package/dist/gateway/index.js +6 -0
- package/dist/gateway/orchestrator.d.ts +8 -0
- package/dist/gateway/orchestrator.js +37 -0
- package/dist/gateway/router.d.ts +34 -0
- package/dist/gateway/router.js +123 -0
- package/dist/gateway/telegram.d.ts +13 -0
- package/dist/gateway/telegram.js +35 -0
- package/dist/gateway/types.d.ts +15 -0
- package/dist/gateway/types.js +2 -0
- package/dist/git/rotation.d.ts +8 -0
- package/dist/git/rotation.js +36 -0
- package/dist/hub/commands.d.ts +15 -0
- package/dist/hub/commands.js +189 -0
- package/dist/hub/index.d.ts +8 -0
- package/dist/hub/index.js +9 -0
- package/dist/hub/installer.d.ts +7 -0
- package/dist/hub/installer.js +148 -0
- package/dist/hub/registry.d.ts +9 -0
- package/dist/hub/registry.js +81 -0
- package/dist/hub/registry.json +82 -0
- package/dist/hub/types.d.ts +73 -0
- package/dist/hub/types.js +6 -0
- package/dist/index-agent.d.ts +1 -0
- package/dist/index-agent.js +17 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +442 -0
- package/dist/knowledge/compiler.d.ts +11 -0
- package/dist/knowledge/compiler.js +100 -0
- package/dist/knowledge/git-sync.d.ts +6 -0
- package/dist/knowledge/git-sync.js +81 -0
- package/dist/knowledge/linter.d.ts +9 -0
- package/dist/knowledge/linter.js +136 -0
- package/dist/knowledge/raw.d.ts +20 -0
- package/dist/knowledge/raw.js +87 -0
- package/dist/knowledge/wiki.d.ts +26 -0
- package/dist/knowledge/wiki.js +127 -0
- package/dist/llm/cache.d.ts +16 -0
- package/dist/llm/cache.js +25 -0
- package/dist/llm/costs.d.ts +18 -0
- package/dist/llm/costs.js +30 -0
- package/dist/llm/ensemble.d.ts +5 -0
- package/dist/llm/ensemble.js +40 -0
- package/dist/llm/local.d.ts +23 -0
- package/dist/llm/local.js +78 -0
- package/dist/llm/router.d.ts +7 -0
- package/dist/llm/router.js +68 -0
- package/dist/llm/types.d.ts +18 -0
- package/dist/llm/types.js +2 -0
- package/dist/mcp/client.d.ts +25 -0
- package/dist/mcp/client.js +115 -0
- package/dist/mcp/commands.d.ts +5 -0
- package/dist/mcp/commands.js +30 -0
- package/dist/mcp/index.d.ts +7 -0
- package/dist/mcp/index.js +6 -0
- package/dist/mcp/manager.d.ts +17 -0
- package/dist/mcp/manager.js +67 -0
- package/dist/mcp/marketplace.d.ts +42 -0
- package/dist/mcp/marketplace.js +188 -0
- package/dist/mcp/resources.d.ts +6 -0
- package/dist/mcp/resources.js +26 -0
- package/dist/mcp/server.d.ts +84 -0
- package/dist/mcp/server.js +288 -0
- package/dist/mcp/transport.d.ts +10 -0
- package/dist/mcp/transport.js +30 -0
- package/dist/memory/builtin.d.ts +17 -0
- package/dist/memory/builtin.js +43 -0
- package/dist/memory/gepa-integration.d.ts +49 -0
- package/dist/memory/gepa-integration.js +271 -0
- package/dist/memory/graph.d.ts +19 -0
- package/dist/memory/graph.js +44 -0
- package/dist/memory/holographic.d.ts +11 -0
- package/dist/memory/holographic.js +192 -0
- package/dist/memory/manager.d.ts +36 -0
- package/dist/memory/manager.js +152 -0
- package/dist/memory/provider.d.ts +29 -0
- package/dist/memory/provider.js +9 -0
- package/dist/memory/unified.d.ts +19 -0
- package/dist/memory/unified.js +91 -0
- package/dist/mesh/ConsensusEngine.d.ts +85 -0
- package/dist/mesh/ConsensusEngine.js +187 -0
- package/dist/mesh/LightningBilling.d.ts +124 -0
- package/dist/mesh/LightningBilling.js +284 -0
- package/dist/mesh/MeshNode.d.ts +82 -0
- package/dist/mesh/MeshNode.js +401 -0
- package/dist/mesh/TeamResourcePool.d.ts +93 -0
- package/dist/mesh/TeamResourcePool.js +277 -0
- package/dist/mesh/agent-payments.d.ts +25 -0
- package/dist/mesh/agent-payments.js +79 -0
- package/dist/mesh/capabilities.d.ts +25 -0
- package/dist/mesh/capabilities.js +44 -0
- package/dist/mesh/config.d.ts +37 -0
- package/dist/mesh/config.js +38 -0
- package/dist/mesh/index.d.ts +13 -0
- package/dist/mesh/index.js +11 -0
- package/dist/mesh/reputation.d.ts +21 -0
- package/dist/mesh/reputation.js +51 -0
- package/dist/mesh/revenue-split.d.ts +20 -0
- package/dist/mesh/revenue-split.js +52 -0
- package/dist/mesh/validation.d.ts +5 -0
- package/dist/mesh/validation.js +31 -0
- package/dist/models/credential-pool.d.ts +37 -0
- package/dist/models/credential-pool.js +165 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +13 -0
- package/dist/models/manager.d.ts +34 -0
- package/dist/models/manager.js +197 -0
- package/dist/models/registry.d.ts +27 -0
- package/dist/models/registry.js +359 -0
- package/dist/models/types.d.ts +119 -0
- package/dist/models/types.js +5 -0
- package/dist/multimodal/attachments.d.ts +13 -0
- package/dist/multimodal/attachments.js +99 -0
- package/dist/multimodal/index.d.ts +6 -0
- package/dist/multimodal/index.js +3 -0
- package/dist/multimodal/slash.d.ts +9 -0
- package/dist/multimodal/slash.js +111 -0
- package/dist/multimodal/types.d.ts +30 -0
- package/dist/multimodal/types.js +5 -0
- package/dist/permission/approval.d.ts +18 -0
- package/dist/permission/approval.js +86 -0
- package/dist/permission/confirmation.d.ts +33 -0
- package/dist/permission/confirmation.js +130 -0
- package/dist/permission/judge.d.ts +25 -0
- package/dist/permission/judge.js +162 -0
- package/dist/permission/store.d.ts +12 -0
- package/dist/permission/store.js +50 -0
- package/dist/platform/sync.d.ts +17 -0
- package/dist/platform/sync.js +38 -0
- package/dist/project-session/commands.d.ts +5 -0
- package/dist/project-session/commands.js +220 -0
- package/dist/project-session/context.d.ts +21 -0
- package/dist/project-session/context.js +145 -0
- package/dist/project-session/index.d.ts +8 -0
- package/dist/project-session/index.js +8 -0
- package/dist/project-session/project.d.ts +15 -0
- package/dist/project-session/project.js +107 -0
- package/dist/project-session/session.d.ts +14 -0
- package/dist/project-session/session.js +124 -0
- package/dist/project-session/types.d.ts +85 -0
- package/dist/project-session/types.js +6 -0
- package/dist/providers/anthropic.d.ts +4 -0
- package/dist/providers/anthropic.js +94 -0
- package/dist/providers/circuit-breaker.d.ts +30 -0
- package/dist/providers/circuit-breaker.js +109 -0
- package/dist/providers/cohere.d.ts +2 -0
- package/dist/providers/cohere.js +49 -0
- package/dist/providers/deepinfra.d.ts +32 -0
- package/dist/providers/deepinfra.js +44 -0
- package/dist/providers/detection.d.ts +21 -0
- package/dist/providers/detection.js +88 -0
- package/dist/providers/dirgha.d.ts +3 -0
- package/dist/providers/dirgha.js +26 -0
- package/dist/providers/dispatch.d.ts +28 -0
- package/dist/providers/dispatch.js +262 -0
- package/dist/providers/fireworks.d.ts +2 -0
- package/dist/providers/fireworks.js +109 -0
- package/dist/providers/gateway.d.ts +2 -0
- package/dist/providers/gateway.js +80 -0
- package/dist/providers/gemini.d.ts +3 -0
- package/dist/providers/gemini.js +103 -0
- package/dist/providers/groq.d.ts +2 -0
- package/dist/providers/groq.js +39 -0
- package/dist/providers/http.d.ts +27 -0
- package/dist/providers/http.js +245 -0
- package/dist/providers/index.d.ts +16 -0
- package/dist/providers/index.js +18 -0
- package/dist/providers/messages.d.ts +21 -0
- package/dist/providers/messages.js +116 -0
- package/dist/providers/mistral.d.ts +2 -0
- package/dist/providers/mistral.js +39 -0
- package/dist/providers/normalise.d.ts +5 -0
- package/dist/providers/normalise.js +29 -0
- package/dist/providers/nvidia.d.ts +2 -0
- package/dist/providers/nvidia.js +62 -0
- package/dist/providers/openai.d.ts +3 -0
- package/dist/providers/openai.js +20 -0
- package/dist/providers/openrouter.d.ts +2 -0
- package/dist/providers/openrouter.js +54 -0
- package/dist/providers/perplexity.d.ts +34 -0
- package/dist/providers/perplexity.js +66 -0
- package/dist/providers/rate-limit.d.ts +31 -0
- package/dist/providers/rate-limit.js +101 -0
- package/dist/providers/togetherai.d.ts +32 -0
- package/dist/providers/togetherai.js +44 -0
- package/dist/providers/tools-format.d.ts +2437 -0
- package/dist/providers/tools-format.js +15 -0
- package/dist/providers/types.d.ts +29 -0
- package/dist/providers/types.js +2 -0
- package/dist/providers/unified-rate-limiter.d.ts +116 -0
- package/dist/providers/unified-rate-limiter.js +385 -0
- package/dist/providers/vercel.d.ts +32 -0
- package/dist/providers/vercel.js +44 -0
- package/dist/providers/xai.d.ts +2 -0
- package/dist/providers/xai.js +39 -0
- package/dist/realtime/hub.d.ts +42 -0
- package/dist/realtime/hub.js +147 -0
- package/dist/repl/escape-recovery.d.ts +75 -0
- package/dist/repl/escape-recovery.js +236 -0
- package/dist/repl/index.d.ts +2 -0
- package/dist/repl/index.js +226 -0
- package/dist/repl/input.d.ts +12 -0
- package/dist/repl/input.js +345 -0
- package/dist/repl/renderer.d.ts +23 -0
- package/dist/repl/renderer.js +232 -0
- package/dist/repl/slash/account.d.ts +2 -0
- package/dist/repl/slash/account.js +70 -0
- package/dist/repl/slash/agent-discovery.d.ts +15 -0
- package/dist/repl/slash/agent-discovery.js +227 -0
- package/dist/repl/slash/config.d.ts +2 -0
- package/dist/repl/slash/config.js +223 -0
- package/dist/repl/slash/consensus.d.ts +14 -0
- package/dist/repl/slash/consensus.js +173 -0
- package/dist/repl/slash/context.d.ts +3 -0
- package/dist/repl/slash/context.js +188 -0
- package/dist/repl/slash/cron.d.ts +2 -0
- package/dist/repl/slash/cron.js +83 -0
- package/dist/repl/slash/dev.d.ts +5 -0
- package/dist/repl/slash/dev.js +240 -0
- package/dist/repl/slash/fs.d.ts +10 -0
- package/dist/repl/slash/fs.js +105 -0
- package/dist/repl/slash/git-ext.d.ts +2 -0
- package/dist/repl/slash/git-ext.js +95 -0
- package/dist/repl/slash/git.d.ts +3 -0
- package/dist/repl/slash/git.js +167 -0
- package/dist/repl/slash/hermes.d.ts +2 -0
- package/dist/repl/slash/hermes.js +180 -0
- package/dist/repl/slash/index.d.ts +28 -0
- package/dist/repl/slash/index.js +160 -0
- package/dist/repl/slash/knowledge.d.ts +8 -0
- package/dist/repl/slash/knowledge.js +287 -0
- package/dist/repl/slash/local.d.ts +5 -0
- package/dist/repl/slash/local.js +24 -0
- package/dist/repl/slash/mcp.d.ts +2 -0
- package/dist/repl/slash/mcp.js +63 -0
- package/dist/repl/slash/memory.d.ts +2 -0
- package/dist/repl/slash/memory.js +232 -0
- package/dist/repl/slash/net.d.ts +11 -0
- package/dist/repl/slash/net.js +83 -0
- package/dist/repl/slash/orchestration.d.ts +2 -0
- package/dist/repl/slash/orchestration.js +61 -0
- package/dist/repl/slash/safety.d.ts +2 -0
- package/dist/repl/slash/safety.js +131 -0
- package/dist/repl/slash/screen.d.ts +2 -0
- package/dist/repl/slash/screen.js +202 -0
- package/dist/repl/slash/search.d.ts +2 -0
- package/dist/repl/slash/search.js +211 -0
- package/dist/repl/slash/security.d.ts +2 -0
- package/dist/repl/slash/security.js +102 -0
- package/dist/repl/slash/session.d.ts +2 -0
- package/dist/repl/slash/session.js +498 -0
- package/dist/repl/slash/shortcuts.d.ts +2 -0
- package/dist/repl/slash/shortcuts.js +180 -0
- package/dist/repl/slash/side.d.ts +9 -0
- package/dist/repl/slash/side.js +27 -0
- package/dist/repl/slash/sprint.d.ts +2 -0
- package/dist/repl/slash/sprint.js +189 -0
- package/dist/repl/slash/team.d.ts +15 -0
- package/dist/repl/slash/team.js +235 -0
- package/dist/repl/slash/theme.d.ts +10 -0
- package/dist/repl/slash/theme.js +112 -0
- package/dist/repl/slash/types.d.ts +30 -0
- package/dist/repl/slash/types.js +2 -0
- package/dist/repl/slash/verbose.d.ts +18 -0
- package/dist/repl/slash/verbose.js +38 -0
- package/dist/repl/slash/verify.d.ts +10 -0
- package/dist/repl/slash/verify.js +171 -0
- package/dist/repl/slash/voice.d.ts +5 -0
- package/dist/repl/slash/voice.js +72 -0
- package/dist/repl/slash-git.d.ts +2 -0
- package/dist/repl/slash-git.js +132 -0
- package/dist/repl/slash-workflow.d.ts +2 -0
- package/dist/repl/slash-workflow.js +108 -0
- package/dist/repl/themes.d.ts +24 -0
- package/dist/repl/themes.js +253 -0
- package/dist/runtime/host-tools.d.ts +63 -0
- package/dist/runtime/host-tools.js +204 -0
- package/dist/runtime/index.d.ts +25 -0
- package/dist/runtime/index.js +19 -0
- package/dist/runtime/isolate.d.ts +88 -0
- package/dist/runtime/isolate.js +277 -0
- package/dist/runtime/mount.d.ts +105 -0
- package/dist/runtime/mount.js +458 -0
- package/dist/runtime/multiplayer.d.ts +128 -0
- package/dist/runtime/multiplayer.js +285 -0
- package/dist/runtime/network-control.d.ts +65 -0
- package/dist/runtime/network-control.js +195 -0
- package/dist/runtime/transcript.d.ts +128 -0
- package/dist/runtime/transcript.js +252 -0
- package/dist/runtime/wasm-commands.d.ts +27 -0
- package/dist/runtime/wasm-commands.js +156 -0
- package/dist/security/capabilityTokens.d.ts +44 -0
- package/dist/security/capabilityTokens.js +122 -0
- package/dist/security/csrf.d.ts +53 -0
- package/dist/security/csrf.js +181 -0
- package/dist/security/index.d.ts +6 -0
- package/dist/security/index.js +6 -0
- package/dist/security/rules.d.ts +12 -0
- package/dist/security/rules.js +212 -0
- package/dist/security/safeShell.d.ts +19 -0
- package/dist/security/safeShell.js +82 -0
- package/dist/security/scanner.d.ts +22 -0
- package/dist/security/scanner.js +190 -0
- package/dist/security/types.d.ts +53 -0
- package/dist/security/types.js +6 -0
- package/dist/services/UnifiedAgentClient.d.ts +75 -0
- package/dist/services/UnifiedAgentClient.js +180 -0
- package/dist/services/memory/feature-flag.d.ts +38 -0
- package/dist/services/memory/feature-flag.js +95 -0
- package/dist/services/memory/gepa-wrapper.d.ts +38 -0
- package/dist/services/memory/gepa-wrapper.js +177 -0
- package/dist/session/caps.d.ts +9 -0
- package/dist/session/caps.js +46 -0
- package/dist/session/checkpoint.d.ts +4 -0
- package/dist/session/checkpoint.js +91 -0
- package/dist/session/commands/delete.d.ts +2 -0
- package/dist/session/commands/delete.js +22 -0
- package/dist/session/commands/index.d.ts +7 -0
- package/dist/session/commands/index.js +8 -0
- package/dist/session/commands/list.d.ts +2 -0
- package/dist/session/commands/list.js +39 -0
- package/dist/session/commands/load.d.ts +2 -0
- package/dist/session/commands/load.js +35 -0
- package/dist/session/commands/save.d.ts +2 -0
- package/dist/session/commands/save.js +19 -0
- package/dist/session/db.d.ts +21 -0
- package/dist/session/db.js +289 -0
- package/dist/session/memory.d.ts +6 -0
- package/dist/session/memory.js +67 -0
- package/dist/session/persistence.d.ts +35 -0
- package/dist/session/persistence.js +166 -0
- package/dist/setup/hardwareDetect.d.ts +10 -0
- package/dist/setup/hardwareDetect.js +61 -0
- package/dist/setup/localAIPrompt.d.ts +1 -0
- package/dist/setup/localAIPrompt.js +84 -0
- package/dist/setup/modelCurator.d.ts +20 -0
- package/dist/setup/modelCurator.js +171 -0
- package/dist/skills/generator.d.ts +7 -0
- package/dist/skills/generator.js +76 -0
- package/dist/skills/index.d.ts +71 -0
- package/dist/skills/index.js +365 -0
- package/dist/skills/registry.d.ts +37 -0
- package/dist/skills/registry.js +120 -0
- package/dist/sprint/compressor.d.ts +9 -0
- package/dist/sprint/compressor.js +95 -0
- package/dist/sprint/critic.d.ts +12 -0
- package/dist/sprint/critic.js +44 -0
- package/dist/sprint/escalation.d.ts +12 -0
- package/dist/sprint/escalation.js +116 -0
- package/dist/sprint/executor.d.ts +13 -0
- package/dist/sprint/executor.js +231 -0
- package/dist/sprint/journal.d.ts +28 -0
- package/dist/sprint/journal.js +270 -0
- package/dist/sprint/manifest.d.ts +5 -0
- package/dist/sprint/manifest.js +183 -0
- package/dist/sprint/types.d.ts +96 -0
- package/dist/sprint/types.js +5 -0
- package/dist/sprint/verifier.d.ts +2 -0
- package/dist/sprint/verifier.js +152 -0
- package/dist/sprint/watchdog.d.ts +6 -0
- package/dist/sprint/watchdog.js +144 -0
- package/dist/swarm/agents/VerificationQuorum.d.ts +22 -0
- package/dist/swarm/agents/VerificationQuorum.js +146 -0
- package/dist/swarm/agents/WorkerAgent.d.ts +42 -0
- package/dist/swarm/agents/WorkerAgent.js +130 -0
- package/dist/swarm/collaboration/AgentGit.d.ts +39 -0
- package/dist/swarm/collaboration/AgentGit.js +102 -0
- package/dist/swarm/collaboration/CRDT.d.ts +28 -0
- package/dist/swarm/collaboration/CRDT.js +116 -0
- package/dist/swarm/commands.d.ts +5 -0
- package/dist/swarm/commands.js +144 -0
- package/dist/swarm/governance/CostOptimizer.d.ts +40 -0
- package/dist/swarm/governance/CostOptimizer.js +162 -0
- package/dist/swarm/index.d.ts +15 -0
- package/dist/swarm/index.js +16 -0
- package/dist/swarm/orchestration/ColonyManager.d.ts +45 -0
- package/dist/swarm/orchestration/ColonyManager.js +166 -0
- package/dist/swarm/runtime/ModelPool.d.ts +37 -0
- package/dist/swarm/runtime/ModelPool.js +162 -0
- package/dist/swarm/templates/SalesforceDomains.d.ts +25 -0
- package/dist/swarm/templates/SalesforceDomains.js +340 -0
- package/dist/swarm/testing/MacroTestFramework.d.ts +25 -0
- package/dist/swarm/testing/MacroTestFramework.js +109 -0
- package/dist/swarm/testing/MicroTestFramework.d.ts +23 -0
- package/dist/swarm/testing/MicroTestFramework.js +128 -0
- package/dist/swarm/types.d.ts +227 -0
- package/dist/swarm/types.js +5 -0
- package/dist/sync/engine.d.ts +17 -0
- package/dist/sync/engine.js +107 -0
- package/dist/sync/knowledge.d.ts +30 -0
- package/dist/sync/knowledge.js +155 -0
- package/dist/sync/schema.d.ts +1 -0
- package/dist/sync/schema.js +13 -0
- package/dist/sync/session.d.ts +24 -0
- package/dist/sync/session.js +70 -0
- package/dist/sync/types.d.ts +32 -0
- package/dist/sync/types.js +2 -0
- package/dist/sync/wiki-git.d.ts +17 -0
- package/dist/sync/wiki-git.js +80 -0
- package/dist/task/queue.d.ts +36 -0
- package/dist/task/queue.js +97 -0
- package/dist/tools/browser/agent.d.ts +12 -0
- package/dist/tools/browser/agent.js +119 -0
- package/dist/tools/browser/legacy.d.ts +5 -0
- package/dist/tools/browser/legacy.js +66 -0
- package/dist/tools/browser/utils.d.ts +5 -0
- package/dist/tools/browser/utils.js +27 -0
- package/dist/tools/browser/vision.d.ts +2 -0
- package/dist/tools/browser/vision.js +154 -0
- package/dist/tools/browser.d.ts +7 -0
- package/dist/tools/browser.js +100 -0
- package/dist/tools/defs.d.ts +2575 -0
- package/dist/tools/defs.js +129 -0
- package/dist/tools/deploy.d.ts +17 -0
- package/dist/tools/deploy.js +94 -0
- package/dist/tools/diff-util.d.ts +8 -0
- package/dist/tools/diff-util.js +100 -0
- package/dist/tools/file.d.ts +11 -0
- package/dist/tools/file.js +297 -0
- package/dist/tools/git.d.ts +11 -0
- package/dist/tools/git.js +139 -0
- package/dist/tools/index.d.ts +4 -0
- package/dist/tools/index.js +172 -0
- package/dist/tools/memory-graph.d.ts +21 -0
- package/dist/tools/memory-graph.js +72 -0
- package/dist/tools/memory.d.ts +5 -0
- package/dist/tools/memory.js +55 -0
- package/dist/tools/patch.d.ts +2 -0
- package/dist/tools/patch.js +103 -0
- package/dist/tools/repo.d.ts +2 -0
- package/dist/tools/repo.js +203 -0
- package/dist/tools/sandbox.d.ts +7 -0
- package/dist/tools/sandbox.js +101 -0
- package/dist/tools/search.d.ts +11 -0
- package/dist/tools/search.js +217 -0
- package/dist/tools/session-search.d.ts +2 -0
- package/dist/tools/session-search.js +31 -0
- package/dist/tools/shell-guards.spec.d.ts +1 -0
- package/dist/tools/shell-guards.spec.js +95 -0
- package/dist/tools/shell.d.ts +3 -0
- package/dist/tools/shell.js +241 -0
- package/dist/tools/symbol-graph.d.ts +2 -0
- package/dist/tools/symbol-graph.js +166 -0
- package/dist/tui/App.d.ts +5 -0
- package/dist/tui/App.js +670 -0
- package/dist/tui/TaskQueue.d.ts +68 -0
- package/dist/tui/TaskQueue.js +178 -0
- package/dist/tui/TaskQueueClass.d.ts +18 -0
- package/dist/tui/TaskQueueClass.js +83 -0
- package/dist/tui/TaskQueueTypes.d.ts +20 -0
- package/dist/tui/TaskQueueTypes.js +2 -0
- package/dist/tui/colors.d.ts +6 -0
- package/dist/tui/colors.js +48 -0
- package/dist/tui/commands.d.ts +14 -0
- package/dist/tui/commands.js +109 -0
- package/dist/tui/components/ActivitySummary.d.ts +8 -0
- package/dist/tui/components/ActivitySummary.js +59 -0
- package/dist/tui/components/CodeEditBox.d.ts +42 -0
- package/dist/tui/components/CodeEditBox.js +187 -0
- package/dist/tui/components/CompletedMsg.d.ts +4 -0
- package/dist/tui/components/CompletedMsg.js +40 -0
- package/dist/tui/components/CompletedSystemMsg.d.ts +3 -0
- package/dist/tui/components/CompletedSystemMsg.js +16 -0
- package/dist/tui/components/CompletedToolGroup.d.ts +9 -0
- package/dist/tui/components/CompletedToolGroup.js +47 -0
- package/dist/tui/components/DiffLineItem.d.ts +1 -0
- package/dist/tui/components/DiffLineItem.js +14 -0
- package/dist/tui/components/DiffView.d.ts +2 -0
- package/dist/tui/components/DiffView.js +34 -0
- package/dist/tui/components/ErrorMsg.d.ts +3 -0
- package/dist/tui/components/ErrorMsg.js +24 -0
- package/dist/tui/components/FileComplete.d.ts +8 -0
- package/dist/tui/components/FileComplete.js +18 -0
- package/dist/tui/components/FleetPanel.d.ts +1 -0
- package/dist/tui/components/FleetPanel.js +80 -0
- package/dist/tui/components/HelpOverlay.d.ts +5 -0
- package/dist/tui/components/HelpOverlay.js +88 -0
- package/dist/tui/components/HistorySearch.d.ts +7 -0
- package/dist/tui/components/HistorySearch.js +60 -0
- package/dist/tui/components/InputBox.d.ts +17 -0
- package/dist/tui/components/InputBox.js +57 -0
- package/dist/tui/components/InputHooks.d.ts +12 -0
- package/dist/tui/components/InputHooks.js +214 -0
- package/dist/tui/components/JitterFreeRenderer.d.ts +51 -0
- package/dist/tui/components/JitterFreeRenderer.js +289 -0
- package/dist/tui/components/KeysPicker.d.ts +1 -0
- package/dist/tui/components/KeysPicker.js +54 -0
- package/dist/tui/components/LiveThinkingNode.d.ts +1 -0
- package/dist/tui/components/LiveThinkingNode.js +8 -0
- package/dist/tui/components/LiveView.d.ts +1 -0
- package/dist/tui/components/LiveView.js +34 -0
- package/dist/tui/components/LocalModelRow.d.ts +1 -0
- package/dist/tui/components/LocalModelRow.js +9 -0
- package/dist/tui/components/ModelPicker.d.ts +1 -0
- package/dist/tui/components/ModelPicker.js +41 -0
- package/dist/tui/components/ModelRow.d.ts +1 -0
- package/dist/tui/components/ModelRow.js +8 -0
- package/dist/tui/components/ScrollLogic.d.ts +11 -0
- package/dist/tui/components/ScrollLogic.js +38 -0
- package/dist/tui/components/ScrollView.d.ts +7 -0
- package/dist/tui/components/ScrollView.js +45 -0
- package/dist/tui/components/SessionPicker.d.ts +14 -0
- package/dist/tui/components/SessionPicker.js +37 -0
- package/dist/tui/components/SlashHint.d.ts +3 -0
- package/dist/tui/components/SlashHint.js +16 -0
- package/dist/tui/components/SprintHelpers.d.ts +3 -0
- package/dist/tui/components/SprintHelpers.js +15 -0
- package/dist/tui/components/SprintStatus.d.ts +2 -0
- package/dist/tui/components/SprintStatus.js +31 -0
- package/dist/tui/components/SprintTaskRow.d.ts +1 -0
- package/dist/tui/components/SprintTaskRow.js +8 -0
- package/dist/tui/components/StatusBar.d.ts +16 -0
- package/dist/tui/components/StatusBar.js +29 -0
- package/dist/tui/components/__demos__/CodeEditDemo.d.ts +8 -0
- package/dist/tui/components/__demos__/CodeEditDemo.js +85 -0
- package/dist/tui/components/code-edit/CodeEditBox.d.ts +7 -0
- package/dist/tui/components/code-edit/CodeEditBox.js +16 -0
- package/dist/tui/components/code-edit/components/EditBadge.d.ts +10 -0
- package/dist/tui/components/code-edit/components/EditBadge.js +14 -0
- package/dist/tui/components/code-edit/components/EditItem.d.ts +7 -0
- package/dist/tui/components/code-edit/components/EditItem.js +20 -0
- package/dist/tui/components/code-edit/components/SyntaxHighlighter.d.ts +11 -0
- package/dist/tui/components/code-edit/components/SyntaxHighlighter.js +43 -0
- package/dist/tui/components/code-edit/index.d.ts +17 -0
- package/dist/tui/components/code-edit/index.js +29 -0
- package/dist/tui/components/code-edit/patterns/index.d.ts +6 -0
- package/dist/tui/components/code-edit/patterns/index.js +38 -0
- package/dist/tui/components/code-edit/patterns/javascript.d.ts +5 -0
- package/dist/tui/components/code-edit/patterns/javascript.js +17 -0
- package/dist/tui/components/code-edit/patterns/python.d.ts +5 -0
- package/dist/tui/components/code-edit/patterns/python.js +14 -0
- package/dist/tui/components/code-edit/patterns/typescript.d.ts +5 -0
- package/dist/tui/components/code-edit/patterns/typescript.js +20 -0
- package/dist/tui/components/code-edit/types.d.ts +32 -0
- package/dist/tui/components/code-edit/types.js +5 -0
- package/dist/tui/components/code-edit/utils.d.ts +8 -0
- package/dist/tui/components/code-edit/utils.js +35 -0
- package/dist/tui/components/jitter-free/FrameController.d.ts +13 -0
- package/dist/tui/components/jitter-free/FrameController.js +44 -0
- package/dist/tui/components/jitter-free/JitterFreeRenderer.d.ts +7 -0
- package/dist/tui/components/jitter-free/JitterFreeRenderer.js +22 -0
- package/dist/tui/components/jitter-free/SmoothSpinner.d.ts +7 -0
- package/dist/tui/components/jitter-free/SmoothSpinner.js +23 -0
- package/dist/tui/components/jitter-free/StableCursor.d.ts +7 -0
- package/dist/tui/components/jitter-free/StableCursor.js +15 -0
- package/dist/tui/components/jitter-free/StableScroll.d.ts +7 -0
- package/dist/tui/components/jitter-free/StableScroll.js +27 -0
- package/dist/tui/components/jitter-free/config.d.ts +7 -0
- package/dist/tui/components/jitter-free/config.js +8 -0
- package/dist/tui/components/jitter-free/hooks/index.d.ts +6 -0
- package/dist/tui/components/jitter-free/hooks/index.js +7 -0
- package/dist/tui/components/jitter-free/hooks/useDebounceRender.d.ts +9 -0
- package/dist/tui/components/jitter-free/hooks/useDebounceRender.js +33 -0
- package/dist/tui/components/jitter-free/hooks/useDoubleBuffer.d.ts +10 -0
- package/dist/tui/components/jitter-free/hooks/useDoubleBuffer.js +24 -0
- package/dist/tui/components/jitter-free/hooks/useScrollBuffer.d.ts +9 -0
- package/dist/tui/components/jitter-free/hooks/useScrollBuffer.js +25 -0
- package/dist/tui/components/jitter-free/index.d.ts +12 -0
- package/dist/tui/components/jitter-free/index.js +17 -0
- package/dist/tui/components/jitter-free/types.d.ts +26 -0
- package/dist/tui/components/jitter-free/types.js +5 -0
- package/dist/tui/components/jitter-free/utils.d.ts +15 -0
- package/dist/tui/components/jitter-free/utils.js +46 -0
- package/dist/tui/components/stream/StreamContainer.d.ts +6 -0
- package/dist/tui/components/stream/StreamContainer.js +75 -0
- package/dist/tui/components/stream/ThinkingStream.d.ts +13 -0
- package/dist/tui/components/stream/ThinkingStream.js +21 -0
- package/dist/tui/components/stream/ToolCallArgs.d.ts +3 -0
- package/dist/tui/components/stream/ToolCallArgs.js +7 -0
- package/dist/tui/components/stream/ToolCallBox.d.ts +13 -0
- package/dist/tui/components/stream/ToolCallBox.js +13 -0
- package/dist/tui/components/stream/ToolItem.d.ts +1 -0
- package/dist/tui/components/stream/ToolItem.js +59 -0
- package/dist/tui/components/stream/index.d.ts +9 -0
- package/dist/tui/components/stream/index.js +8 -0
- package/dist/tui/components/stream/types.d.ts +20 -0
- package/dist/tui/components/stream/types.js +2 -0
- package/dist/tui/components/useKeyInput.d.ts +6 -0
- package/dist/tui/components/useKeyInput.js +28 -0
- package/dist/tui/constants.d.ts +7 -0
- package/dist/tui/constants.js +7 -0
- package/dist/tui/helpers/grapheme.d.ts +27 -0
- package/dist/tui/helpers/grapheme.js +116 -0
- package/dist/tui/helpers.d.ts +7 -0
- package/dist/tui/helpers.js +43 -0
- package/dist/tui/index.d.ts +5 -0
- package/dist/tui/index.js +70 -0
- package/dist/tui/input/index.d.ts +5 -0
- package/dist/tui/input/index.js +2 -0
- package/dist/tui/keybindings.d.ts +10 -0
- package/dist/tui/keybindings.js +94 -0
- package/dist/tui/logo.d.ts +1 -0
- package/dist/tui/logo.js +57 -0
- package/dist/tui/markdown.d.ts +6 -0
- package/dist/tui/markdown.js +27 -0
- package/dist/tui/models.d.ts +142 -0
- package/dist/tui/models.js +47 -0
- package/dist/tui/polyfill.d.ts +3 -0
- package/dist/tui/polyfill.js +20 -0
- package/dist/tui/startup-cta.d.ts +18 -0
- package/dist/tui/startup-cta.js +123 -0
- package/dist/tui/syntax-languages.d.ts +4 -0
- package/dist/tui/syntax-languages.js +42 -0
- package/dist/tui/syntax-tokenizer.d.ts +7 -0
- package/dist/tui/syntax-tokenizer.js +137 -0
- package/dist/tui/syntax.d.ts +2 -0
- package/dist/tui/syntax.js +27 -0
- package/dist/tui/system.d.ts +5 -0
- package/dist/tui/system.js +29 -0
- package/dist/tui/themes.d.ts +19 -0
- package/dist/tui/themes.js +75 -0
- package/dist/tui/tui-types.d.ts +28 -0
- package/dist/tui/tui-types.js +2 -0
- package/dist/tui/useAppProcessor.d.ts +5 -0
- package/dist/tui/useAppProcessor.js +63 -0
- package/dist/tui/useAppSession.d.ts +26 -0
- package/dist/tui/useAppSession.js +57 -0
- package/dist/tui/useAppTaskQueue.d.ts +13 -0
- package/dist/tui/useAppTaskQueue.js +26 -0
- package/dist/tui/useStreamThrottle.d.ts +11 -0
- package/dist/tui/useStreamThrottle.js +39 -0
- package/dist/types.d.ts +182 -0
- package/dist/types.js +13 -0
- package/dist/utils/auth.d.ts +5 -0
- package/dist/utils/auth.js +46 -0
- package/dist/utils/config.d.ts +9 -0
- package/dist/utils/config.js +100 -0
- package/dist/utils/context.d.ts +4 -0
- package/dist/utils/context.js +142 -0
- package/dist/utils/credentials.d.ts +23 -0
- package/dist/utils/credentials.js +69 -0
- package/dist/utils/execution-controller.d.ts +45 -0
- package/dist/utils/execution-controller.js +228 -0
- package/dist/utils/experimental.d.ts +16 -0
- package/dist/utils/experimental.js +23 -0
- package/dist/utils/features.d.ts +18 -0
- package/dist/utils/features.js +38 -0
- package/dist/utils/health-monitor.d.ts +49 -0
- package/dist/utils/health-monitor.js +159 -0
- package/dist/utils/id.d.ts +19 -0
- package/dist/utils/id.js +42 -0
- package/dist/utils/index.d.ts +10 -0
- package/dist/utils/index.js +13 -0
- package/dist/utils/keys.d.ts +12 -0
- package/dist/utils/keys.js +50 -0
- package/dist/utils/logger.d.ts +12 -0
- package/dist/utils/logger.js +89 -0
- package/dist/utils/metrics.d.ts +12 -0
- package/dist/utils/metrics.js +36 -0
- package/dist/utils/paste-handler.d.ts +26 -0
- package/dist/utils/paste-handler.js +140 -0
- package/dist/utils/profile.d.ts +16 -0
- package/dist/utils/profile.js +68 -0
- package/dist/utils/project-tracker.d.ts +8 -0
- package/dist/utils/project-tracker.js +66 -0
- package/dist/utils/safe-exec.d.ts +20 -0
- package/dist/utils/safe-exec.js +32 -0
- package/dist/utils/security-boundary.d.ts +53 -0
- package/dist/utils/security-boundary.js +145 -0
- package/dist/utils/session-cache.d.ts +29 -0
- package/dist/utils/session-cache.js +112 -0
- package/dist/utils/soul.d.ts +4 -0
- package/dist/utils/soul.js +104 -0
- package/dist/utils/sqlite-future.d.ts +35 -0
- package/dist/utils/sqlite-future.js +66 -0
- package/dist/utils/sqlite.d.ts +35 -0
- package/dist/utils/sqlite.js +65 -0
- package/dist/utils/startup-profiler.d.ts +26 -0
- package/dist/utils/startup-profiler.js +61 -0
- package/dist/utils/state.d.ts +9 -0
- package/dist/utils/state.js +29 -0
- package/dist/utils/sum.d.ts +6 -0
- package/dist/utils/sum.js +11 -0
- package/dist/utils/token-counter.d.ts +18 -0
- package/dist/utils/token-counter.js +84 -0
- package/dist/utils/unified-memory.d.ts +80 -0
- package/dist/utils/unified-memory.js +171 -0
- package/dist/utils/update-verify.d.ts +7 -0
- package/dist/utils/update-verify.js +64 -0
- package/dist/voice/browser-extension.d.ts +37 -0
- package/dist/voice/browser-extension.js +97 -0
- package/dist/voice/commands.d.ts +5 -0
- package/dist/voice/commands.js +65 -0
- package/dist/voice/desktop.d.ts +42 -0
- package/dist/voice/desktop.js +254 -0
- package/dist/voice/index.d.ts +16 -0
- package/dist/voice/index.js +123 -0
- package/dist/voice/mobile-bridge.d.ts +12 -0
- package/dist/voice/mobile-bridge.js +139 -0
- package/dist/voice/personal-plex.d.ts +61 -0
- package/dist/voice/personal-plex.js +280 -0
- package/dist/voice/plex.d.ts +19 -0
- package/dist/voice/plex.js +55 -0
- package/dist/voice/recorder.d.ts +10 -0
- package/dist/voice/recorder.js +43 -0
- package/dist/voice/shortcuts.d.ts +16 -0
- package/dist/voice/shortcuts.js +31 -0
- package/dist/voice/transcribe.d.ts +3 -0
- package/dist/voice/transcribe.js +36 -0
- package/dist/voice/tts.d.ts +35 -0
- package/dist/voice/tts.js +190 -0
- package/dist/voice/types.d.ts +25 -0
- package/dist/voice/types.js +2 -0
- package/dist/workspace/store.d.ts +48 -0
- package/dist/workspace/store.js +106 -0
- package/dist_v2/audit/writer.d.ts +23 -0
- package/dist_v2/audit/writer.js +34 -0
- package/dist_v2/auth/keypool.d.ts +62 -0
- package/dist_v2/auth/keypool.js +211 -0
- package/dist_v2/auth/keystore.d.ts +20 -0
- package/dist_v2/auth/keystore.js +45 -0
- package/dist_v2/auth/providers.d.ts +35 -0
- package/dist_v2/auth/providers.js +66 -0
- package/dist_v2/cli/config.d.ts +51 -0
- package/dist_v2/cli/flags.js +2 -0
- package/dist_v2/cli/interactive.js +65 -7
- package/dist_v2/cli/main.js +331 -13
- package/dist_v2/cli/setup.js +2 -2
- package/dist_v2/cli/slash/fleet.d.ts +5 -3
- package/dist_v2/cli/slash/fleet.js +40 -13
- package/dist_v2/cli/subcommands/ask.js +3 -1
- package/dist_v2/cli/subcommands/audit-codebase.d.ts +18 -0
- package/dist_v2/cli/subcommands/audit-codebase.js +148 -0
- package/dist_v2/cli/subcommands/audit.js +36 -11
- package/dist_v2/cli/subcommands/chat.js +3 -1
- package/dist_v2/cli/subcommands/cost.d.ts +15 -0
- package/dist_v2/cli/subcommands/cost.js +143 -0
- package/dist_v2/cli/subcommands/index.js +20 -0
- package/dist_v2/cli/subcommands/kb.d.ts +19 -0
- package/dist_v2/cli/subcommands/kb.js +151 -0
- package/dist_v2/cli/subcommands/keys.js +117 -26
- package/dist_v2/cli/subcommands/ledger.d.ts +9 -0
- package/dist_v2/cli/subcommands/ledger.js +130 -0
- package/dist_v2/cli/subcommands/login.d.ts +9 -4
- package/dist_v2/cli/subcommands/login.js +92 -5
- package/dist_v2/cli/subcommands/memory.d.ts +10 -0
- package/dist_v2/cli/subcommands/memory.js +140 -0
- package/dist_v2/cli/subcommands/models.js +80 -3
- package/dist_v2/cli/subcommands/resume.d.ts +11 -0
- package/dist_v2/cli/subcommands/resume.js +138 -0
- package/dist_v2/cli/subcommands/skills.d.ts +14 -0
- package/dist_v2/cli/subcommands/skills.js +207 -0
- package/dist_v2/cli/subcommands/undo.d.ts +17 -0
- package/dist_v2/cli/subcommands/undo.js +144 -0
- package/dist_v2/cli/subcommands/update.d.ts +42 -0
- package/dist_v2/cli/subcommands/update.js +228 -0
- package/dist_v2/cli/subcommands/verify.d.ts +21 -0
- package/dist_v2/cli/subcommands/verify.js +126 -0
- package/dist_v2/context/compaction.d.ts +22 -0
- package/dist_v2/context/compaction.js +38 -0
- package/dist_v2/context/default-soul.md +36 -0
- package/dist_v2/context/git-state.d.ts +23 -0
- package/dist_v2/context/git-state.js +71 -0
- package/dist_v2/context/ledger.d.ts +58 -0
- package/dist_v2/context/ledger.js +178 -0
- package/dist_v2/context/mode-enforcement.d.ts +32 -0
- package/dist_v2/context/mode-enforcement.js +96 -0
- package/dist_v2/context/mode.d.ts +1 -1
- package/dist_v2/context/mode.js +5 -1
- package/dist_v2/context/primer.d.ts +45 -0
- package/dist_v2/context/primer.js +81 -0
- package/dist_v2/context/soul.d.ts +31 -0
- package/dist_v2/context/soul.js +63 -0
- package/dist_v2/extensions/api.d.ts +65 -0
- package/dist_v2/extensions/api.js +126 -0
- package/dist_v2/fleet/cli-command.js +56 -6
- package/dist_v2/fleet/runner.js +18 -4
- package/dist_v2/fleet/types.d.ts +4 -0
- package/dist_v2/hooks/config-bridge.d.ts +22 -0
- package/dist_v2/hooks/config-bridge.js +117 -0
- package/dist_v2/intelligence/models-refresh.d.ts +52 -0
- package/dist_v2/intelligence/models-refresh.js +82 -0
- package/dist_v2/intelligence/prices.d.ts +46 -0
- package/dist_v2/intelligence/prices.js +241 -3
- package/dist_v2/kernel/agent-loop.js +10 -0
- package/dist_v2/mcp/client.d.ts +5 -1
- package/dist_v2/mcp/client.js +34 -4
- package/dist_v2/mcp/loader.d.ts +36 -0
- package/dist_v2/mcp/loader.js +51 -0
- package/dist_v2/mcp/transport.d.ts +44 -0
- package/dist_v2/mcp/transport.js +120 -0
- package/dist_v2/providers/define-openai-compat.d.ts +53 -0
- package/dist_v2/providers/define-openai-compat.js +69 -0
- package/dist_v2/providers/dispatch.js +22 -20
- package/dist_v2/providers/nvidia.js +4 -3
- package/dist_v2/providers/openai-compat.js +49 -2
- package/dist_v2/providers/openrouter.js +7 -2
- package/dist_v2/providers/presets.d.ts +30 -0
- package/dist_v2/providers/presets.js +80 -0
- package/dist_v2/providers/rate-limiter.d.ts +50 -0
- package/dist_v2/providers/rate-limiter.js +93 -0
- package/dist_v2/security/skill-scanner.d.ts +43 -0
- package/dist_v2/security/skill-scanner.js +144 -0
- package/dist_v2/skills/loader.js +50 -5
- package/dist_v2/tools/git.js +8 -0
- package/dist_v2/tui/ink/App.js +143 -13
- package/dist_v2/tui/ink/components/ModelPicker.js +7 -1
- package/dist_v2/tui/ink/components/StatusBar.d.ts +8 -0
- package/dist_v2/tui/ink/components/StatusBar.js +20 -1
- package/dist_v2/tui/theme-loader.d.ts +29 -0
- package/dist_v2/tui/theme-loader.js +67 -0
- package/docs/ARCHITECTURE.md +163 -0
- package/docs/ROADMAP.md +52 -0
- package/docs/agents/arniko-plugin-spec.md +123 -0
- package/docs/agents/files-and-search.md +87 -0
- package/docs/agents/skill-security.md +127 -0
- package/docs/architecture/001-dependency-pinning.md +37 -0
- package/docs/architecture/002-mesh-security.md +36 -0
- package/docs/architecture/003-file-size-limits.md +37 -0
- package/docs/architecture/004-trust-levels.md +40 -0
- package/docs/audits/HY3-AUDIT-2026-04-25.md +47 -0
- package/docs/memory/architecture-efficiency.md +114 -0
- package/docs/memory/km-architecture.md +116 -0
- package/extensions/vscode/README.md +67 -0
- package/extensions/vscode/package.json +105 -0
- package/package.json +61 -94
- package/promo/assets/audio/dirgha-ambient-150s.m4a +0 -0
- package/promo/hyperframes.json +9 -0
- package/promo/index.html +363 -0
- package/promo/meta.json +5 -0
- package/scripts/gen-skill-md.mjs +97 -0
- package/scripts/preview-logos.mjs +113 -0
- package/scripts/qa-app/aliases_test.mjs +70 -0
- package/scripts/qa-app/audit_test.mjs +71 -0
- package/scripts/qa-app/browser_test.mjs +60 -0
- package/scripts/qa-app/cancel_offline_test.mjs +151 -0
- package/scripts/qa-app/cancel_test.mjs +112 -0
- package/scripts/qa-app/checkpoint_test.mjs +87 -0
- package/scripts/qa-app/compaction_test.mjs +112 -0
- package/scripts/qa-app/cost_test.mjs +72 -0
- package/scripts/qa-app/error_classifier_test.mjs +81 -0
- package/scripts/qa-app/extensions_test.mjs +148 -0
- package/scripts/qa-app/git_state_test.mjs +89 -0
- package/scripts/qa-app/hooks_test.mjs +105 -0
- package/scripts/qa-app/ink_smoke.py +151 -0
- package/scripts/qa-app/ink_unit_test.mjs +176 -0
- package/scripts/qa-app/kb_test.mjs +85 -0
- package/scripts/qa-app/kernel_hooks_test.mjs +178 -0
- package/scripts/qa-app/keypool_test.mjs +105 -0
- package/scripts/qa-app/keys_test.mjs +73 -0
- package/scripts/qa-app/ledger_search_test.mjs +74 -0
- package/scripts/qa-app/ledger_test.mjs +73 -0
- package/scripts/qa-app/login_byok_test.mjs +84 -0
- package/scripts/qa-app/mcp_oauth_test.mjs +109 -0
- package/scripts/qa-app/mcp_test.mjs +129 -0
- package/scripts/qa-app/mode_enforcement_test.mjs +88 -0
- package/scripts/qa-app/models_refresh_test.mjs +155 -0
- package/scripts/qa-app/nim_stream_test.mjs +132 -0
- package/scripts/qa-app/output/admin-secrets.json +17 -0
- package/scripts/qa-app/output/admin-secrets.png +0 -0
- package/scripts/qa-app/output/agents.json +17 -0
- package/scripts/qa-app/output/agents.png +0 -0
- package/scripts/qa-app/output/build.json +17 -0
- package/scripts/qa-app/output/build.png +0 -0
- package/scripts/qa-app/output/chat.json +17 -0
- package/scripts/qa-app/output/chat.png +0 -0
- package/scripts/qa-app/output/deploy.json +17 -0
- package/scripts/qa-app/output/deploy.png +0 -0
- package/scripts/qa-app/output/home.json +20 -0
- package/scripts/qa-app/output/home.png +0 -0
- package/scripts/qa-app/output/media.json +17 -0
- package/scripts/qa-app/output/media.png +0 -0
- package/scripts/qa-app/output/memory.json +17 -0
- package/scripts/qa-app/output/memory.png +0 -0
- package/scripts/qa-app/output/models.json +17 -0
- package/scripts/qa-app/output/models.png +0 -0
- package/scripts/qa-app/output/report.json +240 -0
- package/scripts/qa-app/output/report.md +307 -0
- package/scripts/qa-app/output/research.json +17 -0
- package/scripts/qa-app/output/research.png +0 -0
- package/scripts/qa-app/output/security.json +17 -0
- package/scripts/qa-app/output/security.png +0 -0
- package/scripts/qa-app/output/settings.json +17 -0
- package/scripts/qa-app/output/settings.png +0 -0
- package/scripts/qa-app/output/skills.json +17 -0
- package/scripts/qa-app/output/skills.png +0 -0
- package/scripts/qa-app/output/store.json +17 -0
- package/scripts/qa-app/output/store.png +0 -0
- package/scripts/qa-app/primer_test.mjs +71 -0
- package/scripts/qa-app/provider_matrix.mjs +176 -0
- package/scripts/qa-app/qa.py +271 -0
- package/scripts/qa-app/rate_limit_test.mjs +127 -0
- package/scripts/qa-app/registry_test.mjs +57 -0
- package/scripts/qa-app/rescore.py +87 -0
- package/scripts/qa-app/routes.json +20 -0
- package/scripts/qa-app/run-all.mjs +158 -0
- package/scripts/qa-app/session_test.mjs +81 -0
- package/scripts/qa-app/skill_scanner_test.mjs +156 -0
- package/scripts/qa-app/skills_install_test.mjs +100 -0
- package/scripts/qa-app/skills_test.mjs +98 -0
- package/scripts/qa-app/slash_audit.mjs +97 -0
- package/scripts/qa-app/soul_test.mjs +79 -0
- package/scripts/qa-app/task_tool_test.mjs +148 -0
- package/scripts/qa-app/themes_test.mjs +56 -0
- package/scripts/qa-app/tmux_debug.sh +37 -0
- package/scripts/qa-app/tmux_minimal.sh +66 -0
- package/scripts/qa-app/tmux_smoke.sh +119 -0
- package/scripts/qa-app/tokrate_test.mjs +108 -0
- package/scripts/qa-app/tool_registry_test.mjs +118 -0
- package/scripts/qa-app/tools_smoke.mjs +90 -0
- package/scripts/qa-app/transport_test.mjs +88 -0
- package/scripts/qa-app/undo_test.mjs +136 -0
- package/scripts/qa-app/update_test.mjs +94 -0
- package/scripts/test-browser-integration.sh +162 -0
- package/scripts/verify-deps.sh +19 -0
- package/src_v2/README.md +43 -0
- package/src_v2/acp/index.ts +1 -0
- package/src_v2/acp/server.ts +162 -0
- package/src_v2/audit/writer.ts +43 -0
- package/src_v2/auth/keypool.ts +216 -0
- package/src_v2/auth/keystore.ts +43 -0
- package/src_v2/auth/providers.ts +83 -0
- package/src_v2/cli/auth-cmd.ts +78 -0
- package/src_v2/cli/config.ts +130 -0
- package/src_v2/cli/flags.ts +75 -0
- package/src_v2/cli/flows/full-cycle.ts +72 -0
- package/src_v2/cli/flows/index.ts +2 -0
- package/src_v2/cli/flows/tarball.ts +55 -0
- package/src_v2/cli/index.ts +4 -0
- package/src_v2/cli/interactive.ts +307 -0
- package/src_v2/cli/main.ts +486 -0
- package/src_v2/cli/models-cmd.ts +62 -0
- package/src_v2/cli/setup.ts +143 -0
- package/src_v2/cli/slash/account.ts +62 -0
- package/src_v2/cli/slash/clear.ts +17 -0
- package/src_v2/cli/slash/compact.ts +15 -0
- package/src_v2/cli/slash/config.ts +53 -0
- package/src_v2/cli/slash/exit.ts +18 -0
- package/src_v2/cli/slash/fleet.ts +52 -0
- package/src_v2/cli/slash/help.ts +35 -0
- package/src_v2/cli/slash/history.ts +41 -0
- package/src_v2/cli/slash/index.ts +79 -0
- package/src_v2/cli/slash/init.ts +62 -0
- package/src_v2/cli/slash/keys.ts +102 -0
- package/src_v2/cli/slash/login.ts +55 -0
- package/src_v2/cli/slash/memory.ts +102 -0
- package/src_v2/cli/slash/mode.ts +32 -0
- package/src_v2/cli/slash/models.ts +79 -0
- package/src_v2/cli/slash/resume.ts +26 -0
- package/src_v2/cli/slash/session.ts +73 -0
- package/src_v2/cli/slash/setup.ts +48 -0
- package/src_v2/cli/slash/status.ts +38 -0
- package/src_v2/cli/slash/theme.ts +54 -0
- package/src_v2/cli/slash/types.ts +16 -0
- package/src_v2/cli/slash/upgrade.ts +73 -0
- package/src_v2/cli/slash.ts +128 -0
- package/src_v2/cli/subcommands/ask.ts +83 -0
- package/src_v2/cli/subcommands/audit-codebase.ts +161 -0
- package/src_v2/cli/subcommands/audit.ts +152 -0
- package/src_v2/cli/subcommands/chat.ts +72 -0
- package/src_v2/cli/subcommands/compact.ts +110 -0
- package/src_v2/cli/subcommands/cost.ts +157 -0
- package/src_v2/cli/subcommands/doctor.ts +121 -0
- package/src_v2/cli/subcommands/export-session.ts +63 -0
- package/src_v2/cli/subcommands/import-session.ts +87 -0
- package/src_v2/cli/subcommands/index.ts +99 -0
- package/src_v2/cli/subcommands/init.ts +78 -0
- package/src_v2/cli/subcommands/kb.ts +151 -0
- package/src_v2/cli/subcommands/keys.ts +197 -0
- package/src_v2/cli/subcommands/ledger.ts +118 -0
- package/src_v2/cli/subcommands/login.ts +149 -0
- package/src_v2/cli/subcommands/logout.ts +24 -0
- package/src_v2/cli/subcommands/memory.ts +124 -0
- package/src_v2/cli/subcommands/models.ts +210 -0
- package/src_v2/cli/subcommands/resume.ts +142 -0
- package/src_v2/cli/subcommands/setup.ts +111 -0
- package/src_v2/cli/subcommands/skills.ts +190 -0
- package/src_v2/cli/subcommands/stats.ts +151 -0
- package/src_v2/cli/subcommands/status.ts +101 -0
- package/src_v2/cli/subcommands/undo.ts +139 -0
- package/src_v2/cli/subcommands/update.ts +219 -0
- package/src_v2/cli/subcommands/verify.ts +147 -0
- package/src_v2/cli/submit-paper.ts +94 -0
- package/src_v2/context/_fts.ts +251 -0
- package/src_v2/context/branch.ts +86 -0
- package/src_v2/context/compaction.ts +199 -0
- package/src_v2/context/default-soul.md +36 -0
- package/src_v2/context/git-state.ts +78 -0
- package/src_v2/context/index.ts +5 -0
- package/src_v2/context/knowledge.ts +181 -0
- package/src_v2/context/ledger.ts +197 -0
- package/src_v2/context/memory.ts +337 -0
- package/src_v2/context/mode-enforcement.ts +87 -0
- package/src_v2/context/mode.ts +97 -0
- package/src_v2/context/primer.ts +88 -0
- package/src_v2/context/session.ts +115 -0
- package/src_v2/context/soul.ts +72 -0
- package/src_v2/daemon/index.ts +2 -0
- package/src_v2/daemon/protocol.ts +62 -0
- package/src_v2/daemon/server.ts +228 -0
- package/src_v2/eval/index.ts +5 -0
- package/src_v2/eval/regression.ts +116 -0
- package/src_v2/eval/reporter.ts +35 -0
- package/src_v2/eval/swe-bench.ts +32 -0
- package/src_v2/eval/terminal-bench.ts +27 -0
- package/src_v2/eval/types.ts +31 -0
- package/src_v2/extensions/api.ts +144 -0
- package/src_v2/fleet/apply-back.ts +210 -0
- package/src_v2/fleet/cli-command.ts +423 -0
- package/src_v2/fleet/index.ts +37 -0
- package/src_v2/fleet/runner.ts +412 -0
- package/src_v2/fleet/tripleshot.ts +282 -0
- package/src_v2/fleet/types.ts +210 -0
- package/src_v2/fleet/worktree.ts +189 -0
- package/src_v2/hooks/config-bridge.ts +116 -0
- package/src_v2/hooks/index.ts +1 -0
- package/src_v2/hooks/registry.ts +57 -0
- package/src_v2/index.ts +51 -0
- package/src_v2/integrations/arniko-client.ts +108 -0
- package/src_v2/integrations/auth.ts +90 -0
- package/src_v2/integrations/billing.ts +184 -0
- package/src_v2/integrations/bucky-client.ts +93 -0
- package/src_v2/integrations/deploy-client.ts +113 -0
- package/src_v2/integrations/device-auth.ts +224 -0
- package/src_v2/integrations/entitlements.ts +80 -0
- package/src_v2/integrations/http.ts +111 -0
- package/src_v2/integrations/index.ts +17 -0
- package/src_v2/intelligence/cost.ts +80 -0
- package/src_v2/intelligence/error-classifier.ts +76 -0
- package/src_v2/intelligence/index.ts +5 -0
- package/src_v2/intelligence/models-refresh.ts +105 -0
- package/src_v2/intelligence/prices.ts +292 -0
- package/src_v2/intelligence/smart-router.ts +75 -0
- package/src_v2/intelligence/telemetry.ts +50 -0
- package/src_v2/kernel/agent-loop.ts +207 -0
- package/src_v2/kernel/event-stream.ts +122 -0
- package/src_v2/kernel/index.ts +4 -0
- package/src_v2/kernel/message.ts +130 -0
- package/src_v2/kernel/types.ts +175 -0
- package/src_v2/mcp/client.ts +132 -0
- package/src_v2/mcp/index.ts +3 -0
- package/src_v2/mcp/loader.ts +76 -0
- package/src_v2/mcp/tool-bridge.ts +42 -0
- package/src_v2/mcp/transport.ts +217 -0
- package/src_v2/parity/index.ts +3 -0
- package/src_v2/parity/mock-openai-compat.ts +49 -0
- package/src_v2/parity/runner.ts +95 -0
- package/src_v2/parity/scenarios.ts +85 -0
- package/src_v2/providers/anthropic.ts +196 -0
- package/src_v2/providers/define-openai-compat.ts +107 -0
- package/src_v2/providers/dispatch.ts +65 -0
- package/src_v2/providers/fireworks.ts +51 -0
- package/src_v2/providers/gemini.ts +184 -0
- package/src_v2/providers/http.ts +201 -0
- package/src_v2/providers/iface.ts +31 -0
- package/src_v2/providers/index.ts +63 -0
- package/src_v2/providers/nvidia.ts +170 -0
- package/src_v2/providers/ollama.ts +45 -0
- package/src_v2/providers/openai-compat.ts +313 -0
- package/src_v2/providers/openai.ts +124 -0
- package/src_v2/providers/openrouter.ts +83 -0
- package/src_v2/providers/presets.ts +90 -0
- package/src_v2/providers/rate-limiter.ts +103 -0
- package/src_v2/safety/approval-bus.ts +65 -0
- package/src_v2/safety/audit-log.ts +100 -0
- package/src_v2/safety/index.ts +4 -0
- package/src_v2/safety/policy.ts +150 -0
- package/src_v2/safety/sandbox/bwrap.ts +51 -0
- package/src_v2/safety/sandbox/iface.ts +33 -0
- package/src_v2/safety/sandbox/index.ts +7 -0
- package/src_v2/safety/sandbox/landlock.ts +29 -0
- package/src_v2/safety/sandbox/noop.ts +60 -0
- package/src_v2/safety/sandbox/seatbelt.ts +53 -0
- package/src_v2/safety/sandbox/select.ts +37 -0
- package/src_v2/safety/sandbox/windows.ts +26 -0
- package/src_v2/security/skill-scanner.ts +167 -0
- package/src_v2/skills/index.ts +3 -0
- package/src_v2/skills/loader.ts +150 -0
- package/src_v2/skills/matcher.ts +66 -0
- package/src_v2/skills/runtime.ts +47 -0
- package/src_v2/subagents/delegator.ts +116 -0
- package/src_v2/subagents/index.ts +2 -0
- package/src_v2/subagents/pool.ts +41 -0
- package/src_v2/tools/browser.ts +249 -0
- package/src_v2/tools/checkpoint.ts +278 -0
- package/src_v2/tools/cron.ts +191 -0
- package/src_v2/tools/diff.ts +109 -0
- package/src_v2/tools/exec.ts +62 -0
- package/src_v2/tools/fs-edit.ts +96 -0
- package/src_v2/tools/fs-ls.ts +64 -0
- package/src_v2/tools/fs-read.ts +70 -0
- package/src_v2/tools/fs-write.ts +57 -0
- package/src_v2/tools/git.ts +78 -0
- package/src_v2/tools/index.ts +56 -0
- package/src_v2/tools/multimodal.ts +492 -0
- package/src_v2/tools/permission.ts +56 -0
- package/src_v2/tools/registry.ts +97 -0
- package/src_v2/tools/search-glob.ts +97 -0
- package/src_v2/tools/search-grep.ts +116 -0
- package/src_v2/tools/shell.ts +97 -0
- package/src_v2/tools/task.ts +49 -0
- package/src_v2/tui/approval.ts +57 -0
- package/src_v2/tui/index.ts +4 -0
- package/src_v2/tui/ink/App.tsx +439 -0
- package/src_v2/tui/ink/components/AtFileComplete.tsx +183 -0
- package/src_v2/tui/ink/components/HelpOverlay.tsx +181 -0
- package/src_v2/tui/ink/components/InputBox.tsx +199 -0
- package/src_v2/tui/ink/components/Logo.tsx +77 -0
- package/src_v2/tui/ink/components/ModelPicker.tsx +148 -0
- package/src_v2/tui/ink/components/PasteCollapse.tsx +98 -0
- package/src_v2/tui/ink/components/StatusBar.tsx +98 -0
- package/src_v2/tui/ink/components/StreamingText.tsx +30 -0
- package/src_v2/tui/ink/components/ThinkingBlock.tsx +39 -0
- package/src_v2/tui/ink/components/ToolBox.tsx +95 -0
- package/src_v2/tui/ink/components/vim-bindings.ts +150 -0
- package/src_v2/tui/ink/index.ts +69 -0
- package/src_v2/tui/ink/use-event-projection.ts +161 -0
- package/src_v2/tui/ink/use-overlays.ts +69 -0
- package/src_v2/tui/renderer.ts +112 -0
- package/src_v2/tui/status-bar.ts +25 -0
- package/src_v2/tui/theme-loader.ts +68 -0
- package/src_v2/tui/theme.ts +81 -0
- package/src_v2/utils/json-repair.ts +47 -0
- package/tsconfig.tsbuildinfo +1 -0
- package/tsconfig.v2.json +27 -0
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* useEventProjection: subscribes to the kernel EventStream and projects
|
|
3
|
+
* raw AgentEvents into the transcript records that App renders.
|
|
4
|
+
*
|
|
5
|
+
* Split out of App.tsx so the root component stays focused on layout.
|
|
6
|
+
* The projection rule set mirrors the v1 renderer: contiguous text
|
|
7
|
+
* deltas fold into a single TextSpan; thinking deltas into a
|
|
8
|
+
* ThinkingSpan; each tool invocation produces a ToolRecord that
|
|
9
|
+
* starts in 'running' and flips to 'done' or 'error' on exec_end.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import * as React from 'react';
|
|
13
|
+
import { randomUUID } from 'node:crypto';
|
|
14
|
+
import type { AgentEvent, UsageTotal } from '../../kernel/types.js';
|
|
15
|
+
import type { EventStream } from '../../kernel/event-stream.js';
|
|
16
|
+
import type { ToolStatus } from './components/ToolBox.js';
|
|
17
|
+
|
|
18
|
+
export type TranscriptItem =
|
|
19
|
+
| { kind: 'user'; id: string; text: string }
|
|
20
|
+
| { kind: 'text'; id: string; content: string }
|
|
21
|
+
| { kind: 'thinking'; id: string; content: string }
|
|
22
|
+
| {
|
|
23
|
+
kind: 'tool';
|
|
24
|
+
id: string;
|
|
25
|
+
name: string;
|
|
26
|
+
status: ToolStatus;
|
|
27
|
+
argSummary: string;
|
|
28
|
+
outputPreview: string;
|
|
29
|
+
startedAt: number;
|
|
30
|
+
durationMs?: number;
|
|
31
|
+
}
|
|
32
|
+
| { kind: 'error'; id: string; message: string }
|
|
33
|
+
| { kind: 'notice'; id: string; text: string };
|
|
34
|
+
|
|
35
|
+
export interface EventProjection {
|
|
36
|
+
liveItems: TranscriptItem[];
|
|
37
|
+
totals: UsageTotal;
|
|
38
|
+
commitLive: () => TranscriptItem[];
|
|
39
|
+
appendLive: (item: TranscriptItem) => void;
|
|
40
|
+
clear: () => void;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function useEventProjection(events: EventStream): EventProjection {
|
|
44
|
+
const [liveItems, setLiveItems] = React.useState<TranscriptItem[]>([]);
|
|
45
|
+
const [totals, setTotals] = React.useState<UsageTotal>({
|
|
46
|
+
inputTokens: 0, outputTokens: 0, cachedTokens: 0, costUsd: 0,
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
React.useEffect(() => {
|
|
50
|
+
// Local ids used to attribute in-flight deltas to the right span.
|
|
51
|
+
let currentTextId: string | null = null;
|
|
52
|
+
let currentThinkingId: string | null = null;
|
|
53
|
+
const unsubscribe = events.subscribe((event: AgentEvent) => {
|
|
54
|
+
switch (event.type) {
|
|
55
|
+
case 'text_start':
|
|
56
|
+
currentTextId = randomUUID();
|
|
57
|
+
currentThinkingId = null;
|
|
58
|
+
setLiveItems(prev => [...prev, { kind: 'text', id: currentTextId!, content: '' }]);
|
|
59
|
+
return;
|
|
60
|
+
case 'text_delta': {
|
|
61
|
+
const id = currentTextId;
|
|
62
|
+
if (!id) return;
|
|
63
|
+
setLiveItems(prev => prev.map(it => (
|
|
64
|
+
it.kind === 'text' && it.id === id ? { ...it, content: it.content + event.delta } : it
|
|
65
|
+
)));
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
case 'text_end':
|
|
69
|
+
currentTextId = null;
|
|
70
|
+
return;
|
|
71
|
+
case 'thinking_start':
|
|
72
|
+
currentThinkingId = randomUUID();
|
|
73
|
+
setLiveItems(prev => [...prev, { kind: 'thinking', id: currentThinkingId!, content: '' }]);
|
|
74
|
+
return;
|
|
75
|
+
case 'thinking_delta': {
|
|
76
|
+
const id = currentThinkingId;
|
|
77
|
+
if (!id) return;
|
|
78
|
+
setLiveItems(prev => prev.map(it => (
|
|
79
|
+
it.kind === 'thinking' && it.id === id ? { ...it, content: it.content + event.delta } : it
|
|
80
|
+
)));
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
case 'thinking_end':
|
|
84
|
+
currentThinkingId = null;
|
|
85
|
+
return;
|
|
86
|
+
case 'tool_exec_start': {
|
|
87
|
+
const item: TranscriptItem = {
|
|
88
|
+
kind: 'tool',
|
|
89
|
+
id: event.id,
|
|
90
|
+
name: event.name,
|
|
91
|
+
status: 'running',
|
|
92
|
+
argSummary: summariseInput(event.input),
|
|
93
|
+
outputPreview: '',
|
|
94
|
+
startedAt: Date.now(),
|
|
95
|
+
};
|
|
96
|
+
setLiveItems(prev => [...prev, item]);
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
case 'tool_exec_end': {
|
|
100
|
+
const status: ToolStatus = event.isError ? 'error' : 'done';
|
|
101
|
+
setLiveItems(prev => prev.map(it => (
|
|
102
|
+
it.kind === 'tool' && it.id === event.id
|
|
103
|
+
? { ...it, status, outputPreview: event.output.slice(0, 200), durationMs: event.durationMs }
|
|
104
|
+
: it
|
|
105
|
+
)));
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
case 'usage':
|
|
109
|
+
setTotals(prev => ({
|
|
110
|
+
inputTokens: prev.inputTokens + event.inputTokens,
|
|
111
|
+
outputTokens: prev.outputTokens + event.outputTokens,
|
|
112
|
+
cachedTokens: prev.cachedTokens + (event.cachedTokens ?? 0),
|
|
113
|
+
costUsd: prev.costUsd,
|
|
114
|
+
}));
|
|
115
|
+
return;
|
|
116
|
+
case 'error':
|
|
117
|
+
setLiveItems(prev => [...prev, { kind: 'error', id: randomUUID(), message: event.message }]);
|
|
118
|
+
return;
|
|
119
|
+
case 'turn_end':
|
|
120
|
+
currentTextId = null;
|
|
121
|
+
currentThinkingId = null;
|
|
122
|
+
return;
|
|
123
|
+
default:
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
return unsubscribe;
|
|
129
|
+
}, [events]);
|
|
130
|
+
|
|
131
|
+
const commitLive = React.useCallback((): TranscriptItem[] => {
|
|
132
|
+
let committed: TranscriptItem[] = [];
|
|
133
|
+
setLiveItems(prev => {
|
|
134
|
+
committed = prev;
|
|
135
|
+
return [];
|
|
136
|
+
});
|
|
137
|
+
return committed;
|
|
138
|
+
}, []);
|
|
139
|
+
|
|
140
|
+
const appendLive = React.useCallback((item: TranscriptItem): void => {
|
|
141
|
+
setLiveItems(prev => [...prev, item]);
|
|
142
|
+
}, []);
|
|
143
|
+
|
|
144
|
+
const clear = React.useCallback((): void => {
|
|
145
|
+
setLiveItems([]);
|
|
146
|
+
setTotals({ inputTokens: 0, outputTokens: 0, cachedTokens: 0, costUsd: 0 });
|
|
147
|
+
}, []);
|
|
148
|
+
|
|
149
|
+
return { liveItems, totals, commitLive, appendLive, clear };
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
function summariseInput(input: unknown, max = 60): string {
|
|
153
|
+
if (input === undefined || input === null) return '';
|
|
154
|
+
const s = typeof input === 'string' ? input : safeStringify(input);
|
|
155
|
+
const collapsed = s.replace(/\s+/g, ' ').trim();
|
|
156
|
+
return collapsed.length <= max ? collapsed : `${collapsed.slice(0, max - 1)}…`;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
function safeStringify(value: unknown): string {
|
|
160
|
+
try { return JSON.stringify(value); } catch { return String(value); }
|
|
161
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Overlay + input-assist state hook for the Ink root component.
|
|
3
|
+
*
|
|
4
|
+
* Owns the four overlay channels (model picker, help, @-file completion)
|
|
5
|
+
* plus the `@` query and any other state that would otherwise bloat
|
|
6
|
+
* App.tsx. Extracted so App stays under 500 LOC as the feature surface
|
|
7
|
+
* grew (model picker, help, vim mode, paste-collapse, at-file complete).
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
|
|
12
|
+
export type OverlayKind = 'models' | 'help' | 'atfile' | null;
|
|
13
|
+
|
|
14
|
+
export interface OverlayApi {
|
|
15
|
+
active: OverlayKind;
|
|
16
|
+
setActive: (k: OverlayKind) => void;
|
|
17
|
+
atQuery: string | null;
|
|
18
|
+
setAtQuery: (q: string | null) => void;
|
|
19
|
+
openOverlay: (k: 'models' | 'help') => void;
|
|
20
|
+
closeOverlay: () => void;
|
|
21
|
+
/**
|
|
22
|
+
* Splice a selected @-file path back into `value`, replacing the
|
|
23
|
+
* trailing @-token. Returns the new buffer — callers must pipe this
|
|
24
|
+
* into their setInput hook.
|
|
25
|
+
*/
|
|
26
|
+
spliceAtSelection: (value: string, selected: string) => string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export function useOverlays(): OverlayApi {
|
|
30
|
+
const [active, setActive] = React.useState<OverlayKind>(null);
|
|
31
|
+
const [atQuery, setAtQuery] = React.useState<string | null>(null);
|
|
32
|
+
|
|
33
|
+
// Keep the @-file overlay in sync with the input token.
|
|
34
|
+
React.useEffect(() => {
|
|
35
|
+
if (atQuery === null) {
|
|
36
|
+
if (active === 'atfile') setActive(null);
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
if (active === null) setActive('atfile');
|
|
40
|
+
}, [atQuery, active]);
|
|
41
|
+
|
|
42
|
+
const openOverlay = React.useCallback((k: 'models' | 'help'): void => {
|
|
43
|
+
setActive(k);
|
|
44
|
+
}, []);
|
|
45
|
+
|
|
46
|
+
const closeOverlay = React.useCallback((): void => {
|
|
47
|
+
setActive(null);
|
|
48
|
+
setAtQuery(null);
|
|
49
|
+
}, []);
|
|
50
|
+
|
|
51
|
+
const spliceAtSelection = React.useCallback((value: string, selected: string): string => {
|
|
52
|
+
const idx = value.lastIndexOf('@');
|
|
53
|
+
if (idx === -1) return value;
|
|
54
|
+
// Replace `@query` (up to next whitespace or end) with the path.
|
|
55
|
+
let end = idx + 1;
|
|
56
|
+
while (end < value.length && !/\s/.test(value[end] ?? '')) end += 1;
|
|
57
|
+
return `${value.slice(0, idx)}@${selected}${value.slice(end)}`;
|
|
58
|
+
}, []);
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
active,
|
|
62
|
+
setActive,
|
|
63
|
+
atQuery,
|
|
64
|
+
setAtQuery,
|
|
65
|
+
openOverlay,
|
|
66
|
+
closeOverlay,
|
|
67
|
+
spliceAtSelection,
|
|
68
|
+
};
|
|
69
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Streaming renderer.
|
|
3
|
+
*
|
|
4
|
+
* The v1 implementation is line-buffered rather than a full cell-level
|
|
5
|
+
* differential renderer: it writes assistant text deltas directly to
|
|
6
|
+
* stdout, emits newline-separated tool invocation banners, and prefixes
|
|
7
|
+
* status changes with ANSI-coloured tokens. It is intentionally simple
|
|
8
|
+
* and terminal-safe; a higher-fidelity differential renderer can be
|
|
9
|
+
* layered in later without changing this module's interface.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import type { AgentEvent } from '../kernel/types.js';
|
|
13
|
+
import { defaultTheme, noColour, style, type Theme } from './theme.js';
|
|
14
|
+
|
|
15
|
+
export interface StreamRendererOptions {
|
|
16
|
+
theme?: Theme;
|
|
17
|
+
colour?: boolean;
|
|
18
|
+
showThinking?: boolean;
|
|
19
|
+
write?: (chunk: string) => void;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export function renderStreamingEvents(opts: StreamRendererOptions = {}) {
|
|
23
|
+
const theme = opts.colour === false ? noColour() : opts.theme ?? defaultTheme;
|
|
24
|
+
const write = opts.write ?? ((chunk: string) => { process.stdout.write(chunk); });
|
|
25
|
+
const showThinking = opts.showThinking ?? false;
|
|
26
|
+
let thinkingBannerOpen = false;
|
|
27
|
+
|
|
28
|
+
return (event: AgentEvent): void => {
|
|
29
|
+
switch (event.type) {
|
|
30
|
+
case 'text_start':
|
|
31
|
+
thinkingBannerOpen && write('\n');
|
|
32
|
+
thinkingBannerOpen = false;
|
|
33
|
+
return;
|
|
34
|
+
case 'text_delta':
|
|
35
|
+
write(event.delta);
|
|
36
|
+
return;
|
|
37
|
+
case 'text_end':
|
|
38
|
+
return;
|
|
39
|
+
case 'thinking_start':
|
|
40
|
+
if (showThinking) {
|
|
41
|
+
thinkingBannerOpen = true;
|
|
42
|
+
write(style(theme.thinking, '\n• thinking… '));
|
|
43
|
+
}
|
|
44
|
+
return;
|
|
45
|
+
case 'thinking_delta':
|
|
46
|
+
if (showThinking) write(style(theme.thinking, event.delta));
|
|
47
|
+
return;
|
|
48
|
+
case 'thinking_end':
|
|
49
|
+
if (showThinking && thinkingBannerOpen) {
|
|
50
|
+
thinkingBannerOpen = false;
|
|
51
|
+
write('\n');
|
|
52
|
+
}
|
|
53
|
+
return;
|
|
54
|
+
case 'tool_exec_start': {
|
|
55
|
+
const summary = summarizeToolInput(event.name, event.input);
|
|
56
|
+
const head = summary ? `\n→ ${event.name} · ${summary}` : `\n→ ${event.name}`;
|
|
57
|
+
write(style(theme.tool, head));
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
case 'tool_exec_end': {
|
|
61
|
+
const token = event.isError ? theme.toolError : theme.tool;
|
|
62
|
+
const verdict = event.isError ? 'error' : 'done';
|
|
63
|
+
write(style(token, ` (${verdict}, ${event.durationMs}ms)\n`));
|
|
64
|
+
const preview = summarizeToolOutput(event.output, event.isError);
|
|
65
|
+
if (preview) write(style(token, ` ⎿ ${preview}\n`));
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
case 'error':
|
|
69
|
+
write(style(theme.danger, `\n[error] ${event.message}\n`));
|
|
70
|
+
return;
|
|
71
|
+
case 'turn_end':
|
|
72
|
+
write('\n');
|
|
73
|
+
return;
|
|
74
|
+
case 'agent_end':
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
const PREVIEW_MAX = 72;
|
|
81
|
+
|
|
82
|
+
function summarizeToolInput(name: string, input: unknown): string {
|
|
83
|
+
if (!input || typeof input !== 'object') return '';
|
|
84
|
+
const obj = input as Record<string, unknown>;
|
|
85
|
+
// Pick the most informative field for known tools first.
|
|
86
|
+
const candidates = ['command', 'path', 'file_path', 'pattern', 'query', 'url', 'cmd'];
|
|
87
|
+
for (const key of candidates) {
|
|
88
|
+
const value = obj[key];
|
|
89
|
+
if (typeof value === 'string' && value.length > 0) return truncate(value, PREVIEW_MAX);
|
|
90
|
+
}
|
|
91
|
+
// Fall back to the first string field.
|
|
92
|
+
for (const value of Object.values(obj)) {
|
|
93
|
+
if (typeof value === 'string' && value.length > 0) return truncate(value, PREVIEW_MAX);
|
|
94
|
+
}
|
|
95
|
+
void name;
|
|
96
|
+
return '';
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
function summarizeToolOutput(output: string, isError: boolean): string {
|
|
100
|
+
if (!output) return '';
|
|
101
|
+
const text = output.trim();
|
|
102
|
+
if (text.length === 0) return '';
|
|
103
|
+
if (isError) return truncate(text.split('\n')[0] ?? text, PREVIEW_MAX);
|
|
104
|
+
const lines = text.split('\n');
|
|
105
|
+
const first = lines[0] ?? '';
|
|
106
|
+
if (lines.length <= 1) return truncate(first, PREVIEW_MAX);
|
|
107
|
+
return `${truncate(first, PREVIEW_MAX - 12)} (+${lines.length - 1} lines)`;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
function truncate(s: string, n: number): string {
|
|
111
|
+
return s.length > n ? `${s.slice(0, n - 1)}…` : s;
|
|
112
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Status bar: rendered between turns. Shows model, session, turn count
|
|
3
|
+
* and cumulative cost/tokens.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { style, defaultTheme } from './theme.js';
|
|
7
|
+
import type { UsageTotal } from '../kernel/types.js';
|
|
8
|
+
|
|
9
|
+
export interface StatusBarState {
|
|
10
|
+
model: string;
|
|
11
|
+
sessionId: string;
|
|
12
|
+
turn: number;
|
|
13
|
+
usage: UsageTotal;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export function renderStatusBar(state: StatusBarState, width = 80): string {
|
|
17
|
+
const short = state.sessionId.slice(0, 8);
|
|
18
|
+
const cost = state.usage.costUsd.toFixed(4);
|
|
19
|
+
const tokens = `${state.usage.inputTokens}/${state.usage.outputTokens}`;
|
|
20
|
+
const left = `[${state.model}] session:${short} turn:${state.turn}`;
|
|
21
|
+
const right = `tokens ${tokens} • $${cost}`;
|
|
22
|
+
const gap = Math.max(1, width - left.length - right.length);
|
|
23
|
+
const line = `${left}${' '.repeat(gap)}${right}`;
|
|
24
|
+
return style(defaultTheme.muted, line);
|
|
25
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* User-defined theme loader.
|
|
3
|
+
*
|
|
4
|
+
* Reads `~/.dirgha/themes/<name>.json` at boot when a theme name isn't
|
|
5
|
+
* one of the baked-in values (`dark` / `light` / `none`). The JSON is
|
|
6
|
+
* a partial Theme — any missing keys fall back to `darkTheme` so a
|
|
7
|
+
* minimal theme file (one or two colour overrides) works.
|
|
8
|
+
*
|
|
9
|
+
* Format example (`~/.dirgha/themes/sunrise.json`):
|
|
10
|
+
*
|
|
11
|
+
* {
|
|
12
|
+
* "userPrompt": "[33m",
|
|
13
|
+
* "assistant": "[36m",
|
|
14
|
+
* "accent": "[35m"
|
|
15
|
+
* }
|
|
16
|
+
*
|
|
17
|
+
* ANSI escape sequences are written verbatim in JSON. We don't transform
|
|
18
|
+
* names (e.g. "magenta" → "[35m") to keep the parser zero-risk.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
import { readFileSync, readdirSync } from 'node:fs';
|
|
22
|
+
import { join } from 'node:path';
|
|
23
|
+
import { homedir } from 'node:os';
|
|
24
|
+
import type { Theme } from './theme.js';
|
|
25
|
+
import { darkTheme, lightTheme, noColour, themes } from './theme.js';
|
|
26
|
+
|
|
27
|
+
const BAKED_IN = new Set(['dark', 'light', 'none']);
|
|
28
|
+
|
|
29
|
+
/** All theme names visible to the user (baked-in + user-defined). */
|
|
30
|
+
export function listAvailableThemes(home: string = homedir()): string[] {
|
|
31
|
+
const out: string[] = ['dark', 'light', 'none'];
|
|
32
|
+
try {
|
|
33
|
+
const dir = join(home, '.dirgha', 'themes');
|
|
34
|
+
const entries = readdirSync(dir, { withFileTypes: true });
|
|
35
|
+
for (const e of entries) {
|
|
36
|
+
if (e.isFile() && e.name.endsWith('.json')) {
|
|
37
|
+
out.push(e.name.replace(/\.json$/, ''));
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
} catch { /* themes dir absent — fine */ }
|
|
41
|
+
return out;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Resolve a theme by name. Order:
|
|
46
|
+
* 1. Baked-in (`dark`, `light`, `none`).
|
|
47
|
+
* 2. `~/.dirgha/themes/<name>.json` — partial Theme JSON.
|
|
48
|
+
* 3. Fall back to `darkTheme` with a one-line stderr warning.
|
|
49
|
+
*/
|
|
50
|
+
export function resolveThemeByName(name: string | undefined, home: string = homedir()): Theme {
|
|
51
|
+
if (!name) return darkTheme;
|
|
52
|
+
if (BAKED_IN.has(name)) {
|
|
53
|
+
return themes[name as keyof typeof themes] ?? darkTheme;
|
|
54
|
+
}
|
|
55
|
+
// User-defined.
|
|
56
|
+
try {
|
|
57
|
+
const path = join(home, '.dirgha', 'themes', `${name}.json`);
|
|
58
|
+
const raw = readFileSync(path, 'utf8');
|
|
59
|
+
const partial = JSON.parse(raw) as Partial<Theme>;
|
|
60
|
+
return { ...darkTheme, ...partial };
|
|
61
|
+
} catch (err) {
|
|
62
|
+
const msg = err instanceof Error ? err.message : String(err);
|
|
63
|
+
process.stderr.write(`warning: theme '${name}' not found — falling back to dark (${msg})\n`);
|
|
64
|
+
return darkTheme;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
void lightTheme; void noColour;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ANSI colour tokens. Scoped to what the TUI actually uses — no
|
|
3
|
+
* overreach into a full style system. Callers wrap strings via style().
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
const RESET = '\x1b[0m';
|
|
7
|
+
|
|
8
|
+
export interface Theme {
|
|
9
|
+
userPrompt: string;
|
|
10
|
+
assistant: string;
|
|
11
|
+
thinking: string;
|
|
12
|
+
tool: string;
|
|
13
|
+
toolError: string;
|
|
14
|
+
systemNotice: string;
|
|
15
|
+
muted: string;
|
|
16
|
+
accent: string;
|
|
17
|
+
warning: string;
|
|
18
|
+
danger: string;
|
|
19
|
+
success: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// Dark palette — tuned for dark terminal backgrounds.
|
|
23
|
+
export const darkTheme: Theme = {
|
|
24
|
+
userPrompt: '\x1b[1;36m', // bold cyan
|
|
25
|
+
assistant: '\x1b[0m', // plain
|
|
26
|
+
thinking: '\x1b[2;37m', // dim grey
|
|
27
|
+
tool: '\x1b[35m', // magenta
|
|
28
|
+
toolError: '\x1b[31m', // red
|
|
29
|
+
systemNotice: '\x1b[33m', // yellow
|
|
30
|
+
muted: '\x1b[2m',
|
|
31
|
+
accent: '\x1b[1;34m',
|
|
32
|
+
warning: '\x1b[33m',
|
|
33
|
+
danger: '\x1b[31m',
|
|
34
|
+
success: '\x1b[32m',
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
// Light palette — swaps dim/bright so white terminals stay legible.
|
|
38
|
+
export const lightTheme: Theme = {
|
|
39
|
+
userPrompt: '\x1b[1;34m', // bold blue (cyan washes out on light)
|
|
40
|
+
assistant: '\x1b[0m',
|
|
41
|
+
thinking: '\x1b[2;30m', // dim black (not grey)
|
|
42
|
+
tool: '\x1b[35m',
|
|
43
|
+
toolError: '\x1b[1;31m', // bold red so it pops
|
|
44
|
+
systemNotice: '\x1b[33m',
|
|
45
|
+
muted: '\x1b[2;30m',
|
|
46
|
+
accent: '\x1b[1;34m',
|
|
47
|
+
warning: '\x1b[1;33m',
|
|
48
|
+
danger: '\x1b[1;31m',
|
|
49
|
+
success: '\x1b[1;32m',
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
// Backward-compat alias — existing call sites use `defaultTheme`.
|
|
53
|
+
export const defaultTheme: Theme = darkTheme;
|
|
54
|
+
|
|
55
|
+
export type ThemeName = 'dark' | 'light' | 'none';
|
|
56
|
+
|
|
57
|
+
export const themes: Record<ThemeName, Theme> = {
|
|
58
|
+
dark: darkTheme,
|
|
59
|
+
light: lightTheme,
|
|
60
|
+
none: Object.fromEntries(
|
|
61
|
+
Object.keys(darkTheme).map(k => [k, '']),
|
|
62
|
+
) as unknown as Theme,
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
/** Look up a theme by name; unknown names fall back to dark. */
|
|
66
|
+
export function getTheme(name: string | undefined): Theme {
|
|
67
|
+
if (name && name in themes) return themes[name as ThemeName];
|
|
68
|
+
return darkTheme;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function style(token: string, text: string): string {
|
|
72
|
+
return `${token}${text}${RESET}`;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function styleDim(text: string): string {
|
|
76
|
+
return style(defaultTheme.muted, text);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function noColour(): Theme {
|
|
80
|
+
return themes.none;
|
|
81
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Heuristic repair for partial or malformed JSON produced by streaming
|
|
3
|
+
* model output. Invoked when a JSON.parse fails on a tool-call argument
|
|
4
|
+
* blob or a chunked response. Best-effort — returns {} on total failure
|
|
5
|
+
* so callers never throw from a cosmetically bad payload.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export function repairJSON(raw: string): unknown {
|
|
9
|
+
if (!raw || !raw.trim()) return {};
|
|
10
|
+
|
|
11
|
+
let trimmed = raw.trim();
|
|
12
|
+
|
|
13
|
+
try {
|
|
14
|
+
return JSON.parse(trimmed);
|
|
15
|
+
} catch {
|
|
16
|
+
/* proceed to repairs */
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const quoteCount = (trimmed.match(/"/g) || []).length;
|
|
20
|
+
if (quoteCount % 2 !== 0) {
|
|
21
|
+
trimmed += '"';
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
trimmed = trimmed.replace(/,\s*([}\]])/g, '$1');
|
|
25
|
+
|
|
26
|
+
const stack: string[] = [];
|
|
27
|
+
for (let i = 0; i < trimmed.length; i++) {
|
|
28
|
+
const char = trimmed[i];
|
|
29
|
+
if (char === '{') stack.push('}');
|
|
30
|
+
else if (char === '[') stack.push(']');
|
|
31
|
+
else if (char === '}' || char === ']') {
|
|
32
|
+
if (stack.length > 0 && stack[stack.length - 1] === char) {
|
|
33
|
+
stack.pop();
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
while (stack.length > 0) {
|
|
39
|
+
trimmed += stack.pop();
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
try {
|
|
43
|
+
return JSON.parse(trimmed);
|
|
44
|
+
} catch {
|
|
45
|
+
return {};
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"root":["./src/index-agent.ts","./src/index.ts","./src/types.ts","./src/agent/capabilities.ts","./src/agent/compaction-tiers.ts","./src/agent/compaction.ts","./src/agent/context-optimizer.ts","./src/agent/context.ts","./src/agent/error-classifier.ts","./src/agent/event-emit.ts","./src/agent/executor.ts","./src/agent/gateway.ts","./src/agent/index.ts","./src/agent/injector.ts","./src/agent/loop-detector.ts","./src/agent/loop.ts","./src/agent/memory-sync.ts","./src/agent/model-fallback.ts","./src/agent/moim.ts","./src/agent/output.ts","./src/agent/parser.ts","./src/agent/pending-messages.ts","./src/agent/project.ts","./src/agent/reflection.ts","./src/agent/rerank-engine.ts","./src/agent/routing.ts","./src/agent/secrets.ts","./src/agent/skill-registry.ts","./src/agent/spawn-agent.ts","./src/agent/structured-output.ts","./src/agent/tool-execution.ts","./src/agent/tools.ts","./src/agent/types.ts","./src/agent/collaboration/consensus.ts","./src/agent/collaboration/index.ts","./src/agent/collaboration/message-bus.ts","./src/agent/collaboration/shared-context.ts","./src/agent/collaboration/types.ts","./src/agent/commands/chat.ts","./src/agent/orchestration/agent-pool.ts","./src/agent/orchestration/circuit-breaker.ts","./src/agent/orchestration/coordinator.ts","./src/agent/orchestration/dag-runner.ts","./src/agent/orchestration/dag.ts","./src/agent/orchestration/decomposer.ts","./src/agent/orchestration/observability.ts","./src/agent/orchestration/parallel.ts","./src/agent/orchestration/pool-cleanup.ts","./src/agent/orchestration/pool-queue.ts","./src/agent/orchestration/pool-scaler.ts","./src/agent/orchestration/researcher.ts","./src/agent/orchestration/retry.ts","./src/agent/orchestration/scheduler.ts","./src/agent/orchestration/shared-memory.ts","./src/agent/orchestration/structured.ts","./src/agent/orchestration/task-queue.ts","./src/agent/orchestration/types.ts","./src/agent/spawn/index.ts","./src/agent/spawn/lifecycle.ts","./src/agent/spawn/messaging.ts","./src/agent/spawn/state.ts","./src/agent/spawn/types.ts","./src/agent/spawn/utils.ts","./src/agents/consensus.ts","./src/agents/delegate.ts","./src/agents/ensemble.ts","./src/agents/orchestrate.ts","./src/agents/types.ts","./src/analytics/export.ts","./src/analytics/insights.ts","./src/api/knowledge.ts","./src/billing/db.ts","./src/billing/index.ts","./src/billing/meter.ts","./src/billing/middleware.ts","./src/billing/pricing.ts","./src/billing/quota.ts","./src/billing/ratelimit-fixed.ts","./src/billing/ratelimit.ts","./src/billing/tokenizer-v2.ts","./src/billing/tokenizer.ts","./src/billing/types.ts","./src/browser/accessibility.ts","./src/browser/commands.ts","./src/browser/ipc-client.ts","./src/browser/launcher.ts","./src/browser/navigation.ts","./src/browser/snapshot.ts","./src/browser/types.ts","./src/checkpoint/create.ts","./src/checkpoint/git.ts","./src/checkpoint/restore.ts","./src/checkpoint/store.ts","./src/checkpoint/types.ts","./src/commands/agent-swarm.ts","./src/commands/analytics.ts","./src/commands/ask.ts","./src/commands/audit.ts","./src/commands/auth.ts","./src/commands/autocomplete.ts","./src/commands/bounties.ts","./src/commands/browser-cmd.ts","./src/commands/browser-integration.ts","./src/commands/btw.ts","./src/commands/bucky.ts","./src/commands/bug-hunter.ts","./src/commands/capture.ts","./src/commands/chat.ts","./src/commands/checkpoint.ts","./src/commands/coming-soon.ts","./src/commands/compact.ts","./src/commands/connect.ts","./src/commands/curate.ts","./src/commands/dao.ts","./src/commands/data-query.ts","./src/commands/doctor.ts","./src/commands/ensemble.ts","./src/commands/error-recovery.ts","./src/commands/export-session.ts","./src/commands/import-session.ts","./src/commands/index.ts","./src/commands/init.ts","./src/commands/jobs.ts","./src/commands/join-mesh.ts","./src/commands/knowledge.ts","./src/commands/local.ts","./src/commands/login.ts","./src/commands/logout.ts","./src/commands/make.ts","./src/commands/mcp.ts","./src/commands/mesh.ts","./src/commands/models.ts","./src/commands/pay.ts","./src/commands/profile.ts","./src/commands/progress.ts","./src/commands/prune.ts","./src/commands/query.ts","./src/commands/recall-cmd.ts","./src/commands/remember-cmd.ts","./src/commands/research.ts","./src/commands/sandbox-connect.ts","./src/commands/scan.ts","./src/commands/scratchpad.ts","./src/commands/session.ts","./src/commands/setup-local.ts","./src/commands/setup.ts","./src/commands/smart-exec.ts","./src/commands/sprint.ts","./src/commands/stats.ts","./src/commands/status.ts","./src/commands/support.ts","./src/commands/sync.ts","./src/commands/update.ts","./src/commands/voice-entry.ts","./src/commands/yolo.ts","./src/commands/curate/embeddings.ts","./src/commands/curate/files.ts","./src/commands/curate/project.ts","./src/commands/curate/schema.ts","./src/commands/curate/types.ts","./src/commands/curate/vss-integration.ts","./src/commands/mesh/add-member.ts","./src/commands/mesh/ask.ts","./src/commands/mesh/billing.ts","./src/commands/mesh/consensus.ts","./src/commands/mesh/context.ts","./src/commands/mesh/index.ts","./src/commands/mesh/join.ts","./src/commands/mesh/leave.ts","./src/commands/mesh/quota.ts","./src/commands/mesh/status.ts","./src/commands/mesh/types.ts","./src/commands/scan/arniko.ts","./src/commands/scan/deps.ts","./src/commands/scan/index.ts","./src/commands/scan/output.ts","./src/commands/scan/types.ts","./src/commands/scan/utils.ts","./src/commands/unified-memory/context.ts","./src/commands/unified-memory/index.ts","./src/commands/unified-memory/recall.ts","./src/commands/unified-memory/remember.ts","./src/commands/unified-memory/session.ts","./src/commands/unified-memory/stats.ts","./src/compaction/index.ts","./src/compaction/protect.ts","./src/compaction/prune.ts","./src/compaction/summarize.ts","./src/compaction/types.ts","./src/compaction/update.ts","./src/config/execution.ts","./src/config/rate-limits.ts","./src/context/jit.ts","./src/context/todos.ts","./src/cron/runner.ts","./src/cron/store.ts","./src/embeddings/gateway.ts","./src/embeddings/math.ts","./src/embeddings/ollama.ts","./src/embeddings/provider.ts","./src/embeddings/vss.ts","./src/errors/tokenLimit.ts","./src/extensions/manager.ts","./src/extensions/rpc.ts","./src/extensions/types.ts","./src/fleet/apply-back.ts","./src/fleet/commands.ts","./src/fleet/decompose.ts","./src/fleet/events.ts","./src/fleet/runtime.ts","./src/fleet/tripleshot.ts","./src/fleet/types.ts","./src/fleet/worktree.ts","./src/gateway/index.ts","./src/gateway/orchestrator.ts","./src/gateway/router.ts","./src/gateway/telegram.ts","./src/gateway/types.ts","./src/gateway/acp/adapter.ts","./src/gateway/acp/index.ts","./src/gateway/acp/registry.ts","./src/gateway/acp/types.ts","./src/git/rotation.ts","./src/hub/commands.ts","./src/hub/index.ts","./src/hub/installer.ts","./src/hub/registry.ts","./src/hub/types.ts","./src/knowledge/compiler.ts","./src/knowledge/git-sync.ts","./src/knowledge/linter.ts","./src/knowledge/raw.ts","./src/knowledge/wiki.ts","./src/llm/cache.ts","./src/llm/costs.ts","./src/llm/ensemble.ts","./src/llm/local.ts","./src/llm/router.ts","./src/llm/types.ts","./src/mcp/client.ts","./src/mcp/commands.ts","./src/mcp/index.ts","./src/mcp/manager.ts","./src/mcp/marketplace.ts","./src/mcp/resources.ts","./src/mcp/server.ts","./src/mcp/transport.ts","./src/memory/builtin.ts","./src/memory/gepa-integration.ts","./src/memory/graph.ts","./src/memory/holographic.ts","./src/memory/manager.ts","./src/memory/provider.ts","./src/memory/unified.ts","./src/mesh/ConsensusEngine.ts","./src/mesh/LightningBilling.ts","./src/mesh/MeshNode.ts","./src/mesh/TeamResourcePool.ts","./src/mesh/agent-payments.ts","./src/mesh/capabilities.ts","./src/mesh/config.ts","./src/mesh/index.ts","./src/mesh/reputation.ts","./src/mesh/revenue-split.ts","./src/mesh/validation.ts","./src/models/credential-pool.ts","./src/models/index.ts","./src/models/manager.ts","./src/models/registry.ts","./src/models/types.ts","./src/multimodal/attachments.ts","./src/multimodal/index.ts","./src/multimodal/slash.ts","./src/multimodal/types.ts","./src/permission/approval.ts","./src/permission/confirmation.ts","./src/permission/judge.ts","./src/permission/store.ts","./src/platform/sync.ts","./src/project-session/commands.ts","./src/project-session/context.ts","./src/project-session/index.ts","./src/project-session/project.ts","./src/project-session/session.ts","./src/project-session/types.ts","./src/providers/anthropic.ts","./src/providers/circuit-breaker.ts","./src/providers/cohere.ts","./src/providers/deepinfra.ts","./src/providers/detection.ts","./src/providers/dirgha.ts","./src/providers/dispatch.ts","./src/providers/fireworks.ts","./src/providers/gateway.ts","./src/providers/gemini.ts","./src/providers/groq.ts","./src/providers/http.ts","./src/providers/index.ts","./src/providers/messages.ts","./src/providers/mistral.ts","./src/providers/normalise.ts","./src/providers/nvidia.ts","./src/providers/openai.ts","./src/providers/openrouter.ts","./src/providers/perplexity.ts","./src/providers/rate-limit.ts","./src/providers/togetherai.ts","./src/providers/tools-format.ts","./src/providers/types.ts","./src/providers/unified-rate-limiter.ts","./src/providers/vercel.ts","./src/providers/xai.ts","./src/realtime/hub.ts","./src/repl/escape-recovery.ts","./src/repl/index.ts","./src/repl/input.ts","./src/repl/renderer.ts","./src/repl/slash-git.ts","./src/repl/slash-workflow.ts","./src/repl/themes.ts","./src/repl/slash/account.ts","./src/repl/slash/agent-discovery.ts","./src/repl/slash/config.ts","./src/repl/slash/consensus.ts","./src/repl/slash/context.ts","./src/repl/slash/cron.ts","./src/repl/slash/dev.ts","./src/repl/slash/fs.ts","./src/repl/slash/git-ext.ts","./src/repl/slash/git.ts","./src/repl/slash/hermes.ts","./src/repl/slash/index.ts","./src/repl/slash/knowledge.ts","./src/repl/slash/local.ts","./src/repl/slash/mcp.ts","./src/repl/slash/memory.ts","./src/repl/slash/net.ts","./src/repl/slash/orchestration.ts","./src/repl/slash/safety.ts","./src/repl/slash/screen.ts","./src/repl/slash/search.ts","./src/repl/slash/security.ts","./src/repl/slash/session.ts","./src/repl/slash/shortcuts.ts","./src/repl/slash/side.ts","./src/repl/slash/sprint.ts","./src/repl/slash/team.ts","./src/repl/slash/theme.ts","./src/repl/slash/types.ts","./src/repl/slash/verbose.ts","./src/repl/slash/verify.ts","./src/repl/slash/voice.ts","./src/runtime/host-tools.ts","./src/runtime/index.ts","./src/runtime/isolate.ts","./src/runtime/mount.ts","./src/runtime/multiplayer.ts","./src/runtime/network-control.ts","./src/runtime/transcript.ts","./src/runtime/wasm-commands.ts","./src/security/capabilityTokens.ts","./src/security/csrf.ts","./src/security/index.ts","./src/security/rules.ts","./src/security/safeShell.ts","./src/security/scanner.ts","./src/security/types.ts","./src/services/UnifiedAgentClient.ts","./src/services/memory/feature-flag.ts","./src/services/memory/gepa-wrapper.ts","./src/session/caps.ts","./src/session/checkpoint.ts","./src/session/db.ts","./src/session/memory.ts","./src/session/persistence.ts","./src/session/commands/delete.ts","./src/session/commands/index.ts","./src/session/commands/list.ts","./src/session/commands/load.ts","./src/session/commands/save.ts","./src/setup/hardwareDetect.ts","./src/setup/localAIPrompt.ts","./src/setup/modelCurator.ts","./src/skills/generator.ts","./src/skills/index.ts","./src/skills/md.d.ts","./src/skills/registry.ts","./src/sprint/compressor.ts","./src/sprint/critic.ts","./src/sprint/escalation.ts","./src/sprint/executor.ts","./src/sprint/journal.ts","./src/sprint/manifest.ts","./src/sprint/types.ts","./src/sprint/verifier.ts","./src/sprint/watchdog.ts","./src/swarm/commands.ts","./src/swarm/index.ts","./src/swarm/types.ts","./src/swarm/agents/VerificationQuorum.ts","./src/swarm/agents/WorkerAgent.ts","./src/swarm/collaboration/AgentGit.ts","./src/swarm/collaboration/CRDT.ts","./src/swarm/governance/CostOptimizer.ts","./src/swarm/orchestration/ColonyManager.ts","./src/swarm/runtime/ModelPool.ts","./src/swarm/templates/SalesforceDomains.ts","./src/swarm/testing/MacroTestFramework.ts","./src/swarm/testing/MicroTestFramework.ts","./src/sync/engine.ts","./src/sync/knowledge.ts","./src/sync/schema.ts","./src/sync/session.ts","./src/sync/types.ts","./src/sync/wiki-git.ts","./src/task/queue.ts","./src/tools/browser.ts","./src/tools/defs.ts","./src/tools/deploy.ts","./src/tools/diff-util.ts","./src/tools/file.ts","./src/tools/git.ts","./src/tools/index.ts","./src/tools/memory-graph.ts","./src/tools/memory.ts","./src/tools/patch.ts","./src/tools/repo.ts","./src/tools/sandbox.ts","./src/tools/search.ts","./src/tools/session-search.ts","./src/tools/shell-guards.spec.ts","./src/tools/shell.ts","./src/tools/symbol-graph.ts","./src/tools/browser/agent.ts","./src/tools/browser/legacy.ts","./src/tools/browser/utils.ts","./src/tools/browser/vision.ts","./src/tui/App.tsx","./src/tui/TaskQueue.ts","./src/tui/TaskQueueClass.ts","./src/tui/TaskQueueTypes.ts","./src/tui/colors.ts","./src/tui/commands.ts","./src/tui/constants.ts","./src/tui/helpers.ts","./src/tui/index.ts","./src/tui/keybindings.ts","./src/tui/logo.ts","./src/tui/markdown.ts","./src/tui/models.ts","./src/tui/polyfill.ts","./src/tui/startup-cta.ts","./src/tui/syntax-languages.ts","./src/tui/syntax-tokenizer.ts","./src/tui/syntax.ts","./src/tui/system.ts","./src/tui/themes.ts","./src/tui/tui-types.ts","./src/tui/useAppProcessor.ts","./src/tui/useAppSession.ts","./src/tui/useAppTaskQueue.ts","./src/tui/useStreamThrottle.ts","./src/tui/components/ActivitySummary.tsx","./src/tui/components/CodeEditBox.tsx","./src/tui/components/CompletedMsg.tsx","./src/tui/components/CompletedSystemMsg.tsx","./src/tui/components/CompletedToolGroup.tsx","./src/tui/components/DiffLineItem.tsx","./src/tui/components/DiffView.tsx","./src/tui/components/ErrorMsg.tsx","./src/tui/components/FileComplete.tsx","./src/tui/components/FleetPanel.tsx","./src/tui/components/HelpOverlay.tsx","./src/tui/components/HistorySearch.tsx","./src/tui/components/InputBox.tsx","./src/tui/components/InputHooks.ts","./src/tui/components/JitterFreeRenderer.tsx","./src/tui/components/KeysPicker.tsx","./src/tui/components/LiveThinkingNode.tsx","./src/tui/components/LiveView.tsx","./src/tui/components/LocalModelRow.tsx","./src/tui/components/ModelPicker.tsx","./src/tui/components/ModelRow.tsx","./src/tui/components/ScrollLogic.ts","./src/tui/components/ScrollView.tsx","./src/tui/components/SessionPicker.tsx","./src/tui/components/SlashHint.tsx","./src/tui/components/SprintHelpers.ts","./src/tui/components/SprintStatus.tsx","./src/tui/components/SprintTaskRow.tsx","./src/tui/components/StatusBar.tsx","./src/tui/components/useKeyInput.ts","./src/tui/components/__demos__/CodeEditDemo.tsx","./src/tui/components/code-edit/CodeEditBox.tsx","./src/tui/components/code-edit/index.ts","./src/tui/components/code-edit/types.ts","./src/tui/components/code-edit/utils.ts","./src/tui/components/code-edit/components/EditBadge.tsx","./src/tui/components/code-edit/components/EditItem.tsx","./src/tui/components/code-edit/components/SyntaxHighlighter.tsx","./src/tui/components/code-edit/patterns/index.ts","./src/tui/components/code-edit/patterns/javascript.ts","./src/tui/components/code-edit/patterns/python.ts","./src/tui/components/code-edit/patterns/typescript.ts","./src/tui/components/jitter-free/FrameController.ts","./src/tui/components/jitter-free/JitterFreeRenderer.tsx","./src/tui/components/jitter-free/SmoothSpinner.tsx","./src/tui/components/jitter-free/StableCursor.tsx","./src/tui/components/jitter-free/StableScroll.tsx","./src/tui/components/jitter-free/config.ts","./src/tui/components/jitter-free/index.ts","./src/tui/components/jitter-free/types.ts","./src/tui/components/jitter-free/utils.ts","./src/tui/components/jitter-free/hooks/index.ts","./src/tui/components/jitter-free/hooks/useDebounceRender.ts","./src/tui/components/jitter-free/hooks/useDoubleBuffer.ts","./src/tui/components/jitter-free/hooks/useScrollBuffer.ts","./src/tui/components/stream/StreamContainer.tsx","./src/tui/components/stream/ThinkingStream.tsx","./src/tui/components/stream/ToolCallArgs.tsx","./src/tui/components/stream/ToolCallBox.tsx","./src/tui/components/stream/ToolItem.tsx","./src/tui/components/stream/index.ts","./src/tui/components/stream/types.ts","./src/tui/helpers/grapheme.ts","./src/tui/input/index.ts","./src/utils/auth.ts","./src/utils/config.ts","./src/utils/context.ts","./src/utils/credentials.ts","./src/utils/execution-controller.ts","./src/utils/experimental.ts","./src/utils/features.ts","./src/utils/health-monitor.ts","./src/utils/id.ts","./src/utils/index.ts","./src/utils/keys.ts","./src/utils/logger.ts","./src/utils/metrics.ts","./src/utils/paste-handler.ts","./src/utils/profile.ts","./src/utils/project-tracker.ts","./src/utils/safe-exec.ts","./src/utils/security-boundary.ts","./src/utils/session-cache.ts","./src/utils/soul.ts","./src/utils/sqlite-future.ts","./src/utils/sqlite.ts","./src/utils/startup-profiler.ts","./src/utils/state.ts","./src/utils/sum.ts","./src/utils/token-counter.ts","./src/utils/unified-memory.ts","./src/utils/update-verify.ts","./src/voice/browser-extension.ts","./src/voice/commands.ts","./src/voice/desktop.ts","./src/voice/index.ts","./src/voice/mobile-bridge.ts","./src/voice/personal-plex.ts","./src/voice/plex.ts","./src/voice/recorder.ts","./src/voice/shortcuts.ts","./src/voice/transcribe.ts","./src/voice/tts.ts","./src/voice/types.ts","./src/workspace/store.ts"],"version":"5.9.3"}
|
package/tsconfig.v2.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"module": "nodenext",
|
|
4
|
+
"moduleResolution": "nodenext",
|
|
5
|
+
"target": "esnext",
|
|
6
|
+
"lib": ["es2022"],
|
|
7
|
+
"rootDir": "src_v2",
|
|
8
|
+
"outDir": "dist_v2",
|
|
9
|
+
"sourceMap": true,
|
|
10
|
+
"declaration": true,
|
|
11
|
+
"strict": true,
|
|
12
|
+
"noImplicitAny": true,
|
|
13
|
+
"noUnusedLocals": false,
|
|
14
|
+
"noUnusedParameters": false,
|
|
15
|
+
"esModuleInterop": true,
|
|
16
|
+
"skipLibCheck": true,
|
|
17
|
+
"forceConsistentCasingInFileNames": true,
|
|
18
|
+
"resolveJsonModule": true,
|
|
19
|
+
"allowImportingTsExtensions": false,
|
|
20
|
+
"isolatedModules": true,
|
|
21
|
+
"verbatimModuleSyntax": false,
|
|
22
|
+
"jsx": "react-jsx",
|
|
23
|
+
"jsxImportSource": "react"
|
|
24
|
+
},
|
|
25
|
+
"include": ["src_v2/**/*.ts", "src_v2/**/*.tsx"],
|
|
26
|
+
"exclude": ["node_modules", "src_v2/**/__tests__/**/*", "src_v2/**/*.test.ts"]
|
|
27
|
+
}
|