olympus-ai 1.0.0

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 (573) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +691 -0
  3. package/dist/__tests__/example.test.d.ts +2 -0
  4. package/dist/__tests__/example.test.d.ts.map +1 -0
  5. package/dist/__tests__/example.test.js +20 -0
  6. package/dist/__tests__/example.test.js.map +1 -0
  7. package/dist/__tests__/hooks.test.d.ts +2 -0
  8. package/dist/__tests__/hooks.test.d.ts.map +1 -0
  9. package/dist/__tests__/hooks.test.js +644 -0
  10. package/dist/__tests__/hooks.test.js.map +1 -0
  11. package/dist/__tests__/installer.test.d.ts +2 -0
  12. package/dist/__tests__/installer.test.d.ts.map +1 -0
  13. package/dist/__tests__/installer.test.js +369 -0
  14. package/dist/__tests__/installer.test.js.map +1 -0
  15. package/dist/__tests__/model-routing.test.d.ts +2 -0
  16. package/dist/__tests__/model-routing.test.d.ts.map +1 -0
  17. package/dist/__tests__/model-routing.test.js +814 -0
  18. package/dist/__tests__/model-routing.test.js.map +1 -0
  19. package/dist/__tests__/skills.test.d.ts +2 -0
  20. package/dist/__tests__/skills.test.d.ts.map +1 -0
  21. package/dist/__tests__/skills.test.js +126 -0
  22. package/dist/__tests__/skills.test.js.map +1 -0
  23. package/dist/__tests__/types.test.d.ts +2 -0
  24. package/dist/__tests__/types.test.d.ts.map +1 -0
  25. package/dist/__tests__/types.test.js +77 -0
  26. package/dist/__tests__/types.test.js.map +1 -0
  27. package/dist/agents/definitions.d.ts +105 -0
  28. package/dist/agents/definitions.d.ts.map +1 -0
  29. package/dist/agents/definitions.js +1379 -0
  30. package/dist/agents/definitions.js.map +1 -0
  31. package/dist/agents/document-writer.d.ts +11 -0
  32. package/dist/agents/document-writer.d.ts.map +1 -0
  33. package/dist/agents/document-writer.js +209 -0
  34. package/dist/agents/document-writer.js.map +1 -0
  35. package/dist/agents/explore.d.ts +12 -0
  36. package/dist/agents/explore.d.ts.map +1 -0
  37. package/dist/agents/explore.js +103 -0
  38. package/dist/agents/explore.js.map +1 -0
  39. package/dist/agents/frontend-engineer.d.ts +11 -0
  40. package/dist/agents/frontend-engineer.d.ts.map +1 -0
  41. package/dist/agents/frontend-engineer.js +115 -0
  42. package/dist/agents/frontend-engineer.js.map +1 -0
  43. package/dist/agents/index.d.ts +21 -0
  44. package/dist/agents/index.d.ts.map +1 -0
  45. package/dist/agents/index.js +27 -0
  46. package/dist/agents/index.js.map +1 -0
  47. package/dist/agents/librarian.d.ts +12 -0
  48. package/dist/agents/librarian.d.ts.map +1 -0
  49. package/dist/agents/librarian.js +103 -0
  50. package/dist/agents/librarian.js.map +1 -0
  51. package/dist/agents/metis.d.ts +12 -0
  52. package/dist/agents/metis.d.ts.map +1 -0
  53. package/dist/agents/metis.js +117 -0
  54. package/dist/agents/metis.js.map +1 -0
  55. package/dist/agents/momus.d.ts +12 -0
  56. package/dist/agents/momus.d.ts.map +1 -0
  57. package/dist/agents/momus.js +128 -0
  58. package/dist/agents/momus.js.map +1 -0
  59. package/dist/agents/multimodal-looker.d.ts +11 -0
  60. package/dist/agents/multimodal-looker.d.ts.map +1 -0
  61. package/dist/agents/multimodal-looker.js +70 -0
  62. package/dist/agents/multimodal-looker.js.map +1 -0
  63. package/dist/agents/olympian.d.ts +12 -0
  64. package/dist/agents/olympian.d.ts.map +1 -0
  65. package/dist/agents/olympian.js +93 -0
  66. package/dist/agents/olympian.js.map +1 -0
  67. package/dist/agents/oracle.d.ts +13 -0
  68. package/dist/agents/oracle.d.ts.map +1 -0
  69. package/dist/agents/oracle.js +191 -0
  70. package/dist/agents/oracle.js.map +1 -0
  71. package/dist/agents/orchestrator-olympus.d.ts +11 -0
  72. package/dist/agents/orchestrator-olympus.d.ts.map +1 -0
  73. package/dist/agents/orchestrator-olympus.js +115 -0
  74. package/dist/agents/orchestrator-olympus.js.map +1 -0
  75. package/dist/agents/orchestrator-sisyphus.d.ts +11 -0
  76. package/dist/agents/orchestrator-sisyphus.d.ts.map +1 -0
  77. package/dist/agents/orchestrator-sisyphus.js +115 -0
  78. package/dist/agents/orchestrator-sisyphus.js.map +1 -0
  79. package/dist/agents/prometheus.d.ts +12 -0
  80. package/dist/agents/prometheus.d.ts.map +1 -0
  81. package/dist/agents/prometheus.js +156 -0
  82. package/dist/agents/prometheus.js.map +1 -0
  83. package/dist/agents/qa-tester.d.ts +16 -0
  84. package/dist/agents/qa-tester.d.ts.map +1 -0
  85. package/dist/agents/qa-tester.js +367 -0
  86. package/dist/agents/qa-tester.js.map +1 -0
  87. package/dist/agents/sisyphus-junior.d.ts +12 -0
  88. package/dist/agents/sisyphus-junior.d.ts.map +1 -0
  89. package/dist/agents/sisyphus-junior.js +93 -0
  90. package/dist/agents/sisyphus-junior.js.map +1 -0
  91. package/dist/agents/types.d.ts +120 -0
  92. package/dist/agents/types.d.ts.map +1 -0
  93. package/dist/agents/types.js +38 -0
  94. package/dist/agents/types.js.map +1 -0
  95. package/dist/agents/utils.d.ts +49 -0
  96. package/dist/agents/utils.d.ts.map +1 -0
  97. package/dist/agents/utils.js +164 -0
  98. package/dist/agents/utils.js.map +1 -0
  99. package/dist/cli/index.d.ts +13 -0
  100. package/dist/cli/index.d.ts.map +1 -0
  101. package/dist/cli/index.js +496 -0
  102. package/dist/cli/index.js.map +1 -0
  103. package/dist/commands/index.d.ts +78 -0
  104. package/dist/commands/index.d.ts.map +1 -0
  105. package/dist/commands/index.js +148 -0
  106. package/dist/commands/index.js.map +1 -0
  107. package/dist/config/index.d.ts +5 -0
  108. package/dist/config/index.d.ts.map +1 -0
  109. package/dist/config/index.js +5 -0
  110. package/dist/config/index.js.map +1 -0
  111. package/dist/config/loader.d.ts +49 -0
  112. package/dist/config/loader.d.ts.map +1 -0
  113. package/dist/config/loader.js +380 -0
  114. package/dist/config/loader.js.map +1 -0
  115. package/dist/features/auto-update.d.ts +187 -0
  116. package/dist/features/auto-update.d.ts.map +1 -0
  117. package/dist/features/auto-update.js +539 -0
  118. package/dist/features/auto-update.js.map +1 -0
  119. package/dist/features/background-agent/concurrency.d.ts +53 -0
  120. package/dist/features/background-agent/concurrency.d.ts.map +1 -0
  121. package/dist/features/background-agent/concurrency.js +121 -0
  122. package/dist/features/background-agent/concurrency.js.map +1 -0
  123. package/dist/features/background-agent/index.d.ts +12 -0
  124. package/dist/features/background-agent/index.d.ts.map +1 -0
  125. package/dist/features/background-agent/index.js +12 -0
  126. package/dist/features/background-agent/index.js.map +1 -0
  127. package/dist/features/background-agent/manager.d.ts +134 -0
  128. package/dist/features/background-agent/manager.d.ts.map +1 -0
  129. package/dist/features/background-agent/manager.js +412 -0
  130. package/dist/features/background-agent/manager.js.map +1 -0
  131. package/dist/features/background-agent/types.d.ts +99 -0
  132. package/dist/features/background-agent/types.d.ts.map +1 -0
  133. package/dist/features/background-agent/types.js +9 -0
  134. package/dist/features/background-agent/types.js.map +1 -0
  135. package/dist/features/background-tasks.d.ts +99 -0
  136. package/dist/features/background-tasks.d.ts.map +1 -0
  137. package/dist/features/background-tasks.js +265 -0
  138. package/dist/features/background-tasks.js.map +1 -0
  139. package/dist/features/boulder-state/constants.d.ts +20 -0
  140. package/dist/features/boulder-state/constants.d.ts.map +1 -0
  141. package/dist/features/boulder-state/constants.js +20 -0
  142. package/dist/features/boulder-state/constants.js.map +1 -0
  143. package/dist/features/boulder-state/index.d.ts +12 -0
  144. package/dist/features/boulder-state/index.d.ts.map +1 -0
  145. package/dist/features/boulder-state/index.js +13 -0
  146. package/dist/features/boulder-state/index.js.map +1 -0
  147. package/dist/features/boulder-state/storage.d.ts +58 -0
  148. package/dist/features/boulder-state/storage.d.ts.map +1 -0
  149. package/dist/features/boulder-state/storage.js +174 -0
  150. package/dist/features/boulder-state/storage.js.map +1 -0
  151. package/dist/features/boulder-state/types.d.ts +48 -0
  152. package/dist/features/boulder-state/types.d.ts.map +1 -0
  153. package/dist/features/boulder-state/types.js +10 -0
  154. package/dist/features/boulder-state/types.js.map +1 -0
  155. package/dist/features/builtin-skills/index.d.ts +10 -0
  156. package/dist/features/builtin-skills/index.d.ts.map +1 -0
  157. package/dist/features/builtin-skills/index.js +10 -0
  158. package/dist/features/builtin-skills/index.js.map +1 -0
  159. package/dist/features/builtin-skills/skills.d.ts +21 -0
  160. package/dist/features/builtin-skills/skills.d.ts.map +1 -0
  161. package/dist/features/builtin-skills/skills.js +1082 -0
  162. package/dist/features/builtin-skills/skills.js.map +1 -0
  163. package/dist/features/builtin-skills/types.d.ts +60 -0
  164. package/dist/features/builtin-skills/types.d.ts.map +1 -0
  165. package/dist/features/builtin-skills/types.js +9 -0
  166. package/dist/features/builtin-skills/types.js.map +1 -0
  167. package/dist/features/context-injector/collector.d.ts +56 -0
  168. package/dist/features/context-injector/collector.d.ts.map +1 -0
  169. package/dist/features/context-injector/collector.js +122 -0
  170. package/dist/features/context-injector/collector.js.map +1 -0
  171. package/dist/features/context-injector/index.d.ts +12 -0
  172. package/dist/features/context-injector/index.d.ts.map +1 -0
  173. package/dist/features/context-injector/index.js +13 -0
  174. package/dist/features/context-injector/index.js.map +1 -0
  175. package/dist/features/context-injector/injector.d.ts +47 -0
  176. package/dist/features/context-injector/injector.d.ts.map +1 -0
  177. package/dist/features/context-injector/injector.js +103 -0
  178. package/dist/features/context-injector/injector.js.map +1 -0
  179. package/dist/features/context-injector/types.d.ts +103 -0
  180. package/dist/features/context-injector/types.d.ts.map +1 -0
  181. package/dist/features/context-injector/types.js +11 -0
  182. package/dist/features/context-injector/types.js.map +1 -0
  183. package/dist/features/continuation-enforcement.d.ts +36 -0
  184. package/dist/features/continuation-enforcement.d.ts.map +1 -0
  185. package/dist/features/continuation-enforcement.js +175 -0
  186. package/dist/features/continuation-enforcement.js.map +1 -0
  187. package/dist/features/index.d.ts +12 -0
  188. package/dist/features/index.d.ts.map +1 -0
  189. package/dist/features/index.js +49 -0
  190. package/dist/features/index.js.map +1 -0
  191. package/dist/features/magic-keywords.d.ts +28 -0
  192. package/dist/features/magic-keywords.d.ts.map +1 -0
  193. package/dist/features/magic-keywords.js +421 -0
  194. package/dist/features/magic-keywords.js.map +1 -0
  195. package/dist/features/model-routing/index.d.ts +34 -0
  196. package/dist/features/model-routing/index.d.ts.map +1 -0
  197. package/dist/features/model-routing/index.js +48 -0
  198. package/dist/features/model-routing/index.js.map +1 -0
  199. package/dist/features/model-routing/prompts/haiku.d.ts +54 -0
  200. package/dist/features/model-routing/prompts/haiku.d.ts.map +1 -0
  201. package/dist/features/model-routing/prompts/haiku.js +141 -0
  202. package/dist/features/model-routing/prompts/haiku.js.map +1 -0
  203. package/dist/features/model-routing/prompts/index.d.ts +45 -0
  204. package/dist/features/model-routing/prompts/index.d.ts.map +1 -0
  205. package/dist/features/model-routing/prompts/index.js +116 -0
  206. package/dist/features/model-routing/prompts/index.js.map +1 -0
  207. package/dist/features/model-routing/prompts/opus.d.ts +34 -0
  208. package/dist/features/model-routing/prompts/opus.d.ts.map +1 -0
  209. package/dist/features/model-routing/prompts/opus.js +153 -0
  210. package/dist/features/model-routing/prompts/opus.js.map +1 -0
  211. package/dist/features/model-routing/prompts/sonnet.d.ts +38 -0
  212. package/dist/features/model-routing/prompts/sonnet.d.ts.map +1 -0
  213. package/dist/features/model-routing/prompts/sonnet.js +149 -0
  214. package/dist/features/model-routing/prompts/sonnet.js.map +1 -0
  215. package/dist/features/model-routing/router.d.ts +92 -0
  216. package/dist/features/model-routing/router.d.ts.map +1 -0
  217. package/dist/features/model-routing/router.js +267 -0
  218. package/dist/features/model-routing/router.js.map +1 -0
  219. package/dist/features/model-routing/rules.d.ts +32 -0
  220. package/dist/features/model-routing/rules.d.ts.map +1 -0
  221. package/dist/features/model-routing/rules.js +224 -0
  222. package/dist/features/model-routing/rules.js.map +1 -0
  223. package/dist/features/model-routing/scorer.d.ts +35 -0
  224. package/dist/features/model-routing/scorer.d.ts.map +1 -0
  225. package/dist/features/model-routing/scorer.js +241 -0
  226. package/dist/features/model-routing/scorer.js.map +1 -0
  227. package/dist/features/model-routing/signals.d.ts +26 -0
  228. package/dist/features/model-routing/signals.d.ts.map +1 -0
  229. package/dist/features/model-routing/signals.js +283 -0
  230. package/dist/features/model-routing/signals.js.map +1 -0
  231. package/dist/features/model-routing/types.d.ts +195 -0
  232. package/dist/features/model-routing/types.d.ts.map +1 -0
  233. package/dist/features/model-routing/types.js +86 -0
  234. package/dist/features/model-routing/types.js.map +1 -0
  235. package/dist/hooks/agent-usage-reminder/constants.d.ts +17 -0
  236. package/dist/hooks/agent-usage-reminder/constants.d.ts.map +1 -0
  237. package/dist/hooks/agent-usage-reminder/constants.js +58 -0
  238. package/dist/hooks/agent-usage-reminder/constants.js.map +1 -0
  239. package/dist/hooks/agent-usage-reminder/index.d.ts +36 -0
  240. package/dist/hooks/agent-usage-reminder/index.d.ts.map +1 -0
  241. package/dist/hooks/agent-usage-reminder/index.js +89 -0
  242. package/dist/hooks/agent-usage-reminder/index.js.map +1 -0
  243. package/dist/hooks/agent-usage-reminder/storage.d.ts +12 -0
  244. package/dist/hooks/agent-usage-reminder/storage.d.ts.map +1 -0
  245. package/dist/hooks/agent-usage-reminder/storage.js +39 -0
  246. package/dist/hooks/agent-usage-reminder/storage.js.map +1 -0
  247. package/dist/hooks/agent-usage-reminder/types.d.ts +14 -0
  248. package/dist/hooks/agent-usage-reminder/types.d.ts.map +1 -0
  249. package/dist/hooks/agent-usage-reminder/types.js +9 -0
  250. package/dist/hooks/agent-usage-reminder/types.js.map +1 -0
  251. package/dist/hooks/ascent-verifier/index.d.ts +72 -0
  252. package/dist/hooks/ascent-verifier/index.d.ts.map +1 -0
  253. package/dist/hooks/ascent-verifier/index.js +223 -0
  254. package/dist/hooks/ascent-verifier/index.js.map +1 -0
  255. package/dist/hooks/auto-slash-command/constants.d.ts +19 -0
  256. package/dist/hooks/auto-slash-command/constants.d.ts.map +1 -0
  257. package/dist/hooks/auto-slash-command/constants.js +28 -0
  258. package/dist/hooks/auto-slash-command/constants.js.map +1 -0
  259. package/dist/hooks/auto-slash-command/detector.d.ts +33 -0
  260. package/dist/hooks/auto-slash-command/detector.d.ts.map +1 -0
  261. package/dist/hooks/auto-slash-command/detector.js +73 -0
  262. package/dist/hooks/auto-slash-command/detector.js.map +1 -0
  263. package/dist/hooks/auto-slash-command/executor.d.ts +29 -0
  264. package/dist/hooks/auto-slash-command/executor.d.ts.map +1 -0
  265. package/dist/hooks/auto-slash-command/executor.js +214 -0
  266. package/dist/hooks/auto-slash-command/executor.js.map +1 -0
  267. package/dist/hooks/auto-slash-command/index.d.ts +53 -0
  268. package/dist/hooks/auto-slash-command/index.d.ts.map +1 -0
  269. package/dist/hooks/auto-slash-command/index.js +105 -0
  270. package/dist/hooks/auto-slash-command/index.js.map +1 -0
  271. package/dist/hooks/auto-slash-command/types.d.ts +77 -0
  272. package/dist/hooks/auto-slash-command/types.d.ts.map +1 -0
  273. package/dist/hooks/auto-slash-command/types.js +9 -0
  274. package/dist/hooks/auto-slash-command/types.js.map +1 -0
  275. package/dist/hooks/background-notification/index.d.ts +60 -0
  276. package/dist/hooks/background-notification/index.d.ts.map +1 -0
  277. package/dist/hooks/background-notification/index.js +180 -0
  278. package/dist/hooks/background-notification/index.js.map +1 -0
  279. package/dist/hooks/background-notification/types.d.ts +64 -0
  280. package/dist/hooks/background-notification/types.d.ts.map +1 -0
  281. package/dist/hooks/background-notification/types.js +8 -0
  282. package/dist/hooks/background-notification/types.js.map +1 -0
  283. package/dist/hooks/bridge.d.ts +68 -0
  284. package/dist/hooks/bridge.d.ts.map +1 -0
  285. package/dist/hooks/bridge.js +321 -0
  286. package/dist/hooks/bridge.js.map +1 -0
  287. package/dist/hooks/comment-checker/constants.d.ts +28 -0
  288. package/dist/hooks/comment-checker/constants.d.ts.map +1 -0
  289. package/dist/hooks/comment-checker/constants.js +189 -0
  290. package/dist/hooks/comment-checker/constants.js.map +1 -0
  291. package/dist/hooks/comment-checker/filters.d.ts +39 -0
  292. package/dist/hooks/comment-checker/filters.d.ts.map +1 -0
  293. package/dist/hooks/comment-checker/filters.js +126 -0
  294. package/dist/hooks/comment-checker/filters.js.map +1 -0
  295. package/dist/hooks/comment-checker/index.d.ts +58 -0
  296. package/dist/hooks/comment-checker/index.d.ts.map +1 -0
  297. package/dist/hooks/comment-checker/index.js +298 -0
  298. package/dist/hooks/comment-checker/index.js.map +1 -0
  299. package/dist/hooks/comment-checker/types.d.ts +88 -0
  300. package/dist/hooks/comment-checker/types.d.ts.map +1 -0
  301. package/dist/hooks/comment-checker/types.js +9 -0
  302. package/dist/hooks/comment-checker/types.js.map +1 -0
  303. package/dist/hooks/context-window-limit-recovery/constants.d.ts +28 -0
  304. package/dist/hooks/context-window-limit-recovery/constants.d.ts.map +1 -0
  305. package/dist/hooks/context-window-limit-recovery/constants.js +85 -0
  306. package/dist/hooks/context-window-limit-recovery/constants.js.map +1 -0
  307. package/dist/hooks/context-window-limit-recovery/index.d.ts +62 -0
  308. package/dist/hooks/context-window-limit-recovery/index.d.ts.map +1 -0
  309. package/dist/hooks/context-window-limit-recovery/index.js +201 -0
  310. package/dist/hooks/context-window-limit-recovery/index.js.map +1 -0
  311. package/dist/hooks/context-window-limit-recovery/parser.d.ts +31 -0
  312. package/dist/hooks/context-window-limit-recovery/parser.d.ts.map +1 -0
  313. package/dist/hooks/context-window-limit-recovery/parser.js +241 -0
  314. package/dist/hooks/context-window-limit-recovery/parser.js.map +1 -0
  315. package/dist/hooks/context-window-limit-recovery/types.d.ts +84 -0
  316. package/dist/hooks/context-window-limit-recovery/types.d.ts.map +1 -0
  317. package/dist/hooks/context-window-limit-recovery/types.js +34 -0
  318. package/dist/hooks/context-window-limit-recovery/types.js.map +1 -0
  319. package/dist/hooks/directory-readme-injector/constants.d.ts +15 -0
  320. package/dist/hooks/directory-readme-injector/constants.d.ts.map +1 -0
  321. package/dist/hooks/directory-readme-injector/constants.js +17 -0
  322. package/dist/hooks/directory-readme-injector/constants.js.map +1 -0
  323. package/dist/hooks/directory-readme-injector/index.d.ts +41 -0
  324. package/dist/hooks/directory-readme-injector/index.d.ts.map +1 -0
  325. package/dist/hooks/directory-readme-injector/index.js +162 -0
  326. package/dist/hooks/directory-readme-injector/index.js.map +1 -0
  327. package/dist/hooks/directory-readme-injector/storage.d.ts +20 -0
  328. package/dist/hooks/directory-readme-injector/storage.d.ts.map +1 -0
  329. package/dist/hooks/directory-readme-injector/storage.js +56 -0
  330. package/dist/hooks/directory-readme-injector/storage.js.map +1 -0
  331. package/dist/hooks/directory-readme-injector/types.d.ts +20 -0
  332. package/dist/hooks/directory-readme-injector/types.d.ts.map +1 -0
  333. package/dist/hooks/directory-readme-injector/types.js +9 -0
  334. package/dist/hooks/directory-readme-injector/types.js.map +1 -0
  335. package/dist/hooks/edit-error-recovery/index.d.ts +62 -0
  336. package/dist/hooks/edit-error-recovery/index.d.ts.map +1 -0
  337. package/dist/hooks/edit-error-recovery/index.js +89 -0
  338. package/dist/hooks/edit-error-recovery/index.js.map +1 -0
  339. package/dist/hooks/empty-message-sanitizer/constants.d.ts +33 -0
  340. package/dist/hooks/empty-message-sanitizer/constants.d.ts.map +1 -0
  341. package/dist/hooks/empty-message-sanitizer/constants.js +37 -0
  342. package/dist/hooks/empty-message-sanitizer/constants.js.map +1 -0
  343. package/dist/hooks/empty-message-sanitizer/index.d.ts +59 -0
  344. package/dist/hooks/empty-message-sanitizer/index.d.ts.map +1 -0
  345. package/dist/hooks/empty-message-sanitizer/index.js +171 -0
  346. package/dist/hooks/empty-message-sanitizer/index.js.map +1 -0
  347. package/dist/hooks/empty-message-sanitizer/types.d.ts +79 -0
  348. package/dist/hooks/empty-message-sanitizer/types.d.ts.map +1 -0
  349. package/dist/hooks/empty-message-sanitizer/types.js +10 -0
  350. package/dist/hooks/empty-message-sanitizer/types.js.map +1 -0
  351. package/dist/hooks/index.d.ts +35 -0
  352. package/dist/hooks/index.d.ts.map +1 -0
  353. package/dist/hooks/index.js +81 -0
  354. package/dist/hooks/index.js.map +1 -0
  355. package/dist/hooks/keyword-detector/index.d.ts +40 -0
  356. package/dist/hooks/keyword-detector/index.d.ts.map +1 -0
  357. package/dist/hooks/keyword-detector/index.js +88 -0
  358. package/dist/hooks/keyword-detector/index.js.map +1 -0
  359. package/dist/hooks/non-interactive-env/constants.d.ts +35 -0
  360. package/dist/hooks/non-interactive-env/constants.d.ts.map +1 -0
  361. package/dist/hooks/non-interactive-env/constants.js +69 -0
  362. package/dist/hooks/non-interactive-env/constants.js.map +1 -0
  363. package/dist/hooks/non-interactive-env/detector.d.ts +2 -0
  364. package/dist/hooks/non-interactive-env/detector.d.ts.map +1 -0
  365. package/dist/hooks/non-interactive-env/detector.js +16 -0
  366. package/dist/hooks/non-interactive-env/detector.js.map +1 -0
  367. package/dist/hooks/non-interactive-env/index.d.ts +14 -0
  368. package/dist/hooks/non-interactive-env/index.d.ts.map +1 -0
  369. package/dist/hooks/non-interactive-env/index.js +72 -0
  370. package/dist/hooks/non-interactive-env/index.js.map +1 -0
  371. package/dist/hooks/non-interactive-env/types.d.ts +14 -0
  372. package/dist/hooks/non-interactive-env/types.d.ts.map +1 -0
  373. package/dist/hooks/non-interactive-env/types.js +2 -0
  374. package/dist/hooks/non-interactive-env/types.js.map +1 -0
  375. package/dist/hooks/olympus-orchestrator/constants.d.ts +23 -0
  376. package/dist/hooks/olympus-orchestrator/constants.d.ts.map +1 -0
  377. package/dist/hooks/olympus-orchestrator/constants.js +142 -0
  378. package/dist/hooks/olympus-orchestrator/constants.js.map +1 -0
  379. package/dist/hooks/olympus-orchestrator/index.d.ts +113 -0
  380. package/dist/hooks/olympus-orchestrator/index.d.ts.map +1 -0
  381. package/dist/hooks/olympus-orchestrator/index.js +283 -0
  382. package/dist/hooks/olympus-orchestrator/index.js.map +1 -0
  383. package/dist/hooks/persistent-mode/index.d.ts +40 -0
  384. package/dist/hooks/persistent-mode/index.d.ts.map +1 -0
  385. package/dist/hooks/persistent-mode/index.js +322 -0
  386. package/dist/hooks/persistent-mode/index.js.map +1 -0
  387. package/dist/hooks/plugin-patterns/index.d.ts +107 -0
  388. package/dist/hooks/plugin-patterns/index.d.ts.map +1 -0
  389. package/dist/hooks/plugin-patterns/index.js +289 -0
  390. package/dist/hooks/plugin-patterns/index.js.map +1 -0
  391. package/dist/hooks/preemptive-compaction/constants.d.ts +48 -0
  392. package/dist/hooks/preemptive-compaction/constants.d.ts.map +1 -0
  393. package/dist/hooks/preemptive-compaction/constants.js +90 -0
  394. package/dist/hooks/preemptive-compaction/constants.js.map +1 -0
  395. package/dist/hooks/preemptive-compaction/index.d.ts +55 -0
  396. package/dist/hooks/preemptive-compaction/index.d.ts.map +1 -0
  397. package/dist/hooks/preemptive-compaction/index.js +227 -0
  398. package/dist/hooks/preemptive-compaction/index.js.map +1 -0
  399. package/dist/hooks/preemptive-compaction/types.d.ts +76 -0
  400. package/dist/hooks/preemptive-compaction/types.d.ts.map +1 -0
  401. package/dist/hooks/preemptive-compaction/types.js +9 -0
  402. package/dist/hooks/preemptive-compaction/types.js.map +1 -0
  403. package/dist/hooks/ralph-loop/index.d.ts +60 -0
  404. package/dist/hooks/ralph-loop/index.d.ts.map +1 -0
  405. package/dist/hooks/ralph-loop/index.js +155 -0
  406. package/dist/hooks/ralph-loop/index.js.map +1 -0
  407. package/dist/hooks/ralph-verifier/index.d.ts +72 -0
  408. package/dist/hooks/ralph-verifier/index.d.ts.map +1 -0
  409. package/dist/hooks/ralph-verifier/index.js +223 -0
  410. package/dist/hooks/ralph-verifier/index.js.map +1 -0
  411. package/dist/hooks/rules-injector/constants.d.ts +25 -0
  412. package/dist/hooks/rules-injector/constants.d.ts.map +1 -0
  413. package/dist/hooks/rules-injector/constants.js +40 -0
  414. package/dist/hooks/rules-injector/constants.js.map +1 -0
  415. package/dist/hooks/rules-injector/finder.d.ts +24 -0
  416. package/dist/hooks/rules-injector/finder.d.ts.map +1 -0
  417. package/dist/hooks/rules-injector/finder.js +215 -0
  418. package/dist/hooks/rules-injector/finder.js.map +1 -0
  419. package/dist/hooks/rules-injector/index.d.ts +45 -0
  420. package/dist/hooks/rules-injector/index.d.ts.map +1 -0
  421. package/dist/hooks/rules-injector/index.js +187 -0
  422. package/dist/hooks/rules-injector/index.js.map +1 -0
  423. package/dist/hooks/rules-injector/matcher.d.ts +25 -0
  424. package/dist/hooks/rules-injector/matcher.d.ts.map +1 -0
  425. package/dist/hooks/rules-injector/matcher.js +70 -0
  426. package/dist/hooks/rules-injector/matcher.js.map +1 -0
  427. package/dist/hooks/rules-injector/parser.d.ts +20 -0
  428. package/dist/hooks/rules-injector/parser.d.ts.map +1 -0
  429. package/dist/hooks/rules-injector/parser.js +179 -0
  430. package/dist/hooks/rules-injector/parser.js.map +1 -0
  431. package/dist/hooks/rules-injector/storage.d.ts +26 -0
  432. package/dist/hooks/rules-injector/storage.d.ts.map +1 -0
  433. package/dist/hooks/rules-injector/storage.js +61 -0
  434. package/dist/hooks/rules-injector/storage.js.map +1 -0
  435. package/dist/hooks/rules-injector/types.d.ts +101 -0
  436. package/dist/hooks/rules-injector/types.d.ts.map +1 -0
  437. package/dist/hooks/rules-injector/types.js +10 -0
  438. package/dist/hooks/rules-injector/types.js.map +1 -0
  439. package/dist/hooks/session-recovery/constants.d.ts +56 -0
  440. package/dist/hooks/session-recovery/constants.d.ts.map +1 -0
  441. package/dist/hooks/session-recovery/constants.js +78 -0
  442. package/dist/hooks/session-recovery/constants.js.map +1 -0
  443. package/dist/hooks/session-recovery/index.d.ts +53 -0
  444. package/dist/hooks/session-recovery/index.d.ts.map +1 -0
  445. package/dist/hooks/session-recovery/index.js +321 -0
  446. package/dist/hooks/session-recovery/index.js.map +1 -0
  447. package/dist/hooks/session-recovery/storage.d.ts +76 -0
  448. package/dist/hooks/session-recovery/storage.d.ts.map +1 -0
  449. package/dist/hooks/session-recovery/storage.js +383 -0
  450. package/dist/hooks/session-recovery/storage.js.map +1 -0
  451. package/dist/hooks/session-recovery/types.d.ts +145 -0
  452. package/dist/hooks/session-recovery/types.d.ts.map +1 -0
  453. package/dist/hooks/session-recovery/types.js +8 -0
  454. package/dist/hooks/session-recovery/types.js.map +1 -0
  455. package/dist/hooks/sisyphus-orchestrator/constants.d.ts +23 -0
  456. package/dist/hooks/sisyphus-orchestrator/constants.d.ts.map +1 -0
  457. package/dist/hooks/sisyphus-orchestrator/constants.js +142 -0
  458. package/dist/hooks/sisyphus-orchestrator/constants.js.map +1 -0
  459. package/dist/hooks/sisyphus-orchestrator/index.d.ts +113 -0
  460. package/dist/hooks/sisyphus-orchestrator/index.d.ts.map +1 -0
  461. package/dist/hooks/sisyphus-orchestrator/index.js +283 -0
  462. package/dist/hooks/sisyphus-orchestrator/index.js.map +1 -0
  463. package/dist/hooks/the-ascent/index.d.ts +60 -0
  464. package/dist/hooks/the-ascent/index.d.ts.map +1 -0
  465. package/dist/hooks/the-ascent/index.js +155 -0
  466. package/dist/hooks/the-ascent/index.js.map +1 -0
  467. package/dist/hooks/think-mode/detector.d.ts +28 -0
  468. package/dist/hooks/think-mode/detector.d.ts.map +1 -0
  469. package/dist/hooks/think-mode/detector.js +105 -0
  470. package/dist/hooks/think-mode/detector.js.map +1 -0
  471. package/dist/hooks/think-mode/index.d.ts +70 -0
  472. package/dist/hooks/think-mode/index.d.ts.map +1 -0
  473. package/dist/hooks/think-mode/index.js +144 -0
  474. package/dist/hooks/think-mode/index.js.map +1 -0
  475. package/dist/hooks/think-mode/switcher.d.ts +39 -0
  476. package/dist/hooks/think-mode/switcher.d.ts.map +1 -0
  477. package/dist/hooks/think-mode/switcher.js +180 -0
  478. package/dist/hooks/think-mode/switcher.js.map +1 -0
  479. package/dist/hooks/think-mode/types.d.ts +60 -0
  480. package/dist/hooks/think-mode/types.d.ts.map +1 -0
  481. package/dist/hooks/think-mode/types.js +9 -0
  482. package/dist/hooks/think-mode/types.js.map +1 -0
  483. package/dist/hooks/thinking-block-validator/constants.d.ts +37 -0
  484. package/dist/hooks/thinking-block-validator/constants.d.ts.map +1 -0
  485. package/dist/hooks/thinking-block-validator/constants.js +50 -0
  486. package/dist/hooks/thinking-block-validator/constants.js.map +1 -0
  487. package/dist/hooks/thinking-block-validator/index.d.ts +35 -0
  488. package/dist/hooks/thinking-block-validator/index.d.ts.map +1 -0
  489. package/dist/hooks/thinking-block-validator/index.js +156 -0
  490. package/dist/hooks/thinking-block-validator/index.js.map +1 -0
  491. package/dist/hooks/thinking-block-validator/types.d.ts +67 -0
  492. package/dist/hooks/thinking-block-validator/types.d.ts.map +1 -0
  493. package/dist/hooks/thinking-block-validator/types.js +9 -0
  494. package/dist/hooks/thinking-block-validator/types.js.map +1 -0
  495. package/dist/hooks/todo-continuation/index.d.ts +39 -0
  496. package/dist/hooks/todo-continuation/index.d.ts.map +1 -0
  497. package/dist/hooks/todo-continuation/index.js +140 -0
  498. package/dist/hooks/todo-continuation/index.js.map +1 -0
  499. package/dist/hooks/ultrawork-state/index.d.ts +60 -0
  500. package/dist/hooks/ultrawork-state/index.d.ts.map +1 -0
  501. package/dist/hooks/ultrawork-state/index.js +207 -0
  502. package/dist/hooks/ultrawork-state/index.js.map +1 -0
  503. package/dist/index.d.ts +117 -0
  504. package/dist/index.d.ts.map +1 -0
  505. package/dist/index.js +175 -0
  506. package/dist/index.js.map +1 -0
  507. package/dist/installer/hooks.d.ts +196 -0
  508. package/dist/installer/hooks.d.ts.map +1 -0
  509. package/dist/installer/hooks.js +1385 -0
  510. package/dist/installer/hooks.js.map +1 -0
  511. package/dist/installer/index.d.ts +92 -0
  512. package/dist/installer/index.d.ts.map +1 -0
  513. package/dist/installer/index.js +2249 -0
  514. package/dist/installer/index.js.map +1 -0
  515. package/dist/mcp/index.d.ts +6 -0
  516. package/dist/mcp/index.d.ts.map +1 -0
  517. package/dist/mcp/index.js +5 -0
  518. package/dist/mcp/index.js.map +1 -0
  519. package/dist/mcp/servers.d.ts +77 -0
  520. package/dist/mcp/servers.d.ts.map +1 -0
  521. package/dist/mcp/servers.js +122 -0
  522. package/dist/mcp/servers.js.map +1 -0
  523. package/dist/shared/index.d.ts +5 -0
  524. package/dist/shared/index.d.ts.map +1 -0
  525. package/dist/shared/index.js +5 -0
  526. package/dist/shared/index.js.map +1 -0
  527. package/dist/shared/types.d.ts +159 -0
  528. package/dist/shared/types.d.ts.map +1 -0
  529. package/dist/shared/types.js +5 -0
  530. package/dist/shared/types.js.map +1 -0
  531. package/dist/tools/ast-tools.d.ts +63 -0
  532. package/dist/tools/ast-tools.d.ts.map +1 -0
  533. package/dist/tools/ast-tools.js +450 -0
  534. package/dist/tools/ast-tools.js.map +1 -0
  535. package/dist/tools/index.d.ts +52 -0
  536. package/dist/tools/index.d.ts.map +1 -0
  537. package/dist/tools/index.js +120 -0
  538. package/dist/tools/index.js.map +1 -0
  539. package/dist/tools/lsp/client.d.ts +201 -0
  540. package/dist/tools/lsp/client.d.ts.map +1 -0
  541. package/dist/tools/lsp/client.js +454 -0
  542. package/dist/tools/lsp/client.js.map +1 -0
  543. package/dist/tools/lsp/index.d.ts +9 -0
  544. package/dist/tools/lsp/index.d.ts.map +1 -0
  545. package/dist/tools/lsp/index.js +7 -0
  546. package/dist/tools/lsp/index.js.map +1 -0
  547. package/dist/tools/lsp/servers.d.ts +37 -0
  548. package/dist/tools/lsp/servers.d.ts.map +1 -0
  549. package/dist/tools/lsp/servers.js +149 -0
  550. package/dist/tools/lsp/servers.js.map +1 -0
  551. package/dist/tools/lsp/utils.d.ts +58 -0
  552. package/dist/tools/lsp/utils.d.ts.map +1 -0
  553. package/dist/tools/lsp/utils.js +236 -0
  554. package/dist/tools/lsp/utils.js.map +1 -0
  555. package/dist/tools/lsp-tools.d.ts +151 -0
  556. package/dist/tools/lsp-tools.d.ts.map +1 -0
  557. package/dist/tools/lsp-tools.js +358 -0
  558. package/dist/tools/lsp-tools.js.map +1 -0
  559. package/package.json +85 -0
  560. package/scripts/claude-sisyphus.sh +9 -0
  561. package/scripts/install.sh +1774 -0
  562. package/scripts/keyword-detector.mjs +209 -0
  563. package/scripts/keyword-detector.sh +71 -0
  564. package/scripts/persistent-mode.mjs +241 -0
  565. package/scripts/persistent-mode.sh +300 -0
  566. package/scripts/post-tool-verifier.mjs +217 -0
  567. package/scripts/post-tool-verifier.sh +196 -0
  568. package/scripts/pre-tool-enforcer.mjs +99 -0
  569. package/scripts/pre-tool-enforcer.sh +76 -0
  570. package/scripts/sisyphus-aliases.sh +18 -0
  571. package/scripts/stop-continuation.sh +31 -0
  572. package/scripts/test-pr25.sh +525 -0
  573. package/scripts/uninstall.sh +171 -0
