@locusai/cli 0.13.0 → 0.13.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/bin/agent/worker.js +561 -222
  2. package/bin/locus.js +1677 -617
  3. package/package.json +3 -3
@@ -28,7 +28,7 @@ var __export = (target, all) => {
28
28
  var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
29
29
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
30
30
 
31
- // ../../node_modules/zod/v4/core/core.js
31
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/core.js
32
32
  function $constructor(name, initializer, params) {
33
33
  function init(inst, def) {
34
34
  if (!inst._zod) {
@@ -106,7 +106,7 @@ var init_core = __esm(() => {
106
106
  globalConfig = {};
107
107
  });
108
108
 
109
- // ../../node_modules/zod/v4/core/util.js
109
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/util.js
110
110
  var exports_util = {};
111
111
  __export(exports_util, {
112
112
  unwrapMessage: () => unwrapMessage,
@@ -782,7 +782,7 @@ var init_util = __esm(() => {
782
782
  };
783
783
  });
784
784
 
785
- // ../../node_modules/zod/v4/core/errors.js
785
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/errors.js
786
786
  function flattenError(error, mapper = (issue2) => issue2.message) {
787
787
  const fieldErrors = {};
788
788
  const formErrors = [];
@@ -923,7 +923,7 @@ var init_errors = __esm(() => {
923
923
  $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
924
924
  });
925
925
 
926
- // ../../node_modules/zod/v4/core/parse.js
926
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/parse.js
927
927
  var _parse = (_Err) => (schema, value, _ctx, _params) => {
928
928
  const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
929
929
  const result = schema._zod.run({ value, issues: [] }, ctx);
@@ -1005,7 +1005,7 @@ var init_parse = __esm(() => {
1005
1005
  safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
1006
1006
  });
1007
1007
 
1008
- // ../../node_modules/zod/v4/core/regexes.js
1008
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/regexes.js
1009
1009
  var exports_regexes = {};
1010
1010
  __export(exports_regexes, {
1011
1011
  xid: () => xid,
@@ -1161,7 +1161,7 @@ var init_regexes = __esm(() => {
1161
1161
  sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
1162
1162
  });
1163
1163
 
1164
- // ../../node_modules/zod/v4/core/checks.js
1164
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/checks.js
1165
1165
  function handleCheckPropertyResult(result, payload, property) {
1166
1166
  if (result.issues.length) {
1167
1167
  payload.issues.push(...prefixIssues(property, result.issues));
@@ -1714,7 +1714,7 @@ var init_checks = __esm(() => {
1714
1714
  });
1715
1715
  });
1716
1716
 
1717
- // ../../node_modules/zod/v4/core/doc.js
1717
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/doc.js
1718
1718
  class Doc {
1719
1719
  constructor(args = []) {
1720
1720
  this.content = [];
@@ -1752,7 +1752,7 @@ class Doc {
1752
1752
  }
1753
1753
  }
1754
1754
 
1755
- // ../../node_modules/zod/v4/core/versions.js
1755
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/versions.js
1756
1756
  var version;
1757
1757
  var init_versions = __esm(() => {
1758
1758
  version = {
@@ -1762,7 +1762,7 @@ var init_versions = __esm(() => {
1762
1762
  };
1763
1763
  });
1764
1764
 
1765
- // ../../node_modules/zod/v4/core/schemas.js
1765
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/schemas.js
1766
1766
  function isValidBase64(data) {
1767
1767
  if (data === "")
1768
1768
  return true;
@@ -3735,7 +3735,7 @@ var init_schemas = __esm(() => {
3735
3735
  });
3736
3736
  });
3737
3737
 
3738
- // ../../node_modules/zod/v4/locales/ar.js
3738
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ar.js
3739
3739
  function ar_default() {
3740
3740
  return {
3741
3741
  localeError: error()
@@ -3845,7 +3845,7 @@ var init_ar = __esm(() => {
3845
3845
  init_util();
3846
3846
  });
3847
3847
 
3848
- // ../../node_modules/zod/v4/locales/az.js
3848
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/az.js
3849
3849
  function az_default() {
3850
3850
  return {
3851
3851
  localeError: error2()
@@ -3954,7 +3954,7 @@ var init_az = __esm(() => {
3954
3954
  init_util();
3955
3955
  });
3956
3956
 
3957
- // ../../node_modules/zod/v4/locales/be.js
3957
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/be.js
3958
3958
  function getBelarusianPlural(count, one, few, many) {
3959
3959
  const absCount = Math.abs(count);
3960
3960
  const lastDigit = absCount % 10;
@@ -4114,7 +4114,7 @@ var init_be = __esm(() => {
4114
4114
  init_util();
4115
4115
  });
4116
4116
 
4117
- // ../../node_modules/zod/v4/locales/bg.js
4117
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/bg.js
4118
4118
  function bg_default() {
4119
4119
  return {
4120
4120
  localeError: error4()
@@ -4238,7 +4238,7 @@ var init_bg = __esm(() => {
4238
4238
  init_util();
4239
4239
  });
4240
4240
 
4241
- // ../../node_modules/zod/v4/locales/ca.js
4241
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ca.js
4242
4242
  function ca_default() {
4243
4243
  return {
4244
4244
  localeError: error5()
@@ -4349,7 +4349,7 @@ var init_ca = __esm(() => {
4349
4349
  init_util();
4350
4350
  });
4351
4351
 
4352
- // ../../node_modules/zod/v4/locales/cs.js
4352
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/cs.js
4353
4353
  function cs_default() {
4354
4354
  return {
4355
4355
  localeError: error6()
@@ -4464,7 +4464,7 @@ var init_cs = __esm(() => {
4464
4464
  init_util();
4465
4465
  });
4466
4466
 
4467
- // ../../node_modules/zod/v4/locales/da.js
4467
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/da.js
4468
4468
  function da_default() {
4469
4469
  return {
4470
4470
  localeError: error7()
@@ -4583,7 +4583,7 @@ var init_da = __esm(() => {
4583
4583
  init_util();
4584
4584
  });
4585
4585
 
4586
- // ../../node_modules/zod/v4/locales/de.js
4586
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/de.js
4587
4587
  function de_default() {
4588
4588
  return {
4589
4589
  localeError: error8()
@@ -4695,7 +4695,7 @@ var init_de = __esm(() => {
4695
4695
  init_util();
4696
4696
  });
4697
4697
 
4698
- // ../../node_modules/zod/v4/locales/en.js
4698
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/en.js
4699
4699
  function en_default() {
4700
4700
  return {
4701
4701
  localeError: error9()
@@ -4805,7 +4805,7 @@ var init_en = __esm(() => {
4805
4805
  init_util();
4806
4806
  });
4807
4807
 
4808
- // ../../node_modules/zod/v4/locales/eo.js
4808
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/eo.js
4809
4809
  function eo_default() {
4810
4810
  return {
4811
4811
  localeError: error10()
@@ -4918,7 +4918,7 @@ var init_eo = __esm(() => {
4918
4918
  init_util();
4919
4919
  });
4920
4920
 
4921
- // ../../node_modules/zod/v4/locales/es.js
4921
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/es.js
4922
4922
  function es_default() {
4923
4923
  return {
4924
4924
  localeError: error11()
@@ -5054,7 +5054,7 @@ var init_es = __esm(() => {
5054
5054
  init_util();
5055
5055
  });
5056
5056
 
5057
- // ../../node_modules/zod/v4/locales/fa.js
5057
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/fa.js
5058
5058
  function fa_default() {
5059
5059
  return {
5060
5060
  localeError: error12()
@@ -5172,7 +5172,7 @@ var init_fa = __esm(() => {
5172
5172
  init_util();
5173
5173
  });
5174
5174
 
5175
- // ../../node_modules/zod/v4/locales/fi.js
5175
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/fi.js
5176
5176
  function fi_default() {
5177
5177
  return {
5178
5178
  localeError: error13()
@@ -5288,7 +5288,7 @@ var init_fi = __esm(() => {
5288
5288
  init_util();
5289
5289
  });
5290
5290
 
5291
- // ../../node_modules/zod/v4/locales/fr.js
5291
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/fr.js
5292
5292
  function fr_default() {
5293
5293
  return {
5294
5294
  localeError: error14()
@@ -5400,7 +5400,7 @@ var init_fr = __esm(() => {
5400
5400
  init_util();
5401
5401
  });
5402
5402
 
5403
- // ../../node_modules/zod/v4/locales/fr-CA.js
5403
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/fr-CA.js
5404
5404
  function fr_CA_default() {
5405
5405
  return {
5406
5406
  localeError: error15()
@@ -5511,7 +5511,7 @@ var init_fr_CA = __esm(() => {
5511
5511
  init_util();
5512
5512
  });
5513
5513
 
5514
- // ../../node_modules/zod/v4/locales/he.js
5514
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/he.js
5515
5515
  function he_default() {
5516
5516
  return {
5517
5517
  localeError: error16()
@@ -5708,7 +5708,7 @@ var init_he = __esm(() => {
5708
5708
  init_util();
5709
5709
  });
5710
5710
 
5711
- // ../../node_modules/zod/v4/locales/hu.js
5711
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/hu.js
5712
5712
  function hu_default() {
5713
5713
  return {
5714
5714
  localeError: error17()
@@ -5820,7 +5820,7 @@ var init_hu = __esm(() => {
5820
5820
  init_util();
5821
5821
  });
5822
5822
 
5823
- // ../../node_modules/zod/v4/locales/hy.js
5823
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/hy.js
5824
5824
  function getArmenianPlural(count, one, many) {
5825
5825
  return Math.abs(count) === 1 ? one : many;
5826
5826
  }
@@ -5971,7 +5971,7 @@ var init_hy = __esm(() => {
5971
5971
  init_util();
5972
5972
  });
5973
5973
 
5974
- // ../../node_modules/zod/v4/locales/id.js
5974
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/id.js
5975
5975
  function id_default() {
5976
5976
  return {
5977
5977
  localeError: error19()
@@ -6081,7 +6081,7 @@ var init_id = __esm(() => {
6081
6081
  init_util();
6082
6082
  });
6083
6083
 
6084
- // ../../node_modules/zod/v4/locales/is.js
6084
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/is.js
6085
6085
  function is_default() {
6086
6086
  return {
6087
6087
  localeError: error20()
@@ -6194,7 +6194,7 @@ var init_is = __esm(() => {
6194
6194
  init_util();
6195
6195
  });
6196
6196
 
6197
- // ../../node_modules/zod/v4/locales/it.js
6197
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/it.js
6198
6198
  function it_default() {
6199
6199
  return {
6200
6200
  localeError: error21()
@@ -6306,7 +6306,7 @@ var init_it = __esm(() => {
6306
6306
  init_util();
6307
6307
  });
6308
6308
 
6309
- // ../../node_modules/zod/v4/locales/ja.js
6309
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ja.js
6310
6310
  function ja_default() {
6311
6311
  return {
6312
6312
  localeError: error22()
@@ -6417,7 +6417,7 @@ var init_ja = __esm(() => {
6417
6417
  init_util();
6418
6418
  });
6419
6419
 
6420
- // ../../node_modules/zod/v4/locales/ka.js
6420
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ka.js
6421
6421
  function ka_default() {
6422
6422
  return {
6423
6423
  localeError: error23()
@@ -6533,7 +6533,7 @@ var init_ka = __esm(() => {
6533
6533
  init_util();
6534
6534
  });
6535
6535
 
6536
- // ../../node_modules/zod/v4/locales/km.js
6536
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/km.js
6537
6537
  function km_default() {
6538
6538
  return {
6539
6539
  localeError: error24()
@@ -6647,7 +6647,7 @@ var init_km = __esm(() => {
6647
6647
  init_util();
6648
6648
  });
6649
6649
 
6650
- // ../../node_modules/zod/v4/locales/kh.js
6650
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/kh.js
6651
6651
  function kh_default() {
6652
6652
  return km_default();
6653
6653
  }
@@ -6655,7 +6655,7 @@ var init_kh = __esm(() => {
6655
6655
  init_km();
6656
6656
  });
6657
6657
 
6658
- // ../../node_modules/zod/v4/locales/ko.js
6658
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ko.js
6659
6659
  function ko_default() {
6660
6660
  return {
6661
6661
  localeError: error25()
@@ -6770,7 +6770,7 @@ var init_ko = __esm(() => {
6770
6770
  init_util();
6771
6771
  });
6772
6772
 
6773
- // ../../node_modules/zod/v4/locales/lt.js
6773
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/lt.js
6774
6774
  function getUnitTypeFromNumber(number2) {
6775
6775
  const abs = Math.abs(number2);
6776
6776
  const last = abs % 10;
@@ -6976,7 +6976,7 @@ var init_lt = __esm(() => {
6976
6976
  init_util();
6977
6977
  });
6978
6978
 
6979
- // ../../node_modules/zod/v4/locales/mk.js
6979
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/mk.js
6980
6980
  function mk_default() {
6981
6981
  return {
6982
6982
  localeError: error27()
@@ -7089,7 +7089,7 @@ var init_mk = __esm(() => {
7089
7089
  init_util();
7090
7090
  });
7091
7091
 
7092
- // ../../node_modules/zod/v4/locales/ms.js
7092
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ms.js
7093
7093
  function ms_default() {
7094
7094
  return {
7095
7095
  localeError: error28()
@@ -7200,7 +7200,7 @@ var init_ms = __esm(() => {
7200
7200
  init_util();
7201
7201
  });
7202
7202
 
7203
- // ../../node_modules/zod/v4/locales/nl.js
7203
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/nl.js
7204
7204
  function nl_default() {
7205
7205
  return {
7206
7206
  localeError: error29()
@@ -7314,7 +7314,7 @@ var init_nl = __esm(() => {
7314
7314
  init_util();
7315
7315
  });
7316
7316
 
7317
- // ../../node_modules/zod/v4/locales/no.js
7317
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/no.js
7318
7318
  function no_default() {
7319
7319
  return {
7320
7320
  localeError: error30()
@@ -7426,7 +7426,7 @@ var init_no = __esm(() => {
7426
7426
  init_util();
7427
7427
  });
7428
7428
 
7429
- // ../../node_modules/zod/v4/locales/ota.js
7429
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ota.js
7430
7430
  function ota_default() {
7431
7431
  return {
7432
7432
  localeError: error31()
@@ -7539,7 +7539,7 @@ var init_ota = __esm(() => {
7539
7539
  init_util();
7540
7540
  });
7541
7541
 
7542
- // ../../node_modules/zod/v4/locales/ps.js
7542
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ps.js
7543
7543
  function ps_default() {
7544
7544
  return {
7545
7545
  localeError: error32()
@@ -7657,7 +7657,7 @@ var init_ps = __esm(() => {
7657
7657
  init_util();
7658
7658
  });
7659
7659
 
7660
- // ../../node_modules/zod/v4/locales/pl.js
7660
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/pl.js
7661
7661
  function pl_default() {
7662
7662
  return {
7663
7663
  localeError: error33()
@@ -7770,7 +7770,7 @@ var init_pl = __esm(() => {
7770
7770
  init_util();
7771
7771
  });
7772
7772
 
7773
- // ../../node_modules/zod/v4/locales/pt.js
7773
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/pt.js
7774
7774
  function pt_default() {
7775
7775
  return {
7776
7776
  localeError: error34()
@@ -7882,7 +7882,7 @@ var init_pt = __esm(() => {
7882
7882
  init_util();
7883
7883
  });
7884
7884
 
7885
- // ../../node_modules/zod/v4/locales/ru.js
7885
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ru.js
7886
7886
  function getRussianPlural(count, one, few, many) {
7887
7887
  const absCount = Math.abs(count);
7888
7888
  const lastDigit = absCount % 10;
@@ -8042,7 +8042,7 @@ var init_ru = __esm(() => {
8042
8042
  init_util();
8043
8043
  });
8044
8044
 
8045
- // ../../node_modules/zod/v4/locales/sl.js
8045
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/sl.js
8046
8046
  function sl_default() {
8047
8047
  return {
8048
8048
  localeError: error36()
@@ -8155,7 +8155,7 @@ var init_sl = __esm(() => {
8155
8155
  init_util();
8156
8156
  });
8157
8157
 
8158
- // ../../node_modules/zod/v4/locales/sv.js
8158
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/sv.js
8159
8159
  function sv_default() {
8160
8160
  return {
8161
8161
  localeError: error37()
@@ -8269,7 +8269,7 @@ var init_sv = __esm(() => {
8269
8269
  init_util();
8270
8270
  });
8271
8271
 
8272
- // ../../node_modules/zod/v4/locales/ta.js
8272
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ta.js
8273
8273
  function ta_default() {
8274
8274
  return {
8275
8275
  localeError: error38()
@@ -8383,7 +8383,7 @@ var init_ta = __esm(() => {
8383
8383
  init_util();
8384
8384
  });
8385
8385
 
8386
- // ../../node_modules/zod/v4/locales/th.js
8386
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/th.js
8387
8387
  function th_default() {
8388
8388
  return {
8389
8389
  localeError: error39()
@@ -8497,7 +8497,7 @@ var init_th = __esm(() => {
8497
8497
  init_util();
8498
8498
  });
8499
8499
 
8500
- // ../../node_modules/zod/v4/locales/tr.js
8500
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/tr.js
8501
8501
  function tr_default() {
8502
8502
  return {
8503
8503
  localeError: error40()
@@ -8606,7 +8606,7 @@ var init_tr = __esm(() => {
8606
8606
  init_util();
8607
8607
  });
8608
8608
 
8609
- // ../../node_modules/zod/v4/locales/uk.js
8609
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/uk.js
8610
8610
  function uk_default() {
8611
8611
  return {
8612
8612
  localeError: error41()
@@ -8718,7 +8718,7 @@ var init_uk = __esm(() => {
8718
8718
  init_util();
8719
8719
  });
8720
8720
 
8721
- // ../../node_modules/zod/v4/locales/ua.js
8721
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ua.js
8722
8722
  function ua_default() {
8723
8723
  return uk_default();
8724
8724
  }
@@ -8726,7 +8726,7 @@ var init_ua = __esm(() => {
8726
8726
  init_uk();
8727
8727
  });
8728
8728
 
8729
- // ../../node_modules/zod/v4/locales/ur.js
8729
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ur.js
8730
8730
  function ur_default() {
8731
8731
  return {
8732
8732
  localeError: error42()
@@ -8840,7 +8840,7 @@ var init_ur = __esm(() => {
8840
8840
  init_util();
8841
8841
  });
8842
8842
 
8843
- // ../../node_modules/zod/v4/locales/uz.js
8843
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/uz.js
8844
8844
  function uz_default() {
8845
8845
  return {
8846
8846
  localeError: error43()
@@ -8953,7 +8953,7 @@ var init_uz = __esm(() => {
8953
8953
  init_util();
8954
8954
  });
8955
8955
 
8956
- // ../../node_modules/zod/v4/locales/vi.js
8956
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/vi.js
8957
8957
  function vi_default() {
8958
8958
  return {
8959
8959
  localeError: error44()
@@ -9065,7 +9065,7 @@ var init_vi = __esm(() => {
9065
9065
  init_util();
9066
9066
  });
9067
9067
 
9068
- // ../../node_modules/zod/v4/locales/zh-CN.js
9068
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/zh-CN.js
9069
9069
  function zh_CN_default() {
9070
9070
  return {
9071
9071
  localeError: error45()
@@ -9178,7 +9178,7 @@ var init_zh_CN = __esm(() => {
9178
9178
  init_util();
9179
9179
  });
9180
9180
 
9181
- // ../../node_modules/zod/v4/locales/zh-TW.js
9181
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/zh-TW.js
9182
9182
  function zh_TW_default() {
9183
9183
  return {
9184
9184
  localeError: error46()
@@ -9289,7 +9289,7 @@ var init_zh_TW = __esm(() => {
9289
9289
  init_util();
9290
9290
  });
9291
9291
 
9292
- // ../../node_modules/zod/v4/locales/yo.js
9292
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/yo.js
9293
9293
  function yo_default() {
9294
9294
  return {
9295
9295
  localeError: error47()
@@ -9400,7 +9400,7 @@ var init_yo = __esm(() => {
9400
9400
  init_util();
9401
9401
  });
9402
9402
 
9403
- // ../../node_modules/zod/v4/locales/index.js
9403
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/index.js
9404
9404
  var exports_locales = {};
9405
9405
  __export(exports_locales, {
9406
9406
  zhTW: () => zh_TW_default,
@@ -9505,7 +9505,7 @@ var init_locales = __esm(() => {
9505
9505
  init_yo();
9506
9506
  });
9507
9507
 
9508
- // ../../node_modules/zod/v4/core/registries.js
9508
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/registries.js
9509
9509
  class $ZodRegistry {
9510
9510
  constructor() {
9511
9511
  this._map = new WeakMap;
@@ -9557,7 +9557,7 @@ var init_registries = __esm(() => {
9557
9557
  globalRegistry = globalThis.__zod_globalRegistry;
9558
9558
  });
9559
9559
 
9560
- // ../../node_modules/zod/v4/core/api.js
9560
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/api.js
9561
9561
  function _string(Class2, params) {
9562
9562
  return new Class2({
9563
9563
  type: "string",
@@ -10485,7 +10485,7 @@ var init_api = __esm(() => {
10485
10485
  };
10486
10486
  });
10487
10487
 
10488
- // ../../node_modules/zod/v4/core/to-json-schema.js
10488
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.js
10489
10489
  function initializeContext(params) {
10490
10490
  let target = params?.target ?? "draft-2020-12";
10491
10491
  if (target === "draft-4")
@@ -10833,7 +10833,7 @@ var init_to_json_schema = __esm(() => {
10833
10833
  init_registries();
10834
10834
  });
10835
10835
 
10836
- // ../../node_modules/zod/v4/core/json-schema-processors.js
10836
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/json-schema-processors.js
10837
10837
  function toJSONSchema(input, params) {
10838
10838
  if ("_idmap" in input) {
10839
10839
  const registry2 = input;
@@ -11345,7 +11345,7 @@ var init_json_schema_processors = __esm(() => {
11345
11345
  };
11346
11346
  });
11347
11347
 
11348
- // ../../node_modules/zod/v4/core/json-schema-generator.js
11348
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/json-schema-generator.js
11349
11349
  class JSONSchemaGenerator {
11350
11350
  get metadataRegistry() {
11351
11351
  return this.ctx.metadataRegistry;
@@ -11409,11 +11409,11 @@ var init_json_schema_generator = __esm(() => {
11409
11409
  init_to_json_schema();
11410
11410
  });
11411
11411
 
11412
- // ../../node_modules/zod/v4/core/json-schema.js
11412
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/json-schema.js
11413
11413
  var exports_json_schema = {};
11414
11414
  var init_json_schema = () => {};
11415
11415
 
11416
- // ../../node_modules/zod/v4/core/index.js
11416
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/index.js
11417
11417
  var exports_core2 = {};
11418
11418
  __export(exports_core2, {
11419
11419
  version: () => version,
@@ -11708,7 +11708,7 @@ var init_core2 = __esm(() => {
11708
11708
  init_to_json_schema();
11709
11709
  });
11710
11710
 
11711
- // ../../node_modules/zod/v4/classic/checks.js
11711
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/checks.js
11712
11712
  var exports_checks2 = {};
11713
11713
  __export(exports_checks2, {
11714
11714
  uppercase: () => _uppercase,
@@ -11745,7 +11745,7 @@ var init_checks2 = __esm(() => {
11745
11745
  init_core2();
11746
11746
  });
11747
11747
 
11748
- // ../../node_modules/zod/v4/classic/iso.js
11748
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/iso.js
11749
11749
  var exports_iso = {};
11750
11750
  __export(exports_iso, {
11751
11751
  time: () => time2,
@@ -11791,7 +11791,7 @@ var init_iso = __esm(() => {
11791
11791
  });
11792
11792
  });
11793
11793
 
11794
- // ../../node_modules/zod/v4/classic/errors.js
11794
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/errors.js
11795
11795
  var initializer2 = (inst, issues) => {
11796
11796
  $ZodError.init(inst, issues);
11797
11797
  inst.name = "ZodError";
@@ -11831,7 +11831,7 @@ var init_errors2 = __esm(() => {
11831
11831
  });
11832
11832
  });
11833
11833
 
11834
- // ../../node_modules/zod/v4/classic/parse.js
11834
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/parse.js
11835
11835
  var parse3, parseAsync2, safeParse2, safeParseAsync2, encode2, decode2, encodeAsync2, decodeAsync2, safeEncode2, safeDecode2, safeEncodeAsync2, safeDecodeAsync2;
11836
11836
  var init_parse2 = __esm(() => {
11837
11837
  init_core2();
@@ -11850,7 +11850,7 @@ var init_parse2 = __esm(() => {
11850
11850
  safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
11851
11851
  });
11852
11852
 
11853
- // ../../node_modules/zod/v4/classic/schemas.js
11853
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
11854
11854
  var exports_schemas2 = {};
11855
11855
  __export(exports_schemas2, {
11856
11856
  xor: () => xor,
@@ -13103,7 +13103,7 @@ var init_schemas2 = __esm(() => {
13103
13103
  meta2 = meta;
13104
13104
  });
13105
13105
 
13106
- // ../../node_modules/zod/v4/classic/compat.js
13106
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/compat.js
13107
13107
  function setErrorMap(map2) {
13108
13108
  config({
13109
13109
  customError: map2
@@ -13131,7 +13131,7 @@ var init_compat = __esm(() => {
13131
13131
  (function(ZodFirstPartyTypeKind2) {})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
13132
13132
  });
13133
13133
 
13134
- // ../../node_modules/zod/v4/classic/from-json-schema.js
13134
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/from-json-schema.js
13135
13135
  function detectVersion(schema, defaultTarget) {
13136
13136
  const $schema = schema.$schema;
13137
13137
  if ($schema === "https://json-schema.org/draft/2020-12/schema") {
@@ -13600,7 +13600,7 @@ var init_from_json_schema = __esm(() => {
13600
13600
  ]);
13601
13601
  });
13602
13602
 
13603
- // ../../node_modules/zod/v4/classic/coerce.js
13603
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/coerce.js
13604
13604
  var exports_coerce = {};
13605
13605
  __export(exports_coerce, {
13606
13606
  string: () => string3,
@@ -13629,7 +13629,7 @@ var init_coerce = __esm(() => {
13629
13629
  init_schemas2();
13630
13630
  });
13631
13631
 
13632
- // ../../node_modules/zod/v4/classic/external.js
13632
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/external.js
13633
13633
  var exports_external = {};
13634
13634
  __export(exports_external, {
13635
13635
  xor: () => xor,
@@ -13888,7 +13888,7 @@ var init_external = __esm(() => {
13888
13888
  config(en_default());
13889
13889
  });
13890
13890
 
13891
- // ../../node_modules/zod/index.js
13891
+ // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/index.js
13892
13892
  var init_zod = __esm(() => {
13893
13893
  init_external();
13894
13894
  init_external();
@@ -15014,7 +15014,8 @@ var init_session = __esm(() => {
15014
15014
  model: exports_external.string().optional(),
15015
15015
  createdAt: exports_external.number(),
15016
15016
  updatedAt: exports_external.number(),
15017
- title: exports_external.string().optional()
15017
+ title: exports_external.string().optional(),
15018
+ prompt: exports_external.string().optional()
15018
15019
  });
15019
15020
  SessionSummarySchema = exports_external.object({
15020
15021
  sessionId: exports_external.string(),
@@ -15248,18 +15249,44 @@ var init_src = __esm(() => {
15248
15249
 
15249
15250
  // ../sdk/src/core/config.ts
15250
15251
  import { join } from "node:path";
15252
+ function isValidModelForProvider(provider, model) {
15253
+ return PROVIDER_MODELS[provider].includes(model);
15254
+ }
15255
+ function getModelsForProvider(provider) {
15256
+ return PROVIDER_MODELS[provider];
15257
+ }
15251
15258
  function getLocusPath(projectPath, fileName) {
15252
15259
  return join(projectPath, LOCUS_CONFIG.dir, LOCUS_CONFIG[fileName]);
15253
15260
  }
15254
- var PROVIDER, DEFAULT_MODEL, LOCUS_SCHEMA_BASE_URL = "https://locusai.dev/schemas", LOCUS_SCHEMAS, LOCUS_CONFIG;
15261
+ var PROVIDER, CLAUDE_MODELS, CODEX_MODELS, PROVIDER_MODELS, DEFAULT_MODEL, LOCUS_SCHEMA_BASE_URL = "https://locusai.dev/schemas", LOCUS_SCHEMAS, LOCUS_CONFIG;
15255
15262
  var init_config = __esm(() => {
15256
15263
  PROVIDER = {
15257
15264
  CLAUDE: "claude",
15258
15265
  CODEX: "codex"
15259
15266
  };
15267
+ CLAUDE_MODELS = {
15268
+ OPUS: "opus",
15269
+ SONNET: "sonnet",
15270
+ HAIKU: "haiku",
15271
+ OPUS_PLAN: "opusplan",
15272
+ CLAUDE_OPUS_4_6: "claude-opus-4-6",
15273
+ CLAUDE_SONNET_4_5: "claude-sonnet-4-5-20250929",
15274
+ CLAUDE_SONNET_4_6: "claude-sonnet-4-6",
15275
+ CLAUDE_HAIKU_4_5: "claude-haiku-4-5-20251001"
15276
+ };
15277
+ CODEX_MODELS = {
15278
+ GPT_5_3_CODEX: "gpt-5.3-codex",
15279
+ GPT_5_3_CODEX_SPARK: "gpt-5.3-codex-spark",
15280
+ GPT_5_CODEX_MINI: "gpt-5-codex-mini",
15281
+ GPT_5_2_CODEX: "gpt-5.2-codex"
15282
+ };
15283
+ PROVIDER_MODELS = {
15284
+ [PROVIDER.CLAUDE]: Object.values(CLAUDE_MODELS),
15285
+ [PROVIDER.CODEX]: Object.values(CODEX_MODELS)
15286
+ };
15260
15287
  DEFAULT_MODEL = {
15261
- [PROVIDER.CLAUDE]: "opus",
15262
- [PROVIDER.CODEX]: "gpt-5.3-codex"
15288
+ [PROVIDER.CLAUDE]: CLAUDE_MODELS.OPUS,
15289
+ [PROVIDER.CODEX]: CODEX_MODELS.GPT_5_3_CODEX
15263
15290
  };
15264
15291
  LOCUS_SCHEMAS = {
15265
15292
  config: `${LOCUS_SCHEMA_BASE_URL}/config.schema.json`,
@@ -15276,7 +15303,8 @@ var init_config = __esm(() => {
15276
15303
  documentsDir: "documents",
15277
15304
  sessionsDir: "sessions",
15278
15305
  reviewsDir: "reviews",
15279
- plansDir: "plans"
15306
+ plansDir: "plans",
15307
+ discussionsDir: "discussions"
15280
15308
  };
15281
15309
  });
15282
15310
 
@@ -16222,6 +16250,10 @@ var init_codex_runner = __esm(() => {
16222
16250
  function createAiRunner(provider, config2) {
16223
16251
  const resolvedProvider = provider ?? PROVIDER.CLAUDE;
16224
16252
  const model = config2.model ?? DEFAULT_MODEL[resolvedProvider];
16253
+ if (!isValidModelForProvider(resolvedProvider, model)) {
16254
+ const validModels = getModelsForProvider(resolvedProvider);
16255
+ throw new Error(`Model "${model}" is not valid for provider "${resolvedProvider}". ` + `Valid models: ${validModels.join(", ")}`);
16256
+ }
16225
16257
  switch (resolvedProvider) {
16226
16258
  case PROVIDER.CODEX:
16227
16259
  return new CodexRunner(config2.projectPath, model, config2.log, config2.reasoningEffort ?? "high", config2.timeoutMs);
@@ -16329,14 +16361,14 @@ function getDefaultBranch(projectPath, remote = "origin") {
16329
16361
  }
16330
16362
  var init_git_utils = () => {};
16331
16363
 
16332
- // ../../node_modules/axios/lib/helpers/bind.js
16364
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/helpers/bind.js
16333
16365
  function bind(fn, thisArg) {
16334
16366
  return function wrap() {
16335
16367
  return fn.apply(thisArg, arguments);
16336
16368
  };
16337
16369
  }
16338
16370
 
16339
- // ../../node_modules/axios/lib/utils.js
16371
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/utils.js
16340
16372
  function isBuffer(val) {
16341
16373
  return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);
16342
16374
  }
@@ -16395,6 +16427,9 @@ function merge2() {
16395
16427
  const { caseless, skipUndefined } = isContextDefined(this) && this || {};
16396
16428
  const result = {};
16397
16429
  const assignValue = (val, key) => {
16430
+ if (key === "__proto__" || key === "constructor" || key === "prototype") {
16431
+ return;
16432
+ }
16398
16433
  const targetKey = caseless && findKey(result, key) || key;
16399
16434
  if (isPlainObject2(result[targetKey]) && isPlainObject2(val)) {
16400
16435
  result[targetKey] = merge2(result[targetKey], val);
@@ -16616,7 +16651,12 @@ var init_utils = __esm(() => {
16616
16651
  isBlob = kindOfTest("Blob");
16617
16652
  isFileList = kindOfTest("FileList");
16618
16653
  isURLSearchParams = kindOfTest("URLSearchParams");
16619
- [isReadableStream, isRequest, isResponse, isHeaders] = ["ReadableStream", "Request", "Response", "Headers"].map(kindOfTest);
16654
+ [isReadableStream, isRequest, isResponse, isHeaders] = [
16655
+ "ReadableStream",
16656
+ "Request",
16657
+ "Response",
16658
+ "Headers"
16659
+ ].map(kindOfTest);
16620
16660
  _global = (() => {
16621
16661
  if (typeof globalThis !== "undefined")
16622
16662
  return globalThis;
@@ -16709,7 +16749,7 @@ var init_utils = __esm(() => {
16709
16749
  };
16710
16750
  });
16711
16751
 
16712
- // ../../node_modules/axios/lib/core/AxiosError.js
16752
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/core/AxiosError.js
16713
16753
  var AxiosError, AxiosError_default;
16714
16754
  var init_AxiosError = __esm(() => {
16715
16755
  init_utils();
@@ -16764,7 +16804,7 @@ var init_AxiosError = __esm(() => {
16764
16804
  AxiosError_default = AxiosError;
16765
16805
  });
16766
16806
 
16767
- // ../../node_modules/delayed-stream/lib/delayed_stream.js
16807
+ // ../../node_modules/.bun/delayed-stream@1.0.0/node_modules/delayed-stream/lib/delayed_stream.js
16768
16808
  var require_delayed_stream = __commonJS((exports, module) => {
16769
16809
  var Stream = __require("stream").Stream;
16770
16810
  var util = __require("util");
@@ -16852,7 +16892,7 @@ var require_delayed_stream = __commonJS((exports, module) => {
16852
16892
  };
16853
16893
  });
16854
16894
 
16855
- // ../../node_modules/combined-stream/lib/combined_stream.js
16895
+ // ../../node_modules/.bun/combined-stream@1.0.8/node_modules/combined-stream/lib/combined_stream.js
16856
16896
  var require_combined_stream = __commonJS((exports, module) => {
16857
16897
  var util = __require("util");
16858
16898
  var Stream = __require("stream").Stream;
@@ -17021,7 +17061,7 @@ var require_combined_stream = __commonJS((exports, module) => {
17021
17061
  };
17022
17062
  });
17023
17063
 
17024
- // ../../node_modules/mime-db/db.json
17064
+ // ../../node_modules/.bun/mime-db@1.52.0/node_modules/mime-db/db.json
17025
17065
  var require_db = __commonJS((exports, module) => {
17026
17066
  module.exports = {
17027
17067
  "application/1d-interleaved-parityfec": {
@@ -25544,7 +25584,7 @@ var require_db = __commonJS((exports, module) => {
25544
25584
  };
25545
25585
  });
25546
25586
 
25547
- // ../../node_modules/mime-types/index.js
25587
+ // ../../node_modules/.bun/mime-types@2.1.35/node_modules/mime-types/index.js
25548
25588
  var require_mime_types = __commonJS((exports) => {
25549
25589
  /*!
25550
25590
  * mime-types
@@ -25638,7 +25678,7 @@ var require_mime_types = __commonJS((exports) => {
25638
25678
  }
25639
25679
  });
25640
25680
 
25641
- // ../../node_modules/asynckit/lib/defer.js
25681
+ // ../../node_modules/.bun/asynckit@0.4.0/node_modules/asynckit/lib/defer.js
25642
25682
  var require_defer = __commonJS((exports, module) => {
25643
25683
  module.exports = defer;
25644
25684
  function defer(fn) {
@@ -25651,7 +25691,7 @@ var require_defer = __commonJS((exports, module) => {
25651
25691
  }
25652
25692
  });
25653
25693
 
25654
- // ../../node_modules/asynckit/lib/async.js
25694
+ // ../../node_modules/.bun/asynckit@0.4.0/node_modules/asynckit/lib/async.js
25655
25695
  var require_async = __commonJS((exports, module) => {
25656
25696
  var defer = require_defer();
25657
25697
  module.exports = async;
@@ -25672,7 +25712,7 @@ var require_async = __commonJS((exports, module) => {
25672
25712
  }
25673
25713
  });
25674
25714
 
25675
- // ../../node_modules/asynckit/lib/abort.js
25715
+ // ../../node_modules/.bun/asynckit@0.4.0/node_modules/asynckit/lib/abort.js
25676
25716
  var require_abort = __commonJS((exports, module) => {
25677
25717
  module.exports = abort;
25678
25718
  function abort(state) {
@@ -25686,7 +25726,7 @@ var require_abort = __commonJS((exports, module) => {
25686
25726
  }
25687
25727
  });
25688
25728
 
25689
- // ../../node_modules/asynckit/lib/iterate.js
25729
+ // ../../node_modules/.bun/asynckit@0.4.0/node_modules/asynckit/lib/iterate.js
25690
25730
  var require_iterate = __commonJS((exports, module) => {
25691
25731
  var async = require_async();
25692
25732
  var abort = require_abort();
@@ -25717,7 +25757,7 @@ var require_iterate = __commonJS((exports, module) => {
25717
25757
  }
25718
25758
  });
25719
25759
 
25720
- // ../../node_modules/asynckit/lib/state.js
25760
+ // ../../node_modules/.bun/asynckit@0.4.0/node_modules/asynckit/lib/state.js
25721
25761
  var require_state = __commonJS((exports, module) => {
25722
25762
  module.exports = state;
25723
25763
  function state(list, sortMethod) {
@@ -25737,7 +25777,7 @@ var require_state = __commonJS((exports, module) => {
25737
25777
  }
25738
25778
  });
25739
25779
 
25740
- // ../../node_modules/asynckit/lib/terminator.js
25780
+ // ../../node_modules/.bun/asynckit@0.4.0/node_modules/asynckit/lib/terminator.js
25741
25781
  var require_terminator = __commonJS((exports, module) => {
25742
25782
  var abort = require_abort();
25743
25783
  var async = require_async();
@@ -25752,7 +25792,7 @@ var require_terminator = __commonJS((exports, module) => {
25752
25792
  }
25753
25793
  });
25754
25794
 
25755
- // ../../node_modules/asynckit/parallel.js
25795
+ // ../../node_modules/.bun/asynckit@0.4.0/node_modules/asynckit/parallel.js
25756
25796
  var require_parallel = __commonJS((exports, module) => {
25757
25797
  var iterate = require_iterate();
25758
25798
  var initState = require_state();
@@ -25777,7 +25817,7 @@ var require_parallel = __commonJS((exports, module) => {
25777
25817
  }
25778
25818
  });
25779
25819
 
25780
- // ../../node_modules/asynckit/serialOrdered.js
25820
+ // ../../node_modules/.bun/asynckit@0.4.0/node_modules/asynckit/serialOrdered.js
25781
25821
  var require_serialOrdered = __commonJS((exports, module) => {
25782
25822
  var iterate = require_iterate();
25783
25823
  var initState = require_state();
@@ -25809,7 +25849,7 @@ var require_serialOrdered = __commonJS((exports, module) => {
25809
25849
  }
25810
25850
  });
25811
25851
 
25812
- // ../../node_modules/asynckit/serial.js
25852
+ // ../../node_modules/.bun/asynckit@0.4.0/node_modules/asynckit/serial.js
25813
25853
  var require_serial = __commonJS((exports, module) => {
25814
25854
  var serialOrdered = require_serialOrdered();
25815
25855
  module.exports = serial;
@@ -25818,7 +25858,7 @@ var require_serial = __commonJS((exports, module) => {
25818
25858
  }
25819
25859
  });
25820
25860
 
25821
- // ../../node_modules/asynckit/index.js
25861
+ // ../../node_modules/.bun/asynckit@0.4.0/node_modules/asynckit/index.js
25822
25862
  var require_asynckit = __commonJS((exports, module) => {
25823
25863
  module.exports = {
25824
25864
  parallel: require_parallel(),
@@ -25827,84 +25867,84 @@ var require_asynckit = __commonJS((exports, module) => {
25827
25867
  };
25828
25868
  });
25829
25869
 
25830
- // ../../node_modules/es-object-atoms/index.js
25870
+ // ../../node_modules/.bun/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js
25831
25871
  var require_es_object_atoms = __commonJS((exports, module) => {
25832
25872
  module.exports = Object;
25833
25873
  });
25834
25874
 
25835
- // ../../node_modules/es-errors/index.js
25875
+ // ../../node_modules/.bun/es-errors@1.3.0/node_modules/es-errors/index.js
25836
25876
  var require_es_errors = __commonJS((exports, module) => {
25837
25877
  module.exports = Error;
25838
25878
  });
25839
25879
 
25840
- // ../../node_modules/es-errors/eval.js
25880
+ // ../../node_modules/.bun/es-errors@1.3.0/node_modules/es-errors/eval.js
25841
25881
  var require_eval = __commonJS((exports, module) => {
25842
25882
  module.exports = EvalError;
25843
25883
  });
25844
25884
 
25845
- // ../../node_modules/es-errors/range.js
25885
+ // ../../node_modules/.bun/es-errors@1.3.0/node_modules/es-errors/range.js
25846
25886
  var require_range = __commonJS((exports, module) => {
25847
25887
  module.exports = RangeError;
25848
25888
  });
25849
25889
 
25850
- // ../../node_modules/es-errors/ref.js
25890
+ // ../../node_modules/.bun/es-errors@1.3.0/node_modules/es-errors/ref.js
25851
25891
  var require_ref = __commonJS((exports, module) => {
25852
25892
  module.exports = ReferenceError;
25853
25893
  });
25854
25894
 
25855
- // ../../node_modules/es-errors/syntax.js
25895
+ // ../../node_modules/.bun/es-errors@1.3.0/node_modules/es-errors/syntax.js
25856
25896
  var require_syntax = __commonJS((exports, module) => {
25857
25897
  module.exports = SyntaxError;
25858
25898
  });
25859
25899
 
25860
- // ../../node_modules/es-errors/type.js
25900
+ // ../../node_modules/.bun/es-errors@1.3.0/node_modules/es-errors/type.js
25861
25901
  var require_type = __commonJS((exports, module) => {
25862
25902
  module.exports = TypeError;
25863
25903
  });
25864
25904
 
25865
- // ../../node_modules/es-errors/uri.js
25905
+ // ../../node_modules/.bun/es-errors@1.3.0/node_modules/es-errors/uri.js
25866
25906
  var require_uri = __commonJS((exports, module) => {
25867
25907
  module.exports = URIError;
25868
25908
  });
25869
25909
 
25870
- // ../../node_modules/math-intrinsics/abs.js
25910
+ // ../../node_modules/.bun/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js
25871
25911
  var require_abs = __commonJS((exports, module) => {
25872
25912
  module.exports = Math.abs;
25873
25913
  });
25874
25914
 
25875
- // ../../node_modules/math-intrinsics/floor.js
25915
+ // ../../node_modules/.bun/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js
25876
25916
  var require_floor = __commonJS((exports, module) => {
25877
25917
  module.exports = Math.floor;
25878
25918
  });
25879
25919
 
25880
- // ../../node_modules/math-intrinsics/max.js
25920
+ // ../../node_modules/.bun/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js
25881
25921
  var require_max = __commonJS((exports, module) => {
25882
25922
  module.exports = Math.max;
25883
25923
  });
25884
25924
 
25885
- // ../../node_modules/math-intrinsics/min.js
25925
+ // ../../node_modules/.bun/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js
25886
25926
  var require_min = __commonJS((exports, module) => {
25887
25927
  module.exports = Math.min;
25888
25928
  });
25889
25929
 
25890
- // ../../node_modules/math-intrinsics/pow.js
25930
+ // ../../node_modules/.bun/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js
25891
25931
  var require_pow = __commonJS((exports, module) => {
25892
25932
  module.exports = Math.pow;
25893
25933
  });
25894
25934
 
25895
- // ../../node_modules/math-intrinsics/round.js
25935
+ // ../../node_modules/.bun/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js
25896
25936
  var require_round = __commonJS((exports, module) => {
25897
25937
  module.exports = Math.round;
25898
25938
  });
25899
25939
 
25900
- // ../../node_modules/math-intrinsics/isNaN.js
25940
+ // ../../node_modules/.bun/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js
25901
25941
  var require_isNaN = __commonJS((exports, module) => {
25902
25942
  module.exports = Number.isNaN || function isNaN2(a) {
25903
25943
  return a !== a;
25904
25944
  };
25905
25945
  });
25906
25946
 
25907
- // ../../node_modules/math-intrinsics/sign.js
25947
+ // ../../node_modules/.bun/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js
25908
25948
  var require_sign = __commonJS((exports, module) => {
25909
25949
  var $isNaN = require_isNaN();
25910
25950
  module.exports = function sign(number4) {
@@ -25915,12 +25955,12 @@ var require_sign = __commonJS((exports, module) => {
25915
25955
  };
25916
25956
  });
25917
25957
 
25918
- // ../../node_modules/gopd/gOPD.js
25958
+ // ../../node_modules/.bun/gopd@1.2.0/node_modules/gopd/gOPD.js
25919
25959
  var require_gOPD = __commonJS((exports, module) => {
25920
25960
  module.exports = Object.getOwnPropertyDescriptor;
25921
25961
  });
25922
25962
 
25923
- // ../../node_modules/gopd/index.js
25963
+ // ../../node_modules/.bun/gopd@1.2.0/node_modules/gopd/index.js
25924
25964
  var require_gopd = __commonJS((exports, module) => {
25925
25965
  var $gOPD = require_gOPD();
25926
25966
  if ($gOPD) {
@@ -25933,7 +25973,7 @@ var require_gopd = __commonJS((exports, module) => {
25933
25973
  module.exports = $gOPD;
25934
25974
  });
25935
25975
 
25936
- // ../../node_modules/es-define-property/index.js
25976
+ // ../../node_modules/.bun/es-define-property@1.0.1/node_modules/es-define-property/index.js
25937
25977
  var require_es_define_property = __commonJS((exports, module) => {
25938
25978
  var $defineProperty = Object.defineProperty || false;
25939
25979
  if ($defineProperty) {
@@ -25946,7 +25986,7 @@ var require_es_define_property = __commonJS((exports, module) => {
25946
25986
  module.exports = $defineProperty;
25947
25987
  });
25948
25988
 
25949
- // ../../node_modules/has-symbols/shams.js
25989
+ // ../../node_modules/.bun/has-symbols@1.1.0/node_modules/has-symbols/shams.js
25950
25990
  var require_shams = __commonJS((exports, module) => {
25951
25991
  module.exports = function hasSymbols() {
25952
25992
  if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
@@ -25995,7 +26035,7 @@ var require_shams = __commonJS((exports, module) => {
25995
26035
  };
25996
26036
  });
25997
26037
 
25998
- // ../../node_modules/has-symbols/index.js
26038
+ // ../../node_modules/.bun/has-symbols@1.1.0/node_modules/has-symbols/index.js
25999
26039
  var require_has_symbols = __commonJS((exports, module) => {
26000
26040
  var origSymbol = typeof Symbol !== "undefined" && Symbol;
26001
26041
  var hasSymbolSham = require_shams();
@@ -26016,18 +26056,18 @@ var require_has_symbols = __commonJS((exports, module) => {
26016
26056
  };
26017
26057
  });
26018
26058
 
26019
- // ../../node_modules/get-proto/Reflect.getPrototypeOf.js
26059
+ // ../../node_modules/.bun/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js
26020
26060
  var require_Reflect_getPrototypeOf = __commonJS((exports, module) => {
26021
26061
  module.exports = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
26022
26062
  });
26023
26063
 
26024
- // ../../node_modules/get-proto/Object.getPrototypeOf.js
26064
+ // ../../node_modules/.bun/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js
26025
26065
  var require_Object_getPrototypeOf = __commonJS((exports, module) => {
26026
26066
  var $Object = require_es_object_atoms();
26027
26067
  module.exports = $Object.getPrototypeOf || null;
26028
26068
  });
26029
26069
 
26030
- // ../../node_modules/function-bind/implementation.js
26070
+ // ../../node_modules/.bun/function-bind@1.1.2/node_modules/function-bind/implementation.js
26031
26071
  var require_implementation = __commonJS((exports, module) => {
26032
26072
  var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
26033
26073
  var toStr = Object.prototype.toString;
@@ -26093,28 +26133,28 @@ var require_implementation = __commonJS((exports, module) => {
26093
26133
  };
26094
26134
  });
26095
26135
 
26096
- // ../../node_modules/function-bind/index.js
26136
+ // ../../node_modules/.bun/function-bind@1.1.2/node_modules/function-bind/index.js
26097
26137
  var require_function_bind = __commonJS((exports, module) => {
26098
26138
  var implementation = require_implementation();
26099
26139
  module.exports = Function.prototype.bind || implementation;
26100
26140
  });
26101
26141
 
26102
- // ../../node_modules/call-bind-apply-helpers/functionCall.js
26142
+ // ../../node_modules/.bun/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js
26103
26143
  var require_functionCall = __commonJS((exports, module) => {
26104
26144
  module.exports = Function.prototype.call;
26105
26145
  });
26106
26146
 
26107
- // ../../node_modules/call-bind-apply-helpers/functionApply.js
26147
+ // ../../node_modules/.bun/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js
26108
26148
  var require_functionApply = __commonJS((exports, module) => {
26109
26149
  module.exports = Function.prototype.apply;
26110
26150
  });
26111
26151
 
26112
- // ../../node_modules/call-bind-apply-helpers/reflectApply.js
26152
+ // ../../node_modules/.bun/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js
26113
26153
  var require_reflectApply = __commonJS((exports, module) => {
26114
26154
  module.exports = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
26115
26155
  });
26116
26156
 
26117
- // ../../node_modules/call-bind-apply-helpers/actualApply.js
26157
+ // ../../node_modules/.bun/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js
26118
26158
  var require_actualApply = __commonJS((exports, module) => {
26119
26159
  var bind2 = require_function_bind();
26120
26160
  var $apply = require_functionApply();
@@ -26123,7 +26163,7 @@ var require_actualApply = __commonJS((exports, module) => {
26123
26163
  module.exports = $reflectApply || bind2.call($call, $apply);
26124
26164
  });
26125
26165
 
26126
- // ../../node_modules/call-bind-apply-helpers/index.js
26166
+ // ../../node_modules/.bun/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js
26127
26167
  var require_call_bind_apply_helpers = __commonJS((exports, module) => {
26128
26168
  var bind2 = require_function_bind();
26129
26169
  var $TypeError = require_type();
@@ -26137,7 +26177,7 @@ var require_call_bind_apply_helpers = __commonJS((exports, module) => {
26137
26177
  };
26138
26178
  });
26139
26179
 
26140
- // ../../node_modules/dunder-proto/get.js
26180
+ // ../../node_modules/.bun/dunder-proto@1.0.1/node_modules/dunder-proto/get.js
26141
26181
  var require_get = __commonJS((exports, module) => {
26142
26182
  var callBind = require_call_bind_apply_helpers();
26143
26183
  var gOPD = require_gopd();
@@ -26157,7 +26197,7 @@ var require_get = __commonJS((exports, module) => {
26157
26197
  } : false;
26158
26198
  });
26159
26199
 
26160
- // ../../node_modules/get-proto/index.js
26200
+ // ../../node_modules/.bun/get-proto@1.0.1/node_modules/get-proto/index.js
26161
26201
  var require_get_proto = __commonJS((exports, module) => {
26162
26202
  var reflectGetProto = require_Reflect_getPrototypeOf();
26163
26203
  var originalGetProto = require_Object_getPrototypeOf();
@@ -26174,7 +26214,7 @@ var require_get_proto = __commonJS((exports, module) => {
26174
26214
  } : null;
26175
26215
  });
26176
26216
 
26177
- // ../../node_modules/hasown/index.js
26217
+ // ../../node_modules/.bun/hasown@2.0.2/node_modules/hasown/index.js
26178
26218
  var require_hasown = __commonJS((exports, module) => {
26179
26219
  var call = Function.prototype.call;
26180
26220
  var $hasOwn = Object.prototype.hasOwnProperty;
@@ -26182,7 +26222,7 @@ var require_hasown = __commonJS((exports, module) => {
26182
26222
  module.exports = bind2.call(call, $hasOwn);
26183
26223
  });
26184
26224
 
26185
- // ../../node_modules/get-intrinsic/index.js
26225
+ // ../../node_modules/.bun/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js
26186
26226
  var require_get_intrinsic = __commonJS((exports, module) => {
26187
26227
  var undefined2;
26188
26228
  var $Object = require_es_object_atoms();
@@ -26508,7 +26548,7 @@ var require_get_intrinsic = __commonJS((exports, module) => {
26508
26548
  };
26509
26549
  });
26510
26550
 
26511
- // ../../node_modules/has-tostringtag/shams.js
26551
+ // ../../node_modules/.bun/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js
26512
26552
  var require_shams2 = __commonJS((exports, module) => {
26513
26553
  var hasSymbols = require_shams();
26514
26554
  module.exports = function hasToStringTagShams() {
@@ -26516,7 +26556,7 @@ var require_shams2 = __commonJS((exports, module) => {
26516
26556
  };
26517
26557
  });
26518
26558
 
26519
- // ../../node_modules/es-set-tostringtag/index.js
26559
+ // ../../node_modules/.bun/es-set-tostringtag@2.1.0/node_modules/es-set-tostringtag/index.js
26520
26560
  var require_es_set_tostringtag = __commonJS((exports, module) => {
26521
26561
  var GetIntrinsic = require_get_intrinsic();
26522
26562
  var $defineProperty = GetIntrinsic("%Object.defineProperty%", true);
@@ -26545,7 +26585,7 @@ var require_es_set_tostringtag = __commonJS((exports, module) => {
26545
26585
  };
26546
26586
  });
26547
26587
 
26548
- // ../../node_modules/form-data/lib/populate.js
26588
+ // ../../node_modules/.bun/form-data@4.0.5/node_modules/form-data/lib/populate.js
26549
26589
  var require_populate = __commonJS((exports, module) => {
26550
26590
  module.exports = function(dst, src) {
26551
26591
  Object.keys(src).forEach(function(prop) {
@@ -26555,7 +26595,7 @@ var require_populate = __commonJS((exports, module) => {
26555
26595
  };
26556
26596
  });
26557
26597
 
26558
- // ../../node_modules/form-data/lib/form_data.js
26598
+ // ../../node_modules/.bun/form-data@4.0.5/node_modules/form-data/lib/form_data.js
26559
26599
  var require_form_data = __commonJS((exports, module) => {
26560
26600
  var CombinedStream = require_combined_stream();
26561
26601
  var util = __require("util");
@@ -26870,14 +26910,14 @@ var require_form_data = __commonJS((exports, module) => {
26870
26910
  module.exports = FormData2;
26871
26911
  });
26872
26912
 
26873
- // ../../node_modules/axios/lib/platform/node/classes/FormData.js
26913
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/platform/node/classes/FormData.js
26874
26914
  var import_form_data, FormData_default;
26875
26915
  var init_FormData = __esm(() => {
26876
26916
  import_form_data = __toESM(require_form_data(), 1);
26877
26917
  FormData_default = import_form_data.default;
26878
26918
  });
26879
26919
 
26880
- // ../../node_modules/axios/lib/helpers/toFormData.js
26920
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/helpers/toFormData.js
26881
26921
  function isVisitable(thing) {
26882
26922
  return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
26883
26923
  }
@@ -26991,7 +27031,7 @@ var init_toFormData = __esm(() => {
26991
27031
  toFormData_default = toFormData;
26992
27032
  });
26993
27033
 
26994
- // ../../node_modules/axios/lib/helpers/AxiosURLSearchParams.js
27034
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
26995
27035
  function encode3(str) {
26996
27036
  const charMap = {
26997
27037
  "!": "%21",
@@ -27028,7 +27068,7 @@ var init_AxiosURLSearchParams = __esm(() => {
27028
27068
  AxiosURLSearchParams_default = AxiosURLSearchParams;
27029
27069
  });
27030
27070
 
27031
- // ../../node_modules/axios/lib/helpers/buildURL.js
27071
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/helpers/buildURL.js
27032
27072
  function encode4(val) {
27033
27073
  return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
27034
27074
  }
@@ -27061,7 +27101,7 @@ var init_buildURL = __esm(() => {
27061
27101
  init_AxiosURLSearchParams();
27062
27102
  });
27063
27103
 
27064
- // ../../node_modules/axios/lib/core/InterceptorManager.js
27104
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/core/InterceptorManager.js
27065
27105
  class InterceptorManager {
27066
27106
  constructor() {
27067
27107
  this.handlers = [];
@@ -27099,24 +27139,25 @@ var init_InterceptorManager = __esm(() => {
27099
27139
  InterceptorManager_default = InterceptorManager;
27100
27140
  });
27101
27141
 
27102
- // ../../node_modules/axios/lib/defaults/transitional.js
27142
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/defaults/transitional.js
27103
27143
  var transitional_default;
27104
27144
  var init_transitional = __esm(() => {
27105
27145
  transitional_default = {
27106
27146
  silentJSONParsing: true,
27107
27147
  forcedJSONParsing: true,
27108
- clarifyTimeoutError: false
27148
+ clarifyTimeoutError: false,
27149
+ legacyInterceptorReqResOrdering: true
27109
27150
  };
27110
27151
  });
27111
27152
 
27112
- // ../../node_modules/axios/lib/platform/node/classes/URLSearchParams.js
27153
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
27113
27154
  import url2 from "url";
27114
27155
  var URLSearchParams_default;
27115
27156
  var init_URLSearchParams = __esm(() => {
27116
27157
  URLSearchParams_default = url2.URLSearchParams;
27117
27158
  });
27118
27159
 
27119
- // ../../node_modules/axios/lib/platform/node/index.js
27160
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/platform/node/index.js
27120
27161
  import crypto from "crypto";
27121
27162
  var ALPHA = "abcdefghijklmnopqrstuvwxyz", DIGIT = "0123456789", ALPHABET, generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
27122
27163
  let str = "";
@@ -27149,7 +27190,7 @@ var init_node = __esm(() => {
27149
27190
  };
27150
27191
  });
27151
27192
 
27152
- // ../../node_modules/axios/lib/platform/common/utils.js
27193
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/platform/common/utils.js
27153
27194
  var exports_utils = {};
27154
27195
  __export(exports_utils, {
27155
27196
  origin: () => origin,
@@ -27169,7 +27210,7 @@ var init_utils2 = __esm(() => {
27169
27210
  origin = hasBrowserEnv && window.location.href || "http://localhost";
27170
27211
  });
27171
27212
 
27172
- // ../../node_modules/axios/lib/platform/index.js
27213
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/platform/index.js
27173
27214
  var platform_default;
27174
27215
  var init_platform = __esm(() => {
27175
27216
  init_node();
@@ -27180,7 +27221,7 @@ var init_platform = __esm(() => {
27180
27221
  };
27181
27222
  });
27182
27223
 
27183
- // ../../node_modules/axios/lib/helpers/toURLEncodedForm.js
27224
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/helpers/toURLEncodedForm.js
27184
27225
  function toURLEncodedForm(data, options) {
27185
27226
  return toFormData_default(data, new platform_default.classes.URLSearchParams, {
27186
27227
  visitor: function(value, key, path, helpers2) {
@@ -27199,7 +27240,7 @@ var init_toURLEncodedForm = __esm(() => {
27199
27240
  init_platform();
27200
27241
  });
27201
27242
 
27202
- // ../../node_modules/axios/lib/helpers/formDataToJSON.js
27243
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/helpers/formDataToJSON.js
27203
27244
  function parsePropPath(name) {
27204
27245
  return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
27205
27246
  return match[0] === "[]" ? "" : match[1] || match[0];
@@ -27257,7 +27298,7 @@ var init_formDataToJSON = __esm(() => {
27257
27298
  formDataToJSON_default = formDataToJSON;
27258
27299
  });
27259
27300
 
27260
- // ../../node_modules/axios/lib/defaults/index.js
27301
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/defaults/index.js
27261
27302
  function stringifySafely(rawValue, parser, encoder) {
27262
27303
  if (utils_default.isString(rawValue)) {
27263
27304
  try {
@@ -27368,7 +27409,7 @@ var init_defaults = __esm(() => {
27368
27409
  defaults_default = defaults;
27369
27410
  });
27370
27411
 
27371
- // ../../node_modules/axios/lib/helpers/parseHeaders.js
27412
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/helpers/parseHeaders.js
27372
27413
  var ignoreDuplicateOf, parseHeaders_default = (rawHeaders) => {
27373
27414
  const parsed = {};
27374
27415
  let key;
@@ -27417,7 +27458,7 @@ var init_parseHeaders = __esm(() => {
27417
27458
  ]);
27418
27459
  });
27419
27460
 
27420
- // ../../node_modules/axios/lib/core/AxiosHeaders.js
27461
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/core/AxiosHeaders.js
27421
27462
  function normalizeHeader(header) {
27422
27463
  return header && String(header).trim().toLowerCase();
27423
27464
  }
@@ -27652,7 +27693,7 @@ var init_AxiosHeaders = __esm(() => {
27652
27693
  AxiosHeaders_default = AxiosHeaders;
27653
27694
  });
27654
27695
 
27655
- // ../../node_modules/axios/lib/core/transformData.js
27696
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/core/transformData.js
27656
27697
  function transformData(fns, response) {
27657
27698
  const config2 = this || defaults_default;
27658
27699
  const context2 = response || config2;
@@ -27670,12 +27711,12 @@ var init_transformData = __esm(() => {
27670
27711
  init_AxiosHeaders();
27671
27712
  });
27672
27713
 
27673
- // ../../node_modules/axios/lib/cancel/isCancel.js
27714
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/cancel/isCancel.js
27674
27715
  function isCancel(value) {
27675
27716
  return !!(value && value.__CANCEL__);
27676
27717
  }
27677
27718
 
27678
- // ../../node_modules/axios/lib/cancel/CanceledError.js
27719
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/cancel/CanceledError.js
27679
27720
  var CanceledError, CanceledError_default;
27680
27721
  var init_CanceledError = __esm(() => {
27681
27722
  init_AxiosError();
@@ -27689,7 +27730,7 @@ var init_CanceledError = __esm(() => {
27689
27730
  CanceledError_default = CanceledError;
27690
27731
  });
27691
27732
 
27692
- // ../../node_modules/axios/lib/core/settle.js
27733
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/core/settle.js
27693
27734
  function settle(resolve2, reject, response) {
27694
27735
  const validateStatus2 = response.config.validateStatus;
27695
27736
  if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
@@ -27702,17 +27743,20 @@ var init_settle = __esm(() => {
27702
27743
  init_AxiosError();
27703
27744
  });
27704
27745
 
27705
- // ../../node_modules/axios/lib/helpers/isAbsoluteURL.js
27746
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/helpers/isAbsoluteURL.js
27706
27747
  function isAbsoluteURL(url3) {
27748
+ if (typeof url3 !== "string") {
27749
+ return false;
27750
+ }
27707
27751
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url3);
27708
27752
  }
27709
27753
 
27710
- // ../../node_modules/axios/lib/helpers/combineURLs.js
27754
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/helpers/combineURLs.js
27711
27755
  function combineURLs(baseURL, relativeURL) {
27712
27756
  return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
27713
27757
  }
27714
27758
 
27715
- // ../../node_modules/axios/lib/core/buildFullPath.js
27759
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/core/buildFullPath.js
27716
27760
  function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
27717
27761
  let isRelativeUrl = !isAbsoluteURL(requestedURL);
27718
27762
  if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
@@ -27722,7 +27766,7 @@ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
27722
27766
  }
27723
27767
  var init_buildFullPath = () => {};
27724
27768
 
27725
- // ../../node_modules/proxy-from-env/index.js
27769
+ // ../../node_modules/.bun/proxy-from-env@1.1.0/node_modules/proxy-from-env/index.js
27726
27770
  var require_proxy_from_env = __commonJS((exports) => {
27727
27771
  var parseUrl = __require("url").parse;
27728
27772
  var DEFAULT_PORTS = {
@@ -27789,7 +27833,7 @@ var require_proxy_from_env = __commonJS((exports) => {
27789
27833
  exports.getProxyForUrl = getProxyForUrl;
27790
27834
  });
27791
27835
 
27792
- // ../../node_modules/ms/index.js
27836
+ // ../../node_modules/.bun/ms@2.1.3/node_modules/ms/index.js
27793
27837
  var require_ms = __commonJS((exports, module) => {
27794
27838
  var s = 1000;
27795
27839
  var m = s * 60;
@@ -27899,7 +27943,7 @@ var require_ms = __commonJS((exports, module) => {
27899
27943
  }
27900
27944
  });
27901
27945
 
27902
- // ../../node_modules/debug/src/common.js
27946
+ // ../../node_modules/.bun/debug@4.4.3/node_modules/debug/src/common.js
27903
27947
  var require_common = __commonJS((exports, module) => {
27904
27948
  function setup(env) {
27905
27949
  createDebug.debug = createDebug;
@@ -28074,7 +28118,7 @@ var require_common = __commonJS((exports, module) => {
28074
28118
  module.exports = setup;
28075
28119
  });
28076
28120
 
28077
- // ../../node_modules/debug/src/browser.js
28121
+ // ../../node_modules/.bun/debug@4.4.3/node_modules/debug/src/browser.js
28078
28122
  var require_browser = __commonJS((exports, module) => {
28079
28123
  exports.formatArgs = formatArgs;
28080
28124
  exports.save = save;
@@ -28234,7 +28278,7 @@ var require_browser = __commonJS((exports, module) => {
28234
28278
  };
28235
28279
  });
28236
28280
 
28237
- // ../../node_modules/has-flag/index.js
28281
+ // ../../node_modules/.bun/has-flag@4.0.0/node_modules/has-flag/index.js
28238
28282
  var require_has_flag = __commonJS((exports, module) => {
28239
28283
  module.exports = (flag, argv = process.argv) => {
28240
28284
  const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
@@ -28244,7 +28288,7 @@ var require_has_flag = __commonJS((exports, module) => {
28244
28288
  };
28245
28289
  });
28246
28290
 
28247
- // ../../node_modules/supports-color/index.js
28291
+ // ../../node_modules/.bun/supports-color@7.2.0/node_modules/supports-color/index.js
28248
28292
  var require_supports_color = __commonJS((exports, module) => {
28249
28293
  var os = __require("os");
28250
28294
  var tty = __require("tty");
@@ -28343,7 +28387,7 @@ var require_supports_color = __commonJS((exports, module) => {
28343
28387
  };
28344
28388
  });
28345
28389
 
28346
- // ../../node_modules/debug/src/node.js
28390
+ // ../../node_modules/.bun/debug@4.4.3/node_modules/debug/src/node.js
28347
28391
  var require_node = __commonJS((exports, module) => {
28348
28392
  var tty = __require("tty");
28349
28393
  var util = __require("util");
@@ -28514,7 +28558,7 @@ var require_node = __commonJS((exports, module) => {
28514
28558
  };
28515
28559
  });
28516
28560
 
28517
- // ../../node_modules/debug/src/index.js
28561
+ // ../../node_modules/.bun/debug@4.4.3/node_modules/debug/src/index.js
28518
28562
  var require_src = __commonJS((exports, module) => {
28519
28563
  if (typeof process === "undefined" || process.type === "renderer" || false || process.__nwjs) {
28520
28564
  module.exports = require_browser();
@@ -28523,7 +28567,7 @@ var require_src = __commonJS((exports, module) => {
28523
28567
  }
28524
28568
  });
28525
28569
 
28526
- // ../../node_modules/follow-redirects/debug.js
28570
+ // ../../node_modules/.bun/follow-redirects@1.15.11/node_modules/follow-redirects/debug.js
28527
28571
  var require_debug = __commonJS((exports, module) => {
28528
28572
  var debug;
28529
28573
  module.exports = function() {
@@ -28539,7 +28583,7 @@ var require_debug = __commonJS((exports, module) => {
28539
28583
  };
28540
28584
  });
28541
28585
 
28542
- // ../../node_modules/follow-redirects/index.js
28586
+ // ../../node_modules/.bun/follow-redirects@1.15.11/node_modules/follow-redirects/index.js
28543
28587
  var require_follow_redirects = __commonJS((exports, module) => {
28544
28588
  var url3 = __require("url");
28545
28589
  var URL2 = url3.URL;
@@ -29006,16 +29050,16 @@ var require_follow_redirects = __commonJS((exports, module) => {
29006
29050
  module.exports.wrap = wrap;
29007
29051
  });
29008
29052
 
29009
- // ../../node_modules/axios/lib/env/data.js
29010
- var VERSION = "1.13.3";
29053
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/env/data.js
29054
+ var VERSION = "1.13.5";
29011
29055
 
29012
- // ../../node_modules/axios/lib/helpers/parseProtocol.js
29056
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/helpers/parseProtocol.js
29013
29057
  function parseProtocol(url3) {
29014
29058
  const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url3);
29015
29059
  return match && match[1] || "";
29016
29060
  }
29017
29061
 
29018
- // ../../node_modules/axios/lib/helpers/fromDataURI.js
29062
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/helpers/fromDataURI.js
29019
29063
  function fromDataURI(uri, asBlob, options) {
29020
29064
  const _Blob = options && options.Blob || platform_default.classes.Blob;
29021
29065
  const protocol2 = parseProtocol(uri);
@@ -29049,7 +29093,7 @@ var init_fromDataURI = __esm(() => {
29049
29093
  DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;
29050
29094
  });
29051
29095
 
29052
- // ../../node_modules/axios/lib/helpers/AxiosTransformStream.js
29096
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/helpers/AxiosTransformStream.js
29053
29097
  import stream from "stream";
29054
29098
  var kInternals, AxiosTransformStream, AxiosTransformStream_default;
29055
29099
  var init_AxiosTransformStream = __esm(() => {
@@ -29168,7 +29212,7 @@ var init_AxiosTransformStream = __esm(() => {
29168
29212
  AxiosTransformStream_default = AxiosTransformStream;
29169
29213
  });
29170
29214
 
29171
- // ../../node_modules/axios/lib/helpers/readBlob.js
29215
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/helpers/readBlob.js
29172
29216
  var asyncIterator, readBlob = async function* (blob) {
29173
29217
  if (blob.stream) {
29174
29218
  yield* blob.stream();
@@ -29185,7 +29229,7 @@ var init_readBlob = __esm(() => {
29185
29229
  readBlob_default = readBlob;
29186
29230
  });
29187
29231
 
29188
- // ../../node_modules/axios/lib/helpers/formDataToStream.js
29232
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/helpers/formDataToStream.js
29189
29233
  import util from "util";
29190
29234
  import { Readable } from "stream";
29191
29235
 
@@ -29271,7 +29315,7 @@ var init_formDataToStream = __esm(() => {
29271
29315
  formDataToStream_default = formDataToStream;
29272
29316
  });
29273
29317
 
29274
- // ../../node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
29318
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
29275
29319
  import stream2 from "stream";
29276
29320
  var ZlibHeaderTransformStream, ZlibHeaderTransformStream_default;
29277
29321
  var init_ZlibHeaderTransformStream = __esm(() => {
@@ -29296,7 +29340,7 @@ var init_ZlibHeaderTransformStream = __esm(() => {
29296
29340
  ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
29297
29341
  });
29298
29342
 
29299
- // ../../node_modules/axios/lib/helpers/callbackify.js
29343
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/helpers/callbackify.js
29300
29344
  var callbackify = (fn, reducer) => {
29301
29345
  return utils_default.isAsyncFn(fn) ? function(...args) {
29302
29346
  const cb = args.pop();
@@ -29314,7 +29358,7 @@ var init_callbackify = __esm(() => {
29314
29358
  callbackify_default = callbackify;
29315
29359
  });
29316
29360
 
29317
- // ../../node_modules/axios/lib/helpers/speedometer.js
29361
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/helpers/speedometer.js
29318
29362
  function speedometer(samplesCount, min) {
29319
29363
  samplesCount = samplesCount || 10;
29320
29364
  const bytes = new Array(samplesCount);
@@ -29353,7 +29397,7 @@ var init_speedometer = __esm(() => {
29353
29397
  speedometer_default = speedometer;
29354
29398
  });
29355
29399
 
29356
- // ../../node_modules/axios/lib/helpers/throttle.js
29400
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/helpers/throttle.js
29357
29401
  function throttle(fn, freq) {
29358
29402
  let timestamp = 0;
29359
29403
  let threshold = 1000 / freq;
@@ -29391,7 +29435,7 @@ var init_throttle = __esm(() => {
29391
29435
  throttle_default = throttle;
29392
29436
  });
29393
29437
 
29394
- // ../../node_modules/axios/lib/helpers/progressEventReducer.js
29438
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/helpers/progressEventReducer.js
29395
29439
  var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
29396
29440
  let bytesNotified = 0;
29397
29441
  const _speedometer = speedometer_default(50, 250);
@@ -29429,7 +29473,7 @@ var init_progressEventReducer = __esm(() => {
29429
29473
  init_utils();
29430
29474
  });
29431
29475
 
29432
- // ../../node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
29476
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
29433
29477
  function estimateDataURLDecodedBytes(url3) {
29434
29478
  if (!url3 || typeof url3 !== "string")
29435
29479
  return 0;
@@ -29481,7 +29525,7 @@ function estimateDataURLDecodedBytes(url3) {
29481
29525
  return Buffer.byteLength(body, "utf8");
29482
29526
  }
29483
29527
 
29484
- // ../../node_modules/axios/lib/adapters/http.js
29528
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/adapters/http.js
29485
29529
  import http from "http";
29486
29530
  import https from "https";
29487
29531
  import http2 from "http2";
@@ -30096,7 +30140,7 @@ var init_http = __esm(() => {
30096
30140
  };
30097
30141
  });
30098
30142
 
30099
- // ../../node_modules/axios/lib/helpers/isURLSameOrigin.js
30143
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/helpers/isURLSameOrigin.js
30100
30144
  var isURLSameOrigin_default;
30101
30145
  var init_isURLSameOrigin = __esm(() => {
30102
30146
  init_platform();
@@ -30106,7 +30150,7 @@ var init_isURLSameOrigin = __esm(() => {
30106
30150
  })(new URL(platform_default.origin), platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)) : () => true;
30107
30151
  });
30108
30152
 
30109
- // ../../node_modules/axios/lib/helpers/cookies.js
30153
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/helpers/cookies.js
30110
30154
  var cookies_default;
30111
30155
  var init_cookies = __esm(() => {
30112
30156
  init_utils();
@@ -30151,7 +30195,7 @@ var init_cookies = __esm(() => {
30151
30195
  };
30152
30196
  });
30153
30197
 
30154
- // ../../node_modules/axios/lib/core/mergeConfig.js
30198
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/core/mergeConfig.js
30155
30199
  function mergeConfig(config1, config2) {
30156
30200
  config2 = config2 || {};
30157
30201
  const config3 = {};
@@ -30223,7 +30267,9 @@ function mergeConfig(config1, config2) {
30223
30267
  headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
30224
30268
  };
30225
30269
  utils_default.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
30226
- const merge3 = mergeMap[prop] || mergeDeepProperties;
30270
+ if (prop === "__proto__" || prop === "constructor" || prop === "prototype")
30271
+ return;
30272
+ const merge3 = utils_default.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
30227
30273
  const configValue = merge3(config1[prop], config2[prop], prop);
30228
30274
  utils_default.isUndefined(configValue) && merge3 !== mergeDirectKeys || (config3[prop] = configValue);
30229
30275
  });
@@ -30235,7 +30281,7 @@ var init_mergeConfig = __esm(() => {
30235
30281
  init_AxiosHeaders();
30236
30282
  });
30237
30283
 
30238
- // ../../node_modules/axios/lib/helpers/resolveConfig.js
30284
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/helpers/resolveConfig.js
30239
30285
  var resolveConfig_default = (config2) => {
30240
30286
  const newConfig = mergeConfig({}, config2);
30241
30287
  let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth: auth2 } = newConfig;
@@ -30279,7 +30325,7 @@ var init_resolveConfig = __esm(() => {
30279
30325
  init_buildURL();
30280
30326
  });
30281
30327
 
30282
- // ../../node_modules/axios/lib/adapters/xhr.js
30328
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/adapters/xhr.js
30283
30329
  var isXHRAdapterSupported, xhr_default;
30284
30330
  var init_xhr = __esm(() => {
30285
30331
  init_utils();
@@ -30414,7 +30460,7 @@ var init_xhr = __esm(() => {
30414
30460
  };
30415
30461
  });
30416
30462
 
30417
- // ../../node_modules/axios/lib/helpers/composeSignals.js
30463
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/helpers/composeSignals.js
30418
30464
  var composeSignals = (signals, timeout) => {
30419
30465
  const { length } = signals = signals ? signals.filter(Boolean) : [];
30420
30466
  if (timeout || length) {
@@ -30455,7 +30501,7 @@ var init_composeSignals = __esm(() => {
30455
30501
  composeSignals_default = composeSignals;
30456
30502
  });
30457
30503
 
30458
- // ../../node_modules/axios/lib/helpers/trackStream.js
30504
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/helpers/trackStream.js
30459
30505
  var streamChunk = function* (chunk, chunkSize) {
30460
30506
  let len = chunk.byteLength;
30461
30507
  if (!chunkSize || len < chunkSize) {
@@ -30529,7 +30575,7 @@ var streamChunk = function* (chunk, chunkSize) {
30529
30575
  });
30530
30576
  };
30531
30577
 
30532
- // ../../node_modules/axios/lib/adapters/fetch.js
30578
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/adapters/fetch.js
30533
30579
  var DEFAULT_CHUNK_SIZE, isFunction2, globalFetchAPI, ReadableStream2, TextEncoder2, test = (fn, ...args) => {
30534
30580
  try {
30535
30581
  return !!fn(...args);
@@ -30687,11 +30733,11 @@ var DEFAULT_CHUNK_SIZE, isFunction2, globalFetchAPI, ReadableStream2, TextEncode
30687
30733
  } catch (err) {
30688
30734
  unsubscribe && unsubscribe();
30689
30735
  if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
30690
- throw Object.assign(new AxiosError_default("Network Error", AxiosError_default.ERR_NETWORK, config2, request), {
30736
+ throw Object.assign(new AxiosError_default("Network Error", AxiosError_default.ERR_NETWORK, config2, request, err && err.response), {
30691
30737
  cause: err.cause || err
30692
30738
  });
30693
30739
  }
30694
- throw AxiosError_default.from(err, err && err.code, config2, request);
30740
+ throw AxiosError_default.from(err, err && err.code, config2, request, err && err.response);
30695
30741
  }
30696
30742
  };
30697
30743
  }, seedCache, getFetch = (config2) => {
@@ -30734,7 +30780,7 @@ var init_fetch = __esm(() => {
30734
30780
  adapter = getFetch();
30735
30781
  });
30736
30782
 
30737
- // ../../node_modules/axios/lib/adapters/adapters.js
30783
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/adapters/adapters.js
30738
30784
  function getAdapter(adapters, config2) {
30739
30785
  adapters = utils_default.isArray(adapters) ? adapters : [adapters];
30740
30786
  const { length } = adapters;
@@ -30793,7 +30839,7 @@ var init_adapters = __esm(() => {
30793
30839
  };
30794
30840
  });
30795
30841
 
30796
- // ../../node_modules/axios/lib/core/dispatchRequest.js
30842
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/core/dispatchRequest.js
30797
30843
  function throwIfCancellationRequested(config2) {
30798
30844
  if (config2.cancelToken) {
30799
30845
  config2.cancelToken.throwIfRequested();
@@ -30834,7 +30880,7 @@ var init_dispatchRequest = __esm(() => {
30834
30880
  init_adapters();
30835
30881
  });
30836
30882
 
30837
- // ../../node_modules/axios/lib/helpers/validator.js
30883
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/helpers/validator.js
30838
30884
  function assertOptions(options, schema, allowUnknown) {
30839
30885
  if (typeof options !== "object") {
30840
30886
  throw new AxiosError_default("options must be an object", AxiosError_default.ERR_BAD_OPTION_VALUE);
@@ -30894,7 +30940,7 @@ var init_validator = __esm(() => {
30894
30940
  };
30895
30941
  });
30896
30942
 
30897
- // ../../node_modules/axios/lib/core/Axios.js
30943
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/core/Axios.js
30898
30944
  class Axios {
30899
30945
  constructor(instanceConfig) {
30900
30946
  this.defaults = instanceConfig || {};
@@ -30936,7 +30982,8 @@ class Axios {
30936
30982
  validator_default.assertOptions(transitional2, {
30937
30983
  silentJSONParsing: validators2.transitional(validators2.boolean),
30938
30984
  forcedJSONParsing: validators2.transitional(validators2.boolean),
30939
- clarifyTimeoutError: validators2.transitional(validators2.boolean)
30985
+ clarifyTimeoutError: validators2.transitional(validators2.boolean),
30986
+ legacyInterceptorReqResOrdering: validators2.transitional(validators2.boolean)
30940
30987
  }, false);
30941
30988
  }
30942
30989
  if (paramsSerializer != null) {
@@ -30973,7 +31020,13 @@ class Axios {
30973
31020
  return;
30974
31021
  }
30975
31022
  synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
30976
- requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
31023
+ const transitional3 = config2.transitional || transitional_default;
31024
+ const legacyInterceptorReqResOrdering = transitional3 && transitional3.legacyInterceptorReqResOrdering;
31025
+ if (legacyInterceptorReqResOrdering) {
31026
+ requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
31027
+ } else {
31028
+ requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
31029
+ }
30977
31030
  });
30978
31031
  const responseInterceptorChain = [];
30979
31032
  this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
@@ -30988,11 +31041,8 @@ class Axios {
30988
31041
  chain.push(...responseInterceptorChain);
30989
31042
  len = chain.length;
30990
31043
  promise2 = Promise.resolve(config2);
30991
- let prevResult = config2;
30992
31044
  while (i < len) {
30993
- promise2 = promise2.then(chain[i++]).then((result) => {
30994
- prevResult = result !== undefined ? result : prevResult;
30995
- }).catch(chain[i++]).then(() => prevResult);
31045
+ promise2 = promise2.then(chain[i++], chain[i++]);
30996
31046
  }
30997
31047
  return promise2;
30998
31048
  }
@@ -31016,7 +31066,7 @@ class Axios {
31016
31066
  i = 0;
31017
31067
  len = responseInterceptorChain.length;
31018
31068
  while (i < len) {
31019
- promise2 = promise2.then(responseInterceptorChain[i++]).catch(responseInterceptorChain[i++]);
31069
+ promise2 = promise2.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);
31020
31070
  }
31021
31071
  return promise2;
31022
31072
  }
@@ -31036,6 +31086,7 @@ var init_Axios = __esm(() => {
31036
31086
  init_buildFullPath();
31037
31087
  init_validator();
31038
31088
  init_AxiosHeaders();
31089
+ init_transitional();
31039
31090
  validators2 = validator_default.validators;
31040
31091
  utils_default.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
31041
31092
  Axios.prototype[method] = function(url3, config2) {
@@ -31065,7 +31116,7 @@ var init_Axios = __esm(() => {
31065
31116
  Axios_default = Axios;
31066
31117
  });
31067
31118
 
31068
- // ../../node_modules/axios/lib/cancel/CancelToken.js
31119
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/cancel/CancelToken.js
31069
31120
  class CancelToken {
31070
31121
  constructor(executor) {
31071
31122
  if (typeof executor !== "function") {
@@ -31155,14 +31206,14 @@ var init_CancelToken = __esm(() => {
31155
31206
  CancelToken_default = CancelToken;
31156
31207
  });
31157
31208
 
31158
- // ../../node_modules/axios/lib/helpers/spread.js
31209
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/helpers/spread.js
31159
31210
  function spread(callback) {
31160
31211
  return function wrap(arr) {
31161
31212
  return callback.apply(null, arr);
31162
31213
  };
31163
31214
  }
31164
31215
 
31165
- // ../../node_modules/axios/lib/helpers/isAxiosError.js
31216
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/helpers/isAxiosError.js
31166
31217
  function isAxiosError(payload) {
31167
31218
  return utils_default.isObject(payload) && payload.isAxiosError === true;
31168
31219
  }
@@ -31170,7 +31221,7 @@ var init_isAxiosError = __esm(() => {
31170
31221
  init_utils();
31171
31222
  });
31172
31223
 
31173
- // ../../node_modules/axios/lib/helpers/HttpStatusCode.js
31224
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/helpers/HttpStatusCode.js
31174
31225
  var HttpStatusCode, HttpStatusCode_default;
31175
31226
  var init_HttpStatusCode = __esm(() => {
31176
31227
  HttpStatusCode = {
@@ -31250,7 +31301,7 @@ var init_HttpStatusCode = __esm(() => {
31250
31301
  HttpStatusCode_default = HttpStatusCode;
31251
31302
  });
31252
31303
 
31253
- // ../../node_modules/axios/lib/axios.js
31304
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/lib/axios.js
31254
31305
  function createInstance(defaultConfig) {
31255
31306
  const context2 = new Axios_default(defaultConfig);
31256
31307
  const instance = bind(Axios_default.prototype.request, context2);
@@ -31299,7 +31350,7 @@ var init_axios = __esm(() => {
31299
31350
  axios_default = axios;
31300
31351
  });
31301
31352
 
31302
- // ../../node_modules/axios/index.js
31353
+ // ../../node_modules/.bun/axios@1.13.5/node_modules/axios/index.js
31303
31354
  var init_axios2 = __esm(() => {
31304
31355
  init_axios();
31305
31356
  });
@@ -31650,6 +31701,39 @@ var init_workspaces = __esm(() => {
31650
31701
  };
31651
31702
  });
31652
31703
 
31704
+ // ../sdk/src/discussion/discussion-types.ts
31705
+ var DiscussionMessageSchema, DiscussionInsightSchema, DiscussionSchema;
31706
+ var init_discussion_types = __esm(() => {
31707
+ init_zod();
31708
+ DiscussionMessageSchema = exports_external.object({
31709
+ role: exports_external.enum(["user", "assistant"]),
31710
+ content: exports_external.string(),
31711
+ timestamp: exports_external.number()
31712
+ });
31713
+ DiscussionInsightSchema = exports_external.object({
31714
+ id: exports_external.string(),
31715
+ type: exports_external.enum(["decision", "requirement", "idea", "concern", "learning"]),
31716
+ title: exports_external.string(),
31717
+ content: exports_external.string(),
31718
+ tags: exports_external.array(exports_external.string()).default([]),
31719
+ createdAt: exports_external.string()
31720
+ });
31721
+ DiscussionSchema = exports_external.object({
31722
+ id: exports_external.string(),
31723
+ title: exports_external.string(),
31724
+ topic: exports_external.string(),
31725
+ status: exports_external.enum(["active", "completed", "archived"]).default("active"),
31726
+ messages: exports_external.array(DiscussionMessageSchema).default([]),
31727
+ insights: exports_external.array(DiscussionInsightSchema).default([]),
31728
+ createdAt: exports_external.string(),
31729
+ updatedAt: exports_external.string(),
31730
+ metadata: exports_external.object({
31731
+ model: exports_external.string(),
31732
+ provider: exports_external.string()
31733
+ })
31734
+ });
31735
+ });
31736
+
31653
31737
  // ../sdk/src/index.ts
31654
31738
  class LocusClient {
31655
31739
  api;
@@ -31751,6 +31835,7 @@ var init_src2 = __esm(() => {
31751
31835
  init_sprints();
31752
31836
  init_tasks();
31753
31837
  init_workspaces();
31838
+ init_discussion_types();
31754
31839
  init_events();
31755
31840
  init_auth2();
31756
31841
  init_ci2();
@@ -32007,10 +32092,198 @@ var init_git_workflow = __esm(() => {
32007
32092
  init_git_utils();
32008
32093
  });
32009
32094
 
32010
- // ../sdk/src/core/prompt-builder.ts
32011
- import { existsSync as existsSync3, readFileSync as readFileSync3 } from "node:fs";
32095
+ // ../sdk/src/discussion/discussion-manager.ts
32096
+ import {
32097
+ existsSync as existsSync3,
32098
+ mkdirSync,
32099
+ readdirSync as readdirSync2,
32100
+ readFileSync as readFileSync3,
32101
+ unlinkSync as unlinkSync2,
32102
+ writeFileSync
32103
+ } from "node:fs";
32012
32104
  import { join as join4 } from "node:path";
32013
32105
 
32106
+ class DiscussionManager {
32107
+ discussionsDir;
32108
+ constructor(projectPath) {
32109
+ this.discussionsDir = getLocusPath(projectPath, "discussionsDir");
32110
+ }
32111
+ create(topic, model, provider) {
32112
+ this.ensureDir();
32113
+ const now = new Date().toISOString();
32114
+ const id = `disc-${Date.now()}`;
32115
+ const discussion = {
32116
+ id,
32117
+ title: topic,
32118
+ topic,
32119
+ status: "active",
32120
+ messages: [],
32121
+ insights: [],
32122
+ createdAt: now,
32123
+ updatedAt: now,
32124
+ metadata: { model, provider }
32125
+ };
32126
+ this.save(discussion);
32127
+ return discussion;
32128
+ }
32129
+ save(discussion) {
32130
+ this.ensureDir();
32131
+ const jsonPath = join4(this.discussionsDir, `${discussion.id}.json`);
32132
+ const mdPath = join4(this.discussionsDir, `summary-${discussion.id}.md`);
32133
+ writeFileSync(jsonPath, JSON.stringify(discussion, null, 2), "utf-8");
32134
+ writeFileSync(mdPath, this.toMarkdown(discussion), "utf-8");
32135
+ }
32136
+ load(id) {
32137
+ this.ensureDir();
32138
+ const filePath = join4(this.discussionsDir, `${id}.json`);
32139
+ if (!existsSync3(filePath)) {
32140
+ return null;
32141
+ }
32142
+ try {
32143
+ return JSON.parse(readFileSync3(filePath, "utf-8"));
32144
+ } catch {
32145
+ return null;
32146
+ }
32147
+ }
32148
+ list(status) {
32149
+ this.ensureDir();
32150
+ const files = readdirSync2(this.discussionsDir).filter((f) => f.endsWith(".json"));
32151
+ const discussions = [];
32152
+ for (const file2 of files) {
32153
+ try {
32154
+ const discussion = JSON.parse(readFileSync3(join4(this.discussionsDir, file2), "utf-8"));
32155
+ if (!status || discussion.status === status) {
32156
+ discussions.push(discussion);
32157
+ }
32158
+ } catch {}
32159
+ }
32160
+ discussions.sort((a, b) => new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime());
32161
+ return discussions;
32162
+ }
32163
+ complete(id) {
32164
+ const discussion = this.load(id);
32165
+ if (!discussion) {
32166
+ throw new Error(`Discussion not found: ${id}`);
32167
+ }
32168
+ discussion.status = "completed";
32169
+ discussion.updatedAt = new Date().toISOString();
32170
+ this.save(discussion);
32171
+ return discussion;
32172
+ }
32173
+ archive(id) {
32174
+ const discussion = this.load(id);
32175
+ if (!discussion) {
32176
+ throw new Error(`Discussion not found: ${id}`);
32177
+ }
32178
+ discussion.status = "archived";
32179
+ discussion.updatedAt = new Date().toISOString();
32180
+ this.save(discussion);
32181
+ }
32182
+ delete(id) {
32183
+ this.ensureDir();
32184
+ const jsonPath = join4(this.discussionsDir, `${id}.json`);
32185
+ const mdPath = join4(this.discussionsDir, `summary-${id}.md`);
32186
+ if (existsSync3(jsonPath)) {
32187
+ unlinkSync2(jsonPath);
32188
+ }
32189
+ if (existsSync3(mdPath)) {
32190
+ unlinkSync2(mdPath);
32191
+ }
32192
+ }
32193
+ addMessage(id, role, content) {
32194
+ const discussion = this.load(id);
32195
+ if (!discussion) {
32196
+ throw new Error(`Discussion not found: ${id}`);
32197
+ }
32198
+ discussion.messages.push({
32199
+ role,
32200
+ content,
32201
+ timestamp: Date.now()
32202
+ });
32203
+ discussion.updatedAt = new Date().toISOString();
32204
+ this.save(discussion);
32205
+ return discussion;
32206
+ }
32207
+ addInsight(id, insight) {
32208
+ const discussion = this.load(id);
32209
+ if (!discussion) {
32210
+ throw new Error(`Discussion not found: ${id}`);
32211
+ }
32212
+ discussion.insights.push(insight);
32213
+ discussion.updatedAt = new Date().toISOString();
32214
+ this.save(discussion);
32215
+ return discussion;
32216
+ }
32217
+ getAllInsights() {
32218
+ const discussions = this.list("completed");
32219
+ const insights = [];
32220
+ for (const discussion of discussions) {
32221
+ insights.push(...discussion.insights);
32222
+ }
32223
+ insights.sort((a, b) => new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime());
32224
+ return insights;
32225
+ }
32226
+ getMarkdown(id) {
32227
+ const discussion = this.load(id);
32228
+ if (!discussion)
32229
+ return null;
32230
+ return this.toMarkdown(discussion);
32231
+ }
32232
+ toMarkdown(discussion) {
32233
+ const lines = [];
32234
+ lines.push(`# Discussion: ${discussion.title}`);
32235
+ lines.push("");
32236
+ lines.push(`**Status:** ${discussion.status.toUpperCase()}`);
32237
+ lines.push(`**Topic:** ${discussion.topic}`);
32238
+ lines.push(`**Created:** ${discussion.createdAt}`);
32239
+ lines.push(`**Updated:** ${discussion.updatedAt}`);
32240
+ lines.push(`**Model:** ${discussion.metadata.model} (${discussion.metadata.provider})`);
32241
+ lines.push("");
32242
+ if (discussion.messages.length > 0) {
32243
+ lines.push(`## Messages (${discussion.messages.length})`);
32244
+ lines.push("");
32245
+ for (const msg of discussion.messages) {
32246
+ const time3 = new Date(msg.timestamp).toISOString();
32247
+ const roleLabel = msg.role === "user" ? "User" : "Assistant";
32248
+ lines.push(`### ${roleLabel} — ${time3}`);
32249
+ lines.push("");
32250
+ lines.push(msg.content);
32251
+ lines.push("");
32252
+ }
32253
+ }
32254
+ if (discussion.insights.length > 0) {
32255
+ lines.push(`## Insights (${discussion.insights.length})`);
32256
+ lines.push("");
32257
+ for (const insight of discussion.insights) {
32258
+ lines.push(`### [${insight.type.toUpperCase()}] ${insight.title}`);
32259
+ lines.push("");
32260
+ lines.push(insight.content);
32261
+ if (insight.tags.length > 0) {
32262
+ lines.push("");
32263
+ lines.push(`**Tags:** ${insight.tags.join(", ")}`);
32264
+ }
32265
+ lines.push("");
32266
+ }
32267
+ }
32268
+ lines.push("---");
32269
+ lines.push(`*Discussion ID: ${discussion.id}*`);
32270
+ return lines.join(`
32271
+ `);
32272
+ }
32273
+ ensureDir() {
32274
+ if (!existsSync3(this.discussionsDir)) {
32275
+ mkdirSync(this.discussionsDir, { recursive: true });
32276
+ }
32277
+ }
32278
+ }
32279
+ var init_discussion_manager = __esm(() => {
32280
+ init_config();
32281
+ });
32282
+
32283
+ // ../sdk/src/core/prompt-builder.ts
32284
+ import { existsSync as existsSync4, readFileSync as readFileSync4 } from "node:fs";
32285
+ import { join as join5 } from "node:path";
32286
+
32014
32287
  class PromptBuilder {
32015
32288
  projectPath;
32016
32289
  constructor(projectPath) {
@@ -32048,6 +32321,15 @@ ${knowledgeBase}
32048
32321
  These are accumulated lessons from past tasks. Follow them to avoid repeating mistakes:
32049
32322
  ${learnings}
32050
32323
  </learnings>
32324
+ `;
32325
+ }
32326
+ const discussionInsights = this.getDiscussionInsightsContent();
32327
+ if (discussionInsights) {
32328
+ sections += `
32329
+ <discussion_insights>
32330
+ These are key decisions and insights from product discussions. Follow them to maintain product coherence:
32331
+ ${discussionInsights}
32332
+ </discussion_insights>
32051
32333
  `;
32052
32334
  }
32053
32335
  if (task2.docs && task2.docs.length > 0) {
@@ -32136,6 +32418,15 @@ ${knowledgeBase}
32136
32418
  These are accumulated lessons from past tasks. Follow them to avoid repeating mistakes:
32137
32419
  ${learnings}
32138
32420
  </learnings>
32421
+ `;
32422
+ }
32423
+ const discussionInsights = this.getDiscussionInsightsContent();
32424
+ if (discussionInsights) {
32425
+ sections += `
32426
+ <discussion_insights>
32427
+ These are key decisions and insights from product discussions. Follow them to maintain product coherence:
32428
+ ${discussionInsights}
32429
+ </discussion_insights>
32139
32430
  `;
32140
32431
  }
32141
32432
  return `<direct_execution>
@@ -32150,9 +32441,9 @@ ${sections}
32150
32441
  }
32151
32442
  getProjectContext() {
32152
32443
  const contextPath = getLocusPath(this.projectPath, "contextFile");
32153
- if (existsSync3(contextPath)) {
32444
+ if (existsSync4(contextPath)) {
32154
32445
  try {
32155
- const context2 = readFileSync3(contextPath, "utf-8");
32446
+ const context2 = readFileSync4(contextPath, "utf-8");
32156
32447
  if (context2.trim().length > 20) {
32157
32448
  return context2;
32158
32449
  }
@@ -32163,10 +32454,10 @@ ${sections}
32163
32454
  return this.getFallbackContext() || null;
32164
32455
  }
32165
32456
  getFallbackContext() {
32166
- const readmePath = join4(this.projectPath, "README.md");
32167
- if (existsSync3(readmePath)) {
32457
+ const readmePath = join5(this.projectPath, "README.md");
32458
+ if (existsSync4(readmePath)) {
32168
32459
  try {
32169
- const content = readFileSync3(readmePath, "utf-8");
32460
+ const content = readFileSync4(readmePath, "utf-8");
32170
32461
  const limit = 1000;
32171
32462
  return content.slice(0, limit) + (content.length > limit ? `
32172
32463
  ...(truncated)...` : "");
@@ -32180,15 +32471,16 @@ ${sections}
32180
32471
  return `You have access to the following documentation directories for context:
32181
32472
  - Artifacts: \`.locus/artifacts\` (local-only, not synced to cloud)
32182
32473
  - Documents: \`.locus/documents\` (synced from cloud)
32474
+ - Discussions: \`.locus/discussions\` (product discussion insights and decisions)
32183
32475
  If you need more information about the project strategies, plans, or architecture, read files in these directories.`;
32184
32476
  }
32185
32477
  getLearningsContent() {
32186
32478
  const learningsPath = getLocusPath(this.projectPath, "learningsFile");
32187
- if (!existsSync3(learningsPath)) {
32479
+ if (!existsSync4(learningsPath)) {
32188
32480
  return null;
32189
32481
  }
32190
32482
  try {
32191
- const content = readFileSync3(learningsPath, "utf-8");
32483
+ const content = readFileSync4(learningsPath, "utf-8");
32192
32484
  const lines = content.split(`
32193
32485
  `).filter((l) => l.startsWith("- "));
32194
32486
  if (lines.length === 0) {
@@ -32200,6 +32492,53 @@ If you need more information about the project strategies, plans, or architectur
32200
32492
  return null;
32201
32493
  }
32202
32494
  }
32495
+ getDiscussionInsightsContent() {
32496
+ try {
32497
+ const manager = new DiscussionManager(this.projectPath);
32498
+ const insights = manager.getAllInsights();
32499
+ if (insights.length === 0) {
32500
+ return null;
32501
+ }
32502
+ const groups = {};
32503
+ for (const insight of insights) {
32504
+ const key = insight.type;
32505
+ if (!groups[key]) {
32506
+ groups[key] = [];
32507
+ }
32508
+ groups[key].push(insight);
32509
+ }
32510
+ const typeLabels = {
32511
+ decision: "Decisions",
32512
+ requirement: "Requirements",
32513
+ idea: "Ideas",
32514
+ concern: "Concerns",
32515
+ learning: "Learnings"
32516
+ };
32517
+ let output = "";
32518
+ for (const [type, label] of Object.entries(typeLabels)) {
32519
+ const items = groups[type];
32520
+ if (!items || items.length === 0)
32521
+ continue;
32522
+ output += `## ${label}
32523
+ `;
32524
+ for (const item of items) {
32525
+ output += `- [${item.title}]: ${item.content}
32526
+ `;
32527
+ }
32528
+ output += `
32529
+ `;
32530
+ }
32531
+ if (output.length === 0) {
32532
+ return null;
32533
+ }
32534
+ if (output.length > 2000) {
32535
+ output = `${output.slice(0, 1997)}...`;
32536
+ }
32537
+ return output.trimEnd();
32538
+ } catch {
32539
+ return null;
32540
+ }
32541
+ }
32203
32542
  roleToText(role) {
32204
32543
  if (!role) {
32205
32544
  return null;
@@ -32222,6 +32561,7 @@ If you need more information about the project strategies, plans, or architectur
32222
32561
  }
32223
32562
  var init_prompt_builder = __esm(() => {
32224
32563
  init_src();
32564
+ init_discussion_manager();
32225
32565
  init_config();
32226
32566
  });
32227
32567
 
@@ -32538,7 +32878,6 @@ Branch: \`${result.branch}\`` : "";
32538
32878
  this.log("All tasks done. Creating pull request...", "info");
32539
32879
  const prResult = this.gitWorkflow.createPullRequest(this.completedTaskList, this.taskSummaries);
32540
32880
  if (prResult.url) {
32541
- this.log(`PR created: ${prResult.url}`, "success");
32542
32881
  for (const task2 of this.completedTaskList) {
32543
32882
  try {
32544
32883
  await this.client.tasks.update(task2.id, this.config.workspaceId, {