@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
|
@@ -27,7 +27,7 @@ import * as path from 'node:path';
|
|
|
27
27
|
import { exec } from 'node:child_process';
|
|
28
28
|
import { promisify } from 'node:util';
|
|
29
29
|
import { isKittyProtocolEnabled } from './kittyProtocolDetector.js';
|
|
30
|
-
import { debugLogger } from '@
|
|
30
|
+
import { debugLogger } from '@zgsm/costrict-cli-core';
|
|
31
31
|
export const VSCODE_SHIFT_ENTER_SEQUENCE = '\\\r\n';
|
|
32
32
|
const execAsync = promisify(exec);
|
|
33
33
|
/**
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import latestVersion from 'latest-version';
|
|
7
7
|
import semver from 'semver';
|
|
8
|
-
import { getPackageJson, debugLogger } from '@
|
|
8
|
+
import { getPackageJson, debugLogger } from '@zgsm/costrict-cli-core';
|
|
9
9
|
import { fileURLToPath } from 'node:url';
|
|
10
10
|
import path from 'node:path';
|
|
11
11
|
const __filename = fileURLToPath(import.meta.url);
|
|
@@ -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
|
export declare function registerCleanup(fn: (() => void) | (() => Promise<void>)): void;
|
|
8
8
|
export declare function registerSyncCleanup(fn: () => void): void;
|
|
9
9
|
export declare function runSyncCleanup(): void;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { promises as fs } from 'node:fs';
|
|
7
7
|
import { join } from 'node:path';
|
|
8
|
-
import { Storage, shutdownTelemetry, isTelemetrySdkInitialized, } from '@
|
|
8
|
+
import { Storage, shutdownTelemetry, isTelemetrySdkInitialized, } from '@zgsm/costrict-cli-core';
|
|
9
9
|
const cleanupFunctions = [];
|
|
10
10
|
const syncCleanupFunctions = [];
|
|
11
11
|
let configForTelemetry = null;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { vi, describe, it, expect, beforeEach } from 'vitest';
|
|
7
7
|
import { promises as fs } from 'node:fs';
|
|
8
8
|
import * as path from 'node:path';
|
|
9
|
-
vi.mock('@
|
|
9
|
+
vi.mock('@zgsm/costrict-cli-core', () => ({
|
|
10
10
|
Storage: vi.fn().mockImplementation(() => ({
|
|
11
11
|
getProjectTempDir: vi.fn().mockReturnValue('/tmp/project'),
|
|
12
12
|
})),
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import * as fs from 'node:fs';
|
|
7
7
|
import { parse, stringify } from 'comment-json';
|
|
8
|
-
import { coreEvents } from '@
|
|
8
|
+
import { coreEvents } from '@zgsm/costrict-cli-core';
|
|
9
9
|
/**
|
|
10
10
|
* Updates a JSON file while preserving comments and formatting.
|
|
11
11
|
*/
|
|
@@ -8,8 +8,8 @@ import * as fs from 'node:fs';
|
|
|
8
8
|
import * as path from 'node:path';
|
|
9
9
|
import * as os from 'node:os';
|
|
10
10
|
import { updateSettingsFilePreservingFormat } from './commentJson.js';
|
|
11
|
-
import { coreEvents } from '@
|
|
12
|
-
vi.mock('@
|
|
11
|
+
import { coreEvents } from '@zgsm/costrict-cli-core';
|
|
12
|
+
vi.mock('@zgsm/costrict-cli-core', () => ({
|
|
13
13
|
coreEvents: {
|
|
14
14
|
emitFeedback: vi.fn(),
|
|
15
15
|
},
|
|
@@ -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
|
export declare function getErrorMessage(error: unknown): string;
|
|
8
8
|
/**
|
|
9
9
|
* Handles errors consistently for both JSON and text output formats.
|
package/dist/src/utils/errors.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2025 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { OutputFormat, JsonFormatter, StreamJsonFormatter, JsonStreamEventType, uiTelemetryService, parseAndFormatApiError, FatalTurnLimitedError, FatalCancellationError, FatalToolExecutionError, isFatalToolError, } from '@
|
|
6
|
+
import { OutputFormat, JsonFormatter, StreamJsonFormatter, JsonStreamEventType, uiTelemetryService, parseAndFormatApiError, FatalTurnLimitedError, FatalCancellationError, FatalToolExecutionError, isFatalToolError, } from '@zgsm/costrict-cli-core';
|
|
7
7
|
import { runSyncCleanup } from './cleanup.js';
|
|
8
8
|
export function getErrorMessage(error) {
|
|
9
9
|
if (error instanceof Error) {
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
import { vi } from 'vitest';
|
|
7
|
-
import { OutputFormat, FatalInputError } from '@
|
|
7
|
+
import { OutputFormat, FatalInputError } from '@zgsm/costrict-cli-core';
|
|
8
8
|
import { getErrorMessage, handleError, handleToolError, handleCancellationError, handleMaxTurnsExceededError, } from './errors.js';
|
|
9
9
|
// Mock the core modules
|
|
10
|
-
vi.mock('@
|
|
10
|
+
vi.mock('@zgsm/costrict-cli-core', async (importOriginal) => {
|
|
11
11
|
const original = await importOriginal();
|
|
12
12
|
return {
|
|
13
13
|
...original,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2025 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import type { ExtensionEvents, McpClient } from '@
|
|
6
|
+
import type { ExtensionEvents, McpClient } from '@zgsm/costrict-cli-core';
|
|
7
7
|
import { EventEmitter } from 'node:events';
|
|
8
8
|
export declare enum AppEvent {
|
|
9
9
|
OpenDebugConsole = "open-debug-console",
|
|
@@ -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 { execSync } from 'node:child_process';
|
|
8
8
|
import { ProxyAgent } from 'undici';
|
|
9
9
|
/**
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2025 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { debugLogger, isGitRepository } from '@
|
|
6
|
+
import { debugLogger, isGitRepository } from '@zgsm/costrict-cli-core';
|
|
7
7
|
import * as fs from 'node:fs';
|
|
8
8
|
import * as path from 'node:path';
|
|
9
9
|
import * as childProcess from 'node:child_process';
|
|
@@ -8,8 +8,8 @@ import { getInstallationInfo, PackageManager } from './installationInfo.js';
|
|
|
8
8
|
import * as fs from 'node:fs';
|
|
9
9
|
import * as path from 'node:path';
|
|
10
10
|
import * as childProcess from 'node:child_process';
|
|
11
|
-
import { isGitRepository, debugLogger } from '@
|
|
12
|
-
vi.mock('@
|
|
11
|
+
import { isGitRepository, debugLogger } from '@zgsm/costrict-cli-core';
|
|
12
|
+
vi.mock('@zgsm/costrict-cli-core', async (importOriginal) => {
|
|
13
13
|
const actual = await importOriginal();
|
|
14
14
|
return {
|
|
15
15
|
...actual,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2025 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { Storage, debugLogger } from '@
|
|
6
|
+
import { Storage, debugLogger } from '@zgsm/costrict-cli-core';
|
|
7
7
|
import * as fs from 'node:fs';
|
|
8
8
|
import * as path from 'node:path';
|
|
9
9
|
const STATE_FILENAME = 'state.json';
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
import { describe, it, expect, vi, beforeEach } from 'vitest';
|
|
7
7
|
import * as fs from 'node:fs';
|
|
8
8
|
import * as path from 'node:path';
|
|
9
|
-
import { Storage, debugLogger } from '@
|
|
9
|
+
import { Storage, debugLogger } from '@zgsm/costrict-cli-core';
|
|
10
10
|
import { PersistentState } from './persistentState.js';
|
|
11
11
|
vi.mock('node:fs');
|
|
12
|
-
vi.mock('@
|
|
12
|
+
vi.mock('@zgsm/costrict-cli-core', () => ({
|
|
13
13
|
Storage: {
|
|
14
14
|
getGlobalGeminiDir: vi.fn(),
|
|
15
15
|
},
|
|
@@ -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
|
export async function readStdin() {
|
|
8
8
|
const MAX_STDIN_SIZE = 8 * 1024 * 1024; // 8MB
|
|
9
9
|
return new Promise((resolve, reject) => {
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { vi, describe, expect, it, beforeEach, afterEach } from 'vitest';
|
|
7
7
|
import { readStdin } from './readStdin.js';
|
|
8
|
-
import { debugLogger } from '@
|
|
9
|
-
vi.mock('@
|
|
8
|
+
import { debugLogger } from '@zgsm/costrict-cli-core';
|
|
9
|
+
vi.mock('@zgsm/costrict-cli-core', () => ({
|
|
10
10
|
debugLogger: {
|
|
11
11
|
warn: vi.fn(),
|
|
12
12
|
},
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* Copyright 2025 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import type { Config, SandboxConfig } from '@
|
|
6
|
+
import type { Config, SandboxConfig } from '@zgsm/costrict-cli-core';
|
|
7
7
|
export declare function start_sandbox(config: SandboxConfig, nodeArgs?: string[], cliConfig?: Config, cliArgs?: string[]): Promise<number>;
|
|
@@ -11,7 +11,7 @@ import { fileURLToPath } from 'node:url';
|
|
|
11
11
|
import { quote, parse } from 'shell-quote';
|
|
12
12
|
import { USER_SETTINGS_DIR } from '../config/settings.js';
|
|
13
13
|
import { promisify } from 'node:util';
|
|
14
|
-
import { coreEvents, debugLogger, FatalSandboxError, GEMINI_DIR, } from '@
|
|
14
|
+
import { coreEvents, debugLogger, FatalSandboxError, GEMINI_DIR, } from '@zgsm/costrict-cli-core';
|
|
15
15
|
import { ConsolePatcher } from '../ui/utils/ConsolePatcher.js';
|
|
16
16
|
import { randomBytes } from 'node:crypto';
|
|
17
17
|
import { getContainerPath, shouldUseCurrentUserInSandbox, parseImageName, ports, entrypoint, LOCAL_DEV_SANDBOX_IMAGE_NAME, SANDBOX_NETWORK_NAME, SANDBOX_PROXY_NAME, BUILTIN_SEATBELT_PROFILES, } from './sandboxUtils.js';
|
|
@@ -8,7 +8,7 @@ import { spawn, exec, execSync } from 'node:child_process';
|
|
|
8
8
|
import os from 'node:os';
|
|
9
9
|
import fs from 'node:fs';
|
|
10
10
|
import { start_sandbox } from './sandbox.js';
|
|
11
|
-
import { FatalSandboxError } from '@
|
|
11
|
+
import { FatalSandboxError } from '@zgsm/costrict-cli-core';
|
|
12
12
|
import { EventEmitter } from 'node:events';
|
|
13
13
|
vi.mock('../config/settings.js', () => ({
|
|
14
14
|
USER_SETTINGS_DIR: '/home/user/.gemini',
|
|
@@ -42,7 +42,7 @@ vi.mock('node:util', async (importOriginal) => {
|
|
|
42
42
|
},
|
|
43
43
|
};
|
|
44
44
|
});
|
|
45
|
-
vi.mock('@
|
|
45
|
+
vi.mock('@zgsm/costrict-cli-core', async (importOriginal) => {
|
|
46
46
|
const actual = await importOriginal();
|
|
47
47
|
return {
|
|
48
48
|
...actual,
|
|
@@ -7,7 +7,7 @@ import os from 'node:os';
|
|
|
7
7
|
import fs from 'node:fs';
|
|
8
8
|
import { readFile } from 'node:fs/promises';
|
|
9
9
|
import { quote } from 'shell-quote';
|
|
10
|
-
import { debugLogger, GEMINI_DIR } from '@
|
|
10
|
+
import { debugLogger, GEMINI_DIR } from '@zgsm/costrict-cli-core';
|
|
11
11
|
export const LOCAL_DEV_SANDBOX_IMAGE_NAME = 'gemini-cli-sandbox';
|
|
12
12
|
export const SANDBOX_NETWORK_NAME = 'gemini-cli-sandbox';
|
|
13
13
|
export const SANDBOX_PROXY_NAME = 'gemini-cli-sandbox-proxy';
|
|
@@ -11,7 +11,7 @@ import { getContainerPath, parseImageName, ports, entrypoint, shouldUseCurrentUs
|
|
|
11
11
|
vi.mock('node:os');
|
|
12
12
|
vi.mock('node:fs');
|
|
13
13
|
vi.mock('node:fs/promises');
|
|
14
|
-
vi.mock('@
|
|
14
|
+
vi.mock('@zgsm/costrict-cli-core', () => ({
|
|
15
15
|
debugLogger: {
|
|
16
16
|
log: vi.fn(),
|
|
17
17
|
warn: vi.fn(),
|
|
@@ -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 { Settings } from '../config/settings.js';
|
|
8
8
|
export declare const DEFAULT_MIN_RETENTION: string;
|
|
9
9
|
/**
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { describe, it, expect, vi } from 'vitest';
|
|
7
7
|
import { cleanupExpiredSessions } from './sessionCleanup.js';
|
|
8
|
-
import { SESSION_FILE_PREFIX } from '@
|
|
8
|
+
import { SESSION_FILE_PREFIX } from '@zgsm/costrict-cli-core';
|
|
9
9
|
// Create a mock config for integration testing
|
|
10
10
|
function createTestConfig() {
|
|
11
11
|
return {
|
|
@@ -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 } from '@
|
|
8
|
+
import { debugLogger } from '@zgsm/costrict-cli-core';
|
|
9
9
|
import { getAllSessionFiles } from './sessionUtils.js';
|
|
10
10
|
// Constants
|
|
11
11
|
export const DEFAULT_MIN_RETENTION = '1d';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
|
|
7
7
|
import * as fs from 'node:fs/promises';
|
|
8
8
|
import * as path from 'node:path';
|
|
9
|
-
import { SESSION_FILE_PREFIX, debugLogger, } from '@
|
|
9
|
+
import { SESSION_FILE_PREFIX, debugLogger, } from '@zgsm/costrict-cli-core';
|
|
10
10
|
import { cleanupExpiredSessions } from './sessionCleanup.js';
|
|
11
11
|
import { getAllSessionFiles } from './sessionUtils.js';
|
|
12
12
|
// Mock the fs module
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2025 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import type { Config, ConversationRecord, MessageRecord } from '@
|
|
6
|
+
import type { Config, ConversationRecord, MessageRecord } from '@zgsm/costrict-cli-core';
|
|
7
7
|
/**
|
|
8
8
|
* Constant for the resume "latest" identifier.
|
|
9
9
|
* Used when --resume is passed without a value to select the most recent session.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2025 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { partListUnionToString, SESSION_FILE_PREFIX, } from '@
|
|
6
|
+
import { partListUnionToString, SESSION_FILE_PREFIX, } from '@zgsm/costrict-cli-core';
|
|
7
7
|
import * as fs from 'node:fs/promises';
|
|
8
8
|
import path from 'node:path';
|
|
9
9
|
import { stripUnsafeCharacters } from '../ui/utils/textUtils.js';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { describe, it, expect, beforeEach, afterEach } from 'vitest';
|
|
7
7
|
import { SessionSelector, extractFirstUserMessage, formatRelativeTime, hasUserOrAssistantMessage, } from './sessionUtils.js';
|
|
8
|
-
import { SESSION_FILE_PREFIX } from '@
|
|
8
|
+
import { SESSION_FILE_PREFIX } from '@zgsm/costrict-cli-core';
|
|
9
9
|
import * as fs from 'node:fs/promises';
|
|
10
10
|
import path from 'node:path';
|
|
11
11
|
import { randomUUID } from 'node:crypto';
|
|
@@ -3,6 +3,6 @@
|
|
|
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
|
export declare function listSessions(config: Config): Promise<void>;
|
|
8
8
|
export declare function deleteSession(config: Config, sessionIndex: string): Promise<void>;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2025 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { ChatRecordingService, generateSummary, } from '@
|
|
6
|
+
import { ChatRecordingService, generateSummary, } from '@zgsm/costrict-cli-core';
|
|
7
7
|
import { formatRelativeTime, SessionSelector, } from './sessionUtils.js';
|
|
8
8
|
export async function listSessions(config) {
|
|
9
9
|
// Generate summary for most recent session if needed
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
|
|
7
|
-
import { ChatRecordingService } from '@
|
|
7
|
+
import { ChatRecordingService } from '@zgsm/costrict-cli-core';
|
|
8
8
|
import { listSessions, deleteSession } from './sessions.js';
|
|
9
9
|
import { SessionSelector } from './sessionUtils.js';
|
|
10
10
|
// Mock the SessionSelector and ChatRecordingService
|
|
@@ -12,8 +12,8 @@ vi.mock('./sessionUtils.js', () => ({
|
|
|
12
12
|
SessionSelector: vi.fn(),
|
|
13
13
|
formatRelativeTime: vi.fn(() => 'some time ago'),
|
|
14
14
|
}));
|
|
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
|
ChatRecordingService: vi.fn(),
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import fs from 'node:fs/promises';
|
|
7
7
|
import os from 'node:os';
|
|
8
8
|
import { join as pathJoin } from 'node:path';
|
|
9
|
-
import { getErrorMessage } from '@
|
|
9
|
+
import { getErrorMessage } from '@zgsm/costrict-cli-core';
|
|
10
10
|
const warningsFilePath = pathJoin(os.tmpdir(), 'gemini-cli-warnings.txt');
|
|
11
11
|
export async function getStartupWarnings() {
|
|
12
12
|
try {
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
import { describe, it, expect, vi, beforeEach } from 'vitest';
|
|
7
7
|
import { getStartupWarnings } from './startupWarnings.js';
|
|
8
8
|
import * as fs from 'node:fs/promises';
|
|
9
|
-
import { getErrorMessage } from '@
|
|
9
|
+
import { getErrorMessage } from '@zgsm/costrict-cli-core';
|
|
10
10
|
vi.mock('node:fs/promises', { spy: true });
|
|
11
|
-
vi.mock('@
|
|
11
|
+
vi.mock('@zgsm/costrict-cli-core', async (importOriginal) => {
|
|
12
12
|
const actual = await importOriginal();
|
|
13
13
|
return {
|
|
14
14
|
...actual,
|
|
@@ -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 '@
|
|
7
|
-
import { AuthType } from '@
|
|
6
|
+
import type { Config } from '@zgsm/costrict-cli-core';
|
|
7
|
+
import { AuthType } from '@zgsm/costrict-cli-core';
|
|
8
8
|
import { type LoadedSettings } from './config/settings.js';
|
|
9
9
|
export declare function validateNonInteractiveAuth(configuredAuthType: AuthType | undefined, useExternalAuth: boolean | undefined, nonInteractiveConfig: Config, settings: LoadedSettings): Promise<Config>;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2025 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { AuthType, debugLogger, OutputFormat, ExitCodes, } from '@
|
|
6
|
+
import { AuthType, debugLogger, OutputFormat, ExitCodes, } from '@zgsm/costrict-cli-core';
|
|
7
7
|
import { USER_SETTINGS_PATH } from './config/settings.js';
|
|
8
8
|
import { validateAuthMethod } from './config/auth.js';
|
|
9
9
|
import {} from './config/settings.js';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { describe, it, expect, vi, beforeEach, afterEach, } from 'vitest';
|
|
7
7
|
import { validateNonInteractiveAuth } from './validateNonInterActiveAuth.js';
|
|
8
|
-
import { AuthType, OutputFormat, makeFakeConfig, debugLogger, ExitCodes, } from '@
|
|
8
|
+
import { AuthType, OutputFormat, makeFakeConfig, debugLogger, ExitCodes, } from '@zgsm/costrict-cli-core';
|
|
9
9
|
import * as auth from './config/auth.js';
|
|
10
10
|
import {} from './config/settings.js';
|
|
11
11
|
function createLocalMockConfig(overrides = {}) {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
import { z } from 'zod';
|
|
7
|
-
import { coreEvents } from '@
|
|
7
|
+
import { coreEvents } from '@zgsm/costrict-cli-core';
|
|
8
8
|
import {} from './schema.js';
|
|
9
9
|
export class RequestError extends Error {
|
|
10
10
|
code;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2025 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import type { FileSystemService } from '@
|
|
6
|
+
import type { FileSystemService } from '@zgsm/costrict-cli-core';
|
|
7
7
|
import type * as acp from './acp.js';
|
|
8
8
|
/**
|
|
9
9
|
* ACP client-based implementation of FileSystemService
|