@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/index.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import "./chunk-ISWL67SF.js";
|
|
2
|
-
import "./chunk-
|
|
2
|
+
import "./chunk-2LSVUHIE.js";
|
|
3
3
|
import {
|
|
4
4
|
AnthropicToolFactory,
|
|
5
5
|
MorphClient,
|
|
6
6
|
OpenAIToolFactory,
|
|
7
7
|
VercelToolFactory
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-B3J2O2NW.js";
|
|
9
|
+
import "./chunk-Q6GHKKS5.js";
|
|
10
|
+
import "./chunk-XFCMTW5L.js";
|
|
11
|
+
import "./chunk-P6OEPI4N.js";
|
|
12
12
|
import "./chunk-KW7OEGZK.js";
|
|
13
13
|
import {
|
|
14
14
|
WarpGrepClient
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-E4434A4Y.js";
|
|
16
16
|
import "./chunk-SUBBMTMY.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-26QXQFLZ.js";
|
|
18
18
|
import "./chunk-DCIUCDWJ.js";
|
|
19
19
|
import "./chunk-APP75CBN.js";
|
|
20
20
|
import "./chunk-5QRN3JNB.js";
|
|
21
21
|
import "./chunk-Q5AHGIQO.js";
|
|
22
22
|
import {
|
|
23
23
|
LocalRipgrepProvider
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-QIG7YPFW.js";
|
|
25
25
|
import "./chunk-G2RSY56Q.js";
|
|
26
26
|
import "./chunk-SMGZ6A64.js";
|
|
27
27
|
import "./chunk-TPP2UGQP.js";
|
|
@@ -1210,6 +1210,90 @@ async function readAllLines(filePath) {
|
|
|
1210
1210
|
}
|
|
1211
1211
|
|
|
1212
1212
|
// tools/warp_grep/providers/local.ts
|
|
1213
|
+
var SKIP_NAMES = /* @__PURE__ */ new Set([
|
|
1214
|
+
// Version control
|
|
1215
|
+
".git",
|
|
1216
|
+
".svn",
|
|
1217
|
+
".hg",
|
|
1218
|
+
".bzr",
|
|
1219
|
+
// Dependencies
|
|
1220
|
+
"node_modules",
|
|
1221
|
+
"bower_components",
|
|
1222
|
+
".pnpm",
|
|
1223
|
+
".yarn",
|
|
1224
|
+
"vendor",
|
|
1225
|
+
"Pods",
|
|
1226
|
+
".bundle",
|
|
1227
|
+
// Python
|
|
1228
|
+
"__pycache__",
|
|
1229
|
+
".pytest_cache",
|
|
1230
|
+
".mypy_cache",
|
|
1231
|
+
".ruff_cache",
|
|
1232
|
+
".venv",
|
|
1233
|
+
"venv",
|
|
1234
|
+
".tox",
|
|
1235
|
+
".nox",
|
|
1236
|
+
".eggs",
|
|
1237
|
+
// Build outputs
|
|
1238
|
+
"dist",
|
|
1239
|
+
"build",
|
|
1240
|
+
"out",
|
|
1241
|
+
"output",
|
|
1242
|
+
"target",
|
|
1243
|
+
"_build",
|
|
1244
|
+
".next",
|
|
1245
|
+
".nuxt",
|
|
1246
|
+
".output",
|
|
1247
|
+
".vercel",
|
|
1248
|
+
".netlify",
|
|
1249
|
+
// Cache
|
|
1250
|
+
".cache",
|
|
1251
|
+
".parcel-cache",
|
|
1252
|
+
".turbo",
|
|
1253
|
+
".nx",
|
|
1254
|
+
".gradle",
|
|
1255
|
+
// IDE
|
|
1256
|
+
".idea",
|
|
1257
|
+
".vscode",
|
|
1258
|
+
".vs",
|
|
1259
|
+
// Coverage
|
|
1260
|
+
"coverage",
|
|
1261
|
+
".coverage",
|
|
1262
|
+
"htmlcov",
|
|
1263
|
+
".nyc_output",
|
|
1264
|
+
// Temp
|
|
1265
|
+
"tmp",
|
|
1266
|
+
"temp",
|
|
1267
|
+
".tmp",
|
|
1268
|
+
".temp",
|
|
1269
|
+
// Lock files
|
|
1270
|
+
"package-lock.json",
|
|
1271
|
+
"yarn.lock",
|
|
1272
|
+
"pnpm-lock.yaml",
|
|
1273
|
+
"bun.lockb",
|
|
1274
|
+
"Cargo.lock",
|
|
1275
|
+
"Gemfile.lock",
|
|
1276
|
+
"poetry.lock"
|
|
1277
|
+
]);
|
|
1278
|
+
var SKIP_EXTENSIONS = /* @__PURE__ */ new Set([
|
|
1279
|
+
".min.js",
|
|
1280
|
+
".min.css",
|
|
1281
|
+
".bundle.js",
|
|
1282
|
+
".wasm",
|
|
1283
|
+
".so",
|
|
1284
|
+
".dll",
|
|
1285
|
+
".pyc",
|
|
1286
|
+
".map",
|
|
1287
|
+
".js.map"
|
|
1288
|
+
]);
|
|
1289
|
+
function shouldSkip(name) {
|
|
1290
|
+
if (SKIP_NAMES.has(name)) return true;
|
|
1291
|
+
if (name.startsWith(".")) return true;
|
|
1292
|
+
for (const ext of SKIP_EXTENSIONS) {
|
|
1293
|
+
if (name.endsWith(ext)) return true;
|
|
1294
|
+
}
|
|
1295
|
+
return false;
|
|
1296
|
+
}
|
|
1213
1297
|
var LocalRipgrepProvider = class {
|
|
1214
1298
|
constructor(repoRoot, excludes = DEFAULT_EXCLUDES) {
|
|
1215
1299
|
this.repoRoot = repoRoot;
|
|
@@ -1342,6 +1426,7 @@ Details: ${res.stderr}` : ""}`
|
|
|
1342
1426
|
const maxResults = params.maxResults ?? AGENT_CONFIG.MAX_OUTPUT_LINES;
|
|
1343
1427
|
const maxDepth = params.maxDepth ?? AGENT_CONFIG.MAX_LIST_DEPTH;
|
|
1344
1428
|
const regex = params.pattern ? new RegExp(params.pattern) : null;
|
|
1429
|
+
const repoRoot = this.repoRoot;
|
|
1345
1430
|
const results = [];
|
|
1346
1431
|
let timedOut = false;
|
|
1347
1432
|
const startTime = Date.now();
|
|
@@ -1354,18 +1439,17 @@ Details: ${res.stderr}` : ""}`
|
|
|
1354
1439
|
const entries = await import_promises2.default.readdir(dir, { withFileTypes: true });
|
|
1355
1440
|
for (const entry of entries) {
|
|
1356
1441
|
if (timedOut || results.length >= maxResults) break;
|
|
1357
|
-
|
|
1358
|
-
const rel = toRepoRelative(abs, full).replace(/^[.][/\\]?/, "");
|
|
1359
|
-
if (DEFAULT_EXCLUDES.some((ex) => rel.split(import_path4.default.sep).includes(ex))) continue;
|
|
1442
|
+
if (shouldSkip(entry.name)) continue;
|
|
1360
1443
|
if (regex && !regex.test(entry.name)) continue;
|
|
1444
|
+
const full = import_path4.default.join(dir, entry.name);
|
|
1445
|
+
const isDir = entry.isDirectory();
|
|
1361
1446
|
results.push({
|
|
1362
1447
|
name: entry.name,
|
|
1363
|
-
path: toRepoRelative(
|
|
1364
|
-
|
|
1365
|
-
type: entry.isDirectory() ? "dir" : "file",
|
|
1448
|
+
path: toRepoRelative(repoRoot, full),
|
|
1449
|
+
type: isDir ? "dir" : "file",
|
|
1366
1450
|
depth
|
|
1367
1451
|
});
|
|
1368
|
-
if (
|
|
1452
|
+
if (isDir) {
|
|
1369
1453
|
await walk(full, depth + 1);
|
|
1370
1454
|
}
|
|
1371
1455
|
}
|
|
@@ -1376,6 +1460,90 @@ Details: ${res.stderr}` : ""}`
|
|
|
1376
1460
|
};
|
|
1377
1461
|
|
|
1378
1462
|
// tools/warp_grep/providers/remote.ts
|
|
1463
|
+
var SKIP_NAMES2 = /* @__PURE__ */ new Set([
|
|
1464
|
+
// Version control
|
|
1465
|
+
".git",
|
|
1466
|
+
".svn",
|
|
1467
|
+
".hg",
|
|
1468
|
+
".bzr",
|
|
1469
|
+
// Dependencies
|
|
1470
|
+
"node_modules",
|
|
1471
|
+
"bower_components",
|
|
1472
|
+
".pnpm",
|
|
1473
|
+
".yarn",
|
|
1474
|
+
"vendor",
|
|
1475
|
+
"Pods",
|
|
1476
|
+
".bundle",
|
|
1477
|
+
// Python
|
|
1478
|
+
"__pycache__",
|
|
1479
|
+
".pytest_cache",
|
|
1480
|
+
".mypy_cache",
|
|
1481
|
+
".ruff_cache",
|
|
1482
|
+
".venv",
|
|
1483
|
+
"venv",
|
|
1484
|
+
".tox",
|
|
1485
|
+
".nox",
|
|
1486
|
+
".eggs",
|
|
1487
|
+
// Build outputs
|
|
1488
|
+
"dist",
|
|
1489
|
+
"build",
|
|
1490
|
+
"out",
|
|
1491
|
+
"output",
|
|
1492
|
+
"target",
|
|
1493
|
+
"_build",
|
|
1494
|
+
".next",
|
|
1495
|
+
".nuxt",
|
|
1496
|
+
".output",
|
|
1497
|
+
".vercel",
|
|
1498
|
+
".netlify",
|
|
1499
|
+
// Cache
|
|
1500
|
+
".cache",
|
|
1501
|
+
".parcel-cache",
|
|
1502
|
+
".turbo",
|
|
1503
|
+
".nx",
|
|
1504
|
+
".gradle",
|
|
1505
|
+
// IDE
|
|
1506
|
+
".idea",
|
|
1507
|
+
".vscode",
|
|
1508
|
+
".vs",
|
|
1509
|
+
// Coverage
|
|
1510
|
+
"coverage",
|
|
1511
|
+
".coverage",
|
|
1512
|
+
"htmlcov",
|
|
1513
|
+
".nyc_output",
|
|
1514
|
+
// Temp
|
|
1515
|
+
"tmp",
|
|
1516
|
+
"temp",
|
|
1517
|
+
".tmp",
|
|
1518
|
+
".temp",
|
|
1519
|
+
// Lock files
|
|
1520
|
+
"package-lock.json",
|
|
1521
|
+
"yarn.lock",
|
|
1522
|
+
"pnpm-lock.yaml",
|
|
1523
|
+
"bun.lockb",
|
|
1524
|
+
"Cargo.lock",
|
|
1525
|
+
"Gemfile.lock",
|
|
1526
|
+
"poetry.lock"
|
|
1527
|
+
]);
|
|
1528
|
+
var SKIP_EXTENSIONS2 = /* @__PURE__ */ new Set([
|
|
1529
|
+
".min.js",
|
|
1530
|
+
".min.css",
|
|
1531
|
+
".bundle.js",
|
|
1532
|
+
".wasm",
|
|
1533
|
+
".so",
|
|
1534
|
+
".dll",
|
|
1535
|
+
".pyc",
|
|
1536
|
+
".map",
|
|
1537
|
+
".js.map"
|
|
1538
|
+
]);
|
|
1539
|
+
function shouldSkip2(name) {
|
|
1540
|
+
if (SKIP_NAMES2.has(name)) return true;
|
|
1541
|
+
if (name.startsWith(".")) return true;
|
|
1542
|
+
for (const ext of SKIP_EXTENSIONS2) {
|
|
1543
|
+
if (name.endsWith(ext)) return true;
|
|
1544
|
+
}
|
|
1545
|
+
return false;
|
|
1546
|
+
}
|
|
1379
1547
|
var RemoteCommandsProvider = class {
|
|
1380
1548
|
constructor(repoRoot, commands) {
|
|
1381
1549
|
this.repoRoot = repoRoot;
|
|
@@ -1442,6 +1610,7 @@ var RemoteCommandsProvider = class {
|
|
|
1442
1610
|
for (const fullPath of paths) {
|
|
1443
1611
|
if (fullPath === params.path || fullPath === this.repoRoot) continue;
|
|
1444
1612
|
const name = fullPath.split("/").pop() || "";
|
|
1613
|
+
if (shouldSkip2(name)) continue;
|
|
1445
1614
|
if (regex && !regex.test(name)) continue;
|
|
1446
1615
|
let relativePath = fullPath;
|
|
1447
1616
|
if (fullPath.startsWith(this.repoRoot)) {
|