@sourcegraph/amp 0.0.1748620891-gf6fd33 → 0.0.1748649751-g6afca7

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 (41) hide show
  1. package/dist/amp.js +2 -2
  2. package/dist/{console-B_a7AZVs.js → console-ClqVSdMh.js} +14 -11
  3. package/dist/console-ClqVSdMh.js.map +1 -0
  4. package/dist/{create_file.node-DLgtL-Xm.js → create_file.node-BIf7Pfx1.js} +2 -2
  5. package/dist/{create_file.node-DLgtL-Xm.js.map → create_file.node-BIf7Pfx1.js.map} +1 -1
  6. package/dist/{edit_file.node-CrnktvWL.js → edit_file.node-DGvO6oA8.js} +3 -3
  7. package/dist/{edit_file.node-CrnktvWL.js.map → edit_file.node-DGvO6oA8.js.map} +1 -1
  8. package/dist/{executable-BglMpb2E.js → executable-CdFQvKRa.js} +2 -2
  9. package/dist/{executable-BglMpb2E.js.map → executable-CdFQvKRa.js.map} +1 -1
  10. package/dist/{files-gDsYEnW1.js → files-DNzXeiaR.js} +2 -2
  11. package/dist/{files-gDsYEnW1.js.map → files-DNzXeiaR.js.map} +1 -1
  12. package/dist/{glob.node-CMSCjukj.js → glob.node-CFnd8xoU.js} +3 -3
  13. package/dist/{glob.node-CMSCjukj.js.map → glob.node-CFnd8xoU.js.map} +1 -1
  14. package/dist/{list_directory.node-BTLRHJ48.js → list_directory.node-DNIR8duK.js} +2 -2
  15. package/dist/{list_directory.node-BTLRHJ48.js.map → list_directory.node-DNIR8duK.js.map} +1 -1
  16. package/dist/{load-profile-DCv3-1Ka.js → load-profile-D6ljNdlh.js} +2 -2
  17. package/dist/{load-profile-DCv3-1Ka.js.map → load-profile-D6ljNdlh.js.map} +1 -1
  18. package/dist/{main-DQsFuGGG.js → main-Ju2fVM67.js} +570 -584
  19. package/dist/main-Ju2fVM67.js.map +1 -0
  20. package/dist/{node-CODo0ZrH.js → node-C7Lg2Zsq.js} +2 -2
  21. package/dist/{node-CODo0ZrH.js.map → node-C7Lg2Zsq.js.map} +1 -1
  22. package/dist/{node-CBVbC8Le.js → node-CZz4TZNI.js} +2 -2
  23. package/dist/{node-CBVbC8Le.js.map → node-CZz4TZNI.js.map} +1 -1
  24. package/dist/{node-B8WXoxgO.js → node-D-tKANAU.js} +3 -3
  25. package/dist/{node-B8WXoxgO.js.map → node-D-tKANAU.js.map} +1 -1
  26. package/dist/{node-u8kG41tu.js → node-D0FEFzDK.js} +3 -3
  27. package/dist/{node-u8kG41tu.js.map → node-D0FEFzDK.js.map} +1 -1
  28. package/dist/{node-Cb0kHKh8.js → node-D9A2M7dY.js} +3 -3
  29. package/dist/{node-Cb0kHKh8.js.map → node-D9A2M7dY.js.map} +1 -1
  30. package/dist/{node-4Pn7H_vJ.js → node-d3Q-Nkbe.js} +3 -3
  31. package/dist/{node-4Pn7H_vJ.js.map → node-d3Q-Nkbe.js.map} +1 -1
  32. package/dist/{read_file.node-BD8KJm_C.js → read_file.node-DKV2Spj4.js} +2 -2
  33. package/dist/{read_file.node-BD8KJm_C.js.map → read_file.node-DKV2Spj4.js.map} +1 -1
  34. package/dist/{stdio-B8D5AKpo.js → stdio-BvpDvTqR.js} +3 -3
  35. package/dist/{stdio-B8D5AKpo.js.map → stdio-BvpDvTqR.js.map} +1 -1
  36. package/dist/storybook.js +1 -1
  37. package/dist/{undo_edit.node-CKspKBvM.js → undo_edit.node-C27aruk3.js} +2 -2
  38. package/dist/{undo_edit.node-CKspKBvM.js.map → undo_edit.node-C27aruk3.js.map} +1 -1
  39. package/package.json +1 -1
  40. package/dist/console-B_a7AZVs.js.map +0 -1
  41. package/dist/main-DQsFuGGG.js.map +0 -1
package/dist/amp.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import "./console-B_a7AZVs.js";
3
- import "./main-DQsFuGGG.js";
2
+ import "./console-ClqVSdMh.js";
3
+ import "./main-Ju2fVM67.js";
4
4
  import "node:crypto";
5
5
  import "node:fs/promises";
6
6
  import "node:path";
@@ -955,7 +955,10 @@ function MS() {
955
955
  return s ? n(a, s) : xS;
956
956
  },
957
957
  tools: yS(Vu, r.pipe(RS(void 0))).pipe(
958
- V1(([a]) => Array.from(e.values()).map((s) => ({ spec: s, ...w_(s, a) })).toSorted((s, i) => s.spec.name.localeCompare(i.spec.name)))
958
+ V1(([a]) => Array.from(e.values()).map((s) => ({
959
+ spec: s,
960
+ ...w_(s, a)
961
+ })).sort((s, i) => s.spec.name.localeCompare(i.spec.name)))
959
962
  ),
