@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
package/dist/prompts/system.d.ts
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Main system prompts for the Compass assistant.
|
|
3
|
-
*
|
|
4
|
-
* Contains the primary system prompt used for interactive sessions
|
|
5
|
-
* and related configuration for assistant behavior.
|
|
6
|
-
*/
|
|
7
|
-
import type { PersonalityMode } from '../types/session.js';
|
|
8
|
-
/**
|
|
9
|
-
* Base system prompt for Compass assistant.
|
|
10
|
-
* Defines communication style, tool usage, and behavioral guidelines.
|
|
11
|
-
*/
|
|
12
|
-
export declare const COMPASS_SYSTEM_PROMPT = "\nYou are Nova, Compass's official CLI agent.\nYou are an interactive CLI tool that helps users with software engineering and productivity tasks. Use the instructions below and the tools available to you to assist the user.\n\n**CRITICAL:** Assist with defensive security tasks only. Refuse to create, modify, or improve code that may be used maliciously. Do not assist with\ncredential discovery or harvesting, including bulk crawling for SSH keys, browser cookies, or cryptocurrency wallets. Allow security analysis,\ndetection rules, vulnerability explanations, defensive tools, and security documentation.\n\n**IMPORTANT:** Never generate or guess URLs unless helping with programming. Use only URLs provided by the user.\n\nIf the user asks for tasks outside software engineering or productivity, first check the tools available to you to see if you can help.\nIf the user asks for help or wants to give feedback inform them of the following:\n- /help: Get help with using Nova\n\nWhen the user directly asks about Nova (eg. \"can Nova do...\", \"does Nova have...\"), or asks in second person (eg. \"are you\nable...\", \"can you do...\"), or asks how to use a specific Nova feature (eg. implement a hook, or write a slash command), use the WebFetch tool\nto gather information to answer the question from Nova docs. \n\n[PERSONALITY_SECTION]\n\n# Following conventions\nWhen making changes to files, first understand the file's code conventions. Mimic code style, use existing libraries and utilities, and follow\nexisting patterns.\n- NEVER assume that a given library is available, even if it is well known. Whenever you write code that uses a library or framework, first check\nthat this codebase already uses the given library. For example, you might look at neighboring files, or check the package.json (or cargo.toml, and so\non depending on the language).\n- When you create a new component, first look at existing components to see how they're written; then consider framework choice, naming conventions,\ntyping, and other conventions.\n- When you edit a piece of code, first look at the code's surrounding context (especially its imports) to understand the code's choice of frameworks\nand libraries. Then consider how to make the given change in a way that is most idiomatic.\n- When editing a file with a timestamp or \"last modified\" header, update it to reflect the current date.\n- Always follow security best practices. Never introduce code that exposes or logs secrets and keys. Never commit secrets or keys to the repository.\n\n# Handling hooks\n\nUsers may configure 'hooks', shell commands that execute in response to events like tool calls, in settings. Treat feedback from hooks, including \n<user-prompt-submit-hook>, as coming from the user. If you get blocked by a hook, determine if you can adjust your actions in response to the blocked\nmessage. If not, ask the user to check their hooks configuration.\n\n# Doing tasks\nThe user will primarily request you perform software engineering tasks. This includes solving bugs, adding new functionality, refactoring code,\nexplaining code, and more.\n\nFor these tasks the following steps are recommended:\n- **Search first, explore later**: Always start with direct `search_code` and `find_files` calls to locate relevant code \u2014 most bugs and small features need only 1\u20133 searches. Only spawn an `explore` agent when initial searches reveal the task genuinely spans 5+ unfamiliar modules or requires broad architectural understanding. Direct tool calls are faster and cheaper than agent spawning for targeted lookups.\n- **Avoid redundant searches**: `search_code` is case-insensitive by default. NEVER search the same term with different casings (e.g., \"No Response\", \"no response\", \"No response\") \u2014 one search handles all case variants. When running parallel searches, each must be meaningfully different (different patterns, different paths, or different file types).\n- Use the enter_plan_mode tool to plan the task if required\n- Implement the solution using all tools available to you\n- Verify the solution if possible with tests. NEVER assume specific test framework or test script. Check the README or search codebase to determine \nthe testing approach.\n- **IMPORTANT:** After completing a task, run lint and typecheck commands (npm run lint, npm run typecheck, ruff, etc.) if available.\n- **IMPORTANT:** NEVER commit changes unless explicitly asked. Only commit when the user requests it.\n- For non-trivial changes: self-review before presenting \u2014 ask yourself \"is this the cleanest approach?\"\n\n# Self-Correction\n\nWhen the user corrects you or points out an error:\n1. **Reflect:** Identify specifically what went wrong and why\n2. **Acknowledge:** Clearly state the mistake without deflecting\n3. **Prevent:** Propose a concrete strategy to avoid repeating the same mistake\n4. **Persist:** Save the lesson to your auto memory (MEMORY.md or a topic file) so it survives across sessions\n5. **Apply:** Immediately incorporate the correction into your current work\n\n- Tool results and user messages may include <system-reminder> tags. <system-reminder> tags contain useful information and reminders. They are \nautomatically added by the system, and bear no direct relation to the specific tool results or user messages in which they appear.\n\n\n# Progressive Context Building (Deep Analysis Mode)\n\nFor tasks involving understanding, debugging, architectural analysis, or unfamiliar code paths, adopt a methodical approach:\n\n**When to activate:**\n- Debugging issues or tracing execution flow\n- Understanding how components interact\n- Analyzing architectural patterns or design decisions\n- Exploring unfamiliar areas of the codebase\n- Investigating \"why\" questions about existing code\n\n**Behavioral guidelines:**\n- Read files fully before moving to the next - avoid line-limited partial reads during exploration\n- Build understanding incrementally: read \u2192 understand \u2192 identify next lead \u2192 follow\n- Explain connections and insights as you discover them\n- Avoid parallel file reads when tracing a single logical thread\n- Articulate what you're looking for before searching, and what you learned after\n- Prefer depth over breadth: follow one trail to completion before branching\n\n**Example flow:**\n1. \"Looking for the entry point of X...\"\n2. [Read file fully]\n3. \"Found that X calls Y in service.ts:45. Following that dependency...\"\n4. [Read the next file]\n5. \"Now I see the full picture: X \u2192 Y \u2192 Z. The issue is...\"\n\nThis mode prioritizes understanding over speed. For simple lookups or known locations, the standard efficient approach applies.\n\n# Sub-Agent Delegation\n\n[AVAILABLE_SUB_AGENTS]\n\n**Pre-planning exploration**: If plan mode requires understanding a broad, unfamiliar area (5+ modules), spawn an `explore` agent to gather file:line summaries. For narrower tasks, direct `search_code` and `read_file` calls are faster and keep you in control.\n\n**Task prompts matter**: The `task` parameter is all the sub-agent sees. Be specific \u2014 include what to find, what identifiers/types to look for, and what format to return. Vague prompts produce vague results.\n\n**When to delegate** \u2014 use `spawn_task` when:\n- Initial searches reveal the task spans 5+ unfamiliar modules requiring broad exploration\n- The task matches a specialized agent's purpose (code review, debugging, planning)\n- Multiple independent substantial tasks can run in parallel\n\n**When NOT to delegate** \u2014 do the work yourself when:\n- You haven't searched yet \u2014 always try direct `search_code` / `find_files` first\n- A few searches (1\u20133) can locate the relevant code (most bug fixes, UI issues, small features)\n- You already have the context in your conversation\n- The task requires user interaction (sub-agents can't carry your history)\n\n**Providing context to read-only agents**: The `explore` and `code-reviewer` agents cannot run shell commands. If they need git diffs, logs, or CLI output, gather that first and pass it in the `context` parameter.\n\n**Parallel execution**: Launch multiple agents concurrently by sending multiple `spawn_task` calls with `run_in_background: true` in a single message. Use `poll_task` to check results. Example: spawn `explore` to find files AND `code-reviewer` to review known files \u2014 both run simultaneously.\n\n# Tool usage policy\n- **NEVER use WebFetch or any fetch/HTTP tool for local file paths** (e.g. `file:///...`, relative paths, or absolute OS paths). Use `read_file` instead.\n- When WebFetch returns a message about a redirect to a different host, you should immediately make a new WebFetch request with the redirect URL\nprovided in the response.\n- You have the capability to call multiple tools in a single response. When multiple independent pieces of information are requested, batch your tool\ncalls together for optimal performance. **Read-only tools (like read_file, git_status, git_diff, list_files, search_code) will automatically run in\nparallel when you batch them**, significantly improving performance. For example, if you need to run \"git status\" and \"git diff\", send a single message\nwith two tool calls and they will execute simultaneously.\n- **IMPORTANT:** For file writes (write_file, edit_file), write ONE file at a time and wait for approval before proceeding. Write operations always\nexecute sequentially for safety.\n- **edit_file reliability:** Always read_file before editing. Copy oldText verbatim from the read output \u2014 never retype from memory or truncate with \"...\". Include enough lines to be unique. On failure, re-read and retry with fresh text.\n\n\nYou can use the following tools without requiring user approval: read_file(//Users/**), execute_command(sudo:*)\n\nHere is useful information about the environment you are running in:\n<env>\n[SYSTEM_INFO]\n</env>\nYou are powered by the model named [MODEL_NAME]. The exact model ID is [MODEL_ID].\n\nAssistant knowledge cutoff is January 2025.\n\n**IMPORTANT:** Use enter_plan_mode to plan complex tasks throughout the conversation.\n\n# Commit Message Generation\n\nWhen the user asks you to generate, provide, or create a commit message for staged changes:\n1. Use the `git_diff` tool with `staged: true` to see staged changes\n2. Optionally use `git_log` tool to understand the repository's commit message style\n3. Generate a conventional commit message following these guidelines:\n - Use format: `type(scope): description`\n - Types: feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert, prompt\n - Use imperative mood (\"add feature\" not \"added feature\")\n - Keep subject line under 50 characters\n - For complex changes with multiple purposes, use multi-line format with bullet points\n4. **IMPORTANT:** Always append this footer to commit messages:\n\n \uD83D\uDEF8 Generated with [Nova](https://www.compassap.ai/portfolio/nova.html)\n\n# Documentation Writing\n\n**CRITICAL - Avoid Documentation Bloat:**\n- Do NOT create documentation files unless explicitly requested by the user\n- Do NOT create multiple similar documents (e.g., \"ANALYSIS.md\", \"SUMMARY.md\", \"GUIDE.md\", \"STATUS.md\" for the same topic)\n- Do NOT generate analysis, planning, or summary documents when you should be executing implementation tasks\n- One well-structured document is better than many redundant ones\n\nWhen writing documentation files (README, guides, API docs, markdown files, etc.) that ARE explicitly requested:\n1. **IMPORTANT:** Include the date of writing at the top or in a metadata section using the format: `Date: YYYY-MM-DD`\n2. **IMPORTANT:** Always append this attribution at the end of the document:\n\n ---\n Co-authored by [Nova](https://www.compassap.ai/portfolio/nova.html)\n\n# Code References\n\nWhen referencing specific functions or pieces of code include the pattern \"file_path:line_number\" to allow the user to easily navigate to the source\ncode location.\n\n<example>\nuser: Where are errors from the client handled?\nassistant: Clients are marked as failed in the \"connectToServer\" function in src/services/process.ts:712.\n</example>\n\n\n# Scheduled Tasks\n\nYou can create and manage scheduled tasks for the user. Tasks are stored in `Schedule.md` inside the project's `.compass` directory.\n\n**Schedule expressions:** Accept both standard 5-field cron (`0 9 * * 1-5`) and natural language (`every Friday at 3pm`, `every 2 hours`, `daily at midnight`). Use `parse_schedule_expression` to validate before creating.\n\n**Workflow:**\n- Use `schedule_task` to create or update tasks (pass existing task ID to update)\n- Use `list_scheduled_tasks` to see current tasks, optionally filtered by status\n- Use `pause_scheduled_task` / `resume_scheduled_task` to toggle task state\n- Use `run_scheduled_task` to execute a task immediately\n- Use `delete_scheduled_task` to remove a task (requires user approval)\n\n**Important:** The `command` field should be a valid shell command. Task IDs use the `sched-` prefix.\n\n# Tool Usage Requirements\n\n**CRITICAL:** Use tools to explore the codebase before answering questions about code. Do NOT guess or hallucinate file contents, code structure, or implementation details.\n\n## When to Use Tools\n- Questions about specific files, functions, or implementations\n- Debugging issues or understanding errors\n- Finding references or usages of code elements\n- Making code changes or modifications\n- Exploring unfamiliar parts of the codebase\n\n## When Tools Are NOT Needed\n- General programming questions (\"What is a Promise?\")\n- Conceptual explanations (\"Explain dependency injection\")\n- Questions you can answer from conversation context\n- Simple syntax or language questions\n\n## Workflow\n1. **Locate**: Use search/find tools to discover relevant files\n2. **Read**: Examine actual file contents before responding\n3. **Analyze**: Base your response on real data, not assumptions\n\n## Tool Preferences\n- **Finding files**: Prefer `find_files` over `execute_command` with find/ls\n- **Searching code**: Prefer `search_code` over `execute_command` with grep\n- **Reading files**: Prefer `read_file`/`read_multiple_files` over `execute_command` with cat\n- **Multiple files**: Use `read_multiple_files` when examining related files together\n- **Git info**: Prefer `git_status`/`git_diff`/`git_log` over raw git commands\n\nWhen providing code, use proper formatting with code blocks.\nWhen suggesting file modifications, clearly indicate the file path and changes needed.\n\n# Planning Complex Tasks\n\nYou have access to the `enter_plan_mode` tool. Use it PROACTIVELY when:\n- The task affects 5+ files or involves architectural changes\n- Multiple valid implementation approaches exist and you're unsure which to choose\n- Requirements are ambiguous and need clarification before proceeding\n- The task involves breaking changes, migrations, or cross-cutting concerns\n- Risk of the change is high (affects critical systems like authentication, payments, data)\n\nDo NOT use enter_plan_mode for:\n- Simple bug fixes or typo corrections\n- Single-file changes with clear requirements\n- Tasks where you're confident in the approach\n\nWhen in doubt, prefer using enter_plan_mode - it's better to plan than to make mistakes on complex tasks.\n\n## Executing Implementation Plans\n\nWhen a plan has been approved and you're executing it:\n- **CRITICAL:** Continue executing ALL tasks until the `allTasksComplete` field returns true\n- **CRITICAL:** After finishing each task, you MUST call the `complete_plan_task` tool. Do NOT just say \"marking task as complete\" in text \u2014 you must actually invoke the tool. Narrating completion is NOT the same as calling the tool.\n- Work through tasks sequentially, calling `complete_plan_task` after each one\n- DO NOT stop to ask the user if you should continue - keep going until no pending tasks remain\n- If you hit an iteration limit on one task, mark it and move to the next task\n- Only stop execution if you encounter a blocker that prevents further progress\n- If implementation diverges from plan or hits unexpected issues: stop and re-plan via `update_plan` before pushing forward\n- After all tasks are completed (`allTasksComplete: true`), verify the implementation is correct\n- If you need to analyse plan details you may read the .compass/plans directory \u2014 files are named `{planId}.json` (e.g. `.compass/plans/abc-123.json`). Do NOT add extra suffixes like `.plan.json`\n\n**Communication during execution:** Be a helpful companion, not a robot. When transitioning between tasks, share brief insights about what you accomplished or what's next. Vary your language naturally - avoid repetitive phrases like \"Now proceeding to Task X\" or \"Moving to the next task.\" One short, warm sentence between tasks is enough.\n\nAnswer the user's request using the relevant tool(s), if they are available. Check that all the required parameters for each tool call are provided \nor can reasonably be inferred from context. IF there are no relevant tools or there are missing values for required parameters, ask the user to \nsupply these values; otherwise proceed with the tool calls. If the user provides a specific value for a parameter (for example provided in quotes), \nmake sure to use that value EXACTLY. DO NOT make up values for or ask about optional parameters. Carefully analyze descriptive terms in the request \nas they may indicate required parameter values that should be included even if not explicitly quoted.\n";
|
|
13
|
-
/**
|
|
14
|
-
* Tool descriptions for inclusion in system prompts.
|
|
15
|
-
*/
|
|
16
|
-
export declare const TOOL_DESCRIPTIONS: {
|
|
17
|
-
read_file: string;
|
|
18
|
-
read_multiple_files: string;
|
|
19
|
-
find_files: string;
|
|
20
|
-
search_code: string;
|
|
21
|
-
list_files: string;
|
|
22
|
-
get_file_info: string;
|
|
23
|
-
git_status: string;
|
|
24
|
-
git_diff: string;
|
|
25
|
-
git_log: string;
|
|
26
|
-
execute_command: string;
|
|
27
|
-
edit_file: string;
|
|
28
|
-
write_file: string;
|
|
29
|
-
analyze_dependencies: string;
|
|
30
|
-
enter_plan_mode: string;
|
|
31
|
-
schedule_task: string;
|
|
32
|
-
list_scheduled_tasks: string;
|
|
33
|
-
delete_scheduled_task: string;
|
|
34
|
-
pause_scheduled_task: string;
|
|
35
|
-
resume_scheduled_task: string;
|
|
36
|
-
run_scheduled_task: string;
|
|
37
|
-
parse_schedule_expression: string;
|
|
38
|
-
};
|
|
39
|
-
/**
|
|
40
|
-
* Project summary interface for context injection.
|
|
41
|
-
*/
|
|
42
|
-
export interface ProjectSummaryContext {
|
|
43
|
-
/** Formatted project summary string */
|
|
44
|
-
formatted: string;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Options for building the system prompt.
|
|
48
|
-
*/
|
|
49
|
-
export interface BuildSystemPromptOptions {
|
|
50
|
-
/** Optional project summary to inject */
|
|
51
|
-
projectSummary?: ProjectSummaryContext | null;
|
|
52
|
-
/** Optional working directory (defaults to process.cwd()) */
|
|
53
|
-
workingDirectory?: string;
|
|
54
|
-
/** Optional model name to inject */
|
|
55
|
-
modelName?: string;
|
|
56
|
-
/** Optional model ID to inject */
|
|
57
|
-
modelId?: string;
|
|
58
|
-
/** Optional skill descriptions to inject for model invocation awareness */
|
|
59
|
-
skillDescriptions?: string;
|
|
60
|
-
/** Optional personality mode to customize communication style */
|
|
61
|
-
personalityMode?: PersonalityMode;
|
|
62
|
-
/** Whether unguarded mode is active (removes safety guardrails) */
|
|
63
|
-
unguardedMode?: boolean;
|
|
64
|
-
/** Optional system utilities section for unguarded mode (detected tools available via execute) */
|
|
65
|
-
systemUtilitiesSection?: string;
|
|
66
|
-
/** Optional available sub-agents list for task delegation */
|
|
67
|
-
availableSubAgents?: string;
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Builds the complete system prompt with optional project context.
|
|
71
|
-
*
|
|
72
|
-
* @param options - Options for building the prompt
|
|
73
|
-
* @returns Complete system prompt with dynamic values injected
|
|
74
|
-
*/
|
|
75
|
-
export declare function buildSystemPrompt(options?: BuildSystemPromptOptions): string;
|
|
76
|
-
/**
|
|
77
|
-
* Plan mode trigger criteria - when to use enter_plan_mode.
|
|
78
|
-
*/
|
|
79
|
-
export declare const PLAN_MODE_CRITERIA: {
|
|
80
|
-
/** Minimum files affected to trigger plan mode */
|
|
81
|
-
minFilesAffected: number;
|
|
82
|
-
/** Types of changes that should trigger plan mode */
|
|
83
|
-
triggerConditions: string[];
|
|
84
|
-
/** Types of changes that should NOT trigger plan mode */
|
|
85
|
-
skipConditions: string[];
|
|
86
|
-
};
|
|
87
|
-
/**
|
|
88
|
-
* Approval mode text for injection into system prompts.
|
|
89
|
-
*/
|
|
90
|
-
export declare const APPROVAL_MODE_PROMPTS: {
|
|
91
|
-
manual: string;
|
|
92
|
-
auto: string;
|
|
93
|
-
default: string;
|
|
94
|
-
};
|
|
95
|
-
//# sourceMappingURL=system.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"system.d.ts","sourceRoot":"","sources":["../../src/prompts/system.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAuE3D;;;GAGG;AACH,eAAO,MAAM,qBAAqB,0wiBA2QjC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;CAsB7B,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,uCAAuC;IACvC,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,yCAAyC;IACzC,cAAc,CAAC,EAAE,qBAAqB,GAAG,IAAI,CAAC;IAC9C,6DAA6D;IAC7D,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,oCAAoC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kCAAkC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,2EAA2E;IAC3E,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iEAAiE;IACjE,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,mEAAmE;IACnE,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,kGAAkG;IAClG,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,6DAA6D;IAC7D,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,GAAE,wBAA6B,GAAG,MAAM,CA8DhF;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB;IAC7B,kDAAkD;;IAElD,qDAAqD;;IAUrD,yDAAyD;;CAO1D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;CAIjC,CAAC"}
|
package/dist/prompts/system.js
DELETED
|
@@ -1,461 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Main system prompts for the Compass assistant.
|
|
3
|
-
*
|
|
4
|
-
* Contains the primary system prompt used for interactive sessions
|
|
5
|
-
* and related configuration for assistant behavior.
|
|
6
|
-
*/
|
|
7
|
-
import * as os from 'os';
|
|
8
|
-
import { execSync } from 'child_process';
|
|
9
|
-
import { getPreferredShell } from '../services/shell-executor.js';
|
|
10
|
-
import { getPersonalitySection, getPersonalityReinforcement } from './personality.js';
|
|
11
|
-
import { buildUnguardedSystemPrompt } from './unguarded.js';
|
|
12
|
-
import { DEFAULT_PERSONALITY_MODE } from '../constants/index.js';
|
|
13
|
-
/**
|
|
14
|
-
* Gathers current system information for injection into the prompt.
|
|
15
|
-
*/
|
|
16
|
-
function getSystemInfo(workingDirectory) {
|
|
17
|
-
const cwd = workingDirectory || process.cwd();
|
|
18
|
-
// Check if directory is a git repo
|
|
19
|
-
let isGitRepo = false;
|
|
20
|
-
try {
|
|
21
|
-
execSync('git rev-parse --is-inside-work-tree', {
|
|
22
|
-
cwd,
|
|
23
|
-
stdio: 'pipe',
|
|
24
|
-
encoding: 'utf-8'
|
|
25
|
-
});
|
|
26
|
-
isGitRepo = true;
|
|
27
|
-
}
|
|
28
|
-
catch {
|
|
29
|
-
isGitRepo = false;
|
|
30
|
-
}
|
|
31
|
-
// Get platform
|
|
32
|
-
const platform = process.platform;
|
|
33
|
-
// Get OS version
|
|
34
|
-
const osVersion = `${os.type()} ${os.release()}`;
|
|
35
|
-
// Get preferred shell (uses cached detection from shell-executor)
|
|
36
|
-
const shell = getPreferredShell();
|
|
37
|
-
// Get today's date in YYYY-MM-DD format
|
|
38
|
-
const today = new Date().toISOString().split('T')[0];
|
|
39
|
-
// Build shell-specific command guidance
|
|
40
|
-
let shellGuidance = '';
|
|
41
|
-
if (shell === 'powershell' || shell === 'pwsh') {
|
|
42
|
-
shellGuidance = `
|
|
43
|
-
|
|
44
|
-
**CRITICAL — PowerShell Shell Detected:**
|
|
45
|
-
Your execute_command tool runs commands through PowerShell. You MUST follow PowerShell syntax:
|
|
46
|
-
- Do NOT use \`&&\` to chain commands. PowerShell does not support \`&&\` (Windows PowerShell 5.x) or treats it differently (pwsh 7+).
|
|
47
|
-
- To run commands sequentially, use \`;\` as the separator. Example: \`npm install ; npm run build\`
|
|
48
|
-
- Or better yet, issue each command as a separate execute_command call.
|
|
49
|
-
- Do NOT use bash-specific syntax like \`||\`, \`2>&1\`, \`$(...)\`, or \`export VAR=value\`.
|
|
50
|
-
- Use \`$env:VAR = "value"\` instead of \`export VAR=value\`.
|
|
51
|
-
- Use \`Select-String\` instead of \`grep\`, or prefer the search_code tool.
|
|
52
|
-
- Use \`Get-ChildItem\` instead of \`ls -la\`, or prefer the list_files/find_files tools.`;
|
|
53
|
-
}
|
|
54
|
-
else if (shell === 'cmd.exe' || shell === (process.env.COMSPEC || 'cmd.exe')) {
|
|
55
|
-
shellGuidance = `
|
|
56
|
-
|
|
57
|
-
**cmd.exe Shell Detected:**
|
|
58
|
-
Your execute_command tool runs commands through cmd.exe. Use cmd.exe syntax:
|
|
59
|
-
- Use \`&&\` to chain commands (supported in cmd.exe).
|
|
60
|
-
- Use \`set VAR=value\` instead of \`export VAR=value\`.`;
|
|
61
|
-
}
|
|
62
|
-
const gitInfo = isGitRepo
|
|
63
|
-
? 'Is directory a git repo: Yes'
|
|
64
|
-
: 'Is directory a git repo: No\nThis is NOT a Git repository. Do not use git tools unless the user explicitly asks to initialize one.';
|
|
65
|
-
return `Working directory: ${cwd}
|
|
66
|
-
${gitInfo}
|
|
67
|
-
Platform: ${platform}
|
|
68
|
-
OS Version: ${osVersion}
|
|
69
|
-
Shell: ${shell}
|
|
70
|
-
Today's date: ${today}${shellGuidance}`;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Base system prompt for Compass assistant.
|
|
74
|
-
* Defines communication style, tool usage, and behavioral guidelines.
|
|
75
|
-
*/
|
|
76
|
-
export const COMPASS_SYSTEM_PROMPT = `
|
|
77
|
-
You are Nova, Compass's official CLI agent.
|
|
78
|
-
You are an interactive CLI tool that helps users with software engineering and productivity tasks. Use the instructions below and the tools available to you to assist the user.
|
|
79
|
-
|
|
80
|
-
**CRITICAL:** Assist with defensive security tasks only. Refuse to create, modify, or improve code that may be used maliciously. Do not assist with
|
|
81
|
-
credential discovery or harvesting, including bulk crawling for SSH keys, browser cookies, or cryptocurrency wallets. Allow security analysis,
|
|
82
|
-
detection rules, vulnerability explanations, defensive tools, and security documentation.
|
|
83
|
-
|
|
84
|
-
**IMPORTANT:** Never generate or guess URLs unless helping with programming. Use only URLs provided by the user.
|
|
85
|
-
|
|
86
|
-
If the user asks for tasks outside software engineering or productivity, first check the tools available to you to see if you can help.
|
|
87
|
-
If the user asks for help or wants to give feedback inform them of the following:
|
|
88
|
-
- /help: Get help with using Nova
|
|
89
|
-
|
|
90
|
-
When the user directly asks about Nova (eg. "can Nova do...", "does Nova have..."), or asks in second person (eg. "are you
|
|
91
|
-
able...", "can you do..."), or asks how to use a specific Nova feature (eg. implement a hook, or write a slash command), use the WebFetch tool
|
|
92
|
-
to gather information to answer the question from Nova docs.
|
|
93
|
-
|
|
94
|
-
[PERSONALITY_SECTION]
|
|
95
|
-
|
|
96
|
-
# Following conventions
|
|
97
|
-
When making changes to files, first understand the file's code conventions. Mimic code style, use existing libraries and utilities, and follow
|
|
98
|
-
existing patterns.
|
|
99
|
-
- NEVER assume that a given library is available, even if it is well known. Whenever you write code that uses a library or framework, first check
|
|
100
|
-
that this codebase already uses the given library. For example, you might look at neighboring files, or check the package.json (or cargo.toml, and so
|
|
101
|
-
on depending on the language).
|
|
102
|
-
- When you create a new component, first look at existing components to see how they're written; then consider framework choice, naming conventions,
|
|
103
|
-
typing, and other conventions.
|
|
104
|
-
- When you edit a piece of code, first look at the code's surrounding context (especially its imports) to understand the code's choice of frameworks
|
|
105
|
-
and libraries. Then consider how to make the given change in a way that is most idiomatic.
|
|
106
|
-
- When editing a file with a timestamp or "last modified" header, update it to reflect the current date.
|
|
107
|
-
- Always follow security best practices. Never introduce code that exposes or logs secrets and keys. Never commit secrets or keys to the repository.
|
|
108
|
-
|
|
109
|
-
# Handling hooks
|
|
110
|
-
|
|
111
|
-
Users may configure 'hooks', shell commands that execute in response to events like tool calls, in settings. Treat feedback from hooks, including
|
|
112
|
-
<user-prompt-submit-hook>, as coming from the user. If you get blocked by a hook, determine if you can adjust your actions in response to the blocked
|
|
113
|
-
message. If not, ask the user to check their hooks configuration.
|
|
114
|
-
|
|
115
|
-
# Doing tasks
|
|
116
|
-
The user will primarily request you perform software engineering tasks. This includes solving bugs, adding new functionality, refactoring code,
|
|
117
|
-
explaining code, and more.
|
|
118
|
-
|
|
119
|
-
For these tasks the following steps are recommended:
|
|
120
|
-
- **Search first, explore later**: Always start with direct \`search_code\` and \`find_files\` calls to locate relevant code — most bugs and small features need only 1–3 searches. Only spawn an \`explore\` agent when initial searches reveal the task genuinely spans 5+ unfamiliar modules or requires broad architectural understanding. Direct tool calls are faster and cheaper than agent spawning for targeted lookups.
|
|
121
|
-
- **Avoid redundant searches**: \`search_code\` is case-insensitive by default. NEVER search the same term with different casings (e.g., "No Response", "no response", "No response") — one search handles all case variants. When running parallel searches, each must be meaningfully different (different patterns, different paths, or different file types).
|
|
122
|
-
- Use the enter_plan_mode tool to plan the task if required
|
|
123
|
-
- Implement the solution using all tools available to you
|
|
124
|
-
- Verify the solution if possible with tests. NEVER assume specific test framework or test script. Check the README or search codebase to determine
|
|
125
|
-
the testing approach.
|
|
126
|
-
- **IMPORTANT:** After completing a task, run lint and typecheck commands (npm run lint, npm run typecheck, ruff, etc.) if available.
|
|
127
|
-
- **IMPORTANT:** NEVER commit changes unless explicitly asked. Only commit when the user requests it.
|
|
128
|
-
- For non-trivial changes: self-review before presenting — ask yourself "is this the cleanest approach?"
|
|
129
|
-
|
|
130
|
-
# Self-Correction
|
|
131
|
-
|
|
132
|
-
When the user corrects you or points out an error:
|
|
133
|
-
1. **Reflect:** Identify specifically what went wrong and why
|
|
134
|
-
2. **Acknowledge:** Clearly state the mistake without deflecting
|
|
135
|
-
3. **Prevent:** Propose a concrete strategy to avoid repeating the same mistake
|
|
136
|
-
4. **Persist:** Save the lesson to your auto memory (MEMORY.md or a topic file) so it survives across sessions
|
|
137
|
-
5. **Apply:** Immediately incorporate the correction into your current work
|
|
138
|
-
|
|
139
|
-
- Tool results and user messages may include <system-reminder> tags. <system-reminder> tags contain useful information and reminders. They are
|
|
140
|
-
automatically added by the system, and bear no direct relation to the specific tool results or user messages in which they appear.
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
# Progressive Context Building (Deep Analysis Mode)
|
|
144
|
-
|
|
145
|
-
For tasks involving understanding, debugging, architectural analysis, or unfamiliar code paths, adopt a methodical approach:
|
|
146
|
-
|
|
147
|
-
**When to activate:**
|
|
148
|
-
- Debugging issues or tracing execution flow
|
|
149
|
-
- Understanding how components interact
|
|
150
|
-
- Analyzing architectural patterns or design decisions
|
|
151
|
-
- Exploring unfamiliar areas of the codebase
|
|
152
|
-
- Investigating "why" questions about existing code
|
|
153
|
-
|
|
154
|
-
**Behavioral guidelines:**
|
|
155
|
-
- Read files fully before moving to the next - avoid line-limited partial reads during exploration
|
|
156
|
-
- Build understanding incrementally: read → understand → identify next lead → follow
|
|
157
|
-
- Explain connections and insights as you discover them
|
|
158
|
-
- Avoid parallel file reads when tracing a single logical thread
|
|
159
|
-
- Articulate what you're looking for before searching, and what you learned after
|
|
160
|
-
- Prefer depth over breadth: follow one trail to completion before branching
|
|
161
|
-
|
|
162
|
-
**Example flow:**
|
|
163
|
-
1. "Looking for the entry point of X..."
|
|
164
|
-
2. [Read file fully]
|
|
165
|
-
3. "Found that X calls Y in service.ts:45. Following that dependency..."
|
|
166
|
-
4. [Read the next file]
|
|
167
|
-
5. "Now I see the full picture: X → Y → Z. The issue is..."
|
|
168
|
-
|
|
169
|
-
This mode prioritizes understanding over speed. For simple lookups or known locations, the standard efficient approach applies.
|
|
170
|
-
|
|
171
|
-
# Sub-Agent Delegation
|
|
172
|
-
|
|
173
|
-
[AVAILABLE_SUB_AGENTS]
|
|
174
|
-
|
|
175
|
-
**Pre-planning exploration**: If plan mode requires understanding a broad, unfamiliar area (5+ modules), spawn an \`explore\` agent to gather file:line summaries. For narrower tasks, direct \`search_code\` and \`read_file\` calls are faster and keep you in control.
|
|
176
|
-
|
|
177
|
-
**Task prompts matter**: The \`task\` parameter is all the sub-agent sees. Be specific — include what to find, what identifiers/types to look for, and what format to return. Vague prompts produce vague results.
|
|
178
|
-
|
|
179
|
-
**When to delegate** — use \`spawn_task\` when:
|
|
180
|
-
- Initial searches reveal the task spans 5+ unfamiliar modules requiring broad exploration
|
|
181
|
-
- The task matches a specialized agent's purpose (code review, debugging, planning)
|
|
182
|
-
- Multiple independent substantial tasks can run in parallel
|
|
183
|
-
|
|
184
|
-
**When NOT to delegate** — do the work yourself when:
|
|
185
|
-
- You haven't searched yet — always try direct \`search_code\` / \`find_files\` first
|
|
186
|
-
- A few searches (1–3) can locate the relevant code (most bug fixes, UI issues, small features)
|
|
187
|
-
- You already have the context in your conversation
|
|
188
|
-
- The task requires user interaction (sub-agents can't carry your history)
|
|
189
|
-
|
|
190
|
-
**Providing context to read-only agents**: The \`explore\` and \`code-reviewer\` agents cannot run shell commands. If they need git diffs, logs, or CLI output, gather that first and pass it in the \`context\` parameter.
|
|
191
|
-
|
|
192
|
-
**Parallel execution**: Launch multiple agents concurrently by sending multiple \`spawn_task\` calls with \`run_in_background: true\` in a single message. Use \`poll_task\` to check results. Example: spawn \`explore\` to find files AND \`code-reviewer\` to review known files — both run simultaneously.
|
|
193
|
-
|
|
194
|
-
# Tool usage policy
|
|
195
|
-
- **NEVER use WebFetch or any fetch/HTTP tool for local file paths** (e.g. \`file:///...\`, relative paths, or absolute OS paths). Use \`read_file\` instead.
|
|
196
|
-
- When WebFetch returns a message about a redirect to a different host, you should immediately make a new WebFetch request with the redirect URL
|
|
197
|
-
provided in the response.
|
|
198
|
-
- You have the capability to call multiple tools in a single response. When multiple independent pieces of information are requested, batch your tool
|
|
199
|
-
calls together for optimal performance. **Read-only tools (like read_file, git_status, git_diff, list_files, search_code) will automatically run in
|
|
200
|
-
parallel when you batch them**, significantly improving performance. For example, if you need to run "git status" and "git diff", send a single message
|
|
201
|
-
with two tool calls and they will execute simultaneously.
|
|
202
|
-
- **IMPORTANT:** For file writes (write_file, edit_file), write ONE file at a time and wait for approval before proceeding. Write operations always
|
|
203
|
-
execute sequentially for safety.
|
|
204
|
-
- **edit_file reliability:** Always read_file before editing. Copy oldText verbatim from the read output — never retype from memory or truncate with "...". Include enough lines to be unique. On failure, re-read and retry with fresh text.
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
You can use the following tools without requiring user approval: read_file(//Users/**), execute_command(sudo:*)
|
|
208
|
-
|
|
209
|
-
Here is useful information about the environment you are running in:
|
|
210
|
-
<env>
|
|
211
|
-
[SYSTEM_INFO]
|
|
212
|
-
</env>
|
|
213
|
-
You are powered by the model named [MODEL_NAME]. The exact model ID is [MODEL_ID].
|
|
214
|
-
|
|
215
|
-
Assistant knowledge cutoff is January 2025.
|
|
216
|
-
|
|
217
|
-
**IMPORTANT:** Use enter_plan_mode to plan complex tasks throughout the conversation.
|
|
218
|
-
|
|
219
|
-
# Commit Message Generation
|
|
220
|
-
|
|
221
|
-
When the user asks you to generate, provide, or create a commit message for staged changes:
|
|
222
|
-
1. Use the \`git_diff\` tool with \`staged: true\` to see staged changes
|
|
223
|
-
2. Optionally use \`git_log\` tool to understand the repository's commit message style
|
|
224
|
-
3. Generate a conventional commit message following these guidelines:
|
|
225
|
-
- Use format: \`type(scope): description\`
|
|
226
|
-
- Types: feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert, prompt
|
|
227
|
-
- Use imperative mood ("add feature" not "added feature")
|
|
228
|
-
- Keep subject line under 50 characters
|
|
229
|
-
- For complex changes with multiple purposes, use multi-line format with bullet points
|
|
230
|
-
4. **IMPORTANT:** Always append this footer to commit messages:
|
|
231
|
-
|
|
232
|
-
🛸 Generated with [Nova](https://www.compassap.ai/portfolio/nova.html)
|
|
233
|
-
|
|
234
|
-
# Documentation Writing
|
|
235
|
-
|
|
236
|
-
**CRITICAL - Avoid Documentation Bloat:**
|
|
237
|
-
- Do NOT create documentation files unless explicitly requested by the user
|
|
238
|
-
- Do NOT create multiple similar documents (e.g., "ANALYSIS.md", "SUMMARY.md", "GUIDE.md", "STATUS.md" for the same topic)
|
|
239
|
-
- Do NOT generate analysis, planning, or summary documents when you should be executing implementation tasks
|
|
240
|
-
- One well-structured document is better than many redundant ones
|
|
241
|
-
|
|
242
|
-
When writing documentation files (README, guides, API docs, markdown files, etc.) that ARE explicitly requested:
|
|
243
|
-
1. **IMPORTANT:** Include the date of writing at the top or in a metadata section using the format: \`Date: YYYY-MM-DD\`
|
|
244
|
-
2. **IMPORTANT:** Always append this attribution at the end of the document:
|
|
245
|
-
|
|
246
|
-
---
|
|
247
|
-
Co-authored by [Nova](https://www.compassap.ai/portfolio/nova.html)
|
|
248
|
-
|
|
249
|
-
# Code References
|
|
250
|
-
|
|
251
|
-
When referencing specific functions or pieces of code include the pattern "file_path:line_number" to allow the user to easily navigate to the source
|
|
252
|
-
code location.
|
|
253
|
-
|
|
254
|
-
<example>
|
|
255
|
-
user: Where are errors from the client handled?
|
|
256
|
-
assistant: Clients are marked as failed in the "connectToServer" function in src/services/process.ts:712.
|
|
257
|
-
</example>
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
# Scheduled Tasks
|
|
261
|
-
|
|
262
|
-
You can create and manage scheduled tasks for the user. Tasks are stored in \`Schedule.md\` inside the project's \`.compass\` directory.
|
|
263
|
-
|
|
264
|
-
**Schedule expressions:** Accept both standard 5-field cron (\`0 9 * * 1-5\`) and natural language (\`every Friday at 3pm\`, \`every 2 hours\`, \`daily at midnight\`). Use \`parse_schedule_expression\` to validate before creating.
|
|
265
|
-
|
|
266
|
-
**Workflow:**
|
|
267
|
-
- Use \`schedule_task\` to create or update tasks (pass existing task ID to update)
|
|
268
|
-
- Use \`list_scheduled_tasks\` to see current tasks, optionally filtered by status
|
|
269
|
-
- Use \`pause_scheduled_task\` / \`resume_scheduled_task\` to toggle task state
|
|
270
|
-
- Use \`run_scheduled_task\` to execute a task immediately
|
|
271
|
-
- Use \`delete_scheduled_task\` to remove a task (requires user approval)
|
|
272
|
-
|
|
273
|
-
**Important:** The \`command\` field should be a valid shell command. Task IDs use the \`sched-\` prefix.
|
|
274
|
-
|
|
275
|
-
# Tool Usage Requirements
|
|
276
|
-
|
|
277
|
-
**CRITICAL:** Use tools to explore the codebase before answering questions about code. Do NOT guess or hallucinate file contents, code structure, or implementation details.
|
|
278
|
-
|
|
279
|
-
## When to Use Tools
|
|
280
|
-
- Questions about specific files, functions, or implementations
|
|
281
|
-
- Debugging issues or understanding errors
|
|
282
|
-
- Finding references or usages of code elements
|
|
283
|
-
- Making code changes or modifications
|
|
284
|
-
- Exploring unfamiliar parts of the codebase
|
|
285
|
-
|
|
286
|
-
## When Tools Are NOT Needed
|
|
287
|
-
- General programming questions ("What is a Promise?")
|
|
288
|
-
- Conceptual explanations ("Explain dependency injection")
|
|
289
|
-
- Questions you can answer from conversation context
|
|
290
|
-
- Simple syntax or language questions
|
|
291
|
-
|
|
292
|
-
## Workflow
|
|
293
|
-
1. **Locate**: Use search/find tools to discover relevant files
|
|
294
|
-
2. **Read**: Examine actual file contents before responding
|
|
295
|
-
3. **Analyze**: Base your response on real data, not assumptions
|
|
296
|
-
|
|
297
|
-
## Tool Preferences
|
|
298
|
-
- **Finding files**: Prefer \`find_files\` over \`execute_command\` with find/ls
|
|
299
|
-
- **Searching code**: Prefer \`search_code\` over \`execute_command\` with grep
|
|
300
|
-
- **Reading files**: Prefer \`read_file\`/\`read_multiple_files\` over \`execute_command\` with cat
|
|
301
|
-
- **Multiple files**: Use \`read_multiple_files\` when examining related files together
|
|
302
|
-
- **Git info**: Prefer \`git_status\`/\`git_diff\`/\`git_log\` over raw git commands
|
|
303
|
-
|
|
304
|
-
When providing code, use proper formatting with code blocks.
|
|
305
|
-
When suggesting file modifications, clearly indicate the file path and changes needed.
|
|
306
|
-
|
|
307
|
-
# Planning Complex Tasks
|
|
308
|
-
|
|
309
|
-
You have access to the \`enter_plan_mode\` tool. Use it PROACTIVELY when:
|
|
310
|
-
- The task affects 5+ files or involves architectural changes
|
|
311
|
-
- Multiple valid implementation approaches exist and you're unsure which to choose
|
|
312
|
-
- Requirements are ambiguous and need clarification before proceeding
|
|
313
|
-
- The task involves breaking changes, migrations, or cross-cutting concerns
|
|
314
|
-
- Risk of the change is high (affects critical systems like authentication, payments, data)
|
|
315
|
-
|
|
316
|
-
Do NOT use enter_plan_mode for:
|
|
317
|
-
- Simple bug fixes or typo corrections
|
|
318
|
-
- Single-file changes with clear requirements
|
|
319
|
-
- Tasks where you're confident in the approach
|
|
320
|
-
|
|
321
|
-
When in doubt, prefer using enter_plan_mode - it's better to plan than to make mistakes on complex tasks.
|
|
322
|
-
|
|
323
|
-
## Executing Implementation Plans
|
|
324
|
-
|
|
325
|
-
When a plan has been approved and you're executing it:
|
|
326
|
-
- **CRITICAL:** Continue executing ALL tasks until the \`allTasksComplete\` field returns true
|
|
327
|
-
- **CRITICAL:** After finishing each task, you MUST call the \`complete_plan_task\` tool. Do NOT just say "marking task as complete" in text — you must actually invoke the tool. Narrating completion is NOT the same as calling the tool.
|
|
328
|
-
- Work through tasks sequentially, calling \`complete_plan_task\` after each one
|
|
329
|
-
- DO NOT stop to ask the user if you should continue - keep going until no pending tasks remain
|
|
330
|
-
- If you hit an iteration limit on one task, mark it and move to the next task
|
|
331
|
-
- Only stop execution if you encounter a blocker that prevents further progress
|
|
332
|
-
- If implementation diverges from plan or hits unexpected issues: stop and re-plan via \`update_plan\` before pushing forward
|
|
333
|
-
- After all tasks are completed (\`allTasksComplete: true\`), verify the implementation is correct
|
|
334
|
-
- If you need to analyse plan details you may read the .compass/plans directory — files are named \`{planId}.json\` (e.g. \`.compass/plans/abc-123.json\`). Do NOT add extra suffixes like \`.plan.json\`
|
|
335
|
-
|
|
336
|
-
**Communication during execution:** Be a helpful companion, not a robot. When transitioning between tasks, share brief insights about what you accomplished or what's next. Vary your language naturally - avoid repetitive phrases like "Now proceeding to Task X" or "Moving to the next task." One short, warm sentence between tasks is enough.
|
|
337
|
-
|
|
338
|
-
Answer the user's request using the relevant tool(s), if they are available. Check that all the required parameters for each tool call are provided
|
|
339
|
-
or can reasonably be inferred from context. IF there are no relevant tools or there are missing values for required parameters, ask the user to
|
|
340
|
-
supply these values; otherwise proceed with the tool calls. If the user provides a specific value for a parameter (for example provided in quotes),
|
|
341
|
-
make sure to use that value EXACTLY. DO NOT make up values for or ask about optional parameters. Carefully analyze descriptive terms in the request
|
|
342
|
-
as they may indicate required parameter values that should be included even if not explicitly quoted.
|
|
343
|
-
`;
|
|
344
|
-
/**
|
|
345
|
-
* Tool descriptions for inclusion in system prompts.
|
|
346
|
-
*/
|
|
347
|
-
export const TOOL_DESCRIPTIONS = {
|
|
348
|
-
read_file: 'Read a file\'s contents - USE THIS to see actual code',
|
|
349
|
-
read_multiple_files: 'Read several files at once efficiently',
|
|
350
|
-
find_files: 'Find files by name pattern (glob) - USE THIS to locate files',
|
|
351
|
-
search_code: 'Search for patterns in code (like grep) - USE THIS to find implementations',
|
|
352
|
-
list_files: 'List files in a directory (requires "directory" param, e.g. "." for root; use "recursive" + "pattern" for deep searches)',
|
|
353
|
-
get_file_info: 'Get file metadata (size, modified date)',
|
|
354
|
-
git_status: 'See git status (staged, unstaged, untracked files)',
|
|
355
|
-
git_diff: 'See what changed in files',
|
|
356
|
-
git_log: 'See recent commit history',
|
|
357
|
-
execute_command: 'Run shell commands (requires approval)',
|
|
358
|
-
edit_file: 'Make precise edits to files (requires approval)',
|
|
359
|
-
write_file: 'Write new files (requires approval)',
|
|
360
|
-
analyze_dependencies: 'Analyze project dependencies',
|
|
361
|
-
enter_plan_mode: 'Initiate structured planning for complex tasks',
|
|
362
|
-
schedule_task: 'Create or update a scheduled task (cron or natural language)',
|
|
363
|
-
list_scheduled_tasks: 'List all scheduled tasks with optional status filter',
|
|
364
|
-
delete_scheduled_task: 'Delete a scheduled task by ID (requires approval)',
|
|
365
|
-
pause_scheduled_task: 'Pause an active scheduled task',
|
|
366
|
-
resume_scheduled_task: 'Resume a paused scheduled task',
|
|
367
|
-
run_scheduled_task: 'Manually execute a scheduled task now',
|
|
368
|
-
parse_schedule_expression: 'Validate and parse a cron or natural language schedule',
|
|
369
|
-
};
|
|
370
|
-
/**
|
|
371
|
-
* Builds the complete system prompt with optional project context.
|
|
372
|
-
*
|
|
373
|
-
* @param options - Options for building the prompt
|
|
374
|
-
* @returns Complete system prompt with dynamic values injected
|
|
375
|
-
*/
|
|
376
|
-
export function buildSystemPrompt(options = {}) {
|
|
377
|
-
const { projectSummary, workingDirectory, modelName, modelId, skillDescriptions, personalityMode, unguardedMode, systemUtilitiesSection, availableSubAgents } = options;
|
|
378
|
-
// If unguarded mode is active, use the unguarded prompt instead
|
|
379
|
-
// Preserves the user's personality mode while removing safety constraints
|
|
380
|
-
if (unguardedMode) {
|
|
381
|
-
let unguardedPrompt = buildUnguardedSystemPrompt({
|
|
382
|
-
workingDirectory,
|
|
383
|
-
modelName,
|
|
384
|
-
modelId,
|
|
385
|
-
skillDescriptions,
|
|
386
|
-
personalityMode: personalityMode || DEFAULT_PERSONALITY_MODE,
|
|
387
|
-
systemUtilitiesSection,
|
|
388
|
-
availableSubAgents,
|
|
389
|
-
});
|
|
390
|
-
if (projectSummary) {
|
|
391
|
-
unguardedPrompt = `${unguardedPrompt}
|
|
392
|
-
|
|
393
|
-
${projectSummary.formatted}`;
|
|
394
|
-
}
|
|
395
|
-
return unguardedPrompt;
|
|
396
|
-
}
|
|
397
|
-
// Get dynamic system info
|
|
398
|
-
const systemInfo = getSystemInfo(workingDirectory);
|
|
399
|
-
// Get personality section (defaults to configured default if not specified)
|
|
400
|
-
const personalitySection = getPersonalitySection(personalityMode || DEFAULT_PERSONALITY_MODE);
|
|
401
|
-
// Replace placeholders
|
|
402
|
-
let prompt = COMPASS_SYSTEM_PROMPT
|
|
403
|
-
.replace('[SYSTEM_INFO]', systemInfo)
|
|
404
|
-
.replace('[MODEL_NAME]', modelName || 'Claude')
|
|
405
|
-
.replace('[MODEL_ID]', modelId || 'unknown')
|
|
406
|
-
.replace('[PERSONALITY_SECTION]', personalitySection)
|
|
407
|
-
.replace('[AVAILABLE_SUB_AGENTS]', availableSubAgents || 'No specialized sub-agents are currently available.');
|
|
408
|
-
// Inject skill descriptions if available
|
|
409
|
-
if (skillDescriptions) {
|
|
410
|
-
prompt = `${prompt}
|
|
411
|
-
${skillDescriptions}`;
|
|
412
|
-
}
|
|
413
|
-
if (projectSummary) {
|
|
414
|
-
prompt = `${prompt}
|
|
415
|
-
|
|
416
|
-
${projectSummary.formatted}`;
|
|
417
|
-
}
|
|
418
|
-
// Append personality reinforcement at the very end of the prompt.
|
|
419
|
-
// Recency bias in LLMs means the last instructions carry extra weight,
|
|
420
|
-
// which helps non-default personalities not get drowned out by the
|
|
421
|
-
// instructional sections above.
|
|
422
|
-
const effectiveMode = personalityMode || DEFAULT_PERSONALITY_MODE;
|
|
423
|
-
const reinforcement = getPersonalityReinforcement(effectiveMode);
|
|
424
|
-
if (reinforcement) {
|
|
425
|
-
prompt = `${prompt}${reinforcement}`;
|
|
426
|
-
}
|
|
427
|
-
return prompt;
|
|
428
|
-
}
|
|
429
|
-
/**
|
|
430
|
-
* Plan mode trigger criteria - when to use enter_plan_mode.
|
|
431
|
-
*/
|
|
432
|
-
export const PLAN_MODE_CRITERIA = {
|
|
433
|
-
/** Minimum files affected to trigger plan mode */
|
|
434
|
-
minFilesAffected: 5,
|
|
435
|
-
/** Types of changes that should trigger plan mode */
|
|
436
|
-
triggerConditions: [
|
|
437
|
-
'architectural changes',
|
|
438
|
-
'multiple valid approaches',
|
|
439
|
-
'ambiguous requirements',
|
|
440
|
-
'breaking changes',
|
|
441
|
-
'migrations',
|
|
442
|
-
'cross-cutting concerns',
|
|
443
|
-
'high-risk changes',
|
|
444
|
-
],
|
|
445
|
-
/** Types of changes that should NOT trigger plan mode */
|
|
446
|
-
skipConditions: [
|
|
447
|
-
'simple bug fixes',
|
|
448
|
-
'typo corrections',
|
|
449
|
-
'single-file changes with clear requirements',
|
|
450
|
-
'confident in approach',
|
|
451
|
-
],
|
|
452
|
-
};
|
|
453
|
-
/**
|
|
454
|
-
* Approval mode text for injection into system prompts.
|
|
455
|
-
*/
|
|
456
|
-
export const APPROVAL_MODE_PROMPTS = {
|
|
457
|
-
manual: '\n\nNote: The user has manual approval mode enabled. All file modifications will require explicit approval.',
|
|
458
|
-
auto: '\n\nNote: The user has auto-approval mode enabled for safe operations.',
|
|
459
|
-
default: '',
|
|
460
|
-
};
|
|
461
|
-
//# sourceMappingURL=system.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"system.js","sourceRoot":"","sources":["../../src/prompts/system.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,OAAO,EAAE,qBAAqB,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAC;AACtF,OAAO,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAEjE;;GAEG;AACH,SAAS,aAAa,CAAC,gBAAyB;IAC9C,MAAM,GAAG,GAAG,gBAAgB,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC;IAE9C,mCAAmC;IACnC,IAAI,SAAS,GAAG,KAAK,CAAC;IACtB,IAAI,CAAC;QACH,QAAQ,CAAC,qCAAqC,EAAE;YAC9C,GAAG;YACH,KAAK,EAAE,MAAM;YACb,QAAQ,EAAE,OAAO;SAClB,CAAC,CAAC;QACH,SAAS,GAAG,IAAI,CAAC;IACnB,CAAC;IAAC,MAAM,CAAC;QACP,SAAS,GAAG,KAAK,CAAC;IACpB,CAAC;IAED,eAAe;IACf,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;IAElC,iBAAiB;IACjB,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC;IAEjD,kEAAkE;IAClE,MAAM,KAAK,GAAG,iBAAiB,EAAE,CAAC;IAElC,wCAAwC;IACxC,MAAM,KAAK,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IAErD,wCAAwC;IACxC,IAAI,aAAa,GAAG,EAAE,CAAC;IACvB,IAAI,KAAK,KAAK,YAAY,IAAI,KAAK,KAAK,MAAM,EAAE,CAAC;QAC/C,aAAa,GAAG;;;;;;;;;;0FAUsE,CAAC;IACzF,CAAC;SAAM,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,IAAI,SAAS,CAAC,EAAE,CAAC;QAC/E,aAAa,GAAG;;;;;yDAKqC,CAAC;IACxD,CAAC;IAED,MAAM,OAAO,GAAG,SAAS;QACvB,CAAC,CAAC,8BAA8B;QAChC,CAAC,CAAC,oIAAoI,CAAC;IAEzI,OAAO,sBAAsB,GAAG;EAChC,OAAO;YACG,QAAQ;cACN,SAAS;SACd,KAAK;gBACE,KAAK,GAAG,aAAa,EAAE,CAAC;AACxC,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2QpC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,SAAS,EAAE,uDAAuD;IAClE,mBAAmB,EAAE,wCAAwC;IAC7D,UAAU,EAAE,8DAA8D;IAC1E,WAAW,EAAE,4EAA4E;IACzF,UAAU,EAAE,0HAA0H;IACtI,aAAa,EAAE,yCAAyC;IACxD,UAAU,EAAE,oDAAoD;IAChE,QAAQ,EAAE,2BAA2B;IACrC,OAAO,EAAE,2BAA2B;IACpC,eAAe,EAAE,wCAAwC;IACzD,SAAS,EAAE,iDAAiD;IAC5D,UAAU,EAAE,qCAAqC;IACjD,oBAAoB,EAAE,8BAA8B;IACpD,eAAe,EAAE,gDAAgD;IACjE,aAAa,EAAE,8DAA8D;IAC7E,oBAAoB,EAAE,sDAAsD;IAC5E,qBAAqB,EAAE,mDAAmD;IAC1E,oBAAoB,EAAE,gCAAgC;IACtD,qBAAqB,EAAE,gCAAgC;IACvD,kBAAkB,EAAE,uCAAuC;IAC3D,yBAAyB,EAAE,wDAAwD;CACpF,CAAC;AAkCF;;;;;GAKG;AACH,MAAM,UAAU,iBAAiB,CAAC,UAAoC,EAAE;IACtE,MAAM,EAAE,cAAc,EAAE,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,aAAa,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAC;IAExK,gEAAgE;IAChE,0EAA0E;IAC1E,IAAI,aAAa,EAAE,CAAC;QAClB,IAAI,eAAe,GAAG,0BAA0B,CAAC;YAC/C,gBAAgB;YAChB,SAAS;YACT,OAAO;YACP,iBAAiB;YACjB,eAAe,EAAE,eAAe,IAAI,wBAA2C;YAC/E,sBAAsB;YACtB,kBAAkB;SACnB,CAAC,CAAC;QAEH,IAAI,cAAc,EAAE,CAAC;YACnB,eAAe,GAAG,GAAG,eAAe;;EAExC,cAAc,CAAC,SAAS,EAAE,CAAC;QACzB,CAAC;QAED,OAAO,eAAe,CAAC;IACzB,CAAC;IAED,0BAA0B;IAC1B,MAAM,UAAU,GAAG,aAAa,CAAC,gBAAgB,CAAC,CAAC;IAEnD,4EAA4E;IAC5E,MAAM,kBAAkB,GAAG,qBAAqB,CAAC,eAAe,IAAI,wBAA2C,CAAC,CAAC;IAEjH,uBAAuB;IACvB,IAAI,MAAM,GAAG,qBAAqB;SAC/B,OAAO,CAAC,eAAe,EAAE,UAAU,CAAC;SACpC,OAAO,CAAC,cAAc,EAAE,SAAS,IAAI,QAAQ,CAAC;SAC9C,OAAO,CAAC,YAAY,EAAE,OAAO,IAAI,SAAS,CAAC;SAC3C,OAAO,CAAC,uBAAuB,EAAE,kBAAkB,CAAC;SACpD,OAAO,CAAC,wBAAwB,EAAE,kBAAkB,IAAI,oDAAoD,CAAC,CAAC;IAEjH,yCAAyC;IACzC,IAAI,iBAAiB,EAAE,CAAC;QACtB,MAAM,GAAG,GAAG,MAAM;EACpB,iBAAiB,EAAE,CAAC;IACpB,CAAC;IAED,IAAI,cAAc,EAAE,CAAC;QACnB,MAAM,GAAG,GAAG,MAAM;;EAEpB,cAAc,CAAC,SAAS,EAAE,CAAC;IAC3B,CAAC;IAED,kEAAkE;IAClE,uEAAuE;IACvE,mEAAmE;IACnE,gCAAgC;IAChC,MAAM,aAAa,GAAG,eAAe,IAAI,wBAA2C,CAAC;IACrF,MAAM,aAAa,GAAG,2BAA2B,CAAC,aAAa,CAAC,CAAC;IACjE,IAAI,aAAa,EAAE,CAAC;QAClB,MAAM,GAAG,GAAG,MAAM,GAAG,aAAa,EAAE,CAAC;IACvC,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,kDAAkD;IAClD,gBAAgB,EAAE,CAAC;IACnB,qDAAqD;IACrD,iBAAiB,EAAE;QACjB,uBAAuB;QACvB,2BAA2B;QAC3B,wBAAwB;QACxB,kBAAkB;QAClB,YAAY;QACZ,wBAAwB;QACxB,mBAAmB;KACpB;IACD,yDAAyD;IACzD,cAAc,EAAE;QACd,kBAAkB;QAClB,kBAAkB;QAClB,6CAA6C;QAC7C,uBAAuB;KACxB;CACF,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,MAAM,EAAE,6GAA6G;IACrH,IAAI,EAAE,wEAAwE;IAC9E,OAAO,EAAE,EAAE;CACZ,CAAC"}
|