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