960
963
  invokeTool(a, s, i) {
961
964
  if (a === j1 && s.args && "invalid_tool_name" in s.args && typeof s.args.invalid_tool_name == "string") {
@@ -994,7 +997,7 @@ const xS = {
994
997
  }
995
998
  };
996
999
  function w_(t, e) {
997
- return e.settings["tools.disable"]?.includes(t.name) ? { enabled: !1, disabledReason: "settings" } : (t.name === lr || t.name === Wu) && !e.settings?.["todos.enabled"] ? { enabled: !1, disabledReason: "feature-flag" } : { enabled: !0 };
1000
+ return (e.settings?.["tools.disable"] ?? []).includes(t.name) ? { enabled: !1, disabledReason: "settings" } : t.name === lr || t.name === Wu ? e.settings?.["todos.enabled"] ? { enabled: !0 } : { enabled: !1, disabledReason: "feature-flag" } : { enabled: !0 };
998
1001
  }
999
1002
  function LS(t) {
1000
1003
  return `Invalid tool name ${JSON.stringify(t)}. Tool names must match the pattern ${X1.toString()}. Try again with a valid tool name.`;
@@ -3859,7 +3862,7 @@ Prefer this tool over \`edit_file\` when you want to ovewrite the entire content
3859
3862
  },
3860
3863
  source: "builtin"
3861
3864
  },
3862
- fn: import("./create_file.node-DLgtL-Xm.js").then(
3865
+ fn: import("./create_file.node-BIf7Pfx1.js").then(
3863
3866
  ({ nodeCreateFileTool: t }) => t
3864
3867
  )
3865
3868
  }, nr = "Grep", xD = 15, LD = 250, PD = `Search for exact text patterns in files using ripgrep, a fast keyword search tool.
@@ -3992,7 +3995,7 @@ COMPLEMENTARY USE WITH CODEBASE_SEARCH:
3992
3995
  },
3993
3996
  source: "builtin"
3994
3997
  },
3995
- fn: import("./node-Cb0kHKh8.js").then(({ nodeGrepTool: t }) => t)
3998
+ fn: import("./node-D9A2M7dY.js").then(({ nodeGrepTool: t }) => t)
3996
3999
  }, wr = "read_file", FD = 1e3, jn = {
3997
4000
  spec: {
3998
4001
  name: wr,
@@ -4024,7 +4027,7 @@ Returns the contents of the file with each line prefixed by its line number. For
4024
4027
  switch ("node") {
4025
4028
  case "node":
4026
4029
  case "vscode":
4027
- return import("./read_file.node-BD8KJm_C.js").then(({ nodeReadFileTool: t }) => t);
4030
+ return import("./read_file.node-DKV2Spj4.js").then(({ nodeReadFileTool: t }) => t);
4028
4031
  }
4029
4032
  })()
4030
4033
  }, BD = uD({
@@ -4053,7 +4056,7 @@ If you need to replace the entire contents of a file, use \`${ja}\` instead, sin
4053
4056
  inputSchema: Ay(BD),
4054
4057
  source: "builtin"
4055
4058
  },
4056
- fn: import("./edit_file.node-CrnktvWL.js").then(({ nodeEditFileTool: t }) => t)
4059
+ fn: import("./edit_file.node-DGvO6oA8.js").then(({ nodeEditFileTool: t }) => t)
4057
4060
  };
4058
4061
  async function xZ(t, e, r, n) {
4059
4062
  e = Xn(e);
@@ -8275,7 +8278,7 @@ Note: Results are sorted by modification time with the most recently modified fi
8275
8278
  },
8276
8279
  source: "builtin"
8277
8280
  },
8278
- fn: import("./glob.node-CMSCjukj.js").then(({ nodeGlobTool: t }) => t)
8281
+ fn: import("./glob.node-CFnd8xoU.js").then(({ nodeGlobTool: t }) => t)
8279
8282
  }, ai = "list_directory", nh = {
8280
8283
  spec: {
8281
8284
  name: ai,
@@ -8296,7 +8299,7 @@ Note: Results are sorted by modification time with the most recently modified fi
8296
8299
  switch ("node") {
8297
8300
  case "node":
8298
8301
  case "vscode":
8299
- return import("./list_directory.node-BTLRHJ48.js").then(
8302
+ return import("./list_directory.node-DNIR8duK.js").then(
8300
8303
  ({ nodeListDirectoryTool: t }) => t
8301
8304
  );
8302
8305
  }
@@ -9120,7 +9123,7 @@ It's VERY IMPORTANT to use specific tools when searching for files, instead of i
9120
9123
  },
9121
9124
  source: "builtin"
9122
9125
  },
9123
- fn: import("./node-4Pn7H_vJ.js").then(({ nodeBashTool: t }) => t)
9126
+ fn: import("./node-d3Q-Nkbe.js").then(({ nodeBashTool: t }) => t)
9124
9127
  }, G0 = [
9125
9128
  "ls",
9126
9129
  "dir",
@@ -10006,7 +10009,7 @@ Returns a git-style diff showing the changes that were undone as formatted markd
10006
10009
  },
10007
10010
  source: "builtin"
10008
10011
  },
10009
- fn: import("./undo_edit.node-CKspKBvM.js").then(({ nodeUndoEditTool: t }) => t)
10012
+ fn: import("./undo_edit.node-C27aruk3.js").then(({ nodeUndoEditTool: t }) => t)
10010
10013
  }, c_ = globalThis.window?.document !== void 0;
10011
10014
  globalThis.process?.versions?.node;
10012
10015
  globalThis.process?.versions?.bun;
@@ -54265,4 +54268,4 @@ export {
54265
54268
  cZ as y,
54266
54269
  dZ as z
54267
54270
  };
54268
- //# sourceMappingURL=console-B_a7AZVs.js.map
54271
+ //# sourceMappingURL=console-ClqVSdMh.js.map