@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.
Files changed (973) hide show
  1. package/dist/cli.js +557 -555
  2. package/dist/index.js +10 -8
  3. package/package.json +1 -1
  4. package/dist/acp/agent.d.ts +0 -318
  5. package/dist/acp/agent.d.ts.map +0 -1
  6. package/dist/acp/agent.js +0 -795
  7. package/dist/acp/agent.js.map +0 -1
  8. package/dist/acp/backpressure-writer.d.ts +0 -49
  9. package/dist/acp/backpressure-writer.d.ts.map +0 -1
  10. package/dist/acp/backpressure-writer.js +0 -153
  11. package/dist/acp/backpressure-writer.js.map +0 -1
  12. package/dist/acp/event-adapter.d.ts +0 -242
  13. package/dist/acp/event-adapter.d.ts.map +0 -1
  14. package/dist/acp/event-adapter.js +0 -456
  15. package/dist/acp/event-adapter.js.map +0 -1
  16. package/dist/acp/index.d.ts +0 -30
  17. package/dist/acp/index.d.ts.map +0 -1
  18. package/dist/acp/index.js +0 -36
  19. package/dist/acp/index.js.map +0 -1
  20. package/dist/acp/modes.d.ts +0 -56
  21. package/dist/acp/modes.d.ts.map +0 -1
  22. package/dist/acp/modes.js +0 -135
  23. package/dist/acp/modes.js.map +0 -1
  24. package/dist/acp/session-manager.d.ts +0 -170
  25. package/dist/acp/session-manager.d.ts.map +0 -1
  26. package/dist/acp/session-manager.js +0 -381
  27. package/dist/acp/session-manager.js.map +0 -1
  28. package/dist/acp/text-coalescer.d.ts +0 -45
  29. package/dist/acp/text-coalescer.d.ts.map +0 -1
  30. package/dist/acp/text-coalescer.js +0 -110
  31. package/dist/acp/text-coalescer.js.map +0 -1
  32. package/dist/acp/tool-bridge.d.ts +0 -156
  33. package/dist/acp/tool-bridge.d.ts.map +0 -1
  34. package/dist/acp/tool-bridge.js +0 -381
  35. package/dist/acp/tool-bridge.js.map +0 -1
  36. package/dist/acp/types.d.ts +0 -314
  37. package/dist/acp/types.d.ts.map +0 -1
  38. package/dist/acp/types.js +0 -8
  39. package/dist/acp/types.js.map +0 -1
  40. package/dist/cli.d.ts +0 -9
  41. package/dist/cli.d.ts.map +0 -1
  42. package/dist/cli.js.map +0 -1
  43. package/dist/commands/acp.d.ts +0 -26
  44. package/dist/commands/acp.d.ts.map +0 -1
  45. package/dist/commands/acp.js +0 -492
  46. package/dist/commands/acp.js.map +0 -1
  47. package/dist/commands/cache.d.ts +0 -33
  48. package/dist/commands/cache.d.ts.map +0 -1
  49. package/dist/commands/cache.js +0 -537
  50. package/dist/commands/cache.js.map +0 -1
  51. package/dist/commands/config.d.ts +0 -10
  52. package/dist/commands/config.d.ts.map +0 -1
  53. package/dist/commands/config.js +0 -367
  54. package/dist/commands/config.js.map +0 -1
  55. package/dist/commands/consent.d.ts +0 -21
  56. package/dist/commands/consent.d.ts.map +0 -1
  57. package/dist/commands/consent.js +0 -334
  58. package/dist/commands/consent.js.map +0 -1
  59. package/dist/commands/data.d.ts +0 -24
  60. package/dist/commands/data.d.ts.map +0 -1
  61. package/dist/commands/data.js +0 -586
  62. package/dist/commands/data.js.map +0 -1
  63. package/dist/commands/index.d.ts +0 -145
  64. package/dist/commands/index.d.ts.map +0 -1
  65. package/dist/commands/index.js +0 -210
  66. package/dist/commands/index.js.map +0 -1
  67. package/dist/commands/init.d.ts +0 -106
  68. package/dist/commands/init.d.ts.map +0 -1
  69. package/dist/commands/init.js +0 -349
  70. package/dist/commands/init.js.map +0 -1
  71. package/dist/commands/logs.d.ts +0 -13
  72. package/dist/commands/logs.d.ts.map +0 -1
  73. package/dist/commands/logs.js +0 -359
  74. package/dist/commands/logs.js.map +0 -1
  75. package/dist/commands/mcp.d.ts +0 -20
  76. package/dist/commands/mcp.d.ts.map +0 -1
  77. package/dist/commands/mcp.js +0 -687
  78. package/dist/commands/mcp.js.map +0 -1
  79. package/dist/commands/reset.d.ts +0 -20
  80. package/dist/commands/reset.d.ts.map +0 -1
  81. package/dist/commands/reset.js +0 -372
  82. package/dist/commands/reset.js.map +0 -1
  83. package/dist/commands/setup.d.ts +0 -74
  84. package/dist/commands/setup.d.ts.map +0 -1
  85. package/dist/commands/setup.js +0 -863
  86. package/dist/commands/setup.js.map +0 -1
  87. package/dist/commands/slash/agents.d.ts +0 -40
  88. package/dist/commands/slash/agents.d.ts.map +0 -1
  89. package/dist/commands/slash/agents.js +0 -519
  90. package/dist/commands/slash/agents.js.map +0 -1
  91. package/dist/commands/slash/approve.d.ts +0 -46
  92. package/dist/commands/slash/approve.d.ts.map +0 -1
  93. package/dist/commands/slash/approve.js +0 -239
  94. package/dist/commands/slash/approve.js.map +0 -1
  95. package/dist/commands/slash/attach.d.ts +0 -70
  96. package/dist/commands/slash/attach.d.ts.map +0 -1
  97. package/dist/commands/slash/attach.js +0 -333
  98. package/dist/commands/slash/attach.js.map +0 -1
  99. package/dist/commands/slash/clear.d.ts +0 -47
  100. package/dist/commands/slash/clear.d.ts.map +0 -1
  101. package/dist/commands/slash/clear.js +0 -261
  102. package/dist/commands/slash/clear.js.map +0 -1
  103. package/dist/commands/slash/commit.d.ts +0 -40
  104. package/dist/commands/slash/commit.d.ts.map +0 -1
  105. package/dist/commands/slash/commit.js +0 -337
  106. package/dist/commands/slash/commit.js.map +0 -1
  107. package/dist/commands/slash/compact.d.ts +0 -48
  108. package/dist/commands/slash/compact.d.ts.map +0 -1
  109. package/dist/commands/slash/compact.js +0 -288
  110. package/dist/commands/slash/compact.js.map +0 -1
  111. package/dist/commands/slash/config.d.ts +0 -20
  112. package/dist/commands/slash/config.d.ts.map +0 -1
  113. package/dist/commands/slash/config.js +0 -136
  114. package/dist/commands/slash/config.js.map +0 -1
  115. package/dist/commands/slash/context.d.ts +0 -49
  116. package/dist/commands/slash/context.d.ts.map +0 -1
  117. package/dist/commands/slash/context.js +0 -430
  118. package/dist/commands/slash/context.js.map +0 -1
  119. package/dist/commands/slash/cost.d.ts +0 -34
  120. package/dist/commands/slash/cost.d.ts.map +0 -1
  121. package/dist/commands/slash/cost.js +0 -312
  122. package/dist/commands/slash/cost.js.map +0 -1
  123. package/dist/commands/slash/custom.d.ts +0 -41
  124. package/dist/commands/slash/custom.d.ts.map +0 -1
  125. package/dist/commands/slash/custom.js +0 -126
  126. package/dist/commands/slash/custom.js.map +0 -1
  127. package/dist/commands/slash/exit.d.ts +0 -25
  128. package/dist/commands/slash/exit.d.ts.map +0 -1
  129. package/dist/commands/slash/exit.js +0 -186
  130. package/dist/commands/slash/exit.js.map +0 -1
  131. package/dist/commands/slash/export.d.ts +0 -27
  132. package/dist/commands/slash/export.d.ts.map +0 -1
  133. package/dist/commands/slash/export.js +0 -318
  134. package/dist/commands/slash/export.js.map +0 -1
  135. package/dist/commands/slash/files.d.ts +0 -47
  136. package/dist/commands/slash/files.d.ts.map +0 -1
  137. package/dist/commands/slash/files.js +0 -521
  138. package/dist/commands/slash/files.js.map +0 -1
  139. package/dist/commands/slash/help.d.ts +0 -50
  140. package/dist/commands/slash/help.d.ts.map +0 -1
  141. package/dist/commands/slash/help.js +0 -282
  142. package/dist/commands/slash/help.js.map +0 -1
  143. package/dist/commands/slash/index-cmd.d.ts +0 -41
  144. package/dist/commands/slash/index-cmd.d.ts.map +0 -1
  145. package/dist/commands/slash/index-cmd.js +0 -349
  146. package/dist/commands/slash/index-cmd.js.map +0 -1
  147. package/dist/commands/slash/index.d.ts +0 -97
  148. package/dist/commands/slash/index.d.ts.map +0 -1
  149. package/dist/commands/slash/index.js +0 -251
  150. package/dist/commands/slash/index.js.map +0 -1
  151. package/dist/commands/slash/login.d.ts +0 -23
  152. package/dist/commands/slash/login.d.ts.map +0 -1
  153. package/dist/commands/slash/login.js +0 -175
  154. package/dist/commands/slash/login.js.map +0 -1
  155. package/dist/commands/slash/logout.d.ts +0 -23
  156. package/dist/commands/slash/logout.d.ts.map +0 -1
  157. package/dist/commands/slash/logout.js +0 -153
  158. package/dist/commands/slash/logout.js.map +0 -1
  159. package/dist/commands/slash/logs.d.ts +0 -29
  160. package/dist/commands/slash/logs.d.ts.map +0 -1
  161. package/dist/commands/slash/logs.js +0 -423
  162. package/dist/commands/slash/logs.js.map +0 -1
  163. package/dist/commands/slash/mcp.d.ts +0 -29
  164. package/dist/commands/slash/mcp.d.ts.map +0 -1
  165. package/dist/commands/slash/mcp.js +0 -1026
  166. package/dist/commands/slash/mcp.js.map +0 -1
  167. package/dist/commands/slash/model.d.ts +0 -60
  168. package/dist/commands/slash/model.d.ts.map +0 -1
  169. package/dist/commands/slash/model.js +0 -466
  170. package/dist/commands/slash/model.js.map +0 -1
  171. package/dist/commands/slash/personality.d.ts +0 -40
  172. package/dist/commands/slash/personality.d.ts.map +0 -1
  173. package/dist/commands/slash/personality.js +0 -272
  174. package/dist/commands/slash/personality.js.map +0 -1
  175. package/dist/commands/slash/purge.d.ts +0 -42
  176. package/dist/commands/slash/purge.d.ts.map +0 -1
  177. package/dist/commands/slash/purge.js +0 -233
  178. package/dist/commands/slash/purge.js.map +0 -1
  179. package/dist/commands/slash/reset.d.ts +0 -44
  180. package/dist/commands/slash/reset.d.ts.map +0 -1
  181. package/dist/commands/slash/reset.js +0 -326
  182. package/dist/commands/slash/reset.js.map +0 -1
  183. package/dist/commands/slash/skills.d.ts +0 -40
  184. package/dist/commands/slash/skills.d.ts.map +0 -1
  185. package/dist/commands/slash/skills.js +0 -207
  186. package/dist/commands/slash/skills.js.map +0 -1
  187. package/dist/commands/slash/tokens.d.ts +0 -34
  188. package/dist/commands/slash/tokens.d.ts.map +0 -1
  189. package/dist/commands/slash/tokens.js +0 -205
  190. package/dist/commands/slash/tokens.js.map +0 -1
  191. package/dist/commands/slash/unleash.d.ts +0 -50
  192. package/dist/commands/slash/unleash.d.ts.map +0 -1
  193. package/dist/commands/slash/unleash.js +0 -262
  194. package/dist/commands/slash/unleash.js.map +0 -1
  195. package/dist/commands/slash/update.d.ts +0 -34
  196. package/dist/commands/slash/update.d.ts.map +0 -1
  197. package/dist/commands/slash/update.js +0 -364
  198. package/dist/commands/slash/update.js.map +0 -1
  199. package/dist/commands/slash/wrap.d.ts +0 -18
  200. package/dist/commands/slash/wrap.d.ts.map +0 -1
  201. package/dist/commands/slash/wrap.js +0 -21
  202. package/dist/commands/slash/wrap.js.map +0 -1
  203. package/dist/commands/tokens.d.ts +0 -26
  204. package/dist/commands/tokens.d.ts.map +0 -1
  205. package/dist/commands/tokens.js +0 -245
  206. package/dist/commands/tokens.js.map +0 -1
  207. package/dist/constants/builtin-agents.d.ts +0 -27
  208. package/dist/constants/builtin-agents.d.ts.map +0 -1
  209. package/dist/constants/builtin-agents.js +0 -710
  210. package/dist/constants/builtin-agents.js.map +0 -1
  211. package/dist/constants/builtin-skills.d.ts +0 -32
  212. package/dist/constants/builtin-skills.d.ts.map +0 -1
  213. package/dist/constants/builtin-skills.js +0 -389
  214. package/dist/constants/builtin-skills.js.map +0 -1
  215. package/dist/constants/defaults.d.ts +0 -448
  216. package/dist/constants/defaults.d.ts.map +0 -1
  217. package/dist/constants/defaults.js +0 -829
  218. package/dist/constants/defaults.js.map +0 -1
  219. package/dist/constants/index.d.ts +0 -27
  220. package/dist/constants/index.d.ts.map +0 -1
  221. package/dist/constants/index.js +0 -85
  222. package/dist/constants/index.js.map +0 -1
  223. package/dist/constants/install-hints.d.ts +0 -7
  224. package/dist/constants/install-hints.d.ts.map +0 -1
  225. package/dist/constants/install-hints.js +0 -123
  226. package/dist/constants/install-hints.js.map +0 -1
  227. package/dist/constants/models.d.ts +0 -255
  228. package/dist/constants/models.d.ts.map +0 -1
  229. package/dist/constants/models.js +0 -596
  230. package/dist/constants/models.js.map +0 -1
  231. package/dist/constants/schedule.d.ts +0 -43
  232. package/dist/constants/schedule.d.ts.map +0 -1
  233. package/dist/constants/schedule.js +0 -110
  234. package/dist/constants/schedule.js.map +0 -1
  235. package/dist/constants/system-utilities.d.ts +0 -57
  236. package/dist/constants/system-utilities.d.ts.map +0 -1
  237. package/dist/constants/system-utilities.js +0 -421
  238. package/dist/constants/system-utilities.js.map +0 -1
  239. package/dist/constants/token-limits.d.ts +0 -102
  240. package/dist/constants/token-limits.d.ts.map +0 -1
  241. package/dist/constants/token-limits.js +0 -286
  242. package/dist/constants/token-limits.js.map +0 -1
  243. package/dist/core/autocomplete.d.ts +0 -132
  244. package/dist/core/autocomplete.d.ts.map +0 -1
  245. package/dist/core/autocomplete.js +0 -653
  246. package/dist/core/autocomplete.js.map +0 -1
  247. package/dist/core/command-parser.d.ts +0 -301
  248. package/dist/core/command-parser.d.ts.map +0 -1
  249. package/dist/core/command-parser.js +0 -526
  250. package/dist/core/command-parser.js.map +0 -1
  251. package/dist/core/context-builder.d.ts +0 -264
  252. package/dist/core/context-builder.d.ts.map +0 -1
  253. package/dist/core/context-builder.js +0 -1018
  254. package/dist/core/context-builder.js.map +0 -1
  255. package/dist/core/event-emitter.d.ts +0 -411
  256. package/dist/core/event-emitter.d.ts.map +0 -1
  257. package/dist/core/event-emitter.js +0 -138
  258. package/dist/core/event-emitter.js.map +0 -1
  259. package/dist/core/history-manager.d.ts +0 -62
  260. package/dist/core/history-manager.d.ts.map +0 -1
  261. package/dist/core/history-manager.js +0 -151
  262. package/dist/core/history-manager.js.map +0 -1
  263. package/dist/core/slash-command-handler.d.ts +0 -352
  264. package/dist/core/slash-command-handler.d.ts.map +0 -1
  265. package/dist/core/slash-command-handler.js +0 -563
  266. package/dist/core/slash-command-handler.js.map +0 -1
  267. package/dist/core/task-processor.d.ts +0 -179
  268. package/dist/core/task-processor.d.ts.map +0 -1
  269. package/dist/core/task-processor.js +0 -519
  270. package/dist/core/task-processor.js.map +0 -1
  271. package/dist/index.d.ts +0 -90
  272. package/dist/index.d.ts.map +0 -1
  273. package/dist/index.js.map +0 -1
  274. package/dist/prompts/agent-prompt-generator.d.ts +0 -26
  275. package/dist/prompts/agent-prompt-generator.d.ts.map +0 -1
  276. package/dist/prompts/agent-prompt-generator.js +0 -244
  277. package/dist/prompts/agent-prompt-generator.js.map +0 -1
  278. package/dist/prompts/commit-message.d.ts +0 -35
  279. package/dist/prompts/commit-message.d.ts.map +0 -1
  280. package/dist/prompts/commit-message.js +0 -187
  281. package/dist/prompts/commit-message.js.map +0 -1
  282. package/dist/prompts/conversation.d.ts +0 -51
  283. package/dist/prompts/conversation.d.ts.map +0 -1
  284. package/dist/prompts/conversation.js +0 -115
  285. package/dist/prompts/conversation.js.map +0 -1
  286. package/dist/prompts/index.d.ts +0 -39
  287. package/dist/prompts/index.d.ts.map +0 -1
  288. package/dist/prompts/index.js +0 -74
  289. package/dist/prompts/index.js.map +0 -1
  290. package/dist/prompts/memory.d.ts +0 -6
  291. package/dist/prompts/memory.d.ts.map +0 -1
  292. package/dist/prompts/memory.js +0 -29
  293. package/dist/prompts/memory.js.map +0 -1
  294. package/dist/prompts/personality.d.ts +0 -77
  295. package/dist/prompts/personality.d.ts.map +0 -1
  296. package/dist/prompts/personality.js +0 -393
  297. package/dist/prompts/personality.js.map +0 -1
  298. package/dist/prompts/plan-generator.d.ts +0 -144
  299. package/dist/prompts/plan-generator.d.ts.map +0 -1
  300. package/dist/prompts/plan-generator.js +0 -553
  301. package/dist/prompts/plan-generator.js.map +0 -1
  302. package/dist/prompts/system.d.ts +0 -95
  303. package/dist/prompts/system.d.ts.map +0 -1
  304. package/dist/prompts/system.js +0 -461
  305. package/dist/prompts/system.js.map +0 -1
  306. package/dist/prompts/task-processor.d.ts +0 -94
  307. package/dist/prompts/task-processor.d.ts.map +0 -1
  308. package/dist/prompts/task-processor.js +0 -554
  309. package/dist/prompts/task-processor.js.map +0 -1
  310. package/dist/prompts/unguarded.d.ts +0 -78
  311. package/dist/prompts/unguarded.d.ts.map +0 -1
  312. package/dist/prompts/unguarded.js +0 -418
  313. package/dist/prompts/unguarded.js.map +0 -1
  314. package/dist/prompts/utils.d.ts +0 -73
  315. package/dist/prompts/utils.d.ts.map +0 -1
  316. package/dist/prompts/utils.js +0 -114
  317. package/dist/prompts/utils.js.map +0 -1
  318. package/dist/prompts/workflow.d.ts +0 -241
  319. package/dist/prompts/workflow.d.ts.map +0 -1
  320. package/dist/prompts/workflow.js +0 -608
  321. package/dist/prompts/workflow.js.map +0 -1
  322. package/dist/services/action-logger.d.ts +0 -383
  323. package/dist/services/action-logger.d.ts.map +0 -1
  324. package/dist/services/action-logger.js +0 -544
  325. package/dist/services/action-logger.js.map +0 -1
  326. package/dist/services/agent-budget-allocator.d.ts +0 -111
  327. package/dist/services/agent-budget-allocator.d.ts.map +0 -1
  328. package/dist/services/agent-budget-allocator.js +0 -278
  329. package/dist/services/agent-budget-allocator.js.map +0 -1
  330. package/dist/services/agent-manager.d.ts +0 -181
  331. package/dist/services/agent-manager.d.ts.map +0 -1
  332. package/dist/services/agent-manager.js +0 -749
  333. package/dist/services/agent-manager.js.map +0 -1
  334. package/dist/services/agent-spawner.d.ts +0 -138
  335. package/dist/services/agent-spawner.d.ts.map +0 -1
  336. package/dist/services/agent-spawner.js +0 -748
  337. package/dist/services/agent-spawner.js.map +0 -1
  338. package/dist/services/agent-state-service.d.ts +0 -145
  339. package/dist/services/agent-state-service.d.ts.map +0 -1
  340. package/dist/services/agent-state-service.js +0 -247
  341. package/dist/services/agent-state-service.js.map +0 -1
  342. package/dist/services/anthropic-client.d.ts +0 -357
  343. package/dist/services/anthropic-client.d.ts.map +0 -1
  344. package/dist/services/anthropic-client.js +0 -1451
  345. package/dist/services/anthropic-client.js.map +0 -1
  346. package/dist/services/approval-manager.d.ts +0 -385
  347. package/dist/services/approval-manager.d.ts.map +0 -1
  348. package/dist/services/approval-manager.js +0 -1044
  349. package/dist/services/approval-manager.js.map +0 -1
  350. package/dist/services/audit-logger.d.ts +0 -245
  351. package/dist/services/audit-logger.d.ts.map +0 -1
  352. package/dist/services/audit-logger.js +0 -324
  353. package/dist/services/audit-logger.js.map +0 -1
  354. package/dist/services/backup-manager.d.ts +0 -136
  355. package/dist/services/backup-manager.d.ts.map +0 -1
  356. package/dist/services/backup-manager.js +0 -260
  357. package/dist/services/backup-manager.js.map +0 -1
  358. package/dist/services/cache-service.d.ts +0 -247
  359. package/dist/services/cache-service.d.ts.map +0 -1
  360. package/dist/services/cache-service.js +0 -558
  361. package/dist/services/cache-service.js.map +0 -1
  362. package/dist/services/chat-archival-service.d.ts +0 -108
  363. package/dist/services/chat-archival-service.d.ts.map +0 -1
  364. package/dist/services/chat-archival-service.js +0 -465
  365. package/dist/services/chat-archival-service.js.map +0 -1
  366. package/dist/services/codebase-indexer.d.ts +0 -272
  367. package/dist/services/codebase-indexer.d.ts.map +0 -1
  368. package/dist/services/codebase-indexer.js +0 -863
  369. package/dist/services/codebase-indexer.js.map +0 -1
  370. package/dist/services/compass-auth-service.d.ts +0 -204
  371. package/dist/services/compass-auth-service.d.ts.map +0 -1
  372. package/dist/services/compass-auth-service.js +0 -391
  373. package/dist/services/compass-auth-service.js.map +0 -1
  374. package/dist/services/complexity-classifier.d.ts +0 -208
  375. package/dist/services/complexity-classifier.d.ts.map +0 -1
  376. package/dist/services/complexity-classifier.js +0 -1410
  377. package/dist/services/complexity-classifier.js.map +0 -1
  378. package/dist/services/config-manager.d.ts +0 -278
  379. package/dist/services/config-manager.d.ts.map +0 -1
  380. package/dist/services/config-manager.js +0 -651
  381. package/dist/services/config-manager.js.map +0 -1
  382. package/dist/services/consent-manager.d.ts +0 -239
  383. package/dist/services/consent-manager.d.ts.map +0 -1
  384. package/dist/services/consent-manager.js +0 -516
  385. package/dist/services/consent-manager.js.map +0 -1
  386. package/dist/services/conversation-compactor.d.ts +0 -223
  387. package/dist/services/conversation-compactor.d.ts.map +0 -1
  388. package/dist/services/conversation-compactor.js +0 -750
  389. package/dist/services/conversation-compactor.js.map +0 -1
  390. package/dist/services/cost-tracker.d.ts +0 -167
  391. package/dist/services/cost-tracker.d.ts.map +0 -1
  392. package/dist/services/cost-tracker.js +0 -199
  393. package/dist/services/cost-tracker.js.map +0 -1
  394. package/dist/services/credential-store.d.ts +0 -273
  395. package/dist/services/credential-store.d.ts.map +0 -1
  396. package/dist/services/credential-store.js +0 -877
  397. package/dist/services/credential-store.js.map +0 -1
  398. package/dist/services/custom-command-service.d.ts +0 -112
  399. package/dist/services/custom-command-service.d.ts.map +0 -1
  400. package/dist/services/custom-command-service.js +0 -464
  401. package/dist/services/custom-command-service.js.map +0 -1
  402. package/dist/services/default-statusline-renderer.d.ts +0 -60
  403. package/dist/services/default-statusline-renderer.d.ts.map +0 -1
  404. package/dist/services/default-statusline-renderer.js +0 -110
  405. package/dist/services/default-statusline-renderer.js.map +0 -1
  406. package/dist/services/enhanced-context-gatherer.d.ts +0 -116
  407. package/dist/services/enhanced-context-gatherer.d.ts.map +0 -1
  408. package/dist/services/enhanced-context-gatherer.js +0 -605
  409. package/dist/services/enhanced-context-gatherer.js.map +0 -1
  410. package/dist/services/file-hash-tracker.d.ts +0 -95
  411. package/dist/services/file-hash-tracker.d.ts.map +0 -1
  412. package/dist/services/file-hash-tracker.js +0 -199
  413. package/dist/services/file-hash-tracker.js.map +0 -1
  414. package/dist/services/file-service.d.ts +0 -274
  415. package/dist/services/file-service.d.ts.map +0 -1
  416. package/dist/services/file-service.js +0 -876
  417. package/dist/services/file-service.js.map +0 -1
  418. package/dist/services/git-service.d.ts +0 -536
  419. package/dist/services/git-service.d.ts.map +0 -1
  420. package/dist/services/git-service.js +0 -1215
  421. package/dist/services/git-service.js.map +0 -1
  422. package/dist/services/hook-service.d.ts +0 -148
  423. package/dist/services/hook-service.d.ts.map +0 -1
  424. package/dist/services/hook-service.js +0 -705
  425. package/dist/services/hook-service.js.map +0 -1
  426. package/dist/services/ide-state-service.d.ts +0 -114
  427. package/dist/services/ide-state-service.d.ts.map +0 -1
  428. package/dist/services/ide-state-service.js +0 -204
  429. package/dist/services/ide-state-service.js.map +0 -1
  430. package/dist/services/interactive-clarifier.d.ts +0 -90
  431. package/dist/services/interactive-clarifier.d.ts.map +0 -1
  432. package/dist/services/interactive-clarifier.js +0 -446
  433. package/dist/services/interactive-clarifier.js.map +0 -1
  434. package/dist/services/iteration-scoper.d.ts +0 -225
  435. package/dist/services/iteration-scoper.d.ts.map +0 -1
  436. package/dist/services/iteration-scoper.js +0 -387
  437. package/dist/services/iteration-scoper.js.map +0 -1
  438. package/dist/services/llm-plan-generator.d.ts +0 -44
  439. package/dist/services/llm-plan-generator.d.ts.map +0 -1
  440. package/dist/services/llm-plan-generator.js +0 -863
  441. package/dist/services/llm-plan-generator.js.map +0 -1
  442. package/dist/services/llm-system-prompt-generator.d.ts +0 -85
  443. package/dist/services/llm-system-prompt-generator.d.ts.map +0 -1
  444. package/dist/services/llm-system-prompt-generator.js +0 -257
  445. package/dist/services/llm-system-prompt-generator.js.map +0 -1
  446. package/dist/services/log-interpreter.d.ts +0 -190
  447. package/dist/services/log-interpreter.d.ts.map +0 -1
  448. package/dist/services/log-interpreter.js +0 -520
  449. package/dist/services/log-interpreter.js.map +0 -1
  450. package/dist/services/mcp-config-manager.d.ts +0 -141
  451. package/dist/services/mcp-config-manager.d.ts.map +0 -1
  452. package/dist/services/mcp-config-manager.js +0 -678
  453. package/dist/services/mcp-config-manager.js.map +0 -1
  454. package/dist/services/mcp-oauth-service.d.ts +0 -170
  455. package/dist/services/mcp-oauth-service.d.ts.map +0 -1
  456. package/dist/services/mcp-oauth-service.js +0 -892
  457. package/dist/services/mcp-oauth-service.js.map +0 -1
  458. package/dist/services/mcp-plugin-support.d.ts +0 -81
  459. package/dist/services/mcp-plugin-support.d.ts.map +0 -1
  460. package/dist/services/mcp-plugin-support.js +0 -305
  461. package/dist/services/mcp-plugin-support.js.map +0 -1
  462. package/dist/services/mcp-server-manager.d.ts +0 -134
  463. package/dist/services/mcp-server-manager.d.ts.map +0 -1
  464. package/dist/services/mcp-server-manager.js +0 -613
  465. package/dist/services/mcp-server-manager.js.map +0 -1
  466. package/dist/services/mcp-tool-integration.d.ts +0 -119
  467. package/dist/services/mcp-tool-integration.d.ts.map +0 -1
  468. package/dist/services/mcp-tool-integration.js +0 -381
  469. package/dist/services/mcp-tool-integration.js.map +0 -1
  470. package/dist/services/mcp-transport.d.ts +0 -105
  471. package/dist/services/mcp-transport.d.ts.map +0 -1
  472. package/dist/services/mcp-transport.js +0 -1316
  473. package/dist/services/mcp-transport.js.map +0 -1
  474. package/dist/services/memory-service.d.ts +0 -55
  475. package/dist/services/memory-service.d.ts.map +0 -1
  476. package/dist/services/memory-service.js +0 -251
  477. package/dist/services/memory-service.js.map +0 -1
  478. package/dist/services/model-availability.d.ts +0 -64
  479. package/dist/services/model-availability.d.ts.map +0 -1
  480. package/dist/services/model-availability.js +0 -114
  481. package/dist/services/model-availability.js.map +0 -1
  482. package/dist/services/plan-generator.d.ts +0 -98
  483. package/dist/services/plan-generator.d.ts.map +0 -1
  484. package/dist/services/plan-generator.js +0 -658
  485. package/dist/services/plan-generator.js.map +0 -1
  486. package/dist/services/plan-mode-fallback.d.ts +0 -80
  487. package/dist/services/plan-mode-fallback.d.ts.map +0 -1
  488. package/dist/services/plan-mode-fallback.js +0 -307
  489. package/dist/services/plan-mode-fallback.js.map +0 -1
  490. package/dist/services/plan-mode-handler.d.ts +0 -42
  491. package/dist/services/plan-mode-handler.d.ts.map +0 -1
  492. package/dist/services/plan-mode-handler.js +0 -388
  493. package/dist/services/plan-mode-handler.js.map +0 -1
  494. package/dist/services/plan-persistence.d.ts +0 -203
  495. package/dist/services/plan-persistence.d.ts.map +0 -1
  496. package/dist/services/plan-persistence.js +0 -538
  497. package/dist/services/plan-persistence.js.map +0 -1
  498. package/dist/services/prompt-preprocessor.d.ts +0 -73
  499. package/dist/services/prompt-preprocessor.d.ts.map +0 -1
  500. package/dist/services/prompt-preprocessor.js +0 -146
  501. package/dist/services/prompt-preprocessor.js.map +0 -1
  502. package/dist/services/rating-service.d.ts +0 -84
  503. package/dist/services/rating-service.d.ts.map +0 -1
  504. package/dist/services/rating-service.js +0 -171
  505. package/dist/services/rating-service.js.map +0 -1
  506. package/dist/services/rating-state-manager.d.ts +0 -131
  507. package/dist/services/rating-state-manager.d.ts.map +0 -1
  508. package/dist/services/rating-state-manager.js +0 -270
  509. package/dist/services/rating-state-manager.js.map +0 -1
  510. package/dist/services/sdk-runner.d.ts +0 -113
  511. package/dist/services/sdk-runner.d.ts.map +0 -1
  512. package/dist/services/sdk-runner.js +0 -1424
  513. package/dist/services/sdk-runner.js.map +0 -1
  514. package/dist/services/session-manager.d.ts +0 -528
  515. package/dist/services/session-manager.d.ts.map +0 -1
  516. package/dist/services/session-manager.js +0 -1184
  517. package/dist/services/session-manager.js.map +0 -1
  518. package/dist/services/shell-executor.d.ts +0 -337
  519. package/dist/services/shell-executor.d.ts.map +0 -1
  520. package/dist/services/shell-executor.js +0 -1201
  521. package/dist/services/shell-executor.js.map +0 -1
  522. package/dist/services/skill-service.d.ts +0 -149
  523. package/dist/services/skill-service.d.ts.map +0 -1
  524. package/dist/services/skill-service.js +0 -594
  525. package/dist/services/skill-service.js.map +0 -1
  526. package/dist/services/statusline-executor.d.ts +0 -102
  527. package/dist/services/statusline-executor.d.ts.map +0 -1
  528. package/dist/services/statusline-executor.js +0 -305
  529. package/dist/services/statusline-executor.js.map +0 -1
  530. package/dist/services/step-tracker.d.ts +0 -356
  531. package/dist/services/step-tracker.d.ts.map +0 -1
  532. package/dist/services/step-tracker.js +0 -634
  533. package/dist/services/step-tracker.js.map +0 -1
  534. package/dist/services/system-event-logger.d.ts +0 -473
  535. package/dist/services/system-event-logger.d.ts.map +0 -1
  536. package/dist/services/system-event-logger.js +0 -790
  537. package/dist/services/system-event-logger.js.map +0 -1
  538. package/dist/services/system-utility-detector.d.ts +0 -91
  539. package/dist/services/system-utility-detector.d.ts.map +0 -1
  540. package/dist/services/system-utility-detector.js +0 -238
  541. package/dist/services/system-utility-detector.js.map +0 -1
  542. package/dist/services/team-context-store.d.ts +0 -100
  543. package/dist/services/team-context-store.d.ts.map +0 -1
  544. package/dist/services/team-context-store.js +0 -513
  545. package/dist/services/team-context-store.js.map +0 -1
  546. package/dist/services/temp-file-service.d.ts +0 -164
  547. package/dist/services/temp-file-service.d.ts.map +0 -1
  548. package/dist/services/temp-file-service.js +0 -303
  549. package/dist/services/temp-file-service.js.map +0 -1
  550. package/dist/services/token-limit-enforcer.d.ts +0 -53
  551. package/dist/services/token-limit-enforcer.d.ts.map +0 -1
  552. package/dist/services/token-limit-enforcer.js +0 -90
  553. package/dist/services/token-limit-enforcer.js.map +0 -1
  554. package/dist/services/token-limit-store.d.ts +0 -105
  555. package/dist/services/token-limit-store.d.ts.map +0 -1
  556. package/dist/services/token-limit-store.js +0 -288
  557. package/dist/services/token-limit-store.js.map +0 -1
  558. package/dist/services/token-tracker.d.ts +0 -290
  559. package/dist/services/token-tracker.d.ts.map +0 -1
  560. package/dist/services/token-tracker.js +0 -751
  561. package/dist/services/token-tracker.js.map +0 -1
  562. package/dist/services/tool-registry.d.ts +0 -302
  563. package/dist/services/tool-registry.d.ts.map +0 -1
  564. package/dist/services/tool-registry.js +0 -606
  565. package/dist/services/tool-registry.js.map +0 -1
  566. package/dist/services/tools-logger.d.ts +0 -152
  567. package/dist/services/tools-logger.d.ts.map +0 -1
  568. package/dist/services/tools-logger.js +0 -222
  569. package/dist/services/tools-logger.js.map +0 -1
  570. package/dist/services/update-plan-handler.d.ts +0 -56
  571. package/dist/services/update-plan-handler.d.ts.map +0 -1
  572. package/dist/services/update-plan-handler.js +0 -372
  573. package/dist/services/update-plan-handler.js.map +0 -1
  574. package/dist/services/update-service.d.ts +0 -197
  575. package/dist/services/update-service.d.ts.map +0 -1
  576. package/dist/services/update-service.js +0 -749
  577. package/dist/services/update-service.js.map +0 -1
  578. package/dist/services/verifier.d.ts +0 -113
  579. package/dist/services/verifier.d.ts.map +0 -1
  580. package/dist/services/verifier.js +0 -541
  581. package/dist/services/verifier.js.map +0 -1
  582. package/dist/services/workflow-manager.d.ts +0 -277
  583. package/dist/services/workflow-manager.d.ts.map +0 -1
  584. package/dist/services/workflow-manager.js +0 -616
  585. package/dist/services/workflow-manager.js.map +0 -1
  586. package/dist/services/workflow-orchestrator.d.ts +0 -148
  587. package/dist/services/workflow-orchestrator.d.ts.map +0 -1
  588. package/dist/services/workflow-orchestrator.js +0 -617
  589. package/dist/services/workflow-orchestrator.js.map +0 -1
  590. package/dist/services/worktree-manager.d.ts +0 -36
  591. package/dist/services/worktree-manager.d.ts.map +0 -1
  592. package/dist/services/worktree-manager.js +0 -185
  593. package/dist/services/worktree-manager.js.map +0 -1
  594. package/dist/templates/ascii-art.d.ts +0 -136
  595. package/dist/templates/ascii-art.d.ts.map +0 -1
  596. package/dist/templates/ascii-art.js +0 -286
  597. package/dist/templates/ascii-art.js.map +0 -1
  598. package/dist/templates/help.d.ts +0 -186
  599. package/dist/templates/help.d.ts.map +0 -1
  600. package/dist/templates/help.js +0 -588
  601. package/dist/templates/help.js.map +0 -1
  602. package/dist/templates/prompts/workflow-prompts.d.ts +0 -9
  603. package/dist/templates/prompts/workflow-prompts.d.ts.map +0 -1
  604. package/dist/templates/prompts/workflow-prompts.js +0 -9
  605. package/dist/templates/prompts/workflow-prompts.js.map +0 -1
  606. package/dist/tools/agent-tools.d.ts +0 -9
  607. package/dist/tools/agent-tools.d.ts.map +0 -1
  608. package/dist/tools/agent-tools.js +0 -349
  609. package/dist/tools/agent-tools.js.map +0 -1
  610. package/dist/tools/edit-replacers.d.ts +0 -90
  611. package/dist/tools/edit-replacers.d.ts.map +0 -1
  612. package/dist/tools/edit-replacers.js +0 -553
  613. package/dist/tools/edit-replacers.js.map +0 -1
  614. package/dist/tools/file-tools.d.ts +0 -13
  615. package/dist/tools/file-tools.d.ts.map +0 -1
  616. package/dist/tools/file-tools.js +0 -954
  617. package/dist/tools/file-tools.js.map +0 -1
  618. package/dist/tools/git-tools.d.ts +0 -9
  619. package/dist/tools/git-tools.d.ts.map +0 -1
  620. package/dist/tools/git-tools.js +0 -261
  621. package/dist/tools/git-tools.js.map +0 -1
  622. package/dist/tools/index.d.ts +0 -13
  623. package/dist/tools/index.d.ts.map +0 -1
  624. package/dist/tools/index.js +0 -70
  625. package/dist/tools/index.js.map +0 -1
  626. package/dist/tools/network-tools.d.ts +0 -8
  627. package/dist/tools/network-tools.d.ts.map +0 -1
  628. package/dist/tools/network-tools.js +0 -261
  629. package/dist/tools/network-tools.js.map +0 -1
  630. package/dist/tools/openai-tools.d.ts +0 -16
  631. package/dist/tools/openai-tools.d.ts.map +0 -1
  632. package/dist/tools/openai-tools.js +0 -385
  633. package/dist/tools/openai-tools.js.map +0 -1
  634. package/dist/tools/plan-tools.d.ts +0 -9
  635. package/dist/tools/plan-tools.d.ts.map +0 -1
  636. package/dist/tools/plan-tools.js +0 -223
  637. package/dist/tools/plan-tools.js.map +0 -1
  638. package/dist/tools/schedule-tools.d.ts +0 -9
  639. package/dist/tools/schedule-tools.d.ts.map +0 -1
  640. package/dist/tools/schedule-tools.js +0 -405
  641. package/dist/tools/schedule-tools.js.map +0 -1
  642. package/dist/tools/search-tools.d.ts +0 -8
  643. package/dist/tools/search-tools.d.ts.map +0 -1
  644. package/dist/tools/search-tools.js +0 -357
  645. package/dist/tools/search-tools.js.map +0 -1
  646. package/dist/tools/shared-utils.d.ts +0 -91
  647. package/dist/tools/shared-utils.d.ts.map +0 -1
  648. package/dist/tools/shared-utils.js +0 -385
  649. package/dist/tools/shared-utils.js.map +0 -1
  650. package/dist/tools/shell-tools.d.ts +0 -9
  651. package/dist/tools/shell-tools.d.ts.map +0 -1
  652. package/dist/tools/shell-tools.js +0 -409
  653. package/dist/tools/shell-tools.js.map +0 -1
  654. package/dist/tools/skill-tools.d.ts +0 -13
  655. package/dist/tools/skill-tools.d.ts.map +0 -1
  656. package/dist/tools/skill-tools.js +0 -244
  657. package/dist/tools/skill-tools.js.map +0 -1
  658. package/dist/tools/swarm-tools.d.ts +0 -9
  659. package/dist/tools/swarm-tools.d.ts.map +0 -1
  660. package/dist/tools/swarm-tools.js +0 -422
  661. package/dist/tools/swarm-tools.js.map +0 -1
  662. package/dist/tools/user-tools.d.ts +0 -13
  663. package/dist/tools/user-tools.d.ts.map +0 -1
  664. package/dist/tools/user-tools.js +0 -232
  665. package/dist/tools/user-tools.js.map +0 -1
  666. package/dist/types/agent-process.d.ts +0 -244
  667. package/dist/types/agent-process.d.ts.map +0 -1
  668. package/dist/types/agent-process.js +0 -93
  669. package/dist/types/agent-process.js.map +0 -1
  670. package/dist/types/agent.d.ts +0 -358
  671. package/dist/types/agent.d.ts.map +0 -1
  672. package/dist/types/agent.js +0 -171
  673. package/dist/types/agent.js.map +0 -1
  674. package/dist/types/anthropic.d.ts +0 -438
  675. package/dist/types/anthropic.d.ts.map +0 -1
  676. package/dist/types/anthropic.js +0 -9
  677. package/dist/types/anthropic.js.map +0 -1
  678. package/dist/types/approval.d.ts +0 -332
  679. package/dist/types/approval.d.ts.map +0 -1
  680. package/dist/types/approval.js +0 -44
  681. package/dist/types/approval.js.map +0 -1
  682. package/dist/types/autocomplete.d.ts +0 -57
  683. package/dist/types/autocomplete.d.ts.map +0 -1
  684. package/dist/types/autocomplete.js +0 -7
  685. package/dist/types/autocomplete.js.map +0 -1
  686. package/dist/types/chat-archive.d.ts +0 -161
  687. package/dist/types/chat-archive.d.ts.map +0 -1
  688. package/dist/types/chat-archive.js +0 -36
  689. package/dist/types/chat-archive.js.map +0 -1
  690. package/dist/types/config.d.ts +0 -268
  691. package/dist/types/config.d.ts.map +0 -1
  692. package/dist/types/config.js +0 -188
  693. package/dist/types/config.js.map +0 -1
  694. package/dist/types/consent.d.ts +0 -191
  695. package/dist/types/consent.d.ts.map +0 -1
  696. package/dist/types/consent.js +0 -119
  697. package/dist/types/consent.js.map +0 -1
  698. package/dist/types/custom-command.d.ts +0 -139
  699. package/dist/types/custom-command.d.ts.map +0 -1
  700. package/dist/types/custom-command.js +0 -7
  701. package/dist/types/custom-command.js.map +0 -1
  702. package/dist/types/git.d.ts +0 -20
  703. package/dist/types/git.d.ts.map +0 -1
  704. package/dist/types/git.js +0 -2
  705. package/dist/types/git.js.map +0 -1
  706. package/dist/types/hook.d.ts +0 -342
  707. package/dist/types/hook.d.ts.map +0 -1
  708. package/dist/types/hook.js +0 -84
  709. package/dist/types/hook.js.map +0 -1
  710. package/dist/types/index.d.ts +0 -86
  711. package/dist/types/index.d.ts.map +0 -1
  712. package/dist/types/index.js +0 -71
  713. package/dist/types/index.js.map +0 -1
  714. package/dist/types/mcp.d.ts +0 -456
  715. package/dist/types/mcp.d.ts.map +0 -1
  716. package/dist/types/mcp.js +0 -94
  717. package/dist/types/mcp.js.map +0 -1
  718. package/dist/types/rating.d.ts +0 -110
  719. package/dist/types/rating.d.ts.map +0 -1
  720. package/dist/types/rating.js +0 -53
  721. package/dist/types/rating.js.map +0 -1
  722. package/dist/types/schedule.d.ts +0 -91
  723. package/dist/types/schedule.d.ts.map +0 -1
  724. package/dist/types/schedule.js +0 -8
  725. package/dist/types/schedule.js.map +0 -1
  726. package/dist/types/session.d.ts +0 -361
  727. package/dist/types/session.d.ts.map +0 -1
  728. package/dist/types/session.js +0 -9
  729. package/dist/types/session.js.map +0 -1
  730. package/dist/types/skill.d.ts +0 -258
  731. package/dist/types/skill.d.ts.map +0 -1
  732. package/dist/types/skill.js +0 -79
  733. package/dist/types/skill.js.map +0 -1
  734. package/dist/types/statusline.d.ts +0 -212
  735. package/dist/types/statusline.d.ts.map +0 -1
  736. package/dist/types/statusline.js +0 -8
  737. package/dist/types/statusline.js.map +0 -1
  738. package/dist/types/stream.d.ts +0 -61
  739. package/dist/types/stream.d.ts.map +0 -1
  740. package/dist/types/stream.js +0 -17
  741. package/dist/types/stream.js.map +0 -1
  742. package/dist/types/swarm.d.ts +0 -132
  743. package/dist/types/swarm.d.ts.map +0 -1
  744. package/dist/types/swarm.js +0 -21
  745. package/dist/types/swarm.js.map +0 -1
  746. package/dist/types/token-limits.d.ts +0 -107
  747. package/dist/types/token-limits.d.ts.map +0 -1
  748. package/dist/types/token-limits.js +0 -57
  749. package/dist/types/token-limits.js.map +0 -1
  750. package/dist/types/token.d.ts +0 -329
  751. package/dist/types/token.d.ts.map +0 -1
  752. package/dist/types/token.js +0 -9
  753. package/dist/types/token.js.map +0 -1
  754. package/dist/types/update.d.ts +0 -189
  755. package/dist/types/update.d.ts.map +0 -1
  756. package/dist/types/update.js +0 -55
  757. package/dist/types/update.js.map +0 -1
  758. package/dist/types/workflow.d.ts +0 -396
  759. package/dist/types/workflow.d.ts.map +0 -1
  760. package/dist/types/workflow.js +0 -46
  761. package/dist/types/workflow.js.map +0 -1
  762. package/dist/ui/App.d.ts +0 -62
  763. package/dist/ui/App.d.ts.map +0 -1
  764. package/dist/ui/App.js +0 -511
  765. package/dist/ui/App.js.map +0 -1
  766. package/dist/ui/InteractiveSession.d.ts +0 -34
  767. package/dist/ui/InteractiveSession.d.ts.map +0 -1
  768. package/dist/ui/InteractiveSession.js +0 -3611
  769. package/dist/ui/InteractiveSession.js.map +0 -1
  770. package/dist/ui/MCPApprovalPrompt.d.ts +0 -27
  771. package/dist/ui/MCPApprovalPrompt.d.ts.map +0 -1
  772. package/dist/ui/MCPApprovalPrompt.js +0 -51
  773. package/dist/ui/MCPApprovalPrompt.js.map +0 -1
  774. package/dist/ui/SetupWizard.d.ts +0 -26
  775. package/dist/ui/SetupWizard.d.ts.map +0 -1
  776. package/dist/ui/SetupWizard.js +0 -396
  777. package/dist/ui/SetupWizard.js.map +0 -1
  778. package/dist/ui/components/AgentCreationWizard.d.ts +0 -36
  779. package/dist/ui/components/AgentCreationWizard.d.ts.map +0 -1
  780. package/dist/ui/components/AgentCreationWizard.js +0 -619
  781. package/dist/ui/components/AgentCreationWizard.js.map +0 -1
  782. package/dist/ui/components/AgentManager.d.ts +0 -41
  783. package/dist/ui/components/AgentManager.d.ts.map +0 -1
  784. package/dist/ui/components/AgentManager.js +0 -343
  785. package/dist/ui/components/AgentManager.js.map +0 -1
  786. package/dist/ui/components/ApprovalDialog.d.ts +0 -18
  787. package/dist/ui/components/ApprovalDialog.d.ts.map +0 -1
  788. package/dist/ui/components/ApprovalDialog.js +0 -439
  789. package/dist/ui/components/ApprovalDialog.js.map +0 -1
  790. package/dist/ui/components/AsciiArt.d.ts +0 -54
  791. package/dist/ui/components/AsciiArt.d.ts.map +0 -1
  792. package/dist/ui/components/AsciiArt.js +0 -89
  793. package/dist/ui/components/AsciiArt.js.map +0 -1
  794. package/dist/ui/components/ClarificationWizard.d.ts +0 -36
  795. package/dist/ui/components/ClarificationWizard.d.ts.map +0 -1
  796. package/dist/ui/components/ClarificationWizard.js +0 -407
  797. package/dist/ui/components/ClarificationWizard.js.map +0 -1
  798. package/dist/ui/components/CompassSpinner.d.ts +0 -15
  799. package/dist/ui/components/CompassSpinner.d.ts.map +0 -1
  800. package/dist/ui/components/CompassSpinner.js +0 -50
  801. package/dist/ui/components/CompassSpinner.js.map +0 -1
  802. package/dist/ui/components/ConfirmationSelector.d.ts +0 -45
  803. package/dist/ui/components/ConfirmationSelector.d.ts.map +0 -1
  804. package/dist/ui/components/ConfirmationSelector.js +0 -106
  805. package/dist/ui/components/ConfirmationSelector.js.map +0 -1
  806. package/dist/ui/components/ContextUsage.d.ts +0 -76
  807. package/dist/ui/components/ContextUsage.d.ts.map +0 -1
  808. package/dist/ui/components/ContextUsage.js +0 -188
  809. package/dist/ui/components/ContextUsage.js.map +0 -1
  810. package/dist/ui/components/DiffPreview.d.ts +0 -13
  811. package/dist/ui/components/DiffPreview.d.ts.map +0 -1
  812. package/dist/ui/components/DiffPreview.js +0 -30
  813. package/dist/ui/components/DiffPreview.js.map +0 -1
  814. package/dist/ui/components/ExecutionModeSelector.d.ts +0 -45
  815. package/dist/ui/components/ExecutionModeSelector.d.ts.map +0 -1
  816. package/dist/ui/components/ExecutionModeSelector.js +0 -120
  817. package/dist/ui/components/ExecutionModeSelector.js.map +0 -1
  818. package/dist/ui/components/FileTree.d.ts +0 -47
  819. package/dist/ui/components/FileTree.d.ts.map +0 -1
  820. package/dist/ui/components/FileTree.js +0 -258
  821. package/dist/ui/components/FileTree.js.map +0 -1
  822. package/dist/ui/components/HelpMenu.d.ts +0 -49
  823. package/dist/ui/components/HelpMenu.d.ts.map +0 -1
  824. package/dist/ui/components/HelpMenu.js +0 -91
  825. package/dist/ui/components/HelpMenu.js.map +0 -1
  826. package/dist/ui/components/InterleavedStream.d.ts +0 -42
  827. package/dist/ui/components/InterleavedStream.d.ts.map +0 -1
  828. package/dist/ui/components/InterleavedStream.js +0 -1500
  829. package/dist/ui/components/InterleavedStream.js.map +0 -1
  830. package/dist/ui/components/ModelSelector.d.ts +0 -81
  831. package/dist/ui/components/ModelSelector.d.ts.map +0 -1
  832. package/dist/ui/components/ModelSelector.js +0 -305
  833. package/dist/ui/components/ModelSelector.js.map +0 -1
  834. package/dist/ui/components/PlanApprovalDialog.d.ts +0 -21
  835. package/dist/ui/components/PlanApprovalDialog.d.ts.map +0 -1
  836. package/dist/ui/components/PlanApprovalDialog.js +0 -189
  837. package/dist/ui/components/PlanApprovalDialog.js.map +0 -1
  838. package/dist/ui/components/PlanExecutionTracker.d.ts +0 -53
  839. package/dist/ui/components/PlanExecutionTracker.d.ts.map +0 -1
  840. package/dist/ui/components/PlanExecutionTracker.js +0 -113
  841. package/dist/ui/components/PlanExecutionTracker.js.map +0 -1
  842. package/dist/ui/components/ProgressIndicator.d.ts +0 -151
  843. package/dist/ui/components/ProgressIndicator.d.ts.map +0 -1
  844. package/dist/ui/components/ProgressIndicator.js +0 -171
  845. package/dist/ui/components/ProgressIndicator.js.map +0 -1
  846. package/dist/ui/components/Prompt.d.ts +0 -47
  847. package/dist/ui/components/Prompt.d.ts.map +0 -1
  848. package/dist/ui/components/Prompt.js +0 -632
  849. package/dist/ui/components/Prompt.js.map +0 -1
  850. package/dist/ui/components/RatingPanel.d.ts +0 -45
  851. package/dist/ui/components/RatingPanel.d.ts.map +0 -1
  852. package/dist/ui/components/RatingPanel.js +0 -119
  853. package/dist/ui/components/RatingPanel.js.map +0 -1
  854. package/dist/ui/components/StatusLine.d.ts +0 -43
  855. package/dist/ui/components/StatusLine.d.ts.map +0 -1
  856. package/dist/ui/components/StatusLine.js +0 -44
  857. package/dist/ui/components/StatusLine.js.map +0 -1
  858. package/dist/ui/components/StreamingResponse.d.ts +0 -45
  859. package/dist/ui/components/StreamingResponse.d.ts.map +0 -1
  860. package/dist/ui/components/StreamingResponse.js +0 -56
  861. package/dist/ui/components/StreamingResponse.js.map +0 -1
  862. package/dist/ui/components/TokenUsage.d.ts +0 -89
  863. package/dist/ui/components/TokenUsage.d.ts.map +0 -1
  864. package/dist/ui/components/TokenUsage.js +0 -99
  865. package/dist/ui/components/TokenUsage.js.map +0 -1
  866. package/dist/ui/components/ToolSummary.d.ts +0 -77
  867. package/dist/ui/components/ToolSummary.d.ts.map +0 -1
  868. package/dist/ui/components/ToolSummary.js +0 -162
  869. package/dist/ui/components/ToolSummary.js.map +0 -1
  870. package/dist/ui/components/UpdateNotification.d.ts +0 -65
  871. package/dist/ui/components/UpdateNotification.d.ts.map +0 -1
  872. package/dist/ui/components/UpdateNotification.js +0 -166
  873. package/dist/ui/components/UpdateNotification.js.map +0 -1
  874. package/dist/ui/diff-renderer.d.ts +0 -18
  875. package/dist/ui/diff-renderer.d.ts.map +0 -1
  876. package/dist/ui/diff-renderer.js +0 -206
  877. package/dist/ui/diff-renderer.js.map +0 -1
  878. package/dist/ui/themes/markdown-theme.d.ts +0 -48
  879. package/dist/ui/themes/markdown-theme.d.ts.map +0 -1
  880. package/dist/ui/themes/markdown-theme.js +0 -79
  881. package/dist/ui/themes/markdown-theme.js.map +0 -1
  882. package/dist/ui/themes/ui-theme.d.ts +0 -301
  883. package/dist/ui/themes/ui-theme.d.ts.map +0 -1
  884. package/dist/ui/themes/ui-theme.js +0 -204
  885. package/dist/ui/themes/ui-theme.js.map +0 -1
  886. package/dist/utils/attachment-handler.d.ts +0 -129
  887. package/dist/utils/attachment-handler.d.ts.map +0 -1
  888. package/dist/utils/attachment-handler.js +0 -280
  889. package/dist/utils/attachment-handler.js.map +0 -1
  890. package/dist/utils/backup-cleanup.d.ts +0 -28
  891. package/dist/utils/backup-cleanup.d.ts.map +0 -1
  892. package/dist/utils/backup-cleanup.js +0 -99
  893. package/dist/utils/backup-cleanup.js.map +0 -1
  894. package/dist/utils/clipboard-handler.d.ts +0 -82
  895. package/dist/utils/clipboard-handler.d.ts.map +0 -1
  896. package/dist/utils/clipboard-handler.js +0 -311
  897. package/dist/utils/clipboard-handler.js.map +0 -1
  898. package/dist/utils/cloud-detection.d.ts +0 -14
  899. package/dist/utils/cloud-detection.d.ts.map +0 -1
  900. package/dist/utils/cloud-detection.js +0 -92
  901. package/dist/utils/cloud-detection.js.map +0 -1
  902. package/dist/utils/command-parser.d.ts +0 -56
  903. package/dist/utils/command-parser.d.ts.map +0 -1
  904. package/dist/utils/command-parser.js +0 -206
  905. package/dist/utils/command-parser.js.map +0 -1
  906. package/dist/utils/console-capture.d.ts +0 -30
  907. package/dist/utils/console-capture.d.ts.map +0 -1
  908. package/dist/utils/console-capture.js +0 -88
  909. package/dist/utils/console-capture.js.map +0 -1
  910. package/dist/utils/cron-parser.d.ts +0 -52
  911. package/dist/utils/cron-parser.d.ts.map +0 -1
  912. package/dist/utils/cron-parser.js +0 -455
  913. package/dist/utils/cron-parser.js.map +0 -1
  914. package/dist/utils/crypto.d.ts +0 -351
  915. package/dist/utils/crypto.d.ts.map +0 -1
  916. package/dist/utils/crypto.js +0 -615
  917. package/dist/utils/crypto.js.map +0 -1
  918. package/dist/utils/diff.d.ts +0 -311
  919. package/dist/utils/diff.d.ts.map +0 -1
  920. package/dist/utils/diff.js +0 -566
  921. package/dist/utils/diff.js.map +0 -1
  922. package/dist/utils/editor.d.ts +0 -12
  923. package/dist/utils/editor.d.ts.map +0 -1
  924. package/dist/utils/editor.js +0 -30
  925. package/dist/utils/editor.js.map +0 -1
  926. package/dist/utils/file-system.d.ts +0 -512
  927. package/dist/utils/file-system.d.ts.map +0 -1
  928. package/dist/utils/file-system.js +0 -798
  929. package/dist/utils/file-system.js.map +0 -1
  930. package/dist/utils/format.d.ts +0 -318
  931. package/dist/utils/format.d.ts.map +0 -1
  932. package/dist/utils/format.js +0 -587
  933. package/dist/utils/format.js.map +0 -1
  934. package/dist/utils/ignore-patterns.d.ts +0 -93
  935. package/dist/utils/ignore-patterns.d.ts.map +0 -1
  936. package/dist/utils/ignore-patterns.js +0 -710
  937. package/dist/utils/ignore-patterns.js.map +0 -1
  938. package/dist/utils/log-cleanup.d.ts +0 -16
  939. package/dist/utils/log-cleanup.d.ts.map +0 -1
  940. package/dist/utils/log-cleanup.js +0 -51
  941. package/dist/utils/log-cleanup.js.map +0 -1
  942. package/dist/utils/logger.d.ts +0 -305
  943. package/dist/utils/logger.d.ts.map +0 -1
  944. package/dist/utils/logger.js +0 -447
  945. package/dist/utils/logger.js.map +0 -1
  946. package/dist/utils/path.d.ts +0 -406
  947. package/dist/utils/path.d.ts.map +0 -1
  948. package/dist/utils/path.js +0 -549
  949. package/dist/utils/path.js.map +0 -1
  950. package/dist/utils/schedule-file.d.ts +0 -63
  951. package/dist/utils/schedule-file.d.ts.map +0 -1
  952. package/dist/utils/schedule-file.js +0 -244
  953. package/dist/utils/schedule-file.js.map +0 -1
  954. package/dist/utils/task-id.d.ts +0 -29
  955. package/dist/utils/task-id.d.ts.map +0 -1
  956. package/dist/utils/task-id.js +0 -53
  957. package/dist/utils/task-id.js.map +0 -1
  958. package/dist/utils/temp-cleanup.d.ts +0 -46
  959. package/dist/utils/temp-cleanup.d.ts.map +0 -1
  960. package/dist/utils/temp-cleanup.js +0 -95
  961. package/dist/utils/temp-cleanup.js.map +0 -1
  962. package/dist/utils/terminal-output.d.ts +0 -34
  963. package/dist/utils/terminal-output.d.ts.map +0 -1
  964. package/dist/utils/terminal-output.js +0 -40
  965. package/dist/utils/terminal-output.js.map +0 -1
  966. package/dist/utils/token-counter.d.ts +0 -224
  967. package/dist/utils/token-counter.d.ts.map +0 -1
  968. package/dist/utils/token-counter.js +0 -332
  969. package/dist/utils/token-counter.js.map +0 -1
  970. package/dist/utils/tool-mapper.d.ts +0 -70
  971. package/dist/utils/tool-mapper.d.ts.map +0 -1
  972. package/dist/utils/tool-mapper.js +0 -234
  973. package/dist/utils/tool-mapper.js.map +0 -1
@@ -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"}
@@ -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"}