@compass-ai/nova 1.0.74 → 1.0.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +557 -555
- package/dist/index.js +10 -8
- package/package.json +1 -1
- package/dist/acp/agent.d.ts +0 -318
- package/dist/acp/agent.d.ts.map +0 -1
- package/dist/acp/agent.js +0 -795
- package/dist/acp/agent.js.map +0 -1
- package/dist/acp/backpressure-writer.d.ts +0 -49
- package/dist/acp/backpressure-writer.d.ts.map +0 -1
- package/dist/acp/backpressure-writer.js +0 -153
- package/dist/acp/backpressure-writer.js.map +0 -1
- package/dist/acp/event-adapter.d.ts +0 -242
- package/dist/acp/event-adapter.d.ts.map +0 -1
- package/dist/acp/event-adapter.js +0 -456
- package/dist/acp/event-adapter.js.map +0 -1
- package/dist/acp/index.d.ts +0 -30
- package/dist/acp/index.d.ts.map +0 -1
- package/dist/acp/index.js +0 -36
- package/dist/acp/index.js.map +0 -1
- package/dist/acp/modes.d.ts +0 -56
- package/dist/acp/modes.d.ts.map +0 -1
- package/dist/acp/modes.js +0 -135
- package/dist/acp/modes.js.map +0 -1
- package/dist/acp/session-manager.d.ts +0 -170
- package/dist/acp/session-manager.d.ts.map +0 -1
- package/dist/acp/session-manager.js +0 -381
- package/dist/acp/session-manager.js.map +0 -1
- package/dist/acp/text-coalescer.d.ts +0 -45
- package/dist/acp/text-coalescer.d.ts.map +0 -1
- package/dist/acp/text-coalescer.js +0 -110
- package/dist/acp/text-coalescer.js.map +0 -1
- package/dist/acp/tool-bridge.d.ts +0 -156
- package/dist/acp/tool-bridge.d.ts.map +0 -1
- package/dist/acp/tool-bridge.js +0 -381
- package/dist/acp/tool-bridge.js.map +0 -1
- package/dist/acp/types.d.ts +0 -314
- package/dist/acp/types.d.ts.map +0 -1
- package/dist/acp/types.js +0 -8
- package/dist/acp/types.js.map +0 -1
- package/dist/cli.d.ts +0 -9
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/commands/acp.d.ts +0 -26
- package/dist/commands/acp.d.ts.map +0 -1
- package/dist/commands/acp.js +0 -492
- package/dist/commands/acp.js.map +0 -1
- package/dist/commands/cache.d.ts +0 -33
- package/dist/commands/cache.d.ts.map +0 -1
- package/dist/commands/cache.js +0 -537
- package/dist/commands/cache.js.map +0 -1
- package/dist/commands/config.d.ts +0 -10
- package/dist/commands/config.d.ts.map +0 -1
- package/dist/commands/config.js +0 -367
- package/dist/commands/config.js.map +0 -1
- package/dist/commands/consent.d.ts +0 -21
- package/dist/commands/consent.d.ts.map +0 -1
- package/dist/commands/consent.js +0 -334
- package/dist/commands/consent.js.map +0 -1
- package/dist/commands/data.d.ts +0 -24
- package/dist/commands/data.d.ts.map +0 -1
- package/dist/commands/data.js +0 -586
- package/dist/commands/data.js.map +0 -1
- package/dist/commands/index.d.ts +0 -145
- package/dist/commands/index.d.ts.map +0 -1
- package/dist/commands/index.js +0 -210
- package/dist/commands/index.js.map +0 -1
- package/dist/commands/init.d.ts +0 -106
- package/dist/commands/init.d.ts.map +0 -1
- package/dist/commands/init.js +0 -349
- package/dist/commands/init.js.map +0 -1
- package/dist/commands/logs.d.ts +0 -13
- package/dist/commands/logs.d.ts.map +0 -1
- package/dist/commands/logs.js +0 -359
- package/dist/commands/logs.js.map +0 -1
- package/dist/commands/mcp.d.ts +0 -20
- package/dist/commands/mcp.d.ts.map +0 -1
- package/dist/commands/mcp.js +0 -687
- package/dist/commands/mcp.js.map +0 -1
- package/dist/commands/reset.d.ts +0 -20
- package/dist/commands/reset.d.ts.map +0 -1
- package/dist/commands/reset.js +0 -372
- package/dist/commands/reset.js.map +0 -1
- package/dist/commands/setup.d.ts +0 -74
- package/dist/commands/setup.d.ts.map +0 -1
- package/dist/commands/setup.js +0 -863
- package/dist/commands/setup.js.map +0 -1
- package/dist/commands/slash/agents.d.ts +0 -40
- package/dist/commands/slash/agents.d.ts.map +0 -1
- package/dist/commands/slash/agents.js +0 -519
- package/dist/commands/slash/agents.js.map +0 -1
- package/dist/commands/slash/approve.d.ts +0 -46
- package/dist/commands/slash/approve.d.ts.map +0 -1
- package/dist/commands/slash/approve.js +0 -239
- package/dist/commands/slash/approve.js.map +0 -1
- package/dist/commands/slash/attach.d.ts +0 -70
- package/dist/commands/slash/attach.d.ts.map +0 -1
- package/dist/commands/slash/attach.js +0 -333
- package/dist/commands/slash/attach.js.map +0 -1
- package/dist/commands/slash/clear.d.ts +0 -47
- package/dist/commands/slash/clear.d.ts.map +0 -1
- package/dist/commands/slash/clear.js +0 -261
- package/dist/commands/slash/clear.js.map +0 -1
- package/dist/commands/slash/commit.d.ts +0 -40
- package/dist/commands/slash/commit.d.ts.map +0 -1
- package/dist/commands/slash/commit.js +0 -337
- package/dist/commands/slash/commit.js.map +0 -1
- package/dist/commands/slash/compact.d.ts +0 -48
- package/dist/commands/slash/compact.d.ts.map +0 -1
- package/dist/commands/slash/compact.js +0 -288
- package/dist/commands/slash/compact.js.map +0 -1
- package/dist/commands/slash/config.d.ts +0 -20
- package/dist/commands/slash/config.d.ts.map +0 -1
- package/dist/commands/slash/config.js +0 -136
- package/dist/commands/slash/config.js.map +0 -1
- package/dist/commands/slash/context.d.ts +0 -49
- package/dist/commands/slash/context.d.ts.map +0 -1
- package/dist/commands/slash/context.js +0 -430
- package/dist/commands/slash/context.js.map +0 -1
- package/dist/commands/slash/cost.d.ts +0 -34
- package/dist/commands/slash/cost.d.ts.map +0 -1
- package/dist/commands/slash/cost.js +0 -312
- package/dist/commands/slash/cost.js.map +0 -1
- package/dist/commands/slash/custom.d.ts +0 -41
- package/dist/commands/slash/custom.d.ts.map +0 -1
- package/dist/commands/slash/custom.js +0 -126
- package/dist/commands/slash/custom.js.map +0 -1
- package/dist/commands/slash/exit.d.ts +0 -25
- package/dist/commands/slash/exit.d.ts.map +0 -1
- package/dist/commands/slash/exit.js +0 -186
- package/dist/commands/slash/exit.js.map +0 -1
- package/dist/commands/slash/export.d.ts +0 -27
- package/dist/commands/slash/export.d.ts.map +0 -1
- package/dist/commands/slash/export.js +0 -318
- package/dist/commands/slash/export.js.map +0 -1
- package/dist/commands/slash/files.d.ts +0 -47
- package/dist/commands/slash/files.d.ts.map +0 -1
- package/dist/commands/slash/files.js +0 -521
- package/dist/commands/slash/files.js.map +0 -1
- package/dist/commands/slash/help.d.ts +0 -50
- package/dist/commands/slash/help.d.ts.map +0 -1
- package/dist/commands/slash/help.js +0 -282
- package/dist/commands/slash/help.js.map +0 -1
- package/dist/commands/slash/index-cmd.d.ts +0 -41
- package/dist/commands/slash/index-cmd.d.ts.map +0 -1
- package/dist/commands/slash/index-cmd.js +0 -349
- package/dist/commands/slash/index-cmd.js.map +0 -1
- package/dist/commands/slash/index.d.ts +0 -97
- package/dist/commands/slash/index.d.ts.map +0 -1
- package/dist/commands/slash/index.js +0 -251
- package/dist/commands/slash/index.js.map +0 -1
- package/dist/commands/slash/login.d.ts +0 -23
- package/dist/commands/slash/login.d.ts.map +0 -1
- package/dist/commands/slash/login.js +0 -175
- package/dist/commands/slash/login.js.map +0 -1
- package/dist/commands/slash/logout.d.ts +0 -23
- package/dist/commands/slash/logout.d.ts.map +0 -1
- package/dist/commands/slash/logout.js +0 -153
- package/dist/commands/slash/logout.js.map +0 -1
- package/dist/commands/slash/logs.d.ts +0 -29
- package/dist/commands/slash/logs.d.ts.map +0 -1
- package/dist/commands/slash/logs.js +0 -423
- package/dist/commands/slash/logs.js.map +0 -1
- package/dist/commands/slash/mcp.d.ts +0 -29
- package/dist/commands/slash/mcp.d.ts.map +0 -1
- package/dist/commands/slash/mcp.js +0 -1026
- package/dist/commands/slash/mcp.js.map +0 -1
- package/dist/commands/slash/model.d.ts +0 -60
- package/dist/commands/slash/model.d.ts.map +0 -1
- package/dist/commands/slash/model.js +0 -466
- package/dist/commands/slash/model.js.map +0 -1
- package/dist/commands/slash/personality.d.ts +0 -40
- package/dist/commands/slash/personality.d.ts.map +0 -1
- package/dist/commands/slash/personality.js +0 -272
- package/dist/commands/slash/personality.js.map +0 -1
- package/dist/commands/slash/purge.d.ts +0 -42
- package/dist/commands/slash/purge.d.ts.map +0 -1
- package/dist/commands/slash/purge.js +0 -233
- package/dist/commands/slash/purge.js.map +0 -1
- package/dist/commands/slash/reset.d.ts +0 -44
- package/dist/commands/slash/reset.d.ts.map +0 -1
- package/dist/commands/slash/reset.js +0 -326
- package/dist/commands/slash/reset.js.map +0 -1
- package/dist/commands/slash/skills.d.ts +0 -40
- package/dist/commands/slash/skills.d.ts.map +0 -1
- package/dist/commands/slash/skills.js +0 -207
- package/dist/commands/slash/skills.js.map +0 -1
- package/dist/commands/slash/tokens.d.ts +0 -34
- package/dist/commands/slash/tokens.d.ts.map +0 -1
- package/dist/commands/slash/tokens.js +0 -205
- package/dist/commands/slash/tokens.js.map +0 -1
- package/dist/commands/slash/unleash.d.ts +0 -50
- package/dist/commands/slash/unleash.d.ts.map +0 -1
- package/dist/commands/slash/unleash.js +0 -262
- package/dist/commands/slash/unleash.js.map +0 -1
- package/dist/commands/slash/update.d.ts +0 -34
- package/dist/commands/slash/update.d.ts.map +0 -1
- package/dist/commands/slash/update.js +0 -364
- package/dist/commands/slash/update.js.map +0 -1
- package/dist/commands/slash/wrap.d.ts +0 -18
- package/dist/commands/slash/wrap.d.ts.map +0 -1
- package/dist/commands/slash/wrap.js +0 -21
- package/dist/commands/slash/wrap.js.map +0 -1
- package/dist/commands/tokens.d.ts +0 -26
- package/dist/commands/tokens.d.ts.map +0 -1
- package/dist/commands/tokens.js +0 -245
- package/dist/commands/tokens.js.map +0 -1
- package/dist/constants/builtin-agents.d.ts +0 -27
- package/dist/constants/builtin-agents.d.ts.map +0 -1
- package/dist/constants/builtin-agents.js +0 -710
- package/dist/constants/builtin-agents.js.map +0 -1
- package/dist/constants/builtin-skills.d.ts +0 -32
- package/dist/constants/builtin-skills.d.ts.map +0 -1
- package/dist/constants/builtin-skills.js +0 -389
- package/dist/constants/builtin-skills.js.map +0 -1
- package/dist/constants/defaults.d.ts +0 -448
- package/dist/constants/defaults.d.ts.map +0 -1
- package/dist/constants/defaults.js +0 -829
- package/dist/constants/defaults.js.map +0 -1
- package/dist/constants/index.d.ts +0 -27
- package/dist/constants/index.d.ts.map +0 -1
- package/dist/constants/index.js +0 -85
- package/dist/constants/index.js.map +0 -1
- package/dist/constants/install-hints.d.ts +0 -7
- package/dist/constants/install-hints.d.ts.map +0 -1
- package/dist/constants/install-hints.js +0 -123
- package/dist/constants/install-hints.js.map +0 -1
- package/dist/constants/models.d.ts +0 -255
- package/dist/constants/models.d.ts.map +0 -1
- package/dist/constants/models.js +0 -596
- package/dist/constants/models.js.map +0 -1
- package/dist/constants/schedule.d.ts +0 -43
- package/dist/constants/schedule.d.ts.map +0 -1
- package/dist/constants/schedule.js +0 -110
- package/dist/constants/schedule.js.map +0 -1
- package/dist/constants/system-utilities.d.ts +0 -57
- package/dist/constants/system-utilities.d.ts.map +0 -1
- package/dist/constants/system-utilities.js +0 -421
- package/dist/constants/system-utilities.js.map +0 -1
- package/dist/constants/token-limits.d.ts +0 -102
- package/dist/constants/token-limits.d.ts.map +0 -1
- package/dist/constants/token-limits.js +0 -286
- package/dist/constants/token-limits.js.map +0 -1
- package/dist/core/autocomplete.d.ts +0 -132
- package/dist/core/autocomplete.d.ts.map +0 -1
- package/dist/core/autocomplete.js +0 -653
- package/dist/core/autocomplete.js.map +0 -1
- package/dist/core/command-parser.d.ts +0 -301
- package/dist/core/command-parser.d.ts.map +0 -1
- package/dist/core/command-parser.js +0 -526
- package/dist/core/command-parser.js.map +0 -1
- package/dist/core/context-builder.d.ts +0 -264
- package/dist/core/context-builder.d.ts.map +0 -1
- package/dist/core/context-builder.js +0 -1018
- package/dist/core/context-builder.js.map +0 -1
- package/dist/core/event-emitter.d.ts +0 -411
- package/dist/core/event-emitter.d.ts.map +0 -1
- package/dist/core/event-emitter.js +0 -138
- package/dist/core/event-emitter.js.map +0 -1
- package/dist/core/history-manager.d.ts +0 -62
- package/dist/core/history-manager.d.ts.map +0 -1
- package/dist/core/history-manager.js +0 -151
- package/dist/core/history-manager.js.map +0 -1
- package/dist/core/slash-command-handler.d.ts +0 -352
- package/dist/core/slash-command-handler.d.ts.map +0 -1
- package/dist/core/slash-command-handler.js +0 -563
- package/dist/core/slash-command-handler.js.map +0 -1
- package/dist/core/task-processor.d.ts +0 -179
- package/dist/core/task-processor.d.ts.map +0 -1
- package/dist/core/task-processor.js +0 -519
- package/dist/core/task-processor.js.map +0 -1
- package/dist/index.d.ts +0 -90
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/prompts/agent-prompt-generator.d.ts +0 -26
- package/dist/prompts/agent-prompt-generator.d.ts.map +0 -1
- package/dist/prompts/agent-prompt-generator.js +0 -244
- package/dist/prompts/agent-prompt-generator.js.map +0 -1
- package/dist/prompts/commit-message.d.ts +0 -35
- package/dist/prompts/commit-message.d.ts.map +0 -1
- package/dist/prompts/commit-message.js +0 -187
- package/dist/prompts/commit-message.js.map +0 -1
- package/dist/prompts/conversation.d.ts +0 -51
- package/dist/prompts/conversation.d.ts.map +0 -1
- package/dist/prompts/conversation.js +0 -115
- package/dist/prompts/conversation.js.map +0 -1
- package/dist/prompts/index.d.ts +0 -39
- package/dist/prompts/index.d.ts.map +0 -1
- package/dist/prompts/index.js +0 -74
- package/dist/prompts/index.js.map +0 -1
- package/dist/prompts/memory.d.ts +0 -6
- package/dist/prompts/memory.d.ts.map +0 -1
- package/dist/prompts/memory.js +0 -29
- package/dist/prompts/memory.js.map +0 -1
- package/dist/prompts/personality.d.ts +0 -77
- package/dist/prompts/personality.d.ts.map +0 -1
- package/dist/prompts/personality.js +0 -393
- package/dist/prompts/personality.js.map +0 -1
- package/dist/prompts/plan-generator.d.ts +0 -144
- package/dist/prompts/plan-generator.d.ts.map +0 -1
- package/dist/prompts/plan-generator.js +0 -553
- package/dist/prompts/plan-generator.js.map +0 -1
- package/dist/prompts/system.d.ts +0 -95
- package/dist/prompts/system.d.ts.map +0 -1
- package/dist/prompts/system.js +0 -461
- package/dist/prompts/system.js.map +0 -1
- package/dist/prompts/task-processor.d.ts +0 -94
- package/dist/prompts/task-processor.d.ts.map +0 -1
- package/dist/prompts/task-processor.js +0 -554
- package/dist/prompts/task-processor.js.map +0 -1
- package/dist/prompts/unguarded.d.ts +0 -78
- package/dist/prompts/unguarded.d.ts.map +0 -1
- package/dist/prompts/unguarded.js +0 -418
- package/dist/prompts/unguarded.js.map +0 -1
- package/dist/prompts/utils.d.ts +0 -73
- package/dist/prompts/utils.d.ts.map +0 -1
- package/dist/prompts/utils.js +0 -114
- package/dist/prompts/utils.js.map +0 -1
- package/dist/prompts/workflow.d.ts +0 -241
- package/dist/prompts/workflow.d.ts.map +0 -1
- package/dist/prompts/workflow.js +0 -608
- package/dist/prompts/workflow.js.map +0 -1
- package/dist/services/action-logger.d.ts +0 -383
- package/dist/services/action-logger.d.ts.map +0 -1
- package/dist/services/action-logger.js +0 -544
- package/dist/services/action-logger.js.map +0 -1
- package/dist/services/agent-budget-allocator.d.ts +0 -111
- package/dist/services/agent-budget-allocator.d.ts.map +0 -1
- package/dist/services/agent-budget-allocator.js +0 -278
- package/dist/services/agent-budget-allocator.js.map +0 -1
- package/dist/services/agent-manager.d.ts +0 -181
- package/dist/services/agent-manager.d.ts.map +0 -1
- package/dist/services/agent-manager.js +0 -749
- package/dist/services/agent-manager.js.map +0 -1
- package/dist/services/agent-spawner.d.ts +0 -138
- package/dist/services/agent-spawner.d.ts.map +0 -1
- package/dist/services/agent-spawner.js +0 -748
- package/dist/services/agent-spawner.js.map +0 -1
- package/dist/services/agent-state-service.d.ts +0 -145
- package/dist/services/agent-state-service.d.ts.map +0 -1
- package/dist/services/agent-state-service.js +0 -247
- package/dist/services/agent-state-service.js.map +0 -1
- package/dist/services/anthropic-client.d.ts +0 -357
- package/dist/services/anthropic-client.d.ts.map +0 -1
- package/dist/services/anthropic-client.js +0 -1451
- package/dist/services/anthropic-client.js.map +0 -1
- package/dist/services/approval-manager.d.ts +0 -385
- package/dist/services/approval-manager.d.ts.map +0 -1
- package/dist/services/approval-manager.js +0 -1044
- package/dist/services/approval-manager.js.map +0 -1
- package/dist/services/audit-logger.d.ts +0 -245
- package/dist/services/audit-logger.d.ts.map +0 -1
- package/dist/services/audit-logger.js +0 -324
- package/dist/services/audit-logger.js.map +0 -1
- package/dist/services/backup-manager.d.ts +0 -136
- package/dist/services/backup-manager.d.ts.map +0 -1
- package/dist/services/backup-manager.js +0 -260
- package/dist/services/backup-manager.js.map +0 -1
- package/dist/services/cache-service.d.ts +0 -247
- package/dist/services/cache-service.d.ts.map +0 -1
- package/dist/services/cache-service.js +0 -558
- package/dist/services/cache-service.js.map +0 -1
- package/dist/services/chat-archival-service.d.ts +0 -108
- package/dist/services/chat-archival-service.d.ts.map +0 -1
- package/dist/services/chat-archival-service.js +0 -465
- package/dist/services/chat-archival-service.js.map +0 -1
- package/dist/services/codebase-indexer.d.ts +0 -272
- package/dist/services/codebase-indexer.d.ts.map +0 -1
- package/dist/services/codebase-indexer.js +0 -863
- package/dist/services/codebase-indexer.js.map +0 -1
- package/dist/services/compass-auth-service.d.ts +0 -204
- package/dist/services/compass-auth-service.d.ts.map +0 -1
- package/dist/services/compass-auth-service.js +0 -391
- package/dist/services/compass-auth-service.js.map +0 -1
- package/dist/services/complexity-classifier.d.ts +0 -208
- package/dist/services/complexity-classifier.d.ts.map +0 -1
- package/dist/services/complexity-classifier.js +0 -1410
- package/dist/services/complexity-classifier.js.map +0 -1
- package/dist/services/config-manager.d.ts +0 -278
- package/dist/services/config-manager.d.ts.map +0 -1
- package/dist/services/config-manager.js +0 -651
- package/dist/services/config-manager.js.map +0 -1
- package/dist/services/consent-manager.d.ts +0 -239
- package/dist/services/consent-manager.d.ts.map +0 -1
- package/dist/services/consent-manager.js +0 -516
- package/dist/services/consent-manager.js.map +0 -1
- package/dist/services/conversation-compactor.d.ts +0 -223
- package/dist/services/conversation-compactor.d.ts.map +0 -1
- package/dist/services/conversation-compactor.js +0 -750
- package/dist/services/conversation-compactor.js.map +0 -1
- package/dist/services/cost-tracker.d.ts +0 -167
- package/dist/services/cost-tracker.d.ts.map +0 -1
- package/dist/services/cost-tracker.js +0 -199
- package/dist/services/cost-tracker.js.map +0 -1
- package/dist/services/credential-store.d.ts +0 -273
- package/dist/services/credential-store.d.ts.map +0 -1
- package/dist/services/credential-store.js +0 -877
- package/dist/services/credential-store.js.map +0 -1
- package/dist/services/custom-command-service.d.ts +0 -112
- package/dist/services/custom-command-service.d.ts.map +0 -1
- package/dist/services/custom-command-service.js +0 -464
- package/dist/services/custom-command-service.js.map +0 -1
- package/dist/services/default-statusline-renderer.d.ts +0 -60
- package/dist/services/default-statusline-renderer.d.ts.map +0 -1
- package/dist/services/default-statusline-renderer.js +0 -110
- package/dist/services/default-statusline-renderer.js.map +0 -1
- package/dist/services/enhanced-context-gatherer.d.ts +0 -116
- package/dist/services/enhanced-context-gatherer.d.ts.map +0 -1
- package/dist/services/enhanced-context-gatherer.js +0 -605
- package/dist/services/enhanced-context-gatherer.js.map +0 -1
- package/dist/services/file-hash-tracker.d.ts +0 -95
- package/dist/services/file-hash-tracker.d.ts.map +0 -1
- package/dist/services/file-hash-tracker.js +0 -199
- package/dist/services/file-hash-tracker.js.map +0 -1
- package/dist/services/file-service.d.ts +0 -274
- package/dist/services/file-service.d.ts.map +0 -1
- package/dist/services/file-service.js +0 -876
- package/dist/services/file-service.js.map +0 -1
- package/dist/services/git-service.d.ts +0 -536
- package/dist/services/git-service.d.ts.map +0 -1
- package/dist/services/git-service.js +0 -1215
- package/dist/services/git-service.js.map +0 -1
- package/dist/services/hook-service.d.ts +0 -148
- package/dist/services/hook-service.d.ts.map +0 -1
- package/dist/services/hook-service.js +0 -705
- package/dist/services/hook-service.js.map +0 -1
- package/dist/services/ide-state-service.d.ts +0 -114
- package/dist/services/ide-state-service.d.ts.map +0 -1
- package/dist/services/ide-state-service.js +0 -204
- package/dist/services/ide-state-service.js.map +0 -1
- package/dist/services/interactive-clarifier.d.ts +0 -90
- package/dist/services/interactive-clarifier.d.ts.map +0 -1
- package/dist/services/interactive-clarifier.js +0 -446
- package/dist/services/interactive-clarifier.js.map +0 -1
- package/dist/services/iteration-scoper.d.ts +0 -225
- package/dist/services/iteration-scoper.d.ts.map +0 -1
- package/dist/services/iteration-scoper.js +0 -387
- package/dist/services/iteration-scoper.js.map +0 -1
- package/dist/services/llm-plan-generator.d.ts +0 -44
- package/dist/services/llm-plan-generator.d.ts.map +0 -1
- package/dist/services/llm-plan-generator.js +0 -863
- package/dist/services/llm-plan-generator.js.map +0 -1
- package/dist/services/llm-system-prompt-generator.d.ts +0 -85
- package/dist/services/llm-system-prompt-generator.d.ts.map +0 -1
- package/dist/services/llm-system-prompt-generator.js +0 -257
- package/dist/services/llm-system-prompt-generator.js.map +0 -1
- package/dist/services/log-interpreter.d.ts +0 -190
- package/dist/services/log-interpreter.d.ts.map +0 -1
- package/dist/services/log-interpreter.js +0 -520
- package/dist/services/log-interpreter.js.map +0 -1
- package/dist/services/mcp-config-manager.d.ts +0 -141
- package/dist/services/mcp-config-manager.d.ts.map +0 -1
- package/dist/services/mcp-config-manager.js +0 -678
- package/dist/services/mcp-config-manager.js.map +0 -1
- package/dist/services/mcp-oauth-service.d.ts +0 -170
- package/dist/services/mcp-oauth-service.d.ts.map +0 -1
- package/dist/services/mcp-oauth-service.js +0 -892
- package/dist/services/mcp-oauth-service.js.map +0 -1
- package/dist/services/mcp-plugin-support.d.ts +0 -81
- package/dist/services/mcp-plugin-support.d.ts.map +0 -1
- package/dist/services/mcp-plugin-support.js +0 -305
- package/dist/services/mcp-plugin-support.js.map +0 -1
- package/dist/services/mcp-server-manager.d.ts +0 -134
- package/dist/services/mcp-server-manager.d.ts.map +0 -1
- package/dist/services/mcp-server-manager.js +0 -613
- package/dist/services/mcp-server-manager.js.map +0 -1
- package/dist/services/mcp-tool-integration.d.ts +0 -119
- package/dist/services/mcp-tool-integration.d.ts.map +0 -1
- package/dist/services/mcp-tool-integration.js +0 -381
- package/dist/services/mcp-tool-integration.js.map +0 -1
- package/dist/services/mcp-transport.d.ts +0 -105
- package/dist/services/mcp-transport.d.ts.map +0 -1
- package/dist/services/mcp-transport.js +0 -1316
- package/dist/services/mcp-transport.js.map +0 -1
- package/dist/services/memory-service.d.ts +0 -55
- package/dist/services/memory-service.d.ts.map +0 -1
- package/dist/services/memory-service.js +0 -251
- package/dist/services/memory-service.js.map +0 -1
- package/dist/services/model-availability.d.ts +0 -64
- package/dist/services/model-availability.d.ts.map +0 -1
- package/dist/services/model-availability.js +0 -114
- package/dist/services/model-availability.js.map +0 -1
- package/dist/services/plan-generator.d.ts +0 -98
- package/dist/services/plan-generator.d.ts.map +0 -1
- package/dist/services/plan-generator.js +0 -658
- package/dist/services/plan-generator.js.map +0 -1
- package/dist/services/plan-mode-fallback.d.ts +0 -80
- package/dist/services/plan-mode-fallback.d.ts.map +0 -1
- package/dist/services/plan-mode-fallback.js +0 -307
- package/dist/services/plan-mode-fallback.js.map +0 -1
- package/dist/services/plan-mode-handler.d.ts +0 -42
- package/dist/services/plan-mode-handler.d.ts.map +0 -1
- package/dist/services/plan-mode-handler.js +0 -388
- package/dist/services/plan-mode-handler.js.map +0 -1
- package/dist/services/plan-persistence.d.ts +0 -203
- package/dist/services/plan-persistence.d.ts.map +0 -1
- package/dist/services/plan-persistence.js +0 -538
- package/dist/services/plan-persistence.js.map +0 -1
- package/dist/services/prompt-preprocessor.d.ts +0 -73
- package/dist/services/prompt-preprocessor.d.ts.map +0 -1
- package/dist/services/prompt-preprocessor.js +0 -146
- package/dist/services/prompt-preprocessor.js.map +0 -1
- package/dist/services/rating-service.d.ts +0 -84
- package/dist/services/rating-service.d.ts.map +0 -1
- package/dist/services/rating-service.js +0 -171
- package/dist/services/rating-service.js.map +0 -1
- package/dist/services/rating-state-manager.d.ts +0 -131
- package/dist/services/rating-state-manager.d.ts.map +0 -1
- package/dist/services/rating-state-manager.js +0 -270
- package/dist/services/rating-state-manager.js.map +0 -1
- package/dist/services/sdk-runner.d.ts +0 -113
- package/dist/services/sdk-runner.d.ts.map +0 -1
- package/dist/services/sdk-runner.js +0 -1424
- package/dist/services/sdk-runner.js.map +0 -1
- package/dist/services/session-manager.d.ts +0 -528
- package/dist/services/session-manager.d.ts.map +0 -1
- package/dist/services/session-manager.js +0 -1184
- package/dist/services/session-manager.js.map +0 -1
- package/dist/services/shell-executor.d.ts +0 -337
- package/dist/services/shell-executor.d.ts.map +0 -1
- package/dist/services/shell-executor.js +0 -1201
- package/dist/services/shell-executor.js.map +0 -1
- package/dist/services/skill-service.d.ts +0 -149
- package/dist/services/skill-service.d.ts.map +0 -1
- package/dist/services/skill-service.js +0 -594
- package/dist/services/skill-service.js.map +0 -1
- package/dist/services/statusline-executor.d.ts +0 -102
- package/dist/services/statusline-executor.d.ts.map +0 -1
- package/dist/services/statusline-executor.js +0 -305
- package/dist/services/statusline-executor.js.map +0 -1
- package/dist/services/step-tracker.d.ts +0 -356
- package/dist/services/step-tracker.d.ts.map +0 -1
- package/dist/services/step-tracker.js +0 -634
- package/dist/services/step-tracker.js.map +0 -1
- package/dist/services/system-event-logger.d.ts +0 -473
- package/dist/services/system-event-logger.d.ts.map +0 -1
- package/dist/services/system-event-logger.js +0 -790
- package/dist/services/system-event-logger.js.map +0 -1
- package/dist/services/system-utility-detector.d.ts +0 -91
- package/dist/services/system-utility-detector.d.ts.map +0 -1
- package/dist/services/system-utility-detector.js +0 -238
- package/dist/services/system-utility-detector.js.map +0 -1
- package/dist/services/team-context-store.d.ts +0 -100
- package/dist/services/team-context-store.d.ts.map +0 -1
- package/dist/services/team-context-store.js +0 -513
- package/dist/services/team-context-store.js.map +0 -1
- package/dist/services/temp-file-service.d.ts +0 -164
- package/dist/services/temp-file-service.d.ts.map +0 -1
- package/dist/services/temp-file-service.js +0 -303
- package/dist/services/temp-file-service.js.map +0 -1
- package/dist/services/token-limit-enforcer.d.ts +0 -53
- package/dist/services/token-limit-enforcer.d.ts.map +0 -1
- package/dist/services/token-limit-enforcer.js +0 -90
- package/dist/services/token-limit-enforcer.js.map +0 -1
- package/dist/services/token-limit-store.d.ts +0 -105
- package/dist/services/token-limit-store.d.ts.map +0 -1
- package/dist/services/token-limit-store.js +0 -288
- package/dist/services/token-limit-store.js.map +0 -1
- package/dist/services/token-tracker.d.ts +0 -290
- package/dist/services/token-tracker.d.ts.map +0 -1
- package/dist/services/token-tracker.js +0 -751
- package/dist/services/token-tracker.js.map +0 -1
- package/dist/services/tool-registry.d.ts +0 -302
- package/dist/services/tool-registry.d.ts.map +0 -1
- package/dist/services/tool-registry.js +0 -606
- package/dist/services/tool-registry.js.map +0 -1
- package/dist/services/tools-logger.d.ts +0 -152
- package/dist/services/tools-logger.d.ts.map +0 -1
- package/dist/services/tools-logger.js +0 -222
- package/dist/services/tools-logger.js.map +0 -1
- package/dist/services/update-plan-handler.d.ts +0 -56
- package/dist/services/update-plan-handler.d.ts.map +0 -1
- package/dist/services/update-plan-handler.js +0 -372
- package/dist/services/update-plan-handler.js.map +0 -1
- package/dist/services/update-service.d.ts +0 -197
- package/dist/services/update-service.d.ts.map +0 -1
- package/dist/services/update-service.js +0 -749
- package/dist/services/update-service.js.map +0 -1
- package/dist/services/verifier.d.ts +0 -113
- package/dist/services/verifier.d.ts.map +0 -1
- package/dist/services/verifier.js +0 -541
- package/dist/services/verifier.js.map +0 -1
- package/dist/services/workflow-manager.d.ts +0 -277
- package/dist/services/workflow-manager.d.ts.map +0 -1
- package/dist/services/workflow-manager.js +0 -616
- package/dist/services/workflow-manager.js.map +0 -1
- package/dist/services/workflow-orchestrator.d.ts +0 -148
- package/dist/services/workflow-orchestrator.d.ts.map +0 -1
- package/dist/services/workflow-orchestrator.js +0 -617
- package/dist/services/workflow-orchestrator.js.map +0 -1
- package/dist/services/worktree-manager.d.ts +0 -36
- package/dist/services/worktree-manager.d.ts.map +0 -1
- package/dist/services/worktree-manager.js +0 -185
- package/dist/services/worktree-manager.js.map +0 -1
- package/dist/templates/ascii-art.d.ts +0 -136
- package/dist/templates/ascii-art.d.ts.map +0 -1
- package/dist/templates/ascii-art.js +0 -286
- package/dist/templates/ascii-art.js.map +0 -1
- package/dist/templates/help.d.ts +0 -186
- package/dist/templates/help.d.ts.map +0 -1
- package/dist/templates/help.js +0 -588
- package/dist/templates/help.js.map +0 -1
- package/dist/templates/prompts/workflow-prompts.d.ts +0 -9
- package/dist/templates/prompts/workflow-prompts.d.ts.map +0 -1
- package/dist/templates/prompts/workflow-prompts.js +0 -9
- package/dist/templates/prompts/workflow-prompts.js.map +0 -1
- package/dist/tools/agent-tools.d.ts +0 -9
- package/dist/tools/agent-tools.d.ts.map +0 -1
- package/dist/tools/agent-tools.js +0 -349
- package/dist/tools/agent-tools.js.map +0 -1
- package/dist/tools/edit-replacers.d.ts +0 -90
- package/dist/tools/edit-replacers.d.ts.map +0 -1
- package/dist/tools/edit-replacers.js +0 -553
- package/dist/tools/edit-replacers.js.map +0 -1
- package/dist/tools/file-tools.d.ts +0 -13
- package/dist/tools/file-tools.d.ts.map +0 -1
- package/dist/tools/file-tools.js +0 -954
- package/dist/tools/file-tools.js.map +0 -1
- package/dist/tools/git-tools.d.ts +0 -9
- package/dist/tools/git-tools.d.ts.map +0 -1
- package/dist/tools/git-tools.js +0 -261
- package/dist/tools/git-tools.js.map +0 -1
- package/dist/tools/index.d.ts +0 -13
- package/dist/tools/index.d.ts.map +0 -1
- package/dist/tools/index.js +0 -70
- package/dist/tools/index.js.map +0 -1
- package/dist/tools/network-tools.d.ts +0 -8
- package/dist/tools/network-tools.d.ts.map +0 -1
- package/dist/tools/network-tools.js +0 -261
- package/dist/tools/network-tools.js.map +0 -1
- package/dist/tools/openai-tools.d.ts +0 -16
- package/dist/tools/openai-tools.d.ts.map +0 -1
- package/dist/tools/openai-tools.js +0 -385
- package/dist/tools/openai-tools.js.map +0 -1
- package/dist/tools/plan-tools.d.ts +0 -9
- package/dist/tools/plan-tools.d.ts.map +0 -1
- package/dist/tools/plan-tools.js +0 -223
- package/dist/tools/plan-tools.js.map +0 -1
- package/dist/tools/schedule-tools.d.ts +0 -9
- package/dist/tools/schedule-tools.d.ts.map +0 -1
- package/dist/tools/schedule-tools.js +0 -405
- package/dist/tools/schedule-tools.js.map +0 -1
- package/dist/tools/search-tools.d.ts +0 -8
- package/dist/tools/search-tools.d.ts.map +0 -1
- package/dist/tools/search-tools.js +0 -357
- package/dist/tools/search-tools.js.map +0 -1
- package/dist/tools/shared-utils.d.ts +0 -91
- package/dist/tools/shared-utils.d.ts.map +0 -1
- package/dist/tools/shared-utils.js +0 -385
- package/dist/tools/shared-utils.js.map +0 -1
- package/dist/tools/shell-tools.d.ts +0 -9
- package/dist/tools/shell-tools.d.ts.map +0 -1
- package/dist/tools/shell-tools.js +0 -409
- package/dist/tools/shell-tools.js.map +0 -1
- package/dist/tools/skill-tools.d.ts +0 -13
- package/dist/tools/skill-tools.d.ts.map +0 -1
- package/dist/tools/skill-tools.js +0 -244
- package/dist/tools/skill-tools.js.map +0 -1
- package/dist/tools/swarm-tools.d.ts +0 -9
- package/dist/tools/swarm-tools.d.ts.map +0 -1
- package/dist/tools/swarm-tools.js +0 -422
- package/dist/tools/swarm-tools.js.map +0 -1
- package/dist/tools/user-tools.d.ts +0 -13
- package/dist/tools/user-tools.d.ts.map +0 -1
- package/dist/tools/user-tools.js +0 -232
- package/dist/tools/user-tools.js.map +0 -1
- package/dist/types/agent-process.d.ts +0 -244
- package/dist/types/agent-process.d.ts.map +0 -1
- package/dist/types/agent-process.js +0 -93
- package/dist/types/agent-process.js.map +0 -1
- package/dist/types/agent.d.ts +0 -358
- package/dist/types/agent.d.ts.map +0 -1
- package/dist/types/agent.js +0 -171
- package/dist/types/agent.js.map +0 -1
- package/dist/types/anthropic.d.ts +0 -438
- package/dist/types/anthropic.d.ts.map +0 -1
- package/dist/types/anthropic.js +0 -9
- package/dist/types/anthropic.js.map +0 -1
- package/dist/types/approval.d.ts +0 -332
- package/dist/types/approval.d.ts.map +0 -1
- package/dist/types/approval.js +0 -44
- package/dist/types/approval.js.map +0 -1
- package/dist/types/autocomplete.d.ts +0 -57
- package/dist/types/autocomplete.d.ts.map +0 -1
- package/dist/types/autocomplete.js +0 -7
- package/dist/types/autocomplete.js.map +0 -1
- package/dist/types/chat-archive.d.ts +0 -161
- package/dist/types/chat-archive.d.ts.map +0 -1
- package/dist/types/chat-archive.js +0 -36
- package/dist/types/chat-archive.js.map +0 -1
- package/dist/types/config.d.ts +0 -268
- package/dist/types/config.d.ts.map +0 -1
- package/dist/types/config.js +0 -188
- package/dist/types/config.js.map +0 -1
- package/dist/types/consent.d.ts +0 -191
- package/dist/types/consent.d.ts.map +0 -1
- package/dist/types/consent.js +0 -119
- package/dist/types/consent.js.map +0 -1
- package/dist/types/custom-command.d.ts +0 -139
- package/dist/types/custom-command.d.ts.map +0 -1
- package/dist/types/custom-command.js +0 -7
- package/dist/types/custom-command.js.map +0 -1
- package/dist/types/git.d.ts +0 -20
- package/dist/types/git.d.ts.map +0 -1
- package/dist/types/git.js +0 -2
- package/dist/types/git.js.map +0 -1
- package/dist/types/hook.d.ts +0 -342
- package/dist/types/hook.d.ts.map +0 -1
- package/dist/types/hook.js +0 -84
- package/dist/types/hook.js.map +0 -1
- package/dist/types/index.d.ts +0 -86
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -71
- package/dist/types/index.js.map +0 -1
- package/dist/types/mcp.d.ts +0 -456
- package/dist/types/mcp.d.ts.map +0 -1
- package/dist/types/mcp.js +0 -94
- package/dist/types/mcp.js.map +0 -1
- package/dist/types/rating.d.ts +0 -110
- package/dist/types/rating.d.ts.map +0 -1
- package/dist/types/rating.js +0 -53
- package/dist/types/rating.js.map +0 -1
- package/dist/types/schedule.d.ts +0 -91
- package/dist/types/schedule.d.ts.map +0 -1
- package/dist/types/schedule.js +0 -8
- package/dist/types/schedule.js.map +0 -1
- package/dist/types/session.d.ts +0 -361
- package/dist/types/session.d.ts.map +0 -1
- package/dist/types/session.js +0 -9
- package/dist/types/session.js.map +0 -1
- package/dist/types/skill.d.ts +0 -258
- package/dist/types/skill.d.ts.map +0 -1
- package/dist/types/skill.js +0 -79
- package/dist/types/skill.js.map +0 -1
- package/dist/types/statusline.d.ts +0 -212
- package/dist/types/statusline.d.ts.map +0 -1
- package/dist/types/statusline.js +0 -8
- package/dist/types/statusline.js.map +0 -1
- package/dist/types/stream.d.ts +0 -61
- package/dist/types/stream.d.ts.map +0 -1
- package/dist/types/stream.js +0 -17
- package/dist/types/stream.js.map +0 -1
- package/dist/types/swarm.d.ts +0 -132
- package/dist/types/swarm.d.ts.map +0 -1
- package/dist/types/swarm.js +0 -21
- package/dist/types/swarm.js.map +0 -1
- package/dist/types/token-limits.d.ts +0 -107
- package/dist/types/token-limits.d.ts.map +0 -1
- package/dist/types/token-limits.js +0 -57
- package/dist/types/token-limits.js.map +0 -1
- package/dist/types/token.d.ts +0 -329
- package/dist/types/token.d.ts.map +0 -1
- package/dist/types/token.js +0 -9
- package/dist/types/token.js.map +0 -1
- package/dist/types/update.d.ts +0 -189
- package/dist/types/update.d.ts.map +0 -1
- package/dist/types/update.js +0 -55
- package/dist/types/update.js.map +0 -1
- package/dist/types/workflow.d.ts +0 -396
- package/dist/types/workflow.d.ts.map +0 -1
- package/dist/types/workflow.js +0 -46
- package/dist/types/workflow.js.map +0 -1
- package/dist/ui/App.d.ts +0 -62
- package/dist/ui/App.d.ts.map +0 -1
- package/dist/ui/App.js +0 -511
- package/dist/ui/App.js.map +0 -1
- package/dist/ui/InteractiveSession.d.ts +0 -34
- package/dist/ui/InteractiveSession.d.ts.map +0 -1
- package/dist/ui/InteractiveSession.js +0 -3611
- package/dist/ui/InteractiveSession.js.map +0 -1
- package/dist/ui/MCPApprovalPrompt.d.ts +0 -27
- package/dist/ui/MCPApprovalPrompt.d.ts.map +0 -1
- package/dist/ui/MCPApprovalPrompt.js +0 -51
- package/dist/ui/MCPApprovalPrompt.js.map +0 -1
- package/dist/ui/SetupWizard.d.ts +0 -26
- package/dist/ui/SetupWizard.d.ts.map +0 -1
- package/dist/ui/SetupWizard.js +0 -396
- package/dist/ui/SetupWizard.js.map +0 -1
- package/dist/ui/components/AgentCreationWizard.d.ts +0 -36
- package/dist/ui/components/AgentCreationWizard.d.ts.map +0 -1
- package/dist/ui/components/AgentCreationWizard.js +0 -619
- package/dist/ui/components/AgentCreationWizard.js.map +0 -1
- package/dist/ui/components/AgentManager.d.ts +0 -41
- package/dist/ui/components/AgentManager.d.ts.map +0 -1
- package/dist/ui/components/AgentManager.js +0 -343
- package/dist/ui/components/AgentManager.js.map +0 -1
- package/dist/ui/components/ApprovalDialog.d.ts +0 -18
- package/dist/ui/components/ApprovalDialog.d.ts.map +0 -1
- package/dist/ui/components/ApprovalDialog.js +0 -439
- package/dist/ui/components/ApprovalDialog.js.map +0 -1
- package/dist/ui/components/AsciiArt.d.ts +0 -54
- package/dist/ui/components/AsciiArt.d.ts.map +0 -1
- package/dist/ui/components/AsciiArt.js +0 -89
- package/dist/ui/components/AsciiArt.js.map +0 -1
- package/dist/ui/components/ClarificationWizard.d.ts +0 -36
- package/dist/ui/components/ClarificationWizard.d.ts.map +0 -1
- package/dist/ui/components/ClarificationWizard.js +0 -407
- package/dist/ui/components/ClarificationWizard.js.map +0 -1
- package/dist/ui/components/CompassSpinner.d.ts +0 -15
- package/dist/ui/components/CompassSpinner.d.ts.map +0 -1
- package/dist/ui/components/CompassSpinner.js +0 -50
- package/dist/ui/components/CompassSpinner.js.map +0 -1
- package/dist/ui/components/ConfirmationSelector.d.ts +0 -45
- package/dist/ui/components/ConfirmationSelector.d.ts.map +0 -1
- package/dist/ui/components/ConfirmationSelector.js +0 -106
- package/dist/ui/components/ConfirmationSelector.js.map +0 -1
- package/dist/ui/components/ContextUsage.d.ts +0 -76
- package/dist/ui/components/ContextUsage.d.ts.map +0 -1
- package/dist/ui/components/ContextUsage.js +0 -188
- package/dist/ui/components/ContextUsage.js.map +0 -1
- package/dist/ui/components/DiffPreview.d.ts +0 -13
- package/dist/ui/components/DiffPreview.d.ts.map +0 -1
- package/dist/ui/components/DiffPreview.js +0 -30
- package/dist/ui/components/DiffPreview.js.map +0 -1
- package/dist/ui/components/ExecutionModeSelector.d.ts +0 -45
- package/dist/ui/components/ExecutionModeSelector.d.ts.map +0 -1
- package/dist/ui/components/ExecutionModeSelector.js +0 -120
- package/dist/ui/components/ExecutionModeSelector.js.map +0 -1
- package/dist/ui/components/FileTree.d.ts +0 -47
- package/dist/ui/components/FileTree.d.ts.map +0 -1
- package/dist/ui/components/FileTree.js +0 -258
- package/dist/ui/components/FileTree.js.map +0 -1
- package/dist/ui/components/HelpMenu.d.ts +0 -49
- package/dist/ui/components/HelpMenu.d.ts.map +0 -1
- package/dist/ui/components/HelpMenu.js +0 -91
- package/dist/ui/components/HelpMenu.js.map +0 -1
- package/dist/ui/components/InterleavedStream.d.ts +0 -42
- package/dist/ui/components/InterleavedStream.d.ts.map +0 -1
- package/dist/ui/components/InterleavedStream.js +0 -1500
- package/dist/ui/components/InterleavedStream.js.map +0 -1
- package/dist/ui/components/ModelSelector.d.ts +0 -81
- package/dist/ui/components/ModelSelector.d.ts.map +0 -1
- package/dist/ui/components/ModelSelector.js +0 -305
- package/dist/ui/components/ModelSelector.js.map +0 -1
- package/dist/ui/components/PlanApprovalDialog.d.ts +0 -21
- package/dist/ui/components/PlanApprovalDialog.d.ts.map +0 -1
- package/dist/ui/components/PlanApprovalDialog.js +0 -189
- package/dist/ui/components/PlanApprovalDialog.js.map +0 -1
- package/dist/ui/components/PlanExecutionTracker.d.ts +0 -53
- package/dist/ui/components/PlanExecutionTracker.d.ts.map +0 -1
- package/dist/ui/components/PlanExecutionTracker.js +0 -113
- package/dist/ui/components/PlanExecutionTracker.js.map +0 -1
- package/dist/ui/components/ProgressIndicator.d.ts +0 -151
- package/dist/ui/components/ProgressIndicator.d.ts.map +0 -1
- package/dist/ui/components/ProgressIndicator.js +0 -171
- package/dist/ui/components/ProgressIndicator.js.map +0 -1
- package/dist/ui/components/Prompt.d.ts +0 -47
- package/dist/ui/components/Prompt.d.ts.map +0 -1
- package/dist/ui/components/Prompt.js +0 -632
- package/dist/ui/components/Prompt.js.map +0 -1
- package/dist/ui/components/RatingPanel.d.ts +0 -45
- package/dist/ui/components/RatingPanel.d.ts.map +0 -1
- package/dist/ui/components/RatingPanel.js +0 -119
- package/dist/ui/components/RatingPanel.js.map +0 -1
- package/dist/ui/components/StatusLine.d.ts +0 -43
- package/dist/ui/components/StatusLine.d.ts.map +0 -1
- package/dist/ui/components/StatusLine.js +0 -44
- package/dist/ui/components/StatusLine.js.map +0 -1
- package/dist/ui/components/StreamingResponse.d.ts +0 -45
- package/dist/ui/components/StreamingResponse.d.ts.map +0 -1
- package/dist/ui/components/StreamingResponse.js +0 -56
- package/dist/ui/components/StreamingResponse.js.map +0 -1
- package/dist/ui/components/TokenUsage.d.ts +0 -89
- package/dist/ui/components/TokenUsage.d.ts.map +0 -1
- package/dist/ui/components/TokenUsage.js +0 -99
- package/dist/ui/components/TokenUsage.js.map +0 -1
- package/dist/ui/components/ToolSummary.d.ts +0 -77
- package/dist/ui/components/ToolSummary.d.ts.map +0 -1
- package/dist/ui/components/ToolSummary.js +0 -162
- package/dist/ui/components/ToolSummary.js.map +0 -1
- package/dist/ui/components/UpdateNotification.d.ts +0 -65
- package/dist/ui/components/UpdateNotification.d.ts.map +0 -1
- package/dist/ui/components/UpdateNotification.js +0 -166
- package/dist/ui/components/UpdateNotification.js.map +0 -1
- package/dist/ui/diff-renderer.d.ts +0 -18
- package/dist/ui/diff-renderer.d.ts.map +0 -1
- package/dist/ui/diff-renderer.js +0 -206
- package/dist/ui/diff-renderer.js.map +0 -1
- package/dist/ui/themes/markdown-theme.d.ts +0 -48
- package/dist/ui/themes/markdown-theme.d.ts.map +0 -1
- package/dist/ui/themes/markdown-theme.js +0 -79
- package/dist/ui/themes/markdown-theme.js.map +0 -1
- package/dist/ui/themes/ui-theme.d.ts +0 -301
- package/dist/ui/themes/ui-theme.d.ts.map +0 -1
- package/dist/ui/themes/ui-theme.js +0 -204
- package/dist/ui/themes/ui-theme.js.map +0 -1
- package/dist/utils/attachment-handler.d.ts +0 -129
- package/dist/utils/attachment-handler.d.ts.map +0 -1
- package/dist/utils/attachment-handler.js +0 -280
- package/dist/utils/attachment-handler.js.map +0 -1
- package/dist/utils/backup-cleanup.d.ts +0 -28
- package/dist/utils/backup-cleanup.d.ts.map +0 -1
- package/dist/utils/backup-cleanup.js +0 -99
- package/dist/utils/backup-cleanup.js.map +0 -1
- package/dist/utils/clipboard-handler.d.ts +0 -82
- package/dist/utils/clipboard-handler.d.ts.map +0 -1
- package/dist/utils/clipboard-handler.js +0 -311
- package/dist/utils/clipboard-handler.js.map +0 -1
- package/dist/utils/cloud-detection.d.ts +0 -14
- package/dist/utils/cloud-detection.d.ts.map +0 -1
- package/dist/utils/cloud-detection.js +0 -92
- package/dist/utils/cloud-detection.js.map +0 -1
- package/dist/utils/command-parser.d.ts +0 -56
- package/dist/utils/command-parser.d.ts.map +0 -1
- package/dist/utils/command-parser.js +0 -206
- package/dist/utils/command-parser.js.map +0 -1
- package/dist/utils/console-capture.d.ts +0 -30
- package/dist/utils/console-capture.d.ts.map +0 -1
- package/dist/utils/console-capture.js +0 -88
- package/dist/utils/console-capture.js.map +0 -1
- package/dist/utils/cron-parser.d.ts +0 -52
- package/dist/utils/cron-parser.d.ts.map +0 -1
- package/dist/utils/cron-parser.js +0 -455
- package/dist/utils/cron-parser.js.map +0 -1
- package/dist/utils/crypto.d.ts +0 -351
- package/dist/utils/crypto.d.ts.map +0 -1
- package/dist/utils/crypto.js +0 -615
- package/dist/utils/crypto.js.map +0 -1
- package/dist/utils/diff.d.ts +0 -311
- package/dist/utils/diff.d.ts.map +0 -1
- package/dist/utils/diff.js +0 -566
- package/dist/utils/diff.js.map +0 -1
- package/dist/utils/editor.d.ts +0 -12
- package/dist/utils/editor.d.ts.map +0 -1
- package/dist/utils/editor.js +0 -30
- package/dist/utils/editor.js.map +0 -1
- package/dist/utils/file-system.d.ts +0 -512
- package/dist/utils/file-system.d.ts.map +0 -1
- package/dist/utils/file-system.js +0 -798
- package/dist/utils/file-system.js.map +0 -1
- package/dist/utils/format.d.ts +0 -318
- package/dist/utils/format.d.ts.map +0 -1
- package/dist/utils/format.js +0 -587
- package/dist/utils/format.js.map +0 -1
- package/dist/utils/ignore-patterns.d.ts +0 -93
- package/dist/utils/ignore-patterns.d.ts.map +0 -1
- package/dist/utils/ignore-patterns.js +0 -710
- package/dist/utils/ignore-patterns.js.map +0 -1
- package/dist/utils/log-cleanup.d.ts +0 -16
- package/dist/utils/log-cleanup.d.ts.map +0 -1
- package/dist/utils/log-cleanup.js +0 -51
- package/dist/utils/log-cleanup.js.map +0 -1
- package/dist/utils/logger.d.ts +0 -305
- package/dist/utils/logger.d.ts.map +0 -1
- package/dist/utils/logger.js +0 -447
- package/dist/utils/logger.js.map +0 -1
- package/dist/utils/path.d.ts +0 -406
- package/dist/utils/path.d.ts.map +0 -1
- package/dist/utils/path.js +0 -549
- package/dist/utils/path.js.map +0 -1
- package/dist/utils/schedule-file.d.ts +0 -63
- package/dist/utils/schedule-file.d.ts.map +0 -1
- package/dist/utils/schedule-file.js +0 -244
- package/dist/utils/schedule-file.js.map +0 -1
- package/dist/utils/task-id.d.ts +0 -29
- package/dist/utils/task-id.d.ts.map +0 -1
- package/dist/utils/task-id.js +0 -53
- package/dist/utils/task-id.js.map +0 -1
- package/dist/utils/temp-cleanup.d.ts +0 -46
- package/dist/utils/temp-cleanup.d.ts.map +0 -1
- package/dist/utils/temp-cleanup.js +0 -95
- package/dist/utils/temp-cleanup.js.map +0 -1
- package/dist/utils/terminal-output.d.ts +0 -34
- package/dist/utils/terminal-output.d.ts.map +0 -1
- package/dist/utils/terminal-output.js +0 -40
- package/dist/utils/terminal-output.js.map +0 -1
- package/dist/utils/token-counter.d.ts +0 -224
- package/dist/utils/token-counter.d.ts.map +0 -1
- package/dist/utils/token-counter.js +0 -332
- package/dist/utils/token-counter.js.map +0 -1
- package/dist/utils/tool-mapper.d.ts +0 -70
- package/dist/utils/tool-mapper.d.ts.map +0 -1
- package/dist/utils/tool-mapper.js +0 -234
- package/dist/utils/tool-mapper.js.map +0 -1
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Centralized UI theme configuration for the CLI.
|
|
3
|
-
* Provides consistent colors, borders, and visual elements across all components.
|
|
4
|
-
*
|
|
5
|
-
* Design philosophy:
|
|
6
|
-
* - Use rounded borders for a modern, polished look
|
|
7
|
-
* - Cohesive indigo/purple accent palette
|
|
8
|
-
* - Subtle, non-distracting dividers
|
|
9
|
-
* - High contrast for readability
|
|
10
|
-
*/
|
|
11
|
-
import chalk from 'chalk';
|
|
12
|
-
/**
|
|
13
|
-
* Primary color palette - indigo/purple tones for a modern look
|
|
14
|
-
*/
|
|
15
|
-
export const colors = {
|
|
16
|
-
// Primary accents
|
|
17
|
-
primary: '#6366f1', // Indigo-500
|
|
18
|
-
primaryBright: '#818cf8', // Indigo-400
|
|
19
|
-
primaryDim: '#4f46e5', // Indigo-600
|
|
20
|
-
// Secondary accents
|
|
21
|
-
secondary: '#8b5cf6', // Purple-500
|
|
22
|
-
secondaryBright: '#a78bfa', // Purple-400
|
|
23
|
-
// Status colors
|
|
24
|
-
success: '#22c55e', // Green-500
|
|
25
|
-
successBright: '#4ade80', // Green-400
|
|
26
|
-
warning: '#f59e0b', // Amber-500
|
|
27
|
-
warningBright: '#fbbf24', // Amber-400
|
|
28
|
-
error: '#ef4444', // Red-500
|
|
29
|
-
errorBright: '#f87171', // Red-400
|
|
30
|
-
info: '#06b6d4', // Cyan-500
|
|
31
|
-
infoBright: '#22d3ee', // Cyan-400
|
|
32
|
-
// Neutral tones
|
|
33
|
-
muted: '#6b7280', // Gray-500
|
|
34
|
-
mutedDim: '#4b5563', // Gray-600
|
|
35
|
-
border: '#374151', // Gray-700
|
|
36
|
-
borderLight: '#4b5563', // Gray-600
|
|
37
|
-
// Text
|
|
38
|
-
text: '#f9fafb', // Gray-50
|
|
39
|
-
textDim: '#9ca3af', // Gray-400
|
|
40
|
-
textMuted: '#6b7280', // Gray-500
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* Chalk-styled color functions for easy use in components
|
|
44
|
-
*/
|
|
45
|
-
export const styled = {
|
|
46
|
-
// Primary
|
|
47
|
-
primary: chalk.hex(colors.primary),
|
|
48
|
-
primaryBright: chalk.hex(colors.primaryBright),
|
|
49
|
-
primaryBold: chalk.hex(colors.primary).bold,
|
|
50
|
-
// Secondary
|
|
51
|
-
secondary: chalk.hex(colors.secondary),
|
|
52
|
-
secondaryBright: chalk.hex(colors.secondaryBright),
|
|
53
|
-
// Status
|
|
54
|
-
success: chalk.hex(colors.success),
|
|
55
|
-
successBright: chalk.hex(colors.successBright),
|
|
56
|
-
warning: chalk.hex(colors.warning),
|
|
57
|
-
warningBright: chalk.hex(colors.warningBright),
|
|
58
|
-
error: chalk.hex(colors.error),
|
|
59
|
-
errorBright: chalk.hex(colors.errorBright),
|
|
60
|
-
info: chalk.hex(colors.info),
|
|
61
|
-
infoBright: chalk.hex(colors.infoBright),
|
|
62
|
-
// Muted
|
|
63
|
-
muted: chalk.hex(colors.muted),
|
|
64
|
-
mutedDim: chalk.hex(colors.mutedDim),
|
|
65
|
-
// Text
|
|
66
|
-
text: chalk.hex(colors.text),
|
|
67
|
-
textDim: chalk.hex(colors.textDim),
|
|
68
|
-
textMuted: chalk.hex(colors.textMuted),
|
|
69
|
-
};
|
|
70
|
-
/**
|
|
71
|
-
* Border configuration
|
|
72
|
-
* Using 'round' style for modern, polished appearance
|
|
73
|
-
*/
|
|
74
|
-
export const borders = {
|
|
75
|
-
// Preferred border style - rounded corners look more polished
|
|
76
|
-
style: 'round',
|
|
77
|
-
// Alternative styles for specific use cases
|
|
78
|
-
styles: {
|
|
79
|
-
round: 'round',
|
|
80
|
-
single: 'single',
|
|
81
|
-
double: 'double',
|
|
82
|
-
bold: 'bold',
|
|
83
|
-
},
|
|
84
|
-
// Border colors
|
|
85
|
-
color: 'gray',
|
|
86
|
-
colorActive: 'cyan',
|
|
87
|
-
colorSuccess: 'green',
|
|
88
|
-
colorWarning: 'yellow',
|
|
89
|
-
colorError: 'red',
|
|
90
|
-
};
|
|
91
|
-
/**
|
|
92
|
-
* Divider characters and styles
|
|
93
|
-
*/
|
|
94
|
-
export const dividers = {
|
|
95
|
-
// Light horizontal line (most common)
|
|
96
|
-
light: '─',
|
|
97
|
-
// Heavy horizontal line (for emphasis)
|
|
98
|
-
heavy: '━',
|
|
99
|
-
// Dotted line (subtle separation)
|
|
100
|
-
dotted: '·',
|
|
101
|
-
// Double line (strong separation)
|
|
102
|
-
double: '═',
|
|
103
|
-
// Vertical separators
|
|
104
|
-
verticalLight: '│',
|
|
105
|
-
verticalHeavy: '┃',
|
|
106
|
-
// Corner pieces for custom boxes (rounded)
|
|
107
|
-
roundedTopLeft: '╭',
|
|
108
|
-
roundedTopRight: '╮',
|
|
109
|
-
roundedBottomLeft: '╰',
|
|
110
|
-
roundedBottomRight: '╯',
|
|
111
|
-
// Corner pieces (square)
|
|
112
|
-
squareTopLeft: '┌',
|
|
113
|
-
squareTopRight: '┐',
|
|
114
|
-
squareBottomLeft: '└',
|
|
115
|
-
squareBottomRight: '┘',
|
|
116
|
-
};
|
|
117
|
-
/**
|
|
118
|
-
* Creates a horizontal divider line
|
|
119
|
-
* @param width - Width in characters
|
|
120
|
-
* @param style - Divider style ('light', 'heavy', 'dotted', 'double')
|
|
121
|
-
*/
|
|
122
|
-
export function createDivider(width, style = 'light') {
|
|
123
|
-
const char = dividers[style];
|
|
124
|
-
return char.repeat(Math.max(1, width));
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* Creates a subtle divider with faded edges
|
|
128
|
-
* @param width - Total width including faded edges
|
|
129
|
-
*/
|
|
130
|
-
export function createSoftDivider(width) {
|
|
131
|
-
if (width < 5)
|
|
132
|
-
return dividers.light.repeat(width);
|
|
133
|
-
const fadeChar = '╶';
|
|
134
|
-
const mainWidth = Math.max(1, width - 2);
|
|
135
|
-
return fadeChar + dividers.light.repeat(mainWidth) + '╴';
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* Common UI symbols
|
|
139
|
-
*/
|
|
140
|
-
export const symbols = {
|
|
141
|
-
// Checkmarks and status
|
|
142
|
-
check: '✓',
|
|
143
|
-
cross: '✗',
|
|
144
|
-
bullet: '•',
|
|
145
|
-
circle: '○',
|
|
146
|
-
circleFilled: '●',
|
|
147
|
-
diamond: '◆',
|
|
148
|
-
star: '★',
|
|
149
|
-
starEmpty: '☆',
|
|
150
|
-
// Arrows and pointers
|
|
151
|
-
arrowRight: '→',
|
|
152
|
-
arrowLeft: '←',
|
|
153
|
-
arrowUp: '↑',
|
|
154
|
-
arrowDown: '↓',
|
|
155
|
-
pointer: '❯',
|
|
156
|
-
pointerSmall: '›',
|
|
157
|
-
triangleRight: '▶',
|
|
158
|
-
triangleDown: '▼',
|
|
159
|
-
// Spinners and progress
|
|
160
|
-
spinner: ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'],
|
|
161
|
-
progress: ['░', '▒', '▓', '█'],
|
|
162
|
-
dots: ['⠁', '⠂', '⠄', '⡀', '⢀', '⠠', '⠐', '⠈'],
|
|
163
|
-
// Info and alerts
|
|
164
|
-
info: 'ℹ',
|
|
165
|
-
warning: '⚠',
|
|
166
|
-
error: '✖',
|
|
167
|
-
question: '?',
|
|
168
|
-
// Misc
|
|
169
|
-
ellipsis: '…',
|
|
170
|
-
middot: '·',
|
|
171
|
-
pipe: '│',
|
|
172
|
-
};
|
|
173
|
-
/**
|
|
174
|
-
* Mode indicators with consistent styling
|
|
175
|
-
*/
|
|
176
|
-
export const modeIndicators = {
|
|
177
|
-
auto: { symbol: '⚡', color: 'yellow' },
|
|
178
|
-
manual: { symbol: '✋', color: 'green' },
|
|
179
|
-
strict: { symbol: '🔒', color: 'red' },
|
|
180
|
-
smart: { symbol: '🧠', color: 'cyan' },
|
|
181
|
-
};
|
|
182
|
-
/**
|
|
183
|
-
* Standard spacing values (in characters/lines)
|
|
184
|
-
*/
|
|
185
|
-
export const spacing = {
|
|
186
|
-
none: 0,
|
|
187
|
-
xs: 1,
|
|
188
|
-
sm: 2,
|
|
189
|
-
md: 3,
|
|
190
|
-
lg: 4,
|
|
191
|
-
xl: 6,
|
|
192
|
-
};
|
|
193
|
-
export default {
|
|
194
|
-
colors,
|
|
195
|
-
styled,
|
|
196
|
-
borders,
|
|
197
|
-
dividers,
|
|
198
|
-
symbols,
|
|
199
|
-
modeIndicators,
|
|
200
|
-
spacing,
|
|
201
|
-
createDivider,
|
|
202
|
-
createSoftDivider,
|
|
203
|
-
};
|
|
204
|
-
//# sourceMappingURL=ui-theme.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ui-theme.js","sourceRoot":"","sources":["../../../src/ui/themes/ui-theme.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,kBAAkB;IAClB,OAAO,EAAE,SAAS,EAAO,aAAa;IACtC,aAAa,EAAE,SAAS,EAAE,aAAa;IACvC,UAAU,EAAE,SAAS,EAAK,aAAa;IAEvC,oBAAoB;IACpB,SAAS,EAAE,SAAS,EAAK,aAAa;IACtC,eAAe,EAAE,SAAS,EAAE,aAAa;IAEzC,gBAAgB;IAChB,OAAO,EAAE,SAAS,EAAO,YAAY;IACrC,aAAa,EAAE,SAAS,EAAE,YAAY;IACtC,OAAO,EAAE,SAAS,EAAO,YAAY;IACrC,aAAa,EAAE,SAAS,EAAE,YAAY;IACtC,KAAK,EAAE,SAAS,EAAS,UAAU;IACnC,WAAW,EAAE,SAAS,EAAG,UAAU;IACnC,IAAI,EAAE,SAAS,EAAU,WAAW;IACpC,UAAU,EAAE,SAAS,EAAI,WAAW;IAEpC,gBAAgB;IAChB,KAAK,EAA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EAAE,GAAG,CAAC;IAC3D,QAAQ,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IAC9B,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IAE9C,kBAAkB;IAClB,IAAI,EAAE,GAAG;IACT,OAAO,EAAE,GAAG;IACZ,KAAK,EAAE,GAAG;IACV,QAAQ,EAAE,GAAG;IAEb,OAAO;IACP,QAAQ,EAAE,GAAG;IACb,MAAM,EAAE,GAAG;IACX,IAAI,EAAE,GAAG;CACD,CAAC;AAEX;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,IAAI,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE;IACtC,MAAM,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE;IACvC,MAAM,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE;IACtC,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE;CAC9B,CAAC;AAEX;;GAEG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,IAAI,EAAE,CAAC;IACP,EAAE,EAAE,CAAC;IACL,EAAE,EAAE,CAAC;IACL,EAAE,EAAE,CAAC;IACL,EAAE,EAAE,CAAC;IACL,EAAE,EAAE,CAAC;CACG,CAAC;AAEX,eAAe;IACb,MAAM;IACN,MAAM;IACN,OAAO;IACP,QAAQ;IACR,OAAO;IACP,cAAc;IACd,OAAO;IACP,aAAa;IACb,iBAAiB;CAClB,CAAC"}
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Attachment Handler Utility
|
|
3
|
-
*
|
|
4
|
-
* This module provides utilities for validating, reading, and encoding file attachments
|
|
5
|
-
* (images and PDFs) for use with the Compass CLI. It handles file type detection,
|
|
6
|
-
* MIME type validation, base64 encoding, and size limits.
|
|
7
|
-
*/
|
|
8
|
-
import type { Attachment } from '../types/session.js';
|
|
9
|
-
import type { ContentBlock } from '../types/anthropic.js';
|
|
10
|
-
/**
|
|
11
|
-
* Attachment limits configuration
|
|
12
|
-
*/
|
|
13
|
-
export declare const ATTACHMENT_LIMITS: {
|
|
14
|
-
/** Maximum file size per attachment in bytes (20MB) */
|
|
15
|
-
readonly MAX_FILE_SIZE: number;
|
|
16
|
-
/** Maximum total size for all attachments in bytes (100MB) */
|
|
17
|
-
readonly MAX_TOTAL_SIZE: number;
|
|
18
|
-
/** Maximum number of attachments per message */
|
|
19
|
-
readonly MAX_ATTACHMENTS: 20;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* Type guard for supported file extensions
|
|
23
|
-
*/
|
|
24
|
-
export declare function isSupportedAttachment(filePath: string): boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Check if a file is an image based on its extension
|
|
27
|
-
*/
|
|
28
|
-
export declare function isImageFile(filePath: string): boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Check if a file is a document (PDF) based on its extension
|
|
31
|
-
*/
|
|
32
|
-
export declare function isDocumentFile(filePath: string): boolean;
|
|
33
|
-
/**
|
|
34
|
-
* Get MIME type for a file based on its extension
|
|
35
|
-
*/
|
|
36
|
-
export declare function getMimeType(filePath: string): string | null;
|
|
37
|
-
/**
|
|
38
|
-
* Validate an attachment file
|
|
39
|
-
*
|
|
40
|
-
* @param filePath - Path to the file to validate
|
|
41
|
-
* @param projectRoot - Root directory of the project for resolving relative paths
|
|
42
|
-
* @returns Object with validation result and error message if invalid
|
|
43
|
-
*/
|
|
44
|
-
export declare function validateAttachment(filePath: string, projectRoot?: string): {
|
|
45
|
-
valid: boolean;
|
|
46
|
-
error?: string;
|
|
47
|
-
resolvedPath?: string;
|
|
48
|
-
};
|
|
49
|
-
/**
|
|
50
|
-
* Read and encode a file attachment
|
|
51
|
-
*
|
|
52
|
-
* @param filePath - Path to the file (will be resolved relative to projectRoot)
|
|
53
|
-
* @param projectRoot - Root directory for resolving relative paths
|
|
54
|
-
* @returns Promise that resolves to an Attachment object
|
|
55
|
-
* @throws Error if the file cannot be read or is invalid
|
|
56
|
-
*/
|
|
57
|
-
export declare function processAttachment(filePath: string, projectRoot?: string): Promise<Attachment>;
|
|
58
|
-
/**
|
|
59
|
-
* Process multiple attachments with error collection
|
|
60
|
-
*
|
|
61
|
-
* @param filePaths - Array of file paths to process
|
|
62
|
-
* @param projectRoot - Root directory for resolving relative paths
|
|
63
|
-
* @returns Object with successful attachments and errors
|
|
64
|
-
*/
|
|
65
|
-
export declare function processAttachments(filePaths: string[], projectRoot?: string): Promise<{
|
|
66
|
-
attachments: Attachment[];
|
|
67
|
-
errors: Array<{
|
|
68
|
-
path: string;
|
|
69
|
-
error: string;
|
|
70
|
-
}>;
|
|
71
|
-
}>;
|
|
72
|
-
/**
|
|
73
|
-
* Build a ContentBlock from an Attachment for use with Anthropic API
|
|
74
|
-
*
|
|
75
|
-
* @param attachment - The attachment to convert
|
|
76
|
-
* @returns A ContentBlock suitable for the Anthropic API
|
|
77
|
-
*/
|
|
78
|
-
export declare function buildAttachmentContentBlock(attachment: Attachment): ContentBlock;
|
|
79
|
-
/**
|
|
80
|
-
* Build ContentBlocks from multiple Attachments for use with Anthropic API
|
|
81
|
-
*
|
|
82
|
-
* @param attachments - Array of attachments to convert
|
|
83
|
-
* @returns Array of ContentBlocks suitable for the Anthropic API
|
|
84
|
-
*/
|
|
85
|
-
export declare function buildAttachmentContentBlocks(attachments: Attachment[]): ContentBlock[];
|
|
86
|
-
/**
|
|
87
|
-
* Validate an attachment file (alias for validateAttachment)
|
|
88
|
-
*
|
|
89
|
-
* @param filePath - Path to the file to validate
|
|
90
|
-
* @param projectRoot - Root directory of the project for resolving relative paths
|
|
91
|
-
* @returns Object with validation result and error message if invalid
|
|
92
|
-
*/
|
|
93
|
-
export declare function validateAttachmentFile(filePath: string, projectRoot?: string): {
|
|
94
|
-
valid: boolean;
|
|
95
|
-
error?: string;
|
|
96
|
-
resolvedPath?: string;
|
|
97
|
-
};
|
|
98
|
-
/**
|
|
99
|
-
* Read and encode a file attachment (alias for processAttachment)
|
|
100
|
-
*
|
|
101
|
-
* @param filePath - Path to the file (will be resolved relative to projectRoot)
|
|
102
|
-
* @param projectRoot - Root directory for resolving relative paths
|
|
103
|
-
* @returns Promise that resolves to an Attachment object
|
|
104
|
-
* @throws Error if the file cannot be read or is invalid
|
|
105
|
-
*/
|
|
106
|
-
export declare function readAttachmentFile(filePath: string, projectRoot?: string): Promise<Attachment>;
|
|
107
|
-
/**
|
|
108
|
-
* Build message content combining text and attachments
|
|
109
|
-
*
|
|
110
|
-
* @param text - The text content of the message
|
|
111
|
-
* @param attachments - Array of attachments to include
|
|
112
|
-
* @returns Array of ContentBlocks for the Anthropic API
|
|
113
|
-
*/
|
|
114
|
-
export declare function buildMessageContent(text: string, attachments?: Attachment[]): ContentBlock[];
|
|
115
|
-
/**
|
|
116
|
-
* Format attachment information for display
|
|
117
|
-
*
|
|
118
|
-
* @param attachment - The attachment to format
|
|
119
|
-
* @returns A human-readable string describing the attachment
|
|
120
|
-
*/
|
|
121
|
-
export declare function formatAttachmentInfo(attachment: Attachment): string;
|
|
122
|
-
/**
|
|
123
|
-
* Get a summary of multiple attachments
|
|
124
|
-
*
|
|
125
|
-
* @param attachments - Array of attachments
|
|
126
|
-
* @returns A human-readable summary string
|
|
127
|
-
*/
|
|
128
|
-
export declare function formatAttachmentsSummary(attachments: Attachment[]): string;
|
|
129
|
-
//# sourceMappingURL=attachment-handler.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"attachment-handler.d.ts","sourceRoot":"","sources":["../../src/utils/attachment-handler.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC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AAU,EAAE,GACxB,YAAY,EAAE,CAEhB;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,MAAM,EAChB,WAAW,GAAE,MAAc,GAC1B;IAAE,KAAK,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,CAE3D;AAED;;;;;;;GAOG;AACH,wBAAsB,kBAAkB,CACtC,QAAQ,EAAE,MAAM,EAChB,WAAW,GAAE,MAAc,GAC1B,OAAO,CAAC,UAAU,CAAC,CAErB;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,EACZ,WAAW,GAAE,UAAU,EAAO,GAC7B,YAAY,EAAE,CAchB;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAGnE;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,WAAW,EAAE,UAAU,EAAE,GAAG,MAAM,CAmB1E"}
|
|
@@ -1,280 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Attachment Handler Utility
|
|
3
|
-
*
|
|
4
|
-
* This module provides utilities for validating, reading, and encoding file attachments
|
|
5
|
-
* (images and PDFs) for use with the Compass CLI. It handles file type detection,
|
|
6
|
-
* MIME type validation, base64 encoding, and size limits.
|
|
7
|
-
*/
|
|
8
|
-
import { readFile } from 'fs/promises';
|
|
9
|
-
import { existsSync, statSync } from 'fs';
|
|
10
|
-
import { extname, basename, resolve, isAbsolute } from 'path';
|
|
11
|
-
import { cwd } from 'process';
|
|
12
|
-
/**
|
|
13
|
-
* Attachment limits configuration
|
|
14
|
-
*/
|
|
15
|
-
export const ATTACHMENT_LIMITS = {
|
|
16
|
-
/** Maximum file size per attachment in bytes (20MB) */
|
|
17
|
-
MAX_FILE_SIZE: 20 * 1024 * 1024,
|
|
18
|
-
/** Maximum total size for all attachments in bytes (100MB) */
|
|
19
|
-
MAX_TOTAL_SIZE: 100 * 1024 * 1024,
|
|
20
|
-
/** Maximum number of attachments per message */
|
|
21
|
-
MAX_ATTACHMENTS: 20,
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* Supported file extensions and their MIME types
|
|
25
|
-
*/
|
|
26
|
-
const SUPPORTED_FILE_TYPES = {
|
|
27
|
-
// Images
|
|
28
|
-
'.png': 'image/png',
|
|
29
|
-
'.jpg': 'image/jpeg',
|
|
30
|
-
'.jpeg': 'image/jpeg',
|
|
31
|
-
'.gif': 'image/gif',
|
|
32
|
-
'.webp': 'image/webp',
|
|
33
|
-
// Documents
|
|
34
|
-
'.pdf': 'application/pdf',
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* Type guard for supported file extensions
|
|
38
|
-
*/
|
|
39
|
-
export function isSupportedAttachment(filePath) {
|
|
40
|
-
const ext = extname(filePath).toLowerCase();
|
|
41
|
-
return ext in SUPPORTED_FILE_TYPES;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Check if a file is an image based on its extension
|
|
45
|
-
*/
|
|
46
|
-
export function isImageFile(filePath) {
|
|
47
|
-
const ext = extname(filePath).toLowerCase();
|
|
48
|
-
return ['.png', '.jpg', '.jpeg', '.gif', '.webp'].includes(ext);
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Check if a file is a document (PDF) based on its extension
|
|
52
|
-
*/
|
|
53
|
-
export function isDocumentFile(filePath) {
|
|
54
|
-
const ext = extname(filePath).toLowerCase();
|
|
55
|
-
return ext === '.pdf';
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Get MIME type for a file based on its extension
|
|
59
|
-
*/
|
|
60
|
-
export function getMimeType(filePath) {
|
|
61
|
-
const ext = extname(filePath).toLowerCase();
|
|
62
|
-
return SUPPORTED_FILE_TYPES[ext] || null;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Validate an attachment file
|
|
66
|
-
*
|
|
67
|
-
* @param filePath - Path to the file to validate
|
|
68
|
-
* @param projectRoot - Root directory of the project for resolving relative paths
|
|
69
|
-
* @returns Object with validation result and error message if invalid
|
|
70
|
-
*/
|
|
71
|
-
export function validateAttachment(filePath, projectRoot = cwd()) {
|
|
72
|
-
// Resolve the file path
|
|
73
|
-
const resolvedPath = isAbsolute(filePath) ? filePath : resolve(projectRoot, filePath);
|
|
74
|
-
// Check if file exists
|
|
75
|
-
if (!existsSync(resolvedPath)) {
|
|
76
|
-
return { valid: false, error: `File not found: ${filePath}` };
|
|
77
|
-
}
|
|
78
|
-
// Check if it's a file (not a directory)
|
|
79
|
-
const stats = statSync(resolvedPath);
|
|
80
|
-
if (!stats.isFile()) {
|
|
81
|
-
return { valid: false, error: `Not a file: ${filePath}` };
|
|
82
|
-
}
|
|
83
|
-
// Check file type
|
|
84
|
-
if (!isSupportedAttachment(resolvedPath)) {
|
|
85
|
-
return {
|
|
86
|
-
valid: false,
|
|
87
|
-
error: `Unsupported file type: ${extname(resolvedPath)}. Supported types: ${Object.keys(SUPPORTED_FILE_TYPES).join(', ')}`,
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
// Check file size
|
|
91
|
-
if (stats.size > ATTACHMENT_LIMITS.MAX_FILE_SIZE) {
|
|
92
|
-
const sizeMB = (stats.size / (1024 * 1024)).toFixed(2);
|
|
93
|
-
const limitMB = (ATTACHMENT_LIMITS.MAX_FILE_SIZE / (1024 * 1024)).toFixed(2);
|
|
94
|
-
return {
|
|
95
|
-
valid: false,
|
|
96
|
-
error: `File too large: ${sizeMB}MB (maximum ${limitMB}MB)`,
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
return { valid: true, resolvedPath };
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* Read and encode a file attachment
|
|
103
|
-
*
|
|
104
|
-
* @param filePath - Path to the file (will be resolved relative to projectRoot)
|
|
105
|
-
* @param projectRoot - Root directory for resolving relative paths
|
|
106
|
-
* @returns Promise that resolves to an Attachment object
|
|
107
|
-
* @throws Error if the file cannot be read or is invalid
|
|
108
|
-
*/
|
|
109
|
-
export async function processAttachment(filePath, projectRoot = cwd()) {
|
|
110
|
-
// Validate the file first
|
|
111
|
-
const validation = validateAttachment(filePath, projectRoot);
|
|
112
|
-
if (!validation.valid) {
|
|
113
|
-
throw new Error(validation.error);
|
|
114
|
-
}
|
|
115
|
-
const resolvedPath = validation.resolvedPath;
|
|
116
|
-
const mimeType = getMimeType(resolvedPath);
|
|
117
|
-
const filename = basename(resolvedPath);
|
|
118
|
-
// Read the file
|
|
119
|
-
const buffer = await readFile(resolvedPath);
|
|
120
|
-
// Encode to base64
|
|
121
|
-
const data = buffer.toString('base64');
|
|
122
|
-
// Determine attachment type
|
|
123
|
-
const type = isImageFile(resolvedPath) ? 'image' : 'document';
|
|
124
|
-
return {
|
|
125
|
-
type,
|
|
126
|
-
mimeType: mimeType,
|
|
127
|
-
data,
|
|
128
|
-
filename,
|
|
129
|
-
size: buffer.length,
|
|
130
|
-
filePath: resolvedPath,
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
/**
|
|
134
|
-
* Process multiple attachments with error collection
|
|
135
|
-
*
|
|
136
|
-
* @param filePaths - Array of file paths to process
|
|
137
|
-
* @param projectRoot - Root directory for resolving relative paths
|
|
138
|
-
* @returns Object with successful attachments and errors
|
|
139
|
-
*/
|
|
140
|
-
export async function processAttachments(filePaths, projectRoot = cwd()) {
|
|
141
|
-
const attachments = [];
|
|
142
|
-
const errors = [];
|
|
143
|
-
// Check attachment count limit
|
|
144
|
-
if (filePaths.length > ATTACHMENT_LIMITS.MAX_ATTACHMENTS) {
|
|
145
|
-
throw new Error(`Too many attachments: ${filePaths.length} (maximum ${ATTACHMENT_LIMITS.MAX_ATTACHMENTS})`);
|
|
146
|
-
}
|
|
147
|
-
// Process each file
|
|
148
|
-
for (const filePath of filePaths) {
|
|
149
|
-
try {
|
|
150
|
-
const attachment = await processAttachment(filePath, projectRoot);
|
|
151
|
-
attachments.push(attachment);
|
|
152
|
-
}
|
|
153
|
-
catch (error) {
|
|
154
|
-
errors.push({
|
|
155
|
-
path: filePath,
|
|
156
|
-
error: error instanceof Error ? error.message : String(error),
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
// Check total size limit
|
|
161
|
-
const totalSize = attachments.reduce((sum, a) => sum + a.size, 0);
|
|
162
|
-
if (totalSize > ATTACHMENT_LIMITS.MAX_TOTAL_SIZE) {
|
|
163
|
-
const totalMB = (totalSize / (1024 * 1024)).toFixed(2);
|
|
164
|
-
const limitMB = (ATTACHMENT_LIMITS.MAX_TOTAL_SIZE / (1024 * 1024)).toFixed(2);
|
|
165
|
-
throw new Error(`Total attachment size too large: ${totalMB}MB (maximum ${limitMB}MB)`);
|
|
166
|
-
}
|
|
167
|
-
return { attachments, errors };
|
|
168
|
-
}
|
|
169
|
-
/**
|
|
170
|
-
* Build a ContentBlock from an Attachment for use with Anthropic API
|
|
171
|
-
*
|
|
172
|
-
* @param attachment - The attachment to convert
|
|
173
|
-
* @returns A ContentBlock suitable for the Anthropic API
|
|
174
|
-
*/
|
|
175
|
-
export function buildAttachmentContentBlock(attachment) {
|
|
176
|
-
if (attachment.type === 'image') {
|
|
177
|
-
return {
|
|
178
|
-
type: 'image',
|
|
179
|
-
source: {
|
|
180
|
-
type: 'base64',
|
|
181
|
-
media_type: attachment.mimeType,
|
|
182
|
-
data: attachment.data,
|
|
183
|
-
},
|
|
184
|
-
};
|
|
185
|
-
}
|
|
186
|
-
else {
|
|
187
|
-
// attachment.type === 'document'
|
|
188
|
-
return {
|
|
189
|
-
type: 'document',
|
|
190
|
-
source: {
|
|
191
|
-
type: 'base64',
|
|
192
|
-
media_type: attachment.mimeType,
|
|
193
|
-
data: attachment.data,
|
|
194
|
-
},
|
|
195
|
-
};
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
/**
|
|
199
|
-
* Build ContentBlocks from multiple Attachments for use with Anthropic API
|
|
200
|
-
*
|
|
201
|
-
* @param attachments - Array of attachments to convert
|
|
202
|
-
* @returns Array of ContentBlocks suitable for the Anthropic API
|
|
203
|
-
*/
|
|
204
|
-
export function buildAttachmentContentBlocks(attachments) {
|
|
205
|
-
return attachments.map(buildAttachmentContentBlock);
|
|
206
|
-
}
|
|
207
|
-
/**
|
|
208
|
-
* Validate an attachment file (alias for validateAttachment)
|
|
209
|
-
*
|
|
210
|
-
* @param filePath - Path to the file to validate
|
|
211
|
-
* @param projectRoot - Root directory of the project for resolving relative paths
|
|
212
|
-
* @returns Object with validation result and error message if invalid
|
|
213
|
-
*/
|
|
214
|
-
export function validateAttachmentFile(filePath, projectRoot = cwd()) {
|
|
215
|
-
return validateAttachment(filePath, projectRoot);
|
|
216
|
-
}
|
|
217
|
-
/**
|
|
218
|
-
* Read and encode a file attachment (alias for processAttachment)
|
|
219
|
-
*
|
|
220
|
-
* @param filePath - Path to the file (will be resolved relative to projectRoot)
|
|
221
|
-
* @param projectRoot - Root directory for resolving relative paths
|
|
222
|
-
* @returns Promise that resolves to an Attachment object
|
|
223
|
-
* @throws Error if the file cannot be read or is invalid
|
|
224
|
-
*/
|
|
225
|
-
export async function readAttachmentFile(filePath, projectRoot = cwd()) {
|
|
226
|
-
return processAttachment(filePath, projectRoot);
|
|
227
|
-
}
|
|
228
|
-
/**
|
|
229
|
-
* Build message content combining text and attachments
|
|
230
|
-
*
|
|
231
|
-
* @param text - The text content of the message
|
|
232
|
-
* @param attachments - Array of attachments to include
|
|
233
|
-
* @returns Array of ContentBlocks for the Anthropic API
|
|
234
|
-
*/
|
|
235
|
-
export function buildMessageContent(text, attachments = []) {
|
|
236
|
-
const blocks = [];
|
|
237
|
-
// Add text block if present
|
|
238
|
-
if (text) {
|
|
239
|
-
blocks.push({ type: 'text', text });
|
|
240
|
-
}
|
|
241
|
-
// Add attachment blocks
|
|
242
|
-
for (const attachment of attachments) {
|
|
243
|
-
blocks.push(buildAttachmentContentBlock(attachment));
|
|
244
|
-
}
|
|
245
|
-
return blocks;
|
|
246
|
-
}
|
|
247
|
-
/**
|
|
248
|
-
* Format attachment information for display
|
|
249
|
-
*
|
|
250
|
-
* @param attachment - The attachment to format
|
|
251
|
-
* @returns A human-readable string describing the attachment
|
|
252
|
-
*/
|
|
253
|
-
export function formatAttachmentInfo(attachment) {
|
|
254
|
-
const sizeMB = (attachment.size / (1024 * 1024)).toFixed(2);
|
|
255
|
-
return `${attachment.filename} (${attachment.type}, ${attachment.mimeType}, ${sizeMB}MB)`;
|
|
256
|
-
}
|
|
257
|
-
/**
|
|
258
|
-
* Get a summary of multiple attachments
|
|
259
|
-
*
|
|
260
|
-
* @param attachments - Array of attachments
|
|
261
|
-
* @returns A human-readable summary string
|
|
262
|
-
*/
|
|
263
|
-
export function formatAttachmentsSummary(attachments) {
|
|
264
|
-
if (attachments.length === 0) {
|
|
265
|
-
return 'No attachments';
|
|
266
|
-
}
|
|
267
|
-
const totalSize = attachments.reduce((sum, a) => sum + a.size, 0);
|
|
268
|
-
const totalMB = (totalSize / (1024 * 1024)).toFixed(2);
|
|
269
|
-
const imageCount = attachments.filter(a => a.type === 'image').length;
|
|
270
|
-
const docCount = attachments.filter(a => a.type === 'document').length;
|
|
271
|
-
const parts = [];
|
|
272
|
-
if (imageCount > 0) {
|
|
273
|
-
parts.push(`${imageCount} image${imageCount > 1 ? 's' : ''}`);
|
|
274
|
-
}
|
|
275
|
-
if (docCount > 0) {
|
|
276
|
-
parts.push(`${docCount} document${docCount > 1 ? 's' : ''}`);
|
|
277
|
-
}
|
|
278
|
-
return `${parts.join(', ')} (${totalMB}MB total)`;
|
|
279
|
-
}
|
|
280
|
-
//# sourceMappingURL=attachment-handler.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"attachment-handler.js","sourceRoot":"","sources":["../../src/utils/attachment-handler.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,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MAAM,CAAC;IACtE,MAAM,QAAQ,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,UAAU,CAAC,CAAC,MAAM,CAAC;IAEvE,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,IAAI,UAAU,GAAG,CAAC,EAAE,CAAC;QACnB,KAAK,CAAC,IAAI,CAAC,GAAG,UAAU,SAAS,UAAU,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAChE,CAAC;IACD,IAAI,QAAQ,GAAG,CAAC,EAAE,CAAC;QACjB,KAAK,CAAC,IAAI,CAAC,GAAG,QAAQ,YAAY,QAAQ,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,OAAO,WAAW,CAAC;AACpD,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Backup cleanup utility for removing old and excess backup files.
|
|
3
|
-
*
|
|
4
|
-
* Provides two cleanup strategies:
|
|
5
|
-
* 1. Age-based: Deletes backup files older than the configured retention period
|
|
6
|
-
* 2. Count-based: Keeps only the most recent N backup files
|
|
7
|
-
*
|
|
8
|
-
* This utility operates directly on the filesystem (like log-cleanup.ts) and
|
|
9
|
-
* serves as a safety net for orphaned files not tracked by the BackupManager
|
|
10
|
-
* manifest. The BackupManager also performs its own manifest-aware cleanup.
|
|
11
|
-
*
|
|
12
|
-
* Uses file modification time (mtime) for age detection, matching the pattern
|
|
13
|
-
* established by log-cleanup.ts.
|
|
14
|
-
*/
|
|
15
|
-
/**
|
|
16
|
-
* Removes old and excess backup files from a directory.
|
|
17
|
-
* Only runs once per directory per process lifetime to avoid repeated I/O.
|
|
18
|
-
*
|
|
19
|
-
* Applies two pruning strategies in order:
|
|
20
|
-
* 1. Age-based: Remove files older than retentionDays
|
|
21
|
-
* 2. Count-based: Keep only the maxFiles most recent files
|
|
22
|
-
*
|
|
23
|
-
* @param backupsDir - The directory containing backup files
|
|
24
|
-
* @param retentionDays - Number of days to keep backups (default: BACKUP_RETENTION_DAYS)
|
|
25
|
-
* @param maxFiles - Maximum number of backup files to retain (default: MAX_BACKUP_FILES)
|
|
26
|
-
*/
|
|
27
|
-
export declare function cleanupOldBackups(backupsDir: string, retentionDays?: number, maxFiles?: number): Promise<void>;
|
|
28
|
-
//# sourceMappingURL=backup-cleanup.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"backup-cleanup.d.ts","sourceRoot":"","sources":["../../src/utils/backup-cleanup.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAYH;;;;;;;;;;;GAWG;AACH,wBAAsB,iBAAiB,CACrC,UAAU,EAAE,MAAM,EAClB,aAAa,GAAE,MAA8B,EAC7C,QAAQ,GAAE,MAAyB,GAClC,OAAO,CAAC,IAAI,CAAC,CAuEf"}
|