@morphllm/morphsdk 0.2.96 → 0.2.98
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/README.md +84 -147
- package/dist/{chunk-L5WXPMCH.js → chunk-6SCCLPXJ.js} +2 -2
- package/dist/{chunk-BGEEES52.js → chunk-OO7ZYRV6.js} +5 -5
- package/dist/{chunk-4KMBU6T3.js → chunk-R7WN43L2.js} +4 -4
- package/dist/{chunk-OTPYEYMZ.js → chunk-U5SDUBSV.js} +2 -2
- package/dist/{chunk-AIXF4GQC.js → chunk-UCWRJO7I.js} +2 -2
- package/dist/{chunk-QH4BSXOD.js → chunk-X5J4WMYL.js} +3 -3
- package/dist/{chunk-EZEYREHA.js → chunk-YMNS7PKC.js} +5 -5
- package/dist/client.js +11 -11
- package/dist/index.js +11 -11
- package/dist/tools/warp_grep/agent/runner.js +2 -2
- package/dist/tools/warp_grep/anthropic.js +8 -8
- package/dist/tools/warp_grep/client.js +7 -7
- package/dist/tools/warp_grep/gemini.js +7 -7
- package/dist/tools/warp_grep/harness.js +10 -10
- package/dist/tools/warp_grep/index.js +10 -10
- package/dist/tools/warp_grep/openai.js +8 -8
- package/dist/tools/warp_grep/providers/local.js +2 -2
- package/dist/tools/warp_grep/vercel.js +8 -8
- package/package.json +3 -8
- /package/dist/{chunk-L5WXPMCH.js.map → chunk-6SCCLPXJ.js.map} +0 -0
- /package/dist/{chunk-BGEEES52.js.map → chunk-OO7ZYRV6.js.map} +0 -0
- /package/dist/{chunk-4KMBU6T3.js.map → chunk-R7WN43L2.js.map} +0 -0
- /package/dist/{chunk-OTPYEYMZ.js.map → chunk-U5SDUBSV.js.map} +0 -0
- /package/dist/{chunk-AIXF4GQC.js.map → chunk-UCWRJO7I.js.map} +0 -0
- /package/dist/{chunk-QH4BSXOD.js.map → chunk-X5J4WMYL.js.map} +0 -0
- /package/dist/{chunk-EZEYREHA.js.map → chunk-YMNS7PKC.js.map} +0 -0
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Morph SDK
|
|
2
2
|
|
|
3
|
-
Production-ready tools for AI coding agents:
|
|
3
|
+
Production-ready tools for AI coding agents: WarpGrep (intelligent code search), Fast Apply (10,500 tokens/s), and Repo Storage.
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@morphllm/morphsdk)
|
|
6
6
|
|
|
@@ -18,209 +18,146 @@ export MORPH_API_KEY="sk-your-key-here"
|
|
|
18
18
|
|
|
19
19
|
## Features
|
|
20
20
|
|
|
21
|
-
- **🔍
|
|
22
|
-
- **📦 Repo Storage** - Agent native git with automatic code indexing, agent metadata, and chat history
|
|
21
|
+
- **🔍 WarpGrep** - Intelligent code search agent that explores your codebase with parallel grep/read operations
|
|
23
22
|
- **⚡ Fast Apply** - 98% 1st pass accuracy, AI-powered code editing at 10,500 tokens/s
|
|
24
|
-
-
|
|
23
|
+
- **📦 Repo Storage** - Agent native git with automatic code indexing and agent metadata
|
|
24
|
+
- **🤖 Agent Tools** - Ready-to-use tools for Anthropic, OpenAI, Gemini, and Vercel AI SDK
|
|
25
25
|
|
|
26
26
|
## Quick Start
|
|
27
27
|
|
|
28
|
-
###
|
|
28
|
+
### WarpGrep - Intelligent Code Search
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
import { MorphClient } from '@morphllm/morphsdk';
|
|
30
|
+
WarpGrep is a search subagent that explores your codebase using parallel grep and file read operations. It understands natural language queries and returns relevant code with line numbers.
|
|
32
31
|
|
|
33
|
-
|
|
32
|
+
```typescript
|
|
33
|
+
import { WarpGrepClient } from '@morphllm/morphsdk/tools/warp-grep';
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
await morph.git.init({ repoId: 'my-project', dir: './my-project' });
|
|
35
|
+
const client = new WarpGrepClient({ morphApiKey: process.env.MORPH_API_KEY });
|
|
37
36
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
dir: './my-project',
|
|
42
|
-
message: 'Add authentication'
|
|
37
|
+
const result = await client.execute({
|
|
38
|
+
query: 'Find where authentication requests are handled',
|
|
39
|
+
repoRoot: './my-project'
|
|
43
40
|
});
|
|
44
41
|
|
|
45
|
-
//
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
// Search your code with natural language
|
|
49
|
-
const results = await morph.codebaseSearch.search({
|
|
50
|
-
query: "Where is the OAuth login implemented?",
|
|
51
|
-
repoId: 'my-project',
|
|
52
|
-
targetDirectories: [] // or ['src/auth'] to narrow search
|
|
42
|
+
// Returns relevant files with specific line ranges
|
|
43
|
+
result.files.forEach(file => {
|
|
44
|
+
console.log(`${file.path}: lines ${file.lines}`);
|
|
53
45
|
});
|
|
54
|
-
|
|
55
|
-
console.log(results.results[0].content);
|
|
56
46
|
```
|
|
57
47
|
|
|
58
|
-
###
|
|
48
|
+
### As Agent Tool
|
|
59
49
|
|
|
60
50
|
```typescript
|
|
61
|
-
import {
|
|
51
|
+
import { createWarpGrepTool } from '@morphllm/morphsdk/tools/warp-grep/anthropic';
|
|
52
|
+
import Anthropic from '@anthropic-ai/sdk';
|
|
62
53
|
|
|
63
|
-
const
|
|
54
|
+
const client = new Anthropic();
|
|
55
|
+
const tool = createWarpGrepTool({ repoRoot: './my-project' });
|
|
64
56
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
code_edit: 'try { ... } catch (e) { ... }'
|
|
57
|
+
const response = await client.messages.create({
|
|
58
|
+
model: "claude-sonnet-4-5-20250929",
|
|
59
|
+
tools: [tool],
|
|
60
|
+
messages: [{ role: "user", content: "Find the error handling logic" }]
|
|
70
61
|
});
|
|
71
62
|
```
|
|
72
63
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
Git built for AI agents with automatic code indexing and semantic search.
|
|
64
|
+
### Remote Sandbox Support
|
|
76
65
|
|
|
77
|
-
|
|
66
|
+
WarpGrep works in remote sandboxes (E2B, Modal, Daytona) by providing custom command implementations:
|
|
78
67
|
|
|
79
68
|
```typescript
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
await
|
|
88
|
-
|
|
89
|
-
dir: './my-project',
|
|
90
|
-
message: 'Add feature'
|
|
69
|
+
import { createWarpGrepTool } from '@morphllm/morphsdk/tools/warp-grep/anthropic';
|
|
70
|
+
|
|
71
|
+
const tool = createWarpGrepTool({
|
|
72
|
+
repoRoot: '/home/repo',
|
|
73
|
+
remoteCommands: {
|
|
74
|
+
grep: async (pattern, path) => (await sandbox.run(`rg '${pattern}' '${path}'`)).stdout,
|
|
75
|
+
read: async (path, start, end) => (await sandbox.run(`sed -n '${start},${end}p' '${path}'`)).stdout,
|
|
76
|
+
listDir: async (path, maxDepth) => (await sandbox.run(`find '${path}' -maxdepth ${maxDepth}`)).stdout,
|
|
77
|
+
},
|
|
91
78
|
});
|
|
92
|
-
|
|
93
|
-
// Push (triggers code embedding in background)
|
|
94
|
-
await morph.git.push({ dir: './my-project' });
|
|
95
|
-
|
|
96
|
-
// Status and history
|
|
97
|
-
const files = await morph.git.statusMatrix({ dir: './my-project' });
|
|
98
|
-
const commits = await morph.git.log({ dir: './my-project', depth: 10 });
|
|
99
|
-
|
|
100
|
-
// Branch operations
|
|
101
|
-
await morph.git.branch({ dir: './my-project', name: 'feature' });
|
|
102
|
-
const branches = await morph.git.listBranches({ dir: './my-project' });
|
|
103
|
-
await morph.git.checkout({ dir: './my-project', ref: 'main' });
|
|
104
79
|
```
|
|
105
80
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
Store chat history and browser recordings with commits:
|
|
109
|
-
|
|
110
|
-
```typescript
|
|
111
|
-
// Commit with metadata
|
|
112
|
-
const sha = await morph.git.commit({
|
|
113
|
-
dir: './my-project',
|
|
114
|
-
message: 'Implement user auth',
|
|
115
|
-
chatHistory: [
|
|
116
|
-
{ role: 'user', content: 'Add OAuth' },
|
|
117
|
-
{ role: 'assistant', content: 'Adding Google OAuth' }
|
|
118
|
-
],
|
|
119
|
-
recordingId: 'rec_abc123'
|
|
120
|
-
});
|
|
121
|
-
|
|
122
|
-
// Retrieve metadata later
|
|
123
|
-
const metadata = await morph.git.getCommitMetadata({
|
|
124
|
-
dir: './my-project',
|
|
125
|
-
commitSha: sha
|
|
126
|
-
});
|
|
127
|
-
|
|
128
|
-
console.log(metadata?.chatHistory);
|
|
129
|
-
console.log(metadata?.recordingId);
|
|
130
|
-
```
|
|
131
|
-
|
|
132
|
-
### State of the Art Code Semantic Search
|
|
81
|
+
## Fast Apply
|
|
133
82
|
|
|
134
|
-
|
|
83
|
+
AI-powered code editing at 10,500 tokens/s with 98% first-pass accuracy.
|
|
135
84
|
|
|
136
85
|
```typescript
|
|
137
|
-
|
|
138
|
-
await morph.codebaseSearch.search({
|
|
139
|
-
query: "auth logic",
|
|
140
|
-
repoId: 'my-project'
|
|
141
|
-
});
|
|
86
|
+
import { MorphClient } from '@morphllm/morphsdk';
|
|
142
87
|
|
|
143
|
-
|
|
144
|
-
await morph.codebaseSearch.search({
|
|
145
|
-
query: "auth logic",
|
|
146
|
-
repoId: 'my-project',
|
|
147
|
-
branch: 'develop'
|
|
148
|
-
});
|
|
88
|
+
const morph = new MorphClient({ apiKey: process.env.MORPH_API_KEY });
|
|
149
89
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
90
|
+
await morph.fastApply.execute({
|
|
91
|
+
target_filepath: 'src/app.ts',
|
|
92
|
+
instructions: 'Add error handling to the API call',
|
|
93
|
+
code_edit: `
|
|
94
|
+
// ... existing code ...
|
|
95
|
+
try {
|
|
96
|
+
const response = await fetch(url);
|
|
97
|
+
// ... existing code ...
|
|
98
|
+
} catch (e) {
|
|
99
|
+
console.error('API call failed:', e);
|
|
100
|
+
throw e;
|
|
101
|
+
}
|
|
102
|
+
`
|
|
155
103
|
});
|
|
156
104
|
```
|
|
157
105
|
|
|
158
|
-
|
|
106
|
+
See [tools/fastapply/README.md](./tools/fastapply/README.md) for details.
|
|
159
107
|
|
|
160
|
-
|
|
108
|
+
## Repo Storage
|
|
161
109
|
|
|
162
|
-
|
|
110
|
+
Git built for AI agents with automatic code indexing.
|
|
163
111
|
|
|
164
112
|
```typescript
|
|
165
|
-
import {
|
|
166
|
-
import Anthropic from '@anthropic-ai/sdk';
|
|
167
|
-
|
|
168
|
-
const client = new Anthropic();
|
|
169
|
-
const tool = createCodebaseSearchTool({ repoId: 'my-project' });
|
|
170
|
-
|
|
171
|
-
const response = await client.messages.create({
|
|
172
|
-
model: "claude-sonnet-4-5-20250929",
|
|
173
|
-
tools: [tool],
|
|
174
|
-
messages: [{ role: "user", content: "Find authentication code" }]
|
|
175
|
-
});
|
|
176
|
-
```
|
|
113
|
+
import { MorphClient } from '@morphllm/morphsdk';
|
|
177
114
|
|
|
178
|
-
|
|
115
|
+
const morph = new MorphClient({ apiKey: process.env.MORPH_API_KEY });
|
|
179
116
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
query: "How does authentication work?",
|
|
183
|
-
repoId: 'my-project',
|
|
184
|
-
targetDirectories: ["src/auth"], // or [] for all
|
|
185
|
-
limit: 10
|
|
186
|
-
});
|
|
117
|
+
// Initialize repo
|
|
118
|
+
await morph.git.init({ repoId: 'my-project', dir: './my-project' });
|
|
187
119
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
120
|
+
// Stage and commit with agent metadata
|
|
121
|
+
await morph.git.add({ dir: './my-project', filepath: '.' });
|
|
122
|
+
await morph.git.commit({
|
|
123
|
+
dir: './my-project',
|
|
124
|
+
message: 'Add authentication',
|
|
125
|
+
chatHistory: [
|
|
126
|
+
{ role: 'user', content: 'Add OAuth login' },
|
|
127
|
+
{ role: 'assistant', content: 'Adding Google OAuth...' }
|
|
128
|
+
]
|
|
191
129
|
});
|
|
192
|
-
```
|
|
193
|
-
|
|
194
|
-
### How It Works
|
|
195
130
|
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
3. **Results**: Top 10 most relevant code chunks (~1230ms total)
|
|
199
|
-
|
|
200
|
-
## Fast Apply
|
|
131
|
+
// Push
|
|
132
|
+
await morph.git.push({ dir: './my-project' });
|
|
201
133
|
|
|
202
|
-
|
|
134
|
+
// Clone, branch, checkout
|
|
135
|
+
await morph.git.clone({ repoId: 'my-project', dir: './local-copy' });
|
|
136
|
+
await morph.git.branch({ dir: './my-project', name: 'feature' });
|
|
137
|
+
await morph.git.checkout({ dir: './my-project', ref: 'main' });
|
|
138
|
+
```
|
|
203
139
|
|
|
204
140
|
## Agent Tools
|
|
205
141
|
|
|
206
142
|
Ready-to-use tools for popular AI frameworks:
|
|
207
143
|
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
144
|
+
| Framework | Import Path |
|
|
145
|
+
|-----------|-------------|
|
|
146
|
+
| Anthropic SDK | `@morphllm/morphsdk/tools/warp-grep/anthropic` |
|
|
147
|
+
| OpenAI SDK | `@morphllm/morphsdk/tools/warp-grep/openai` |
|
|
148
|
+
| Gemini SDK | `@morphllm/morphsdk/tools/warp-grep/gemini` |
|
|
149
|
+
| Vercel AI SDK | `@morphllm/morphsdk/tools/warp-grep/vercel` |
|
|
211
150
|
|
|
212
151
|
Available tools:
|
|
213
|
-
- `
|
|
152
|
+
- `createWarpGrepTool` - Intelligent code search
|
|
214
153
|
- `createFastApplyTool` - AI-powered code editing
|
|
215
154
|
- `createBrowserTool` - Browser automation
|
|
216
|
-
- `createWarpGrepTool` - Fast grep with AI parsing
|
|
217
155
|
|
|
218
156
|
## Documentation
|
|
219
157
|
|
|
220
158
|
Full docs: [docs.morphllm.com](https://docs.morphllm.com)
|
|
221
159
|
|
|
222
160
|
**Key Pages:**
|
|
223
|
-
- [
|
|
224
|
-
- [Semantic Search](https://docs.morphllm.com/sdk/components/semantic-search) - Code search with natural language
|
|
161
|
+
- [WarpGrep](https://docs.morphllm.com/sdk/components/warp-grep) - Intelligent code search
|
|
225
162
|
- [Fast Apply](https://docs.morphllm.com/sdk/components/fast-apply) - AI-powered code editing
|
|
226
|
-
|
|
163
|
+
- [Repo Storage](https://docs.morphllm.com/sdk/components/git) - Git operations and agent metadata
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
executeToolCall,
|
|
7
7
|
formatResult
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-X5J4WMYL.js";
|
|
9
9
|
import {
|
|
10
10
|
getSystemPrompt
|
|
11
11
|
} from "./chunk-FMLHRJDF.js";
|
|
@@ -58,4 +58,4 @@ export {
|
|
|
58
58
|
createWarpGrepTool,
|
|
59
59
|
openai_default
|
|
60
60
|
};
|
|
61
|
-
//# sourceMappingURL=chunk-
|
|
61
|
+
//# sourceMappingURL=chunk-6SCCLPXJ.js.map
|
|
@@ -8,10 +8,6 @@ import {
|
|
|
8
8
|
toolListDirectory,
|
|
9
9
|
toolRead
|
|
10
10
|
} from "./chunk-KRDIR7GG.js";
|
|
11
|
-
import {
|
|
12
|
-
AGENT_CONFIG,
|
|
13
|
-
DEFAULT_MODEL
|
|
14
|
-
} from "./chunk-5PNMAWLC.js";
|
|
15
11
|
import {
|
|
16
12
|
formatAgentToolOutput
|
|
17
13
|
} from "./chunk-APP75CBN.js";
|
|
@@ -21,6 +17,10 @@ import {
|
|
|
21
17
|
import {
|
|
22
18
|
getSystemPrompt
|
|
23
19
|
} from "./chunk-FMLHRJDF.js";
|
|
20
|
+
import {
|
|
21
|
+
AGENT_CONFIG,
|
|
22
|
+
DEFAULT_MODEL
|
|
23
|
+
} from "./chunk-5PNMAWLC.js";
|
|
24
24
|
|
|
25
25
|
// tools/warp_grep/agent/runner.ts
|
|
26
26
|
import OpenAI from "openai";
|
|
@@ -357,4 +357,4 @@ export {
|
|
|
357
357
|
runWarpGrep,
|
|
358
358
|
runWarpGrepStreaming
|
|
359
359
|
};
|
|
360
|
-
//# sourceMappingURL=chunk-
|
|
360
|
+
//# sourceMappingURL=chunk-OO7ZYRV6.js.map
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
readAllLines
|
|
3
|
-
} from "./chunk-G2RSY56Q.js";
|
|
4
1
|
import {
|
|
5
2
|
fixPathRepetition,
|
|
6
3
|
isSymlink,
|
|
@@ -15,6 +12,9 @@ import {
|
|
|
15
12
|
AGENT_CONFIG,
|
|
16
13
|
DEFAULT_EXCLUDES
|
|
17
14
|
} from "./chunk-5PNMAWLC.js";
|
|
15
|
+
import {
|
|
16
|
+
readAllLines
|
|
17
|
+
} from "./chunk-G2RSY56Q.js";
|
|
18
18
|
|
|
19
19
|
// tools/warp_grep/providers/local.ts
|
|
20
20
|
import fs from "fs/promises";
|
|
@@ -289,4 +289,4 @@ Details: ${res.stderr}` : ""}`
|
|
|
289
289
|
export {
|
|
290
290
|
LocalRipgrepProvider
|
|
291
291
|
};
|
|
292
|
-
//# sourceMappingURL=chunk-
|
|
292
|
+
//# sourceMappingURL=chunk-R7WN43L2.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-KW7OEGZK.js";
|
|
4
4
|
import {
|
|
5
5
|
executeToolCall
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-X5J4WMYL.js";
|
|
7
7
|
|
|
8
8
|
// tools/warp_grep/vercel.ts
|
|
9
9
|
import { tool } from "ai";
|
|
@@ -50,4 +50,4 @@ export {
|
|
|
50
50
|
createWarpGrepTool,
|
|
51
51
|
vercel_default
|
|
52
52
|
};
|
|
53
|
-
//# sourceMappingURL=chunk-
|
|
53
|
+
//# sourceMappingURL=chunk-U5SDUBSV.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
executeToolCall,
|
|
7
7
|
formatResult
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-X5J4WMYL.js";
|
|
9
9
|
import {
|
|
10
10
|
getSystemPrompt
|
|
11
11
|
} from "./chunk-FMLHRJDF.js";
|
|
@@ -50,4 +50,4 @@ export {
|
|
|
50
50
|
execute,
|
|
51
51
|
createWarpGrepTool
|
|
52
52
|
};
|
|
53
|
-
//# sourceMappingURL=chunk-
|
|
53
|
+
//# sourceMappingURL=chunk-UCWRJO7I.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runWarpGrep,
|
|
3
3
|
runWarpGrepStreaming
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OO7ZYRV6.js";
|
|
5
5
|
import {
|
|
6
6
|
RemoteCommandsProvider
|
|
7
7
|
} from "./chunk-PUGSTXLO.js";
|
|
8
8
|
import {
|
|
9
9
|
LocalRipgrepProvider
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-R7WN43L2.js";
|
|
11
11
|
|
|
12
12
|
// tools/warp_grep/client.ts
|
|
13
13
|
var WarpGrepClient = class {
|
|
@@ -138,4 +138,4 @@ export {
|
|
|
138
138
|
executeToolCall,
|
|
139
139
|
formatResult
|
|
140
140
|
};
|
|
141
|
-
//# sourceMappingURL=chunk-
|
|
141
|
+
//# sourceMappingURL=chunk-X5J4WMYL.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createWarpGrepTool as createWarpGrepTool3
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-U5SDUBSV.js";
|
|
4
4
|
import {
|
|
5
5
|
createWarpGrepTool as createWarpGrepTool2
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-UCWRJO7I.js";
|
|
7
7
|
import {
|
|
8
8
|
createWarpGrepTool
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6SCCLPXJ.js";
|
|
10
10
|
import {
|
|
11
11
|
WarpGrepClient
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-X5J4WMYL.js";
|
|
13
13
|
import {
|
|
14
14
|
createCodebaseSearchTool as createCodebaseSearchTool3
|
|
15
15
|
} from "./chunk-UBX7QYBD.js";
|
|
@@ -280,4 +280,4 @@ export {
|
|
|
280
280
|
VercelToolFactory,
|
|
281
281
|
MorphClient
|
|
282
282
|
};
|
|
283
|
-
//# sourceMappingURL=chunk-
|
|
283
|
+
//# sourceMappingURL=chunk-YMNS7PKC.js.map
|
package/dist/client.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MorphClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-YMNS7PKC.js";
|
|
4
|
+
import "./chunk-U5SDUBSV.js";
|
|
5
|
+
import "./chunk-UCWRJO7I.js";
|
|
6
|
+
import "./chunk-6SCCLPXJ.js";
|
|
7
7
|
import "./chunk-KW7OEGZK.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-X5J4WMYL.js";
|
|
9
|
+
import "./chunk-OO7ZYRV6.js";
|
|
10
10
|
import "./chunk-PUGSTXLO.js";
|
|
11
11
|
import "./chunk-KRDIR7GG.js";
|
|
12
|
-
import "./chunk-4KMBU6T3.js";
|
|
13
|
-
import "./chunk-G2RSY56Q.js";
|
|
14
|
-
import "./chunk-YPKNMYD4.js";
|
|
15
|
-
import "./chunk-TPP2UGQP.js";
|
|
16
|
-
import "./chunk-5PNMAWLC.js";
|
|
17
12
|
import "./chunk-APP75CBN.js";
|
|
18
13
|
import "./chunk-SNGGSPYJ.js";
|
|
19
14
|
import "./chunk-FMLHRJDF.js";
|
|
15
|
+
import "./chunk-R7WN43L2.js";
|
|
16
|
+
import "./chunk-YPKNMYD4.js";
|
|
17
|
+
import "./chunk-TPP2UGQP.js";
|
|
18
|
+
import "./chunk-5PNMAWLC.js";
|
|
19
|
+
import "./chunk-G2RSY56Q.js";
|
|
20
20
|
import "./chunk-UBX7QYBD.js";
|
|
21
21
|
import "./chunk-GJU7UOFL.js";
|
|
22
22
|
import "./chunk-76DJEQEP.js";
|
package/dist/index.js
CHANGED
|
@@ -4,27 +4,27 @@ import {
|
|
|
4
4
|
MorphClient,
|
|
5
5
|
OpenAIToolFactory,
|
|
6
6
|
VercelToolFactory
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-YMNS7PKC.js";
|
|
8
|
+
import "./chunk-U5SDUBSV.js";
|
|
9
|
+
import "./chunk-UCWRJO7I.js";
|
|
10
|
+
import "./chunk-6SCCLPXJ.js";
|
|
11
11
|
import "./chunk-KW7OEGZK.js";
|
|
12
12
|
import {
|
|
13
13
|
WarpGrepClient
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-X5J4WMYL.js";
|
|
15
|
+
import "./chunk-OO7ZYRV6.js";
|
|
16
16
|
import "./chunk-PUGSTXLO.js";
|
|
17
17
|
import "./chunk-KRDIR7GG.js";
|
|
18
|
+
import "./chunk-APP75CBN.js";
|
|
19
|
+
import "./chunk-SNGGSPYJ.js";
|
|
20
|
+
import "./chunk-FMLHRJDF.js";
|
|
18
21
|
import {
|
|
19
22
|
LocalRipgrepProvider
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-G2RSY56Q.js";
|
|
23
|
+
} from "./chunk-R7WN43L2.js";
|
|
22
24
|
import "./chunk-YPKNMYD4.js";
|
|
23
25
|
import "./chunk-TPP2UGQP.js";
|
|
24
26
|
import "./chunk-5PNMAWLC.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-SNGGSPYJ.js";
|
|
27
|
-
import "./chunk-FMLHRJDF.js";
|
|
27
|
+
import "./chunk-G2RSY56Q.js";
|
|
28
28
|
import "./chunk-UBX7QYBD.js";
|
|
29
29
|
import "./chunk-GJU7UOFL.js";
|
|
30
30
|
import "./chunk-76DJEQEP.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runWarpGrep,
|
|
3
3
|
runWarpGrepStreaming
|
|
4
|
-
} from "../../../chunk-
|
|
4
|
+
} from "../../../chunk-OO7ZYRV6.js";
|
|
5
5
|
import "../../../chunk-KRDIR7GG.js";
|
|
6
|
-
import "../../../chunk-5PNMAWLC.js";
|
|
7
6
|
import "../../../chunk-APP75CBN.js";
|
|
8
7
|
import "../../../chunk-SNGGSPYJ.js";
|
|
9
8
|
import "../../../chunk-FMLHRJDF.js";
|
|
9
|
+
import "../../../chunk-5PNMAWLC.js";
|
|
10
10
|
import "../../../chunk-PZ5AY32C.js";
|
|
11
11
|
export {
|
|
12
12
|
runWarpGrep,
|
|
@@ -2,24 +2,24 @@ import {
|
|
|
2
2
|
createWarpGrepTool,
|
|
3
3
|
execute,
|
|
4
4
|
warpGrepTool
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-UCWRJO7I.js";
|
|
6
6
|
import "../../chunk-KW7OEGZK.js";
|
|
7
7
|
import {
|
|
8
8
|
formatResult
|
|
9
|
-
} from "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
9
|
+
} from "../../chunk-X5J4WMYL.js";
|
|
10
|
+
import "../../chunk-OO7ZYRV6.js";
|
|
11
11
|
import "../../chunk-PUGSTXLO.js";
|
|
12
12
|
import "../../chunk-KRDIR7GG.js";
|
|
13
|
-
import "../../chunk-4KMBU6T3.js";
|
|
14
|
-
import "../../chunk-G2RSY56Q.js";
|
|
15
|
-
import "../../chunk-YPKNMYD4.js";
|
|
16
|
-
import "../../chunk-TPP2UGQP.js";
|
|
17
|
-
import "../../chunk-5PNMAWLC.js";
|
|
18
13
|
import "../../chunk-APP75CBN.js";
|
|
19
14
|
import "../../chunk-SNGGSPYJ.js";
|
|
20
15
|
import {
|
|
21
16
|
getSystemPrompt
|
|
22
17
|
} from "../../chunk-FMLHRJDF.js";
|
|
18
|
+
import "../../chunk-R7WN43L2.js";
|
|
19
|
+
import "../../chunk-YPKNMYD4.js";
|
|
20
|
+
import "../../chunk-TPP2UGQP.js";
|
|
21
|
+
import "../../chunk-5PNMAWLC.js";
|
|
22
|
+
import "../../chunk-G2RSY56Q.js";
|
|
23
23
|
import "../../chunk-PZ5AY32C.js";
|
|
24
24
|
export {
|
|
25
25
|
createWarpGrepTool,
|
|
@@ -3,18 +3,18 @@ import {
|
|
|
3
3
|
executeToolCall,
|
|
4
4
|
executeWarpGrep,
|
|
5
5
|
formatResult
|
|
6
|
-
} from "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
6
|
+
} from "../../chunk-X5J4WMYL.js";
|
|
7
|
+
import "../../chunk-OO7ZYRV6.js";
|
|
8
8
|
import "../../chunk-PUGSTXLO.js";
|
|
9
9
|
import "../../chunk-KRDIR7GG.js";
|
|
10
|
-
import "../../chunk-4KMBU6T3.js";
|
|
11
|
-
import "../../chunk-G2RSY56Q.js";
|
|
12
|
-
import "../../chunk-YPKNMYD4.js";
|
|
13
|
-
import "../../chunk-TPP2UGQP.js";
|
|
14
|
-
import "../../chunk-5PNMAWLC.js";
|
|
15
10
|
import "../../chunk-APP75CBN.js";
|
|
16
11
|
import "../../chunk-SNGGSPYJ.js";
|
|
17
12
|
import "../../chunk-FMLHRJDF.js";
|
|
13
|
+
import "../../chunk-R7WN43L2.js";
|
|
14
|
+
import "../../chunk-YPKNMYD4.js";
|
|
15
|
+
import "../../chunk-TPP2UGQP.js";
|
|
16
|
+
import "../../chunk-5PNMAWLC.js";
|
|
17
|
+
import "../../chunk-G2RSY56Q.js";
|
|
18
18
|
import "../../chunk-PZ5AY32C.js";
|
|
19
19
|
export {
|
|
20
20
|
WarpGrepClient,
|
|
@@ -5,20 +5,20 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
executeToolCall,
|
|
7
7
|
formatResult
|
|
8
|
-
} from "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
8
|
+
} from "../../chunk-X5J4WMYL.js";
|
|
9
|
+
import "../../chunk-OO7ZYRV6.js";
|
|
10
10
|
import "../../chunk-PUGSTXLO.js";
|
|
11
11
|
import "../../chunk-KRDIR7GG.js";
|
|
12
|
-
import "../../chunk-4KMBU6T3.js";
|
|
13
|
-
import "../../chunk-G2RSY56Q.js";
|
|
14
|
-
import "../../chunk-YPKNMYD4.js";
|
|
15
|
-
import "../../chunk-TPP2UGQP.js";
|
|
16
|
-
import "../../chunk-5PNMAWLC.js";
|
|
17
12
|
import "../../chunk-APP75CBN.js";
|
|
18
13
|
import "../../chunk-SNGGSPYJ.js";
|
|
19
14
|
import {
|
|
20
15
|
getSystemPrompt
|
|
21
16
|
} from "../../chunk-FMLHRJDF.js";
|
|
17
|
+
import "../../chunk-R7WN43L2.js";
|
|
18
|
+
import "../../chunk-YPKNMYD4.js";
|
|
19
|
+
import "../../chunk-TPP2UGQP.js";
|
|
20
|
+
import "../../chunk-5PNMAWLC.js";
|
|
21
|
+
import "../../chunk-G2RSY56Q.js";
|
|
22
22
|
import "../../chunk-PZ5AY32C.js";
|
|
23
23
|
|
|
24
24
|
// tools/warp_grep/gemini.ts
|
|
@@ -9,16 +9,6 @@ import {
|
|
|
9
9
|
toolListDirectory,
|
|
10
10
|
toolRead
|
|
11
11
|
} from "../../chunk-KRDIR7GG.js";
|
|
12
|
-
import {
|
|
13
|
-
LocalRipgrepProvider
|
|
14
|
-
} from "../../chunk-4KMBU6T3.js";
|
|
15
|
-
import "../../chunk-G2RSY56Q.js";
|
|
16
|
-
import "../../chunk-YPKNMYD4.js";
|
|
17
|
-
import "../../chunk-TPP2UGQP.js";
|
|
18
|
-
import {
|
|
19
|
-
AGENT_CONFIG,
|
|
20
|
-
DEFAULT_EXCLUDES
|
|
21
|
-
} from "../../chunk-5PNMAWLC.js";
|
|
22
12
|
import {
|
|
23
13
|
formatAgentToolOutput
|
|
24
14
|
} from "../../chunk-APP75CBN.js";
|
|
@@ -29,6 +19,16 @@ import {
|
|
|
29
19
|
SYSTEM_PROMPT,
|
|
30
20
|
getSystemPrompt
|
|
31
21
|
} from "../../chunk-FMLHRJDF.js";
|
|
22
|
+
import {
|
|
23
|
+
LocalRipgrepProvider
|
|
24
|
+
} from "../../chunk-R7WN43L2.js";
|
|
25
|
+
import "../../chunk-YPKNMYD4.js";
|
|
26
|
+
import "../../chunk-TPP2UGQP.js";
|
|
27
|
+
import {
|
|
28
|
+
AGENT_CONFIG,
|
|
29
|
+
DEFAULT_EXCLUDES
|
|
30
|
+
} from "../../chunk-5PNMAWLC.js";
|
|
31
|
+
import "../../chunk-G2RSY56Q.js";
|
|
32
32
|
import "../../chunk-PZ5AY32C.js";
|
|
33
33
|
|
|
34
34
|
// tools/warp_grep/harness.ts
|
|
@@ -10,11 +10,11 @@ import {
|
|
|
10
10
|
executeToolCall,
|
|
11
11
|
executeWarpGrep,
|
|
12
12
|
formatResult
|
|
13
|
-
} from "../../chunk-
|
|
13
|
+
} from "../../chunk-X5J4WMYL.js";
|
|
14
14
|
import {
|
|
15
15
|
runWarpGrep,
|
|
16
16
|
runWarpGrepStreaming
|
|
17
|
-
} from "../../chunk-
|
|
17
|
+
} from "../../chunk-OO7ZYRV6.js";
|
|
18
18
|
import {
|
|
19
19
|
RemoteCommandsProvider
|
|
20
20
|
} from "../../chunk-PUGSTXLO.js";
|
|
@@ -25,21 +25,21 @@ import {
|
|
|
25
25
|
toolListDirectory,
|
|
26
26
|
toolRead
|
|
27
27
|
} from "../../chunk-KRDIR7GG.js";
|
|
28
|
+
import "../../chunk-APP75CBN.js";
|
|
29
|
+
import "../../chunk-SNGGSPYJ.js";
|
|
30
|
+
import {
|
|
31
|
+
SYSTEM_PROMPT,
|
|
32
|
+
getSystemPrompt
|
|
33
|
+
} from "../../chunk-FMLHRJDF.js";
|
|
28
34
|
import {
|
|
29
35
|
LocalRipgrepProvider
|
|
30
|
-
} from "../../chunk-
|
|
31
|
-
import "../../chunk-G2RSY56Q.js";
|
|
36
|
+
} from "../../chunk-R7WN43L2.js";
|
|
32
37
|
import {
|
|
33
38
|
fixPathRepetition
|
|
34
39
|
} from "../../chunk-YPKNMYD4.js";
|
|
35
40
|
import "../../chunk-TPP2UGQP.js";
|
|
36
41
|
import "../../chunk-5PNMAWLC.js";
|
|
37
|
-
import "../../chunk-
|
|
38
|
-
import "../../chunk-SNGGSPYJ.js";
|
|
39
|
-
import {
|
|
40
|
-
SYSTEM_PROMPT,
|
|
41
|
-
getSystemPrompt
|
|
42
|
-
} from "../../chunk-FMLHRJDF.js";
|
|
42
|
+
import "../../chunk-G2RSY56Q.js";
|
|
43
43
|
import "../../chunk-PZ5AY32C.js";
|
|
44
44
|
export {
|
|
45
45
|
LocalRipgrepProvider,
|
|
@@ -3,24 +3,24 @@ import {
|
|
|
3
3
|
execute,
|
|
4
4
|
openai_default,
|
|
5
5
|
warpGrepTool
|
|
6
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-6SCCLPXJ.js";
|
|
7
7
|
import "../../chunk-KW7OEGZK.js";
|
|
8
8
|
import {
|
|
9
9
|
formatResult
|
|
10
|
-
} from "../../chunk-
|
|
11
|
-
import "../../chunk-
|
|
10
|
+
} from "../../chunk-X5J4WMYL.js";
|
|
11
|
+
import "../../chunk-OO7ZYRV6.js";
|
|
12
12
|
import "../../chunk-PUGSTXLO.js";
|
|
13
13
|
import "../../chunk-KRDIR7GG.js";
|
|
14
|
-
import "../../chunk-4KMBU6T3.js";
|
|
15
|
-
import "../../chunk-G2RSY56Q.js";
|
|
16
|
-
import "../../chunk-YPKNMYD4.js";
|
|
17
|
-
import "../../chunk-TPP2UGQP.js";
|
|
18
|
-
import "../../chunk-5PNMAWLC.js";
|
|
19
14
|
import "../../chunk-APP75CBN.js";
|
|
20
15
|
import "../../chunk-SNGGSPYJ.js";
|
|
21
16
|
import {
|
|
22
17
|
getSystemPrompt
|
|
23
18
|
} from "../../chunk-FMLHRJDF.js";
|
|
19
|
+
import "../../chunk-R7WN43L2.js";
|
|
20
|
+
import "../../chunk-YPKNMYD4.js";
|
|
21
|
+
import "../../chunk-TPP2UGQP.js";
|
|
22
|
+
import "../../chunk-5PNMAWLC.js";
|
|
23
|
+
import "../../chunk-G2RSY56Q.js";
|
|
24
24
|
import "../../chunk-PZ5AY32C.js";
|
|
25
25
|
export {
|
|
26
26
|
createWarpGrepTool,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LocalRipgrepProvider
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-G2RSY56Q.js";
|
|
3
|
+
} from "../../../chunk-R7WN43L2.js";
|
|
5
4
|
import "../../../chunk-YPKNMYD4.js";
|
|
6
5
|
import "../../../chunk-TPP2UGQP.js";
|
|
7
6
|
import "../../../chunk-5PNMAWLC.js";
|
|
7
|
+
import "../../../chunk-G2RSY56Q.js";
|
|
8
8
|
import "../../../chunk-PZ5AY32C.js";
|
|
9
9
|
export {
|
|
10
10
|
LocalRipgrepProvider
|
|
@@ -3,24 +3,24 @@ import {
|
|
|
3
3
|
execute,
|
|
4
4
|
vercel_default,
|
|
5
5
|
warpGrepJsonSchema
|
|
6
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-U5SDUBSV.js";
|
|
7
7
|
import "../../chunk-KW7OEGZK.js";
|
|
8
8
|
import {
|
|
9
9
|
formatResult
|
|
10
|
-
} from "../../chunk-
|
|
11
|
-
import "../../chunk-
|
|
10
|
+
} from "../../chunk-X5J4WMYL.js";
|
|
11
|
+
import "../../chunk-OO7ZYRV6.js";
|
|
12
12
|
import "../../chunk-PUGSTXLO.js";
|
|
13
13
|
import "../../chunk-KRDIR7GG.js";
|
|
14
|
-
import "../../chunk-4KMBU6T3.js";
|
|
15
|
-
import "../../chunk-G2RSY56Q.js";
|
|
16
|
-
import "../../chunk-YPKNMYD4.js";
|
|
17
|
-
import "../../chunk-TPP2UGQP.js";
|
|
18
|
-
import "../../chunk-5PNMAWLC.js";
|
|
19
14
|
import "../../chunk-APP75CBN.js";
|
|
20
15
|
import "../../chunk-SNGGSPYJ.js";
|
|
21
16
|
import {
|
|
22
17
|
getSystemPrompt
|
|
23
18
|
} from "../../chunk-FMLHRJDF.js";
|
|
19
|
+
import "../../chunk-R7WN43L2.js";
|
|
20
|
+
import "../../chunk-YPKNMYD4.js";
|
|
21
|
+
import "../../chunk-TPP2UGQP.js";
|
|
22
|
+
import "../../chunk-5PNMAWLC.js";
|
|
23
|
+
import "../../chunk-G2RSY56Q.js";
|
|
24
24
|
import "../../chunk-PZ5AY32C.js";
|
|
25
25
|
export {
|
|
26
26
|
createWarpGrepTool,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@morphllm/morphsdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.98",
|
|
4
4
|
"description": "TypeScript SDK and CLI for Morph Fast Apply integration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -160,6 +160,7 @@
|
|
|
160
160
|
"ai": "^5.0.0",
|
|
161
161
|
"diff": "^7.0.0",
|
|
162
162
|
"isomorphic-git": "^1.25.10",
|
|
163
|
+
"openai": "^4.52.7",
|
|
163
164
|
"zod": "^3.23.8"
|
|
164
165
|
},
|
|
165
166
|
"devDependencies": {
|
|
@@ -173,7 +174,6 @@
|
|
|
173
174
|
"@typescript-eslint/parser": "^7.18.0",
|
|
174
175
|
"dotenv": "^16.4.5",
|
|
175
176
|
"eslint": "^8.57.0",
|
|
176
|
-
"openai": "^4.52.7",
|
|
177
177
|
"shx": "^0.3.4",
|
|
178
178
|
"tsup": "^8.5.0",
|
|
179
179
|
"tsx": "^4.16.2",
|
|
@@ -183,7 +183,6 @@
|
|
|
183
183
|
"peerDependencies": {
|
|
184
184
|
"@anthropic-ai/sdk": ">=0.25.0",
|
|
185
185
|
"@google/generative-ai": ">=0.21.0",
|
|
186
|
-
"openai": ">=4.0.0",
|
|
187
186
|
"ai": ">=5.0.0",
|
|
188
187
|
"zod": ">=3.23.0"
|
|
189
188
|
},
|
|
@@ -194,9 +193,6 @@
|
|
|
194
193
|
"@google/generative-ai": {
|
|
195
194
|
"optional": true
|
|
196
195
|
},
|
|
197
|
-
"openai": {
|
|
198
|
-
"optional": true
|
|
199
|
-
},
|
|
200
196
|
"ai": {
|
|
201
197
|
"optional": true
|
|
202
198
|
},
|
|
@@ -206,6 +202,5 @@
|
|
|
206
202
|
},
|
|
207
203
|
"publishConfig": {
|
|
208
204
|
"access": "public"
|
|
209
|
-
}
|
|
210
|
-
"packageManager": "pnpm@10.15.1+sha512.34e538c329b5553014ca8e8f4535997f96180a1d0f614339357449935350d924e22f8614682191264ec33d1462ac21561aff97f6bb18065351c162c7e8f6de67"
|
|
205
|
+
}
|
|
211
206
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|