@morphllm/morphsdk 0.2.124 → 0.2.126

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 (219) hide show
  1. package/dist/{chunk-M6VWLSL4.js → chunk-37ZZ24IX.js} +3 -12
  2. package/dist/chunk-37ZZ24IX.js.map +1 -0
  3. package/dist/{chunk-BFJAFWMR.js → chunk-3NLCSADX.js} +2 -2
  4. package/dist/{chunk-KQRX2K2W.js → chunk-5CIUBER5.js} +2 -2
  5. package/dist/{chunk-STPK3AAF.js → chunk-6722FXFI.js} +2 -2
  6. package/dist/{chunk-3ZO2UAYM.js → chunk-6Y2LHEJJ.js} +2 -2
  7. package/dist/{chunk-27BLOUAR.js → chunk-76PPJZWV.js} +3 -12
  8. package/dist/chunk-76PPJZWV.js.map +1 -0
  9. package/dist/{chunk-OTOVGCG6.js → chunk-AXYGFPEJ.js} +3 -3
  10. package/dist/chunk-AXYGFPEJ.js.map +1 -0
  11. package/dist/{chunk-S4RLT56A.js → chunk-C26M3TWM.js} +6 -6
  12. package/dist/{chunk-F7VTQZH7.js → chunk-CPZKCBED.js} +2 -2
  13. package/dist/{chunk-SGRNIWJD.js → chunk-CYVV5X5K.js} +3 -3
  14. package/dist/{chunk-SGRNIWJD.js.map → chunk-CYVV5X5K.js.map} +1 -1
  15. package/dist/{chunk-5PNMAWLC.js → chunk-DKODF3YG.js} +2 -2
  16. package/dist/{chunk-5PNMAWLC.js.map → chunk-DKODF3YG.js.map} +1 -1
  17. package/dist/{chunk-W4PYHVIJ.js → chunk-EB656RG6.js} +2 -2
  18. package/dist/{chunk-A2OVRHEW.js → chunk-FAH4YGRN.js} +3 -3
  19. package/dist/{chunk-DUJ32DHI.js → chunk-GISRJI5P.js} +2 -2
  20. package/dist/{chunk-EF7ZYLA2.js → chunk-HZOTLGJH.js} +19 -12
  21. package/dist/chunk-HZOTLGJH.js.map +1 -0
  22. package/dist/{chunk-VKQLHW6G.js → chunk-IYZX6EYC.js} +2 -2
  23. package/dist/{chunk-3MLWXJTJ.js → chunk-K2FXHDX2.js} +15 -10
  24. package/dist/chunk-K2FXHDX2.js.map +1 -0
  25. package/dist/{chunk-Z7U7ZRMP.js → chunk-K6GLBQBV.js} +2 -2
  26. package/dist/{chunk-ZVVCJGNL.js → chunk-KJVFYRXY.js} +15 -15
  27. package/dist/{chunk-WG5E7MMA.js → chunk-KUABSLVR.js} +2 -2
  28. package/dist/{chunk-PUGSTXLO.js → chunk-NF2QWJDY.js} +6 -7
  29. package/dist/chunk-NF2QWJDY.js.map +1 -0
  30. package/dist/{chunk-ICLIJKYL.js → chunk-QK5RNORE.js} +3 -3
  31. package/dist/chunk-QK5RNORE.js.map +1 -0
  32. package/dist/{chunk-V3HLOZK2.js → chunk-QLBRTLEI.js} +1 -1
  33. package/dist/{chunk-V3HLOZK2.js.map → chunk-QLBRTLEI.js.map} +1 -1
  34. package/dist/chunk-QRXG5CAZ.js +27 -0
  35. package/dist/chunk-QRXG5CAZ.js.map +1 -0
  36. package/dist/{chunk-KAI2DLL5.js → chunk-R74NP2D4.js} +2 -2
  37. package/dist/{chunk-N6YX3M4I.js → chunk-TREVNTLA.js} +2 -2
  38. package/dist/{chunk-EIJAUTHH.js → chunk-ULZOJQ2W.js} +2 -2
  39. package/dist/chunk-VCKJ22DX.js +131 -0
  40. package/dist/chunk-VCKJ22DX.js.map +1 -0
  41. package/dist/{chunk-ZD5PEXNS.js → chunk-VYJUGQUR.js} +1 -1
  42. package/dist/{chunk-HHRHUUGN.js → chunk-W7WUZMKZ.js} +18 -23
  43. package/dist/chunk-W7WUZMKZ.js.map +1 -0
  44. package/dist/{chunk-34UAUD5I.js → chunk-YHZRHPJI.js} +2 -2
  45. package/dist/{client-JHPwle1Z.d.ts → client-s3_iDem0.d.ts} +0 -4
  46. package/dist/client.cjs +146 -573
  47. package/dist/client.cjs.map +1 -1
  48. package/dist/client.d.ts +1 -2
  49. package/dist/client.js +27 -28
  50. package/dist/edge.cjs +2 -2
  51. package/dist/edge.cjs.map +1 -1
  52. package/dist/edge.js +4 -4
  53. package/dist/{finish-pPJfB0uO.d.ts → finish-DBKuo8yj.d.ts} +2 -0
  54. package/dist/index.cjs +146 -573
  55. package/dist/index.cjs.map +1 -1
  56. package/dist/index.d.ts +1 -2
  57. package/dist/index.js +29 -30
  58. package/dist/modelrouter/core.cjs +2 -2
  59. package/dist/modelrouter/core.cjs.map +1 -1
  60. package/dist/modelrouter/core.js +3 -3
  61. package/dist/modelrouter/index.cjs +2 -2
  62. package/dist/modelrouter/index.cjs.map +1 -1
  63. package/dist/modelrouter/index.js +3 -3
  64. package/dist/tools/browser/anthropic.cjs +2 -2
  65. package/dist/tools/browser/anthropic.cjs.map +1 -1
  66. package/dist/tools/browser/anthropic.js +5 -5
  67. package/dist/tools/browser/core.cjs +2 -2
  68. package/dist/tools/browser/core.cjs.map +1 -1
  69. package/dist/tools/browser/core.js +4 -4
  70. package/dist/tools/browser/index.cjs +2 -2
  71. package/dist/tools/browser/index.cjs.map +1 -1
  72. package/dist/tools/browser/index.js +7 -7
  73. package/dist/tools/browser/openai.cjs +2 -2
  74. package/dist/tools/browser/openai.cjs.map +1 -1
  75. package/dist/tools/browser/openai.js +5 -5
  76. package/dist/tools/browser/profiles/core.cjs +2 -2
  77. package/dist/tools/browser/profiles/core.cjs.map +1 -1
  78. package/dist/tools/browser/profiles/core.js +3 -3
  79. package/dist/tools/browser/profiles/index.cjs +2 -2
  80. package/dist/tools/browser/profiles/index.cjs.map +1 -1
  81. package/dist/tools/browser/profiles/index.js +3 -3
  82. package/dist/tools/browser/vercel.cjs +2 -2
  83. package/dist/tools/browser/vercel.cjs.map +1 -1
  84. package/dist/tools/browser/vercel.js +5 -5
  85. package/dist/tools/codebase_search/anthropic.cjs +2 -2
  86. package/dist/tools/codebase_search/anthropic.cjs.map +1 -1
  87. package/dist/tools/codebase_search/anthropic.js +4 -4
  88. package/dist/tools/codebase_search/core.cjs +2 -2
  89. package/dist/tools/codebase_search/core.cjs.map +1 -1
  90. package/dist/tools/codebase_search/core.js +3 -3
  91. package/dist/tools/codebase_search/index.cjs +2 -2
  92. package/dist/tools/codebase_search/index.cjs.map +1 -1
  93. package/dist/tools/codebase_search/index.js +6 -6
  94. package/dist/tools/codebase_search/openai.cjs +2 -2
  95. package/dist/tools/codebase_search/openai.cjs.map +1 -1
  96. package/dist/tools/codebase_search/openai.js +4 -4
  97. package/dist/tools/codebase_search/vercel.cjs +2 -2
  98. package/dist/tools/codebase_search/vercel.cjs.map +1 -1
  99. package/dist/tools/codebase_search/vercel.js +4 -4
  100. package/dist/tools/fastapply/anthropic.cjs +2 -2
  101. package/dist/tools/fastapply/anthropic.cjs.map +1 -1
  102. package/dist/tools/fastapply/anthropic.js +4 -4
  103. package/dist/tools/fastapply/apply.cjs +2 -2
  104. package/dist/tools/fastapply/apply.cjs.map +1 -1
  105. package/dist/tools/fastapply/apply.js +2 -2
  106. package/dist/tools/fastapply/core.cjs +2 -2
  107. package/dist/tools/fastapply/core.cjs.map +1 -1
  108. package/dist/tools/fastapply/core.js +3 -3
  109. package/dist/tools/fastapply/index.cjs +2 -2
  110. package/dist/tools/fastapply/index.cjs.map +1 -1
  111. package/dist/tools/fastapply/index.js +6 -6
  112. package/dist/tools/fastapply/openai.cjs +2 -2
  113. package/dist/tools/fastapply/openai.cjs.map +1 -1
  114. package/dist/tools/fastapply/openai.js +4 -4
  115. package/dist/tools/fastapply/vercel.cjs +2 -2
  116. package/dist/tools/fastapply/vercel.cjs.map +1 -1
  117. package/dist/tools/fastapply/vercel.js +4 -4
  118. package/dist/tools/index.cjs +2 -2
  119. package/dist/tools/index.cjs.map +1 -1
  120. package/dist/tools/index.js +6 -6
  121. package/dist/tools/utils/resilience.cjs +2 -2
  122. package/dist/tools/utils/resilience.cjs.map +1 -1
  123. package/dist/tools/utils/resilience.js +2 -2
  124. package/dist/tools/warp_grep/agent/config.cjs +1 -1
  125. package/dist/tools/warp_grep/agent/config.cjs.map +1 -1
  126. package/dist/tools/warp_grep/agent/config.d.ts +1 -1
  127. package/dist/tools/warp_grep/agent/config.js +1 -1
  128. package/dist/tools/warp_grep/agent/formatter.cjs +3 -74
  129. package/dist/tools/warp_grep/agent/formatter.cjs.map +1 -1
  130. package/dist/tools/warp_grep/agent/formatter.d.ts +1 -5
  131. package/dist/tools/warp_grep/agent/formatter.js +1 -1
  132. package/dist/tools/warp_grep/agent/parser.cjs +91 -242
  133. package/dist/tools/warp_grep/agent/parser.cjs.map +1 -1
  134. package/dist/tools/warp_grep/agent/parser.d.ts +0 -8
  135. package/dist/tools/warp_grep/agent/parser.js +1 -1
  136. package/dist/tools/warp_grep/agent/runner.cjs +122 -543
  137. package/dist/tools/warp_grep/agent/runner.cjs.map +1 -1
  138. package/dist/tools/warp_grep/agent/runner.js +6 -7
  139. package/dist/tools/warp_grep/agent/types.cjs.map +1 -1
  140. package/dist/tools/warp_grep/agent/types.d.ts +2 -0
  141. package/dist/tools/warp_grep/anthropic.cjs +145 -568
  142. package/dist/tools/warp_grep/anthropic.cjs.map +1 -1
  143. package/dist/tools/warp_grep/anthropic.d.ts +0 -3
  144. package/dist/tools/warp_grep/anthropic.js +11 -15
  145. package/dist/tools/warp_grep/client.cjs +143 -558
  146. package/dist/tools/warp_grep/client.cjs.map +1 -1
  147. package/dist/tools/warp_grep/client.js +9 -10
  148. package/dist/tools/warp_grep/gemini.cjs +145 -568
  149. package/dist/tools/warp_grep/gemini.cjs.map +1 -1
  150. package/dist/tools/warp_grep/gemini.d.ts +0 -3
  151. package/dist/tools/warp_grep/gemini.js +10 -20
  152. package/dist/tools/warp_grep/gemini.js.map +1 -1
  153. package/dist/tools/warp_grep/harness.cjs +124 -540
  154. package/dist/tools/warp_grep/harness.cjs.map +1 -1
  155. package/dist/tools/warp_grep/harness.d.ts +4 -5
  156. package/dist/tools/warp_grep/harness.js +5 -11
  157. package/dist/tools/warp_grep/harness.js.map +1 -1
  158. package/dist/tools/warp_grep/index.cjs +145 -564
  159. package/dist/tools/warp_grep/index.cjs.map +1 -1
  160. package/dist/tools/warp_grep/index.d.ts +1 -2
  161. package/dist/tools/warp_grep/index.js +14 -20
  162. package/dist/tools/warp_grep/openai.cjs +145 -568
  163. package/dist/tools/warp_grep/openai.cjs.map +1 -1
  164. package/dist/tools/warp_grep/openai.d.ts +0 -3
  165. package/dist/tools/warp_grep/openai.js +11 -15
  166. package/dist/tools/warp_grep/providers/local.cjs +17 -10
  167. package/dist/tools/warp_grep/providers/local.cjs.map +1 -1
  168. package/dist/tools/warp_grep/providers/local.d.ts +6 -1
  169. package/dist/tools/warp_grep/providers/local.js +2 -2
  170. package/dist/tools/warp_grep/providers/remote.cjs +4 -5
  171. package/dist/tools/warp_grep/providers/remote.cjs.map +1 -1
  172. package/dist/tools/warp_grep/providers/remote.js +2 -2
  173. package/dist/tools/warp_grep/providers/types.cjs.map +1 -1
  174. package/dist/tools/warp_grep/providers/types.d.ts +2 -0
  175. package/dist/tools/warp_grep/vercel.cjs +145 -562
  176. package/dist/tools/warp_grep/vercel.cjs.map +1 -1
  177. package/dist/tools/warp_grep/vercel.d.ts +0 -1
  178. package/dist/tools/warp_grep/vercel.js +11 -15
  179. package/dist/version.cjs +2 -2
  180. package/dist/version.cjs.map +1 -1
  181. package/dist/version.js +1 -1
  182. package/package.json +2 -2
  183. package/dist/chunk-27BLOUAR.js.map +0 -1
  184. package/dist/chunk-3MLWXJTJ.js.map +0 -1
  185. package/dist/chunk-APP75CBN.js +0 -98
  186. package/dist/chunk-APP75CBN.js.map +0 -1
  187. package/dist/chunk-EF7ZYLA2.js.map +0 -1
  188. package/dist/chunk-FMLHRJDF.js +0 -207
  189. package/dist/chunk-FMLHRJDF.js.map +0 -1
  190. package/dist/chunk-GHGJAQSJ.js +0 -282
  191. package/dist/chunk-GHGJAQSJ.js.map +0 -1
  192. package/dist/chunk-HHRHUUGN.js.map +0 -1
  193. package/dist/chunk-ICLIJKYL.js.map +0 -1
  194. package/dist/chunk-M6VWLSL4.js.map +0 -1
  195. package/dist/chunk-OTOVGCG6.js.map +0 -1
  196. package/dist/chunk-PUGSTXLO.js.map +0 -1
  197. package/dist/tools/warp_grep/agent/prompt.cjs +0 -232
  198. package/dist/tools/warp_grep/agent/prompt.cjs.map +0 -1
  199. package/dist/tools/warp_grep/agent/prompt.d.ts +0 -4
  200. package/dist/tools/warp_grep/agent/prompt.js +0 -10
  201. package/dist/tools/warp_grep/agent/prompt.js.map +0 -1
  202. /package/dist/{chunk-BFJAFWMR.js.map → chunk-3NLCSADX.js.map} +0 -0
  203. /package/dist/{chunk-KQRX2K2W.js.map → chunk-5CIUBER5.js.map} +0 -0
  204. /package/dist/{chunk-STPK3AAF.js.map → chunk-6722FXFI.js.map} +0 -0
  205. /package/dist/{chunk-3ZO2UAYM.js.map → chunk-6Y2LHEJJ.js.map} +0 -0
  206. /package/dist/{chunk-S4RLT56A.js.map → chunk-C26M3TWM.js.map} +0 -0
  207. /package/dist/{chunk-F7VTQZH7.js.map → chunk-CPZKCBED.js.map} +0 -0
  208. /package/dist/{chunk-W4PYHVIJ.js.map → chunk-EB656RG6.js.map} +0 -0
  209. /package/dist/{chunk-A2OVRHEW.js.map → chunk-FAH4YGRN.js.map} +0 -0
  210. /package/dist/{chunk-DUJ32DHI.js.map → chunk-GISRJI5P.js.map} +0 -0
  211. /package/dist/{chunk-VKQLHW6G.js.map → chunk-IYZX6EYC.js.map} +0 -0
  212. /package/dist/{chunk-Z7U7ZRMP.js.map → chunk-K6GLBQBV.js.map} +0 -0
  213. /package/dist/{chunk-ZVVCJGNL.js.map → chunk-KJVFYRXY.js.map} +0 -0
  214. /package/dist/{chunk-WG5E7MMA.js.map → chunk-KUABSLVR.js.map} +0 -0
  215. /package/dist/{chunk-KAI2DLL5.js.map → chunk-R74NP2D4.js.map} +0 -0
  216. /package/dist/{chunk-N6YX3M4I.js.map → chunk-TREVNTLA.js.map} +0 -0
  217. /package/dist/{chunk-EIJAUTHH.js.map → chunk-ULZOJQ2W.js.map} +0 -0
  218. /package/dist/{chunk-ZD5PEXNS.js.map → chunk-VYJUGQUR.js.map} +0 -0
  219. /package/dist/{chunk-34UAUD5I.js.map → chunk-YHZRHPJI.js.map} +0 -0
