@morphllm/morphsdk 0.2.66 → 0.2.67
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/anthropic-B6my2oBx.d.ts +56 -0
- package/dist/chunk-7CJPKJEE.js +57 -0
- package/dist/chunk-7CJPKJEE.js.map +1 -0
- package/dist/chunk-BGSHC2UK.js +96 -0
- package/dist/chunk-BGSHC2UK.js.map +1 -0
- package/dist/{chunk-SU5CKH4F.js → chunk-IVT6YMFA.js} +2 -2
- package/dist/{chunk-IZISG7DL.js → chunk-MFZP347Z.js} +10 -7
- package/dist/chunk-MFZP347Z.js.map +1 -0
- package/dist/{chunk-ASO5YWQ4.js → chunk-SQHZPUCS.js} +5 -2
- package/dist/{chunk-ASO5YWQ4.js.map → chunk-SQHZPUCS.js.map} +1 -1
- package/dist/chunk-X4WPMVCM.js +80 -0
- package/dist/chunk-X4WPMVCM.js.map +1 -0
- package/dist/client.cjs +9 -6
- package/dist/client.cjs.map +1 -1
- package/dist/client.js +2 -2
- package/dist/{gemini-DPFWWG3k.d.ts → gemini-BIFBiIjY.d.ts} +5 -3
- package/dist/index.cjs +9 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/openai-BQMeDFef.d.ts +81 -0
- package/dist/tools/browser/anthropic.cjs.map +1 -1
- package/dist/tools/browser/anthropic.d.ts +3 -50
- package/dist/tools/browser/anthropic.js +5 -64
- package/dist/tools/browser/anthropic.js.map +1 -1
- package/dist/tools/browser/core.cjs +9 -6
- package/dist/tools/browser/core.cjs.map +1 -1
- package/dist/tools/browser/core.d.ts +6 -6
- package/dist/tools/browser/core.js +1 -1
- package/dist/tools/browser/index.cjs +278 -6
- package/dist/tools/browser/index.cjs.map +1 -1
- package/dist/tools/browser/index.d.ts +125 -1
- package/dist/tools/browser/index.js +98 -2
- package/dist/tools/browser/index.js.map +1 -1
- package/dist/tools/browser/openai.cjs.map +1 -1
- package/dist/tools/browser/openai.d.ts +3 -72
- package/dist/tools/browser/openai.js +8 -74
- package/dist/tools/browser/openai.js.map +1 -1
- package/dist/tools/browser/vercel.cjs.map +1 -1
- package/dist/tools/browser/vercel.d.ts +3 -68
- package/dist/tools/browser/vercel.js +5 -41
- package/dist/tools/browser/vercel.js.map +1 -1
- package/dist/tools/warp_grep/gemini.cjs +4 -1
- package/dist/tools/warp_grep/gemini.cjs.map +1 -1
- package/dist/tools/warp_grep/gemini.d.ts +1 -1
- package/dist/tools/warp_grep/gemini.js +3 -1
- package/dist/tools/warp_grep/index.cjs +3 -1
- package/dist/tools/warp_grep/index.cjs.map +1 -1
- package/dist/tools/warp_grep/index.d.ts +1 -1
- package/dist/tools/warp_grep/index.js +1 -1
- package/dist/vercel-CsnNSdze.d.ts +74 -0
- package/package.json +1 -1
- package/dist/chunk-IZISG7DL.js.map +0 -1
- /package/dist/{chunk-SU5CKH4F.js.map → chunk-IVT6YMFA.js.map} +0 -0
package/dist/client.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MorphClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IVT6YMFA.js";
|
|
4
4
|
import "./chunk-AQD2JCLI.js";
|
|
5
5
|
import "./chunk-XLSODV6H.js";
|
|
6
6
|
import "./chunk-7V2KIZT5.js";
|
|
@@ -27,7 +27,7 @@ import "./chunk-5QIWYEHJ.js";
|
|
|
27
27
|
import "./chunk-QZNGKOCZ.js";
|
|
28
28
|
import "./chunk-CKTA4AXM.js";
|
|
29
29
|
import "./chunk-63WE2C5R.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-MFZP347Z.js";
|
|
31
31
|
import "./chunk-SQN4DUQS.js";
|
|
32
32
|
import "./chunk-GZMUGMOZ.js";
|
|
33
33
|
import "./chunk-VJU3BRET.js";
|
|
@@ -102,16 +102,18 @@ interface GeminiWarpGrepTool extends FunctionDeclaration {
|
|
|
102
102
|
* });
|
|
103
103
|
* ```
|
|
104
104
|
*/
|
|
105
|
-
declare function
|
|
105
|
+
declare function createWarpGrepTool(config: WarpGrepToolConfig): GeminiWarpGrepTool;
|
|
106
|
+
declare const createMorphWarpGrepTool: typeof createWarpGrepTool;
|
|
106
107
|
|
|
107
108
|
type gemini_GeminiWarpGrepTool = GeminiWarpGrepTool;
|
|
108
109
|
declare const gemini_createMorphWarpGrepTool: typeof createMorphWarpGrepTool;
|
|
110
|
+
declare const gemini_createWarpGrepTool: typeof createWarpGrepTool;
|
|
109
111
|
declare const gemini_execute: typeof execute;
|
|
110
112
|
declare const gemini_formatResult: typeof formatResult;
|
|
111
113
|
declare const gemini_getSystemPrompt: typeof getSystemPrompt;
|
|
112
114
|
declare const gemini_warpGrepFunctionDeclaration: typeof warpGrepFunctionDeclaration;
|
|
113
115
|
declare namespace gemini {
|
|
114
|
-
export { type gemini_GeminiWarpGrepTool as GeminiWarpGrepTool, gemini_createMorphWarpGrepTool as createMorphWarpGrepTool, warpGrepFunctionDeclaration as default, gemini_execute as execute, gemini_formatResult as formatResult, gemini_getSystemPrompt as getSystemPrompt, gemini_warpGrepFunctionDeclaration as warpGrepFunctionDeclaration };
|
|
116
|
+
export { type gemini_GeminiWarpGrepTool as GeminiWarpGrepTool, gemini_createMorphWarpGrepTool as createMorphWarpGrepTool, gemini_createWarpGrepTool as createWarpGrepTool, warpGrepFunctionDeclaration as default, gemini_execute as execute, gemini_formatResult as formatResult, gemini_getSystemPrompt as getSystemPrompt, gemini_warpGrepFunctionDeclaration as warpGrepFunctionDeclaration };
|
|
115
117
|
}
|
|
116
118
|
|
|
117
|
-
export { type GeminiWarpGrepTool as G, createMorphWarpGrepTool as c, execute as e, gemini as g, warpGrepFunctionDeclaration as w };
|
|
119
|
+
export { type GeminiWarpGrepTool as G, createMorphWarpGrepTool as a, createWarpGrepTool as c, execute as e, gemini as g, warpGrepFunctionDeclaration as w };
|
package/dist/index.cjs
CHANGED
|
@@ -751,14 +751,17 @@ async function executeWithRecording(input, config = {}) {
|
|
|
751
751
|
recording
|
|
752
752
|
};
|
|
753
753
|
} catch (error) {
|
|
754
|
+
const errorRecording = {
|
|
755
|
+
id: taskResult.recording_id,
|
|
756
|
+
status: "ERROR",
|
|
757
|
+
error: error instanceof Error ? error.message : String(error),
|
|
758
|
+
created_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
759
|
+
getWebp: (options) => getWebp(taskResult.recording_id, config, options),
|
|
760
|
+
getErrors: () => getErrors(taskResult.recording_id, config)
|
|
761
|
+
};
|
|
754
762
|
return {
|
|
755
763
|
...taskResult,
|
|
756
|
-
recording:
|
|
757
|
-
id: taskResult.recording_id,
|
|
758
|
-
status: "ERROR",
|
|
759
|
-
error: error instanceof Error ? error.message : String(error),
|
|
760
|
-
created_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
761
|
-
}
|
|
764
|
+
recording: errorRecording
|
|
762
765
|
};
|
|
763
766
|
}
|
|
764
767
|
}
|