@sourcegraph/amp 0.0.1748585537-g1e48d6 → 0.0.1748606491-gd5f622

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/{color-ldrInzKB.js → color-DWbYEM4a.js} +136 -122
  3. package/dist/color-DWbYEM4a.js.map +1 -0
  4. package/dist/{create_file.node-pHiRAwrz.js → create_file.node-bNP_q1DK.js} +2 -2
  5. package/dist/{create_file.node-pHiRAwrz.js.map → create_file.node-bNP_q1DK.js.map} +1 -1
  6. package/dist/{edit_file.node-nAUP_3bW.js → edit_file.node-XfOTJyMK.js} +10 -10
  7. package/dist/{edit_file.node-nAUP_3bW.js.map → edit_file.node-XfOTJyMK.js.map} +1 -1
  8. package/dist/{executable-D9Dr9Z2U.js → executable-BQwwBwPM.js} +2 -2
  9. package/dist/{executable-D9Dr9Z2U.js.map → executable-BQwwBwPM.js.map} +1 -1
  10. package/dist/{files-C7vv9BDa.js → files-CNpc3qfn.js} +2 -2
  11. package/dist/{files-C7vv9BDa.js.map → files-CNpc3qfn.js.map} +1 -1
  12. package/dist/{glob.node-Mg2vA9hM.js → glob.node-Be6IkRaA.js} +40 -40
  13. package/dist/{glob.node-Mg2vA9hM.js.map → glob.node-Be6IkRaA.js.map} +1 -1
  14. package/dist/{list_directory.node-BQq4XK-y.js → list_directory.node-DgNuSnuF.js} +2 -2
  15. package/dist/{list_directory.node-BQq4XK-y.js.map → list_directory.node-DgNuSnuF.js.map} +1 -1
  16. package/dist/{load-profile-D7KCxFft.js → load-profile-Nd8bHROp.js} +2 -2
  17. package/dist/{load-profile-D7KCxFft.js.map → load-profile-Nd8bHROp.js.map} +1 -1
  18. package/dist/{main-_RAVC2vW.js → main-BwXeL2d_.js} +6071 -5976
  19. package/dist/{main-_RAVC2vW.js.map → main-BwXeL2d_.js.map} +1 -1
  20. package/dist/{node-CjTxUnpu.js → node-Bk40W4Y0.js} +4 -4
  21. package/dist/node-Bk40W4Y0.js.map +1 -0
  22. package/dist/{node-yAI2aH4I.js → node-CvPxW0zu.js} +3 -3
  23. package/dist/{node-yAI2aH4I.js.map → node-CvPxW0zu.js.map} +1 -1
  24. package/dist/{node-C2XZ5nUw.js → node-DTPo1BPg.js} +2 -2
  25. package/dist/{node-C2XZ5nUw.js.map → node-DTPo1BPg.js.map} +1 -1
  26. package/dist/{node-mEGuz3HH.js → node-D_wBXMvd.js} +2 -2
  27. package/dist/{node-mEGuz3HH.js.map → node-D_wBXMvd.js.map} +1 -1
  28. package/dist/{node-CCnEMObW.js → node-QAVfVAJ0.js} +7 -7
  29. package/dist/{node-CCnEMObW.js.map → node-QAVfVAJ0.js.map} +1 -1
  30. package/dist/{node-CDav8GEj.js → node-_PrF9PME.js} +16 -16
  31. package/dist/{node-CDav8GEj.js.map → node-_PrF9PME.js.map} +1 -1
  32. package/dist/{read_file.node-Da0ma4-1.js → read_file.node-D4T78vUr.js} +2 -2
  33. package/dist/{read_file.node-Da0ma4-1.js.map → read_file.node-D4T78vUr.js.map} +1 -1
  34. package/dist/{stdio-D-xv_DKO.js → stdio-BFbLdCh7.js} +3 -3
  35. package/dist/{stdio-D-xv_DKO.js.map → stdio-BFbLdCh7.js.map} +1 -1
  36. package/dist/storybook.js +1 -1
  37. package/dist/{undo_edit.node-BH-4_Rkm.js → undo_edit.node-Dgk-4gRe.js} +6 -6
  38. package/dist/{undo_edit.node-BH-4_Rkm.js.map → undo_edit.node-Dgk-4gRe.js.map} +1 -1
  39. package/package.json +1 -1
  40. package/dist/color-ldrInzKB.js.map +0 -1
  41. package/dist/node-CjTxUnpu.js.map +0 -1
