@morphllm/morphsdk 0.2.126 → 0.2.127
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-GISRJI5P.js → chunk-3ZA7Y66U.js} +2 -2
- package/dist/{chunk-AXYGFPEJ.js → chunk-6DRIR7AI.js} +5 -4
- package/dist/chunk-6DRIR7AI.js.map +1 -0
- package/dist/{chunk-ULZOJQ2W.js → chunk-ADHGSV2D.js} +2 -2
- package/dist/{chunk-37ZZ24IX.js → chunk-DS7YL4V3.js} +8 -4
- package/dist/{chunk-37ZZ24IX.js.map → chunk-DS7YL4V3.js.map} +1 -1
- package/dist/{chunk-IYZX6EYC.js → chunk-EGOCFCAH.js} +2 -2
- package/dist/{chunk-C26M3TWM.js → chunk-EL6CCK7C.js} +2 -2
- package/dist/{chunk-EB656RG6.js → chunk-GDCVK6SP.js} +2 -2
- package/dist/{chunk-5CIUBER5.js → chunk-GVF4Q75N.js} +2 -2
- package/dist/{chunk-CPZKCBED.js → chunk-GWKCMFD6.js} +2 -2
- package/dist/{chunk-VYJUGQUR.js → chunk-HZK5TEUK.js} +1 -1
- package/dist/{chunk-6Y2LHEJJ.js → chunk-K6YSD3DR.js} +2 -2
- package/dist/{chunk-R74NP2D4.js → chunk-LX34ZO3N.js} +2 -2
- package/dist/{chunk-W7WUZMKZ.js → chunk-LXBIP5FI.js} +2 -2
- package/dist/{chunk-K6GLBQBV.js → chunk-MJHAVXFK.js} +2 -2
- package/dist/{chunk-FAH4YGRN.js → chunk-NQQS5BZZ.js} +3 -3
- package/dist/{chunk-KJVFYRXY.js → chunk-QOE522DB.js} +15 -15
- package/dist/{chunk-QK5RNORE.js → chunk-QUULFOWB.js} +10 -5
- package/dist/{chunk-QK5RNORE.js.map → chunk-QUULFOWB.js.map} +1 -1
- package/dist/{chunk-CYVV5X5K.js → chunk-R5IFI552.js} +2 -2
- package/dist/{chunk-CYVV5X5K.js.map → chunk-R5IFI552.js.map} +1 -1
- package/dist/{chunk-76PPJZWV.js → chunk-REJNS3OW.js} +8 -4
- package/dist/{chunk-76PPJZWV.js.map → chunk-REJNS3OW.js.map} +1 -1
- package/dist/{chunk-6722FXFI.js → chunk-U73OIAJC.js} +2 -2
- package/dist/{chunk-3NLCSADX.js → chunk-UAQ7UWZB.js} +2 -2
- package/dist/{chunk-KUABSLVR.js → chunk-YTUQEDWH.js} +2 -2
- package/dist/{chunk-TREVNTLA.js → chunk-ZVAXTR2V.js} +2 -2
- package/dist/{chunk-YHZRHPJI.js → chunk-ZYD2SEQK.js} +2 -2
- package/dist/{client-s3_iDem0.d.ts → client-CNYzlN_6.d.ts} +6 -3
- package/dist/client.cjs +22 -8
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.js +21 -21
- package/dist/edge.cjs +1 -1
- package/dist/edge.cjs.map +1 -1
- package/dist/edge.js +4 -4
- package/dist/index.cjs +22 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +21 -21
- package/dist/modelrouter/core.cjs +1 -1
- package/dist/modelrouter/core.cjs.map +1 -1
- package/dist/modelrouter/core.js +3 -3
- package/dist/modelrouter/index.cjs +1 -1
- package/dist/modelrouter/index.cjs.map +1 -1
- package/dist/modelrouter/index.js +3 -3
- package/dist/tools/browser/anthropic.cjs +1 -1
- package/dist/tools/browser/anthropic.cjs.map +1 -1
- package/dist/tools/browser/anthropic.js +5 -5
- package/dist/tools/browser/core.cjs +1 -1
- package/dist/tools/browser/core.cjs.map +1 -1
- package/dist/tools/browser/core.js +4 -4
- package/dist/tools/browser/index.cjs +1 -1
- package/dist/tools/browser/index.cjs.map +1 -1
- package/dist/tools/browser/index.js +7 -7
- package/dist/tools/browser/openai.cjs +1 -1
- package/dist/tools/browser/openai.cjs.map +1 -1
- package/dist/tools/browser/openai.js +5 -5
- package/dist/tools/browser/profiles/core.cjs +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/tools/browser/vercel.cjs.map +1 -1
- package/dist/tools/browser/vercel.js +5 -5
- package/dist/tools/codebase_search/anthropic.cjs +1 -1
- package/dist/tools/codebase_search/anthropic.cjs.map +1 -1
- package/dist/tools/codebase_search/anthropic.js +4 -4
- package/dist/tools/codebase_search/core.cjs +1 -1
- package/dist/tools/codebase_search/core.cjs.map +1 -1
- package/dist/tools/codebase_search/core.js +3 -3
- package/dist/tools/codebase_search/index.cjs +1 -1
- package/dist/tools/codebase_search/index.cjs.map +1 -1
- package/dist/tools/codebase_search/index.js +6 -6
- package/dist/tools/codebase_search/openai.cjs +1 -1
- package/dist/tools/codebase_search/openai.cjs.map +1 -1
- package/dist/tools/codebase_search/openai.js +4 -4
- package/dist/tools/codebase_search/vercel.cjs +1 -1
- package/dist/tools/codebase_search/vercel.cjs.map +1 -1
- package/dist/tools/codebase_search/vercel.js +4 -4
- package/dist/tools/fastapply/anthropic.cjs +1 -1
- package/dist/tools/fastapply/anthropic.cjs.map +1 -1
- package/dist/tools/fastapply/anthropic.js +4 -4
- package/dist/tools/fastapply/apply.cjs +1 -1
- package/dist/tools/fastapply/apply.cjs.map +1 -1
- package/dist/tools/fastapply/apply.js +2 -2
- package/dist/tools/fastapply/core.cjs +1 -1
- package/dist/tools/fastapply/core.cjs.map +1 -1
- package/dist/tools/fastapply/core.js +3 -3
- package/dist/tools/fastapply/index.cjs +1 -1
- package/dist/tools/fastapply/index.cjs.map +1 -1
- package/dist/tools/fastapply/index.js +6 -6
- package/dist/tools/fastapply/openai.cjs +1 -1
- package/dist/tools/fastapply/openai.cjs.map +1 -1
- package/dist/tools/fastapply/openai.js +4 -4
- package/dist/tools/fastapply/vercel.cjs +1 -1
- package/dist/tools/fastapply/vercel.cjs.map +1 -1
- package/dist/tools/fastapply/vercel.js +4 -4
- package/dist/tools/index.cjs +1 -1
- package/dist/tools/index.cjs.map +1 -1
- package/dist/tools/index.js +6 -6
- package/dist/tools/utils/resilience.cjs +1 -1
- 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 +1 -1
- 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 +10 -5
- package/dist/tools/warp_grep/anthropic.cjs.map +1 -1
- package/dist/tools/warp_grep/anthropic.d.ts +2 -1
- package/dist/tools/warp_grep/anthropic.js +5 -5
- package/dist/tools/warp_grep/client.cjs +1 -1
- package/dist/tools/warp_grep/client.cjs.map +1 -1
- package/dist/tools/warp_grep/client.js +3 -3
- package/dist/tools/warp_grep/gemini.cjs +10 -5
- package/dist/tools/warp_grep/gemini.cjs.map +1 -1
- package/dist/tools/warp_grep/gemini.d.ts +2 -1
- package/dist/tools/warp_grep/gemini.js +12 -7
- package/dist/tools/warp_grep/gemini.js.map +1 -1
- package/dist/tools/warp_grep/index.cjs +5 -4
- package/dist/tools/warp_grep/index.cjs.map +1 -1
- package/dist/tools/warp_grep/index.d.ts +6 -2
- package/dist/tools/warp_grep/index.js +4 -4
- package/dist/tools/warp_grep/openai.cjs +10 -5
- package/dist/tools/warp_grep/openai.cjs.map +1 -1
- package/dist/tools/warp_grep/openai.d.ts +2 -1
- package/dist/tools/warp_grep/openai.js +5 -5
- package/dist/tools/warp_grep/vercel.cjs +9 -4
- package/dist/tools/warp_grep/vercel.cjs.map +1 -1
- package/dist/tools/warp_grep/vercel.d.ts +2 -1
- package/dist/tools/warp_grep/vercel.js +5 -5
- package/dist/version.cjs +1 -1
- package/dist/version.cjs.map +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-AXYGFPEJ.js.map +0 -1
- /package/dist/{chunk-GISRJI5P.js.map → chunk-3ZA7Y66U.js.map} +0 -0
- /package/dist/{chunk-ULZOJQ2W.js.map → chunk-ADHGSV2D.js.map} +0 -0
- /package/dist/{chunk-IYZX6EYC.js.map → chunk-EGOCFCAH.js.map} +0 -0
- /package/dist/{chunk-C26M3TWM.js.map → chunk-EL6CCK7C.js.map} +0 -0
- /package/dist/{chunk-EB656RG6.js.map → chunk-GDCVK6SP.js.map} +0 -0
- /package/dist/{chunk-5CIUBER5.js.map → chunk-GVF4Q75N.js.map} +0 -0
- /package/dist/{chunk-CPZKCBED.js.map → chunk-GWKCMFD6.js.map} +0 -0
- /package/dist/{chunk-VYJUGQUR.js.map → chunk-HZK5TEUK.js.map} +0 -0
- /package/dist/{chunk-6Y2LHEJJ.js.map → chunk-K6YSD3DR.js.map} +0 -0
- /package/dist/{chunk-R74NP2D4.js.map → chunk-LX34ZO3N.js.map} +0 -0
- /package/dist/{chunk-W7WUZMKZ.js.map → chunk-LXBIP5FI.js.map} +0 -0
- /package/dist/{chunk-K6GLBQBV.js.map → chunk-MJHAVXFK.js.map} +0 -0
- /package/dist/{chunk-FAH4YGRN.js.map → chunk-NQQS5BZZ.js.map} +0 -0
- /package/dist/{chunk-KJVFYRXY.js.map → chunk-QOE522DB.js.map} +0 -0
- /package/dist/{chunk-6722FXFI.js.map → chunk-U73OIAJC.js.map} +0 -0
- /package/dist/{chunk-3NLCSADX.js.map → chunk-UAQ7UWZB.js.map} +0 -0
- /package/dist/{chunk-KUABSLVR.js.map → chunk-YTUQEDWH.js.map} +0 -0
- /package/dist/{chunk-TREVNTLA.js.map → chunk-ZVAXTR2V.js.map} +0 -0
- /package/dist/{chunk-YHZRHPJI.js.map → chunk-ZYD2SEQK.js.map} +0 -0
|
@@ -104,7 +104,8 @@ declare function createWarpGrepTool(config: WarpGrepToolConfig): ChatCompletionT
|
|
|
104
104
|
declare function createGitHubSearchTool(config: GitHubSearchToolConfig): ChatCompletionTool & {
|
|
105
105
|
execute: (input: {
|
|
106
106
|
query: string;
|
|
107
|
-
|
|
107
|
+
github_url?: string;
|
|
108
|
+
owner_repo?: string;
|
|
108
109
|
branch?: string;
|
|
109
110
|
}) => Promise<WarpGrepResult>;
|
|
110
111
|
formatResult: (result: WarpGrepResult) => string;
|
|
@@ -5,20 +5,20 @@ import {
|
|
|
5
5
|
execute,
|
|
6
6
|
openai_default,
|
|
7
7
|
warpGrepTool
|
|
8
|
-
} from "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
8
|
+
} from "../../chunk-REJNS3OW.js";
|
|
9
|
+
import "../../chunk-6DRIR7AI.js";
|
|
10
10
|
import {
|
|
11
11
|
formatResult
|
|
12
|
-
} from "../../chunk-
|
|
12
|
+
} from "../../chunk-EL6CCK7C.js";
|
|
13
13
|
import "../../chunk-NF2QWJDY.js";
|
|
14
14
|
import "../../chunk-63VHBANJ.js";
|
|
15
|
-
import "../../chunk-
|
|
15
|
+
import "../../chunk-LXBIP5FI.js";
|
|
16
16
|
import "../../chunk-GVGJIXV2.js";
|
|
17
17
|
import "../../chunk-K2FXHDX2.js";
|
|
18
18
|
import "../../chunk-DKODF3YG.js";
|
|
19
19
|
import "../../chunk-QRXG5CAZ.js";
|
|
20
20
|
import "../../chunk-VCKJ22DX.js";
|
|
21
|
-
import "../../chunk-
|
|
21
|
+
import "../../chunk-R5IFI552.js";
|
|
22
22
|
import "../../chunk-PZ5AY32C.js";
|
|
23
23
|
export {
|
|
24
24
|
createGitHubReadFileTool,
|
|
@@ -969,7 +969,7 @@ var import_openai = __toESM(require("openai"), 1);
|
|
|
969
969
|
// package.json
|
|
970
970
|
var package_default = {
|
|
971
971
|
name: "@morphllm/morphsdk",
|
|
972
|
-
version: "0.2.
|
|
972
|
+
version: "0.2.127",
|
|
973
973
|
description: "TypeScript SDK and CLI for Morph Fast Apply integration",
|
|
974
974
|
type: "module",
|
|
975
975
|
main: "./dist/index.cjs",
|
|
@@ -2043,7 +2043,7 @@ function formatResult(result) {
|
|
|
2043
2043
|
|
|
2044
2044
|
// tools/warp_grep/prompts.ts
|
|
2045
2045
|
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.';
|
|
2046
|
-
var GITHUB_WARP_GREP_SEARCH_DESCRIPTION = 'IMPORTANT: If you need to explore the codebase of a public GitHub repository (not your local workspace), use warpgrep_github_search instead of warpgrep_codebase_search. ONLY use this tool when the task requires understanding code in an external repo, and invoke warpgrep_github_search with a
|
|
2046
|
+
var GITHUB_WARP_GREP_SEARCH_DESCRIPTION = 'IMPORTANT: If you need to explore the codebase of a public GitHub repository (not your local workspace), use warpgrep_github_search instead of warpgrep_codebase_search. ONLY use this tool when the task requires understanding code in an external repo, and invoke warpgrep_github_search with a natural-language query describing the target functionality, bug, or architectural concern. DO NOT use this tool when the task requires understanding code in your local workspace. Use warpgrep_codebase_search instead.Useful when you suspect a library or framework is being used in a way that is not documented, or if you suspect an update or a bug in the library or framework.WarpGrep searches GitHub repos the same way it searches local codebases: fast and accurate. Keep queries action-oriented (e.g., "Find where how the new use workflow directive works"), and after reviewing the results, you may verify important findings with other tools or direct file reads. WarpGrep 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 involves exploring code in an external public repo, ALWAYS use warpgrep_github_search. You must provide either a github_url or owner_repo parameter (at least one is required).';
|
|
2047
2047
|
var GITHUB_SEARCH_DESCRIPTION = GITHUB_WARP_GREP_SEARCH_DESCRIPTION;
|
|
2048
2048
|
var GITHUB_READ_FILE_DESCRIPTION = "Read a single file (or a line range) from a public GitHub repository. ONLY USE THIS WHEN YOU ALREADY KNOW THE EXACT FILE PATH YOU WANT TO READ, for example after finding it via warpgrep_github_search results. Takes owner/repo shorthand and the file path within the repo. Optionally specify startLine and endLine (1-based) to read a specific range. Returns the file content with line numbers.";
|
|
2049
2049
|
|
|
@@ -2100,11 +2100,16 @@ function createGitHubSearchTool(config) {
|
|
|
2100
2100
|
description: GITHUB_SEARCH_DESCRIPTION,
|
|
2101
2101
|
inputSchema: import_zod.z.object({
|
|
2102
2102
|
query: import_zod.z.string().describe("Natural language search query"),
|
|
2103
|
-
|
|
2103
|
+
github_url: import_zod.z.string().optional().describe('GitHub repository URL to search (e.g. "https://github.com/vercel/next.js"). You must provide either github_url or owner_repo.'),
|
|
2104
|
+
owner_repo: import_zod.z.string().optional().describe('Repository owner/repo shorthand (e.g. "vercel/next.js"). You must provide either github_url or owner_repo.'),
|
|
2104
2105
|
branch: import_zod.z.string().optional().describe("Branch to search (defaults to repo default branch)")
|
|
2105
2106
|
}),
|
|
2106
2107
|
execute: async (params) => {
|
|
2107
|
-
const
|
|
2108
|
+
const github = params.github_url || params.owner_repo;
|
|
2109
|
+
if (!github) {
|
|
2110
|
+
throw new Error("Please provide github search url or owner/repo id");
|
|
2111
|
+
}
|
|
2112
|
+
const result = await client.searchGitHub({ query: params.query, github, branch: params.branch });
|
|
2108
2113
|
if (!result.success) {
|
|
2109
2114
|
throw new Error(`GitHub search failed: ${result.error}`);
|
|
2110
2115
|
}
|