specmem-hardwicksoftware 3.5.99
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/CHANGELOG.md +299 -0
- package/LICENSE.md +6406 -0
- package/README.md +539 -0
- package/bin/AegisTheme.cjs +1022 -0
- package/bin/AnsiRenderer.cjs +1055 -0
- package/bin/BoxRenderer.cjs +605 -0
- package/bin/ClaudeLiveScreen.cjs +1299 -0
- package/bin/DashboardModules.cjs +733 -0
- package/bin/LiveScreenCapture.cjs +1012 -0
- package/bin/MemoryBrowserScreen.cjs +1595 -0
- package/bin/TabManager.cjs +1414 -0
- package/bin/checkAgentStatus-fix.patch +30 -0
- package/bin/mcp-socket-client.cjs +462 -0
- package/bin/screen-utils.cjs +106 -0
- package/bin/specmem-autoclaude.cjs +663 -0
- package/bin/specmem-cleanup.cjs +421 -0
- package/bin/specmem-cli.cjs +794 -0
- package/bin/specmem-console-teamcomms-class.cjs +428 -0
- package/bin/specmem-console.cjs +8104 -0
- package/bin/specmem-statusbar.cjs +530 -0
- package/bootstrap.cjs +5065 -0
- package/claude-hooks/agent-chooser-hook.js +179 -0
- package/claude-hooks/agent-chooser-inject.js +121 -0
- package/claude-hooks/agent-loading-hook.js +990 -0
- package/claude-hooks/agent-output-fader.cjs +542 -0
- package/claude-hooks/agent-output-interceptor.js +193 -0
- package/claude-hooks/agent-type-matcher.js +419 -0
- package/claude-hooks/auto-bypass.py +74 -0
- package/claude-hooks/background-completion-silencer.js +134 -0
- package/claude-hooks/bash-auto-background.js +182 -0
- package/claude-hooks/build-cedict-dictionary.mjs +167 -0
- package/claude-hooks/bullshit-radar.cjs +323 -0
- package/claude-hooks/cedict-codes.json +270 -0
- package/claude-hooks/cedict-extracted.json +22632 -0
- package/claude-hooks/claude-watchdog.sh +401 -0
- package/claude-hooks/context-dedup.cjs +144 -0
- package/claude-hooks/context-yeeter.cjs +244 -0
- package/claude-hooks/debug-suffix.cjs +15 -0
- package/claude-hooks/debug2.cjs +7 -0
- package/claude-hooks/drilldown-enforcer.js +242 -0
- package/claude-hooks/english-morphology-standalone.cjs +149 -0
- package/claude-hooks/english-morphology.cjs +152 -0
- package/claude-hooks/extract-translations.mjs +193 -0
- package/claude-hooks/file-claim-enforcer.cjs +293 -0
- package/claude-hooks/file-claim-enforcer.js +293 -0
- package/claude-hooks/find-collisions.cjs +39 -0
- package/claude-hooks/fix-abbreviations.cjs +60 -0
- package/claude-hooks/fix-collisions.cjs +60 -0
- package/claude-hooks/fix-decompressor.cjs +79 -0
- package/claude-hooks/fix-suffixes.cjs +66 -0
- package/claude-hooks/grammar-engine.cjs +159 -0
- package/claude-hooks/input-aware-improver.js +231 -0
- package/claude-hooks/is-agent.cjs +64 -0
- package/claude-hooks/mega-test.cjs +213 -0
- package/claude-hooks/merge-dictionaries.mjs +207 -0
- package/claude-hooks/merged-codes.cjs +22675 -0
- package/claude-hooks/merged-codes.json +22676 -0
- package/claude-hooks/output-cleaner.cjs +388 -0
- package/claude-hooks/post-write-memory-hook.cjs +430 -0
- package/claude-hooks/quick-test.cjs +24 -0
- package/claude-hooks/quick-test2.cjs +24 -0
- package/claude-hooks/remove-bad-codes.cjs +23 -0
- package/claude-hooks/search-reminder-hook.js +90 -0
- package/claude-hooks/semantic-test.cjs +93 -0
- package/claude-hooks/settings.json +445 -0
- package/claude-hooks/smart-context-hook.cjs +547 -0
- package/claude-hooks/smart-context-hook.js +539 -0
- package/claude-hooks/smart-search-interceptor.js +364 -0
- package/claude-hooks/socket-connect-helper.cjs +235 -0
- package/claude-hooks/specmem/sockets/session-start.lock +1 -0
- package/claude-hooks/specmem-context-hook.cjs +357 -0
- package/claude-hooks/specmem-context-hook.js +357 -0
- package/claude-hooks/specmem-drilldown-hook.cjs +480 -0
- package/claude-hooks/specmem-drilldown-hook.js +480 -0
- package/claude-hooks/specmem-drilldown-setter.js +210 -0
- package/claude-hooks/specmem-paths.cjs +213 -0
- package/claude-hooks/specmem-precompact.js +183 -0
- package/claude-hooks/specmem-session-init.sh +33 -0
- package/claude-hooks/specmem-session-start.cjs +498 -0
- package/claude-hooks/specmem-stop-hook.cjs +73 -0
- package/claude-hooks/specmem-stop-hook.js +5 -0
- package/claude-hooks/specmem-team-comms.cjs +434 -0
- package/claude-hooks/specmem-team-member-inject.js +271 -0
- package/claude-hooks/specmem-unified-hook.py +670 -0
- package/claude-hooks/subagent-loading-hook.js +194 -0
- package/claude-hooks/sysprompt-squisher.cjs +167 -0
- package/claude-hooks/task-progress-hook.js +204 -0
- package/claude-hooks/team-comms-enforcer.cjs +585 -0
- package/claude-hooks/test-accuracy.cjs +27 -0
- package/claude-hooks/test-big.cjs +28 -0
- package/claude-hooks/test-inflectors.cjs +39 -0
- package/claude-hooks/test-pluralize.cjs +37 -0
- package/claude-hooks/test-quick.cjs +8 -0
- package/claude-hooks/test-wink.cjs +20 -0
- package/claude-hooks/token-compressor.cjs +940 -0
- package/claude-hooks/use-code-pointers.cjs +279 -0
- package/commands/COMMAND_TOOL_MAP.md +299 -0
- package/commands/specmem-agents.md +412 -0
- package/commands/specmem-autoclaude.md +295 -0
- package/commands/specmem-changes.md +247 -0
- package/commands/specmem-code.md +103 -0
- package/commands/specmem-configteammembercomms.md +322 -0
- package/commands/specmem-drilldown.md +208 -0
- package/commands/specmem-find.md +195 -0
- package/commands/specmem-getdashboard.md +243 -0
- package/commands/specmem-hooks.md +219 -0
- package/commands/specmem-pointers.md +149 -0
- package/commands/specmem-progress.md +287 -0
- package/commands/specmem-remember.md +123 -0
- package/commands/specmem-service.md +349 -0
- package/commands/specmem-stats.md +189 -0
- package/commands/specmem-team-member.md +409 -0
- package/commands/specmem-webdev.md +583 -0
- package/commands/specmem.md +363 -0
- package/dist/autoStart/index.d.ts +214 -0
- package/dist/autoStart/index.d.ts.map +1 -0
- package/dist/autoStart/index.js +883 -0
- package/dist/autoStart/index.js.map +1 -0
- package/dist/claude-sessions/contextRestorationParser.d.ts +74 -0
- package/dist/claude-sessions/contextRestorationParser.d.ts.map +1 -0
- package/dist/claude-sessions/contextRestorationParser.js +570 -0
- package/dist/claude-sessions/contextRestorationParser.js.map +1 -0
- package/dist/claude-sessions/index.d.ts +13 -0
- package/dist/claude-sessions/index.d.ts.map +1 -0
- package/dist/claude-sessions/index.js +11 -0
- package/dist/claude-sessions/index.js.map +1 -0
- package/dist/claude-sessions/sessionIntegration.d.ts +48 -0
- package/dist/claude-sessions/sessionIntegration.d.ts.map +1 -0
- package/dist/claude-sessions/sessionIntegration.js +146 -0
- package/dist/claude-sessions/sessionIntegration.js.map +1 -0
- package/dist/claude-sessions/sessionParser.d.ts +293 -0
- package/dist/claude-sessions/sessionParser.d.ts.map +1 -0
- package/dist/claude-sessions/sessionParser.js +1028 -0
- package/dist/claude-sessions/sessionParser.js.map +1 -0
- package/dist/claude-sessions/sessionWatcher.d.ts +139 -0
- package/dist/claude-sessions/sessionWatcher.d.ts.map +1 -0
- package/dist/claude-sessions/sessionWatcher.js +722 -0
- package/dist/claude-sessions/sessionWatcher.js.map +1 -0
- package/dist/cli/deploy-to-claude.d.ts +56 -0
- package/dist/cli/deploy-to-claude.d.ts.map +1 -0
- package/dist/cli/deploy-to-claude.js +576 -0
- package/dist/cli/deploy-to-claude.js.map +1 -0
- package/dist/code-explanations/explainCode.d.ts +86 -0
- package/dist/code-explanations/explainCode.d.ts.map +1 -0
- package/dist/code-explanations/explainCode.js +286 -0
- package/dist/code-explanations/explainCode.js.map +1 -0
- package/dist/code-explanations/feedback.d.ts +87 -0
- package/dist/code-explanations/feedback.d.ts.map +1 -0
- package/dist/code-explanations/feedback.js +212 -0
- package/dist/code-explanations/feedback.js.map +1 -0
- package/dist/code-explanations/getRelatedCode.d.ts +80 -0
- package/dist/code-explanations/getRelatedCode.d.ts.map +1 -0
- package/dist/code-explanations/getRelatedCode.js +262 -0
- package/dist/code-explanations/getRelatedCode.js.map +1 -0
- package/dist/code-explanations/index.d.ts +284 -0
- package/dist/code-explanations/index.d.ts.map +1 -0
- package/dist/code-explanations/index.js +249 -0
- package/dist/code-explanations/index.js.map +1 -0
- package/dist/code-explanations/linkCodeToPrompt.d.ts +79 -0
- package/dist/code-explanations/linkCodeToPrompt.d.ts.map +1 -0
- package/dist/code-explanations/linkCodeToPrompt.js +213 -0
- package/dist/code-explanations/linkCodeToPrompt.js.map +1 -0
- package/dist/code-explanations/recallExplanation.d.ts +88 -0
- package/dist/code-explanations/recallExplanation.d.ts.map +1 -0
- package/dist/code-explanations/recallExplanation.js +218 -0
- package/dist/code-explanations/recallExplanation.js.map +1 -0
- package/dist/code-explanations/schema.d.ts +32 -0
- package/dist/code-explanations/schema.d.ts.map +1 -0
- package/dist/code-explanations/schema.js +221 -0
- package/dist/code-explanations/schema.js.map +1 -0
- package/dist/code-explanations/semanticSearch.d.ts +75 -0
- package/dist/code-explanations/semanticSearch.d.ts.map +1 -0
- package/dist/code-explanations/semanticSearch.js +203 -0
- package/dist/code-explanations/semanticSearch.js.map +1 -0
- package/dist/code-explanations/types.d.ts +328 -0
- package/dist/code-explanations/types.d.ts.map +1 -0
- package/dist/code-explanations/types.js +122 -0
- package/dist/code-explanations/types.js.map +1 -0
- package/dist/codebase/codeAnalyzer.d.ts +272 -0
- package/dist/codebase/codeAnalyzer.d.ts.map +1 -0
- package/dist/codebase/codeAnalyzer.js +1353 -0
- package/dist/codebase/codeAnalyzer.js.map +1 -0
- package/dist/codebase/codebaseIndexer.d.ts +360 -0
- package/dist/codebase/codebaseIndexer.d.ts.map +1 -0
- package/dist/codebase/codebaseIndexer.js +1735 -0
- package/dist/codebase/codebaseIndexer.js.map +1 -0
- package/dist/codebase/codebaseTools.d.ts +853 -0
- package/dist/codebase/codebaseTools.d.ts.map +1 -0
- package/dist/codebase/codebaseTools.js +1279 -0
- package/dist/codebase/codebaseTools.js.map +1 -0
- package/dist/codebase/exclusions.d.ts +111 -0
- package/dist/codebase/exclusions.d.ts.map +1 -0
- package/dist/codebase/exclusions.js +771 -0
- package/dist/codebase/exclusions.js.map +1 -0
- package/dist/codebase/fileWatcher.d.ts +135 -0
- package/dist/codebase/fileWatcher.d.ts.map +1 -0
- package/dist/codebase/fileWatcher.js +309 -0
- package/dist/codebase/fileWatcher.js.map +1 -0
- package/dist/codebase/index.d.ts +33 -0
- package/dist/codebase/index.d.ts.map +1 -0
- package/dist/codebase/index.js +77 -0
- package/dist/codebase/index.js.map +1 -0
- package/dist/codebase/ingestion.d.ts +177 -0
- package/dist/codebase/ingestion.d.ts.map +1 -0
- package/dist/codebase/ingestion.js +690 -0
- package/dist/codebase/ingestion.js.map +1 -0
- package/dist/codebase/languageDetection.d.ts +75 -0
- package/dist/codebase/languageDetection.d.ts.map +1 -0
- package/dist/codebase/languageDetection.js +768 -0
- package/dist/codebase/languageDetection.js.map +1 -0
- package/dist/commands/codebaseCommands.d.ts +101 -0
- package/dist/commands/codebaseCommands.d.ts.map +1 -0
- package/dist/commands/codebaseCommands.js +911 -0
- package/dist/commands/codebaseCommands.js.map +1 -0
- package/dist/commands/commandHandler.d.ts +126 -0
- package/dist/commands/commandHandler.d.ts.map +1 -0
- package/dist/commands/commandHandler.js +296 -0
- package/dist/commands/commandHandler.js.map +1 -0
- package/dist/commands/commandLoader.d.ts +103 -0
- package/dist/commands/commandLoader.d.ts.map +1 -0
- package/dist/commands/commandLoader.js +223 -0
- package/dist/commands/commandLoader.js.map +1 -0
- package/dist/commands/contextCommands.d.ts +83 -0
- package/dist/commands/contextCommands.d.ts.map +1 -0
- package/dist/commands/contextCommands.js +512 -0
- package/dist/commands/contextCommands.js.map +1 -0
- package/dist/commands/index.d.ts +24 -0
- package/dist/commands/index.d.ts.map +1 -0
- package/dist/commands/index.js +28 -0
- package/dist/commands/index.js.map +1 -0
- package/dist/commands/mcpResources.d.ts +50 -0
- package/dist/commands/mcpResources.d.ts.map +1 -0
- package/dist/commands/mcpResources.js +372 -0
- package/dist/commands/mcpResources.js.map +1 -0
- package/dist/commands/memoryCommands.d.ts +74 -0
- package/dist/commands/memoryCommands.d.ts.map +1 -0
- package/dist/commands/memoryCommands.js +609 -0
- package/dist/commands/memoryCommands.js.map +1 -0
- package/dist/commands/promptCommands.d.ts +91 -0
- package/dist/commands/promptCommands.d.ts.map +1 -0
- package/dist/commands/promptCommands.js +801 -0
- package/dist/commands/promptCommands.js.map +1 -0
- package/dist/commands/teamMemberCommands.d.ts +21 -0
- package/dist/commands/teamMemberCommands.d.ts.map +1 -0
- package/dist/commands/teamMemberCommands.js +137 -0
- package/dist/commands/teamMemberCommands.js.map +1 -0
- package/dist/comms/fileCommsTransport.d.ts +91 -0
- package/dist/comms/fileCommsTransport.d.ts.map +1 -0
- package/dist/comms/fileCommsTransport.js +244 -0
- package/dist/comms/fileCommsTransport.js.map +1 -0
- package/dist/comms/index.d.ts +7 -0
- package/dist/comms/index.d.ts.map +1 -0
- package/dist/comms/index.js +7 -0
- package/dist/comms/index.js.map +1 -0
- package/dist/config/apiKeyDetection.d.ts +41 -0
- package/dist/config/apiKeyDetection.d.ts.map +1 -0
- package/dist/config/apiKeyDetection.js +211 -0
- package/dist/config/apiKeyDetection.js.map +1 -0
- package/dist/config/autoConfig.d.ts +188 -0
- package/dist/config/autoConfig.d.ts.map +1 -0
- package/dist/config/autoConfig.js +850 -0
- package/dist/config/autoConfig.js.map +1 -0
- package/dist/config/configSync.d.ts +119 -0
- package/dist/config/configSync.d.ts.map +1 -0
- package/dist/config/configSync.js +878 -0
- package/dist/config/configSync.js.map +1 -0
- package/dist/config/embeddingTimeouts.d.ts +145 -0
- package/dist/config/embeddingTimeouts.d.ts.map +1 -0
- package/dist/config/embeddingTimeouts.js +255 -0
- package/dist/config/embeddingTimeouts.js.map +1 -0
- package/dist/config/index.d.ts +5 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +7 -0
- package/dist/config/index.js.map +1 -0
- package/dist/config/languageConfig.d.ts +68 -0
- package/dist/config/languageConfig.d.ts.map +1 -0
- package/dist/config/languageConfig.js +473 -0
- package/dist/config/languageConfig.js.map +1 -0
- package/dist/config/password.d.ts +145 -0
- package/dist/config/password.d.ts.map +1 -0
- package/dist/config/password.js +428 -0
- package/dist/config/password.js.map +1 -0
- package/dist/config.d.ts +338 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +1177 -0
- package/dist/config.js.map +1 -0
- package/dist/consolidation.d.ts +44 -0
- package/dist/consolidation.d.ts.map +1 -0
- package/dist/consolidation.js +447 -0
- package/dist/consolidation.js.map +1 -0
- package/dist/constants.d.ts +371 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +552 -0
- package/dist/constants.js.map +1 -0
- package/dist/coordination/TeamMemberRegistry.d.ts +192 -0
- package/dist/coordination/TeamMemberRegistry.d.ts.map +1 -0
- package/dist/coordination/TeamMemberRegistry.js +415 -0
- package/dist/coordination/TeamMemberRegistry.js.map +1 -0
- package/dist/coordination/events.d.ts +369 -0
- package/dist/coordination/events.d.ts.map +1 -0
- package/dist/coordination/events.js +232 -0
- package/dist/coordination/events.js.map +1 -0
- package/dist/coordination/handlers.d.ts +116 -0
- package/dist/coordination/handlers.d.ts.map +1 -0
- package/dist/coordination/handlers.js +400 -0
- package/dist/coordination/handlers.js.map +1 -0
- package/dist/coordination/index.d.ts +14 -0
- package/dist/coordination/index.d.ts.map +1 -0
- package/dist/coordination/index.js +31 -0
- package/dist/coordination/index.js.map +1 -0
- package/dist/coordination/integration.d.ts +260 -0
- package/dist/coordination/integration.d.ts.map +1 -0
- package/dist/coordination/integration.js +472 -0
- package/dist/coordination/integration.js.map +1 -0
- package/dist/coordination/server.d.ts +266 -0
- package/dist/coordination/server.d.ts.map +1 -0
- package/dist/coordination/server.js +995 -0
- package/dist/coordination/server.js.map +1 -0
- package/dist/coordination/serviceProvider.d.ts +70 -0
- package/dist/coordination/serviceProvider.d.ts.map +1 -0
- package/dist/coordination/serviceProvider.js +273 -0
- package/dist/coordination/serviceProvider.js.map +1 -0
- package/dist/dashboard/api/claudeControl.d.ts +44 -0
- package/dist/dashboard/api/claudeControl.d.ts.map +1 -0
- package/dist/dashboard/api/claudeControl.js +650 -0
- package/dist/dashboard/api/claudeControl.js.map +1 -0
- package/dist/dashboard/api/claudeHistory.d.ts +4 -0
- package/dist/dashboard/api/claudeHistory.d.ts.map +1 -0
- package/dist/dashboard/api/claudeHistory.js +319 -0
- package/dist/dashboard/api/claudeHistory.js.map +1 -0
- package/dist/dashboard/api/dataExport.d.ts +23 -0
- package/dist/dashboard/api/dataExport.d.ts.map +1 -0
- package/dist/dashboard/api/dataExport.js +509 -0
- package/dist/dashboard/api/dataExport.js.map +1 -0
- package/dist/dashboard/api/fileManager.d.ts +39 -0
- package/dist/dashboard/api/fileManager.d.ts.map +1 -0
- package/dist/dashboard/api/fileManager.js +814 -0
- package/dist/dashboard/api/fileManager.js.map +1 -0
- package/dist/dashboard/api/hooks.d.ts +16 -0
- package/dist/dashboard/api/hooks.d.ts.map +1 -0
- package/dist/dashboard/api/hooks.js +342 -0
- package/dist/dashboard/api/hooks.js.map +1 -0
- package/dist/dashboard/api/hotReload.d.ts +14 -0
- package/dist/dashboard/api/hotReload.d.ts.map +1 -0
- package/dist/dashboard/api/hotReload.js +219 -0
- package/dist/dashboard/api/hotReload.js.map +1 -0
- package/dist/dashboard/api/liveSessionStream.d.ts +19 -0
- package/dist/dashboard/api/liveSessionStream.d.ts.map +1 -0
- package/dist/dashboard/api/liveSessionStream.js +430 -0
- package/dist/dashboard/api/liveSessionStream.js.map +1 -0
- package/dist/dashboard/api/memoryRecall.d.ts +20 -0
- package/dist/dashboard/api/memoryRecall.d.ts.map +1 -0
- package/dist/dashboard/api/memoryRecall.js +524 -0
- package/dist/dashboard/api/memoryRecall.js.map +1 -0
- package/dist/dashboard/api/promptSend.d.ts +33 -0
- package/dist/dashboard/api/promptSend.d.ts.map +1 -0
- package/dist/dashboard/api/promptSend.js +544 -0
- package/dist/dashboard/api/promptSend.js.map +1 -0
- package/dist/dashboard/api/settings.d.ts +10 -0
- package/dist/dashboard/api/settings.d.ts.map +1 -0
- package/dist/dashboard/api/settings.js +656 -0
- package/dist/dashboard/api/settings.js.map +1 -0
- package/dist/dashboard/api/setup.d.ts +21 -0
- package/dist/dashboard/api/setup.d.ts.map +1 -0
- package/dist/dashboard/api/setup.js +663 -0
- package/dist/dashboard/api/setup.js.map +1 -0
- package/dist/dashboard/api/specmemTools.d.ts +14 -0
- package/dist/dashboard/api/specmemTools.d.ts.map +1 -0
- package/dist/dashboard/api/specmemTools.js +1059 -0
- package/dist/dashboard/api/specmemTools.js.map +1 -0
- package/dist/dashboard/api/taskTeamMembers.d.ts +8 -0
- package/dist/dashboard/api/taskTeamMembers.d.ts.map +1 -0
- package/dist/dashboard/api/taskTeamMembers.js +136 -0
- package/dist/dashboard/api/taskTeamMembers.js.map +1 -0
- package/dist/dashboard/api/teamMemberDeploy.d.ts +15 -0
- package/dist/dashboard/api/teamMemberDeploy.d.ts.map +1 -0
- package/dist/dashboard/api/teamMemberDeploy.js +421 -0
- package/dist/dashboard/api/teamMemberDeploy.js.map +1 -0
- package/dist/dashboard/api/teamMemberHistory.d.ts +38 -0
- package/dist/dashboard/api/teamMemberHistory.d.ts.map +1 -0
- package/dist/dashboard/api/teamMemberHistory.js +583 -0
- package/dist/dashboard/api/teamMemberHistory.js.map +1 -0
- package/dist/dashboard/api/terminal.d.ts +12 -0
- package/dist/dashboard/api/terminal.d.ts.map +1 -0
- package/dist/dashboard/api/terminal.js +344 -0
- package/dist/dashboard/api/terminal.js.map +1 -0
- package/dist/dashboard/api/terminalInject.d.ts +17 -0
- package/dist/dashboard/api/terminalInject.d.ts.map +1 -0
- package/dist/dashboard/api/terminalInject.js +322 -0
- package/dist/dashboard/api/terminalInject.js.map +1 -0
- package/dist/dashboard/api/terminalStream.d.ts +12 -0
- package/dist/dashboard/api/terminalStream.d.ts.map +1 -0
- package/dist/dashboard/api/terminalStream.js +482 -0
- package/dist/dashboard/api/terminalStream.js.map +1 -0
- package/dist/dashboard/index.d.ts +7 -0
- package/dist/dashboard/index.d.ts.map +1 -0
- package/dist/dashboard/index.js +7 -0
- package/dist/dashboard/index.js.map +1 -0
- package/dist/dashboard/ptyStreamer.d.ts +173 -0
- package/dist/dashboard/ptyStreamer.d.ts.map +1 -0
- package/dist/dashboard/ptyStreamer.js +661 -0
- package/dist/dashboard/ptyStreamer.js.map +1 -0
- package/dist/dashboard/public/DASHBOARD-README.md +378 -0
- package/dist/dashboard/public/INTEGRATION-GUIDE.md +395 -0
- package/dist/dashboard/public/codebase-config.html +1247 -0
- package/dist/dashboard/public/dashboard-v2.html +1942 -0
- package/dist/dashboard/public/data-export.html +819 -0
- package/dist/dashboard/public/example-page.html +164 -0
- package/dist/dashboard/public/file-explorer.html +1023 -0
- package/dist/dashboard/public/hooks.html +1103 -0
- package/dist/dashboard/public/index-improvements.css +499 -0
- package/dist/dashboard/public/index.html +5534 -0
- package/dist/dashboard/public/memory-controls.html +1959 -0
- package/dist/dashboard/public/memory-recall.html +1495 -0
- package/dist/dashboard/public/previews/skeleton-memory-graph.html +361 -0
- package/dist/dashboard/public/previews/skeleton-memory-list.html +366 -0
- package/dist/dashboard/public/previews/skeleton-search-results.html +609 -0
- package/dist/dashboard/public/previews/skeleton-stats-dashboard.html +556 -0
- package/dist/dashboard/public/prompt-console.html +2763 -0
- package/dist/dashboard/public/react-dist/assets/index-CkjobT5B.js +871 -0
- package/dist/dashboard/public/react-dist/assets/index-iRclxMst.css +1 -0
- package/dist/dashboard/public/react-dist/index.html +16 -0
- package/dist/dashboard/public/shared-header.js +325 -0
- package/dist/dashboard/public/shared-language-selector.js +626 -0
- package/dist/dashboard/public/shared-logger.js +66 -0
- package/dist/dashboard/public/shared-nav.js +325 -0
- package/dist/dashboard/public/shared-theme-blue.css +331 -0
- package/dist/dashboard/public/shared-theme.css +813 -0
- package/dist/dashboard/public/shared-toast.js +415 -0
- package/dist/dashboard/public/team-member-history.html +1291 -0
- package/dist/dashboard/public/team-member-spy.html +1199 -0
- package/dist/dashboard/public/team-members.html +3756 -0
- package/dist/dashboard/public/terminal-output.html +1013 -0
- package/dist/dashboard/public/terminal.html +372 -0
- package/dist/dashboard/sessionStore.d.ts +86 -0
- package/dist/dashboard/sessionStore.d.ts.map +1 -0
- package/dist/dashboard/sessionStore.js +262 -0
- package/dist/dashboard/sessionStore.js.map +1 -0
- package/dist/dashboard/standalone.d.ts +27 -0
- package/dist/dashboard/standalone.d.ts.map +1 -0
- package/dist/dashboard/standalone.js +380 -0
- package/dist/dashboard/standalone.js.map +1 -0
- package/dist/dashboard/webServer.d.ts +390 -0
- package/dist/dashboard/webServer.d.ts.map +1 -0
- package/dist/dashboard/webServer.js +4297 -0
- package/dist/dashboard/webServer.js.map +1 -0
- package/dist/dashboard/websocket/teamMemberStream.d.ts +87 -0
- package/dist/dashboard/websocket/teamMemberStream.d.ts.map +1 -0
- package/dist/dashboard/websocket/teamMemberStream.js +366 -0
- package/dist/dashboard/websocket/teamMemberStream.js.map +1 -0
- package/dist/dashboard/websocket/terminalStream.d.ts +130 -0
- package/dist/dashboard/websocket/terminalStream.d.ts.map +1 -0
- package/dist/dashboard/websocket/terminalStream.js +456 -0
- package/dist/dashboard/websocket/terminalStream.js.map +1 -0
- package/dist/database/embeddedPostgres.d.ts +187 -0
- package/dist/database/embeddedPostgres.d.ts.map +1 -0
- package/dist/database/embeddedPostgres.js +763 -0
- package/dist/database/embeddedPostgres.js.map +1 -0
- package/dist/database/index.d.ts +12 -0
- package/dist/database/index.d.ts.map +1 -0
- package/dist/database/index.js +20 -0
- package/dist/database/index.js.map +1 -0
- package/dist/database/initEmbeddedPostgres.d.ts +124 -0
- package/dist/database/initEmbeddedPostgres.d.ts.map +1 -0
- package/dist/database/initEmbeddedPostgres.js +855 -0
- package/dist/database/initEmbeddedPostgres.js.map +1 -0
- package/dist/database.d.ts +256 -0
- package/dist/database.d.ts.map +1 -0
- package/dist/database.js +1209 -0
- package/dist/database.js.map +1 -0
- package/dist/db/apiDataManager.d.ts +334 -0
- package/dist/db/apiDataManager.d.ts.map +1 -0
- package/dist/db/apiDataManager.js +631 -0
- package/dist/db/apiDataManager.js.map +1 -0
- package/dist/db/batchOperations.d.ts +154 -0
- package/dist/db/batchOperations.d.ts.map +1 -0
- package/dist/db/batchOperations.js +564 -0
- package/dist/db/batchOperations.js.map +1 -0
- package/dist/db/bigBrainMigrations.d.ts +48 -0
- package/dist/db/bigBrainMigrations.d.ts.map +1 -0
- package/dist/db/bigBrainMigrations.js +4266 -0
- package/dist/db/bigBrainMigrations.js.map +1 -0
- package/dist/db/connectionPoolGoBrrr.d.ts +94 -0
- package/dist/db/connectionPoolGoBrrr.d.ts.map +1 -0
- package/dist/db/connectionPoolGoBrrr.js +548 -0
- package/dist/db/connectionPoolGoBrrr.js.map +1 -0
- package/dist/db/dashboardQueries.d.ts +182 -0
- package/dist/db/dashboardQueries.d.ts.map +1 -0
- package/dist/db/dashboardQueries.js +821 -0
- package/dist/db/dashboardQueries.js.map +1 -0
- package/dist/db/deploymentBootstrap.d.ts +43 -0
- package/dist/db/deploymentBootstrap.d.ts.map +1 -0
- package/dist/db/deploymentBootstrap.js +329 -0
- package/dist/db/deploymentBootstrap.js.map +1 -0
- package/dist/db/dimensionService.d.ts +140 -0
- package/dist/db/dimensionService.d.ts.map +1 -0
- package/dist/db/dimensionService.js +261 -0
- package/dist/db/dimensionService.js.map +1 -0
- package/dist/db/embeddingOverflow.d.ts +69 -0
- package/dist/db/embeddingOverflow.d.ts.map +1 -0
- package/dist/db/embeddingOverflow.js +332 -0
- package/dist/db/embeddingOverflow.js.map +1 -0
- package/dist/db/embeddingOverflow.sql +221 -0
- package/dist/db/findThatShit.d.ts +145 -0
- package/dist/db/findThatShit.d.ts.map +1 -0
- package/dist/db/findThatShit.js +782 -0
- package/dist/db/findThatShit.js.map +1 -0
- package/dist/db/hotPathManager.d.ts +187 -0
- package/dist/db/hotPathManager.d.ts.map +1 -0
- package/dist/db/hotPathManager.js +504 -0
- package/dist/db/hotPathManager.js.map +1 -0
- package/dist/db/index.d.ts +85 -0
- package/dist/db/index.d.ts.map +1 -0
- package/dist/db/index.js +219 -0
- package/dist/db/index.js.map +1 -0
- package/dist/db/memoryDrilldown.sql +99 -0
- package/dist/db/migrate.d.ts +3 -0
- package/dist/db/migrate.d.ts.map +1 -0
- package/dist/db/migrate.js +97 -0
- package/dist/db/migrate.js.map +1 -0
- package/dist/db/migrateJsonToPostgres.d.ts +43 -0
- package/dist/db/migrateJsonToPostgres.d.ts.map +1 -0
- package/dist/db/migrateJsonToPostgres.js +465 -0
- package/dist/db/migrateJsonToPostgres.js.map +1 -0
- package/dist/db/nukeFromOrbit.d.ts +63 -0
- package/dist/db/nukeFromOrbit.d.ts.map +1 -0
- package/dist/db/nukeFromOrbit.js +499 -0
- package/dist/db/nukeFromOrbit.js.map +1 -0
- package/dist/db/processedTraining.sql +60 -0
- package/dist/db/projectNamespacing.d.ts +258 -0
- package/dist/db/projectNamespacing.d.ts.map +1 -0
- package/dist/db/projectNamespacing.js +920 -0
- package/dist/db/projectNamespacing.js.map +1 -0
- package/dist/db/projectNamespacing.sql +374 -0
- package/dist/db/projectSchemaInit.sql +271 -0
- package/dist/db/spatialMemory.d.ts +296 -0
- package/dist/db/spatialMemory.d.ts.map +1 -0
- package/dist/db/spatialMemory.js +818 -0
- package/dist/db/spatialMemory.js.map +1 -0
- package/dist/db/streamingQuery.d.ts +143 -0
- package/dist/db/streamingQuery.d.ts.map +1 -0
- package/dist/db/streamingQuery.js +350 -0
- package/dist/db/streamingQuery.js.map +1 -0
- package/dist/db/teamComms.sql +224 -0
- package/dist/db/yeetStuffInDb.d.ts +72 -0
- package/dist/db/yeetStuffInDb.d.ts.map +1 -0
- package/dist/db/yeetStuffInDb.js +473 -0
- package/dist/db/yeetStuffInDb.js.map +1 -0
- package/dist/embedding-providers/index.d.ts +10 -0
- package/dist/embedding-providers/index.d.ts.map +1 -0
- package/dist/embedding-providers/index.js +12 -0
- package/dist/embedding-providers/index.js.map +1 -0
- package/dist/embeddings/projectionLayer.d.ts +114 -0
- package/dist/embeddings/projectionLayer.d.ts.map +1 -0
- package/dist/embeddings/projectionLayer.js +345 -0
- package/dist/embeddings/projectionLayer.js.map +1 -0
- package/dist/events/Publisher.d.ts +193 -0
- package/dist/events/Publisher.d.ts.map +1 -0
- package/dist/events/Publisher.js +439 -0
- package/dist/events/Publisher.js.map +1 -0
- package/dist/events/config.d.ts +139 -0
- package/dist/events/config.d.ts.map +1 -0
- package/dist/events/config.js +266 -0
- package/dist/events/config.js.map +1 -0
- package/dist/events/index.d.ts +19 -0
- package/dist/events/index.d.ts.map +1 -0
- package/dist/events/index.js +31 -0
- package/dist/events/index.js.map +1 -0
- package/dist/events/integration.d.ts +206 -0
- package/dist/events/integration.d.ts.map +1 -0
- package/dist/events/integration.js +348 -0
- package/dist/events/integration.js.map +1 -0
- package/dist/events/metrics.d.ts +147 -0
- package/dist/events/metrics.d.ts.map +1 -0
- package/dist/events/metrics.js +343 -0
- package/dist/events/metrics.js.map +1 -0
- package/dist/hooks/cli.d.ts +28 -0
- package/dist/hooks/cli.d.ts.map +1 -0
- package/dist/hooks/cli.js +118 -0
- package/dist/hooks/cli.js.map +1 -0
- package/dist/hooks/contextInjectionHook.d.ts +60 -0
- package/dist/hooks/contextInjectionHook.d.ts.map +1 -0
- package/dist/hooks/contextInjectionHook.js +294 -0
- package/dist/hooks/contextInjectionHook.js.map +1 -0
- package/dist/hooks/drilldownHook.d.ts +125 -0
- package/dist/hooks/drilldownHook.d.ts.map +1 -0
- package/dist/hooks/drilldownHook.js +181 -0
- package/dist/hooks/drilldownHook.js.map +1 -0
- package/dist/hooks/hookManager.d.ts +180 -0
- package/dist/hooks/hookManager.d.ts.map +1 -0
- package/dist/hooks/hookManager.js +782 -0
- package/dist/hooks/hookManager.js.map +1 -0
- package/dist/hooks/index.d.ts +62 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +66 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/lowContextHook.d.ts +71 -0
- package/dist/hooks/lowContextHook.d.ts.map +1 -0
- package/dist/hooks/lowContextHook.js +258 -0
- package/dist/hooks/lowContextHook.js.map +1 -0
- package/dist/hooks/simpleContextHook.d.ts +65 -0
- package/dist/hooks/simpleContextHook.d.ts.map +1 -0
- package/dist/hooks/simpleContextHook.js +194 -0
- package/dist/hooks/simpleContextHook.js.map +1 -0
- package/dist/hooks/teamFramingCli.d.ts +56 -0
- package/dist/hooks/teamFramingCli.d.ts.map +1 -0
- package/dist/hooks/teamFramingCli.js +264 -0
- package/dist/hooks/teamFramingCli.js.map +1 -0
- package/dist/hooks/teamMemberPrepromptHook.d.ts +150 -0
- package/dist/hooks/teamMemberPrepromptHook.d.ts.map +1 -0
- package/dist/hooks/teamMemberPrepromptHook.js +308 -0
- package/dist/hooks/teamMemberPrepromptHook.js.map +1 -0
- package/dist/index.d.ts +42 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4433 -0
- package/dist/index.js.map +1 -0
- package/dist/init/claudeConfigInjector.d.ts +116 -0
- package/dist/init/claudeConfigInjector.d.ts.map +1 -0
- package/dist/init/claudeConfigInjector.js +1154 -0
- package/dist/init/claudeConfigInjector.js.map +1 -0
- package/dist/installer/autoInstall.d.ts +72 -0
- package/dist/installer/autoInstall.d.ts.map +1 -0
- package/dist/installer/autoInstall.js +617 -0
- package/dist/installer/autoInstall.js.map +1 -0
- package/dist/installer/dbSetup.d.ts +84 -0
- package/dist/installer/dbSetup.d.ts.map +1 -0
- package/dist/installer/dbSetup.js +350 -0
- package/dist/installer/dbSetup.js.map +1 -0
- package/dist/installer/firstRun.d.ts +49 -0
- package/dist/installer/firstRun.d.ts.map +1 -0
- package/dist/installer/firstRun.js +207 -0
- package/dist/installer/firstRun.js.map +1 -0
- package/dist/installer/index.d.ts +10 -0
- package/dist/installer/index.d.ts.map +1 -0
- package/dist/installer/index.js +10 -0
- package/dist/installer/index.js.map +1 -0
- package/dist/installer/silentAutoInstall.d.ts +99 -0
- package/dist/installer/silentAutoInstall.d.ts.map +1 -0
- package/dist/installer/silentAutoInstall.js +491 -0
- package/dist/installer/silentAutoInstall.js.map +1 -0
- package/dist/installer/systemDeps.d.ts +54 -0
- package/dist/installer/systemDeps.d.ts.map +1 -0
- package/dist/installer/systemDeps.js +322 -0
- package/dist/installer/systemDeps.js.map +1 -0
- package/dist/mcp/cliNotifications.d.ts +133 -0
- package/dist/mcp/cliNotifications.d.ts.map +1 -0
- package/dist/mcp/cliNotifications.js +289 -0
- package/dist/mcp/cliNotifications.js.map +1 -0
- package/dist/mcp/embeddingServerManager.d.ts +307 -0
- package/dist/mcp/embeddingServerManager.d.ts.map +1 -0
- package/dist/mcp/embeddingServerManager.js +2081 -0
- package/dist/mcp/embeddingServerManager.js.map +1 -0
- package/dist/mcp/healthMonitor.d.ts +196 -0
- package/dist/mcp/healthMonitor.d.ts.map +1 -0
- package/dist/mcp/healthMonitor.js +685 -0
- package/dist/mcp/healthMonitor.js.map +1 -0
- package/dist/mcp/hotReloadManager.d.ts +101 -0
- package/dist/mcp/hotReloadManager.d.ts.map +1 -0
- package/dist/mcp/hotReloadManager.js +251 -0
- package/dist/mcp/hotReloadManager.js.map +1 -0
- package/dist/mcp/index.d.ts +16 -0
- package/dist/mcp/index.d.ts.map +1 -0
- package/dist/mcp/index.js +22 -0
- package/dist/mcp/index.js.map +1 -0
- package/dist/mcp/mcpProtocolHandler.d.ts +64 -0
- package/dist/mcp/mcpProtocolHandler.d.ts.map +1 -0
- package/dist/mcp/mcpProtocolHandler.js +253 -0
- package/dist/mcp/mcpProtocolHandler.js.map +1 -0
- package/dist/mcp/miniCOTServerManager.d.ts +336 -0
- package/dist/mcp/miniCOTServerManager.d.ts.map +1 -0
- package/dist/mcp/miniCOTServerManager.js +1384 -0
- package/dist/mcp/miniCOTServerManager.js.map +1 -0
- package/dist/mcp/promptExecutor.d.ts +188 -0
- package/dist/mcp/promptExecutor.d.ts.map +1 -0
- package/dist/mcp/promptExecutor.js +469 -0
- package/dist/mcp/promptExecutor.js.map +1 -0
- package/dist/mcp/reloadBroadcast.d.ts +127 -0
- package/dist/mcp/reloadBroadcast.d.ts.map +1 -0
- package/dist/mcp/reloadBroadcast.js +275 -0
- package/dist/mcp/reloadBroadcast.js.map +1 -0
- package/dist/mcp/resilientTransport.d.ts +249 -0
- package/dist/mcp/resilientTransport.d.ts.map +1 -0
- package/dist/mcp/resilientTransport.js +931 -0
- package/dist/mcp/resilientTransport.js.map +1 -0
- package/dist/mcp/samplingHandler.d.ts +129 -0
- package/dist/mcp/samplingHandler.d.ts.map +1 -0
- package/dist/mcp/samplingHandler.js +276 -0
- package/dist/mcp/samplingHandler.js.map +1 -0
- package/dist/mcp/specMemServer.d.ts +305 -0
- package/dist/mcp/specMemServer.d.ts.map +1 -0
- package/dist/mcp/specMemServer.js +2048 -0
- package/dist/mcp/specMemServer.js.map +1 -0
- package/dist/mcp/toolRegistry.d.ts +122 -0
- package/dist/mcp/toolRegistry.d.ts.map +1 -0
- package/dist/mcp/toolRegistry.js +609 -0
- package/dist/mcp/toolRegistry.js.map +1 -0
- package/dist/mcp/tools/embeddingControl.d.ts +114 -0
- package/dist/mcp/tools/embeddingControl.d.ts.map +1 -0
- package/dist/mcp/tools/embeddingControl.js +222 -0
- package/dist/mcp/tools/embeddingControl.js.map +1 -0
- package/dist/mcp/tools/index.d.ts +10 -0
- package/dist/mcp/tools/index.d.ts.map +1 -0
- package/dist/mcp/tools/index.js +17 -0
- package/dist/mcp/tools/index.js.map +1 -0
- package/dist/mcp/tools/teamComms.d.ts +444 -0
- package/dist/mcp/tools/teamComms.d.ts.map +1 -0
- package/dist/mcp/tools/teamComms.js +1953 -0
- package/dist/mcp/tools/teamComms.js.map +1 -0
- package/dist/mcp/triggerSystem.d.ts +129 -0
- package/dist/mcp/triggerSystem.d.ts.map +1 -0
- package/dist/mcp/triggerSystem.js +363 -0
- package/dist/mcp/triggerSystem.js.map +1 -0
- package/dist/mcp/watcherIntegration.d.ts +77 -0
- package/dist/mcp/watcherIntegration.d.ts.map +1 -0
- package/dist/mcp/watcherIntegration.js +428 -0
- package/dist/mcp/watcherIntegration.js.map +1 -0
- package/dist/mcp/watcherToolWrappers.d.ts +89 -0
- package/dist/mcp/watcherToolWrappers.d.ts.map +1 -0
- package/dist/mcp/watcherToolWrappers.js +91 -0
- package/dist/mcp/watcherToolWrappers.js.map +1 -0
- package/dist/memorization/claudeCodeMigration.d.ts +34 -0
- package/dist/memorization/claudeCodeMigration.d.ts.map +1 -0
- package/dist/memorization/claudeCodeMigration.js +210 -0
- package/dist/memorization/claudeCodeMigration.js.map +1 -0
- package/dist/memorization/claudeCodeTracker.d.ts +147 -0
- package/dist/memorization/claudeCodeTracker.d.ts.map +1 -0
- package/dist/memorization/claudeCodeTracker.js +424 -0
- package/dist/memorization/claudeCodeTracker.js.map +1 -0
- package/dist/memorization/codeMemorizer.d.ts +158 -0
- package/dist/memorization/codeMemorizer.d.ts.map +1 -0
- package/dist/memorization/codeMemorizer.js +357 -0
- package/dist/memorization/codeMemorizer.js.map +1 -0
- package/dist/memorization/codeRecall.d.ts +156 -0
- package/dist/memorization/codeRecall.d.ts.map +1 -0
- package/dist/memorization/codeRecall.js +499 -0
- package/dist/memorization/codeRecall.js.map +1 -0
- package/dist/memorization/index.d.ts +55 -0
- package/dist/memorization/index.d.ts.map +1 -0
- package/dist/memorization/index.js +64 -0
- package/dist/memorization/index.js.map +1 -0
- package/dist/memorization/memorizationTools.d.ts +413 -0
- package/dist/memorization/memorizationTools.d.ts.map +1 -0
- package/dist/memorization/memorizationTools.js +513 -0
- package/dist/memorization/memorizationTools.js.map +1 -0
- package/dist/memorization/watcherIntegration.d.ts +100 -0
- package/dist/memorization/watcherIntegration.d.ts.map +1 -0
- package/dist/memorization/watcherIntegration.js +196 -0
- package/dist/memorization/watcherIntegration.js.map +1 -0
- package/dist/memory/humanLikeMemory.d.ts +206 -0
- package/dist/memory/humanLikeMemory.d.ts.map +1 -0
- package/dist/memory/humanLikeMemory.js +603 -0
- package/dist/memory/humanLikeMemory.js.map +1 -0
- package/dist/memory/index.d.ts +22 -0
- package/dist/memory/index.d.ts.map +1 -0
- package/dist/memory/index.js +24 -0
- package/dist/memory/index.js.map +1 -0
- package/dist/memory/memoryEvolutionMigration.d.ts +36 -0
- package/dist/memory/memoryEvolutionMigration.d.ts.map +1 -0
- package/dist/memory/memoryEvolutionMigration.js +371 -0
- package/dist/memory/memoryEvolutionMigration.js.map +1 -0
- package/dist/memory/quadrantSearch.d.ts +221 -0
- package/dist/memory/quadrantSearch.d.ts.map +1 -0
- package/dist/memory/quadrantSearch.js +897 -0
- package/dist/memory/quadrantSearch.js.map +1 -0
- package/dist/middleware/apiVersioning.d.ts +83 -0
- package/dist/middleware/apiVersioning.d.ts.map +1 -0
- package/dist/middleware/apiVersioning.js +152 -0
- package/dist/middleware/apiVersioning.js.map +1 -0
- package/dist/middleware/compression.d.ts +48 -0
- package/dist/middleware/compression.d.ts.map +1 -0
- package/dist/middleware/compression.js +240 -0
- package/dist/middleware/compression.js.map +1 -0
- package/dist/middleware/csrf.d.ts +118 -0
- package/dist/middleware/csrf.d.ts.map +1 -0
- package/dist/middleware/csrf.js +300 -0
- package/dist/middleware/csrf.js.map +1 -0
- package/dist/middleware/index.d.ts +13 -0
- package/dist/middleware/index.d.ts.map +1 -0
- package/dist/middleware/index.js +17 -0
- package/dist/middleware/index.js.map +1 -0
- package/dist/middleware/wsRateLimiter.d.ts +129 -0
- package/dist/middleware/wsRateLimiter.d.ts.map +1 -0
- package/dist/middleware/wsRateLimiter.js +279 -0
- package/dist/middleware/wsRateLimiter.js.map +1 -0
- package/dist/migrations/run.d.ts +2 -0
- package/dist/migrations/run.d.ts.map +1 -0
- package/dist/migrations/run.js +25 -0
- package/dist/migrations/run.js.map +1 -0
- package/dist/migrations/syncDimensions.d.ts +24 -0
- package/dist/migrations/syncDimensions.d.ts.map +1 -0
- package/dist/migrations/syncDimensions.js +140 -0
- package/dist/migrations/syncDimensions.js.map +1 -0
- package/dist/migrations/teamComms.d.ts +16 -0
- package/dist/migrations/teamComms.d.ts.map +1 -0
- package/dist/migrations/teamComms.js +210 -0
- package/dist/migrations/teamComms.js.map +1 -0
- package/dist/openapi/index.d.ts +10 -0
- package/dist/openapi/index.d.ts.map +1 -0
- package/dist/openapi/index.js +10 -0
- package/dist/openapi/index.js.map +1 -0
- package/dist/openapi/spec.d.ts +902 -0
- package/dist/openapi/spec.d.ts.map +1 -0
- package/dist/openapi/spec.js +733 -0
- package/dist/openapi/spec.js.map +1 -0
- package/dist/packages/dependencyHistory.d.ts +113 -0
- package/dist/packages/dependencyHistory.d.ts.map +1 -0
- package/dist/packages/dependencyHistory.js +360 -0
- package/dist/packages/dependencyHistory.js.map +1 -0
- package/dist/packages/index.d.ts +30 -0
- package/dist/packages/index.d.ts.map +1 -0
- package/dist/packages/index.js +65 -0
- package/dist/packages/index.js.map +1 -0
- package/dist/packages/packageTools.d.ts +255 -0
- package/dist/packages/packageTools.d.ts.map +1 -0
- package/dist/packages/packageTools.js +242 -0
- package/dist/packages/packageTools.js.map +1 -0
- package/dist/packages/packageTracker.d.ts +98 -0
- package/dist/packages/packageTracker.d.ts.map +1 -0
- package/dist/packages/packageTracker.js +268 -0
- package/dist/packages/packageTracker.js.map +1 -0
- package/dist/packages/packageWatcher.d.ts +62 -0
- package/dist/packages/packageWatcher.d.ts.map +1 -0
- package/dist/packages/packageWatcher.js +146 -0
- package/dist/packages/packageWatcher.js.map +1 -0
- package/dist/providers/MiniCOTProvider.d.ts +48 -0
- package/dist/providers/MiniCOTProvider.d.ts.map +1 -0
- package/dist/providers/MiniCOTProvider.js +98 -0
- package/dist/providers/MiniCOTProvider.js.map +1 -0
- package/dist/reminders/index.d.ts +5 -0
- package/dist/reminders/index.d.ts.map +1 -0
- package/dist/reminders/index.js +5 -0
- package/dist/reminders/index.js.map +1 -0
- package/dist/reminders/skillReminder.d.ts +131 -0
- package/dist/reminders/skillReminder.d.ts.map +1 -0
- package/dist/reminders/skillReminder.js +386 -0
- package/dist/reminders/skillReminder.js.map +1 -0
- package/dist/search.d.ts +35 -0
- package/dist/search.d.ts.map +1 -0
- package/dist/search.js +574 -0
- package/dist/search.js.map +1 -0
- package/dist/security/localhostOnly.d.ts +36 -0
- package/dist/security/localhostOnly.d.ts.map +1 -0
- package/dist/security/localhostOnly.js +101 -0
- package/dist/security/localhostOnly.js.map +1 -0
- package/dist/services/CameraZoomSearch.d.ts +206 -0
- package/dist/services/CameraZoomSearch.d.ts.map +1 -0
- package/dist/services/CameraZoomSearch.js +669 -0
- package/dist/services/CameraZoomSearch.js.map +1 -0
- package/dist/services/DataFlowPipeline.d.ts +111 -0
- package/dist/services/DataFlowPipeline.d.ts.map +1 -0
- package/dist/services/DataFlowPipeline.js +379 -0
- package/dist/services/DataFlowPipeline.js.map +1 -0
- package/dist/services/DimensionAdapter.d.ts +194 -0
- package/dist/services/DimensionAdapter.d.ts.map +1 -0
- package/dist/services/DimensionAdapter.js +566 -0
- package/dist/services/DimensionAdapter.js.map +1 -0
- package/dist/services/DimensionService.d.ts +252 -0
- package/dist/services/DimensionService.d.ts.map +1 -0
- package/dist/services/DimensionService.js +564 -0
- package/dist/services/DimensionService.js.map +1 -0
- package/dist/services/EmbeddingQueue.d.ts +71 -0
- package/dist/services/EmbeddingQueue.d.ts.map +1 -0
- package/dist/services/EmbeddingQueue.js +258 -0
- package/dist/services/EmbeddingQueue.js.map +1 -0
- package/dist/services/MemoryDrilldown.d.ts +226 -0
- package/dist/services/MemoryDrilldown.d.ts.map +1 -0
- package/dist/services/MemoryDrilldown.js +479 -0
- package/dist/services/MemoryDrilldown.js.map +1 -0
- package/dist/services/MiniCOTScorer.d.ts +140 -0
- package/dist/services/MiniCOTScorer.d.ts.map +1 -0
- package/dist/services/MiniCOTScorer.js +292 -0
- package/dist/services/MiniCOTScorer.js.map +1 -0
- package/dist/services/ProjectContext.d.ts +342 -0
- package/dist/services/ProjectContext.d.ts.map +1 -0
- package/dist/services/ProjectContext.js +667 -0
- package/dist/services/ProjectContext.js.map +1 -0
- package/dist/services/ResponseCompactor.d.ts +135 -0
- package/dist/services/ResponseCompactor.d.ts.map +1 -0
- package/dist/services/ResponseCompactor.js +501 -0
- package/dist/services/ResponseCompactor.js.map +1 -0
- package/dist/services/TeamCommsDbService.d.ts +202 -0
- package/dist/services/TeamCommsDbService.d.ts.map +1 -0
- package/dist/services/TeamCommsDbService.js +526 -0
- package/dist/services/TeamCommsDbService.js.map +1 -0
- package/dist/services/UnifiedPasswordService.d.ts +166 -0
- package/dist/services/UnifiedPasswordService.d.ts.map +1 -0
- package/dist/services/UnifiedPasswordService.js +587 -0
- package/dist/services/UnifiedPasswordService.js.map +1 -0
- package/dist/services/adaptiveSearchConfig.d.ts +64 -0
- package/dist/services/adaptiveSearchConfig.d.ts.map +1 -0
- package/dist/services/adaptiveSearchConfig.js +187 -0
- package/dist/services/adaptiveSearchConfig.js.map +1 -0
- package/dist/skills/index.d.ts +8 -0
- package/dist/skills/index.d.ts.map +1 -0
- package/dist/skills/index.js +8 -0
- package/dist/skills/index.js.map +1 -0
- package/dist/skills/skillScanner.d.ts +203 -0
- package/dist/skills/skillScanner.d.ts.map +1 -0
- package/dist/skills/skillScanner.js +559 -0
- package/dist/skills/skillScanner.js.map +1 -0
- package/dist/skills/skillsResource.d.ts +69 -0
- package/dist/skills/skillsResource.d.ts.map +1 -0
- package/dist/skills/skillsResource.js +257 -0
- package/dist/skills/skillsResource.js.map +1 -0
- package/dist/startup/index.d.ts +9 -0
- package/dist/startup/index.d.ts.map +1 -0
- package/dist/startup/index.js +12 -0
- package/dist/startup/index.js.map +1 -0
- package/dist/startup/startupIndexing.d.ts +80 -0
- package/dist/startup/startupIndexing.d.ts.map +1 -0
- package/dist/startup/startupIndexing.js +463 -0
- package/dist/startup/startupIndexing.js.map +1 -0
- package/dist/startup/validation.d.ts +89 -0
- package/dist/startup/validation.d.ts.map +1 -0
- package/dist/startup/validation.js +590 -0
- package/dist/startup/validation.js.map +1 -0
- package/dist/storage/index.d.ts +4 -0
- package/dist/storage/index.d.ts.map +1 -0
- package/dist/storage/index.js +4 -0
- package/dist/storage/index.js.map +1 -0
- package/dist/storage/overflowManager.d.ts +80 -0
- package/dist/storage/overflowManager.d.ts.map +1 -0
- package/dist/storage/overflowManager.js +317 -0
- package/dist/storage/overflowManager.js.map +1 -0
- package/dist/storage/overflowStorage.d.ts +69 -0
- package/dist/storage/overflowStorage.d.ts.map +1 -0
- package/dist/storage/overflowStorage.js +379 -0
- package/dist/storage/overflowStorage.js.map +1 -0
- package/dist/storage/toonFormat.d.ts +50 -0
- package/dist/storage/toonFormat.d.ts.map +1 -0
- package/dist/storage/toonFormat.js +224 -0
- package/dist/storage/toonFormat.js.map +1 -0
- package/dist/team-members/communication.d.ts +237 -0
- package/dist/team-members/communication.d.ts.map +1 -0
- package/dist/team-members/communication.js +650 -0
- package/dist/team-members/communication.js.map +1 -0
- package/dist/team-members/index.d.ts +14 -0
- package/dist/team-members/index.d.ts.map +1 -0
- package/dist/team-members/index.js +22 -0
- package/dist/team-members/index.js.map +1 -0
- package/dist/team-members/taskOrchestrator.d.ts +224 -0
- package/dist/team-members/taskOrchestrator.d.ts.map +1 -0
- package/dist/team-members/taskOrchestrator.js +574 -0
- package/dist/team-members/taskOrchestrator.js.map +1 -0
- package/dist/team-members/taskTeamMemberLogger.d.ts +157 -0
- package/dist/team-members/taskTeamMemberLogger.d.ts.map +1 -0
- package/dist/team-members/taskTeamMemberLogger.js +478 -0
- package/dist/team-members/taskTeamMemberLogger.js.map +1 -0
- package/dist/team-members/teamCommsService.d.ts +221 -0
- package/dist/team-members/teamCommsService.d.ts.map +1 -0
- package/dist/team-members/teamCommsService.js +628 -0
- package/dist/team-members/teamCommsService.js.map +1 -0
- package/dist/team-members/teamMemberChannels.d.ts +217 -0
- package/dist/team-members/teamMemberChannels.d.ts.map +1 -0
- package/dist/team-members/teamMemberChannels.js +687 -0
- package/dist/team-members/teamMemberChannels.js.map +1 -0
- package/dist/team-members/teamMemberDashboard.d.ts +222 -0
- package/dist/team-members/teamMemberDashboard.d.ts.map +1 -0
- package/dist/team-members/teamMemberDashboard.js +610 -0
- package/dist/team-members/teamMemberDashboard.js.map +1 -0
- package/dist/team-members/teamMemberDeployment.d.ts +60 -0
- package/dist/team-members/teamMemberDeployment.d.ts.map +1 -0
- package/dist/team-members/teamMemberDeployment.js +429 -0
- package/dist/team-members/teamMemberDeployment.js.map +1 -0
- package/dist/team-members/teamMemberDiscovery.d.ts +178 -0
- package/dist/team-members/teamMemberDiscovery.d.ts.map +1 -0
- package/dist/team-members/teamMemberDiscovery.js +446 -0
- package/dist/team-members/teamMemberDiscovery.js.map +1 -0
- package/dist/team-members/teamMemberHistory.d.ts +80 -0
- package/dist/team-members/teamMemberHistory.d.ts.map +1 -0
- package/dist/team-members/teamMemberHistory.js +426 -0
- package/dist/team-members/teamMemberHistory.js.map +1 -0
- package/dist/team-members/teamMemberLimits.d.ts +66 -0
- package/dist/team-members/teamMemberLimits.d.ts.map +1 -0
- package/dist/team-members/teamMemberLimits.js +259 -0
- package/dist/team-members/teamMemberLimits.js.map +1 -0
- package/dist/team-members/teamMemberRegistry.d.ts +199 -0
- package/dist/team-members/teamMemberRegistry.d.ts.map +1 -0
- package/dist/team-members/teamMemberRegistry.js +572 -0
- package/dist/team-members/teamMemberRegistry.js.map +1 -0
- package/dist/team-members/teamMemberTracker.d.ts +148 -0
- package/dist/team-members/teamMemberTracker.d.ts.map +1 -0
- package/dist/team-members/teamMemberTracker.js +828 -0
- package/dist/team-members/teamMemberTracker.js.map +1 -0
- package/dist/team-members/workers/aiWorker.d.ts +53 -0
- package/dist/team-members/workers/aiWorker.d.ts.map +1 -0
- package/dist/team-members/workers/aiWorker.js +322 -0
- package/dist/team-members/workers/aiWorker.js.map +1 -0
- package/dist/team-members/workers/baseWorker.d.ts +101 -0
- package/dist/team-members/workers/baseWorker.d.ts.map +1 -0
- package/dist/team-members/workers/baseWorker.js +179 -0
- package/dist/team-members/workers/baseWorker.js.map +1 -0
- package/dist/team-members/workers/codeReviewWorker.d.ts +3 -0
- package/dist/team-members/workers/codeReviewWorker.d.ts.map +1 -0
- package/dist/team-members/workers/codeReviewWorker.js +144 -0
- package/dist/team-members/workers/codeReviewWorker.js.map +1 -0
- package/dist/team-members/workers/index.d.ts +7 -0
- package/dist/team-members/workers/index.d.ts.map +1 -0
- package/dist/team-members/workers/index.js +7 -0
- package/dist/team-members/workers/index.js.map +1 -0
- package/dist/team-members/workers/repairWorker.d.ts +9 -0
- package/dist/team-members/workers/repairWorker.d.ts.map +1 -0
- package/dist/team-members/workers/repairWorker.js +102 -0
- package/dist/team-members/workers/repairWorker.js.map +1 -0
- package/dist/team-members/workers/sendToTeamMemberB.d.ts +9 -0
- package/dist/team-members/workers/sendToTeamMemberB.d.ts.map +1 -0
- package/dist/team-members/workers/sendToTeamMemberB.js +105 -0
- package/dist/team-members/workers/sendToTeamMemberB.js.map +1 -0
- package/dist/team-members/workers/specmemClient.d.ts +179 -0
- package/dist/team-members/workers/specmemClient.d.ts.map +1 -0
- package/dist/team-members/workers/specmemClient.js +421 -0
- package/dist/team-members/workers/specmemClient.js.map +1 -0
- package/dist/team-members/workers/testCommunication.d.ts +8 -0
- package/dist/team-members/workers/testCommunication.d.ts.map +1 -0
- package/dist/team-members/workers/testCommunication.js +136 -0
- package/dist/team-members/workers/testCommunication.js.map +1 -0
- package/dist/team-members/workers/testCommunicationSuite.d.ts +26 -0
- package/dist/team-members/workers/testCommunicationSuite.d.ts.map +1 -0
- package/dist/team-members/workers/testCommunicationSuite.js +415 -0
- package/dist/team-members/workers/testCommunicationSuite.js.map +1 -0
- package/dist/team-members/workers/testWorker.d.ts +9 -0
- package/dist/team-members/workers/testWorker.d.ts.map +1 -0
- package/dist/team-members/workers/testWorker.js +107 -0
- package/dist/team-members/workers/testWorker.js.map +1 -0
- package/dist/tools/agentDefinitions.d.ts +30 -0
- package/dist/tools/agentDefinitions.d.ts.map +1 -0
- package/dist/tools/agentDefinitions.js +166 -0
- package/dist/tools/agentDefinitions.js.map +1 -0
- package/dist/tools/goofy/checkSyncStatus.d.ts +68 -0
- package/dist/tools/goofy/checkSyncStatus.d.ts.map +1 -0
- package/dist/tools/goofy/checkSyncStatus.js +112 -0
- package/dist/tools/goofy/checkSyncStatus.js.map +1 -0
- package/dist/tools/goofy/codeMemoryLink.d.ts +82 -0
- package/dist/tools/goofy/codeMemoryLink.d.ts.map +1 -0
- package/dist/tools/goofy/codeMemoryLink.js +212 -0
- package/dist/tools/goofy/codeMemoryLink.js.map +1 -0
- package/dist/tools/goofy/compareInstanceMemory.d.ts +97 -0
- package/dist/tools/goofy/compareInstanceMemory.d.ts.map +1 -0
- package/dist/tools/goofy/compareInstanceMemory.js +218 -0
- package/dist/tools/goofy/compareInstanceMemory.js.map +1 -0
- package/dist/tools/goofy/createReasoningChain.d.ts +135 -0
- package/dist/tools/goofy/createReasoningChain.d.ts.map +1 -0
- package/dist/tools/goofy/createReasoningChain.js +257 -0
- package/dist/tools/goofy/createReasoningChain.js.map +1 -0
- package/dist/tools/goofy/deployTeamMember.d.ts +63 -0
- package/dist/tools/goofy/deployTeamMember.d.ts.map +1 -0
- package/dist/tools/goofy/deployTeamMember.js +103 -0
- package/dist/tools/goofy/deployTeamMember.js.map +1 -0
- package/dist/tools/goofy/drillDown.d.ts +143 -0
- package/dist/tools/goofy/drillDown.d.ts.map +1 -0
- package/dist/tools/goofy/drillDown.js +288 -0
- package/dist/tools/goofy/drillDown.js.map +1 -0
- package/dist/tools/goofy/extractClaudeSessions.d.ts +90 -0
- package/dist/tools/goofy/extractClaudeSessions.d.ts.map +1 -0
- package/dist/tools/goofy/extractClaudeSessions.js +277 -0
- package/dist/tools/goofy/extractClaudeSessions.js.map +1 -0
- package/dist/tools/goofy/extractContextRestorations.d.ts +70 -0
- package/dist/tools/goofy/extractContextRestorations.d.ts.map +1 -0
- package/dist/tools/goofy/extractContextRestorations.js +100 -0
- package/dist/tools/goofy/extractContextRestorations.js.map +1 -0
- package/dist/tools/goofy/findCodePointers.d.ts +364 -0
- package/dist/tools/goofy/findCodePointers.d.ts.map +1 -0
- package/dist/tools/goofy/findCodePointers.js +1764 -0
- package/dist/tools/goofy/findCodePointers.js.map +1 -0
- package/dist/tools/goofy/findMemoryGallery.d.ts +40 -0
- package/dist/tools/goofy/findMemoryGallery.d.ts.map +1 -0
- package/dist/tools/goofy/findMemoryGallery.js +66 -0
- package/dist/tools/goofy/findMemoryGallery.js.map +1 -0
- package/dist/tools/goofy/findWhatISaid.d.ts +300 -0
- package/dist/tools/goofy/findWhatISaid.d.ts.map +1 -0
- package/dist/tools/goofy/findWhatISaid.js +2547 -0
- package/dist/tools/goofy/findWhatISaid.js.map +1 -0
- package/dist/tools/goofy/forceResync.d.ts +57 -0
- package/dist/tools/goofy/forceResync.d.ts.map +1 -0
- package/dist/tools/goofy/forceResync.js +100 -0
- package/dist/tools/goofy/forceResync.js.map +1 -0
- package/dist/tools/goofy/getActiveTeamMembers.d.ts +48 -0
- package/dist/tools/goofy/getActiveTeamMembers.d.ts.map +1 -0
- package/dist/tools/goofy/getActiveTeamMembers.js +136 -0
- package/dist/tools/goofy/getActiveTeamMembers.js.map +1 -0
- package/dist/tools/goofy/getMemoryFull.d.ts +34 -0
- package/dist/tools/goofy/getMemoryFull.d.ts.map +1 -0
- package/dist/tools/goofy/getMemoryFull.js +58 -0
- package/dist/tools/goofy/getMemoryFull.js.map +1 -0
- package/dist/tools/goofy/getSessionWatcherStatus.d.ts +43 -0
- package/dist/tools/goofy/getSessionWatcherStatus.d.ts.map +1 -0
- package/dist/tools/goofy/getSessionWatcherStatus.js +92 -0
- package/dist/tools/goofy/getSessionWatcherStatus.js.map +1 -0
- package/dist/tools/goofy/getTeamMemberOutput.d.ts +35 -0
- package/dist/tools/goofy/getTeamMemberOutput.d.ts.map +1 -0
- package/dist/tools/goofy/getTeamMemberOutput.js +62 -0
- package/dist/tools/goofy/getTeamMemberOutput.js.map +1 -0
- package/dist/tools/goofy/getTeamMemberScreen.d.ts +28 -0
- package/dist/tools/goofy/getTeamMemberScreen.d.ts.map +1 -0
- package/dist/tools/goofy/getTeamMemberScreen.js +59 -0
- package/dist/tools/goofy/getTeamMemberScreen.js.map +1 -0
- package/dist/tools/goofy/getTeamMemberStatus.d.ts +33 -0
- package/dist/tools/goofy/getTeamMemberStatus.d.ts.map +1 -0
- package/dist/tools/goofy/getTeamMemberStatus.js +56 -0
- package/dist/tools/goofy/getTeamMemberStatus.js.map +1 -0
- package/dist/tools/goofy/index.d.ts +39 -0
- package/dist/tools/goofy/index.d.ts.map +1 -0
- package/dist/tools/goofy/index.js +51 -0
- package/dist/tools/goofy/index.js.map +1 -0
- package/dist/tools/goofy/interveneTeamMember.d.ts +33 -0
- package/dist/tools/goofy/interveneTeamMember.d.ts.map +1 -0
- package/dist/tools/goofy/interveneTeamMember.js +69 -0
- package/dist/tools/goofy/interveneTeamMember.js.map +1 -0
- package/dist/tools/goofy/killDeployedTeamMember.d.ts +29 -0
- package/dist/tools/goofy/killDeployedTeamMember.d.ts.map +1 -0
- package/dist/tools/goofy/killDeployedTeamMember.js +56 -0
- package/dist/tools/goofy/killDeployedTeamMember.js.map +1 -0
- package/dist/tools/goofy/linkTheVibes.d.ts +125 -0
- package/dist/tools/goofy/linkTheVibes.d.ts.map +1 -0
- package/dist/tools/goofy/linkTheVibes.js +354 -0
- package/dist/tools/goofy/linkTheVibes.js.map +1 -0
- package/dist/tools/goofy/listDeployedTeamMembers.d.ts +26 -0
- package/dist/tools/goofy/listDeployedTeamMembers.d.ts.map +1 -0
- package/dist/tools/goofy/listDeployedTeamMembers.js +52 -0
- package/dist/tools/goofy/listDeployedTeamMembers.js.map +1 -0
- package/dist/tools/goofy/listenForMessages.d.ts +56 -0
- package/dist/tools/goofy/listenForMessages.d.ts.map +1 -0
- package/dist/tools/goofy/listenForMessages.js +122 -0
- package/dist/tools/goofy/listenForMessages.js.map +1 -0
- package/dist/tools/goofy/memoryHealthCheck.d.ts +159 -0
- package/dist/tools/goofy/memoryHealthCheck.d.ts.map +1 -0
- package/dist/tools/goofy/memoryHealthCheck.js +443 -0
- package/dist/tools/goofy/memoryHealthCheck.js.map +1 -0
- package/dist/tools/goofy/rememberThisShit.d.ts +103 -0
- package/dist/tools/goofy/rememberThisShit.d.ts.map +1 -0
- package/dist/tools/goofy/rememberThisShit.js +291 -0
- package/dist/tools/goofy/rememberThisShit.js.map +1 -0
- package/dist/tools/goofy/sayToTeamMember.d.ts +55 -0
- package/dist/tools/goofy/sayToTeamMember.d.ts.map +1 -0
- package/dist/tools/goofy/sayToTeamMember.js +116 -0
- package/dist/tools/goofy/sayToTeamMember.js.map +1 -0
- package/dist/tools/goofy/selfMessage.d.ts +54 -0
- package/dist/tools/goofy/selfMessage.d.ts.map +1 -0
- package/dist/tools/goofy/selfMessage.js +111 -0
- package/dist/tools/goofy/selfMessage.js.map +1 -0
- package/dist/tools/goofy/sendHeartbeat.d.ts +53 -0
- package/dist/tools/goofy/sendHeartbeat.d.ts.map +1 -0
- package/dist/tools/goofy/sendHeartbeat.js +119 -0
- package/dist/tools/goofy/sendHeartbeat.js.map +1 -0
- package/dist/tools/goofy/showMeTheStats.d.ts +216 -0
- package/dist/tools/goofy/showMeTheStats.d.ts.map +1 -0
- package/dist/tools/goofy/showMeTheStats.js +535 -0
- package/dist/tools/goofy/showMeTheStats.js.map +1 -0
- package/dist/tools/goofy/smartRecall.d.ts +136 -0
- package/dist/tools/goofy/smartRecall.d.ts.map +1 -0
- package/dist/tools/goofy/smartRecall.js +286 -0
- package/dist/tools/goofy/smartRecall.js.map +1 -0
- package/dist/tools/goofy/smartSearch.d.ts +64 -0
- package/dist/tools/goofy/smartSearch.d.ts.map +1 -0
- package/dist/tools/goofy/smartSearch.js +89 -0
- package/dist/tools/goofy/smartSearch.js.map +1 -0
- package/dist/tools/goofy/smushMemoriesTogether.d.ts +128 -0
- package/dist/tools/goofy/smushMemoriesTogether.d.ts.map +1 -0
- package/dist/tools/goofy/smushMemoriesTogether.js +536 -0
- package/dist/tools/goofy/smushMemoriesTogether.js.map +1 -0
- package/dist/tools/goofy/spatialSearch.d.ts +198 -0
- package/dist/tools/goofy/spatialSearch.d.ts.map +1 -0
- package/dist/tools/goofy/spatialSearch.js +551 -0
- package/dist/tools/goofy/spatialSearch.js.map +1 -0
- package/dist/tools/goofy/spawnResearchTeamMember.d.ts +104 -0
- package/dist/tools/goofy/spawnResearchTeamMember.d.ts.map +1 -0
- package/dist/tools/goofy/spawnResearchTeamMember.js +290 -0
- package/dist/tools/goofy/spawnResearchTeamMember.js.map +1 -0
- package/dist/tools/goofy/spawnResearchTeamMemberTool.d.ts +121 -0
- package/dist/tools/goofy/spawnResearchTeamMemberTool.d.ts.map +1 -0
- package/dist/tools/goofy/spawnResearchTeamMemberTool.js +215 -0
- package/dist/tools/goofy/spawnResearchTeamMemberTool.js.map +1 -0
- package/dist/tools/goofy/startWatchingTheFiles.d.ts +81 -0
- package/dist/tools/goofy/startWatchingTheFiles.d.ts.map +1 -0
- package/dist/tools/goofy/startWatchingTheFiles.js +161 -0
- package/dist/tools/goofy/startWatchingTheFiles.js.map +1 -0
- package/dist/tools/goofy/stopWatchingTheFiles.d.ts +50 -0
- package/dist/tools/goofy/stopWatchingTheFiles.d.ts.map +1 -0
- package/dist/tools/goofy/stopWatchingTheFiles.js +81 -0
- package/dist/tools/goofy/stopWatchingTheFiles.js.map +1 -0
- package/dist/tools/goofy/whatDidIMean.d.ts +113 -0
- package/dist/tools/goofy/whatDidIMean.d.ts.map +1 -0
- package/dist/tools/goofy/whatDidIMean.js +401 -0
- package/dist/tools/goofy/whatDidIMean.js.map +1 -0
- package/dist/tools/goofy/yeahNahDeleteThat.d.ts +109 -0
- package/dist/tools/goofy/yeahNahDeleteThat.d.ts.map +1 -0
- package/dist/tools/goofy/yeahNahDeleteThat.js +319 -0
- package/dist/tools/goofy/yeahNahDeleteThat.js.map +1 -0
- package/dist/tools/index.d.ts +9 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +9 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/teamMemberDeployer.d.ts +117 -0
- package/dist/tools/teamMemberDeployer.d.ts.map +1 -0
- package/dist/tools/teamMemberDeployer.js +613 -0
- package/dist/tools/teamMemberDeployer.js.map +1 -0
- package/dist/trace/index.d.ts +14 -0
- package/dist/trace/index.d.ts.map +1 -0
- package/dist/trace/index.js +16 -0
- package/dist/trace/index.js.map +1 -0
- package/dist/trace/tools/analyzeImpact.d.ts +90 -0
- package/dist/trace/tools/analyzeImpact.d.ts.map +1 -0
- package/dist/trace/tools/analyzeImpact.js +240 -0
- package/dist/trace/tools/analyzeImpact.js.map +1 -0
- package/dist/trace/tools/exploreDependencies.d.ts +81 -0
- package/dist/trace/tools/exploreDependencies.d.ts.map +1 -0
- package/dist/trace/tools/exploreDependencies.js +161 -0
- package/dist/trace/tools/exploreDependencies.js.map +1 -0
- package/dist/trace/tools/findSimilarBugs.d.ts +112 -0
- package/dist/trace/tools/findSimilarBugs.d.ts.map +1 -0
- package/dist/trace/tools/findSimilarBugs.js +216 -0
- package/dist/trace/tools/findSimilarBugs.js.map +1 -0
- package/dist/trace/tools/index.d.ts +22 -0
- package/dist/trace/tools/index.d.ts.map +1 -0
- package/dist/trace/tools/index.js +39 -0
- package/dist/trace/tools/index.js.map +1 -0
- package/dist/trace/tools/smartExplore.d.ts +126 -0
- package/dist/trace/tools/smartExplore.d.ts.map +1 -0
- package/dist/trace/tools/smartExplore.js +303 -0
- package/dist/trace/tools/smartExplore.js.map +1 -0
- package/dist/trace/tools/traceError.d.ts +101 -0
- package/dist/trace/tools/traceError.d.ts.map +1 -0
- package/dist/trace/tools/traceError.js +175 -0
- package/dist/trace/tools/traceError.js.map +1 -0
- package/dist/trace/traceExploreSystem.d.ts +271 -0
- package/dist/trace/traceExploreSystem.d.ts.map +1 -0
- package/dist/trace/traceExploreSystem.js +789 -0
- package/dist/trace/traceExploreSystem.js.map +1 -0
- package/dist/types/index.d.ts +421 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +118 -0
- package/dist/types/index.js.map +1 -0
- package/dist/utils/circuitBreaker.d.ts +195 -0
- package/dist/utils/circuitBreaker.d.ts.map +1 -0
- package/dist/utils/circuitBreaker.js +374 -0
- package/dist/utils/circuitBreaker.js.map +1 -0
- package/dist/utils/cleanupHandler.d.ts +108 -0
- package/dist/utils/cleanupHandler.d.ts.map +1 -0
- package/dist/utils/cleanupHandler.js +203 -0
- package/dist/utils/cleanupHandler.js.map +1 -0
- package/dist/utils/compactXmlResponse.d.ts +60 -0
- package/dist/utils/compactXmlResponse.d.ts.map +1 -0
- package/dist/utils/compactXmlResponse.js +209 -0
- package/dist/utils/compactXmlResponse.js.map +1 -0
- package/dist/utils/cotBroadcast.d.ts +56 -0
- package/dist/utils/cotBroadcast.d.ts.map +1 -0
- package/dist/utils/cotBroadcast.js +157 -0
- package/dist/utils/cotBroadcast.js.map +1 -0
- package/dist/utils/debugLogger.d.ts +95 -0
- package/dist/utils/debugLogger.d.ts.map +1 -0
- package/dist/utils/debugLogger.js +610 -0
- package/dist/utils/debugLogger.js.map +1 -0
- package/dist/utils/fileProcessingQueue.d.ts +259 -0
- package/dist/utils/fileProcessingQueue.d.ts.map +1 -0
- package/dist/utils/fileProcessingQueue.js +714 -0
- package/dist/utils/fileProcessingQueue.js.map +1 -0
- package/dist/utils/humanReadableOutput.d.ts +124 -0
- package/dist/utils/humanReadableOutput.d.ts.map +1 -0
- package/dist/utils/humanReadableOutput.js +340 -0
- package/dist/utils/humanReadableOutput.js.map +1 -0
- package/dist/utils/index.d.ts +32 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +71 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/instanceManager.d.ts +530 -0
- package/dist/utils/instanceManager.d.ts.map +1 -0
- package/dist/utils/instanceManager.js +1784 -0
- package/dist/utils/instanceManager.js.map +1 -0
- package/dist/utils/logger.d.ts +6 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +49 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/utils/mapCleanup.d.ts +58 -0
- package/dist/utils/mapCleanup.d.ts.map +1 -0
- package/dist/utils/mapCleanup.js +150 -0
- package/dist/utils/mapCleanup.js.map +1 -0
- package/dist/utils/memoryManager.d.ts +349 -0
- package/dist/utils/memoryManager.d.ts.map +1 -0
- package/dist/utils/memoryManager.js +799 -0
- package/dist/utils/memoryManager.js.map +1 -0
- package/dist/utils/metrics.d.ts +160 -0
- package/dist/utils/metrics.d.ts.map +1 -0
- package/dist/utils/metrics.js +558 -0
- package/dist/utils/metrics.js.map +1 -0
- package/dist/utils/pathValidator.d.ts +96 -0
- package/dist/utils/pathValidator.d.ts.map +1 -0
- package/dist/utils/pathValidator.js +320 -0
- package/dist/utils/pathValidator.js.map +1 -0
- package/dist/utils/portAllocator.d.ts +296 -0
- package/dist/utils/portAllocator.d.ts.map +1 -0
- package/dist/utils/portAllocator.js +768 -0
- package/dist/utils/portAllocator.js.map +1 -0
- package/dist/utils/portUtils.d.ts +97 -0
- package/dist/utils/portUtils.d.ts.map +1 -0
- package/dist/utils/portUtils.js +285 -0
- package/dist/utils/portUtils.js.map +1 -0
- package/dist/utils/postgresAutoSetup.d.ts +55 -0
- package/dist/utils/postgresAutoSetup.d.ts.map +1 -0
- package/dist/utils/postgresAutoSetup.js +406 -0
- package/dist/utils/postgresAutoSetup.js.map +1 -0
- package/dist/utils/processHealthCheck.d.ts +61 -0
- package/dist/utils/processHealthCheck.d.ts.map +1 -0
- package/dist/utils/processHealthCheck.js +313 -0
- package/dist/utils/processHealthCheck.js.map +1 -0
- package/dist/utils/progressReporter.d.ts +151 -0
- package/dist/utils/progressReporter.d.ts.map +1 -0
- package/dist/utils/progressReporter.js +345 -0
- package/dist/utils/progressReporter.js.map +1 -0
- package/dist/utils/projectEnv.d.ts +73 -0
- package/dist/utils/projectEnv.d.ts.map +1 -0
- package/dist/utils/projectEnv.js +137 -0
- package/dist/utils/projectEnv.js.map +1 -0
- package/dist/utils/qoms.d.ts +122 -0
- package/dist/utils/qoms.d.ts.map +1 -0
- package/dist/utils/qoms.js +650 -0
- package/dist/utils/qoms.js.map +1 -0
- package/dist/utils/retryHelper.d.ts +122 -0
- package/dist/utils/retryHelper.d.ts.map +1 -0
- package/dist/utils/retryHelper.js +272 -0
- package/dist/utils/retryHelper.js.map +1 -0
- package/dist/utils/safeProcessTermination.d.ts +206 -0
- package/dist/utils/safeProcessTermination.d.ts.map +1 -0
- package/dist/utils/safeProcessTermination.js +552 -0
- package/dist/utils/safeProcessTermination.js.map +1 -0
- package/dist/utils/sessionInjector.d.ts +68 -0
- package/dist/utils/sessionInjector.d.ts.map +1 -0
- package/dist/utils/sessionInjector.js +189 -0
- package/dist/utils/sessionInjector.js.map +1 -0
- package/dist/utils/statsCache.d.ts +134 -0
- package/dist/utils/statsCache.d.ts.map +1 -0
- package/dist/utils/statsCache.js +285 -0
- package/dist/utils/statsCache.js.map +1 -0
- package/dist/utils/timeoutMiddleware.d.ts +81 -0
- package/dist/utils/timeoutMiddleware.d.ts.map +1 -0
- package/dist/utils/timeoutMiddleware.js +155 -0
- package/dist/utils/timeoutMiddleware.js.map +1 -0
- package/dist/utils/timerRegistry.d.ts +91 -0
- package/dist/utils/timerRegistry.d.ts.map +1 -0
- package/dist/utils/timerRegistry.js +187 -0
- package/dist/utils/timerRegistry.js.map +1 -0
- package/dist/utils/tokenCompressor.d.ts +332 -0
- package/dist/utils/tokenCompressor.d.ts.map +1 -0
- package/dist/utils/tokenCompressor.js +1306 -0
- package/dist/utils/tokenCompressor.js.map +1 -0
- package/dist/utils/tracing.d.ts +236 -0
- package/dist/utils/tracing.d.ts.map +1 -0
- package/dist/utils/tracing.js +378 -0
- package/dist/utils/tracing.js.map +1 -0
- package/dist/watcher/changeHandler.d.ts +123 -0
- package/dist/watcher/changeHandler.d.ts.map +1 -0
- package/dist/watcher/changeHandler.js +623 -0
- package/dist/watcher/changeHandler.js.map +1 -0
- package/dist/watcher/changeQueue.d.ts +133 -0
- package/dist/watcher/changeQueue.d.ts.map +1 -0
- package/dist/watcher/changeQueue.js +355 -0
- package/dist/watcher/changeQueue.js.map +1 -0
- package/dist/watcher/fileWatcher.d.ts +121 -0
- package/dist/watcher/fileWatcher.d.ts.map +1 -0
- package/dist/watcher/fileWatcher.js +531 -0
- package/dist/watcher/fileWatcher.js.map +1 -0
- package/dist/watcher/index.d.ts +94 -0
- package/dist/watcher/index.d.ts.map +1 -0
- package/dist/watcher/index.js +235 -0
- package/dist/watcher/index.js.map +1 -0
- package/dist/watcher/syncChecker.d.ts +93 -0
- package/dist/watcher/syncChecker.d.ts.map +1 -0
- package/dist/watcher/syncChecker.js +401 -0
- package/dist/watcher/syncChecker.js.map +1 -0
- package/dist/watcher/tsCompiler.d.ts +88 -0
- package/dist/watcher/tsCompiler.d.ts.map +1 -0
- package/dist/watcher/tsCompiler.js +212 -0
- package/dist/watcher/tsCompiler.js.map +1 -0
- package/embedding-sandbox/Dockerfile +77 -0
- package/embedding-sandbox/Dockerfile.frankenstein +91 -0
- package/embedding-sandbox/README.md +193 -0
- package/embedding-sandbox/__pycache__/frankenstein-embeddings.cpython-312.pyc +0 -0
- package/embedding-sandbox/__pycache__/frankenstein-embeddings.cpython-313.pyc +0 -0
- package/embedding-sandbox/__pycache__/qqms_v2.cpython-312.pyc +0 -0
- package/embedding-sandbox/__pycache__/qqms_v2.cpython-313.pyc +0 -0
- package/embedding-sandbox/add_js_docs.py +684 -0
- package/embedding-sandbox/build_docs_db.py +239 -0
- package/embedding-sandbox/client.cjs +376 -0
- package/embedding-sandbox/client.ts +913 -0
- package/embedding-sandbox/deploy-frankenstein.sh +240 -0
- package/embedding-sandbox/docker-compose.yml +60 -0
- package/embedding-sandbox/docker-manager.py +325 -0
- package/embedding-sandbox/docs/python_docs.db +0 -0
- package/embedding-sandbox/download-model.mjs +79 -0
- package/embedding-sandbox/download-model.py +28 -0
- package/embedding-sandbox/embedding-supervisor.sh +164 -0
- package/embedding-sandbox/frankenstein-embeddings.py +3940 -0
- package/embedding-sandbox/manage-services.sh +354 -0
- package/embedding-sandbox/overflow_queue.py +345 -0
- package/embedding-sandbox/package.json +17 -0
- package/embedding-sandbox/project_isolation.py +292 -0
- package/embedding-sandbox/qqms_v2.py +967 -0
- package/embedding-sandbox/ram-manager.sh +311 -0
- package/embedding-sandbox/requirements-frankenstein.txt +7 -0
- package/embedding-sandbox/run_js_docs.py +59 -0
- package/embedding-sandbox/seed_docs.py +885 -0
- package/embedding-sandbox/server-batch.mjs +228 -0
- package/embedding-sandbox/server.mjs +389 -0
- package/embedding-sandbox/specmem/sockets/claude-input-state.json +1 -0
- package/embedding-sandbox/specmem/sockets/embedding-death-reason.txt +3 -0
- package/embedding-sandbox/specmem/sockets/seen-sessions.json +1 -0
- package/embedding-sandbox/specmem/sockets/session-start.lock +1 -0
- package/embedding-sandbox/specmem/sockets/session-stops.log +7 -0
- package/embedding-sandbox/start-frankenstein-throttled.sh +98 -0
- package/embedding-sandbox/start-on-demand.sh +116 -0
- package/embedding-sandbox/start-sandbox.sh +237 -0
- package/embedding-sandbox/start-supervised.sh +11 -0
- package/embedding-sandbox/stop-sandbox.sh +51 -0
- package/embedding-sandbox/test-socket.mjs +61 -0
- package/embedding-sandbox/warm-start.sh +353 -0
- package/embedding-sandbox/warm_start_feeder.py +660 -0
- package/legal/README.md +31 -0
- package/legal/anthropic-privacy-center-screenshot-2026-01-30.png +0 -0
- package/legal/anthropic-tos-screenshot-2026-01-30.png +0 -0
- package/lib/codebase-bridge.cjs +308 -0
- package/package.json +136 -0
- package/plugins/specmem-agents/agents/bug-hunter.md +79 -0
- package/plugins/specmem-agents/agents/memory-explorer.md +57 -0
- package/plugins/specmem-agents/agents/team-coordinator.md +82 -0
- package/scripts/auto-updater.cjs +399 -0
- package/scripts/backfill-code-definition-embeddings.ts +440 -0
- package/scripts/backfill-code-embeddings.ts +206 -0
- package/scripts/capture-tos-screenshots.cjs +94 -0
- package/scripts/check-global-install.cjs +67 -0
- package/scripts/cleanup-embedding-servers.sh +25 -0
- package/scripts/dashboard-standalone.sh +369 -0
- package/scripts/deploy-hooks.cjs +1451 -0
- package/scripts/deploy.sh +106 -0
- package/scripts/docker-project-down.sh +83 -0
- package/scripts/docker-project-list.sh +40 -0
- package/scripts/docker-project-up.sh +79 -0
- package/scripts/fast-backfill-embeddings.ts +173 -0
- package/scripts/fast-batch-embedder.cjs +334 -0
- package/scripts/first-run-model-setup.cjs +849 -0
- package/scripts/global-postinstall.cjs +1957 -0
- package/scripts/index-codebase.js +72 -0
- package/scripts/migrate-fix-embeddings.py +110 -0
- package/scripts/migrate-to-project-schemas.ts +525 -0
- package/scripts/optimize-embedding-model.py +324 -0
- package/scripts/optimize-instructions.cjs +530 -0
- package/scripts/pack-docker-images.sh +68 -0
- package/scripts/pack-for-testing.sh +130 -0
- package/scripts/postinstall.cjs +54 -0
- package/scripts/project-env.sh +51 -0
- package/scripts/reset-db.sh +30 -0
- package/scripts/run-indexer.ts +69 -0
- package/scripts/run-migrations.js +47 -0
- package/scripts/setup-db.sh +34 -0
- package/scripts/setup-minimal-schema.sql +143 -0
- package/scripts/skills/code-review.md +44 -0
- package/scripts/skills/debugging.md +56 -0
- package/scripts/skills/specmem-deployteam.md +239 -0
- package/scripts/skills/teammemberskills/EFFICIENT_GREP.md +171 -0
- package/scripts/skills/teammemberskills/task-planning.md +67 -0
- package/scripts/specmem/sockets/session-start.lock +1 -0
- package/scripts/specmem/sockets/session-stops.log +1 -0
- package/scripts/specmem-health.sh +382 -0
- package/scripts/specmem-init.cjs +6935 -0
- package/scripts/strip-debug-logs.cjs +43 -0
- package/scripts/test-mcp-standalone.sh +365 -0
- package/scripts/test-optimized-models.py +166 -0
- package/scripts/verify-embedding-fix.sh +148 -0
- package/skills/code-review.md +44 -0
- package/skills/debugging.md +56 -0
- package/skills/specmem-deployteam.md +239 -0
- package/skills/teammemberskills/EFFICIENT_GREP.md +171 -0
- package/skills/teammemberskills/task-planning.md +67 -0
- package/specmem-health.cjs +522 -0
- package/specmem.env +216 -0
|
@@ -0,0 +1,1055 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// ============================================================================
|
|
4
|
+
// ANSI RENDERER - ANSI-aware text rendering with proper wrapping & truncation
|
|
5
|
+
// ============================================================================
|
|
6
|
+
//
|
|
7
|
+
// Provides AnsiString and AnsiRenderer classes for handling text that contains
|
|
8
|
+
// ANSI escape sequences. All width calculations exclude ANSI bytes, and all
|
|
9
|
+
// truncation/wrapping operations preserve ANSI state across line boundaries.
|
|
10
|
+
//
|
|
11
|
+
// Usage:
|
|
12
|
+
// const { AnsiString, AnsiRenderer } = require('./AnsiRenderer.cjs');
|
|
13
|
+
// const s = new AnsiString('\x1b[36mHello World\x1b[0m');
|
|
14
|
+
// console.log(s.visibleLength); // 11
|
|
15
|
+
// const lines = AnsiRenderer.renderInBounds(
|
|
16
|
+
// ['\x1b[1mSome long colored text\x1b[0m'],
|
|
17
|
+
// 20, 5, { wrapMode: 'word' }
|
|
18
|
+
// );
|
|
19
|
+
//
|
|
20
|
+
// NO external dependencies. CommonJS module.
|
|
21
|
+
// ============================================================================
|
|
22
|
+
|
|
23
|
+
// ---------------------------------------------------------------------------
|
|
24
|
+
// Constants
|
|
25
|
+
// ---------------------------------------------------------------------------
|
|
26
|
+
|
|
27
|
+
// Regex matching a single ANSI escape sequence (CSI sequences)
|
|
28
|
+
// Covers: SGR (\x1b[...m), erase (\x1b[K, \x1b[2K), cursor movement, etc.
|
|
29
|
+
const ANSI_RE = /\x1b\[[0-9;]*[A-Za-z]/g;
|
|
30
|
+
|
|
31
|
+
// SGR-only sequences (Select Graphic Rendition) - the ones that set colors/styles
|
|
32
|
+
const SGR_RE = /^\x1b\[([0-9;]*)m$/;
|
|
33
|
+
|
|
34
|
+
// Non-SGR CSI sequences (cursor movement, erase, etc.) - we strip these
|
|
35
|
+
const NON_SGR_CSI_RE = /^\x1b\[[0-9;]*[A-LN-Za-ln-z]$/;
|
|
36
|
+
|
|
37
|
+
// Reset sequence
|
|
38
|
+
const RESET = '\x1b[0m';
|
|
39
|
+
|
|
40
|
+
// ---------------------------------------------------------------------------
|
|
41
|
+
// Character width utilities
|
|
42
|
+
// ---------------------------------------------------------------------------
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Determine the display width of a single Unicode code point.
|
|
46
|
+
* CJK ideographs and certain other characters occupy 2 columns.
|
|
47
|
+
* Control characters and combining marks occupy 0 columns.
|
|
48
|
+
*
|
|
49
|
+
* @param {number} code - Unicode code point
|
|
50
|
+
* @returns {number} 0, 1, or 2
|
|
51
|
+
*/
|
|
52
|
+
function charWidth(code) {
|
|
53
|
+
// Control chars
|
|
54
|
+
if (code < 0x20 || (code >= 0x7F && code < 0xA0)) return 0;
|
|
55
|
+
|
|
56
|
+
// Combining marks (selected common ranges)
|
|
57
|
+
if (
|
|
58
|
+
(code >= 0x0300 && code <= 0x036F) || // Combining Diacritical Marks
|
|
59
|
+
(code >= 0x1AB0 && code <= 0x1AFF) || // Combining Diacritical Marks Extended
|
|
60
|
+
(code >= 0x1DC0 && code <= 0x1DFF) || // Combining Diacritical Marks Supplement
|
|
61
|
+
(code >= 0x20D0 && code <= 0x20FF) || // Combining Diacritical Marks for Symbols
|
|
62
|
+
(code >= 0xFE00 && code <= 0xFE0F) || // Variation Selectors
|
|
63
|
+
(code >= 0xFE20 && code <= 0xFE2F) || // Combining Half Marks
|
|
64
|
+
(code >= 0xE0100 && code <= 0xE01EF) // Variation Selectors Supplement
|
|
65
|
+
) {
|
|
66
|
+
return 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// Zero-width characters
|
|
70
|
+
if (
|
|
71
|
+
code === 0x200B || // ZERO WIDTH SPACE
|
|
72
|
+
code === 0x200C || // ZERO WIDTH NON-JOINER
|
|
73
|
+
code === 0x200D || // ZERO WIDTH JOINER
|
|
74
|
+
code === 0x2060 || // WORD JOINER
|
|
75
|
+
code === 0xFEFF // ZERO WIDTH NO-BREAK SPACE (BOM)
|
|
76
|
+
) {
|
|
77
|
+
return 0;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// Wide characters: CJK, Hangul, and certain symbol ranges
|
|
81
|
+
if (
|
|
82
|
+
(code >= 0x1100 && code <= 0x115F) || // Hangul Jamo
|
|
83
|
+
(code >= 0x2E80 && code <= 0x303E) || // CJK Radicals, Kangxi, CJK Symbols
|
|
84
|
+
(code >= 0x3041 && code <= 0x33BF) || // Hiragana, Katakana, Bopomofo, CJK Compat
|
|
85
|
+
(code >= 0x3400 && code <= 0x4DBF) || // CJK Unified Ideographs Extension A
|
|
86
|
+
(code >= 0x4E00 && code <= 0xA4CF) || // CJK Unified Ideographs, Yi
|
|
87
|
+
(code >= 0xA960 && code <= 0xA97C) || // Hangul Jamo Extended-A
|
|
88
|
+
(code >= 0xAC00 && code <= 0xD7A3) || // Hangul Syllables
|
|
89
|
+
(code >= 0xF900 && code <= 0xFAFF) || // CJK Compatibility Ideographs
|
|
90
|
+
(code >= 0xFE10 && code <= 0xFE19) || // Vertical forms
|
|
91
|
+
(code >= 0xFE30 && code <= 0xFE6F) || // CJK Compatibility Forms
|
|
92
|
+
(code >= 0xFF01 && code <= 0xFF60) || // Fullwidth Forms
|
|
93
|
+
(code >= 0xFFE0 && code <= 0xFFE6) || // Fullwidth Sign
|
|
94
|
+
(code >= 0x1F300 && code <= 0x1F9FF) || // Misc Symbols, Emoticons, etc.
|
|
95
|
+
(code >= 0x1FA00 && code <= 0x1FA6F) || // Chess Symbols, Extended-A
|
|
96
|
+
(code >= 0x1FA70 && code <= 0x1FAFF) || // Symbols and Pictographs Extended-A
|
|
97
|
+
(code >= 0x20000 && code <= 0x2FFFD) || // CJK Unified Ideographs Extension B-F
|
|
98
|
+
(code >= 0x30000 && code <= 0x3FFFD) // CJK Unified Ideographs Extension G
|
|
99
|
+
) {
|
|
100
|
+
return 2;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
return 1;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Compute the visible display width of a string (excluding ANSI sequences).
|
|
108
|
+
* Handles wide characters, CJK, emoji, etc.
|
|
109
|
+
*
|
|
110
|
+
* @param {string} str
|
|
111
|
+
* @returns {number}
|
|
112
|
+
*/
|
|
113
|
+
function visibleWidth(str) {
|
|
114
|
+
if (!str) return 0;
|
|
115
|
+
|
|
116
|
+
// Fast path: remove ANSI sequences first
|
|
117
|
+
const clean = str.replace(ANSI_RE, '');
|
|
118
|
+
let width = 0;
|
|
119
|
+
|
|
120
|
+
for (let i = 0; i < clean.length; i++) {
|
|
121
|
+
const code = clean.codePointAt(i);
|
|
122
|
+
width += charWidth(code);
|
|
123
|
+
// Skip low surrogate of surrogate pair
|
|
124
|
+
if (code > 0xFFFF) i++;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
return width;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// ---------------------------------------------------------------------------
|
|
131
|
+
// ANSI state tracking
|
|
132
|
+
// ---------------------------------------------------------------------------
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Represents the current ANSI graphic state (colors, styles).
|
|
136
|
+
* Immutable-ish: methods return new objects.
|
|
137
|
+
*/
|
|
138
|
+
class AnsiState {
|
|
139
|
+
constructor() {
|
|
140
|
+
this.bold = false;
|
|
141
|
+
this.dim = false;
|
|
142
|
+
this.italic = false;
|
|
143
|
+
this.underline = false;
|
|
144
|
+
this.blink = false;
|
|
145
|
+
this.inverse = false;
|
|
146
|
+
this.hidden = false;
|
|
147
|
+
this.strikethrough = false;
|
|
148
|
+
this.fg = null; // null = default, or array of SGR params e.g. [36] or [38,5,208] or [38,2,r,g,b]
|
|
149
|
+
this.bg = null; // same
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/** Create a deep copy */
|
|
153
|
+
clone() {
|
|
154
|
+
const s = new AnsiState();
|
|
155
|
+
s.bold = this.bold;
|
|
156
|
+
s.dim = this.dim;
|
|
157
|
+
s.italic = this.italic;
|
|
158
|
+
s.underline = this.underline;
|
|
159
|
+
s.blink = this.blink;
|
|
160
|
+
s.inverse = this.inverse;
|
|
161
|
+
s.hidden = this.hidden;
|
|
162
|
+
s.strikethrough = this.strikethrough;
|
|
163
|
+
s.fg = this.fg ? this.fg.slice() : null;
|
|
164
|
+
s.bg = this.bg ? this.bg.slice() : null;
|
|
165
|
+
return s;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/** Returns true if no styles are active */
|
|
169
|
+
isEmpty() {
|
|
170
|
+
return (
|
|
171
|
+
!this.bold && !this.dim && !this.italic && !this.underline &&
|
|
172
|
+
!this.blink && !this.inverse && !this.hidden && !this.strikethrough &&
|
|
173
|
+
this.fg === null && this.bg === null
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Apply an SGR parameter sequence to this state (mutates in place).
|
|
179
|
+
* @param {number[]} params - e.g. [1], [38,5,208], [0]
|
|
180
|
+
*/
|
|
181
|
+
applySgr(params) {
|
|
182
|
+
if (params.length === 0) {
|
|
183
|
+
// \x1b[m is equivalent to \x1b[0m
|
|
184
|
+
this._reset();
|
|
185
|
+
return;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
let i = 0;
|
|
189
|
+
while (i < params.length) {
|
|
190
|
+
const p = params[i];
|
|
191
|
+
|
|
192
|
+
if (p === 0) {
|
|
193
|
+
this._reset();
|
|
194
|
+
} else if (p === 1) {
|
|
195
|
+
this.bold = true;
|
|
196
|
+
} else if (p === 2) {
|
|
197
|
+
this.dim = true;
|
|
198
|
+
} else if (p === 3) {
|
|
199
|
+
this.italic = true;
|
|
200
|
+
} else if (p === 4) {
|
|
201
|
+
this.underline = true;
|
|
202
|
+
} else if (p === 5 || p === 6) {
|
|
203
|
+
this.blink = true;
|
|
204
|
+
} else if (p === 7) {
|
|
205
|
+
this.inverse = true;
|
|
206
|
+
} else if (p === 8) {
|
|
207
|
+
this.hidden = true;
|
|
208
|
+
} else if (p === 9) {
|
|
209
|
+
this.strikethrough = true;
|
|
210
|
+
} else if (p === 21) {
|
|
211
|
+
// Double underline or bold off (varies by terminal)
|
|
212
|
+
this.bold = false;
|
|
213
|
+
} else if (p === 22) {
|
|
214
|
+
this.bold = false;
|
|
215
|
+
this.dim = false;
|
|
216
|
+
} else if (p === 23) {
|
|
217
|
+
this.italic = false;
|
|
218
|
+
} else if (p === 24) {
|
|
219
|
+
this.underline = false;
|
|
220
|
+
} else if (p === 25) {
|
|
221
|
+
this.blink = false;
|
|
222
|
+
} else if (p === 27) {
|
|
223
|
+
this.inverse = false;
|
|
224
|
+
} else if (p === 28) {
|
|
225
|
+
this.hidden = false;
|
|
226
|
+
} else if (p === 29) {
|
|
227
|
+
this.strikethrough = false;
|
|
228
|
+
} else if (p >= 30 && p <= 37) {
|
|
229
|
+
// Standard foreground color
|
|
230
|
+
this.fg = [p];
|
|
231
|
+
} else if (p === 38) {
|
|
232
|
+
// Extended foreground color
|
|
233
|
+
if (i + 1 < params.length && params[i + 1] === 5 && i + 2 < params.length) {
|
|
234
|
+
// 256-color: 38;5;N
|
|
235
|
+
this.fg = [38, 5, params[i + 2]];
|
|
236
|
+
i += 2;
|
|
237
|
+
} else if (i + 1 < params.length && params[i + 1] === 2 && i + 4 < params.length) {
|
|
238
|
+
// Truecolor: 38;2;R;G;B
|
|
239
|
+
this.fg = [38, 2, params[i + 2], params[i + 3], params[i + 4]];
|
|
240
|
+
i += 4;
|
|
241
|
+
}
|
|
242
|
+
} else if (p === 39) {
|
|
243
|
+
// Default foreground
|
|
244
|
+
this.fg = null;
|
|
245
|
+
} else if (p >= 40 && p <= 47) {
|
|
246
|
+
// Standard background color
|
|
247
|
+
this.bg = [p];
|
|
248
|
+
} else if (p === 48) {
|
|
249
|
+
// Extended background color
|
|
250
|
+
if (i + 1 < params.length && params[i + 1] === 5 && i + 2 < params.length) {
|
|
251
|
+
// 256-color: 48;5;N
|
|
252
|
+
this.bg = [48, 5, params[i + 2]];
|
|
253
|
+
i += 2;
|
|
254
|
+
} else if (i + 1 < params.length && params[i + 1] === 2 && i + 4 < params.length) {
|
|
255
|
+
// Truecolor: 48;2;R;G;B
|
|
256
|
+
this.bg = [48, 2, params[i + 2], params[i + 3], params[i + 4]];
|
|
257
|
+
i += 4;
|
|
258
|
+
}
|
|
259
|
+
} else if (p === 49) {
|
|
260
|
+
// Default background
|
|
261
|
+
this.bg = null;
|
|
262
|
+
} else if (p >= 90 && p <= 97) {
|
|
263
|
+
// Bright foreground color
|
|
264
|
+
this.fg = [p];
|
|
265
|
+
} else if (p >= 100 && p <= 107) {
|
|
266
|
+
// Bright background color
|
|
267
|
+
this.bg = [p];
|
|
268
|
+
}
|
|
269
|
+
// Ignore unknown SGR params
|
|
270
|
+
|
|
271
|
+
i++;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
/** Reset all attributes */
|
|
276
|
+
_reset() {
|
|
277
|
+
this.bold = false;
|
|
278
|
+
this.dim = false;
|
|
279
|
+
this.italic = false;
|
|
280
|
+
this.underline = false;
|
|
281
|
+
this.blink = false;
|
|
282
|
+
this.inverse = false;
|
|
283
|
+
this.hidden = false;
|
|
284
|
+
this.strikethrough = false;
|
|
285
|
+
this.fg = null;
|
|
286
|
+
this.bg = null;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Build the ANSI escape sequence string that would apply this state.
|
|
291
|
+
* Returns empty string if state is default.
|
|
292
|
+
* @returns {string}
|
|
293
|
+
*/
|
|
294
|
+
toAnsi() {
|
|
295
|
+
if (this.isEmpty()) return '';
|
|
296
|
+
|
|
297
|
+
const parts = [];
|
|
298
|
+
|
|
299
|
+
if (this.bold) parts.push('1');
|
|
300
|
+
if (this.dim) parts.push('2');
|
|
301
|
+
if (this.italic) parts.push('3');
|
|
302
|
+
if (this.underline) parts.push('4');
|
|
303
|
+
if (this.blink) parts.push('5');
|
|
304
|
+
if (this.inverse) parts.push('7');
|
|
305
|
+
if (this.hidden) parts.push('8');
|
|
306
|
+
if (this.strikethrough) parts.push('9');
|
|
307
|
+
if (this.fg) parts.push(this.fg.join(';'));
|
|
308
|
+
if (this.bg) parts.push(this.bg.join(';'));
|
|
309
|
+
|
|
310
|
+
if (parts.length === 0) return '';
|
|
311
|
+
return '\x1b[' + parts.join(';') + 'm';
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
// ---------------------------------------------------------------------------
|
|
316
|
+
// Parsing helpers
|
|
317
|
+
// ---------------------------------------------------------------------------
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* Parse a string into an array of segments: { type: 'text'|'ansi', value: string }
|
|
321
|
+
* ANSI sequences and text alternate. Non-SGR CSI sequences are tagged as 'nonsgr'.
|
|
322
|
+
*
|
|
323
|
+
* @param {string} raw
|
|
324
|
+
* @returns {Array<{type: string, value: string}>}
|
|
325
|
+
*/
|
|
326
|
+
function parseSegments(raw) {
|
|
327
|
+
if (!raw) return [];
|
|
328
|
+
|
|
329
|
+
const segments = [];
|
|
330
|
+
let lastIndex = 0;
|
|
331
|
+
|
|
332
|
+
// Reset the regex lastIndex
|
|
333
|
+
ANSI_RE.lastIndex = 0;
|
|
334
|
+
|
|
335
|
+
let match;
|
|
336
|
+
while ((match = ANSI_RE.exec(raw)) !== null) {
|
|
337
|
+
// Text before this ANSI sequence
|
|
338
|
+
if (match.index > lastIndex) {
|
|
339
|
+
segments.push({ type: 'text', value: raw.slice(lastIndex, match.index) });
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
const seq = match[0];
|
|
343
|
+
if (SGR_RE.test(seq)) {
|
|
344
|
+
segments.push({ type: 'ansi', value: seq });
|
|
345
|
+
} else {
|
|
346
|
+
// Non-SGR CSI (cursor movement, erase, etc.) - mark for stripping
|
|
347
|
+
segments.push({ type: 'nonsgr', value: seq });
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
lastIndex = ANSI_RE.lastIndex;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
// Trailing text
|
|
354
|
+
if (lastIndex < raw.length) {
|
|
355
|
+
segments.push({ type: 'text', value: raw.slice(lastIndex) });
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
return segments;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* Parse SGR parameters from an SGR sequence string.
|
|
363
|
+
* @param {string} seq - e.g. '\x1b[38;5;208m'
|
|
364
|
+
* @returns {number[]} - e.g. [38, 5, 208]
|
|
365
|
+
*/
|
|
366
|
+
function parseSgrParams(seq) {
|
|
367
|
+
const m = SGR_RE.exec(seq);
|
|
368
|
+
if (!m) return [];
|
|
369
|
+
const paramStr = m[1];
|
|
370
|
+
if (!paramStr || paramStr === '') return [0]; // \x1b[m === \x1b[0m
|
|
371
|
+
return paramStr.split(';').map(Number);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
// ---------------------------------------------------------------------------
|
|
375
|
+
// AnsiString class
|
|
376
|
+
// ---------------------------------------------------------------------------
|
|
377
|
+
|
|
378
|
+
class AnsiString {
|
|
379
|
+
/**
|
|
380
|
+
* @param {string} raw - Raw string possibly containing ANSI escape codes
|
|
381
|
+
*/
|
|
382
|
+
constructor(raw) {
|
|
383
|
+
this.raw = raw != null ? String(raw) : '';
|
|
384
|
+
this._segments = null; // Lazy-parsed
|
|
385
|
+
this._visibleLength = null; // Cached
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
/** Get parsed segments (lazy) */
|
|
389
|
+
get segments() {
|
|
390
|
+
if (this._segments === null) {
|
|
391
|
+
this._segments = parseSegments(this.raw);
|
|
392
|
+
}
|
|
393
|
+
return this._segments;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* Get the visible length (display width) excluding ANSI sequences.
|
|
398
|
+
* Accounts for wide characters.
|
|
399
|
+
* @returns {number}
|
|
400
|
+
*/
|
|
401
|
+
get visibleLength() {
|
|
402
|
+
if (this._visibleLength === null) {
|
|
403
|
+
this._visibleLength = visibleWidth(this.raw);
|
|
404
|
+
}
|
|
405
|
+
return this._visibleLength;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* Strip all ANSI escape sequences, returning plain text.
|
|
410
|
+
* @returns {string}
|
|
411
|
+
*/
|
|
412
|
+
stripAnsi() {
|
|
413
|
+
return this.raw.replace(ANSI_RE, '');
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* Get the ANSI state (active colors/styles) at a given visible character position.
|
|
418
|
+
* @param {number} visiblePos - 0-based visible character position
|
|
419
|
+
* @returns {AnsiState}
|
|
420
|
+
*/
|
|
421
|
+
getStateAt(visiblePos) {
|
|
422
|
+
const state = new AnsiState();
|
|
423
|
+
let pos = 0;
|
|
424
|
+
|
|
425
|
+
for (const seg of this.segments) {
|
|
426
|
+
if (seg.type === 'ansi') {
|
|
427
|
+
state.applySgr(parseSgrParams(seg.value));
|
|
428
|
+
} else if (seg.type === 'text') {
|
|
429
|
+
for (let i = 0; i < seg.value.length; i++) {
|
|
430
|
+
const code = seg.value.codePointAt(i);
|
|
431
|
+
const w = charWidth(code);
|
|
432
|
+
if (pos + w > visiblePos) return state.clone();
|
|
433
|
+
pos += w;
|
|
434
|
+
if (pos > visiblePos) return state.clone();
|
|
435
|
+
if (code > 0xFFFF) i++; // skip surrogate
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
// nonsgr segments are skipped
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
return state.clone();
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* Truncate to at most maxWidth visible columns, preserving ANSI state.
|
|
446
|
+
* Appends ellipsis if truncation occurred (and ellipsis fits).
|
|
447
|
+
*
|
|
448
|
+
* @param {number} maxWidth - Maximum visible width
|
|
449
|
+
* @param {string} [ellipsis='...'] - Ellipsis string to append (use '' to disable)
|
|
450
|
+
* @returns {AnsiString}
|
|
451
|
+
*/
|
|
452
|
+
truncate(maxWidth, ellipsis = '\u2026') {
|
|
453
|
+
if (maxWidth < 0) maxWidth = 0;
|
|
454
|
+
if (this.visibleLength <= maxWidth) return this;
|
|
455
|
+
|
|
456
|
+
const ellipsisWidth = visibleWidth(ellipsis);
|
|
457
|
+
const targetWidth = ellipsis ? Math.max(0, maxWidth - ellipsisWidth) : maxWidth;
|
|
458
|
+
|
|
459
|
+
let result = '';
|
|
460
|
+
let pos = 0;
|
|
461
|
+
const state = new AnsiState();
|
|
462
|
+
let truncated = false;
|
|
463
|
+
|
|
464
|
+
for (const seg of this.segments) {
|
|
465
|
+
if (truncated) break;
|
|
466
|
+
|
|
467
|
+
if (seg.type === 'ansi') {
|
|
468
|
+
state.applySgr(parseSgrParams(seg.value));
|
|
469
|
+
result += seg.value;
|
|
470
|
+
} else if (seg.type === 'text') {
|
|
471
|
+
for (let i = 0; i < seg.value.length; i++) {
|
|
472
|
+
const code = seg.value.codePointAt(i);
|
|
473
|
+
const w = charWidth(code);
|
|
474
|
+
|
|
475
|
+
if (pos + w > targetWidth) {
|
|
476
|
+
truncated = true;
|
|
477
|
+
break;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
// Append the character (handle surrogate pairs)
|
|
481
|
+
if (code > 0xFFFF) {
|
|
482
|
+
result += seg.value[i] + seg.value[i + 1];
|
|
483
|
+
i++; // skip low surrogate
|
|
484
|
+
} else {
|
|
485
|
+
result += seg.value[i];
|
|
486
|
+
}
|
|
487
|
+
pos += w;
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
// nonsgr segments are stripped
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
// Add ellipsis if there was truncation and it fits
|
|
494
|
+
if (truncated && ellipsis && maxWidth >= ellipsisWidth) {
|
|
495
|
+
result += ellipsis;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
// Always close with reset if any state was active
|
|
499
|
+
if (!state.isEmpty()) {
|
|
500
|
+
result += RESET;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
return new AnsiString(result);
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* Pad to exactly targetWidth visible columns.
|
|
508
|
+
* If already wider, truncates. If shorter, pads with char.
|
|
509
|
+
*
|
|
510
|
+
* @param {number} targetWidth
|
|
511
|
+
* @param {string} [char=' '] - Character to pad with (must be 1 column wide)
|
|
512
|
+
* @returns {AnsiString}
|
|
513
|
+
*/
|
|
514
|
+
pad(targetWidth, char = ' ') {
|
|
515
|
+
if (targetWidth < 0) targetWidth = 0;
|
|
516
|
+
|
|
517
|
+
const currentWidth = this.visibleLength;
|
|
518
|
+
|
|
519
|
+
if (currentWidth > targetWidth) {
|
|
520
|
+
return this.truncate(targetWidth, '');
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
if (currentWidth === targetWidth) {
|
|
524
|
+
return this;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
const needed = targetWidth - currentWidth;
|
|
528
|
+
|
|
529
|
+
// Check if raw ends with reset; if not we need to reset before padding
|
|
530
|
+
// to avoid coloring the padding characters
|
|
531
|
+
let result = this.raw;
|
|
532
|
+
|
|
533
|
+
// Check current state at end
|
|
534
|
+
const endState = this.getStateAt(currentWidth);
|
|
535
|
+
if (!endState.isEmpty()) {
|
|
536
|
+
// Ensure we reset before padding so padding chars are not colored
|
|
537
|
+
if (!result.endsWith(RESET)) {
|
|
538
|
+
result += RESET;
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
result += char.repeat(needed);
|
|
543
|
+
return new AnsiString(result);
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
/**
|
|
547
|
+
* Word-wrap to maxWidth visible columns, returning array of AnsiString.
|
|
548
|
+
* ANSI state carries over across lines.
|
|
549
|
+
*
|
|
550
|
+
* @param {number} maxWidth
|
|
551
|
+
* @returns {AnsiString[]}
|
|
552
|
+
*/
|
|
553
|
+
wordWrap(maxWidth) {
|
|
554
|
+
if (maxWidth < 1) maxWidth = 1;
|
|
555
|
+
if (this.visibleLength <= maxWidth) return [this];
|
|
556
|
+
|
|
557
|
+
const lines = [];
|
|
558
|
+
let currentLine = '';
|
|
559
|
+
let currentWidth = 0;
|
|
560
|
+
let currentWord = '';
|
|
561
|
+
let currentWordWidth = 0;
|
|
562
|
+
const state = new AnsiState();
|
|
563
|
+
let lineStartState = new AnsiState(); // State at start of current line
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* Flush the current word into the current line, wrapping if needed.
|
|
567
|
+
*/
|
|
568
|
+
const flushWord = () => {
|
|
569
|
+
if (currentWordWidth === 0 && currentWord === '') return;
|
|
570
|
+
|
|
571
|
+
if (currentWidth + currentWordWidth > maxWidth) {
|
|
572
|
+
// Word doesn't fit on current line
|
|
573
|
+
if (currentWidth > 0) {
|
|
574
|
+
// Finish current line
|
|
575
|
+
lines.push(finishLine(currentLine, state));
|
|
576
|
+
currentLine = state.toAnsi(); // Restore state for new line
|
|
577
|
+
lineStartState = state.clone();
|
|
578
|
+
currentWidth = 0;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
// If single word is wider than maxWidth, force-break it
|
|
582
|
+
if (currentWordWidth > maxWidth) {
|
|
583
|
+
const broken = forceBreakWord(currentWord, maxWidth, currentWidth, state, lineStartState);
|
|
584
|
+
for (let i = 0; i < broken.lines.length - 1; i++) {
|
|
585
|
+
lines.push(broken.lines[i]);
|
|
586
|
+
}
|
|
587
|
+
// The last fragment becomes the start of a new line
|
|
588
|
+
currentLine = broken.remainder;
|
|
589
|
+
currentWidth = broken.remainderWidth;
|
|
590
|
+
lineStartState = broken.remainderStartState;
|
|
591
|
+
currentWord = '';
|
|
592
|
+
currentWordWidth = 0;
|
|
593
|
+
return;
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
currentLine += currentWord;
|
|
598
|
+
currentWidth += currentWordWidth;
|
|
599
|
+
currentWord = '';
|
|
600
|
+
currentWordWidth = 0;
|
|
601
|
+
};
|
|
602
|
+
|
|
603
|
+
for (const seg of this.segments) {
|
|
604
|
+
if (seg.type === 'ansi') {
|
|
605
|
+
state.applySgr(parseSgrParams(seg.value));
|
|
606
|
+
currentWord += seg.value;
|
|
607
|
+
// ANSI codes don't add width
|
|
608
|
+
} else if (seg.type === 'text') {
|
|
609
|
+
for (let i = 0; i < seg.value.length; i++) {
|
|
610
|
+
const ch = seg.value[i];
|
|
611
|
+
const code = seg.value.codePointAt(i);
|
|
612
|
+
const w = charWidth(code);
|
|
613
|
+
|
|
614
|
+
// Handle surrogate pairs
|
|
615
|
+
let fullChar = ch;
|
|
616
|
+
if (code > 0xFFFF) {
|
|
617
|
+
fullChar = ch + seg.value[i + 1];
|
|
618
|
+
i++;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
if (ch === '\n') {
|
|
622
|
+
// Explicit newline: flush word, finish line
|
|
623
|
+
flushWord();
|
|
624
|
+
lines.push(finishLine(currentLine, state));
|
|
625
|
+
currentLine = state.toAnsi();
|
|
626
|
+
lineStartState = state.clone();
|
|
627
|
+
currentWidth = 0;
|
|
628
|
+
continue;
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
// Space is a word boundary
|
|
632
|
+
if (ch === ' ' || ch === '\t') {
|
|
633
|
+
flushWord();
|
|
634
|
+
|
|
635
|
+
// Check if adding this space would exceed width
|
|
636
|
+
if (currentWidth + 1 > maxWidth) {
|
|
637
|
+
lines.push(finishLine(currentLine, state));
|
|
638
|
+
currentLine = state.toAnsi();
|
|
639
|
+
lineStartState = state.clone();
|
|
640
|
+
currentWidth = 0;
|
|
641
|
+
// Drop leading space on new line
|
|
642
|
+
} else {
|
|
643
|
+
currentLine += ch;
|
|
644
|
+
currentWidth += 1;
|
|
645
|
+
}
|
|
646
|
+
} else {
|
|
647
|
+
currentWord += fullChar;
|
|
648
|
+
currentWordWidth += w;
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
// nonsgr segments are stripped
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
// Flush remaining word and line
|
|
656
|
+
flushWord();
|
|
657
|
+
if (currentWidth > 0 || currentLine.length > 0) {
|
|
658
|
+
lines.push(finishLine(currentLine, state));
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
// If we somehow produced nothing, return at least one empty line
|
|
662
|
+
if (lines.length === 0) {
|
|
663
|
+
lines.push(new AnsiString(''));
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
return lines;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
/**
|
|
670
|
+
* Slice by visible character positions (ANSI-aware substring).
|
|
671
|
+
* Like str.substring(start, end) but operates on visible positions.
|
|
672
|
+
*
|
|
673
|
+
* @param {number} start - Start visible position (inclusive)
|
|
674
|
+
* @param {number} [end] - End visible position (exclusive). Defaults to end of string.
|
|
675
|
+
* @returns {AnsiString}
|
|
676
|
+
*/
|
|
677
|
+
visibleSlice(start, end) {
|
|
678
|
+
if (start < 0) start = 0;
|
|
679
|
+
if (end === undefined || end === null) end = this.visibleLength;
|
|
680
|
+
if (end < start) end = start;
|
|
681
|
+
if (start >= this.visibleLength) return new AnsiString('');
|
|
682
|
+
|
|
683
|
+
let result = '';
|
|
684
|
+
let pos = 0;
|
|
685
|
+
const state = new AnsiState();
|
|
686
|
+
let startState = null;
|
|
687
|
+
let inRange = false;
|
|
688
|
+
|
|
689
|
+
for (const seg of this.segments) {
|
|
690
|
+
if (pos >= end) break;
|
|
691
|
+
|
|
692
|
+
if (seg.type === 'ansi') {
|
|
693
|
+
state.applySgr(parseSgrParams(seg.value));
|
|
694
|
+
if (inRange) {
|
|
695
|
+
result += seg.value;
|
|
696
|
+
}
|
|
697
|
+
} else if (seg.type === 'text') {
|
|
698
|
+
for (let i = 0; i < seg.value.length; i++) {
|
|
699
|
+
if (pos >= end) break;
|
|
700
|
+
|
|
701
|
+
const code = seg.value.codePointAt(i);
|
|
702
|
+
const w = charWidth(code);
|
|
703
|
+
|
|
704
|
+
let fullChar;
|
|
705
|
+
if (code > 0xFFFF) {
|
|
706
|
+
fullChar = seg.value[i] + seg.value[i + 1];
|
|
707
|
+
i++;
|
|
708
|
+
} else {
|
|
709
|
+
fullChar = seg.value[i];
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
if (pos + w > start && pos < end) {
|
|
713
|
+
if (!inRange) {
|
|
714
|
+
// Entering the range - prepend state
|
|
715
|
+
inRange = true;
|
|
716
|
+
startState = state.clone();
|
|
717
|
+
const stateStr = startState.toAnsi();
|
|
718
|
+
if (stateStr) result += stateStr;
|
|
719
|
+
}
|
|
720
|
+
result += fullChar;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
pos += w;
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
// Append reset if we had any state
|
|
729
|
+
if (inRange && !state.isEmpty()) {
|
|
730
|
+
result += RESET;
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
return new AnsiString(result);
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
/**
|
|
737
|
+
* Returns the raw string representation.
|
|
738
|
+
* @returns {string}
|
|
739
|
+
*/
|
|
740
|
+
toString() {
|
|
741
|
+
return this.raw;
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
// ---------------------------------------------------------------------------
|
|
746
|
+
// AnsiString helpers (word wrapping internals)
|
|
747
|
+
// ---------------------------------------------------------------------------
|
|
748
|
+
|
|
749
|
+
/**
|
|
750
|
+
* Finish a line: append reset if any ANSI state is active.
|
|
751
|
+
* @param {string} line - The line content built so far
|
|
752
|
+
* @param {AnsiState} state - Current ANSI state
|
|
753
|
+
* @returns {AnsiString}
|
|
754
|
+
*/
|
|
755
|
+
function finishLine(line, state) {
|
|
756
|
+
let result = line;
|
|
757
|
+
if (!state.isEmpty()) {
|
|
758
|
+
result += RESET;
|
|
759
|
+
}
|
|
760
|
+
return new AnsiString(result);
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
/**
|
|
764
|
+
* Force-break a word that exceeds maxWidth by splitting it character-by-character.
|
|
765
|
+
* Preserves ANSI state across the breaks.
|
|
766
|
+
*
|
|
767
|
+
* @param {string} word - The word content (may contain ANSI sequences within)
|
|
768
|
+
* @param {number} maxWidth - Maximum visible width per line
|
|
769
|
+
* @param {number} currentWidth - Current width already on the line
|
|
770
|
+
* @param {AnsiState} state - Current ANSI state
|
|
771
|
+
* @param {AnsiState} lineStartState - State at start of current line
|
|
772
|
+
* @returns {{ lines: AnsiString[], remainder: string, remainderWidth: number, remainderStartState: AnsiState }}
|
|
773
|
+
*/
|
|
774
|
+
function forceBreakWord(word, maxWidth, currentWidth, state, lineStartState) {
|
|
775
|
+
const lines = [];
|
|
776
|
+
let line = lineStartState.toAnsi();
|
|
777
|
+
let lineWidth = currentWidth;
|
|
778
|
+
const localState = lineStartState.clone();
|
|
779
|
+
|
|
780
|
+
// Parse the word into segments
|
|
781
|
+
const segments = parseSegments(word);
|
|
782
|
+
|
|
783
|
+
for (const seg of segments) {
|
|
784
|
+
if (seg.type === 'ansi') {
|
|
785
|
+
localState.applySgr(parseSgrParams(seg.value));
|
|
786
|
+
line += seg.value;
|
|
787
|
+
} else if (seg.type === 'text') {
|
|
788
|
+
for (let i = 0; i < seg.value.length; i++) {
|
|
789
|
+
const code = seg.value.codePointAt(i);
|
|
790
|
+
const w = charWidth(code);
|
|
791
|
+
|
|
792
|
+
let fullChar;
|
|
793
|
+
if (code > 0xFFFF) {
|
|
794
|
+
fullChar = seg.value[i] + seg.value[i + 1];
|
|
795
|
+
i++;
|
|
796
|
+
} else {
|
|
797
|
+
fullChar = seg.value[i];
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
if (lineWidth + w > maxWidth) {
|
|
801
|
+
// Wrap: finish current line
|
|
802
|
+
lines.push(finishLine(line, localState));
|
|
803
|
+
line = localState.toAnsi();
|
|
804
|
+
lineWidth = 0;
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
line += fullChar;
|
|
808
|
+
lineWidth += w;
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
return {
|
|
814
|
+
lines,
|
|
815
|
+
remainder: line,
|
|
816
|
+
remainderWidth: lineWidth,
|
|
817
|
+
remainderStartState: localState.clone()
|
|
818
|
+
};
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
// ---------------------------------------------------------------------------
|
|
822
|
+
// AnsiRenderer class
|
|
823
|
+
// ---------------------------------------------------------------------------
|
|
824
|
+
|
|
825
|
+
class AnsiRenderer {
|
|
826
|
+
/**
|
|
827
|
+
* Render lines into a bounded rectangle, respecting ANSI codes.
|
|
828
|
+
*
|
|
829
|
+
* Returns an array of exactly `height` strings, each with exactly `width`
|
|
830
|
+
* visible characters. All ANSI state is properly preserved and bounded.
|
|
831
|
+
*
|
|
832
|
+
* @param {string[]} lines - Input lines (may contain ANSI codes)
|
|
833
|
+
* @param {number} width - Target visible width per line
|
|
834
|
+
* @param {number} height - Target number of lines
|
|
835
|
+
* @param {Object} [options={}]
|
|
836
|
+
* @param {number} [options.scrollOffset=0] - Number of lines to skip (for scrollable content)
|
|
837
|
+
* @param {'truncate'|'word'|'char'} [options.wrapMode='truncate'] - How to handle long lines
|
|
838
|
+
* @param {string} [options.fillChar=' '] - Character to fill empty space
|
|
839
|
+
* @param {string} [options.ellipsis='...'] - Ellipsis for truncated lines (only in truncate mode)
|
|
840
|
+
* @param {string} [options.linePrefix=''] - ANSI string to prepend to each line (e.g. background color)
|
|
841
|
+
* @returns {string[]}
|
|
842
|
+
*/
|
|
843
|
+
static renderInBounds(lines, width, height, options = {}) {
|
|
844
|
+
const {
|
|
845
|
+
scrollOffset = 0,
|
|
846
|
+
wrapMode = 'truncate',
|
|
847
|
+
fillChar = ' ',
|
|
848
|
+
ellipsis = '\u2026',
|
|
849
|
+
linePrefix = ''
|
|
850
|
+
} = options;
|
|
851
|
+
|
|
852
|
+
if (width < 0) width = 0;
|
|
853
|
+
if (height < 0) height = 0;
|
|
854
|
+
if (height === 0) return [];
|
|
855
|
+
|
|
856
|
+
// Step 1: Process lines according to wrap mode
|
|
857
|
+
let processedLines;
|
|
858
|
+
|
|
859
|
+
if (wrapMode === 'truncate') {
|
|
860
|
+
processedLines = lines.map(line => {
|
|
861
|
+
const as = new AnsiString(line);
|
|
862
|
+
return as.truncate(width, ellipsis).pad(width, fillChar);
|
|
863
|
+
});
|
|
864
|
+
} else if (wrapMode === 'word') {
|
|
865
|
+
processedLines = [];
|
|
866
|
+
for (const line of lines) {
|
|
867
|
+
const as = new AnsiString(line);
|
|
868
|
+
const wrapped = as.wordWrap(width);
|
|
869
|
+
for (const wl of wrapped) {
|
|
870
|
+
processedLines.push(wl.pad(width, fillChar));
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
} else if (wrapMode === 'char') {
|
|
874
|
+
processedLines = [];
|
|
875
|
+
for (const line of lines) {
|
|
876
|
+
const as = new AnsiString(line);
|
|
877
|
+
if (as.visibleLength <= width) {
|
|
878
|
+
processedLines.push(as.pad(width, fillChar));
|
|
879
|
+
} else {
|
|
880
|
+
// Character-level wrapping: slice by width
|
|
881
|
+
let pos = 0;
|
|
882
|
+
while (pos < as.visibleLength) {
|
|
883
|
+
const slice = as.visibleSlice(pos, pos + width);
|
|
884
|
+
processedLines.push(slice.pad(width, fillChar));
|
|
885
|
+
pos += width;
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
} else {
|
|
890
|
+
// Fallback to truncate
|
|
891
|
+
processedLines = lines.map(line => {
|
|
892
|
+
const as = new AnsiString(line);
|
|
893
|
+
return as.truncate(width, ellipsis).pad(width, fillChar);
|
|
894
|
+
});
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
// Step 2: Apply scroll offset and take exactly `height` lines
|
|
898
|
+
const startIdx = Math.max(0, Math.min(scrollOffset, processedLines.length));
|
|
899
|
+
const visible = processedLines.slice(startIdx, startIdx + height);
|
|
900
|
+
|
|
901
|
+
// Step 3: Build output - exactly `height` lines, each exactly `width` visible chars
|
|
902
|
+
const output = [];
|
|
903
|
+
const emptyLine = fillChar.repeat(width);
|
|
904
|
+
|
|
905
|
+
for (let i = 0; i < height; i++) {
|
|
906
|
+
if (i < visible.length) {
|
|
907
|
+
const lineStr = visible[i].toString();
|
|
908
|
+
output.push(linePrefix + lineStr);
|
|
909
|
+
} else {
|
|
910
|
+
output.push(linePrefix + emptyLine);
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
return output;
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
/**
|
|
918
|
+
* Measure the visible display width of a string (excluding ANSI sequences).
|
|
919
|
+
* Handles wide characters (CJK, emoji, etc.).
|
|
920
|
+
*
|
|
921
|
+
* @param {string} str
|
|
922
|
+
* @returns {number}
|
|
923
|
+
*/
|
|
924
|
+
static visibleWidth(str) {
|
|
925
|
+
return visibleWidth(str);
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
/**
|
|
929
|
+
* Split a string into alternating text and ANSI segments.
|
|
930
|
+
* Returns an array of objects: { type: 'text'|'ansi'|'nonsgr', value: string }
|
|
931
|
+
*
|
|
932
|
+
* @param {string} str
|
|
933
|
+
* @returns {Array<{type: string, value: string}>}
|
|
934
|
+
*/
|
|
935
|
+
static parseAnsi(str) {
|
|
936
|
+
return parseSegments(str);
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
/**
|
|
940
|
+
* Build an ANSI escape sequence string from a state object.
|
|
941
|
+
* The state object can have: bold, dim, italic, underline, fg, bg, etc.
|
|
942
|
+
*
|
|
943
|
+
* @param {AnsiState|Object} state
|
|
944
|
+
* @returns {string}
|
|
945
|
+
*/
|
|
946
|
+
static buildAnsiState(state) {
|
|
947
|
+
if (state instanceof AnsiState) {
|
|
948
|
+
return state.toAnsi();
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
// Accept plain objects too
|
|
952
|
+
const parts = [];
|
|
953
|
+
|
|
954
|
+
if (state.bold) parts.push('1');
|
|
955
|
+
if (state.dim) parts.push('2');
|
|
956
|
+
if (state.italic) parts.push('3');
|
|
957
|
+
if (state.underline) parts.push('4');
|
|
958
|
+
if (state.blink) parts.push('5');
|
|
959
|
+
if (state.inverse) parts.push('7');
|
|
960
|
+
if (state.hidden) parts.push('8');
|
|
961
|
+
if (state.strikethrough) parts.push('9');
|
|
962
|
+
|
|
963
|
+
if (state.fg) {
|
|
964
|
+
if (Array.isArray(state.fg)) {
|
|
965
|
+
parts.push(state.fg.join(';'));
|
|
966
|
+
} else if (typeof state.fg === 'number') {
|
|
967
|
+
parts.push(String(state.fg));
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
if (state.bg) {
|
|
972
|
+
if (Array.isArray(state.bg)) {
|
|
973
|
+
parts.push(state.bg.join(';'));
|
|
974
|
+
} else if (typeof state.bg === 'number') {
|
|
975
|
+
parts.push(String(state.bg));
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
if (parts.length === 0) return '';
|
|
980
|
+
return '\x1b[' + parts.join(';') + 'm';
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
/**
|
|
984
|
+
* Create a new AnsiState tracker.
|
|
985
|
+
* @returns {AnsiState}
|
|
986
|
+
*/
|
|
987
|
+
static createState() {
|
|
988
|
+
return new AnsiState();
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
/**
|
|
992
|
+
* Strip all ANSI escape sequences from a string.
|
|
993
|
+
* @param {string} str
|
|
994
|
+
* @returns {string}
|
|
995
|
+
*/
|
|
996
|
+
static stripAnsi(str) {
|
|
997
|
+
if (!str) return '';
|
|
998
|
+
return str.replace(ANSI_RE, '');
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
/**
|
|
1002
|
+
* Determine if a string contains any ANSI escape sequences.
|
|
1003
|
+
* @param {string} str
|
|
1004
|
+
* @returns {boolean}
|
|
1005
|
+
*/
|
|
1006
|
+
static hasAnsi(str) {
|
|
1007
|
+
if (!str) return false;
|
|
1008
|
+
ANSI_RE.lastIndex = 0;
|
|
1009
|
+
return ANSI_RE.test(str);
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
/**
|
|
1013
|
+
* Truncate a raw string to maxWidth visible columns, preserving ANSI state.
|
|
1014
|
+
* Convenience method - wraps AnsiString.truncate().
|
|
1015
|
+
*
|
|
1016
|
+
* @param {string} str
|
|
1017
|
+
* @param {number} maxWidth
|
|
1018
|
+
* @param {string} [ellipsis='...']
|
|
1019
|
+
* @returns {string}
|
|
1020
|
+
*/
|
|
1021
|
+
static truncate(str, maxWidth, ellipsis = '\u2026') {
|
|
1022
|
+
return new AnsiString(str).truncate(maxWidth, ellipsis).toString();
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
/**
|
|
1026
|
+
* Word-wrap a raw string to maxWidth visible columns, preserving ANSI state.
|
|
1027
|
+
* Convenience method - wraps AnsiString.wordWrap().
|
|
1028
|
+
*
|
|
1029
|
+
* @param {string} str
|
|
1030
|
+
* @param {number} maxWidth
|
|
1031
|
+
* @returns {string[]}
|
|
1032
|
+
*/
|
|
1033
|
+
static wordWrap(str, maxWidth) {
|
|
1034
|
+
return new AnsiString(str).wordWrap(maxWidth).map(as => as.toString());
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
/**
|
|
1038
|
+
* Pad a raw string to exactly targetWidth visible columns.
|
|
1039
|
+
* Convenience method - wraps AnsiString.pad().
|
|
1040
|
+
*
|
|
1041
|
+
* @param {string} str
|
|
1042
|
+
* @param {number} targetWidth
|
|
1043
|
+
* @param {string} [char=' ']
|
|
1044
|
+
* @returns {string}
|
|
1045
|
+
*/
|
|
1046
|
+
static pad(str, targetWidth, char = ' ') {
|
|
1047
|
+
return new AnsiString(str).pad(targetWidth, char).toString();
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
// ---------------------------------------------------------------------------
|
|
1052
|
+
// Exports
|
|
1053
|
+
// ---------------------------------------------------------------------------
|
|
1054
|
+
|
|
1055
|
+
module.exports = { AnsiString, AnsiRenderer, AnsiState };
|