@morphllm/morphsdk 0.2.63 → 0.2.64

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 (101) hide show
  1. package/dist/{chunk-PKPJWARB.js → chunk-5QIWYEHJ.js} +2 -2
  2. package/dist/{chunk-3WMLFUAR.js → chunk-BLKHVDYQ.js} +3 -3
  3. package/dist/{chunk-T6677HCA.js → chunk-DT6MPBD4.js} +8 -8
  4. package/dist/{chunk-GJ573YH3.js → chunk-IQFKDBQD.js} +3 -3
  5. package/dist/{chunk-BHNJEBQJ.js → chunk-IUG2FHNN.js} +2 -2
  6. package/dist/{chunk-GM5VR33N.js → chunk-NTCSWQEM.js} +3 -3
  7. package/dist/chunk-PZ5AY32C.js +10 -0
  8. package/dist/{chunk-IXNSTNS7.js → chunk-QZNGKOCZ.js} +2 -2
  9. package/dist/{chunk-TTBXKDCT.js → chunk-S6FZAPJ7.js} +3 -3
  10. package/dist/{chunk-3SHLMXBV.js → chunk-SUBBMTMY.js} +2 -2
  11. package/dist/chunk-SUBBMTMY.js.map +1 -0
  12. package/dist/{chunk-563RLKFC.js → chunk-TPP2UGQP.js} +7 -21
  13. package/dist/chunk-TPP2UGQP.js.map +1 -0
  14. package/dist/{chunk-PNIQNTXR.js → chunk-V2IEG55Y.js} +3 -3
  15. package/dist/{chunk-JNOZPU44.js → chunk-ZO4PPFCZ.js} +2 -2
  16. package/dist/client.cjs +7 -33
  17. package/dist/client.cjs.map +1 -1
  18. package/dist/client.js +12 -12
  19. package/dist/git/client.js +1 -1
  20. package/dist/git/config.js +1 -1
  21. package/dist/git/index.js +1 -1
  22. package/dist/index.cjs +7 -33
  23. package/dist/index.cjs.map +1 -1
  24. package/dist/index.js +13 -13
  25. package/dist/modelrouter/core.js +1 -1
  26. package/dist/modelrouter/index.js +1 -1
  27. package/dist/tools/browser/anthropic.js +1 -1
  28. package/dist/tools/browser/core.js +1 -1
  29. package/dist/tools/browser/index.js +1 -1
  30. package/dist/tools/browser/live.js +1 -1
  31. package/dist/tools/browser/openai.js +1 -1
  32. package/dist/tools/browser/prompts.js +1 -1
  33. package/dist/tools/browser/vercel.js +1 -1
  34. package/dist/tools/codebase_search/anthropic.js +1 -1
  35. package/dist/tools/codebase_search/core.js +1 -1
  36. package/dist/tools/codebase_search/index.js +1 -1
  37. package/dist/tools/codebase_search/openai.js +1 -1
  38. package/dist/tools/codebase_search/prompts.js +1 -1
  39. package/dist/tools/codebase_search/vercel.js +1 -1
  40. package/dist/tools/fastapply/anthropic.js +2 -2
  41. package/dist/tools/fastapply/core.js +1 -1
  42. package/dist/tools/fastapply/index.js +4 -4
  43. package/dist/tools/fastapply/openai.js +2 -2
  44. package/dist/tools/fastapply/prompts.js +1 -1
  45. package/dist/tools/fastapply/vercel.js +2 -2
  46. package/dist/tools/index.js +4 -4
  47. package/dist/tools/utils/resilience.js +1 -1
  48. package/dist/tools/warp_grep/agent/config.js +1 -1
  49. package/dist/tools/warp_grep/agent/formatter.js +1 -1
  50. package/dist/tools/warp_grep/agent/parser.js +1 -1
  51. package/dist/tools/warp_grep/agent/prompt.js +1 -1
  52. package/dist/tools/warp_grep/agent/runner.cjs +1 -1
  53. package/dist/tools/warp_grep/agent/runner.cjs.map +1 -1
  54. package/dist/tools/warp_grep/agent/runner.js +2 -2
  55. package/dist/tools/warp_grep/anthropic.cjs +7 -33
  56. package/dist/tools/warp_grep/anthropic.cjs.map +1 -1
  57. package/dist/tools/warp_grep/anthropic.js +6 -6
  58. package/dist/tools/warp_grep/client.cjs +7 -33
  59. package/dist/tools/warp_grep/client.cjs.map +1 -1
  60. package/dist/tools/warp_grep/client.js +5 -5
  61. package/dist/tools/warp_grep/gemini.cjs +7 -33
  62. package/dist/tools/warp_grep/gemini.cjs.map +1 -1
  63. package/dist/tools/warp_grep/gemini.js +6 -6
  64. package/dist/tools/warp_grep/harness.cjs +6 -32
  65. package/dist/tools/warp_grep/harness.cjs.map +1 -1
  66. package/dist/tools/warp_grep/harness.js +3 -3
  67. package/dist/tools/warp_grep/index.cjs +7 -33
  68. package/dist/tools/warp_grep/index.cjs.map +1 -1
  69. package/dist/tools/warp_grep/index.js +9 -9
  70. package/dist/tools/warp_grep/openai.cjs +7 -33
  71. package/dist/tools/warp_grep/openai.cjs.map +1 -1
  72. package/dist/tools/warp_grep/openai.js +6 -6
  73. package/dist/tools/warp_grep/providers/local.cjs +6 -32
  74. package/dist/tools/warp_grep/providers/local.cjs.map +1 -1
  75. package/dist/tools/warp_grep/providers/local.js +3 -3
  76. package/dist/tools/warp_grep/providers/remote.js +1 -1
  77. package/dist/tools/warp_grep/utils/files.js +1 -1
  78. package/dist/tools/warp_grep/utils/paths.js +1 -1
  79. package/dist/tools/warp_grep/utils/ripgrep.cjs +6 -42
  80. package/dist/tools/warp_grep/utils/ripgrep.cjs.map +1 -1
  81. package/dist/tools/warp_grep/utils/ripgrep.js +2 -2
  82. package/dist/tools/warp_grep/vercel.cjs +7 -33
  83. package/dist/tools/warp_grep/vercel.cjs.map +1 -1
  84. package/dist/tools/warp_grep/vercel.js +6 -6
  85. package/package.json +2 -4
  86. package/dist/chunk-3SHLMXBV.js.map +0 -1
  87. package/dist/chunk-563RLKFC.js.map +0 -1
  88. package/dist/chunk-5FUTL2UF.js +0 -22
  89. package/dist/lib-GEPX5Y3T.js +0 -14
  90. package/dist/lib-GEPX5Y3T.js.map +0 -1
  91. /package/dist/{chunk-PKPJWARB.js.map → chunk-5QIWYEHJ.js.map} +0 -0
  92. /package/dist/{chunk-3WMLFUAR.js.map → chunk-BLKHVDYQ.js.map} +0 -0
  93. /package/dist/{chunk-T6677HCA.js.map → chunk-DT6MPBD4.js.map} +0 -0
  94. /package/dist/{chunk-GJ573YH3.js.map → chunk-IQFKDBQD.js.map} +0 -0
  95. /package/dist/{chunk-BHNJEBQJ.js.map → chunk-IUG2FHNN.js.map} +0 -0
  96. /package/dist/{chunk-GM5VR33N.js.map → chunk-NTCSWQEM.js.map} +0 -0
  97. /package/dist/{chunk-5FUTL2UF.js.map → chunk-PZ5AY32C.js.map} +0 -0
  98. /package/dist/{chunk-IXNSTNS7.js.map → chunk-QZNGKOCZ.js.map} +0 -0
  99. /package/dist/{chunk-TTBXKDCT.js.map → chunk-S6FZAPJ7.js.map} +0 -0
  100. /package/dist/{chunk-PNIQNTXR.js.map → chunk-V2IEG55Y.js.map} +0 -0
  101. /package/dist/{chunk-JNOZPU44.js.map → chunk-ZO4PPFCZ.js.map} +0 -0
