erosolar-cli 1.7.391 → 1.7.392
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/core/toolPreconditions.d.ts.map +1 -1
- package/dist/core/toolPreconditions.js +56 -8
- package/dist/core/toolPreconditions.js.map +1 -1
- package/dist/core/toolRuntime.d.ts +0 -6
- package/dist/core/toolRuntime.d.ts.map +1 -1
- package/dist/core/toolRuntime.js +0 -7
- package/dist/core/toolRuntime.js.map +1 -1
- package/dist/plugins/tools/nodeDefaults.js +2 -2
- package/dist/plugins/tools/nodeDefaults.js.map +1 -1
- package/dist/runtime/agentSession.d.ts +1 -2
- package/dist/runtime/agentSession.d.ts.map +1 -1
- package/dist/runtime/agentSession.js +0 -1
- package/dist/runtime/agentSession.js.map +1 -1
- package/dist/shell/interactiveShell.d.ts +5 -23
- package/dist/shell/interactiveShell.d.ts.map +1 -1
- package/dist/shell/interactiveShell.js +109 -218
- package/dist/shell/interactiveShell.js.map +1 -1
- package/dist/shell/shellApp.d.ts.map +1 -1
- package/dist/shell/shellApp.js +0 -5
- package/dist/shell/shellApp.js.map +1 -1
- package/dist/shell/systemPrompt.d.ts.map +1 -1
- package/dist/shell/systemPrompt.js +0 -1
- package/dist/shell/systemPrompt.js.map +1 -1
- package/dist/shell/terminalInput.d.ts +8 -16
- package/dist/shell/terminalInput.d.ts.map +1 -1
- package/dist/shell/terminalInput.js +78 -132
- package/dist/shell/terminalInput.js.map +1 -1
- package/dist/shell/terminalInputAdapter.d.ts +0 -9
- package/dist/shell/terminalInputAdapter.d.ts.map +1 -1
- package/dist/shell/terminalInputAdapter.js +0 -6
- package/dist/shell/terminalInputAdapter.js.map +1 -1
- package/dist/tools/fileTools.d.ts.map +1 -1
- package/dist/tools/fileTools.js +21 -26
- package/dist/tools/fileTools.js.map +1 -1
- package/dist/tools/grepTools.js +4 -3
- package/dist/tools/grepTools.js.map +1 -1
- package/dist/tools/webTools.d.ts.map +1 -1
- package/dist/tools/webTools.js +10 -30
- package/dist/tools/webTools.js.map +1 -1
- package/dist/ui/display.d.ts +8 -12
- package/dist/ui/display.d.ts.map +1 -1
- package/dist/ui/display.js +62 -122
- package/dist/ui/display.js.map +1 -1
- package/dist/ui/toolDisplay.d.ts.map +1 -1
- package/dist/ui/toolDisplay.js +2 -1
- package/dist/ui/toolDisplay.js.map +1 -1
- package/dist/ui/unified/layout.js +2 -2
- package/dist/ui/unified/layout.js.map +1 -1
- package/package.json +1 -1
- package/dist/StringUtils.d.ts +0 -8
- package/dist/StringUtils.d.ts.map +0 -1
- package/dist/StringUtils.js +0 -11
- package/dist/StringUtils.js.map +0 -1
- package/dist/adapters/browser/index.d.ts +0 -12
- package/dist/adapters/browser/index.d.ts.map +0 -1
- package/dist/adapters/browser/index.js +0 -11
- package/dist/adapters/browser/index.js.map +0 -1
- package/dist/adapters/node/index.d.ts +0 -17
- package/dist/adapters/node/index.d.ts.map +0 -1
- package/dist/adapters/node/index.js +0 -35
- package/dist/adapters/node/index.js.map +0 -1
- package/dist/adapters/remote/index.d.ts +0 -13
- package/dist/adapters/remote/index.d.ts.map +0 -1
- package/dist/adapters/remote/index.js +0 -20
- package/dist/adapters/remote/index.js.map +0 -1
- package/dist/adapters/types.d.ts +0 -14
- package/dist/adapters/types.d.ts.map +0 -1
- package/dist/adapters/types.js +0 -2
- package/dist/adapters/types.js.map +0 -1
- package/dist/bin/selfTest.d.ts +0 -14
- package/dist/bin/selfTest.d.ts.map +0 -1
- package/dist/bin/selfTest.js +0 -304
- package/dist/bin/selfTest.js.map +0 -1
- package/dist/browser/BrowserSessionManager.d.ts +0 -307
- package/dist/browser/BrowserSessionManager.d.ts.map +0 -1
- package/dist/browser/BrowserSessionManager.js +0 -713
- package/dist/browser/BrowserSessionManager.js.map +0 -1
- package/dist/capabilities/advancedTestGenerationCapability.d.ts +0 -17
- package/dist/capabilities/advancedTestGenerationCapability.d.ts.map +0 -1
- package/dist/capabilities/advancedTestGenerationCapability.js +0 -28
- package/dist/capabilities/advancedTestGenerationCapability.js.map +0 -1
- package/dist/capabilities/askUserCapability.d.ts +0 -21
- package/dist/capabilities/askUserCapability.d.ts.map +0 -1
- package/dist/capabilities/askUserCapability.js +0 -155
- package/dist/capabilities/askUserCapability.js.map +0 -1
- package/dist/capabilities/bashCapability.d.ts +0 -13
- package/dist/capabilities/bashCapability.d.ts.map +0 -1
- package/dist/capabilities/bashCapability.js +0 -24
- package/dist/capabilities/bashCapability.js.map +0 -1
- package/dist/capabilities/browserAutomationCapability.d.ts +0 -37
- package/dist/capabilities/browserAutomationCapability.d.ts.map +0 -1
- package/dist/capabilities/browserAutomationCapability.js +0 -49
- package/dist/capabilities/browserAutomationCapability.js.map +0 -1
- package/dist/capabilities/buildCapability.d.ts +0 -24
- package/dist/capabilities/buildCapability.d.ts.map +0 -1
- package/dist/capabilities/buildCapability.js +0 -25
- package/dist/capabilities/buildCapability.js.map +0 -1
- package/dist/capabilities/cloudCapability.d.ts +0 -13
- package/dist/capabilities/cloudCapability.d.ts.map +0 -1
- package/dist/capabilities/cloudCapability.js +0 -38
- package/dist/capabilities/cloudCapability.js.map +0 -1
- package/dist/capabilities/codeAnalysisCapability.d.ts +0 -13
- package/dist/capabilities/codeAnalysisCapability.d.ts.map +0 -1
- package/dist/capabilities/codeAnalysisCapability.js +0 -24
- package/dist/capabilities/codeAnalysisCapability.js.map +0 -1
- package/dist/capabilities/codeGenerationCapability.d.ts +0 -13
- package/dist/capabilities/codeGenerationCapability.d.ts.map +0 -1
- package/dist/capabilities/codeGenerationCapability.js +0 -25
- package/dist/capabilities/codeGenerationCapability.js.map +0 -1
- package/dist/capabilities/codeQualityCapability.d.ts +0 -13
- package/dist/capabilities/codeQualityCapability.d.ts.map +0 -1
- package/dist/capabilities/codeQualityCapability.js +0 -25
- package/dist/capabilities/codeQualityCapability.js.map +0 -1
- package/dist/capabilities/dependencySecurityCapability.d.ts +0 -13
- package/dist/capabilities/dependencySecurityCapability.d.ts.map +0 -1
- package/dist/capabilities/dependencySecurityCapability.js +0 -24
- package/dist/capabilities/dependencySecurityCapability.js.map +0 -1
- package/dist/capabilities/devCapability.d.ts +0 -13
- package/dist/capabilities/devCapability.d.ts.map +0 -1
- package/dist/capabilities/devCapability.js +0 -24
- package/dist/capabilities/devCapability.js.map +0 -1
- package/dist/capabilities/editCapability.d.ts +0 -17
- package/dist/capabilities/editCapability.d.ts.map +0 -1
- package/dist/capabilities/editCapability.js +0 -27
- package/dist/capabilities/editCapability.js.map +0 -1
- package/dist/capabilities/emailCapability.d.ts +0 -12
- package/dist/capabilities/emailCapability.d.ts.map +0 -1
- package/dist/capabilities/emailCapability.js +0 -22
- package/dist/capabilities/emailCapability.js.map +0 -1
- package/dist/capabilities/enhancedCodeIntelligenceCapability.d.ts +0 -17
- package/dist/capabilities/enhancedCodeIntelligenceCapability.d.ts.map +0 -1
- package/dist/capabilities/enhancedCodeIntelligenceCapability.js +0 -28
- package/dist/capabilities/enhancedCodeIntelligenceCapability.js.map +0 -1
- package/dist/capabilities/enhancedDevWorkflowCapability.d.ts +0 -17
- package/dist/capabilities/enhancedDevWorkflowCapability.d.ts.map +0 -1
- package/dist/capabilities/enhancedDevWorkflowCapability.js +0 -28
- package/dist/capabilities/enhancedDevWorkflowCapability.js.map +0 -1
- package/dist/capabilities/enhancedGitCapability.d.ts +0 -7
- package/dist/capabilities/enhancedGitCapability.d.ts.map +0 -1
- package/dist/capabilities/enhancedGitCapability.js +0 -220
- package/dist/capabilities/enhancedGitCapability.js.map +0 -1
- package/dist/capabilities/filesystemCapability.d.ts +0 -13
- package/dist/capabilities/filesystemCapability.d.ts.map +0 -1
- package/dist/capabilities/filesystemCapability.js +0 -24
- package/dist/capabilities/filesystemCapability.js.map +0 -1
- package/dist/capabilities/frontendTestingCapability.d.ts +0 -13
- package/dist/capabilities/frontendTestingCapability.d.ts.map +0 -1
- package/dist/capabilities/frontendTestingCapability.js +0 -28
- package/dist/capabilities/frontendTestingCapability.js.map +0 -1
- package/dist/capabilities/globCapability.d.ts +0 -17
- package/dist/capabilities/globCapability.d.ts.map +0 -1
- package/dist/capabilities/globCapability.js +0 -27
- package/dist/capabilities/globCapability.js.map +0 -1
- package/dist/capabilities/index.d.ts +0 -26
- package/dist/capabilities/index.d.ts.map +0 -1
- package/dist/capabilities/index.js +0 -26
- package/dist/capabilities/index.js.map +0 -1
- package/dist/capabilities/interactionCapability.d.ts +0 -12
- package/dist/capabilities/interactionCapability.d.ts.map +0 -1
- package/dist/capabilities/interactionCapability.js +0 -22
- package/dist/capabilities/interactionCapability.js.map +0 -1
- package/dist/capabilities/mcpCapability.d.ts +0 -6
- package/dist/capabilities/mcpCapability.d.ts.map +0 -1
- package/dist/capabilities/mcpCapability.js +0 -19
- package/dist/capabilities/mcpCapability.js.map +0 -1
- package/dist/capabilities/notebookCapability.d.ts +0 -17
- package/dist/capabilities/notebookCapability.d.ts.map +0 -1
- package/dist/capabilities/notebookCapability.js +0 -27
- package/dist/capabilities/notebookCapability.js.map +0 -1
- package/dist/capabilities/performanceMonitoringCapability.d.ts +0 -108
- package/dist/capabilities/performanceMonitoringCapability.d.ts.map +0 -1
- package/dist/capabilities/performanceMonitoringCapability.js +0 -176
- package/dist/capabilities/performanceMonitoringCapability.js.map +0 -1
- package/dist/capabilities/planningCapability.d.ts +0 -16
- package/dist/capabilities/planningCapability.d.ts.map +0 -1
- package/dist/capabilities/planningCapability.js +0 -26
- package/dist/capabilities/planningCapability.js.map +0 -1
- package/dist/capabilities/refactoringCapability.d.ts +0 -13
- package/dist/capabilities/refactoringCapability.d.ts.map +0 -1
- package/dist/capabilities/refactoringCapability.js +0 -25
- package/dist/capabilities/refactoringCapability.js.map +0 -1
- package/dist/capabilities/repoChecksCapability.d.ts +0 -10
- package/dist/capabilities/repoChecksCapability.d.ts.map +0 -1
- package/dist/capabilities/repoChecksCapability.js +0 -24
- package/dist/capabilities/repoChecksCapability.js.map +0 -1
- package/dist/capabilities/searchCapability.d.ts +0 -13
- package/dist/capabilities/searchCapability.d.ts.map +0 -1
- package/dist/capabilities/searchCapability.js +0 -24
- package/dist/capabilities/searchCapability.js.map +0 -1
- package/dist/capabilities/skillCapability.d.ts +0 -3
- package/dist/capabilities/skillCapability.d.ts.map +0 -1
- package/dist/capabilities/skillCapability.js +0 -77
- package/dist/capabilities/skillCapability.js.map +0 -1
- package/dist/capabilities/taskManagementCapability.d.ts +0 -12
- package/dist/capabilities/taskManagementCapability.d.ts.map +0 -1
- package/dist/capabilities/taskManagementCapability.js +0 -22
- package/dist/capabilities/taskManagementCapability.js.map +0 -1
- package/dist/capabilities/testingCapability.d.ts +0 -13
- package/dist/capabilities/testingCapability.d.ts.map +0 -1
- package/dist/capabilities/testingCapability.js +0 -25
- package/dist/capabilities/testingCapability.js.map +0 -1
- package/dist/capabilities/todoCapability.d.ts +0 -19
- package/dist/capabilities/todoCapability.d.ts.map +0 -1
- package/dist/capabilities/todoCapability.js +0 -169
- package/dist/capabilities/todoCapability.js.map +0 -1
- package/dist/capabilities/toolManifest.d.ts +0 -3
- package/dist/capabilities/toolManifest.d.ts.map +0 -1
- package/dist/capabilities/toolManifest.js +0 -160
- package/dist/capabilities/toolManifest.js.map +0 -1
- package/dist/capabilities/toolRegistry.d.ts +0 -22
- package/dist/capabilities/toolRegistry.d.ts.map +0 -1
- package/dist/capabilities/toolRegistry.js +0 -115
- package/dist/capabilities/toolRegistry.js.map +0 -1
- package/dist/capabilities/validationCapability.d.ts +0 -13
- package/dist/capabilities/validationCapability.d.ts.map +0 -1
- package/dist/capabilities/validationCapability.js +0 -24
- package/dist/capabilities/validationCapability.js.map +0 -1
- package/dist/capabilities/webCapability.d.ts +0 -12
- package/dist/capabilities/webCapability.d.ts.map +0 -1
- package/dist/capabilities/webCapability.js +0 -22
- package/dist/capabilities/webCapability.js.map +0 -1
- package/dist/config.d.ts +0 -25
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js +0 -140
- package/dist/config.js.map +0 -1
- package/dist/contracts/v1/agent.d.ts +0 -147
- package/dist/contracts/v1/agent.d.ts.map +0 -1
- package/dist/contracts/v1/agent.js +0 -8
- package/dist/contracts/v1/agent.js.map +0 -1
- package/dist/contracts/v1/agentProfileManifest.d.ts +0 -60
- package/dist/contracts/v1/agentProfileManifest.d.ts.map +0 -1
- package/dist/contracts/v1/agentProfileManifest.js +0 -9
- package/dist/contracts/v1/agentProfileManifest.js.map +0 -1
- package/dist/contracts/v1/agentRules.d.ts +0 -60
- package/dist/contracts/v1/agentRules.d.ts.map +0 -1
- package/dist/contracts/v1/agentRules.js +0 -10
- package/dist/contracts/v1/agentRules.js.map +0 -1
- package/dist/contracts/v1/provider.d.ts +0 -149
- package/dist/contracts/v1/provider.d.ts.map +0 -1
- package/dist/contracts/v1/provider.js +0 -7
- package/dist/contracts/v1/provider.js.map +0 -1
- package/dist/contracts/v1/tool.d.ts +0 -136
- package/dist/contracts/v1/tool.d.ts.map +0 -1
- package/dist/contracts/v1/tool.js +0 -7
- package/dist/contracts/v1/tool.js.map +0 -1
- package/dist/contracts/v1/toolAccess.d.ts +0 -43
- package/dist/contracts/v1/toolAccess.d.ts.map +0 -1
- package/dist/contracts/v1/toolAccess.js +0 -9
- package/dist/contracts/v1/toolAccess.js.map +0 -1
- package/dist/core/LazyLoader.d.ts +0 -129
- package/dist/core/LazyLoader.d.ts.map +0 -1
- package/dist/core/LazyLoader.js +0 -240
- package/dist/core/LazyLoader.js.map +0 -1
- package/dist/core/agentProfileManifest.d.ts +0 -3
- package/dist/core/agentProfileManifest.d.ts.map +0 -1
- package/dist/core/agentProfileManifest.js +0 -188
- package/dist/core/agentProfileManifest.js.map +0 -1
- package/dist/core/agentProfiles.d.ts +0 -22
- package/dist/core/agentProfiles.d.ts.map +0 -1
- package/dist/core/agentProfiles.js +0 -35
- package/dist/core/agentProfiles.js.map +0 -1
- package/dist/core/agentRulebook.d.ts +0 -11
- package/dist/core/agentRulebook.d.ts.map +0 -1
- package/dist/core/agentRulebook.js +0 -136
- package/dist/core/agentRulebook.js.map +0 -1
- package/dist/core/agentSchemaLoader.d.ts +0 -131
- package/dist/core/agentSchemaLoader.d.ts.map +0 -1
- package/dist/core/agentSchemaLoader.js +0 -234
- package/dist/core/agentSchemaLoader.js.map +0 -1
- package/dist/core/aiErrorFixer.d.ts +0 -70
- package/dist/core/aiErrorFixer.d.ts.map +0 -1
- package/dist/core/aiErrorFixer.js +0 -402
- package/dist/core/aiErrorFixer.js.map +0 -1
- package/dist/core/cliTestHarness.d.ts +0 -200
- package/dist/core/cliTestHarness.d.ts.map +0 -1
- package/dist/core/cliTestHarness.js +0 -549
- package/dist/core/cliTestHarness.js.map +0 -1
- package/dist/core/contextWindow.d.ts +0 -42
- package/dist/core/contextWindow.d.ts.map +0 -1
- package/dist/core/contextWindow.js +0 -123
- package/dist/core/contextWindow.js.map +0 -1
- package/dist/core/errors/apiKeyErrors.d.ts +0 -11
- package/dist/core/errors/apiKeyErrors.d.ts.map +0 -1
- package/dist/core/errors/apiKeyErrors.js +0 -159
- package/dist/core/errors/apiKeyErrors.js.map +0 -1
- package/dist/core/errors/errorTypes.d.ts +0 -111
- package/dist/core/errors/errorTypes.d.ts.map +0 -1
- package/dist/core/errors/errorTypes.js +0 -348
- package/dist/core/errors/errorTypes.js.map +0 -1
- package/dist/core/errors/errorUtils.d.ts +0 -87
- package/dist/core/errors/errorUtils.d.ts.map +0 -1
- package/dist/core/errors/errorUtils.js +0 -158
- package/dist/core/errors/errorUtils.js.map +0 -1
- package/dist/core/errors/safetyValidator.d.ts +0 -71
- package/dist/core/errors/safetyValidator.d.ts.map +0 -1
- package/dist/core/errors/safetyValidator.js +0 -302
- package/dist/core/errors/safetyValidator.js.map +0 -1
- package/dist/core/errors.d.ts +0 -4
- package/dist/core/errors.d.ts.map +0 -1
- package/dist/core/errors.js +0 -33
- package/dist/core/errors.js.map +0 -1
- package/dist/core/isolatedVerifier.d.ts +0 -40
- package/dist/core/isolatedVerifier.d.ts.map +0 -1
- package/dist/core/isolatedVerifier.js +0 -129
- package/dist/core/isolatedVerifier.js.map +0 -1
- package/dist/core/modelDiscovery.d.ts +0 -101
- package/dist/core/modelDiscovery.d.ts.map +0 -1
- package/dist/core/modelDiscovery.js +0 -780
- package/dist/core/modelDiscovery.js.map +0 -1
- package/dist/core/multilinePasteHandler.d.ts +0 -35
- package/dist/core/multilinePasteHandler.d.ts.map +0 -1
- package/dist/core/multilinePasteHandler.js +0 -80
- package/dist/core/multilinePasteHandler.js.map +0 -1
- package/dist/core/performanceMonitor.d.ts +0 -124
- package/dist/core/performanceMonitor.d.ts.map +0 -1
- package/dist/core/performanceMonitor.js +0 -192
- package/dist/core/performanceMonitor.js.map +0 -1
- package/dist/core/responseVerifier.d.ts +0 -98
- package/dist/core/responseVerifier.d.ts.map +0 -1
- package/dist/core/responseVerifier.js +0 -509
- package/dist/core/responseVerifier.js.map +0 -1
- package/dist/core/resultVerification.d.ts +0 -141
- package/dist/core/resultVerification.d.ts.map +0 -1
- package/dist/core/resultVerification.js +0 -482
- package/dist/core/resultVerification.js.map +0 -1
- package/dist/core/schemaValidator.d.ts +0 -44
- package/dist/core/schemaValidator.d.ts.map +0 -1
- package/dist/core/schemaValidator.js +0 -155
- package/dist/core/schemaValidator.js.map +0 -1
- package/dist/core/testUtils.d.ts +0 -121
- package/dist/core/testUtils.d.ts.map +0 -1
- package/dist/core/testUtils.js +0 -235
- package/dist/core/testUtils.js.map +0 -1
- package/dist/core/types/utilityTypes.d.ts +0 -192
- package/dist/core/types/utilityTypes.d.ts.map +0 -1
- package/dist/core/types/utilityTypes.js +0 -272
- package/dist/core/types/utilityTypes.js.map +0 -1
- package/dist/core/types.d.ts +0 -306
- package/dist/core/types.d.ts.map +0 -1
- package/dist/core/types.js +0 -76
- package/dist/core/types.js.map +0 -1
- package/dist/intelligence/codeIntelligence.d.ts +0 -118
- package/dist/intelligence/codeIntelligence.d.ts.map +0 -1
- package/dist/intelligence/codeIntelligence.js +0 -552
- package/dist/intelligence/codeIntelligence.js.map +0 -1
- package/dist/intelligence/docGenerator.d.ts +0 -86
- package/dist/intelligence/docGenerator.d.ts.map +0 -1
- package/dist/intelligence/docGenerator.js +0 -564
- package/dist/intelligence/docGenerator.js.map +0 -1
- package/dist/intelligence/index.d.ts +0 -51
- package/dist/intelligence/index.d.ts.map +0 -1
- package/dist/intelligence/index.js +0 -253
- package/dist/intelligence/index.js.map +0 -1
- package/dist/intelligence/refactoring.d.ts +0 -50
- package/dist/intelligence/refactoring.d.ts.map +0 -1
- package/dist/intelligence/refactoring.js +0 -354
- package/dist/intelligence/refactoring.js.map +0 -1
- package/dist/intelligence/testGenerator.d.ts +0 -74
- package/dist/intelligence/testGenerator.d.ts.map +0 -1
- package/dist/intelligence/testGenerator.js +0 -483
- package/dist/intelligence/testGenerator.js.map +0 -1
- package/dist/mcp/config.d.ts +0 -8
- package/dist/mcp/config.d.ts.map +0 -1
- package/dist/mcp/config.js +0 -252
- package/dist/mcp/config.js.map +0 -1
- package/dist/mcp/sseClient.d.ts +0 -34
- package/dist/mcp/sseClient.d.ts.map +0 -1
- package/dist/mcp/sseClient.js +0 -327
- package/dist/mcp/sseClient.js.map +0 -1
- package/dist/mcp/stdioClient.d.ts +0 -24
- package/dist/mcp/stdioClient.d.ts.map +0 -1
- package/dist/mcp/stdioClient.js +0 -179
- package/dist/mcp/stdioClient.js.map +0 -1
- package/dist/mcp/toolBridge.d.ts +0 -12
- package/dist/mcp/toolBridge.d.ts.map +0 -1
- package/dist/mcp/toolBridge.js +0 -117
- package/dist/mcp/toolBridge.js.map +0 -1
- package/dist/mcp/types.d.ts +0 -60
- package/dist/mcp/types.d.ts.map +0 -1
- package/dist/mcp/types.js +0 -2
- package/dist/mcp/types.js.map +0 -1
- package/dist/plugins/index.d.ts +0 -49
- package/dist/plugins/index.d.ts.map +0 -1
- package/dist/plugins/index.js +0 -114
- package/dist/plugins/index.js.map +0 -1
- package/dist/plugins/providers/anthropic/index.d.ts +0 -11
- package/dist/plugins/providers/anthropic/index.d.ts.map +0 -1
- package/dist/plugins/providers/anthropic/index.js +0 -38
- package/dist/plugins/providers/anthropic/index.js.map +0 -1
- package/dist/plugins/providers/deepseek/index.d.ts +0 -11
- package/dist/plugins/providers/deepseek/index.d.ts.map +0 -1
- package/dist/plugins/providers/deepseek/index.js +0 -52
- package/dist/plugins/providers/deepseek/index.js.map +0 -1
- package/dist/plugins/providers/google/index.d.ts +0 -11
- package/dist/plugins/providers/google/index.d.ts.map +0 -1
- package/dist/plugins/providers/google/index.js +0 -40
- package/dist/plugins/providers/google/index.js.map +0 -1
- package/dist/plugins/providers/index.d.ts +0 -2
- package/dist/plugins/providers/index.d.ts.map +0 -1
- package/dist/plugins/providers/index.js +0 -20
- package/dist/plugins/providers/index.js.map +0 -1
- package/dist/plugins/providers/ollama/index.d.ts +0 -21
- package/dist/plugins/providers/ollama/index.d.ts.map +0 -1
- package/dist/plugins/providers/ollama/index.js +0 -69
- package/dist/plugins/providers/ollama/index.js.map +0 -1
- package/dist/plugins/providers/openai/index.d.ts +0 -12
- package/dist/plugins/providers/openai/index.d.ts.map +0 -1
- package/dist/plugins/providers/openai/index.js +0 -39
- package/dist/plugins/providers/openai/index.js.map +0 -1
- package/dist/plugins/providers/xai/index.d.ts +0 -11
- package/dist/plugins/providers/xai/index.d.ts.map +0 -1
- package/dist/plugins/providers/xai/index.js +0 -39
- package/dist/plugins/providers/xai/index.js.map +0 -1
- package/dist/plugins/tools/agentSpawning/agentSpawningPlugin.d.ts +0 -3
- package/dist/plugins/tools/agentSpawning/agentSpawningPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/agentSpawning/agentSpawningPlugin.js +0 -9
- package/dist/plugins/tools/agentSpawning/agentSpawningPlugin.js.map +0 -1
- package/dist/plugins/tools/bash/localBashPlugin.d.ts +0 -3
- package/dist/plugins/tools/bash/localBashPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/bash/localBashPlugin.js +0 -14
- package/dist/plugins/tools/bash/localBashPlugin.js.map +0 -1
- package/dist/plugins/tools/browser/browserAutomationPlugin.d.ts +0 -14
- package/dist/plugins/tools/browser/browserAutomationPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/browser/browserAutomationPlugin.js +0 -26
- package/dist/plugins/tools/browser/browserAutomationPlugin.js.map +0 -1
- package/dist/plugins/tools/build/buildPlugin.d.ts +0 -3
- package/dist/plugins/tools/build/buildPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/build/buildPlugin.js +0 -14
- package/dist/plugins/tools/build/buildPlugin.js.map +0 -1
- package/dist/plugins/tools/checks/localRepoChecksPlugin.d.ts +0 -3
- package/dist/plugins/tools/checks/localRepoChecksPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/checks/localRepoChecksPlugin.js +0 -14
- package/dist/plugins/tools/checks/localRepoChecksPlugin.js.map +0 -1
- package/dist/plugins/tools/cloud/cloudPlugin.d.ts +0 -3
- package/dist/plugins/tools/cloud/cloudPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/cloud/cloudPlugin.js +0 -14
- package/dist/plugins/tools/cloud/cloudPlugin.js.map +0 -1
- package/dist/plugins/tools/codeAnalysis/codeAnalysisPlugin.d.ts +0 -3
- package/dist/plugins/tools/codeAnalysis/codeAnalysisPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/codeAnalysis/codeAnalysisPlugin.js +0 -14
- package/dist/plugins/tools/codeAnalysis/codeAnalysisPlugin.js.map +0 -1
- package/dist/plugins/tools/codeQuality/codeQualityPlugin.d.ts +0 -3
- package/dist/plugins/tools/codeQuality/codeQualityPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/codeQuality/codeQualityPlugin.js +0 -14
- package/dist/plugins/tools/codeQuality/codeQualityPlugin.js.map +0 -1
- package/dist/plugins/tools/dependency/dependencyPlugin.d.ts +0 -3
- package/dist/plugins/tools/dependency/dependencyPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/dependency/dependencyPlugin.js +0 -12
- package/dist/plugins/tools/dependency/dependencyPlugin.js.map +0 -1
- package/dist/plugins/tools/development/devPlugin.d.ts +0 -3
- package/dist/plugins/tools/development/devPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/development/devPlugin.js +0 -14
- package/dist/plugins/tools/development/devPlugin.js.map +0 -1
- package/dist/plugins/tools/edit/editPlugin.d.ts +0 -9
- package/dist/plugins/tools/edit/editPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/edit/editPlugin.js +0 -15
- package/dist/plugins/tools/edit/editPlugin.js.map +0 -1
- package/dist/plugins/tools/email/emailPlugin.d.ts +0 -3
- package/dist/plugins/tools/email/emailPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/email/emailPlugin.js +0 -12
- package/dist/plugins/tools/email/emailPlugin.js.map +0 -1
- package/dist/plugins/tools/enhancedGit/enhancedGitPlugin.d.ts +0 -3
- package/dist/plugins/tools/enhancedGit/enhancedGitPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/enhancedGit/enhancedGitPlugin.js +0 -9
- package/dist/plugins/tools/enhancedGit/enhancedGitPlugin.js.map +0 -1
- package/dist/plugins/tools/filesystem/localFilesystemPlugin.d.ts +0 -3
- package/dist/plugins/tools/filesystem/localFilesystemPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/filesystem/localFilesystemPlugin.js +0 -14
- package/dist/plugins/tools/filesystem/localFilesystemPlugin.js.map +0 -1
- package/dist/plugins/tools/frontendTesting/frontendTestingPlugin.d.ts +0 -3
- package/dist/plugins/tools/frontendTesting/frontendTestingPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/frontendTesting/frontendTestingPlugin.js +0 -14
- package/dist/plugins/tools/frontendTesting/frontendTestingPlugin.js.map +0 -1
- package/dist/plugins/tools/glob/globPlugin.d.ts +0 -9
- package/dist/plugins/tools/glob/globPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/glob/globPlugin.js +0 -15
- package/dist/plugins/tools/glob/globPlugin.js.map +0 -1
- package/dist/plugins/tools/index.d.ts +0 -3
- package/dist/plugins/tools/index.d.ts.map +0 -1
- package/dist/plugins/tools/index.js +0 -3
- package/dist/plugins/tools/index.js.map +0 -1
- package/dist/plugins/tools/interaction/interactionPlugin.d.ts +0 -3
- package/dist/plugins/tools/interaction/interactionPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/interaction/interactionPlugin.js +0 -12
- package/dist/plugins/tools/interaction/interactionPlugin.js.map +0 -1
- package/dist/plugins/tools/learn/learnPlugin.d.ts +0 -3
- package/dist/plugins/tools/learn/learnPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/learn/learnPlugin.js +0 -14
- package/dist/plugins/tools/learn/learnPlugin.js.map +0 -1
- package/dist/plugins/tools/mcp/mcpPlugin.d.ts +0 -3
- package/dist/plugins/tools/mcp/mcpPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/mcp/mcpPlugin.js +0 -9
- package/dist/plugins/tools/mcp/mcpPlugin.js.map +0 -1
- package/dist/plugins/tools/notebook/notebookPlugin.d.ts +0 -9
- package/dist/plugins/tools/notebook/notebookPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/notebook/notebookPlugin.js +0 -15
- package/dist/plugins/tools/notebook/notebookPlugin.js.map +0 -1
- package/dist/plugins/tools/planning/planningPlugin.d.ts +0 -9
- package/dist/plugins/tools/planning/planningPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/planning/planningPlugin.js +0 -15
- package/dist/plugins/tools/planning/planningPlugin.js.map +0 -1
- package/dist/plugins/tools/refactoring/refactoringPlugin.d.ts +0 -3
- package/dist/plugins/tools/refactoring/refactoringPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/refactoring/refactoringPlugin.js +0 -12
- package/dist/plugins/tools/refactoring/refactoringPlugin.js.map +0 -1
- package/dist/plugins/tools/registry.d.ts +0 -22
- package/dist/plugins/tools/registry.d.ts.map +0 -1
- package/dist/plugins/tools/registry.js +0 -58
- package/dist/plugins/tools/registry.js.map +0 -1
- package/dist/plugins/tools/search/localSearchPlugin.d.ts +0 -3
- package/dist/plugins/tools/search/localSearchPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/search/localSearchPlugin.js +0 -14
- package/dist/plugins/tools/search/localSearchPlugin.js.map +0 -1
- package/dist/plugins/tools/skills/skillPlugin.d.ts +0 -3
- package/dist/plugins/tools/skills/skillPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/skills/skillPlugin.js +0 -9
- package/dist/plugins/tools/skills/skillPlugin.js.map +0 -1
- package/dist/plugins/tools/taskManagement/taskManagementPlugin.d.ts +0 -3
- package/dist/plugins/tools/taskManagement/taskManagementPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/taskManagement/taskManagementPlugin.js +0 -12
- package/dist/plugins/tools/taskManagement/taskManagementPlugin.js.map +0 -1
- package/dist/plugins/tools/testing/testingPlugin.d.ts +0 -3
- package/dist/plugins/tools/testing/testingPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/testing/testingPlugin.js +0 -12
- package/dist/plugins/tools/testing/testingPlugin.js.map +0 -1
- package/dist/plugins/tools/validation/validationPlugin.d.ts +0 -3
- package/dist/plugins/tools/validation/validationPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/validation/validationPlugin.js +0 -14
- package/dist/plugins/tools/validation/validationPlugin.js.map +0 -1
- package/dist/plugins/tools/web/webPlugin.d.ts +0 -3
- package/dist/plugins/tools/web/webPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/web/webPlugin.js +0 -12
- package/dist/plugins/tools/web/webPlugin.js.map +0 -1
- package/dist/providers/anthropicProvider.d.ts +0 -41
- package/dist/providers/anthropicProvider.d.ts.map +0 -1
- package/dist/providers/anthropicProvider.js +0 -446
- package/dist/providers/anthropicProvider.js.map +0 -1
- package/dist/providers/googleProvider.d.ts +0 -36
- package/dist/providers/googleProvider.d.ts.map +0 -1
- package/dist/providers/googleProvider.js +0 -312
- package/dist/providers/googleProvider.js.map +0 -1
- package/dist/providers/openaiChatCompletionsProvider.d.ts +0 -43
- package/dist/providers/openaiChatCompletionsProvider.d.ts.map +0 -1
- package/dist/providers/openaiChatCompletionsProvider.js +0 -475
- package/dist/providers/openaiChatCompletionsProvider.js.map +0 -1
- package/dist/providers/openaiResponsesProvider.d.ts +0 -38
- package/dist/providers/openaiResponsesProvider.d.ts.map +0 -1
- package/dist/providers/openaiResponsesProvider.js +0 -364
- package/dist/providers/openaiResponsesProvider.js.map +0 -1
- package/dist/providers/providerFactory.d.ts +0 -18
- package/dist/providers/providerFactory.d.ts.map +0 -1
- package/dist/providers/providerFactory.js +0 -25
- package/dist/providers/providerFactory.js.map +0 -1
- package/dist/providers/resilientProvider.d.ts +0 -94
- package/dist/providers/resilientProvider.d.ts.map +0 -1
- package/dist/providers/resilientProvider.js +0 -370
- package/dist/providers/resilientProvider.js.map +0 -1
- package/dist/runtime/agentController.d.ts +0 -65
- package/dist/runtime/agentController.d.ts.map +0 -1
- package/dist/runtime/agentController.js +0 -353
- package/dist/runtime/agentController.js.map +0 -1
- package/dist/runtime/agentHost.d.ts +0 -63
- package/dist/runtime/agentHost.d.ts.map +0 -1
- package/dist/runtime/agentHost.js +0 -159
- package/dist/runtime/agentHost.js.map +0 -1
- package/dist/runtime/browser.d.ts +0 -7
- package/dist/runtime/browser.d.ts.map +0 -1
- package/dist/runtime/browser.js +0 -10
- package/dist/runtime/browser.js.map +0 -1
- package/dist/runtime/cloud.d.ts +0 -7
- package/dist/runtime/cloud.d.ts.map +0 -1
- package/dist/runtime/cloud.js +0 -10
- package/dist/runtime/cloud.js.map +0 -1
- package/dist/runtime/node.d.ts +0 -8
- package/dist/runtime/node.d.ts.map +0 -1
- package/dist/runtime/node.js +0 -11
- package/dist/runtime/node.js.map +0 -1
- package/dist/runtime/universal.d.ts +0 -22
- package/dist/runtime/universal.d.ts.map +0 -1
- package/dist/runtime/universal.js +0 -30
- package/dist/runtime/universal.js.map +0 -1
- package/dist/shell/autoExecutor.d.ts +0 -70
- package/dist/shell/autoExecutor.d.ts.map +0 -1
- package/dist/shell/autoExecutor.js +0 -288
- package/dist/shell/autoExecutor.js.map +0 -1
- package/dist/shell/composableMessage.d.ts +0 -183
- package/dist/shell/composableMessage.d.ts.map +0 -1
- package/dist/shell/composableMessage.js +0 -420
- package/dist/shell/composableMessage.js.map +0 -1
- package/dist/shell/fileChangeTracker.d.ts +0 -39
- package/dist/shell/fileChangeTracker.d.ts.map +0 -1
- package/dist/shell/fileChangeTracker.js +0 -64
- package/dist/shell/fileChangeTracker.js.map +0 -1
- package/dist/shell/liveStatus.d.ts +0 -29
- package/dist/shell/liveStatus.d.ts.map +0 -1
- package/dist/shell/liveStatus.js +0 -77
- package/dist/shell/liveStatus.js.map +0 -1
- package/dist/shell/taskCompletionDetector.d.ts +0 -106
- package/dist/shell/taskCompletionDetector.d.ts.map +0 -1
- package/dist/shell/taskCompletionDetector.js +0 -402
- package/dist/shell/taskCompletionDetector.js.map +0 -1
- package/dist/shell/updateManager.d.ts +0 -3
- package/dist/shell/updateManager.d.ts.map +0 -1
- package/dist/shell/updateManager.js +0 -120
- package/dist/shell/updateManager.js.map +0 -1
- package/dist/skills/skillRepository.d.ts +0 -103
- package/dist/skills/skillRepository.d.ts.map +0 -1
- package/dist/skills/skillRepository.js +0 -237
- package/dist/skills/skillRepository.js.map +0 -1
- package/dist/skills/types.d.ts +0 -37
- package/dist/skills/types.d.ts.map +0 -1
- package/dist/skills/types.js +0 -2
- package/dist/skills/types.js.map +0 -1
- package/dist/tools/advancedTestGenerationTools.d.ts +0 -21
- package/dist/tools/advancedTestGenerationTools.d.ts.map +0 -1
- package/dist/tools/advancedTestGenerationTools.js +0 -301
- package/dist/tools/advancedTestGenerationTools.js.map +0 -1
- package/dist/tools/backgroundBashTools.d.ts +0 -21
- package/dist/tools/backgroundBashTools.d.ts.map +0 -1
- package/dist/tools/backgroundBashTools.js +0 -215
- package/dist/tools/backgroundBashTools.js.map +0 -1
- package/dist/tools/bashTools.d.ts +0 -8
- package/dist/tools/bashTools.d.ts.map +0 -1
- package/dist/tools/bashTools.js +0 -251
- package/dist/tools/bashTools.js.map +0 -1
- package/dist/tools/browserAutomationTools.d.ts +0 -23
- package/dist/tools/browserAutomationTools.d.ts.map +0 -1
- package/dist/tools/browserAutomationTools.js +0 -916
- package/dist/tools/browserAutomationTools.js.map +0 -1
- package/dist/tools/buildTools.d.ts +0 -9
- package/dist/tools/buildTools.d.ts.map +0 -1
- package/dist/tools/buildTools.js +0 -344
- package/dist/tools/buildTools.js.map +0 -1
- package/dist/tools/cloudTools.d.ts +0 -49
- package/dist/tools/cloudTools.d.ts.map +0 -1
- package/dist/tools/cloudTools.js +0 -1258
- package/dist/tools/cloudTools.js.map +0 -1
- package/dist/tools/code-quality-dashboard.d.ts +0 -57
- package/dist/tools/code-quality-dashboard.d.ts.map +0 -1
- package/dist/tools/code-quality-dashboard.js +0 -218
- package/dist/tools/code-quality-dashboard.js.map +0 -1
- package/dist/tools/codeAnalysisTools.d.ts +0 -74
- package/dist/tools/codeAnalysisTools.d.ts.map +0 -1
- package/dist/tools/codeAnalysisTools.js +0 -664
- package/dist/tools/codeAnalysisTools.js.map +0 -1
- package/dist/tools/codeGenerationTools.d.ts +0 -3
- package/dist/tools/codeGenerationTools.d.ts.map +0 -1
- package/dist/tools/codeGenerationTools.js +0 -439
- package/dist/tools/codeGenerationTools.js.map +0 -1
- package/dist/tools/codeQualityTools.d.ts +0 -3
- package/dist/tools/codeQualityTools.d.ts.map +0 -1
- package/dist/tools/codeQualityTools.js +0 -296
- package/dist/tools/codeQualityTools.js.map +0 -1
- package/dist/tools/dependencyTools.d.ts +0 -3
- package/dist/tools/dependencyTools.d.ts.map +0 -1
- package/dist/tools/dependencyTools.js +0 -283
- package/dist/tools/dependencyTools.js.map +0 -1
- package/dist/tools/devTools.d.ts +0 -10
- package/dist/tools/devTools.d.ts.map +0 -1
- package/dist/tools/devTools.js +0 -2125
- package/dist/tools/devTools.js.map +0 -1
- package/dist/tools/diffUtils.d.ts +0 -36
- package/dist/tools/diffUtils.d.ts.map +0 -1
- package/dist/tools/diffUtils.js +0 -528
- package/dist/tools/diffUtils.js.map +0 -1
- package/dist/tools/editTools.d.ts +0 -29
- package/dist/tools/editTools.d.ts.map +0 -1
- package/dist/tools/editTools.js +0 -419
- package/dist/tools/editTools.js.map +0 -1
- package/dist/tools/emailTools.d.ts +0 -21
- package/dist/tools/emailTools.d.ts.map +0 -1
- package/dist/tools/emailTools.js +0 -449
- package/dist/tools/emailTools.js.map +0 -1
- package/dist/tools/enhancedCodeIntelligenceTools.d.ts +0 -27
- package/dist/tools/enhancedCodeIntelligenceTools.d.ts.map +0 -1
- package/dist/tools/enhancedCodeIntelligenceTools.js +0 -418
- package/dist/tools/enhancedCodeIntelligenceTools.js.map +0 -1
- package/dist/tools/enhancedDevWorkflowTools.d.ts +0 -15
- package/dist/tools/enhancedDevWorkflowTools.d.ts.map +0 -1
- package/dist/tools/enhancedDevWorkflowTools.js +0 -303
- package/dist/tools/enhancedDevWorkflowTools.js.map +0 -1
- package/dist/tools/frontendTestingTools.d.ts +0 -35
- package/dist/tools/frontendTestingTools.d.ts.map +0 -1
- package/dist/tools/frontendTestingTools.js +0 -1254
- package/dist/tools/frontendTestingTools.js.map +0 -1
- package/dist/tools/globTools.d.ts +0 -15
- package/dist/tools/globTools.d.ts.map +0 -1
- package/dist/tools/globTools.js +0 -174
- package/dist/tools/globTools.js.map +0 -1
- package/dist/tools/interactionTools.d.ts +0 -13
- package/dist/tools/interactionTools.d.ts.map +0 -1
- package/dist/tools/interactionTools.js +0 -171
- package/dist/tools/interactionTools.js.map +0 -1
- package/dist/tools/notebookEditTools.d.ts +0 -15
- package/dist/tools/notebookEditTools.d.ts.map +0 -1
- package/dist/tools/notebookEditTools.js +0 -197
- package/dist/tools/notebookEditTools.js.map +0 -1
- package/dist/tools/refactoringTools.d.ts +0 -3
- package/dist/tools/refactoringTools.d.ts.map +0 -1
- package/dist/tools/refactoringTools.js +0 -294
- package/dist/tools/refactoringTools.js.map +0 -1
- package/dist/tools/repoChecksTools.d.ts +0 -3
- package/dist/tools/repoChecksTools.d.ts.map +0 -1
- package/dist/tools/repoChecksTools.js +0 -161
- package/dist/tools/repoChecksTools.js.map +0 -1
- package/dist/tools/searchTools.d.ts +0 -3
- package/dist/tools/searchTools.d.ts.map +0 -1
- package/dist/tools/searchTools.js +0 -241
- package/dist/tools/searchTools.js.map +0 -1
- package/dist/tools/skillTools.d.ts +0 -8
- package/dist/tools/skillTools.d.ts.map +0 -1
- package/dist/tools/skillTools.js +0 -178
- package/dist/tools/skillTools.js.map +0 -1
- package/dist/tools/softwareEngineeringTools.d.ts +0 -7
- package/dist/tools/softwareEngineeringTools.d.ts.map +0 -1
- package/dist/tools/softwareEngineeringTools.js +0 -338
- package/dist/tools/softwareEngineeringTools.js.map +0 -1
- package/dist/tools/taskManagementTools.d.ts +0 -10
- package/dist/tools/taskManagementTools.d.ts.map +0 -1
- package/dist/tools/taskManagementTools.js +0 -157
- package/dist/tools/taskManagementTools.js.map +0 -1
- package/dist/tools/testingTools.d.ts +0 -3
- package/dist/tools/testingTools.d.ts.map +0 -1
- package/dist/tools/testingTools.js +0 -233
- package/dist/tools/testingTools.js.map +0 -1
- package/dist/tools/validationTools.d.ts +0 -7
- package/dist/tools/validationTools.d.ts.map +0 -1
- package/dist/tools/validationTools.js +0 -344
- package/dist/tools/validationTools.js.map +0 -1
- package/dist/ui/UnifiedUIController.d.ts +0 -70
- package/dist/ui/UnifiedUIController.d.ts.map +0 -1
- package/dist/ui/UnifiedUIController.js +0 -190
- package/dist/ui/UnifiedUIController.js.map +0 -1
- package/dist/ui/animation/AnimationScheduler.d.ts +0 -192
- package/dist/ui/animation/AnimationScheduler.d.ts.map +0 -1
- package/dist/ui/animation/AnimationScheduler.js +0 -432
- package/dist/ui/animation/AnimationScheduler.js.map +0 -1
- package/dist/ui/codeHighlighter.d.ts +0 -6
- package/dist/ui/codeHighlighter.d.ts.map +0 -1
- package/dist/ui/codeHighlighter.js +0 -855
- package/dist/ui/codeHighlighter.js.map +0 -1
- package/dist/ui/designSystem.d.ts +0 -26
- package/dist/ui/designSystem.d.ts.map +0 -1
- package/dist/ui/designSystem.js +0 -122
- package/dist/ui/designSystem.js.map +0 -1
- package/dist/ui/errorFormatter.d.ts +0 -54
- package/dist/ui/errorFormatter.d.ts.map +0 -1
- package/dist/ui/errorFormatter.js +0 -251
- package/dist/ui/errorFormatter.js.map +0 -1
- package/dist/ui/globalWriteLock.d.ts +0 -38
- package/dist/ui/globalWriteLock.d.ts.map +0 -1
- package/dist/ui/globalWriteLock.js +0 -54
- package/dist/ui/globalWriteLock.js.map +0 -1
- package/dist/ui/interrupts/InterruptManager.d.ts +0 -142
- package/dist/ui/interrupts/InterruptManager.d.ts.map +0 -1
- package/dist/ui/interrupts/InterruptManager.js +0 -439
- package/dist/ui/interrupts/InterruptManager.js.map +0 -1
- package/dist/ui/layout.d.ts +0 -17
- package/dist/ui/layout.d.ts.map +0 -1
- package/dist/ui/layout.js +0 -141
- package/dist/ui/layout.js.map +0 -1
- package/dist/ui/orchestration/StatusOrchestrator.d.ts +0 -156
- package/dist/ui/orchestration/StatusOrchestrator.d.ts.map +0 -1
- package/dist/ui/orchestration/StatusOrchestrator.js +0 -406
- package/dist/ui/orchestration/StatusOrchestrator.js.map +0 -1
- package/dist/ui/orchestration/UIUpdateCoordinator.d.ts +0 -77
- package/dist/ui/orchestration/UIUpdateCoordinator.d.ts.map +0 -1
- package/dist/ui/orchestration/UIUpdateCoordinator.js +0 -265
- package/dist/ui/orchestration/UIUpdateCoordinator.js.map +0 -1
- package/dist/ui/outputMode.d.ts +0 -22
- package/dist/ui/outputMode.d.ts.map +0 -1
- package/dist/ui/outputMode.js +0 -40
- package/dist/ui/outputMode.js.map +0 -1
- package/dist/ui/richText.d.ts +0 -6
- package/dist/ui/richText.d.ts.map +0 -1
- package/dist/ui/richText.js +0 -391
- package/dist/ui/richText.js.map +0 -1
- package/dist/ui/telemetry/UITelemetry.d.ts +0 -181
- package/dist/ui/telemetry/UITelemetry.d.ts.map +0 -1
- package/dist/ui/telemetry/UITelemetry.js +0 -446
- package/dist/ui/telemetry/UITelemetry.js.map +0 -1
- package/dist/ui/textHighlighter.d.ts +0 -83
- package/dist/ui/textHighlighter.d.ts.map +0 -1
- package/dist/ui/textHighlighter.js +0 -267
- package/dist/ui/textHighlighter.js.map +0 -1
- package/dist/ui/writeLock.d.ts +0 -65
- package/dist/ui/writeLock.d.ts.map +0 -1
- package/dist/ui/writeLock.js +0 -114
- package/dist/ui/writeLock.js.map +0 -1
- package/dist/utils/asyncUtils.d.ts +0 -95
- package/dist/utils/asyncUtils.d.ts.map +0 -1
- package/dist/utils/asyncUtils.js +0 -286
- package/dist/utils/asyncUtils.js.map +0 -1
- package/dist/utils/errorUtils.d.ts +0 -16
- package/dist/utils/errorUtils.d.ts.map +0 -1
- package/dist/utils/errorUtils.js +0 -66
- package/dist/utils/errorUtils.js.map +0 -1
- package/dist/utils/planFormatter.d.ts +0 -34
- package/dist/utils/planFormatter.d.ts.map +0 -1
- package/dist/utils/planFormatter.js +0 -140
- package/dist/utils/planFormatter.js.map +0 -1
- package/dist/workspace.d.ts +0 -8
- package/dist/workspace.d.ts.map +0 -1
- package/dist/workspace.js +0 -107
- package/dist/workspace.js.map +0 -1
- package/dist/workspace.validator.d.ts +0 -49
- package/dist/workspace.validator.d.ts.map +0 -1
- package/dist/workspace.validator.js +0 -214
- package/dist/workspace.validator.js.map +0 -1
|
@@ -1,267 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Text Highlighter - Claude Code style
|
|
3
|
-
* Applies sophisticated coloring to different text types
|
|
4
|
-
*/
|
|
5
|
-
import { theme } from './theme.js';
|
|
6
|
-
/**
|
|
7
|
-
* Highlight file paths (Claude Code style)
|
|
8
|
-
* Example: src/ui/display.ts
|
|
9
|
-
*/
|
|
10
|
-
export function highlightFilePath(path) {
|
|
11
|
-
const parts = path.split('/');
|
|
12
|
-
const file = parts.pop() || '';
|
|
13
|
-
const dir = parts.join('/');
|
|
14
|
-
if (dir) {
|
|
15
|
-
return `${theme.ui.muted(`${dir}/`)}${theme.info(file)}`;
|
|
16
|
-
}
|
|
17
|
-
return theme.info(file);
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Highlight numbers in text
|
|
21
|
-
* Example: "Read 150 lines" -> "Read [150] lines"
|
|
22
|
-
*/
|
|
23
|
-
export function highlightNumbers(text) {
|
|
24
|
-
return text.replace(/\b(\d+)\b/g, (match) => theme.ui.number(match));
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Highlight code blocks (inline)
|
|
28
|
-
* Example: `const foo = 'bar'`
|
|
29
|
-
*/
|
|
30
|
-
export function highlightInlineCode(text) {
|
|
31
|
-
return text.replace(/`([^`]+)`/g, (_, code) => theme.ui.code(code));
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Highlight quoted strings
|
|
35
|
-
* Example: "hello world"
|
|
36
|
-
*/
|
|
37
|
-
export function highlightQuotedStrings(text) {
|
|
38
|
-
return text.replace(/"([^"]*)"/g, (_, str) => theme.ui.string(`"${str}"`));
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Highlight keywords (Claude Code style)
|
|
42
|
-
* Example: function, class, const, let, etc.
|
|
43
|
-
*/
|
|
44
|
-
export function highlightKeywords(text) {
|
|
45
|
-
const keywords = [
|
|
46
|
-
'function', 'class', 'const', 'let', 'var',
|
|
47
|
-
'import', 'export', 'from', 'default',
|
|
48
|
-
'async', 'await', 'return', 'if', 'else',
|
|
49
|
-
'for', 'while', 'do', 'switch', 'case',
|
|
50
|
-
'try', 'catch', 'finally', 'throw',
|
|
51
|
-
'new', 'this', 'super', 'extends', 'implements',
|
|
52
|
-
];
|
|
53
|
-
let result = text;
|
|
54
|
-
for (const keyword of keywords) {
|
|
55
|
-
const regex = new RegExp(`\\b(${keyword})\\b`, 'g');
|
|
56
|
-
result = result.replace(regex, (match) => theme.ui.keyword(match));
|
|
57
|
-
}
|
|
58
|
-
return result;
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Highlight URLs
|
|
62
|
-
*/
|
|
63
|
-
export function highlightUrls(text) {
|
|
64
|
-
const urlRegex = /(https?:\/\/[^\s]+)/g;
|
|
65
|
-
return text.replace(urlRegex, (url) => theme.link.url(url));
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Highlight error messages (Claude Code style)
|
|
69
|
-
* Makes errors stand out with proper coloring and clickable file references
|
|
70
|
-
*/
|
|
71
|
-
export function highlightError(text) {
|
|
72
|
-
// Highlight error type (TypeScript, JavaScript, Node errors)
|
|
73
|
-
text = text.replace(/^(Error|TypeError|SyntaxError|ReferenceError|RangeError|URIError|EvalError):/im, (match) => theme.error.bold(match));
|
|
74
|
-
// Highlight TypeScript errors (TS2xxx)
|
|
75
|
-
text = text.replace(/error (TS\d+):/g, (_, code) => `error ${theme.error.bold(code)}:`);
|
|
76
|
-
// Highlight file:line:col references (Claude Code style - make them look clickable)
|
|
77
|
-
// Pattern: path/to/file.ts(10,5) or path/to/file.ts:10:5
|
|
78
|
-
text = text.replace(/([a-zA-Z0-9_\-./]+\.[a-zA-Z]+)\((\d+),(\d+)\)/g, (_, file, line, col) => `${theme.info(file)}:${theme.warning(line)}:${theme.warning(col)}`);
|
|
79
|
-
text = text.replace(/([a-zA-Z0-9_\-./]+\.[a-zA-Z]+):(\d+):(\d+)/g, (_, file, line, col) => `${theme.info(file)}:${theme.warning(line)}:${theme.warning(col)}`);
|
|
80
|
-
// Highlight stack trace lines (at function in file:line:col)
|
|
81
|
-
text = text.replace(/^\s+at\s+([^\s]+)\s+\(([^:]+):(\d+):(\d+)\)/gm, (_, fn, file, line, col) => ` at ${theme.ui.muted(fn)} (${theme.info(file)}:${theme.warning(line)}:${theme.warning(col)})`);
|
|
82
|
-
// Highlight anonymous stack trace (at file:line:col without function)
|
|
83
|
-
text = text.replace(/^\s+at\s+([^(]+):(\d+):(\d+)$/gm, (_, file, line, col) => ` at ${theme.info(file.trim())}:${theme.warning(line)}:${theme.warning(col)}`);
|
|
84
|
-
// Highlight error keywords in the message
|
|
85
|
-
const errorKeywords = ['failed', 'cannot', 'unable', 'invalid', 'missing', 'undefined', 'null', 'expected'];
|
|
86
|
-
for (const keyword of errorKeywords) {
|
|
87
|
-
const regex = new RegExp(`\\b(${keyword})\\b`, 'gi');
|
|
88
|
-
text = text.replace(regex, (match) => theme.error(match));
|
|
89
|
-
}
|
|
90
|
-
return text;
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Format file:line reference for terminal output (Claude Code style)
|
|
94
|
-
* Returns a formatted string that looks like a clickable reference
|
|
95
|
-
*/
|
|
96
|
-
export function formatFileLineRef(filePath, line, col) {
|
|
97
|
-
if (line !== undefined && col !== undefined) {
|
|
98
|
-
return `${theme.info(filePath)}:${theme.warning(String(line))}:${theme.warning(String(col))}`;
|
|
99
|
-
}
|
|
100
|
-
if (line !== undefined) {
|
|
101
|
-
return `${theme.info(filePath)}:${theme.warning(String(line))}`;
|
|
102
|
-
}
|
|
103
|
-
return theme.info(filePath);
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* Highlight success messages
|
|
107
|
-
*/
|
|
108
|
-
export function highlightSuccess(text) {
|
|
109
|
-
const successWords = ['success', 'completed', 'passed', 'done', 'ok'];
|
|
110
|
-
let result = text;
|
|
111
|
-
for (const word of successWords) {
|
|
112
|
-
const regex = new RegExp(`\\b(${word})\\b`, 'gi');
|
|
113
|
-
result = result.replace(regex, (match) => theme.success.bold(match));
|
|
114
|
-
}
|
|
115
|
-
return result;
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* Highlight warning messages
|
|
119
|
-
*/
|
|
120
|
-
export function highlightWarning(text) {
|
|
121
|
-
const warningWords = ['warning', 'deprecated', 'caution', 'attention'];
|
|
122
|
-
let result = text;
|
|
123
|
-
for (const word of warningWords) {
|
|
124
|
-
const regex = new RegExp(`\\b(${word})\\b`, 'gi');
|
|
125
|
-
result = result.replace(regex, (match) => theme.warning.bold(match));
|
|
126
|
-
}
|
|
127
|
-
return result;
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* Highlight tool names (Claude Code style)
|
|
131
|
-
*/
|
|
132
|
-
export function highlightToolName(name) {
|
|
133
|
-
return theme.info.bold(name);
|
|
134
|
-
}
|
|
135
|
-
/**
|
|
136
|
-
* Highlight command output (Claude Code style)
|
|
137
|
-
* Applies context-aware highlighting
|
|
138
|
-
*/
|
|
139
|
-
export function highlightCommandOutput(output, command) {
|
|
140
|
-
let result = output;
|
|
141
|
-
// Git commands
|
|
142
|
-
if (command?.includes('git')) {
|
|
143
|
-
result = highlightGitOutput(result);
|
|
144
|
-
}
|
|
145
|
-
// npm commands
|
|
146
|
-
else if (command?.includes('npm')) {
|
|
147
|
-
result = highlightNpmOutput(result);
|
|
148
|
-
}
|
|
149
|
-
// General highlighting
|
|
150
|
-
else {
|
|
151
|
-
result = highlightNumbers(result);
|
|
152
|
-
result = highlightUrls(result);
|
|
153
|
-
result = highlightFilePaths(result);
|
|
154
|
-
}
|
|
155
|
-
return result;
|
|
156
|
-
}
|
|
157
|
-
/**
|
|
158
|
-
* Highlight file paths in text
|
|
159
|
-
*/
|
|
160
|
-
function highlightFilePaths(text) {
|
|
161
|
-
// Match common file path patterns
|
|
162
|
-
const pathRegex = /([a-zA-Z0-9_\-./]+\.(ts|js|tsx|jsx|json|md|txt|yml|yaml|css|scss|html))/g;
|
|
163
|
-
return text.replace(pathRegex, (match) => highlightFilePath(match));
|
|
164
|
-
}
|
|
165
|
-
/**
|
|
166
|
-
* Highlight git output
|
|
167
|
-
*/
|
|
168
|
-
function highlightGitOutput(text) {
|
|
169
|
-
let result = text;
|
|
170
|
-
// Branch names
|
|
171
|
-
result = result.replace(/On branch (\w+)/g, (_, branch) => `On branch ${theme.info.bold(branch)}`);
|
|
172
|
-
// File statuses
|
|
173
|
-
result = result.replace(/^\s*modified:/gm, (match) => theme.warning(match));
|
|
174
|
-
result = result.replace(/^\s*deleted:/gm, (match) => theme.error(match));
|
|
175
|
-
result = result.replace(/^\s*new file:/gm, (match) => theme.success(match));
|
|
176
|
-
// Ahead/behind
|
|
177
|
-
result = result.replace(/ahead (\d+)/g, (_, num) => `ahead ${theme.success.bold(num)}`);
|
|
178
|
-
result = result.replace(/behind (\d+)/g, (_, num) => `behind ${theme.warning.bold(num)}`);
|
|
179
|
-
return result;
|
|
180
|
-
}
|
|
181
|
-
/**
|
|
182
|
-
* Highlight npm output
|
|
183
|
-
*/
|
|
184
|
-
function highlightNpmOutput(text) {
|
|
185
|
-
let result = text;
|
|
186
|
-
// Package names
|
|
187
|
-
result = result.replace(/(@[\w-]+\/[\w-]+|[\w-]+@[\d.]+)/g, (match) => theme.info(match));
|
|
188
|
-
// Warnings
|
|
189
|
-
result = result.replace(/WARN/g, theme.warning.bold('WARN'));
|
|
190
|
-
// Errors
|
|
191
|
-
result = result.replace(/ERR!/g, theme.error.bold('ERR!'));
|
|
192
|
-
return result;
|
|
193
|
-
}
|
|
194
|
-
/**
|
|
195
|
-
* Apply all highlighting (auto-detect)
|
|
196
|
-
*/
|
|
197
|
-
export function highlightText(text, context) {
|
|
198
|
-
let result = text;
|
|
199
|
-
switch (context) {
|
|
200
|
-
case 'error':
|
|
201
|
-
result = highlightError(result);
|
|
202
|
-
break;
|
|
203
|
-
case 'code':
|
|
204
|
-
result = highlightKeywords(result);
|
|
205
|
-
result = highlightQuotedStrings(result);
|
|
206
|
-
result = highlightNumbers(result);
|
|
207
|
-
break;
|
|
208
|
-
case 'command':
|
|
209
|
-
result = highlightCommandOutput(result);
|
|
210
|
-
break;
|
|
211
|
-
case 'log':
|
|
212
|
-
result = highlightSuccess(result);
|
|
213
|
-
result = highlightWarning(result);
|
|
214
|
-
result = highlightNumbers(result);
|
|
215
|
-
break;
|
|
216
|
-
default:
|
|
217
|
-
// Auto-detect and apply all
|
|
218
|
-
result = highlightNumbers(result);
|
|
219
|
-
result = highlightUrls(result);
|
|
220
|
-
result = highlightInlineCode(result);
|
|
221
|
-
result = highlightSuccess(result);
|
|
222
|
-
result = highlightWarning(result);
|
|
223
|
-
}
|
|
224
|
-
return result;
|
|
225
|
-
}
|
|
226
|
-
/**
|
|
227
|
-
* Highlight important text (bold + colored)
|
|
228
|
-
*/
|
|
229
|
-
export function highlightImportant(text) {
|
|
230
|
-
return theme.ui.highlight(text);
|
|
231
|
-
}
|
|
232
|
-
/**
|
|
233
|
-
* Emphasize text (less prominent than important)
|
|
234
|
-
*/
|
|
235
|
-
export function emphasizeText(text) {
|
|
236
|
-
return theme.ui.emphasis(text);
|
|
237
|
-
}
|
|
238
|
-
/**
|
|
239
|
-
* Highlight thinking blocks (Claude Code style)
|
|
240
|
-
* Wraps <thinking>...</thinking> content in a styled box
|
|
241
|
-
*/
|
|
242
|
-
export function highlightThinkingBlock(text) {
|
|
243
|
-
// Match <thinking>...</thinking> blocks
|
|
244
|
-
const thinkingRegex = /<thinking>([\s\S]*?)<\/thinking>/gi;
|
|
245
|
-
return text.replace(thinkingRegex, (_, content) => {
|
|
246
|
-
const trimmedContent = content.trim();
|
|
247
|
-
const lines = trimmedContent.split('\n');
|
|
248
|
-
// Build the styled thinking box
|
|
249
|
-
const header = theme.ui.muted('┌─ ') + theme.secondary('💭 Thinking') + theme.ui.muted(' ─');
|
|
250
|
-
const footer = theme.ui.muted(`└${'─'.repeat(20)}`);
|
|
251
|
-
const styledLines = lines.map(line => {
|
|
252
|
-
const trimmedLine = line.trim();
|
|
253
|
-
if (!trimmedLine)
|
|
254
|
-
return theme.ui.muted('│');
|
|
255
|
-
return theme.ui.muted('│ ') + theme.ui.muted(trimmedLine);
|
|
256
|
-
});
|
|
257
|
-
return [header, ...styledLines, footer].join('\n');
|
|
258
|
-
});
|
|
259
|
-
}
|
|
260
|
-
/**
|
|
261
|
-
* Format streaming thinking content (for incremental display)
|
|
262
|
-
* Shows thinking in a muted italic style without the box
|
|
263
|
-
*/
|
|
264
|
-
export function formatThinkingContent(content) {
|
|
265
|
-
return theme.ui.muted(content);
|
|
266
|
-
}
|
|
267
|
-
//# sourceMappingURL=textHigh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2
|
-
* WriteLock - Shared write lock for coordinating terminal output
|
|
3
|
-
*
|
|
4
|
-
* Prevents race conditions when multiple sources write to stdout:
|
|
5
|
-
* - Display output (messages, tool results)
|
|
6
|
-
* - Terminal input rendering (prompt, status)
|
|
7
|
-
* - Streaming content
|
|
8
|
-
*
|
|
9
|
-
* Uses a simple mutex pattern suitable for Node.js single-threaded event loop.
|
|
10
|
-
*/
|
|
11
|
-
type WriteCallback = () => void;
|
|
12
|
-
declare class WriteLockImpl {
|
|
13
|
-
private locked;
|
|
14
|
-
private readonly pendingWrites;
|
|
15
|
-
private lockHolder;
|
|
16
|
-
/**
|
|
17
|
-
* Check if output is currently locked
|
|
18
|
-
*/
|
|
19
|
-
isLocked(): boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Acquire the lock for exclusive writing
|
|
22
|
-
* @param holder Optional identifier for debugging
|
|
23
|
-
*/
|
|
24
|
-
lock(holder?: string): void;
|
|
25
|
-
/**
|
|
26
|
-
* Release the lock and process any pending writes
|
|
27
|
-
*/
|
|
28
|
-
unlock(): void;
|
|
29
|
-
/**
|
|
30
|
-
* Execute a write callback safely.
|
|
31
|
-
* If locked, the callback is queued until unlock.
|
|
32
|
-
*/
|
|
33
|
-
safeWrite(callback: WriteCallback): void;
|
|
34
|
-
/**
|
|
35
|
-
* Execute a write with the lock held.
|
|
36
|
-
* Ensures exclusive access during the write operation.
|
|
37
|
-
*/
|
|
38
|
-
withLock(callback: WriteCallback, holder?: string): void;
|
|
39
|
-
/**
|
|
40
|
-
* Execute an async operation with the lock held.
|
|
41
|
-
*/
|
|
42
|
-
withLockAsync<T>(callback: () => Promise<T>, holder?: string): Promise<T>;
|
|
43
|
-
/**
|
|
44
|
-
* Process any pending writes that were queued while locked
|
|
45
|
-
*/
|
|
46
|
-
private processPending;
|
|
47
|
-
/**
|
|
48
|
-
* Clear all pending writes (use when resetting state)
|
|
49
|
-
*/
|
|
50
|
-
clearPending(): void;
|
|
51
|
-
/**
|
|
52
|
-
* Get debug info about the lock state
|
|
53
|
-
*/
|
|
54
|
-
getDebugInfo(): {
|
|
55
|
-
locked: boolean;
|
|
56
|
-
holder: string | null;
|
|
57
|
-
pendingCount: number;
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Singleton instance for global use
|
|
62
|
-
*/
|
|
63
|
-
export declare const writeLock: WriteLockImpl;
|
|
64
|
-
export {};
|
|
65
|
-
//# sourceMappingURL=writeLock.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"writeLock.d.ts","sourceRoot":"","sources":["../../src/ui/writeLock.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,KAAK,aAAa,GAAG,MAAM,IAAI,CAAC;AAEhC,cAAM,aAAa;IACjB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAuB;IACrD,OAAO,CAAC,UAAU,CAAuB;IAEzC;;OAEG;IACH,QAAQ,IAAI,OAAO;IAInB;;;OAGG;IACH,IAAI,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI;IAK3B;;OAEG;IACH,MAAM,IAAI,IAAI;IAMd;;;OAGG;IACH,SAAS,CAAC,QAAQ,EAAE,aAAa,GAAG,IAAI;IAQxC;;;OAGG;IACH,QAAQ,CAAC,QAAQ,EAAE,aAAa,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI;IAexD;;OAEG;IACG,aAAa,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IAc/E;;OAEG;IACH,OAAO,CAAC,cAAc;IAStB;;OAEG;IACH,YAAY,IAAI,IAAI;IAIpB;;OAEG;IACH,YAAY,IAAI;QAAE,MAAM,EAAE,OAAO,CAAC;QAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,YAAY,EAAE,MAAM,CAAA;KAAE;CAOjF;AAED;;GAEG;AACH,eAAO,MAAM,SAAS,eAAsB,CAAC"}
|
package/dist/ui/writeLock.js
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* WriteLock - Shared write lock for coordinating terminal output
|
|
3
|
-
*
|
|
4
|
-
* Prevents race conditions when multiple sources write to stdout:
|
|
5
|
-
* - Display output (messages, tool results)
|
|
6
|
-
* - Terminal input rendering (prompt, status)
|
|
7
|
-
* - Streaming content
|
|
8
|
-
*
|
|
9
|
-
* Uses a simple mutex pattern suitable for Node.js single-threaded event loop.
|
|
10
|
-
*/
|
|
11
|
-
class WriteLockImpl {
|
|
12
|
-
locked = false;
|
|
13
|
-
pendingWrites = [];
|
|
14
|
-
lockHolder = null;
|
|
15
|
-
/**
|
|
16
|
-
* Check if output is currently locked
|
|
17
|
-
*/
|
|
18
|
-
isLocked() {
|
|
19
|
-
return this.locked;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Acquire the lock for exclusive writing
|
|
23
|
-
* @param holder Optional identifier for debugging
|
|
24
|
-
*/
|
|
25
|
-
lock(holder) {
|
|
26
|
-
this.locked = true;
|
|
27
|
-
this.lockHolder = holder ?? null;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Release the lock and process any pending writes
|
|
31
|
-
*/
|
|
32
|
-
unlock() {
|
|
33
|
-
this.locked = false;
|
|
34
|
-
this.lockHolder = null;
|
|
35
|
-
this.processPending();
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Execute a write callback safely.
|
|
39
|
-
* If locked, the callback is queued until unlock.
|
|
40
|
-
*/
|
|
41
|
-
safeWrite(callback) {
|
|
42
|
-
if (this.locked) {
|
|
43
|
-
this.pendingWrites.push(callback);
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
callback();
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Execute a write with the lock held.
|
|
50
|
-
* Ensures exclusive access during the write operation.
|
|
51
|
-
*/
|
|
52
|
-
withLock(callback, holder) {
|
|
53
|
-
if (this.locked) {
|
|
54
|
-
// Queue for later execution
|
|
55
|
-
this.pendingWrites.push(() => this.withLock(callback, holder));
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
this.lock(holder);
|
|
59
|
-
try {
|
|
60
|
-
callback();
|
|
61
|
-
}
|
|
62
|
-
finally {
|
|
63
|
-
this.unlock();
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Execute an async operation with the lock held.
|
|
68
|
-
*/
|
|
69
|
-
async withLockAsync(callback, holder) {
|
|
70
|
-
// Wait for lock to be available
|
|
71
|
-
while (this.locked) {
|
|
72
|
-
await new Promise((resolve) => setTimeout(resolve, 1));
|
|
73
|
-
}
|
|
74
|
-
this.lock(holder);
|
|
75
|
-
try {
|
|
76
|
-
return await callback();
|
|
77
|
-
}
|
|
78
|
-
finally {
|
|
79
|
-
this.unlock();
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Process any pending writes that were queued while locked
|
|
84
|
-
*/
|
|
85
|
-
processPending() {
|
|
86
|
-
while (this.pendingWrites.length > 0 && !this.locked) {
|
|
87
|
-
const callback = this.pendingWrites.shift();
|
|
88
|
-
if (callback) {
|
|
89
|
-
callback();
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Clear all pending writes (use when resetting state)
|
|
95
|
-
*/
|
|
96
|
-
clearPending() {
|
|
97
|
-
this.pendingWrites.length = 0;
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Get debug info about the lock state
|
|
101
|
-
*/
|
|
102
|
-
getDebugInfo() {
|
|
103
|
-
return {
|
|
104
|
-
locked: this.locked,
|
|
105
|
-
holder: this.lockHolder,
|
|
106
|
-
pendingCount: this.pendingWrites.length,
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* Singleton instance for global use
|
|
112
|
-
*/
|
|
113
|
-
export const writeLock = new WriteLockImpl();
|
|
114
|
-
//# sourceMappingURL=writeLock.js.map
|
package/dist/ui/writeLock.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"writeLock.js","sourceRoot":"","sources":["../../src/ui/writeLock.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,MAAM,aAAa;IACT,MAAM,GAAG,KAAK,CAAC;IACN,aAAa,GAAoB,EAAE,CAAC;IAC7C,UAAU,GAAkB,IAAI,CAAC;IAEzC;;OAEG;IACH,QAAQ;QACN,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED;;;OAGG;IACH,IAAI,CAAC,MAAe;QAClB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACnB,IAAI,CAAC,UAAU,GAAG,MAAM,IAAI,IAAI,CAAC;IACnC,CAAC;IAED;;OAEG;IACH,MAAM;QACJ,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;QACvB,IAAI,CAAC,cAAc,EAAE,CAAC;IACxB,CAAC;IAED;;;OAGG;IACH,SAAS,CAAC,QAAuB;QAC/B,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YAChB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAClC,OAAO;QACT,CAAC;QACD,QAAQ,EAAE,CAAC;IACb,CAAC;IAED;;;OAGG;IACH,QAAQ,CAAC,QAAuB,EAAE,MAAe;QAC/C,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YAChB,4BAA4B;YAC5B,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;YAC/D,OAAO;QACT,CAAC;QAED,I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
|
|
1
|
-
/**
|
|
2
|
-
* Async Utilities Module
|
|
3
|
-
*
|
|
4
|
-
* Production-ready async patterns for rate limiting, throttling,
|
|
5
|
-
* concurrency control, and caching with TTL.
|
|
6
|
-
*
|
|
7
|
-
* Principal Investigator: Bo Shang
|
|
8
|
-
* Framework: erosolar-cli
|
|
9
|
-
*/
|
|
10
|
-
export interface RateLimiterConfig {
|
|
11
|
-
maxRequests: number;
|
|
12
|
-
windowMs: number;
|
|
13
|
-
}
|
|
14
|
-
export interface ThrottleConfig {
|
|
15
|
-
intervalMs: number;
|
|
16
|
-
leading?: boolean;
|
|
17
|
-
trailing?: boolean;
|
|
18
|
-
}
|
|
19
|
-
export interface CacheEntry<T> {
|
|
20
|
-
value: T;
|
|
21
|
-
expiresAt: number;
|
|
22
|
-
}
|
|
23
|
-
export interface CacheConfig {
|
|
24
|
-
ttlMs: number;
|
|
25
|
-
maxSize?: number;
|
|
26
|
-
}
|
|
27
|
-
export interface ConcurrencyConfig {
|
|
28
|
-
maxConcurrent: number;
|
|
29
|
-
timeout?: number;
|
|
30
|
-
}
|
|
31
|
-
export declare class RateLimiter {
|
|
32
|
-
private tokens;
|
|
33
|
-
private lastRefill;
|
|
34
|
-
private readonly maxTokens;
|
|
35
|
-
private readonly refillRate;
|
|
36
|
-
constructor(config: RateLimiterConfig);
|
|
37
|
-
private refill;
|
|
38
|
-
acquire(): Promise<void>;
|
|
39
|
-
tryAcquire(): boolean;
|
|
40
|
-
get availableTokens(): number;
|
|
41
|
-
}
|
|
42
|
-
export declare function throttle<T extends (...args: unknown[]) => unknown>(fn: T, config: ThrottleConfig): (...args: Parameters<T>) => ReturnType<T> | undefined;
|
|
43
|
-
export declare function debounce<T extends (...args: unknown[]) => unknown>(fn: T, delayMs: number): (...args: Parameters<T>) => void;
|
|
44
|
-
export declare class TTLCache<K, V> {
|
|
45
|
-
private cache;
|
|
46
|
-
private readonly ttlMs;
|
|
47
|
-
private readonly maxSize;
|
|
48
|
-
constructor(config: CacheConfig);
|
|
49
|
-
get(key: K): V | undefined;
|
|
50
|
-
set(key: K, value: V, ttlMs?: number): void;
|
|
51
|
-
has(key: K): boolean;
|
|
52
|
-
delete(key: K): boolean;
|
|
53
|
-
clear(): void;
|
|
54
|
-
get size(): number;
|
|
55
|
-
private prune;
|
|
56
|
-
}
|
|
57
|
-
export declare function memoize<T extends (...args: unknown[]) => unknown>(fn: T, config: CacheConfig & {
|
|
58
|
-
keyFn?: (...args: Parameters<T>) => string;
|
|
59
|
-
}): T;
|
|
60
|
-
export declare class ConcurrencyPool {
|
|
61
|
-
private running;
|
|
62
|
-
private queue;
|
|
63
|
-
private readonly maxConcurrent;
|
|
64
|
-
private readonly timeout;
|
|
65
|
-
constructor(config: ConcurrencyConfig);
|
|
66
|
-
run<T>(fn: () => Promise<T>): Promise<T>;
|
|
67
|
-
private acquire;
|
|
68
|
-
private release;
|
|
69
|
-
get pending(): number;
|
|
70
|
-
get active(): number;
|
|
71
|
-
}
|
|
72
|
-
export declare function parallelMap<T, R>(items: T[], fn: (item: T, index: number) => Promise<R>, concurrency?: number): Promise<R[]>;
|
|
73
|
-
export declare function sleep(ms: number): Promise<void>;
|
|
74
|
-
export declare function withTimeout<T>(promise: Promise<T>, timeoutMs: number, errorMessage?: string): Promise<T>;
|
|
75
|
-
export declare function retry<T>(fn: () => Promise<T>, config?: {
|
|
76
|
-
maxRetries?: number;
|
|
77
|
-
baseDelayMs?: number;
|
|
78
|
-
maxDelayMs?: number;
|
|
79
|
-
backoffMultiplier?: number;
|
|
80
|
-
shouldRetry?: (error: unknown) => boolean;
|
|
81
|
-
}): Promise<T>;
|
|
82
|
-
declare const _default: {
|
|
83
|
-
RateLimiter: typeof RateLimiter;
|
|
84
|
-
TTLCache: typeof TTLCache;
|
|
85
|
-
ConcurrencyPool: typeof ConcurrencyPool;
|
|
86
|
-
throttle: typeof throttle;
|
|
87
|
-
debounce: typeof debounce;
|
|
88
|
-
memoize: typeof memoize;
|
|
89
|
-
parallelMap: typeof parallelMap;
|
|
90
|
-
sleep: typeof sleep;
|
|
91
|
-
withTimeout: typeof withTimeout;
|
|
92
|
-
retry: typeof retry;
|
|
93
|
-
};
|
|
94
|
-
export default _default;
|
|
95
|
-
//# sourceMappingURL=asyncUtils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"asyncUtils.d.ts","sourceRoot":"","sources":["../../src/utils/asyncUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAMH,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,KAAK,EAAE,CAAC,CAAC;IACT,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,iBAAiB;IAChC,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAMD,qBAAa,WAAW;IACtB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IACnC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAS;gBAExB,MAAM,EAAE,iBAAiB;IAOrC,OAAO,CAAC,MAAM;IAQR,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAe9B,UAAU,IAAI,OAAO;IASrB,IAAI,eAAe,IAAI,MAAM,CAG5B;CACF;AAMD,wBAAgB,QAAQ,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK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