@morphllm/morphsdk 0.2.84 → 0.2.86
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-D4EQYM6O.js → chunk-37SJ3IOY.js} +63 -42
- package/dist/chunk-37SJ3IOY.js.map +1 -0
- package/dist/{chunk-262WRPS5.js → chunk-AJEE5RRB.js} +2 -2
- package/dist/{chunk-LF2X6YNP.js → chunk-HJOMBO2A.js} +153 -2
- package/dist/chunk-HJOMBO2A.js.map +1 -0
- package/dist/{chunk-LX2WNS3L.js → chunk-IXNX4HMC.js} +2 -2
- package/dist/{chunk-MJ7JODAY.js → chunk-KJL5RNVA.js} +15 -3
- package/dist/chunk-KJL5RNVA.js.map +1 -0
- package/dist/{chunk-FY32COVL.js → chunk-L5C6E32T.js} +1 -1
- package/dist/{chunk-FY32COVL.js.map → chunk-L5C6E32T.js.map} +1 -1
- package/dist/{chunk-N3RNM4A4.js → chunk-YWS4Y75I.js} +5 -5
- package/dist/{client-CsO9LifG.d.ts → client-BVeUudyD.d.ts} +3 -4
- package/dist/client.cjs +205 -38
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.ts +5 -2
- package/dist/client.js +6 -6
- package/dist/index.cjs +205 -38
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +5 -3
- package/dist/index.js +7 -7
- package/dist/tools/browser/index.cjs.map +1 -1
- package/dist/tools/browser/index.js.map +1 -1
- package/dist/tools/warp_grep/agent/runner.cjs +154 -2
- package/dist/tools/warp_grep/agent/runner.cjs.map +1 -1
- package/dist/tools/warp_grep/agent/runner.d.ts +9 -2
- package/dist/tools/warp_grep/agent/runner.js +5 -3
- package/dist/tools/warp_grep/agent/types.cjs.map +1 -1
- package/dist/tools/warp_grep/agent/types.d.ts +12 -1
- package/dist/tools/warp_grep/anthropic.cjs.map +1 -1
- package/dist/tools/warp_grep/anthropic.d.ts +3 -2
- package/dist/tools/warp_grep/anthropic.js +3 -3
- package/dist/tools/warp_grep/client.cjs +209 -39
- package/dist/tools/warp_grep/client.cjs.map +1 -1
- package/dist/tools/warp_grep/client.d.ts +39 -6
- package/dist/tools/warp_grep/client.js +2 -2
- package/dist/tools/warp_grep/gemini.cjs.map +1 -1
- package/dist/tools/warp_grep/gemini.d.ts +3 -2
- package/dist/tools/warp_grep/gemini.js +2 -2
- package/dist/tools/warp_grep/index.cjs +211 -39
- package/dist/tools/warp_grep/index.cjs.map +1 -1
- package/dist/tools/warp_grep/index.d.ts +3 -3
- package/dist/tools/warp_grep/index.js +6 -4
- package/dist/tools/warp_grep/openai.cjs.map +1 -1
- package/dist/tools/warp_grep/openai.d.ts +3 -2
- package/dist/tools/warp_grep/openai.js +3 -3
- package/dist/tools/warp_grep/providers/remote.d.ts +1 -1
- package/dist/tools/warp_grep/vercel.cjs +16 -3
- package/dist/tools/warp_grep/vercel.cjs.map +1 -1
- package/dist/tools/warp_grep/vercel.d.ts +94 -7
- package/dist/tools/warp_grep/vercel.js +7 -5
- package/dist/{types-Cv4LpqVl.d.ts → types-BMowL9iZ.d.ts} +5 -0
- package/package.json +13 -5
- package/dist/chunk-D4EQYM6O.js.map +0 -1
- package/dist/chunk-LF2X6YNP.js.map +0 -1
- package/dist/chunk-MJ7JODAY.js.map +0 -1
- /package/dist/{chunk-262WRPS5.js.map → chunk-AJEE5RRB.js.map} +0 -0
- /package/dist/{chunk-LX2WNS3L.js.map → chunk-IXNX4HMC.js.map} +0 -0
- /package/dist/{chunk-N3RNM4A4.js.map → chunk-YWS4Y75I.js.map} +0 -0
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ChatCompletionTool } from 'openai/resources/chat/completions';
|
|
2
2
|
export { formatResult } from './client.js';
|
|
3
3
|
export { getSystemPrompt } from './agent/prompt.js';
|
|
4
|
-
import { d as WarpGrepToolConfig, b as WarpGrepResult } from '../../types-
|
|
5
|
-
import './
|
|
4
|
+
import { d as WarpGrepToolConfig, b as WarpGrepResult } from '../../types-BMowL9iZ.js';
|
|
5
|
+
import './agent/types.js';
|
|
6
6
|
import '../utils/resilience.js';
|
|
7
|
+
import './providers/types.js';
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* OpenAI SDK adapter for morph-warp-grep tool
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
execute,
|
|
4
4
|
openai_default,
|
|
5
5
|
warpGrepTool
|
|
6
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-IXNX4HMC.js";
|
|
7
7
|
import "../../chunk-KW7OEGZK.js";
|
|
8
8
|
import {
|
|
9
9
|
formatResult
|
|
10
|
-
} from "../../chunk-
|
|
11
|
-
import "../../chunk-
|
|
10
|
+
} from "../../chunk-37SJ3IOY.js";
|
|
11
|
+
import "../../chunk-HJOMBO2A.js";
|
|
12
12
|
import "../../chunk-PUGSTXLO.js";
|
|
13
13
|
import "../../chunk-KRDIR7GG.js";
|
|
14
14
|
import "../../chunk-APP75CBN.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WarpGrepProvider, GrepResult, ReadResult, ListDirectoryEntry } from './types.js';
|
|
2
|
-
import { R as RemoteCommands } from '../../../types-
|
|
2
|
+
import { R as RemoteCommands } from '../../../types-BMowL9iZ.js';
|
|
3
3
|
import '../../utils/resilience.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -34,7 +34,8 @@ __export(vercel_exports, {
|
|
|
34
34
|
default: () => vercel_default,
|
|
35
35
|
execute: () => execute,
|
|
36
36
|
formatResult: () => formatResult,
|
|
37
|
-
getSystemPrompt: () => getSystemPrompt
|
|
37
|
+
getSystemPrompt: () => getSystemPrompt,
|
|
38
|
+
warpGrepJsonSchema: () => warpGrepJsonSchema
|
|
38
39
|
});
|
|
39
40
|
module.exports = __toCommonJS(vercel_exports);
|
|
40
41
|
var import_ai = require("ai");
|
|
@@ -1795,11 +1796,22 @@ function formatResult(result) {
|
|
|
1795
1796
|
var WARP_GREP_DESCRIPTION = 'IMPORTANT: If you need to explore the codebase to gather context, and the task does not involve a single file or function which is provided by name, you should ALWAYS use the warpgrep codebase search tool first instead of running search commands. When the task requires exploration beyond a single known file, invoke warpgrep first with a natural-language query describing the target functionality, bug, or architectural concern. Warp Grep is a fast and accurate tool that can search for all relevant context in a codebase. Keep queries action-oriented (e.g., "Find where billing invoices are generated and emailed"), and after reviewing the summarized results, you may verify important findings with other search tools or direct file reads to ensure completeness. Warp Grep can be used for query types like: find function responsible for <small feature>; find code that does <description>; find code path for <big feature>; Where does <minimal error message> come from?; or any query of that type. When a task requires exploration beyond a single known file, ALWAYS default to warpgrep codebase search before other search mechanisms.';
|
|
1796
1797
|
|
|
1797
1798
|
// tools/warp_grep/vercel.ts
|
|
1799
|
+
var warpGrepJsonSchema = {
|
|
1800
|
+
type: "object",
|
|
1801
|
+
properties: {
|
|
1802
|
+
query: {
|
|
1803
|
+
type: "string",
|
|
1804
|
+
description: "Free-form repository question"
|
|
1805
|
+
}
|
|
1806
|
+
},
|
|
1807
|
+
required: ["query"],
|
|
1808
|
+
additionalProperties: false
|
|
1809
|
+
};
|
|
1798
1810
|
async function execute(input, config) {
|
|
1799
1811
|
return executeToolCall(input, config);
|
|
1800
1812
|
}
|
|
1801
1813
|
function createWarpGrepTool(config) {
|
|
1802
|
-
const schema = import_zod.z.object({
|
|
1814
|
+
const schema = config.inputSchema ?? import_zod.z.object({
|
|
1803
1815
|
query: import_zod.z.string().describe("Free-form repository question")
|
|
1804
1816
|
});
|
|
1805
1817
|
return (0, import_ai.tool)({
|
|
@@ -1824,6 +1836,7 @@ var vercel_default = createWarpGrepTool;
|
|
|
1824
1836
|
createWarpGrepTool,
|
|
1825
1837
|
execute,
|
|
1826
1838
|
formatResult,
|
|
1827
|
-
getSystemPrompt
|
|
1839
|
+
getSystemPrompt,
|
|
1840
|
+
warpGrepJsonSchema
|
|
1828
1841
|
});
|
|
1829
1842
|
//# sourceMappingURL=vercel.cjs.map
|