@@ -1,16 +1,16 @@
1
1
  import "../../chunk-ISWL67SF.js";
2
2
  import {
3
3
  gemini_exports
4
- } from "../../chunk-PNIQNTXR.js";
4
+ } from "../../chunk-V2IEG55Y.js";
5
5
  import {
6
6
  anthropic_exports
7
- } from "../../chunk-GM5VR33N.js";
7
+ } from "../../chunk-NTCSWQEM.js";
8
8
  import {
9
9
  openai_exports
10
- } from "../../chunk-3WMLFUAR.js";
10
+ } from "../../chunk-BLKHVDYQ.js";
11
11
  import {
12
12
  vercel_exports
13
- } from "../../chunk-GJ573YH3.js";
13
+ } from "../../chunk-IQFKDBQD.js";
14
14
  import {
15
15
  WARP_GREP_DESCRIPTION,
16
16
  WARP_GREP_TOOL_NAME
@@ -20,10 +20,10 @@ import {
20
20
  executeToolCall,
21
21
  executeWarpGrep,
22
22
  formatResult
23
- } from "../../chunk-TTBXKDCT.js";
23
+ } from "../../chunk-S6FZAPJ7.js";
24
24
  import {
25
25
  runWarpGrep
26
- } from "../../chunk-3SHLMXBV.js";
26
+ } from "../../chunk-SUBBMTMY.js";
27
27
  import {
28
28
  RemoteCommandsProvider
29
29
  } from "../../chunk-527P5X2E.js";
