@zgsm/costrict-cli 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/package.json +2 -2
- package/dist/src/commands/extensions/disable.js +1 -1
- package/dist/src/commands/extensions/disable.test.js +1 -1
- package/dist/src/commands/extensions/enable.js +1 -1
- package/dist/src/commands/extensions/enable.test.js +2 -2
- package/dist/src/commands/extensions/install.js +1 -1
- package/dist/src/commands/extensions/install.test.js +1 -1
- package/dist/src/commands/extensions/link.js +1 -1
- package/dist/src/commands/extensions/link.test.js +1 -1
- package/dist/src/commands/extensions/list.js +1 -1
- package/dist/src/commands/extensions/list.test.js +1 -1
- package/dist/src/commands/extensions/new.js +1 -1
- package/dist/src/commands/extensions/settings.js +1 -1
- package/dist/src/commands/extensions/uninstall.js +1 -1
- package/dist/src/commands/extensions/uninstall.test.js +1 -1
- package/dist/src/commands/extensions/update.js +1 -1
- package/dist/src/commands/extensions/update.test.js +1 -1
- package/dist/src/commands/extensions/utils.d.ts +1 -1
- package/dist/src/commands/extensions/utils.js +1 -1
- package/dist/src/commands/extensions/validate.js +1 -1
- package/dist/src/commands/extensions/validate.test.js +1 -1
- package/dist/src/commands/hooks/migrate.js +1 -1
- package/dist/src/commands/hooks/migrate.test.js +1 -1
- package/dist/src/commands/mcp/add.js +1 -1
- package/dist/src/commands/mcp/add.test.js +1 -1
- package/dist/src/commands/mcp/list.js +1 -1
- package/dist/src/commands/mcp/list.test.js +2 -2
- package/dist/src/commands/mcp/remove.js +1 -1
- package/dist/src/commands/mcp/remove.test.js +1 -1
- package/dist/src/config/auth.js +1 -1
- package/dist/src/config/auth.test.js +1 -1
- package/dist/src/config/config.d.ts +1 -1
- package/dist/src/config/config.integration.test.js +3 -3
- package/dist/src/config/config.js +1 -1
- package/dist/src/config/config.test.js +4 -4
- package/dist/src/config/extension-manager.d.ts +1 -1
- package/dist/src/config/extension-manager.js +1 -1
- package/dist/src/config/extension.d.ts +1 -1
- package/dist/src/config/extension.test.js +2 -2
- package/dist/src/config/extensions/consent.js +1 -1
- package/dist/src/config/extensions/consent.test.js +2 -2
- package/dist/src/config/extensions/extensionEnablement.d.ts +1 -1
- package/dist/src/config/extensions/extensionEnablement.js +1 -1
- package/dist/src/config/extensions/extensionEnablement.test.js +1 -1
- package/dist/src/config/extensions/extensionSettings.js +1 -1
- package/dist/src/config/extensions/extensionSettings.test.js +2 -2
- package/dist/src/config/extensions/github.d.ts +1 -1
- package/dist/src/config/extensions/github.js +1 -1
- package/dist/src/config/extensions/github.test.js +1 -1
- package/dist/src/config/extensions/storage.js +1 -1
- package/dist/src/config/extensions/storage.test.js +2 -2
- package/dist/src/config/extensions/update.d.ts +1 -1
- package/dist/src/config/extensions/update.js +1 -1
- package/dist/src/config/extensions/variables.js +1 -1
- package/dist/src/config/policy-engine.integration.test.js +1 -1
- package/dist/src/config/policy.d.ts +1 -1
- package/dist/src/config/policy.js +1 -1
- package/dist/src/config/sandboxConfig.d.ts +1 -1
- package/dist/src/config/sandboxConfig.js +1 -1
- package/dist/src/config/sandboxConfig.test.js +2 -2
- package/dist/src/config/settings.js +1 -1
- package/dist/src/config/settings.test.js +2 -2
- package/dist/src/config/settingsSchema.d.ts +3 -3
- package/dist/src/config/settingsSchema.js +1 -1
- package/dist/src/config/settings_repro.test.js +1 -1
- package/dist/src/config/trustedFolders.js +1 -1
- package/dist/src/config/trustedFolders.test.js +1 -1
- package/dist/src/core/auth.d.ts +1 -1
- package/dist/src/core/auth.js +1 -1
- package/dist/src/core/auth.test.js +2 -2
- package/dist/src/core/initializer.d.ts +1 -1
- package/dist/src/core/initializer.js +1 -1
- package/dist/src/core/initializer.test.js +2 -2
- package/dist/src/gemini.d.ts +1 -1
- package/dist/src/gemini.js +1 -1
- package/dist/src/gemini.test.js +7 -7
- package/dist/src/gemini_cleanup.test.js +3 -3
- package/dist/src/generated/git-commit.d.ts +2 -2
- package/dist/src/generated/git-commit.js +2 -2
- package/dist/src/generated/git-commit.js.map +1 -1
- package/dist/src/nonInteractiveCli.d.ts +1 -1
- package/dist/src/nonInteractiveCli.js +1 -1
- package/dist/src/nonInteractiveCli.test.js +3 -3
- package/dist/src/nonInteractiveCliCommands.d.ts +1 -1
- package/dist/src/nonInteractiveCliCommands.js +1 -1
- package/dist/src/services/BuiltinCommandLoader.d.ts +1 -1
- package/dist/src/services/BuiltinCommandLoader.js +1 -1
- package/dist/src/services/CommandService.js +1 -1
- package/dist/src/services/CommandService.test.js +1 -1
- package/dist/src/services/FileCommandLoader.d.ts +1 -1
- package/dist/src/services/FileCommandLoader.js +1 -1
- package/dist/src/services/FileCommandLoader.test.js +2 -2
- package/dist/src/services/McpPromptLoader.d.ts +1 -1
- package/dist/src/services/McpPromptLoader.js +1 -1
- package/dist/src/services/McpPromptLoader.test.js +1 -1
- package/dist/src/services/prompt-processors/argumentProcessor.js +1 -1
- package/dist/src/services/prompt-processors/atFileProcessor.js +1 -1
- package/dist/src/services/prompt-processors/atFileProcessor.test.js +1 -1
- package/dist/src/services/prompt-processors/shellProcessor.js +1 -1
- package/dist/src/services/prompt-processors/shellProcessor.test.js +2 -2
- package/dist/src/test-utils/createExtension.d.ts +1 -1
- package/dist/src/test-utils/createExtension.js +1 -1
- package/dist/src/test-utils/render.d.ts +1 -1
- package/dist/src/test-utils/render.js +1 -1
- package/dist/src/ui/App.test.js +1 -1
- package/dist/src/ui/AppContainer.d.ts +1 -1
- package/dist/src/ui/AppContainer.js +1 -1
- package/dist/src/ui/AppContainer.test.js +3 -3
- package/dist/src/ui/IdeIntegrationNudge.d.ts +1 -1
- package/dist/src/ui/auth/ApiAuthDialog.js +1 -1
- package/dist/src/ui/auth/ApiAuthDialog.test.js +2 -2
- package/dist/src/ui/auth/AuthDialog.d.ts +1 -1
- package/dist/src/ui/auth/AuthDialog.js +1 -1
- package/dist/src/ui/auth/AuthDialog.test.js +2 -2
- package/dist/src/ui/auth/useAuth.d.ts +1 -1
- package/dist/src/ui/auth/useAuth.js +2 -2
- package/dist/src/ui/auth/useAuth.test.js +2 -2
- package/dist/src/ui/commands/aboutCommand.js +1 -1
- package/dist/src/ui/commands/aboutCommand.test.js +2 -2
- package/dist/src/ui/commands/bugCommand.js +1 -1
- package/dist/src/ui/commands/bugCommand.test.js +2 -2
- package/dist/src/ui/commands/chatCommand.js +1 -1
- package/dist/src/ui/commands/chatCommand.test.js +1 -1
- package/dist/src/ui/commands/clearCommand.js +1 -1
- package/dist/src/ui/commands/clearCommand.test.js +3 -3
- package/dist/src/ui/commands/compressCommand.test.js +1 -1
- package/dist/src/ui/commands/copyCommand.js +1 -1
- package/dist/src/ui/commands/directoryCommand.js +1 -1
- package/dist/src/ui/commands/extensionsCommand.js +1 -1
- package/dist/src/ui/commands/hooksCommand.js +1 -1
- package/dist/src/ui/commands/hooksCommand.test.js +1 -1
- package/dist/src/ui/commands/ideCommand.js +2 -2
- package/dist/src/ui/commands/ideCommand.test.js +3 -3
- package/dist/src/ui/commands/initCommand.js +1 -1
- package/dist/src/ui/commands/mcpCommand.js +2 -2
- package/dist/src/ui/commands/mcpCommand.test.js +2 -2
- package/dist/src/ui/commands/memoryCommand.js +1 -1
- package/dist/src/ui/commands/memoryCommand.test.js +2 -2
- package/dist/src/ui/commands/policiesCommand.test.js +1 -1
- package/dist/src/ui/commands/restoreCommand.d.ts +1 -1
- package/dist/src/ui/commands/restoreCommand.js +1 -1
- package/dist/src/ui/commands/restoreCommand.test.js +1 -1
- package/dist/src/ui/commands/setupGithubCommand.js +1 -1
- package/dist/src/ui/commands/setupGithubCommand.test.js +1 -1
- package/dist/src/ui/commands/statsCommand.js +1 -1
- package/dist/src/ui/commands/terminalSetupCommand.js +1 -1
- package/dist/src/ui/commands/types.d.ts +1 -1
- package/dist/src/ui/components/AlternateBufferQuittingDisplay.test.js +1 -1
- package/dist/src/ui/components/AnsiOutput.d.ts +1 -1
- package/dist/src/ui/components/AppHeader.test.js +1 -1
- package/dist/src/ui/components/AutoAcceptIndicator.d.ts +1 -1
- package/dist/src/ui/components/AutoAcceptIndicator.js +1 -1
- package/dist/src/ui/components/AutoAcceptIndicator.test.js +1 -1
- package/dist/src/ui/components/Composer.js +1 -1
- package/dist/src/ui/components/Composer.test.js +1 -1
- package/dist/src/ui/components/ConfigInitDisplay.js +1 -1
- package/dist/src/ui/components/ConfigInitDisplay.test.js +1 -1
- package/dist/src/ui/components/ContextSummaryDisplay.d.ts +1 -1
- package/dist/src/ui/components/ContextSummaryDisplay.js +1 -1
- package/dist/src/ui/components/ContextUsageDisplay.js +1 -1
- package/dist/src/ui/components/ContextUsageDisplay.test.js +1 -1
- package/dist/src/ui/components/DebugProfiler.js +1 -1
- package/dist/src/ui/components/DialogManager.test.js +1 -1
- package/dist/src/ui/components/EditorSettingsDialog.d.ts +1 -1
- package/dist/src/ui/components/EditorSettingsDialog.js +1 -1
- package/dist/src/ui/components/EditorSettingsDialog.test.js +1 -1
- package/dist/src/ui/components/FolderTrustDialog.js +1 -1
- package/dist/src/ui/components/FolderTrustDialog.test.js +1 -1
- package/dist/src/ui/components/Footer.js +1 -1
- package/dist/src/ui/components/Footer.test.js +2 -2
- package/dist/src/ui/components/HistoryItemDisplay.js +1 -1
- package/dist/src/ui/components/InputPrompt.d.ts +2 -2
- package/dist/src/ui/components/InputPrompt.js +1 -1
- package/dist/src/ui/components/InputPrompt.test.js +1 -1
- package/dist/src/ui/components/LoadingIndicator.d.ts +1 -1
- package/dist/src/ui/components/ModelDialog.js +1 -1
- package/dist/src/ui/components/ModelDialog.test.js +1 -1
- package/dist/src/ui/components/ModelStatsDisplay.test.js +1 -1
- package/dist/src/ui/components/MultiFolderTrustDialog.d.ts +1 -1
- package/dist/src/ui/components/Notifications.js +1 -1
- package/dist/src/ui/components/Notifications.test.js +1 -1
- package/dist/src/ui/components/ProQuotaDialog.d.ts +1 -1
- package/dist/src/ui/components/ProQuotaDialog.js +1 -1
- package/dist/src/ui/components/ProQuotaDialog.test.js +1 -1
- package/dist/src/ui/components/SessionBrowser.d.ts +1 -1
- package/dist/src/ui/components/SessionSummaryDisplay.test.js +1 -1
- package/dist/src/ui/components/SettingsDialog.d.ts +1 -1
- package/dist/src/ui/components/SettingsDialog.js +1 -1
- package/dist/src/ui/components/ShellConfirmationDialog.d.ts +1 -1
- package/dist/src/ui/components/ShellConfirmationDialog.js +1 -1
- package/dist/src/ui/components/ShellInputPrompt.js +1 -1
- package/dist/src/ui/components/ShellInputPrompt.test.js +3 -3
- package/dist/src/ui/components/StatsDisplay.d.ts +1 -1
- package/dist/src/ui/components/StatsDisplay.js +1 -1
- package/dist/src/ui/components/StatsDisplay.test.js +1 -1
- package/dist/src/ui/components/Tips.d.ts +1 -1
- package/dist/src/ui/components/Tips.js +1 -1
- package/dist/src/ui/components/ToolStatsDisplay.test.js +1 -1
- package/dist/src/ui/components/messages/CompressionMessage.js +1 -1
- package/dist/src/ui/components/messages/CompressionMessage.test.js +1 -1
- package/dist/src/ui/components/messages/ShellToolMessage.d.ts +1 -1
- package/dist/src/ui/components/messages/ShellToolMessage.js +1 -1
- package/dist/src/ui/components/messages/ShellToolMessage.test.js +1 -1
- package/dist/src/ui/components/messages/Todo.js +1 -1
- package/dist/src/ui/components/messages/ToolConfirmationMessage.d.ts +1 -1
- package/dist/src/ui/components/messages/ToolConfirmationMessage.js +1 -1
- package/dist/src/ui/components/messages/ToolGroupMessage.js +1 -1
- package/dist/src/ui/components/messages/ToolMessage.d.ts +1 -1
- package/dist/src/ui/components/messages/ToolShared.js +1 -1
- package/dist/src/ui/components/shared/text-buffer.js +1 -1
- package/dist/src/ui/components/views/ExtensionsList.d.ts +1 -1
- package/dist/src/ui/components/views/ExtensionsList.js +1 -1
- package/dist/src/ui/components/views/McpStatus.d.ts +2 -2
- package/dist/src/ui/components/views/McpStatus.js +1 -1
- package/dist/src/ui/components/views/McpStatus.test.js +2 -2
- package/dist/src/ui/contexts/ConfigContext.d.ts +1 -1
- package/dist/src/ui/contexts/ConfigContext.js +1 -1
- package/dist/src/ui/contexts/KeypressContext.d.ts +1 -1
- package/dist/src/ui/contexts/KeypressContext.js +1 -1
- package/dist/src/ui/contexts/KeypressContext.test.js +1 -1
- package/dist/src/ui/contexts/MouseContext.js +1 -1
- package/dist/src/ui/contexts/SessionContext.d.ts +1 -1
- package/dist/src/ui/contexts/SessionContext.js +1 -1
- package/dist/src/ui/contexts/SessionContext.test.js +1 -1
- package/dist/src/ui/contexts/UIActionsContext.d.ts +1 -1
- package/dist/src/ui/contexts/UIActionsContext.js +1 -1
- package/dist/src/ui/contexts/UIStateContext.d.ts +1 -1
- package/dist/src/ui/editors/editorSettingsManager.d.ts +1 -1
- package/dist/src/ui/editors/editorSettingsManager.js +1 -1
- package/dist/src/ui/hooks/atCommandProcessor.d.ts +1 -1
- package/dist/src/ui/hooks/atCommandProcessor.js +1 -1
- package/dist/src/ui/hooks/atCommandProcessor.test.js +2 -2
- package/dist/src/ui/hooks/shellCommandProcessor.d.ts +1 -1
- package/dist/src/ui/hooks/shellCommandProcessor.js +1 -1
- package/dist/src/ui/hooks/shellCommandProcessor.test.js +2 -2
- package/dist/src/ui/hooks/slashCommandProcessor.d.ts +2 -2
- package/dist/src/ui/hooks/slashCommandProcessor.js +1 -1
- package/dist/src/ui/hooks/slashCommandProcessor.test.js +2 -2
- package/dist/src/ui/hooks/useAtCompletion.d.ts +1 -1
- package/dist/src/ui/hooks/useAtCompletion.js +1 -1
- package/dist/src/ui/hooks/useAtCompletion.test.js +1 -1
- package/dist/src/ui/hooks/useAutoAcceptIndicator.d.ts +1 -1
- package/dist/src/ui/hooks/useAutoAcceptIndicator.js +1 -1
- package/dist/src/ui/hooks/useAutoAcceptIndicator.test.js +3 -3
- package/dist/src/ui/hooks/useBanner.d.ts +1 -1
- package/dist/src/ui/hooks/useCommandCompletion.d.ts +1 -1
- package/dist/src/ui/hooks/useConsoleMessages.js +1 -1
- package/dist/src/ui/hooks/useConsoleMessages.test.js +2 -2
- package/dist/src/ui/hooks/useEditorSettings.d.ts +1 -1
- package/dist/src/ui/hooks/useEditorSettings.js +1 -1
- package/dist/src/ui/hooks/useEditorSettings.test.js +3 -3
- package/dist/src/ui/hooks/useExtensionUpdates.js +1 -1
- package/dist/src/ui/hooks/useExtensionUpdates.test.js +1 -1
- package/dist/src/ui/hooks/useFlickerDetector.js +1 -1
- package/dist/src/ui/hooks/useFlickerDetector.test.js +3 -3
- package/dist/src/ui/hooks/useFolderTrust.js +1 -1
- package/dist/src/ui/hooks/useFolderTrust.test.js +1 -1
- package/dist/src/ui/hooks/useGeminiStream.d.ts +2 -2
- package/dist/src/ui/hooks/useGeminiStream.js +1 -1
- package/dist/src/ui/hooks/useGeminiStream.test.js +2 -2
- package/dist/src/ui/hooks/useGitBranchName.js +1 -1
- package/dist/src/ui/hooks/useGitBranchName.test.js +4 -4
- package/dist/src/ui/hooks/useHistoryManager.d.ts +1 -1
- package/dist/src/ui/hooks/useIdeTrustListener.js +1 -1
- package/dist/src/ui/hooks/useIdeTrustListener.test.js +2 -2
- package/dist/src/ui/hooks/useIncludeDirsTrust.d.ts +1 -1
- package/dist/src/ui/hooks/useIncludeDirsTrust.js +1 -1
- package/dist/src/ui/hooks/useInputHistoryStore.js +1 -1
- package/dist/src/ui/hooks/useInputHistoryStore.test.js +1 -1
- package/dist/src/ui/hooks/useLogger.d.ts +2 -2
- package/dist/src/ui/hooks/useLogger.js +1 -1
- package/dist/src/ui/hooks/usePermissionsModifyTrust.js +1 -1
- package/dist/src/ui/hooks/usePermissionsModifyTrust.test.js +1 -1
- package/dist/src/ui/hooks/usePrivacySettings.d.ts +1 -1
- package/dist/src/ui/hooks/usePrivacySettings.js +1 -1
- package/dist/src/ui/hooks/usePrivacySettings.test.js +2 -2
- package/dist/src/ui/hooks/usePromptCompletion.d.ts +1 -1
- package/dist/src/ui/hooks/usePromptCompletion.js +1 -1
- package/dist/src/ui/hooks/useQuotaAndFallback.d.ts +1 -1
- package/dist/src/ui/hooks/useQuotaAndFallback.js +1 -1
- package/dist/src/ui/hooks/useQuotaAndFallback.test.js +1 -1
- package/dist/src/ui/hooks/useReactToolScheduler.d.ts +1 -1
- package/dist/src/ui/hooks/useReactToolScheduler.js +1 -1
- package/dist/src/ui/hooks/useReactToolScheduler.test.js +2 -2
- package/dist/src/ui/hooks/useSessionBrowser.d.ts +1 -1
- package/dist/src/ui/hooks/useSessionBrowser.js +1 -1
- package/dist/src/ui/hooks/useSessionResume.d.ts +1 -1
- package/dist/src/ui/hooks/useShellHistory.d.ts +1 -1
- package/dist/src/ui/hooks/useShellHistory.js +1 -1
- package/dist/src/ui/hooks/useShellHistory.test.js +2 -2
- package/dist/src/ui/hooks/useShowMemoryCommand.d.ts +1 -1
- package/dist/src/ui/hooks/useShowMemoryCommand.js +1 -1
- package/dist/src/ui/hooks/useSlashCompletion.js +1 -1
- package/dist/src/ui/hooks/useToolScheduler.test.js +4 -4
- package/dist/src/ui/hooks/vim.js +1 -1
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.d.ts +1 -1
- package/dist/src/ui/privacy/PrivacyNotice.d.ts +1 -1
- package/dist/src/ui/privacy/PrivacyNotice.js +1 -1
- package/dist/src/ui/themes/color-utils.js +1 -1
- package/dist/src/ui/themes/theme-manager.js +1 -1
- package/dist/src/ui/themes/theme-manager.test.js +1 -1
- package/dist/src/ui/types.d.ts +1 -1
- package/dist/src/ui/utils/CodeColorizer.js +1 -1
- package/dist/src/ui/utils/bracketedPaste.js +1 -1
- package/dist/src/ui/utils/clipboardUtils.js +1 -1
- package/dist/src/ui/utils/commandUtils.js +1 -1
- package/dist/src/ui/utils/directoryUtils.test.js +1 -1
- package/dist/src/ui/utils/kittyProtocolDetector.js +1 -1
- package/dist/src/ui/utils/kittyProtocolDetector.test.js +1 -1
- package/dist/src/ui/utils/mouse.d.ts +1 -1
- package/dist/src/ui/utils/mouse.js +1 -1
- package/dist/src/ui/utils/terminalSetup.js +1 -1
- package/dist/src/ui/utils/updateCheck.js +1 -1
- package/dist/src/ui/utils/updateCheck.test.js +1 -1
- package/dist/src/utils/cleanup.d.ts +1 -1
- package/dist/src/utils/cleanup.js +1 -1
- package/dist/src/utils/cleanup.test.js +1 -1
- package/dist/src/utils/commentJson.js +1 -1
- package/dist/src/utils/commentJson.test.js +2 -2
- package/dist/src/utils/errors.d.ts +1 -1
- package/dist/src/utils/errors.js +1 -1
- package/dist/src/utils/errors.test.js +2 -2
- package/dist/src/utils/events.d.ts +1 -1
- package/dist/src/utils/gitUtils.js +1 -1
- package/dist/src/utils/installationInfo.js +1 -1
- package/dist/src/utils/installationInfo.test.js +2 -2
- package/dist/src/utils/persistentState.js +1 -1
- package/dist/src/utils/persistentState.test.js +2 -2
- package/dist/src/utils/readStdin.js +1 -1
- package/dist/src/utils/readStdin.test.js +2 -2
- package/dist/src/utils/sandbox.d.ts +1 -1
- package/dist/src/utils/sandbox.js +1 -1
- package/dist/src/utils/sandbox.test.js +2 -2
- package/dist/src/utils/sandboxUtils.js +1 -1
- package/dist/src/utils/sandboxUtils.test.js +1 -1
- package/dist/src/utils/sessionCleanup.d.ts +1 -1
- package/dist/src/utils/sessionCleanup.integration.test.js +1 -1
- package/dist/src/utils/sessionCleanup.js +1 -1
- package/dist/src/utils/sessionCleanup.test.js +1 -1
- package/dist/src/utils/sessionUtils.d.ts +1 -1
- package/dist/src/utils/sessionUtils.js +1 -1
- package/dist/src/utils/sessionUtils.test.js +1 -1
- package/dist/src/utils/sessions.d.ts +1 -1
- package/dist/src/utils/sessions.js +1 -1
- package/dist/src/utils/sessions.test.js +3 -3
- package/dist/src/utils/startupWarnings.js +1 -1
- package/dist/src/utils/startupWarnings.test.js +2 -2
- package/dist/src/validateNonInterActiveAuth.d.ts +2 -2
- package/dist/src/validateNonInterActiveAuth.js +1 -1
- package/dist/src/validateNonInterActiveAuth.test.js +1 -1
- package/dist/src/zed-integration/connection.js +1 -1
- package/dist/src/zed-integration/fileSystemService.d.ts +1 -1
- package/dist/src/zed-integration/schema.d.ts +940 -940
- package/dist/src/zed-integration/zedIntegration.d.ts +1 -1
- package/dist/src/zed-integration/zedIntegration.js +1 -1
- package/dist/src/zed-integration/zedIntegration.test.js +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
import type React from 'react';
|
|
7
|
-
import type { ToolCallConfirmationDetails, Config } from '@
|
|
7
|
+
import type { ToolCallConfirmationDetails, Config } from '@zgsm/costrict-cli-core';
|
|
8
8
|
export interface ToolConfirmationMessageProps {
|
|
9
9
|
confirmationDetails: ToolCallConfirmationDetails;
|
|
10
10
|
config: Config;
|
|
@@ -3,7 +3,7 @@ import { useEffect, useState, useMemo } from 'react';
|
|
|
3
3
|
import { Box, Text } from 'ink';
|
|
4
4
|
import { DiffRenderer } from './DiffRenderer.js';
|
|
5
5
|
import { RenderInline } from '../../utils/InlineMarkdownRenderer.js';
|
|
6
|
-
import { IdeClient, ToolConfirmationOutcome } from '@
|
|
6
|
+
import { IdeClient, ToolConfirmationOutcome } from '@zgsm/costrict-cli-core';
|
|
7
7
|
import { RadioButtonSelect } from '../shared/RadioButtonSelect.js';
|
|
8
8
|
import { MaxSizedBox } from '../shared/MaxSizedBox.js';
|
|
9
9
|
import { useKeypress } from '../../hooks/useKeypress.js';
|
|
@@ -7,7 +7,7 @@ import { ShellToolMessage } from './ShellToolMessage.js';
|
|
|
7
7
|
import { ToolConfirmationMessage } from './ToolConfirmationMessage.js';
|
|
8
8
|
import { theme } from '../../semantic-colors.js';
|
|
9
9
|
import { SHELL_COMMAND_NAME, SHELL_NAME } from '../../constants.js';
|
|
10
|
-
import { SHELL_TOOL_NAME } from '@
|
|
10
|
+
import { SHELL_TOOL_NAME } from '@zgsm/costrict-cli-core';
|
|
11
11
|
import { useConfig } from '../../contexts/ConfigContext.js';
|
|
12
12
|
// Main component renders the border and maps the tools using ToolMessage
|
|
13
13
|
export const ToolGroupMessage = ({ toolCalls, availableTerminalHeight, terminalWidth, isFocused = true, activeShellPtyId, embeddedShellFocused, }) => {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import type React from 'react';
|
|
7
7
|
import type { IndividualToolCallDisplay } from '../../types.js';
|
|
8
8
|
import { type TextEmphasis } from './ToolShared.js';
|
|
9
|
-
import type { Config } from '@
|
|
9
|
+
import type { Config } from '@zgsm/costrict-cli-core';
|
|
10
10
|
export type { TextEmphasis };
|
|
11
11
|
export interface ToolMessageProps extends IndividualToolCallDisplay {
|
|
12
12
|
availableTerminalHeight?: number;
|
|
@@ -10,7 +10,7 @@ import { ToolCallStatus } from '../../types.js';
|
|
|
10
10
|
import { GeminiRespondingSpinner } from '../GeminiRespondingSpinner.js';
|
|
11
11
|
import { SHELL_COMMAND_NAME, SHELL_NAME, TOOL_STATUS, } from '../../constants.js';
|
|
12
12
|
import { theme } from '../../semantic-colors.js';
|
|
13
|
-
import { SHELL_TOOL_NAME } from '@
|
|
13
|
+
import { SHELL_TOOL_NAME } from '@zgsm/costrict-cli-core';
|
|
14
14
|
export const STATUS_INDICATOR_WIDTH = 3;
|
|
15
15
|
export const ToolStatusIndicator = ({ status, name, }) => {
|
|
16
16
|
const isShell = name === SHELL_COMMAND_NAME ||
|
|
@@ -8,7 +8,7 @@ import fs from 'node:fs';
|
|
|
8
8
|
import os from 'node:os';
|
|
9
9
|
import pathMod from 'node:path';
|
|
10
10
|
import { useState, useCallback, useEffect, useMemo, useReducer } from 'react';
|
|
11
|
-
import { coreEvents, CoreEvent } from '@
|
|
11
|
+
import { coreEvents, CoreEvent } from '@zgsm/costrict-cli-core';
|
|
12
12
|
import { toCodePoints, cpLen, cpSlice, stripUnsafeCharacters, getCachedStringWidth, } from '../../utils/textUtils.js';
|
|
13
13
|
import { parsePastedPaths } from '../../utils/clipboardUtils.js';
|
|
14
14
|
import { handleVimAction } from './vim-buffer-actions.js';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
import type React from 'react';
|
|
7
|
-
import { type GeminiCLIExtension } from '@
|
|
7
|
+
import { type GeminiCLIExtension } from '@zgsm/costrict-cli-core';
|
|
8
8
|
interface ExtensionsList {
|
|
9
9
|
extensions: readonly GeminiCLIExtension[];
|
|
10
10
|
}
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { Box, Text } from 'ink';
|
|
3
3
|
import { useUIState } from '../../contexts/UIStateContext.js';
|
|
4
4
|
import { ExtensionUpdateState } from '../../state/extensions.js';
|
|
5
|
-
import { debugLogger } from '@
|
|
5
|
+
import { debugLogger } from '@zgsm/costrict-cli-core';
|
|
6
6
|
export const ExtensionsList = ({ extensions }) => {
|
|
7
7
|
const { extensionsUpdateState } = useUIState();
|
|
8
8
|
if (extensions.length === 0) {
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Copyright 2025 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import type { MCPServerConfig } from '@
|
|
7
|
-
import { MCPServerStatus } from '@
|
|
6
|
+
import type { MCPServerConfig } from '@zgsm/costrict-cli-core';
|
|
7
|
+
import { MCPServerStatus } from '@zgsm/costrict-cli-core';
|
|
8
8
|
import type React from 'react';
|
|
9
9
|
import type { HistoryItemMcpStatus, JsonMcpPrompt, JsonMcpResource, JsonMcpTool } from '../../types.js';
|
|
10
10
|
interface McpStatusProps {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { MCPServerStatus } from '@
|
|
2
|
+
import { MCPServerStatus } from '@zgsm/costrict-cli-core';
|
|
3
3
|
import { Box, Text } from 'ink';
|
|
4
4
|
import { theme } from '../../semantic-colors.js';
|
|
5
5
|
export const McpStatus = ({ servers, tools, prompts, resources, blockedServers, serverStatus, authStatus, discoveryInProgress, connectingServers, showDescriptions, showSchema, }) => {
|
|
@@ -7,7 +7,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
7
7
|
import { render } from '../../../test-utils/render.js';
|
|
8
8
|
import { describe, it, expect, vi } from 'vitest';
|
|
9
9
|
import { McpStatus } from './McpStatus.js';
|
|
10
|
-
import { MCPServerStatus } from '@
|
|
10
|
+
import { MCPServerStatus } from '@zgsm/costrict-cli-core';
|
|
11
11
|
import { MessageType } from '../../types.js';
|
|
12
12
|
describe('McpStatus', () => {
|
|
13
13
|
const baseProps = {
|
|
@@ -65,7 +65,7 @@ describe('McpStatus', () => {
|
|
|
65
65
|
unmount();
|
|
66
66
|
});
|
|
67
67
|
it('renders correctly with a disconnected server', async () => {
|
|
68
|
-
vi.spyOn(await import('@
|
|
68
|
+
vi.spyOn(await import('@zgsm/costrict-cli-core'), 'getMCPServerStatus').mockReturnValue(MCPServerStatus.DISCONNECTED);
|
|
69
69
|
const { lastFrame, unmount } = render(_jsx(McpStatus, { ...baseProps }));
|
|
70
70
|
expect(lastFrame()).toMatchSnapshot();
|
|
71
71
|
unmount();
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
import React from 'react';
|
|
7
|
-
import { type Config } from '@
|
|
7
|
+
import { type Config } from '@zgsm/costrict-cli-core';
|
|
8
8
|
export declare const ConfigContext: React.Context<Config | undefined>;
|
|
9
9
|
export declare const useConfig: () => Config;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
import React, { useContext } from 'react';
|
|
7
|
-
import {} from '@
|
|
7
|
+
import {} from '@zgsm/costrict-cli-core';
|
|
8
8
|
export const ConfigContext = React.createContext(undefined);
|
|
9
9
|
export const useConfig = () => {
|
|
10
10
|
const context = useContext(ConfigContext);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2025 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { type Config } from '@
|
|
6
|
+
import { type Config } from '@zgsm/costrict-cli-core';
|
|
7
7
|
import type React from 'react';
|
|
8
8
|
export declare const BACKSLASH_ENTER_TIMEOUT = 5;
|
|
9
9
|
export declare const ESC_TIMEOUT = 50;
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
4
4
|
* Copyright 2025 Google LLC
|
|
5
5
|
* SPDX-License-Identifier: Apache-2.0
|
|
6
6
|
*/
|
|
7
|
-
import { debugLogger } from '@
|
|
7
|
+
import { debugLogger } from '@zgsm/costrict-cli-core';
|
|
8
8
|
import { useStdin } from 'ink';
|
|
9
9
|
import { createContext, useCallback, useContext, useEffect, useRef, } from 'react';
|
|
10
10
|
import { ESC } from '../utils/input.js';
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
4
4
|
* Copyright 2025 Google LLC
|
|
5
5
|
* SPDX-License-Identifier: Apache-2.0
|
|
6
6
|
*/
|
|
7
|
-
import { debugLogger } from '@
|
|
7
|
+
import { debugLogger } from '@zgsm/costrict-cli-core';
|
|
8
8
|
import { act } from 'react';
|
|
9
9
|
import { renderHook } from '../../test-utils/render.js';
|
|
10
10
|
import { waitFor } from '../../test-utils/async.js';
|
|
@@ -7,7 +7,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
7
7
|
import { useStdin } from 'ink';
|
|
8
8
|
import { createContext, useCallback, useContext, useEffect, useRef, } from 'react';
|
|
9
9
|
import { ESC } from '../utils/input.js';
|
|
10
|
-
import { debugLogger } from '@
|
|
10
|
+
import { debugLogger } from '@zgsm/costrict-cli-core';
|
|
11
11
|
import { appEvents, AppEvent } from '../../utils/events.js';
|
|
12
12
|
import { isIncompleteMouseSequence, parseMouseEvent, } from '../utils/mouse.js';
|
|
13
13
|
const MAX_MOUSE_BUFFER_SIZE = 4096;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
import type React from 'react';
|
|
7
|
-
import type { SessionMetrics, ModelMetrics } from '@
|
|
7
|
+
import type { SessionMetrics, ModelMetrics } from '@zgsm/costrict-cli-core';
|
|
8
8
|
export declare enum ToolCallDecision {
|
|
9
9
|
ACCEPT = "accept",
|
|
10
10
|
REJECT = "reject",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { createContext, useCallback, useContext, useState, useMemo, useEffect, } from 'react';
|
|
3
|
-
import { uiTelemetryService, sessionId } from '@
|
|
3
|
+
import { uiTelemetryService, sessionId } from '@zgsm/costrict-cli-core';
|
|
4
4
|
export var ToolCallDecision;
|
|
5
5
|
(function (ToolCallDecision) {
|
|
6
6
|
ToolCallDecision["ACCEPT"] = "accept";
|
|
@@ -9,7 +9,7 @@ import { render } from '../../test-utils/render.js';
|
|
|
9
9
|
import { act } from 'react';
|
|
10
10
|
import { SessionStatsProvider, useSessionStats } from './SessionContext.js';
|
|
11
11
|
import { describe, it, expect, vi } from 'vitest';
|
|
12
|
-
import { uiTelemetryService } from '@
|
|
12
|
+
import { uiTelemetryService } from '@zgsm/costrict-cli-core';
|
|
13
13
|
class ErrorBoundary extends Component {
|
|
14
14
|
constructor(props) {
|
|
15
15
|
super(props);
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { type Key } from '../hooks/useKeypress.js';
|
|
7
7
|
import { type IdeIntegrationNudgeResult } from '../IdeIntegrationNudge.js';
|
|
8
8
|
import { type FolderTrustChoice } from '../components/FolderTrustDialog.js';
|
|
9
|
-
import { type AuthType, type EditorType } from '@
|
|
9
|
+
import { type AuthType, type EditorType } from '@zgsm/costrict-cli-core';
|
|
10
10
|
import { type LoadableSettingScope } from '../../config/settings.js';
|
|
11
11
|
import type { AuthState } from '../types.js';
|
|
12
12
|
import { type PermissionsDialogProps } from '../components/PermissionsModifyTrustDialog.js';
|
|
@@ -7,7 +7,7 @@ import { createContext, useContext } from 'react';
|
|
|
7
7
|
import {} from '../hooks/useKeypress.js';
|
|
8
8
|
import {} from '../IdeIntegrationNudge.js';
|
|
9
9
|
import {} from '../components/FolderTrustDialog.js';
|
|
10
|
-
import {} from '@
|
|
10
|
+
import {} from '@zgsm/costrict-cli-core';
|
|
11
11
|
import {} from '../../config/settings.js';
|
|
12
12
|
import {} from '../components/PermissionsModifyTrustDialog.js';
|
|
13
13
|
export const UIActionsContext = createContext(null);
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import type { HistoryItem, ThoughtSummary, ConsoleMessageItem, ShellConfirmationRequest, ConfirmationRequest, LoopDetectionConfirmationRequest, HistoryItemWithoutId, StreamingState } from '../types.js';
|
|
7
7
|
import type { CommandContext, SlashCommand } from '../commands/types.js';
|
|
8
8
|
import type { TextBuffer } from '../components/shared/text-buffer.js';
|
|
9
|
-
import type { IdeContext, ApprovalMode, UserTierId, IdeInfo, FallbackIntent } from '@
|
|
9
|
+
import type { IdeContext, ApprovalMode, UserTierId, IdeInfo, FallbackIntent } from '@zgsm/costrict-cli-core';
|
|
10
10
|
import type { DOMElement } from 'ink';
|
|
11
11
|
import type { SessionStatsState } from '../contexts/SessionContext.js';
|
|
12
12
|
import type { ExtensionUpdateState } from '../state/extensions.js';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2025 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { type EditorType } from '@
|
|
6
|
+
import { type EditorType } from '@zgsm/costrict-cli-core';
|
|
7
7
|
export interface EditorDisplay {
|
|
8
8
|
name: string;
|
|
9
9
|
type: EditorType | 'not_set';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2025 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { allowEditorTypeInSandbox, checkHasEditorType, EDITOR_DISPLAY_NAMES, } from '@
|
|
6
|
+
import { allowEditorTypeInSandbox, checkHasEditorType, EDITOR_DISPLAY_NAMES, } from '@zgsm/costrict-cli-core';
|
|
7
7
|
class EditorSettingsManager {
|
|
8
8
|
availableEditors;
|
|
9
9
|
constructor() {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
import type { PartListUnion } from '@google/genai';
|
|
7
|
-
import type { Config } from '@
|
|
7
|
+
import type { Config } from '@zgsm/costrict-cli-core';
|
|
8
8
|
import type { UseHistoryManagerReturn } from './useHistoryManager.js';
|
|
9
9
|
interface HandleAtCommandParams {
|
|
10
10
|
query: string;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import * as fs from 'node:fs/promises';
|
|
7
7
|
import * as path from 'node:path';
|
|
8
|
-
import { debugLogger, getErrorMessage, isNodeError, unescapePath, ReadManyFilesTool, } from '@
|
|
8
|
+
import { debugLogger, getErrorMessage, isNodeError, unescapePath, ReadManyFilesTool, } from '@zgsm/costrict-cli-core';
|
|
9
9
|
import { Buffer } from 'node:buffer';
|
|
10
10
|
import { ToolCallStatus } from '../types.js';
|
|
11
11
|
/**
|
|
@@ -7,8 +7,8 @@ import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
|
|
|
7
7
|
import { handleAtCommand } from './atCommandProcessor.js';
|
|
8
8
|
import { FileDiscoveryService, GlobTool, ReadManyFilesTool, StandardFileSystemService, ToolRegistry, COMMON_IGNORE_PATTERNS,
|
|
9
9
|
// DEFAULT_FILE_EXCLUDES,
|
|
10
|
-
} from '@
|
|
11
|
-
import * as core from '@
|
|
10
|
+
} from '@zgsm/costrict-cli-core';
|
|
11
|
+
import * as core from '@zgsm/costrict-cli-core';
|
|
12
12
|
import * as os from 'node:os';
|
|
13
13
|
import { ToolCallStatus } from '../types.js';
|
|
14
14
|
import * as fsPromises from 'node:fs/promises';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
import type { HistoryItemWithoutId } from '../types.js';
|
|
7
|
-
import type { Config, GeminiClient } from '@
|
|
7
|
+
import type { Config, GeminiClient } from '@zgsm/costrict-cli-core';
|
|
8
8
|
import { type PartListUnion } from '@google/genai';
|
|
9
9
|
import type { UseHistoryManagerReturn } from './useHistoryManager.js';
|
|
10
10
|
export declare const OUTPUT_UPDATE_INTERVAL_MS = 1000;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { ToolCallStatus } from '../types.js';
|
|
7
7
|
import { useCallback, useState } from 'react';
|
|
8
|
-
import { isBinary, ShellExecutionService } from '@
|
|
8
|
+
import { isBinary, ShellExecutionService } from '@zgsm/costrict-cli-core';
|
|
9
9
|
import {} from '@google/genai';
|
|
10
10
|
import { SHELL_COMMAND_NAME } from '../constants.js';
|
|
11
11
|
import { formatMemoryUsage } from '../utils/formatters.js';
|
|
@@ -10,7 +10,7 @@ import { waitFor } from '../../test-utils/async.js';
|
|
|
10
10
|
import { vi, describe, it, expect, beforeEach, afterEach, } from 'vitest';
|
|
11
11
|
const mockIsBinary = vi.hoisted(() => vi.fn());
|
|
12
12
|
const mockShellExecutionService = vi.hoisted(() => vi.fn());
|
|
13
|
-
vi.mock('@
|
|
13
|
+
vi.mock('@zgsm/costrict-cli-core', async (importOriginal) => {
|
|
14
14
|
const actual = await importOriginal();
|
|
15
15
|
return {
|
|
16
16
|
...actual,
|
|
@@ -35,7 +35,7 @@ vi.mock('node:os', async (importOriginal) => {
|
|
|
35
35
|
vi.mock('node:crypto');
|
|
36
36
|
vi.mock('../utils/textUtils.js');
|
|
37
37
|
import { useShellCommandProcessor, OUTPUT_UPDATE_INTERVAL_MS, } from './shellCommandProcessor.js';
|
|
38
|
-
import {} from '@
|
|
38
|
+
import {} from '@zgsm/costrict-cli-core';
|
|
39
39
|
import * as fs from 'node:fs';
|
|
40
40
|
import * as os from 'node:os';
|
|
41
41
|
import * as path from 'node:path';
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { type PartListUnion } from '@google/genai';
|
|
7
7
|
import type { UseHistoryManagerReturn } from './useHistoryManager.js';
|
|
8
|
-
import type { Config } from '@
|
|
9
|
-
import { ToolConfirmationOutcome } from '@
|
|
8
|
+
import type { Config } from '@zgsm/costrict-cli-core';
|
|
9
|
+
import { ToolConfirmationOutcome } from '@zgsm/costrict-cli-core';
|
|
10
10
|
import type { HistoryItemWithoutId, SlashCommandProcessorResult, HistoryItem, ConfirmationRequest } from '../types.js';
|
|
11
11
|
import type { LoadedSettings } from '../../config/settings.js';
|
|
12
12
|
import { type CommandContext, type SlashCommand } from '../commands/types.js';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { useCallback, useMemo, useEffect, useState } from 'react';
|
|
7
7
|
import {} from '@google/genai';
|
|
8
8
|
import process from 'node:process';
|
|
9
|
-
import { GitService, Logger, logSlashCommand, makeSlashCommandEvent, SlashCommandStatus, ToolConfirmationOutcome, Storage, IdeClient, } from '@
|
|
9
|
+
import { GitService, Logger, logSlashCommand, makeSlashCommandEvent, SlashCommandStatus, ToolConfirmationOutcome, Storage, IdeClient, } from '@zgsm/costrict-cli-core';
|
|
10
10
|
import { useSessionStats } from '../contexts/SessionContext.js';
|
|
11
11
|
import { MessageType } from '../types.js';
|
|
12
12
|
import {} from '../commands/types.js';
|
|
@@ -13,7 +13,7 @@ import { MessageType } from '../types.js';
|
|
|
13
13
|
import { BuiltinCommandLoader } from '../../services/BuiltinCommandLoader.js';
|
|
14
14
|
import { FileCommandLoader } from '../../services/FileCommandLoader.js';
|
|
15
15
|
import { McpPromptLoader } from '../../services/McpPromptLoader.js';
|
|
16
|
-
import { SlashCommandStatus, ToolConfirmationOutcome, makeFakeConfig, } from '@
|
|
16
|
+
import { SlashCommandStatus, ToolConfirmationOutcome, makeFakeConfig, } from '@zgsm/costrict-cli-core';
|
|
17
17
|
import { appEvents } from '../../utils/events.js';
|
|
18
18
|
const { logSlashCommand, mockBuiltinLoadCommands, mockFileLoadCommands, mockMcpLoadCommands, mockIdeClientGetInstance, mockUseAlternateBuffer, } = vi.hoisted(() => ({
|
|
19
19
|
logSlashCommand: vi.fn(),
|
|
@@ -29,7 +29,7 @@ const { logSlashCommand, mockBuiltinLoadCommands, mockFileLoadCommands, mockMcpL
|
|
|
29
29
|
vi.mock('./useAlternateBuffer.js', () => ({
|
|
30
30
|
useAlternateBuffer: mockUseAlternateBuffer,
|
|
31
31
|
}));
|
|
32
|
-
vi.mock('@
|
|
32
|
+
vi.mock('@zgsm/costrict-cli-core', async (importOriginal) => {
|
|
33
33
|
const original = await importOriginal();
|
|
34
34
|
return {
|
|
35
35
|
...original,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2025 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import type { Config } from '@
|
|
6
|
+
import type { Config } from '@zgsm/costrict-cli-core';
|
|
7
7
|
import type { Suggestion } from '../components/SuggestionsDisplay.js';
|
|
8
8
|
export declare enum AtCompletionStatus {
|
|
9
9
|
IDLE = "idle",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
import { useEffect, useReducer, useRef } from 'react';
|
|
7
|
-
import { FileSearchFactory, escapePath } from '@
|
|
7
|
+
import { FileSearchFactory, escapePath } from '@zgsm/costrict-cli-core';
|
|
8
8
|
import { MAX_SUGGESTIONS_TO_SHOW } from '../components/SuggestionsDisplay.js';
|
|
9
9
|
import { AsyncFzf } from 'fzf';
|
|
10
10
|
export var AtCompletionStatus;
|
|
@@ -8,7 +8,7 @@ import { act, useState } from 'react';
|
|
|
8
8
|
import { renderHook } from '../../test-utils/render.js';
|
|
9
9
|
import { waitFor } from '../../test-utils/async.js';
|
|
10
10
|
import { useAtCompletion } from './useAtCompletion.js';
|
|
11
|
-
import { FileSearchFactory } from '@
|
|
11
|
+
import { FileSearchFactory } from '@zgsm/costrict-cli-core';
|
|
12
12
|
import { createTmpDir, cleanupTmpDir } from '@google/gemini-cli-test-utils';
|
|
13
13
|
// Test harness to capture the state from the hook's callbacks.
|
|
14
14
|
function useTestHarnessForAtCompletion(enabled, pattern, config, cwd) {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2025 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { ApprovalMode, type Config } from '@
|
|
6
|
+
import { ApprovalMode, type Config } from '@zgsm/costrict-cli-core';
|
|
7
7
|
import type { HistoryItemWithoutId } from '../types.js';
|
|
8
8
|
export interface UseAutoAcceptIndicatorArgs {
|
|
9
9
|
config: Config;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
import { useState, useEffect } from 'react';
|
|
7
|
-
import { ApprovalMode } from '@
|
|
7
|
+
import { ApprovalMode } from '@zgsm/costrict-cli-core';
|
|
8
8
|
import { useKeypress } from './useKeypress.js';
|
|
9
9
|
import { MessageType } from '../types.js';
|
|
10
10
|
export function useAutoAcceptIndicator({ config, addItem, onApprovalModeChange, }) {
|
|
@@ -7,12 +7,12 @@ import { describe, it, expect, vi, beforeEach, } from 'vitest';
|
|
|
7
7
|
import { act } from 'react';
|
|
8
8
|
import { renderHook } from '../../test-utils/render.js';
|
|
9
9
|
import { useAutoAcceptIndicator } from './useAutoAcceptIndicator.js';
|
|
10
|
-
import { Config, ApprovalMode } from '@
|
|
10
|
+
import { Config, ApprovalMode } from '@zgsm/costrict-cli-core';
|
|
11
11
|
import { useKeypress } from './useKeypress.js';
|
|
12
12
|
import { MessageType } from '../types.js';
|
|
13
13
|
vi.mock('./useKeypress.js');
|
|
14
|
-
vi.mock('@
|
|
15
|
-
const actualServerModule = await vi.importActual('@
|
|
14
|
+
vi.mock('@zgsm/costrict-cli-core', async () => {
|
|
15
|
+
const actualServerModule = await vi.importActual('@zgsm/costrict-cli-core');
|
|
16
16
|
return {
|
|
17
17
|
...actualServerModule,
|
|
18
18
|
Config: vi.fn(),
|
|
@@ -7,7 +7,7 @@ import type { Suggestion } from '../components/SuggestionsDisplay.js';
|
|
|
7
7
|
import type { CommandContext, SlashCommand } from '../commands/types.js';
|
|
8
8
|
import type { TextBuffer } from '../components/shared/text-buffer.js';
|
|
9
9
|
import type { PromptCompletion } from './usePromptCompletion.js';
|
|
10
|
-
import type { Config } from '@
|
|
10
|
+
import type { Config } from '@zgsm/costrict-cli-core';
|
|
11
11
|
export declare enum CompletionMode {
|
|
12
12
|
IDLE = "IDLE",
|
|
13
13
|
AT = "AT",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
import { useCallback, useEffect, useReducer, useRef, useTransition, } from 'react';
|
|
7
|
-
import { coreEvents, CoreEvent, } from '@
|
|
7
|
+
import { coreEvents, CoreEvent, } from '@zgsm/costrict-cli-core';
|
|
8
8
|
function consoleMessagesReducer(state, action) {
|
|
9
9
|
switch (action.type) {
|
|
10
10
|
case 'ADD_MESSAGES': {
|
|
@@ -8,10 +8,10 @@ import { act, useCallback } from 'react';
|
|
|
8
8
|
import { vi } from 'vitest';
|
|
9
9
|
import { render } from '../../test-utils/render.js';
|
|
10
10
|
import { useConsoleMessages } from './useConsoleMessages.js';
|
|
11
|
-
import { CoreEvent } from '@
|
|
11
|
+
import { CoreEvent } from '@zgsm/costrict-cli-core';
|
|
12
12
|
// Mock coreEvents
|
|
13
13
|
let consoleLogHandler;
|
|
14
|
-
vi.mock('@
|
|
14
|
+
vi.mock('@zgsm/costrict-cli-core', async (importOriginal) => {
|
|
15
15
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
16
16
|
const actual = (await importOriginal());
|
|
17
17
|
return {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
import type { LoadableSettingScope, LoadedSettings } from '../../config/settings.js';
|
|
7
|
-
import type { EditorType } from '@
|
|
7
|
+
import type { EditorType } from '@zgsm/costrict-cli-core';
|
|
8
8
|
import type { UseHistoryManagerReturn } from './useHistoryManager.js';
|
|
9
9
|
interface UseEditorSettingsReturn {
|
|
10
10
|
isEditorDialogOpen: boolean;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { useState, useCallback } from 'react';
|
|
7
7
|
import { MessageType } from '../types.js';
|
|
8
|
-
import { allowEditorTypeInSandbox, checkHasEditorType, getEditorDisplayName, } from '@
|
|
8
|
+
import { allowEditorTypeInSandbox, checkHasEditorType, getEditorDisplayName, } from '@zgsm/costrict-cli-core';
|
|
9
9
|
import { SettingPaths } from '../../config/settingPaths.js';
|
|
10
10
|
export const useEditorSettings = (loadedSettings, setEditorError, addItem) => {
|
|
11
11
|
const [isEditorDialogOpen, setIsEditorDialogOpen] = useState(false);
|
|
@@ -10,10 +10,10 @@ import { render } from '../../test-utils/render.js';
|
|
|
10
10
|
import { useEditorSettings } from './useEditorSettings.js';
|
|
11
11
|
import { SettingScope } from '../../config/settings.js';
|
|
12
12
|
import { MessageType } from '../types.js';
|
|
13
|
-
import { checkHasEditorType, allowEditorTypeInSandbox, } from '@
|
|
13
|
+
import { checkHasEditorType, allowEditorTypeInSandbox, } from '@zgsm/costrict-cli-core';
|
|
14
14
|
import { SettingPaths } from '../../config/settingPaths.js';
|
|
15
|
-
vi.mock('@
|
|
16
|
-
const actual = await vi.importActual('@
|
|
15
|
+
vi.mock('@zgsm/costrict-cli-core', async () => {
|
|
16
|
+
const actual = await vi.importActual('@zgsm/costrict-cli-core');
|
|
17
17
|
return {
|
|
18
18
|
...actual,
|
|
19
19
|
checkHasEditorType: vi.fn(() => true),
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2025 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { debugLogger } from '@
|
|
6
|
+
import { debugLogger } from '@zgsm/costrict-cli-core';
|
|
7
7
|
import { getErrorMessage } from '../../utils/errors.js';
|
|
8
8
|
import { ExtensionUpdateState, extensionUpdatesReducer, initialExtensionUpdatesState, } from '../state/extensions.js';
|
|
9
9
|
import { useCallback, useEffect, useMemo, useReducer } from 'react';
|
|
@@ -10,7 +10,7 @@ import * as os from 'node:os';
|
|
|
10
10
|
import * as path from 'node:path';
|
|
11
11
|
import { createExtension } from '../../test-utils/createExtension.js';
|
|
12
12
|
import { useExtensionUpdates } from './useExtensionUpdates.js';
|
|
13
|
-
import { GEMINI_DIR } from '@
|
|
13
|
+
import { GEMINI_DIR } from '@zgsm/costrict-cli-core';
|
|
14
14
|
import { render } from '../../test-utils/render.js';
|
|
15
15
|
import { waitFor } from '../../test-utils/async.js';
|
|
16
16
|
import { MessageType } from '../types.js';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { measureElement } from 'ink';
|
|
7
7
|
import { useEffect } from 'react';
|
|
8
8
|
import { useConfig } from '../contexts/ConfigContext.js';
|
|
9
|
-
import { recordFlickerFrame } from '@
|
|
9
|
+
import { recordFlickerFrame } from '@zgsm/costrict-cli-core';
|
|
10
10
|
import { appEvents, AppEvent } from '../../utils/events.js';
|
|
11
11
|
import { useUIState } from '../contexts/UIStateContext.js';
|
|
12
12
|
/**
|
|
@@ -7,15 +7,15 @@ import { renderHook } from '../../test-utils/render.js';
|
|
|
7
7
|
import { vi } from 'vitest';
|
|
8
8
|
import { useFlickerDetector } from './useFlickerDetector.js';
|
|
9
9
|
import { useConfig } from '../contexts/ConfigContext.js';
|
|
10
|
-
import { recordFlickerFrame } from '@
|
|
11
|
-
import {} from '@
|
|
10
|
+
import { recordFlickerFrame } from '@zgsm/costrict-cli-core';
|
|
11
|
+
import {} from '@zgsm/costrict-cli-core';
|
|
12
12
|
import { measureElement } from 'ink';
|
|
13
13
|
import { useUIState } from '../contexts/UIStateContext.js';
|
|
14
14
|
import { appEvents, AppEvent } from '../../utils/events.js';
|
|
15
15
|
// Mock dependencies
|
|
16
16
|
vi.mock('../contexts/ConfigContext.js');
|
|
17
17
|
vi.mock('../contexts/UIStateContext.js');
|
|
18
|
-
vi.mock('@
|
|
18
|
+
vi.mock('@zgsm/costrict-cli-core', async (importOriginal) => {
|
|
19
19
|
const actual = await importOriginal();
|
|
20
20
|
return {
|
|
21
21
|
...actual,
|
|
@@ -8,7 +8,7 @@ import { FolderTrustChoice } from '../components/FolderTrustDialog.js';
|
|
|
8
8
|
import { loadTrustedFolders, TrustLevel, isWorkspaceTrusted, } from '../../config/trustedFolders.js';
|
|
9
9
|
import * as process from 'node:process';
|
|
10
10
|
import { MessageType } from '../types.js';
|
|
11
|
-
import { coreEvents, ExitCodes } from '@
|
|
11
|
+
import { coreEvents, ExitCodes } from '@zgsm/costrict-cli-core';
|
|
12
12
|
import { runExitCleanup } from '../../utils/cleanup.js';
|
|
13
13
|
export const useFolderTrust = (settings, onTrustChange, addItem) => {
|
|
14
14
|
const [isTrusted, setIsTrusted] = useState(undefined);
|
|
@@ -11,7 +11,7 @@ import { useFolderTrust } from './useFolderTrust.js';
|
|
|
11
11
|
import { FolderTrustChoice } from '../components/FolderTrustDialog.js';
|
|
12
12
|
import { TrustLevel } from '../../config/trustedFolders.js';
|
|
13
13
|
import * as trustedFolders from '../../config/trustedFolders.js';
|
|
14
|
-
import { coreEvents, ExitCodes } from '@
|
|
14
|
+
import { coreEvents, ExitCodes } from '@zgsm/costrict-cli-core';
|
|
15
15
|
const mockedCwd = vi.hoisted(() => vi.fn());
|
|
16
16
|
const mockedExit = vi.hoisted(() => vi.fn());
|
|
17
17
|
vi.mock('node:process', async () => {
|