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