@morphllm/morphsdk 0.2.138 → 0.2.139

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 (182) hide show
  1. package/dist/{chunk-QU5JVTYQ.js → chunk-3J74OXN6.js} +2 -2
  2. package/dist/chunk-3T5W2D2W.js +288 -0
  3. package/dist/chunk-3T5W2D2W.js.map +1 -0
  4. package/dist/{chunk-MDVFAW4F.js → chunk-4J5UW34J.js} +4 -4
  5. package/dist/{chunk-IMYH4BD2.js → chunk-5CBMLTG5.js} +5 -5
  6. package/dist/{chunk-CXSAPFUD.js → chunk-6W3X76KE.js} +21 -6
  7. package/dist/chunk-6W3X76KE.js.map +1 -0
  8. package/dist/{chunk-HP64WS73.js → chunk-6WSZDCGP.js} +2 -2
  9. package/dist/{chunk-2PU5V3MK.js → chunk-73ZLTWKF.js} +4 -4
  10. package/dist/{chunk-ZK5GJIAX.js → chunk-7RCHQN7F.js} +2 -2
  11. package/dist/{chunk-ZOC7P5RV.js → chunk-ATAQZLQN.js} +2 -2
  12. package/dist/{chunk-GSOXKIQU.js → chunk-B55ZEX4M.js} +2 -2
  13. package/dist/{chunk-QNXGYWS3.js → chunk-DRAQDTSR.js} +2 -2
  14. package/dist/{chunk-G5GPLD2E.js → chunk-EEBGEMOO.js} +2 -2
  15. package/dist/{chunk-H7RABA4R.js → chunk-EHRKLQ62.js} +2 -2
  16. package/dist/chunk-GQX4PKXZ.js +265 -0
  17. package/dist/chunk-GQX4PKXZ.js.map +1 -0
  18. package/dist/{chunk-YOOALIAK.js → chunk-MHNCFELG.js} +4 -4
  19. package/dist/{chunk-DOW7Y3AB.js → chunk-MTD2JOO7.js} +1 -1
  20. package/dist/{chunk-P4FTR3X4.js → chunk-NEVPVOTT.js} +3 -3
  21. package/dist/{chunk-CUPT64F5.js → chunk-NGHLDI64.js} +2 -2
  22. package/dist/{chunk-KWFRPYUW.js → chunk-OICUUS5Y.js} +4 -4
  23. package/dist/{chunk-QNX4PKPV.js → chunk-TCXBKB7P.js} +2 -2
  24. package/dist/{chunk-XIVAX3WB.js → chunk-ULMSWACH.js} +6 -6
  25. package/dist/{chunk-KHHSG2LO.js → chunk-XIEU3N3R.js} +4 -4
  26. package/dist/{chunk-2GSJGZYK.js → chunk-XUDE6SOY.js} +57 -21
  27. package/dist/{chunk-2GSJGZYK.js.map → chunk-XUDE6SOY.js.map} +1 -1
  28. package/dist/{chunk-XLDP5S2P.js → chunk-ZUG2L4BJ.js} +2 -2
  29. package/dist/{chunk-S3CBEA3Y.js → chunk-ZYN64ZVG.js} +4 -4
  30. package/dist/chunk-ZZ25FZG2.js +73 -0
  31. package/dist/chunk-ZZ25FZG2.js.map +1 -0
  32. package/dist/{client-Ca7e11hJ.d.ts → client-BMmG3SZs.d.ts} +39 -0
  33. package/dist/client.cjs +650 -13
  34. package/dist/client.cjs.map +1 -1
  35. package/dist/client.d.ts +2 -1
  36. package/dist/client.js +30 -27
  37. package/dist/edge.cjs +20 -5
  38. package/dist/edge.cjs.map +1 -1
  39. package/dist/edge.js +9 -9
  40. package/dist/index.cjs +653 -16
  41. package/dist/index.cjs.map +1 -1
  42. package/dist/index.d.ts +2 -1
  43. package/dist/index.js +37 -34
  44. package/dist/modelrouter/core.cjs +20 -5
  45. package/dist/modelrouter/core.cjs.map +1 -1
  46. package/dist/modelrouter/core.js +3 -3
  47. package/dist/modelrouter/index.cjs +20 -5
  48. package/dist/modelrouter/index.cjs.map +1 -1
  49. package/dist/modelrouter/index.js +3 -3
  50. package/dist/subagents/anthropic.cjs +2397 -0
  51. package/dist/subagents/anthropic.cjs.map +1 -0
  52. package/dist/subagents/anthropic.d.ts +41 -0
  53. package/dist/subagents/anthropic.js +19 -0
  54. package/dist/subagents/anthropic.js.map +1 -0
  55. package/dist/subagents/index.cjs +101 -0
  56. package/dist/subagents/index.cjs.map +1 -0
  57. package/dist/subagents/index.d.ts +5 -0
  58. package/dist/subagents/index.js +12 -0
  59. package/dist/subagents/index.js.map +1 -0
  60. package/dist/subagents/prompts.cjs +99 -0
  61. package/dist/subagents/prompts.cjs.map +1 -0
  62. package/dist/subagents/prompts.d.ts +42 -0
  63. package/dist/subagents/prompts.js +12 -0
  64. package/dist/subagents/prompts.js.map +1 -0
  65. package/dist/subagents/types.cjs +19 -0
  66. package/dist/subagents/types.cjs.map +1 -0
  67. package/dist/subagents/types.d.ts +93 -0
  68. package/dist/subagents/types.js +1 -0
  69. package/dist/subagents/types.js.map +1 -0
  70. package/dist/subagents/vercel.cjs +2374 -0
  71. package/dist/subagents/vercel.cjs.map +1 -0
  72. package/dist/subagents/vercel.d.ts +32 -0
  73. package/dist/subagents/vercel.js +19 -0
  74. package/dist/subagents/vercel.js.map +1 -0
  75. package/dist/tools/browser/anthropic.cjs +20 -5
  76. package/dist/tools/browser/anthropic.cjs.map +1 -1
  77. package/dist/tools/browser/anthropic.js +6 -6
  78. package/dist/tools/browser/core.cjs +20 -5
  79. package/dist/tools/browser/core.cjs.map +1 -1
  80. package/dist/tools/browser/core.js +5 -5
  81. package/dist/tools/browser/index.cjs +20 -5
  82. package/dist/tools/browser/index.cjs.map +1 -1
  83. package/dist/tools/browser/index.js +15 -15
  84. package/dist/tools/browser/openai.cjs +20 -5
  85. package/dist/tools/browser/openai.cjs.map +1 -1
  86. package/dist/tools/browser/openai.js +6 -6
  87. package/dist/tools/browser/profiles/core.cjs +20 -5
  88. package/dist/tools/browser/profiles/core.cjs.map +1 -1
  89. package/dist/tools/browser/profiles/core.js +3 -3
  90. package/dist/tools/browser/profiles/index.cjs +20 -5
  91. package/dist/tools/browser/profiles/index.cjs.map +1 -1
  92. package/dist/tools/browser/profiles/index.js +3 -3
  93. package/dist/tools/browser/vercel.cjs +20 -5
  94. package/dist/tools/browser/vercel.cjs.map +1 -1
  95. package/dist/tools/browser/vercel.js +6 -6
  96. package/dist/tools/codebase_search/anthropic.cjs +20 -5
  97. package/dist/tools/codebase_search/anthropic.cjs.map +1 -1
  98. package/dist/tools/codebase_search/anthropic.js +4 -4
  99. package/dist/tools/codebase_search/core.cjs +20 -5
  100. package/dist/tools/codebase_search/core.cjs.map +1 -1
  101. package/dist/tools/codebase_search/core.js +3 -3
  102. package/dist/tools/codebase_search/index.cjs +20 -5
  103. package/dist/tools/codebase_search/index.cjs.map +1 -1
  104. package/dist/tools/codebase_search/index.js +10 -10
  105. package/dist/tools/codebase_search/openai.cjs +20 -5
  106. package/dist/tools/codebase_search/openai.cjs.map +1 -1
  107. package/dist/tools/codebase_search/openai.js +4 -4
  108. package/dist/tools/codebase_search/vercel.cjs +20 -5
  109. package/dist/tools/codebase_search/vercel.cjs.map +1 -1
  110. package/dist/tools/codebase_search/vercel.js +4 -4
  111. package/dist/tools/fastapply/anthropic.cjs +20 -5
  112. package/dist/tools/fastapply/anthropic.cjs.map +1 -1
  113. package/dist/tools/fastapply/anthropic.js +4 -4
  114. package/dist/tools/fastapply/apply.cjs +20 -5
  115. package/dist/tools/fastapply/apply.cjs.map +1 -1
  116. package/dist/tools/fastapply/apply.js +2 -2
  117. package/dist/tools/fastapply/core.cjs +20 -5
  118. package/dist/tools/fastapply/core.cjs.map +1 -1
  119. package/dist/tools/fastapply/core.js +3 -3
  120. package/dist/tools/fastapply/index.cjs +20 -5
  121. package/dist/tools/fastapply/index.cjs.map +1 -1
  122. package/dist/tools/fastapply/index.js +8 -8
  123. package/dist/tools/fastapply/openai.cjs +20 -5
  124. package/dist/tools/fastapply/openai.cjs.map +1 -1
  125. package/dist/tools/fastapply/openai.js +4 -4
  126. package/dist/tools/fastapply/vercel.cjs +20 -5
  127. package/dist/tools/fastapply/vercel.cjs.map +1 -1
  128. package/dist/tools/fastapply/vercel.js +4 -4
  129. package/dist/tools/index.cjs +20 -5
  130. package/dist/tools/index.cjs.map +1 -1
  131. package/dist/tools/index.js +8 -8
  132. package/dist/tools/utils/resilience.cjs +20 -5
  133. package/dist/tools/utils/resilience.cjs.map +1 -1
  134. package/dist/tools/utils/resilience.js +2 -2
  135. package/dist/tools/warp_grep/agent/runner.cjs +20 -5
  136. package/dist/tools/warp_grep/agent/runner.cjs.map +1 -1
  137. package/dist/tools/warp_grep/agent/runner.js +3 -3
  138. package/dist/tools/warp_grep/anthropic.cjs +20 -5
  139. package/dist/tools/warp_grep/anthropic.cjs.map +1 -1
  140. package/dist/tools/warp_grep/anthropic.js +6 -6
  141. package/dist/tools/warp_grep/client.cjs +20 -5
  142. package/dist/tools/warp_grep/client.cjs.map +1 -1
  143. package/dist/tools/warp_grep/client.js +5 -5
  144. package/dist/tools/warp_grep/gemini.cjs +20 -5
  145. package/dist/tools/warp_grep/gemini.cjs.map +1 -1
  146. package/dist/tools/warp_grep/gemini.js +5 -5
  147. package/dist/tools/warp_grep/harness.js +4 -4
  148. package/dist/tools/warp_grep/index.cjs +20 -5
  149. package/dist/tools/warp_grep/index.cjs.map +1 -1
  150. package/dist/tools/warp_grep/index.js +7 -7
  151. package/dist/tools/warp_grep/openai.cjs +20 -5
  152. package/dist/tools/warp_grep/openai.cjs.map +1 -1
  153. package/dist/tools/warp_grep/openai.js +6 -6
  154. package/dist/tools/warp_grep/vercel.cjs +20 -5
  155. package/dist/tools/warp_grep/vercel.cjs.map +1 -1
  156. package/dist/tools/warp_grep/vercel.js +6 -6
  157. package/dist/version.cjs +20 -5
  158. package/dist/version.cjs.map +1 -1
  159. package/dist/version.js +1 -1
  160. package/package.json +20 -5
  161. package/dist/chunk-CXSAPFUD.js.map +0 -1
  162. /package/dist/{chunk-QU5JVTYQ.js.map → chunk-3J74OXN6.js.map} +0 -0
  163. /package/dist/{chunk-MDVFAW4F.js.map → chunk-4J5UW34J.js.map} +0 -0
  164. /package/dist/{chunk-IMYH4BD2.js.map → chunk-5CBMLTG5.js.map} +0 -0
  165. /package/dist/{chunk-HP64WS73.js.map → chunk-6WSZDCGP.js.map} +0 -0
  166. /package/dist/{chunk-2PU5V3MK.js.map → chunk-73ZLTWKF.js.map} +0 -0
  167. /package/dist/{chunk-ZK5GJIAX.js.map → chunk-7RCHQN7F.js.map} +0 -0
  168. /package/dist/{chunk-ZOC7P5RV.js.map → chunk-ATAQZLQN.js.map} +0 -0
  169. /package/dist/{chunk-GSOXKIQU.js.map → chunk-B55ZEX4M.js.map} +0 -0
  170. /package/dist/{chunk-QNXGYWS3.js.map → chunk-DRAQDTSR.js.map} +0 -0
  171. /package/dist/{chunk-G5GPLD2E.js.map → chunk-EEBGEMOO.js.map} +0 -0
  172. /package/dist/{chunk-H7RABA4R.js.map → chunk-EHRKLQ62.js.map} +0 -0
  173. /package/dist/{chunk-YOOALIAK.js.map → chunk-MHNCFELG.js.map} +0 -0
  174. /package/dist/{chunk-DOW7Y3AB.js.map → chunk-MTD2JOO7.js.map} +0 -0
  175. /package/dist/{chunk-P4FTR3X4.js.map → chunk-NEVPVOTT.js.map} +0 -0
  176. /package/dist/{chunk-CUPT64F5.js.map → chunk-NGHLDI64.js.map} +0 -0
  177. /package/dist/{chunk-KWFRPYUW.js.map → chunk-OICUUS5Y.js.map} +0 -0
  178. /package/dist/{chunk-QNX4PKPV.js.map → chunk-TCXBKB7P.js.map} +0 -0
  179. /package/dist/{chunk-XIVAX3WB.js.map → chunk-ULMSWACH.js.map} +0 -0
  180. /package/dist/{chunk-KHHSG2LO.js.map → chunk-XIEU3N3R.js.map} +0 -0
  181. /package/dist/{chunk-XLDP5S2P.js.map → chunk-ZUG2L4BJ.js.map} +0 -0
  182. /package/dist/{chunk-S3CBEA3Y.js.map → chunk-ZYN64ZVG.js.map} +0 -0
