@morphllm/morphsdk 0.2.201 → 0.2.202
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.
- package/dist/{chunk-OVLUL5AC.js → chunk-26K5EJD3.js} +1 -1
- package/dist/{chunk-P2KW2O5R.js → chunk-2XU3XXUE.js} +1 -1
- package/dist/{chunk-WBTXEJOC.js → chunk-3CPI6ZIC.js} +3 -3
- package/dist/{chunk-RZOJ4GSY.js → chunk-65TUD7JV.js} +2 -2
- package/dist/{chunk-VOXUA5ZH.js → chunk-6OYJC4TZ.js} +2 -2
- package/dist/{chunk-TZC3EOZS.js → chunk-CAWQEHKP.js} +1 -1
- package/dist/{chunk-5NSYDT36.js → chunk-D6YJ5X3C.js} +2 -2
- package/dist/{chunk-UZCXOOZO.js → chunk-E6TL6MIH.js} +1 -1
- package/dist/{chunk-NWGRW4V7.js → chunk-IBRBSDLT.js} +1 -1
- package/dist/{chunk-JBAY3PRV.js → chunk-ICCGLO6V.js} +3 -3
- package/dist/{chunk-ILY5N5NJ.js → chunk-JEVLCA5C.js} +1 -1
- package/dist/{chunk-FVT4PU4I.js → chunk-LVKKICOB.js} +13 -13
- package/dist/{chunk-I26FQELI.js → chunk-MLPZKUCO.js} +8 -1
- package/dist/{chunk-SU7AAS3O.js → chunk-NFPRKZQ5.js} +1 -1
- package/dist/{chunk-BZXOAC2R.js → chunk-OSL4CNSO.js} +1 -1
- package/dist/{chunk-RJXAXR7Q.js → chunk-PDSIWL7I.js} +1 -1
- package/dist/{chunk-DBNSOYQ3.js → chunk-SIFDK4AA.js} +1 -1
- package/dist/{chunk-M6AVXUM4.js → chunk-UAZKHSEU.js} +1 -1
- package/dist/{chunk-LISSWRUD.js → chunk-UKXCGQPS.js} +1 -1
- package/dist/{chunk-TS3OJ4LA.js → chunk-VQDDL3UH.js} +1 -1
- package/dist/{chunk-B376VMIH.js → chunk-XPHNS7NW.js} +1 -1
- package/dist/{chunk-EQAWWVKV.js → chunk-YAM6P5OQ.js} +1 -1
- package/dist/client.cjs +12 -5
- package/dist/client.js +20 -20
- package/dist/core/client.cjs +1 -1
- package/dist/core/client.js +4 -4
- package/dist/core/error.cjs +1 -1
- package/dist/core/error.js +3 -3
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.js +4 -4
- package/dist/edge.cjs +1 -1
- package/dist/edge.js +7 -7
- package/dist/index.cjs +12 -5
- package/dist/index.js +22 -22
- package/dist/modelrouter/core.cjs +1 -1
- package/dist/modelrouter/core.js +5 -5
- package/dist/modelrouter/index.cjs +1 -1
- package/dist/modelrouter/index.js +5 -5
- package/dist/subagents/anthropic.cjs +12 -5
- package/dist/subagents/anthropic.js +9 -9
- package/dist/subagents/vercel.cjs +12 -5
- package/dist/subagents/vercel.js +9 -9
- package/dist/tools/compact/core.cjs +1 -1
- package/dist/tools/compact/core.js +5 -5
- package/dist/tools/compact/index.cjs +1 -1
- package/dist/tools/compact/index.js +6 -6
- package/dist/tools/fastapply/anthropic.cjs +1 -1
- package/dist/tools/fastapply/anthropic.js +7 -7
- package/dist/tools/fastapply/apply.cjs +1 -1
- package/dist/tools/fastapply/apply.js +2 -2
- package/dist/tools/fastapply/core.cjs +1 -1
- package/dist/tools/fastapply/core.js +6 -6
- package/dist/tools/fastapply/index.cjs +1 -1
- package/dist/tools/fastapply/index.js +9 -9
- package/dist/tools/fastapply/openai.cjs +1 -1
- package/dist/tools/fastapply/openai.js +7 -7
- package/dist/tools/fastapply/vercel.cjs +1 -1
- package/dist/tools/fastapply/vercel.js +7 -7
- package/dist/tools/index.cjs +1 -1
- package/dist/tools/index.js +9 -9
- package/dist/tools/utils/resilience.cjs +1 -1
- package/dist/tools/utils/resilience.js +2 -2
- package/dist/tools/warp_grep/agent/runner.cjs +1 -1
- package/dist/tools/warp_grep/agent/runner.js +2 -2
- package/dist/tools/warp_grep/anthropic.cjs +12 -5
- package/dist/tools/warp_grep/anthropic.js +9 -9
- package/dist/tools/warp_grep/client.cjs +12 -5
- package/dist/tools/warp_grep/client.js +8 -8
- package/dist/tools/warp_grep/gemini.cjs +12 -5
- package/dist/tools/warp_grep/gemini.js +8 -8
- package/dist/tools/warp_grep/harness.cjs +10 -3
- package/dist/tools/warp_grep/harness.js +2 -2
- package/dist/tools/warp_grep/index.cjs +12 -5
- package/dist/tools/warp_grep/index.js +10 -10
- package/dist/tools/warp_grep/openai.cjs +12 -5
- package/dist/tools/warp_grep/openai.js +9 -9
- package/dist/tools/warp_grep/providers/local.cjs +10 -3
- package/dist/tools/warp_grep/providers/local.js +2 -2
- package/dist/tools/warp_grep/utils/ripgrep.cjs +20 -3
- package/dist/tools/warp_grep/utils/ripgrep.js +1 -1
- package/dist/tools/warp_grep/vercel.cjs +12 -5
- package/dist/tools/warp_grep/vercel.js +9 -9
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -439,7 +439,7 @@ var import_openai = __toESM(require("openai"), 1);
|
|
|
439
439
|
// package.json
|
|
440
440
|
var package_default = {
|
|
441
441
|
name: "@morphllm/morphsdk",
|
|
442
|
-
version: "0.2.
|
|
442
|
+
version: "0.2.202",
|
|
443
443
|
description: "TypeScript SDK and CLI for Morph Fast Apply integration",
|
|
444
444
|
type: "module",
|
|
445
445
|
main: "./dist/index.cjs",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runWarpGrep,
|
|
3
3
|
runWarpGrepStreaming
|
|
4
|
-
} from "../../../chunk-
|
|
4
|
+
} from "../../../chunk-UKXCGQPS.js";
|
|
5
5
|
import "../../../chunk-44OIEPIO.js";
|
|
6
6
|
import "../../../chunk-M34E2AMK.js";
|
|
7
7
|
import "../../../chunk-4OUGA3KS.js";
|
|
8
8
|
import "../../../chunk-6WP7EA4F.js";
|
|
9
|
-
import "../../../chunk-
|
|
9
|
+
import "../../../chunk-E6TL6MIH.js";
|
|
10
10
|
import "../../../chunk-MLKGABMK.js";
|
|
11
11
|
export {
|
|
12
12
|
runWarpGrep,
|
|
@@ -155,6 +155,13 @@ function spawnRg(rgBinary, args, opts) {
|
|
|
155
155
|
});
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
|
+
async function preferredRgPath() {
|
|
159
|
+
try {
|
|
160
|
+
return (await import("@vscode/ripgrep")).rgPath ?? "rg";
|
|
161
|
+
} catch {
|
|
162
|
+
return "rg";
|
|
163
|
+
}
|
|
164
|
+
}
|
|
158
165
|
function isBinaryFailure(result) {
|
|
159
166
|
if (result.exitCode === -1) return true;
|
|
160
167
|
if (result.stderr.includes("jemalloc") || result.stderr.includes("Unsupported system page size")) return true;
|
|
@@ -166,9 +173,10 @@ async function runRipgrep(args, opts) {
|
|
|
166
173
|
return spawnRg(resolvedRgPath, args, opts);
|
|
167
174
|
}
|
|
168
175
|
if (!rgPathChecked) {
|
|
169
|
-
const
|
|
176
|
+
const rgPath = await preferredRgPath();
|
|
177
|
+
const result = await spawnRg(rgPath, args, opts);
|
|
170
178
|
if (!isBinaryFailure(result)) {
|
|
171
|
-
resolvedRgPath =
|
|
179
|
+
resolvedRgPath = rgPath;
|
|
172
180
|
rgPathChecked = true;
|
|
173
181
|
return result;
|
|
174
182
|
}
|
|
@@ -191,12 +199,11 @@ async function runRipgrep(args, opts) {
|
|
|
191
199
|
exitCode: -1
|
|
192
200
|
};
|
|
193
201
|
}
|
|
194
|
-
var import_child_process,
|
|
202
|
+
var import_child_process, resolvedRgPath, rgPathChecked;
|
|
195
203
|
var init_ripgrep = __esm({
|
|
196
204
|
"tools/warp_grep/utils/ripgrep.ts"() {
|
|
197
205
|
"use strict";
|
|
198
206
|
import_child_process = require("child_process");
|
|
199
|
-
import_ripgrep = require("@vscode/ripgrep");
|
|
200
207
|
resolvedRgPath = null;
|
|
201
208
|
rgPathChecked = false;
|
|
202
209
|
}
|
|
@@ -939,7 +946,7 @@ var import_openai = __toESM(require("openai"), 1);
|
|
|
939
946
|
// package.json
|
|
940
947
|
var package_default = {
|
|
941
948
|
name: "@morphllm/morphsdk",
|
|
942
|
-
version: "0.2.
|
|
949
|
+
version: "0.2.202",
|
|
943
950
|
description: "TypeScript SDK and CLI for Morph Fast Apply integration",
|
|
944
951
|
type: "module",
|
|
945
952
|
main: "./dist/index.cjs",
|
|
@@ -4,25 +4,25 @@ import {
|
|
|
4
4
|
createWarpGrepTool,
|
|
5
5
|
execute,
|
|
6
6
|
warpGrepTool
|
|
7
|
-
} from "../../chunk-
|
|
7
|
+
} from "../../chunk-SIFDK4AA.js";
|
|
8
8
|
import "../../chunk-UAPK3AIJ.js";
|
|
9
9
|
import {
|
|
10
10
|
formatResult
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-3CPI6ZIC.js";
|
|
12
12
|
import "../../chunk-HDP4QAZL.js";
|
|
13
13
|
import "../../chunk-RYVW7RUM.js";
|
|
14
14
|
import "../../chunk-OPDWMD4Q.js";
|
|
15
|
-
import "../../chunk-
|
|
15
|
+
import "../../chunk-UKXCGQPS.js";
|
|
16
16
|
import "../../chunk-44OIEPIO.js";
|
|
17
17
|
import "../../chunk-M34E2AMK.js";
|
|
18
18
|
import "../../chunk-4OUGA3KS.js";
|
|
19
|
-
import "../../chunk-
|
|
20
|
-
import "../../chunk-
|
|
21
|
-
import "../../chunk-
|
|
19
|
+
import "../../chunk-IBRBSDLT.js";
|
|
20
|
+
import "../../chunk-D6YJ5X3C.js";
|
|
21
|
+
import "../../chunk-ICCGLO6V.js";
|
|
22
22
|
import "../../chunk-6WP7EA4F.js";
|
|
23
|
-
import "../../chunk-
|
|
24
|
-
import "../../chunk-
|
|
25
|
-
import "../../chunk-
|
|
23
|
+
import "../../chunk-YAM6P5OQ.js";
|
|
24
|
+
import "../../chunk-VQDDL3UH.js";
|
|
25
|
+
import "../../chunk-E6TL6MIH.js";
|
|
26
26
|
import "../../chunk-NRG6QX3L.js";
|
|
27
27
|
import "../../chunk-MLKGABMK.js";
|
|
28
28
|
export {
|
|
@@ -155,6 +155,13 @@ function spawnRg(rgBinary, args, opts) {
|
|
|
155
155
|
});
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
|
+
async function preferredRgPath() {
|
|
159
|
+
try {
|
|
160
|
+
return (await import("@vscode/ripgrep")).rgPath ?? "rg";
|
|
161
|
+
} catch {
|
|
162
|
+
return "rg";
|
|
163
|
+
}
|
|
164
|
+
}
|
|
158
165
|
function isBinaryFailure(result) {
|
|
159
166
|
if (result.exitCode === -1) return true;
|
|
160
167
|
if (result.stderr.includes("jemalloc") || result.stderr.includes("Unsupported system page size")) return true;
|
|
@@ -166,9 +173,10 @@ async function runRipgrep(args, opts) {
|
|
|
166
173
|
return spawnRg(resolvedRgPath, args, opts);
|
|
167
174
|
}
|
|
168
175
|
if (!rgPathChecked) {
|
|
169
|
-
const
|
|
176
|
+
const rgPath = await preferredRgPath();
|
|
177
|
+
const result = await spawnRg(rgPath, args, opts);
|
|
170
178
|
if (!isBinaryFailure(result)) {
|
|
171
|
-
resolvedRgPath =
|
|
179
|
+
resolvedRgPath = rgPath;
|
|
172
180
|
rgPathChecked = true;
|
|
173
181
|
return result;
|
|
174
182
|
}
|
|
@@ -191,12 +199,11 @@ async function runRipgrep(args, opts) {
|
|
|
191
199
|
exitCode: -1
|
|
192
200
|
};
|
|
193
201
|
}
|
|
194
|
-
var import_child_process,
|
|
202
|
+
var import_child_process, resolvedRgPath, rgPathChecked;
|
|
195
203
|
var init_ripgrep = __esm({
|
|
196
204
|
"tools/warp_grep/utils/ripgrep.ts"() {
|
|
197
205
|
"use strict";
|
|
198
206
|
import_child_process = require("child_process");
|
|
199
|
-
import_ripgrep = require("@vscode/ripgrep");
|
|
200
207
|
resolvedRgPath = null;
|
|
201
208
|
rgPathChecked = false;
|
|
202
209
|
}
|
|
@@ -940,7 +947,7 @@ var import_openai = __toESM(require("openai"), 1);
|
|
|
940
947
|
// package.json
|
|
941
948
|
var package_default = {
|
|
942
949
|
name: "@morphllm/morphsdk",
|
|
943
|
-
version: "0.2.
|
|
950
|
+
version: "0.2.202",
|
|
944
951
|
description: "TypeScript SDK and CLI for Morph Fast Apply integration",
|
|
945
952
|
type: "module",
|
|
946
953
|
main: "./dist/index.cjs",
|
|
@@ -6,21 +6,21 @@ import {
|
|
|
6
6
|
executeWarpGrep,
|
|
7
7
|
formatGitHubReadFileResult,
|
|
8
8
|
formatResult
|
|
9
|
-
} from "../../chunk-
|
|
9
|
+
} from "../../chunk-3CPI6ZIC.js";
|
|
10
10
|
import "../../chunk-HDP4QAZL.js";
|
|
11
11
|
import "../../chunk-RYVW7RUM.js";
|
|
12
12
|
import "../../chunk-OPDWMD4Q.js";
|
|
13
|
-
import "../../chunk-
|
|
13
|
+
import "../../chunk-UKXCGQPS.js";
|
|
14
14
|
import "../../chunk-44OIEPIO.js";
|
|
15
15
|
import "../../chunk-M34E2AMK.js";
|
|
16
16
|
import "../../chunk-4OUGA3KS.js";
|
|
17
|
-
import "../../chunk-
|
|
18
|
-
import "../../chunk-
|
|
19
|
-
import "../../chunk-
|
|
17
|
+
import "../../chunk-IBRBSDLT.js";
|
|
18
|
+
import "../../chunk-D6YJ5X3C.js";
|
|
19
|
+
import "../../chunk-ICCGLO6V.js";
|
|
20
20
|
import "../../chunk-6WP7EA4F.js";
|
|
21
|
-
import "../../chunk-
|
|
22
|
-
import "../../chunk-
|
|
23
|
-
import "../../chunk-
|
|
21
|
+
import "../../chunk-YAM6P5OQ.js";
|
|
22
|
+
import "../../chunk-VQDDL3UH.js";
|
|
23
|
+
import "../../chunk-E6TL6MIH.js";
|
|
24
24
|
import "../../chunk-NRG6QX3L.js";
|
|
25
25
|
import "../../chunk-MLKGABMK.js";
|
|
26
26
|
export {
|
|
@@ -155,6 +155,13 @@ function spawnRg(rgBinary, args, opts) {
|
|
|
155
155
|
});
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
|
+
async function preferredRgPath() {
|
|
159
|
+
try {
|
|
160
|
+
return (await import("@vscode/ripgrep")).rgPath ?? "rg";
|
|
161
|
+
} catch {
|
|
162
|
+
return "rg";
|
|
163
|
+
}
|
|
164
|
+
}
|
|
158
165
|
function isBinaryFailure(result) {
|
|
159
166
|
if (result.exitCode === -1) return true;
|
|
160
167
|
if (result.stderr.includes("jemalloc") || result.stderr.includes("Unsupported system page size")) return true;
|
|
@@ -166,9 +173,10 @@ async function runRipgrep(args, opts) {
|
|
|
166
173
|
return spawnRg(resolvedRgPath, args, opts);
|
|
167
174
|
}
|
|
168
175
|
if (!rgPathChecked) {
|
|
169
|
-
const
|
|
176
|
+
const rgPath = await preferredRgPath();
|
|
177
|
+
const result = await spawnRg(rgPath, args, opts);
|
|
170
178
|
if (!isBinaryFailure(result)) {
|
|
171
|
-
resolvedRgPath =
|
|
179
|
+
resolvedRgPath = rgPath;
|
|
172
180
|
rgPathChecked = true;
|
|
173
181
|
return result;
|
|
174
182
|
}
|
|
@@ -191,12 +199,11 @@ async function runRipgrep(args, opts) {
|
|
|
191
199
|
exitCode: -1
|
|
192
200
|
};
|
|
193
201
|
}
|
|
194
|
-
var import_child_process,
|
|
202
|
+
var import_child_process, resolvedRgPath, rgPathChecked;
|
|
195
203
|
var init_ripgrep = __esm({
|
|
196
204
|
"tools/warp_grep/utils/ripgrep.ts"() {
|
|
197
205
|
"use strict";
|
|
198
206
|
import_child_process = require("child_process");
|
|
199
|
-
import_ripgrep = require("@vscode/ripgrep");
|
|
200
207
|
resolvedRgPath = null;
|
|
201
208
|
rgPathChecked = false;
|
|
202
209
|
}
|
|
@@ -941,7 +948,7 @@ var import_openai = __toESM(require("openai"), 1);
|
|
|
941
948
|
// package.json
|
|
942
949
|
var package_default = {
|
|
943
950
|
name: "@morphllm/morphsdk",
|
|
944
|
-
version: "0.2.
|
|
951
|
+
version: "0.2.202",
|
|
945
952
|
description: "TypeScript SDK and CLI for Morph Fast Apply integration",
|
|
946
953
|
type: "module",
|
|
947
954
|
main: "./dist/index.cjs",
|
|
@@ -12,21 +12,21 @@ import {
|
|
|
12
12
|
executeToolCall,
|
|
13
13
|
formatGitHubReadFileResult,
|
|
14
14
|
formatResult
|
|
15
|
-
} from "../../chunk-
|
|
15
|
+
} from "../../chunk-3CPI6ZIC.js";
|
|
16
16
|
import "../../chunk-HDP4QAZL.js";
|
|
17
17
|
import "../../chunk-RYVW7RUM.js";
|
|
18
18
|
import "../../chunk-OPDWMD4Q.js";
|
|
19
|
-
import "../../chunk-
|
|
19
|
+
import "../../chunk-UKXCGQPS.js";
|
|
20
20
|
import "../../chunk-44OIEPIO.js";
|
|
21
21
|
import "../../chunk-M34E2AMK.js";
|
|
22
22
|
import "../../chunk-4OUGA3KS.js";
|
|
23
|
-
import "../../chunk-
|
|
24
|
-
import "../../chunk-
|
|
25
|
-
import "../../chunk-
|
|
23
|
+
import "../../chunk-IBRBSDLT.js";
|
|
24
|
+
import "../../chunk-D6YJ5X3C.js";
|
|
25
|
+
import "../../chunk-ICCGLO6V.js";
|
|
26
26
|
import "../../chunk-6WP7EA4F.js";
|
|
27
|
-
import "../../chunk-
|
|
28
|
-
import "../../chunk-
|
|
29
|
-
import "../../chunk-
|
|
27
|
+
import "../../chunk-YAM6P5OQ.js";
|
|
28
|
+
import "../../chunk-VQDDL3UH.js";
|
|
29
|
+
import "../../chunk-E6TL6MIH.js";
|
|
30
30
|
import "../../chunk-NRG6QX3L.js";
|
|
31
31
|
import "../../chunk-MLKGABMK.js";
|
|
32
32
|
|
|
@@ -461,7 +461,6 @@ var import_path4 = __toESM(require("path"), 1);
|
|
|
461
461
|
|
|
462
462
|
// tools/warp_grep/utils/ripgrep.ts
|
|
463
463
|
var import_child_process = require("child_process");
|
|
464
|
-
var import_ripgrep = require("@vscode/ripgrep");
|
|
465
464
|
var resolvedRgPath = null;
|
|
466
465
|
var rgPathChecked = false;
|
|
467
466
|
function spawnRg(rgBinary, args, opts) {
|
|
@@ -483,6 +482,13 @@ function spawnRg(rgBinary, args, opts) {
|
|
|
483
482
|
});
|
|
484
483
|
});
|
|
485
484
|
}
|
|
485
|
+
async function preferredRgPath() {
|
|
486
|
+
try {
|
|
487
|
+
return (await import("@vscode/ripgrep")).rgPath ?? "rg";
|
|
488
|
+
} catch {
|
|
489
|
+
return "rg";
|
|
490
|
+
}
|
|
491
|
+
}
|
|
486
492
|
function isBinaryFailure(result) {
|
|
487
493
|
if (result.exitCode === -1) return true;
|
|
488
494
|
if (result.stderr.includes("jemalloc") || result.stderr.includes("Unsupported system page size")) return true;
|
|
@@ -494,9 +500,10 @@ async function runRipgrep(args, opts) {
|
|
|
494
500
|
return spawnRg(resolvedRgPath, args, opts);
|
|
495
501
|
}
|
|
496
502
|
if (!rgPathChecked) {
|
|
497
|
-
const
|
|
503
|
+
const rgPath = await preferredRgPath();
|
|
504
|
+
const result = await spawnRg(rgPath, args, opts);
|
|
498
505
|
if (!isBinaryFailure(result)) {
|
|
499
|
-
resolvedRgPath =
|
|
506
|
+
resolvedRgPath = rgPath;
|
|
500
507
|
rgPathChecked = true;
|
|
501
508
|
return result;
|
|
502
509
|
}
|
|
@@ -155,6 +155,13 @@ function spawnRg(rgBinary, args, opts) {
|
|
|
155
155
|
});
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
|
+
async function preferredRgPath() {
|
|
159
|
+
try {
|
|
160
|
+
return (await import("@vscode/ripgrep")).rgPath ?? "rg";
|
|
161
|
+
} catch {
|
|
162
|
+
return "rg";
|
|
163
|
+
}
|
|
164
|
+
}
|
|
158
165
|
function isBinaryFailure(result) {
|
|
159
166
|
if (result.exitCode === -1) return true;
|
|
160
167
|
if (result.stderr.includes("jemalloc") || result.stderr.includes("Unsupported system page size")) return true;
|
|
@@ -166,9 +173,10 @@ async function runRipgrep(args, opts) {
|
|
|
166
173
|
return spawnRg(resolvedRgPath, args, opts);
|
|
167
174
|
}
|
|
168
175
|
if (!rgPathChecked) {
|
|
169
|
-
const
|
|
176
|
+
const rgPath = await preferredRgPath();
|
|
177
|
+
const result = await spawnRg(rgPath, args, opts);
|
|
170
178
|
if (!isBinaryFailure(result)) {
|
|
171
|
-
resolvedRgPath =
|
|
179
|
+
resolvedRgPath = rgPath;
|
|
172
180
|
rgPathChecked = true;
|
|
173
181
|
return result;
|
|
174
182
|
}
|
|
@@ -191,12 +199,11 @@ async function runRipgrep(args, opts) {
|
|
|
191
199
|
exitCode: -1
|
|
192
200
|
};
|
|
193
201
|
}
|
|
194
|
-
var import_child_process,
|
|
202
|
+
var import_child_process, resolvedRgPath, rgPathChecked;
|
|
195
203
|
var init_ripgrep = __esm({
|
|
196
204
|
"tools/warp_grep/utils/ripgrep.ts"() {
|
|
197
205
|
"use strict";
|
|
198
206
|
import_child_process = require("child_process");
|
|
199
|
-
import_ripgrep = require("@vscode/ripgrep");
|
|
200
207
|
resolvedRgPath = null;
|
|
201
208
|
rgPathChecked = false;
|
|
202
209
|
}
|
|
@@ -968,7 +975,7 @@ var import_openai = __toESM(require("openai"), 1);
|
|
|
968
975
|
// package.json
|
|
969
976
|
var package_default = {
|
|
970
977
|
name: "@morphllm/morphsdk",
|
|
971
|
-
version: "0.2.
|
|
978
|
+
version: "0.2.202",
|
|
972
979
|
description: "TypeScript SDK and CLI for Morph Fast Apply integration",
|
|
973
980
|
type: "module",
|
|
974
981
|
main: "./dist/index.cjs",
|
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
} from "../../chunk-2PPYWRMZ.js";
|
|
4
4
|
import {
|
|
5
5
|
LocalRipgrepProvider
|
|
6
|
-
} from "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
6
|
+
} from "../../chunk-OSL4CNSO.js";
|
|
7
|
+
import "../../chunk-MLPZKUCO.js";
|
|
8
8
|
import "../../chunk-6TZCVTW5.js";
|
|
9
9
|
import {
|
|
10
10
|
fixPathRepetition
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
executeWarpGrep,
|
|
28
28
|
formatGitHubReadFileResult,
|
|
29
29
|
formatResult
|
|
30
|
-
} from "../../chunk-
|
|
30
|
+
} from "../../chunk-3CPI6ZIC.js";
|
|
31
31
|
import {
|
|
32
32
|
createCodeStorageHttpCommands
|
|
33
33
|
} from "../../chunk-HDP4QAZL.js";
|
|
@@ -38,7 +38,7 @@ import "../../chunk-OPDWMD4Q.js";
|
|
|
38
38
|
import {
|
|
39
39
|
runWarpGrep,
|
|
40
40
|
runWarpGrepStreaming
|
|
41
|
-
} from "../../chunk-
|
|
41
|
+
} from "../../chunk-UKXCGQPS.js";
|
|
42
42
|
import {
|
|
43
43
|
normalizeFinishFiles,
|
|
44
44
|
readFinishFiles,
|
|
@@ -48,13 +48,13 @@ import {
|
|
|
48
48
|
} from "../../chunk-44OIEPIO.js";
|
|
49
49
|
import "../../chunk-M34E2AMK.js";
|
|
50
50
|
import "../../chunk-4OUGA3KS.js";
|
|
51
|
-
import "../../chunk-
|
|
52
|
-
import "../../chunk-
|
|
53
|
-
import "../../chunk-
|
|
51
|
+
import "../../chunk-IBRBSDLT.js";
|
|
52
|
+
import "../../chunk-D6YJ5X3C.js";
|
|
53
|
+
import "../../chunk-ICCGLO6V.js";
|
|
54
54
|
import "../../chunk-6WP7EA4F.js";
|
|
55
|
-
import "../../chunk-
|
|
56
|
-
import "../../chunk-
|
|
57
|
-
import "../../chunk-
|
|
55
|
+
import "../../chunk-YAM6P5OQ.js";
|
|
56
|
+
import "../../chunk-VQDDL3UH.js";
|
|
57
|
+
import "../../chunk-E6TL6MIH.js";
|
|
58
58
|
import "../../chunk-NRG6QX3L.js";
|
|
59
59
|
import "../../chunk-MLKGABMK.js";
|
|
60
60
|
export {
|
|
@@ -155,6 +155,13 @@ function spawnRg(rgBinary, args, opts) {
|
|
|
155
155
|
});
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
|
+
async function preferredRgPath() {
|
|
159
|
+
try {
|
|
160
|
+
return (await import("@vscode/ripgrep")).rgPath ?? "rg";
|
|
161
|
+
} catch {
|
|
162
|
+
return "rg";
|
|
163
|
+
}
|
|
164
|
+
}
|
|
158
165
|
function isBinaryFailure(result) {
|
|
159
166
|
if (result.exitCode === -1) return true;
|
|
160
167
|
if (result.stderr.includes("jemalloc") || result.stderr.includes("Unsupported system page size")) return true;
|
|
@@ -166,9 +173,10 @@ async function runRipgrep(args, opts) {
|
|
|
166
173
|
return spawnRg(resolvedRgPath, args, opts);
|
|
167
174
|
}
|
|
168
175
|
if (!rgPathChecked) {
|
|
169
|
-
const
|
|
176
|
+
const rgPath = await preferredRgPath();
|
|
177
|
+
const result = await spawnRg(rgPath, args, opts);
|
|
170
178
|
if (!isBinaryFailure(result)) {
|
|
171
|
-
resolvedRgPath =
|
|
179
|
+
resolvedRgPath = rgPath;
|
|
172
180
|
rgPathChecked = true;
|
|
173
181
|
return result;
|
|
174
182
|
}
|
|
@@ -191,12 +199,11 @@ async function runRipgrep(args, opts) {
|
|
|
191
199
|
exitCode: -1
|
|
192
200
|
};
|
|
193
201
|
}
|
|
194
|
-
var import_child_process,
|
|
202
|
+
var import_child_process, resolvedRgPath, rgPathChecked;
|
|
195
203
|
var init_ripgrep = __esm({
|
|
196
204
|
"tools/warp_grep/utils/ripgrep.ts"() {
|
|
197
205
|
"use strict";
|
|
198
206
|
import_child_process = require("child_process");
|
|
199
|
-
import_ripgrep = require("@vscode/ripgrep");
|
|
200
207
|
resolvedRgPath = null;
|
|
201
208
|
rgPathChecked = false;
|
|
202
209
|
}
|
|
@@ -940,7 +947,7 @@ var import_openai = __toESM(require("openai"), 1);
|
|
|
940
947
|
// package.json
|
|
941
948
|
var package_default = {
|
|
942
949
|
name: "@morphllm/morphsdk",
|
|
943
|
-
version: "0.2.
|
|
950
|
+
version: "0.2.202",
|
|
944
951
|
description: "TypeScript SDK and CLI for Morph Fast Apply integration",
|
|
945
952
|
type: "module",
|
|
946
953
|
main: "./dist/index.cjs",
|
|
@@ -5,25 +5,25 @@ import {
|
|
|
5
5
|
execute,
|
|
6
6
|
openai_default,
|
|
7
7
|
warpGrepTool
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-2XU3XXUE.js";
|
|
9
9
|
import "../../chunk-UAPK3AIJ.js";
|
|
10
10
|
import {
|
|
11
11
|
formatResult
|
|
12
|
-
} from "../../chunk-
|
|
12
|
+
} from "../../chunk-3CPI6ZIC.js";
|
|
13
13
|
import "../../chunk-HDP4QAZL.js";
|
|
14
14
|
import "../../chunk-RYVW7RUM.js";
|
|
15
15
|
import "../../chunk-OPDWMD4Q.js";
|
|
16
|
-
import "../../chunk-
|
|
16
|
+
import "../../chunk-UKXCGQPS.js";
|
|
17
17
|
import "../../chunk-44OIEPIO.js";
|
|
18
18
|
import "../../chunk-M34E2AMK.js";
|
|
19
19
|
import "../../chunk-4OUGA3KS.js";
|
|
20
|
-
import "../../chunk-
|
|
21
|
-
import "../../chunk-
|
|
22
|
-
import "../../chunk-
|
|
20
|
+
import "../../chunk-IBRBSDLT.js";
|
|
21
|
+
import "../../chunk-D6YJ5X3C.js";
|
|
22
|
+
import "../../chunk-ICCGLO6V.js";
|
|
23
23
|
import "../../chunk-6WP7EA4F.js";
|
|
24
|
-
import "../../chunk-
|
|
25
|
-
import "../../chunk-
|
|
26
|
-
import "../../chunk-
|
|
24
|
+
import "../../chunk-YAM6P5OQ.js";
|
|
25
|
+
import "../../chunk-VQDDL3UH.js";
|
|
26
|
+
import "../../chunk-E6TL6MIH.js";
|
|
27
27
|
import "../../chunk-NRG6QX3L.js";
|
|
28
28
|
import "../../chunk-MLKGABMK.js";
|
|
29
29
|
export {
|
|
@@ -38,7 +38,6 @@ var import_path2 = __toESM(require("path"), 1);
|
|
|
38
38
|
|
|
39
39
|
// tools/warp_grep/utils/ripgrep.ts
|
|
40
40
|
var import_child_process = require("child_process");
|
|
41
|
-
var import_ripgrep = require("@vscode/ripgrep");
|
|
42
41
|
var resolvedRgPath = null;
|
|
43
42
|
var rgPathChecked = false;
|
|
44
43
|
function spawnRg(rgBinary, args, opts) {
|
|
@@ -60,6 +59,13 @@ function spawnRg(rgBinary, args, opts) {
|
|
|
60
59
|
});
|
|
61
60
|
});
|
|
62
61
|
}
|
|
62
|
+
async function preferredRgPath() {
|
|
63
|
+
try {
|
|
64
|
+
return (await import("@vscode/ripgrep")).rgPath ?? "rg";
|
|
65
|
+
} catch {
|
|
66
|
+
return "rg";
|
|
67
|
+
}
|
|
68
|
+
}
|
|
63
69
|
function isBinaryFailure(result) {
|
|
64
70
|
if (result.exitCode === -1) return true;
|
|
65
71
|
if (result.stderr.includes("jemalloc") || result.stderr.includes("Unsupported system page size")) return true;
|
|
@@ -71,9 +77,10 @@ async function runRipgrep(args, opts) {
|
|
|
71
77
|
return spawnRg(resolvedRgPath, args, opts);
|
|
72
78
|
}
|
|
73
79
|
if (!rgPathChecked) {
|
|
74
|
-
const
|
|
80
|
+
const rgPath = await preferredRgPath();
|
|
81
|
+
const result = await spawnRg(rgPath, args, opts);
|
|
75
82
|
if (!isBinaryFailure(result)) {
|
|
76
|
-
resolvedRgPath =
|
|
83
|
+
resolvedRgPath = rgPath;
|
|
77
84
|
rgPathChecked = true;
|
|
78
85
|
return result;
|
|
79
86
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LocalRipgrepProvider
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-
|
|
3
|
+
} from "../../../chunk-OSL4CNSO.js";
|
|
4
|
+
import "../../../chunk-MLPZKUCO.js";
|
|
5
5
|
import "../../../chunk-6TZCVTW5.js";
|
|
6
6
|
import "../../../chunk-ZSHVXDA2.js";
|
|
7
7
|
import "../../../chunk-M34E2AMK.js";
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
8
|
var __export = (target, all) => {
|
|
7
9
|
for (var name in all)
|
|
@@ -15,6 +17,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
17
|
}
|
|
16
18
|
return to;
|
|
17
19
|
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
18
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
29
|
|
|
20
30
|
// tools/warp_grep/utils/ripgrep.ts
|
|
@@ -24,7 +34,6 @@ __export(ripgrep_exports, {
|
|
|
24
34
|
});
|
|
25
35
|
module.exports = __toCommonJS(ripgrep_exports);
|
|
26
36
|
var import_child_process = require("child_process");
|
|
27
|
-
var import_ripgrep = require("@vscode/ripgrep");
|
|
28
37
|
var resolvedRgPath = null;
|
|
29
38
|
var rgPathChecked = false;
|
|
30
39
|
function spawnRg(rgBinary, args, opts) {
|
|
@@ -46,6 +55,13 @@ function spawnRg(rgBinary, args, opts) {
|
|
|
46
55
|
});
|
|
47
56
|
});
|
|
48
57
|
}
|
|
58
|
+
async function preferredRgPath() {
|
|
59
|
+
try {
|
|
60
|
+
return (await import("@vscode/ripgrep")).rgPath ?? "rg";
|
|
61
|
+
} catch {
|
|
62
|
+
return "rg";
|
|
63
|
+
}
|
|
64
|
+
}
|
|
49
65
|
function isBinaryFailure(result) {
|
|
50
66
|
if (result.exitCode === -1) return true;
|
|
51
67
|
if (result.stderr.includes("jemalloc") || result.stderr.includes("Unsupported system page size")) return true;
|
|
@@ -57,9 +73,10 @@ async function runRipgrep(args, opts) {
|
|
|
57
73
|
return spawnRg(resolvedRgPath, args, opts);
|
|
58
74
|
}
|
|
59
75
|
if (!rgPathChecked) {
|
|
60
|
-
const
|
|
76
|
+
const rgPath = await preferredRgPath();
|
|
77
|
+
const result = await spawnRg(rgPath, args, opts);
|
|
61
78
|
if (!isBinaryFailure(result)) {
|
|
62
|
-
resolvedRgPath =
|
|
79
|
+
resolvedRgPath = rgPath;
|
|
63
80
|
rgPathChecked = true;
|
|
64
81
|
return result;
|
|
65
82
|
}
|