@dirgha/code 1.4.2 → 1.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist_v2/acp/index.js.map +1 -0
- package/dist_v2/acp/server.js.map +1 -0
- package/dist_v2/audit/writer.js.map +1 -0
- package/dist_v2/auth/keypool.js.map +1 -0
- package/dist_v2/auth/keystore.js.map +1 -0
- package/dist_v2/auth/providers.js.map +1 -0
- package/dist_v2/cli/auth-cmd.js.map +1 -0
- package/dist_v2/cli/config.js.map +1 -0
- package/dist_v2/cli/flags.js.map +1 -0
- package/dist_v2/cli/flows/full-cycle.js.map +1 -0
- package/dist_v2/cli/flows/index.js.map +1 -0
- package/dist_v2/cli/flows/tarball.js.map +1 -0
- package/dist_v2/cli/index.js.map +1 -0
- package/dist_v2/cli/interactive.js.map +1 -0
- package/dist_v2/cli/main.js.map +1 -0
- package/dist_v2/cli/models-cmd.js.map +1 -0
- package/dist_v2/cli/setup.js.map +1 -0
- package/dist_v2/cli/slash/account.js.map +1 -0
- package/dist_v2/cli/slash/clear.js.map +1 -0
- package/dist_v2/cli/slash/compact.js.map +1 -0
- package/dist_v2/cli/slash/config.js.map +1 -0
- package/dist_v2/cli/slash/exit.js.map +1 -0
- package/dist_v2/cli/slash/fleet.js.map +1 -0
- package/dist_v2/cli/slash/help.js.map +1 -0
- package/dist_v2/cli/slash/history.js.map +1 -0
- package/dist_v2/cli/slash/index.js.map +1 -0
- package/dist_v2/cli/slash/init.js.map +1 -0
- package/dist_v2/cli/slash/keys.js.map +1 -0
- package/dist_v2/cli/slash/login.js.map +1 -0
- package/dist_v2/cli/slash/memory.js.map +1 -0
- package/dist_v2/cli/slash/mode.js.map +1 -0
- package/dist_v2/cli/slash/models.js.map +1 -0
- package/dist_v2/cli/slash/resume.js.map +1 -0
- package/dist_v2/cli/slash/session.js.map +1 -0
- package/dist_v2/cli/slash/setup.js.map +1 -0
- package/dist_v2/cli/slash/status.js.map +1 -0
- package/dist_v2/cli/slash/theme.js.map +1 -0
- package/dist_v2/cli/slash/types.js.map +1 -0
- package/dist_v2/cli/slash/upgrade.js.map +1 -0
- package/dist_v2/cli/slash.js.map +1 -0
- package/dist_v2/cli/subcommands/ask.js.map +1 -0
- package/dist_v2/cli/subcommands/audit-codebase.js.map +1 -0
- package/dist_v2/cli/subcommands/audit.js.map +1 -0
- package/dist_v2/cli/subcommands/chat.js.map +1 -0
- package/dist_v2/cli/subcommands/compact.js.map +1 -0
- package/dist_v2/cli/subcommands/cost.js.map +1 -0
- package/dist_v2/cli/subcommands/doctor.js.map +1 -0
- package/dist_v2/cli/subcommands/export-session.js.map +1 -0
- package/dist_v2/cli/subcommands/import-session.js.map +1 -0
- package/dist_v2/cli/subcommands/index.js.map +1 -0
- package/dist_v2/cli/subcommands/init.js.map +1 -0
- package/dist_v2/cli/subcommands/kb.js.map +1 -0
- package/dist_v2/cli/subcommands/keys.js.map +1 -0
- package/dist_v2/cli/subcommands/ledger.js.map +1 -0
- package/dist_v2/cli/subcommands/login.js.map +1 -0
- package/dist_v2/cli/subcommands/logout.js.map +1 -0
- package/dist_v2/cli/subcommands/memory.js.map +1 -0
- package/dist_v2/cli/subcommands/models.js.map +1 -0
- package/dist_v2/cli/subcommands/resume.js.map +1 -0
- package/dist_v2/cli/subcommands/setup.js.map +1 -0
- package/dist_v2/cli/subcommands/skills.js.map +1 -0
- package/dist_v2/cli/subcommands/stats.js.map +1 -0
- package/dist_v2/cli/subcommands/status.js.map +1 -0
- package/dist_v2/cli/subcommands/undo.js.map +1 -0
- package/dist_v2/cli/subcommands/update.js.map +1 -0
- package/dist_v2/cli/subcommands/verify.js.map +1 -0
- package/dist_v2/cli/submit-paper.js.map +1 -0
- package/dist_v2/context/_fts.js.map +1 -0
- package/dist_v2/context/branch.js.map +1 -0
- package/dist_v2/context/compaction.js.map +1 -0
- package/dist_v2/context/git-state.js.map +1 -0
- package/dist_v2/context/index.js.map +1 -0
- package/dist_v2/context/knowledge.js.map +1 -0
- package/dist_v2/context/ledger.js.map +1 -0
- package/dist_v2/context/memory.js.map +1 -0
- package/dist_v2/context/mode-enforcement.js.map +1 -0
- package/dist_v2/context/mode.js.map +1 -0
- package/dist_v2/context/primer.js.map +1 -0
- package/dist_v2/context/session.js.map +1 -0
- package/dist_v2/context/soul.js.map +1 -0
- package/dist_v2/daemon/index.js.map +1 -0
- package/dist_v2/daemon/protocol.js.map +1 -0
- package/dist_v2/daemon/server.js.map +1 -0
- package/dist_v2/eval/index.js.map +1 -0
- package/dist_v2/eval/regression.js.map +1 -0
- package/dist_v2/eval/reporter.js.map +1 -0
- package/dist_v2/eval/swe-bench.js.map +1 -0
- package/dist_v2/eval/terminal-bench.js.map +1 -0
- package/dist_v2/eval/types.js.map +1 -0
- package/dist_v2/extensions/api.js.map +1 -0
- package/dist_v2/fleet/apply-back.js.map +1 -0
- package/dist_v2/fleet/cli-command.js.map +1 -0
- package/dist_v2/fleet/index.js.map +1 -0
- package/dist_v2/fleet/runner.js.map +1 -0
- package/dist_v2/fleet/tripleshot.js.map +1 -0
- package/dist_v2/fleet/types.js.map +1 -0
- package/dist_v2/fleet/worktree.js.map +1 -0
- package/dist_v2/hooks/config-bridge.js.map +1 -0
- package/dist_v2/hooks/index.js.map +1 -0
- package/dist_v2/hooks/registry.js.map +1 -0
- package/dist_v2/index.js.map +1 -0
- package/dist_v2/integrations/arniko-client.js.map +1 -0
- package/dist_v2/integrations/auth.js.map +1 -0
- package/dist_v2/integrations/billing.js.map +1 -0
- package/dist_v2/integrations/bucky-client.js.map +1 -0
- package/dist_v2/integrations/deploy-client.js.map +1 -0
- package/dist_v2/integrations/device-auth.js.map +1 -0
- package/dist_v2/integrations/entitlements.js.map +1 -0
- package/dist_v2/integrations/http.js.map +1 -0
- package/dist_v2/integrations/index.js.map +1 -0
- package/dist_v2/intelligence/cost.js.map +1 -0
- package/dist_v2/intelligence/error-classifier.js.map +1 -0
- package/dist_v2/intelligence/index.js.map +1 -0
- package/dist_v2/intelligence/models-refresh.js.map +1 -0
- package/dist_v2/intelligence/prices.js.map +1 -0
- package/dist_v2/intelligence/smart-router.js.map +1 -0
- package/dist_v2/intelligence/telemetry.js.map +1 -0
- package/dist_v2/kernel/agent-loop.js.map +1 -0
- package/dist_v2/kernel/event-stream.js.map +1 -0
- package/dist_v2/kernel/index.js.map +1 -0
- package/dist_v2/kernel/message.js.map +1 -0
- package/dist_v2/kernel/types.js.map +1 -0
- package/dist_v2/mcp/client.js.map +1 -0
- package/dist_v2/mcp/index.js.map +1 -0
- package/dist_v2/mcp/loader.js.map +1 -0
- package/dist_v2/mcp/tool-bridge.js.map +1 -0
- package/dist_v2/mcp/transport.js.map +1 -0
- package/dist_v2/parity/index.js.map +1 -0
- package/dist_v2/parity/mock-openai-compat.js.map +1 -0
- package/dist_v2/parity/runner.js.map +1 -0
- package/dist_v2/parity/scenarios.js.map +1 -0
- package/dist_v2/providers/anthropic.js.map +1 -0
- package/dist_v2/providers/define-openai-compat.js.map +1 -0
- package/dist_v2/providers/dispatch.js.map +1 -0
- package/dist_v2/providers/fireworks.js.map +1 -0
- package/dist_v2/providers/gemini.js.map +1 -0
- package/dist_v2/providers/http.js.map +1 -0
- package/dist_v2/providers/iface.js.map +1 -0
- package/dist_v2/providers/index.js.map +1 -0
- package/dist_v2/providers/nvidia.js.map +1 -0
- package/dist_v2/providers/ollama.js.map +1 -0
- package/dist_v2/providers/openai-compat.js.map +1 -0
- package/dist_v2/providers/openai.js.map +1 -0
- package/dist_v2/providers/openrouter.js.map +1 -0
- package/dist_v2/providers/presets.js.map +1 -0
- package/dist_v2/providers/rate-limiter.js.map +1 -0
- package/dist_v2/safety/approval-bus.js.map +1 -0
- package/dist_v2/safety/audit-log.js.map +1 -0
- package/dist_v2/safety/index.js.map +1 -0
- package/dist_v2/safety/policy.js.map +1 -0
- package/dist_v2/safety/sandbox/bwrap.js.map +1 -0
- package/dist_v2/safety/sandbox/iface.js.map +1 -0
- package/dist_v2/safety/sandbox/index.js.map +1 -0
- package/dist_v2/safety/sandbox/landlock.js.map +1 -0
- package/dist_v2/safety/sandbox/noop.js.map +1 -0
- package/dist_v2/safety/sandbox/seatbelt.js.map +1 -0
- package/dist_v2/safety/sandbox/select.js.map +1 -0
- package/dist_v2/safety/sandbox/windows.js.map +1 -0
- package/dist_v2/security/skill-scanner.js.map +1 -0
- package/dist_v2/skills/index.js.map +1 -0
- package/dist_v2/skills/loader.js.map +1 -0
- package/dist_v2/skills/matcher.js.map +1 -0
- package/dist_v2/skills/runtime.js.map +1 -0
- package/dist_v2/subagents/delegator.js.map +1 -0
- package/dist_v2/subagents/index.js.map +1 -0
- package/dist_v2/subagents/pool.js.map +1 -0
- package/dist_v2/tools/browser.js.map +1 -0
- package/dist_v2/tools/checkpoint.js.map +1 -0
- package/dist_v2/tools/cron.js.map +1 -0
- package/dist_v2/tools/diff.js.map +1 -0
- package/dist_v2/tools/exec.js.map +1 -0
- package/dist_v2/tools/fs-edit.js.map +1 -0
- package/dist_v2/tools/fs-ls.js.map +1 -0
- package/dist_v2/tools/fs-read.js.map +1 -0
- package/dist_v2/tools/fs-write.js.map +1 -0
- package/dist_v2/tools/git.js.map +1 -0
- package/dist_v2/tools/index.js.map +1 -0
- package/dist_v2/tools/multimodal.js.map +1 -0
- package/dist_v2/tools/permission.js.map +1 -0
- package/dist_v2/tools/registry.js.map +1 -0
- package/dist_v2/tools/search-glob.js.map +1 -0
- package/dist_v2/tools/search-grep.js.map +1 -0
- package/dist_v2/tools/shell.js.map +1 -0
- package/dist_v2/tools/task.js.map +1 -0
- package/dist_v2/tui/approval.js.map +1 -0
- package/dist_v2/tui/index.js.map +1 -0
- package/dist_v2/tui/ink/App.js.map +1 -0
- package/dist_v2/tui/ink/components/AtFileComplete.js.map +1 -0
- package/dist_v2/tui/ink/components/HelpOverlay.js.map +1 -0
- package/dist_v2/tui/ink/components/InputBox.js.map +1 -0
- package/dist_v2/tui/ink/components/Logo.js.map +1 -0
- package/dist_v2/tui/ink/components/ModelPicker.js.map +1 -0
- package/dist_v2/tui/ink/components/PasteCollapse.js.map +1 -0
- package/dist_v2/tui/ink/components/StatusBar.js.map +1 -0
- package/dist_v2/tui/ink/components/StreamingText.js.map +1 -0
- package/dist_v2/tui/ink/components/ThinkingBlock.js.map +1 -0
- package/dist_v2/tui/ink/components/ToolBox.js.map +1 -0
- package/dist_v2/tui/ink/components/vim-bindings.js.map +1 -0
- package/dist_v2/tui/ink/index.js.map +1 -0
- package/dist_v2/tui/ink/use-event-projection.js.map +1 -0
- package/dist_v2/tui/ink/use-overlays.js.map +1 -0
- package/dist_v2/tui/renderer.js.map +1 -0
- package/dist_v2/tui/status-bar.js.map +1 -0
- package/dist_v2/tui/theme-loader.js.map +1 -0
- package/dist_v2/tui/theme.js.map +1 -0
- package/dist_v2/utils/json-repair.js.map +1 -0
- package/package.json +33 -51
- package/.changeset/README.md +0 -23
- package/.changeset/config.json +0 -11
- package/.changeset/sprint-1.3.0.md +0 -5
- package/CLA.md +0 -104
- package/CODE_OF_CONDUCT.md +0 -50
- package/CONTRIBUTING.md +0 -81
- package/LICENSING.md +0 -105
- package/SECURITY.md +0 -61
- package/SUPPORT.md +0 -53
- package/assets/audio/dirgha-ambient-150s.m4a +0 -0
- package/assets/logo/dirgha-mark-amber.svg +0 -8
- package/assets/logo/dirgha-mark-cream.svg +0 -8
- package/assets/logo/dirgha-wordmark-cream.svg +0 -5
- package/assets/logo/dirgha-wordmark-ink.svg +0 -5
- package/changelog/1.4.0-promo.mp4 +0 -0
- package/changelog/1.4.0.md +0 -89
- package/changelog/1.4.1-promo.mp4 +0 -0
- package/changelog/README.md +0 -73
- package/dist/agent/capabilities.d.ts +0 -1
- package/dist/agent/capabilities.js +0 -21
- package/dist/agent/collaboration/consensus.d.ts +0 -77
- package/dist/agent/collaboration/consensus.js +0 -279
- package/dist/agent/collaboration/index.d.ts +0 -7
- package/dist/agent/collaboration/index.js +0 -7
- package/dist/agent/collaboration/message-bus.d.ts +0 -48
- package/dist/agent/collaboration/message-bus.js +0 -219
- package/dist/agent/collaboration/shared-context.d.ts +0 -67
- package/dist/agent/collaboration/shared-context.js +0 -217
- package/dist/agent/collaboration/types.d.ts +0 -95
- package/dist/agent/collaboration/types.js +0 -6
- package/dist/agent/commands/chat.d.ts +0 -21
- package/dist/agent/commands/chat.js +0 -55
- package/dist/agent/compaction-tiers.d.ts +0 -10
- package/dist/agent/compaction-tiers.js +0 -70
- package/dist/agent/compaction.d.ts +0 -16
- package/dist/agent/compaction.js +0 -129
- package/dist/agent/context-optimizer.d.ts +0 -2
- package/dist/agent/context-optimizer.js +0 -30
- package/dist/agent/context.d.ts +0 -14
- package/dist/agent/context.js +0 -241
- package/dist/agent/error-classifier.d.ts +0 -10
- package/dist/agent/error-classifier.js +0 -67
- package/dist/agent/event-emit.d.ts +0 -6
- package/dist/agent/event-emit.js +0 -98
- package/dist/agent/executor.d.ts +0 -9
- package/dist/agent/executor.js +0 -44
- package/dist/agent/gateway.d.ts +0 -11
- package/dist/agent/gateway.js +0 -11
- package/dist/agent/index.d.ts +0 -7
- package/dist/agent/index.js +0 -58
- package/dist/agent/injector.d.ts +0 -35
- package/dist/agent/injector.js +0 -57
- package/dist/agent/loop-detector.d.ts +0 -18
- package/dist/agent/loop-detector.js +0 -91
- package/dist/agent/loop.d.ts +0 -22
- package/dist/agent/loop.js +0 -348
- package/dist/agent/memory-sync.d.ts +0 -5
- package/dist/agent/memory-sync.js +0 -17
- package/dist/agent/model-fallback.d.ts +0 -23
- package/dist/agent/model-fallback.js +0 -112
- package/dist/agent/moim.d.ts +0 -5
- package/dist/agent/moim.js +0 -29
- package/dist/agent/orchestration/agent-pool.d.ts +0 -59
- package/dist/agent/orchestration/agent-pool.js +0 -165
- package/dist/agent/orchestration/circuit-breaker.d.ts +0 -121
- package/dist/agent/orchestration/circuit-breaker.js +0 -298
- package/dist/agent/orchestration/coordinator.d.ts +0 -17
- package/dist/agent/orchestration/coordinator.js +0 -150
- package/dist/agent/orchestration/dag-runner.d.ts +0 -18
- package/dist/agent/orchestration/dag-runner.js +0 -172
- package/dist/agent/orchestration/dag.d.ts +0 -33
- package/dist/agent/orchestration/dag.js +0 -209
- package/dist/agent/orchestration/decomposer.d.ts +0 -19
- package/dist/agent/orchestration/decomposer.js +0 -65
- package/dist/agent/orchestration/observability.d.ts +0 -117
- package/dist/agent/orchestration/observability.js +0 -244
- package/dist/agent/orchestration/parallel.d.ts +0 -8
- package/dist/agent/orchestration/parallel.js +0 -191
- package/dist/agent/orchestration/pool-cleanup.d.ts +0 -16
- package/dist/agent/orchestration/pool-cleanup.js +0 -21
- package/dist/agent/orchestration/pool-queue.d.ts +0 -23
- package/dist/agent/orchestration/pool-queue.js +0 -62
- package/dist/agent/orchestration/pool-scaler.d.ts +0 -22
- package/dist/agent/orchestration/pool-scaler.js +0 -53
- package/dist/agent/orchestration/researcher.d.ts +0 -28
- package/dist/agent/orchestration/researcher.js +0 -78
- package/dist/agent/orchestration/retry.d.ts +0 -14
- package/dist/agent/orchestration/retry.js +0 -107
- package/dist/agent/orchestration/scheduler.d.ts +0 -24
- package/dist/agent/orchestration/scheduler.js +0 -66
- package/dist/agent/orchestration/shared-memory.d.ts +0 -31
- package/dist/agent/orchestration/shared-memory.js +0 -57
- package/dist/agent/orchestration/structured.d.ts +0 -63
- package/dist/agent/orchestration/structured.js +0 -152
- package/dist/agent/orchestration/task-queue.d.ts +0 -32
- package/dist/agent/orchestration/task-queue.js +0 -105
- package/dist/agent/orchestration/types.d.ts +0 -139
- package/dist/agent/orchestration/types.js +0 -7
- package/dist/agent/output.d.ts +0 -31
- package/dist/agent/output.js +0 -108
- package/dist/agent/parser.d.ts +0 -5
- package/dist/agent/parser.js +0 -74
- package/dist/agent/pending-messages.d.ts +0 -33
- package/dist/agent/pending-messages.js +0 -57
- package/dist/agent/project.d.ts +0 -2
- package/dist/agent/project.js +0 -19
- package/dist/agent/reflection.d.ts +0 -36
- package/dist/agent/reflection.js +0 -93
- package/dist/agent/rerank-engine.d.ts +0 -18
- package/dist/agent/rerank-engine.js +0 -52
- package/dist/agent/routing.d.ts +0 -10
- package/dist/agent/routing.js +0 -95
- package/dist/agent/secrets.d.ts +0 -6
- package/dist/agent/secrets.js +0 -84
- package/dist/agent/skill-registry.d.ts +0 -37
- package/dist/agent/skill-registry.js +0 -113
- package/dist/agent/spawn/index.d.ts +0 -8
- package/dist/agent/spawn/index.js +0 -5
- package/dist/agent/spawn/lifecycle.d.ts +0 -9
- package/dist/agent/spawn/lifecycle.js +0 -92
- package/dist/agent/spawn/messaging.d.ts +0 -6
- package/dist/agent/spawn/messaging.js +0 -36
- package/dist/agent/spawn/state.d.ts +0 -7
- package/dist/agent/spawn/state.js +0 -57
- package/dist/agent/spawn/types.d.ts +0 -55
- package/dist/agent/spawn/types.js +0 -5
- package/dist/agent/spawn/utils.d.ts +0 -14
- package/dist/agent/spawn/utils.js +0 -72
- package/dist/agent/spawn-agent.d.ts +0 -47
- package/dist/agent/spawn-agent.js +0 -114
- package/dist/agent/structured-output.d.ts +0 -15
- package/dist/agent/structured-output.js +0 -66
- package/dist/agent/tool-execution.d.ts +0 -18
- package/dist/agent/tool-execution.js +0 -242
- package/dist/agent/tools.d.ts +0 -6
- package/dist/agent/tools.js +0 -7
- package/dist/agent/types.d.ts +0 -62
- package/dist/agent/types.js +0 -6
- package/dist/agents/consensus.d.ts +0 -14
- package/dist/agents/consensus.js +0 -34
- package/dist/agents/delegate.d.ts +0 -18
- package/dist/agents/delegate.js +0 -32
- package/dist/agents/ensemble.d.ts +0 -18
- package/dist/agents/ensemble.js +0 -33
- package/dist/agents/orchestrate.d.ts +0 -12
- package/dist/agents/orchestrate.js +0 -32
- package/dist/agents/types.d.ts +0 -29
- package/dist/agents/types.js +0 -2
- package/dist/analytics/export.d.ts +0 -11
- package/dist/analytics/export.js +0 -58
- package/dist/analytics/insights.d.ts +0 -27
- package/dist/analytics/insights.js +0 -33
- package/dist/api/knowledge.d.ts +0 -38
- package/dist/api/knowledge.js +0 -65
- package/dist/billing/db.d.ts +0 -11
- package/dist/billing/db.js +0 -88
- package/dist/billing/index.d.ts +0 -10
- package/dist/billing/index.js +0 -12
- package/dist/billing/meter.d.ts +0 -11
- package/dist/billing/meter.js +0 -46
- package/dist/billing/middleware.d.ts +0 -28
- package/dist/billing/middleware.js +0 -103
- package/dist/billing/pricing.d.ts +0 -6
- package/dist/billing/pricing.js +0 -48
- package/dist/billing/quota.d.ts +0 -24
- package/dist/billing/quota.js +0 -105
- package/dist/billing/ratelimit-fixed.d.ts +0 -16
- package/dist/billing/ratelimit-fixed.js +0 -112
- package/dist/billing/ratelimit.d.ts +0 -7
- package/dist/billing/ratelimit.js +0 -58
- package/dist/billing/tokenizer-v2.d.ts +0 -76
- package/dist/billing/tokenizer-v2.js +0 -263
- package/dist/billing/tokenizer.d.ts +0 -9
- package/dist/billing/tokenizer.js +0 -46
- package/dist/billing/types.d.ts +0 -60
- package/dist/billing/types.js +0 -17
- package/dist/browser/accessibility.d.ts +0 -6
- package/dist/browser/accessibility.js +0 -47
- package/dist/browser/commands.d.ts +0 -5
- package/dist/browser/commands.js +0 -82
- package/dist/browser/ipc-client.d.ts +0 -26
- package/dist/browser/ipc-client.js +0 -60
- package/dist/browser/launcher.d.ts +0 -13
- package/dist/browser/launcher.js +0 -78
- package/dist/browser/navigation.d.ts +0 -12
- package/dist/browser/navigation.js +0 -28
- package/dist/browser/snapshot.d.ts +0 -7
- package/dist/browser/snapshot.js +0 -18
- package/dist/browser/types.d.ts +0 -28
- package/dist/browser/types.js +0 -2
- package/dist/checkpoint/create.d.ts +0 -2
- package/dist/checkpoint/create.js +0 -44
- package/dist/checkpoint/git.d.ts +0 -8
- package/dist/checkpoint/git.js +0 -45
- package/dist/checkpoint/restore.d.ts +0 -5
- package/dist/checkpoint/restore.js +0 -18
- package/dist/checkpoint/store.d.ts +0 -9
- package/dist/checkpoint/store.js +0 -40
- package/dist/checkpoint/types.d.ts +0 -23
- package/dist/checkpoint/types.js +0 -2
- package/dist/commands/agent-swarm.d.ts +0 -7
- package/dist/commands/agent-swarm.js +0 -223
- package/dist/commands/analytics.d.ts +0 -5
- package/dist/commands/analytics.js +0 -20
- package/dist/commands/ask.d.ts +0 -12
- package/dist/commands/ask.js +0 -99
- package/dist/commands/audit.d.ts +0 -5
- package/dist/commands/audit.js +0 -78
- package/dist/commands/auth.d.ts +0 -1
- package/dist/commands/auth.js +0 -126
- package/dist/commands/autocomplete.d.ts +0 -10
- package/dist/commands/autocomplete.js +0 -89
- package/dist/commands/bounties.d.ts +0 -2
- package/dist/commands/bounties.js +0 -107
- package/dist/commands/browser-cmd.d.ts +0 -7
- package/dist/commands/browser-cmd.js +0 -101
- package/dist/commands/browser-integration.d.ts +0 -15
- package/dist/commands/browser-integration.js +0 -58
- package/dist/commands/btw.d.ts +0 -7
- package/dist/commands/btw.js +0 -62
- package/dist/commands/bucky.d.ts +0 -19
- package/dist/commands/bucky.js +0 -328
- package/dist/commands/bug-hunter.d.ts +0 -6
- package/dist/commands/bug-hunter.js +0 -55
- package/dist/commands/capture.d.ts +0 -10
- package/dist/commands/capture.js +0 -167
- package/dist/commands/chat.d.ts +0 -4
- package/dist/commands/chat.js +0 -107
- package/dist/commands/checkpoint.d.ts +0 -6
- package/dist/commands/checkpoint.js +0 -83
- package/dist/commands/coming-soon.d.ts +0 -2
- package/dist/commands/coming-soon.js +0 -50
- package/dist/commands/compact.d.ts +0 -5
- package/dist/commands/compact.js +0 -38
- package/dist/commands/connect.d.ts +0 -7
- package/dist/commands/connect.js +0 -155
- package/dist/commands/curate/embeddings.d.ts +0 -7
- package/dist/commands/curate/embeddings.js +0 -38
- package/dist/commands/curate/files.d.ts +0 -4
- package/dist/commands/curate/files.js +0 -28
- package/dist/commands/curate/project.d.ts +0 -1
- package/dist/commands/curate/project.js +0 -20
- package/dist/commands/curate/schema.d.ts +0 -1
- package/dist/commands/curate/schema.js +0 -30
- package/dist/commands/curate/types.d.ts +0 -26
- package/dist/commands/curate/types.js +0 -6
- package/dist/commands/curate/vss-integration.d.ts +0 -1
- package/dist/commands/curate/vss-integration.js +0 -19
- package/dist/commands/curate.d.ts +0 -9
- package/dist/commands/curate.js +0 -50
- package/dist/commands/dao.d.ts +0 -8
- package/dist/commands/dao.js +0 -290
- package/dist/commands/data-query.d.ts +0 -7
- package/dist/commands/data-query.js +0 -55
- package/dist/commands/doctor.d.ts +0 -2
- package/dist/commands/doctor.js +0 -145
- package/dist/commands/ensemble.d.ts +0 -7
- package/dist/commands/ensemble.js +0 -88
- package/dist/commands/error-recovery.d.ts +0 -10
- package/dist/commands/error-recovery.js +0 -50
- package/dist/commands/export-session.d.ts +0 -7
- package/dist/commands/export-session.js +0 -70
- package/dist/commands/import-session.d.ts +0 -7
- package/dist/commands/import-session.js +0 -49
- package/dist/commands/index.d.ts +0 -62
- package/dist/commands/index.js +0 -76
- package/dist/commands/init.d.ts +0 -5
- package/dist/commands/init.js +0 -101
- package/dist/commands/jobs.d.ts +0 -2
- package/dist/commands/jobs.js +0 -108
- package/dist/commands/join-mesh.d.ts +0 -5
- package/dist/commands/join-mesh.js +0 -97
- package/dist/commands/knowledge.d.ts +0 -19
- package/dist/commands/knowledge.js +0 -218
- package/dist/commands/local.d.ts +0 -2
- package/dist/commands/local.js +0 -77
- package/dist/commands/login.d.ts +0 -10
- package/dist/commands/login.js +0 -160
- package/dist/commands/logout.d.ts +0 -2
- package/dist/commands/logout.js +0 -12
- package/dist/commands/make.d.ts +0 -2
- package/dist/commands/make.js +0 -69
- package/dist/commands/mcp.d.ts +0 -7
- package/dist/commands/mcp.js +0 -202
- package/dist/commands/mesh/add-member.d.ts +0 -2
- package/dist/commands/mesh/add-member.js +0 -23
- package/dist/commands/mesh/ask.d.ts +0 -2
- package/dist/commands/mesh/ask.js +0 -60
- package/dist/commands/mesh/billing.d.ts +0 -1
- package/dist/commands/mesh/billing.js +0 -16
- package/dist/commands/mesh/consensus.d.ts +0 -1
- package/dist/commands/mesh/consensus.js +0 -17
- package/dist/commands/mesh/context.d.ts +0 -4
- package/dist/commands/mesh/context.js +0 -11
- package/dist/commands/mesh/index.d.ts +0 -4
- package/dist/commands/mesh/index.js +0 -64
- package/dist/commands/mesh/join.d.ts +0 -2
- package/dist/commands/mesh/join.js +0 -38
- package/dist/commands/mesh/leave.d.ts +0 -1
- package/dist/commands/mesh/leave.js +0 -14
- package/dist/commands/mesh/quota.d.ts +0 -1
- package/dist/commands/mesh/quota.js +0 -31
- package/dist/commands/mesh/status.d.ts +0 -1
- package/dist/commands/mesh/status.js +0 -48
- package/dist/commands/mesh/types.d.ts +0 -36
- package/dist/commands/mesh/types.js +0 -2
- package/dist/commands/mesh.d.ts +0 -6
- package/dist/commands/mesh.js +0 -258
- package/dist/commands/models.d.ts +0 -1
- package/dist/commands/models.js +0 -194
- package/dist/commands/pay.d.ts +0 -7
- package/dist/commands/pay.js +0 -305
- package/dist/commands/profile.d.ts +0 -2
- package/dist/commands/profile.js +0 -99
- package/dist/commands/progress.d.ts +0 -23
- package/dist/commands/progress.js +0 -93
- package/dist/commands/prune.d.ts +0 -2
- package/dist/commands/prune.js +0 -64
- package/dist/commands/query.d.ts +0 -9
- package/dist/commands/query.js +0 -135
- package/dist/commands/recall-cmd.d.ts +0 -7
- package/dist/commands/recall-cmd.js +0 -65
- package/dist/commands/remember-cmd.d.ts +0 -7
- package/dist/commands/remember-cmd.js +0 -40
- package/dist/commands/research.d.ts +0 -5
- package/dist/commands/research.js +0 -40
- package/dist/commands/sandbox-connect.d.ts +0 -2
- package/dist/commands/sandbox-connect.js +0 -171
- package/dist/commands/scan/arniko.d.ts +0 -1
- package/dist/commands/scan/arniko.js +0 -79
- package/dist/commands/scan/deps.d.ts +0 -21
- package/dist/commands/scan/deps.js +0 -56
- package/dist/commands/scan/index.d.ts +0 -7
- package/dist/commands/scan/index.js +0 -97
- package/dist/commands/scan/output.d.ts +0 -2
- package/dist/commands/scan/output.js +0 -42
- package/dist/commands/scan/types.d.ts +0 -21
- package/dist/commands/scan/types.js +0 -2
- package/dist/commands/scan/utils.d.ts +0 -5
- package/dist/commands/scan/utils.js +0 -101
- package/dist/commands/scan.d.ts +0 -7
- package/dist/commands/scan.js +0 -327
- package/dist/commands/scratchpad.d.ts +0 -8
- package/dist/commands/scratchpad.js +0 -82
- package/dist/commands/session.d.ts +0 -3
- package/dist/commands/session.js +0 -70
- package/dist/commands/setup-local.d.ts +0 -2
- package/dist/commands/setup-local.js +0 -137
- package/dist/commands/setup.d.ts +0 -1
- package/dist/commands/setup.js +0 -230
- package/dist/commands/smart-exec.d.ts +0 -2
- package/dist/commands/smart-exec.js +0 -217
- package/dist/commands/sprint.d.ts +0 -9
- package/dist/commands/sprint.js +0 -321
- package/dist/commands/stats.d.ts +0 -1
- package/dist/commands/stats.js +0 -163
- package/dist/commands/status.d.ts +0 -1
- package/dist/commands/status.js +0 -97
- package/dist/commands/support.d.ts +0 -5
- package/dist/commands/support.js +0 -43
- package/dist/commands/sync.d.ts +0 -7
- package/dist/commands/sync.js +0 -130
- package/dist/commands/unified-memory/context.d.ts +0 -5
- package/dist/commands/unified-memory/context.js +0 -33
- package/dist/commands/unified-memory/index.d.ts +0 -12
- package/dist/commands/unified-memory/index.js +0 -23
- package/dist/commands/unified-memory/recall.d.ts +0 -5
- package/dist/commands/unified-memory/recall.js +0 -50
- package/dist/commands/unified-memory/remember.d.ts +0 -5
- package/dist/commands/unified-memory/remember.js +0 -49
- package/dist/commands/unified-memory/session.d.ts +0 -5
- package/dist/commands/unified-memory/session.js +0 -64
- package/dist/commands/unified-memory/stats.d.ts +0 -5
- package/dist/commands/unified-memory/stats.js +0 -29
- package/dist/commands/update.d.ts +0 -7
- package/dist/commands/update.js +0 -45
- package/dist/commands/voice-entry.d.ts +0 -8
- package/dist/commands/voice-entry.js +0 -120
- package/dist/commands/yolo.d.ts +0 -8
- package/dist/commands/yolo.js +0 -88
- package/dist/compaction/index.d.ts +0 -15
- package/dist/compaction/index.js +0 -21
- package/dist/compaction/protect.d.ts +0 -8
- package/dist/compaction/protect.js +0 -15
- package/dist/compaction/prune.d.ts +0 -5
- package/dist/compaction/prune.js +0 -19
- package/dist/compaction/summarize.d.ts +0 -6
- package/dist/compaction/summarize.js +0 -27
- package/dist/compaction/types.d.ts +0 -27
- package/dist/compaction/types.js +0 -2
- package/dist/compaction/update.d.ts +0 -6
- package/dist/compaction/update.js +0 -18
- package/dist/config/execution.d.ts +0 -22
- package/dist/config/execution.js +0 -59
- package/dist/config/rate-limits.d.ts +0 -15
- package/dist/config/rate-limits.js +0 -34
- package/dist/context/jit.d.ts +0 -16
- package/dist/context/jit.js +0 -120
- package/dist/context/todos.d.ts +0 -7
- package/dist/context/todos.js +0 -21
- package/dist/cron/runner.d.ts +0 -16
- package/dist/cron/runner.js +0 -57
- package/dist/cron/store.d.ts +0 -19
- package/dist/cron/store.js +0 -91
- package/dist/dirgha.mjs +0 -2185
- package/dist/embeddings/gateway.d.ts +0 -9
- package/dist/embeddings/gateway.js +0 -55
- package/dist/embeddings/math.d.ts +0 -17
- package/dist/embeddings/math.js +0 -33
- package/dist/embeddings/ollama.d.ts +0 -10
- package/dist/embeddings/ollama.js +0 -74
- package/dist/embeddings/provider.d.ts +0 -28
- package/dist/embeddings/provider.js +0 -73
- package/dist/embeddings/vss.d.ts +0 -22
- package/dist/embeddings/vss.js +0 -102
- package/dist/errors/tokenLimit.d.ts +0 -15
- package/dist/errors/tokenLimit.js +0 -93
- package/dist/extensions/manager.d.ts +0 -6
- package/dist/extensions/manager.js +0 -62
- package/dist/extensions/rpc.d.ts +0 -10
- package/dist/extensions/rpc.js +0 -90
- package/dist/extensions/types.d.ts +0 -24
- package/dist/extensions/types.js +0 -5
- package/dist/fleet/apply-back.d.ts +0 -11
- package/dist/fleet/apply-back.js +0 -82
- package/dist/fleet/commands.d.ts +0 -2
- package/dist/fleet/commands.js +0 -227
- package/dist/fleet/decompose.d.ts +0 -7
- package/dist/fleet/decompose.js +0 -80
- package/dist/fleet/events.d.ts +0 -24
- package/dist/fleet/events.js +0 -35
- package/dist/fleet/runtime.d.ts +0 -9
- package/dist/fleet/runtime.js +0 -131
- package/dist/fleet/tripleshot.d.ts +0 -9
- package/dist/fleet/tripleshot.js +0 -114
- package/dist/fleet/types.d.ts +0 -60
- package/dist/fleet/types.js +0 -11
- package/dist/fleet/worktree.d.ts +0 -17
- package/dist/fleet/worktree.js +0 -80
- package/dist/gateway/acp/adapter.d.ts +0 -46
- package/dist/gateway/acp/adapter.js +0 -181
- package/dist/gateway/acp/index.d.ts +0 -6
- package/dist/gateway/acp/index.js +0 -6
- package/dist/gateway/acp/registry.d.ts +0 -51
- package/dist/gateway/acp/registry.js +0 -171
- package/dist/gateway/acp/types.d.ts +0 -123
- package/dist/gateway/acp/types.js +0 -7
- package/dist/gateway/index.d.ts +0 -5
- package/dist/gateway/index.js +0 -6
- package/dist/gateway/orchestrator.d.ts +0 -8
- package/dist/gateway/orchestrator.js +0 -37
- package/dist/gateway/router.d.ts +0 -34
- package/dist/gateway/router.js +0 -123
- package/dist/gateway/telegram.d.ts +0 -13
- package/dist/gateway/telegram.js +0 -35
- package/dist/gateway/types.d.ts +0 -15
- package/dist/gateway/types.js +0 -2
- package/dist/git/rotation.d.ts +0 -8
- package/dist/git/rotation.js +0 -36
- package/dist/hub/commands.d.ts +0 -15
- package/dist/hub/commands.js +0 -189
- package/dist/hub/index.d.ts +0 -8
- package/dist/hub/index.js +0 -9
- package/dist/hub/installer.d.ts +0 -7
- package/dist/hub/installer.js +0 -148
- package/dist/hub/registry.d.ts +0 -9
- package/dist/hub/registry.js +0 -81
- package/dist/hub/registry.json +0 -82
- package/dist/hub/types.d.ts +0 -73
- package/dist/hub/types.js +0 -6
- package/dist/index-agent.d.ts +0 -1
- package/dist/index-agent.js +0 -17
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -442
- package/dist/knowledge/compiler.d.ts +0 -11
- package/dist/knowledge/compiler.js +0 -100
- package/dist/knowledge/git-sync.d.ts +0 -6
- package/dist/knowledge/git-sync.js +0 -81
- package/dist/knowledge/linter.d.ts +0 -9
- package/dist/knowledge/linter.js +0 -136
- package/dist/knowledge/raw.d.ts +0 -20
- package/dist/knowledge/raw.js +0 -87
- package/dist/knowledge/wiki.d.ts +0 -26
- package/dist/knowledge/wiki.js +0 -127
- package/dist/llm/cache.d.ts +0 -16
- package/dist/llm/cache.js +0 -25
- package/dist/llm/costs.d.ts +0 -18
- package/dist/llm/costs.js +0 -30
- package/dist/llm/ensemble.d.ts +0 -5
- package/dist/llm/ensemble.js +0 -40
- package/dist/llm/local.d.ts +0 -23
- package/dist/llm/local.js +0 -78
- package/dist/llm/router.d.ts +0 -7
- package/dist/llm/router.js +0 -68
- package/dist/llm/types.d.ts +0 -18
- package/dist/llm/types.js +0 -2
- package/dist/mcp/client.d.ts +0 -25
- package/dist/mcp/client.js +0 -115
- package/dist/mcp/commands.d.ts +0 -5
- package/dist/mcp/commands.js +0 -30
- package/dist/mcp/index.d.ts +0 -7
- package/dist/mcp/index.js +0 -6
- package/dist/mcp/manager.d.ts +0 -17
- package/dist/mcp/manager.js +0 -67
- package/dist/mcp/marketplace.d.ts +0 -42
- package/dist/mcp/marketplace.js +0 -188
- package/dist/mcp/resources.d.ts +0 -6
- package/dist/mcp/resources.js +0 -26
- package/dist/mcp/server.d.ts +0 -84
- package/dist/mcp/server.js +0 -288
- package/dist/mcp/transport.d.ts +0 -10
- package/dist/mcp/transport.js +0 -30
- package/dist/memory/builtin.d.ts +0 -17
- package/dist/memory/builtin.js +0 -43
- package/dist/memory/gepa-integration.d.ts +0 -49
- package/dist/memory/gepa-integration.js +0 -271
- package/dist/memory/graph.d.ts +0 -19
- package/dist/memory/graph.js +0 -44
- package/dist/memory/holographic.d.ts +0 -11
- package/dist/memory/holographic.js +0 -192
- package/dist/memory/manager.d.ts +0 -36
- package/dist/memory/manager.js +0 -152
- package/dist/memory/provider.d.ts +0 -29
- package/dist/memory/provider.js +0 -9
- package/dist/memory/unified.d.ts +0 -19
- package/dist/memory/unified.js +0 -91
- package/dist/mesh/ConsensusEngine.d.ts +0 -85
- package/dist/mesh/ConsensusEngine.js +0 -187
- package/dist/mesh/LightningBilling.d.ts +0 -124
- package/dist/mesh/LightningBilling.js +0 -284
- package/dist/mesh/MeshNode.d.ts +0 -82
- package/dist/mesh/MeshNode.js +0 -401
- package/dist/mesh/TeamResourcePool.d.ts +0 -93
- package/dist/mesh/TeamResourcePool.js +0 -277
- package/dist/mesh/agent-payments.d.ts +0 -25
- package/dist/mesh/agent-payments.js +0 -79
- package/dist/mesh/capabilities.d.ts +0 -25
- package/dist/mesh/capabilities.js +0 -44
- package/dist/mesh/config.d.ts +0 -37
- package/dist/mesh/config.js +0 -38
- package/dist/mesh/index.d.ts +0 -13
- package/dist/mesh/index.js +0 -11
- package/dist/mesh/reputation.d.ts +0 -21
- package/dist/mesh/reputation.js +0 -51
- package/dist/mesh/revenue-split.d.ts +0 -20
- package/dist/mesh/revenue-split.js +0 -52
- package/dist/mesh/validation.d.ts +0 -5
- package/dist/mesh/validation.js +0 -31
- package/dist/models/credential-pool.d.ts +0 -37
- package/dist/models/credential-pool.js +0 -165
- package/dist/models/index.d.ts +0 -10
- package/dist/models/index.js +0 -13
- package/dist/models/manager.d.ts +0 -34
- package/dist/models/manager.js +0 -197
- package/dist/models/registry.d.ts +0 -27
- package/dist/models/registry.js +0 -359
- package/dist/models/types.d.ts +0 -119
- package/dist/models/types.js +0 -5
- package/dist/multimodal/attachments.d.ts +0 -13
- package/dist/multimodal/attachments.js +0 -99
- package/dist/multimodal/index.d.ts +0 -6
- package/dist/multimodal/index.js +0 -3
- package/dist/multimodal/slash.d.ts +0 -9
- package/dist/multimodal/slash.js +0 -111
- package/dist/multimodal/types.d.ts +0 -30
- package/dist/multimodal/types.js +0 -5
- package/dist/permission/approval.d.ts +0 -18
- package/dist/permission/approval.js +0 -86
- package/dist/permission/confirmation.d.ts +0 -33
- package/dist/permission/confirmation.js +0 -130
- package/dist/permission/judge.d.ts +0 -25
- package/dist/permission/judge.js +0 -162
- package/dist/permission/store.d.ts +0 -12
- package/dist/permission/store.js +0 -50
- package/dist/platform/sync.d.ts +0 -17
- package/dist/platform/sync.js +0 -38
- package/dist/project-session/commands.d.ts +0 -5
- package/dist/project-session/commands.js +0 -220
- package/dist/project-session/context.d.ts +0 -21
- package/dist/project-session/context.js +0 -145
- package/dist/project-session/index.d.ts +0 -8
- package/dist/project-session/index.js +0 -8
- package/dist/project-session/project.d.ts +0 -15
- package/dist/project-session/project.js +0 -107
- package/dist/project-session/session.d.ts +0 -14
- package/dist/project-session/session.js +0 -124
- package/dist/project-session/types.d.ts +0 -85
- package/dist/project-session/types.js +0 -6
- package/dist/providers/anthropic.d.ts +0 -4
- package/dist/providers/anthropic.js +0 -94
- package/dist/providers/circuit-breaker.d.ts +0 -30
- package/dist/providers/circuit-breaker.js +0 -109
- package/dist/providers/cohere.d.ts +0 -2
- package/dist/providers/cohere.js +0 -49
- package/dist/providers/deepinfra.d.ts +0 -32
- package/dist/providers/deepinfra.js +0 -44
- package/dist/providers/detection.d.ts +0 -21
- package/dist/providers/detection.js +0 -88
- package/dist/providers/dirgha.d.ts +0 -3
- package/dist/providers/dirgha.js +0 -26
- package/dist/providers/dispatch.d.ts +0 -28
- package/dist/providers/dispatch.js +0 -262
- package/dist/providers/fireworks.d.ts +0 -2
- package/dist/providers/fireworks.js +0 -109
- package/dist/providers/gateway.d.ts +0 -2
- package/dist/providers/gateway.js +0 -80
- package/dist/providers/gemini.d.ts +0 -3
- package/dist/providers/gemini.js +0 -103
- package/dist/providers/groq.d.ts +0 -2
- package/dist/providers/groq.js +0 -39
- package/dist/providers/http.d.ts +0 -27
- package/dist/providers/http.js +0 -245
- package/dist/providers/index.d.ts +0 -16
- package/dist/providers/index.js +0 -18
- package/dist/providers/messages.d.ts +0 -21
- package/dist/providers/messages.js +0 -116
- package/dist/providers/mistral.d.ts +0 -2
- package/dist/providers/mistral.js +0 -39
- package/dist/providers/normalise.d.ts +0 -5
- package/dist/providers/normalise.js +0 -29
- package/dist/providers/nvidia.d.ts +0 -2
- package/dist/providers/nvidia.js +0 -62
- package/dist/providers/openai.d.ts +0 -3
- package/dist/providers/openai.js +0 -20
- package/dist/providers/openrouter.d.ts +0 -2
- package/dist/providers/openrouter.js +0 -54
- package/dist/providers/perplexity.d.ts +0 -34
- package/dist/providers/perplexity.js +0 -66
- package/dist/providers/rate-limit.d.ts +0 -31
- package/dist/providers/rate-limit.js +0 -101
- package/dist/providers/togetherai.d.ts +0 -32
- package/dist/providers/togetherai.js +0 -44
- package/dist/providers/tools-format.d.ts +0 -2437
- package/dist/providers/tools-format.js +0 -15
- package/dist/providers/types.d.ts +0 -29
- package/dist/providers/types.js +0 -2
- package/dist/providers/unified-rate-limiter.d.ts +0 -116
- package/dist/providers/unified-rate-limiter.js +0 -385
- package/dist/providers/vercel.d.ts +0 -32
- package/dist/providers/vercel.js +0 -44
- package/dist/providers/xai.d.ts +0 -2
- package/dist/providers/xai.js +0 -39
- package/dist/realtime/hub.d.ts +0 -42
- package/dist/realtime/hub.js +0 -147
- package/dist/repl/escape-recovery.d.ts +0 -75
- package/dist/repl/escape-recovery.js +0 -236
- package/dist/repl/index.d.ts +0 -2
- package/dist/repl/index.js +0 -226
- package/dist/repl/input.d.ts +0 -12
- package/dist/repl/input.js +0 -345
- package/dist/repl/renderer.d.ts +0 -23
- package/dist/repl/renderer.js +0 -232
- package/dist/repl/slash/account.d.ts +0 -2
- package/dist/repl/slash/account.js +0 -70
- package/dist/repl/slash/agent-discovery.d.ts +0 -15
- package/dist/repl/slash/agent-discovery.js +0 -227
- package/dist/repl/slash/config.d.ts +0 -2
- package/dist/repl/slash/config.js +0 -223
- package/dist/repl/slash/consensus.d.ts +0 -14
- package/dist/repl/slash/consensus.js +0 -173
- package/dist/repl/slash/context.d.ts +0 -3
- package/dist/repl/slash/context.js +0 -188
- package/dist/repl/slash/cron.d.ts +0 -2
- package/dist/repl/slash/cron.js +0 -83
- package/dist/repl/slash/dev.d.ts +0 -5
- package/dist/repl/slash/dev.js +0 -240
- package/dist/repl/slash/fs.d.ts +0 -10
- package/dist/repl/slash/fs.js +0 -105
- package/dist/repl/slash/git-ext.d.ts +0 -2
- package/dist/repl/slash/git-ext.js +0 -95
- package/dist/repl/slash/git.d.ts +0 -3
- package/dist/repl/slash/git.js +0 -167
- package/dist/repl/slash/hermes.d.ts +0 -2
- package/dist/repl/slash/hermes.js +0 -180
- package/dist/repl/slash/index.d.ts +0 -28
- package/dist/repl/slash/index.js +0 -160
- package/dist/repl/slash/knowledge.d.ts +0 -8
- package/dist/repl/slash/knowledge.js +0 -287
- package/dist/repl/slash/local.d.ts +0 -5
- package/dist/repl/slash/local.js +0 -24
- package/dist/repl/slash/mcp.d.ts +0 -2
- package/dist/repl/slash/mcp.js +0 -63
- package/dist/repl/slash/memory.d.ts +0 -2
- package/dist/repl/slash/memory.js +0 -232
- package/dist/repl/slash/net.d.ts +0 -11
- package/dist/repl/slash/net.js +0 -83
- package/dist/repl/slash/orchestration.d.ts +0 -2
- package/dist/repl/slash/orchestration.js +0 -61
- package/dist/repl/slash/safety.d.ts +0 -2
- package/dist/repl/slash/safety.js +0 -131
- package/dist/repl/slash/screen.d.ts +0 -2
- package/dist/repl/slash/screen.js +0 -202
- package/dist/repl/slash/search.d.ts +0 -2
- package/dist/repl/slash/search.js +0 -211
- package/dist/repl/slash/security.d.ts +0 -2
- package/dist/repl/slash/security.js +0 -102
- package/dist/repl/slash/session.d.ts +0 -2
- package/dist/repl/slash/session.js +0 -498
- package/dist/repl/slash/shortcuts.d.ts +0 -2
- package/dist/repl/slash/shortcuts.js +0 -180
- package/dist/repl/slash/side.d.ts +0 -9
- package/dist/repl/slash/side.js +0 -27
- package/dist/repl/slash/sprint.d.ts +0 -2
- package/dist/repl/slash/sprint.js +0 -189
- package/dist/repl/slash/team.d.ts +0 -15
- package/dist/repl/slash/team.js +0 -235
- package/dist/repl/slash/theme.d.ts +0 -10
- package/dist/repl/slash/theme.js +0 -112
- package/dist/repl/slash/types.d.ts +0 -30
- package/dist/repl/slash/types.js +0 -2
- package/dist/repl/slash/verbose.d.ts +0 -18
- package/dist/repl/slash/verbose.js +0 -38
- package/dist/repl/slash/verify.d.ts +0 -10
- package/dist/repl/slash/verify.js +0 -171
- package/dist/repl/slash/voice.d.ts +0 -5
- package/dist/repl/slash/voice.js +0 -72
- package/dist/repl/slash-git.d.ts +0 -2
- package/dist/repl/slash-git.js +0 -132
- package/dist/repl/slash-workflow.d.ts +0 -2
- package/dist/repl/slash-workflow.js +0 -108
- package/dist/repl/themes.d.ts +0 -24
- package/dist/repl/themes.js +0 -253
- package/dist/runtime/host-tools.d.ts +0 -63
- package/dist/runtime/host-tools.js +0 -204
- package/dist/runtime/index.d.ts +0 -25
- package/dist/runtime/index.js +0 -19
- package/dist/runtime/isolate.d.ts +0 -88
- package/dist/runtime/isolate.js +0 -277
- package/dist/runtime/mount.d.ts +0 -105
- package/dist/runtime/mount.js +0 -458
- package/dist/runtime/multiplayer.d.ts +0 -128
- package/dist/runtime/multiplayer.js +0 -285
- package/dist/runtime/network-control.d.ts +0 -65
- package/dist/runtime/network-control.js +0 -195
- package/dist/runtime/transcript.d.ts +0 -128
- package/dist/runtime/transcript.js +0 -252
- package/dist/runtime/wasm-commands.d.ts +0 -27
- package/dist/runtime/wasm-commands.js +0 -156
- package/dist/security/capabilityTokens.d.ts +0 -44
- package/dist/security/capabilityTokens.js +0 -122
- package/dist/security/csrf.d.ts +0 -53
- package/dist/security/csrf.js +0 -181
- package/dist/security/index.d.ts +0 -6
- package/dist/security/index.js +0 -6
- package/dist/security/rules.d.ts +0 -12
- package/dist/security/rules.js +0 -212
- package/dist/security/safeShell.d.ts +0 -19
- package/dist/security/safeShell.js +0 -82
- package/dist/security/scanner.d.ts +0 -22
- package/dist/security/scanner.js +0 -190
- package/dist/security/types.d.ts +0 -53
- package/dist/security/types.js +0 -6
- package/dist/services/UnifiedAgentClient.d.ts +0 -75
- package/dist/services/UnifiedAgentClient.js +0 -180
- package/dist/services/memory/feature-flag.d.ts +0 -38
- package/dist/services/memory/feature-flag.js +0 -95
- package/dist/services/memory/gepa-wrapper.d.ts +0 -38
- package/dist/services/memory/gepa-wrapper.js +0 -177
- package/dist/session/caps.d.ts +0 -9
- package/dist/session/caps.js +0 -46
- package/dist/session/checkpoint.d.ts +0 -4
- package/dist/session/checkpoint.js +0 -91
- package/dist/session/commands/delete.d.ts +0 -2
- package/dist/session/commands/delete.js +0 -22
- package/dist/session/commands/index.d.ts +0 -7
- package/dist/session/commands/index.js +0 -8
- package/dist/session/commands/list.d.ts +0 -2
- package/dist/session/commands/list.js +0 -39
- package/dist/session/commands/load.d.ts +0 -2
- package/dist/session/commands/load.js +0 -35
- package/dist/session/commands/save.d.ts +0 -2
- package/dist/session/commands/save.js +0 -19
- package/dist/session/db.d.ts +0 -21
- package/dist/session/db.js +0 -289
- package/dist/session/memory.d.ts +0 -6
- package/dist/session/memory.js +0 -67
- package/dist/session/persistence.d.ts +0 -35
- package/dist/session/persistence.js +0 -166
- package/dist/setup/hardwareDetect.d.ts +0 -10
- package/dist/setup/hardwareDetect.js +0 -61
- package/dist/setup/localAIPrompt.d.ts +0 -1
- package/dist/setup/localAIPrompt.js +0 -84
- package/dist/setup/modelCurator.d.ts +0 -20
- package/dist/setup/modelCurator.js +0 -171
- package/dist/skills/generator.d.ts +0 -7
- package/dist/skills/generator.js +0 -76
- package/dist/skills/index.d.ts +0 -71
- package/dist/skills/index.js +0 -365
- package/dist/skills/registry.d.ts +0 -37
- package/dist/skills/registry.js +0 -120
- package/dist/sprint/compressor.d.ts +0 -9
- package/dist/sprint/compressor.js +0 -95
- package/dist/sprint/critic.d.ts +0 -12
- package/dist/sprint/critic.js +0 -44
- package/dist/sprint/escalation.d.ts +0 -12
- package/dist/sprint/escalation.js +0 -116
- package/dist/sprint/executor.d.ts +0 -13
- package/dist/sprint/executor.js +0 -231
- package/dist/sprint/journal.d.ts +0 -28
- package/dist/sprint/journal.js +0 -270
- package/dist/sprint/manifest.d.ts +0 -5
- package/dist/sprint/manifest.js +0 -183
- package/dist/sprint/types.d.ts +0 -96
- package/dist/sprint/types.js +0 -5
- package/dist/sprint/verifier.d.ts +0 -2
- package/dist/sprint/verifier.js +0 -152
- package/dist/sprint/watchdog.d.ts +0 -6
- package/dist/sprint/watchdog.js +0 -144
- package/dist/swarm/agents/VerificationQuorum.d.ts +0 -22
- package/dist/swarm/agents/VerificationQuorum.js +0 -146
- package/dist/swarm/agents/WorkerAgent.d.ts +0 -42
- package/dist/swarm/agents/WorkerAgent.js +0 -130
- package/dist/swarm/collaboration/AgentGit.d.ts +0 -39
- package/dist/swarm/collaboration/AgentGit.js +0 -102
- package/dist/swarm/collaboration/CRDT.d.ts +0 -28
- package/dist/swarm/collaboration/CRDT.js +0 -116
- package/dist/swarm/commands.d.ts +0 -5
- package/dist/swarm/commands.js +0 -144
- package/dist/swarm/governance/CostOptimizer.d.ts +0 -40
- package/dist/swarm/governance/CostOptimizer.js +0 -162
- package/dist/swarm/index.d.ts +0 -15
- package/dist/swarm/index.js +0 -16
- package/dist/swarm/orchestration/ColonyManager.d.ts +0 -45
- package/dist/swarm/orchestration/ColonyManager.js +0 -166
- package/dist/swarm/runtime/ModelPool.d.ts +0 -37
- package/dist/swarm/runtime/ModelPool.js +0 -162
- package/dist/swarm/templates/SalesforceDomains.d.ts +0 -25
- package/dist/swarm/templates/SalesforceDomains.js +0 -340
- package/dist/swarm/testing/MacroTestFramework.d.ts +0 -25
- package/dist/swarm/testing/MacroTestFramework.js +0 -109
- package/dist/swarm/testing/MicroTestFramework.d.ts +0 -23
- package/dist/swarm/testing/MicroTestFramework.js +0 -128
- package/dist/swarm/types.d.ts +0 -227
- package/dist/swarm/types.js +0 -5
- package/dist/sync/engine.d.ts +0 -17
- package/dist/sync/engine.js +0 -107
- package/dist/sync/knowledge.d.ts +0 -30
- package/dist/sync/knowledge.js +0 -155
- package/dist/sync/schema.d.ts +0 -1
- package/dist/sync/schema.js +0 -13
- package/dist/sync/session.d.ts +0 -24
- package/dist/sync/session.js +0 -70
- package/dist/sync/types.d.ts +0 -32
- package/dist/sync/types.js +0 -2
- package/dist/sync/wiki-git.d.ts +0 -17
- package/dist/sync/wiki-git.js +0 -80
- package/dist/task/queue.d.ts +0 -36
- package/dist/task/queue.js +0 -97
- package/dist/tools/browser/agent.d.ts +0 -12
- package/dist/tools/browser/agent.js +0 -119
- package/dist/tools/browser/legacy.d.ts +0 -5
- package/dist/tools/browser/legacy.js +0 -66
- package/dist/tools/browser/utils.d.ts +0 -5
- package/dist/tools/browser/utils.js +0 -27
- package/dist/tools/browser/vision.d.ts +0 -2
- package/dist/tools/browser/vision.js +0 -154
- package/dist/tools/browser.d.ts +0 -7
- package/dist/tools/browser.js +0 -100
- package/dist/tools/defs.d.ts +0 -2575
- package/dist/tools/defs.js +0 -129
- package/dist/tools/deploy.d.ts +0 -17
- package/dist/tools/deploy.js +0 -94
- package/dist/tools/diff-util.d.ts +0 -8
- package/dist/tools/diff-util.js +0 -100
- package/dist/tools/file.d.ts +0 -11
- package/dist/tools/file.js +0 -297
- package/dist/tools/git.d.ts +0 -11
- package/dist/tools/git.js +0 -139
- package/dist/tools/index.d.ts +0 -4
- package/dist/tools/index.js +0 -172
- package/dist/tools/memory-graph.d.ts +0 -21
- package/dist/tools/memory-graph.js +0 -72
- package/dist/tools/memory.d.ts +0 -5
- package/dist/tools/memory.js +0 -55
- package/dist/tools/patch.d.ts +0 -2
- package/dist/tools/patch.js +0 -103
- package/dist/tools/repo.d.ts +0 -2
- package/dist/tools/repo.js +0 -203
- package/dist/tools/sandbox.d.ts +0 -7
- package/dist/tools/sandbox.js +0 -101
- package/dist/tools/search.d.ts +0 -11
- package/dist/tools/search.js +0 -217
- package/dist/tools/session-search.d.ts +0 -2
- package/dist/tools/session-search.js +0 -31
- package/dist/tools/shell-guards.spec.d.ts +0 -1
- package/dist/tools/shell-guards.spec.js +0 -95
- package/dist/tools/shell.d.ts +0 -3
- package/dist/tools/shell.js +0 -241
- package/dist/tools/symbol-graph.d.ts +0 -2
- package/dist/tools/symbol-graph.js +0 -166
- package/dist/tui/App.d.ts +0 -5
- package/dist/tui/App.js +0 -670
- package/dist/tui/TaskQueue.d.ts +0 -68
- package/dist/tui/TaskQueue.js +0 -178
- package/dist/tui/TaskQueueClass.d.ts +0 -18
- package/dist/tui/TaskQueueClass.js +0 -83
- package/dist/tui/TaskQueueTypes.d.ts +0 -20
- package/dist/tui/TaskQueueTypes.js +0 -2
- package/dist/tui/colors.d.ts +0 -6
- package/dist/tui/colors.js +0 -48
- package/dist/tui/commands.d.ts +0 -14
- package/dist/tui/commands.js +0 -109
- package/dist/tui/components/ActivitySummary.d.ts +0 -8
- package/dist/tui/components/ActivitySummary.js +0 -59
- package/dist/tui/components/CodeEditBox.d.ts +0 -42
- package/dist/tui/components/CodeEditBox.js +0 -187
- package/dist/tui/components/CompletedMsg.d.ts +0 -4
- package/dist/tui/components/CompletedMsg.js +0 -40
- package/dist/tui/components/CompletedSystemMsg.d.ts +0 -3
- package/dist/tui/components/CompletedSystemMsg.js +0 -16
- package/dist/tui/components/CompletedToolGroup.d.ts +0 -9
- package/dist/tui/components/CompletedToolGroup.js +0 -47
- package/dist/tui/components/DiffLineItem.d.ts +0 -1
- package/dist/tui/components/DiffLineItem.js +0 -14
- package/dist/tui/components/DiffView.d.ts +0 -2
- package/dist/tui/components/DiffView.js +0 -34
- package/dist/tui/components/ErrorMsg.d.ts +0 -3
- package/dist/tui/components/ErrorMsg.js +0 -24
- package/dist/tui/components/FileComplete.d.ts +0 -8
- package/dist/tui/components/FileComplete.js +0 -18
- package/dist/tui/components/FleetPanel.d.ts +0 -1
- package/dist/tui/components/FleetPanel.js +0 -80
- package/dist/tui/components/HelpOverlay.d.ts +0 -5
- package/dist/tui/components/HelpOverlay.js +0 -88
- package/dist/tui/components/HistorySearch.d.ts +0 -7
- package/dist/tui/components/HistorySearch.js +0 -60
- package/dist/tui/components/InputBox.d.ts +0 -17
- package/dist/tui/components/InputBox.js +0 -57
- package/dist/tui/components/InputHooks.d.ts +0 -12
- package/dist/tui/components/InputHooks.js +0 -214
- package/dist/tui/components/JitterFreeRenderer.d.ts +0 -51
- package/dist/tui/components/JitterFreeRenderer.js +0 -289
- package/dist/tui/components/KeysPicker.d.ts +0 -1
- package/dist/tui/components/KeysPicker.js +0 -54
- package/dist/tui/components/LiveThinkingNode.d.ts +0 -1
- package/dist/tui/components/LiveThinkingNode.js +0 -8
- package/dist/tui/components/LiveView.d.ts +0 -1
- package/dist/tui/components/LiveView.js +0 -34
- package/dist/tui/components/LocalModelRow.d.ts +0 -1
- package/dist/tui/components/LocalModelRow.js +0 -9
- package/dist/tui/components/ModelPicker.d.ts +0 -1
- package/dist/tui/components/ModelPicker.js +0 -41
- package/dist/tui/components/ModelRow.d.ts +0 -1
- package/dist/tui/components/ModelRow.js +0 -8
- package/dist/tui/components/ScrollLogic.d.ts +0 -11
- package/dist/tui/components/ScrollLogic.js +0 -38
- package/dist/tui/components/ScrollView.d.ts +0 -7
- package/dist/tui/components/ScrollView.js +0 -45
- package/dist/tui/components/SessionPicker.d.ts +0 -14
- package/dist/tui/components/SessionPicker.js +0 -37
- package/dist/tui/components/SlashHint.d.ts +0 -3
- package/dist/tui/components/SlashHint.js +0 -16
- package/dist/tui/components/SprintHelpers.d.ts +0 -3
- package/dist/tui/components/SprintHelpers.js +0 -15
- package/dist/tui/components/SprintStatus.d.ts +0 -2
- package/dist/tui/components/SprintStatus.js +0 -31
- package/dist/tui/components/SprintTaskRow.d.ts +0 -1
- package/dist/tui/components/SprintTaskRow.js +0 -8
- package/dist/tui/components/StatusBar.d.ts +0 -16
- package/dist/tui/components/StatusBar.js +0 -29
- package/dist/tui/components/__demos__/CodeEditDemo.d.ts +0 -8
- package/dist/tui/components/__demos__/CodeEditDemo.js +0 -85
- package/dist/tui/components/code-edit/CodeEditBox.d.ts +0 -7
- package/dist/tui/components/code-edit/CodeEditBox.js +0 -16
- package/dist/tui/components/code-edit/components/EditBadge.d.ts +0 -10
- package/dist/tui/components/code-edit/components/EditBadge.js +0 -14
- package/dist/tui/components/code-edit/components/EditItem.d.ts +0 -7
- package/dist/tui/components/code-edit/components/EditItem.js +0 -20
- package/dist/tui/components/code-edit/components/SyntaxHighlighter.d.ts +0 -11
- package/dist/tui/components/code-edit/components/SyntaxHighlighter.js +0 -43
- package/dist/tui/components/code-edit/index.d.ts +0 -17
- package/dist/tui/components/code-edit/index.js +0 -29
- package/dist/tui/components/code-edit/patterns/index.d.ts +0 -6
- package/dist/tui/components/code-edit/patterns/index.js +0 -38
- package/dist/tui/components/code-edit/patterns/javascript.d.ts +0 -5
- package/dist/tui/components/code-edit/patterns/javascript.js +0 -17
- package/dist/tui/components/code-edit/patterns/python.d.ts +0 -5
- package/dist/tui/components/code-edit/patterns/python.js +0 -14
- package/dist/tui/components/code-edit/patterns/typescript.d.ts +0 -5
- package/dist/tui/components/code-edit/patterns/typescript.js +0 -20
- package/dist/tui/components/code-edit/types.d.ts +0 -32
- package/dist/tui/components/code-edit/types.js +0 -5
- package/dist/tui/components/code-edit/utils.d.ts +0 -8
- package/dist/tui/components/code-edit/utils.js +0 -35
- package/dist/tui/components/jitter-free/FrameController.d.ts +0 -13
- package/dist/tui/components/jitter-free/FrameController.js +0 -44
- package/dist/tui/components/jitter-free/JitterFreeRenderer.d.ts +0 -7
- package/dist/tui/components/jitter-free/JitterFreeRenderer.js +0 -22
- package/dist/tui/components/jitter-free/SmoothSpinner.d.ts +0 -7
- package/dist/tui/components/jitter-free/SmoothSpinner.js +0 -23
- package/dist/tui/components/jitter-free/StableCursor.d.ts +0 -7
- package/dist/tui/components/jitter-free/StableCursor.js +0 -15
- package/dist/tui/components/jitter-free/StableScroll.d.ts +0 -7
- package/dist/tui/components/jitter-free/StableScroll.js +0 -27
- package/dist/tui/components/jitter-free/config.d.ts +0 -7
- package/dist/tui/components/jitter-free/config.js +0 -8
- package/dist/tui/components/jitter-free/hooks/index.d.ts +0 -6
- package/dist/tui/components/jitter-free/hooks/index.js +0 -7
- package/dist/tui/components/jitter-free/hooks/useDebounceRender.d.ts +0 -9
- package/dist/tui/components/jitter-free/hooks/useDebounceRender.js +0 -33
- package/dist/tui/components/jitter-free/hooks/useDoubleBuffer.d.ts +0 -10
- package/dist/tui/components/jitter-free/hooks/useDoubleBuffer.js +0 -24
- package/dist/tui/components/jitter-free/hooks/useScrollBuffer.d.ts +0 -9
- package/dist/tui/components/jitter-free/hooks/useScrollBuffer.js +0 -25
- package/dist/tui/components/jitter-free/index.d.ts +0 -12
- package/dist/tui/components/jitter-free/index.js +0 -17
- package/dist/tui/components/jitter-free/types.d.ts +0 -26
- package/dist/tui/components/jitter-free/types.js +0 -5
- package/dist/tui/components/jitter-free/utils.d.ts +0 -15
- package/dist/tui/components/jitter-free/utils.js +0 -46
- package/dist/tui/components/stream/StreamContainer.d.ts +0 -6
- package/dist/tui/components/stream/StreamContainer.js +0 -75
- package/dist/tui/components/stream/ThinkingStream.d.ts +0 -13
- package/dist/tui/components/stream/ThinkingStream.js +0 -21
- package/dist/tui/components/stream/ToolCallArgs.d.ts +0 -3
- package/dist/tui/components/stream/ToolCallArgs.js +0 -7
- package/dist/tui/components/stream/ToolCallBox.d.ts +0 -13
- package/dist/tui/components/stream/ToolCallBox.js +0 -13
- package/dist/tui/components/stream/ToolItem.d.ts +0 -1
- package/dist/tui/components/stream/ToolItem.js +0 -59
- package/dist/tui/components/stream/index.d.ts +0 -9
- package/dist/tui/components/stream/index.js +0 -8
- package/dist/tui/components/stream/types.d.ts +0 -20
- package/dist/tui/components/stream/types.js +0 -2
- package/dist/tui/components/useKeyInput.d.ts +0 -6
- package/dist/tui/components/useKeyInput.js +0 -28
- package/dist/tui/constants.d.ts +0 -7
- package/dist/tui/constants.js +0 -7
- package/dist/tui/helpers/grapheme.d.ts +0 -27
- package/dist/tui/helpers/grapheme.js +0 -116
- package/dist/tui/helpers.d.ts +0 -7
- package/dist/tui/helpers.js +0 -43
- package/dist/tui/index.d.ts +0 -5
- package/dist/tui/index.js +0 -70
- package/dist/tui/input/index.d.ts +0 -5
- package/dist/tui/input/index.js +0 -2
- package/dist/tui/keybindings.d.ts +0 -10
- package/dist/tui/keybindings.js +0 -94
- package/dist/tui/logo.d.ts +0 -1
- package/dist/tui/logo.js +0 -57
- package/dist/tui/markdown.d.ts +0 -6
- package/dist/tui/markdown.js +0 -27
- package/dist/tui/models.d.ts +0 -142
- package/dist/tui/models.js +0 -47
- package/dist/tui/polyfill.d.ts +0 -3
- package/dist/tui/polyfill.js +0 -20
- package/dist/tui/startup-cta.d.ts +0 -18
- package/dist/tui/startup-cta.js +0 -123
- package/dist/tui/syntax-languages.d.ts +0 -4
- package/dist/tui/syntax-languages.js +0 -42
- package/dist/tui/syntax-tokenizer.d.ts +0 -7
- package/dist/tui/syntax-tokenizer.js +0 -137
- package/dist/tui/syntax.d.ts +0 -2
- package/dist/tui/syntax.js +0 -27
- package/dist/tui/system.d.ts +0 -5
- package/dist/tui/system.js +0 -29
- package/dist/tui/themes.d.ts +0 -19
- package/dist/tui/themes.js +0 -75
- package/dist/tui/tui-types.d.ts +0 -28
- package/dist/tui/tui-types.js +0 -2
- package/dist/tui/useAppProcessor.d.ts +0 -5
- package/dist/tui/useAppProcessor.js +0 -63
- package/dist/tui/useAppSession.d.ts +0 -26
- package/dist/tui/useAppSession.js +0 -57
- package/dist/tui/useAppTaskQueue.d.ts +0 -13
- package/dist/tui/useAppTaskQueue.js +0 -26
- package/dist/tui/useStreamThrottle.d.ts +0 -11
- package/dist/tui/useStreamThrottle.js +0 -39
- package/dist/types.d.ts +0 -182
- package/dist/types.js +0 -13
- package/dist/utils/auth.d.ts +0 -5
- package/dist/utils/auth.js +0 -46
- package/dist/utils/config.d.ts +0 -9
- package/dist/utils/config.js +0 -100
- package/dist/utils/context.d.ts +0 -4
- package/dist/utils/context.js +0 -142
- package/dist/utils/credentials.d.ts +0 -23
- package/dist/utils/credentials.js +0 -69
- package/dist/utils/execution-controller.d.ts +0 -45
- package/dist/utils/execution-controller.js +0 -228
- package/dist/utils/experimental.d.ts +0 -16
- package/dist/utils/experimental.js +0 -23
- package/dist/utils/features.d.ts +0 -18
- package/dist/utils/features.js +0 -38
- package/dist/utils/health-monitor.d.ts +0 -49
- package/dist/utils/health-monitor.js +0 -159
- package/dist/utils/id.d.ts +0 -19
- package/dist/utils/id.js +0 -42
- package/dist/utils/index.d.ts +0 -10
- package/dist/utils/index.js +0 -13
- package/dist/utils/keys.d.ts +0 -12
- package/dist/utils/keys.js +0 -50
- package/dist/utils/logger.d.ts +0 -12
- package/dist/utils/logger.js +0 -89
- package/dist/utils/metrics.d.ts +0 -12
- package/dist/utils/metrics.js +0 -36
- package/dist/utils/paste-handler.d.ts +0 -26
- package/dist/utils/paste-handler.js +0 -140
- package/dist/utils/profile.d.ts +0 -16
- package/dist/utils/profile.js +0 -68
- package/dist/utils/project-tracker.d.ts +0 -8
- package/dist/utils/project-tracker.js +0 -66
- package/dist/utils/safe-exec.d.ts +0 -20
- package/dist/utils/safe-exec.js +0 -32
- package/dist/utils/security-boundary.d.ts +0 -53
- package/dist/utils/security-boundary.js +0 -145
- package/dist/utils/session-cache.d.ts +0 -29
- package/dist/utils/session-cache.js +0 -112
- package/dist/utils/soul.d.ts +0 -4
- package/dist/utils/soul.js +0 -104
- package/dist/utils/sqlite-future.d.ts +0 -35
- package/dist/utils/sqlite-future.js +0 -66
- package/dist/utils/sqlite.d.ts +0 -35
- package/dist/utils/sqlite.js +0 -65
- package/dist/utils/startup-profiler.d.ts +0 -26
- package/dist/utils/startup-profiler.js +0 -61
- package/dist/utils/state.d.ts +0 -9
- package/dist/utils/state.js +0 -29
- package/dist/utils/sum.d.ts +0 -6
- package/dist/utils/sum.js +0 -11
- package/dist/utils/token-counter.d.ts +0 -18
- package/dist/utils/token-counter.js +0 -84
- package/dist/utils/unified-memory.d.ts +0 -80
- package/dist/utils/unified-memory.js +0 -171
- package/dist/utils/update-verify.d.ts +0 -7
- package/dist/utils/update-verify.js +0 -64
- package/dist/voice/browser-extension.d.ts +0 -37
- package/dist/voice/browser-extension.js +0 -97
- package/dist/voice/commands.d.ts +0 -5
- package/dist/voice/commands.js +0 -65
- package/dist/voice/desktop.d.ts +0 -42
- package/dist/voice/desktop.js +0 -254
- package/dist/voice/index.d.ts +0 -16
- package/dist/voice/index.js +0 -123
- package/dist/voice/mobile-bridge.d.ts +0 -12
- package/dist/voice/mobile-bridge.js +0 -139
- package/dist/voice/personal-plex.d.ts +0 -61
- package/dist/voice/personal-plex.js +0 -280
- package/dist/voice/plex.d.ts +0 -19
- package/dist/voice/plex.js +0 -55
- package/dist/voice/recorder.d.ts +0 -10
- package/dist/voice/recorder.js +0 -43
- package/dist/voice/shortcuts.d.ts +0 -16
- package/dist/voice/shortcuts.js +0 -31
- package/dist/voice/transcribe.d.ts +0 -3
- package/dist/voice/transcribe.js +0 -36
- package/dist/voice/tts.d.ts +0 -35
- package/dist/voice/tts.js +0 -190
- package/dist/voice/types.d.ts +0 -25
- package/dist/voice/types.js +0 -2
- package/dist/workspace/store.d.ts +0 -48
- package/dist/workspace/store.js +0 -106
- package/docs/ARCHITECTURE.md +0 -163
- package/docs/ROADMAP.md +0 -52
- package/docs/agents/arniko-plugin-spec.md +0 -123
- package/docs/agents/files-and-search.md +0 -87
- package/docs/agents/skill-security.md +0 -127
- package/docs/architecture/001-dependency-pinning.md +0 -37
- package/docs/architecture/002-mesh-security.md +0 -36
- package/docs/architecture/003-file-size-limits.md +0 -37
- package/docs/architecture/004-trust-levels.md +0 -40
- package/docs/audits/HY3-AUDIT-2026-04-25.md +0 -47
- package/docs/memory/architecture-efficiency.md +0 -114
- package/docs/memory/km-architecture.md +0 -116
- package/extensions/vscode/README.md +0 -67
- package/extensions/vscode/package.json +0 -105
- package/promo/assets/audio/dirgha-ambient-150s.m4a +0 -0
- package/promo/hyperframes.json +0 -9
- package/promo/index.html +0 -363
- package/promo/meta.json +0 -5
- package/scripts/gen-skill-md.mjs +0 -97
- package/scripts/preview-logos.mjs +0 -113
- package/scripts/qa-app/aliases_test.mjs +0 -70
- package/scripts/qa-app/audit_test.mjs +0 -71
- package/scripts/qa-app/browser_test.mjs +0 -60
- package/scripts/qa-app/cancel_offline_test.mjs +0 -151
- package/scripts/qa-app/cancel_test.mjs +0 -112
- package/scripts/qa-app/checkpoint_test.mjs +0 -87
- package/scripts/qa-app/compaction_test.mjs +0 -112
- package/scripts/qa-app/cost_test.mjs +0 -72
- package/scripts/qa-app/error_classifier_test.mjs +0 -81
- package/scripts/qa-app/extensions_test.mjs +0 -148
- package/scripts/qa-app/git_state_test.mjs +0 -89
- package/scripts/qa-app/hooks_test.mjs +0 -105
- package/scripts/qa-app/ink_smoke.py +0 -151
- package/scripts/qa-app/ink_unit_test.mjs +0 -176
- package/scripts/qa-app/kb_test.mjs +0 -85
- package/scripts/qa-app/kernel_hooks_test.mjs +0 -178
- package/scripts/qa-app/keypool_test.mjs +0 -105
- package/scripts/qa-app/keys_test.mjs +0 -73
- package/scripts/qa-app/ledger_search_test.mjs +0 -74
- package/scripts/qa-app/ledger_test.mjs +0 -73
- package/scripts/qa-app/login_byok_test.mjs +0 -84
- package/scripts/qa-app/mcp_oauth_test.mjs +0 -109
- package/scripts/qa-app/mcp_test.mjs +0 -129
- package/scripts/qa-app/mode_enforcement_test.mjs +0 -88
- package/scripts/qa-app/models_refresh_test.mjs +0 -155
- package/scripts/qa-app/nim_stream_test.mjs +0 -132
- package/scripts/qa-app/output/admin-secrets.json +0 -17
- package/scripts/qa-app/output/admin-secrets.png +0 -0
- package/scripts/qa-app/output/agents.json +0 -17
- package/scripts/qa-app/output/agents.png +0 -0
- package/scripts/qa-app/output/build.json +0 -17
- package/scripts/qa-app/output/build.png +0 -0
- package/scripts/qa-app/output/chat.json +0 -17
- package/scripts/qa-app/output/chat.png +0 -0
- package/scripts/qa-app/output/deploy.json +0 -17
- package/scripts/qa-app/output/deploy.png +0 -0
- package/scripts/qa-app/output/home.json +0 -20
- package/scripts/qa-app/output/home.png +0 -0
- package/scripts/qa-app/output/media.json +0 -17
- package/scripts/qa-app/output/media.png +0 -0
- package/scripts/qa-app/output/memory.json +0 -17
- package/scripts/qa-app/output/memory.png +0 -0
- package/scripts/qa-app/output/models.json +0 -17
- package/scripts/qa-app/output/models.png +0 -0
- package/scripts/qa-app/output/report.json +0 -240
- package/scripts/qa-app/output/report.md +0 -307
- package/scripts/qa-app/output/research.json +0 -17
- package/scripts/qa-app/output/research.png +0 -0
- package/scripts/qa-app/output/security.json +0 -17
- package/scripts/qa-app/output/security.png +0 -0
- package/scripts/qa-app/output/settings.json +0 -17
- package/scripts/qa-app/output/settings.png +0 -0
- package/scripts/qa-app/output/skills.json +0 -17
- package/scripts/qa-app/output/skills.png +0 -0
- package/scripts/qa-app/output/store.json +0 -17
- package/scripts/qa-app/output/store.png +0 -0
- package/scripts/qa-app/primer_test.mjs +0 -71
- package/scripts/qa-app/provider_matrix.mjs +0 -176
- package/scripts/qa-app/qa.py +0 -271
- package/scripts/qa-app/rate_limit_test.mjs +0 -127
- package/scripts/qa-app/registry_test.mjs +0 -57
- package/scripts/qa-app/rescore.py +0 -87
- package/scripts/qa-app/routes.json +0 -20
- package/scripts/qa-app/run-all.mjs +0 -158
- package/scripts/qa-app/session_test.mjs +0 -81
- package/scripts/qa-app/skill_scanner_test.mjs +0 -156
- package/scripts/qa-app/skills_install_test.mjs +0 -100
- package/scripts/qa-app/skills_test.mjs +0 -98
- package/scripts/qa-app/slash_audit.mjs +0 -97
- package/scripts/qa-app/soul_test.mjs +0 -79
- package/scripts/qa-app/task_tool_test.mjs +0 -148
- package/scripts/qa-app/themes_test.mjs +0 -56
- package/scripts/qa-app/tmux_debug.sh +0 -37
- package/scripts/qa-app/tmux_minimal.sh +0 -66
- package/scripts/qa-app/tmux_smoke.sh +0 -119
- package/scripts/qa-app/tokrate_test.mjs +0 -108
- package/scripts/qa-app/tool_registry_test.mjs +0 -118
- package/scripts/qa-app/tools_smoke.mjs +0 -90
- package/scripts/qa-app/transport_test.mjs +0 -88
- package/scripts/qa-app/undo_test.mjs +0 -136
- package/scripts/qa-app/update_test.mjs +0 -94
- package/scripts/test-browser-integration.sh +0 -162
- package/scripts/verify-deps.sh +0 -19
- package/src_v2/README.md +0 -43
- package/src_v2/acp/index.ts +0 -1
- package/src_v2/acp/server.ts +0 -162
- package/src_v2/audit/writer.ts +0 -43
- package/src_v2/auth/keypool.ts +0 -216
- package/src_v2/auth/keystore.ts +0 -43
- package/src_v2/auth/providers.ts +0 -83
- package/src_v2/cli/auth-cmd.ts +0 -78
- package/src_v2/cli/config.ts +0 -130
- package/src_v2/cli/flags.ts +0 -75
- package/src_v2/cli/flows/full-cycle.ts +0 -72
- package/src_v2/cli/flows/index.ts +0 -2
- package/src_v2/cli/flows/tarball.ts +0 -55
- package/src_v2/cli/index.ts +0 -4
- package/src_v2/cli/interactive.ts +0 -307
- package/src_v2/cli/main.ts +0 -486
- package/src_v2/cli/models-cmd.ts +0 -62
- package/src_v2/cli/setup.ts +0 -143
- package/src_v2/cli/slash/account.ts +0 -62
- package/src_v2/cli/slash/clear.ts +0 -17
- package/src_v2/cli/slash/compact.ts +0 -15
- package/src_v2/cli/slash/config.ts +0 -53
- package/src_v2/cli/slash/exit.ts +0 -18
- package/src_v2/cli/slash/fleet.ts +0 -52
- package/src_v2/cli/slash/help.ts +0 -35
- package/src_v2/cli/slash/history.ts +0 -41
- package/src_v2/cli/slash/index.ts +0 -79
- package/src_v2/cli/slash/init.ts +0 -62
- package/src_v2/cli/slash/keys.ts +0 -102
- package/src_v2/cli/slash/login.ts +0 -55
- package/src_v2/cli/slash/memory.ts +0 -102
- package/src_v2/cli/slash/mode.ts +0 -32
- package/src_v2/cli/slash/models.ts +0 -79
- package/src_v2/cli/slash/resume.ts +0 -26
- package/src_v2/cli/slash/session.ts +0 -73
- package/src_v2/cli/slash/setup.ts +0 -48
- package/src_v2/cli/slash/status.ts +0 -38
- package/src_v2/cli/slash/theme.ts +0 -54
- package/src_v2/cli/slash/types.ts +0 -16
- package/src_v2/cli/slash/upgrade.ts +0 -73
- package/src_v2/cli/slash.ts +0 -128
- package/src_v2/cli/subcommands/ask.ts +0 -83
- package/src_v2/cli/subcommands/audit-codebase.ts +0 -161
- package/src_v2/cli/subcommands/audit.ts +0 -152
- package/src_v2/cli/subcommands/chat.ts +0 -72
- package/src_v2/cli/subcommands/compact.ts +0 -110
- package/src_v2/cli/subcommands/cost.ts +0 -157
- package/src_v2/cli/subcommands/doctor.ts +0 -121
- package/src_v2/cli/subcommands/export-session.ts +0 -63
- package/src_v2/cli/subcommands/import-session.ts +0 -87
- package/src_v2/cli/subcommands/index.ts +0 -99
- package/src_v2/cli/subcommands/init.ts +0 -78
- package/src_v2/cli/subcommands/kb.ts +0 -151
- package/src_v2/cli/subcommands/keys.ts +0 -197
- package/src_v2/cli/subcommands/ledger.ts +0 -118
- package/src_v2/cli/subcommands/login.ts +0 -149
- package/src_v2/cli/subcommands/logout.ts +0 -24
- package/src_v2/cli/subcommands/memory.ts +0 -124
- package/src_v2/cli/subcommands/models.ts +0 -210
- package/src_v2/cli/subcommands/resume.ts +0 -142
- package/src_v2/cli/subcommands/setup.ts +0 -111
- package/src_v2/cli/subcommands/skills.ts +0 -190
- package/src_v2/cli/subcommands/stats.ts +0 -151
- package/src_v2/cli/subcommands/status.ts +0 -101
- package/src_v2/cli/subcommands/undo.ts +0 -139
- package/src_v2/cli/subcommands/update.ts +0 -219
- package/src_v2/cli/subcommands/verify.ts +0 -147
- package/src_v2/cli/submit-paper.ts +0 -94
- package/src_v2/context/_fts.ts +0 -251
- package/src_v2/context/branch.ts +0 -86
- package/src_v2/context/compaction.ts +0 -199
- package/src_v2/context/default-soul.md +0 -36
- package/src_v2/context/git-state.ts +0 -78
- package/src_v2/context/index.ts +0 -5
- package/src_v2/context/knowledge.ts +0 -181
- package/src_v2/context/ledger.ts +0 -197
- package/src_v2/context/memory.ts +0 -337
- package/src_v2/context/mode-enforcement.ts +0 -87
- package/src_v2/context/mode.ts +0 -97
- package/src_v2/context/primer.ts +0 -88
- package/src_v2/context/session.ts +0 -115
- package/src_v2/context/soul.ts +0 -72
- package/src_v2/daemon/index.ts +0 -2
- package/src_v2/daemon/protocol.ts +0 -62
- package/src_v2/daemon/server.ts +0 -228
- package/src_v2/eval/index.ts +0 -5
- package/src_v2/eval/regression.ts +0 -116
- package/src_v2/eval/reporter.ts +0 -35
- package/src_v2/eval/swe-bench.ts +0 -32
- package/src_v2/eval/terminal-bench.ts +0 -27
- package/src_v2/eval/types.ts +0 -31
- package/src_v2/extensions/api.ts +0 -144
- package/src_v2/fleet/apply-back.ts +0 -210
- package/src_v2/fleet/cli-command.ts +0 -423
- package/src_v2/fleet/index.ts +0 -37
- package/src_v2/fleet/runner.ts +0 -412
- package/src_v2/fleet/tripleshot.ts +0 -282
- package/src_v2/fleet/types.ts +0 -210
- package/src_v2/fleet/worktree.ts +0 -189
- package/src_v2/hooks/config-bridge.ts +0 -116
- package/src_v2/hooks/index.ts +0 -1
- package/src_v2/hooks/registry.ts +0 -57
- package/src_v2/index.ts +0 -51
- package/src_v2/integrations/arniko-client.ts +0 -108
- package/src_v2/integrations/auth.ts +0 -90
- package/src_v2/integrations/billing.ts +0 -184
- package/src_v2/integrations/bucky-client.ts +0 -93
- package/src_v2/integrations/deploy-client.ts +0 -113
- package/src_v2/integrations/device-auth.ts +0 -224
- package/src_v2/integrations/entitlements.ts +0 -80
- package/src_v2/integrations/http.ts +0 -111
- package/src_v2/integrations/index.ts +0 -17
- package/src_v2/intelligence/cost.ts +0 -80
- package/src_v2/intelligence/error-classifier.ts +0 -76
- package/src_v2/intelligence/index.ts +0 -5
- package/src_v2/intelligence/models-refresh.ts +0 -105
- package/src_v2/intelligence/prices.ts +0 -292
- package/src_v2/intelligence/smart-router.ts +0 -75
- package/src_v2/intelligence/telemetry.ts +0 -50
- package/src_v2/kernel/agent-loop.ts +0 -207
- package/src_v2/kernel/event-stream.ts +0 -122
- package/src_v2/kernel/index.ts +0 -4
- package/src_v2/kernel/message.ts +0 -130
- package/src_v2/kernel/types.ts +0 -175
- package/src_v2/mcp/client.ts +0 -132
- package/src_v2/mcp/index.ts +0 -3
- package/src_v2/mcp/loader.ts +0 -76
- package/src_v2/mcp/tool-bridge.ts +0 -42
- package/src_v2/mcp/transport.ts +0 -217
- package/src_v2/parity/index.ts +0 -3
- package/src_v2/parity/mock-openai-compat.ts +0 -49
- package/src_v2/parity/runner.ts +0 -95
- package/src_v2/parity/scenarios.ts +0 -85
- package/src_v2/providers/anthropic.ts +0 -196
- package/src_v2/providers/define-openai-compat.ts +0 -107
- package/src_v2/providers/dispatch.ts +0 -65
- package/src_v2/providers/fireworks.ts +0 -51
- package/src_v2/providers/gemini.ts +0 -184
- package/src_v2/providers/http.ts +0 -201
- package/src_v2/providers/iface.ts +0 -31
- package/src_v2/providers/index.ts +0 -63
- package/src_v2/providers/nvidia.ts +0 -170
- package/src_v2/providers/ollama.ts +0 -45
- package/src_v2/providers/openai-compat.ts +0 -313
- package/src_v2/providers/openai.ts +0 -124
- package/src_v2/providers/openrouter.ts +0 -83
- package/src_v2/providers/presets.ts +0 -90
- package/src_v2/providers/rate-limiter.ts +0 -103
- package/src_v2/safety/approval-bus.ts +0 -65
- package/src_v2/safety/audit-log.ts +0 -100
- package/src_v2/safety/index.ts +0 -4
- package/src_v2/safety/policy.ts +0 -150
- package/src_v2/safety/sandbox/bwrap.ts +0 -51
- package/src_v2/safety/sandbox/iface.ts +0 -33
- package/src_v2/safety/sandbox/index.ts +0 -7
- package/src_v2/safety/sandbox/landlock.ts +0 -29
- package/src_v2/safety/sandbox/noop.ts +0 -60
- package/src_v2/safety/sandbox/seatbelt.ts +0 -53
- package/src_v2/safety/sandbox/select.ts +0 -37
- package/src_v2/safety/sandbox/windows.ts +0 -26
- package/src_v2/security/skill-scanner.ts +0 -167
- package/src_v2/skills/index.ts +0 -3
- package/src_v2/skills/loader.ts +0 -150
- package/src_v2/skills/matcher.ts +0 -66
- package/src_v2/skills/runtime.ts +0 -47
- package/src_v2/subagents/delegator.ts +0 -116
- package/src_v2/subagents/index.ts +0 -2
- package/src_v2/subagents/pool.ts +0 -41
- package/src_v2/tools/browser.ts +0 -249
- package/src_v2/tools/checkpoint.ts +0 -278
- package/src_v2/tools/cron.ts +0 -191
- package/src_v2/tools/diff.ts +0 -109
- package/src_v2/tools/exec.ts +0 -62
- package/src_v2/tools/fs-edit.ts +0 -96
- package/src_v2/tools/fs-ls.ts +0 -64
- package/src_v2/tools/fs-read.ts +0 -70
- package/src_v2/tools/fs-write.ts +0 -57
- package/src_v2/tools/git.ts +0 -78
- package/src_v2/tools/index.ts +0 -56
- package/src_v2/tools/multimodal.ts +0 -492
- package/src_v2/tools/permission.ts +0 -56
- package/src_v2/tools/registry.ts +0 -97
- package/src_v2/tools/search-glob.ts +0 -97
- package/src_v2/tools/search-grep.ts +0 -116
- package/src_v2/tools/shell.ts +0 -97
- package/src_v2/tools/task.ts +0 -49
- package/src_v2/tui/approval.ts +0 -57
- package/src_v2/tui/index.ts +0 -4
- package/src_v2/tui/ink/App.tsx +0 -439
- package/src_v2/tui/ink/components/AtFileComplete.tsx +0 -183
- package/src_v2/tui/ink/components/HelpOverlay.tsx +0 -181
- package/src_v2/tui/ink/components/InputBox.tsx +0 -199
- package/src_v2/tui/ink/components/Logo.tsx +0 -77
- package/src_v2/tui/ink/components/ModelPicker.tsx +0 -148
- package/src_v2/tui/ink/components/PasteCollapse.tsx +0 -98
- package/src_v2/tui/ink/components/StatusBar.tsx +0 -98
- package/src_v2/tui/ink/components/StreamingText.tsx +0 -30
- package/src_v2/tui/ink/components/ThinkingBlock.tsx +0 -39
- package/src_v2/tui/ink/components/ToolBox.tsx +0 -95
- package/src_v2/tui/ink/components/vim-bindings.ts +0 -150
- package/src_v2/tui/ink/index.ts +0 -69
- package/src_v2/tui/ink/use-event-projection.ts +0 -161
- package/src_v2/tui/ink/use-overlays.ts +0 -69
- package/src_v2/tui/renderer.ts +0 -112
- package/src_v2/tui/status-bar.ts +0 -25
- package/src_v2/tui/theme-loader.ts +0 -68
- package/src_v2/tui/theme.ts +0 -81
- package/src_v2/utils/json-repair.ts +0 -47
- package/tsconfig.tsbuildinfo +0 -1
- package/tsconfig.v2.json +0 -27
package/dist/index-agent.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* index-agent.ts — Agent mode entry point for Dirgha CLI.
|
|
3
|
-
* Usage: dirgha agent --json chat "How do I fix this?"
|
|
4
|
-
* dirgha agent --input task.json
|
|
5
|
-
*/
|
|
6
|
-
import { runAgentMode } from './agent/index.js';
|
|
7
|
-
const args = process.argv.slice(2);
|
|
8
|
-
runAgentMode(args).then(code => {
|
|
9
|
-
process.exit(code);
|
|
10
|
-
}).catch(err => {
|
|
11
|
-
console.error(JSON.stringify({
|
|
12
|
-
error: err instanceof Error ? err.message : 'Unknown error',
|
|
13
|
-
exitCode: 1
|
|
14
|
-
}));
|
|
15
|
-
process.exit(1);
|
|
16
|
-
});
|
|
17
|
-
//# sourceMappingURL=index-agent.js.map
|
package/dist/index.d.ts
DELETED
package/dist/index.js
DELETED
|
@@ -1,442 +0,0 @@
|
|
|
1
|
-
import { Command } from 'commander';
|
|
2
|
-
import chalk from 'chalk';
|
|
3
|
-
import fs from 'fs';
|
|
4
|
-
import path from 'path';
|
|
5
|
-
import os from 'os';
|
|
6
|
-
import { execCmd } from './utils/safe-exec.js';
|
|
7
|
-
import { redactSecrets } from './agent/secrets.js';
|
|
8
|
-
export { redactSecrets };
|
|
9
|
-
const _cliVersion = typeof __CLI_VERSION__ !== 'undefined' ? __CLI_VERSION__ : '0.0.0';
|
|
10
|
-
// Stores a pending update nudge message — set by background check below
|
|
11
|
-
let _updateNudge;
|
|
12
|
-
// ── Crash reporter — write uncaught errors to ~/.dirgha/crash.log ─────────────
|
|
13
|
-
function sanitizeCrashLog(text) {
|
|
14
|
-
const home = os.homedir();
|
|
15
|
-
// Replace home dir with $HOME so paths don't leak username / project names
|
|
16
|
-
return text
|
|
17
|
-
.split(home).join('$HOME')
|
|
18
|
-
.replace(/\/Users\/[^/\s]+\//g, '$HOME/')
|
|
19
|
-
.replace(/\/home\/[^/\s]+\//g, '$HOME/')
|
|
20
|
-
.replace(/C:\\Users\\[^\\s]+\\/g, '%USERPROFILE%\\');
|
|
21
|
-
}
|
|
22
|
-
function writeCrashLog(err) {
|
|
23
|
-
try {
|
|
24
|
-
const dir = path.join(os.homedir(), '.dirgha');
|
|
25
|
-
fs.mkdirSync(dir, { recursive: true });
|
|
26
|
-
const ts = new Date().toISOString();
|
|
27
|
-
const raw = err instanceof Error
|
|
28
|
-
? `${err.message}\n${err.stack ?? ''}`
|
|
29
|
-
: String(err);
|
|
30
|
-
const msg = sanitizeCrashLog(redactSecrets(raw));
|
|
31
|
-
fs.appendFileSync(path.join(dir, 'crash.log'), `\n[${ts}]\n${msg}\n`, { mode: 0o600 });
|
|
32
|
-
}
|
|
33
|
-
catch { /* ignore secondary failure */ }
|
|
34
|
-
}
|
|
35
|
-
process.on('uncaughtException', (err) => {
|
|
36
|
-
writeCrashLog(err);
|
|
37
|
-
console.error(chalk.red(`\n✗ Unexpected error: ${err instanceof Error ? err.message : String(err)}`));
|
|
38
|
-
console.error(chalk.dim(' Details saved to ~/.dirgha/crash.log\n'));
|
|
39
|
-
process.exit(1);
|
|
40
|
-
});
|
|
41
|
-
process.on('unhandledRejection', (reason) => {
|
|
42
|
-
writeCrashLog(reason);
|
|
43
|
-
console.error(chalk.red(`\n✗ Unhandled rejection: ${reason instanceof Error ? reason.message : String(reason)}`));
|
|
44
|
-
console.error(chalk.dim(' Details saved to ~/.dirgha/crash.log\n'));
|
|
45
|
-
process.exit(1);
|
|
46
|
-
});
|
|
47
|
-
import { checkUpdateIntegrity } from './utils/update-verify.js';
|
|
48
|
-
import { authCommand } from './commands/auth.js';
|
|
49
|
-
import { initCommand } from './commands/init.js';
|
|
50
|
-
import { accountStatusCommand } from './commands/status.js';
|
|
51
|
-
import { registerCheckpointCommand, registerRollbackCommand } from './commands/checkpoint.js';
|
|
52
|
-
import { registerSprintCommand, registerRunCommand } from './commands/sprint.js';
|
|
53
|
-
import { registerSandboxConnectCommand } from './commands/sandbox-connect.js';
|
|
54
|
-
import { loadKeysIntoEnv } from './utils/keys.js';
|
|
55
|
-
import { profiler } from './utils/startup-profiler.js';
|
|
56
|
-
profiler.begin('load-keys');
|
|
57
|
-
// Load persisted API keys at startup — must run before any provider detection
|
|
58
|
-
loadKeysIntoEnv();
|
|
59
|
-
profiler.end();
|
|
60
|
-
// ── Background version check — registered later, only for TUI mode ────────────
|
|
61
|
-
function _scheduleVersionCheck() {
|
|
62
|
-
const t = setTimeout(() => {
|
|
63
|
-
try {
|
|
64
|
-
const raw = execCmd('npm', ['view', '@dirgha/code', 'version', '--json'], { timeout: 5000 });
|
|
65
|
-
const latest = raw.replace(/"/g, '').trim();
|
|
66
|
-
if (latest && latest !== _cliVersion) {
|
|
67
|
-
checkUpdateIntegrity()
|
|
68
|
-
.then(({ integrityOk }) => {
|
|
69
|
-
if (integrityOk) {
|
|
70
|
-
_updateNudge = chalk.dim(' Update available: ') + chalk.cyan(latest) + chalk.dim(' → run ') + chalk.white('dirgha update') + '\n';
|
|
71
|
-
}
|
|
72
|
-
else {
|
|
73
|
-
process.stderr.write(chalk.red('[dirgha] WARNING: Update integrity check failed — do not update until resolved\n'));
|
|
74
|
-
}
|
|
75
|
-
})
|
|
76
|
-
.catch(() => {
|
|
77
|
-
_updateNudge = chalk.dim(' Update available: ') + chalk.cyan(latest) + chalk.dim(' → run ') + chalk.white('dirgha update') + '\n';
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
catch { /* offline or npm error — silently ignore */ }
|
|
82
|
-
}, 0);
|
|
83
|
-
t.unref();
|
|
84
|
-
}
|
|
85
|
-
import { registerModelCommands } from './commands/models.js';
|
|
86
|
-
import { registerVoiceCommands } from './voice/commands.js';
|
|
87
|
-
import { chatCommand } from './commands/chat.js';
|
|
88
|
-
import { registerCurateCommand } from './commands/curate.js';
|
|
89
|
-
import { registerQueryCommand } from './commands/query.js';
|
|
90
|
-
import { registerSyncCommands } from './commands/sync.js';
|
|
91
|
-
import { registerProjectCommands } from './project-session/index.js';
|
|
92
|
-
import { registerUnifiedMemoryCommands } from './commands/unified-memory/index.js';
|
|
93
|
-
import { registerSwarmCommands } from './swarm/commands.js';
|
|
94
|
-
import { scanCommand } from './commands/scan/index.js';
|
|
95
|
-
import { mcpCommand } from './commands/mcp.js';
|
|
96
|
-
import { researchCommand } from './commands/research.js';
|
|
97
|
-
import { auditCommand } from './commands/audit.js';
|
|
98
|
-
import { statsCommand } from './commands/stats.js';
|
|
99
|
-
import { captureCommand, exportCommand } from './commands/capture.js';
|
|
100
|
-
import { doctorCommand } from './commands/doctor.js';
|
|
101
|
-
import { updateCommand } from './commands/update.js';
|
|
102
|
-
import { registerBuckyCommands } from './commands/bucky.js';
|
|
103
|
-
import supportCommand from './commands/support.js';
|
|
104
|
-
import { registerDAOCommands } from './commands/dao.js';
|
|
105
|
-
import { registerMakeCommands } from './commands/make.js';
|
|
106
|
-
import { registerCompactCommand } from './commands/compact.js';
|
|
107
|
-
import { registerJoinMeshCommand } from './commands/join-mesh.js';
|
|
108
|
-
import { registerMeshCommands } from './commands/mesh/index.js';
|
|
109
|
-
import { registerIfExperimental } from './utils/experimental.js';
|
|
110
|
-
import { registerAnalyticsCommands } from './commands/analytics.js';
|
|
111
|
-
import { registerBrowserIntegration } from './commands/browser-integration.js';
|
|
112
|
-
import { registerSmartExec } from './commands/smart-exec.js';
|
|
113
|
-
import { registerAskCommand } from './commands/ask.js';
|
|
114
|
-
import { registerHubCommands } from './hub/commands.js';
|
|
115
|
-
import { registerFleetCommands } from './fleet/commands.js';
|
|
116
|
-
import { installJsonCaptureIfEnabled } from './agent/output.js';
|
|
117
|
-
// ---------------------------------------------------------------------------
|
|
118
|
-
// Pre-parse: extract -e / --with-extension flags before routing
|
|
119
|
-
// ---------------------------------------------------------------------------
|
|
120
|
-
(function applyExtensionFlags() {
|
|
121
|
-
const raw = process.argv.slice(2);
|
|
122
|
-
const filtered = [];
|
|
123
|
-
for (let i = 0; i < raw.length; i++) {
|
|
124
|
-
if (raw[i] === '-e' || raw[i] === '--with-extension') {
|
|
125
|
-
const json = raw[++i];
|
|
126
|
-
if (!json)
|
|
127
|
-
continue;
|
|
128
|
-
try {
|
|
129
|
-
const cfg = JSON.parse(json);
|
|
130
|
-
import('./extensions/manager.js').then(({ addExtensionConfig }) => addExtensionConfig(cfg));
|
|
131
|
-
}
|
|
132
|
-
catch {
|
|
133
|
-
console.error(chalk.yellow(`[extensions] Invalid JSON for --with-extension: ${json}`));
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
else {
|
|
137
|
-
filtered.push(raw[i]);
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
// Rebuild argv so commander sees the cleaned args
|
|
141
|
-
process.argv = [process.argv[0], process.argv[1], ...filtered];
|
|
142
|
-
})();
|
|
143
|
-
// ---------------------------------------------------------------------------
|
|
144
|
-
// Entry: route to agent REPL or commander
|
|
145
|
-
// ---------------------------------------------------------------------------
|
|
146
|
-
const _args = process.argv.slice(2);
|
|
147
|
-
const SUBCOMMANDS = [
|
|
148
|
-
'init', 'status', 'setup', 'auth', 'login', 'logout', 'signup', 'chat', 'models', 'projects', 'session', 'run', 'keys',
|
|
149
|
-
'mcp', 'scan', 'curate', 'sync', 'query', 'eval', 'stats', 'capture', 'export', 'doctor', 'update',
|
|
150
|
-
'dao', 'make', 'bucky', 'voice', 'voice-config', 'checkpoint', 'rollback', 'swarm', 'compact', 'mesh',
|
|
151
|
-
'insights', 'project', 'browser', 'goto', 'extract', 'pdf', 'research', 'audit', 'recipe',
|
|
152
|
-
// Unified memory commands (missing from list — caused them to route to TUI)
|
|
153
|
-
'remember', 'recall', 'session-start', 'session-end', 'session-status', 'memory-stats', 'ctx', 'context',
|
|
154
|
-
// Other missing commands
|
|
155
|
-
'sprint', 'connect', 'jobs', 'bounties', 'coming-soon', 'smart-exec',
|
|
156
|
-
// Headless agent mode
|
|
157
|
-
'ask',
|
|
158
|
-
// CLI-Hub plugin system
|
|
159
|
-
'hub',
|
|
160
|
-
// Parallel multi-agent
|
|
161
|
-
'fleet',
|
|
162
|
-
// Meta/tooling
|
|
163
|
-
'__dump_spec', 'eval',
|
|
164
|
-
'--help', '-h', '--version', '-V',
|
|
165
|
-
];
|
|
166
|
-
// Extract --resume / --session <id> before checking subcommands
|
|
167
|
-
let _resumeSessionId;
|
|
168
|
-
let _maxBudgetUsd;
|
|
169
|
-
const _filteredArgs = [];
|
|
170
|
-
for (let i = 0; i < _args.length; i++) {
|
|
171
|
-
if (_args[i] === '--resume') {
|
|
172
|
-
if (_args[i + 1] && !_args[i + 1].startsWith('-')) {
|
|
173
|
-
_resumeSessionId = _args[++i];
|
|
174
|
-
}
|
|
175
|
-
else {
|
|
176
|
-
_resumeSessionId = '__last__';
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
else if (_args[i] === '--session' && _args[i + 1]) {
|
|
180
|
-
_resumeSessionId = _args[++i];
|
|
181
|
-
}
|
|
182
|
-
else if ((_args[i] === '--max-budget' || _args[i] === '--budget') && _args[i + 1]) {
|
|
183
|
-
_maxBudgetUsd = parseFloat(_args[++i]);
|
|
184
|
-
}
|
|
185
|
-
else if (_args[i] === '--debug') {
|
|
186
|
-
process.env['DIRGHA_DEBUG'] = '1';
|
|
187
|
-
}
|
|
188
|
-
else if (_args[i] === '--profile') {
|
|
189
|
-
process.env['DIRGHA_PROFILE'] = '1';
|
|
190
|
-
}
|
|
191
|
-
else if (_args[i] === '--dangerously-skip-permissions' || _args[i] === '--yolo') {
|
|
192
|
-
process.env['DIRGHA_SKIP_PERMISSIONS'] = '1';
|
|
193
|
-
process.env['DIRGHA_YOLO'] = '1';
|
|
194
|
-
}
|
|
195
|
-
else if (_args[i] === '--json') {
|
|
196
|
-
// Global flag: strip from arg list, set env so any command can read it
|
|
197
|
-
process.env['DIRGHA_JSON_OUTPUT'] = '1';
|
|
198
|
-
}
|
|
199
|
-
else {
|
|
200
|
-
_filteredArgs.push(_args[i]);
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
if (_resumeSessionId === '__last__') {
|
|
204
|
-
_resumeSessionId = undefined;
|
|
205
|
-
}
|
|
206
|
-
const _firstArg = _filteredArgs[0] ?? '';
|
|
207
|
-
const _isSubcommand = SUBCOMMANDS.includes(_firstArg);
|
|
208
|
-
if (_filteredArgs.length === 0 || !_isSubcommand) {
|
|
209
|
-
// Launch Ink TUI — background version check only needed in interactive sessions
|
|
210
|
-
_scheduleVersionCheck();
|
|
211
|
-
const _prompt = _filteredArgs.length > 0 ? _filteredArgs.join(' ') : undefined;
|
|
212
|
-
if (_updateNudge)
|
|
213
|
-
process.stdout.write(_updateNudge);
|
|
214
|
-
import('./tui/index.js').then(m => m.startTUI(_prompt, _resumeSessionId, _maxBudgetUsd)).catch((e) => {
|
|
215
|
-
console.error(chalk.red(`\n✗ ${e instanceof Error ? e.message : String(e)}\n`));
|
|
216
|
-
process.exit(1);
|
|
217
|
-
});
|
|
218
|
-
}
|
|
219
|
-
else {
|
|
220
|
-
// ---------------------------------------------------------------------------
|
|
221
|
-
// Commander subcommands (only reached when isSubcommand = true)
|
|
222
|
-
// ---------------------------------------------------------------------------
|
|
223
|
-
const program = new Command();
|
|
224
|
-
program
|
|
225
|
-
.name('dirgha')
|
|
226
|
-
.description('Dirgha Code — AI coding agent by dirgha.ai')
|
|
227
|
-
.version(_cliVersion, '-V, --version')
|
|
228
|
-
.option('--json', 'Emit machine-readable JSON output where supported (CLI-Anything compliance)')
|
|
229
|
-
.hook('preAction', (thisCmd, actionCmd) => {
|
|
230
|
-
if (_updateNudge)
|
|
231
|
-
process.stdout.write(_updateNudge);
|
|
232
|
-
const rootOpts = thisCmd.optsWithGlobals?.() ?? thisCmd.opts();
|
|
233
|
-
if (rootOpts.json)
|
|
234
|
-
process.env['DIRGHA_JSON_OUTPUT'] = '1';
|
|
235
|
-
// Universal --json wrapper: works for every command, even those that
|
|
236
|
-
// don't use the emit() helper. Commands that emit natively can skip
|
|
237
|
-
// by setting globalThis.__DIRGHA_JSON_NATIVELY_EMITTED__ = true.
|
|
238
|
-
installJsonCaptureIfEnabled(actionCmd.name());
|
|
239
|
-
});
|
|
240
|
-
program
|
|
241
|
-
.command('login')
|
|
242
|
-
.description('Sign in to Dirgha (device flow) or set a token (--token)')
|
|
243
|
-
.option('--token <token>', 'Use an API token from dirgha.ai/dashboard (headless)')
|
|
244
|
-
.option('--email <email>', 'Email to save with the token')
|
|
245
|
-
.option('--user-id <id>', 'User ID to save with the token')
|
|
246
|
-
.option('--browser', 'Auto-open the sign-in URL in your default browser')
|
|
247
|
-
.action(async (opts) => {
|
|
248
|
-
const { loginCommand } = await import('./commands/login.js');
|
|
249
|
-
await loginCommand(opts);
|
|
250
|
-
});
|
|
251
|
-
program
|
|
252
|
-
.command('signup')
|
|
253
|
-
.description('Create a new Dirgha account (opens browser)')
|
|
254
|
-
.action(async () => {
|
|
255
|
-
const { registerLoginCommand } = await import('./commands/login.js');
|
|
256
|
-
// registerLoginCommand also wires `signup`; run it via a throwaway commander.
|
|
257
|
-
const { Command } = await import('commander');
|
|
258
|
-
const p = new Command();
|
|
259
|
-
registerLoginCommand(p);
|
|
260
|
-
const sub = p.commands.find((c) => c.name() === 'signup');
|
|
261
|
-
if (sub)
|
|
262
|
-
await sub._actionHandler([{}, p]);
|
|
263
|
-
});
|
|
264
|
-
program
|
|
265
|
-
.command('logout')
|
|
266
|
-
.description('Clear saved credentials')
|
|
267
|
-
.action(async () => {
|
|
268
|
-
const { clearCredentials, isLoggedIn } = await import('./utils/credentials.js');
|
|
269
|
-
if (!isLoggedIn()) {
|
|
270
|
-
console.log(chalk.dim('\n Not logged in.\n'));
|
|
271
|
-
return;
|
|
272
|
-
}
|
|
273
|
-
clearCredentials();
|
|
274
|
-
console.log(chalk.green('\n ✓ Logged out. Credentials cleared.\n'));
|
|
275
|
-
});
|
|
276
|
-
program
|
|
277
|
-
.command('setup')
|
|
278
|
-
.description('Interactive setup wizard for account, preferences, and platforms')
|
|
279
|
-
.action(async () => {
|
|
280
|
-
const { setupCommand } = await import('./commands/setup.js');
|
|
281
|
-
await setupCommand();
|
|
282
|
-
});
|
|
283
|
-
program
|
|
284
|
-
.command('init')
|
|
285
|
-
.description('Initialise project context in the current directory')
|
|
286
|
-
.option('--force', 'Re-initialise even if already set up')
|
|
287
|
-
.option('--verbose', 'Show key files after scan')
|
|
288
|
-
.action(async (opts) => {
|
|
289
|
-
await initCommand({ force: opts.force, verbose: opts.verbose });
|
|
290
|
-
});
|
|
291
|
-
program
|
|
292
|
-
.command('status')
|
|
293
|
-
.description('Show account, quota, sessions, and project status')
|
|
294
|
-
.action(async () => {
|
|
295
|
-
await accountStatusCommand();
|
|
296
|
-
});
|
|
297
|
-
program
|
|
298
|
-
.command('auth')
|
|
299
|
-
.description('Configure auth (legacy BYOK — use "dirgha login" for v2)')
|
|
300
|
-
.action(async () => {
|
|
301
|
-
await authCommand();
|
|
302
|
-
});
|
|
303
|
-
program
|
|
304
|
-
.command('keys')
|
|
305
|
-
.description('Manage saved API keys (~/.dirgha/keys.json)')
|
|
306
|
-
.argument('[action]', 'list | set <KEY> <value> | delete <KEY>', 'list')
|
|
307
|
-
.argument('[key]', 'Key name (e.g. FIREWORKS_API_KEY)')
|
|
308
|
-
.argument('[value]', 'Key value')
|
|
309
|
-
.action(async (action, key, value) => {
|
|
310
|
-
const { readKeys, setKey, deleteKey } = await import('./utils/keys.js');
|
|
311
|
-
if (action === 'set' || (!action && key && value)) {
|
|
312
|
-
const k = action === 'set' ? key : action;
|
|
313
|
-
const v = action === 'set' ? value : key;
|
|
314
|
-
if (!k || !v) {
|
|
315
|
-
console.error(chalk.red('Usage: dirgha keys set <KEY> <value>'));
|
|
316
|
-
process.exit(1);
|
|
317
|
-
}
|
|
318
|
-
const { setKey: sk } = await import('./utils/keys.js');
|
|
319
|
-
sk(k, v);
|
|
320
|
-
process.env[k] = v;
|
|
321
|
-
console.log(chalk.green(`✔ ${k} saved to ~/.dirgha/keys.json`));
|
|
322
|
-
}
|
|
323
|
-
else if (action === 'delete' && key) {
|
|
324
|
-
deleteKey(key);
|
|
325
|
-
console.log(chalk.green(`✔ ${key} removed`));
|
|
326
|
-
}
|
|
327
|
-
else {
|
|
328
|
-
// list
|
|
329
|
-
const keys = readKeys();
|
|
330
|
-
const entries = Object.entries(keys);
|
|
331
|
-
if (entries.length === 0) {
|
|
332
|
-
console.log(chalk.dim('\n No keys saved. Run: dirgha auth\n'));
|
|
333
|
-
return;
|
|
334
|
-
}
|
|
335
|
-
console.log(chalk.bold('\n Saved API keys (~/.dirgha/keys.json):\n'));
|
|
336
|
-
for (const [k, v] of entries) {
|
|
337
|
-
const masked = v.slice(0, 8) + '...' + v.slice(-4);
|
|
338
|
-
const active = process.env[k] ? chalk.green(' ✓') : chalk.dim(' (not loaded)');
|
|
339
|
-
console.log(` ${chalk.cyan(k.padEnd(28))} ${chalk.dim(masked)}${active}`);
|
|
340
|
-
}
|
|
341
|
-
console.log();
|
|
342
|
-
}
|
|
343
|
-
});
|
|
344
|
-
program
|
|
345
|
-
.command('chat')
|
|
346
|
-
.description('Plain chat (no tools)')
|
|
347
|
-
.option('-m, --model <model>', 'Override model')
|
|
348
|
-
.action(async (opts) => {
|
|
349
|
-
await chatCommand({ model: opts.model });
|
|
350
|
-
});
|
|
351
|
-
registerModelCommands(program);
|
|
352
|
-
registerCurateCommand(program); // Legacy: use 'remember' instead
|
|
353
|
-
registerQueryCommand(program); // Legacy: use 'recall' instead
|
|
354
|
-
registerSyncCommands(program);
|
|
355
|
-
registerProjectCommands(program);
|
|
356
|
-
registerUnifiedMemoryCommands(program); // New: remember, recall, session-*, context
|
|
357
|
-
registerIfExperimental('swarm', () => registerSwarmCommands(program));
|
|
358
|
-
registerIfExperimental('voice', () => registerVoiceCommands(program));
|
|
359
|
-
registerCheckpointCommand(program);
|
|
360
|
-
registerRollbackCommand(program);
|
|
361
|
-
registerSprintCommand(program);
|
|
362
|
-
registerRunCommand(program);
|
|
363
|
-
registerSandboxConnectCommand(program);
|
|
364
|
-
registerIfExperimental('dao', () => registerDAOCommands(program));
|
|
365
|
-
registerIfExperimental('make', () => registerMakeCommands(program));
|
|
366
|
-
registerBrowserIntegration(program); // Browser automation (navigate, click, type, snapshot, goto, extract, pdf)
|
|
367
|
-
program
|
|
368
|
-
.command('projects')
|
|
369
|
-
.description('Show recent projects')
|
|
370
|
-
.action(async () => {
|
|
371
|
-
const { listProjects } = await import('./utils/project-tracker.js');
|
|
372
|
-
const entries = listProjects();
|
|
373
|
-
if (entries.length === 0) {
|
|
374
|
-
console.log(chalk.dim('\n No recent projects.\n'));
|
|
375
|
-
return;
|
|
376
|
-
}
|
|
377
|
-
console.log(chalk.bold('\nRecent projects:\n'));
|
|
378
|
-
entries.forEach((e) => {
|
|
379
|
-
const date = new Date(e.lastAccessed).toISOString().split('T')[0];
|
|
380
|
-
const instr = e.lastInstruction.slice(0, 40).padEnd(40);
|
|
381
|
-
console.log(` ${chalk.cyan(e.dir.padEnd(32))} ${chalk.dim(date)} ${instr}`);
|
|
382
|
-
});
|
|
383
|
-
console.log();
|
|
384
|
-
});
|
|
385
|
-
program.addCommand(scanCommand);
|
|
386
|
-
program.addCommand(mcpCommand);
|
|
387
|
-
program.addCommand(researchCommand);
|
|
388
|
-
program.addCommand(auditCommand);
|
|
389
|
-
registerIfExperimental('bucky', () => registerBuckyCommands(program));
|
|
390
|
-
registerIfExperimental('join-mesh', () => registerJoinMeshCommand(program));
|
|
391
|
-
registerCompactCommand(program);
|
|
392
|
-
registerIfExperimental('mesh', () => registerMeshCommands(program));
|
|
393
|
-
registerAnalyticsCommands(program);
|
|
394
|
-
registerSmartExec(program);
|
|
395
|
-
registerAskCommand(program);
|
|
396
|
-
registerHubCommands(program);
|
|
397
|
-
registerFleetCommands(program);
|
|
398
|
-
// eval command removed in Sprint 3.2 — the in-tree evals/ harness was
|
|
399
|
-
// never run in CI and duplicated the tests/ directory's role. When a
|
|
400
|
-
// real eval suite returns, land it under src/experimental/evals/.
|
|
401
|
-
program
|
|
402
|
-
.command('stats')
|
|
403
|
-
.description('Show usage statistics (sessions, tokens, cost, tools)')
|
|
404
|
-
.action(() => { statsCommand(); });
|
|
405
|
-
program.addCommand(captureCommand);
|
|
406
|
-
program.addCommand(exportCommand);
|
|
407
|
-
program.addCommand(doctorCommand);
|
|
408
|
-
program.addCommand(updateCommand);
|
|
409
|
-
supportCommand(program);
|
|
410
|
-
// recipes/ was removed in Sprint 3.2 (never used by anyone). If a recipe
|
|
411
|
-
// runner returns, gate it behind DIRGHA_EXPERIMENTAL and keep the
|
|
412
|
-
// loader in src/experimental/recipes/.
|
|
413
|
-
// __dump_spec — introspect commander tree for auto-SKILL.md generation
|
|
414
|
-
if (_filteredArgs[0] === '__dump_spec') {
|
|
415
|
-
const walk = (c) => ({
|
|
416
|
-
name: c.name(),
|
|
417
|
-
description: c.description(),
|
|
418
|
-
args: (c.registeredArguments ?? []).map((a) => ({
|
|
419
|
-
name: a.name(),
|
|
420
|
-
required: a.required,
|
|
421
|
-
type: 'string',
|
|
422
|
-
})),
|
|
423
|
-
flags: (c.options ?? []).map((o) => ({
|
|
424
|
-
name: o.long?.replace(/^--/, '') ?? o.short?.replace(/^-/, ''),
|
|
425
|
-
short: o.short?.replace(/^-/, ''),
|
|
426
|
-
type: o.flags.includes('<') ? 'string' : o.flags.includes('[') ? 'string' : 'boolean',
|
|
427
|
-
description: o.description,
|
|
428
|
-
})),
|
|
429
|
-
subcommands: (c.commands ?? []).map(walk),
|
|
430
|
-
});
|
|
431
|
-
const spec = {
|
|
432
|
-
name: 'dirgha',
|
|
433
|
-
version: _cliVersion,
|
|
434
|
-
description: program.description(),
|
|
435
|
-
commands: program.commands.map(walk),
|
|
436
|
-
};
|
|
437
|
-
process.stdout.write(JSON.stringify(spec, null, 2));
|
|
438
|
-
process.exit(0);
|
|
439
|
-
}
|
|
440
|
-
program.parse(process.argv);
|
|
441
|
-
} // end isSubcommand branch
|
|
442
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface CompileResult {
|
|
2
|
-
compiled: number;
|
|
3
|
-
failed: number;
|
|
4
|
-
skipped: number;
|
|
5
|
-
articles: string[];
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Run the compiler: process all uncompiled raw documents.
|
|
9
|
-
* Triggered by /knowledge compile or automatically after ingestion.
|
|
10
|
-
*/
|
|
11
|
-
export declare function runCompiler(model: string, onProgress?: (msg: string) => void): Promise<CompileResult>;
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* knowledge/compiler.ts — Incremental knowledge compiler (PAL pattern).
|
|
3
|
-
*
|
|
4
|
-
* Processes raw/*.md docs marked compiled:false → wiki/concepts/*.md articles.
|
|
5
|
-
* Additive: never overwrites existing content, enriches it.
|
|
6
|
-
* Source-attributed: every article cites its origin raw doc.
|
|
7
|
-
*/
|
|
8
|
-
import { getUncompiled, markCompiled } from './raw.js';
|
|
9
|
-
import { getArticle, updateArticle, updateSummary, rebuildIndex } from './wiki.js';
|
|
10
|
-
import { runAgentLoop } from '../agent/loop.js';
|
|
11
|
-
import { commitWiki } from '../sync/wiki-git.js';
|
|
12
|
-
const COMPILE_PROMPT = (doc) => `You are a knowledge compiler. Convert this raw document into a structured wiki article.
|
|
13
|
-
|
|
14
|
-
Source: ${doc.source}
|
|
15
|
-
Title: ${doc.title}
|
|
16
|
-
Tags: ${doc.tags.join(', ')}
|
|
17
|
-
|
|
18
|
-
Content:
|
|
19
|
-
${doc.content.slice(0, 4000)}
|
|
20
|
-
|
|
21
|
-
Output a well-structured markdown article with:
|
|
22
|
-
1. A clear H1 title
|
|
23
|
-
2. A 1-2 sentence summary at the top
|
|
24
|
-
3. Sections with H2 headers for key concepts
|
|
25
|
-
4. A "## Source" section citing: "${doc.source}" (id: ${doc.id})
|
|
26
|
-
5. Cross-links to related topics (if you know them)
|
|
27
|
-
|
|
28
|
-
IMPORTANT: Output ONLY the markdown article, no preamble.`;
|
|
29
|
-
const SUMMARY_PROMPT = (articleContent) => `Write a 200-300 word summary of this knowledge article.
|
|
30
|
-
Focus on the key insights and when this knowledge should be applied.
|
|
31
|
-
Output ONLY the summary text, no preamble.
|
|
32
|
-
|
|
33
|
-
Article:
|
|
34
|
-
${articleContent.slice(0, 3000)}`;
|
|
35
|
-
function slugify(title) {
|
|
36
|
-
return title
|
|
37
|
-
.toLowerCase()
|
|
38
|
-
.replace(/[^a-z0-9\s-]/g, '')
|
|
39
|
-
.trim()
|
|
40
|
-
.replace(/\s+/g, '-')
|
|
41
|
-
.slice(0, 60);
|
|
42
|
-
}
|
|
43
|
-
/** Compile one raw document into a wiki article. */
|
|
44
|
-
async function compileDoc(doc, model, onText) {
|
|
45
|
-
let articleContent = '';
|
|
46
|
-
await runAgentLoop(COMPILE_PROMPT(doc), [], model, (t) => { articleContent += t; onText?.(t); }, () => { });
|
|
47
|
-
const slug = slugify(doc.title);
|
|
48
|
-
// If article exists, append new section rather than overwrite
|
|
49
|
-
const existing = getArticle(slug);
|
|
50
|
-
if (existing) {
|
|
51
|
-
const mergeNote = `\n\n---\n_Updated ${new Date().toISOString().slice(0, 10)} from source: ${doc.source}_\n`;
|
|
52
|
-
updateArticle(slug, existing + mergeNote + articleContent.slice(0, 500));
|
|
53
|
-
}
|
|
54
|
-
else {
|
|
55
|
-
updateArticle(slug, articleContent);
|
|
56
|
-
}
|
|
57
|
-
// Generate and store summary
|
|
58
|
-
let summaryContent = '';
|
|
59
|
-
await runAgentLoop(SUMMARY_PROMPT(articleContent), [], model, (t) => { summaryContent += t; }, () => { });
|
|
60
|
-
if (summaryContent.trim())
|
|
61
|
-
updateSummary(slug, summaryContent);
|
|
62
|
-
return slug;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Run the compiler: process all uncompiled raw documents.
|
|
66
|
-
* Triggered by /knowledge compile or automatically after ingestion.
|
|
67
|
-
*/
|
|
68
|
-
export async function runCompiler(model, onProgress) {
|
|
69
|
-
const uncompiled = getUncompiled();
|
|
70
|
-
const result = { compiled: 0, failed: 0, skipped: 0, articles: [] };
|
|
71
|
-
if (uncompiled.length === 0) {
|
|
72
|
-
onProgress?.(' Nothing to compile — all raw documents are up to date.');
|
|
73
|
-
return result;
|
|
74
|
-
}
|
|
75
|
-
onProgress?.(` Compiling ${uncompiled.length} documents…`);
|
|
76
|
-
for (const doc of uncompiled) {
|
|
77
|
-
try {
|
|
78
|
-
const slug = await compileDoc(doc, model);
|
|
79
|
-
markCompiled(doc.id);
|
|
80
|
-
result.compiled++;
|
|
81
|
-
result.articles.push(slug);
|
|
82
|
-
onProgress?.(` ✓ ${doc.title} → ${slug}`);
|
|
83
|
-
}
|
|
84
|
-
catch (err) {
|
|
85
|
-
result.failed++;
|
|
86
|
-
onProgress?.(` ✗ ${doc.title}: ${err.message.slice(0, 60)}`);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
// Rebuild index after compile
|
|
90
|
-
if (result.compiled > 0) {
|
|
91
|
-
rebuildIndex();
|
|
92
|
-
onProgress?.(` ✓ Index rebuilt (${result.articles.length} articles total)`);
|
|
93
|
-
// Git-commit compiled articles to wiki repo
|
|
94
|
-
const committed = commitWiki(`chore: compile ${result.compiled} article(s) — ${result.articles.slice(0, 3).join(', ')}`);
|
|
95
|
-
if (committed)
|
|
96
|
-
onProgress?.(` ✓ Wiki changes committed to git`);
|
|
97
|
-
}
|
|
98
|
-
return result;
|
|
99
|
-
}
|
|
100
|
-
//# sourceMappingURL=compiler.js.map
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* knowledge/git-sync.ts — Git-backed sync for the local wiki store.
|
|
3
|
-
*
|
|
4
|
-
* Usage (called by `dirgha sync --wiki`):
|
|
5
|
-
* syncWikiToGit() — commit staged changes, no push
|
|
6
|
-
* syncWikiToGit('origin') — commit + push to remote
|
|
7
|
-
*
|
|
8
|
-
* The wiki lives at ~/.dirgha/knowledge/wiki/ (WIKI_DIR from wiki.ts).
|
|
9
|
-
* Git repo is initialised on first call if not already present.
|
|
10
|
-
*/
|
|
11
|
-
import { execSync } from 'child_process';
|
|
12
|
-
import path from 'path';
|
|
13
|
-
import os from 'os';
|
|
14
|
-
const WIKI_DIR = path.join(os.homedir(), '.dirgha', 'knowledge', 'wiki');
|
|
15
|
-
function run(cmd) {
|
|
16
|
-
return execSync(cmd, { cwd: WIKI_DIR, stdio: 'pipe' }).toString().trim();
|
|
17
|
-
}
|
|
18
|
-
function isGitRepo() {
|
|
19
|
-
try {
|
|
20
|
-
run('git rev-parse --git-dir');
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
catch {
|
|
24
|
-
return false;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
function initRepo() {
|
|
28
|
-
execSync('git init', { cwd: WIKI_DIR, stdio: 'pipe' });
|
|
29
|
-
execSync('git add .', { cwd: WIKI_DIR, stdio: 'pipe' });
|
|
30
|
-
try {
|
|
31
|
-
execSync('git commit -m "wiki: initial commit"', { cwd: WIKI_DIR, stdio: 'pipe' });
|
|
32
|
-
}
|
|
33
|
-
catch {
|
|
34
|
-
// Nothing to commit on fresh init — ok
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
export async function syncWikiToGit(remote) {
|
|
38
|
-
// Ensure wiki dir exists
|
|
39
|
-
const fs = await import('fs');
|
|
40
|
-
if (!fs.existsSync(WIKI_DIR)) {
|
|
41
|
-
fs.mkdirSync(WIKI_DIR, { recursive: true });
|
|
42
|
-
}
|
|
43
|
-
if (!isGitRepo()) {
|
|
44
|
-
initRepo();
|
|
45
|
-
}
|
|
46
|
-
// Stage all changes
|
|
47
|
-
execSync('git add .', { cwd: WIKI_DIR, stdio: 'pipe' });
|
|
48
|
-
// Check if anything to commit
|
|
49
|
-
const status = run('git status --porcelain');
|
|
50
|
-
if (!status.trim()) {
|
|
51
|
-
return { committed: false, pushed: false, message: 'Nothing to sync — wiki is up to date' };
|
|
52
|
-
}
|
|
53
|
-
const fileCount = status.split('\n').filter(Boolean).length;
|
|
54
|
-
const timestamp = new Date().toISOString().slice(0, 16);
|
|
55
|
-
try {
|
|
56
|
-
execSync(`git commit -m "wiki: auto-sync ${timestamp}"`, { cwd: WIKI_DIR, stdio: 'pipe' });
|
|
57
|
-
}
|
|
58
|
-
catch (e) {
|
|
59
|
-
// Commit failed (e.g. no user identity configured) — set a default
|
|
60
|
-
execSync('git config user.email "dirgha-cli@local"', { cwd: WIKI_DIR, stdio: 'pipe' });
|
|
61
|
-
execSync('git config user.name "Dirgha CLI"', { cwd: WIKI_DIR, stdio: 'pipe' });
|
|
62
|
-
execSync(`git commit -m "wiki: auto-sync ${timestamp}"`, { cwd: WIKI_DIR, stdio: 'pipe' });
|
|
63
|
-
}
|
|
64
|
-
let pushed = false;
|
|
65
|
-
if (remote) {
|
|
66
|
-
// Determine current branch name
|
|
67
|
-
let branch = 'main';
|
|
68
|
-
try {
|
|
69
|
-
branch = run('git rev-parse --abbrev-ref HEAD');
|
|
70
|
-
}
|
|
71
|
-
catch { /* default */ }
|
|
72
|
-
execSync(`git push ${remote} ${branch} --force`, { cwd: WIKI_DIR, stdio: 'pipe' });
|
|
73
|
-
pushed = true;
|
|
74
|
-
}
|
|
75
|
-
return {
|
|
76
|
-
committed: true,
|
|
77
|
-
pushed,
|
|
78
|
-
message: `Synced ${fileCount} file${fileCount !== 1 ? 's' : ''}${pushed ? ` → ${remote}` : ''}`,
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
//# sourceMappingURL=git-sync.js.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export interface LintIssue {
|
|
2
|
-
check: string;
|
|
3
|
-
severity: 'error' | 'warning' | 'info';
|
|
4
|
-
slug: string;
|
|
5
|
-
message: string;
|
|
6
|
-
}
|
|
7
|
-
export declare function runLinter(): LintIssue[];
|
|
8
|
-
export declare function generateLintReport(issues: LintIssue[]): string;
|
|
9
|
-
export declare function writeLintReport(issues: LintIssue[]): void;
|