@morphllm/morphsdk 0.2.199 → 0.2.201

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 (377) hide show
  1. package/dist/ai-sdk/index.cjs +0 -1
  2. package/dist/ai-sdk/index.js +0 -1
  3. package/dist/{chunk-HYRHI2UL.js → chunk-2PPYWRMZ.js} +0 -1
  4. package/dist/{chunk-IA5K2HTC.js → chunk-44OIEPIO.js} +1 -2
  5. package/dist/{chunk-FBRNUWEB.js → chunk-4OUGA3KS.js} +0 -1
  6. package/dist/{chunk-CEXBKXWU.js → chunk-5NSYDT36.js} +3 -4
  7. package/dist/{chunk-G2RSY56Q.js → chunk-6TZCVTW5.js} +0 -1
  8. package/dist/{chunk-F3NCFNUX.js → chunk-6WP7EA4F.js} +0 -1
  9. package/dist/{chunk-5KQ2WRBU.js → chunk-B376VMIH.js} +2 -3
  10. package/dist/{chunk-OPNTDMHH.js → chunk-BZXOAC2R.js} +6 -7
  11. package/dist/{chunk-YSFEKIYQ.js → chunk-DBNSOYQ3.js} +2 -3
  12. package/dist/{chunk-PW6K6OJL.js → chunk-EQAWWVKV.js} +1 -2
  13. package/dist/{chunk-ZZ25FZG2.js → chunk-ETBRAKVV.js} +0 -1
  14. package/dist/chunk-FBOZIVVQ.js +0 -0
  15. package/dist/{chunk-GKRPR5PZ.js → chunk-FVT4PU4I.js} +18 -70
  16. package/dist/{chunk-MRMBFJR2.js → chunk-HDP4QAZL.js} +0 -1
  17. package/dist/{chunk-TPP2UGQP.js → chunk-I26FQELI.js} +0 -1
  18. package/dist/{chunk-BTMMUG3E.js → chunk-ILY5N5NJ.js} +2 -3
  19. package/dist/{chunk-7UU4NF4G.js → chunk-JBAY3PRV.js} +4 -5
  20. package/dist/chunk-LDM7RNNN.js +0 -0
  21. package/dist/{chunk-ZHB57ORD.js → chunk-LISSWRUD.js} +8 -9
  22. package/dist/{chunk-CCJK3HTG.js → chunk-M34E2AMK.js} +0 -1
  23. package/dist/{chunk-WDBYAXZ5.js → chunk-M6AVXUM4.js} +2 -3
  24. package/dist/{chunk-QRXG5CAZ.js → chunk-MF56KEI4.js} +0 -1
  25. package/dist/{chunk-PZ5AY32C.js → chunk-MLKGABMK.js} +0 -1
  26. package/dist/{chunk-5TOJD2C5.js → chunk-NRG6QX3L.js} +0 -1
  27. package/dist/{chunk-GTV27THY.js → chunk-NWGRW4V7.js} +1 -2
  28. package/dist/{chunk-63VHBANJ.js → chunk-OPDWMD4Q.js} +0 -1
  29. package/dist/{chunk-O7LJEVZO.js → chunk-OVLUL5AC.js} +5 -6
  30. package/dist/{chunk-W37OFBSG.js → chunk-P2KW2O5R.js} +2 -3
  31. package/dist/{chunk-63WE2C5R.js → chunk-PA3UTI4A.js} +0 -1
  32. package/dist/{chunk-Q3NH3NPD.js → chunk-RJXAXR7Q.js} +5 -6
  33. package/dist/{chunk-A4D2CIIT.js → chunk-RYVW7RUM.js} +1 -2
  34. package/dist/{chunk-ULHHMZRL.js → chunk-RZOJ4GSY.js} +4 -5
  35. package/dist/{chunk-UT3NQLCF.js → chunk-SU7AAS3O.js} +2 -3
  36. package/dist/{chunk-DP2PT36G.js → chunk-TS3OJ4LA.js} +1 -2
  37. package/dist/{chunk-BLCCGRKT.js → chunk-TZC3EOZS.js} +5 -6
  38. package/dist/{chunk-Q6QCHAMD.js → chunk-UAPK3AIJ.js} +0 -1
  39. package/dist/{chunk-JOC3ZI56.js → chunk-UZCXOOZO.js} +2 -38
  40. package/dist/{chunk-PKJ7ODTG.js → chunk-VOXUA5ZH.js} +4 -5
  41. package/dist/{chunk-KXEPBLVD.js → chunk-WBTXEJOC.js} +12 -13
  42. package/dist/{chunk-YPKNMYD4.js → chunk-ZSHVXDA2.js} +0 -1
  43. package/dist/{client-CGW0Cevz.d.ts → client-BWhi-vSj.d.ts} +4 -65
  44. package/dist/client.cjs +45 -413
  45. package/dist/client.d.ts +2 -4
  46. package/dist/client.js +32 -38
  47. package/dist/core/client.cjs +2 -38
  48. package/dist/core/client.js +6 -7
  49. package/dist/core/error.cjs +2 -38
  50. package/dist/core/error.js +4 -5
  51. package/dist/core/index.cjs +2 -38
  52. package/dist/core/index.js +8 -9
  53. package/dist/core/resource.cjs +0 -1
  54. package/dist/core/resource.js +2 -3
  55. package/dist/edge.cjs +2 -38
  56. package/dist/edge.js +10 -11
  57. package/dist/index.cjs +48 -418
  58. package/dist/index.d.ts +2 -4
  59. package/dist/index.js +39 -48
  60. package/dist/modelrouter/core.cjs +2 -38
  61. package/dist/modelrouter/core.js +8 -9
  62. package/dist/modelrouter/index.cjs +2 -38
  63. package/dist/modelrouter/index.js +8 -9
  64. package/dist/modelrouter/types.cjs +0 -1
  65. package/dist/modelrouter/types.js +0 -1
  66. package/dist/subagents/anthropic.cjs +2 -38
  67. package/dist/subagents/anthropic.d.ts +1 -1
  68. package/dist/subagents/anthropic.js +19 -20
  69. package/dist/subagents/index.cjs +0 -1
  70. package/dist/subagents/index.d.ts +1 -1
  71. package/dist/subagents/index.js +2 -3
  72. package/dist/subagents/prompts.cjs +0 -1
  73. package/dist/subagents/prompts.d.ts +1 -1
  74. package/dist/subagents/prompts.js +2 -3
  75. package/dist/subagents/types.cjs +0 -1
  76. package/dist/subagents/types.d.ts +1 -1
  77. package/dist/subagents/types.js +0 -1
  78. package/dist/subagents/vercel.cjs +2 -38
  79. package/dist/subagents/vercel.d.ts +1 -1
  80. package/dist/subagents/vercel.js +19 -20
  81. package/dist/tools/compact/core.cjs +2 -38
  82. package/dist/tools/compact/core.js +8 -9
  83. package/dist/tools/compact/index.cjs +2 -38
  84. package/dist/tools/compact/index.js +9 -10
  85. package/dist/tools/compact/types.cjs +0 -1
  86. package/dist/tools/compact/types.js +0 -1
  87. package/dist/tools/fastapply/anthropic.cjs +2 -38
  88. package/dist/tools/fastapply/anthropic.js +11 -12
  89. package/dist/tools/fastapply/apply.cjs +2 -38
  90. package/dist/tools/fastapply/apply.js +4 -5
  91. package/dist/tools/fastapply/core.cjs +2 -38
  92. package/dist/tools/fastapply/core.js +9 -10
  93. package/dist/tools/fastapply/index.cjs +2 -38
  94. package/dist/tools/fastapply/index.js +17 -18
  95. package/dist/tools/fastapply/openai.cjs +2 -38
  96. package/dist/tools/fastapply/openai.js +11 -12
  97. package/dist/tools/fastapply/prompts.cjs +0 -1
  98. package/dist/tools/fastapply/prompts.js +2 -3
  99. package/dist/tools/fastapply/types.cjs +0 -1
  100. package/dist/tools/fastapply/types.js +0 -1
  101. package/dist/tools/fastapply/vercel.cjs +2 -38
  102. package/dist/tools/fastapply/vercel.js +11 -12
  103. package/dist/tools/index.cjs +2 -38
  104. package/dist/tools/index.js +17 -18
  105. package/dist/tools/utils/resilience.cjs +2 -38
  106. package/dist/tools/utils/resilience.js +3 -4
  107. package/dist/tools/warp_grep/agent/config.cjs +0 -1
  108. package/dist/tools/warp_grep/agent/config.js +2 -3
  109. package/dist/tools/warp_grep/agent/formatter.cjs +0 -1
  110. package/dist/tools/warp_grep/agent/formatter.js +2 -3
  111. package/dist/tools/warp_grep/agent/parser.cjs +0 -1
  112. package/dist/tools/warp_grep/agent/parser.js +2 -3
  113. package/dist/tools/warp_grep/agent/runner.cjs +2 -38
  114. package/dist/tools/warp_grep/agent/runner.js +7 -8
  115. package/dist/tools/warp_grep/agent/types.cjs +0 -1
  116. package/dist/tools/warp_grep/agent/types.js +0 -1
  117. package/dist/tools/warp_grep/anthropic.cjs +2 -38
  118. package/dist/tools/warp_grep/anthropic.d.ts +1 -1
  119. package/dist/tools/warp_grep/anthropic.js +19 -20
  120. package/dist/tools/warp_grep/client.cjs +2 -38
  121. package/dist/tools/warp_grep/client.d.ts +1 -1
  122. package/dist/tools/warp_grep/client.js +17 -18
  123. package/dist/tools/warp_grep/gemini.cjs +2 -38
  124. package/dist/tools/warp_grep/gemini.d.ts +1 -1
  125. package/dist/tools/warp_grep/gemini.js +18 -19
  126. package/dist/tools/warp_grep/harness.cjs +0 -1
  127. package/dist/tools/warp_grep/harness.js +14 -15
  128. package/dist/tools/warp_grep/index.cjs +2 -38
  129. package/dist/tools/warp_grep/index.d.ts +1 -1
  130. package/dist/tools/warp_grep/index.js +27 -28
  131. package/dist/tools/warp_grep/openai.cjs +2 -38
  132. package/dist/tools/warp_grep/openai.d.ts +1 -1
  133. package/dist/tools/warp_grep/openai.js +19 -20
  134. package/dist/tools/warp_grep/providers/code_storage_http.cjs +0 -1
  135. package/dist/tools/warp_grep/providers/code_storage_http.d.ts +1 -1
  136. package/dist/tools/warp_grep/providers/code_storage_http.js +2 -3
  137. package/dist/tools/warp_grep/providers/local.cjs +0 -1
  138. package/dist/tools/warp_grep/providers/local.js +6 -7
  139. package/dist/tools/warp_grep/providers/remote.cjs +0 -1
  140. package/dist/tools/warp_grep/providers/remote.d.ts +1 -1
  141. package/dist/tools/warp_grep/providers/remote.js +3 -4
  142. package/dist/tools/warp_grep/providers/types.cjs +0 -1
  143. package/dist/tools/warp_grep/providers/types.js +0 -1
  144. package/dist/tools/warp_grep/utils/files.cjs +0 -1
  145. package/dist/tools/warp_grep/utils/files.js +2 -3
  146. package/dist/tools/warp_grep/utils/github.cjs +0 -1
  147. package/dist/tools/warp_grep/utils/github.js +2 -3
  148. package/dist/tools/warp_grep/utils/paths.cjs +0 -1
  149. package/dist/tools/warp_grep/utils/paths.js +2 -3
  150. package/dist/tools/warp_grep/utils/ripgrep.cjs +0 -1
  151. package/dist/tools/warp_grep/utils/ripgrep.js +2 -3
  152. package/dist/tools/warp_grep/vercel.cjs +2 -38
  153. package/dist/tools/warp_grep/vercel.d.ts +1 -1
  154. package/dist/tools/warp_grep/vercel.js +19 -20
  155. package/dist/{types-qwD753FR.d.ts → types-DxZLPogx.d.ts} +1 -1
  156. package/dist/version.cjs +2 -38
  157. package/dist/version.js +2 -3
  158. package/package.json +2 -37
  159. package/dist/ai-sdk/index.cjs.map +0 -1
  160. package/dist/ai-sdk/index.js.map +0 -1
  161. package/dist/chunk-5KQ2WRBU.js.map +0 -1
  162. package/dist/chunk-5TOJD2C5.js.map +0 -1
  163. package/dist/chunk-63VHBANJ.js.map +0 -1
  164. package/dist/chunk-63WE2C5R.js.map +0 -1
  165. package/dist/chunk-7UU4NF4G.js.map +0 -1
  166. package/dist/chunk-A4D2CIIT.js.map +0 -1
  167. package/dist/chunk-BLCCGRKT.js.map +0 -1
  168. package/dist/chunk-BTMMUG3E.js.map +0 -1
  169. package/dist/chunk-CCJK3HTG.js.map +0 -1
  170. package/dist/chunk-CEXBKXWU.js.map +0 -1
  171. package/dist/chunk-DP2PT36G.js.map +0 -1
  172. package/dist/chunk-EMURAU6J.js +0 -148
  173. package/dist/chunk-EMURAU6J.js.map +0 -1
  174. package/dist/chunk-F3NCFNUX.js.map +0 -1
  175. package/dist/chunk-FBRNUWEB.js.map +0 -1
  176. package/dist/chunk-G2RSY56Q.js.map +0 -1
  177. package/dist/chunk-GKRPR5PZ.js.map +0 -1
  178. package/dist/chunk-GTV27THY.js.map +0 -1
  179. package/dist/chunk-HYRHI2UL.js.map +0 -1
  180. package/dist/chunk-IA5K2HTC.js.map +0 -1
  181. package/dist/chunk-IDMKQWQG.js +0 -214
  182. package/dist/chunk-IDMKQWQG.js.map +0 -1
  183. package/dist/chunk-JOC3ZI56.js.map +0 -1
  184. package/dist/chunk-K2JR2NFQ.js +0 -128
  185. package/dist/chunk-K2JR2NFQ.js.map +0 -1
  186. package/dist/chunk-KXEPBLVD.js.map +0 -1
  187. package/dist/chunk-MEZTHMB2.js +0 -83
  188. package/dist/chunk-MEZTHMB2.js.map +0 -1
  189. package/dist/chunk-MRMBFJR2.js.map +0 -1
  190. package/dist/chunk-O7LJEVZO.js.map +0 -1
  191. package/dist/chunk-OPNTDMHH.js.map +0 -1
  192. package/dist/chunk-PKJ7ODTG.js.map +0 -1
  193. package/dist/chunk-PW6K6OJL.js.map +0 -1
  194. package/dist/chunk-PZ5AY32C.js.map +0 -1
  195. package/dist/chunk-Q3NH3NPD.js.map +0 -1
  196. package/dist/chunk-Q6QCHAMD.js.map +0 -1
  197. package/dist/chunk-QRXG5CAZ.js.map +0 -1
  198. package/dist/chunk-RL3ZTXT3.js +0 -58
  199. package/dist/chunk-RL3ZTXT3.js.map +0 -1
  200. package/dist/chunk-TLXVGE4R.js +0 -42
  201. package/dist/chunk-TLXVGE4R.js.map +0 -1
  202. package/dist/chunk-TPP2UGQP.js.map +0 -1
  203. package/dist/chunk-ULHHMZRL.js.map +0 -1
  204. package/dist/chunk-UT3NQLCF.js.map +0 -1
  205. package/dist/chunk-VS5F2ORN.js +0 -97
  206. package/dist/chunk-VS5F2ORN.js.map +0 -1
  207. package/dist/chunk-VZ7BOH2K.js +0 -1
  208. package/dist/chunk-VZ7BOH2K.js.map +0 -1
  209. package/dist/chunk-W37OFBSG.js.map +0 -1
  210. package/dist/chunk-WDBYAXZ5.js.map +0 -1
  211. package/dist/chunk-X2K57BH6.js +0 -1
  212. package/dist/chunk-X2K57BH6.js.map +0 -1
  213. package/dist/chunk-YPKNMYD4.js.map +0 -1
  214. package/dist/chunk-YQMPVJ2L.js +0 -32
  215. package/dist/chunk-YQMPVJ2L.js.map +0 -1
  216. package/dist/chunk-YSFEKIYQ.js.map +0 -1
  217. package/dist/chunk-ZHB57ORD.js.map +0 -1
  218. package/dist/chunk-ZZ25FZG2.js.map +0 -1
  219. package/dist/client.cjs.map +0 -1
  220. package/dist/client.js.map +0 -1
  221. package/dist/core/client.cjs.map +0 -1
  222. package/dist/core/client.js.map +0 -1
  223. package/dist/core/error.cjs.map +0 -1
  224. package/dist/core/error.js.map +0 -1
  225. package/dist/core/index.cjs.map +0 -1
  226. package/dist/core/index.js.map +0 -1
  227. package/dist/core/resource.cjs.map +0 -1
  228. package/dist/core/resource.js.map +0 -1
  229. package/dist/edge.cjs.map +0 -1
  230. package/dist/edge.js.map +0 -1
  231. package/dist/index.cjs.map +0 -1
  232. package/dist/index.js.map +0 -1
  233. package/dist/modelrouter/core.cjs.map +0 -1
  234. package/dist/modelrouter/core.js.map +0 -1
  235. package/dist/modelrouter/index.cjs.map +0 -1
  236. package/dist/modelrouter/index.js.map +0 -1
  237. package/dist/modelrouter/types.cjs.map +0 -1
  238. package/dist/modelrouter/types.js.map +0 -1
  239. package/dist/otel-CG0uqXjp.d.ts +0 -42
  240. package/dist/subagents/anthropic.cjs.map +0 -1
  241. package/dist/subagents/anthropic.js.map +0 -1
  242. package/dist/subagents/index.cjs.map +0 -1
  243. package/dist/subagents/index.js.map +0 -1
  244. package/dist/subagents/prompts.cjs.map +0 -1
  245. package/dist/subagents/prompts.js.map +0 -1
  246. package/dist/subagents/types.cjs.map +0 -1
  247. package/dist/subagents/types.js.map +0 -1
  248. package/dist/subagents/vercel.cjs.map +0 -1
  249. package/dist/subagents/vercel.js.map +0 -1
  250. package/dist/tools/codebase_search/anthropic.cjs +0 -664
  251. package/dist/tools/codebase_search/anthropic.cjs.map +0 -1
  252. package/dist/tools/codebase_search/anthropic.d.ts +0 -40
  253. package/dist/tools/codebase_search/anthropic.js +0 -16
  254. package/dist/tools/codebase_search/anthropic.js.map +0 -1
  255. package/dist/tools/codebase_search/core.cjs +0 -606
  256. package/dist/tools/codebase_search/core.cjs.map +0 -1
  257. package/dist/tools/codebase_search/core.d.ts +0 -51
  258. package/dist/tools/codebase_search/core.js +0 -16
  259. package/dist/tools/codebase_search/core.js.map +0 -1
  260. package/dist/tools/codebase_search/index.cjs +0 -789
  261. package/dist/tools/codebase_search/index.cjs.map +0 -1
  262. package/dist/tools/codebase_search/index.d.ts +0 -12
  263. package/dist/tools/codebase_search/index.js +0 -32
  264. package/dist/tools/codebase_search/index.js.map +0 -1
  265. package/dist/tools/codebase_search/openai.cjs +0 -713
  266. package/dist/tools/codebase_search/openai.cjs.map +0 -1
  267. package/dist/tools/codebase_search/openai.d.ts +0 -87
  268. package/dist/tools/codebase_search/openai.js +0 -26
  269. package/dist/tools/codebase_search/openai.js.map +0 -1
  270. package/dist/tools/codebase_search/prompts.cjs +0 -57
  271. package/dist/tools/codebase_search/prompts.cjs.map +0 -1
  272. package/dist/tools/codebase_search/prompts.d.ts +0 -7
  273. package/dist/tools/codebase_search/prompts.js +0 -10
  274. package/dist/tools/codebase_search/prompts.js.map +0 -1
  275. package/dist/tools/codebase_search/types.cjs +0 -19
  276. package/dist/tools/codebase_search/types.cjs.map +0 -1
  277. package/dist/tools/codebase_search/types.d.ts +0 -50
  278. package/dist/tools/codebase_search/types.js +0 -1
  279. package/dist/tools/codebase_search/types.js.map +0 -1
  280. package/dist/tools/codebase_search/vercel.cjs +0 -626
  281. package/dist/tools/codebase_search/vercel.cjs.map +0 -1
  282. package/dist/tools/codebase_search/vercel.d.ts +0 -65
  283. package/dist/tools/codebase_search/vercel.js +0 -20
  284. package/dist/tools/codebase_search/vercel.js.map +0 -1
  285. package/dist/tools/compact/core.cjs.map +0 -1
  286. package/dist/tools/compact/core.js.map +0 -1
  287. package/dist/tools/compact/index.cjs.map +0 -1
  288. package/dist/tools/compact/index.js.map +0 -1
  289. package/dist/tools/compact/types.cjs.map +0 -1
  290. package/dist/tools/compact/types.js.map +0 -1
  291. package/dist/tools/fastapply/anthropic.cjs.map +0 -1
  292. package/dist/tools/fastapply/anthropic.js.map +0 -1
  293. package/dist/tools/fastapply/apply.cjs.map +0 -1
  294. package/dist/tools/fastapply/apply.js.map +0 -1
  295. package/dist/tools/fastapply/core.cjs.map +0 -1
  296. package/dist/tools/fastapply/core.js.map +0 -1
  297. package/dist/tools/fastapply/index.cjs.map +0 -1
  298. package/dist/tools/fastapply/index.js.map +0 -1
  299. package/dist/tools/fastapply/openai.cjs.map +0 -1
  300. package/dist/tools/fastapply/openai.js.map +0 -1
  301. package/dist/tools/fastapply/prompts.cjs.map +0 -1
  302. package/dist/tools/fastapply/prompts.js.map +0 -1
  303. package/dist/tools/fastapply/types.cjs.map +0 -1
  304. package/dist/tools/fastapply/types.js.map +0 -1
  305. package/dist/tools/fastapply/vercel.cjs.map +0 -1
  306. package/dist/tools/fastapply/vercel.js.map +0 -1
  307. package/dist/tools/index.cjs.map +0 -1
  308. package/dist/tools/index.js.map +0 -1
  309. package/dist/tools/utils/resilience.cjs.map +0 -1
  310. package/dist/tools/utils/resilience.js.map +0 -1
  311. package/dist/tools/warp_grep/agent/config.cjs.map +0 -1
  312. package/dist/tools/warp_grep/agent/config.js.map +0 -1
  313. package/dist/tools/warp_grep/agent/formatter.cjs.map +0 -1
  314. package/dist/tools/warp_grep/agent/formatter.js.map +0 -1
  315. package/dist/tools/warp_grep/agent/parser.cjs.map +0 -1
  316. package/dist/tools/warp_grep/agent/parser.js.map +0 -1
  317. package/dist/tools/warp_grep/agent/runner.cjs.map +0 -1
  318. package/dist/tools/warp_grep/agent/runner.js.map +0 -1
  319. package/dist/tools/warp_grep/agent/types.cjs.map +0 -1
  320. package/dist/tools/warp_grep/agent/types.js.map +0 -1
  321. package/dist/tools/warp_grep/anthropic.cjs.map +0 -1
  322. package/dist/tools/warp_grep/anthropic.js.map +0 -1
  323. package/dist/tools/warp_grep/client.cjs.map +0 -1
  324. package/dist/tools/warp_grep/client.js.map +0 -1
  325. package/dist/tools/warp_grep/gemini.cjs.map +0 -1
  326. package/dist/tools/warp_grep/gemini.js.map +0 -1
  327. package/dist/tools/warp_grep/harness.cjs.map +0 -1
  328. package/dist/tools/warp_grep/harness.js.map +0 -1
  329. package/dist/tools/warp_grep/index.cjs.map +0 -1
  330. package/dist/tools/warp_grep/index.js.map +0 -1
  331. package/dist/tools/warp_grep/openai.cjs.map +0 -1
  332. package/dist/tools/warp_grep/openai.js.map +0 -1
  333. package/dist/tools/warp_grep/providers/code_storage_http.cjs.map +0 -1
  334. package/dist/tools/warp_grep/providers/code_storage_http.js.map +0 -1
  335. package/dist/tools/warp_grep/providers/local.cjs.map +0 -1
  336. package/dist/tools/warp_grep/providers/local.js.map +0 -1
  337. package/dist/tools/warp_grep/providers/remote.cjs.map +0 -1
  338. package/dist/tools/warp_grep/providers/remote.js.map +0 -1
  339. package/dist/tools/warp_grep/providers/types.cjs.map +0 -1
  340. package/dist/tools/warp_grep/providers/types.js.map +0 -1
  341. package/dist/tools/warp_grep/utils/files.cjs.map +0 -1
  342. package/dist/tools/warp_grep/utils/files.js.map +0 -1
  343. package/dist/tools/warp_grep/utils/github.cjs.map +0 -1
  344. package/dist/tools/warp_grep/utils/github.js.map +0 -1
  345. package/dist/tools/warp_grep/utils/paths.cjs.map +0 -1
  346. package/dist/tools/warp_grep/utils/paths.js.map +0 -1
  347. package/dist/tools/warp_grep/utils/ripgrep.cjs.map +0 -1
  348. package/dist/tools/warp_grep/utils/ripgrep.js.map +0 -1
  349. package/dist/tools/warp_grep/vercel.cjs.map +0 -1
  350. package/dist/tools/warp_grep/vercel.js.map +0 -1
  351. package/dist/tracing/core.cjs +0 -410
  352. package/dist/tracing/core.cjs.map +0 -1
  353. package/dist/tracing/core.d.ts +0 -58
  354. package/dist/tracing/core.js +0 -12
  355. package/dist/tracing/core.js.map +0 -1
  356. package/dist/tracing/index.cjs +0 -422
  357. package/dist/tracing/index.cjs.map +0 -1
  358. package/dist/tracing/index.d.ts +0 -5
  359. package/dist/tracing/index.js +0 -17
  360. package/dist/tracing/index.js.map +0 -1
  361. package/dist/tracing/interaction.cjs +0 -273
  362. package/dist/tracing/interaction.cjs.map +0 -1
  363. package/dist/tracing/interaction.d.ts +0 -41
  364. package/dist/tracing/interaction.js +0 -11
  365. package/dist/tracing/interaction.js.map +0 -1
  366. package/dist/tracing/otel.cjs +0 -56
  367. package/dist/tracing/otel.cjs.map +0 -1
  368. package/dist/tracing/otel.d.ts +0 -2
  369. package/dist/tracing/otel.js +0 -10
  370. package/dist/tracing/otel.js.map +0 -1
  371. package/dist/tracing/types.cjs +0 -19
  372. package/dist/tracing/types.cjs.map +0 -1
  373. package/dist/tracing/types.d.ts +0 -124
  374. package/dist/tracing/types.js +0 -1
  375. package/dist/tracing/types.js.map +0 -1
  376. package/dist/version.cjs.map +0 -1
  377. package/dist/version.js.map +0 -1
