@morphllm/morphsdk 0.2.67 → 0.2.69
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-GGYMQZXI.js → chunk-26QXQFLZ.js} +86 -1
- package/dist/chunk-26QXQFLZ.js.map +1 -0
- package/dist/{chunk-SQHZPUCS.js → chunk-2LSVUHIE.js} +2 -2
- package/dist/{chunk-IVT6YMFA.js → chunk-B3J2O2NW.js} +5 -5
- package/dist/{chunk-7JEL2VZO.js → chunk-E4434A4Y.js} +3 -3
- package/dist/{chunk-7V2KIZT5.js → chunk-P6OEPI4N.js} +2 -2
- package/dist/{chunk-AQD2JCLI.js → chunk-Q6GHKKS5.js} +2 -2
- package/dist/{chunk-ZO4PPFCZ.js → chunk-QIG7YPFW.js} +92 -8
- package/dist/chunk-QIG7YPFW.js.map +1 -0
- package/dist/{chunk-XLSODV6H.js → chunk-XFCMTW5L.js} +2 -2
- package/dist/client.cjs +176 -7
- package/dist/client.cjs.map +1 -1
- package/dist/client.js +7 -7
- package/dist/index.cjs +176 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -8
- package/dist/tools/warp_grep/anthropic.cjs +176 -7
- package/dist/tools/warp_grep/anthropic.cjs.map +1 -1
- package/dist/tools/warp_grep/anthropic.js +4 -4
- package/dist/tools/warp_grep/client.cjs +176 -7
- 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 +176 -7
- package/dist/tools/warp_grep/gemini.cjs.map +1 -1
- package/dist/tools/warp_grep/gemini.js +4 -4
- package/dist/tools/warp_grep/harness.cjs +91 -7
- package/dist/tools/warp_grep/harness.cjs.map +1 -1
- package/dist/tools/warp_grep/harness.js +1 -1
- package/dist/tools/warp_grep/index.cjs +176 -7
- package/dist/tools/warp_grep/index.cjs.map +1 -1
- package/dist/tools/warp_grep/index.js +7 -7
- package/dist/tools/warp_grep/openai.cjs +176 -7
- package/dist/tools/warp_grep/openai.cjs.map +1 -1
- package/dist/tools/warp_grep/openai.js +4 -4
- package/dist/tools/warp_grep/providers/local.cjs +91 -7
- package/dist/tools/warp_grep/providers/local.cjs.map +1 -1
- package/dist/tools/warp_grep/providers/local.js +1 -1
- package/dist/tools/warp_grep/providers/remote.cjs +85 -0
- package/dist/tools/warp_grep/providers/remote.cjs.map +1 -1
- package/dist/tools/warp_grep/providers/remote.js +1 -1
- package/dist/tools/warp_grep/vercel.cjs +176 -7
- package/dist/tools/warp_grep/vercel.cjs.map +1 -1
- package/dist/tools/warp_grep/vercel.js +4 -4
- package/package.json +1 -1
- package/dist/chunk-GGYMQZXI.js.map +0 -1
- package/dist/chunk-ZO4PPFCZ.js.map +0 -1
- /package/dist/{chunk-SQHZPUCS.js.map → chunk-2LSVUHIE.js.map} +0 -0
- /package/dist/{chunk-IVT6YMFA.js.map → chunk-B3J2O2NW.js.map} +0 -0
- /package/dist/{chunk-7JEL2VZO.js.map → chunk-E4434A4Y.js.map} +0 -0
- /package/dist/{chunk-7V2KIZT5.js.map → chunk-P6OEPI4N.js.map} +0 -0
- /package/dist/{chunk-AQD2JCLI.js.map → chunk-Q6GHKKS5.js.map} +0 -0
- /package/dist/{chunk-XLSODV6H.js.map → chunk-XFCMTW5L.js.map} +0 -0
package/dist/client.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MorphClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-B3J2O2NW.js";
|
|
4
|
+
import "./chunk-Q6GHKKS5.js";
|
|
5
|
+
import "./chunk-XFCMTW5L.js";
|
|
6
|
+
import "./chunk-P6OEPI4N.js";
|
|
7
7
|
import "./chunk-KW7OEGZK.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-E4434A4Y.js";
|
|
9
9
|
import "./chunk-SUBBMTMY.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-26QXQFLZ.js";
|
|
11
11
|
import "./chunk-DCIUCDWJ.js";
|
|
12
12
|
import "./chunk-APP75CBN.js";
|
|
13
13
|
import "./chunk-5QRN3JNB.js";
|
|
14
14
|
import "./chunk-Q5AHGIQO.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-QIG7YPFW.js";
|
|
16
16
|
import "./chunk-G2RSY56Q.js";
|
|
17
17
|
import "./chunk-SMGZ6A64.js";
|
|
18
18
|
import "./chunk-TPP2UGQP.js";
|
package/dist/index.cjs
CHANGED
|
@@ -2096,6 +2096,90 @@ async function readAllLines(filePath) {
|
|
|
2096
2096
|
}
|
|
2097
2097
|
|
|
2098
2098
|
// tools/warp_grep/providers/local.ts
|
|
2099
|
+
var SKIP_NAMES = /* @__PURE__ */ new Set([
|
|
2100
|
+
// Version control
|
|
2101
|
+
".git",
|
|
2102
|
+
".svn",
|
|
2103
|
+
".hg",
|
|
2104
|
+
".bzr",
|
|
2105
|
+
// Dependencies
|
|
2106
|
+
"node_modules",
|
|
2107
|
+
"bower_components",
|
|
2108
|
+
".pnpm",
|
|
2109
|
+
".yarn",
|
|
2110
|
+
"vendor",
|
|
2111
|
+
"Pods",
|
|
2112
|
+
".bundle",
|
|
2113
|
+
// Python
|
|
2114
|
+
"__pycache__",
|
|
2115
|
+
".pytest_cache",
|
|
2116
|
+
".mypy_cache",
|
|
2117
|
+
".ruff_cache",
|
|
2118
|
+
".venv",
|
|
2119
|
+
"venv",
|
|
2120
|
+
".tox",
|
|
2121
|
+
".nox",
|
|
2122
|
+
".eggs",
|
|
2123
|
+
// Build outputs
|
|
2124
|
+
"dist",
|
|
2125
|
+
"build",
|
|
2126
|
+
"out",
|
|
2127
|
+
"output",
|
|
2128
|
+
"target",
|
|
2129
|
+
"_build",
|
|
2130
|
+
".next",
|
|
2131
|
+
".nuxt",
|
|
2132
|
+
".output",
|
|
2133
|
+
".vercel",
|
|
2134
|
+
".netlify",
|
|
2135
|
+
// Cache
|
|
2136
|
+
".cache",
|
|
2137
|
+
".parcel-cache",
|
|
2138
|
+
".turbo",
|
|
2139
|
+
".nx",
|
|
2140
|
+
".gradle",
|
|
2141
|
+
// IDE
|
|
2142
|
+
".idea",
|
|
2143
|
+
".vscode",
|
|
2144
|
+
".vs",
|
|
2145
|
+
// Coverage
|
|
2146
|
+
"coverage",
|
|
2147
|
+
".coverage",
|
|
2148
|
+
"htmlcov",
|
|
2149
|
+
".nyc_output",
|
|
2150
|
+
// Temp
|
|
2151
|
+
"tmp",
|
|
2152
|
+
"temp",
|
|
2153
|
+
".tmp",
|
|
2154
|
+
".temp",
|
|
2155
|
+
// Lock files
|
|
2156
|
+
"package-lock.json",
|
|
2157
|
+
"yarn.lock",
|
|
2158
|
+
"pnpm-lock.yaml",
|
|
2159
|
+
"bun.lockb",
|
|
2160
|
+
"Cargo.lock",
|
|
2161
|
+
"Gemfile.lock",
|
|
2162
|
+
"poetry.lock"
|
|
2163
|
+
]);
|
|
2164
|
+
var SKIP_EXTENSIONS = /* @__PURE__ */ new Set([
|
|
2165
|
+
".min.js",
|
|
2166
|
+
".min.css",
|
|
2167
|
+
".bundle.js",
|
|
2168
|
+
".wasm",
|
|
2169
|
+
".so",
|
|
2170
|
+
".dll",
|
|
2171
|
+
".pyc",
|
|
2172
|
+
".map",
|
|
2173
|
+
".js.map"
|
|
2174
|
+
]);
|
|
2175
|
+
function shouldSkip(name) {
|
|
2176
|
+
if (SKIP_NAMES.has(name)) return true;
|
|
2177
|
+
if (name.startsWith(".")) return true;
|
|
2178
|
+
for (const ext of SKIP_EXTENSIONS) {
|
|
2179
|
+
if (name.endsWith(ext)) return true;
|
|
2180
|
+
}
|
|
2181
|
+
return false;
|
|
2182
|
+
}
|
|
2099
2183
|
var LocalRipgrepProvider = class {
|
|
2100
2184
|
constructor(repoRoot, excludes = DEFAULT_EXCLUDES) {
|
|
2101
2185
|
this.repoRoot = repoRoot;
|
|
@@ -2228,6 +2312,7 @@ Details: ${res.stderr}` : ""}`
|
|
|
2228
2312
|
const maxResults = params.maxResults ?? AGENT_CONFIG.MAX_OUTPUT_LINES;
|
|
2229
2313
|
const maxDepth = params.maxDepth ?? AGENT_CONFIG.MAX_LIST_DEPTH;
|
|
2230
2314
|
const regex = params.pattern ? new RegExp(params.pattern) : null;
|
|
2315
|
+
const repoRoot = this.repoRoot;
|
|
2231
2316
|
const results = [];
|
|
2232
2317
|
let timedOut = false;
|
|
2233
2318
|
const startTime = Date.now();
|
|
@@ -2240,18 +2325,17 @@ Details: ${res.stderr}` : ""}`
|
|
|
2240
2325
|
const entries = await import_promises3.default.readdir(dir, { withFileTypes: true });
|
|
2241
2326
|
for (const entry of entries) {
|
|
2242
2327
|
if (timedOut || results.length >= maxResults) break;
|
|
2243
|
-
|
|
2244
|
-
const rel = toRepoRelative(abs, full).replace(/^[.][/\\]?/, "");
|
|
2245
|
-
if (DEFAULT_EXCLUDES.some((ex) => rel.split(import_path5.default.sep).includes(ex))) continue;
|
|
2328
|
+
if (shouldSkip(entry.name)) continue;
|
|
2246
2329
|
if (regex && !regex.test(entry.name)) continue;
|
|
2330
|
+
const full = import_path5.default.join(dir, entry.name);
|
|
2331
|
+
const isDir = entry.isDirectory();
|
|
2247
2332
|
results.push({
|
|
2248
2333
|
name: entry.name,
|
|
2249
|
-
path: toRepoRelative(
|
|
2250
|
-
|
|
2251
|
-
type: entry.isDirectory() ? "dir" : "file",
|
|
2334
|
+
path: toRepoRelative(repoRoot, full),
|
|
2335
|
+
type: isDir ? "dir" : "file",
|
|
2252
2336
|
depth
|
|
2253
2337
|
});
|
|
2254
|
-
if (
|
|
2338
|
+
if (isDir) {
|
|
2255
2339
|
await walk(full, depth + 1);
|
|
2256
2340
|
}
|
|
2257
2341
|
}
|
|
@@ -2262,6 +2346,90 @@ Details: ${res.stderr}` : ""}`
|
|
|
2262
2346
|
};
|
|
2263
2347
|
|
|
2264
2348
|
// tools/warp_grep/providers/remote.ts
|
|
2349
|
+
var SKIP_NAMES2 = /* @__PURE__ */ new Set([
|
|
2350
|
+
// Version control
|
|
2351
|
+
".git",
|
|
2352
|
+
".svn",
|
|
2353
|
+
".hg",
|
|
2354
|
+
".bzr",
|
|
2355
|
+
// Dependencies
|
|
2356
|
+
"node_modules",
|
|
2357
|
+
"bower_components",
|
|
2358
|
+
".pnpm",
|
|
2359
|
+
".yarn",
|
|
2360
|
+
"vendor",
|
|
2361
|
+
"Pods",
|
|
2362
|
+
".bundle",
|
|
2363
|
+
// Python
|
|
2364
|
+
"__pycache__",
|
|
2365
|
+
".pytest_cache",
|
|
2366
|
+
".mypy_cache",
|
|
2367
|
+
".ruff_cache",
|
|
2368
|
+
".venv",
|
|
2369
|
+
"venv",
|
|
2370
|
+
".tox",
|
|
2371
|
+
".nox",
|
|
2372
|
+
".eggs",
|
|
2373
|
+
// Build outputs
|
|
2374
|
+
"dist",
|
|
2375
|
+
"build",
|
|
2376
|
+
"out",
|
|
2377
|
+
"output",
|
|
2378
|
+
"target",
|
|
2379
|
+
"_build",
|
|
2380
|
+
".next",
|
|
2381
|
+
".nuxt",
|
|
2382
|
+
".output",
|
|
2383
|
+
".vercel",
|
|
2384
|
+
".netlify",
|
|
2385
|
+
// Cache
|
|
2386
|
+
".cache",
|
|
2387
|
+
".parcel-cache",
|
|
2388
|
+
".turbo",
|
|
2389
|
+
".nx",
|
|
2390
|
+
".gradle",
|
|
2391
|
+
// IDE
|
|
2392
|
+
".idea",
|
|
2393
|
+
".vscode",
|
|
2394
|
+
".vs",
|
|
2395
|
+
// Coverage
|
|
2396
|
+
"coverage",
|
|
2397
|
+
".coverage",
|
|
2398
|
+
"htmlcov",
|
|
2399
|
+
".nyc_output",
|
|
2400
|
+
// Temp
|
|
2401
|
+
"tmp",
|
|
2402
|
+
"temp",
|
|
2403
|
+
".tmp",
|
|
2404
|
+
".temp",
|
|
2405
|
+
// Lock files
|
|
2406
|
+
"package-lock.json",
|
|
2407
|
+
"yarn.lock",
|
|
2408
|
+
"pnpm-lock.yaml",
|
|
2409
|
+
"bun.lockb",
|
|
2410
|
+
"Cargo.lock",
|
|
2411
|
+
"Gemfile.lock",
|
|
2412
|
+
"poetry.lock"
|
|
2413
|
+
]);
|
|
2414
|
+
var SKIP_EXTENSIONS2 = /* @__PURE__ */ new Set([
|
|
2415
|
+
".min.js",
|
|
2416
|
+
".min.css",
|
|
2417
|
+
".bundle.js",
|
|
2418
|
+
".wasm",
|
|
2419
|
+
".so",
|
|
2420
|
+
".dll",
|
|
2421
|
+
".pyc",
|
|
2422
|
+
".map",
|
|
2423
|
+
".js.map"
|
|
2424
|
+
]);
|
|
2425
|
+
function shouldSkip2(name) {
|
|
2426
|
+
if (SKIP_NAMES2.has(name)) return true;
|
|
2427
|
+
if (name.startsWith(".")) return true;
|
|
2428
|
+
for (const ext of SKIP_EXTENSIONS2) {
|
|
2429
|
+
if (name.endsWith(ext)) return true;
|
|
2430
|
+
}
|
|
2431
|
+
return false;
|
|
2432
|
+
}
|
|
2265
2433
|
var RemoteCommandsProvider = class {
|
|
2266
2434
|
constructor(repoRoot, commands) {
|
|
2267
2435
|
this.repoRoot = repoRoot;
|
|
@@ -2328,6 +2496,7 @@ var RemoteCommandsProvider = class {
|
|
|
2328
2496
|
for (const fullPath of paths) {
|
|
2329
2497
|
if (fullPath === params.path || fullPath === this.repoRoot) continue;
|
|
2330
2498
|
const name = fullPath.split("/").pop() || "";
|
|
2499
|
+
if (shouldSkip2(name)) continue;
|
|
2331
2500
|
if (regex && !regex.test(name)) continue;
|
|
2332
2501
|
let relativePath = fullPath;
|
|
2333
2502
|
if (fullPath.startsWith(this.repoRoot)) {
|