@morphllm/morphsdk 0.2.55 → 0.2.56

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 (36) hide show
  1. package/dist/{chunk-ZWY434TS.js → chunk-4ZHDBKBY.js} +3 -3
  2. package/dist/chunk-7OQOOB3R.js +1 -0
  3. package/dist/{chunk-BSHJGJ25.js → chunk-GJURLQ3L.js} +3 -3
  4. package/dist/{chunk-KO6JQFRE.js → chunk-QVRXBAMM.js} +2 -2
  5. package/dist/{chunk-37SRI4GW.js → chunk-SALJ2K6S.js} +4 -4
  6. package/dist/{chunk-X5HNQ7SB.js → chunk-UIRJE422.js} +3 -3
  7. package/dist/{chunk-C6QQL6FX.js → chunk-WSSSSBWU.js} +5 -5
  8. package/dist/client.js +7 -7
  9. package/dist/index.cjs +0 -67
  10. package/dist/index.cjs.map +1 -1
  11. package/dist/index.d.ts +0 -1
  12. package/dist/index.js +8 -12
  13. package/dist/tools/warp_grep/agent/runner.js +2 -2
  14. package/dist/tools/warp_grep/anthropic.js +4 -4
  15. package/dist/tools/warp_grep/index.cjs +0 -67
  16. package/dist/tools/warp_grep/index.cjs.map +1 -1
  17. package/dist/tools/warp_grep/index.d.ts +0 -1
  18. package/dist/tools/warp_grep/index.js +7 -11
  19. package/dist/tools/warp_grep/openai.js +4 -4
  20. package/dist/tools/warp_grep/vercel.js +4 -4
  21. package/package.json +2 -2
  22. package/dist/chunk-JYBVRF72.js +0 -1
  23. package/dist/chunk-P2XKFWFD.js +0 -73
  24. package/dist/chunk-P2XKFWFD.js.map +0 -1
  25. package/dist/tools/warp_grep/providers/command.cjs +0 -177
  26. package/dist/tools/warp_grep/providers/command.cjs.map +0 -1
  27. package/dist/tools/warp_grep/providers/command.d.ts +0 -48
  28. package/dist/tools/warp_grep/providers/command.js +0 -9
  29. package/dist/tools/warp_grep/providers/command.js.map +0 -1
  30. /package/dist/{chunk-ZWY434TS.js.map → chunk-4ZHDBKBY.js.map} +0 -0
  31. /package/dist/{chunk-JYBVRF72.js.map → chunk-7OQOOB3R.js.map} +0 -0
  32. /package/dist/{chunk-BSHJGJ25.js.map → chunk-GJURLQ3L.js.map} +0 -0
  33. /package/dist/{chunk-KO6JQFRE.js.map → chunk-QVRXBAMM.js.map} +0 -0
  34. /package/dist/{chunk-37SRI4GW.js.map → chunk-SALJ2K6S.js.map} +0 -0
  35. /package/dist/{chunk-X5HNQ7SB.js.map → chunk-UIRJE422.js.map} +0 -0
  36. /package/dist/{chunk-C6QQL6FX.js.map → chunk-WSSSSBWU.js.map} +0 -0
@@ -2,10 +2,10 @@ import {
2
2
  WARP_GREP_DESCRIPTION,
3
3
  WARP_GREP_TOOL_NAME,
4
4
  formatResult
5
- } from "./chunk-KO6JQFRE.js";
5
+ } from "./chunk-QVRXBAMM.js";
6
6
  import {
7
7
  runWarpGrep
8
- } from "./chunk-37SRI4GW.js";
8
+ } from "./chunk-SALJ2K6S.js";
9
9
  import {
10
10
  getSystemPrompt
11
11
  } from "./chunk-WETRQJGU.js";
@@ -80,4 +80,4 @@ export {
80
80
  createMorphWarpGrepTool,
81
81
  openai_default
82
82
  };
83
- //# sourceMappingURL=chunk-ZWY434TS.js.map
83
+ //# sourceMappingURL=chunk-4ZHDBKBY.js.map
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=chunk-7OQOOB3R.js.map
@@ -2,10 +2,10 @@ import {
2
2
  WARP_GREP_DESCRIPTION,
3
3
  WARP_GREP_TOOL_NAME,
4
4
  formatResult
5
- } from "./chunk-KO6JQFRE.js";
5
+ } from "./chunk-QVRXBAMM.js";
6
6
  import {
7
7
  runWarpGrep
8
- } from "./chunk-37SRI4GW.js";
8
+ } from "./chunk-SALJ2K6S.js";
9
9
  import {
10
10
  getSystemPrompt
11
11
  } from "./chunk-WETRQJGU.js";
@@ -74,4 +74,4 @@ export {
74
74
  createMorphWarpGrepTool,
75
75
  anthropic_default
76
76
  };
