@kenkaiiii/ggcoder 6.3.0 → 7.0.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/README.md +9 -8
- package/dist/app-sidecar/app-settings.d.ts +1 -1
- package/dist/app-sidecar/app-settings.js +3 -4
- package/dist/app-sidecar/app-settings.js.map +1 -1
- package/dist/app-sidecar/attachments.js +1 -1
- package/dist/app-sidecar/attachments.js.map +1 -1
- package/dist/app-sidecar/auth-routes.js +2 -5
- package/dist/app-sidecar/auth-routes.js.map +1 -1
- package/dist/app-sidecar/autopilot-runner.d.ts +8 -8
- package/dist/app-sidecar/autopilot-runner.js +8 -8
- package/dist/app-sidecar/autopilot-runner.js.map +1 -1
- package/dist/app-sidecar/branch-routes.d.ts +8 -1
- package/dist/app-sidecar/branch-routes.js +154 -2
- package/dist/app-sidecar/branch-routes.js.map +1 -1
- package/dist/app-sidecar/detached-sessions.d.ts +7 -10
- package/dist/app-sidecar/detached-sessions.js +6 -2
- package/dist/app-sidecar/detached-sessions.js.map +1 -1
- package/dist/app-sidecar/file-search.js +1 -1
- package/dist/app-sidecar/file-search.js.map +1 -1
- package/dist/app-sidecar/git-branches.d.ts +18 -1
- package/dist/app-sidecar/git-branches.js +24 -6
- package/dist/app-sidecar/git-branches.js.map +1 -1
- package/dist/app-sidecar/git-ship.d.ts +42 -0
- package/dist/app-sidecar/git-ship.js +349 -0
- package/dist/app-sidecar/git-ship.js.map +1 -0
- package/dist/app-sidecar/git-target.d.ts +2 -2
- package/dist/app-sidecar/git-target.js +2 -2
- package/dist/app-sidecar/git-target.js.map +1 -1
- package/dist/app-sidecar/goal-routes.d.ts +1 -1
- package/dist/app-sidecar/goal-routes.js +5 -6
- package/dist/app-sidecar/goal-routes.js.map +1 -1
- package/dist/app-sidecar/hf-pull-manager.d.ts +5 -4
- package/dist/app-sidecar/hf-pull-manager.js +1 -1
- package/dist/app-sidecar/hf-pull-manager.js.map +1 -1
- package/dist/app-sidecar/history-routes.js +6 -6
- package/dist/app-sidecar/history-routes.js.map +1 -1
- package/dist/app-sidecar/history.d.ts +2 -2
- package/dist/app-sidecar/integration-routes.js +4 -6
- package/dist/app-sidecar/integration-routes.js.map +1 -1
- package/dist/app-sidecar/keep-awake.d.ts +1 -1
- package/dist/app-sidecar/keep-awake.js +1 -1
- package/dist/app-sidecar/keep-awake.js.map +1 -1
- package/dist/app-sidecar/ken-context.d.ts +2 -2
- package/dist/app-sidecar/ken-context.js +1 -1
- package/dist/app-sidecar/ken-context.js.map +1 -1
- package/dist/app-sidecar/live-preview/dev-url.d.ts +1 -1
- package/dist/app-sidecar/live-preview/manager.d.ts +2 -14
- package/dist/app-sidecar/live-preview/manager.js.map +1 -1
- package/dist/app-sidecar/live-preview/pages.d.ts +21 -1
- package/dist/app-sidecar/live-preview/pages.js +138 -4
- package/dist/app-sidecar/live-preview/pages.js.map +1 -1
- package/dist/app-sidecar/live-preview/routes.d.ts +7 -3
- package/dist/app-sidecar/live-preview/routes.js +32 -2
- package/dist/app-sidecar/live-preview/routes.js.map +1 -1
- package/dist/app-sidecar/live-preview/servers.js +1 -1
- package/dist/app-sidecar/live-preview/servers.js.map +1 -1
- package/dist/app-sidecar/mcp-routes.js +2 -2
- package/dist/app-sidecar/mcp-routes.js.map +1 -1
- package/dist/app-sidecar/mcp-rows.d.ts +3 -15
- package/dist/app-sidecar/mcp-rows.js +7 -2
- package/dist/app-sidecar/mcp-rows.js.map +1 -1
- package/dist/app-sidecar/mcp-shell-command.d.ts +1 -1
- package/dist/app-sidecar/mcp-shell-command.js +3 -3
- package/dist/app-sidecar/mcp-shell-command.js.map +1 -1
- package/dist/app-sidecar/mcp-sync.d.ts +2 -2
- package/dist/app-sidecar/mcp-sync.js +3 -3
- package/dist/app-sidecar/mcp-sync.js.map +1 -1
- package/dist/app-sidecar/progress-manager.d.ts +1 -1
- package/dist/app-sidecar/progress-manager.js +6 -6
- package/dist/app-sidecar/progress-manager.js.map +1 -1
- package/dist/app-sidecar/prompt-routes.js +5 -5
- package/dist/app-sidecar/prompt-routes.js.map +1 -1
- package/dist/app-sidecar/repo-polls.d.ts +3 -3
- package/dist/app-sidecar/repo-polls.js +4 -4
- package/dist/app-sidecar/repo-polls.js.map +1 -1
- package/dist/app-sidecar/route-context.d.ts +17 -17
- package/dist/app-sidecar/run-control-routes.js +2 -5
- package/dist/app-sidecar/run-control-routes.js.map +1 -1
- package/dist/app-sidecar/session-file-routes.d.ts +1 -1
- package/dist/app-sidecar/session-file-routes.js +2 -2
- package/dist/app-sidecar/session-file-routes.js.map +1 -1
- package/dist/app-sidecar/session-routes.js +3 -4
- package/dist/app-sidecar/session-routes.js.map +1 -1
- package/dist/app-sidecar/session-types.d.ts +11 -13
- package/dist/app-sidecar/shell-routes.js +1 -1
- package/dist/app-sidecar/shell-routes.js.map +1 -1
- package/dist/app-sidecar/shell-runs.js +2 -2
- package/dist/app-sidecar/shell-runs.js.map +1 -1
- package/dist/app-sidecar/shell-suggestions.d.ts +2 -8
- package/dist/app-sidecar/shell-suggestions.js +1 -1
- package/dist/app-sidecar/shell-suggestions.js.map +1 -1
- package/dist/app-sidecar/task-routes.js +5 -5
- package/dist/app-sidecar/task-routes.js.map +1 -1
- package/dist/app-sidecar/trophy-manager.d.ts +2 -2
- package/dist/app-sidecar/trophy-manager.js +3 -3
- package/dist/app-sidecar/trophy-manager.js.map +1 -1
- package/dist/app-sidecar/usage.d.ts +1 -1
- package/dist/app-sidecar/usage.js +3 -2
- package/dist/app-sidecar/usage.js.map +1 -1
- package/dist/app-sidecar/workspace-routes.js +4 -4
- package/dist/app-sidecar/workspace-routes.js.map +1 -1
- package/dist/app-sidecar/worktrees.js +1 -1
- package/dist/app-sidecar/worktrees.js.map +1 -1
- package/dist/app-sidecar-sessions.d.ts +2 -5
- package/dist/app-sidecar-sessions.js +1 -1
- package/dist/app-sidecar-sessions.js.map +1 -1
- package/dist/app-sidecar.d.ts +1 -1
- package/dist/app-sidecar.js +54 -45
- package/dist/app-sidecar.js.map +1 -1
- package/dist/chat-agents/general.d.ts +1 -1
- package/dist/chat-agents/index.d.ts +1 -1
- package/dist/chat-agents/jiwa.d.ts +2 -9
- package/dist/chat-agents/jiwa.js +1 -0
- package/dist/chat-agents/jiwa.js.map +1 -1
- package/dist/chat-agents/memory.d.ts +2 -9
- package/dist/chat-agents/memory.js +1 -0
- package/dist/chat-agents/memory.js.map +1 -1
- package/dist/chat-agents/research.d.ts +1 -1
- package/dist/chat-agents/shared.d.ts +1 -1
- package/dist/chat-agents/shared.js +1 -1
- package/dist/chat-agents/shared.js.map +1 -1
- package/dist/chat-agents/therapist.d.ts +1 -1
- package/dist/chat-agents/types.d.ts +2 -1
- package/dist/chat-agents/types.js +6 -1
- package/dist/chat-agents/types.js.map +1 -1
- package/dist/cli/auth.js +3 -6
- package/dist/cli/auth.js.map +1 -1
- package/dist/cli/mcp.js +4 -3
- package/dist/cli/mcp.js.map +1 -1
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +26 -27
- package/dist/cli.js.map +1 -1
- package/dist/goals-agent/goal-team.d.ts +1 -1
- package/dist/goals-agent/goals-agent.d.ts +3 -3
- package/dist/goals-agent/goals-agent.js +5 -5
- package/dist/goals-agent/goals-agent.js.map +1 -1
- package/dist/hf-pull.d.ts +2 -1
- package/dist/hf-pull.js +0 -1
- package/dist/hf-pull.js.map +1 -1
- package/dist/index.d.ts +0 -8
- package/dist/index.js +1 -14
- package/dist/index.js.map +1 -1
- package/dist/modes/acp-autopilot.js +3 -3
- package/dist/modes/acp-autopilot.js.map +1 -1
- package/dist/modes/acp-goals.d.ts +2 -2
- package/dist/modes/acp-goals.js +3 -3
- package/dist/modes/acp-goals.js.map +1 -1
- package/dist/modes/acp-mode.d.ts +6 -6
- package/dist/modes/acp-mode.js +22 -23
- package/dist/modes/acp-mode.js.map +1 -1
- package/dist/modes/agent-home-mode.js +7 -8
- package/dist/modes/agent-home-mode.js.map +1 -1
- package/dist/modes/json-mode.js +4 -4
- package/dist/modes/json-mode.js.map +1 -1
- package/dist/modes/print-mode.js +4 -3
- package/dist/modes/print-mode.js.map +1 -1
- package/dist/modes/rpc-mode.js +2 -2
- package/dist/modes/rpc-mode.js.map +1 -1
- package/dist/modes/serve-mode.js +10 -11
- package/dist/modes/serve-mode.js.map +1 -1
- package/dist/modes/subagent-worker-mode.d.ts +1 -1
- package/dist/modes/subagent-worker-mode.js +8 -8
- package/dist/modes/subagent-worker-mode.js.map +1 -1
- package/dist/motion-agent/motion-agent.d.ts +3 -2
- package/dist/motion-agent/motion-agent.js +3 -2
- package/dist/motion-agent/motion-agent.js.map +1 -1
- package/dist/motion-agent/motion-bundle.d.ts +18 -0
- package/dist/motion-agent/motion-bundle.js +34 -0
- package/dist/motion-agent/motion-bundle.js.map +1 -0
- package/dist/subagent-entry-path.d.ts +1 -0
- package/dist/subagent-entry-path.js +13 -0
- package/dist/subagent-entry-path.js.map +1 -0
- package/dist/subagent-entry.d.ts +1 -1
- package/dist/subagent-entry.js +2 -1
- package/dist/subagent-entry.js.map +1 -1
- package/dist/ui/App.d.ts +8 -8
- package/dist/ui/App.js +20 -21
- package/dist/ui/App.js.map +1 -1
- package/dist/ui/app-items.d.ts +1 -1
- package/dist/ui/components/BackgroundTasksBar.d.ts +1 -1
- package/dist/ui/components/Banner.js +1 -1
- package/dist/ui/components/Banner.js.map +1 -1
- package/dist/ui/components/ChatFooterPane.d.ts +1 -1
- package/dist/ui/components/ChatScreen.d.ts +4 -4
- package/dist/ui/components/Footer.d.ts +1 -1
- package/dist/ui/components/Footer.js +1 -1
- package/dist/ui/components/Footer.js.map +1 -1
- package/dist/ui/components/FooterStatusRow.d.ts +1 -1
- package/dist/ui/components/InputArea.d.ts +2 -2
- package/dist/ui/components/InputArea.js +2 -2
- package/dist/ui/components/InputArea.js.map +1 -1
- package/dist/ui/components/ModelSelector.js +1 -1
- package/dist/ui/components/ModelSelector.js.map +1 -1
- package/dist/ui/components/RewindOverlay.d.ts +1 -1
- package/dist/ui/components/RewindOverlay.js.map +1 -1
- package/dist/ui/components/SessionSelector.d.ts +1 -1
- package/dist/ui/components/SettingsSelector.d.ts +1 -1
- package/dist/ui/components/SkillsOverlay.js +2 -2
- package/dist/ui/components/SkillsOverlay.js.map +1 -1
- package/dist/ui/components/StreamingArea.js +1 -1
- package/dist/ui/components/StreamingArea.js.map +1 -1
- package/dist/ui/components/TaskPickerMenu.d.ts +1 -1
- package/dist/ui/components/ToolExecution.js +1 -1
- package/dist/ui/components/ToolExecution.js.map +1 -1
- package/dist/ui/error-item.js +2 -2
- package/dist/ui/error-item.js.map +1 -1
- package/dist/ui/hooks/useAgentLoop.d.ts +2 -2
- package/dist/ui/hooks/useAgentLoop.js +8 -8
- package/dist/ui/hooks/useAgentLoop.js.map +1 -1
- package/dist/ui/hooks/useChatLayoutMeasurements.d.ts +1 -1
- package/dist/ui/hooks/useContextCompaction.d.ts +3 -3
- package/dist/ui/hooks/useContextCompaction.js +6 -7
- package/dist/ui/hooks/useContextCompaction.js.map +1 -1
- package/dist/ui/hooks/useModeState.d.ts +2 -2
- package/dist/ui/hooks/useModeState.js +2 -2
- package/dist/ui/hooks/useModeState.js.map +1 -1
- package/dist/ui/hooks/useSessionPersistence.d.ts +1 -1
- package/dist/ui/hooks/useSessionPersistence.js +3 -3
- package/dist/ui/hooks/useSessionPersistence.js.map +1 -1
- package/dist/ui/hooks/useTaskPickerController.d.ts +1 -1
- package/dist/ui/hooks/useTaskPickerController.js +1 -1
- package/dist/ui/hooks/useTaskPickerController.js.map +1 -1
- package/dist/ui/hooks/useTranscriptHistory.d.ts +1 -1
- package/dist/ui/item-helpers.js +1 -1
- package/dist/ui/item-helpers.js.map +1 -1
- package/dist/ui/language-pack-update.d.ts +1 -1
- package/dist/ui/language-pack-update.js +1 -1
- package/dist/ui/language-pack-update.js.map +1 -1
- package/dist/ui/login.js +1 -1
- package/dist/ui/login.js.map +1 -1
- package/dist/ui/mcp.d.ts +1 -1
- package/dist/ui/prompt-routing.d.ts +3 -3
- package/dist/ui/prompt-routing.js +3 -3
- package/dist/ui/prompt-routing.js.map +1 -1
- package/dist/ui/render.d.ts +8 -8
- package/dist/ui/sessions.js +1 -1
- package/dist/ui/sessions.js.map +1 -1
- package/dist/ui/stores/taskbar-store.d.ts +1 -1
- package/dist/ui/stores/taskbar-store.js.map +1 -1
- package/dist/ui/submit-prompt-command.d.ts +2 -2
- package/dist/ui/submit-prompt-command.js +2 -3
- package/dist/ui/submit-prompt-command.js.map +1 -1
- package/dist/ui/terminal-history-status-renderers.d.ts +1 -1
- package/dist/ui/terminal-history.js +2 -3
- package/dist/ui/terminal-history.js.map +1 -1
- package/dist/ui/theme/theme.d.ts +2 -1
- package/dist/ui/theme/theme.js.map +1 -1
- package/dist/ui/thinking-level.d.ts +1 -1
- package/dist/ui/thinking-level.js +1 -1
- package/dist/ui/thinking-level.js.map +1 -1
- package/dist/ui/tool-line-summary.js +1 -1
- package/dist/ui/tool-line-summary.js.map +1 -1
- package/dist/ui/transcript/presentation.js +1 -1
- package/dist/ui/transcript/presentation.js.map +1 -1
- package/dist/ui/utils/text-utils.js +1 -1
- package/dist/ui/utils/text-utils.js.map +1 -1
- package/dist/utils/git-overview.d.ts +2 -23
- package/dist/utils/git-overview.js +8 -1
- package/dist/utils/git-overview.js.map +1 -1
- package/package.json +13 -103
- package/assets/skills/bulletproof/SKILL.md +0 -132
- package/assets/skills/bulletproof/references/agent-surface.md +0 -113
- package/assets/skills/bulletproof/references/attack-classes.md +0 -226
- package/assets/skills/bulletproof/references/audit-protocol.md +0 -232
- package/assets/skills/bulletproof/references/platform-playbooks.md +0 -196
- package/assets/skills/bulletproof/references/provenance.md +0 -146
- package/assets/skills/bulletproof/references/secure-defaults.md +0 -137
- package/assets/skills/bulletproof/references/supply-chain.md +0 -84
- package/assets/skills/bulletproof/references/threat-landscape.md +0 -66
- package/assets/skills/bulletproof/references/verification.md +0 -74
- package/assets/skills/compliance-guard/SKILL.md +0 -115
- package/assets/skills/compliance-guard/references/artifacts.md +0 -199
- package/assets/skills/compliance-guard/references/eu-uk.md +0 -162
- package/assets/skills/compliance-guard/references/exposure-triage.md +0 -177
- package/assets/skills/compliance-guard/references/full-review.md +0 -155
- package/assets/skills/compliance-guard/references/lawsuit-vectors.md +0 -153
- package/assets/skills/compliance-guard/references/provenance.md +0 -135
- package/assets/skills/compliance-guard/references/sector-gates.md +0 -187
- package/assets/skills/compliance-guard/references/security-baseline.md +0 -117
- package/assets/skills/compliance-guard/references/trigger-map.md +0 -177
- package/assets/skills/compliance-guard/references/us.md +0 -194
- package/assets/skills/durable/SKILL.md +0 -114
- package/assets/skills/durable/references/agent-db-safety.md +0 -76
- package/assets/skills/durable/references/backups-and-runtime.md +0 -93
- package/assets/skills/durable/references/migrations-and-schema.md +0 -87
- package/assets/skills/gg-guide/SKILL.md +0 -43
- package/assets/skills/gg-guide/references/chat-motion-goals.md +0 -217
- package/assets/skills/gg-guide/references/checklist-and-safety.md +0 -177
- package/assets/skills/gg-guide/references/code-mode.md +0 -266
- package/assets/skills/gg-guide/references/getting-started.md +0 -291
- package/assets/skills/gg-guide/references/ken-and-autopilot.md +0 -172
- package/assets/skills/gg-guide/references/mcp-and-skills.md +0 -204
- package/assets/skills/gg-guide/references/models-and-sign-in.md +0 -200
- package/assets/skills/gg-guide/references/sessions-and-history.md +0 -213
- package/assets/skills/gg-guide/references/settings.md +0 -193
- package/assets/skills/gg-guide/references/troubleshooting-and-data.md +0 -186
- package/assets/skills/lean/SKILL.md +0 -117
- package/assets/skills/lean/references/memory-and-processes.md +0 -99
- package/assets/skills/lean/references/playbooks.md +0 -134
- package/dist/app-error.d.ts +0 -22
- package/dist/app-error.js +0 -41
- package/dist/app-error.js.map +0 -1
- package/dist/config.d.ts +0 -90
- package/dist/config.js +0 -240
- package/dist/config.js.map +0 -1
- package/dist/core/acceptance-checks.d.ts +0 -48
- package/dist/core/acceptance-checks.js +0 -151
- package/dist/core/acceptance-checks.js.map +0 -1
- package/dist/core/action-threats.d.ts +0 -68
- package/dist/core/action-threats.js +0 -894
- package/dist/core/action-threats.js.map +0 -1
- package/dist/core/agent-notifications.d.ts +0 -79
- package/dist/core/agent-notifications.js +0 -125
- package/dist/core/agent-notifications.js.map +0 -1
- package/dist/core/agent-session/helpers.d.ts +0 -26
- package/dist/core/agent-session/helpers.js +0 -47
- package/dist/core/agent-session/helpers.js.map +0 -1
- package/dist/core/agent-session/mcp-tools.d.ts +0 -87
- package/dist/core/agent-session/mcp-tools.js +0 -227
- package/dist/core/agent-session/mcp-tools.js.map +0 -1
- package/dist/core/agent-session/run-loop-monitor.d.ts +0 -63
- package/dist/core/agent-session/run-loop-monitor.js +0 -164
- package/dist/core/agent-session/run-loop-monitor.js.map +0 -1
- package/dist/core/agent-session/transcript-markers.d.ts +0 -57
- package/dist/core/agent-session/transcript-markers.js +0 -166
- package/dist/core/agent-session/transcript-markers.js.map +0 -1
- package/dist/core/agent-session/verification-tracker.d.ts +0 -71
- package/dist/core/agent-session/verification-tracker.js +0 -295
- package/dist/core/agent-session/verification-tracker.js.map +0 -1
- package/dist/core/agent-session.d.ts +0 -1398
- package/dist/core/agent-session.js +0 -5123
- package/dist/core/agent-session.js.map +0 -1
- package/dist/core/agents.d.ts +0 -63
- package/dist/core/agents.js +0 -160
- package/dist/core/agents.js.map +0 -1
- package/dist/core/ask-user.d.ts +0 -163
- package/dist/core/ask-user.js +0 -178
- package/dist/core/ask-user.js.map +0 -1
- package/dist/core/auth/index.d.ts +0 -11
- package/dist/core/auth/index.js +0 -11
- package/dist/core/auth/index.js.map +0 -1
- package/dist/core/auth-providers.d.ts +0 -2
- package/dist/core/auth-providers.js +0 -5
- package/dist/core/auth-providers.js.map +0 -1
- package/dist/core/auth-storage.d.ts +0 -1
- package/dist/core/auth-storage.js +0 -4
- package/dist/core/auth-storage.js.map +0 -1
- package/dist/core/auto-update.d.ts +0 -6
- package/dist/core/auto-update.js +0 -15
- package/dist/core/auto-update.js.map +0 -1
- package/dist/core/autopilot-cycle.d.ts +0 -127
- package/dist/core/autopilot-cycle.js +0 -182
- package/dist/core/autopilot-cycle.js.map +0 -1
- package/dist/core/autopilot-gate.d.ts +0 -106
- package/dist/core/autopilot-gate.js +0 -192
- package/dist/core/autopilot-gate.js.map +0 -1
- package/dist/core/autopilot-verdict.d.ts +0 -55
- package/dist/core/autopilot-verdict.js +0 -226
- package/dist/core/autopilot-verdict.js.map +0 -1
- package/dist/core/blocked-packages-file.d.ts +0 -33
- package/dist/core/blocked-packages-file.js +0 -274
- package/dist/core/blocked-packages-file.js.map +0 -1
- package/dist/core/bundled-agents.d.ts +0 -2
- package/dist/core/bundled-agents.js +0 -253
- package/dist/core/bundled-agents.js.map +0 -1
- package/dist/core/cache-diagnostics.d.ts +0 -72
- package/dist/core/cache-diagnostics.js +0 -200
- package/dist/core/cache-diagnostics.js.map +0 -1
- package/dist/core/cache-expiry.d.ts +0 -89
- package/dist/core/cache-expiry.js +0 -117
- package/dist/core/cache-expiry.js.map +0 -1
- package/dist/core/checklist-detection.d.ts +0 -11
- package/dist/core/checklist-detection.js +0 -238
- package/dist/core/checklist-detection.js.map +0 -1
- package/dist/core/checklist-git.d.ts +0 -19
- package/dist/core/checklist-git.js +0 -54
- package/dist/core/checklist-git.js.map +0 -1
- package/dist/core/checklist-items.d.ts +0 -181
- package/dist/core/checklist-items.js +0 -230
- package/dist/core/checklist-items.js.map +0 -1
- package/dist/core/checklist-prompt.d.ts +0 -14
- package/dist/core/checklist-prompt.js +0 -64
- package/dist/core/checklist-prompt.js.map +0 -1
- package/dist/core/checklist-snapshot.d.ts +0 -17
- package/dist/core/checklist-snapshot.js +0 -46
- package/dist/core/checklist-snapshot.js.map +0 -1
- package/dist/core/checklist-store.d.ts +0 -63
- package/dist/core/checklist-store.js +0 -273
- package/dist/core/checklist-store.js.map +0 -1
- package/dist/core/checkout-record.d.ts +0 -22
- package/dist/core/checkout-record.js +0 -68
- package/dist/core/checkout-record.js.map +0 -1
- package/dist/core/checkpoint-store.d.ts +0 -109
- package/dist/core/checkpoint-store.js +0 -260
- package/dist/core/checkpoint-store.js.map +0 -1
- package/dist/core/claude-code/complete.d.ts +0 -35
- package/dist/core/claude-code/complete.js +0 -125
- package/dist/core/claude-code/complete.js.map +0 -1
- package/dist/core/claude-code/events.d.ts +0 -67
- package/dist/core/claude-code/events.js +0 -460
- package/dist/core/claude-code/events.js.map +0 -1
- package/dist/core/claude-code/live-session.d.ts +0 -94
- package/dist/core/claude-code/live-session.js +0 -525
- package/dist/core/claude-code/live-session.js.map +0 -1
- package/dist/core/claude-code/loop.d.ts +0 -9
- package/dist/core/claude-code/loop.js +0 -15
- package/dist/core/claude-code/loop.js.map +0 -1
- package/dist/core/claude-code/session-sync.d.ts +0 -28
- package/dist/core/claude-code/session-sync.js +0 -53
- package/dist/core/claude-code/session-sync.js.map +0 -1
- package/dist/core/claude-code/tool-bridge.d.ts +0 -49
- package/dist/core/claude-code/tool-bridge.js +0 -352
- package/dist/core/claude-code/tool-bridge.js.map +0 -1
- package/dist/core/claude-code/transcripts.d.ts +0 -39
- package/dist/core/claude-code/transcripts.js +0 -195
- package/dist/core/claude-code/transcripts.js.map +0 -1
- package/dist/core/code-retrieval-chunkers.d.ts +0 -26
- package/dist/core/code-retrieval-chunkers.js +0 -264
- package/dist/core/code-retrieval-chunkers.js.map +0 -1
- package/dist/core/code-retrieval.d.ts +0 -18
- package/dist/core/code-retrieval.js +0 -124
- package/dist/core/code-retrieval.js.map +0 -1
- package/dist/core/codex-request-shape.d.ts +0 -7
- package/dist/core/codex-request-shape.js +0 -19
- package/dist/core/codex-request-shape.js.map +0 -1
- package/dist/core/compaction/active-context.d.ts +0 -16
- package/dist/core/compaction/active-context.js +0 -20
- package/dist/core/compaction/active-context.js.map +0 -1
- package/dist/core/compaction/compactor.d.ts +0 -281
- package/dist/core/compaction/compactor.js +0 -1452
- package/dist/core/compaction/compactor.js.map +0 -1
- package/dist/core/compaction/plan-step-policy.d.ts +0 -46
- package/dist/core/compaction/plan-step-policy.js +0 -57
- package/dist/core/compaction/plan-step-policy.js.map +0 -1
- package/dist/core/compaction/policy.d.ts +0 -36
- package/dist/core/compaction/policy.js +0 -144
- package/dist/core/compaction/policy.js.map +0 -1
- package/dist/core/compaction/query-aware-selector.d.ts +0 -32
- package/dist/core/compaction/query-aware-selector.js +0 -202
- package/dist/core/compaction/query-aware-selector.js.map +0 -1
- package/dist/core/compaction/token-estimator.d.ts +0 -36
- package/dist/core/compaction/token-estimator.js +0 -180
- package/dist/core/compaction/token-estimator.js.map +0 -1
- package/dist/core/compaction/tool-result-pruner.d.ts +0 -90
- package/dist/core/compaction/tool-result-pruner.js +0 -238
- package/dist/core/compaction/tool-result-pruner.js.map +0 -1
- package/dist/core/completion-review.d.ts +0 -24
- package/dist/core/completion-review.js +0 -2
- package/dist/core/completion-review.js.map +0 -1
- package/dist/core/context-files.d.ts +0 -8
- package/dist/core/context-files.js +0 -46
- package/dist/core/context-files.js.map +0 -1
- package/dist/core/context-limits.d.ts +0 -40
- package/dist/core/context-limits.js +0 -43
- package/dist/core/context-limits.js.map +0 -1
- package/dist/core/custom-commands.d.ts +0 -18
- package/dist/core/custom-commands.js +0 -57
- package/dist/core/custom-commands.js.map +0 -1
- package/dist/core/destructive-git-guard.d.ts +0 -113
- package/dist/core/destructive-git-guard.js +0 -874
- package/dist/core/destructive-git-guard.js.map +0 -1
- package/dist/core/encode-cwd.d.ts +0 -41
- package/dist/core/encode-cwd.js +0 -53
- package/dist/core/encode-cwd.js.map +0 -1
- package/dist/core/env-delta.d.ts +0 -34
- package/dist/core/env-delta.js +0 -84
- package/dist/core/env-delta.js.map +0 -1
- package/dist/core/event-bus.d.ts +0 -178
- package/dist/core/event-bus.js +0 -171
- package/dist/core/event-bus.js.map +0 -1
- package/dist/core/extensions/loader.d.ts +0 -7
- package/dist/core/extensions/loader.js +0 -68
- package/dist/core/extensions/loader.js.map +0 -1
- package/dist/core/extensions/plugin-bundles.d.ts +0 -13
- package/dist/core/extensions/plugin-bundles.js +0 -45
- package/dist/core/extensions/plugin-bundles.js.map +0 -1
- package/dist/core/extensions/types.d.ts +0 -18
- package/dist/core/extensions/types.js +0 -2
- package/dist/core/extensions/types.js.map +0 -1
- package/dist/core/foreign-session-import.d.ts +0 -119
- package/dist/core/foreign-session-import.js +0 -598
- package/dist/core/foreign-session-import.js.map +0 -1
- package/dist/core/foreign-transcript-blocks.d.ts +0 -50
- package/dist/core/foreign-transcript-blocks.js +0 -151
- package/dist/core/foreign-transcript-blocks.js.map +0 -1
- package/dist/core/frontmatter.d.ts +0 -22
- package/dist/core/frontmatter.js +0 -90
- package/dist/core/frontmatter.js.map +0 -1
- package/dist/core/goal-run-marker.d.ts +0 -32
- package/dist/core/goal-run-marker.js +0 -178
- package/dist/core/goal-run-marker.js.map +0 -1
- package/dist/core/goal-summary.d.ts +0 -32
- package/dist/core/goal-summary.js +0 -110
- package/dist/core/goal-summary.js.map +0 -1
- package/dist/core/goals-store.d.ts +0 -215
- package/dist/core/goals-store.js +0 -577
- package/dist/core/goals-store.js.map +0 -1
- package/dist/core/hashline.d.ts +0 -51
- package/dist/core/hashline.js +0 -76
- package/dist/core/hashline.js.map +0 -1
- package/dist/core/idle-wake.d.ts +0 -62
- package/dist/core/idle-wake.js +0 -103
- package/dist/core/idle-wake.js.map +0 -1
- package/dist/core/index.d.ts +0 -14
- package/dist/core/index.js +0 -14
- package/dist/core/index.js.map +0 -1
- package/dist/core/injection-detect.d.ts +0 -39
- package/dist/core/injection-detect.js +0 -241
- package/dist/core/injection-detect.js.map +0 -1
- package/dist/core/installed-threats.d.ts +0 -23
- package/dist/core/installed-threats.js +0 -71
- package/dist/core/installed-threats.js.map +0 -1
- package/dist/core/internal-diagnostics.d.ts +0 -159
- package/dist/core/internal-diagnostics.js +0 -495
- package/dist/core/internal-diagnostics.js.map +0 -1
- package/dist/core/keep-awake.d.ts +0 -88
- package/dist/core/keep-awake.js +0 -251
- package/dist/core/keep-awake.js.map +0 -1
- package/dist/core/ken-ask-answer.d.ts +0 -24
- package/dist/core/ken-ask-answer.js +0 -96
- package/dist/core/ken-ask-answer.js.map +0 -1
- package/dist/core/ken-context.d.ts +0 -119
- package/dist/core/ken-context.js +0 -447
- package/dist/core/ken-context.js.map +0 -1
- package/dist/core/ken-model.d.ts +0 -45
- package/dist/core/ken-model.js +0 -26
- package/dist/core/ken-model.js.map +0 -1
- package/dist/core/ken-prompt.d.ts +0 -21
- package/dist/core/ken-prompt.js +0 -370
- package/dist/core/ken-prompt.js.map +0 -1
- package/dist/core/language-detector.d.ts +0 -41
- package/dist/core/language-detector.js +0 -293
- package/dist/core/language-detector.js.map +0 -1
- package/dist/core/live-preview.d.ts +0 -26
- package/dist/core/live-preview.js +0 -80
- package/dist/core/live-preview.js.map +0 -1
- package/dist/core/local-endpoint-store.d.ts +0 -53
- package/dist/core/local-endpoint-store.js +0 -221
- package/dist/core/local-endpoint-store.js.map +0 -1
- package/dist/core/logger.d.ts +0 -22
- package/dist/core/logger.js +0 -95
- package/dist/core/logger.js.map +0 -1
- package/dist/core/loop-breaker.d.ts +0 -89
- package/dist/core/loop-breaker.js +0 -204
- package/dist/core/loop-breaker.js.map +0 -1
- package/dist/core/lsp/client.d.ts +0 -206
- package/dist/core/lsp/client.js +0 -685
- package/dist/core/lsp/client.js.map +0 -1
- package/dist/core/lsp/edit-telemetry.d.ts +0 -26
- package/dist/core/lsp/edit-telemetry.js +0 -52
- package/dist/core/lsp/edit-telemetry.js.map +0 -1
- package/dist/core/lsp/format.d.ts +0 -11
- package/dist/core/lsp/format.js +0 -30
- package/dist/core/lsp/format.js.map +0 -1
- package/dist/core/lsp/jsonrpc.d.ts +0 -68
- package/dist/core/lsp/jsonrpc.js +0 -153
- package/dist/core/lsp/jsonrpc.js.map +0 -1
- package/dist/core/lsp/manager.d.ts +0 -188
- package/dist/core/lsp/manager.js +0 -576
- package/dist/core/lsp/manager.js.map +0 -1
- package/dist/core/lsp/pool.d.ts +0 -114
- package/dist/core/lsp/pool.js +0 -259
- package/dist/core/lsp/pool.js.map +0 -1
- package/dist/core/lsp/project-root.d.ts +0 -9
- package/dist/core/lsp/project-root.js +0 -75
- package/dist/core/lsp/project-root.js.map +0 -1
- package/dist/core/lsp/reference-project.d.ts +0 -6
- package/dist/core/lsp/reference-project.js +0 -110
- package/dist/core/lsp/reference-project.js.map +0 -1
- package/dist/core/lsp/servers.d.ts +0 -44
- package/dist/core/lsp/servers.js +0 -289
- package/dist/core/lsp/servers.js.map +0 -1
- package/dist/core/lsp/test-support.d.ts +0 -17
- package/dist/core/lsp/test-support.js +0 -27
- package/dist/core/lsp/test-support.js.map +0 -1
- package/dist/core/mcp/catalog-cache.d.ts +0 -64
- package/dist/core/mcp/catalog-cache.js +0 -167
- package/dist/core/mcp/catalog-cache.js.map +0 -1
- package/dist/core/mcp/client.d.ts +0 -317
- package/dist/core/mcp/client.js +0 -1168
- package/dist/core/mcp/client.js.map +0 -1
- package/dist/core/mcp/content.d.ts +0 -23
- package/dist/core/mcp/content.js +0 -194
- package/dist/core/mcp/content.js.map +0 -1
- package/dist/core/mcp/defaults.d.ts +0 -26
- package/dist/core/mcp/defaults.js +0 -81
- package/dist/core/mcp/defaults.js.map +0 -1
- package/dist/core/mcp/deferred-catalog.d.ts +0 -53
- package/dist/core/mcp/deferred-catalog.js +0 -117
- package/dist/core/mcp/deferred-catalog.js.map +0 -1
- package/dist/core/mcp/elicitation-bridge.d.ts +0 -40
- package/dist/core/mcp/elicitation-bridge.js +0 -36
- package/dist/core/mcp/elicitation-bridge.js.map +0 -1
- package/dist/core/mcp/index.d.ts +0 -16
- package/dist/core/mcp/index.js +0 -10
- package/dist/core/mcp/index.js.map +0 -1
- package/dist/core/mcp/loopback.d.ts +0 -26
- package/dist/core/mcp/loopback.js +0 -66
- package/dist/core/mcp/loopback.js.map +0 -1
- package/dist/core/mcp/oauth-provider.d.ts +0 -55
- package/dist/core/mcp/oauth-provider.js +0 -106
- package/dist/core/mcp/oauth-provider.js.map +0 -1
- package/dist/core/mcp/oauth-store.d.ts +0 -44
- package/dist/core/mcp/oauth-store.js +0 -77
- package/dist/core/mcp/oauth-store.js.map +0 -1
- package/dist/core/mcp/parse-add-command.d.ts +0 -50
- package/dist/core/mcp/parse-add-command.js +0 -391
- package/dist/core/mcp/parse-add-command.js.map +0 -1
- package/dist/core/mcp/resolve-stdio.d.ts +0 -77
- package/dist/core/mcp/resolve-stdio.js +0 -359
- package/dist/core/mcp/resolve-stdio.js.map +0 -1
- package/dist/core/mcp/shared-pool.d.ts +0 -157
- package/dist/core/mcp/shared-pool.js +0 -236
- package/dist/core/mcp/shared-pool.js.map +0 -1
- package/dist/core/mcp/store.d.ts +0 -100
- package/dist/core/mcp/store.js +0 -202
- package/dist/core/mcp/store.js.map +0 -1
- package/dist/core/mcp/tool-guard.d.ts +0 -58
- package/dist/core/mcp/tool-guard.js +0 -215
- package/dist/core/mcp/tool-guard.js.map +0 -1
- package/dist/core/mcp/types.d.ts +0 -57
- package/dist/core/mcp/types.js +0 -2
- package/dist/core/mcp/types.js.map +0 -1
- package/dist/core/message-images.d.ts +0 -11
- package/dist/core/message-images.js +0 -52
- package/dist/core/message-images.js.map +0 -1
- package/dist/core/model-registry.d.ts +0 -1
- package/dist/core/model-registry.js +0 -5
- package/dist/core/model-registry.js.map +0 -1
- package/dist/core/model-unavailable.d.ts +0 -14
- package/dist/core/model-unavailable.js +0 -23
- package/dist/core/model-unavailable.js.map +0 -1
- package/dist/core/network-guard.d.ts +0 -28
- package/dist/core/network-guard.js +0 -251
- package/dist/core/network-guard.js.map +0 -1
- package/dist/core/node-debugger.d.ts +0 -148
- package/dist/core/node-debugger.js +0 -642
- package/dist/core/node-debugger.js.map +0 -1
- package/dist/core/oauth/openai.d.ts +0 -1
- package/dist/core/oauth/openai.js +0 -3
- package/dist/core/oauth/openai.js.map +0 -1
- package/dist/core/oauth/types.d.ts +0 -1
- package/dist/core/oauth/types.js +0 -2
- package/dist/core/oauth/types.js.map +0 -1
- package/dist/core/opencode-catalog-store.d.ts +0 -20
- package/dist/core/opencode-catalog-store.js +0 -82
- package/dist/core/opencode-catalog-store.js.map +0 -1
- package/dist/core/openrouter-catalog-store.d.ts +0 -24
- package/dist/core/openrouter-catalog-store.js +0 -140
- package/dist/core/openrouter-catalog-store.js.map +0 -1
- package/dist/core/package-cooldown.d.ts +0 -69
- package/dist/core/package-cooldown.js +0 -297
- package/dist/core/package-cooldown.js.map +0 -1
- package/dist/core/package-threats.d.ts +0 -92
- package/dist/core/package-threats.js +0 -1340
- package/dist/core/package-threats.js.map +0 -1
- package/dist/core/parked-requests.d.ts +0 -43
- package/dist/core/parked-requests.js +0 -34
- package/dist/core/parked-requests.js.map +0 -1
- package/dist/core/persistent-shell.d.ts +0 -81
- package/dist/core/persistent-shell.js +0 -452
- package/dist/core/persistent-shell.js.map +0 -1
- package/dist/core/plan-delta.d.ts +0 -23
- package/dist/core/plan-delta.js +0 -36
- package/dist/core/plan-delta.js.map +0 -1
- package/dist/core/plan-handoff.d.ts +0 -38
- package/dist/core/plan-handoff.js +0 -21
- package/dist/core/plan-handoff.js.map +0 -1
- package/dist/core/plan-submission-gate.d.ts +0 -28
- package/dist/core/plan-submission-gate.js +0 -27
- package/dist/core/plan-submission-gate.js.map +0 -1
- package/dist/core/platform-clis.d.ts +0 -15
- package/dist/core/platform-clis.js +0 -299
- package/dist/core/platform-clis.js.map +0 -1
- package/dist/core/process-gate.d.ts +0 -61
- package/dist/core/process-gate.js +0 -103
- package/dist/core/process-gate.js.map +0 -1
- package/dist/core/process-manager.d.ts +0 -242
- package/dist/core/process-manager.js +0 -902
- package/dist/core/process-manager.js.map +0 -1
- package/dist/core/progress/engine.d.ts +0 -22
- package/dist/core/progress/engine.js +0 -131
- package/dist/core/progress/engine.js.map +0 -1
- package/dist/core/progress/git-xp.d.ts +0 -15
- package/dist/core/progress/git-xp.js +0 -100
- package/dist/core/progress/git-xp.js.map +0 -1
- package/dist/core/progress/ranks.d.ts +0 -31
- package/dist/core/progress/ranks.js +0 -310
- package/dist/core/progress/ranks.js.map +0 -1
- package/dist/core/progress/rebuild.d.ts +0 -8
- package/dist/core/progress/rebuild.js +0 -125
- package/dist/core/progress/rebuild.js.map +0 -1
- package/dist/core/progress/store.d.ts +0 -34
- package/dist/core/progress/store.js +0 -200
- package/dist/core/progress/store.js.map +0 -1
- package/dist/core/progress/types.d.ts +0 -108
- package/dist/core/progress/types.js +0 -3
- package/dist/core/progress/types.js.map +0 -1
- package/dist/core/project-discovery.d.ts +0 -88
- package/dist/core/project-discovery.js +0 -907
- package/dist/core/project-discovery.js.map +0 -1
- package/dist/core/project-files.d.ts +0 -15
- package/dist/core/project-files.js +0 -37
- package/dist/core/project-files.js.map +0 -1
- package/dist/core/project-health-scan.d.ts +0 -109
- package/dist/core/project-health-scan.js +0 -673
- package/dist/core/project-health-scan.js.map +0 -1
- package/dist/core/project-health-score.d.ts +0 -41
- package/dist/core/project-health-score.js +0 -257
- package/dist/core/project-health-score.js.map +0 -1
- package/dist/core/prompt-command-expansion.d.ts +0 -13
- package/dist/core/prompt-command-expansion.js +0 -48
- package/dist/core/prompt-command-expansion.js.map +0 -1
- package/dist/core/prompt-commands.d.ts +0 -13
- package/dist/core/prompt-commands.js +0 -370
- package/dist/core/prompt-commands.js.map +0 -1
- package/dist/core/radio-players.d.ts +0 -28
- package/dist/core/radio-players.js +0 -133
- package/dist/core/radio-players.js.map +0 -1
- package/dist/core/radio.d.ts +0 -50
- package/dist/core/radio.js +0 -480
- package/dist/core/radio.js.map +0 -1
- package/dist/core/regrounding.d.ts +0 -37
- package/dist/core/regrounding.js +0 -89
- package/dist/core/regrounding.js.map +0 -1
- package/dist/core/resolve-start.d.ts +0 -28
- package/dist/core/resolve-start.js +0 -35
- package/dist/core/resolve-start.js.map +0 -1
- package/dist/core/run-claim.d.ts +0 -36
- package/dist/core/run-claim.js +0 -46
- package/dist/core/run-claim.js.map +0 -1
- package/dist/core/run-lifecycle.d.ts +0 -58
- package/dist/core/run-lifecycle.js +0 -104
- package/dist/core/run-lifecycle.js.map +0 -1
- package/dist/core/run-status.d.ts +0 -17
- package/dist/core/run-status.js +0 -28
- package/dist/core/run-status.js.map +0 -1
- package/dist/core/runtime-mode.d.ts +0 -21
- package/dist/core/runtime-mode.js +0 -43
- package/dist/core/runtime-mode.js.map +0 -1
- package/dist/core/sandbox-domains.d.ts +0 -13
- package/dist/core/sandbox-domains.js +0 -76
- package/dist/core/sandbox-domains.js.map +0 -1
- package/dist/core/sandbox-feedback.d.ts +0 -21
- package/dist/core/sandbox-feedback.js +0 -69
- package/dist/core/sandbox-feedback.js.map +0 -1
- package/dist/core/sandbox.d.ts +0 -106
- package/dist/core/sandbox.js +0 -383
- package/dist/core/sandbox.js.map +0 -1
- package/dist/core/semantic-loop-check.d.ts +0 -58
- package/dist/core/semantic-loop-check.js +0 -103
- package/dist/core/semantic-loop-check.js.map +0 -1
- package/dist/core/session-compaction.d.ts +0 -23
- package/dist/core/session-compaction.js +0 -54
- package/dist/core/session-compaction.js.map +0 -1
- package/dist/core/session-export.d.ts +0 -97
- package/dist/core/session-export.js +0 -368
- package/dist/core/session-export.js.map +0 -1
- package/dist/core/session-history.d.ts +0 -160
- package/dist/core/session-history.js +0 -467
- package/dist/core/session-history.js.map +0 -1
- package/dist/core/session-manager.d.ts +0 -509
- package/dist/core/session-manager.js +0 -1367
- package/dist/core/session-manager.js.map +0 -1
- package/dist/core/session-preview.d.ts +0 -12
- package/dist/core/session-preview.js +0 -58
- package/dist/core/session-preview.js.map +0 -1
- package/dist/core/session-storage.d.ts +0 -78
- package/dist/core/session-storage.js +0 -659
- package/dist/core/session-storage.js.map +0 -1
- package/dist/core/session-summary-index.d.ts +0 -51
- package/dist/core/session-summary-index.js +0 -192
- package/dist/core/session-summary-index.js.map +0 -1
- package/dist/core/settings-manager.d.ts +0 -113
- package/dist/core/settings-manager.js +0 -281
- package/dist/core/settings-manager.js.map +0 -1
- package/dist/core/shared-checkout-guard.d.ts +0 -78
- package/dist/core/shared-checkout-guard.js +0 -219
- package/dist/core/shared-checkout-guard.js.map +0 -1
- package/dist/core/shell-path.d.ts +0 -13
- package/dist/core/shell-path.js +0 -175
- package/dist/core/shell-path.js.map +0 -1
- package/dist/core/shell-threats-popular-packages.d.ts +0 -11
- package/dist/core/shell-threats-popular-packages.js +0 -675
- package/dist/core/shell-threats-popular-packages.js.map +0 -1
- package/dist/core/shell-threats.d.ts +0 -21
- package/dist/core/shell-threats.js +0 -235
- package/dist/core/shell-threats.js.map +0 -1
- package/dist/core/shell.d.ts +0 -54
- package/dist/core/shell.js +0 -99
- package/dist/core/shell.js.map +0 -1
- package/dist/core/shutdown.d.ts +0 -70
- package/dist/core/shutdown.js +0 -144
- package/dist/core/shutdown.js.map +0 -1
- package/dist/core/skill-scan.d.ts +0 -112
- package/dist/core/skill-scan.js +0 -781
- package/dist/core/skill-scan.js.map +0 -1
- package/dist/core/skills.d.ts +0 -100
- package/dist/core/skills.js +0 -299
- package/dist/core/skills.js.map +0 -1
- package/dist/core/slash-commands.d.ts +0 -58
- package/dist/core/slash-commands.js +0 -242
- package/dist/core/slash-commands.js.map +0 -1
- package/dist/core/steering.d.ts +0 -47
- package/dist/core/steering.js +0 -65
- package/dist/core/steering.js.map +0 -1
- package/dist/core/steroids.d.ts +0 -66
- package/dist/core/steroids.js +0 -243
- package/dist/core/steroids.js.map +0 -1
- package/dist/core/stream-diag-level.d.ts +0 -3
- package/dist/core/stream-diag-level.js +0 -24
- package/dist/core/stream-diag-level.js.map +0 -1
- package/dist/core/stream-rules.d.ts +0 -30
- package/dist/core/stream-rules.js +0 -151
- package/dist/core/stream-rules.js.map +0 -1
- package/dist/core/subagent-manager.d.ts +0 -239
- package/dist/core/subagent-manager.js +0 -1060
- package/dist/core/subagent-manager.js.map +0 -1
- package/dist/core/subagent-policy.d.ts +0 -9
- package/dist/core/subagent-policy.js +0 -41
- package/dist/core/subagent-policy.js.map +0 -1
- package/dist/core/subagent-receipt.d.ts +0 -54
- package/dist/core/subagent-receipt.js +0 -274
- package/dist/core/subagent-receipt.js.map +0 -1
- package/dist/core/subagent-store.d.ts +0 -41
- package/dist/core/subagent-store.js +0 -284
- package/dist/core/subagent-store.js.map +0 -1
- package/dist/core/subagent-turn-record.d.ts +0 -18
- package/dist/core/subagent-turn-record.js +0 -82
- package/dist/core/subagent-turn-record.js.map +0 -1
- package/dist/core/tasks-store.d.ts +0 -31
- package/dist/core/tasks-store.js +0 -97
- package/dist/core/tasks-store.js.map +0 -1
- package/dist/core/telegram-config.d.ts +0 -20
- package/dist/core/telegram-config.js +0 -52
- package/dist/core/telegram-config.js.map +0 -1
- package/dist/core/telegram.d.ts +0 -1
- package/dist/core/telegram.js +0 -3
- package/dist/core/telegram.js.map +0 -1
- package/dist/core/temp-paths.d.ts +0 -5
- package/dist/core/temp-paths.js +0 -50
- package/dist/core/temp-paths.js.map +0 -1
- package/dist/core/test-impact.d.ts +0 -73
- package/dist/core/test-impact.js +0 -467
- package/dist/core/test-impact.js.map +0 -1
- package/dist/core/thinking-level.d.ts +0 -1
- package/dist/core/thinking-level.js +0 -4
- package/dist/core/thinking-level.js.map +0 -1
- package/dist/core/threat-feed.d.ts +0 -65
- package/dist/core/threat-feed.js +0 -335
- package/dist/core/threat-feed.js.map +0 -1
- package/dist/core/trophies/catalog-more.d.ts +0 -2
- package/dist/core/trophies/catalog-more.js +0 -837
- package/dist/core/trophies/catalog-more.js.map +0 -1
- package/dist/core/trophies/catalog.d.ts +0 -4
- package/dist/core/trophies/catalog.js +0 -649
- package/dist/core/trophies/catalog.js.map +0 -1
- package/dist/core/trophies/engine.d.ts +0 -70
- package/dist/core/trophies/engine.js +0 -347
- package/dist/core/trophies/engine.js.map +0 -1
- package/dist/core/trophies/store.d.ts +0 -17
- package/dist/core/trophies/store.js +0 -113
- package/dist/core/trophies/store.js.map +0 -1
- package/dist/core/trophies/types.d.ts +0 -119
- package/dist/core/trophies/types.js +0 -76
- package/dist/core/trophies/types.js.map +0 -1
- package/dist/core/ui-adoption.d.ts +0 -32
- package/dist/core/ui-adoption.js +0 -302
- package/dist/core/ui-adoption.js.map +0 -1
- package/dist/core/ui-compatibility.d.ts +0 -10
- package/dist/core/ui-compatibility.js +0 -51
- package/dist/core/ui-compatibility.js.map +0 -1
- package/dist/core/ui-registry.d.ts +0 -101
- package/dist/core/ui-registry.js +0 -292
- package/dist/core/ui-registry.js.map +0 -1
- package/dist/core/user-shell-context.d.ts +0 -8
- package/dist/core/user-shell-context.js +0 -12
- package/dist/core/user-shell-context.js.map +0 -1
- package/dist/core/verification-evidence.d.ts +0 -49
- package/dist/core/verification-evidence.js +0 -816
- package/dist/core/verification-evidence.js.map +0 -1
- package/dist/core/verification-gate.d.ts +0 -77
- package/dist/core/verification-gate.js +0 -504
- package/dist/core/verification-gate.js.map +0 -1
- package/dist/core/verification-snapshot.d.ts +0 -7
- package/dist/core/verification-snapshot.js +0 -109
- package/dist/core/verification-snapshot.js.map +0 -1
- package/dist/core/verify-commands.d.ts +0 -34
- package/dist/core/verify-commands.js +0 -203
- package/dist/core/verify-commands.js.map +0 -1
- package/dist/core/voice-transcriber.d.ts +0 -1
- package/dist/core/voice-transcriber.js +0 -4
- package/dist/core/voice-transcriber.js.map +0 -1
- package/dist/core/workspace-guard.d.ts +0 -56
- package/dist/core/workspace-guard.js +0 -334
- package/dist/core/workspace-guard.js.map +0 -1
- package/dist/session.d.ts +0 -44
- package/dist/session.js +0 -105
- package/dist/session.js.map +0 -1
- package/dist/system-prompt.d.ts +0 -104
- package/dist/system-prompt.js +0 -480
- package/dist/system-prompt.js.map +0 -1
- package/dist/test-support/fake-home.d.ts +0 -19
- package/dist/test-support/fake-home.js +0 -37
- package/dist/test-support/fake-home.js.map +0 -1
- package/dist/test-support/keep-alive.d.ts +0 -14
- package/dist/test-support/keep-alive.js +0 -17
- package/dist/test-support/keep-alive.js.map +0 -1
- package/dist/test-support/slow-git.d.ts +0 -1
- package/dist/test-support/slow-git.js +0 -21
- package/dist/test-support/slow-git.js.map +0 -1
- package/dist/test-support/system-tools.d.ts +0 -6
- package/dist/test-support/system-tools.js +0 -36
- package/dist/test-support/system-tools.js.map +0 -1
- package/dist/tools/ask-user.d.ts +0 -34
- package/dist/tools/ask-user.js +0 -99
- package/dist/tools/ask-user.js.map +0 -1
- package/dist/tools/background-watch-lint.d.ts +0 -18
- package/dist/tools/background-watch-lint.js +0 -102
- package/dist/tools/background-watch-lint.js.map +0 -1
- package/dist/tools/bash-read-evidence.d.ts +0 -23
- package/dist/tools/bash-read-evidence.js +0 -180
- package/dist/tools/bash-read-evidence.js.map +0 -1
- package/dist/tools/bash.d.ts +0 -64
- package/dist/tools/bash.js +0 -552
- package/dist/tools/bash.js.map +0 -1
- package/dist/tools/browser-api.d.ts +0 -27
- package/dist/tools/browser-api.js +0 -449
- package/dist/tools/browser-api.js.map +0 -1
- package/dist/tools/browser-sandbox.d.ts +0 -16
- package/dist/tools/browser-sandbox.js +0 -158
- package/dist/tools/browser-sandbox.js.map +0 -1
- package/dist/tools/browser-session.d.ts +0 -84
- package/dist/tools/browser-session.js +0 -304
- package/dist/tools/browser-session.js.map +0 -1
- package/dist/tools/browser-snapshot.d.ts +0 -19
- package/dist/tools/browser-snapshot.js +0 -109
- package/dist/tools/browser-snapshot.js.map +0 -1
- package/dist/tools/browser.d.ts +0 -11
- package/dist/tools/browser.js +0 -106
- package/dist/tools/browser.js.map +0 -1
- package/dist/tools/checklist.d.ts +0 -49
- package/dist/tools/checklist.js +0 -154
- package/dist/tools/checklist.js.map +0 -1
- package/dist/tools/compress.d.ts +0 -56
- package/dist/tools/compress.js +0 -226
- package/dist/tools/compress.js.map +0 -1
- package/dist/tools/debug.d.ts +0 -54
- package/dist/tools/debug.js +0 -230
- package/dist/tools/debug.js.map +0 -1
- package/dist/tools/document-text.d.ts +0 -6
- package/dist/tools/document-text.js +0 -154
- package/dist/tools/document-text.js.map +0 -1
- package/dist/tools/edit-diff.d.ts +0 -123
- package/dist/tools/edit-diff.js +0 -476
- package/dist/tools/edit-diff.js.map +0 -1
- package/dist/tools/edit-targets.d.ts +0 -10
- package/dist/tools/edit-targets.js +0 -31
- package/dist/tools/edit-targets.js.map +0 -1
- package/dist/tools/edit.d.ts +0 -38
- package/dist/tools/edit.js +0 -695
- package/dist/tools/edit.js.map +0 -1
- package/dist/tools/enter-plan.d.ts +0 -7
- package/dist/tools/enter-plan.js +0 -20
- package/dist/tools/enter-plan.js.map +0 -1
- package/dist/tools/exit-plan.d.ts +0 -7
- package/dist/tools/exit-plan.js +0 -51
- package/dist/tools/exit-plan.js.map +0 -1
- package/dist/tools/find.d.ts +0 -17
- package/dist/tools/find.js +0 -100
- package/dist/tools/find.js.map +0 -1
- package/dist/tools/generate-image.d.ts +0 -83
- package/dist/tools/generate-image.js +0 -625
- package/dist/tools/generate-image.js.map +0 -1
- package/dist/tools/grep-scan.d.ts +0 -96
- package/dist/tools/grep-scan.js +0 -283
- package/dist/tools/grep-scan.js.map +0 -1
- package/dist/tools/grep.d.ts +0 -48
- package/dist/tools/grep.js +0 -1013
- package/dist/tools/grep.js.map +0 -1
- package/dist/tools/html-extract.d.ts +0 -57
- package/dist/tools/html-extract.js +0 -130
- package/dist/tools/html-extract.js.map +0 -1
- package/dist/tools/index.d.ts +0 -198
- package/dist/tools/index.js +0 -216
- package/dist/tools/index.js.map +0 -1
- package/dist/tools/live-preview.d.ts +0 -23
- package/dist/tools/live-preview.js +0 -41
- package/dist/tools/live-preview.js.map +0 -1
- package/dist/tools/ls.d.ts +0 -9
- package/dist/tools/ls.js +0 -59
- package/dist/tools/ls.js.map +0 -1
- package/dist/tools/operations.d.ts +0 -86
- package/dist/tools/operations.js +0 -117
- package/dist/tools/operations.js.map +0 -1
- package/dist/tools/overflow.d.ts +0 -17
- package/dist/tools/overflow.js +0 -68
- package/dist/tools/overflow.js.map +0 -1
- package/dist/tools/path-utils.d.ts +0 -30
- package/dist/tools/path-utils.js +0 -74
- package/dist/tools/path-utils.js.map +0 -1
- package/dist/tools/pdf-extract.d.ts +0 -17
- package/dist/tools/pdf-extract.js +0 -43
- package/dist/tools/pdf-extract.js.map +0 -1
- package/dist/tools/prompt-hints.d.ts +0 -46
- package/dist/tools/prompt-hints.js +0 -171
- package/dist/tools/prompt-hints.js.map +0 -1
- package/dist/tools/read-only-bash.d.ts +0 -31
- package/dist/tools/read-only-bash.js +0 -338
- package/dist/tools/read-only-bash.js.map +0 -1
- package/dist/tools/read-tracker.d.ts +0 -43
- package/dist/tools/read-tracker.js +0 -120
- package/dist/tools/read-tracker.js.map +0 -1
- package/dist/tools/read.d.ts +0 -18
- package/dist/tools/read.js +0 -316
- package/dist/tools/read.js.map +0 -1
- package/dist/tools/redaction-guard.d.ts +0 -10
- package/dist/tools/redaction-guard.js +0 -55
- package/dist/tools/redaction-guard.js.map +0 -1
- package/dist/tools/routine-output.d.ts +0 -39
- package/dist/tools/routine-output.js +0 -281
- package/dist/tools/routine-output.js.map +0 -1
- package/dist/tools/safe-env.d.ts +0 -1
- package/dist/tools/safe-env.js +0 -79
- package/dist/tools/safe-env.js.map +0 -1
- package/dist/tools/session-stats.d.ts +0 -26
- package/dist/tools/session-stats.js +0 -51
- package/dist/tools/session-stats.js.map +0 -1
- package/dist/tools/side-web-search.d.ts +0 -34
- package/dist/tools/side-web-search.js +0 -146
- package/dist/tools/side-web-search.js.map +0 -1
- package/dist/tools/skill.d.ts +0 -12
- package/dist/tools/skill.js +0 -94
- package/dist/tools/skill.js.map +0 -1
- package/dist/tools/source-path.d.ts +0 -8
- package/dist/tools/source-path.js +0 -128
- package/dist/tools/source-path.js.map +0 -1
- package/dist/tools/steroids.d.ts +0 -44
- package/dist/tools/steroids.js +0 -356
- package/dist/tools/steroids.js.map +0 -1
- package/dist/tools/subagent-control.d.ts +0 -5
- package/dist/tools/subagent-control.js +0 -211
- package/dist/tools/subagent-control.js.map +0 -1
- package/dist/tools/subagent-shared.d.ts +0 -110
- package/dist/tools/subagent-shared.js +0 -180
- package/dist/tools/subagent-shared.js.map +0 -1
- package/dist/tools/subagent.d.ts +0 -37
- package/dist/tools/subagent.js +0 -406
- package/dist/tools/subagent.js.map +0 -1
- package/dist/tools/task-output.d.ts +0 -10
- package/dist/tools/task-output.js +0 -74
- package/dist/tools/task-output.js.map +0 -1
- package/dist/tools/task-send.d.ts +0 -11
- package/dist/tools/task-send.js +0 -36
- package/dist/tools/task-send.js.map +0 -1
- package/dist/tools/task-stop.d.ts +0 -8
- package/dist/tools/task-stop.js +0 -15
- package/dist/tools/task-stop.js.map +0 -1
- package/dist/tools/tasks.d.ts +0 -15
- package/dist/tools/tasks.js +0 -94
- package/dist/tools/tasks.js.map +0 -1
- package/dist/tools/tool-search.d.ts +0 -26
- package/dist/tools/tool-search.js +0 -81
- package/dist/tools/tool-search.js.map +0 -1
- package/dist/tools/tool-tiers.d.ts +0 -65
- package/dist/tools/tool-tiers.js +0 -121
- package/dist/tools/tool-tiers.js.map +0 -1
- package/dist/tools/truncate.d.ts +0 -39
- package/dist/tools/truncate.js +0 -242
- package/dist/tools/truncate.js.map +0 -1
- package/dist/tools/ui-adopt.d.ts +0 -16
- package/dist/tools/ui-adopt.js +0 -66
- package/dist/tools/ui-adopt.js.map +0 -1
- package/dist/tools/ui-registry.d.ts +0 -15
- package/dist/tools/ui-registry.js +0 -39
- package/dist/tools/ui-registry.js.map +0 -1
- package/dist/tools/verification-review.d.ts +0 -2
- package/dist/tools/verification-review.js +0 -41
- package/dist/tools/verification-review.js.map +0 -1
- package/dist/tools/web-fetch.d.ts +0 -52
- package/dist/tools/web-fetch.js +0 -986
- package/dist/tools/web-fetch.js.map +0 -1
- package/dist/tools/web-search.d.ts +0 -35
- package/dist/tools/web-search.js +0 -926
- package/dist/tools/web-search.js.map +0 -1
- package/dist/tools/write.d.ts +0 -16
- package/dist/tools/write.js +0 -196
- package/dist/tools/write.js.map +0 -1
- package/dist/types.d.ts +0 -44
- package/dist/types.js +0 -2
- package/dist/types.js.map +0 -1
- package/dist/utils/git.d.ts +0 -102
- package/dist/utils/git.js +0 -325
- package/dist/utils/git.js.map +0 -1
- package/dist/utils/github-ci.d.ts +0 -18
- package/dist/utils/github-ci.js +0 -138
- package/dist/utils/github-ci.js.map +0 -1
- package/dist/utils/github.d.ts +0 -19
- package/dist/utils/github.js +0 -67
- package/dist/utils/github.js.map +0 -1
- package/dist/utils/image.d.ts +0 -166
- package/dist/utils/image.js +0 -673
- package/dist/utils/image.js.map +0 -1
- package/dist/utils/open-browser.d.ts +0 -13
- package/dist/utils/open-browser.js +0 -31
- package/dist/utils/open-browser.js.map +0 -1
- package/dist/utils/plan-steps.d.ts +0 -90
- package/dist/utils/plan-steps.js +0 -209
- package/dist/utils/plan-steps.js.map +0 -1
- package/dist/utils/process.d.ts +0 -48
- package/dist/utils/process.js +0 -175
- package/dist/utils/process.js.map +0 -1
- package/dist/utils/prompt-enhancer.d.ts +0 -53
- package/dist/utils/prompt-enhancer.js +0 -178
- package/dist/utils/prompt-enhancer.js.map +0 -1
- package/dist/utils/text.d.ts +0 -61
- package/dist/utils/text.js +0 -68
- package/dist/utils/text.js.map +0 -1
- package/dist/web.d.ts +0 -5
- package/dist/web.js +0 -5
- package/dist/web.js.map +0 -1
package/dist/core/lsp/manager.js
DELETED
|
@@ -1,576 +0,0 @@
|
|
|
1
|
-
import path from "node:path";
|
|
2
|
-
import { log } from "../logger.js";
|
|
3
|
-
import { formatDiagnostics } from "./format.js";
|
|
4
|
-
import { recordEditRegression } from "./edit-telemetry.js";
|
|
5
|
-
import { lspClientPool } from "./pool.js";
|
|
6
|
-
import { LSP_SERVER_CATALOG, serverForFile } from "./servers.js";
|
|
7
|
-
import { findServerProjectRoot } from "./project-root.js";
|
|
8
|
-
/** Errors only: warnings and hints never counted as breakage, matching format.ts. */
|
|
9
|
-
function errorCount(diagnostics) {
|
|
10
|
-
return diagnostics.filter((d) => (d.severity ?? 1) === 1).length;
|
|
11
|
-
}
|
|
12
|
-
const DEFAULT_WARM_BUDGET_MS = 3000;
|
|
13
|
-
const DEFAULT_FIRST_BUDGET_MS = 8000;
|
|
14
|
-
/**
|
|
15
|
-
* How long to wait for a corrected publish after a server's FIRST result for a
|
|
16
|
-
* project comes back empty. tsserver ends its project-load progress, publishes
|
|
17
|
-
* an empty set for the open file, and only then type-checks and publishes for
|
|
18
|
-
* real, so that first empty publish means "not analysed yet" rather than
|
|
19
|
-
* "clean". Only paid on a cold client that reported progress, and only when the
|
|
20
|
-
* answer would otherwise have been `clean`.
|
|
21
|
-
*/
|
|
22
|
-
const DEFAULT_SETTLE_MS = 1500;
|
|
23
|
-
const DEFAULT_SNAPSHOT_LIMIT = 100;
|
|
24
|
-
/**
|
|
25
|
-
* How long a synchronous caller (Ink TUI / interactive edit tools) holds an
|
|
26
|
-
* edit result for diagnostics. A warm server usually answers well inside this;
|
|
27
|
-
* a slower answer is not lost — it is drained into the next write's result.
|
|
28
|
-
* The old behaviour held each edit for up to 3s warm / 8s cold + 1.5s settle.
|
|
29
|
-
*/
|
|
30
|
-
export const DEFAULT_INLINE_BUDGET_MS = 800;
|
|
31
|
-
/**
|
|
32
|
-
* Per-session view over the process-wide language-server pool (see pool.ts).
|
|
33
|
-
*
|
|
34
|
-
* The manager owns only session-scoped state — per-file outcome snapshots and
|
|
35
|
-
* which keys have gone warm — while the servers themselves are shared by every
|
|
36
|
-
* session in the process and reclaimed when idle. That split is what stops two
|
|
37
|
-
* windows open on one repo from running two full tsserver stacks.
|
|
38
|
-
*/
|
|
39
|
-
export class LspManager {
|
|
40
|
-
cwd;
|
|
41
|
-
catalog;
|
|
42
|
-
warmBudgetMs;
|
|
43
|
-
firstBudgetMs;
|
|
44
|
-
settleMs;
|
|
45
|
-
snapshotLimit;
|
|
46
|
-
pool;
|
|
47
|
-
/**
|
|
48
|
-
* Keys that have completed a diagnostics pass, mapped to the pool generation
|
|
49
|
-
* that served it.
|
|
50
|
-
*
|
|
51
|
-
* Storing the generation rather than a bare flag is what keeps "warm" honest
|
|
52
|
-
* across idle reclamation: once the pool retires a server, the replacement is
|
|
53
|
-
* genuinely cold again, and treating it as warm would give it the 3s budget
|
|
54
|
-
* instead of 8s AND skip the cold-load settle guard — turning tsserver's
|
|
55
|
-
* premature empty publish into a reported "clean", which is a false all-clear.
|
|
56
|
-
*/
|
|
57
|
-
warmKeys = new Map();
|
|
58
|
-
latestOutcomes = new Map();
|
|
59
|
-
diagnosticRequests = new Map();
|
|
60
|
-
queuedDiagnostics = new Map();
|
|
61
|
-
diagnosticsOverflow = false;
|
|
62
|
-
shutDown = false;
|
|
63
|
-
constructor(cwd, options) {
|
|
64
|
-
this.cwd = cwd;
|
|
65
|
-
this.catalog = options?.catalog ?? LSP_SERVER_CATALOG;
|
|
66
|
-
this.warmBudgetMs = options?.warmBudgetMs ?? DEFAULT_WARM_BUDGET_MS;
|
|
67
|
-
this.firstBudgetMs = options?.firstBudgetMs ?? DEFAULT_FIRST_BUDGET_MS;
|
|
68
|
-
this.settleMs = Math.max(0, options?.settleMs ?? DEFAULT_SETTLE_MS);
|
|
69
|
-
this.snapshotLimit = Math.max(1, options?.snapshotLimit ?? DEFAULT_SNAPSHOT_LIMIT);
|
|
70
|
-
this.pool = options?.pool ?? lspClientPool;
|
|
71
|
-
}
|
|
72
|
-
/** Schedule without holding the edit response; coalesce superseded writes per file. */
|
|
73
|
-
queueDiagnosticsAfterWrite(filePath, content, source) {
|
|
74
|
-
if (this.shutDown)
|
|
75
|
-
return "\nDiagnostics unavailable; this change is not verified.";
|
|
76
|
-
const file = path.resolve(this.cwd, filePath);
|
|
77
|
-
if (!serverForFile(file, this.catalog))
|
|
78
|
-
return "";
|
|
79
|
-
const before = this.errorBaseline(file);
|
|
80
|
-
this.latestOutcomes.delete(file);
|
|
81
|
-
this.diagnosticRequests.delete(file);
|
|
82
|
-
const existing = this.queuedDiagnostics.get(file);
|
|
83
|
-
if (!existing && this.queuedDiagnostics.size >= this.snapshotLimit) {
|
|
84
|
-
this.diagnosticsOverflow = true;
|
|
85
|
-
return "\nDiagnostics queue full; this change is not verified. Run the project checks.";
|
|
86
|
-
}
|
|
87
|
-
const next = { content, source, before };
|
|
88
|
-
if (existing?.running) {
|
|
89
|
-
existing.cancelled = false;
|
|
90
|
-
existing.next = next;
|
|
91
|
-
}
|
|
92
|
-
else {
|
|
93
|
-
const job = { next, work: Promise.resolve(), running: true };
|
|
94
|
-
this.queuedDiagnostics.set(file, job);
|
|
95
|
-
// Starting on the microtask queue coalesces writes in the same tool batch.
|
|
96
|
-
job.work = Promise.resolve().then(async () => {
|
|
97
|
-
try {
|
|
98
|
-
while (job.next && this.queuedDiagnostics.get(file) === job && !this.shutDown) {
|
|
99
|
-
const request = job.next;
|
|
100
|
-
job.next = undefined;
|
|
101
|
-
const outcome = await this.diagnosticsAfterWriteDetailed(file, request.content);
|
|
102
|
-
if (job.next ||
|
|
103
|
-
job.cancelled ||
|
|
104
|
-
this.queuedDiagnostics.get(file) !== job ||
|
|
105
|
-
this.shutDown)
|
|
106
|
-
continue;
|
|
107
|
-
job.outcome =
|
|
108
|
-
outcome.kind === "diagnostics"
|
|
109
|
-
? {
|
|
110
|
-
...outcome,
|
|
111
|
-
formatted: outcome.formatted +
|
|
112
|
-
this.attribute(file, request.before, errorCount(outcome.diagnostics), request.source),
|
|
113
|
-
}
|
|
114
|
-
: outcome;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
catch (error) {
|
|
118
|
-
log("WARN", "lsp", "Queued diagnostics failed", { error: String(error) });
|
|
119
|
-
job.outcome = this.outcome("server_failed", file);
|
|
120
|
-
}
|
|
121
|
-
finally {
|
|
122
|
-
job.running = false;
|
|
123
|
-
if (job.cancelled && this.queuedDiagnostics.get(file) === job)
|
|
124
|
-
this.queuedDiagnostics.delete(file);
|
|
125
|
-
}
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
return "\nDiagnostics queued; results will arrive before completion. This is not verification.";
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* Bounded synchronous diagnostics: queue the full check, wait at most
|
|
132
|
-
* `budgetMs` for it, and return every completed result — this write's when it
|
|
133
|
-
* finished in time, plus any earlier write's that finished late. Late errors
|
|
134
|
-
* therefore reach the model on its next write instead of blocking this one.
|
|
135
|
-
* Degraded outcomes stay silent, exactly like {@link diagnosticsAfterWrite}.
|
|
136
|
-
*/
|
|
137
|
-
async diagnosticsWithinBudget(filePath, content, source, budgetMs = DEFAULT_INLINE_BUDGET_MS) {
|
|
138
|
-
const note = this.queueDiagnosticsAfterWrite(filePath, content, source);
|
|
139
|
-
const job = this.queuedDiagnostics.get(path.resolve(this.cwd, filePath));
|
|
140
|
-
if (!job)
|
|
141
|
-
return note.includes("queue full") ? note : "";
|
|
142
|
-
let timer;
|
|
143
|
-
await Promise.race([
|
|
144
|
-
job.work,
|
|
145
|
-
new Promise((resolve) => {
|
|
146
|
-
timer = setTimeout(resolve, Math.max(0, budgetMs));
|
|
147
|
-
timer.unref?.();
|
|
148
|
-
}),
|
|
149
|
-
]);
|
|
150
|
-
clearTimeout(timer);
|
|
151
|
-
const drained = this.drainDiagnostics(false);
|
|
152
|
-
return drained ? `\n${drained}` : "";
|
|
153
|
-
}
|
|
154
|
-
/** Includes completed evidence not yet delivered to the agent. */
|
|
155
|
-
hasQueuedDiagnostics() {
|
|
156
|
-
return ([...this.queuedDiagnostics.values()].some((job) => !job.cancelled) || this.diagnosticsOverflow);
|
|
157
|
-
}
|
|
158
|
-
/** Wait only at the completion boundary, or return immediately on cancellation. */
|
|
159
|
-
async flushDiagnostics(signal) {
|
|
160
|
-
if (signal?.aborted || this.shutDown)
|
|
161
|
-
return;
|
|
162
|
-
let onAbort;
|
|
163
|
-
const aborted = new Promise((resolve) => {
|
|
164
|
-
onAbort = resolve;
|
|
165
|
-
signal?.addEventListener("abort", onAbort, { once: true });
|
|
166
|
-
});
|
|
167
|
-
try {
|
|
168
|
-
await Promise.race([
|
|
169
|
-
Promise.all([...this.queuedDiagnostics.values()]
|
|
170
|
-
.filter((job) => !job.cancelled)
|
|
171
|
-
.map((job) => job.work)),
|
|
172
|
-
aborted,
|
|
173
|
-
]);
|
|
174
|
-
}
|
|
175
|
-
finally {
|
|
176
|
-
if (onAbort)
|
|
177
|
-
signal?.removeEventListener("abort", onAbort);
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
/** Deliver completed, latest-write evidence once; silence is never a clean verdict. */
|
|
181
|
-
drainDiagnostics(includeUnverified = true, options = {}) {
|
|
182
|
-
const results = [];
|
|
183
|
-
for (const [file, job] of this.queuedDiagnostics) {
|
|
184
|
-
if (job.running || job.cancelled || !job.outcome)
|
|
185
|
-
continue;
|
|
186
|
-
const outcome = job.outcome;
|
|
187
|
-
// Keep unavailable results for one completion summary. Actual diagnostics
|
|
188
|
-
// remain immediate, and successful independent verification can clear the
|
|
189
|
-
// queued notice without relabelling the underlying timeout as clean.
|
|
190
|
-
if (includeUnverified &&
|
|
191
|
-
options.deferUnverified &&
|
|
192
|
-
!(outcome.kind === "diagnostics" && outcome.formatted) &&
|
|
193
|
-
outcome.kind !== "clean" &&
|
|
194
|
-
outcome.kind !== "unsupported")
|
|
195
|
-
continue;
|
|
196
|
-
this.queuedDiagnostics.delete(file);
|
|
197
|
-
if (outcome.kind === "diagnostics" && outcome.formatted)
|
|
198
|
-
results.push(outcome.formatted);
|
|
199
|
-
else if (includeUnverified && outcome.kind !== "clean" && outcome.kind !== "unsupported") {
|
|
200
|
-
results.push(`${path.relative(this.cwd, file)}: diagnostics ${outcome.kind}; not verified. Run the project checks; do not infer success from silence.`);
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
if (this.diagnosticsOverflow && !(includeUnverified && options.deferUnverified)) {
|
|
204
|
-
if (includeUnverified)
|
|
205
|
-
results.push("Diagnostics capacity was exceeded; some changes are not verified. Run the project checks.");
|
|
206
|
-
this.diagnosticsOverflow = false;
|
|
207
|
-
}
|
|
208
|
-
return results.length
|
|
209
|
-
? `Post-edit diagnostics for the latest queued changes:\n${results.join("\n")}\nAddress reported errors before completion. These diagnostics do not replace the project's verification checks.`
|
|
210
|
-
: "";
|
|
211
|
-
}
|
|
212
|
-
/** Forget a cancelled run's deliveries; bounded in-flight work may still warm its server. */
|
|
213
|
-
clearPendingDiagnostics() {
|
|
214
|
-
for (const [file, job] of this.queuedDiagnostics) {
|
|
215
|
-
this.diagnosticRequests.delete(file);
|
|
216
|
-
this.latestOutcomes.delete(file);
|
|
217
|
-
job.next = undefined;
|
|
218
|
-
job.outcome = undefined;
|
|
219
|
-
job.cancelled = true;
|
|
220
|
-
// Keep an in-flight predecessor until it settles: push-only servers can
|
|
221
|
-
// send unversioned replies, so a new run must not race the cancelled one.
|
|
222
|
-
if (!job.running)
|
|
223
|
-
this.queuedDiagnostics.delete(file);
|
|
224
|
-
}
|
|
225
|
-
this.diagnosticsOverflow = false;
|
|
226
|
-
}
|
|
227
|
-
/**
|
|
228
|
-
* Compatibility surface used by synchronous diagnostic callers. Diagnostics remain visible;
|
|
229
|
-
* every clean/degraded outcome remains the exact historical empty string.
|
|
230
|
-
*
|
|
231
|
-
* When a baseline is available, the diagnostics are labelled as caused by
|
|
232
|
-
* this edit or as pre-existing. Without that label the two are
|
|
233
|
-
* indistinguishable in the output, so the model cannot tell "you just broke
|
|
234
|
-
* this" from "this file was already failing" — and neither can we.
|
|
235
|
-
*/
|
|
236
|
-
async diagnosticsAfterWrite(filePath, content, source) {
|
|
237
|
-
// Read before collecting: the collect below overwrites this entry, and the
|
|
238
|
-
// value standing here now is the state as of the previous edit.
|
|
239
|
-
const before = this.errorBaseline(filePath);
|
|
240
|
-
const outcome = await this.diagnosticsAfterWriteDetailed(filePath, content);
|
|
241
|
-
if (outcome.kind !== "diagnostics")
|
|
242
|
-
return "";
|
|
243
|
-
return (outcome.formatted +
|
|
244
|
-
this.attribute(outcome.filePath, before, errorCount(outcome.diagnostics), source));
|
|
245
|
-
}
|
|
246
|
-
/**
|
|
247
|
-
* How many errors this file had at the end of the last collect, or null when
|
|
248
|
-
* nothing is known about it yet.
|
|
249
|
-
*
|
|
250
|
-
* Deliberately cache-only: re-running a full collect against the pre-edit
|
|
251
|
-
* content would double every edit's LSP cost to answer a question that is
|
|
252
|
-
* usually already answered. Degraded outcomes (timeout, server_failed) stay
|
|
253
|
-
* null rather than being read as "clean", which would invent regressions.
|
|
254
|
-
*
|
|
255
|
-
* simplification: the cached count describes the file as of OUR last write,
|
|
256
|
-
* so an edit made outside the session in between is attributed to this edit.
|
|
257
|
-
* Upgrade path: stamp the outcome with the file's mtime and drop the baseline
|
|
258
|
-
* when it no longer matches.
|
|
259
|
-
*/
|
|
260
|
-
errorBaseline(filePath) {
|
|
261
|
-
const outcome = this.getLatestOutcome(filePath);
|
|
262
|
-
if (!outcome)
|
|
263
|
-
return null;
|
|
264
|
-
if (outcome.kind === "clean")
|
|
265
|
-
return 0;
|
|
266
|
-
if (outcome.kind === "diagnostics")
|
|
267
|
-
return errorCount(outcome.diagnostics);
|
|
268
|
-
return null;
|
|
269
|
-
}
|
|
270
|
-
/** Label the diagnostics against the baseline; empty when nothing is known. */
|
|
271
|
-
attribute(filePath, before, after, source) {
|
|
272
|
-
if (before === null || after === 0)
|
|
273
|
-
return "";
|
|
274
|
-
const introduced = after - before;
|
|
275
|
-
if (introduced <= 0) {
|
|
276
|
-
return `\n(already present before this change, not caused by it)`;
|
|
277
|
-
}
|
|
278
|
-
recordEditRegression({ filePath, before, after, source });
|
|
279
|
-
return `\n(this change introduced ${introduced} error${introduced === 1 ? "" : "s"} that ${introduced === 1 ? "was" : "were"} not present before it)`;
|
|
280
|
-
}
|
|
281
|
-
/** Collect diagnostics with explicit confidence/failure evidence. */
|
|
282
|
-
async diagnosticsAfterWriteDetailed(filePath, content) {
|
|
283
|
-
const normalizedFilePath = path.resolve(this.cwd, filePath);
|
|
284
|
-
if (this.shutDown)
|
|
285
|
-
return this.outcome("unavailable", normalizedFilePath);
|
|
286
|
-
const request = {};
|
|
287
|
-
this.diagnosticRequests.delete(normalizedFilePath);
|
|
288
|
-
this.diagnosticRequests.set(normalizedFilePath, request);
|
|
289
|
-
while (this.diagnosticRequests.size > this.snapshotLimit) {
|
|
290
|
-
const oldest = this.diagnosticRequests.keys().next().value;
|
|
291
|
-
if (oldest !== undefined)
|
|
292
|
-
this.diagnosticRequests.delete(oldest);
|
|
293
|
-
}
|
|
294
|
-
const record = (outcome) => !this.shutDown && this.diagnosticRequests.get(normalizedFilePath) === request
|
|
295
|
-
? this.record(outcome)
|
|
296
|
-
: outcome;
|
|
297
|
-
try {
|
|
298
|
-
const spec = serverForFile(normalizedFilePath, this.catalog);
|
|
299
|
-
if (!spec)
|
|
300
|
-
return record(this.outcome("unsupported", normalizedFilePath));
|
|
301
|
-
const root = await findServerProjectRoot(normalizedFilePath, spec, this.cwd);
|
|
302
|
-
if (this.shutDown)
|
|
303
|
-
return this.outcome("unavailable", normalizedFilePath);
|
|
304
|
-
const key = `${spec.id}\u0000${root}`;
|
|
305
|
-
const budgetMs = this.isWarm(key, spec, root) ? this.warmBudgetMs : this.firstBudgetMs;
|
|
306
|
-
const work = this.collect(key, spec, root, normalizedFilePath, content, budgetMs);
|
|
307
|
-
// Leave slow initialization/indexing alive to warm the next edit. Record
|
|
308
|
-
// its eventual evidence too, but report this call honestly as timed out.
|
|
309
|
-
const outcome = await withBudget(work, budgetMs, () => this.outcome("timeout", normalizedFilePath));
|
|
310
|
-
if (outcome.kind === "timeout") {
|
|
311
|
-
void work.then(record).catch(() => { });
|
|
312
|
-
}
|
|
313
|
-
return record(outcome);
|
|
314
|
-
}
|
|
315
|
-
catch (error) {
|
|
316
|
-
log("WARN", "lsp", `diagnostics failed for ${normalizedFilePath}`, {
|
|
317
|
-
error: error instanceof Error ? error.message : String(error),
|
|
318
|
-
});
|
|
319
|
-
return record(this.outcome("server_failed", normalizedFilePath));
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
/** Latest bounded evidence for one normalized absolute/relative file path. */
|
|
323
|
-
getLatestOutcome(filePath) {
|
|
324
|
-
return this.latestOutcomes.get(path.resolve(this.cwd, filePath));
|
|
325
|
-
}
|
|
326
|
-
/**
|
|
327
|
-
* Has this session already completed a pass against the server that is live
|
|
328
|
-
* NOW? False once the pool has rebuilt it, because the replacement is cold.
|
|
329
|
-
*/
|
|
330
|
-
isWarm(key, spec, root) {
|
|
331
|
-
const warmedGeneration = this.warmKeys.get(key);
|
|
332
|
-
return (warmedGeneration !== undefined && warmedGeneration === this.pool.generationFor(spec, root));
|
|
333
|
-
}
|
|
334
|
-
/**
|
|
335
|
-
* Retained stderr of a language server this session is using, for failure
|
|
336
|
-
* reporting when a server accepts a document and then never answers.
|
|
337
|
-
*/
|
|
338
|
-
serverStderrTail() {
|
|
339
|
-
return this.pool.stderrTail(this);
|
|
340
|
-
}
|
|
341
|
-
/** Newest retained per-file evidence snapshots. */
|
|
342
|
-
getLatestOutcomes() {
|
|
343
|
-
return [...this.latestOutcomes.values()].reverse();
|
|
344
|
-
}
|
|
345
|
-
/**
|
|
346
|
-
* Release this session's claim on every server it used. Safe in process exit
|
|
347
|
-
* handlers.
|
|
348
|
-
*
|
|
349
|
-
* This drops REFERENCES, not processes: a server another session still holds
|
|
350
|
-
* keeps running, and one left with no holders is shut down immediately. The
|
|
351
|
-
* name is kept because every caller wires it into an exit path.
|
|
352
|
-
*/
|
|
353
|
-
shutdownAll() {
|
|
354
|
-
this.shutDown = true;
|
|
355
|
-
this.clearPendingDiagnostics();
|
|
356
|
-
this.queuedDiagnostics.clear();
|
|
357
|
-
this.diagnosticRequests.clear();
|
|
358
|
-
this.pool.release(this);
|
|
359
|
-
this.warmKeys.clear();
|
|
360
|
-
}
|
|
361
|
-
outcome(kind, filePath) {
|
|
362
|
-
return { kind, filePath, updatedAt: Date.now() };
|
|
363
|
-
}
|
|
364
|
-
record(outcome) {
|
|
365
|
-
this.latestOutcomes.delete(outcome.filePath);
|
|
366
|
-
this.latestOutcomes.set(outcome.filePath, outcome);
|
|
367
|
-
while (this.latestOutcomes.size > this.snapshotLimit) {
|
|
368
|
-
const oldest = this.latestOutcomes.keys().next().value;
|
|
369
|
-
if (oldest === undefined)
|
|
370
|
-
break;
|
|
371
|
-
this.latestOutcomes.delete(oldest);
|
|
372
|
-
}
|
|
373
|
-
return outcome;
|
|
374
|
-
}
|
|
375
|
-
async collect(key, spec, root, filePath, content, budgetMs) {
|
|
376
|
-
// The caller races this whole function against `budgetMs`, so every wait in
|
|
377
|
-
// here has to fit inside the same deadline or a good answer arrives after
|
|
378
|
-
// the caller has already given up and reported a timeout.
|
|
379
|
-
const deadline = Date.now() + budgetMs;
|
|
380
|
-
const resolution = await this.pool.retain(spec, root, this);
|
|
381
|
-
if (this.shutDown)
|
|
382
|
-
return this.outcome("unavailable", filePath);
|
|
383
|
-
if (Date.now() >= deadline)
|
|
384
|
-
return this.outcome("timeout", filePath);
|
|
385
|
-
if (resolution.status !== "ready")
|
|
386
|
-
return this.outcome(resolution.status, filePath);
|
|
387
|
-
const { client } = resolution;
|
|
388
|
-
if (!client.isAlive) {
|
|
389
|
-
this.pool.markDead(spec, root);
|
|
390
|
-
log("WARN", "lsp", `${spec.id} server died`, { root });
|
|
391
|
-
return this.outcome("server_failed", filePath);
|
|
392
|
-
}
|
|
393
|
-
// Hold the entry open for the whole pass: a first-file load can take
|
|
394
|
-
// seconds, and the idle sweep must not reclaim a server that is mid-answer.
|
|
395
|
-
const endCall = this.pool.beginCall(spec, root);
|
|
396
|
-
try {
|
|
397
|
-
return await client.withDocumentDiagnostics(filePath, async () => {
|
|
398
|
-
if (this.shutDown)
|
|
399
|
-
return this.outcome("unavailable", filePath);
|
|
400
|
-
if (Date.now() >= deadline)
|
|
401
|
-
return this.outcome("timeout", filePath);
|
|
402
|
-
return this.collectFrom(client, key, spec, root, filePath, content, budgetMs, deadline);
|
|
403
|
-
});
|
|
404
|
-
}
|
|
405
|
-
finally {
|
|
406
|
-
endCall();
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
/** The diagnostics exchange itself, against an initialized live client. */
|
|
410
|
-
async collectFrom(client, key, spec, root, filePath, content, budgetMs, deadline) {
|
|
411
|
-
// Sampled BEFORE the collect: a cold client is the one that has to load the
|
|
412
|
-
// project, and therefore the only one that can answer prematurely.
|
|
413
|
-
const wasCold = !this.isWarm(key, spec, root);
|
|
414
|
-
const uri = client.syncDocument(filePath, content);
|
|
415
|
-
const version = client.documentVersion(uri);
|
|
416
|
-
let diagnostics = await client.collectDiagnostics(uri, Math.max(1, deadline - Date.now()));
|
|
417
|
-
// Record WHICH build of the server went warm, so a later reclamation of it
|
|
418
|
-
// is detectable rather than silently inherited as warm.
|
|
419
|
-
this.warmKeys.set(key, this.pool.generationFor(spec, root));
|
|
420
|
-
if (!client.isAlive) {
|
|
421
|
-
this.pool.markDead(spec, root);
|
|
422
|
-
return this.outcome("server_failed", filePath);
|
|
423
|
-
}
|
|
424
|
-
if (diagnostics === null) {
|
|
425
|
-
// A timeout carries no other evidence and is indistinguishable from
|
|
426
|
-
// "clean" in the tool output. Log the server's own stderr alongside it —
|
|
427
|
-
// usually the only thing that explains why a server accepted the document
|
|
428
|
-
// and then never reported on it.
|
|
429
|
-
log("WARN", "lsp", `${spec.id} diagnostics timed out`, {
|
|
430
|
-
file: filePath,
|
|
431
|
-
budgetMs,
|
|
432
|
-
stderr: client.stderrTail() || "(none)",
|
|
433
|
-
});
|
|
434
|
-
return this.outcome("timeout", filePath);
|
|
435
|
-
}
|
|
436
|
-
// An empty FIRST answer from a server that was loading the project is not a
|
|
437
|
-
// verdict yet: tsserver ends its load progress and publishes an empty set
|
|
438
|
-
// before it type-checks, so this used to report a broken file as clean and
|
|
439
|
-
// inline diagnostics silently did nothing on the first edit in a project.
|
|
440
|
-
// Give it a bounded moment to correct itself. A follow-up that is ALSO empty
|
|
441
|
-
// changes nothing, so a genuinely clean file still lands on `clean`.
|
|
442
|
-
if (diagnostics.length === 0 && wasCold && client.hasReportedProgress && client.isAlive) {
|
|
443
|
-
const settleMs = Math.min(this.settleMs, deadline - Date.now());
|
|
444
|
-
if (settleMs > 0) {
|
|
445
|
-
const corrected = await client.awaitNextPublish(uri, settleMs);
|
|
446
|
-
if (corrected !== null && corrected.length > 0)
|
|
447
|
-
diagnostics = corrected;
|
|
448
|
-
}
|
|
449
|
-
}
|
|
450
|
-
if (client.documentVersion(uri) !== version)
|
|
451
|
-
return this.outcome("timeout", filePath);
|
|
452
|
-
if (diagnostics.length > 0) {
|
|
453
|
-
const relPath = path.relative(this.cwd, filePath);
|
|
454
|
-
return {
|
|
455
|
-
kind: "diagnostics",
|
|
456
|
-
filePath,
|
|
457
|
-
updatedAt: Date.now(),
|
|
458
|
-
diagnostics,
|
|
459
|
-
formatted: formatDiagnostics(relPath, diagnostics),
|
|
460
|
-
};
|
|
461
|
-
}
|
|
462
|
-
return this.outcome(client.hasActiveProgress || client.hasUncertainDiagnostics(uri) ? "low_confidence" : "clean", filePath);
|
|
463
|
-
}
|
|
464
|
-
// ── Navigation ───────────────────────────────────────────────
|
|
465
|
-
/** Where the symbol under `position` is defined. */
|
|
466
|
-
definition(filePath, content, position) {
|
|
467
|
-
return this.navigate(filePath, content, (client, uri, budgetMs) => client.definition(uri, position, budgetMs));
|
|
468
|
-
}
|
|
469
|
-
/** Every reference to the symbol under `position`. */
|
|
470
|
-
references(filePath, content, position) {
|
|
471
|
-
return this.navigate(filePath, content, (client, uri, budgetMs) => client.references(uri, position, budgetMs));
|
|
472
|
-
}
|
|
473
|
-
/** Symbol outline for one document. */
|
|
474
|
-
documentSymbols(filePath, content) {
|
|
475
|
-
return this.navigate(filePath, content, (client, uri, budgetMs) => client.documentSymbols(uri, budgetMs));
|
|
476
|
-
}
|
|
477
|
-
/** Type/signature summary under `position`. */
|
|
478
|
-
hover(filePath, content, position) {
|
|
479
|
-
return this.navigate(filePath, content, (client, uri, budgetMs) => client.hover(uri, position, budgetMs));
|
|
480
|
-
}
|
|
481
|
-
/**
|
|
482
|
-
* Shared navigation path: resolve a server, sync the document, run one
|
|
483
|
-
* request inside the same warm/first budget split diagnostics use.
|
|
484
|
-
*
|
|
485
|
-
* The outcome kinds match `LspDiagnosticOutcome`'s degraded kinds exactly
|
|
486
|
-
* (`timeout` / `unsupported` / `unavailable` / `server_failed`), because a
|
|
487
|
-
* navigation tool that answers "no results" when the truth is "no server"
|
|
488
|
-
* teaches the model that the symbol does not exist.
|
|
489
|
-
*/
|
|
490
|
-
async navigate(filePath, content, run) {
|
|
491
|
-
const normalizedFilePath = path.resolve(this.cwd, filePath);
|
|
492
|
-
if (this.shutDown)
|
|
493
|
-
return { kind: "unavailable", filePath: normalizedFilePath };
|
|
494
|
-
try {
|
|
495
|
-
const spec = serverForFile(normalizedFilePath, this.catalog);
|
|
496
|
-
if (!spec)
|
|
497
|
-
return { kind: "unsupported", filePath: normalizedFilePath };
|
|
498
|
-
const root = await findServerProjectRoot(normalizedFilePath, spec, this.cwd);
|
|
499
|
-
if (this.shutDown)
|
|
500
|
-
return { kind: "unavailable", filePath: normalizedFilePath };
|
|
501
|
-
const key = `${spec.id}\u0000${root}`;
|
|
502
|
-
const budgetMs = this.isWarm(key, spec, root) ? this.warmBudgetMs : this.firstBudgetMs;
|
|
503
|
-
const resolution = await this.pool.retain(spec, root, this);
|
|
504
|
-
if (resolution.status !== "ready") {
|
|
505
|
-
return { kind: resolution.status, filePath: normalizedFilePath, serverId: spec.id };
|
|
506
|
-
}
|
|
507
|
-
const { client } = resolution;
|
|
508
|
-
if (!client.isAlive) {
|
|
509
|
-
this.pool.markDead(spec, root);
|
|
510
|
-
return { kind: "server_failed", filePath: normalizedFilePath, serverId: spec.id };
|
|
511
|
-
}
|
|
512
|
-
// Hold the entry open for the whole request, exactly as diagnostics do:
|
|
513
|
-
// the idle sweep must not reclaim a server mid-answer.
|
|
514
|
-
const endCall = this.pool.beginCall(spec, root);
|
|
515
|
-
try {
|
|
516
|
-
const uri = client.syncDocument(normalizedFilePath, content);
|
|
517
|
-
const outcome = await withBudget(run(client, uri, budgetMs), budgetMs, () => ({
|
|
518
|
-
status: "timeout",
|
|
519
|
-
}));
|
|
520
|
-
this.warmKeys.set(key, this.pool.generationFor(spec, root));
|
|
521
|
-
if (outcome.status === "ok") {
|
|
522
|
-
return {
|
|
523
|
-
kind: "ok",
|
|
524
|
-
filePath: normalizedFilePath,
|
|
525
|
-
serverId: spec.id,
|
|
526
|
-
value: outcome.value,
|
|
527
|
-
...(outcome.warning ? { warning: outcome.warning } : {}),
|
|
528
|
-
};
|
|
529
|
-
}
|
|
530
|
-
if (outcome.status === "unsupported") {
|
|
531
|
-
return { kind: "unsupported", filePath: normalizedFilePath, serverId: spec.id };
|
|
532
|
-
}
|
|
533
|
-
if (outcome.status === "timeout") {
|
|
534
|
-
log("WARN", "lsp", `${spec.id} navigation timed out`, {
|
|
535
|
-
file: normalizedFilePath,
|
|
536
|
-
budgetMs,
|
|
537
|
-
stderr: client.stderrTail() || "(none)",
|
|
538
|
-
});
|
|
539
|
-
return { kind: "timeout", filePath: normalizedFilePath, serverId: spec.id };
|
|
540
|
-
}
|
|
541
|
-
return {
|
|
542
|
-
kind: "server_failed",
|
|
543
|
-
filePath: normalizedFilePath,
|
|
544
|
-
serverId: spec.id,
|
|
545
|
-
message: outcome.message,
|
|
546
|
-
};
|
|
547
|
-
}
|
|
548
|
-
finally {
|
|
549
|
-
endCall();
|
|
550
|
-
}
|
|
551
|
-
}
|
|
552
|
-
catch (error) {
|
|
553
|
-
log("WARN", "lsp", `navigation failed for ${normalizedFilePath}`, {
|
|
554
|
-
error: error instanceof Error ? error.message : String(error),
|
|
555
|
-
});
|
|
556
|
-
return { kind: "server_failed", filePath: normalizedFilePath };
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
/** Race work against a hard budget while allowing it to settle in background. */
|
|
561
|
-
function withBudget(work, budgetMs, onTimeout) {
|
|
562
|
-
return new Promise((resolve) => {
|
|
563
|
-
const timer = setTimeout(() => resolve(onTimeout()), budgetMs);
|
|
564
|
-
timer.unref();
|
|
565
|
-
work
|
|
566
|
-
.then((result) => {
|
|
567
|
-
clearTimeout(timer);
|
|
568
|
-
resolve(result);
|
|
569
|
-
})
|
|
570
|
-
.catch(() => {
|
|
571
|
-
clearTimeout(timer);
|
|
572
|
-
resolve(onTimeout());
|
|
573
|
-
});
|
|
574
|
-
});
|
|
575
|
-
}
|
|
576
|
-
//# sourceMappingURL=manager.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"manager.js","sourceRoot":"","sources":["../../../src/core/lsp/manager.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAEnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAmB,MAAM,qBAAqB,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAsB,MAAM,WAAW,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAsB,MAAM,cAAc,CAAC;AACrF,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AA2D1D,qFAAqF;AACrF,SAAS,UAAU,CAAC,WAA4B;IAC9C,OAAO,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;AACnE,CAAC;AAED,MAAM,sBAAsB,GAAG,IAAI,CAAC;AAEpC,MAAM,uBAAuB,GAAG,IAAI,CAAC;AACrC;;;;;;;GAOG;AACH,MAAM,iBAAiB,GAAG,IAAI,CAAC;AAC/B,MAAM,sBAAsB,GAAG,GAAG,CAAC;AACnC;;;;;GAKG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,CAAC;AAU5C;;;;;;;GAOG;AACH,MAAM,OAAO,UAAU;IAyBF;IAxBF,OAAO,CAA2B;IAClC,YAAY,CAAS;IACrB,aAAa,CAAS;IACtB,QAAQ,CAAS;IACjB,aAAa,CAAS;IACtB,IAAI,CAAgB;IACrC;;;;;;;;;OASG;IACc,QAAQ,GAAG,IAA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