astracode-agent 0.5.1 → 0.5.2

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.
@@ -55,7 +55,7 @@ var init_define_ASTRACODE_BUNDLED_SKILLS = __esm({
55
55
  var require_shim_vscode = __commonJS({
56
56
  "../packaging/bench/shim-vscode.js"(exports2, module2) {
57
57
  init_define_ASTRACODE_BUNDLED_SKILLS();
58
- var fs54 = require("node:fs");
58
+ var fs55 = require("node:fs");
59
59
  var path63 = require("node:path");
60
60
  function root2() {
61
61
  const r = process.env.ASTRACODE_BENCH_ROOT;
@@ -72,7 +72,7 @@ var require_shim_vscode = __commonJS({
72
72
  if (!dir) return false;
73
73
  let base = path63.resolve(dir);
74
74
  try {
75
- base = fs54.realpathSync(base);
75
+ base = fs55.realpathSync(base);
76
76
  } catch {
77
77
  }
78
78
  return full.startsWith(base + path63.sep);
@@ -114,7 +114,7 @@ var require_shim_vscode = __commonJS({
114
114
  return new RegExp(`^${re}$`);
115
115
  }
116
116
  function walk5(dir, out2 = []) {
117
- for (const e of fs54.readdirSync(dir, { withFileTypes: true })) {
117
+ for (const e of fs55.readdirSync(dir, { withFileTypes: true })) {
118
118
  if (e.name === "node_modules" || e.name === ".git" || e.name === "dist") continue;
119
119
  const full = path63.join(dir, e.name);
120
120
  if (e.isDirectory()) walk5(full, out2);
@@ -238,7 +238,7 @@ var require_shim_vscode = __commonJS({
238
238
  return out2;
239
239
  },
240
240
  openTextDocument: async (u) => {
241
- const text2 = fs54.existsSync(u.fsPath) ? fs54.readFileSync(u.fsPath, "utf8") : "";
241
+ const text2 = fs55.existsSync(u.fsPath) ? fs55.readFileSync(u.fsPath, "utf8") : "";
242
242
  const lines2 = text2.split("\n");
243
243
  return {
244
244
  uri: u,
@@ -259,10 +259,10 @@ var require_shim_vscode = __commonJS({
259
259
  },
260
260
  applyEdit: async (edit) => {
261
261
  for (const op of edit.ops) {
262
- if (op.kind === "delete") fs54.rmSync(op.path, { force: true });
262
+ if (op.kind === "delete") fs55.rmSync(op.path, { force: true });
263
263
  else {
264
- fs54.mkdirSync(path63.dirname(op.path), { recursive: true });
265
- fs54.writeFileSync(op.path, op.text, "utf8");
264
+ fs55.mkdirSync(path63.dirname(op.path), { recursive: true });
265
+ fs55.writeFileSync(op.path, op.text, "utf8");
266
266
  UNSAVED.add(op.path);
267
267
  }
268
268
  }
@@ -289,7 +289,7 @@ var require_shim_vscode = __commonJS({
289
289
  */
290
290
  readFile: async (u) => {
291
291
  try {
292
- return fs54.readFileSync(u.fsPath);
292
+ return fs55.readFileSync(u.fsPath);
293
293
  } catch (err2) {
294
294
  if (err2 && err2.code === "ENOENT") {
295
295
  const e = new Error(`file not found: ${u.fsPath}`);
@@ -313,20 +313,20 @@ var require_shim_vscode = __commonJS({
313
313
  * would break the caller that relies on exactly that.
314
314
  */
315
315
  createDirectory: async (u) => {
316
- fs54.mkdirSync(u.fsPath, { recursive: true });
316
+ fs55.mkdirSync(u.fsPath, { recursive: true });
317
317
  },
318
318
  writeFile: async (u, data) => {
319
319
  if (inTranscripts(u.fsPath)) throw new Error(`refusing to write ${u.fsPath}: transcripts are read-only`);
320
- fs54.mkdirSync(path63.dirname(u.fsPath), { recursive: true });
321
- fs54.writeFileSync(u.fsPath, Buffer.from(data));
320
+ fs55.mkdirSync(path63.dirname(u.fsPath), { recursive: true });
321
+ fs55.writeFileSync(u.fsPath, Buffer.from(data));
322
322
  },
323
323
  stat: async (u) => {
324
- const st = fs54.statSync(u.fsPath);
324
+ const st = fs55.statSync(u.fsPath);
325
325
  return { type: st.isDirectory() ? 2 : 1, size: st.size };
326
326
  },
327
327
  delete: async (u) => {
328
328
  if (inTranscripts(u.fsPath)) throw new Error(`refusing to delete ${u.fsPath}: transcripts are read-only`);
329
- fs54.rmSync(u.fsPath, { force: true, recursive: true });
329
+ fs55.rmSync(u.fsPath, { force: true, recursive: true });
330
330
  }
331
331
  },
332
332
  onDidChangeVisibleTextEditors: () => ({ dispose() {
@@ -439,7 +439,7 @@ var require_shim_vscode = __commonJS({
439
439
  }
440
440
  });
441
441
 
442
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/tslib.mjs
442
+ // ../editor/node_modules/@anthropic-ai/sdk/internal/tslib.mjs
443
443
  function __classPrivateFieldSet(receiver, state, value, kind, f) {
444
444
  if (kind === "m")
445
445
  throw new TypeError("Private method is not writable");
@@ -457,15 +457,15 @@ function __classPrivateFieldGet(receiver, state, kind, f) {
457
457
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
458
458
  }
459
459
  var init_tslib = __esm({
460
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/tslib.mjs"() {
460
+ "../editor/node_modules/@anthropic-ai/sdk/internal/tslib.mjs"() {
461
461
  init_define_ASTRACODE_BUNDLED_SKILLS();
462
462
  }
463
463
  });
464
464
 
465
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/utils/uuid.mjs
465
+ // ../editor/node_modules/@anthropic-ai/sdk/internal/utils/uuid.mjs
466
466
  var uuid4;
467
467
  var init_uuid = __esm({
468
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/utils/uuid.mjs"() {
468
+ "../editor/node_modules/@anthropic-ai/sdk/internal/utils/uuid.mjs"() {
469
469
  init_define_ASTRACODE_BUNDLED_SKILLS();
470
470
  uuid4 = function() {
471
471
  const { crypto: crypto13 } = globalThis;
@@ -480,7 +480,7 @@ var init_uuid = __esm({
480
480
  }
481
481
  });
482
482
 
483
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/errors.mjs
483
+ // ../editor/node_modules/@anthropic-ai/sdk/internal/errors.mjs
484
484
  function isAbortError(err2) {
485
485
  return typeof err2 === "object" && err2 !== null && // Spec-compliant fetch implementations
486
486
  ("name" in err2 && err2.name === "AbortError" || // Expo fetch
@@ -488,7 +488,7 @@ function isAbortError(err2) {
488
488
  }
489
489
  var castToError;
490
490
  var init_errors = __esm({
491
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/errors.mjs"() {
491
+ "../editor/node_modules/@anthropic-ai/sdk/internal/errors.mjs"() {
492
492
  init_define_ASTRACODE_BUNDLED_SKILLS();
493
493
  castToError = (err2) => {
494
494
  if (err2 instanceof Error)
@@ -517,10 +517,10 @@ var init_errors = __esm({
517
517
  }
518
518
  });
519
519
 
520
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/core/error.mjs
520
+ // ../editor/node_modules/@anthropic-ai/sdk/core/error.mjs
521
521
  var AnthropicError, APIError, APIUserAbortError, APIConnectionError, APIConnectionTimeoutError, RetryableError, BadRequestError, AuthenticationError, PermissionDeniedError, NotFoundError, ConflictError, UnprocessableEntityError, RateLimitError, InternalServerError;
522
522
  var init_error = __esm({
523
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/core/error.mjs"() {
523
+ "../editor/node_modules/@anthropic-ai/sdk/core/error.mjs"() {
524
524
  init_define_ASTRACODE_BUNDLED_SKILLS();
525
525
  init_errors();
526
526
  AnthropicError = class extends Error {
@@ -624,7 +624,7 @@ var init_error = __esm({
624
624
  }
625
625
  });
626
626
 
627
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/utils/values.mjs
627
+ // ../editor/node_modules/@anthropic-ai/sdk/internal/utils/values.mjs
628
628
  function maybeObj(x) {
629
629
  if (typeof x !== "object") {
630
630
  return {};
@@ -646,7 +646,7 @@ function isObj(obj) {
646
646
  }
647
647
  var startsWithSchemeRegexp, isAbsoluteURL, isArray, isReadonlyArray, validatePositiveInteger, safeJSON;
648
648
  var init_values = __esm({
649
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/utils/values.mjs"() {
649
+ "../editor/node_modules/@anthropic-ai/sdk/internal/utils/values.mjs"() {
650
650
  init_define_ASTRACODE_BUNDLED_SKILLS();
651
651
  init_error();
652
652
  startsWithSchemeRegexp = /^[a-z][a-z0-9+.-]*:/i;
@@ -674,10 +674,10 @@ var init_values = __esm({
674
674
  }
675
675
  });
676
676
 
677
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/utils/sleep.mjs
677
+ // ../editor/node_modules/@anthropic-ai/sdk/internal/utils/sleep.mjs
678
678
  var sleep;
679
679
  var init_sleep = __esm({
680
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/utils/sleep.mjs"() {
680
+ "../editor/node_modules/@anthropic-ai/sdk/internal/utils/sleep.mjs"() {
681
681
  init_define_ASTRACODE_BUNDLED_SKILLS();
682
682
  sleep = (ms, signal) => new Promise((resolve22) => {
683
683
  if (signal?.aborted)
@@ -695,16 +695,16 @@ var init_sleep = __esm({
695
695
  }
696
696
  });
697
697
 
698
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/version.mjs
698
+ // ../editor/node_modules/@anthropic-ai/sdk/version.mjs
699
699
  var VERSION;
700
700
  var init_version = __esm({
701
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/version.mjs"() {
701
+ "../editor/node_modules/@anthropic-ai/sdk/version.mjs"() {
702
702
  init_define_ASTRACODE_BUNDLED_SKILLS();
703
703
  VERSION = "0.120.0";
704
704
  }
705
705
  });
706
706
 
707
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/detect-platform.mjs
707
+ // ../editor/node_modules/@anthropic-ai/sdk/internal/detect-platform.mjs
708
708
  function getDetectedPlatform() {
709
709
  if (typeof Deno !== "undefined" && Deno.build != null) {
710
710
  return "deno";
@@ -742,7 +742,7 @@ function getBrowserInfo() {
742
742
  }
743
743
  var isRunningInBrowser, getPlatformProperties, normalizeArch, normalizePlatform, _platformHeaders, getPlatformHeaders;
744
744
  var init_detect_platform = __esm({
745
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/detect-platform.mjs"() {
745
+ "../editor/node_modules/@anthropic-ai/sdk/internal/detect-platform.mjs"() {
746
746
  init_define_ASTRACODE_BUNDLED_SKILLS();
747
747
  init_version();
748
748
  isRunningInBrowser = () => {
@@ -844,7 +844,7 @@ var init_detect_platform = __esm({
844
844
  }
845
845
  });
846
846
 
847
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/request-signal.mjs
847
+ // ../editor/node_modules/@anthropic-ai/sdk/internal/request-signal.mjs
848
848
  function makeCleanup(signal, listener) {
849
849
  return () => signal.removeEventListener("abort", listener);
850
850
  }
@@ -865,14 +865,14 @@ function releaseRequestSignal(controller) {
865
865
  }
866
866
  var cleanups, registry;
867
867
  var init_request_signal = __esm({
868
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/request-signal.mjs"() {
868
+ "../editor/node_modules/@anthropic-ai/sdk/internal/request-signal.mjs"() {
869
869
  init_define_ASTRACODE_BUNDLED_SKILLS();
870
870
  cleanups = /* @__PURE__ */ new WeakMap();
871
871
  registry = typeof globalThis.FinalizationRegistry === "function" ? new globalThis.FinalizationRegistry((controller) => releaseRequestSignal(controller)) : null;
872
872
  }
873
873
  });
874
874
 
875
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/shims.mjs
875
+ // ../editor/node_modules/@anthropic-ai/sdk/internal/shims.mjs
876
876
  function getDefaultFetch() {
877
877
  if (typeof fetch !== "undefined") {
878
878
  return fetch;
@@ -944,15 +944,15 @@ async function CancelReadableStream(stream) {
944
944
  await cancelPromise;
945
945
  }
946
946
  var init_shims = __esm({
947
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/shims.mjs"() {
947
+ "../editor/node_modules/@anthropic-ai/sdk/internal/shims.mjs"() {
948
948
  init_define_ASTRACODE_BUNDLED_SKILLS();
949
949
  }
950
950
  });
951
951
 
952
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/request-options.mjs
952
+ // ../editor/node_modules/@anthropic-ai/sdk/internal/request-options.mjs
953
953
  var FallbackEncoder;
954
954
  var init_request_options = __esm({
955
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/request-options.mjs"() {
955
+ "../editor/node_modules/@anthropic-ai/sdk/internal/request-options.mjs"() {
956
956
  init_define_ASTRACODE_BUNDLED_SKILLS();
957
957
  FallbackEncoder = ({ headers, body: body2 }) => {
958
958
  return {
@@ -965,10 +965,10 @@ var init_request_options = __esm({
965
965
  }
966
966
  });
967
967
 
968
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/qs/formats.mjs
968
+ // ../editor/node_modules/@anthropic-ai/sdk/internal/qs/formats.mjs
969
969
  var default_format, default_formatter, formatters, RFC1738;
970
970
  var init_formats = __esm({
971
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/qs/formats.mjs"() {
971
+ "../editor/node_modules/@anthropic-ai/sdk/internal/qs/formats.mjs"() {
972
972
  init_define_ASTRACODE_BUNDLED_SKILLS();
973
973
  default_format = "RFC3986";
974
974
  default_formatter = (v) => String(v);
@@ -980,7 +980,7 @@ var init_formats = __esm({
980
980
  }
981
981
  });
982
982
 
983
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/qs/utils.mjs
983
+ // ../editor/node_modules/@anthropic-ai/sdk/internal/qs/utils.mjs
984
984
  function is_buffer(obj) {
985
985
  if (!obj || typeof obj !== "object") {
986
986
  return false;
@@ -999,7 +999,7 @@ function maybe_map(val, fn) {
999
999
  }
1000
1000
  var has, hex_table, limit, encode;
1001
1001
  var init_utils = __esm({
1002
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/qs/utils.mjs"() {
1002
+ "../editor/node_modules/@anthropic-ai/sdk/internal/qs/utils.mjs"() {
1003
1003
  init_define_ASTRACODE_BUNDLED_SKILLS();
1004
1004
  init_formats();
1005
1005
  init_values();
@@ -1067,7 +1067,7 @@ var init_utils = __esm({
1067
1067
  }
1068
1068
  });
1069
1069
 
1070
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/qs/stringify.mjs
1070
+ // ../editor/node_modules/@anthropic-ai/sdk/internal/qs/stringify.mjs
1071
1071
  function is_non_nullish_primitive(v) {
1072
1072
  return typeof v === "string" || typeof v === "number" || typeof v === "boolean" || typeof v === "symbol" || typeof v === "bigint";
1073
1073
  }
@@ -1307,7 +1307,7 @@ function stringify(object2, opts = {}) {
1307
1307
  }
1308
1308
  var array_prefix_generators, push_to_array, toISOString, defaults, sentinel;
1309
1309
  var init_stringify = __esm({
1310
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/qs/stringify.mjs"() {
1310
+ "../editor/node_modules/@anthropic-ai/sdk/internal/qs/stringify.mjs"() {
1311
1311
  init_define_ASTRACODE_BUNDLED_SKILLS();
1312
1312
  init_utils();
1313
1313
  init_formats();
@@ -1353,18 +1353,18 @@ var init_stringify = __esm({
1353
1353
  }
1354
1354
  });
1355
1355
 
1356
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/utils/query.mjs
1356
+ // ../editor/node_modules/@anthropic-ai/sdk/internal/utils/query.mjs
1357
1357
  function stringifyQuery(query) {
1358
1358
  return stringify(query, { arrayFormat: "brackets" });
1359
1359
  }
1360
1360
  var init_query = __esm({
1361
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/utils/query.mjs"() {
1361
+ "../editor/node_modules/@anthropic-ai/sdk/internal/utils/query.mjs"() {
1362
1362
  init_define_ASTRACODE_BUNDLED_SKILLS();
1363
1363
  init_stringify();
1364
1364
  }
1365
1365
  });
1366
1366
 
1367
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/credentials/types.mjs
1367
+ // ../editor/node_modules/@anthropic-ai/sdk/lib/credentials/types.mjs
1368
1368
  function requireSecureTokenEndpoint(baseURL) {
1369
1369
  if (!baseURL)
1370
1370
  return;
@@ -1425,12 +1425,12 @@ function redactSensitive(body2) {
1425
1425
  async function checkCredentialsFileSafety(path63, onWarn = (m) => console.warn(`anthropic-sdk: ${m}`)) {
1426
1426
  if (typeof process === "undefined" || process.platform === "win32")
1427
1427
  return;
1428
- const fs54 = await import("node:fs");
1428
+ const fs55 = await import("node:fs");
1429
1429
  let resolved = path63;
1430
1430
  let st;
1431
1431
  try {
1432
- resolved = await fs54.promises.realpath(path63);
1433
- st = await fs54.promises.stat(resolved);
1432
+ resolved = await fs55.promises.realpath(path63);
1433
+ st = await fs55.promises.stat(resolved);
1434
1434
  } catch {
1435
1435
  return;
1436
1436
  }
@@ -1446,27 +1446,27 @@ async function checkCredentialsFileSafety(path63, onWarn = (m) => console.warn(`
1446
1446
  }
1447
1447
  }
1448
1448
  async function writeCredentialsFileAtomic(targetPath, data) {
1449
- const fs54 = await import("node:fs");
1449
+ const fs55 = await import("node:fs");
1450
1450
  const path63 = await import("node:path");
1451
1451
  const dir = path63.dirname(targetPath);
1452
- await fs54.promises.mkdir(dir, { recursive: true, mode: 448 });
1452
+ await fs55.promises.mkdir(dir, { recursive: true, mode: 448 });
1453
1453
  const tmpPath = `${targetPath}.${process.pid}.${Math.random().toString(36).slice(2)}.tmp`;
1454
1454
  try {
1455
- const fh = await fs54.promises.open(tmpPath, "w", 384);
1455
+ const fh = await fs55.promises.open(tmpPath, "w", 384);
1456
1456
  try {
1457
1457
  await fh.writeFile(JSON.stringify(data, null, 2));
1458
1458
  await fh.sync();
1459
1459
  } finally {
1460
1460
  await fh.close();
1461
1461
  }
1462
- await fs54.promises.rename(tmpPath, targetPath);
1462
+ await fs55.promises.rename(tmpPath, targetPath);
1463
1463
  } catch (err2) {
1464
- await fs54.promises.unlink(tmpPath).catch(() => {
1464
+ await fs55.promises.unlink(tmpPath).catch(() => {
1465
1465
  });
1466
1466
  throw err2;
1467
1467
  }
1468
1468
  try {
1469
- const dirFh = await fs54.promises.open(dir, "r");
1469
+ const dirFh = await fs55.promises.open(dir, "r");
1470
1470
  try {
1471
1471
  await dirFh.sync();
1472
1472
  } finally {
@@ -1511,7 +1511,7 @@ async function readLimitedText(resp) {
1511
1511
  }
1512
1512
  var GRANT_TYPE_JWT_BEARER, GRANT_TYPE_REFRESH_TOKEN, TOKEN_ENDPOINT, OAUTH_API_BETA_HEADER, FEDERATION_BETA_HEADER, ADVISORY_REFRESH_THRESHOLD_IN_SECONDS, MANDATORY_REFRESH_THRESHOLD_IN_SECONDS, ADVISORY_REFRESH_BACKOFF_IN_SECONDS, MAX_TOKEN_RESPONSE_BYTES, MAX_ERROR_BODY_CHARS, SAFE_ERROR_KEYS, WorkloadIdentityError;
1513
1513
  var init_types = __esm({
1514
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/credentials/types.mjs"() {
1514
+ "../editor/node_modules/@anthropic-ai/sdk/lib/credentials/types.mjs"() {
1515
1515
  init_define_ASTRACODE_BUNDLED_SKILLS();
1516
1516
  init_error();
1517
1517
  GRANT_TYPE_JWT_BEARER = "urn:ietf:params:oauth:grant-type:jwt-bearer";
@@ -1536,20 +1536,20 @@ var init_types = __esm({
1536
1536
  }
1537
1537
  });
1538
1538
 
1539
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/utils/time.mjs
1539
+ // ../editor/node_modules/@anthropic-ai/sdk/internal/utils/time.mjs
1540
1540
  function nowAsSeconds() {
1541
1541
  return Math.floor(Date.now() / 1e3);
1542
1542
  }
1543
1543
  var init_time = __esm({
1544
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/utils/time.mjs"() {
1544
+ "../editor/node_modules/@anthropic-ai/sdk/internal/utils/time.mjs"() {
1545
1545
  init_define_ASTRACODE_BUNDLED_SKILLS();
1546
1546
  }
1547
1547
  });
1548
1548
 
1549
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.mjs
1549
+ // ../editor/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.mjs
1550
1550
  var TokenCache;
1551
1551
  var init_token_cache = __esm({
1552
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.mjs"() {
1552
+ "../editor/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.mjs"() {
1553
1553
  init_define_ASTRACODE_BUNDLED_SKILLS();
1554
1554
  init_types();
1555
1555
  init_time();
@@ -1567,8 +1567,8 @@ var init_token_cache = __esm({
1567
1567
  this.nextForce = false;
1568
1568
  const cached4 = this.cached;
1569
1569
  if (force || cached4 == null) {
1570
- const token3 = await this.refresh(force);
1571
- return token3.token;
1570
+ const token2 = await this.refresh(force);
1571
+ return token2.token;
1572
1572
  }
1573
1573
  if (cached4.expiresAt == null) {
1574
1574
  return cached4.token;
@@ -1581,8 +1581,8 @@ var init_token_cache = __esm({
1581
1581
  this.backgroundRefresh();
1582
1582
  return cached4.token;
1583
1583
  }
1584
- const token2 = await this.refresh();
1585
- return token2.token;
1584
+ const token = await this.refresh();
1585
+ return token.token;
1586
1586
  }
1587
1587
  /**
1588
1588
  * Clears the cached token and marks the next {@link getToken} as a forced
@@ -1629,10 +1629,10 @@ var init_token_cache = __esm({
1629
1629
  * (both advisory and mandatory) coalesce into a single provider call.
1630
1630
  */
1631
1631
  doRefresh(force = false) {
1632
- this.pendingRefresh = this.provider(force ? { forceRefresh: true } : void 0).then((token2) => {
1633
- this.cached = token2;
1632
+ this.pendingRefresh = this.provider(force ? { forceRefresh: true } : void 0).then((token) => {
1633
+ this.cached = token;
1634
1634
  this.pendingRefresh = null;
1635
- return token2;
1635
+ return token;
1636
1636
  }, (err2) => {
1637
1637
  this.pendingRefresh = null;
1638
1638
  throw err2;
@@ -1643,10 +1643,10 @@ var init_token_cache = __esm({
1643
1643
  }
1644
1644
  });
1645
1645
 
1646
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/utils/env.mjs
1646
+ // ../editor/node_modules/@anthropic-ai/sdk/internal/utils/env.mjs
1647
1647
  var readEnv;
1648
1648
  var init_env = __esm({
1649
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/utils/env.mjs"() {
1649
+ "../editor/node_modules/@anthropic-ai/sdk/internal/utils/env.mjs"() {
1650
1650
  init_define_ASTRACODE_BUNDLED_SKILLS();
1651
1651
  readEnv = (env5) => {
1652
1652
  if (typeof globalThis.process !== "undefined") {
@@ -1660,7 +1660,7 @@ var init_env = __esm({
1660
1660
  }
1661
1661
  });
1662
1662
 
1663
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/utils/bytes.mjs
1663
+ // ../editor/node_modules/@anthropic-ai/sdk/internal/utils/bytes.mjs
1664
1664
  function concatBytes(buffers) {
1665
1665
  let length = 0;
1666
1666
  for (const buffer of buffers) {
@@ -1684,15 +1684,15 @@ function decodeUTF8(bytes) {
1684
1684
  }
1685
1685
  var encodeUTF8_, decodeUTF8_;
1686
1686
  var init_bytes = __esm({
1687
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/utils/bytes.mjs"() {
1687
+ "../editor/node_modules/@anthropic-ai/sdk/internal/utils/bytes.mjs"() {
1688
1688
  init_define_ASTRACODE_BUNDLED_SKILLS();
1689
1689
  }
1690
1690
  });
1691
1691
 
1692
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/utils/base64.mjs
1692
+ // ../editor/node_modules/@anthropic-ai/sdk/internal/utils/base64.mjs
1693
1693
  var fromBase64;
1694
1694
  var init_base64 = __esm({
1695
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/utils/base64.mjs"() {
1695
+ "../editor/node_modules/@anthropic-ai/sdk/internal/utils/base64.mjs"() {
1696
1696
  init_define_ASTRACODE_BUNDLED_SKILLS();
1697
1697
  init_error();
1698
1698
  init_bytes();
@@ -1714,7 +1714,7 @@ var init_base64 = __esm({
1714
1714
  }
1715
1715
  });
1716
1716
 
1717
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/utils/log.mjs
1717
+ // ../editor/node_modules/@anthropic-ai/sdk/internal/utils/log.mjs
1718
1718
  function noop() {
1719
1719
  }
1720
1720
  function makeLogFn(fnLevel, logger, logLevel) {
@@ -1756,7 +1756,7 @@ function defaultLogger() {
1756
1756
  }
1757
1757
  var defaultLogLevel, levelNumbers, parseLogLevel, noopLogger, cachedLoggers, lastEnvLevel, cachedDefaultLogger, formatRequestDetails;
1758
1758
  var init_log = __esm({
1759
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/utils/log.mjs"() {
1759
+ "../editor/node_modules/@anthropic-ai/sdk/internal/utils/log.mjs"() {
1760
1760
  init_define_ASTRACODE_BUNDLED_SKILLS();
1761
1761
  init_values();
1762
1762
  init_env();
@@ -1807,9 +1807,9 @@ var init_log = __esm({
1807
1807
  }
1808
1808
  });
1809
1809
 
1810
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/utils.mjs
1810
+ // ../editor/node_modules/@anthropic-ai/sdk/internal/utils.mjs
1811
1811
  var init_utils2 = __esm({
1812
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/utils.mjs"() {
1812
+ "../editor/node_modules/@anthropic-ai/sdk/internal/utils.mjs"() {
1813
1813
  init_define_ASTRACODE_BUNDLED_SKILLS();
1814
1814
  init_values();
1815
1815
  init_base64();
@@ -1821,7 +1821,7 @@ var init_utils2 = __esm({
1821
1821
  }
1822
1822
  });
1823
1823
 
1824
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/core/credentials.mjs
1824
+ // ../editor/node_modules/@anthropic-ai/sdk/core/credentials.mjs
1825
1825
  function validateProfileName(name3) {
1826
1826
  if (!name3) {
1827
1827
  throw new Error("profile name is empty");
@@ -1838,7 +1838,7 @@ function validateProfileName(name3) {
1838
1838
  }
1839
1839
  var CREDENTIALS_FILE_VERSION, PROFILE_NAME_PATTERN, loadConfigWithSource, getCredentialsPath, getRootConfigPath, supportsLocalConfigFiles, getActiveProfileName;
1840
1840
  var init_credentials = __esm({
1841
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/core/credentials.mjs"() {
1841
+ "../editor/node_modules/@anthropic-ai/sdk/core/credentials.mjs"() {
1842
1842
  init_define_ASTRACODE_BUNDLED_SKILLS();
1843
1843
  init_detect_platform();
1844
1844
  init_utils2();
@@ -1855,12 +1855,12 @@ var init_credentials = __esm({
1855
1855
  return null;
1856
1856
  }
1857
1857
  validateProfileName(profileName);
1858
- const fs54 = await import("node:fs");
1858
+ const fs55 = await import("node:fs");
1859
1859
  const path63 = await import("node:path");
1860
1860
  const configPath = path63.join(rootConfigPath, "configs", `${profileName}.json`);
1861
1861
  let configRaw;
1862
1862
  try {
1863
- configRaw = await fs54.promises.readFile(configPath, "utf-8");
1863
+ configRaw = await fs55.promises.readFile(configPath, "utf-8");
1864
1864
  } catch (err2) {
1865
1865
  if (err2?.code !== "ENOENT") {
1866
1866
  throw new Error(`failed to read config file ${configPath}: ${err2}`);
@@ -1953,8 +1953,8 @@ var init_credentials = __esm({
1953
1953
  if (configDir2) {
1954
1954
  return configDir2;
1955
1955
  }
1956
- const os20 = getPlatformHeaders()["X-Stainless-OS"];
1957
- if (os20 === "Windows") {
1956
+ const os21 = getPlatformHeaders()["X-Stainless-OS"];
1957
+ if (os21 === "Windows") {
1958
1958
  const appData = readEnv("APPDATA");
1959
1959
  if (appData) {
1960
1960
  return path63.join(appData, "Anthropic");
@@ -1988,11 +1988,11 @@ var init_credentials = __esm({
1988
1988
  if (profileName) {
1989
1989
  return profileName;
1990
1990
  }
1991
- const fs54 = await import("node:fs");
1991
+ const fs55 = await import("node:fs");
1992
1992
  const path63 = await import("node:path");
1993
1993
  const filePath = path63.join(rootConfigPath, "active_config");
1994
1994
  try {
1995
- return (await fs54.promises.readFile(filePath, "utf-8")).trim() || "default";
1995
+ return (await fs55.promises.readFile(filePath, "utf-8")).trim() || "default";
1996
1996
  } catch (err2) {
1997
1997
  if (err2?.code !== "ENOENT") {
1998
1998
  throw new Error(`failed to read ${filePath}: ${err2}`);
@@ -2003,40 +2003,40 @@ var init_credentials = __esm({
2003
2003
  }
2004
2004
  });
2005
2005
 
2006
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.mjs
2006
+ // ../editor/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.mjs
2007
2007
  function identityTokenFromFile(path63) {
2008
2008
  if (!path63) {
2009
2009
  throw new AnthropicError("Identity token file path is empty");
2010
2010
  }
2011
2011
  return async () => {
2012
- const fs54 = await import("node:fs");
2012
+ const fs55 = await import("node:fs");
2013
2013
  let content;
2014
2014
  try {
2015
- content = await fs54.promises.readFile(path63, "utf-8");
2015
+ content = await fs55.promises.readFile(path63, "utf-8");
2016
2016
  } catch (err2) {
2017
2017
  throw new AnthropicError(`Failed to read identity token file at ${path63}: ${err2}`);
2018
2018
  }
2019
- const token2 = content.trim();
2020
- if (!token2) {
2019
+ const token = content.trim();
2020
+ if (!token) {
2021
2021
  throw new AnthropicError(`Identity token file at ${path63} is empty`);
2022
2022
  }
2023
- return token2;
2023
+ return token;
2024
2024
  };
2025
2025
  }
2026
- function identityTokenFromValue(token2) {
2027
- if (!token2) {
2026
+ function identityTokenFromValue(token) {
2027
+ if (!token) {
2028
2028
  throw new AnthropicError("Identity token value is empty");
2029
2029
  }
2030
- return () => token2;
2030
+ return () => token;
2031
2031
  }
2032
2032
  var init_identity_token = __esm({
2033
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.mjs"() {
2033
+ "../editor/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.mjs"() {
2034
2034
  init_define_ASTRACODE_BUNDLED_SKILLS();
2035
2035
  init_error();
2036
2036
  }
2037
2037
  });
2038
2038
 
2039
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.mjs
2039
+ // ../editor/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.mjs
2040
2040
  function oidcFederationProvider(config3) {
2041
2041
  return async () => {
2042
2042
  requireSecureTokenEndpoint(config3.baseURL);
@@ -2094,7 +2094,7 @@ function oidcFederationProvider(config3) {
2094
2094
  };
2095
2095
  }
2096
2096
  var init_oidc_federation = __esm({
2097
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.mjs"() {
2097
+ "../editor/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.mjs"() {
2098
2098
  init_define_ASTRACODE_BUNDLED_SKILLS();
2099
2099
  init_types();
2100
2100
  init_time();
@@ -2102,14 +2102,14 @@ var init_oidc_federation = __esm({
2102
2102
  }
2103
2103
  });
2104
2104
 
2105
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.mjs
2105
+ // ../editor/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.mjs
2106
2106
  function userOAuthProvider(config3) {
2107
2107
  return async (opts) => {
2108
- const fs54 = await import("node:fs");
2108
+ const fs55 = await import("node:fs");
2109
2109
  await checkCredentialsFileSafety(config3.credentialsPath, config3.onSafetyWarning);
2110
2110
  let raw;
2111
2111
  try {
2112
- raw = await fs54.promises.readFile(config3.credentialsPath, "utf-8");
2112
+ raw = await fs55.promises.readFile(config3.credentialsPath, "utf-8");
2113
2113
  } catch (err2) {
2114
2114
  throw new WorkloadIdentityError(`Credentials file not found at ${config3.credentialsPath}: ${err2}`);
2115
2115
  }
@@ -2176,7 +2176,7 @@ function userOAuthProvider(config3) {
2176
2176
  };
2177
2177
  }
2178
2178
  var init_user_oauth = __esm({
2179
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.mjs"() {
2179
+ "../editor/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.mjs"() {
2180
2180
  init_define_ASTRACODE_BUNDLED_SKILLS();
2181
2181
  init_credentials();
2182
2182
  init_types();
@@ -2185,7 +2185,7 @@ var init_user_oauth = __esm({
2185
2185
  }
2186
2186
  });
2187
2187
 
2188
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.mjs
2188
+ // ../editor/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.mjs
2189
2189
  function resolveCredentialsFromConfig(config3, options) {
2190
2190
  const credentialsPath = config3.authentication.credentials_path ?? null;
2191
2191
  const effectiveBaseURL = (config3.base_url || options.baseURL).replace(/\/+$/, "");
@@ -2282,17 +2282,17 @@ function resolveIdentityTokenProvider(auth) {
2282
2282
  }
2283
2283
  function cachedExchangeProvider(exchange2, credentialsPath, onCacheWriteError, onSafetyWarning) {
2284
2284
  return async (opts) => {
2285
- const fs54 = await import("node:fs");
2285
+ const fs55 = await import("node:fs");
2286
2286
  await checkCredentialsFileSafety(credentialsPath, onSafetyWarning);
2287
2287
  let existing;
2288
2288
  try {
2289
- const raw = await fs54.promises.readFile(credentialsPath, "utf-8");
2289
+ const raw = await fs55.promises.readFile(credentialsPath, "utf-8");
2290
2290
  existing = JSON.parse(raw);
2291
- const token2 = existing?.["access_token"];
2292
- if (token2 && !opts?.forceRefresh) {
2291
+ const token = existing?.["access_token"];
2292
+ if (token && !opts?.forceRefresh) {
2293
2293
  const expiresAt = existing?.["expires_at"];
2294
2294
  if (expiresAt == null || nowAsSeconds() < expiresAt - MANDATORY_REFRESH_THRESHOLD_IN_SECONDS) {
2295
- return { token: token2, expiresAt: expiresAt ?? null };
2295
+ return { token, expiresAt: expiresAt ?? null };
2296
2296
  }
2297
2297
  }
2298
2298
  } catch (err2) {
@@ -2317,7 +2317,7 @@ function cachedExchangeProvider(exchange2, credentialsPath, onCacheWriteError, o
2317
2317
  };
2318
2318
  }
2319
2319
  var init_credential_chain = __esm({
2320
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.mjs"() {
2320
+ "../editor/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.mjs"() {
2321
2321
  init_define_ASTRACODE_BUNDLED_SKILLS();
2322
2322
  init_env();
2323
2323
  init_credentials();
@@ -2329,7 +2329,7 @@ var init_credential_chain = __esm({
2329
2329
  }
2330
2330
  });
2331
2331
 
2332
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/decoders/line.mjs
2332
+ // ../editor/node_modules/@anthropic-ai/sdk/internal/decoders/line.mjs
2333
2333
  function findNewlineIndex(buffer, startIndex) {
2334
2334
  const newline2 = 10;
2335
2335
  const carriage = 13;
@@ -2361,7 +2361,7 @@ function findDoubleNewlineIndex(buffer) {
2361
2361
  }
2362
2362
  var _LineDecoder_buffer, _LineDecoder_carriageReturnIndex, LineDecoder;
2363
2363
  var init_line = __esm({
2364
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/decoders/line.mjs"() {
2364
+ "../editor/node_modules/@anthropic-ai/sdk/internal/decoders/line.mjs"() {
2365
2365
  init_define_ASTRACODE_BUNDLED_SKILLS();
2366
2366
  init_tslib();
2367
2367
  init_bytes();
@@ -2412,7 +2412,7 @@ var init_line = __esm({
2412
2412
  }
2413
2413
  });
2414
2414
 
2415
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/core/streaming.mjs
2415
+ // ../editor/node_modules/@anthropic-ai/sdk/core/streaming.mjs
2416
2416
  async function* _iterSSEMessages(response, controller) {
2417
2417
  if (!response.body) {
2418
2418
  controller.abort();
@@ -2467,7 +2467,7 @@ function partition(str5, delimiter4) {
2467
2467
  }
2468
2468
  var _Stream_client, Stream, SSEDecoder;
2469
2469
  var init_streaming = __esm({
2470
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/core/streaming.mjs"() {
2470
+ "../editor/node_modules/@anthropic-ai/sdk/core/streaming.mjs"() {
2471
2471
  init_define_ASTRACODE_BUNDLED_SKILLS();
2472
2472
  init_tslib();
2473
2473
  init_error();
@@ -2692,7 +2692,7 @@ var init_streaming = __esm({
2692
2692
  }
2693
2693
  });
2694
2694
 
2695
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/parse.mjs
2695
+ // ../editor/node_modules/@anthropic-ai/sdk/internal/parse.mjs
2696
2696
  async function defaultParseResponse(client, props) {
2697
2697
  const { response, requestLogID, retryOfRequestLogID, startTime } = props;
2698
2698
  const body2 = await (async () => {
@@ -2743,7 +2743,7 @@ function addResponseIDs(value, response) {
2743
2743
  });
2744
2744
  }
2745
2745
  var init_parse = __esm({
2746
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/parse.mjs"() {
2746
+ "../editor/node_modules/@anthropic-ai/sdk/internal/parse.mjs"() {
2747
2747
  init_define_ASTRACODE_BUNDLED_SKILLS();
2748
2748
  init_streaming();
2749
2749
  init_log();
@@ -2751,7 +2751,7 @@ var init_parse = __esm({
2751
2751
  }
2752
2752
  });
2753
2753
 
2754
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/core/middleware.mjs
2754
+ // ../editor/node_modules/@anthropic-ai/sdk/core/middleware.mjs
2755
2755
  function isFetchOriginError(err2) {
2756
2756
  return typeof err2 === "object" && err2 !== null && fetchOriginErrors.has(err2);
2757
2757
  }
@@ -2847,7 +2847,7 @@ function applyMiddleware(fetchFn, middleware, options, client) {
2847
2847
  }
2848
2848
  var fetchOriginErrors;
2849
2849
  var init_middleware = __esm({
2850
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/core/middleware.mjs"() {
2850
+ "../editor/node_modules/@anthropic-ai/sdk/core/middleware.mjs"() {
2851
2851
  init_define_ASTRACODE_BUNDLED_SKILLS();
2852
2852
  init_errors();
2853
2853
  init_parse();
@@ -2858,10 +2858,10 @@ var init_middleware = __esm({
2858
2858
  }
2859
2859
  });
2860
2860
 
2861
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/core/api-promise.mjs
2861
+ // ../editor/node_modules/@anthropic-ai/sdk/core/api-promise.mjs
2862
2862
  var _APIPromise_client, APIPromise;
2863
2863
  var init_api_promise = __esm({
2864
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/core/api-promise.mjs"() {
2864
+ "../editor/node_modules/@anthropic-ai/sdk/core/api-promise.mjs"() {
2865
2865
  init_define_ASTRACODE_BUNDLED_SKILLS();
2866
2866
  init_tslib();
2867
2867
  init_parse();
@@ -2933,10 +2933,10 @@ var init_api_promise = __esm({
2933
2933
  }
2934
2934
  });
2935
2935
 
2936
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/core/pagination.mjs
2936
+ // ../editor/node_modules/@anthropic-ai/sdk/core/pagination.mjs
2937
2937
  var _AbstractPage_client, AbstractPage, PagePromise, Page, PageCursor, BidirectionalPageCursor;
2938
2938
  var init_pagination = __esm({
2939
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/core/pagination.mjs"() {
2939
+ "../editor/node_modules/@anthropic-ai/sdk/core/pagination.mjs"() {
2940
2940
  init_define_ASTRACODE_BUNDLED_SKILLS();
2941
2941
  init_tslib();
2942
2942
  init_error();
@@ -3092,7 +3092,7 @@ var init_pagination = __esm({
3092
3092
  }
3093
3093
  });
3094
3094
 
3095
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/uploads.mjs
3095
+ // ../editor/node_modules/@anthropic-ai/sdk/internal/uploads.mjs
3096
3096
  function makeFile(fileBits, fileName, options) {
3097
3097
  checkFileSupport();
3098
3098
  return new File(fileBits, fileName ?? "unknown_file", options);
@@ -3123,7 +3123,7 @@ function supportsFormData(fetchObject) {
3123
3123
  }
3124
3124
  var checkFileSupport, isAsyncIterable, multipartFormRequestOptions, supportsFormDataMap, createForm, isNamedBlob, addFormValue;
3125
3125
  var init_uploads = __esm({
3126
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/uploads.mjs"() {
3126
+ "../editor/node_modules/@anthropic-ai/sdk/internal/uploads.mjs"() {
3127
3127
  init_define_ASTRACODE_BUNDLED_SKILLS();
3128
3128
  init_shims();
3129
3129
  checkFileSupport = () => {
@@ -3177,7 +3177,7 @@ var init_uploads = __esm({
3177
3177
  }
3178
3178
  });
3179
3179
 
3180
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/to-file.mjs
3180
+ // ../editor/node_modules/@anthropic-ai/sdk/internal/to-file.mjs
3181
3181
  async function toFile(value, name3, options) {
3182
3182
  checkFileSupport();
3183
3183
  value = await value;
@@ -3231,7 +3231,7 @@ function propsForError(value) {
3231
3231
  }
3232
3232
  var isBlobLike, isFileLike, isResponseLike;
3233
3233
  var init_to_file = __esm({
3234
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/to-file.mjs"() {
3234
+ "../editor/node_modules/@anthropic-ai/sdk/internal/to-file.mjs"() {
3235
3235
  init_define_ASTRACODE_BUNDLED_SKILLS();
3236
3236
  init_uploads();
3237
3237
  init_uploads();
@@ -3241,25 +3241,25 @@ var init_to_file = __esm({
3241
3241
  }
3242
3242
  });
3243
3243
 
3244
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/core/uploads.mjs
3244
+ // ../editor/node_modules/@anthropic-ai/sdk/core/uploads.mjs
3245
3245
  var init_uploads2 = __esm({
3246
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/core/uploads.mjs"() {
3246
+ "../editor/node_modules/@anthropic-ai/sdk/core/uploads.mjs"() {
3247
3247
  init_define_ASTRACODE_BUNDLED_SKILLS();
3248
3248
  init_to_file();
3249
3249
  }
3250
3250
  });
3251
3251
 
3252
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/shared.mjs
3252
+ // ../editor/node_modules/@anthropic-ai/sdk/resources/shared.mjs
3253
3253
  var init_shared = __esm({
3254
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/shared.mjs"() {
3254
+ "../editor/node_modules/@anthropic-ai/sdk/resources/shared.mjs"() {
3255
3255
  init_define_ASTRACODE_BUNDLED_SKILLS();
3256
3256
  }
3257
3257
  });
3258
3258
 
3259
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/core/resource.mjs
3259
+ // ../editor/node_modules/@anthropic-ai/sdk/core/resource.mjs
3260
3260
  var APIResource;
3261
3261
  var init_resource = __esm({
3262
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/core/resource.mjs"() {
3262
+ "../editor/node_modules/@anthropic-ai/sdk/core/resource.mjs"() {
3263
3263
  init_define_ASTRACODE_BUNDLED_SKILLS();
3264
3264
  APIResource = class {
3265
3265
  constructor(client) {
@@ -3269,7 +3269,7 @@ var init_resource = __esm({
3269
3269
  }
3270
3270
  });
3271
3271
 
3272
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/headers.mjs
3272
+ // ../editor/node_modules/@anthropic-ai/sdk/internal/headers.mjs
3273
3273
  function* iterateHeaders(headers) {
3274
3274
  if (!headers)
3275
3275
  return;
@@ -3310,7 +3310,7 @@ function* iterateHeaders(headers) {
3310
3310
  }
3311
3311
  var brand_privateNullableHeaders, clearSentinel, APPEND_HEADERS, appendHeaderValue, buildHeaders;
3312
3312
  var init_headers = __esm({
3313
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/headers.mjs"() {
3313
+ "../editor/node_modules/@anthropic-ai/sdk/internal/headers.mjs"() {
3314
3314
  init_define_ASTRACODE_BUNDLED_SKILLS();
3315
3315
  init_values();
3316
3316
  brand_privateNullableHeaders = /* @__PURE__ */ Symbol.for("brand.privateNullableHeaders");
@@ -3363,13 +3363,13 @@ var init_headers = __esm({
3363
3363
  }
3364
3364
  });
3365
3365
 
3366
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/utils/path.mjs
3366
+ // ../editor/node_modules/@anthropic-ai/sdk/internal/utils/path.mjs
3367
3367
  function encodeURIPath(str5) {
3368
3368
  return str5.replace(/[^A-Za-z0-9\-._~!$&'()*+,;=:@]+/g, encodeURIComponent);
3369
3369
  }
3370
3370
  var EMPTY, createPathTagFunction, path18;
3371
3371
  var init_path = __esm({
3372
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/utils/path.mjs"() {
3372
+ "../editor/node_modules/@anthropic-ai/sdk/internal/utils/path.mjs"() {
3373
3373
  init_define_ASTRACODE_BUNDLED_SKILLS();
3374
3374
  init_error();
3375
3375
  EMPTY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.create(null));
@@ -3425,10 +3425,10 @@ ${underline}`);
3425
3425
  }
3426
3426
  });
3427
3427
 
3428
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.mjs
3428
+ // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.mjs
3429
3429
  var DeploymentRuns;
3430
3430
  var init_deployment_runs = __esm({
3431
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.mjs"() {
3431
+ "../editor/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.mjs"() {
3432
3432
  init_define_ASTRACODE_BUNDLED_SKILLS();
3433
3433
  init_resource();
3434
3434
  init_pagination();
@@ -3482,10 +3482,10 @@ var init_deployment_runs = __esm({
3482
3482
  }
3483
3483
  });
3484
3484
 
3485
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/deployments.mjs
3485
+ // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/deployments.mjs
3486
3486
  var Deployments;
3487
3487
  var init_deployments = __esm({
3488
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/deployments.mjs"() {
3488
+ "../editor/node_modules/@anthropic-ai/sdk/resources/beta/deployments.mjs"() {
3489
3489
  init_define_ASTRACODE_BUNDLED_SKILLS();
3490
3490
  init_resource();
3491
3491
  init_pagination();
@@ -3680,10 +3680,10 @@ var init_deployments = __esm({
3680
3680
  }
3681
3681
  });
3682
3682
 
3683
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/dreams.mjs
3683
+ // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/dreams.mjs
3684
3684
  var Dreams;
3685
3685
  var init_dreams = __esm({
3686
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/dreams.mjs"() {
3686
+ "../editor/node_modules/@anthropic-ai/sdk/resources/beta/dreams.mjs"() {
3687
3687
  init_define_ASTRACODE_BUNDLED_SKILLS();
3688
3688
  init_resource();
3689
3689
  init_pagination();
@@ -3798,7 +3798,7 @@ var init_dreams = __esm({
3798
3798
  }
3799
3799
  });
3800
3800
 
3801
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/stainless-helper-header.mjs
3801
+ // ../editor/node_modules/@anthropic-ai/sdk/internal/stainless-helper-header.mjs
3802
3802
  function helperHeader(value) {
3803
3803
  return { [STAINLESS_HELPER_HEADER]: value };
3804
3804
  }
@@ -3845,7 +3845,7 @@ function stainlessHelperHeaderFromFile(file2) {
3845
3845
  }
3846
3846
  var STAINLESS_HELPER_HEADER, STAINLESS_HELPER_METHOD_HEADER, SDK_HELPER_SYMBOL;
3847
3847
  var init_stainless_helper_header = __esm({
3848
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/stainless-helper-header.mjs"() {
3848
+ "../editor/node_modules/@anthropic-ai/sdk/internal/stainless-helper-header.mjs"() {
3849
3849
  init_define_ASTRACODE_BUNDLED_SKILLS();
3850
3850
  STAINLESS_HELPER_HEADER = "x-stainless-helper";
3851
3851
  STAINLESS_HELPER_METHOD_HEADER = "x-stainless-helper-method";
@@ -3853,10 +3853,10 @@ var init_stainless_helper_header = __esm({
3853
3853
  }
3854
3854
  });
3855
3855
 
3856
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/files.mjs
3856
+ // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/files.mjs
3857
3857
  var Files;
3858
3858
  var init_files = __esm({
3859
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/files.mjs"() {
3859
+ "../editor/node_modules/@anthropic-ai/sdk/resources/beta/files.mjs"() {
3860
3860
  init_define_ASTRACODE_BUNDLED_SKILLS();
3861
3861
  init_resource();
3862
3862
  init_pagination();
@@ -3979,10 +3979,10 @@ var init_files = __esm({
3979
3979
  }
3980
3980
  });
3981
3981
 
3982
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/models.mjs
3982
+ // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/models.mjs
3983
3983
  var Models;
3984
3984
  var init_models = __esm({
3985
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/models.mjs"() {
3985
+ "../editor/node_modules/@anthropic-ai/sdk/resources/beta/models.mjs"() {
3986
3986
  init_define_ASTRACODE_BUNDLED_SKILLS();
3987
3987
  init_resource();
3988
3988
  init_pagination();
@@ -4041,10 +4041,10 @@ var init_models = __esm({
4041
4041
  }
4042
4042
  });
4043
4043
 
4044
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.mjs
4044
+ // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.mjs
4045
4045
  var UserProfiles;
4046
4046
  var init_user_profiles = __esm({
4047
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.mjs"() {
4047
+ "../editor/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.mjs"() {
4048
4048
  init_define_ASTRACODE_BUNDLED_SKILLS();
4049
4049
  init_resource();
4050
4050
  init_pagination();
@@ -4161,9 +4161,9 @@ var init_user_profiles = __esm({
4161
4161
  }
4162
4162
  });
4163
4163
 
4164
- // ../../AstraCode/editor/node_modules/standardwebhooks/dist/timing_safe_equal.js
4164
+ // ../editor/node_modules/standardwebhooks/dist/timing_safe_equal.js
4165
4165
  var require_timing_safe_equal = __commonJS({
4166
- "../../AstraCode/editor/node_modules/standardwebhooks/dist/timing_safe_equal.js"(exports2) {
4166
+ "../editor/node_modules/standardwebhooks/dist/timing_safe_equal.js"(exports2) {
4167
4167
  "use strict";
4168
4168
  init_define_ASTRACODE_BUNDLED_SKILLS();
4169
4169
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -4197,9 +4197,9 @@ var require_timing_safe_equal = __commonJS({
4197
4197
  }
4198
4198
  });
4199
4199
 
4200
- // ../../AstraCode/editor/node_modules/@stablelib/base64/lib/base64.js
4200
+ // ../editor/node_modules/@stablelib/base64/lib/base64.js
4201
4201
  var require_base64 = __commonJS({
4202
- "../../AstraCode/editor/node_modules/@stablelib/base64/lib/base64.js"(exports2) {
4202
+ "../editor/node_modules/@stablelib/base64/lib/base64.js"(exports2) {
4203
4203
  "use strict";
4204
4204
  init_define_ASTRACODE_BUNDLED_SKILLS();
4205
4205
  var __extends = exports2 && exports2.__extends || /* @__PURE__ */ (function() {
@@ -4411,9 +4411,9 @@ var require_base64 = __commonJS({
4411
4411
  }
4412
4412
  });
4413
4413
 
4414
- // ../../AstraCode/editor/node_modules/fast-sha256/sha256.js
4414
+ // ../editor/node_modules/fast-sha256/sha256.js
4415
4415
  var require_sha256 = __commonJS({
4416
- "../../AstraCode/editor/node_modules/fast-sha256/sha256.js"(exports2, module2) {
4416
+ "../editor/node_modules/fast-sha256/sha256.js"(exports2, module2) {
4417
4417
  init_define_ASTRACODE_BUNDLED_SKILLS();
4418
4418
  (function(root2, factory) {
4419
4419
  var exports3 = {};
@@ -4836,9 +4836,9 @@ var require_sha256 = __commonJS({
4836
4836
  }
4837
4837
  });
4838
4838
 
4839
- // ../../AstraCode/editor/node_modules/standardwebhooks/dist/index.js
4839
+ // ../editor/node_modules/standardwebhooks/dist/index.js
4840
4840
  var require_dist = __commonJS({
4841
- "../../AstraCode/editor/node_modules/standardwebhooks/dist/index.js"(exports2) {
4841
+ "../editor/node_modules/standardwebhooks/dist/index.js"(exports2) {
4842
4842
  "use strict";
4843
4843
  init_define_ASTRACODE_BUNDLED_SKILLS();
4844
4844
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -4944,10 +4944,10 @@ var require_dist = __commonJS({
4944
4944
  }
4945
4945
  });
4946
4946
 
4947
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.mjs
4947
+ // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.mjs
4948
4948
  var import_standardwebhooks, Webhooks;
4949
4949
  var init_webhooks = __esm({
4950
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.mjs"() {
4950
+ "../editor/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.mjs"() {
4951
4951
  init_define_ASTRACODE_BUNDLED_SKILLS();
4952
4952
  init_resource();
4953
4953
  import_standardwebhooks = __toESM(require_dist(), 1);
@@ -4966,10 +4966,10 @@ var init_webhooks = __esm({
4966
4966
  }
4967
4967
  });
4968
4968
 
4969
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/agents/versions.mjs
4969
+ // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/agents/versions.mjs
4970
4970
  var Versions;
4971
4971
  var init_versions = __esm({
4972
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/agents/versions.mjs"() {
4972
+ "../editor/node_modules/@anthropic-ai/sdk/resources/beta/agents/versions.mjs"() {
4973
4973
  init_define_ASTRACODE_BUNDLED_SKILLS();
4974
4974
  init_resource();
4975
4975
  init_pagination();
@@ -5004,10 +5004,10 @@ var init_versions = __esm({
5004
5004
  }
5005
5005
  });
5006
5006
 
5007
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.mjs
5007
+ // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.mjs
5008
5008
  var Agents;
5009
5009
  var init_agents = __esm({
5010
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.mjs"() {
5010
+ "../editor/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.mjs"() {
5011
5011
  init_define_ASTRACODE_BUNDLED_SKILLS();
5012
5012
  init_resource();
5013
5013
  init_versions();
@@ -5136,7 +5136,7 @@ var init_agents = __esm({
5136
5136
  }
5137
5137
  });
5138
5138
 
5139
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/utils/abort.mjs
5139
+ // ../editor/node_modules/@anthropic-ai/sdk/internal/utils/abort.mjs
5140
5140
  function linkAbort(external, controller) {
5141
5141
  if (!external)
5142
5142
  return () => {
@@ -5151,12 +5151,12 @@ function linkAbort(external, controller) {
5151
5151
  return () => external.removeEventListener("abort", onAbort);
5152
5152
  }
5153
5153
  var init_abort = __esm({
5154
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/utils/abort.mjs"() {
5154
+ "../editor/node_modules/@anthropic-ai/sdk/internal/utils/abort.mjs"() {
5155
5155
  init_define_ASTRACODE_BUNDLED_SKILLS();
5156
5156
  }
5157
5157
  });
5158
5158
 
5159
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/utils/backoff.mjs
5159
+ // ../editor/node_modules/@anthropic-ai/sdk/internal/utils/backoff.mjs
5160
5160
  function isStatus(e, code) {
5161
5161
  return e instanceof APIError && e.status === code;
5162
5162
  }
@@ -5176,13 +5176,13 @@ function applyJitter(ms) {
5176
5176
  return ms * (1 - Math.random() * 0.25);
5177
5177
  }
5178
5178
  var init_backoff = __esm({
5179
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/utils/backoff.mjs"() {
5179
+ "../editor/node_modules/@anthropic-ai/sdk/internal/utils/backoff.mjs"() {
5180
5180
  init_define_ASTRACODE_BUNDLED_SKILLS();
5181
5181
  init_error();
5182
5182
  }
5183
5183
  });
5184
5184
 
5185
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/helper-client.mjs
5185
+ // ../editor/node_modules/@anthropic-ai/sdk/lib/helper-client.mjs
5186
5186
  function copyClientForHelper(client, { authToken, helper }) {
5187
5187
  if (!authToken) {
5188
5188
  throw new AnthropicError(`copyClientForHelper: expected a non-empty authToken but received ${JSON.stringify(authToken)}`);
@@ -5208,7 +5208,7 @@ function copyClientForHelper(client, { authToken, helper }) {
5208
5208
  });
5209
5209
  }
5210
5210
  var init_helper_client = __esm({
5211
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/helper-client.mjs"() {
5211
+ "../editor/node_modules/@anthropic-ai/sdk/lib/helper-client.mjs"() {
5212
5212
  init_define_ASTRACODE_BUNDLED_SKILLS();
5213
5213
  init_error();
5214
5214
  init_headers();
@@ -5216,7 +5216,7 @@ var init_helper_client = __esm({
5216
5216
  }
5217
5217
  });
5218
5218
 
5219
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/environments/poller.mjs
5219
+ // ../editor/node_modules/@anthropic-ai/sdk/lib/environments/poller.mjs
5220
5220
  function backoff2(attempt) {
5221
5221
  return backoff(attempt, POLL_BACKOFF_BASE_MS, POLL_BACKOFF_CAP_MS);
5222
5222
  }
@@ -5227,7 +5227,7 @@ function defaultWorkerId() {
5227
5227
  }
5228
5228
  var _WorkPoller_runnerClient, _WorkPoller_consumed, _WorkPoller_controller, _WorkPoller_detachExternal, _WorkPoller_autoStop, _WorkPoller_drain, _WorkPoller_blockMs, _WorkPoller_reclaimOlderThanMs, _WorkPoller_requestOpts, _IdleLog_log, _IdleLog_environmentId, _IdleLog_idleSince, _IdleLog_lastReport, POLL_BLOCK_MS, POLL_BACKOFF_BASE_MS, POLL_BACKOFF_CAP_MS, IDLE_REPORT_INTERVAL_MS, WorkPoller, IdleLog;
5229
5229
  var init_poller = __esm({
5230
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/environments/poller.mjs"() {
5230
+ "../editor/node_modules/@anthropic-ai/sdk/lib/environments/poller.mjs"() {
5231
5231
  init_define_ASTRACODE_BUNDLED_SKILLS();
5232
5232
  init_tslib();
5233
5233
  init_error();
@@ -5381,10 +5381,10 @@ var init_poller = __esm({
5381
5381
  }
5382
5382
  });
5383
5383
 
5384
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.mjs
5384
+ // ../editor/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.mjs
5385
5385
  var _AsyncQueue_items, _AsyncQueue_waiters, _AsyncQueue_closed, AsyncQueue;
5386
5386
  var init_async_queue = __esm({
5387
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.mjs"() {
5387
+ "../editor/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.mjs"() {
5388
5388
  init_define_ASTRACODE_BUNDLED_SKILLS();
5389
5389
  init_tslib();
5390
5390
  AsyncQueue = class {
@@ -5451,10 +5451,10 @@ var init_async_queue = __esm({
5451
5451
  }
5452
5452
  });
5453
5453
 
5454
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/tools/ToolError.mjs
5454
+ // ../editor/node_modules/@anthropic-ai/sdk/lib/tools/ToolError.mjs
5455
5455
  var ToolError;
5456
5456
  var init_ToolError = __esm({
5457
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/tools/ToolError.mjs"() {
5457
+ "../editor/node_modules/@anthropic-ai/sdk/lib/tools/ToolError.mjs"() {
5458
5458
  init_define_ASTRACODE_BUNDLED_SKILLS();
5459
5459
  ToolError = class extends Error {
5460
5460
  constructor(content) {
@@ -5471,7 +5471,7 @@ var init_ToolError = __esm({
5471
5471
  }
5472
5472
  });
5473
5473
 
5474
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.mjs
5474
+ // ../editor/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.mjs
5475
5475
  function toolName(tool) {
5476
5476
  return "name" in tool ? tool.name : "mcp_server_name" in tool ? tool.mcp_server_name : tool.type;
5477
5477
  }
@@ -5488,13 +5488,13 @@ async function runRunnableTool(tool, rawInput, context) {
5488
5488
  }
5489
5489
  }
5490
5490
  var init_BetaRunnableTool = __esm({
5491
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.mjs"() {
5491
+ "../editor/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.mjs"() {
5492
5492
  init_define_ASTRACODE_BUNDLED_SKILLS();
5493
5493
  init_ToolError();
5494
5494
  }
5495
5495
  });
5496
5496
 
5497
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.mjs
5497
+ // ../editor/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.mjs
5498
5498
  function isEndTurnIdle(ev) {
5499
5499
  return ev.type === "session.status_idle" && ev.stop_reason?.type === "end_turn";
5500
5500
  }
@@ -5527,7 +5527,7 @@ function toSessionContent(content) {
5527
5527
  }
5528
5528
  var _IdleClock_maxIdleMs, _IdleClock_onExpire, _IdleClock_blockers, _IdleClock_armPending, _IdleClock_timer, _SessionToolRunner_instances, _SessionToolRunner_consumed, _SessionToolRunner_controller, _SessionToolRunner_detachExternal, _SessionToolRunner_requestOpts, _SessionToolRunner_toolByName, _SessionToolRunner_logger, _SessionToolRunner_seen, _SessionToolRunner_answered, _SessionToolRunner_confirmationVerdicts, _SessionToolRunner_awaitingConfirmation, _SessionToolRunner_results, _SessionToolRunner_inFlightCount, _SessionToolRunner_sendRetryWindowMs, _SessionToolRunner_onIdle, _SessionToolRunner_idleClock, _SessionToolRunner_requestOptions, _SessionToolRunner_streamLoop, _SessionToolRunner_reconcile, _SessionToolRunner_ingestHistory, _SessionToolRunner_handleStreamEvent, _SessionToolRunner_routeToolEvent, _SessionToolRunner_noteConfirmation, _SessionToolRunner_applyVerdict, _SessionToolRunner_surfaceCall, _SessionToolRunner_execute, _SessionToolRunner_sendResult, _SessionToolRunner_drain, STREAM_BACKOFF_START_MS, STREAM_BACKOFF_CAP_MS, TOOL_TIMEOUT_MS, DRAIN_TIMEOUT_MS, SEND_BACKOFF_START_MS, SEND_BACKOFF_CAP_MS, SEND_RETRY_WINDOW_MS, DEFAULT_MAX_IDLE_MS, IdleClock, SessionToolRunner;
5529
5529
  var init_SessionToolRunner = __esm({
5530
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.mjs"() {
5530
+ "../editor/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.mjs"() {
5531
5531
  init_define_ASTRACODE_BUNDLED_SKILLS();
5532
5532
  init_tslib();
5533
5533
  init_error();
@@ -6027,7 +6027,7 @@ var init_SessionToolRunner = __esm({
6027
6027
  }
6028
6028
  });
6029
6029
 
6030
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/tools/agent-toolset/sync-interval.mjs
6030
+ // ../editor/node_modules/@anthropic-ai/sdk/tools/agent-toolset/sync-interval.mjs
6031
6031
  function checkMemorySyncInterval(ms, option) {
6032
6032
  if (!(ms >= MIN_MEMORY_SYNC_INTERVAL_MS)) {
6033
6033
  throw new AnthropicError(`${option} must be at least ${MIN_MEMORY_SYNC_INTERVAL_MS}ms (got ${ms}); to run without memory sync, pass \`memorySyncIntervalMs: null\` to the worker instead`);
@@ -6035,7 +6035,7 @@ function checkMemorySyncInterval(ms, option) {
6035
6035
  }
6036
6036
  var DEFAULT_MEMORY_SYNC_INTERVAL_MS, MIN_MEMORY_SYNC_INTERVAL_MS;
6037
6037
  var init_sync_interval = __esm({
6038
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/tools/agent-toolset/sync-interval.mjs"() {
6038
+ "../editor/node_modules/@anthropic-ai/sdk/tools/agent-toolset/sync-interval.mjs"() {
6039
6039
  init_define_ASTRACODE_BUNDLED_SKILLS();
6040
6040
  init_error();
6041
6041
  DEFAULT_MEMORY_SYNC_INTERVAL_MS = 15e3;
@@ -6043,15 +6043,15 @@ var init_sync_interval = __esm({
6043
6043
  }
6044
6044
  });
6045
6045
 
6046
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/transform-json-schema.mjs
6046
+ // ../editor/node_modules/@anthropic-ai/sdk/lib/transform-json-schema.mjs
6047
6047
  var init_transform_json_schema = __esm({
6048
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/transform-json-schema.mjs"() {
6048
+ "../editor/node_modules/@anthropic-ai/sdk/lib/transform-json-schema.mjs"() {
6049
6049
  init_define_ASTRACODE_BUNDLED_SKILLS();
6050
6050
  init_utils2();
6051
6051
  }
6052
6052
  });
6053
6053
 
6054
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.mjs
6054
+ // ../editor/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.mjs
6055
6055
  function betaTool(options) {
6056
6056
  if (options.inputSchema.type !== "object") {
6057
6057
  throw new Error(`JSON schema for tool "${options.name}" must be an object, but got ${options.inputSchema.type}`);
@@ -6067,14 +6067,14 @@ function betaTool(options) {
6067
6067
  };
6068
6068
  }
6069
6069
  var init_json_schema = __esm({
6070
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.mjs"() {
6070
+ "../editor/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.mjs"() {
6071
6071
  init_define_ASTRACODE_BUNDLED_SKILLS();
6072
6072
  init_sdk();
6073
6073
  init_transform_json_schema();
6074
6074
  }
6075
6075
  });
6076
6076
 
6077
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/utils/promise.mjs
6077
+ // ../editor/node_modules/@anthropic-ai/sdk/internal/utils/promise.mjs
6078
6078
  function promiseWithResolvers() {
6079
6079
  let resolve22;
6080
6080
  let reject;
@@ -6085,12 +6085,12 @@ function promiseWithResolvers() {
6085
6085
  return { promise: promise2, resolve: resolve22, reject };
6086
6086
  }
6087
6087
  var init_promise = __esm({
6088
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/utils/promise.mjs"() {
6088
+ "../editor/node_modules/@anthropic-ai/sdk/internal/utils/promise.mjs"() {
6089
6089
  init_define_ASTRACODE_BUNDLED_SKILLS();
6090
6090
  }
6091
6091
  });
6092
6092
 
6093
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.mjs
6093
+ // ../editor/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.mjs
6094
6094
  function isWithin(root2, p) {
6095
6095
  const rel = path19.relative(root2, p);
6096
6096
  return rel === "" || !rel.startsWith(".." + path19.sep) && rel !== ".." && !path19.isAbsolute(rel);
@@ -6202,7 +6202,7 @@ function fsErrorMessage(err2, file2) {
6202
6202
  }
6203
6203
  var fs19, path19, import_node_crypto5, DIR_CREATE_MODE, FILE_CREATE_MODE, MAX_SYMLINK_HOPS;
6204
6204
  var init_fs_util = __esm({
6205
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.mjs"() {
6205
+ "../editor/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.mjs"() {
6206
6206
  init_define_ASTRACODE_BUNDLED_SKILLS();
6207
6207
  fs19 = __toESM(require("node:fs/promises"), 1);
6208
6208
  path19 = __toESM(require("node:path"), 1);
@@ -6214,7 +6214,7 @@ var init_fs_util = __esm({
6214
6214
  }
6215
6215
  });
6216
6216
 
6217
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.mjs
6217
+ // ../editor/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.mjs
6218
6218
  async function setupSkills(ctx) {
6219
6219
  const { client, sessionId } = ctx;
6220
6220
  if (!client)
@@ -6418,7 +6418,7 @@ async function readHead(file2, n) {
6418
6418
  }
6419
6419
  var fs20, fssync, path20, import_node_child_process3, import_node_util, import_node_stream, import_promises, execFileAsync, INCONSISTENT_LISTING, PLAIN_TYPE_CHARS;
6420
6420
  var init_skills = __esm({
6421
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.mjs"() {
6421
+ "../editor/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.mjs"() {
6422
6422
  init_define_ASTRACODE_BUNDLED_SKILLS();
6423
6423
  fs20 = __toESM(require("node:fs/promises"), 1);
6424
6424
  fssync = __toESM(require("node:fs"), 1);
@@ -6436,7 +6436,7 @@ var init_skills = __esm({
6436
6436
  }
6437
6437
  });
6438
6438
 
6439
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/file-store.mjs
6439
+ // ../editor/node_modules/@anthropic-ai/sdk/internal/file-store.mjs
6440
6440
  function isPathLegal(p) {
6441
6441
  return p.startsWith("/") && !p.split("/").includes("..");
6442
6442
  }
@@ -6618,7 +6618,7 @@ function oldEnoughToCache(st, walkStartNs) {
6618
6618
  }
6619
6619
  var fsp, path21, import_node_fs3, import_node_crypto6, OWNER_ONLY_DIR_MODE, OWNER_ONLY_FILE_MODE, OWNER_ONLY_EXEC_MODE, O_NOFOLLOW, O_NONBLOCK, FileStoreError, FileStore, TIMESTAMP_TRUST_MARGIN_NS, _internals, LocalFileStore, asyncDispose;
6620
6620
  var init_file_store = __esm({
6621
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/file-store.mjs"() {
6621
+ "../editor/node_modules/@anthropic-ai/sdk/internal/file-store.mjs"() {
6622
6622
  init_define_ASTRACODE_BUNDLED_SKILLS();
6623
6623
  fsp = __toESM(require("node:fs/promises"), 1);
6624
6624
  path21 = __toESM(require("node:path"), 1);
@@ -6880,7 +6880,7 @@ var init_file_store = __esm({
6880
6880
  }
6881
6881
  });
6882
6882
 
6883
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.mjs
6883
+ // ../editor/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.mjs
6884
6884
  function markerSha(memoryStoreId) {
6885
6885
  return (0, import_node_crypto7.createHash)("sha256").update(`version ${MARKER_VERSION}
6886
6886
  ${memoryStoreId}`, "utf-8").digest("hex");
@@ -6908,7 +6908,7 @@ async function settledOrAborted(p, signal) {
6908
6908
  }
6909
6909
  var path22, import_node_crypto7, _SessionMemoryStores_instances, _SessionMemoryStores_client, _SessionMemoryStores_workdir, _SessionMemoryStores_syncIntervalMs, _SessionMemoryStores_syncDeletions, _SessionMemoryStores_log, _SessionMemoryStores_lastSyncAt, _SessionMemoryStores_finished, _SessionMemoryStores_stores, _SessionMemoryStores_storeRoot, _SessionMemoryStores_scanMarker, _SessionMemoryStores_syncStore, _SessionMemoryStores_flushStore, _SessionMemoryStores_recover, _SessionMemoryStores_stampAndPull, _SessionMemoryStores_syncPath, _SessionMemoryStores_removeLocal, _SessionMemoryStores_write, _SessionMemoryStores_pullAll, _SessionMemoryStores_uploadAll, _SessionMemoryStores_listMemories, _SessionMemoryStores_upload, _SessionMemoryStores_corroboratedDelete, _SessionMemoryStores_deleteRemote, MEMORY_FLUSH_TIMEOUT_MS, MARKER_PATH, MARKER_VERSION, DELETE_CORROBORATION_MS, LIST_PAGE_SIZE, FULL_LIST_PAGE_SIZE, FETCH_CONCURRENCY, UPLOAD_CONCURRENCY, DELETE_CAP_FLOOR, DELETE_CAP_CEILING, SessionMemoryError, DeletePass, SessionMemoryStores;
6910
6910
  var init_memories = __esm({
6911
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.mjs"() {
6911
+ "../editor/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.mjs"() {
6912
6912
  init_define_ASTRACODE_BUNDLED_SKILLS();
6913
6913
  init_tslib();
6914
6914
  path22 = __toESM(require("node:path"), 1);
@@ -7596,7 +7596,7 @@ ${store2.memoryStoreId}`);
7596
7596
  }
7597
7597
  });
7598
7598
 
7599
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.mjs
7599
+ // ../editor/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.mjs
7600
7600
  var node_exports = {};
7601
7601
  __export(node_exports, {
7602
7602
  BashSession: () => BashSession,
@@ -8069,7 +8069,7 @@ async function findRg() {
8069
8069
  }
8070
8070
  var fs21, fssync2, path23, cp, crypto7, readline, _BashSession_instances, _BashSession_proc, _BashSession_buf, _BashSession_truncated, _BashSession_closed, _BashSession_waiting, _BashSession_append, BASH_OUTPUT_LIMIT, BASH_DEFAULT_TIMEOUT_MS, DEFAULT_MAX_FILE_BYTES, GREP_OUTPUT_LIMIT, GREP_MAX_LINE_LENGTH, GLOB_RESULT_LIMIT, BashTimeoutError, ANSI_RE, fsGlob, BashSession, WALK_MAX_DEPTH, WALK_MAX_ENTRIES;
8071
8071
  var init_node = __esm({
8072
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.mjs"() {
8072
+ "../editor/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.mjs"() {
8073
8073
  init_define_ASTRACODE_BUNDLED_SKILLS();
8074
8074
  init_tslib();
8075
8075
  fs21 = __toESM(require("node:fs/promises"), 1);
@@ -8224,7 +8224,7 @@ ${out2}`;
8224
8224
  }
8225
8225
  });
8226
8226
 
8227
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/environments/worker.mjs
8227
+ // ../editor/node_modules/@anthropic-ai/sdk/lib/environments/worker.mjs
8228
8228
  function hasMemoryStore(session3) {
8229
8229
  return session3.resources.some((r) => r.type === "memory_store");
8230
8230
  }
@@ -8241,8 +8241,8 @@ function sessionsTokenFromSecret(secret) {
8241
8241
  }
8242
8242
  if (parsed === null || typeof parsed !== "object" || Array.isArray(parsed))
8243
8243
  return null;
8244
- const token2 = parsed.sessions_token;
8245
- return typeof token2 === "string" && token2 !== "" ? token2 : null;
8244
+ const token = parsed.sessions_token;
8245
+ return typeof token === "string" && token !== "" ? token : null;
8246
8246
  }
8247
8247
  async function withTimeout(p, ms) {
8248
8248
  let timer;
@@ -8351,7 +8351,7 @@ async function heartbeatLoop(client, work, lease, logger, requestOptions, onLeas
8351
8351
  }
8352
8352
  var _EnvironmentWorker_instances, _EnvironmentWorker_signal, _EnvironmentWorker_handleItem, _Lease_ctrl, _Lease_endReason, HEARTBEAT_DEFAULT_MS, HEARTBEAT_TTL_DEFAULT_MS, NO_HEARTBEAT_SENTINEL, EnvironmentWorker, Lease;
8353
8353
  var init_worker = __esm({
8354
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/environments/worker.mjs"() {
8354
+ "../editor/node_modules/@anthropic-ai/sdk/lib/environments/worker.mjs"() {
8355
8355
  init_define_ASTRACODE_BUNDLED_SKILLS();
8356
8356
  init_tslib();
8357
8357
  init_error();
@@ -8636,10 +8636,10 @@ var init_worker = __esm({
8636
8636
  }
8637
8637
  });
8638
8638
 
8639
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.mjs
8639
+ // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.mjs
8640
8640
  var Work;
8641
8641
  var init_work = __esm({
8642
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.mjs"() {
8642
+ "../editor/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.mjs"() {
8643
8643
  init_define_ASTRACODE_BUNDLED_SKILLS();
8644
8644
  init_resource();
8645
8645
  init_pagination();
@@ -8893,10 +8893,10 @@ var init_work = __esm({
8893
8893
  }
8894
8894
  });
8895
8895
 
8896
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.mjs
8896
+ // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.mjs
8897
8897
  var Environments;
8898
8898
  var init_environments = __esm({
8899
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.mjs"() {
8899
+ "../editor/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.mjs"() {
8900
8900
  init_define_ASTRACODE_BUNDLED_SKILLS();
8901
8901
  init_resource();
8902
8902
  init_work();
@@ -9044,10 +9044,10 @@ var init_environments = __esm({
9044
9044
  }
9045
9045
  });
9046
9046
 
9047
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.mjs
9047
+ // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.mjs
9048
9048
  var Memories;
9049
9049
  var init_memories2 = __esm({
9050
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.mjs"() {
9050
+ "../editor/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.mjs"() {
9051
9051
  init_define_ASTRACODE_BUNDLED_SKILLS();
9052
9052
  init_resource();
9053
9053
  init_pagination();
@@ -9176,10 +9176,10 @@ var init_memories2 = __esm({
9176
9176
  }
9177
9177
  });
9178
9178
 
9179
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.mjs
9179
+ // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.mjs
9180
9180
  var MemoryVersions;
9181
9181
  var init_memory_versions = __esm({
9182
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.mjs"() {
9182
+ "../editor/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.mjs"() {
9183
9183
  init_define_ASTRACODE_BUNDLED_SKILLS();
9184
9184
  init_resource();
9185
9185
  init_pagination();
@@ -9259,10 +9259,10 @@ var init_memory_versions = __esm({
9259
9259
  }
9260
9260
  });
9261
9261
 
9262
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.mjs
9262
+ // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.mjs
9263
9263
  var MemoryStores;
9264
9264
  var init_memory_stores = __esm({
9265
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.mjs"() {
9265
+ "../editor/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.mjs"() {
9266
9266
  init_define_ASTRACODE_BUNDLED_SKILLS();
9267
9267
  init_resource();
9268
9268
  init_memories2();
@@ -9405,18 +9405,18 @@ var init_memory_stores = __esm({
9405
9405
  }
9406
9406
  });
9407
9407
 
9408
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/error.mjs
9408
+ // ../editor/node_modules/@anthropic-ai/sdk/error.mjs
9409
9409
  var init_error2 = __esm({
9410
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/error.mjs"() {
9410
+ "../editor/node_modules/@anthropic-ai/sdk/error.mjs"() {
9411
9411
  init_define_ASTRACODE_BUNDLED_SKILLS();
9412
9412
  init_error();
9413
9413
  }
9414
9414
  });
9415
9415
 
9416
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.mjs
9416
+ // ../editor/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.mjs
9417
9417
  var JSONLDecoder;
9418
9418
  var init_jsonl = __esm({
9419
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.mjs"() {
9419
+ "../editor/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.mjs"() {
9420
9420
  init_define_ASTRACODE_BUNDLED_SKILLS();
9421
9421
  init_error();
9422
9422
  init_shims();
@@ -9454,10 +9454,10 @@ var init_jsonl = __esm({
9454
9454
  }
9455
9455
  });
9456
9456
 
9457
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.mjs
9457
+ // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.mjs
9458
9458
  var Batches;
9459
9459
  var init_batches = __esm({
9460
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.mjs"() {
9460
+ "../editor/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.mjs"() {
9461
9461
  init_define_ASTRACODE_BUNDLED_SKILLS();
9462
9462
  init_resource();
9463
9463
  init_pagination();
@@ -9661,10 +9661,10 @@ var init_batches = __esm({
9661
9661
  }
9662
9662
  });
9663
9663
 
9664
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/constants.mjs
9664
+ // ../editor/node_modules/@anthropic-ai/sdk/internal/constants.mjs
9665
9665
  var MODEL_NONSTREAMING_TOKENS;
9666
9666
  var init_constants = __esm({
9667
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/constants.mjs"() {
9667
+ "../editor/node_modules/@anthropic-ai/sdk/internal/constants.mjs"() {
9668
9668
  init_define_ASTRACODE_BUNDLED_SKILLS();
9669
9669
  MODEL_NONSTREAMING_TOKENS = {
9670
9670
  "claude-opus-4@20250514": 8192,
@@ -9674,7 +9674,7 @@ var init_constants = __esm({
9674
9674
  }
9675
9675
  });
9676
9676
 
9677
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/beta-parser.mjs
9677
+ // ../editor/node_modules/@anthropic-ai/sdk/lib/beta-parser.mjs
9678
9678
  function getOutputFormat(params) {
9679
9679
  return params?.output_format ?? params?.output_config?.format;
9680
9680
  }
@@ -9747,24 +9747,24 @@ function parseBetaOutputFormat(params, content) {
9747
9747
  }
9748
9748
  }
9749
9749
  var init_beta_parser = __esm({
9750
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/beta-parser.mjs"() {
9750
+ "../editor/node_modules/@anthropic-ai/sdk/lib/beta-parser.mjs"() {
9751
9751
  init_define_ASTRACODE_BUNDLED_SKILLS();
9752
9752
  init_error();
9753
9753
  }
9754
9754
  });
9755
9755
 
9756
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/streaming.mjs
9756
+ // ../editor/node_modules/@anthropic-ai/sdk/streaming.mjs
9757
9757
  var init_streaming2 = __esm({
9758
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/streaming.mjs"() {
9758
+ "../editor/node_modules/@anthropic-ai/sdk/streaming.mjs"() {
9759
9759
  init_define_ASTRACODE_BUNDLED_SKILLS();
9760
9760
  init_streaming();
9761
9761
  }
9762
9762
  });
9763
9763
 
9764
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.mjs
9764
+ // ../editor/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.mjs
9765
9765
  var tokenize, strip, unstrip, generate, partialParse;
9766
9766
  var init_parser = __esm({
9767
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.mjs"() {
9767
+ "../editor/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.mjs"() {
9768
9768
  init_define_ASTRACODE_BUNDLED_SKILLS();
9769
9769
  tokenize = (input) => {
9770
9770
  let current4 = 0;
@@ -9938,16 +9938,16 @@ var init_parser = __esm({
9938
9938
  };
9939
9939
  unstrip = (tokens) => {
9940
9940
  let tail2 = [];
9941
- tokens.map((token2) => {
9942
- if (token2.type === "brace") {
9943
- if (token2.value === "{") {
9941
+ tokens.map((token) => {
9942
+ if (token.type === "brace") {
9943
+ if (token.value === "{") {
9944
9944
  tail2.push("}");
9945
9945
  } else {
9946
9946
  tail2.splice(tail2.lastIndexOf("}"), 1);
9947
9947
  }
9948
9948
  }
9949
- if (token2.type === "paren") {
9950
- if (token2.value === "[") {
9949
+ if (token.type === "paren") {
9950
+ if (token.value === "[") {
9951
9951
  tail2.push("]");
9952
9952
  } else {
9953
9953
  tail2.splice(tail2.lastIndexOf("]"), 1);
@@ -9973,13 +9973,13 @@ var init_parser = __esm({
9973
9973
  };
9974
9974
  generate = (tokens) => {
9975
9975
  let output = "";
9976
- tokens.map((token2) => {
9977
- switch (token2.type) {
9976
+ tokens.map((token) => {
9977
+ switch (token.type) {
9978
9978
  case "string":
9979
- output += '"' + token2.value + '"';
9979
+ output += '"' + token.value + '"';
9980
9980
  break;
9981
9981
  default:
9982
- output += token2.value;
9982
+ output += token.value;
9983
9983
  break;
9984
9984
  }
9985
9985
  });
@@ -9989,7 +9989,7 @@ var init_parser = __esm({
9989
9989
  }
9990
9990
  });
9991
9991
 
9992
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/message-stream-utils.mjs
9992
+ // ../editor/node_modules/@anthropic-ai/sdk/internal/message-stream-utils.mjs
9993
9993
  function withLazyInput(prev, jsonBuf) {
9994
9994
  const next = {};
9995
9995
  for (const key of Object.keys(prev)) {
@@ -10014,14 +10014,14 @@ function withLazyInput(prev, jsonBuf) {
10014
10014
  }
10015
10015
  var JSON_BUF_PROPERTY;
10016
10016
  var init_message_stream_utils = __esm({
10017
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/message-stream-utils.mjs"() {
10017
+ "../editor/node_modules/@anthropic-ai/sdk/internal/message-stream-utils.mjs"() {
10018
10018
  init_define_ASTRACODE_BUNDLED_SKILLS();
10019
10019
  init_parser();
10020
10020
  JSON_BUF_PROPERTY = "__json_buf";
10021
10021
  }
10022
10022
  });
10023
10023
 
10024
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.mjs
10024
+ // ../editor/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.mjs
10025
10025
  function tracksToolInput(content) {
10026
10026
  return content.type === "tool_use" || content.type === "server_tool_use" || content.type === "mcp_tool_use";
10027
10027
  }
@@ -10029,7 +10029,7 @@ function checkNever(x) {
10029
10029
  }
10030
10030
  var _BetaMessageStream_instances, _BetaMessageStream_currentMessageSnapshot, _BetaMessageStream_params, _BetaMessageStream_connectedPromise, _BetaMessageStream_resolveConnectedPromise, _BetaMessageStream_rejectConnectedPromise, _BetaMessageStream_endPromise, _BetaMessageStream_resolveEndPromise, _BetaMessageStream_rejectEndPromise, _BetaMessageStream_listeners, _BetaMessageStream_ended, _BetaMessageStream_errored, _BetaMessageStream_aborted, _BetaMessageStream_catchingPromiseCreated, _BetaMessageStream_response, _BetaMessageStream_request_id, _BetaMessageStream_workspace_id, _BetaMessageStream_logger, _BetaMessageStream_getFinalMessage, _BetaMessageStream_getFinalText, _BetaMessageStream_handleError, _BetaMessageStream_beginRequest, _BetaMessageStream_addStreamEvent, _BetaMessageStream_endRequest, _BetaMessageStream_accumulateMessage, _BetaMessageStream_toolInputParseError, BetaMessageStream;
10031
10031
  var init_BetaMessageStream = __esm({
10032
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.mjs"() {
10032
+ "../editor/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.mjs"() {
10033
10033
  init_define_ASTRACODE_BUNDLED_SKILLS();
10034
10034
  init_tslib();
10035
10035
  init_stainless_helper_header();
@@ -10657,10 +10657,10 @@ var init_BetaMessageStream = __esm({
10657
10657
  }
10658
10658
  });
10659
10659
 
10660
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/tools/CompactionControl.mjs
10660
+ // ../editor/node_modules/@anthropic-ai/sdk/lib/tools/CompactionControl.mjs
10661
10661
  var DEFAULT_TOKEN_THRESHOLD, DEFAULT_SUMMARY_PROMPT;
10662
10662
  var init_CompactionControl = __esm({
10663
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/tools/CompactionControl.mjs"() {
10663
+ "../editor/node_modules/@anthropic-ai/sdk/lib/tools/CompactionControl.mjs"() {
10664
10664
  init_define_ASTRACODE_BUNDLED_SKILLS();
10665
10665
  DEFAULT_TOKEN_THRESHOLD = 1e5;
10666
10666
  DEFAULT_SUMMARY_PROMPT = `You have been working on the task described above but have not yet completed it. Write a continuation summary that will allow you (or another instance of yourself) to resume work efficiently in a future context window where the conversation history will be replaced with this summary. Your summary should be structured, concise, and actionable. Include:
@@ -10689,7 +10689,7 @@ Wrap your summary in <summary></summary> tags.`;
10689
10689
  }
10690
10690
  });
10691
10691
 
10692
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.mjs
10692
+ // ../editor/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.mjs
10693
10693
  async function generateToolResponse(params, lastMessage = params.messages.at(-1), requestOptions) {
10694
10694
  if (!lastMessage || lastMessage.role !== "assistant" || !lastMessage.content || typeof lastMessage.content === "string") {
10695
10695
  return null;
@@ -10786,7 +10786,7 @@ function referencedToolName(ref) {
10786
10786
  }
10787
10787
  var _BetaToolRunner_instances, _BetaToolRunner_consumed, _BetaToolRunner_mutated, _BetaToolRunner_state, _BetaToolRunner_options, _BetaToolRunner_message, _BetaToolRunner_toolResponse, _BetaToolRunner_completion, _BetaToolRunner_iterationCount, _BetaToolRunner_checkAndCompact, _BetaToolRunner_generateToolResponse, BetaToolRunner;
10788
10788
  var init_BetaToolRunner = __esm({
10789
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.mjs"() {
10789
+ "../editor/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.mjs"() {
10790
10790
  init_define_ASTRACODE_BUNDLED_SKILLS();
10791
10791
  init_tslib();
10792
10792
  init_ToolError();
@@ -11096,7 +11096,7 @@ var init_BetaToolRunner = __esm({
11096
11096
  }
11097
11097
  });
11098
11098
 
11099
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.mjs
11099
+ // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.mjs
11100
11100
  function transformOutputFormat(params) {
11101
11101
  if (!params.output_format) {
11102
11102
  return params;
@@ -11115,7 +11115,7 @@ function transformOutputFormat(params) {
11115
11115
  }
11116
11116
  var DEPRECATED_MODELS, MODELS_TO_WARN_WITH_THINKING_ENABLED, Messages;
11117
11117
  var init_messages = __esm({
11118
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.mjs"() {
11118
+ "../editor/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.mjs"() {
11119
11119
  init_define_ASTRACODE_BUNDLED_SKILLS();
11120
11120
  init_error2();
11121
11121
  init_batches();
@@ -11243,10 +11243,10 @@ Please migrate to a newer model. Visit https://docs.anthropic.com/en/docs/resour
11243
11243
  }
11244
11244
  });
11245
11245
 
11246
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.mjs
11246
+ // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.mjs
11247
11247
  var Events;
11248
11248
  var init_events = __esm({
11249
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.mjs"() {
11249
+ "../editor/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.mjs"() {
11250
11250
  init_define_ASTRACODE_BUNDLED_SKILLS();
11251
11251
  init_resource();
11252
11252
  init_pagination();
@@ -11364,10 +11364,10 @@ var init_events = __esm({
11364
11364
  }
11365
11365
  });
11366
11366
 
11367
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/sessions/resources.mjs
11367
+ // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/sessions/resources.mjs
11368
11368
  var Resources;
11369
11369
  var init_resources = __esm({
11370
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/sessions/resources.mjs"() {
11370
+ "../editor/node_modules/@anthropic-ai/sdk/resources/beta/sessions/resources.mjs"() {
11371
11371
  init_define_ASTRACODE_BUNDLED_SKILLS();
11372
11372
  init_resource();
11373
11373
  init_pagination();
@@ -11498,10 +11498,10 @@ var init_resources = __esm({
11498
11498
  }
11499
11499
  });
11500
11500
 
11501
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.mjs
11501
+ // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.mjs
11502
11502
  var Events2;
11503
11503
  var init_events2 = __esm({
11504
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.mjs"() {
11504
+ "../editor/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.mjs"() {
11505
11505
  init_define_ASTRACODE_BUNDLED_SKILLS();
11506
11506
  init_resource();
11507
11507
  init_pagination();
@@ -11561,10 +11561,10 @@ var init_events2 = __esm({
11561
11561
  }
11562
11562
  });
11563
11563
 
11564
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.mjs
11564
+ // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.mjs
11565
11565
  var Threads;
11566
11566
  var init_threads = __esm({
11567
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.mjs"() {
11567
+ "../editor/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.mjs"() {
11568
11568
  init_define_ASTRACODE_BUNDLED_SKILLS();
11569
11569
  init_resource();
11570
11570
  init_events2();
@@ -11650,10 +11650,10 @@ var init_threads = __esm({
11650
11650
  }
11651
11651
  });
11652
11652
 
11653
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.mjs
11653
+ // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.mjs
11654
11654
  var Sessions;
11655
11655
  var init_sessions = __esm({
11656
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.mjs"() {
11656
+ "../editor/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.mjs"() {
11657
11657
  init_define_ASTRACODE_BUNDLED_SKILLS();
11658
11658
  init_resource();
11659
11659
  init_events();
@@ -11809,10 +11809,10 @@ var init_sessions = __esm({
11809
11809
  }
11810
11810
  });
11811
11811
 
11812
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.mjs
11812
+ // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.mjs
11813
11813
  var Versions2;
11814
11814
  var init_versions2 = __esm({
11815
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.mjs"() {
11815
+ "../editor/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.mjs"() {
11816
11816
  init_define_ASTRACODE_BUNDLED_SKILLS();
11817
11817
  init_resource();
11818
11818
  init_pagination();
@@ -11940,10 +11940,10 @@ var init_versions2 = __esm({
11940
11940
  }
11941
11941
  });
11942
11942
 
11943
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.mjs
11943
+ // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.mjs
11944
11944
  var Skills;
11945
11945
  var init_skills2 = __esm({
11946
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.mjs"() {
11946
+ "../editor/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.mjs"() {
11947
11947
  init_define_ASTRACODE_BUNDLED_SKILLS();
11948
11948
  init_resource();
11949
11949
  init_versions2();
@@ -12041,10 +12041,10 @@ var init_skills2 = __esm({
12041
12041
  }
12042
12042
  });
12043
12043
 
12044
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.mjs
12044
+ // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.mjs
12045
12045
  var Certificates;
12046
12046
  var init_certificates = __esm({
12047
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.mjs"() {
12047
+ "../editor/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.mjs"() {
12048
12048
  init_define_ASTRACODE_BUNDLED_SKILLS();
12049
12049
  init_resource();
12050
12050
  init_pagination();
@@ -12172,10 +12172,10 @@ var init_certificates = __esm({
12172
12172
  }
12173
12173
  });
12174
12174
 
12175
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.mjs
12175
+ // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.mjs
12176
12176
  var Tunnels;
12177
12177
  var init_tunnels = __esm({
12178
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.mjs"() {
12178
+ "../editor/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.mjs"() {
12179
12179
  init_define_ASTRACODE_BUNDLED_SKILLS();
12180
12180
  init_resource();
12181
12181
  init_certificates();
@@ -12354,10 +12354,10 @@ var init_tunnels = __esm({
12354
12354
  }
12355
12355
  });
12356
12356
 
12357
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.mjs
12357
+ // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.mjs
12358
12358
  var Credentials;
12359
12359
  var init_credentials2 = __esm({
12360
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.mjs"() {
12360
+ "../editor/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.mjs"() {
12361
12361
  init_define_ASTRACODE_BUNDLED_SKILLS();
12362
12362
  init_resource();
12363
12363
  init_pagination();
@@ -12533,10 +12533,10 @@ var init_credentials2 = __esm({
12533
12533
  }
12534
12534
  });
12535
12535
 
12536
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.mjs
12536
+ // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.mjs
12537
12537
  var Vaults;
12538
12538
  var init_vaults = __esm({
12539
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.mjs"() {
12539
+ "../editor/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.mjs"() {
12540
12540
  init_define_ASTRACODE_BUNDLED_SKILLS();
12541
12541
  init_resource();
12542
12542
  init_credentials2();
@@ -12683,10 +12683,10 @@ var init_vaults = __esm({
12683
12683
  }
12684
12684
  });
12685
12685
 
12686
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs
12686
+ // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs
12687
12687
  var Beta;
12688
12688
  var init_beta = __esm({
12689
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs"() {
12689
+ "../editor/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs"() {
12690
12690
  init_define_ASTRACODE_BUNDLED_SKILLS();
12691
12691
  init_resource();
12692
12692
  init_deployment_runs();
@@ -12757,10 +12757,10 @@ var init_beta = __esm({
12757
12757
  }
12758
12758
  });
12759
12759
 
12760
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/completions.mjs
12760
+ // ../editor/node_modules/@anthropic-ai/sdk/resources/completions.mjs
12761
12761
  var Completions;
12762
12762
  var init_completions = __esm({
12763
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/completions.mjs"() {
12763
+ "../editor/node_modules/@anthropic-ai/sdk/resources/completions.mjs"() {
12764
12764
  init_define_ASTRACODE_BUNDLED_SKILLS();
12765
12765
  init_resource();
12766
12766
  init_headers();
@@ -12782,10 +12782,10 @@ var init_completions = __esm({
12782
12782
  }
12783
12783
  });
12784
12784
 
12785
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/files.mjs
12785
+ // ../editor/node_modules/@anthropic-ai/sdk/resources/files.mjs
12786
12786
  var Files2;
12787
12787
  var init_files2 = __esm({
12788
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/files.mjs"() {
12788
+ "../editor/node_modules/@anthropic-ai/sdk/resources/files.mjs"() {
12789
12789
  init_define_ASTRACODE_BUNDLED_SKILLS();
12790
12790
  init_resource();
12791
12791
  init_pagination();
@@ -12836,7 +12836,7 @@ var init_files2 = __esm({
12836
12836
  }
12837
12837
  });
12838
12838
 
12839
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/parser.mjs
12839
+ // ../editor/node_modules/@anthropic-ai/sdk/lib/parser.mjs
12840
12840
  function getOutputFormat2(params) {
12841
12841
  return params?.output_config?.format;
12842
12842
  }
@@ -12897,13 +12897,13 @@ function parseOutputFormat(params, content) {
12897
12897
  }
12898
12898
  }
12899
12899
  var init_parser2 = __esm({
12900
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/parser.mjs"() {
12900
+ "../editor/node_modules/@anthropic-ai/sdk/lib/parser.mjs"() {
12901
12901
  init_define_ASTRACODE_BUNDLED_SKILLS();
12902
12902
  init_error();
12903
12903
  }
12904
12904
  });
12905
12905
 
12906
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs
12906
+ // ../editor/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs
12907
12907
  function tracksToolInput2(content) {
12908
12908
  return content.type === "tool_use" || content.type === "server_tool_use";
12909
12909
  }
@@ -12911,7 +12911,7 @@ function checkNever2(x) {
12911
12911
  }
12912
12912
  var _MessageStream_instances, _MessageStream_currentMessageSnapshot, _MessageStream_params, _MessageStream_connectedPromise, _MessageStream_resolveConnectedPromise, _MessageStream_rejectConnectedPromise, _MessageStream_endPromise, _MessageStream_resolveEndPromise, _MessageStream_rejectEndPromise, _MessageStream_listeners, _MessageStream_ended, _MessageStream_errored, _MessageStream_aborted, _MessageStream_catchingPromiseCreated, _MessageStream_response, _MessageStream_request_id, _MessageStream_workspace_id, _MessageStream_logger, _MessageStream_getFinalMessage, _MessageStream_getFinalText, _MessageStream_handleError, _MessageStream_beginRequest, _MessageStream_addStreamEvent, _MessageStream_endRequest, _MessageStream_accumulateMessage, MessageStream;
12913
12913
  var init_MessageStream = __esm({
12914
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs"() {
12914
+ "../editor/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs"() {
12915
12915
  init_define_ASTRACODE_BUNDLED_SKILLS();
12916
12916
  init_tslib();
12917
12917
  init_stainless_helper_header();
@@ -13494,10 +13494,10 @@ var init_MessageStream = __esm({
13494
13494
  }
13495
13495
  });
13496
13496
 
13497
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/messages/batches.mjs
13497
+ // ../editor/node_modules/@anthropic-ai/sdk/resources/messages/batches.mjs
13498
13498
  var Batches2;
13499
13499
  var init_batches2 = __esm({
13500
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/messages/batches.mjs"() {
13500
+ "../editor/node_modules/@anthropic-ai/sdk/resources/messages/batches.mjs"() {
13501
13501
  init_define_ASTRACODE_BUNDLED_SKILLS();
13502
13502
  init_resource();
13503
13503
  init_pagination();
@@ -13655,10 +13655,10 @@ var init_batches2 = __esm({
13655
13655
  }
13656
13656
  });
13657
13657
 
13658
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/messages/messages.mjs
13658
+ // ../editor/node_modules/@anthropic-ai/sdk/resources/messages/messages.mjs
13659
13659
  var Messages2, DEPRECATED_MODELS2, MODELS_TO_WARN_WITH_THINKING_ENABLED2;
13660
13660
  var init_messages2 = __esm({
13661
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/messages/messages.mjs"() {
13661
+ "../editor/node_modules/@anthropic-ai/sdk/resources/messages/messages.mjs"() {
13662
13662
  init_define_ASTRACODE_BUNDLED_SKILLS();
13663
13663
  init_resource();
13664
13664
  init_headers();
@@ -13781,10 +13781,10 @@ Please migrate to a newer model. Visit https://docs.anthropic.com/en/docs/resour
13781
13781
  }
13782
13782
  });
13783
13783
 
13784
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/models.mjs
13784
+ // ../editor/node_modules/@anthropic-ai/sdk/resources/models.mjs
13785
13785
  var Models2;
13786
13786
  var init_models2 = __esm({
13787
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/models.mjs"() {
13787
+ "../editor/node_modules/@anthropic-ai/sdk/resources/models.mjs"() {
13788
13788
  init_define_ASTRACODE_BUNDLED_SKILLS();
13789
13789
  init_resource();
13790
13790
  init_pagination();
@@ -13828,10 +13828,10 @@ var init_models2 = __esm({
13828
13828
  }
13829
13829
  });
13830
13830
 
13831
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/skills/versions.mjs
13831
+ // ../editor/node_modules/@anthropic-ai/sdk/resources/skills/versions.mjs
13832
13832
  var Versions3;
13833
13833
  var init_versions3 = __esm({
13834
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/skills/versions.mjs"() {
13834
+ "../editor/node_modules/@anthropic-ai/sdk/resources/skills/versions.mjs"() {
13835
13835
  init_define_ASTRACODE_BUNDLED_SKILLS();
13836
13836
  init_resource();
13837
13837
  init_pagination();
@@ -13871,10 +13871,10 @@ var init_versions3 = __esm({
13871
13871
  }
13872
13872
  });
13873
13873
 
13874
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/skills/skills.mjs
13874
+ // ../editor/node_modules/@anthropic-ai/sdk/resources/skills/skills.mjs
13875
13875
  var Skills2;
13876
13876
  var init_skills3 = __esm({
13877
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/skills/skills.mjs"() {
13877
+ "../editor/node_modules/@anthropic-ai/sdk/resources/skills/skills.mjs"() {
13878
13878
  init_define_ASTRACODE_BUNDLED_SKILLS();
13879
13879
  init_resource();
13880
13880
  init_versions3();
@@ -13916,9 +13916,9 @@ var init_skills3 = __esm({
13916
13916
  }
13917
13917
  });
13918
13918
 
13919
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/index.mjs
13919
+ // ../editor/node_modules/@anthropic-ai/sdk/resources/index.mjs
13920
13920
  var init_resources2 = __esm({
13921
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/index.mjs"() {
13921
+ "../editor/node_modules/@anthropic-ai/sdk/resources/index.mjs"() {
13922
13922
  init_define_ASTRACODE_BUNDLED_SKILLS();
13923
13923
  init_shared();
13924
13924
  init_beta();
@@ -13930,10 +13930,10 @@ var init_resources2 = __esm({
13930
13930
  }
13931
13931
  });
13932
13932
 
13933
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/client.mjs
13933
+ // ../editor/node_modules/@anthropic-ai/sdk/client.mjs
13934
13934
  var _BaseAnthropic_instances, _a, _BaseAnthropic_encoder, _BaseAnthropic_baseURLOverridden, HUMAN_PROMPT, AI_PROMPT, BaseAnthropic, Anthropic;
13935
13935
  var init_client = __esm({
13936
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/client.mjs"() {
13936
+ "../editor/node_modules/@anthropic-ai/sdk/client.mjs"() {
13937
13937
  init_define_ASTRACODE_BUNDLED_SKILLS();
13938
13938
  init_tslib();
13939
13939
  init_uuid();
@@ -14250,9 +14250,9 @@ var init_client = __esm({
14250
14250
  return void 0;
14251
14251
  }
14252
14252
  if (this._authState.tokenCache && this.apiKey == null) {
14253
- const token2 = await this._authState.tokenCache.getToken();
14253
+ const token = await this._authState.tokenCache.getToken();
14254
14254
  this._authFlags(opts).usedTokenCache = true;
14255
- return buildHeaders([{ Authorization: `Bearer ${token2}` }]);
14255
+ return buildHeaders([{ Authorization: `Bearer ${token}` }]);
14256
14256
  }
14257
14257
  return buildHeaders([await this.apiKeyAuth(opts), await this.bearerAuth(opts)]);
14258
14258
  }
@@ -14729,10 +14729,10 @@ var init_client = __esm({
14729
14729
  }
14730
14730
  });
14731
14731
 
14732
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/middleware.mjs
14732
+ // ../editor/node_modules/@anthropic-ai/sdk/lib/middleware.mjs
14733
14733
  var encoder;
14734
14734
  var init_middleware2 = __esm({
14735
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/middleware.mjs"() {
14735
+ "../editor/node_modules/@anthropic-ai/sdk/lib/middleware.mjs"() {
14736
14736
  init_define_ASTRACODE_BUNDLED_SKILLS();
14737
14737
  init_error();
14738
14738
  init_streaming();
@@ -14745,9 +14745,9 @@ var init_middleware2 = __esm({
14745
14745
  }
14746
14746
  });
14747
14747
 
14748
- // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/index.mjs
14748
+ // ../editor/node_modules/@anthropic-ai/sdk/index.mjs
14749
14749
  var init_sdk = __esm({
14750
- "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/index.mjs"() {
14750
+ "../editor/node_modules/@anthropic-ai/sdk/index.mjs"() {
14751
14751
  init_define_ASTRACODE_BUNDLED_SKILLS();
14752
14752
  init_client();
14753
14753
  init_uploads2();
@@ -14759,9 +14759,9 @@ var init_sdk = __esm({
14759
14759
  }
14760
14760
  });
14761
14761
 
14762
- // ../../AstraCode/editor/node_modules/@vscode/tree-sitter-wasm/wasm/tree-sitter.js
14762
+ // ../editor/node_modules/@vscode/tree-sitter-wasm/wasm/tree-sitter.js
14763
14763
  var require_tree_sitter = __commonJS({
14764
- "../../AstraCode/editor/node_modules/@vscode/tree-sitter-wasm/wasm/tree-sitter.js"(exports, module) {
14764
+ "../editor/node_modules/@vscode/tree-sitter-wasm/wasm/tree-sitter.js"(exports, module) {
14765
14765
  init_define_ASTRACODE_BUNDLED_SKILLS();
14766
14766
  (function(global, factory) {
14767
14767
  typeof define === "function" && define.amd ? define(["exports"], factory) : typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : (global = typeof globalThis !== "undefined" ? globalThis : global || self, global.Parser = factory());
@@ -21569,10 +21569,10 @@ var MAX_BODY = 32 * 1024;
21569
21569
  var MAX_FILE = 4 * 1024 * 1024;
21570
21570
  var IDLE_MS = 2 * 60 * 60 * 1e3;
21571
21571
  var DebugSink = class _DebugSink {
21572
- constructor(server, port, token2, file2, onClose) {
21572
+ constructor(server, port, token, file2, onClose) {
21573
21573
  this.server = server;
21574
21574
  this.port = port;
21575
- this.token = token2;
21575
+ this.token = token;
21576
21576
  this.file = file2;
21577
21577
  this.onClose = onClose;
21578
21578
  this.touch();
@@ -21587,8 +21587,8 @@ var DebugSink = class _DebugSink {
21587
21587
  static async start(dir = path7.join(os3.tmpdir(), "astracode-debug"), onClose = () => {
21588
21588
  }) {
21589
21589
  fs9.mkdirSync(dir, { recursive: true, mode: 448 });
21590
- const token2 = (0, import_node_crypto.randomBytes)(16).toString("hex");
21591
- const file2 = path7.join(dir, `${token2}.ndjson`);
21590
+ const token = (0, import_node_crypto.randomBytes)(16).toString("hex");
21591
+ const file2 = path7.join(dir, `${token}.ndjson`);
21592
21592
  fs9.writeFileSync(file2, "", { mode: 384 });
21593
21593
  const ready = {};
21594
21594
  const server = http.createServer((req, res) => ready.sink?.handle(req, res));
@@ -21598,7 +21598,7 @@ var DebugSink = class _DebugSink {
21598
21598
  });
21599
21599
  server.unref();
21600
21600
  const port = server.address().port;
21601
- ready.sink = new _DebugSink(server, port, token2, file2, onClose);
21601
+ ready.sink = new _DebugSink(server, port, token, file2, onClose);
21602
21602
  return ready.sink;
21603
21603
  }
21604
21604
  /** Where code that can make a request posts. */
@@ -24745,14 +24745,14 @@ function parseGitHubRemote(url2) {
24745
24745
  if (!m) return void 0;
24746
24746
  return { owner: m[1], repo: m[2] };
24747
24747
  }
24748
- function githubClient(token2, fetchImpl = fetch, base = "https://api.github.com") {
24748
+ function githubClient(token, fetchImpl = fetch, base = "https://api.github.com") {
24749
24749
  return {
24750
24750
  async request(method, path63, body2) {
24751
24751
  const res = await fetchImpl(`${base}${path63}`, {
24752
24752
  method,
24753
24753
  headers: {
24754
24754
  accept: "application/vnd.github+json",
24755
- authorization: `Bearer ${token2}`,
24755
+ authorization: `Bearer ${token}`,
24756
24756
  "x-github-api-version": "2022-11-28",
24757
24757
  "user-agent": "AstraCode",
24758
24758
  ...body2 !== void 0 ? { "content-type": "application/json" } : {}
@@ -24935,9 +24935,9 @@ var RemotePoller = class {
24935
24935
  return { state: "failed", reason: `the workflow run ended ${conclusion ?? "without a conclusion"}` };
24936
24936
  }
24937
24937
  };
24938
- function gatewayRuns(gatewayUrl2, token2, fetchImpl = fetch) {
24938
+ function gatewayRuns(gatewayUrl2, token, fetchImpl = fetch) {
24939
24939
  const base = gatewayUrl2.replace(/\/+$/, "");
24940
- const headers = { authorization: `Bearer ${token2}`, "content-type": "application/json" };
24940
+ const headers = { authorization: `Bearer ${token}`, "content-type": "application/json" };
24941
24941
  return {
24942
24942
  /**
24943
24943
  * Claim the run before dispatching it, so only this person can read it.
@@ -27613,12 +27613,12 @@ function progressTokenFor(id) {
27613
27613
  }
27614
27614
  function progressTokenOf(message) {
27615
27615
  if (message.method !== "notifications/progress") return void 0;
27616
- const token2 = message.params?.progressToken;
27617
- return typeof token2 === "string" || typeof token2 === "number" ? token2 : void 0;
27616
+ const token = message.params?.progressToken;
27617
+ return typeof token === "string" || typeof token === "number" ? token : void 0;
27618
27618
  }
27619
- function withProgress(params, token2) {
27619
+ function withProgress(params, token) {
27620
27620
  const meta3 = params._meta && typeof params._meta === "object" ? params._meta : {};
27621
- return { ...params, _meta: { ...meta3, progressToken: token2 } };
27621
+ return { ...params, _meta: { ...meta3, progressToken: token } };
27622
27622
  }
27623
27623
  function host2() {
27624
27624
  try {
@@ -28106,8 +28106,8 @@ var McpClient = class {
28106
28106
  return;
28107
28107
  case "notification": {
28108
28108
  if (message.method === "notifications/tools/list_changed" && this.fromOurSubscription(message)) void this.relist();
28109
- const token2 = progressTokenOf(message);
28110
- if (token2 !== void 0) this.progress.get(String(token2))?.();
28109
+ const token = progressTokenOf(message);
28110
+ if (token !== void 0) this.progress.get(String(token))?.();
28111
28111
  return;
28112
28112
  }
28113
28113
  case "reply":
@@ -28158,12 +28158,12 @@ var McpClient = class {
28158
28158
  if (signal?.aborted) return Promise.reject(new McpError("the run was stopped"));
28159
28159
  const id = this.nextId++;
28160
28160
  return new Promise((resolve22, reject) => {
28161
- const token2 = progress ? progressTokenFor(id) : "";
28161
+ const token = progress ? progressTokenFor(id) : "";
28162
28162
  let timer;
28163
28163
  const done2 = () => {
28164
28164
  clearTimeout(timer);
28165
28165
  clearTimeout(ceiling);
28166
- if (token2) this.progress.delete(token2);
28166
+ if (token) this.progress.delete(token);
28167
28167
  signal?.removeEventListener("abort", onAbort);
28168
28168
  };
28169
28169
  const giveUp = (why2, error51) => {
@@ -28186,10 +28186,10 @@ var McpClient = class {
28186
28186
  };
28187
28187
  arm();
28188
28188
  const ceiling = setTimeout(late, Math.max(timeout, MAX_TOOL_CALL_MS));
28189
- if (token2) this.progress.set(token2, arm);
28189
+ if (token) this.progress.set(token, arm);
28190
28190
  signal?.addEventListener("abort", onAbort, { once: true });
28191
28191
  this.pending.set(id, { resolve: resolve22, reject, done: done2 });
28192
- const asked = token2 ? withProgress(params ?? {}, token2) : params;
28192
+ const asked = token ? withProgress(params ?? {}, token) : params;
28193
28193
  const sent = this.modern && method !== "server/discover" ? withMeta(asked, this.modern) : asked;
28194
28194
  this.write(JSON.stringify({ jsonrpc: "2.0", id, method, params: sent }));
28195
28195
  });
@@ -28924,8 +28924,8 @@ var McpHttpClient = class {
28924
28924
  }
28925
28925
  if (res.status === 401 && this.spec.bearer) {
28926
28926
  settle3();
28927
- const { variable, token: token2 } = this.spec.bearer;
28928
- this.lastError = token2 ? `the server refused the ${variable} stored in your keychain (401); it may have expired or been revoked. Use Set token on "${this.spec.id}" (Customize > MCP servers) to paste a new one` : `no ${variable} is stored for "${this.spec.id}". Use Set token on it (Customize > MCP servers, or the composer's Connectors menu) to paste one`;
28927
+ const { variable, token } = this.spec.bearer;
28928
+ this.lastError = token ? `the server refused the ${variable} stored in your keychain (401); it may have expired or been revoked. Use Set token on "${this.spec.id}" (Customize > MCP servers) to paste a new one` : `no ${variable} is stored for "${this.spec.id}". Use Set token on it (Customize > MCP servers, or the composer's Connectors menu) to paste one`;
28929
28929
  throw new McpError(this.lastError);
28930
28930
  }
28931
28931
  if (res.status === 401 && signIns < 2 && !this.auth) {
@@ -29054,8 +29054,8 @@ var McpHttpClient = class {
29054
29054
  } else if (message.method === "notifications/tools/list_changed") {
29055
29055
  void this.relist();
29056
29056
  } else {
29057
- const token2 = progressTokenOf(message);
29058
- if (token2 !== void 0) this.progress.get(String(token2))?.();
29057
+ const token = progressTokenOf(message);
29058
+ if (token !== void 0) this.progress.get(String(token))?.();
29059
29059
  }
29060
29060
  }
29061
29061
  /** A message whose answer nobody waits for: a reply to the server, a cancellation. */
@@ -31348,10 +31348,10 @@ function getGatewayUrl() {
31348
31348
  function projectRulesEnabled() {
31349
31349
  return vscode9.workspace.getConfiguration("astracode").get("projectRules", true);
31350
31350
  }
31351
- async function getCredentials(secrets3) {
31352
- const ssoToken = await secrets3.get(SSO_TOKEN_KEY);
31351
+ async function getCredentials(secrets4) {
31352
+ const ssoToken = await secrets4.get(SSO_TOKEN_KEY);
31353
31353
  if (!ssoToken) return null;
31354
- const byokKey = await secrets3.get(BYOK_KEY);
31354
+ const byokKey = await secrets4.get(BYOK_KEY);
31355
31355
  return { ssoToken, byokKey: byokKey || void 0 };
31356
31356
  }
31357
31357
  function createProvider(credentials, model2) {
@@ -31423,15 +31423,15 @@ async function exchangeSignInCode(code, verifier) {
31423
31423
  const detail = await jsonOrUndefined(res);
31424
31424
  return { ok: false, error: typeof detail?.error === "string" ? detail.error : void 0 };
31425
31425
  }
31426
- const token2 = (await jsonOrUndefined(res))?.token;
31427
- return typeof token2 === "string" && token2 ? { ok: true, token: token2 } : { ok: false, error: "The gateway answered without a token." };
31426
+ const token = (await jsonOrUndefined(res))?.token;
31427
+ return typeof token === "string" && token ? { ok: true, token } : { ok: false, error: "The gateway answered without a token." };
31428
31428
  } catch {
31429
31429
  return { ok: false, error: "Could not reach the gateway to finish signing in." };
31430
31430
  }
31431
31431
  }
31432
31432
  var RENEW_CHECK_MS = 30 * 60 * 1e3;
31433
- function secondsLeft(token2, now = Date.now()) {
31434
- const part = token2.split(".")[1];
31433
+ function secondsLeft(token, now = Date.now()) {
31434
+ const part = token.split(".")[1];
31435
31435
  if (!part) return void 0;
31436
31436
  try {
31437
31437
  const json2 = Buffer.from(part.replace(/-/g, "+").replace(/_/g, "/"), "base64").toString("utf8");
@@ -31442,17 +31442,17 @@ function secondsLeft(token2, now = Date.now()) {
31442
31442
  return void 0;
31443
31443
  }
31444
31444
  }
31445
- function shouldRenew(token2, within2, now = Date.now()) {
31446
- const left = secondsLeft(token2, now);
31445
+ function shouldRenew(token, within2, now = Date.now()) {
31446
+ const left = secondsLeft(token, now);
31447
31447
  if (left === void 0) return false;
31448
31448
  return left > 0 && left <= within2;
31449
31449
  }
31450
- async function renewToken(token2) {
31450
+ async function renewToken(token) {
31451
31451
  let res;
31452
31452
  try {
31453
31453
  res = await fetchWithin(new URL("/v1/auth/renew", getGatewayUrl()).toString(), {
31454
31454
  method: "POST",
31455
- headers: { authorization: `Bearer ${token2}`, "content-type": "application/json" },
31455
+ headers: { authorization: `Bearer ${token}`, "content-type": "application/json" },
31456
31456
  body: "{}"
31457
31457
  }, 2e4);
31458
31458
  } catch {
@@ -31532,10 +31532,10 @@ function approvedSpecs(store2, offered) {
31532
31532
 
31533
31533
  // ../editor/src/mcp/orgHost.ts
31534
31534
  var TIMEOUT_MS = 4e3;
31535
- async function fetchOrgCatalogue(token2) {
31535
+ async function fetchOrgCatalogue(token) {
31536
31536
  try {
31537
31537
  const res = await fetch(new URL("/v1/mcp/servers", getGatewayUrl()).toString(), {
31538
- headers: { authorization: `Bearer ${token2}` },
31538
+ headers: { authorization: `Bearer ${token}` },
31539
31539
  signal: AbortSignal.timeout(TIMEOUT_MS)
31540
31540
  });
31541
31541
  if (res.status === 404 || res.status === 401 || res.status === 403) return { servers: [], plugins: { marketplaces: [], policies: [] } };
@@ -31747,8 +31747,8 @@ async function attachKeychainBearers(specs, envFor) {
31747
31747
  if (!isHttpSpec(spec) || (spec.origin ?? "user") !== "user") continue;
31748
31748
  const variable = keychainBearerFor(spec);
31749
31749
  if (!variable) continue;
31750
- const token2 = (await envFor(spec.id, spec))[variable];
31751
- spec.bearer = { variable, ...token2 ? { token: token2 } : {} };
31750
+ const token = (await envFor(spec.id, spec))[variable];
31751
+ spec.bearer = { variable, ...token ? { token } : {} };
31752
31752
  }
31753
31753
  }
31754
31754
  var asking = Promise.resolve();
@@ -32465,10 +32465,7 @@ function webFetchEnabled() {
32465
32465
  // ../editor/src/agent/webSearchHost.ts
32466
32466
  init_define_ASTRACODE_BUNDLED_SKILLS();
32467
32467
  var vscode13 = __toESM(require_shim_vscode());
32468
- var token;
32469
- function useSearchToken(get) {
32470
- token = async () => get() || void 0;
32471
- }
32468
+ var secrets2;
32472
32469
  function webSearchEnabled() {
32473
32470
  const on = vscode13.workspace.getConfiguration("astracode").get("agent.webSearch", true);
32474
32471
  return on && gatewayOffersSearch();
@@ -32476,15 +32473,15 @@ function webSearchEnabled() {
32476
32473
  async function runWebSearch(input) {
32477
32474
  const body2 = searchBody(input);
32478
32475
  if ("error" in body2) return `ERROR: ${body2.error}`;
32479
- const ssoToken = token ? await token() : void 0;
32480
- if (!ssoToken) {
32481
- return "ERROR: web search needs to be signed in to AstraCode. Answer from what you can read locally, and say that you could not search.";
32476
+ const active = secrets2 ? await getCredentials(secrets2) : null;
32477
+ if (!active?.ssoToken) {
32478
+ return "ERROR: web search needs this editor to be signed in to AstraCode. Answer from what you can read locally, and say that you could not search.";
32482
32479
  }
32483
32480
  let res;
32484
32481
  try {
32485
32482
  res = await fetch(`${getGatewayUrl().replace(/\/+$/, "")}/v1/search`, {
32486
32483
  method: "POST",
32487
- headers: { "content-type": "application/json", authorization: `Bearer ${ssoToken}`, ...clientHeader() },
32484
+ headers: { "content-type": "application/json", authorization: `Bearer ${active.ssoToken}`, ...clientHeader() },
32488
32485
  body: JSON.stringify(body2),
32489
32486
  signal: AbortSignal.timeout(3e4)
32490
32487
  });
@@ -32903,31 +32900,31 @@ function tokenise(line) {
32903
32900
  return tokens;
32904
32901
  }
32905
32902
  var EXPANDS = /[{}*?[\]]/;
32906
- function quoteToken(token2) {
32907
- return `'${token2.replace(/'/g, "'\\''")}'`;
32903
+ function quoteToken(token) {
32904
+ return `'${token.replace(/'/g, "'\\''")}'`;
32908
32905
  }
32909
32906
  function inside(candidate, root2) {
32910
32907
  const withSep = root2.endsWith(path27.sep) ? root2 : root2 + path27.sep;
32911
32908
  return candidate === root2 || candidate.startsWith(withSep);
32912
32909
  }
32913
- function carriedPath(token2) {
32914
- if (!token2.startsWith("-")) return token2;
32915
- const eq = token2.indexOf("=");
32916
- if (eq > 0) return token2.slice(eq + 1);
32917
- if (!token2.startsWith("--") && token2.length > 2) return token2.slice(2);
32910
+ function carriedPath(token) {
32911
+ if (!token.startsWith("-")) return token;
32912
+ const eq = token.indexOf("=");
32913
+ if (eq > 0) return token.slice(eq + 1);
32914
+ if (!token.startsWith("--") && token.length > 2) return token.slice(2);
32918
32915
  return "";
32919
32916
  }
32920
32917
  function outsideRoot(raw, root2) {
32921
- const token2 = carriedPath(raw);
32922
- if (!token2) return "";
32923
- if (token2.startsWith("~")) {
32924
- return `"${token2}" is outside the workspace (the shell expands ~ to your home directory)`;
32918
+ const token = carriedPath(raw);
32919
+ if (!token) return "";
32920
+ if (token.startsWith("~")) {
32921
+ return `"${token}" is outside the workspace (the shell expands ~ to your home directory)`;
32925
32922
  }
32926
- if (path27.isAbsolute(token2)) return `"${token2}" is an absolute path, outside the workspace`;
32923
+ if (path27.isAbsolute(token)) return `"${token}" is an absolute path, outside the workspace`;
32927
32924
  if (!root2) return "";
32928
32925
  root2 = path27.resolve(root2);
32929
- const resolved = path27.resolve(root2, token2);
32930
- if (!inside(resolved, root2)) return `"${token2}" resolves outside the workspace`;
32926
+ const resolved = path27.resolve(root2, token);
32927
+ if (!inside(resolved, root2)) return `"${token}" resolves outside the workspace`;
32931
32928
  let realRoot = root2;
32932
32929
  try {
32933
32930
  realRoot = fs24.realpathSync(root2);
@@ -32936,7 +32933,7 @@ function outsideRoot(raw, root2) {
32936
32933
  try {
32937
32934
  const real = fs24.realpathSync(resolved);
32938
32935
  if (!inside(real, root2) && !inside(real, realRoot)) {
32939
- return `"${token2}" is a link pointing outside the workspace`;
32936
+ return `"${token}" is a link pointing outside the workspace`;
32940
32937
  }
32941
32938
  } catch {
32942
32939
  }
@@ -32952,11 +32949,11 @@ function isReadOnlyCommand(command2, root2) {
32952
32949
  if (!words2 || words2.length === 0) {
32953
32950
  return { ok: false, reason: "unbalanced quotes" };
32954
32951
  }
32955
- for (const token2 of words2) {
32956
- if (!token2.quoted && EXPANDS.test(token2.value)) {
32952
+ for (const token of words2) {
32953
+ if (!token.quoted && EXPANDS.test(token.value)) {
32957
32954
  return {
32958
32955
  ok: false,
32959
- reason: `"${token2.value}" would be expanded by the shell into something this check cannot see. Quote it to mean it literally, or name the files instead`
32956
+ reason: `"${token.value}" would be expanded by the shell into something this check cannot see. Quote it to mean it literally, or name the files instead`
32960
32957
  };
32961
32958
  }
32962
32959
  }
@@ -32971,8 +32968,8 @@ function isReadOnlyCommand(command2, root2) {
32971
32968
  }
32972
32969
  const args2 = words2.slice(1).map((t2) => t2.value);
32973
32970
  const paths = program === "git" ? args2.slice(1) : args2;
32974
- for (const token2 of paths) {
32975
- const why2 = outsideRoot(token2, root2);
32971
+ for (const token of paths) {
32972
+ const why2 = outsideRoot(token, root2);
32976
32973
  if (why2) return { ok: false, reason: `${why2}; a read-only mode only reads inside the workspace` };
32977
32974
  }
32978
32975
  const vetted = { ok: true, command: words2.map((t2) => quoteToken(t2.value)).join(" ") };
@@ -32980,9 +32977,9 @@ function isReadOnlyCommand(command2, root2) {
32980
32977
  const sub = args2[0];
32981
32978
  if (!sub) return { ok: false, reason: "git needs a subcommand" };
32982
32979
  if (!(sub in GIT)) return { ok: false, reason: `git ${sub} can write; not allowed in a read-only mode` };
32983
- for (const token2 of args2.slice(1)) {
32984
- if (GIT_NEVER.some((flag) => flag.test(token2))) {
32985
- return { ok: false, reason: `git ${token2} can run or write something; not allowed in a read-only mode` };
32980
+ for (const token of args2.slice(1)) {
32981
+ if (GIT_NEVER.some((flag) => flag.test(token))) {
32982
+ return { ok: false, reason: `git ${token} can run or write something; not allowed in a read-only mode` };
32986
32983
  }
32987
32984
  }
32988
32985
  const deny = GIT[sub];
@@ -34312,7 +34309,7 @@ async function rerank(query, candidates, scorer, timeoutMs = RERANK_TIMEOUT_MS)
34312
34309
 
34313
34310
  // ../editor/src/agent/codeIndexHost.ts
34314
34311
  var RESYNC_EVERY_MS = 30 * 60 * 1e3;
34315
- var secrets2;
34312
+ var secrets3;
34316
34313
  var logLine2 = () => {
34317
34314
  };
34318
34315
  var store;
@@ -34334,8 +34331,8 @@ function indexBaseDir() {
34334
34331
  return path30.join(os11.homedir(), ".astracode", "index");
34335
34332
  }
34336
34333
  var GatewayEmbedder = class {
34337
- constructor(token2) {
34338
- this.token = token2;
34334
+ constructor(token) {
34335
+ this.token = token;
34339
34336
  }
34340
34337
  token;
34341
34338
  async embed(texts) {
@@ -34361,8 +34358,8 @@ var GatewayEmbedder = class {
34361
34358
  }
34362
34359
  };
34363
34360
  async function embedder() {
34364
- if (!secrets2) return void 0;
34365
- const active = await getCredentials(secrets2);
34361
+ if (!secrets3) return void 0;
34362
+ const active = await getCredentials(secrets3);
34366
34363
  return active?.ssoToken ? new GatewayEmbedder(active.ssoToken) : void 0;
34367
34364
  }
34368
34365
  function root() {
@@ -34468,8 +34465,8 @@ async function searchCode(query, limit2) {
34468
34465
  const boosts = vector && feedback ? feedback.boosts(vector) : [];
34469
34466
  let hits = s.hybridSearch(r, vector, q, 50, boosts);
34470
34467
  let judged = false;
34471
- if (rerankEnabled() && hits.length >= 3 && secrets2) {
34472
- const active = await getCredentials(secrets2);
34468
+ if (rerankEnabled() && hits.length >= 3 && secrets3) {
34469
+ const active = await getCredentials(secrets3);
34473
34470
  if (active) {
34474
34471
  const provider = createProvider(active);
34475
34472
  const candidates = hits.slice(0, 20).map((h) => ({
@@ -34836,8 +34833,8 @@ function slugFromPath(path63) {
34836
34833
  return m ? m[1] : void 0;
34837
34834
  }
34838
34835
  var PlanStore = class {
34839
- constructor(fs54, newId) {
34840
- this.fs = fs54;
34836
+ constructor(fs55, newId) {
34837
+ this.fs = fs55;
34841
34838
  this.newId = newId;
34842
34839
  }
34843
34840
  fs;
@@ -35623,10 +35620,10 @@ var path35 = __toESM(require("path"));
35623
35620
  // ../editor/src/agent/diffUtil.ts
35624
35621
  init_define_ASTRACODE_BUNDLED_SKILLS();
35625
35622
 
35626
- // ../../AstraCode/editor/node_modules/diff/libesm/index.js
35623
+ // ../editor/node_modules/diff/libesm/index.js
35627
35624
  init_define_ASTRACODE_BUNDLED_SKILLS();
35628
35625
 
35629
- // ../../AstraCode/editor/node_modules/diff/libesm/diff/base.js
35626
+ // ../editor/node_modules/diff/libesm/diff/base.js
35630
35627
  init_define_ASTRACODE_BUNDLED_SKILLS();
35631
35628
  var Diff = class {
35632
35629
  diff(oldStr, newStr, options = {}) {
@@ -35829,10 +35826,10 @@ var Diff = class {
35829
35826
  }
35830
35827
  };
35831
35828
 
35832
- // ../../AstraCode/editor/node_modules/diff/libesm/diff/word.js
35829
+ // ../editor/node_modules/diff/libesm/diff/word.js
35833
35830
  init_define_ASTRACODE_BUNDLED_SKILLS();
35834
35831
 
35835
- // ../../AstraCode/editor/node_modules/diff/libesm/util/string.js
35832
+ // ../editor/node_modules/diff/libesm/util/string.js
35836
35833
  init_define_ASTRACODE_BUNDLED_SKILLS();
35837
35834
  function longestCommonPrefix(str1, str22) {
35838
35835
  let i2;
@@ -35961,7 +35958,7 @@ function leadingAndTrailingWs(string4, segmenter) {
35961
35958
  return [head, tail2];
35962
35959
  }
35963
35960
 
35964
- // ../../AstraCode/editor/node_modules/diff/libesm/diff/word.js
35961
+ // ../editor/node_modules/diff/libesm/diff/word.js
35965
35962
  var extendedWordChars = "a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}";
35966
35963
  var tokenizeIncludingWhitespace = new RegExp(`[${extendedWordChars}]+|\\s+|[^${extendedWordChars}]`, "ug");
35967
35964
  var WordDiff = class extends Diff {
@@ -36006,11 +36003,11 @@ var WordDiff = class extends Diff {
36006
36003
  return tokens;
36007
36004
  }
36008
36005
  join(tokens) {
36009
- return tokens.map((token2, i2) => {
36006
+ return tokens.map((token, i2) => {
36010
36007
  if (i2 == 0) {
36011
- return token2;
36008
+ return token;
36012
36009
  } else {
36013
- return token2.replace(/^\s+/, "");
36010
+ return token.replace(/^\s+/, "");
36014
36011
  }
36015
36012
  }).join("");
36016
36013
  }
@@ -36098,7 +36095,7 @@ function diffWordsWithSpace(oldStr, newStr, options) {
36098
36095
  return wordsWithSpaceDiff.diff(oldStr, newStr, options);
36099
36096
  }
36100
36097
 
36101
- // ../../AstraCode/editor/node_modules/diff/libesm/diff/line.js
36098
+ // ../editor/node_modules/diff/libesm/diff/line.js
36102
36099
  init_define_ASTRACODE_BUNDLED_SKILLS();
36103
36100
  var LineDiff = class extends Diff {
36104
36101
  constructor() {
@@ -36147,7 +36144,7 @@ function tokenize3(value, options) {
36147
36144
  return retLines;
36148
36145
  }
36149
36146
 
36150
- // ../../AstraCode/editor/node_modules/diff/libesm/patch/create.js
36147
+ // ../editor/node_modules/diff/libesm/patch/create.js
36151
36148
  init_define_ASTRACODE_BUNDLED_SKILLS();
36152
36149
  function structuredPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, newHeader, options) {
36153
36150
  let optionsObj;
@@ -43107,10 +43104,10 @@ var FileStore2 = class {
43107
43104
  return void 0;
43108
43105
  }
43109
43106
  }
43110
- async set(token2) {
43107
+ async set(token) {
43111
43108
  fs43.mkdirSync(path47.dirname(this.file), { recursive: true, mode: 448 });
43112
43109
  const tmp = `${this.file}.${process.pid}.tmp`;
43113
- fs43.writeFileSync(tmp, JSON.stringify({ token: token2 }) + "\n", { mode: 384 });
43110
+ fs43.writeFileSync(tmp, JSON.stringify({ token }) + "\n", { mode: 384 });
43114
43111
  fs43.renameSync(tmp, this.file);
43115
43112
  }
43116
43113
  async delete() {
@@ -43134,11 +43131,11 @@ var KeychainStore = class {
43134
43131
  where = "the macOS Keychain";
43135
43132
  async get() {
43136
43133
  const r = await security(["find-generic-password", "-s", SERVICE, "-a", ACCOUNT, "-w"]);
43137
- const token2 = r.stdout.trim();
43138
- return r.code === 0 && token2 ? token2 : void 0;
43134
+ const token = r.stdout.trim();
43135
+ return r.code === 0 && token ? token : void 0;
43139
43136
  }
43140
- async set(token2) {
43141
- if (!/^[A-Za-z0-9._~+/=-]+$/.test(token2)) {
43137
+ async set(token) {
43138
+ if (!/^[A-Za-z0-9._~+/=-]+$/.test(token)) {
43142
43139
  throw new Error("the gateway returned a token this CLI cannot store safely");
43143
43140
  }
43144
43141
  await new Promise((resolve22, reject) => {
@@ -43150,7 +43147,7 @@ var KeychainStore = class {
43150
43147
  "close",
43151
43148
  (code) => code === 0 && !stderr.trim() ? resolve22() : reject(new Error(`could not save to the Keychain: ${stderr.trim() || `exit ${code}`}`))
43152
43149
  );
43153
- child.stdin.end(`add-generic-password -U -s "${SERVICE}" -a ${ACCOUNT} -l "${SERVICE}" -w ${token2}
43150
+ child.stdin.end(`add-generic-password -U -s "${SERVICE}" -a ${ACCOUNT} -l "${SERVICE}" -w ${token}
43154
43151
  `);
43155
43152
  });
43156
43153
  }
@@ -43625,10 +43622,10 @@ function readableError(err2) {
43625
43622
  return readable(message) ?? "Something went wrong inside AstraCode. Try again; if it keeps happening, report it.";
43626
43623
  }
43627
43624
 
43628
- // ../../AstraCode/editor/node_modules/@agentclientprotocol/sdk/dist/acp.js
43625
+ // ../editor/node_modules/@agentclientprotocol/sdk/dist/acp.js
43629
43626
  init_define_ASTRACODE_BUNDLED_SKILLS();
43630
43627
 
43631
- // ../../AstraCode/editor/node_modules/@agentclientprotocol/sdk/dist/schema/index.js
43628
+ // ../editor/node_modules/@agentclientprotocol/sdk/dist/schema/index.js
43632
43629
  init_define_ASTRACODE_BUNDLED_SKILLS();
43633
43630
  var AGENT_METHODS = {
43634
43631
  initialize: "initialize",
@@ -43681,16 +43678,16 @@ var PROTOCOL_METHODS = {
43681
43678
  };
43682
43679
  var PROTOCOL_VERSION2 = 1;
43683
43680
 
43684
- // ../../AstraCode/editor/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.js
43681
+ // ../editor/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.js
43685
43682
  init_define_ASTRACODE_BUNDLED_SKILLS();
43686
43683
 
43687
- // ../../AstraCode/editor/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.js
43684
+ // ../editor/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.js
43688
43685
  init_define_ASTRACODE_BUNDLED_SKILLS();
43689
43686
 
43690
- // ../../AstraCode/editor/node_modules/zod/v4/classic/index.js
43687
+ // ../editor/node_modules/zod/v4/classic/index.js
43691
43688
  init_define_ASTRACODE_BUNDLED_SKILLS();
43692
43689
 
43693
- // ../../AstraCode/editor/node_modules/zod/v4/classic/external.js
43690
+ // ../editor/node_modules/zod/v4/classic/external.js
43694
43691
  var external_exports = {};
43695
43692
  __export(external_exports, {
43696
43693
  $brand: () => $brand,
@@ -43934,7 +43931,7 @@ __export(external_exports, {
43934
43931
  });
43935
43932
  init_define_ASTRACODE_BUNDLED_SKILLS();
43936
43933
 
43937
- // ../../AstraCode/editor/node_modules/zod/v4/core/index.js
43934
+ // ../editor/node_modules/zod/v4/core/index.js
43938
43935
  var core_exports2 = {};
43939
43936
  __export(core_exports2, {
43940
43937
  $ZodAny: () => $ZodAny,
@@ -44214,7 +44211,7 @@ __export(core_exports2, {
44214
44211
  });
44215
44212
  init_define_ASTRACODE_BUNDLED_SKILLS();
44216
44213
 
44217
- // ../../AstraCode/editor/node_modules/zod/v4/core/core.js
44214
+ // ../editor/node_modules/zod/v4/core/core.js
44218
44215
  init_define_ASTRACODE_BUNDLED_SKILLS();
44219
44216
  var _a2;
44220
44217
  var NEVER = /* @__PURE__ */ Object.freeze({
@@ -44292,13 +44289,13 @@ function config2(newConfig) {
44292
44289
  return globalConfig;
44293
44290
  }
44294
44291
 
44295
- // ../../AstraCode/editor/node_modules/zod/v4/core/parse.js
44292
+ // ../editor/node_modules/zod/v4/core/parse.js
44296
44293
  init_define_ASTRACODE_BUNDLED_SKILLS();
44297
44294
 
44298
- // ../../AstraCode/editor/node_modules/zod/v4/core/errors.js
44295
+ // ../editor/node_modules/zod/v4/core/errors.js
44299
44296
  init_define_ASTRACODE_BUNDLED_SKILLS();
44300
44297
 
44301
- // ../../AstraCode/editor/node_modules/zod/v4/core/util.js
44298
+ // ../editor/node_modules/zod/v4/core/util.js
44302
44299
  var util_exports = {};
44303
44300
  __export(util_exports, {
44304
44301
  BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
@@ -44995,7 +44992,7 @@ var Class = class {
44995
44992
  }
44996
44993
  };
44997
44994
 
44998
- // ../../AstraCode/editor/node_modules/zod/v4/core/errors.js
44995
+ // ../editor/node_modules/zod/v4/core/errors.js
44999
44996
  var initializer = (inst, def) => {
45000
44997
  inst.name = "$ZodError";
45001
44998
  Object.defineProperty(inst, "_zod", {
@@ -45134,7 +45131,7 @@ function prettifyError(error51) {
45134
45131
  return lines2.join("\n");
45135
45132
  }
45136
45133
 
45137
- // ../../AstraCode/editor/node_modules/zod/v4/core/parse.js
45134
+ // ../editor/node_modules/zod/v4/core/parse.js
45138
45135
  var _parse = (_Err) => (schema, value, _ctx, _params) => {
45139
45136
  const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
45140
45137
  const result = schema._zod.run({ value, issues: [] }, ctx);
@@ -45222,13 +45219,13 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
45222
45219
  };
45223
45220
  var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
45224
45221
 
45225
- // ../../AstraCode/editor/node_modules/zod/v4/core/schemas.js
45222
+ // ../editor/node_modules/zod/v4/core/schemas.js
45226
45223
  init_define_ASTRACODE_BUNDLED_SKILLS();
45227
45224
 
45228
- // ../../AstraCode/editor/node_modules/zod/v4/core/checks.js
45225
+ // ../editor/node_modules/zod/v4/core/checks.js
45229
45226
  init_define_ASTRACODE_BUNDLED_SKILLS();
45230
45227
 
45231
- // ../../AstraCode/editor/node_modules/zod/v4/core/regexes.js
45228
+ // ../editor/node_modules/zod/v4/core/regexes.js
45232
45229
  var regexes_exports = {};
45233
45230
  __export(regexes_exports, {
45234
45231
  base64: () => base64,
@@ -45388,7 +45385,7 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
45388
45385
  var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
45389
45386
  var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
45390
45387
 
45391
- // ../../AstraCode/editor/node_modules/zod/v4/core/checks.js
45388
+ // ../editor/node_modules/zod/v4/core/checks.js
45392
45389
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
45393
45390
  var _a4;
45394
45391
  inst._zod ?? (inst._zod = {});
@@ -45936,7 +45933,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
45936
45933
  };
45937
45934
  });
45938
45935
 
45939
- // ../../AstraCode/editor/node_modules/zod/v4/core/doc.js
45936
+ // ../editor/node_modules/zod/v4/core/doc.js
45940
45937
  init_define_ASTRACODE_BUNDLED_SKILLS();
45941
45938
  var Doc = class {
45942
45939
  constructor(args2 = []) {
@@ -45973,7 +45970,7 @@ var Doc = class {
45973
45970
  }
45974
45971
  };
45975
45972
 
45976
- // ../../AstraCode/editor/node_modules/zod/v4/core/versions.js
45973
+ // ../editor/node_modules/zod/v4/core/versions.js
45977
45974
  init_define_ASTRACODE_BUNDLED_SKILLS();
45978
45975
  var version2 = {
45979
45976
  major: 4,
@@ -45981,7 +45978,7 @@ var version2 = {
45981
45978
  patch: 3
45982
45979
  };
45983
45980
 
45984
- // ../../AstraCode/editor/node_modules/zod/v4/core/schemas.js
45981
+ // ../editor/node_modules/zod/v4/core/schemas.js
45985
45982
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
45986
45983
  var _a4;
45987
45984
  inst ?? (inst = {});
@@ -46370,9 +46367,9 @@ var $ZodE164 = /* @__PURE__ */ $constructor("$ZodE164", (inst, def) => {
46370
46367
  def.pattern ?? (def.pattern = e164);
46371
46368
  $ZodStringFormat.init(inst, def);
46372
46369
  });
46373
- function isValidJWT(token2, algorithm = null) {
46370
+ function isValidJWT(token, algorithm = null) {
46374
46371
  try {
46375
- const tokensParts = token2.split(".");
46372
+ const tokensParts = token.split(".");
46376
46373
  if (tokensParts.length !== 3)
46377
46374
  return false;
46378
46375
  const [header2] = tokensParts;
@@ -48074,7 +48071,7 @@ function handleRefineResult(result, payload, input, inst) {
48074
48071
  }
48075
48072
  }
48076
48073
 
48077
- // ../../AstraCode/editor/node_modules/zod/v4/locales/index.js
48074
+ // ../editor/node_modules/zod/v4/locales/index.js
48078
48075
  var locales_exports = {};
48079
48076
  __export(locales_exports, {
48080
48077
  ar: () => ar_default,
@@ -48132,7 +48129,7 @@ __export(locales_exports, {
48132
48129
  });
48133
48130
  init_define_ASTRACODE_BUNDLED_SKILLS();
48134
48131
 
48135
- // ../../AstraCode/editor/node_modules/zod/v4/locales/ar.js
48132
+ // ../editor/node_modules/zod/v4/locales/ar.js
48136
48133
  init_define_ASTRACODE_BUNDLED_SKILLS();
48137
48134
  var error = () => {
48138
48135
  const Sizable = {
@@ -48240,7 +48237,7 @@ function ar_default() {
48240
48237
  };
48241
48238
  }
48242
48239
 
48243
- // ../../AstraCode/editor/node_modules/zod/v4/locales/az.js
48240
+ // ../editor/node_modules/zod/v4/locales/az.js
48244
48241
  init_define_ASTRACODE_BUNDLED_SKILLS();
48245
48242
  var error2 = () => {
48246
48243
  const Sizable = {
@@ -48347,7 +48344,7 @@ function az_default() {
48347
48344
  };
48348
48345
  }
48349
48346
 
48350
- // ../../AstraCode/editor/node_modules/zod/v4/locales/be.js
48347
+ // ../editor/node_modules/zod/v4/locales/be.js
48351
48348
  init_define_ASTRACODE_BUNDLED_SKILLS();
48352
48349
  function getBelarusianPlural(count, one, few, many) {
48353
48350
  const absCount = Math.abs(count);
@@ -48505,7 +48502,7 @@ function be_default() {
48505
48502
  };
48506
48503
  }
48507
48504
 
48508
- // ../../AstraCode/editor/node_modules/zod/v4/locales/bg.js
48505
+ // ../editor/node_modules/zod/v4/locales/bg.js
48509
48506
  init_define_ASTRACODE_BUNDLED_SKILLS();
48510
48507
  var error4 = () => {
48511
48508
  const Sizable = {
@@ -48627,7 +48624,7 @@ function bg_default() {
48627
48624
  };
48628
48625
  }
48629
48626
 
48630
- // ../../AstraCode/editor/node_modules/zod/v4/locales/ca.js
48627
+ // ../editor/node_modules/zod/v4/locales/ca.js
48631
48628
  init_define_ASTRACODE_BUNDLED_SKILLS();
48632
48629
  var error5 = () => {
48633
48630
  const Sizable = {
@@ -48737,7 +48734,7 @@ function ca_default() {
48737
48734
  };
48738
48735
  }
48739
48736
 
48740
- // ../../AstraCode/editor/node_modules/zod/v4/locales/cs.js
48737
+ // ../editor/node_modules/zod/v4/locales/cs.js
48741
48738
  init_define_ASTRACODE_BUNDLED_SKILLS();
48742
48739
  var error6 = () => {
48743
48740
  const Sizable = {
@@ -48850,7 +48847,7 @@ function cs_default() {
48850
48847
  };
48851
48848
  }
48852
48849
 
48853
- // ../../AstraCode/editor/node_modules/zod/v4/locales/da.js
48850
+ // ../editor/node_modules/zod/v4/locales/da.js
48854
48851
  init_define_ASTRACODE_BUNDLED_SKILLS();
48855
48852
  var error7 = () => {
48856
48853
  const Sizable = {
@@ -48967,7 +48964,7 @@ function da_default() {
48967
48964
  };
48968
48965
  }
48969
48966
 
48970
- // ../../AstraCode/editor/node_modules/zod/v4/locales/de.js
48967
+ // ../editor/node_modules/zod/v4/locales/de.js
48971
48968
  init_define_ASTRACODE_BUNDLED_SKILLS();
48972
48969
  var error8 = () => {
48973
48970
  const Sizable = {
@@ -49077,7 +49074,7 @@ function de_default() {
49077
49074
  };
49078
49075
  }
49079
49076
 
49080
- // ../../AstraCode/editor/node_modules/zod/v4/locales/el.js
49077
+ // ../editor/node_modules/zod/v4/locales/el.js
49081
49078
  init_define_ASTRACODE_BUNDLED_SKILLS();
49082
49079
  var error9 = () => {
49083
49080
  const Sizable = {
@@ -49188,7 +49185,7 @@ function el_default() {
49188
49185
  };
49189
49186
  }
49190
49187
 
49191
- // ../../AstraCode/editor/node_modules/zod/v4/locales/en.js
49188
+ // ../editor/node_modules/zod/v4/locales/en.js
49192
49189
  init_define_ASTRACODE_BUNDLED_SKILLS();
49193
49190
  var error10 = () => {
49194
49191
  const Sizable = {
@@ -49302,7 +49299,7 @@ function en_default() {
49302
49299
  };
49303
49300
  }
49304
49301
 
49305
- // ../../AstraCode/editor/node_modules/zod/v4/locales/eo.js
49302
+ // ../editor/node_modules/zod/v4/locales/eo.js
49306
49303
  init_define_ASTRACODE_BUNDLED_SKILLS();
49307
49304
  var error11 = () => {
49308
49305
  const Sizable = {
@@ -49413,7 +49410,7 @@ function eo_default() {
49413
49410
  };
49414
49411
  }
49415
49412
 
49416
- // ../../AstraCode/editor/node_modules/zod/v4/locales/es.js
49413
+ // ../editor/node_modules/zod/v4/locales/es.js
49417
49414
  init_define_ASTRACODE_BUNDLED_SKILLS();
49418
49415
  var error12 = () => {
49419
49416
  const Sizable = {
@@ -49547,7 +49544,7 @@ function es_default() {
49547
49544
  };
49548
49545
  }
49549
49546
 
49550
- // ../../AstraCode/editor/node_modules/zod/v4/locales/fa.js
49547
+ // ../editor/node_modules/zod/v4/locales/fa.js
49551
49548
  init_define_ASTRACODE_BUNDLED_SKILLS();
49552
49549
  var error13 = () => {
49553
49550
  const Sizable = {
@@ -49663,7 +49660,7 @@ function fa_default() {
49663
49660
  };
49664
49661
  }
49665
49662
 
49666
- // ../../AstraCode/editor/node_modules/zod/v4/locales/fi.js
49663
+ // ../editor/node_modules/zod/v4/locales/fi.js
49667
49664
  init_define_ASTRACODE_BUNDLED_SKILLS();
49668
49665
  var error14 = () => {
49669
49666
  const Sizable = {
@@ -49777,7 +49774,7 @@ function fi_default() {
49777
49774
  };
49778
49775
  }
49779
49776
 
49780
- // ../../AstraCode/editor/node_modules/zod/v4/locales/fr.js
49777
+ // ../editor/node_modules/zod/v4/locales/fr.js
49781
49778
  init_define_ASTRACODE_BUNDLED_SKILLS();
49782
49779
  var error15 = () => {
49783
49780
  const Sizable = {
@@ -49904,7 +49901,7 @@ function fr_default() {
49904
49901
  };
49905
49902
  }
49906
49903
 
49907
- // ../../AstraCode/editor/node_modules/zod/v4/locales/fr-CA.js
49904
+ // ../editor/node_modules/zod/v4/locales/fr-CA.js
49908
49905
  init_define_ASTRACODE_BUNDLED_SKILLS();
49909
49906
  var error16 = () => {
49910
49907
  const Sizable = {
@@ -50013,7 +50010,7 @@ function fr_CA_default() {
50013
50010
  };
50014
50011
  }
50015
50012
 
50016
- // ../../AstraCode/editor/node_modules/zod/v4/locales/he.js
50013
+ // ../editor/node_modules/zod/v4/locales/he.js
50017
50014
  init_define_ASTRACODE_BUNDLED_SKILLS();
50018
50015
  var error17 = () => {
50019
50016
  const TypeNames = {
@@ -50209,7 +50206,7 @@ function he_default() {
50209
50206
  };
50210
50207
  }
50211
50208
 
50212
- // ../../AstraCode/editor/node_modules/zod/v4/locales/hr.js
50209
+ // ../editor/node_modules/zod/v4/locales/hr.js
50213
50210
  init_define_ASTRACODE_BUNDLED_SKILLS();
50214
50211
  var error18 = () => {
50215
50212
  const Sizable = {
@@ -50333,7 +50330,7 @@ function hr_default() {
50333
50330
  };
50334
50331
  }
50335
50332
 
50336
- // ../../AstraCode/editor/node_modules/zod/v4/locales/hu.js
50333
+ // ../editor/node_modules/zod/v4/locales/hu.js
50337
50334
  init_define_ASTRACODE_BUNDLED_SKILLS();
50338
50335
  var error19 = () => {
50339
50336
  const Sizable = {
@@ -50443,7 +50440,7 @@ function hu_default() {
50443
50440
  };
50444
50441
  }
50445
50442
 
50446
- // ../../AstraCode/editor/node_modules/zod/v4/locales/hy.js
50443
+ // ../editor/node_modules/zod/v4/locales/hy.js
50447
50444
  init_define_ASTRACODE_BUNDLED_SKILLS();
50448
50445
  function getArmenianPlural(count, one, many) {
50449
50446
  return Math.abs(count) === 1 ? one : many;
@@ -50592,7 +50589,7 @@ function hy_default() {
50592
50589
  };
50593
50590
  }
50594
50591
 
50595
- // ../../AstraCode/editor/node_modules/zod/v4/locales/id.js
50592
+ // ../editor/node_modules/zod/v4/locales/id.js
50596
50593
  init_define_ASTRACODE_BUNDLED_SKILLS();
50597
50594
  var error21 = () => {
50598
50595
  const Sizable = {
@@ -50700,7 +50697,7 @@ function id_default() {
50700
50697
  };
50701
50698
  }
50702
50699
 
50703
- // ../../AstraCode/editor/node_modules/zod/v4/locales/is.js
50700
+ // ../editor/node_modules/zod/v4/locales/is.js
50704
50701
  init_define_ASTRACODE_BUNDLED_SKILLS();
50705
50702
  var error22 = () => {
50706
50703
  const Sizable = {
@@ -50811,7 +50808,7 @@ function is_default() {
50811
50808
  };
50812
50809
  }
50813
50810
 
50814
- // ../../AstraCode/editor/node_modules/zod/v4/locales/it.js
50811
+ // ../editor/node_modules/zod/v4/locales/it.js
50815
50812
  init_define_ASTRACODE_BUNDLED_SKILLS();
50816
50813
  var error23 = () => {
50817
50814
  const Sizable = {
@@ -50921,7 +50918,7 @@ function it_default() {
50921
50918
  };
50922
50919
  }
50923
50920
 
50924
- // ../../AstraCode/editor/node_modules/zod/v4/locales/ja.js
50921
+ // ../editor/node_modules/zod/v4/locales/ja.js
50925
50922
  init_define_ASTRACODE_BUNDLED_SKILLS();
50926
50923
  var error24 = () => {
50927
50924
  const Sizable = {
@@ -51030,7 +51027,7 @@ function ja_default() {
51030
51027
  };
51031
51028
  }
51032
51029
 
51033
- // ../../AstraCode/editor/node_modules/zod/v4/locales/ka.js
51030
+ // ../editor/node_modules/zod/v4/locales/ka.js
51034
51031
  init_define_ASTRACODE_BUNDLED_SKILLS();
51035
51032
  var error25 = () => {
51036
51033
  const Sizable = {
@@ -51144,10 +51141,10 @@ function ka_default() {
51144
51141
  };
51145
51142
  }
51146
51143
 
51147
- // ../../AstraCode/editor/node_modules/zod/v4/locales/kh.js
51144
+ // ../editor/node_modules/zod/v4/locales/kh.js
51148
51145
  init_define_ASTRACODE_BUNDLED_SKILLS();
51149
51146
 
51150
- // ../../AstraCode/editor/node_modules/zod/v4/locales/km.js
51147
+ // ../editor/node_modules/zod/v4/locales/km.js
51151
51148
  init_define_ASTRACODE_BUNDLED_SKILLS();
51152
51149
  var error26 = () => {
51153
51150
  const Sizable = {
@@ -51259,12 +51256,12 @@ function km_default() {
51259
51256
  };
51260
51257
  }
51261
51258
 
51262
- // ../../AstraCode/editor/node_modules/zod/v4/locales/kh.js
51259
+ // ../editor/node_modules/zod/v4/locales/kh.js
51263
51260
  function kh_default() {
51264
51261
  return km_default();
51265
51262
  }
51266
51263
 
51267
- // ../../AstraCode/editor/node_modules/zod/v4/locales/ko.js
51264
+ // ../editor/node_modules/zod/v4/locales/ko.js
51268
51265
  init_define_ASTRACODE_BUNDLED_SKILLS();
51269
51266
  var error27 = () => {
51270
51267
  const Sizable = {
@@ -51377,7 +51374,7 @@ function ko_default() {
51377
51374
  };
51378
51375
  }
51379
51376
 
51380
- // ../../AstraCode/editor/node_modules/zod/v4/locales/lt.js
51377
+ // ../editor/node_modules/zod/v4/locales/lt.js
51381
51378
  init_define_ASTRACODE_BUNDLED_SKILLS();
51382
51379
  var capitalizeFirstCharacter = (text2) => {
51383
51380
  return text2.charAt(0).toUpperCase() + text2.slice(1);
@@ -51582,7 +51579,7 @@ function lt_default() {
51582
51579
  };
51583
51580
  }
51584
51581
 
51585
- // ../../AstraCode/editor/node_modules/zod/v4/locales/mk.js
51582
+ // ../editor/node_modules/zod/v4/locales/mk.js
51586
51583
  init_define_ASTRACODE_BUNDLED_SKILLS();
51587
51584
  var error29 = () => {
51588
51585
  const Sizable = {
@@ -51693,7 +51690,7 @@ function mk_default() {
51693
51690
  };
51694
51691
  }
51695
51692
 
51696
- // ../../AstraCode/editor/node_modules/zod/v4/locales/ms.js
51693
+ // ../editor/node_modules/zod/v4/locales/ms.js
51697
51694
  init_define_ASTRACODE_BUNDLED_SKILLS();
51698
51695
  var error30 = () => {
51699
51696
  const Sizable = {
@@ -51802,7 +51799,7 @@ function ms_default() {
51802
51799
  };
51803
51800
  }
51804
51801
 
51805
- // ../../AstraCode/editor/node_modules/zod/v4/locales/nl.js
51802
+ // ../editor/node_modules/zod/v4/locales/nl.js
51806
51803
  init_define_ASTRACODE_BUNDLED_SKILLS();
51807
51804
  var error31 = () => {
51808
51805
  const Sizable = {
@@ -51914,7 +51911,7 @@ function nl_default() {
51914
51911
  };
51915
51912
  }
51916
51913
 
51917
- // ../../AstraCode/editor/node_modules/zod/v4/locales/no.js
51914
+ // ../editor/node_modules/zod/v4/locales/no.js
51918
51915
  init_define_ASTRACODE_BUNDLED_SKILLS();
51919
51916
  var error32 = () => {
51920
51917
  const Sizable = {
@@ -52024,7 +52021,7 @@ function no_default() {
52024
52021
  };
52025
52022
  }
52026
52023
 
52027
- // ../../AstraCode/editor/node_modules/zod/v4/locales/ota.js
52024
+ // ../editor/node_modules/zod/v4/locales/ota.js
52028
52025
  init_define_ASTRACODE_BUNDLED_SKILLS();
52029
52026
  var error33 = () => {
52030
52027
  const Sizable = {
@@ -52135,7 +52132,7 @@ function ota_default() {
52135
52132
  };
52136
52133
  }
52137
52134
 
52138
- // ../../AstraCode/editor/node_modules/zod/v4/locales/ps.js
52135
+ // ../editor/node_modules/zod/v4/locales/ps.js
52139
52136
  init_define_ASTRACODE_BUNDLED_SKILLS();
52140
52137
  var error34 = () => {
52141
52138
  const Sizable = {
@@ -52251,7 +52248,7 @@ function ps_default() {
52251
52248
  };
52252
52249
  }
52253
52250
 
52254
- // ../../AstraCode/editor/node_modules/zod/v4/locales/pl.js
52251
+ // ../editor/node_modules/zod/v4/locales/pl.js
52255
52252
  init_define_ASTRACODE_BUNDLED_SKILLS();
52256
52253
  var error35 = () => {
52257
52254
  const Sizable = {
@@ -52362,7 +52359,7 @@ function pl_default() {
52362
52359
  };
52363
52360
  }
52364
52361
 
52365
- // ../../AstraCode/editor/node_modules/zod/v4/locales/pt.js
52362
+ // ../editor/node_modules/zod/v4/locales/pt.js
52366
52363
  init_define_ASTRACODE_BUNDLED_SKILLS();
52367
52364
  var error36 = () => {
52368
52365
  const Sizable = {
@@ -52472,7 +52469,7 @@ function pt_default() {
52472
52469
  };
52473
52470
  }
52474
52471
 
52475
- // ../../AstraCode/editor/node_modules/zod/v4/locales/ro.js
52472
+ // ../editor/node_modules/zod/v4/locales/ro.js
52476
52473
  init_define_ASTRACODE_BUNDLED_SKILLS();
52477
52474
  var error37 = () => {
52478
52475
  const Sizable = {
@@ -52593,7 +52590,7 @@ function ro_default() {
52593
52590
  };
52594
52591
  }
52595
52592
 
52596
- // ../../AstraCode/editor/node_modules/zod/v4/locales/ru.js
52593
+ // ../editor/node_modules/zod/v4/locales/ru.js
52597
52594
  init_define_ASTRACODE_BUNDLED_SKILLS();
52598
52595
  function getRussianPlural(count, one, few, many) {
52599
52596
  const absCount = Math.abs(count);
@@ -52751,7 +52748,7 @@ function ru_default() {
52751
52748
  };
52752
52749
  }
52753
52750
 
52754
- // ../../AstraCode/editor/node_modules/zod/v4/locales/sl.js
52751
+ // ../editor/node_modules/zod/v4/locales/sl.js
52755
52752
  init_define_ASTRACODE_BUNDLED_SKILLS();
52756
52753
  var error39 = () => {
52757
52754
  const Sizable = {
@@ -52862,7 +52859,7 @@ function sl_default() {
52862
52859
  };
52863
52860
  }
52864
52861
 
52865
- // ../../AstraCode/editor/node_modules/zod/v4/locales/sv.js
52862
+ // ../editor/node_modules/zod/v4/locales/sv.js
52866
52863
  init_define_ASTRACODE_BUNDLED_SKILLS();
52867
52864
  var error40 = () => {
52868
52865
  const Sizable = {
@@ -52974,7 +52971,7 @@ function sv_default() {
52974
52971
  };
52975
52972
  }
52976
52973
 
52977
- // ../../AstraCode/editor/node_modules/zod/v4/locales/ta.js
52974
+ // ../editor/node_modules/zod/v4/locales/ta.js
52978
52975
  init_define_ASTRACODE_BUNDLED_SKILLS();
52979
52976
  var error41 = () => {
52980
52977
  const Sizable = {
@@ -53086,7 +53083,7 @@ function ta_default() {
53086
53083
  };
53087
53084
  }
53088
53085
 
53089
- // ../../AstraCode/editor/node_modules/zod/v4/locales/th.js
53086
+ // ../editor/node_modules/zod/v4/locales/th.js
53090
53087
  init_define_ASTRACODE_BUNDLED_SKILLS();
53091
53088
  var error42 = () => {
53092
53089
  const Sizable = {
@@ -53198,7 +53195,7 @@ function th_default() {
53198
53195
  };
53199
53196
  }
53200
53197
 
53201
- // ../../AstraCode/editor/node_modules/zod/v4/locales/tr.js
53198
+ // ../editor/node_modules/zod/v4/locales/tr.js
53202
53199
  init_define_ASTRACODE_BUNDLED_SKILLS();
53203
53200
  var error43 = () => {
53204
53201
  const Sizable = {
@@ -53305,10 +53302,10 @@ function tr_default() {
53305
53302
  };
53306
53303
  }
53307
53304
 
53308
- // ../../AstraCode/editor/node_modules/zod/v4/locales/ua.js
53305
+ // ../editor/node_modules/zod/v4/locales/ua.js
53309
53306
  init_define_ASTRACODE_BUNDLED_SKILLS();
53310
53307
 
53311
- // ../../AstraCode/editor/node_modules/zod/v4/locales/uk.js
53308
+ // ../editor/node_modules/zod/v4/locales/uk.js
53312
53309
  init_define_ASTRACODE_BUNDLED_SKILLS();
53313
53310
  var error44 = () => {
53314
53311
  const Sizable = {
@@ -53418,12 +53415,12 @@ function uk_default() {
53418
53415
  };
53419
53416
  }
53420
53417
 
53421
- // ../../AstraCode/editor/node_modules/zod/v4/locales/ua.js
53418
+ // ../editor/node_modules/zod/v4/locales/ua.js
53422
53419
  function ua_default() {
53423
53420
  return uk_default();
53424
53421
  }
53425
53422
 
53426
- // ../../AstraCode/editor/node_modules/zod/v4/locales/ur.js
53423
+ // ../editor/node_modules/zod/v4/locales/ur.js
53427
53424
  init_define_ASTRACODE_BUNDLED_SKILLS();
53428
53425
  var error45 = () => {
53429
53426
  const Sizable = {
@@ -53535,7 +53532,7 @@ function ur_default() {
53535
53532
  };
53536
53533
  }
53537
53534
 
53538
- // ../../AstraCode/editor/node_modules/zod/v4/locales/uz.js
53535
+ // ../editor/node_modules/zod/v4/locales/uz.js
53539
53536
  init_define_ASTRACODE_BUNDLED_SKILLS();
53540
53537
  var error46 = () => {
53541
53538
  const Sizable = {
@@ -53647,7 +53644,7 @@ function uz_default() {
53647
53644
  };
53648
53645
  }
53649
53646
 
53650
- // ../../AstraCode/editor/node_modules/zod/v4/locales/vi.js
53647
+ // ../editor/node_modules/zod/v4/locales/vi.js
53651
53648
  init_define_ASTRACODE_BUNDLED_SKILLS();
53652
53649
  var error47 = () => {
53653
53650
  const Sizable = {
@@ -53757,7 +53754,7 @@ function vi_default() {
53757
53754
  };
53758
53755
  }
53759
53756
 
53760
- // ../../AstraCode/editor/node_modules/zod/v4/locales/zh-CN.js
53757
+ // ../editor/node_modules/zod/v4/locales/zh-CN.js
53761
53758
  init_define_ASTRACODE_BUNDLED_SKILLS();
53762
53759
  var error48 = () => {
53763
53760
  const Sizable = {
@@ -53868,7 +53865,7 @@ function zh_CN_default() {
53868
53865
  };
53869
53866
  }
53870
53867
 
53871
- // ../../AstraCode/editor/node_modules/zod/v4/locales/zh-TW.js
53868
+ // ../editor/node_modules/zod/v4/locales/zh-TW.js
53872
53869
  init_define_ASTRACODE_BUNDLED_SKILLS();
53873
53870
  var error49 = () => {
53874
53871
  const Sizable = {
@@ -53977,7 +53974,7 @@ function zh_TW_default() {
53977
53974
  };
53978
53975
  }
53979
53976
 
53980
- // ../../AstraCode/editor/node_modules/zod/v4/locales/yo.js
53977
+ // ../editor/node_modules/zod/v4/locales/yo.js
53981
53978
  init_define_ASTRACODE_BUNDLED_SKILLS();
53982
53979
  var error50 = () => {
53983
53980
  const Sizable = {
@@ -54086,7 +54083,7 @@ function yo_default() {
54086
54083
  };
54087
54084
  }
54088
54085
 
54089
- // ../../AstraCode/editor/node_modules/zod/v4/core/registries.js
54086
+ // ../editor/node_modules/zod/v4/core/registries.js
54090
54087
  init_define_ASTRACODE_BUNDLED_SKILLS();
54091
54088
  var _a3;
54092
54089
  var $output = /* @__PURE__ */ Symbol("ZodOutput");
@@ -54137,7 +54134,7 @@ function registry3() {
54137
54134
  (_a3 = globalThis).__zod_globalRegistry ?? (_a3.__zod_globalRegistry = registry3());
54138
54135
  var globalRegistry = globalThis.__zod_globalRegistry;
54139
54136
 
54140
- // ../../AstraCode/editor/node_modules/zod/v4/core/api.js
54137
+ // ../editor/node_modules/zod/v4/core/api.js
54141
54138
  init_define_ASTRACODE_BUNDLED_SKILLS();
54142
54139
  // @__NO_SIDE_EFFECTS__
54143
54140
  function _string(Class2, params) {
@@ -55177,7 +55174,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
55177
55174
  return inst;
55178
55175
  }
55179
55176
 
55180
- // ../../AstraCode/editor/node_modules/zod/v4/core/to-json-schema.js
55177
+ // ../editor/node_modules/zod/v4/core/to-json-schema.js
55181
55178
  init_define_ASTRACODE_BUNDLED_SKILLS();
55182
55179
  function initializeContext(params) {
55183
55180
  let target = params?.target ?? "draft-2020-12";
@@ -55537,7 +55534,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
55537
55534
  return finalize(ctx, schema);
55538
55535
  };
55539
55536
 
55540
- // ../../AstraCode/editor/node_modules/zod/v4/core/json-schema-processors.js
55537
+ // ../editor/node_modules/zod/v4/core/json-schema-processors.js
55541
55538
  init_define_ASTRACODE_BUNDLED_SKILLS();
55542
55539
  var formatMap = {
55543
55540
  guid: "uuid",
@@ -56082,7 +56079,7 @@ function toJSONSchema(input, params) {
56082
56079
  return finalize(ctx, input);
56083
56080
  }
56084
56081
 
56085
- // ../../AstraCode/editor/node_modules/zod/v4/core/json-schema-generator.js
56082
+ // ../editor/node_modules/zod/v4/core/json-schema-generator.js
56086
56083
  init_define_ASTRACODE_BUNDLED_SKILLS();
56087
56084
  var JSONSchemaGenerator = class {
56088
56085
  /** @deprecated Access via ctx instead */
@@ -56158,11 +56155,11 @@ var JSONSchemaGenerator = class {
56158
56155
  }
56159
56156
  };
56160
56157
 
56161
- // ../../AstraCode/editor/node_modules/zod/v4/core/json-schema.js
56158
+ // ../editor/node_modules/zod/v4/core/json-schema.js
56162
56159
  var json_schema_exports = {};
56163
56160
  init_define_ASTRACODE_BUNDLED_SKILLS();
56164
56161
 
56165
- // ../../AstraCode/editor/node_modules/zod/v4/classic/schemas.js
56162
+ // ../editor/node_modules/zod/v4/classic/schemas.js
56166
56163
  var schemas_exports2 = {};
56167
56164
  __export(schemas_exports2, {
56168
56165
  ZodAny: () => ZodAny,
@@ -56334,7 +56331,7 @@ __export(schemas_exports2, {
56334
56331
  });
56335
56332
  init_define_ASTRACODE_BUNDLED_SKILLS();
56336
56333
 
56337
- // ../../AstraCode/editor/node_modules/zod/v4/classic/checks.js
56334
+ // ../editor/node_modules/zod/v4/classic/checks.js
56338
56335
  var checks_exports2 = {};
56339
56336
  __export(checks_exports2, {
56340
56337
  endsWith: () => _endsWith,
@@ -56369,7 +56366,7 @@ __export(checks_exports2, {
56369
56366
  });
56370
56367
  init_define_ASTRACODE_BUNDLED_SKILLS();
56371
56368
 
56372
- // ../../AstraCode/editor/node_modules/zod/v4/classic/iso.js
56369
+ // ../editor/node_modules/zod/v4/classic/iso.js
56373
56370
  var iso_exports = {};
56374
56371
  __export(iso_exports, {
56375
56372
  ZodISODate: () => ZodISODate,
@@ -56411,10 +56408,10 @@ function duration2(params) {
56411
56408
  return _isoDuration(ZodISODuration, params);
56412
56409
  }
56413
56410
 
56414
- // ../../AstraCode/editor/node_modules/zod/v4/classic/parse.js
56411
+ // ../editor/node_modules/zod/v4/classic/parse.js
56415
56412
  init_define_ASTRACODE_BUNDLED_SKILLS();
56416
56413
 
56417
- // ../../AstraCode/editor/node_modules/zod/v4/classic/errors.js
56414
+ // ../editor/node_modules/zod/v4/classic/errors.js
56418
56415
  init_define_ASTRACODE_BUNDLED_SKILLS();
56419
56416
  var initializer2 = (inst, issues) => {
56420
56417
  $ZodError.init(inst, issues);
@@ -56455,7 +56452,7 @@ var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, {
56455
56452
  Parent: Error
56456
56453
  });
56457
56454
 
56458
- // ../../AstraCode/editor/node_modules/zod/v4/classic/parse.js
56455
+ // ../editor/node_modules/zod/v4/classic/parse.js
56459
56456
  var parse2 = /* @__PURE__ */ _parse(ZodRealError);
56460
56457
  var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
56461
56458
  var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
@@ -56469,7 +56466,7 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
56469
56466
  var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
56470
56467
  var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
56471
56468
 
56472
- // ../../AstraCode/editor/node_modules/zod/v4/classic/schemas.js
56469
+ // ../editor/node_modules/zod/v4/classic/schemas.js
56473
56470
  var _installedGroups = /* @__PURE__ */ new WeakMap();
56474
56471
  function _installLazyMethods(inst, group, methods2) {
56475
56472
  const proto = Object.getPrototypeOf(inst);
@@ -57759,7 +57756,7 @@ function preprocess(fn, schema) {
57759
57756
  });
57760
57757
  }
57761
57758
 
57762
- // ../../AstraCode/editor/node_modules/zod/v4/classic/compat.js
57759
+ // ../editor/node_modules/zod/v4/classic/compat.js
57763
57760
  init_define_ASTRACODE_BUNDLED_SKILLS();
57764
57761
  var ZodIssueCode = {
57765
57762
  invalid_type: "invalid_type",
@@ -57786,7 +57783,7 @@ var ZodFirstPartyTypeKind;
57786
57783
  /* @__PURE__ */ (function(ZodFirstPartyTypeKind2) {
57787
57784
  })(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
57788
57785
 
57789
- // ../../AstraCode/editor/node_modules/zod/v4/classic/from-json-schema.js
57786
+ // ../editor/node_modules/zod/v4/classic/from-json-schema.js
57790
57787
  init_define_ASTRACODE_BUNDLED_SKILLS();
57791
57788
  var z = {
57792
57789
  ...schemas_exports2,
@@ -58267,7 +58264,7 @@ function fromJSONSchema(schema, params) {
58267
58264
  return convertSchema(normalized, ctx);
58268
58265
  }
58269
58266
 
58270
- // ../../AstraCode/editor/node_modules/zod/v4/classic/coerce.js
58267
+ // ../editor/node_modules/zod/v4/classic/coerce.js
58271
58268
  var coerce_exports = {};
58272
58269
  __export(coerce_exports, {
58273
58270
  bigint: () => bigint3,
@@ -58293,10 +58290,10 @@ function date4(params) {
58293
58290
  return _coercedDate(ZodDate, params);
58294
58291
  }
58295
58292
 
58296
- // ../../AstraCode/editor/node_modules/zod/v4/classic/external.js
58293
+ // ../editor/node_modules/zod/v4/classic/external.js
58297
58294
  config2(en_default());
58298
58295
 
58299
- // ../../AstraCode/editor/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.js
58296
+ // ../editor/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.js
58300
58297
  var skippedItem = /* @__PURE__ */ Symbol("skippedItem");
58301
58298
  function defaultOnError(schema, fallback) {
58302
58299
  return schema.catch(fallback);
@@ -58359,7 +58356,7 @@ function vecSkipError(itemSchema) {
58359
58356
  return external_exports.array(itemSchema.catch(skippedItem)).transform((items) => items.filter((item) => item !== skippedItem));
58360
58357
  }
58361
58358
 
58362
- // ../../AstraCode/editor/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.js
58359
+ // ../editor/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.js
58363
58360
  var zRequestId = union([number2(), string2()]).nullable();
58364
58361
  var zSessionId = string2();
58365
58362
  var zWriteTextFileRequest = object({
@@ -59984,10 +59981,10 @@ var zCancelRequestNotification = object({
59984
59981
  _meta: defaultOnError(record2(string2(), unknown()).nullish(), () => void 0)
59985
59982
  });
59986
59983
 
59987
- // ../../AstraCode/editor/node_modules/@agentclientprotocol/sdk/dist/stream.js
59984
+ // ../editor/node_modules/@agentclientprotocol/sdk/dist/stream.js
59988
59985
  init_define_ASTRACODE_BUNDLED_SKILLS();
59989
59986
 
59990
- // ../../AstraCode/editor/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.js
59987
+ // ../editor/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.js
59991
59988
  init_define_ASTRACODE_BUNDLED_SKILLS();
59992
59989
  var CANCEL_REQUEST_METHOD = "$/cancel_request";
59993
59990
  function isRequestMessage(value) {
@@ -60910,7 +60907,7 @@ function protocolErrorResponse(error51) {
60910
60907
  };
60911
60908
  }
60912
60909
 
60913
- // ../../AstraCode/editor/node_modules/@agentclientprotocol/sdk/dist/line-buffer.js
60910
+ // ../editor/node_modules/@agentclientprotocol/sdk/dist/line-buffer.js
60914
60911
  init_define_ASTRACODE_BUNDLED_SKILLS();
60915
60912
  var newline = 10;
60916
60913
  var LineBuffer = class {
@@ -60964,7 +60961,7 @@ var LineBuffer = class {
60964
60961
  }
60965
60962
  };
60966
60963
 
60967
- // ../../AstraCode/editor/node_modules/@agentclientprotocol/sdk/dist/stream.js
60964
+ // ../editor/node_modules/@agentclientprotocol/sdk/dist/stream.js
60968
60965
  function ndJsonStream(output, input) {
60969
60966
  const textEncoder = new TextEncoder();
60970
60967
  const textDecoder = new TextDecoder();
@@ -61064,7 +61061,7 @@ function ndJsonStream(output, input) {
61064
61061
  return { readable: readable2, writable };
61065
61062
  }
61066
61063
 
61067
- // ../../AstraCode/editor/node_modules/@agentclientprotocol/sdk/dist/schema/guards.gen.js
61064
+ // ../editor/node_modules/@agentclientprotocol/sdk/dist/schema/guards.gen.js
61068
61065
  init_define_ASTRACODE_BUNDLED_SKILLS();
61069
61066
  var zGuardCreateElicitationRequestForm = zElicitationFormMode.and(object({ mode: literal("form") })).and(object({ message: string2() }));
61070
61067
  var zGuardCreateElicitationRequestUrl = zElicitationUrlMode.and(object({ mode: literal("url") })).and(object({ message: string2() }));
@@ -61083,7 +61080,7 @@ var zGuardCreateElicitationResponseCancel = object({
61083
61080
  action: literal("cancel")
61084
61081
  });
61085
61082
 
61086
- // ../../AstraCode/editor/node_modules/@agentclientprotocol/sdk/dist/acp.js
61083
+ // ../editor/node_modules/@agentclientprotocol/sdk/dist/acp.js
61087
61084
  function ndJsonStream2(output, input) {
61088
61085
  return ndJsonStream(output, input);
61089
61086
  }
@@ -62253,10 +62250,10 @@ function findRipgrep() {
62253
62250
  function keyFingerprint(key) {
62254
62251
  return (0, import_node_crypto10.createHash)("sha256").update(key).digest("hex").slice(0, 16);
62255
62252
  }
62256
- function identityFrom(token2, via) {
62253
+ function identityFrom(token, via) {
62257
62254
  if (via === "api-key") return { via };
62258
62255
  try {
62259
- const claims = JSON.parse(Buffer.from(token2.split(".")[1] ?? "", "base64url").toString("utf8"));
62256
+ const claims = JSON.parse(Buffer.from(token.split(".")[1] ?? "", "base64url").toString("utf8"));
62260
62257
  const str5 = (k) => typeof claims[k] === "string" && claims[k] ? claims[k] : void 0;
62261
62258
  return { via, email: str5("email") ?? str5("sub"), plan: str5("astracode_plan"), org: str5("org") };
62262
62259
  } catch {
@@ -62276,7 +62273,6 @@ async function openHost(opts) {
62276
62273
  if (!credential.ok) return { ok: false, message: credential.message, code: 2 };
62277
62274
  opts.log(`signed in with ${credential.source === "api-key" ? "ASTRACODE_API_KEY" : "the saved session"}`);
62278
62275
  const credentials = { ssoToken: credential.token };
62279
- useSearchToken(() => credentials.ssoToken);
62280
62276
  const catalogue2 = await fetchModelCatalogue(credentials);
62281
62277
  const auto = resolveAutoConfig({ mode: "balance" }, catalogue2, opts.log);
62282
62278
  const rules = await loadProjectRules();
@@ -63621,10 +63617,10 @@ async function uninstall(id, opts = {}) {
63621
63617
  if (!record3) throw new Error(`${id} is not installed`);
63622
63618
  if (record3.org === "required" && !opts.org)
63623
63619
  throw new Error(`${id} is required by your organisation and cannot be uninstalled`);
63624
- const secrets3 = pluginSecrets();
63625
- if (secrets3) {
63620
+ const secrets4 = pluginSecrets();
63621
+ if (secrets4) {
63626
63622
  for (const o of optionsOf(record3)) {
63627
- if (o.sensitive) await Promise.resolve(secrets3.delete(secretKey(id, o.key))).catch(() => void 0);
63623
+ if (o.sensitive) await Promise.resolve(secrets4.delete(secretKey(id, o.key))).catch(() => void 0);
63628
63624
  }
63629
63625
  }
63630
63626
  updateState((s) => {
@@ -68107,8 +68103,11 @@ ${lines2.join("\n\n")}
68107
68103
  // ../editor/src/cli/update.ts
68108
68104
  init_define_ASTRACODE_BUNDLED_SKILLS();
68109
68105
  var import_node_child_process20 = require("node:child_process");
68106
+ var fs53 = __toESM(require("node:fs"));
68107
+ var os20 = __toESM(require("node:os"));
68110
68108
  var path60 = __toESM(require("node:path"));
68111
68109
  var DEFAULT_INSTALLER = "https://astracode.io/install";
68110
+ var DEFAULT_WINDOWS_INSTALLER = "https://astracode.io/install.ps1";
68112
68111
  function cliReason(err2) {
68113
68112
  const status3 = err2.status;
68114
68113
  if (status3 === 407) return "a proxy needs you to sign in to it (HTTP 407)";
@@ -68152,7 +68151,8 @@ async function update2(current4) {
68152
68151
  return 0;
68153
68152
  }
68154
68153
  let script;
68155
- const installer = process.env.ASTRACODE_INSTALL_URL || DEFAULT_INSTALLER;
68154
+ const windows = process.platform === "win32";
68155
+ const installer = process.env.ASTRACODE_INSTALL_URL || (windows ? DEFAULT_WINDOWS_INSTALLER : DEFAULT_INSTALLER);
68156
68156
  try {
68157
68157
  script = await text(installer);
68158
68158
  } catch (err2) {
@@ -68163,6 +68163,7 @@ async function update2(current4) {
68163
68163
  process.stderr.write(`Updating astracode-agent ${current4} -> ${latest}
68164
68164
  `);
68165
68165
  const env5 = { ...process.env, ASTRACODE_VERSION: latest };
68166
+ if (windows) return runWindowsInstaller(script, env5);
68166
68167
  const versionDir = path60.dirname(process.execPath);
68167
68168
  if (VERSION_RE.test(path60.basename(versionDir)) && !process.env.ASTRACODE_DATA_DIR) {
68168
68169
  env5.ASTRACODE_DATA_DIR = path60.dirname(versionDir);
@@ -68178,10 +68179,37 @@ async function update2(current4) {
68178
68179
  child.stdin.end(script);
68179
68180
  });
68180
68181
  }
68182
+ function windowsPowerShellEnv(env5) {
68183
+ const out2 = { ...env5 };
68184
+ for (const key of Object.keys(out2)) if (key.toLowerCase() === "psmodulepath") delete out2[key];
68185
+ return out2;
68186
+ }
68187
+ function runWindowsInstaller(script, base) {
68188
+ const env5 = windowsPowerShellEnv(base);
68189
+ if (!env5.ASTRACODE_BIN_DIR) env5.ASTRACODE_BIN_DIR = path60.dirname(process.execPath);
68190
+ const dir = fs53.mkdtempSync(path60.join(os20.tmpdir(), "astracode-agent-update-"));
68191
+ const file2 = path60.join(dir, "install.ps1");
68192
+ fs53.writeFileSync(file2, script);
68193
+ env5.ASTRACODE_INSTALLER_FILE = file2;
68194
+ const command2 = "& ([scriptblock]::Create([IO.File]::ReadAllText($env:ASTRACODE_INSTALLER_FILE)))";
68195
+ return new Promise((resolve22) => {
68196
+ const done2 = (code) => {
68197
+ fs53.rmSync(dir, { recursive: true, force: true });
68198
+ resolve22(code);
68199
+ };
68200
+ const child = (0, import_node_child_process20.spawn)("powershell.exe", ["-NoProfile", "-NonInteractive", "-Command", command2], { env: env5, stdio: "inherit" });
68201
+ child.on("error", (err2) => {
68202
+ process.stderr.write(`astracode-agent: could not run the installer (${err2.message})
68203
+ `);
68204
+ done2(1);
68205
+ });
68206
+ child.on("close", (code) => done2(code ?? 1));
68207
+ });
68208
+ }
68181
68209
 
68182
68210
  // ../editor/src/cli/update-check.ts
68183
68211
  init_define_ASTRACODE_BUNDLED_SKILLS();
68184
- var fs53 = __toESM(require("node:fs"));
68212
+ var fs54 = __toESM(require("node:fs"));
68185
68213
  var path61 = __toESM(require("node:path"));
68186
68214
  var DAY_MS = 24 * 60 * 60 * 1e3;
68187
68215
  var FETCH_TIMEOUT_MS = 3e3;
@@ -68212,7 +68240,7 @@ function startUpdateCheck(current4, kind) {
68212
68240
  const file2 = path61.join(configDir(), "update-check.json");
68213
68241
  let cached4;
68214
68242
  try {
68215
- cached4 = JSON.parse(fs53.readFileSync(file2, "utf8"));
68243
+ cached4 = JSON.parse(fs54.readFileSync(file2, "utf8"));
68216
68244
  } catch {
68217
68245
  }
68218
68246
  const fresh = cached4 && cached4.kind === kind && Date.now() - cached4.checkedAt < DAY_MS && VERSION_RE.test(cached4.latest);
@@ -68220,8 +68248,8 @@ function startUpdateCheck(current4, kind) {
68220
68248
  (latest) => {
68221
68249
  if (latest) {
68222
68250
  try {
68223
- fs53.mkdirSync(path61.dirname(file2), { recursive: true, mode: 448 });
68224
- fs53.writeFileSync(file2, JSON.stringify({ checkedAt: Date.now(), latest, kind }));
68251
+ fs54.mkdirSync(path61.dirname(file2), { recursive: true, mode: 448 });
68252
+ fs54.writeFileSync(file2, JSON.stringify({ checkedAt: Date.now(), latest, kind }));
68225
68253
  } catch {
68226
68254
  }
68227
68255
  }
@@ -68249,9 +68277,9 @@ function eventsUrl(url2) {
68249
68277
  return `${url2.replace(/\/+$/, "")}/events`;
68250
68278
  }
68251
68279
  var RunReporter = class {
68252
- constructor(url2, token2, opts = {}) {
68280
+ constructor(url2, token, opts = {}) {
68253
68281
  this.url = url2;
68254
- this.token = token2;
68282
+ this.token = token;
68255
68283
  this.opts = opts;
68256
68284
  this.fetchImpl = opts.fetch ?? fetch;
68257
68285
  }
@@ -68358,7 +68386,7 @@ var RunReporter = class {
68358
68386
 
68359
68387
  // ../editor/src/cli/main.ts
68360
68388
  var readline5 = __toESM(require("node:readline"));
68361
- var VERSION2 = true ? "0.5.1" : "dev";
68389
+ var VERSION2 = true ? "0.5.2" : "dev";
68362
68390
  function readStdin() {
68363
68391
  return new Promise((resolve22, reject) => {
68364
68392
  const chunks = [];