@@ -1,232 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // tools/warp_grep/agent/prompt.ts
21
- var prompt_exports = {};
22
- __export(prompt_exports, {
23
- SYSTEM_PROMPT: () => SYSTEM_PROMPT,
24
- getSystemPrompt: () => getSystemPrompt
25
- });
26
- module.exports = __toCommonJS(prompt_exports);
27
- var SYSTEM_PROMPT = `You are a code search agent. Your task is to find all relevant code for a given search_string.
28
-
29
- ### workflow
30
- You have exactly 4 turns. The 4th turn MUST be a \`finish\` call. Each turn allows up to 8 parallel tool calls.
31
-
32
- - Turn 1: Map the territory OR dive deep (based on search_string specificity)
33
- - Turn 2-3: Refine based on findings
34
- - Turn 4: MUST call \`finish\` with all relevant code locations
35
- - You MAY call \`finish\` early if confident\u2014but never before at least 1 search turn.
36
- - The user strongly prefers if you can call the finish tool early, but you must be correct
37
-
38
- Remember, if the task feels easy to you, it is strongly desirable to call 'finish' early using fewer turns, but quality over speed
39
-
40
- ### tools
41
- Tool calls use nested XML elements:
42
- \`\`\`xml
43
- <tool_name>
44
- <parameter>value</parameter>
45
- </tool_name>
46
- \`\`\`
47
-
48
- ### \`list_directory\`
49
- Directory tree view. Shows structure of a path, optionally filtered by regex pattern.
50
-
51
- Elements:
52
- - \`<path>\` (required): Directory path to list (use \`.\` for repo root)
53
- - \`<pattern>\` (optional): Regex to filter results
54
-
55
- Examples:
56
- \`\`\`
57
- <list_directory>
58
- <path>src/services</path>
59
- </list_directory>
60
-
61
- <list_directory>
62
- <path>lib/utils</path>
63
- <pattern>.*\\.(ts|js)$</pattern>
64
- </list_directory>
65
- \`\`\`
66
-
67
- ### \`read\`
68
- Read file contents. Supports multiple line ranges.
69
- - Returns numbered lines for easy reference
70
- - ALWAYS include import statements (usually lines 1-20). Better to over-include than miss context.
71
-
72
- Elements:
73
- - \`<path>\` (required): File path to read
74
- - \`<lines>\` (optional): Line ranges like "1-50,75-80,100-120" (omit to read entire file)
75
-
76
- Examples:
77
- \`\`\`
78
- <read>
79
- <path>src/main.py</path>
80
- </read>
81
-
82
- <read>
83
- <path>src/auth.py</path>
84
- <lines>1-20,45-80,150-200</lines>
85
- </read>
86
- \`\`\`
87
-
88
- ### \`grep\`
89
- Search for pattern matches across files. Returns matches with 1 line of context above and below.
90
- - Match lines use \`:\` separator \u2192 \`filepath:linenum:content\`
91
- - Context lines use \`-\` separator \u2192 \`filepath-linenum-content\`
92
-
93
- Elements:
94
- - \`<pattern>\` (required): Search pattern (regex). Use \`(a|b)\` for OR patterns.
95
- - \`<sub_dir>\` (optional): Subdirectory to search in (defaults to \`.\`)
96
- - \`<glob>\` (optional): File pattern filter like \`*.py\` or \`*.{ts,tsx}\`
97
-
98
- Examples:
99
- \`\`\`
100
- <grep>
101
- <pattern>(authenticate|authorize|login)</pattern>
102
- <sub_dir>src/auth/</sub_dir>
103
- </grep>
104
-
105
- <grep>
106
- <pattern>class.*(Service|Controller)</pattern>
107
- <glob>*.{ts,js}</glob>
108
- </grep>
109
-
110
- <grep>
111
- <pattern>(DB_HOST|DATABASE_URL|connection)</pattern>
112
- <glob>*.{py,yaml,env}</glob>
113
- <sub_dir>lib/</sub_dir>
114
- </grep>
115
- \`\`\`
116
-
117
- ### \`finish\`
118
- Submit final answer with all relevant code locations. Uses nested \`<file>\` elements.
119
-
120
- File elements:
121
- - \`<path>\` (required): File path
122
- - \`<lines>\` (optional): Line ranges like "1-50,75-80" (\`*\` for entire file)
123
-
124
- ALWAYS include import statements (usually lines 1-20). Better to over-include than miss context.
125
-
126
- Examples:
127
- \`\`\`
128
- <finish>
129
- <file>
130
- <path>src/auth.py</path>
131
- <lines>1-15,25-50,75-80</lines>
132
- </file>
133
- <file>
134
- <path>src/models/user.py</path>
135
- <lines>*</lines>
136
- </file>
137
- </finish>
138
- \`\`\`
139
- </tools>
140
-
141
- <strategy>
142
- **Before your first tool call, classify the search_string:**
143
-
144
- | Search_string Type | Round 1 Strategy | Early Finish? |
145
- |------------|------------------|---------------|
146
- | **Specific** (function name, error string, unique identifier) | 8 parallel greps on likely paths | Often by round 2 |
147
- | **Conceptual** (how does X work, where is Y handled) | list_directory + 2-3 broad greps | Rarely early |
148
- | **Exploratory** (find all tests, list API endpoints) | list_directory at multiple depths | Usually needs 3 rounds |
149
-
150
- **Parallel call patterns:**
151
- - **Shotgun grep**: Same pattern, 8 different directories\u2014fast coverage
152
- - **Variant grep**: 8 pattern variations (synonyms, naming conventions)\u2014catches inconsistent codebases
153
- - **Funnel**: 1 list_directory + 7 greps\u2014orient and search simultaneously
154
- - **Deep read**: 8 reads on files you already identified\u2014gather full context fast
155
-
156
- **Tool call expectations:**
157
- - Low quality tool calls are ones that give back sparse information. This either means they are not well thought out and are not educated guesses OR, they are too broad and give back too many results.
158
- - High quality tool calls strike a balance between complexity in the tool call to exclude results we know we don't want, and how wide the search space is so that we don't miss anything. It is ok to start off with wider search spaces, but is imperative that you use your intuition from there on out and seek high quality tool calls only.
159
- - You are not starting blind, you have some information about root level repo structure going in, so use that to prevent making trivial repo wide queries.
160
- - The grep tool shows you which file path and line numbers the pattern was found in, use this information smartly when trying to read the file.
161
- </strategy>
162
-
163
- <output_format>
164
- EVERY response MUST follow this exact format:
165
-
166
- 1. First, wrap your reasoning in \`<think>...</think>\` tags containing:
167
- - Search_string classification (specific/conceptual/exploratory)
168
- - Confidence estimate (can I finish in 1-2 rounds?)
169
- - This round's parallel strategy
170
- - What signals would let me finish early?
171
-
172
- 2. Then, output up to 8 tool calls using nested XML elements.
173
-
174
- Example:
175
- \`\`\`
176
- <think>
177
- This is a specific search_string about authentication. I'll grep for auth-related patterns.
178
- High confidence I can finish in 2 rounds if I find the auth module. I have already been shown the repo's structure at root
179
- Strategy: Shotgun grep across likely directories.
180
- </think>
181
- <grep>
182
- <pattern>(authenticate|login|session)</pattern>
183
- <sub_dir>src/auth/</sub_dir>
184
- </grep>
185
- <grep>
186
- <pattern>(middleware|interceptor)</pattern>
187
- <glob>*.{ts,js}</glob>
188
- </grep>
189
- <list_directory>
190
- <path>src/auth</path>
191
- </list_directory>
192
- \`\`\`
193
-
194
- Finishing example:
195
- \`\`\`
196
- <think>
197
- I think I have a rough idea, but this is my last turn so I must call the finish tool regardless.
198
- </think>
199
- <finish>
200
- <file>
201
- <path>src/auth/login.py</path>
202
- <lines>1-50</lines>
203
- </file>
204
- <file>
205
- <path>src/middleware/session.py</path>
206
- <lines>10-80</lines>
207
- </file>
208
- </finish>
209
- \`\`\`
210
-
211
- No commentary outside \`<think>\`. No explanations after tool calls.
212
- </output_format>
213
-
214
- use as all 8 tool calls to be optimal
215
-
216
- <finishing_requirements>
217
- When calling \`finish\`:
218
- - Include the import section (typically lines 1-20) of each file
219
- - Include all function/class definitions that are relevant
220
- - Include any type definitions, interfaces, or constants used
221
- - Better to over-include than leave the user missing context
222
- - If unsure about boundaries, include more rather than less
223
- </finishing_requirements>`;
224
- function getSystemPrompt() {
225
- return SYSTEM_PROMPT;
226
- }
227
- // Annotate the CommonJS export names for ESM import in node:
228
- 0 && (module.exports = {
229
- SYSTEM_PROMPT,
230
- getSystemPrompt
231
- });
232
- //# sourceMappingURL=prompt.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../tools/warp_grep/agent/prompt.ts"],"sourcesContent":["export const SYSTEM_PROMPT = `You are a code search agent. Your task is to find all relevant code for a given search_string.\n\n### workflow\nYou have exactly 4 turns. The 4th turn MUST be a \\`finish\\` call. Each turn allows up to 8 parallel tool calls.\n\n- Turn 1: Map the territory OR dive deep (based on search_string specificity)\n- Turn 2-3: Refine based on findings\n- Turn 4: MUST call \\`finish\\` with all relevant code locations\n- You MAY call \\`finish\\` early if confident—but never before at least 1 search turn.\n- The user strongly prefers if you can call the finish tool early, but you must be correct\n\nRemember, if the task feels easy to you, it is strongly desirable to call 'finish' early using fewer turns, but quality over speed\n\n### tools\nTool calls use nested XML elements:\n\\`\\`\\`xml\n<tool_name>\n <parameter>value</parameter>\n</tool_name>\n\\`\\`\\`\n\n### \\`list_directory\\`\nDirectory tree view. Shows structure of a path, optionally filtered by regex pattern.\n\nElements:\n- \\`<path>\\` (required): Directory path to list (use \\`.\\` for repo root)\n- \\`<pattern>\\` (optional): Regex to filter results\n\nExamples:\n\\`\\`\\`\n<list_directory>\n <path>src/services</path>\n</list_directory>\n\n<list_directory>\n <path>lib/utils</path>\n <pattern>.*\\\\.(ts|js)$</pattern>\n</list_directory>\n\\`\\`\\`\n\n### \\`read\\`\nRead file contents. Supports multiple line ranges.\n- Returns numbered lines for easy reference\n- ALWAYS include import statements (usually lines 1-20). Better to over-include than miss context.\n\nElements:\n- \\`<path>\\` (required): File path to read\n- \\`<lines>\\` (optional): Line ranges like \"1-50,75-80,100-120\" (omit to read entire file)\n\nExamples:\n\\`\\`\\`\n<read>\n <path>src/main.py</path>\n</read>\n\n<read>\n <path>src/auth.py</path>\n <lines>1-20,45-80,150-200</lines>\n</read>\n\\`\\`\\`\n\n### \\`grep\\`\nSearch for pattern matches across files. Returns matches with 1 line of context above and below.\n- Match lines use \\`:\\` separator → \\`filepath:linenum:content\\`\n- Context lines use \\`-\\` separator → \\`filepath-linenum-content\\`\n\nElements:\n- \\`<pattern>\\` (required): Search pattern (regex). Use \\`(a|b)\\` for OR patterns.\n- \\`<sub_dir>\\` (optional): Subdirectory to search in (defaults to \\`.\\`)\n- \\`<glob>\\` (optional): File pattern filter like \\`*.py\\` or \\`*.{ts,tsx}\\`\n\nExamples:\n\\`\\`\\`\n<grep>\n <pattern>(authenticate|authorize|login)</pattern>\n <sub_dir>src/auth/</sub_dir>\n</grep>\n\n<grep>\n <pattern>class.*(Service|Controller)</pattern>\n <glob>*.{ts,js}</glob>\n</grep>\n\n<grep>\n <pattern>(DB_HOST|DATABASE_URL|connection)</pattern>\n <glob>*.{py,yaml,env}</glob>\n <sub_dir>lib/</sub_dir>\n</grep>\n\\`\\`\\`\n\n### \\`finish\\`\nSubmit final answer with all relevant code locations. Uses nested \\`<file>\\` elements.\n\nFile elements:\n- \\`<path>\\` (required): File path\n- \\`<lines>\\` (optional): Line ranges like \"1-50,75-80\" (\\`*\\` for entire file)\n\nALWAYS include import statements (usually lines 1-20). Better to over-include than miss context.\n\nExamples:\n\\`\\`\\`\n<finish>\n <file>\n <path>src/auth.py</path>\n <lines>1-15,25-50,75-80</lines>\n </file>\n <file>\n <path>src/models/user.py</path>\n <lines>*</lines>\n </file>\n</finish>\n\\`\\`\\`\n</tools>\n\n<strategy>\n**Before your first tool call, classify the search_string:**\n\n| Search_string Type | Round 1 Strategy | Early Finish? |\n|------------|------------------|---------------|\n| **Specific** (function name, error string, unique identifier) | 8 parallel greps on likely paths | Often by round 2 |\n| **Conceptual** (how does X work, where is Y handled) | list_directory + 2-3 broad greps | Rarely early |\n| **Exploratory** (find all tests, list API endpoints) | list_directory at multiple depths | Usually needs 3 rounds |\n\n**Parallel call patterns:**\n- **Shotgun grep**: Same pattern, 8 different directories—fast coverage\n- **Variant grep**: 8 pattern variations (synonyms, naming conventions)—catches inconsistent codebases\n- **Funnel**: 1 list_directory + 7 greps—orient and search simultaneously\n- **Deep read**: 8 reads on files you already identified—gather full context fast\n\n**Tool call expectations:**\n- Low quality tool calls are ones that give back sparse information. This either means they are not well thought out and are not educated guesses OR, they are too broad and give back too many results.\n- High quality tool calls strike a balance between complexity in the tool call to exclude results we know we don't want, and how wide the search space is so that we don't miss anything. It is ok to start off with wider search spaces, but is imperative that you use your intuition from there on out and seek high quality tool calls only.\n- You are not starting blind, you have some information about root level repo structure going in, so use that to prevent making trivial repo wide queries.\n- The grep tool shows you which file path and line numbers the pattern was found in, use this information smartly when trying to read the file.\n</strategy>\n\n<output_format>\nEVERY response MUST follow this exact format:\n\n1. First, wrap your reasoning in \\`<think>...</think>\\` tags containing:\n - Search_string classification (specific/conceptual/exploratory)\n - Confidence estimate (can I finish in 1-2 rounds?)\n - This round's parallel strategy\n - What signals would let me finish early?\n\n2. Then, output up to 8 tool calls using nested XML elements.\n\nExample:\n\\`\\`\\`\n<think>\nThis is a specific search_string about authentication. I'll grep for auth-related patterns.\nHigh confidence I can finish in 2 rounds if I find the auth module. I have already been shown the repo's structure at root\nStrategy: Shotgun grep across likely directories.\n</think>\n<grep>\n <pattern>(authenticate|login|session)</pattern>\n <sub_dir>src/auth/</sub_dir>\n</grep>\n<grep>\n <pattern>(middleware|interceptor)</pattern>\n <glob>*.{ts,js}</glob>\n</grep>\n<list_directory>\n <path>src/auth</path>\n</list_directory>\n\\`\\`\\`\n\nFinishing example:\n\\`\\`\\`\n<think>\nI think I have a rough idea, but this is my last turn so I must call the finish tool regardless.\n</think>\n<finish>\n <file>\n <path>src/auth/login.py</path>\n <lines>1-50</lines>\n </file>\n <file>\n <path>src/middleware/session.py</path>\n <lines>10-80</lines>\n </file>\n</finish>\n\\`\\`\\`\n\nNo commentary outside \\`<think>\\`. No explanations after tool calls.\n</output_format>\n\nuse as all 8 tool calls to be optimal\n\n<finishing_requirements>\nWhen calling \\`finish\\`:\n- Include the import section (typically lines 1-20) of each file\n- Include all function/class definitions that are relevant\n- Include any type definitions, interfaces, or constants used\n- Better to over-include than leave the user missing context\n- If unsure about boundaries, include more rather than less\n</finishing_requirements>`;\n\nexport function getSystemPrompt(): string {\n return SYSTEM_PROMPT;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,IAAM,gBAAgB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAsMtB,SAAS,kBAA0B;AACxC,SAAO;AACT;","names":[]}
@@ -1,4 +0,0 @@
1
- declare const SYSTEM_PROMPT = "You are a code search agent. Your task is to find all relevant code for a given search_string.\n\n### workflow\nYou have exactly 4 turns. The 4th turn MUST be a `finish` call. Each turn allows up to 8 parallel tool calls.\n\n- Turn 1: Map the territory OR dive deep (based on search_string specificity)\n- Turn 2-3: Refine based on findings\n- Turn 4: MUST call `finish` with all relevant code locations\n- You MAY call `finish` early if confident\u2014but never before at least 1 search turn.\n- The user strongly prefers if you can call the finish tool early, but you must be correct\n\nRemember, if the task feels easy to you, it is strongly desirable to call 'finish' early using fewer turns, but quality over speed\n\n### tools\nTool calls use nested XML elements:\n```xml\n<tool_name>\n <parameter>value</parameter>\n</tool_name>\n```\n\n### `list_directory`\nDirectory tree view. Shows structure of a path, optionally filtered by regex pattern.\n\nElements:\n- `<path>` (required): Directory path to list (use `.` for repo root)\n- `<pattern>` (optional): Regex to filter results\n\nExamples:\n```\n<list_directory>\n <path>src/services</path>\n</list_directory>\n\n<list_directory>\n <path>lib/utils</path>\n <pattern>.*\\.(ts|js)$</pattern>\n</list_directory>\n```\n\n### `read`\nRead file contents. Supports multiple line ranges.\n- Returns numbered lines for easy reference\n- ALWAYS include import statements (usually lines 1-20). Better to over-include than miss context.\n\nElements:\n- `<path>` (required): File path to read\n- `<lines>` (optional): Line ranges like \"1-50,75-80,100-120\" (omit to read entire file)\n\nExamples:\n```\n<read>\n <path>src/main.py</path>\n</read>\n\n<read>\n <path>src/auth.py</path>\n <lines>1-20,45-80,150-200</lines>\n</read>\n```\n\n### `grep`\nSearch for pattern matches across files. Returns matches with 1 line of context above and below.\n- Match lines use `:` separator \u2192 `filepath:linenum:content`\n- Context lines use `-` separator \u2192 `filepath-linenum-content`\n\nElements:\n- `<pattern>` (required): Search pattern (regex). Use `(a|b)` for OR patterns.\n- `<sub_dir>` (optional): Subdirectory to search in (defaults to `.`)\n- `<glob>` (optional): File pattern filter like `*.py` or `*.{ts,tsx}`\n\nExamples:\n```\n<grep>\n <pattern>(authenticate|authorize|login)</pattern>\n <sub_dir>src/auth/</sub_dir>\n</grep>\n\n<grep>\n <pattern>class.*(Service|Controller)</pattern>\n <glob>*.{ts,js}</glob>\n</grep>\n\n<grep>\n <pattern>(DB_HOST|DATABASE_URL|connection)</pattern>\n <glob>*.{py,yaml,env}</glob>\n <sub_dir>lib/</sub_dir>\n</grep>\n```\n\n### `finish`\nSubmit final answer with all relevant code locations. Uses nested `<file>` elements.\n\nFile elements:\n- `<path>` (required): File path\n- `<lines>` (optional): Line ranges like \"1-50,75-80\" (`*` for entire file)\n\nALWAYS include import statements (usually lines 1-20). Better to over-include than miss context.\n\nExamples:\n```\n<finish>\n <file>\n <path>src/auth.py</path>\n <lines>1-15,25-50,75-80</lines>\n </file>\n <file>\n <path>src/models/user.py</path>\n <lines>*</lines>\n </file>\n</finish>\n```\n</tools>\n\n<strategy>\n**Before your first tool call, classify the search_string:**\n\n| Search_string Type | Round 1 Strategy | Early Finish? |\n|------------|------------------|---------------|\n| **Specific** (function name, error string, unique identifier) | 8 parallel greps on likely paths | Often by round 2 |\n| **Conceptual** (how does X work, where is Y handled) | list_directory + 2-3 broad greps | Rarely early |\n| **Exploratory** (find all tests, list API endpoints) | list_directory at multiple depths | Usually needs 3 rounds |\n\n**Parallel call patterns:**\n- **Shotgun grep**: Same pattern, 8 different directories\u2014fast coverage\n- **Variant grep**: 8 pattern variations (synonyms, naming conventions)\u2014catches inconsistent codebases\n- **Funnel**: 1 list_directory + 7 greps\u2014orient and search simultaneously\n- **Deep read**: 8 reads on files you already identified\u2014gather full context fast\n\n**Tool call expectations:**\n- Low quality tool calls are ones that give back sparse information. This either means they are not well thought out and are not educated guesses OR, they are too broad and give back too many results.\n- High quality tool calls strike a balance between complexity in the tool call to exclude results we know we don't want, and how wide the search space is so that we don't miss anything. It is ok to start off with wider search spaces, but is imperative that you use your intuition from there on out and seek high quality tool calls only.\n- You are not starting blind, you have some information about root level repo structure going in, so use that to prevent making trivial repo wide queries.\n- The grep tool shows you which file path and line numbers the pattern was found in, use this information smartly when trying to read the file.\n</strategy>\n\n<output_format>\nEVERY response MUST follow this exact format:\n\n1. First, wrap your reasoning in `<think>...</think>` tags containing:\n - Search_string classification (specific/conceptual/exploratory)\n - Confidence estimate (can I finish in 1-2 rounds?)\n - This round's parallel strategy\n - What signals would let me finish early?\n\n2. Then, output up to 8 tool calls using nested XML elements.\n\nExample:\n```\n<think>\nThis is a specific search_string about authentication. I'll grep for auth-related patterns.\nHigh confidence I can finish in 2 rounds if I find the auth module. I have already been shown the repo's structure at root\nStrategy: Shotgun grep across likely directories.\n</think>\n<grep>\n <pattern>(authenticate|login|session)</pattern>\n <sub_dir>src/auth/</sub_dir>\n</grep>\n<grep>\n <pattern>(middleware|interceptor)</pattern>\n <glob>*.{ts,js}</glob>\n</grep>\n<list_directory>\n <path>src/auth</path>\n</list_directory>\n```\n\nFinishing example:\n```\n<think>\nI think I have a rough idea, but this is my last turn so I must call the finish tool regardless.\n</think>\n<finish>\n <file>\n <path>src/auth/login.py</path>\n <lines>1-50</lines>\n </file>\n <file>\n <path>src/middleware/session.py</path>\n <lines>10-80</lines>\n </file>\n</finish>\n```\n\nNo commentary outside `<think>`. No explanations after tool calls.\n</output_format>\n\nuse as all 8 tool calls to be optimal\n\n<finishing_requirements>\nWhen calling `finish`:\n- Include the import section (typically lines 1-20) of each file\n- Include all function/class definitions that are relevant\n- Include any type definitions, interfaces, or constants used\n- Better to over-include than leave the user missing context\n- If unsure about boundaries, include more rather than less\n</finishing_requirements>";
2
- declare function getSystemPrompt(): string;
3
-
4
- export { SYSTEM_PROMPT, getSystemPrompt };
@@ -1,10 +0,0 @@
1
- import {
2
- SYSTEM_PROMPT,
3
- getSystemPrompt
4
- } from "../../../chunk-FMLHRJDF.js";
5
- import "../../../chunk-PZ5AY32C.js";
6
- export {
7
- SYSTEM_PROMPT,
8
- getSystemPrompt
9
- };
10
- //# sourceMappingURL=prompt.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}