fss-link 1.2.6 → 1.2.7
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/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/dist/.last_build +0 -0
- package/dist/index.d.ts +0 -7
- package/dist/index.js +0 -14
- package/dist/index.js.map +0 -1
- package/dist/package.json +0 -89
- package/dist/src/commands/mcp/add.d.ts +0 -7
- package/dist/src/commands/mcp/add.js +0 -166
- package/dist/src/commands/mcp/add.js.map +0 -1
- package/dist/src/commands/mcp/list.d.ts +0 -8
- package/dist/src/commands/mcp/list.js +0 -110
- package/dist/src/commands/mcp/list.js.map +0 -1
- package/dist/src/commands/mcp/remove.d.ts +0 -7
- package/dist/src/commands/mcp/remove.js +0 -44
- package/dist/src/commands/mcp/remove.js.map +0 -1
- package/dist/src/commands/mcp.d.ts +0 -7
- package/dist/src/commands/mcp.js +0 -23
- package/dist/src/commands/mcp.js.map +0 -1
- package/dist/src/config/archive-repository-pattern/README.md +0 -26
- package/dist/src/config/archive-repository-pattern/base-repository.d.ts +0 -252
- package/dist/src/config/archive-repository-pattern/base-repository.js +0 -280
- package/dist/src/config/archive-repository-pattern/base-repository.js.map +0 -1
- package/dist/src/config/archive-repository-pattern/model-repository.d.ts +0 -274
- package/dist/src/config/archive-repository-pattern/model-repository.js +0 -482
- package/dist/src/config/archive-repository-pattern/model-repository.js.map +0 -1
- package/dist/src/config/archive-repository-pattern/preferences-repository.d.ts +0 -307
- package/dist/src/config/archive-repository-pattern/preferences-repository.js +0 -604
- package/dist/src/config/archive-repository-pattern/preferences-repository.js.map +0 -1
- package/dist/src/config/archive-repository-pattern/repository-types.d.ts +0 -166
- package/dist/src/config/archive-repository-pattern/repository-types.js +0 -67
- package/dist/src/config/archive-repository-pattern/repository-types.js.map +0 -1
- package/dist/src/config/archive-repository-pattern/settings-repository.d.ts +0 -274
- package/dist/src/config/archive-repository-pattern/settings-repository.js +0 -531
- package/dist/src/config/archive-repository-pattern/settings-repository.js.map +0 -1
- package/dist/src/config/async-mutex.d.ts +0 -61
- package/dist/src/config/async-mutex.js +0 -121
- package/dist/src/config/async-mutex.js.map +0 -1
- package/dist/src/config/async-mutex.test.d.ts +0 -6
- package/dist/src/config/async-mutex.test.js +0 -271
- package/dist/src/config/async-mutex.test.js.map +0 -1
- package/dist/src/config/auth-stress-simplified.test.d.ts +0 -6
- package/dist/src/config/auth-stress-simplified.test.js +0 -329
- package/dist/src/config/auth-stress-simplified.test.js.map +0 -1
- package/dist/src/config/auth-stress.test.d.ts +0 -9
- package/dist/src/config/auth-stress.test.js +0 -544
- package/dist/src/config/auth-stress.test.js.map +0 -1
- package/dist/src/config/auth.d.ts +0 -96
- package/dist/src/config/auth.js +0 -371
- package/dist/src/config/auth.js.map +0 -1
- package/dist/src/config/auth.test.d.ts +0 -6
- package/dist/src/config/auth.test.js +0 -61
- package/dist/src/config/auth.test.js.map +0 -1
- package/dist/src/config/base-repository.d.ts +0 -252
- package/dist/src/config/base-repository.js +0 -272
- package/dist/src/config/base-repository.js.map +0 -1
- package/dist/src/config/config.d.ts +0 -51
- package/dist/src/config/config.js +0 -553
- package/dist/src/config/config.js.map +0 -1
- package/dist/src/config/core-database.d.ts +0 -112
- package/dist/src/config/core-database.js +0 -370
- package/dist/src/config/core-database.js.map +0 -1
- package/dist/src/config/database-integration.test.d.ts +0 -6
- package/dist/src/config/database-integration.test.js +0 -547
- package/dist/src/config/database-integration.test.js.map +0 -1
- package/dist/src/config/database-legacy-wrapper.d.ts +0 -202
- package/dist/src/config/database-legacy-wrapper.js +0 -391
- package/dist/src/config/database-legacy-wrapper.js.map +0 -1
- package/dist/src/config/database-monitor.d.ts +0 -135
- package/dist/src/config/database-monitor.js +0 -306
- package/dist/src/config/database-monitor.js.map +0 -1
- package/dist/src/config/database-queue.d.ts +0 -106
- package/dist/src/config/database-queue.js +0 -187
- package/dist/src/config/database-queue.js.map +0 -1
- package/dist/src/config/database-queue.test.d.ts +0 -6
- package/dist/src/config/database-queue.test.js +0 -344
- package/dist/src/config/database-queue.test.js.map +0 -1
- package/dist/src/config/database-regression-simple.test.d.ts +0 -6
- package/dist/src/config/database-regression-simple.test.js +0 -335
- package/dist/src/config/database-regression-simple.test.js.map +0 -1
- package/dist/src/config/database-regression.test.d.ts +0 -6
- package/dist/src/config/database-regression.test.js +0 -523
- package/dist/src/config/database-regression.test.js.map +0 -1
- package/dist/src/config/database-stress.test.d.ts +0 -6
- package/dist/src/config/database-stress.test.js +0 -522
- package/dist/src/config/database-stress.test.js.map +0 -1
- package/dist/src/config/database-utils.d.ts +0 -281
- package/dist/src/config/database-utils.js +0 -664
- package/dist/src/config/database-utils.js.map +0 -1
- package/dist/src/config/database-utils.test.d.ts +0 -6
- package/dist/src/config/database-utils.test.js +0 -278
- package/dist/src/config/database-utils.test.js.map +0 -1
- package/dist/src/config/database.d.ts +0 -212
- package/dist/src/config/database.js +0 -458
- package/dist/src/config/database.js.map +0 -1
- package/dist/src/config/databaseBackup.d.ts +0 -114
- package/dist/src/config/databaseBackup.js +0 -334
- package/dist/src/config/databaseBackup.js.map +0 -1
- package/dist/src/config/databaseHealthMonitor.d.ts +0 -86
- package/dist/src/config/databaseHealthMonitor.js +0 -180
- package/dist/src/config/databaseHealthMonitor.js.map +0 -1
- package/dist/src/config/databaseMetrics.d.ts +0 -147
- package/dist/src/config/databaseMetrics.js +0 -369
- package/dist/src/config/databaseMetrics.js.map +0 -1
- package/dist/src/config/databaseMigrations.d.ts +0 -75
- package/dist/src/config/databaseMigrations.js +0 -405
- package/dist/src/config/databaseMigrations.js.map +0 -1
- package/dist/src/config/databasePool.d.ts +0 -72
- package/dist/src/config/databasePool.js +0 -226
- package/dist/src/config/databasePool.js.map +0 -1
- package/dist/src/config/databaseSchemaValidator.d.ts +0 -114
- package/dist/src/config/databaseSchemaValidator.js +0 -497
- package/dist/src/config/databaseSchemaValidator.js.map +0 -1
- package/dist/src/config/extension.d.ts +0 -23
- package/dist/src/config/extension.js +0 -126
- package/dist/src/config/extension.js.map +0 -1
- package/dist/src/config/health-database.d.ts +0 -172
- package/dist/src/config/health-database.js +0 -283
- package/dist/src/config/health-database.js.map +0 -1
- package/dist/src/config/keyBindings.d.ts +0 -66
- package/dist/src/config/keyBindings.js +0 -141
- package/dist/src/config/keyBindings.js.map +0 -1
- package/dist/src/config/keyBindings.test.d.ts +0 -6
- package/dist/src/config/keyBindings.test.js +0 -51
- package/dist/src/config/keyBindings.test.js.map +0 -1
- package/dist/src/config/model-database.d.ts +0 -157
- package/dist/src/config/model-database.js +0 -379
- package/dist/src/config/model-database.js.map +0 -1
- package/dist/src/config/model-repository.d.ts +0 -274
- package/dist/src/config/model-repository.js +0 -482
- package/dist/src/config/model-repository.js.map +0 -1
- package/dist/src/config/modelManager.d.ts +0 -146
- package/dist/src/config/modelManager.js +0 -573
- package/dist/src/config/modelManager.js.map +0 -1
- package/dist/src/config/preferences-database.d.ts +0 -101
- package/dist/src/config/preferences-database.js +0 -209
- package/dist/src/config/preferences-database.js.map +0 -1
- package/dist/src/config/preferences-repository.d.ts +0 -307
- package/dist/src/config/preferences-repository.js +0 -604
- package/dist/src/config/preferences-repository.js.map +0 -1
- package/dist/src/config/provider-database.d.ts +0 -102
- package/dist/src/config/provider-database.js +0 -250
- package/dist/src/config/provider-database.js.map +0 -1
- package/dist/src/config/providerPersistence.d.ts +0 -82
- package/dist/src/config/providerPersistence.js +0 -62
- package/dist/src/config/providerPersistence.js.map +0 -1
- package/dist/src/config/queryOptimizer.d.ts +0 -127
- package/dist/src/config/queryOptimizer.js +0 -330
- package/dist/src/config/queryOptimizer.js.map +0 -1
- package/dist/src/config/repository-types.d.ts +0 -166
- package/dist/src/config/repository-types.js +0 -67
- package/dist/src/config/repository-types.js.map +0 -1
- package/dist/src/config/sandboxConfig.d.ts +0 -13
- package/dist/src/config/sandboxConfig.js +0 -75
- package/dist/src/config/sandboxConfig.js.map +0 -1
- package/dist/src/config/settings-repository.d.ts +0 -274
- package/dist/src/config/settings-repository.js +0 -531
- package/dist/src/config/settings-repository.js.map +0 -1
- package/dist/src/config/settings.d.ts +0 -56
- package/dist/src/config/settings.js +0 -411
- package/dist/src/config/settings.js.map +0 -1
- package/dist/src/config/settingsSchema.d.ts +0 -703
- package/dist/src/config/settingsSchema.js +0 -679
- package/dist/src/config/settingsSchema.js.map +0 -1
- package/dist/src/config/settingsSchema.test.d.ts +0 -6
- package/dist/src/config/settingsSchema.test.js +0 -195
- package/dist/src/config/settingsSchema.test.js.map +0 -1
- package/dist/src/config/trustedFolders.d.ts +0 -37
- package/dist/src/config/trustedFolders.js +0 -118
- package/dist/src/config/trustedFolders.js.map +0 -1
- package/dist/src/config/trustedFolders.test.d.ts +0 -6
- package/dist/src/config/trustedFolders.test.js +0 -160
- package/dist/src/config/trustedFolders.test.js.map +0 -1
- package/dist/src/config/unified-database.d.ts +0 -383
- package/dist/src/config/unified-database.js +0 -651
- package/dist/src/config/unified-database.js.map +0 -1
- package/dist/src/config/unified-database.test.d.ts +0 -6
- package/dist/src/config/unified-database.test.js +0 -162
- package/dist/src/config/unified-database.test.js.map +0 -1
- package/dist/src/gemini.d.ts +0 -9
- package/dist/src/gemini.js +0 -334
- package/dist/src/gemini.js.map +0 -1
- package/dist/src/gemini.test.d.ts +0 -6
- package/dist/src/gemini.test.js +0 -193
- package/dist/src/gemini.test.js.map +0 -1
- package/dist/src/generated/git-commit.d.ts +0 -7
- package/dist/src/generated/git-commit.js +0 -10
- package/dist/src/generated/git-commit.js.map +0 -1
- package/dist/src/nonInteractiveCli.d.ts +0 -7
- package/dist/src/nonInteractiveCli.js +0 -103
- package/dist/src/nonInteractiveCli.js.map +0 -1
- package/dist/src/patches/is-in-ci.d.ts +0 -7
- package/dist/src/patches/is-in-ci.js +0 -15
- package/dist/src/patches/is-in-ci.js.map +0 -1
- package/dist/src/services/BuiltinCommandLoader.d.ts +0 -24
- package/dist/src/services/BuiltinCommandLoader.js +0 -92
- package/dist/src/services/BuiltinCommandLoader.js.map +0 -1
- package/dist/src/services/BuiltinCommandLoader.test.d.ts +0 -6
- package/dist/src/services/BuiltinCommandLoader.test.js +0 -108
- package/dist/src/services/BuiltinCommandLoader.test.js.map +0 -1
- package/dist/src/services/CommandService.d.ts +0 -55
- package/dist/src/services/CommandService.js +0 -90
- package/dist/src/services/CommandService.js.map +0 -1
- package/dist/src/services/CommandService.test.d.ts +0 -6
- package/dist/src/services/CommandService.test.js +0 -232
- package/dist/src/services/CommandService.test.js.map +0 -1
- package/dist/src/services/FileCommandLoader.d.ts +0 -49
- package/dist/src/services/FileCommandLoader.js +0 -210
- package/dist/src/services/FileCommandLoader.js.map +0 -1
- package/dist/src/services/McpPromptLoader.d.ts +0 -25
- package/dist/src/services/McpPromptLoader.js +0 -192
- package/dist/src/services/McpPromptLoader.js.map +0 -1
- package/dist/src/services/SearchEngineConfigProvider.d.ts +0 -33
- package/dist/src/services/SearchEngineConfigProvider.js +0 -82
- package/dist/src/services/SearchEngineConfigProvider.js.map +0 -1
- package/dist/src/services/prompt-processors/argumentProcessor.d.ts +0 -16
- package/dist/src/services/prompt-processors/argumentProcessor.js +0 -20
- package/dist/src/services/prompt-processors/argumentProcessor.js.map +0 -1
- package/dist/src/services/prompt-processors/shellProcessor.d.ts +0 -35
- package/dist/src/services/prompt-processors/shellProcessor.js +0 -162
- package/dist/src/services/prompt-processors/shellProcessor.js.map +0 -1
- package/dist/src/services/prompt-processors/types.d.ts +0 -40
- package/dist/src/services/prompt-processors/types.js +0 -16
- package/dist/src/services/prompt-processors/types.js.map +0 -1
- package/dist/src/services/types.d.ts +0 -22
- package/dist/src/services/types.js +0 -7
- package/dist/src/services/types.js.map +0 -1
- package/dist/src/test-utils/customMatchers.d.ts +0 -14
- package/dist/src/test-utils/customMatchers.js +0 -46
- package/dist/src/test-utils/customMatchers.js.map +0 -1
- package/dist/src/test-utils/mockCommandContext.d.ts +0 -18
- package/dist/src/test-utils/mockCommandContext.js +0 -87
- package/dist/src/test-utils/mockCommandContext.js.map +0 -1
- package/dist/src/test-utils/mockCommandContext.test.d.ts +0 -6
- package/dist/src/test-utils/mockCommandContext.test.js +0 -51
- package/dist/src/test-utils/mockCommandContext.test.js.map +0 -1
- package/dist/src/test-utils/render.d.ts +0 -8
- package/dist/src/test-utils/render.js +0 -10
- package/dist/src/test-utils/render.js.map +0 -1
- package/dist/src/ui/App.d.ts +0 -15
- package/dist/src/ui/App.js +0 -687
- package/dist/src/ui/App.js.map +0 -1
- package/dist/src/ui/IdeIntegrationNudge.d.ts +0 -16
- package/dist/src/ui/IdeIntegrationNudge.js +0 -52
- package/dist/src/ui/IdeIntegrationNudge.js.map +0 -1
- package/dist/src/ui/colors.d.ts +0 -7
- package/dist/src/ui/colors.js +0 -54
- package/dist/src/ui/colors.js.map +0 -1
- package/dist/src/ui/commands/aboutCommand.d.ts +0 -7
- package/dist/src/ui/commands/aboutCommand.js +0 -43
- package/dist/src/ui/commands/aboutCommand.js.map +0 -1
- package/dist/src/ui/commands/authCommand.d.ts +0 -7
- package/dist/src/ui/commands/authCommand.js +0 -16
- package/dist/src/ui/commands/authCommand.js.map +0 -1
- package/dist/src/ui/commands/bugCommand.d.ts +0 -7
- package/dist/src/ui/commands/bugCommand.js +0 -71
- package/dist/src/ui/commands/bugCommand.js.map +0 -1
- package/dist/src/ui/commands/chatCommand.d.ts +0 -7
- package/dist/src/ui/commands/chatCommand.js +0 -234
- package/dist/src/ui/commands/chatCommand.js.map +0 -1
- package/dist/src/ui/commands/clearCommand.d.ts +0 -7
- package/dist/src/ui/commands/clearCommand.js +0 -27
- package/dist/src/ui/commands/clearCommand.js.map +0 -1
- package/dist/src/ui/commands/compressCommand.d.ts +0 -7
- package/dist/src/ui/commands/compressCommand.js +0 -64
- package/dist/src/ui/commands/compressCommand.js.map +0 -1
- package/dist/src/ui/commands/contextCommand.d.ts +0 -7
- package/dist/src/ui/commands/contextCommand.js +0 -115
- package/dist/src/ui/commands/contextCommand.js.map +0 -1
- package/dist/src/ui/commands/copyCommand.d.ts +0 -7
- package/dist/src/ui/commands/copyCommand.js +0 -59
- package/dist/src/ui/commands/copyCommand.js.map +0 -1
- package/dist/src/ui/commands/corgiCommand.d.ts +0 -7
- package/dist/src/ui/commands/corgiCommand.js +0 -15
- package/dist/src/ui/commands/corgiCommand.js.map +0 -1
- package/dist/src/ui/commands/directoryCommand.d.ts +0 -8
- package/dist/src/ui/commands/directoryCommand.js +0 -133
- package/dist/src/ui/commands/directoryCommand.js.map +0 -1
- package/dist/src/ui/commands/docsCommand.d.ts +0 -7
- package/dist/src/ui/commands/docsCommand.js +0 -31
- package/dist/src/ui/commands/docsCommand.js.map +0 -1
- package/dist/src/ui/commands/editorCommand.d.ts +0 -7
- package/dist/src/ui/commands/editorCommand.js +0 -16
- package/dist/src/ui/commands/editorCommand.js.map +0 -1
- package/dist/src/ui/commands/extensionsCommand.d.ts +0 -7
- package/dist/src/ui/commands/extensionsCommand.js +0 -31
- package/dist/src/ui/commands/extensionsCommand.js.map +0 -1
- package/dist/src/ui/commands/helpCommand.d.ts +0 -7
- package/dist/src/ui/commands/helpCommand.js +0 -21
- package/dist/src/ui/commands/helpCommand.js.map +0 -1
- package/dist/src/ui/commands/ideCommand.d.ts +0 -8
- package/dist/src/ui/commands/ideCommand.js +0 -218
- package/dist/src/ui/commands/ideCommand.js.map +0 -1
- package/dist/src/ui/commands/initCommand.d.ts +0 -7
- package/dist/src/ui/commands/initCommand.js +0 -105
- package/dist/src/ui/commands/initCommand.js.map +0 -1
- package/dist/src/ui/commands/mcpCommand.d.ts +0 -7
- package/dist/src/ui/commands/mcpCommand.js +0 -424
- package/dist/src/ui/commands/mcpCommand.js.map +0 -1
- package/dist/src/ui/commands/memoryCommand.d.ts +0 -7
- package/dist/src/ui/commands/memoryCommand.js +0 -224
- package/dist/src/ui/commands/memoryCommand.js.map +0 -1
- package/dist/src/ui/commands/privacyCommand.d.ts +0 -7
- package/dist/src/ui/commands/privacyCommand.js +0 -16
- package/dist/src/ui/commands/privacyCommand.js.map +0 -1
- package/dist/src/ui/commands/quitCommand.d.ts +0 -7
- package/dist/src/ui/commands/quitCommand.js +0 -34
- package/dist/src/ui/commands/quitCommand.js.map +0 -1
- package/dist/src/ui/commands/restoreCommand.d.ts +0 -8
- package/dist/src/ui/commands/restoreCommand.js +0 -128
- package/dist/src/ui/commands/restoreCommand.js.map +0 -1
- package/dist/src/ui/commands/searchEngineSetupCommand.d.ts +0 -7
- package/dist/src/ui/commands/searchEngineSetupCommand.js +0 -17
- package/dist/src/ui/commands/searchEngineSetupCommand.js.map +0 -1
- package/dist/src/ui/commands/settingsCommand.d.ts +0 -7
- package/dist/src/ui/commands/settingsCommand.js +0 -16
- package/dist/src/ui/commands/settingsCommand.js.map +0 -1
- package/dist/src/ui/commands/setupGithubCommand.d.ts +0 -9
- package/dist/src/ui/commands/setupGithubCommand.js +0 -154
- package/dist/src/ui/commands/setupGithubCommand.js.map +0 -1
- package/dist/src/ui/commands/setupGithubCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/setupGithubCommand.test.js +0 -167
- package/dist/src/ui/commands/setupGithubCommand.test.js.map +0 -1
- package/dist/src/ui/commands/speakCommand.d.ts +0 -7
- package/dist/src/ui/commands/speakCommand.js +0 -136
- package/dist/src/ui/commands/speakCommand.js.map +0 -1
- package/dist/src/ui/commands/statsCommand.d.ts +0 -7
- package/dist/src/ui/commands/statsCommand.js +0 -54
- package/dist/src/ui/commands/statsCommand.js.map +0 -1
- package/dist/src/ui/commands/terminalSetupCommand.d.ts +0 -13
- package/dist/src/ui/commands/terminalSetupCommand.js +0 -41
- package/dist/src/ui/commands/terminalSetupCommand.js.map +0 -1
- package/dist/src/ui/commands/themeCommand.d.ts +0 -7
- package/dist/src/ui/commands/themeCommand.js +0 -16
- package/dist/src/ui/commands/themeCommand.js.map +0 -1
- package/dist/src/ui/commands/toolsCommand.d.ts +0 -7
- package/dist/src/ui/commands/toolsCommand.js +0 -56
- package/dist/src/ui/commands/toolsCommand.js.map +0 -1
- package/dist/src/ui/commands/ttsCommand.d.ts +0 -7
- package/dist/src/ui/commands/ttsCommand.js +0 -122
- package/dist/src/ui/commands/ttsCommand.js.map +0 -1
- package/dist/src/ui/commands/types.d.ts +0 -157
- package/dist/src/ui/commands/types.js +0 -12
- package/dist/src/ui/commands/types.js.map +0 -1
- package/dist/src/ui/commands/vimCommand.d.ts +0 -7
- package/dist/src/ui/commands/vimCommand.js +0 -23
- package/dist/src/ui/commands/vimCommand.js.map +0 -1
- package/dist/src/ui/commands/voiceCommand.d.ts +0 -7
- package/dist/src/ui/commands/voiceCommand.js +0 -95
- package/dist/src/ui/commands/voiceCommand.js.map +0 -1
- package/dist/src/ui/components/AboutBox.d.ts +0 -17
- package/dist/src/ui/components/AboutBox.js +0 -6
- package/dist/src/ui/components/AboutBox.js.map +0 -1
- package/dist/src/ui/components/AsciiArt.d.ts +0 -8
- package/dist/src/ui/components/AsciiArt.js +0 -53
- package/dist/src/ui/components/AsciiArt.js.map +0 -1
- package/dist/src/ui/components/AuthDialog.d.ts +0 -15
- package/dist/src/ui/components/AuthDialog.js +0 -174
- package/dist/src/ui/components/AuthDialog.js.map +0 -1
- package/dist/src/ui/components/AuthDialog.test.d.ts +0 -6
- package/dist/src/ui/components/AuthDialog.test.js +0 -220
- package/dist/src/ui/components/AuthDialog.test.js.map +0 -1
- package/dist/src/ui/components/AuthInProgress.d.ts +0 -11
- package/dist/src/ui/components/AuthInProgress.js +0 -28
- package/dist/src/ui/components/AuthInProgress.js.map +0 -1
- package/dist/src/ui/components/AutoAcceptIndicator.d.ts +0 -12
- package/dist/src/ui/components/AutoAcceptIndicator.js +0 -26
- package/dist/src/ui/components/AutoAcceptIndicator.js.map +0 -1
- package/dist/src/ui/components/ConsoleSummaryDisplay.d.ts +0 -11
- package/dist/src/ui/components/ConsoleSummaryDisplay.js +0 -11
- package/dist/src/ui/components/ConsoleSummaryDisplay.js.map +0 -1
- package/dist/src/ui/components/ContextSummaryDisplay.d.ts +0 -20
- package/dist/src/ui/components/ContextSummaryDisplay.js +0 -65
- package/dist/src/ui/components/ContextSummaryDisplay.js.map +0 -1
- package/dist/src/ui/components/ContextUsageDisplay.d.ts +0 -11
- package/dist/src/ui/components/ContextUsageDisplay.js +0 -100
- package/dist/src/ui/components/ContextUsageDisplay.js.map +0 -1
- package/dist/src/ui/components/DebugProfiler.d.ts +0 -6
- package/dist/src/ui/components/DebugProfiler.js +0 -27
- package/dist/src/ui/components/DebugProfiler.js.map +0 -1
- package/dist/src/ui/components/DetailedMessagesDisplay.d.ts +0 -14
- package/dist/src/ui/components/DetailedMessagesDisplay.js +0 -34
- package/dist/src/ui/components/DetailedMessagesDisplay.js.map +0 -1
- package/dist/src/ui/components/EditorSettingsDialog.d.ts +0 -15
- package/dist/src/ui/components/EditorSettingsDialog.js +0 -74
- package/dist/src/ui/components/EditorSettingsDialog.js.map +0 -1
- package/dist/src/ui/components/FolderTrustDialog.d.ts +0 -16
- package/dist/src/ui/components/FolderTrustDialog.js +0 -39
- package/dist/src/ui/components/FolderTrustDialog.js.map +0 -1
- package/dist/src/ui/components/FolderTrustDialog.test.d.ts +0 -6
- package/dist/src/ui/components/FolderTrustDialog.test.js +0 -26
- package/dist/src/ui/components/FolderTrustDialog.test.js.map +0 -1
- package/dist/src/ui/components/Footer.d.ts +0 -24
- package/dist/src/ui/components/Footer.js +0 -25
- package/dist/src/ui/components/Footer.js.map +0 -1
- package/dist/src/ui/components/GeminiRespondingSpinner.d.ts +0 -17
- package/dist/src/ui/components/GeminiRespondingSpinner.js +0 -16
- package/dist/src/ui/components/GeminiRespondingSpinner.js.map +0 -1
- package/dist/src/ui/components/Header.d.ts +0 -13
- package/dist/src/ui/components/Header.js +0 -28
- package/dist/src/ui/components/Header.js.map +0 -1
- package/dist/src/ui/components/Header.test.d.ts +0 -6
- package/dist/src/ui/components/Header.test.js +0 -37
- package/dist/src/ui/components/Header.test.js.map +0 -1
- package/dist/src/ui/components/Help.d.ts +0 -12
- package/dist/src/ui/components/Help.js +0 -10
- package/dist/src/ui/components/Help.js.map +0 -1
- package/dist/src/ui/components/HistoryItemDisplay.d.ts +0 -20
- package/dist/src/ui/components/HistoryItemDisplay.js +0 -18
- package/dist/src/ui/components/HistoryItemDisplay.js.map +0 -1
- package/dist/src/ui/components/HistoryItemDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/HistoryItemDisplay.test.js +0 -91
- package/dist/src/ui/components/HistoryItemDisplay.test.js.map +0 -1
- package/dist/src/ui/components/InputPrompt.d.ts +0 -28
- package/dist/src/ui/components/InputPrompt.js +0 -440
- package/dist/src/ui/components/InputPrompt.js.map +0 -1
- package/dist/src/ui/components/LMStudioModelPrompt.d.ts +0 -12
- package/dist/src/ui/components/LMStudioModelPrompt.js +0 -100
- package/dist/src/ui/components/LMStudioModelPrompt.js.map +0 -1
- package/dist/src/ui/components/LoadingIndicator.d.ts +0 -15
- package/dist/src/ui/components/LoadingIndicator.js +0 -25
- package/dist/src/ui/components/LoadingIndicator.js.map +0 -1
- package/dist/src/ui/components/LoadingIndicator.test.d.ts +0 -6
- package/dist/src/ui/components/LoadingIndicator.test.js +0 -190
- package/dist/src/ui/components/LoadingIndicator.test.js.map +0 -1
- package/dist/src/ui/components/MemoryUsageDisplay.d.ts +0 -7
- package/dist/src/ui/components/MemoryUsageDisplay.js +0 -27
- package/dist/src/ui/components/MemoryUsageDisplay.js.map +0 -1
- package/dist/src/ui/components/ModelStatsDisplay.d.ts +0 -7
- package/dist/src/ui/components/ModelStatsDisplay.js +0 -33
- package/dist/src/ui/components/ModelStatsDisplay.js.map +0 -1
- package/dist/src/ui/components/OllamaModelPrompt.d.ts +0 -12
- package/dist/src/ui/components/OllamaModelPrompt.js +0 -94
- package/dist/src/ui/components/OllamaModelPrompt.js.map +0 -1
- package/dist/src/ui/components/OpenAIEndpointDialog.d.ts +0 -18
- package/dist/src/ui/components/OpenAIEndpointDialog.js +0 -77
- package/dist/src/ui/components/OpenAIEndpointDialog.js.map +0 -1
- package/dist/src/ui/components/OpenAIKeyPrompt.d.ts +0 -13
- package/dist/src/ui/components/OpenAIKeyPrompt.js +0 -118
- package/dist/src/ui/components/OpenAIKeyPrompt.js.map +0 -1
- package/dist/src/ui/components/OpenAIKeyPrompt.test.d.ts +0 -6
- package/dist/src/ui/components/OpenAIKeyPrompt.test.js +0 -44
- package/dist/src/ui/components/OpenAIKeyPrompt.test.js.map +0 -1
- package/dist/src/ui/components/PrepareLabel.d.ts +0 -15
- package/dist/src/ui/components/PrepareLabel.js +0 -16
- package/dist/src/ui/components/PrepareLabel.js.map +0 -1
- package/dist/src/ui/components/SearchEngineConfigDialog.d.ts +0 -18
- package/dist/src/ui/components/SearchEngineConfigDialog.js +0 -180
- package/dist/src/ui/components/SearchEngineConfigDialog.js.map +0 -1
- package/dist/src/ui/components/SessionSummaryDisplay.d.ts +0 -11
- package/dist/src/ui/components/SessionSummaryDisplay.js +0 -4
- package/dist/src/ui/components/SessionSummaryDisplay.js.map +0 -1
- package/dist/src/ui/components/SettingsDialog.d.ts +0 -14
- package/dist/src/ui/components/SettingsDialog.js +0 -519
- package/dist/src/ui/components/SettingsDialog.js.map +0 -1
- package/dist/src/ui/components/SettingsDialog.test.d.ts +0 -6
- package/dist/src/ui/components/SettingsDialog.test.js +0 -568
- package/dist/src/ui/components/SettingsDialog.test.js.map +0 -1
- package/dist/src/ui/components/ShellConfirmationDialog.d.ts +0 -15
- package/dist/src/ui/components/ShellConfirmationDialog.js +0 -46
- package/dist/src/ui/components/ShellConfirmationDialog.js.map +0 -1
- package/dist/src/ui/components/ShellConfirmationDialog.test.d.ts +0 -6
- package/dist/src/ui/components/ShellConfirmationDialog.test.js +0 -40
- package/dist/src/ui/components/ShellConfirmationDialog.test.js.map +0 -1
- package/dist/src/ui/components/ShellModeIndicator.d.ts +0 -7
- package/dist/src/ui/components/ShellModeIndicator.js +0 -5
- package/dist/src/ui/components/ShellModeIndicator.js.map +0 -1
- package/dist/src/ui/components/ShowMoreLines.d.ts +0 -10
- package/dist/src/ui/components/ShowMoreLines.js +0 -24
- package/dist/src/ui/components/ShowMoreLines.js.map +0 -1
- package/dist/src/ui/components/StatsDisplay.d.ts +0 -12
- package/dist/src/ui/components/StatsDisplay.js +0 -43
- package/dist/src/ui/components/StatsDisplay.js.map +0 -1
- package/dist/src/ui/components/SuggestionsDisplay.d.ts +0 -22
- package/dist/src/ui/components/SuggestionsDisplay.js +0 -32
- package/dist/src/ui/components/SuggestionsDisplay.js.map +0 -1
- package/dist/src/ui/components/ThemeDialog.d.ts +0 -19
- package/dist/src/ui/components/ThemeDialog.js +0 -143
- package/dist/src/ui/components/ThemeDialog.js.map +0 -1
- package/dist/src/ui/components/Tips.d.ts +0 -12
- package/dist/src/ui/components/Tips.js +0 -8
- package/dist/src/ui/components/Tips.js.map +0 -1
- package/dist/src/ui/components/TodoDisplay.d.ts +0 -16
- package/dist/src/ui/components/TodoDisplay.js +0 -27
- package/dist/src/ui/components/TodoDisplay.js.map +0 -1
- package/dist/src/ui/components/TodoDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/TodoDisplay.test.js +0 -77
- package/dist/src/ui/components/TodoDisplay.test.js.map +0 -1
- package/dist/src/ui/components/ToolStatsDisplay.d.ts +0 -7
- package/dist/src/ui/components/ToolStatsDisplay.js +0 -41
- package/dist/src/ui/components/ToolStatsDisplay.js.map +0 -1
- package/dist/src/ui/components/UpdateNotification.d.ts +0 -10
- package/dist/src/ui/components/UpdateNotification.js +0 -10
- package/dist/src/ui/components/UpdateNotification.js.map +0 -1
- package/dist/src/ui/components/WelcomeBackDialog.d.ts +0 -36
- package/dist/src/ui/components/WelcomeBackDialog.js +0 -109
- package/dist/src/ui/components/WelcomeBackDialog.js.map +0 -1
- package/dist/src/ui/components/messages/CompressionMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/CompressionMessage.js +0 -16
- package/dist/src/ui/components/messages/CompressionMessage.js.map +0 -1
- package/dist/src/ui/components/messages/DiffRenderer.d.ts +0 -16
- package/dist/src/ui/components/messages/DiffRenderer.js +0 -222
- package/dist/src/ui/components/messages/DiffRenderer.js.map +0 -1
- package/dist/src/ui/components/messages/DiffRenderer.test.d.ts +0 -6
- package/dist/src/ui/components/messages/DiffRenderer.test.js +0 -239
- package/dist/src/ui/components/messages/DiffRenderer.test.js.map +0 -1
- package/dist/src/ui/components/messages/ErrorMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/ErrorMessage.js +0 -9
- package/dist/src/ui/components/messages/ErrorMessage.js.map +0 -1
- package/dist/src/ui/components/messages/GeminiMessage.d.ts +0 -14
- package/dist/src/ui/components/messages/GeminiMessage.js +0 -10
- package/dist/src/ui/components/messages/GeminiMessage.js.map +0 -1
- package/dist/src/ui/components/messages/GeminiMessageContent.d.ts +0 -14
- package/dist/src/ui/components/messages/GeminiMessageContent.js +0 -15
- package/dist/src/ui/components/messages/GeminiMessageContent.js.map +0 -1
- package/dist/src/ui/components/messages/InfoMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/InfoMessage.js +0 -10
- package/dist/src/ui/components/messages/InfoMessage.js.map +0 -1
- package/dist/src/ui/components/messages/ToolConfirmationMessage.d.ts +0 -15
- package/dist/src/ui/components/messages/ToolConfirmationMessage.js +0 -145
- package/dist/src/ui/components/messages/ToolConfirmationMessage.js.map +0 -1
- package/dist/src/ui/components/messages/ToolConfirmationMessage.test.d.ts +0 -6
- package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js +0 -37
- package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js.map +0 -1
- package/dist/src/ui/components/messages/ToolGroupMessage.d.ts +0 -18
- package/dist/src/ui/components/messages/ToolGroupMessage.js +0 -55
- package/dist/src/ui/components/messages/ToolGroupMessage.js.map +0 -1
- package/dist/src/ui/components/messages/ToolMessage.d.ts +0 -15
- package/dist/src/ui/components/messages/ToolMessage.js +0 -111
- package/dist/src/ui/components/messages/ToolMessage.js.map +0 -1
- package/dist/src/ui/components/messages/ToolMessage.test.d.ts +0 -6
- package/dist/src/ui/components/messages/ToolMessage.test.js +0 -118
- package/dist/src/ui/components/messages/ToolMessage.test.js.map +0 -1
- package/dist/src/ui/components/messages/UserMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/UserMessage.js +0 -12
- package/dist/src/ui/components/messages/UserMessage.js.map +0 -1
- package/dist/src/ui/components/messages/UserShellMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/UserShellMessage.js +0 -9
- package/dist/src/ui/components/messages/UserShellMessage.js.map +0 -1
- package/dist/src/ui/components/shared/MaxSizedBox.d.ts +0 -61
- package/dist/src/ui/components/shared/MaxSizedBox.js +0 -451
- package/dist/src/ui/components/shared/MaxSizedBox.js.map +0 -1
- package/dist/src/ui/components/shared/MaxSizedBox.test.d.ts +0 -6
- package/dist/src/ui/components/shared/MaxSizedBox.test.js +0 -154
- package/dist/src/ui/components/shared/MaxSizedBox.test.js.map +0 -1
- package/dist/src/ui/components/shared/RadioButtonSelect.d.ts +0 -46
- package/dist/src/ui/components/shared/RadioButtonSelect.js +0 -121
- package/dist/src/ui/components/shared/RadioButtonSelect.js.map +0 -1
- package/dist/src/ui/components/shared/RadioButtonSelect.test.d.ts +0 -6
- package/dist/src/ui/components/shared/RadioButtonSelect.test.js +0 -111
- package/dist/src/ui/components/shared/RadioButtonSelect.test.js.map +0 -1
- package/dist/src/ui/components/shared/text-buffer.d.ts +0 -467
- package/dist/src/ui/components/shared/text-buffer.js +0 -1533
- package/dist/src/ui/components/shared/text-buffer.js.map +0 -1
- package/dist/src/ui/components/shared/vim-buffer-actions.d.ts +0 -72
- package/dist/src/ui/components/shared/vim-buffer-actions.js +0 -552
- package/dist/src/ui/components/shared/vim-buffer-actions.js.map +0 -1
- package/dist/src/ui/constants.d.ts +0 -9
- package/dist/src/ui/constants.js +0 -13
- package/dist/src/ui/constants.js.map +0 -1
- package/dist/src/ui/contexts/KeypressContext.d.ts +0 -30
- package/dist/src/ui/contexts/KeypressContext.js +0 -331
- package/dist/src/ui/contexts/KeypressContext.js.map +0 -1
- package/dist/src/ui/contexts/KeypressContext.test.d.ts +0 -6
- package/dist/src/ui/contexts/KeypressContext.test.js +0 -275
- package/dist/src/ui/contexts/KeypressContext.test.js.map +0 -1
- package/dist/src/ui/contexts/OverflowContext.d.ts +0 -19
- package/dist/src/ui/contexts/OverflowContext.js +0 -43
- package/dist/src/ui/contexts/OverflowContext.js.map +0 -1
- package/dist/src/ui/contexts/SessionContext.d.ts +0 -39
- package/dist/src/ui/contexts/SessionContext.js +0 -60
- package/dist/src/ui/contexts/SessionContext.js.map +0 -1
- package/dist/src/ui/contexts/SettingsContext.d.ts +0 -9
- package/dist/src/ui/contexts/SettingsContext.js +0 -15
- package/dist/src/ui/contexts/SettingsContext.js.map +0 -1
- package/dist/src/ui/contexts/StreamingContext.d.ts +0 -9
- package/dist/src/ui/contexts/StreamingContext.js +0 -15
- package/dist/src/ui/contexts/StreamingContext.js.map +0 -1
- package/dist/src/ui/contexts/VimModeContext.d.ts +0 -19
- package/dist/src/ui/contexts/VimModeContext.js +0 -48
- package/dist/src/ui/contexts/VimModeContext.js.map +0 -1
- package/dist/src/ui/editors/editorSettingsManager.d.ts +0 -19
- package/dist/src/ui/editors/editorSettingsManager.js +0 -47
- package/dist/src/ui/editors/editorSettingsManager.js.map +0 -1
- package/dist/src/ui/hooks/atCommandProcessor.d.ts +0 -31
- package/dist/src/ui/hooks/atCommandProcessor.js +0 -365
- package/dist/src/ui/hooks/atCommandProcessor.js.map +0 -1
- package/dist/src/ui/hooks/atCommandProcessor.test.d.ts +0 -6
- package/dist/src/ui/hooks/atCommandProcessor.test.js +0 -824
- package/dist/src/ui/hooks/atCommandProcessor.test.js.map +0 -1
- package/dist/src/ui/hooks/shellCommandProcessor.d.ts +0 -17
- package/dist/src/ui/hooks/shellCommandProcessor.js +0 -233
- package/dist/src/ui/hooks/shellCommandProcessor.js.map +0 -1
- package/dist/src/ui/hooks/shellCommandProcessor.test.d.ts +0 -6
- package/dist/src/ui/hooks/shellCommandProcessor.test.js +0 -328
- package/dist/src/ui/hooks/shellCommandProcessor.test.js.map +0 -1
- package/dist/src/ui/hooks/slashCommandProcessor.d.ts +0 -28
- package/dist/src/ui/hooks/slashCommandProcessor.js +0 -459
- package/dist/src/ui/hooks/slashCommandProcessor.js.map +0 -1
- package/dist/src/ui/hooks/useAtCompletion.d.ts +0 -23
- package/dist/src/ui/hooks/useAtCompletion.js +0 -179
- package/dist/src/ui/hooks/useAtCompletion.js.map +0 -1
- package/dist/src/ui/hooks/useAuthCommand.d.ts +0 -14
- package/dist/src/ui/hooks/useAuthCommand.js +0 -100
- package/dist/src/ui/hooks/useAuthCommand.js.map +0 -1
- package/dist/src/ui/hooks/useAutoAcceptIndicator.d.ts +0 -10
- package/dist/src/ui/hooks/useAutoAcceptIndicator.js +0 -37
- package/dist/src/ui/hooks/useAutoAcceptIndicator.js.map +0 -1
- package/dist/src/ui/hooks/useAutoAcceptIndicator.test.d.ts +0 -6
- package/dist/src/ui/hooks/useAutoAcceptIndicator.test.js +0 -190
- package/dist/src/ui/hooks/useAutoAcceptIndicator.test.js.map +0 -1
- package/dist/src/ui/hooks/useBracketedPaste.d.ts +0 -12
- package/dist/src/ui/hooks/useBracketedPaste.js +0 -32
- package/dist/src/ui/hooks/useBracketedPaste.js.map +0 -1
- package/dist/src/ui/hooks/useCommandCompletion.d.ts +0 -29
- package/dist/src/ui/hooks/useCommandCompletion.js +0 -165
- package/dist/src/ui/hooks/useCommandCompletion.js.map +0 -1
- package/dist/src/ui/hooks/useCompletion.d.ts +0 -24
- package/dist/src/ui/hooks/useCompletion.js +0 -88
- package/dist/src/ui/hooks/useCompletion.js.map +0 -1
- package/dist/src/ui/hooks/useConsoleMessages.d.ts +0 -12
- package/dist/src/ui/hooks/useConsoleMessages.js +0 -76
- package/dist/src/ui/hooks/useConsoleMessages.js.map +0 -1
- package/dist/src/ui/hooks/useEditorSettings.d.ts +0 -16
- package/dist/src/ui/hooks/useEditorSettings.js +0 -43
- package/dist/src/ui/hooks/useEditorSettings.js.map +0 -1
- package/dist/src/ui/hooks/useEditorSettings.test.d.ts +0 -6
- package/dist/src/ui/hooks/useEditorSettings.test.js +0 -164
- package/dist/src/ui/hooks/useEditorSettings.test.js.map +0 -1
- package/dist/src/ui/hooks/useFocus.d.ts +0 -10
- package/dist/src/ui/hooks/useFocus.js +0 -41
- package/dist/src/ui/hooks/useFocus.js.map +0 -1
- package/dist/src/ui/hooks/useFolderTrust.d.ts +0 -12
- package/dist/src/ui/hooks/useFolderTrust.js +0 -55
- package/dist/src/ui/hooks/useFolderTrust.js.map +0 -1
- package/dist/src/ui/hooks/useGeminiStream.d.ts +0 -24
- package/dist/src/ui/hooks/useGeminiStream.js +0 -653
- package/dist/src/ui/hooks/useGeminiStream.js.map +0 -1
- package/dist/src/ui/hooks/useGitBranchName.d.ts +0 -6
- package/dist/src/ui/hooks/useGitBranchName.js +0 -61
- package/dist/src/ui/hooks/useGitBranchName.js.map +0 -1
- package/dist/src/ui/hooks/useGitBranchName.test.d.ts +0 -6
- package/dist/src/ui/hooks/useGitBranchName.test.js +0 -215
- package/dist/src/ui/hooks/useGitBranchName.test.js.map +0 -1
- package/dist/src/ui/hooks/useHistoryManager.d.ts +0 -22
- package/dist/src/ui/hooks/useHistoryManager.js +0 -72
- package/dist/src/ui/hooks/useHistoryManager.js.map +0 -1
- package/dist/src/ui/hooks/useHistoryManager.test.d.ts +0 -6
- package/dist/src/ui/hooks/useHistoryManager.test.js +0 -171
- package/dist/src/ui/hooks/useHistoryManager.test.js.map +0 -1
- package/dist/src/ui/hooks/useInputHistory.d.ts +0 -19
- package/dist/src/ui/hooks/useInputHistory.js +0 -84
- package/dist/src/ui/hooks/useInputHistory.js.map +0 -1
- package/dist/src/ui/hooks/useInputHistory.test.d.ts +0 -6
- package/dist/src/ui/hooks/useInputHistory.test.js +0 -207
- package/dist/src/ui/hooks/useInputHistory.test.js.map +0 -1
- package/dist/src/ui/hooks/useKeypress.d.ts +0 -17
- package/dist/src/ui/hooks/useKeypress.js +0 -27
- package/dist/src/ui/hooks/useKeypress.js.map +0 -1
- package/dist/src/ui/hooks/useKittyKeyboardProtocol.d.ts +0 -15
- package/dist/src/ui/hooks/useKittyKeyboardProtocol.js +0 -20
- package/dist/src/ui/hooks/useKittyKeyboardProtocol.js.map +0 -1
- package/dist/src/ui/hooks/useLoadingIndicator.d.ts +0 -10
- package/dist/src/ui/hooks/useLoadingIndicator.js +0 -44
- package/dist/src/ui/hooks/useLoadingIndicator.js.map +0 -1
- package/dist/src/ui/hooks/useLoadingIndicator.test.d.ts +0 -6
- package/dist/src/ui/hooks/useLoadingIndicator.test.js +0 -91
- package/dist/src/ui/hooks/useLoadingIndicator.test.js.map +0 -1
- package/dist/src/ui/hooks/useLogger.d.ts +0 -10
- package/dist/src/ui/hooks/useLogger.js +0 -29
- package/dist/src/ui/hooks/useLogger.js.map +0 -1
- package/dist/src/ui/hooks/useMessageQueue.d.ts +0 -22
- package/dist/src/ui/hooks/useMessageQueue.js +0 -49
- package/dist/src/ui/hooks/useMessageQueue.js.map +0 -1
- package/dist/src/ui/hooks/useMessageQueue.test.d.ts +0 -6
- package/dist/src/ui/hooks/useMessageQueue.test.js +0 -158
- package/dist/src/ui/hooks/useMessageQueue.test.js.map +0 -1
- package/dist/src/ui/hooks/usePhraseCycler.d.ts +0 -14
- package/dist/src/ui/hooks/usePhraseCycler.js +0 -187
- package/dist/src/ui/hooks/usePhraseCycler.js.map +0 -1
- package/dist/src/ui/hooks/usePrivacySettings.d.ts +0 -16
- package/dist/src/ui/hooks/usePrivacySettings.js +0 -119
- package/dist/src/ui/hooks/usePrivacySettings.js.map +0 -1
- package/dist/src/ui/hooks/usePrivacySettings.test.d.ts +0 -6
- package/dist/src/ui/hooks/usePrivacySettings.test.js +0 -154
- package/dist/src/ui/hooks/usePrivacySettings.test.js.map +0 -1
- package/dist/src/ui/hooks/useReactToolScheduler.d.ts +0 -33
- package/dist/src/ui/hooks/useReactToolScheduler.js +0 -187
- package/dist/src/ui/hooks/useReactToolScheduler.js.map +0 -1
- package/dist/src/ui/hooks/useRefreshMemoryCommand.d.ts +0 -6
- package/dist/src/ui/hooks/useRefreshMemoryCommand.js +0 -7
- package/dist/src/ui/hooks/useRefreshMemoryCommand.js.map +0 -1
- package/dist/src/ui/hooks/useReverseSearchCompletion.d.ts +0 -19
- package/dist/src/ui/hooks/useReverseSearchCompletion.js +0 -56
- package/dist/src/ui/hooks/useReverseSearchCompletion.js.map +0 -1
- package/dist/src/ui/hooks/useReverseSearchCompletion.test.d.ts +0 -6
- package/dist/src/ui/hooks/useReverseSearchCompletion.test.js +0 -163
- package/dist/src/ui/hooks/useReverseSearchCompletion.test.js.map +0 -1
- package/dist/src/ui/hooks/useSettingsCommand.d.ts +0 -10
- package/dist/src/ui/hooks/useSettingsCommand.js +0 -21
- package/dist/src/ui/hooks/useSettingsCommand.js.map +0 -1
- package/dist/src/ui/hooks/useShellHistory.d.ts +0 -13
- package/dist/src/ui/hooks/useShellHistory.js +0 -112
- package/dist/src/ui/hooks/useShellHistory.js.map +0 -1
- package/dist/src/ui/hooks/useShellHistory.test.d.ts +0 -6
- package/dist/src/ui/hooks/useShellHistory.test.js +0 -162
- package/dist/src/ui/hooks/useShellHistory.test.js.map +0 -1
- package/dist/src/ui/hooks/useShowMemoryCommand.d.ts +0 -9
- package/dist/src/ui/hooks/useShowMemoryCommand.js +0 -58
- package/dist/src/ui/hooks/useShowMemoryCommand.js.map +0 -1
- package/dist/src/ui/hooks/useSlashCompletion.d.ts +0 -20
- package/dist/src/ui/hooks/useSlashCompletion.js +0 -135
- package/dist/src/ui/hooks/useSlashCompletion.js.map +0 -1
- package/dist/src/ui/hooks/useSlashCompletion.test.d.ts +0 -6
- package/dist/src/ui/hooks/useSlashCompletion.test.js +0 -272
- package/dist/src/ui/hooks/useSlashCompletion.test.js.map +0 -1
- package/dist/src/ui/hooks/useStateAndRef.d.ts +0 -7
- package/dist/src/ui/hooks/useStateAndRef.js +0 -26
- package/dist/src/ui/hooks/useStateAndRef.js.map +0 -1
- package/dist/src/ui/hooks/useTerminalSize.d.ts +0 -9
- package/dist/src/ui/hooks/useTerminalSize.js +0 -27
- package/dist/src/ui/hooks/useTerminalSize.js.map +0 -1
- package/dist/src/ui/hooks/useThemeCommand.d.ts +0 -15
- package/dist/src/ui/hooks/useThemeCommand.js +0 -79
- package/dist/src/ui/hooks/useThemeCommand.js.map +0 -1
- package/dist/src/ui/hooks/useTimer.d.ts +0 -12
- package/dist/src/ui/hooks/useTimer.js +0 -58
- package/dist/src/ui/hooks/useTimer.js.map +0 -1
- package/dist/src/ui/hooks/useTimer.test.d.ts +0 -6
- package/dist/src/ui/hooks/useTimer.test.js +0 -90
- package/dist/src/ui/hooks/useTimer.test.js.map +0 -1
- package/dist/src/ui/hooks/useToolScheduler.test.d.ts +0 -6
- package/dist/src/ui/hooks/useToolScheduler.test.js +0 -845
- package/dist/src/ui/hooks/useToolScheduler.test.js.map +0 -1
- package/dist/src/ui/hooks/useWelcomeBack.d.ts +0 -52
- package/dist/src/ui/hooks/useWelcomeBack.js +0 -214
- package/dist/src/ui/hooks/useWelcomeBack.js.map +0 -1
- package/dist/src/ui/hooks/vim.d.ts +0 -28
- package/dist/src/ui/hooks/vim.js +0 -639
- package/dist/src/ui/hooks/vim.js.map +0 -1
- package/dist/src/ui/keyMatchers.d.ts +0 -26
- package/dist/src/ui/keyMatchers.js +0 -68
- package/dist/src/ui/keyMatchers.js.map +0 -1
- package/dist/src/ui/keyMatchers.test.d.ts +0 -6
- package/dist/src/ui/keyMatchers.test.js +0 -276
- package/dist/src/ui/keyMatchers.test.js.map +0 -1
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.d.ts +0 -12
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.js +0 -41
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.js.map +0 -1
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.d.ts +0 -10
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.js +0 -18
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.js.map +0 -1
- package/dist/src/ui/privacy/GeminiPrivacyNotice.d.ts +0 -10
- package/dist/src/ui/privacy/GeminiPrivacyNotice.js +0 -18
- package/dist/src/ui/privacy/GeminiPrivacyNotice.js.map +0 -1
- package/dist/src/ui/privacy/PrivacyNotice.d.ts +0 -12
- package/dist/src/ui/privacy/PrivacyNotice.js +0 -25
- package/dist/src/ui/privacy/PrivacyNotice.js.map +0 -1
- package/dist/src/ui/semantic-colors.d.ts +0 -7
- package/dist/src/ui/semantic-colors.js +0 -24
- package/dist/src/ui/semantic-colors.js.map +0 -1
- package/dist/src/ui/themes/ansi-light.d.ts +0 -7
- package/dist/src/ui/themes/ansi-light.js +0 -142
- package/dist/src/ui/themes/ansi-light.js.map +0 -1
- package/dist/src/ui/themes/ansi.d.ts +0 -7
- package/dist/src/ui/themes/ansi.js +0 -152
- package/dist/src/ui/themes/ansi.js.map +0 -1
- package/dist/src/ui/themes/atom-one-dark.d.ts +0 -7
- package/dist/src/ui/themes/atom-one-dark.js +0 -139
- package/dist/src/ui/themes/atom-one-dark.js.map +0 -1
- package/dist/src/ui/themes/ayu-light.d.ts +0 -7
- package/dist/src/ui/themes/ayu-light.js +0 -131
- package/dist/src/ui/themes/ayu-light.js.map +0 -1
- package/dist/src/ui/themes/ayu.d.ts +0 -7
- package/dist/src/ui/themes/ayu.js +0 -105
- package/dist/src/ui/themes/ayu.js.map +0 -1
- package/dist/src/ui/themes/color-utils.d.ts +0 -21
- package/dist/src/ui/themes/color-utils.js +0 -221
- package/dist/src/ui/themes/color-utils.js.map +0 -1
- package/dist/src/ui/themes/color-utils.test.d.ts +0 -6
- package/dist/src/ui/themes/color-utils.test.js +0 -197
- package/dist/src/ui/themes/color-utils.test.js.map +0 -1
- package/dist/src/ui/themes/default-light.d.ts +0 -7
- package/dist/src/ui/themes/default-light.js +0 -101
- package/dist/src/ui/themes/default-light.js.map +0 -1
- package/dist/src/ui/themes/default.d.ts +0 -7
- package/dist/src/ui/themes/default.js +0 -144
- package/dist/src/ui/themes/default.js.map +0 -1
- package/dist/src/ui/themes/dracula.d.ts +0 -7
- package/dist/src/ui/themes/dracula.js +0 -116
- package/dist/src/ui/themes/dracula.js.map +0 -1
- package/dist/src/ui/themes/fss-code-dark.d.ts +0 -7
- package/dist/src/ui/themes/fss-code-dark.js +0 -148
- package/dist/src/ui/themes/fss-code-dark.js.map +0 -1
- package/dist/src/ui/themes/fss-dark.d.ts +0 -7
- package/dist/src/ui/themes/fss-dark.js +0 -105
- package/dist/src/ui/themes/fss-dark.js.map +0 -1
- package/dist/src/ui/themes/fss-light.d.ts +0 -7
- package/dist/src/ui/themes/fss-light.js +0 -131
- package/dist/src/ui/themes/fss-light.js.map +0 -1
- package/dist/src/ui/themes/github-dark.d.ts +0 -7
- package/dist/src/ui/themes/github-dark.js +0 -139
- package/dist/src/ui/themes/github-dark.js.map +0 -1
- package/dist/src/ui/themes/github-light.d.ts +0 -7
- package/dist/src/ui/themes/github-light.js +0 -141
- package/dist/src/ui/themes/github-light.js.map +0 -1
- package/dist/src/ui/themes/googlecode.d.ts +0 -7
- package/dist/src/ui/themes/googlecode.js +0 -138
- package/dist/src/ui/themes/googlecode.js.map +0 -1
- package/dist/src/ui/themes/no-color.d.ts +0 -7
- package/dist/src/ui/themes/no-color.js +0 -115
- package/dist/src/ui/themes/no-color.js.map +0 -1
- package/dist/src/ui/themes/qwen-dark.d.ts +0 -7
- package/dist/src/ui/themes/qwen-dark.js +0 -109
- package/dist/src/ui/themes/qwen-dark.js.map +0 -1
- package/dist/src/ui/themes/qwen-light.d.ts +0 -7
- package/dist/src/ui/themes/qwen-light.js +0 -135
- package/dist/src/ui/themes/qwen-light.js.map +0 -1
- package/dist/src/ui/themes/semantic-tokens.d.ts +0 -37
- package/dist/src/ui/themes/semantic-tokens.js +0 -94
- package/dist/src/ui/themes/semantic-tokens.js.map +0 -1
- package/dist/src/ui/themes/shades-of-purple.d.ts +0 -11
- package/dist/src/ui/themes/shades-of-purple.js +0 -305
- package/dist/src/ui/themes/shades-of-purple.js.map +0 -1
- package/dist/src/ui/themes/theme-manager.d.ts +0 -64
- package/dist/src/ui/themes/theme-manager.js +0 -209
- package/dist/src/ui/themes/theme-manager.js.map +0 -1
- package/dist/src/ui/themes/theme-manager.test.d.ts +0 -6
- package/dist/src/ui/themes/theme-manager.test.js +0 -83
- package/dist/src/ui/themes/theme-manager.test.js.map +0 -1
- package/dist/src/ui/themes/theme.d.ts +0 -130
- package/dist/src/ui/themes/theme.js +0 -351
- package/dist/src/ui/themes/theme.js.map +0 -1
- package/dist/src/ui/themes/xcode.d.ts +0 -7
- package/dist/src/ui/themes/xcode.js +0 -146
- package/dist/src/ui/themes/xcode.js.map +0 -1
- package/dist/src/ui/types.d.ts +0 -191
- package/dist/src/ui/types.js +0 -44
- package/dist/src/ui/types.js.map +0 -1
- package/dist/src/ui/utils/CodeColorizer.d.ts +0 -17
- package/dist/src/ui/utils/CodeColorizer.js +0 -110
- package/dist/src/ui/utils/CodeColorizer.js.map +0 -1
- package/dist/src/ui/utils/ConsolePatcher.d.ts +0 -25
- package/dist/src/ui/utils/ConsolePatcher.js +0 -52
- package/dist/src/ui/utils/ConsolePatcher.js.map +0 -1
- package/dist/src/ui/utils/InlineMarkdownRenderer.d.ts +0 -16
- package/dist/src/ui/utils/InlineMarkdownRenderer.js +0 -111
- package/dist/src/ui/utils/InlineMarkdownRenderer.js.map +0 -1
- package/dist/src/ui/utils/MarkdownDisplay.d.ts +0 -14
- package/dist/src/ui/utils/MarkdownDisplay.js +0 -207
- package/dist/src/ui/utils/MarkdownDisplay.js.map +0 -1
- package/dist/src/ui/utils/MarkdownDisplay.test.d.ts +0 -6
- package/dist/src/ui/utils/MarkdownDisplay.test.js +0 -151
- package/dist/src/ui/utils/MarkdownDisplay.test.js.map +0 -1
- package/dist/src/ui/utils/TableRenderer.d.ts +0 -17
- package/dist/src/ui/utils/TableRenderer.js +0 -84
- package/dist/src/ui/utils/TableRenderer.js.map +0 -1
- package/dist/src/ui/utils/clipboardUtils.d.ts +0 -22
- package/dist/src/ui/utils/clipboardUtils.js +0 -127
- package/dist/src/ui/utils/clipboardUtils.js.map +0 -1
- package/dist/src/ui/utils/clipboardUtils.test.d.ts +0 -6
- package/dist/src/ui/utils/clipboardUtils.test.js +0 -65
- package/dist/src/ui/utils/clipboardUtils.test.js.map +0 -1
- package/dist/src/ui/utils/commandUtils.d.ts +0 -24
- package/dist/src/ui/utils/commandUtils.js +0 -93
- package/dist/src/ui/utils/commandUtils.js.map +0 -1
- package/dist/src/ui/utils/commandUtils.test.d.ts +0 -6
- package/dist/src/ui/utils/commandUtils.test.js +0 -294
- package/dist/src/ui/utils/commandUtils.test.js.map +0 -1
- package/dist/src/ui/utils/computeStats.d.ts +0 -10
- package/dist/src/ui/utils/computeStats.js +0 -57
- package/dist/src/ui/utils/computeStats.js.map +0 -1
- package/dist/src/ui/utils/displayUtils.d.ts +0 -17
- package/dist/src/ui/utils/displayUtils.js +0 -24
- package/dist/src/ui/utils/displayUtils.js.map +0 -1
- package/dist/src/ui/utils/displayUtils.test.d.ts +0 -6
- package/dist/src/ui/utils/displayUtils.test.js +0 -42
- package/dist/src/ui/utils/displayUtils.test.js.map +0 -1
- package/dist/src/ui/utils/formatters.d.ts +0 -13
- package/dist/src/ui/utils/formatters.js +0 -56
- package/dist/src/ui/utils/formatters.js.map +0 -1
- package/dist/src/ui/utils/formatters.test.d.ts +0 -6
- package/dist/src/ui/utils/formatters.test.js +0 -56
- package/dist/src/ui/utils/formatters.test.js.map +0 -1
- package/dist/src/ui/utils/isNarrowWidth.d.ts +0 -6
- package/dist/src/ui/utils/isNarrowWidth.js +0 -9
- package/dist/src/ui/utils/isNarrowWidth.js.map +0 -1
- package/dist/src/ui/utils/kittyProtocolDetector.d.ts +0 -13
- package/dist/src/ui/utils/kittyProtocolDetector.js +0 -88
- package/dist/src/ui/utils/kittyProtocolDetector.js.map +0 -1
- package/dist/src/ui/utils/markdownUtilities.d.ts +0 -6
- package/dist/src/ui/utils/markdownUtilities.js +0 -110
- package/dist/src/ui/utils/markdownUtilities.js.map +0 -1
- package/dist/src/ui/utils/markdownUtilities.test.d.ts +0 -6
- package/dist/src/ui/utils/markdownUtilities.test.js +0 -42
- package/dist/src/ui/utils/markdownUtilities.test.js.map +0 -1
- package/dist/src/ui/utils/platformConstants.d.ts +0 -45
- package/dist/src/ui/utils/platformConstants.js +0 -46
- package/dist/src/ui/utils/platformConstants.js.map +0 -1
- package/dist/src/ui/utils/terminalSetup.d.ts +0 -30
- package/dist/src/ui/utils/terminalSetup.js +0 -281
- package/dist/src/ui/utils/terminalSetup.js.map +0 -1
- package/dist/src/ui/utils/textUtils.d.ts +0 -14
- package/dist/src/ui/utils/textUtils.js +0 -36
- package/dist/src/ui/utils/textUtils.js.map +0 -1
- package/dist/src/ui/utils/updateCheck.d.ts +0 -12
- package/dist/src/ui/utils/updateCheck.js +0 -78
- package/dist/src/ui/utils/updateCheck.js.map +0 -1
- package/dist/src/ui/utils/updateCheck.test.d.ts +0 -6
- package/dist/src/ui/utils/updateCheck.test.js +0 -145
- package/dist/src/ui/utils/updateCheck.test.js.map +0 -1
- package/dist/src/utils/checks.d.ts +0 -19
- package/dist/src/utils/checks.js +0 -24
- package/dist/src/utils/checks.js.map +0 -1
- package/dist/src/utils/cleanup.d.ts +0 -8
- package/dist/src/utils/cleanup.js +0 -34
- package/dist/src/utils/cleanup.js.map +0 -1
- package/dist/src/utils/dialogScopeUtils.d.ts +0 -31
- package/dist/src/utils/dialogScopeUtils.js +0 -48
- package/dist/src/utils/dialogScopeUtils.js.map +0 -1
- package/dist/src/utils/events.d.ts +0 -11
- package/dist/src/utils/events.js +0 -13
- package/dist/src/utils/events.js.map +0 -1
- package/dist/src/utils/gitUtils.d.ts +0 -30
- package/dist/src/utils/gitUtils.js +0 -89
- package/dist/src/utils/gitUtils.js.map +0 -1
- package/dist/src/utils/gitUtils.test.d.ts +0 -6
- package/dist/src/utils/gitUtils.test.js +0 -113
- package/dist/src/utils/gitUtils.test.js.map +0 -1
- package/dist/src/utils/handleAutoUpdate.d.ts +0 -11
- package/dist/src/utils/handleAutoUpdate.js +0 -101
- package/dist/src/utils/handleAutoUpdate.js.map +0 -1
- package/dist/src/utils/installationInfo.d.ts +0 -23
- package/dist/src/utils/installationInfo.js +0 -169
- package/dist/src/utils/installationInfo.js.map +0 -1
- package/dist/src/utils/installationInfo.test.d.ts +0 -6
- package/dist/src/utils/installationInfo.test.js +0 -242
- package/dist/src/utils/installationInfo.test.js.map +0 -1
- package/dist/src/utils/package.d.ts +0 -12
- package/dist/src/utils/package.js +0 -24
- package/dist/src/utils/package.js.map +0 -1
- package/dist/src/utils/readStdin.d.ts +0 -6
- package/dist/src/utils/readStdin.js +0 -44
- package/dist/src/utils/readStdin.js.map +0 -1
- package/dist/src/utils/resolvePath.d.ts +0 -6
- package/dist/src/utils/resolvePath.js +0 -21
- package/dist/src/utils/resolvePath.js.map +0 -1
- package/dist/src/utils/sandbox-macos-permissive-closed.sb +0 -32
- package/dist/src/utils/sandbox-macos-permissive-open.sb +0 -25
- package/dist/src/utils/sandbox-macos-permissive-proxied.sb +0 -37
- package/dist/src/utils/sandbox-macos-restrictive-closed.sb +0 -93
- package/dist/src/utils/sandbox-macos-restrictive-open.sb +0 -96
- package/dist/src/utils/sandbox-macos-restrictive-proxied.sb +0 -98
- package/dist/src/utils/sandbox.d.ts +0 -7
- package/dist/src/utils/sandbox.js +0 -739
- package/dist/src/utils/sandbox.js.map +0 -1
- package/dist/src/utils/settingsUtils.d.ts +0 -134
- package/dist/src/utils/settingsUtils.js +0 -336
- package/dist/src/utils/settingsUtils.js.map +0 -1
- package/dist/src/utils/settingsUtils.test.d.ts +0 -6
- package/dist/src/utils/settingsUtils.test.js +0 -514
- package/dist/src/utils/settingsUtils.test.js.map +0 -1
- package/dist/src/utils/spawnWrapper.d.ts +0 -7
- package/dist/src/utils/spawnWrapper.js +0 -8
- package/dist/src/utils/spawnWrapper.js.map +0 -1
- package/dist/src/utils/startupWarnings.d.ts +0 -6
- package/dist/src/utils/startupWarnings.js +0 -40
- package/dist/src/utils/startupWarnings.js.map +0 -1
- package/dist/src/utils/updateEventEmitter.d.ts +0 -11
- package/dist/src/utils/updateEventEmitter.js +0 -12
- package/dist/src/utils/updateEventEmitter.js.map +0 -1
- package/dist/src/utils/userStartupWarnings.d.ts +0 -6
- package/dist/src/utils/userStartupWarnings.js +0 -54
- package/dist/src/utils/userStartupWarnings.js.map +0 -1
- package/dist/src/utils/userStartupWarnings.test.d.ts +0 -6
- package/dist/src/utils/userStartupWarnings.test.js +0 -67
- package/dist/src/utils/userStartupWarnings.test.js.map +0 -1
- package/dist/src/utils/version.d.ts +0 -6
- package/dist/src/utils/version.js +0 -11
- package/dist/src/utils/version.js.map +0 -1
- package/dist/src/validateNonInterActiveAuth.d.ts +0 -7
- package/dist/src/validateNonInterActiveAuth.js +0 -51
- package/dist/src/validateNonInterActiveAuth.js.map +0 -1
- package/dist/src/zed-integration/acp.d.ts +0 -63
- package/dist/src/zed-integration/acp.js +0 -225
- package/dist/src/zed-integration/acp.js.map +0 -1
- package/dist/src/zed-integration/fileSystemService.d.ts +0 -19
- package/dist/src/zed-integration/fileSystemService.js +0 -43
- package/dist/src/zed-integration/fileSystemService.js.map +0 -1
- package/dist/src/zed-integration/schema.d.ts +0 -11782
- package/dist/src/zed-integration/schema.js +0 -311
- package/dist/src/zed-integration/schema.js.map +0 -1
- package/dist/src/zed-integration/zedIntegration.d.ts +0 -10
- package/dist/src/zed-integration/zedIntegration.js +0 -765
- package/dist/src/zed-integration/zedIntegration.js.map +0 -1
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright 2025 Google LLC
|
|
5
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
6
|
-
*/
|
|
7
|
-
import { render } from 'ink-testing-library';
|
|
8
|
-
import { describe, it, expect } from 'vitest';
|
|
9
|
-
import { TodoDisplay } from './TodoDisplay.js';
|
|
10
|
-
describe('TodoDisplay', () => {
|
|
11
|
-
const mockTodos = [
|
|
12
|
-
{
|
|
13
|
-
id: '1',
|
|
14
|
-
content: 'Complete feature implementation',
|
|
15
|
-
status: 'completed',
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
id: '2',
|
|
19
|
-
content: 'Write unit tests',
|
|
20
|
-
status: 'in_progress',
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
id: '3',
|
|
24
|
-
content: 'Update documentation',
|
|
25
|
-
status: 'pending',
|
|
26
|
-
},
|
|
27
|
-
];
|
|
28
|
-
it('should render todo list', () => {
|
|
29
|
-
const { lastFrame } = render(_jsx(TodoDisplay, { todos: mockTodos }));
|
|
30
|
-
const output = lastFrame();
|
|
31
|
-
// Check all todo items are displayed
|
|
32
|
-
expect(output).toContain('Complete feature implementation');
|
|
33
|
-
expect(output).toContain('Write unit tests');
|
|
34
|
-
expect(output).toContain('Update documentation');
|
|
35
|
-
});
|
|
36
|
-
it('should display correct status icons', () => {
|
|
37
|
-
const { lastFrame } = render(_jsx(TodoDisplay, { todos: mockTodos }));
|
|
38
|
-
const output = lastFrame();
|
|
39
|
-
// Check status icons are present
|
|
40
|
-
expect(output).toContain('●'); // completed
|
|
41
|
-
expect(output).toContain('◐'); // in_progress
|
|
42
|
-
expect(output).toContain('○'); // pending
|
|
43
|
-
});
|
|
44
|
-
it('should handle empty todo list', () => {
|
|
45
|
-
const { lastFrame } = render(_jsx(TodoDisplay, { todos: [] }));
|
|
46
|
-
const output = lastFrame();
|
|
47
|
-
// Should render nothing for empty todos
|
|
48
|
-
expect(output).toBe('');
|
|
49
|
-
});
|
|
50
|
-
it('should handle undefined todos', () => {
|
|
51
|
-
const { lastFrame } = render(_jsx(TodoDisplay, { todos: undefined }));
|
|
52
|
-
const output = lastFrame();
|
|
53
|
-
// Should render nothing for undefined todos
|
|
54
|
-
expect(output).toBe('');
|
|
55
|
-
});
|
|
56
|
-
it('should render tasks with different statuses', () => {
|
|
57
|
-
const allCompleted = [
|
|
58
|
-
{ id: '1', content: 'Task 1', status: 'completed' },
|
|
59
|
-
{ id: '2', content: 'Task 2', status: 'completed' },
|
|
60
|
-
];
|
|
61
|
-
const { lastFrame } = render(_jsx(TodoDisplay, { todos: allCompleted }));
|
|
62
|
-
const output = lastFrame();
|
|
63
|
-
expect(output).toContain('Task 1');
|
|
64
|
-
expect(output).toContain('Task 2');
|
|
65
|
-
});
|
|
66
|
-
it('should render tasks with mixed statuses', () => {
|
|
67
|
-
const mixedTodos = [
|
|
68
|
-
{ id: '1', content: 'Task 1', status: 'pending' },
|
|
69
|
-
{ id: '2', content: 'Task 2', status: 'in_progress' },
|
|
70
|
-
];
|
|
71
|
-
const { lastFrame } = render(_jsx(TodoDisplay, { todos: mixedTodos }));
|
|
72
|
-
const output = lastFrame();
|
|
73
|
-
expect(output).toContain('Task 1');
|
|
74
|
-
expect(output).toContain('Task 2');
|
|
75
|
-
});
|
|
76
|
-
});
|
|
77
|
-
//# sourceMappingURL=TodoDisplay.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TodoDisplay.test.js","sourceRoot":"","sources":["../../../../src/ui/components/TodoDisplay.test.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAY,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEzD,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAC3B,MAAM,SAAS,GAAe;QAC5B;YACE,EAAE,EAAE,GAAG;YACP,OAAO,EAAE,iCAAiC;YAC1C,MAAM,EAAE,WAAW;SACpB;QACD;YACE,EAAE,EAAE,GAAG;YACP,OAAO,EAAE,kBAAkB;YAC3B,MAAM,EAAE,aAAa;SACtB;QAC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AAW,IAAC,KAAK,EAAE,UAAU,GAAI,CAAC,CAAC;QAEjE,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;QAC3B,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QACnC,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Box, Text } from 'ink';
|
|
3
|
-
import { Colors } from '../colors.js';
|
|
4
|
-
import { formatDuration } from '../utils/formatters.js';
|
|
5
|
-
import { getStatusColor, TOOL_SUCCESS_RATE_HIGH, TOOL_SUCCESS_RATE_MEDIUM, USER_AGREEMENT_RATE_HIGH, USER_AGREEMENT_RATE_MEDIUM, } from '../utils/displayUtils.js';
|
|
6
|
-
import { useSessionStats } from '../contexts/SessionContext.js';
|
|
7
|
-
const TOOL_NAME_COL_WIDTH = 25;
|
|
8
|
-
const CALLS_COL_WIDTH = 8;
|
|
9
|
-
const SUCCESS_RATE_COL_WIDTH = 15;
|
|
10
|
-
const AVG_DURATION_COL_WIDTH = 15;
|
|
11
|
-
const StatRow = ({ name, stats }) => {
|
|
12
|
-
const successRate = stats.count > 0 ? (stats.success / stats.count) * 100 : 0;
|
|
13
|
-
const avgDuration = stats.count > 0 ? stats.durationMs / stats.count : 0;
|
|
14
|
-
const successColor = getStatusColor(successRate, {
|
|
15
|
-
green: TOOL_SUCCESS_RATE_HIGH,
|
|
16
|
-
yellow: TOOL_SUCCESS_RATE_MEDIUM,
|
|
17
|
-
});
|
|
18
|
-
return (_jsxs(Box, { children: [_jsx(Box, { width: TOOL_NAME_COL_WIDTH, children: _jsx(Text, { color: Colors.LightBlue, children: name }) }), _jsx(Box, { width: CALLS_COL_WIDTH, justifyContent: "flex-end", children: _jsx(Text, { children: stats.count }) }), _jsx(Box, { width: SUCCESS_RATE_COL_WIDTH, justifyContent: "flex-end", children: _jsxs(Text, { color: successColor, children: [successRate.toFixed(1), "%"] }) }), _jsx(Box, { width: AVG_DURATION_COL_WIDTH, justifyContent: "flex-end", children: _jsx(Text, { children: formatDuration(avgDuration) }) })] }));
|
|
19
|
-
};
|
|
20
|
-
export const ToolStatsDisplay = () => {
|
|
21
|
-
const { stats } = useSessionStats();
|
|
22
|
-
const { tools } = stats.metrics;
|
|
23
|
-
const activeTools = Object.entries(tools.byName).filter(([, metrics]) => metrics.count > 0);
|
|
24
|
-
if (activeTools.length === 0) {
|
|
25
|
-
return (_jsx(Box, { borderStyle: "round", borderColor: Colors.Gray, paddingY: 1, paddingX: 2, children: _jsx(Text, { children: "No tool calls have been made in this session." }) }));
|
|
26
|
-
}
|
|
27
|
-
const totalDecisions = Object.values(tools.byName).reduce((acc, tool) => {
|
|
28
|
-
acc.accept += tool.decisions.accept;
|
|
29
|
-
acc.reject += tool.decisions.reject;
|
|
30
|
-
acc.modify += tool.decisions.modify;
|
|
31
|
-
return acc;
|
|
32
|
-
}, { accept: 0, reject: 0, modify: 0 });
|
|
33
|
-
const totalReviewed = totalDecisions.accept + totalDecisions.reject + totalDecisions.modify;
|
|
34
|
-
const agreementRate = totalReviewed > 0 ? (totalDecisions.accept / totalReviewed) * 100 : 0;
|
|
35
|
-
const agreementColor = getStatusColor(agreementRate, {
|
|
36
|
-
green: USER_AGREEMENT_RATE_HIGH,
|
|
37
|
-
yellow: USER_AGREEMENT_RATE_MEDIUM,
|
|
38
|
-
});
|
|
39
|
-
return (_jsxs(Box, { borderStyle: "round", borderColor: Colors.Gray, flexDirection: "column", paddingY: 1, paddingX: 2, width: 70, children: [_jsx(Text, { bold: true, color: Colors.AccentPurple, children: "Tool Stats For Nerds" }), _jsx(Box, { height: 1 }), _jsxs(Box, { children: [_jsx(Box, { width: TOOL_NAME_COL_WIDTH, children: _jsx(Text, { bold: true, children: "Tool Name" }) }), _jsx(Box, { width: CALLS_COL_WIDTH, justifyContent: "flex-end", children: _jsx(Text, { bold: true, children: "Calls" }) }), _jsx(Box, { width: SUCCESS_RATE_COL_WIDTH, justifyContent: "flex-end", children: _jsx(Text, { bold: true, children: "Success Rate" }) }), _jsx(Box, { width: AVG_DURATION_COL_WIDTH, justifyContent: "flex-end", children: _jsx(Text, { bold: true, children: "Avg Duration" }) })] }), _jsx(Box, { borderStyle: "single", borderBottom: true, borderTop: false, borderLeft: false, borderRight: false, width: "100%" }), activeTools.map(([name, stats]) => (_jsx(StatRow, { name: name, stats: stats }, name))), _jsx(Box, { height: 1 }), _jsx(Text, { bold: true, children: "User Decision Summary" }), _jsxs(Box, { children: [_jsx(Box, { width: TOOL_NAME_COL_WIDTH + CALLS_COL_WIDTH + SUCCESS_RATE_COL_WIDTH, children: _jsx(Text, { color: Colors.LightBlue, children: "Total Reviewed Suggestions:" }) }), _jsx(Box, { width: AVG_DURATION_COL_WIDTH, justifyContent: "flex-end", children: _jsx(Text, { children: totalReviewed }) })] }), _jsxs(Box, { children: [_jsx(Box, { width: TOOL_NAME_COL_WIDTH + CALLS_COL_WIDTH + SUCCESS_RATE_COL_WIDTH, children: _jsx(Text, { children: " \u00BB Accepted:" }) }), _jsx(Box, { width: AVG_DURATION_COL_WIDTH, justifyContent: "flex-end", children: _jsx(Text, { color: Colors.AccentGreen, children: totalDecisions.accept }) })] }), _jsxs(Box, { children: [_jsx(Box, { width: TOOL_NAME_COL_WIDTH + CALLS_COL_WIDTH + SUCCESS_RATE_COL_WIDTH, children: _jsx(Text, { children: " \u00BB Rejected:" }) }), _jsx(Box, { width: AVG_DURATION_COL_WIDTH, justifyContent: "flex-end", children: _jsx(Text, { color: Colors.AccentRed, children: totalDecisions.reject }) })] }), _jsxs(Box, { children: [_jsx(Box, { width: TOOL_NAME_COL_WIDTH + CALLS_COL_WIDTH + SUCCESS_RATE_COL_WIDTH, children: _jsx(Text, { children: " \u00BB Modified:" }) }), _jsx(Box, { width: AVG_DURATION_COL_WIDTH, justifyContent: "flex-end", children: _jsx(Text, { color: Colors.AccentYellow, children: totalDecisions.modify }) })] }), _jsx(Box, { borderStyle: "single", borderBottom: true, borderTop: false, borderLeft: false, borderRight: false, width: "100%" }), _jsxs(Box, { children: [_jsx(Box, { width: TOOL_NAME_COL_WIDTH + CALLS_COL_WIDTH + SUCCESS_RATE_COL_WIDTH, children: _jsx(Text, { children: " Overall Agreement Rate:" }) }), _jsx(Box, { width: AVG_DURATION_COL_WIDTH, justifyContent: "flex-end", children: _jsx(Text, { bold: true, color: totalReviewed > 0 ? agreementColor : undefined, children: totalReviewed > 0 ? `${agreementRate.toFixed(1)}%` : '--' }) })] })] }));
|
|
40
|
-
};
|
|
41
|
-
//# sourceMappingURL=ToolStatsDisplay.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ToolStatsDisplay.js","sourceRoot":"","sources":["../../../../src/ui/components/ToolStatsDisplay.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EACL,cAAc,EACd,sBAAsB,EACtB,wBAAwB,EACxB,wBAAwB,EACxB,0BAA0B,GAC3B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAGhE,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAC/B,MAAM,eAAe,GAAG,CAAC,CAAC;AAC1B,MAAM,sBAAsB,GAAG,EAAE,CAAC;AAClC,MAAM,sBAAsB,GAAG,EAAE,CAAC;AAElC,MAAM,OAAO,GAGR,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE;IACvB,MAAM,WAAW,GAAG,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,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eAAe,GAAG,sBAAsB,YAErE,KAAC,IAAI,2CAAgC,GACjC,EACN,KAAC,GAAG,IAAC,KAAK,EAAE,sBAAsB,EAAE,cAAc,EAAC,UAAU,YAC3D,KAAC,IAAI,IAAC,IAAI,QAAC,KAAK,EAAE,aAAa,GAAG,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,YAC7D,aAAa,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,GACrD,GACH,IACF,IACF,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
interface UpdateNotificationProps {
|
|
7
|
-
message: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const UpdateNotification: ({ message }: UpdateNotificationProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright 2025 Google LLC
|
|
5
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
6
|
-
*/
|
|
7
|
-
import { Box, Text } from 'ink';
|
|
8
|
-
import { Colors } from '../colors.js';
|
|
9
|
-
export const UpdateNotification = ({ message }) => (_jsx(Box, { borderStyle: "round", borderColor: Colors.AccentYellow, paddingX: 1, marginY: 1, children: _jsx(Text, { color: Colors.AccentYellow, children: message }) }));
|
|
10
|
-
//# sourceMappingURL=UpdateNotification.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateNotification.js","sourceRoot":"","sources":["../../../../src/ui/components/UpdateNotification.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;AAEH,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAMtC,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,EAAE,OAAO,EAA2B,EAAE,EAAE,CAAC,CAC1E,KAAC,GAAG,IACF,WAAW,EAAC,OAAO,EACnB,WAAW,EAAE,MAAM,CAAC,YAAY,EAChC,QAAQ,EAAE,CAAC,EACX,OAAO,EAAE,CAAC,YAEV,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,YAAY,YAAG,OAAO,GAAQ,GAC9C,CACP,CAAC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { ProjectSummary } from 'fss-link-core';
|
|
7
|
-
/**
|
|
8
|
-
* Props interface for the WelcomeBackDialog component
|
|
9
|
-
*/
|
|
10
|
-
export interface WelcomeBackDialogProps {
|
|
11
|
-
/** The project summary containing session data, git status, and activity info */
|
|
12
|
-
projectSummary: ProjectSummary;
|
|
13
|
-
/** Callback when user selects to continue from previous session */
|
|
14
|
-
onContinue: () => void;
|
|
15
|
-
/** Callback when user selects to start a fresh session */
|
|
16
|
-
onRestart: () => void;
|
|
17
|
-
/** Callback when user cancels/exits without starting a session */
|
|
18
|
-
onCancel: () => void;
|
|
19
|
-
}
|
|
20
|
-
/** Available actions in the Welcome Back dialog */
|
|
21
|
-
export type ResumeAction = 'continue' | 'restart' | 'cancel';
|
|
22
|
-
/**
|
|
23
|
-
* Welcome Back dialog component using AuthDialog pattern for consistency
|
|
24
|
-
*
|
|
25
|
-
* Displays a comprehensive project status summary including:
|
|
26
|
-
* - Project goal and recent activity
|
|
27
|
-
* - Session history and momentum analysis
|
|
28
|
-
* - Git status with branch info and pending changes
|
|
29
|
-
* - Quick status dashboard with efficiency metrics
|
|
30
|
-
* - Keyboard shortcuts for quick navigation
|
|
31
|
-
*
|
|
32
|
-
* The component follows FSS Link's established UI patterns and provides
|
|
33
|
-
* the user with intelligent context to make informed decisions about
|
|
34
|
-
* how to resume their work.
|
|
35
|
-
*/
|
|
36
|
-
export declare const WelcomeBackDialog: ({ projectSummary, onContinue, onRestart, onCancel, }: WelcomeBackDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright 2025 Google LLC
|
|
5
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
6
|
-
*/
|
|
7
|
-
import { Box, Text } from 'ink';
|
|
8
|
-
import { RadioButtonSelect } from './shared/RadioButtonSelect.js';
|
|
9
|
-
import { Colors } from '../colors.js';
|
|
10
|
-
import { useKeypress } from '../hooks/useKeypress.js';
|
|
11
|
-
/**
|
|
12
|
-
* Welcome Back dialog component using AuthDialog pattern for consistency
|
|
13
|
-
*
|
|
14
|
-
* Displays a comprehensive project status summary including:
|
|
15
|
-
* - Project goal and recent activity
|
|
16
|
-
* - Session history and momentum analysis
|
|
17
|
-
* - Git status with branch info and pending changes
|
|
18
|
-
* - Quick status dashboard with efficiency metrics
|
|
19
|
-
* - Keyboard shortcuts for quick navigation
|
|
20
|
-
*
|
|
21
|
-
* The component follows FSS Link's established UI patterns and provides
|
|
22
|
-
* the user with intelligent context to make informed decisions about
|
|
23
|
-
* how to resume their work.
|
|
24
|
-
*/
|
|
25
|
-
export const WelcomeBackDialog = ({ projectSummary, onContinue, onRestart, onCancel, }) => {
|
|
26
|
-
// Handle keyboard shortcuts
|
|
27
|
-
useKeypress((key) => {
|
|
28
|
-
const { name, sequence } = key;
|
|
29
|
-
if (name === 'c' || sequence === 'C') {
|
|
30
|
-
onContinue();
|
|
31
|
-
}
|
|
32
|
-
else if (name === 'r' || sequence === 'R') {
|
|
33
|
-
onRestart();
|
|
34
|
-
}
|
|
35
|
-
else if (name === 'q' || sequence === 'Q' || name === 'escape') {
|
|
36
|
-
onCancel();
|
|
37
|
-
}
|
|
38
|
-
}, { isActive: true });
|
|
39
|
-
const getMomentumEmoji = (momentum) => {
|
|
40
|
-
switch (momentum) {
|
|
41
|
-
case 'high': return '🔥';
|
|
42
|
-
case 'building': return '📈';
|
|
43
|
-
case 'stale': return '💤';
|
|
44
|
-
case 'none':
|
|
45
|
-
default: return '📊';
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
const getMomentumColor = (momentum) => {
|
|
49
|
-
switch (momentum) {
|
|
50
|
-
case 'high': return Colors.AccentGreen;
|
|
51
|
-
case 'building': return Colors.AccentPurple;
|
|
52
|
-
case 'stale': return Colors.Gray;
|
|
53
|
-
default: return Colors.Foreground;
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
const getEfficiencyEmoji = (efficiency) => {
|
|
57
|
-
switch (efficiency) {
|
|
58
|
-
case 'high': return '💰';
|
|
59
|
-
case 'low': return '⚠️';
|
|
60
|
-
case 'normal':
|
|
61
|
-
default: return '📊';
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
const getEfficiencyColor = (efficiency) => {
|
|
65
|
-
switch (efficiency) {
|
|
66
|
-
case 'high': return Colors.AccentGreen;
|
|
67
|
-
case 'low': return Colors.AccentRed;
|
|
68
|
-
case 'normal':
|
|
69
|
-
default: return Colors.Foreground;
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
const items = [
|
|
73
|
-
{
|
|
74
|
-
label: `Continue Project`,
|
|
75
|
-
value: 'continue',
|
|
76
|
-
description: projectSummary.activeSessions > 0
|
|
77
|
-
? `Resume from ${projectSummary.timeAgo} (${projectSummary.activeSessions} active sessions)`
|
|
78
|
-
: `Resume from ${projectSummary.timeAgo}`,
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
label: 'Start Fresh Session',
|
|
82
|
-
value: 'restart',
|
|
83
|
-
description: 'Begin new work session in this project',
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
label: 'Cancel',
|
|
87
|
-
value: 'cancel',
|
|
88
|
-
description: 'Exit without starting session',
|
|
89
|
-
},
|
|
90
|
-
];
|
|
91
|
-
const handleSelection = (selection) => {
|
|
92
|
-
switch (selection) {
|
|
93
|
-
case 'continue':
|
|
94
|
-
onContinue();
|
|
95
|
-
break;
|
|
96
|
-
case 'restart':
|
|
97
|
-
onRestart();
|
|
98
|
-
break;
|
|
99
|
-
case 'cancel':
|
|
100
|
-
onCancel();
|
|
101
|
-
break;
|
|
102
|
-
default:
|
|
103
|
-
// All cases are exhaustively handled above
|
|
104
|
-
break;
|
|
105
|
-
}
|
|
106
|
-
};
|
|
107
|
-
return (_jsxs(Box, { flexDirection: "column", padding: 1, children: [_jsx(Box, { marginBottom: 1, children: _jsx(Text, { bold: true, color: Colors.AccentPurple, children: "Welcome Back to FSS Link" }) }), _jsxs(Box, { flexDirection: "column", marginBottom: 2, paddingX: 1, children: [projectSummary.projectGoal && (_jsx(Box, { marginBottom: 1, children: _jsxs(Text, { color: Colors.Foreground, children: [_jsx(Text, { bold: true, children: "Project:" }), " ", projectSummary.projectGoal] }) })), _jsxs(Box, { flexDirection: "row", marginBottom: 1, children: [_jsx(Text, { color: Colors.Gray, children: "Last worked: " }), _jsx(Text, { color: Colors.Foreground, children: projectSummary.timeAgo })] }), _jsxs(Box, { flexDirection: "row", marginBottom: 1, children: [_jsx(Text, { color: Colors.Gray, children: "Sessions: " }), _jsx(Text, { color: Colors.Foreground, children: projectSummary.totalSessions }), projectSummary.activeSessions > 0 && (_jsxs(_Fragment, { children: [_jsx(Text, { color: Colors.Gray, children: " (" }), _jsxs(Text, { color: Colors.AccentGreen, children: [projectSummary.activeSessions, " active"] }), _jsx(Text, { color: Colors.Gray, children: ")" })] }))] }), _jsxs(Box, { flexDirection: "row", marginBottom: 1, children: [_jsx(Text, { color: Colors.Gray, children: "Momentum: " }), _jsxs(Text, { color: getMomentumColor(projectSummary.momentum), children: [getMomentumEmoji(projectSummary.momentum), " ", projectSummary.momentum] })] }), projectSummary.gitStatus && (_jsxs(Box, { flexDirection: "column", marginBottom: 1, children: [_jsxs(Box, { flexDirection: "row", marginBottom: 1, children: [_jsx(Text, { color: Colors.Gray, children: "Branch: " }), _jsx(Text, { color: Colors.AccentBlue, children: projectSummary.gitStatus.branch }), (projectSummary.gitStatus.ahead || projectSummary.gitStatus.behind) && (_jsxs(Text, { color: Colors.Gray, children: [' ', "[", projectSummary.gitStatus.ahead && `↑${projectSummary.gitStatus.ahead}`, projectSummary.gitStatus.ahead && projectSummary.gitStatus.behind && ' ', projectSummary.gitStatus.behind && `↓${projectSummary.gitStatus.behind}`, "]"] }))] }), projectSummary.gitStatus.hasChanges && (_jsxs(Box, { flexDirection: "row", marginBottom: 1, children: [_jsx(Text, { color: Colors.Gray, children: "Changes: " }), projectSummary.gitStatus.stagedFiles > 0 && (_jsxs(Text, { color: Colors.AccentGreen, children: [projectSummary.gitStatus.stagedFiles, " staged"] })), projectSummary.gitStatus.stagedFiles > 0 && projectSummary.gitStatus.unstagedFiles > 0 && (_jsx(Text, { color: Colors.Gray, children: ", " })), projectSummary.gitStatus.unstagedFiles > 0 && (_jsxs(Text, { color: Colors.AccentYellow, children: [projectSummary.gitStatus.unstagedFiles, " unstaged"] }))] })), projectSummary.gitStatus.lastCommitMessage && (_jsxs(Box, { flexDirection: "row", marginBottom: 1, children: [_jsx(Text, { color: Colors.Gray, children: "Last commit: " }), _jsxs(Text, { color: Colors.Foreground, children: [projectSummary.gitStatus.lastCommitHash, " \"", projectSummary.gitStatus.lastCommitMessage, "\""] })] }))] })), (projectSummary.efficiency || projectSummary.recentActivity || projectSummary.tokenEfficiency) && (_jsxs(Box, { flexDirection: "column", marginBottom: 1, paddingY: 1, borderStyle: "single", borderColor: Colors.Gray, children: [_jsx(Box, { marginBottom: 1, children: _jsx(Text, { bold: true, color: Colors.AccentPurple, children: "Quick Status" }) }), projectSummary.efficiency && (_jsx(Box, { flexDirection: "row", marginBottom: 1, children: _jsxs(Text, { color: getEfficiencyColor(projectSummary.efficiency), children: [getEfficiencyEmoji(projectSummary.efficiency), " ", projectSummary.efficiency, " efficiency"] }) })), projectSummary.recentActivity && (_jsx(Box, { marginBottom: 1, children: _jsx(Text, { color: Colors.Foreground, children: projectSummary.recentActivity }) })), projectSummary.tokenEfficiency && (_jsx(Box, { children: _jsx(Text, { color: Colors.Gray, children: projectSummary.tokenEfficiency }) }))] })), projectSummary.nextSuggestion && (_jsx(Box, { marginBottom: 1, children: _jsxs(Text, { color: Colors.AccentPurple, children: ["\uD83D\uDCA1 ", projectSummary.nextSuggestion] }) })), projectSummary.lastContent && (_jsx(Box, { marginBottom: 1, children: _jsxs(Text, { color: Colors.Gray, children: ["Last message: \"", projectSummary.lastContent, "\""] }) }))] }), _jsx(RadioButtonSelect, { items: items, onSelect: handleSelection }), _jsx(Box, { marginTop: 1, paddingX: 1, children: _jsx(Text, { color: Colors.Gray, children: "Press C to continue, R to restart, Q to cancel, or use \u2191\u2193 arrows" }) })] }));
|
|
108
|
-
};
|
|
109
|
-
//# sourceMappingURL=WelcomeBackDialog.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WelcomeBackDialog.js","sourceRoot":"","sources":["../../../../src/ui/components/WelcomeBackDialog.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;AAEH,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAmBtD;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAChC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@@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import React from 'react';
|
|
7
|
-
import { CompressionProps } from '../../types.js';
|
|
8
|
-
export interface CompressionDisplayProps {
|
|
9
|
-
compression: CompressionProps;
|
|
10
|
-
}
|
|
11
|
-
export declare const CompressionMessage: React.FC<CompressionDisplayProps>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Box, Text } from 'ink';
|
|
3
|
-
import Spinner from 'ink-spinner';
|
|
4
|
-
import { Colors } from '../../colors.js';
|
|
5
|
-
/*
|
|
6
|
-
* Compression messages appear when the /compress command is run, and show a loading spinner
|
|
7
|
-
* while compression is in progress, followed up by some compression stats.
|
|
8
|
-
*/
|
|
9
|
-
export const CompressionMessage = ({ compression, }) => {
|
|
10
|
-
const text = compression.isPending
|
|
11
|
-
? 'Compressing chat history'
|
|
12
|
-
: `Chat history compressed from ${compression.originalTokenCount ?? 'unknown'}` +
|
|
13
|
-
` to ${compression.newTokenCount ?? 'unknown'} tokens.`;
|
|
14
|
-
return (_jsxs(Box, { flexDirection: "row", children: [_jsx(Box, { marginRight: 1, children: compression.isPending ? (_jsx(Spinner, { type: "dots" })) : (_jsx(Text, { color: Colors.AccentPurple, children: "\u2726" })) }), _jsx(Box, { children: _jsx(Text, { color: compression.isPending ? Colors.AccentPurple : Colors.AccentGreen, children: text }) })] }));
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=CompressionMessage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CompressionMessage.js","sourceRoot":"","sources":["../../../../../src/ui/components/messages/CompressionMessage.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAEhC,OAAO,OAAO,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAMzC;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAsC,CAAC,EACpE,WAAW,GACZ,EAAE,EAAE;IACH,MAAM,IAAI,GAAG,WAAW,CAAC,SAAS;QAChC,CAAC,CAAC,0BAA0B;QAC5B,CAAC,CAAC,gCAAgC,WAAW,CAAC,kBAAkB,IAAI,SAAS,EAAE;YAC7E,OAAO,WAAW,CAAC,aAAa,IAAI,SAAS,UAAU,CAAC;IAE5D,OAAO,CACL,MAAC,GAAG,IAAC,aAAa,EAAC,KAAK,aACtB,KAAC,GAAG,IAAC,WAAW,EAAE,CAAC,YAChB,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,CACvB,KAAC,OAAO,IAAC,IAAI,EAAC,MAAM,GAAG,CACxB,CAAC,CAAC,CAAC,CACF,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,YAAY,uBAAU,CAC3C,GACG,EACN,KAAC,GAAG,cACF,KAAC,IAAI,IACH,KAAK,EACH,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW,YAGjE,IAAI,GACA,GACH,IACF,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import React from 'react';
|
|
7
|
-
interface DiffRendererProps {
|
|
8
|
-
diffContent: string;
|
|
9
|
-
filename?: string;
|
|
10
|
-
tabWidth?: number;
|
|
11
|
-
availableTerminalHeight?: number;
|
|
12
|
-
terminalWidth: number;
|
|
13
|
-
theme?: import('../../themes/theme.js').Theme;
|
|
14
|
-
}
|
|
15
|
-
export declare const DiffRenderer: React.FC<DiffRendererProps>;
|
|
16
|
-
export {};
|
|
@@ -1,222 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { Box, Text } from 'ink';
|
|
3
|
-
import { Colors } from '../../colors.js';
|
|
4
|
-
import crypto from 'crypto';
|
|
5
|
-
import { colorizeCode, colorizeLine } from '../../utils/CodeColorizer.js';
|
|
6
|
-
import { MaxSizedBox } from '../shared/MaxSizedBox.js';
|
|
7
|
-
import { theme } from '../../semantic-colors.js';
|
|
8
|
-
function parseDiffWithLineNumbers(diffContent) {
|
|
9
|
-
const lines = diffContent.split('\n');
|
|
10
|
-
const result = [];
|
|
11
|
-
let currentOldLine = 0;
|
|
12
|
-
let currentNewLine = 0;
|
|
13
|
-
let inHunk = false;
|
|
14
|
-
const hunkHeaderRegex = /^@@ -(\d+),?\d* \+(\d+),?\d* @@/;
|
|
15
|
-
for (const line of lines) {
|
|
16
|
-
const hunkMatch = line.match(hunkHeaderRegex);
|
|
17
|
-
if (hunkMatch) {
|
|
18
|
-
currentOldLine = parseInt(hunkMatch[1], 10);
|
|
19
|
-
currentNewLine = parseInt(hunkMatch[2], 10);
|
|
20
|
-
inHunk = true;
|
|
21
|
-
result.push({ type: 'hunk', content: line });
|
|
22
|
-
// We need to adjust the starting point because the first line number applies to the *first* actual line change/context,
|
|
23
|
-
// but we increment *before* pushing that line. So decrement here.
|
|
24
|
-
currentOldLine--;
|
|
25
|
-
currentNewLine--;
|
|
26
|
-
continue;
|
|
27
|
-
}
|
|
28
|
-
if (!inHunk) {
|
|
29
|
-
// Skip standard Git header lines more robustly
|
|
30
|
-
if (line.startsWith('--- ') ||
|
|
31
|
-
line.startsWith('+++ ') ||
|
|
32
|
-
line.startsWith('diff --git') ||
|
|
33
|
-
line.startsWith('index ') ||
|
|
34
|
-
line.startsWith('similarity index') ||
|
|
35
|
-
line.startsWith('rename from') ||
|
|
36
|
-
line.startsWith('rename to') ||
|
|
37
|
-
line.startsWith('new file mode') ||
|
|
38
|
-
line.startsWith('deleted file mode'))
|
|
39
|
-
continue;
|
|
40
|
-
// If it's not a hunk or header, skip (or handle as 'other' if needed)
|
|
41
|
-
continue;
|
|
42
|
-
}
|
|
43
|
-
if (line.startsWith('+')) {
|
|
44
|
-
currentNewLine++; // Increment before pushing
|
|
45
|
-
result.push({
|
|
46
|
-
type: 'add',
|
|
47
|
-
newLine: currentNewLine,
|
|
48
|
-
content: line.substring(1),
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
else if (line.startsWith('-')) {
|
|
52
|
-
currentOldLine++; // Increment before pushing
|
|
53
|
-
result.push({
|
|
54
|
-
type: 'del',
|
|
55
|
-
oldLine: currentOldLine,
|
|
56
|
-
content: line.substring(1),
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
else if (line.startsWith(' ')) {
|
|
60
|
-
currentOldLine++; // Increment before pushing
|
|
61
|
-
currentNewLine++;
|
|
62
|
-
result.push({
|
|
63
|
-
type: 'context',
|
|
64
|
-
oldLine: currentOldLine,
|
|
65
|
-
newLine: currentNewLine,
|
|
66
|
-
content: line.substring(1),
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
else if (line.startsWith('\\')) {
|
|
70
|
-
// Handle ""
|
|
71
|
-
result.push({ type: 'other', content: line });
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
return result;
|
|
75
|
-
}
|
|
76
|
-
const DEFAULT_TAB_WIDTH = 4; // Spaces per tab for normalization
|
|
77
|
-
export const DiffRenderer = ({ diffContent, filename, tabWidth = DEFAULT_TAB_WIDTH, availableTerminalHeight, terminalWidth, theme, }) => {
|
|
78
|
-
if (!diffContent || typeof diffContent !== 'string') {
|
|
79
|
-
return _jsx(Text, { color: Colors.AccentYellow, children: "No diff content." });
|
|
80
|
-
}
|
|
81
|
-
const parsedLines = parseDiffWithLineNumbers(diffContent);
|
|
82
|
-
if (parsedLines.length === 0) {
|
|
83
|
-
return (_jsx(Box, { borderStyle: "round", borderColor: Colors.Gray, padding: 1, children: _jsx(Text, { dimColor: true, children: "No changes detected." }) }));
|
|
84
|
-
}
|
|
85
|
-
// Check if the diff represents a new file (only additions and header lines)
|
|
86
|
-
const isNewFile = parsedLines.every((line) => line.type === 'add' ||
|
|
87
|
-
line.type === 'hunk' ||
|
|
88
|
-
line.type === 'other' ||
|
|
89
|
-
line.content.startsWith('diff --git') ||
|
|
90
|
-
line.content.startsWith('new file mode'));
|
|
91
|
-
let renderedOutput;
|
|
92
|
-
if (isNewFile) {
|
|
93
|
-
// Extract only the added lines' content
|
|
94
|
-
const addedContent = parsedLines
|
|
95
|
-
.filter((line) => line.type === 'add')
|
|
96
|
-
.map((line) => line.content)
|
|
97
|
-
.join('\n');
|
|
98
|
-
// Attempt to infer language from filename, default to plain text if no filename
|
|
99
|
-
const fileExtension = filename?.split('.').pop() || null;
|
|
100
|
-
const language = fileExtension
|
|
101
|
-
? getLanguageFromExtension(fileExtension)
|
|
102
|
-
: null;
|
|
103
|
-
renderedOutput = colorizeCode(addedContent, language, availableTerminalHeight, terminalWidth, theme);
|
|
104
|
-
}
|
|
105
|
-
else {
|
|
106
|
-
renderedOutput = renderDiffContent(parsedLines, filename, tabWidth, availableTerminalHeight, terminalWidth);
|
|
107
|
-
}
|
|
108
|
-
return renderedOutput;
|
|
109
|
-
};
|
|
110
|
-
const renderDiffContent = (parsedLines, filename, tabWidth = DEFAULT_TAB_WIDTH, availableTerminalHeight, terminalWidth) => {
|
|
111
|
-
// 1. Normalize whitespace (replace tabs with spaces) *before* further processing
|
|
112
|
-
const normalizedLines = parsedLines.map((line) => ({
|
|
113
|
-
...line,
|
|
114
|
-
content: line.content.replace(/\t/g, ' '.repeat(tabWidth)),
|
|
115
|
-
}));
|
|
116
|
-
// Filter out non-displayable lines (hunks, potentially 'other') using the normalized list
|
|
117
|
-
const displayableLines = normalizedLines.filter((l) => l.type !== 'hunk' && l.type !== 'other');
|
|
118
|
-
if (displayableLines.length === 0) {
|
|
119
|
-
return (_jsx(Box, { borderStyle: "round", borderColor: Colors.Gray, padding: 1, children: _jsx(Text, { dimColor: true, children: "No changes detected." }) }));
|
|
120
|
-
}
|
|
121
|
-
const maxLineNumber = Math.max(0, ...displayableLines.map((l) => l.oldLine ?? 0), ...displayableLines.map((l) => l.newLine ?? 0));
|
|
122
|
-
const gutterWidth = Math.max(1, maxLineNumber.toString().length);
|
|
123
|
-
const fileExtension = filename?.split('.').pop() || null;
|
|
124
|
-
const language = fileExtension
|
|
125
|
-
? getLanguageFromExtension(fileExtension)
|
|
126
|
-
: null;
|
|
127
|
-
// Calculate the minimum indentation across all displayable lines
|
|
128
|
-
let baseIndentation = Infinity; // Start high to find the minimum
|
|
129
|
-
for (const line of displayableLines) {
|
|
130
|
-
// Only consider lines with actual content for indentation calculation
|
|
131
|
-
if (line.content.trim() === '')
|
|
132
|
-
continue;
|
|
133
|
-
const firstCharIndex = line.content.search(/\S/); // Find index of first non-whitespace char
|
|
134
|
-
const currentIndent = firstCharIndex === -1 ? 0 : firstCharIndex; // Indent is 0 if no non-whitespace found
|
|
135
|
-
baseIndentation = Math.min(baseIndentation, currentIndent);
|
|
136
|
-
}
|
|
137
|
-
// If baseIndentation remained Infinity (e.g., no displayable lines with content), default to 0
|
|
138
|
-
if (!isFinite(baseIndentation)) {
|
|
139
|
-
baseIndentation = 0;
|
|
140
|
-
}
|
|
141
|
-
const key = filename
|
|
142
|
-
? `diff-box-${filename}`
|
|
143
|
-
: `diff-box-${crypto.createHash('sha1').update(JSON.stringify(parsedLines)).digest('hex')}`;
|
|
144
|
-
let lastLineNumber = null;
|
|
145
|
-
const MAX_CONTEXT_LINES_WITHOUT_GAP = 5;
|
|
146
|
-
return (_jsx(MaxSizedBox, { maxHeight: availableTerminalHeight, maxWidth: terminalWidth, children: displayableLines.reduce((acc, line, index) => {
|
|
147
|
-
// Determine the relevant line number for gap calculation based on type
|
|
148
|
-
let relevantLineNumberForGapCalc = null;
|
|
149
|
-
if (line.type === 'add' || line.type === 'context') {
|
|
150
|
-
relevantLineNumberForGapCalc = line.newLine ?? null;
|
|
151
|
-
}
|
|
152
|
-
else if (line.type === 'del') {
|
|
153
|
-
// For deletions, the gap is typically in relation to the original file's line numbering
|
|
154
|
-
relevantLineNumberForGapCalc = line.oldLine ?? null;
|
|
155
|
-
}
|
|
156
|
-
if (lastLineNumber !== null &&
|
|
157
|
-
relevantLineNumberForGapCalc !== null &&
|
|
158
|
-
relevantLineNumberForGapCalc >
|
|
159
|
-
lastLineNumber + MAX_CONTEXT_LINES_WITHOUT_GAP + 1) {
|
|
160
|
-
acc.push(_jsx(Box, { children: _jsx(Text, { wrap: "truncate", color: Colors.Gray, children: '═'.repeat(terminalWidth) }) }, `gap-${index}`));
|
|
161
|
-
}
|
|
162
|
-
const lineKey = `diff-line-${index}`;
|
|
163
|
-
let gutterNumStr = '';
|
|
164
|
-
let prefixSymbol = ' ';
|
|
165
|
-
switch (line.type) {
|
|
166
|
-
case 'add':
|
|
167
|
-
gutterNumStr = (line.newLine ?? '').toString();
|
|
168
|
-
prefixSymbol = '+';
|
|
169
|
-
lastLineNumber = line.newLine ?? null;
|
|
170
|
-
break;
|
|
171
|
-
case 'del':
|
|
172
|
-
gutterNumStr = (line.oldLine ?? '').toString();
|
|
173
|
-
prefixSymbol = '-';
|
|
174
|
-
// For deletions, update lastLineNumber based on oldLine if it's advancing.
|
|
175
|
-
// This helps manage gaps correctly if there are multiple consecutive deletions
|
|
176
|
-
// or if a deletion is followed by a context line far away in the original file.
|
|
177
|
-
if (line.oldLine !== undefined) {
|
|
178
|
-
lastLineNumber = line.oldLine;
|
|
179
|
-
}
|
|
180
|
-
break;
|
|
181
|
-
case 'context':
|
|
182
|
-
gutterNumStr = (line.newLine ?? '').toString();
|
|
183
|
-
prefixSymbol = ' ';
|
|
184
|
-
lastLineNumber = line.newLine ?? null;
|
|
185
|
-
break;
|
|
186
|
-
default:
|
|
187
|
-
return acc;
|
|
188
|
-
}
|
|
189
|
-
const displayContent = line.content.substring(baseIndentation);
|
|
190
|
-
acc.push(_jsxs(Box, { flexDirection: "row", children: [_jsxs(Text, { color: theme.text.secondary, backgroundColor: line.type === 'add'
|
|
191
|
-
? theme.background.diff.added
|
|
192
|
-
: line.type === 'del'
|
|
193
|
-
? theme.background.diff.removed
|
|
194
|
-
: undefined, children: [gutterNumStr.padStart(gutterWidth), ' '] }), line.type === 'context' ? (_jsxs(_Fragment, { children: [_jsxs(Text, { children: [prefixSymbol, " "] }), _jsx(Text, { wrap: "wrap", children: colorizeLine(displayContent, language) })] })) : (_jsxs(Text, { backgroundColor: line.type === 'add'
|
|
195
|
-
? theme.background.diff.added
|
|
196
|
-
: theme.background.diff.removed, wrap: "wrap", children: [_jsx(Text, { color: line.type === 'add'
|
|
197
|
-
? theme.status.success
|
|
198
|
-
: theme.status.error, children: prefixSymbol }), ' ', colorizeLine(displayContent, language)] }))] }, lineKey));
|
|
199
|
-
return acc;
|
|
200
|
-
}, []) }, key));
|
|
201
|
-
};
|
|
202
|
-
const getLanguageFromExtension = (extension) => {
|
|
203
|
-
const languageMap = {
|
|
204
|
-
js: 'javascript',
|
|
205
|
-
ts: 'typescript',
|
|
206
|
-
py: 'python',
|
|
207
|
-
json: 'json',
|
|
208
|
-
css: 'css',
|
|
209
|
-
html: 'html',
|
|
210
|
-
sh: 'bash',
|
|
211
|
-
md: 'markdown',
|
|
212
|
-
yaml: 'yaml',
|
|
213
|
-
yml: 'yaml',
|
|
214
|
-
txt: 'plaintext',
|
|
215
|
-
java: 'java',
|
|
216
|
-
c: 'c',
|
|
217
|
-
cpp: 'cpp',
|
|
218
|
-
rb: 'ruby',
|
|
219
|
-
};
|
|
220
|
-
return languageMap[extension] || null; // Return null if extension not found
|
|
221
|
-
};
|
|
222
|
-
//# sourceMappingURL=DiffRenderer.js.map
|