package/dist/client.cjs CHANGED
@@ -36,7 +36,7 @@ var init_package = __esm({
36
36
  "package.json"() {
37
37
  package_default = {
38
38
  name: "@morphllm/morphsdk",
39
- version: "0.2.199",
39
+ version: "0.2.201",
40
40
  description: "TypeScript SDK and CLI for Morph Fast Apply integration",
41
41
  type: "module",
42
42
  main: "./dist/index.cjs",
@@ -93,16 +93,6 @@ var init_package = __esm({
93
93
  import: "./dist/tools/warp_grep/harness.js",
94
94
  require: "./dist/tools/warp_grep/harness.cjs"
95
95
  },
96
- "./tracing": {
97
- types: "./dist/tracing/index.d.ts",
98
- import: "./dist/tracing/index.js",
99
- require: "./dist/tracing/index.cjs"
100
- },
101
- "./tracing/otel": {
102
- types: "./dist/tracing/otel.d.ts",
103
- import: "./dist/tracing/otel.js",
104
- require: "./dist/tracing/otel.cjs"
105
- },
106
96
  "./tools/fastapply": {
107
97
  types: "./dist/tools/fastapply/index.d.ts",
108
98
  import: "./dist/tools/fastapply/index.js",
@@ -123,26 +113,6 @@ var init_package = __esm({
123
113
  import: "./dist/tools/fastapply/vercel.js",
124
114
  require: "./dist/tools/fastapply/vercel.cjs"
125
115
  },
126
- "./tools/codebase-search": {
127
- types: "./dist/tools/codebase_search/index.d.ts",
128
- import: "./dist/tools/codebase_search/index.js",
129
- require: "./dist/tools/codebase_search/index.cjs"
130
- },
131
- "./tools/codebase-search/anthropic": {
132
- types: "./dist/tools/codebase_search/anthropic.d.ts",
133
- import: "./dist/tools/codebase_search/anthropic.js",
134
- require: "./dist/tools/codebase_search/anthropic.cjs"
135
- },
136
- "./tools/codebase-search/openai": {
137
- types: "./dist/tools/codebase_search/openai.d.ts",
138
- import: "./dist/tools/codebase_search/openai.js",
139
- require: "./dist/tools/codebase_search/openai.cjs"
140
- },
141
- "./tools/codebase-search/vercel": {
142
- types: "./dist/tools/codebase_search/vercel.d.ts",
143
- import: "./dist/tools/codebase_search/vercel.js",
144
- require: "./dist/tools/codebase_search/vercel.cjs"
145
- },
146
116
  "./modelrouter": {
147
117
  types: "./dist/modelrouter/index.d.ts",
148
118
  import: "./dist/modelrouter/index.js",
@@ -178,12 +148,11 @@ var init_package = __esm({
178
148
  "dist/**/*.js",
179
149
  "dist/**/*.cjs",
180
150
  "dist/**/*.d.ts",
181
- "dist/**/*.map",
182
151
  "!dist/**/__tests__/**",
183
152
  "!dist/**/*.test.*"
184
153
  ],
185
154
  scripts: {
186
- build: "tsup version.ts index.ts edge.ts client.ts core/index.ts core/client.ts core/resource.ts core/error.ts tools/index.ts tools/fastapply/index.ts tools/fastapply/core.ts tools/fastapply/apply.ts tools/fastapply/types.ts tools/fastapply/prompts.ts tools/fastapply/anthropic.ts tools/fastapply/openai.ts tools/fastapply/vercel.ts tools/codebase_search/index.ts tools/codebase_search/core.ts tools/codebase_search/types.ts tools/codebase_search/prompts.ts tools/codebase_search/anthropic.ts tools/codebase_search/openai.ts tools/codebase_search/vercel.ts tools/warp_grep/index.ts tools/warp_grep/client.ts tools/warp_grep/openai.ts tools/warp_grep/anthropic.ts tools/warp_grep/vercel.ts tools/warp_grep/gemini.ts tools/warp_grep/harness.ts tools/warp_grep/agent/config.ts tools/warp_grep/agent/parser.ts tools/warp_grep/agent/runner.ts tools/warp_grep/agent/types.ts tools/warp_grep/agent/formatter.ts tools/warp_grep/providers/types.ts tools/warp_grep/providers/local.ts tools/warp_grep/providers/remote.ts tools/warp_grep/providers/code_storage_http.ts tools/warp_grep/tools/grep.ts tools/warp_grep/tools/analyse.ts tools/warp_grep/tools/read.ts tools/warp_grep/tools/finish.ts tools/warp_grep/utils/paths.ts tools/warp_grep/utils/github.ts tools/warp_grep/utils/ripgrep.ts tools/warp_grep/utils/format.ts tools/warp_grep/utils/files.ts modelrouter/index.ts modelrouter/core.ts modelrouter/types.ts tools/compact/index.ts tools/compact/core.ts tools/compact/types.ts tools/utils/resilience.ts subagents/index.ts subagents/types.ts subagents/prompts.ts subagents/vercel.ts subagents/anthropic.ts tracing/index.ts tracing/core.ts tracing/interaction.ts tracing/otel.ts tracing/types.ts --format esm,cjs --sourcemap --clean --dts --dts-resolve && tsup ai-sdk/index.ts --format esm,cjs --sourcemap --dts --no-clean --out-dir dist/ai-sdk",
155
+ build: "tsup version.ts index.ts edge.ts client.ts core/index.ts core/client.ts core/resource.ts core/error.ts tools/index.ts tools/fastapply/index.ts tools/fastapply/core.ts tools/fastapply/apply.ts tools/fastapply/types.ts tools/fastapply/prompts.ts tools/fastapply/anthropic.ts tools/fastapply/openai.ts tools/fastapply/vercel.ts tools/warp_grep/index.ts tools/warp_grep/client.ts tools/warp_grep/openai.ts tools/warp_grep/anthropic.ts tools/warp_grep/vercel.ts tools/warp_grep/gemini.ts tools/warp_grep/harness.ts tools/warp_grep/agent/config.ts tools/warp_grep/agent/parser.ts tools/warp_grep/agent/runner.ts tools/warp_grep/agent/types.ts tools/warp_grep/agent/formatter.ts tools/warp_grep/providers/types.ts tools/warp_grep/providers/local.ts tools/warp_grep/providers/remote.ts tools/warp_grep/providers/code_storage_http.ts tools/warp_grep/tools/grep.ts tools/warp_grep/tools/analyse.ts tools/warp_grep/tools/read.ts tools/warp_grep/tools/finish.ts tools/warp_grep/utils/paths.ts tools/warp_grep/utils/github.ts tools/warp_grep/utils/ripgrep.ts tools/warp_grep/utils/format.ts tools/warp_grep/utils/files.ts modelrouter/index.ts modelrouter/core.ts modelrouter/types.ts tools/compact/index.ts tools/compact/core.ts tools/compact/types.ts tools/utils/resilience.ts subagents/index.ts subagents/types.ts subagents/prompts.ts subagents/vercel.ts subagents/anthropic.ts --format esm,cjs --clean --dts --dts-resolve && tsup ai-sdk/index.ts --format esm,cjs --dts --no-clean --out-dir dist/ai-sdk",
187
156
  prepare: "npm run build",
188
157
  typecheck: "tsc --noEmit && tsc --noEmit -p ai-sdk/tsconfig.json",
189
158
  lint: "eslint .",
@@ -212,10 +181,6 @@ var init_package = __esm({
212
181
  },
213
182
  license: "MIT",
214
183
  dependencies: {
215
- "@opentelemetry/api": "^1.9.0",
216
- "@opentelemetry/exporter-trace-otlp-http": "^0.203.0",
217
- "@opentelemetry/sdk-trace-base": "^2.7.1",
218
- "@traceloop/node-server-sdk": "^0.27.0",
219
184
  "@vscode/ripgrep": "^1.17.0",
220
185
  ai: ">=5.0.0",
221
186
  diff: "^7.0.0",
@@ -1678,86 +1643,6 @@ async function executeEditFile(input, config = {}) {
1678
1643
  }
1679
1644
  }
1680
1645
 
1681
- // tools/codebase_search/core.ts
1682
- init_logger();
1683
- var DEFAULT_TIMEOUT3 = 3e4;
1684
- var emptyStats = { totalResults: 0, candidatesRetrieved: 0, searchTimeMs: 0 };
1685
- async function runSearch(client, input, repoId, timeout, baseURL) {
1686
- const startTime = Date.now();
1687
- logger.debug("CodebaseSearch", "request", { query: input.query.slice(0, 100), repo_id: repoId });
1688
- try {
1689
- const data = await client.post(
1690
- "/v1/codebase_search",
1691
- {
1692
- baseURL: baseURL ?? client.reposURL,
1693
- timeout,
1694
- body: {
1695
- query: input.query,
1696
- repoId,
1697
- targetDirectories: input.target_directories || [],
1698
- limit: input.limit || 10,
1699
- candidateLimit: 50
1700
- }
1701
- }
1702
- );
1703
- const elapsed = Date.now() - startTime;
1704
- logger.debug("CodebaseSearch", "response", { results_count: data.results?.length || 0, latency_ms: elapsed });
1705
- return {
1706
- success: true,
1707
- results: data.results || [],
1708
- stats: data.stats || { totalResults: 0, candidatesRetrieved: 0, searchTimeMs: elapsed }
1709
- };
1710
- } catch (error) {
1711
- const message = error instanceof MorphError && error.statusCode ? `Search failed (${error.statusCode}): ${error.message}` : error instanceof Error ? error.message : "Unknown error";
1712
- logger.error("CodebaseSearch", "error", { error: message, latency_ms: Date.now() - startTime });
1713
- return { success: false, results: [], stats: { ...emptyStats }, error: message };
1714
- }
1715
- }
1716
- var CodebaseSearchClient = class extends APIResource {
1717
- timeout;
1718
- constructor(clientOrConfig = {}) {
1719
- super(
1720
- clientOrConfig instanceof MorphAPIClient ? clientOrConfig : new MorphAPIClient({
1721
- apiKey: clientOrConfig.apiKey,
1722
- timeout: clientOrConfig.timeout ?? DEFAULT_TIMEOUT3,
1723
- retryConfig: clientOrConfig.retryConfig,
1724
- debug: clientOrConfig.debug
1725
- })
1726
- );
1727
- this.timeout = (clientOrConfig instanceof MorphAPIClient ? void 0 : clientOrConfig.timeout) ?? DEFAULT_TIMEOUT3;
1728
- }
1729
- /**
1730
- * Execute a semantic code search
1731
- *
1732
- * @param input - Search parameters including query, repoId, and target directories
1733
- * @param overrides - Optional config overrides for this operation
1734
- * @returns Search results with ranked code matches
1735
- */
1736
- async search(input, overrides) {
1737
- return runSearch(
1738
- this._client,
1739
- { query: input.query, target_directories: input.target_directories, explanation: input.explanation, limit: input.limit },
1740
- input.repoId,
1741
- overrides?.timeout ?? this.timeout,
1742
- overrides?.searchUrl
1743
- );
1744
- }
1745
- };
1746
- async function executeCodebaseSearch(input, config) {
1747
- const apiKey = config.apiKey || process.env.MORPH_API_KEY;
1748
- if (!apiKey) {
1749
- throw new Error("MORPH_API_KEY not found. Set environment variable or pass in config");
1750
- }
1751
- const client = new MorphAPIClient({
1752
- apiKey,
1753
- reposURL: config.searchUrl,
1754
- timeout: config.timeout ?? DEFAULT_TIMEOUT3,
1755
- retryConfig: config.retryConfig,
1756
- debug: config.debug
1757
- });
1758
- return runSearch(client, input, config.repoId, config.timeout ?? DEFAULT_TIMEOUT3, config.searchUrl);
1759
- }
1760
-
1761
1646
  // tools/warp_grep/agent/runner.ts
1762
1647
  init_config();
1763
1648
 
@@ -2731,13 +2616,13 @@ function parseGitHubUrl(input) {
2731
2616
 
2732
2617
  // tools/compact/core.ts
2733
2618
  var DEFAULT_API_URL3 = "https://api.morphllm.com";
2734
- var DEFAULT_TIMEOUT4 = 12e4;
2619
+ var DEFAULT_TIMEOUT3 = 12e4;
2735
2620
  function resolveClient(clientOrConfig) {
2736
2621
  if (clientOrConfig instanceof MorphAPIClient) return clientOrConfig;
2737
2622
  return new MorphAPIClient({
2738
2623
  apiKey: clientOrConfig.morphApiKey,
2739
2624
  baseURL: clientOrConfig.morphApiUrl ?? DEFAULT_API_URL3,
2740
- timeout: clientOrConfig.timeout ?? DEFAULT_TIMEOUT4,
2625
+ timeout: clientOrConfig.timeout ?? DEFAULT_TIMEOUT3,
2741
2626
  retryConfig: clientOrConfig.retryConfig,
2742
2627
  debug: clientOrConfig.debug
2743
2628
  });
@@ -2750,7 +2635,7 @@ var CompactClient = class extends APIResource {
2750
2635
  const cfg = clientOrConfig instanceof MorphAPIClient ? {} : clientOrConfig;
2751
2636
  this.config = {
2752
2637
  morphApiUrl: this._client.baseURL,
2753
- timeout: cfg.timeout ?? DEFAULT_TIMEOUT4,
2638
+ timeout: cfg.timeout ?? DEFAULT_TIMEOUT3,
2754
2639
  debug: cfg.debug ?? false
2755
2640
  };
2756
2641
  }
@@ -3120,13 +3005,13 @@ function formatResult(result) {
3120
3005
  // modelrouter/core.ts
3121
3006
  init_logger();
3122
3007
  var DEFAULT_API_URL4 = "https://api.morphllm.com";
3123
- var DEFAULT_TIMEOUT5 = 5e3;
3008
+ var DEFAULT_TIMEOUT4 = 5e3;
3124
3009
  function resolveClient2(clientOrConfig) {
3125
3010
  if (clientOrConfig instanceof MorphAPIClient) return clientOrConfig;
3126
3011
  return new MorphAPIClient({
3127
3012
  apiKey: clientOrConfig.apiKey,
3128
3013
  baseURL: clientOrConfig.apiUrl ?? DEFAULT_API_URL4,
3129
- timeout: clientOrConfig.timeout ?? DEFAULT_TIMEOUT5,
3014
+ timeout: clientOrConfig.timeout ?? DEFAULT_TIMEOUT4,
3130
3015
  retryConfig: clientOrConfig.retryConfig,
3131
3016
  debug: clientOrConfig.debug
3132
3017
  });
@@ -3138,7 +3023,7 @@ var BaseRouter = class extends APIResource {
3138
3023
  super(resolveClient2(clientOrConfig));
3139
3024
  this.provider = provider;
3140
3025
  const cfg = clientOrConfig instanceof MorphAPIClient ? {} : clientOrConfig;
3141
- this.timeout = cfg.timeout ?? DEFAULT_TIMEOUT5;
3026
+ this.timeout = cfg.timeout ?? DEFAULT_TIMEOUT4;
3142
3027
  }
3143
3028
  /** Throw the historical "API key is required" message when no key is resolvable. */
3144
3029
  requireApiKey() {
@@ -3244,7 +3129,7 @@ var RouterClassifier = class extends APIResource {
3244
3129
  constructor(clientOrConfig = {}) {
3245
3130
  super(resolveClient2(clientOrConfig));
3246
3131
  const cfg = clientOrConfig instanceof MorphAPIClient ? {} : clientOrConfig;
3247
- this.timeout = cfg.timeout ?? DEFAULT_TIMEOUT5;
3132
+ this.timeout = cfg.timeout ?? DEFAULT_TIMEOUT4;
3248
3133
  }
3249
3134
  /** Classify an input across the requested axes (all three by default). */
3250
3135
  async classify(input) {
@@ -3302,7 +3187,7 @@ var TOOL_PARAMETERS = {
3302
3187
  required: ["search_term"]
3303
3188
  };
3304
3189
  function createWarpGrepTool(config) {
3305
- const tool5 = {
3190
+ const tool4 = {
3306
3191
  type: "function",
3307
3192
  function: {
3308
3193
  name: config.name ?? WARP_GREP_TOOL_NAME,
@@ -3310,7 +3195,7 @@ function createWarpGrepTool(config) {
3310
3195
  parameters: TOOL_PARAMETERS
3311
3196
  }
3312
3197
  };
3313
- return Object.assign(tool5, {
3198
+ return Object.assign(tool4, {
3314
3199
  execute: async (input) => {
3315
3200
  return executeToolCall(input, config);
3316
3201
  },
@@ -3321,7 +3206,7 @@ function createWarpGrepTool(config) {
3321
3206
  }
3322
3207
  function createGitHubSearchTool(config) {
3323
3208
  const client = new WarpGrepClient(config);
3324
- const tool5 = {
3209
+ const tool4 = {
3325
3210
  type: "function",
3326
3211
  function: {
3327
3212
  name: GITHUB_SEARCH_TOOL_NAME,
@@ -3329,7 +3214,7 @@ function createGitHubSearchTool(config) {
3329
3214
  parameters: GITHUB_SEARCH_INPUT_SCHEMA
3330
3215
  }
3331
3216
  };
3332
- return Object.assign(tool5, {
3217
+ return Object.assign(tool4, {
3333
3218
  execute: async (input) => {
3334
3219
  const github = input.github_url || input.owner_repo;
3335
3220
  if (!github) {
@@ -3343,107 +3228,6 @@ function createGitHubSearchTool(config) {
3343
3228
  });
3344
3229
  }
3345
3230
 
3346
- // tools/codebase_search/prompts.ts
3347
- var CODEBASE_SEARCH_DESCRIPTION = `Semantic search that finds code by meaning, not exact text.
3348
-
3349
- Use this to explore unfamiliar codebases or ask "how/where/what" questions:
3350
- - "How does X work?" - Find implementation details
3351
- - "Where is Y handled?" - Locate specific functionality
3352
- - "What happens when Z?" - Understand flow
3353
-
3354
- The tool uses two-stage retrieval (embedding similarity + reranking) to find the most semantically relevant code chunks.
3355
-
3356
- Returns code chunks with file paths, line ranges, and full content ranked by relevance.`;
3357
- var CODEBASE_SEARCH_SYSTEM_PROMPT = `You have access to the codebase_search tool that performs semantic code search.
3358
-
3359
- When searching:
3360
- - Use natural language queries describing what you're looking for
3361
- - Be specific about functionality, not variable names
3362
- - Use target_directories to narrow search if you know the area
3363
- - Results are ranked by relevance (rerank score is most important)
3364
-
3365
- The tool returns:
3366
- - File paths with symbol names (e.g. "src/auth.ts::AuthService@L1-L17")
3367
- - Line ranges for precise navigation
3368
- - Full code content for each match
3369
- - Dual relevance scores: embedding similarity + rerank score
3370
-
3371
- Use results to understand code or answer questions. The content is provided in full - avoid re-reading unless you need more context.`;
3372
-
3373
- // tools/codebase_search/openai.ts
3374
- function createCodebaseSearchTool(config) {
3375
- const toolDefinition = {
3376
- type: "function",
3377
- function: {
3378
- name: "codebase_search",
3379
- description: CODEBASE_SEARCH_DESCRIPTION,
3380
- parameters: {
3381
- type: "object",
3382
- properties: {
3383
- query: {
3384
- type: "string",
3385
- description: 'A complete question about what you want to understand. Ask as if talking to a colleague: "How does X work?", "What happens when Y?", "Where is Z handled?"'
3386
- },
3387
- target_directories: {
3388
- type: "array",
3389
- items: { type: "string" },
3390
- description: "Prefix directory paths to limit search scope (single directory only, no glob patterns). Use [] to search entire repo."
3391
- },
3392
- explanation: {
3393
- type: "string",
3394
- description: "One sentence explanation as to why this tool is being used, and how it contributes to the goal."
3395
- },
3396
- limit: {
3397
- type: "number",
3398
- description: "Maximum results to return (default: 10)"
3399
- }
3400
- },
3401
- required: ["query", "target_directories", "explanation"]
3402
- }
3403
- }
3404
- };
3405
- return Object.assign(toolDefinition, {
3406
- execute: async (input) => {
3407
- const parsedInput = typeof input === "string" ? JSON.parse(input) : input;
3408
- return executeCodebaseSearch(parsedInput, config);
3409
- },
3410
- formatResult: (result) => {
3411
- return formatResult2(result);
3412
- },
3413
- getSystemPrompt: () => {
3414
- return CODEBASE_SEARCH_SYSTEM_PROMPT;
3415
- }
3416
- });
3417
- }
3418
- function formatResult2(result) {
3419
- if (!result.success) {
3420
- return `Search failed: ${result.error}`;
3421
- }
3422
- if (result.results.length === 0) {
3423
- return "No matching code found. Try rephrasing your query or removing directory filters.";
3424
- }
3425
- const lines = [];
3426
- lines.push(`Found ${result.results.length} relevant code sections (${result.stats.searchTimeMs}ms):
3427
- `);
3428
- result.results.forEach((r, i) => {
3429
- const relevance = (r.rerankScore * 100).toFixed(1);
3430
- lines.push(`${i + 1}. ${r.filepath} (${relevance}% relevant)`);
3431
- lines.push(` Symbol: ${r.symbolPath}`);
3432
- lines.push(` Language: ${r.language}`);
3433
- lines.push(` Lines: ${r.startLine}-${r.endLine}`);
3434
- lines.push(` Code:`);
3435
- const codeLines = r.content.split("\n");
3436
- codeLines.slice(0, Math.min(codeLines.length, 20)).forEach((line) => {
3437
- lines.push(` ${line}`);
3438
- });
3439
- if (codeLines.length > 20) {
3440
- lines.push(` ... (${codeLines.length - 20} more lines)`);
3441
- }
3442
- lines.push("");
3443
- });
3444
- return lines.join("\n");
3445
- }
3446
-
3447
3231
  // tools/fastapply/prompts.ts
3448
3232
  var EDIT_FILE_TOOL_DESCRIPTION = `Use this tool to make an edit to an existing file.
3449
3233
 
@@ -3514,7 +3298,7 @@ async function execute(input, config) {
3514
3298
  function getSystemPrompt() {
3515
3299
  return EDIT_FILE_SYSTEM_PROMPT;
3516
3300
  }
3517
- function formatResult3(result) {
3301
+ function formatResult2(result) {
3518
3302
  if (!result.success) {
3519
3303
  return `Error editing file: ${result.error}`;
3520
3304
  }
@@ -3537,7 +3321,7 @@ function createEditFileTool(config = {}) {
3537
3321
  return execute(parsedInput, config);
3538
3322
  },
3539
3323
  formatResult: (result) => {
3540
- return formatResult3(result);
3324
+ return formatResult2(result);
3541
3325
  },
3542
3326
  getSystemPrompt: () => {
3543
3327
  return getSystemPrompt();
@@ -3562,18 +3346,6 @@ var OpenAIToolFactory = class {
3562
3346
  morphApiKey: this.config.apiKey
3563
3347
  });
3564
3348
  }
3565
- /**
3566
- * Create an OpenAI-compatible codebase search tool
3567
- *
3568
- * @param toolConfig - Tool configuration with repoId (apiKey inherited from MorphClient)
3569
- * @returns OpenAI ChatCompletionTool with execute and formatResult methods
3570
- */
3571
- createCodebaseSearchTool(toolConfig) {
3572
- return createCodebaseSearchTool({
3573
- ...toolConfig,
3574
- apiKey: this.config.apiKey
3575
- });
3576
- }
3577
3349
  /**
3578
3350
  * Create an OpenAI-compatible edit file tool
3579
3351
  *
@@ -3609,12 +3381,12 @@ var INPUT_SCHEMA = {
3609
3381
  required: ["search_term"]
3610
3382
  };
3611
3383
  function createWarpGrepTool2(config) {
3612
- const tool5 = {
3384
+ const tool4 = {
3613
3385
  name: config.name ?? WARP_GREP_TOOL_NAME,
3614
3386
  description: config.description ?? WARP_GREP_DESCRIPTION,
3615
3387
  input_schema: INPUT_SCHEMA
3616
3388
  };
3617
- return Object.assign(tool5, {
3389
+ return Object.assign(tool4, {
3618
3390
  execute: async (input) => {
3619
3391
  return executeToolCall(input, config);
3620
3392
  },
@@ -3625,12 +3397,12 @@ function createWarpGrepTool2(config) {
3625
3397
  }
3626
3398
  function createGitHubSearchTool2(config) {
3627
3399
  const client = new WarpGrepClient(config);
3628
- const tool5 = {
3400
+ const tool4 = {
3629
3401
  name: GITHUB_SEARCH_TOOL_NAME,
3630
3402
  description: GITHUB_SEARCH_DESCRIPTION,
3631
3403
  input_schema: GITHUB_SEARCH_INPUT_SCHEMA
3632
3404
  };
3633
- return Object.assign(tool5, {
3405
+ return Object.assign(tool4, {
3634
3406
  execute: async (input) => {
3635
3407
  const github = input.github_url || input.owner_repo;
3636
3408
  if (!github) {
@@ -3644,77 +3416,6 @@ function createGitHubSearchTool2(config) {
3644
3416
  });
3645
3417
  }
3646
3418
 
3647
- // tools/codebase_search/anthropic.ts
3648
- function createCodebaseSearchTool2(config) {
3649
- const toolDefinition = {
3650
- name: "codebase_search",
3651
- description: CODEBASE_SEARCH_DESCRIPTION,
3652
- input_schema: {
3653
- type: "object",
3654
- properties: {
3655
- explanation: {
3656
- type: "string",
3657
- description: "One sentence explanation as to why this tool is being used, and how it contributes to the goal."
3658
- },
3659
- query: {
3660
- type: "string",
3661
- description: 'A complete question about what you want to understand. Ask as if talking to a colleague: "How does X work?", "What happens when Y?", "Where is Z handled?"'
3662
- },
3663
- target_directories: {
3664
- type: "array",
3665
- items: { type: "string" },
3666
- description: "Prefix directory paths to limit search scope (single directory only, no glob patterns). Use [] to search entire repo."
3667
- },
3668
- limit: {
3669
- type: "number",
3670
- description: "Maximum results to return (default: 10)"
3671
- }
3672
- },
3673
- required: ["query", "target_directories", "explanation"]
3674
- },
3675
- cache_control: { type: "ephemeral" }
3676
- };
3677
- return Object.assign(toolDefinition, {
3678
- execute: async (input) => {
3679
- return executeCodebaseSearch(input, config);
3680
- },
3681
- formatResult: (result) => {
3682
- return formatResult4(result);
3683
- },
3684
- getSystemPrompt: () => {
3685
- return CODEBASE_SEARCH_SYSTEM_PROMPT;
3686
- }
3687
- });
3688
- }
3689
- function formatResult4(result) {
3690
- if (!result.success) {
3691
- return `Search failed: ${result.error}`;
3692
- }
3693
- if (result.results.length === 0) {
3694
- return "No matching code found. Try rephrasing your query or broadening the search scope.";
3695
- }
3696
- const lines = [];
3697
- lines.push(`Found ${result.results.length} relevant code sections (searched ${result.stats.candidatesRetrieved} candidates in ${result.stats.searchTimeMs}ms):
3698
- `);
3699
- result.results.forEach((r, i) => {
3700
- const relevance = (r.rerankScore * 100).toFixed(1);
3701
- lines.push(`${i + 1}. ${r.filepath} (${relevance}% relevant)`);
3702
- lines.push(` Symbol: ${r.symbolPath}`);
3703
- lines.push(` Language: ${r.language}`);
3704
- lines.push(` Lines: ${r.startLine}-${r.endLine}`);
3705
- lines.push(` Code:`);
3706
- const codeLines = r.content.split("\n");
3707
- codeLines.slice(0, Math.min(codeLines.length, 20)).forEach((line) => {
3708
- lines.push(` ${line}`);
3709
- });
3710
- if (codeLines.length > 20) {
3711
- lines.push(` ... (${codeLines.length - 20} more lines)`);
3712
- }
3713
- lines.push("");
3714
- });
3715
- return lines.join("\n");
3716
- }
3717
-
3718
3419
  // tools/fastapply/anthropic.ts
3719
3420
  var editFileTool2 = {
3720
3421
  name: "edit_file",
@@ -3738,7 +3439,7 @@ var editFileTool2 = {
3738
3439
  required: ["target_filepath", "instruction", "code_edit"]
3739
3440
  }
3740
3441
  };
3741
- function formatResult5(result) {
3442
+ function formatResult3(result) {
3742
3443
  if (!result.success) {
3743
3444
  return `Error editing file: ${result.error}`;
3744
3445
  }
@@ -3755,7 +3456,7 @@ function createEditFileTool2(config = {}) {
3755
3456
  return executeEditFile(input, config);
3756
3457
  },
3757
3458
  formatResult: (result) => {
3758
- return formatResult5(result);
3459
+ return formatResult3(result);
3759
3460
  },
3760
3461
  getSystemPrompt: () => {
3761
3462
  return EDIT_FILE_SYSTEM_PROMPT;
@@ -4121,18 +3822,6 @@ var AnthropicToolFactory = class {
4121
3822
  morphApiKey: this.config.apiKey
4122
3823
  });
4123
3824
  }
4124
- /**
4125
- * Create an Anthropic-compatible codebase search tool
4126
- *
4127
- * @param toolConfig - Tool configuration with repoId (apiKey inherited from MorphClient)
4128
- * @returns Anthropic Tool with execute and formatResult methods
4129
- */
4130
- createCodebaseSearchTool(toolConfig) {
4131
- return createCodebaseSearchTool2({
4132
- ...toolConfig,
4133
- apiKey: this.config.apiKey
4134
- });
4135
- }
4136
3825
  /**
4137
3826
  * Create an Anthropic-compatible edit file tool
4138
3827
  *
@@ -4234,56 +3923,15 @@ function createGitHubSearchTool3(config) {
4234
3923
  });
4235
3924
  }
4236
3925
 
4237
- // tools/codebase_search/vercel.ts
3926
+ // tools/fastapply/vercel.ts
4238
3927
  var import_ai2 = require("ai");
4239
3928
  var import_zod2 = require("zod");
4240
- function createCodebaseSearchTool3(config) {
4241
- const schema = import_zod2.z.object({
4242
- query: import_zod2.z.string().describe('A complete question about what you want to understand. Ask as if talking to a colleague: "How does X work?", "What happens when Y?", "Where is Z handled?"'),
4243
- target_directories: import_zod2.z.array(import_zod2.z.string()).describe("Prefix directory paths to limit search scope (single directory only, no glob patterns). Use [] to search entire repo."),
4244
- explanation: import_zod2.z.string().describe("One sentence explanation as to why this tool is being used, and how it contributes to the goal."),
4245
- limit: import_zod2.z.number().optional().describe("Max results to return (default: 10)")
4246
- });
4247
- return (0, import_ai2.tool)({
4248
- description: CODEBASE_SEARCH_DESCRIPTION,
4249
- inputSchema: schema,
4250
- execute: async (params) => {
4251
- const { query, target_directories, explanation, limit } = params;
4252
- const result = await executeCodebaseSearch(
4253
- { query, target_directories, explanation, limit },
4254
- config
4255
- );
4256
- if (!result.success) {
4257
- return {
4258
- error: result.error,
4259
- results: []
4260
- };
4261
- }
4262
- return {
4263
- found: result.results.length,
4264
- searchTime: `${result.stats.searchTimeMs}ms`,
4265
- results: result.results.map((r) => ({
4266
- file: r.filepath,
4267
- symbol: r.symbolPath,
4268
- lines: `${r.startLine}-${r.endLine}`,
4269
- language: r.language,
4270
- relevance: `${(r.rerankScore * 100).toFixed(1)}%`,
4271
- code: r.content
4272
- }))
4273
- };
4274
- }
4275
- });
4276
- }
4277
-
4278
- // tools/fastapply/vercel.ts
4279
- var import_ai3 = require("ai");
4280
- var import_zod3 = require("zod");
4281
- var editFileSchema = import_zod3.z.object({
4282
- target_filepath: import_zod3.z.string().describe("The path of the target file to modify"),
4283
- instruction: import_zod3.z.string().describe("A single sentence written in the first person describing what the agent is changing. Used to help disambiguate uncertainty in the edit."),
4284
- code_edit: import_zod3.z.string().describe("Specify ONLY the precise lines of code that you wish to edit. Use `// ... existing code ...` for unchanged sections.")
3929
+ var editFileSchema = import_zod2.z.object({
3930
+ target_filepath: import_zod2.z.string().describe("The path of the target file to modify"),
3931
+ instruction: import_zod2.z.string().describe("A single sentence written in the first person describing what the agent is changing. Used to help disambiguate uncertainty in the edit."),
3932
+ code_edit: import_zod2.z.string().describe("Specify ONLY the precise lines of code that you wish to edit. Use `// ... existing code ...` for unchanged sections.")
4285
3933
  });
4286
- var editFileTool3 = (0, import_ai3.tool)({
3934
+ var editFileTool3 = (0, import_ai2.tool)({
4287
3935
  description: EDIT_FILE_TOOL_DESCRIPTION,
4288
3936
  inputSchema: editFileSchema,
4289
3937
  execute: async (params) => {
@@ -4304,12 +3952,12 @@ var editFileTool3 = (0, import_ai3.tool)({
4304
3952
  }
4305
3953
  });
4306
3954
  function createEditFileTool3(config = {}) {
4307
- const schema = import_zod3.z.object({
4308
- target_filepath: import_zod3.z.string().describe("The path of the target file to modify"),
4309
- instruction: import_zod3.z.string().describe("A single sentence written in the first person describing what the agent is changing. Used to help disambiguate uncertainty in the edit."),
4310
- code_edit: import_zod3.z.string().describe("Specify ONLY the precise lines of code that you wish to edit. Use `// ... existing code ...` for unchanged sections.")
3955
+ const schema = import_zod2.z.object({
3956
+ target_filepath: import_zod2.z.string().describe("The path of the target file to modify"),
3957
+ instruction: import_zod2.z.string().describe("A single sentence written in the first person describing what the agent is changing. Used to help disambiguate uncertainty in the edit."),
3958
+ code_edit: import_zod2.z.string().describe("Specify ONLY the precise lines of code that you wish to edit. Use `// ... existing code ...` for unchanged sections.")
4311
3959
  });
4312
- return (0, import_ai3.tool)({
3960
+ return (0, import_ai2.tool)({
4313
3961
  description: config.description || EDIT_FILE_TOOL_DESCRIPTION,
4314
3962
  inputSchema: schema,
4315
3963
  execute: async (params) => {
@@ -4335,8 +3983,8 @@ function createEditFileTool3(config = {}) {
4335
3983
  }
4336
3984
 
4337
3985
  // subagents/vercel.ts
4338
- var import_ai4 = require("ai");
4339
- var import_zod4 = require("zod");
3986
+ var import_ai3 = require("ai");
3987
+ var import_zod3 = require("zod");
4340
3988
  var DEFAULT_MAX_TURNS2 = {
4341
3989
  quick: 3,
4342
3990
  medium: 6,
@@ -4364,18 +4012,18 @@ function createExploreSubagent2(config) {
4364
4012
  ) : null;
4365
4013
  const runPromise = (async () => {
4366
4014
  try {
4367
- const codebaseSearchSchema = import_zod4.z.object({
4368
- searchRequest: import_zod4.z.string().describe("Natural language description of what to search for")
4015
+ const codebaseSearchSchema = import_zod3.z.object({
4016
+ searchRequest: import_zod3.z.string().describe("Natural language description of what to search for")
4369
4017
  });
4370
- const sendMessageSchema = import_zod4.z.object({
4371
- message: import_zod4.z.string().describe("The message to send to the orchestrator")
4018
+ const sendMessageSchema = import_zod3.z.object({
4019
+ message: import_zod3.z.string().describe("The message to send to the orchestrator")
4372
4020
  });
4373
- const result = await (0, import_ai4.generateText)({
4021
+ const result = await (0, import_ai3.generateText)({
4374
4022
  model: config.model,
4375
4023
  system: getSystemPrompt2(thoroughness),
4376
4024
  prompt,
4377
4025
  tools: {
4378
- codebase_search: (0, import_ai4.tool)({
4026
+ codebase_search: (0, import_ai3.tool)({
4379
4027
  description: CODEBASE_SEARCH_TOOL.description,
4380
4028
  inputSchema: codebaseSearchSchema,
4381
4029
  execute: async (params) => {
@@ -4398,7 +4046,7 @@ function createExploreSubagent2(config) {
4398
4046
  return formatResult(warpResult);
4399
4047
  }
4400
4048
  }),
4401
- send_message: (0, import_ai4.tool)({
4049
+ send_message: (0, import_ai3.tool)({
4402
4050
  description: SEND_MESSAGE_TOOL.description,
4403
4051
  inputSchema: sendMessageSchema,
4404
4052
  execute: async (params) => {
@@ -4429,7 +4077,7 @@ function createExploreSubagent2(config) {
4429
4077
  }
4430
4078
  })
4431
4079
  },
4432
- stopWhen: (0, import_ai4.stepCountIs)(getMaxTurns2(config))
4080
+ stopWhen: (0, import_ai3.stepCountIs)(getMaxTurns2(config))
4433
4081
  });
4434
4082
  callbacks.onStep?.({
4435
4083
  step: searchCount,
@@ -4472,10 +4120,10 @@ function createExploreSubagent2(config) {
4472
4120
  }
4473
4121
  return runPromise;
4474
4122
  }
4475
- const exploreToolSchema = import_zod4.z.object({
4476
- searchRequest: import_zod4.z.string().describe("What to explore in the codebase. Be specific about what you want to understand.")
4123
+ const exploreToolSchema = import_zod3.z.object({
4124
+ searchRequest: import_zod3.z.string().describe("What to explore in the codebase. Be specific about what you want to understand.")
4477
4125
  });
4478
- const exploreTool = (0, import_ai4.tool)({
4126
+ const exploreTool = (0, import_ai3.tool)({
4479
4127
  description: "Explore a codebase to answer questions about code structure, find implementations, trace call chains, and understand architecture. Returns a summary of findings. Use this for broad exploration rather than pinpoint keyword searches.",
4480
4128
  inputSchema: exploreToolSchema,
4481
4129
  execute: async (params) => {
@@ -4602,18 +4250,6 @@ var VercelToolFactory = class {
4602
4250
  morphApiKey: this.config.apiKey
4603
4251
  });
4604
4252
  }
4605
- /**
4606
- * Create a Vercel AI SDK-compatible codebase search tool
4607
- *
4608
- * @param toolConfig - Tool configuration with repoId (apiKey inherited from MorphClient)
4609
- * @returns Vercel AI SDK tool
4610
- */
4611
- createCodebaseSearchTool(toolConfig) {
4612
- return createCodebaseSearchTool3({
4613
- ...toolConfig,
4614
- apiKey: this.config.apiKey
4615
- });
4616
- }
4617
4253
  /**
4618
4254
  * Create a Vercel AI SDK-compatible edit file tool
4619
4255
  *
@@ -4658,8 +4294,6 @@ var MorphClient = class extends MorphAPIClient {
4658
4294
  config;
4659
4295
  /** FastApply tool for editing files with AI-powered merge */
4660
4296
  fastApply;
4661
- /** CodebaseSearch tool for semantic code search */
4662
- codebaseSearch;
4663
4297
  /** WarpGrep tool for fast code search using ripgrep */
4664
4298
  warpGrep;
4665
4299
  /** Model routers for intelligent model selection */
@@ -4699,7 +4333,6 @@ var MorphClient = class extends MorphAPIClient {
4699
4333
  this.config = config;
4700
4334
  logger.debug("MorphClient", "initialized", { debug: !!config.debug, timeout: config.timeout });
4701
4335
  this.fastApply = new FastApplyClient(this);
4702
- this.codebaseSearch = new CodebaseSearchClient(this);
4703
4336
  this.warpGrep = new WarpGrepClient(this);
4704
4337
  this.routers = {
4705
4338
  openai: new OpenAIRouter(this),
@@ -4719,4 +4352,3 @@ var MorphClient = class extends MorphAPIClient {
4719
4352
  0 && (module.exports = {
4720
4353
  MorphClient
4721
4354
  });
4722
- //# sourceMappingURL=client.cjs.map