@morphllm/morphsdk 0.2.59 → 0.2.60
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-CaFUHxBW.d.ts → anthropic-BC-AMEIN.d.ts} +1 -1
- package/dist/{client-CextMMm9.d.ts → client-CSINf0lQ.d.ts} +1 -1
- package/dist/client.d.ts +2 -2
- package/dist/{gemini-CE80Pbdy.d.ts → gemini-DPFWWG3k.d.ts} +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/{openai-Fvpqln7F.d.ts → openai-Beb9escY.d.ts} +1 -1
- package/dist/tools/warp_grep/anthropic.d.ts +2 -2
- package/dist/tools/warp_grep/client.d.ts +1 -1
- package/dist/tools/warp_grep/gemini.d.ts +2 -2
- package/dist/tools/warp_grep/index.d.ts +5 -5
- package/dist/tools/warp_grep/openai.d.ts +2 -2
- package/dist/tools/warp_grep/providers/remote.d.ts +1 -1
- package/dist/tools/warp_grep/vercel.d.ts +2 -2
- package/dist/{types-a_hxdPI6.d.ts → types-CnvVDM63.d.ts} +8 -9
- package/dist/{vercel-3yjvfmVB.d.ts → vercel-Bo84tpBe.d.ts} +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Tool } from '@anthropic-ai/sdk/resources/messages';
|
|
2
2
|
import { formatResult } from './tools/warp_grep/client.js';
|
|
3
3
|
import { getSystemPrompt } from './tools/warp_grep/agent/prompt.js';
|
|
4
|
-
import { d as WarpGrepToolConfig, b as WarpGrepResult } from './types-
|
|
4
|
+
import { d as WarpGrepToolConfig, b as WarpGrepResult } from './types-CnvVDM63.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Anthropic SDK adapter for morph-warp-grep tool
|
|
@@ -7,7 +7,7 @@ import { MorphGit } from './git/client.js';
|
|
|
7
7
|
import { OpenAIRouter, AnthropicRouter, GeminiRouter, RawRouter } from './modelrouter/core.js';
|
|
8
8
|
import { EditFileConfig, EditFileInput, EditFileResult, EditChanges } from './tools/fastapply/types.js';
|
|
9
9
|
import { CodebaseSearchConfig, CodebaseSearchInput, CodebaseSearchResult } from './tools/codebase_search/types.js';
|
|
10
|
-
import { d as WarpGrepToolConfig, b as WarpGrepResult, c as WarpGrepContext } from './types-
|
|
10
|
+
import { d as WarpGrepToolConfig, b as WarpGrepResult, c as WarpGrepContext } from './types-CnvVDM63.js';
|
|
11
11
|
import * as openai_resources_index_mjs from 'openai/resources/index.mjs';
|
|
12
12
|
import * as _anthropic_ai_sdk_resources_messages_mjs from '@anthropic-ai/sdk/resources/messages.mjs';
|
|
13
13
|
import * as ai from 'ai';
|
package/dist/client.d.ts
CHANGED
|
@@ -5,11 +5,11 @@ import './tools/browser/core.js';
|
|
|
5
5
|
import './tools/warp_grep/client.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-CSINf0lQ.js';
|
|
9
9
|
import './tools/fastapply/types.js';
|
|
10
10
|
import './tools/codebase_search/types.js';
|
|
11
11
|
import './tools/browser/types.js';
|
|
12
|
-
import './types-
|
|
12
|
+
import './types-CnvVDM63.js';
|
|
13
13
|
import './tools/warp_grep/providers/types.js';
|
|
14
14
|
import './git/types.js';
|
|
15
15
|
import 'isomorphic-git';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FunctionDeclaration } from '@google/generative-ai';
|
|
2
2
|
import { formatResult } from './tools/warp_grep/client.js';
|
|
3
3
|
import { getSystemPrompt } from './tools/warp_grep/agent/prompt.js';
|
|
4
|
-
import { d as WarpGrepToolConfig, b as WarpGrepResult } from './types-
|
|
4
|
+
import { d as WarpGrepToolConfig, b as WarpGrepResult } from './types-CnvVDM63.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Google Gemini SDK adapter for morph-warp-grep tool
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { A as AnthropicToolFactory, M as MorphClient, a as MorphClientConfig, O as OpenAIToolFactory, V as VercelToolFactory } from './client-
|
|
1
|
+
export { A as AnthropicToolFactory, M as MorphClient, a as MorphClientConfig, O as OpenAIToolFactory, V as VercelToolFactory } from './client-CSINf0lQ.js';
|
|
2
2
|
export { FastApplyClient, applyEdit } from './tools/fastapply/core.js';
|
|
3
3
|
export { CodebaseSearchClient } from './tools/codebase_search/core.js';
|
|
4
4
|
export { WarpGrepClient } from './tools/warp_grep/client.js';
|
|
5
5
|
export { BrowserClient } from './tools/browser/core.js';
|
|
6
6
|
export { MorphGit } from './git/client.js';
|
|
7
7
|
export { MorphGitConfig } from './git/types.js';
|
|
8
|
-
export { W as WarpGrepClientConfig, c as WarpGrepContext, a as WarpGrepInput, b as WarpGrepResult, d as WarpGrepToolConfig } from './types-
|
|
8
|
+
export { W as WarpGrepClientConfig, c as WarpGrepContext, a as WarpGrepInput, b as WarpGrepResult, d as WarpGrepToolConfig } from './types-CnvVDM63.js';
|
|
9
9
|
export { GrepResult, ListDirectoryEntry, ReadResult, WarpGrepProvider } from './tools/warp_grep/providers/types.js';
|
|
10
10
|
export { LocalRipgrepProvider } from './tools/warp_grep/providers/local.js';
|
|
11
11
|
export { AgentRunResult, ChatMessage, SessionConfig } from './tools/warp_grep/agent/types.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChatCompletionTool } from 'openai/resources/chat/completions';
|
|
2
2
|
import { formatResult } from './tools/warp_grep/client.js';
|
|
3
3
|
import { getSystemPrompt } from './tools/warp_grep/agent/prompt.js';
|
|
4
|
-
import { d as WarpGrepToolConfig, b as WarpGrepResult } from './types-
|
|
4
|
+
import { d as WarpGrepToolConfig, b as WarpGrepResult } from './types-CnvVDM63.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* OpenAI SDK adapter for morph-warp-grep tool
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@anthropic-ai/sdk/resources/messages';
|
|
2
2
|
export { formatResult } from './client.js';
|
|
3
3
|
export { getSystemPrompt } from './agent/prompt.js';
|
|
4
|
-
import '../../types-
|
|
5
|
-
export { c as createWarpGrepTool, e as execute, w as warpGrepTool } from '../../anthropic-
|
|
4
|
+
import '../../types-CnvVDM63.js';
|
|
5
|
+
export { c as createWarpGrepTool, e as execute, w as warpGrepTool } from '../../anthropic-BC-AMEIN.js';
|
|
6
6
|
import './providers/types.js';
|
|
7
7
|
import '../utils/resilience.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { W as WarpGrepClientConfig, a as WarpGrepInput, b as WarpGrepResult, d as WarpGrepToolConfig } from '../../types-
|
|
1
|
+
import { W as WarpGrepClientConfig, a as WarpGrepInput, b as WarpGrepResult, d as WarpGrepToolConfig } from '../../types-CnvVDM63.js';
|
|
2
2
|
import './providers/types.js';
|
|
3
3
|
import '../utils/resilience.js';
|
|
4
4
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@google/generative-ai';
|
|
2
2
|
export { formatResult } from './client.js';
|
|
3
3
|
export { getSystemPrompt } from './agent/prompt.js';
|
|
4
|
-
import '../../types-
|
|
5
|
-
export { G as GeminiWarpGrepTool, c as createMorphWarpGrepTool, w as default, e as execute, w as warpGrepFunctionDeclaration } from '../../gemini-
|
|
4
|
+
import '../../types-CnvVDM63.js';
|
|
5
|
+
export { G as GeminiWarpGrepTool, c as createMorphWarpGrepTool, w as default, e as execute, w as warpGrepFunctionDeclaration } from '../../gemini-DPFWWG3k.js';
|
|
6
6
|
import './providers/types.js';
|
|
7
7
|
import '../utils/resilience.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { WarpGrepClient, executeToolCall, executeWarpGrep, formatResult } from './client.js';
|
|
2
|
-
export { R as RemoteCommands, W as WarpGrepClientConfig, c as WarpGrepContext, a as WarpGrepInput, b as WarpGrepResult, d as WarpGrepToolConfig } from '../../types-
|
|
2
|
+
export { R as RemoteCommands, W as WarpGrepClientConfig, c as WarpGrepContext, a as WarpGrepInput, b as WarpGrepResult, d as WarpGrepToolConfig } from '../../types-CnvVDM63.js';
|
|
3
3
|
export { GrepResult, ListDirectoryEntry, ReadResult, WarpGrepProvider } from './providers/types.js';
|
|
4
4
|
export { LocalRipgrepProvider } from './providers/local.js';
|
|
5
5
|
export { RemoteCommandsProvider } from './providers/remote.js';
|
|
@@ -7,10 +7,10 @@ export { runWarpGrep } from './agent/runner.js';
|
|
|
7
7
|
export { AgentRunResult, ChatMessage, SessionConfig } from './agent/types.js';
|
|
8
8
|
export { SYSTEM_PROMPT as WARP_GREP_SYSTEM_PROMPT, getSystemPrompt } from './agent/prompt.js';
|
|
9
9
|
export { n as normalizeFinishFiles, r as readFinishFiles, t as toolGrep, b as toolListDirectory, a as toolRead } from '../../finish-kXAcUJyB.js';
|
|
10
|
-
export { a as anthropic } from '../../anthropic-
|
|
11
|
-
export { o as openai } from '../../openai-
|
|
12
|
-
export { v as vercel } from '../../vercel-
|
|
13
|
-
export { g as gemini } from '../../gemini-
|
|
10
|
+
export { a as anthropic } from '../../anthropic-BC-AMEIN.js';
|
|
11
|
+
export { o as openai } from '../../openai-Beb9escY.js';
|
|
12
|
+
export { v as vercel } from '../../vercel-Bo84tpBe.js';
|
|
13
|
+
export { g as gemini } from '../../gemini-DPFWWG3k.js';
|
|
14
14
|
import '../utils/resilience.js';
|
|
15
15
|
import '@anthropic-ai/sdk/resources/messages';
|
|
16
16
|
import 'openai/resources/chat/completions';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'openai/resources/chat/completions';
|
|
2
2
|
export { formatResult } from './client.js';
|
|
3
3
|
export { getSystemPrompt } from './agent/prompt.js';
|
|
4
|
-
import '../../types-
|
|
5
|
-
export { c as createWarpGrepTool, w as default, e as execute, w as warpGrepTool } from '../../openai-
|
|
4
|
+
import '../../types-CnvVDM63.js';
|
|
5
|
+
export { c as createWarpGrepTool, w as default, e as execute, w as warpGrepTool } from '../../openai-Beb9escY.js';
|
|
6
6
|
import './providers/types.js';
|
|
7
7
|
import '../utils/resilience.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-CnvVDM63.js';
|
|
3
3
|
import '../../utils/resilience.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'ai';
|
|
2
|
-
import '../../types-
|
|
2
|
+
import '../../types-CnvVDM63.js';
|
|
3
3
|
export { formatResult } from './client.js';
|
|
4
4
|
export { getSystemPrompt } from './agent/prompt.js';
|
|
5
|
-
export { c as createWarpGrepTool, c as default, e as execute } from '../../vercel-
|
|
5
|
+
export { c as createWarpGrepTool, c as default, e as execute } from '../../vercel-Bo84tpBe.js';
|
|
6
6
|
import './providers/types.js';
|
|
7
7
|
import '../utils/resilience.js';
|
|
@@ -11,16 +11,16 @@ import { RetryConfig } from './tools/utils/resilience.js';
|
|
|
11
11
|
* repoRoot: '/home/repo',
|
|
12
12
|
* remoteCommands: {
|
|
13
13
|
* grep: async (pattern, path) => {
|
|
14
|
-
* const r = await sandbox.
|
|
15
|
-
* return r.
|
|
14
|
+
* const r = await sandbox.grep(pattern, path);
|
|
15
|
+
* return r.content.map((item) => item.path);
|
|
16
16
|
* },
|
|
17
17
|
* read: async (path, start, end) => {
|
|
18
|
-
* const r = await sandbox.
|
|
19
|
-
* return r.
|
|
18
|
+
* const r = await sandbox.readFile(path);
|
|
19
|
+
* return r.content.slice(start - 1, end);
|
|
20
20
|
* },
|
|
21
21
|
* listDir: async (path, maxDepth) => {
|
|
22
|
-
* const r = await sandbox.
|
|
23
|
-
* return r.
|
|
22
|
+
* const r = await sandbox.listDir(path, maxDepth);
|
|
23
|
+
* return r.content.map((item) => item.path);
|
|
24
24
|
* },
|
|
25
25
|
* },
|
|
26
26
|
* });
|
|
@@ -28,13 +28,12 @@ import { RetryConfig } from './tools/utils/resilience.js';
|
|
|
28
28
|
*/
|
|
29
29
|
interface RemoteCommands {
|
|
30
30
|
/**
|
|
31
|
-
* Run ripgrep search. Return
|
|
32
|
-
* Expected format: ripgrep default output (path:line:content per line)
|
|
31
|
+
* Run ripgrep search. Return file paths.
|
|
33
32
|
*
|
|
34
33
|
* @param pattern - Regex pattern to search for
|
|
35
34
|
* @param path - Directory or file path to search in
|
|
36
35
|
* @param glob - Optional glob pattern to filter files (e.g., "*.ts")
|
|
37
|
-
* @returns
|
|
36
|
+
* @returns File paths
|
|
38
37
|
*/
|
|
39
38
|
grep: (pattern: string, path: string, glob?: string) => Promise<string>;
|
|
40
39
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as ai from 'ai';
|
|
2
|
-
import { d as WarpGrepToolConfig, c as WarpGrepContext, b as WarpGrepResult } from './types-
|
|
2
|
+
import { d as WarpGrepToolConfig, c as WarpGrepContext, b as WarpGrepResult } from './types-CnvVDM63.js';
|
|
3
3
|
import { formatResult } from './tools/warp_grep/client.js';
|
|
4
4
|
import { getSystemPrompt } from './tools/warp_grep/agent/prompt.js';
|
|
5
5
|
|