@morphllm/morphsdk 0.2.126 → 0.2.128

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 (168) hide show
  1. package/dist/{chunk-GISRJI5P.js → chunk-2QEBF4AZ.js} +2 -2
  2. package/dist/{chunk-K2FXHDX2.js → chunk-2U3RMBXT.js} +2 -2
  3. package/dist/chunk-2U3RMBXT.js.map +1 -0
  4. package/dist/{chunk-YHZRHPJI.js → chunk-2VG5U65J.js} +2 -2
  5. package/dist/{chunk-6722FXFI.js → chunk-2WSTJZ44.js} +2 -2
  6. package/dist/{chunk-76PPJZWV.js → chunk-4TIWAMKP.js} +8 -4
  7. package/dist/{chunk-76PPJZWV.js.map → chunk-4TIWAMKP.js.map} +1 -1
  8. package/dist/{chunk-VYJUGQUR.js → chunk-5K6NULTA.js} +1 -1
  9. package/dist/{chunk-AXYGFPEJ.js → chunk-6DRIR7AI.js} +5 -4
  10. package/dist/chunk-6DRIR7AI.js.map +1 -0
  11. package/dist/{chunk-KJVFYRXY.js → chunk-BTOLMQSL.js} +15 -15
  12. package/dist/{chunk-R74NP2D4.js → chunk-E2ZUOZXR.js} +2 -2
  13. package/dist/{chunk-FAH4YGRN.js → chunk-E3OFQTVC.js} +3 -3
  14. package/dist/{chunk-KUABSLVR.js → chunk-EYNEGN53.js} +2 -2
  15. package/dist/{chunk-QK5RNORE.js → chunk-GXSAAPHL.js} +10 -5
  16. package/dist/{chunk-QK5RNORE.js.map → chunk-GXSAAPHL.js.map} +1 -1
  17. package/dist/{chunk-5CIUBER5.js → chunk-KJ2LHKMG.js} +2 -2
  18. package/dist/{chunk-EB656RG6.js → chunk-PMNJ36FT.js} +2 -2
  19. package/dist/{chunk-W7WUZMKZ.js → chunk-QADEVECV.js} +5 -5
  20. package/dist/chunk-QADEVECV.js.map +1 -0
  21. package/dist/{chunk-3NLCSADX.js → chunk-RAHZBCQA.js} +2 -2
  22. package/dist/{chunk-K6GLBQBV.js → chunk-S6PJ5HUJ.js} +2 -2
  23. package/dist/{chunk-CYVV5X5K.js → chunk-TI7HMM55.js} +2 -2
  24. package/dist/{chunk-CYVV5X5K.js.map → chunk-TI7HMM55.js.map} +1 -1
  25. package/dist/{chunk-C26M3TWM.js → chunk-TUJEEBG6.js} +2 -2
  26. package/dist/{chunk-37ZZ24IX.js → chunk-TWF4NJLY.js} +8 -4
  27. package/dist/{chunk-37ZZ24IX.js.map → chunk-TWF4NJLY.js.map} +1 -1
  28. package/dist/{chunk-CPZKCBED.js → chunk-UTEC7ALJ.js} +2 -2
  29. package/dist/{chunk-IYZX6EYC.js → chunk-UWIR6MF5.js} +2 -2
  30. package/dist/{chunk-ULZOJQ2W.js → chunk-V57QVD3A.js} +2 -2
  31. package/dist/{chunk-TREVNTLA.js → chunk-XILGON6V.js} +2 -2
  32. package/dist/{chunk-6Y2LHEJJ.js → chunk-Z4BQLSRH.js} +2 -2
  33. package/dist/{client-s3_iDem0.d.ts → client-CNYzlN_6.d.ts} +6 -3
  34. package/dist/client.cjs +25 -11
  35. package/dist/client.cjs.map +1 -1
  36. package/dist/client.d.ts +1 -1
  37. package/dist/client.js +22 -22
  38. package/dist/edge.cjs +1 -1
  39. package/dist/edge.cjs.map +1 -1
  40. package/dist/edge.js +4 -4
  41. package/dist/index.cjs +25 -11
  42. package/dist/index.cjs.map +1 -1
  43. package/dist/index.d.ts +1 -1
  44. package/dist/index.js +22 -22
  45. package/dist/modelrouter/core.cjs +1 -1
  46. package/dist/modelrouter/core.cjs.map +1 -1
  47. package/dist/modelrouter/core.js +3 -3
  48. package/dist/modelrouter/index.cjs +1 -1
  49. package/dist/modelrouter/index.cjs.map +1 -1
  50. package/dist/modelrouter/index.js +3 -3
  51. package/dist/tools/browser/anthropic.cjs +1 -1
  52. package/dist/tools/browser/anthropic.cjs.map +1 -1
  53. package/dist/tools/browser/anthropic.js +5 -5
  54. package/dist/tools/browser/core.cjs +1 -1
  55. package/dist/tools/browser/core.cjs.map +1 -1
  56. package/dist/tools/browser/core.js +4 -4
  57. package/dist/tools/browser/index.cjs +1 -1
  58. package/dist/tools/browser/index.cjs.map +1 -1
  59. package/dist/tools/browser/index.js +7 -7
  60. package/dist/tools/browser/openai.cjs +1 -1
  61. package/dist/tools/browser/openai.cjs.map +1 -1
  62. package/dist/tools/browser/openai.js +5 -5
  63. package/dist/tools/browser/profiles/core.cjs +1 -1
  64. package/dist/tools/browser/profiles/core.cjs.map +1 -1
  65. package/dist/tools/browser/profiles/core.js +3 -3
  66. package/dist/tools/browser/profiles/index.cjs +1 -1
  67. package/dist/tools/browser/profiles/index.cjs.map +1 -1
  68. package/dist/tools/browser/profiles/index.js +3 -3
  69. package/dist/tools/browser/vercel.cjs +1 -1
  70. package/dist/tools/browser/vercel.cjs.map +1 -1
  71. package/dist/tools/browser/vercel.js +5 -5
  72. package/dist/tools/codebase_search/anthropic.cjs +1 -1
  73. package/dist/tools/codebase_search/anthropic.cjs.map +1 -1
  74. package/dist/tools/codebase_search/anthropic.js +4 -4
  75. package/dist/tools/codebase_search/core.cjs +1 -1
  76. package/dist/tools/codebase_search/core.cjs.map +1 -1
  77. package/dist/tools/codebase_search/core.js +3 -3
  78. package/dist/tools/codebase_search/index.cjs +1 -1
  79. package/dist/tools/codebase_search/index.cjs.map +1 -1
  80. package/dist/tools/codebase_search/index.js +6 -6
  81. package/dist/tools/codebase_search/openai.cjs +1 -1
  82. package/dist/tools/codebase_search/openai.cjs.map +1 -1
  83. package/dist/tools/codebase_search/openai.js +4 -4
  84. package/dist/tools/codebase_search/vercel.cjs +1 -1
  85. package/dist/tools/codebase_search/vercel.cjs.map +1 -1
  86. package/dist/tools/codebase_search/vercel.js +4 -4
  87. package/dist/tools/fastapply/anthropic.cjs +1 -1
  88. package/dist/tools/fastapply/anthropic.cjs.map +1 -1
  89. package/dist/tools/fastapply/anthropic.js +4 -4
  90. package/dist/tools/fastapply/apply.cjs +1 -1
  91. package/dist/tools/fastapply/apply.cjs.map +1 -1
  92. package/dist/tools/fastapply/apply.js +2 -2
  93. package/dist/tools/fastapply/core.cjs +1 -1
  94. package/dist/tools/fastapply/core.cjs.map +1 -1
  95. package/dist/tools/fastapply/core.js +3 -3
  96. package/dist/tools/fastapply/index.cjs +1 -1
  97. package/dist/tools/fastapply/index.cjs.map +1 -1
  98. package/dist/tools/fastapply/index.js +6 -6
  99. package/dist/tools/fastapply/openai.cjs +1 -1
  100. package/dist/tools/fastapply/openai.cjs.map +1 -1
  101. package/dist/tools/fastapply/openai.js +4 -4
  102. package/dist/tools/fastapply/vercel.cjs +1 -1
  103. package/dist/tools/fastapply/vercel.cjs.map +1 -1
  104. package/dist/tools/fastapply/vercel.js +4 -4
  105. package/dist/tools/index.cjs +1 -1
  106. package/dist/tools/index.cjs.map +1 -1
  107. package/dist/tools/index.js +6 -6
  108. package/dist/tools/utils/resilience.cjs +1 -1
  109. package/dist/tools/utils/resilience.cjs.map +1 -1
  110. package/dist/tools/utils/resilience.js +2 -2
  111. package/dist/tools/warp_grep/agent/runner.cjs +4 -4
  112. package/dist/tools/warp_grep/agent/runner.cjs.map +1 -1
  113. package/dist/tools/warp_grep/agent/runner.js +3 -3
  114. package/dist/tools/warp_grep/agent/types.cjs.map +1 -1
  115. package/dist/tools/warp_grep/agent/types.d.ts +2 -2
  116. package/dist/tools/warp_grep/anthropic.cjs +13 -8
  117. package/dist/tools/warp_grep/anthropic.cjs.map +1 -1
  118. package/dist/tools/warp_grep/anthropic.d.ts +2 -1
  119. package/dist/tools/warp_grep/anthropic.js +6 -6
  120. package/dist/tools/warp_grep/client.cjs +4 -4
  121. package/dist/tools/warp_grep/client.cjs.map +1 -1
  122. package/dist/tools/warp_grep/client.js +4 -4
  123. package/dist/tools/warp_grep/gemini.cjs +13 -8
  124. package/dist/tools/warp_grep/gemini.cjs.map +1 -1
  125. package/dist/tools/warp_grep/gemini.d.ts +2 -1
  126. package/dist/tools/warp_grep/gemini.js +13 -8
  127. package/dist/tools/warp_grep/gemini.js.map +1 -1
  128. package/dist/tools/warp_grep/harness.cjs +1 -1
  129. package/dist/tools/warp_grep/harness.cjs.map +1 -1
  130. package/dist/tools/warp_grep/harness.d.ts +1 -1
  131. package/dist/tools/warp_grep/harness.js +1 -1
  132. package/dist/tools/warp_grep/index.cjs +8 -7
  133. package/dist/tools/warp_grep/index.cjs.map +1 -1
  134. package/dist/tools/warp_grep/index.d.ts +6 -2
  135. package/dist/tools/warp_grep/index.js +5 -5
  136. package/dist/tools/warp_grep/openai.cjs +13 -8
  137. package/dist/tools/warp_grep/openai.cjs.map +1 -1
  138. package/dist/tools/warp_grep/openai.d.ts +2 -1
  139. package/dist/tools/warp_grep/openai.js +6 -6
  140. package/dist/tools/warp_grep/vercel.cjs +12 -7
  141. package/dist/tools/warp_grep/vercel.cjs.map +1 -1
  142. package/dist/tools/warp_grep/vercel.d.ts +2 -1
  143. package/dist/tools/warp_grep/vercel.js +6 -6
  144. package/dist/version.cjs +1 -1
  145. package/dist/version.cjs.map +1 -1
  146. package/dist/version.js +1 -1
  147. package/package.json +1 -1
  148. package/dist/chunk-AXYGFPEJ.js.map +0 -1
  149. package/dist/chunk-K2FXHDX2.js.map +0 -1
  150. package/dist/chunk-W7WUZMKZ.js.map +0 -1
  151. /package/dist/{chunk-GISRJI5P.js.map → chunk-2QEBF4AZ.js.map} +0 -0
  152. /package/dist/{chunk-YHZRHPJI.js.map → chunk-2VG5U65J.js.map} +0 -0
  153. /package/dist/{chunk-6722FXFI.js.map → chunk-2WSTJZ44.js.map} +0 -0
  154. /package/dist/{chunk-VYJUGQUR.js.map → chunk-5K6NULTA.js.map} +0 -0
  155. /package/dist/{chunk-KJVFYRXY.js.map → chunk-BTOLMQSL.js.map} +0 -0
  156. /package/dist/{chunk-R74NP2D4.js.map → chunk-E2ZUOZXR.js.map} +0 -0
  157. /package/dist/{chunk-FAH4YGRN.js.map → chunk-E3OFQTVC.js.map} +0 -0
  158. /package/dist/{chunk-KUABSLVR.js.map → chunk-EYNEGN53.js.map} +0 -0
  159. /package/dist/{chunk-5CIUBER5.js.map → chunk-KJ2LHKMG.js.map} +0 -0
  160. /package/dist/{chunk-EB656RG6.js.map → chunk-PMNJ36FT.js.map} +0 -0
  161. /package/dist/{chunk-3NLCSADX.js.map → chunk-RAHZBCQA.js.map} +0 -0
  162. /package/dist/{chunk-K6GLBQBV.js.map → chunk-S6PJ5HUJ.js.map} +0 -0
  163. /package/dist/{chunk-C26M3TWM.js.map → chunk-TUJEEBG6.js.map} +0 -0
  164. /package/dist/{chunk-CPZKCBED.js.map → chunk-UTEC7ALJ.js.map} +0 -0
  165. /package/dist/{chunk-IYZX6EYC.js.map → chunk-UWIR6MF5.js.map} +0 -0
  166. /package/dist/{chunk-ULZOJQ2W.js.map → chunk-V57QVD3A.js.map} +0 -0
  167. /package/dist/{chunk-TREVNTLA.js.map → chunk-XILGON6V.js.map} +0 -0
  168. /package/dist/{chunk-6Y2LHEJJ.js.map → chunk-Z4BQLSRH.js.map} +0 -0
