@morphllm/morphsdk 0.2.176 → 0.2.178
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-I4ZFR3ML.js → chunk-2U7YFUMU.js} +4 -4
- package/dist/{chunk-FIRSQWNU.js → chunk-44IZ4TT5.js} +2 -2
- package/dist/{chunk-QXMYN3KV.js → chunk-6WEF6UCR.js} +2 -2
- package/dist/{chunk-C3A3URYS.js → chunk-7JL65PRH.js} +3 -3
- package/dist/{chunk-AINQS3MS.js → chunk-APSFRYOW.js} +2 -2
- package/dist/{chunk-JIKTGMZB.js → chunk-AVJJABHB.js} +2 -2
- package/dist/{chunk-CE5FK5BM.js → chunk-BNKT5FXS.js} +2 -2
- package/dist/{chunk-34OLI3TY.js → chunk-CHJAXYH6.js} +23 -23
- package/dist/{chunk-QHRLT3LQ.js → chunk-EA3PJ2Y7.js} +2 -2
- package/dist/{chunk-MQK2DNPK.js → chunk-EPJZVTNY.js} +2 -2
- package/dist/{chunk-VADQO37Z.js → chunk-FWVBSH2M.js} +2 -2
- package/dist/{chunk-4X3QJFX4.js → chunk-HWRZZZT4.js} +2 -2
- package/dist/{chunk-VX2NA3TP.js → chunk-IPEYIERJ.js} +2 -2
- package/dist/{chunk-2FWQA4WS.js → chunk-JCKR7NED.js} +3 -3
- package/dist/{chunk-AP2W5FSC.js → chunk-JFVFAFHR.js} +2 -2
- package/dist/{chunk-4RC22FEL.js → chunk-LX54AI3F.js} +26 -12
- package/dist/chunk-LX54AI3F.js.map +1 -0
- package/dist/{chunk-L5FEMIR5.js → chunk-MF4VKKGF.js} +2 -2
- package/dist/{chunk-EULGQIAC.js → chunk-MOCMOSGF.js} +4 -4
- package/dist/{chunk-OGLKWBZE.js → chunk-NR4KNQAT.js} +2 -2
- package/dist/{chunk-RDK2LYXY.js → chunk-NVNYDL6N.js} +2 -2
- package/dist/{chunk-UCQCTVE4.js → chunk-PDPQV3DI.js} +4 -4
- package/dist/{chunk-RGCYLZZO.js → chunk-PXL3VUK2.js} +2 -2
- package/dist/{chunk-YHTZ2HSG.js → chunk-RAPGIYHS.js} +2 -2
- package/dist/{chunk-RI3XTJH2.js → chunk-S2KANK3D.js} +2 -2
- package/dist/{chunk-Q73HTVPQ.js → chunk-TGFSIZAJ.js} +3 -3
- package/dist/{chunk-GH76LZ7D.js → chunk-TQ5RX4HR.js} +2 -2
- package/dist/{chunk-YR4DEB7S.js → chunk-U5LXWLP7.js} +2 -2
- package/dist/{chunk-V5XOWD3S.js → chunk-UUUY4SGW.js} +2 -2
- package/dist/{chunk-N4PKXUXT.js → chunk-VBPSPP4F.js} +2 -2
- package/dist/{chunk-KUHJXIVX.js → chunk-WCW42MV2.js} +3 -3
- package/dist/{chunk-7QV3FSRU.js → chunk-WLXPKUEQ.js} +2 -2
- package/dist/{chunk-7QV3FSRU.js.map → chunk-WLXPKUEQ.js.map} +1 -1
- package/dist/{chunk-HBNEEL4I.js → chunk-WZAKJJSR.js} +2 -2
- package/dist/{chunk-AALAXYRR.js → chunk-ZXBAHHQI.js} +2 -2
- package/dist/client.cjs +1 -1
- package/dist/client.cjs.map +1 -1
- package/dist/client.js +28 -28
- 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 +7 -7
- 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 +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +28 -28
- 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 +1 -1
- package/dist/subagents/anthropic.cjs.map +1 -1
- package/dist/subagents/anthropic.js +9 -9
- package/dist/subagents/vercel.cjs +1 -1
- package/dist/subagents/vercel.cjs.map +1 -1
- package/dist/subagents/vercel.js +9 -9
- 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 +11 -11
- 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 +11 -11
- 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 +1 -1
- package/dist/tools/warp_grep/anthropic.cjs.map +1 -1
- package/dist/tools/warp_grep/anthropic.js +9 -9
- package/dist/tools/warp_grep/client.cjs +1 -1
- package/dist/tools/warp_grep/client.cjs.map +1 -1
- package/dist/tools/warp_grep/client.js +8 -8
- package/dist/tools/warp_grep/gemini.cjs +1 -1
- package/dist/tools/warp_grep/gemini.cjs.map +1 -1
- package/dist/tools/warp_grep/gemini.js +8 -8
- package/dist/tools/warp_grep/index.cjs +1 -1
- package/dist/tools/warp_grep/index.cjs.map +1 -1
- package/dist/tools/warp_grep/index.js +8 -8
- package/dist/tools/warp_grep/openai.cjs +1 -1
- package/dist/tools/warp_grep/openai.cjs.map +1 -1
- package/dist/tools/warp_grep/openai.js +9 -9
- package/dist/tools/warp_grep/vercel.cjs +1 -1
- package/dist/tools/warp_grep/vercel.cjs.map +1 -1
- package/dist/tools/warp_grep/vercel.js +9 -9
- package/dist/tracing/core.cjs +24 -10
- package/dist/tracing/core.cjs.map +1 -1
- package/dist/tracing/core.js +2 -2
- package/dist/tracing/index.cjs +24 -10
- package/dist/tracing/index.cjs.map +1 -1
- package/dist/tracing/index.js +2 -2
- package/dist/tracing/interaction.cjs +24 -10
- package/dist/tracing/interaction.cjs.map +1 -1
- package/dist/tracing/interaction.js +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-4RC22FEL.js.map +0 -1
- /package/dist/{chunk-I4ZFR3ML.js.map → chunk-2U7YFUMU.js.map} +0 -0
- /package/dist/{chunk-FIRSQWNU.js.map → chunk-44IZ4TT5.js.map} +0 -0
- /package/dist/{chunk-QXMYN3KV.js.map → chunk-6WEF6UCR.js.map} +0 -0
- /package/dist/{chunk-C3A3URYS.js.map → chunk-7JL65PRH.js.map} +0 -0
- /package/dist/{chunk-AINQS3MS.js.map → chunk-APSFRYOW.js.map} +0 -0
- /package/dist/{chunk-JIKTGMZB.js.map → chunk-AVJJABHB.js.map} +0 -0
- /package/dist/{chunk-CE5FK5BM.js.map → chunk-BNKT5FXS.js.map} +0 -0
- /package/dist/{chunk-34OLI3TY.js.map → chunk-CHJAXYH6.js.map} +0 -0
- /package/dist/{chunk-QHRLT3LQ.js.map → chunk-EA3PJ2Y7.js.map} +0 -0
- /package/dist/{chunk-MQK2DNPK.js.map → chunk-EPJZVTNY.js.map} +0 -0
- /package/dist/{chunk-VADQO37Z.js.map → chunk-FWVBSH2M.js.map} +0 -0
- /package/dist/{chunk-4X3QJFX4.js.map → chunk-HWRZZZT4.js.map} +0 -0
- /package/dist/{chunk-VX2NA3TP.js.map → chunk-IPEYIERJ.js.map} +0 -0
- /package/dist/{chunk-2FWQA4WS.js.map → chunk-JCKR7NED.js.map} +0 -0
- /package/dist/{chunk-AP2W5FSC.js.map → chunk-JFVFAFHR.js.map} +0 -0
- /package/dist/{chunk-L5FEMIR5.js.map → chunk-MF4VKKGF.js.map} +0 -0
- /package/dist/{chunk-EULGQIAC.js.map → chunk-MOCMOSGF.js.map} +0 -0
- /package/dist/{chunk-OGLKWBZE.js.map → chunk-NR4KNQAT.js.map} +0 -0
- /package/dist/{chunk-RDK2LYXY.js.map → chunk-NVNYDL6N.js.map} +0 -0
- /package/dist/{chunk-UCQCTVE4.js.map → chunk-PDPQV3DI.js.map} +0 -0
- /package/dist/{chunk-RGCYLZZO.js.map → chunk-PXL3VUK2.js.map} +0 -0
- /package/dist/{chunk-YHTZ2HSG.js.map → chunk-RAPGIYHS.js.map} +0 -0
- /package/dist/{chunk-RI3XTJH2.js.map → chunk-S2KANK3D.js.map} +0 -0
- /package/dist/{chunk-Q73HTVPQ.js.map → chunk-TGFSIZAJ.js.map} +0 -0
- /package/dist/{chunk-GH76LZ7D.js.map → chunk-TQ5RX4HR.js.map} +0 -0
- /package/dist/{chunk-YR4DEB7S.js.map → chunk-U5LXWLP7.js.map} +0 -0
- /package/dist/{chunk-V5XOWD3S.js.map → chunk-UUUY4SGW.js.map} +0 -0
- /package/dist/{chunk-N4PKXUXT.js.map → chunk-VBPSPP4F.js.map} +0 -0
- /package/dist/{chunk-KUHJXIVX.js.map → chunk-WCW42MV2.js.map} +0 -0
- /package/dist/{chunk-HBNEEL4I.js.map → chunk-WZAKJJSR.js.map} +0 -0
- /package/dist/{chunk-AALAXYRR.js.map → chunk-ZXBAHHQI.js.map} +0 -0
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
} from "./chunk-F3NCFNUX.js";
|
|
4
4
|
import {
|
|
5
5
|
toMorphError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FWVBSH2M.js";
|
|
7
7
|
import {
|
|
8
8
|
MorphError,
|
|
9
9
|
fetchWithRetry,
|
|
10
10
|
withTimeout
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MF4VKKGF.js";
|
|
12
12
|
import {
|
|
13
13
|
SDK_VERSION
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-WLXPKUEQ.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-2U7YFUMU.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-MOCMOSGF.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-44IZ4TT5.js.map
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
executeToolCall,
|
|
15
15
|
formatGitHubReadFileResult,
|
|
16
16
|
formatResult
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-PDPQV3DI.js";
|
|
18
18
|
|
|
19
19
|
// tools/warp_grep/anthropic.ts
|
|
20
20
|
var INPUT_SCHEMA = {
|
|
@@ -90,4 +90,4 @@ export {
|
|
|
90
90
|
createGitHubSearchTool,
|
|
91
91
|
createGitHubReadFileTool
|
|
92
92
|
};
|
|
93
|
-
//# sourceMappingURL=chunk-
|
|
93
|
+
//# sourceMappingURL=chunk-6WEF6UCR.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MorphAPIClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2U7YFUMU.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-MF4VKKGF.js";
|
|
10
10
|
import {
|
|
11
11
|
APIResource
|
|
12
12
|
} from "./chunk-LKFZBBTD.js";
|
|
@@ -139,4 +139,4 @@ export {
|
|
|
139
139
|
GeminiRouter,
|
|
140
140
|
RawRouter
|
|
141
141
|
};
|
|
142
|
-
//# sourceMappingURL=chunk-
|
|
142
|
+
//# sourceMappingURL=chunk-7JL65PRH.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MorphAPIClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2U7YFUMU.js";
|
|
4
4
|
import {
|
|
5
5
|
logger
|
|
6
6
|
} from "./chunk-F3NCFNUX.js";
|
|
@@ -139,4 +139,4 @@ export {
|
|
|
139
139
|
FastApplyClient,
|
|
140
140
|
executeEditFile
|
|
141
141
|
};
|
|
142
|
-
//# sourceMappingURL=chunk-
|
|
142
|
+
//# sourceMappingURL=chunk-APSFRYOW.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-PICGNBUE.js";
|
|
4
4
|
import {
|
|
5
5
|
createInteractionApi
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LX54AI3F.js";
|
|
7
7
|
import {
|
|
8
8
|
metadata
|
|
9
9
|
} from "./chunk-CABQ652L.js";
|
|
@@ -140,4 +140,4 @@ export {
|
|
|
140
140
|
MorphTracing,
|
|
141
141
|
morphTracing
|
|
142
142
|
};
|
|
143
|
-
//# sourceMappingURL=chunk-
|
|
143
|
+
//# sourceMappingURL=chunk-AVJJABHB.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-YQMPVJ2L.js";
|
|
5
5
|
import {
|
|
6
6
|
executeCodebaseSearch
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WCW42MV2.js";
|
|
8
8
|
|
|
9
9
|
// tools/codebase_search/openai.ts
|
|
10
10
|
var codebaseSearchTool = {
|
|
@@ -125,4 +125,4 @@ export {
|
|
|
125
125
|
getSystemPrompt,
|
|
126
126
|
openai_default
|
|
127
127
|
};
|
|
128
|
-
//# sourceMappingURL=chunk-
|
|
128
|
+
//# sourceMappingURL=chunk-BNKT5FXS.js.map
|
|
@@ -1,69 +1,69 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createGitHubSearchTool as createGitHubSearchTool3,
|
|
3
3
|
createWarpGrepTool as createWarpGrepTool3
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HWRZZZT4.js";
|
|
5
5
|
import {
|
|
6
6
|
createGitHubSearchTool as createGitHubSearchTool2,
|
|
7
7
|
createWarpGrepTool as createWarpGrepTool2
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6WEF6UCR.js";
|
|
9
9
|
import {
|
|
10
10
|
createGitHubSearchTool,
|
|
11
11
|
createWarpGrepTool
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NR4KNQAT.js";
|
|
13
13
|
import {
|
|
14
14
|
ReflexClient
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-JCKR7NED.js";
|
|
16
16
|
import {
|
|
17
17
|
createCodebaseSearchTool as createCodebaseSearchTool3
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-WZAKJJSR.js";
|
|
19
19
|
import {
|
|
20
20
|
createCodebaseSearchTool as createCodebaseSearchTool2
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-UUUY4SGW.js";
|
|
22
22
|
import {
|
|
23
23
|
createCodebaseSearchTool
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-BNKT5FXS.js";
|
|
25
25
|
import {
|
|
26
26
|
CodebaseSearchClient
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-WCW42MV2.js";
|
|
28
28
|
import {
|
|
29
29
|
BrowserClient
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-MOCMOSGF.js";
|
|
31
31
|
import {
|
|
32
32
|
createExploreSubagent as createExploreSubagent2
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-EA3PJ2Y7.js";
|
|
34
|
+
import {
|
|
35
|
+
createEditFileTool
|
|
36
|
+
} from "./chunk-S2KANK3D.js";
|
|
34
37
|
import {
|
|
35
38
|
createEditFileTool as createEditFileTool3
|
|
36
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-NVNYDL6N.js";
|
|
37
40
|
import {
|
|
38
41
|
createEditFileTool as createEditFileTool2
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import {
|
|
41
|
-
createEditFileTool
|
|
42
|
-
} from "./chunk-RI3XTJH2.js";
|
|
42
|
+
} from "./chunk-TQ5RX4HR.js";
|
|
43
43
|
import {
|
|
44
44
|
FastApplyClient
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-APSFRYOW.js";
|
|
46
46
|
import {
|
|
47
47
|
MorphGit
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-IPEYIERJ.js";
|
|
49
49
|
import {
|
|
50
50
|
createExploreSubagent
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-JFVFAFHR.js";
|
|
52
52
|
import {
|
|
53
53
|
WarpGrepClient
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-PDPQV3DI.js";
|
|
55
55
|
import {
|
|
56
56
|
AnthropicRouter,
|
|
57
57
|
GeminiRouter,
|
|
58
58
|
OpenAIRouter,
|
|
59
59
|
RawRouter
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-7JL65PRH.js";
|
|
61
61
|
import {
|
|
62
62
|
CompactClient
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-TGFSIZAJ.js";
|
|
64
64
|
import {
|
|
65
65
|
MorphAPIClient
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-2U7YFUMU.js";
|
|
67
67
|
import {
|
|
68
68
|
logger
|
|
69
69
|
} from "./chunk-F3NCFNUX.js";
|
|
@@ -687,4 +687,4 @@ export {
|
|
|
687
687
|
VercelToolFactory,
|
|
688
688
|
MorphClient
|
|
689
689
|
};
|
|
690
|
-
//# sourceMappingURL=chunk-
|
|
690
|
+
//# sourceMappingURL=chunk-CHJAXYH6.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WarpGrepClient,
|
|
3
3
|
formatResult
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PDPQV3DI.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-EA3PJ2Y7.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-2HMEZZKK.js";
|
|
4
4
|
import {
|
|
5
5
|
executeBrowserTask
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MOCMOSGF.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
9
|
} from "./chunk-PZ5AY32C.js";
|
|
@@ -54,4 +54,4 @@ export {
|
|
|
54
54
|
browserTool,
|
|
55
55
|
vercel_exports
|
|
56
56
|
};
|
|
57
|
-
//# sourceMappingURL=chunk-
|
|
57
|
+
//# sourceMappingURL=chunk-EPJZVTNY.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MorphError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MF4VKKGF.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-FWVBSH2M.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
executeGitHubReadFile,
|
|
9
9
|
executeToolCall,
|
|
10
10
|
executeToolCallStreaming
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-PDPQV3DI.js";
|
|
12
12
|
|
|
13
13
|
// tools/warp_grep/vercel.ts
|
|
14
14
|
import { tool } from "ai";
|
|
@@ -115,4 +115,4 @@ export {
|
|
|
115
115
|
createGitHubReadFileTool,
|
|
116
116
|
vercel_default
|
|
117
117
|
};
|
|
118
|
-
//# sourceMappingURL=chunk-
|
|
118
|
+
//# sourceMappingURL=chunk-HWRZZZT4.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MorphAPIClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2U7YFUMU.js";
|
|
4
4
|
import {
|
|
5
5
|
APIResource
|
|
6
6
|
} from "./chunk-LKFZBBTD.js";
|
|
@@ -558,4 +558,4 @@ var MorphGit = class extends APIResource {
|
|
|
558
558
|
export {
|
|
559
559
|
MorphGit
|
|
560
560
|
};
|
|
561
|
-
//# sourceMappingURL=chunk-
|
|
561
|
+
//# sourceMappingURL=chunk-IPEYIERJ.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MorphAPIClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2U7YFUMU.js";
|
|
4
4
|
import {
|
|
5
5
|
MorphError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MF4VKKGF.js";
|
|
7
7
|
import {
|
|
8
8
|
APIResource
|
|
9
9
|
} from "./chunk-LKFZBBTD.js";
|
|
@@ -155,4 +155,4 @@ export {
|
|
|
155
155
|
ReflexClient,
|
|
156
156
|
ReflexJobsResource
|
|
157
157
|
};
|
|
158
|
-
//# sourceMappingURL=chunk-
|
|
158
|
+
//# sourceMappingURL=chunk-JCKR7NED.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WarpGrepClient,
|
|
3
3
|
formatResult
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PDPQV3DI.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-JFVFAFHR.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-CABQ652L.js";
|
|
4
4
|
|
|
5
5
|
// tracing/interaction.ts
|
|
6
|
-
import { SpanStatusCode } from "@opentelemetry/api";
|
|
6
|
+
import { context, SpanStatusCode, trace } from "@opentelemetry/api";
|
|
7
7
|
import * as traceloop from "@traceloop/node-server-sdk";
|
|
8
8
|
var ASSOC = "traceloop.association.properties.";
|
|
9
9
|
var ENTITY_INPUT = "traceloop.entity.input";
|
|
@@ -37,7 +37,26 @@ function createInteractionApi(initial, traceContent) {
|
|
|
37
37
|
};
|
|
38
38
|
const properties = { ...initial.properties ?? {} };
|
|
39
39
|
let input = initial.input;
|
|
40
|
+
let workflowSpan = null;
|
|
40
41
|
const withAssoc = (fn) => traceloop.withAssociationProperties(associationProps(ctx, properties), fn);
|
|
42
|
+
const workflowName = () => ctx.event ?? "interaction";
|
|
43
|
+
function ensureWorkflowSpan() {
|
|
44
|
+
if (workflowSpan) return workflowSpan;
|
|
45
|
+
const span = traceloop.getTraceloopTracer().startSpan(workflowName());
|
|
46
|
+
span.setAttribute(SPAN_KIND, "workflow");
|
|
47
|
+
for (const [k, v] of Object.entries(associationProps(ctx, properties))) {
|
|
48
|
+
span.setAttribute(ASSOC + k, v);
|
|
49
|
+
}
|
|
50
|
+
if (traceContent && input) span.setAttribute(ENTITY_INPUT, input);
|
|
51
|
+
workflowSpan = span;
|
|
52
|
+
return span;
|
|
53
|
+
}
|
|
54
|
+
function withWorkflowContext(fn) {
|
|
55
|
+
return withAssoc(() => {
|
|
56
|
+
const span = ensureWorkflowSpan();
|
|
57
|
+
return context.with(trace.setSpan(context.active(), span), fn);
|
|
58
|
+
});
|
|
59
|
+
}
|
|
41
60
|
const toolName = (p) => typeof p === "string" ? p : p.name;
|
|
42
61
|
function startToolSpan(params) {
|
|
43
62
|
const name = toolName(params);
|
|
@@ -88,16 +107,16 @@ function createInteractionApi(initial, traceContent) {
|
|
|
88
107
|
});
|
|
89
108
|
},
|
|
90
109
|
run(fn) {
|
|
91
|
-
return Promise.resolve(
|
|
110
|
+
return Promise.resolve(withWorkflowContext(fn));
|
|
92
111
|
},
|
|
93
112
|
withSpan(params, fn) {
|
|
94
113
|
const name = typeof params === "string" ? params : params.name;
|
|
95
|
-
return Promise.resolve(
|
|
114
|
+
return Promise.resolve(withWorkflowContext(() => traceloop.withTask({ name }, fn)));
|
|
96
115
|
},
|
|
97
116
|
withTool(params, fn) {
|
|
98
117
|
const name = toolName(params);
|
|
99
118
|
const version = typeof params === "string" ? void 0 : params.version;
|
|
100
|
-
return Promise.resolve(
|
|
119
|
+
return Promise.resolve(withWorkflowContext(() => traceloop.withTool({ name, version }, fn)));
|
|
101
120
|
},
|
|
102
121
|
startToolSpan,
|
|
103
122
|
trackTool(params) {
|
|
@@ -110,17 +129,12 @@ function createInteractionApi(initial, traceContent) {
|
|
|
110
129
|
async finish(opts) {
|
|
111
130
|
const output = typeof opts === "string" ? opts : opts.output;
|
|
112
131
|
if (typeof opts !== "string" && opts.properties) Object.assign(properties, opts.properties);
|
|
113
|
-
const name = ctx.event ?? "interaction";
|
|
114
132
|
await Promise.resolve(
|
|
115
133
|
withAssoc(() => {
|
|
116
|
-
const span =
|
|
117
|
-
span.setAttribute(SPAN_KIND, "workflow");
|
|
118
|
-
for (const [k, v] of Object.entries(associationProps(ctx, properties))) {
|
|
119
|
-
span.setAttribute(ASSOC + k, v);
|
|
120
|
-
}
|
|
121
|
-
if (traceContent && input) span.setAttribute(ENTITY_INPUT, input);
|
|
134
|
+
const span = ensureWorkflowSpan();
|
|
122
135
|
if (traceContent) span.setAttribute(ENTITY_OUTPUT, output);
|
|
123
136
|
span.end();
|
|
137
|
+
workflowSpan = null;
|
|
124
138
|
})
|
|
125
139
|
);
|
|
126
140
|
}
|
|
@@ -130,4 +144,4 @@ function createInteractionApi(initial, traceContent) {
|
|
|
130
144
|
export {
|
|
131
145
|
createInteractionApi
|
|
132
146
|
};
|
|
133
|
-
//# sourceMappingURL=chunk-
|
|
147
|
+
//# sourceMappingURL=chunk-LX54AI3F.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../tracing/interaction.ts"],"sourcesContent":["/**\n * Morph Tracing — interactions, tools, and manual spans.\n *\n * An `Interaction` is one user turn / agent run. It threads association\n * properties (user_id / convo_id / event_id) onto every span created inside it —\n * including the auto-instrumented LLM spans — so a whole conversation stitches\n * together in the Morph UI. Built on Traceloop's `withTask` / `withTool` and a\n * manual tracer for already-completed tool spans.\n */\nimport { context, SpanStatusCode, trace, type Span } from '@opentelemetry/api';\nimport * as traceloop from '@traceloop/node-server-sdk';\n\nimport { metadata as buildMetadata } from './otel.js';\nimport type {\n FinishOptions,\n SpanParams,\n ToolParams,\n ToolSpan,\n TrackToolParams,\n TraceContext,\n} from './types.js';\n\n// Traceloop semantic-convention attribute keys.\nconst ASSOC = 'traceloop.association.properties.';\nconst ENTITY_INPUT = 'traceloop.entity.input';\nconst ENTITY_OUTPUT = 'traceloop.entity.output';\nconst ENTITY_NAME = 'traceloop.entity.name';\nconst SPAN_KIND = 'traceloop.span.kind';\n\nfunction uuid(): string {\n const c = (globalThis as { crypto?: { randomUUID?: () => string } }).crypto;\n if (c?.randomUUID) return c.randomUUID();\n return 'xxxxxxxxxxxx4xxxyxxx'.replace(/[xy]/g, (ch) => {\n const r = (Math.random() * 16) | 0;\n return (ch === 'x' ? r : (r & 0x3) | 0x8).toString(16);\n });\n}\n\nfunction asString(v: unknown): string {\n if (v == null) return '';\n return typeof v === 'string' ? v : JSON.stringify(v);\n}\n\nexport interface Interaction {\n getEventId(): string | undefined;\n setInput(input: string): void;\n setProperty(key: string, value: string): void;\n setProperties(props: Record<string, string>): void;\n /**\n * Run `fn` with this interaction's association properties active — required so\n * auto-instrumented OpenAI/Anthropic spans inherit user_id / convo_id / tags.\n */\n run<T>(fn: () => Promise<T> | T): Promise<T>;\n /** Run `fn` inside a traced task span; LLM calls within inherit attribution. */\n withSpan<T>(params: SpanParams | string, fn: () => Promise<T> | T): Promise<T>;\n /** Run `fn` inside a traced tool span. */\n withTool<T>(params: ToolParams | string, fn: () => Promise<T> | T): Promise<T>;\n /** Start a tool span you end manually. */\n startToolSpan(params: ToolParams | string): ToolSpan;\n /** Record an already-completed tool invocation. */\n trackTool(params: TrackToolParams): void;\n /** Metadata for the Vercel AI SDK `experimental_telemetry.metadata`. */\n vercelAiSdkMetadata(): Record<string, string>;\n /** End the interaction with its final output. */\n finish(opts: FinishOptions | string): Promise<void>;\n}\n\nexport type Tracer = Pick<Interaction, 'withSpan' | 'withTool' | 'startToolSpan' | 'trackTool'>;\n\n/** Build the association-property bag Traceloop propagates onto child spans. */\nfunction associationProps(\n ctx: TraceContext & { userId?: string },\n extra: Record<string, string>,\n): Record<string, string> {\n const props: Record<string, string> = { ...extra };\n if (ctx.userId) props.user_id = ctx.userId;\n if (ctx.convoId) props.convo_id = ctx.convoId;\n if (ctx.eventId) props.event_id = ctx.eventId;\n if (ctx.event) props.event_name = ctx.event;\n return props;\n}\n\nexport function createInteractionApi(\n initial: TraceContext & { userId?: string },\n traceContent: boolean,\n): Interaction {\n const ctx: TraceContext & { userId?: string } = {\n ...initial,\n eventId: initial.eventId ?? uuid(),\n };\n const properties: Record<string, string> = { ...(initial.properties ?? {}) };\n let input = initial.input;\n let workflowSpan: Span | null = null;\n\n const withAssoc = <T>(fn: () => Promise<T> | T): Promise<T> | T =>\n traceloop.withAssociationProperties(associationProps(ctx, properties), fn);\n\n const workflowName = () => ctx.event ?? 'interaction';\n\n /** Open the interaction workflow span once; stays active until finish(). */\n function ensureWorkflowSpan(): Span {\n if (workflowSpan) return workflowSpan;\n const span = traceloop.getTraceloopTracer().startSpan(workflowName());\n span.setAttribute(SPAN_KIND, 'workflow');\n for (const [k, v] of Object.entries(associationProps(ctx, properties))) {\n span.setAttribute(ASSOC + k, v);\n }\n if (traceContent && input) span.setAttribute(ENTITY_INPUT, input);\n workflowSpan = span;\n return span;\n }\n\n /** Run fn with association props and the workflow span as the active parent. */\n function withWorkflowContext<T>(fn: () => Promise<T> | T): Promise<T> | T {\n return withAssoc(() => {\n const span = ensureWorkflowSpan();\n return context.with(trace.setSpan(context.active(), span), fn);\n });\n }\n\n const toolName = (p: ToolParams | string) => (typeof p === 'string' ? p : p.name);\n\n function startToolSpan(params: ToolParams | string): ToolSpan {\n const name = toolName(params);\n const span: Span = traceloop.getTraceloopTracer().startSpan(name);\n span.setAttribute(SPAN_KIND, 'tool');\n span.setAttribute(ENTITY_NAME, name);\n for (const [k, v] of Object.entries(associationProps(ctx, properties))) {\n span.setAttribute(ASSOC + k, v);\n }\n if (typeof params !== 'string' && params.properties) {\n for (const [k, v] of Object.entries(params.properties)) span.setAttribute(k, v);\n }\n return {\n setInput(value: unknown) {\n if (traceContent) span.setAttribute(ENTITY_INPUT, asString(value));\n },\n setOutput(value: unknown) {\n if (traceContent) span.setAttribute(ENTITY_OUTPUT, asString(value));\n },\n setError(error: Error | string) {\n const e = typeof error === 'string' ? new Error(error) : error;\n span.recordException(e);\n span.setStatus({ code: SpanStatusCode.ERROR, message: e.message });\n },\n end() {\n span.end();\n },\n };\n }\n\n return {\n getEventId: () => ctx.eventId,\n setInput(value: string) {\n input = value;\n },\n setProperty(key: string, value: string) {\n properties[key] = value;\n },\n setProperties(props: Record<string, string>) {\n Object.assign(properties, props);\n },\n vercelAiSdkMetadata() {\n return buildMetadata({\n userId: ctx.userId ?? 'unknown',\n convoId: ctx.convoId,\n eventName: ctx.event,\n eventId: ctx.eventId,\n properties,\n });\n },\n run(fn) {\n return Promise.resolve(withWorkflowContext(fn));\n },\n withSpan(params, fn) {\n const name = typeof params === 'string' ? params : params.name;\n return Promise.resolve(withWorkflowContext(() => traceloop.withTask({ name }, fn)));\n },\n withTool(params, fn) {\n const name = toolName(params);\n const version = typeof params === 'string' ? undefined : params.version;\n return Promise.resolve(withWorkflowContext(() => traceloop.withTool({ name, version }, fn)));\n },\n startToolSpan,\n trackTool(params: TrackToolParams) {\n const span = startToolSpan({ name: params.name, properties: params.properties });\n if (params.input !== undefined) span.setInput(params.input);\n if (params.output !== undefined) span.setOutput(params.output);\n if (params.error) span.setError(params.error);\n span.end();\n },\n async finish(opts) {\n const output = typeof opts === 'string' ? opts : opts.output;\n if (typeof opts !== 'string' && opts.properties) Object.assign(properties, opts.properties);\n // End the workflow span opened by run()/withTool(); create one if finish() is called alone.\n await Promise.resolve(\n withAssoc(() => {\n const span = ensureWorkflowSpan();\n if (traceContent) span.setAttribute(ENTITY_OUTPUT, output);\n span.end();\n workflowSpan = null;\n }),\n );\n },\n };\n}\n"],"mappings":";;;;;AASA,SAAS,SAAS,gBAAgB,aAAwB;AAC1D,YAAY,eAAe;AAa3B,IAAM,QAAQ;AACd,IAAM,eAAe;AACrB,IAAM,gBAAgB;AACtB,IAAM,cAAc;AACpB,IAAM,YAAY;AAElB,SAAS,OAAe;AACtB,QAAM,IAAK,WAA0D;AACrE,MAAI,GAAG,WAAY,QAAO,EAAE,WAAW;AACvC,SAAO,uBAAuB,QAAQ,SAAS,CAAC,OAAO;AACrD,UAAM,IAAK,KAAK,OAAO,IAAI,KAAM;AACjC,YAAQ,OAAO,MAAM,IAAK,IAAI,IAAO,GAAK,SAAS,EAAE;AAAA,EACvD,CAAC;AACH;AAEA,SAAS,SAAS,GAAoB;AACpC,MAAI,KAAK,KAAM,QAAO;AACtB,SAAO,OAAO,MAAM,WAAW,IAAI,KAAK,UAAU,CAAC;AACrD;AA6BA,SAAS,iBACP,KACA,OACwB;AACxB,QAAM,QAAgC,EAAE,GAAG,MAAM;AACjD,MAAI,IAAI,OAAQ,OAAM,UAAU,IAAI;AACpC,MAAI,IAAI,QAAS,OAAM,WAAW,IAAI;AACt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Error
|
|
93
93
|
};
|
|
94
|
-
//# sourceMappingURL=chunk-
|
|
94
|
+
//# sourceMappingURL=chunk-MF4VKKGF.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ProfilesClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZXBAHHQI.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-2U7YFUMU.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-MF4VKKGF.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-MOCMOSGF.js.map
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
executeToolCall,
|
|
15
15
|
formatGitHubReadFileResult,
|
|
16
16
|
formatResult
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-PDPQV3DI.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-NR4KNQAT.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
executeEditFile
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-APSFRYOW.js";
|
|
4
4
|
import {
|
|
5
5
|
EDIT_FILE_SYSTEM_PROMPT,
|
|
6
6
|
EDIT_FILE_TOOL_DESCRIPTION
|
|
@@ -86,4 +86,4 @@ export {
|
|
|
86
86
|
vercel_default,
|
|
87
87
|
vercel_exports
|
|
88
88
|
};
|
|
89
|
-
//# sourceMappingURL=chunk-
|
|
89
|
+
//# sourceMappingURL=chunk-NVNYDL6N.js.map
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
runWarpGrep,
|
|
12
12
|
runWarpGrepStreaming
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-VBPSPP4F.js";
|
|
14
14
|
import {
|
|
15
15
|
compactFileContexts
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-RAPGIYHS.js";
|
|
17
17
|
import {
|
|
18
18
|
MorphAPIClient
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-2U7YFUMU.js";
|
|
20
20
|
import {
|
|
21
21
|
logger
|
|
22
22
|
} from "./chunk-F3NCFNUX.js";
|
|
@@ -321,4 +321,4 @@ export {
|
|
|
321
321
|
formatGitHubReadFileResult,
|
|
322
322
|
formatResult
|
|
323
323
|
};
|
|
324
|
-
//# sourceMappingURL=chunk-
|
|
324
|
+
//# sourceMappingURL=chunk-PDPQV3DI.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-MOCMOSGF.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
10
|
} from "./chunk-PZ5AY32C.js";
|
|
@@ -93,4 +93,4 @@ export {
|
|
|
93
93
|
createBrowserTool,
|
|
94
94
|
openai_exports
|
|
95
95
|
};
|
|
96
|
-
//# sourceMappingURL=chunk-
|
|
96
|
+
//# sourceMappingURL=chunk-PXL3VUK2.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CompactClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TGFSIZAJ.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-RAPGIYHS.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
executeEditFile
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-APSFRYOW.js";
|
|
4
4
|
import {
|
|
5
5
|
EDIT_FILE_SYSTEM_PROMPT,
|
|
6
6
|
EDIT_FILE_TOOL_DESCRIPTION
|
|
@@ -91,4 +91,4 @@ export {
|
|
|
91
91
|
openai_default,
|
|
92
92
|
openai_exports
|
|
93
93
|
};
|
|
94
|
-
//# sourceMappingURL=chunk-
|
|
94
|
+
//# sourceMappingURL=chunk-S2KANK3D.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MorphAPIClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2U7YFUMU.js";
|
|
4
4
|
import {
|
|
5
5
|
MorphError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MF4VKKGF.js";
|
|
7
7
|
import {
|
|
8
8
|
APIResource
|
|
9
9
|
} from "./chunk-LKFZBBTD.js";
|
|
@@ -75,4 +75,4 @@ var CompactClient = class extends APIResource {
|
|
|
75
75
|
export {
|
|
76
76
|
CompactClient
|
|
77
77
|
};
|
|
78
|
-
//# sourceMappingURL=chunk-
|
|
78
|
+
//# sourceMappingURL=chunk-TGFSIZAJ.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
executeEditFile
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-APSFRYOW.js";
|
|
4
4
|
import {
|
|
5
5
|
EDIT_FILE_SYSTEM_PROMPT,
|
|
6
6
|
EDIT_FILE_TOOL_DESCRIPTION
|
|
@@ -79,4 +79,4 @@ export {
|
|
|
79
79
|
getSystemPrompt,
|
|
80
80
|
anthropic_exports
|
|
81
81
|
};
|
|
82
|
-
//# sourceMappingURL=chunk-
|
|
82
|
+
//# sourceMappingURL=chunk-TQ5RX4HR.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-WLXPKUEQ.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-U5LXWLP7.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-YQMPVJ2L.js";
|
|
5
5
|
import {
|
|
6
6
|
executeCodebaseSearch
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WCW42MV2.js";
|
|
8
8
|
|
|
9
9
|
// tools/codebase_search/anthropic.ts
|
|
10
10
|
function createCodebaseSearchTool(config) {
|
|
@@ -80,4 +80,4 @@ function formatResult(result) {
|
|
|
80
80
|
export {
|
|
81
81
|
createCodebaseSearchTool
|
|
82
82
|
};
|
|
83
|
-
//# sourceMappingURL=chunk-
|
|
83
|
+
//# sourceMappingURL=chunk-UUUY4SGW.js.map
|