package/dist/amp.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import "./color-ldrInzKB.js";
3
- import "./main-_RAVC2vW.js";
2
+ import "./color-DWbYEM4a.js";
3
+ import "./main-BwXeL2d_.js";
4
4
  import "node:crypto";
5
5
  import "node:fs/promises";
6
6
  import "node:path";
@@ -4133,6 +4133,19 @@ function YZ(t) {
4133
4133
  function HZ() {
4134
4134
  return `toolu_${crypto.randomUUID()}`;
4135
4135
  }
4136
+ function qZ(t) {
4137
+ for (let e = t.messages.length - 1; e >= 0; e--) {
4138
+ const r = t.messages[e];
4139
+ if (r?.role === "assistant" && r.usage)
4140
+ return r.usage;
4141
+ if (r?.role === "info") {
4142
+ const n = r.content[0];
4143
+ if (n?.type === "summary" && n.usage)
4144
+ return n.usage;
4145
+ }
4146
+ }
4147
+ return t["~debug"]?.lastInferenceUsage;
4148
+ }
4136
4149
  function PT(t, e) {
4137
4150
  for (const r of t.messages)
4138
4151
  if (r.role === "assistant") {
@@ -4141,7 +4154,7 @@ function PT(t, e) {
4141
4154
  return n;
4142
4155
  }
4143
4156
  }
4144
- function qZ(t, e) {
4157
+ function $Z(t, e) {
4145
4158
  for (const [r, n] of t.messages.entries())
4146
4159
  if (n.role === "assistant") {
4147
4160
  for (const [a, s] of n.content.entries())
@@ -4150,7 +4163,7 @@ function qZ(t, e) {
4150
4163
  }
4151
4164
  return null;
4152
4165
  }
4153
- function $Z(t, e) {
4166
+ function VZ(t, e) {
4154
4167
  for (const r of t.messages)
4155
4168
  if (r.role === "user") {
4156
4169
  for (const n of r.content)
@@ -4161,12 +4174,12 @@ function $Z(t, e) {
4161
4174
  function FT(t) {
4162
4175
  return t.messages.filter((e) => e.role === "user").flatMap((e) => e.content).filter((e) => e.type === "tool_result").reduce((e, r) => (e.set(r.toolUseID, r), e), /* @__PURE__ */ new Map());
4163
4176
  }
4164
- function VZ(t) {
4177
+ function WZ(t) {
4165
4178
  return t ? t.role === "assistant" ? t.state?.type === "cancelled" : t.role === "user" ? t.content.some(
4166
4179
  (e) => e.type === "tool_result" && e.run.status === "cancelled"
4167
4180
  ) : !1 : !1;
4168
4181
  }
4169
- function WZ(t) {
4182
+ function KZ(t) {
4170
4183
  return t ? t.role === "info" : !1;
4171
4184
  }
4172
4185
  function BT(t) {
@@ -4178,7 +4191,7 @@ function BT(t) {
4178
4191
  }
4179
4192
  });
4180
4193
  }
4181
- function KZ(t) {
4194
+ function QZ(t) {
4182
4195
  for (let e = t.messages.length - 1; e >= 0; e--) {
4183
4196
  const r = t.messages[e];
4184
4197
  if (r?.role === "info" && r.content.some(
@@ -4198,17 +4211,17 @@ function KZ(t) {
4198
4211
  }
4199
4212
  }
4200
4213
  }
4201
- function QZ(t) {
4214
+ function jZ(t) {
4202
4215
  return t.map((e) => e.type === "text" ? e.text : null).filter((e) => e !== null).join(`
4203
4216
 
4204
4217
  `);
4205
4218
  }
4206
- function jZ(t) {
4219
+ function XZ(t) {
4207
4220
  return t.content.every(
4208
4221
  (e) => !(e.type === "tool_result" && !Ku(e.run))
4209
4222
  );
4210
4223
  }
4211
- function XZ(t, e) {
4224
+ function ZZ(t, e) {
4212
4225
  return t.messages.findLast(
4213
4226
  (r) => r.role === e
4214
4227
  );
@@ -7042,7 +7055,7 @@ const ei = "create_file", FC = `Create or overwrite a file in the workspace.
7042
7055
  Use this tool when you want to create a new file with the given content, or when you want to replace the contents of an existing file.
7043
7056
 
7044
7057
  Prefer this tool over \`edit_file\` when you want to ovewrite the entire contents of a file.
7045
- `, ZZ = {
7058
+ `, JZ = {
7046
7059
  spec: {
7047
7060
  name: ei,
7048
7061
  description: FC,
@@ -7062,7 +7075,7 @@ Prefer this tool over \`edit_file\` when you want to ovewrite the entire content
7062
7075
  },
7063
7076
  source: "builtin"
7064
7077
  },
7065
- fn: import("./create_file.node-pHiRAwrz.js").then(
7078
+ fn: import("./create_file.node-bNP_q1DK.js").then(
7066
7079
  ({ nodeCreateFileTool: t }) => t
7067
7080
  )
7068
7081
  }, ar = "Grep", BC = 15, UC = 250, zC = `Search for exact text patterns in files using ripgrep, a fast keyword search tool.
@@ -7195,7 +7208,7 @@ COMPLEMENTARY USE WITH CODEBASE_SEARCH:
7195
7208
  },
7196
7209
  source: "builtin"
7197
7210
  },
7198
- fn: import("./node-CCnEMObW.js").then(({ nodeGrepTool: t }) => t)
7211
+ fn: import("./node-QAVfVAJ0.js").then(({ nodeGrepTool: t }) => t)
7199
7212
  }, wr = "read_file", GC = 1e3, jn = {
7200
7213
  spec: {
7201
7214
  name: wr,
@@ -7227,7 +7240,7 @@ Returns the contents of the file with each line prefixed by its line number. For
7227
7240
  switch ("node") {
7228
7241
  case "node":
7229
7242
  case "vscode":
7230
- return import("./read_file.node-Da0ma4-1.js").then(({ nodeReadFileTool: t }) => t);
7243
+ return import("./read_file.node-D4T78vUr.js").then(({ nodeReadFileTool: t }) => t);
7231
7244
  }
7232
7245
  })()
7233
7246
  }, YC = mC({
@@ -7249,16 +7262,16 @@ The file specified by \`path\` MUST exist. If you need to create a new file, use
7249
7262
  \`old_str\` MUST be unique within the file. Additional lines of context can be added to make the string more unique.
7250
7263
 
7251
7264
  If you need to replace the entire contents of a file, use \`${ei}\` instead, since it requires less tokens for the same action (since you won't have to repeat the contents before replacing)
7252
- `, i_ = "edit_file", JZ = {
7265
+ `, i_ = "edit_file", eJ = {
7253
7266
  spec: {
7254
7267
  name: i_,
7255
7268
  description: HC,
7256
7269
  inputSchema: vD(YC),
7257
7270
  source: "builtin"
7258
7271
  },
7259
- fn: import("./edit_file.node-nAUP_3bW.js").then(({ nodeEditFileTool: t }) => t)
7272
+ fn: import("./edit_file.node-XfOTJyMK.js").then(({ nodeEditFileTool: t }) => t)
7260
7273
  };
7261
- async function eJ(t, e, r, n) {
7274
+ async function tJ(t, e, r, n) {
7262
7275
  e = Xn(e);
7263
7276
  let a = e;
7264
7277
  const s = Xn(r), i = Xn(n), o = a.indexOf(s);
@@ -7329,16 +7342,16 @@ function qC(t) {
7329
7342
  return `${"`".repeat(e)}diff
7330
7343
  ${t}${"`".repeat(e)}`;
7331
7344
  }
7332
- const tJ = (t) => async (e, r) => {
7345
+ const rJ = (t) => async (e, r) => {
7333
7346
  await r(e);
7334
7347
  }, bn = /* @__PURE__ */ new Map();
7335
- function rJ(t, e) {
7348
+ function nJ(t, e) {
7336
7349
  return bn.get(t)?.get(e);
7337
7350
  }
7338
7351
  function QE(t, e, r) {
7339
7352
  bn.has(t) || bn.set(t, /* @__PURE__ */ new Map()), bn.get(t).set(e, r);
7340
7353
  }
7341
- function nJ({
7354
+ function aJ({
7342
7355
  toolUseID: t,
7343
7356
  toolFileChanges: e,
7344
7357
  filesystem: r,
@@ -7387,7 +7400,7 @@ function nJ({
7387
7400
  }
7388
7401
  };
7389
7402
  }
7390
- function aJ(t) {
7403
+ function iJ(t) {
7391
7404
  const e = t.diff.split(`
7392
7405
  `);
7393
7406
  let r = 0, n = 0, a = 0;
@@ -7397,7 +7410,7 @@ function aJ(t) {
7397
7410
  return i && (r = t.after.split(`
7398
7411
  `).filter((l) => l.trim().length > 0).length, n = 0, a = 0), { added: r, removed: n, modified: a, created: i, reverted: s };
7399
7412
  }
7400
- async function iJ(t) {
7413
+ async function sJ(t) {
7401
7414
  const e = await t.listBackupFiles(), r = /* @__PURE__ */ new Map();
7402
7415
  for (const n of e) {
7403
7416
  const s = n.split(".")[0];
@@ -7407,7 +7420,7 @@ async function iJ(t) {
7407
7420
  }
7408
7421
  return { toolDiffs: r, totalBackups: e.length };
7409
7422
  }
7410
- async function sJ(t, e, r, n) {
7423
+ async function oJ(t, e, r, n) {
7411
7424
  const a = n ? t.joinPath(r, n) : void 0, s = $C(e, a), i = /* @__PURE__ */ new Set();
7412
7425
  for (const [l, u] of s.entries())
7413
7426
  try {
@@ -7466,7 +7479,7 @@ function WC(t) {
7466
7479
  return;
7467
7480
  }
7468
7481
  }
7469
- function oJ(...t) {
7482
+ function cJ(...t) {
7470
7483
  return new ge((e) => {
7471
7484
  let r = !1, n, a = !1;
7472
7485
  return (async () => {
@@ -7517,7 +7530,7 @@ function oJ(...t) {
7517
7530
  };
7518
7531
  });
7519
7532
  }
7520
- function cJ(t) {
7533
+ function lJ(t) {
7521
7534
  if (typeof t != "string")
7522
7535
  throw new Error("arg is not a string");
7523
7536
  if (t.startsWith("-"))
@@ -7562,7 +7575,7 @@ async function JC(t, e, r) {
7562
7575
  message: `Error: File content (${Math.round(n.size / 1024)} KB) exceeds maximum allowed size (${Math.round(Nd / 1024)} KB). Use read_range parameters to read specific line ranges in the file, or use the ${ar} tool to search for specific content.`
7563
7576
  } : null;
7564
7577
  }
7565
- function lJ({
7578
+ function uJ({
7566
7579
  readFileFn: t
7567
7580
  }) {
7568
7581
  return async function({ args: e }, { dirs: r, threadID: n, filesystem: a }, s) {
@@ -7688,7 +7701,7 @@ ${e.join(`
7688
7701
  </${ri}>
7689
7702
  `;
7690
7703
  }
7691
- const uJ = {
7704
+ const _J = {
7692
7705
  fromNativeThread(t) {
7693
7706
  const { summaryBlock: e, index: r } = UT(t) ?? {
7694
7707
  summaryBlock: void 0,
@@ -7784,7 +7797,7 @@ const uJ = {
7784
7797
  return r;
7785
7798
  }
7786
7799
  };
7787
- function _J(t) {
7800
+ function dJ(t) {
7788
7801
  return {
7789
7802
  type: "assistant:message",
7790
7803
  message: {
@@ -7826,8 +7839,8 @@ function n0(t) {
7826
7839
  return t;
7827
7840
  }
7828
7841
  }
7829
- const ia = "claude-sonnet-4-20250514", dJ = ia, a0 = 32e3, JE = 32e3, i0 = 2e5 - a0, Od = 2e5 - JE, s0 = 8e3, o0 = 8e3, c0 = 4e3;
7830
- async function* pJ(t, e, r, n, a) {
7842
+ const ia = "claude-sonnet-4-20250514", pJ = ia, a0 = 32e3, JE = 32e3, i0 = 2e5 - a0, Od = 2e5 - JE, s0 = 8e3, o0 = 8e3, c0 = 4e3;
7843
+ async function* mJ(t, e, r, n, a) {
7831
7844
  const s = await $u(Vu, a);
7832
7845
  a?.throwIfAborted();
7833
7846
  const i = await rh(s, { threadID: n });
@@ -8151,7 +8164,7 @@ function g0(t) {
8151
8164
  function E0(t, e, r = e + "s") {
8152
8165
  return t === 1 ? e : r;
8153
8166
  }
8154
- const ni = "get_diagnostics", mJ = {
8167
+ const ni = "get_diagnostics", fJ = {
8155
8168
  spec: {
8156
8169
  name: ni,
8157
8170
  description: "Get the diagnostics (errors, warnings, etc.) for a file or directory (prefer running for directories rather than files one by one!) Output is shown in the UI so do not repeat/summarize the diagnostics.",
@@ -8262,7 +8275,7 @@ Note: Results are sorted by modification time with the most recently modified fi
8262
8275
  },
8263
8276
  source: "builtin"
8264
8277
  },
8265
- fn: import("./glob.node-Mg2vA9hM.js").then(({ nodeGlobTool: t }) => t)
8278
+ fn: import("./glob.node-Be6IkRaA.js").then(({ nodeGlobTool: t }) => t)
8266
8279
  }, ai = "list_directory", nh = {
8267
8280
  spec: {
8268
8281
  name: ai,
@@ -8283,7 +8296,7 @@ Note: Results are sorted by modification time with the most recently modified fi
8283
8296
  switch ("node") {
8284
8297
  case "node":
8285
8298
  case "vscode":
8286
- return import("./list_directory.node-BQq4XK-y.js").then(
8299
+ return import("./list_directory.node-DgNuSnuF.js").then(
8287
8300
  ({ nodeListDirectoryTool: t }) => t
8288
8301
  );
8289
8302
  }
@@ -8305,7 +8318,7 @@ Diagrams are especially valuable for visualizing:
8305
8318
  - Component hierarchies and relationships
8306
8319
  - State machines and transitions
8307
8320
  - Sequence and timing of operations
8308
- - Decision trees and conditional logic`, fJ = {
8321
+ - Decision trees and conditional logic`, gJ = {
8309
8322
  spec: {
8310
8323
  name: ii,
8311
8324
  description: h0,
@@ -9025,7 +9038,7 @@ function B0(t) {
9025
9038
  }
9026
9039
  return e;
9027
9040
  }
9028
- const ur = "Bash", U0 = 5e4, gJ = "run_terminal_command", z0 = `Executes the given shell command in the user's default shell.
9041
+ const ur = "Bash", U0 = 5e4, EJ = "run_terminal_command", z0 = `Executes the given shell command in the user's default shell.
9029
9042
 
9030
9043
  ## Important notes
9031
9044
 
@@ -9087,7 +9100,7 @@ assistant: [uses ${ur} to 'git add' the unstaged changes from the 'git status' o
9087
9100
  ## Prefer specific tools
9088
9101
 
9089
9102
  It's VERY IMPORTANT to use specific tools when searching for files, instead of issuing terminal commands with find/grep/ripgrep. Use codebase_search or ${ar} instead. Use read_file tool rather than cat, and edit_file rather than sed.
9090
- `, EJ = {
9103
+ `, hJ = {
9091
9104
  spec: {
9092
9105
  name: ur,
9093
9106
  description: z0,
@@ -9107,7 +9120,7 @@ It's VERY IMPORTANT to use specific tools when searching for files, instead of i
9107
9120
  },
9108
9121
  source: "builtin"
9109
9122
  },
9110
- fn: import("./node-CjTxUnpu.js").then(({ nodeBashTool: t }) => t)
9123
+ fn: import("./node-Bk40W4Y0.js").then(({ nodeBashTool: t }) => t)
9111
9124
  }, G0 = [
9112
9125
  "ls",
9113
9126
  "dir",
@@ -9314,7 +9327,7 @@ function Gi(t, e) {
9314
9327
  return !0;
9315
9328
  return !1;
9316
9329
  }
9317
- function hJ(t, e, r) {
9330
+ function SJ(t, e, r) {
9318
9331
  let n = [];
9319
9332
  try {
9320
9333
  const o = F0(t);
@@ -9364,7 +9377,7 @@ It returns a git-style diff showing the changes made as formatted markdown.
9364
9377
 
9365
9378
  IMPORTANT: Use this after making large edits to files.
9366
9379
  IMPORTANT: Consider the return value when making further changes to the same file. Formatting might have changed the code structure.
9367
- `, SJ = {
9380
+ `, TJ = {
9368
9381
  spec: {
9369
9382
  name: sh,
9370
9383
  description: q0,
@@ -9381,7 +9394,7 @@ IMPORTANT: Consider the return value when making further changes to the same fil
9381
9394
  source: "builtin"
9382
9395
  },
9383
9396
  fn: null
9384
- }, oh = "think", $0 = (t, e) => Cn(async () => ({ status: "done", result: "Thoughts have been logged." })), TJ = {
9397
+ }, oh = "think", $0 = (t, e) => Cn(async () => ({ status: "done", result: "Thoughts have been logged." })), bJ = {
9385
9398
  spec: {
9386
9399
  name: oh,
9387
9400
  description: "Use this tool to document your thinking process. This allows you to work through complex problems step by step, reason about different approaches, and clarify your understanding. The content is only visible to you.",
@@ -9398,14 +9411,14 @@ IMPORTANT: Consider the return value when making further changes to the same fil
9398
9411
  source: "builtin"
9399
9412
  },
9400
9413
  fn: $0
9401
- }, En = "AGENT.md", bJ = `Please analyze this codebase and create an AGENT.md file containing:
9414
+ }, En = "AGENT.md", yJ = `Please analyze this codebase and create an AGENT.md file containing:
9402
9415
  1. Build/lint/test commands - especially for running a single test
9403
9416
  2. Code style guidelines including imports, formatting, types, naming conventions, error handling, etc.
9404
9417
 
9405
9418
  The file you create will be given to agentic coding tools (such as yourself) that operate in this repository. Make it about 20 lines long.
9406
9419
 
9407
9420
  If there are Cursor rules (in .cursor/rules/ or .cursorrules), Claude rules (CLAUDE.md), Windsurf rules (.windsurfrules), Cline rules (.clinerules), Goose rules (.goosehints), or Copilot rules (in .github/copilot-instructions.md), make sure to include them. Also, first check if there is a AGENT.md file, and if so, update it instead of overwriting it.`;
9408
- class yJ {
9421
+ class DJ {
9409
9422
  async environment() {
9410
9423
  return {
9411
9424
  workspacePaths: [],
@@ -9735,7 +9748,7 @@ async function V0(t, e) {
9735
9748
  text: e?.enabledTodos ? lh : uh
9736
9749
  }), r;
9737
9750
  }
9738
- async function DJ(t, e, r = !1) {
9751
+ async function CJ(t, e, r = !1) {
9739
9752
  const n = [ch(r)], a = await _h(t, { threadEnv: e });
9740
9753
  for (const s of a)
9741
9754
  n.push(s.text);
@@ -9897,7 +9910,7 @@ function X0(t) {
9897
9910
  };
9898
9911
  }
9899
9912
  }
9900
- const CJ = {
9913
+ const RJ = {
9901
9914
  spec: {
9902
9915
  name: "codebase_search_agent",
9903
9916
  description: `Intelligently search your codebase with an agent that has access to: ${Pu.map((t) => t.spec.name).join(", ")}.
@@ -9977,7 +9990,7 @@ This command reverts the most recent edit made to the specified file.
9977
9990
  It will restore the file to its state before the last edit was made.
9978
9991
 
9979
9992
  Returns a git-style diff showing the changes that were undone as formatted markdown.
9980
- `, dh = "undo_edit", RJ = {
9993
+ `, dh = "undo_edit", AJ = {
9981
9994
  spec: {
9982
9995
  name: dh,
9983
9996
  description: J0,
@@ -9993,9 +10006,9 @@ Returns a git-style diff showing the changes that were undone as formatted markd
9993
10006
  },
9994
10007
  source: "builtin"
9995
10008
  },
9996
- fn: import("./undo_edit.node-BH-4_Rkm.js").then(({ nodeUndoEditTool: t }) => t)
10009
+ fn: import("./undo_edit.node-Dgk-4gRe.js").then(({ nodeUndoEditTool: t }) => t)
9997
10010
  };
9998
- function AJ(t, e, r, n) {
10011
+ function NJ(t, e, r, n) {
9999
10012
  const a = [], s = [];
10000
10013
  for (const [i, o] of t.messages.entries())
10001
10014
  switch (o.role) {
@@ -10021,7 +10034,7 @@ function AJ(t, e, r, n) {
10021
10034
  }
10022
10035
  return { messages: a, toolResults: s };
10023
10036
  }
10024
- function NJ({ messages: t, toolResults: e }, r = (o) => _S.write(o + `
10037
+ function OJ({ messages: t, toolResults: e }, r = (o) => _S.write(o + `
10025
10038
  `), n, a, s, i) {
10026
10039
  for (const [, o] of t)
10027
10040
  if (o.role === "user") {
@@ -10223,7 +10236,7 @@ ${d[1].trim().split(`
10223
10236
  return null;
10224
10237
  }
10225
10238
  }
10226
- function OJ(t, e) {
10239
+ function IJ(t, e) {
10227
10240
  if (e.name === ur) {
10228
10241
  const r = e.input;
10229
10242
  return "Run " + t.print(r.cmd, {
@@ -54120,9 +54133,9 @@ class eZ {
54120
54133
  return this.print(e, r);
54121
54134
  }
54122
54135
  }
54123
- const IJ = new JX(), vJ = new eZ();
54136
+ const vJ = new JX(), wJ = new eZ();
54124
54137
  export {
54125
- Ku as $,
54138
+ XZ as $,
54126
54139
  EZ as A,
54127
54140
  oZ as B,
54128
54141
  vZ as C,
@@ -54131,100 +54144,101 @@ export {
54131
54144
  xT as F,
54132
54145
  r0 as G,
54133
54146
  MT as H,
54134
- XZ as I,
54147
+ ZZ as I,
54135
54148
  DE as J,
54136
- qZ as K,
54149
+ $Z as K,
54137
54150
  PT as L,
54138
54151
  di as M,
54139
54152
  uZ as N,
54140
54153
  ge as O,
54141
- $Z as P,
54142
- QZ as Q,
54143
- rh as R,
54144
- nJ as S,
54145
- ur as T,
54146
- gJ as U,
54147
- tJ as V,
54148
- VZ as W,
54149
- WZ as X,
54150
- jZ as Y,
54151
- MZ as Z,
54154
+ VZ as P,
54155
+ LT as Q,
54156
+ _J as R,
54157
+ u0 as S,
54158
+ jZ as T,
54159
+ rh as U,
54160
+ aJ as V,
54161
+ ur as W,
54162
+ EJ as X,
54163
+ rJ as Y,
54164
+ WZ as Z,
54152
54165
  KZ as _,
54153
54166
  RS as a,
54154
- ku as a$,
54155
- kZ as a0,
54156
- dJ as a1,
54157
- _J as a2,
54158
- xZ as a3,
54167
+ uJ as a$,
54168
+ MZ as a0,
54169
+ QZ as a1,
54170
+ Ku as a2,
54171
+ kZ as a3,
54159
54172
  pJ as a4,
54160
- V0 as a5,
54161
- uJ as a6,
54162
- DJ as a7,
54163
- YS as a8,
54164
- t0 as a9,
54173
+ dJ as a5,
54174
+ xZ as a6,
54175
+ mJ as a7,
54176
+ V0 as a8,
54177
+ CJ as a9,
54165
54178
  pZ as aA,
54166
54179
  J1 as aB,
54167
- IJ as aC,
54168
- vJ as aD,
54180
+ vJ as aC,
54181
+ wJ as aD,
54169
54182
  YZ as aE,
54170
54183
  MS as aF,
54171
54184
  _Z as aG,
54172
54185
  mZ as aH,
54173
54186
  zZ as aI,
54174
- OJ as aJ,
54175
- AJ as aK,
54176
- NJ as aL,
54177
- ar as aM,
54178
- zT as aN,
54179
- U0 as aO,
54180
- E0 as aP,
54181
- yZ as aQ,
54182
- oJ as aR,
54183
- lZ as aS,
54184
- XE as aT,
54185
- hJ as aU,
54186
- hn as aV,
54187
- H0 as aW,
54188
- rJ as aX,
54189
- eJ as aY,
54190
- YC as aZ,
54191
- lJ as a_,
54192
- iJ as aa,
54193
- sJ as ab,
54194
- aJ as ac,
54195
- CJ as ad,
54196
- nh as ae,
54197
- ti as af,
54198
- EJ as ag,
54199
- mJ as ah,
54200
- s_ as ai,
54187
+ IJ as aJ,
54188
+ NJ as aK,
54189
+ OJ as aL,
54190
+ qZ as aM,
54191
+ ar as aN,
54192
+ zT as aO,
54193
+ U0 as aP,
54194
+ E0 as aQ,
54195
+ yZ as aR,
54196
+ cJ as aS,
54197
+ lZ as aT,
54198
+ XE as aU,
54199
+ SJ as aV,
54200
+ hn as aW,
54201
+ H0 as aX,
54202
+ nJ as aY,
54203
+ tJ as aZ,
54204
+ YC as a_,
54205
+ YS as aa,
54206
+ t0 as ab,
54207
+ sJ as ac,
54208
+ oJ as ad,
54209
+ iJ as ae,
54210
+ RJ as af,
54211
+ nh as ag,
54212
+ ti as ah,
54213
+ hJ as ai,
54201
54214
  fJ as aj,
54202
- jn as ak,
54203
- ZZ as al,
54204
- JZ as am,
54205
- RJ as an,
54206
- TJ as ao,
54207
- SJ as ap,
54208
- OZ as aq,
54209
- IZ as ar,
54210
- LT as as,
54211
- u0 as at,
54215
+ s_ as ak,
54216
+ gJ as al,
54217
+ jn as am,
54218
+ JZ as an,
54219
+ eJ as ao,
54220
+ AJ as ap,
54221
+ bJ as aq,
54222
+ TJ as ar,
54223
+ OZ as as,
54224
+ IZ as at,
54212
54225
  En as au,
54213
- bJ as av,
54226
+ yJ as av,
54214
54227
  wZ as aw,
54215
54228
  iI as ax,
54216
54229
  sZ as ay,
54217
54230
  wT as az,
54218
54231
  DS as b,
54219
- qC as b0,
54220
- UC as b1,
54221
- BC as b2,
54222
- cJ as b3,
54223
- ZC as b4,
54224
- QC as b5,
54225
- JC as b6,
54226
- GZ as b7,
54227
- yJ as b8,
54232
+ ku as b0,
54233
+ qC as b1,
54234
+ UC as b2,
54235
+ BC as b3,
54236
+ lJ as b4,
54237
+ ZC as b5,
54238
+ QC as b6,
54239
+ JC as b7,
54240
+ GZ as b8,
54241
+ DJ as b9,
54228
54242
  RZ as c,
54229
54243
  AZ as d,
54230
54244
  gZ as e,
@@ -54250,4 +54264,4 @@ export {
54250
54264
  cZ as y,
54251
54265
  dZ as z
54252
54266
  };
54253
- //# sourceMappingURL=color-ldrInzKB.js.map
54267
+ //# sourceMappingURL=color-DWbYEM4a.js.map