astracode-agent 0.5.0 → 0.5.1

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.
@@ -439,7 +439,7 @@ var require_shim_vscode = __commonJS({
439
439
  }
440
440
  });
441
441
 
442
- // ../editor/node_modules/@anthropic-ai/sdk/internal/tslib.mjs
442
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/internal/tslib.mjs"() {
460
+ "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/tslib.mjs"() {
461
461
  init_define_ASTRACODE_BUNDLED_SKILLS();
462
462
  }
463
463
  });
464
464
 
465
- // ../editor/node_modules/@anthropic-ai/sdk/internal/utils/uuid.mjs
465
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/utils/uuid.mjs
466
466
  var uuid4;
467
467
  var init_uuid = __esm({
468
- "../editor/node_modules/@anthropic-ai/sdk/internal/utils/uuid.mjs"() {
468
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/internal/errors.mjs
483
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/internal/errors.mjs"() {
491
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/core/error.mjs
520
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/core/error.mjs"() {
523
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/internal/utils/values.mjs
627
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/internal/utils/values.mjs"() {
649
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/internal/utils/sleep.mjs
677
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/utils/sleep.mjs
678
678
  var sleep;
679
679
  var init_sleep = __esm({
680
- "../editor/node_modules/@anthropic-ai/sdk/internal/utils/sleep.mjs"() {
680
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/version.mjs
698
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/version.mjs
699
699
  var VERSION;
700
700
  var init_version = __esm({
701
- "../editor/node_modules/@anthropic-ai/sdk/version.mjs"() {
701
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/internal/detect-platform.mjs
707
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/internal/detect-platform.mjs"() {
745
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/internal/request-signal.mjs
847
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/internal/request-signal.mjs"() {
868
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/internal/shims.mjs
875
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/internal/shims.mjs"() {
947
+ "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/shims.mjs"() {
948
948
  init_define_ASTRACODE_BUNDLED_SKILLS();
949
949
  }
950
950
  });
951
951
 
952
- // ../editor/node_modules/@anthropic-ai/sdk/internal/request-options.mjs
952
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/request-options.mjs
953
953
  var FallbackEncoder;
954
954
  var init_request_options = __esm({
955
- "../editor/node_modules/@anthropic-ai/sdk/internal/request-options.mjs"() {
955
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/internal/qs/formats.mjs
968
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/internal/qs/formats.mjs"() {
971
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/internal/qs/utils.mjs
983
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/internal/qs/utils.mjs"() {
1002
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/internal/qs/stringify.mjs
1070
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/internal/qs/stringify.mjs"() {
1310
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/internal/utils/query.mjs
1356
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/internal/utils/query.mjs"() {
1361
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/lib/credentials/types.mjs
1367
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/credentials/types.mjs
1368
1368
  function requireSecureTokenEndpoint(baseURL) {
1369
1369
  if (!baseURL)
1370
1370
  return;
@@ -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
- "../editor/node_modules/@anthropic-ai/sdk/lib/credentials/types.mjs"() {
1514
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/internal/utils/time.mjs
1539
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/internal/utils/time.mjs"() {
1544
+ "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/utils/time.mjs"() {
1545
1545
  init_define_ASTRACODE_BUNDLED_SKILLS();
1546
1546
  }
1547
1547
  });
1548
1548
 
1549
- // ../editor/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.mjs
1549
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.mjs
1550
1550
  var TokenCache;
1551
1551
  var init_token_cache = __esm({
1552
- "../editor/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.mjs"() {
1552
+ "../../AstraCode/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 token2 = await this.refresh(force);
1571
- return token2.token;
1570
+ const token3 = await this.refresh(force);
1571
+ return token3.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 token = await this.refresh();
1585
- return token.token;
1584
+ const token2 = await this.refresh();
1585
+ return token2.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((token) => {
1633
- this.cached = token;
1632
+ this.pendingRefresh = this.provider(force ? { forceRefresh: true } : void 0).then((token2) => {
1633
+ this.cached = token2;
1634
1634
  this.pendingRefresh = null;
1635
- return token;
1635
+ return token2;
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
- // ../editor/node_modules/@anthropic-ai/sdk/internal/utils/env.mjs
1646
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/utils/env.mjs
1647
1647
  var readEnv;
1648
1648
  var init_env = __esm({
1649
- "../editor/node_modules/@anthropic-ai/sdk/internal/utils/env.mjs"() {
1649
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/internal/utils/bytes.mjs
1663
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/internal/utils/bytes.mjs"() {
1687
+ "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/utils/bytes.mjs"() {
1688
1688
  init_define_ASTRACODE_BUNDLED_SKILLS();
1689
1689
  }
1690
1690
  });
1691
1691
 
1692
- // ../editor/node_modules/@anthropic-ai/sdk/internal/utils/base64.mjs
1692
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/utils/base64.mjs
1693
1693
  var fromBase64;
1694
1694
  var init_base64 = __esm({
1695
- "../editor/node_modules/@anthropic-ai/sdk/internal/utils/base64.mjs"() {
1695
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/internal/utils/log.mjs
1717
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/internal/utils/log.mjs"() {
1759
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/internal/utils.mjs
1810
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/utils.mjs
1811
1811
  var init_utils2 = __esm({
1812
- "../editor/node_modules/@anthropic-ai/sdk/internal/utils.mjs"() {
1812
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/core/credentials.mjs
1824
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/core/credentials.mjs"() {
1841
+ "../../AstraCode/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();
@@ -2003,7 +2003,7 @@ var init_credentials = __esm({
2003
2003
  }
2004
2004
  });
2005
2005
 
2006
- // ../editor/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.mjs
2006
+ // ../../AstraCode/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");
@@ -2016,27 +2016,27 @@ function identityTokenFromFile(path63) {
2016
2016
  } catch (err2) {
2017
2017
  throw new AnthropicError(`Failed to read identity token file at ${path63}: ${err2}`);
2018
2018
  }
2019
- const token = content.trim();
2020
- if (!token) {
2019
+ const token2 = content.trim();
2020
+ if (!token2) {
2021
2021
  throw new AnthropicError(`Identity token file at ${path63} is empty`);
2022
2022
  }
2023
- return token;
2023
+ return token2;
2024
2024
  };
2025
2025
  }
2026
- function identityTokenFromValue(token) {
2027
- if (!token) {
2026
+ function identityTokenFromValue(token2) {
2027
+ if (!token2) {
2028
2028
  throw new AnthropicError("Identity token value is empty");
2029
2029
  }
2030
- return () => token;
2030
+ return () => token2;
2031
2031
  }
2032
2032
  var init_identity_token = __esm({
2033
- "../editor/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.mjs"() {
2033
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.mjs
2039
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.mjs"() {
2097
+ "../../AstraCode/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,7 +2102,7 @@ var init_oidc_federation = __esm({
2102
2102
  }
2103
2103
  });
2104
2104
 
2105
- // ../editor/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.mjs
2105
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.mjs
2106
2106
  function userOAuthProvider(config3) {
2107
2107
  return async (opts) => {
2108
2108
  const fs54 = await import("node:fs");
@@ -2176,7 +2176,7 @@ function userOAuthProvider(config3) {
2176
2176
  };
2177
2177
  }
2178
2178
  var init_user_oauth = __esm({
2179
- "../editor/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.mjs"() {
2179
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.mjs
2188
+ // ../../AstraCode/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(/\/+$/, "");
@@ -2288,11 +2288,11 @@ function cachedExchangeProvider(exchange2, credentialsPath, onCacheWriteError, o
2288
2288
  try {
2289
2289
  const raw = await fs54.promises.readFile(credentialsPath, "utf-8");
2290
2290
  existing = JSON.parse(raw);
2291
- const token = existing?.["access_token"];
2292
- if (token && !opts?.forceRefresh) {
2291
+ const token2 = existing?.["access_token"];
2292
+ if (token2 && !opts?.forceRefresh) {
2293
2293
  const expiresAt = existing?.["expires_at"];
2294
2294
  if (expiresAt == null || nowAsSeconds() < expiresAt - MANDATORY_REFRESH_THRESHOLD_IN_SECONDS) {
2295
- return { token, expiresAt: expiresAt ?? null };
2295
+ return { token: token2, 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
- "../editor/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.mjs"() {
2320
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/internal/decoders/line.mjs
2332
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/internal/decoders/line.mjs"() {
2364
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/core/streaming.mjs
2415
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/core/streaming.mjs"() {
2470
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/internal/parse.mjs
2695
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/internal/parse.mjs"() {
2746
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/core/middleware.mjs
2754
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/core/middleware.mjs"() {
2850
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/core/api-promise.mjs
2861
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/core/api-promise.mjs
2862
2862
  var _APIPromise_client, APIPromise;
2863
2863
  var init_api_promise = __esm({
2864
- "../editor/node_modules/@anthropic-ai/sdk/core/api-promise.mjs"() {
2864
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/core/pagination.mjs
2936
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/core/pagination.mjs"() {
2939
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/internal/uploads.mjs
3095
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/internal/uploads.mjs"() {
3126
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/internal/to-file.mjs
3180
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/internal/to-file.mjs"() {
3234
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/core/uploads.mjs
3244
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/core/uploads.mjs
3245
3245
  var init_uploads2 = __esm({
3246
- "../editor/node_modules/@anthropic-ai/sdk/core/uploads.mjs"() {
3246
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/resources/shared.mjs
3252
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/shared.mjs
3253
3253
  var init_shared = __esm({
3254
- "../editor/node_modules/@anthropic-ai/sdk/resources/shared.mjs"() {
3254
+ "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/shared.mjs"() {
3255
3255
  init_define_ASTRACODE_BUNDLED_SKILLS();
3256
3256
  }
3257
3257
  });
3258
3258
 
3259
- // ../editor/node_modules/@anthropic-ai/sdk/core/resource.mjs
3259
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/core/resource.mjs
3260
3260
  var APIResource;
3261
3261
  var init_resource = __esm({
3262
- "../editor/node_modules/@anthropic-ai/sdk/core/resource.mjs"() {
3262
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/internal/headers.mjs
3272
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/internal/headers.mjs"() {
3313
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/internal/utils/path.mjs
3366
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/internal/utils/path.mjs"() {
3372
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.mjs
3428
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.mjs
3429
3429
  var DeploymentRuns;
3430
3430
  var init_deployment_runs = __esm({
3431
- "../editor/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.mjs"() {
3431
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/deployments.mjs
3485
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/deployments.mjs
3486
3486
  var Deployments;
3487
3487
  var init_deployments = __esm({
3488
- "../editor/node_modules/@anthropic-ai/sdk/resources/beta/deployments.mjs"() {
3488
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/dreams.mjs
3683
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/dreams.mjs
3684
3684
  var Dreams;
3685
3685
  var init_dreams = __esm({
3686
- "../editor/node_modules/@anthropic-ai/sdk/resources/beta/dreams.mjs"() {
3686
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/internal/stainless-helper-header.mjs
3801
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/internal/stainless-helper-header.mjs"() {
3848
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/files.mjs
3856
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/files.mjs
3857
3857
  var Files;
3858
3858
  var init_files = __esm({
3859
- "../editor/node_modules/@anthropic-ai/sdk/resources/beta/files.mjs"() {
3859
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/models.mjs
3982
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/models.mjs
3983
3983
  var Models;
3984
3984
  var init_models = __esm({
3985
- "../editor/node_modules/@anthropic-ai/sdk/resources/beta/models.mjs"() {
3985
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.mjs
4044
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.mjs
4045
4045
  var UserProfiles;
4046
4046
  var init_user_profiles = __esm({
4047
- "../editor/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.mjs"() {
4047
+ "../../AstraCode/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
- // ../editor/node_modules/standardwebhooks/dist/timing_safe_equal.js
4164
+ // ../../AstraCode/editor/node_modules/standardwebhooks/dist/timing_safe_equal.js
4165
4165
  var require_timing_safe_equal = __commonJS({
4166
- "../editor/node_modules/standardwebhooks/dist/timing_safe_equal.js"(exports2) {
4166
+ "../../AstraCode/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
- // ../editor/node_modules/@stablelib/base64/lib/base64.js
4200
+ // ../../AstraCode/editor/node_modules/@stablelib/base64/lib/base64.js
4201
4201
  var require_base64 = __commonJS({
4202
- "../editor/node_modules/@stablelib/base64/lib/base64.js"(exports2) {
4202
+ "../../AstraCode/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
- // ../editor/node_modules/fast-sha256/sha256.js
4414
+ // ../../AstraCode/editor/node_modules/fast-sha256/sha256.js
4415
4415
  var require_sha256 = __commonJS({
4416
- "../editor/node_modules/fast-sha256/sha256.js"(exports2, module2) {
4416
+ "../../AstraCode/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
- // ../editor/node_modules/standardwebhooks/dist/index.js
4839
+ // ../../AstraCode/editor/node_modules/standardwebhooks/dist/index.js
4840
4840
  var require_dist = __commonJS({
4841
- "../editor/node_modules/standardwebhooks/dist/index.js"(exports2) {
4841
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.mjs
4947
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.mjs
4948
4948
  var import_standardwebhooks, Webhooks;
4949
4949
  var init_webhooks = __esm({
4950
- "../editor/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.mjs"() {
4950
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/agents/versions.mjs
4969
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/agents/versions.mjs
4970
4970
  var Versions;
4971
4971
  var init_versions = __esm({
4972
- "../editor/node_modules/@anthropic-ai/sdk/resources/beta/agents/versions.mjs"() {
4972
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.mjs
5007
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.mjs
5008
5008
  var Agents;
5009
5009
  var init_agents = __esm({
5010
- "../editor/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.mjs"() {
5010
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/internal/utils/abort.mjs
5139
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/internal/utils/abort.mjs"() {
5154
+ "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/utils/abort.mjs"() {
5155
5155
  init_define_ASTRACODE_BUNDLED_SKILLS();
5156
5156
  }
5157
5157
  });
5158
5158
 
5159
- // ../editor/node_modules/@anthropic-ai/sdk/internal/utils/backoff.mjs
5159
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/internal/utils/backoff.mjs"() {
5179
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/lib/helper-client.mjs
5185
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/lib/helper-client.mjs"() {
5211
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/lib/environments/poller.mjs
5219
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/lib/environments/poller.mjs"() {
5230
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.mjs
5384
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.mjs"() {
5387
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/lib/tools/ToolError.mjs
5454
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/tools/ToolError.mjs
5455
5455
  var ToolError;
5456
5456
  var init_ToolError = __esm({
5457
- "../editor/node_modules/@anthropic-ai/sdk/lib/tools/ToolError.mjs"() {
5457
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.mjs
5474
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.mjs"() {
5491
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.mjs
5497
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.mjs"() {
5530
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/tools/agent-toolset/sync-interval.mjs
6030
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/tools/agent-toolset/sync-interval.mjs"() {
6038
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/lib/transform-json-schema.mjs
6046
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/transform-json-schema.mjs
6047
6047
  var init_transform_json_schema = __esm({
6048
- "../editor/node_modules/@anthropic-ai/sdk/lib/transform-json-schema.mjs"() {
6048
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.mjs
6054
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.mjs"() {
6070
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/internal/utils/promise.mjs
6077
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/internal/utils/promise.mjs"() {
6088
+ "../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/utils/promise.mjs"() {
6089
6089
  init_define_ASTRACODE_BUNDLED_SKILLS();
6090
6090
  }
6091
6091
  });
6092
6092
 
6093
- // ../editor/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.mjs
6093
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.mjs"() {
6205
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.mjs
6217
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.mjs"() {
6421
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/internal/file-store.mjs
6439
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/internal/file-store.mjs"() {
6621
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.mjs
6883
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.mjs"() {
6911
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.mjs
7599
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.mjs"() {
8072
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/lib/environments/worker.mjs
8227
+ // ../../AstraCode/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 token = parsed.sessions_token;
8245
- return typeof token === "string" && token !== "" ? token : null;
8244
+ const token2 = parsed.sessions_token;
8245
+ return typeof token2 === "string" && token2 !== "" ? token2 : 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
- "../editor/node_modules/@anthropic-ai/sdk/lib/environments/worker.mjs"() {
8354
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.mjs
8639
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.mjs
8640
8640
  var Work;
8641
8641
  var init_work = __esm({
8642
- "../editor/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.mjs"() {
8642
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.mjs
8896
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.mjs
8897
8897
  var Environments;
8898
8898
  var init_environments = __esm({
8899
- "../editor/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.mjs"() {
8899
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.mjs
9047
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.mjs
9048
9048
  var Memories;
9049
9049
  var init_memories2 = __esm({
9050
- "../editor/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.mjs"() {
9050
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.mjs
9179
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.mjs"() {
9182
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.mjs
9262
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.mjs"() {
9265
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/error.mjs
9408
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/error.mjs
9409
9409
  var init_error2 = __esm({
9410
- "../editor/node_modules/@anthropic-ai/sdk/error.mjs"() {
9410
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.mjs
9416
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.mjs
9417
9417
  var JSONLDecoder;
9418
9418
  var init_jsonl = __esm({
9419
- "../editor/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.mjs"() {
9419
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.mjs
9457
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.mjs
9458
9458
  var Batches;
9459
9459
  var init_batches = __esm({
9460
- "../editor/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.mjs"() {
9460
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/internal/constants.mjs
9664
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/internal/constants.mjs
9665
9665
  var MODEL_NONSTREAMING_TOKENS;
9666
9666
  var init_constants = __esm({
9667
- "../editor/node_modules/@anthropic-ai/sdk/internal/constants.mjs"() {
9667
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/lib/beta-parser.mjs
9677
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/lib/beta-parser.mjs"() {
9750
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/streaming.mjs
9756
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/streaming.mjs
9757
9757
  var init_streaming2 = __esm({
9758
- "../editor/node_modules/@anthropic-ai/sdk/streaming.mjs"() {
9758
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.mjs
9764
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.mjs"() {
9767
+ "../../AstraCode/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((token) => {
9942
- if (token.type === "brace") {
9943
- if (token.value === "{") {
9941
+ tokens.map((token2) => {
9942
+ if (token2.type === "brace") {
9943
+ if (token2.value === "{") {
9944
9944
  tail2.push("}");
9945
9945
  } else {
9946
9946
  tail2.splice(tail2.lastIndexOf("}"), 1);
9947
9947
  }
9948
9948
  }
9949
- if (token.type === "paren") {
9950
- if (token.value === "[") {
9949
+ if (token2.type === "paren") {
9950
+ if (token2.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((token) => {
9977
- switch (token.type) {
9976
+ tokens.map((token2) => {
9977
+ switch (token2.type) {
9978
9978
  case "string":
9979
- output += '"' + token.value + '"';
9979
+ output += '"' + token2.value + '"';
9980
9980
  break;
9981
9981
  default:
9982
- output += token.value;
9982
+ output += token2.value;
9983
9983
  break;
9984
9984
  }
9985
9985
  });
@@ -9989,7 +9989,7 @@ var init_parser = __esm({
9989
9989
  }
9990
9990
  });
9991
9991
 
9992
- // ../editor/node_modules/@anthropic-ai/sdk/internal/message-stream-utils.mjs
9992
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/internal/message-stream-utils.mjs"() {
10017
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.mjs
10024
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.mjs"() {
10032
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/lib/tools/CompactionControl.mjs
10660
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/lib/tools/CompactionControl.mjs"() {
10663
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.mjs
10692
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.mjs"() {
10789
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.mjs
11099
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.mjs"() {
11118
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.mjs
11246
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.mjs
11247
11247
  var Events;
11248
11248
  var init_events = __esm({
11249
- "../editor/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.mjs"() {
11249
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/sessions/resources.mjs
11367
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/sessions/resources.mjs
11368
11368
  var Resources;
11369
11369
  var init_resources = __esm({
11370
- "../editor/node_modules/@anthropic-ai/sdk/resources/beta/sessions/resources.mjs"() {
11370
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.mjs
11501
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.mjs
11502
11502
  var Events2;
11503
11503
  var init_events2 = __esm({
11504
- "../editor/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.mjs"() {
11504
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.mjs
11564
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.mjs
11565
11565
  var Threads;
11566
11566
  var init_threads = __esm({
11567
- "../editor/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.mjs"() {
11567
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.mjs
11653
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.mjs
11654
11654
  var Sessions;
11655
11655
  var init_sessions = __esm({
11656
- "../editor/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.mjs"() {
11656
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.mjs
11812
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.mjs
11813
11813
  var Versions2;
11814
11814
  var init_versions2 = __esm({
11815
- "../editor/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.mjs"() {
11815
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.mjs
11943
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.mjs
11944
11944
  var Skills;
11945
11945
  var init_skills2 = __esm({
11946
- "../editor/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.mjs"() {
11946
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.mjs
12044
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.mjs
12045
12045
  var Certificates;
12046
12046
  var init_certificates = __esm({
12047
- "../editor/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.mjs"() {
12047
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.mjs
12175
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.mjs
12176
12176
  var Tunnels;
12177
12177
  var init_tunnels = __esm({
12178
- "../editor/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.mjs"() {
12178
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.mjs
12357
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.mjs
12358
12358
  var Credentials;
12359
12359
  var init_credentials2 = __esm({
12360
- "../editor/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.mjs"() {
12360
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.mjs
12536
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.mjs
12537
12537
  var Vaults;
12538
12538
  var init_vaults = __esm({
12539
- "../editor/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.mjs"() {
12539
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs
12686
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs
12687
12687
  var Beta;
12688
12688
  var init_beta = __esm({
12689
- "../editor/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs"() {
12689
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/resources/completions.mjs
12760
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/completions.mjs
12761
12761
  var Completions;
12762
12762
  var init_completions = __esm({
12763
- "../editor/node_modules/@anthropic-ai/sdk/resources/completions.mjs"() {
12763
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/resources/files.mjs
12785
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/files.mjs
12786
12786
  var Files2;
12787
12787
  var init_files2 = __esm({
12788
- "../editor/node_modules/@anthropic-ai/sdk/resources/files.mjs"() {
12788
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/lib/parser.mjs
12839
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/lib/parser.mjs"() {
12900
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs
12906
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs"() {
12914
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/resources/messages/batches.mjs
13497
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/messages/batches.mjs
13498
13498
  var Batches2;
13499
13499
  var init_batches2 = __esm({
13500
- "../editor/node_modules/@anthropic-ai/sdk/resources/messages/batches.mjs"() {
13500
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/resources/messages/messages.mjs
13658
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/resources/messages/messages.mjs"() {
13661
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/resources/models.mjs
13784
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/models.mjs
13785
13785
  var Models2;
13786
13786
  var init_models2 = __esm({
13787
- "../editor/node_modules/@anthropic-ai/sdk/resources/models.mjs"() {
13787
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/resources/skills/versions.mjs
13831
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/skills/versions.mjs
13832
13832
  var Versions3;
13833
13833
  var init_versions3 = __esm({
13834
- "../editor/node_modules/@anthropic-ai/sdk/resources/skills/versions.mjs"() {
13834
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/resources/skills/skills.mjs
13874
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/skills/skills.mjs
13875
13875
  var Skills2;
13876
13876
  var init_skills3 = __esm({
13877
- "../editor/node_modules/@anthropic-ai/sdk/resources/skills/skills.mjs"() {
13877
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/resources/index.mjs
13919
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/resources/index.mjs
13920
13920
  var init_resources2 = __esm({
13921
- "../editor/node_modules/@anthropic-ai/sdk/resources/index.mjs"() {
13921
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/client.mjs
13933
+ // ../../AstraCode/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
- "../editor/node_modules/@anthropic-ai/sdk/client.mjs"() {
13936
+ "../../AstraCode/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 token = await this._authState.tokenCache.getToken();
14253
+ const token2 = await this._authState.tokenCache.getToken();
14254
14254
  this._authFlags(opts).usedTokenCache = true;
14255
- return buildHeaders([{ Authorization: `Bearer ${token}` }]);
14255
+ return buildHeaders([{ Authorization: `Bearer ${token2}` }]);
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
- // ../editor/node_modules/@anthropic-ai/sdk/lib/middleware.mjs
14732
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/lib/middleware.mjs
14733
14733
  var encoder;
14734
14734
  var init_middleware2 = __esm({
14735
- "../editor/node_modules/@anthropic-ai/sdk/lib/middleware.mjs"() {
14735
+ "../../AstraCode/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
- // ../editor/node_modules/@anthropic-ai/sdk/index.mjs
14748
+ // ../../AstraCode/editor/node_modules/@anthropic-ai/sdk/index.mjs
14749
14749
  var init_sdk = __esm({
14750
- "../editor/node_modules/@anthropic-ai/sdk/index.mjs"() {
14750
+ "../../AstraCode/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
- // ../editor/node_modules/@vscode/tree-sitter-wasm/wasm/tree-sitter.js
14762
+ // ../../AstraCode/editor/node_modules/@vscode/tree-sitter-wasm/wasm/tree-sitter.js
14763
14763
  var require_tree_sitter = __commonJS({
14764
- "../editor/node_modules/@vscode/tree-sitter-wasm/wasm/tree-sitter.js"(exports, module) {
14764
+ "../../AstraCode/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());
@@ -18983,7 +18983,8 @@ function asClaudePayload(payload) {
18983
18983
  const i2 = input;
18984
18984
  if (typeof i2.path === "string" && i2.file_path === void 0) {
18985
18985
  const root2 = typeof payload.cwd === "string" && payload.cwd ? payload.cwd : "";
18986
- const abs = /^([\\/]|[A-Za-z]:)/.test(i2.path) || !root2 ? i2.path : `${root2.replace(/[\\/]+$/, "")}/${i2.path}`;
18986
+ const win = /^[A-Za-z]:\\|^\\\\/.test(root2);
18987
+ const abs = /^([\\/]|[A-Za-z]:)/.test(i2.path) || !root2 ? i2.path : `${root2.replace(/[\\/]+$/, "")}${win ? "\\" : "/"}${win ? i2.path.replace(/\//g, "\\") : i2.path}`;
18987
18988
  out2.tool_input = { ...i2, file_path: abs };
18988
18989
  }
18989
18990
  }
@@ -21568,10 +21569,10 @@ var MAX_BODY = 32 * 1024;
21568
21569
  var MAX_FILE = 4 * 1024 * 1024;
21569
21570
  var IDLE_MS = 2 * 60 * 60 * 1e3;
21570
21571
  var DebugSink = class _DebugSink {
21571
- constructor(server, port, token, file2, onClose) {
21572
+ constructor(server, port, token2, file2, onClose) {
21572
21573
  this.server = server;
21573
21574
  this.port = port;
21574
- this.token = token;
21575
+ this.token = token2;
21575
21576
  this.file = file2;
21576
21577
  this.onClose = onClose;
21577
21578
  this.touch();
@@ -21586,8 +21587,8 @@ var DebugSink = class _DebugSink {
21586
21587
  static async start(dir = path7.join(os3.tmpdir(), "astracode-debug"), onClose = () => {
21587
21588
  }) {
21588
21589
  fs9.mkdirSync(dir, { recursive: true, mode: 448 });
21589
- const token = (0, import_node_crypto.randomBytes)(16).toString("hex");
21590
- const file2 = path7.join(dir, `${token}.ndjson`);
21590
+ const token2 = (0, import_node_crypto.randomBytes)(16).toString("hex");
21591
+ const file2 = path7.join(dir, `${token2}.ndjson`);
21591
21592
  fs9.writeFileSync(file2, "", { mode: 384 });
21592
21593
  const ready = {};
21593
21594
  const server = http.createServer((req, res) => ready.sink?.handle(req, res));
@@ -21597,7 +21598,7 @@ var DebugSink = class _DebugSink {
21597
21598
  });
21598
21599
  server.unref();
21599
21600
  const port = server.address().port;
21600
- ready.sink = new _DebugSink(server, port, token, file2, onClose);
21601
+ ready.sink = new _DebugSink(server, port, token2, file2, onClose);
21601
21602
  return ready.sink;
21602
21603
  }
21603
21604
  /** Where code that can make a request posts. */
@@ -24744,14 +24745,14 @@ function parseGitHubRemote(url2) {
24744
24745
  if (!m) return void 0;
24745
24746
  return { owner: m[1], repo: m[2] };
24746
24747
  }
24747
- function githubClient(token, fetchImpl = fetch, base = "https://api.github.com") {
24748
+ function githubClient(token2, fetchImpl = fetch, base = "https://api.github.com") {
24748
24749
  return {
24749
24750
  async request(method, path63, body2) {
24750
24751
  const res = await fetchImpl(`${base}${path63}`, {
24751
24752
  method,
24752
24753
  headers: {
24753
24754
  accept: "application/vnd.github+json",
24754
- authorization: `Bearer ${token}`,
24755
+ authorization: `Bearer ${token2}`,
24755
24756
  "x-github-api-version": "2022-11-28",
24756
24757
  "user-agent": "AstraCode",
24757
24758
  ...body2 !== void 0 ? { "content-type": "application/json" } : {}
@@ -24934,9 +24935,9 @@ var RemotePoller = class {
24934
24935
  return { state: "failed", reason: `the workflow run ended ${conclusion ?? "without a conclusion"}` };
24935
24936
  }
24936
24937
  };
24937
- function gatewayRuns(gatewayUrl2, token, fetchImpl = fetch) {
24938
+ function gatewayRuns(gatewayUrl2, token2, fetchImpl = fetch) {
24938
24939
  const base = gatewayUrl2.replace(/\/+$/, "");
24939
- const headers = { authorization: `Bearer ${token}`, "content-type": "application/json" };
24940
+ const headers = { authorization: `Bearer ${token2}`, "content-type": "application/json" };
24940
24941
  return {
24941
24942
  /**
24942
24943
  * Claim the run before dispatching it, so only this person can read it.
@@ -27612,12 +27613,12 @@ function progressTokenFor(id) {
27612
27613
  }
27613
27614
  function progressTokenOf(message) {
27614
27615
  if (message.method !== "notifications/progress") return void 0;
27615
- const token = message.params?.progressToken;
27616
- return typeof token === "string" || typeof token === "number" ? token : void 0;
27616
+ const token2 = message.params?.progressToken;
27617
+ return typeof token2 === "string" || typeof token2 === "number" ? token2 : void 0;
27617
27618
  }
27618
- function withProgress(params, token) {
27619
+ function withProgress(params, token2) {
27619
27620
  const meta3 = params._meta && typeof params._meta === "object" ? params._meta : {};
27620
- return { ...params, _meta: { ...meta3, progressToken: token } };
27621
+ return { ...params, _meta: { ...meta3, progressToken: token2 } };
27621
27622
  }
27622
27623
  function host2() {
27623
27624
  try {
@@ -28105,8 +28106,8 @@ var McpClient = class {
28105
28106
  return;
28106
28107
  case "notification": {
28107
28108
  if (message.method === "notifications/tools/list_changed" && this.fromOurSubscription(message)) void this.relist();
28108
- const token = progressTokenOf(message);
28109
- if (token !== void 0) this.progress.get(String(token))?.();
28109
+ const token2 = progressTokenOf(message);
28110
+ if (token2 !== void 0) this.progress.get(String(token2))?.();
28110
28111
  return;
28111
28112
  }
28112
28113
  case "reply":
@@ -28157,12 +28158,12 @@ var McpClient = class {
28157
28158
  if (signal?.aborted) return Promise.reject(new McpError("the run was stopped"));
28158
28159
  const id = this.nextId++;
28159
28160
  return new Promise((resolve22, reject) => {
28160
- const token = progress ? progressTokenFor(id) : "";
28161
+ const token2 = progress ? progressTokenFor(id) : "";
28161
28162
  let timer;
28162
28163
  const done2 = () => {
28163
28164
  clearTimeout(timer);
28164
28165
  clearTimeout(ceiling);
28165
- if (token) this.progress.delete(token);
28166
+ if (token2) this.progress.delete(token2);
28166
28167
  signal?.removeEventListener("abort", onAbort);
28167
28168
  };
28168
28169
  const giveUp = (why2, error51) => {
@@ -28185,10 +28186,10 @@ var McpClient = class {
28185
28186
  };
28186
28187
  arm();
28187
28188
  const ceiling = setTimeout(late, Math.max(timeout, MAX_TOOL_CALL_MS));
28188
- if (token) this.progress.set(token, arm);
28189
+ if (token2) this.progress.set(token2, arm);
28189
28190
  signal?.addEventListener("abort", onAbort, { once: true });
28190
28191
  this.pending.set(id, { resolve: resolve22, reject, done: done2 });
28191
- const asked = token ? withProgress(params ?? {}, token) : params;
28192
+ const asked = token2 ? withProgress(params ?? {}, token2) : params;
28192
28193
  const sent = this.modern && method !== "server/discover" ? withMeta(asked, this.modern) : asked;
28193
28194
  this.write(JSON.stringify({ jsonrpc: "2.0", id, method, params: sent }));
28194
28195
  });
@@ -28678,6 +28679,16 @@ function scopeNamed(challenge) {
28678
28679
  const scope = /(?:^|[\s,])scope="([^"]+)"/i.exec(challenge ?? "")?.[1];
28679
28680
  return scope ? ` (${scope})` : "";
28680
28681
  }
28682
+ function insufficientScope(res) {
28683
+ return res.status === 403 && /error="?insufficient_scope"?/i.test(res.headers.get("www-authenticate") ?? "");
28684
+ }
28685
+ function refusal(res, said, steppedUp) {
28686
+ if (res.status !== 403) return `the server answered ${res.status}${said ? `: ${said}` : ""}`;
28687
+ if (insufficientScope(res)) {
28688
+ return `the server needs permission AstraCode does not have${scopeNamed(res.headers.get("www-authenticate"))}` + (steppedUp ? ", and signing in again did not grant it" : "");
28689
+ }
28690
+ return `the server refused this request (403 Forbidden)${said ? `: ${said}` : ""}. The account or token AstraCode used is not allowed to do this; check its access on the server's side`;
28691
+ }
28681
28692
  var McpHttpClient = class {
28682
28693
  constructor(spec, log2, auth) {
28683
28694
  this.spec = spec;
@@ -28819,6 +28830,38 @@ var McpHttpClient = class {
28819
28830
  throw err2;
28820
28831
  }
28821
28832
  }
28833
+ /*
28834
+ A REFUSAL A SIGN-IN CAN ANSWER, ON EITHER TRANSPORT.
28835
+
28836
+ 401: at most two rounds of authorization (see send for why two), handing
28837
+ over the token just refused so it is not handed straight back.
28838
+
28839
+ 403 insufficient_scope: STEP-UP. 2026-10-09. A server that grants a
28840
+ narrow scope first and more on demand answers a call needing more with 403
28841
+ and `error="insufficient_scope", scope="..."`. That was "the server
28842
+ answered 403", for good. The person is now asked, once per request, to
28843
+ grant the scope the challenge names (with what was granted before), and
28844
+ the request is sent again. 2026-10-22: the HTTP+SSE transport's message
28845
+ endpoint got only the 401 half, so a step-up there was a 403 for good.
28846
+
28847
+ Returns the options to send the request again with, or null when this is
28848
+ not such a refusal (or it has been answered already) and is the caller's
28849
+ to report. `before` runs once it is decided, ahead of the sign-in, so the
28850
+ caller can let go of the request's deadline first.
28851
+ */
28852
+ async answerChallenge(res, opts, before = () => {
28853
+ }) {
28854
+ if (!this.auth || this.spec.bearer) return null;
28855
+ const challenge = res.headers.get("www-authenticate");
28856
+ const signIns = opts.signIns ?? 0;
28857
+ const signIn = res.status === 401 && signIns < 2;
28858
+ const stepUp = !signIn && insufficientScope(res) && !opts.steppedUp;
28859
+ if (!signIn && !stepUp) return null;
28860
+ before();
28861
+ void res.body?.cancel().catch(() => void 0);
28862
+ this.token = (await this.signIn(challenge, { rejected: this.token || void 0, ...stepUp ? { stepUp: true } : {} }, opts.signal)).accessToken;
28863
+ return stepUp ? { ...opts, steppedUp: true } : { ...opts, signIns: signIns + 1 };
28864
+ }
28822
28865
  /** The OAuth token this client obtained, or the keychain one a catalogue entry gave it. */
28823
28866
  bearer() {
28824
28867
  return this.token || this.spec.bearer?.token || "";
@@ -28881,27 +28924,16 @@ var McpHttpClient = class {
28881
28924
  }
28882
28925
  if (res.status === 401 && this.spec.bearer) {
28883
28926
  settle3();
28884
- const { variable, token } = this.spec.bearer;
28885
- 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`;
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`;
28886
28929
  throw new McpError(this.lastError);
28887
28930
  }
28888
- if (res.status === 401 && signIns < 2) {
28931
+ if (res.status === 401 && signIns < 2 && !this.auth) {
28889
28932
  settle3();
28890
- if (!this.auth) throw new McpError("server requires authorization");
28891
- this.token = (await this.signIn(res.headers.get("www-authenticate"), {
28892
- // The token it just refused, so it is not handed straight back.
28893
- rejected: this.token || void 0
28894
- }, signal)).accessToken;
28895
- return this.send(body2, timeout, { ...opts, signIns: signIns + 1 });
28896
- }
28897
- const challenge = res.headers.get("www-authenticate");
28898
- const insufficient = res.status === 403 && /error="?insufficient_scope"?/i.test(challenge ?? "");
28899
- if (insufficient && this.auth && !this.spec.bearer && !opts.steppedUp) {
28900
- settle3();
28901
- void res.body?.cancel().catch(() => void 0);
28902
- this.token = (await this.signIn(challenge, { rejected: this.token || void 0, stepUp: true }, signal)).accessToken;
28903
- return this.send(body2, timeout, { ...opts, steppedUp: true });
28933
+ throw new McpError("server requires authorization");
28904
28934
  }
28935
+ const again = await this.answerChallenge(res, opts, settle3);
28936
+ if (again) return this.send(body2, timeout, again);
28905
28937
  if (res.status === 404 && this.sessionId && retry) {
28906
28938
  settle3();
28907
28939
  this.log(`mcp: session for "${this.spec.id}" expired, starting a new one`);
@@ -28924,7 +28956,7 @@ var McpHttpClient = class {
28924
28956
  if (e && typeof e === "object" && typeof e.code === "number") rpcError = { code: e.code, data: e.data };
28925
28957
  } catch {
28926
28958
  }
28927
- this.lastError = res.status === 403 ? insufficient ? `the server needs permission AstraCode does not have${scopeNamed(challenge)}${opts.steppedUp ? ", and signing in again did not grant it" : ""}` : `the server refused this request (403 Forbidden)${said ? `: ${said}` : ""}. The account or token AstraCode used is not allowed to do this; check its access on the server's side` : `the server answered ${res.status}${said ? `: ${said}` : ""}`;
28959
+ this.lastError = refusal(res, said, opts.steppedUp);
28928
28960
  throw new McpError(this.lastError, { status: res.status, ...rpcError });
28929
28961
  }
28930
28962
  const session3 = res.headers.get("mcp-session-id");
@@ -29022,8 +29054,8 @@ var McpHttpClient = class {
29022
29054
  } else if (message.method === "notifications/tools/list_changed") {
29023
29055
  void this.relist();
29024
29056
  } else {
29025
- const token = progressTokenOf(message);
29026
- if (token !== void 0) this.progress.get(String(token))?.();
29057
+ const token2 = progressTokenOf(message);
29058
+ if (token2 !== void 0) this.progress.get(String(token2))?.();
29027
29059
  }
29028
29060
  }
29029
29061
  /** A message whose answer nobody waits for: a reply to the server, a cancellation. */
@@ -29111,7 +29143,7 @@ var McpHttpClient = class {
29111
29143
  */
29112
29144
  legacy = null;
29113
29145
  /** Open an HTTP+SSE server's stream and wait for its endpoint. False when it is not one. */
29114
- async openLegacy(signIns = 0) {
29146
+ async openLegacy(opts = {}) {
29115
29147
  const controller = new AbortController();
29116
29148
  const timer = setTimeout(() => controller.abort(), HANDSHAKE_TIMEOUT_MS);
29117
29149
  let res;
@@ -29121,17 +29153,8 @@ var McpHttpClient = class {
29121
29153
  clearTimeout(timer);
29122
29154
  return false;
29123
29155
  }
29124
- if (res.status === 401 && this.auth && !this.spec.bearer && signIns < 2) {
29125
- clearTimeout(timer);
29126
- void res.body?.cancel().catch(() => void 0);
29127
- this.token = (await authorize(
29128
- this.spec.url,
29129
- res.headers.get("www-authenticate"),
29130
- this.auth,
29131
- { rejected: this.token || void 0 }
29132
- )).accessToken;
29133
- return this.openLegacy(signIns + 1);
29134
- }
29156
+ const again = await this.answerChallenge(res, opts, () => clearTimeout(timer));
29157
+ if (again) return this.openLegacy(again);
29135
29158
  if (res.status !== 200 || !(res.headers.get("content-type") ?? "").includes("text/event-stream")) {
29136
29159
  clearTimeout(timer);
29137
29160
  void res.body?.cancel().catch(() => void 0);
@@ -29193,7 +29216,7 @@ var McpHttpClient = class {
29193
29216
  }
29194
29217
  /** POST one message to an HTTP+SSE server, and wait for its reply on the stream. */
29195
29218
  async sendLegacy(state, body2, timeout, opts) {
29196
- const { signIns = 0, signal, progressToken } = opts;
29219
+ const { signal, progressToken } = opts;
29197
29220
  if (signal?.aborted) throw new McpError("the run was stopped");
29198
29221
  const id = idOf(body2);
29199
29222
  const seconds = Math.round(timeout / 1e3);
@@ -29244,14 +29267,11 @@ var McpHttpClient = class {
29244
29267
  throw new McpError(this.lastError);
29245
29268
  }
29246
29269
  void res.body?.cancel().catch(() => void 0);
29247
- if (res.status === 401 && this.auth && !this.spec.bearer && signIns < 2) {
29248
- forget2();
29249
- this.token = (await this.signIn(res.headers.get("www-authenticate"), { rejected: this.token || void 0 }, signal)).accessToken;
29250
- return this.sendLegacy(state, body2, timeout, { ...opts, signIns: signIns + 1 });
29251
- }
29270
+ const again = await this.answerChallenge(res, opts, forget2);
29271
+ if (again) return this.sendLegacy(state, body2, timeout, again);
29252
29272
  if (!res.ok) {
29253
29273
  forget2();
29254
- this.lastError = `the server answered ${res.status}`;
29274
+ this.lastError = refusal(res, void 0, opts.steppedUp);
29255
29275
  throw new McpError(this.lastError, { status: res.status });
29256
29276
  }
29257
29277
  return reply ? reply : null;
@@ -29317,7 +29337,7 @@ var McpHttpClient = class {
29317
29337
  this.modern = MODERN_PROTOCOL_VERSION;
29318
29338
  let era;
29319
29339
  let discovered;
29320
- let refusal = null;
29340
+ let refusal2 = null;
29321
29341
  this.probing = true;
29322
29342
  try {
29323
29343
  discovered = await this.send(this.request(this.nextId++, "server/discover"), HANDSHAKE_TIMEOUT_MS);
@@ -29327,12 +29347,12 @@ var McpHttpClient = class {
29327
29347
  this.modern = null;
29328
29348
  throw err2;
29329
29349
  }
29330
- refusal = err2;
29350
+ refusal2 = err2;
29331
29351
  } finally {
29332
29352
  this.probing = false;
29333
29353
  }
29334
29354
  try {
29335
- era = refusal ? eraFromDiscover({ error: refusal }) : eraFromDiscover({ result: discovered });
29355
+ era = refusal2 ? eraFromDiscover({ error: refusal2 }) : eraFromDiscover({ result: discovered });
29336
29356
  } catch (err2) {
29337
29357
  this.modern = null;
29338
29358
  this.lastError = err2 instanceof Error ? err2.message : String(err2);
@@ -29348,7 +29368,7 @@ var McpHttpClient = class {
29348
29368
  this.modern = null;
29349
29369
  this.sessionId = "";
29350
29370
  this.lastError = "";
29351
- if (refusal) this.log(`mcp: "${this.spec.id}" speaks an earlier MCP (${refusal.message}); initializing it`);
29371
+ if (refusal2) this.log(`mcp: "${this.spec.id}" speaks an earlier MCP (${refusal2.message}); initializing it`);
29352
29372
  const initialize = rpc(this.nextId++, "initialize", {
29353
29373
  protocolVersion: PROTOCOL_VERSION,
29354
29374
  capabilities: {},
@@ -30257,8 +30277,8 @@ var os9 = __toESM(require("os"));
30257
30277
  var path17 = __toESM(require("path"));
30258
30278
  var PROJECT_FILES = [
30259
30279
  { rel: ".mcp.json", key: "mcpServers" },
30260
- { rel: path17.join(".cursor", "mcp.json"), key: "mcpServers" },
30261
- { rel: path17.join(".vscode", "mcp.json"), key: "servers" }
30280
+ { rel: ".cursor/mcp.json", key: "mcpServers" },
30281
+ { rel: ".vscode/mcp.json", key: "servers" }
30262
30282
  ];
30263
30283
  function parseJsonc(text2) {
30264
30284
  let out2 = "";
@@ -31328,10 +31348,10 @@ function getGatewayUrl() {
31328
31348
  function projectRulesEnabled() {
31329
31349
  return vscode9.workspace.getConfiguration("astracode").get("projectRules", true);
31330
31350
  }
31331
- async function getCredentials(secrets4) {
31332
- const ssoToken = await secrets4.get(SSO_TOKEN_KEY);
31351
+ async function getCredentials(secrets3) {
31352
+ const ssoToken = await secrets3.get(SSO_TOKEN_KEY);
31333
31353
  if (!ssoToken) return null;
31334
- const byokKey = await secrets4.get(BYOK_KEY);
31354
+ const byokKey = await secrets3.get(BYOK_KEY);
31335
31355
  return { ssoToken, byokKey: byokKey || void 0 };
31336
31356
  }
31337
31357
  function createProvider(credentials, model2) {
@@ -31403,15 +31423,15 @@ async function exchangeSignInCode(code, verifier) {
31403
31423
  const detail = await jsonOrUndefined(res);
31404
31424
  return { ok: false, error: typeof detail?.error === "string" ? detail.error : void 0 };
31405
31425
  }
31406
- const token = (await jsonOrUndefined(res))?.token;
31407
- return typeof token === "string" && token ? { ok: true, token } : { ok: false, error: "The gateway answered without a token." };
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." };
31408
31428
  } catch {
31409
31429
  return { ok: false, error: "Could not reach the gateway to finish signing in." };
31410
31430
  }
31411
31431
  }
31412
31432
  var RENEW_CHECK_MS = 30 * 60 * 1e3;
31413
- function secondsLeft(token, now = Date.now()) {
31414
- const part = token.split(".")[1];
31433
+ function secondsLeft(token2, now = Date.now()) {
31434
+ const part = token2.split(".")[1];
31415
31435
  if (!part) return void 0;
31416
31436
  try {
31417
31437
  const json2 = Buffer.from(part.replace(/-/g, "+").replace(/_/g, "/"), "base64").toString("utf8");
@@ -31422,17 +31442,17 @@ function secondsLeft(token, now = Date.now()) {
31422
31442
  return void 0;
31423
31443
  }
31424
31444
  }
31425
- function shouldRenew(token, within2, now = Date.now()) {
31426
- const left = secondsLeft(token, now);
31445
+ function shouldRenew(token2, within2, now = Date.now()) {
31446
+ const left = secondsLeft(token2, now);
31427
31447
  if (left === void 0) return false;
31428
31448
  return left > 0 && left <= within2;
31429
31449
  }
31430
- async function renewToken(token) {
31450
+ async function renewToken(token2) {
31431
31451
  let res;
31432
31452
  try {
31433
31453
  res = await fetchWithin(new URL("/v1/auth/renew", getGatewayUrl()).toString(), {
31434
31454
  method: "POST",
31435
- headers: { authorization: `Bearer ${token}`, "content-type": "application/json" },
31455
+ headers: { authorization: `Bearer ${token2}`, "content-type": "application/json" },
31436
31456
  body: "{}"
31437
31457
  }, 2e4);
31438
31458
  } catch {
@@ -31512,10 +31532,10 @@ function approvedSpecs(store2, offered) {
31512
31532
 
31513
31533
  // ../editor/src/mcp/orgHost.ts
31514
31534
  var TIMEOUT_MS = 4e3;
31515
- async function fetchOrgCatalogue(token) {
31535
+ async function fetchOrgCatalogue(token2) {
31516
31536
  try {
31517
31537
  const res = await fetch(new URL("/v1/mcp/servers", getGatewayUrl()).toString(), {
31518
- headers: { authorization: `Bearer ${token}` },
31538
+ headers: { authorization: `Bearer ${token2}` },
31519
31539
  signal: AbortSignal.timeout(TIMEOUT_MS)
31520
31540
  });
31521
31541
  if (res.status === 404 || res.status === 401 || res.status === 403) return { servers: [], plugins: { marketplaces: [], policies: [] } };
@@ -31727,8 +31747,8 @@ async function attachKeychainBearers(specs, envFor) {
31727
31747
  if (!isHttpSpec(spec) || (spec.origin ?? "user") !== "user") continue;
31728
31748
  const variable = keychainBearerFor(spec);
31729
31749
  if (!variable) continue;
31730
- const token = (await envFor(spec.id, spec))[variable];
31731
- spec.bearer = { variable, ...token ? { token } : {} };
31750
+ const token2 = (await envFor(spec.id, spec))[variable];
31751
+ spec.bearer = { variable, ...token2 ? { token: token2 } : {} };
31732
31752
  }
31733
31753
  }
31734
31754
  var asking = Promise.resolve();
@@ -32445,7 +32465,10 @@ function webFetchEnabled() {
32445
32465
  // ../editor/src/agent/webSearchHost.ts
32446
32466
  init_define_ASTRACODE_BUNDLED_SKILLS();
32447
32467
  var vscode13 = __toESM(require_shim_vscode());
32448
- var secrets2;
32468
+ var token;
32469
+ function useSearchToken(get) {
32470
+ token = async () => get() || void 0;
32471
+ }
32449
32472
  function webSearchEnabled() {
32450
32473
  const on = vscode13.workspace.getConfiguration("astracode").get("agent.webSearch", true);
32451
32474
  return on && gatewayOffersSearch();
@@ -32453,15 +32476,15 @@ function webSearchEnabled() {
32453
32476
  async function runWebSearch(input) {
32454
32477
  const body2 = searchBody(input);
32455
32478
  if ("error" in body2) return `ERROR: ${body2.error}`;
32456
- const active = secrets2 ? await getCredentials(secrets2) : null;
32457
- if (!active?.ssoToken) {
32458
- 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.";
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.";
32459
32482
  }
32460
32483
  let res;
32461
32484
  try {
32462
32485
  res = await fetch(`${getGatewayUrl().replace(/\/+$/, "")}/v1/search`, {
32463
32486
  method: "POST",
32464
- headers: { "content-type": "application/json", authorization: `Bearer ${active.ssoToken}`, ...clientHeader() },
32487
+ headers: { "content-type": "application/json", authorization: `Bearer ${ssoToken}`, ...clientHeader() },
32465
32488
  body: JSON.stringify(body2),
32466
32489
  signal: AbortSignal.timeout(3e4)
32467
32490
  });
@@ -32880,31 +32903,31 @@ function tokenise(line) {
32880
32903
  return tokens;
32881
32904
  }
32882
32905
  var EXPANDS = /[{}*?[\]]/;
32883
- function quoteToken(token) {
32884
- return `'${token.replace(/'/g, "'\\''")}'`;
32906
+ function quoteToken(token2) {
32907
+ return `'${token2.replace(/'/g, "'\\''")}'`;
32885
32908
  }
32886
32909
  function inside(candidate, root2) {
32887
32910
  const withSep = root2.endsWith(path27.sep) ? root2 : root2 + path27.sep;
32888
32911
  return candidate === root2 || candidate.startsWith(withSep);
32889
32912
  }
32890
- function carriedPath(token) {
32891
- if (!token.startsWith("-")) return token;
32892
- const eq = token.indexOf("=");
32893
- if (eq > 0) return token.slice(eq + 1);
32894
- if (!token.startsWith("--") && token.length > 2) return token.slice(2);
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);
32895
32918
  return "";
32896
32919
  }
32897
32920
  function outsideRoot(raw, root2) {
32898
- const token = carriedPath(raw);
32899
- if (!token) return "";
32900
- if (token.startsWith("~")) {
32901
- return `"${token}" is outside the workspace (the shell expands ~ to your home directory)`;
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)`;
32902
32925
  }
32903
- if (path27.isAbsolute(token)) return `"${token}" is an absolute path, outside the workspace`;
32926
+ if (path27.isAbsolute(token2)) return `"${token2}" is an absolute path, outside the workspace`;
32904
32927
  if (!root2) return "";
32905
32928
  root2 = path27.resolve(root2);
32906
- const resolved = path27.resolve(root2, token);
32907
- if (!inside(resolved, root2)) return `"${token}" resolves outside the workspace`;
32929
+ const resolved = path27.resolve(root2, token2);
32930
+ if (!inside(resolved, root2)) return `"${token2}" resolves outside the workspace`;
32908
32931
  let realRoot = root2;
32909
32932
  try {
32910
32933
  realRoot = fs24.realpathSync(root2);
@@ -32913,7 +32936,7 @@ function outsideRoot(raw, root2) {
32913
32936
  try {
32914
32937
  const real = fs24.realpathSync(resolved);
32915
32938
  if (!inside(real, root2) && !inside(real, realRoot)) {
32916
- return `"${token}" is a link pointing outside the workspace`;
32939
+ return `"${token2}" is a link pointing outside the workspace`;
32917
32940
  }
32918
32941
  } catch {
32919
32942
  }
@@ -32929,11 +32952,11 @@ function isReadOnlyCommand(command2, root2) {
32929
32952
  if (!words2 || words2.length === 0) {
32930
32953
  return { ok: false, reason: "unbalanced quotes" };
32931
32954
  }
32932
- for (const token of words2) {
32933
- if (!token.quoted && EXPANDS.test(token.value)) {
32955
+ for (const token2 of words2) {
32956
+ if (!token2.quoted && EXPANDS.test(token2.value)) {
32934
32957
  return {
32935
32958
  ok: false,
32936
- 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`
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`
32937
32960
  };
32938
32961
  }
32939
32962
  }
@@ -32948,8 +32971,8 @@ function isReadOnlyCommand(command2, root2) {
32948
32971
  }
32949
32972
  const args2 = words2.slice(1).map((t2) => t2.value);
32950
32973
  const paths = program === "git" ? args2.slice(1) : args2;
32951
- for (const token of paths) {
32952
- const why2 = outsideRoot(token, root2);
32974
+ for (const token2 of paths) {
32975
+ const why2 = outsideRoot(token2, root2);
32953
32976
  if (why2) return { ok: false, reason: `${why2}; a read-only mode only reads inside the workspace` };
32954
32977
  }
32955
32978
  const vetted = { ok: true, command: words2.map((t2) => quoteToken(t2.value)).join(" ") };
@@ -32957,9 +32980,9 @@ function isReadOnlyCommand(command2, root2) {
32957
32980
  const sub = args2[0];
32958
32981
  if (!sub) return { ok: false, reason: "git needs a subcommand" };
32959
32982
  if (!(sub in GIT)) return { ok: false, reason: `git ${sub} can write; not allowed in a read-only mode` };
32960
- for (const token of args2.slice(1)) {
32961
- if (GIT_NEVER.some((flag) => flag.test(token))) {
32962
- return { ok: false, reason: `git ${token} can run or write something; 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` };
32963
32986
  }
32964
32987
  }
32965
32988
  const deny = GIT[sub];
@@ -34289,7 +34312,7 @@ async function rerank(query, candidates, scorer, timeoutMs = RERANK_TIMEOUT_MS)
34289
34312
 
34290
34313
  // ../editor/src/agent/codeIndexHost.ts
34291
34314
  var RESYNC_EVERY_MS = 30 * 60 * 1e3;
34292
- var secrets3;
34315
+ var secrets2;
34293
34316
  var logLine2 = () => {
34294
34317
  };
34295
34318
  var store;
@@ -34311,8 +34334,8 @@ function indexBaseDir() {
34311
34334
  return path30.join(os11.homedir(), ".astracode", "index");
34312
34335
  }
34313
34336
  var GatewayEmbedder = class {
34314
- constructor(token) {
34315
- this.token = token;
34337
+ constructor(token2) {
34338
+ this.token = token2;
34316
34339
  }
34317
34340
  token;
34318
34341
  async embed(texts) {
@@ -34338,8 +34361,8 @@ var GatewayEmbedder = class {
34338
34361
  }
34339
34362
  };
34340
34363
  async function embedder() {
34341
- if (!secrets3) return void 0;
34342
- const active = await getCredentials(secrets3);
34364
+ if (!secrets2) return void 0;
34365
+ const active = await getCredentials(secrets2);
34343
34366
  return active?.ssoToken ? new GatewayEmbedder(active.ssoToken) : void 0;
34344
34367
  }
34345
34368
  function root() {
@@ -34445,8 +34468,8 @@ async function searchCode(query, limit2) {
34445
34468
  const boosts = vector && feedback ? feedback.boosts(vector) : [];
34446
34469
  let hits = s.hybridSearch(r, vector, q, 50, boosts);
34447
34470
  let judged = false;
34448
- if (rerankEnabled() && hits.length >= 3 && secrets3) {
34449
- const active = await getCredentials(secrets3);
34471
+ if (rerankEnabled() && hits.length >= 3 && secrets2) {
34472
+ const active = await getCredentials(secrets2);
34450
34473
  if (active) {
34451
34474
  const provider = createProvider(active);
34452
34475
  const candidates = hits.slice(0, 20).map((h) => ({
@@ -35600,10 +35623,10 @@ var path35 = __toESM(require("path"));
35600
35623
  // ../editor/src/agent/diffUtil.ts
35601
35624
  init_define_ASTRACODE_BUNDLED_SKILLS();
35602
35625
 
35603
- // ../editor/node_modules/diff/libesm/index.js
35626
+ // ../../AstraCode/editor/node_modules/diff/libesm/index.js
35604
35627
  init_define_ASTRACODE_BUNDLED_SKILLS();
35605
35628
 
35606
- // ../editor/node_modules/diff/libesm/diff/base.js
35629
+ // ../../AstraCode/editor/node_modules/diff/libesm/diff/base.js
35607
35630
  init_define_ASTRACODE_BUNDLED_SKILLS();
35608
35631
  var Diff = class {
35609
35632
  diff(oldStr, newStr, options = {}) {
@@ -35806,10 +35829,10 @@ var Diff = class {
35806
35829
  }
35807
35830
  };
35808
35831
 
35809
- // ../editor/node_modules/diff/libesm/diff/word.js
35832
+ // ../../AstraCode/editor/node_modules/diff/libesm/diff/word.js
35810
35833
  init_define_ASTRACODE_BUNDLED_SKILLS();
35811
35834
 
35812
- // ../editor/node_modules/diff/libesm/util/string.js
35835
+ // ../../AstraCode/editor/node_modules/diff/libesm/util/string.js
35813
35836
  init_define_ASTRACODE_BUNDLED_SKILLS();
35814
35837
  function longestCommonPrefix(str1, str22) {
35815
35838
  let i2;
@@ -35938,7 +35961,7 @@ function leadingAndTrailingWs(string4, segmenter) {
35938
35961
  return [head, tail2];
35939
35962
  }
35940
35963
 
35941
- // ../editor/node_modules/diff/libesm/diff/word.js
35964
+ // ../../AstraCode/editor/node_modules/diff/libesm/diff/word.js
35942
35965
  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}";
35943
35966
  var tokenizeIncludingWhitespace = new RegExp(`[${extendedWordChars}]+|\\s+|[^${extendedWordChars}]`, "ug");
35944
35967
  var WordDiff = class extends Diff {
@@ -35983,11 +36006,11 @@ var WordDiff = class extends Diff {
35983
36006
  return tokens;
35984
36007
  }
35985
36008
  join(tokens) {
35986
- return tokens.map((token, i2) => {
36009
+ return tokens.map((token2, i2) => {
35987
36010
  if (i2 == 0) {
35988
- return token;
36011
+ return token2;
35989
36012
  } else {
35990
- return token.replace(/^\s+/, "");
36013
+ return token2.replace(/^\s+/, "");
35991
36014
  }
35992
36015
  }).join("");
35993
36016
  }
@@ -36075,7 +36098,7 @@ function diffWordsWithSpace(oldStr, newStr, options) {
36075
36098
  return wordsWithSpaceDiff.diff(oldStr, newStr, options);
36076
36099
  }
36077
36100
 
36078
- // ../editor/node_modules/diff/libesm/diff/line.js
36101
+ // ../../AstraCode/editor/node_modules/diff/libesm/diff/line.js
36079
36102
  init_define_ASTRACODE_BUNDLED_SKILLS();
36080
36103
  var LineDiff = class extends Diff {
36081
36104
  constructor() {
@@ -36124,7 +36147,7 @@ function tokenize3(value, options) {
36124
36147
  return retLines;
36125
36148
  }
36126
36149
 
36127
- // ../editor/node_modules/diff/libesm/patch/create.js
36150
+ // ../../AstraCode/editor/node_modules/diff/libesm/patch/create.js
36128
36151
  init_define_ASTRACODE_BUNDLED_SKILLS();
36129
36152
  function structuredPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, newHeader, options) {
36130
36153
  let optionsObj;
@@ -43084,10 +43107,10 @@ var FileStore2 = class {
43084
43107
  return void 0;
43085
43108
  }
43086
43109
  }
43087
- async set(token) {
43110
+ async set(token2) {
43088
43111
  fs43.mkdirSync(path47.dirname(this.file), { recursive: true, mode: 448 });
43089
43112
  const tmp = `${this.file}.${process.pid}.tmp`;
43090
- fs43.writeFileSync(tmp, JSON.stringify({ token }) + "\n", { mode: 384 });
43113
+ fs43.writeFileSync(tmp, JSON.stringify({ token: token2 }) + "\n", { mode: 384 });
43091
43114
  fs43.renameSync(tmp, this.file);
43092
43115
  }
43093
43116
  async delete() {
@@ -43111,11 +43134,11 @@ var KeychainStore = class {
43111
43134
  where = "the macOS Keychain";
43112
43135
  async get() {
43113
43136
  const r = await security(["find-generic-password", "-s", SERVICE, "-a", ACCOUNT, "-w"]);
43114
- const token = r.stdout.trim();
43115
- return r.code === 0 && token ? token : void 0;
43137
+ const token2 = r.stdout.trim();
43138
+ return r.code === 0 && token2 ? token2 : void 0;
43116
43139
  }
43117
- async set(token) {
43118
- if (!/^[A-Za-z0-9._~+/=-]+$/.test(token)) {
43140
+ async set(token2) {
43141
+ if (!/^[A-Za-z0-9._~+/=-]+$/.test(token2)) {
43119
43142
  throw new Error("the gateway returned a token this CLI cannot store safely");
43120
43143
  }
43121
43144
  await new Promise((resolve22, reject) => {
@@ -43127,7 +43150,7 @@ var KeychainStore = class {
43127
43150
  "close",
43128
43151
  (code) => code === 0 && !stderr.trim() ? resolve22() : reject(new Error(`could not save to the Keychain: ${stderr.trim() || `exit ${code}`}`))
43129
43152
  );
43130
- child.stdin.end(`add-generic-password -U -s "${SERVICE}" -a ${ACCOUNT} -l "${SERVICE}" -w ${token}
43153
+ child.stdin.end(`add-generic-password -U -s "${SERVICE}" -a ${ACCOUNT} -l "${SERVICE}" -w ${token2}
43131
43154
  `);
43132
43155
  });
43133
43156
  }
@@ -43602,10 +43625,10 @@ function readableError(err2) {
43602
43625
  return readable(message) ?? "Something went wrong inside AstraCode. Try again; if it keeps happening, report it.";
43603
43626
  }
43604
43627
 
43605
- // ../editor/node_modules/@agentclientprotocol/sdk/dist/acp.js
43628
+ // ../../AstraCode/editor/node_modules/@agentclientprotocol/sdk/dist/acp.js
43606
43629
  init_define_ASTRACODE_BUNDLED_SKILLS();
43607
43630
 
43608
- // ../editor/node_modules/@agentclientprotocol/sdk/dist/schema/index.js
43631
+ // ../../AstraCode/editor/node_modules/@agentclientprotocol/sdk/dist/schema/index.js
43609
43632
  init_define_ASTRACODE_BUNDLED_SKILLS();
43610
43633
  var AGENT_METHODS = {
43611
43634
  initialize: "initialize",
@@ -43658,16 +43681,16 @@ var PROTOCOL_METHODS = {
43658
43681
  };
43659
43682
  var PROTOCOL_VERSION2 = 1;
43660
43683
 
43661
- // ../editor/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.js
43684
+ // ../../AstraCode/editor/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.js
43662
43685
  init_define_ASTRACODE_BUNDLED_SKILLS();
43663
43686
 
43664
- // ../editor/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.js
43687
+ // ../../AstraCode/editor/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.js
43665
43688
  init_define_ASTRACODE_BUNDLED_SKILLS();
43666
43689
 
43667
- // ../editor/node_modules/zod/v4/classic/index.js
43690
+ // ../../AstraCode/editor/node_modules/zod/v4/classic/index.js
43668
43691
  init_define_ASTRACODE_BUNDLED_SKILLS();
43669
43692
 
43670
- // ../editor/node_modules/zod/v4/classic/external.js
43693
+ // ../../AstraCode/editor/node_modules/zod/v4/classic/external.js
43671
43694
  var external_exports = {};
43672
43695
  __export(external_exports, {
43673
43696
  $brand: () => $brand,
@@ -43911,7 +43934,7 @@ __export(external_exports, {
43911
43934
  });
43912
43935
  init_define_ASTRACODE_BUNDLED_SKILLS();
43913
43936
 
43914
- // ../editor/node_modules/zod/v4/core/index.js
43937
+ // ../../AstraCode/editor/node_modules/zod/v4/core/index.js
43915
43938
  var core_exports2 = {};
43916
43939
  __export(core_exports2, {
43917
43940
  $ZodAny: () => $ZodAny,
@@ -44191,7 +44214,7 @@ __export(core_exports2, {
44191
44214
  });
44192
44215
  init_define_ASTRACODE_BUNDLED_SKILLS();
44193
44216
 
44194
- // ../editor/node_modules/zod/v4/core/core.js
44217
+ // ../../AstraCode/editor/node_modules/zod/v4/core/core.js
44195
44218
  init_define_ASTRACODE_BUNDLED_SKILLS();
44196
44219
  var _a2;
44197
44220
  var NEVER = /* @__PURE__ */ Object.freeze({
@@ -44269,13 +44292,13 @@ function config2(newConfig) {
44269
44292
  return globalConfig;
44270
44293
  }
44271
44294
 
44272
- // ../editor/node_modules/zod/v4/core/parse.js
44295
+ // ../../AstraCode/editor/node_modules/zod/v4/core/parse.js
44273
44296
  init_define_ASTRACODE_BUNDLED_SKILLS();
44274
44297
 
44275
- // ../editor/node_modules/zod/v4/core/errors.js
44298
+ // ../../AstraCode/editor/node_modules/zod/v4/core/errors.js
44276
44299
  init_define_ASTRACODE_BUNDLED_SKILLS();
44277
44300
 
44278
- // ../editor/node_modules/zod/v4/core/util.js
44301
+ // ../../AstraCode/editor/node_modules/zod/v4/core/util.js
44279
44302
  var util_exports = {};
44280
44303
  __export(util_exports, {
44281
44304
  BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
@@ -44972,7 +44995,7 @@ var Class = class {
44972
44995
  }
44973
44996
  };
44974
44997
 
44975
- // ../editor/node_modules/zod/v4/core/errors.js
44998
+ // ../../AstraCode/editor/node_modules/zod/v4/core/errors.js
44976
44999
  var initializer = (inst, def) => {
44977
45000
  inst.name = "$ZodError";
44978
45001
  Object.defineProperty(inst, "_zod", {
@@ -45111,7 +45134,7 @@ function prettifyError(error51) {
45111
45134
  return lines2.join("\n");
45112
45135
  }
45113
45136
 
45114
- // ../editor/node_modules/zod/v4/core/parse.js
45137
+ // ../../AstraCode/editor/node_modules/zod/v4/core/parse.js
45115
45138
  var _parse = (_Err) => (schema, value, _ctx, _params) => {
45116
45139
  const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
45117
45140
  const result = schema._zod.run({ value, issues: [] }, ctx);
@@ -45199,13 +45222,13 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
45199
45222
  };
45200
45223
  var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
45201
45224
 
45202
- // ../editor/node_modules/zod/v4/core/schemas.js
45225
+ // ../../AstraCode/editor/node_modules/zod/v4/core/schemas.js
45203
45226
  init_define_ASTRACODE_BUNDLED_SKILLS();
45204
45227
 
45205
- // ../editor/node_modules/zod/v4/core/checks.js
45228
+ // ../../AstraCode/editor/node_modules/zod/v4/core/checks.js
45206
45229
  init_define_ASTRACODE_BUNDLED_SKILLS();
45207
45230
 
45208
- // ../editor/node_modules/zod/v4/core/regexes.js
45231
+ // ../../AstraCode/editor/node_modules/zod/v4/core/regexes.js
45209
45232
  var regexes_exports = {};
45210
45233
  __export(regexes_exports, {
45211
45234
  base64: () => base64,
@@ -45365,7 +45388,7 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
45365
45388
  var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
45366
45389
  var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
45367
45390
 
45368
- // ../editor/node_modules/zod/v4/core/checks.js
45391
+ // ../../AstraCode/editor/node_modules/zod/v4/core/checks.js
45369
45392
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
45370
45393
  var _a4;
45371
45394
  inst._zod ?? (inst._zod = {});
@@ -45913,7 +45936,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
45913
45936
  };
45914
45937
  });
45915
45938
 
45916
- // ../editor/node_modules/zod/v4/core/doc.js
45939
+ // ../../AstraCode/editor/node_modules/zod/v4/core/doc.js
45917
45940
  init_define_ASTRACODE_BUNDLED_SKILLS();
45918
45941
  var Doc = class {
45919
45942
  constructor(args2 = []) {
@@ -45950,7 +45973,7 @@ var Doc = class {
45950
45973
  }
45951
45974
  };
45952
45975
 
45953
- // ../editor/node_modules/zod/v4/core/versions.js
45976
+ // ../../AstraCode/editor/node_modules/zod/v4/core/versions.js
45954
45977
  init_define_ASTRACODE_BUNDLED_SKILLS();
45955
45978
  var version2 = {
45956
45979
  major: 4,
@@ -45958,7 +45981,7 @@ var version2 = {
45958
45981
  patch: 3
45959
45982
  };
45960
45983
 
45961
- // ../editor/node_modules/zod/v4/core/schemas.js
45984
+ // ../../AstraCode/editor/node_modules/zod/v4/core/schemas.js
45962
45985
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
45963
45986
  var _a4;
45964
45987
  inst ?? (inst = {});
@@ -46347,9 +46370,9 @@ var $ZodE164 = /* @__PURE__ */ $constructor("$ZodE164", (inst, def) => {
46347
46370
  def.pattern ?? (def.pattern = e164);
46348
46371
  $ZodStringFormat.init(inst, def);
46349
46372
  });
46350
- function isValidJWT(token, algorithm = null) {
46373
+ function isValidJWT(token2, algorithm = null) {
46351
46374
  try {
46352
- const tokensParts = token.split(".");
46375
+ const tokensParts = token2.split(".");
46353
46376
  if (tokensParts.length !== 3)
46354
46377
  return false;
46355
46378
  const [header2] = tokensParts;
@@ -48051,7 +48074,7 @@ function handleRefineResult(result, payload, input, inst) {
48051
48074
  }
48052
48075
  }
48053
48076
 
48054
- // ../editor/node_modules/zod/v4/locales/index.js
48077
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/index.js
48055
48078
  var locales_exports = {};
48056
48079
  __export(locales_exports, {
48057
48080
  ar: () => ar_default,
@@ -48109,7 +48132,7 @@ __export(locales_exports, {
48109
48132
  });
48110
48133
  init_define_ASTRACODE_BUNDLED_SKILLS();
48111
48134
 
48112
- // ../editor/node_modules/zod/v4/locales/ar.js
48135
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/ar.js
48113
48136
  init_define_ASTRACODE_BUNDLED_SKILLS();
48114
48137
  var error = () => {
48115
48138
  const Sizable = {
@@ -48217,7 +48240,7 @@ function ar_default() {
48217
48240
  };
48218
48241
  }
48219
48242
 
48220
- // ../editor/node_modules/zod/v4/locales/az.js
48243
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/az.js
48221
48244
  init_define_ASTRACODE_BUNDLED_SKILLS();
48222
48245
  var error2 = () => {
48223
48246
  const Sizable = {
@@ -48324,7 +48347,7 @@ function az_default() {
48324
48347
  };
48325
48348
  }
48326
48349
 
48327
- // ../editor/node_modules/zod/v4/locales/be.js
48350
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/be.js
48328
48351
  init_define_ASTRACODE_BUNDLED_SKILLS();
48329
48352
  function getBelarusianPlural(count, one, few, many) {
48330
48353
  const absCount = Math.abs(count);
@@ -48482,7 +48505,7 @@ function be_default() {
48482
48505
  };
48483
48506
  }
48484
48507
 
48485
- // ../editor/node_modules/zod/v4/locales/bg.js
48508
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/bg.js
48486
48509
  init_define_ASTRACODE_BUNDLED_SKILLS();
48487
48510
  var error4 = () => {
48488
48511
  const Sizable = {
@@ -48604,7 +48627,7 @@ function bg_default() {
48604
48627
  };
48605
48628
  }
48606
48629
 
48607
- // ../editor/node_modules/zod/v4/locales/ca.js
48630
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/ca.js
48608
48631
  init_define_ASTRACODE_BUNDLED_SKILLS();
48609
48632
  var error5 = () => {
48610
48633
  const Sizable = {
@@ -48714,7 +48737,7 @@ function ca_default() {
48714
48737
  };
48715
48738
  }
48716
48739
 
48717
- // ../editor/node_modules/zod/v4/locales/cs.js
48740
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/cs.js
48718
48741
  init_define_ASTRACODE_BUNDLED_SKILLS();
48719
48742
  var error6 = () => {
48720
48743
  const Sizable = {
@@ -48827,7 +48850,7 @@ function cs_default() {
48827
48850
  };
48828
48851
  }
48829
48852
 
48830
- // ../editor/node_modules/zod/v4/locales/da.js
48853
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/da.js
48831
48854
  init_define_ASTRACODE_BUNDLED_SKILLS();
48832
48855
  var error7 = () => {
48833
48856
  const Sizable = {
@@ -48944,7 +48967,7 @@ function da_default() {
48944
48967
  };
48945
48968
  }
48946
48969
 
48947
- // ../editor/node_modules/zod/v4/locales/de.js
48970
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/de.js
48948
48971
  init_define_ASTRACODE_BUNDLED_SKILLS();
48949
48972
  var error8 = () => {
48950
48973
  const Sizable = {
@@ -49054,7 +49077,7 @@ function de_default() {
49054
49077
  };
49055
49078
  }
49056
49079
 
49057
- // ../editor/node_modules/zod/v4/locales/el.js
49080
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/el.js
49058
49081
  init_define_ASTRACODE_BUNDLED_SKILLS();
49059
49082
  var error9 = () => {
49060
49083
  const Sizable = {
@@ -49165,7 +49188,7 @@ function el_default() {
49165
49188
  };
49166
49189
  }
49167
49190
 
49168
- // ../editor/node_modules/zod/v4/locales/en.js
49191
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/en.js
49169
49192
  init_define_ASTRACODE_BUNDLED_SKILLS();
49170
49193
  var error10 = () => {
49171
49194
  const Sizable = {
@@ -49279,7 +49302,7 @@ function en_default() {
49279
49302
  };
49280
49303
  }
49281
49304
 
49282
- // ../editor/node_modules/zod/v4/locales/eo.js
49305
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/eo.js
49283
49306
  init_define_ASTRACODE_BUNDLED_SKILLS();
49284
49307
  var error11 = () => {
49285
49308
  const Sizable = {
@@ -49390,7 +49413,7 @@ function eo_default() {
49390
49413
  };
49391
49414
  }
49392
49415
 
49393
- // ../editor/node_modules/zod/v4/locales/es.js
49416
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/es.js
49394
49417
  init_define_ASTRACODE_BUNDLED_SKILLS();
49395
49418
  var error12 = () => {
49396
49419
  const Sizable = {
@@ -49524,7 +49547,7 @@ function es_default() {
49524
49547
  };
49525
49548
  }
49526
49549
 
49527
- // ../editor/node_modules/zod/v4/locales/fa.js
49550
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/fa.js
49528
49551
  init_define_ASTRACODE_BUNDLED_SKILLS();
49529
49552
  var error13 = () => {
49530
49553
  const Sizable = {
@@ -49640,7 +49663,7 @@ function fa_default() {
49640
49663
  };
49641
49664
  }
49642
49665
 
49643
- // ../editor/node_modules/zod/v4/locales/fi.js
49666
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/fi.js
49644
49667
  init_define_ASTRACODE_BUNDLED_SKILLS();
49645
49668
  var error14 = () => {
49646
49669
  const Sizable = {
@@ -49754,7 +49777,7 @@ function fi_default() {
49754
49777
  };
49755
49778
  }
49756
49779
 
49757
- // ../editor/node_modules/zod/v4/locales/fr.js
49780
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/fr.js
49758
49781
  init_define_ASTRACODE_BUNDLED_SKILLS();
49759
49782
  var error15 = () => {
49760
49783
  const Sizable = {
@@ -49881,7 +49904,7 @@ function fr_default() {
49881
49904
  };
49882
49905
  }
49883
49906
 
49884
- // ../editor/node_modules/zod/v4/locales/fr-CA.js
49907
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/fr-CA.js
49885
49908
  init_define_ASTRACODE_BUNDLED_SKILLS();
49886
49909
  var error16 = () => {
49887
49910
  const Sizable = {
@@ -49990,7 +50013,7 @@ function fr_CA_default() {
49990
50013
  };
49991
50014
  }
49992
50015
 
49993
- // ../editor/node_modules/zod/v4/locales/he.js
50016
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/he.js
49994
50017
  init_define_ASTRACODE_BUNDLED_SKILLS();
49995
50018
  var error17 = () => {
49996
50019
  const TypeNames = {
@@ -50186,7 +50209,7 @@ function he_default() {
50186
50209
  };
50187
50210
  }
50188
50211
 
50189
- // ../editor/node_modules/zod/v4/locales/hr.js
50212
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/hr.js
50190
50213
  init_define_ASTRACODE_BUNDLED_SKILLS();
50191
50214
  var error18 = () => {
50192
50215
  const Sizable = {
@@ -50310,7 +50333,7 @@ function hr_default() {
50310
50333
  };
50311
50334
  }
50312
50335
 
50313
- // ../editor/node_modules/zod/v4/locales/hu.js
50336
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/hu.js
50314
50337
  init_define_ASTRACODE_BUNDLED_SKILLS();
50315
50338
  var error19 = () => {
50316
50339
  const Sizable = {
@@ -50420,7 +50443,7 @@ function hu_default() {
50420
50443
  };
50421
50444
  }
50422
50445
 
50423
- // ../editor/node_modules/zod/v4/locales/hy.js
50446
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/hy.js
50424
50447
  init_define_ASTRACODE_BUNDLED_SKILLS();
50425
50448
  function getArmenianPlural(count, one, many) {
50426
50449
  return Math.abs(count) === 1 ? one : many;
@@ -50569,7 +50592,7 @@ function hy_default() {
50569
50592
  };
50570
50593
  }
50571
50594
 
50572
- // ../editor/node_modules/zod/v4/locales/id.js
50595
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/id.js
50573
50596
  init_define_ASTRACODE_BUNDLED_SKILLS();
50574
50597
  var error21 = () => {
50575
50598
  const Sizable = {
@@ -50677,7 +50700,7 @@ function id_default() {
50677
50700
  };
50678
50701
  }
50679
50702
 
50680
- // ../editor/node_modules/zod/v4/locales/is.js
50703
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/is.js
50681
50704
  init_define_ASTRACODE_BUNDLED_SKILLS();
50682
50705
  var error22 = () => {
50683
50706
  const Sizable = {
@@ -50788,7 +50811,7 @@ function is_default() {
50788
50811
  };
50789
50812
  }
50790
50813
 
50791
- // ../editor/node_modules/zod/v4/locales/it.js
50814
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/it.js
50792
50815
  init_define_ASTRACODE_BUNDLED_SKILLS();
50793
50816
  var error23 = () => {
50794
50817
  const Sizable = {
@@ -50898,7 +50921,7 @@ function it_default() {
50898
50921
  };
50899
50922
  }
50900
50923
 
50901
- // ../editor/node_modules/zod/v4/locales/ja.js
50924
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/ja.js
50902
50925
  init_define_ASTRACODE_BUNDLED_SKILLS();
50903
50926
  var error24 = () => {
50904
50927
  const Sizable = {
@@ -51007,7 +51030,7 @@ function ja_default() {
51007
51030
  };
51008
51031
  }
51009
51032
 
51010
- // ../editor/node_modules/zod/v4/locales/ka.js
51033
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/ka.js
51011
51034
  init_define_ASTRACODE_BUNDLED_SKILLS();
51012
51035
  var error25 = () => {
51013
51036
  const Sizable = {
@@ -51121,10 +51144,10 @@ function ka_default() {
51121
51144
  };
51122
51145
  }
51123
51146
 
51124
- // ../editor/node_modules/zod/v4/locales/kh.js
51147
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/kh.js
51125
51148
  init_define_ASTRACODE_BUNDLED_SKILLS();
51126
51149
 
51127
- // ../editor/node_modules/zod/v4/locales/km.js
51150
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/km.js
51128
51151
  init_define_ASTRACODE_BUNDLED_SKILLS();
51129
51152
  var error26 = () => {
51130
51153
  const Sizable = {
@@ -51236,12 +51259,12 @@ function km_default() {
51236
51259
  };
51237
51260
  }
51238
51261
 
51239
- // ../editor/node_modules/zod/v4/locales/kh.js
51262
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/kh.js
51240
51263
  function kh_default() {
51241
51264
  return km_default();
51242
51265
  }
51243
51266
 
51244
- // ../editor/node_modules/zod/v4/locales/ko.js
51267
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/ko.js
51245
51268
  init_define_ASTRACODE_BUNDLED_SKILLS();
51246
51269
  var error27 = () => {
51247
51270
  const Sizable = {
@@ -51354,7 +51377,7 @@ function ko_default() {
51354
51377
  };
51355
51378
  }
51356
51379
 
51357
- // ../editor/node_modules/zod/v4/locales/lt.js
51380
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/lt.js
51358
51381
  init_define_ASTRACODE_BUNDLED_SKILLS();
51359
51382
  var capitalizeFirstCharacter = (text2) => {
51360
51383
  return text2.charAt(0).toUpperCase() + text2.slice(1);
@@ -51559,7 +51582,7 @@ function lt_default() {
51559
51582
  };
51560
51583
  }
51561
51584
 
51562
- // ../editor/node_modules/zod/v4/locales/mk.js
51585
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/mk.js
51563
51586
  init_define_ASTRACODE_BUNDLED_SKILLS();
51564
51587
  var error29 = () => {
51565
51588
  const Sizable = {
@@ -51670,7 +51693,7 @@ function mk_default() {
51670
51693
  };
51671
51694
  }
51672
51695
 
51673
- // ../editor/node_modules/zod/v4/locales/ms.js
51696
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/ms.js
51674
51697
  init_define_ASTRACODE_BUNDLED_SKILLS();
51675
51698
  var error30 = () => {
51676
51699
  const Sizable = {
@@ -51779,7 +51802,7 @@ function ms_default() {
51779
51802
  };
51780
51803
  }
51781
51804
 
51782
- // ../editor/node_modules/zod/v4/locales/nl.js
51805
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/nl.js
51783
51806
  init_define_ASTRACODE_BUNDLED_SKILLS();
51784
51807
  var error31 = () => {
51785
51808
  const Sizable = {
@@ -51891,7 +51914,7 @@ function nl_default() {
51891
51914
  };
51892
51915
  }
51893
51916
 
51894
- // ../editor/node_modules/zod/v4/locales/no.js
51917
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/no.js
51895
51918
  init_define_ASTRACODE_BUNDLED_SKILLS();
51896
51919
  var error32 = () => {
51897
51920
  const Sizable = {
@@ -52001,7 +52024,7 @@ function no_default() {
52001
52024
  };
52002
52025
  }
52003
52026
 
52004
- // ../editor/node_modules/zod/v4/locales/ota.js
52027
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/ota.js
52005
52028
  init_define_ASTRACODE_BUNDLED_SKILLS();
52006
52029
  var error33 = () => {
52007
52030
  const Sizable = {
@@ -52112,7 +52135,7 @@ function ota_default() {
52112
52135
  };
52113
52136
  }
52114
52137
 
52115
- // ../editor/node_modules/zod/v4/locales/ps.js
52138
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/ps.js
52116
52139
  init_define_ASTRACODE_BUNDLED_SKILLS();
52117
52140
  var error34 = () => {
52118
52141
  const Sizable = {
@@ -52228,7 +52251,7 @@ function ps_default() {
52228
52251
  };
52229
52252
  }
52230
52253
 
52231
- // ../editor/node_modules/zod/v4/locales/pl.js
52254
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/pl.js
52232
52255
  init_define_ASTRACODE_BUNDLED_SKILLS();
52233
52256
  var error35 = () => {
52234
52257
  const Sizable = {
@@ -52339,7 +52362,7 @@ function pl_default() {
52339
52362
  };
52340
52363
  }
52341
52364
 
52342
- // ../editor/node_modules/zod/v4/locales/pt.js
52365
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/pt.js
52343
52366
  init_define_ASTRACODE_BUNDLED_SKILLS();
52344
52367
  var error36 = () => {
52345
52368
  const Sizable = {
@@ -52449,7 +52472,7 @@ function pt_default() {
52449
52472
  };
52450
52473
  }
52451
52474
 
52452
- // ../editor/node_modules/zod/v4/locales/ro.js
52475
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/ro.js
52453
52476
  init_define_ASTRACODE_BUNDLED_SKILLS();
52454
52477
  var error37 = () => {
52455
52478
  const Sizable = {
@@ -52570,7 +52593,7 @@ function ro_default() {
52570
52593
  };
52571
52594
  }
52572
52595
 
52573
- // ../editor/node_modules/zod/v4/locales/ru.js
52596
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/ru.js
52574
52597
  init_define_ASTRACODE_BUNDLED_SKILLS();
52575
52598
  function getRussianPlural(count, one, few, many) {
52576
52599
  const absCount = Math.abs(count);
@@ -52728,7 +52751,7 @@ function ru_default() {
52728
52751
  };
52729
52752
  }
52730
52753
 
52731
- // ../editor/node_modules/zod/v4/locales/sl.js
52754
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/sl.js
52732
52755
  init_define_ASTRACODE_BUNDLED_SKILLS();
52733
52756
  var error39 = () => {
52734
52757
  const Sizable = {
@@ -52839,7 +52862,7 @@ function sl_default() {
52839
52862
  };
52840
52863
  }
52841
52864
 
52842
- // ../editor/node_modules/zod/v4/locales/sv.js
52865
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/sv.js
52843
52866
  init_define_ASTRACODE_BUNDLED_SKILLS();
52844
52867
  var error40 = () => {
52845
52868
  const Sizable = {
@@ -52951,7 +52974,7 @@ function sv_default() {
52951
52974
  };
52952
52975
  }
52953
52976
 
52954
- // ../editor/node_modules/zod/v4/locales/ta.js
52977
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/ta.js
52955
52978
  init_define_ASTRACODE_BUNDLED_SKILLS();
52956
52979
  var error41 = () => {
52957
52980
  const Sizable = {
@@ -53063,7 +53086,7 @@ function ta_default() {
53063
53086
  };
53064
53087
  }
53065
53088
 
53066
- // ../editor/node_modules/zod/v4/locales/th.js
53089
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/th.js
53067
53090
  init_define_ASTRACODE_BUNDLED_SKILLS();
53068
53091
  var error42 = () => {
53069
53092
  const Sizable = {
@@ -53175,7 +53198,7 @@ function th_default() {
53175
53198
  };
53176
53199
  }
53177
53200
 
53178
- // ../editor/node_modules/zod/v4/locales/tr.js
53201
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/tr.js
53179
53202
  init_define_ASTRACODE_BUNDLED_SKILLS();
53180
53203
  var error43 = () => {
53181
53204
  const Sizable = {
@@ -53282,10 +53305,10 @@ function tr_default() {
53282
53305
  };
53283
53306
  }
53284
53307
 
53285
- // ../editor/node_modules/zod/v4/locales/ua.js
53308
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/ua.js
53286
53309
  init_define_ASTRACODE_BUNDLED_SKILLS();
53287
53310
 
53288
- // ../editor/node_modules/zod/v4/locales/uk.js
53311
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/uk.js
53289
53312
  init_define_ASTRACODE_BUNDLED_SKILLS();
53290
53313
  var error44 = () => {
53291
53314
  const Sizable = {
@@ -53395,12 +53418,12 @@ function uk_default() {
53395
53418
  };
53396
53419
  }
53397
53420
 
53398
- // ../editor/node_modules/zod/v4/locales/ua.js
53421
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/ua.js
53399
53422
  function ua_default() {
53400
53423
  return uk_default();
53401
53424
  }
53402
53425
 
53403
- // ../editor/node_modules/zod/v4/locales/ur.js
53426
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/ur.js
53404
53427
  init_define_ASTRACODE_BUNDLED_SKILLS();
53405
53428
  var error45 = () => {
53406
53429
  const Sizable = {
@@ -53512,7 +53535,7 @@ function ur_default() {
53512
53535
  };
53513
53536
  }
53514
53537
 
53515
- // ../editor/node_modules/zod/v4/locales/uz.js
53538
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/uz.js
53516
53539
  init_define_ASTRACODE_BUNDLED_SKILLS();
53517
53540
  var error46 = () => {
53518
53541
  const Sizable = {
@@ -53624,7 +53647,7 @@ function uz_default() {
53624
53647
  };
53625
53648
  }
53626
53649
 
53627
- // ../editor/node_modules/zod/v4/locales/vi.js
53650
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/vi.js
53628
53651
  init_define_ASTRACODE_BUNDLED_SKILLS();
53629
53652
  var error47 = () => {
53630
53653
  const Sizable = {
@@ -53734,7 +53757,7 @@ function vi_default() {
53734
53757
  };
53735
53758
  }
53736
53759
 
53737
- // ../editor/node_modules/zod/v4/locales/zh-CN.js
53760
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/zh-CN.js
53738
53761
  init_define_ASTRACODE_BUNDLED_SKILLS();
53739
53762
  var error48 = () => {
53740
53763
  const Sizable = {
@@ -53845,7 +53868,7 @@ function zh_CN_default() {
53845
53868
  };
53846
53869
  }
53847
53870
 
53848
- // ../editor/node_modules/zod/v4/locales/zh-TW.js
53871
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/zh-TW.js
53849
53872
  init_define_ASTRACODE_BUNDLED_SKILLS();
53850
53873
  var error49 = () => {
53851
53874
  const Sizable = {
@@ -53954,7 +53977,7 @@ function zh_TW_default() {
53954
53977
  };
53955
53978
  }
53956
53979
 
53957
- // ../editor/node_modules/zod/v4/locales/yo.js
53980
+ // ../../AstraCode/editor/node_modules/zod/v4/locales/yo.js
53958
53981
  init_define_ASTRACODE_BUNDLED_SKILLS();
53959
53982
  var error50 = () => {
53960
53983
  const Sizable = {
@@ -54063,7 +54086,7 @@ function yo_default() {
54063
54086
  };
54064
54087
  }
54065
54088
 
54066
- // ../editor/node_modules/zod/v4/core/registries.js
54089
+ // ../../AstraCode/editor/node_modules/zod/v4/core/registries.js
54067
54090
  init_define_ASTRACODE_BUNDLED_SKILLS();
54068
54091
  var _a3;
54069
54092
  var $output = /* @__PURE__ */ Symbol("ZodOutput");
@@ -54114,7 +54137,7 @@ function registry3() {
54114
54137
  (_a3 = globalThis).__zod_globalRegistry ?? (_a3.__zod_globalRegistry = registry3());
54115
54138
  var globalRegistry = globalThis.__zod_globalRegistry;
54116
54139
 
54117
- // ../editor/node_modules/zod/v4/core/api.js
54140
+ // ../../AstraCode/editor/node_modules/zod/v4/core/api.js
54118
54141
  init_define_ASTRACODE_BUNDLED_SKILLS();
54119
54142
  // @__NO_SIDE_EFFECTS__
54120
54143
  function _string(Class2, params) {
@@ -55154,7 +55177,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
55154
55177
  return inst;
55155
55178
  }
55156
55179
 
55157
- // ../editor/node_modules/zod/v4/core/to-json-schema.js
55180
+ // ../../AstraCode/editor/node_modules/zod/v4/core/to-json-schema.js
55158
55181
  init_define_ASTRACODE_BUNDLED_SKILLS();
55159
55182
  function initializeContext(params) {
55160
55183
  let target = params?.target ?? "draft-2020-12";
@@ -55514,7 +55537,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
55514
55537
  return finalize(ctx, schema);
55515
55538
  };
55516
55539
 
55517
- // ../editor/node_modules/zod/v4/core/json-schema-processors.js
55540
+ // ../../AstraCode/editor/node_modules/zod/v4/core/json-schema-processors.js
55518
55541
  init_define_ASTRACODE_BUNDLED_SKILLS();
55519
55542
  var formatMap = {
55520
55543
  guid: "uuid",
@@ -56059,7 +56082,7 @@ function toJSONSchema(input, params) {
56059
56082
  return finalize(ctx, input);
56060
56083
  }
56061
56084
 
56062
- // ../editor/node_modules/zod/v4/core/json-schema-generator.js
56085
+ // ../../AstraCode/editor/node_modules/zod/v4/core/json-schema-generator.js
56063
56086
  init_define_ASTRACODE_BUNDLED_SKILLS();
56064
56087
  var JSONSchemaGenerator = class {
56065
56088
  /** @deprecated Access via ctx instead */
@@ -56135,11 +56158,11 @@ var JSONSchemaGenerator = class {
56135
56158
  }
56136
56159
  };
56137
56160
 
56138
- // ../editor/node_modules/zod/v4/core/json-schema.js
56161
+ // ../../AstraCode/editor/node_modules/zod/v4/core/json-schema.js
56139
56162
  var json_schema_exports = {};
56140
56163
  init_define_ASTRACODE_BUNDLED_SKILLS();
56141
56164
 
56142
- // ../editor/node_modules/zod/v4/classic/schemas.js
56165
+ // ../../AstraCode/editor/node_modules/zod/v4/classic/schemas.js
56143
56166
  var schemas_exports2 = {};
56144
56167
  __export(schemas_exports2, {
56145
56168
  ZodAny: () => ZodAny,
@@ -56311,7 +56334,7 @@ __export(schemas_exports2, {
56311
56334
  });
56312
56335
  init_define_ASTRACODE_BUNDLED_SKILLS();
56313
56336
 
56314
- // ../editor/node_modules/zod/v4/classic/checks.js
56337
+ // ../../AstraCode/editor/node_modules/zod/v4/classic/checks.js
56315
56338
  var checks_exports2 = {};
56316
56339
  __export(checks_exports2, {
56317
56340
  endsWith: () => _endsWith,
@@ -56346,7 +56369,7 @@ __export(checks_exports2, {
56346
56369
  });
56347
56370
  init_define_ASTRACODE_BUNDLED_SKILLS();
56348
56371
 
56349
- // ../editor/node_modules/zod/v4/classic/iso.js
56372
+ // ../../AstraCode/editor/node_modules/zod/v4/classic/iso.js
56350
56373
  var iso_exports = {};
56351
56374
  __export(iso_exports, {
56352
56375
  ZodISODate: () => ZodISODate,
@@ -56388,10 +56411,10 @@ function duration2(params) {
56388
56411
  return _isoDuration(ZodISODuration, params);
56389
56412
  }
56390
56413
 
56391
- // ../editor/node_modules/zod/v4/classic/parse.js
56414
+ // ../../AstraCode/editor/node_modules/zod/v4/classic/parse.js
56392
56415
  init_define_ASTRACODE_BUNDLED_SKILLS();
56393
56416
 
56394
- // ../editor/node_modules/zod/v4/classic/errors.js
56417
+ // ../../AstraCode/editor/node_modules/zod/v4/classic/errors.js
56395
56418
  init_define_ASTRACODE_BUNDLED_SKILLS();
56396
56419
  var initializer2 = (inst, issues) => {
56397
56420
  $ZodError.init(inst, issues);
@@ -56432,7 +56455,7 @@ var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, {
56432
56455
  Parent: Error
56433
56456
  });
56434
56457
 
56435
- // ../editor/node_modules/zod/v4/classic/parse.js
56458
+ // ../../AstraCode/editor/node_modules/zod/v4/classic/parse.js
56436
56459
  var parse2 = /* @__PURE__ */ _parse(ZodRealError);
56437
56460
  var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
56438
56461
  var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
@@ -56446,7 +56469,7 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
56446
56469
  var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
56447
56470
  var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
56448
56471
 
56449
- // ../editor/node_modules/zod/v4/classic/schemas.js
56472
+ // ../../AstraCode/editor/node_modules/zod/v4/classic/schemas.js
56450
56473
  var _installedGroups = /* @__PURE__ */ new WeakMap();
56451
56474
  function _installLazyMethods(inst, group, methods2) {
56452
56475
  const proto = Object.getPrototypeOf(inst);
@@ -57736,7 +57759,7 @@ function preprocess(fn, schema) {
57736
57759
  });
57737
57760
  }
57738
57761
 
57739
- // ../editor/node_modules/zod/v4/classic/compat.js
57762
+ // ../../AstraCode/editor/node_modules/zod/v4/classic/compat.js
57740
57763
  init_define_ASTRACODE_BUNDLED_SKILLS();
57741
57764
  var ZodIssueCode = {
57742
57765
  invalid_type: "invalid_type",
@@ -57763,7 +57786,7 @@ var ZodFirstPartyTypeKind;
57763
57786
  /* @__PURE__ */ (function(ZodFirstPartyTypeKind2) {
57764
57787
  })(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
57765
57788
 
57766
- // ../editor/node_modules/zod/v4/classic/from-json-schema.js
57789
+ // ../../AstraCode/editor/node_modules/zod/v4/classic/from-json-schema.js
57767
57790
  init_define_ASTRACODE_BUNDLED_SKILLS();
57768
57791
  var z = {
57769
57792
  ...schemas_exports2,
@@ -58244,7 +58267,7 @@ function fromJSONSchema(schema, params) {
58244
58267
  return convertSchema(normalized, ctx);
58245
58268
  }
58246
58269
 
58247
- // ../editor/node_modules/zod/v4/classic/coerce.js
58270
+ // ../../AstraCode/editor/node_modules/zod/v4/classic/coerce.js
58248
58271
  var coerce_exports = {};
58249
58272
  __export(coerce_exports, {
58250
58273
  bigint: () => bigint3,
@@ -58270,10 +58293,10 @@ function date4(params) {
58270
58293
  return _coercedDate(ZodDate, params);
58271
58294
  }
58272
58295
 
58273
- // ../editor/node_modules/zod/v4/classic/external.js
58296
+ // ../../AstraCode/editor/node_modules/zod/v4/classic/external.js
58274
58297
  config2(en_default());
58275
58298
 
58276
- // ../editor/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.js
58299
+ // ../../AstraCode/editor/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.js
58277
58300
  var skippedItem = /* @__PURE__ */ Symbol("skippedItem");
58278
58301
  function defaultOnError(schema, fallback) {
58279
58302
  return schema.catch(fallback);
@@ -58336,7 +58359,7 @@ function vecSkipError(itemSchema) {
58336
58359
  return external_exports.array(itemSchema.catch(skippedItem)).transform((items) => items.filter((item) => item !== skippedItem));
58337
58360
  }
58338
58361
 
58339
- // ../editor/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.js
58362
+ // ../../AstraCode/editor/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.js
58340
58363
  var zRequestId = union([number2(), string2()]).nullable();
58341
58364
  var zSessionId = string2();
58342
58365
  var zWriteTextFileRequest = object({
@@ -59961,10 +59984,10 @@ var zCancelRequestNotification = object({
59961
59984
  _meta: defaultOnError(record2(string2(), unknown()).nullish(), () => void 0)
59962
59985
  });
59963
59986
 
59964
- // ../editor/node_modules/@agentclientprotocol/sdk/dist/stream.js
59987
+ // ../../AstraCode/editor/node_modules/@agentclientprotocol/sdk/dist/stream.js
59965
59988
  init_define_ASTRACODE_BUNDLED_SKILLS();
59966
59989
 
59967
- // ../editor/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.js
59990
+ // ../../AstraCode/editor/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.js
59968
59991
  init_define_ASTRACODE_BUNDLED_SKILLS();
59969
59992
  var CANCEL_REQUEST_METHOD = "$/cancel_request";
59970
59993
  function isRequestMessage(value) {
@@ -60887,7 +60910,7 @@ function protocolErrorResponse(error51) {
60887
60910
  };
60888
60911
  }
60889
60912
 
60890
- // ../editor/node_modules/@agentclientprotocol/sdk/dist/line-buffer.js
60913
+ // ../../AstraCode/editor/node_modules/@agentclientprotocol/sdk/dist/line-buffer.js
60891
60914
  init_define_ASTRACODE_BUNDLED_SKILLS();
60892
60915
  var newline = 10;
60893
60916
  var LineBuffer = class {
@@ -60941,7 +60964,7 @@ var LineBuffer = class {
60941
60964
  }
60942
60965
  };
60943
60966
 
60944
- // ../editor/node_modules/@agentclientprotocol/sdk/dist/stream.js
60967
+ // ../../AstraCode/editor/node_modules/@agentclientprotocol/sdk/dist/stream.js
60945
60968
  function ndJsonStream(output, input) {
60946
60969
  const textEncoder = new TextEncoder();
60947
60970
  const textDecoder = new TextDecoder();
@@ -61041,7 +61064,7 @@ function ndJsonStream(output, input) {
61041
61064
  return { readable: readable2, writable };
61042
61065
  }
61043
61066
 
61044
- // ../editor/node_modules/@agentclientprotocol/sdk/dist/schema/guards.gen.js
61067
+ // ../../AstraCode/editor/node_modules/@agentclientprotocol/sdk/dist/schema/guards.gen.js
61045
61068
  init_define_ASTRACODE_BUNDLED_SKILLS();
61046
61069
  var zGuardCreateElicitationRequestForm = zElicitationFormMode.and(object({ mode: literal("form") })).and(object({ message: string2() }));
61047
61070
  var zGuardCreateElicitationRequestUrl = zElicitationUrlMode.and(object({ mode: literal("url") })).and(object({ message: string2() }));
@@ -61060,7 +61083,7 @@ var zGuardCreateElicitationResponseCancel = object({
61060
61083
  action: literal("cancel")
61061
61084
  });
61062
61085
 
61063
- // ../editor/node_modules/@agentclientprotocol/sdk/dist/acp.js
61086
+ // ../../AstraCode/editor/node_modules/@agentclientprotocol/sdk/dist/acp.js
61064
61087
  function ndJsonStream2(output, input) {
61065
61088
  return ndJsonStream(output, input);
61066
61089
  }
@@ -62230,10 +62253,10 @@ function findRipgrep() {
62230
62253
  function keyFingerprint(key) {
62231
62254
  return (0, import_node_crypto10.createHash)("sha256").update(key).digest("hex").slice(0, 16);
62232
62255
  }
62233
- function identityFrom(token, via) {
62256
+ function identityFrom(token2, via) {
62234
62257
  if (via === "api-key") return { via };
62235
62258
  try {
62236
- const claims = JSON.parse(Buffer.from(token.split(".")[1] ?? "", "base64url").toString("utf8"));
62259
+ const claims = JSON.parse(Buffer.from(token2.split(".")[1] ?? "", "base64url").toString("utf8"));
62237
62260
  const str5 = (k) => typeof claims[k] === "string" && claims[k] ? claims[k] : void 0;
62238
62261
  return { via, email: str5("email") ?? str5("sub"), plan: str5("astracode_plan"), org: str5("org") };
62239
62262
  } catch {
@@ -62253,6 +62276,7 @@ async function openHost(opts) {
62253
62276
  if (!credential.ok) return { ok: false, message: credential.message, code: 2 };
62254
62277
  opts.log(`signed in with ${credential.source === "api-key" ? "ASTRACODE_API_KEY" : "the saved session"}`);
62255
62278
  const credentials = { ssoToken: credential.token };
62279
+ useSearchToken(() => credentials.ssoToken);
62256
62280
  const catalogue2 = await fetchModelCatalogue(credentials);
62257
62281
  const auto = resolveAutoConfig({ mode: "balance" }, catalogue2, opts.log);
62258
62282
  const rules = await loadProjectRules();
@@ -63011,20 +63035,23 @@ function runGit(args2, opts = {}) {
63011
63035
  function isSha(value) {
63012
63036
  return !!value && /^[0-9a-f]{40}$/i.test(value);
63013
63037
  }
63038
+ function isLocalPath(u) {
63039
+ return u.startsWith("/") || /^[A-Za-z]:[\\/]/.test(u) || u.startsWith("\\\\");
63040
+ }
63014
63041
  function gitUrlProblem(url2, allowLocal) {
63015
63042
  const u = url2.trim();
63016
63043
  if (!u) return "the url is empty";
63017
63044
  if (u.startsWith("-")) return `"${u}" starts with "-", which git would read as an option`;
63018
63045
  if (/^[A-Za-z][A-Za-z0-9+.-]*::/.test(u))
63019
63046
  return `"${u}" names a git remote helper, which runs a program; refused`;
63020
- if (u.startsWith("/"))
63047
+ if (isLocalPath(u))
63021
63048
  return allowLocal ? void 0 : `"${u}" is a path on this machine; only a marketplace you add yourself may be local`;
63022
63049
  if (/\s/.test(u)) return `"${u}" contains whitespace`;
63023
63050
  if (/^https:\/\//i.test(u)) return void 0;
63024
63051
  if (/^ssh:\/\//i.test(u)) return void 0;
63025
63052
  if (/^[A-Za-z0-9._-]+@[A-Za-z0-9.-]+:[^/\\]/.test(u)) return void 0;
63026
63053
  if (/^http:\/\/(localhost|127\.0\.0\.1|\[::1\])(:\d+)?\//i.test(u)) return void 0;
63027
- if (/^file:\/\//i.test(u) || u.startsWith("/"))
63054
+ if (/^file:\/\//i.test(u))
63028
63055
  return allowLocal ? void 0 : `"${u}" is a path on this machine; only a marketplace you add yourself may be local`;
63029
63056
  return `"${u}" is not an https, ssh or git@ url`;
63030
63057
  }
@@ -63594,10 +63621,10 @@ async function uninstall(id, opts = {}) {
63594
63621
  if (!record3) throw new Error(`${id} is not installed`);
63595
63622
  if (record3.org === "required" && !opts.org)
63596
63623
  throw new Error(`${id} is required by your organisation and cannot be uninstalled`);
63597
- const secrets4 = pluginSecrets();
63598
- if (secrets4) {
63624
+ const secrets3 = pluginSecrets();
63625
+ if (secrets3) {
63599
63626
  for (const o of optionsOf(record3)) {
63600
- if (o.sensitive) await Promise.resolve(secrets4.delete(secretKey(id, o.key))).catch(() => void 0);
63627
+ if (o.sensitive) await Promise.resolve(secrets3.delete(secretKey(id, o.key))).catch(() => void 0);
63601
63628
  }
63602
63629
  }
63603
63630
  updateState((s) => {
@@ -68222,9 +68249,9 @@ function eventsUrl(url2) {
68222
68249
  return `${url2.replace(/\/+$/, "")}/events`;
68223
68250
  }
68224
68251
  var RunReporter = class {
68225
- constructor(url2, token, opts = {}) {
68252
+ constructor(url2, token2, opts = {}) {
68226
68253
  this.url = url2;
68227
- this.token = token;
68254
+ this.token = token2;
68228
68255
  this.opts = opts;
68229
68256
  this.fetchImpl = opts.fetch ?? fetch;
68230
68257
  }
@@ -68331,7 +68358,7 @@ var RunReporter = class {
68331
68358
 
68332
68359
  // ../editor/src/cli/main.ts
68333
68360
  var readline5 = __toESM(require("node:readline"));
68334
- var VERSION2 = true ? "0.5.0" : "dev";
68361
+ var VERSION2 = true ? "0.5.1" : "dev";
68335
68362
  function readStdin() {
68336
68363
  return new Promise((resolve22, reject) => {
68337
68364
  const chunks = [];