@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
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
runWarpGrep,
|
|
12
12
|
runWarpGrepStreaming
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-UKXCGQPS.js";
|
|
14
14
|
import {
|
|
15
15
|
compactFileContexts
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-IBRBSDLT.js";
|
|
17
17
|
import {
|
|
18
18
|
MorphAPIClient
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ICCGLO6V.js";
|
|
20
20
|
import {
|
|
21
21
|
logger
|
|
22
22
|
} from "./chunk-6WP7EA4F.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FastApplyAnchorIntegrityError,
|
|
3
3
|
FastApplyContextLengthError
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JEVLCA5C.js";
|
|
5
5
|
import {
|
|
6
6
|
MorphAPIClient
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ICCGLO6V.js";
|
|
8
8
|
import {
|
|
9
9
|
logger
|
|
10
10
|
} from "./chunk-6WP7EA4F.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MorphAPIClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ICCGLO6V.js";
|
|
4
4
|
import {
|
|
5
5
|
logger
|
|
6
6
|
} from "./chunk-6WP7EA4F.js";
|
|
7
7
|
import {
|
|
8
8
|
MorphError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VQDDL3UH.js";
|
|
10
10
|
import {
|
|
11
11
|
APIResource
|
|
12
12
|
} from "./chunk-NRG6QX3L.js";
|
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
} from "./chunk-6WP7EA4F.js";
|
|
4
4
|
import {
|
|
5
5
|
toMorphError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YAM6P5OQ.js";
|
|
7
7
|
import {
|
|
8
8
|
MorphError,
|
|
9
9
|
fetchWithRetry,
|
|
10
10
|
withTimeout
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-VQDDL3UH.js";
|
|
12
12
|
import {
|
|
13
13
|
SDK_VERSION
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-E6TL6MIH.js";
|
|
15
15
|
|
|
16
16
|
// core/client.ts
|
|
17
17
|
var DEFAULT_BASE_URL = "https://api.morphllm.com";
|
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createGitHubSearchTool,
|
|
3
3
|
createWarpGrepTool
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-2XU3XXUE.js";
|
|
5
5
|
import {
|
|
6
6
|
createGitHubSearchTool as createGitHubSearchTool3,
|
|
7
7
|
createWarpGrepTool as createWarpGrepTool3
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-NFPRKZQ5.js";
|
|
9
9
|
import {
|
|
10
10
|
createGitHubSearchTool as createGitHubSearchTool2,
|
|
11
11
|
createWarpGrepTool as createWarpGrepTool2
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-SIFDK4AA.js";
|
|
13
13
|
import {
|
|
14
14
|
createEditFileTool
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-CAWQEHKP.js";
|
|
16
16
|
import {
|
|
17
17
|
createEditFileTool as createEditFileTool3
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-PDSIWL7I.js";
|
|
19
19
|
import {
|
|
20
20
|
createEditFileTool as createEditFileTool2
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-26K5EJD3.js";
|
|
22
22
|
import {
|
|
23
23
|
FastApplyClient
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-65TUD7JV.js";
|
|
25
25
|
import {
|
|
26
26
|
createExploreSubagent
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-XPHNS7NW.js";
|
|
28
28
|
import {
|
|
29
29
|
createExploreSubagent as createExploreSubagent2
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-UAZKHSEU.js";
|
|
31
31
|
import {
|
|
32
32
|
WarpGrepClient
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-3CPI6ZIC.js";
|
|
34
34
|
import {
|
|
35
35
|
AnthropicRouter,
|
|
36
36
|
GeminiRouter,
|
|
37
37
|
OpenAIRouter,
|
|
38
38
|
RawRouter,
|
|
39
39
|
RouterClassifier
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-6OYJC4TZ.js";
|
|
41
41
|
import {
|
|
42
42
|
CompactClient
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-D6YJ5X3C.js";
|
|
44
44
|
import {
|
|
45
45
|
MorphAPIClient
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-ICCGLO6V.js";
|
|
47
47
|
import {
|
|
48
48
|
logger
|
|
49
49
|
} from "./chunk-6WP7EA4F.js";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// tools/warp_grep/utils/ripgrep.ts
|
|
2
2
|
import { spawn } from "child_process";
|
|
3
|
-
import { rgPath } from "@vscode/ripgrep";
|
|
4
3
|
var resolvedRgPath = null;
|
|
5
4
|
var rgPathChecked = false;
|
|
6
5
|
function spawnRg(rgBinary, args, opts) {
|
|
@@ -22,6 +21,13 @@ function spawnRg(rgBinary, args, opts) {
|
|
|
22
21
|
});
|
|
23
22
|
});
|
|
24
23
|
}
|
|
24
|
+
async function preferredRgPath() {
|
|
25
|
+
try {
|
|
26
|
+
return (await import("@vscode/ripgrep")).rgPath ?? "rg";
|
|
27
|
+
} catch {
|
|
28
|
+
return "rg";
|
|
29
|
+
}
|
|
30
|
+
}
|
|
25
31
|
function isBinaryFailure(result) {
|
|
26
32
|
if (result.exitCode === -1) return true;
|
|
27
33
|
if (result.stderr.includes("jemalloc") || result.stderr.includes("Unsupported system page size")) return true;
|
|
@@ -33,6 +39,7 @@ async function runRipgrep(args, opts) {
|
|
|
33
39
|
return spawnRg(resolvedRgPath, args, opts);
|
|
34
40
|
}
|
|
35
41
|
if (!rgPathChecked) {
|
|
42
|
+
const rgPath = await preferredRgPath();
|
|
36
43
|
const result = await spawnRg(rgPath, args, opts);
|
|
37
44
|
if (!isBinaryFailure(result)) {
|
|
38
45
|
resolvedRgPath = rgPath;
|
package/dist/client.cjs
CHANGED
|
@@ -36,7 +36,7 @@ var init_package = __esm({
|
|
|
36
36
|
"package.json"() {
|
|
37
37
|
package_default = {
|
|
38
38
|
name: "@morphllm/morphsdk",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.202",
|
|
40
40
|
description: "TypeScript SDK and CLI for Morph Fast Apply integration",
|
|
41
41
|
type: "module",
|
|
42
42
|
main: "./dist/index.cjs",
|
|
@@ -826,6 +826,13 @@ function spawnRg(rgBinary, args, opts) {
|
|
|
826
826
|
});
|
|
827
827
|
});
|
|
828
828
|
}
|
|
829
|
+
async function preferredRgPath() {
|
|
830
|
+
try {
|
|
831
|
+
return (await import("@vscode/ripgrep")).rgPath ?? "rg";
|
|
832
|
+
} catch {
|
|
833
|
+
return "rg";
|
|
834
|
+
}
|
|
835
|
+
}
|
|
829
836
|
function isBinaryFailure(result) {
|
|
830
837
|
if (result.exitCode === -1) return true;
|
|
831
838
|
if (result.stderr.includes("jemalloc") || result.stderr.includes("Unsupported system page size")) return true;
|
|
@@ -837,9 +844,10 @@ async function runRipgrep(args, opts) {
|
|
|
837
844
|
return spawnRg(resolvedRgPath, args, opts);
|
|
838
845
|
}
|
|
839
846
|
if (!rgPathChecked) {
|
|
840
|
-
const
|
|
847
|
+
const rgPath = await preferredRgPath();
|
|
848
|
+
const result = await spawnRg(rgPath, args, opts);
|
|
841
849
|
if (!isBinaryFailure(result)) {
|
|
842
|
-
resolvedRgPath =
|
|
850
|
+
resolvedRgPath = rgPath;
|
|
843
851
|
rgPathChecked = true;
|
|
844
852
|
return result;
|
|
845
853
|
}
|
|
@@ -862,12 +870,11 @@ async function runRipgrep(args, opts) {
|
|
|
862
870
|
exitCode: -1
|
|
863
871
|
};
|
|
864
872
|
}
|
|
865
|
-
var import_child_process,
|
|
873
|
+
var import_child_process, resolvedRgPath, rgPathChecked;
|
|
866
874
|
var init_ripgrep = __esm({
|
|
867
875
|
"tools/warp_grep/utils/ripgrep.ts"() {
|
|
868
876
|
"use strict";
|
|
869
877
|
import_child_process = require("child_process");
|
|
870
|
-
import_ripgrep = require("@vscode/ripgrep");
|
|
871
878
|
resolvedRgPath = null;
|
|
872
879
|
rgPathChecked = false;
|
|
873
880
|
}
|
package/dist/client.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MorphClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-LVKKICOB.js";
|
|
4
|
+
import "./chunk-2XU3XXUE.js";
|
|
5
|
+
import "./chunk-NFPRKZQ5.js";
|
|
6
|
+
import "./chunk-SIFDK4AA.js";
|
|
7
7
|
import "./chunk-UAPK3AIJ.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-CAWQEHKP.js";
|
|
9
|
+
import "./chunk-PDSIWL7I.js";
|
|
10
|
+
import "./chunk-26K5EJD3.js";
|
|
11
11
|
import "./chunk-PA3UTI4A.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-65TUD7JV.js";
|
|
13
|
+
import "./chunk-XPHNS7NW.js";
|
|
14
|
+
import "./chunk-UAZKHSEU.js";
|
|
15
|
+
import "./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-
|
|
23
|
+
import "./chunk-IBRBSDLT.js";
|
|
24
24
|
import "./chunk-ETBRAKVV.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-JEVLCA5C.js";
|
|
26
|
+
import "./chunk-6OYJC4TZ.js";
|
|
27
|
+
import "./chunk-D6YJ5X3C.js";
|
|
28
|
+
import "./chunk-ICCGLO6V.js";
|
|
29
29
|
import "./chunk-6WP7EA4F.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-YAM6P5OQ.js";
|
|
31
|
+
import "./chunk-VQDDL3UH.js";
|
|
32
|
+
import "./chunk-E6TL6MIH.js";
|
|
33
33
|
import "./chunk-NRG6QX3L.js";
|
|
34
34
|
import "./chunk-MLKGABMK.js";
|
|
35
35
|
export {
|
package/dist/core/client.cjs
CHANGED
|
@@ -37,7 +37,7 @@ module.exports = __toCommonJS(client_exports);
|
|
|
37
37
|
// package.json
|
|
38
38
|
var package_default = {
|
|
39
39
|
name: "@morphllm/morphsdk",
|
|
40
|
-
version: "0.2.
|
|
40
|
+
version: "0.2.202",
|
|
41
41
|
description: "TypeScript SDK and CLI for Morph Fast Apply integration",
|
|
42
42
|
type: "module",
|
|
43
43
|
main: "./dist/index.cjs",
|
package/dist/core/client.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MorphAPIClient
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-ICCGLO6V.js";
|
|
4
4
|
import "../chunk-6WP7EA4F.js";
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-YAM6P5OQ.js";
|
|
6
|
+
import "../chunk-VQDDL3UH.js";
|
|
7
|
+
import "../chunk-E6TL6MIH.js";
|
|
8
8
|
import "../chunk-MLKGABMK.js";
|
|
9
9
|
export {
|
|
10
10
|
MorphAPIClient
|
package/dist/core/error.cjs
CHANGED
|
@@ -27,7 +27,7 @@ module.exports = __toCommonJS(error_exports);
|
|
|
27
27
|
// package.json
|
|
28
28
|
var package_default = {
|
|
29
29
|
name: "@morphllm/morphsdk",
|
|
30
|
-
version: "0.2.
|
|
30
|
+
version: "0.2.202",
|
|
31
31
|
description: "TypeScript SDK and CLI for Morph Fast Apply integration",
|
|
32
32
|
type: "module",
|
|
33
33
|
main: "./dist/index.cjs",
|
package/dist/core/error.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
toMorphError
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-YAM6P5OQ.js";
|
|
4
|
+
import "../chunk-VQDDL3UH.js";
|
|
5
|
+
import "../chunk-E6TL6MIH.js";
|
|
6
6
|
import "../chunk-MLKGABMK.js";
|
|
7
7
|
export {
|
|
8
8
|
toMorphError
|
package/dist/core/index.cjs
CHANGED
|
@@ -39,7 +39,7 @@ module.exports = __toCommonJS(core_exports);
|
|
|
39
39
|
// package.json
|
|
40
40
|
var package_default = {
|
|
41
41
|
name: "@morphllm/morphsdk",
|
|
42
|
-
version: "0.2.
|
|
42
|
+
version: "0.2.202",
|
|
43
43
|
description: "TypeScript SDK and CLI for Morph Fast Apply integration",
|
|
44
44
|
type: "module",
|
|
45
45
|
main: "./dist/index.cjs",
|
package/dist/core/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "../chunk-LDM7RNNN.js";
|
|
2
2
|
import {
|
|
3
3
|
MorphAPIClient
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-ICCGLO6V.js";
|
|
5
5
|
import "../chunk-6WP7EA4F.js";
|
|
6
6
|
import {
|
|
7
7
|
toMorphError
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-YAM6P5OQ.js";
|
|
9
|
+
import "../chunk-VQDDL3UH.js";
|
|
10
|
+
import "../chunk-E6TL6MIH.js";
|
|
11
11
|
import {
|
|
12
12
|
APIResource
|
|
13
13
|
} from "../chunk-NRG6QX3L.js";
|
package/dist/edge.cjs
CHANGED
|
@@ -49,7 +49,7 @@ module.exports = __toCommonJS(edge_exports);
|
|
|
49
49
|
// package.json
|
|
50
50
|
var package_default = {
|
|
51
51
|
name: "@morphllm/morphsdk",
|
|
52
|
-
version: "0.2.
|
|
52
|
+
version: "0.2.202",
|
|
53
53
|
description: "TypeScript SDK and CLI for Morph Fast Apply integration",
|
|
54
54
|
type: "module",
|
|
55
55
|
main: "./dist/index.cjs",
|
package/dist/edge.js
CHANGED
|
@@ -5,24 +5,24 @@ import {
|
|
|
5
5
|
callMorphAPI,
|
|
6
6
|
countChanges,
|
|
7
7
|
generateUdiff
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-JEVLCA5C.js";
|
|
9
9
|
import {
|
|
10
10
|
AnthropicRouter,
|
|
11
11
|
GeminiRouter,
|
|
12
12
|
OpenAIRouter,
|
|
13
13
|
RawRouter,
|
|
14
14
|
RouterClassifier
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6OYJC4TZ.js";
|
|
16
16
|
import {
|
|
17
17
|
CompactClient
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-D6YJ5X3C.js";
|
|
19
|
+
import "./chunk-ICCGLO6V.js";
|
|
20
20
|
import "./chunk-6WP7EA4F.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-YAM6P5OQ.js";
|
|
22
|
+
import "./chunk-VQDDL3UH.js";
|
|
23
23
|
import {
|
|
24
24
|
SDK_VERSION
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-E6TL6MIH.js";
|
|
26
26
|
import "./chunk-NRG6QX3L.js";
|
|
27
27
|
import "./chunk-MLKGABMK.js";
|
|
28
28
|
export {
|
package/dist/index.cjs
CHANGED
|
@@ -36,7 +36,7 @@ var init_package = __esm({
|
|
|
36
36
|
"package.json"() {
|
|
37
37
|
package_default = {
|
|
38
38
|
name: "@morphllm/morphsdk",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.202",
|
|
40
40
|
description: "TypeScript SDK and CLI for Morph Fast Apply integration",
|
|
41
41
|
type: "module",
|
|
42
42
|
main: "./dist/index.cjs",
|
|
@@ -826,6 +826,13 @@ function spawnRg(rgBinary, args, opts) {
|
|
|
826
826
|
});
|
|
827
827
|
});
|
|
828
828
|
}
|
|
829
|
+
async function preferredRgPath() {
|
|
830
|
+
try {
|
|
831
|
+
return (await import("@vscode/ripgrep")).rgPath ?? "rg";
|
|
832
|
+
} catch {
|
|
833
|
+
return "rg";
|
|
834
|
+
}
|
|
835
|
+
}
|
|
829
836
|
function isBinaryFailure(result) {
|
|
830
837
|
if (result.exitCode === -1) return true;
|
|
831
838
|
if (result.stderr.includes("jemalloc") || result.stderr.includes("Unsupported system page size")) return true;
|
|
@@ -837,9 +844,10 @@ async function runRipgrep(args, opts) {
|
|
|
837
844
|
return spawnRg(resolvedRgPath, args, opts);
|
|
838
845
|
}
|
|
839
846
|
if (!rgPathChecked) {
|
|
840
|
-
const
|
|
847
|
+
const rgPath = await preferredRgPath();
|
|
848
|
+
const result = await spawnRg(rgPath, args, opts);
|
|
841
849
|
if (!isBinaryFailure(result)) {
|
|
842
|
-
resolvedRgPath =
|
|
850
|
+
resolvedRgPath = rgPath;
|
|
843
851
|
rgPathChecked = true;
|
|
844
852
|
return result;
|
|
845
853
|
}
|
|
@@ -862,12 +870,11 @@ async function runRipgrep(args, opts) {
|
|
|
862
870
|
exitCode: -1
|
|
863
871
|
};
|
|
864
872
|
}
|
|
865
|
-
var import_child_process,
|
|
873
|
+
var import_child_process, resolvedRgPath, rgPathChecked;
|
|
866
874
|
var init_ripgrep = __esm({
|
|
867
875
|
"tools/warp_grep/utils/ripgrep.ts"() {
|
|
868
876
|
"use strict";
|
|
869
877
|
import_child_process = require("child_process");
|
|
870
|
-
import_ripgrep = require("@vscode/ripgrep");
|
|
871
878
|
resolvedRgPath = null;
|
|
872
879
|
rgPathChecked = false;
|
|
873
880
|
}
|