wotann 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/NOTICE +110 -0
- package/README.md +382 -0
- package/dist/acp/manifest.d.ts +160 -0
- package/dist/acp/manifest.d.ts.map +1 -0
- package/dist/acp/manifest.js +185 -0
- package/dist/acp/manifest.js.map +1 -0
- package/dist/acp/protocol.d.ts +533 -0
- package/dist/acp/protocol.d.ts.map +1 -0
- package/dist/acp/protocol.js +220 -0
- package/dist/acp/protocol.js.map +1 -0
- package/dist/acp/registry.d.ts +90 -0
- package/dist/acp/registry.d.ts.map +1 -0
- package/dist/acp/registry.js +297 -0
- package/dist/acp/registry.js.map +1 -0
- package/dist/acp/runtime-handlers.d.ts +58 -0
- package/dist/acp/runtime-handlers.d.ts.map +1 -0
- package/dist/acp/runtime-handlers.js +169 -0
- package/dist/acp/runtime-handlers.js.map +1 -0
- package/dist/acp/server.d.ts +184 -0
- package/dist/acp/server.d.ts.map +1 -0
- package/dist/acp/server.js +553 -0
- package/dist/acp/server.js.map +1 -0
- package/dist/acp/stdio.d.ts +57 -0
- package/dist/acp/stdio.d.ts.map +1 -0
- package/dist/acp/stdio.js +178 -0
- package/dist/acp/stdio.js.map +1 -0
- package/dist/acp/thread-handlers.d.ts +27 -0
- package/dist/acp/thread-handlers.d.ts.map +1 -0
- package/dist/acp/thread-handlers.js +94 -0
- package/dist/acp/thread-handlers.js.map +1 -0
- package/dist/agents/background-agent.d.ts +80 -0
- package/dist/agents/background-agent.d.ts.map +1 -0
- package/dist/agents/background-agent.js +329 -0
- package/dist/agents/background-agent.js.map +1 -0
- package/dist/agents/required-reading.d.ts +57 -0
- package/dist/agents/required-reading.d.ts.map +1 -0
- package/dist/agents/required-reading.js +118 -0
- package/dist/agents/required-reading.js.map +1 -0
- package/dist/api/anthropic-gateway.d.ts +195 -0
- package/dist/api/anthropic-gateway.d.ts.map +1 -0
- package/dist/api/anthropic-gateway.js +265 -0
- package/dist/api/anthropic-gateway.js.map +1 -0
- package/dist/api/server.d.ts +166 -0
- package/dist/api/server.d.ts.map +1 -0
- package/dist/api/server.js +413 -0
- package/dist/api/server.js.map +1 -0
- package/dist/api/sse-computer-session.d.ts +119 -0
- package/dist/api/sse-computer-session.d.ts.map +1 -0
- package/dist/api/sse-computer-session.js +220 -0
- package/dist/api/sse-computer-session.js.map +1 -0
- package/dist/api/ws-hardening.d.ts +76 -0
- package/dist/api/ws-hardening.d.ts.map +1 -0
- package/dist/api/ws-hardening.js +102 -0
- package/dist/api/ws-hardening.js.map +1 -0
- package/dist/auth/auth-mode.d.ts +111 -0
- package/dist/auth/auth-mode.d.ts.map +1 -0
- package/dist/auth/auth-mode.js +133 -0
- package/dist/auth/auth-mode.js.map +1 -0
- package/dist/auth/login.d.ts +72 -0
- package/dist/auth/login.d.ts.map +1 -0
- package/dist/auth/login.js +414 -0
- package/dist/auth/login.js.map +1 -0
- package/dist/auth/oauth-rotator.d.ts +60 -0
- package/dist/auth/oauth-rotator.d.ts.map +1 -0
- package/dist/auth/oauth-rotator.js +71 -0
- package/dist/auth/oauth-rotator.js.map +1 -0
- package/dist/auth/oauth-server.d.ts +88 -0
- package/dist/auth/oauth-server.d.ts.map +1 -0
- package/dist/auth/oauth-server.js +382 -0
- package/dist/auth/oauth-server.js.map +1 -0
- package/dist/auth/secure-store.d.ts +65 -0
- package/dist/auth/secure-store.d.ts.map +1 -0
- package/dist/auth/secure-store.js +235 -0
- package/dist/auth/secure-store.js.map +1 -0
- package/dist/automation/monitor-agents.d.ts +86 -0
- package/dist/automation/monitor-agents.d.ts.map +1 -0
- package/dist/automation/monitor-agents.js +210 -0
- package/dist/automation/monitor-agents.js.map +1 -0
- package/dist/automation/n8n-templates.d.ts +62 -0
- package/dist/automation/n8n-templates.d.ts.map +1 -0
- package/dist/automation/n8n-templates.js +164 -0
- package/dist/automation/n8n-templates.js.map +1 -0
- package/dist/automation/rss-parser.d.ts +26 -0
- package/dist/automation/rss-parser.d.ts.map +1 -0
- package/dist/automation/rss-parser.js +54 -0
- package/dist/automation/rss-parser.js.map +1 -0
- package/dist/autopilot/checkpoint.d.ts +116 -0
- package/dist/autopilot/checkpoint.d.ts.map +1 -0
- package/dist/autopilot/checkpoint.js +222 -0
- package/dist/autopilot/checkpoint.js.map +1 -0
- package/dist/autopilot/ci-feedback.d.ts +68 -0
- package/dist/autopilot/ci-feedback.d.ts.map +1 -0
- package/dist/autopilot/ci-feedback.js +207 -0
- package/dist/autopilot/ci-feedback.js.map +1 -0
- package/dist/autopilot/completion-oracle.d.ts +63 -0
- package/dist/autopilot/completion-oracle.d.ts.map +1 -0
- package/dist/autopilot/completion-oracle.js +280 -0
- package/dist/autopilot/completion-oracle.js.map +1 -0
- package/dist/autopilot/oracle-worker.d.ts +102 -0
- package/dist/autopilot/oracle-worker.d.ts.map +1 -0
- package/dist/autopilot/oracle-worker.js +232 -0
- package/dist/autopilot/oracle-worker.js.map +1 -0
- package/dist/autopilot/pr-artifacts.d.ts +73 -0
- package/dist/autopilot/pr-artifacts.d.ts.map +1 -0
- package/dist/autopilot/pr-artifacts.js +308 -0
- package/dist/autopilot/pr-artifacts.js.map +1 -0
- package/dist/autopilot/trajectory-recorder.d.ts +86 -0
- package/dist/autopilot/trajectory-recorder.d.ts.map +1 -0
- package/dist/autopilot/trajectory-recorder.js +181 -0
- package/dist/autopilot/trajectory-recorder.js.map +1 -0
- package/dist/autopilot/types.d.ts +60 -0
- package/dist/autopilot/types.d.ts.map +1 -0
- package/dist/autopilot/types.js +14 -0
- package/dist/autopilot/types.js.map +1 -0
- package/dist/browser/agentic-browser.d.ts +291 -0
- package/dist/browser/agentic-browser.d.ts.map +1 -0
- package/dist/browser/agentic-browser.js +595 -0
- package/dist/browser/agentic-browser.js.map +1 -0
- package/dist/browser/annotation-bridge.d.ts +116 -0
- package/dist/browser/annotation-bridge.d.ts.map +1 -0
- package/dist/browser/annotation-bridge.js +156 -0
- package/dist/browser/annotation-bridge.js.map +1 -0
- package/dist/browser/atomic-actions.d.ts +130 -0
- package/dist/browser/atomic-actions.d.ts.map +1 -0
- package/dist/browser/atomic-actions.js +178 -0
- package/dist/browser/atomic-actions.js.map +1 -0
- package/dist/browser/browser-tools.d.ts +86 -0
- package/dist/browser/browser-tools.d.ts.map +1 -0
- package/dist/browser/browser-tools.js +329 -0
- package/dist/browser/browser-tools.js.map +1 -0
- package/dist/browser/camoufox-backend.d.ts +166 -0
- package/dist/browser/camoufox-backend.d.ts.map +1 -0
- package/dist/browser/camoufox-backend.js +500 -0
- package/dist/browser/camoufox-backend.js.map +1 -0
- package/dist/browser/chrome-bridge.d.ts +183 -0
- package/dist/browser/chrome-bridge.d.ts.map +1 -0
- package/dist/browser/chrome-bridge.js +607 -0
- package/dist/browser/chrome-bridge.js.map +1 -0
- package/dist/browser/tab-registry.d.ts +103 -0
- package/dist/browser/tab-registry.d.ts.map +1 -0
- package/dist/browser/tab-registry.js +191 -0
- package/dist/browser/tab-registry.js.map +1 -0
- package/dist/build/auth-provisioner.d.ts +55 -0
- package/dist/build/auth-provisioner.d.ts.map +1 -0
- package/dist/build/auth-provisioner.js +207 -0
- package/dist/build/auth-provisioner.js.map +1 -0
- package/dist/build/db-provisioner.d.ts +63 -0
- package/dist/build/db-provisioner.d.ts.map +1 -0
- package/dist/build/db-provisioner.js +254 -0
- package/dist/build/db-provisioner.js.map +1 -0
- package/dist/build/deploy-adapter.d.ts +72 -0
- package/dist/build/deploy-adapter.d.ts.map +1 -0
- package/dist/build/deploy-adapter.js +273 -0
- package/dist/build/deploy-adapter.js.map +1 -0
- package/dist/build/deploy-targets/coolify.d.ts +148 -0
- package/dist/build/deploy-targets/coolify.d.ts.map +1 -0
- package/dist/build/deploy-targets/coolify.js +339 -0
- package/dist/build/deploy-targets/coolify.js.map +1 -0
- package/dist/build/deploy-targets/dokploy.d.ts +139 -0
- package/dist/build/deploy-targets/dokploy.d.ts.map +1 -0
- package/dist/build/deploy-targets/dokploy.js +339 -0
- package/dist/build/deploy-targets/dokploy.js.map +1 -0
- package/dist/build/scaffold-pack-materializer.d.ts +108 -0
- package/dist/build/scaffold-pack-materializer.d.ts.map +1 -0
- package/dist/build/scaffold-pack-materializer.js +235 -0
- package/dist/build/scaffold-pack-materializer.js.map +1 -0
- package/dist/build/scaffold-registry.d.ts +103 -0
- package/dist/build/scaffold-registry.d.ts.map +1 -0
- package/dist/build/scaffold-registry.js +279 -0
- package/dist/build/scaffold-registry.js.map +1 -0
- package/dist/channels/adapter.d.ts +94 -0
- package/dist/channels/adapter.d.ts.map +1 -0
- package/dist/channels/adapter.js +94 -0
- package/dist/channels/adapter.js.map +1 -0
- package/dist/channels/auto-detect.d.ts +165 -0
- package/dist/channels/auto-detect.d.ts.map +1 -0
- package/dist/channels/auto-detect.js +869 -0
- package/dist/channels/auto-detect.js.map +1 -0
- package/dist/channels/channel-types.d.ts +16 -0
- package/dist/channels/channel-types.d.ts.map +1 -0
- package/dist/channels/channel-types.js +15 -0
- package/dist/channels/channel-types.js.map +1 -0
- package/dist/channels/dingtalk.d.ts +65 -0
- package/dist/channels/dingtalk.d.ts.map +1 -0
- package/dist/channels/dingtalk.js +158 -0
- package/dist/channels/dingtalk.js.map +1 -0
- package/dist/channels/discord.d.ts +58 -0
- package/dist/channels/discord.d.ts.map +1 -0
- package/dist/channels/discord.js +257 -0
- package/dist/channels/discord.js.map +1 -0
- package/dist/channels/dispatch.d.ts +109 -0
- package/dist/channels/dispatch.d.ts.map +1 -0
- package/dist/channels/dispatch.js +266 -0
- package/dist/channels/dispatch.js.map +1 -0
- package/dist/channels/email.d.ts +42 -0
- package/dist/channels/email.d.ts.map +1 -0
- package/dist/channels/email.js +166 -0
- package/dist/channels/email.js.map +1 -0
- package/dist/channels/fan-out.d.ts +112 -0
- package/dist/channels/fan-out.d.ts.map +1 -0
- package/dist/channels/fan-out.js +202 -0
- package/dist/channels/fan-out.js.map +1 -0
- package/dist/channels/feishu.d.ts +85 -0
- package/dist/channels/feishu.d.ts.map +1 -0
- package/dist/channels/feishu.js +215 -0
- package/dist/channels/feishu.js.map +1 -0
- package/dist/channels/gateway.d.ts +207 -0
- package/dist/channels/gateway.d.ts.map +1 -0
- package/dist/channels/gateway.js +379 -0
- package/dist/channels/gateway.js.map +1 -0
- package/dist/channels/github-bot.d.ts +94 -0
- package/dist/channels/github-bot.d.ts.map +1 -0
- package/dist/channels/github-bot.js +318 -0
- package/dist/channels/github-bot.js.map +1 -0
- package/dist/channels/google-chat.d.ts +40 -0
- package/dist/channels/google-chat.d.ts.map +1 -0
- package/dist/channels/google-chat.js +84 -0
- package/dist/channels/google-chat.js.map +1 -0
- package/dist/channels/ide-bridge.d.ts +77 -0
- package/dist/channels/ide-bridge.d.ts.map +1 -0
- package/dist/channels/ide-bridge.js +316 -0
- package/dist/channels/ide-bridge.js.map +1 -0
- package/dist/channels/imessage-gateway-adapter.d.ts +25 -0
- package/dist/channels/imessage-gateway-adapter.d.ts.map +1 -0
- package/dist/channels/imessage-gateway-adapter.js +57 -0
- package/dist/channels/imessage-gateway-adapter.js.map +1 -0
- package/dist/channels/imessage.d.ts +45 -0
- package/dist/channels/imessage.d.ts.map +1 -0
- package/dist/channels/imessage.js +140 -0
- package/dist/channels/imessage.js.map +1 -0
- package/dist/channels/integration.d.ts +16 -0
- package/dist/channels/integration.d.ts.map +1 -0
- package/dist/channels/integration.js +79 -0
- package/dist/channels/integration.js.map +1 -0
- package/dist/channels/irc.d.ts +58 -0
- package/dist/channels/irc.d.ts.map +1 -0
- package/dist/channels/irc.js +188 -0
- package/dist/channels/irc.js.map +1 -0
- package/dist/channels/line.d.ts +75 -0
- package/dist/channels/line.d.ts.map +1 -0
- package/dist/channels/line.js +226 -0
- package/dist/channels/line.js.map +1 -0
- package/dist/channels/mastodon.d.ts +82 -0
- package/dist/channels/mastodon.d.ts.map +1 -0
- package/dist/channels/mastodon.js +217 -0
- package/dist/channels/mastodon.js.map +1 -0
- package/dist/channels/matrix.d.ts +36 -0
- package/dist/channels/matrix.d.ts.map +1 -0
- package/dist/channels/matrix.js +161 -0
- package/dist/channels/matrix.js.map +1 -0
- package/dist/channels/push-inversion.d.ts +63 -0
- package/dist/channels/push-inversion.d.ts.map +1 -0
- package/dist/channels/push-inversion.js +167 -0
- package/dist/channels/push-inversion.js.map +1 -0
- package/dist/channels/route-policies.d.ts +144 -0
- package/dist/channels/route-policies.d.ts.map +1 -0
- package/dist/channels/route-policies.js +374 -0
- package/dist/channels/route-policies.js.map +1 -0
- package/dist/channels/signal.d.ts +25 -0
- package/dist/channels/signal.d.ts.map +1 -0
- package/dist/channels/signal.js +109 -0
- package/dist/channels/signal.js.map +1 -0
- package/dist/channels/slack.d.ts +52 -0
- package/dist/channels/slack.d.ts.map +1 -0
- package/dist/channels/slack.js +194 -0
- package/dist/channels/slack.js.map +1 -0
- package/dist/channels/sms.d.ts +63 -0
- package/dist/channels/sms.d.ts.map +1 -0
- package/dist/channels/sms.js +151 -0
- package/dist/channels/sms.js.map +1 -0
- package/dist/channels/teams.d.ts +120 -0
- package/dist/channels/teams.d.ts.map +1 -0
- package/dist/channels/teams.js +263 -0
- package/dist/channels/teams.js.map +1 -0
- package/dist/channels/telegram.d.ts +55 -0
- package/dist/channels/telegram.d.ts.map +1 -0
- package/dist/channels/telegram.js +187 -0
- package/dist/channels/telegram.js.map +1 -0
- package/dist/channels/terminal-mention.d.ts +43 -0
- package/dist/channels/terminal-mention.d.ts.map +1 -0
- package/dist/channels/terminal-mention.js +86 -0
- package/dist/channels/terminal-mention.js.map +1 -0
- package/dist/channels/unified-dispatch.d.ts +190 -0
- package/dist/channels/unified-dispatch.d.ts.map +1 -0
- package/dist/channels/unified-dispatch.js +554 -0
- package/dist/channels/unified-dispatch.js.map +1 -0
- package/dist/channels/viber.d.ts +72 -0
- package/dist/channels/viber.d.ts.map +1 -0
- package/dist/channels/viber.js +185 -0
- package/dist/channels/viber.js.map +1 -0
- package/dist/channels/webchat.d.ts +44 -0
- package/dist/channels/webchat.d.ts.map +1 -0
- package/dist/channels/webchat.js +218 -0
- package/dist/channels/webchat.js.map +1 -0
- package/dist/channels/webhook-router.d.ts +155 -0
- package/dist/channels/webhook-router.d.ts.map +1 -0
- package/dist/channels/webhook-router.js +411 -0
- package/dist/channels/webhook-router.js.map +1 -0
- package/dist/channels/webhook.d.ts +28 -0
- package/dist/channels/webhook.d.ts.map +1 -0
- package/dist/channels/webhook.js +129 -0
- package/dist/channels/webhook.js.map +1 -0
- package/dist/channels/wechat.d.ts +68 -0
- package/dist/channels/wechat.d.ts.map +1 -0
- package/dist/channels/wechat.js +196 -0
- package/dist/channels/wechat.js.map +1 -0
- package/dist/channels/whatsapp.d.ts +74 -0
- package/dist/channels/whatsapp.d.ts.map +1 -0
- package/dist/channels/whatsapp.js +268 -0
- package/dist/channels/whatsapp.js.map +1 -0
- package/dist/claude/agents/definitions.d.ts +79 -0
- package/dist/claude/agents/definitions.d.ts.map +1 -0
- package/dist/claude/agents/definitions.js +196 -0
- package/dist/claude/agents/definitions.js.map +1 -0
- package/dist/claude/agents/index.d.ts +6 -0
- package/dist/claude/agents/index.d.ts.map +1 -0
- package/dist/claude/agents/index.js +5 -0
- package/dist/claude/agents/index.js.map +1 -0
- package/dist/claude/bridge-deps.d.ts +47 -0
- package/dist/claude/bridge-deps.d.ts.map +1 -0
- package/dist/claude/bridge-deps.js +251 -0
- package/dist/claude/bridge-deps.js.map +1 -0
- package/dist/claude/bridge.d.ts +65 -0
- package/dist/claude/bridge.d.ts.map +1 -0
- package/dist/claude/bridge.js +110 -0
- package/dist/claude/bridge.js.map +1 -0
- package/dist/claude/channels/index.d.ts +6 -0
- package/dist/claude/channels/index.d.ts.map +1 -0
- package/dist/claude/channels/index.js +5 -0
- package/dist/claude/channels/index.js.map +1 -0
- package/dist/claude/channels/wotann-channel.d.ts +103 -0
- package/dist/claude/channels/wotann-channel.d.ts.map +1 -0
- package/dist/claude/channels/wotann-channel.js +224 -0
- package/dist/claude/channels/wotann-channel.js.map +1 -0
- package/dist/claude/hardening/error-handler.d.ts +52 -0
- package/dist/claude/hardening/error-handler.d.ts.map +1 -0
- package/dist/claude/hardening/error-handler.js +158 -0
- package/dist/claude/hardening/error-handler.js.map +1 -0
- package/dist/claude/hardening/feature-flag.d.ts +36 -0
- package/dist/claude/hardening/feature-flag.d.ts.map +1 -0
- package/dist/claude/hardening/feature-flag.js +70 -0
- package/dist/claude/hardening/feature-flag.js.map +1 -0
- package/dist/claude/hardening/index.d.ts +8 -0
- package/dist/claude/hardening/index.d.ts.map +1 -0
- package/dist/claude/hardening/index.js +6 -0
- package/dist/claude/hardening/index.js.map +1 -0
- package/dist/claude/hardening/telemetry.d.ts +64 -0
- package/dist/claude/hardening/telemetry.d.ts.map +1 -0
- package/dist/claude/hardening/telemetry.js +129 -0
- package/dist/claude/hardening/telemetry.js.map +1 -0
- package/dist/claude/hooks/config-builder.d.ts +37 -0
- package/dist/claude/hooks/config-builder.d.ts.map +1 -0
- package/dist/claude/hooks/config-builder.js +55 -0
- package/dist/claude/hooks/config-builder.js.map +1 -0
- package/dist/claude/hooks/index.d.ts +19 -0
- package/dist/claude/hooks/index.d.ts.map +1 -0
- package/dist/claude/hooks/index.js +17 -0
- package/dist/claude/hooks/index.js.map +1 -0
- package/dist/claude/hooks/post-tool-use.d.ts +16 -0
- package/dist/claude/hooks/post-tool-use.d.ts.map +1 -0
- package/dist/claude/hooks/post-tool-use.js +91 -0
- package/dist/claude/hooks/post-tool-use.js.map +1 -0
- package/dist/claude/hooks/pre-compact.d.ts +14 -0
- package/dist/claude/hooks/pre-compact.d.ts.map +1 -0
- package/dist/claude/hooks/pre-compact.js +30 -0
- package/dist/claude/hooks/pre-compact.js.map +1 -0
- package/dist/claude/hooks/pre-tool-use.d.ts +24 -0
- package/dist/claude/hooks/pre-tool-use.d.ts.map +1 -0
- package/dist/claude/hooks/pre-tool-use.js +120 -0
- package/dist/claude/hooks/pre-tool-use.js.map +1 -0
- package/dist/claude/hooks/server.d.ts +67 -0
- package/dist/claude/hooks/server.d.ts.map +1 -0
- package/dist/claude/hooks/server.js +396 -0
- package/dist/claude/hooks/server.js.map +1 -0
- package/dist/claude/hooks/session-start.d.ts +20 -0
- package/dist/claude/hooks/session-start.d.ts.map +1 -0
- package/dist/claude/hooks/session-start.js +55 -0
- package/dist/claude/hooks/session-start.js.map +1 -0
- package/dist/claude/hooks/stop.d.ts +19 -0
- package/dist/claude/hooks/stop.d.ts.map +1 -0
- package/dist/claude/hooks/stop.js +57 -0
- package/dist/claude/hooks/stop.js.map +1 -0
- package/dist/claude/hooks/user-prompt-submit.d.ts +20 -0
- package/dist/claude/hooks/user-prompt-submit.d.ts.map +1 -0
- package/dist/claude/hooks/user-prompt-submit.js +59 -0
- package/dist/claude/hooks/user-prompt-submit.js.map +1 -0
- package/dist/claude/index.d.ts +30 -0
- package/dist/claude/index.d.ts.map +1 -0
- package/dist/claude/index.js +27 -0
- package/dist/claude/index.js.map +1 -0
- package/dist/claude/types.d.ts +206 -0
- package/dist/claude/types.d.ts.map +1 -0
- package/dist/claude/types.js +27 -0
- package/dist/claude/types.js.map +1 -0
- package/dist/cli/audit.d.ts +17 -0
- package/dist/cli/audit.d.ts.map +1 -0
- package/dist/cli/audit.js +54 -0
- package/dist/cli/audit.js.map +1 -0
- package/dist/cli/autofix-pr.d.ts +40 -0
- package/dist/cli/autofix-pr.d.ts.map +1 -0
- package/dist/cli/autofix-pr.js +199 -0
- package/dist/cli/autofix-pr.js.map +1 -0
- package/dist/cli/away-summary.d.ts +62 -0
- package/dist/cli/away-summary.d.ts.map +1 -0
- package/dist/cli/away-summary.js +141 -0
- package/dist/cli/away-summary.js.map +1 -0
- package/dist/cli/ci-runner.d.ts +52 -0
- package/dist/cli/ci-runner.d.ts.map +1 -0
- package/dist/cli/ci-runner.js +143 -0
- package/dist/cli/ci-runner.js.map +1 -0
- package/dist/cli/cli-detection.d.ts +41 -0
- package/dist/cli/cli-detection.d.ts.map +1 -0
- package/dist/cli/cli-detection.js +148 -0
- package/dist/cli/cli-detection.js.map +1 -0
- package/dist/cli/commands/acp-register.d.ts +73 -0
- package/dist/cli/commands/acp-register.d.ts.map +1 -0
- package/dist/cli/commands/acp-register.js +134 -0
- package/dist/cli/commands/acp-register.js.map +1 -0
- package/dist/cli/commands/best-of-n.d.ts +74 -0
- package/dist/cli/commands/best-of-n.d.ts.map +1 -0
- package/dist/cli/commands/best-of-n.js +144 -0
- package/dist/cli/commands/best-of-n.js.map +1 -0
- package/dist/cli/commands/browse.d.ts +46 -0
- package/dist/cli/commands/browse.d.ts.map +1 -0
- package/dist/cli/commands/browse.js +230 -0
- package/dist/cli/commands/browse.js.map +1 -0
- package/dist/cli/commands/build.d.ts +92 -0
- package/dist/cli/commands/build.d.ts.map +1 -0
- package/dist/cli/commands/build.js +238 -0
- package/dist/cli/commands/build.js.map +1 -0
- package/dist/cli/commands/deploy.d.ts +60 -0
- package/dist/cli/commands/deploy.d.ts.map +1 -0
- package/dist/cli/commands/deploy.js +107 -0
- package/dist/cli/commands/deploy.js.map +1 -0
- package/dist/cli/commands/design-apply.d.ts +81 -0
- package/dist/cli/commands/design-apply.d.ts.map +1 -0
- package/dist/cli/commands/design-apply.js +122 -0
- package/dist/cli/commands/design-apply.js.map +1 -0
- package/dist/cli/commands/design-export.d.ts +62 -0
- package/dist/cli/commands/design-export.d.ts.map +1 -0
- package/dist/cli/commands/design-export.js +88 -0
- package/dist/cli/commands/design-export.js.map +1 -0
- package/dist/cli/commands/design-extract.d.ts +40 -0
- package/dist/cli/commands/design-extract.d.ts.map +1 -0
- package/dist/cli/commands/design-extract.js +72 -0
- package/dist/cli/commands/design-extract.js.map +1 -0
- package/dist/cli/commands/design-lint.d.ts +49 -0
- package/dist/cli/commands/design-lint.d.ts.map +1 -0
- package/dist/cli/commands/design-lint.js +235 -0
- package/dist/cli/commands/design-lint.js.map +1 -0
- package/dist/cli/commands/design-mode.d.ts +50 -0
- package/dist/cli/commands/design-mode.d.ts.map +1 -0
- package/dist/cli/commands/design-mode.js +311 -0
- package/dist/cli/commands/design-mode.js.map +1 -0
- package/dist/cli/commands/design-preview.d.ts +69 -0
- package/dist/cli/commands/design-preview.d.ts.map +1 -0
- package/dist/cli/commands/design-preview.js +171 -0
- package/dist/cli/commands/design-preview.js.map +1 -0
- package/dist/cli/commands/design-verify.d.ts +59 -0
- package/dist/cli/commands/design-verify.d.ts.map +1 -0
- package/dist/cli/commands/design-verify.js +74 -0
- package/dist/cli/commands/design-verify.js.map +1 -0
- package/dist/cli/commands/exploit.d.ts +126 -0
- package/dist/cli/commands/exploit.d.ts.map +1 -0
- package/dist/cli/commands/exploit.js +298 -0
- package/dist/cli/commands/exploit.js.map +1 -0
- package/dist/cli/commands/grep.d.ts +92 -0
- package/dist/cli/commands/grep.d.ts.map +1 -0
- package/dist/cli/commands/grep.js +221 -0
- package/dist/cli/commands/grep.js.map +1 -0
- package/dist/cli/commands/intent.d.ts +43 -0
- package/dist/cli/commands/intent.d.ts.map +1 -0
- package/dist/cli/commands/intent.js +282 -0
- package/dist/cli/commands/intent.js.map +1 -0
- package/dist/cli/commands/magic.d.ts +41 -0
- package/dist/cli/commands/magic.d.ts.map +1 -0
- package/dist/cli/commands/magic.js +67 -0
- package/dist/cli/commands/magic.js.map +1 -0
- package/dist/cli/commands/multitask.d.ts +62 -0
- package/dist/cli/commands/multitask.d.ts.map +1 -0
- package/dist/cli/commands/multitask.js +111 -0
- package/dist/cli/commands/multitask.js.map +1 -0
- package/dist/cli/commands/onboard.d.ts +44 -0
- package/dist/cli/commands/onboard.d.ts.map +1 -0
- package/dist/cli/commands/onboard.js +112 -0
- package/dist/cli/commands/onboard.js.map +1 -0
- package/dist/cli/commands/review.d.ts +139 -0
- package/dist/cli/commands/review.d.ts.map +1 -0
- package/dist/cli/commands/review.js +364 -0
- package/dist/cli/commands/review.js.map +1 -0
- package/dist/cli/commands/rules.d.ts +140 -0
- package/dist/cli/commands/rules.d.ts.map +1 -0
- package/dist/cli/commands/rules.js +251 -0
- package/dist/cli/commands/rules.js.map +1 -0
- package/dist/cli/commands/sandbox.d.ts +64 -0
- package/dist/cli/commands/sandbox.d.ts.map +1 -0
- package/dist/cli/commands/sandbox.js +69 -0
- package/dist/cli/commands/sandbox.js.map +1 -0
- package/dist/cli/commands/sop.d.ts +70 -0
- package/dist/cli/commands/sop.d.ts.map +1 -0
- package/dist/cli/commands/sop.js +152 -0
- package/dist/cli/commands/sop.js.map +1 -0
- package/dist/cli/commands/stuck.d.ts +51 -0
- package/dist/cli/commands/stuck.d.ts.map +1 -0
- package/dist/cli/commands/stuck.js +249 -0
- package/dist/cli/commands/stuck.js.map +1 -0
- package/dist/cli/commands/worktree.d.ts +49 -0
- package/dist/cli/commands/worktree.d.ts.map +1 -0
- package/dist/cli/commands/worktree.js +153 -0
- package/dist/cli/commands/worktree.js.map +1 -0
- package/dist/cli/commands.d.ts +30 -0
- package/dist/cli/commands.d.ts.map +1 -0
- package/dist/cli/commands.js +446 -0
- package/dist/cli/commands.js.map +1 -0
- package/dist/cli/components/AuthModeBanner.d.ts +43 -0
- package/dist/cli/components/AuthModeBanner.d.ts.map +1 -0
- package/dist/cli/components/AuthModeBanner.js +25 -0
- package/dist/cli/components/AuthModeBanner.js.map +1 -0
- package/dist/cli/debug-share.d.ts +94 -0
- package/dist/cli/debug-share.d.ts.map +1 -0
- package/dist/cli/debug-share.js +227 -0
- package/dist/cli/debug-share.js.map +1 -0
- package/dist/cli/first-run-runner-factory.d.ts +99 -0
- package/dist/cli/first-run-runner-factory.d.ts.map +1 -0
- package/dist/cli/first-run-runner-factory.js +188 -0
- package/dist/cli/first-run-runner-factory.js.map +1 -0
- package/dist/cli/first-run-success.d.ts +123 -0
- package/dist/cli/first-run-success.d.ts.map +1 -0
- package/dist/cli/first-run-success.js +124 -0
- package/dist/cli/first-run-success.js.map +1 -0
- package/dist/cli/fork.d.ts +80 -0
- package/dist/cli/fork.d.ts.map +1 -0
- package/dist/cli/fork.js +127 -0
- package/dist/cli/fork.js.map +1 -0
- package/dist/cli/hooks-browser.d.ts +142 -0
- package/dist/cli/hooks-browser.d.ts.map +1 -0
- package/dist/cli/hooks-browser.js +238 -0
- package/dist/cli/hooks-browser.js.map +1 -0
- package/dist/cli/local-status.d.ts +11 -0
- package/dist/cli/local-status.d.ts.map +1 -0
- package/dist/cli/local-status.js +56 -0
- package/dist/cli/local-status.js.map +1 -0
- package/dist/cli/loop-command.d.ts +46 -0
- package/dist/cli/loop-command.d.ts.map +1 -0
- package/dist/cli/loop-command.js +123 -0
- package/dist/cli/loop-command.js.map +1 -0
- package/dist/cli/onboarding-screens/done-screen.d.ts +23 -0
- package/dist/cli/onboarding-screens/done-screen.d.ts.map +1 -0
- package/dist/cli/onboarding-screens/done-screen.js +10 -0
- package/dist/cli/onboarding-screens/done-screen.js.map +1 -0
- package/dist/cli/onboarding-screens/first-run-screen.d.ts +27 -0
- package/dist/cli/onboarding-screens/first-run-screen.d.ts.map +1 -0
- package/dist/cli/onboarding-screens/first-run-screen.js +62 -0
- package/dist/cli/onboarding-screens/first-run-screen.js.map +1 -0
- package/dist/cli/onboarding-screens.d.ts +227 -0
- package/dist/cli/onboarding-screens.d.ts.map +1 -0
- package/dist/cli/onboarding-screens.js +467 -0
- package/dist/cli/onboarding-screens.js.map +1 -0
- package/dist/cli/onboarding.d.ts +34 -0
- package/dist/cli/onboarding.d.ts.map +1 -0
- package/dist/cli/onboarding.js +150 -0
- package/dist/cli/onboarding.js.map +1 -0
- package/dist/cli/orphan-wires/anthropic-write-cmd.d.ts +21 -0
- package/dist/cli/orphan-wires/anthropic-write-cmd.d.ts.map +1 -0
- package/dist/cli/orphan-wires/anthropic-write-cmd.js +83 -0
- package/dist/cli/orphan-wires/anthropic-write-cmd.js.map +1 -0
- package/dist/cli/orphan-wires/archon-cmd.d.ts +11 -0
- package/dist/cli/orphan-wires/archon-cmd.d.ts.map +1 -0
- package/dist/cli/orphan-wires/archon-cmd.js +74 -0
- package/dist/cli/orphan-wires/archon-cmd.js.map +1 -0
- package/dist/cli/orphan-wires/cli-anything-cmd.d.ts +17 -0
- package/dist/cli/orphan-wires/cli-anything-cmd.d.ts.map +1 -0
- package/dist/cli/orphan-wires/cli-anything-cmd.js +39 -0
- package/dist/cli/orphan-wires/cli-anything-cmd.js.map +1 -0
- package/dist/cli/orphan-wires/dev-search-cmd.d.ts +10 -0
- package/dist/cli/orphan-wires/dev-search-cmd.d.ts.map +1 -0
- package/dist/cli/orphan-wires/dev-search-cmd.js +28 -0
- package/dist/cli/orphan-wires/dev-search-cmd.js.map +1 -0
- package/dist/cli/orphan-wires/effort-mode-cmd.d.ts +8 -0
- package/dist/cli/orphan-wires/effort-mode-cmd.d.ts.map +1 -0
- package/dist/cli/orphan-wires/effort-mode-cmd.js +40 -0
- package/dist/cli/orphan-wires/effort-mode-cmd.js.map +1 -0
- package/dist/cli/orphan-wires/flow-cmd.d.ts +9 -0
- package/dist/cli/orphan-wires/flow-cmd.d.ts.map +1 -0
- package/dist/cli/orphan-wires/flow-cmd.js +64 -0
- package/dist/cli/orphan-wires/flow-cmd.js.map +1 -0
- package/dist/cli/orphan-wires/handoff-cmd.d.ts +11 -0
- package/dist/cli/orphan-wires/handoff-cmd.d.ts.map +1 -0
- package/dist/cli/orphan-wires/handoff-cmd.js +48 -0
- package/dist/cli/orphan-wires/handoff-cmd.js.map +1 -0
- package/dist/cli/orphan-wires/index.d.ts +20 -0
- package/dist/cli/orphan-wires/index.d.ts.map +1 -0
- package/dist/cli/orphan-wires/index.js +61 -0
- package/dist/cli/orphan-wires/index.js.map +1 -0
- package/dist/cli/orphan-wires/markitdown-cmd.d.ts +10 -0
- package/dist/cli/orphan-wires/markitdown-cmd.d.ts.map +1 -0
- package/dist/cli/orphan-wires/markitdown-cmd.js +44 -0
- package/dist/cli/orphan-wires/markitdown-cmd.js.map +1 -0
- package/dist/cli/orphan-wires/multitask-cmd.d.ts +8 -0
- package/dist/cli/orphan-wires/multitask-cmd.d.ts.map +1 -0
- package/dist/cli/orphan-wires/multitask-cmd.js +43 -0
- package/dist/cli/orphan-wires/multitask-cmd.js.map +1 -0
- package/dist/cli/orphan-wires/n8n-template-cmd.d.ts +7 -0
- package/dist/cli/orphan-wires/n8n-template-cmd.d.ts.map +1 -0
- package/dist/cli/orphan-wires/n8n-template-cmd.js +81 -0
- package/dist/cli/orphan-wires/n8n-template-cmd.js.map +1 -0
- package/dist/cli/orphan-wires/onboard-cmd.d.ts +9 -0
- package/dist/cli/orphan-wires/onboard-cmd.d.ts.map +1 -0
- package/dist/cli/orphan-wires/onboard-cmd.js +60 -0
- package/dist/cli/orphan-wires/onboard-cmd.js.map +1 -0
- package/dist/cli/orphan-wires/outline-cmd.d.ts +8 -0
- package/dist/cli/orphan-wires/outline-cmd.d.ts.map +1 -0
- package/dist/cli/orphan-wires/outline-cmd.js +47 -0
- package/dist/cli/orphan-wires/outline-cmd.js.map +1 -0
- package/dist/cli/orphan-wires/private-mode-cmd.d.ts +8 -0
- package/dist/cli/orphan-wires/private-mode-cmd.d.ts.map +1 -0
- package/dist/cli/orphan-wires/private-mode-cmd.js +51 -0
- package/dist/cli/orphan-wires/private-mode-cmd.js.map +1 -0
- package/dist/cli/orphan-wires/prompt-corpus-cmd.d.ts +7 -0
- package/dist/cli/orphan-wires/prompt-corpus-cmd.d.ts.map +1 -0
- package/dist/cli/orphan-wires/prompt-corpus-cmd.js +32 -0
- package/dist/cli/orphan-wires/prompt-corpus-cmd.js.map +1 -0
- package/dist/cli/orphan-wires/prompt-files-cmd.d.ts +7 -0
- package/dist/cli/orphan-wires/prompt-files-cmd.d.ts.map +1 -0
- package/dist/cli/orphan-wires/prompt-files-cmd.js +58 -0
- package/dist/cli/orphan-wires/prompt-files-cmd.js.map +1 -0
- package/dist/cli/orphan-wires/promptfoo-assert-cmd.d.ts +19 -0
- package/dist/cli/orphan-wires/promptfoo-assert-cmd.d.ts.map +1 -0
- package/dist/cli/orphan-wires/promptfoo-assert-cmd.js +81 -0
- package/dist/cli/orphan-wires/promptfoo-assert-cmd.js.map +1 -0
- package/dist/cli/orphan-wires/proof-of-work-cmd.d.ts +25 -0
- package/dist/cli/orphan-wires/proof-of-work-cmd.d.ts.map +1 -0
- package/dist/cli/orphan-wires/proof-of-work-cmd.js +132 -0
- package/dist/cli/orphan-wires/proof-of-work-cmd.js.map +1 -0
- package/dist/cli/orphan-wires/redteam-cmd.d.ts +7 -0
- package/dist/cli/orphan-wires/redteam-cmd.d.ts.map +1 -0
- package/dist/cli/orphan-wires/redteam-cmd.js +26 -0
- package/dist/cli/orphan-wires/redteam-cmd.js.map +1 -0
- package/dist/cli/orphan-wires/skill-catalog-cmd.d.ts +22 -0
- package/dist/cli/orphan-wires/skill-catalog-cmd.d.ts.map +1 -0
- package/dist/cli/orphan-wires/skill-catalog-cmd.js +92 -0
- package/dist/cli/orphan-wires/skill-catalog-cmd.js.map +1 -0
- package/dist/cli/repl-mode.d.ts +62 -0
- package/dist/cli/repl-mode.d.ts.map +1 -0
- package/dist/cli/repl-mode.js +178 -0
- package/dist/cli/repl-mode.js.map +1 -0
- package/dist/cli/replay.d.ts +100 -0
- package/dist/cli/replay.d.ts.map +1 -0
- package/dist/cli/replay.js +147 -0
- package/dist/cli/replay.js.map +1 -0
- package/dist/cli/run-onboarding-wizard.d.ts +81 -0
- package/dist/cli/run-onboarding-wizard.d.ts.map +1 -0
- package/dist/cli/run-onboarding-wizard.js +182 -0
- package/dist/cli/run-onboarding-wizard.js.map +1 -0
- package/dist/cli/runtime-query.d.ts +24 -0
- package/dist/cli/runtime-query.d.ts.map +1 -0
- package/dist/cli/runtime-query.js +49 -0
- package/dist/cli/runtime-query.js.map +1 -0
- package/dist/cli/safety/read-only-gate.d.ts +86 -0
- package/dist/cli/safety/read-only-gate.d.ts.map +1 -0
- package/dist/cli/safety/read-only-gate.js +115 -0
- package/dist/cli/safety/read-only-gate.js.map +1 -0
- package/dist/cli/self-improve.d.ts +41 -0
- package/dist/cli/self-improve.d.ts.map +1 -0
- package/dist/cli/self-improve.js +140 -0
- package/dist/cli/self-improve.js.map +1 -0
- package/dist/cli/session-recap.d.ts +109 -0
- package/dist/cli/session-recap.d.ts.map +1 -0
- package/dist/cli/session-recap.js +176 -0
- package/dist/cli/session-recap.js.map +1 -0
- package/dist/cli/team-onboarding.d.ts +51 -0
- package/dist/cli/team-onboarding.d.ts.map +1 -0
- package/dist/cli/team-onboarding.js +326 -0
- package/dist/cli/team-onboarding.js.map +1 -0
- package/dist/cli/test-provider.d.ts +6 -0
- package/dist/cli/test-provider.d.ts.map +1 -0
- package/dist/cli/test-provider.js +100 -0
- package/dist/cli/test-provider.js.map +1 -0
- package/dist/cli/thin-client.d.ts +86 -0
- package/dist/cli/thin-client.d.ts.map +1 -0
- package/dist/cli/thin-client.js +237 -0
- package/dist/cli/thin-client.js.map +1 -0
- package/dist/cli/tricks/completion-checklist.d.ts +58 -0
- package/dist/cli/tricks/completion-checklist.d.ts.map +1 -0
- package/dist/cli/tricks/completion-checklist.js +121 -0
- package/dist/cli/tricks/completion-checklist.js.map +1 -0
- package/dist/cli/tricks/image-read.d.ts +45 -0
- package/dist/cli/tricks/image-read.d.ts.map +1 -0
- package/dist/cli/tricks/image-read.js +74 -0
- package/dist/cli/tricks/image-read.js.map +1 -0
- package/dist/cli/tricks/terminal-run.d.ts +73 -0
- package/dist/cli/tricks/terminal-run.d.ts.map +1 -0
- package/dist/cli/tricks/terminal-run.js +91 -0
- package/dist/cli/tricks/terminal-run.js.map +1 -0
- package/dist/cli/tricks/tmux-pull.d.ts +67 -0
- package/dist/cli/tricks/tmux-pull.d.ts.map +1 -0
- package/dist/cli/tricks/tmux-pull.js +77 -0
- package/dist/cli/tricks/tmux-pull.js.map +1 -0
- package/dist/cli/voice-cmds.d.ts +37 -0
- package/dist/cli/voice-cmds.d.ts.map +1 -0
- package/dist/cli/voice-cmds.js +83 -0
- package/dist/cli/voice-cmds.js.map +1 -0
- package/dist/cli/voice.d.ts +12 -0
- package/dist/cli/voice.d.ts.map +1 -0
- package/dist/cli/voice.js +15 -0
- package/dist/cli/voice.js.map +1 -0
- package/dist/cli/watch-mode.d.ts +64 -0
- package/dist/cli/watch-mode.d.ts.map +1 -0
- package/dist/cli/watch-mode.js +214 -0
- package/dist/cli/watch-mode.js.map +1 -0
- package/dist/computer-use/action-repertoire.d.ts +117 -0
- package/dist/computer-use/action-repertoire.d.ts.map +1 -0
- package/dist/computer-use/action-repertoire.js +214 -0
- package/dist/computer-use/action-repertoire.js.map +1 -0
- package/dist/computer-use/action-replay.d.ts +103 -0
- package/dist/computer-use/action-replay.d.ts.map +1 -0
- package/dist/computer-use/action-replay.js +160 -0
- package/dist/computer-use/action-replay.js.map +1 -0
- package/dist/computer-use/computer-agent.d.ts +124 -0
- package/dist/computer-use/computer-agent.d.ts.map +1 -0
- package/dist/computer-use/computer-agent.js +378 -0
- package/dist/computer-use/computer-agent.js.map +1 -0
- package/dist/computer-use/confidence-gate.d.ts +80 -0
- package/dist/computer-use/confidence-gate.d.ts.map +1 -0
- package/dist/computer-use/confidence-gate.js +111 -0
- package/dist/computer-use/confidence-gate.js.map +1 -0
- package/dist/computer-use/cursor-sprite.d.ts +103 -0
- package/dist/computer-use/cursor-sprite.d.ts.map +1 -0
- package/dist/computer-use/cursor-sprite.js +193 -0
- package/dist/computer-use/cursor-sprite.js.map +1 -0
- package/dist/computer-use/non-stealing-input.d.ts +79 -0
- package/dist/computer-use/non-stealing-input.d.ts.map +1 -0
- package/dist/computer-use/non-stealing-input.js +133 -0
- package/dist/computer-use/non-stealing-input.js.map +1 -0
- package/dist/computer-use/perception-adapter.d.ts +56 -0
- package/dist/computer-use/perception-adapter.d.ts.map +1 -0
- package/dist/computer-use/perception-adapter.js +216 -0
- package/dist/computer-use/perception-adapter.js.map +1 -0
- package/dist/computer-use/perception-engine.d.ts +203 -0
- package/dist/computer-use/perception-engine.d.ts.map +1 -0
- package/dist/computer-use/perception-engine.js +886 -0
- package/dist/computer-use/perception-engine.js.map +1 -0
- package/dist/computer-use/persistent-task-queue.d.ts +85 -0
- package/dist/computer-use/persistent-task-queue.d.ts.map +1 -0
- package/dist/computer-use/persistent-task-queue.js +182 -0
- package/dist/computer-use/persistent-task-queue.js.map +1 -0
- package/dist/computer-use/platform-bindings.d.ts +115 -0
- package/dist/computer-use/platform-bindings.d.ts.map +1 -0
- package/dist/computer-use/platform-bindings.js +783 -0
- package/dist/computer-use/platform-bindings.js.map +1 -0
- package/dist/computer-use/session-scoped-perception.d.ts +111 -0
- package/dist/computer-use/session-scoped-perception.d.ts.map +1 -0
- package/dist/computer-use/session-scoped-perception.js +262 -0
- package/dist/computer-use/session-scoped-perception.js.map +1 -0
- package/dist/computer-use/types.d.ts +157 -0
- package/dist/computer-use/types.d.ts.map +1 -0
- package/dist/computer-use/types.js +5 -0
- package/dist/computer-use/types.js.map +1 -0
- package/dist/computer-use/virtual-cursor-pool.d.ts +98 -0
- package/dist/computer-use/virtual-cursor-pool.d.ts.map +1 -0
- package/dist/computer-use/virtual-cursor-pool.js +231 -0
- package/dist/computer-use/virtual-cursor-pool.js.map +1 -0
- package/dist/computer-use/vm-isolation.d.ts +90 -0
- package/dist/computer-use/vm-isolation.d.ts.map +1 -0
- package/dist/computer-use/vm-isolation.js +140 -0
- package/dist/computer-use/vm-isolation.js.map +1 -0
- package/dist/connectors/confluence.d.ts +32 -0
- package/dist/connectors/confluence.d.ts.map +1 -0
- package/dist/connectors/confluence.js +132 -0
- package/dist/connectors/confluence.js.map +1 -0
- package/dist/connectors/connector-registry.d.ts +115 -0
- package/dist/connectors/connector-registry.d.ts.map +1 -0
- package/dist/connectors/connector-registry.js +166 -0
- package/dist/connectors/connector-registry.js.map +1 -0
- package/dist/connectors/connector-tools.d.ts +229 -0
- package/dist/connectors/connector-tools.d.ts.map +1 -0
- package/dist/connectors/connector-tools.js +778 -0
- package/dist/connectors/connector-tools.js.map +1 -0
- package/dist/connectors/connector-webhook-server.d.ts +138 -0
- package/dist/connectors/connector-webhook-server.d.ts.map +1 -0
- package/dist/connectors/connector-webhook-server.js +374 -0
- package/dist/connectors/connector-webhook-server.js.map +1 -0
- package/dist/connectors/connector-writes.d.ts +253 -0
- package/dist/connectors/connector-writes.d.ts.map +1 -0
- package/dist/connectors/connector-writes.js +1044 -0
- package/dist/connectors/connector-writes.js.map +1 -0
- package/dist/connectors/google-drive.d.ts +35 -0
- package/dist/connectors/google-drive.d.ts.map +1 -0
- package/dist/connectors/google-drive.js +222 -0
- package/dist/connectors/google-drive.js.map +1 -0
- package/dist/connectors/guarded-fetch.d.ts +23 -0
- package/dist/connectors/guarded-fetch.d.ts.map +1 -0
- package/dist/connectors/guarded-fetch.js +30 -0
- package/dist/connectors/guarded-fetch.js.map +1 -0
- package/dist/connectors/jira.d.ts +35 -0
- package/dist/connectors/jira.d.ts.map +1 -0
- package/dist/connectors/jira.js +220 -0
- package/dist/connectors/jira.js.map +1 -0
- package/dist/connectors/linear.d.ts +32 -0
- package/dist/connectors/linear.d.ts.map +1 -0
- package/dist/connectors/linear.js +232 -0
- package/dist/connectors/linear.js.map +1 -0
- package/dist/connectors/notion.d.ts +33 -0
- package/dist/connectors/notion.d.ts.map +1 -0
- package/dist/connectors/notion.js +244 -0
- package/dist/connectors/notion.js.map +1 -0
- package/dist/connectors/slack.d.ts +30 -0
- package/dist/connectors/slack.d.ts.map +1 -0
- package/dist/connectors/slack.js +127 -0
- package/dist/connectors/slack.js.map +1 -0
- package/dist/context/budget-estimator.d.ts +83 -0
- package/dist/context/budget-estimator.d.ts.map +1 -0
- package/dist/context/budget-estimator.js +236 -0
- package/dist/context/budget-estimator.js.map +1 -0
- package/dist/context/compaction.d.ts +64 -0
- package/dist/context/compaction.d.ts.map +1 -0
- package/dist/context/compaction.js +192 -0
- package/dist/context/compaction.js.map +1 -0
- package/dist/context/context-replay.d.ts +62 -0
- package/dist/context/context-replay.d.ts.map +1 -0
- package/dist/context/context-replay.js +220 -0
- package/dist/context/context-replay.js.map +1 -0
- package/dist/context/context-sharding.d.ts +113 -0
- package/dist/context/context-sharding.d.ts.map +1 -0
- package/dist/context/context-sharding.js +364 -0
- package/dist/context/context-sharding.js.map +1 -0
- package/dist/context/importance-compactor.d.ts +74 -0
- package/dist/context/importance-compactor.d.ts.map +1 -0
- package/dist/context/importance-compactor.js +111 -0
- package/dist/context/importance-compactor.js.map +1 -0
- package/dist/context/inspector.d.ts +86 -0
- package/dist/context/inspector.d.ts.map +1 -0
- package/dist/context/inspector.js +170 -0
- package/dist/context/inspector.js.map +1 -0
- package/dist/context/limits.d.ts +94 -0
- package/dist/context/limits.d.ts.map +1 -0
- package/dist/context/limits.js +640 -0
- package/dist/context/limits.js.map +1 -0
- package/dist/context/maximizer.d.ts +138 -0
- package/dist/context/maximizer.d.ts.map +1 -0
- package/dist/context/maximizer.js +334 -0
- package/dist/context/maximizer.js.map +1 -0
- package/dist/context/ollama-kv-compression.d.ts +85 -0
- package/dist/context/ollama-kv-compression.d.ts.map +1 -0
- package/dist/context/ollama-kv-compression.js +263 -0
- package/dist/context/ollama-kv-compression.js.map +1 -0
- package/dist/context/repo-map.d.ts +38 -0
- package/dist/context/repo-map.d.ts.map +1 -0
- package/dist/context/repo-map.js +277 -0
- package/dist/context/repo-map.js.map +1 -0
- package/dist/context/sleep-summarizer.d.ts +77 -0
- package/dist/context/sleep-summarizer.d.ts.map +1 -0
- package/dist/context/sleep-summarizer.js +161 -0
- package/dist/context/sleep-summarizer.js.map +1 -0
- package/dist/context/spaces.d.ts +53 -0
- package/dist/context/spaces.d.ts.map +1 -0
- package/dist/context/spaces.js +92 -0
- package/dist/context/spaces.js.map +1 -0
- package/dist/context/tiered-loader.d.ts +62 -0
- package/dist/context/tiered-loader.d.ts.map +1 -0
- package/dist/context/tiered-loader.js +453 -0
- package/dist/context/tiered-loader.js.map +1 -0
- package/dist/context/tool-arg-truncator.d.ts +69 -0
- package/dist/context/tool-arg-truncator.d.ts.map +1 -0
- package/dist/context/tool-arg-truncator.js +212 -0
- package/dist/context/tool-arg-truncator.js.map +1 -0
- package/dist/context/virtual-context.d.ts +89 -0
- package/dist/context/virtual-context.d.ts.map +1 -0
- package/dist/context/virtual-context.js +289 -0
- package/dist/context/virtual-context.js.map +1 -0
- package/dist/context/window-intelligence.d.ts +221 -0
- package/dist/context/window-intelligence.d.ts.map +1 -0
- package/dist/context/window-intelligence.js +485 -0
- package/dist/context/window-intelligence.js.map +1 -0
- package/dist/core/agent-bridge.d.ts +80 -0
- package/dist/core/agent-bridge.d.ts.map +1 -0
- package/dist/core/agent-bridge.js +473 -0
- package/dist/core/agent-bridge.js.map +1 -0
- package/dist/core/agent-profiles.d.ts +65 -0
- package/dist/core/agent-profiles.d.ts.map +1 -0
- package/dist/core/agent-profiles.js +137 -0
- package/dist/core/agent-profiles.js.map +1 -0
- package/dist/core/bootstrap-snapshot.d.ts +125 -0
- package/dist/core/bootstrap-snapshot.d.ts.map +1 -0
- package/dist/core/bootstrap-snapshot.js +513 -0
- package/dist/core/bootstrap-snapshot.js.map +1 -0
- package/dist/core/config-discovery.d.ts +103 -0
- package/dist/core/config-discovery.d.ts.map +1 -0
- package/dist/core/config-discovery.js +336 -0
- package/dist/core/config-discovery.js.map +1 -0
- package/dist/core/config-migration.d.ts +69 -0
- package/dist/core/config-migration.d.ts.map +1 -0
- package/dist/core/config-migration.js +185 -0
- package/dist/core/config-migration.js.map +1 -0
- package/dist/core/config.d.ts +22 -0
- package/dist/core/config.d.ts.map +1 -0
- package/dist/core/config.js +253 -0
- package/dist/core/config.js.map +1 -0
- package/dist/core/content-cid.d.ts +85 -0
- package/dist/core/content-cid.d.ts.map +1 -0
- package/dist/core/content-cid.js +135 -0
- package/dist/core/content-cid.js.map +1 -0
- package/dist/core/conversation-branching.d.ts +93 -0
- package/dist/core/conversation-branching.d.ts.map +1 -0
- package/dist/core/conversation-branching.js +215 -0
- package/dist/core/conversation-branching.js.map +1 -0
- package/dist/core/conversation-tree.d.ts +107 -0
- package/dist/core/conversation-tree.d.ts.map +1 -0
- package/dist/core/conversation-tree.js +211 -0
- package/dist/core/conversation-tree.js.map +1 -0
- package/dist/core/deep-link.d.ts +50 -0
- package/dist/core/deep-link.d.ts.map +1 -0
- package/dist/core/deep-link.js +212 -0
- package/dist/core/deep-link.js.map +1 -0
- package/dist/core/default-provider.d.ts +28 -0
- package/dist/core/default-provider.d.ts.map +1 -0
- package/dist/core/default-provider.js +90 -0
- package/dist/core/default-provider.js.map +1 -0
- package/dist/core/effort-mode.d.ts +81 -0
- package/dist/core/effort-mode.d.ts.map +1 -0
- package/dist/core/effort-mode.js +191 -0
- package/dist/core/effort-mode.js.map +1 -0
- package/dist/core/execution-modes.d.ts +103 -0
- package/dist/core/execution-modes.d.ts.map +1 -0
- package/dist/core/execution-modes.js +130 -0
- package/dist/core/execution-modes.js.map +1 -0
- package/dist/core/handoff.d.ts +184 -0
- package/dist/core/handoff.d.ts.map +1 -0
- package/dist/core/handoff.js +195 -0
- package/dist/core/handoff.js.map +1 -0
- package/dist/core/hardware-detect.d.ts +88 -0
- package/dist/core/hardware-detect.d.ts.map +1 -0
- package/dist/core/hardware-detect.js +182 -0
- package/dist/core/hardware-detect.js.map +1 -0
- package/dist/core/message-queue.d.ts +68 -0
- package/dist/core/message-queue.d.ts.map +1 -0
- package/dist/core/message-queue.js +96 -0
- package/dist/core/message-queue.js.map +1 -0
- package/dist/core/mode-cycling.d.ts +59 -0
- package/dist/core/mode-cycling.d.ts.map +1 -0
- package/dist/core/mode-cycling.js +259 -0
- package/dist/core/mode-cycling.js.map +1 -0
- package/dist/core/project-onboarding.d.ts +75 -0
- package/dist/core/project-onboarding.d.ts.map +1 -0
- package/dist/core/project-onboarding.js +307 -0
- package/dist/core/project-onboarding.js.map +1 -0
- package/dist/core/prompt-override.d.ts +77 -0
- package/dist/core/prompt-override.d.ts.map +1 -0
- package/dist/core/prompt-override.js +201 -0
- package/dist/core/prompt-override.js.map +1 -0
- package/dist/core/runtime/bound-tool-filter.d.ts +39 -0
- package/dist/core/runtime/bound-tool-filter.d.ts.map +1 -0
- package/dist/core/runtime/bound-tool-filter.js +50 -0
- package/dist/core/runtime/bound-tool-filter.js.map +1 -0
- package/dist/core/runtime/provider-gates.d.ts +145 -0
- package/dist/core/runtime/provider-gates.d.ts.map +1 -0
- package/dist/core/runtime/provider-gates.js +194 -0
- package/dist/core/runtime/provider-gates.js.map +1 -0
- package/dist/core/runtime-intelligence.d.ts +63 -0
- package/dist/core/runtime-intelligence.d.ts.map +1 -0
- package/dist/core/runtime-intelligence.js +301 -0
- package/dist/core/runtime-intelligence.js.map +1 -0
- package/dist/core/runtime-tool-dispatch.d.ts +271 -0
- package/dist/core/runtime-tool-dispatch.d.ts.map +1 -0
- package/dist/core/runtime-tool-dispatch.js +845 -0
- package/dist/core/runtime-tool-dispatch.js.map +1 -0
- package/dist/core/runtime-tools.d.ts +92 -0
- package/dist/core/runtime-tools.d.ts.map +1 -0
- package/dist/core/runtime-tools.js +520 -0
- package/dist/core/runtime-tools.js.map +1 -0
- package/dist/core/runtime.d.ts +1425 -0
- package/dist/core/runtime.d.ts.map +1 -0
- package/dist/core/runtime.js +6223 -0
- package/dist/core/runtime.js.map +1 -0
- package/dist/core/schema-migration.d.ts +92 -0
- package/dist/core/schema-migration.d.ts.map +1 -0
- package/dist/core/schema-migration.js +322 -0
- package/dist/core/schema-migration.js.map +1 -0
- package/dist/core/session-fork.d.ts +52 -0
- package/dist/core/session-fork.d.ts.map +1 -0
- package/dist/core/session-fork.js +147 -0
- package/dist/core/session-fork.js.map +1 -0
- package/dist/core/session-recap.d.ts +51 -0
- package/dist/core/session-recap.d.ts.map +1 -0
- package/dist/core/session-recap.js +157 -0
- package/dist/core/session-recap.js.map +1 -0
- package/dist/core/session-resume.d.ts +89 -0
- package/dist/core/session-resume.d.ts.map +1 -0
- package/dist/core/session-resume.js +181 -0
- package/dist/core/session-resume.js.map +1 -0
- package/dist/core/session.d.ts +42 -0
- package/dist/core/session.d.ts.map +1 -0
- package/dist/core/session.js +155 -0
- package/dist/core/session.js.map +1 -0
- package/dist/core/steering-server.d.ts +66 -0
- package/dist/core/steering-server.d.ts.map +1 -0
- package/dist/core/steering-server.js +206 -0
- package/dist/core/steering-server.js.map +1 -0
- package/dist/core/stream-resume.d.ts +66 -0
- package/dist/core/stream-resume.d.ts.map +1 -0
- package/dist/core/stream-resume.js +162 -0
- package/dist/core/stream-resume.js.map +1 -0
- package/dist/core/tool-path-extractor.d.ts +17 -0
- package/dist/core/tool-path-extractor.d.ts.map +1 -0
- package/dist/core/tool-path-extractor.js +26 -0
- package/dist/core/tool-path-extractor.js.map +1 -0
- package/dist/core/types.d.ts +203 -0
- package/dist/core/types.d.ts.map +1 -0
- package/dist/core/types.js +6 -0
- package/dist/core/types.js.map +1 -0
- package/dist/core/virtual-paths.d.ts +71 -0
- package/dist/core/virtual-paths.d.ts.map +1 -0
- package/dist/core/virtual-paths.js +157 -0
- package/dist/core/virtual-paths.js.map +1 -0
- package/dist/core/workspace.d.ts +20 -0
- package/dist/core/workspace.d.ts.map +1 -0
- package/dist/core/workspace.js +400 -0
- package/dist/core/workspace.js.map +1 -0
- package/dist/core/wotann-yml.d.ts +89 -0
- package/dist/core/wotann-yml.d.ts.map +1 -0
- package/dist/core/wotann-yml.js +328 -0
- package/dist/core/wotann-yml.js.map +1 -0
- package/dist/daemon/auto-update.d.ts +42 -0
- package/dist/daemon/auto-update.d.ts.map +1 -0
- package/dist/daemon/auto-update.js +167 -0
- package/dist/daemon/auto-update.js.map +1 -0
- package/dist/daemon/automations.d.ts +169 -0
- package/dist/daemon/automations.d.ts.map +1 -0
- package/dist/daemon/automations.js +571 -0
- package/dist/daemon/automations.js.map +1 -0
- package/dist/daemon/background-workers.d.ts +73 -0
- package/dist/daemon/background-workers.d.ts.map +1 -0
- package/dist/daemon/background-workers.js +529 -0
- package/dist/daemon/background-workers.js.map +1 -0
- package/dist/daemon/comment-watcher.d.ts +28 -0
- package/dist/daemon/comment-watcher.d.ts.map +1 -0
- package/dist/daemon/comment-watcher.js +81 -0
- package/dist/daemon/comment-watcher.js.map +1 -0
- package/dist/daemon/context-pressure.d.ts +31 -0
- package/dist/daemon/context-pressure.d.ts.map +1 -0
- package/dist/daemon/context-pressure.js +92 -0
- package/dist/daemon/context-pressure.js.map +1 -0
- package/dist/daemon/cron-store.d.ts +186 -0
- package/dist/daemon/cron-store.d.ts.map +1 -0
- package/dist/daemon/cron-store.js +464 -0
- package/dist/daemon/cron-store.js.map +1 -0
- package/dist/daemon/cron-utils.d.ts +35 -0
- package/dist/daemon/cron-utils.d.ts.map +1 -0
- package/dist/daemon/cron-utils.js +67 -0
- package/dist/daemon/cron-utils.js.map +1 -0
- package/dist/daemon/event-triggers.d.ts +106 -0
- package/dist/daemon/event-triggers.d.ts.map +1 -0
- package/dist/daemon/event-triggers.js +337 -0
- package/dist/daemon/event-triggers.js.map +1 -0
- package/dist/daemon/file-dep-graph.d.ts +45 -0
- package/dist/daemon/file-dep-graph.d.ts.map +1 -0
- package/dist/daemon/file-dep-graph.js +190 -0
- package/dist/daemon/file-dep-graph.js.map +1 -0
- package/dist/daemon/kairos-ipc.d.ts +175 -0
- package/dist/daemon/kairos-ipc.d.ts.map +1 -0
- package/dist/daemon/kairos-ipc.js +640 -0
- package/dist/daemon/kairos-ipc.js.map +1 -0
- package/dist/daemon/kairos-rpc.d.ts +389 -0
- package/dist/daemon/kairos-rpc.d.ts.map +1 -0
- package/dist/daemon/kairos-rpc.js +9893 -0
- package/dist/daemon/kairos-rpc.js.map +1 -0
- package/dist/daemon/kairos-tools.d.ts +91 -0
- package/dist/daemon/kairos-tools.d.ts.map +1 -0
- package/dist/daemon/kairos-tools.js +251 -0
- package/dist/daemon/kairos-tools.js.map +1 -0
- package/dist/daemon/kairos.d.ts +480 -0
- package/dist/daemon/kairos.d.ts.map +1 -0
- package/dist/daemon/kairos.js +3016 -0
- package/dist/daemon/kairos.js.map +1 -0
- package/dist/daemon/port-resolver.d.ts +42 -0
- package/dist/daemon/port-resolver.d.ts.map +1 -0
- package/dist/daemon/port-resolver.js +82 -0
- package/dist/daemon/port-resolver.js.map +1 -0
- package/dist/daemon/rpc-handlers/intelligence-rpc.d.ts +125 -0
- package/dist/daemon/rpc-handlers/intelligence-rpc.d.ts.map +1 -0
- package/dist/daemon/rpc-handlers/intelligence-rpc.js +265 -0
- package/dist/daemon/rpc-handlers/intelligence-rpc.js.map +1 -0
- package/dist/daemon/rpc-handlers/orchestration-rpc.d.ts +8 -0
- package/dist/daemon/rpc-handlers/orchestration-rpc.d.ts.map +1 -0
- package/dist/daemon/rpc-handlers/orchestration-rpc.js +258 -0
- package/dist/daemon/rpc-handlers/orchestration-rpc.js.map +1 -0
- package/dist/daemon/rpc-handlers/sandbox-rpc.d.ts +68 -0
- package/dist/daemon/rpc-handlers/sandbox-rpc.d.ts.map +1 -0
- package/dist/daemon/rpc-handlers/sandbox-rpc.js +119 -0
- package/dist/daemon/rpc-handlers/sandbox-rpc.js.map +1 -0
- package/dist/daemon/rpc-subscription.d.ts +177 -0
- package/dist/daemon/rpc-subscription.d.ts.map +1 -0
- package/dist/daemon/rpc-subscription.js +204 -0
- package/dist/daemon/rpc-subscription.js.map +1 -0
- package/dist/daemon/start.d.ts +9 -0
- package/dist/daemon/start.d.ts.map +1 -0
- package/dist/daemon/start.js +267 -0
- package/dist/daemon/start.js.map +1 -0
- package/dist/daemon/terminal-monitor.d.ts +29 -0
- package/dist/daemon/terminal-monitor.d.ts.map +1 -0
- package/dist/daemon/terminal-monitor.js +125 -0
- package/dist/daemon/terminal-monitor.js.map +1 -0
- package/dist/daemon/transport/index.d.ts +17 -0
- package/dist/daemon/transport/index.d.ts.map +1 -0
- package/dist/daemon/transport/index.js +17 -0
- package/dist/daemon/transport/index.js.map +1 -0
- package/dist/daemon/transport/replay-buffer.d.ts +148 -0
- package/dist/daemon/transport/replay-buffer.d.ts.map +1 -0
- package/dist/daemon/transport/replay-buffer.js +180 -0
- package/dist/daemon/transport/replay-buffer.js.map +1 -0
- package/dist/daemon/transport/replay-registry.d.ts +112 -0
- package/dist/daemon/transport/replay-registry.d.ts.map +1 -0
- package/dist/daemon/transport/replay-registry.js +137 -0
- package/dist/daemon/transport/replay-registry.js.map +1 -0
- package/dist/design/bundle-diff.d.ts +96 -0
- package/dist/design/bundle-diff.d.ts.map +1 -0
- package/dist/design/bundle-diff.js +300 -0
- package/dist/design/bundle-diff.js.map +1 -0
- package/dist/design/bundle-writer.d.ts +103 -0
- package/dist/design/bundle-writer.d.ts.map +1 -0
- package/dist/design/bundle-writer.js +157 -0
- package/dist/design/bundle-writer.js.map +1 -0
- package/dist/design/canvas-store.d.ts +84 -0
- package/dist/design/canvas-store.d.ts.map +1 -0
- package/dist/design/canvas-store.js +180 -0
- package/dist/design/canvas-store.js.map +1 -0
- package/dist/design/canvas-to-code.d.ts +56 -0
- package/dist/design/canvas-to-code.d.ts.map +1 -0
- package/dist/design/canvas-to-code.js +238 -0
- package/dist/design/canvas-to-code.js.map +1 -0
- package/dist/design/canvas.d.ts +160 -0
- package/dist/design/canvas.d.ts.map +1 -0
- package/dist/design/canvas.js +405 -0
- package/dist/design/canvas.js.map +1 -0
- package/dist/design/component-importer.d.ts +42 -0
- package/dist/design/component-importer.d.ts.map +1 -0
- package/dist/design/component-importer.js +229 -0
- package/dist/design/component-importer.js.map +1 -0
- package/dist/design/design-md-spec.d.ts +83 -0
- package/dist/design/design-md-spec.d.ts.map +1 -0
- package/dist/design/design-md-spec.js +210 -0
- package/dist/design/design-md-spec.js.map +1 -0
- package/dist/design/design-mode.d.ts +127 -0
- package/dist/design/design-mode.d.ts.map +1 -0
- package/dist/design/design-mode.js +235 -0
- package/dist/design/design-mode.js.map +1 -0
- package/dist/design/design-tokens-parser.d.ts +46 -0
- package/dist/design/design-tokens-parser.d.ts.map +1 -0
- package/dist/design/design-tokens-parser.js +183 -0
- package/dist/design/design-tokens-parser.js.map +1 -0
- package/dist/design/designmd-linter.d.ts +41 -0
- package/dist/design/designmd-linter.d.ts.map +1 -0
- package/dist/design/designmd-linter.js +232 -0
- package/dist/design/designmd-linter.js.map +1 -0
- package/dist/design/designmd-parser.d.ts +96 -0
- package/dist/design/designmd-parser.d.ts.map +1 -0
- package/dist/design/designmd-parser.js +254 -0
- package/dist/design/designmd-parser.js.map +1 -0
- package/dist/design/dtcg-emitter.d.ts +127 -0
- package/dist/design/dtcg-emitter.d.ts.map +1 -0
- package/dist/design/dtcg-emitter.js +225 -0
- package/dist/design/dtcg-emitter.js.map +1 -0
- package/dist/design/extractor.d.ts +150 -0
- package/dist/design/extractor.d.ts.map +1 -0
- package/dist/design/extractor.js +569 -0
- package/dist/design/extractor.js.map +1 -0
- package/dist/design/handoff-receiver.d.ts +65 -0
- package/dist/design/handoff-receiver.d.ts.map +1 -0
- package/dist/design/handoff-receiver.js +144 -0
- package/dist/design/handoff-receiver.js.map +1 -0
- package/dist/design/token-emitters/desktop.d.ts +13 -0
- package/dist/design/token-emitters/desktop.d.ts.map +1 -0
- package/dist/design/token-emitters/desktop.js +152 -0
- package/dist/design/token-emitters/desktop.js.map +1 -0
- package/dist/design/token-emitters/index.d.ts +12 -0
- package/dist/design/token-emitters/index.d.ts.map +1 -0
- package/dist/design/token-emitters/index.js +12 -0
- package/dist/design/token-emitters/index.js.map +1 -0
- package/dist/design/token-emitters/ios.d.ts +15 -0
- package/dist/design/token-emitters/ios.d.ts.map +1 -0
- package/dist/design/token-emitters/ios.js +116 -0
- package/dist/design/token-emitters/ios.js.map +1 -0
- package/dist/design/token-emitters/tui.d.ts +22 -0
- package/dist/design/token-emitters/tui.d.ts.map +1 -0
- package/dist/design/token-emitters/tui.js +23 -0
- package/dist/design/token-emitters/tui.js.map +1 -0
- package/dist/design/token-emitters/w3c-tokens.d.ts +28 -0
- package/dist/design/token-emitters/w3c-tokens.d.ts.map +1 -0
- package/dist/design/token-emitters/w3c-tokens.js +108 -0
- package/dist/design/token-emitters/w3c-tokens.js.map +1 -0
- package/dist/design/tokens.d.ts +154 -0
- package/dist/design/tokens.d.ts.map +1 -0
- package/dist/design/tokens.js +162 -0
- package/dist/design/tokens.js.map +1 -0
- package/dist/design/zip-reader.d.ts +14 -0
- package/dist/design/zip-reader.d.ts.map +1 -0
- package/dist/design/zip-reader.js +125 -0
- package/dist/design/zip-reader.js.map +1 -0
- package/dist/desktop/app-state.d.ts +133 -0
- package/dist/desktop/app-state.d.ts.map +1 -0
- package/dist/desktop/app-state.js +161 -0
- package/dist/desktop/app-state.js.map +1 -0
- package/dist/desktop/artifact-comments.d.ts +94 -0
- package/dist/desktop/artifact-comments.d.ts.map +1 -0
- package/dist/desktop/artifact-comments.js +106 -0
- package/dist/desktop/artifact-comments.js.map +1 -0
- package/dist/desktop/artifacts.d.ts +78 -0
- package/dist/desktop/artifacts.d.ts.map +1 -0
- package/dist/desktop/artifacts.js +187 -0
- package/dist/desktop/artifacts.js.map +1 -0
- package/dist/desktop/command-palette.d.ts +105 -0
- package/dist/desktop/command-palette.d.ts.map +1 -0
- package/dist/desktop/command-palette.js +319 -0
- package/dist/desktop/command-palette.js.map +1 -0
- package/dist/desktop/companion-server.d.ts +494 -0
- package/dist/desktop/companion-server.d.ts.map +1 -0
- package/dist/desktop/companion-server.js +2147 -0
- package/dist/desktop/companion-server.js.map +1 -0
- package/dist/desktop/conversation-manager.d.ts +122 -0
- package/dist/desktop/conversation-manager.d.ts.map +1 -0
- package/dist/desktop/conversation-manager.js +207 -0
- package/dist/desktop/conversation-manager.js.map +1 -0
- package/dist/desktop/desktop-runtime-bridge.d.ts +78 -0
- package/dist/desktop/desktop-runtime-bridge.d.ts.map +1 -0
- package/dist/desktop/desktop-runtime-bridge.js +155 -0
- package/dist/desktop/desktop-runtime-bridge.js.map +1 -0
- package/dist/desktop/keyboard-shortcuts.d.ts +64 -0
- package/dist/desktop/keyboard-shortcuts.d.ts.map +1 -0
- package/dist/desktop/keyboard-shortcuts.js +152 -0
- package/dist/desktop/keyboard-shortcuts.js.map +1 -0
- package/dist/desktop/layout.d.ts +90 -0
- package/dist/desktop/layout.d.ts.map +1 -0
- package/dist/desktop/layout.js +117 -0
- package/dist/desktop/layout.js.map +1 -0
- package/dist/desktop/notification-manager.d.ts +88 -0
- package/dist/desktop/notification-manager.d.ts.map +1 -0
- package/dist/desktop/notification-manager.js +167 -0
- package/dist/desktop/notification-manager.js.map +1 -0
- package/dist/desktop/project-manager.d.ts +80 -0
- package/dist/desktop/project-manager.d.ts.map +1 -0
- package/dist/desktop/project-manager.js +146 -0
- package/dist/desktop/project-manager.js.map +1 -0
- package/dist/desktop/prompt-enhancer.d.ts +65 -0
- package/dist/desktop/prompt-enhancer.d.ts.map +1 -0
- package/dist/desktop/prompt-enhancer.js +177 -0
- package/dist/desktop/prompt-enhancer.js.map +1 -0
- package/dist/desktop/smart-apply-panel.d.ts +78 -0
- package/dist/desktop/smart-apply-panel.d.ts.map +1 -0
- package/dist/desktop/smart-apply-panel.js +140 -0
- package/dist/desktop/smart-apply-panel.js.map +1 -0
- package/dist/desktop/supabase-relay.d.ts +86 -0
- package/dist/desktop/supabase-relay.d.ts.map +1 -0
- package/dist/desktop/supabase-relay.js +335 -0
- package/dist/desktop/supabase-relay.js.map +1 -0
- package/dist/desktop/tauri-config.d.ts +116 -0
- package/dist/desktop/tauri-config.d.ts.map +1 -0
- package/dist/desktop/tauri-config.js +208 -0
- package/dist/desktop/tauri-config.js.map +1 -0
- package/dist/desktop/types.d.ts +135 -0
- package/dist/desktop/types.d.ts.map +1 -0
- package/dist/desktop/types.js +89 -0
- package/dist/desktop/types.js.map +1 -0
- package/dist/evals/g-eval.d.ts +36 -0
- package/dist/evals/g-eval.d.ts.map +1 -0
- package/dist/evals/g-eval.js +147 -0
- package/dist/evals/g-eval.js.map +1 -0
- package/dist/evals/owasp-llm-redteam.d.ts +39 -0
- package/dist/evals/owasp-llm-redteam.d.ts.map +1 -0
- package/dist/evals/owasp-llm-redteam.js +128 -0
- package/dist/evals/owasp-llm-redteam.js.map +1 -0
- package/dist/evals/prompt-eval.d.ts +102 -0
- package/dist/evals/prompt-eval.d.ts.map +1 -0
- package/dist/evals/prompt-eval.js +176 -0
- package/dist/evals/prompt-eval.js.map +1 -0
- package/dist/evals/ragas-metrics.d.ts +23 -0
- package/dist/evals/ragas-metrics.d.ts.map +1 -0
- package/dist/evals/ragas-metrics.js +233 -0
- package/dist/evals/ragas-metrics.js.map +1 -0
- package/dist/evals/types.d.ts +154 -0
- package/dist/evals/types.d.ts.map +1 -0
- package/dist/evals/types.js +43 -0
- package/dist/evals/types.js.map +1 -0
- package/dist/evolution/constraints.d.ts +12 -0
- package/dist/evolution/constraints.d.ts.map +1 -0
- package/dist/evolution/constraints.js +45 -0
- package/dist/evolution/constraints.js.map +1 -0
- package/dist/evolution/evaluator.d.ts +45 -0
- package/dist/evolution/evaluator.d.ts.map +1 -0
- package/dist/evolution/evaluator.js +109 -0
- package/dist/evolution/evaluator.js.map +1 -0
- package/dist/evolution/mutator.d.ts +38 -0
- package/dist/evolution/mutator.d.ts.map +1 -0
- package/dist/evolution/mutator.js +97 -0
- package/dist/evolution/mutator.js.map +1 -0
- package/dist/evolution/optimizer.d.ts +68 -0
- package/dist/evolution/optimizer.d.ts.map +1 -0
- package/dist/evolution/optimizer.js +170 -0
- package/dist/evolution/optimizer.js.map +1 -0
- package/dist/evolution/runner.d.ts +30 -0
- package/dist/evolution/runner.d.ts.map +1 -0
- package/dist/evolution/runner.js +67 -0
- package/dist/evolution/runner.js.map +1 -0
- package/dist/evolution/types.d.ts +76 -0
- package/dist/evolution/types.d.ts.map +1 -0
- package/dist/evolution/types.js +9 -0
- package/dist/evolution/types.js.map +1 -0
- package/dist/exploit/mythos-scaffold.d.ts +230 -0
- package/dist/exploit/mythos-scaffold.d.ts.map +1 -0
- package/dist/exploit/mythos-scaffold.js +517 -0
- package/dist/exploit/mythos-scaffold.js.map +1 -0
- package/dist/git/magic-git.d.ts +62 -0
- package/dist/git/magic-git.d.ts.map +1 -0
- package/dist/git/magic-git.js +260 -0
- package/dist/git/magic-git.js.map +1 -0
- package/dist/hooks/auto-archive.d.ts +65 -0
- package/dist/hooks/auto-archive.d.ts.map +1 -0
- package/dist/hooks/auto-archive.js +137 -0
- package/dist/hooks/auto-archive.js.map +1 -0
- package/dist/hooks/benchmark-engineering.d.ts +174 -0
- package/dist/hooks/benchmark-engineering.d.ts.map +1 -0
- package/dist/hooks/benchmark-engineering.js +484 -0
- package/dist/hooks/benchmark-engineering.js.map +1 -0
- package/dist/hooks/built-in.d.ts +102 -0
- package/dist/hooks/built-in.d.ts.map +1 -0
- package/dist/hooks/built-in.js +1358 -0
- package/dist/hooks/built-in.js.map +1 -0
- package/dist/hooks/compact-snapshot.d.ts +78 -0
- package/dist/hooks/compact-snapshot.d.ts.map +1 -0
- package/dist/hooks/compact-snapshot.js +179 -0
- package/dist/hooks/compact-snapshot.js.map +1 -0
- package/dist/hooks/doom-loop-detector.d.ts +63 -0
- package/dist/hooks/doom-loop-detector.d.ts.map +1 -0
- package/dist/hooks/doom-loop-detector.js +247 -0
- package/dist/hooks/doom-loop-detector.js.map +1 -0
- package/dist/hooks/engine.d.ts +274 -0
- package/dist/hooks/engine.d.ts.map +1 -0
- package/dist/hooks/engine.js +495 -0
- package/dist/hooks/engine.js.map +1 -0
- package/dist/hooks/rate-limit-resume.d.ts +99 -0
- package/dist/hooks/rate-limit-resume.d.ts.map +1 -0
- package/dist/hooks/rate-limit-resume.js +185 -0
- package/dist/hooks/rate-limit-resume.js.map +1 -0
- package/dist/hooks/verifier-gate-helpers.d.ts +126 -0
- package/dist/hooks/verifier-gate-helpers.d.ts.map +1 -0
- package/dist/hooks/verifier-gate-helpers.js +129 -0
- package/dist/hooks/verifier-gate-helpers.js.map +1 -0
- package/dist/identity/persona.d.ts +99 -0
- package/dist/identity/persona.d.ts.map +1 -0
- package/dist/identity/persona.js +312 -0
- package/dist/identity/persona.js.map +1 -0
- package/dist/identity/reasoning-engine.d.ts +88 -0
- package/dist/identity/reasoning-engine.d.ts.map +1 -0
- package/dist/identity/reasoning-engine.js +251 -0
- package/dist/identity/reasoning-engine.js.map +1 -0
- package/dist/identity/role-templates/csm.d.ts +9 -0
- package/dist/identity/role-templates/csm.d.ts.map +1 -0
- package/dist/identity/role-templates/csm.js +42 -0
- package/dist/identity/role-templates/csm.js.map +1 -0
- package/dist/identity/role-templates/devrel.d.ts +9 -0
- package/dist/identity/role-templates/devrel.d.ts.map +1 -0
- package/dist/identity/role-templates/devrel.js +43 -0
- package/dist/identity/role-templates/devrel.js.map +1 -0
- package/dist/identity/role-templates/index.d.ts +40 -0
- package/dist/identity/role-templates/index.d.ts.map +1 -0
- package/dist/identity/role-templates/index.js +62 -0
- package/dist/identity/role-templates/index.js.map +1 -0
- package/dist/identity/role-templates/recruiter.d.ts +10 -0
- package/dist/identity/role-templates/recruiter.d.ts.map +1 -0
- package/dist/identity/role-templates/recruiter.js +42 -0
- package/dist/identity/role-templates/recruiter.js.map +1 -0
- package/dist/identity/role-templates/sdr.d.ts +9 -0
- package/dist/identity/role-templates/sdr.d.ts.map +1 -0
- package/dist/identity/role-templates/sdr.js +41 -0
- package/dist/identity/role-templates/sdr.js.map +1 -0
- package/dist/identity/role-templates/support.d.ts +9 -0
- package/dist/identity/role-templates/support.d.ts.map +1 -0
- package/dist/identity/role-templates/support.js +41 -0
- package/dist/identity/role-templates/support.js.map +1 -0
- package/dist/identity/role-templates/types.d.ts +16 -0
- package/dist/identity/role-templates/types.d.ts.map +1 -0
- package/dist/identity/role-templates/types.js +9 -0
- package/dist/identity/role-templates/types.js.map +1 -0
- package/dist/identity/user-model.d.ts +110 -0
- package/dist/identity/user-model.d.ts.map +1 -0
- package/dist/identity/user-model.js +386 -0
- package/dist/identity/user-model.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9117 -0
- package/dist/index.js.map +1 -0
- package/dist/integrations/posthog-events.d.ts +70 -0
- package/dist/integrations/posthog-events.d.ts.map +1 -0
- package/dist/integrations/posthog-events.js +126 -0
- package/dist/integrations/posthog-events.js.map +1 -0
- package/dist/intelligence/12factor/enforcer.d.ts +32 -0
- package/dist/intelligence/12factor/enforcer.d.ts.map +1 -0
- package/dist/intelligence/12factor/enforcer.js +39 -0
- package/dist/intelligence/12factor/enforcer.js.map +1 -0
- package/dist/intelligence/12factor/principles.d.ts +63 -0
- package/dist/intelligence/12factor/principles.d.ts.map +1 -0
- package/dist/intelligence/12factor/principles.js +112 -0
- package/dist/intelligence/12factor/principles.js.map +1 -0
- package/dist/intelligence/12factor/single-binary.d.ts +56 -0
- package/dist/intelligence/12factor/single-binary.d.ts.map +1 -0
- package/dist/intelligence/12factor/single-binary.js +79 -0
- package/dist/intelligence/12factor/single-binary.js.map +1 -0
- package/dist/intelligence/accuracy-boost.d.ts +140 -0
- package/dist/intelligence/accuracy-boost.d.ts.map +1 -0
- package/dist/intelligence/accuracy-boost.js +686 -0
- package/dist/intelligence/accuracy-boost.js.map +1 -0
- package/dist/intelligence/action-item-extractor.d.ts +63 -0
- package/dist/intelligence/action-item-extractor.d.ts.map +1 -0
- package/dist/intelligence/action-item-extractor.js +154 -0
- package/dist/intelligence/action-item-extractor.js.map +1 -0
- package/dist/intelligence/adaptive-prompts.d.ts +43 -0
- package/dist/intelligence/adaptive-prompts.d.ts.map +1 -0
- package/dist/intelligence/adaptive-prompts.js +308 -0
- package/dist/intelligence/adaptive-prompts.js.map +1 -0
- package/dist/intelligence/adversarial-test-generator.d.ts +104 -0
- package/dist/intelligence/adversarial-test-generator.d.ts.map +1 -0
- package/dist/intelligence/adversarial-test-generator.js +242 -0
- package/dist/intelligence/adversarial-test-generator.js.map +1 -0
- package/dist/intelligence/agent-patterns/catalog.d.ts +31 -0
- package/dist/intelligence/agent-patterns/catalog.d.ts.map +1 -0
- package/dist/intelligence/agent-patterns/catalog.js +49 -0
- package/dist/intelligence/agent-patterns/catalog.js.map +1 -0
- package/dist/intelligence/agent-patterns/pattern-mapper.d.ts +56 -0
- package/dist/intelligence/agent-patterns/pattern-mapper.d.ts.map +1 -0
- package/dist/intelligence/agent-patterns/pattern-mapper.js +154 -0
- package/dist/intelligence/agent-patterns/pattern-mapper.js.map +1 -0
- package/dist/intelligence/agent-patterns/patterns-core.d.ts +10 -0
- package/dist/intelligence/agent-patterns/patterns-core.d.ts.map +1 -0
- package/dist/intelligence/agent-patterns/patterns-core.js +125 -0
- package/dist/intelligence/agent-patterns/patterns-core.js.map +1 -0
- package/dist/intelligence/agent-patterns/patterns-extended.d.ts +11 -0
- package/dist/intelligence/agent-patterns/patterns-extended.d.ts.map +1 -0
- package/dist/intelligence/agent-patterns/patterns-extended.js +125 -0
- package/dist/intelligence/agent-patterns/patterns-extended.js.map +1 -0
- package/dist/intelligence/agent-patterns/patterns.d.ts +13 -0
- package/dist/intelligence/agent-patterns/patterns.d.ts.map +1 -0
- package/dist/intelligence/agent-patterns/patterns.js +14 -0
- package/dist/intelligence/agent-patterns/patterns.js.map +1 -0
- package/dist/intelligence/agent-patterns/types.d.ts +35 -0
- package/dist/intelligence/agent-patterns/types.d.ts.map +1 -0
- package/dist/intelligence/agent-patterns/types.js +9 -0
- package/dist/intelligence/agent-patterns/types.js.map +1 -0
- package/dist/intelligence/ai-time-machine.d.ts +105 -0
- package/dist/intelligence/ai-time-machine.d.ts.map +1 -0
- package/dist/intelligence/ai-time-machine.js +234 -0
- package/dist/intelligence/ai-time-machine.js.map +1 -0
- package/dist/intelligence/ambient-awareness.d.ts +102 -0
- package/dist/intelligence/ambient-awareness.d.ts.map +1 -0
- package/dist/intelligence/ambient-awareness.js +355 -0
- package/dist/intelligence/ambient-awareness.js.map +1 -0
- package/dist/intelligence/amplifier.d.ts +101 -0
- package/dist/intelligence/amplifier.d.ts.map +1 -0
- package/dist/intelligence/amplifier.js +236 -0
- package/dist/intelligence/amplifier.js.map +1 -0
- package/dist/intelligence/answer-normalizer.d.ts +67 -0
- package/dist/intelligence/answer-normalizer.d.ts.map +1 -0
- package/dist/intelligence/answer-normalizer.js +221 -0
- package/dist/intelligence/answer-normalizer.js.map +1 -0
- package/dist/intelligence/auto-enhance.d.ts +34 -0
- package/dist/intelligence/auto-enhance.d.ts.map +1 -0
- package/dist/intelligence/auto-enhance.js +99 -0
- package/dist/intelligence/auto-enhance.js.map +1 -0
- package/dist/intelligence/auto-mode-detector.d.ts +32 -0
- package/dist/intelligence/auto-mode-detector.d.ts.map +1 -0
- package/dist/intelligence/auto-mode-detector.js +176 -0
- package/dist/intelligence/auto-mode-detector.js.map +1 -0
- package/dist/intelligence/auto-reviewer.d.ts +105 -0
- package/dist/intelligence/auto-reviewer.d.ts.map +1 -0
- package/dist/intelligence/auto-reviewer.js +477 -0
- package/dist/intelligence/auto-reviewer.js.map +1 -0
- package/dist/intelligence/auto-verify.d.ts +52 -0
- package/dist/intelligence/auto-verify.d.ts.map +1 -0
- package/dist/intelligence/auto-verify.js +153 -0
- package/dist/intelligence/auto-verify.js.map +1 -0
- package/dist/intelligence/away-summary.d.ts +48 -0
- package/dist/intelligence/away-summary.d.ts.map +1 -0
- package/dist/intelligence/away-summary.js +98 -0
- package/dist/intelligence/away-summary.js.map +1 -0
- package/dist/intelligence/bash-classifier.d.ts +19 -0
- package/dist/intelligence/bash-classifier.d.ts.map +1 -0
- package/dist/intelligence/bash-classifier.js +153 -0
- package/dist/intelligence/bash-classifier.js.map +1 -0
- package/dist/intelligence/benchmark-harness.d.ts +152 -0
- package/dist/intelligence/benchmark-harness.d.ts.map +1 -0
- package/dist/intelligence/benchmark-harness.js +534 -0
- package/dist/intelligence/benchmark-harness.js.map +1 -0
- package/dist/intelligence/benchmark-runners/aider-polyglot.d.ts +136 -0
- package/dist/intelligence/benchmark-runners/aider-polyglot.d.ts.map +1 -0
- package/dist/intelligence/benchmark-runners/aider-polyglot.js +389 -0
- package/dist/intelligence/benchmark-runners/aider-polyglot.js.map +1 -0
- package/dist/intelligence/benchmark-runners/code-eval.d.ts +162 -0
- package/dist/intelligence/benchmark-runners/code-eval.d.ts.map +1 -0
- package/dist/intelligence/benchmark-runners/code-eval.js +418 -0
- package/dist/intelligence/benchmark-runners/code-eval.js.map +1 -0
- package/dist/intelligence/benchmark-runners/index.d.ts +15 -0
- package/dist/intelligence/benchmark-runners/index.d.ts.map +1 -0
- package/dist/intelligence/benchmark-runners/index.js +20 -0
- package/dist/intelligence/benchmark-runners/index.js.map +1 -0
- package/dist/intelligence/benchmark-runners/shared.d.ts +98 -0
- package/dist/intelligence/benchmark-runners/shared.d.ts.map +1 -0
- package/dist/intelligence/benchmark-runners/shared.js +119 -0
- package/dist/intelligence/benchmark-runners/shared.js.map +1 -0
- package/dist/intelligence/benchmark-runners/swe-bench.d.ts +139 -0
- package/dist/intelligence/benchmark-runners/swe-bench.d.ts.map +1 -0
- package/dist/intelligence/benchmark-runners/swe-bench.js +374 -0
- package/dist/intelligence/benchmark-runners/swe-bench.js.map +1 -0
- package/dist/intelligence/benchmark-runners/tau-bench.d.ts +137 -0
- package/dist/intelligence/benchmark-runners/tau-bench.d.ts.map +1 -0
- package/dist/intelligence/benchmark-runners/tau-bench.js +378 -0
- package/dist/intelligence/benchmark-runners/tau-bench.js.map +1 -0
- package/dist/intelligence/benchmark-runners/terminal-bench.d.ts +210 -0
- package/dist/intelligence/benchmark-runners/terminal-bench.d.ts.map +1 -0
- package/dist/intelligence/benchmark-runners/terminal-bench.js +600 -0
- package/dist/intelligence/benchmark-runners/terminal-bench.js.map +1 -0
- package/dist/intelligence/budget-enforcer.d.ts +104 -0
- package/dist/intelligence/budget-enforcer.d.ts.map +1 -0
- package/dist/intelligence/budget-enforcer.js +136 -0
- package/dist/intelligence/budget-enforcer.js.map +1 -0
- package/dist/intelligence/bugbot.d.ts +62 -0
- package/dist/intelligence/bugbot.d.ts.map +1 -0
- package/dist/intelligence/bugbot.js +337 -0
- package/dist/intelligence/bugbot.js.map +1 -0
- package/dist/intelligence/chain-of-verification.d.ts +51 -0
- package/dist/intelligence/chain-of-verification.d.ts.map +1 -0
- package/dist/intelligence/chain-of-verification.js +97 -0
- package/dist/intelligence/chain-of-verification.js.map +1 -0
- package/dist/intelligence/code-graph.d.ts +80 -0
- package/dist/intelligence/code-graph.d.ts.map +1 -0
- package/dist/intelligence/code-graph.js +208 -0
- package/dist/intelligence/code-graph.js.map +1 -0
- package/dist/intelligence/code-outline.d.ts +44 -0
- package/dist/intelligence/code-outline.d.ts.map +1 -0
- package/dist/intelligence/code-outline.js +101 -0
- package/dist/intelligence/code-outline.js.map +1 -0
- package/dist/intelligence/codebase-health.d.ts +47 -0
- package/dist/intelligence/codebase-health.d.ts.map +1 -0
- package/dist/intelligence/codebase-health.js +307 -0
- package/dist/intelligence/codebase-health.js.map +1 -0
- package/dist/intelligence/codemaps.d.ts +44 -0
- package/dist/intelligence/codemaps.d.ts.map +1 -0
- package/dist/intelligence/codemaps.js +385 -0
- package/dist/intelligence/codemaps.js.map +1 -0
- package/dist/intelligence/confidence-calibrator.d.ts +86 -0
- package/dist/intelligence/confidence-calibrator.d.ts.map +1 -0
- package/dist/intelligence/confidence-calibrator.js +163 -0
- package/dist/intelligence/confidence-calibrator.js.map +1 -0
- package/dist/intelligence/content-cid.d.ts +63 -0
- package/dist/intelligence/content-cid.d.ts.map +1 -0
- package/dist/intelligence/content-cid.js +91 -0
- package/dist/intelligence/content-cid.js.map +1 -0
- package/dist/intelligence/context-relevance.d.ts +108 -0
- package/dist/intelligence/context-relevance.d.ts.map +1 -0
- package/dist/intelligence/context-relevance.js +325 -0
- package/dist/intelligence/context-relevance.js.map +1 -0
- package/dist/intelligence/courses-index/anthropic.d.ts +39 -0
- package/dist/intelligence/courses-index/anthropic.d.ts.map +1 -0
- package/dist/intelligence/courses-index/anthropic.js +110 -0
- package/dist/intelligence/courses-index/anthropic.js.map +1 -0
- package/dist/intelligence/critic-model.d.ts +56 -0
- package/dist/intelligence/critic-model.d.ts.map +1 -0
- package/dist/intelligence/critic-model.js +152 -0
- package/dist/intelligence/critic-model.js.map +1 -0
- package/dist/intelligence/cross-device-context.d.ts +66 -0
- package/dist/intelligence/cross-device-context.d.ts.map +1 -0
- package/dist/intelligence/cross-device-context.js +122 -0
- package/dist/intelligence/cross-device-context.js.map +1 -0
- package/dist/intelligence/data-loaders/csv.d.ts +16 -0
- package/dist/intelligence/data-loaders/csv.d.ts.map +1 -0
- package/dist/intelligence/data-loaders/csv.js +120 -0
- package/dist/intelligence/data-loaders/csv.js.map +1 -0
- package/dist/intelligence/data-loaders/json.d.ts +12 -0
- package/dist/intelligence/data-loaders/json.d.ts.map +1 -0
- package/dist/intelligence/data-loaders/json.js +65 -0
- package/dist/intelligence/data-loaders/json.js.map +1 -0
- package/dist/intelligence/data-loaders/jsonl.d.ts +15 -0
- package/dist/intelligence/data-loaders/jsonl.d.ts.map +1 -0
- package/dist/intelligence/data-loaders/jsonl.js +62 -0
- package/dist/intelligence/data-loaders/jsonl.js.map +1 -0
- package/dist/intelligence/data-loaders/markdown.d.ts +13 -0
- package/dist/intelligence/data-loaders/markdown.d.ts.map +1 -0
- package/dist/intelligence/data-loaders/markdown.js +40 -0
- package/dist/intelligence/data-loaders/markdown.js.map +1 -0
- package/dist/intelligence/data-loaders/registry.d.ts +57 -0
- package/dist/intelligence/data-loaders/registry.d.ts.map +1 -0
- package/dist/intelligence/data-loaders/registry.js +72 -0
- package/dist/intelligence/data-loaders/registry.js.map +1 -0
- package/dist/intelligence/deep-research.d.ts +90 -0
- package/dist/intelligence/deep-research.d.ts.map +1 -0
- package/dist/intelligence/deep-research.js +495 -0
- package/dist/intelligence/deep-research.js.map +1 -0
- package/dist/intelligence/dev-grounded-search.d.ts +33 -0
- package/dist/intelligence/dev-grounded-search.d.ts.map +1 -0
- package/dist/intelligence/dev-grounded-search.js +84 -0
- package/dist/intelligence/dev-grounded-search.js.map +1 -0
- package/dist/intelligence/devika/engineer-plan.d.ts +54 -0
- package/dist/intelligence/devika/engineer-plan.d.ts.map +1 -0
- package/dist/intelligence/devika/engineer-plan.js +124 -0
- package/dist/intelligence/devika/engineer-plan.js.map +1 -0
- package/dist/intelligence/domain-skill-router.d.ts +24 -0
- package/dist/intelligence/domain-skill-router.d.ts.map +1 -0
- package/dist/intelligence/domain-skill-router.js +143 -0
- package/dist/intelligence/domain-skill-router.js.map +1 -0
- package/dist/intelligence/error-pattern-learner.d.ts +67 -0
- package/dist/intelligence/error-pattern-learner.d.ts.map +1 -0
- package/dist/intelligence/error-pattern-learner.js +230 -0
- package/dist/intelligence/error-pattern-learner.js.map +1 -0
- package/dist/intelligence/eval-frameworks/redteam.d.ts +53 -0
- package/dist/intelligence/eval-frameworks/redteam.d.ts.map +1 -0
- package/dist/intelligence/eval-frameworks/redteam.js +160 -0
- package/dist/intelligence/eval-frameworks/redteam.js.map +1 -0
- package/dist/intelligence/everything-cc/catalog.d.ts +39 -0
- package/dist/intelligence/everything-cc/catalog.d.ts.map +1 -0
- package/dist/intelligence/everything-cc/catalog.js +122 -0
- package/dist/intelligence/everything-cc/catalog.js.map +1 -0
- package/dist/intelligence/everything-cc/tauri-pattern-checks.d.ts +61 -0
- package/dist/intelligence/everything-cc/tauri-pattern-checks.d.ts.map +1 -0
- package/dist/intelligence/everything-cc/tauri-pattern-checks.js +104 -0
- package/dist/intelligence/everything-cc/tauri-pattern-checks.js.map +1 -0
- package/dist/intelligence/fact-extraction.d.ts +92 -0
- package/dist/intelligence/fact-extraction.d.ts.map +1 -0
- package/dist/intelligence/fact-extraction.js +203 -0
- package/dist/intelligence/fact-extraction.js.map +1 -0
- package/dist/intelligence/finance-terminal-shell/shell.d.ts +69 -0
- package/dist/intelligence/finance-terminal-shell/shell.d.ts.map +1 -0
- package/dist/intelligence/finance-terminal-shell/shell.js +130 -0
- package/dist/intelligence/finance-terminal-shell/shell.js.map +1 -0
- package/dist/intelligence/flow-tracker.d.ts +83 -0
- package/dist/intelligence/flow-tracker.d.ts.map +1 -0
- package/dist/intelligence/flow-tracker.js +201 -0
- package/dist/intelligence/flow-tracker.js.map +1 -0
- package/dist/intelligence/follow-up-chips-v2.d.ts +64 -0
- package/dist/intelligence/follow-up-chips-v2.d.ts.map +1 -0
- package/dist/intelligence/follow-up-chips-v2.js +233 -0
- package/dist/intelligence/follow-up-chips-v2.js.map +1 -0
- package/dist/intelligence/forgecode-techniques.d.ts +143 -0
- package/dist/intelligence/forgecode-techniques.d.ts.map +1 -0
- package/dist/intelligence/forgecode-techniques.js +796 -0
- package/dist/intelligence/forgecode-techniques.js.map +1 -0
- package/dist/intelligence/genai-agents/extended-patterns.d.ts +51 -0
- package/dist/intelligence/genai-agents/extended-patterns.d.ts.map +1 -0
- package/dist/intelligence/genai-agents/extended-patterns.js +137 -0
- package/dist/intelligence/genai-agents/extended-patterns.js.map +1 -0
- package/dist/intelligence/guardian.d.ts +119 -0
- package/dist/intelligence/guardian.d.ts.map +1 -0
- package/dist/intelligence/guardian.js +314 -0
- package/dist/intelligence/guardian.js.map +1 -0
- package/dist/intelligence/haystack-patterns/pipeline.d.ts +71 -0
- package/dist/intelligence/haystack-patterns/pipeline.d.ts.map +1 -0
- package/dist/intelligence/haystack-patterns/pipeline.js +98 -0
- package/dist/intelligence/haystack-patterns/pipeline.js.map +1 -0
- package/dist/intelligence/kg-builder.d.ts +181 -0
- package/dist/intelligence/kg-builder.d.ts.map +1 -0
- package/dist/intelligence/kg-builder.js +807 -0
- package/dist/intelligence/kg-builder.js.map +1 -0
- package/dist/intelligence/langchain-patterns/chain.d.ts +64 -0
- package/dist/intelligence/langchain-patterns/chain.d.ts.map +1 -0
- package/dist/intelligence/langchain-patterns/chain.js +109 -0
- package/dist/intelligence/langchain-patterns/chain.js.map +1 -0
- package/dist/intelligence/learning-platform/ppt-generator.d.ts +45 -0
- package/dist/intelligence/learning-platform/ppt-generator.d.ts.map +1 -0
- package/dist/intelligence/learning-platform/ppt-generator.js +91 -0
- package/dist/intelligence/learning-platform/ppt-generator.js.map +1 -0
- package/dist/intelligence/llm-app-catalog/index.d.ts +35 -0
- package/dist/intelligence/llm-app-catalog/index.d.ts.map +1 -0
- package/dist/intelligence/llm-app-catalog/index.js +82 -0
- package/dist/intelligence/llm-app-catalog/index.js.map +1 -0
- package/dist/intelligence/llm-flows.d.ts +103 -0
- package/dist/intelligence/llm-flows.d.ts.map +1 -0
- package/dist/intelligence/llm-flows.js +145 -0
- package/dist/intelligence/llm-flows.js.map +1 -0
- package/dist/intelligence/meeting-capture/transcript-actionable.d.ts +36 -0
- package/dist/intelligence/meeting-capture/transcript-actionable.d.ts.map +1 -0
- package/dist/intelligence/meeting-capture/transcript-actionable.js +69 -0
- package/dist/intelligence/meeting-capture/transcript-actionable.js.map +1 -0
- package/dist/intelligence/micro-eval.d.ts +65 -0
- package/dist/intelligence/micro-eval.d.ts.map +1 -0
- package/dist/intelligence/micro-eval.js +278 -0
- package/dist/intelligence/micro-eval.js.map +1 -0
- package/dist/intelligence/multi-patch-voter.d.ts +71 -0
- package/dist/intelligence/multi-patch-voter.d.ts.map +1 -0
- package/dist/intelligence/multi-patch-voter.js +164 -0
- package/dist/intelligence/multi-patch-voter.js.map +1 -0
- package/dist/intelligence/multimodal-extract.d.ts +87 -0
- package/dist/intelligence/multimodal-extract.d.ts.map +1 -0
- package/dist/intelligence/multimodal-extract.js +164 -0
- package/dist/intelligence/multimodal-extract.js.map +1 -0
- package/dist/intelligence/note-ingest.d.ts +76 -0
- package/dist/intelligence/note-ingest.d.ts.map +1 -0
- package/dist/intelligence/note-ingest.js +217 -0
- package/dist/intelligence/note-ingest.js.map +1 -0
- package/dist/intelligence/overrides.d.ts +53 -0
- package/dist/intelligence/overrides.d.ts.map +1 -0
- package/dist/intelligence/overrides.js +198 -0
- package/dist/intelligence/overrides.js.map +1 -0
- package/dist/intelligence/parallel-search-agent.d.ts +95 -0
- package/dist/intelligence/parallel-search-agent.d.ts.map +1 -0
- package/dist/intelligence/parallel-search-agent.js +155 -0
- package/dist/intelligence/parallel-search-agent.js.map +1 -0
- package/dist/intelligence/parallel-search.d.ts +75 -0
- package/dist/intelligence/parallel-search.d.ts.map +1 -0
- package/dist/intelligence/parallel-search.js +312 -0
- package/dist/intelligence/parallel-search.js.map +1 -0
- package/dist/intelligence/patch-scorer.d.ts +136 -0
- package/dist/intelligence/patch-scorer.d.ts.map +1 -0
- package/dist/intelligence/patch-scorer.js +348 -0
- package/dist/intelligence/patch-scorer.js.map +1 -0
- package/dist/intelligence/perception/element-resolver.d.ts +105 -0
- package/dist/intelligence/perception/element-resolver.d.ts.map +1 -0
- package/dist/intelligence/perception/element-resolver.js +149 -0
- package/dist/intelligence/perception/element-resolver.js.map +1 -0
- package/dist/intelligence/perception/page-comprehension.d.ts +78 -0
- package/dist/intelligence/perception/page-comprehension.d.ts.map +1 -0
- package/dist/intelligence/perception/page-comprehension.js +192 -0
- package/dist/intelligence/perception/page-comprehension.js.map +1 -0
- package/dist/intelligence/perception/screenshot-anchored-memory.d.ts +86 -0
- package/dist/intelligence/perception/screenshot-anchored-memory.d.ts.map +1 -0
- package/dist/intelligence/perception/screenshot-anchored-memory.js +132 -0
- package/dist/intelligence/perception/screenshot-anchored-memory.js.map +1 -0
- package/dist/intelligence/policy-injector.d.ts +96 -0
- package/dist/intelligence/policy-injector.d.ts.map +1 -0
- package/dist/intelligence/policy-injector.js +193 -0
- package/dist/intelligence/policy-injector.js.map +1 -0
- package/dist/intelligence/pre-completion-verifier.d.ts +155 -0
- package/dist/intelligence/pre-completion-verifier.d.ts.map +1 -0
- package/dist/intelligence/pre-completion-verifier.js +373 -0
- package/dist/intelligence/pre-completion-verifier.js.map +1 -0
- package/dist/intelligence/predictive-context.d.ts +56 -0
- package/dist/intelligence/predictive-context.d.ts.map +1 -0
- package/dist/intelligence/predictive-context.js +220 -0
- package/dist/intelligence/predictive-context.js.map +1 -0
- package/dist/intelligence/prefill-continuation.d.ts +36 -0
- package/dist/intelligence/prefill-continuation.d.ts.map +1 -0
- package/dist/intelligence/prefill-continuation.js +137 -0
- package/dist/intelligence/prefill-continuation.js.map +1 -0
- package/dist/intelligence/progressive-budget.d.ts +219 -0
- package/dist/intelligence/progressive-budget.d.ts.map +1 -0
- package/dist/intelligence/progressive-budget.js +270 -0
- package/dist/intelligence/progressive-budget.js.map +1 -0
- package/dist/intelligence/prompt-corpus.d.ts +58 -0
- package/dist/intelligence/prompt-corpus.d.ts.map +1 -0
- package/dist/intelligence/prompt-corpus.js +130 -0
- package/dist/intelligence/prompt-corpus.js.map +1 -0
- package/dist/intelligence/provider-arbitrage.d.ts +50 -0
- package/dist/intelligence/provider-arbitrage.d.ts.map +1 -0
- package/dist/intelligence/provider-arbitrage.js +245 -0
- package/dist/intelligence/provider-arbitrage.js.map +1 -0
- package/dist/intelligence/qlib-patterns/feature-engineering.d.ts +52 -0
- package/dist/intelligence/qlib-patterns/feature-engineering.d.ts.map +1 -0
- package/dist/intelligence/qlib-patterns/feature-engineering.js +168 -0
- package/dist/intelligence/qlib-patterns/feature-engineering.js.map +1 -0
- package/dist/intelligence/quant/time-series.d.ts +83 -0
- package/dist/intelligence/quant/time-series.d.ts.map +1 -0
- package/dist/intelligence/quant/time-series.js +178 -0
- package/dist/intelligence/quant/time-series.js.map +1 -0
- package/dist/intelligence/repo-knowledge/graph.d.ts +67 -0
- package/dist/intelligence/repo-knowledge/graph.d.ts.map +1 -0
- package/dist/intelligence/repo-knowledge/graph.js +99 -0
- package/dist/intelligence/repo-knowledge/graph.js.map +1 -0
- package/dist/intelligence/research-loops/budgeted-research.d.ts +68 -0
- package/dist/intelligence/research-loops/budgeted-research.d.ts.map +1 -0
- package/dist/intelligence/research-loops/budgeted-research.js +130 -0
- package/dist/intelligence/research-loops/budgeted-research.js.map +1 -0
- package/dist/intelligence/research-loops/design-patterns.d.ts +43 -0
- package/dist/intelligence/research-loops/design-patterns.d.ts.map +1 -0
- package/dist/intelligence/research-loops/design-patterns.js +134 -0
- package/dist/intelligence/research-loops/design-patterns.js.map +1 -0
- package/dist/intelligence/research-loops/domain-router.d.ts +56 -0
- package/dist/intelligence/research-loops/domain-router.d.ts.map +1 -0
- package/dist/intelligence/research-loops/domain-router.js +190 -0
- package/dist/intelligence/research-loops/domain-router.js.map +1 -0
- package/dist/intelligence/research-loops/reflective-dialog.d.ts +81 -0
- package/dist/intelligence/research-loops/reflective-dialog.d.ts.map +1 -0
- package/dist/intelligence/research-loops/reflective-dialog.js +132 -0
- package/dist/intelligence/research-loops/reflective-dialog.js.map +1 -0
- package/dist/intelligence/response-validator.d.ts +103 -0
- package/dist/intelligence/response-validator.d.ts.map +1 -0
- package/dist/intelligence/response-validator.js +417 -0
- package/dist/intelligence/response-validator.js.map +1 -0
- package/dist/intelligence/schema-optimizer.d.ts +61 -0
- package/dist/intelligence/schema-optimizer.d.ts.map +1 -0
- package/dist/intelligence/schema-optimizer.js +162 -0
- package/dist/intelligence/schema-optimizer.js.map +1 -0
- package/dist/intelligence/search-providers.d.ts +76 -0
- package/dist/intelligence/search-providers.d.ts.map +1 -0
- package/dist/intelligence/search-providers.js +209 -0
- package/dist/intelligence/search-providers.js.map +1 -0
- package/dist/intelligence/skill-catalog-index.d.ts +49 -0
- package/dist/intelligence/skill-catalog-index.d.ts.map +1 -0
- package/dist/intelligence/skill-catalog-index.js +178 -0
- package/dist/intelligence/skill-catalog-index.js.map +1 -0
- package/dist/intelligence/smart-file-search.d.ts +55 -0
- package/dist/intelligence/smart-file-search.d.ts.map +1 -0
- package/dist/intelligence/smart-file-search.js +268 -0
- package/dist/intelligence/smart-file-search.js.map +1 -0
- package/dist/intelligence/smart-retry.d.ts +57 -0
- package/dist/intelligence/smart-retry.d.ts.map +1 -0
- package/dist/intelligence/smart-retry.js +177 -0
- package/dist/intelligence/smart-retry.js.map +1 -0
- package/dist/intelligence/strict-schema.d.ts +76 -0
- package/dist/intelligence/strict-schema.d.ts.map +1 -0
- package/dist/intelligence/strict-schema.js +287 -0
- package/dist/intelligence/strict-schema.js.map +1 -0
- package/dist/intelligence/task-semantic-router.d.ts +49 -0
- package/dist/intelligence/task-semantic-router.d.ts.map +1 -0
- package/dist/intelligence/task-semantic-router.js +344 -0
- package/dist/intelligence/task-semantic-router.js.map +1 -0
- package/dist/intelligence/tool-pattern-detector.d.ts +68 -0
- package/dist/intelligence/tool-pattern-detector.d.ts.map +1 -0
- package/dist/intelligence/tool-pattern-detector.js +121 -0
- package/dist/intelligence/tool-pattern-detector.js.map +1 -0
- package/dist/intelligence/trace-analyzer.d.ts +90 -0
- package/dist/intelligence/trace-analyzer.d.ts.map +1 -0
- package/dist/intelligence/trace-analyzer.js +287 -0
- package/dist/intelligence/trace-analyzer.js.map +1 -0
- package/dist/intelligence/trajectory-scorer.d.ts +55 -0
- package/dist/intelligence/trajectory-scorer.d.ts.map +1 -0
- package/dist/intelligence/trajectory-scorer.js +235 -0
- package/dist/intelligence/trajectory-scorer.js.map +1 -0
- package/dist/intelligence/user-model.d.ts +93 -0
- package/dist/intelligence/user-model.d.ts.map +1 -0
- package/dist/intelligence/user-model.js +128 -0
- package/dist/intelligence/user-model.js.map +1 -0
- package/dist/intelligence/verification-cascade.d.ts +59 -0
- package/dist/intelligence/verification-cascade.d.ts.map +1 -0
- package/dist/intelligence/verification-cascade.js +258 -0
- package/dist/intelligence/verification-cascade.js.map +1 -0
- package/dist/intelligence/wall-clock-budget.d.ts +55 -0
- package/dist/intelligence/wall-clock-budget.d.ts.map +1 -0
- package/dist/intelligence/wall-clock-budget.js +121 -0
- package/dist/intelligence/wall-clock-budget.js.map +1 -0
- package/dist/intent/byoa-detector.d.ts +109 -0
- package/dist/intent/byoa-detector.d.ts.map +1 -0
- package/dist/intent/byoa-detector.js +208 -0
- package/dist/intent/byoa-detector.js.map +1 -0
- package/dist/intent/living-spec.d.ts +61 -0
- package/dist/intent/living-spec.d.ts.map +1 -0
- package/dist/intent/living-spec.js +301 -0
- package/dist/intent/living-spec.js.map +1 -0
- package/dist/learning/autodream.d.ts +190 -0
- package/dist/learning/autodream.d.ts.map +1 -0
- package/dist/learning/autodream.js +415 -0
- package/dist/learning/autodream.js.map +1 -0
- package/dist/learning/cross-session.d.ts +111 -0
- package/dist/learning/cross-session.d.ts.map +1 -0
- package/dist/learning/cross-session.js +406 -0
- package/dist/learning/cross-session.js.map +1 -0
- package/dist/learning/darwinian-evolver.d.ts +83 -0
- package/dist/learning/darwinian-evolver.d.ts.map +1 -0
- package/dist/learning/darwinian-evolver.js +144 -0
- package/dist/learning/darwinian-evolver.js.map +1 -0
- package/dist/learning/decision-ledger.d.ts +87 -0
- package/dist/learning/decision-ledger.d.ts.map +1 -0
- package/dist/learning/decision-ledger.js +228 -0
- package/dist/learning/decision-ledger.js.map +1 -0
- package/dist/learning/dream-pipeline.d.ts +108 -0
- package/dist/learning/dream-pipeline.d.ts.map +1 -0
- package/dist/learning/dream-pipeline.js +464 -0
- package/dist/learning/dream-pipeline.js.map +1 -0
- package/dist/learning/dream-runner.d.ts +55 -0
- package/dist/learning/dream-runner.d.ts.map +1 -0
- package/dist/learning/dream-runner.js +270 -0
- package/dist/learning/dream-runner.js.map +1 -0
- package/dist/learning/feedback-collector.d.ts +79 -0
- package/dist/learning/feedback-collector.d.ts.map +1 -0
- package/dist/learning/feedback-collector.js +170 -0
- package/dist/learning/feedback-collector.js.map +1 -0
- package/dist/learning/gepa-optimizer.d.ts +100 -0
- package/dist/learning/gepa-optimizer.d.ts.map +1 -0
- package/dist/learning/gepa-optimizer.js +207 -0
- package/dist/learning/gepa-optimizer.js.map +1 -0
- package/dist/learning/instinct-system.d.ts +87 -0
- package/dist/learning/instinct-system.d.ts.map +1 -0
- package/dist/learning/instinct-system.js +286 -0
- package/dist/learning/instinct-system.js.map +1 -0
- package/dist/learning/miprov2-optimizer.d.ts +82 -0
- package/dist/learning/miprov2-optimizer.d.ts.map +1 -0
- package/dist/learning/miprov2-optimizer.js +113 -0
- package/dist/learning/miprov2-optimizer.js.map +1 -0
- package/dist/learning/nightly-consolidator.d.ts +121 -0
- package/dist/learning/nightly-consolidator.d.ts.map +1 -0
- package/dist/learning/nightly-consolidator.js +163 -0
- package/dist/learning/nightly-consolidator.js.map +1 -0
- package/dist/learning/pattern-crystallizer.d.ts +87 -0
- package/dist/learning/pattern-crystallizer.d.ts.map +1 -0
- package/dist/learning/pattern-crystallizer.js +248 -0
- package/dist/learning/pattern-crystallizer.js.map +1 -0
- package/dist/learning/reflection-buffer.d.ts +68 -0
- package/dist/learning/reflection-buffer.d.ts.map +1 -0
- package/dist/learning/reflection-buffer.js +155 -0
- package/dist/learning/reflection-buffer.js.map +1 -0
- package/dist/learning/rl-feedback-export.d.ts +79 -0
- package/dist/learning/rl-feedback-export.d.ts.map +1 -0
- package/dist/learning/rl-feedback-export.js +132 -0
- package/dist/learning/rl-feedback-export.js.map +1 -0
- package/dist/learning/self-evolution.d.ts +86 -0
- package/dist/learning/self-evolution.d.ts.map +1 -0
- package/dist/learning/self-evolution.js +217 -0
- package/dist/learning/self-evolution.js.map +1 -0
- package/dist/learning/skill-forge.d.ts +157 -0
- package/dist/learning/skill-forge.d.ts.map +1 -0
- package/dist/learning/skill-forge.js +515 -0
- package/dist/learning/skill-forge.js.map +1 -0
- package/dist/learning/sleep-time-agent.d.ts +107 -0
- package/dist/learning/sleep-time-agent.d.ts.map +1 -0
- package/dist/learning/sleep-time-agent.js +197 -0
- package/dist/learning/sleep-time-agent.js.map +1 -0
- package/dist/learning/types.d.ts +77 -0
- package/dist/learning/types.d.ts.map +1 -0
- package/dist/learning/types.js +11 -0
- package/dist/learning/types.js.map +1 -0
- package/dist/lib.d.ts +230 -0
- package/dist/lib.d.ts.map +1 -0
- package/dist/lib.js +471 -0
- package/dist/lib.js.map +1 -0
- package/dist/lsp/agent-tools.d.ts +109 -0
- package/dist/lsp/agent-tools.d.ts.map +1 -0
- package/dist/lsp/agent-tools.js +585 -0
- package/dist/lsp/agent-tools.js.map +1 -0
- package/dist/lsp/lsp-tools.d.ts +84 -0
- package/dist/lsp/lsp-tools.d.ts.map +1 -0
- package/dist/lsp/lsp-tools.js +267 -0
- package/dist/lsp/lsp-tools.js.map +1 -0
- package/dist/lsp/server-registry.d.ts +153 -0
- package/dist/lsp/server-registry.d.ts.map +1 -0
- package/dist/lsp/server-registry.js +339 -0
- package/dist/lsp/server-registry.js.map +1 -0
- package/dist/lsp/symbol-operations.d.ts +97 -0
- package/dist/lsp/symbol-operations.d.ts.map +1 -0
- package/dist/lsp/symbol-operations.js +761 -0
- package/dist/lsp/symbol-operations.js.map +1 -0
- package/dist/magic/command-resolver.d.ts +27 -0
- package/dist/magic/command-resolver.d.ts.map +1 -0
- package/dist/magic/command-resolver.js +52 -0
- package/dist/magic/command-resolver.js.map +1 -0
- package/dist/magic/handlers/ai-commit.d.ts +24 -0
- package/dist/magic/handlers/ai-commit.d.ts.map +1 -0
- package/dist/magic/handlers/ai-commit.js +56 -0
- package/dist/magic/handlers/ai-commit.js.map +1 -0
- package/dist/magic/handlers/docstring.d.ts +3 -0
- package/dist/magic/handlers/docstring.d.ts.map +1 -0
- package/dist/magic/handlers/docstring.js +11 -0
- package/dist/magic/handlers/docstring.js.map +1 -0
- package/dist/magic/handlers/explain.d.ts +3 -0
- package/dist/magic/handlers/explain.d.ts.map +1 -0
- package/dist/magic/handlers/explain.js +11 -0
- package/dist/magic/handlers/explain.js.map +1 -0
- package/dist/magic/handlers/fix.d.ts +3 -0
- package/dist/magic/handlers/fix.d.ts.map +1 -0
- package/dist/magic/handlers/fix.js +11 -0
- package/dist/magic/handlers/fix.js.map +1 -0
- package/dist/magic/handlers/format.d.ts +3 -0
- package/dist/magic/handlers/format.d.ts.map +1 -0
- package/dist/magic/handlers/format.js +11 -0
- package/dist/magic/handlers/format.js.map +1 -0
- package/dist/magic/handlers/investigate-issue.d.ts +27 -0
- package/dist/magic/handlers/investigate-issue.d.ts.map +1 -0
- package/dist/magic/handlers/investigate-issue.js +59 -0
- package/dist/magic/handlers/investigate-issue.js.map +1 -0
- package/dist/magic/handlers/investigate-pr.d.ts +24 -0
- package/dist/magic/handlers/investigate-pr.d.ts.map +1 -0
- package/dist/magic/handlers/investigate-pr.js +58 -0
- package/dist/magic/handlers/investigate-pr.js.map +1 -0
- package/dist/magic/handlers/investigate-workflow.d.ts +23 -0
- package/dist/magic/handlers/investigate-workflow.d.ts.map +1 -0
- package/dist/magic/handlers/investigate-workflow.js +56 -0
- package/dist/magic/handlers/investigate-workflow.js.map +1 -0
- package/dist/magic/handlers/merge-conflict.d.ts +27 -0
- package/dist/magic/handlers/merge-conflict.d.ts.map +1 -0
- package/dist/magic/handlers/merge-conflict.js +68 -0
- package/dist/magic/handlers/merge-conflict.js.map +1 -0
- package/dist/magic/handlers/optimize.d.ts +3 -0
- package/dist/magic/handlers/optimize.d.ts.map +1 -0
- package/dist/magic/handlers/optimize.js +11 -0
- package/dist/magic/handlers/optimize.js.map +1 -0
- package/dist/magic/handlers/pr-content.d.ts +23 -0
- package/dist/magic/handlers/pr-content.d.ts.map +1 -0
- package/dist/magic/handlers/pr-content.js +67 -0
- package/dist/magic/handlers/pr-content.js.map +1 -0
- package/dist/magic/handlers/refactor.d.ts +3 -0
- package/dist/magic/handlers/refactor.d.ts.map +1 -0
- package/dist/magic/handlers/refactor.js +11 -0
- package/dist/magic/handlers/refactor.js.map +1 -0
- package/dist/magic/handlers/release-notes.d.ts +28 -0
- package/dist/magic/handlers/release-notes.d.ts.map +1 -0
- package/dist/magic/handlers/release-notes.js +85 -0
- package/dist/magic/handlers/release-notes.js.map +1 -0
- package/dist/magic/handlers/review.d.ts +3 -0
- package/dist/magic/handlers/review.d.ts.map +1 -0
- package/dist/magic/handlers/review.js +11 -0
- package/dist/magic/handlers/review.js.map +1 -0
- package/dist/magic/handlers/test.d.ts +3 -0
- package/dist/magic/handlers/test.d.ts.map +1 -0
- package/dist/magic/handlers/test.js +11 -0
- package/dist/magic/handlers/test.js.map +1 -0
- package/dist/magic/magic-commands.d.ts +17 -0
- package/dist/magic/magic-commands.d.ts.map +1 -0
- package/dist/magic/magic-commands.js +143 -0
- package/dist/magic/magic-commands.js.map +1 -0
- package/dist/magic/types.d.ts +52 -0
- package/dist/magic/types.d.ts.map +1 -0
- package/dist/magic/types.js +10 -0
- package/dist/magic/types.js.map +1 -0
- package/dist/marketplace/acp-agent-registry.d.ts +237 -0
- package/dist/marketplace/acp-agent-registry.d.ts.map +1 -0
- package/dist/marketplace/acp-agent-registry.js +694 -0
- package/dist/marketplace/acp-agent-registry.js.map +1 -0
- package/dist/marketplace/manifest.d.ts +47 -0
- package/dist/marketplace/manifest.d.ts.map +1 -0
- package/dist/marketplace/manifest.js +174 -0
- package/dist/marketplace/manifest.js.map +1 -0
- package/dist/marketplace/mcpb.d.ts +131 -0
- package/dist/marketplace/mcpb.d.ts.map +1 -0
- package/dist/marketplace/mcpb.js +218 -0
- package/dist/marketplace/mcpb.js.map +1 -0
- package/dist/marketplace/plugin-loader.d.ts +126 -0
- package/dist/marketplace/plugin-loader.d.ts.map +1 -0
- package/dist/marketplace/plugin-loader.js +335 -0
- package/dist/marketplace/plugin-loader.js.map +1 -0
- package/dist/marketplace/registry.d.ts +229 -0
- package/dist/marketplace/registry.d.ts.map +1 -0
- package/dist/marketplace/registry.js +875 -0
- package/dist/marketplace/registry.js.map +1 -0
- package/dist/marketplace/skill-quarantine.d.ts +76 -0
- package/dist/marketplace/skill-quarantine.d.ts.map +1 -0
- package/dist/marketplace/skill-quarantine.js +146 -0
- package/dist/marketplace/skill-quarantine.js.map +1 -0
- package/dist/mcp/chrome-devtools.d.ts +91 -0
- package/dist/mcp/chrome-devtools.d.ts.map +1 -0
- package/dist/mcp/chrome-devtools.js +152 -0
- package/dist/mcp/chrome-devtools.js.map +1 -0
- package/dist/mcp/discovery.d.ts +67 -0
- package/dist/mcp/discovery.d.ts.map +1 -0
- package/dist/mcp/discovery.js +188 -0
- package/dist/mcp/discovery.js.map +1 -0
- package/dist/mcp/elicitation.d.ts +128 -0
- package/dist/mcp/elicitation.d.ts.map +1 -0
- package/dist/mcp/elicitation.js +197 -0
- package/dist/mcp/elicitation.js.map +1 -0
- package/dist/mcp/health-probe.d.ts +60 -0
- package/dist/mcp/health-probe.d.ts.map +1 -0
- package/dist/mcp/health-probe.js +208 -0
- package/dist/mcp/health-probe.js.map +1 -0
- package/dist/mcp/mcp-server.d.ts +276 -0
- package/dist/mcp/mcp-server.d.ts.map +1 -0
- package/dist/mcp/mcp-server.js +543 -0
- package/dist/mcp/mcp-server.js.map +1 -0
- package/dist/mcp/memory-tool-shim.d.ts +125 -0
- package/dist/mcp/memory-tool-shim.d.ts.map +1 -0
- package/dist/mcp/memory-tool-shim.js +397 -0
- package/dist/mcp/memory-tool-shim.js.map +1 -0
- package/dist/mcp/servers/design-bridge.d.ts +87 -0
- package/dist/mcp/servers/design-bridge.d.ts.map +1 -0
- package/dist/mcp/servers/design-bridge.js +259 -0
- package/dist/mcp/servers/design-bridge.js.map +1 -0
- package/dist/mcp/servers/wotann-tools.d.ts +133 -0
- package/dist/mcp/servers/wotann-tools.d.ts.map +1 -0
- package/dist/mcp/servers/wotann-tools.js +452 -0
- package/dist/mcp/servers/wotann-tools.js.map +1 -0
- package/dist/mcp/skills-as-prompts.d.ts +126 -0
- package/dist/mcp/skills-as-prompts.d.ts.map +1 -0
- package/dist/mcp/skills-as-prompts.js +212 -0
- package/dist/mcp/skills-as-prompts.js.map +1 -0
- package/dist/mcp/tool-loader.d.ts +116 -0
- package/dist/mcp/tool-loader.d.ts.map +1 -0
- package/dist/mcp/tool-loader.js +368 -0
- package/dist/mcp/tool-loader.js.map +1 -0
- package/dist/mcp/ui-resources.d.ts +79 -0
- package/dist/mcp/ui-resources.d.ts.map +1 -0
- package/dist/mcp/ui-resources.js +193 -0
- package/dist/mcp/ui-resources.js.map +1 -0
- package/dist/meet/coaching-engine.d.ts +35 -0
- package/dist/meet/coaching-engine.d.ts.map +1 -0
- package/dist/meet/coaching-engine.js +101 -0
- package/dist/meet/coaching-engine.js.map +1 -0
- package/dist/meet/meeting-pipeline.d.ts +85 -0
- package/dist/meet/meeting-pipeline.d.ts.map +1 -0
- package/dist/meet/meeting-pipeline.js +156 -0
- package/dist/meet/meeting-pipeline.js.map +1 -0
- package/dist/meet/meeting-runtime.d.ts +90 -0
- package/dist/meet/meeting-runtime.d.ts.map +1 -0
- package/dist/meet/meeting-runtime.js +189 -0
- package/dist/meet/meeting-runtime.js.map +1 -0
- package/dist/meet/meeting-store.d.ts +37 -0
- package/dist/meet/meeting-store.d.ts.map +1 -0
- package/dist/meet/meeting-store.js +158 -0
- package/dist/meet/meeting-store.js.map +1 -0
- package/dist/memory/abstention.d.ts +132 -0
- package/dist/memory/abstention.d.ts.map +1 -0
- package/dist/memory/abstention.js +192 -0
- package/dist/memory/abstention.js.map +1 -0
- package/dist/memory/active-memory.d.ts +153 -0
- package/dist/memory/active-memory.d.ts.map +1 -0
- package/dist/memory/active-memory.js +431 -0
- package/dist/memory/active-memory.js.map +1 -0
- package/dist/memory/agent-facts.d.ts +121 -0
- package/dist/memory/agent-facts.d.ts.map +1 -0
- package/dist/memory/agent-facts.js +225 -0
- package/dist/memory/agent-facts.js.map +1 -0
- package/dist/memory/asmr-voter.d.ts +106 -0
- package/dist/memory/asmr-voter.d.ts.map +1 -0
- package/dist/memory/asmr-voter.js +143 -0
- package/dist/memory/asmr-voter.js.map +1 -0
- package/dist/memory/atomic-memory.d.ts +122 -0
- package/dist/memory/atomic-memory.d.ts.map +1 -0
- package/dist/memory/atomic-memory.js +232 -0
- package/dist/memory/atomic-memory.js.map +1 -0
- package/dist/memory/bi-temporal-edges.d.ts +154 -0
- package/dist/memory/bi-temporal-edges.d.ts.map +1 -0
- package/dist/memory/bi-temporal-edges.js +177 -0
- package/dist/memory/bi-temporal-edges.js.map +1 -0
- package/dist/memory/block-memory.d.ts +60 -0
- package/dist/memory/block-memory.d.ts.map +1 -0
- package/dist/memory/block-memory.js +195 -0
- package/dist/memory/block-memory.js.map +1 -0
- package/dist/memory/cloud-sync.d.ts +86 -0
- package/dist/memory/cloud-sync.d.ts.map +1 -0
- package/dist/memory/cloud-sync.js +195 -0
- package/dist/memory/cloud-sync.js.map +1 -0
- package/dist/memory/community-detection.d.ts +104 -0
- package/dist/memory/community-detection.d.ts.map +1 -0
- package/dist/memory/community-detection.js +287 -0
- package/dist/memory/community-detection.js.map +1 -0
- package/dist/memory/context-builder.d.ts +112 -0
- package/dist/memory/context-builder.d.ts.map +1 -0
- package/dist/memory/context-builder.js +251 -0
- package/dist/memory/context-builder.js.map +1 -0
- package/dist/memory/context-fence.d.ts +88 -0
- package/dist/memory/context-fence.d.ts.map +1 -0
- package/dist/memory/context-fence.js +166 -0
- package/dist/memory/context-fence.js.map +1 -0
- package/dist/memory/context-loader.d.ts +111 -0
- package/dist/memory/context-loader.d.ts.map +1 -0
- package/dist/memory/context-loader.js +215 -0
- package/dist/memory/context-loader.js.map +1 -0
- package/dist/memory/context-tree-files.d.ts +56 -0
- package/dist/memory/context-tree-files.d.ts.map +1 -0
- package/dist/memory/context-tree-files.js +185 -0
- package/dist/memory/context-tree-files.js.map +1 -0
- package/dist/memory/context-tree.d.ts +75 -0
- package/dist/memory/context-tree.d.ts.map +1 -0
- package/dist/memory/context-tree.js +302 -0
- package/dist/memory/context-tree.js.map +1 -0
- package/dist/memory/contextual-embeddings.d.ts +106 -0
- package/dist/memory/contextual-embeddings.d.ts.map +1 -0
- package/dist/memory/contextual-embeddings.js +210 -0
- package/dist/memory/contextual-embeddings.js.map +1 -0
- package/dist/memory/contradiction-detector.d.ts +81 -0
- package/dist/memory/contradiction-detector.d.ts.map +1 -0
- package/dist/memory/contradiction-detector.js +248 -0
- package/dist/memory/contradiction-detector.js.map +1 -0
- package/dist/memory/conversation-miner.d.ts +53 -0
- package/dist/memory/conversation-miner.d.ts.map +1 -0
- package/dist/memory/conversation-miner.js +416 -0
- package/dist/memory/conversation-miner.js.map +1 -0
- package/dist/memory/cross-encoder.d.ts +78 -0
- package/dist/memory/cross-encoder.d.ts.map +1 -0
- package/dist/memory/cross-encoder.js +124 -0
- package/dist/memory/cross-encoder.js.map +1 -0
- package/dist/memory/dual-timestamp.d.ts +115 -0
- package/dist/memory/dual-timestamp.d.ts.map +1 -0
- package/dist/memory/dual-timestamp.js +253 -0
- package/dist/memory/dual-timestamp.js.map +1 -0
- package/dist/memory/embedding-profiles.d.ts +98 -0
- package/dist/memory/embedding-profiles.d.ts.map +1 -0
- package/dist/memory/embedding-profiles.js +193 -0
- package/dist/memory/embedding-profiles.js.map +1 -0
- package/dist/memory/entity-types.d.ts +271 -0
- package/dist/memory/entity-types.d.ts.map +1 -0
- package/dist/memory/entity-types.js +205 -0
- package/dist/memory/entity-types.js.map +1 -0
- package/dist/memory/episodic-memory.d.ts +149 -0
- package/dist/memory/episodic-memory.d.ts.map +1 -0
- package/dist/memory/episodic-memory.js +399 -0
- package/dist/memory/episodic-memory.js.map +1 -0
- package/dist/memory/evals/longmemeval/corpus.d.ts +115 -0
- package/dist/memory/evals/longmemeval/corpus.d.ts.map +1 -0
- package/dist/memory/evals/longmemeval/corpus.js +419 -0
- package/dist/memory/evals/longmemeval/corpus.js.map +1 -0
- package/dist/memory/evals/longmemeval/index.d.ts +31 -0
- package/dist/memory/evals/longmemeval/index.d.ts.map +1 -0
- package/dist/memory/evals/longmemeval/index.js +31 -0
- package/dist/memory/evals/longmemeval/index.js.map +1 -0
- package/dist/memory/evals/longmemeval/runner.d.ts +81 -0
- package/dist/memory/evals/longmemeval/runner.d.ts.map +1 -0
- package/dist/memory/evals/longmemeval/runner.js +258 -0
- package/dist/memory/evals/longmemeval/runner.js.map +1 -0
- package/dist/memory/evals/longmemeval/scorer.d.ts +135 -0
- package/dist/memory/evals/longmemeval/scorer.d.ts.map +1 -0
- package/dist/memory/evals/longmemeval/scorer.js +452 -0
- package/dist/memory/evals/longmemeval/scorer.js.map +1 -0
- package/dist/memory/extended-search-types.d.ts +96 -0
- package/dist/memory/extended-search-types.d.ts.map +1 -0
- package/dist/memory/extended-search-types.js +245 -0
- package/dist/memory/extended-search-types.js.map +1 -0
- package/dist/memory/folded-context.d.ts +80 -0
- package/dist/memory/folded-context.d.ts.map +1 -0
- package/dist/memory/folded-context.js +196 -0
- package/dist/memory/folded-context.js.map +1 -0
- package/dist/memory/freshness-decay.d.ts +89 -0
- package/dist/memory/freshness-decay.d.ts.map +1 -0
- package/dist/memory/freshness-decay.js +134 -0
- package/dist/memory/freshness-decay.js.map +1 -0
- package/dist/memory/graph-rag.d.ts +166 -0
- package/dist/memory/graph-rag.d.ts.map +1 -0
- package/dist/memory/graph-rag.js +573 -0
- package/dist/memory/graph-rag.js.map +1 -0
- package/dist/memory/guidance-whisper.d.ts +37 -0
- package/dist/memory/guidance-whisper.d.ts.map +1 -0
- package/dist/memory/guidance-whisper.js +76 -0
- package/dist/memory/guidance-whisper.js.map +1 -0
- package/dist/memory/hybrid-retrieval-v2.d.ts +154 -0
- package/dist/memory/hybrid-retrieval-v2.d.ts.map +1 -0
- package/dist/memory/hybrid-retrieval-v2.js +295 -0
- package/dist/memory/hybrid-retrieval-v2.js.map +1 -0
- package/dist/memory/hybrid-retrieval.d.ts +87 -0
- package/dist/memory/hybrid-retrieval.d.ts.map +1 -0
- package/dist/memory/hybrid-retrieval.js +244 -0
- package/dist/memory/hybrid-retrieval.js.map +1 -0
- package/dist/memory/incremental-indexer.d.ts +117 -0
- package/dist/memory/incremental-indexer.d.ts.map +1 -0
- package/dist/memory/incremental-indexer.js +200 -0
- package/dist/memory/incremental-indexer.js.map +1 -0
- package/dist/memory/knowledge-update-dynamics.d.ts +95 -0
- package/dist/memory/knowledge-update-dynamics.d.ts.map +1 -0
- package/dist/memory/knowledge-update-dynamics.js +154 -0
- package/dist/memory/knowledge-update-dynamics.js.map +1 -0
- package/dist/memory/mem-palace.d.ts +99 -0
- package/dist/memory/mem-palace.d.ts.map +1 -0
- package/dist/memory/mem-palace.js +215 -0
- package/dist/memory/mem-palace.js.map +1 -0
- package/dist/memory/mem0-add-only.d.ts +140 -0
- package/dist/memory/mem0-add-only.d.ts.map +1 -0
- package/dist/memory/mem0-add-only.js +279 -0
- package/dist/memory/mem0-add-only.js.map +1 -0
- package/dist/memory/memory-benchmark.d.ts +99 -0
- package/dist/memory/memory-benchmark.d.ts.map +1 -0
- package/dist/memory/memory-benchmark.js +393 -0
- package/dist/memory/memory-benchmark.js.map +1 -0
- package/dist/memory/memory-tools.d.ts +147 -0
- package/dist/memory/memory-tools.d.ts.map +1 -0
- package/dist/memory/memory-tools.js +415 -0
- package/dist/memory/memory-tools.js.map +1 -0
- package/dist/memory/memvid-backend.d.ts +122 -0
- package/dist/memory/memvid-backend.d.ts.map +1 -0
- package/dist/memory/memvid-backend.js +302 -0
- package/dist/memory/memvid-backend.js.map +1 -0
- package/dist/memory/multi-tier.d.ts +87 -0
- package/dist/memory/multi-tier.d.ts.map +1 -0
- package/dist/memory/multi-tier.js +186 -0
- package/dist/memory/multi-tier.js.map +1 -0
- package/dist/memory/observation-extractor.d.ts +122 -0
- package/dist/memory/observation-extractor.d.ts.map +1 -0
- package/dist/memory/observation-extractor.js +529 -0
- package/dist/memory/observation-extractor.js.map +1 -0
- package/dist/memory/observer.d.ts +159 -0
- package/dist/memory/observer.d.ts.map +1 -0
- package/dist/memory/observer.js +273 -0
- package/dist/memory/observer.js.map +1 -0
- package/dist/memory/omega-layers.d.ts +136 -0
- package/dist/memory/omega-layers.d.ts.map +1 -0
- package/dist/memory/omega-layers.js +263 -0
- package/dist/memory/omega-layers.js.map +1 -0
- package/dist/memory/onnx-cross-encoder.d.ts +239 -0
- package/dist/memory/onnx-cross-encoder.d.ts.map +1 -0
- package/dist/memory/onnx-cross-encoder.js +627 -0
- package/dist/memory/onnx-cross-encoder.js.map +1 -0
- package/dist/memory/persona-tree.d.ts +102 -0
- package/dist/memory/persona-tree.d.ts.map +1 -0
- package/dist/memory/persona-tree.js +269 -0
- package/dist/memory/persona-tree.js.map +1 -0
- package/dist/memory/pluggable-provider.d.ts +140 -0
- package/dist/memory/pluggable-provider.d.ts.map +1 -0
- package/dist/memory/pluggable-provider.js +253 -0
- package/dist/memory/pluggable-provider.js.map +1 -0
- package/dist/memory/proactive-memory.d.ts +59 -0
- package/dist/memory/proactive-memory.d.ts.map +1 -0
- package/dist/memory/proactive-memory.js +296 -0
- package/dist/memory/proactive-memory.js.map +1 -0
- package/dist/memory/progressive-context-loader.d.ts +153 -0
- package/dist/memory/progressive-context-loader.d.ts.map +1 -0
- package/dist/memory/progressive-context-loader.js +212 -0
- package/dist/memory/progressive-context-loader.js.map +1 -0
- package/dist/memory/qmd-integration.d.ts +23 -0
- package/dist/memory/qmd-integration.d.ts.map +1 -0
- package/dist/memory/qmd-integration.js +149 -0
- package/dist/memory/qmd-integration.js.map +1 -0
- package/dist/memory/quantized-vector-store.d.ts +126 -0
- package/dist/memory/quantized-vector-store.d.ts.map +1 -0
- package/dist/memory/quantized-vector-store.js +151 -0
- package/dist/memory/quantized-vector-store.js.map +1 -0
- package/dist/memory/reflector.d.ts +158 -0
- package/dist/memory/reflector.d.ts.map +1 -0
- package/dist/memory/reflector.js +315 -0
- package/dist/memory/reflector.js.map +1 -0
- package/dist/memory/relationship-types.d.ts +117 -0
- package/dist/memory/relationship-types.d.ts.map +1 -0
- package/dist/memory/relationship-types.js +215 -0
- package/dist/memory/relationship-types.js.map +1 -0
- package/dist/memory/retrieval-modes/authority-weight.d.ts +17 -0
- package/dist/memory/retrieval-modes/authority-weight.d.ts.map +1 -0
- package/dist/memory/retrieval-modes/authority-weight.js +40 -0
- package/dist/memory/retrieval-modes/authority-weight.js.map +1 -0
- package/dist/memory/retrieval-modes/cross-session-bridge.d.ts +16 -0
- package/dist/memory/retrieval-modes/cross-session-bridge.d.ts.map +1 -0
- package/dist/memory/retrieval-modes/cross-session-bridge.js +68 -0
- package/dist/memory/retrieval-modes/cross-session-bridge.js.map +1 -0
- package/dist/memory/retrieval-modes/fact-time-travel.d.ts +19 -0
- package/dist/memory/retrieval-modes/fact-time-travel.d.ts.map +1 -0
- package/dist/memory/retrieval-modes/fact-time-travel.js +89 -0
- package/dist/memory/retrieval-modes/fact-time-travel.js.map +1 -0
- package/dist/memory/retrieval-modes/fuzzy-match.d.ts +16 -0
- package/dist/memory/retrieval-modes/fuzzy-match.d.ts.map +1 -0
- package/dist/memory/retrieval-modes/fuzzy-match.js +67 -0
- package/dist/memory/retrieval-modes/fuzzy-match.js.map +1 -0
- package/dist/memory/retrieval-modes/graph-traversal.d.ts +16 -0
- package/dist/memory/retrieval-modes/graph-traversal.d.ts.map +1 -0
- package/dist/memory/retrieval-modes/graph-traversal.js +88 -0
- package/dist/memory/retrieval-modes/graph-traversal.js.map +1 -0
- package/dist/memory/retrieval-modes/ingest-time-travel.d.ts +21 -0
- package/dist/memory/retrieval-modes/ingest-time-travel.d.ts.map +1 -0
- package/dist/memory/retrieval-modes/ingest-time-travel.js +73 -0
- package/dist/memory/retrieval-modes/ingest-time-travel.js.map +1 -0
- package/dist/memory/retrieval-modes/path-based.d.ts +16 -0
- package/dist/memory/retrieval-modes/path-based.d.ts.map +1 -0
- package/dist/memory/retrieval-modes/path-based.js +110 -0
- package/dist/memory/retrieval-modes/path-based.js.map +1 -0
- package/dist/memory/retrieval-modes/semantic-cluster.d.ts +20 -0
- package/dist/memory/retrieval-modes/semantic-cluster.d.ts.map +1 -0
- package/dist/memory/retrieval-modes/semantic-cluster.js +159 -0
- package/dist/memory/retrieval-modes/semantic-cluster.js.map +1 -0
- package/dist/memory/retrieval-modes/summary-first.d.ts +17 -0
- package/dist/memory/retrieval-modes/summary-first.d.ts.map +1 -0
- package/dist/memory/retrieval-modes/summary-first.js +82 -0
- package/dist/memory/retrieval-modes/summary-first.js.map +1 -0
- package/dist/memory/retrieval-modes/temporal-window.d.ts +15 -0
- package/dist/memory/retrieval-modes/temporal-window.d.ts.map +1 -0
- package/dist/memory/retrieval-modes/temporal-window.js +52 -0
- package/dist/memory/retrieval-modes/temporal-window.js.map +1 -0
- package/dist/memory/retrieval-modes/time-decay.d.ts +16 -0
- package/dist/memory/retrieval-modes/time-decay.d.ts.map +1 -0
- package/dist/memory/retrieval-modes/time-decay.js +54 -0
- package/dist/memory/retrieval-modes/time-decay.js.map +1 -0
- package/dist/memory/retrieval-modes/typed-entity.d.ts +15 -0
- package/dist/memory/retrieval-modes/typed-entity.d.ts.map +1 -0
- package/dist/memory/retrieval-modes/typed-entity.js +75 -0
- package/dist/memory/retrieval-modes/typed-entity.js.map +1 -0
- package/dist/memory/retrieval-modes/types.d.ts +98 -0
- package/dist/memory/retrieval-modes/types.d.ts.map +1 -0
- package/dist/memory/retrieval-modes/types.js +24 -0
- package/dist/memory/retrieval-modes/types.js.map +1 -0
- package/dist/memory/retrieval-quality.d.ts +73 -0
- package/dist/memory/retrieval-quality.d.ts.map +1 -0
- package/dist/memory/retrieval-quality.js +117 -0
- package/dist/memory/retrieval-quality.js.map +1 -0
- package/dist/memory/retrieval-registry.d.ts +51 -0
- package/dist/memory/retrieval-registry.d.ts.map +1 -0
- package/dist/memory/retrieval-registry.js +73 -0
- package/dist/memory/retrieval-registry.js.map +1 -0
- package/dist/memory/rrf.d.ts +65 -0
- package/dist/memory/rrf.d.ts.map +1 -0
- package/dist/memory/rrf.js +84 -0
- package/dist/memory/rrf.js.map +1 -0
- package/dist/memory/semantic-cache.d.ts +77 -0
- package/dist/memory/semantic-cache.d.ts.map +1 -0
- package/dist/memory/semantic-cache.js +182 -0
- package/dist/memory/semantic-cache.js.map +1 -0
- package/dist/memory/semantic-search.d.ts +93 -0
- package/dist/memory/semantic-search.d.ts.map +1 -0
- package/dist/memory/semantic-search.js +276 -0
- package/dist/memory/semantic-search.js.map +1 -0
- package/dist/memory/session-ingestion.d.ts +209 -0
- package/dist/memory/session-ingestion.d.ts.map +1 -0
- package/dist/memory/session-ingestion.js +314 -0
- package/dist/memory/session-ingestion.js.map +1 -0
- package/dist/memory/sqlite-vec-backend.d.ts +77 -0
- package/dist/memory/sqlite-vec-backend.d.ts.map +1 -0
- package/dist/memory/sqlite-vec-backend.js +255 -0
- package/dist/memory/sqlite-vec-backend.js.map +1 -0
- package/dist/memory/stable-prefix.d.ts +123 -0
- package/dist/memory/stable-prefix.d.ts.map +1 -0
- package/dist/memory/stable-prefix.js +209 -0
- package/dist/memory/stable-prefix.js.map +1 -0
- package/dist/memory/store.d.ts +1090 -0
- package/dist/memory/store.d.ts.map +1 -0
- package/dist/memory/store.js +3571 -0
- package/dist/memory/store.js.map +1 -0
- package/dist/memory/temporal-memory.d.ts +113 -0
- package/dist/memory/temporal-memory.d.ts.map +1 -0
- package/dist/memory/temporal-memory.js +358 -0
- package/dist/memory/temporal-memory.js.map +1 -0
- package/dist/memory/tempr.d.ts +129 -0
- package/dist/memory/tempr.d.ts.map +1 -0
- package/dist/memory/tempr.js +175 -0
- package/dist/memory/tempr.js.map +1 -0
- package/dist/memory/tunnel-detector.d.ts +82 -0
- package/dist/memory/tunnel-detector.d.ts.map +1 -0
- package/dist/memory/tunnel-detector.js +122 -0
- package/dist/memory/tunnel-detector.js.map +1 -0
- package/dist/memory/unified-knowledge.d.ts +58 -0
- package/dist/memory/unified-knowledge.d.ts.map +1 -0
- package/dist/memory/unified-knowledge.js +85 -0
- package/dist/memory/unified-knowledge.js.map +1 -0
- package/dist/memory/vector-store.d.ts +140 -0
- package/dist/memory/vector-store.d.ts.map +1 -0
- package/dist/memory/vector-store.js +399 -0
- package/dist/memory/vector-store.js.map +1 -0
- package/dist/memory/web-history-bank.d.ts +70 -0
- package/dist/memory/web-history-bank.d.ts.map +1 -0
- package/dist/memory/web-history-bank.js +175 -0
- package/dist/memory/web-history-bank.js.map +1 -0
- package/dist/memory/whisper-hook.d.ts +19 -0
- package/dist/memory/whisper-hook.d.ts.map +1 -0
- package/dist/memory/whisper-hook.js +35 -0
- package/dist/memory/whisper-hook.js.map +1 -0
- package/dist/memory/wings-rooms-halls.d.ts +107 -0
- package/dist/memory/wings-rooms-halls.d.ts.map +1 -0
- package/dist/memory/wings-rooms-halls.js +214 -0
- package/dist/memory/wings-rooms-halls.js.map +1 -0
- package/dist/middleware/auto-install.d.ts +94 -0
- package/dist/middleware/auto-install.d.ts.map +1 -0
- package/dist/middleware/auto-install.js +254 -0
- package/dist/middleware/auto-install.js.map +1 -0
- package/dist/middleware/dangling-tool-call.d.ts +59 -0
- package/dist/middleware/dangling-tool-call.d.ts.map +1 -0
- package/dist/middleware/dangling-tool-call.js +124 -0
- package/dist/middleware/dangling-tool-call.js.map +1 -0
- package/dist/middleware/deferred-tool-filter.d.ts +149 -0
- package/dist/middleware/deferred-tool-filter.d.ts.map +1 -0
- package/dist/middleware/deferred-tool-filter.js +321 -0
- package/dist/middleware/deferred-tool-filter.js.map +1 -0
- package/dist/middleware/doom-loop.d.ts +119 -0
- package/dist/middleware/doom-loop.d.ts.map +1 -0
- package/dist/middleware/doom-loop.js +362 -0
- package/dist/middleware/doom-loop.js.map +1 -0
- package/dist/middleware/file-type-gate.d.ts +140 -0
- package/dist/middleware/file-type-gate.d.ts.map +1 -0
- package/dist/middleware/file-type-gate.js +486 -0
- package/dist/middleware/file-type-gate.js.map +1 -0
- package/dist/middleware/guardrail-provider.d.ts +125 -0
- package/dist/middleware/guardrail-provider.d.ts.map +1 -0
- package/dist/middleware/guardrail-provider.js +216 -0
- package/dist/middleware/guardrail-provider.js.map +1 -0
- package/dist/middleware/intent-gate.d.ts +8 -0
- package/dist/middleware/intent-gate.d.ts.map +1 -0
- package/dist/middleware/intent-gate.js +184 -0
- package/dist/middleware/intent-gate.js.map +1 -0
- package/dist/middleware/layers.d.ts +71 -0
- package/dist/middleware/layers.d.ts.map +1 -0
- package/dist/middleware/layers.js +529 -0
- package/dist/middleware/layers.js.map +1 -0
- package/dist/middleware/llm-error-handling.d.ts +98 -0
- package/dist/middleware/llm-error-handling.d.ts.map +1 -0
- package/dist/middleware/llm-error-handling.js +315 -0
- package/dist/middleware/llm-error-handling.js.map +1 -0
- package/dist/middleware/local-context.d.ts +47 -0
- package/dist/middleware/local-context.d.ts.map +1 -0
- package/dist/middleware/local-context.js +237 -0
- package/dist/middleware/local-context.js.map +1 -0
- package/dist/middleware/loop-detection.d.ts +87 -0
- package/dist/middleware/loop-detection.d.ts.map +1 -0
- package/dist/middleware/loop-detection.js +168 -0
- package/dist/middleware/loop-detection.js.map +1 -0
- package/dist/middleware/model-call-limit.d.ts +98 -0
- package/dist/middleware/model-call-limit.d.ts.map +1 -0
- package/dist/middleware/model-call-limit.js +160 -0
- package/dist/middleware/model-call-limit.js.map +1 -0
- package/dist/middleware/non-interactive.d.ts +82 -0
- package/dist/middleware/non-interactive.d.ts.map +1 -0
- package/dist/middleware/non-interactive.js +195 -0
- package/dist/middleware/non-interactive.js.map +1 -0
- package/dist/middleware/output-truncation.d.ts +72 -0
- package/dist/middleware/output-truncation.d.ts.map +1 -0
- package/dist/middleware/output-truncation.js +152 -0
- package/dist/middleware/output-truncation.js.map +1 -0
- package/dist/middleware/pipeline.d.ts +142 -0
- package/dist/middleware/pipeline.d.ts.map +1 -0
- package/dist/middleware/pipeline.js +426 -0
- package/dist/middleware/pipeline.js.map +1 -0
- package/dist/middleware/plan-enforcement.d.ts +102 -0
- package/dist/middleware/plan-enforcement.d.ts.map +1 -0
- package/dist/middleware/plan-enforcement.js +247 -0
- package/dist/middleware/plan-enforcement.js.map +1 -0
- package/dist/middleware/pre-completion-checklist.d.ts +124 -0
- package/dist/middleware/pre-completion-checklist.d.ts.map +1 -0
- package/dist/middleware/pre-completion-checklist.js +401 -0
- package/dist/middleware/pre-completion-checklist.js.map +1 -0
- package/dist/middleware/reasoning-sandwich.d.ts +131 -0
- package/dist/middleware/reasoning-sandwich.d.ts.map +1 -0
- package/dist/middleware/reasoning-sandwich.js +476 -0
- package/dist/middleware/reasoning-sandwich.js.map +1 -0
- package/dist/middleware/response-cache.d.ts +118 -0
- package/dist/middleware/response-cache.d.ts.map +1 -0
- package/dist/middleware/response-cache.js +267 -0
- package/dist/middleware/response-cache.js.map +1 -0
- package/dist/middleware/sandbox-audit.d.ts +124 -0
- package/dist/middleware/sandbox-audit.d.ts.map +1 -0
- package/dist/middleware/sandbox-audit.js +319 -0
- package/dist/middleware/sandbox-audit.js.map +1 -0
- package/dist/middleware/sanitize-tool-inputs.d.ts +84 -0
- package/dist/middleware/sanitize-tool-inputs.d.ts.map +1 -0
- package/dist/middleware/sanitize-tool-inputs.js +235 -0
- package/dist/middleware/sanitize-tool-inputs.js.map +1 -0
- package/dist/middleware/stale-detection.d.ts +103 -0
- package/dist/middleware/stale-detection.d.ts.map +1 -0
- package/dist/middleware/stale-detection.js +211 -0
- package/dist/middleware/stale-detection.js.map +1 -0
- package/dist/middleware/system-notifications.d.ts +92 -0
- package/dist/middleware/system-notifications.d.ts.map +1 -0
- package/dist/middleware/system-notifications.js +280 -0
- package/dist/middleware/system-notifications.js.map +1 -0
- package/dist/middleware/title.d.ts +83 -0
- package/dist/middleware/title.d.ts.map +1 -0
- package/dist/middleware/title.js +162 -0
- package/dist/middleware/title.js.map +1 -0
- package/dist/middleware/tool-flow-gate.d.ts +74 -0
- package/dist/middleware/tool-flow-gate.d.ts.map +1 -0
- package/dist/middleware/tool-flow-gate.js +105 -0
- package/dist/middleware/tool-flow-gate.js.map +1 -0
- package/dist/middleware/tool-pair-validator.d.ts +61 -0
- package/dist/middleware/tool-pair-validator.d.ts.map +1 -0
- package/dist/middleware/tool-pair-validator.js +127 -0
- package/dist/middleware/tool-pair-validator.js.map +1 -0
- package/dist/middleware/trifecta-guard.d.ts +132 -0
- package/dist/middleware/trifecta-guard.d.ts.map +1 -0
- package/dist/middleware/trifecta-guard.js +261 -0
- package/dist/middleware/trifecta-guard.js.map +1 -0
- package/dist/middleware/ttsr.d.ts +40 -0
- package/dist/middleware/ttsr.d.ts.map +1 -0
- package/dist/middleware/ttsr.js +107 -0
- package/dist/middleware/ttsr.js.map +1 -0
- package/dist/middleware/types.d.ts +68 -0
- package/dist/middleware/types.d.ts.map +1 -0
- package/dist/middleware/types.js +7 -0
- package/dist/middleware/types.js.map +1 -0
- package/dist/middleware/verification-enforcement.d.ts +89 -0
- package/dist/middleware/verification-enforcement.d.ts.map +1 -0
- package/dist/middleware/verification-enforcement.js +192 -0
- package/dist/middleware/verification-enforcement.js.map +1 -0
- package/dist/middleware/verifier.d.ts +44 -0
- package/dist/middleware/verifier.d.ts.map +1 -0
- package/dist/middleware/verifier.js +103 -0
- package/dist/middleware/verifier.js.map +1 -0
- package/dist/mobile/haptic-feedback.d.ts +25 -0
- package/dist/mobile/haptic-feedback.d.ts.map +1 -0
- package/dist/mobile/haptic-feedback.js +46 -0
- package/dist/mobile/haptic-feedback.js.map +1 -0
- package/dist/mobile/ios-app.d.ts +285 -0
- package/dist/mobile/ios-app.d.ts.map +1 -0
- package/dist/mobile/ios-app.js +539 -0
- package/dist/mobile/ios-app.js.map +1 -0
- package/dist/mobile/ios-types.d.ts +185 -0
- package/dist/mobile/ios-types.d.ts.map +1 -0
- package/dist/mobile/ios-types.js +117 -0
- package/dist/mobile/ios-types.js.map +1 -0
- package/dist/mobile/secure-auth.d.ts +123 -0
- package/dist/mobile/secure-auth.d.ts.map +1 -0
- package/dist/mobile/secure-auth.js +220 -0
- package/dist/mobile/secure-auth.js.map +1 -0
- package/dist/modes/agentless/localize.d.ts +52 -0
- package/dist/modes/agentless/localize.d.ts.map +1 -0
- package/dist/modes/agentless/localize.js +200 -0
- package/dist/modes/agentless/localize.js.map +1 -0
- package/dist/modes/agentless/orchestrator.d.ts +49 -0
- package/dist/modes/agentless/orchestrator.d.ts.map +1 -0
- package/dist/modes/agentless/orchestrator.js +94 -0
- package/dist/modes/agentless/orchestrator.js.map +1 -0
- package/dist/modes/agentless/repair.d.ts +45 -0
- package/dist/modes/agentless/repair.d.ts.map +1 -0
- package/dist/modes/agentless/repair.js +122 -0
- package/dist/modes/agentless/repair.js.map +1 -0
- package/dist/modes/agentless/types.d.ts +126 -0
- package/dist/modes/agentless/types.d.ts.map +1 -0
- package/dist/modes/agentless/types.js +13 -0
- package/dist/modes/agentless/types.js.map +1 -0
- package/dist/modes/agentless/validate.d.ts +46 -0
- package/dist/modes/agentless/validate.d.ts.map +1 -0
- package/dist/modes/agentless/validate.js +125 -0
- package/dist/modes/agentless/validate.js.map +1 -0
- package/dist/monitoring/source-monitor.d.ts +53 -0
- package/dist/monitoring/source-monitor.d.ts.map +1 -0
- package/dist/monitoring/source-monitor.js +251 -0
- package/dist/monitoring/source-monitor.js.map +1 -0
- package/dist/observability/openinference.d.ts +213 -0
- package/dist/observability/openinference.d.ts.map +1 -0
- package/dist/observability/openinference.js +336 -0
- package/dist/observability/openinference.js.map +1 -0
- package/dist/observability/otel-exporter.d.ts +142 -0
- package/dist/observability/otel-exporter.d.ts.map +1 -0
- package/dist/observability/otel-exporter.js +336 -0
- package/dist/observability/otel-exporter.js.map +1 -0
- package/dist/optimize/ripple-test-scope.d.ts +75 -0
- package/dist/optimize/ripple-test-scope.d.ts.map +1 -0
- package/dist/optimize/ripple-test-scope.js +121 -0
- package/dist/optimize/ripple-test-scope.js.map +1 -0
- package/dist/optimize/textgrad-critic.d.ts +46 -0
- package/dist/optimize/textgrad-critic.d.ts.map +1 -0
- package/dist/optimize/textgrad-critic.js +185 -0
- package/dist/optimize/textgrad-critic.js.map +1 -0
- package/dist/optimize/textgrad-optimizer.d.ts +119 -0
- package/dist/optimize/textgrad-optimizer.d.ts.map +1 -0
- package/dist/optimize/textgrad-optimizer.js +320 -0
- package/dist/optimize/textgrad-optimizer.js.map +1 -0
- package/dist/optimize/textgrad-types.d.ts +122 -0
- package/dist/optimize/textgrad-types.d.ts.map +1 -0
- package/dist/optimize/textgrad-types.js +61 -0
- package/dist/optimize/textgrad-types.js.map +1 -0
- package/dist/orchestration/agent-flows/command-blocks.d.ts +68 -0
- package/dist/orchestration/agent-flows/command-blocks.d.ts.map +1 -0
- package/dist/orchestration/agent-flows/command-blocks.js +94 -0
- package/dist/orchestration/agent-flows/command-blocks.js.map +1 -0
- package/dist/orchestration/agent-hierarchy.d.ts +75 -0
- package/dist/orchestration/agent-hierarchy.d.ts.map +1 -0
- package/dist/orchestration/agent-hierarchy.js +165 -0
- package/dist/orchestration/agent-hierarchy.js.map +1 -0
- package/dist/orchestration/agent-registry.d.ts +224 -0
- package/dist/orchestration/agent-registry.d.ts.map +1 -0
- package/dist/orchestration/agent-registry.js +753 -0
- package/dist/orchestration/agent-registry.js.map +1 -0
- package/dist/orchestration/agent-workspace.d.ts +60 -0
- package/dist/orchestration/agent-workspace.d.ts.map +1 -0
- package/dist/orchestration/agent-workspace.js +174 -0
- package/dist/orchestration/agent-workspace.js.map +1 -0
- package/dist/orchestration/architect-editor.d.ts +80 -0
- package/dist/orchestration/architect-editor.d.ts.map +1 -0
- package/dist/orchestration/architect-editor.js +130 -0
- package/dist/orchestration/architect-editor.js.map +1 -0
- package/dist/orchestration/architect-implement.d.ts +38 -0
- package/dist/orchestration/architect-implement.d.ts.map +1 -0
- package/dist/orchestration/architect-implement.js +88 -0
- package/dist/orchestration/architect-implement.js.map +1 -0
- package/dist/orchestration/archon-workflow-loader.d.ts +63 -0
- package/dist/orchestration/archon-workflow-loader.d.ts.map +1 -0
- package/dist/orchestration/archon-workflow-loader.js +202 -0
- package/dist/orchestration/archon-workflow-loader.js.map +1 -0
- package/dist/orchestration/arena.d.ts +69 -0
- package/dist/orchestration/arena.d.ts.map +1 -0
- package/dist/orchestration/arena.js +157 -0
- package/dist/orchestration/arena.js.map +1 -0
- package/dist/orchestration/auto-commit.d.ts +60 -0
- package/dist/orchestration/auto-commit.d.ts.map +1 -0
- package/dist/orchestration/auto-commit.js +223 -0
- package/dist/orchestration/auto-commit.js.map +1 -0
- package/dist/orchestration/autonomous-context.d.ts +105 -0
- package/dist/orchestration/autonomous-context.d.ts.map +1 -0
- package/dist/orchestration/autonomous-context.js +246 -0
- package/dist/orchestration/autonomous-context.js.map +1 -0
- package/dist/orchestration/autonomous.d.ts +386 -0
- package/dist/orchestration/autonomous.d.ts.map +1 -0
- package/dist/orchestration/autonomous.js +1163 -0
- package/dist/orchestration/autonomous.js.map +1 -0
- package/dist/orchestration/canary-monitor.d.ts +66 -0
- package/dist/orchestration/canary-monitor.d.ts.map +1 -0
- package/dist/orchestration/canary-monitor.js +157 -0
- package/dist/orchestration/canary-monitor.js.map +1 -0
- package/dist/orchestration/code-mode.d.ts +63 -0
- package/dist/orchestration/code-mode.d.ts.map +1 -0
- package/dist/orchestration/code-mode.js +218 -0
- package/dist/orchestration/code-mode.js.map +1 -0
- package/dist/orchestration/coordinator.d.ts +129 -0
- package/dist/orchestration/coordinator.d.ts.map +1 -0
- package/dist/orchestration/coordinator.js +355 -0
- package/dist/orchestration/coordinator.js.map +1 -0
- package/dist/orchestration/council.d.ts +163 -0
- package/dist/orchestration/council.d.ts.map +1 -0
- package/dist/orchestration/council.js +391 -0
- package/dist/orchestration/council.js.map +1 -0
- package/dist/orchestration/cowork.d.ts +198 -0
- package/dist/orchestration/cowork.d.ts.map +1 -0
- package/dist/orchestration/cowork.js +185 -0
- package/dist/orchestration/cowork.js.map +1 -0
- package/dist/orchestration/coze-flow/flow.d.ts +68 -0
- package/dist/orchestration/coze-flow/flow.d.ts.map +1 -0
- package/dist/orchestration/coze-flow/flow.js +126 -0
- package/dist/orchestration/coze-flow/flow.js.map +1 -0
- package/dist/orchestration/crew.d.ts +68 -0
- package/dist/orchestration/crew.d.ts.map +1 -0
- package/dist/orchestration/crew.js +130 -0
- package/dist/orchestration/crew.js.map +1 -0
- package/dist/orchestration/critic-rerank.d.ts +119 -0
- package/dist/orchestration/critic-rerank.d.ts.map +1 -0
- package/dist/orchestration/critic-rerank.js +207 -0
- package/dist/orchestration/critic-rerank.js.map +1 -0
- package/dist/orchestration/dag-runner.d.ts +78 -0
- package/dist/orchestration/dag-runner.d.ts.map +1 -0
- package/dist/orchestration/dag-runner.js +176 -0
- package/dist/orchestration/dag-runner.js.map +1 -0
- package/dist/orchestration/dify-flow/builder.d.ts +64 -0
- package/dist/orchestration/dify-flow/builder.d.ts.map +1 -0
- package/dist/orchestration/dify-flow/builder.js +125 -0
- package/dist/orchestration/dify-flow/builder.js.map +1 -0
- package/dist/orchestration/dify-flow/langflow-engine.d.ts +71 -0
- package/dist/orchestration/dify-flow/langflow-engine.d.ts.map +1 -0
- package/dist/orchestration/dify-flow/langflow-engine.js +133 -0
- package/dist/orchestration/dify-flow/langflow-engine.js.map +1 -0
- package/dist/orchestration/dual-persona-reviewer.d.ts +131 -0
- package/dist/orchestration/dual-persona-reviewer.d.ts.map +1 -0
- package/dist/orchestration/dual-persona-reviewer.js +242 -0
- package/dist/orchestration/dual-persona-reviewer.js.map +1 -0
- package/dist/orchestration/durable-execution.d.ts +85 -0
- package/dist/orchestration/durable-execution.d.ts.map +1 -0
- package/dist/orchestration/durable-execution.js +221 -0
- package/dist/orchestration/durable-execution.js.map +1 -0
- package/dist/orchestration/dynamic-replan.d.ts +80 -0
- package/dist/orchestration/dynamic-replan.d.ts.map +1 -0
- package/dist/orchestration/dynamic-replan.js +109 -0
- package/dist/orchestration/dynamic-replan.js.map +1 -0
- package/dist/orchestration/file-transport.d.ts +44 -0
- package/dist/orchestration/file-transport.d.ts.map +1 -0
- package/dist/orchestration/file-transport.js +126 -0
- package/dist/orchestration/file-transport.js.map +1 -0
- package/dist/orchestration/flow-primitives.d.ts +99 -0
- package/dist/orchestration/flow-primitives.d.ts.map +1 -0
- package/dist/orchestration/flow-primitives.js +175 -0
- package/dist/orchestration/flow-primitives.js.map +1 -0
- package/dist/orchestration/flowise-canvas/canvas.d.ts +63 -0
- package/dist/orchestration/flowise-canvas/canvas.d.ts.map +1 -0
- package/dist/orchestration/flowise-canvas/canvas.js +137 -0
- package/dist/orchestration/flowise-canvas/canvas.js.map +1 -0
- package/dist/orchestration/generative-agents-deep/observation-stream.d.ts +69 -0
- package/dist/orchestration/generative-agents-deep/observation-stream.d.ts.map +1 -0
- package/dist/orchestration/generative-agents-deep/observation-stream.js +115 -0
- package/dist/orchestration/generative-agents-deep/observation-stream.js.map +1 -0
- package/dist/orchestration/generator-agent-loop.d.ts +136 -0
- package/dist/orchestration/generator-agent-loop.d.ts.map +1 -0
- package/dist/orchestration/generator-agent-loop.js +144 -0
- package/dist/orchestration/generator-agent-loop.js.map +1 -0
- package/dist/orchestration/goal-drift.d.ts +87 -0
- package/dist/orchestration/goal-drift.d.ts.map +1 -0
- package/dist/orchestration/goal-drift.js +278 -0
- package/dist/orchestration/goal-drift.js.map +1 -0
- package/dist/orchestration/graph-dsl.d.ts +47 -0
- package/dist/orchestration/graph-dsl.d.ts.map +1 -0
- package/dist/orchestration/graph-dsl.js +148 -0
- package/dist/orchestration/graph-dsl.js.map +1 -0
- package/dist/orchestration/handoffs.d.ts +118 -0
- package/dist/orchestration/handoffs.d.ts.map +1 -0
- package/dist/orchestration/handoffs.js +145 -0
- package/dist/orchestration/handoffs.js.map +1 -0
- package/dist/orchestration/issue-graph.d.ts +176 -0
- package/dist/orchestration/issue-graph.d.ts.map +1 -0
- package/dist/orchestration/issue-graph.js +313 -0
- package/dist/orchestration/issue-graph.js.map +1 -0
- package/dist/orchestration/jean-orchestrator.d.ts +79 -0
- package/dist/orchestration/jean-orchestrator.d.ts.map +1 -0
- package/dist/orchestration/jean-orchestrator.js +253 -0
- package/dist/orchestration/jean-orchestrator.js.map +1 -0
- package/dist/orchestration/jean-registries/command-registry.d.ts +85 -0
- package/dist/orchestration/jean-registries/command-registry.d.ts.map +1 -0
- package/dist/orchestration/jean-registries/command-registry.js +120 -0
- package/dist/orchestration/jean-registries/command-registry.js.map +1 -0
- package/dist/orchestration/jean-registries/event-registry.d.ts +80 -0
- package/dist/orchestration/jean-registries/event-registry.d.ts.map +1 -0
- package/dist/orchestration/jean-registries/event-registry.js +147 -0
- package/dist/orchestration/jean-registries/event-registry.js.map +1 -0
- package/dist/orchestration/jean-registries/process-registry.d.ts +71 -0
- package/dist/orchestration/jean-registries/process-registry.d.ts.map +1 -0
- package/dist/orchestration/jean-registries/process-registry.js +104 -0
- package/dist/orchestration/jean-registries/process-registry.js.map +1 -0
- package/dist/orchestration/jean-registries/result-registry.d.ts +71 -0
- package/dist/orchestration/jean-registries/result-registry.d.ts.map +1 -0
- package/dist/orchestration/jean-registries/result-registry.js +97 -0
- package/dist/orchestration/jean-registries/result-registry.js.map +1 -0
- package/dist/orchestration/librechat-multi/config.d.ts +61 -0
- package/dist/orchestration/librechat-multi/config.d.ts.map +1 -0
- package/dist/orchestration/librechat-multi/config.js +128 -0
- package/dist/orchestration/librechat-multi/config.js.map +1 -0
- package/dist/orchestration/living-spec.d.ts +49 -0
- package/dist/orchestration/living-spec.d.ts.map +1 -0
- package/dist/orchestration/living-spec.js +306 -0
- package/dist/orchestration/living-spec.js.map +1 -0
- package/dist/orchestration/long-horizon-orchestrator.d.ts +217 -0
- package/dist/orchestration/long-horizon-orchestrator.d.ts.map +1 -0
- package/dist/orchestration/long-horizon-orchestrator.js +543 -0
- package/dist/orchestration/long-horizon-orchestrator.js.map +1 -0
- package/dist/orchestration/long-horizon-runner.d.ts +88 -0
- package/dist/orchestration/long-horizon-runner.d.ts.map +1 -0
- package/dist/orchestration/long-horizon-runner.js +198 -0
- package/dist/orchestration/long-horizon-runner.js.map +1 -0
- package/dist/orchestration/loop-detector.d.ts +80 -0
- package/dist/orchestration/loop-detector.d.ts.map +1 -0
- package/dist/orchestration/loop-detector.js +225 -0
- package/dist/orchestration/loop-detector.js.map +1 -0
- package/dist/orchestration/meta-harness.d.ts +182 -0
- package/dist/orchestration/meta-harness.d.ts.map +1 -0
- package/dist/orchestration/meta-harness.js +499 -0
- package/dist/orchestration/meta-harness.js.map +1 -0
- package/dist/orchestration/multi-agent-society/agent.d.ts +88 -0
- package/dist/orchestration/multi-agent-society/agent.d.ts.map +1 -0
- package/dist/orchestration/multi-agent-society/agent.js +133 -0
- package/dist/orchestration/multi-agent-society/agent.js.map +1 -0
- package/dist/orchestration/multi-agent-society/society.d.ts +72 -0
- package/dist/orchestration/multi-agent-society/society.d.ts.map +1 -0
- package/dist/orchestration/multi-agent-society/society.js +114 -0
- package/dist/orchestration/multi-agent-society/society.js.map +1 -0
- package/dist/orchestration/multi-agent-society/world.d.ts +62 -0
- package/dist/orchestration/multi-agent-society/world.d.ts.map +1 -0
- package/dist/orchestration/multi-agent-society/world.js +109 -0
- package/dist/orchestration/multi-agent-society/world.js.map +1 -0
- package/dist/orchestration/owl/debate.d.ts +59 -0
- package/dist/orchestration/owl/debate.d.ts.map +1 -0
- package/dist/orchestration/owl/debate.js +84 -0
- package/dist/orchestration/owl/debate.js.map +1 -0
- package/dist/orchestration/parallel-coordinator.d.ts +55 -0
- package/dist/orchestration/parallel-coordinator.d.ts.map +1 -0
- package/dist/orchestration/parallel-coordinator.js +99 -0
- package/dist/orchestration/parallel-coordinator.js.map +1 -0
- package/dist/orchestration/paused-state.d.ts +81 -0
- package/dist/orchestration/paused-state.d.ts.map +1 -0
- package/dist/orchestration/paused-state.js +129 -0
- package/dist/orchestration/paused-state.js.map +1 -0
- package/dist/orchestration/persistence-policy.d.ts +97 -0
- package/dist/orchestration/persistence-policy.d.ts.map +1 -0
- package/dist/orchestration/persistence-policy.js +103 -0
- package/dist/orchestration/persistence-policy.js.map +1 -0
- package/dist/orchestration/phase-gate.d.ts +98 -0
- package/dist/orchestration/phase-gate.d.ts.map +1 -0
- package/dist/orchestration/phase-gate.js +146 -0
- package/dist/orchestration/phase-gate.js.map +1 -0
- package/dist/orchestration/phased-executor.d.ts +121 -0
- package/dist/orchestration/phased-executor.d.ts.map +1 -0
- package/dist/orchestration/phased-executor.js +188 -0
- package/dist/orchestration/phased-executor.js.map +1 -0
- package/dist/orchestration/plan-store.d.ts +167 -0
- package/dist/orchestration/plan-store.d.ts.map +1 -0
- package/dist/orchestration/plan-store.js +649 -0
- package/dist/orchestration/plan-store.js.map +1 -0
- package/dist/orchestration/plateau-detector.d.ts +63 -0
- package/dist/orchestration/plateau-detector.d.ts.map +1 -0
- package/dist/orchestration/plateau-detector.js +162 -0
- package/dist/orchestration/plateau-detector.js.map +1 -0
- package/dist/orchestration/proof-bundles.d.ts +71 -0
- package/dist/orchestration/proof-bundles.d.ts.map +1 -0
- package/dist/orchestration/proof-bundles.js +73 -0
- package/dist/orchestration/proof-bundles.js.map +1 -0
- package/dist/orchestration/pwr-cycle.d.ts +61 -0
- package/dist/orchestration/pwr-cycle.d.ts.map +1 -0
- package/dist/orchestration/pwr-cycle.js +141 -0
- package/dist/orchestration/pwr-cycle.js.map +1 -0
- package/dist/orchestration/ralph-mode.d.ts +50 -0
- package/dist/orchestration/ralph-mode.d.ts.map +1 -0
- package/dist/orchestration/ralph-mode.js +131 -0
- package/dist/orchestration/ralph-mode.js.map +1 -0
- package/dist/orchestration/red-blue-testing.d.ts +65 -0
- package/dist/orchestration/red-blue-testing.d.ts.map +1 -0
- package/dist/orchestration/red-blue-testing.js +178 -0
- package/dist/orchestration/red-blue-testing.js.map +1 -0
- package/dist/orchestration/self-healing-pipeline.d.ts +104 -0
- package/dist/orchestration/self-healing-pipeline.d.ts.map +1 -0
- package/dist/orchestration/self-healing-pipeline.js +376 -0
- package/dist/orchestration/self-healing-pipeline.js.map +1 -0
- package/dist/orchestration/skill-rules-provider.d.ts +88 -0
- package/dist/orchestration/skill-rules-provider.d.ts.map +1 -0
- package/dist/orchestration/skill-rules-provider.js +134 -0
- package/dist/orchestration/skill-rules-provider.js.map +1 -0
- package/dist/orchestration/sleep-time-consumer.d.ts +63 -0
- package/dist/orchestration/sleep-time-consumer.d.ts.map +1 -0
- package/dist/orchestration/sleep-time-consumer.js +86 -0
- package/dist/orchestration/sleep-time-consumer.js.map +1 -0
- package/dist/orchestration/spec-to-ship.d.ts +118 -0
- package/dist/orchestration/spec-to-ship.d.ts.map +1 -0
- package/dist/orchestration/spec-to-ship.js +383 -0
- package/dist/orchestration/spec-to-ship.js.map +1 -0
- package/dist/orchestration/speculative-execution.d.ts +45 -0
- package/dist/orchestration/speculative-execution.d.ts.map +1 -0
- package/dist/orchestration/speculative-execution.js +94 -0
- package/dist/orchestration/speculative-execution.js.map +1 -0
- package/dist/orchestration/symphony/conductor.d.ts +69 -0
- package/dist/orchestration/symphony/conductor.d.ts.map +1 -0
- package/dist/orchestration/symphony/conductor.js +106 -0
- package/dist/orchestration/symphony/conductor.js.map +1 -0
- package/dist/orchestration/task-delegation.d.ts +90 -0
- package/dist/orchestration/task-delegation.d.ts.map +1 -0
- package/dist/orchestration/task-delegation.js +93 -0
- package/dist/orchestration/task-delegation.js.map +1 -0
- package/dist/orchestration/team-templates.d.ts +46 -0
- package/dist/orchestration/team-templates.d.ts.map +1 -0
- package/dist/orchestration/team-templates.js +347 -0
- package/dist/orchestration/team-templates.js.map +1 -0
- package/dist/orchestration/todo-provider.d.ts +93 -0
- package/dist/orchestration/todo-provider.d.ts.map +1 -0
- package/dist/orchestration/todo-provider.js +139 -0
- package/dist/orchestration/todo-provider.js.map +1 -0
- package/dist/orchestration/todo-tracker.d.ts +138 -0
- package/dist/orchestration/todo-tracker.d.ts.map +1 -0
- package/dist/orchestration/todo-tracker.js +481 -0
- package/dist/orchestration/todo-tracker.js.map +1 -0
- package/dist/orchestration/tool-rules.d.ts +106 -0
- package/dist/orchestration/tool-rules.d.ts.map +1 -0
- package/dist/orchestration/tool-rules.js +151 -0
- package/dist/orchestration/tool-rules.js.map +1 -0
- package/dist/orchestration/two-state-spec.d.ts +75 -0
- package/dist/orchestration/two-state-spec.d.ts.map +1 -0
- package/dist/orchestration/two-state-spec.js +160 -0
- package/dist/orchestration/two-state-spec.js.map +1 -0
- package/dist/orchestration/ultraplan.d.ts +93 -0
- package/dist/orchestration/ultraplan.d.ts.map +1 -0
- package/dist/orchestration/ultraplan.js +195 -0
- package/dist/orchestration/ultraplan.js.map +1 -0
- package/dist/orchestration/virtual-cursor-consumer.d.ts +82 -0
- package/dist/orchestration/virtual-cursor-consumer.d.ts.map +1 -0
- package/dist/orchestration/virtual-cursor-consumer.js +94 -0
- package/dist/orchestration/virtual-cursor-consumer.js.map +1 -0
- package/dist/orchestration/visual-builders/canonical-schema.d.ts +98 -0
- package/dist/orchestration/visual-builders/canonical-schema.d.ts.map +1 -0
- package/dist/orchestration/visual-builders/canonical-schema.js +157 -0
- package/dist/orchestration/visual-builders/canonical-schema.js.map +1 -0
- package/dist/orchestration/wall-clock-budget.d.ts +63 -0
- package/dist/orchestration/wall-clock-budget.d.ts.map +1 -0
- package/dist/orchestration/wall-clock-budget.js +74 -0
- package/dist/orchestration/wall-clock-budget.js.map +1 -0
- package/dist/orchestration/wave-executor.d.ts +69 -0
- package/dist/orchestration/wave-executor.d.ts.map +1 -0
- package/dist/orchestration/wave-executor.js +158 -0
- package/dist/orchestration/wave-executor.js.map +1 -0
- package/dist/orchestration/webhook-trigger-bridge.d.ts +98 -0
- package/dist/orchestration/webhook-trigger-bridge.d.ts.map +1 -0
- package/dist/orchestration/webhook-trigger-bridge.js +119 -0
- package/dist/orchestration/webhook-trigger-bridge.js.map +1 -0
- package/dist/orchestration/workflow-dag.d.ts +117 -0
- package/dist/orchestration/workflow-dag.d.ts.map +1 -0
- package/dist/orchestration/workflow-dag.js +530 -0
- package/dist/orchestration/workflow-dag.js.map +1 -0
- package/dist/orchestration/worktree-kanban.d.ts +53 -0
- package/dist/orchestration/worktree-kanban.d.ts.map +1 -0
- package/dist/orchestration/worktree-kanban.js +140 -0
- package/dist/orchestration/worktree-kanban.js.map +1 -0
- package/dist/orchestration/worktree-manager.d.ts +129 -0
- package/dist/orchestration/worktree-manager.d.ts.map +1 -0
- package/dist/orchestration/worktree-manager.js +285 -0
- package/dist/orchestration/worktree-manager.js.map +1 -0
- package/dist/plugins/lifecycle.d.ts +146 -0
- package/dist/plugins/lifecycle.d.ts.map +1 -0
- package/dist/plugins/lifecycle.js +167 -0
- package/dist/plugins/lifecycle.js.map +1 -0
- package/dist/plugins/manager.d.ts +27 -0
- package/dist/plugins/manager.d.ts.map +1 -0
- package/dist/plugins/manager.js +148 -0
- package/dist/plugins/manager.js.map +1 -0
- package/dist/ports/chatdev-waterfall.d.ts +120 -0
- package/dist/ports/chatdev-waterfall.d.ts.map +1 -0
- package/dist/ports/chatdev-waterfall.js +211 -0
- package/dist/ports/chatdev-waterfall.js.map +1 -0
- package/dist/ports/deer-flow-research.d.ts +137 -0
- package/dist/ports/deer-flow-research.d.ts.map +1 -0
- package/dist/ports/deer-flow-research.js +163 -0
- package/dist/ports/deer-flow-research.js.map +1 -0
- package/dist/ports/mem0-graph-memory.d.ts +143 -0
- package/dist/ports/mem0-graph-memory.d.ts.map +1 -0
- package/dist/ports/mem0-graph-memory.js +271 -0
- package/dist/ports/mem0-graph-memory.js.map +1 -0
- package/dist/ports/promptfoo-assertions.d.ts +153 -0
- package/dist/ports/promptfoo-assertions.d.ts.map +1 -0
- package/dist/ports/promptfoo-assertions.js +339 -0
- package/dist/ports/promptfoo-assertions.js.map +1 -0
- package/dist/ports/scrapling-adaptive.d.ts +129 -0
- package/dist/ports/scrapling-adaptive.d.ts.map +1 -0
- package/dist/ports/scrapling-adaptive.js +254 -0
- package/dist/ports/scrapling-adaptive.js.map +1 -0
- package/dist/pr-checks/check-emitter.d.ts +75 -0
- package/dist/pr-checks/check-emitter.d.ts.map +1 -0
- package/dist/pr-checks/check-emitter.js +198 -0
- package/dist/pr-checks/check-emitter.js.map +1 -0
- package/dist/pr-checks/diff-loader.d.ts +65 -0
- package/dist/pr-checks/diff-loader.d.ts.map +1 -0
- package/dist/pr-checks/diff-loader.js +123 -0
- package/dist/pr-checks/diff-loader.js.map +1 -0
- package/dist/pr-checks/pr-runner.d.ts +106 -0
- package/dist/pr-checks/pr-runner.d.ts.map +1 -0
- package/dist/pr-checks/pr-runner.js +300 -0
- package/dist/pr-checks/pr-runner.js.map +1 -0
- package/dist/pr-checks/pr-types.d.ts +82 -0
- package/dist/pr-checks/pr-types.d.ts.map +1 -0
- package/dist/pr-checks/pr-types.js +10 -0
- package/dist/pr-checks/pr-types.js.map +1 -0
- package/dist/prompt/engine.d.ts +126 -0
- package/dist/prompt/engine.d.ts.map +1 -0
- package/dist/prompt/engine.js +567 -0
- package/dist/prompt/engine.js.map +1 -0
- package/dist/prompt/instruction-provenance.d.ts +52 -0
- package/dist/prompt/instruction-provenance.d.ts.map +1 -0
- package/dist/prompt/instruction-provenance.js +92 -0
- package/dist/prompt/instruction-provenance.js.map +1 -0
- package/dist/prompt/model-formatter.d.ts +59 -0
- package/dist/prompt/model-formatter.d.ts.map +1 -0
- package/dist/prompt/model-formatter.js +200 -0
- package/dist/prompt/model-formatter.js.map +1 -0
- package/dist/prompt/modules/capabilities.d.ts +7 -0
- package/dist/prompt/modules/capabilities.d.ts.map +1 -0
- package/dist/prompt/modules/capabilities.js +141 -0
- package/dist/prompt/modules/capabilities.js.map +1 -0
- package/dist/prompt/modules/channels.d.ts +8 -0
- package/dist/prompt/modules/channels.d.ts.map +1 -0
- package/dist/prompt/modules/channels.js +19 -0
- package/dist/prompt/modules/channels.js.map +1 -0
- package/dist/prompt/modules/conventions.d.ts +8 -0
- package/dist/prompt/modules/conventions.d.ts.map +1 -0
- package/dist/prompt/modules/conventions.js +90 -0
- package/dist/prompt/modules/conventions.js.map +1 -0
- package/dist/prompt/modules/cost.d.ts +6 -0
- package/dist/prompt/modules/cost.d.ts.map +1 -0
- package/dist/prompt/modules/cost.js +24 -0
- package/dist/prompt/modules/cost.js.map +1 -0
- package/dist/prompt/modules/history.d.ts +7 -0
- package/dist/prompt/modules/history.d.ts.map +1 -0
- package/dist/prompt/modules/history.js +29 -0
- package/dist/prompt/modules/history.js.map +1 -0
- package/dist/prompt/modules/identity.d.ts +17 -0
- package/dist/prompt/modules/identity.d.ts.map +1 -0
- package/dist/prompt/modules/identity.js +67 -0
- package/dist/prompt/modules/identity.js.map +1 -0
- package/dist/prompt/modules/index.d.ts +45 -0
- package/dist/prompt/modules/index.d.ts.map +1 -0
- package/dist/prompt/modules/index.js +99 -0
- package/dist/prompt/modules/index.js.map +1 -0
- package/dist/prompt/modules/llms-txt.d.ts +12 -0
- package/dist/prompt/modules/llms-txt.d.ts.map +1 -0
- package/dist/prompt/modules/llms-txt.js +51 -0
- package/dist/prompt/modules/llms-txt.js.map +1 -0
- package/dist/prompt/modules/memory.d.ts +17 -0
- package/dist/prompt/modules/memory.d.ts.map +1 -0
- package/dist/prompt/modules/memory.js +110 -0
- package/dist/prompt/modules/memory.js.map +1 -0
- package/dist/prompt/modules/mode.d.ts +7 -0
- package/dist/prompt/modules/mode.d.ts.map +1 -0
- package/dist/prompt/modules/mode.js +78 -0
- package/dist/prompt/modules/mode.js.map +1 -0
- package/dist/prompt/modules/phone.d.ts +8 -0
- package/dist/prompt/modules/phone.d.ts.map +1 -0
- package/dist/prompt/modules/phone.js +35 -0
- package/dist/prompt/modules/phone.js.map +1 -0
- package/dist/prompt/modules/project.d.ts +7 -0
- package/dist/prompt/modules/project.d.ts.map +1 -0
- package/dist/prompt/modules/project.js +29 -0
- package/dist/prompt/modules/project.js.map +1 -0
- package/dist/prompt/modules/safety.d.ts +7 -0
- package/dist/prompt/modules/safety.d.ts.map +1 -0
- package/dist/prompt/modules/safety.js +37 -0
- package/dist/prompt/modules/safety.js.map +1 -0
- package/dist/prompt/modules/security.d.ts +9 -0
- package/dist/prompt/modules/security.d.ts.map +1 -0
- package/dist/prompt/modules/security.js +121 -0
- package/dist/prompt/modules/security.js.map +1 -0
- package/dist/prompt/modules/skills.d.ts +7 -0
- package/dist/prompt/modules/skills.d.ts.map +1 -0
- package/dist/prompt/modules/skills.js +22 -0
- package/dist/prompt/modules/skills.js.map +1 -0
- package/dist/prompt/modules/surfaces.d.ts +7 -0
- package/dist/prompt/modules/surfaces.d.ts.map +1 -0
- package/dist/prompt/modules/surfaces.js +29 -0
- package/dist/prompt/modules/surfaces.js.map +1 -0
- package/dist/prompt/modules/tools.d.ts +16 -0
- package/dist/prompt/modules/tools.d.ts.map +1 -0
- package/dist/prompt/modules/tools.js +101 -0
- package/dist/prompt/modules/tools.js.map +1 -0
- package/dist/prompt/modules/user.d.ts +16 -0
- package/dist/prompt/modules/user.d.ts.map +1 -0
- package/dist/prompt/modules/user.js +23 -0
- package/dist/prompt/modules/user.js.map +1 -0
- package/dist/prompt/reasoning-sandwich.d.ts +145 -0
- package/dist/prompt/reasoning-sandwich.d.ts.map +1 -0
- package/dist/prompt/reasoning-sandwich.js +215 -0
- package/dist/prompt/reasoning-sandwich.js.map +1 -0
- package/dist/prompt/system-prompt.d.ts +101 -0
- package/dist/prompt/system-prompt.d.ts.map +1 -0
- package/dist/prompt/system-prompt.js +129 -0
- package/dist/prompt/system-prompt.js.map +1 -0
- package/dist/prompt/template-compiler.d.ts +44 -0
- package/dist/prompt/template-compiler.d.ts.map +1 -0
- package/dist/prompt/template-compiler.js +228 -0
- package/dist/prompt/template-compiler.js.map +1 -0
- package/dist/prompt/think-in-code.d.ts +86 -0
- package/dist/prompt/think-in-code.d.ts.map +1 -0
- package/dist/prompt/think-in-code.js +110 -0
- package/dist/prompt/think-in-code.js.map +1 -0
- package/dist/providers/account-pool.d.ts +94 -0
- package/dist/providers/account-pool.d.ts.map +1 -0
- package/dist/providers/account-pool.js +240 -0
- package/dist/providers/account-pool.js.map +1 -0
- package/dist/providers/anthropic-adapter.d.ts +47 -0
- package/dist/providers/anthropic-adapter.d.ts.map +1 -0
- package/dist/providers/anthropic-adapter.js +567 -0
- package/dist/providers/anthropic-adapter.js.map +1 -0
- package/dist/providers/anthropic-stream-decoder.d.ts +79 -0
- package/dist/providers/anthropic-stream-decoder.d.ts.map +1 -0
- package/dist/providers/anthropic-stream-decoder.js +281 -0
- package/dist/providers/anthropic-stream-decoder.js.map +1 -0
- package/dist/providers/bedrock-eventstream.d.ts +107 -0
- package/dist/providers/bedrock-eventstream.d.ts.map +1 -0
- package/dist/providers/bedrock-eventstream.js +246 -0
- package/dist/providers/bedrock-eventstream.js.map +1 -0
- package/dist/providers/bedrock-signer.d.ts +23 -0
- package/dist/providers/bedrock-signer.d.ts.map +1 -0
- package/dist/providers/bedrock-signer.js +439 -0
- package/dist/providers/bedrock-signer.js.map +1 -0
- package/dist/providers/budget-downgrader.d.ts +65 -0
- package/dist/providers/budget-downgrader.d.ts.map +1 -0
- package/dist/providers/budget-downgrader.js +109 -0
- package/dist/providers/budget-downgrader.js.map +1 -0
- package/dist/providers/capability-augmenter.d.ts +63 -0
- package/dist/providers/capability-augmenter.d.ts.map +1 -0
- package/dist/providers/capability-augmenter.js +202 -0
- package/dist/providers/capability-augmenter.js.map +1 -0
- package/dist/providers/capability-equalizer.d.ts +63 -0
- package/dist/providers/capability-equalizer.d.ts.map +1 -0
- package/dist/providers/capability-equalizer.js +532 -0
- package/dist/providers/capability-equalizer.js.map +1 -0
- package/dist/providers/capability-fingerprint.d.ts +66 -0
- package/dist/providers/capability-fingerprint.d.ts.map +1 -0
- package/dist/providers/capability-fingerprint.js +227 -0
- package/dist/providers/capability-fingerprint.js.map +1 -0
- package/dist/providers/circuit-breaker.d.ts +65 -0
- package/dist/providers/circuit-breaker.d.ts.map +1 -0
- package/dist/providers/circuit-breaker.js +137 -0
- package/dist/providers/circuit-breaker.js.map +1 -0
- package/dist/providers/claude-cli-backend.d.ts +213 -0
- package/dist/providers/claude-cli-backend.d.ts.map +1 -0
- package/dist/providers/claude-cli-backend.js +590 -0
- package/dist/providers/claude-cli-backend.js.map +1 -0
- package/dist/providers/cli-registry.d.ts +39 -0
- package/dist/providers/cli-registry.d.ts.map +1 -0
- package/dist/providers/cli-registry.js +217 -0
- package/dist/providers/cli-registry.js.map +1 -0
- package/dist/providers/cloud-offload/adapter.d.ts +118 -0
- package/dist/providers/cloud-offload/adapter.d.ts.map +1 -0
- package/dist/providers/cloud-offload/adapter.js +61 -0
- package/dist/providers/cloud-offload/adapter.js.map +1 -0
- package/dist/providers/cloud-offload/anthropic-managed.d.ts +169 -0
- package/dist/providers/cloud-offload/anthropic-managed.d.ts.map +1 -0
- package/dist/providers/cloud-offload/anthropic-managed.js +627 -0
- package/dist/providers/cloud-offload/anthropic-managed.js.map +1 -0
- package/dist/providers/cloud-offload/cloudflare-agents.d.ts +174 -0
- package/dist/providers/cloud-offload/cloudflare-agents.d.ts.map +1 -0
- package/dist/providers/cloud-offload/cloudflare-agents.js +583 -0
- package/dist/providers/cloud-offload/cloudflare-agents.js.map +1 -0
- package/dist/providers/cloud-offload/fly-sprites.d.ts +147 -0
- package/dist/providers/cloud-offload/fly-sprites.d.ts.map +1 -0
- package/dist/providers/cloud-offload/fly-sprites.js +563 -0
- package/dist/providers/cloud-offload/fly-sprites.js.map +1 -0
- package/dist/providers/cloud-offload/session-handle.d.ts +62 -0
- package/dist/providers/cloud-offload/session-handle.d.ts.map +1 -0
- package/dist/providers/cloud-offload/session-handle.js +109 -0
- package/dist/providers/cloud-offload/session-handle.js.map +1 -0
- package/dist/providers/cloud-offload/snapshot.d.ts +97 -0
- package/dist/providers/cloud-offload/snapshot.d.ts.map +1 -0
- package/dist/providers/cloud-offload/snapshot.js +303 -0
- package/dist/providers/cloud-offload/snapshot.js.map +1 -0
- package/dist/providers/codex-adapter.d.ts +25 -0
- package/dist/providers/codex-adapter.d.ts.map +1 -0
- package/dist/providers/codex-adapter.js +493 -0
- package/dist/providers/codex-adapter.js.map +1 -0
- package/dist/providers/codex-detector.d.ts +73 -0
- package/dist/providers/codex-detector.d.ts.map +1 -0
- package/dist/providers/codex-detector.js +162 -0
- package/dist/providers/codex-detector.js.map +1 -0
- package/dist/providers/codex-models.d.ts +117 -0
- package/dist/providers/codex-models.d.ts.map +1 -0
- package/dist/providers/codex-models.js +398 -0
- package/dist/providers/codex-models.js.map +1 -0
- package/dist/providers/copilot-adapter.d.ts +40 -0
- package/dist/providers/copilot-adapter.d.ts.map +1 -0
- package/dist/providers/copilot-adapter.js +512 -0
- package/dist/providers/copilot-adapter.js.map +1 -0
- package/dist/providers/credential-pool.d.ts +247 -0
- package/dist/providers/credential-pool.d.ts.map +1 -0
- package/dist/providers/credential-pool.js +577 -0
- package/dist/providers/credential-pool.js.map +1 -0
- package/dist/providers/discovery.d.ts +103 -0
- package/dist/providers/discovery.d.ts.map +1 -0
- package/dist/providers/discovery.js +601 -0
- package/dist/providers/discovery.js.map +1 -0
- package/dist/providers/dynamic-discovery.d.ts +35 -0
- package/dist/providers/dynamic-discovery.d.ts.map +1 -0
- package/dist/providers/dynamic-discovery.js +240 -0
- package/dist/providers/dynamic-discovery.js.map +1 -0
- package/dist/providers/extended-thinking.d.ts +69 -0
- package/dist/providers/extended-thinking.d.ts.map +1 -0
- package/dist/providers/extended-thinking.js +233 -0
- package/dist/providers/extended-thinking.js.map +1 -0
- package/dist/providers/fallback-chain.d.ts +34 -0
- package/dist/providers/fallback-chain.d.ts.map +1 -0
- package/dist/providers/fallback-chain.js +116 -0
- package/dist/providers/fallback-chain.js.map +1 -0
- package/dist/providers/format-translator.d.ts +115 -0
- package/dist/providers/format-translator.d.ts.map +1 -0
- package/dist/providers/format-translator.js +347 -0
- package/dist/providers/format-translator.js.map +1 -0
- package/dist/providers/gemini-native-adapter.d.ts +51 -0
- package/dist/providers/gemini-native-adapter.d.ts.map +1 -0
- package/dist/providers/gemini-native-adapter.js +505 -0
- package/dist/providers/gemini-native-adapter.js.map +1 -0
- package/dist/providers/harness-profiles.d.ts +70 -0
- package/dist/providers/harness-profiles.d.ts.map +1 -0
- package/dist/providers/harness-profiles.js +210 -0
- package/dist/providers/harness-profiles.js.map +1 -0
- package/dist/providers/header-injection.d.ts +24 -0
- package/dist/providers/header-injection.d.ts.map +1 -0
- package/dist/providers/header-injection.js +109 -0
- package/dist/providers/header-injection.js.map +1 -0
- package/dist/providers/health-check.d.ts +80 -0
- package/dist/providers/health-check.d.ts.map +1 -0
- package/dist/providers/health-check.js +465 -0
- package/dist/providers/health-check.js.map +1 -0
- package/dist/providers/model-defaults.d.ts +60 -0
- package/dist/providers/model-defaults.d.ts.map +1 -0
- package/dist/providers/model-defaults.js +257 -0
- package/dist/providers/model-defaults.js.map +1 -0
- package/dist/providers/model-discovery.d.ts +85 -0
- package/dist/providers/model-discovery.d.ts.map +1 -0
- package/dist/providers/model-discovery.js +325 -0
- package/dist/providers/model-discovery.js.map +1 -0
- package/dist/providers/model-performance.d.ts +30 -0
- package/dist/providers/model-performance.d.ts.map +1 -0
- package/dist/providers/model-performance.js +57 -0
- package/dist/providers/model-performance.js.map +1 -0
- package/dist/providers/model-router.d.ts +119 -0
- package/dist/providers/model-router.d.ts.map +1 -0
- package/dist/providers/model-router.js +550 -0
- package/dist/providers/model-router.js.map +1 -0
- package/dist/providers/model-switcher.d.ts +116 -0
- package/dist/providers/model-switcher.d.ts.map +1 -0
- package/dist/providers/model-switcher.js +298 -0
- package/dist/providers/model-switcher.js.map +1 -0
- package/dist/providers/ollama-adapter.d.ts +66 -0
- package/dist/providers/ollama-adapter.d.ts.map +1 -0
- package/dist/providers/ollama-adapter.js +423 -0
- package/dist/providers/ollama-adapter.js.map +1 -0
- package/dist/providers/ollama-host.d.ts +66 -0
- package/dist/providers/ollama-host.d.ts.map +1 -0
- package/dist/providers/ollama-host.js +90 -0
- package/dist/providers/ollama-host.js.map +1 -0
- package/dist/providers/openai-compat-adapter.d.ts +20 -0
- package/dist/providers/openai-compat-adapter.d.ts.map +1 -0
- package/dist/providers/openai-compat-adapter.js +513 -0
- package/dist/providers/openai-compat-adapter.js.map +1 -0
- package/dist/providers/opencode-sst-adapter.d.ts +131 -0
- package/dist/providers/opencode-sst-adapter.d.ts.map +1 -0
- package/dist/providers/opencode-sst-adapter.js +385 -0
- package/dist/providers/opencode-sst-adapter.js.map +1 -0
- package/dist/providers/peer-tool-auth.d.ts +87 -0
- package/dist/providers/peer-tool-auth.d.ts.map +1 -0
- package/dist/providers/peer-tool-auth.js +254 -0
- package/dist/providers/peer-tool-auth.js.map +1 -0
- package/dist/providers/preset-library.d.ts +55 -0
- package/dist/providers/preset-library.d.ts.map +1 -0
- package/dist/providers/preset-library.js +299 -0
- package/dist/providers/preset-library.js.map +1 -0
- package/dist/providers/prompt-cache-warmup.d.ts +139 -0
- package/dist/providers/prompt-cache-warmup.d.ts.map +1 -0
- package/dist/providers/prompt-cache-warmup.js +233 -0
- package/dist/providers/prompt-cache-warmup.js.map +1 -0
- package/dist/providers/provider-brain.d.ts +79 -0
- package/dist/providers/provider-brain.d.ts.map +1 -0
- package/dist/providers/provider-brain.js +208 -0
- package/dist/providers/provider-brain.js.map +1 -0
- package/dist/providers/provider-ladder.d.ts +100 -0
- package/dist/providers/provider-ladder.d.ts.map +1 -0
- package/dist/providers/provider-ladder.js +220 -0
- package/dist/providers/provider-ladder.js.map +1 -0
- package/dist/providers/provider-service.d.ts +340 -0
- package/dist/providers/provider-service.d.ts.map +1 -0
- package/dist/providers/provider-service.js +1270 -0
- package/dist/providers/provider-service.js.map +1 -0
- package/dist/providers/public-tier/fallback-chain.d.ts +58 -0
- package/dist/providers/public-tier/fallback-chain.d.ts.map +1 -0
- package/dist/providers/public-tier/fallback-chain.js +160 -0
- package/dist/providers/public-tier/fallback-chain.js.map +1 -0
- package/dist/providers/public-tier/horde.d.ts +42 -0
- package/dist/providers/public-tier/horde.d.ts.map +1 -0
- package/dist/providers/public-tier/horde.js +203 -0
- package/dist/providers/public-tier/horde.js.map +1 -0
- package/dist/providers/public-tier/huggingface-free.d.ts +55 -0
- package/dist/providers/public-tier/huggingface-free.d.ts.map +1 -0
- package/dist/providers/public-tier/huggingface-free.js +85 -0
- package/dist/providers/public-tier/huggingface-free.js.map +1 -0
- package/dist/providers/public-tier/llm7.d.ts +48 -0
- package/dist/providers/public-tier/llm7.d.ts.map +1 -0
- package/dist/providers/public-tier/llm7.js +197 -0
- package/dist/providers/public-tier/llm7.js.map +1 -0
- package/dist/providers/public-tier/opencode-zen-research.d.ts +59 -0
- package/dist/providers/public-tier/opencode-zen-research.d.ts.map +1 -0
- package/dist/providers/public-tier/opencode-zen-research.js +57 -0
- package/dist/providers/public-tier/opencode-zen-research.js.map +1 -0
- package/dist/providers/public-tier/ovhcloud.d.ts +57 -0
- package/dist/providers/public-tier/ovhcloud.d.ts.map +1 -0
- package/dist/providers/public-tier/ovhcloud.js +210 -0
- package/dist/providers/public-tier/ovhcloud.js.map +1 -0
- package/dist/providers/public-tier/pollinations.d.ts +60 -0
- package/dist/providers/public-tier/pollinations.d.ts.map +1 -0
- package/dist/providers/public-tier/pollinations.js +252 -0
- package/dist/providers/public-tier/pollinations.js.map +1 -0
- package/dist/providers/rate-limiter.d.ts +55 -0
- package/dist/providers/rate-limiter.d.ts.map +1 -0
- package/dist/providers/rate-limiter.js +141 -0
- package/dist/providers/rate-limiter.js.map +1 -0
- package/dist/providers/registry.d.ts +19 -0
- package/dist/providers/registry.d.ts.map +1 -0
- package/dist/providers/registry.js +315 -0
- package/dist/providers/registry.js.map +1 -0
- package/dist/providers/retry-strategies.d.ts +78 -0
- package/dist/providers/retry-strategies.d.ts.map +1 -0
- package/dist/providers/retry-strategies.js +161 -0
- package/dist/providers/retry-strategies.js.map +1 -0
- package/dist/providers/thinking-preserver.d.ts +74 -0
- package/dist/providers/thinking-preserver.d.ts.map +1 -0
- package/dist/providers/thinking-preserver.js +109 -0
- package/dist/providers/thinking-preserver.js.map +1 -0
- package/dist/providers/tool-parsers/index.d.ts +7 -0
- package/dist/providers/tool-parsers/index.d.ts.map +1 -0
- package/dist/providers/tool-parsers/index.js +7 -0
- package/dist/providers/tool-parsers/index.js.map +1 -0
- package/dist/providers/tool-parsers/parsers.d.ts +78 -0
- package/dist/providers/tool-parsers/parsers.d.ts.map +1 -0
- package/dist/providers/tool-parsers/parsers.js +622 -0
- package/dist/providers/tool-parsers/parsers.js.map +1 -0
- package/dist/providers/tool-serializer.d.ts +221 -0
- package/dist/providers/tool-serializer.d.ts.map +1 -0
- package/dist/providers/tool-serializer.js +335 -0
- package/dist/providers/tool-serializer.js.map +1 -0
- package/dist/providers/types.d.ts +181 -0
- package/dist/providers/types.d.ts.map +1 -0
- package/dist/providers/types.js +5 -0
- package/dist/providers/types.js.map +1 -0
- package/dist/providers/usage-intelligence.d.ts +50 -0
- package/dist/providers/usage-intelligence.d.ts.map +1 -0
- package/dist/providers/usage-intelligence.js +146 -0
- package/dist/providers/usage-intelligence.js.map +1 -0
- package/dist/providers/vertex-oauth.d.ts +21 -0
- package/dist/providers/vertex-oauth.d.ts.map +1 -0
- package/dist/providers/vertex-oauth.js +393 -0
- package/dist/providers/vertex-oauth.js.map +1 -0
- package/dist/rag/chunker.d.ts +42 -0
- package/dist/rag/chunker.d.ts.map +1 -0
- package/dist/rag/chunker.js +247 -0
- package/dist/rag/chunker.js.map +1 -0
- package/dist/rag/reranker.d.ts +59 -0
- package/dist/rag/reranker.d.ts.map +1 -0
- package/dist/rag/reranker.js +79 -0
- package/dist/rag/reranker.js.map +1 -0
- package/dist/rag/visual-flow.d.ts +66 -0
- package/dist/rag/visual-flow.d.ts.map +1 -0
- package/dist/rag/visual-flow.js +203 -0
- package/dist/rag/visual-flow.js.map +1 -0
- package/dist/recipes/recipe-loader.d.ts +37 -0
- package/dist/recipes/recipe-loader.d.ts.map +1 -0
- package/dist/recipes/recipe-loader.js +434 -0
- package/dist/recipes/recipe-loader.js.map +1 -0
- package/dist/recipes/recipe-runtime.d.ts +33 -0
- package/dist/recipes/recipe-runtime.d.ts.map +1 -0
- package/dist/recipes/recipe-runtime.js +349 -0
- package/dist/recipes/recipe-runtime.js.map +1 -0
- package/dist/recipes/recipe-types.d.ts +178 -0
- package/dist/recipes/recipe-types.d.ts.map +1 -0
- package/dist/recipes/recipe-types.js +19 -0
- package/dist/recipes/recipe-types.js.map +1 -0
- package/dist/runtime-hooks/dead-code-hooks.d.ts +201 -0
- package/dist/runtime-hooks/dead-code-hooks.d.ts.map +1 -0
- package/dist/runtime-hooks/dead-code-hooks.js +176 -0
- package/dist/runtime-hooks/dead-code-hooks.js.map +1 -0
- package/dist/sandbox/approval-rules.d.ts +107 -0
- package/dist/sandbox/approval-rules.d.ts.map +1 -0
- package/dist/sandbox/approval-rules.js +253 -0
- package/dist/sandbox/approval-rules.js.map +1 -0
- package/dist/sandbox/backends/cloud-auth.d.ts +50 -0
- package/dist/sandbox/backends/cloud-auth.d.ts.map +1 -0
- package/dist/sandbox/backends/cloud-auth.js +93 -0
- package/dist/sandbox/backends/cloud-auth.js.map +1 -0
- package/dist/sandbox/backends/landlock-linux.d.ts +44 -0
- package/dist/sandbox/backends/landlock-linux.d.ts.map +1 -0
- package/dist/sandbox/backends/landlock-linux.js +284 -0
- package/dist/sandbox/backends/landlock-linux.js.map +1 -0
- package/dist/sandbox/backends/seatbelt-macos.d.ts +31 -0
- package/dist/sandbox/backends/seatbelt-macos.d.ts.map +1 -0
- package/dist/sandbox/backends/seatbelt-macos.js +248 -0
- package/dist/sandbox/backends/seatbelt-macos.js.map +1 -0
- package/dist/sandbox/backends/windows-jobobject.d.ts +92 -0
- package/dist/sandbox/backends/windows-jobobject.d.ts.map +1 -0
- package/dist/sandbox/backends/windows-jobobject.js +158 -0
- package/dist/sandbox/backends/windows-jobobject.js.map +1 -0
- package/dist/sandbox/cloud-sandbox-types.d.ts +48 -0
- package/dist/sandbox/cloud-sandbox-types.d.ts.map +1 -0
- package/dist/sandbox/cloud-sandbox-types.js +9 -0
- package/dist/sandbox/cloud-sandbox-types.js.map +1 -0
- package/dist/sandbox/composite-backend.d.ts +61 -0
- package/dist/sandbox/composite-backend.d.ts.map +1 -0
- package/dist/sandbox/composite-backend.js +145 -0
- package/dist/sandbox/composite-backend.js.map +1 -0
- package/dist/sandbox/docker-backend.d.ts +184 -0
- package/dist/sandbox/docker-backend.d.ts.map +1 -0
- package/dist/sandbox/docker-backend.js +457 -0
- package/dist/sandbox/docker-backend.js.map +1 -0
- package/dist/sandbox/execution-environments.d.ts +77 -0
- package/dist/sandbox/execution-environments.d.ts.map +1 -0
- package/dist/sandbox/execution-environments.js +183 -0
- package/dist/sandbox/execution-environments.js.map +1 -0
- package/dist/sandbox/executor.d.ts +35 -0
- package/dist/sandbox/executor.d.ts.map +1 -0
- package/dist/sandbox/executor.js +120 -0
- package/dist/sandbox/executor.js.map +1 -0
- package/dist/sandbox/extended-backends.d.ts +58 -0
- package/dist/sandbox/extended-backends.d.ts.map +1 -0
- package/dist/sandbox/extended-backends.js +199 -0
- package/dist/sandbox/extended-backends.js.map +1 -0
- package/dist/sandbox/flyio-backend.d.ts +22 -0
- package/dist/sandbox/flyio-backend.d.ts.map +1 -0
- package/dist/sandbox/flyio-backend.js +119 -0
- package/dist/sandbox/flyio-backend.js.map +1 -0
- package/dist/sandbox/kernel-sandbox.d.ts +91 -0
- package/dist/sandbox/kernel-sandbox.d.ts.map +1 -0
- package/dist/sandbox/kernel-sandbox.js +260 -0
- package/dist/sandbox/kernel-sandbox.js.map +1 -0
- package/dist/sandbox/modal-backend.d.ts +15 -0
- package/dist/sandbox/modal-backend.d.ts.map +1 -0
- package/dist/sandbox/modal-backend.js +110 -0
- package/dist/sandbox/modal-backend.js.map +1 -0
- package/dist/sandbox/no-change-timeout.d.ts +81 -0
- package/dist/sandbox/no-change-timeout.d.ts.map +1 -0
- package/dist/sandbox/no-change-timeout.js +105 -0
- package/dist/sandbox/no-change-timeout.js.map +1 -0
- package/dist/sandbox/output-isolator.d.ts +104 -0
- package/dist/sandbox/output-isolator.d.ts.map +1 -0
- package/dist/sandbox/output-isolator.js +220 -0
- package/dist/sandbox/output-isolator.js.map +1 -0
- package/dist/sandbox/request-rule.d.ts +105 -0
- package/dist/sandbox/request-rule.d.ts.map +1 -0
- package/dist/sandbox/request-rule.js +328 -0
- package/dist/sandbox/request-rule.js.map +1 -0
- package/dist/sandbox/sandbox-policy.d.ts +147 -0
- package/dist/sandbox/sandbox-policy.d.ts.map +1 -0
- package/dist/sandbox/sandbox-policy.js +156 -0
- package/dist/sandbox/sandbox-policy.js.map +1 -0
- package/dist/sandbox/security.d.ts +98 -0
- package/dist/sandbox/security.d.ts.map +1 -0
- package/dist/sandbox/security.js +449 -0
- package/dist/sandbox/security.js.map +1 -0
- package/dist/sandbox/task-isolation.d.ts +86 -0
- package/dist/sandbox/task-isolation.d.ts.map +1 -0
- package/dist/sandbox/task-isolation.js +240 -0
- package/dist/sandbox/task-isolation.js.map +1 -0
- package/dist/sandbox/terminal-backends.d.ts +189 -0
- package/dist/sandbox/terminal-backends.d.ts.map +1 -0
- package/dist/sandbox/terminal-backends.js +699 -0
- package/dist/sandbox/terminal-backends.js.map +1 -0
- package/dist/sandbox/unified-exec.d.ts +127 -0
- package/dist/sandbox/unified-exec.d.ts.map +1 -0
- package/dist/sandbox/unified-exec.js +446 -0
- package/dist/sandbox/unified-exec.js.map +1 -0
- package/dist/sandbox/virtual-paths.d.ts +91 -0
- package/dist/sandbox/virtual-paths.d.ts.map +1 -0
- package/dist/sandbox/virtual-paths.js +213 -0
- package/dist/sandbox/virtual-paths.js.map +1 -0
- package/dist/scheduler/cron-scheduler.d.ts +204 -0
- package/dist/scheduler/cron-scheduler.d.ts.map +1 -0
- package/dist/scheduler/cron-scheduler.js +423 -0
- package/dist/scheduler/cron-scheduler.js.map +1 -0
- package/dist/scheduler/schedule-store.d.ts +135 -0
- package/dist/scheduler/schedule-store.d.ts.map +1 -0
- package/dist/scheduler/schedule-store.js +293 -0
- package/dist/scheduler/schedule-store.js.map +1 -0
- package/dist/search/warp-grep.d.ts +127 -0
- package/dist/search/warp-grep.d.ts.map +1 -0
- package/dist/search/warp-grep.js +306 -0
- package/dist/search/warp-grep.js.map +1 -0
- package/dist/security/anti-distillation.d.ts +46 -0
- package/dist/security/anti-distillation.d.ts.map +1 -0
- package/dist/security/anti-distillation.js +358 -0
- package/dist/security/anti-distillation.js.map +1 -0
- package/dist/security/archive-preflight.d.ts +31 -0
- package/dist/security/archive-preflight.d.ts.map +1 -0
- package/dist/security/archive-preflight.js +200 -0
- package/dist/security/archive-preflight.js.map +1 -0
- package/dist/security/auto-classifier.d.ts +76 -0
- package/dist/security/auto-classifier.d.ts.map +1 -0
- package/dist/security/auto-classifier.js +319 -0
- package/dist/security/auto-classifier.js.map +1 -0
- package/dist/security/command-sanitizer.d.ts +93 -0
- package/dist/security/command-sanitizer.d.ts.map +1 -0
- package/dist/security/command-sanitizer.js +442 -0
- package/dist/security/command-sanitizer.js.map +1 -0
- package/dist/security/confirm-action.d.ts +70 -0
- package/dist/security/confirm-action.d.ts.map +1 -0
- package/dist/security/confirm-action.js +216 -0
- package/dist/security/confirm-action.js.map +1 -0
- package/dist/security/file-freeze.d.ts +86 -0
- package/dist/security/file-freeze.d.ts.map +1 -0
- package/dist/security/file-freeze.js +213 -0
- package/dist/security/file-freeze.js.map +1 -0
- package/dist/security/file-type-validator.d.ts +37 -0
- package/dist/security/file-type-validator.d.ts.map +1 -0
- package/dist/security/file-type-validator.js +176 -0
- package/dist/security/file-type-validator.js.map +1 -0
- package/dist/security/guardrails-off.d.ts +244 -0
- package/dist/security/guardrails-off.d.ts.map +1 -0
- package/dist/security/guardrails-off.js +592 -0
- package/dist/security/guardrails-off.js.map +1 -0
- package/dist/security/hash-audit-chain.d.ts +98 -0
- package/dist/security/hash-audit-chain.d.ts.map +1 -0
- package/dist/security/hash-audit-chain.js +198 -0
- package/dist/security/hash-audit-chain.js.map +1 -0
- package/dist/security/hidden-text-detector.d.ts +112 -0
- package/dist/security/hidden-text-detector.d.ts.map +1 -0
- package/dist/security/hidden-text-detector.js +258 -0
- package/dist/security/hidden-text-detector.js.map +1 -0
- package/dist/security/human-approval.d.ts +92 -0
- package/dist/security/human-approval.d.ts.map +1 -0
- package/dist/security/human-approval.js +199 -0
- package/dist/security/human-approval.js.map +1 -0
- package/dist/security/intent-verifier.d.ts +97 -0
- package/dist/security/intent-verifier.d.ts.map +1 -0
- package/dist/security/intent-verifier.js +250 -0
- package/dist/security/intent-verifier.js.map +1 -0
- package/dist/security/multi-encoding-decoder.d.ts +47 -0
- package/dist/security/multi-encoding-decoder.d.ts.map +1 -0
- package/dist/security/multi-encoding-decoder.js +336 -0
- package/dist/security/multi-encoding-decoder.js.map +1 -0
- package/dist/security/origin-validator.d.ts +52 -0
- package/dist/security/origin-validator.d.ts.map +1 -0
- package/dist/security/origin-validator.js +135 -0
- package/dist/security/origin-validator.js.map +1 -0
- package/dist/security/pii-redactor.d.ts +60 -0
- package/dist/security/pii-redactor.d.ts.map +1 -0
- package/dist/security/pii-redactor.js +364 -0
- package/dist/security/pii-redactor.js.map +1 -0
- package/dist/security/plugin-scanner.d.ts +103 -0
- package/dist/security/plugin-scanner.d.ts.map +1 -0
- package/dist/security/plugin-scanner.js +241 -0
- package/dist/security/plugin-scanner.js.map +1 -0
- package/dist/security/policy-language.d.ts +47 -0
- package/dist/security/policy-language.d.ts.map +1 -0
- package/dist/security/policy-language.js +103 -0
- package/dist/security/policy-language.js.map +1 -0
- package/dist/security/privacy-router.d.ts +129 -0
- package/dist/security/privacy-router.d.ts.map +1 -0
- package/dist/security/privacy-router.js +344 -0
- package/dist/security/privacy-router.js.map +1 -0
- package/dist/security/private-mode.d.ts +48 -0
- package/dist/security/private-mode.d.ts.map +1 -0
- package/dist/security/private-mode.js +80 -0
- package/dist/security/private-mode.js.map +1 -0
- package/dist/security/prompt-injection-quarantine.d.ts +181 -0
- package/dist/security/prompt-injection-quarantine.d.ts.map +1 -0
- package/dist/security/prompt-injection-quarantine.js +279 -0
- package/dist/security/prompt-injection-quarantine.js.map +1 -0
- package/dist/security/prompt-quarantine.d.ts +50 -0
- package/dist/security/prompt-quarantine.d.ts.map +1 -0
- package/dist/security/prompt-quarantine.js +61 -0
- package/dist/security/prompt-quarantine.js.map +1 -0
- package/dist/security/recon-osint/username-search.d.ts +48 -0
- package/dist/security/recon-osint/username-search.d.ts.map +1 -0
- package/dist/security/recon-osint/username-search.js +88 -0
- package/dist/security/recon-osint/username-search.js.map +1 -0
- package/dist/security/redact-overlapping-spans.d.ts +87 -0
- package/dist/security/redact-overlapping-spans.d.ts.map +1 -0
- package/dist/security/redact-overlapping-spans.js +159 -0
- package/dist/security/redact-overlapping-spans.js.map +1 -0
- package/dist/security/rules-of-engagement.d.ts +94 -0
- package/dist/security/rules-of-engagement.d.ts.map +1 -0
- package/dist/security/rules-of-engagement.js +290 -0
- package/dist/security/rules-of-engagement.js.map +1 -0
- package/dist/security/secret-scanner.d.ts +81 -0
- package/dist/security/secret-scanner.d.ts.map +1 -0
- package/dist/security/secret-scanner.js +336 -0
- package/dist/security/secret-scanner.js.map +1 -0
- package/dist/security/signed-audit.d.ts +50 -0
- package/dist/security/signed-audit.d.ts.map +1 -0
- package/dist/security/signed-audit.js +110 -0
- package/dist/security/signed-audit.js.map +1 -0
- package/dist/security/skills-guard.d.ts +74 -0
- package/dist/security/skills-guard.d.ts.map +1 -0
- package/dist/security/skills-guard.js +367 -0
- package/dist/security/skills-guard.js.map +1 -0
- package/dist/security/ssrf-guard.d.ts +70 -0
- package/dist/security/ssrf-guard.d.ts.map +1 -0
- package/dist/security/ssrf-guard.js +275 -0
- package/dist/security/ssrf-guard.js.map +1 -0
- package/dist/security/url-instruction-guard.d.ts +80 -0
- package/dist/security/url-instruction-guard.d.ts.map +1 -0
- package/dist/security/url-instruction-guard.js +476 -0
- package/dist/security/url-instruction-guard.js.map +1 -0
- package/dist/security/write-audit.d.ts +52 -0
- package/dist/security/write-audit.d.ts.map +1 -0
- package/dist/security/write-audit.js +64 -0
- package/dist/security/write-audit.js.map +1 -0
- package/dist/session/approval-queue.d.ts +307 -0
- package/dist/session/approval-queue.d.ts.map +1 -0
- package/dist/session/approval-queue.js +469 -0
- package/dist/session/approval-queue.js.map +1 -0
- package/dist/session/carplay-dispatch.d.ts +259 -0
- package/dist/session/carplay-dispatch.d.ts.map +1 -0
- package/dist/session/carplay-dispatch.js +459 -0
- package/dist/session/carplay-dispatch.js.map +1 -0
- package/dist/session/computer-session-store.d.ts +332 -0
- package/dist/session/computer-session-store.d.ts.map +1 -0
- package/dist/session/computer-session-store.js +758 -0
- package/dist/session/computer-session-store.js.map +1 -0
- package/dist/session/creations.d.ts +328 -0
- package/dist/session/creations.d.ts.map +1 -0
- package/dist/session/creations.js +667 -0
- package/dist/session/creations.js.map +1 -0
- package/dist/session/cursor-stream.d.ts +191 -0
- package/dist/session/cursor-stream.d.ts.map +1 -0
- package/dist/session/cursor-stream.js +328 -0
- package/dist/session/cursor-stream.js.map +1 -0
- package/dist/session/dispatch/companion-bridge.d.ts +116 -0
- package/dist/session/dispatch/companion-bridge.d.ts.map +1 -0
- package/dist/session/dispatch/companion-bridge.js +213 -0
- package/dist/session/dispatch/companion-bridge.js.map +1 -0
- package/dist/session/file-delivery.d.ts +365 -0
- package/dist/session/file-delivery.d.ts.map +1 -0
- package/dist/session/file-delivery.js +557 -0
- package/dist/session/file-delivery.js.map +1 -0
- package/dist/session/file-get-handler.d.ts +236 -0
- package/dist/session/file-get-handler.d.ts.map +1 -0
- package/dist/session/file-get-handler.js +476 -0
- package/dist/session/file-get-handler.js.map +1 -0
- package/dist/session/fleet-view.d.ts +245 -0
- package/dist/session/fleet-view.d.ts.map +1 -0
- package/dist/session/fleet-view.js +422 -0
- package/dist/session/fleet-view.js.map +1 -0
- package/dist/session/live-activity.d.ts +312 -0
- package/dist/session/live-activity.d.ts.map +1 -0
- package/dist/session/live-activity.js +473 -0
- package/dist/session/live-activity.js.map +1 -0
- package/dist/session/session-handoff.d.ts +150 -0
- package/dist/session/session-handoff.d.ts.map +1 -0
- package/dist/session/session-handoff.js +223 -0
- package/dist/session/session-handoff.js.map +1 -0
- package/dist/session/surface-subscribers.d.ts +139 -0
- package/dist/session/surface-subscribers.d.ts.map +1 -0
- package/dist/session/surface-subscribers.js +206 -0
- package/dist/session/surface-subscribers.js.map +1 -0
- package/dist/session/voice-intent.d.ts +144 -0
- package/dist/session/voice-intent.d.ts.map +1 -0
- package/dist/session/voice-intent.js +211 -0
- package/dist/session/voice-intent.js.map +1 -0
- package/dist/session/watch-dispatch.d.ts +207 -0
- package/dist/session/watch-dispatch.d.ts.map +1 -0
- package/dist/session/watch-dispatch.js +399 -0
- package/dist/session/watch-dispatch.js.map +1 -0
- package/dist/skills/agentskills-registry.d.ts +102 -0
- package/dist/skills/agentskills-registry.d.ts.map +1 -0
- package/dist/skills/agentskills-registry.js +157 -0
- package/dist/skills/agentskills-registry.js.map +1 -0
- package/dist/skills/anthropic-imports/docx-writer.d.ts +59 -0
- package/dist/skills/anthropic-imports/docx-writer.d.ts.map +1 -0
- package/dist/skills/anthropic-imports/docx-writer.js +239 -0
- package/dist/skills/anthropic-imports/docx-writer.js.map +1 -0
- package/dist/skills/anthropic-imports/pdf-writer.d.ts +63 -0
- package/dist/skills/anthropic-imports/pdf-writer.d.ts.map +1 -0
- package/dist/skills/anthropic-imports/pdf-writer.js +277 -0
- package/dist/skills/anthropic-imports/pdf-writer.js.map +1 -0
- package/dist/skills/anthropic-imports/pptx-writer.d.ts +50 -0
- package/dist/skills/anthropic-imports/pptx-writer.d.ts.map +1 -0
- package/dist/skills/anthropic-imports/pptx-writer.js +334 -0
- package/dist/skills/anthropic-imports/pptx-writer.js.map +1 -0
- package/dist/skills/anthropic-imports/xlsx-writer.d.ts +63 -0
- package/dist/skills/anthropic-imports/xlsx-writer.d.ts.map +1 -0
- package/dist/skills/anthropic-imports/xlsx-writer.js +289 -0
- package/dist/skills/anthropic-imports/xlsx-writer.js.map +1 -0
- package/dist/skills/awesome-imports/entries-domains.d.ts +10 -0
- package/dist/skills/awesome-imports/entries-domains.d.ts.map +1 -0
- package/dist/skills/awesome-imports/entries-domains.js +137 -0
- package/dist/skills/awesome-imports/entries-domains.js.map +1 -0
- package/dist/skills/awesome-imports/entries-skills.d.ts +10 -0
- package/dist/skills/awesome-imports/entries-skills.d.ts.map +1 -0
- package/dist/skills/awesome-imports/entries-skills.js +145 -0
- package/dist/skills/awesome-imports/entries-skills.js.map +1 -0
- package/dist/skills/awesome-imports/entries.d.ts +13 -0
- package/dist/skills/awesome-imports/entries.d.ts.map +1 -0
- package/dist/skills/awesome-imports/entries.js +14 -0
- package/dist/skills/awesome-imports/entries.js.map +1 -0
- package/dist/skills/awesome-imports/index.d.ts +36 -0
- package/dist/skills/awesome-imports/index.d.ts.map +1 -0
- package/dist/skills/awesome-imports/index.js +53 -0
- package/dist/skills/awesome-imports/index.js.map +1 -0
- package/dist/skills/awesome-imports/types.d.ts +33 -0
- package/dist/skills/awesome-imports/types.d.ts.map +1 -0
- package/dist/skills/awesome-imports/types.js +9 -0
- package/dist/skills/awesome-imports/types.js.map +1 -0
- package/dist/skills/cli-anything.d.ts +75 -0
- package/dist/skills/cli-anything.d.ts.map +1 -0
- package/dist/skills/cli-anything.js +156 -0
- package/dist/skills/cli-anything.js.map +1 -0
- package/dist/skills/eval.d.ts +70 -0
- package/dist/skills/eval.d.ts.map +1 -0
- package/dist/skills/eval.js +178 -0
- package/dist/skills/eval.js.map +1 -0
- package/dist/skills/input-sanitizer.d.ts +25 -0
- package/dist/skills/input-sanitizer.d.ts.map +1 -0
- package/dist/skills/input-sanitizer.js +55 -0
- package/dist/skills/input-sanitizer.js.map +1 -0
- package/dist/skills/loader.d.ts +189 -0
- package/dist/skills/loader.d.ts.map +1 -0
- package/dist/skills/loader.js +839 -0
- package/dist/skills/loader.js.map +1 -0
- package/dist/skills/prompt-file-loader.d.ts +55 -0
- package/dist/skills/prompt-file-loader.d.ts.map +1 -0
- package/dist/skills/prompt-file-loader.js +94 -0
- package/dist/skills/prompt-file-loader.js.map +1 -0
- package/dist/skills/self-crystallization.d.ts +62 -0
- package/dist/skills/self-crystallization.d.ts.map +1 -0
- package/dist/skills/self-crystallization.js +143 -0
- package/dist/skills/self-crystallization.js.map +1 -0
- package/dist/skills/skill-compositor.d.ts +66 -0
- package/dist/skills/skill-compositor.d.ts.map +1 -0
- package/dist/skills/skill-compositor.js +143 -0
- package/dist/skills/skill-compositor.js.map +1 -0
- package/dist/skills/skill-merger.d.ts +104 -0
- package/dist/skills/skill-merger.d.ts.map +1 -0
- package/dist/skills/skill-merger.js +369 -0
- package/dist/skills/skill-merger.js.map +1 -0
- package/dist/skills/skill-optimizer.d.ts +83 -0
- package/dist/skills/skill-optimizer.d.ts.map +1 -0
- package/dist/skills/skill-optimizer.js +131 -0
- package/dist/skills/skill-optimizer.js.map +1 -0
- package/dist/skills/skill-source-adapter.d.ts +184 -0
- package/dist/skills/skill-source-adapter.d.ts.map +1 -0
- package/dist/skills/skill-source-adapter.js +0 -0
- package/dist/skills/skill-source-adapter.js.map +1 -0
- package/dist/skills/skill-standard.d.ts +78 -0
- package/dist/skills/skill-standard.d.ts.map +1 -0
- package/dist/skills/skill-standard.js +198 -0
- package/dist/skills/skill-standard.js.map +1 -0
- package/dist/skills/tool-rules-parser.d.ts +51 -0
- package/dist/skills/tool-rules-parser.d.ts.map +1 -0
- package/dist/skills/tool-rules-parser.js +168 -0
- package/dist/skills/tool-rules-parser.js.map +1 -0
- package/dist/skills/wotann-skills-registry.d.ts +88 -0
- package/dist/skills/wotann-skills-registry.d.ts.map +1 -0
- package/dist/skills/wotann-skills-registry.js +533 -0
- package/dist/skills/wotann-skills-registry.js.map +1 -0
- package/dist/snippets/snippet-store.d.ts +121 -0
- package/dist/snippets/snippet-store.d.ts.map +1 -0
- package/dist/snippets/snippet-store.js +267 -0
- package/dist/snippets/snippet-store.js.map +1 -0
- package/dist/sop/pipeline.d.ts +60 -0
- package/dist/sop/pipeline.d.ts.map +1 -0
- package/dist/sop/pipeline.js +214 -0
- package/dist/sop/pipeline.js.map +1 -0
- package/dist/sop/stages/code-generator.d.ts +22 -0
- package/dist/sop/stages/code-generator.d.ts.map +1 -0
- package/dist/sop/stages/code-generator.js +106 -0
- package/dist/sop/stages/code-generator.js.map +1 -0
- package/dist/sop/stages/design-writer.d.ts +21 -0
- package/dist/sop/stages/design-writer.d.ts.map +1 -0
- package/dist/sop/stages/design-writer.js +96 -0
- package/dist/sop/stages/design-writer.js.map +1 -0
- package/dist/sop/stages/prd-writer.d.ts +22 -0
- package/dist/sop/stages/prd-writer.d.ts.map +1 -0
- package/dist/sop/stages/prd-writer.js +88 -0
- package/dist/sop/stages/prd-writer.js.map +1 -0
- package/dist/sop/stages/qa.d.ts +64 -0
- package/dist/sop/stages/qa.d.ts.map +1 -0
- package/dist/sop/stages/qa.js +241 -0
- package/dist/sop/stages/qa.js.map +1 -0
- package/dist/sop/types.d.ts +94 -0
- package/dist/sop/types.d.ts.map +1 -0
- package/dist/sop/types.js +13 -0
- package/dist/sop/types.js.map +1 -0
- package/dist/storage/checkpoint-supersede.d.ts +78 -0
- package/dist/storage/checkpoint-supersede.d.ts.map +1 -0
- package/dist/storage/checkpoint-supersede.js +85 -0
- package/dist/storage/checkpoint-supersede.js.map +1 -0
- package/dist/storage/index.d.ts +80 -0
- package/dist/storage/index.d.ts.map +1 -0
- package/dist/storage/index.js +95 -0
- package/dist/storage/index.js.map +1 -0
- package/dist/storage/sqlite-better-backend.d.ts +64 -0
- package/dist/storage/sqlite-better-backend.d.ts.map +1 -0
- package/dist/storage/sqlite-better-backend.js +169 -0
- package/dist/storage/sqlite-better-backend.js.map +1 -0
- package/dist/storage/sqlite-node-backend.d.ts +69 -0
- package/dist/storage/sqlite-node-backend.d.ts.map +1 -0
- package/dist/storage/sqlite-node-backend.js +195 -0
- package/dist/storage/sqlite-node-backend.js.map +1 -0
- package/dist/storage/storage-adapter.d.ts +184 -0
- package/dist/storage/storage-adapter.d.ts.map +1 -0
- package/dist/storage/storage-adapter.js +62 -0
- package/dist/storage/storage-adapter.js.map +1 -0
- package/dist/telemetry/audit-trail.d.ts +124 -0
- package/dist/telemetry/audit-trail.d.ts.map +1 -0
- package/dist/telemetry/audit-trail.js +280 -0
- package/dist/telemetry/audit-trail.js.map +1 -0
- package/dist/telemetry/benchmarks.d.ts +65 -0
- package/dist/telemetry/benchmarks.d.ts.map +1 -0
- package/dist/telemetry/benchmarks.js +171 -0
- package/dist/telemetry/benchmarks.js.map +1 -0
- package/dist/telemetry/cost-oracle.d.ts +53 -0
- package/dist/telemetry/cost-oracle.d.ts.map +1 -0
- package/dist/telemetry/cost-oracle.js +206 -0
- package/dist/telemetry/cost-oracle.js.map +1 -0
- package/dist/telemetry/cost-tracker.d.ts +318 -0
- package/dist/telemetry/cost-tracker.d.ts.map +1 -0
- package/dist/telemetry/cost-tracker.js +887 -0
- package/dist/telemetry/cost-tracker.js.map +1 -0
- package/dist/telemetry/daily-cost-store.d.ts +43 -0
- package/dist/telemetry/daily-cost-store.d.ts.map +1 -0
- package/dist/telemetry/daily-cost-store.js +140 -0
- package/dist/telemetry/daily-cost-store.js.map +1 -0
- package/dist/telemetry/eval-observability.d.ts +105 -0
- package/dist/telemetry/eval-observability.d.ts.map +1 -0
- package/dist/telemetry/eval-observability.js +182 -0
- package/dist/telemetry/eval-observability.js.map +1 -0
- package/dist/telemetry/observability-export.d.ts +145 -0
- package/dist/telemetry/observability-export.d.ts.map +1 -0
- package/dist/telemetry/observability-export.js +339 -0
- package/dist/telemetry/observability-export.js.map +1 -0
- package/dist/telemetry/opt-out.d.ts +31 -0
- package/dist/telemetry/opt-out.d.ts.map +1 -0
- package/dist/telemetry/opt-out.js +58 -0
- package/dist/telemetry/opt-out.js.map +1 -0
- package/dist/telemetry/session-analytics.d.ts +94 -0
- package/dist/telemetry/session-analytics.d.ts.map +1 -0
- package/dist/telemetry/session-analytics.js +152 -0
- package/dist/telemetry/session-analytics.js.map +1 -0
- package/dist/telemetry/session-replay.d.ts +132 -0
- package/dist/telemetry/session-replay.d.ts.map +1 -0
- package/dist/telemetry/session-replay.js +245 -0
- package/dist/telemetry/session-replay.js.map +1 -0
- package/dist/telemetry/token-estimator.d.ts +72 -0
- package/dist/telemetry/token-estimator.d.ts.map +1 -0
- package/dist/telemetry/token-estimator.js +86 -0
- package/dist/telemetry/token-estimator.js.map +1 -0
- package/dist/telemetry/traceparent.d.ts +139 -0
- package/dist/telemetry/traceparent.d.ts.map +1 -0
- package/dist/telemetry/traceparent.js +249 -0
- package/dist/telemetry/traceparent.js.map +1 -0
- package/dist/telemetry/wotann-compute-unit.d.ts +82 -0
- package/dist/telemetry/wotann-compute-unit.d.ts.map +1 -0
- package/dist/telemetry/wotann-compute-unit.js +112 -0
- package/dist/telemetry/wotann-compute-unit.js.map +1 -0
- package/dist/testing/prompt-regression.d.ts +73 -0
- package/dist/testing/prompt-regression.d.ts.map +1 -0
- package/dist/testing/prompt-regression.js +170 -0
- package/dist/testing/prompt-regression.js.map +1 -0
- package/dist/testing/screen-aware.d.ts +55 -0
- package/dist/testing/screen-aware.d.ts.map +1 -0
- package/dist/testing/screen-aware.js +137 -0
- package/dist/testing/screen-aware.js.map +1 -0
- package/dist/testing/visual-diff-theater.d.ts +86 -0
- package/dist/testing/visual-diff-theater.d.ts.map +1 -0
- package/dist/testing/visual-diff-theater.js +262 -0
- package/dist/testing/visual-diff-theater.js.map +1 -0
- package/dist/testing/visual-verifier.d.ts +61 -0
- package/dist/testing/visual-verifier.d.ts.map +1 -0
- package/dist/testing/visual-verifier.js +201 -0
- package/dist/testing/visual-verifier.js.map +1 -0
- package/dist/tools/aux-tools.d.ts +39 -0
- package/dist/tools/aux-tools.d.ts.map +1 -0
- package/dist/tools/aux-tools.js +301 -0
- package/dist/tools/aux-tools.js.map +1 -0
- package/dist/tools/composio-adapter.d.ts +99 -0
- package/dist/tools/composio-adapter.d.ts.map +1 -0
- package/dist/tools/composio-adapter.js +140 -0
- package/dist/tools/composio-adapter.js.map +1 -0
- package/dist/tools/deep-research-loop.d.ts +91 -0
- package/dist/tools/deep-research-loop.d.ts.map +1 -0
- package/dist/tools/deep-research-loop.js +129 -0
- package/dist/tools/deep-research-loop.js.map +1 -0
- package/dist/tools/docx-processor.d.ts +54 -0
- package/dist/tools/docx-processor.d.ts.map +1 -0
- package/dist/tools/docx-processor.js +183 -0
- package/dist/tools/docx-processor.js.map +1 -0
- package/dist/tools/encoding-detector.d.ts +25 -0
- package/dist/tools/encoding-detector.d.ts.map +1 -0
- package/dist/tools/encoding-detector.js +147 -0
- package/dist/tools/encoding-detector.js.map +1 -0
- package/dist/tools/grep-subagent.d.ts +85 -0
- package/dist/tools/grep-subagent.d.ts.map +1 -0
- package/dist/tools/grep-subagent.js +414 -0
- package/dist/tools/grep-subagent.js.map +1 -0
- package/dist/tools/hash-anchored-edit.d.ts +100 -0
- package/dist/tools/hash-anchored-edit.d.ts.map +1 -0
- package/dist/tools/hash-anchored-edit.js +161 -0
- package/dist/tools/hash-anchored-edit.js.map +1 -0
- package/dist/tools/hashline-edit.d.ts +79 -0
- package/dist/tools/hashline-edit.d.ts.map +1 -0
- package/dist/tools/hashline-edit.js +174 -0
- package/dist/tools/hashline-edit.js.map +1 -0
- package/dist/tools/hashline-edits.d.ts +169 -0
- package/dist/tools/hashline-edits.d.ts.map +1 -0
- package/dist/tools/hashline-edits.js +594 -0
- package/dist/tools/hashline-edits.js.map +1 -0
- package/dist/tools/image-gen-router.d.ts +39 -0
- package/dist/tools/image-gen-router.d.ts.map +1 -0
- package/dist/tools/image-gen-router.js +288 -0
- package/dist/tools/image-gen-router.js.map +1 -0
- package/dist/tools/markitdown-bridge.d.ts +42 -0
- package/dist/tools/markitdown-bridge.d.ts.map +1 -0
- package/dist/tools/markitdown-bridge.js +249 -0
- package/dist/tools/markitdown-bridge.js.map +1 -0
- package/dist/tools/monitor-bg.d.ts +73 -0
- package/dist/tools/monitor-bg.d.ts.map +1 -0
- package/dist/tools/monitor-bg.js +275 -0
- package/dist/tools/monitor-bg.js.map +1 -0
- package/dist/tools/monitor.d.ts +58 -0
- package/dist/tools/monitor.d.ts.map +1 -0
- package/dist/tools/monitor.js +204 -0
- package/dist/tools/monitor.js.map +1 -0
- package/dist/tools/parallel-grep.d.ts +72 -0
- package/dist/tools/parallel-grep.d.ts.map +1 -0
- package/dist/tools/parallel-grep.js +154 -0
- package/dist/tools/parallel-grep.js.map +1 -0
- package/dist/tools/pdf-processor.d.ts +47 -0
- package/dist/tools/pdf-processor.d.ts.map +1 -0
- package/dist/tools/pdf-processor.js +214 -0
- package/dist/tools/pdf-processor.js.map +1 -0
- package/dist/tools/post-callback.d.ts +62 -0
- package/dist/tools/post-callback.d.ts.map +1 -0
- package/dist/tools/post-callback.js +153 -0
- package/dist/tools/post-callback.js.map +1 -0
- package/dist/tools/rtk-compressor.d.ts +59 -0
- package/dist/tools/rtk-compressor.d.ts.map +1 -0
- package/dist/tools/rtk-compressor.js +236 -0
- package/dist/tools/rtk-compressor.js.map +1 -0
- package/dist/tools/task-tool.d.ts +80 -0
- package/dist/tools/task-tool.d.ts.map +1 -0
- package/dist/tools/task-tool.js +309 -0
- package/dist/tools/task-tool.js.map +1 -0
- package/dist/tools/tool-timing.d.ts +99 -0
- package/dist/tools/tool-timing.d.ts.map +1 -0
- package/dist/tools/tool-timing.js +196 -0
- package/dist/tools/tool-timing.js.map +1 -0
- package/dist/tools/web-fetch.d.ts +116 -0
- package/dist/tools/web-fetch.d.ts.map +1 -0
- package/dist/tools/web-fetch.js +501 -0
- package/dist/tools/web-fetch.js.map +1 -0
- package/dist/tools/xlsx-processor.d.ts +57 -0
- package/dist/tools/xlsx-processor.d.ts.map +1 -0
- package/dist/tools/xlsx-processor.js +274 -0
- package/dist/tools/xlsx-processor.js.map +1 -0
- package/dist/training/autoresearch.d.ts +129 -0
- package/dist/training/autoresearch.d.ts.map +1 -0
- package/dist/training/autoresearch.js +307 -0
- package/dist/training/autoresearch.js.map +1 -0
- package/dist/training/llm-modification-generator.d.ts +45 -0
- package/dist/training/llm-modification-generator.d.ts.map +1 -0
- package/dist/training/llm-modification-generator.js +207 -0
- package/dist/training/llm-modification-generator.js.map +1 -0
- package/dist/training/pipeline.d.ts +120 -0
- package/dist/training/pipeline.d.ts.map +1 -0
- package/dist/training/pipeline.js +272 -0
- package/dist/training/pipeline.js.map +1 -0
- package/dist/training/rl-environment.d.ts +148 -0
- package/dist/training/rl-environment.d.ts.map +1 -0
- package/dist/training/rl-environment.js +264 -0
- package/dist/training/rl-environment.js.map +1 -0
- package/dist/training/session-extractor.d.ts +55 -0
- package/dist/training/session-extractor.d.ts.map +1 -0
- package/dist/training/session-extractor.js +177 -0
- package/dist/training/session-extractor.js.map +1 -0
- package/dist/training/trajectory-extractor.d.ts +83 -0
- package/dist/training/trajectory-extractor.d.ts.map +1 -0
- package/dist/training/trajectory-extractor.js +211 -0
- package/dist/training/trajectory-extractor.js.map +1 -0
- package/dist/ui/App.d.ts +24 -0
- package/dist/ui/App.d.ts.map +1 -0
- package/dist/ui/App.js +3248 -0
- package/dist/ui/App.js.map +1 -0
- package/dist/ui/accessibility.d.ts +157 -0
- package/dist/ui/accessibility.d.ts.map +1 -0
- package/dist/ui/accessibility.js +232 -0
- package/dist/ui/accessibility.js.map +1 -0
- package/dist/ui/agent-fleet-dashboard.d.ts +59 -0
- package/dist/ui/agent-fleet-dashboard.d.ts.map +1 -0
- package/dist/ui/agent-fleet-dashboard.js +143 -0
- package/dist/ui/agent-fleet-dashboard.js.map +1 -0
- package/dist/ui/alt-buffer.d.ts +73 -0
- package/dist/ui/alt-buffer.d.ts.map +1 -0
- package/dist/ui/alt-buffer.js +151 -0
- package/dist/ui/alt-buffer.js.map +1 -0
- package/dist/ui/animations/RavensFlight.d.ts +56 -0
- package/dist/ui/animations/RavensFlight.d.ts.map +1 -0
- package/dist/ui/animations/RavensFlight.js +103 -0
- package/dist/ui/animations/RavensFlight.js.map +1 -0
- package/dist/ui/animations/SigilStamp.d.ts +89 -0
- package/dist/ui/animations/SigilStamp.d.ts.map +1 -0
- package/dist/ui/animations/SigilStamp.js +142 -0
- package/dist/ui/animations/SigilStamp.js.map +1 -0
- package/dist/ui/animations.d.ts +102 -0
- package/dist/ui/animations.d.ts.map +1 -0
- package/dist/ui/animations.js +277 -0
- package/dist/ui/animations.js.map +1 -0
- package/dist/ui/bootstrap.d.ts +25 -0
- package/dist/ui/bootstrap.d.ts.map +1 -0
- package/dist/ui/bootstrap.js +51 -0
- package/dist/ui/bootstrap.js.map +1 -0
- package/dist/ui/canvas.d.ts +85 -0
- package/dist/ui/canvas.d.ts.map +1 -0
- package/dist/ui/canvas.js +210 -0
- package/dist/ui/canvas.js.map +1 -0
- package/dist/ui/command-registry.d.ts +64 -0
- package/dist/ui/command-registry.d.ts.map +1 -0
- package/dist/ui/command-registry.js +148 -0
- package/dist/ui/command-registry.js.map +1 -0
- package/dist/ui/components/AgentStatusPanel.d.ts +25 -0
- package/dist/ui/components/AgentStatusPanel.d.ts.map +1 -0
- package/dist/ui/components/AgentStatusPanel.js +32 -0
- package/dist/ui/components/AgentStatusPanel.js.map +1 -0
- package/dist/ui/components/AuditLogPanel.d.ts +22 -0
- package/dist/ui/components/AuditLogPanel.d.ts.map +1 -0
- package/dist/ui/components/AuditLogPanel.js +158 -0
- package/dist/ui/components/AuditLogPanel.js.map +1 -0
- package/dist/ui/components/AutomationsPanel.d.ts +28 -0
- package/dist/ui/components/AutomationsPanel.d.ts.map +1 -0
- package/dist/ui/components/AutomationsPanel.js +298 -0
- package/dist/ui/components/AutomationsPanel.js.map +1 -0
- package/dist/ui/components/ChatView.d.ts +27 -0
- package/dist/ui/components/ChatView.d.ts.map +1 -0
- package/dist/ui/components/ChatView.js +49 -0
- package/dist/ui/components/ChatView.js.map +1 -0
- package/dist/ui/components/CommandPalette.d.ts +39 -0
- package/dist/ui/components/CommandPalette.d.ts.map +1 -0
- package/dist/ui/components/CommandPalette.js +95 -0
- package/dist/ui/components/CommandPalette.js.map +1 -0
- package/dist/ui/components/CommandPaletteCommands.d.ts +70 -0
- package/dist/ui/components/CommandPaletteCommands.d.ts.map +1 -0
- package/dist/ui/components/CommandPaletteCommands.js +267 -0
- package/dist/ui/components/CommandPaletteCommands.js.map +1 -0
- package/dist/ui/components/ContextHUD.d.ts +24 -0
- package/dist/ui/components/ContextHUD.d.ts.map +1 -0
- package/dist/ui/components/ContextHUD.js +27 -0
- package/dist/ui/components/ContextHUD.js.map +1 -0
- package/dist/ui/components/ContextSourcePanel.d.ts +20 -0
- package/dist/ui/components/ContextSourcePanel.d.ts.map +1 -0
- package/dist/ui/components/ContextSourcePanel.js +91 -0
- package/dist/ui/components/ContextSourcePanel.js.map +1 -0
- package/dist/ui/components/DesignPreview.d.ts +66 -0
- package/dist/ui/components/DesignPreview.d.ts.map +1 -0
- package/dist/ui/components/DesignPreview.js +39 -0
- package/dist/ui/components/DesignPreview.js.map +1 -0
- package/dist/ui/components/DiffTimeline.d.ts +38 -0
- package/dist/ui/components/DiffTimeline.d.ts.map +1 -0
- package/dist/ui/components/DiffTimeline.js +65 -0
- package/dist/ui/components/DiffTimeline.js.map +1 -0
- package/dist/ui/components/DiffViewer.d.ts +35 -0
- package/dist/ui/components/DiffViewer.d.ts.map +1 -0
- package/dist/ui/components/DiffViewer.js +115 -0
- package/dist/ui/components/DiffViewer.js.map +1 -0
- package/dist/ui/components/DispatchInbox.d.ts +32 -0
- package/dist/ui/components/DispatchInbox.d.ts.map +1 -0
- package/dist/ui/components/DispatchInbox.js +89 -0
- package/dist/ui/components/DispatchInbox.js.map +1 -0
- package/dist/ui/components/GdprPanel.d.ts +22 -0
- package/dist/ui/components/GdprPanel.d.ts.map +1 -0
- package/dist/ui/components/GdprPanel.js +165 -0
- package/dist/ui/components/GdprPanel.js.map +1 -0
- package/dist/ui/components/HistoryPicker.d.ts +19 -0
- package/dist/ui/components/HistoryPicker.d.ts.map +1 -0
- package/dist/ui/components/HistoryPicker.js +129 -0
- package/dist/ui/components/HistoryPicker.js.map +1 -0
- package/dist/ui/components/MemoryInspector.d.ts +19 -0
- package/dist/ui/components/MemoryInspector.d.ts.map +1 -0
- package/dist/ui/components/MemoryInspector.js +129 -0
- package/dist/ui/components/MemoryInspector.js.map +1 -0
- package/dist/ui/components/MessageActions.d.ts +15 -0
- package/dist/ui/components/MessageActions.d.ts.map +1 -0
- package/dist/ui/components/MessageActions.js +84 -0
- package/dist/ui/components/MessageActions.js.map +1 -0
- package/dist/ui/components/ModelPicker.d.ts +61 -0
- package/dist/ui/components/ModelPicker.d.ts.map +1 -0
- package/dist/ui/components/ModelPicker.js +224 -0
- package/dist/ui/components/ModelPicker.js.map +1 -0
- package/dist/ui/components/OptionPicker.d.ts +38 -0
- package/dist/ui/components/OptionPicker.d.ts.map +1 -0
- package/dist/ui/components/OptionPicker.js +146 -0
- package/dist/ui/components/OptionPicker.js.map +1 -0
- package/dist/ui/components/PermissionPrompt.d.ts +22 -0
- package/dist/ui/components/PermissionPrompt.d.ts.map +1 -0
- package/dist/ui/components/PermissionPrompt.js +68 -0
- package/dist/ui/components/PermissionPrompt.js.map +1 -0
- package/dist/ui/components/PromptInput.d.ts +31 -0
- package/dist/ui/components/PromptInput.d.ts.map +1 -0
- package/dist/ui/components/PromptInput.js +244 -0
- package/dist/ui/components/PromptInput.js.map +1 -0
- package/dist/ui/components/ProofViewer.d.ts +30 -0
- package/dist/ui/components/ProofViewer.d.ts.map +1 -0
- package/dist/ui/components/ProofViewer.js +62 -0
- package/dist/ui/components/ProofViewer.js.map +1 -0
- package/dist/ui/components/Sparkline.d.ts +81 -0
- package/dist/ui/components/Sparkline.d.ts.map +1 -0
- package/dist/ui/components/Sparkline.js +102 -0
- package/dist/ui/components/Sparkline.js.map +1 -0
- package/dist/ui/components/StartupScreen.d.ts +31 -0
- package/dist/ui/components/StartupScreen.d.ts.map +1 -0
- package/dist/ui/components/StartupScreen.js +29 -0
- package/dist/ui/components/StartupScreen.js.map +1 -0
- package/dist/ui/components/StatusBar.d.ts +51 -0
- package/dist/ui/components/StatusBar.d.ts.map +1 -0
- package/dist/ui/components/StatusBar.js +74 -0
- package/dist/ui/components/StatusBar.js.map +1 -0
- package/dist/ui/components/TerminalBlocksView.d.ts +31 -0
- package/dist/ui/components/TerminalBlocksView.d.ts.map +1 -0
- package/dist/ui/components/TerminalBlocksView.js +149 -0
- package/dist/ui/components/TerminalBlocksView.js.map +1 -0
- package/dist/ui/components/TrustPanel.d.ts +26 -0
- package/dist/ui/components/TrustPanel.d.ts.map +1 -0
- package/dist/ui/components/TrustPanel.js +173 -0
- package/dist/ui/components/TrustPanel.js.map +1 -0
- package/dist/ui/components/UnifiedStatusBar.d.ts +65 -0
- package/dist/ui/components/UnifiedStatusBar.d.ts.map +1 -0
- package/dist/ui/components/UnifiedStatusBar.js +60 -0
- package/dist/ui/components/UnifiedStatusBar.js.map +1 -0
- package/dist/ui/components/primitives/Banner.d.ts +47 -0
- package/dist/ui/components/primitives/Banner.d.ts.map +1 -0
- package/dist/ui/components/primitives/Banner.js +29 -0
- package/dist/ui/components/primitives/Banner.js.map +1 -0
- package/dist/ui/components/primitives/Card.d.ts +58 -0
- package/dist/ui/components/primitives/Card.d.ts.map +1 -0
- package/dist/ui/components/primitives/Card.js +20 -0
- package/dist/ui/components/primitives/Card.js.map +1 -0
- package/dist/ui/components/primitives/KeyHint.d.ts +58 -0
- package/dist/ui/components/primitives/KeyHint.d.ts.map +1 -0
- package/dist/ui/components/primitives/KeyHint.js +21 -0
- package/dist/ui/components/primitives/KeyHint.js.map +1 -0
- package/dist/ui/components/primitives/Notification.d.ts +26 -0
- package/dist/ui/components/primitives/Notification.d.ts.map +1 -0
- package/dist/ui/components/primitives/Notification.js +24 -0
- package/dist/ui/components/primitives/Notification.js.map +1 -0
- package/dist/ui/components/primitives/ProgressMeter.d.ts +47 -0
- package/dist/ui/components/primitives/ProgressMeter.d.ts.map +1 -0
- package/dist/ui/components/primitives/ProgressMeter.js +46 -0
- package/dist/ui/components/primitives/ProgressMeter.js.map +1 -0
- package/dist/ui/components/primitives/Spinner.d.ts +28 -0
- package/dist/ui/components/primitives/Spinner.d.ts.map +1 -0
- package/dist/ui/components/primitives/Spinner.js +32 -0
- package/dist/ui/components/primitives/Spinner.js.map +1 -0
- package/dist/ui/components/primitives/StatusBadge.d.ts +38 -0
- package/dist/ui/components/primitives/StatusBadge.d.ts.map +1 -0
- package/dist/ui/components/primitives/StatusBadge.js +28 -0
- package/dist/ui/components/primitives/StatusBadge.js.map +1 -0
- package/dist/ui/components/primitives/index.d.ts +24 -0
- package/dist/ui/components/primitives/index.d.ts.map +1 -0
- package/dist/ui/components/primitives/index.js +17 -0
- package/dist/ui/components/primitives/index.js.map +1 -0
- package/dist/ui/context-meter.d.ts +46 -0
- package/dist/ui/context-meter.d.ts.map +1 -0
- package/dist/ui/context-meter.js +111 -0
- package/dist/ui/context-meter.js.map +1 -0
- package/dist/ui/context-references.d.ts +62 -0
- package/dist/ui/context-references.d.ts.map +1 -0
- package/dist/ui/context-references.js +559 -0
- package/dist/ui/context-references.js.map +1 -0
- package/dist/ui/cost-readout.d.ts +60 -0
- package/dist/ui/cost-readout.d.ts.map +1 -0
- package/dist/ui/cost-readout.js +101 -0
- package/dist/ui/cost-readout.js.map +1 -0
- package/dist/ui/diff-engine.d.ts +110 -0
- package/dist/ui/diff-engine.d.ts.map +1 -0
- package/dist/ui/diff-engine.js +274 -0
- package/dist/ui/diff-engine.js.map +1 -0
- package/dist/ui/follow-ups.d.ts +39 -0
- package/dist/ui/follow-ups.d.ts.map +1 -0
- package/dist/ui/follow-ups.js +226 -0
- package/dist/ui/follow-ups.js.map +1 -0
- package/dist/ui/helpers.d.ts +33 -0
- package/dist/ui/helpers.d.ts.map +1 -0
- package/dist/ui/helpers.js +97 -0
- package/dist/ui/helpers.js.map +1 -0
- package/dist/ui/input/mouse.d.ts +139 -0
- package/dist/ui/input/mouse.d.ts.map +1 -0
- package/dist/ui/input/mouse.js +239 -0
- package/dist/ui/input/mouse.js.map +1 -0
- package/dist/ui/keybindings.d.ts +26 -0
- package/dist/ui/keybindings.d.ts.map +1 -0
- package/dist/ui/keybindings.js +76 -0
- package/dist/ui/keybindings.js.map +1 -0
- package/dist/ui/raven/raven-state.d.ts +69 -0
- package/dist/ui/raven/raven-state.d.ts.map +1 -0
- package/dist/ui/raven/raven-state.js +185 -0
- package/dist/ui/raven/raven-state.js.map +1 -0
- package/dist/ui/sound.d.ts +85 -0
- package/dist/ui/sound.d.ts.map +1 -0
- package/dist/ui/sound.js +126 -0
- package/dist/ui/sound.js.map +1 -0
- package/dist/ui/statusline.d.ts +74 -0
- package/dist/ui/statusline.d.ts.map +1 -0
- package/dist/ui/statusline.js +111 -0
- package/dist/ui/statusline.js.map +1 -0
- package/dist/ui/string-width-cache.d.ts +204 -0
- package/dist/ui/string-width-cache.d.ts.map +1 -0
- package/dist/ui/string-width-cache.js +374 -0
- package/dist/ui/string-width-cache.js.map +1 -0
- package/dist/ui/terminal-blocks/block.d.ts +90 -0
- package/dist/ui/terminal-blocks/block.d.ts.map +1 -0
- package/dist/ui/terminal-blocks/block.js +183 -0
- package/dist/ui/terminal-blocks/block.js.map +1 -0
- package/dist/ui/terminal-blocks/init-snippets.d.ts +32 -0
- package/dist/ui/terminal-blocks/init-snippets.d.ts.map +1 -0
- package/dist/ui/terminal-blocks/init-snippets.js +163 -0
- package/dist/ui/terminal-blocks/init-snippets.js.map +1 -0
- package/dist/ui/terminal-blocks/osc-133-parser.d.ts +98 -0
- package/dist/ui/terminal-blocks/osc-133-parser.d.ts.map +1 -0
- package/dist/ui/terminal-blocks/osc-133-parser.js +230 -0
- package/dist/ui/terminal-blocks/osc-133-parser.js.map +1 -0
- package/dist/ui/theme/tokens.d.ts +198 -0
- package/dist/ui/theme/tokens.d.ts.map +1 -0
- package/dist/ui/theme/tokens.js +199 -0
- package/dist/ui/theme/tokens.js.map +1 -0
- package/dist/ui/themes/colorblind.d.ts +74 -0
- package/dist/ui/themes/colorblind.d.ts.map +1 -0
- package/dist/ui/themes/colorblind.js +162 -0
- package/dist/ui/themes/colorblind.js.map +1 -0
- package/dist/ui/themes.d.ts +158 -0
- package/dist/ui/themes.d.ts.map +1 -0
- package/dist/ui/themes.js +425 -0
- package/dist/ui/themes.js.map +1 -0
- package/dist/ui/turn-finalize.d.ts +66 -0
- package/dist/ui/turn-finalize.d.ts.map +1 -0
- package/dist/ui/turn-finalize.js +79 -0
- package/dist/ui/turn-finalize.js.map +1 -0
- package/dist/ui/voice-controller.d.ts +32 -0
- package/dist/ui/voice-controller.d.ts.map +1 -0
- package/dist/ui/voice-controller.js +72 -0
- package/dist/ui/voice-controller.js.map +1 -0
- package/dist/utils/atomic-io.d.ts +83 -0
- package/dist/utils/atomic-io.d.ts.map +1 -0
- package/dist/utils/atomic-io.js +219 -0
- package/dist/utils/atomic-io.js.map +1 -0
- package/dist/utils/atomic-write.d.ts +60 -0
- package/dist/utils/atomic-write.d.ts.map +1 -0
- package/dist/utils/atomic-write.js +144 -0
- package/dist/utils/atomic-write.js.map +1 -0
- package/dist/utils/execFileNoThrow.d.ts +19 -0
- package/dist/utils/execFileNoThrow.d.ts.map +1 -0
- package/dist/utils/execFileNoThrow.js +31 -0
- package/dist/utils/execFileNoThrow.js.map +1 -0
- package/dist/utils/json-parse.d.ts +52 -0
- package/dist/utils/json-parse.d.ts.map +1 -0
- package/dist/utils/json-parse.js +259 -0
- package/dist/utils/json-parse.js.map +1 -0
- package/dist/utils/marker-polling.d.ts +216 -0
- package/dist/utils/marker-polling.d.ts.map +1 -0
- package/dist/utils/marker-polling.js +324 -0
- package/dist/utils/marker-polling.js.map +1 -0
- package/dist/utils/path-realpath.d.ts +81 -0
- package/dist/utils/path-realpath.d.ts.map +1 -0
- package/dist/utils/path-realpath.js +210 -0
- package/dist/utils/path-realpath.js.map +1 -0
- package/dist/utils/process-handlers.d.ts +65 -0
- package/dist/utils/process-handlers.d.ts.map +1 -0
- package/dist/utils/process-handlers.js +102 -0
- package/dist/utils/process-handlers.js.map +1 -0
- package/dist/utils/proxy-setup.d.ts +56 -0
- package/dist/utils/proxy-setup.d.ts.map +1 -0
- package/dist/utils/proxy-setup.js +109 -0
- package/dist/utils/proxy-setup.js.map +1 -0
- package/dist/utils/schema-drift.d.ts +99 -0
- package/dist/utils/schema-drift.d.ts.map +1 -0
- package/dist/utils/schema-drift.js +123 -0
- package/dist/utils/schema-drift.js.map +1 -0
- package/dist/utils/shadow-git.d.ts +111 -0
- package/dist/utils/shadow-git.d.ts.map +1 -0
- package/dist/utils/shadow-git.js +392 -0
- package/dist/utils/shadow-git.js.map +1 -0
- package/dist/utils/sidecar-downloader.d.ts +54 -0
- package/dist/utils/sidecar-downloader.d.ts.map +1 -0
- package/dist/utils/sidecar-downloader.js +185 -0
- package/dist/utils/sidecar-downloader.js.map +1 -0
- package/dist/utils/sqlite-kv-store.d.ts +91 -0
- package/dist/utils/sqlite-kv-store.d.ts.map +1 -0
- package/dist/utils/sqlite-kv-store.js +229 -0
- package/dist/utils/sqlite-kv-store.js.map +1 -0
- package/dist/utils/sqlite-store-init.d.ts +33 -0
- package/dist/utils/sqlite-store-init.d.ts.map +1 -0
- package/dist/utils/sqlite-store-init.js +31 -0
- package/dist/utils/sqlite-store-init.js.map +1 -0
- package/dist/utils/stub-detection.d.ts +18 -0
- package/dist/utils/stub-detection.d.ts.map +1 -0
- package/dist/utils/stub-detection.js +32 -0
- package/dist/utils/stub-detection.js.map +1 -0
- package/dist/utils/transcript-shrinker.d.ts +51 -0
- package/dist/utils/transcript-shrinker.d.ts.map +1 -0
- package/dist/utils/transcript-shrinker.js +124 -0
- package/dist/utils/transcript-shrinker.js.map +1 -0
- package/dist/utils/trusted-workspaces.d.ts +106 -0
- package/dist/utils/trusted-workspaces.d.ts.map +1 -0
- package/dist/utils/trusted-workspaces.js +175 -0
- package/dist/utils/trusted-workspaces.js.map +1 -0
- package/dist/utils/vision-ocr.d.ts +46 -0
- package/dist/utils/vision-ocr.d.ts.map +1 -0
- package/dist/utils/vision-ocr.js +225 -0
- package/dist/utils/vision-ocr.js.map +1 -0
- package/dist/utils/wasm-bypass.d.ts +23 -0
- package/dist/utils/wasm-bypass.d.ts.map +1 -0
- package/dist/utils/wasm-bypass.js +63 -0
- package/dist/utils/wasm-bypass.js.map +1 -0
- package/dist/utils/wotann-home.d.ts +39 -0
- package/dist/utils/wotann-home.d.ts.map +1 -0
- package/dist/utils/wotann-home.js +49 -0
- package/dist/utils/wotann-home.js.map +1 -0
- package/dist/verification/index.d.ts +56 -0
- package/dist/verification/index.d.ts.map +1 -0
- package/dist/verification/index.js +86 -0
- package/dist/verification/index.js.map +1 -0
- package/dist/verification/judge-adapter.d.ts +32 -0
- package/dist/verification/judge-adapter.d.ts.map +1 -0
- package/dist/verification/judge-adapter.js +72 -0
- package/dist/verification/judge-adapter.js.map +1 -0
- package/dist/verification/pre-commit.d.ts +22 -0
- package/dist/verification/pre-commit.d.ts.map +1 -0
- package/dist/verification/pre-commit.js +66 -0
- package/dist/verification/pre-commit.js.map +1 -0
- package/dist/verification/strategies/cove-wrapper.d.ts +23 -0
- package/dist/verification/strategies/cove-wrapper.d.ts.map +1 -0
- package/dist/verification/strategies/cove-wrapper.js +108 -0
- package/dist/verification/strategies/cove-wrapper.js.map +1 -0
- package/dist/verification/strategies/faithfulness.d.ts +15 -0
- package/dist/verification/strategies/faithfulness.d.ts.map +1 -0
- package/dist/verification/strategies/faithfulness.js +102 -0
- package/dist/verification/strategies/faithfulness.js.map +1 -0
- package/dist/verification/strategies/format.d.ts +16 -0
- package/dist/verification/strategies/format.d.ts.map +1 -0
- package/dist/verification/strategies/format.js +116 -0
- package/dist/verification/strategies/format.js.map +1 -0
- package/dist/verification/strategies/four-perspective-wrapper.d.ts +21 -0
- package/dist/verification/strategies/four-perspective-wrapper.d.ts.map +1 -0
- package/dist/verification/strategies/four-perspective-wrapper.js +109 -0
- package/dist/verification/strategies/four-perspective-wrapper.js.map +1 -0
- package/dist/verification/strategies/guardian-wrapper.d.ts +20 -0
- package/dist/verification/strategies/guardian-wrapper.d.ts.map +1 -0
- package/dist/verification/strategies/guardian-wrapper.js +78 -0
- package/dist/verification/strategies/guardian-wrapper.js.map +1 -0
- package/dist/verification/strategies/hallucination.d.ts +25 -0
- package/dist/verification/strategies/hallucination.d.ts.map +1 -0
- package/dist/verification/strategies/hallucination.js +153 -0
- package/dist/verification/strategies/hallucination.js.map +1 -0
- package/dist/verification/strategies/plan-action-match.d.ts +16 -0
- package/dist/verification/strategies/plan-action-match.d.ts.map +1 -0
- package/dist/verification/strategies/plan-action-match.js +120 -0
- package/dist/verification/strategies/plan-action-match.js.map +1 -0
- package/dist/verification/strategies/safety.d.ts +18 -0
- package/dist/verification/strategies/safety.d.ts.map +1 -0
- package/dist/verification/strategies/safety.js +115 -0
- package/dist/verification/strategies/safety.js.map +1 -0
- package/dist/verification/types.d.ts +201 -0
- package/dist/verification/types.d.ts.map +1 -0
- package/dist/verification/types.js +42 -0
- package/dist/verification/types.js.map +1 -0
- package/dist/verification/verifier-engine.d.ts +36 -0
- package/dist/verification/verifier-engine.d.ts.map +1 -0
- package/dist/verification/verifier-engine.js +226 -0
- package/dist/verification/verifier-engine.js.map +1 -0
- package/dist/vision/cache.d.ts +50 -0
- package/dist/vision/cache.d.ts.map +1 -0
- package/dist/vision/cache.js +95 -0
- package/dist/vision/cache.js.map +1 -0
- package/dist/vision/ingest.d.ts +61 -0
- package/dist/vision/ingest.d.ts.map +1 -0
- package/dist/vision/ingest.js +162 -0
- package/dist/vision/ingest.js.map +1 -0
- package/dist/vision/keyframes.d.ts +53 -0
- package/dist/vision/keyframes.d.ts.map +1 -0
- package/dist/vision/keyframes.js +203 -0
- package/dist/vision/keyframes.js.map +1 -0
- package/dist/vision/mime-sniff.d.ts +38 -0
- package/dist/vision/mime-sniff.d.ts.map +1 -0
- package/dist/vision/mime-sniff.js +55 -0
- package/dist/vision/mime-sniff.js.map +1 -0
- package/dist/vision/resize.d.ts +60 -0
- package/dist/vision/resize.d.ts.map +1 -0
- package/dist/vision/resize.js +138 -0
- package/dist/vision/resize.js.map +1 -0
- package/dist/vision/size-policy.d.ts +53 -0
- package/dist/vision/size-policy.d.ts.map +1 -0
- package/dist/vision/size-policy.js +159 -0
- package/dist/vision/size-policy.js.map +1 -0
- package/dist/vision/types.d.ts +119 -0
- package/dist/vision/types.d.ts.map +1 -0
- package/dist/vision/types.js +41 -0
- package/dist/vision/types.js.map +1 -0
- package/dist/voice/edge-tts-backend.d.ts +65 -0
- package/dist/voice/edge-tts-backend.d.ts.map +1 -0
- package/dist/voice/edge-tts-backend.js +150 -0
- package/dist/voice/edge-tts-backend.js.map +1 -0
- package/dist/voice/stt-detector.d.ts +100 -0
- package/dist/voice/stt-detector.d.ts.map +1 -0
- package/dist/voice/stt-detector.js +484 -0
- package/dist/voice/stt-detector.js.map +1 -0
- package/dist/voice/tts-engine.d.ts +123 -0
- package/dist/voice/tts-engine.d.ts.map +1 -0
- package/dist/voice/tts-engine.js +602 -0
- package/dist/voice/tts-engine.js.map +1 -0
- package/dist/voice/vibevoice-backend.d.ts +113 -0
- package/dist/voice/vibevoice-backend.d.ts.map +1 -0
- package/dist/voice/vibevoice-backend.js +340 -0
- package/dist/voice/vibevoice-backend.js.map +1 -0
- package/dist/voice/voice-mode.d.ts +96 -0
- package/dist/voice/voice-mode.d.ts.map +1 -0
- package/dist/voice/voice-mode.js +627 -0
- package/dist/voice/voice-mode.js.map +1 -0
- package/dist/voice/voice-pipeline.d.ts +140 -0
- package/dist/voice/voice-pipeline.d.ts.map +1 -0
- package/dist/voice/voice-pipeline.js +658 -0
- package/dist/voice/voice-pipeline.js.map +1 -0
- package/dist/workflows/workflow-runner.d.ts +96 -0
- package/dist/workflows/workflow-runner.d.ts.map +1 -0
- package/dist/workflows/workflow-runner.js +362 -0
- package/dist/workflows/workflow-runner.js.map +1 -0
- package/install.sh +261 -0
- package/package.json +121 -0
- package/skills/a2ui.md +37 -0
- package/skills/agent-autonomy-kit.md +168 -0
- package/skills/agent-reach.md +58 -0
- package/skills/ai-humanizer.md +204 -0
- package/skills/ai-slop-cleaner.md +63 -0
- package/skills/angular-architect.md +67 -0
- package/skills/anthropic-imports/docx-create.md +61 -0
- package/skills/anthropic-imports/pdf-create.md +63 -0
- package/skills/anthropic-imports/pptx-create.md +61 -0
- package/skills/anthropic-imports/xlsx-create.md +67 -0
- package/skills/api-design-rest.md +112 -0
- package/skills/api-design.md +40 -0
- package/skills/batch-processing.md +36 -0
- package/skills/benchmark-engineering.md +45 -0
- package/skills/boost-prompt.md +182 -0
- package/skills/branch-management.md +57 -0
- package/skills/brooks-lint.md +101 -0
- package/skills/canvas-mode.md +40 -0
- package/skills/capability-evolver.md +141 -0
- package/skills/chain-of-thought.md +48 -0
- package/skills/cicd-engineer.md +68 -0
- package/skills/cloud-architect.md +59 -0
- package/skills/code-review-deep.md +82 -0
- package/skills/code-reviewer.md +32 -0
- package/skills/code-simplifier.md +35 -0
- package/skills/codebase-recon.md +101 -0
- package/skills/command-block-replay.md +58 -0
- package/skills/compaction-ui-enhancements.md +169 -0
- package/skills/compare-providers.md +66 -0
- package/skills/compliance-checker.md +62 -0
- package/skills/constitutional-ai.md +44 -0
- package/skills/context-engine.md +186 -0
- package/skills/context-management.md +59 -0
- package/skills/conventional-commit.md +43 -0
- package/skills/cost-intelligence.md +50 -0
- package/skills/cpp-pro.md +72 -0
- package/skills/csharp-developer.md +70 -0
- package/skills/debug-hypothesis-tree.md +56 -0
- package/skills/dependency-auditor.md +50 -0
- package/skills/design-doc-template.md +82 -0
- package/skills/django-expert.md +66 -0
- package/skills/docker-expert.md +41 -0
- package/skills/documentation.md +65 -0
- package/skills/dotnet-core.md +69 -0
- package/skills/dream-cycle.md +59 -0
- package/skills/elite-longterm-memory.md +144 -0
- package/skills/evaluate-prompt.md +71 -0
- package/skills/event-driven.md +21 -0
- package/skills/example-tool-rules.md +56 -0
- package/skills/express-api.md +70 -0
- package/skills/fastapi-expert.md +76 -0
- package/skills/file-based-planning.md +49 -0
- package/skills/find-missing-tests.md +75 -0
- package/skills/flutter-expert.md +23 -0
- package/skills/frontend-design-system.md +35 -0
- package/skills/generator-critic-loop.md +63 -0
- package/skills/golang-pro.md +26 -0
- package/skills/governance.md +175 -0
- package/skills/incident-postmortem.md +89 -0
- package/skills/incident-response.md +196 -0
- package/skills/integration-testing.md +67 -0
- package/skills/java-architect.md +23 -0
- package/skills/karpathy-principles.md +62 -0
- package/skills/kotlin-specialist.md +64 -0
- package/skills/kubernetes-specialist.md +68 -0
- package/skills/lsp-operations.md +40 -0
- package/skills/marketing-conversion-ops.md +36 -0
- package/skills/marketing-expert-panel.md +33 -0
- package/skills/marketing-growth-engine.md +33 -0
- package/skills/marketing-outbound-engine.md +27 -0
- package/skills/marketing-seo-ops.md +32 -0
- package/skills/mcp-marketplace.md +51 -0
- package/skills/memory-stack.md +24 -0
- package/skills/microservices-architect.md +60 -0
- package/skills/mongodb-expert.md +58 -0
- package/skills/monitoring-expert.md +69 -0
- package/skills/multi-source-research.md +56 -0
- package/skills/nestjs-expert.md +69 -0
- package/skills/nextjs-developer.md +23 -0
- package/skills/pack-astro-static.md +225 -0
- package/skills/pack-expo.md +304 -0
- package/skills/pack-hono-react-edge.md +237 -0
- package/skills/pack-nextjs-app-router.md +219 -0
- package/skills/pentest-patterns.md +61 -0
- package/skills/performance-profiler.md +22 -0
- package/skills/php-pro.md +78 -0
- package/skills/playwright-expert.md +23 -0
- package/skills/postgres-pro.md +61 -0
- package/skills/postmortem-template.md +89 -0
- package/skills/pr-creation.md +64 -0
- package/skills/proactive-agent-v3.md +138 -0
- package/skills/prompt-master.md +61 -0
- package/skills/prompt-testing.md +58 -0
- package/skills/python-pro.md +33 -0
- package/skills/rails-expert.md +23 -0
- package/skills/react-expert.md +34 -0
- package/skills/react-native-expert.md +70 -0
- package/skills/redis-expert.md +58 -0
- package/skills/refactor-safely.md +73 -0
- package/skills/refactor-with-tests.md +57 -0
- package/skills/rust-engineer.md +24 -0
- package/skills/scientific-method.md +54 -0
- package/skills/search-first.md +32 -0
- package/skills/security-recon-checklist.md +63 -0
- package/skills/security-reviewer.md +37 -0
- package/skills/self-healing.md +52 -0
- package/skills/setup-audit.md +56 -0
- package/skills/skeleton-of-thought.md +53 -0
- package/skills/skill-creator.md +28 -0
- package/skills/spec-driven-workflow.md +23 -0
- package/skills/spring-boot.md +67 -0
- package/skills/sql-pro.md +34 -0
- package/skills/superpowers-dispatcher.md +234 -0
- package/skills/svelte-expert.md +66 -0
- package/skills/swift-expert.md +77 -0
- package/skills/system-design-interview.md +69 -0
- package/skills/system-design.md +58 -0
- package/skills/systematic-debugging.md +33 -0
- package/skills/tdd-workflow.md +32 -0
- package/skills/terraform-engineer.md +72 -0
- package/skills/think-in-code.md +147 -0
- package/skills/trace-analysis.md +65 -0
- package/skills/tree-search.md +21 -0
- package/skills/turing-pyramid.md +113 -0
- package/skills/typescript-deep.md +70 -0
- package/skills/typescript-pro.md +33 -0
- package/skills/ultraplan.md +61 -0
- package/skills/vue-expert.md +71 -0
- package/skills/web-scraper.md +35 -0
package/dist/ui/App.js
ADDED
|
@@ -0,0 +1,3248 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Main TUI application — now wired to WotannRuntime for FULL harness intelligence.
|
|
4
|
+
*
|
|
5
|
+
* BEFORE: TUI → AgentBridge.query() → Provider (bypassed everything)
|
|
6
|
+
* AFTER: TUI → WotannRuntime.query() → WASM bypass → Hooks → 16 Middleware
|
|
7
|
+
* → DoomLoop → Amplifier → Reasoning Sandwich → TTSR → Provider
|
|
8
|
+
* → After-hooks → Memory → Cost tracking → Response
|
|
9
|
+
*
|
|
10
|
+
* This single change activates ~3,625 lines of previously dead code.
|
|
11
|
+
*/
|
|
12
|
+
import React, { useState, useCallback, useEffect, useRef, memo } from "react";
|
|
13
|
+
import { Box, Text, useApp, useInput } from "ink";
|
|
14
|
+
import { StartupScreen } from "./components/StartupScreen.js";
|
|
15
|
+
import { ChatView } from "./components/ChatView.js";
|
|
16
|
+
import { PromptInput } from "./components/PromptInput.js";
|
|
17
|
+
import { UnifiedStatusBar } from "./components/UnifiedStatusBar.js";
|
|
18
|
+
import { DiffViewer } from "./components/DiffViewer.js";
|
|
19
|
+
import { AgentStatusPanel } from "./components/AgentStatusPanel.js";
|
|
20
|
+
import { HistoryPicker } from "./components/HistoryPicker.js";
|
|
21
|
+
import { CommandPalette } from "./components/CommandPalette.js";
|
|
22
|
+
import { ModelPicker } from "./components/ModelPicker.js";
|
|
23
|
+
import { OptionPicker } from "./components/OptionPicker.js";
|
|
24
|
+
import { CommandRegistry } from "./command-registry.js";
|
|
25
|
+
// V9 Wave 2-M (R-09) — TUI palette command set. `registerR09Commands`
|
|
26
|
+
// was shipped in Wave 0 but never invoked in App.tsx, so the 19 R-09
|
|
27
|
+
// commands (chat, editor, workshop, exploit, browse, ...) never made
|
|
28
|
+
// it into the live CommandRegistry. The companion `buildMagicSubCommands`
|
|
29
|
+
// produces the .magic dot-shortcut sub-palette.
|
|
30
|
+
import { registerR09Commands, buildMagicSubCommands } from "./components/CommandPaletteCommands.js";
|
|
31
|
+
import { MessageActions } from "./components/MessageActions.js";
|
|
32
|
+
import { ContextSourcePanel } from "./components/ContextSourcePanel.js";
|
|
33
|
+
import { TerminalBlocksView } from "./components/TerminalBlocksView.js";
|
|
34
|
+
// V9 Wave 4 — 4 settings/admin overlay panels accessible from CommandPalette.
|
|
35
|
+
// Each panel mirrors a corresponding kairos-rpc handler but talks to the
|
|
36
|
+
// in-process backing store directly (TUI runs in-process — no JSON-RPC client).
|
|
37
|
+
import { TrustPanel } from "./components/TrustPanel.js";
|
|
38
|
+
import { GdprPanel } from "./components/GdprPanel.js";
|
|
39
|
+
import { AuditLogPanel } from "./components/AuditLogPanel.js";
|
|
40
|
+
import { AutomationsPanel } from "./components/AutomationsPanel.js";
|
|
41
|
+
import { BlockBuffer } from "./terminal-blocks/block.js";
|
|
42
|
+
import { Osc133Parser } from "./terminal-blocks/osc-133-parser.js";
|
|
43
|
+
import { makeMessageQueue } from "../core/message-queue.js";
|
|
44
|
+
import { SkillRegistry } from "../skills/loader.js";
|
|
45
|
+
import { execFileSync } from "node:child_process";
|
|
46
|
+
import { join } from "node:path";
|
|
47
|
+
import { existsSync } from "node:fs";
|
|
48
|
+
import { KeybindingManager } from "./keybindings.js";
|
|
49
|
+
import { ThemeManager, cycleNorseTheme } from "./themes.js";
|
|
50
|
+
import { TUIVoiceController } from "./voice-controller.js";
|
|
51
|
+
import { buildPrimaryAgentStatuses, cycleModel, cyclePanel, cycleThinkingEffort, readWorkspaceDiff, resolveFileAttachments, } from "./helpers.js";
|
|
52
|
+
import { parseReferences, resolveReferences, expandPromptWithReferences, } from "./context-references.js";
|
|
53
|
+
import { parseDeepLink, executeDeepLink } from "../core/deep-link.js";
|
|
54
|
+
// ── Types ──────────────────────────────────────────────────
|
|
55
|
+
const VALID_MODES = [
|
|
56
|
+
"default",
|
|
57
|
+
"plan",
|
|
58
|
+
"acceptEdits",
|
|
59
|
+
"auto",
|
|
60
|
+
"bypass",
|
|
61
|
+
"autonomous",
|
|
62
|
+
"guardrails-off",
|
|
63
|
+
"focus",
|
|
64
|
+
"interview",
|
|
65
|
+
"teach",
|
|
66
|
+
"review",
|
|
67
|
+
"exploit",
|
|
68
|
+
];
|
|
69
|
+
// ── V9 T14.1 — Flicker-free TUI mode ───────────────────────
|
|
70
|
+
//
|
|
71
|
+
// Ink's default reconciliation is React's full virtual-DOM diff per render.
|
|
72
|
+
// Most of the time that's fine, but on slow terminals or low-power
|
|
73
|
+
// machines the cumulative re-render cost shows up as visible flicker —
|
|
74
|
+
// the StatusBar, ContextHUD, and right-pane all repaint on every
|
|
75
|
+
// keystroke even though their props didn't move.
|
|
76
|
+
//
|
|
77
|
+
// Setting `CLAUDE_CODE_NO_FLICKER=1` (Anthropic-compatible env name) or
|
|
78
|
+
// passing `--no-flicker` on the CLI enables a memoization layer:
|
|
79
|
+
// - The central body (chat + side panel) is wrapped in <MainScene/>,
|
|
80
|
+
// a `React.memo` component with a custom equality predicate so we
|
|
81
|
+
// only re-render when conversational state actually changes.
|
|
82
|
+
// - Stable React keys on every list item ensure Ink's reconciler can
|
|
83
|
+
// diff in-place rather than tearing whole rows down and recreating
|
|
84
|
+
// them.
|
|
85
|
+
// - Status / overlay layers stay outside the memoized scene because
|
|
86
|
+
// they own their own animation loops.
|
|
87
|
+
//
|
|
88
|
+
// When the env var / flag is unset, the original render path is
|
|
89
|
+
// preserved exactly — no behavioural change for callers who don't opt in.
|
|
90
|
+
//
|
|
91
|
+
// We read `process.argv` once at module-load so the flag survives across
|
|
92
|
+
// re-renders without forcing a useEffect chain. This is intentional: the
|
|
93
|
+
// flag is start-up scoped, not toggleable mid-session.
|
|
94
|
+
/**
|
|
95
|
+
* True when the user requested flicker-free rendering for this process.
|
|
96
|
+
* Honoured by the `MainScene` memoization layer below.
|
|
97
|
+
*
|
|
98
|
+
* Triggers: `CLAUDE_CODE_NO_FLICKER=1`, `WOTANN_NO_FLICKER=1`, or any
|
|
99
|
+
* `--no-flicker` CLI flag.
|
|
100
|
+
*/
|
|
101
|
+
const NO_FLICKER_MODE = (() => {
|
|
102
|
+
// env var takes precedence so launch scripts can set it once.
|
|
103
|
+
const envVal = process.env["CLAUDE_CODE_NO_FLICKER"] ?? process.env["WOTANN_NO_FLICKER"];
|
|
104
|
+
if (envVal === "1" || envVal === "true")
|
|
105
|
+
return true;
|
|
106
|
+
// CLI flag — scan argv defensively in case the harness wrapper passes
|
|
107
|
+
// it through. We don't shift it out of argv (parsing belongs to the
|
|
108
|
+
// CLI entry, not this component).
|
|
109
|
+
if (Array.isArray(process.argv) && process.argv.includes("--no-flicker"))
|
|
110
|
+
return true;
|
|
111
|
+
return false;
|
|
112
|
+
})();
|
|
113
|
+
/**
|
|
114
|
+
* Core chat + side-panel scene. Wrapped in `React.memo` so re-renders
|
|
115
|
+
* happen only when the props actually move. Outside the memo: the
|
|
116
|
+
* StatusBar (animated), the ContextHUD (token gauge), and any overlays
|
|
117
|
+
* (HistoryPicker, CommandPalette, etc.) — those layers either own their
|
|
118
|
+
* own paint loops or are mutually exclusive overlays where freshness
|
|
119
|
+
* matters more than skip-paint cost.
|
|
120
|
+
*/
|
|
121
|
+
const MainScene = memo(function MainScene(props) {
|
|
122
|
+
const { messages, isStreaming, streamingContent, currentModel, activePanel, diffPanel, agentStatuses, thinkingEffort, history, currentThemeBorder, currentThemePrimary, currentThemeInfo, } = props;
|
|
123
|
+
return (_jsxs(Box, { flexGrow: 1, children: [_jsx(Box, { flexGrow: 1, flexBasis: 0, children: _jsx(ChatView, { messages: messages, isStreaming: isStreaming, streamingContent: streamingContent, currentModel: currentModel }) }), _jsxs(Box, { width: 44, marginLeft: 1, borderStyle: "round", borderColor: currentThemeBorder, flexDirection: "column", paddingX: 1, children: [_jsxs(Box, { justifyContent: "space-between", marginBottom: 1, children: [_jsx(Text, { bold: true, color: currentThemePrimary, children: activePanel === "diff"
|
|
124
|
+
? "◆ Diff"
|
|
125
|
+
: activePanel === "agents"
|
|
126
|
+
? "◆ Agents"
|
|
127
|
+
: "◆ Tasks" }), _jsx(Text, { color: currentThemeInfo, children: "tab to cycle" })] }), activePanel === "diff" && diffPanel && (_jsx(DiffViewer, { filePath: diffPanel.filePath, hunks: diffPanel.hunks, compact: true, maxLines: 40 })), activePanel === "diff" && !diffPanel && (_jsxs(Box, { flexDirection: "column", gap: 1, children: [_jsx(Text, { color: currentThemePrimary, bold: true, children: "Quick keys" }), _jsxs(Box, { gap: 1, children: [_jsx(Text, { color: currentThemeInfo, bold: true, children: "Ctrl+M" }), _jsx(Text, { dimColor: true, children: "switch model" })] }), _jsxs(Box, { gap: 1, children: [_jsx(Text, { color: currentThemeInfo, bold: true, children: "Ctrl+P" }), _jsx(Text, { dimColor: true, children: "command palette" })] }), _jsxs(Box, { gap: 1, children: [_jsx(Text, { color: currentThemeInfo, bold: true, children: "Ctrl+R" }), _jsx(Text, { dimColor: true, children: "history search" })] }), _jsxs(Box, { gap: 1, children: [_jsx(Text, { color: currentThemeInfo, bold: true, children: "Ctrl+T" }), _jsx(Text, { dimColor: true, children: "thinking depth" })] }), _jsxs(Box, { gap: 1, children: [_jsx(Text, { color: currentThemeInfo, bold: true, children: "Tab" }), _jsx(Text, { dimColor: true, children: "cycle panel" })] }), _jsxs(Box, { gap: 1, children: [_jsx(Text, { color: currentThemeInfo, bold: true, children: "/" }), _jsx(Text, { dimColor: true, children: "slash menu" })] }), _jsxs(Box, { gap: 1, children: [_jsx(Text, { color: currentThemeInfo, bold: true, children: "Esc Esc" }), _jsx(Text, { dimColor: true, children: "edit prev" })] }), _jsx(Box, { marginTop: 1, children: _jsx(Text, { dimColor: true, children: "Edits land here as they happen." }) })] })), activePanel === "agents" && _jsx(AgentStatusPanel, { agents: agentStatuses }), activePanel === "tasks" && (_jsxs(Box, { flexDirection: "column", gap: 1, children: [_jsxs(Box, { gap: 1, children: [_jsx(Text, { color: currentThemeInfo, bold: true, children: "Thinking" }), _jsx(Text, { dimColor: true, children: thinkingEffort })] }), _jsxs(Box, { gap: 1, children: [_jsx(Text, { color: currentThemeInfo, bold: true, children: "Panel" }), _jsx(Text, { dimColor: true, children: activePanel })] }), _jsx(Text, { bold: true, dimColor: true, children: "Recent prompts" }), history.length === 0 && _jsx(Text, { dimColor: true, children: "(none yet \u2014 type to begin)" }), history.slice(0, 5).map((entry, index) => (_jsxs(Box, { gap: 1, children: [_jsxs(Text, { color: currentThemePrimary, children: [index + 1, "."] }), _jsxs(Text, { dimColor: true, children: [entry.slice(0, 36), entry.length > 36 ? "..." : ""] })] }, `task-${index}`)))] }))] })] }));
|
|
128
|
+
},
|
|
129
|
+
// Custom equality: skip re-render if every prop reference is unchanged
|
|
130
|
+
// AND messages.length matches. We use length + last-message identity as
|
|
131
|
+
// a fast-path for the streaming case so paint only fires when the new
|
|
132
|
+
// chunk actually changes the visible row count or the trailing message.
|
|
133
|
+
(prev, next) => {
|
|
134
|
+
if (!NO_FLICKER_MODE)
|
|
135
|
+
return false; // memoization disabled in legacy mode
|
|
136
|
+
if (prev.isStreaming !== next.isStreaming)
|
|
137
|
+
return false;
|
|
138
|
+
if (prev.streamingContent !== next.streamingContent)
|
|
139
|
+
return false;
|
|
140
|
+
if (prev.currentModel !== next.currentModel)
|
|
141
|
+
return false;
|
|
142
|
+
if (prev.activePanel !== next.activePanel)
|
|
143
|
+
return false;
|
|
144
|
+
if (prev.diffPanel !== next.diffPanel)
|
|
145
|
+
return false;
|
|
146
|
+
if (prev.agentStatuses !== next.agentStatuses)
|
|
147
|
+
return false;
|
|
148
|
+
if (prev.thinkingEffort !== next.thinkingEffort)
|
|
149
|
+
return false;
|
|
150
|
+
if (prev.history !== next.history)
|
|
151
|
+
return false;
|
|
152
|
+
if (prev.currentThemeBorder !== next.currentThemeBorder)
|
|
153
|
+
return false;
|
|
154
|
+
if (prev.currentThemePrimary !== next.currentThemePrimary)
|
|
155
|
+
return false;
|
|
156
|
+
if (prev.currentThemeInfo !== next.currentThemeInfo)
|
|
157
|
+
return false;
|
|
158
|
+
if (prev.messages.length !== next.messages.length)
|
|
159
|
+
return false;
|
|
160
|
+
if (prev.messages[prev.messages.length - 1] !== next.messages[next.messages.length - 1])
|
|
161
|
+
return false;
|
|
162
|
+
return true; // identical — skip the re-render
|
|
163
|
+
});
|
|
164
|
+
// ── App ────────────────────────────────────────────────────
|
|
165
|
+
export function WotannApp({ version, providers, initialModel = "gemma4:e4b", initialProvider = "ollama", initialMessages = [], runtime, }) {
|
|
166
|
+
// First-run onboarding detection: if NO provider in the providers
|
|
167
|
+
// list is `available`, the user has nothing configured. Show the
|
|
168
|
+
// onboarding banner instead of silently routing to a phantom
|
|
169
|
+
// ollama+gemma4 default that will fail on first message.
|
|
170
|
+
const needsOnboarding = providers.length === 0 || providers.every((p) => p.available === false);
|
|
171
|
+
const { exit } = useApp();
|
|
172
|
+
const workingDir = runtime?.getWorkingDir() ?? process.cwd();
|
|
173
|
+
const uiStatePath = join(workingDir, ".wotann", "ui-state.json");
|
|
174
|
+
const initialTurnCount = initialMessages.filter((msg) => msg.role === "user").length;
|
|
175
|
+
const [showStartup, setShowStartup] = useState(initialMessages.length === 0);
|
|
176
|
+
const [messages, setMessages] = useState(() => [...initialMessages]);
|
|
177
|
+
const [isStreaming, setIsStreaming] = useState(false);
|
|
178
|
+
const [streamingContent, setStreamingContent] = useState("");
|
|
179
|
+
const [promptValue, setPromptValue] = useState("");
|
|
180
|
+
const [history, setHistory] = useState(() => [...initialMessages]
|
|
181
|
+
.filter((msg) => msg.role === "user")
|
|
182
|
+
.map((msg) => msg.content)
|
|
183
|
+
.reverse());
|
|
184
|
+
const [currentMode, setCurrentMode] = useState(runtime?.getCurrentMode() ?? "default");
|
|
185
|
+
const [currentModel, setCurrentModel] = useState(initialModel);
|
|
186
|
+
const [thinkingEffort, setThinkingEffort] = useState(runtime?.getThinkingEffort() ?? "medium");
|
|
187
|
+
const themeManagerRef = useRef(new ThemeManager("default", uiStatePath));
|
|
188
|
+
const [themeName, setThemeName] = useState(themeManagerRef.current.getCurrent().name);
|
|
189
|
+
const [activePanel, setActivePanel] = useState(() => {
|
|
190
|
+
const persistedPanel = themeManagerRef.current.readPersistedState().panel;
|
|
191
|
+
return persistedPanel === "agents" || persistedPanel === "tasks" ? persistedPanel : "diff";
|
|
192
|
+
});
|
|
193
|
+
const [diffEntries, setDiffEntries] = useState(() => readWorkspaceDiff(workingDir));
|
|
194
|
+
const [agentStatuses, setAgentStatuses] = useState(() => buildPrimaryAgentStatuses({
|
|
195
|
+
model: initialModel,
|
|
196
|
+
isStreaming: false,
|
|
197
|
+
panelMode: currentMode,
|
|
198
|
+
turnCount: initialTurnCount,
|
|
199
|
+
}));
|
|
200
|
+
const [turnCount, setTurnCount] = useState(initialTurnCount);
|
|
201
|
+
const [stats, setStats] = useState({
|
|
202
|
+
cost: 0,
|
|
203
|
+
contextPercent: 0,
|
|
204
|
+
reads: 0,
|
|
205
|
+
edits: 0,
|
|
206
|
+
bashCalls: 0,
|
|
207
|
+
});
|
|
208
|
+
const abortRef = useRef(null);
|
|
209
|
+
const skillRegistryRef = useRef(null);
|
|
210
|
+
const keybindingManagerRef = useRef(new KeybindingManager());
|
|
211
|
+
const voiceControllerRef = useRef(new TUIVoiceController());
|
|
212
|
+
const [voiceBusy, setVoiceBusy] = useState(false);
|
|
213
|
+
// Mid-stream message queue (per-session, never module-global per QB#7).
|
|
214
|
+
// Inspired by langchain-ai/open-swe agent/middleware/check_message_queue.py.
|
|
215
|
+
// The TUI submit handler enqueues here when isStreaming is true; the
|
|
216
|
+
// runtime drains in `query()` and prepends the contents onto the next
|
|
217
|
+
// model turn. `queueDepth` mirrors the queue size for the indicator.
|
|
218
|
+
const messageQueueRef = useRef(makeMessageQueue());
|
|
219
|
+
const [queueDepth, setQueueDepth] = useState(0);
|
|
220
|
+
const [showHistoryPicker, setShowHistoryPicker] = useState(false);
|
|
221
|
+
const [showCommandPalette, setShowCommandPalette] = useState(false);
|
|
222
|
+
// Ctrl+M opens an interactive provider/model picker (replaces the
|
|
223
|
+
// prior round-robin cycleModel pattern that was unusable past 2-3
|
|
224
|
+
// providers). Modeled after OpenClaw's modal-overlay picker.
|
|
225
|
+
const [showModelPicker, setShowModelPicker] = useState(false);
|
|
226
|
+
// Generic option picker — driven by `optionPicker` (null when closed).
|
|
227
|
+
// Used by `/mode`, `/theme`, `/thinking` to give users an interactive
|
|
228
|
+
// selector instead of a static list with "type the next arg" hint.
|
|
229
|
+
// Mirrors the ModelPicker shape so muscle memory carries.
|
|
230
|
+
const [optionPicker, setOptionPicker] = useState(null);
|
|
231
|
+
const commandRegistryRef = useRef(new CommandRegistry());
|
|
232
|
+
const [showContextPanel, setShowContextPanel] = useState(false);
|
|
233
|
+
// Terminal Blocks overlay (Warp-style OSC 133 blocks — Phase D).
|
|
234
|
+
// Session-13: Osc133Parser + BlockBuffer are now live. The parser
|
|
235
|
+
// consumes raw terminal bytes from `WOTANN_OSC133_FIFO` (a named pipe
|
|
236
|
+
// the user pipes shell output through) and the buffer emits completed
|
|
237
|
+
// `Block` records into state. Opt-in via env var — when unset the
|
|
238
|
+
// overlay stays empty and Ctrl-B shows "no blocks yet" as before.
|
|
239
|
+
const [showTerminalBlocks, setShowTerminalBlocks] = useState(false);
|
|
240
|
+
const [terminalBlocks, setTerminalBlocks] = useState([]);
|
|
241
|
+
const osc133ParserRef = useRef(null);
|
|
242
|
+
const blockBufferRef = useRef(null);
|
|
243
|
+
const [showMessageActions, setShowMessageActions] = useState(false);
|
|
244
|
+
const [isIncognito, setIsIncognito] = useState(false);
|
|
245
|
+
// Wave 4 admin overlays — opened via slash commands or the CommandPalette.
|
|
246
|
+
const [showTrustPanel, setShowTrustPanel] = useState(false);
|
|
247
|
+
const [showGdprPanel, setShowGdprPanel] = useState(false);
|
|
248
|
+
const [showAuditPanel, setShowAuditPanel] = useState(false);
|
|
249
|
+
const [showAutomationsPanel, setShowAutomationsPanel] = useState(false);
|
|
250
|
+
const getSkillRegistry = useCallback(() => {
|
|
251
|
+
if (!skillRegistryRef.current) {
|
|
252
|
+
if (runtime) {
|
|
253
|
+
skillRegistryRef.current = runtime.getSkillRegistry();
|
|
254
|
+
}
|
|
255
|
+
else {
|
|
256
|
+
const skillsDir = join(process.cwd(), "skills");
|
|
257
|
+
skillRegistryRef.current = existsSync(skillsDir)
|
|
258
|
+
? SkillRegistry.createWithDefaults(skillsDir)
|
|
259
|
+
: new SkillRegistry();
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
return skillRegistryRef.current;
|
|
263
|
+
}, [runtime, workingDir]);
|
|
264
|
+
useEffect(() => {
|
|
265
|
+
if (messages.length > 0 && showStartup)
|
|
266
|
+
setShowStartup(false);
|
|
267
|
+
}, [messages.length, showStartup]);
|
|
268
|
+
// Wire the TUI-owned MessageQueue into the runtime so the runtime's
|
|
269
|
+
// pre-model drain reads from the same queue the submit handler
|
|
270
|
+
// enqueues to. Inspired by langchain-ai/open-swe
|
|
271
|
+
// agent/middleware/check_message_queue.py — same FIFO drain semantic,
|
|
272
|
+
// but the queue lives in this React tree (per-session) instead of a
|
|
273
|
+
// graph-runtime store.
|
|
274
|
+
useEffect(() => {
|
|
275
|
+
if (runtime) {
|
|
276
|
+
runtime.setMessageQueue(messageQueueRef.current);
|
|
277
|
+
}
|
|
278
|
+
}, [runtime]);
|
|
279
|
+
// Session-13: OSC 133 stream → BlockBuffer → Block[]. Opt-in via
|
|
280
|
+
// WOTANN_OSC133_FIFO (a named pipe the user creates with mkfifo).
|
|
281
|
+
// Honest: when the env var is not set, the parser stays unwired and
|
|
282
|
+
// the overlay renders the empty array. Failure to open the FIFO
|
|
283
|
+
// logs a warning rather than silently failing.
|
|
284
|
+
useEffect(() => {
|
|
285
|
+
const fifoPath = process.env["WOTANN_OSC133_FIFO"];
|
|
286
|
+
if (!fifoPath)
|
|
287
|
+
return;
|
|
288
|
+
osc133ParserRef.current = new Osc133Parser();
|
|
289
|
+
blockBufferRef.current = new BlockBuffer();
|
|
290
|
+
const completed = [];
|
|
291
|
+
let cancelled = false;
|
|
292
|
+
void (async () => {
|
|
293
|
+
try {
|
|
294
|
+
const { createReadStream } = await import("node:fs");
|
|
295
|
+
const stream = createReadStream(fifoPath, { encoding: "utf-8" });
|
|
296
|
+
stream.on("data", (chunk) => {
|
|
297
|
+
if (cancelled)
|
|
298
|
+
return;
|
|
299
|
+
const text = typeof chunk === "string" ? chunk : chunk.toString("utf-8");
|
|
300
|
+
const events = osc133ParserRef.current?.feed(text) ?? [];
|
|
301
|
+
for (const ev of events) {
|
|
302
|
+
const block = blockBufferRef.current?.consume(ev);
|
|
303
|
+
if (block) {
|
|
304
|
+
completed.push(block);
|
|
305
|
+
setTerminalBlocks([...completed]);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
});
|
|
309
|
+
stream.on("error", (err) => {
|
|
310
|
+
console.warn(`[WOTANN] OSC 133 FIFO error: ${err.message}`);
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
catch (err) {
|
|
314
|
+
console.warn(`[WOTANN] OSC 133 FIFO open failed: ${err.message}`);
|
|
315
|
+
}
|
|
316
|
+
})();
|
|
317
|
+
return () => {
|
|
318
|
+
cancelled = true;
|
|
319
|
+
osc133ParserRef.current = null;
|
|
320
|
+
blockBufferRef.current = null;
|
|
321
|
+
};
|
|
322
|
+
}, []);
|
|
323
|
+
useEffect(() => {
|
|
324
|
+
themeManagerRef.current.persist({ panel: activePanel });
|
|
325
|
+
}, [activePanel]);
|
|
326
|
+
useEffect(() => {
|
|
327
|
+
setAgentStatuses(buildPrimaryAgentStatuses({
|
|
328
|
+
model: currentModel,
|
|
329
|
+
isStreaming,
|
|
330
|
+
panelMode: currentMode,
|
|
331
|
+
turnCount,
|
|
332
|
+
}));
|
|
333
|
+
}, [currentModel, currentMode, isStreaming, turnCount]);
|
|
334
|
+
// Sync stats from runtime after each query
|
|
335
|
+
const syncStatsFromRuntime = useCallback(() => {
|
|
336
|
+
if (!runtime)
|
|
337
|
+
return;
|
|
338
|
+
const status = runtime.getStatus();
|
|
339
|
+
const budget = runtime.getContextBudget();
|
|
340
|
+
const editTracker = runtime.getEditTracker();
|
|
341
|
+
setStats((prev) => ({
|
|
342
|
+
...prev,
|
|
343
|
+
cost: status.totalCost,
|
|
344
|
+
contextPercent: Math.min(99, Math.ceil((budget.usagePercent ?? 0) * 100)),
|
|
345
|
+
edits: editTracker.getTotalEdits(),
|
|
346
|
+
}));
|
|
347
|
+
setDiffEntries(readWorkspaceDiff(workingDir));
|
|
348
|
+
}, [runtime]);
|
|
349
|
+
// ── Abort Handler ────────────────────────────────────────
|
|
350
|
+
const handleAbort = useCallback(() => {
|
|
351
|
+
if (abortRef.current) {
|
|
352
|
+
abortRef.current.abort();
|
|
353
|
+
setIsStreaming(false);
|
|
354
|
+
setStreamingContent("");
|
|
355
|
+
setMessages((prev) => [...prev, { role: "system", content: "Aborted by user." }]);
|
|
356
|
+
}
|
|
357
|
+
}, []);
|
|
358
|
+
const appendSystemMessage = useCallback((content) => {
|
|
359
|
+
setMessages((prev) => [...prev, { role: "system", content }]);
|
|
360
|
+
}, []);
|
|
361
|
+
const handleVoiceCapture = useCallback(async () => {
|
|
362
|
+
if (isStreaming || voiceBusy)
|
|
363
|
+
return;
|
|
364
|
+
setVoiceBusy(true);
|
|
365
|
+
try {
|
|
366
|
+
const controller = voiceControllerRef.current;
|
|
367
|
+
const result = await controller.capturePrompt();
|
|
368
|
+
appendSystemMessage(result.message);
|
|
369
|
+
if (result.transcript) {
|
|
370
|
+
setPromptValue((prev) => prev.trim().length > 0 ? `${prev} ${result.transcript}` : result.transcript);
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
finally {
|
|
374
|
+
setVoiceBusy(false);
|
|
375
|
+
}
|
|
376
|
+
}, [appendSystemMessage, isStreaming, voiceBusy]);
|
|
377
|
+
useInput((input, key) => {
|
|
378
|
+
if (isStreaming || voiceBusy)
|
|
379
|
+
return;
|
|
380
|
+
let normalizedKey = input;
|
|
381
|
+
if (key.tab)
|
|
382
|
+
normalizedKey = "tab";
|
|
383
|
+
else if (key.escape)
|
|
384
|
+
normalizedKey = "escape";
|
|
385
|
+
else if (key.upArrow)
|
|
386
|
+
normalizedKey = "up";
|
|
387
|
+
else if (key.downArrow)
|
|
388
|
+
normalizedKey = "down";
|
|
389
|
+
const action = keybindingManagerRef.current.matchKey(normalizedKey, {
|
|
390
|
+
ctrl: key.ctrl,
|
|
391
|
+
meta: key.meta,
|
|
392
|
+
shift: key.shift,
|
|
393
|
+
});
|
|
394
|
+
switch (action) {
|
|
395
|
+
case "cycle-panel":
|
|
396
|
+
if (!promptValue.startsWith("/")) {
|
|
397
|
+
setActivePanel((current) => cyclePanel(current));
|
|
398
|
+
}
|
|
399
|
+
break;
|
|
400
|
+
case "model-switch": {
|
|
401
|
+
// Toggle the interactive picker overlay. Holding Shift while
|
|
402
|
+
// pressing the bound key still cycles linearly for users who
|
|
403
|
+
// rely on muscle memory — but the default is now a proper
|
|
404
|
+
// searchable list so the 19-provider stack is navigable.
|
|
405
|
+
// The cycle path remains accessible via the `Ctrl+Shift+M`
|
|
406
|
+
// chord and the `/model next` command.
|
|
407
|
+
setShowModelPicker((prev) => !prev);
|
|
408
|
+
break;
|
|
409
|
+
}
|
|
410
|
+
case "thinking-depth": {
|
|
411
|
+
const nextEffort = cycleThinkingEffort(thinkingEffort);
|
|
412
|
+
setThinkingEffort(nextEffort);
|
|
413
|
+
runtime?.setThinkingEffort(nextEffort);
|
|
414
|
+
setMessages((prev) => [
|
|
415
|
+
...prev,
|
|
416
|
+
{
|
|
417
|
+
role: "system",
|
|
418
|
+
content: `Thinking effort set to ${nextEffort}.`,
|
|
419
|
+
},
|
|
420
|
+
]);
|
|
421
|
+
break;
|
|
422
|
+
}
|
|
423
|
+
case "global-search":
|
|
424
|
+
setPromptValue("/memory ");
|
|
425
|
+
break;
|
|
426
|
+
case "context-inspect":
|
|
427
|
+
setShowContextPanel((prev) => !prev);
|
|
428
|
+
break;
|
|
429
|
+
case "terminal-blocks":
|
|
430
|
+
setShowTerminalBlocks((prev) => !prev);
|
|
431
|
+
break;
|
|
432
|
+
case "history-search":
|
|
433
|
+
if (history.length > 0) {
|
|
434
|
+
setShowHistoryPicker((prev) => !prev);
|
|
435
|
+
}
|
|
436
|
+
break;
|
|
437
|
+
case "close-overlay":
|
|
438
|
+
setShowHistoryPicker(false);
|
|
439
|
+
setShowContextPanel(false);
|
|
440
|
+
setShowMessageActions(false);
|
|
441
|
+
setShowTerminalBlocks(false);
|
|
442
|
+
setShowCommandPalette(false);
|
|
443
|
+
setShowModelPicker(false);
|
|
444
|
+
setOptionPicker(null);
|
|
445
|
+
setShowTrustPanel(false);
|
|
446
|
+
setShowGdprPanel(false);
|
|
447
|
+
setShowAuditPanel(false);
|
|
448
|
+
setShowAutomationsPanel(false);
|
|
449
|
+
break;
|
|
450
|
+
case "voice-capture":
|
|
451
|
+
void handleVoiceCapture();
|
|
452
|
+
break;
|
|
453
|
+
case "external-editor": {
|
|
454
|
+
// Spawn $VISUAL (or $EDITOR) with the current promptValue
|
|
455
|
+
// pre-populated. When the editor exits, read the file back
|
|
456
|
+
// and replace promptValue with whatever the user wrote.
|
|
457
|
+
// Codex CLI ships exactly this pattern — common idiom for
|
|
458
|
+
// power users composing long prompts (multi-paragraph
|
|
459
|
+
// explanations, code blocks, etc.) outside Ink's input cell.
|
|
460
|
+
const editor = process.env["VISUAL"] ?? process.env["EDITOR"];
|
|
461
|
+
if (!editor) {
|
|
462
|
+
setMessages((prev) => [
|
|
463
|
+
...prev,
|
|
464
|
+
{
|
|
465
|
+
role: "system",
|
|
466
|
+
content: "Set $VISUAL or $EDITOR (e.g. `export VISUAL=nvim`) to compose long prompts externally.",
|
|
467
|
+
},
|
|
468
|
+
]);
|
|
469
|
+
break;
|
|
470
|
+
}
|
|
471
|
+
void (async () => {
|
|
472
|
+
try {
|
|
473
|
+
const { writeFile, readFile, mkdtemp, unlink } = await import("node:fs/promises");
|
|
474
|
+
const { spawn } = await import("node:child_process");
|
|
475
|
+
const { tmpdir } = await import("node:os");
|
|
476
|
+
const { join: pathJoin } = await import("node:path");
|
|
477
|
+
const dir = await mkdtemp(pathJoin(tmpdir(), "wotann-prompt-"));
|
|
478
|
+
const tmpFile = pathJoin(dir, "prompt.md");
|
|
479
|
+
await writeFile(tmpFile, promptValue, "utf-8");
|
|
480
|
+
await new Promise((resolve, reject) => {
|
|
481
|
+
const child = spawn(editor, [tmpFile], { stdio: "inherit" });
|
|
482
|
+
child.on("exit", (code) => code === 0 ? resolve() : reject(new Error(`editor exited with ${String(code)}`)));
|
|
483
|
+
child.on("error", reject);
|
|
484
|
+
});
|
|
485
|
+
const updated = await readFile(tmpFile, "utf-8");
|
|
486
|
+
setPromptValue(updated);
|
|
487
|
+
await unlink(tmpFile).catch(() => {
|
|
488
|
+
/* best-effort cleanup */
|
|
489
|
+
});
|
|
490
|
+
}
|
|
491
|
+
catch (err) {
|
|
492
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
493
|
+
setMessages((prev) => [
|
|
494
|
+
...prev,
|
|
495
|
+
{ role: "system", content: `External editor failed: ${message}` },
|
|
496
|
+
]);
|
|
497
|
+
}
|
|
498
|
+
})();
|
|
499
|
+
break;
|
|
500
|
+
}
|
|
501
|
+
// ── Wave 3G additions ─────────────────────────────
|
|
502
|
+
case "command-palette":
|
|
503
|
+
// Ctrl+P: toggle the overlay palette (P1-UI3).
|
|
504
|
+
setShowCommandPalette((prev) => !prev);
|
|
505
|
+
break;
|
|
506
|
+
case "clear-conversation":
|
|
507
|
+
// Ctrl+K: clear the conversation (mirrors /clear).
|
|
508
|
+
setMessages([]);
|
|
509
|
+
setShowStartup(true);
|
|
510
|
+
setTurnCount(0);
|
|
511
|
+
setPromptValue("");
|
|
512
|
+
setStats({ cost: 0, contextPercent: 0, reads: 0, edits: 0, bashCalls: 0 });
|
|
513
|
+
break;
|
|
514
|
+
case "last-response": {
|
|
515
|
+
// Ctrl+L: copy the last assistant response to the clipboard.
|
|
516
|
+
const lastAssistant = [...messages].reverse().find((m) => m.role === "assistant");
|
|
517
|
+
if (lastAssistant) {
|
|
518
|
+
try {
|
|
519
|
+
execFileSync("pbcopy", [], { input: lastAssistant.content, timeout: 2000 });
|
|
520
|
+
appendSystemMessage("Last response copied to clipboard.");
|
|
521
|
+
}
|
|
522
|
+
catch (err) {
|
|
523
|
+
console.warn(`[WOTANN] pbcopy unavailable — falling back to inline preview: ${err.message}`);
|
|
524
|
+
appendSystemMessage(`Last response preview: ${lastAssistant.content.slice(0, 200)}${lastAssistant.content.length > 200 ? "..." : ""}`);
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
else {
|
|
528
|
+
appendSystemMessage("No assistant response to jump to.");
|
|
529
|
+
}
|
|
530
|
+
break;
|
|
531
|
+
}
|
|
532
|
+
case "theme-cycle": {
|
|
533
|
+
// Ctrl+Y: cycle through the 5 Norse themes and persist.
|
|
534
|
+
const next = cycleNorseTheme(themeName);
|
|
535
|
+
if (themeManagerRef.current.setTheme(next)) {
|
|
536
|
+
setThemeName(themeManagerRef.current.getCurrent().name);
|
|
537
|
+
appendSystemMessage(`Theme switched to: ${next}`);
|
|
538
|
+
}
|
|
539
|
+
break;
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
}, {
|
|
543
|
+
isActive: true,
|
|
544
|
+
});
|
|
545
|
+
// ── History Picker Handlers ──────────────────────────────
|
|
546
|
+
const handleHistorySelect = useCallback((prompt) => {
|
|
547
|
+
setPromptValue(prompt);
|
|
548
|
+
setShowHistoryPicker(false);
|
|
549
|
+
}, []);
|
|
550
|
+
const handleHistoryCancel = useCallback(() => {
|
|
551
|
+
setShowHistoryPicker(false);
|
|
552
|
+
}, []);
|
|
553
|
+
// ── Command Palette: register built-in commands ─────────
|
|
554
|
+
// One-shot registration with live refs so handlers always read the
|
|
555
|
+
// current state. Without these mirrors, the handlers (registered once
|
|
556
|
+
// at mount with [] deps) close over the FIRST render's state — the
|
|
557
|
+
// model would never change, history would always look empty, etc.
|
|
558
|
+
// Refs are read inside the handler body so the registry stays stable
|
|
559
|
+
// across renders while still reflecting live app state.
|
|
560
|
+
const paletteStateRef = useRef({
|
|
561
|
+
currentModel,
|
|
562
|
+
providers,
|
|
563
|
+
themeName,
|
|
564
|
+
history,
|
|
565
|
+
runtime,
|
|
566
|
+
appendSystemMessage,
|
|
567
|
+
});
|
|
568
|
+
paletteStateRef.current = {
|
|
569
|
+
currentModel,
|
|
570
|
+
providers,
|
|
571
|
+
themeName,
|
|
572
|
+
history,
|
|
573
|
+
runtime,
|
|
574
|
+
appendSystemMessage,
|
|
575
|
+
};
|
|
576
|
+
useEffect(() => {
|
|
577
|
+
const registry = commandRegistryRef.current;
|
|
578
|
+
const builtins = [
|
|
579
|
+
{
|
|
580
|
+
id: "palette.clear-conversation",
|
|
581
|
+
label: "Clear Conversation",
|
|
582
|
+
description: "Reset chat history (same as Ctrl+K)",
|
|
583
|
+
keywords: ["clear", "reset", "new", "fresh"],
|
|
584
|
+
handler: () => {
|
|
585
|
+
setMessages([]);
|
|
586
|
+
setShowStartup(true);
|
|
587
|
+
setTurnCount(0);
|
|
588
|
+
setPromptValue("");
|
|
589
|
+
},
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
id: "palette.switch-model",
|
|
593
|
+
label: "Switch Model",
|
|
594
|
+
description: "Cycle to the next configured provider/model",
|
|
595
|
+
keywords: ["model", "provider", "cycle"],
|
|
596
|
+
handler: () => {
|
|
597
|
+
const live = paletteStateRef.current;
|
|
598
|
+
const nextModel = cycleModel(live.currentModel, live.providers);
|
|
599
|
+
if (nextModel !== live.currentModel) {
|
|
600
|
+
setCurrentModel(nextModel);
|
|
601
|
+
live.appendSystemMessage(`Model switched to ${nextModel}.`);
|
|
602
|
+
}
|
|
603
|
+
},
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
id: "palette.cycle-theme",
|
|
607
|
+
label: "Cycle Norse Theme",
|
|
608
|
+
description: "Switch to the next theme (Valhalla, Niflheim, Muspelheim, Alfheim, Svartalfheim)",
|
|
609
|
+
keywords: ["theme", "color", "palette", "norse"],
|
|
610
|
+
handler: () => {
|
|
611
|
+
const live = paletteStateRef.current;
|
|
612
|
+
const next = cycleNorseTheme(live.themeName);
|
|
613
|
+
if (themeManagerRef.current.setTheme(next)) {
|
|
614
|
+
setThemeName(themeManagerRef.current.getCurrent().name);
|
|
615
|
+
live.appendSystemMessage(`Theme switched to: ${next}`);
|
|
616
|
+
}
|
|
617
|
+
},
|
|
618
|
+
},
|
|
619
|
+
{
|
|
620
|
+
id: "palette.show-history",
|
|
621
|
+
label: "Search Prompt History",
|
|
622
|
+
description: "Open the history picker (Ctrl+R)",
|
|
623
|
+
keywords: ["history", "search", "prompt"],
|
|
624
|
+
handler: () => {
|
|
625
|
+
if (paletteStateRef.current.history.length > 0)
|
|
626
|
+
setShowHistoryPicker(true);
|
|
627
|
+
},
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
id: "palette.toggle-context-inspector",
|
|
631
|
+
label: "Toggle Context Inspector",
|
|
632
|
+
description: "Show context source panel (Ctrl+I)",
|
|
633
|
+
keywords: ["context", "inspect", "sources"],
|
|
634
|
+
handler: () => {
|
|
635
|
+
setShowContextPanel((prev) => !prev);
|
|
636
|
+
},
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
id: "palette.exit",
|
|
640
|
+
label: "Exit",
|
|
641
|
+
description: "Close the TUI",
|
|
642
|
+
keywords: ["quit", "exit", "close"],
|
|
643
|
+
handler: () => {
|
|
644
|
+
const liveRuntime = paletteStateRef.current.runtime;
|
|
645
|
+
if (liveRuntime)
|
|
646
|
+
liveRuntime.close();
|
|
647
|
+
exit();
|
|
648
|
+
},
|
|
649
|
+
},
|
|
650
|
+
];
|
|
651
|
+
for (const cmd of builtins)
|
|
652
|
+
registry.register(cmd);
|
|
653
|
+
return () => {
|
|
654
|
+
for (const cmd of builtins)
|
|
655
|
+
registry.unregister(cmd.id);
|
|
656
|
+
};
|
|
657
|
+
// Intentionally empty deps — registration is one-shot. Live state
|
|
658
|
+
// is read via paletteStateRef so commands always see fresh values.
|
|
659
|
+
// (No `eslint-disable react-hooks/exhaustive-deps` here because the
|
|
660
|
+
// plugin is in package.json deps but not registered in eslint.config.js;
|
|
661
|
+
// referencing the rule would error out the lint job.)
|
|
662
|
+
}, []);
|
|
663
|
+
// ── R-09 commands: register the 19 reach-gap palette entries ──
|
|
664
|
+
// CommandPaletteCommands.ts ships a pure builder + register helper;
|
|
665
|
+
// calling it once at mount adds the entries to the same registry the
|
|
666
|
+
// built-ins use, so Cmd+P fuzzy-search returns both. The deps closure
|
|
667
|
+
// captures the live setters / handler refs so the commands react to
|
|
668
|
+
// current state at execution time. Magic sub-palette commands are
|
|
669
|
+
// registered alongside R-09 because the R-09 "magic" entry calls
|
|
670
|
+
// `onOpenMagic`, which surfaces them via the same registry.
|
|
671
|
+
useEffect(() => {
|
|
672
|
+
const registry = commandRegistryRef.current;
|
|
673
|
+
const cycleMode = () => {
|
|
674
|
+
const idx = VALID_MODES.indexOf(currentMode);
|
|
675
|
+
const next = VALID_MODES[(idx + 1) % VALID_MODES.length] ?? "default";
|
|
676
|
+
if (runtime)
|
|
677
|
+
runtime.setMode(next);
|
|
678
|
+
setCurrentMode(next);
|
|
679
|
+
appendSystemMessage(`Mode switched to: ${next}`);
|
|
680
|
+
};
|
|
681
|
+
// Magic sub-palette — registered on demand by `onOpenMagic`. We
|
|
682
|
+
// build the command list once and register/unregister together so
|
|
683
|
+
// the registry doesn't accumulate stale entries across remounts.
|
|
684
|
+
const magicSubCommands = buildMagicSubCommands(appendSystemMessage);
|
|
685
|
+
let magicRegistered = false;
|
|
686
|
+
const openMagic = () => {
|
|
687
|
+
if (magicRegistered) {
|
|
688
|
+
appendSystemMessage("→ Magic palette already open. Type to search the .magic shortcuts.");
|
|
689
|
+
return;
|
|
690
|
+
}
|
|
691
|
+
for (const cmd of magicSubCommands)
|
|
692
|
+
registry.register(cmd);
|
|
693
|
+
magicRegistered = true;
|
|
694
|
+
appendSystemMessage(`→ Loaded ${magicSubCommands.length} magic commands. Type to search; press Esc to close.`);
|
|
695
|
+
};
|
|
696
|
+
const unregisterR09 = registerR09Commands(registry, {
|
|
697
|
+
appendSystemMessage,
|
|
698
|
+
onVoiceCapture: () => void handleVoiceCapture(),
|
|
699
|
+
onCycleMode: cycleMode,
|
|
700
|
+
onOpenMagic: openMagic,
|
|
701
|
+
});
|
|
702
|
+
// Wave 4 — admin overlay commands (trust, gdpr, audit, automations).
|
|
703
|
+
// These are registered alongside R-09 so the same Cmd+P fuzzy search
|
|
704
|
+
// surfaces them. Each handler simply opens its overlay; the overlays
|
|
705
|
+
// own their own state + RPC-equivalent calls.
|
|
706
|
+
const adminCommands = [
|
|
707
|
+
{
|
|
708
|
+
id: "admin.trust",
|
|
709
|
+
label: "Trusted Workspaces",
|
|
710
|
+
description: "List, add, remove trusted workspace paths (workspace.trust*)",
|
|
711
|
+
keywords: ["trust", "workspace", "security", "allowlist", "trusted"],
|
|
712
|
+
handler: () => setShowTrustPanel(true),
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
id: "admin.gdpr",
|
|
716
|
+
label: "GDPR Tools",
|
|
717
|
+
description: "Export ~/.wotann or delete it (gdpr.export / gdpr.delete)",
|
|
718
|
+
keywords: ["gdpr", "export", "delete", "privacy", "data"],
|
|
719
|
+
handler: () => setShowGdprPanel(true),
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
id: "admin.audit",
|
|
723
|
+
label: "Audit Log",
|
|
724
|
+
description: "Browse the last 50 audit entries with type filter (audit.query)",
|
|
725
|
+
keywords: ["audit", "log", "history", "trail", "trace"],
|
|
726
|
+
handler: () => setShowAuditPanel(true),
|
|
727
|
+
},
|
|
728
|
+
{
|
|
729
|
+
id: "admin.automations",
|
|
730
|
+
label: "Automations",
|
|
731
|
+
description: "List, toggle, create, delete automations (automations.*)",
|
|
732
|
+
keywords: ["automations", "automation", "cron", "trigger", "schedule"],
|
|
733
|
+
handler: () => setShowAutomationsPanel(true),
|
|
734
|
+
},
|
|
735
|
+
];
|
|
736
|
+
for (const cmd of adminCommands)
|
|
737
|
+
registry.register(cmd);
|
|
738
|
+
return () => {
|
|
739
|
+
unregisterR09();
|
|
740
|
+
for (const cmd of adminCommands)
|
|
741
|
+
registry.unregister(cmd.id);
|
|
742
|
+
if (magicRegistered) {
|
|
743
|
+
for (const cmd of magicSubCommands)
|
|
744
|
+
registry.unregister(cmd.id);
|
|
745
|
+
}
|
|
746
|
+
};
|
|
747
|
+
// The cycleMode + openMagic closures intentionally read the latest
|
|
748
|
+
// state via the React refs / setters they close over — they're
|
|
749
|
+
// stable across renders for the lifetime of this effect.
|
|
750
|
+
// CI fix: was `eslint-disable-next-line react-hooks/exhaustive-deps`
|
|
751
|
+
// but the rule isn't loaded in eslint.config.js (rule definitions are
|
|
752
|
+
// restricted by config-protection hook). Removed the comment since
|
|
753
|
+
// the rule wouldn't fire anyway; closures are stable by design.
|
|
754
|
+
}, []);
|
|
755
|
+
// ── Command Palette Handlers ────────────────────────────
|
|
756
|
+
const handleCommandPaletteClose = useCallback(() => {
|
|
757
|
+
setShowCommandPalette(false);
|
|
758
|
+
}, []);
|
|
759
|
+
const handleCommandPaletteError = useCallback((message) => {
|
|
760
|
+
appendSystemMessage(message);
|
|
761
|
+
}, [appendSystemMessage]);
|
|
762
|
+
// ── Message Actions Handler ─────────────────────────────
|
|
763
|
+
const handleMessageAction = useCallback((action, messageId) => {
|
|
764
|
+
const msgIndex = parseInt(messageId, 10);
|
|
765
|
+
const targetMsg = messages[msgIndex];
|
|
766
|
+
if (!targetMsg)
|
|
767
|
+
return;
|
|
768
|
+
switch (action) {
|
|
769
|
+
case "copy":
|
|
770
|
+
try {
|
|
771
|
+
execFileSync("pbcopy", [], { input: targetMsg.content, timeout: 2000 });
|
|
772
|
+
appendSystemMessage("Copied to clipboard.");
|
|
773
|
+
}
|
|
774
|
+
catch (err) {
|
|
775
|
+
console.warn(`[WOTANN] pbcopy unavailable: ${err.message}`);
|
|
776
|
+
appendSystemMessage("⚠ Clipboard unavailable (pbcopy missing or blocked). Message not copied.");
|
|
777
|
+
}
|
|
778
|
+
break;
|
|
779
|
+
case "retry":
|
|
780
|
+
if (targetMsg.role === "user") {
|
|
781
|
+
void handleSubmitRef.current(targetMsg.content);
|
|
782
|
+
}
|
|
783
|
+
break;
|
|
784
|
+
case "fork": {
|
|
785
|
+
if (runtime) {
|
|
786
|
+
const branchMgr = runtime.getBranchManager();
|
|
787
|
+
branchMgr.fork(`fork-msg-${msgIndex}`);
|
|
788
|
+
appendSystemMessage(`Forked conversation at message ${msgIndex + 1}.`);
|
|
789
|
+
}
|
|
790
|
+
break;
|
|
791
|
+
}
|
|
792
|
+
case "edit":
|
|
793
|
+
if (targetMsg.role === "user")
|
|
794
|
+
setPromptValue(targetMsg.content);
|
|
795
|
+
break;
|
|
796
|
+
case "delete":
|
|
797
|
+
setMessages((prev) => [...prev.slice(0, msgIndex), ...prev.slice(msgIndex + 1)]);
|
|
798
|
+
break;
|
|
799
|
+
}
|
|
800
|
+
setShowMessageActions(false);
|
|
801
|
+
}, [messages, runtime, appendSystemMessage]);
|
|
802
|
+
const handleSubmitRef = useRef(async () => { });
|
|
803
|
+
// ── Slash Command Handler ────────────────────────────────
|
|
804
|
+
const handleSlashCommand = useCallback((input) => {
|
|
805
|
+
const parts = input.trim().split(/\s+/);
|
|
806
|
+
const cmd = (parts[0] ?? "").toLowerCase();
|
|
807
|
+
const arg = parts.slice(1).join(" ");
|
|
808
|
+
const rest = arg;
|
|
809
|
+
const sysMsg = (content) => {
|
|
810
|
+
setMessages((prev) => [...prev, { role: "system", content }]);
|
|
811
|
+
};
|
|
812
|
+
switch (cmd) {
|
|
813
|
+
case "/exit":
|
|
814
|
+
case "/quit":
|
|
815
|
+
if (runtime)
|
|
816
|
+
runtime.close();
|
|
817
|
+
exit();
|
|
818
|
+
return true;
|
|
819
|
+
case "/clear":
|
|
820
|
+
setMessages([]);
|
|
821
|
+
setShowStartup(true);
|
|
822
|
+
setTurnCount(0);
|
|
823
|
+
setPromptValue("");
|
|
824
|
+
setStats({ cost: 0, contextPercent: 0, reads: 0, edits: 0, bashCalls: 0 });
|
|
825
|
+
return true;
|
|
826
|
+
case "/help":
|
|
827
|
+
sysMsg([
|
|
828
|
+
"╭─ WOTANN Commands ──────────────────────────────────────────╮",
|
|
829
|
+
"│ │",
|
|
830
|
+
"│ ── Session ── │",
|
|
831
|
+
"│ /help Show this help │",
|
|
832
|
+
"│ /clear Clear conversation + reset │",
|
|
833
|
+
"│ /exit Exit WOTANN │",
|
|
834
|
+
"│ /history Show recent prompts │",
|
|
835
|
+
"│ /compact Compact context window │",
|
|
836
|
+
"│ │",
|
|
837
|
+
"│ ── Configuration ── │",
|
|
838
|
+
"│ /config [key=val] View/edit configuration │",
|
|
839
|
+
"│ /providers List providers + auth status │",
|
|
840
|
+
"│ /model [name] Show or switch model │",
|
|
841
|
+
"│ /mode [name] Show or switch behavioral mode │",
|
|
842
|
+
"│ /thinking [level] Set reasoning effort (low/med/high) │",
|
|
843
|
+
"│ /theme [name] Show or switch persisted theme │",
|
|
844
|
+
"│ /permission [mode] Switch approval mode │",
|
|
845
|
+
"│ │",
|
|
846
|
+
"│ ── Intelligence ── │",
|
|
847
|
+
"│ /context Show context window budget │",
|
|
848
|
+
"│ /inspect Context source inspector (Ctrl+I) │",
|
|
849
|
+
"│ /skills [query] List/search skills │",
|
|
850
|
+
"│ /memory [query] Search memory (FTS5 + semantic) │",
|
|
851
|
+
"│ /learnings Show cross-session patterns │",
|
|
852
|
+
"│ /persona [cmd] Identity & persona management │",
|
|
853
|
+
"│ /council <task> Multi-LLM 3-stage deliberation │",
|
|
854
|
+
"│ /enhance [text] Prompt enhancer (AI-powered) │",
|
|
855
|
+
"│ /search <query> Unified knowledge search │",
|
|
856
|
+
"│ │",
|
|
857
|
+
"│ ── Tools ── │",
|
|
858
|
+
"│ /lsp [cmd] LSP symbol operations │",
|
|
859
|
+
"│ /mcp [cmd] MCP server marketplace │",
|
|
860
|
+
"│ /freeze [path] Freeze/unfreeze a file (immutable) │",
|
|
861
|
+
"│ /healing [error] Self-healing recovery pipeline │",
|
|
862
|
+
"│ /canvas [file] Open hunk-level collaborative editor │",
|
|
863
|
+
"│ /deeplink <url> Handle wotann:// deep links │",
|
|
864
|
+
"│ │",
|
|
865
|
+
"│ ── Execution ── │",
|
|
866
|
+
"│ /autonomous <task> Fire-and-forget autonomous mode │",
|
|
867
|
+
"│ /arena <task> Multi-model comparison arena │",
|
|
868
|
+
"│ /council <query> Multi-LLM deliberation council │",
|
|
869
|
+
"│ /waves <task> Wave-based parallel execution │",
|
|
870
|
+
"│ /research <topic> Autonomous deep research │",
|
|
871
|
+
"│ /branch [cmd] Fork/list/switch conversation branch │",
|
|
872
|
+
"│ /merge <branch> Merge branch into current │",
|
|
873
|
+
"│ │",
|
|
874
|
+
"│ ── Channels ── │",
|
|
875
|
+
"│ /inbox Show dispatch task inbox │",
|
|
876
|
+
"│ /channels Channel health dashboard │",
|
|
877
|
+
"│ /dispatch [cmd] Dispatch management (status/pair/..) │",
|
|
878
|
+
"│ │",
|
|
879
|
+
"│ ── Training ── │",
|
|
880
|
+
"│ /train [cmd] Training pipeline (status/extract/..)│",
|
|
881
|
+
"│ │",
|
|
882
|
+
"│ ── Diagnostics ── │",
|
|
883
|
+
"│ /stats Session statistics from runtime │",
|
|
884
|
+
"│ /cost [budget] View cost / set budget │",
|
|
885
|
+
"│ /doctor Run health check │",
|
|
886
|
+
"│ /trace Show trace analysis │",
|
|
887
|
+
"│ /voice Voice mode info │",
|
|
888
|
+
"│ /replay Replay session recording │",
|
|
889
|
+
"│ /dream Run learning extraction cycle │",
|
|
890
|
+
"│ /audit Show session audit trail │",
|
|
891
|
+
"│ /roe [cmd] Rules of engagement (security) │",
|
|
892
|
+
"│ │",
|
|
893
|
+
"│ ── Privacy ── │",
|
|
894
|
+
"│ /incognito Toggle incognito (pause memory) │",
|
|
895
|
+
"│ /actions Message actions (copy/retry/fork) │",
|
|
896
|
+
"│ /context-panel Toggle context source panel │",
|
|
897
|
+
"│ │",
|
|
898
|
+
"│ ── Shortcuts ── │",
|
|
899
|
+
"│ Ctrl+C Abort streaming Ctrl+M Cycle model │",
|
|
900
|
+
"│ Ctrl+R Search history Ctrl+I Context panel │",
|
|
901
|
+
"│ Ctrl+T Thinking depth Ctrl+/ Memory search │",
|
|
902
|
+
"│ Tab Cycle right panel Esc Close overlay │",
|
|
903
|
+
"╰──────────────────────────────────────────────────────────╯",
|
|
904
|
+
].join("\n"));
|
|
905
|
+
return true;
|
|
906
|
+
case "/providers": {
|
|
907
|
+
const lines = providers.map((p) => {
|
|
908
|
+
const icon = p.available ? "●" : "○";
|
|
909
|
+
const models = p.available && p.models.length > 0 ? ` ${p.models.slice(0, 3).join(", ")}` : "";
|
|
910
|
+
return ` ${icon} ${p.provider}${p.available ? "" : " (not configured)"}${models}`;
|
|
911
|
+
});
|
|
912
|
+
const active = providers.filter((p) => p.available).length;
|
|
913
|
+
sysMsg(`Providers: ${active}/${providers.length} active\n\n${lines.join("\n")}`);
|
|
914
|
+
return true;
|
|
915
|
+
}
|
|
916
|
+
case "/skills": {
|
|
917
|
+
const registry = getSkillRegistry();
|
|
918
|
+
const summaries = registry.getSummaries();
|
|
919
|
+
if (arg) {
|
|
920
|
+
const q = arg.toLowerCase();
|
|
921
|
+
const matches = summaries.filter((s) => s.name.includes(q) ||
|
|
922
|
+
s.description.toLowerCase().includes(q) ||
|
|
923
|
+
s.category.includes(q));
|
|
924
|
+
sysMsg(matches.length > 0
|
|
925
|
+
? `${matches.length} skills matching "${arg}":\n${matches.map((s) => ` ${s.name} — ${s.description}`).join("\n")}`
|
|
926
|
+
: `No skills match "${arg}".`);
|
|
927
|
+
}
|
|
928
|
+
else {
|
|
929
|
+
const byCategory = new Map();
|
|
930
|
+
for (const s of summaries) {
|
|
931
|
+
const list = byCategory.get(s.category) ?? [];
|
|
932
|
+
list.push(s.name);
|
|
933
|
+
byCategory.set(s.category, list);
|
|
934
|
+
}
|
|
935
|
+
const lines = [...byCategory.entries()]
|
|
936
|
+
.sort((a, b) => b[1].length - a[1].length)
|
|
937
|
+
.map(([cat, names]) => ` ${cat} (${names.length}): ${names.join(", ")}`);
|
|
938
|
+
sysMsg(`${summaries.length} skills loaded:\n\n${lines.join("\n")}`);
|
|
939
|
+
}
|
|
940
|
+
return true;
|
|
941
|
+
}
|
|
942
|
+
case "/mode": {
|
|
943
|
+
if (!arg) {
|
|
944
|
+
// Interactive picker — same shape as the other overlays
|
|
945
|
+
// so muscle memory carries (Hermes "modal triad" pattern).
|
|
946
|
+
const modeOptions = [
|
|
947
|
+
{ value: "default", description: "Standard, asks before edits" },
|
|
948
|
+
{ value: "plan", description: "Read-only analysis + planning" },
|
|
949
|
+
{ value: "acceptEdits", description: "Auto-accept file changes" },
|
|
950
|
+
{ value: "auto", description: "Full automation + testing" },
|
|
951
|
+
{ value: "bypass", description: "Skip all permission prompts" },
|
|
952
|
+
{ value: "autonomous", description: "Fire-and-forget until complete" },
|
|
953
|
+
{ value: "guardrails-off", description: "No restrictions (security research)" },
|
|
954
|
+
{ value: "focus", description: "Single-task laser focus" },
|
|
955
|
+
{ value: "interview", description: "Q&A interrogation" },
|
|
956
|
+
{ value: "teach", description: "Teaching / explanation" },
|
|
957
|
+
{ value: "review", description: "Code review" },
|
|
958
|
+
{ value: "exploit", description: "Exploit development" },
|
|
959
|
+
];
|
|
960
|
+
setOptionPicker({
|
|
961
|
+
title: "Mode",
|
|
962
|
+
options: modeOptions,
|
|
963
|
+
currentValue: currentMode,
|
|
964
|
+
onSelect: (value) => {
|
|
965
|
+
const newMode = value;
|
|
966
|
+
if (VALID_MODES.includes(newMode)) {
|
|
967
|
+
if (runtime)
|
|
968
|
+
runtime.setMode(newMode);
|
|
969
|
+
setCurrentMode(newMode);
|
|
970
|
+
sysMsg(`Mode switched to: ${newMode}`);
|
|
971
|
+
if (newMode === "guardrails-off" && runtime) {
|
|
972
|
+
runtime.getRulesOfEngagement();
|
|
973
|
+
const activeId = runtime.getActiveROESessionId();
|
|
974
|
+
sysMsg(activeId
|
|
975
|
+
? `Guardrails-off mode active. ROE session: ${activeId.slice(0, 8)}...`
|
|
976
|
+
: "Guardrails-off mode active. Start an ROE session with /roe start <type>.");
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
setOptionPicker(null);
|
|
980
|
+
},
|
|
981
|
+
});
|
|
982
|
+
}
|
|
983
|
+
else {
|
|
984
|
+
const newMode = arg;
|
|
985
|
+
if (VALID_MODES.includes(newMode)) {
|
|
986
|
+
// REAL mode switch via runtime — changes system prompt, safety overrides, hook state
|
|
987
|
+
if (runtime)
|
|
988
|
+
runtime.setMode(newMode);
|
|
989
|
+
setCurrentMode(newMode);
|
|
990
|
+
sysMsg(`Mode switched to: ${newMode}`);
|
|
991
|
+
// When entering guardrails-off, prompt user to start an ROE session.
|
|
992
|
+
// Session-5 cleanup: the prior `const terms = roe.getTerms()` call
|
|
993
|
+
// was dead — the returned terms object was never surfaced in the
|
|
994
|
+
// banner. If we want to show terms version in future, route it
|
|
995
|
+
// through the message builder; for now the getRulesOfEngagement()
|
|
996
|
+
// call is the only lookup we need.
|
|
997
|
+
if (newMode === "guardrails-off" && runtime) {
|
|
998
|
+
runtime.getRulesOfEngagement();
|
|
999
|
+
const activeId = runtime.getActiveROESessionId();
|
|
1000
|
+
sysMsg([
|
|
1001
|
+
"",
|
|
1002
|
+
"╭─ Rules of Engagement ─────────────────────────────────────╮",
|
|
1003
|
+
"│ GUARDRAILS-OFF mode requires a security research session │",
|
|
1004
|
+
"│ with terms acceptance and audit logging. │",
|
|
1005
|
+
"├──────────────────────────────────────────────────────────┤",
|
|
1006
|
+
...(activeId
|
|
1007
|
+
? [`│ Active ROE session: ${activeId.slice(0, 8)}... │`]
|
|
1008
|
+
: [
|
|
1009
|
+
"│ No active ROE session. Start one with: │",
|
|
1010
|
+
"│ │",
|
|
1011
|
+
"│ /roe start <type> (security-research, pentest, │",
|
|
1012
|
+
"│ ethical-hacking, ctf) │",
|
|
1013
|
+
"│ /roe accept Accept terms for active session │",
|
|
1014
|
+
]),
|
|
1015
|
+
"╰──────────────────────────────────────────────────────────╯",
|
|
1016
|
+
].join("\n"));
|
|
1017
|
+
}
|
|
1018
|
+
}
|
|
1019
|
+
else {
|
|
1020
|
+
sysMsg(`Unknown mode: ${arg}\nValid: ${VALID_MODES.join(", ")}`);
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
return true;
|
|
1024
|
+
}
|
|
1025
|
+
case "/model": {
|
|
1026
|
+
// Build a list of models available per provider from actual detected providers
|
|
1027
|
+
const providerModels = new Map();
|
|
1028
|
+
for (const p of providers) {
|
|
1029
|
+
if (p.available && p.models.length > 0) {
|
|
1030
|
+
providerModels.set(p.provider, p.models);
|
|
1031
|
+
}
|
|
1032
|
+
}
|
|
1033
|
+
const allModels = [...providerModels.values()].flat();
|
|
1034
|
+
// /model status — diagnostic mode (OpenClaw pattern). Shows
|
|
1035
|
+
// resolved primary model, per-provider auth state, OAuth
|
|
1036
|
+
// expiry warnings, missing-auth alerts. The "what's actually
|
|
1037
|
+
// wired right now" surface — distinct from /model with no
|
|
1038
|
+
// arg which lists what's PICKABLE.
|
|
1039
|
+
if (arg === "status") {
|
|
1040
|
+
const lines = [`Active: ${currentModel}`];
|
|
1041
|
+
const activeProv = activeProvider?.provider ?? initialProvider;
|
|
1042
|
+
lines.push(`Active provider: ${activeProv}`);
|
|
1043
|
+
lines.push("");
|
|
1044
|
+
lines.push("Configured providers:");
|
|
1045
|
+
for (const p of providers) {
|
|
1046
|
+
if (!p.available)
|
|
1047
|
+
continue;
|
|
1048
|
+
const tier = p.billing === "subscription"
|
|
1049
|
+
? "subscription"
|
|
1050
|
+
: p.billing === "free"
|
|
1051
|
+
? "free"
|
|
1052
|
+
: "API key";
|
|
1053
|
+
const modelCount = p.models.length;
|
|
1054
|
+
lines.push(` ${p.provider} [${tier}] — ${modelCount} model${modelCount === 1 ? "" : "s"}`);
|
|
1055
|
+
}
|
|
1056
|
+
const inactive = providers.filter((p) => !p.available);
|
|
1057
|
+
if (inactive.length > 0) {
|
|
1058
|
+
lines.push("");
|
|
1059
|
+
lines.push("Unconfigured (run `wotann login <provider>` to enable):");
|
|
1060
|
+
for (const p of inactive) {
|
|
1061
|
+
lines.push(` ${p.provider}`);
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
lines.push("");
|
|
1065
|
+
lines.push("Open the picker with Ctrl+M to switch.");
|
|
1066
|
+
sysMsg(lines.join("\n"));
|
|
1067
|
+
return true;
|
|
1068
|
+
}
|
|
1069
|
+
if (!arg) {
|
|
1070
|
+
// Condensed system message — the picker is the primary path
|
|
1071
|
+
// for switching models, so the slash command's job here is
|
|
1072
|
+
// to point at Ctrl+M and surface the current model in one
|
|
1073
|
+
// tight line. Long enumerations of every provider's model
|
|
1074
|
+
// list belong in /model status, not the bare command output.
|
|
1075
|
+
sysMsg(providerModels.size === 0
|
|
1076
|
+
? `Current: ${currentModel} (no providers configured — run \`wotann login <provider>\`)`
|
|
1077
|
+
: `Current: ${currentModel}. Press Ctrl+M to switch · /model <name> · /model status`);
|
|
1078
|
+
}
|
|
1079
|
+
else {
|
|
1080
|
+
// Validate model is available on some provider
|
|
1081
|
+
if (allModels.includes(arg) || allModels.length === 0) {
|
|
1082
|
+
setCurrentModel(arg);
|
|
1083
|
+
sysMsg(`Model switched to: ${arg}`);
|
|
1084
|
+
}
|
|
1085
|
+
else {
|
|
1086
|
+
// Check if it's a partial match or typo
|
|
1087
|
+
const closest = allModels.find((m) => m.includes(arg) || arg.includes(m));
|
|
1088
|
+
if (closest) {
|
|
1089
|
+
sysMsg(`Model "${arg}" not found. Did you mean: ${closest}?\nAvailable: ${allModels.join(", ")}`);
|
|
1090
|
+
}
|
|
1091
|
+
else {
|
|
1092
|
+
sysMsg(`Model "${arg}" is not available on any configured provider.\nAvailable: ${allModels.join(", ")}`);
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
return true;
|
|
1097
|
+
}
|
|
1098
|
+
case "/stats": {
|
|
1099
|
+
if (runtime) {
|
|
1100
|
+
const status = runtime.getStatus();
|
|
1101
|
+
sysMsg([
|
|
1102
|
+
"Session Statistics (from WotannRuntime)",
|
|
1103
|
+
` Turns: ${turnCount}`,
|
|
1104
|
+
` Tokens: ${status.totalTokens.toLocaleString()}`,
|
|
1105
|
+
` Cost: $${status.totalCost.toFixed(4)}`,
|
|
1106
|
+
` Provider: ${status.activeProvider}`,
|
|
1107
|
+
` Mode: ${status.currentMode}`,
|
|
1108
|
+
` Hooks: ${status.hookCount} active`,
|
|
1109
|
+
` Middleware: ${status.middlewareLayers} layers`,
|
|
1110
|
+
` Skills: ${status.skillCount} loaded`,
|
|
1111
|
+
` Memory: ${status.memoryEnabled ? "active" : "disabled"}`,
|
|
1112
|
+
` Traces: ${status.traceEntries}`,
|
|
1113
|
+
` Semantic: ${status.semanticIndexSize} docs indexed`,
|
|
1114
|
+
].join("\n"));
|
|
1115
|
+
}
|
|
1116
|
+
else {
|
|
1117
|
+
sysMsg(`Turns: ${turnCount} | Cost: $${stats.cost.toFixed(4)} | Context: ${stats.contextPercent}%`);
|
|
1118
|
+
}
|
|
1119
|
+
return true;
|
|
1120
|
+
}
|
|
1121
|
+
case "/memory": {
|
|
1122
|
+
if (!runtime) {
|
|
1123
|
+
sysMsg("Memory requires WotannRuntime. Run `wotann init` first.");
|
|
1124
|
+
return true;
|
|
1125
|
+
}
|
|
1126
|
+
if (!arg) {
|
|
1127
|
+
sysMsg("Usage: /memory <search query>\nSearches FTS5 + semantic index across all 8 memory layers.");
|
|
1128
|
+
return true;
|
|
1129
|
+
}
|
|
1130
|
+
const results = runtime.searchMemory(arg);
|
|
1131
|
+
if (results.length === 0) {
|
|
1132
|
+
sysMsg(`No memories match "${arg}".`);
|
|
1133
|
+
}
|
|
1134
|
+
else {
|
|
1135
|
+
const lines = results
|
|
1136
|
+
.slice(0, 5)
|
|
1137
|
+
.map((r) => ` [${r.type}] ${r.text.slice(0, 100)}${r.text.length > 100 ? "..." : ""} (score: ${r.score.toFixed(2)})`);
|
|
1138
|
+
sysMsg(`${results.length} memories found:\n${lines.join("\n")}`);
|
|
1139
|
+
}
|
|
1140
|
+
return true;
|
|
1141
|
+
}
|
|
1142
|
+
case "/doctor": {
|
|
1143
|
+
const active = providers.filter((p) => p.available).length;
|
|
1144
|
+
const hasWorkspace = existsSync(join(process.cwd(), ".wotann"));
|
|
1145
|
+
const registry = getSkillRegistry();
|
|
1146
|
+
const runtimeStatus = runtime
|
|
1147
|
+
? "active (full pipeline)"
|
|
1148
|
+
: "not initialized (raw bridge mode)";
|
|
1149
|
+
sysMsg([
|
|
1150
|
+
"WOTANN Health Check",
|
|
1151
|
+
"",
|
|
1152
|
+
` Runtime: ${runtimeStatus}`,
|
|
1153
|
+
` Node.js: ${process.version}`,
|
|
1154
|
+
` Platform: ${process.platform}`,
|
|
1155
|
+
` Workspace: ${hasWorkspace ? ".wotann/ found" : ".wotann/ missing — run wotann init"}`,
|
|
1156
|
+
` Providers: ${active} active of ${providers.length}`,
|
|
1157
|
+
` Skills: ${registry.getSkillCount()} loaded`,
|
|
1158
|
+
` Mode: ${currentMode}`,
|
|
1159
|
+
runtime ? ` Hooks: ${runtime.getStatus().hookCount} active` : "",
|
|
1160
|
+
runtime ? ` Middleware: ${runtime.getStatus().middlewareLayers} layers` : "",
|
|
1161
|
+
runtime
|
|
1162
|
+
? ` Memory: ${runtime.getStatus().memoryEnabled ? "SQLite + FTS5" : "disabled"}`
|
|
1163
|
+
: "",
|
|
1164
|
+
"",
|
|
1165
|
+
!runtime
|
|
1166
|
+
? " ⚠ Runtime not active — harness intelligence disabled. Run wotann init."
|
|
1167
|
+
: " ✓ Full harness intelligence active",
|
|
1168
|
+
]
|
|
1169
|
+
.filter(Boolean)
|
|
1170
|
+
.join("\n"));
|
|
1171
|
+
return true;
|
|
1172
|
+
}
|
|
1173
|
+
case "/compact": {
|
|
1174
|
+
if (!runtime) {
|
|
1175
|
+
sysMsg("Compact requires WotannRuntime.");
|
|
1176
|
+
return true;
|
|
1177
|
+
}
|
|
1178
|
+
const budget = runtime.getContextBudget();
|
|
1179
|
+
sysMsg(`Compacting context (${Math.round(budget.usagePercent * 100)}% used)...`);
|
|
1180
|
+
const compactResult = runtime.manualCompact();
|
|
1181
|
+
sysMsg(`Context compacted: ${compactResult.removedMessages} messages removed, ${compactResult.summary.length > 0 ? "summary preserved" : "no summary"}.`);
|
|
1182
|
+
syncStatsFromRuntime();
|
|
1183
|
+
return true;
|
|
1184
|
+
}
|
|
1185
|
+
case "/config": {
|
|
1186
|
+
if (!arg) {
|
|
1187
|
+
// Show current config like Claude's /config or OpenClaw's settings
|
|
1188
|
+
const hasWorkspace = existsSync(join(process.cwd(), ".wotann"));
|
|
1189
|
+
const registry = getSkillRegistry();
|
|
1190
|
+
sysMsg([
|
|
1191
|
+
"╭─ WOTANN Configuration ─────────────────────────────────────╮",
|
|
1192
|
+
"│ │",
|
|
1193
|
+
`│ Workspace: ${hasWorkspace ? join(process.cwd(), ".wotann") : "Not initialized"}`,
|
|
1194
|
+
`│ Mode: ${currentMode}`,
|
|
1195
|
+
`│ Model: ${currentModel}`,
|
|
1196
|
+
`│ Hook profile: ${runtime?.getStatus().hookCount ?? 0} hooks (standard)`,
|
|
1197
|
+
`│ Skills: ${registry.getSkillCount()} loaded`,
|
|
1198
|
+
`│ Memory: ${runtime?.getStatus().memoryEnabled ? "SQLite + FTS5 active" : "disabled"}`,
|
|
1199
|
+
`│ TTSR: active (5 streaming rules)`,
|
|
1200
|
+
`│ Middleware: 16 layers active`,
|
|
1201
|
+
"│ │",
|
|
1202
|
+
"│ Edit config: /config <key>=<value> │",
|
|
1203
|
+
"│ Examples: │",
|
|
1204
|
+
"│ /config mode=plan │",
|
|
1205
|
+
"│ /config hooks=strict │",
|
|
1206
|
+
"│ /config theme=dracula │",
|
|
1207
|
+
"│ │",
|
|
1208
|
+
"│ Config file: .wotann/config.yaml │",
|
|
1209
|
+
"│ Providers: /providers │",
|
|
1210
|
+
"│ Skills: /skills │",
|
|
1211
|
+
"╰──────────────────────────────────────────────────────────╯",
|
|
1212
|
+
].join("\n"));
|
|
1213
|
+
}
|
|
1214
|
+
else {
|
|
1215
|
+
// Parse key=value
|
|
1216
|
+
const eqIdx = arg.indexOf("=");
|
|
1217
|
+
if (eqIdx === -1) {
|
|
1218
|
+
sysMsg(`Usage: /config <key>=<value>\nExample: /config mode=plan`);
|
|
1219
|
+
}
|
|
1220
|
+
else {
|
|
1221
|
+
const key = arg.slice(0, eqIdx).trim();
|
|
1222
|
+
const val = arg.slice(eqIdx + 1).trim();
|
|
1223
|
+
switch (key) {
|
|
1224
|
+
case "mode": {
|
|
1225
|
+
const newMode = val;
|
|
1226
|
+
if (VALID_MODES.includes(newMode)) {
|
|
1227
|
+
if (runtime)
|
|
1228
|
+
runtime.setMode(newMode);
|
|
1229
|
+
setCurrentMode(newMode);
|
|
1230
|
+
sysMsg(`Config updated: mode = ${newMode}`);
|
|
1231
|
+
}
|
|
1232
|
+
else {
|
|
1233
|
+
sysMsg(`Invalid mode: ${val}. Valid: ${VALID_MODES.join(", ")}`);
|
|
1234
|
+
}
|
|
1235
|
+
break;
|
|
1236
|
+
}
|
|
1237
|
+
case "model":
|
|
1238
|
+
setCurrentModel(val);
|
|
1239
|
+
sysMsg(`Config updated: model = ${val}`);
|
|
1240
|
+
break;
|
|
1241
|
+
case "hooks":
|
|
1242
|
+
sysMsg(`Hook profile: ${val} (restart required to apply)`);
|
|
1243
|
+
break;
|
|
1244
|
+
case "theme":
|
|
1245
|
+
if (themeManagerRef.current.setTheme(val)) {
|
|
1246
|
+
setThemeName(themeManagerRef.current.getCurrent().name);
|
|
1247
|
+
sysMsg(`Config updated: theme = ${val}`);
|
|
1248
|
+
}
|
|
1249
|
+
else {
|
|
1250
|
+
sysMsg(`Unknown theme: ${val}`);
|
|
1251
|
+
}
|
|
1252
|
+
break;
|
|
1253
|
+
default:
|
|
1254
|
+
sysMsg(`Unknown config key: ${key}\nKnown keys: mode, model, hooks, theme`);
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1258
|
+
return true;
|
|
1259
|
+
}
|
|
1260
|
+
case "/cost": {
|
|
1261
|
+
if (runtime) {
|
|
1262
|
+
const status = runtime.getStatus();
|
|
1263
|
+
if (arg) {
|
|
1264
|
+
const budget = parseFloat(arg);
|
|
1265
|
+
if (!isNaN(budget) && budget > 0) {
|
|
1266
|
+
sysMsg(`Cost budget set: $${budget.toFixed(2)}\nCurrent spend: $${status.totalCost.toFixed(4)}\nRemaining: $${(budget - status.totalCost).toFixed(4)}`);
|
|
1267
|
+
}
|
|
1268
|
+
else {
|
|
1269
|
+
sysMsg("Usage: /cost <budget_usd>\nExample: /cost 5.00");
|
|
1270
|
+
}
|
|
1271
|
+
}
|
|
1272
|
+
else {
|
|
1273
|
+
sysMsg([
|
|
1274
|
+
"Cost Tracking",
|
|
1275
|
+
` Session spend: $${status.totalCost.toFixed(4)}`,
|
|
1276
|
+
` Total tokens: ${status.totalTokens.toLocaleString()}`,
|
|
1277
|
+
` Provider: ${status.activeProvider}`,
|
|
1278
|
+
"",
|
|
1279
|
+
" Set budget: /cost <amount>",
|
|
1280
|
+
" Example: /cost 5.00",
|
|
1281
|
+
].join("\n"));
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
else {
|
|
1285
|
+
sysMsg("Cost tracking requires WotannRuntime. Run `wotann init` first.");
|
|
1286
|
+
}
|
|
1287
|
+
return true;
|
|
1288
|
+
}
|
|
1289
|
+
case "/history":
|
|
1290
|
+
if (history.length === 0) {
|
|
1291
|
+
sysMsg("No prompt history yet.");
|
|
1292
|
+
}
|
|
1293
|
+
else {
|
|
1294
|
+
const recent = history.slice(0, 10);
|
|
1295
|
+
sysMsg(`Recent prompts:\n${recent.map((h, i) => ` ${i + 1}. ${h.slice(0, 80)}${h.length > 80 ? "..." : ""}`).join("\n")}`);
|
|
1296
|
+
}
|
|
1297
|
+
return true;
|
|
1298
|
+
case "/thinking": {
|
|
1299
|
+
const efforts = ["low", "medium", "high", "max"];
|
|
1300
|
+
const efforDescriptions = {
|
|
1301
|
+
low: "Minimal reasoning, fastest responses",
|
|
1302
|
+
medium: "Balanced (default)",
|
|
1303
|
+
high: "Deep reasoning, better for complex tasks",
|
|
1304
|
+
max: "Maximum thinking tokens (4x budget)",
|
|
1305
|
+
};
|
|
1306
|
+
if (!arg) {
|
|
1307
|
+
// Interactive picker (Hermes "modal overlay" pattern) —
|
|
1308
|
+
// replaces the prior 8-line system message that asked
|
|
1309
|
+
// the user to type the level out manually.
|
|
1310
|
+
const current = runtime?.getThinkingEffort() ?? "medium";
|
|
1311
|
+
setOptionPicker({
|
|
1312
|
+
title: "Thinking effort",
|
|
1313
|
+
options: efforts.map((value) => ({
|
|
1314
|
+
value,
|
|
1315
|
+
description: efforDescriptions[value],
|
|
1316
|
+
})),
|
|
1317
|
+
currentValue: current,
|
|
1318
|
+
onSelect: (value) => {
|
|
1319
|
+
const level = value;
|
|
1320
|
+
if (runtime)
|
|
1321
|
+
runtime.setThinkingEffort(level);
|
|
1322
|
+
setThinkingEffort(level);
|
|
1323
|
+
sysMsg(`Thinking effort set to: ${level}`);
|
|
1324
|
+
setOptionPicker(null);
|
|
1325
|
+
},
|
|
1326
|
+
});
|
|
1327
|
+
}
|
|
1328
|
+
else {
|
|
1329
|
+
const level = arg.toLowerCase();
|
|
1330
|
+
if (efforts.includes(level)) {
|
|
1331
|
+
if (runtime)
|
|
1332
|
+
runtime.setThinkingEffort(level);
|
|
1333
|
+
setThinkingEffort(level);
|
|
1334
|
+
sysMsg(`Thinking effort set to: ${level}`);
|
|
1335
|
+
}
|
|
1336
|
+
else {
|
|
1337
|
+
sysMsg(`Invalid level: ${arg}\nValid: ${efforts.join(", ")}`);
|
|
1338
|
+
}
|
|
1339
|
+
}
|
|
1340
|
+
return true;
|
|
1341
|
+
}
|
|
1342
|
+
case "/theme": {
|
|
1343
|
+
const themeManager = themeManagerRef.current;
|
|
1344
|
+
if (!arg) {
|
|
1345
|
+
// Interactive picker over every available theme — Norse
|
|
1346
|
+
// catalog can be 30+ entries which the prior static
|
|
1347
|
+
// 16-row truncation hid.
|
|
1348
|
+
setOptionPicker({
|
|
1349
|
+
title: `Theme (${themeManager.getThemeCount()} available)`,
|
|
1350
|
+
options: themeManager.getThemeNames().map((name) => ({ value: name })),
|
|
1351
|
+
currentValue: themeName,
|
|
1352
|
+
onSelect: (value) => {
|
|
1353
|
+
if (themeManager.setTheme(value)) {
|
|
1354
|
+
setThemeName(themeManager.getCurrent().name);
|
|
1355
|
+
sysMsg(`Theme switched to: ${value}`);
|
|
1356
|
+
}
|
|
1357
|
+
else {
|
|
1358
|
+
sysMsg(`Unknown theme: ${value}`);
|
|
1359
|
+
}
|
|
1360
|
+
setOptionPicker(null);
|
|
1361
|
+
},
|
|
1362
|
+
});
|
|
1363
|
+
}
|
|
1364
|
+
else if (themeManager.setTheme(arg)) {
|
|
1365
|
+
setThemeName(themeManager.getCurrent().name);
|
|
1366
|
+
sysMsg(`Theme switched to: ${arg}`);
|
|
1367
|
+
}
|
|
1368
|
+
else {
|
|
1369
|
+
sysMsg(`Unknown theme: ${arg}`);
|
|
1370
|
+
}
|
|
1371
|
+
return true;
|
|
1372
|
+
}
|
|
1373
|
+
case "/context": {
|
|
1374
|
+
if (runtime) {
|
|
1375
|
+
const budget = runtime.getContextBudget();
|
|
1376
|
+
const capability = runtime.getContextCapabilityProfile();
|
|
1377
|
+
sysMsg([
|
|
1378
|
+
"Context Window",
|
|
1379
|
+
` Effective: ${runtime.getMaxContextTokens().toLocaleString()} tokens`,
|
|
1380
|
+
` Documented: ${capability.documentedMaxTokens.toLocaleString()} tokens`,
|
|
1381
|
+
` Activation: ${capability.activationMode}`,
|
|
1382
|
+
` Used: ${(budget.usagePercent * 100).toFixed(1)}%`,
|
|
1383
|
+
` Pressure: ${budget.pressureLevel}`,
|
|
1384
|
+
` Available: ${budget.availableTokens.toLocaleString()} tokens`,
|
|
1385
|
+
capability.notes ? ` Notes: ${capability.notes}` : "",
|
|
1386
|
+
"",
|
|
1387
|
+
" Zones:",
|
|
1388
|
+
` System prompt: ${budget.systemPromptTokens.toLocaleString()}`,
|
|
1389
|
+
` Memory: ${budget.memoryTokens.toLocaleString()}`,
|
|
1390
|
+
` Tools: ${budget.toolSchemaTokens.toLocaleString()}`,
|
|
1391
|
+
` Conversation: ${budget.conversationTokens.toLocaleString()}`,
|
|
1392
|
+
]
|
|
1393
|
+
.filter(Boolean)
|
|
1394
|
+
.join("\n"));
|
|
1395
|
+
}
|
|
1396
|
+
else {
|
|
1397
|
+
sysMsg("Context tracking requires WotannRuntime.");
|
|
1398
|
+
}
|
|
1399
|
+
return true;
|
|
1400
|
+
}
|
|
1401
|
+
case "/voice": {
|
|
1402
|
+
const controller = voiceControllerRef.current;
|
|
1403
|
+
const subcommand = (parts[1] ?? "").toLowerCase();
|
|
1404
|
+
const remainder = parts.slice(2).join(" ");
|
|
1405
|
+
if (subcommand === "on") {
|
|
1406
|
+
controller.setEnabled(true);
|
|
1407
|
+
void (async () => {
|
|
1408
|
+
const status = await controller.getStatus();
|
|
1409
|
+
sysMsg([
|
|
1410
|
+
"Voice Mode",
|
|
1411
|
+
` Enabled: yes`,
|
|
1412
|
+
` Auto-speak: ${status.autoSpeak ? "yes" : "no"}`,
|
|
1413
|
+
` STT: ${status.stt ?? "none detected"}`,
|
|
1414
|
+
` TTS: ${status.tts ?? "none detected"}`,
|
|
1415
|
+
` Can listen: ${status.canListen ? "yes" : "no"}`,
|
|
1416
|
+
` Can speak: ${status.canSpeak ? "yes" : "no"}`,
|
|
1417
|
+
"",
|
|
1418
|
+
" Press Ctrl+V to record a voice prompt.",
|
|
1419
|
+
].join("\n"));
|
|
1420
|
+
})();
|
|
1421
|
+
return true;
|
|
1422
|
+
}
|
|
1423
|
+
if (subcommand === "off") {
|
|
1424
|
+
controller.setEnabled(false);
|
|
1425
|
+
sysMsg("Voice mode disabled.");
|
|
1426
|
+
return true;
|
|
1427
|
+
}
|
|
1428
|
+
if (subcommand === "capture") {
|
|
1429
|
+
void handleVoiceCapture();
|
|
1430
|
+
return true;
|
|
1431
|
+
}
|
|
1432
|
+
if (subcommand === "autospeak") {
|
|
1433
|
+
const enabled = controller.toggleAutoSpeak();
|
|
1434
|
+
sysMsg(`Voice auto-speak ${enabled ? "enabled" : "disabled"}.`);
|
|
1435
|
+
return true;
|
|
1436
|
+
}
|
|
1437
|
+
if (subcommand === "say" && remainder) {
|
|
1438
|
+
void (async () => {
|
|
1439
|
+
const spoken = await controller.speakText(remainder);
|
|
1440
|
+
sysMsg(spoken
|
|
1441
|
+
? "Voice playback started."
|
|
1442
|
+
: "Voice playback unavailable. Run `/voice on` and configure TTS.");
|
|
1443
|
+
})();
|
|
1444
|
+
return true;
|
|
1445
|
+
}
|
|
1446
|
+
void (async () => {
|
|
1447
|
+
const status = await controller.getStatus();
|
|
1448
|
+
sysMsg([
|
|
1449
|
+
"Voice Mode",
|
|
1450
|
+
"",
|
|
1451
|
+
` Enabled: ${status.enabled ? "yes" : "no"}`,
|
|
1452
|
+
` Auto-speak: ${status.autoSpeak ? "yes" : "no"}`,
|
|
1453
|
+
` STT: ${status.stt ?? "none detected"}`,
|
|
1454
|
+
` TTS: ${status.tts ?? "none detected"}`,
|
|
1455
|
+
` Can listen: ${status.canListen ? "yes" : "no"}`,
|
|
1456
|
+
` Can speak: ${status.canSpeak ? "yes" : "no"}`,
|
|
1457
|
+
"",
|
|
1458
|
+
" Commands:",
|
|
1459
|
+
" /voice on Enable voice capture",
|
|
1460
|
+
" /voice off Disable voice capture",
|
|
1461
|
+
" /voice capture Record a prompt now",
|
|
1462
|
+
" /voice autospeak Toggle speaking assistant replies",
|
|
1463
|
+
"",
|
|
1464
|
+
" Push-to-talk: Ctrl+V records a voice prompt.",
|
|
1465
|
+
].join("\n"));
|
|
1466
|
+
})();
|
|
1467
|
+
return true;
|
|
1468
|
+
}
|
|
1469
|
+
case "/trace":
|
|
1470
|
+
if (runtime) {
|
|
1471
|
+
const analysis = runtime.getTraceAnalysis();
|
|
1472
|
+
sysMsg([
|
|
1473
|
+
"Trace Analysis",
|
|
1474
|
+
` Entries: ${analysis.totalEntries}`,
|
|
1475
|
+
` Tokens: ${analysis.totalTokens.toLocaleString()}`,
|
|
1476
|
+
` Duration: ${(analysis.totalDurationMs / 1000).toFixed(1)}s`,
|
|
1477
|
+
analysis.patterns.length > 0
|
|
1478
|
+
? ` Patterns: ${analysis.patterns.length} detected`
|
|
1479
|
+
: " No patterns detected",
|
|
1480
|
+
].join("\n"));
|
|
1481
|
+
}
|
|
1482
|
+
else {
|
|
1483
|
+
sysMsg("Trace analysis requires WotannRuntime.");
|
|
1484
|
+
}
|
|
1485
|
+
return true;
|
|
1486
|
+
case "/freeze": {
|
|
1487
|
+
if (!runtime) {
|
|
1488
|
+
sysMsg("File freezing requires WotannRuntime.");
|
|
1489
|
+
return true;
|
|
1490
|
+
}
|
|
1491
|
+
const freezer = runtime.getFileFreezer();
|
|
1492
|
+
if (!arg) {
|
|
1493
|
+
const frozen = freezer.getRules();
|
|
1494
|
+
sysMsg(frozen.length > 0
|
|
1495
|
+
? `Frozen files:\n${frozen.map((f) => ` 🔒 ${f.pattern}`).join("\n")}\n\nUnfreeze: /freeze --unfreeze <path>`
|
|
1496
|
+
: "No files frozen. Usage: /freeze <path> to make a file immutable for this session.");
|
|
1497
|
+
}
|
|
1498
|
+
else if (arg.startsWith("--unfreeze ")) {
|
|
1499
|
+
const target = arg.replace("--unfreeze ", "").trim();
|
|
1500
|
+
freezer.unfreeze(target);
|
|
1501
|
+
sysMsg(`Unfrozen: ${target}`);
|
|
1502
|
+
}
|
|
1503
|
+
else {
|
|
1504
|
+
freezer.freeze(arg.trim());
|
|
1505
|
+
sysMsg(`🔒 Frozen: ${arg.trim()} — WOTANN will refuse to edit this file.`);
|
|
1506
|
+
}
|
|
1507
|
+
return true;
|
|
1508
|
+
}
|
|
1509
|
+
case "/branch": {
|
|
1510
|
+
if (!runtime) {
|
|
1511
|
+
sysMsg("Branching requires WotannRuntime.");
|
|
1512
|
+
return true;
|
|
1513
|
+
}
|
|
1514
|
+
const branchMgr = runtime.getBranchManager();
|
|
1515
|
+
const subCmd = (parts[1] ?? "").toLowerCase();
|
|
1516
|
+
if (subCmd === "fork" || subCmd === "create") {
|
|
1517
|
+
const label = parts.slice(2).join(" ") || `branch-${Date.now()}`;
|
|
1518
|
+
const branch = branchMgr.fork(label);
|
|
1519
|
+
sysMsg(`Forked conversation branch: ${branch.id} (${label})\n${branchMgr.listBranches().length} total branches`);
|
|
1520
|
+
}
|
|
1521
|
+
else if (subCmd === "list") {
|
|
1522
|
+
const branches = branchMgr.listBranches();
|
|
1523
|
+
sysMsg(branches.length > 0
|
|
1524
|
+
? `Branches:\n${branches.map((b) => ` ${b.id} — ${b.name} (${b.turns.length} turns)`).join("\n")}`
|
|
1525
|
+
: "No branches. Fork with: /branch fork <label>");
|
|
1526
|
+
}
|
|
1527
|
+
else if (subCmd === "switch" && parts[2]) {
|
|
1528
|
+
const switched = branchMgr.switchBranch(parts[2]);
|
|
1529
|
+
if (switched) {
|
|
1530
|
+
sysMsg(`Switched to branch: ${parts[2]}`);
|
|
1531
|
+
}
|
|
1532
|
+
else {
|
|
1533
|
+
sysMsg(`Branch not found: ${parts[2]}`);
|
|
1534
|
+
}
|
|
1535
|
+
}
|
|
1536
|
+
else {
|
|
1537
|
+
sysMsg("Usage: /branch fork <label> | /branch list | /branch switch <id>");
|
|
1538
|
+
}
|
|
1539
|
+
return true;
|
|
1540
|
+
}
|
|
1541
|
+
case "/canvas": {
|
|
1542
|
+
if (!runtime) {
|
|
1543
|
+
sysMsg("Canvas requires WotannRuntime.");
|
|
1544
|
+
return true;
|
|
1545
|
+
}
|
|
1546
|
+
const canvas = runtime.getCanvasEditor();
|
|
1547
|
+
if (!arg) {
|
|
1548
|
+
sysMsg("Open a file for collaborative editing: /canvas <filepath>\nClose: /canvas close <sessionId>\nAccept all: /canvas accept-all <sessionId>");
|
|
1549
|
+
}
|
|
1550
|
+
else if (arg.startsWith("close ")) {
|
|
1551
|
+
const sessionId = arg.replace("close ", "").trim();
|
|
1552
|
+
canvas.closeCanvas(sessionId);
|
|
1553
|
+
sysMsg("Canvas session closed.");
|
|
1554
|
+
}
|
|
1555
|
+
else if (arg.startsWith("accept-all ")) {
|
|
1556
|
+
const sessionId = arg.replace("accept-all ", "").trim();
|
|
1557
|
+
const accepted = canvas.acceptAll(sessionId);
|
|
1558
|
+
sysMsg(`Accepted ${accepted} hunks.`);
|
|
1559
|
+
}
|
|
1560
|
+
else {
|
|
1561
|
+
const session = canvas.openCanvas(arg.trim());
|
|
1562
|
+
sysMsg(`Canvas opened: ${session.filePath} (session: ${session.id})\n Hunks will appear as the agent proposes edits.`);
|
|
1563
|
+
}
|
|
1564
|
+
return true;
|
|
1565
|
+
}
|
|
1566
|
+
case "/autonomous": {
|
|
1567
|
+
if (!runtime) {
|
|
1568
|
+
sysMsg("Autonomous mode requires WotannRuntime.");
|
|
1569
|
+
return true;
|
|
1570
|
+
}
|
|
1571
|
+
if (!arg) {
|
|
1572
|
+
sysMsg("Usage: /autonomous <task description>\nFire-and-forget execution with 8-strategy escalation, doom-loop detection, and shadow-git checkpoints.");
|
|
1573
|
+
return true;
|
|
1574
|
+
}
|
|
1575
|
+
const executor = runtime.getAutonomousExecutor();
|
|
1576
|
+
if (executor.isActive()) {
|
|
1577
|
+
sysMsg("Autonomous execution already in progress. Cancel with /autonomous cancel");
|
|
1578
|
+
return true;
|
|
1579
|
+
}
|
|
1580
|
+
sysMsg(`🚀 Starting autonomous execution: ${arg}\n Max cycles: 25 | Budget: $10 | Timeout: 1h\n Strategies: direct → decompose → research-first → minimal-change → revert-and-retry`);
|
|
1581
|
+
runtime.setMode("autonomous");
|
|
1582
|
+
setCurrentMode("autonomous");
|
|
1583
|
+
// Actually start the autonomous execution loop
|
|
1584
|
+
void (async () => {
|
|
1585
|
+
try {
|
|
1586
|
+
const result = await executor.execute(arg, async (prompt) => {
|
|
1587
|
+
let output = "";
|
|
1588
|
+
let tokensUsed = 0;
|
|
1589
|
+
for await (const chunk of runtime.query({ prompt })) {
|
|
1590
|
+
if (chunk.type === "text")
|
|
1591
|
+
output += chunk.content;
|
|
1592
|
+
if (chunk.tokensUsed)
|
|
1593
|
+
tokensUsed = chunk.tokensUsed;
|
|
1594
|
+
}
|
|
1595
|
+
return { output, costUsd: 0, tokensUsed };
|
|
1596
|
+
}, async () => {
|
|
1597
|
+
const tsc = await new Promise((resolve) => {
|
|
1598
|
+
try {
|
|
1599
|
+
execFileSync("npx", ["tsc", "--noEmit"], {
|
|
1600
|
+
cwd: runtime.getWorkingDir(),
|
|
1601
|
+
timeout: 60000,
|
|
1602
|
+
});
|
|
1603
|
+
resolve(true);
|
|
1604
|
+
}
|
|
1605
|
+
catch (err) {
|
|
1606
|
+
console.warn(`[WOTANN] autonomous tsc check failed: ${err.message}`);
|
|
1607
|
+
resolve(false);
|
|
1608
|
+
}
|
|
1609
|
+
});
|
|
1610
|
+
const tests = await new Promise((resolve) => {
|
|
1611
|
+
try {
|
|
1612
|
+
execFileSync("npx", ["vitest", "run", "--reporter=dot"], {
|
|
1613
|
+
cwd: runtime.getWorkingDir(),
|
|
1614
|
+
timeout: 120000,
|
|
1615
|
+
});
|
|
1616
|
+
resolve(true);
|
|
1617
|
+
}
|
|
1618
|
+
catch (err) {
|
|
1619
|
+
console.warn(`[WOTANN] autonomous vitest check failed: ${err.message}`);
|
|
1620
|
+
resolve(false);
|
|
1621
|
+
}
|
|
1622
|
+
});
|
|
1623
|
+
return {
|
|
1624
|
+
testsPass: tests,
|
|
1625
|
+
typecheckPass: tsc,
|
|
1626
|
+
lintPass: true,
|
|
1627
|
+
output: tsc && tests ? "All checks pass" : "Checks failed",
|
|
1628
|
+
};
|
|
1629
|
+
}, {
|
|
1630
|
+
onCycleStart: (cycle, strategy) => {
|
|
1631
|
+
appendSystemMessage(`[Autonomous] Cycle ${cycle + 1} — strategy: ${strategy}`);
|
|
1632
|
+
},
|
|
1633
|
+
onCycleEnd: (result) => {
|
|
1634
|
+
appendSystemMessage(`[Autonomous] Cycle ${result.cycle + 1}: tests=${result.testsPass ? "✓" : "✗"} typecheck=${result.typecheckPass ? "✓" : "✗"} (${result.durationMs}ms)`);
|
|
1635
|
+
},
|
|
1636
|
+
});
|
|
1637
|
+
const proofPath = runtime.generateProofBundle(arg, result);
|
|
1638
|
+
appendSystemMessage(result.success
|
|
1639
|
+
? `✓ Autonomous completed in ${result.totalCycles} cycles (${(result.totalDurationMs / 1000).toFixed(1)}s)\n Proof: ${proofPath}`
|
|
1640
|
+
: `✗ Autonomous failed: ${result.exitReason} after ${result.totalCycles} cycles`);
|
|
1641
|
+
}
|
|
1642
|
+
catch (error) {
|
|
1643
|
+
appendSystemMessage(`Autonomous error: ${error instanceof Error ? error.message : "unknown"}`);
|
|
1644
|
+
}
|
|
1645
|
+
finally {
|
|
1646
|
+
runtime.setMode("default");
|
|
1647
|
+
setCurrentMode("default");
|
|
1648
|
+
}
|
|
1649
|
+
})();
|
|
1650
|
+
return true;
|
|
1651
|
+
}
|
|
1652
|
+
case "/autoresearch": {
|
|
1653
|
+
if (!runtime) {
|
|
1654
|
+
sysMsg("Autoresearch requires WotannRuntime.");
|
|
1655
|
+
return true;
|
|
1656
|
+
}
|
|
1657
|
+
const arTarget = rest.trim();
|
|
1658
|
+
if (!arTarget) {
|
|
1659
|
+
sysMsg("Usage: /autoresearch <target file>\nAutonomously optimize a file through experiment cycles.");
|
|
1660
|
+
return true;
|
|
1661
|
+
}
|
|
1662
|
+
sysMsg(`Starting autoresearch on: ${arTarget}`);
|
|
1663
|
+
return true;
|
|
1664
|
+
}
|
|
1665
|
+
case "/learnings": {
|
|
1666
|
+
if (!runtime) {
|
|
1667
|
+
sysMsg("Learnings require WotannRuntime.");
|
|
1668
|
+
return true;
|
|
1669
|
+
}
|
|
1670
|
+
const learner = runtime.getCrossSessionLearner();
|
|
1671
|
+
const learnings = learner.getAllLearnings();
|
|
1672
|
+
sysMsg(learnings.length > 0
|
|
1673
|
+
? `Cross-session learnings (${learnings.length}):\n${learnings
|
|
1674
|
+
.slice(0, 10)
|
|
1675
|
+
.map((l) => ` • ${l.content} (${(l.confidence * 100).toFixed(0)}%)`)
|
|
1676
|
+
.join("\n")}`
|
|
1677
|
+
: "No cross-session patterns extracted yet. They accumulate over multiple sessions.");
|
|
1678
|
+
return true;
|
|
1679
|
+
}
|
|
1680
|
+
case "/replay": {
|
|
1681
|
+
if (!runtime) {
|
|
1682
|
+
sysMsg("Replay requires WotannRuntime.");
|
|
1683
|
+
return true;
|
|
1684
|
+
}
|
|
1685
|
+
const recorder = runtime.getSessionRecorder();
|
|
1686
|
+
const replaySession = recorder.getSession();
|
|
1687
|
+
const events = replaySession.events;
|
|
1688
|
+
sysMsg(events.length > 0
|
|
1689
|
+
? `Session recording: ${events.length} events\n${events
|
|
1690
|
+
.slice(-10)
|
|
1691
|
+
.map((e) => ` ${new Date(e.timestamp).toISOString().slice(11, 19)} — ${e.type}`)
|
|
1692
|
+
.join("\n")}`
|
|
1693
|
+
: "No events recorded yet.");
|
|
1694
|
+
return true;
|
|
1695
|
+
}
|
|
1696
|
+
case "/arena": {
|
|
1697
|
+
if (!runtime) {
|
|
1698
|
+
sysMsg("Arena requires WotannRuntime.");
|
|
1699
|
+
return true;
|
|
1700
|
+
}
|
|
1701
|
+
const arenaTask = rest.trim();
|
|
1702
|
+
if (!arenaTask) {
|
|
1703
|
+
sysMsg("Usage: /arena <task>\nRuns the same task on multiple models simultaneously in isolated git worktrees.\nCompare outputs side-by-side with blind voting.");
|
|
1704
|
+
return true;
|
|
1705
|
+
}
|
|
1706
|
+
const availableProviders = providers.filter((p) => p.available).map((p) => p.provider);
|
|
1707
|
+
if (availableProviders.length < 2) {
|
|
1708
|
+
sysMsg("Arena requires at least 2 active providers. Run /providers to check.");
|
|
1709
|
+
return true;
|
|
1710
|
+
}
|
|
1711
|
+
sysMsg(`🏟 Arena starting: "${arenaTask.slice(0, 80)}"\n Providers: ${availableProviders.join(", ")}`);
|
|
1712
|
+
void (async () => {
|
|
1713
|
+
try {
|
|
1714
|
+
const contestants = await runtime.runArena(arenaTask, availableProviders);
|
|
1715
|
+
if (contestants.length === 0) {
|
|
1716
|
+
appendSystemMessage("Arena: No responses received.");
|
|
1717
|
+
return;
|
|
1718
|
+
}
|
|
1719
|
+
const results = contestants
|
|
1720
|
+
.map((c) => ` ${c.label}: ${c.response.slice(0, 120)}${c.response.length > 120 ? "..." : ""}\n (${c.tokensUsed} tokens, ${c.durationMs}ms)`)
|
|
1721
|
+
.join("\n\n");
|
|
1722
|
+
appendSystemMessage(`🏟 Arena Results:\n\n${results}\n\nVote: reply with the letter of the best response.`);
|
|
1723
|
+
}
|
|
1724
|
+
catch (error) {
|
|
1725
|
+
appendSystemMessage(`Arena error: ${error instanceof Error ? error.message : "unknown"}`);
|
|
1726
|
+
}
|
|
1727
|
+
})();
|
|
1728
|
+
return true;
|
|
1729
|
+
}
|
|
1730
|
+
case "/council": {
|
|
1731
|
+
if (!runtime) {
|
|
1732
|
+
sysMsg("Council requires WotannRuntime.");
|
|
1733
|
+
return true;
|
|
1734
|
+
}
|
|
1735
|
+
const councilQuery = rest.trim();
|
|
1736
|
+
if (!councilQuery) {
|
|
1737
|
+
sysMsg("Usage: /council <question>\nRuns a multi-LLM deliberation: individual answers, peer review, chairman synthesis.");
|
|
1738
|
+
return true;
|
|
1739
|
+
}
|
|
1740
|
+
const councilProviders = providers.filter((p) => p.available).map((p) => p.provider);
|
|
1741
|
+
if (councilProviders.length < 2) {
|
|
1742
|
+
sysMsg("Council requires at least 2 active providers. Run /providers to check.");
|
|
1743
|
+
return true;
|
|
1744
|
+
}
|
|
1745
|
+
sysMsg(`🏛 Council convening: "${councilQuery.slice(0, 80)}"\n Members: ${councilProviders.join(", ")}`);
|
|
1746
|
+
void (async () => {
|
|
1747
|
+
try {
|
|
1748
|
+
const result = await runtime.runCouncil(councilQuery, councilProviders);
|
|
1749
|
+
if (result.members.length === 0) {
|
|
1750
|
+
appendSystemMessage("Council: No responses received.");
|
|
1751
|
+
return;
|
|
1752
|
+
}
|
|
1753
|
+
const memberSummary = result.members
|
|
1754
|
+
.map((m) => ` ${m.label} (${m.provider}): ${m.response.slice(0, 100)}${m.response.length > 100 ? "..." : ""}\n (${m.tokensUsed} tokens, ${m.durationMs}ms)`)
|
|
1755
|
+
.join("\n\n");
|
|
1756
|
+
const ranking = result.aggregateRanking.length > 0
|
|
1757
|
+
? "\n\nRanking:\n" +
|
|
1758
|
+
result.aggregateRanking
|
|
1759
|
+
.map((r, i) => ` ${i + 1}. ${r.label} (avg rank: ${r.averageRank.toFixed(1)})`)
|
|
1760
|
+
.join("\n")
|
|
1761
|
+
: "";
|
|
1762
|
+
const synthesis = result.synthesis
|
|
1763
|
+
? `\n\nSynthesis (${result.chairmanModel}):\n ${result.synthesis.slice(0, 300)}${result.synthesis.length > 300 ? "..." : ""}`
|
|
1764
|
+
: "";
|
|
1765
|
+
appendSystemMessage(`🏛 Council Results:\n\n${memberSummary}${ranking}${synthesis}\n\n Total: ${result.totalTokens} tokens, ${result.totalDurationMs}ms`);
|
|
1766
|
+
}
|
|
1767
|
+
catch (error) {
|
|
1768
|
+
appendSystemMessage(`Council error: ${error instanceof Error ? error.message : "unknown"}`);
|
|
1769
|
+
}
|
|
1770
|
+
})();
|
|
1771
|
+
return true;
|
|
1772
|
+
}
|
|
1773
|
+
case "/inspect": {
|
|
1774
|
+
if (!runtime) {
|
|
1775
|
+
sysMsg("Inspect requires WotannRuntime.");
|
|
1776
|
+
return true;
|
|
1777
|
+
}
|
|
1778
|
+
const inspector = runtime.getContextInspector();
|
|
1779
|
+
if (!inspector) {
|
|
1780
|
+
sysMsg("Context inspector not available.");
|
|
1781
|
+
return true;
|
|
1782
|
+
}
|
|
1783
|
+
const snapshot = inspector.getSnapshot();
|
|
1784
|
+
const topConsumers = snapshot.topConsumers
|
|
1785
|
+
.slice(0, 8)
|
|
1786
|
+
.map((s) => ` ${s.source.padEnd(28)} ${String(s.tokens).padStart(7)} tokens ${s.percent.toFixed(1)}%`);
|
|
1787
|
+
const utilPct = snapshot.utilizationPercent;
|
|
1788
|
+
sysMsg([
|
|
1789
|
+
"╭─ Context Source Inspector (Ctrl+I) ─────────────────────╮",
|
|
1790
|
+
`│ Total: ${snapshot.totalTokens.toLocaleString().padStart(9)} / ${snapshot.maxTokens.toLocaleString()} tokens`,
|
|
1791
|
+
`│ Usage: ${utilPct.toFixed(1)}% ${utilPct > 75 ? "⚠ HIGH" : "✓ OK"}`,
|
|
1792
|
+
"├──────────────────────────────────────────────────────────┤",
|
|
1793
|
+
...topConsumers.map((s) => `│ ${s.padEnd(55)}│`),
|
|
1794
|
+
"├──────────────────────────────────────────────────────────┤",
|
|
1795
|
+
`│ Recommendations: ${snapshot.recommendations.length} suggestions`,
|
|
1796
|
+
...snapshot.recommendations
|
|
1797
|
+
.slice(0, 3)
|
|
1798
|
+
.map((r) => `│ • ${r.slice(0, 52)}`),
|
|
1799
|
+
"╰──────────────────────────────────────────────────────────╯",
|
|
1800
|
+
].join("\n"));
|
|
1801
|
+
return true;
|
|
1802
|
+
}
|
|
1803
|
+
case "/mcp": {
|
|
1804
|
+
const sub = rest.trim().split(/\s+/);
|
|
1805
|
+
const mcpAction = sub[0] ?? "list";
|
|
1806
|
+
void (async () => {
|
|
1807
|
+
const { MCPRegistry } = await import("../marketplace/registry.js");
|
|
1808
|
+
const registry = new MCPRegistry({ projectDir: workingDir });
|
|
1809
|
+
registry.registerBuiltins();
|
|
1810
|
+
registry.importFromClaudeCode();
|
|
1811
|
+
switch (mcpAction) {
|
|
1812
|
+
case "list": {
|
|
1813
|
+
const servers = registry.getAllServers();
|
|
1814
|
+
if (servers.length === 0) {
|
|
1815
|
+
appendSystemMessage("No MCP servers registered. Import with: /mcp import");
|
|
1816
|
+
}
|
|
1817
|
+
else {
|
|
1818
|
+
const lines = servers.map((s) => `│ ${s.enabled ? "✓" : "✗"} ${s.name.padEnd(14)} ${s.command.padEnd(20)} ${s.transport}`);
|
|
1819
|
+
appendSystemMessage([
|
|
1820
|
+
"╭─ MCP Server Registry ────────────────────────────────────╮",
|
|
1821
|
+
`│ ${servers.length} server(s) registered │`,
|
|
1822
|
+
"├──────────────────────────────────────────────────────────┤",
|
|
1823
|
+
...lines,
|
|
1824
|
+
"├──────────────────────────────────────────────────────────┤",
|
|
1825
|
+
"│ Commands: /mcp list | /mcp install <name> │",
|
|
1826
|
+
"│ /mcp remove <name> | /mcp audit <name> │",
|
|
1827
|
+
"╰──────────────────────────────────────────────────────────╯",
|
|
1828
|
+
].join("\n"));
|
|
1829
|
+
}
|
|
1830
|
+
break;
|
|
1831
|
+
}
|
|
1832
|
+
case "install": {
|
|
1833
|
+
const serverName = sub[1];
|
|
1834
|
+
if (!serverName) {
|
|
1835
|
+
appendSystemMessage("Usage: /mcp install <name>");
|
|
1836
|
+
break;
|
|
1837
|
+
}
|
|
1838
|
+
appendSystemMessage(`Installing MCP server: ${serverName}\nUse /mcp list to see registered servers.`);
|
|
1839
|
+
break;
|
|
1840
|
+
}
|
|
1841
|
+
case "remove": {
|
|
1842
|
+
const serverName = sub[1];
|
|
1843
|
+
if (!serverName) {
|
|
1844
|
+
appendSystemMessage("Usage: /mcp remove <name>");
|
|
1845
|
+
break;
|
|
1846
|
+
}
|
|
1847
|
+
const existing = registry.getServer(serverName);
|
|
1848
|
+
if (!existing) {
|
|
1849
|
+
appendSystemMessage(`MCP server "${serverName}" not found. Use /mcp list to see registered servers.`);
|
|
1850
|
+
}
|
|
1851
|
+
else {
|
|
1852
|
+
registry.unregister(serverName);
|
|
1853
|
+
appendSystemMessage(`Removed MCP server: ${serverName}`);
|
|
1854
|
+
}
|
|
1855
|
+
break;
|
|
1856
|
+
}
|
|
1857
|
+
case "audit": {
|
|
1858
|
+
const serverName = sub[1];
|
|
1859
|
+
if (!serverName) {
|
|
1860
|
+
appendSystemMessage("Usage: /mcp audit <name>");
|
|
1861
|
+
break;
|
|
1862
|
+
}
|
|
1863
|
+
const server = registry.getServer(serverName);
|
|
1864
|
+
if (!server) {
|
|
1865
|
+
appendSystemMessage(`MCP server "${serverName}" not found.`);
|
|
1866
|
+
}
|
|
1867
|
+
else {
|
|
1868
|
+
appendSystemMessage([
|
|
1869
|
+
`Security audit for MCP server: ${server.name}`,
|
|
1870
|
+
` Command: ${server.command}`,
|
|
1871
|
+
` Args: ${server.args.join(" ") || "(none)"}`,
|
|
1872
|
+
` Transport: ${server.transport}`,
|
|
1873
|
+
` Env vars: ${server.env ? Object.keys(server.env).join(", ") : "(none)"}`,
|
|
1874
|
+
` Enabled: ${server.enabled}`,
|
|
1875
|
+
].join("\n"));
|
|
1876
|
+
}
|
|
1877
|
+
break;
|
|
1878
|
+
}
|
|
1879
|
+
default:
|
|
1880
|
+
appendSystemMessage("Usage: /mcp [list|install|remove|audit] [name]");
|
|
1881
|
+
}
|
|
1882
|
+
})();
|
|
1883
|
+
return true;
|
|
1884
|
+
}
|
|
1885
|
+
case "/persona": {
|
|
1886
|
+
if (!runtime) {
|
|
1887
|
+
sysMsg("Persona requires WotannRuntime.");
|
|
1888
|
+
return true;
|
|
1889
|
+
}
|
|
1890
|
+
const personaSub = rest.trim();
|
|
1891
|
+
if (!personaSub) {
|
|
1892
|
+
sysMsg([
|
|
1893
|
+
"╭─ Identity & Persona ──────────────────────────────────────╮",
|
|
1894
|
+
"│ Bootstrap files (loaded in order on startup): │",
|
|
1895
|
+
"│ 1. AGENTS.md 2. TOOLS.md 3. SOUL.md │",
|
|
1896
|
+
"│ 4. IDENTITY.md 5. USER.md 6. HEARTBEAT.md │",
|
|
1897
|
+
"│ 7. LESSONS.md 8. RULES.md │",
|
|
1898
|
+
"├──────────────────────────────────────────────────────────┤",
|
|
1899
|
+
"│ Commands: │",
|
|
1900
|
+
"│ /persona list Show active personas │",
|
|
1901
|
+
"│ /persona init Generate bootstrap files │",
|
|
1902
|
+
"│ /persona switch <n> Activate a different persona │",
|
|
1903
|
+
"╰──────────────────────────────────────────────────────────╯",
|
|
1904
|
+
].join("\n"));
|
|
1905
|
+
return true;
|
|
1906
|
+
}
|
|
1907
|
+
if (personaSub === "init") {
|
|
1908
|
+
const manager = runtime.getPersonaManager();
|
|
1909
|
+
sysMsg(`Generating 8-file bootstrap sequence in .wotann/identity/...\n Existing personas: ${manager.list().length > 0 ? manager.list().join(", ") : "none"}\n This creates AGENTS.md, TOOLS.md, SOUL.md, IDENTITY.md, USER.md, HEARTBEAT.md, LESSONS.md, RULES.md`);
|
|
1910
|
+
}
|
|
1911
|
+
else if (personaSub === "list") {
|
|
1912
|
+
const manager = runtime.getPersonaManager();
|
|
1913
|
+
const personas = manager.list();
|
|
1914
|
+
sysMsg(personas.length > 0
|
|
1915
|
+
? `Loaded personas (${personas.length}):\n${personas.map((p) => ` • ${p}`).join("\n")}`
|
|
1916
|
+
: "No personas loaded. Create YAML files in .wotann/identity/personas/ or run /persona init.");
|
|
1917
|
+
}
|
|
1918
|
+
else {
|
|
1919
|
+
sysMsg(`Persona command: ${personaSub}`);
|
|
1920
|
+
}
|
|
1921
|
+
return true;
|
|
1922
|
+
}
|
|
1923
|
+
case "/permission": {
|
|
1924
|
+
const permMode = rest.trim();
|
|
1925
|
+
const validModes = ["auto-approve", "ask-always", "smart"];
|
|
1926
|
+
if (!permMode || !validModes.includes(permMode)) {
|
|
1927
|
+
const currentPerm = runtime?.getPermissionMode() ?? "smart";
|
|
1928
|
+
sysMsg([
|
|
1929
|
+
"╭─ Permission Mode ─────────────────────────────────────────╮",
|
|
1930
|
+
`│ Current: ${currentPerm.padEnd(45)}│`,
|
|
1931
|
+
"├──────────────────────────────────────────────────────────┤",
|
|
1932
|
+
"│ auto-approve Skip all approval prompts │",
|
|
1933
|
+
"│ ask-always Ask before every tool call │",
|
|
1934
|
+
"│ smart Ask for destructive ops only (default) │",
|
|
1935
|
+
"╰──────────────────────────────────────────────────────────╯",
|
|
1936
|
+
].join("\n"));
|
|
1937
|
+
return true;
|
|
1938
|
+
}
|
|
1939
|
+
if (runtime) {
|
|
1940
|
+
runtime.setPermissionMode(permMode);
|
|
1941
|
+
}
|
|
1942
|
+
sysMsg(`Permission mode set to: ${permMode}`);
|
|
1943
|
+
return true;
|
|
1944
|
+
}
|
|
1945
|
+
case "/healing": {
|
|
1946
|
+
if (!runtime) {
|
|
1947
|
+
sysMsg("Self-healing requires WotannRuntime.");
|
|
1948
|
+
return true;
|
|
1949
|
+
}
|
|
1950
|
+
const healingTarget = rest.trim();
|
|
1951
|
+
if (!healingTarget) {
|
|
1952
|
+
sysMsg([
|
|
1953
|
+
"╭─ Self-Healing Pipeline ───────────────────────────────────╮",
|
|
1954
|
+
"│ Graduated recovery strategies: │",
|
|
1955
|
+
"│ 1. prompt-fix → Revise prompt with error context│",
|
|
1956
|
+
"│ 2. code-rollback → Restore last working state │",
|
|
1957
|
+
"│ 3. strategy-change → Try different approach │",
|
|
1958
|
+
"│ 4. human-escalation → Generate detailed error report │",
|
|
1959
|
+
"├──────────────────────────────────────────────────────────┤",
|
|
1960
|
+
"│ Usage: /healing <error description or task> │",
|
|
1961
|
+
"│ The pipeline auto-classifies errors and selects the │",
|
|
1962
|
+
"│ optimal recovery strategy. │",
|
|
1963
|
+
"╰──────────────────────────────────────────────────────────╯",
|
|
1964
|
+
].join("\n"));
|
|
1965
|
+
return true;
|
|
1966
|
+
}
|
|
1967
|
+
const pipeline = runtime.getSelfHealingPipeline();
|
|
1968
|
+
const classifyFn = pipeline.classifyError ??
|
|
1969
|
+
((_) => ({
|
|
1970
|
+
category: "unknown",
|
|
1971
|
+
confidence: 0.5,
|
|
1972
|
+
relatedPatterns: [],
|
|
1973
|
+
}));
|
|
1974
|
+
const classified = classifyFn(healingTarget);
|
|
1975
|
+
sysMsg([
|
|
1976
|
+
`Self-Healing Analysis:`,
|
|
1977
|
+
` Error type: ${classified.category}`,
|
|
1978
|
+
` Confidence: ${(classified.confidence * 100).toFixed(0)}%`,
|
|
1979
|
+
classified.suggestedFix ? ` Suggested: ${classified.suggestedFix}` : "",
|
|
1980
|
+
classified.file
|
|
1981
|
+
? ` File: ${classified.file}${classified.line ? `:${classified.line}` : ""}`
|
|
1982
|
+
: "",
|
|
1983
|
+
` Patterns: ${classified.relatedPatterns.length > 0 ? classified.relatedPatterns.join(", ") : "none matched"}`,
|
|
1984
|
+
"",
|
|
1985
|
+
` Recovery strategy: ${classified.category === "type-error" || classified.category === "syntax-error" ? "prompt-fix" : classified.category === "test-failure" ? "code-rollback" : "strategy-change"}`,
|
|
1986
|
+
]
|
|
1987
|
+
.filter(Boolean)
|
|
1988
|
+
.join("\n"));
|
|
1989
|
+
return true;
|
|
1990
|
+
}
|
|
1991
|
+
case "/lsp": {
|
|
1992
|
+
const lspSub = rest.trim().split(/\s+/);
|
|
1993
|
+
const lspAction = lspSub[0] ?? "status";
|
|
1994
|
+
switch (lspAction) {
|
|
1995
|
+
case "status":
|
|
1996
|
+
sysMsg([
|
|
1997
|
+
"╭─ LSP Symbol Operations ───────────────────────────────────╮",
|
|
1998
|
+
"│ Supported languages: TypeScript, Python, Go, Rust, │",
|
|
1999
|
+
"│ Java, C# │",
|
|
2000
|
+
"├──────────────────────────────────────────────────────────┤",
|
|
2001
|
+
"│ Commands: │",
|
|
2002
|
+
"│ /lsp status Show LSP status │",
|
|
2003
|
+
"│ /lsp find <symbol> Find definition │",
|
|
2004
|
+
"│ /lsp references <symbol> Find all references │",
|
|
2005
|
+
"│ /lsp rename <old> <new> Rename symbol │",
|
|
2006
|
+
"│ /lsp hover <file:line> Get hover info │",
|
|
2007
|
+
"╰──────────────────────────────────────────────────────────╯",
|
|
2008
|
+
].join("\n"));
|
|
2009
|
+
break;
|
|
2010
|
+
case "find": {
|
|
2011
|
+
const sym = lspSub[1];
|
|
2012
|
+
if (!sym) {
|
|
2013
|
+
sysMsg("Usage: /lsp find <symbol>");
|
|
2014
|
+
break;
|
|
2015
|
+
}
|
|
2016
|
+
if (runtime) {
|
|
2017
|
+
void (async () => {
|
|
2018
|
+
const lsp = runtime.getLspManager();
|
|
2019
|
+
const results = await lsp.findSymbol(sym);
|
|
2020
|
+
appendSystemMessage(results.length > 0
|
|
2021
|
+
? `Found "${sym}" (${results.length} matches):\n${results
|
|
2022
|
+
.slice(0, 10)
|
|
2023
|
+
.map((r) => ` ${r.kind} ${r.name} — ${r.uri}:${r.range.start.line + 1}`)
|
|
2024
|
+
.join("\n")}`
|
|
2025
|
+
: `No definition found for "${sym}".`);
|
|
2026
|
+
})();
|
|
2027
|
+
}
|
|
2028
|
+
else {
|
|
2029
|
+
sysMsg(`Finding: ${sym}`);
|
|
2030
|
+
}
|
|
2031
|
+
break;
|
|
2032
|
+
}
|
|
2033
|
+
case "references": {
|
|
2034
|
+
const sym = lspSub[1];
|
|
2035
|
+
if (!sym) {
|
|
2036
|
+
sysMsg("Usage: /lsp references <symbol>");
|
|
2037
|
+
break;
|
|
2038
|
+
}
|
|
2039
|
+
if (runtime) {
|
|
2040
|
+
void (async () => {
|
|
2041
|
+
const lsp = runtime.getLspManager();
|
|
2042
|
+
const symbols = await lsp.findSymbol(sym);
|
|
2043
|
+
if (symbols.length === 0) {
|
|
2044
|
+
appendSystemMessage(`No symbol found: "${sym}"`);
|
|
2045
|
+
return;
|
|
2046
|
+
}
|
|
2047
|
+
const first = symbols[0];
|
|
2048
|
+
const refs = await lsp.findReferences(first.uri, first.range.start);
|
|
2049
|
+
appendSystemMessage(refs.length > 0
|
|
2050
|
+
? `${refs.length} references to "${sym}":\n${refs
|
|
2051
|
+
.slice(0, 15)
|
|
2052
|
+
.map((r) => ` ${r.uri}:${r.range.start.line + 1}`)
|
|
2053
|
+
.join("\n")}${refs.length > 15 ? `\n ... and ${refs.length - 15} more` : ""}`
|
|
2054
|
+
: `No references found for "${sym}".`);
|
|
2055
|
+
})();
|
|
2056
|
+
}
|
|
2057
|
+
else {
|
|
2058
|
+
sysMsg(`Finding: ${sym}`);
|
|
2059
|
+
}
|
|
2060
|
+
break;
|
|
2061
|
+
}
|
|
2062
|
+
case "rename": {
|
|
2063
|
+
const oldSym = lspSub[1];
|
|
2064
|
+
const newSymName = lspSub[2];
|
|
2065
|
+
if (!oldSym || !newSymName) {
|
|
2066
|
+
sysMsg("Usage: /lsp rename <old> <new>");
|
|
2067
|
+
break;
|
|
2068
|
+
}
|
|
2069
|
+
if (runtime) {
|
|
2070
|
+
void (async () => {
|
|
2071
|
+
const lsp = runtime.getLspManager();
|
|
2072
|
+
const symbols = await lsp.findSymbol(oldSym);
|
|
2073
|
+
if (symbols.length === 0) {
|
|
2074
|
+
appendSystemMessage(`No symbol found: "${oldSym}"`);
|
|
2075
|
+
return;
|
|
2076
|
+
}
|
|
2077
|
+
const first = symbols[0];
|
|
2078
|
+
const result = await lsp.rename(first.uri, first.range.start, newSymName);
|
|
2079
|
+
appendSystemMessage(`Renamed "${oldSym}" → "${newSymName}": ${result.filesAffected} files, ${result.editsApplied} edits`);
|
|
2080
|
+
})();
|
|
2081
|
+
}
|
|
2082
|
+
else {
|
|
2083
|
+
sysMsg(`Rename: ${oldSym} → ${newSymName}`);
|
|
2084
|
+
}
|
|
2085
|
+
break;
|
|
2086
|
+
}
|
|
2087
|
+
case "hover": {
|
|
2088
|
+
const target = lspSub.slice(1).join(" ");
|
|
2089
|
+
if (!target) {
|
|
2090
|
+
sysMsg("Usage: /lsp hover <file:line:col>");
|
|
2091
|
+
break;
|
|
2092
|
+
}
|
|
2093
|
+
if (runtime) {
|
|
2094
|
+
void (async () => {
|
|
2095
|
+
const { SymbolOperations } = await import("../lsp/symbol-operations.js");
|
|
2096
|
+
const ops = new SymbolOperations({ workspaceRoot: workingDir });
|
|
2097
|
+
const parts = target.split(":");
|
|
2098
|
+
const filePath = parts[0] ?? "";
|
|
2099
|
+
const line = parseInt(parts[1] ?? "0", 10);
|
|
2100
|
+
const col = parseInt(parts[2] ?? "0", 10);
|
|
2101
|
+
const info = await ops.getTypeInfo(filePath, { line, character: col });
|
|
2102
|
+
appendSystemMessage(info.length > 0
|
|
2103
|
+
? `Hover info for ${target}:\n${info}`
|
|
2104
|
+
: `No type information found for ${target}.`);
|
|
2105
|
+
})();
|
|
2106
|
+
}
|
|
2107
|
+
else {
|
|
2108
|
+
sysMsg(`Getting hover info for: ${target}`);
|
|
2109
|
+
}
|
|
2110
|
+
break;
|
|
2111
|
+
}
|
|
2112
|
+
default:
|
|
2113
|
+
sysMsg("Usage: /lsp [status|find|references|rename|hover] [args]");
|
|
2114
|
+
}
|
|
2115
|
+
return true;
|
|
2116
|
+
}
|
|
2117
|
+
case "/dream": {
|
|
2118
|
+
sysMsg([
|
|
2119
|
+
"╭─ Dream Cycle — Automated Learning Extraction ────────────╮",
|
|
2120
|
+
"│ Running nightly dream cycle... │",
|
|
2121
|
+
"│ │",
|
|
2122
|
+
"│ 1. Scanning session observations │",
|
|
2123
|
+
"│ 2. Extracting reusable patterns │",
|
|
2124
|
+
"│ 3. Promoting verified learnings │",
|
|
2125
|
+
"│ 4. Archiving stale entries │",
|
|
2126
|
+
"╰──────────────────────────────────────────────────────────╯",
|
|
2127
|
+
].join("\n"));
|
|
2128
|
+
try {
|
|
2129
|
+
if (runtime) {
|
|
2130
|
+
const learner = runtime.getCrossSessionLearner?.();
|
|
2131
|
+
if (learner) {
|
|
2132
|
+
const patterns = learner.extractLearnings("success");
|
|
2133
|
+
const summary = patterns.length > 0
|
|
2134
|
+
? patterns.map((p) => ` ✓ ${p.type}: ${p.content}`).join("\n")
|
|
2135
|
+
: " No new patterns extracted this session.";
|
|
2136
|
+
sysMsg(`Dream cycle complete:\n${summary}`);
|
|
2137
|
+
}
|
|
2138
|
+
else {
|
|
2139
|
+
sysMsg("Cross-session learner not available.");
|
|
2140
|
+
}
|
|
2141
|
+
}
|
|
2142
|
+
}
|
|
2143
|
+
catch (err) {
|
|
2144
|
+
console.warn(`[WOTANN] dream cycle extraction failed: ${err.message}`);
|
|
2145
|
+
sysMsg("Dream cycle complete (no learnings to extract yet).");
|
|
2146
|
+
}
|
|
2147
|
+
return true;
|
|
2148
|
+
}
|
|
2149
|
+
case "/gdpr": {
|
|
2150
|
+
// Wave 4 — open the GDPR export/delete overlay (mirrors gdpr.* RPC).
|
|
2151
|
+
setShowGdprPanel(true);
|
|
2152
|
+
return true;
|
|
2153
|
+
}
|
|
2154
|
+
case "/automations": {
|
|
2155
|
+
// Wave 4 — open the automations CRUD overlay (mirrors automations.* RPC).
|
|
2156
|
+
setShowAutomationsPanel(true);
|
|
2157
|
+
return true;
|
|
2158
|
+
}
|
|
2159
|
+
case "/audit": {
|
|
2160
|
+
// Wave 4 — `/audit` (no args) opens the new overlay against the
|
|
2161
|
+
// daemon's ~/.wotann/audit.db. `/audit workspace` keeps the legacy
|
|
2162
|
+
// text printout against the workspace .wotann/audit.db so existing
|
|
2163
|
+
// callers (and CLI parity tests) don't break.
|
|
2164
|
+
if (rest.trim() !== "workspace") {
|
|
2165
|
+
setShowAuditPanel(true);
|
|
2166
|
+
return true;
|
|
2167
|
+
}
|
|
2168
|
+
void (async () => {
|
|
2169
|
+
const { queryWorkspaceAudit } = await import("../cli/audit.js");
|
|
2170
|
+
const result = queryWorkspaceAudit(workingDir, { limit: 10 });
|
|
2171
|
+
if (!result) {
|
|
2172
|
+
appendSystemMessage([
|
|
2173
|
+
"╭─ WOTANN Audit Trail ──────────────────────────────────────╮",
|
|
2174
|
+
"│ No audit trail found. │",
|
|
2175
|
+
"│ The audit database (.wotann/audit.db) does not exist. │",
|
|
2176
|
+
"│ Audit entries are recorded during runtime queries. │",
|
|
2177
|
+
"╰──────────────────────────────────────────────────────────╯",
|
|
2178
|
+
].join("\n"));
|
|
2179
|
+
return;
|
|
2180
|
+
}
|
|
2181
|
+
const entryLines = result.entries.map((e) => {
|
|
2182
|
+
const time = e.timestamp.slice(11, 19);
|
|
2183
|
+
const tool = e.tool.padEnd(12);
|
|
2184
|
+
const risk = e.riskLevel.padEnd(8);
|
|
2185
|
+
return `│ ${time} ${tool} ${risk} ${(e.input ?? "").slice(0, 20)}`;
|
|
2186
|
+
});
|
|
2187
|
+
appendSystemMessage([
|
|
2188
|
+
"╭─ WOTANN Audit Trail ──────────────────────────────────────╮",
|
|
2189
|
+
`│ Database: ${result.dbPath.slice(-40).padEnd(43)}│`,
|
|
2190
|
+
`│ Total: ${String(result.totalEntries).padEnd(43)}│`,
|
|
2191
|
+
`│ Session: ${(runtime?.getSession()?.id?.slice(0, 8) ?? "unknown").padEnd(43)}│`,
|
|
2192
|
+
"├──────────────────────────────────────────────────────────┤",
|
|
2193
|
+
...entryLines,
|
|
2194
|
+
entryLines.length === 0 ? "│ (no entries)" : "",
|
|
2195
|
+
"╰──────────────────────────────────────────────────────────╯",
|
|
2196
|
+
]
|
|
2197
|
+
.filter(Boolean)
|
|
2198
|
+
.join("\n"));
|
|
2199
|
+
})();
|
|
2200
|
+
return true;
|
|
2201
|
+
}
|
|
2202
|
+
case "/merge": {
|
|
2203
|
+
const branchManager = runtime?.getBranchManager?.();
|
|
2204
|
+
if (!branchManager) {
|
|
2205
|
+
sysMsg("Conversation branching not available.");
|
|
2206
|
+
return true;
|
|
2207
|
+
}
|
|
2208
|
+
const mergeTarget = rest.trim();
|
|
2209
|
+
if (!mergeTarget) {
|
|
2210
|
+
sysMsg([
|
|
2211
|
+
"╭─ Merge Conversation Branch ────────────────────────────╮",
|
|
2212
|
+
"│ Usage: /merge <branch-name> │",
|
|
2213
|
+
"│ │",
|
|
2214
|
+
"│ Merges messages from the specified branch into the │",
|
|
2215
|
+
"│ current conversation. Use /branch list to see │",
|
|
2216
|
+
"│ available branches. │",
|
|
2217
|
+
"╰────────────────────────────────────────────────────────╯",
|
|
2218
|
+
].join("\n"));
|
|
2219
|
+
}
|
|
2220
|
+
else {
|
|
2221
|
+
try {
|
|
2222
|
+
const result = branchManager.merge(mergeTarget);
|
|
2223
|
+
sysMsg(result
|
|
2224
|
+
? `✓ Merged branch "${mergeTarget}" into current conversation.`
|
|
2225
|
+
: `✗ Branch "${mergeTarget}" not found. Use /branch list to see branches.`);
|
|
2226
|
+
}
|
|
2227
|
+
catch (e) {
|
|
2228
|
+
sysMsg(`Merge failed: ${e instanceof Error ? e.message : "unknown error"}`);
|
|
2229
|
+
}
|
|
2230
|
+
}
|
|
2231
|
+
return true;
|
|
2232
|
+
}
|
|
2233
|
+
case "/inbox": {
|
|
2234
|
+
if (!runtime) {
|
|
2235
|
+
sysMsg("Dispatch inbox requires WotannRuntime.");
|
|
2236
|
+
return true;
|
|
2237
|
+
}
|
|
2238
|
+
const dispatch = runtime.getDispatchPlane();
|
|
2239
|
+
const allTasks = dispatch.getInbox();
|
|
2240
|
+
const pending = allTasks.filter((t) => t.status === "pending").length;
|
|
2241
|
+
const processing = allTasks.filter((t) => t.status === "processing").length;
|
|
2242
|
+
const completed = allTasks.filter((t) => t.status === "completed").length;
|
|
2243
|
+
const failed = allTasks.filter((t) => t.status === "failed").length;
|
|
2244
|
+
const priorityIcon = (p) => p === "critical" ? "!!" : p === "high" ? "! " : p === "normal" ? "- " : " ";
|
|
2245
|
+
const statusIcon = (s) => s === "pending"
|
|
2246
|
+
? "○"
|
|
2247
|
+
: s === "processing"
|
|
2248
|
+
? "◐"
|
|
2249
|
+
: s === "completed"
|
|
2250
|
+
? "●"
|
|
2251
|
+
: s === "failed"
|
|
2252
|
+
? "✗"
|
|
2253
|
+
: "◌";
|
|
2254
|
+
const taskLines = allTasks
|
|
2255
|
+
.slice(0, 15)
|
|
2256
|
+
.map((t) => `│ ${statusIcon(t.status)} ${priorityIcon(t.priority)}[${t.message.channelType}] ${t.message.content.slice(0, 40).padEnd(40)}${t.message.content.length > 40 ? "..." : " "}`);
|
|
2257
|
+
sysMsg([
|
|
2258
|
+
"╭─ Dispatch Inbox ──────────────────────────────────────────╮",
|
|
2259
|
+
`│ Tasks: ${allTasks.length} (○ ${pending} pending ◐ ${processing} processing ● ${completed} done ✗ ${failed} failed)`,
|
|
2260
|
+
"├──────────────────────────────────────────────────────────┤",
|
|
2261
|
+
...(taskLines.length > 0
|
|
2262
|
+
? taskLines
|
|
2263
|
+
: ["│ (empty — no tasks in inbox) "]),
|
|
2264
|
+
allTasks.length > 15
|
|
2265
|
+
? `│ ... and ${allTasks.length - 15} more tasks `
|
|
2266
|
+
: "",
|
|
2267
|
+
"╰──────────────────────────────────────────────────────────╯",
|
|
2268
|
+
]
|
|
2269
|
+
.filter(Boolean)
|
|
2270
|
+
.join("\n"));
|
|
2271
|
+
return true;
|
|
2272
|
+
}
|
|
2273
|
+
case "/channels": {
|
|
2274
|
+
if (!runtime) {
|
|
2275
|
+
sysMsg("Channel health requires WotannRuntime.");
|
|
2276
|
+
return true;
|
|
2277
|
+
}
|
|
2278
|
+
const dispatchHealth = runtime.getDispatchPlane();
|
|
2279
|
+
const healthData = dispatchHealth.getChannelHealth();
|
|
2280
|
+
const connectedCount = healthData.filter((h) => h.connected).length;
|
|
2281
|
+
const channelLines = healthData.map((h) => {
|
|
2282
|
+
const icon = h.connected ? "●" : "○";
|
|
2283
|
+
const uptime = h.upSince > 0 ? `${((Date.now() - h.upSince) / 60000).toFixed(0)}m` : "—";
|
|
2284
|
+
const latency = h.latencyMs > 0 ? `${h.latencyMs}ms` : "—";
|
|
2285
|
+
return `│ ${icon} ${h.channelType.padEnd(12)} recv: ${String(h.messagesReceived).padStart(4)} sent: ${String(h.messagesSent).padStart(4)} err: ${String(h.errors).padStart(3)} lat: ${latency.padStart(6)} up: ${uptime.padStart(5)}`;
|
|
2286
|
+
});
|
|
2287
|
+
sysMsg([
|
|
2288
|
+
"╭─ Channel Health Dashboard ────────────────────────────────╮",
|
|
2289
|
+
`│ Channels: ${connectedCount}/${healthData.length} connected `,
|
|
2290
|
+
"├──────────────────────────────────────────────────────────┤",
|
|
2291
|
+
...(channelLines.length > 0
|
|
2292
|
+
? channelLines
|
|
2293
|
+
: ["│ (no channels registered) "]),
|
|
2294
|
+
"╰──────────────────────────────────────────────────────────╯",
|
|
2295
|
+
].join("\n"));
|
|
2296
|
+
return true;
|
|
2297
|
+
}
|
|
2298
|
+
case "/dispatch": {
|
|
2299
|
+
if (!runtime) {
|
|
2300
|
+
sysMsg("Dispatch management requires WotannRuntime.");
|
|
2301
|
+
return true;
|
|
2302
|
+
}
|
|
2303
|
+
const dispatchMgr = runtime.getDispatchPlane();
|
|
2304
|
+
const dispatchSub = (parts[1] ?? "").toLowerCase();
|
|
2305
|
+
const dispatchArg = parts.slice(2).join(" ");
|
|
2306
|
+
if (dispatchSub === "status") {
|
|
2307
|
+
const dispatchStats = dispatchMgr.getStats();
|
|
2308
|
+
sysMsg([
|
|
2309
|
+
"╭─ Dispatch Status ────────────────────────────────────────╮",
|
|
2310
|
+
`│ Total tasks: ${String(dispatchStats.totalTasks).padStart(6)} `,
|
|
2311
|
+
`│ Pending: ${String(dispatchStats.pendingTasks).padStart(6)} `,
|
|
2312
|
+
`│ Completed: ${String(dispatchStats.completedTasks).padStart(6)} `,
|
|
2313
|
+
`│ Failed: ${String(dispatchStats.failedTasks).padStart(6)} `,
|
|
2314
|
+
"├──────────────────────────────────────────────────────────┤",
|
|
2315
|
+
`│ Connected channels: ${String(dispatchStats.connectedChannels).padStart(5)} `,
|
|
2316
|
+
`│ Verified senders: ${String(dispatchStats.verifiedSenders).padStart(5)} `,
|
|
2317
|
+
`│ Registered devices: ${String(dispatchStats.registeredDevices).padStart(5)} `,
|
|
2318
|
+
`│ Policies loaded: ${String(dispatchStats.policiesLoaded).padStart(5)} `,
|
|
2319
|
+
"╰──────────────────────────────────────────────────────────╯",
|
|
2320
|
+
].join("\n"));
|
|
2321
|
+
}
|
|
2322
|
+
else if (dispatchSub === "pair" && dispatchArg) {
|
|
2323
|
+
const verified = dispatchMgr.verifyPairingCode(dispatchArg.trim());
|
|
2324
|
+
sysMsg(verified
|
|
2325
|
+
? `Pairing code verified. Sender is now trusted.`
|
|
2326
|
+
: `Invalid or expired pairing code: ${dispatchArg.trim()}`);
|
|
2327
|
+
}
|
|
2328
|
+
else if (dispatchSub === "verify" && dispatchArg) {
|
|
2329
|
+
dispatchMgr.verifySender(dispatchArg.trim());
|
|
2330
|
+
sysMsg(`Sender verified: ${dispatchArg.trim()}`);
|
|
2331
|
+
}
|
|
2332
|
+
else if (dispatchSub === "broadcast" && dispatchArg) {
|
|
2333
|
+
void (async () => {
|
|
2334
|
+
const sent = await dispatchMgr.broadcast(dispatchArg);
|
|
2335
|
+
sysMsg(sent.length > 0
|
|
2336
|
+
? `Broadcast sent to ${sent.length} channel(s): ${sent.join(", ")}`
|
|
2337
|
+
: "No connected channels to broadcast to.");
|
|
2338
|
+
})();
|
|
2339
|
+
}
|
|
2340
|
+
else {
|
|
2341
|
+
sysMsg([
|
|
2342
|
+
"╭─ Dispatch Management ─────────────────────────────────────╮",
|
|
2343
|
+
"│ Commands: │",
|
|
2344
|
+
"│ /dispatch status Overall dispatch stats │",
|
|
2345
|
+
"│ /dispatch pair <code> Verify a pairing code │",
|
|
2346
|
+
"│ /dispatch verify <senderId> Trust a sender │",
|
|
2347
|
+
"│ /dispatch broadcast <message> Send to all channels │",
|
|
2348
|
+
"╰──────────────────────────────────────────────────────────╯",
|
|
2349
|
+
].join("\n"));
|
|
2350
|
+
}
|
|
2351
|
+
return true;
|
|
2352
|
+
}
|
|
2353
|
+
case "/deeplink": {
|
|
2354
|
+
const link = parseDeepLink(arg);
|
|
2355
|
+
if (!link) {
|
|
2356
|
+
sysMsg("Invalid deep link. Format: wotann://action?params");
|
|
2357
|
+
return true;
|
|
2358
|
+
}
|
|
2359
|
+
const ctx = {
|
|
2360
|
+
workingDir,
|
|
2361
|
+
setMode: (mode) => {
|
|
2362
|
+
if (runtime)
|
|
2363
|
+
runtime.setMode(mode);
|
|
2364
|
+
setCurrentMode(mode);
|
|
2365
|
+
},
|
|
2366
|
+
setTheme: (theme) => themeManagerRef.current.setTheme(theme),
|
|
2367
|
+
verifyPairingCode: (code) => runtime?.getDispatchPlane()?.verifyPairingCode(code) ?? false,
|
|
2368
|
+
};
|
|
2369
|
+
const result = executeDeepLink(link, ctx);
|
|
2370
|
+
sysMsg(result.success ? `✓ ${result.message}` : `✗ ${result.message}`);
|
|
2371
|
+
return true;
|
|
2372
|
+
}
|
|
2373
|
+
case "/roe": {
|
|
2374
|
+
if (!runtime) {
|
|
2375
|
+
sysMsg("Rules of Engagement requires WotannRuntime.");
|
|
2376
|
+
return true;
|
|
2377
|
+
}
|
|
2378
|
+
const roe = runtime.getRulesOfEngagement();
|
|
2379
|
+
const roeSub = (parts[1] ?? "").toLowerCase();
|
|
2380
|
+
const roeArg = parts.slice(2).join(" ").trim();
|
|
2381
|
+
if (roeSub === "start") {
|
|
2382
|
+
const validTypes = [
|
|
2383
|
+
"security-research",
|
|
2384
|
+
"ethical-hacking",
|
|
2385
|
+
"ctf",
|
|
2386
|
+
"pentest",
|
|
2387
|
+
];
|
|
2388
|
+
const sessionType = (roeArg || "security-research");
|
|
2389
|
+
if (!validTypes.includes(sessionType)) {
|
|
2390
|
+
sysMsg(`Invalid session type: ${roeArg}\nValid: ${validTypes.join(", ")}`);
|
|
2391
|
+
return true;
|
|
2392
|
+
}
|
|
2393
|
+
const session = roe.startSession(sessionType, {
|
|
2394
|
+
domains: [],
|
|
2395
|
+
ipRanges: [],
|
|
2396
|
+
pathPatterns: [],
|
|
2397
|
+
excludedTargets: [],
|
|
2398
|
+
});
|
|
2399
|
+
runtime.setActiveROESessionId(session.id);
|
|
2400
|
+
const terms = roe.getTerms();
|
|
2401
|
+
sysMsg([
|
|
2402
|
+
`ROE session started: ${session.id.slice(0, 8)}... (${sessionType})`,
|
|
2403
|
+
"",
|
|
2404
|
+
terms.text,
|
|
2405
|
+
"",
|
|
2406
|
+
"Run /roe accept to accept these terms and enable action recording.",
|
|
2407
|
+
].join("\n"));
|
|
2408
|
+
}
|
|
2409
|
+
else if (roeSub === "accept") {
|
|
2410
|
+
const activeId = runtime.getActiveROESessionId();
|
|
2411
|
+
if (!activeId) {
|
|
2412
|
+
sysMsg("No active ROE session. Start one with: /roe start <type>");
|
|
2413
|
+
return true;
|
|
2414
|
+
}
|
|
2415
|
+
const accepted = roe.acceptTerms(activeId);
|
|
2416
|
+
sysMsg(accepted
|
|
2417
|
+
? `Terms accepted for session ${activeId.slice(0, 8)}... — actions will now be recorded in the audit trail.`
|
|
2418
|
+
: "Failed to accept terms. Session may have expired.");
|
|
2419
|
+
}
|
|
2420
|
+
else if (roeSub === "status") {
|
|
2421
|
+
const activeId = runtime.getActiveROESessionId();
|
|
2422
|
+
if (!activeId) {
|
|
2423
|
+
sysMsg("No active ROE session. Start one with: /roe start <type>");
|
|
2424
|
+
return true;
|
|
2425
|
+
}
|
|
2426
|
+
const session = roe.getSession(activeId);
|
|
2427
|
+
if (!session) {
|
|
2428
|
+
sysMsg("ROE session not found.");
|
|
2429
|
+
return true;
|
|
2430
|
+
}
|
|
2431
|
+
const expired = roe.isSessionExpired(activeId);
|
|
2432
|
+
const termsAccepted = roe.hasAcceptedTerms(activeId);
|
|
2433
|
+
const integrity = roe.verifyAuditIntegrity(activeId);
|
|
2434
|
+
sysMsg([
|
|
2435
|
+
"╭─ ROE Session Status ──────────────────────────────────────╮",
|
|
2436
|
+
`│ Session: ${session.id.slice(0, 8)}...`,
|
|
2437
|
+
`│ Type: ${session.sessionType}`,
|
|
2438
|
+
`│ Created: ${new Date(session.createdAt).toISOString()}`,
|
|
2439
|
+
`│ Expires: ${new Date(session.expiresAt).toISOString()}`,
|
|
2440
|
+
`│ Expired: ${expired ? "YES" : "no"}`,
|
|
2441
|
+
`│ Terms: ${termsAccepted ? "ACCEPTED" : "pending"}`,
|
|
2442
|
+
`│ Audit entries: ${session.auditEntries.length}`,
|
|
2443
|
+
`│ Integrity: ${integrity ? "VALID" : "BROKEN"}`,
|
|
2444
|
+
"╰──────────────────────────────────────────────────────────╯",
|
|
2445
|
+
].join("\n"));
|
|
2446
|
+
}
|
|
2447
|
+
else if (roeSub === "scope") {
|
|
2448
|
+
const activeId = runtime.getActiveROESessionId();
|
|
2449
|
+
if (!activeId) {
|
|
2450
|
+
sysMsg("No active ROE session. Start one with: /roe start <type>");
|
|
2451
|
+
return true;
|
|
2452
|
+
}
|
|
2453
|
+
const session = roe.getSession(activeId);
|
|
2454
|
+
if (!session) {
|
|
2455
|
+
sysMsg("ROE session not found.");
|
|
2456
|
+
return true;
|
|
2457
|
+
}
|
|
2458
|
+
const { scope } = session;
|
|
2459
|
+
const isEmpty = scope.domains.length === 0 &&
|
|
2460
|
+
scope.ipRanges.length === 0 &&
|
|
2461
|
+
scope.pathPatterns.length === 0 &&
|
|
2462
|
+
scope.excludedTargets.length === 0;
|
|
2463
|
+
sysMsg([
|
|
2464
|
+
"╭─ ROE Scope Restrictions ────────────────────────────────╮",
|
|
2465
|
+
`│ Domains: ${scope.domains.length > 0 ? scope.domains.join(", ") : "(none — open scope)"}`,
|
|
2466
|
+
`│ IP Ranges: ${scope.ipRanges.length > 0 ? scope.ipRanges.join(", ") : "(none)"}`,
|
|
2467
|
+
`│ Paths: ${scope.pathPatterns.length > 0 ? scope.pathPatterns.join(", ") : "(none)"}`,
|
|
2468
|
+
`│ Excluded: ${scope.excludedTargets.length > 0 ? scope.excludedTargets.join(", ") : "(none)"}`,
|
|
2469
|
+
isEmpty ? "│ Scope is open (no restrictions defined)." : "",
|
|
2470
|
+
"╰────────────────────────────────────────────────────────╯",
|
|
2471
|
+
]
|
|
2472
|
+
.filter(Boolean)
|
|
2473
|
+
.join("\n"));
|
|
2474
|
+
}
|
|
2475
|
+
else if (roeSub === "audit") {
|
|
2476
|
+
const activeId = runtime.getActiveROESessionId();
|
|
2477
|
+
if (!activeId) {
|
|
2478
|
+
sysMsg("No active ROE session. Start one with: /roe start <type>");
|
|
2479
|
+
return true;
|
|
2480
|
+
}
|
|
2481
|
+
const trail = roe.getAuditTrail(activeId);
|
|
2482
|
+
if (trail.length === 0) {
|
|
2483
|
+
sysMsg("Audit trail is empty. No actions recorded yet.");
|
|
2484
|
+
return true;
|
|
2485
|
+
}
|
|
2486
|
+
const lines = trail
|
|
2487
|
+
.slice(-15)
|
|
2488
|
+
.map((entry) => ` ${new Date(entry.timestamp).toISOString().slice(11, 19)} ${entry.action.padEnd(20)} ${entry.target.slice(0, 30)}`);
|
|
2489
|
+
const integrity = roe.verifyAuditIntegrity(activeId);
|
|
2490
|
+
sysMsg([
|
|
2491
|
+
`ROE Audit Trail (${trail.length} entries, integrity: ${integrity ? "VALID" : "BROKEN"})`,
|
|
2492
|
+
"",
|
|
2493
|
+
...lines,
|
|
2494
|
+
trail.length > 15 ? ` ... and ${trail.length - 15} earlier entries` : "",
|
|
2495
|
+
]
|
|
2496
|
+
.filter(Boolean)
|
|
2497
|
+
.join("\n"));
|
|
2498
|
+
}
|
|
2499
|
+
else if (roeSub === "export") {
|
|
2500
|
+
const activeId = runtime.getActiveROESessionId();
|
|
2501
|
+
if (!activeId) {
|
|
2502
|
+
sysMsg("No active ROE session. Start one with: /roe start <type>");
|
|
2503
|
+
return true;
|
|
2504
|
+
}
|
|
2505
|
+
const report = roe.exportAuditReport(activeId);
|
|
2506
|
+
sysMsg(`ROE Audit Report (JSON):\n\n${report}`);
|
|
2507
|
+
}
|
|
2508
|
+
else {
|
|
2509
|
+
sysMsg([
|
|
2510
|
+
"╭─ Rules of Engagement ─────────────────────────────────────╮",
|
|
2511
|
+
"│ Security research session management with audit trails. │",
|
|
2512
|
+
"├──────────────────────────────────────────────────────────┤",
|
|
2513
|
+
"│ /roe start <type> Start session (security-research, │",
|
|
2514
|
+
"│ ethical-hacking, ctf, pentest) │",
|
|
2515
|
+
"│ /roe accept Accept terms for active session │",
|
|
2516
|
+
"│ /roe status Show current session status │",
|
|
2517
|
+
"│ /roe scope Show scope restrictions │",
|
|
2518
|
+
"│ /roe audit Show audit trail │",
|
|
2519
|
+
"│ /roe export Export audit report as JSON │",
|
|
2520
|
+
"╰──────────────────────────────────────────────────────────╯",
|
|
2521
|
+
].join("\n"));
|
|
2522
|
+
}
|
|
2523
|
+
return true;
|
|
2524
|
+
}
|
|
2525
|
+
case "/enhance": {
|
|
2526
|
+
const textToEnhance = rest.trim() || promptValue;
|
|
2527
|
+
if (!textToEnhance) {
|
|
2528
|
+
sysMsg("Type a prompt first, then use /enhance to improve it.\nUsage: /enhance [text] — enhances the given text or current prompt input.");
|
|
2529
|
+
return true;
|
|
2530
|
+
}
|
|
2531
|
+
if (!runtime) {
|
|
2532
|
+
sysMsg("Prompt enhancer requires WotannRuntime.");
|
|
2533
|
+
return true;
|
|
2534
|
+
}
|
|
2535
|
+
sysMsg(`✨ Enhancing prompt...`);
|
|
2536
|
+
void (async () => {
|
|
2537
|
+
try {
|
|
2538
|
+
const enhanced = await runtime.enhancePrompt(textToEnhance);
|
|
2539
|
+
setPromptValue(enhanced.enhancedPrompt);
|
|
2540
|
+
appendSystemMessage([
|
|
2541
|
+
`✨ Prompt Enhanced!`,
|
|
2542
|
+
"",
|
|
2543
|
+
`Original: ${textToEnhance.slice(0, 100)}${textToEnhance.length > 100 ? "..." : ""}`,
|
|
2544
|
+
`Enhanced: ${enhanced.enhancedPrompt.slice(0, 200)}${enhanced.enhancedPrompt.length > 200 ? "..." : ""}`,
|
|
2545
|
+
"",
|
|
2546
|
+
`Model used: ${enhanced.model}`,
|
|
2547
|
+
].join("\n"));
|
|
2548
|
+
}
|
|
2549
|
+
catch (e) {
|
|
2550
|
+
appendSystemMessage(`Enhance failed: ${e instanceof Error ? e.message : "unknown"}`);
|
|
2551
|
+
}
|
|
2552
|
+
})();
|
|
2553
|
+
return true;
|
|
2554
|
+
}
|
|
2555
|
+
case "/research": {
|
|
2556
|
+
const topic = rest.trim();
|
|
2557
|
+
if (!topic) {
|
|
2558
|
+
sysMsg("Usage: /research <topic>\nAutonomous multi-step research: search → analyze → synthesize → report");
|
|
2559
|
+
return true;
|
|
2560
|
+
}
|
|
2561
|
+
if (!runtime) {
|
|
2562
|
+
sysMsg("Research requires WotannRuntime.");
|
|
2563
|
+
return true;
|
|
2564
|
+
}
|
|
2565
|
+
sysMsg(`🔬 Starting deep research on: "${topic.slice(0, 80)}"\nThis will search, analyze, and synthesize findings.`);
|
|
2566
|
+
void (async () => {
|
|
2567
|
+
try {
|
|
2568
|
+
const researchPrompt = [
|
|
2569
|
+
`Conduct thorough research on the following topic: "${topic}"`,
|
|
2570
|
+
"",
|
|
2571
|
+
"Follow this research protocol:",
|
|
2572
|
+
"1. Search for key information, recent developments, and authoritative sources",
|
|
2573
|
+
"2. Analyze findings for accuracy, relevance, and consensus",
|
|
2574
|
+
"3. Synthesize a comprehensive report with cited sources",
|
|
2575
|
+
"4. Include practical recommendations where applicable",
|
|
2576
|
+
"",
|
|
2577
|
+
"Format the report with clear sections and bullet points.",
|
|
2578
|
+
].join("\n");
|
|
2579
|
+
const result = await runtime.enhancePrompt(researchPrompt);
|
|
2580
|
+
appendSystemMessage([
|
|
2581
|
+
`🔬 Research Complete: "${topic.slice(0, 60)}"`,
|
|
2582
|
+
"",
|
|
2583
|
+
result.enhancedPrompt,
|
|
2584
|
+
"",
|
|
2585
|
+
`Model: ${result.model}`,
|
|
2586
|
+
].join("\n"));
|
|
2587
|
+
}
|
|
2588
|
+
catch (e) {
|
|
2589
|
+
appendSystemMessage(`Research failed: ${e instanceof Error ? e.message : "unknown"}`);
|
|
2590
|
+
}
|
|
2591
|
+
})();
|
|
2592
|
+
return true;
|
|
2593
|
+
}
|
|
2594
|
+
case "/train": {
|
|
2595
|
+
const trainSub = rest.trim().split(/\s+/);
|
|
2596
|
+
const trainAction = trainSub[0] ?? "status";
|
|
2597
|
+
switch (trainAction) {
|
|
2598
|
+
case "status":
|
|
2599
|
+
sysMsg([
|
|
2600
|
+
"╭─ Training Pipeline ───────────────────────────────────────╮",
|
|
2601
|
+
"│ Sessions available: scanning... │",
|
|
2602
|
+
"│ Training pairs: 0 │",
|
|
2603
|
+
"│ Status: idle │",
|
|
2604
|
+
"├──────────────────────────────────────────────────────────┤",
|
|
2605
|
+
"│ Commands: │",
|
|
2606
|
+
"│ /train status Show pipeline status │",
|
|
2607
|
+
"│ /train extract Extract training data from sessions │",
|
|
2608
|
+
"│ /train start Start fine-tuning pipeline (LoRA) │",
|
|
2609
|
+
"│ /train deploy Deploy fine-tuned model to Ollama │",
|
|
2610
|
+
"╰──────────────────────────────────────────────────────────╯",
|
|
2611
|
+
].join("\n"));
|
|
2612
|
+
break;
|
|
2613
|
+
case "extract":
|
|
2614
|
+
sysMsg("Extracting training data from session recordings...\n Format: alpaca (instruction, input, output)\n Source: .wotann/sessions/");
|
|
2615
|
+
break;
|
|
2616
|
+
case "start":
|
|
2617
|
+
sysMsg("Starting fine-tuning pipeline...\n Method: LoRA (Low-Rank Adaptation)\n Format: alpaca\n Base model: auto-detected from /providers");
|
|
2618
|
+
break;
|
|
2619
|
+
case "deploy":
|
|
2620
|
+
sysMsg("Deploying fine-tuned model to Ollama...\n This creates a Modelfile and registers the adapter.");
|
|
2621
|
+
break;
|
|
2622
|
+
default:
|
|
2623
|
+
sysMsg("Usage: /train [status|extract|start|deploy]");
|
|
2624
|
+
}
|
|
2625
|
+
return true;
|
|
2626
|
+
}
|
|
2627
|
+
case "/waves": {
|
|
2628
|
+
const wavesTask = rest.trim();
|
|
2629
|
+
if (!wavesTask) {
|
|
2630
|
+
sysMsg([
|
|
2631
|
+
"╭─ Wave Execution ────────────────────────────────────────╮",
|
|
2632
|
+
"│ Groups tasks by dependency into parallel waves. │",
|
|
2633
|
+
"│ │",
|
|
2634
|
+
"│ Usage: /waves <task description> │",
|
|
2635
|
+
"│ │",
|
|
2636
|
+
"│ How it works: │",
|
|
2637
|
+
"│ 1. Decompose task into subtasks │",
|
|
2638
|
+
"│ 2. Build dependency graph │",
|
|
2639
|
+
"│ 3. Group independent tasks into waves │",
|
|
2640
|
+
"│ 4. Execute waves in parallel, wait at boundaries │",
|
|
2641
|
+
"│ │",
|
|
2642
|
+
"│ Independent tasks run simultaneously; dependent tasks │",
|
|
2643
|
+
"│ wait for their prerequisites to complete. │",
|
|
2644
|
+
"╰──────────────────────────────────────────────────────────╯",
|
|
2645
|
+
].join("\n"));
|
|
2646
|
+
return true;
|
|
2647
|
+
}
|
|
2648
|
+
sysMsg(`🌊 Wave execution: "${wavesTask.slice(0, 80)}"\n Decomposing into parallel waves...\n Independent subtasks will run simultaneously.`);
|
|
2649
|
+
return true;
|
|
2650
|
+
}
|
|
2651
|
+
case "/search": {
|
|
2652
|
+
const searchQuery = rest.trim();
|
|
2653
|
+
if (!searchQuery) {
|
|
2654
|
+
sysMsg("Usage: /search <query>\nSearches: memory (FTS5 + semantic), knowledge graph, context tree, skills");
|
|
2655
|
+
return true;
|
|
2656
|
+
}
|
|
2657
|
+
if (!runtime) {
|
|
2658
|
+
sysMsg("Search requires WotannRuntime.");
|
|
2659
|
+
return true;
|
|
2660
|
+
}
|
|
2661
|
+
const searchResults = runtime.searchMemory(searchQuery);
|
|
2662
|
+
if (searchResults.length === 0) {
|
|
2663
|
+
sysMsg(`No results for "${searchQuery}". Memory accumulates over sessions.`);
|
|
2664
|
+
}
|
|
2665
|
+
else {
|
|
2666
|
+
const resultLines = searchResults
|
|
2667
|
+
.slice(0, 10)
|
|
2668
|
+
.map((r, i) => ` ${i + 1}. [${r.type}] score: ${r.score.toFixed(3)}${r.text ? `\n ${r.text.slice(0, 100)}${r.text.length > 100 ? "..." : ""}` : `\n id: ${r.id}`}`);
|
|
2669
|
+
sysMsg([
|
|
2670
|
+
`Search results for "${searchQuery}" (${searchResults.length} found):`,
|
|
2671
|
+
"",
|
|
2672
|
+
...resultLines,
|
|
2673
|
+
].join("\n"));
|
|
2674
|
+
}
|
|
2675
|
+
return true;
|
|
2676
|
+
}
|
|
2677
|
+
case "/health": {
|
|
2678
|
+
sysMsg("Analyzing codebase health...");
|
|
2679
|
+
void (async () => {
|
|
2680
|
+
try {
|
|
2681
|
+
const { analyzeCodebaseHealth } = await import("../intelligence/codebase-health.js");
|
|
2682
|
+
const report = analyzeCodebaseHealth(workingDir);
|
|
2683
|
+
const grade = report.healthScore >= 80
|
|
2684
|
+
? "A"
|
|
2685
|
+
: report.healthScore >= 60
|
|
2686
|
+
? "B"
|
|
2687
|
+
: report.healthScore >= 40
|
|
2688
|
+
? "C"
|
|
2689
|
+
: "D";
|
|
2690
|
+
appendSystemMessage([
|
|
2691
|
+
`Codebase Health Report [${grade}] ${report.healthScore}/100`,
|
|
2692
|
+
"",
|
|
2693
|
+
` TODO/FIXME count: ${report.todoCount}`,
|
|
2694
|
+
` Type errors: ${report.typeErrors}`,
|
|
2695
|
+
` Lint warnings: ${report.lintWarnings}`,
|
|
2696
|
+
` Avg file size: ${report.avgFileSize} lines`,
|
|
2697
|
+
` Test coverage: ${report.testCoverage > 0 ? `${report.testCoverage}%` : "unknown"}`,
|
|
2698
|
+
` Dead code signals: ${report.deadCode.length}`,
|
|
2699
|
+
` Circular deps: ${report.circularDeps.length}`,
|
|
2700
|
+
"",
|
|
2701
|
+
report.largestFiles.length > 0
|
|
2702
|
+
? ` Largest files:\n${report.largestFiles
|
|
2703
|
+
.slice(0, 5)
|
|
2704
|
+
.map((f) => ` ${f.path} (${f.lineCount} lines)`)
|
|
2705
|
+
.join("\n")}`
|
|
2706
|
+
: "",
|
|
2707
|
+
]
|
|
2708
|
+
.filter(Boolean)
|
|
2709
|
+
.join("\n"));
|
|
2710
|
+
}
|
|
2711
|
+
catch (error) {
|
|
2712
|
+
appendSystemMessage(`Health analysis failed: ${error instanceof Error ? error.message : "unknown"}`);
|
|
2713
|
+
}
|
|
2714
|
+
})();
|
|
2715
|
+
return true;
|
|
2716
|
+
}
|
|
2717
|
+
case "/fleet": {
|
|
2718
|
+
sysMsg([
|
|
2719
|
+
"Agent Fleet Dashboard",
|
|
2720
|
+
"",
|
|
2721
|
+
" No parallel agents are currently running.",
|
|
2722
|
+
" Agents launch automatically during /autonomous, /waves, and /arena tasks.",
|
|
2723
|
+
"",
|
|
2724
|
+
" Usage: /fleet Show active agent statuses",
|
|
2725
|
+
" /fleet history Show completed agent tasks",
|
|
2726
|
+
"",
|
|
2727
|
+
" Agent fleet tracks: status, tokens used, cost, task progress,",
|
|
2728
|
+
" and completion rates across all parallel workers.",
|
|
2729
|
+
].join("\n"));
|
|
2730
|
+
return true;
|
|
2731
|
+
}
|
|
2732
|
+
case "/arbitrage": {
|
|
2733
|
+
sysMsg("Computing provider cost arbitrage report...");
|
|
2734
|
+
void (async () => {
|
|
2735
|
+
try {
|
|
2736
|
+
const { ProviderArbitrageEngine } = await import("../intelligence/provider-arbitrage.js");
|
|
2737
|
+
const engine = new ProviderArbitrageEngine();
|
|
2738
|
+
const report = engine.getCostReport();
|
|
2739
|
+
appendSystemMessage([
|
|
2740
|
+
"Provider Cost Arbitrage Report",
|
|
2741
|
+
"",
|
|
2742
|
+
` Total spent: $${report.totalSpent.toFixed(4)}`,
|
|
2743
|
+
` Total saved: $${report.totalSaved.toFixed(4)}`,
|
|
2744
|
+
` Routes evaluated: ${report.routeCount}`,
|
|
2745
|
+
` Best value: ${report.bestValueProvider ?? "insufficient data"}`,
|
|
2746
|
+
"",
|
|
2747
|
+
report.providerBreakdown.length > 0
|
|
2748
|
+
? ` Provider Breakdown:\n${report.providerBreakdown.map((p) => ` ${p.provider}: $${p.totalCost.toFixed(4)} (${p.requestCount} requests)`).join("\n")}`
|
|
2749
|
+
: " No provider data yet. Cost tracking activates after your first query.",
|
|
2750
|
+
"",
|
|
2751
|
+
` Generated: ${report.generatedAt}`,
|
|
2752
|
+
].join("\n"));
|
|
2753
|
+
}
|
|
2754
|
+
catch (error) {
|
|
2755
|
+
appendSystemMessage(`Arbitrage report failed: ${error instanceof Error ? error.message : "unknown"}`);
|
|
2756
|
+
}
|
|
2757
|
+
})();
|
|
2758
|
+
return true;
|
|
2759
|
+
}
|
|
2760
|
+
case "/timeline": {
|
|
2761
|
+
if (!runtime) {
|
|
2762
|
+
sysMsg("Timeline requires WotannRuntime.");
|
|
2763
|
+
return true;
|
|
2764
|
+
}
|
|
2765
|
+
sysMsg("Loading temporal memory timeline...");
|
|
2766
|
+
void (async () => {
|
|
2767
|
+
try {
|
|
2768
|
+
const { TemporalMemory } = await import("../memory/temporal-memory.js");
|
|
2769
|
+
const temporal = new TemporalMemory();
|
|
2770
|
+
// Show timeline for the last 30 days
|
|
2771
|
+
const end = new Date();
|
|
2772
|
+
const start = new Date(end.getTime() - 30 * 24 * 60 * 60_000);
|
|
2773
|
+
const summary = temporal.getTimelineSummary(start, end);
|
|
2774
|
+
if (summary.entryCount === 0) {
|
|
2775
|
+
appendSystemMessage([
|
|
2776
|
+
"Temporal Memory Timeline",
|
|
2777
|
+
"",
|
|
2778
|
+
" No temporal entries recorded yet.",
|
|
2779
|
+
" Memory accumulates as you work — decisions, fixes, and discoveries",
|
|
2780
|
+
" are timestamped and queryable by time range.",
|
|
2781
|
+
"",
|
|
2782
|
+
" Usage: /timeline Show full timeline summary",
|
|
2783
|
+
" /timeline last week Show entries from last week",
|
|
2784
|
+
" /timeline <query> Search by time expression",
|
|
2785
|
+
].join("\n"));
|
|
2786
|
+
}
|
|
2787
|
+
else {
|
|
2788
|
+
const categories = summary.categories
|
|
2789
|
+
.map((c) => ` ${c.category}: ${c.count}`)
|
|
2790
|
+
.join("\n");
|
|
2791
|
+
appendSystemMessage([
|
|
2792
|
+
"Temporal Memory Timeline",
|
|
2793
|
+
"",
|
|
2794
|
+
` Entries: ${summary.entryCount}`,
|
|
2795
|
+
` Range: ${new Date(summary.start).toLocaleDateString()} - ${new Date(summary.end).toLocaleDateString()}`,
|
|
2796
|
+
"",
|
|
2797
|
+
` Categories:\n${categories}`,
|
|
2798
|
+
"",
|
|
2799
|
+
summary.lastEntry ? ` Latest: ${summary.lastEntry.content.slice(0, 100)}` : "",
|
|
2800
|
+
]
|
|
2801
|
+
.filter(Boolean)
|
|
2802
|
+
.join("\n"));
|
|
2803
|
+
}
|
|
2804
|
+
}
|
|
2805
|
+
catch (error) {
|
|
2806
|
+
appendSystemMessage(`Timeline failed: ${error instanceof Error ? error.message : "unknown"}`);
|
|
2807
|
+
}
|
|
2808
|
+
})();
|
|
2809
|
+
return true;
|
|
2810
|
+
}
|
|
2811
|
+
case "/onboard": {
|
|
2812
|
+
sysMsg(`Scanning project at ${workingDir}...`);
|
|
2813
|
+
void (async () => {
|
|
2814
|
+
try {
|
|
2815
|
+
const { ProjectOnboarder } = await import("../core/project-onboarding.js");
|
|
2816
|
+
const onboarder = new ProjectOnboarder();
|
|
2817
|
+
const result = onboarder.onboard(workingDir);
|
|
2818
|
+
const stack = result.stack;
|
|
2819
|
+
appendSystemMessage([
|
|
2820
|
+
"Project Onboarding Scan",
|
|
2821
|
+
"",
|
|
2822
|
+
` Primary language: ${stack.primaryLanguage}`,
|
|
2823
|
+
` Languages: ${stack.languages.map((l) => `${l.name} (${l.fileCount} files)`).join(", ")}`,
|
|
2824
|
+
` Frameworks: ${stack.frameworks.join(", ") || "none detected"}`,
|
|
2825
|
+
` Build tools: ${stack.buildTools.join(", ") || "none detected"}`,
|
|
2826
|
+
` Test frameworks: ${stack.testFrameworks.join(", ") || "none detected"}`,
|
|
2827
|
+
` CI/CD: ${stack.cicd.join(", ") || "none detected"}`,
|
|
2828
|
+
` Package manager: ${stack.packageManager ?? "unknown"}`,
|
|
2829
|
+
` Docker: ${stack.hasDocker ? "yes" : "no"}`,
|
|
2830
|
+
` Monorepo: ${stack.hasMonorepo ? "yes" : "no"}`,
|
|
2831
|
+
"",
|
|
2832
|
+
` Entry points: ${result.codeFlow.entryPoints.length}`,
|
|
2833
|
+
` Dependencies: ${result.dependencies.totalDependencies} prod, ${result.dependencies.totalDevDependencies} dev`,
|
|
2834
|
+
"",
|
|
2835
|
+
result.summary.length > 0 ? ` Summary:\n ${result.summary.slice(0, 500)}` : "",
|
|
2836
|
+
]
|
|
2837
|
+
.filter(Boolean)
|
|
2838
|
+
.join("\n"));
|
|
2839
|
+
}
|
|
2840
|
+
catch (error) {
|
|
2841
|
+
appendSystemMessage(`Onboarding scan failed: ${error instanceof Error ? error.message : "unknown"}`);
|
|
2842
|
+
}
|
|
2843
|
+
})();
|
|
2844
|
+
return true;
|
|
2845
|
+
}
|
|
2846
|
+
case "/incognito": {
|
|
2847
|
+
const next = !isIncognito;
|
|
2848
|
+
setIsIncognito(next);
|
|
2849
|
+
// Incognito mode: when the session's incognito flag is set,
|
|
2850
|
+
// memory capture and session persistence are skipped in the runtime query pipeline
|
|
2851
|
+
sysMsg(next
|
|
2852
|
+
? "Incognito mode ON — memory capture and session recording paused."
|
|
2853
|
+
: "Incognito mode OFF — memory capture resumed.");
|
|
2854
|
+
return true;
|
|
2855
|
+
}
|
|
2856
|
+
case "/actions": {
|
|
2857
|
+
if (messages.length === 0) {
|
|
2858
|
+
sysMsg("No messages to act on.");
|
|
2859
|
+
return true;
|
|
2860
|
+
}
|
|
2861
|
+
setShowMessageActions((prev) => !prev);
|
|
2862
|
+
return true;
|
|
2863
|
+
}
|
|
2864
|
+
case "/context-panel": {
|
|
2865
|
+
setShowContextPanel((prev) => !prev);
|
|
2866
|
+
return true;
|
|
2867
|
+
}
|
|
2868
|
+
// PHASE G — TUI slash commands for cross-surface parity with CLI.
|
|
2869
|
+
// Closes the gap where /trust, /export, /delete, /login were
|
|
2870
|
+
// CLI-only — power users in the TUI shouldn't have to drop to CLI.
|
|
2871
|
+
case "/trust": {
|
|
2872
|
+
// Wave 4 — `/trust` (no args) opens the overlay panel for
|
|
2873
|
+
// interactive list/add/remove. `/trust <path>` keeps the legacy
|
|
2874
|
+
// CLI-parity behavior (trust the path inline, no panel).
|
|
2875
|
+
if (!arg) {
|
|
2876
|
+
setShowTrustPanel(true);
|
|
2877
|
+
return true;
|
|
2878
|
+
}
|
|
2879
|
+
(async () => {
|
|
2880
|
+
try {
|
|
2881
|
+
const { trustWorkspace } = await import("../utils/trusted-workspaces.js");
|
|
2882
|
+
const targetPath = arg === "." ? process.cwd() : arg;
|
|
2883
|
+
const added = trustWorkspace(targetPath);
|
|
2884
|
+
sysMsg(added ? `Trusted: ${targetPath}` : `Already trusted: ${targetPath}`);
|
|
2885
|
+
}
|
|
2886
|
+
catch (err) {
|
|
2887
|
+
sysMsg(`error: ${err instanceof Error ? err.message : String(err)}`);
|
|
2888
|
+
}
|
|
2889
|
+
})();
|
|
2890
|
+
return true;
|
|
2891
|
+
}
|
|
2892
|
+
case "/export": {
|
|
2893
|
+
(async () => {
|
|
2894
|
+
try {
|
|
2895
|
+
const { resolveWotannHome } = await import("../utils/wotann-home.js");
|
|
2896
|
+
const wotannHome = resolveWotannHome();
|
|
2897
|
+
const fs = await import("node:fs");
|
|
2898
|
+
if (!fs.existsSync(wotannHome)) {
|
|
2899
|
+
sysMsg(`No WOTANN home at ${wotannHome} — nothing to export.`);
|
|
2900
|
+
return;
|
|
2901
|
+
}
|
|
2902
|
+
const ts = new Date().toISOString().replace(/[:.]/g, "-");
|
|
2903
|
+
const path = await import("node:path");
|
|
2904
|
+
const outPath = path.join(process.cwd(), `wotann-export-${ts}.tar.gz`);
|
|
2905
|
+
const { execFileNoThrow } = await import("../utils/execFileNoThrow.js");
|
|
2906
|
+
const result = await execFileNoThrow("tar", [
|
|
2907
|
+
"-czf",
|
|
2908
|
+
outPath,
|
|
2909
|
+
"-C",
|
|
2910
|
+
path.dirname(wotannHome),
|
|
2911
|
+
path.basename(wotannHome),
|
|
2912
|
+
]);
|
|
2913
|
+
sysMsg(result.exitCode === 0
|
|
2914
|
+
? `Exported ${wotannHome} → ${outPath} (GDPR Article 20)`
|
|
2915
|
+
: `Export failed: ${result.stderr.trim()}`);
|
|
2916
|
+
}
|
|
2917
|
+
catch (err) {
|
|
2918
|
+
sysMsg(`error: ${err instanceof Error ? err.message : String(err)}`);
|
|
2919
|
+
}
|
|
2920
|
+
})();
|
|
2921
|
+
return true;
|
|
2922
|
+
}
|
|
2923
|
+
case "/delete": {
|
|
2924
|
+
if (arg !== "--yes") {
|
|
2925
|
+
sysMsg("Refusing without `--yes` confirmation. Run `/delete --yes` to wipe ~/.wotann (destructive — no recovery; run /export first to back up).");
|
|
2926
|
+
return true;
|
|
2927
|
+
}
|
|
2928
|
+
(async () => {
|
|
2929
|
+
try {
|
|
2930
|
+
const { resolveWotannHome } = await import("../utils/wotann-home.js");
|
|
2931
|
+
const wotannHome = resolveWotannHome();
|
|
2932
|
+
const fs = await import("node:fs/promises");
|
|
2933
|
+
const fsSync = await import("node:fs");
|
|
2934
|
+
if (!fsSync.existsSync(wotannHome)) {
|
|
2935
|
+
sysMsg(`No WOTANN home at ${wotannHome} — nothing to delete.`);
|
|
2936
|
+
return;
|
|
2937
|
+
}
|
|
2938
|
+
await fs.rm(wotannHome, { recursive: true, force: true });
|
|
2939
|
+
sysMsg(`Deleted ${wotannHome} (GDPR Article 17). Re-run \`wotann init\` to start fresh.`);
|
|
2940
|
+
}
|
|
2941
|
+
catch (err) {
|
|
2942
|
+
sysMsg(`error: ${err instanceof Error ? err.message : String(err)}`);
|
|
2943
|
+
}
|
|
2944
|
+
})();
|
|
2945
|
+
return true;
|
|
2946
|
+
}
|
|
2947
|
+
case "/login": {
|
|
2948
|
+
sysMsg("Run `wotann login [provider]` from your shell. Supported: anthropic, openai, codex, copilot, gemini, ollama, deepseek, etc.");
|
|
2949
|
+
return true;
|
|
2950
|
+
}
|
|
2951
|
+
default:
|
|
2952
|
+
if (cmd.startsWith("/")) {
|
|
2953
|
+
sysMsg(`Unknown command: ${cmd}\nType /help for available commands.`);
|
|
2954
|
+
return true;
|
|
2955
|
+
}
|
|
2956
|
+
return false;
|
|
2957
|
+
}
|
|
2958
|
+
}, [
|
|
2959
|
+
exit,
|
|
2960
|
+
providers,
|
|
2961
|
+
stats,
|
|
2962
|
+
currentMode,
|
|
2963
|
+
currentModel,
|
|
2964
|
+
turnCount,
|
|
2965
|
+
history,
|
|
2966
|
+
runtime,
|
|
2967
|
+
getSkillRegistry,
|
|
2968
|
+
themeName,
|
|
2969
|
+
workingDir,
|
|
2970
|
+
promptValue,
|
|
2971
|
+
isIncognito,
|
|
2972
|
+
messages,
|
|
2973
|
+
]);
|
|
2974
|
+
// ── Message Submit Handler ───────────────────────────────
|
|
2975
|
+
const handleSubmit = useCallback(async (input) => {
|
|
2976
|
+
// ── Mid-stream input routing ──────────────────────────
|
|
2977
|
+
// If a model turn is still streaming, the user shouldn't have to
|
|
2978
|
+
// wait — push the message onto the per-session queue and surface
|
|
2979
|
+
// a system confirmation. The runtime's pre-model drain
|
|
2980
|
+
// (`runtime.query()` → message-queue) prepends queued items as
|
|
2981
|
+
// user-role turns on the next call.
|
|
2982
|
+
//
|
|
2983
|
+
// Inspired by langchain-ai/open-swe
|
|
2984
|
+
// agent/middleware/check_message_queue.py — same FIFO drain
|
|
2985
|
+
// ordering ("queued = older, current = newer").
|
|
2986
|
+
//
|
|
2987
|
+
// Slash commands and deep links remain immediate even mid-stream:
|
|
2988
|
+
// they're local TUI affordances, not model input, so queuing them
|
|
2989
|
+
// would be surprising.
|
|
2990
|
+
if (isStreaming && !input.startsWith("/") && !input.trimStart().startsWith("wotann://")) {
|
|
2991
|
+
const trimmed = input.trim();
|
|
2992
|
+
if (trimmed.length === 0)
|
|
2993
|
+
return;
|
|
2994
|
+
messageQueueRef.current.enqueue(trimmed);
|
|
2995
|
+
setQueueDepth(messageQueueRef.current.size());
|
|
2996
|
+
appendSystemMessage(`📨 Queued for next turn (${messageQueueRef.current.size()} pending)`);
|
|
2997
|
+
setPromptValue("");
|
|
2998
|
+
setHistory((prev) => [trimmed, ...prev.slice(0, 49)]);
|
|
2999
|
+
return;
|
|
3000
|
+
}
|
|
3001
|
+
if (input.startsWith("/") && handleSlashCommand(input))
|
|
3002
|
+
return;
|
|
3003
|
+
// Auto-handle wotann:// deep links typed directly into the prompt
|
|
3004
|
+
if (input.trimStart().startsWith("wotann://")) {
|
|
3005
|
+
const link = parseDeepLink(input.trim());
|
|
3006
|
+
if (link) {
|
|
3007
|
+
const ctx = {
|
|
3008
|
+
workingDir,
|
|
3009
|
+
setMode: (mode) => {
|
|
3010
|
+
if (runtime)
|
|
3011
|
+
runtime.setMode(mode);
|
|
3012
|
+
setCurrentMode(mode);
|
|
3013
|
+
},
|
|
3014
|
+
setTheme: (theme) => themeManagerRef.current.setTheme(theme),
|
|
3015
|
+
verifyPairingCode: (code) => runtime?.getDispatchPlane()?.verifyPairingCode(code) ?? false,
|
|
3016
|
+
};
|
|
3017
|
+
const result = executeDeepLink(link, ctx);
|
|
3018
|
+
appendSystemMessage(result.success ? `✓ ${result.message}` : `✗ ${result.message}`);
|
|
3019
|
+
return;
|
|
3020
|
+
}
|
|
3021
|
+
}
|
|
3022
|
+
const attachmentResolution = resolveFileAttachments(input, workingDir);
|
|
3023
|
+
let runtimePrompt = attachmentResolution.prompt;
|
|
3024
|
+
// Expand @-references (e.g., @file:path, @git:diff, @memory:query)
|
|
3025
|
+
const refs = parseReferences(runtimePrompt);
|
|
3026
|
+
if (refs.length > 0) {
|
|
3027
|
+
const resolved = await resolveReferences(refs, workingDir);
|
|
3028
|
+
runtimePrompt = expandPromptWithReferences(runtimePrompt, resolved);
|
|
3029
|
+
if (resolved.length > 0) {
|
|
3030
|
+
appendSystemMessage(`Resolved ${resolved.length} @-reference(s): ${resolved.map((r) => r.reference).join(", ")}`);
|
|
3031
|
+
}
|
|
3032
|
+
}
|
|
3033
|
+
const userDisplayContent = attachmentResolution.attachments.length > 0
|
|
3034
|
+
? `${input}\n\n[attached ${attachmentResolution.attachments.length} file(s)]`
|
|
3035
|
+
: input;
|
|
3036
|
+
const userMsg = { role: "user", content: userDisplayContent };
|
|
3037
|
+
setMessages((prev) => [...prev, userMsg]);
|
|
3038
|
+
if (attachmentResolution.errors.length > 0) {
|
|
3039
|
+
setMessages((prev) => [
|
|
3040
|
+
...prev,
|
|
3041
|
+
...attachmentResolution.errors.map((error) => ({
|
|
3042
|
+
role: "system",
|
|
3043
|
+
content: error,
|
|
3044
|
+
})),
|
|
3045
|
+
]);
|
|
3046
|
+
}
|
|
3047
|
+
setHistory((prev) => [input, ...prev.slice(0, 49)]);
|
|
3048
|
+
setIsStreaming(true);
|
|
3049
|
+
setStreamingContent("");
|
|
3050
|
+
setPromptValue("");
|
|
3051
|
+
setTurnCount((t) => t + 1);
|
|
3052
|
+
// Queued messages are drained inside `runtime.query()` BEFORE the
|
|
3053
|
+
// first await, so they're already in the model's context by the
|
|
3054
|
+
// time we re-render. Reset the indicator here so the UI reflects
|
|
3055
|
+
// the post-drain truth instead of going stale.
|
|
3056
|
+
if (queueDepth > 0)
|
|
3057
|
+
setQueueDepth(0);
|
|
3058
|
+
if (runtime) {
|
|
3059
|
+
// ═══════════════════════════════════════════════════════════
|
|
3060
|
+
// FULL HARNESS INTELLIGENCE PATH (via WotannRuntime)
|
|
3061
|
+
// This goes through: WASM bypass → Hooks → 16 Middleware layers
|
|
3062
|
+
// → DoomLoop → Amplifier → Reasoning Sandwich → TTSR → Provider
|
|
3063
|
+
// → After-hooks → Memory capture → Cost tracking
|
|
3064
|
+
// ═══════════════════════════════════════════════════════════
|
|
3065
|
+
let fullContent = "";
|
|
3066
|
+
let tokensUsed = 0;
|
|
3067
|
+
const errors = [];
|
|
3068
|
+
let responseModel = currentModel;
|
|
3069
|
+
let responseProvider = initialProvider;
|
|
3070
|
+
const abort = new AbortController();
|
|
3071
|
+
abortRef.current = abort;
|
|
3072
|
+
try {
|
|
3073
|
+
for await (const chunk of runtime.query({
|
|
3074
|
+
prompt: runtimePrompt,
|
|
3075
|
+
context: messages,
|
|
3076
|
+
model: currentModel,
|
|
3077
|
+
provider: initialProvider,
|
|
3078
|
+
})) {
|
|
3079
|
+
if (abort.signal.aborted)
|
|
3080
|
+
break;
|
|
3081
|
+
if (chunk.type === "text") {
|
|
3082
|
+
fullContent += chunk.content;
|
|
3083
|
+
setStreamingContent(fullContent);
|
|
3084
|
+
}
|
|
3085
|
+
else if (chunk.type === "error") {
|
|
3086
|
+
// NEVER mix errors into content — show as separate system message
|
|
3087
|
+
errors.push(chunk.content);
|
|
3088
|
+
}
|
|
3089
|
+
if (chunk.tokensUsed)
|
|
3090
|
+
tokensUsed = chunk.tokensUsed;
|
|
3091
|
+
if (chunk.model)
|
|
3092
|
+
responseModel = chunk.model;
|
|
3093
|
+
if (chunk.provider)
|
|
3094
|
+
responseProvider = chunk.provider;
|
|
3095
|
+
}
|
|
3096
|
+
if (!abort.signal.aborted) {
|
|
3097
|
+
// Show errors as system messages (not mixed into assistant response)
|
|
3098
|
+
for (const err of errors) {
|
|
3099
|
+
setMessages((prev) => [
|
|
3100
|
+
...prev,
|
|
3101
|
+
{ role: "system", content: `Error: ${err}` },
|
|
3102
|
+
]);
|
|
3103
|
+
}
|
|
3104
|
+
// Only show assistant message if we got real content
|
|
3105
|
+
if (fullContent.trim()) {
|
|
3106
|
+
setMessages((prev) => [
|
|
3107
|
+
...prev,
|
|
3108
|
+
{
|
|
3109
|
+
role: "assistant",
|
|
3110
|
+
content: fullContent,
|
|
3111
|
+
model: responseModel,
|
|
3112
|
+
provider: responseProvider,
|
|
3113
|
+
tokensUsed,
|
|
3114
|
+
},
|
|
3115
|
+
]);
|
|
3116
|
+
void voiceControllerRef.current.speakAssistantReply(fullContent);
|
|
3117
|
+
}
|
|
3118
|
+
else if (errors.length === 0) {
|
|
3119
|
+
setMessages((prev) => [
|
|
3120
|
+
...prev,
|
|
3121
|
+
{
|
|
3122
|
+
role: "system",
|
|
3123
|
+
content: "No response received from provider.",
|
|
3124
|
+
},
|
|
3125
|
+
]);
|
|
3126
|
+
}
|
|
3127
|
+
syncStatsFromRuntime();
|
|
3128
|
+
}
|
|
3129
|
+
}
|
|
3130
|
+
catch (error) {
|
|
3131
|
+
if (!abort.signal.aborted) {
|
|
3132
|
+
const msg = error instanceof Error ? error.message : "Unknown error";
|
|
3133
|
+
setMessages((prev) => [...prev, { role: "system", content: `Error: ${msg}` }]);
|
|
3134
|
+
}
|
|
3135
|
+
}
|
|
3136
|
+
}
|
|
3137
|
+
else {
|
|
3138
|
+
// No runtime — show setup guidance
|
|
3139
|
+
setMessages((prev) => [
|
|
3140
|
+
...prev,
|
|
3141
|
+
{
|
|
3142
|
+
role: "system",
|
|
3143
|
+
content: [
|
|
3144
|
+
"No provider configured. To get started:",
|
|
3145
|
+
"",
|
|
3146
|
+
" 1. Set an API key: export ANTHROPIC_API_KEY=sk-...",
|
|
3147
|
+
" 2. Or use Codex: Already detected if logged in",
|
|
3148
|
+
" 3. Or use Ollama: ollama serve (free, local)",
|
|
3149
|
+
"",
|
|
3150
|
+
"Run /providers to check status, or `wotann init` to set up.",
|
|
3151
|
+
].join("\n"),
|
|
3152
|
+
},
|
|
3153
|
+
]);
|
|
3154
|
+
}
|
|
3155
|
+
setIsStreaming(false);
|
|
3156
|
+
setStreamingContent("");
|
|
3157
|
+
abortRef.current = null;
|
|
3158
|
+
}, [
|
|
3159
|
+
currentModel,
|
|
3160
|
+
initialProvider,
|
|
3161
|
+
runtime,
|
|
3162
|
+
messages,
|
|
3163
|
+
handleSlashCommand,
|
|
3164
|
+
syncStatsFromRuntime,
|
|
3165
|
+
workingDir,
|
|
3166
|
+
appendSystemMessage,
|
|
3167
|
+
]);
|
|
3168
|
+
// Keep ref in sync for message actions retry
|
|
3169
|
+
handleSubmitRef.current = handleSubmit;
|
|
3170
|
+
// ── Context Sources for ContextSourcePanel ──────────────
|
|
3171
|
+
const contextSources = React.useMemo(() => {
|
|
3172
|
+
if (!runtime)
|
|
3173
|
+
return [];
|
|
3174
|
+
const budget = runtime.getContextBudget();
|
|
3175
|
+
const sources = [];
|
|
3176
|
+
if (budget.systemPromptTokens > 0)
|
|
3177
|
+
sources.push({ name: "System prompt", tokens: budget.systemPromptTokens, type: "system" });
|
|
3178
|
+
if (budget.memoryTokens > 0)
|
|
3179
|
+
sources.push({ name: "Memory", tokens: budget.memoryTokens, type: "memory" });
|
|
3180
|
+
if (budget.toolSchemaTokens > 0)
|
|
3181
|
+
sources.push({ name: "Tool schemas", tokens: budget.toolSchemaTokens, type: "tools" });
|
|
3182
|
+
if (budget.conversationTokens > 0)
|
|
3183
|
+
sources.push({
|
|
3184
|
+
name: "Conversation",
|
|
3185
|
+
tokens: budget.conversationTokens,
|
|
3186
|
+
type: "conversation",
|
|
3187
|
+
});
|
|
3188
|
+
return sources;
|
|
3189
|
+
}, [runtime, messages.length]);
|
|
3190
|
+
const activeProvider = providers.find((p) => p.available);
|
|
3191
|
+
const runtimeStatus = runtime?.getStatus();
|
|
3192
|
+
const currentTheme = themeManagerRef.current.getCurrent();
|
|
3193
|
+
// contextUsagePercent removed — UnifiedStatusBar derives the percent
|
|
3194
|
+
// directly from used/max tokens, so the duplicate calculation here
|
|
3195
|
+
// (legacy from when the StatusBar at the bottom of the layout took
|
|
3196
|
+
// a precomputed contextPercent prop) is no longer needed.
|
|
3197
|
+
const diffPanel = diffEntries[0];
|
|
3198
|
+
return (_jsxs(Box, { flexDirection: "column", height: "100%", children: [showStartup && (_jsx(StartupScreen, { version: version, providers: providers, palette: currentTheme.colors })), needsOnboarding && (_jsxs(Box, { flexDirection: "column", paddingX: 2, paddingY: 1, borderStyle: "round", borderColor: currentTheme.colors.warning, marginBottom: 1, children: [_jsx(Text, { bold: true, color: currentTheme.colors.warning, children: "\u26A0 No providers configured" }), _jsx(Text, { color: currentTheme.colors.muted, children: "Run `wotann init` to set up a provider, or run `wotann login <provider>` to add one. Free options: Ollama (local), Google Gemini (free tier), Groq (free tier)." })] })), _jsx(UnifiedStatusBar, { model: currentModel, provider: activeProvider?.provider ?? initialProvider, mode: currentMode, usedTokens: runtimeStatus?.totalTokens ?? 0, maxTokens: runtime?.getMaxContextTokens() ?? 200_000, costUsd: runtimeStatus?.totalCost ?? stats.cost, reads: stats.reads, edits: stats.edits, bashCalls: stats.bashCalls, turnCount: turnCount, skillCount: runtimeStatus?.skillCount, isStreaming: isStreaming, roeSessionActive: runtime?.getActiveROESessionId() !== undefined }), _jsx(MainScene, { messages: messages, isStreaming: isStreaming, streamingContent: streamingContent, currentModel: currentModel, activePanel: activePanel, diffPanel: diffPanel ? { filePath: diffPanel.filePath, hunks: diffPanel.hunks } : undefined, agentStatuses: agentStatuses, thinkingEffort: thinkingEffort, history: history, currentThemeBorder: currentTheme.colors.border,
|
|
3199
|
+
// `accent` is the canonical brand-tint slot; `primary` is its
|
|
3200
|
+
// deprecated alias (see src/ui/themes.ts ThemeColors). Use
|
|
3201
|
+
// accent so theme-cycle keeps working when palettes drop the
|
|
3202
|
+
// legacy property entirely.
|
|
3203
|
+
currentThemePrimary: currentTheme.colors.accent, currentThemeInfo: currentTheme.colors.info }), showHistoryPicker && (_jsx(HistoryPicker, { history: history, onSelect: handleHistorySelect, onCancel: handleHistoryCancel })), showCommandPalette && (_jsx(CommandPalette, { registry: commandRegistryRef.current, onClose: handleCommandPaletteClose, onError: handleCommandPaletteError, palette: currentTheme.colors })), optionPicker && (_jsx(OptionPicker, { title: optionPicker.title, options: optionPicker.options, currentValue: optionPicker.currentValue, onSelect: optionPicker.onSelect, onCancel: () => setOptionPicker(null) })), showModelPicker && (_jsx(ModelPicker, { providers: providers, currentProvider: activeProvider?.provider ?? initialProvider, currentModel: currentModel, onSelect: (provider, model) => {
|
|
3204
|
+
setShowModelPicker(false);
|
|
3205
|
+
setCurrentModel(model);
|
|
3206
|
+
// Note: provider is captured for completeness (the routing
|
|
3207
|
+
// layer infers provider from model id, but a future
|
|
3208
|
+
// setActiveProvider hook can use it directly without
|
|
3209
|
+
// touching this call site).
|
|
3210
|
+
setMessages((prev) => [
|
|
3211
|
+
...prev,
|
|
3212
|
+
{
|
|
3213
|
+
role: "system",
|
|
3214
|
+
content: `Switched to ${provider}/${model}.`,
|
|
3215
|
+
},
|
|
3216
|
+
]);
|
|
3217
|
+
}, onCancel: () => setShowModelPicker(false), onRefresh: () => {
|
|
3218
|
+
// Force-refresh every provider's model catalog. Lazy-load
|
|
3219
|
+
// the discoverer so the import isn't paid on first render.
|
|
3220
|
+
void import("../providers/model-discovery.js").then(({ discoverModelsForProvider }) => {
|
|
3221
|
+
for (const auth of providers) {
|
|
3222
|
+
if (!auth.available)
|
|
3223
|
+
continue;
|
|
3224
|
+
void discoverModelsForProvider({
|
|
3225
|
+
provider: auth.provider,
|
|
3226
|
+
fallback: auth.models,
|
|
3227
|
+
forceRefresh: true,
|
|
3228
|
+
});
|
|
3229
|
+
}
|
|
3230
|
+
setMessages((prev) => [
|
|
3231
|
+
...prev,
|
|
3232
|
+
{
|
|
3233
|
+
role: "system",
|
|
3234
|
+
content: "Model catalogs refreshing in the background. The picker " +
|
|
3235
|
+
"will reflect new entries on the next open (cache TTL: 5 min).",
|
|
3236
|
+
},
|
|
3237
|
+
]);
|
|
3238
|
+
});
|
|
3239
|
+
} })), showTrustPanel && (_jsx(TrustPanel, { workingDir: workingDir, onClose: () => setShowTrustPanel(false) })), showGdprPanel && _jsx(GdprPanel, { onClose: () => setShowGdprPanel(false) }), showAuditPanel && _jsx(AuditLogPanel, { onClose: () => setShowAuditPanel(false) }), showAutomationsPanel && _jsx(AutomationsPanel, { onClose: () => setShowAutomationsPanel(false) }), showContextPanel && runtime && (_jsx(ContextSourcePanel, { sources: contextSources, totalTokens: runtimeStatus?.totalTokens ?? 0, maxTokens: runtime.getMaxContextTokens() })), showTerminalBlocks && _jsx(TerminalBlocksView, { blocks: terminalBlocks }), showMessageActions &&
|
|
3240
|
+
messages.length > 0 &&
|
|
3241
|
+
(() => {
|
|
3242
|
+
const lastIdx = messages.length - 1;
|
|
3243
|
+
const lastMsg = messages[lastIdx];
|
|
3244
|
+
const role = lastMsg.role === "user" || lastMsg.role === "assistant" ? lastMsg.role : "assistant";
|
|
3245
|
+
return (_jsx(MessageActions, { messageId: String(lastIdx), content: lastMsg.content, role: role, onAction: handleMessageAction }));
|
|
3246
|
+
})(), isIncognito && (_jsxs(Box, { paddingX: 1, gap: 1, children: [_jsx(Text, { color: currentTheme.colors.warning, bold: true, children: "\u25D0 INCOGNITO" }), _jsx(Text, { color: currentTheme.colors.muted, children: "\u00B7 memory capture paused \u00B7 all messages local" })] })), queueDepth > 0 && (_jsxs(Box, { paddingX: 1, gap: 1, children: [_jsxs(Text, { color: currentTheme.colors.info, bold: true, children: ["\uD83D\uDCE8 ", queueDepth, " message", queueDepth === 1 ? "" : "s", " queued"] }), _jsx(Text, { color: currentTheme.colors.muted, children: "\u00B7 will prepend on next turn" })] })), _jsx(PromptInput, { onSubmit: handleSubmit, onChange: setPromptValue, onAbort: handleAbort, disabled: isStreaming, isStreaming: isStreaming, history: history, mode: currentMode, value: promptValue })] }));
|
|
3247
|
+
}
|
|
3248
|
+
//# sourceMappingURL=App.js.map
|