@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.
Files changed (52) hide show
  1. package/dist/{chunk-GGYMQZXI.js → chunk-26QXQFLZ.js} +86 -1
  2. package/dist/chunk-26QXQFLZ.js.map +1 -0
  3. package/dist/{chunk-SQHZPUCS.js → chunk-2LSVUHIE.js} +2 -2
  4. package/dist/{chunk-IVT6YMFA.js → chunk-B3J2O2NW.js} +5 -5
  5. package/dist/{chunk-7JEL2VZO.js → chunk-E4434A4Y.js} +3 -3
  6. package/dist/{chunk-7V2KIZT5.js → chunk-P6OEPI4N.js} +2 -2
  7. package/dist/{chunk-AQD2JCLI.js → chunk-Q6GHKKS5.js} +2 -2
  8. package/dist/{chunk-ZO4PPFCZ.js → chunk-QIG7YPFW.js} +92 -8
  9. package/dist/chunk-QIG7YPFW.js.map +1 -0
  10. package/dist/{chunk-XLSODV6H.js → chunk-XFCMTW5L.js} +2 -2
  11. package/dist/client.cjs +176 -7
  12. package/dist/client.cjs.map +1 -1
  13. package/dist/client.js +7 -7
  14. package/dist/index.cjs +176 -7
  15. package/dist/index.cjs.map +1 -1
  16. package/dist/index.js +8 -8
  17. package/dist/tools/warp_grep/anthropic.cjs +176 -7
  18. package/dist/tools/warp_grep/anthropic.cjs.map +1 -1
  19. package/dist/tools/warp_grep/anthropic.js +4 -4
  20. package/dist/tools/warp_grep/client.cjs +176 -7
  21. package/dist/tools/warp_grep/client.cjs.map +1 -1
  22. package/dist/tools/warp_grep/client.js +3 -3
  23. package/dist/tools/warp_grep/gemini.cjs +176 -7
  24. package/dist/tools/warp_grep/gemini.cjs.map +1 -1
  25. package/dist/tools/warp_grep/gemini.js +4 -4
  26. package/dist/tools/warp_grep/harness.cjs +91 -7
  27. package/dist/tools/warp_grep/harness.cjs.map +1 -1
  28. package/dist/tools/warp_grep/harness.js +1 -1
  29. package/dist/tools/warp_grep/index.cjs +176 -7
  30. package/dist/tools/warp_grep/index.cjs.map +1 -1
  31. package/dist/tools/warp_grep/index.js +7 -7
  32. package/dist/tools/warp_grep/openai.cjs +176 -7
  33. package/dist/tools/warp_grep/openai.cjs.map +1 -1
  34. package/dist/tools/warp_grep/openai.js +4 -4
  35. package/dist/tools/warp_grep/providers/local.cjs +91 -7
  36. package/dist/tools/warp_grep/providers/local.cjs.map +1 -1
  37. package/dist/tools/warp_grep/providers/local.js +1 -1
  38. package/dist/tools/warp_grep/providers/remote.cjs +85 -0
  39. package/dist/tools/warp_grep/providers/remote.cjs.map +1 -1
  40. package/dist/tools/warp_grep/providers/remote.js +1 -1
  41. package/dist/tools/warp_grep/vercel.cjs +176 -7
  42. package/dist/tools/warp_grep/vercel.cjs.map +1 -1
  43. package/dist/tools/warp_grep/vercel.js +4 -4
  44. package/package.json +1 -1
  45. package/dist/chunk-GGYMQZXI.js.map +0 -1
  46. package/dist/chunk-ZO4PPFCZ.js.map +0 -1
  47. /package/dist/{chunk-SQHZPUCS.js.map → chunk-2LSVUHIE.js.map} +0 -0
  48. /package/dist/{chunk-IVT6YMFA.js.map → chunk-B3J2O2NW.js.map} +0 -0
  49. /package/dist/{chunk-7JEL2VZO.js.map → chunk-E4434A4Y.js.map} +0 -0
  50. /package/dist/{chunk-7V2KIZT5.js.map → chunk-P6OEPI4N.js.map} +0 -0
  51. /package/dist/{chunk-AQD2JCLI.js.map → chunk-Q6GHKKS5.js.map} +0 -0
  52. /package/dist/{chunk-XLSODV6H.js.map → chunk-XFCMTW5L.js.map} +0 -0