77
- //# sourceMappingURL=chunk-BSHJGJ25.js.map
77
+ //# sourceMappingURL=chunk-GJURLQ3L.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  runWarpGrep
3
- } from "./chunk-37SRI4GW.js";
3
+ } from "./chunk-SALJ2K6S.js";
4
4
  import {
5
5
  LocalRipgrepProvider
6
6
  } from "./chunk-ZJIIICRA.js";
@@ -104,4 +104,4 @@ export {
104
104
  WARP_GREP_TOOL_NAME,
105
105
  WARP_GREP_DESCRIPTION
106
106
  };
107
- //# sourceMappingURL=chunk-KO6JQFRE.js.map
107
+ //# sourceMappingURL=chunk-QVRXBAMM.js.map
@@ -1,6 +1,3 @@
1
- import {
2
- readFinishFiles
3
- } from "./chunk-EK7OQPWD.js";
4
1
  import {
5
2
  toolRead
6
3
  } from "./chunk-HQO45BAJ.js";
@@ -13,6 +10,9 @@ import {
13
10
  import {
14
11
  toolAnalyse
15
12
  } from "./chunk-73RQWOQC.js";
13
+ import {
14
+ readFinishFiles
15
+ } from "./chunk-EK7OQPWD.js";
16
16
  import {
17
17
  AGENT_CONFIG,
18
18
  DEFAULT_MODEL
@@ -231,4 +231,4 @@ async function runWarpGrep(config) {
231
231
  export {
232
232
  runWarpGrep
233
233
  };
234
- //# sourceMappingURL=chunk-37SRI4GW.js.map
234
+ //# sourceMappingURL=chunk-SALJ2K6S.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  WARP_GREP_DESCRIPTION
3
- } from "./chunk-KO6JQFRE.js";
3
+ } from "./chunk-QVRXBAMM.js";
4
4
  import {
5
5
  runWarpGrep
6
- } from "./chunk-37SRI4GW.js";
6
+ } from "./chunk-SALJ2K6S.js";
7
7
  import {
8
8
  LocalRipgrepProvider
9
9
  } from "./chunk-ZJIIICRA.js";
@@ -67,4 +67,4 @@ export {
67
67
  execute,
68
68
  createMorphWarpGrepTool
69
69
  };
70
- //# sourceMappingURL=chunk-X5HNQ7SB.js.map
70
+ //# sourceMappingURL=chunk-UIRJE422.js.map
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  createMorphWarpGrepTool as createMorphWarpGrepTool2
3
- } from "./chunk-BSHJGJ25.js";
3
+ } from "./chunk-GJURLQ3L.js";
4
4
  import {
5
5
  createMorphWarpGrepTool
6
- } from "./chunk-ZWY434TS.js";
6
+ } from "./chunk-4ZHDBKBY.js";
7
7
  import {
8
8
  createMorphWarpGrepTool as createMorphWarpGrepTool3
9
- } from "./chunk-X5HNQ7SB.js";
9
+ } from "./chunk-UIRJE422.js";
10
10
  import {
11
11
  WarpGrepClient
12
- } from "./chunk-KO6JQFRE.js";
12
+ } from "./chunk-QVRXBAMM.js";
13
13
  import {
14
14
  createCodebaseSearchTool as createCodebaseSearchTool3
15
15
  } from "./chunk-UBX7QYBD.js";
@@ -280,4 +280,4 @@ export {
280
280
  VercelToolFactory,
281
281
  MorphClient
282
282
  };
283
- //# sourceMappingURL=chunk-C6QQL6FX.js.map
283
+ //# sourceMappingURL=chunk-WSSSSBWU.js.map
package/dist/client.js CHANGED
@@ -1,12 +1,11 @@
1
1
  import {
2
2
  MorphClient
3
- } from "./chunk-C6QQL6FX.js";
4
- import "./chunk-BSHJGJ25.js";
5
- import "./chunk-ZWY434TS.js";
6
- import "./chunk-X5HNQ7SB.js";
7
- import "./chunk-KO6JQFRE.js";
8
- import "./chunk-37SRI4GW.js";
9
- import "./chunk-EK7OQPWD.js";
3
+ } from "./chunk-WSSSSBWU.js";
4
+ import "./chunk-GJURLQ3L.js";
5
+ import "./chunk-4ZHDBKBY.js";
6
+ import "./chunk-UIRJE422.js";
7
+ import "./chunk-QVRXBAMM.js";
8
+ import "./chunk-SALJ2K6S.js";
10
9
  import "./chunk-HQO45BAJ.js";
11
10
  import "./chunk-LVPVVLTI.js";
12
11
  import "./chunk-WETRQJGU.js";
@@ -15,6 +14,7 @@ import "./chunk-G2RSY56Q.js";
15
14
  import "./chunk-SMGZ6A64.js";
16
15
  import "./chunk-TPP2UGQP.js";
17
16
  import "./chunk-73RQWOQC.js";
