@morphllm/morphsdk 0.2.202 → 0.2.204

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 (246) hide show
  1. package/README.md +101 -0
  2. package/dist/chunk-2GMG5XKU.js +100 -0
  3. package/dist/chunk-2PPYWRMZ.js +3 -4
  4. package/dist/chunk-3HAHJYZQ.cjs +74 -0
  5. package/dist/{chunk-2XU3XXUE.js → chunk-3JROKKS4.js} +3 -25
  6. package/dist/{chunk-26K5EJD3.js → chunk-43JBUEIX.js} +4 -18
  7. package/dist/chunk-44OIEPIO.js +4 -23
  8. package/dist/chunk-4EQQGUZ7.cjs +104 -0
  9. package/dist/chunk-4OUGA3KS.js +1 -5
  10. package/dist/{chunk-VQDDL3UH.js → chunk-4TZBUFVP.js} +2 -8
  11. package/dist/{chunk-YAM6P5OQ.js → chunk-564XJOQP.js} +2 -6
  12. package/dist/chunk-5H3FKFOI.cjs +77 -0
  13. package/dist/chunk-5TTZQF4X.cjs +110 -0
  14. package/dist/chunk-6HAYJA6M.cjs +317 -0
  15. package/dist/chunk-6TZCVTW5.js +3 -4
  16. package/dist/chunk-6WP7EA4F.js +2 -4
  17. package/dist/chunk-74A4HLIO.cjs +42 -0
  18. package/dist/chunk-75ZPJI57.cjs +9 -0
  19. package/dist/chunk-7PJYY46L.cjs +2 -0
  20. package/dist/chunk-AWFZKS27.cjs +11 -0
  21. package/dist/chunk-BJBWWIZV.cjs +2 -0
  22. package/dist/chunk-DLYDIYDK.cjs +305 -0
  23. package/dist/{chunk-65TUD7JV.js → chunk-DYCMPDPV.js} +13 -29
  24. package/dist/{chunk-3CPI6ZIC.js → chunk-DZP7BR66.js} +22 -43
  25. package/dist/chunk-E63OPKP7.js +96 -0
  26. package/dist/chunk-E6V75LI6.cjs +334 -0
  27. package/dist/{chunk-XPHNS7NW.js → chunk-EJ6ID24K.js} +3 -12
  28. package/dist/chunk-EJTL2BOZ.cjs +42 -0
  29. package/dist/chunk-ETBRAKVV.js +1 -5
  30. package/dist/chunk-F633IVQA.cjs +91 -0
  31. package/dist/chunk-FBOZIVVQ.js +1 -0
  32. package/dist/{chunk-UKXCGQPS.js → chunk-FGA6EYC2.js} +35 -37
  33. package/dist/{chunk-CAWQEHKP.js → chunk-G4RODMXA.js} +4 -19
  34. package/dist/chunk-GUNGJC6X.cjs +256 -0
  35. package/dist/chunk-GYE3FY6Z.js +8 -0
  36. package/dist/chunk-HDP4QAZL.js +1 -4
  37. package/dist/chunk-HNMEBYIS.cjs +86 -0
  38. package/dist/chunk-HP3PCOTW.cjs +81 -0
  39. package/dist/{chunk-ICCGLO6V.js → chunk-IGXNLXPN.js} +12 -17
  40. package/dist/chunk-IPJA3ZS6.cjs +10 -0
  41. package/dist/chunk-JHC2R3HU.cjs +317 -0
  42. package/dist/{chunk-IBRBSDLT.js → chunk-JVMIFGZY.js} +5 -8
  43. package/dist/chunk-KF6S3EPJ.cjs +100 -0
  44. package/dist/chunk-KVGZ2TSG.cjs +274 -0
  45. package/dist/{chunk-6OYJC4TZ.js → chunk-L5SCKZVK.js} +13 -22
  46. package/dist/chunk-LDM7RNNN.js +1 -0
  47. package/dist/{chunk-UAZKHSEU.js → chunk-LQST3NW2.js} +5 -15
  48. package/dist/chunk-M34E2AMK.js +1 -5
  49. package/dist/chunk-MF56KEI4.js +1 -4
  50. package/dist/chunk-MLKGABMK.js +1 -3
  51. package/dist/chunk-MLPZKUCO.js +4 -5
  52. package/dist/chunk-MMX5PUGC.cjs +242 -0
  53. package/dist/chunk-MWXJ6DZ2.cjs +21 -0
  54. package/dist/chunk-NJWOWXUR.cjs +137 -0
  55. package/dist/chunk-NNKBKENK.cjs +15 -0
  56. package/dist/chunk-NRG6QX3L.js +1 -3
  57. package/dist/chunk-OCKEEEYE.cjs +433 -0
  58. package/dist/chunk-OENJO7YW.js +306 -0
  59. package/dist/chunk-OKLAYEBC.cjs +2 -0
  60. package/dist/chunk-OPDWMD4Q.js +1 -3
  61. package/dist/{chunk-D6YJ5X3C.js → chunk-OX5GN2KB.js} +26 -14
  62. package/dist/{chunk-JEVLCA5C.js → chunk-OYBOP47A.js} +18 -19
  63. package/dist/chunk-OZHCHPIE.js +1 -0
  64. package/dist/chunk-PA3UTI4A.js +1 -4
  65. package/dist/chunk-QEEAIXL5.cjs +74 -0
  66. package/dist/chunk-QT5LGZG3.cjs +10 -0
  67. package/dist/chunk-R3TUE7O2.cjs +107 -0
  68. package/dist/chunk-RYVW7RUM.js +2 -6
  69. package/dist/{chunk-LVKKICOB.js → chunk-SOQYE5A4.js} +36 -69
  70. package/dist/chunk-ST2OXLT5.cjs +91 -0
  71. package/dist/{chunk-SIFDK4AA.js → chunk-TH4MG73B.js} +3 -24
  72. package/dist/{chunk-OSL4CNSO.js → chunk-TLMAMVAW.js} +7 -23
  73. package/dist/chunk-TPZHMD7J.cjs +72 -0
  74. package/dist/{chunk-PDSIWL7I.js → chunk-U4PYAGNR.js} +6 -19
  75. package/dist/chunk-UAPK3AIJ.js +1 -10
  76. package/dist/chunk-UF5IKELS.cjs +26 -0
  77. package/dist/chunk-UHFVWYSP.cjs +408 -0
  78. package/dist/chunk-UKBSXYKE.cjs +280 -0
  79. package/dist/chunk-UNX7V6P6.cjs +60 -0
  80. package/dist/chunk-UZMMJ47A.cjs +107 -0
  81. package/dist/chunk-VHD7CW5O.cjs +43 -0
  82. package/dist/chunk-VL4QNALG.cjs +50 -0
  83. package/dist/chunk-VYE7O4FM.cjs +51 -0
  84. package/dist/chunk-WIYVT4UO.cjs +173 -0
  85. package/dist/chunk-WJHHO24M.cjs +91 -0
  86. package/dist/chunk-WR7LSUIR.cjs +213 -0
  87. package/dist/chunk-XE6D4J63.cjs +72 -0
  88. package/dist/chunk-YAUXTFIN.cjs +21 -0
  89. package/dist/{chunk-NFPRKZQ5.js → chunk-YJUCGZNN.js} +5 -22
  90. package/dist/chunk-ZSHVXDA2.js +4 -10
  91. package/dist/chunk-ZX6T3LNG.js +302 -0
  92. package/dist/{client-BWhi-vSj.d.ts → client-DSXbcxII.d.ts} +10 -1
  93. package/dist/client.cjs +44 -4360
  94. package/dist/client.d.ts +4 -2
  95. package/dist/client.js +36 -37
  96. package/dist/core/client.cjs +14 -476
  97. package/dist/core/client.d.ts +8 -0
  98. package/dist/core/client.js +10 -11
  99. package/dist/core/error.cjs +8 -251
  100. package/dist/core/error.js +4 -9
  101. package/dist/core/index.cjs +27 -491
  102. package/dist/core/index.d.ts +2 -0
  103. package/dist/core/index.js +12 -19
  104. package/dist/core/resource.cjs +9 -33
  105. package/dist/core/resource.d.ts +2 -0
  106. package/dist/core/resource.js +2 -7
  107. package/dist/edge.cjs +74 -1111
  108. package/dist/edge.d.ts +3 -0
  109. package/dist/edge.js +14 -42
  110. package/dist/guard-CvW03v4u.d.ts +59 -0
  111. package/dist/index.cjs +140 -4431
  112. package/dist/index.d.ts +6 -2
  113. package/dist/index.js +44 -87
  114. package/dist/modelrouter/core.cjs +35 -651
  115. package/dist/modelrouter/core.d.ts +2 -0
  116. package/dist/modelrouter/core.js +12 -21
  117. package/dist/modelrouter/index.cjs +35 -651
  118. package/dist/modelrouter/index.d.ts +2 -0
  119. package/dist/modelrouter/index.js +12 -21
  120. package/dist/modelrouter/types.cjs +1 -17
  121. package/dist/modelrouter/types.d.ts +5 -0
  122. package/dist/modelrouter/types.js +1 -0
  123. package/dist/subagents/anthropic.cjs +31 -2784
  124. package/dist/subagents/anthropic.d.ts +3 -1
  125. package/dist/subagents/anthropic.js +23 -24
  126. package/dist/subagents/index.cjs +14 -95
  127. package/dist/subagents/index.d.ts +3 -1
  128. package/dist/subagents/index.js +2 -11
  129. package/dist/subagents/prompts.cjs +14 -93
  130. package/dist/subagents/prompts.d.ts +3 -1
  131. package/dist/subagents/prompts.js +2 -11
  132. package/dist/subagents/types.cjs +1 -17
  133. package/dist/subagents/types.d.ts +3 -1
  134. package/dist/subagents/types.js +1 -0
  135. package/dist/subagents/vercel.cjs +31 -2761
  136. package/dist/subagents/vercel.d.ts +3 -1
  137. package/dist/subagents/vercel.js +23 -24
  138. package/dist/tools/compact/core.cjs +20 -552
  139. package/dist/tools/compact/core.d.ts +2 -0
  140. package/dist/tools/compact/core.js +12 -13
  141. package/dist/tools/compact/index.cjs +24 -598
  142. package/dist/tools/compact/index.d.ts +3 -1
  143. package/dist/tools/compact/index.js +13 -17
  144. package/dist/tools/compact/types.cjs +1 -17
  145. package/dist/tools/compact/types.d.ts +4 -4
  146. package/dist/tools/compact/types.js +1 -0
  147. package/dist/tools/fastapply/anthropic.cjs +39 -899
  148. package/dist/tools/fastapply/anthropic.d.ts +2 -0
  149. package/dist/tools/fastapply/anthropic.js +15 -24
  150. package/dist/tools/fastapply/apply.cjs +32 -672
  151. package/dist/tools/fastapply/apply.d.ts +2 -0
  152. package/dist/tools/fastapply/apply.js +8 -19
  153. package/dist/tools/fastapply/core.cjs +49 -1069
  154. package/dist/tools/fastapply/core.d.ts +3 -0
  155. package/dist/tools/fastapply/core.js +13 -29
  156. package/dist/tools/fastapply/index.cjs +56 -1052
  157. package/dist/tools/fastapply/index.d.ts +2 -0
  158. package/dist/tools/fastapply/index.js +18 -44
  159. package/dist/tools/fastapply/openai.cjs +45 -910
  160. package/dist/tools/fastapply/openai.d.ts +2 -0
  161. package/dist/tools/fastapply/openai.js +15 -26
  162. package/dist/tools/fastapply/prompts.cjs +10 -62
  163. package/dist/tools/fastapply/prompts.js +2 -9
  164. package/dist/tools/fastapply/types.cjs +1 -17
  165. package/dist/tools/fastapply/types.d.ts +9 -4
  166. package/dist/tools/fastapply/types.js +1 -0
  167. package/dist/tools/fastapply/vercel.cjs +37 -905
  168. package/dist/tools/fastapply/vercel.d.ts +2 -0
  169. package/dist/tools/fastapply/vercel.js +15 -22
  170. package/dist/tools/index.cjs +56 -1052
  171. package/dist/tools/index.d.ts +2 -0
  172. package/dist/tools/index.js +18 -44
  173. package/dist/tools/pii/index.cjs +47 -0
  174. package/dist/tools/pii/index.d.ts +4 -0
  175. package/dist/tools/pii/index.js +6 -0
  176. package/dist/tools/pii/model.cjs +45 -0
  177. package/dist/tools/pii/model.d.ts +83 -0
  178. package/dist/tools/pii/model.js +4 -0
  179. package/dist/tools/pii/patterns.cjs +15 -0
  180. package/dist/tools/pii/patterns.d.ts +31 -0
  181. package/dist/tools/pii/patterns.js +2 -0
  182. package/dist/tools/pii/regex.cjs +32 -0
  183. package/dist/tools/pii/regex.d.ts +48 -0
  184. package/dist/tools/pii/regex.js +3 -0
  185. package/dist/tools/pii/types.cjs +2 -0
  186. package/dist/tools/pii/types.d.ts +108 -0
  187. package/dist/tools/pii/types.js +1 -0
  188. package/dist/tools/utils/resilience.cjs +15 -312
  189. package/dist/tools/utils/resilience.js +3 -12
  190. package/dist/tools/warp_grep/agent/config.cjs +16 -127
  191. package/dist/tools/warp_grep/agent/config.js +2 -11
  192. package/dist/tools/warp_grep/agent/formatter.cjs +12 -48
  193. package/dist/tools/warp_grep/agent/formatter.js +2 -9
  194. package/dist/tools/warp_grep/agent/parser.cjs +16 -83
  195. package/dist/tools/warp_grep/agent/parser.d.ts +2 -0
  196. package/dist/tools/warp_grep/agent/parser.js +2 -11
  197. package/dist/tools/warp_grep/agent/runner.cjs +19 -1081
  198. package/dist/tools/warp_grep/agent/runner.d.ts +2 -0
  199. package/dist/tools/warp_grep/agent/runner.js +11 -14
  200. package/dist/tools/warp_grep/agent/types.cjs +1 -17
  201. package/dist/tools/warp_grep/agent/types.d.ts +4 -0
  202. package/dist/tools/warp_grep/agent/types.js +1 -0
  203. package/dist/tools/warp_grep/anthropic.cjs +51 -2561
  204. package/dist/tools/warp_grep/anthropic.d.ts +3 -1
  205. package/dist/tools/warp_grep/anthropic.js +23 -35
  206. package/dist/tools/warp_grep/client.cjs +53 -2471
  207. package/dist/tools/warp_grep/client.d.ts +3 -1
  208. package/dist/tools/warp_grep/client.js +21 -34
  209. package/dist/tools/warp_grep/gemini.cjs +52 -2490
  210. package/dist/tools/warp_grep/gemini.d.ts +3 -1
  211. package/dist/tools/warp_grep/gemini.js +25 -41
  212. package/dist/tools/warp_grep/harness.cjs +81 -936
  213. package/dist/tools/warp_grep/harness.d.ts +2 -0
  214. package/dist/tools/warp_grep/harness.js +12 -51
  215. package/dist/tools/warp_grep/index.cjs +128 -2575
  216. package/dist/tools/warp_grep/index.d.ts +3 -1
  217. package/dist/tools/warp_grep/index.js +28 -87
  218. package/dist/tools/warp_grep/openai.cjs +57 -2575
  219. package/dist/tools/warp_grep/openai.d.ts +3 -1
  220. package/dist/tools/warp_grep/openai.js +23 -37
  221. package/dist/tools/warp_grep/providers/code_storage_http.cjs +12 -65
  222. package/dist/tools/warp_grep/providers/code_storage_http.d.ts +3 -1
  223. package/dist/tools/warp_grep/providers/code_storage_http.js +2 -9
  224. package/dist/tools/warp_grep/providers/local.cjs +10 -589
  225. package/dist/tools/warp_grep/providers/local.js +6 -11
  226. package/dist/tools/warp_grep/providers/remote.cjs +8 -331
  227. package/dist/tools/warp_grep/providers/remote.d.ts +3 -1
  228. package/dist/tools/warp_grep/providers/remote.js +3 -8
  229. package/dist/tools/warp_grep/providers/types.cjs +1 -17
  230. package/dist/tools/warp_grep/providers/types.js +1 -0
  231. package/dist/tools/warp_grep/utils/files.cjs +9 -42
  232. package/dist/tools/warp_grep/utils/files.js +2 -7
  233. package/dist/tools/warp_grep/utils/github.cjs +9 -43
  234. package/dist/tools/warp_grep/utils/github.js +2 -7
  235. package/dist/tools/warp_grep/utils/paths.cjs +28 -104
  236. package/dist/tools/warp_grep/utils/paths.js +2 -17
  237. package/dist/tools/warp_grep/utils/ripgrep.cjs +9 -103
  238. package/dist/tools/warp_grep/utils/ripgrep.js +2 -7
  239. package/dist/tools/warp_grep/vercel.cjs +57 -2557
  240. package/dist/tools/warp_grep/vercel.d.ts +3 -1
  241. package/dist/tools/warp_grep/vercel.js +23 -37
  242. package/dist/{types-DxZLPogx.d.ts → types-BKhXjDCB.d.ts} +6 -1
  243. package/dist/version.cjs +7 -225
  244. package/dist/version.js +2 -7
  245. package/package.json +11 -2
  246. package/dist/chunk-E6TL6MIH.js +0 -203