@@ -31,7 +31,11 @@ declare const GITHUB_SEARCH_INPUT_SCHEMA: {
31
31
  type: "string";
32
32
  description: string;
33
33
  };
34
- github: {
34
+ github_url: {
35
+ type: "string";
36
+ description: string;
37
+ };
38
+ owner_repo: {
35
39
  type: "string";
36
40
  description: string;
37
41
  };
@@ -40,7 +44,7 @@ declare const GITHUB_SEARCH_INPUT_SCHEMA: {
40
44
  description: string;
41
45
  };
42
46
  };
43
- required: readonly ["query", "github"];
47
+ required: readonly ["query"];
44
48
  };
45
49
  declare const GITHUB_READ_FILE_TOOL_NAME = "readfile_github_search";
46
50
  declare const GITHUB_READ_FILE_DESCRIPTION: string;
@@ -18,7 +18,7 @@ import {
18
18
  GITHUB_SEARCH_TOOL_NAME,
19
19
  WARP_GREP_DESCRIPTION,
20
20
  WARP_GREP_TOOL_NAME
21
- } from "../../chunk-AXYGFPEJ.js";
21
+ } from "../../chunk-6DRIR7AI.js";
22
22
  import {
23
23
  WarpGrepClient,
24
24
  executeGitHubReadFile,
@@ -26,7 +26,7 @@ import {
26
26
  executeWarpGrep,
27
27
  formatGitHubReadFileResult,
28
28
  formatResult
29
- } from "../../chunk-C26M3TWM.js";
29
+ } from "../../chunk-TUJEEBG6.js";
30
30
  import {
31
31
  RemoteCommandsProvider
32
32
  } from "../../chunk-NF2QWJDY.js";
