@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.
Files changed (39) hide show
  1. package/dist/{chunk-2XNF3W7C.js → chunk-4HOUN5TW.js} +5 -4
  2. package/dist/chunk-4HOUN5TW.js.map +1 -0
  3. package/dist/{chunk-KYVR4QCG.js → chunk-D5ZSGQT4.js} +4 -2
  4. package/dist/{chunk-KYVR4QCG.js.map → chunk-D5ZSGQT4.js.map} +1 -1
  5. package/dist/{chunk-C4IXE2RM.js → chunk-FB3E5BRY.js} +5 -4
  6. package/dist/chunk-FB3E5BRY.js.map +1 -0
  7. package/dist/{chunk-NOQCKVY3.js → chunk-KVMZPOUT.js} +5 -5
  8. package/dist/{chunk-563REN2T.js → chunk-PYTBBWL6.js} +2 -2
  9. package/dist/{client-BGctTHu9.d.ts → client-CFoR--IU.d.ts} +1 -1
  10. package/dist/client.cjs +4 -3
  11. package/dist/client.cjs.map +1 -1
  12. package/dist/client.d.ts +2 -2
  13. package/dist/client.js +5 -5
  14. package/dist/{core-DxiUwyBe.d.ts → core-CpkYEi_T.d.ts} +2 -0
  15. package/dist/index.cjs +4 -3
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.d.ts +2 -2
  18. package/dist/index.js +5 -5
  19. package/dist/tools/warp_grep/anthropic.cjs +4 -3
  20. package/dist/tools/warp_grep/anthropic.cjs.map +1 -1
  21. package/dist/tools/warp_grep/anthropic.d.ts +2 -2
  22. package/dist/tools/warp_grep/anthropic.js +2 -2
  23. package/dist/tools/warp_grep/index.cjs +6 -3
  24. package/dist/tools/warp_grep/index.cjs.map +1 -1
  25. package/dist/tools/warp_grep/index.d.ts +7 -3
  26. package/dist/tools/warp_grep/index.js +6 -4
  27. package/dist/tools/warp_grep/openai.cjs +4 -3
  28. package/dist/tools/warp_grep/openai.cjs.map +1 -1
  29. package/dist/tools/warp_grep/openai.d.ts +2 -2
  30. package/dist/tools/warp_grep/openai.js +2 -2
  31. package/dist/tools/warp_grep/vercel.cjs +1 -1
  32. package/dist/tools/warp_grep/vercel.cjs.map +1 -1
  33. package/dist/tools/warp_grep/vercel.d.ts +2 -2
  34. package/dist/tools/warp_grep/vercel.js +2 -2
  35. package/package.json +1 -1
  36. package/dist/chunk-2XNF3W7C.js.map +0 -1
  37. package/dist/chunk-C4IXE2RM.js.map +0 -1
  38. /package/dist/{chunk-NOQCKVY3.js.map → chunk-KVMZPOUT.js.map} +0 -0
  39. /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-DxiUwyBe.js';
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-BGctTHu9.js';
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-NOQCKVY3.js";
4
- import "./chunk-C4IXE2RM.js";
5
- import "./chunk-2XNF3W7C.js";
6
- import "./chunk-563REN2T.js";
7
- import "./chunk-KYVR4QCG.js";
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 WARP_GREP_DESCRIPTION = "ALWAYS use Warp Grep when you need to search a large chunk of code. Warp Grep is a fast and accurate tool that can search for all relevant context in a codebase. 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 ";
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: "morph-warp-grep",
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: "morph-warp-grep",
3236
+ name: config.name ?? WARP_GREP_TOOL_NAME,
3236
3237
  description: config.description ?? WARP_GREP_DESCRIPTION,
3237
3238
  input_schema: INPUT_SCHEMA
3238
3239
  };