@morphllm/morphsdk 0.2.53 → 0.2.54
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-2XNF3W7C.js → chunk-4HOUN5TW.js} +5 -4
- package/dist/chunk-4HOUN5TW.js.map +1 -0
- package/dist/{chunk-KYVR4QCG.js → chunk-D5ZSGQT4.js} +4 -2
- package/dist/{chunk-KYVR4QCG.js.map → chunk-D5ZSGQT4.js.map} +1 -1
- package/dist/{chunk-C4IXE2RM.js → chunk-FB3E5BRY.js} +5 -4
- package/dist/chunk-FB3E5BRY.js.map +1 -0
- package/dist/{chunk-NOQCKVY3.js → chunk-KVMZPOUT.js} +5 -5
- package/dist/{chunk-563REN2T.js → chunk-PYTBBWL6.js} +2 -2
- package/dist/{client-BGctTHu9.d.ts → client-CFoR--IU.d.ts} +1 -1
- package/dist/client.cjs +4 -3
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.ts +2 -2
- package/dist/client.js +5 -5
- package/dist/{core-DxiUwyBe.d.ts → core-CpkYEi_T.d.ts} +2 -0
- package/dist/index.cjs +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -5
- package/dist/tools/warp_grep/anthropic.cjs +4 -3
- package/dist/tools/warp_grep/anthropic.cjs.map +1 -1
- package/dist/tools/warp_grep/anthropic.d.ts +2 -2
- package/dist/tools/warp_grep/anthropic.js +2 -2
- package/dist/tools/warp_grep/index.cjs +6 -3
- package/dist/tools/warp_grep/index.cjs.map +1 -1
- package/dist/tools/warp_grep/index.d.ts +7 -3
- package/dist/tools/warp_grep/index.js +6 -4
- package/dist/tools/warp_grep/openai.cjs +4 -3
- package/dist/tools/warp_grep/openai.cjs.map +1 -1
- package/dist/tools/warp_grep/openai.d.ts +2 -2
- package/dist/tools/warp_grep/openai.js +2 -2
- package/dist/tools/warp_grep/vercel.cjs +1 -1
- package/dist/tools/warp_grep/vercel.cjs.map +1 -1
- package/dist/tools/warp_grep/vercel.d.ts +2 -2
- package/dist/tools/warp_grep/vercel.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-2XNF3W7C.js.map +0 -1
- package/dist/chunk-C4IXE2RM.js.map +0 -1
- /package/dist/{chunk-NOQCKVY3.js.map → chunk-KVMZPOUT.js.map} +0 -0
- /package/dist/{chunk-563REN2T.js.map → chunk-PYTBBWL6.js.map} +0 -0
package/dist/client.d.ts
CHANGED
|
@@ -2,10 +2,10 @@ import './tools/utils/resilience.js';
|
|
|
2
2
|
import './tools/fastapply/core.js';
|
|
3
3
|
import './tools/codebase_search/core.js';
|
|
4
4
|
import './tools/browser/core.js';
|
|
5
|
-
import './core-
|
|
5
|
+
import './core-CpkYEi_T.js';
|
|
6
6
|
import './git/client.js';
|
|
7
7
|
import './modelrouter/core.js';
|
|
8
|
-
export { M as MorphClient, a as MorphClientConfig } from './client-
|
|
8
|
+
export { M as MorphClient, a as MorphClientConfig } from './client-CFoR--IU.js';
|
|
9
9
|
import './tools/fastapply/types.js';
|
|
10
10
|
import './tools/codebase_search/types.js';
|
|
11
11
|
import './tools/browser/types.js';
|
package/dist/client.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MorphClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-KVMZPOUT.js";
|
|
4
|
+
import "./chunk-FB3E5BRY.js";
|
|
5
|
+
import "./chunk-4HOUN5TW.js";
|
|
6
|
+
import "./chunk-PYTBBWL6.js";
|
|
7
|
+
import "./chunk-D5ZSGQT4.js";
|
|
8
8
|
import "./chunk-IFVROB4L.js";
|
|
9
9
|
import "./chunk-EK7OQPWD.js";
|
|
10
10
|
import "./chunk-HQO45BAJ.js";
|
|
@@ -69,6 +69,8 @@ interface WarpGrepToolConfig {
|
|
|
69
69
|
debug?: boolean;
|
|
70
70
|
/** Morph API key (defaults to MORPH_API_KEY env var) */
|
|
71
71
|
apiKey?: string;
|
|
72
|
+
/** Custom tool name (defaults to 'warpgrep_codebase_search') */
|
|
73
|
+
name?: string;
|
|
72
74
|
/** Custom tool description */
|
|
73
75
|
description?: string;
|
|
74
76
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -2889,7 +2889,8 @@ var RawRouter = class extends BaseRouter {
|
|
|
2889
2889
|
};
|
|
2890
2890
|
|
|
2891
2891
|
// tools/warp_grep/prompts.ts
|
|
2892
|
-
var
|
|
2892
|
+
var WARP_GREP_TOOL_NAME = "warpgrep_codebase_search";
|
|
2893
|
+
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.';
|
|
2893
2894
|
|
|
2894
2895
|
// tools/warp_grep/openai.ts
|
|
2895
2896
|
var TOOL_PARAMETERS = {
|
|
@@ -2925,7 +2926,7 @@ function createMorphWarpGrepTool(config) {
|
|
|
2925
2926
|
const tool4 = {
|
|
2926
2927
|
type: "function",
|
|
2927
2928
|
function: {
|
|
2928
|
-
name:
|
|
2929
|
+
name: config.name ?? WARP_GREP_TOOL_NAME,
|
|
2929
2930
|
description: config.description ?? WARP_GREP_DESCRIPTION,
|
|
2930
2931
|
parameters: TOOL_PARAMETERS
|
|
2931
2932
|
}
|
|
@@ -3232,7 +3233,7 @@ async function execute3(input, config) {
|
|
|
3232
3233
|
}
|
|
3233
3234
|
function createMorphWarpGrepTool2(config) {
|
|
3234
3235
|
const tool4 = {
|
|
3235
|
-
name:
|
|
3236
|
+
name: config.name ?? WARP_GREP_TOOL_NAME,
|
|
3236
3237
|
description: config.description ?? WARP_GREP_DESCRIPTION,
|
|
3237
3238
|
input_schema: INPUT_SCHEMA
|
|
3238
3239
|
};
|