@@ -1234,6 +1234,90 @@ async function readAllLines(filePath) {
1234
1234
  }
1235
1235
 
1236
1236
  // tools/warp_grep/providers/local.ts
1237
+ var SKIP_NAMES = /* @__PURE__ */ new Set([
1238
+ // Version control
1239
+ ".git",
1240
+ ".svn",
1241
+ ".hg",
1242
+ ".bzr",
1243
+ // Dependencies
1244
+ "node_modules",
1245
+ "bower_components",
1246
+ ".pnpm",
1247
+ ".yarn",
1248
+ "vendor",
1249
+ "Pods",
1250
+ ".bundle",
1251
+ // Python
1252
+ "__pycache__",
1253
+ ".pytest_cache",
1254
+ ".mypy_cache",
1255
+ ".ruff_cache",
1256
+ ".venv",
1257
+ "venv",
1258
+ ".tox",
1259
+ ".nox",
1260
+ ".eggs",
1261
+ // Build outputs
1262
+ "dist",
1263
+ "build",
1264
+ "out",
1265
+ "output",
1266
+ "target",
1267
+ "_build",
1268
+ ".next",
1269
+ ".nuxt",
1270
+ ".output",
1271
+ ".vercel",
1272
+ ".netlify",
1273
+ // Cache
1274
+ ".cache",
1275
+ ".parcel-cache",
1276
+ ".turbo",
1277
+ ".nx",
1278
+ ".gradle",
1279
+ // IDE
1280
+ ".idea",
1281
+ ".vscode",
1282
+ ".vs",
1283
+ // Coverage
1284
+ "coverage",
1285
+ ".coverage",
1286
+ "htmlcov",
1287
+ ".nyc_output",
1288
+ // Temp
1289
+ "tmp",
1290
+ "temp",
1291
+ ".tmp",
1292
+ ".temp",
1293
+ // Lock files
1294
+ "package-lock.json",
1295
+ "yarn.lock",
1296
+ "pnpm-lock.yaml",
1297
+ "bun.lockb",
1298
+ "Cargo.lock",
1299
+ "Gemfile.lock",
1300
+ "poetry.lock"
1301
+ ]);
1302
+ var SKIP_EXTENSIONS = /* @__PURE__ */ new Set([
1303
+ ".min.js",
1304
+ ".min.css",
1305
+ ".bundle.js",
1306
+ ".wasm",
1307
+ ".so",
1308
+ ".dll",
1309
+ ".pyc",
1310
+ ".map",
1311
+ ".js.map"
1312
+ ]);
1313
+ function shouldSkip(name) {
1314
+ if (SKIP_NAMES.has(name)) return true;
1315
+ if (name.startsWith(".")) return true;
1316
+ for (const ext of SKIP_EXTENSIONS) {
1317
+ if (name.endsWith(ext)) return true;
1318
+ }
1319
+ return false;
1320
+ }
1237
1321
  var LocalRipgrepProvider = class {
1238
1322
  constructor(repoRoot, excludes = DEFAULT_EXCLUDES) {
1239
1323
  this.repoRoot = repoRoot;
@@ -1366,6 +1450,7 @@ Details: ${res.stderr}` : ""}`
1366
1450
  const maxResults = params.maxResults ?? AGENT_CONFIG.MAX_OUTPUT_LINES;
1367
1451
  const maxDepth = params.maxDepth ?? AGENT_CONFIG.MAX_LIST_DEPTH;
1368
1452
  const regex = params.pattern ? new RegExp(params.pattern) : null;
1453
+ const repoRoot = this.repoRoot;
1369
1454
  const results = [];
1370
1455
  let timedOut = false;
1371
1456
  const startTime = Date.now();
@@ -1378,18 +1463,17 @@ Details: ${res.stderr}` : ""}`
1378
1463
  const entries = await import_promises2.default.readdir(dir, { withFileTypes: true });
1379
1464
  for (const entry of entries) {
1380
1465
  if (timedOut || results.length >= maxResults) break;
1381
- const full = import_path4.default.join(dir, entry.name);
1382
- const rel = toRepoRelative(abs, full).replace(/^[.][/\\]?/, "");
1383
- if (DEFAULT_EXCLUDES.some((ex) => rel.split(import_path4.default.sep).includes(ex))) continue;
1466
+ if (shouldSkip(entry.name)) continue;
1384
1467
  if (regex && !regex.test(entry.name)) continue;
1468
+ const full = import_path4.default.join(dir, entry.name);
1469
+ const isDir = entry.isDirectory();
1385
1470
  results.push({
1386
1471
  name: entry.name,
1387
- path: toRepoRelative(import_path4.default.resolve(""), full),
1388
- // relative display
1389
- type: entry.isDirectory() ? "dir" : "file",
1472
+ path: toRepoRelative(repoRoot, full),
1473
+ type: isDir ? "dir" : "file",
1390
1474
  depth
1391
1475
  });
1392
- if (entry.isDirectory()) {
1476
+ if (isDir) {
1393
1477
  await walk(full, depth + 1);
1394
1478
  }
1395
1479
  }
@@ -1400,6 +1484,90 @@ Details: ${res.stderr}` : ""}`
1400
1484
  };
1401
1485
 
1402
1486
  // tools/warp_grep/providers/remote.ts
1487
+ var SKIP_NAMES2 = /* @__PURE__ */ new Set([
1488
+ // Version control
1489
+ ".git",
1490
+ ".svn",
1491
+ ".hg",
1492
+ ".bzr",
1493
+ // Dependencies
1494
+ "node_modules",
1495
+ "bower_components",
1496
+ ".pnpm",
1497
+ ".yarn",
1498
+ "vendor",
1499
+ "Pods",
1500
+ ".bundle",
1501
+ // Python
1502
+ "__pycache__",
1503
+ ".pytest_cache",
1504
+ ".mypy_cache",
1505
+ ".ruff_cache",
1506
+ ".venv",
1507
+ "venv",
1508
+ ".tox",
1509
+ ".nox",
1510
+ ".eggs",
1511
+ // Build outputs
1512
+ "dist",
1513
+ "build",
1514
+ "out",
1515
+ "output",
1516
+ "target",
1517
+ "_build",
1518
+ ".next",
1519
+ ".nuxt",
1520
+ ".output",
1521
+ ".vercel",
1522
+ ".netlify",
1523
+ // Cache
1524
+ ".cache",
1525
+ ".parcel-cache",
1526
+ ".turbo",
1527
+ ".nx",
1528
+ ".gradle",
1529
+ // IDE
1530
+ ".idea",
1531
+ ".vscode",
1532
+ ".vs",
1533
+ // Coverage
1534
+ "coverage",
1535
+ ".coverage",
1536
+ "htmlcov",
1537
+ ".nyc_output",
1538
+ // Temp
1539
+ "tmp",
1540
+ "temp",
1541
+ ".tmp",
1542
+ ".temp",
1543
+ // Lock files
1544
+ "package-lock.json",
1545
+ "yarn.lock",
1546
+ "pnpm-lock.yaml",
1547
+ "bun.lockb",
1548
+ "Cargo.lock",
1549
+ "Gemfile.lock",
1550
+ "poetry.lock"
1551
+ ]);
1552
+ var SKIP_EXTENSIONS2 = /* @__PURE__ */ new Set([
1553
+ ".min.js",
1554
+ ".min.css",
1555
+ ".bundle.js",
1556
+ ".wasm",
1557
+ ".so",
1558
+ ".dll",
1559
+ ".pyc",
1560
+ ".map",
1561
+ ".js.map"
1562
+ ]);
1563
+ function shouldSkip2(name) {
1564
+ if (SKIP_NAMES2.has(name)) return true;
1565
+ if (name.startsWith(".")) return true;
1566
+ for (const ext of SKIP_EXTENSIONS2) {
1567
+ if (name.endsWith(ext)) return true;
1568
+ }
1569
+ return false;
1570
+ }
1403
1571
  var RemoteCommandsProvider = class {
1404
1572
  constructor(repoRoot, commands) {
1405
1573
  this.repoRoot = repoRoot;
@@ -1466,6 +1634,7 @@ var RemoteCommandsProvider = class {
1466
1634
  for (const fullPath of paths) {
1467
1635
  if (fullPath === params.path || fullPath === this.repoRoot) continue;
1468
1636
  const name = fullPath.split("/").pop() || "";
1637
+ if (shouldSkip2(name)) continue;
1469
1638
  if (regex && !regex.test(name)) continue;
1470
1639
  let relativePath = fullPath;
1471
1640
  if (fullPath.startsWith(this.repoRoot)) {