@morphllm/morphsdk 0.2.194 → 0.2.195
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/README.md +25 -1
- package/dist/ai-sdk/index.cjs +48 -0
- package/dist/ai-sdk/index.cjs.map +1 -0
- package/dist/ai-sdk/index.d.ts +29 -0
- package/dist/ai-sdk/index.js +23 -0
- package/dist/ai-sdk/index.js.map +1 -0
- package/dist/{chunk-GWXMT3S2.js → chunk-2YOE44FF.js} +3 -3
- package/dist/{chunk-PUTYJ2ET.js → chunk-35U2MW77.js} +4 -4
- package/dist/{chunk-WXUMJSGG.js → chunk-4YWADZPB.js} +2 -2
- package/dist/{chunk-C225GOV2.js → chunk-6FVLHSQ6.js} +2 -2
- package/dist/{chunk-74LJOCDW.js → chunk-6P4KCGAG.js} +2 -2
- package/dist/{chunk-JIHDKRQW.js → chunk-BSJVZEHN.js} +2 -2
- package/dist/{chunk-S3V22W7M.js → chunk-DUPKDVNP.js} +2 -2
- package/dist/{chunk-GRYLQ2HM.js → chunk-FC3HXR2Q.js} +2 -2
- package/dist/{chunk-33WVJLIT.js → chunk-FNN5776O.js} +2 -2
- package/dist/{chunk-DL4EUMBV.js → chunk-GWFZGS3Z.js} +2 -2
- package/dist/{chunk-U74U4ZFN.js → chunk-H2YBEXR4.js} +2 -2
- package/dist/{chunk-QJSGHJ7D.js → chunk-H353ZTXC.js} +2 -2
- package/dist/{chunk-MFAIFUFK.js → chunk-HHKAZTGY.js} +2 -2
- package/dist/{chunk-PDSLRLYI.js → chunk-HLSOQ7MP.js} +3 -3
- package/dist/{chunk-EM7BMNSS.js → chunk-JGC6S5SB.js} +2 -2
- package/dist/{chunk-XQR2U3LP.js → chunk-K75R3X5V.js} +3 -3
- package/dist/{chunk-PPNJY7P3.js → chunk-KDVOJBKE.js} +3 -3
- package/dist/{chunk-POUBLP4R.js → chunk-L7U5WS4B.js} +4 -4
- package/dist/{chunk-WP44GN6A.js → chunk-LNXRPEMK.js} +2 -2
- package/dist/{chunk-7KAW6EUG.js → chunk-LOXY4VVO.js} +23 -23
- package/dist/{chunk-TT37PYOQ.js → chunk-LXRSNY7W.js} +2 -2
- package/dist/{chunk-A2SC5ZOG.js → chunk-MPTEH2CO.js} +10 -4
- package/dist/chunk-MPTEH2CO.js.map +1 -0
- package/dist/{chunk-VYDKGM7F.js → chunk-MUK6LFVY.js} +9 -9
- package/dist/{chunk-CKSINYRF.js → chunk-O3GWJKDO.js} +2 -2
- package/dist/{chunk-FM2L35XC.js → chunk-ORDOOXPQ.js} +2 -2
- package/dist/{chunk-2THF6MNE.js → chunk-PSFKWZKR.js} +2 -2
- package/dist/{chunk-UDZBOMRA.js → chunk-QGR6OVVY.js} +3 -3
- package/dist/{chunk-SU5FOI4R.js → chunk-QSMGHCAG.js} +2 -2
- package/dist/{chunk-TAQLWNIF.js → chunk-R5XYEQV6.js} +2 -2
- package/dist/{chunk-2JKIWBME.js → chunk-SFLWBHK2.js} +2 -2
- package/dist/{chunk-OPNTDMHH.js → chunk-VLZ6PNAD.js} +4 -4
- package/dist/{chunk-KGHHK42W.js → chunk-XUMLQ7AJ.js} +2 -2
- package/dist/client.cjs +9 -3
- package/dist/client.cjs.map +1 -1
- package/dist/client.js +30 -30
- package/dist/core/client.cjs +9 -3
- package/dist/core/client.cjs.map +1 -1
- package/dist/core/client.js +4 -4
- package/dist/core/error.cjs +9 -3
- package/dist/core/error.cjs.map +1 -1
- package/dist/core/error.js +3 -3
- package/dist/core/index.cjs +9 -3
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.js +4 -4
- package/dist/edge.cjs +9 -3
- package/dist/edge.cjs.map +1 -1
- package/dist/edge.js +7 -7
- package/dist/git/client.cjs +9 -3
- package/dist/git/client.cjs.map +1 -1
- package/dist/git/client.js +5 -5
- package/dist/git/index.cjs +9 -3
- package/dist/git/index.cjs.map +1 -1
- package/dist/git/index.js +5 -5
- package/dist/index.cjs +9 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +34 -34
- package/dist/modelrouter/core.cjs +9 -3
- package/dist/modelrouter/core.cjs.map +1 -1
- package/dist/modelrouter/core.js +5 -5
- package/dist/modelrouter/index.cjs +9 -3
- package/dist/modelrouter/index.cjs.map +1 -1
- package/dist/modelrouter/index.js +5 -5
- package/dist/subagents/anthropic.cjs +9 -3
- package/dist/subagents/anthropic.cjs.map +1 -1
- package/dist/subagents/anthropic.js +10 -10
- package/dist/subagents/vercel.cjs +9 -3
- package/dist/subagents/vercel.cjs.map +1 -1
- package/dist/subagents/vercel.js +10 -10
- package/dist/tools/browser/anthropic.cjs +9 -3
- package/dist/tools/browser/anthropic.cjs.map +1 -1
- package/dist/tools/browser/anthropic.js +7 -7
- package/dist/tools/browser/core.cjs +9 -3
- package/dist/tools/browser/core.cjs.map +1 -1
- package/dist/tools/browser/core.js +6 -6
- package/dist/tools/browser/index.cjs +9 -3
- package/dist/tools/browser/index.cjs.map +1 -1
- package/dist/tools/browser/index.js +9 -9
- package/dist/tools/browser/openai.cjs +9 -3
- package/dist/tools/browser/openai.cjs.map +1 -1
- package/dist/tools/browser/openai.js +7 -7
- package/dist/tools/browser/profiles/core.cjs +9 -3
- 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 +9 -3
- 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 +9 -3
- package/dist/tools/browser/vercel.cjs.map +1 -1
- package/dist/tools/browser/vercel.js +7 -7
- package/dist/tools/codebase_search/anthropic.cjs +9 -3
- 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 +9 -3
- 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 +9 -3
- 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 +9 -3
- 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 +9 -3
- 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 +9 -3
- package/dist/tools/compact/core.cjs.map +1 -1
- package/dist/tools/compact/core.js +5 -5
- package/dist/tools/compact/index.cjs +9 -3
- package/dist/tools/compact/index.cjs.map +1 -1
- package/dist/tools/compact/index.js +6 -6
- package/dist/tools/fastapply/anthropic.cjs +9 -3
- package/dist/tools/fastapply/anthropic.cjs.map +1 -1
- package/dist/tools/fastapply/anthropic.js +7 -7
- package/dist/tools/fastapply/apply.cjs +9 -3
- package/dist/tools/fastapply/apply.cjs.map +1 -1
- package/dist/tools/fastapply/apply.js +2 -2
- package/dist/tools/fastapply/core.cjs +9 -3
- package/dist/tools/fastapply/core.cjs.map +1 -1
- package/dist/tools/fastapply/core.js +6 -6
- package/dist/tools/fastapply/index.cjs +9 -3
- package/dist/tools/fastapply/index.cjs.map +1 -1
- package/dist/tools/fastapply/index.js +9 -9
- package/dist/tools/fastapply/openai.cjs +9 -3
- package/dist/tools/fastapply/openai.cjs.map +1 -1
- package/dist/tools/fastapply/openai.js +7 -7
- package/dist/tools/fastapply/vercel.cjs +9 -3
- package/dist/tools/fastapply/vercel.cjs.map +1 -1
- package/dist/tools/fastapply/vercel.js +7 -7
- package/dist/tools/index.cjs +9 -3
- package/dist/tools/index.cjs.map +1 -1
- package/dist/tools/index.js +9 -9
- package/dist/tools/reflex/core.cjs +9 -3
- package/dist/tools/reflex/core.cjs.map +1 -1
- package/dist/tools/reflex/core.js +5 -5
- package/dist/tools/reflex/index.cjs +9 -3
- package/dist/tools/reflex/index.cjs.map +1 -1
- package/dist/tools/reflex/index.js +5 -5
- package/dist/tools/utils/resilience.cjs +9 -3
- 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 +9 -3
- 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 +9 -3
- package/dist/tools/warp_grep/anthropic.cjs.map +1 -1
- package/dist/tools/warp_grep/anthropic.js +10 -10
- package/dist/tools/warp_grep/client.cjs +9 -3
- package/dist/tools/warp_grep/client.cjs.map +1 -1
- package/dist/tools/warp_grep/client.js +9 -9
- package/dist/tools/warp_grep/gemini.cjs +9 -3
- package/dist/tools/warp_grep/gemini.cjs.map +1 -1
- package/dist/tools/warp_grep/gemini.js +9 -9
- package/dist/tools/warp_grep/harness.js +2 -2
- package/dist/tools/warp_grep/index.cjs +9 -3
- package/dist/tools/warp_grep/index.cjs.map +1 -1
- package/dist/tools/warp_grep/index.js +14 -14
- package/dist/tools/warp_grep/openai.cjs +9 -3
- package/dist/tools/warp_grep/openai.cjs.map +1 -1
- package/dist/tools/warp_grep/openai.js +10 -10
- package/dist/tools/warp_grep/providers/local.js +2 -2
- package/dist/tools/warp_grep/vercel.cjs +9 -3
- package/dist/tools/warp_grep/vercel.cjs.map +1 -1
- package/dist/tools/warp_grep/vercel.js +10 -10
- package/dist/version.cjs +9 -3
- package/dist/version.cjs.map +1 -1
- package/dist/version.js +1 -1
- package/package.json +9 -3
- package/dist/chunk-A2SC5ZOG.js.map +0 -1
- /package/dist/{chunk-GWXMT3S2.js.map → chunk-2YOE44FF.js.map} +0 -0
- /package/dist/{chunk-PUTYJ2ET.js.map → chunk-35U2MW77.js.map} +0 -0
- /package/dist/{chunk-WXUMJSGG.js.map → chunk-4YWADZPB.js.map} +0 -0
- /package/dist/{chunk-C225GOV2.js.map → chunk-6FVLHSQ6.js.map} +0 -0
- /package/dist/{chunk-74LJOCDW.js.map → chunk-6P4KCGAG.js.map} +0 -0
- /package/dist/{chunk-JIHDKRQW.js.map → chunk-BSJVZEHN.js.map} +0 -0
- /package/dist/{chunk-S3V22W7M.js.map → chunk-DUPKDVNP.js.map} +0 -0
- /package/dist/{chunk-GRYLQ2HM.js.map → chunk-FC3HXR2Q.js.map} +0 -0
- /package/dist/{chunk-33WVJLIT.js.map → chunk-FNN5776O.js.map} +0 -0
- /package/dist/{chunk-DL4EUMBV.js.map → chunk-GWFZGS3Z.js.map} +0 -0
- /package/dist/{chunk-U74U4ZFN.js.map → chunk-H2YBEXR4.js.map} +0 -0
- /package/dist/{chunk-QJSGHJ7D.js.map → chunk-H353ZTXC.js.map} +0 -0
- /package/dist/{chunk-MFAIFUFK.js.map → chunk-HHKAZTGY.js.map} +0 -0
- /package/dist/{chunk-PDSLRLYI.js.map → chunk-HLSOQ7MP.js.map} +0 -0
- /package/dist/{chunk-EM7BMNSS.js.map → chunk-JGC6S5SB.js.map} +0 -0
- /package/dist/{chunk-XQR2U3LP.js.map → chunk-K75R3X5V.js.map} +0 -0
- /package/dist/{chunk-PPNJY7P3.js.map → chunk-KDVOJBKE.js.map} +0 -0
- /package/dist/{chunk-POUBLP4R.js.map → chunk-L7U5WS4B.js.map} +0 -0
- /package/dist/{chunk-WP44GN6A.js.map → chunk-LNXRPEMK.js.map} +0 -0
- /package/dist/{chunk-7KAW6EUG.js.map → chunk-LOXY4VVO.js.map} +0 -0
- /package/dist/{chunk-TT37PYOQ.js.map → chunk-LXRSNY7W.js.map} +0 -0
- /package/dist/{chunk-VYDKGM7F.js.map → chunk-MUK6LFVY.js.map} +0 -0
- /package/dist/{chunk-CKSINYRF.js.map → chunk-O3GWJKDO.js.map} +0 -0
- /package/dist/{chunk-FM2L35XC.js.map → chunk-ORDOOXPQ.js.map} +0 -0
- /package/dist/{chunk-2THF6MNE.js.map → chunk-PSFKWZKR.js.map} +0 -0
- /package/dist/{chunk-UDZBOMRA.js.map → chunk-QGR6OVVY.js.map} +0 -0
- /package/dist/{chunk-SU5FOI4R.js.map → chunk-QSMGHCAG.js.map} +0 -0
- /package/dist/{chunk-TAQLWNIF.js.map → chunk-R5XYEQV6.js.map} +0 -0
- /package/dist/{chunk-2JKIWBME.js.map → chunk-SFLWBHK2.js.map} +0 -0
- /package/dist/{chunk-OPNTDMHH.js.map → chunk-VLZ6PNAD.js.map} +0 -0
- /package/dist/{chunk-KGHHK42W.js.map → chunk-XUMLQ7AJ.js.map} +0 -0
package/README.md
CHANGED
|
@@ -27,6 +27,31 @@ export MORPH_API_KEY="sk-your-key-here"
|
|
|
27
27
|
|
|
28
28
|
## Quick Start
|
|
29
29
|
|
|
30
|
+
### Vercel AI SDK provider
|
|
31
|
+
|
|
32
|
+
The provider works with AI SDK 6 and newer. It reads `MORPH_API_KEY` by default.
|
|
33
|
+
|
|
34
|
+
```typescript
|
|
35
|
+
import { morph } from '@morphllm/morphsdk/ai-sdk';
|
|
36
|
+
import { generateText } from 'ai';
|
|
37
|
+
|
|
38
|
+
const { text } = await generateText({
|
|
39
|
+
model: morph('morph-glm53-744b'),
|
|
40
|
+
prompt: 'Write a TypeScript rate limiter.',
|
|
41
|
+
});
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Create a provider instance to use custom headers or a [dedicated inference endpoint](https://www.morphllm.com/dedicated-inference):
|
|
45
|
+
|
|
46
|
+
```typescript
|
|
47
|
+
import { createMorph } from '@morphllm/morphsdk/ai-sdk';
|
|
48
|
+
|
|
49
|
+
const morph = createMorph({
|
|
50
|
+
apiKey: process.env.MORPH_API_KEY,
|
|
51
|
+
baseURL: 'https://your-endpoint.morphllm.com/v1',
|
|
52
|
+
});
|
|
53
|
+
```
|
|
54
|
+
|
|
30
55
|
### WarpGrep - Intelligent Code Search
|
|
31
56
|
|
|
32
57
|
WarpGrep is a search subagent that explores your codebase using parallel grep and file read operations. It understands natural language queries and returns relevant code with line numbers.
|
|
@@ -306,4 +331,3 @@ Full docs: [docs.morphllm.com](https://docs.morphllm.com)
|
|
|
306
331
|
- [GitHub](https://docs.morphllm.com/sdk/components/github) - GitHub integration for PR context and automation
|
|
307
332
|
- [Browser](https://docs.morphllm.com/sdk/components/browser) - AI-powered browser automation
|
|
308
333
|
- [Repo Storage](https://docs.morphllm.com/sdk/components/git) - Git operations and agent metadata
|
|
309
|
-
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// ai-sdk/index.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
MORPH_API_BASE_URL: () => MORPH_API_BASE_URL,
|
|
24
|
+
createMorph: () => createMorph,
|
|
25
|
+
morph: () => morph
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(index_exports);
|
|
28
|
+
var import_openai_compatible = require("@ai-sdk/openai-compatible");
|
|
29
|
+
var MORPH_API_BASE_URL = "https://api.morphllm.com/v1";
|
|
30
|
+
function createMorph(options = {}) {
|
|
31
|
+
return (0, import_openai_compatible.createOpenAICompatible)({
|
|
32
|
+
name: "morph",
|
|
33
|
+
baseURL: options.baseURL ?? MORPH_API_BASE_URL,
|
|
34
|
+
apiKey: options.apiKey ?? process.env.MORPH_API_KEY,
|
|
35
|
+
headers: options.headers,
|
|
36
|
+
fetch: options.fetch,
|
|
37
|
+
includeUsage: true,
|
|
38
|
+
supportsStructuredOutputs: true
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
var morph = createMorph();
|
|
42
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
43
|
+
0 && (module.exports = {
|
|
44
|
+
MORPH_API_BASE_URL,
|
|
45
|
+
createMorph,
|
|
46
|
+
morph
|
|
47
|
+
});
|
|
48
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../ai-sdk/index.ts"],"sourcesContent":["import {\n createOpenAICompatible,\n type OpenAICompatibleProvider,\n type OpenAICompatibleProviderSettings,\n} from '@ai-sdk/openai-compatible'\n\nexport const MORPH_API_BASE_URL = 'https://api.morphllm.com/v1'\n\n/** Public model identifiers served by Morph's shared API. */\nexport type MorphChatModelId =\n | 'morph-kimik3'\n | 'morph-glm53-744b'\n | 'morph-glm53flash'\n | 'morph-dsv4flash'\n | (string & {})\n\nexport interface MorphProviderSettings {\n /**\n * Morph API key. Defaults to the `MORPH_API_KEY` environment variable.\n */\n apiKey?: string\n\n /**\n * Base URL for API calls. Set this to the URL of a dedicated Morph endpoint\n * when using reserved capacity.\n */\n baseURL?: string\n\n /** Custom headers to include with every request. */\n headers?: Record<string, string>\n\n /** Custom fetch implementation, useful for middleware and tests. */\n fetch?: OpenAICompatibleProviderSettings['fetch']\n}\n\nexport type MorphProvider = OpenAICompatibleProvider<\n MorphChatModelId,\n string,\n string,\n string\n>\n\n/**\n * Creates a Morph provider for the Vercel AI SDK.\n */\nexport function createMorph(options: MorphProviderSettings = {}): MorphProvider {\n return createOpenAICompatible<\n MorphChatModelId,\n string,\n string,\n string\n >({\n name: 'morph',\n baseURL: options.baseURL ?? MORPH_API_BASE_URL,\n apiKey: options.apiKey ?? process.env.MORPH_API_KEY,\n headers: options.headers,\n fetch: options.fetch,\n includeUsage: true,\n supportsStructuredOutputs: true,\n })\n}\n\n/** Default Morph provider using `MORPH_API_KEY`. */\nexport const morph = createMorph()\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,+BAIO;AAEA,IAAM,qBAAqB;AAuC3B,SAAS,YAAY,UAAiC,CAAC,GAAkB;AAC9E,aAAO,iDAKL;AAAA,IACA,MAAM;AAAA,IACN,SAAS,QAAQ,WAAW;AAAA,IAC5B,QAAQ,QAAQ,UAAU,QAAQ,IAAI;AAAA,IACtC,SAAS,QAAQ;AAAA,IACjB,OAAO,QAAQ;AAAA,IACf,cAAc;AAAA,IACd,2BAA2B;AAAA,EAC7B,CAAC;AACH;AAGO,IAAM,QAAQ,YAAY;","names":[]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { OpenAICompatibleProviderSettings, OpenAICompatibleProvider } from '@ai-sdk/openai-compatible';
|
|
2
|
+
|
|
3
|
+
declare const MORPH_API_BASE_URL = "https://api.morphllm.com/v1";
|
|
4
|
+
/** Public model identifiers served by Morph's shared API. */
|
|
5
|
+
type MorphChatModelId = 'morph-kimik3' | 'morph-glm53-744b' | 'morph-glm53flash' | 'morph-dsv4flash' | (string & {});
|
|
6
|
+
interface MorphProviderSettings {
|
|
7
|
+
/**
|
|
8
|
+
* Morph API key. Defaults to the `MORPH_API_KEY` environment variable.
|
|
9
|
+
*/
|
|
10
|
+
apiKey?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Base URL for API calls. Set this to the URL of a dedicated Morph endpoint
|
|
13
|
+
* when using reserved capacity.
|
|
14
|
+
*/
|
|
15
|
+
baseURL?: string;
|
|
16
|
+
/** Custom headers to include with every request. */
|
|
17
|
+
headers?: Record<string, string>;
|
|
18
|
+
/** Custom fetch implementation, useful for middleware and tests. */
|
|
19
|
+
fetch?: OpenAICompatibleProviderSettings['fetch'];
|
|
20
|
+
}
|
|
21
|
+
type MorphProvider = OpenAICompatibleProvider<MorphChatModelId, string, string, string>;
|
|
22
|
+
/**
|
|
23
|
+
* Creates a Morph provider for the Vercel AI SDK.
|
|
24
|
+
*/
|
|
25
|
+
declare function createMorph(options?: MorphProviderSettings): MorphProvider;
|
|
26
|
+
/** Default Morph provider using `MORPH_API_KEY`. */
|
|
27
|
+
declare const morph: MorphProvider;
|
|
28
|
+
|
|
29
|
+
export { MORPH_API_BASE_URL, type MorphChatModelId, type MorphProvider, type MorphProviderSettings, createMorph, morph };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// ai-sdk/index.ts
|
|
2
|
+
import {
|
|
3
|
+
createOpenAICompatible
|
|
4
|
+
} from "@ai-sdk/openai-compatible";
|
|
5
|
+
var MORPH_API_BASE_URL = "https://api.morphllm.com/v1";
|
|
6
|
+
function createMorph(options = {}) {
|
|
7
|
+
return createOpenAICompatible({
|
|
8
|
+
name: "morph",
|
|
9
|
+
baseURL: options.baseURL ?? MORPH_API_BASE_URL,
|
|
10
|
+
apiKey: options.apiKey ?? process.env.MORPH_API_KEY,
|
|
11
|
+
headers: options.headers,
|
|
12
|
+
fetch: options.fetch,
|
|
13
|
+
includeUsage: true,
|
|
14
|
+
supportsStructuredOutputs: true
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
var morph = createMorph();
|
|
18
|
+
export {
|
|
19
|
+
MORPH_API_BASE_URL,
|
|
20
|
+
createMorph,
|
|
21
|
+
morph
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../ai-sdk/index.ts"],"sourcesContent":["import {\n createOpenAICompatible,\n type OpenAICompatibleProvider,\n type OpenAICompatibleProviderSettings,\n} from '@ai-sdk/openai-compatible'\n\nexport const MORPH_API_BASE_URL = 'https://api.morphllm.com/v1'\n\n/** Public model identifiers served by Morph's shared API. */\nexport type MorphChatModelId =\n | 'morph-kimik3'\n | 'morph-glm53-744b'\n | 'morph-glm53flash'\n | 'morph-dsv4flash'\n | (string & {})\n\nexport interface MorphProviderSettings {\n /**\n * Morph API key. Defaults to the `MORPH_API_KEY` environment variable.\n */\n apiKey?: string\n\n /**\n * Base URL for API calls. Set this to the URL of a dedicated Morph endpoint\n * when using reserved capacity.\n */\n baseURL?: string\n\n /** Custom headers to include with every request. */\n headers?: Record<string, string>\n\n /** Custom fetch implementation, useful for middleware and tests. */\n fetch?: OpenAICompatibleProviderSettings['fetch']\n}\n\nexport type MorphProvider = OpenAICompatibleProvider<\n MorphChatModelId,\n string,\n string,\n string\n>\n\n/**\n * Creates a Morph provider for the Vercel AI SDK.\n */\nexport function createMorph(options: MorphProviderSettings = {}): MorphProvider {\n return createOpenAICompatible<\n MorphChatModelId,\n string,\n string,\n string\n >({\n name: 'morph',\n baseURL: options.baseURL ?? MORPH_API_BASE_URL,\n apiKey: options.apiKey ?? process.env.MORPH_API_KEY,\n headers: options.headers,\n fetch: options.fetch,\n includeUsage: true,\n supportsStructuredOutputs: true,\n })\n}\n\n/** Default Morph provider using `MORPH_API_KEY`. */\nexport const morph = createMorph()\n"],"mappings":";AAAA;AAAA,EACE;AAAA,OAGK;AAEA,IAAM,qBAAqB;AAuC3B,SAAS,YAAY,UAAiC,CAAC,GAAkB;AAC9E,SAAO,uBAKL;AAAA,IACA,MAAM;AAAA,IACN,SAAS,QAAQ,WAAW;AAAA,IAC5B,QAAQ,QAAQ,UAAU,QAAQ,IAAI;AAAA,IACtC,SAAS,QAAQ;AAAA,IACjB,OAAO,QAAQ;AAAA,IACf,cAAc;AAAA,IACd,2BAA2B;AAAA,EAC7B,CAAC;AACH;AAGO,IAAM,QAAQ,YAAY;","names":[]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FastApplyAnchorIntegrityError,
|
|
3
3
|
FastApplyContextLengthError
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XUMLQ7AJ.js";
|
|
5
5
|
import {
|
|
6
6
|
MorphAPIClient
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-L7U5WS4B.js";
|
|
8
8
|
import {
|
|
9
9
|
logger
|
|
10
10
|
} from "./chunk-F3NCFNUX.js";
|
|
@@ -148,4 +148,4 @@ export {
|
|
|
148
148
|
FastApplyClient,
|
|
149
149
|
executeEditFile
|
|
150
150
|
};
|
|
151
|
-
//# sourceMappingURL=chunk-
|
|
151
|
+
//# sourceMappingURL=chunk-2YOE44FF.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ProfilesClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6P4KCGAG.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-L7U5WS4B.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-BSJVZEHN.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-35U2MW77.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
executeCodebaseSearch
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QGR6OVVY.js";
|
|
4
4
|
import {
|
|
5
5
|
CODEBASE_SEARCH_DESCRIPTION
|
|
6
6
|
} from "./chunk-YQMPVJ2L.js";
|
|
@@ -55,4 +55,4 @@ export {
|
|
|
55
55
|
getSystemPrompt,
|
|
56
56
|
vercel_default
|
|
57
57
|
};
|
|
58
|
-
//# sourceMappingURL=chunk-
|
|
58
|
+
//# sourceMappingURL=chunk-4YWADZPB.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
executeCodebaseSearch
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QGR6OVVY.js";
|
|
4
4
|
import {
|
|
5
5
|
CODEBASE_SEARCH_DESCRIPTION,
|
|
6
6
|
CODEBASE_SEARCH_SYSTEM_PROMPT
|
|
@@ -80,4 +80,4 @@ function formatResult(result) {
|
|
|
80
80
|
export {
|
|
81
81
|
createCodebaseSearchTool
|
|
82
82
|
};
|
|
83
|
-
//# sourceMappingURL=chunk-
|
|
83
|
+
//# sourceMappingURL=chunk-6FVLHSQ6.js.map
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk-2VERUKO2.js";
|
|
13
13
|
import {
|
|
14
14
|
fetchWithRetry
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-BSJVZEHN.js";
|
|
16
16
|
|
|
17
17
|
// tools/browser/profiles/core.ts
|
|
18
18
|
var DEFAULT_API_URL = process.env.MORPH_ENVIRONMENT === "DEV" ? "http://localhost:8000" : "https://browser.morphllm.com";
|
|
@@ -386,4 +386,4 @@ export {
|
|
|
386
386
|
listRepos,
|
|
387
387
|
getProfileState
|
|
388
388
|
};
|
|
389
|
-
//# sourceMappingURL=chunk-
|
|
389
|
+
//# sourceMappingURL=chunk-6P4KCGAG.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SDK_VERSION
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MPTEH2CO.js";
|
|
4
4
|
|
|
5
5
|
// tools/utils/resilience.ts
|
|
6
6
|
var DEFAULT_RETRY_CONFIG = {
|
|
@@ -91,4 +91,4 @@ export {
|
|
|
91
91
|
withTimeout,
|
|
92
92
|
MorphError
|
|
93
93
|
};
|
|
94
|
-
//# sourceMappingURL=chunk-
|
|
94
|
+
//# sourceMappingURL=chunk-BSJVZEHN.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-35U2MW77.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-DUPKDVNP.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CompactClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-K75R3X5V.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-FC3HXR2Q.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MorphError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BSJVZEHN.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-FNN5776O.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-63WE2C5R.js";
|
|
5
5
|
import {
|
|
6
6
|
executeEditFile
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2YOE44FF.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
10
|
} from "./chunk-PZ5AY32C.js";
|
|
@@ -86,4 +86,4 @@ export {
|
|
|
86
86
|
vercel_default,
|
|
87
87
|
vercel_exports
|
|
88
88
|
};
|
|
89
|
-
//# sourceMappingURL=chunk-
|
|
89
|
+
//# sourceMappingURL=chunk-GWFZGS3Z.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
executeCodebaseSearch
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QGR6OVVY.js";
|
|
4
4
|
import {
|
|
5
5
|
CODEBASE_SEARCH_DESCRIPTION,
|
|
6
6
|
CODEBASE_SEARCH_SYSTEM_PROMPT
|
|
@@ -125,4 +125,4 @@ export {
|
|
|
125
125
|
getSystemPrompt,
|
|
126
126
|
openai_default
|
|
127
127
|
};
|
|
128
|
-
//# sourceMappingURL=chunk-
|
|
128
|
+
//# sourceMappingURL=chunk-H2YBEXR4.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-63WE2C5R.js";
|
|
5
5
|
import {
|
|
6
6
|
executeEditFile
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2YOE44FF.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
10
|
} from "./chunk-PZ5AY32C.js";
|
|
@@ -79,4 +79,4 @@ export {
|
|
|
79
79
|
getSystemPrompt,
|
|
80
80
|
anthropic_exports
|
|
81
81
|
};
|
|
82
|
-
//# sourceMappingURL=chunk-
|
|
82
|
+
//# sourceMappingURL=chunk-H353ZTXC.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-35U2MW77.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-HHKAZTGY.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MorphAPIClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-L7U5WS4B.js";
|
|
4
4
|
import {
|
|
5
5
|
MorphError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BSJVZEHN.js";
|
|
7
7
|
import {
|
|
8
8
|
APIResource
|
|
9
9
|
} from "./chunk-LKFZBBTD.js";
|
|
@@ -199,4 +199,4 @@ export {
|
|
|
199
199
|
ReflexClient,
|
|
200
200
|
ReflexJobsResource
|
|
201
201
|
};
|
|
202
|
-
//# sourceMappingURL=chunk-
|
|
202
|
+
//# sourceMappingURL=chunk-HLSOQ7MP.js.map
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
executeToolCall,
|
|
15
15
|
formatGitHubReadFileResult,
|
|
16
16
|
formatResult
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-MUK6LFVY.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-JGC6S5SB.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MorphAPIClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-L7U5WS4B.js";
|
|
4
4
|
import {
|
|
5
5
|
MorphError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BSJVZEHN.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-K75R3X5V.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MorphAPIClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-L7U5WS4B.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-BSJVZEHN.js";
|
|
10
10
|
import {
|
|
11
11
|
APIResource
|
|
12
12
|
} from "./chunk-LKFZBBTD.js";
|
|
@@ -174,4 +174,4 @@ export {
|
|
|
174
174
|
RawRouter,
|
|
175
175
|
RouterClassifier
|
|
176
176
|
};
|
|
177
|
-
//# sourceMappingURL=chunk-
|
|
177
|
+
//# sourceMappingURL=chunk-KDVOJBKE.js.map
|
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
} from "./chunk-F3NCFNUX.js";
|
|
4
4
|
import {
|
|
5
5
|
toMorphError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FNN5776O.js";
|
|
7
7
|
import {
|
|
8
8
|
MorphError,
|
|
9
9
|
fetchWithRetry,
|
|
10
10
|
withTimeout
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-BSJVZEHN.js";
|
|
12
12
|
import {
|
|
13
13
|
SDK_VERSION
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-MPTEH2CO.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-L7U5WS4B.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-63WE2C5R.js";
|
|
5
5
|
import {
|
|
6
6
|
executeEditFile
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2YOE44FF.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
10
|
} from "./chunk-PZ5AY32C.js";
|
|
@@ -91,4 +91,4 @@ export {
|
|
|
91
91
|
openai_default,
|
|
92
92
|
openai_exports
|
|
93
93
|
};
|
|
94
|
-
//# sourceMappingURL=chunk-
|
|
94
|
+
//# sourceMappingURL=chunk-LNXRPEMK.js.map
|
|
@@ -1,73 +1,73 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createGitHubSearchTool,
|
|
3
3
|
createWarpGrepTool
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SFLWBHK2.js";
|
|
5
5
|
import {
|
|
6
6
|
createGitHubSearchTool as createGitHubSearchTool3,
|
|
7
7
|
createWarpGrepTool as createWarpGrepTool3
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-LXRSNY7W.js";
|
|
9
9
|
import {
|
|
10
10
|
TracesClient
|
|
11
11
|
} from "./chunk-TCCZBGG5.js";
|
|
12
12
|
import {
|
|
13
13
|
createGitHubSearchTool as createGitHubSearchTool2,
|
|
14
14
|
createWarpGrepTool as createWarpGrepTool2
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-JGC6S5SB.js";
|
|
16
16
|
import {
|
|
17
17
|
ReflexClient
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-HLSOQ7MP.js";
|
|
19
|
+
import {
|
|
20
|
+
BrowserClient
|
|
21
|
+
} from "./chunk-35U2MW77.js";
|
|
19
22
|
import {
|
|
20
23
|
createCodebaseSearchTool as createCodebaseSearchTool3
|
|
21
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-4YWADZPB.js";
|
|
22
25
|
import {
|
|
23
26
|
createCodebaseSearchTool as createCodebaseSearchTool2
|
|
24
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-6FVLHSQ6.js";
|
|
25
28
|
import {
|
|
26
29
|
createCodebaseSearchTool
|
|
27
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-H2YBEXR4.js";
|
|
28
31
|
import {
|
|
29
32
|
CodebaseSearchClient
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import {
|
|
32
|
-
BrowserClient
|
|
33
|
-
} from "./chunk-PUTYJ2ET.js";
|
|
33
|
+
} from "./chunk-QGR6OVVY.js";
|
|
34
34
|
import {
|
|
35
35
|
createExploreSubagent as createExploreSubagent2
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-O3GWJKDO.js";
|
|
37
37
|
import {
|
|
38
38
|
createEditFileTool
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-LNXRPEMK.js";
|
|
40
40
|
import {
|
|
41
41
|
createEditFileTool as createEditFileTool3
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-GWFZGS3Z.js";
|
|
43
43
|
import {
|
|
44
44
|
createEditFileTool as createEditFileTool2
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-H353ZTXC.js";
|
|
46
46
|
import {
|
|
47
47
|
FastApplyClient
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-2YOE44FF.js";
|
|
49
49
|
import {
|
|
50
50
|
MorphGit
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-QSMGHCAG.js";
|
|
52
52
|
import {
|
|
53
53
|
createExploreSubagent
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-PSFKWZKR.js";
|
|
55
55
|
import {
|
|
56
56
|
WarpGrepClient
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-MUK6LFVY.js";
|
|
58
58
|
import {
|
|
59
59
|
AnthropicRouter,
|
|
60
60
|
GeminiRouter,
|
|
61
61
|
OpenAIRouter,
|
|
62
62
|
RawRouter,
|
|
63
63
|
RouterClassifier
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-KDVOJBKE.js";
|
|
65
65
|
import {
|
|
66
66
|
CompactClient
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-K75R3X5V.js";
|
|
68
68
|
import {
|
|
69
69
|
MorphAPIClient
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-L7U5WS4B.js";
|
|
71
71
|
import {
|
|
72
72
|
logger
|
|
73
73
|
} from "./chunk-F3NCFNUX.js";
|
|
@@ -695,4 +695,4 @@ export {
|
|
|
695
695
|
VercelToolFactory,
|
|
696
696
|
MorphClient
|
|
697
697
|
};
|
|
698
|
-
//# sourceMappingURL=chunk-
|
|
698
|
+
//# sourceMappingURL=chunk-LOXY4VVO.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
executeGitHubReadFile,
|
|
9
9
|
executeToolCall,
|
|
10
10
|
executeToolCallStreaming
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MUK6LFVY.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-LXRSNY7W.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// package.json
|
|
2
2
|
var package_default = {
|
|
3
3
|
name: "@morphllm/morphsdk",
|
|
4
|
-
version: "0.2.
|
|
4
|
+
version: "0.2.195",
|
|
5
5
|
description: "TypeScript SDK and CLI for Morph Fast Apply integration",
|
|
6
6
|
type: "module",
|
|
7
7
|
main: "./dist/index.cjs",
|
|
@@ -172,6 +172,11 @@ var package_default = {
|
|
|
172
172
|
types: "./dist/subagents/anthropic.d.ts",
|
|
173
173
|
import: "./dist/subagents/anthropic.js",
|
|
174
174
|
require: "./dist/subagents/anthropic.cjs"
|
|
175
|
+
},
|
|
176
|
+
"./ai-sdk": {
|
|
177
|
+
types: "./dist/ai-sdk/index.d.ts",
|
|
178
|
+
import: "./dist/ai-sdk/index.js",
|
|
179
|
+
require: "./dist/ai-sdk/index.cjs"
|
|
175
180
|
}
|
|
176
181
|
},
|
|
177
182
|
files: [
|
|
@@ -183,9 +188,9 @@ var package_default = {
|
|
|
183
188
|
"!dist/**/*.test.*"
|
|
184
189
|
],
|
|
185
190
|
scripts: {
|
|
186
|
-
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 git/index.ts git/client.ts git/config.ts git/types.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/reflex/index.ts tools/reflex/core.ts tools/reflex/types.ts tools/traces/index.ts tools/traces/core.ts tools/traces/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",
|
|
191
|
+
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 git/index.ts git/client.ts git/config.ts git/types.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/reflex/index.ts tools/reflex/core.ts tools/reflex/types.ts tools/traces/index.ts tools/traces/core.ts tools/traces/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",
|
|
187
192
|
prepare: "npm run build",
|
|
188
|
-
typecheck: "tsc --noEmit",
|
|
193
|
+
typecheck: "tsc --noEmit && tsc --noEmit -p ai-sdk/tsconfig.json",
|
|
189
194
|
lint: "eslint .",
|
|
190
195
|
test: "vitest run",
|
|
191
196
|
"test:watch": "vitest watch",
|
|
@@ -242,6 +247,7 @@ var package_default = {
|
|
|
242
247
|
vitest: "^2.1.6"
|
|
243
248
|
},
|
|
244
249
|
peerDependencies: {
|
|
250
|
+
"@ai-sdk/openai-compatible": ">=2.0.74 <4",
|
|
245
251
|
"@anthropic-ai/sdk": ">=0.25.0",
|
|
246
252
|
"@google/generative-ai": ">=0.21.0",
|
|
247
253
|
ai: ">=5.0.0",
|
|
@@ -272,4 +278,4 @@ var SDK_VERSION = package_default.version;
|
|
|
272
278
|
export {
|
|
273
279
|
SDK_VERSION
|
|
274
280
|
};
|
|
275
|
-
//# sourceMappingURL=chunk-
|
|
281
|
+
//# sourceMappingURL=chunk-MPTEH2CO.js.map
|