@@ -42,13 +42,13 @@ import {
42
42
  } from "../../chunk-Q5AHGIQO.js";
43
43
  import {
44
44
  LocalRipgrepProvider
45
- } from "../../chunk-JNOZPU44.js";
45
+ } from "../../chunk-ZO4PPFCZ.js";
46
46
  import "../../chunk-G2RSY56Q.js";
47
47
  import "../../chunk-SMGZ6A64.js";
48
- import "../../chunk-563RLKFC.js";
48
+ import "../../chunk-TPP2UGQP.js";
49
49
  import "../../chunk-XT5ZO6ES.js";
50
50
  import "../../chunk-4VWJFZVS.js";
51
- import "../../chunk-5FUTL2UF.js";
51
+ import "../../chunk-PZ5AY32C.js";
52
52
  export {
53
53
  LocalRipgrepProvider,
54
54
  RemoteCommandsProvider,
@@ -5,9 +5,6 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __getProtoOf = Object.getPrototypeOf;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __commonJS = (cb, mod) => function __require() {
9
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
- };
11
8
  var __export = (target, all) => {
12
9
  for (var name in all)
13
10
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -30,15 +27,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
30
27
  ));
31
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
32
29
 
33
- // node_modules/@vscode/ripgrep/lib/index.js
34
- var require_lib = __commonJS({
35
- "node_modules/@vscode/ripgrep/lib/index.js"(exports2, module2) {
36
- "use strict";
37
- var path5 = require("path");
38
- module2.exports.rgPath = path5.join(__dirname, `../bin/rg${process.platform === "win32" ? ".exe" : ""}`);
39
- }
40
- });
41
-
42
30
  // tools/warp_grep/openai.ts
43
31
  var openai_exports = {};
44
32
  __export(openai_exports, {
@@ -1008,7 +996,7 @@ async function runWarpGrep(config) {
1008
996
  messages.push({ role: "assistant", content: assistantContent });
1009
997
  const toolCalls = parser.parse(assistantContent);
1010
998
  if (toolCalls.length === 0) {
1011
- errors.push({ message: "No tool calls produced by the model. Your MCP is likely out of date! Update it by running: npm cache clean --force && npx -y @morphllm/morphmcp@latest" });
999
+ errors.push({ message: "No tool calls produced by the model. Your MCP is likely out of date! Update it by running: rm -rf ~/.npm/_npx && npm cache clean --force && npx -y @morphllm/morphmcp@latest" });
1012
1000
  terminationReason = "terminated";
1013
1001
  break;
1014
1002
  }
@@ -1111,20 +1099,9 @@ var import_path4 = __toESM(require("path"), 1);
1111
1099
 
1112
1100
  // tools/warp_grep/utils/ripgrep.ts
1113
1101
  var import_child_process = require("child_process");
1102
+ var import_ripgrep = require("@vscode/ripgrep");
1114
1103
  var resolvedRgPath = null;
1115
1104
  var rgPathChecked = false;
1116
- var bundledRgPath = null;
1117
- async function getBundledRgPath() {
1118
- if (bundledRgPath !== null) return bundledRgPath;
1119
- try {
1120
- const module2 = await Promise.resolve().then(() => __toESM(require_lib(), 1));
1121
- bundledRgPath = module2.rgPath;
1122
- return bundledRgPath;
1123
- } catch {
1124
- bundledRgPath = "";
1125
- return null;
1126
- }
1127
- }
1128
1105
  function spawnRg(rgBinary, args, opts) {
1129
1106
  return new Promise((resolve) => {
1130
1107
  const child = (0, import_child_process.spawn)(rgBinary, args, {
@@ -1155,14 +1132,11 @@ async function runRipgrep(args, opts) {
1155
1132
  return spawnRg(resolvedRgPath, args, opts);
1156
1133
  }
1157
1134
  if (!rgPathChecked) {
1158
- const bundledPath = await getBundledRgPath();
1159
- if (bundledPath) {
1160
- const result = await spawnRg(bundledPath, args, opts);
1161
- if (!isBinaryFailure(result)) {
1162
- resolvedRgPath = bundledPath;
1163
- rgPathChecked = true;
1164
- return result;
1165
- }
1135
+ const result = await spawnRg(import_ripgrep.rgPath, args, opts);
1136
+ if (!isBinaryFailure(result)) {
1137
+ resolvedRgPath = import_ripgrep.rgPath;
1138
+ rgPathChecked = true;
1139
+ return result;
1166
1140
  }
1167
1141
  const fallbackResult = await spawnRg("rg", args, opts);
1168
1142
  if (!isBinaryFailure(fallbackResult)) {