@@ -0,0 +1,12 @@
1
+ import {
2
+ CODEBASE_SEARCH_TOOL,
3
+ SEND_MESSAGE_TOOL,
4
+ getSystemPrompt
5
+ } from "../chunk-ZZ25FZG2.js";
6
+ import "../chunk-PZ5AY32C.js";
7
+ export {
8
+ CODEBASE_SEARCH_TOOL,
9
+ SEND_MESSAGE_TOOL,
10
+ getSystemPrompt
11
+ };
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,99 @@
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
+ // 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
46
+
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
+
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
+
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
98
+ });
99
+ //# sourceMappingURL=prompts.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../subagents/prompts.ts"],"sourcesContent":["/**\n * System prompts and tool descriptions for Explore subagent\n */\n\nimport type { ExploreThoroughness } from './types.js';\n\nconst THOROUGHNESS_INSTRUCTIONS: Record<ExploreThoroughness, string> = {\n quick: `Do 1-2 targeted searches. Find the most relevant file/function quickly and summarize. Don't go deep.`,\n medium: `Do 2-4 searches. Start broad, then follow up on the most promising leads. Cover the main aspects.`,\n 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.`,\n};\n\nexport function getSystemPrompt(thoroughness: ExploreThoroughness = 'medium'): string {\n return `You are a codebase exploration specialist. Your job is to search a codebase and return a concise, accurate summary of what you find.\n\n## Mode\nREAD-ONLY. You cannot modify files. You can only search and read code.\n\n## Strategy\n${THOROUGHNESS_INSTRUCTIONS[thoroughness]}\n\n- Use multiple focused searches rather than one vague search\n- Follow imports, function calls, and type references to build complete understanding\n- If a search returns no results, try alternative terms (e.g., \"auth\" vs \"authentication\" vs \"login\")\n- Look at both implementation and tests when relevant\n\n## Communication\nYou have a \\`send_message\\` tool. Use it when:\n- You hit a fork in the road and need guidance (\"Found auth in both src/middleware/ and legacy/auth/. Which should I focus on?\")\n- You need clarification on ambiguous requests (\"There are 3 auth strategies: JWT, session, OAuth. Which one?\")\n- 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.\")\n\nDo 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.\n\n## Output\nWhen you have enough information, output your final summary. Structure it as:\n1. Direct answer to the question\n2. Key files and their roles\n3. How the pieces connect\n\nBe concise. The summary should be useful to another AI model that will use your findings to complete a task.`;\n}\n\nexport const CODEBASE_SEARCH_TOOL = {\n name: 'codebase_search',\n 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.',\n input_schema: {\n type: 'object' as const,\n properties: {\n searchRequest: {\n type: 'string' as const,\n description: 'Natural language description of what to search for in the codebase',\n },\n },\n required: ['searchRequest'] as const,\n additionalProperties: false as const,\n },\n};\n\nexport const SEND_MESSAGE_TOOL = {\n name: 'send_message',\n 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 — only when you genuinely need input or have a significant finding.',\n input_schema: {\n type: 'object' as const,\n properties: {\n message: {\n type: 'string' as const,\n description: 'The message to send to the orchestrator',\n },\n },\n required: ['message'] as const,\n additionalProperties: false as const,\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAMA,IAAM,4BAAiE;AAAA,EACrE,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,UAAU;AACZ;AAEO,SAAS,gBAAgB,eAAoC,UAAkB;AACpF,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMP,0BAA0B,YAAY,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAsBzC;AAEO,IAAM,uBAAuB;AAAA,EAClC,MAAM;AAAA,EACN,aAAa;AAAA,EACb,cAAc;AAAA,IACZ,MAAM;AAAA,IACN,YAAY;AAAA,MACV,eAAe;AAAA,QACb,MAAM;AAAA,QACN,aAAa;AAAA,MACf;AAAA,IACF;AAAA,IACA,UAAU,CAAC,eAAe;AAAA,IAC1B,sBAAsB;AAAA,EACxB;AACF;AAEO,IAAM,oBAAoB;AAAA,EAC/B,MAAM;AAAA,EACN,aAAa;AAAA,EACb,cAAc;AAAA,IACZ,MAAM;AAAA,IACN,YAAY;AAAA,MACV,SAAS;AAAA,QACP,MAAM;AAAA,QACN,aAAa;AAAA,MACf;AAAA,IACF;AAAA,IACA,UAAU,CAAC,SAAS;AAAA,IACpB,sBAAsB;AAAA,EACxB;AACF;","names":[]}
@@ -0,0 +1,42 @@
1
+ import { ExploreThoroughness } from './types.js';
2
+ import '../types-D2PCc7f6.js';
3
+ import '../tools/warp_grep/providers/types.js';
4
+ import '../tools/utils/resilience.js';
5
+
6
+ /**
7
+ * System prompts and tool descriptions for Explore subagent
8
+ */
9
+
10
+ declare function getSystemPrompt(thoroughness?: ExploreThoroughness): string;
11
+ declare const CODEBASE_SEARCH_TOOL: {
12
+ name: string;
13
+ description: string;
14
+ input_schema: {
15
+ type: "object";
16
+ properties: {
17
+ searchRequest: {
18
+ type: "string";
19
+ description: string;
20
+ };
21
+ };
22
+ required: readonly ["searchRequest"];
23
+ additionalProperties: false;
24
+ };
25
+ };
26
+ declare const SEND_MESSAGE_TOOL: {
27
+ name: string;
28
+ description: string;
29
+ input_schema: {
30
+ type: "object";
31
+ properties: {
32
+ message: {
33
+ type: "string";
34
+ description: string;
35
+ };
36
+ };
37
+ required: readonly ["message"];
38
+ additionalProperties: false;
39
+ };
40
+ };
41
+
42
+ export { CODEBASE_SEARCH_TOOL, SEND_MESSAGE_TOOL, getSystemPrompt };
@@ -0,0 +1,12 @@
1
+ import {
2
+ CODEBASE_SEARCH_TOOL,
3
+ SEND_MESSAGE_TOOL,
4
+ getSystemPrompt
5
+ } from "../chunk-ZZ25FZG2.js";
6
+ import "../chunk-PZ5AY32C.js";
7
+ export {
8
+ CODEBASE_SEARCH_TOOL,
9
+ SEND_MESSAGE_TOOL,
10
+ getSystemPrompt
11
+ };
12
+ //# sourceMappingURL=prompts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +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 __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);
15
+
16
+ // subagents/types.ts
17
+ var types_exports = {};
18
+ module.exports = __toCommonJS(types_exports);
19
+ //# sourceMappingURL=types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../subagents/types.ts"],"sourcesContent":["/**\n * Types for Explore subagent\n */\n\nimport type { WarpGrepContext } from '../tools/warp_grep/types.js';\n\n/** Thoroughness level for exploration */\nexport type ExploreThoroughness = 'quick' | 'medium' | 'thorough';\n\n/** Configuration for creating an Explore subagent */\nexport interface ExploreSubagentConfig {\n /** Morph API key for WarpGrep searches */\n morphApiKey?: string;\n /** Root directory of the repository to search */\n repoRoot: string;\n /** How thorough the exploration should be */\n thoroughness?: ExploreThoroughness;\n /** Maximum number of model turns (defaults based on thoroughness) */\n maxTurns?: number;\n /** Timeout in milliseconds for the entire exploration */\n timeout?: number;\n /** Timeout in milliseconds for waiting for host reply to send_message */\n replyTimeout?: number;\n /** Glob patterns to exclude from search */\n excludes?: string[];\n /** Glob patterns to include in search */\n includes?: string[];\n}\n\n/** Result from an exploration */\nexport interface ExploreResult {\n /** Whether the exploration completed successfully */\n success: boolean;\n /** Concise summary of findings (for model consumption) */\n summary: string;\n /** Full code contexts found during exploration (for app consumption) */\n contexts: WarpGrepContext[];\n /** Number of WarpGrep searches performed */\n searchCount: number;\n /** Total duration in milliseconds */\n durationMs: number;\n /** Error message if exploration failed */\n error?: string;\n}\n\n/** Progress event for a single exploration step */\nexport interface ExploreStep {\n /** Step number (1-based) */\n step: number;\n /** The search request sent to WarpGrep */\n searchRequest: string;\n /** Number of contexts returned */\n contextsFound: number;\n /** Whether this is the final step */\n isFinal: boolean;\n}\n\n/** Message sent between host and subagent */\nexport interface SubagentMessage {\n /** Who sent the message */\n from: 'explore' | 'host';\n /** Message content */\n content: string;\n /** Timestamp */\n timestamp: number;\n}\n\n/** Union type for streaming events */\nexport type ExploreEvent =\n | { type: 'step'; step: number; searchRequest: string; contextsFound: number; isFinal: boolean }\n | { type: 'message'; from: 'explore' | 'host'; content: string; timestamp: number };\n\n/** Callback for message events */\nexport type MessageHandler = (message: SubagentMessage, reply: (text: string) => void) => void;\n\n/** Callback for step events */\nexport type StepHandler = (step: ExploreStep) => void;\n\n/** Session returned by explore.run() */\nexport interface ExploreSession {\n /** Listen for events */\n on(event: 'message', handler: MessageHandler): ExploreSession;\n on(event: 'step', handler: StepHandler): ExploreSession;\n /** Send a message to the subagent */\n send(text: string): void;\n /** Promise that resolves with the final result */\n result: Promise<ExploreResult>;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -0,0 +1,93 @@
1
+ import { c as WarpGrepContext } from '../types-D2PCc7f6.js';
2
+ import '../tools/warp_grep/providers/types.js';
3
+ import '../tools/utils/resilience.js';
4
+
5
+ /**
6
+ * Types for Explore subagent
7
+ */
8
+
9
+ /** Thoroughness level for exploration */
10
+ type ExploreThoroughness = 'quick' | 'medium' | 'thorough';
11
+ /** Configuration for creating an Explore subagent */
12
+ interface ExploreSubagentConfig {
13
+ /** Morph API key for WarpGrep searches */
14
+ morphApiKey?: string;
15
+ /** Root directory of the repository to search */
16
+ repoRoot: string;
17
+ /** How thorough the exploration should be */
18
+ thoroughness?: ExploreThoroughness;
19
+ /** Maximum number of model turns (defaults based on thoroughness) */
20
+ maxTurns?: number;
21
+ /** Timeout in milliseconds for the entire exploration */
22
+ timeout?: number;
23
+ /** Timeout in milliseconds for waiting for host reply to send_message */
24
+ replyTimeout?: number;
25
+ /** Glob patterns to exclude from search */
26
+ excludes?: string[];
27
+ /** Glob patterns to include in search */
28
+ includes?: string[];
29
+ }
30
+ /** Result from an exploration */
31
+ interface ExploreResult {
32
+ /** Whether the exploration completed successfully */
33
+ success: boolean;
34
+ /** Concise summary of findings (for model consumption) */
35
+ summary: string;
36
+ /** Full code contexts found during exploration (for app consumption) */
37
+ contexts: WarpGrepContext[];
38
+ /** Number of WarpGrep searches performed */
39
+ searchCount: number;
40
+ /** Total duration in milliseconds */
41
+ durationMs: number;
42
+ /** Error message if exploration failed */
43
+ error?: string;
44
+ }
45
+ /** Progress event for a single exploration step */
46
+ interface ExploreStep {
47
+ /** Step number (1-based) */
48
+ step: number;
49
+ /** The search request sent to WarpGrep */
50
+ searchRequest: string;
51
+ /** Number of contexts returned */
52
+ contextsFound: number;
53
+ /** Whether this is the final step */
54
+ isFinal: boolean;
55
+ }
56
+ /** Message sent between host and subagent */
57
+ interface SubagentMessage {
58
+ /** Who sent the message */
59
+ from: 'explore' | 'host';
60
+ /** Message content */
61
+ content: string;
62
+ /** Timestamp */
63
+ timestamp: number;
64
+ }
65
+ /** Union type for streaming events */
66
+ type ExploreEvent = {
67
+ type: 'step';
68
+ step: number;
69
+ searchRequest: string;
70
+ contextsFound: number;
71
+ isFinal: boolean;
72
+ } | {
73
+ type: 'message';
74
+ from: 'explore' | 'host';
75
+ content: string;
76
+ timestamp: number;
77
+ };
78
+ /** Callback for message events */
79
+ type MessageHandler = (message: SubagentMessage, reply: (text: string) => void) => void;
80
+ /** Callback for step events */
81
+ type StepHandler = (step: ExploreStep) => void;
82
+ /** Session returned by explore.run() */
83
+ interface ExploreSession {
84
+ /** Listen for events */
85
+ on(event: 'message', handler: MessageHandler): ExploreSession;
86
+ on(event: 'step', handler: StepHandler): ExploreSession;
87
+ /** Send a message to the subagent */
88
+ send(text: string): void;
89
+ /** Promise that resolves with the final result */
90
+ result: Promise<ExploreResult>;
91
+ }
92
+
93
+ export type { ExploreEvent, ExploreResult, ExploreSession, ExploreStep, ExploreSubagentConfig, ExploreThoroughness, MessageHandler, StepHandler, SubagentMessage };
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}