@@ -0,0 +1,141 @@
1
+ /**
2
+ * Haiku-Optimized Prompt Adaptations
3
+ *
4
+ * Haiku (LOW tier) prompts are designed for:
5
+ * - Maximum speed and efficiency
6
+ * - Concise, direct instructions
7
+ * - Simple, focused tasks
8
+ * - Minimal cognitive overhead
9
+ */
10
+ /**
11
+ * Haiku prompt prefix - minimal overhead
12
+ */
13
+ export const HAIKU_PROMPT_PREFIX = `TASK: `;
14
+ /**
15
+ * Haiku prompt suffix - direct action
16
+ */
17
+ export const HAIKU_PROMPT_SUFFIX = `
18
+
19
+ Return results directly. No preamble.`;
20
+ /**
21
+ * Adapt a base prompt for Haiku execution
22
+ */
23
+ export function adaptPromptForHaiku(basePrompt) {
24
+ // For Haiku, we want to strip unnecessary verbosity
25
+ const condensed = condensePrompt(basePrompt);
26
+ return HAIKU_PROMPT_PREFIX + condensed + HAIKU_PROMPT_SUFFIX;
27
+ }
28
+ /**
29
+ * Condense a prompt for Haiku - remove unnecessary words
30
+ */
31
+ function condensePrompt(prompt) {
32
+ // Remove common filler phrases
33
+ const condensed = prompt
34
+ .replace(/please\s+/gi, '')
35
+ .replace(/could you\s+/gi, '')
36
+ .replace(/i would like you to\s+/gi, '')
37
+ .replace(/i need you to\s+/gi, '')
38
+ .replace(/can you\s+/gi, '')
39
+ .replace(/would you\s+/gi, '')
40
+ .replace(/i want you to\s+/gi, '')
41
+ .replace(/make sure to\s+/gi, '')
42
+ .replace(/be sure to\s+/gi, '')
43
+ .replace(/don't forget to\s+/gi, '')
44
+ .trim();
45
+ return condensed;
46
+ }
47
+ /**
48
+ * Haiku search template
49
+ */
50
+ export const HAIKU_SEARCH_TEMPLATE = `SEARCH: {QUERY}
51
+
52
+ RETURN:
53
+ - File paths (absolute)
54
+ - Line numbers
55
+ - Brief context
56
+
57
+ FORMAT:
58
+ \`path/file.ts:123\` - [description]
59
+ `;
60
+ /**
61
+ * Haiku file listing template
62
+ */
63
+ export const HAIKU_LIST_TEMPLATE = `LIST: {TARGET}
64
+
65
+ RETURN: File paths matching criteria.
66
+ `;
67
+ /**
68
+ * Haiku documentation template
69
+ */
70
+ export const HAIKU_DOC_TEMPLATE = `DOCUMENT: {TARGET}
71
+
72
+ REQUIREMENTS:
73
+ {REQUIREMENTS}
74
+
75
+ OUTPUT: Markdown documentation.
76
+ `;
77
+ /**
78
+ * Haiku simple task template
79
+ */
80
+ export const HAIKU_SIMPLE_TEMPLATE = `DO: {TASK}
81
+
82
+ CONTEXT: {CONTEXT}
83
+
84
+ RETURN: {EXPECTED_OUTPUT}
85
+ `;
86
+ /**
87
+ * Haiku delegation template - ultra-concise
88
+ */
89
+ export const HAIKU_DELEGATION_TEMPLATE = `TASK: {TASK}
90
+ TARGET: {TARGET}
91
+ OUTPUT: {OUTPUT_FORMAT}
92
+ `;
93
+ /**
94
+ * Extract key action from verbose prompt
95
+ */
96
+ export function extractKeyAction(prompt) {
97
+ // Try to extract the main verb phrase
98
+ const actionPatterns = [
99
+ /(?:find|search|list|show|get|locate)\s+(.+?)(?:\.|$)/i,
100
+ /(?:where|what)\s+(?:is|are)\s+(.+?)(?:\?|$)/i,
101
+ ];
102
+ for (const pattern of actionPatterns) {
103
+ const match = prompt.match(pattern);
104
+ if (match) {
105
+ return match[0].trim();
106
+ }
107
+ }
108
+ // If no pattern matches, return first sentence
109
+ const firstSentence = prompt.split(/[.!?]/)[0];
110
+ return firstSentence.trim();
111
+ }
112
+ /**
113
+ * Create minimal exploration prompt
114
+ */
115
+ export function createExplorePrompt(query) {
116
+ return `FIND: ${query}
117
+
118
+ TOOLS: Glob, Grep, Read
119
+
120
+ OUTPUT:
121
+ <files>
122
+ - /path/file.ts — [why relevant]
123
+ </files>
124
+
125
+ <answer>
126
+ [Direct answer]
127
+ </answer>`;
128
+ }
129
+ /**
130
+ * Create minimal documentation prompt
131
+ */
132
+ export function createDocPrompt(target, requirements) {
133
+ return `DOCUMENT: ${target}
134
+
135
+ INCLUDE:
136
+ ${requirements.map(r => `- ${r}`).join('\n')}
137
+
138
+ FORMAT: Markdown
139
+ VERIFY: Code examples work`;
140
+ }
141
+ //# sourceMappingURL=haiku.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"haiku.js","sourceRoot":"","sources":["../../../../src/features/model-routing/prompts/haiku.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,QAAQ,CAAC;AAE5C;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;;sCAEG,CAAC;AAEvC;;GAEG;AACH,MAAM,UAAU,mBAAmB,CAAC,UAAkB;IACpD,oDAAoD;IACpD,MAAM,SAAS,GAAG,cAAc,CAAC,UAAU,CAAC,CAAC;IAC7C,OAAO,mBAAmB,GAAG,SAAS,GAAG,mBAAmB,CAAC;AAC/D,CAAC;AAED;;GAEG;AACH,SAAS,cAAc,CAAC,MAAc;IACpC,+BAA+B;IAC/B,MAAM,SAAS,GAAG,MAAM;SACrB,OAAO,CAAC,aAAa,EAAE,EAAE,CAAC;SAC1B,OAAO,CAAC,gBAAgB,EAAE,EAAE,CAAC;SAC7B,OAAO,CAAC,0BAA0B,EAAE,EAAE,CAAC;SACvC,OAAO,CAAC,oBAAoB,EAAE,EAAE,CAAC;SACjC,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC;SAC3B,OAAO,CAAC,gBAAgB,EAAE,EAAE,CAAC;SAC7B,OAAO,CAAC,oBAAoB,EAAE,EAAE,CAAC;SACjC,OAAO,CAAC,mBAAmB,EAAE,EAAE,CAAC;SAChC,OAAO,CAAC,iBAAiB,EAAE,EAAE,CAAC;SAC9B,OAAO,CAAC,sBAAsB,EAAE,EAAE,CAAC;SACnC,IAAI,EAAE,CAAC;IAEV,OAAO,SAAS,CAAC;AACnB,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG;;;;;;;;;CASpC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;;;CAGlC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;;;;;;CAMjC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG;;;;;CAKpC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG;;;CAGxC,CAAC;AAEF;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,MAAc;IAC7C,sCAAsC;IACtC,MAAM,cAAc,GAAG;QACrB,uDAAuD;QACvD,8CAA8C;KAC/C,CAAC;IAEF,KAAK,MAAM,OAAO,IAAI,cAAc,EAAE,CAAC;QACrC,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACpC,IAAI,KAAK,EAAE,CAAC;YACV,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;QACzB,CAAC;IACH,CAAC;IAED,+CAA+C;IAC/C,MAAM,aAAa,GAAG,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;IAC/C,OAAO,aAAa,CAAC,IAAI,EAAE,CAAC;AAC9B,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,mBAAmB,CAAC,KAAa;IAC/C,OAAO,SAAS,KAAK;;;;;;;;;;;UAWb,CAAC;AACX,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,eAAe,CAAC,MAAc,EAAE,YAAsB;IACpE,OAAO,aAAa,MAAM;;;EAG1B,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;;;2BAGjB,CAAC;AAC5B,CAAC"}
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Tiered Prompt Adaptations
3
+ *
4
+ * Provides model-specific prompt adaptations for Opus, Sonnet, and Haiku.
5
+ * Each tier has prompts optimized for that model's capabilities.
6
+ */
7
+ import type { ComplexityTier, PromptAdaptationStrategy } from '../types.js';
8
+ export * from './opus.js';
9
+ export * from './sonnet.js';
10
+ export * from './haiku.js';
11
+ /**
12
+ * Adapt a prompt for a specific complexity tier
13
+ */
14
+ export declare function adaptPromptForTier(prompt: string, tier: ComplexityTier): string;
15
+ /**
16
+ * Get the prompt strategy for a tier
17
+ */
18
+ export declare function getPromptStrategy(tier: ComplexityTier): PromptAdaptationStrategy;
19
+ /**
20
+ * Get prompt prefix for a tier
21
+ */
22
+ export declare function getPromptPrefix(tier: ComplexityTier): string;
23
+ /**
24
+ * Get prompt suffix for a tier
25
+ */
26
+ export declare function getPromptSuffix(tier: ComplexityTier): string;
27
+ /**
28
+ * Create a delegation prompt with tier-appropriate framing
29
+ */
30
+ export declare function createDelegationPrompt(tier: ComplexityTier, task: string, context: {
31
+ deliverables?: string;
32
+ successCriteria?: string;
33
+ context?: string;
34
+ mustDo?: string[];
35
+ mustNotDo?: string[];
36
+ }): string;
37
+ /**
38
+ * Tier-specific instructions for common task types
39
+ */
40
+ export declare const TIER_TASK_INSTRUCTIONS: Record<ComplexityTier, Record<string, string>>;
41
+ /**
42
+ * Get task-specific instructions for a tier
43
+ */
44
+ export declare function getTaskInstructions(tier: ComplexityTier, taskType: string): string;
45
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/model-routing/prompts/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAQ5E,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAE3B;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,GAAG,MAAM,CAS/E;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,cAAc,GAAG,wBAAwB,CAEhF;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,cAAc,GAAG,MAAM,CAS5D;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,cAAc,GAAG,MAAM,CAS5D;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,cAAc,EACpB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE;IACP,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB,GACA,MAAM,CA2BR;AAED;;GAEG;AACH,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAsBjF,CAAC;AAEF;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAElF"}
@@ -0,0 +1,116 @@
1
+ /**
2
+ * Tiered Prompt Adaptations
3
+ *
4
+ * Provides model-specific prompt adaptations for Opus, Sonnet, and Haiku.
5
+ * Each tier has prompts optimized for that model's capabilities.
6
+ */
7
+ import { TIER_PROMPT_STRATEGIES } from '../types.js';
8
+ import { adaptPromptForOpus, OPUS_PROMPT_PREFIX, OPUS_PROMPT_SUFFIX } from './opus.js';
9
+ import { adaptPromptForSonnet, SONNET_PROMPT_PREFIX, SONNET_PROMPT_SUFFIX } from './sonnet.js';
10
+ import { adaptPromptForHaiku, HAIKU_PROMPT_PREFIX, HAIKU_PROMPT_SUFFIX } from './haiku.js';
11
+ // Re-export tier-specific modules
12
+ export * from './opus.js';
13
+ export * from './sonnet.js';
14
+ export * from './haiku.js';
15
+ /**
16
+ * Adapt a prompt for a specific complexity tier
17
+ */
18
+ export function adaptPromptForTier(prompt, tier) {
19
+ switch (tier) {
20
+ case 'HIGH':
21
+ return adaptPromptForOpus(prompt);
22
+ case 'MEDIUM':
23
+ return adaptPromptForSonnet(prompt);
24
+ case 'LOW':
25
+ return adaptPromptForHaiku(prompt);
26
+ }
27
+ }
28
+ /**
29
+ * Get the prompt strategy for a tier
30
+ */
31
+ export function getPromptStrategy(tier) {
32
+ return TIER_PROMPT_STRATEGIES[tier];
33
+ }
34
+ /**
35
+ * Get prompt prefix for a tier
36
+ */
37
+ export function getPromptPrefix(tier) {
38
+ switch (tier) {
39
+ case 'HIGH':
40
+ return OPUS_PROMPT_PREFIX;
41
+ case 'MEDIUM':
42
+ return SONNET_PROMPT_PREFIX;
43
+ case 'LOW':
44
+ return HAIKU_PROMPT_PREFIX;
45
+ }
46
+ }
47
+ /**
48
+ * Get prompt suffix for a tier
49
+ */
50
+ export function getPromptSuffix(tier) {
51
+ switch (tier) {
52
+ case 'HIGH':
53
+ return OPUS_PROMPT_SUFFIX;
54
+ case 'MEDIUM':
55
+ return SONNET_PROMPT_SUFFIX;
56
+ case 'LOW':
57
+ return HAIKU_PROMPT_SUFFIX;
58
+ }
59
+ }
60
+ /**
61
+ * Create a delegation prompt with tier-appropriate framing
62
+ */
63
+ export function createDelegationPrompt(tier, task, context) {
64
+ const prefix = getPromptPrefix(tier);
65
+ const suffix = getPromptSuffix(tier);
66
+ let body = `### Task\n${task}\n`;
67
+ if (context.deliverables) {
68
+ body += `\n### Deliverables\n${context.deliverables}\n`;
69
+ }
70
+ if (context.successCriteria) {
71
+ body += `\n### Success Criteria\n${context.successCriteria}\n`;
72
+ }
73
+ if (context.context) {
74
+ body += `\n### Context\n${context.context}\n`;
75
+ }
76
+ if (context.mustDo?.length) {
77
+ body += `\n### MUST DO\n${context.mustDo.map(m => `- ${m}`).join('\n')}\n`;
78
+ }
79
+ if (context.mustNotDo?.length) {
80
+ body += `\n### MUST NOT DO\n${context.mustNotDo.map(m => `- ${m}`).join('\n')}\n`;
81
+ }
82
+ return prefix + body + suffix;
83
+ }
84
+ /**
85
+ * Tier-specific instructions for common task types
86
+ */
87
+ export const TIER_TASK_INSTRUCTIONS = {
88
+ HIGH: {
89
+ search: 'Perform thorough multi-angle search with analysis of findings.',
90
+ implement: 'Design solution with tradeoff analysis before implementing.',
91
+ debug: 'Deep root cause analysis with hypothesis testing.',
92
+ review: 'Comprehensive evaluation against multiple criteria.',
93
+ plan: 'Strategic planning with risk analysis and alternatives.',
94
+ },
95
+ MEDIUM: {
96
+ search: 'Search efficiently, return structured results.',
97
+ implement: 'Follow existing patterns, implement cleanly.',
98
+ debug: 'Systematic debugging, fix the issue.',
99
+ review: 'Check against criteria, provide feedback.',
100
+ plan: 'Create actionable plan with clear steps.',
101
+ },
102
+ LOW: {
103
+ search: 'Find and return paths.',
104
+ implement: 'Make the change.',
105
+ debug: 'Fix the bug.',
106
+ review: 'Check it.',
107
+ plan: 'List steps.',
108
+ },
109
+ };
110
+ /**
111
+ * Get task-specific instructions for a tier
112
+ */
113
+ export function getTaskInstructions(tier, taskType) {
114
+ return TIER_TASK_INSTRUCTIONS[tier][taskType] ?? TIER_TASK_INSTRUCTIONS[tier].implement;
115
+ }
116
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/features/model-routing/prompts/index.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Opus-Optimized Prompt Adaptations
3
+ *
4
+ * Opus (HIGH tier) prompts are designed for:
5
+ * - Deep, nuanced reasoning
6
+ * - Complex multi-step analysis
7
+ * - Strategic thinking and planning
8
+ * - Handling ambiguity with sophisticated judgment
9
+ */
10
+ /**
11
+ * Opus prompt prefix for enhanced reasoning
12
+ */
13
+ export declare const OPUS_PROMPT_PREFIX = "<thinking_mode>deep</thinking_mode>\n\nYou are operating at the highest capability tier. Apply sophisticated reasoning:\n\n## Reasoning Guidelines\n- Consider multiple perspectives and edge cases\n- Analyze second and third-order effects\n- Weigh tradeoffs explicitly with structured analysis\n- Surface assumptions and validate them\n- Provide nuanced, context-aware recommendations\n\n## Quality Standards\n- Thorough analysis backed by evidence\n- Clear articulation of uncertainty where present\n- Strategic thinking with long-term implications\n- Proactive identification of risks and mitigations\n\n";
14
+ /**
15
+ * Opus prompt suffix for verification
16
+ */
17
+ export declare const OPUS_PROMPT_SUFFIX = "\n\n## Before Concluding\n- Have you considered edge cases?\n- Are there second-order effects you haven't addressed?\n- Have you validated your assumptions?\n- Is your recommendation backed by the evidence gathered?\n";
18
+ /**
19
+ * Adapt a base prompt for Opus execution
20
+ */
21
+ export declare function adaptPromptForOpus(basePrompt: string): string;
22
+ /**
23
+ * Opus-specific delegation template
24
+ */
25
+ export declare const OPUS_DELEGATION_TEMPLATE = "## HIGH-TIER TASK DELEGATION\n\n**Model**: Claude Opus (deep reasoning)\n**Expectations**: Thorough analysis, strategic thinking, edge case handling\n\n### Task\n{TASK}\n\n### Required Analysis Depth\n- Consider multiple solution approaches\n- Evaluate tradeoffs explicitly\n- Identify potential risks and mitigations\n- Provide clear, actionable recommendations with reasoning\n\n### Deliverables\n{DELIVERABLES}\n\n### Success Criteria\n{SUCCESS_CRITERIA}\n\n### Context\n{CONTEXT}\n\n---\nApply your full reasoning capabilities. Quality over speed.\n";
26
+ /**
27
+ * Opus debugging template
28
+ */
29
+ export declare const OPUS_DEBUG_TEMPLATE = "## DEEP DEBUGGING ANALYSIS\n\nYou are the Oracle - the architectural advisor for complex debugging.\n\n### Problem Statement\n{PROBLEM}\n\n### Analysis Framework\n1. **Symptom Mapping**: What is observed vs. what is expected?\n2. **Hypothesis Generation**: What could cause this discrepancy?\n3. **Evidence Gathering**: What data supports/refutes each hypothesis?\n4. **Root Cause Identification**: What is the fundamental issue?\n5. **Solution Design**: How to fix it without introducing new problems?\n\n### Required Output\n- Root cause with supporting evidence\n- Impact analysis (what else might be affected)\n- Recommended fix with implementation details\n- Verification strategy to confirm the fix\n\n### Files to Examine\n{FILES}\n\n### Previous Attempts\n{PREVIOUS_ATTEMPTS}\n\n---\nBe thorough. The goal is to solve this once, correctly.\n";
30
+ /**
31
+ * Opus architecture review template
32
+ */
33
+ export declare const OPUS_ARCHITECTURE_TEMPLATE = "## ARCHITECTURAL ANALYSIS\n\nYou are providing strategic architectural guidance.\n\n### Request\n{REQUEST}\n\n### Analysis Dimensions\n1. **Current State**: What exists today?\n2. **Desired State**: What should it become?\n3. **Gap Analysis**: What needs to change?\n4. **Migration Path**: How do we get there safely?\n5. **Risk Assessment**: What could go wrong?\n\n### Required Output Structure\n```\n## Summary\n[2-3 sentence overview]\n\n## Current Architecture\n[Description with file references]\n\n## Proposed Changes\n[Detailed recommendations]\n\n## Tradeoffs\n| Option | Pros | Cons | Effort |\n|--------|------|------|--------|\n| A | ... | ... | ... |\n| B | ... | ... | ... |\n\n## Implementation Plan\n[Ordered steps with dependencies]\n\n## Risks & Mitigations\n[Specific risks and how to handle them]\n```\n\n### Codebase Context\n{CONTEXT}\n";
34
+ //# sourceMappingURL=opus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"opus.d.ts","sourceRoot":"","sources":["../../../../src/features/model-routing/prompts/opus.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;GAEG;AACH,eAAO,MAAM,kBAAkB,kmBAiB9B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,8NAO9B,CAAC;AAEF;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAE7D;AAED;;GAEG;AACH,eAAO,MAAM,wBAAwB,8iBAyBpC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,s1BA4B/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,0BAA0B,m3BAwCtC,CAAC"}
@@ -0,0 +1,153 @@
1
+ /**
2
+ * Opus-Optimized Prompt Adaptations
3
+ *
4
+ * Opus (HIGH tier) prompts are designed for:
5
+ * - Deep, nuanced reasoning
6
+ * - Complex multi-step analysis
7
+ * - Strategic thinking and planning
8
+ * - Handling ambiguity with sophisticated judgment
9
+ */
10
+ /**
11
+ * Opus prompt prefix for enhanced reasoning
12
+ */
13
+ export const OPUS_PROMPT_PREFIX = `<thinking_mode>deep</thinking_mode>
14
+
15
+ You are operating at the highest capability tier. Apply sophisticated reasoning:
16
+
17
+ ## Reasoning Guidelines
18
+ - Consider multiple perspectives and edge cases
19
+ - Analyze second and third-order effects
20
+ - Weigh tradeoffs explicitly with structured analysis
21
+ - Surface assumptions and validate them
22
+ - Provide nuanced, context-aware recommendations
23
+
24
+ ## Quality Standards
25
+ - Thorough analysis backed by evidence
26
+ - Clear articulation of uncertainty where present
27
+ - Strategic thinking with long-term implications
28
+ - Proactive identification of risks and mitigations
29
+
30
+ `;
31
+ /**
32
+ * Opus prompt suffix for verification
33
+ */
34
+ export const OPUS_PROMPT_SUFFIX = `
35
+
36
+ ## Before Concluding
37
+ - Have you considered edge cases?
38
+ - Are there second-order effects you haven't addressed?
39
+ - Have you validated your assumptions?
40
+ - Is your recommendation backed by the evidence gathered?
41
+ `;
42
+ /**
43
+ * Adapt a base prompt for Opus execution
44
+ */
45
+ export function adaptPromptForOpus(basePrompt) {
46
+ return OPUS_PROMPT_PREFIX + basePrompt + OPUS_PROMPT_SUFFIX;
47
+ }
48
+ /**
49
+ * Opus-specific delegation template
50
+ */
51
+ export const OPUS_DELEGATION_TEMPLATE = `## HIGH-TIER TASK DELEGATION
52
+
53
+ **Model**: Claude Opus (deep reasoning)
54
+ **Expectations**: Thorough analysis, strategic thinking, edge case handling
55
+
56
+ ### Task
57
+ {TASK}
58
+
59
+ ### Required Analysis Depth
60
+ - Consider multiple solution approaches
61
+ - Evaluate tradeoffs explicitly
62
+ - Identify potential risks and mitigations
63
+ - Provide clear, actionable recommendations with reasoning
64
+
65
+ ### Deliverables
66
+ {DELIVERABLES}
67
+
68
+ ### Success Criteria
69
+ {SUCCESS_CRITERIA}
70
+
71
+ ### Context
72
+ {CONTEXT}
73
+
74
+ ---
75
+ Apply your full reasoning capabilities. Quality over speed.
76
+ `;
77
+ /**
78
+ * Opus debugging template
79
+ */
80
+ export const OPUS_DEBUG_TEMPLATE = `## DEEP DEBUGGING ANALYSIS
81
+
82
+ You are the Oracle - the architectural advisor for complex debugging.
83
+
84
+ ### Problem Statement
85
+ {PROBLEM}
86
+
87
+ ### Analysis Framework
88
+ 1. **Symptom Mapping**: What is observed vs. what is expected?
89
+ 2. **Hypothesis Generation**: What could cause this discrepancy?
90
+ 3. **Evidence Gathering**: What data supports/refutes each hypothesis?
91
+ 4. **Root Cause Identification**: What is the fundamental issue?
92
+ 5. **Solution Design**: How to fix it without introducing new problems?
93
+
94
+ ### Required Output
95
+ - Root cause with supporting evidence
96
+ - Impact analysis (what else might be affected)
97
+ - Recommended fix with implementation details
98
+ - Verification strategy to confirm the fix
99
+
100
+ ### Files to Examine
101
+ {FILES}
102
+
103
+ ### Previous Attempts
104
+ {PREVIOUS_ATTEMPTS}
105
+
106
+ ---
107
+ Be thorough. The goal is to solve this once, correctly.
108
+ `;
109
+ /**
110
+ * Opus architecture review template
111
+ */
112
+ export const OPUS_ARCHITECTURE_TEMPLATE = `## ARCHITECTURAL ANALYSIS
113
+
114
+ You are providing strategic architectural guidance.
115
+
116
+ ### Request
117
+ {REQUEST}
118
+
119
+ ### Analysis Dimensions
120
+ 1. **Current State**: What exists today?
121
+ 2. **Desired State**: What should it become?
122
+ 3. **Gap Analysis**: What needs to change?
123
+ 4. **Migration Path**: How do we get there safely?
124
+ 5. **Risk Assessment**: What could go wrong?
125
+
126
+ ### Required Output Structure
127
+ \`\`\`
128
+ ## Summary
129
+ [2-3 sentence overview]
130
+
131
+ ## Current Architecture
132
+ [Description with file references]
133
+
134
+ ## Proposed Changes
135
+ [Detailed recommendations]
136
+
137
+ ## Tradeoffs
138
+ | Option | Pros | Cons | Effort |
139
+ |--------|------|------|--------|
140
+ | A | ... | ... | ... |
141
+ | B | ... | ... | ... |
142
+
143
+ ## Implementation Plan
144
+ [Ordered steps with dependencies]
145
+
146
+ ## Risks & Mitigations
147
+ [Specific risks and how to handle them]
148
+ \`\`\`
149
+
150
+ ### Codebase Context
151
+ {CONTEXT}
152
+ `;
153
+ //# sourceMappingURL=opus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"opus.js","sourceRoot":"","sources":["../../../../src/features/model-routing/prompts/opus.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;;;;;;;;;;;;;;;;;CAiBjC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;;;;;;;CAOjC,CAAC;AAEF;;GAEG;AACH,MAAM,UAAU,kBAAkB,CAAC,UAAkB;IACnD,OAAO,kBAAkB,GAAG,UAAU,GAAG,kBAAkB,CAAC;AAC9D,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;CAyBvC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BlC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwCzC,CAAC"}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Sonnet-Optimized Prompt Adaptations
3
+ *
4
+ * Sonnet (MEDIUM tier) prompts are designed for:
5
+ * - Balanced reasoning with good speed
6
+ * - Focused task execution
7
+ * - Clear deliverables with structured output
8
+ * - Efficient multi-step workflows
9
+ */
10
+ /**
11
+ * Sonnet prompt prefix for focused execution
12
+ */
13
+ export declare const SONNET_PROMPT_PREFIX = "## Task Execution Mode\n\nExecute this task efficiently with clear deliverables:\n\n";
14
+ /**
15
+ * Sonnet prompt suffix for verification
16
+ */
17
+ export declare const SONNET_PROMPT_SUFFIX = "\n\n---\nFocus on delivering the requested outcome. Be thorough but efficient.\n";
18
+ /**
19
+ * Adapt a base prompt for Sonnet execution
20
+ */
21
+ export declare function adaptPromptForSonnet(basePrompt: string): string;
22
+ /**
23
+ * Sonnet delegation template
24
+ */
25
+ export declare const SONNET_DELEGATION_TEMPLATE = "## TASK DELEGATION\n\n**Tier**: MEDIUM (balanced)\n\n### Task\n{TASK}\n\n### Expected Outcome\n{DELIVERABLES}\n\n### Success Criteria\n{SUCCESS_CRITERIA}\n\n### Context\n{CONTEXT}\n\n### Required Tools\n{TOOLS}\n\n### Constraints\n- MUST DO: {MUST_DO}\n- MUST NOT DO: {MUST_NOT}\n\n---\nExecute efficiently. Report completion status.\n";
26
+ /**
27
+ * Sonnet implementation template
28
+ */
29
+ export declare const SONNET_IMPLEMENTATION_TEMPLATE = "## IMPLEMENTATION TASK\n\n### What to Build\n{TASK}\n\n### Acceptance Criteria\n{CRITERIA}\n\n### Approach\n1. Read relevant files to understand patterns\n2. Plan changes before making them\n3. Implement following existing conventions\n4. Verify changes work correctly\n\n### Files to Modify\n{FILES}\n\n### Existing Patterns to Follow\n{PATTERNS}\n\n---\nMatch existing code style. Test your changes.\n";
30
+ /**
31
+ * Sonnet research template
32
+ */
33
+ export declare const SONNET_RESEARCH_TEMPLATE = "## RESEARCH TASK\n\n### Query\n{QUERY}\n\n### Required Information\n{REQUIREMENTS}\n\n### Sources to Search\n{SOURCES}\n\n### Output Format\n```\n## Query: [restated query]\n\n## Findings\n### [Source 1]\n[Key information]\n**Reference**: [URL/file path]\n\n### [Source 2]\n[Key information]\n**Reference**: [URL/file path]\n\n## Summary\n[Synthesized answer]\n\n## Recommendations\n[Actionable next steps]\n```\n\n---\nCite sources. Provide actionable information.\n";
34
+ /**
35
+ * Sonnet frontend template
36
+ */
37
+ export declare const SONNET_FRONTEND_TEMPLATE = "## FRONTEND TASK\n\n### Change Required\n{TASK}\n\n### Visual Expectations\n{VISUAL_REQUIREMENTS}\n\n### Technical Constraints\n- Framework: {FRAMEWORK}\n- Styling: {STYLING_APPROACH}\n- Components: {COMPONENT_PATTERNS}\n\n### Existing Patterns\n{PATTERNS}\n\n### Files to Modify\n{FILES}\n\n---\nMatch the existing aesthetic. Test in browser if applicable.\n";
38
+ //# sourceMappingURL=sonnet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sonnet.d.ts","sourceRoot":"","sources":["../../../../src/features/model-routing/prompts/sonnet.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;GAEG;AACH,eAAO,MAAM,oBAAoB,yFAIhC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,qFAIhC,CAAC;AAEF;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAE/D;AAED;;GAEG;AACH,eAAO,MAAM,0BAA0B,oVAyBtC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,8BAA8B,wZAsB1C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB,wdAiCpC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB,4WAqBpC,CAAC"}