@morphllm/morphsdk 0.2.189 → 0.2.191
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-23CLZZMU.js → chunk-2C7VYXAS.js} +2 -2
- package/dist/{chunk-SQPH6GIE.js → chunk-4OK2MQ6D.js} +3 -3
- package/dist/{chunk-EL3PFPAG.js → chunk-64C7KH43.js} +2 -2
- package/dist/{chunk-WWB6LGTC.js → chunk-7CHATKFG.js} +3 -3
- package/dist/{chunk-6QEN3GDU.js → chunk-AGZWNSYQ.js} +2 -2
- package/dist/{chunk-ED7EJHT4.js → chunk-BQ7TIETH.js} +2 -2
- package/dist/{chunk-QYPZL2IU.js → chunk-CEQGLXFL.js} +2 -2
- package/dist/{chunk-TZAYSJTA.js → chunk-COFXBRFH.js} +2 -2
- package/dist/{chunk-B2M45EM7.js → chunk-E5PPKNP7.js} +2 -2
- package/dist/{chunk-3FSNRVGX.js → chunk-EGZHEFVZ.js} +2 -2
- package/dist/{chunk-QXQWVXR5.js → chunk-F4FIXHMI.js} +23 -23
- package/dist/{chunk-DBLW6DDW.js → chunk-FKF52VSB.js} +2 -2
- package/dist/{chunk-3OFDPEWP.js → chunk-FSMAW6PJ.js} +2 -2
- package/dist/{chunk-A757WPBG.js → chunk-HOGGK6XD.js} +2 -2
- package/dist/{chunk-PSFKRTG7.js → chunk-J5KIUNUN.js} +2 -2
- package/dist/{chunk-PSFKRTG7.js.map → chunk-J5KIUNUN.js.map} +1 -1
- package/dist/{chunk-FA2UYSGI.js → chunk-JZ7Y6HZV.js} +3 -3
- package/dist/{chunk-G5SPU45F.js → chunk-LWINQ2RM.js} +15 -8
- package/dist/chunk-LWINQ2RM.js.map +1 -0
- package/dist/{chunk-GVGJIXV2.js → chunk-MRMBFJR2.js} +17 -7
- package/dist/chunk-MRMBFJR2.js.map +1 -0
- package/dist/{chunk-V5NMFRJ4.js → chunk-OB44QQNL.js} +4 -4
- package/dist/{chunk-YO5BQMSP.js → chunk-OUG4ELG5.js} +2 -2
- package/dist/{chunk-A5SAWVC3.js → chunk-PCNK6Y46.js} +2 -2
- package/dist/{chunk-N46EHRKD.js → chunk-RDW27VLU.js} +2 -2
- package/dist/{chunk-SY65P6FE.js → chunk-SNGALUO7.js} +2 -2
- package/dist/{chunk-5RJM5O2N.js → chunk-TKKPH5GW.js} +2 -2
- package/dist/{chunk-EUPISPLN.js → chunk-U2F3EPZJ.js} +3 -3
- package/dist/{chunk-KSGVHWG7.js → chunk-ULJP7VQF.js} +2 -2
- package/dist/{chunk-DYWXVFUT.js → chunk-VA6RRTXW.js} +2 -2
- package/dist/{chunk-WDTQSCEF.js → chunk-VKPE4HR2.js} +2 -2
- package/dist/{chunk-PSY52HPS.js → chunk-WVZZV5YS.js} +2 -2
- package/dist/{chunk-ZTGDTW4B.js → chunk-XOXIFA6I.js} +2 -2
- package/dist/{chunk-XT6Y3YWD.js → chunk-XUAYUGVU.js} +2 -2
- package/dist/{chunk-FHKHINJ6.js → chunk-Z2KWDMFO.js} +4 -4
- package/dist/{client-BtIoVFEt.d.ts → client-Rn1zymAl.d.ts} +1 -1
- package/dist/client.cjs +30 -14
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.ts +2 -2
- package/dist/client.js +30 -30
- package/dist/core/client.cjs +1 -1
- package/dist/core/client.cjs.map +1 -1
- package/dist/core/client.js +4 -4
- package/dist/core/error.cjs +1 -1
- package/dist/core/error.cjs.map +1 -1
- package/dist/core/error.js +3 -3
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.js +4 -4
- package/dist/edge.cjs +1 -1
- package/dist/edge.cjs.map +1 -1
- package/dist/edge.js +12 -12
- package/dist/git/client.cjs +1 -1
- package/dist/git/client.cjs.map +1 -1
- package/dist/git/client.js +5 -5
- package/dist/git/index.cjs +1 -1
- package/dist/git/index.cjs.map +1 -1
- package/dist/git/index.js +5 -5
- package/dist/index.cjs +30 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +34 -34
- package/dist/modelrouter/core.cjs +1 -1
- package/dist/modelrouter/core.cjs.map +1 -1
- package/dist/modelrouter/core.js +5 -5
- package/dist/modelrouter/index.cjs +1 -1
- package/dist/modelrouter/index.cjs.map +1 -1
- package/dist/modelrouter/index.js +5 -5
- package/dist/subagents/anthropic.cjs +30 -14
- package/dist/subagents/anthropic.cjs.map +1 -1
- package/dist/subagents/anthropic.d.ts +1 -1
- package/dist/subagents/anthropic.js +10 -10
- package/dist/subagents/index.d.ts +1 -1
- package/dist/subagents/prompts.d.ts +1 -1
- package/dist/subagents/types.d.ts +1 -1
- package/dist/subagents/vercel.cjs +30 -14
- package/dist/subagents/vercel.cjs.map +1 -1
- package/dist/subagents/vercel.d.ts +1 -1
- package/dist/subagents/vercel.js +10 -10
- package/dist/tools/browser/anthropic.cjs +1 -1
- package/dist/tools/browser/anthropic.cjs.map +1 -1
- package/dist/tools/browser/anthropic.js +7 -7
- package/dist/tools/browser/core.cjs +1 -1
- package/dist/tools/browser/core.cjs.map +1 -1
- package/dist/tools/browser/core.js +6 -6
- package/dist/tools/browser/index.cjs +1 -1
- package/dist/tools/browser/index.cjs.map +1 -1
- package/dist/tools/browser/index.js +9 -9
- package/dist/tools/browser/openai.cjs +1 -1
- package/dist/tools/browser/openai.cjs.map +1 -1
- package/dist/tools/browser/openai.js +7 -7
- package/dist/tools/browser/profiles/core.cjs +1 -1
- package/dist/tools/browser/profiles/core.cjs.map +1 -1
- package/dist/tools/browser/profiles/core.js +3 -3
- package/dist/tools/browser/profiles/index.cjs +1 -1
- package/dist/tools/browser/profiles/index.cjs.map +1 -1
- package/dist/tools/browser/profiles/index.js +3 -3
- package/dist/tools/browser/vercel.cjs +1 -1
- package/dist/tools/browser/vercel.cjs.map +1 -1
- package/dist/tools/browser/vercel.js +7 -7
- package/dist/tools/codebase_search/anthropic.cjs +1 -1
- package/dist/tools/codebase_search/anthropic.cjs.map +1 -1
- package/dist/tools/codebase_search/anthropic.js +6 -6
- package/dist/tools/codebase_search/core.cjs +1 -1
- package/dist/tools/codebase_search/core.cjs.map +1 -1
- package/dist/tools/codebase_search/core.js +5 -5
- package/dist/tools/codebase_search/index.cjs +1 -1
- package/dist/tools/codebase_search/index.cjs.map +1 -1
- package/dist/tools/codebase_search/index.js +8 -8
- package/dist/tools/codebase_search/openai.cjs +1 -1
- package/dist/tools/codebase_search/openai.cjs.map +1 -1
- package/dist/tools/codebase_search/openai.js +6 -6
- package/dist/tools/codebase_search/vercel.cjs +1 -1
- package/dist/tools/codebase_search/vercel.cjs.map +1 -1
- package/dist/tools/codebase_search/vercel.js +6 -6
- package/dist/tools/compact/core.cjs +1 -1
- package/dist/tools/compact/core.cjs.map +1 -1
- package/dist/tools/compact/core.js +5 -5
- package/dist/tools/compact/index.cjs +1 -1
- package/dist/tools/compact/index.cjs.map +1 -1
- package/dist/tools/compact/index.js +6 -6
- package/dist/tools/fastapply/anthropic.cjs +1 -1
- package/dist/tools/fastapply/anthropic.cjs.map +1 -1
- package/dist/tools/fastapply/anthropic.js +7 -7
- package/dist/tools/fastapply/apply.cjs +1 -1
- package/dist/tools/fastapply/apply.cjs.map +1 -1
- package/dist/tools/fastapply/apply.js +2 -2
- package/dist/tools/fastapply/core.cjs +1 -1
- package/dist/tools/fastapply/core.cjs.map +1 -1
- package/dist/tools/fastapply/core.js +6 -6
- package/dist/tools/fastapply/index.cjs +1 -1
- package/dist/tools/fastapply/index.cjs.map +1 -1
- package/dist/tools/fastapply/index.js +9 -9
- package/dist/tools/fastapply/openai.cjs +1 -1
- package/dist/tools/fastapply/openai.cjs.map +1 -1
- package/dist/tools/fastapply/openai.js +7 -7
- package/dist/tools/fastapply/vercel.cjs +1 -1
- package/dist/tools/fastapply/vercel.cjs.map +1 -1
- package/dist/tools/fastapply/vercel.js +7 -7
- package/dist/tools/index.cjs +1 -1
- package/dist/tools/index.cjs.map +1 -1
- package/dist/tools/index.js +9 -9
- package/dist/tools/reflex/core.cjs +1 -1
- package/dist/tools/reflex/core.cjs.map +1 -1
- package/dist/tools/reflex/core.js +5 -5
- package/dist/tools/reflex/index.cjs +1 -1
- package/dist/tools/reflex/index.cjs.map +1 -1
- package/dist/tools/reflex/index.js +5 -5
- package/dist/tools/utils/resilience.cjs +1 -1
- package/dist/tools/utils/resilience.cjs.map +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.cjs.map +1 -1
- package/dist/tools/warp_grep/agent/runner.js +2 -2
- package/dist/tools/warp_grep/anthropic.cjs +30 -14
- package/dist/tools/warp_grep/anthropic.cjs.map +1 -1
- package/dist/tools/warp_grep/anthropic.d.ts +1 -1
- package/dist/tools/warp_grep/anthropic.js +10 -10
- package/dist/tools/warp_grep/client.cjs +30 -14
- package/dist/tools/warp_grep/client.cjs.map +1 -1
- package/dist/tools/warp_grep/client.d.ts +1 -1
- package/dist/tools/warp_grep/client.js +9 -9
- package/dist/tools/warp_grep/gemini.cjs +30 -14
- package/dist/tools/warp_grep/gemini.cjs.map +1 -1
- package/dist/tools/warp_grep/gemini.d.ts +1 -1
- package/dist/tools/warp_grep/gemini.js +9 -9
- package/dist/tools/warp_grep/index.cjs +30 -14
- package/dist/tools/warp_grep/index.cjs.map +1 -1
- package/dist/tools/warp_grep/index.d.ts +1 -1
- package/dist/tools/warp_grep/index.js +9 -9
- package/dist/tools/warp_grep/openai.cjs +30 -14
- package/dist/tools/warp_grep/openai.cjs.map +1 -1
- package/dist/tools/warp_grep/openai.d.ts +1 -1
- package/dist/tools/warp_grep/openai.js +10 -10
- package/dist/tools/warp_grep/providers/code_storage_http.cjs +19 -8
- package/dist/tools/warp_grep/providers/code_storage_http.cjs.map +1 -1
- package/dist/tools/warp_grep/providers/code_storage_http.d.ts +6 -3
- package/dist/tools/warp_grep/providers/code_storage_http.js +5 -3
- package/dist/tools/warp_grep/providers/remote.d.ts +1 -1
- package/dist/tools/warp_grep/vercel.cjs +30 -14
- package/dist/tools/warp_grep/vercel.cjs.map +1 -1
- package/dist/tools/warp_grep/vercel.d.ts +1 -1
- package/dist/tools/warp_grep/vercel.js +10 -10
- package/dist/{types-CtkD4o1_.d.ts → types-qwD753FR.d.ts} +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.cjs.map +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-G5SPU45F.js.map +0 -1
- package/dist/chunk-GVGJIXV2.js.map +0 -1
- /package/dist/{chunk-23CLZZMU.js.map → chunk-2C7VYXAS.js.map} +0 -0
- /package/dist/{chunk-SQPH6GIE.js.map → chunk-4OK2MQ6D.js.map} +0 -0
- /package/dist/{chunk-EL3PFPAG.js.map → chunk-64C7KH43.js.map} +0 -0
- /package/dist/{chunk-WWB6LGTC.js.map → chunk-7CHATKFG.js.map} +0 -0
- /package/dist/{chunk-6QEN3GDU.js.map → chunk-AGZWNSYQ.js.map} +0 -0
- /package/dist/{chunk-ED7EJHT4.js.map → chunk-BQ7TIETH.js.map} +0 -0
- /package/dist/{chunk-QYPZL2IU.js.map → chunk-CEQGLXFL.js.map} +0 -0
- /package/dist/{chunk-TZAYSJTA.js.map → chunk-COFXBRFH.js.map} +0 -0
- /package/dist/{chunk-B2M45EM7.js.map → chunk-E5PPKNP7.js.map} +0 -0
- /package/dist/{chunk-3FSNRVGX.js.map → chunk-EGZHEFVZ.js.map} +0 -0
- /package/dist/{chunk-QXQWVXR5.js.map → chunk-F4FIXHMI.js.map} +0 -0
- /package/dist/{chunk-DBLW6DDW.js.map → chunk-FKF52VSB.js.map} +0 -0
- /package/dist/{chunk-3OFDPEWP.js.map → chunk-FSMAW6PJ.js.map} +0 -0
- /package/dist/{chunk-A757WPBG.js.map → chunk-HOGGK6XD.js.map} +0 -0
- /package/dist/{chunk-FA2UYSGI.js.map → chunk-JZ7Y6HZV.js.map} +0 -0
- /package/dist/{chunk-V5NMFRJ4.js.map → chunk-OB44QQNL.js.map} +0 -0
- /package/dist/{chunk-YO5BQMSP.js.map → chunk-OUG4ELG5.js.map} +0 -0
- /package/dist/{chunk-A5SAWVC3.js.map → chunk-PCNK6Y46.js.map} +0 -0
- /package/dist/{chunk-N46EHRKD.js.map → chunk-RDW27VLU.js.map} +0 -0
- /package/dist/{chunk-SY65P6FE.js.map → chunk-SNGALUO7.js.map} +0 -0
- /package/dist/{chunk-5RJM5O2N.js.map → chunk-TKKPH5GW.js.map} +0 -0
- /package/dist/{chunk-EUPISPLN.js.map → chunk-U2F3EPZJ.js.map} +0 -0
- /package/dist/{chunk-KSGVHWG7.js.map → chunk-ULJP7VQF.js.map} +0 -0
- /package/dist/{chunk-DYWXVFUT.js.map → chunk-VA6RRTXW.js.map} +0 -0
- /package/dist/{chunk-WDTQSCEF.js.map → chunk-VKPE4HR2.js.map} +0 -0
- /package/dist/{chunk-PSY52HPS.js.map → chunk-WVZZV5YS.js.map} +0 -0
- /package/dist/{chunk-ZTGDTW4B.js.map → chunk-XOXIFA6I.js.map} +0 -0
- /package/dist/{chunk-XT6Y3YWD.js.map → chunk-XUAYUGVU.js.map} +0 -0
- /package/dist/{chunk-FHKHINJ6.js.map → chunk-Z2KWDMFO.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ProfilesClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VKPE4HR2.js";
|
|
4
4
|
import {
|
|
5
5
|
buildEmbedCode,
|
|
6
6
|
buildLiveIframe,
|
|
@@ -9,14 +9,14 @@ import {
|
|
|
9
9
|
} from "./chunk-YTYCHRQ2.js";
|
|
10
10
|
import {
|
|
11
11
|
MorphAPIClient
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-Z2KWDMFO.js";
|
|
13
13
|
import {
|
|
14
14
|
logger
|
|
15
15
|
} from "./chunk-F3NCFNUX.js";
|
|
16
16
|
import {
|
|
17
17
|
fetchWithRetry,
|
|
18
18
|
withTimeout
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-64C7KH43.js";
|
|
20
20
|
import {
|
|
21
21
|
APIResource
|
|
22
22
|
} from "./chunk-LKFZBBTD.js";
|
|
@@ -619,4 +619,4 @@ export {
|
|
|
619
619
|
getWebp,
|
|
620
620
|
checkHealth
|
|
621
621
|
};
|
|
622
|
-
//# sourceMappingURL=chunk-
|
|
622
|
+
//# sourceMappingURL=chunk-OB44QQNL.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WarpGrepClient,
|
|
3
3
|
formatResult
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LWINQ2RM.js";
|
|
5
5
|
import {
|
|
6
6
|
CODEBASE_SEARCH_TOOL,
|
|
7
7
|
SEND_MESSAGE_TOOL,
|
|
@@ -285,4 +285,4 @@ function deduplicateContexts(contexts) {
|
|
|
285
285
|
export {
|
|
286
286
|
createExploreSubagent
|
|
287
287
|
};
|
|
288
|
-
//# sourceMappingURL=chunk-
|
|
288
|
+
//# sourceMappingURL=chunk-OUG4ELG5.js.map
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
executeToolCall,
|
|
15
15
|
formatGitHubReadFileResult,
|
|
16
16
|
formatResult
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-LWINQ2RM.js";
|
|
18
18
|
|
|
19
19
|
// tools/warp_grep/openai.ts
|
|
20
20
|
var TOOL_PARAMETERS = {
|
|
@@ -104,4 +104,4 @@ export {
|
|
|
104
104
|
createGitHubReadFileTool,
|
|
105
105
|
openai_default
|
|
106
106
|
};
|
|
107
|
-
//# sourceMappingURL=chunk-
|
|
107
|
+
//# sourceMappingURL=chunk-PCNK6Y46.js.map
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
} from "./chunk-F3NCFNUX.js";
|
|
24
24
|
import {
|
|
25
25
|
SDK_VERSION
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-J5KIUNUN.js";
|
|
27
27
|
|
|
28
28
|
// tools/warp_grep/agent/runner.ts
|
|
29
29
|
import OpenAI from "openai";
|
|
@@ -425,4 +425,4 @@ export {
|
|
|
425
425
|
runWarpGrepStreaming,
|
|
426
426
|
runWarpGrep
|
|
427
427
|
};
|
|
428
|
-
//# sourceMappingURL=chunk-
|
|
428
|
+
//# sourceMappingURL=chunk-RDW27VLU.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-F3NCFNUX.js";
|
|
4
4
|
import {
|
|
5
5
|
SDK_VERSION
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-J5KIUNUN.js";
|
|
7
7
|
|
|
8
8
|
// tools/fastapply/apply.ts
|
|
9
9
|
import { createTwoFilesPatch } from "diff";
|
|
@@ -145,4 +145,4 @@ export {
|
|
|
145
145
|
callMorphAPI,
|
|
146
146
|
applyEdit
|
|
147
147
|
};
|
|
148
|
-
//# sourceMappingURL=chunk-
|
|
148
|
+
//# sourceMappingURL=chunk-SNGALUO7.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-63WE2C5R.js";
|
|
5
5
|
import {
|
|
6
6
|
executeEditFile
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BQ7TIETH.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
10
|
} from "./chunk-PZ5AY32C.js";
|
|
@@ -91,4 +91,4 @@ export {
|
|
|
91
91
|
openai_default,
|
|
92
92
|
openai_exports
|
|
93
93
|
};
|
|
94
|
-
//# sourceMappingURL=chunk-
|
|
94
|
+
//# sourceMappingURL=chunk-TKKPH5GW.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MorphAPIClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Z2KWDMFO.js";
|
|
4
4
|
import {
|
|
5
5
|
logger
|
|
6
6
|
} from "./chunk-F3NCFNUX.js";
|
|
7
7
|
import {
|
|
8
8
|
MorphError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-64C7KH43.js";
|
|
10
10
|
import {
|
|
11
11
|
APIResource
|
|
12
12
|
} from "./chunk-LKFZBBTD.js";
|
|
@@ -174,4 +174,4 @@ export {
|
|
|
174
174
|
RawRouter,
|
|
175
175
|
RouterClassifier
|
|
176
176
|
};
|
|
177
|
-
//# sourceMappingURL=chunk-
|
|
177
|
+
//# sourceMappingURL=chunk-U2F3EPZJ.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CompactClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7CHATKFG.js";
|
|
4
4
|
|
|
5
5
|
// tools/compact/utils.ts
|
|
6
6
|
async function compactFileContexts(files, query, apiKey, apiUrl, maxTokens = 1e4, maxConcurrency = 3) {
|
|
@@ -50,4 +50,4 @@ async function compactFileContexts(files, query, apiKey, apiUrl, maxTokens = 1e4
|
|
|
50
50
|
export {
|
|
51
51
|
compactFileContexts
|
|
52
52
|
};
|
|
53
|
-
//# sourceMappingURL=chunk-
|
|
53
|
+
//# sourceMappingURL=chunk-ULJP7VQF.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-2HMEZZKK.js";
|
|
5
5
|
import {
|
|
6
6
|
executeBrowserTask
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OB44QQNL.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
10
|
} from "./chunk-PZ5AY32C.js";
|
|
@@ -77,4 +77,4 @@ export {
|
|
|
77
77
|
createBrowserTool,
|
|
78
78
|
anthropic_exports
|
|
79
79
|
};
|
|
80
|
-
//# sourceMappingURL=chunk-
|
|
80
|
+
//# sourceMappingURL=chunk-VA6RRTXW.js.map
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk-2VERUKO2.js";
|
|
13
13
|
import {
|
|
14
14
|
fetchWithRetry
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-64C7KH43.js";
|
|
16
16
|
|
|
17
17
|
// tools/browser/profiles/core.ts
|
|
18
18
|
var DEFAULT_API_URL = process.env.MORPH_ENVIRONMENT === "DEV" ? "http://localhost:8000" : "https://browser.morphllm.com";
|
|
@@ -386,4 +386,4 @@ export {
|
|
|
386
386
|
listRepos,
|
|
387
387
|
getProfileState
|
|
388
388
|
};
|
|
389
|
-
//# sourceMappingURL=chunk-
|
|
389
|
+
//# sourceMappingURL=chunk-VKPE4HR2.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
executeCodebaseSearch
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JZ7Y6HZV.js";
|
|
4
4
|
import {
|
|
5
5
|
CODEBASE_SEARCH_DESCRIPTION,
|
|
6
6
|
CODEBASE_SEARCH_SYSTEM_PROMPT
|
|
@@ -125,4 +125,4 @@ export {
|
|
|
125
125
|
getSystemPrompt,
|
|
126
126
|
openai_default
|
|
127
127
|
};
|
|
128
|
-
//# sourceMappingURL=chunk-
|
|
128
|
+
//# sourceMappingURL=chunk-WVZZV5YS.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WarpGrepClient,
|
|
3
3
|
formatResult
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LWINQ2RM.js";
|
|
5
5
|
import {
|
|
6
6
|
CODEBASE_SEARCH_TOOL,
|
|
7
7
|
SEND_MESSAGE_TOOL,
|
|
@@ -262,4 +262,4 @@ function deduplicateContexts(contexts) {
|
|
|
262
262
|
export {
|
|
263
263
|
createExploreSubagent
|
|
264
264
|
};
|
|
265
|
-
//# sourceMappingURL=chunk-
|
|
265
|
+
//# sourceMappingURL=chunk-XOXIFA6I.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MorphError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-64C7KH43.js";
|
|
4
4
|
|
|
5
5
|
// core/error.ts
|
|
6
6
|
async function toMorphError(response) {
|
|
@@ -21,4 +21,4 @@ async function toMorphError(response) {
|
|
|
21
21
|
export {
|
|
22
22
|
toMorphError
|
|
23
23
|
};
|
|
24
|
-
//# sourceMappingURL=chunk-
|
|
24
|
+
//# sourceMappingURL=chunk-XUAYUGVU.js.map
|
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
} from "./chunk-F3NCFNUX.js";
|
|
4
4
|
import {
|
|
5
5
|
toMorphError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XUAYUGVU.js";
|
|
7
7
|
import {
|
|
8
8
|
MorphError,
|
|
9
9
|
fetchWithRetry,
|
|
10
10
|
withTimeout
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-64C7KH43.js";
|
|
12
12
|
import {
|
|
13
13
|
SDK_VERSION
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-J5KIUNUN.js";
|
|
15
15
|
|
|
16
16
|
// core/client.ts
|
|
17
17
|
var DEFAULT_BASE_URL = "https://api.morphllm.com";
|
|
@@ -117,4 +117,4 @@ var MorphAPIClient = class {
|
|
|
117
117
|
export {
|
|
118
118
|
MorphAPIClient
|
|
119
119
|
};
|
|
120
|
-
//# sourceMappingURL=chunk-
|
|
120
|
+
//# sourceMappingURL=chunk-Z2KWDMFO.js.map
|
|
@@ -12,7 +12,7 @@ import { TracesClient } from './tools/traces/core.js';
|
|
|
12
12
|
import { OpenAIRouter, AnthropicRouter, GeminiRouter, RawRouter, RouterClassifier } from './modelrouter/core.js';
|
|
13
13
|
import { EditFileConfig, EditFileInput, EditFileResult, EditChanges } from './tools/fastapply/types.js';
|
|
14
14
|
import { CodebaseSearchConfig, CodebaseSearchInput, CodebaseSearchResult } from './tools/codebase_search/types.js';
|
|
15
|
-
import { d as WarpGrepToolConfig, b as WarpGrepResult, g as GitHubSearchToolConfig, c as WarpGrepContext } from './types-
|
|
15
|
+
import { d as WarpGrepToolConfig, b as WarpGrepResult, g as GitHubSearchToolConfig, c as WarpGrepContext } from './types-qwD753FR.js';
|
|
16
16
|
import * as openai_resources_index_mjs from 'openai/resources/index.mjs';
|
|
17
17
|
import { ExploreSubagentConfig, ExploreResult, ExploreSession, ExploreEvent } from './subagents/types.js';
|
|
18
18
|
import * as _anthropic_ai_sdk_resources_messages_mjs from '@anthropic-ai/sdk/resources/messages.mjs';
|
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.191",
|
|
40
40
|
description: "TypeScript SDK and CLI for Morph Fast Apply integration",
|
|
41
41
|
type: "module",
|
|
42
42
|
main: "./dist/index.cjs",
|
|
@@ -700,7 +700,7 @@ function ensureWithinRepo(repoRoot, absTarget) {
|
|
|
700
700
|
throw new Error(`Path outside repository root: ${absTarget}`);
|
|
701
701
|
}
|
|
702
702
|
}
|
|
703
|
-
function
|
|
703
|
+
function toRepoRelative2(repoRoot, absPath) {
|
|
704
704
|
return import_path5.default.relative(import_path5.default.resolve(repoRoot), import_path5.default.resolve(absPath));
|
|
705
705
|
}
|
|
706
706
|
function isSymlink(p) {
|
|
@@ -887,7 +887,7 @@ var init_local = __esm({
|
|
|
887
887
|
}
|
|
888
888
|
const stat = await import_promises2.default.stat(abs).catch(() => null);
|
|
889
889
|
if (!stat) return { lines: [] };
|
|
890
|
-
const targetArg = abs === import_path6.default.resolve(this.repoRoot) ? "." :
|
|
890
|
+
const targetArg = abs === import_path6.default.resolve(this.repoRoot) ? "." : toRepoRelative2(this.repoRoot, abs);
|
|
891
891
|
const contextLines = params.context_lines !== void 0 ? String(params.context_lines) : "1";
|
|
892
892
|
const args = [
|
|
893
893
|
"--no-config",
|
|
@@ -1046,7 +1046,7 @@ Details: ${res.stderr}` : ""}`
|
|
|
1046
1046
|
const isDir = entry.isDirectory();
|
|
1047
1047
|
results.push({
|
|
1048
1048
|
name: entry.name,
|
|
1049
|
-
path:
|
|
1049
|
+
path: toRepoRelative2(repoRoot, full),
|
|
1050
1050
|
type: isDir ? "dir" : "file",
|
|
1051
1051
|
depth
|
|
1052
1052
|
});
|
|
@@ -1069,7 +1069,7 @@ Details: ${res.stderr}` : ""}`
|
|
|
1069
1069
|
if (!stat || !stat.isDirectory()) {
|
|
1070
1070
|
return { files: [], searchDir: abs, totalFound: 0, error: `[PATH ERROR] Directory not found: ${params.path || "."}` };
|
|
1071
1071
|
}
|
|
1072
|
-
const targetArg = abs === import_path6.default.resolve(this.repoRoot) ? "." :
|
|
1072
|
+
const targetArg = abs === import_path6.default.resolve(this.repoRoot) ? "." : toRepoRelative2(this.repoRoot, abs);
|
|
1073
1073
|
const args = [
|
|
1074
1074
|
"--no-config",
|
|
1075
1075
|
"--files",
|
|
@@ -3705,10 +3705,19 @@ var RemoteCommandsProvider = class {
|
|
|
3705
3705
|
};
|
|
3706
3706
|
|
|
3707
3707
|
// tools/warp_grep/providers/code_storage_http.ts
|
|
3708
|
-
|
|
3708
|
+
var MODEL_REPO_ROOT = /^\/?home\/ubuntu\/repo(?:\/|$)/;
|
|
3709
|
+
function toRepoRelative(path6) {
|
|
3710
|
+
if (!path6) return path6;
|
|
3711
|
+
const stripped = path6.replace(MODEL_REPO_ROOT, "").replace(/^\.?\/+/, "");
|
|
3712
|
+
return stripped || ".";
|
|
3713
|
+
}
|
|
3714
|
+
async function post(url, body, op, apiKey) {
|
|
3709
3715
|
const res = await fetch(url, {
|
|
3710
3716
|
method: "POST",
|
|
3711
|
-
headers: {
|
|
3717
|
+
headers: {
|
|
3718
|
+
"Content-Type": "application/json",
|
|
3719
|
+
...apiKey ? { Authorization: `Bearer ${apiKey}` } : {}
|
|
3720
|
+
},
|
|
3712
3721
|
body: JSON.stringify(body)
|
|
3713
3722
|
});
|
|
3714
3723
|
if (!res.ok) {
|
|
@@ -3725,12 +3734,12 @@ async function post(url, body, op) {
|
|
|
3725
3734
|
return data.stdout;
|
|
3726
3735
|
}
|
|
3727
3736
|
function createCodeStorageHttpCommands(config) {
|
|
3728
|
-
const { baseUrl, repoId, branch } = config;
|
|
3737
|
+
const { baseUrl, repoId, branch, apiKey } = config;
|
|
3729
3738
|
const encodedRepoId = encodeURIComponent(repoId);
|
|
3730
3739
|
return {
|
|
3731
|
-
grep: (pattern, path6, glob) => post(`${baseUrl}/api/code-search/${encodedRepoId}/grep`, { pattern, path: path6, glob, branch }, "grep"),
|
|
3732
|
-
read: (path6, start, end) => post(`${baseUrl}/api/code-search/${encodedRepoId}/read`, { path: path6, start, end, branch }, "read"),
|
|
3733
|
-
listDir: (path6, maxDepth) => post(`${baseUrl}/api/code-search/${encodedRepoId}/list`, { path: path6, maxDepth, branch }, "list")
|
|
3740
|
+
grep: (pattern, path6, glob) => post(`${baseUrl}/api/code-search/${encodedRepoId}/grep`, { pattern, path: toRepoRelative(path6), glob, branch }, "grep", apiKey),
|
|
3741
|
+
read: (path6, start, end) => post(`${baseUrl}/api/code-search/${encodedRepoId}/read`, { path: toRepoRelative(path6), start, end, branch }, "read", apiKey),
|
|
3742
|
+
listDir: (path6, maxDepth) => post(`${baseUrl}/api/code-search/${encodedRepoId}/list`, { path: toRepoRelative(path6), maxDepth, branch }, "list", apiKey)
|
|
3734
3743
|
};
|
|
3735
3744
|
}
|
|
3736
3745
|
|
|
@@ -3862,7 +3871,7 @@ async function compactFileContexts(files, query, apiKey, apiUrl, maxTokens = 1e4
|
|
|
3862
3871
|
}
|
|
3863
3872
|
|
|
3864
3873
|
// tools/warp_grep/client.ts
|
|
3865
|
-
var DEFAULT_CODE_SEARCH_URL = "https://morphllm.com";
|
|
3874
|
+
var DEFAULT_CODE_SEARCH_URL = "https://api.morphllm.com";
|
|
3866
3875
|
async function getLocalProvider(repoRoot, excludes, allowNames) {
|
|
3867
3876
|
const { LocalRipgrepProvider: LocalRipgrepProvider2 } = await Promise.resolve().then(() => (init_local(), local_exports));
|
|
3868
3877
|
const opts = allowNames?.length ? { allowNames } : void 0;
|
|
@@ -3938,7 +3947,9 @@ var WarpGrepClient = class extends APIResource {
|
|
|
3938
3947
|
const baseUrl = this.config.codeSearchUrl || DEFAULT_CODE_SEARCH_URL;
|
|
3939
3948
|
logger.debug("WarpGrep", "github_resolve", { owner_repo: `${owner}/${repo}`, branch: input.branch });
|
|
3940
3949
|
const resolveStart = Date.now();
|
|
3941
|
-
const importRes = await fetch(`${baseUrl}/api/code-search/get-or-create?url=${encodeURIComponent(`${owner}/${repo}`)}
|
|
3950
|
+
const importRes = await fetch(`${baseUrl}/api/code-search/get-or-create?url=${encodeURIComponent(`${owner}/${repo}`)}`, {
|
|
3951
|
+
headers: this.config.morphApiKey ? { Authorization: `Bearer ${this.config.morphApiKey}` } : void 0
|
|
3952
|
+
});
|
|
3942
3953
|
if (!importRes.ok) {
|
|
3943
3954
|
const text = await importRes.text().catch(() => importRes.statusText);
|
|
3944
3955
|
logger.error("WarpGrep", "github_resolve_failed", { owner_repo: `${owner}/${repo}`, status: importRes.status, error: text });
|
|
@@ -3948,7 +3959,12 @@ var WarpGrepClient = class extends APIResource {
|
|
|
3948
3959
|
logger.debug("WarpGrep", "github_repo_fetched", { repo_id: repoId, default_branch: defaultBranch, latency_ms: Date.now() - resolveStart });
|
|
3949
3960
|
return {
|
|
3950
3961
|
repo,
|
|
3951
|
-
remoteCommands: createCodeStorageHttpCommands({
|
|
3962
|
+
remoteCommands: createCodeStorageHttpCommands({
|
|
3963
|
+
baseUrl,
|
|
3964
|
+
repoId,
|
|
3965
|
+
branch: input.branch || defaultBranch,
|
|
3966
|
+
apiKey: this.config.morphApiKey
|
|
3967
|
+
})
|
|
3952
3968
|
};
|
|
3953
3969
|
}
|
|
3954
3970
|
async _searchGitHubAsync(input) {
|