@morphllm/morphsdk 0.2.196 → 0.2.198
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-35CF3OUB.js → chunk-3XS5P5XH.js} +6 -6
- package/dist/{chunk-2VTN7TKZ.js → chunk-4DNEBVGV.js} +2 -2
- package/dist/chunk-4DNEBVGV.js.map +1 -0
- package/dist/{chunk-OQVHJMRJ.js → chunk-4JUIEYAH.js} +4 -4
- package/dist/{chunk-LKFZBBTD.js → chunk-5TOJD2C5.js} +1 -1
- package/dist/chunk-5TOJD2C5.js.map +1 -0
- package/dist/{chunk-2JY7TZCP.js → chunk-6XFL2NER.js} +2 -2
- package/dist/{chunk-4ULSZFQP.js → chunk-CAFREMIT.js} +2 -2
- package/dist/{chunk-ZLLY7O4B.js → chunk-D2RFP6R2.js} +4 -4
- package/dist/{chunk-CZ74CRGH.js → chunk-EMURAU6J.js} +4 -6
- package/dist/chunk-EMURAU6J.js.map +1 -0
- package/dist/{chunk-R4XIWBIL.js → chunk-FESO6TDQ.js} +2 -2
- package/dist/{chunk-P47MJ3IW.js → chunk-FUYX2MNM.js} +4 -4
- package/dist/chunk-FUYX2MNM.js.map +1 -0
- package/dist/{chunk-UALXVIF2.js → chunk-GJ42MYUU.js} +2 -2
- package/dist/{chunk-ATAKRJQZ.js → chunk-IDMKQWQG.js} +1 -36
- package/dist/chunk-IDMKQWQG.js.map +1 -0
- package/dist/{chunk-F7MGS2FO.js → chunk-KQKLQHJF.js} +2 -2
- package/dist/{chunk-VLZ6PNAD.js → chunk-LN7GNFET.js} +7 -7
- package/dist/{chunk-I62NJUD2.js → chunk-O5264GI4.js} +2 -2
- package/dist/{chunk-E2ICGQI6.js → chunk-PEFXG5M6.js} +2 -2
- package/dist/{chunk-AGOQL5HV.js → chunk-PIIXU2H3.js} +2 -2
- package/dist/{chunk-HU62MINA.js → chunk-PV6EF6NG.js} +4 -4
- package/dist/{chunk-4MNM35CI.js → chunk-QKNGVBE2.js} +4 -4
- package/dist/{chunk-WHDQBPXO.js → chunk-SKN2L5CE.js} +2 -2
- package/dist/{chunk-XBOM427X.js → chunk-T6TXYTKH.js} +2 -2
- package/dist/{chunk-K5J5VRY2.js → chunk-VBZ7BG47.js} +4 -4
- package/dist/{chunk-KOUAORQW.js → chunk-WLMPQFER.js} +2 -2
- package/dist/{chunk-K7RNGQ7S.js → chunk-XH6KJJDI.js} +2 -2
- package/dist/{chunk-YH3GCNXJ.js → chunk-XK3PQZW6.js} +2 -2
- package/dist/{chunk-ZQDR653M.js → chunk-XTFRHVCW.js} +4 -4
- package/dist/{chunk-F6NHRM2W.js → chunk-YD6TNDR4.js} +5 -5
- package/dist/{chunk-5VAIYZKB.js → chunk-YHZJYCOU.js} +29 -47
- package/dist/{chunk-5VAIYZKB.js.map → chunk-YHZJYCOU.js.map} +1 -1
- package/dist/{chunk-W3XDECC2.js → chunk-YQ2G5YLI.js} +11 -11
- package/dist/{chunk-RNQAXIUA.js → chunk-YUH3MTP3.js} +2 -2
- package/dist/{chunk-FEIAMQNC.js → chunk-ZGERT23F.js} +4 -4
- package/dist/{chunk-7O44XTVM.js → chunk-ZQNTXHBQ.js} +2 -2
- package/dist/{chunk-HBCNZDKW.js → chunk-ZU5YYGBJ.js} +3 -19
- package/dist/chunk-ZU5YYGBJ.js.map +1 -0
- package/dist/{client-Rn1zymAl.d.ts → client-DCeydotn.d.ts} +0 -9
- package/dist/client.cjs +7 -811
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.ts +1 -9
- package/dist/client.js +30 -34
- package/dist/core/client.cjs +2 -18
- package/dist/core/client.cjs.map +1 -1
- package/dist/core/client.d.ts +2 -2
- package/dist/core/client.js +4 -4
- package/dist/core/error.cjs +2 -18
- package/dist/core/error.cjs.map +1 -1
- package/dist/core/error.d.ts +1 -1
- package/dist/core/error.js +3 -3
- package/dist/core/index.cjs +2 -18
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.js +5 -5
- package/dist/core/resource.cjs.map +1 -1
- package/dist/core/resource.d.ts +1 -1
- package/dist/core/resource.js +1 -1
- package/dist/edge.cjs +2 -18
- package/dist/edge.cjs.map +1 -1
- package/dist/edge.js +8 -8
- package/dist/index.cjs +7 -819
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -9
- package/dist/index.js +34 -49
- package/dist/modelrouter/core.cjs +2 -18
- package/dist/modelrouter/core.cjs.map +1 -1
- package/dist/modelrouter/core.js +6 -6
- package/dist/modelrouter/index.cjs +2 -18
- package/dist/modelrouter/index.cjs.map +1 -1
- package/dist/modelrouter/index.js +6 -6
- package/dist/subagents/anthropic.cjs +2 -18
- package/dist/subagents/anthropic.cjs.map +1 -1
- package/dist/subagents/anthropic.js +12 -12
- package/dist/subagents/vercel.cjs +2 -18
- package/dist/subagents/vercel.cjs.map +1 -1
- package/dist/subagents/vercel.js +12 -12
- package/dist/tools/browser/anthropic.cjs +2 -18
- package/dist/tools/browser/anthropic.cjs.map +1 -1
- package/dist/tools/browser/anthropic.js +8 -8
- package/dist/tools/browser/core.cjs +2 -18
- package/dist/tools/browser/core.cjs.map +1 -1
- package/dist/tools/browser/core.js +7 -7
- package/dist/tools/browser/index.cjs +2 -18
- package/dist/tools/browser/index.cjs.map +1 -1
- package/dist/tools/browser/index.js +12 -12
- package/dist/tools/browser/openai.cjs +2 -18
- package/dist/tools/browser/openai.cjs.map +1 -1
- package/dist/tools/browser/openai.js +8 -8
- package/dist/tools/browser/profiles/core.cjs +2 -18
- 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 +2 -18
- 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 +2 -18
- package/dist/tools/browser/vercel.cjs.map +1 -1
- package/dist/tools/browser/vercel.js +8 -8
- package/dist/tools/codebase_search/anthropic.cjs +2 -18
- package/dist/tools/codebase_search/anthropic.cjs.map +1 -1
- package/dist/tools/codebase_search/anthropic.js +7 -7
- package/dist/tools/codebase_search/core.cjs +2 -18
- package/dist/tools/codebase_search/core.cjs.map +1 -1
- package/dist/tools/codebase_search/core.js +6 -6
- package/dist/tools/codebase_search/index.cjs +2 -18
- package/dist/tools/codebase_search/index.cjs.map +1 -1
- package/dist/tools/codebase_search/index.js +11 -11
- package/dist/tools/codebase_search/openai.cjs +2 -18
- package/dist/tools/codebase_search/openai.cjs.map +1 -1
- package/dist/tools/codebase_search/openai.js +7 -7
- package/dist/tools/codebase_search/vercel.cjs +2 -18
- package/dist/tools/codebase_search/vercel.cjs.map +1 -1
- package/dist/tools/codebase_search/vercel.js +7 -7
- package/dist/tools/compact/core.cjs +2 -18
- package/dist/tools/compact/core.cjs.map +1 -1
- package/dist/tools/compact/core.js +6 -6
- package/dist/tools/compact/index.cjs +2 -18
- package/dist/tools/compact/index.cjs.map +1 -1
- package/dist/tools/compact/index.js +7 -7
- package/dist/tools/fastapply/anthropic.cjs +2 -18
- package/dist/tools/fastapply/anthropic.cjs.map +1 -1
- package/dist/tools/fastapply/anthropic.js +8 -8
- package/dist/tools/fastapply/apply.cjs +2 -18
- package/dist/tools/fastapply/apply.cjs.map +1 -1
- package/dist/tools/fastapply/apply.js +2 -2
- package/dist/tools/fastapply/core.cjs +2 -18
- package/dist/tools/fastapply/core.cjs.map +1 -1
- package/dist/tools/fastapply/core.js +7 -7
- package/dist/tools/fastapply/index.cjs +2 -18
- package/dist/tools/fastapply/index.cjs.map +1 -1
- package/dist/tools/fastapply/index.js +14 -14
- package/dist/tools/fastapply/openai.cjs +2 -18
- package/dist/tools/fastapply/openai.cjs.map +1 -1
- package/dist/tools/fastapply/openai.js +8 -8
- package/dist/tools/fastapply/vercel.cjs +2 -18
- package/dist/tools/fastapply/vercel.cjs.map +1 -1
- package/dist/tools/fastapply/vercel.js +8 -8
- package/dist/tools/index.cjs +2 -18
- package/dist/tools/index.cjs.map +1 -1
- package/dist/tools/index.js +14 -14
- package/dist/tools/utils/resilience.cjs +2 -18
- 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 +2 -18
- package/dist/tools/warp_grep/agent/runner.cjs.map +1 -1
- package/dist/tools/warp_grep/agent/runner.js +3 -3
- package/dist/tools/warp_grep/anthropic.cjs +2 -18
- package/dist/tools/warp_grep/anthropic.cjs.map +1 -1
- package/dist/tools/warp_grep/anthropic.js +12 -12
- package/dist/tools/warp_grep/client.cjs +2 -18
- package/dist/tools/warp_grep/client.cjs.map +1 -1
- package/dist/tools/warp_grep/client.js +11 -11
- package/dist/tools/warp_grep/gemini.cjs +2 -18
- package/dist/tools/warp_grep/gemini.cjs.map +1 -1
- package/dist/tools/warp_grep/gemini.js +11 -11
- package/dist/tools/warp_grep/harness.js +6 -6
- package/dist/tools/warp_grep/index.cjs +2 -18
- package/dist/tools/warp_grep/index.cjs.map +1 -1
- package/dist/tools/warp_grep/index.js +17 -17
- package/dist/tools/warp_grep/openai.cjs +2 -18
- package/dist/tools/warp_grep/openai.cjs.map +1 -1
- package/dist/tools/warp_grep/openai.js +12 -12
- package/dist/tools/warp_grep/providers/local.js +2 -2
- package/dist/tools/warp_grep/vercel.cjs +2 -18
- package/dist/tools/warp_grep/vercel.cjs.map +1 -1
- package/dist/tools/warp_grep/vercel.js +12 -12
- package/dist/tracing/core.cjs +2 -34
- package/dist/tracing/core.cjs.map +1 -1
- package/dist/tracing/core.d.ts +1 -2
- package/dist/tracing/core.js +2 -2
- package/dist/tracing/index.cjs +4 -42
- package/dist/tracing/index.cjs.map +1 -1
- package/dist/tracing/index.d.ts +0 -34
- package/dist/tracing/index.js +3 -10
- package/dist/tracing/interaction.cjs +0 -30
- package/dist/tracing/interaction.cjs.map +1 -1
- package/dist/tracing/interaction.js +1 -1
- package/dist/tracing/types.cjs.map +1 -1
- package/dist/tracing/types.d.ts +1 -27
- package/dist/version.cjs +2 -18
- package/dist/version.cjs.map +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -18
- package/dist/chunk-2VTN7TKZ.js.map +0 -1
- package/dist/chunk-ATAKRJQZ.js.map +0 -1
- package/dist/chunk-CZ74CRGH.js.map +0 -1
- package/dist/chunk-GZMUGMOZ.js +0 -9
- package/dist/chunk-GZMUGMOZ.js.map +0 -1
- package/dist/chunk-HBCNZDKW.js.map +0 -1
- package/dist/chunk-JD6LOSNX.js +0 -202
- package/dist/chunk-JD6LOSNX.js.map +0 -1
- package/dist/chunk-LKFZBBTD.js.map +0 -1
- package/dist/chunk-P47MJ3IW.js.map +0 -1
- package/dist/chunk-TCCZBGG5.js +0 -46
- package/dist/chunk-TCCZBGG5.js.map +0 -1
- package/dist/chunk-XOZELE7Y.js +0 -561
- package/dist/chunk-XOZELE7Y.js.map +0 -1
- package/dist/git/client.cjs +0 -1123
- package/dist/git/client.cjs.map +0 -1
- package/dist/git/client.d.ts +0 -290
- package/dist/git/client.js +0 -14
- package/dist/git/client.js.map +0 -1
- package/dist/git/config.cjs +0 -41
- package/dist/git/config.cjs.map +0 -1
- package/dist/git/config.d.ts +0 -11
- package/dist/git/config.js +0 -17
- package/dist/git/config.js.map +0 -1
- package/dist/git/index.cjs +0 -1133
- package/dist/git/index.cjs.map +0 -1
- package/dist/git/index.d.ts +0 -7
- package/dist/git/index.js +0 -20
- package/dist/git/index.js.map +0 -1
- package/dist/git/types.cjs +0 -19
- package/dist/git/types.cjs.map +0 -1
- package/dist/git/types.d.ts +0 -133
- package/dist/git/types.js +0 -1
- package/dist/git/types.js.map +0 -1
- package/dist/tools/reflex/core.cjs +0 -762
- package/dist/tools/reflex/core.cjs.map +0 -1
- package/dist/tools/reflex/core.d.ts +0 -59
- package/dist/tools/reflex/core.js +0 -16
- package/dist/tools/reflex/core.js.map +0 -1
- package/dist/tools/reflex/index.cjs +0 -762
- package/dist/tools/reflex/index.cjs.map +0 -1
- package/dist/tools/reflex/index.d.ts +0 -5
- package/dist/tools/reflex/index.js +0 -16
- package/dist/tools/reflex/index.js.map +0 -1
- package/dist/tools/reflex/types.cjs +0 -19
- package/dist/tools/reflex/types.cjs.map +0 -1
- package/dist/tools/reflex/types.d.ts +0 -171
- package/dist/tools/reflex/types.js +0 -1
- package/dist/tools/reflex/types.js.map +0 -1
- package/dist/tools/traces/core.cjs +0 -76
- package/dist/tools/traces/core.cjs.map +0 -1
- package/dist/tools/traces/core.d.ts +0 -24
- package/dist/tools/traces/core.js +0 -9
- package/dist/tools/traces/core.js.map +0 -1
- package/dist/tools/traces/index.cjs +0 -76
- package/dist/tools/traces/index.cjs.map +0 -1
- package/dist/tools/traces/index.d.ts +0 -5
- package/dist/tools/traces/index.js +0 -9
- package/dist/tools/traces/index.js.map +0 -1
- package/dist/tools/traces/types.cjs +0 -19
- package/dist/tools/traces/types.cjs.map +0 -1
- package/dist/tools/traces/types.d.ts +0 -56
- package/dist/tools/traces/types.js +0 -1
- package/dist/tools/traces/types.js.map +0 -1
- /package/dist/{chunk-35CF3OUB.js.map → chunk-3XS5P5XH.js.map} +0 -0
- /package/dist/{chunk-OQVHJMRJ.js.map → chunk-4JUIEYAH.js.map} +0 -0
- /package/dist/{chunk-2JY7TZCP.js.map → chunk-6XFL2NER.js.map} +0 -0
- /package/dist/{chunk-4ULSZFQP.js.map → chunk-CAFREMIT.js.map} +0 -0
- /package/dist/{chunk-ZLLY7O4B.js.map → chunk-D2RFP6R2.js.map} +0 -0
- /package/dist/{chunk-R4XIWBIL.js.map → chunk-FESO6TDQ.js.map} +0 -0
- /package/dist/{chunk-UALXVIF2.js.map → chunk-GJ42MYUU.js.map} +0 -0
- /package/dist/{chunk-F7MGS2FO.js.map → chunk-KQKLQHJF.js.map} +0 -0
- /package/dist/{chunk-VLZ6PNAD.js.map → chunk-LN7GNFET.js.map} +0 -0
- /package/dist/{chunk-I62NJUD2.js.map → chunk-O5264GI4.js.map} +0 -0
- /package/dist/{chunk-E2ICGQI6.js.map → chunk-PEFXG5M6.js.map} +0 -0
- /package/dist/{chunk-AGOQL5HV.js.map → chunk-PIIXU2H3.js.map} +0 -0
- /package/dist/{chunk-HU62MINA.js.map → chunk-PV6EF6NG.js.map} +0 -0
- /package/dist/{chunk-4MNM35CI.js.map → chunk-QKNGVBE2.js.map} +0 -0
- /package/dist/{chunk-WHDQBPXO.js.map → chunk-SKN2L5CE.js.map} +0 -0
- /package/dist/{chunk-XBOM427X.js.map → chunk-T6TXYTKH.js.map} +0 -0
- /package/dist/{chunk-K5J5VRY2.js.map → chunk-VBZ7BG47.js.map} +0 -0
- /package/dist/{chunk-KOUAORQW.js.map → chunk-WLMPQFER.js.map} +0 -0
- /package/dist/{chunk-K7RNGQ7S.js.map → chunk-XH6KJJDI.js.map} +0 -0
- /package/dist/{chunk-YH3GCNXJ.js.map → chunk-XK3PQZW6.js.map} +0 -0
- /package/dist/{chunk-ZQDR653M.js.map → chunk-XTFRHVCW.js.map} +0 -0
- /package/dist/{chunk-F6NHRM2W.js.map → chunk-YD6TNDR4.js.map} +0 -0
- /package/dist/{chunk-W3XDECC2.js.map → chunk-YQ2G5YLI.js.map} +0 -0
- /package/dist/{chunk-RNQAXIUA.js.map → chunk-YUH3MTP3.js.map} +0 -0
- /package/dist/{chunk-FEIAMQNC.js.map → chunk-ZGERT23F.js.map} +0 -0
- /package/dist/{chunk-7O44XTVM.js.map → chunk-ZQNTXHBQ.js.map} +0 -0
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.198",
|
|
40
40
|
description: "TypeScript SDK and CLI for Morph Fast Apply integration",
|
|
41
41
|
type: "module",
|
|
42
42
|
main: "./dist/index.cjs",
|
|
@@ -143,11 +143,6 @@ var init_package = __esm({
|
|
|
143
143
|
import: "./dist/tools/codebase_search/vercel.js",
|
|
144
144
|
require: "./dist/tools/codebase_search/vercel.cjs"
|
|
145
145
|
},
|
|
146
|
-
"./tools/git": {
|
|
147
|
-
types: "./dist/git/index.d.ts",
|
|
148
|
-
import: "./dist/git/index.js",
|
|
149
|
-
require: "./dist/git/index.cjs"
|
|
150
|
-
},
|
|
151
146
|
"./tools/browser": {
|
|
152
147
|
types: "./dist/tools/browser/index.d.ts",
|
|
153
148
|
import: "./dist/tools/browser/index.js",
|
|
@@ -183,16 +178,6 @@ var init_package = __esm({
|
|
|
183
178
|
import: "./dist/tools/compact/index.js",
|
|
184
179
|
require: "./dist/tools/compact/index.cjs"
|
|
185
180
|
},
|
|
186
|
-
"./tools/reflex": {
|
|
187
|
-
types: "./dist/tools/reflex/index.d.ts",
|
|
188
|
-
import: "./dist/tools/reflex/index.js",
|
|
189
|
-
require: "./dist/tools/reflex/index.cjs"
|
|
190
|
-
},
|
|
191
|
-
"./tools/traces": {
|
|
192
|
-
types: "./dist/tools/traces/index.d.ts",
|
|
193
|
-
import: "./dist/tools/traces/index.js",
|
|
194
|
-
require: "./dist/tools/traces/index.cjs"
|
|
195
|
-
},
|
|
196
181
|
"./subagents": {
|
|
197
182
|
types: "./dist/subagents/index.d.ts",
|
|
198
183
|
import: "./dist/subagents/index.js",
|
|
@@ -223,7 +208,7 @@ var init_package = __esm({
|
|
|
223
208
|
"!dist/**/*.test.*"
|
|
224
209
|
],
|
|
225
210
|
scripts: {
|
|
226
|
-
build: "tsup version.ts index.ts edge.ts client.ts core/index.ts core/client.ts core/resource.ts core/error.ts tools/index.ts tools/fastapply/index.ts tools/fastapply/core.ts tools/fastapply/apply.ts tools/fastapply/types.ts tools/fastapply/prompts.ts tools/fastapply/anthropic.ts tools/fastapply/openai.ts tools/fastapply/vercel.ts tools/codebase_search/index.ts tools/codebase_search/core.ts tools/codebase_search/types.ts tools/codebase_search/prompts.ts tools/codebase_search/anthropic.ts tools/codebase_search/openai.ts tools/codebase_search/vercel.ts tools/warp_grep/index.ts tools/warp_grep/client.ts tools/warp_grep/openai.ts tools/warp_grep/anthropic.ts tools/warp_grep/vercel.ts tools/warp_grep/gemini.ts tools/warp_grep/harness.ts tools/warp_grep/agent/config.ts tools/warp_grep/agent/parser.ts tools/warp_grep/agent/runner.ts tools/warp_grep/agent/types.ts tools/warp_grep/agent/formatter.ts tools/warp_grep/providers/types.ts tools/warp_grep/providers/local.ts tools/warp_grep/providers/remote.ts tools/warp_grep/providers/code_storage_http.ts tools/warp_grep/tools/grep.ts tools/warp_grep/tools/analyse.ts tools/warp_grep/tools/read.ts tools/warp_grep/tools/finish.ts tools/warp_grep/utils/paths.ts tools/warp_grep/utils/github.ts tools/warp_grep/utils/ripgrep.ts tools/warp_grep/utils/format.ts tools/warp_grep/utils/files.ts
|
|
211
|
+
build: "tsup version.ts index.ts edge.ts client.ts core/index.ts core/client.ts core/resource.ts core/error.ts tools/index.ts tools/fastapply/index.ts tools/fastapply/core.ts tools/fastapply/apply.ts tools/fastapply/types.ts tools/fastapply/prompts.ts tools/fastapply/anthropic.ts tools/fastapply/openai.ts tools/fastapply/vercel.ts tools/codebase_search/index.ts tools/codebase_search/core.ts tools/codebase_search/types.ts tools/codebase_search/prompts.ts tools/codebase_search/anthropic.ts tools/codebase_search/openai.ts tools/codebase_search/vercel.ts tools/warp_grep/index.ts tools/warp_grep/client.ts tools/warp_grep/openai.ts tools/warp_grep/anthropic.ts tools/warp_grep/vercel.ts tools/warp_grep/gemini.ts tools/warp_grep/harness.ts tools/warp_grep/agent/config.ts tools/warp_grep/agent/parser.ts tools/warp_grep/agent/runner.ts tools/warp_grep/agent/types.ts tools/warp_grep/agent/formatter.ts tools/warp_grep/providers/types.ts tools/warp_grep/providers/local.ts tools/warp_grep/providers/remote.ts tools/warp_grep/providers/code_storage_http.ts tools/warp_grep/tools/grep.ts tools/warp_grep/tools/analyse.ts tools/warp_grep/tools/read.ts tools/warp_grep/tools/finish.ts tools/warp_grep/utils/paths.ts tools/warp_grep/utils/github.ts tools/warp_grep/utils/ripgrep.ts tools/warp_grep/utils/format.ts tools/warp_grep/utils/files.ts tools/browser/index.ts tools/browser/core.ts tools/browser/types.ts tools/browser/prompts.ts tools/browser/anthropic.ts tools/browser/openai.ts tools/browser/vercel.ts tools/browser/live.ts tools/browser/errors.ts tools/browser/profiles/index.ts tools/browser/profiles/core.ts tools/browser/profiles/types.ts modelrouter/index.ts modelrouter/core.ts modelrouter/types.ts tools/compact/index.ts tools/compact/core.ts tools/compact/types.ts tools/utils/resilience.ts subagents/index.ts subagents/types.ts subagents/prompts.ts subagents/vercel.ts subagents/anthropic.ts tracing/index.ts tracing/core.ts tracing/interaction.ts tracing/otel.ts tracing/types.ts --format esm,cjs --sourcemap --clean --dts --dts-resolve && tsup ai-sdk/index.ts --format esm,cjs --sourcemap --dts --no-clean --out-dir dist/ai-sdk",
|
|
227
212
|
prepare: "npm run build",
|
|
228
213
|
typecheck: "tsc --noEmit && tsc --noEmit -p ai-sdk/tsconfig.json",
|
|
229
214
|
lint: "eslint .",
|
|
@@ -260,7 +245,6 @@ var init_package = __esm({
|
|
|
260
245
|
"@vscode/ripgrep": "^1.17.0",
|
|
261
246
|
ai: ">=5.0.0",
|
|
262
247
|
diff: "^7.0.0",
|
|
263
|
-
"isomorphic-git": "^1.25.10",
|
|
264
248
|
openai: "^4.52.7",
|
|
265
249
|
zod: ">=3.23.0"
|
|
266
250
|
},
|
|
@@ -334,8 +318,8 @@ var init_logger = __esm({
|
|
|
334
318
|
this.fileStream = null;
|
|
335
319
|
const f = typeof process !== "undefined" ? process.env.MORPH_LOG_FILE : void 0;
|
|
336
320
|
if (f) {
|
|
337
|
-
this.ready = import("fs").then((
|
|
338
|
-
this.fileStream =
|
|
321
|
+
this.ready = import("fs").then((fs4) => {
|
|
322
|
+
this.fileStream = fs4.createWriteStream(f, { flags: "a" });
|
|
339
323
|
}).catch(() => {
|
|
340
324
|
});
|
|
341
325
|
} else {
|
|
@@ -1383,17 +1367,13 @@ __export(index_exports, {
|
|
|
1383
1367
|
LocalRipgrepProvider: () => LocalRipgrepProvider,
|
|
1384
1368
|
MorphAPIClient: () => MorphAPIClient,
|
|
1385
1369
|
MorphClient: () => MorphClient,
|
|
1386
|
-
MorphGit: () => MorphGit,
|
|
1387
1370
|
NoInstallationError: () => NoInstallationError,
|
|
1388
1371
|
NotFoundError: () => NotFoundError,
|
|
1389
1372
|
OpenAIRouter: () => OpenAIRouter,
|
|
1390
1373
|
OpenAIToolFactory: () => OpenAIToolFactory,
|
|
1391
1374
|
PermissionError: () => PermissionError,
|
|
1392
1375
|
RawRouter: () => RawRouter,
|
|
1393
|
-
ReflexClient: () => ReflexClient,
|
|
1394
|
-
ReflexJobsResource: () => ReflexJobsResource,
|
|
1395
1376
|
SDK_VERSION: () => SDK_VERSION,
|
|
1396
|
-
TracesClient: () => TracesClient,
|
|
1397
1377
|
VercelToolFactory: () => VercelToolFactory,
|
|
1398
1378
|
WarpGrepClient: () => WarpGrepClient,
|
|
1399
1379
|
applyEdit: () => applyEdit
|
|
@@ -4788,790 +4768,11 @@ var GitHubClient = class extends APIResource {
|
|
|
4788
4768
|
}
|
|
4789
4769
|
};
|
|
4790
4770
|
|
|
4791
|
-
// git/client.ts
|
|
4792
|
-
var import_isomorphic_git = __toESM(require("isomorphic-git"), 1);
|
|
4793
|
-
var import_node = __toESM(require("isomorphic-git/http/node"), 1);
|
|
4794
|
-
var import_fs2 = __toESM(require("fs"), 1);
|
|
4795
|
-
var DEFAULT_PROXY_URL = "https://repos.morphllm.com";
|
|
4796
|
-
var MorphGit = class extends APIResource {
|
|
4797
|
-
apiKey;
|
|
4798
|
-
proxyUrl;
|
|
4799
|
-
constructor(clientOrConfig) {
|
|
4800
|
-
const isClient = clientOrConfig instanceof MorphAPIClient;
|
|
4801
|
-
if (!isClient) {
|
|
4802
|
-
if (!clientOrConfig.apiKey) {
|
|
4803
|
-
throw new Error("API key is required. Get one at https://morphllm.com/dashboard");
|
|
4804
|
-
}
|
|
4805
|
-
if (!clientOrConfig.apiKey.startsWith("sk-") && !clientOrConfig.apiKey.startsWith("morph-")) {
|
|
4806
|
-
throw new Error("Invalid API key format. Expected: sk-... or morph-...");
|
|
4807
|
-
}
|
|
4808
|
-
}
|
|
4809
|
-
super(
|
|
4810
|
-
isClient ? clientOrConfig : new MorphAPIClient({
|
|
4811
|
-
apiKey: clientOrConfig.apiKey,
|
|
4812
|
-
reposURL: clientOrConfig.proxyUrl,
|
|
4813
|
-
retryConfig: clientOrConfig.retryConfig
|
|
4814
|
-
})
|
|
4815
|
-
);
|
|
4816
|
-
this.apiKey = this._client.resolveApiKey() ?? "";
|
|
4817
|
-
this.proxyUrl = isClient ? this._client.reposURL : clientOrConfig.proxyUrl || DEFAULT_PROXY_URL;
|
|
4818
|
-
}
|
|
4819
|
-
/**
|
|
4820
|
-
* Get auth callback for isomorphic-git operations
|
|
4821
|
-
* @private
|
|
4822
|
-
*/
|
|
4823
|
-
getAuthCallback() {
|
|
4824
|
-
return () => ({
|
|
4825
|
-
username: "morph",
|
|
4826
|
-
password: this.apiKey
|
|
4827
|
-
});
|
|
4828
|
-
}
|
|
4829
|
-
/**
|
|
4830
|
-
* Initialize a new repository
|
|
4831
|
-
* Creates the repo in the database and in the git provider
|
|
4832
|
-
*
|
|
4833
|
-
* @example
|
|
4834
|
-
* ```ts
|
|
4835
|
-
* await morphGit.init({
|
|
4836
|
-
* repoId: 'my-project',
|
|
4837
|
-
* dir: './my-project',
|
|
4838
|
-
* defaultBranch: 'main'
|
|
4839
|
-
* });
|
|
4840
|
-
* ```
|
|
4841
|
-
*/
|
|
4842
|
-
async init(options) {
|
|
4843
|
-
const { repoId, dir, defaultBranch = "main" } = options;
|
|
4844
|
-
const response = await fetch(`${this.proxyUrl}/v1/repos`, {
|
|
4845
|
-
method: "POST",
|
|
4846
|
-
headers: {
|
|
4847
|
-
"Authorization": `Bearer ${this.apiKey}`,
|
|
4848
|
-
"Content-Type": "application/json"
|
|
4849
|
-
},
|
|
4850
|
-
body: JSON.stringify({
|
|
4851
|
-
repoId,
|
|
4852
|
-
name: repoId,
|
|
4853
|
-
defaultBranch
|
|
4854
|
-
})
|
|
4855
|
-
});
|
|
4856
|
-
if (!response.ok) {
|
|
4857
|
-
const error = await response.text();
|
|
4858
|
-
throw new Error(`Failed to create repository: ${error}`);
|
|
4859
|
-
}
|
|
4860
|
-
await import_isomorphic_git.default.init({
|
|
4861
|
-
fs: import_fs2.default,
|
|
4862
|
-
dir,
|
|
4863
|
-
defaultBranch
|
|
4864
|
-
});
|
|
4865
|
-
await import_isomorphic_git.default.addRemote({
|
|
4866
|
-
fs: import_fs2.default,
|
|
4867
|
-
dir,
|
|
4868
|
-
remote: "origin",
|
|
4869
|
-
url: `${this.proxyUrl}/v1/repos/${repoId}`
|
|
4870
|
-
});
|
|
4871
|
-
console.log(`\u2713 Repository '${repoId}' initialized`);
|
|
4872
|
-
}
|
|
4873
|
-
/**
|
|
4874
|
-
* Clone a repository from Morph repos
|
|
4875
|
-
*
|
|
4876
|
-
* @example
|
|
4877
|
-
* ```ts
|
|
4878
|
-
* await morphGit.clone({
|
|
4879
|
-
* repoId: 'my-project',
|
|
4880
|
-
* dir: './my-project'
|
|
4881
|
-
* });
|
|
4882
|
-
* ```
|
|
4883
|
-
*/
|
|
4884
|
-
async clone(options) {
|
|
4885
|
-
const { repoId, dir, branch = "main", depth, singleBranch = true } = options;
|
|
4886
|
-
await import_isomorphic_git.default.clone({
|
|
4887
|
-
fs: import_fs2.default,
|
|
4888
|
-
http: import_node.default,
|
|
4889
|
-
dir,
|
|
4890
|
-
url: `${this.proxyUrl}/v1/repos/${repoId}`,
|
|
4891
|
-
ref: branch,
|
|
4892
|
-
singleBranch,
|
|
4893
|
-
depth,
|
|
4894
|
-
onAuth: this.getAuthCallback()
|
|
4895
|
-
});
|
|
4896
|
-
}
|
|
4897
|
-
/**
|
|
4898
|
-
* Push changes to remote repository
|
|
4899
|
-
*
|
|
4900
|
-
* @example
|
|
4901
|
-
* ```ts
|
|
4902
|
-
* await morphGit.push({
|
|
4903
|
-
* dir: './my-project',
|
|
4904
|
-
* branch: 'main', // Required: explicit branch name
|
|
4905
|
-
* index: true // Optional: generate embeddings for semantic search
|
|
4906
|
-
* });
|
|
4907
|
-
* ```
|
|
4908
|
-
*/
|
|
4909
|
-
async push(options) {
|
|
4910
|
-
const { dir, remote = "origin", branch, waitForEmbeddings, index = false } = options;
|
|
4911
|
-
if (!branch) {
|
|
4912
|
-
throw new Error(
|
|
4913
|
-
'branch is required for push operations. Specify the branch explicitly: { dir: "./my-project", branch: "main" }'
|
|
4914
|
-
);
|
|
4915
|
-
}
|
|
4916
|
-
const commitHash = await import_isomorphic_git.default.resolveRef({ fs: import_fs2.default, dir, ref: "HEAD" });
|
|
4917
|
-
let repoId;
|
|
4918
|
-
const remotes = await import_isomorphic_git.default.listRemotes({ fs: import_fs2.default, dir });
|
|
4919
|
-
const originRemote = remotes.find((r) => r.remote === remote);
|
|
4920
|
-
if (originRemote) {
|
|
4921
|
-
const match = originRemote.url.match(/\/repos\/([^\/]+)$/);
|
|
4922
|
-
if (match) {
|
|
4923
|
-
repoId = match[1];
|
|
4924
|
-
}
|
|
4925
|
-
}
|
|
4926
|
-
await import_isomorphic_git.default.push({
|
|
4927
|
-
fs: import_fs2.default,
|
|
4928
|
-
http: import_node.default,
|
|
4929
|
-
dir,
|
|
4930
|
-
remote,
|
|
4931
|
-
ref: branch,
|
|
4932
|
-
onAuth: this.getAuthCallback()
|
|
4933
|
-
});
|
|
4934
|
-
if (repoId && commitHash) {
|
|
4935
|
-
await this.configureCommit({ repoId, commitHash, branch, index });
|
|
4936
|
-
}
|
|
4937
|
-
if (waitForEmbeddings && repoId && commitHash && index) {
|
|
4938
|
-
await this.waitForEmbeddings({ repoId, commitHash });
|
|
4939
|
-
}
|
|
4940
|
-
}
|
|
4941
|
-
/**
|
|
4942
|
-
* Configure commit settings on the backend after push.
|
|
4943
|
-
* Sets the index flag to control embedding generation.
|
|
4944
|
-
* @private
|
|
4945
|
-
*/
|
|
4946
|
-
async configureCommit(options) {
|
|
4947
|
-
const { repoId, commitHash, branch, index } = options;
|
|
4948
|
-
const response = await fetch(
|
|
4949
|
-
`${this.proxyUrl}/v1/repos/${repoId}/commits/${commitHash}/config`,
|
|
4950
|
-
{
|
|
4951
|
-
method: "POST",
|
|
4952
|
-
headers: {
|
|
4953
|
-
"Authorization": `Bearer ${this.apiKey}`,
|
|
4954
|
-
"Content-Type": "application/json"
|
|
4955
|
-
},
|
|
4956
|
-
body: JSON.stringify({ index, branch })
|
|
4957
|
-
}
|
|
4958
|
-
);
|
|
4959
|
-
if (!response.ok) {
|
|
4960
|
-
console.warn(`Failed to configure commit: ${response.status}`);
|
|
4961
|
-
}
|
|
4962
|
-
}
|
|
4963
|
-
/**
|
|
4964
|
-
* Pull changes from remote repository
|
|
4965
|
-
*
|
|
4966
|
-
* @example
|
|
4967
|
-
* ```ts
|
|
4968
|
-
* await morphGit.pull({
|
|
4969
|
-
* dir: './my-project',
|
|
4970
|
-
* branch: 'main' // Required: explicit branch name
|
|
4971
|
-
* });
|
|
4972
|
-
* ```
|
|
4973
|
-
*/
|
|
4974
|
-
async pull(options) {
|
|
4975
|
-
const { dir, remote = "origin", branch } = options;
|
|
4976
|
-
if (!branch) {
|
|
4977
|
-
throw new Error(
|
|
4978
|
-
'branch is required for pull operations. Specify the branch explicitly: { dir: "./my-project", branch: "main" }'
|
|
4979
|
-
);
|
|
4980
|
-
}
|
|
4981
|
-
await import_isomorphic_git.default.pull({
|
|
4982
|
-
fs: import_fs2.default,
|
|
4983
|
-
http: import_node.default,
|
|
4984
|
-
dir,
|
|
4985
|
-
remote,
|
|
4986
|
-
ref: branch,
|
|
4987
|
-
onAuth: this.getAuthCallback(),
|
|
4988
|
-
author: {
|
|
4989
|
-
name: "Morph Agent",
|
|
4990
|
-
email: "agent@morph.com"
|
|
4991
|
-
}
|
|
4992
|
-
});
|
|
4993
|
-
}
|
|
4994
|
-
/**
|
|
4995
|
-
* Wait for embeddings to complete after push.
|
|
4996
|
-
* Polls status endpoint until embeddings are done.
|
|
4997
|
-
*
|
|
4998
|
-
* @example
|
|
4999
|
-
* ```ts
|
|
5000
|
-
* await morphGit.push({ dir: './my-project', branch: 'main' });
|
|
5001
|
-
* await morphGit.waitForEmbeddings({
|
|
5002
|
-
* repoId: 'my-project',
|
|
5003
|
-
* onProgress: (p) => console.log(`${p.filesProcessed}/${p.totalFiles}`)
|
|
5004
|
-
* });
|
|
5005
|
-
* ```
|
|
5006
|
-
*/
|
|
5007
|
-
async waitForEmbeddings(options) {
|
|
5008
|
-
const { repoId, commitHash, timeout = 12e4, onProgress } = options;
|
|
5009
|
-
const startTime = Date.now();
|
|
5010
|
-
const pollInterval = 1e3;
|
|
5011
|
-
while (Date.now() - startTime < timeout) {
|
|
5012
|
-
const statusUrl = `${this.proxyUrl}/v1/repos/${repoId}/embedding-status` + (commitHash ? `?commit_hash=${commitHash}` : "");
|
|
5013
|
-
const response = await fetch(statusUrl, {
|
|
5014
|
-
headers: { "Authorization": `Bearer ${this.apiKey}` }
|
|
5015
|
-
});
|
|
5016
|
-
if (response.status === 404) {
|
|
5017
|
-
await new Promise((resolve2) => setTimeout(resolve2, pollInterval));
|
|
5018
|
-
continue;
|
|
5019
|
-
}
|
|
5020
|
-
if (!response.ok) {
|
|
5021
|
-
throw new Error(`Failed to get embedding status: ${response.status}`);
|
|
5022
|
-
}
|
|
5023
|
-
const status = await response.json();
|
|
5024
|
-
if (onProgress && status.progress) {
|
|
5025
|
-
onProgress(status.progress);
|
|
5026
|
-
}
|
|
5027
|
-
if (status.status === "completed") {
|
|
5028
|
-
return;
|
|
5029
|
-
}
|
|
5030
|
-
if (status.status === "failed") {
|
|
5031
|
-
throw new Error(`Embeddings failed: ${status.error || "Unknown error"}`);
|
|
5032
|
-
}
|
|
5033
|
-
await new Promise((resolve2) => setTimeout(resolve2, pollInterval));
|
|
5034
|
-
}
|
|
5035
|
-
throw new Error(`Embeddings timed out after ${timeout}ms`);
|
|
5036
|
-
}
|
|
5037
|
-
/**
|
|
5038
|
-
* Stage a file for commit
|
|
5039
|
-
*
|
|
5040
|
-
* @example
|
|
5041
|
-
* ```ts
|
|
5042
|
-
* await morphGit.add({
|
|
5043
|
-
* dir: './my-project',
|
|
5044
|
-
* filepath: 'src/app.ts'
|
|
5045
|
-
* });
|
|
5046
|
-
* ```
|
|
5047
|
-
*/
|
|
5048
|
-
async add(options) {
|
|
5049
|
-
const { dir, filepath } = options;
|
|
5050
|
-
await import_isomorphic_git.default.add({
|
|
5051
|
-
fs: import_fs2.default,
|
|
5052
|
-
dir,
|
|
5053
|
-
filepath
|
|
5054
|
-
});
|
|
5055
|
-
}
|
|
5056
|
-
/**
|
|
5057
|
-
* Remove a file from staging
|
|
5058
|
-
*
|
|
5059
|
-
* @example
|
|
5060
|
-
* ```ts
|
|
5061
|
-
* await morphGit.remove({
|
|
5062
|
-
* dir: './my-project',
|
|
5063
|
-
* filepath: 'src/old-file.ts'
|
|
5064
|
-
* });
|
|
5065
|
-
* ```
|
|
5066
|
-
*/
|
|
5067
|
-
async remove(options) {
|
|
5068
|
-
const { dir, filepath } = options;
|
|
5069
|
-
await import_isomorphic_git.default.remove({
|
|
5070
|
-
fs: import_fs2.default,
|
|
5071
|
-
dir,
|
|
5072
|
-
filepath
|
|
5073
|
-
});
|
|
5074
|
-
}
|
|
5075
|
-
/**
|
|
5076
|
-
* Commit staged changes
|
|
5077
|
-
*
|
|
5078
|
-
* @example
|
|
5079
|
-
* ```ts
|
|
5080
|
-
* await morphGit.commit({
|
|
5081
|
-
* dir: './my-project',
|
|
5082
|
-
* message: 'Add new feature',
|
|
5083
|
-
* author: {
|
|
5084
|
-
* name: 'AI Agent',
|
|
5085
|
-
* email: 'ai@example.com'
|
|
5086
|
-
* },
|
|
5087
|
-
* metadata: { issueId: 'PROJ-123', source: 'agent' },
|
|
5088
|
-
* chatHistory: [
|
|
5089
|
-
* { role: 'user', content: 'Please add a new feature' },
|
|
5090
|
-
* { role: 'assistant', content: 'I will add that feature' }
|
|
5091
|
-
* ],
|
|
5092
|
-
* recordingId: 'rec_123'
|
|
5093
|
-
* });
|
|
5094
|
-
* ```
|
|
5095
|
-
*/
|
|
5096
|
-
async commit(options) {
|
|
5097
|
-
const { dir, message, author, metadata, chatHistory, recordingId } = options;
|
|
5098
|
-
const commitAuthor = author || {
|
|
5099
|
-
name: "Morph SDK",
|
|
5100
|
-
email: "sdk@morphllm.com"
|
|
5101
|
-
};
|
|
5102
|
-
const sha = await import_isomorphic_git.default.commit({
|
|
5103
|
-
fs: import_fs2.default,
|
|
5104
|
-
dir,
|
|
5105
|
-
message,
|
|
5106
|
-
author: commitAuthor
|
|
5107
|
-
});
|
|
5108
|
-
if (metadata || chatHistory || recordingId) {
|
|
5109
|
-
const notes = {
|
|
5110
|
-
metadata,
|
|
5111
|
-
chatHistory,
|
|
5112
|
-
recordingId,
|
|
5113
|
-
_version: 1
|
|
5114
|
-
};
|
|
5115
|
-
await import_isomorphic_git.default.addNote({
|
|
5116
|
-
fs: import_fs2.default,
|
|
5117
|
-
dir,
|
|
5118
|
-
ref: "refs/notes/morph-metadata",
|
|
5119
|
-
oid: sha,
|
|
5120
|
-
note: JSON.stringify(notes, null, 2),
|
|
5121
|
-
author: commitAuthor
|
|
5122
|
-
});
|
|
5123
|
-
}
|
|
5124
|
-
return sha;
|
|
5125
|
-
}
|
|
5126
|
-
/**
|
|
5127
|
-
* Get status of a file
|
|
5128
|
-
*
|
|
5129
|
-
* @example
|
|
5130
|
-
* ```ts
|
|
5131
|
-
* const status = await morphGit.status({
|
|
5132
|
-
* dir: './my-project',
|
|
5133
|
-
* filepath: 'src/app.ts'
|
|
5134
|
-
* });
|
|
5135
|
-
* console.log(status); // 'modified', '*added', etc.
|
|
5136
|
-
* ```
|
|
5137
|
-
*/
|
|
5138
|
-
async status(options) {
|
|
5139
|
-
const { dir, filepath } = options;
|
|
5140
|
-
if (!filepath) {
|
|
5141
|
-
throw new Error("filepath is required for status check");
|
|
5142
|
-
}
|
|
5143
|
-
const status = await import_isomorphic_git.default.status({
|
|
5144
|
-
fs: import_fs2.default,
|
|
5145
|
-
dir,
|
|
5146
|
-
filepath
|
|
5147
|
-
});
|
|
5148
|
-
return status;
|
|
5149
|
-
}
|
|
5150
|
-
/**
|
|
5151
|
-
* Get commit history
|
|
5152
|
-
*
|
|
5153
|
-
* @example
|
|
5154
|
-
* ```ts
|
|
5155
|
-
* const commits = await morphGit.log({
|
|
5156
|
-
* dir: './my-project',
|
|
5157
|
-
* depth: 10
|
|
5158
|
-
* });
|
|
5159
|
-
* ```
|
|
5160
|
-
*/
|
|
5161
|
-
async log(options) {
|
|
5162
|
-
const { dir, depth, ref } = options;
|
|
5163
|
-
const commits = await import_isomorphic_git.default.log({
|
|
5164
|
-
fs: import_fs2.default,
|
|
5165
|
-
dir,
|
|
5166
|
-
depth,
|
|
5167
|
-
ref
|
|
5168
|
-
});
|
|
5169
|
-
return commits;
|
|
5170
|
-
}
|
|
5171
|
-
/**
|
|
5172
|
-
* Checkout a branch or commit
|
|
5173
|
-
*
|
|
5174
|
-
* @example
|
|
5175
|
-
* ```ts
|
|
5176
|
-
* await morphGit.checkout({
|
|
5177
|
-
* dir: './my-project',
|
|
5178
|
-
* ref: 'feature-branch'
|
|
5179
|
-
* });
|
|
5180
|
-
* ```
|
|
5181
|
-
*/
|
|
5182
|
-
async checkout(options) {
|
|
5183
|
-
const { dir, ref } = options;
|
|
5184
|
-
await import_isomorphic_git.default.checkout({
|
|
5185
|
-
fs: import_fs2.default,
|
|
5186
|
-
dir,
|
|
5187
|
-
ref
|
|
5188
|
-
});
|
|
5189
|
-
}
|
|
5190
|
-
/**
|
|
5191
|
-
* Create a new branch
|
|
5192
|
-
*
|
|
5193
|
-
* @example
|
|
5194
|
-
* ```ts
|
|
5195
|
-
* await morphGit.branch({
|
|
5196
|
-
* dir: './my-project',
|
|
5197
|
-
* name: 'feature-branch',
|
|
5198
|
-
* checkout: true
|
|
5199
|
-
* });
|
|
5200
|
-
* ```
|
|
5201
|
-
*/
|
|
5202
|
-
async branch(options) {
|
|
5203
|
-
const { dir, name, checkout = false } = options;
|
|
5204
|
-
await import_isomorphic_git.default.branch({
|
|
5205
|
-
fs: import_fs2.default,
|
|
5206
|
-
dir,
|
|
5207
|
-
ref: name,
|
|
5208
|
-
checkout
|
|
5209
|
-
});
|
|
5210
|
-
}
|
|
5211
|
-
/**
|
|
5212
|
-
* List all branches
|
|
5213
|
-
*
|
|
5214
|
-
* @example
|
|
5215
|
-
* ```ts
|
|
5216
|
-
* const branches = await morphGit.listBranches({
|
|
5217
|
-
* dir: './my-project'
|
|
5218
|
-
* });
|
|
5219
|
-
* ```
|
|
5220
|
-
*/
|
|
5221
|
-
async listBranches(options) {
|
|
5222
|
-
const { dir } = options;
|
|
5223
|
-
const branches = await import_isomorphic_git.default.listBranches({
|
|
5224
|
-
fs: import_fs2.default,
|
|
5225
|
-
dir
|
|
5226
|
-
});
|
|
5227
|
-
return branches;
|
|
5228
|
-
}
|
|
5229
|
-
/**
|
|
5230
|
-
* Get the current branch name
|
|
5231
|
-
*
|
|
5232
|
-
* @example
|
|
5233
|
-
* ```ts
|
|
5234
|
-
* const branch = await morphGit.currentBranch({
|
|
5235
|
-
* dir: './my-project'
|
|
5236
|
-
* });
|
|
5237
|
-
* ```
|
|
5238
|
-
*/
|
|
5239
|
-
async currentBranch(options) {
|
|
5240
|
-
const { dir } = options;
|
|
5241
|
-
const branch = await import_isomorphic_git.default.currentBranch({
|
|
5242
|
-
fs: import_fs2.default,
|
|
5243
|
-
dir
|
|
5244
|
-
});
|
|
5245
|
-
return branch || void 0;
|
|
5246
|
-
}
|
|
5247
|
-
/**
|
|
5248
|
-
* Get list of changed files (similar to git diff --name-only)
|
|
5249
|
-
*
|
|
5250
|
-
* @example
|
|
5251
|
-
* ```ts
|
|
5252
|
-
* const changes = await morphGit.statusMatrix({
|
|
5253
|
-
* dir: './my-project'
|
|
5254
|
-
* });
|
|
5255
|
-
* ```
|
|
5256
|
-
*/
|
|
5257
|
-
async statusMatrix(options) {
|
|
5258
|
-
const { dir } = options;
|
|
5259
|
-
const matrix = await import_isomorphic_git.default.statusMatrix({
|
|
5260
|
-
fs: import_fs2.default,
|
|
5261
|
-
dir
|
|
5262
|
-
});
|
|
5263
|
-
return matrix.map(([filepath, HEADStatus, workdirStatus, stageStatus]) => {
|
|
5264
|
-
let status = "unmodified";
|
|
5265
|
-
if (HEADStatus === 1 && workdirStatus === 2 && stageStatus === 2) {
|
|
5266
|
-
status = "modified";
|
|
5267
|
-
} else if (HEADStatus === 1 && workdirStatus === 2 && stageStatus === 1) {
|
|
5268
|
-
status = "*modified";
|
|
5269
|
-
} else if (HEADStatus === 0 && workdirStatus === 2 && stageStatus === 2) {
|
|
5270
|
-
status = "added";
|
|
5271
|
-
} else if (HEADStatus === 0 && workdirStatus === 2 && stageStatus === 0) {
|
|
5272
|
-
status = "*added";
|
|
5273
|
-
} else if (HEADStatus === 1 && workdirStatus === 0 && stageStatus === 0) {
|
|
5274
|
-
status = "deleted";
|
|
5275
|
-
} else if (HEADStatus === 1 && workdirStatus === 0 && stageStatus === 1) {
|
|
5276
|
-
status = "*deleted";
|
|
5277
|
-
} else if (HEADStatus === 1 && workdirStatus === 1 && stageStatus === 1) {
|
|
5278
|
-
status = "unmodified";
|
|
5279
|
-
} else if (HEADStatus === 0 && workdirStatus === 0 && stageStatus === 0) {
|
|
5280
|
-
status = "absent";
|
|
5281
|
-
}
|
|
5282
|
-
return {
|
|
5283
|
-
filepath,
|
|
5284
|
-
status
|
|
5285
|
-
};
|
|
5286
|
-
});
|
|
5287
|
-
}
|
|
5288
|
-
/**
|
|
5289
|
-
* Get the current commit hash
|
|
5290
|
-
*
|
|
5291
|
-
* @example
|
|
5292
|
-
* ```ts
|
|
5293
|
-
* const hash = await morphGit.resolveRef({
|
|
5294
|
-
* dir: './my-project',
|
|
5295
|
-
* ref: 'HEAD'
|
|
5296
|
-
* });
|
|
5297
|
-
* ```
|
|
5298
|
-
*/
|
|
5299
|
-
async resolveRef(options) {
|
|
5300
|
-
const { dir, ref } = options;
|
|
5301
|
-
const oid = await import_isomorphic_git.default.resolveRef({
|
|
5302
|
-
fs: import_fs2.default,
|
|
5303
|
-
dir,
|
|
5304
|
-
ref
|
|
5305
|
-
});
|
|
5306
|
-
return oid;
|
|
5307
|
-
}
|
|
5308
|
-
/**
|
|
5309
|
-
* Get notes (metadata, chat history, recording ID) attached to a commit
|
|
5310
|
-
*
|
|
5311
|
-
* @example
|
|
5312
|
-
* ```ts
|
|
5313
|
-
* const notes = await morphGit.getCommitMetadata({
|
|
5314
|
-
* dir: './my-project',
|
|
5315
|
-
* commitSha: 'abc123...'
|
|
5316
|
-
* });
|
|
5317
|
-
*
|
|
5318
|
-
* if (notes) {
|
|
5319
|
-
* console.log('Metadata:', notes.metadata);
|
|
5320
|
-
* console.log('Chat history:', notes.chatHistory);
|
|
5321
|
-
* console.log('Recording ID:', notes.recordingId);
|
|
5322
|
-
* }
|
|
5323
|
-
* ```
|
|
5324
|
-
*/
|
|
5325
|
-
async getCommitMetadata(options) {
|
|
5326
|
-
try {
|
|
5327
|
-
const note = await import_isomorphic_git.default.readNote({
|
|
5328
|
-
fs: import_fs2.default,
|
|
5329
|
-
dir: options.dir,
|
|
5330
|
-
ref: "refs/notes/morph-metadata",
|
|
5331
|
-
oid: options.commitSha
|
|
5332
|
-
});
|
|
5333
|
-
const notes = JSON.parse(new TextDecoder().decode(note));
|
|
5334
|
-
return notes;
|
|
5335
|
-
} catch (err) {
|
|
5336
|
-
return null;
|
|
5337
|
-
}
|
|
5338
|
-
}
|
|
5339
|
-
};
|
|
5340
|
-
|
|
5341
|
-
// git/index.ts
|
|
5342
|
-
var import_isomorphic_git2 = __toESM(require("isomorphic-git"), 1);
|
|
5343
|
-
var import_node2 = __toESM(require("isomorphic-git/http/node"), 1);
|
|
5344
|
-
|
|
5345
|
-
// tools/reflex/core.ts
|
|
5346
|
-
var BASE_MODEL = "morph-reflex-v1";
|
|
5347
|
-
function resolveClient2(clientOrConfig) {
|
|
5348
|
-
if (clientOrConfig instanceof MorphAPIClient) return clientOrConfig;
|
|
5349
|
-
return new MorphAPIClient({
|
|
5350
|
-
apiKey: clientOrConfig.apiKey,
|
|
5351
|
-
baseURL: clientOrConfig.baseUrl,
|
|
5352
|
-
timeout: clientOrConfig.timeout,
|
|
5353
|
-
retryConfig: clientOrConfig.retryConfig,
|
|
5354
|
-
debug: clientOrConfig.debug
|
|
5355
|
-
});
|
|
5356
|
-
}
|
|
5357
|
-
var ReflexClient = class extends APIResource {
|
|
5358
|
-
/** Train, retrieve, and manage classifier jobs. */
|
|
5359
|
-
jobs;
|
|
5360
|
-
constructor(clientOrConfig = {}) {
|
|
5361
|
-
super(resolveClient2(clientOrConfig));
|
|
5362
|
-
this.jobs = new ReflexJobsResource(this._client);
|
|
5363
|
-
}
|
|
5364
|
-
/** Classify text against one trained model. The model must be `succeeded`. */
|
|
5365
|
-
async predict(input) {
|
|
5366
|
-
const completionId = input.completionId ?? crypto.randomUUID();
|
|
5367
|
-
const raw = await this._client.post("/v1/reflex/predict", {
|
|
5368
|
-
body: { model: input.model, text: input.text },
|
|
5369
|
-
headers: { "X-Completion-Id": completionId }
|
|
5370
|
-
});
|
|
5371
|
-
return {
|
|
5372
|
-
...toClassification(raw),
|
|
5373
|
-
inferenceTimeMs: raw.inference_time_ms,
|
|
5374
|
-
prefillTokens: raw.prefill_tokens ?? 0,
|
|
5375
|
-
completionId
|
|
5376
|
-
};
|
|
5377
|
-
}
|
|
5378
|
-
/**
|
|
5379
|
-
* Classify text against several models in one request. They share a single
|
|
5380
|
-
* prefill, so the input is tokenized once — cheaper and faster than a call per
|
|
5381
|
-
* model. Each model returns its own prediction (or an `error` if it failed).
|
|
5382
|
-
*/
|
|
5383
|
-
async predictMany(input) {
|
|
5384
|
-
const completionId = input.completionId ?? crypto.randomUUID();
|
|
5385
|
-
const raw = await this._client.post("/v1/reflex/predict", {
|
|
5386
|
-
body: { models: input.models, text: input.text },
|
|
5387
|
-
headers: { "X-Completion-Id": completionId }
|
|
5388
|
-
});
|
|
5389
|
-
return {
|
|
5390
|
-
predictions: (raw.predictions ?? []).map(toPrediction),
|
|
5391
|
-
inferenceTimeMs: raw.inference_time_ms,
|
|
5392
|
-
prefillTokens: raw.prefill_tokens ?? 0,
|
|
5393
|
-
completionId
|
|
5394
|
-
};
|
|
5395
|
-
}
|
|
5396
|
-
};
|
|
5397
|
-
var ReflexJobsResource = class extends APIResource {
|
|
5398
|
-
/** Start a training job from labeled data, a description, or unlabeled text. */
|
|
5399
|
-
async create(input) {
|
|
5400
|
-
return toReflexJob(await this._client.post("/v1/fine_tuning/jobs", { body: createBody(input) }));
|
|
5401
|
-
}
|
|
5402
|
-
/** Fetch a job by id. */
|
|
5403
|
-
async retrieve(id) {
|
|
5404
|
-
return toReflexJob(await this._client.get(`/v1/fine_tuning/jobs/${encodeURIComponent(id)}`));
|
|
5405
|
-
}
|
|
5406
|
-
/** List the caller's jobs, newest first. */
|
|
5407
|
-
async list(input = {}) {
|
|
5408
|
-
const raw = await this._client.get("/v1/fine_tuning/jobs", {
|
|
5409
|
-
query: { limit: input.limit, after: input.after }
|
|
5410
|
-
});
|
|
5411
|
-
return { data: (raw.data ?? []).map(toReflexJob), hasMore: Boolean(raw.has_more) };
|
|
5412
|
-
}
|
|
5413
|
-
/** Stop a queued or running job. */
|
|
5414
|
-
async cancel(id) {
|
|
5415
|
-
return toReflexJob(await this._client.post(`/v1/fine_tuning/jobs/${encodeURIComponent(id)}/cancel`));
|
|
5416
|
-
}
|
|
5417
|
-
/** Delete a job and its trained model. */
|
|
5418
|
-
async delete(id) {
|
|
5419
|
-
const raw = await this._client.delete(
|
|
5420
|
-
`/v1/fine_tuning/jobs/${encodeURIComponent(id)}`
|
|
5421
|
-
);
|
|
5422
|
-
return { id: raw.id, deleted: Boolean(raw.deleted) };
|
|
5423
|
-
}
|
|
5424
|
-
/** The training loss curve as events, plus a terminal event. */
|
|
5425
|
-
async events(id) {
|
|
5426
|
-
const raw = await this._client.get(
|
|
5427
|
-
`/v1/fine_tuning/jobs/${encodeURIComponent(id)}/events`
|
|
5428
|
-
);
|
|
5429
|
-
return (raw.data ?? []).map(toReflexEvent);
|
|
5430
|
-
}
|
|
5431
|
-
/**
|
|
5432
|
-
* Poll until the job reaches a terminal status and return it on success.
|
|
5433
|
-
* Throws a `MorphError` if it fails, is cancelled, or exceeds `timeoutMs`.
|
|
5434
|
-
*/
|
|
5435
|
-
async waitForReady(id, opts = {}) {
|
|
5436
|
-
const pollMs = opts.pollMs ?? 3e3;
|
|
5437
|
-
const deadline = Date.now() + (opts.timeoutMs ?? 15 * 6e4);
|
|
5438
|
-
for (; ; ) {
|
|
5439
|
-
const job = await this.retrieve(id);
|
|
5440
|
-
if (job.status === "succeeded") return job;
|
|
5441
|
-
if (job.status === "failed" || job.status === "cancelled") {
|
|
5442
|
-
throw new MorphError(job.error?.message ?? `Reflex job ${job.status}`, `reflex_job_${job.status}`);
|
|
5443
|
-
}
|
|
5444
|
-
if (Date.now() >= deadline) {
|
|
5445
|
-
throw new MorphError(`Reflex job ${id} did not finish in time`, "reflex_timeout");
|
|
5446
|
-
}
|
|
5447
|
-
await sleep2(pollMs);
|
|
5448
|
-
}
|
|
5449
|
-
}
|
|
5450
|
-
};
|
|
5451
|
-
function createBody(input) {
|
|
5452
|
-
const base = { model: BASE_MODEL };
|
|
5453
|
-
if (input.suffix) base.suffix = input.suffix;
|
|
5454
|
-
if ("trainingData" in input) {
|
|
5455
|
-
if (input.labels) base.labels = input.labels;
|
|
5456
|
-
return { ...base, training_data: input.trainingData };
|
|
5457
|
-
}
|
|
5458
|
-
if ("generate" in input) {
|
|
5459
|
-
return {
|
|
5460
|
-
...base,
|
|
5461
|
-
labels: input.labels,
|
|
5462
|
-
generate: {
|
|
5463
|
-
description: input.generate.description,
|
|
5464
|
-
...input.generate.examplesPerLabel != null ? { examples_per_label: input.generate.examplesPerLabel } : {}
|
|
5465
|
-
}
|
|
5466
|
-
};
|
|
5467
|
-
}
|
|
5468
|
-
return {
|
|
5469
|
-
...base,
|
|
5470
|
-
labels: input.labels,
|
|
5471
|
-
label_data: {
|
|
5472
|
-
texts: input.labelData.texts,
|
|
5473
|
-
...input.labelData.description ? { description: input.labelData.description } : {}
|
|
5474
|
-
}
|
|
5475
|
-
};
|
|
5476
|
-
}
|
|
5477
|
-
function toReflexJob(raw) {
|
|
5478
|
-
return {
|
|
5479
|
-
id: raw.id,
|
|
5480
|
-
object: "fine_tuning.job",
|
|
5481
|
-
model: raw.model,
|
|
5482
|
-
createdAt: raw.created_at,
|
|
5483
|
-
finishedAt: raw.finished_at ?? null,
|
|
5484
|
-
fineTunedModel: raw.fine_tuned_model ?? null,
|
|
5485
|
-
status: raw.status,
|
|
5486
|
-
labels: raw.labels ?? [],
|
|
5487
|
-
trainedExamples: raw.trained_examples ?? 0,
|
|
5488
|
-
result: raw.result ? { accuracy: raw.result.accuracy ?? null, f1Score: raw.result.f1_score ?? null } : null,
|
|
5489
|
-
error: raw.error ? { message: raw.error.message } : null,
|
|
5490
|
-
suffix: raw.suffix ?? null
|
|
5491
|
-
};
|
|
5492
|
-
}
|
|
5493
|
-
function toClassification(raw) {
|
|
5494
|
-
const classes = (raw.classes ?? []).map((c) => ({
|
|
5495
|
-
classId: c.class_id,
|
|
5496
|
-
label: c.label,
|
|
5497
|
-
score: c.score,
|
|
5498
|
-
selected: c.selected
|
|
5499
|
-
}));
|
|
5500
|
-
const selectedClasses = classes.filter((c) => c.selected);
|
|
5501
|
-
const top = selectedClasses.reduce(
|
|
5502
|
-
(best, c) => best === null || c.score > best.score ? c : best,
|
|
5503
|
-
null
|
|
5504
|
-
);
|
|
5505
|
-
return {
|
|
5506
|
-
model: raw.model,
|
|
5507
|
-
mode: raw.mode === "multi_label" ? "multi_label" : "single_label",
|
|
5508
|
-
classes,
|
|
5509
|
-
selected: selectedClasses.map((c) => c.label),
|
|
5510
|
-
label: top ? top.label : null,
|
|
5511
|
-
confidence: top ? top.score : null
|
|
5512
|
-
};
|
|
5513
|
-
}
|
|
5514
|
-
function toPrediction(raw) {
|
|
5515
|
-
const error = raw.error ? { message: typeof raw.error === "string" ? raw.error : raw.error.message } : null;
|
|
5516
|
-
return { ...toClassification(raw), error };
|
|
5517
|
-
}
|
|
5518
|
-
function toReflexEvent(raw) {
|
|
5519
|
-
return {
|
|
5520
|
-
id: raw.id,
|
|
5521
|
-
createdAt: raw.created_at,
|
|
5522
|
-
level: raw.level,
|
|
5523
|
-
message: raw.message,
|
|
5524
|
-
type: raw.type,
|
|
5525
|
-
data: { epoch: raw.data?.epoch ?? 0, step: raw.data?.step ?? 0, trainLoss: raw.data?.train_loss ?? 0 }
|
|
5526
|
-
};
|
|
5527
|
-
}
|
|
5528
|
-
function sleep2(ms) {
|
|
5529
|
-
return new Promise((resolve2) => setTimeout(resolve2, ms));
|
|
5530
|
-
}
|
|
5531
|
-
|
|
5532
|
-
// tools/traces/core.ts
|
|
5533
|
-
var TracesClient = class extends APIResource {
|
|
5534
|
-
/** List traced turns, newest first. Filter by `convoId`; page with `limit`/`offset`. */
|
|
5535
|
-
async list(input = {}) {
|
|
5536
|
-
const raw = await this._client.get("/v1/reflex/traces", {
|
|
5537
|
-
query: { convo_id: input.convoId, limit: input.limit, offset: input.offset }
|
|
5538
|
-
});
|
|
5539
|
-
return {
|
|
5540
|
-
data: (raw.data ?? []).map(toTrace),
|
|
5541
|
-
hasMore: Boolean(raw.has_more),
|
|
5542
|
-
offset: raw.offset ?? 0
|
|
5543
|
-
};
|
|
5544
|
-
}
|
|
5545
|
-
};
|
|
5546
|
-
function toReflexResult(raw) {
|
|
5547
|
-
return {
|
|
5548
|
-
model: raw.model,
|
|
5549
|
-
transform: raw.transform,
|
|
5550
|
-
label: raw.label ?? null,
|
|
5551
|
-
score: raw.score,
|
|
5552
|
-
selected: raw.selected ?? [],
|
|
5553
|
-
status: raw.status,
|
|
5554
|
-
transformVersion: raw.transform_version
|
|
5555
|
-
};
|
|
5556
|
-
}
|
|
5557
|
-
function toTrace(raw) {
|
|
5558
|
-
return {
|
|
5559
|
-
convoId: raw.convo_id,
|
|
5560
|
-
eventId: raw.event_id,
|
|
5561
|
-
spanKind: raw.span_kind,
|
|
5562
|
-
model: raw.model,
|
|
5563
|
-
inputText: raw.input_text,
|
|
5564
|
-
outputText: raw.output_text,
|
|
5565
|
-
startTime: raw.start_time,
|
|
5566
|
-
reflexResults: (raw.reflex_results ?? []).map(toReflexResult)
|
|
5567
|
-
};
|
|
5568
|
-
}
|
|
5569
|
-
|
|
5570
4771
|
// modelrouter/core.ts
|
|
5571
4772
|
init_logger();
|
|
5572
4773
|
var DEFAULT_API_URL5 = "https://api.morphllm.com";
|
|
5573
4774
|
var DEFAULT_TIMEOUT6 = 5e3;
|
|
5574
|
-
function
|
|
4775
|
+
function resolveClient2(clientOrConfig) {
|
|
5575
4776
|
if (clientOrConfig instanceof MorphAPIClient) return clientOrConfig;
|
|
5576
4777
|
return new MorphAPIClient({
|
|
5577
4778
|
apiKey: clientOrConfig.apiKey,
|
|
@@ -5585,7 +4786,7 @@ var BaseRouter = class extends APIResource {
|
|
|
5585
4786
|
provider;
|
|
5586
4787
|
timeout;
|
|
5587
4788
|
constructor(provider, clientOrConfig = {}) {
|
|
5588
|
-
super(
|
|
4789
|
+
super(resolveClient2(clientOrConfig));
|
|
5589
4790
|
this.provider = provider;
|
|
5590
4791
|
const cfg = clientOrConfig instanceof MorphAPIClient ? {} : clientOrConfig;
|
|
5591
4792
|
this.timeout = cfg.timeout ?? DEFAULT_TIMEOUT6;
|
|
@@ -5692,7 +4893,7 @@ var RawRouter = class extends BaseRouter {
|
|
|
5692
4893
|
var RouterClassifier = class extends APIResource {
|
|
5693
4894
|
timeout;
|
|
5694
4895
|
constructor(clientOrConfig = {}) {
|
|
5695
|
-
super(
|
|
4896
|
+
super(resolveClient2(clientOrConfig));
|
|
5696
4897
|
const cfg = clientOrConfig instanceof MorphAPIClient ? {} : clientOrConfig;
|
|
5697
4898
|
this.timeout = cfg.timeout ?? DEFAULT_TIMEOUT6;
|
|
5698
4899
|
}
|
|
@@ -7116,8 +6317,6 @@ var MorphClient = class extends MorphAPIClient {
|
|
|
7116
6317
|
browser;
|
|
7117
6318
|
/** GitHub tool for PR context, comments, and check runs */
|
|
7118
6319
|
github;
|
|
7119
|
-
/** Git tool for version control operations */
|
|
7120
|
-
git;
|
|
7121
6320
|
/** Model routers for intelligent model selection */
|
|
7122
6321
|
routers;
|
|
7123
6322
|
/** OpenAI-compatible tool factories */
|
|
@@ -7128,10 +6327,6 @@ var MorphClient = class extends MorphAPIClient {
|
|
|
7128
6327
|
vercel;
|
|
7129
6328
|
/** Compact context with line ranges */
|
|
7130
6329
|
compact;
|
|
7131
|
-
/** Reflex: train and serve small text classifiers */
|
|
7132
|
-
reflex;
|
|
7133
|
-
/** Traces: read back turns shipped with `morphTracing()`, with their Reflex labels */
|
|
7134
|
-
traces;
|
|
7135
6330
|
/**
|
|
7136
6331
|
* Create a new Morph SDK client
|
|
7137
6332
|
*
|
|
@@ -7163,7 +6358,6 @@ var MorphClient = class extends MorphAPIClient {
|
|
|
7163
6358
|
this.warpGrep = new WarpGrepClient(this);
|
|
7164
6359
|
this.browser = new BrowserClient(this);
|
|
7165
6360
|
this.github = new GitHubClient(this, { installationId: config.github?.installationId });
|
|
7166
|
-
this.git = new MorphGit(this);
|
|
7167
6361
|
this.routers = {
|
|
7168
6362
|
openai: new OpenAIRouter(this),
|
|
7169
6363
|
anthropic: new AnthropicRouter(this),
|
|
@@ -7173,8 +6367,6 @@ var MorphClient = class extends MorphAPIClient {
|
|
|
7173
6367
|
};
|
|
7174
6368
|
const compactClient = new CompactClient(this);
|
|
7175
6369
|
this.compact = compactClient.compact.bind(compactClient);
|
|
7176
|
-
this.reflex = new ReflexClient(this);
|
|
7177
|
-
this.traces = new TracesClient(this);
|
|
7178
6370
|
this.openai = new OpenAIToolFactory(config);
|
|
7179
6371
|
this.anthropic = new AnthropicToolFactory(config);
|
|
7180
6372
|
this.vercel = new VercelToolFactory(config);
|
|
@@ -7233,17 +6425,13 @@ var warpGrepInputSchema = import_zod5.z.object({
|
|
|
7233
6425
|
LocalRipgrepProvider,
|
|
7234
6426
|
MorphAPIClient,
|
|
7235
6427
|
MorphClient,
|
|
7236
|
-
MorphGit,
|
|
7237
6428
|
NoInstallationError,
|
|
7238
6429
|
NotFoundError,
|
|
7239
6430
|
OpenAIRouter,
|
|
7240
6431
|
OpenAIToolFactory,
|
|
7241
6432
|
PermissionError,
|
|
7242
6433
|
RawRouter,
|
|
7243
|
-
ReflexClient,
|
|
7244
|
-
ReflexJobsResource,
|
|
7245
6434
|
SDK_VERSION,
|
|
7246
|
-
TracesClient,
|
|
7247
6435
|
VercelToolFactory,
|
|
7248
6436
|
WarpGrepClient,
|
|
7249
6437
|
applyEdit
|