@@ -1,7 +1,9 @@
1
1
  import { Tool } from '@anthropic-ai/sdk/resources/messages';
2
2
  import { ExploreSubagentConfig, ExploreResult, ExploreSession, ExploreEvent } from './types.js';
3
- import '../types-DxZLPogx.js';
3
+ import '../types-BKhXjDCB.js';
4
4
  import '../tools/warp_grep/providers/types.js';
5
+ import '../guard-CvW03v4u.js';
6
+ import '../tools/pii/types.js';
5
7
  import '../tools/utils/resilience.js';
6
8
 
7
9
  /**
@@ -1,24 +1,23 @@
1
- import {
2
- createExploreSubagent
3
- } from "../chunk-XPHNS7NW.js";
4
- import "../chunk-3CPI6ZIC.js";
5
- import "../chunk-HDP4QAZL.js";
6
- import "../chunk-RYVW7RUM.js";
7
- import "../chunk-OPDWMD4Q.js";
8
- import "../chunk-UKXCGQPS.js";
9
- import "../chunk-44OIEPIO.js";
10
- import "../chunk-M34E2AMK.js";
11
- import "../chunk-4OUGA3KS.js";
12
- import "../chunk-IBRBSDLT.js";
13
- import "../chunk-ETBRAKVV.js";
14
- import "../chunk-D6YJ5X3C.js";
15
- import "../chunk-ICCGLO6V.js";
16
- import "../chunk-6WP7EA4F.js";
17
- import "../chunk-YAM6P5OQ.js";
18
- import "../chunk-VQDDL3UH.js";
19
- import "../chunk-E6TL6MIH.js";
20
- import "../chunk-NRG6QX3L.js";
21
- import "../chunk-MLKGABMK.js";
22
- export {
23
- createExploreSubagent
24
- };
1
+ export { createExploreSubagent } from '../chunk-EJ6ID24K.js';
2
+ import '../chunk-DZP7BR66.js';
3
+ import '../chunk-RYVW7RUM.js';
4
+ import '../chunk-OPDWMD4Q.js';
5
+ import '../chunk-FGA6EYC2.js';
6
+ import '../chunk-HDP4QAZL.js';
7
+ import '../chunk-44OIEPIO.js';
8
+ import '../chunk-4OUGA3KS.js';
9
+ import '../chunk-M34E2AMK.js';
10
+ import '../chunk-JVMIFGZY.js';
11
+ import '../chunk-ETBRAKVV.js';
12
+ import '../chunk-OX5GN2KB.js';
13
+ import '../chunk-IGXNLXPN.js';
14
+ import '../chunk-6WP7EA4F.js';
15
+ import '../chunk-E63OPKP7.js';
16
+ import '../chunk-OENJO7YW.js';
17
+ import '../chunk-2GMG5XKU.js';
18
+ import '../chunk-ZX6T3LNG.js';
19
+ import '../chunk-564XJOQP.js';
20
+ import '../chunk-4TZBUFVP.js';
21
+ import '../chunk-GYE3FY6Z.js';
22
+ import '../chunk-NRG6QX3L.js';
23
+ import '../chunk-MLKGABMK.js';
@@ -1,100 +1,19 @@
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);
1
+ 'use strict';
19
2
 
20
- // subagents/index.ts
21
- var subagents_exports = {};
22
- __export(subagents_exports, {
23
- CODEBASE_SEARCH_TOOL: () => CODEBASE_SEARCH_TOOL,
24
- SEND_MESSAGE_TOOL: () => SEND_MESSAGE_TOOL,
25
- getSystemPrompt: () => getSystemPrompt
26
- });
27
- module.exports = __toCommonJS(subagents_exports);
28
-
29
- // subagents/prompts.ts
30
- var THOROUGHNESS_INSTRUCTIONS = {
31
- quick: `Do 1-2 targeted searches. Find the most relevant file/function quickly and summarize. Don't go deep.`,
32
- medium: `Do 2-4 searches. Start broad, then follow up on the most promising leads. Cover the main aspects.`,
33
- thorough: `Do 4-8 searches. Explore systematically: start broad, then drill into each relevant area. Cover edge cases, related files, and the full call chain. Leave no stone unturned.`
34
- };
35
- function getSystemPrompt(thoroughness = "medium") {
36
- return `You are a codebase exploration specialist. Your job is to search a codebase and return a concise, accurate summary of what you find.
37
-
38
- ## Mode
39
- READ-ONLY. You cannot modify files. You can only search and read code.
40
-
41
- ## Strategy
42
- ${THOROUGHNESS_INSTRUCTIONS[thoroughness]}
3
+ var chunkTPZHMD7J_cjs = require('../chunk-TPZHMD7J.cjs');
4
+ require('../chunk-75ZPJI57.cjs');
43
5
 
44
- - Use multiple focused searches rather than one vague search
45
- - Follow imports, function calls, and type references to build complete understanding
46
- - If a search returns no results, try alternative terms (e.g., "auth" vs "authentication" vs "login")
47
- - Look at both implementation and tests when relevant
48
6
 
49
- ## Communication
50
- You have a \`send_message\` tool. Use it when:
51
- - You hit a fork in the road and need guidance ("Found auth in both src/middleware/ and legacy/auth/. Which should I focus on?")
52
- - You need clarification on ambiguous requests ("There are 3 auth strategies: JWT, session, OAuth. Which one?")
53
- - You want to share a key finding before continuing ("The main auth handler is in src/auth/index.ts. It delegates to strategy-specific modules. Continuing to trace JWT flow.")
54
7
 
55
- Do NOT use send_message for routine status updates. Only use it when you genuinely need input or have a significant finding worth sharing before you're done.
56
-
57
- ## Output
58
- When you have enough information, output your final summary. Structure it as:
59
- 1. Direct answer to the question
60
- 2. Key files and their roles
61
- 3. How the pieces connect
62
-
63
- Be concise. The summary should be useful to another AI model that will use your findings to complete a task.`;
64
- }
65
- var CODEBASE_SEARCH_TOOL = {
66
- name: "codebase_search",
67
- description: "Search the codebase for relevant code. Takes a natural language search request describing what you want to find. Returns matching file contents with line numbers.",
68
- input_schema: {
69
- type: "object",
70
- properties: {
71
- searchRequest: {
72
- type: "string",
73
- description: "Natural language description of what to search for in the codebase"
74
- }
75
- },
76
- required: ["searchRequest"],
77
- additionalProperties: false
78
- }
79
- };
80
- var SEND_MESSAGE_TOOL = {
81
- name: "send_message",
82
- description: "Send a message to the orchestrating agent. Use this to ask questions, request clarification, or share important findings. The orchestrator may reply with additional context. Use sparingly \u2014 only when you genuinely need input or have a significant finding.",
83
- input_schema: {
84
- type: "object",
85
- properties: {
86
- message: {
87
- type: "string",
88
- description: "The message to send to the orchestrator"
89
- }
90
- },
91
- required: ["message"],
92
- additionalProperties: false
93
- }
94
- };
95
- // Annotate the CommonJS export names for ESM import in node:
96
- 0 && (module.exports = {
97
- CODEBASE_SEARCH_TOOL,
98
- SEND_MESSAGE_TOOL,
99
- getSystemPrompt
8
+ Object.defineProperty(exports, "CODEBASE_SEARCH_TOOL", {
9
+ enumerable: true,
10
+ get: function () { return chunkTPZHMD7J_cjs.CODEBASE_SEARCH_TOOL; }
11
+ });
12
+ Object.defineProperty(exports, "SEND_MESSAGE_TOOL", {
13
+ enumerable: true,
14
+ get: function () { return chunkTPZHMD7J_cjs.SEND_MESSAGE_TOOL; }
15
+ });
16
+ Object.defineProperty(exports, "getSystemPrompt", {
17
+ enumerable: true,
18
+ get: function () { return chunkTPZHMD7J_cjs.getSystemPrompt; }
100
19
  });
@@ -1,5 +1,7 @@
1
1
  export { ExploreEvent, ExploreResult, ExploreSession, ExploreStep, ExploreSubagentConfig, ExploreThoroughness, MessageHandler, StepHandler, SubagentMessage } from './types.js';
2
2
  export { CODEBASE_SEARCH_TOOL, SEND_MESSAGE_TOOL, getSystemPrompt } from './prompts.js';
3
- import '../types-DxZLPogx.js';
3
+ import '../types-BKhXjDCB.js';
4
4
  import '../tools/warp_grep/providers/types.js';
5
+ import '../guard-CvW03v4u.js';
6
+ import '../tools/pii/types.js';
5
7
  import '../tools/utils/resilience.js';
@@ -1,11 +1,2 @@
1
- import {
2
- CODEBASE_SEARCH_TOOL,
3
- SEND_MESSAGE_TOOL,
4
- getSystemPrompt
5
- } from "../chunk-ETBRAKVV.js";
6
- import "../chunk-MLKGABMK.js";
7
- export {
8
- CODEBASE_SEARCH_TOOL,
9
- SEND_MESSAGE_TOOL,
10
- getSystemPrompt
11
- };
1
+ export { CODEBASE_SEARCH_TOOL, SEND_MESSAGE_TOOL, getSystemPrompt } from '../chunk-ETBRAKVV.js';
2
+ import '../chunk-MLKGABMK.js';
@@ -1,98 +1,19 @@
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);
1
+ 'use strict';
19
2
 
20
- // subagents/prompts.ts
21
- var prompts_exports = {};
22
- __export(prompts_exports, {
23
- CODEBASE_SEARCH_TOOL: () => CODEBASE_SEARCH_TOOL,
24
- SEND_MESSAGE_TOOL: () => SEND_MESSAGE_TOOL,
25
- getSystemPrompt: () => getSystemPrompt
26
- });
27
- module.exports = __toCommonJS(prompts_exports);
28
- var THOROUGHNESS_INSTRUCTIONS = {
29
- quick: `Do 1-2 targeted searches. Find the most relevant file/function quickly and summarize. Don't go deep.`,
30
- medium: `Do 2-4 searches. Start broad, then follow up on the most promising leads. Cover the main aspects.`,
31
- thorough: `Do 4-8 searches. Explore systematically: start broad, then drill into each relevant area. Cover edge cases, related files, and the full call chain. Leave no stone unturned.`
32
- };
33
- function getSystemPrompt(thoroughness = "medium") {
34
- return `You are a codebase exploration specialist. Your job is to search a codebase and return a concise, accurate summary of what you find.
35
-
36
- ## Mode
37
- READ-ONLY. You cannot modify files. You can only search and read code.
38
-
39
- ## Strategy
40
- ${THOROUGHNESS_INSTRUCTIONS[thoroughness]}
41
-
42
- - Use multiple focused searches rather than one vague search
43
- - Follow imports, function calls, and type references to build complete understanding
44
- - If a search returns no results, try alternative terms (e.g., "auth" vs "authentication" vs "login")
45
- - Look at both implementation and tests when relevant
3
+ var chunkTPZHMD7J_cjs = require('../chunk-TPZHMD7J.cjs');
4
+ require('../chunk-75ZPJI57.cjs');
46
5
 
47
- ## Communication
48
- You have a \`send_message\` tool. Use it when:
49
- - You hit a fork in the road and need guidance ("Found auth in both src/middleware/ and legacy/auth/. Which should I focus on?")
50
- - You need clarification on ambiguous requests ("There are 3 auth strategies: JWT, session, OAuth. Which one?")
51
- - You want to share a key finding before continuing ("The main auth handler is in src/auth/index.ts. It delegates to strategy-specific modules. Continuing to trace JWT flow.")
52
6
 
53
- Do NOT use send_message for routine status updates. Only use it when you genuinely need input or have a significant finding worth sharing before you're done.
54
7
 
55
- ## Output
56
- When you have enough information, output your final summary. Structure it as:
57
- 1. Direct answer to the question
58
- 2. Key files and their roles
59
- 3. How the pieces connect
60
-
61
- Be concise. The summary should be useful to another AI model that will use your findings to complete a task.`;
62
- }
63
- var CODEBASE_SEARCH_TOOL = {
64
- name: "codebase_search",
65
- description: "Search the codebase for relevant code. Takes a natural language search request describing what you want to find. Returns matching file contents with line numbers.",
66
- input_schema: {
67
- type: "object",
68
- properties: {
69
- searchRequest: {
70
- type: "string",
71
- description: "Natural language description of what to search for in the codebase"
72
- }
73
- },
74
- required: ["searchRequest"],
75
- additionalProperties: false
76
- }
77
- };
78
- var SEND_MESSAGE_TOOL = {
79
- name: "send_message",
80
- description: "Send a message to the orchestrating agent. Use this to ask questions, request clarification, or share important findings. The orchestrator may reply with additional context. Use sparingly \u2014 only when you genuinely need input or have a significant finding.",
81
- input_schema: {
82
- type: "object",
83
- properties: {
84
- message: {
85
- type: "string",
86
- description: "The message to send to the orchestrator"
87
- }
88
- },
89
- required: ["message"],
90
- additionalProperties: false
91
- }
92
- };
93
- // Annotate the CommonJS export names for ESM import in node:
94
- 0 && (module.exports = {
95
- CODEBASE_SEARCH_TOOL,
96
- SEND_MESSAGE_TOOL,
97
- getSystemPrompt
8
+ Object.defineProperty(exports, "CODEBASE_SEARCH_TOOL", {
9
+ enumerable: true,
10
+ get: function () { return chunkTPZHMD7J_cjs.CODEBASE_SEARCH_TOOL; }
11
+ });
12
+ Object.defineProperty(exports, "SEND_MESSAGE_TOOL", {
13
+ enumerable: true,
14
+ get: function () { return chunkTPZHMD7J_cjs.SEND_MESSAGE_TOOL; }
15
+ });
16
+ Object.defineProperty(exports, "getSystemPrompt", {
17
+ enumerable: true,
18
+ get: function () { return chunkTPZHMD7J_cjs.getSystemPrompt; }
98
19
  });
@@ -1,6 +1,8 @@
1
1
  import { ExploreThoroughness } from './types.js';
2
- import '../types-DxZLPogx.js';
2
+ import '../types-BKhXjDCB.js';
3
3
  import '../tools/warp_grep/providers/types.js';
4
+ import '../guard-CvW03v4u.js';
5
+ import '../tools/pii/types.js';
4
6
  import '../tools/utils/resilience.js';
5
7
 
6
8
  /**
@@ -1,11 +1,2 @@
1
- import {
2
- CODEBASE_SEARCH_TOOL,
3
- SEND_MESSAGE_TOOL,
4
- getSystemPrompt
5
- } from "../chunk-ETBRAKVV.js";
6
- import "../chunk-MLKGABMK.js";
7
- export {
8
- CODEBASE_SEARCH_TOOL,
9
- SEND_MESSAGE_TOOL,
10
- getSystemPrompt
11
- };
1
+ export { CODEBASE_SEARCH_TOOL, SEND_MESSAGE_TOOL, getSystemPrompt } from '../chunk-ETBRAKVV.js';
2
+ import '../chunk-MLKGABMK.js';
@@ -1,18 +1,2 @@
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 __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
1
+ 'use strict';
15
2
 
16
- // subagents/types.ts
17
- var types_exports = {};
18
- module.exports = __toCommonJS(types_exports);
@@ -1,5 +1,7 @@
1
- import { c as WarpGrepContext } from '../types-DxZLPogx.js';
1
+ import { c as WarpGrepContext } from '../types-BKhXjDCB.js';
2
2
  import '../tools/warp_grep/providers/types.js';
3
+ import '../guard-CvW03v4u.js';
4
+ import '../tools/pii/types.js';
3
5
  import '../tools/utils/resilience.js';
4
6
 
5
7
  /**
@@ -0,0 +1 @@
1
+