17
+ import "./chunk-EK7OQPWD.js";
18
18
  import "./chunk-TJIUA27P.js";
19
19
  import "./chunk-TICMYDII.js";
20
20
  import "./chunk-NDZO5IPV.js";
package/dist/index.cjs CHANGED
@@ -34,7 +34,6 @@ __export(index_exports, {
34
34
  AnthropicToolFactory: () => AnthropicToolFactory,
35
35
  BrowserClient: () => BrowserClient,
36
36
  CodebaseSearchClient: () => CodebaseSearchClient,
37
- CommandExecProvider: () => CommandExecProvider,
38
37
  FastApplyClient: () => FastApplyClient,
39
38
  GeminiRouter: () => GeminiRouter,
40
39
  LocalRipgrepProvider: () => LocalRipgrepProvider,
@@ -3697,78 +3696,12 @@ var MorphClient = class {
3697
3696
  this.vercel = new VercelToolFactory(config);
3698
3697
  }
3699
3698
  };
3700
-
3701
- // tools/warp_grep/providers/command.ts
3702
- var CommandExecProvider = class {
3703
- constructor(opts) {
3704
- this.opts = opts;
3705
- }
3706
- map(path4) {
3707
- return this.opts.pathMap ? this.opts.pathMap(path4) : path4;
3708
- }
3709
- async grep(params) {
3710
- const remotePath = this.map(params.path);
3711
- const args = [
3712
- "--no-config",
3713
- "--no-heading",
3714
- "--with-filename",
3715
- "--line-number",
3716
- "--color=never",
3717
- "--trim",
3718
- "--max-columns=400",
3719
- ...(this.opts.excludes ?? DEFAULT_EXCLUDES).flatMap((e) => ["-g", `!${e}`]),
3720
- params.pattern,
3721
- remotePath || "."
3722
- ];
3723
- const res = await this.opts.run("rg", args, { cwd: this.opts.cwd, env: this.opts.env });
3724
- if (res.exitCode === -1) throw new Error(res.stderr || "ripgrep execution failed");
3725
- if (res.exitCode !== 0 && res.exitCode !== 1) throw new Error(res.stderr || `ripgrep failed (${res.exitCode})`);
3726
- const lines = (res.stdout || "").trim().split(/\r?\n/).filter((l) => l.length > 0);
3727
- return { lines };
3728
- }
3729
- async glob(params) {
3730
- const remotePath = this.map(params.path);
3731
- const args = [
3732
- "--no-config",
3733
- "--files",
3734
- "-g",
3735
- params.pattern,
3736
- ...(this.opts.excludes ?? DEFAULT_EXCLUDES).flatMap((e) => ["-g", `!${e}`]),
3737
- remotePath || "."
3738
- ];
3739
- const res = await this.opts.run("rg", args, { cwd: this.opts.cwd, env: this.opts.env });
3740
- if (res.exitCode === -1) throw new Error(res.stderr || "ripgrep execution failed");
3741
- const files = (res.stdout || "").trim().split(/\r?\n/).filter((l) => l.length > 0);
3742
- return { files };
3743
- }
3744
- async read(params) {
3745
- const remotePath = this.map(params.path);
3746
- const rc = this.opts.readCommand ? this.opts.readCommand(remotePath, params.start, params.end) : { cmd: "sed", args: ["-n", `${params.start ?? 1},${params.end ?? 1e6}p`, remotePath] };
3747
- const res = await this.opts.run(rc.cmd, rc.args, { cwd: this.opts.cwd, env: this.opts.env });
3748
- if (res.exitCode !== 0) throw new Error(res.stderr || `read failed (${res.exitCode})`);
3749
- const text = res.stdout || "";
3750
- const lines = text.split(/\r?\n/).map((line, idx) => `${(params.start ?? 1) + idx}|${line}`);
3751
- return { lines: lines.filter((l) => l !== `${(params.start ?? 1) + (lines.length - 1)}|`) };
3752
- }
3753
- async analyse(params) {
3754
- const target = this.map(params.path);
3755
- const pattern = params.pattern ?? "*";
3756
- const files = await this.glob({ pattern, path: target }).catch(() => ({ files: [] }));
3757
- return files.files.slice(0, params.maxResults ?? 100).map((f) => ({
3758
- name: f.split("/").pop() || f,
3759
- path: f,
3760
- type: f.endsWith("/") ? "dir" : "file",
3761
- depth: 0
3762
- }));
3763
- }
3764
- };
3765
3699
  // Annotate the CommonJS export names for ESM import in node:
3766
3700
  0 && (module.exports = {
3767
3701
  AnthropicRouter,
3768
3702
  AnthropicToolFactory,
3769
3703
  BrowserClient,
3770
3704
  CodebaseSearchClient,
3771
- CommandExecProvider,
3772
3705
  FastApplyClient,
3773
3706
  GeminiRouter,
3774
3707
  LocalRipgrepProvider,