@@ -34,7 +34,7 @@ import "../../chunk-63VHBANJ.js";
34
34
  import {
35
35
  runWarpGrep,
36
36
  runWarpGrepStreaming
37
- } from "../../chunk-W7WUZMKZ.js";
37
+ } from "../../chunk-QADEVECV.js";
38
38
  import {
39
39
  createCodeStorageHttpCommands
40
40
  } from "../../chunk-GVGJIXV2.js";
@@ -44,11 +44,11 @@ import {
44
44
  toolGrep,
45
45
  toolListDirectory,
46
46
  toolRead
47
- } from "../../chunk-K2FXHDX2.js";
47
+ } from "../../chunk-2U3RMBXT.js";
48
48
  import "../../chunk-DKODF3YG.js";
49
49
  import "../../chunk-QRXG5CAZ.js";
50
50
  import "../../chunk-VCKJ22DX.js";
51
- import "../../chunk-CYVV5X5K.js";
51
+ import "../../chunk-TI7HMM55.js";
52
52
  import "../../chunk-PZ5AY32C.js";
53
53
  export {
54
54
  GITHUB_READ_FILE_DESCRIPTION,
@@ -897,7 +897,7 @@ function calculateContextBudget(messages) {
897
897
  async function buildInitialState(repoRoot, query, provider, options) {
898
898
  const budget = calculateContextBudget([]);
899
899
  const turnTag = `Turn 0/${AGENT_CONFIG.MAX_TURNS}`;
900
- const treeDepth = options?.query_type === "node_modules" ? 1 : 2;
900
+ const treeDepth = options?.search_type === "node_modules" ? 1 : 2;
901
901
  try {
902
902
  const entries = await provider.listDirectory({
903
903
  path: ".",
@@ -967,7 +967,7 @@ var import_openai = __toESM(require("openai"), 1);
967
967
  // package.json
968
968
  var package_default = {
969
969
  name: "@morphllm/morphsdk",
970
- version: "0.2.126",
970
+ version: "0.2.128",
971
971
  description: "TypeScript SDK and CLI for Morph Fast Apply integration",
972
972
  type: "module",
973
973
  main: "./dist/index.cjs",
@@ -1250,7 +1250,7 @@ async function runWarpGrep(config) {
1250
1250
  const messages = [];
1251
1251
  const maxTurns = AGENT_CONFIG.MAX_TURNS;
1252
1252
  const initialStateStart = Date.now();
1253
- const initialState = await buildInitialState(repoRoot, config.query, config.provider, { query_type: config.query_type });
1253
+ const initialState = await buildInitialState(repoRoot, config.query, config.provider, { search_type: config.search_type });
1254
1254
  timings.initial_state_ms = Date.now() - initialStateStart;
1255
1255
  messages.push({ role: "user", content: initialState });
1256
1256
  const provider = config.provider;
@@ -1408,7 +1408,7 @@ async function* runWarpGrepStreaming(config) {
1408
1408
  const messages = [];
1409
1409
  const maxTurns = AGENT_CONFIG.MAX_TURNS;
1410
1410
  const initialStateStart = Date.now();
1411
- const initialState = await buildInitialState(repoRoot, config.query, config.provider, { query_type: config.query_type });
1411
+ const initialState = await buildInitialState(repoRoot, config.query, config.provider, { search_type: config.search_type });
1412
1412
  timings.initial_state_ms = Date.now() - initialStateStart;
1413
1413
  messages.push({ role: "user", content: initialState });
1414
1414
  const provider = config.provider;
@@ -2052,15 +2052,16 @@ function formatResult(result) {
2052
2052
  var WARP_GREP_TOOL_NAME = "warpgrep_codebase_search";
2053
2053
  var WARP_GREP_DESCRIPTION = 'IMPORTANT: If you need to explore the codebase to gather context, and the task does not involve a single file or function which is provided by name, you should ALWAYS use the warpgrep codebase search tool first instead of running search commands. When the task requires exploration beyond a single known file, invoke warpgrep first with a natural-language query describing the target functionality, bug, or architectural concern. Warp Grep is a fast and accurate tool that can search for all relevant context in a codebase. Keep queries action-oriented (e.g., "Find where billing invoices are generated and emailed"), and after reviewing the summarized results, you may verify important findings with other search tools or direct file reads to ensure completeness. Warp Grep can be used for query types like: find function responsible for <small feature>; find code that does <description>; find code path for <big feature>; Where does <minimal error message> come from?; or any query of that type. When a task requires exploration beyond a single known file, ALWAYS default to warpgrep codebase search before other search mechanisms.';
2054
2054
  var GITHUB_WARP_GREP_SEARCH_TOOL_NAME = "warpgrep_github_search";
2055
- var GITHUB_WARP_GREP_SEARCH_DESCRIPTION = 'IMPORTANT: If you need to explore the codebase of a public GitHub repository (not your local workspace), use warpgrep_github_search instead of warpgrep_codebase_search. ONLY use this tool when the task requires understanding code in an external repo, and invoke warpgrep_github_search with a GitHub URL or owner/repo shorthand (e.g., vercel/next.js) and a natural-language query describing the target functionality, bug, or architectural concern. DO NOT use this tool when the task requires understanding code in your local workspace. Use warpgrep_codebase_search instead.Useful when you suspect a library or framework is being used in a way that is not documented, or if you suspect an update or a bug in the library or framework.WarpGrep searches GitHub repos the same way it searches local codebases: fast and accurate. Keep queries action-oriented (e.g., "Find where how the new use workflow directive works"), and after reviewing the results, you may verify important findings with other tools or direct file reads. WarpGrep can be used for query types like: find function responsible for <small feature>; find code that does <description>; find code path for <big feature>; Where does <minimal error message> come from?; or any query of that type. When a task involves exploring code in an external public repo, ALWAYS use warpgrep_github_search.';
2055
+ var GITHUB_WARP_GREP_SEARCH_DESCRIPTION = 'IMPORTANT: If you need to explore the codebase of a public GitHub repository (not your local workspace), use warpgrep_github_search instead of warpgrep_codebase_search. ONLY use this tool when the task requires understanding code in an external repo, and invoke warpgrep_github_search with a natural-language query describing the target functionality, bug, or architectural concern. DO NOT use this tool when the task requires understanding code in your local workspace. Use warpgrep_codebase_search instead.Useful when you suspect a library or framework is being used in a way that is not documented, or if you suspect an update or a bug in the library or framework.WarpGrep searches GitHub repos the same way it searches local codebases: fast and accurate. Keep queries action-oriented (e.g., "Find where how the new use workflow directive works"), and after reviewing the results, you may verify important findings with other tools or direct file reads. WarpGrep can be used for query types like: find function responsible for <small feature>; find code that does <description>; find code path for <big feature>; Where does <minimal error message> come from?; or any query of that type. When a task involves exploring code in an external public repo, ALWAYS use warpgrep_github_search. You must provide either a github_url or owner_repo parameter (at least one is required).';
2056
2056
  var GITHUB_WARP_GREP_SEARCH_INPUT_SCHEMA = {
2057
2057
  type: "object",
2058
2058
  properties: {
2059
2059
  query: { type: "string", description: "Natural language search query describing what to find in the repository" },
2060
- github: { type: "string", description: 'owner/repo shorthand (ex: "vercel/next.js" for "https://github.com/vercel/next.js")' },
2060
+ github_url: { type: "string", description: 'GitHub repository URL to search (e.g. "https://github.com/vercel/next.js"). You must provide either github_url or owner_repo.' },
2061
+ owner_repo: { type: "string", description: 'Repository owner/repo shorthand (e.g. "vercel/next.js"). You must provide either github_url or owner_repo.' },
2061
2062
  branch: { type: "string", description: "Branch to search (defaults to the repository default branch)" }
2062
2063
  },
2063
- required: ["query", "github"]
2064
+ required: ["query"]
2064
2065
  };
2065
2066
  var GITHUB_SEARCH_TOOL_NAME = GITHUB_WARP_GREP_SEARCH_TOOL_NAME;
2066
2067
  var GITHUB_SEARCH_DESCRIPTION = GITHUB_WARP_GREP_SEARCH_DESCRIPTION;
@@ -2128,7 +2129,11 @@ function createGitHubSearchTool(config) {
2128
2129
  };
2129
2130
  return Object.assign(tool, {
2130
2131
  execute: async (input) => {
2131
- return client.searchGitHub(input);
2132
+ const github = input.github_url || input.owner_repo;
2133
+ if (!github) {
2134
+ throw new Error("Please provide github search url or owner/repo id");
2135
+ }
2136
+ return client.searchGitHub({ query: input.query, github, branch: input.branch });
2132
2137
  },
2133
2138
  formatResult: (result) => {
2134
2139
  return formatResult(result);