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