@iaforged/context-code 1.0.63 → 1.0.65
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.md +1 -1
- package/README.md +633 -9
- package/context-bootstrap.js +28 -28
- package/package.json +169 -170
- package/dist/src/QueryEngine.js +0 -928
- package/dist/src/Task.js +0 -49
- package/dist/src/Tool.js +0 -56
- package/dist/src/assistant/AssistantSessionChooser.js +0 -16
- package/dist/src/assistant/index.js +0 -16
- package/dist/src/assistant/sessionDiscovery.js +0 -16
- package/dist/src/assistant/sessionHistory.js +0 -47
- package/dist/src/bootstrap/state.js +0 -1165
- package/dist/src/bridge/bridgeApi.js +0 -304
- package/dist/src/bridge/bridgeConfig.js +0 -39
- package/dist/src/bridge/bridgeDebug.js +0 -73
- package/dist/src/bridge/bridgeEnabled.js +0 -187
- package/dist/src/bridge/bridgeMain.js +0 -2289
- package/dist/src/bridge/bridgeMessaging.js +0 -353
- package/dist/src/bridge/bridgePermissionCallbacks.js +0 -10
- package/dist/src/bridge/bridgePointer.js +0 -175
- package/dist/src/bridge/bridgeStatusUtil.js +0 -105
- package/dist/src/bridge/bridgeUI.js +0 -412
- package/dist/src/bridge/capacityWake.js +0 -35
- package/dist/src/bridge/codeSessionApi.js +0 -111
- package/dist/src/bridge/createSession.js +0 -273
- package/dist/src/bridge/debugUtils.js +0 -115
- package/dist/src/bridge/envLessBridgeConfig.js +0 -121
- package/dist/src/bridge/flushGate.js +0 -65
- package/dist/src/bridge/inboundAttachments.js +0 -152
- package/dist/src/bridge/inboundMessages.js +0 -63
- package/dist/src/bridge/initReplBridge.js +0 -428
- package/dist/src/bridge/jwtUtils.js +0 -185
- package/dist/src/bridge/pollConfig.js +0 -85
- package/dist/src/bridge/pollConfigDefaults.js +0 -62
- package/dist/src/bridge/remoteBridgeCore.js +0 -712
- package/dist/src/bridge/replBridge.js +0 -1720
- package/dist/src/bridge/replBridgeHandle.js +0 -30
- package/dist/src/bridge/replBridgeTransport.js +0 -236
- package/dist/src/bridge/sessionIdCompat.js +0 -56
- package/dist/src/bridge/sessionRunner.js +0 -421
- package/dist/src/bridge/trustedDevice.js +0 -172
- package/dist/src/bridge/types.js +0 -9
- package/dist/src/bridge/workSecret.js +0 -99
- package/dist/src/buddy/CompanionSprite.js +0 -349
- package/dist/src/buddy/companion.js +0 -107
- package/dist/src/buddy/prompt.js +0 -33
- package/dist/src/buddy/sprites.js +0 -488
- package/dist/src/buddy/types.js +0 -90
- package/dist/src/buddy/useBuddyNotification.js +0 -90
- package/dist/src/cli/bg.js +0 -16
- package/dist/src/cli/exit.js +0 -30
- package/dist/src/cli/handlers/agents.js +0 -55
- package/dist/src/cli/handlers/ant.js +0 -16
- package/dist/src/cli/handlers/auth.js +0 -312
- package/dist/src/cli/handlers/autoMode.js +0 -128
- package/dist/src/cli/handlers/mcp.js +0 -334
- package/dist/src/cli/handlers/plugins.js +0 -634
- package/dist/src/cli/handlers/projects_bridge.js +0 -40
- package/dist/src/cli/handlers/templateJobs.js +0 -16
- package/dist/src/cli/handlers/util.js +0 -76
- package/dist/src/cli/ndjsonSafeStringify.js +0 -27
- package/dist/src/cli/print.js +0 -4225
- package/dist/src/cli/remoteIO.js +0 -208
- package/dist/src/cli/rollback.js +0 -16
- package/dist/src/cli/structuredIO.js +0 -644
- package/dist/src/cli/transports/HybridTransport.js +0 -233
- package/dist/src/cli/transports/SSETransport.js +0 -538
- package/dist/src/cli/transports/SerialBatchEventUploader.js +0 -224
- package/dist/src/cli/transports/Transport.js +0 -1
- package/dist/src/cli/transports/WebSocketTransport.js +0 -613
- package/dist/src/cli/transports/WorkerStateUploader.js +0 -88
- package/dist/src/cli/transports/ccrClient.js +0 -711
- package/dist/src/cli/transports/transportUtils.js +0 -39
- package/dist/src/cli/up.js +0 -16
- package/dist/src/cli/update.js +0 -315
- package/dist/src/commands/add-dir/add-dir.js +0 -121
- package/dist/src/commands/add-dir/index.js +0 -8
- package/dist/src/commands/add-dir/validation.js +0 -76
- package/dist/src/commands/advisor.js +0 -88
- package/dist/src/commands/agents/agents.js +0 -9
- package/dist/src/commands/agents/index.js +0 -7
- package/dist/src/commands/ant-trace/index.js +0 -1
- package/dist/src/commands/assistant/assistant.js +0 -16
- package/dist/src/commands/autofix-pr/index.js +0 -1
- package/dist/src/commands/backfill-sessions/index.js +0 -1
- package/dist/src/commands/branch/branch.js +0 -205
- package/dist/src/commands/branch/index.js +0 -11
- package/dist/src/commands/break-cache/index.js +0 -1
- package/dist/src/commands/bridge/bridge.js +0 -512
- package/dist/src/commands/bridge/index.js +0 -22
- package/dist/src/commands/bridge-kick.js +0 -179
- package/dist/src/commands/brief.js +0 -94
- package/dist/src/commands/btw/btw.js +0 -234
- package/dist/src/commands/btw/index.js +0 -9
- package/dist/src/commands/bughunter/index.js +0 -1
- package/dist/src/commands/chrome/chrome.js +0 -291
- package/dist/src/commands/chrome/index.js +0 -10
- package/dist/src/commands/clear/caches.js +0 -116
- package/dist/src/commands/clear/clear.js +0 -5
- package/dist/src/commands/clear/conversation.js +0 -191
- package/dist/src/commands/clear/index.js +0 -9
- package/dist/src/commands/color/color.js +0 -58
- package/dist/src/commands/color/index.js +0 -9
- package/dist/src/commands/commit-push-pr.js +0 -137
- package/dist/src/commands/commit.js +0 -80
- package/dist/src/commands/compact/compact.js +0 -196
- package/dist/src/commands/compact/index.js +0 -11
- package/dist/src/commands/config/config.js +0 -5
- package/dist/src/commands/config/index.js +0 -8
- package/dist/src/commands/context/context-noninteractive.js +0 -221
- package/dist/src/commands/context/context.js +0 -46
- package/dist/src/commands/context/index.js +0 -21
- package/dist/src/commands/copy/copy.js +0 -366
- package/dist/src/commands/copy/index.js +0 -7
- package/dist/src/commands/cost/cost.js +0 -21
- package/dist/src/commands/cost/index.js +0 -16
- package/dist/src/commands/createMovedToPluginCommand.js +0 -33
- package/dist/src/commands/ctx_viz/index.js +0 -1
- package/dist/src/commands/debug-tool-call/index.js +0 -1
- package/dist/src/commands/desktop/desktop.js +0 -5
- package/dist/src/commands/desktop/index.js +0 -22
- package/dist/src/commands/diff/diff.js +0 -5
- package/dist/src/commands/diff/index.js +0 -6
- package/dist/src/commands/doctor/doctor.js +0 -5
- package/dist/src/commands/doctor/index.js +0 -9
- package/dist/src/commands/effort/effort.js +0 -166
- package/dist/src/commands/effort/index.js +0 -11
- package/dist/src/commands/env/index.js +0 -1
- package/dist/src/commands/exit/exit.js +0 -31
- package/dist/src/commands/exit/index.js +0 -9
- package/dist/src/commands/export/export.js +0 -86
- package/dist/src/commands/export/index.js +0 -8
- package/dist/src/commands/extra-usage/extra-usage-core.js +0 -99
- package/dist/src/commands/extra-usage/extra-usage-noninteractive.js +0 -13
- package/dist/src/commands/extra-usage/extra-usage.js +0 -14
- package/dist/src/commands/extra-usage/index.js +0 -27
- package/dist/src/commands/fast/fast.js +0 -275
- package/dist/src/commands/fast/index.js +0 -20
- package/dist/src/commands/feedback/feedback.js +0 -10
- package/dist/src/commands/feedback/index.js +0 -20
- package/dist/src/commands/files/files.js +0 -11
- package/dist/src/commands/files/index.js +0 -9
- package/dist/src/commands/good-claude/index.js +0 -1
- package/dist/src/commands/heapdump/heapdump.js +0 -14
- package/dist/src/commands/heapdump/index.js +0 -9
- package/dist/src/commands/help/help.js +0 -5
- package/dist/src/commands/help/index.js +0 -7
- package/dist/src/commands/hooks/hooks.js +0 -11
- package/dist/src/commands/hooks/index.js +0 -8
- package/dist/src/commands/ide/ide.js +0 -615
- package/dist/src/commands/ide/index.js +0 -8
- package/dist/src/commands/init-verifiers.js +0 -258
- package/dist/src/commands/init.js +0 -249
- package/dist/src/commands/insights.js +0 -2555
- package/dist/src/commands/install-github-app/ApiKeyStep.js +0 -230
- package/dist/src/commands/install-github-app/CheckExistingSecretStep.js +0 -194
- package/dist/src/commands/install-github-app/CheckGitHubStep.js +0 -15
- package/dist/src/commands/install-github-app/ChooseRepoStep.js +0 -211
- package/dist/src/commands/install-github-app/CreatingStep.js +0 -52
- package/dist/src/commands/install-github-app/ErrorStep.js +0 -83
- package/dist/src/commands/install-github-app/ExistingWorkflowStep.js +0 -104
- package/dist/src/commands/install-github-app/InstallAppStep.js +0 -96
- package/dist/src/commands/install-github-app/OAuthFlowStep.js +0 -190
- package/dist/src/commands/install-github-app/SuccessStep.js +0 -93
- package/dist/src/commands/install-github-app/WarningsStep.js +0 -70
- package/dist/src/commands/install-github-app/index.js +0 -10
- package/dist/src/commands/install-github-app/install-github-app.js +0 -593
- package/dist/src/commands/install-github-app/setupGitHubActions.js +0 -227
- package/dist/src/commands/install-slack-app/index.js +0 -9
- package/dist/src/commands/install-slack-app/install-slack-app.js +0 -25
- package/dist/src/commands/install.js +0 -118
- package/dist/src/commands/issue/index.js +0 -1
- package/dist/src/commands/keybindings/index.js +0 -10
- package/dist/src/commands/keybindings/keybindings.js +0 -47
- package/dist/src/commands/login/index.js +0 -11
- package/dist/src/commands/login/login.js +0 -99
- package/dist/src/commands/login-openai/index.js +0 -7
- package/dist/src/commands/login-openai/login-openai.js +0 -54
- package/dist/src/commands/logout/index.js +0 -8
- package/dist/src/commands/logout/logout.js +0 -72
- package/dist/src/commands/mcp/addCommand.js +0 -183
- package/dist/src/commands/mcp/index.js +0 -9
- package/dist/src/commands/mcp/mcp.js +0 -78
- package/dist/src/commands/mcp/xaaIdpCommand.js +0 -193
- package/dist/src/commands/memory/index.js +0 -7
- package/dist/src/commands/memory/memory.js +0 -71
- package/dist/src/commands/mobile/index.js +0 -8
- package/dist/src/commands/mobile/mobile.js +0 -278
- package/dist/src/commands/mock-limits/index.js +0 -1
- package/dist/src/commands/model/index.js +0 -14
- package/dist/src/commands/model/model.js +0 -297
- package/dist/src/commands/oauth-refresh/index.js +0 -1
- package/dist/src/commands/onboarding/index.js +0 -1
- package/dist/src/commands/output-style/index.js +0 -8
- package/dist/src/commands/output-style/output-style.js +0 -6
- package/dist/src/commands/passes/index.js +0 -17
- package/dist/src/commands/passes/passes.js +0 -22
- package/dist/src/commands/perf-issue/index.js +0 -1
- package/dist/src/commands/permissions/index.js +0 -8
- package/dist/src/commands/permissions/permissions.js +0 -8
- package/dist/src/commands/plan/index.js +0 -8
- package/dist/src/commands/plan/plan.js +0 -115
- package/dist/src/commands/plugin/AddMarketplace.js +0 -95
- package/dist/src/commands/plugin/BrowseMarketplace.js +0 -576
- package/dist/src/commands/plugin/DiscoverPlugins.js +0 -613
- package/dist/src/commands/plugin/ManageMarketplaces.js +0 -582
- package/dist/src/commands/plugin/ManagePlugins.js +0 -1783
- package/dist/src/commands/plugin/PluginErrors.js +0 -124
- package/dist/src/commands/plugin/PluginOptionsDialog.js +0 -367
- package/dist/src/commands/plugin/PluginOptionsFlow.js +0 -97
- package/dist/src/commands/plugin/PluginSettings.js +0 -1042
- package/dist/src/commands/plugin/PluginTrustWarning.js +0 -34
- package/dist/src/commands/plugin/UnifiedInstalledCell.js +0 -615
- package/dist/src/commands/plugin/ValidatePlugin.js +0 -95
- package/dist/src/commands/plugin/index.js +0 -10
- package/dist/src/commands/plugin/parseArgs.js +0 -71
- package/dist/src/commands/plugin/plugin.js +0 -5
- package/dist/src/commands/plugin/pluginDetailsHelpers.js +0 -89
- package/dist/src/commands/plugin/usePagination.js +0 -89
- package/dist/src/commands/pr_comments/index.js +0 -49
- package/dist/src/commands/privacy-settings/index.js +0 -11
- package/dist/src/commands/privacy-settings/privacy-settings.js +0 -54
- package/dist/src/commands/profile/index.js +0 -9
- package/dist/src/commands/profile/profile.js +0 -426
- package/dist/src/commands/provider/index.js +0 -8
- package/dist/src/commands/provider/provider.js +0 -349
- package/dist/src/commands/rate-limit-options/index.js +0 -15
- package/dist/src/commands/rate-limit-options/rate-limit-options.js +0 -213
- package/dist/src/commands/release-notes/index.js +0 -8
- package/dist/src/commands/release-notes/release-notes.js +0 -38
- package/dist/src/commands/reload-plugins/index.js +0 -11
- package/dist/src/commands/reload-plugins/reload-plugins.js +0 -52
- package/dist/src/commands/remote-env/index.js +0 -12
- package/dist/src/commands/remote-env/remote-env.js +0 -5
- package/dist/src/commands/remote-setup/api.js +0 -155
- package/dist/src/commands/remote-setup/index.js +0 -15
- package/dist/src/commands/remote-setup/remote-setup.js +0 -149
- package/dist/src/commands/rename/generateSessionName.js +0 -58
- package/dist/src/commands/rename/index.js +0 -9
- package/dist/src/commands/rename/rename.js +0 -52
- package/dist/src/commands/reset-limits/index.js +0 -4
- package/dist/src/commands/resume/index.js +0 -9
- package/dist/src/commands/resume/resume.js +0 -239
- package/dist/src/commands/review/UltrareviewOverageDialog.js +0 -97
- package/dist/src/commands/review/reviewRemote.js +0 -259
- package/dist/src/commands/review/ultrareviewCommand.js +0 -57
- package/dist/src/commands/review/ultrareviewEnabled.js +0 -10
- package/dist/src/commands/review.js +0 -50
- package/dist/src/commands/rewind/index.js +0 -10
- package/dist/src/commands/rewind/rewind.js +0 -7
- package/dist/src/commands/sandbox-toggle/index.js +0 -41
- package/dist/src/commands/sandbox-toggle/sandbox-toggle.js +0 -72
- package/dist/src/commands/security-review.js +0 -231
- package/dist/src/commands/session/index.js +0 -13
- package/dist/src/commands/session/session.js +0 -142
- package/dist/src/commands/share/index.js +0 -1
- package/dist/src/commands/skills/index.js +0 -7
- package/dist/src/commands/skills/skills.js +0 -5
- package/dist/src/commands/stats/index.js +0 -7
- package/dist/src/commands/stats/stats.js +0 -5
- package/dist/src/commands/status/index.js +0 -8
- package/dist/src/commands/status/status.js +0 -5
- package/dist/src/commands/statusline.js +0 -22
- package/dist/src/commands/stickers/index.js +0 -8
- package/dist/src/commands/stickers/stickers.js +0 -14
- package/dist/src/commands/summary/index.js +0 -1
- package/dist/src/commands/tag/index.js +0 -9
- package/dist/src/commands/tag/tag.js +0 -215
- package/dist/src/commands/tasks/index.js +0 -8
- package/dist/src/commands/tasks/tasks.js +0 -5
- package/dist/src/commands/telegram/index.js +0 -9
- package/dist/src/commands/telegram/telegram.js +0 -118
- package/dist/src/commands/teleport/index.js +0 -1
- package/dist/src/commands/terminalSetup/index.js +0 -18
- package/dist/src/commands/terminalSetup/terminalSetup.js +0 -491
- package/dist/src/commands/theme/index.js +0 -7
- package/dist/src/commands/theme/theme.js +0 -50
- package/dist/src/commands/thinkback/index.js +0 -9
- package/dist/src/commands/thinkback/thinkback.js +0 -527
- package/dist/src/commands/thinkback-play/index.js +0 -13
- package/dist/src/commands/thinkback-play/thinkback-play.js +0 -34
- package/dist/src/commands/ultraplan.js +0 -418
- package/dist/src/commands/upgrade/index.js +0 -12
- package/dist/src/commands/upgrade/upgrade.js +0 -37
- package/dist/src/commands/usage/index.js +0 -7
- package/dist/src/commands/usage/usage.js +0 -5
- package/dist/src/commands/version.js +0 -18
- package/dist/src/commands/vim/index.js +0 -8
- package/dist/src/commands/vim/vim.js +0 -25
- package/dist/src/commands/voice/index.js +0 -14
- package/dist/src/commands/voice/voice.js +0 -130
- package/dist/src/commands/whatsapp/index.js +0 -9
- package/dist/src/commands/whatsapp/whatsapp.js +0 -326
- package/dist/src/commands.js +0 -646
- package/dist/src/components/AgentProgressLine.js +0 -111
- package/dist/src/components/App.js +0 -45
- package/dist/src/components/ApproveApiKey.js +0 -124
- package/dist/src/components/AutoModeOptInDialog.js +0 -140
- package/dist/src/components/AutoUpdater.js +0 -157
- package/dist/src/components/AutoUpdaterWrapper.js +0 -78
- package/dist/src/components/AwsAuthStatusBox.js +0 -88
- package/dist/src/components/BaseTextInput.js +0 -105
- package/dist/src/components/BashModeProgress.js +0 -48
- package/dist/src/components/BridgeDialog.js +0 -414
- package/dist/src/components/BypassPermissionsModeDialog.js +0 -87
- package/dist/src/components/ChannelDowngradeDialog.js +0 -100
- package/dist/src/components/ClaudeCodeHint/PluginHintMenu.js +0 -37
- package/dist/src/components/ClaudeInChromeOnboarding.js +0 -126
- package/dist/src/components/ClaudeMdExternalIncludesDialog.js +0 -137
- package/dist/src/components/ClickableImageRef.js +0 -64
- package/dist/src/components/CompactSummary.js +0 -119
- package/dist/src/components/ConfigurableShortcutHint.js +0 -34
- package/dist/src/components/ConsoleOAuthFlow.js +0 -756
- package/dist/src/components/ContextSuggestions.js +0 -43
- package/dist/src/components/ContextVisualization.js +0 -483
- package/dist/src/components/CoordinatorAgentStatus.js +0 -261
- package/dist/src/components/CostThresholdDialog.js +0 -48
- package/dist/src/components/CtrlOToExpand.js +0 -50
- package/dist/src/components/CustomSelect/SelectMulti.js +0 -149
- package/dist/src/components/CustomSelect/index.js +0 -2
- package/dist/src/components/CustomSelect/option-map.js +0 -32
- package/dist/src/components/CustomSelect/select-input-option.js +0 -426
- package/dist/src/components/CustomSelect/select-option.js +0 -23
- package/dist/src/components/CustomSelect/select.js +0 -518
- package/dist/src/components/CustomSelect/use-multi-select-state.js +0 -214
- package/dist/src/components/CustomSelect/use-select-input.js +0 -170
- package/dist/src/components/CustomSelect/use-select-navigation.js +0 -366
- package/dist/src/components/CustomSelect/use-select-state.js +0 -22
- package/dist/src/components/DesktopHandoff.js +0 -195
- package/dist/src/components/DesktopUpsell/DesktopUpsellStartup.js +0 -173
- package/dist/src/components/DevBar.js +0 -50
- package/dist/src/components/DevChannelsDialog.js +0 -103
- package/dist/src/components/DiagnosticsDisplay.js +0 -91
- package/dist/src/components/EffortCallout.js +0 -264
- package/dist/src/components/EffortIndicator.js +0 -29
- package/dist/src/components/ExitFlow.js +0 -40
- package/dist/src/components/ExportDialog.js +0 -101
- package/dist/src/components/FallbackToolUseErrorMessage.js +0 -115
- package/dist/src/components/FallbackToolUseRejectedMessage.js +0 -16
- package/dist/src/components/FastIcon.js +0 -42
- package/dist/src/components/Feedback.js +0 -439
- package/dist/src/components/FeedbackSurvey/FeedbackSurvey.js +0 -150
- package/dist/src/components/FeedbackSurvey/FeedbackSurveyView.js +0 -103
- package/dist/src/components/FeedbackSurvey/TranscriptSharePrompt.js +0 -83
- package/dist/src/components/FeedbackSurvey/submitTranscriptShare.js +0 -75
- package/dist/src/components/FeedbackSurvey/useDebouncedDigitInput.js +0 -51
- package/dist/src/components/FeedbackSurvey/useFeedbackSurvey.js +0 -258
- package/dist/src/components/FeedbackSurvey/useMemorySurvey.js +0 -191
- package/dist/src/components/FeedbackSurvey/usePostCompactSurvey.js +0 -202
- package/dist/src/components/FeedbackSurvey/useSurveyState.js +0 -80
- package/dist/src/components/FileEditToolDiff.js +0 -166
- package/dist/src/components/FileEditToolUpdatedMessage.js +0 -111
- package/dist/src/components/FileEditToolUseRejectedMessage.js +0 -157
- package/dist/src/components/FilePathLink.js +0 -34
- package/dist/src/components/FullscreenLayout.js +0 -578
- package/dist/src/components/GlobalSearchDialog.js +0 -339
- package/dist/src/components/HelpV2/Commands.js +0 -65
- package/dist/src/components/HelpV2/General.js +0 -24
- package/dist/src/components/HelpV2/HelpV2.js +0 -186
- package/dist/src/components/HighlightedCode/Fallback.js +0 -193
- package/dist/src/components/HighlightedCode.js +0 -184
- package/dist/src/components/HistorySearchDialog.js +0 -92
- package/dist/src/components/IdeAutoConnectDialog.js +0 -153
- package/dist/src/components/IdeOnboardingDialog.js +0 -174
- package/dist/src/components/IdeStatusIndicator.js +0 -49
- package/dist/src/components/IdleReturnDialog.js +0 -116
- package/dist/src/components/InterruptedByUser.js +0 -15
- package/dist/src/components/InvalidConfigDialog.js +0 -134
- package/dist/src/components/InvalidSettingsDialog.js +0 -84
- package/dist/src/components/KeybindingWarnings.js +0 -54
- package/dist/src/components/LanguagePicker.js +0 -84
- package/dist/src/components/LogSelector.js +0 -1579
- package/dist/src/components/LogoV2/AnimatedAsterisk.js +0 -42
- package/dist/src/components/LogoV2/AnimatedClawd.js +0 -111
- package/dist/src/components/LogoV2/ChannelsNotice.js +0 -258
- package/dist/src/components/LogoV2/Clawd.js +0 -5
- package/dist/src/components/LogoV2/CondensedLogo.js +0 -159
- package/dist/src/components/LogoV2/EmergencyTip.js +0 -47
- package/dist/src/components/LogoV2/Feed.js +0 -84
- package/dist/src/components/LogoV2/FeedColumn.js +0 -55
- package/dist/src/components/LogoV2/GuestPassesUpsell.js +0 -71
- package/dist/src/components/LogoV2/LogoV2.js +0 -565
- package/dist/src/components/LogoV2/Opus1mMergeNotice.js +0 -56
- package/dist/src/components/LogoV2/OverageCreditUpsell.js +0 -160
- package/dist/src/components/LogoV2/VoiceModeNotice.js +0 -70
- package/dist/src/components/LogoV2/WelcomeV2.js +0 -461
- package/dist/src/components/LogoV2/feedConfigs.js +0 -78
- package/dist/src/components/LspRecommendation/LspRecommendationMenu.js +0 -46
- package/dist/src/components/MCPServerApprovalDialog.js +0 -113
- package/dist/src/components/MCPServerDesktopImportDialog.js +0 -206
- package/dist/src/components/MCPServerDialogCopy.js +0 -15
- package/dist/src/components/MCPServerMultiselectDialog.js +0 -133
- package/dist/src/components/ManagedSettingsSecurityDialog/ManagedSettingsSecurityDialog.js +0 -149
- package/dist/src/components/ManagedSettingsSecurityDialog/utils.js +0 -105
- package/dist/src/components/Markdown.js +0 -217
- package/dist/src/components/MarkdownTable.js +0 -279
- package/dist/src/components/MemoryUsageIndicator.js +0 -27
- package/dist/src/components/Message.js +0 -566
- package/dist/src/components/MessageModel.js +0 -36
- package/dist/src/components/MessageResponse.js +0 -73
- package/dist/src/components/MessageRow.js +0 -346
- package/dist/src/components/MessageSelector.js +0 -743
- package/dist/src/components/MessageTimestamp.js +0 -57
- package/dist/src/components/Messages.js +0 -637
- package/dist/src/components/ModelPicker.js +0 -484
- package/dist/src/components/NativeAutoUpdater.js +0 -153
- package/dist/src/components/NotebookEditToolUseRejectedMessage.js +0 -83
- package/dist/src/components/OffscreenFreeze.js +0 -35
- package/dist/src/components/Onboarding.js +0 -174
- package/dist/src/components/OutputStylePicker.js +0 -102
- package/dist/src/components/PackageManagerAutoUpdater.js +0 -100
- package/dist/src/components/Passes/Passes.js +0 -113
- package/dist/src/components/PrBadge.js +0 -90
- package/dist/src/components/PressEnterToContinue.js +0 -15
- package/dist/src/components/PromptInput/HistorySearchInput.js +0 -44
- package/dist/src/components/PromptInput/IssueFlagBanner.js +0 -8
- package/dist/src/components/PromptInput/Notifications.js +0 -221
- package/dist/src/components/PromptInput/PromptInput.js +0 -1998
- package/dist/src/components/PromptInput/PromptInputFooter.js +0 -84
- package/dist/src/components/PromptInput/PromptInputFooterLeftSide.js +0 -409
- package/dist/src/components/PromptInput/PromptInputFooterSuggestions.js +0 -280
- package/dist/src/components/PromptInput/PromptInputHelpMenu.js +0 -379
- package/dist/src/components/PromptInput/PromptInputModeIndicator.js +0 -72
- package/dist/src/components/PromptInput/PromptInputQueuedCommands.js +0 -105
- package/dist/src/components/PromptInput/PromptInputStashNotice.js +0 -20
- package/dist/src/components/PromptInput/SandboxPromptFooterHint.js +0 -65
- package/dist/src/components/PromptInput/ShimmeredInput.js +0 -132
- package/dist/src/components/PromptInput/VoiceIndicator.js +0 -136
- package/dist/src/components/PromptInput/inputModes.js +0 -24
- package/dist/src/components/PromptInput/inputPaste.js +0 -62
- package/dist/src/components/PromptInput/useMaybeTruncateInput.js +0 -33
- package/dist/src/components/PromptInput/usePromptInputPlaceholder.js +0 -55
- package/dist/src/components/PromptInput/useShowFastIconHint.js +0 -23
- package/dist/src/components/PromptInput/useSwarmBanner.js +0 -112
- package/dist/src/components/PromptInput/utils.js +0 -50
- package/dist/src/components/QuickOpenDialog.js +0 -243
- package/dist/src/components/RemoteCallout.js +0 -53
- package/dist/src/components/RemoteEnvironmentDialog.js +0 -345
- package/dist/src/components/ResumeTask.js +0 -173
- package/dist/src/components/SandboxViolationExpandedView.js +0 -102
- package/dist/src/components/ScrollKeybindingHandler.js +0 -982
- package/dist/src/components/SearchBox.js +0 -55
- package/dist/src/components/SentryErrorBoundary.js +0 -16
- package/dist/src/components/SessionBackgroundHint.js +0 -104
- package/dist/src/components/SessionPreview.js +0 -200
- package/dist/src/components/Settings/Config.js +0 -1628
- package/dist/src/components/Settings/Settings.js +0 -129
- package/dist/src/components/Settings/Status.js +0 -230
- package/dist/src/components/Settings/Usage.js +0 -341
- package/dist/src/components/ShowInIDEPrompt.js +0 -151
- package/dist/src/components/SkillImprovementSurvey.js +0 -130
- package/dist/src/components/Spinner/FlashingChar.js +0 -51
- package/dist/src/components/Spinner/GlimmerMessage.js +0 -328
- package/dist/src/components/Spinner/ShimmerChar.js +0 -22
- package/dist/src/components/Spinner/SpinnerAnimationRow.js +0 -169
- package/dist/src/components/Spinner/SpinnerGlyph.js +0 -69
- package/dist/src/components/Spinner/TeammateSpinnerLine.js +0 -170
- package/dist/src/components/Spinner/TeammateSpinnerTree.js +0 -268
- package/dist/src/components/Spinner/index.js +0 -11
- package/dist/src/components/Spinner/teammateSelectHint.js +0 -1
- package/dist/src/components/Spinner/useShimmerAnimation.js +0 -22
- package/dist/src/components/Spinner/useStalledAnimation.js +0 -63
- package/dist/src/components/Spinner/utils.js +0 -77
- package/dist/src/components/Spinner.js +0 -470
- package/dist/src/components/Stats.js +0 -1000
- package/dist/src/components/StatusLine.js +0 -285
- package/dist/src/components/StatusNotices.js +0 -50
- package/dist/src/components/StructuredDiff/Fallback.js +0 -335
- package/dist/src/components/StructuredDiff/colorDiff.js +0 -26
- package/dist/src/components/StructuredDiff.js +0 -152
- package/dist/src/components/StructuredDiffList.js +0 -8
- package/dist/src/components/TagTabs.js +0 -100
- package/dist/src/components/TaskListV2.js +0 -333
- package/dist/src/components/TeammateViewHeader.js +0 -87
- package/dist/src/components/TeleportError.js +0 -191
- package/dist/src/components/TeleportProgress.js +0 -130
- package/dist/src/components/TeleportRepoMismatchDialog.js +0 -98
- package/dist/src/components/TeleportResumeWrapper.js +0 -158
- package/dist/src/components/TeleportStash.js +0 -82
- package/dist/src/components/TextInput.js +0 -108
- package/dist/src/components/ThemePicker.js +0 -330
- package/dist/src/components/ThinkingToggle.js +0 -153
- package/dist/src/components/TokenWarning.js +0 -172
- package/dist/src/components/ToolUseLoader.js +0 -34
- package/dist/src/components/TrustDialog/TrustDialog.js +0 -301
- package/dist/src/components/TrustDialog/utils.js +0 -199
- package/dist/src/components/ValidationErrorsList.js +0 -146
- package/dist/src/components/VimTextInput.js +0 -136
- package/dist/src/components/VirtualMessageList.js +0 -892
- package/dist/src/components/WorkflowMultiselectDialog.js +0 -118
- package/dist/src/components/WorktreeExitDialog.js +0 -222
- package/dist/src/components/agents/AgentDetail.js +0 -226
- package/dist/src/components/agents/AgentEditor.js +0 -146
- package/dist/src/components/agents/AgentNavigationFooter.js +0 -21
- package/dist/src/components/agents/AgentsList.js +0 -436
- package/dist/src/components/agents/AgentsMenu.js +0 -848
- package/dist/src/components/agents/ColorPicker.js +0 -110
- package/dist/src/components/agents/ModelSelector.js +0 -62
- package/dist/src/components/agents/SnapshotUpdateDialog.js +0 -16
- package/dist/src/components/agents/ToolSelector.js +0 -557
- package/dist/src/components/agents/agentFileUtils.js +0 -179
- package/dist/src/components/agents/generateAgent.js +0 -161
- package/dist/src/components/agents/new-agent-creation/CreateAgentWizard.js +0 -88
- package/dist/src/components/agents/new-agent-creation/wizard-steps/ColorStep.js +0 -80
- package/dist/src/components/agents/new-agent-creation/wizard-steps/ConfirmStep.js +0 -386
- package/dist/src/components/agents/new-agent-creation/wizard-steps/ConfirmStepWrapper.js +0 -63
- package/dist/src/components/agents/new-agent-creation/wizard-steps/DescriptionStep.js +0 -126
- package/dist/src/components/agents/new-agent-creation/wizard-steps/GenerateStep.js +0 -118
- package/dist/src/components/agents/new-agent-creation/wizard-steps/LocationStep.js +0 -79
- package/dist/src/components/agents/new-agent-creation/wizard-steps/MemoryStep.js +0 -107
- package/dist/src/components/agents/new-agent-creation/wizard-steps/MethodStep.js +0 -79
- package/dist/src/components/agents/new-agent-creation/wizard-steps/ModelStep.js +0 -48
- package/dist/src/components/agents/new-agent-creation/wizard-steps/PromptStep.js +0 -131
- package/dist/src/components/agents/new-agent-creation/wizard-steps/ToolsStep.js +0 -51
- package/dist/src/components/agents/new-agent-creation/wizard-steps/TypeStep.js +0 -100
- package/dist/src/components/agents/types.js +0 -4
- package/dist/src/components/agents/utils.js +0 -14
- package/dist/src/components/agents/validateAgent.js +0 -79
- package/dist/src/components/design-system/Byline.js +0 -72
- package/dist/src/components/design-system/Dialog.js +0 -116
- package/dist/src/components/design-system/Divider.js +0 -109
- package/dist/src/components/design-system/FuzzyPicker.js +0 -187
- package/dist/src/components/design-system/KeyboardShortcutHint.js +0 -67
- package/dist/src/components/design-system/ListItem.js +0 -183
- package/dist/src/components/design-system/LoadingState.js +0 -68
- package/dist/src/components/design-system/Pane.js +0 -68
- package/dist/src/components/design-system/ProgressBar.js +0 -62
- package/dist/src/components/design-system/Ratchet.js +0 -71
- package/dist/src/components/design-system/StatusIcon.js +0 -69
- package/dist/src/components/design-system/Tabs.js +0 -269
- package/dist/src/components/design-system/ThemeProvider.js +0 -137
- package/dist/src/components/design-system/ThemedBox.js +0 -125
- package/dist/src/components/design-system/ThemedText.js +0 -60
- package/dist/src/components/design-system/color.js +0 -22
- package/dist/src/components/diff/DiffDetailView.js +0 -284
- package/dist/src/components/diff/DiffDialog.js +0 -387
- package/dist/src/components/diff/DiffFileList.js +0 -291
- package/dist/src/components/grove/Grove.js +0 -483
- package/dist/src/components/hooks/HooksConfigMenu.js +0 -570
- package/dist/src/components/hooks/PromptDialog.js +0 -81
- package/dist/src/components/hooks/SelectEventMode.js +0 -117
- package/dist/src/components/hooks/SelectHookMode.js +0 -93
- package/dist/src/components/hooks/SelectMatcherMode.js +0 -124
- package/dist/src/components/hooks/ViewHookMode.js +0 -197
- package/dist/src/components/mcp/CapabilitiesSection.js +0 -55
- package/dist/src/components/mcp/ElicitationDialog.js +0 -945
- package/dist/src/components/mcp/MCPAgentServerMenu.js +0 -95
- package/dist/src/components/mcp/MCPListPanel.js +0 -504
- package/dist/src/components/mcp/MCPReconnect.js +0 -168
- package/dist/src/components/mcp/MCPRemoteServerMenu.js +0 -460
- package/dist/src/components/mcp/MCPSettings.js +0 -414
- package/dist/src/components/mcp/MCPStdioServerMenu.js +0 -95
- package/dist/src/components/mcp/MCPToolDetailView.js +0 -219
- package/dist/src/components/mcp/MCPToolListView.js +0 -136
- package/dist/src/components/mcp/McpParsingWarnings.js +0 -211
- package/dist/src/components/mcp/index.js +0 -8
- package/dist/src/components/mcp/types.js +0 -3
- package/dist/src/components/mcp/utils/reconnectHelpers.js +0 -35
- package/dist/src/components/memory/MemoryFileSelector.js +0 -455
- package/dist/src/components/memory/MemoryUpdateNotification.js +0 -42
- package/dist/src/components/messageActions.js +0 -418
- package/dist/src/components/messages/AdvisorMessage.js +0 -151
- package/dist/src/components/messages/AssistantRedactedThinkingMessage.js +0 -27
- package/dist/src/components/messages/AssistantTextMessage.js +0 -274
- package/dist/src/components/messages/AssistantThinkingMessage.js +0 -69
- package/dist/src/components/messages/AssistantToolUseMessage.js +0 -323
- package/dist/src/components/messages/AttachmentMessage.js +0 -418
- package/dist/src/components/messages/CollapsedReadSearchContent.js +0 -362
- package/dist/src/components/messages/CompactBoundaryMessage.js +0 -18
- package/dist/src/components/messages/GroupedToolUseContent.js +0 -37
- package/dist/src/components/messages/HighlightedThinkingText.js +0 -164
- package/dist/src/components/messages/HookProgressMessage.js +0 -110
- package/dist/src/components/messages/PlanApprovalMessage.js +0 -212
- package/dist/src/components/messages/RateLimitMessage.js +0 -149
- package/dist/src/components/messages/ShutdownMessage.js +0 -123
- package/dist/src/components/messages/SystemAPIErrorMessage.js +0 -135
- package/dist/src/components/messages/SystemTextMessage.js +0 -843
- package/dist/src/components/messages/TaskAssignmentMessage.js +0 -71
- package/dist/src/components/messages/UserAgentNotificationMessage.js +0 -77
- package/dist/src/components/messages/UserBashInputMessage.js +0 -51
- package/dist/src/components/messages/UserBashOutputMessage.js +0 -54
- package/dist/src/components/messages/UserChannelMessage.js +0 -129
- package/dist/src/components/messages/UserCommandMessage.js +0 -106
- package/dist/src/components/messages/UserImageMessage.js +0 -53
- package/dist/src/components/messages/UserLocalCommandOutputMessage.js +0 -169
- package/dist/src/components/messages/UserMemoryInputMessage.js +0 -72
- package/dist/src/components/messages/UserPlanMessage.js +0 -37
- package/dist/src/components/messages/UserPromptMessage.js +0 -63
- package/dist/src/components/messages/UserResourceUpdateMessage.js +0 -101
- package/dist/src/components/messages/UserTeammateMessage.js +0 -156
- package/dist/src/components/messages/UserTextMessage.js +0 -271
- package/dist/src/components/messages/UserToolResultMessage/RejectedPlanMessage.js +0 -27
- package/dist/src/components/messages/UserToolResultMessage/RejectedToolUseMessage.js +0 -16
- package/dist/src/components/messages/UserToolResultMessage/UserToolCanceledMessage.js +0 -16
- package/dist/src/components/messages/UserToolResultMessage/UserToolErrorMessage.js +0 -91
- package/dist/src/components/messages/UserToolResultMessage/UserToolRejectMessage.js +0 -73
- package/dist/src/components/messages/UserToolResultMessage/UserToolResultMessage.js +0 -83
- package/dist/src/components/messages/UserToolResultMessage/UserToolSuccessMessage.js +0 -58
- package/dist/src/components/messages/UserToolResultMessage/utils.js +0 -43
- package/dist/src/components/messages/nullRenderingAttachments.js +0 -58
- package/dist/src/components/messages/teamMemCollapsed.js +0 -142
- package/dist/src/components/messages/teamMemSaved.js +0 -17
- package/dist/src/components/permissions/AskUserQuestionPermissionRequest/AskUserQuestionPermissionRequest.js +0 -654
- package/dist/src/components/permissions/AskUserQuestionPermissionRequest/PreviewBox.js +0 -219
- package/dist/src/components/permissions/AskUserQuestionPermissionRequest/PreviewQuestionView.js +0 -227
- package/dist/src/components/permissions/AskUserQuestionPermissionRequest/QuestionNavigationBar.js +0 -174
- package/dist/src/components/permissions/AskUserQuestionPermissionRequest/QuestionView.js +0 -444
- package/dist/src/components/permissions/AskUserQuestionPermissionRequest/SubmitQuestionsView.js +0 -136
- package/dist/src/components/permissions/AskUserQuestionPermissionRequest/use-multiple-choice-state.js +0 -100
- package/dist/src/components/permissions/BashPermissionRequest/BashPermissionRequest.js +0 -404
- package/dist/src/components/permissions/BashPermissionRequest/bashToolUseOptions.js +0 -110
- package/dist/src/components/permissions/ComputerUseApproval/ComputerUseApproval.js +0 -448
- package/dist/src/components/permissions/EnterPlanModePermissionRequest/EnterPlanModePermissionRequest.js +0 -125
- package/dist/src/components/permissions/ExitPlanModePermissionRequest/ExitPlanModePermissionRequest.js +0 -650
- package/dist/src/components/permissions/FallbackPermissionRequest.js +0 -348
- package/dist/src/components/permissions/FileEditPermissionRequest/FileEditPermissionRequest.js +0 -184
- package/dist/src/components/permissions/FilePermissionDialog/FilePermissionDialog.js +0 -108
- package/dist/src/components/permissions/FilePermissionDialog/ideDiffConfig.js +0 -13
- package/dist/src/components/permissions/FilePermissionDialog/permissionOptions.js +0 -136
- package/dist/src/components/permissions/FilePermissionDialog/useFilePermissionDialog.js +0 -131
- package/dist/src/components/permissions/FilePermissionDialog/usePermissionHandler.js +0 -86
- package/dist/src/components/permissions/FileWritePermissionRequest/FileWritePermissionRequest.js +0 -163
- package/dist/src/components/permissions/FileWritePermissionRequest/FileWriteToolDiff.js +0 -78
- package/dist/src/components/permissions/FilesystemPermissionRequest/FilesystemPermissionRequest.js +0 -112
- package/dist/src/components/permissions/NotebookEditPermissionRequest/NotebookEditPermissionRequest.js +0 -163
- package/dist/src/components/permissions/NotebookEditPermissionRequest/NotebookEditToolDiff.js +0 -217
- package/dist/src/components/permissions/PermissionDecisionDebugInfo.js +0 -466
- package/dist/src/components/permissions/PermissionDialog.js +0 -54
- package/dist/src/components/permissions/PermissionExplanation.js +0 -269
- package/dist/src/components/permissions/PermissionPrompt.js +0 -316
- package/dist/src/components/permissions/PermissionRequest.js +0 -160
- package/dist/src/components/permissions/PermissionRequestTitle.js +0 -57
- package/dist/src/components/permissions/PermissionRuleExplanation.js +0 -109
- package/dist/src/components/permissions/PowerShellPermissionRequest/PowerShellPermissionRequest.js +0 -178
- package/dist/src/components/permissions/PowerShellPermissionRequest/powershellToolUseOptions.js +0 -73
- package/dist/src/components/permissions/SandboxPermissionRequest.js +0 -161
- package/dist/src/components/permissions/SedEditPermissionRequest/SedEditPermissionRequest.js +0 -228
- package/dist/src/components/permissions/SkillPermissionRequest/SkillPermissionRequest.js +0 -384
- package/dist/src/components/permissions/WebFetchPermissionRequest/WebFetchPermissionRequest.js +0 -258
- package/dist/src/components/permissions/WorkerBadge.js +0 -43
- package/dist/src/components/permissions/WorkerPendingPermission.js +0 -106
- package/dist/src/components/permissions/hooks.js +0 -163
- package/dist/src/components/permissions/rules/AddPermissionRules.js +0 -170
- package/dist/src/components/permissions/rules/AddWorkspaceDirectory.js +0 -334
- package/dist/src/components/permissions/rules/PermissionRuleDescription.js +0 -77
- package/dist/src/components/permissions/rules/PermissionRuleInput.js +0 -135
- package/dist/src/components/permissions/rules/PermissionRuleList.js +0 -1189
- package/dist/src/components/permissions/rules/RecentDenialsTab.js +0 -204
- package/dist/src/components/permissions/rules/RemoveWorkspaceDirectory.js +0 -102
- package/dist/src/components/permissions/rules/WorkspaceTab.js +0 -132
- package/dist/src/components/permissions/shellPermissionHelpers.js +0 -111
- package/dist/src/components/permissions/useShellPermissionFeedback.js +0 -108
- package/dist/src/components/permissions/utils.js +0 -14
- package/dist/src/components/sandbox/SandboxConfigTab.js +0 -47
- package/dist/src/components/sandbox/SandboxDependenciesTab.js +0 -122
- package/dist/src/components/sandbox/SandboxDoctorSection.js +0 -46
- package/dist/src/components/sandbox/SandboxOverridesTab.js +0 -192
- package/dist/src/components/sandbox/SandboxSettings.js +0 -296
- package/dist/src/components/shell/ExpandShellOutputContext.js +0 -33
- package/dist/src/components/shell/OutputLine.js +0 -110
- package/dist/src/components/shell/ShellProgressMessage.js +0 -143
- package/dist/src/components/shell/ShellTimeDisplay.js +0 -71
- package/dist/src/components/skills/SkillsMenu.js +0 -238
- package/dist/src/components/tasks/AsyncAgentDetailDialog.js +0 -234
- package/dist/src/components/tasks/BackgroundTask.js +0 -363
- package/dist/src/components/tasks/BackgroundTaskStatus.js +0 -419
- package/dist/src/components/tasks/BackgroundTasksDialog.js +0 -496
- package/dist/src/components/tasks/DreamDetailDialog.js +0 -250
- package/dist/src/components/tasks/InProcessTeammateDetailDialog.js +0 -274
- package/dist/src/components/tasks/RemoteSessionDetailDialog.js +0 -868
- package/dist/src/components/tasks/RemoteSessionProgress.js +0 -249
- package/dist/src/components/tasks/ShellDetailDialog.js +0 -403
- package/dist/src/components/tasks/ShellProgress.js +0 -76
- package/dist/src/components/tasks/renderToolActivity.js +0 -28
- package/dist/src/components/tasks/taskStatusUtils.js +0 -94
- package/dist/src/components/teams/TeamStatus.js +0 -76
- package/dist/src/components/teams/TeamsDialog.js +0 -672
- package/dist/src/components/ui/OrderedList.js +0 -66
- package/dist/src/components/ui/OrderedListItem.js +0 -41
- package/dist/src/components/ui/TreeSelect.js +0 -300
- package/dist/src/components/wizard/WizardDialogLayout.js +0 -47
- package/dist/src/components/wizard/WizardNavigationFooter.js +0 -10
- package/dist/src/components/wizard/WizardProvider.js +0 -217
- package/dist/src/components/wizard/index.js +0 -4
- package/dist/src/components/wizard/useWizard.js +0 -9
- package/dist/src/constants/apiLimits.js +0 -81
- package/dist/src/constants/betas.js +0 -45
- package/dist/src/constants/common.js +0 -29
- package/dist/src/constants/cyberRiskInstruction.js +0 -24
- package/dist/src/constants/errorIds.js +0 -14
- package/dist/src/constants/figures.js +0 -38
- package/dist/src/constants/files.js +0 -150
- package/dist/src/constants/github-app.js +0 -139
- package/dist/src/constants/keys.js +0 -10
- package/dist/src/constants/messages.js +0 -1
- package/dist/src/constants/oauth.js +0 -221
- package/dist/src/constants/outputStyles.js +0 -162
- package/dist/src/constants/product.js +0 -56
- package/dist/src/constants/prompts.js +0 -752
- package/dist/src/constants/spinnerVerbs.js +0 -202
- package/dist/src/constants/system.js +0 -77
- package/dist/src/constants/systemPromptSections.js +0 -39
- package/dist/src/constants/toolLimits.js +0 -50
- package/dist/src/constants/tools.js +0 -103
- package/dist/src/constants/turnCompletionVerbs.js +0 -12
- package/dist/src/constants/xml.js +0 -73
- package/dist/src/context/QueuedMessageContext.js +0 -51
- package/dist/src/context/fpsMetrics.js +0 -22
- package/dist/src/context/mailbox.js +0 -35
- package/dist/src/context/modalContext.js +0 -34
- package/dist/src/context/notifications.js +0 -199
- package/dist/src/context/overlayContext.js +0 -149
- package/dist/src/context/promptOverlayContext.js +0 -118
- package/dist/src/context/stats.js +0 -207
- package/dist/src/context/voice.js +0 -74
- package/dist/src/context.js +0 -146
- package/dist/src/coordinator/coordinatorMode.js +0 -345
- package/dist/src/cost-tracker.js +0 -208
- package/dist/src/costHook.js +0 -17
- package/dist/src/daemon/main.js +0 -16
- package/dist/src/daemon/workerRegistry.js +0 -16
- package/dist/src/dialogLaunchers.js +0 -68
- package/dist/src/entrypoints/agentSdkTypes.js +0 -202
- package/dist/src/entrypoints/cli.js +0 -237
- package/dist/src/entrypoints/init.js +0 -265
- package/dist/src/entrypoints/mcp.js +0 -142
- package/dist/src/entrypoints/sandboxTypes.js +0 -112
- package/dist/src/entrypoints/sdk/controlSchemas.js +0 -452
- package/dist/src/entrypoints/sdk/controlTypes.js +0 -1
- package/dist/src/entrypoints/sdk/coreSchemas.js +0 -1331
- package/dist/src/entrypoints/sdk/coreTypes.generated.js +0 -1
- package/dist/src/entrypoints/sdk/coreTypes.js +0 -49
- package/dist/src/entrypoints/sdk/runtimeTypes.js +0 -1
- package/dist/src/entrypoints/sdk/toolTypes.js +0 -1
- package/dist/src/environment-runner/main.js +0 -16
- package/dist/src/history.js +0 -386
- package/dist/src/hooks/fileSuggestions.js +0 -635
- package/dist/src/hooks/notifs/useAutoModeUnavailableNotification.js +0 -47
- package/dist/src/hooks/notifs/useCanSwitchToExistingSubscription.js +0 -57
- package/dist/src/hooks/notifs/useDeprecationWarningNotification.js +0 -43
- package/dist/src/hooks/notifs/useFastModeNotification.js +0 -164
- package/dist/src/hooks/notifs/useIDEStatusIndicator.js +0 -174
- package/dist/src/hooks/notifs/useInstallMessages.js +0 -27
- package/dist/src/hooks/notifs/useLspInitializationNotification.js +0 -144
- package/dist/src/hooks/notifs/useMcpConnectivityStatus.js +0 -80
- package/dist/src/hooks/notifs/useModelMigrationNotifications.js +0 -53
- package/dist/src/hooks/notifs/useNpmDeprecationNotification.js +0 -24
- package/dist/src/hooks/notifs/usePluginAutoupdateNotification.js +0 -82
- package/dist/src/hooks/notifs/usePluginInstallationStatus.js +0 -127
- package/dist/src/hooks/notifs/useRateLimitWarningNotification.js +0 -118
- package/dist/src/hooks/notifs/useSettingsErrors.js +0 -64
- package/dist/src/hooks/notifs/useStartupNotification.js +0 -33
- package/dist/src/hooks/notifs/useTeammateShutdownNotification.js +0 -64
- package/dist/src/hooks/renderPlaceholder.js +0 -26
- package/dist/src/hooks/toolPermission/PermissionContext.js +0 -211
- package/dist/src/hooks/toolPermission/handlers/coordinatorHandler.js +0 -44
- package/dist/src/hooks/toolPermission/handlers/interactiveHandler.js +0 -397
- package/dist/src/hooks/toolPermission/handlers/swarmWorkerHandler.js +0 -108
- package/dist/src/hooks/toolPermission/permissionLogging.js +0 -145
- package/dist/src/hooks/unifiedSuggestions.js +0 -130
- package/dist/src/hooks/useAfterFirstRender.js +0 -12
- package/dist/src/hooks/useApiKeyVerification.js +0 -63
- package/dist/src/hooks/useArrowKeyHistory.js +0 -203
- package/dist/src/hooks/useAssistantHistory.js +0 -194
- package/dist/src/hooks/useAwaySummary.js +0 -105
- package/dist/src/hooks/useBackgroundTaskNavigation.js +0 -204
- package/dist/src/hooks/useBlink.js +0 -28
- package/dist/src/hooks/useCanUseTool.js +0 -192
- package/dist/src/hooks/useCancelRequest.js +0 -195
- package/dist/src/hooks/useChromeExtensionNotification.js +0 -49
- package/dist/src/hooks/useClaudeCodeHintRecommendation.js +0 -117
- package/dist/src/hooks/useClipboardImageHint.js +0 -59
- package/dist/src/hooks/useCommandKeybindings.js +0 -87
- package/dist/src/hooks/useCommandQueue.js +0 -10
- package/dist/src/hooks/useCopyOnSelect.js +0 -88
- package/dist/src/hooks/useDeferredHookMessages.js +0 -43
- package/dist/src/hooks/useDiffData.js +0 -69
- package/dist/src/hooks/useDiffInIDE.js +0 -252
- package/dist/src/hooks/useDirectConnect.js +0 -150
- package/dist/src/hooks/useDoublePress.js +0 -44
- package/dist/src/hooks/useDynamicConfig.js +0 -17
- package/dist/src/hooks/useElapsedTime.js +0 -25
- package/dist/src/hooks/useExitOnCtrlCD.js +0 -57
- package/dist/src/hooks/useExitOnCtrlCDWithKeybindings.js +0 -17
- package/dist/src/hooks/useFileHistorySnapshotInit.js +0 -14
- package/dist/src/hooks/useGlobalKeybindings.js +0 -215
- package/dist/src/hooks/useHistorySearch.js +0 -241
- package/dist/src/hooks/useIDEIntegration.js +0 -56
- package/dist/src/hooks/useIdeAtMentioned.js +0 -51
- package/dist/src/hooks/useIdeConnectionStatus.js +0 -21
- package/dist/src/hooks/useIdeLogging.js +0 -29
- package/dist/src/hooks/useIdeSelection.js +0 -106
- package/dist/src/hooks/useInboxPoller.js +0 -709
- package/dist/src/hooks/useInputBuffer.js +0 -73
- package/dist/src/hooks/useIssueFlagBanner.js +0 -115
- package/dist/src/hooks/useLogMessages.js +0 -98
- package/dist/src/hooks/useLspPluginRecommendation.js +0 -176
- package/dist/src/hooks/useMailboxBridge.js +0 -15
- package/dist/src/hooks/useMainLoopModel.js +0 -25
- package/dist/src/hooks/useManagePlugins.js +0 -261
- package/dist/src/hooks/useMemoryUsage.js +0 -28
- package/dist/src/hooks/useMergedClients.js +0 -11
- package/dist/src/hooks/useMergedCommands.js +0 -10
- package/dist/src/hooks/useMergedTools.js +0 -32
- package/dist/src/hooks/useMinDisplayTime.js +0 -26
- package/dist/src/hooks/useNotifyAfterTimeout.js +0 -51
- package/dist/src/hooks/useOfficialMarketplaceNotification.js +0 -46
- package/dist/src/hooks/usePasteHandler.js +0 -188
- package/dist/src/hooks/usePluginRecommendationBase.js +0 -101
- package/dist/src/hooks/usePrStatus.js +0 -91
- package/dist/src/hooks/usePromptSuggestion.js +0 -128
- package/dist/src/hooks/usePromptsFromClaudeInChrome.js +0 -66
- package/dist/src/hooks/useQueueProcessor.js +0 -46
- package/dist/src/hooks/useRemoteSession.js +0 -431
- package/dist/src/hooks/useReplBridge.js +0 -717
- package/dist/src/hooks/useSSHSession.js +0 -167
- package/dist/src/hooks/useScheduledTasks.js +0 -104
- package/dist/src/hooks/useSearchInput.js +0 -302
- package/dist/src/hooks/useSessionBackgrounding.js +0 -132
- package/dist/src/hooks/useSettings.js +0 -10
- package/dist/src/hooks/useSettingsChange.js +0 -13
- package/dist/src/hooks/useSkillImprovementSurvey.js +0 -69
- package/dist/src/hooks/useSkillsChange.js +0 -51
- package/dist/src/hooks/useSwarmInitialization.js +0 -67
- package/dist/src/hooks/useSwarmPermissionPoller.js +0 -215
- package/dist/src/hooks/useTaskListWatcher.js +0 -157
- package/dist/src/hooks/useTasksV2.js +0 -220
- package/dist/src/hooks/useTeammateViewAutoExit.js +0 -55
- package/dist/src/hooks/useTelegramMirror.js +0 -47
- package/dist/src/hooks/useTeleportResume.js +0 -81
- package/dist/src/hooks/useTerminalSize.js +0 -9
- package/dist/src/hooks/useTextInput.js +0 -397
- package/dist/src/hooks/useTimeout.js +0 -10
- package/dist/src/hooks/useTurnDiffs.js +0 -160
- package/dist/src/hooks/useTypeahead.js +0 -1392
- package/dist/src/hooks/useUpdateNotification.js +0 -22
- package/dist/src/hooks/useVimInput.js +0 -232
- package/dist/src/hooks/useVirtualScroll.js +0 -627
- package/dist/src/hooks/useVoice.js +0 -954
- package/dist/src/hooks/useVoiceEnabled.js +0 -21
- package/dist/src/hooks/useVoiceIntegration.js +0 -631
- package/dist/src/hooks/useWhatsAppMirror.js +0 -46
- package/dist/src/index.js +0 -18
- package/dist/src/ink/Ansi.js +0 -269
- package/dist/src/ink/bidi.js +0 -117
- package/dist/src/ink/clearTerminal.js +0 -58
- package/dist/src/ink/colorize.js +0 -198
- package/dist/src/ink/components/AlternateScreen.js +0 -74
- package/dist/src/ink/components/App.js +0 -558
- package/dist/src/ink/components/AppContext.js +0 -11
- package/dist/src/ink/components/Box.js +0 -153
- package/dist/src/ink/components/Button.js +0 -166
- package/dist/src/ink/components/ClockContext.js +0 -108
- package/dist/src/ink/components/CursorDeclarationContext.js +0 -3
- package/dist/src/ink/components/ErrorOverview.js +0 -49
- package/dist/src/ink/components/Link.js +0 -33
- package/dist/src/ink/components/Newline.js +0 -29
- package/dist/src/ink/components/NoSelect.js +0 -56
- package/dist/src/ink/components/RawAnsi.js +0 -45
- package/dist/src/ink/components/ScrollBox.js +0 -170
- package/dist/src/ink/components/Spacer.js +0 -19
- package/dist/src/ink/components/StdinContext.js +0 -16
- package/dist/src/ink/components/TerminalFocusContext.js +0 -45
- package/dist/src/ink/components/TerminalSizeContext.js +0 -3
- package/dist/src/ink/components/Text.js +0 -194
- package/dist/src/ink/constants.js +0 -2
- package/dist/src/ink/devtools.js +0 -16
- package/dist/src/ink/dom.js +0 -298
- package/dist/src/ink/events/click-event.js +0 -36
- package/dist/src/ink/events/dispatcher.js +0 -172
- package/dist/src/ink/events/emitter.js +0 -31
- package/dist/src/ink/events/event-handlers.js +0 -30
- package/dist/src/ink/events/event.js +0 -9
- package/dist/src/ink/events/focus-event.js +0 -16
- package/dist/src/ink/events/input-event.js +0 -161
- package/dist/src/ink/events/keyboard-event.js +0 -45
- package/dist/src/ink/events/terminal-event.js +0 -78
- package/dist/src/ink/events/terminal-focus-event.js +0 -15
- package/dist/src/ink/focus.js +0 -158
- package/dist/src/ink/frame.js +0 -30
- package/dist/src/ink/get-max-width.js +0 -23
- package/dist/src/ink/hit-test.js +0 -113
- package/dist/src/ink/hooks/use-animation-frame.js +0 -48
- package/dist/src/ink/hooks/use-app.js +0 -7
- package/dist/src/ink/hooks/use-declared-cursor.js +0 -60
- package/dist/src/ink/hooks/use-input.js +0 -70
- package/dist/src/ink/hooks/use-interval.js +0 -54
- package/dist/src/ink/hooks/use-search-highlight.js +0 -32
- package/dist/src/ink/hooks/use-selection.js +0 -60
- package/dist/src/ink/hooks/use-stdin.js +0 -7
- package/dist/src/ink/hooks/use-tab-status.js +0 -57
- package/dist/src/ink/hooks/use-terminal-focus.js +0 -15
- package/dist/src/ink/hooks/use-terminal-title.js +0 -29
- package/dist/src/ink/hooks/use-terminal-viewport.js +0 -77
- package/dist/src/ink/ink.js +0 -1644
- package/dist/src/ink/instances.js +0 -7
- package/dist/src/ink/layout/engine.js +0 -4
- package/dist/src/ink/layout/geometry.js +0 -61
- package/dist/src/ink/layout/node.js +0 -62
- package/dist/src/ink/layout/yoga.js +0 -237
- package/dist/src/ink/line-width-cache.js +0 -19
- package/dist/src/ink/log-update.js +0 -583
- package/dist/src/ink/measure-element.js +0 -8
- package/dist/src/ink/measure-text.js +0 -35
- package/dist/src/ink/node-cache.js +0 -30
- package/dist/src/ink/optimizer.js +0 -81
- package/dist/src/ink/output.js +0 -556
- package/dist/src/ink/parse-keypress.js +0 -695
- package/dist/src/ink/reconciler.js +0 -384
- package/dist/src/ink/render-border.js +0 -134
- package/dist/src/ink/render-node-to-output.js +0 -1216
- package/dist/src/ink/render-to-screen.js +0 -171
- package/dist/src/ink/renderer.js +0 -129
- package/dist/src/ink/root.js +0 -80
- package/dist/src/ink/screen.js +0 -1132
- package/dist/src/ink/searchHighlight.js +0 -78
- package/dist/src/ink/selection.js +0 -792
- package/dist/src/ink/squash-text-nodes.js +0 -56
- package/dist/src/ink/stringWidth.js +0 -200
- package/dist/src/ink/styles.js +0 -299
- package/dist/src/ink/supports-hyperlinks.js +0 -40
- package/dist/src/ink/tabstops.js +0 -39
- package/dist/src/ink/terminal-focus-state.js +0 -35
- package/dist/src/ink/terminal-querier.js +0 -173
- package/dist/src/ink/terminal.js +0 -208
- package/dist/src/ink/termio/ansi.js +0 -70
- package/dist/src/ink/termio/csi.js +0 -260
- package/dist/src/ink/termio/dec.js +0 -53
- package/dist/src/ink/termio/esc.js +0 -55
- package/dist/src/ink/termio/osc.js +0 -432
- package/dist/src/ink/termio/parser.js +0 -356
- package/dist/src/ink/termio/sgr.js +0 -292
- package/dist/src/ink/termio/tokenize.js +0 -264
- package/dist/src/ink/termio/types.js +0 -55
- package/dist/src/ink/termio.js +0 -24
- package/dist/src/ink/useTerminalNotification.js +0 -57
- package/dist/src/ink/warn.js +0 -10
- package/dist/src/ink/widest-line.js +0 -14
- package/dist/src/ink/wrap-text.js +0 -54
- package/dist/src/ink/wrapAnsi.js +0 -6
- package/dist/src/ink.js +0 -50
- package/dist/src/interactiveHelpers.js +0 -317
- package/dist/src/keybindings/KeybindingContext.js +0 -184
- package/dist/src/keybindings/KeybindingProviderSetup.js +0 -259
- package/dist/src/keybindings/defaultBindings.js +0 -333
- package/dist/src/keybindings/loadUserBindings.js +0 -393
- package/dist/src/keybindings/match.js +0 -111
- package/dist/src/keybindings/parser.js +0 -184
- package/dist/src/keybindings/reservedShortcuts.js +0 -109
- package/dist/src/keybindings/resolver.js +0 -182
- package/dist/src/keybindings/schema.js +0 -205
- package/dist/src/keybindings/shortcutFormat.js +0 -48
- package/dist/src/keybindings/template.js +0 -40
- package/dist/src/keybindings/useKeybinding.js +0 -161
- package/dist/src/keybindings/useShortcutDisplay.js +0 -43
- package/dist/src/keybindings/validate.js +0 -395
- package/dist/src/main.js +0 -4073
- package/dist/src/memdir/findRelevantMemories.js +0 -101
- package/dist/src/memdir/memdir.js +0 -408
- package/dist/src/memdir/memoryAge.js +0 -52
- package/dist/src/memdir/memoryScan.js +0 -65
- package/dist/src/memdir/memoryTypes.js +0 -260
- package/dist/src/memdir/paths.js +0 -236
- package/dist/src/memdir/teamMemPaths.js +0 -261
- package/dist/src/memdir/teamMemPrompts.js +0 -82
- package/dist/src/migrations/migrateAutoUpdatesToSettings.js +0 -47
- package/dist/src/migrations/migrateBypassPermissionsAcceptedToSettings.js +0 -32
- package/dist/src/migrations/migrateEnableAllProjectMcpServersToSettings.js +0 -83
- package/dist/src/migrations/migrateFennecToOpus.js +0 -39
- package/dist/src/migrations/migrateLegacyOpusToCurrent.js +0 -44
- package/dist/src/migrations/migrateOpusToOpus1m.js +0 -31
- package/dist/src/migrations/migrateReplBridgeEnabledToRemoteControlAtStartup.js +0 -23
- package/dist/src/migrations/migrateSonnet1mToSonnet45.js +0 -38
- package/dist/src/migrations/migrateSonnet45ToSonnet46.js +0 -48
- package/dist/src/migrations/resetAutoModeOptInForDefaultOffer.js +0 -47
- package/dist/src/migrations/resetProToOpusDefault.js +0 -46
- package/dist/src/mirrors/shared.js +0 -186
- package/dist/src/moreright/useMoreRight.js +0 -13
- package/dist/src/native-ts/color-diff/index.js +0 -821
- package/dist/src/native-ts/file-index/index.js +0 -328
- package/dist/src/native-ts/yoga-layout/enums.js +0 -101
- package/dist/src/native-ts/yoga-layout/index.js +0 -2113
- package/dist/src/outputStyles/loadOutputStylesDir.js +0 -71
- package/dist/src/plugins/builtinPlugins.js +0 -132
- package/dist/src/plugins/bundled/index.js +0 -22
- package/dist/src/projectOnboardingState.js +0 -61
- package/dist/src/query/config.js +0 -17
- package/dist/src/query/deps.js +0 -12
- package/dist/src/query/stopHooks.js +0 -334
- package/dist/src/query/tokenBudget.js +0 -49
- package/dist/src/query.js +0 -1330
- package/dist/src/recovery/bunBundleShim.js +0 -11
- package/dist/src/remote/RemoteSessionManager.js +0 -195
- package/dist/src/remote/SessionsWebSocket.js +0 -305
- package/dist/src/remote/remotePermissionBridge.js +0 -70
- package/dist/src/remote/sdkMessageAdapter.js +0 -227
- package/dist/src/replLauncher.js +0 -6
- package/dist/src/schemas/hooks.js +0 -174
- package/dist/src/screens/Doctor.js +0 -580
- package/dist/src/screens/REPL.js +0 -4434
- package/dist/src/screens/ResumeConversation.js +0 -341
- package/dist/src/self-hosted-runner/main.js +0 -16
- package/dist/src/server/backends/dangerousBackend.js +0 -16
- package/dist/src/server/connectHeadless.js +0 -16
- package/dist/src/server/createDirectConnectSession.js +0 -62
- package/dist/src/server/directConnectManager.js +0 -153
- package/dist/src/server/lockfile.js +0 -16
- package/dist/src/server/parseConnectUrl.js +0 -16
- package/dist/src/server/server.js +0 -16
- package/dist/src/server/serverBanner.js +0 -16
- package/dist/src/server/serverLog.js +0 -16
- package/dist/src/server/sessionManager.js +0 -16
- package/dist/src/server/types.js +0 -7
- package/dist/src/services/AgentSummary/agentSummary.js +0 -147
- package/dist/src/services/MagicDocs/magicDocs.js +0 -193
- package/dist/src/services/MagicDocs/prompts.js +0 -110
- package/dist/src/services/PromptSuggestion/promptSuggestion.js +0 -402
- package/dist/src/services/PromptSuggestion/speculation.js +0 -643
- package/dist/src/services/SessionMemory/prompts.js +0 -254
- package/dist/src/services/SessionMemory/sessionMemory.js +0 -358
- package/dist/src/services/SessionMemory/sessionMemoryUtils.js +0 -157
- package/dist/src/services/analytics/config.js +0 -33
- package/dist/src/services/analytics/datadog.js +0 -259
- package/dist/src/services/analytics/firstPartyEventLogger.js +0 -342
- package/dist/src/services/analytics/firstPartyEventLoggingExporter.js +0 -594
- package/dist/src/services/analytics/growthbook.js +0 -952
- package/dist/src/services/analytics/index.js +0 -114
- package/dist/src/services/analytics/metadata.js +0 -698
- package/dist/src/services/analytics/sink.js +0 -95
- package/dist/src/services/analytics/sinkKillswitch.js +0 -19
- package/dist/src/services/api/adminRequests.js +0 -57
- package/dist/src/services/api/bootstrap.js +0 -149
- package/dist/src/services/api/claude.js +0 -2461
- package/dist/src/services/api/client.js +0 -325
- package/dist/src/services/api/dumpPrompts.js +0 -174
- package/dist/src/services/api/emptyUsage.js +0 -20
- package/dist/src/services/api/errorUtils.js +0 -203
- package/dist/src/services/api/errors.js +0 -934
- package/dist/src/services/api/filesApi.js +0 -523
- package/dist/src/services/api/firstTokenDate.js +0 -49
- package/dist/src/services/api/grove.js +0 -272
- package/dist/src/services/api/index.js +0 -23
- package/dist/src/services/api/logging.js +0 -484
- package/dist/src/services/api/metricsOptOut.js +0 -127
- package/dist/src/services/api/openai.js +0 -1187
- package/dist/src/services/api/openrouter.js +0 -30
- package/dist/src/services/api/overageCreditGrant.js +0 -123
- package/dist/src/services/api/promptCacheBreakDetection.js +0 -510
- package/dist/src/services/api/referral.js +0 -219
- package/dist/src/services/api/sessionIngress.js +0 -358
- package/dist/src/services/api/ultrareviewQuota.js +0 -29
- package/dist/src/services/api/usage.js +0 -31
- package/dist/src/services/api/withRetry.js +0 -599
- package/dist/src/services/autoDream/autoDream.js +0 -244
- package/dist/src/services/autoDream/config.js +0 -17
- package/dist/src/services/autoDream/consolidationLock.js +0 -122
- package/dist/src/services/autoDream/consolidationPrompt.js +0 -56
- package/dist/src/services/awaySummary.js +0 -61
- package/dist/src/services/claudeAiLimits.js +0 -331
- package/dist/src/services/claudeAiLimitsHook.js +0 -15
- package/dist/src/services/compact/apiMicrocompact.js +0 -97
- package/dist/src/services/compact/autoCompact.js +0 -236
- package/dist/src/services/compact/cachedMicrocompact.js +0 -16
- package/dist/src/services/compact/compact.js +0 -1258
- package/dist/src/services/compact/compactWarningHook.js +0 -12
- package/dist/src/services/compact/compactWarningState.js +0 -15
- package/dist/src/services/compact/grouping.js +0 -58
- package/dist/src/services/compact/microCompact.js +0 -414
- package/dist/src/services/compact/postCompactCleanup.js +0 -72
- package/dist/src/services/compact/prompt.js +0 -327
- package/dist/src/services/compact/sessionMemoryCompact.js +0 -467
- package/dist/src/services/compact/timeBasedMCConfig.js +0 -11
- package/dist/src/services/diagnosticTracking.js +0 -282
- package/dist/src/services/extractMemories/extractMemories.js +0 -444
- package/dist/src/services/extractMemories/prompts.js +0 -129
- package/dist/src/services/internalLogging.js +0 -68
- package/dist/src/services/lsp/LSPClient.js +0 -306
- package/dist/src/services/lsp/LSPDiagnosticRegistry.js +0 -277
- package/dist/src/services/lsp/LSPServerInstance.js +0 -390
- package/dist/src/services/lsp/LSPServerManager.js +0 -305
- package/dist/src/services/lsp/config.js +0 -57
- package/dist/src/services/lsp/manager.js +0 -246
- package/dist/src/services/lsp/passiveFeedback.js +0 -226
- package/dist/src/services/mcp/InProcessTransport.js +0 -54
- package/dist/src/services/mcp/MCPConnectionManager.js +0 -50
- package/dist/src/services/mcp/SdkControlTransport.js +0 -115
- package/dist/src/services/mcp/auth.js +0 -1882
- package/dist/src/services/mcp/channelAllowlist.js +0 -57
- package/dist/src/services/mcp/channelNotification.js +0 -236
- package/dist/src/services/mcp/channelPermissions.js +0 -192
- package/dist/src/services/mcp/claudeai.js +0 -123
- package/dist/src/services/mcp/client.js +0 -2480
- package/dist/src/services/mcp/config.js +0 -1277
- package/dist/src/services/mcp/elicitationHandler.js +0 -192
- package/dist/src/services/mcp/envExpansion.js +0 -30
- package/dist/src/services/mcp/headersHelper.js +0 -94
- package/dist/src/services/mcp/mcpStringUtils.js +0 -85
- package/dist/src/services/mcp/normalization.js +0 -21
- package/dist/src/services/mcp/oauthPort.js +0 -69
- package/dist/src/services/mcp/officialRegistry.js +0 -54
- package/dist/src/services/mcp/types.js +0 -94
- package/dist/src/services/mcp/useManageMCPConnections.js +0 -820
- package/dist/src/services/mcp/utils.js +0 -433
- package/dist/src/services/mcp/vscodeSdkMcp.js +0 -69
- package/dist/src/services/mcp/xaa.js +0 -342
- package/dist/src/services/mcp/xaaIdpLogin.js +0 -377
- package/dist/src/services/mcpServerApproval.js +0 -29
- package/dist/src/services/mockRateLimits.js +0 -666
- package/dist/src/services/notifier.js +0 -114
- package/dist/src/services/oauth/auth-code-listener.js +0 -236
- package/dist/src/services/oauth/client.js +0 -545
- package/dist/src/services/oauth/crypto.js +0 -19
- package/dist/src/services/oauth/getOauthProfile.js +0 -48
- package/dist/src/services/oauth/index.js +0 -152
- package/dist/src/services/oauth/types.js +0 -1
- package/dist/src/services/plugins/PluginInstallationManager.js +0 -139
- package/dist/src/services/plugins/pluginCliCommands.js +0 -230
- package/dist/src/services/plugins/pluginOperations.js +0 -826
- package/dist/src/services/policyLimits/index.js +0 -547
- package/dist/src/services/policyLimits/types.js +0 -9
- package/dist/src/services/preventSleep.js +0 -143
- package/dist/src/services/rateLimitMessages.js +0 -271
- package/dist/src/services/rateLimitMocking.js +0 -91
- package/dist/src/services/remoteManagedSettings/index.js +0 -534
- package/dist/src/services/remoteManagedSettings/securityCheck.js +0 -59
- package/dist/src/services/remoteManagedSettings/syncCache.js +0 -90
- package/dist/src/services/remoteManagedSettings/syncCacheState.js +0 -89
- package/dist/src/services/remoteManagedSettings/types.js +0 -12
- package/dist/src/services/settingsSync/index.js +0 -478
- package/dist/src/services/settingsSync/types.js +0 -35
- package/dist/src/services/teamMemorySync/index.js +0 -976
- package/dist/src/services/teamMemorySync/secretScanner.js +0 -275
- package/dist/src/services/teamMemorySync/teamMemSecretGuard.js +0 -35
- package/dist/src/services/teamMemorySync/types.js +0 -47
- package/dist/src/services/teamMemorySync/watcher.js +0 -326
- package/dist/src/services/tips/tipHistory.js +0 -17
- package/dist/src/services/tips/tipRegistry.js +0 -589
- package/dist/src/services/tips/tipScheduler.js +0 -40
- package/dist/src/services/tokenEstimation.js +0 -365
- package/dist/src/services/toolUseSummary/toolUseSummaryGenerator.js +0 -87
- package/dist/src/services/tools/StreamingToolExecutor.js +0 -413
- package/dist/src/services/tools/toolExecution.js +0 -1218
- package/dist/src/services/tools/toolHooks.js +0 -454
- package/dist/src/services/tools/toolOrchestration.js +0 -110
- package/dist/src/services/vcr.js +0 -291
- package/dist/src/services/voice.js +0 -394
- package/dist/src/services/voiceKeyterms.js +0 -94
- package/dist/src/services/voiceStreamSTT.js +0 -406
- package/dist/src/setup.js +0 -349
- package/dist/src/skills/bundled/batch.js +0 -114
- package/dist/src/skills/bundled/claudeApi.js +0 -145
- package/dist/src/skills/bundled/claudeApiContent.js +0 -14
- package/dist/src/skills/bundled/claudeInChrome.js +0 -27
- package/dist/src/skills/bundled/debug.js +0 -99
- package/dist/src/skills/bundled/index.js +0 -5
- package/dist/src/skills/bundled/keybindings.js +0 -292
- package/dist/src/skills/bundled/loop.js +0 -81
- package/dist/src/skills/bundled/loremIpsum.js +0 -266
- package/dist/src/skills/bundled/remember.js +0 -75
- package/dist/src/skills/bundled/scheduleRemoteAgents.js +0 -373
- package/dist/src/skills/bundled/simplify.js +0 -66
- package/dist/src/skills/bundled/skillify.js +0 -184
- package/dist/src/skills/bundled/stuck.js +0 -75
- package/dist/src/skills/bundled/updateConfig.js +0 -463
- package/dist/src/skills/bundled/verify.js +0 -25
- package/dist/src/skills/bundled/verifyContent.js +0 -7
- package/dist/src/skills/bundledSkills.js +0 -159
- package/dist/src/skills/loadSkillsDir.js +0 -736
- package/dist/src/skills/mcpSkillBuilders.js +0 -10
- package/dist/src/ssh/createSSHSession.js +0 -16
- package/dist/src/state/AppState.js +0 -184
- package/dist/src/state/AppStateStore.js +0 -119
- package/dist/src/state/onChangeAppState.js +0 -132
- package/dist/src/state/selectors.js +0 -51
- package/dist/src/state/store.js +0 -21
- package/dist/src/state/teammateViewHelpers.js +0 -124
- package/dist/src/tasks/DreamTask/DreamTask.js +0 -99
- package/dist/src/tasks/InProcessTeammateTask/InProcessTeammateTask.js +0 -116
- package/dist/src/tasks/InProcessTeammateTask/types.js +0 -35
- package/dist/src/tasks/LocalAgentTask/LocalAgentTask.js +0 -507
- package/dist/src/tasks/LocalMainSessionTask.js +0 -338
- package/dist/src/tasks/LocalShellTask/LocalShellTask.js +0 -475
- package/dist/src/tasks/LocalShellTask/guards.js +0 -9
- package/dist/src/tasks/LocalShellTask/killShellTasks.js +0 -59
- package/dist/src/tasks/RemoteAgentTask/RemoteAgentTask.js +0 -742
- package/dist/src/tasks/pillLabel.js +0 -69
- package/dist/src/tasks/stopTask.js +0 -67
- package/dist/src/tasks/types.js +0 -18
- package/dist/src/tasks.js +0 -39
- package/dist/src/telegram/bridge.js +0 -334
- package/dist/src/telegram/config.js +0 -57
- package/dist/src/telegram/mirror.js +0 -91
- package/dist/src/tools/AgentTool/AgentTool.js +0 -1222
- package/dist/src/tools/AgentTool/UI.js +0 -592
- package/dist/src/tools/AgentTool/agentColorManager.js +0 -43
- package/dist/src/tools/AgentTool/agentDisplay.js +0 -72
- package/dist/src/tools/AgentTool/agentMemory.js +0 -125
- package/dist/src/tools/AgentTool/agentMemorySnapshot.js +0 -136
- package/dist/src/tools/AgentTool/agentToolUtils.js +0 -456
- package/dist/src/tools/AgentTool/built-in/claudeCodeGuideAgent.js +0 -175
- package/dist/src/tools/AgentTool/built-in/exploreAgent.js +0 -76
- package/dist/src/tools/AgentTool/built-in/generalPurposeAgent.js +0 -28
- package/dist/src/tools/AgentTool/built-in/planAgent.js +0 -87
- package/dist/src/tools/AgentTool/built-in/statuslineSetup.js +0 -140
- package/dist/src/tools/AgentTool/built-in/verificationAgent.js +0 -146
- package/dist/src/tools/AgentTool/builtInAgents.js +0 -58
- package/dist/src/tools/AgentTool/constants.js +0 -11
- package/dist/src/tools/AgentTool/forkSubagent.js +0 -177
- package/dist/src/tools/AgentTool/loadAgentsDir.js +0 -497
- package/dist/src/tools/AgentTool/prompt.js +0 -260
- package/dist/src/tools/AgentTool/resumeAgent.js +0 -182
- package/dist/src/tools/AgentTool/runAgent.js +0 -629
- package/dist/src/tools/AskUserQuestionTool/AskUserQuestionTool.js +0 -237
- package/dist/src/tools/AskUserQuestionTool/prompt.js +0 -38
- package/dist/src/tools/BashTool/BashTool.js +0 -1008
- package/dist/src/tools/BashTool/BashToolResultMessage.js +0 -168
- package/dist/src/tools/BashTool/UI.js +0 -133
- package/dist/src/tools/BashTool/bashCommandHelpers.js +0 -184
- package/dist/src/tools/BashTool/bashPermissions.js +0 -2023
- package/dist/src/tools/BashTool/bashSecurity.js +0 -2267
- package/dist/src/tools/BashTool/commandSemantics.js +0 -105
- package/dist/src/tools/BashTool/commentLabel.js +0 -14
- package/dist/src/tools/BashTool/destructiveCommandWarning.js +0 -88
- package/dist/src/tools/BashTool/modeValidation.js +0 -86
- package/dist/src/tools/BashTool/pathValidation.js +0 -1080
- package/dist/src/tools/BashTool/prompt.js +0 -333
- package/dist/src/tools/BashTool/readOnlyValidation.js +0 -1794
- package/dist/src/tools/BashTool/sedEditParser.js +0 -282
- package/dist/src/tools/BashTool/sedValidation.js +0 -580
- package/dist/src/tools/BashTool/shouldUseSandbox.js +0 -125
- package/dist/src/tools/BashTool/toolName.js +0 -2
- package/dist/src/tools/BashTool/utils.js +0 -180
- package/dist/src/tools/BriefTool/BriefTool.js +0 -172
- package/dist/src/tools/BriefTool/UI.js +0 -66
- package/dist/src/tools/BriefTool/attachments.js +0 -86
- package/dist/src/tools/BriefTool/prompt.js +0 -19
- package/dist/src/tools/BriefTool/upload.js +0 -136
- package/dist/src/tools/ConfigTool/ConfigTool.js +0 -398
- package/dist/src/tools/ConfigTool/UI.js +0 -24
- package/dist/src/tools/ConfigTool/constants.js +0 -1
- package/dist/src/tools/ConfigTool/prompt.js +0 -82
- package/dist/src/tools/ConfigTool/supportedSettings.js +0 -180
- package/dist/src/tools/EnterPlanModeTool/EnterPlanModeTool.js +0 -98
- package/dist/src/tools/EnterPlanModeTool/UI.js +0 -13
- package/dist/src/tools/EnterPlanModeTool/constants.js +0 -1
- package/dist/src/tools/EnterPlanModeTool/prompt.js +0 -164
- package/dist/src/tools/EnterWorktreeTool/EnterWorktreeTool.js +0 -104
- package/dist/src/tools/EnterWorktreeTool/UI.js +0 -8
- package/dist/src/tools/EnterWorktreeTool/constants.js +0 -1
- package/dist/src/tools/EnterWorktreeTool/prompt.js +0 -30
- package/dist/src/tools/ExitPlanModeTool/ExitPlanModeV2Tool.js +0 -385
- package/dist/src/tools/ExitPlanModeTool/UI.js +0 -31
- package/dist/src/tools/ExitPlanModeTool/constants.js +0 -2
- package/dist/src/tools/ExitPlanModeTool/prompt.js +0 -27
- package/dist/src/tools/ExitWorktreeTool/ExitWorktreeTool.js +0 -257
- package/dist/src/tools/ExitWorktreeTool/UI.js +0 -9
- package/dist/src/tools/ExitWorktreeTool/constants.js +0 -1
- package/dist/src/tools/ExitWorktreeTool/prompt.js +0 -32
- package/dist/src/tools/FileEditTool/FileEditTool.js +0 -480
- package/dist/src/tools/FileEditTool/UI.js +0 -201
- package/dist/src/tools/FileEditTool/constants.js +0 -7
- package/dist/src/tools/FileEditTool/prompt.js +0 -24
- package/dist/src/tools/FileEditTool/types.js +0 -50
- package/dist/src/tools/FileEditTool/utils.js +0 -579
- package/dist/src/tools/FileReadTool/FileReadTool.js +0 -889
- package/dist/src/tools/FileReadTool/UI.js +0 -125
- package/dist/src/tools/FileReadTool/imageProcessor.js +0 -46
- package/dist/src/tools/FileReadTool/limits.js +0 -70
- package/dist/src/tools/FileReadTool/prompt.js +0 -31
- package/dist/src/tools/FileWriteTool/FileWriteTool.js +0 -341
- package/dist/src/tools/FileWriteTool/UI.js +0 -338
- package/dist/src/tools/FileWriteTool/prompt.js +0 -15
- package/dist/src/tools/GlobTool/GlobTool.js +0 -161
- package/dist/src/tools/GlobTool/UI.js +0 -39
- package/dist/src/tools/GlobTool/prompt.js +0 -6
- package/dist/src/tools/GrepTool/GrepTool.js +0 -439
- package/dist/src/tools/GrepTool/UI.js +0 -154
- package/dist/src/tools/GrepTool/prompt.js +0 -16
- package/dist/src/tools/LSPTool/LSPTool.js +0 -660
- package/dist/src/tools/LSPTool/UI.js +0 -204
- package/dist/src/tools/LSPTool/formatters.js +0 -445
- package/dist/src/tools/LSPTool/prompt.js +0 -20
- package/dist/src/tools/LSPTool/schemas.js +0 -197
- package/dist/src/tools/LSPTool/symbolContext.js +0 -75
- package/dist/src/tools/ListMcpResourcesTool/ListMcpResourcesTool.js +0 -100
- package/dist/src/tools/ListMcpResourcesTool/UI.js +0 -16
- package/dist/src/tools/ListMcpResourcesTool/prompt.js +0 -18
- package/dist/src/tools/MCPTool/MCPTool.js +0 -60
- package/dist/src/tools/MCPTool/UI.js +0 -342
- package/dist/src/tools/MCPTool/classifyForCollapse.js +0 -597
- package/dist/src/tools/MCPTool/prompt.js +0 -3
- package/dist/src/tools/McpAuthTool/McpAuthTool.js +0 -162
- package/dist/src/tools/NotebookEditTool/NotebookEditTool.js +0 -421
- package/dist/src/tools/NotebookEditTool/UI.js +0 -40
- package/dist/src/tools/NotebookEditTool/constants.js +0 -2
- package/dist/src/tools/NotebookEditTool/prompt.js +0 -2
- package/dist/src/tools/PowerShellTool/PowerShellTool.js +0 -899
- package/dist/src/tools/PowerShellTool/UI.js +0 -57
- package/dist/src/tools/PowerShellTool/clmTypes.js +0 -207
- package/dist/src/tools/PowerShellTool/commandSemantics.js +0 -115
- package/dist/src/tools/PowerShellTool/commonParameters.js +0 -27
- package/dist/src/tools/PowerShellTool/destructiveCommandWarning.js +0 -92
- package/dist/src/tools/PowerShellTool/gitSafety.js +0 -185
- package/dist/src/tools/PowerShellTool/modeValidation.js +0 -357
- package/dist/src/tools/PowerShellTool/pathValidation.js +0 -1712
- package/dist/src/tools/PowerShellTool/powershellPermissions.js +0 -1351
- package/dist/src/tools/PowerShellTool/powershellSecurity.js +0 -942
- package/dist/src/tools/PowerShellTool/prompt.js +0 -132
- package/dist/src/tools/PowerShellTool/readOnlyValidation.js +0 -1633
- package/dist/src/tools/PowerShellTool/toolName.js +0 -2
- package/dist/src/tools/REPLTool/constants.js +0 -43
- package/dist/src/tools/REPLTool/primitiveTools.js +0 -36
- package/dist/src/tools/ReadMcpResourceTool/ReadMcpResourceTool.js +0 -112
- package/dist/src/tools/ReadMcpResourceTool/UI.js +0 -23
- package/dist/src/tools/ReadMcpResourceTool/prompt.js +0 -15
- package/dist/src/tools/RemoteTriggerTool/RemoteTriggerTool.js +0 -142
- package/dist/src/tools/RemoteTriggerTool/UI.js +0 -11
- package/dist/src/tools/RemoteTriggerTool/prompt.js +0 -12
- package/dist/src/tools/ScheduleCronTool/CronCreateTool.js +0 -120
- package/dist/src/tools/ScheduleCronTool/CronDeleteTool.js +0 -74
- package/dist/src/tools/ScheduleCronTool/CronListTool.js +0 -77
- package/dist/src/tools/ScheduleCronTool/UI.js +0 -28
- package/dist/src/tools/ScheduleCronTool/prompt.js +0 -115
- package/dist/src/tools/SendMessageTool/SendMessageTool.js +0 -675
- package/dist/src/tools/SendMessageTool/UI.js +0 -23
- package/dist/src/tools/SendMessageTool/constants.js +0 -1
- package/dist/src/tools/SendMessageTool/prompt.js +0 -47
- package/dist/src/tools/SkillTool/SkillTool.js +0 -827
- package/dist/src/tools/SkillTool/UI.js +0 -60
- package/dist/src/tools/SkillTool/constants.js +0 -1
- package/dist/src/tools/SkillTool/prompt.js +0 -184
- package/dist/src/tools/SleepTool/prompt.js +0 -14
- package/dist/src/tools/SyntheticOutputTool/SyntheticOutputTool.js +0 -138
- package/dist/src/tools/TaskCreateTool/TaskCreateTool.js +0 -104
- package/dist/src/tools/TaskCreateTool/constants.js +0 -1
- package/dist/src/tools/TaskCreateTool/prompt.js +0 -52
- package/dist/src/tools/TaskGetTool/TaskGetTool.js +0 -106
- package/dist/src/tools/TaskGetTool/constants.js +0 -1
- package/dist/src/tools/TaskGetTool/prompt.js +0 -23
- package/dist/src/tools/TaskListTool/TaskListTool.js +0 -89
- package/dist/src/tools/TaskListTool/constants.js +0 -1
- package/dist/src/tools/TaskListTool/prompt.js +0 -44
- package/dist/src/tools/TaskOutputTool/TaskOutputTool.js +0 -535
- package/dist/src/tools/TaskOutputTool/constants.js +0 -1
- package/dist/src/tools/TaskStopTool/TaskStopTool.js +0 -110
- package/dist/src/tools/TaskStopTool/UI.js +0 -30
- package/dist/src/tools/TaskStopTool/prompt.js +0 -7
- package/dist/src/tools/TaskUpdateTool/TaskUpdateTool.js +0 -301
- package/dist/src/tools/TaskUpdateTool/constants.js +0 -1
- package/dist/src/tools/TaskUpdateTool/prompt.js +0 -76
- package/dist/src/tools/TeamCreateTool/TeamCreateTool.js +0 -177
- package/dist/src/tools/TeamCreateTool/UI.js +0 -4
- package/dist/src/tools/TeamCreateTool/constants.js +0 -1
- package/dist/src/tools/TeamCreateTool/prompt.js +0 -113
- package/dist/src/tools/TeamDeleteTool/TeamDeleteTool.js +0 -102
- package/dist/src/tools/TeamDeleteTool/UI.js +0 -13
- package/dist/src/tools/TeamDeleteTool/constants.js +0 -1
- package/dist/src/tools/TeamDeleteTool/prompt.js +0 -16
- package/dist/src/tools/TodoWriteTool/TodoWriteTool.js +0 -99
- package/dist/src/tools/TodoWriteTool/constants.js +0 -1
- package/dist/src/tools/TodoWriteTool/prompt.js +0 -181
- package/dist/src/tools/ToolSearchTool/ToolSearchTool.js +0 -357
- package/dist/src/tools/ToolSearchTool/constants.js +0 -1
- package/dist/src/tools/ToolSearchTool/prompt.js +0 -99
- package/dist/src/tools/TungstenTool/TungstenLiveMonitor.js +0 -7
- package/dist/src/tools/TungstenTool/TungstenTool.js +0 -3
- package/dist/src/tools/WebFetchTool/UI.js +0 -30
- package/dist/src/tools/WebFetchTool/WebFetchTool.js +0 -246
- package/dist/src/tools/WebFetchTool/preapproved.js +0 -155
- package/dist/src/tools/WebFetchTool/prompt.js +0 -39
- package/dist/src/tools/WebFetchTool/utils.js +0 -381
- package/dist/src/tools/WebSearchTool/UI.js +0 -66
- package/dist/src/tools/WebSearchTool/WebSearchTool.js +0 -352
- package/dist/src/tools/WebSearchTool/prompt.js +0 -32
- package/dist/src/tools/WorkflowTool/constants.js +0 -2
- package/dist/src/tools/shared/gitOperationTracking.js +0 -220
- package/dist/src/tools/shared/spawnMultiAgent.js +0 -805
- package/dist/src/tools/testing/TestingPermissionTool.js +0 -72
- package/dist/src/tools/utils.js +0 -24
- package/dist/src/tools.js +0 -332
- package/dist/src/types/command.js +0 -10
- package/dist/src/types/connectorText.js +0 -2
- package/dist/src/types/generated/events_mono/claude_code/v1/claude_code_internal_event.js +0 -673
- package/dist/src/types/generated/events_mono/common/v1/auth.js +0 -49
- package/dist/src/types/generated/events_mono/growthbook/v1/growthbook_experiment_event.js +0 -147
- package/dist/src/types/generated/google/protobuf/timestamp.js +0 -38
- package/dist/src/types/hooks.js +0 -153
- package/dist/src/types/ids.js +0 -27
- package/dist/src/types/logs.js +0 -11
- package/dist/src/types/message.js +0 -1
- package/dist/src/types/permissions.js +0 -25
- package/dist/src/types/plugin.js +0 -72
- package/dist/src/types/textInputTypes.js +0 -20
- package/dist/src/types/utils.js +0 -5
- package/dist/src/upstreamproxy/relay.js +0 -346
- package/dist/src/upstreamproxy/upstreamproxy.js +0 -236
- package/dist/src/utils/CircularBuffer.js +0 -75
- package/dist/src/utils/Cursor.js +0 -1229
- package/dist/src/utils/QueryGuard.js +0 -115
- package/dist/src/utils/Shell.js +0 -374
- package/dist/src/utils/ShellCommand.js +0 -338
- package/dist/src/utils/abortController.js +0 -74
- package/dist/src/utils/activityManager.js +0 -127
- package/dist/src/utils/advisor.js +0 -77
- package/dist/src/utils/agentContext.js +0 -91
- package/dist/src/utils/agentId.js +0 -83
- package/dist/src/utils/agentSwarmsEnabled.js +0 -37
- package/dist/src/utils/agenticSessionSearch.js +0 -255
- package/dist/src/utils/analyzeContext.js +0 -848
- package/dist/src/utils/ansiToPng.js +0 -259
- package/dist/src/utils/ansiToSvg.js +0 -207
- package/dist/src/utils/api.js +0 -555
- package/dist/src/utils/apiPreconnect.js +0 -62
- package/dist/src/utils/appleTerminalBackup.js +0 -95
- package/dist/src/utils/argumentSubstitution.js +0 -114
- package/dist/src/utils/array.js +0 -12
- package/dist/src/utils/asciicast.js +0 -200
- package/dist/src/utils/attachments.js +0 -2514
- package/dist/src/utils/attribution.js +0 -308
- package/dist/src/utils/attributionHooks.js +0 -16
- package/dist/src/utils/attributionTrailer.js +0 -16
- package/dist/src/utils/auth.js +0 -2020
- package/dist/src/utils/authFileDescriptor.js +0 -152
- package/dist/src/utils/authPortable.js +0 -14
- package/dist/src/utils/autoModeDenials.js +0 -15
- package/dist/src/utils/autoRunIssue.js +0 -112
- package/dist/src/utils/autoUpdater.js +0 -461
- package/dist/src/utils/aws.js +0 -44
- package/dist/src/utils/awsAuthStatusManager.js +0 -66
- package/dist/src/utils/background/remote/preconditions.js +0 -175
- package/dist/src/utils/background/remote/remoteSession.js +0 -53
- package/dist/src/utils/backgroundHousekeeping.js +0 -66
- package/dist/src/utils/bash/ParsedCommand.js +0 -241
- package/dist/src/utils/bash/ShellSnapshot.js +0 -489
- package/dist/src/utils/bash/ast.js +0 -2590
- package/dist/src/utils/bash/bashParser.js +0 -4355
- package/dist/src/utils/bash/bashPipeCommand.js +0 -249
- package/dist/src/utils/bash/commands.js +0 -1131
- package/dist/src/utils/bash/heredoc.js +0 -647
- package/dist/src/utils/bash/parser.js +0 -195
- package/dist/src/utils/bash/prefix.js +0 -154
- package/dist/src/utils/bash/registry.js +0 -23
- package/dist/src/utils/bash/shellCompletion.js +0 -196
- package/dist/src/utils/bash/shellPrefix.js +0 -25
- package/dist/src/utils/bash/shellQuote.js +0 -253
- package/dist/src/utils/bash/shellQuoting.js +0 -106
- package/dist/src/utils/bash/specs/alias.js +0 -11
- package/dist/src/utils/bash/specs/index.js +0 -16
- package/dist/src/utils/bash/specs/nohup.js +0 -10
- package/dist/src/utils/bash/specs/pyright.js +0 -88
- package/dist/src/utils/bash/specs/sleep.js +0 -10
- package/dist/src/utils/bash/specs/srun.js +0 -28
- package/dist/src/utils/bash/specs/time.js +0 -10
- package/dist/src/utils/bash/specs/timeout.js +0 -17
- package/dist/src/utils/bash/treeSitterAnalysis.js +0 -407
- package/dist/src/utils/betas.js +0 -332
- package/dist/src/utils/billing.js +0 -54
- package/dist/src/utils/binaryCheck.js +0 -40
- package/dist/src/utils/browser.js +0 -58
- package/dist/src/utils/bufferedWriter.js +0 -77
- package/dist/src/utils/bundledMode.js +0 -19
- package/dist/src/utils/caCerts.js +0 -93
- package/dist/src/utils/caCertsConfig.js +0 -77
- package/dist/src/utils/cachePaths.js +0 -28
- package/dist/src/utils/ccshareResume.js +0 -16
- package/dist/src/utils/classifierApprovals.js +0 -66
- package/dist/src/utils/classifierApprovalsHook.js +0 -10
- package/dist/src/utils/claudeCodeHints.js +0 -142
- package/dist/src/utils/claudeDesktop.js +0 -108
- package/dist/src/utils/claudeInChrome/chromeNativeHost.js +0 -416
- package/dist/src/utils/claudeInChrome/common.js +0 -466
- package/dist/src/utils/claudeInChrome/mcpServer.js +0 -237
- package/dist/src/utils/claudeInChrome/prompt.js +0 -79
- package/dist/src/utils/claudeInChrome/setup.js +0 -320
- package/dist/src/utils/claudeInChrome/setupPortable.js +0 -172
- package/dist/src/utils/claudeInChrome/toolRendering.js +0 -234
- package/dist/src/utils/claudemd.js +0 -1054
- package/dist/src/utils/cleanup.js +0 -514
- package/dist/src/utils/cleanupRegistry.js +0 -22
- package/dist/src/utils/cliArgs.js +0 -53
- package/dist/src/utils/cliHighlight.js +0 -45
- package/dist/src/utils/codeIndexing.js +0 -149
- package/dist/src/utils/collapseBackgroundBashNotifications.js +0 -70
- package/dist/src/utils/collapseHookSummaries.js +0 -48
- package/dist/src/utils/collapseReadSearch.js +0 -871
- package/dist/src/utils/collapseTeammateShutdowns.js +0 -44
- package/dist/src/utils/combinedAbortSignal.js +0 -40
- package/dist/src/utils/commandLifecycle.js +0 -7
- package/dist/src/utils/commitAttribution.js +0 -720
- package/dist/src/utils/completionCache.js +0 -138
- package/dist/src/utils/computerUse/appNames.js +0 -170
- package/dist/src/utils/computerUse/cleanup.js +0 -66
- package/dist/src/utils/computerUse/common.js +0 -56
- package/dist/src/utils/computerUse/computerUseLock.js +0 -183
- package/dist/src/utils/computerUse/drainRunLoop.js +0 -71
- package/dist/src/utils/computerUse/escHotkey.js +0 -53
- package/dist/src/utils/computerUse/executor.js +0 -480
- package/dist/src/utils/computerUse/gates.js +0 -55
- package/dist/src/utils/computerUse/hostAdapter.js +0 -62
- package/dist/src/utils/computerUse/inputLoader.js +0 -27
- package/dist/src/utils/computerUse/mcpServer.js +0 -84
- package/dist/src/utils/computerUse/setup.js +0 -42
- package/dist/src/utils/computerUse/swiftLoader.js +0 -20
- package/dist/src/utils/computerUse/toolRendering.js +0 -100
- package/dist/src/utils/computerUse/wrapper.js +0 -318
- package/dist/src/utils/concurrentSessions.js +0 -179
- package/dist/src/utils/config.js +0 -1084
- package/dist/src/utils/configConstants.js +0 -18
- package/dist/src/utils/contentArray.js +0 -45
- package/dist/src/utils/context.js +0 -185
- package/dist/src/utils/contextAnalysis.js +0 -171
- package/dist/src/utils/contextSuggestions.js +0 -158
- package/dist/src/utils/controlMessageCompat.js +0 -31
- package/dist/src/utils/conversationRecovery.js +0 -436
- package/dist/src/utils/cron.js +0 -260
- package/dist/src/utils/cronJitterConfig.js +0 -62
- package/dist/src/utils/cronScheduler.js +0 -388
- package/dist/src/utils/cronTasks.js +0 -328
- package/dist/src/utils/cronTasksLock.js +0 -159
- package/dist/src/utils/crossProjectResume.js +0 -46
- package/dist/src/utils/crypto.js +0 -13
- package/dist/src/utils/cwd.js +0 -29
- package/dist/src/utils/databaseMcp/common.js +0 -48
- package/dist/src/utils/databaseMcp/mcpServer.js +0 -2
- package/dist/src/utils/databaseMcp/server/connection.js +0 -243
- package/dist/src/utils/databaseMcp/server/index.js +0 -1442
- package/dist/src/utils/databaseMcp/server/queries.js +0 -683
- package/dist/src/utils/databaseMcp/server/types.js +0 -7
- package/dist/src/utils/databaseMcp/setup.js +0 -28
- package/dist/src/utils/debug.js +0 -220
- package/dist/src/utils/debugFilter.js +0 -125
- package/dist/src/utils/deepLink/banner.js +0 -103
- package/dist/src/utils/deepLink/parseDeepLink.js +0 -138
- package/dist/src/utils/deepLink/protocolHandler.js +0 -119
- package/dist/src/utils/deepLink/registerProtocol.js +0 -291
- package/dist/src/utils/deepLink/terminalLauncher.js +0 -455
- package/dist/src/utils/deepLink/terminalPreference.js +0 -51
- package/dist/src/utils/desktopDeepLink.js +0 -208
- package/dist/src/utils/detectRepository.js +0 -157
- package/dist/src/utils/diagLogs.js +0 -74
- package/dist/src/utils/diff.js +0 -108
- package/dist/src/utils/directMemberMessage.js +0 -34
- package/dist/src/utils/displayTags.js +0 -46
- package/dist/src/utils/doctorContextWarnings.js +0 -179
- package/dist/src/utils/doctorDiagnostic.js +0 -495
- package/dist/src/utils/dxt/helpers.js +0 -64
- package/dist/src/utils/dxt/zip.js +0 -167
- package/dist/src/utils/earlyInput.js +0 -166
- package/dist/src/utils/editor.js +0 -163
- package/dist/src/utils/effort.js +0 -278
- package/dist/src/utils/embeddedTools.js +0 -26
- package/dist/src/utils/env.js +0 -358
- package/dist/src/utils/envDynamic.js +0 -130
- package/dist/src/utils/envUtils.js +0 -154
- package/dist/src/utils/envValidation.js +0 -26
- package/dist/src/utils/errorLogSink.js +0 -197
- package/dist/src/utils/errors.js +0 -207
- package/dist/src/utils/eventLoopStallDetector.js +0 -16
- package/dist/src/utils/exampleCommands.js +0 -165
- package/dist/src/utils/execFileNoThrow.js +0 -93
- package/dist/src/utils/execFileNoThrowPortable.js +0 -111
- package/dist/src/utils/execSyncWrapper.js +0 -68
- package/dist/src/utils/exportRenderer.js +0 -71
- package/dist/src/utils/extraUsage.js +0 -19
- package/dist/src/utils/fastMode.js +0 -393
- package/dist/src/utils/file.js +0 -467
- package/dist/src/utils/fileHistory.js +0 -851
- package/dist/src/utils/fileOperationAnalytics.js +0 -45
- package/dist/src/utils/filePersistence/filePersistence.js +0 -212
- package/dist/src/utils/filePersistence/outputsScanner.js +0 -104
- package/dist/src/utils/filePersistence/types.js +0 -5
- package/dist/src/utils/fileRead.js +0 -81
- package/dist/src/utils/fileReadCache.js +0 -78
- package/dist/src/utils/fileStateCache.js +0 -99
- package/dist/src/utils/findExecutable.js +0 -13
- package/dist/src/utils/fingerprint.js +0 -59
- package/dist/src/utils/forkedAgent.js +0 -410
- package/dist/src/utils/format.js +0 -238
- package/dist/src/utils/formatBriefTimestamp.js +0 -72
- package/dist/src/utils/fpsTracker.js +0 -34
- package/dist/src/utils/frontmatterParser.js +0 -260
- package/dist/src/utils/fsOperations.js +0 -834
- package/dist/src/utils/fullscreen.js +0 -194
- package/dist/src/utils/generatedFiles.js +0 -122
- package/dist/src/utils/generators.js +0 -67
- package/dist/src/utils/genericProcessUtils.js +0 -155
- package/dist/src/utils/getWorktreePaths.js +0 -56
- package/dist/src/utils/getWorktreePathsPortable.js +0 -23
- package/dist/src/utils/ghPrStatus.js +0 -71
- package/dist/src/utils/git/gitConfigParser.js +0 -226
- package/dist/src/utils/git/gitFilesystem.js +0 -606
- package/dist/src/utils/git/gitignore.js +0 -84
- package/dist/src/utils/git.js +0 -725
- package/dist/src/utils/gitDiff.js +0 -395
- package/dist/src/utils/gitSettings.js +0 -18
- package/dist/src/utils/github/ghAuthStatus.js +0 -23
- package/dist/src/utils/githubRepoPathMapping.js +0 -135
- package/dist/src/utils/glob.js +0 -90
- package/dist/src/utils/gracefulShutdown.js +0 -447
- package/dist/src/utils/groupToolUses.js +0 -126
- package/dist/src/utils/handlePromptSubmit.js +0 -398
- package/dist/src/utils/hash.js +0 -46
- package/dist/src/utils/headlessProfiler.js +0 -147
- package/dist/src/utils/heapDumpService.js +0 -202
- package/dist/src/utils/heatmap.js +0 -151
- package/dist/src/utils/highlightMatch.js +0 -28
- package/dist/src/utils/hooks/AsyncHookRegistry.js +0 -187
- package/dist/src/utils/hooks/apiQueryHookHelper.js +0 -77
- package/dist/src/utils/hooks/execAgentHook.js +0 -257
- package/dist/src/utils/hooks/execHttpHook.js +0 -184
- package/dist/src/utils/hooks/execPromptHook.js +0 -171
- package/dist/src/utils/hooks/fileChangedWatcher.js +0 -161
- package/dist/src/utils/hooks/hookEvents.js +0 -111
- package/dist/src/utils/hooks/hookHelpers.js +0 -60
- package/dist/src/utils/hooks/hooksConfigManager.js +0 -323
- package/dist/src/utils/hooks/hooksConfigSnapshot.js +0 -114
- package/dist/src/utils/hooks/hooksSettings.js +0 -204
- package/dist/src/utils/hooks/postSamplingHooks.js +0 -39
- package/dist/src/utils/hooks/registerFrontmatterHooks.js +0 -47
- package/dist/src/utils/hooks/registerSkillHooks.js +0 -40
- package/dist/src/utils/hooks/sessionHooks.js +0 -252
- package/dist/src/utils/hooks/skillImprovement.js +0 -211
- package/dist/src/utils/hooks/ssrfGuard.js +0 -258
- package/dist/src/utils/hooks.js +0 -3668
- package/dist/src/utils/horizontalScroll.js +0 -108
- package/dist/src/utils/http.js +0 -121
- package/dist/src/utils/hyperlink.js +0 -28
- package/dist/src/utils/iTermBackup.js +0 -48
- package/dist/src/utils/ide.js +0 -1198
- package/dist/src/utils/idePathConversion.js +0 -66
- package/dist/src/utils/idleTimeout.js +0 -44
- package/dist/src/utils/imagePaste.js +0 -329
- package/dist/src/utils/imageResizer.js +0 -664
- package/dist/src/utils/imageStore.js +0 -150
- package/dist/src/utils/imageValidation.js +0 -92
- package/dist/src/utils/immediateCommand.js +0 -12
- package/dist/src/utils/inProcessTeammateHelpers.js +0 -71
- package/dist/src/utils/ink.js +0 -20
- package/dist/src/utils/intl.js +0 -83
- package/dist/src/utils/jetbrains.js +0 -152
- package/dist/src/utils/json.js +0 -295
- package/dist/src/utils/jsonRead.js +0 -14
- package/dist/src/utils/keyboardShortcuts.js +0 -11
- package/dist/src/utils/lazySchema.js +0 -8
- package/dist/src/utils/listSessionsImpl.js +0 -332
- package/dist/src/utils/localInstaller.js +0 -131
- package/dist/src/utils/lockfile.js +0 -22
- package/dist/src/utils/log.js +0 -280
- package/dist/src/utils/logoV2Utils.js +0 -288
- package/dist/src/utils/mailbox.js +0 -50
- package/dist/src/utils/managedEnv.js +0 -160
- package/dist/src/utils/managedEnvConstants.js +0 -187
- package/dist/src/utils/markdown.js +0 -300
- package/dist/src/utils/markdownConfigLoader.js +0 -480
- package/dist/src/utils/mcp/dateTimeParser.js +0 -102
- package/dist/src/utils/mcp/elicitationValidation.js +0 -259
- package/dist/src/utils/mcpInstructionsDelta.js +0 -97
- package/dist/src/utils/mcpOutputStorage.js +0 -159
- package/dist/src/utils/mcpValidation.js +0 -165
- package/dist/src/utils/mcpWebSocketTransport.js +0 -180
- package/dist/src/utils/memoize.js +0 -205
- package/dist/src/utils/memory/types.js +0 -9
- package/dist/src/utils/memory/versions.js +0 -7
- package/dist/src/utils/memoryFileDetection.js +0 -247
- package/dist/src/utils/messagePredicates.js +0 -6
- package/dist/src/utils/messageQueueManager.js +0 -430
- package/dist/src/utils/messages/mappers.js +0 -240
- package/dist/src/utils/messages/systemInit.js +0 -74
- package/dist/src/utils/messages.js +0 -4273
- package/dist/src/utils/model/agent.js +0 -128
- package/dist/src/utils/model/aliases.js +0 -21
- package/dist/src/utils/model/antModels.js +0 -25
- package/dist/src/utils/model/bedrock.js +0 -220
- package/dist/src/utils/model/check1mAccess.js +0 -64
- package/dist/src/utils/model/configs.js +0 -93
- package/dist/src/utils/model/contextWindowUpgradeCheck.js +0 -41
- package/dist/src/utils/model/deprecation.js +0 -72
- package/dist/src/utils/model/model.js +0 -635
- package/dist/src/utils/model/modelAllowlist.js +0 -148
- package/dist/src/utils/model/modelCapabilities.js +0 -107
- package/dist/src/utils/model/modelOptions.js +0 -627
- package/dist/src/utils/model/modelStrings.js +0 -144
- package/dist/src/utils/model/modelSupportOverrides.js +0 -40
- package/dist/src/utils/model/openrouter.js +0 -51
- package/dist/src/utils/model/providerBaseUrls.js +0 -77
- package/dist/src/utils/model/providerCatalog.js +0 -81
- package/dist/src/utils/model/providerModels.js +0 -334
- package/dist/src/utils/model/providerProfiles.js +0 -392
- package/dist/src/utils/model/providerProfilesDb.js +0 -556
- package/dist/src/utils/model/providerSwitch.js +0 -68
- package/dist/src/utils/model/providers.js +0 -199
- package/dist/src/utils/model/validateModel.js +0 -257
- package/dist/src/utils/modelCost.js +0 -160
- package/dist/src/utils/modifiers.js +0 -35
- package/dist/src/utils/mtls.js +0 -134
- package/dist/src/utils/nativeInstaller/download.js +0 -370
- package/dist/src/utils/nativeInstaller/index.js +0 -8
- package/dist/src/utils/nativeInstaller/installer.js +0 -1396
- package/dist/src/utils/nativeInstaller/packageManagers.js +0 -258
- package/dist/src/utils/nativeInstaller/pidLock.js +0 -347
- package/dist/src/utils/notebook.js +0 -176
- package/dist/src/utils/objectGroupBy.js +0 -15
- package/dist/src/utils/pasteStore.js +0 -93
- package/dist/src/utils/path.js +0 -140
- package/dist/src/utils/pdf.js +0 -236
- package/dist/src/utils/pdfUtils.js +0 -61
- package/dist/src/utils/peerAddress.js +0 -20
- package/dist/src/utils/permissions/PermissionMode.js +0 -95
- package/dist/src/utils/permissions/PermissionPromptToolResultSchema.js +0 -85
- package/dist/src/utils/permissions/PermissionResult.js +0 -11
- package/dist/src/utils/permissions/PermissionRule.js +0 -19
- package/dist/src/utils/permissions/PermissionUpdate.js +0 -268
- package/dist/src/utils/permissions/PermissionUpdateSchema.js +0 -61
- package/dist/src/utils/permissions/autoModeState.js +0 -34
- package/dist/src/utils/permissions/bashClassifier.js +0 -30
- package/dist/src/utils/permissions/bypassPermissionsKillswitch.js +0 -115
- package/dist/src/utils/permissions/classifierDecision.js +0 -88
- package/dist/src/utils/permissions/classifierShared.js +0 -28
- package/dist/src/utils/permissions/dangerousPatterns.js +0 -78
- package/dist/src/utils/permissions/denialTracking.js +0 -34
- package/dist/src/utils/permissions/filesystem.js +0 -1411
- package/dist/src/utils/permissions/getNextPermissionMode.js +0 -74
- package/dist/src/utils/permissions/pathValidation.js +0 -351
- package/dist/src/utils/permissions/permissionExplainer.js +0 -188
- package/dist/src/utils/permissions/permissionRuleParser.js +0 -177
- package/dist/src/utils/permissions/permissionSetup.js +0 -1164
- package/dist/src/utils/permissions/permissions.js +0 -1065
- package/dist/src/utils/permissions/permissionsLoader.js +0 -217
- package/dist/src/utils/permissions/shadowedRuleDetection.js +0 -149
- package/dist/src/utils/permissions/shellRuleMatching.js +0 -174
- package/dist/src/utils/permissions/yoloClassifier.js +0 -1195
- package/dist/src/utils/planModeV2.js +0 -75
- package/dist/src/utils/plans.js +0 -334
- package/dist/src/utils/platform.js +0 -122
- package/dist/src/utils/plugins/addDirPluginSettings.js +0 -53
- package/dist/src/utils/plugins/cacheUtils.js +0 -174
- package/dist/src/utils/plugins/dependencyResolver.js +0 -244
- package/dist/src/utils/plugins/fetchTelemetry.js +0 -108
- package/dist/src/utils/plugins/gitAvailability.js +0 -65
- package/dist/src/utils/plugins/headlessPluginInstall.js +0 -136
- package/dist/src/utils/plugins/hintRecommendation.js +0 -136
- package/dist/src/utils/plugins/installCounts.js +0 -218
- package/dist/src/utils/plugins/installedPluginsManager.js +0 -1003
- package/dist/src/utils/plugins/loadPluginAgents.js +0 -219
- package/dist/src/utils/plugins/loadPluginCommands.js +0 -595
- package/dist/src/utils/plugins/loadPluginHooks.js +0 -239
- package/dist/src/utils/plugins/loadPluginOutputStyles.js +0 -112
- package/dist/src/utils/plugins/lspPluginIntegration.js +0 -293
- package/dist/src/utils/plugins/lspRecommendation.js +0 -278
- package/dist/src/utils/plugins/managedPlugins.js +0 -26
- package/dist/src/utils/plugins/marketplaceHelpers.js +0 -470
- package/dist/src/utils/plugins/marketplaceManager.js +0 -1939
- package/dist/src/utils/plugins/mcpPluginIntegration.js +0 -465
- package/dist/src/utils/plugins/mcpbHandler.js +0 -708
- package/dist/src/utils/plugins/officialMarketplace.js +0 -21
- package/dist/src/utils/plugins/officialMarketplaceGcs.js +0 -195
- package/dist/src/utils/plugins/officialMarketplaceStartupCheck.js +0 -338
- package/dist/src/utils/plugins/orphanedPluginFilter.js +0 -96
- package/dist/src/utils/plugins/parseMarketplaceInput.js +0 -143
- package/dist/src/utils/plugins/performStartupChecks.js +0 -66
- package/dist/src/utils/plugins/pluginAutoupdate.js +0 -210
- package/dist/src/utils/plugins/pluginBlocklist.js +0 -93
- package/dist/src/utils/plugins/pluginDirectories.js +0 -170
- package/dist/src/utils/plugins/pluginFlagging.js +0 -173
- package/dist/src/utils/plugins/pluginIdentifier.js +0 -78
- package/dist/src/utils/plugins/pluginInstallationHelpers.js +0 -400
- package/dist/src/utils/plugins/pluginLoader.js +0 -2426
- package/dist/src/utils/plugins/pluginOptionsStorage.js +0 -311
- package/dist/src/utils/plugins/pluginPolicy.js +0 -18
- package/dist/src/utils/plugins/pluginStartupCheck.js +0 -261
- package/dist/src/utils/plugins/pluginVersioning.js +0 -128
- package/dist/src/utils/plugins/reconciler.js +0 -181
- package/dist/src/utils/plugins/refresh.js +0 -162
- package/dist/src/utils/plugins/schemas.js +0 -1283
- package/dist/src/utils/plugins/validatePlugin.js +0 -765
- package/dist/src/utils/plugins/walkPluginMarkdown.js +0 -49
- package/dist/src/utils/plugins/zipCache.js +0 -346
- package/dist/src/utils/plugins/zipCacheAdapters.js +0 -133
- package/dist/src/utils/postCommitAttribution.js +0 -16
- package/dist/src/utils/powershell/dangerousCmdlets.js +0 -174
- package/dist/src/utils/powershell/parser.js +0 -1357
- package/dist/src/utils/powershell/staticPrefix.js +0 -277
- package/dist/src/utils/preflightChecks.js +0 -147
- package/dist/src/utils/privacyLevel.js +0 -49
- package/dist/src/utils/process.js +0 -56
- package/dist/src/utils/processUserInput/processBashCommand.js +0 -119
- package/dist/src/utils/processUserInput/processSlashCommand.js +0 -845
- package/dist/src/utils/processUserInput/processTextPrompt.js +0 -68
- package/dist/src/utils/processUserInput/processUserInput.js +0 -326
- package/dist/src/utils/profilerBase.js +0 -29
- package/dist/src/utils/promptCategory.js +0 -39
- package/dist/src/utils/promptEditor.js +0 -151
- package/dist/src/utils/promptShellExecution.js +0 -119
- package/dist/src/utils/proxy.js +0 -347
- package/dist/src/utils/queryContext.js +0 -110
- package/dist/src/utils/queryHelpers.js +0 -436
- package/dist/src/utils/queryProfiler.js +0 -242
- package/dist/src/utils/queueProcessor.js +0 -70
- package/dist/src/utils/readEditContext.js +0 -176
- package/dist/src/utils/readFileInRange.js +0 -278
- package/dist/src/utils/releaseNotes.js +0 -304
- package/dist/src/utils/renderOptions.js +0 -67
- package/dist/src/utils/ripgrep.js +0 -540
- package/dist/src/utils/sandbox/sandbox-adapter.js +0 -749
- package/dist/src/utils/sandbox/sandbox-ui-utils.js +0 -11
- package/dist/src/utils/sanitization.js +0 -72
- package/dist/src/utils/screenshotClipboard.js +0 -89
- package/dist/src/utils/sdkEventQueue.js +0 -49
- package/dist/src/utils/sdkHeapDumpMonitor.js +0 -16
- package/dist/src/utils/secureStorage/fallbackStorage.js +0 -59
- package/dist/src/utils/secureStorage/index.js +0 -14
- package/dist/src/utils/secureStorage/keychainPrefetch.js +0 -91
- package/dist/src/utils/secureStorage/macOsKeychainHelpers.js +0 -91
- package/dist/src/utils/secureStorage/macOsKeychainStorage.js +0 -192
- package/dist/src/utils/secureStorage/plainTextStorage.js +0 -81
- package/dist/src/utils/secureStorage/secureStoreDefs.js +0 -1
- package/dist/src/utils/secureStorage/sqliteStorage.js +0 -217
- package/dist/src/utils/secureStorage/types.js +0 -1
- package/dist/src/utils/semanticBoolean.js +0 -23
- package/dist/src/utils/semanticNumber.js +0 -34
- package/dist/src/utils/semver.js +0 -53
- package/dist/src/utils/sequential.js +0 -43
- package/dist/src/utils/sessionActivity.js +0 -120
- package/dist/src/utils/sessionDataUploader.js +0 -16
- package/dist/src/utils/sessionEnvVars.js +0 -18
- package/dist/src/utils/sessionEnvironment.js +0 -131
- package/dist/src/utils/sessionFileAccessHooks.js +0 -207
- package/dist/src/utils/sessionIngressAuth.js +0 -113
- package/dist/src/utils/sessionRestore.js +0 -359
- package/dist/src/utils/sessionStart.js +0 -165
- package/dist/src/utils/sessionState.js +0 -76
- package/dist/src/utils/sessionStorage.js +0 -4162
- package/dist/src/utils/sessionStoragePortable.js +0 -665
- package/dist/src/utils/sessionTitle.js +0 -120
- package/dist/src/utils/sessionUrl.js +0 -50
- package/dist/src/utils/set.js +0 -50
- package/dist/src/utils/settings/allErrors.js +0 -29
- package/dist/src/utils/settings/applySettingsChange.js +0 -65
- package/dist/src/utils/settings/changeDetector.js +0 -409
- package/dist/src/utils/settings/constants.js +0 -166
- package/dist/src/utils/settings/internalWrites.js +0 -33
- package/dist/src/utils/settings/managedPath.js +0 -29
- package/dist/src/utils/settings/mdm/constants.js +0 -62
- package/dist/src/utils/settings/mdm/rawRead.js +0 -97
- package/dist/src/utils/settings/mdm/settings.js +0 -254
- package/dist/src/utils/settings/permissionValidation.js +0 -224
- package/dist/src/utils/settings/pluginOnlyPolicy.js +0 -53
- package/dist/src/utils/settings/schemaOutput.js +0 -7
- package/dist/src/utils/settings/settings.js +0 -791
- package/dist/src/utils/settings/settingsCache.js +0 -47
- package/dist/src/utils/settings/toolValidationConfig.js +0 -76
- package/dist/src/utils/settings/types.js +0 -846
- package/dist/src/utils/settings/validateEditTool.js +0 -34
- package/dist/src/utils/settings/validation.js +0 -192
- package/dist/src/utils/settings/validationTips.js +0 -111
- package/dist/src/utils/shell/bashProvider.js +0 -202
- package/dist/src/utils/shell/outputLimits.js +0 -7
- package/dist/src/utils/shell/powershellDetection.js +0 -96
- package/dist/src/utils/shell/powershellProvider.js +0 -104
- package/dist/src/utils/shell/prefix.js +0 -246
- package/dist/src/utils/shell/readOnlyCommandValidation.js +0 -1776
- package/dist/src/utils/shell/resolveDefaultShell.js +0 -13
- package/dist/src/utils/shell/shellProvider.js +0 -2
- package/dist/src/utils/shell/shellToolUtils.js +0 -21
- package/dist/src/utils/shell/specPrefix.js +0 -198
- package/dist/src/utils/shellConfig.js +0 -136
- package/dist/src/utils/sideQuery.js +0 -195
- package/dist/src/utils/sideQuestion.js +0 -121
- package/dist/src/utils/signal.js +0 -34
- package/dist/src/utils/sinks.js +0 -15
- package/dist/src/utils/skills/skillChangeDetector.js +0 -264
- package/dist/src/utils/slashCommandParsing.js +0 -46
- package/dist/src/utils/sleep.js +0 -72
- package/dist/src/utils/sliceAnsi.js +0 -74
- package/dist/src/utils/slowOperations.js +0 -323
- package/dist/src/utils/standaloneAgent.js +0 -20
- package/dist/src/utils/startupProfiler.js +0 -158
- package/dist/src/utils/staticRender.js +0 -103
- package/dist/src/utils/stats.js +0 -802
- package/dist/src/utils/statsCache.js +0 -330
- package/dist/src/utils/status.js +0 -544
- package/dist/src/utils/statusNoticeDefinitions.js +0 -112
- package/dist/src/utils/statusNoticeHelpers.js +0 -15
- package/dist/src/utils/stream.js +0 -73
- package/dist/src/utils/streamJsonStdoutGuard.js +0 -107
- package/dist/src/utils/streamlinedTransform.js +0 -162
- package/dist/src/utils/stringUtils.js +0 -202
- package/dist/src/utils/subprocessEnv.js +0 -87
- package/dist/src/utils/suggestions/commandSuggestions.js +0 -458
- package/dist/src/utils/suggestions/directoryCompletion.js +0 -191
- package/dist/src/utils/suggestions/shellHistoryCompletion.js +0 -95
- package/dist/src/utils/suggestions/skillUsageTracking.js +0 -50
- package/dist/src/utils/suggestions/slackChannelSuggestions.js +0 -169
- package/dist/src/utils/swarm/It2SetupPrompt.js +0 -386
- package/dist/src/utils/swarm/backends/ITermBackend.js +0 -276
- package/dist/src/utils/swarm/backends/InProcessBackend.js +0 -237
- package/dist/src/utils/swarm/backends/PaneBackendExecutor.js +0 -250
- package/dist/src/utils/swarm/backends/TmuxBackend.js +0 -574
- package/dist/src/utils/swarm/backends/detection.js +0 -112
- package/dist/src/utils/swarm/backends/it2Setup.js +0 -185
- package/dist/src/utils/swarm/backends/registry.js +0 -369
- package/dist/src/utils/swarm/backends/teammateModeSnapshot.js +0 -68
- package/dist/src/utils/swarm/backends/types.js +0 -9
- package/dist/src/utils/swarm/constants.js +0 -29
- package/dist/src/utils/swarm/inProcessRunner.js +0 -1021
- package/dist/src/utils/swarm/leaderPermissionBridge.js +0 -31
- package/dist/src/utils/swarm/permissionSync.js +0 -667
- package/dist/src/utils/swarm/reconnection.js +0 -82
- package/dist/src/utils/swarm/spawnInProcess.js +0 -218
- package/dist/src/utils/swarm/spawnUtils.js +0 -123
- package/dist/src/utils/swarm/teamHelpers.js +0 -484
- package/dist/src/utils/swarm/teammateInit.js +0 -87
- package/dist/src/utils/swarm/teammateLayoutManager.js +0 -82
- package/dist/src/utils/swarm/teammateModel.js +0 -9
- package/dist/src/utils/swarm/teammatePromptAddendum.js +0 -17
- package/dist/src/utils/systemDirectories.js +0 -51
- package/dist/src/utils/systemPrompt.js +0 -90
- package/dist/src/utils/systemPromptType.js +0 -9
- package/dist/src/utils/systemTheme.js +0 -108
- package/dist/src/utils/systemThemeWatcher.js +0 -16
- package/dist/src/utils/taggedId.js +0 -49
- package/dist/src/utils/task/TaskOutput.js +0 -320
- package/dist/src/utils/task/diskOutput.js +0 -387
- package/dist/src/utils/task/framework.js +0 -236
- package/dist/src/utils/task/outputFormatting.js +0 -24
- package/dist/src/utils/task/sdkProgress.js +0 -24
- package/dist/src/utils/tasks.js +0 -672
- package/dist/src/utils/teamDiscovery.js +0 -48
- package/dist/src/utils/teamMemoryOps.js +0 -67
- package/dist/src/utils/teammate.js +0 -237
- package/dist/src/utils/teammateContext.js +0 -56
- package/dist/src/utils/teammateMailbox.js +0 -793
- package/dist/src/utils/telemetry/betaSessionTracing.js +0 -371
- package/dist/src/utils/telemetry/bigqueryExporter.js +0 -178
- package/dist/src/utils/telemetry/events.js +0 -57
- package/dist/src/utils/telemetry/instrumentation.js +0 -617
- package/dist/src/utils/telemetry/logger.js +0 -25
- package/dist/src/utils/telemetry/perfettoTracing.js +0 -882
- package/dist/src/utils/telemetry/pluginTelemetry.js +0 -157
- package/dist/src/utils/telemetry/sessionTracing.js +0 -693
- package/dist/src/utils/telemetry/skillLoadedEvent.js +0 -26
- package/dist/src/utils/telemetryAttributes.js +0 -57
- package/dist/src/utils/teleport/api.js +0 -299
- package/dist/src/utils/teleport/environmentSelection.js +0 -55
- package/dist/src/utils/teleport/environments.js +0 -84
- package/dist/src/utils/teleport/gitBundle.js +0 -192
- package/dist/src/utils/teleport.js +0 -1041
- package/dist/src/utils/tempfile.js +0 -26
- package/dist/src/utils/terminal.js +0 -105
- package/dist/src/utils/terminalPanel.js +0 -155
- package/dist/src/utils/textHighlighting.js +0 -113
- package/dist/src/utils/theme.js +0 -525
- package/dist/src/utils/thinking.js +0 -130
- package/dist/src/utils/timeouts.js +0 -35
- package/dist/src/utils/tmuxSocket.js +0 -373
- package/dist/src/utils/todo/types.js +0 -9
- package/dist/src/utils/tokenBudget.js +0 -62
- package/dist/src/utils/tokens.js +0 -223
- package/dist/src/utils/toolErrors.js +0 -101
- package/dist/src/utils/toolPool.js +0 -63
- package/dist/src/utils/toolResultStorage.js +0 -769
- package/dist/src/utils/toolSchemaCache.js +0 -7
- package/dist/src/utils/toolSearch.js +0 -551
- package/dist/src/utils/transcriptSearch.js +0 -200
- package/dist/src/utils/treeify.js +0 -111
- package/dist/src/utils/truncate.js +0 -164
- package/dist/src/utils/udsClient.js +0 -16
- package/dist/src/utils/udsMessaging.js +0 -16
- package/dist/src/utils/ultraplan/ccrSession.js +0 -264
- package/dist/src/utils/ultraplan/keyword.js +0 -122
- package/dist/src/utils/ultraplan/prompt.txt +0 -1
- package/dist/src/utils/unaryLogging.js +0 -16
- package/dist/src/utils/undercover.js +0 -89
- package/dist/src/utils/user.js +0 -138
- package/dist/src/utils/userAgent.js +0 -13
- package/dist/src/utils/userPromptKeywords.js +0 -21
- package/dist/src/utils/uuid.js +0 -22
- package/dist/src/utils/warningHandler.js +0 -97
- package/dist/src/utils/which.js +0 -75
- package/dist/src/utils/windowsPaths.js +0 -146
- package/dist/src/utils/withResolvers.js +0 -13
- package/dist/src/utils/words.js +0 -793
- package/dist/src/utils/workloadContext.js +0 -42
- package/dist/src/utils/worktree.js +0 -1142
- package/dist/src/utils/worktreeModeEnabled.js +0 -11
- package/dist/src/utils/xdg.js +0 -52
- package/dist/src/utils/xml.js +0 -15
- package/dist/src/utils/yaml.js +0 -16
- package/dist/src/utils/zodToJsonSchema.js +0 -19
- package/dist/src/vim/motions.js +0 -73
- package/dist/src/vim/operators.js +0 -401
- package/dist/src/vim/textObjects.js +0 -153
- package/dist/src/vim/transitions.js +0 -340
- package/dist/src/vim/types.js +0 -93
- package/dist/src/voice/voiceModeEnabled.js +0 -48
- package/dist/src/whatsapp/bridge.js +0 -267
- package/dist/src/whatsapp/config.js +0 -128
- package/dist/src/whatsapp/markdown.js +0 -37
- package/dist/src/whatsapp/mirror.js +0 -74
- package/dist/src/whatsapp/session.js +0 -142
|
@@ -1,1579 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { c as _c } from "react/compiler-runtime";
|
|
3
|
-
import chalk from 'chalk';
|
|
4
|
-
import figures from 'figures';
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import { getOriginalCwd, getSessionId } from '../bootstrap/state.js';
|
|
7
|
-
import { useExitOnCtrlCDWithKeybindings } from '../hooks/useExitOnCtrlCDWithKeybindings.js';
|
|
8
|
-
import { useSearchInput } from '../hooks/useSearchInput.js';
|
|
9
|
-
import { useTerminalSize } from '../hooks/useTerminalSize.js';
|
|
10
|
-
import { applyColor } from '../ink/colorize.js';
|
|
11
|
-
import { Box, Text, useInput, useTerminalFocus, useTheme } from '../ink.js';
|
|
12
|
-
import { useKeybinding } from '../keybindings/useKeybinding.js';
|
|
13
|
-
import { logEvent } from '../services/analytics/index.js';
|
|
14
|
-
import { formatLogMetadata, truncateToWidth } from '../utils/format.js';
|
|
15
|
-
import { getWorktreePaths } from '../utils/getWorktreePaths.js';
|
|
16
|
-
import { getBranch } from '../utils/git.js';
|
|
17
|
-
import { getLogDisplayTitle } from '../utils/log.js';
|
|
18
|
-
import { getFirstMeaningfulUserMessageTextContent, getSessionIdFromLog, isCustomTitleEnabled, saveCustomTitle } from '../utils/sessionStorage.js';
|
|
19
|
-
import { getTheme } from '../utils/theme.js';
|
|
20
|
-
import { ConfigurableShortcutHint } from './ConfigurableShortcutHint.js';
|
|
21
|
-
import { Select } from './CustomSelect/select.js';
|
|
22
|
-
import { Byline } from './design-system/Byline.js';
|
|
23
|
-
import { Divider } from './design-system/Divider.js';
|
|
24
|
-
import { KeyboardShortcutHint } from './design-system/KeyboardShortcutHint.js';
|
|
25
|
-
import { SearchBox } from './SearchBox.js';
|
|
26
|
-
import { SessionPreview } from './SessionPreview.js';
|
|
27
|
-
import { Spinner } from './Spinner.js';
|
|
28
|
-
import { TagTabs } from './TagTabs.js';
|
|
29
|
-
import TextInput from './TextInput.js';
|
|
30
|
-
import { TreeSelect } from './ui/TreeSelect.js';
|
|
31
|
-
function normalizeAndTruncateToWidth(text, maxWidth) {
|
|
32
|
-
const normalized = text.replace(/\s+/g, ' ').trim();
|
|
33
|
-
return truncateToWidth(normalized, maxWidth);
|
|
34
|
-
}
|
|
35
|
-
// Width of prefixes that TreeSelect will add
|
|
36
|
-
const PARENT_PREFIX_WIDTH = 2; // '▼ ' or '▶ '
|
|
37
|
-
const CHILD_PREFIX_WIDTH = 4; // ' ▸ '
|
|
38
|
-
// Deep search constants
|
|
39
|
-
const DEEP_SEARCH_MAX_MESSAGES = 2000;
|
|
40
|
-
const DEEP_SEARCH_CROP_SIZE = 1000;
|
|
41
|
-
const DEEP_SEARCH_MAX_TEXT_LENGTH = 50000; // Cap searchable text per session
|
|
42
|
-
const FUSE_THRESHOLD = 0.3;
|
|
43
|
-
const DATE_TIE_THRESHOLD_MS = 60 * 1000; // 1 minute - use relevance as tie-breaker within this window
|
|
44
|
-
const SNIPPET_CONTEXT_CHARS = 50; // Characters to show before/after match
|
|
45
|
-
function formatSnippet({ before, match, after }, highlightColor) {
|
|
46
|
-
return chalk.dim(before) + highlightColor(match) + chalk.dim(after);
|
|
47
|
-
}
|
|
48
|
-
function extractSnippet(text, query, contextChars) {
|
|
49
|
-
// Find exact query occurrence (case-insensitive).
|
|
50
|
-
// Note: Fuse does fuzzy matching, so this may miss some fuzzy matches.
|
|
51
|
-
// This is acceptable for now - in the future we could use Fuse's includeMatches
|
|
52
|
-
// option and work with the match indices directly.
|
|
53
|
-
const matchIndex = text.toLowerCase().indexOf(query.toLowerCase());
|
|
54
|
-
if (matchIndex === -1)
|
|
55
|
-
return null;
|
|
56
|
-
const matchEnd = matchIndex + query.length;
|
|
57
|
-
const snippetStart = Math.max(0, matchIndex - contextChars);
|
|
58
|
-
const snippetEnd = Math.min(text.length, matchEnd + contextChars);
|
|
59
|
-
const beforeRaw = text.slice(snippetStart, matchIndex);
|
|
60
|
-
const matchText = text.slice(matchIndex, matchEnd);
|
|
61
|
-
const afterRaw = text.slice(matchEnd, snippetEnd);
|
|
62
|
-
return {
|
|
63
|
-
before: (snippetStart > 0 ? '…' : '') + beforeRaw.replace(/\s+/g, ' ').trimStart(),
|
|
64
|
-
match: matchText.trim(),
|
|
65
|
-
after: afterRaw.replace(/\s+/g, ' ').trimEnd() + (snippetEnd < text.length ? '…' : '')
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
function buildLogLabel(log, maxLabelWidth, options) {
|
|
69
|
-
const { isGroupHeader = false, isChild = false, forkCount = 0 } = options || {};
|
|
70
|
-
// TreeSelect will add the prefix, so we just need to account for its width
|
|
71
|
-
const prefixWidth = isGroupHeader && forkCount > 0 ? PARENT_PREFIX_WIDTH : isChild ? CHILD_PREFIX_WIDTH : 0;
|
|
72
|
-
const sessionCountSuffix = isGroupHeader && forkCount > 0 ? ` (+${forkCount} other ${forkCount === 1 ? 'session' : 'sessions'})` : '';
|
|
73
|
-
const sidechainSuffix = log.isSidechain ? ' (sidechain)' : '';
|
|
74
|
-
const maxSummaryWidth = maxLabelWidth - prefixWidth - sidechainSuffix.length - sessionCountSuffix.length;
|
|
75
|
-
const truncatedSummary = normalizeAndTruncateToWidth(getLogDisplayTitle(log), maxSummaryWidth);
|
|
76
|
-
return `${truncatedSummary}${sidechainSuffix}${sessionCountSuffix}`;
|
|
77
|
-
}
|
|
78
|
-
function buildLogMetadata(log, options) {
|
|
79
|
-
const { isChild = false, showProjectPath = false } = options || {};
|
|
80
|
-
// Match the child prefix width for proper alignment
|
|
81
|
-
const childPadding = isChild ? ' ' : ''; // 4 spaces to match ' ▸ '
|
|
82
|
-
const baseMetadata = formatLogMetadata(log);
|
|
83
|
-
const projectSuffix = showProjectPath && log.projectPath ? ` · ${log.projectPath}` : '';
|
|
84
|
-
return childPadding + baseMetadata + projectSuffix;
|
|
85
|
-
}
|
|
86
|
-
export function LogSelector(t0) {
|
|
87
|
-
const $ = _c(247);
|
|
88
|
-
const { logs, maxHeight: t1, forceWidth, onCancel, onSelect, onLogsChanged, onLoadMore, initialSearchQuery, showAllProjects: t2, onToggleAllProjects, onAgenticSearch } = t0;
|
|
89
|
-
const maxHeight = t1 === undefined ? Infinity : t1;
|
|
90
|
-
const showAllProjects = t2 === undefined ? false : t2;
|
|
91
|
-
const terminalSize = useTerminalSize();
|
|
92
|
-
const columns = forceWidth === undefined ? terminalSize.columns : forceWidth;
|
|
93
|
-
const exitState = useExitOnCtrlCDWithKeybindings(onCancel);
|
|
94
|
-
const isTerminalFocused = useTerminalFocus();
|
|
95
|
-
let t3;
|
|
96
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
97
|
-
t3 = isCustomTitleEnabled();
|
|
98
|
-
$[0] = t3;
|
|
99
|
-
}
|
|
100
|
-
else {
|
|
101
|
-
t3 = $[0];
|
|
102
|
-
}
|
|
103
|
-
const isResumeWithRenameEnabled = t3;
|
|
104
|
-
const isDeepSearchEnabled = false;
|
|
105
|
-
const [themeName] = useTheme();
|
|
106
|
-
let t4;
|
|
107
|
-
if ($[1] !== themeName) {
|
|
108
|
-
t4 = getTheme(themeName);
|
|
109
|
-
$[1] = themeName;
|
|
110
|
-
$[2] = t4;
|
|
111
|
-
}
|
|
112
|
-
else {
|
|
113
|
-
t4 = $[2];
|
|
114
|
-
}
|
|
115
|
-
const theme = t4;
|
|
116
|
-
let t5;
|
|
117
|
-
if ($[3] !== theme.warning) {
|
|
118
|
-
t5 = text => applyColor(text, theme.warning);
|
|
119
|
-
$[3] = theme.warning;
|
|
120
|
-
$[4] = t5;
|
|
121
|
-
}
|
|
122
|
-
else {
|
|
123
|
-
t5 = $[4];
|
|
124
|
-
}
|
|
125
|
-
const highlightColor = t5;
|
|
126
|
-
const isAgenticSearchEnabled = false;
|
|
127
|
-
const [currentBranch, setCurrentBranch] = React.useState(null);
|
|
128
|
-
const [branchFilterEnabled, setBranchFilterEnabled] = React.useState(false);
|
|
129
|
-
const [showAllWorktrees, setShowAllWorktrees] = React.useState(false);
|
|
130
|
-
const [hasMultipleWorktrees, setHasMultipleWorktrees] = React.useState(false);
|
|
131
|
-
let t6;
|
|
132
|
-
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
133
|
-
t6 = getOriginalCwd();
|
|
134
|
-
$[5] = t6;
|
|
135
|
-
}
|
|
136
|
-
else {
|
|
137
|
-
t6 = $[5];
|
|
138
|
-
}
|
|
139
|
-
const currentCwd = t6;
|
|
140
|
-
const [renameValue, setRenameValue] = React.useState("");
|
|
141
|
-
const [renameCursorOffset, setRenameCursorOffset] = React.useState(0);
|
|
142
|
-
let t7;
|
|
143
|
-
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
144
|
-
t7 = new Set();
|
|
145
|
-
$[6] = t7;
|
|
146
|
-
}
|
|
147
|
-
else {
|
|
148
|
-
t7 = $[6];
|
|
149
|
-
}
|
|
150
|
-
const [expandedGroupSessionIds, setExpandedGroupSessionIds] = React.useState(t7);
|
|
151
|
-
const [focusedNode, setFocusedNode] = React.useState(null);
|
|
152
|
-
const [focusedIndex, setFocusedIndex] = React.useState(1);
|
|
153
|
-
const [viewMode, setViewMode] = React.useState("list");
|
|
154
|
-
const [previewLog, setPreviewLog] = React.useState(null);
|
|
155
|
-
const prevFocusedIdRef = React.useRef(null);
|
|
156
|
-
const [selectedTagIndex, setSelectedTagIndex] = React.useState(0);
|
|
157
|
-
let t8;
|
|
158
|
-
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
159
|
-
t8 = {
|
|
160
|
-
status: "idle"
|
|
161
|
-
};
|
|
162
|
-
$[7] = t8;
|
|
163
|
-
}
|
|
164
|
-
else {
|
|
165
|
-
t8 = $[7];
|
|
166
|
-
}
|
|
167
|
-
const [agenticSearchState, setAgenticSearchState] = React.useState(t8);
|
|
168
|
-
const [isAgenticSearchOptionFocused, setIsAgenticSearchOptionFocused] = React.useState(false);
|
|
169
|
-
const agenticSearchAbortRef = React.useRef(null);
|
|
170
|
-
const t9 = viewMode === "search" && agenticSearchState.status !== "searching";
|
|
171
|
-
let t10;
|
|
172
|
-
let t11;
|
|
173
|
-
let t12;
|
|
174
|
-
if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
|
|
175
|
-
t10 = () => {
|
|
176
|
-
setViewMode("list");
|
|
177
|
-
logEvent("tengu_session_search_toggled", {
|
|
178
|
-
enabled: false
|
|
179
|
-
});
|
|
180
|
-
};
|
|
181
|
-
t11 = () => {
|
|
182
|
-
setViewMode("list");
|
|
183
|
-
logEvent("tengu_session_search_toggled", {
|
|
184
|
-
enabled: false
|
|
185
|
-
});
|
|
186
|
-
};
|
|
187
|
-
t12 = ["n"];
|
|
188
|
-
$[8] = t10;
|
|
189
|
-
$[9] = t11;
|
|
190
|
-
$[10] = t12;
|
|
191
|
-
}
|
|
192
|
-
else {
|
|
193
|
-
t10 = $[8];
|
|
194
|
-
t11 = $[9];
|
|
195
|
-
t12 = $[10];
|
|
196
|
-
}
|
|
197
|
-
const t13 = initialSearchQuery || "";
|
|
198
|
-
let t14;
|
|
199
|
-
if ($[11] !== t13 || $[12] !== t9) {
|
|
200
|
-
t14 = {
|
|
201
|
-
isActive: t9,
|
|
202
|
-
onExit: t10,
|
|
203
|
-
onExitUp: t11,
|
|
204
|
-
passthroughCtrlKeys: t12,
|
|
205
|
-
initialQuery: t13
|
|
206
|
-
};
|
|
207
|
-
$[11] = t13;
|
|
208
|
-
$[12] = t9;
|
|
209
|
-
$[13] = t14;
|
|
210
|
-
}
|
|
211
|
-
else {
|
|
212
|
-
t14 = $[13];
|
|
213
|
-
}
|
|
214
|
-
const { query: searchQuery, setQuery: setSearchQuery, cursorOffset: searchCursorOffset } = useSearchInput(t14);
|
|
215
|
-
const deferredSearchQuery = React.useDeferredValue(searchQuery);
|
|
216
|
-
const [debouncedDeepSearchQuery, setDebouncedDeepSearchQuery] = React.useState("");
|
|
217
|
-
let t15;
|
|
218
|
-
let t16;
|
|
219
|
-
if ($[14] !== deferredSearchQuery) {
|
|
220
|
-
t15 = () => {
|
|
221
|
-
if (!deferredSearchQuery) {
|
|
222
|
-
setDebouncedDeepSearchQuery("");
|
|
223
|
-
return;
|
|
224
|
-
}
|
|
225
|
-
const timeoutId = setTimeout(setDebouncedDeepSearchQuery, 300, deferredSearchQuery);
|
|
226
|
-
return () => clearTimeout(timeoutId);
|
|
227
|
-
};
|
|
228
|
-
t16 = [deferredSearchQuery];
|
|
229
|
-
$[14] = deferredSearchQuery;
|
|
230
|
-
$[15] = t15;
|
|
231
|
-
$[16] = t16;
|
|
232
|
-
}
|
|
233
|
-
else {
|
|
234
|
-
t15 = $[15];
|
|
235
|
-
t16 = $[16];
|
|
236
|
-
}
|
|
237
|
-
React.useEffect(t15, t16);
|
|
238
|
-
const [deepSearchResults, setDeepSearchResults] = React.useState(null);
|
|
239
|
-
const [isSearching, setIsSearching] = React.useState(false);
|
|
240
|
-
let t17;
|
|
241
|
-
let t18;
|
|
242
|
-
if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
|
|
243
|
-
t17 = () => {
|
|
244
|
-
getBranch().then(branch => setCurrentBranch(branch));
|
|
245
|
-
getWorktreePaths(currentCwd).then(paths => {
|
|
246
|
-
setHasMultipleWorktrees(paths.length > 1);
|
|
247
|
-
});
|
|
248
|
-
};
|
|
249
|
-
t18 = [currentCwd];
|
|
250
|
-
$[17] = t17;
|
|
251
|
-
$[18] = t18;
|
|
252
|
-
}
|
|
253
|
-
else {
|
|
254
|
-
t17 = $[17];
|
|
255
|
-
t18 = $[18];
|
|
256
|
-
}
|
|
257
|
-
React.useEffect(t17, t18);
|
|
258
|
-
const searchableTextByLog = new Map(logs.map(_temp));
|
|
259
|
-
let t19;
|
|
260
|
-
t19 = null;
|
|
261
|
-
let t20;
|
|
262
|
-
if ($[19] !== logs) {
|
|
263
|
-
t20 = getUniqueTags(logs);
|
|
264
|
-
$[19] = logs;
|
|
265
|
-
$[20] = t20;
|
|
266
|
-
}
|
|
267
|
-
else {
|
|
268
|
-
t20 = $[20];
|
|
269
|
-
}
|
|
270
|
-
const uniqueTags = t20;
|
|
271
|
-
const hasTags = uniqueTags.length > 0;
|
|
272
|
-
let t21;
|
|
273
|
-
if ($[21] !== hasTags || $[22] !== uniqueTags) {
|
|
274
|
-
t21 = hasTags ? ["All", ...uniqueTags] : [];
|
|
275
|
-
$[21] = hasTags;
|
|
276
|
-
$[22] = uniqueTags;
|
|
277
|
-
$[23] = t21;
|
|
278
|
-
}
|
|
279
|
-
else {
|
|
280
|
-
t21 = $[23];
|
|
281
|
-
}
|
|
282
|
-
const tagTabs = t21;
|
|
283
|
-
const effectiveTagIndex = tagTabs.length > 0 && selectedTagIndex < tagTabs.length ? selectedTagIndex : 0;
|
|
284
|
-
const selectedTab = tagTabs[effectiveTagIndex];
|
|
285
|
-
const tagFilter = selectedTab === "All" ? undefined : selectedTab;
|
|
286
|
-
const tagTabsLines = hasTags ? 1 : 0;
|
|
287
|
-
let filtered = logs;
|
|
288
|
-
if (isResumeWithRenameEnabled) {
|
|
289
|
-
let t22;
|
|
290
|
-
if ($[24] !== logs) {
|
|
291
|
-
t22 = logs.filter(_temp2);
|
|
292
|
-
$[24] = logs;
|
|
293
|
-
$[25] = t22;
|
|
294
|
-
}
|
|
295
|
-
else {
|
|
296
|
-
t22 = $[25];
|
|
297
|
-
}
|
|
298
|
-
filtered = t22;
|
|
299
|
-
}
|
|
300
|
-
if (tagFilter !== undefined) {
|
|
301
|
-
let t22;
|
|
302
|
-
if ($[26] !== filtered || $[27] !== tagFilter) {
|
|
303
|
-
let t23;
|
|
304
|
-
if ($[29] !== tagFilter) {
|
|
305
|
-
t23 = log_2 => log_2.tag === tagFilter;
|
|
306
|
-
$[29] = tagFilter;
|
|
307
|
-
$[30] = t23;
|
|
308
|
-
}
|
|
309
|
-
else {
|
|
310
|
-
t23 = $[30];
|
|
311
|
-
}
|
|
312
|
-
t22 = filtered.filter(t23);
|
|
313
|
-
$[26] = filtered;
|
|
314
|
-
$[27] = tagFilter;
|
|
315
|
-
$[28] = t22;
|
|
316
|
-
}
|
|
317
|
-
else {
|
|
318
|
-
t22 = $[28];
|
|
319
|
-
}
|
|
320
|
-
filtered = t22;
|
|
321
|
-
}
|
|
322
|
-
if (branchFilterEnabled && currentBranch) {
|
|
323
|
-
let t22;
|
|
324
|
-
if ($[31] !== currentBranch || $[32] !== filtered) {
|
|
325
|
-
let t23;
|
|
326
|
-
if ($[34] !== currentBranch) {
|
|
327
|
-
t23 = log_3 => log_3.gitBranch === currentBranch;
|
|
328
|
-
$[34] = currentBranch;
|
|
329
|
-
$[35] = t23;
|
|
330
|
-
}
|
|
331
|
-
else {
|
|
332
|
-
t23 = $[35];
|
|
333
|
-
}
|
|
334
|
-
t22 = filtered.filter(t23);
|
|
335
|
-
$[31] = currentBranch;
|
|
336
|
-
$[32] = filtered;
|
|
337
|
-
$[33] = t22;
|
|
338
|
-
}
|
|
339
|
-
else {
|
|
340
|
-
t22 = $[33];
|
|
341
|
-
}
|
|
342
|
-
filtered = t22;
|
|
343
|
-
}
|
|
344
|
-
if (hasMultipleWorktrees && !showAllWorktrees) {
|
|
345
|
-
let t22;
|
|
346
|
-
if ($[36] !== filtered) {
|
|
347
|
-
let t23;
|
|
348
|
-
if ($[38] === Symbol.for("react.memo_cache_sentinel")) {
|
|
349
|
-
t23 = log_4 => log_4.projectPath === currentCwd;
|
|
350
|
-
$[38] = t23;
|
|
351
|
-
}
|
|
352
|
-
else {
|
|
353
|
-
t23 = $[38];
|
|
354
|
-
}
|
|
355
|
-
t22 = filtered.filter(t23);
|
|
356
|
-
$[36] = filtered;
|
|
357
|
-
$[37] = t22;
|
|
358
|
-
}
|
|
359
|
-
else {
|
|
360
|
-
t22 = $[37];
|
|
361
|
-
}
|
|
362
|
-
filtered = t22;
|
|
363
|
-
}
|
|
364
|
-
const baseFilteredLogs = filtered;
|
|
365
|
-
let t22;
|
|
366
|
-
bb0: {
|
|
367
|
-
if (!searchQuery) {
|
|
368
|
-
t22 = baseFilteredLogs;
|
|
369
|
-
break bb0;
|
|
370
|
-
}
|
|
371
|
-
let t23;
|
|
372
|
-
if ($[39] !== baseFilteredLogs || $[40] !== searchQuery) {
|
|
373
|
-
const query = searchQuery.toLowerCase();
|
|
374
|
-
t23 = baseFilteredLogs.filter(log_5 => {
|
|
375
|
-
const displayedTitle = getLogDisplayTitle(log_5).toLowerCase();
|
|
376
|
-
const branch_0 = (log_5.gitBranch || "").toLowerCase();
|
|
377
|
-
const tag = (log_5.tag || "").toLowerCase();
|
|
378
|
-
const prInfo = log_5.prNumber ? `pr #${log_5.prNumber} ${log_5.prRepository || ""}`.toLowerCase() : "";
|
|
379
|
-
return displayedTitle.includes(query) || branch_0.includes(query) || tag.includes(query) || prInfo.includes(query);
|
|
380
|
-
});
|
|
381
|
-
$[39] = baseFilteredLogs;
|
|
382
|
-
$[40] = searchQuery;
|
|
383
|
-
$[41] = t23;
|
|
384
|
-
}
|
|
385
|
-
else {
|
|
386
|
-
t23 = $[41];
|
|
387
|
-
}
|
|
388
|
-
t22 = t23;
|
|
389
|
-
}
|
|
390
|
-
const titleFilteredLogs = t22;
|
|
391
|
-
let t23;
|
|
392
|
-
let t24;
|
|
393
|
-
if ($[42] !== debouncedDeepSearchQuery || $[43] !== deferredSearchQuery) {
|
|
394
|
-
t23 = () => {
|
|
395
|
-
if (false && deferredSearchQuery && deferredSearchQuery !== debouncedDeepSearchQuery) {
|
|
396
|
-
setIsSearching(true);
|
|
397
|
-
}
|
|
398
|
-
};
|
|
399
|
-
t24 = [deferredSearchQuery, debouncedDeepSearchQuery, false];
|
|
400
|
-
$[42] = debouncedDeepSearchQuery;
|
|
401
|
-
$[43] = deferredSearchQuery;
|
|
402
|
-
$[44] = t23;
|
|
403
|
-
$[45] = t24;
|
|
404
|
-
}
|
|
405
|
-
else {
|
|
406
|
-
t23 = $[44];
|
|
407
|
-
t24 = $[45];
|
|
408
|
-
}
|
|
409
|
-
React.useEffect(t23, t24);
|
|
410
|
-
let t25;
|
|
411
|
-
let t26;
|
|
412
|
-
if ($[46] !== debouncedDeepSearchQuery) {
|
|
413
|
-
t25 = () => {
|
|
414
|
-
if (true || !debouncedDeepSearchQuery || true) {
|
|
415
|
-
setDeepSearchResults(null);
|
|
416
|
-
setIsSearching(false);
|
|
417
|
-
return;
|
|
418
|
-
}
|
|
419
|
-
const timeoutId_0 = setTimeout(_temp5, 0, null, debouncedDeepSearchQuery, setDeepSearchResults, setIsSearching);
|
|
420
|
-
return () => {
|
|
421
|
-
clearTimeout(timeoutId_0);
|
|
422
|
-
};
|
|
423
|
-
};
|
|
424
|
-
t26 = [debouncedDeepSearchQuery, null, false];
|
|
425
|
-
$[46] = debouncedDeepSearchQuery;
|
|
426
|
-
$[47] = t25;
|
|
427
|
-
$[48] = t26;
|
|
428
|
-
}
|
|
429
|
-
else {
|
|
430
|
-
t25 = $[47];
|
|
431
|
-
t26 = $[48];
|
|
432
|
-
}
|
|
433
|
-
React.useEffect(t25, t26);
|
|
434
|
-
let filtered_0;
|
|
435
|
-
let snippetMap;
|
|
436
|
-
if ($[49] !== debouncedDeepSearchQuery || $[50] !== deepSearchResults || $[51] !== titleFilteredLogs) {
|
|
437
|
-
snippetMap = new Map();
|
|
438
|
-
filtered_0 = titleFilteredLogs;
|
|
439
|
-
if (deepSearchResults && debouncedDeepSearchQuery && deepSearchResults.query === debouncedDeepSearchQuery) {
|
|
440
|
-
for (const result of deepSearchResults.results) {
|
|
441
|
-
if (result.searchableText) {
|
|
442
|
-
const snippet = extractSnippet(result.searchableText, debouncedDeepSearchQuery, SNIPPET_CONTEXT_CHARS);
|
|
443
|
-
if (snippet) {
|
|
444
|
-
snippetMap.set(result.log, snippet);
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
|
-
let t27;
|
|
449
|
-
if ($[54] !== filtered_0) {
|
|
450
|
-
t27 = new Set(filtered_0.map(_temp6));
|
|
451
|
-
$[54] = filtered_0;
|
|
452
|
-
$[55] = t27;
|
|
453
|
-
}
|
|
454
|
-
else {
|
|
455
|
-
t27 = $[55];
|
|
456
|
-
}
|
|
457
|
-
const titleMatchIds = t27;
|
|
458
|
-
let t28;
|
|
459
|
-
if ($[56] !== deepSearchResults.results || $[57] !== filtered_0 || $[58] !== titleMatchIds) {
|
|
460
|
-
let t29;
|
|
461
|
-
if ($[60] !== titleMatchIds) {
|
|
462
|
-
t29 = log_7 => !titleMatchIds.has(log_7.messages[0]?.uuid);
|
|
463
|
-
$[60] = titleMatchIds;
|
|
464
|
-
$[61] = t29;
|
|
465
|
-
}
|
|
466
|
-
else {
|
|
467
|
-
t29 = $[61];
|
|
468
|
-
}
|
|
469
|
-
const transcriptOnlyMatches = deepSearchResults.results.map(_temp7).filter(t29);
|
|
470
|
-
t28 = [...filtered_0, ...transcriptOnlyMatches];
|
|
471
|
-
$[56] = deepSearchResults.results;
|
|
472
|
-
$[57] = filtered_0;
|
|
473
|
-
$[58] = titleMatchIds;
|
|
474
|
-
$[59] = t28;
|
|
475
|
-
}
|
|
476
|
-
else {
|
|
477
|
-
t28 = $[59];
|
|
478
|
-
}
|
|
479
|
-
filtered_0 = t28;
|
|
480
|
-
}
|
|
481
|
-
$[49] = debouncedDeepSearchQuery;
|
|
482
|
-
$[50] = deepSearchResults;
|
|
483
|
-
$[51] = titleFilteredLogs;
|
|
484
|
-
$[52] = filtered_0;
|
|
485
|
-
$[53] = snippetMap;
|
|
486
|
-
}
|
|
487
|
-
else {
|
|
488
|
-
filtered_0 = $[52];
|
|
489
|
-
snippetMap = $[53];
|
|
490
|
-
}
|
|
491
|
-
let t27;
|
|
492
|
-
if ($[62] !== filtered_0 || $[63] !== snippetMap) {
|
|
493
|
-
t27 = {
|
|
494
|
-
filteredLogs: filtered_0,
|
|
495
|
-
snippets: snippetMap
|
|
496
|
-
};
|
|
497
|
-
$[62] = filtered_0;
|
|
498
|
-
$[63] = snippetMap;
|
|
499
|
-
$[64] = t27;
|
|
500
|
-
}
|
|
501
|
-
else {
|
|
502
|
-
t27 = $[64];
|
|
503
|
-
}
|
|
504
|
-
const { filteredLogs, snippets } = t27;
|
|
505
|
-
let t28;
|
|
506
|
-
bb1: {
|
|
507
|
-
if (agenticSearchState.status === "results" && agenticSearchState.results.length > 0) {
|
|
508
|
-
t28 = agenticSearchState.results;
|
|
509
|
-
break bb1;
|
|
510
|
-
}
|
|
511
|
-
t28 = filteredLogs;
|
|
512
|
-
}
|
|
513
|
-
const displayedLogs = t28;
|
|
514
|
-
const maxLabelWidth = Math.max(30, columns - 4);
|
|
515
|
-
let t29;
|
|
516
|
-
bb2: {
|
|
517
|
-
if (!isResumeWithRenameEnabled) {
|
|
518
|
-
let t30;
|
|
519
|
-
if ($[65] === Symbol.for("react.memo_cache_sentinel")) {
|
|
520
|
-
t30 = [];
|
|
521
|
-
$[65] = t30;
|
|
522
|
-
}
|
|
523
|
-
else {
|
|
524
|
-
t30 = $[65];
|
|
525
|
-
}
|
|
526
|
-
t29 = t30;
|
|
527
|
-
break bb2;
|
|
528
|
-
}
|
|
529
|
-
let t30;
|
|
530
|
-
if ($[66] !== displayedLogs || $[67] !== highlightColor || $[68] !== maxLabelWidth || $[69] !== showAllProjects || $[70] !== snippets) {
|
|
531
|
-
const sessionGroups = groupLogsBySessionId(displayedLogs);
|
|
532
|
-
t30 = Array.from(sessionGroups.entries()).map(t31 => {
|
|
533
|
-
const [sessionId, groupLogs] = t31;
|
|
534
|
-
const latestLog = groupLogs[0];
|
|
535
|
-
const indexInFiltered = displayedLogs.indexOf(latestLog);
|
|
536
|
-
const snippet_0 = snippets.get(latestLog);
|
|
537
|
-
const snippetStr = snippet_0 ? formatSnippet(snippet_0, highlightColor) : null;
|
|
538
|
-
if (groupLogs.length === 1) {
|
|
539
|
-
const metadata = buildLogMetadata(latestLog, {
|
|
540
|
-
showProjectPath: showAllProjects
|
|
541
|
-
});
|
|
542
|
-
return {
|
|
543
|
-
id: `log:${sessionId}:0`,
|
|
544
|
-
value: {
|
|
545
|
-
log: latestLog,
|
|
546
|
-
indexInFiltered
|
|
547
|
-
},
|
|
548
|
-
label: buildLogLabel(latestLog, maxLabelWidth),
|
|
549
|
-
description: snippetStr ? `${metadata}\n ${snippetStr}` : metadata,
|
|
550
|
-
dimDescription: true
|
|
551
|
-
};
|
|
552
|
-
}
|
|
553
|
-
const forkCount = groupLogs.length - 1;
|
|
554
|
-
const children = groupLogs.slice(1).map((log_8, index) => {
|
|
555
|
-
const childIndexInFiltered = displayedLogs.indexOf(log_8);
|
|
556
|
-
const childSnippet = snippets.get(log_8);
|
|
557
|
-
const childSnippetStr = childSnippet ? formatSnippet(childSnippet, highlightColor) : null;
|
|
558
|
-
const childMetadata = buildLogMetadata(log_8, {
|
|
559
|
-
isChild: true,
|
|
560
|
-
showProjectPath: showAllProjects
|
|
561
|
-
});
|
|
562
|
-
return {
|
|
563
|
-
id: `log:${sessionId}:${index + 1}`,
|
|
564
|
-
value: {
|
|
565
|
-
log: log_8,
|
|
566
|
-
indexInFiltered: childIndexInFiltered
|
|
567
|
-
},
|
|
568
|
-
label: buildLogLabel(log_8, maxLabelWidth, {
|
|
569
|
-
isChild: true
|
|
570
|
-
}),
|
|
571
|
-
description: childSnippetStr ? `${childMetadata}\n ${childSnippetStr}` : childMetadata,
|
|
572
|
-
dimDescription: true
|
|
573
|
-
};
|
|
574
|
-
});
|
|
575
|
-
const parentMetadata = buildLogMetadata(latestLog, {
|
|
576
|
-
showProjectPath: showAllProjects
|
|
577
|
-
});
|
|
578
|
-
return {
|
|
579
|
-
id: `group:${sessionId}`,
|
|
580
|
-
value: {
|
|
581
|
-
log: latestLog,
|
|
582
|
-
indexInFiltered
|
|
583
|
-
},
|
|
584
|
-
label: buildLogLabel(latestLog, maxLabelWidth, {
|
|
585
|
-
isGroupHeader: true,
|
|
586
|
-
forkCount
|
|
587
|
-
}),
|
|
588
|
-
description: snippetStr ? `${parentMetadata}\n ${snippetStr}` : parentMetadata,
|
|
589
|
-
dimDescription: true,
|
|
590
|
-
children
|
|
591
|
-
};
|
|
592
|
-
});
|
|
593
|
-
$[66] = displayedLogs;
|
|
594
|
-
$[67] = highlightColor;
|
|
595
|
-
$[68] = maxLabelWidth;
|
|
596
|
-
$[69] = showAllProjects;
|
|
597
|
-
$[70] = snippets;
|
|
598
|
-
$[71] = t30;
|
|
599
|
-
}
|
|
600
|
-
else {
|
|
601
|
-
t30 = $[71];
|
|
602
|
-
}
|
|
603
|
-
t29 = t30;
|
|
604
|
-
}
|
|
605
|
-
const treeNodes = t29;
|
|
606
|
-
let t30;
|
|
607
|
-
bb3: {
|
|
608
|
-
if (isResumeWithRenameEnabled) {
|
|
609
|
-
let t31;
|
|
610
|
-
if ($[72] === Symbol.for("react.memo_cache_sentinel")) {
|
|
611
|
-
t31 = [];
|
|
612
|
-
$[72] = t31;
|
|
613
|
-
}
|
|
614
|
-
else {
|
|
615
|
-
t31 = $[72];
|
|
616
|
-
}
|
|
617
|
-
t30 = t31;
|
|
618
|
-
break bb3;
|
|
619
|
-
}
|
|
620
|
-
let t31;
|
|
621
|
-
if ($[73] !== displayedLogs || $[74] !== highlightColor || $[75] !== maxLabelWidth || $[76] !== showAllProjects || $[77] !== snippets) {
|
|
622
|
-
let t32;
|
|
623
|
-
if ($[79] !== highlightColor || $[80] !== maxLabelWidth || $[81] !== showAllProjects || $[82] !== snippets) {
|
|
624
|
-
t32 = (log_9, index_0) => {
|
|
625
|
-
const rawSummary = getLogDisplayTitle(log_9);
|
|
626
|
-
const summaryWithSidechain = rawSummary + (log_9.isSidechain ? " (sidechain)" : "");
|
|
627
|
-
const summary = normalizeAndTruncateToWidth(summaryWithSidechain, maxLabelWidth);
|
|
628
|
-
const baseDescription = formatLogMetadata(log_9);
|
|
629
|
-
const projectSuffix = showAllProjects && log_9.projectPath ? ` · ${log_9.projectPath}` : "";
|
|
630
|
-
const snippet_1 = snippets.get(log_9);
|
|
631
|
-
const snippetStr_0 = snippet_1 ? formatSnippet(snippet_1, highlightColor) : null;
|
|
632
|
-
return {
|
|
633
|
-
label: summary,
|
|
634
|
-
description: snippetStr_0 ? `${baseDescription}${projectSuffix}\n ${snippetStr_0}` : baseDescription + projectSuffix,
|
|
635
|
-
dimDescription: true,
|
|
636
|
-
value: index_0.toString()
|
|
637
|
-
};
|
|
638
|
-
};
|
|
639
|
-
$[79] = highlightColor;
|
|
640
|
-
$[80] = maxLabelWidth;
|
|
641
|
-
$[81] = showAllProjects;
|
|
642
|
-
$[82] = snippets;
|
|
643
|
-
$[83] = t32;
|
|
644
|
-
}
|
|
645
|
-
else {
|
|
646
|
-
t32 = $[83];
|
|
647
|
-
}
|
|
648
|
-
t31 = displayedLogs.map(t32);
|
|
649
|
-
$[73] = displayedLogs;
|
|
650
|
-
$[74] = highlightColor;
|
|
651
|
-
$[75] = maxLabelWidth;
|
|
652
|
-
$[76] = showAllProjects;
|
|
653
|
-
$[77] = snippets;
|
|
654
|
-
$[78] = t31;
|
|
655
|
-
}
|
|
656
|
-
else {
|
|
657
|
-
t31 = $[78];
|
|
658
|
-
}
|
|
659
|
-
t30 = t31;
|
|
660
|
-
}
|
|
661
|
-
const flatOptions = t30;
|
|
662
|
-
const focusedLog = focusedNode?.value.log ?? null;
|
|
663
|
-
let t31;
|
|
664
|
-
if ($[84] !== displayedLogs || $[85] !== expandedGroupSessionIds || $[86] !== focusedLog) {
|
|
665
|
-
t31 = () => {
|
|
666
|
-
if (!isResumeWithRenameEnabled || !focusedLog) {
|
|
667
|
-
return "";
|
|
668
|
-
}
|
|
669
|
-
const sessionId_0 = getSessionIdFromLog(focusedLog);
|
|
670
|
-
if (!sessionId_0) {
|
|
671
|
-
return "";
|
|
672
|
-
}
|
|
673
|
-
const sessionLogs = displayedLogs.filter(log_10 => getSessionIdFromLog(log_10) === sessionId_0);
|
|
674
|
-
const hasMultipleLogs = sessionLogs.length > 1;
|
|
675
|
-
if (!hasMultipleLogs) {
|
|
676
|
-
return "";
|
|
677
|
-
}
|
|
678
|
-
const isExpanded = expandedGroupSessionIds.has(sessionId_0);
|
|
679
|
-
const isChildNode = sessionLogs.indexOf(focusedLog) > 0;
|
|
680
|
-
if (isChildNode) {
|
|
681
|
-
return "\u2190 to collapse";
|
|
682
|
-
}
|
|
683
|
-
return isExpanded ? "\u2190 to collapse" : "\u2192 to expand";
|
|
684
|
-
};
|
|
685
|
-
$[84] = displayedLogs;
|
|
686
|
-
$[85] = expandedGroupSessionIds;
|
|
687
|
-
$[86] = focusedLog;
|
|
688
|
-
$[87] = t31;
|
|
689
|
-
}
|
|
690
|
-
else {
|
|
691
|
-
t31 = $[87];
|
|
692
|
-
}
|
|
693
|
-
const getExpandCollapseHint = t31;
|
|
694
|
-
let t32;
|
|
695
|
-
if ($[88] !== focusedLog || $[89] !== onLogsChanged || $[90] !== renameValue) {
|
|
696
|
-
t32 = async () => {
|
|
697
|
-
const sessionId_1 = focusedLog ? getSessionIdFromLog(focusedLog) : undefined;
|
|
698
|
-
if (!focusedLog || !sessionId_1) {
|
|
699
|
-
setViewMode("list");
|
|
700
|
-
setRenameValue("");
|
|
701
|
-
return;
|
|
702
|
-
}
|
|
703
|
-
if (renameValue.trim()) {
|
|
704
|
-
await saveCustomTitle(sessionId_1, renameValue.trim(), focusedLog.fullPath);
|
|
705
|
-
if (isResumeWithRenameEnabled && onLogsChanged) {
|
|
706
|
-
onLogsChanged();
|
|
707
|
-
}
|
|
708
|
-
}
|
|
709
|
-
setViewMode("list");
|
|
710
|
-
setRenameValue("");
|
|
711
|
-
};
|
|
712
|
-
$[88] = focusedLog;
|
|
713
|
-
$[89] = onLogsChanged;
|
|
714
|
-
$[90] = renameValue;
|
|
715
|
-
$[91] = t32;
|
|
716
|
-
}
|
|
717
|
-
else {
|
|
718
|
-
t32 = $[91];
|
|
719
|
-
}
|
|
720
|
-
const handleRenameSubmit = t32;
|
|
721
|
-
let t33;
|
|
722
|
-
if ($[92] === Symbol.for("react.memo_cache_sentinel")) {
|
|
723
|
-
t33 = () => {
|
|
724
|
-
setViewMode("list");
|
|
725
|
-
logEvent("tengu_session_search_toggled", {
|
|
726
|
-
enabled: false
|
|
727
|
-
});
|
|
728
|
-
};
|
|
729
|
-
$[92] = t33;
|
|
730
|
-
}
|
|
731
|
-
else {
|
|
732
|
-
t33 = $[92];
|
|
733
|
-
}
|
|
734
|
-
const exitSearchMode = t33;
|
|
735
|
-
let t34;
|
|
736
|
-
if ($[93] === Symbol.for("react.memo_cache_sentinel")) {
|
|
737
|
-
t34 = () => {
|
|
738
|
-
setViewMode("search");
|
|
739
|
-
logEvent("tengu_session_search_toggled", {
|
|
740
|
-
enabled: true
|
|
741
|
-
});
|
|
742
|
-
};
|
|
743
|
-
$[93] = t34;
|
|
744
|
-
}
|
|
745
|
-
else {
|
|
746
|
-
t34 = $[93];
|
|
747
|
-
}
|
|
748
|
-
const enterSearchMode = t34;
|
|
749
|
-
let t35;
|
|
750
|
-
if ($[94] !== logs || $[95] !== onAgenticSearch || $[96] !== searchQuery) {
|
|
751
|
-
t35 = async () => {
|
|
752
|
-
if (!searchQuery.trim() || !onAgenticSearch || true) {
|
|
753
|
-
return;
|
|
754
|
-
}
|
|
755
|
-
agenticSearchAbortRef.current?.abort();
|
|
756
|
-
const abortController = new AbortController();
|
|
757
|
-
agenticSearchAbortRef.current = abortController;
|
|
758
|
-
setAgenticSearchState({
|
|
759
|
-
status: "searching"
|
|
760
|
-
});
|
|
761
|
-
logEvent("tengu_agentic_search_started", {
|
|
762
|
-
query_length: searchQuery.length
|
|
763
|
-
});
|
|
764
|
-
;
|
|
765
|
-
try {
|
|
766
|
-
const results_0 = await onAgenticSearch(searchQuery, logs, abortController.signal);
|
|
767
|
-
if (abortController.signal.aborted) {
|
|
768
|
-
return;
|
|
769
|
-
}
|
|
770
|
-
setAgenticSearchState({
|
|
771
|
-
status: "results",
|
|
772
|
-
results: results_0,
|
|
773
|
-
query: searchQuery
|
|
774
|
-
});
|
|
775
|
-
logEvent("tengu_agentic_search_completed", {
|
|
776
|
-
query_length: searchQuery.length,
|
|
777
|
-
results_count: results_0.length
|
|
778
|
-
});
|
|
779
|
-
}
|
|
780
|
-
catch (t36) {
|
|
781
|
-
const error = t36;
|
|
782
|
-
if (abortController.signal.aborted) {
|
|
783
|
-
return;
|
|
784
|
-
}
|
|
785
|
-
setAgenticSearchState({
|
|
786
|
-
status: "error",
|
|
787
|
-
message: error instanceof Error ? error.message : "Search failed"
|
|
788
|
-
});
|
|
789
|
-
logEvent("tengu_agentic_search_error", {
|
|
790
|
-
query_length: searchQuery.length
|
|
791
|
-
});
|
|
792
|
-
}
|
|
793
|
-
};
|
|
794
|
-
$[94] = logs;
|
|
795
|
-
$[95] = onAgenticSearch;
|
|
796
|
-
$[96] = searchQuery;
|
|
797
|
-
$[97] = t35;
|
|
798
|
-
}
|
|
799
|
-
else {
|
|
800
|
-
t35 = $[97];
|
|
801
|
-
}
|
|
802
|
-
const handleAgenticSearch = t35;
|
|
803
|
-
let t36;
|
|
804
|
-
if ($[98] !== agenticSearchState.query || $[99] !== agenticSearchState.status || $[100] !== searchQuery) {
|
|
805
|
-
t36 = () => {
|
|
806
|
-
if (agenticSearchState.status !== "idle" && agenticSearchState.status !== "searching") {
|
|
807
|
-
if (agenticSearchState.status === "results" && agenticSearchState.query !== searchQuery || agenticSearchState.status === "error") {
|
|
808
|
-
setAgenticSearchState({
|
|
809
|
-
status: "idle"
|
|
810
|
-
});
|
|
811
|
-
}
|
|
812
|
-
}
|
|
813
|
-
};
|
|
814
|
-
$[98] = agenticSearchState.query;
|
|
815
|
-
$[99] = agenticSearchState.status;
|
|
816
|
-
$[100] = searchQuery;
|
|
817
|
-
$[101] = t36;
|
|
818
|
-
}
|
|
819
|
-
else {
|
|
820
|
-
t36 = $[101];
|
|
821
|
-
}
|
|
822
|
-
let t37;
|
|
823
|
-
if ($[102] !== agenticSearchState || $[103] !== searchQuery) {
|
|
824
|
-
t37 = [searchQuery, agenticSearchState];
|
|
825
|
-
$[102] = agenticSearchState;
|
|
826
|
-
$[103] = searchQuery;
|
|
827
|
-
$[104] = t37;
|
|
828
|
-
}
|
|
829
|
-
else {
|
|
830
|
-
t37 = $[104];
|
|
831
|
-
}
|
|
832
|
-
React.useEffect(t36, t37);
|
|
833
|
-
let t38;
|
|
834
|
-
let t39;
|
|
835
|
-
if ($[105] === Symbol.for("react.memo_cache_sentinel")) {
|
|
836
|
-
t38 = () => () => {
|
|
837
|
-
agenticSearchAbortRef.current?.abort();
|
|
838
|
-
};
|
|
839
|
-
t39 = [];
|
|
840
|
-
$[105] = t38;
|
|
841
|
-
$[106] = t39;
|
|
842
|
-
}
|
|
843
|
-
else {
|
|
844
|
-
t38 = $[105];
|
|
845
|
-
t39 = $[106];
|
|
846
|
-
}
|
|
847
|
-
React.useEffect(t38, t39);
|
|
848
|
-
const prevAgenticStatusRef = React.useRef(agenticSearchState.status);
|
|
849
|
-
let t40;
|
|
850
|
-
if ($[107] !== agenticSearchState.status || $[108] !== displayedLogs[0] || $[109] !== displayedLogs.length || $[110] !== treeNodes) {
|
|
851
|
-
t40 = () => {
|
|
852
|
-
const prevStatus = prevAgenticStatusRef.current;
|
|
853
|
-
prevAgenticStatusRef.current = agenticSearchState.status;
|
|
854
|
-
if (prevStatus === "searching" && agenticSearchState.status === "results") {
|
|
855
|
-
if (isResumeWithRenameEnabled && treeNodes.length > 0) {
|
|
856
|
-
setFocusedNode(treeNodes[0]);
|
|
857
|
-
}
|
|
858
|
-
else {
|
|
859
|
-
if (!isResumeWithRenameEnabled && displayedLogs.length > 0) {
|
|
860
|
-
const firstLog = displayedLogs[0];
|
|
861
|
-
setFocusedNode({
|
|
862
|
-
id: "0",
|
|
863
|
-
value: {
|
|
864
|
-
log: firstLog,
|
|
865
|
-
indexInFiltered: 0
|
|
866
|
-
},
|
|
867
|
-
label: ""
|
|
868
|
-
});
|
|
869
|
-
}
|
|
870
|
-
}
|
|
871
|
-
}
|
|
872
|
-
};
|
|
873
|
-
$[107] = agenticSearchState.status;
|
|
874
|
-
$[108] = displayedLogs[0];
|
|
875
|
-
$[109] = displayedLogs.length;
|
|
876
|
-
$[110] = treeNodes;
|
|
877
|
-
$[111] = t40;
|
|
878
|
-
}
|
|
879
|
-
else {
|
|
880
|
-
t40 = $[111];
|
|
881
|
-
}
|
|
882
|
-
let t41;
|
|
883
|
-
if ($[112] !== agenticSearchState.status || $[113] !== displayedLogs || $[114] !== treeNodes) {
|
|
884
|
-
t41 = [agenticSearchState.status, isResumeWithRenameEnabled, treeNodes, displayedLogs];
|
|
885
|
-
$[112] = agenticSearchState.status;
|
|
886
|
-
$[113] = displayedLogs;
|
|
887
|
-
$[114] = treeNodes;
|
|
888
|
-
$[115] = t41;
|
|
889
|
-
}
|
|
890
|
-
else {
|
|
891
|
-
t41 = $[115];
|
|
892
|
-
}
|
|
893
|
-
React.useEffect(t40, t41);
|
|
894
|
-
let t42;
|
|
895
|
-
if ($[116] !== displayedLogs) {
|
|
896
|
-
t42 = value => {
|
|
897
|
-
const index_1 = parseInt(value, 10);
|
|
898
|
-
const log_11 = displayedLogs[index_1];
|
|
899
|
-
if (!log_11 || prevFocusedIdRef.current === index_1.toString()) {
|
|
900
|
-
return;
|
|
901
|
-
}
|
|
902
|
-
prevFocusedIdRef.current = index_1.toString();
|
|
903
|
-
setFocusedNode({
|
|
904
|
-
id: index_1.toString(),
|
|
905
|
-
value: {
|
|
906
|
-
log: log_11,
|
|
907
|
-
indexInFiltered: index_1
|
|
908
|
-
},
|
|
909
|
-
label: ""
|
|
910
|
-
});
|
|
911
|
-
setFocusedIndex(index_1 + 1);
|
|
912
|
-
};
|
|
913
|
-
$[116] = displayedLogs;
|
|
914
|
-
$[117] = t42;
|
|
915
|
-
}
|
|
916
|
-
else {
|
|
917
|
-
t42 = $[117];
|
|
918
|
-
}
|
|
919
|
-
const handleFlatOptionsSelectFocus = t42;
|
|
920
|
-
let t43;
|
|
921
|
-
if ($[118] !== displayedLogs) {
|
|
922
|
-
t43 = node => {
|
|
923
|
-
setFocusedNode(node);
|
|
924
|
-
const index_2 = displayedLogs.findIndex(log_12 => getSessionIdFromLog(log_12) === getSessionIdFromLog(node.value.log));
|
|
925
|
-
if (index_2 >= 0) {
|
|
926
|
-
setFocusedIndex(index_2 + 1);
|
|
927
|
-
}
|
|
928
|
-
};
|
|
929
|
-
$[118] = displayedLogs;
|
|
930
|
-
$[119] = t43;
|
|
931
|
-
}
|
|
932
|
-
else {
|
|
933
|
-
t43 = $[119];
|
|
934
|
-
}
|
|
935
|
-
const handleTreeSelectFocus = t43;
|
|
936
|
-
let t44;
|
|
937
|
-
if ($[120] === Symbol.for("react.memo_cache_sentinel")) {
|
|
938
|
-
t44 = () => {
|
|
939
|
-
agenticSearchAbortRef.current?.abort();
|
|
940
|
-
setAgenticSearchState({
|
|
941
|
-
status: "idle"
|
|
942
|
-
});
|
|
943
|
-
logEvent("tengu_agentic_search_cancelled", {});
|
|
944
|
-
};
|
|
945
|
-
$[120] = t44;
|
|
946
|
-
}
|
|
947
|
-
else {
|
|
948
|
-
t44 = $[120];
|
|
949
|
-
}
|
|
950
|
-
const t45 = viewMode !== "preview" && agenticSearchState.status === "searching";
|
|
951
|
-
let t46;
|
|
952
|
-
if ($[121] !== t45) {
|
|
953
|
-
t46 = {
|
|
954
|
-
context: "Confirmation",
|
|
955
|
-
isActive: t45
|
|
956
|
-
};
|
|
957
|
-
$[121] = t45;
|
|
958
|
-
$[122] = t46;
|
|
959
|
-
}
|
|
960
|
-
else {
|
|
961
|
-
t46 = $[122];
|
|
962
|
-
}
|
|
963
|
-
useKeybinding("confirm:no", t44, t46);
|
|
964
|
-
let t47;
|
|
965
|
-
if ($[123] === Symbol.for("react.memo_cache_sentinel")) {
|
|
966
|
-
t47 = () => {
|
|
967
|
-
setViewMode("list");
|
|
968
|
-
setRenameValue("");
|
|
969
|
-
};
|
|
970
|
-
$[123] = t47;
|
|
971
|
-
}
|
|
972
|
-
else {
|
|
973
|
-
t47 = $[123];
|
|
974
|
-
}
|
|
975
|
-
const t48 = viewMode === "rename" && agenticSearchState.status !== "searching";
|
|
976
|
-
let t49;
|
|
977
|
-
if ($[124] !== t48) {
|
|
978
|
-
t49 = {
|
|
979
|
-
context: "Settings",
|
|
980
|
-
isActive: t48
|
|
981
|
-
};
|
|
982
|
-
$[124] = t48;
|
|
983
|
-
$[125] = t49;
|
|
984
|
-
}
|
|
985
|
-
else {
|
|
986
|
-
t49 = $[125];
|
|
987
|
-
}
|
|
988
|
-
useKeybinding("confirm:no", t47, t49);
|
|
989
|
-
let t50;
|
|
990
|
-
if ($[126] !== onCancel || $[127] !== setSearchQuery) {
|
|
991
|
-
t50 = () => {
|
|
992
|
-
setSearchQuery("");
|
|
993
|
-
setIsAgenticSearchOptionFocused(false);
|
|
994
|
-
onCancel?.();
|
|
995
|
-
};
|
|
996
|
-
$[126] = onCancel;
|
|
997
|
-
$[127] = setSearchQuery;
|
|
998
|
-
$[128] = t50;
|
|
999
|
-
}
|
|
1000
|
-
else {
|
|
1001
|
-
t50 = $[128];
|
|
1002
|
-
}
|
|
1003
|
-
const t51 = viewMode !== "preview" && viewMode !== "rename" && viewMode !== "search" && isAgenticSearchOptionFocused && agenticSearchState.status !== "searching";
|
|
1004
|
-
let t52;
|
|
1005
|
-
if ($[129] !== t51) {
|
|
1006
|
-
t52 = {
|
|
1007
|
-
context: "Confirmation",
|
|
1008
|
-
isActive: t51
|
|
1009
|
-
};
|
|
1010
|
-
$[129] = t51;
|
|
1011
|
-
$[130] = t52;
|
|
1012
|
-
}
|
|
1013
|
-
else {
|
|
1014
|
-
t52 = $[130];
|
|
1015
|
-
}
|
|
1016
|
-
useKeybinding("confirm:no", t50, t52);
|
|
1017
|
-
let t53;
|
|
1018
|
-
if ($[131] !== agenticSearchState.status || $[132] !== branchFilterEnabled || $[133] !== focusedLog || $[134] !== handleAgenticSearch || $[135] !== hasMultipleWorktrees || $[136] !== hasTags || $[137] !== isAgenticSearchOptionFocused || $[138] !== onAgenticSearch || $[139] !== onToggleAllProjects || $[140] !== searchQuery || $[141] !== setSearchQuery || $[142] !== showAllProjects || $[143] !== showAllWorktrees || $[144] !== tagTabs || $[145] !== uniqueTags || $[146] !== viewMode) {
|
|
1019
|
-
t53 = (input, key) => {
|
|
1020
|
-
if (viewMode === "preview") {
|
|
1021
|
-
return;
|
|
1022
|
-
}
|
|
1023
|
-
if (agenticSearchState.status === "searching") {
|
|
1024
|
-
return;
|
|
1025
|
-
}
|
|
1026
|
-
if (viewMode === "rename") { }
|
|
1027
|
-
else {
|
|
1028
|
-
if (viewMode === "search") {
|
|
1029
|
-
if (input.toLowerCase() === "n" && key.ctrl) {
|
|
1030
|
-
exitSearchMode();
|
|
1031
|
-
}
|
|
1032
|
-
else {
|
|
1033
|
-
if (key.return || key.downArrow) {
|
|
1034
|
-
if (searchQuery.trim() && onAgenticSearch && false && agenticSearchState.status !== "results") {
|
|
1035
|
-
setIsAgenticSearchOptionFocused(true);
|
|
1036
|
-
}
|
|
1037
|
-
}
|
|
1038
|
-
}
|
|
1039
|
-
}
|
|
1040
|
-
else {
|
|
1041
|
-
if (isAgenticSearchOptionFocused) {
|
|
1042
|
-
if (key.return) {
|
|
1043
|
-
handleAgenticSearch();
|
|
1044
|
-
setIsAgenticSearchOptionFocused(false);
|
|
1045
|
-
return;
|
|
1046
|
-
}
|
|
1047
|
-
else {
|
|
1048
|
-
if (key.downArrow) {
|
|
1049
|
-
setIsAgenticSearchOptionFocused(false);
|
|
1050
|
-
return;
|
|
1051
|
-
}
|
|
1052
|
-
else {
|
|
1053
|
-
if (key.upArrow) {
|
|
1054
|
-
setViewMode("search");
|
|
1055
|
-
setIsAgenticSearchOptionFocused(false);
|
|
1056
|
-
return;
|
|
1057
|
-
}
|
|
1058
|
-
}
|
|
1059
|
-
}
|
|
1060
|
-
}
|
|
1061
|
-
if (hasTags && key.tab) {
|
|
1062
|
-
const offset = key.shift ? -1 : 1;
|
|
1063
|
-
setSelectedTagIndex(prev => {
|
|
1064
|
-
const current = prev < tagTabs.length ? prev : 0;
|
|
1065
|
-
const newIndex = (current + tagTabs.length + offset) % tagTabs.length;
|
|
1066
|
-
const newTab = tagTabs[newIndex];
|
|
1067
|
-
logEvent("tengu_session_tag_filter_changed", {
|
|
1068
|
-
is_all: newTab === "All",
|
|
1069
|
-
tag_count: uniqueTags.length
|
|
1070
|
-
});
|
|
1071
|
-
return newIndex;
|
|
1072
|
-
});
|
|
1073
|
-
return;
|
|
1074
|
-
}
|
|
1075
|
-
const keyIsNotCtrlOrMeta = !key.ctrl && !key.meta;
|
|
1076
|
-
const lowerInput = input.toLowerCase();
|
|
1077
|
-
if (lowerInput === "a" && key.ctrl && onToggleAllProjects) {
|
|
1078
|
-
onToggleAllProjects();
|
|
1079
|
-
logEvent("tengu_session_all_projects_toggled", {
|
|
1080
|
-
enabled: !showAllProjects
|
|
1081
|
-
});
|
|
1082
|
-
}
|
|
1083
|
-
else {
|
|
1084
|
-
if (lowerInput === "b" && key.ctrl) {
|
|
1085
|
-
const newEnabled = !branchFilterEnabled;
|
|
1086
|
-
setBranchFilterEnabled(newEnabled);
|
|
1087
|
-
logEvent("tengu_session_branch_filter_toggled", {
|
|
1088
|
-
enabled: newEnabled
|
|
1089
|
-
});
|
|
1090
|
-
}
|
|
1091
|
-
else {
|
|
1092
|
-
if (lowerInput === "w" && key.ctrl && hasMultipleWorktrees) {
|
|
1093
|
-
const newValue = !showAllWorktrees;
|
|
1094
|
-
setShowAllWorktrees(newValue);
|
|
1095
|
-
logEvent("tengu_session_worktree_filter_toggled", {
|
|
1096
|
-
enabled: newValue
|
|
1097
|
-
});
|
|
1098
|
-
}
|
|
1099
|
-
else {
|
|
1100
|
-
if (lowerInput === "/" && keyIsNotCtrlOrMeta) {
|
|
1101
|
-
setViewMode("search");
|
|
1102
|
-
logEvent("tengu_session_search_toggled", {
|
|
1103
|
-
enabled: true
|
|
1104
|
-
});
|
|
1105
|
-
}
|
|
1106
|
-
else {
|
|
1107
|
-
if (lowerInput === "r" && key.ctrl && focusedLog) {
|
|
1108
|
-
setViewMode("rename");
|
|
1109
|
-
setRenameValue("");
|
|
1110
|
-
logEvent("tengu_session_rename_started", {});
|
|
1111
|
-
}
|
|
1112
|
-
else {
|
|
1113
|
-
if (lowerInput === "v" && key.ctrl && focusedLog) {
|
|
1114
|
-
setPreviewLog(focusedLog);
|
|
1115
|
-
setViewMode("preview");
|
|
1116
|
-
logEvent("tengu_session_preview_opened", {
|
|
1117
|
-
messageCount: focusedLog.messageCount
|
|
1118
|
-
});
|
|
1119
|
-
}
|
|
1120
|
-
else {
|
|
1121
|
-
if (focusedLog && keyIsNotCtrlOrMeta && input.length > 0 && !/^\s+$/.test(input)) {
|
|
1122
|
-
setViewMode("search");
|
|
1123
|
-
setSearchQuery(input);
|
|
1124
|
-
logEvent("tengu_session_search_toggled", {
|
|
1125
|
-
enabled: true
|
|
1126
|
-
});
|
|
1127
|
-
}
|
|
1128
|
-
}
|
|
1129
|
-
}
|
|
1130
|
-
}
|
|
1131
|
-
}
|
|
1132
|
-
}
|
|
1133
|
-
}
|
|
1134
|
-
}
|
|
1135
|
-
}
|
|
1136
|
-
};
|
|
1137
|
-
$[131] = agenticSearchState.status;
|
|
1138
|
-
$[132] = branchFilterEnabled;
|
|
1139
|
-
$[133] = focusedLog;
|
|
1140
|
-
$[134] = handleAgenticSearch;
|
|
1141
|
-
$[135] = hasMultipleWorktrees;
|
|
1142
|
-
$[136] = hasTags;
|
|
1143
|
-
$[137] = isAgenticSearchOptionFocused;
|
|
1144
|
-
$[138] = onAgenticSearch;
|
|
1145
|
-
$[139] = onToggleAllProjects;
|
|
1146
|
-
$[140] = searchQuery;
|
|
1147
|
-
$[141] = setSearchQuery;
|
|
1148
|
-
$[142] = showAllProjects;
|
|
1149
|
-
$[143] = showAllWorktrees;
|
|
1150
|
-
$[144] = tagTabs;
|
|
1151
|
-
$[145] = uniqueTags;
|
|
1152
|
-
$[146] = viewMode;
|
|
1153
|
-
$[147] = t53;
|
|
1154
|
-
}
|
|
1155
|
-
else {
|
|
1156
|
-
t53 = $[147];
|
|
1157
|
-
}
|
|
1158
|
-
let t54;
|
|
1159
|
-
if ($[148] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1160
|
-
t54 = {
|
|
1161
|
-
isActive: true
|
|
1162
|
-
};
|
|
1163
|
-
$[148] = t54;
|
|
1164
|
-
}
|
|
1165
|
-
else {
|
|
1166
|
-
t54 = $[148];
|
|
1167
|
-
}
|
|
1168
|
-
useInput(t53, t54);
|
|
1169
|
-
let filterIndicators;
|
|
1170
|
-
if ($[149] !== branchFilterEnabled || $[150] !== currentBranch || $[151] !== hasMultipleWorktrees || $[152] !== showAllWorktrees) {
|
|
1171
|
-
filterIndicators = [];
|
|
1172
|
-
if (branchFilterEnabled && currentBranch) {
|
|
1173
|
-
filterIndicators.push(currentBranch);
|
|
1174
|
-
}
|
|
1175
|
-
if (hasMultipleWorktrees && !showAllWorktrees) {
|
|
1176
|
-
filterIndicators.push("current worktree");
|
|
1177
|
-
}
|
|
1178
|
-
$[149] = branchFilterEnabled;
|
|
1179
|
-
$[150] = currentBranch;
|
|
1180
|
-
$[151] = hasMultipleWorktrees;
|
|
1181
|
-
$[152] = showAllWorktrees;
|
|
1182
|
-
$[153] = filterIndicators;
|
|
1183
|
-
}
|
|
1184
|
-
else {
|
|
1185
|
-
filterIndicators = $[153];
|
|
1186
|
-
}
|
|
1187
|
-
const showAdditionalFilterLine = filterIndicators.length > 0 && viewMode !== "search";
|
|
1188
|
-
const headerLines = 8 + (showAdditionalFilterLine ? 1 : 0) + tagTabsLines;
|
|
1189
|
-
const visibleCount = Math.max(1, Math.floor((maxHeight - headerLines - 2) / 3));
|
|
1190
|
-
let t55;
|
|
1191
|
-
let t56;
|
|
1192
|
-
if ($[154] !== displayedLogs.length || $[155] !== focusedIndex || $[156] !== onLoadMore || $[157] !== visibleCount) {
|
|
1193
|
-
t55 = () => {
|
|
1194
|
-
if (!onLoadMore) {
|
|
1195
|
-
return;
|
|
1196
|
-
}
|
|
1197
|
-
const buffer = visibleCount * 2;
|
|
1198
|
-
if (focusedIndex + buffer >= displayedLogs.length) {
|
|
1199
|
-
onLoadMore(visibleCount * 3);
|
|
1200
|
-
}
|
|
1201
|
-
};
|
|
1202
|
-
t56 = [focusedIndex, visibleCount, displayedLogs.length, onLoadMore];
|
|
1203
|
-
$[154] = displayedLogs.length;
|
|
1204
|
-
$[155] = focusedIndex;
|
|
1205
|
-
$[156] = onLoadMore;
|
|
1206
|
-
$[157] = visibleCount;
|
|
1207
|
-
$[158] = t55;
|
|
1208
|
-
$[159] = t56;
|
|
1209
|
-
}
|
|
1210
|
-
else {
|
|
1211
|
-
t55 = $[158];
|
|
1212
|
-
t56 = $[159];
|
|
1213
|
-
}
|
|
1214
|
-
React.useEffect(t55, t56);
|
|
1215
|
-
if (logs.length === 0) {
|
|
1216
|
-
return null;
|
|
1217
|
-
}
|
|
1218
|
-
if (viewMode === "preview" && previewLog && isResumeWithRenameEnabled) {
|
|
1219
|
-
let t57;
|
|
1220
|
-
if ($[160] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1221
|
-
t57 = () => {
|
|
1222
|
-
setViewMode("list");
|
|
1223
|
-
setPreviewLog(null);
|
|
1224
|
-
};
|
|
1225
|
-
$[160] = t57;
|
|
1226
|
-
}
|
|
1227
|
-
else {
|
|
1228
|
-
t57 = $[160];
|
|
1229
|
-
}
|
|
1230
|
-
let t58;
|
|
1231
|
-
if ($[161] !== onSelect || $[162] !== previewLog) {
|
|
1232
|
-
t58 = _jsx(SessionPreview, { log: previewLog, onExit: t57, onSelect: onSelect });
|
|
1233
|
-
$[161] = onSelect;
|
|
1234
|
-
$[162] = previewLog;
|
|
1235
|
-
$[163] = t58;
|
|
1236
|
-
}
|
|
1237
|
-
else {
|
|
1238
|
-
t58 = $[163];
|
|
1239
|
-
}
|
|
1240
|
-
return t58;
|
|
1241
|
-
}
|
|
1242
|
-
const t57 = maxHeight - 1;
|
|
1243
|
-
let t58;
|
|
1244
|
-
if ($[164] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1245
|
-
t58 = _jsx(Box, { flexShrink: 0, children: _jsx(Divider, { color: "suggestion" }) });
|
|
1246
|
-
$[164] = t58;
|
|
1247
|
-
}
|
|
1248
|
-
else {
|
|
1249
|
-
t58 = $[164];
|
|
1250
|
-
}
|
|
1251
|
-
let t59;
|
|
1252
|
-
if ($[165] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1253
|
-
t59 = _jsx(Box, { flexShrink: 0, children: _jsx(Text, { children: " " }) });
|
|
1254
|
-
$[165] = t59;
|
|
1255
|
-
}
|
|
1256
|
-
else {
|
|
1257
|
-
t59 = $[165];
|
|
1258
|
-
}
|
|
1259
|
-
let t60;
|
|
1260
|
-
if ($[166] !== columns || $[167] !== displayedLogs.length || $[168] !== effectiveTagIndex || $[169] !== focusedIndex || $[170] !== hasTags || $[171] !== showAllProjects || $[172] !== tagTabs || $[173] !== viewMode || $[174] !== visibleCount) {
|
|
1261
|
-
t60 = hasTags ? _jsx(TagTabs, { tabs: tagTabs, selectedIndex: effectiveTagIndex, availableWidth: columns, showAllProjects: showAllProjects }) : _jsx(Box, { flexShrink: 0, children: _jsxs(Text, { bold: true, color: "suggestion", children: ["Resume Session", viewMode === "list" && displayedLogs.length > visibleCount && _jsxs(Text, { dimColor: true, children: [" ", "(", focusedIndex, " of ", displayedLogs.length, ")"] })] }) });
|
|
1262
|
-
$[166] = columns;
|
|
1263
|
-
$[167] = displayedLogs.length;
|
|
1264
|
-
$[168] = effectiveTagIndex;
|
|
1265
|
-
$[169] = focusedIndex;
|
|
1266
|
-
$[170] = hasTags;
|
|
1267
|
-
$[171] = showAllProjects;
|
|
1268
|
-
$[172] = tagTabs;
|
|
1269
|
-
$[173] = viewMode;
|
|
1270
|
-
$[174] = visibleCount;
|
|
1271
|
-
$[175] = t60;
|
|
1272
|
-
}
|
|
1273
|
-
else {
|
|
1274
|
-
t60 = $[175];
|
|
1275
|
-
}
|
|
1276
|
-
const t61 = viewMode === "search";
|
|
1277
|
-
let t62;
|
|
1278
|
-
if ($[176] !== isTerminalFocused || $[177] !== searchCursorOffset || $[178] !== searchQuery || $[179] !== t61) {
|
|
1279
|
-
t62 = _jsx(SearchBox, { query: searchQuery, isFocused: t61, isTerminalFocused: isTerminalFocused, cursorOffset: searchCursorOffset });
|
|
1280
|
-
$[176] = isTerminalFocused;
|
|
1281
|
-
$[177] = searchCursorOffset;
|
|
1282
|
-
$[178] = searchQuery;
|
|
1283
|
-
$[179] = t61;
|
|
1284
|
-
$[180] = t62;
|
|
1285
|
-
}
|
|
1286
|
-
else {
|
|
1287
|
-
t62 = $[180];
|
|
1288
|
-
}
|
|
1289
|
-
let t63;
|
|
1290
|
-
if ($[181] !== filterIndicators || $[182] !== viewMode) {
|
|
1291
|
-
t63 = filterIndicators.length > 0 && viewMode !== "search" && _jsx(Box, { flexShrink: 0, paddingLeft: 2, children: _jsx(Text, { dimColor: true, children: _jsx(Byline, { children: filterIndicators }) }) });
|
|
1292
|
-
$[181] = filterIndicators;
|
|
1293
|
-
$[182] = viewMode;
|
|
1294
|
-
$[183] = t63;
|
|
1295
|
-
}
|
|
1296
|
-
else {
|
|
1297
|
-
t63 = $[183];
|
|
1298
|
-
}
|
|
1299
|
-
let t64;
|
|
1300
|
-
if ($[184] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1301
|
-
t64 = _jsx(Box, { flexShrink: 0, children: _jsx(Text, { children: " " }) });
|
|
1302
|
-
$[184] = t64;
|
|
1303
|
-
}
|
|
1304
|
-
else {
|
|
1305
|
-
t64 = $[184];
|
|
1306
|
-
}
|
|
1307
|
-
let t65;
|
|
1308
|
-
if ($[185] !== agenticSearchState.status) {
|
|
1309
|
-
t65 = agenticSearchState.status === "searching" && _jsxs(Box, { paddingLeft: 1, flexShrink: 0, children: [_jsx(Spinner, {}), _jsx(Text, { children: " Searching\u2026" })] });
|
|
1310
|
-
$[185] = agenticSearchState.status;
|
|
1311
|
-
$[186] = t65;
|
|
1312
|
-
}
|
|
1313
|
-
else {
|
|
1314
|
-
t65 = $[186];
|
|
1315
|
-
}
|
|
1316
|
-
let t66;
|
|
1317
|
-
if ($[187] !== agenticSearchState.results || $[188] !== agenticSearchState.status) {
|
|
1318
|
-
t66 = agenticSearchState.status === "results" && agenticSearchState.results.length > 0 && _jsx(Box, { paddingLeft: 1, marginBottom: 1, flexShrink: 0, children: _jsx(Text, { dimColor: true, italic: true, children: "Claude found these results:" }) });
|
|
1319
|
-
$[187] = agenticSearchState.results;
|
|
1320
|
-
$[188] = agenticSearchState.status;
|
|
1321
|
-
$[189] = t66;
|
|
1322
|
-
}
|
|
1323
|
-
else {
|
|
1324
|
-
t66 = $[189];
|
|
1325
|
-
}
|
|
1326
|
-
let t67;
|
|
1327
|
-
if ($[190] !== agenticSearchState.results || $[191] !== agenticSearchState.status || $[192] !== filteredLogs) {
|
|
1328
|
-
t67 = agenticSearchState.status === "results" && agenticSearchState.results.length === 0 && filteredLogs.length === 0 && _jsx(Box, { paddingLeft: 1, marginBottom: 1, flexShrink: 0, children: _jsx(Text, { dimColor: true, italic: true, children: "No matching sessions found." }) });
|
|
1329
|
-
$[190] = agenticSearchState.results;
|
|
1330
|
-
$[191] = agenticSearchState.status;
|
|
1331
|
-
$[192] = filteredLogs;
|
|
1332
|
-
$[193] = t67;
|
|
1333
|
-
}
|
|
1334
|
-
else {
|
|
1335
|
-
t67 = $[193];
|
|
1336
|
-
}
|
|
1337
|
-
let t68;
|
|
1338
|
-
if ($[194] !== agenticSearchState.status || $[195] !== filteredLogs) {
|
|
1339
|
-
t68 = agenticSearchState.status === "error" && filteredLogs.length === 0 && _jsx(Box, { paddingLeft: 1, marginBottom: 1, flexShrink: 0, children: _jsx(Text, { dimColor: true, italic: true, children: "No matching sessions found." }) });
|
|
1340
|
-
$[194] = agenticSearchState.status;
|
|
1341
|
-
$[195] = filteredLogs;
|
|
1342
|
-
$[196] = t68;
|
|
1343
|
-
}
|
|
1344
|
-
else {
|
|
1345
|
-
t68 = $[196];
|
|
1346
|
-
}
|
|
1347
|
-
let t69;
|
|
1348
|
-
if ($[197] !== agenticSearchState.status || $[198] !== isAgenticSearchOptionFocused || $[199] !== onAgenticSearch || $[200] !== searchQuery) {
|
|
1349
|
-
t69 = Boolean(searchQuery.trim()) && onAgenticSearch && false && agenticSearchState.status !== "searching" && agenticSearchState.status !== "results" && agenticSearchState.status !== "error" && _jsxs(Box, { flexShrink: 0, flexDirection: "column", children: [_jsxs(Box, { flexDirection: "row", gap: 1, children: [_jsx(Text, { color: isAgenticSearchOptionFocused ? "suggestion" : undefined, children: isAgenticSearchOptionFocused ? figures.pointer : " " }), _jsx(Text, { color: isAgenticSearchOptionFocused ? "suggestion" : undefined, bold: isAgenticSearchOptionFocused, children: "Search deeply using Claude \u2192" })] }), _jsx(Box, { height: 1 })] });
|
|
1350
|
-
$[197] = agenticSearchState.status;
|
|
1351
|
-
$[198] = isAgenticSearchOptionFocused;
|
|
1352
|
-
$[199] = onAgenticSearch;
|
|
1353
|
-
$[200] = searchQuery;
|
|
1354
|
-
$[201] = t69;
|
|
1355
|
-
}
|
|
1356
|
-
else {
|
|
1357
|
-
t69 = $[201];
|
|
1358
|
-
}
|
|
1359
|
-
let t70;
|
|
1360
|
-
if ($[202] !== agenticSearchState.status || $[203] !== branchFilterEnabled || $[204] !== columns || $[205] !== displayedLogs || $[206] !== expandedGroupSessionIds || $[207] !== flatOptions || $[208] !== focusedLog || $[209] !== focusedNode?.id || $[210] !== handleFlatOptionsSelectFocus || $[211] !== handleRenameSubmit || $[212] !== handleTreeSelectFocus || $[213] !== isAgenticSearchOptionFocused || $[214] !== onCancel || $[215] !== onSelect || $[216] !== renameCursorOffset || $[217] !== renameValue || $[218] !== treeNodes || $[219] !== viewMode || $[220] !== visibleCount) {
|
|
1361
|
-
t70 = agenticSearchState.status === "searching" ? null : viewMode === "rename" && focusedLog ? _jsxs(Box, { paddingLeft: 2, flexDirection: "column", children: [_jsx(Text, { bold: true, children: "Rename session:" }), _jsx(Box, { paddingTop: 1, children: _jsx(TextInput, { value: renameValue, onChange: setRenameValue, onSubmit: handleRenameSubmit, placeholder: getLogDisplayTitle(focusedLog, "Enter new session name"), columns: columns, cursorOffset: renameCursorOffset, onChangeCursorOffset: setRenameCursorOffset, showCursor: true }) })] }) : isResumeWithRenameEnabled ? _jsx(TreeSelect, { nodes: treeNodes, onSelect: node_0 => {
|
|
1362
|
-
onSelect(node_0.value.log);
|
|
1363
|
-
}, onFocus: handleTreeSelectFocus, onCancel: onCancel, focusNodeId: focusedNode?.id, visibleOptionCount: visibleCount, layout: "expanded", isDisabled: viewMode === "search" || isAgenticSearchOptionFocused, hideIndexes: false, isNodeExpanded: nodeId => {
|
|
1364
|
-
if (viewMode === "search" || branchFilterEnabled) {
|
|
1365
|
-
return true;
|
|
1366
|
-
}
|
|
1367
|
-
const sessionId_2 = typeof nodeId === "string" && nodeId.startsWith("group:") ? nodeId.substring(6) : null;
|
|
1368
|
-
return sessionId_2 ? expandedGroupSessionIds.has(sessionId_2) : false;
|
|
1369
|
-
}, onExpand: nodeId_0 => {
|
|
1370
|
-
const sessionId_3 = typeof nodeId_0 === "string" && nodeId_0.startsWith("group:") ? nodeId_0.substring(6) : null;
|
|
1371
|
-
if (sessionId_3) {
|
|
1372
|
-
setExpandedGroupSessionIds(prev_0 => new Set(prev_0).add(sessionId_3));
|
|
1373
|
-
logEvent("tengu_session_group_expanded", {});
|
|
1374
|
-
}
|
|
1375
|
-
}, onCollapse: nodeId_1 => {
|
|
1376
|
-
const sessionId_4 = typeof nodeId_1 === "string" && nodeId_1.startsWith("group:") ? nodeId_1.substring(6) : null;
|
|
1377
|
-
if (sessionId_4) {
|
|
1378
|
-
setExpandedGroupSessionIds(prev_1 => {
|
|
1379
|
-
const newSet = new Set(prev_1);
|
|
1380
|
-
newSet.delete(sessionId_4);
|
|
1381
|
-
return newSet;
|
|
1382
|
-
});
|
|
1383
|
-
}
|
|
1384
|
-
}, onUpFromFirstItem: enterSearchMode }) : _jsx(Select, { options: flatOptions, onChange: value_0 => {
|
|
1385
|
-
const itemIndex = parseInt(value_0, 10);
|
|
1386
|
-
const log_13 = displayedLogs[itemIndex];
|
|
1387
|
-
if (log_13) {
|
|
1388
|
-
onSelect(log_13);
|
|
1389
|
-
}
|
|
1390
|
-
}, visibleOptionCount: visibleCount, onCancel: onCancel, onFocus: handleFlatOptionsSelectFocus, defaultFocusValue: focusedNode?.id.toString(), layout: "expanded", isDisabled: viewMode === "search" || isAgenticSearchOptionFocused, onUpFromFirstItem: enterSearchMode });
|
|
1391
|
-
$[202] = agenticSearchState.status;
|
|
1392
|
-
$[203] = branchFilterEnabled;
|
|
1393
|
-
$[204] = columns;
|
|
1394
|
-
$[205] = displayedLogs;
|
|
1395
|
-
$[206] = expandedGroupSessionIds;
|
|
1396
|
-
$[207] = flatOptions;
|
|
1397
|
-
$[208] = focusedLog;
|
|
1398
|
-
$[209] = focusedNode?.id;
|
|
1399
|
-
$[210] = handleFlatOptionsSelectFocus;
|
|
1400
|
-
$[211] = handleRenameSubmit;
|
|
1401
|
-
$[212] = handleTreeSelectFocus;
|
|
1402
|
-
$[213] = isAgenticSearchOptionFocused;
|
|
1403
|
-
$[214] = onCancel;
|
|
1404
|
-
$[215] = onSelect;
|
|
1405
|
-
$[216] = renameCursorOffset;
|
|
1406
|
-
$[217] = renameValue;
|
|
1407
|
-
$[218] = treeNodes;
|
|
1408
|
-
$[219] = viewMode;
|
|
1409
|
-
$[220] = visibleCount;
|
|
1410
|
-
$[221] = t70;
|
|
1411
|
-
}
|
|
1412
|
-
else {
|
|
1413
|
-
t70 = $[221];
|
|
1414
|
-
}
|
|
1415
|
-
let t71;
|
|
1416
|
-
if ($[222] !== agenticSearchState.status || $[223] !== currentBranch || $[224] !== exitState.keyName || $[225] !== exitState.pending || $[226] !== getExpandCollapseHint || $[227] !== hasMultipleWorktrees || $[228] !== isAgenticSearchOptionFocused || $[229] !== isSearching || $[230] !== onToggleAllProjects || $[231] !== showAllProjects || $[232] !== showAllWorktrees || $[233] !== viewMode) {
|
|
1417
|
-
t71 = _jsx(Box, { paddingLeft: 2, children: exitState.pending ? _jsxs(Text, { dimColor: true, children: ["Press ", exitState.keyName, " again to exit"] }) : viewMode === "rename" ? _jsx(Text, { dimColor: true, children: _jsxs(Byline, { children: [_jsx(KeyboardShortcutHint, { shortcut: "Enter", action: "save" }), _jsx(ConfigurableShortcutHint, { action: "confirm:no", context: "Confirmation", fallback: "Esc", description: "cancel" })] }) }) : agenticSearchState.status === "searching" ? _jsx(Text, { dimColor: true, children: _jsxs(Byline, { children: [_jsx(Text, { children: "Searching with Claude\u2026" }), _jsx(ConfigurableShortcutHint, { action: "confirm:no", context: "Confirmation", fallback: "Esc", description: "cancel" })] }) }) : isAgenticSearchOptionFocused ? _jsx(Text, { dimColor: true, children: _jsxs(Byline, { children: [_jsx(KeyboardShortcutHint, { shortcut: "Enter", action: "search" }), _jsx(KeyboardShortcutHint, { shortcut: "\u2193", action: "skip" }), _jsx(ConfigurableShortcutHint, { action: "confirm:no", context: "Confirmation", fallback: "Esc", description: "cancel" })] }) }) : viewMode === "search" ? _jsx(Text, { dimColor: true, children: _jsxs(Byline, { children: [_jsx(Text, { children: isSearching && false ? "Searching\u2026" : "Type to Search" }), _jsx(KeyboardShortcutHint, { shortcut: "Enter", action: "select" }), _jsx(ConfigurableShortcutHint, { action: "confirm:no", context: "Confirmation", fallback: "Esc", description: "clear" })] }) }) : _jsx(Text, { dimColor: true, children: _jsxs(Byline, { children: [onToggleAllProjects && _jsx(KeyboardShortcutHint, { shortcut: "Ctrl+A", action: `show ${showAllProjects ? "current dir" : "all projects"}` }), currentBranch && _jsx(KeyboardShortcutHint, { shortcut: "Ctrl+B", action: "toggle branch" }), hasMultipleWorktrees && _jsx(KeyboardShortcutHint, { shortcut: "Ctrl+W", action: `show ${showAllWorktrees ? "current worktree" : "all worktrees"}` }), _jsx(KeyboardShortcutHint, { shortcut: "Ctrl+V", action: "preview" }), _jsx(KeyboardShortcutHint, { shortcut: "Ctrl+R", action: "rename" }), _jsx(Text, { children: "Type to search" }), _jsx(ConfigurableShortcutHint, { action: "confirm:no", context: "Confirmation", fallback: "Esc", description: "cancel" }), getExpandCollapseHint() && _jsx(Text, { children: getExpandCollapseHint() })] }) }) });
|
|
1418
|
-
$[222] = agenticSearchState.status;
|
|
1419
|
-
$[223] = currentBranch;
|
|
1420
|
-
$[224] = exitState.keyName;
|
|
1421
|
-
$[225] = exitState.pending;
|
|
1422
|
-
$[226] = getExpandCollapseHint;
|
|
1423
|
-
$[227] = hasMultipleWorktrees;
|
|
1424
|
-
$[228] = isAgenticSearchOptionFocused;
|
|
1425
|
-
$[229] = isSearching;
|
|
1426
|
-
$[230] = onToggleAllProjects;
|
|
1427
|
-
$[231] = showAllProjects;
|
|
1428
|
-
$[232] = showAllWorktrees;
|
|
1429
|
-
$[233] = viewMode;
|
|
1430
|
-
$[234] = t71;
|
|
1431
|
-
}
|
|
1432
|
-
else {
|
|
1433
|
-
t71 = $[234];
|
|
1434
|
-
}
|
|
1435
|
-
let t72;
|
|
1436
|
-
if ($[235] !== t57 || $[236] !== t60 || $[237] !== t62 || $[238] !== t63 || $[239] !== t65 || $[240] !== t66 || $[241] !== t67 || $[242] !== t68 || $[243] !== t69 || $[244] !== t70 || $[245] !== t71) {
|
|
1437
|
-
t72 = _jsxs(Box, { flexDirection: "column", height: t57, children: [t58, t59, t60, t62, t63, t64, t65, t66, t67, t68, t69, t70, t71] });
|
|
1438
|
-
$[235] = t57;
|
|
1439
|
-
$[236] = t60;
|
|
1440
|
-
$[237] = t62;
|
|
1441
|
-
$[238] = t63;
|
|
1442
|
-
$[239] = t65;
|
|
1443
|
-
$[240] = t66;
|
|
1444
|
-
$[241] = t67;
|
|
1445
|
-
$[242] = t68;
|
|
1446
|
-
$[243] = t69;
|
|
1447
|
-
$[244] = t70;
|
|
1448
|
-
$[245] = t71;
|
|
1449
|
-
$[246] = t72;
|
|
1450
|
-
}
|
|
1451
|
-
else {
|
|
1452
|
-
t72 = $[246];
|
|
1453
|
-
}
|
|
1454
|
-
return t72;
|
|
1455
|
-
}
|
|
1456
|
-
/**
|
|
1457
|
-
* Extracts searchable text content from a message.
|
|
1458
|
-
* Handles both string content and structured content blocks.
|
|
1459
|
-
*/
|
|
1460
|
-
function _temp7(r_0) {
|
|
1461
|
-
return r_0.log;
|
|
1462
|
-
}
|
|
1463
|
-
function _temp6(log_6) {
|
|
1464
|
-
return log_6.messages[0]?.uuid;
|
|
1465
|
-
}
|
|
1466
|
-
function _temp5(fuseIndex_0, debouncedDeepSearchQuery_0, setDeepSearchResults_0, setIsSearching_0) {
|
|
1467
|
-
const results = fuseIndex_0.search(debouncedDeepSearchQuery_0);
|
|
1468
|
-
results.sort(_temp3);
|
|
1469
|
-
setDeepSearchResults_0({
|
|
1470
|
-
results: results.map(_temp4),
|
|
1471
|
-
query: debouncedDeepSearchQuery_0
|
|
1472
|
-
});
|
|
1473
|
-
setIsSearching_0(false);
|
|
1474
|
-
}
|
|
1475
|
-
function _temp4(r) {
|
|
1476
|
-
return {
|
|
1477
|
-
log: r.item.log,
|
|
1478
|
-
score: r.score,
|
|
1479
|
-
searchableText: r.item.searchableText
|
|
1480
|
-
};
|
|
1481
|
-
}
|
|
1482
|
-
function _temp3(a, b) {
|
|
1483
|
-
const aTime = new Date(a.item.log.modified).getTime();
|
|
1484
|
-
const bTime = new Date(b.item.log.modified).getTime();
|
|
1485
|
-
const timeDiff = bTime - aTime;
|
|
1486
|
-
if (Math.abs(timeDiff) > DATE_TIE_THRESHOLD_MS) {
|
|
1487
|
-
return timeDiff;
|
|
1488
|
-
}
|
|
1489
|
-
return (a.score ?? 1) - (b.score ?? 1);
|
|
1490
|
-
}
|
|
1491
|
-
function _temp2(log_1) {
|
|
1492
|
-
const currentSessionId = getSessionId();
|
|
1493
|
-
const logSessionId = getSessionIdFromLog(log_1);
|
|
1494
|
-
const isCurrentSession = currentSessionId && logSessionId === currentSessionId;
|
|
1495
|
-
if (isCurrentSession) {
|
|
1496
|
-
return true;
|
|
1497
|
-
}
|
|
1498
|
-
if (log_1.customTitle) {
|
|
1499
|
-
return true;
|
|
1500
|
-
}
|
|
1501
|
-
const fromMessages = getFirstMeaningfulUserMessageTextContent(log_1.messages);
|
|
1502
|
-
if (fromMessages) {
|
|
1503
|
-
return true;
|
|
1504
|
-
}
|
|
1505
|
-
if (log_1.firstPrompt || log_1.customTitle) {
|
|
1506
|
-
return true;
|
|
1507
|
-
}
|
|
1508
|
-
return false;
|
|
1509
|
-
}
|
|
1510
|
-
function _temp(log) {
|
|
1511
|
-
return [log, buildSearchableText(log)];
|
|
1512
|
-
}
|
|
1513
|
-
function extractSearchableText(message) {
|
|
1514
|
-
// Only extract from user and assistant messages that have content
|
|
1515
|
-
if (message.type !== 'user' && message.type !== 'assistant') {
|
|
1516
|
-
return '';
|
|
1517
|
-
}
|
|
1518
|
-
const content = 'message' in message ? message.message?.content : undefined;
|
|
1519
|
-
if (!content)
|
|
1520
|
-
return '';
|
|
1521
|
-
// Handle string content (simple messages)
|
|
1522
|
-
if (typeof content === 'string') {
|
|
1523
|
-
return content;
|
|
1524
|
-
}
|
|
1525
|
-
// Handle array of content blocks
|
|
1526
|
-
if (Array.isArray(content)) {
|
|
1527
|
-
return content.map(block => {
|
|
1528
|
-
if (typeof block === 'string')
|
|
1529
|
-
return block;
|
|
1530
|
-
if ('text' in block && typeof block.text === 'string')
|
|
1531
|
-
return block.text;
|
|
1532
|
-
return '';
|
|
1533
|
-
// we don't return thinking blocks and tool names here;
|
|
1534
|
-
// they're not useful for search, as they can add noise to the fuzzy matching
|
|
1535
|
-
}).filter(Boolean).join(' ');
|
|
1536
|
-
}
|
|
1537
|
-
return '';
|
|
1538
|
-
}
|
|
1539
|
-
/**
|
|
1540
|
-
* Builds searchable text for a log including messages, titles, summaries, and metadata.
|
|
1541
|
-
* Crops long transcripts to first/last N messages for performance.
|
|
1542
|
-
*/
|
|
1543
|
-
function buildSearchableText(log) {
|
|
1544
|
-
const searchableMessages = log.messages.length <= DEEP_SEARCH_MAX_MESSAGES ? log.messages : [...log.messages.slice(0, DEEP_SEARCH_CROP_SIZE), ...log.messages.slice(-DEEP_SEARCH_CROP_SIZE)];
|
|
1545
|
-
const messageText = searchableMessages.map(extractSearchableText).filter(Boolean).join(' ');
|
|
1546
|
-
const metadata = [log.customTitle, log.summary, log.firstPrompt, log.gitBranch, log.tag, log.prNumber ? `PR #${log.prNumber}` : undefined, log.prRepository].filter(Boolean).join(' ');
|
|
1547
|
-
const fullText = `${metadata} ${messageText}`.trim();
|
|
1548
|
-
return fullText.length > DEEP_SEARCH_MAX_TEXT_LENGTH ? fullText.slice(0, DEEP_SEARCH_MAX_TEXT_LENGTH) : fullText;
|
|
1549
|
-
}
|
|
1550
|
-
function groupLogsBySessionId(filteredLogs) {
|
|
1551
|
-
const groups = new Map();
|
|
1552
|
-
for (const log of filteredLogs) {
|
|
1553
|
-
const sessionId = getSessionIdFromLog(log);
|
|
1554
|
-
if (sessionId) {
|
|
1555
|
-
const existing = groups.get(sessionId);
|
|
1556
|
-
if (existing) {
|
|
1557
|
-
existing.push(log);
|
|
1558
|
-
}
|
|
1559
|
-
else {
|
|
1560
|
-
groups.set(sessionId, [log]);
|
|
1561
|
-
}
|
|
1562
|
-
}
|
|
1563
|
-
}
|
|
1564
|
-
// Sort logs within each group by modified date (newest first)
|
|
1565
|
-
groups.forEach(logs => logs.sort((a, b) => new Date(b.modified).getTime() - new Date(a.modified).getTime()));
|
|
1566
|
-
return groups;
|
|
1567
|
-
}
|
|
1568
|
-
/**
|
|
1569
|
-
* Get unique tags from a list of logs, sorted alphabetically
|
|
1570
|
-
*/
|
|
1571
|
-
function getUniqueTags(logs) {
|
|
1572
|
-
const tags = new Set();
|
|
1573
|
-
for (const log of logs) {
|
|
1574
|
-
if (log.tag) {
|
|
1575
|
-
tags.add(log.tag);
|
|
1576
|
-
}
|
|
1577
|
-
}
|
|
1578
|
-
return Array.from(tags).sort((a, b) => a.localeCompare(b));
|
|
1579
|
-
}
|