@aiden-ade/sandbox-agent 0.1.78 → 0.1.81

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 (2) hide show
  1. package/dist/index.cjs +1444 -595
  2. package/package.json +3 -3
package/dist/index.cjs CHANGED
@@ -30,9 +30,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
30
30
  mod
31
31
  ));
32
32
 
33
- // ../../node_modules/xmlhttprequest-ssl/lib/XMLHttpRequest.js
33
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/xmlhttprequest-ssl/lib/XMLHttpRequest.js
34
34
  var require_XMLHttpRequest = __commonJS({
35
- "../../node_modules/xmlhttprequest-ssl/lib/XMLHttpRequest.js"(exports2, module2) {
35
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/xmlhttprequest-ssl/lib/XMLHttpRequest.js"(exports2, module2) {
36
36
  "use strict";
37
37
  var fs = require("fs");
38
38
  var Url = require("url");
@@ -434,9 +434,9 @@ var require_XMLHttpRequest = __commonJS({
434
434
  }
435
435
  });
436
436
 
437
- // ../../node_modules/ms/index.js
437
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/ms/index.js
438
438
  var require_ms = __commonJS({
439
- "../../node_modules/ms/index.js"(exports2, module2) {
439
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/ms/index.js"(exports2, module2) {
440
440
  "use strict";
441
441
  var s = 1e3;
442
442
  var m = s * 60;
@@ -551,9 +551,9 @@ var require_ms = __commonJS({
551
551
  }
552
552
  });
553
553
 
554
- // ../../node_modules/debug/src/common.js
554
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/debug/src/common.js
555
555
  var require_common = __commonJS({
556
- "../../node_modules/debug/src/common.js"(exports2, module2) {
556
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/debug/src/common.js"(exports2, module2) {
557
557
  "use strict";
558
558
  function setup(env) {
559
559
  createDebug.debug = createDebug;
@@ -729,9 +729,9 @@ var require_common = __commonJS({
729
729
  }
730
730
  });
731
731
 
732
- // ../../node_modules/debug/src/browser.js
732
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/debug/src/browser.js
733
733
  var require_browser = __commonJS({
734
- "../../node_modules/debug/src/browser.js"(exports2, module2) {
734
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/debug/src/browser.js"(exports2, module2) {
735
735
  "use strict";
736
736
  exports2.formatArgs = formatArgs;
737
737
  exports2.save = save;
@@ -900,9 +900,9 @@ var require_browser = __commonJS({
900
900
  }
901
901
  });
902
902
 
903
- // ../../node_modules/has-flag/index.js
903
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/has-flag/index.js
904
904
  var require_has_flag = __commonJS({
905
- "../../node_modules/has-flag/index.js"(exports2, module2) {
905
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/has-flag/index.js"(exports2, module2) {
906
906
  "use strict";
907
907
  module2.exports = (flag, argv = process.argv) => {
908
908
  const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
@@ -913,9 +913,9 @@ var require_has_flag = __commonJS({
913
913
  }
914
914
  });
915
915
 
916
- // ../../node_modules/supports-color/index.js
916
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/supports-color/index.js
917
917
  var require_supports_color = __commonJS({
918
- "../../node_modules/supports-color/index.js"(exports2, module2) {
918
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/supports-color/index.js"(exports2, module2) {
919
919
  "use strict";
920
920
  var os = require("os");
921
921
  var tty = require("tty");
@@ -1015,9 +1015,9 @@ var require_supports_color = __commonJS({
1015
1015
  }
1016
1016
  });
1017
1017
 
1018
- // ../../node_modules/debug/src/node.js
1018
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/debug/src/node.js
1019
1019
  var require_node = __commonJS({
1020
- "../../node_modules/debug/src/node.js"(exports2, module2) {
1020
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/debug/src/node.js"(exports2, module2) {
1021
1021
  "use strict";
1022
1022
  var tty = require("tty");
1023
1023
  var util = require("util");
@@ -1190,9 +1190,9 @@ var require_node = __commonJS({
1190
1190
  }
1191
1191
  });
1192
1192
 
1193
- // ../../node_modules/debug/src/index.js
1193
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/debug/src/index.js
1194
1194
  var require_src = __commonJS({
1195
- "../../node_modules/debug/src/index.js"(exports2, module2) {
1195
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/debug/src/index.js"(exports2, module2) {
1196
1196
  "use strict";
1197
1197
  if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
1198
1198
  module2.exports = require_browser();
@@ -1202,9 +1202,9 @@ var require_src = __commonJS({
1202
1202
  }
1203
1203
  });
1204
1204
 
1205
- // ../../node_modules/engine.io-client/node_modules/ws/lib/constants.js
1205
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-client/node_modules/ws/lib/constants.js
1206
1206
  var require_constants = __commonJS({
1207
- "../../node_modules/engine.io-client/node_modules/ws/lib/constants.js"(exports2, module2) {
1207
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-client/node_modules/ws/lib/constants.js"(exports2, module2) {
1208
1208
  "use strict";
1209
1209
  var BINARY_TYPES = ["nodebuffer", "arraybuffer", "fragments"];
1210
1210
  var hasBlob = typeof Blob !== "undefined";
@@ -1224,9 +1224,9 @@ var require_constants = __commonJS({
1224
1224
  }
1225
1225
  });
1226
1226
 
1227
- // ../../node_modules/engine.io-client/node_modules/ws/lib/buffer-util.js
1227
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-client/node_modules/ws/lib/buffer-util.js
1228
1228
  var require_buffer_util = __commonJS({
1229
- "../../node_modules/engine.io-client/node_modules/ws/lib/buffer-util.js"(exports2, module2) {
1229
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-client/node_modules/ws/lib/buffer-util.js"(exports2, module2) {
1230
1230
  "use strict";
1231
1231
  var { EMPTY_BUFFER } = require_constants();
1232
1232
  var FastBuffer = Buffer[Symbol.species];
@@ -1299,9 +1299,9 @@ var require_buffer_util = __commonJS({
1299
1299
  }
1300
1300
  });
1301
1301
 
1302
- // ../../node_modules/engine.io-client/node_modules/ws/lib/limiter.js
1302
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-client/node_modules/ws/lib/limiter.js
1303
1303
  var require_limiter = __commonJS({
1304
- "../../node_modules/engine.io-client/node_modules/ws/lib/limiter.js"(exports2, module2) {
1304
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-client/node_modules/ws/lib/limiter.js"(exports2, module2) {
1305
1305
  "use strict";
1306
1306
  var kDone = /* @__PURE__ */ Symbol("kDone");
1307
1307
  var kRun = /* @__PURE__ */ Symbol("kRun");
@@ -1349,9 +1349,9 @@ var require_limiter = __commonJS({
1349
1349
  }
1350
1350
  });
1351
1351
 
1352
- // ../../node_modules/engine.io-client/node_modules/ws/lib/permessage-deflate.js
1352
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-client/node_modules/ws/lib/permessage-deflate.js
1353
1353
  var require_permessage_deflate = __commonJS({
1354
- "../../node_modules/engine.io-client/node_modules/ws/lib/permessage-deflate.js"(exports2, module2) {
1354
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-client/node_modules/ws/lib/permessage-deflate.js"(exports2, module2) {
1355
1355
  "use strict";
1356
1356
  var zlib = require("zlib");
1357
1357
  var bufferUtil = require_buffer_util();
@@ -1732,9 +1732,9 @@ var require_permessage_deflate = __commonJS({
1732
1732
  }
1733
1733
  });
1734
1734
 
1735
- // ../../node_modules/engine.io-client/node_modules/ws/lib/validation.js
1735
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-client/node_modules/ws/lib/validation.js
1736
1736
  var require_validation = __commonJS({
1737
- "../../node_modules/engine.io-client/node_modules/ws/lib/validation.js"(exports2, module2) {
1737
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-client/node_modules/ws/lib/validation.js"(exports2, module2) {
1738
1738
  "use strict";
1739
1739
  var { isUtf8 } = require("buffer");
1740
1740
  var { hasBlob } = require_constants();
@@ -1933,9 +1933,9 @@ var require_validation = __commonJS({
1933
1933
  }
1934
1934
  });
1935
1935
 
1936
- // ../../node_modules/engine.io-client/node_modules/ws/lib/receiver.js
1936
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-client/node_modules/ws/lib/receiver.js
1937
1937
  var require_receiver = __commonJS({
1938
- "../../node_modules/engine.io-client/node_modules/ws/lib/receiver.js"(exports2, module2) {
1938
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-client/node_modules/ws/lib/receiver.js"(exports2, module2) {
1939
1939
  "use strict";
1940
1940
  var { Writable } = require("stream");
1941
1941
  var PerMessageDeflate = require_permessage_deflate();
@@ -2525,9 +2525,9 @@ var require_receiver = __commonJS({
2525
2525
  }
2526
2526
  });
2527
2527
 
2528
- // ../../node_modules/engine.io-client/node_modules/ws/lib/sender.js
2528
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-client/node_modules/ws/lib/sender.js
2529
2529
  var require_sender = __commonJS({
2530
- "../../node_modules/engine.io-client/node_modules/ws/lib/sender.js"(exports2, module2) {
2530
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-client/node_modules/ws/lib/sender.js"(exports2, module2) {
2531
2531
  "use strict";
2532
2532
  var { Duplex } = require("stream");
2533
2533
  var { randomFillSync } = require("crypto");
@@ -3013,9 +3013,9 @@ var require_sender = __commonJS({
3013
3013
  }
3014
3014
  });
3015
3015
 
3016
- // ../../node_modules/engine.io-client/node_modules/ws/lib/event-target.js
3016
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-client/node_modules/ws/lib/event-target.js
3017
3017
  var require_event_target = __commonJS({
3018
- "../../node_modules/engine.io-client/node_modules/ws/lib/event-target.js"(exports2, module2) {
3018
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-client/node_modules/ws/lib/event-target.js"(exports2, module2) {
3019
3019
  "use strict";
3020
3020
  var { kForOnEventAttribute, kListener } = require_constants();
3021
3021
  var kCode = /* @__PURE__ */ Symbol("kCode");
@@ -3242,9 +3242,9 @@ var require_event_target = __commonJS({
3242
3242
  }
3243
3243
  });
3244
3244
 
3245
- // ../../node_modules/engine.io-client/node_modules/ws/lib/extension.js
3245
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-client/node_modules/ws/lib/extension.js
3246
3246
  var require_extension = __commonJS({
3247
- "../../node_modules/engine.io-client/node_modules/ws/lib/extension.js"(exports2, module2) {
3247
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-client/node_modules/ws/lib/extension.js"(exports2, module2) {
3248
3248
  "use strict";
3249
3249
  var { tokenChars } = require_validation();
3250
3250
  function push2(dest, name, elem) {
@@ -3395,9 +3395,9 @@ var require_extension = __commonJS({
3395
3395
  }
3396
3396
  });
3397
3397
 
3398
- // ../../node_modules/engine.io-client/node_modules/ws/lib/websocket.js
3398
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-client/node_modules/ws/lib/websocket.js
3399
3399
  var require_websocket = __commonJS({
3400
- "../../node_modules/engine.io-client/node_modules/ws/lib/websocket.js"(exports2, module2) {
3400
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-client/node_modules/ws/lib/websocket.js"(exports2, module2) {
3401
3401
  "use strict";
3402
3402
  var EventEmitter = require("events");
3403
3403
  var https = require("https");
@@ -4278,9 +4278,9 @@ var require_websocket = __commonJS({
4278
4278
  }
4279
4279
  });
4280
4280
 
4281
- // ../../node_modules/engine.io-client/node_modules/ws/lib/stream.js
4281
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-client/node_modules/ws/lib/stream.js
4282
4282
  var require_stream = __commonJS({
4283
- "../../node_modules/engine.io-client/node_modules/ws/lib/stream.js"(exports2, module2) {
4283
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-client/node_modules/ws/lib/stream.js"(exports2, module2) {
4284
4284
  "use strict";
4285
4285
  var WebSocket2 = require_websocket();
4286
4286
  var { Duplex } = require("stream");
@@ -4376,9 +4376,9 @@ var require_stream = __commonJS({
4376
4376
  }
4377
4377
  });
4378
4378
 
4379
- // ../../node_modules/engine.io-client/node_modules/ws/lib/subprotocol.js
4379
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-client/node_modules/ws/lib/subprotocol.js
4380
4380
  var require_subprotocol = __commonJS({
4381
- "../../node_modules/engine.io-client/node_modules/ws/lib/subprotocol.js"(exports2, module2) {
4381
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-client/node_modules/ws/lib/subprotocol.js"(exports2, module2) {
4382
4382
  "use strict";
4383
4383
  var { tokenChars } = require_validation();
4384
4384
  function parse7(header) {
@@ -4421,9 +4421,9 @@ var require_subprotocol = __commonJS({
4421
4421
  }
4422
4422
  });
4423
4423
 
4424
- // ../../node_modules/engine.io-client/node_modules/ws/lib/websocket-server.js
4424
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-client/node_modules/ws/lib/websocket-server.js
4425
4425
  var require_websocket_server = __commonJS({
4426
- "../../node_modules/engine.io-client/node_modules/ws/lib/websocket-server.js"(exports2, module2) {
4426
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-client/node_modules/ws/lib/websocket-server.js"(exports2, module2) {
4427
4427
  "use strict";
4428
4428
  var EventEmitter = require("events");
4429
4429
  var http2 = require("http");
@@ -4810,9 +4810,9 @@ var require_websocket_server = __commonJS({
4810
4810
  }
4811
4811
  });
4812
4812
 
4813
- // ../../node_modules/yaml/dist/nodes/identity.js
4813
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/nodes/identity.js
4814
4814
  var require_identity = __commonJS({
4815
- "../../node_modules/yaml/dist/nodes/identity.js"(exports2) {
4815
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/nodes/identity.js"(exports2) {
4816
4816
  "use strict";
4817
4817
  var ALIAS = /* @__PURE__ */ Symbol.for("yaml.alias");
4818
4818
  var DOC = /* @__PURE__ */ Symbol.for("yaml.document");
@@ -4867,9 +4867,9 @@ var require_identity = __commonJS({
4867
4867
  }
4868
4868
  });
4869
4869
 
4870
- // ../../node_modules/yaml/dist/visit.js
4870
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/visit.js
4871
4871
  var require_visit = __commonJS({
4872
- "../../node_modules/yaml/dist/visit.js"(exports2) {
4872
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/visit.js"(exports2) {
4873
4873
  "use strict";
4874
4874
  var identity = require_identity();
4875
4875
  var BREAK = /* @__PURE__ */ Symbol("break visit");
@@ -5025,9 +5025,9 @@ var require_visit = __commonJS({
5025
5025
  }
5026
5026
  });
5027
5027
 
5028
- // ../../node_modules/yaml/dist/doc/directives.js
5028
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/doc/directives.js
5029
5029
  var require_directives = __commonJS({
5030
- "../../node_modules/yaml/dist/doc/directives.js"(exports2) {
5030
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/doc/directives.js"(exports2) {
5031
5031
  "use strict";
5032
5032
  var identity = require_identity();
5033
5033
  var visit2 = require_visit();
@@ -5196,9 +5196,9 @@ var require_directives = __commonJS({
5196
5196
  }
5197
5197
  });
5198
5198
 
5199
- // ../../node_modules/yaml/dist/doc/anchors.js
5199
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/doc/anchors.js
5200
5200
  var require_anchors = __commonJS({
5201
- "../../node_modules/yaml/dist/doc/anchors.js"(exports2) {
5201
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/doc/anchors.js"(exports2) {
5202
5202
  "use strict";
5203
5203
  var identity = require_identity();
5204
5204
  var visit2 = require_visit();
@@ -5266,9 +5266,9 @@ var require_anchors = __commonJS({
5266
5266
  }
5267
5267
  });
5268
5268
 
5269
- // ../../node_modules/yaml/dist/doc/applyReviver.js
5269
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/doc/applyReviver.js
5270
5270
  var require_applyReviver = __commonJS({
5271
- "../../node_modules/yaml/dist/doc/applyReviver.js"(exports2) {
5271
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/doc/applyReviver.js"(exports2) {
5272
5272
  "use strict";
5273
5273
  function applyReviver(reviver, obj, key, val) {
5274
5274
  if (val && typeof val === "object") {
@@ -5316,9 +5316,9 @@ var require_applyReviver = __commonJS({
5316
5316
  }
5317
5317
  });
5318
5318
 
5319
- // ../../node_modules/yaml/dist/nodes/toJS.js
5319
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/nodes/toJS.js
5320
5320
  var require_toJS = __commonJS({
5321
- "../../node_modules/yaml/dist/nodes/toJS.js"(exports2) {
5321
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/nodes/toJS.js"(exports2) {
5322
5322
  "use strict";
5323
5323
  var identity = require_identity();
5324
5324
  function toJS(value2, arg, ctx) {
@@ -5346,9 +5346,9 @@ var require_toJS = __commonJS({
5346
5346
  }
5347
5347
  });
5348
5348
 
5349
- // ../../node_modules/yaml/dist/nodes/Node.js
5349
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/nodes/Node.js
5350
5350
  var require_Node = __commonJS({
5351
- "../../node_modules/yaml/dist/nodes/Node.js"(exports2) {
5351
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/nodes/Node.js"(exports2) {
5352
5352
  "use strict";
5353
5353
  var applyReviver = require_applyReviver();
5354
5354
  var identity = require_identity();
@@ -5387,9 +5387,9 @@ var require_Node = __commonJS({
5387
5387
  }
5388
5388
  });
5389
5389
 
5390
- // ../../node_modules/yaml/dist/nodes/Alias.js
5390
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/nodes/Alias.js
5391
5391
  var require_Alias = __commonJS({
5392
- "../../node_modules/yaml/dist/nodes/Alias.js"(exports2) {
5392
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/nodes/Alias.js"(exports2) {
5393
5393
  "use strict";
5394
5394
  var anchors = require_anchors();
5395
5395
  var visit2 = require_visit();
@@ -5503,9 +5503,9 @@ var require_Alias = __commonJS({
5503
5503
  }
5504
5504
  });
5505
5505
 
5506
- // ../../node_modules/yaml/dist/nodes/Scalar.js
5506
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/nodes/Scalar.js
5507
5507
  var require_Scalar = __commonJS({
5508
- "../../node_modules/yaml/dist/nodes/Scalar.js"(exports2) {
5508
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/nodes/Scalar.js"(exports2) {
5509
5509
  "use strict";
5510
5510
  var identity = require_identity();
5511
5511
  var Node = require_Node();
@@ -5533,9 +5533,9 @@ var require_Scalar = __commonJS({
5533
5533
  }
5534
5534
  });
5535
5535
 
5536
- // ../../node_modules/yaml/dist/doc/createNode.js
5536
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/doc/createNode.js
5537
5537
  var require_createNode = __commonJS({
5538
- "../../node_modules/yaml/dist/doc/createNode.js"(exports2) {
5538
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/doc/createNode.js"(exports2) {
5539
5539
  "use strict";
5540
5540
  var Alias = require_Alias();
5541
5541
  var identity = require_identity();
@@ -5608,9 +5608,9 @@ var require_createNode = __commonJS({
5608
5608
  }
5609
5609
  });
5610
5610
 
5611
- // ../../node_modules/yaml/dist/nodes/Collection.js
5611
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/nodes/Collection.js
5612
5612
  var require_Collection = __commonJS({
5613
- "../../node_modules/yaml/dist/nodes/Collection.js"(exports2) {
5613
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/nodes/Collection.js"(exports2) {
5614
5614
  "use strict";
5615
5615
  var createNode = require_createNode();
5616
5616
  var identity = require_identity();
@@ -5751,9 +5751,9 @@ var require_Collection = __commonJS({
5751
5751
  }
5752
5752
  });
5753
5753
 
5754
- // ../../node_modules/yaml/dist/stringify/stringifyComment.js
5754
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/stringify/stringifyComment.js
5755
5755
  var require_stringifyComment = __commonJS({
5756
- "../../node_modules/yaml/dist/stringify/stringifyComment.js"(exports2) {
5756
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/stringify/stringifyComment.js"(exports2) {
5757
5757
  "use strict";
5758
5758
  var stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
5759
5759
  function indentComment(comment, indent) {
@@ -5768,9 +5768,9 @@ var require_stringifyComment = __commonJS({
5768
5768
  }
5769
5769
  });
5770
5770
 
5771
- // ../../node_modules/yaml/dist/stringify/foldFlowLines.js
5771
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/stringify/foldFlowLines.js
5772
5772
  var require_foldFlowLines = __commonJS({
5773
- "../../node_modules/yaml/dist/stringify/foldFlowLines.js"(exports2) {
5773
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/stringify/foldFlowLines.js"(exports2) {
5774
5774
  "use strict";
5775
5775
  var FOLD_FLOW = "flow";
5776
5776
  var FOLD_BLOCK = "block";
@@ -5904,9 +5904,9 @@ ${indent}${text.slice(fold + 1, end2)}`;
5904
5904
  }
5905
5905
  });
5906
5906
 
5907
- // ../../node_modules/yaml/dist/stringify/stringifyString.js
5907
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/stringify/stringifyString.js
5908
5908
  var require_stringifyString = __commonJS({
5909
- "../../node_modules/yaml/dist/stringify/stringifyString.js"(exports2) {
5909
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/stringify/stringifyString.js"(exports2) {
5910
5910
  "use strict";
5911
5911
  var Scalar = require_Scalar();
5912
5912
  var foldFlowLines = require_foldFlowLines();
@@ -6187,9 +6187,9 @@ ${indent}`);
6187
6187
  }
6188
6188
  });
6189
6189
 
6190
- // ../../node_modules/yaml/dist/stringify/stringify.js
6190
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/stringify/stringify.js
6191
6191
  var require_stringify = __commonJS({
6192
- "../../node_modules/yaml/dist/stringify/stringify.js"(exports2) {
6192
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/stringify/stringify.js"(exports2) {
6193
6193
  "use strict";
6194
6194
  var anchors = require_anchors();
6195
6195
  var identity = require_identity();
@@ -6311,9 +6311,9 @@ ${ctx.indent}${str}`;
6311
6311
  }
6312
6312
  });
6313
6313
 
6314
- // ../../node_modules/yaml/dist/stringify/stringifyPair.js
6314
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/stringify/stringifyPair.js
6315
6315
  var require_stringifyPair = __commonJS({
6316
- "../../node_modules/yaml/dist/stringify/stringifyPair.js"(exports2) {
6316
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/stringify/stringifyPair.js"(exports2) {
6317
6317
  "use strict";
6318
6318
  var identity = require_identity();
6319
6319
  var Scalar = require_Scalar();
@@ -6444,9 +6444,9 @@ ${ctx.indent}`;
6444
6444
  }
6445
6445
  });
6446
6446
 
6447
- // ../../node_modules/yaml/dist/log.js
6447
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/log.js
6448
6448
  var require_log = __commonJS({
6449
- "../../node_modules/yaml/dist/log.js"(exports2) {
6449
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/log.js"(exports2) {
6450
6450
  "use strict";
6451
6451
  var node_process = require("process");
6452
6452
  function debug12(logLevel, ...messages) {
@@ -6466,9 +6466,9 @@ var require_log = __commonJS({
6466
6466
  }
6467
6467
  });
6468
6468
 
6469
- // ../../node_modules/yaml/dist/schema/yaml-1.1/merge.js
6469
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/schema/yaml-1.1/merge.js
6470
6470
  var require_merge = __commonJS({
6471
- "../../node_modules/yaml/dist/schema/yaml-1.1/merge.js"(exports2) {
6471
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/schema/yaml-1.1/merge.js"(exports2) {
6472
6472
  "use strict";
6473
6473
  var identity = require_identity();
6474
6474
  var Scalar = require_Scalar();
@@ -6526,9 +6526,9 @@ var require_merge = __commonJS({
6526
6526
  }
6527
6527
  });
6528
6528
 
6529
- // ../../node_modules/yaml/dist/nodes/addPairToJSMap.js
6529
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/nodes/addPairToJSMap.js
6530
6530
  var require_addPairToJSMap = __commonJS({
6531
- "../../node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports2) {
6531
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports2) {
6532
6532
  "use strict";
6533
6533
  var log2 = require_log();
6534
6534
  var merge2 = require_merge();
@@ -6590,9 +6590,9 @@ var require_addPairToJSMap = __commonJS({
6590
6590
  }
6591
6591
  });
6592
6592
 
6593
- // ../../node_modules/yaml/dist/nodes/Pair.js
6593
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/nodes/Pair.js
6594
6594
  var require_Pair = __commonJS({
6595
- "../../node_modules/yaml/dist/nodes/Pair.js"(exports2) {
6595
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/nodes/Pair.js"(exports2) {
6596
6596
  "use strict";
6597
6597
  var createNode = require_createNode();
6598
6598
  var stringifyPair = require_stringifyPair();
@@ -6630,9 +6630,9 @@ var require_Pair = __commonJS({
6630
6630
  }
6631
6631
  });
6632
6632
 
6633
- // ../../node_modules/yaml/dist/stringify/stringifyCollection.js
6633
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/stringify/stringifyCollection.js
6634
6634
  var require_stringifyCollection = __commonJS({
6635
- "../../node_modules/yaml/dist/stringify/stringifyCollection.js"(exports2) {
6635
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/stringify/stringifyCollection.js"(exports2) {
6636
6636
  "use strict";
6637
6637
  var identity = require_identity();
6638
6638
  var stringify2 = require_stringify();
@@ -6781,9 +6781,9 @@ ${indent}${end}`;
6781
6781
  }
6782
6782
  });
6783
6783
 
6784
- // ../../node_modules/yaml/dist/nodes/YAMLMap.js
6784
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/nodes/YAMLMap.js
6785
6785
  var require_YAMLMap = __commonJS({
6786
- "../../node_modules/yaml/dist/nodes/YAMLMap.js"(exports2) {
6786
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/nodes/YAMLMap.js"(exports2) {
6787
6787
  "use strict";
6788
6788
  var stringifyCollection = require_stringifyCollection();
6789
6789
  var addPairToJSMap = require_addPairToJSMap();
@@ -6925,9 +6925,9 @@ var require_YAMLMap = __commonJS({
6925
6925
  }
6926
6926
  });
6927
6927
 
6928
- // ../../node_modules/yaml/dist/schema/common/map.js
6928
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/schema/common/map.js
6929
6929
  var require_map = __commonJS({
6930
- "../../node_modules/yaml/dist/schema/common/map.js"(exports2) {
6930
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/schema/common/map.js"(exports2) {
6931
6931
  "use strict";
6932
6932
  var identity = require_identity();
6933
6933
  var YAMLMap = require_YAMLMap();
@@ -6947,9 +6947,9 @@ var require_map = __commonJS({
6947
6947
  }
6948
6948
  });
6949
6949
 
6950
- // ../../node_modules/yaml/dist/nodes/YAMLSeq.js
6950
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/nodes/YAMLSeq.js
6951
6951
  var require_YAMLSeq = __commonJS({
6952
- "../../node_modules/yaml/dist/nodes/YAMLSeq.js"(exports2) {
6952
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/nodes/YAMLSeq.js"(exports2) {
6953
6953
  "use strict";
6954
6954
  var createNode = require_createNode();
6955
6955
  var stringifyCollection = require_stringifyCollection();
@@ -7063,9 +7063,9 @@ var require_YAMLSeq = __commonJS({
7063
7063
  }
7064
7064
  });
7065
7065
 
7066
- // ../../node_modules/yaml/dist/schema/common/seq.js
7066
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/schema/common/seq.js
7067
7067
  var require_seq = __commonJS({
7068
- "../../node_modules/yaml/dist/schema/common/seq.js"(exports2) {
7068
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/schema/common/seq.js"(exports2) {
7069
7069
  "use strict";
7070
7070
  var identity = require_identity();
7071
7071
  var YAMLSeq = require_YAMLSeq();
@@ -7085,9 +7085,9 @@ var require_seq = __commonJS({
7085
7085
  }
7086
7086
  });
7087
7087
 
7088
- // ../../node_modules/yaml/dist/schema/common/string.js
7088
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/schema/common/string.js
7089
7089
  var require_string = __commonJS({
7090
- "../../node_modules/yaml/dist/schema/common/string.js"(exports2) {
7090
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/schema/common/string.js"(exports2) {
7091
7091
  "use strict";
7092
7092
  var stringifyString = require_stringifyString();
7093
7093
  var string4 = {
@@ -7104,9 +7104,9 @@ var require_string = __commonJS({
7104
7104
  }
7105
7105
  });
7106
7106
 
7107
- // ../../node_modules/yaml/dist/schema/common/null.js
7107
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/schema/common/null.js
7108
7108
  var require_null = __commonJS({
7109
- "../../node_modules/yaml/dist/schema/common/null.js"(exports2) {
7109
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/schema/common/null.js"(exports2) {
7110
7110
  "use strict";
7111
7111
  var Scalar = require_Scalar();
7112
7112
  var nullTag = {
@@ -7122,9 +7122,9 @@ var require_null = __commonJS({
7122
7122
  }
7123
7123
  });
7124
7124
 
7125
- // ../../node_modules/yaml/dist/schema/core/bool.js
7125
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/schema/core/bool.js
7126
7126
  var require_bool = __commonJS({
7127
- "../../node_modules/yaml/dist/schema/core/bool.js"(exports2) {
7127
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/schema/core/bool.js"(exports2) {
7128
7128
  "use strict";
7129
7129
  var Scalar = require_Scalar();
7130
7130
  var boolTag = {
@@ -7146,9 +7146,9 @@ var require_bool = __commonJS({
7146
7146
  }
7147
7147
  });
7148
7148
 
7149
- // ../../node_modules/yaml/dist/stringify/stringifyNumber.js
7149
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/stringify/stringifyNumber.js
7150
7150
  var require_stringifyNumber = __commonJS({
7151
- "../../node_modules/yaml/dist/stringify/stringifyNumber.js"(exports2) {
7151
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/stringify/stringifyNumber.js"(exports2) {
7152
7152
  "use strict";
7153
7153
  function stringifyNumber({ format, minFractionDigits, tag, value: value2 }) {
7154
7154
  if (typeof value2 === "bigint")
@@ -7173,9 +7173,9 @@ var require_stringifyNumber = __commonJS({
7173
7173
  }
7174
7174
  });
7175
7175
 
7176
- // ../../node_modules/yaml/dist/schema/core/float.js
7176
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/schema/core/float.js
7177
7177
  var require_float = __commonJS({
7178
- "../../node_modules/yaml/dist/schema/core/float.js"(exports2) {
7178
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/schema/core/float.js"(exports2) {
7179
7179
  "use strict";
7180
7180
  var Scalar = require_Scalar();
7181
7181
  var stringifyNumber = require_stringifyNumber();
@@ -7219,9 +7219,9 @@ var require_float = __commonJS({
7219
7219
  }
7220
7220
  });
7221
7221
 
7222
- // ../../node_modules/yaml/dist/schema/core/int.js
7222
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/schema/core/int.js
7223
7223
  var require_int = __commonJS({
7224
- "../../node_modules/yaml/dist/schema/core/int.js"(exports2) {
7224
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/schema/core/int.js"(exports2) {
7225
7225
  "use strict";
7226
7226
  var stringifyNumber = require_stringifyNumber();
7227
7227
  var intIdentify = (value2) => typeof value2 === "bigint" || Number.isInteger(value2);
@@ -7264,9 +7264,9 @@ var require_int = __commonJS({
7264
7264
  }
7265
7265
  });
7266
7266
 
7267
- // ../../node_modules/yaml/dist/schema/core/schema.js
7267
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/schema/core/schema.js
7268
7268
  var require_schema2 = __commonJS({
7269
- "../../node_modules/yaml/dist/schema/core/schema.js"(exports2) {
7269
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/schema/core/schema.js"(exports2) {
7270
7270
  "use strict";
7271
7271
  var map2 = require_map();
7272
7272
  var _null4 = require_null();
@@ -7292,9 +7292,9 @@ var require_schema2 = __commonJS({
7292
7292
  }
7293
7293
  });
7294
7294
 
7295
- // ../../node_modules/yaml/dist/schema/json/schema.js
7295
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/schema/json/schema.js
7296
7296
  var require_schema3 = __commonJS({
7297
- "../../node_modules/yaml/dist/schema/json/schema.js"(exports2) {
7297
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/schema/json/schema.js"(exports2) {
7298
7298
  "use strict";
7299
7299
  var Scalar = require_Scalar();
7300
7300
  var map2 = require_map();
@@ -7359,9 +7359,9 @@ var require_schema3 = __commonJS({
7359
7359
  }
7360
7360
  });
7361
7361
 
7362
- // ../../node_modules/yaml/dist/schema/yaml-1.1/binary.js
7362
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/schema/yaml-1.1/binary.js
7363
7363
  var require_binary = __commonJS({
7364
- "../../node_modules/yaml/dist/schema/yaml-1.1/binary.js"(exports2) {
7364
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/schema/yaml-1.1/binary.js"(exports2) {
7365
7365
  "use strict";
7366
7366
  var node_buffer = require("buffer");
7367
7367
  var Scalar = require_Scalar();
@@ -7425,9 +7425,9 @@ var require_binary = __commonJS({
7425
7425
  }
7426
7426
  });
7427
7427
 
7428
- // ../../node_modules/yaml/dist/schema/yaml-1.1/pairs.js
7428
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
7429
7429
  var require_pairs = __commonJS({
7430
- "../../node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(exports2) {
7430
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(exports2) {
7431
7431
  "use strict";
7432
7432
  var identity = require_identity();
7433
7433
  var Pair = require_Pair();
@@ -7503,9 +7503,9 @@ ${cn.comment}` : item.comment;
7503
7503
  }
7504
7504
  });
7505
7505
 
7506
- // ../../node_modules/yaml/dist/schema/yaml-1.1/omap.js
7506
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/schema/yaml-1.1/omap.js
7507
7507
  var require_omap = __commonJS({
7508
- "../../node_modules/yaml/dist/schema/yaml-1.1/omap.js"(exports2) {
7508
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/schema/yaml-1.1/omap.js"(exports2) {
7509
7509
  "use strict";
7510
7510
  var identity = require_identity();
7511
7511
  var toJS = require_toJS();
@@ -7581,9 +7581,9 @@ var require_omap = __commonJS({
7581
7581
  }
7582
7582
  });
7583
7583
 
7584
- // ../../node_modules/yaml/dist/schema/yaml-1.1/bool.js
7584
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/schema/yaml-1.1/bool.js
7585
7585
  var require_bool2 = __commonJS({
7586
- "../../node_modules/yaml/dist/schema/yaml-1.1/bool.js"(exports2) {
7586
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/schema/yaml-1.1/bool.js"(exports2) {
7587
7587
  "use strict";
7588
7588
  var Scalar = require_Scalar();
7589
7589
  function boolStringify({ value: value2, source }, ctx) {
@@ -7613,9 +7613,9 @@ var require_bool2 = __commonJS({
7613
7613
  }
7614
7614
  });
7615
7615
 
7616
- // ../../node_modules/yaml/dist/schema/yaml-1.1/float.js
7616
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/schema/yaml-1.1/float.js
7617
7617
  var require_float2 = __commonJS({
7618
- "../../node_modules/yaml/dist/schema/yaml-1.1/float.js"(exports2) {
7618
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/schema/yaml-1.1/float.js"(exports2) {
7619
7619
  "use strict";
7620
7620
  var Scalar = require_Scalar();
7621
7621
  var stringifyNumber = require_stringifyNumber();
@@ -7662,9 +7662,9 @@ var require_float2 = __commonJS({
7662
7662
  }
7663
7663
  });
7664
7664
 
7665
- // ../../node_modules/yaml/dist/schema/yaml-1.1/int.js
7665
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/schema/yaml-1.1/int.js
7666
7666
  var require_int2 = __commonJS({
7667
- "../../node_modules/yaml/dist/schema/yaml-1.1/int.js"(exports2) {
7667
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/schema/yaml-1.1/int.js"(exports2) {
7668
7668
  "use strict";
7669
7669
  var stringifyNumber = require_stringifyNumber();
7670
7670
  var intIdentify = (value2) => typeof value2 === "bigint" || Number.isInteger(value2);
@@ -7741,9 +7741,9 @@ var require_int2 = __commonJS({
7741
7741
  }
7742
7742
  });
7743
7743
 
7744
- // ../../node_modules/yaml/dist/schema/yaml-1.1/set.js
7744
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/schema/yaml-1.1/set.js
7745
7745
  var require_set = __commonJS({
7746
- "../../node_modules/yaml/dist/schema/yaml-1.1/set.js"(exports2) {
7746
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/schema/yaml-1.1/set.js"(exports2) {
7747
7747
  "use strict";
7748
7748
  var identity = require_identity();
7749
7749
  var Pair = require_Pair();
@@ -7830,9 +7830,9 @@ var require_set = __commonJS({
7830
7830
  }
7831
7831
  });
7832
7832
 
7833
- // ../../node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
7833
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
7834
7834
  var require_timestamp = __commonJS({
7835
- "../../node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports2) {
7835
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports2) {
7836
7836
  "use strict";
7837
7837
  var stringifyNumber = require_stringifyNumber();
7838
7838
  function parseSexagesimal(str, asBigInt) {
@@ -7918,9 +7918,9 @@ var require_timestamp = __commonJS({
7918
7918
  }
7919
7919
  });
7920
7920
 
7921
- // ../../node_modules/yaml/dist/schema/yaml-1.1/schema.js
7921
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/schema/yaml-1.1/schema.js
7922
7922
  var require_schema4 = __commonJS({
7923
- "../../node_modules/yaml/dist/schema/yaml-1.1/schema.js"(exports2) {
7923
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/schema/yaml-1.1/schema.js"(exports2) {
7924
7924
  "use strict";
7925
7925
  var map2 = require_map();
7926
7926
  var _null4 = require_null();
@@ -7962,9 +7962,9 @@ var require_schema4 = __commonJS({
7962
7962
  }
7963
7963
  });
7964
7964
 
7965
- // ../../node_modules/yaml/dist/schema/tags.js
7965
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/schema/tags.js
7966
7966
  var require_tags = __commonJS({
7967
- "../../node_modules/yaml/dist/schema/tags.js"(exports2) {
7967
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/schema/tags.js"(exports2) {
7968
7968
  "use strict";
7969
7969
  var map2 = require_map();
7970
7970
  var _null4 = require_null();
@@ -8056,9 +8056,9 @@ var require_tags = __commonJS({
8056
8056
  }
8057
8057
  });
8058
8058
 
8059
- // ../../node_modules/yaml/dist/schema/Schema.js
8059
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/schema/Schema.js
8060
8060
  var require_Schema = __commonJS({
8061
- "../../node_modules/yaml/dist/schema/Schema.js"(exports2) {
8061
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/schema/Schema.js"(exports2) {
8062
8062
  "use strict";
8063
8063
  var identity = require_identity();
8064
8064
  var map2 = require_map();
@@ -8088,9 +8088,9 @@ var require_Schema = __commonJS({
8088
8088
  }
8089
8089
  });
8090
8090
 
8091
- // ../../node_modules/yaml/dist/stringify/stringifyDocument.js
8091
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/stringify/stringifyDocument.js
8092
8092
  var require_stringifyDocument = __commonJS({
8093
- "../../node_modules/yaml/dist/stringify/stringifyDocument.js"(exports2) {
8093
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/stringify/stringifyDocument.js"(exports2) {
8094
8094
  "use strict";
8095
8095
  var identity = require_identity();
8096
8096
  var stringify2 = require_stringify();
@@ -8168,9 +8168,9 @@ var require_stringifyDocument = __commonJS({
8168
8168
  }
8169
8169
  });
8170
8170
 
8171
- // ../../node_modules/yaml/dist/doc/Document.js
8171
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/doc/Document.js
8172
8172
  var require_Document = __commonJS({
8173
- "../../node_modules/yaml/dist/doc/Document.js"(exports2) {
8173
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/doc/Document.js"(exports2) {
8174
8174
  "use strict";
8175
8175
  var Alias = require_Alias();
8176
8176
  var Collection = require_Collection();
@@ -8477,9 +8477,9 @@ var require_Document = __commonJS({
8477
8477
  }
8478
8478
  });
8479
8479
 
8480
- // ../../node_modules/yaml/dist/errors.js
8480
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/errors.js
8481
8481
  var require_errors2 = __commonJS({
8482
- "../../node_modules/yaml/dist/errors.js"(exports2) {
8482
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/errors.js"(exports2) {
8483
8483
  "use strict";
8484
8484
  var YAMLError = class extends Error {
8485
8485
  constructor(name, pos, code, message) {
@@ -8542,9 +8542,9 @@ ${pointer}
8542
8542
  }
8543
8543
  });
8544
8544
 
8545
- // ../../node_modules/yaml/dist/compose/resolve-props.js
8545
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/compose/resolve-props.js
8546
8546
  var require_resolve_props = __commonJS({
8547
- "../../node_modules/yaml/dist/compose/resolve-props.js"(exports2) {
8547
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/compose/resolve-props.js"(exports2) {
8548
8548
  "use strict";
8549
8549
  function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
8550
8550
  let spaceBefore = false;
@@ -8676,9 +8676,9 @@ var require_resolve_props = __commonJS({
8676
8676
  }
8677
8677
  });
8678
8678
 
8679
- // ../../node_modules/yaml/dist/compose/util-contains-newline.js
8679
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/compose/util-contains-newline.js
8680
8680
  var require_util_contains_newline = __commonJS({
8681
- "../../node_modules/yaml/dist/compose/util-contains-newline.js"(exports2) {
8681
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/compose/util-contains-newline.js"(exports2) {
8682
8682
  "use strict";
8683
8683
  function containsNewline(key) {
8684
8684
  if (!key)
@@ -8718,9 +8718,9 @@ var require_util_contains_newline = __commonJS({
8718
8718
  }
8719
8719
  });
8720
8720
 
8721
- // ../../node_modules/yaml/dist/compose/util-flow-indent-check.js
8721
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/compose/util-flow-indent-check.js
8722
8722
  var require_util_flow_indent_check = __commonJS({
8723
- "../../node_modules/yaml/dist/compose/util-flow-indent-check.js"(exports2) {
8723
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/compose/util-flow-indent-check.js"(exports2) {
8724
8724
  "use strict";
8725
8725
  var utilContainsNewline = require_util_contains_newline();
8726
8726
  function flowIndentCheck(indent, fc, onError) {
@@ -8736,9 +8736,9 @@ var require_util_flow_indent_check = __commonJS({
8736
8736
  }
8737
8737
  });
8738
8738
 
8739
- // ../../node_modules/yaml/dist/compose/util-map-includes.js
8739
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/compose/util-map-includes.js
8740
8740
  var require_util_map_includes = __commonJS({
8741
- "../../node_modules/yaml/dist/compose/util-map-includes.js"(exports2) {
8741
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/compose/util-map-includes.js"(exports2) {
8742
8742
  "use strict";
8743
8743
  var identity = require_identity();
8744
8744
  function mapIncludes(ctx, items, search) {
@@ -8752,9 +8752,9 @@ var require_util_map_includes = __commonJS({
8752
8752
  }
8753
8753
  });
8754
8754
 
8755
- // ../../node_modules/yaml/dist/compose/resolve-block-map.js
8755
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/compose/resolve-block-map.js
8756
8756
  var require_resolve_block_map = __commonJS({
8757
- "../../node_modules/yaml/dist/compose/resolve-block-map.js"(exports2) {
8757
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/compose/resolve-block-map.js"(exports2) {
8758
8758
  "use strict";
8759
8759
  var Pair = require_Pair();
8760
8760
  var YAMLMap = require_YAMLMap();
@@ -8860,9 +8860,9 @@ var require_resolve_block_map = __commonJS({
8860
8860
  }
8861
8861
  });
8862
8862
 
8863
- // ../../node_modules/yaml/dist/compose/resolve-block-seq.js
8863
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/compose/resolve-block-seq.js
8864
8864
  var require_resolve_block_seq = __commonJS({
8865
- "../../node_modules/yaml/dist/compose/resolve-block-seq.js"(exports2) {
8865
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/compose/resolve-block-seq.js"(exports2) {
8866
8866
  "use strict";
8867
8867
  var YAMLSeq = require_YAMLSeq();
8868
8868
  var resolveProps = require_resolve_props();
@@ -8911,9 +8911,9 @@ var require_resolve_block_seq = __commonJS({
8911
8911
  }
8912
8912
  });
8913
8913
 
8914
- // ../../node_modules/yaml/dist/compose/resolve-end.js
8914
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/compose/resolve-end.js
8915
8915
  var require_resolve_end = __commonJS({
8916
- "../../node_modules/yaml/dist/compose/resolve-end.js"(exports2) {
8916
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/compose/resolve-end.js"(exports2) {
8917
8917
  "use strict";
8918
8918
  function resolveEnd(end, offset, reqSpace, onError) {
8919
8919
  let comment = "";
@@ -8954,9 +8954,9 @@ var require_resolve_end = __commonJS({
8954
8954
  }
8955
8955
  });
8956
8956
 
8957
- // ../../node_modules/yaml/dist/compose/resolve-flow-collection.js
8957
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/compose/resolve-flow-collection.js
8958
8958
  var require_resolve_flow_collection = __commonJS({
8959
- "../../node_modules/yaml/dist/compose/resolve-flow-collection.js"(exports2) {
8959
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/compose/resolve-flow-collection.js"(exports2) {
8960
8960
  "use strict";
8961
8961
  var identity = require_identity();
8962
8962
  var Pair = require_Pair();
@@ -9148,9 +9148,9 @@ var require_resolve_flow_collection = __commonJS({
9148
9148
  }
9149
9149
  });
9150
9150
 
9151
- // ../../node_modules/yaml/dist/compose/compose-collection.js
9151
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/compose/compose-collection.js
9152
9152
  var require_compose_collection = __commonJS({
9153
- "../../node_modules/yaml/dist/compose/compose-collection.js"(exports2) {
9153
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/compose/compose-collection.js"(exports2) {
9154
9154
  "use strict";
9155
9155
  var identity = require_identity();
9156
9156
  var Scalar = require_Scalar();
@@ -9213,9 +9213,9 @@ var require_compose_collection = __commonJS({
9213
9213
  }
9214
9214
  });
9215
9215
 
9216
- // ../../node_modules/yaml/dist/compose/resolve-block-scalar.js
9216
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/compose/resolve-block-scalar.js
9217
9217
  var require_resolve_block_scalar = __commonJS({
9218
- "../../node_modules/yaml/dist/compose/resolve-block-scalar.js"(exports2) {
9218
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/compose/resolve-block-scalar.js"(exports2) {
9219
9219
  "use strict";
9220
9220
  var Scalar = require_Scalar();
9221
9221
  function resolveBlockScalar(ctx, scalar, onError) {
@@ -9396,9 +9396,9 @@ var require_resolve_block_scalar = __commonJS({
9396
9396
  }
9397
9397
  });
9398
9398
 
9399
- // ../../node_modules/yaml/dist/compose/resolve-flow-scalar.js
9399
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/compose/resolve-flow-scalar.js
9400
9400
  var require_resolve_flow_scalar = __commonJS({
9401
- "../../node_modules/yaml/dist/compose/resolve-flow-scalar.js"(exports2) {
9401
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/compose/resolve-flow-scalar.js"(exports2) {
9402
9402
  "use strict";
9403
9403
  var Scalar = require_Scalar();
9404
9404
  var resolveEnd = require_resolve_end();
@@ -9616,9 +9616,9 @@ var require_resolve_flow_scalar = __commonJS({
9616
9616
  }
9617
9617
  });
9618
9618
 
9619
- // ../../node_modules/yaml/dist/compose/compose-scalar.js
9619
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/compose/compose-scalar.js
9620
9620
  var require_compose_scalar = __commonJS({
9621
- "../../node_modules/yaml/dist/compose/compose-scalar.js"(exports2) {
9621
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/compose/compose-scalar.js"(exports2) {
9622
9622
  "use strict";
9623
9623
  var identity = require_identity();
9624
9624
  var Scalar = require_Scalar();
@@ -9697,9 +9697,9 @@ var require_compose_scalar = __commonJS({
9697
9697
  }
9698
9698
  });
9699
9699
 
9700
- // ../../node_modules/yaml/dist/compose/util-empty-scalar-position.js
9700
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/compose/util-empty-scalar-position.js
9701
9701
  var require_util_empty_scalar_position = __commonJS({
9702
- "../../node_modules/yaml/dist/compose/util-empty-scalar-position.js"(exports2) {
9702
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/compose/util-empty-scalar-position.js"(exports2) {
9703
9703
  "use strict";
9704
9704
  function emptyScalarPosition(offset, before, pos) {
9705
9705
  if (before) {
@@ -9727,9 +9727,9 @@ var require_util_empty_scalar_position = __commonJS({
9727
9727
  }
9728
9728
  });
9729
9729
 
9730
- // ../../node_modules/yaml/dist/compose/compose-node.js
9730
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/compose/compose-node.js
9731
9731
  var require_compose_node = __commonJS({
9732
- "../../node_modules/yaml/dist/compose/compose-node.js"(exports2) {
9732
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/compose/compose-node.js"(exports2) {
9733
9733
  "use strict";
9734
9734
  var Alias = require_Alias();
9735
9735
  var identity = require_identity();
@@ -9833,9 +9833,9 @@ var require_compose_node = __commonJS({
9833
9833
  }
9834
9834
  });
9835
9835
 
9836
- // ../../node_modules/yaml/dist/compose/compose-doc.js
9836
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/compose/compose-doc.js
9837
9837
  var require_compose_doc = __commonJS({
9838
- "../../node_modules/yaml/dist/compose/compose-doc.js"(exports2) {
9838
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/compose/compose-doc.js"(exports2) {
9839
9839
  "use strict";
9840
9840
  var Document = require_Document();
9841
9841
  var composeNode = require_compose_node();
@@ -9876,9 +9876,9 @@ var require_compose_doc = __commonJS({
9876
9876
  }
9877
9877
  });
9878
9878
 
9879
- // ../../node_modules/yaml/dist/compose/composer.js
9879
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/compose/composer.js
9880
9880
  var require_composer = __commonJS({
9881
- "../../node_modules/yaml/dist/compose/composer.js"(exports2) {
9881
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/compose/composer.js"(exports2) {
9882
9882
  "use strict";
9883
9883
  var node_process = require("process");
9884
9884
  var directives = require_directives();
@@ -10084,9 +10084,9 @@ ${end.comment}` : end.comment;
10084
10084
  }
10085
10085
  });
10086
10086
 
10087
- // ../../node_modules/yaml/dist/parse/cst-scalar.js
10087
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/parse/cst-scalar.js
10088
10088
  var require_cst_scalar = __commonJS({
10089
- "../../node_modules/yaml/dist/parse/cst-scalar.js"(exports2) {
10089
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/parse/cst-scalar.js"(exports2) {
10090
10090
  "use strict";
10091
10091
  var resolveBlockScalar = require_resolve_block_scalar();
10092
10092
  var resolveFlowScalar = require_resolve_flow_scalar();
@@ -10269,9 +10269,9 @@ var require_cst_scalar = __commonJS({
10269
10269
  }
10270
10270
  });
10271
10271
 
10272
- // ../../node_modules/yaml/dist/parse/cst-stringify.js
10272
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/parse/cst-stringify.js
10273
10273
  var require_cst_stringify = __commonJS({
10274
- "../../node_modules/yaml/dist/parse/cst-stringify.js"(exports2) {
10274
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/parse/cst-stringify.js"(exports2) {
10275
10275
  "use strict";
10276
10276
  var stringify2 = (cst) => "type" in cst ? stringifyToken(cst) : stringifyItem(cst);
10277
10277
  function stringifyToken(token) {
@@ -10330,9 +10330,9 @@ var require_cst_stringify = __commonJS({
10330
10330
  }
10331
10331
  });
10332
10332
 
10333
- // ../../node_modules/yaml/dist/parse/cst-visit.js
10333
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/parse/cst-visit.js
10334
10334
  var require_cst_visit = __commonJS({
10335
- "../../node_modules/yaml/dist/parse/cst-visit.js"(exports2) {
10335
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/parse/cst-visit.js"(exports2) {
10336
10336
  "use strict";
10337
10337
  var BREAK = /* @__PURE__ */ Symbol("break visit");
10338
10338
  var SKIP = /* @__PURE__ */ Symbol("skip children");
@@ -10392,9 +10392,9 @@ var require_cst_visit = __commonJS({
10392
10392
  }
10393
10393
  });
10394
10394
 
10395
- // ../../node_modules/yaml/dist/parse/cst.js
10395
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/parse/cst.js
10396
10396
  var require_cst = __commonJS({
10397
- "../../node_modules/yaml/dist/parse/cst.js"(exports2) {
10397
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/parse/cst.js"(exports2) {
10398
10398
  "use strict";
10399
10399
  var cstScalar = require_cst_scalar();
10400
10400
  var cstStringify = require_cst_stringify();
@@ -10494,9 +10494,9 @@ var require_cst = __commonJS({
10494
10494
  }
10495
10495
  });
10496
10496
 
10497
- // ../../node_modules/yaml/dist/parse/lexer.js
10497
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/parse/lexer.js
10498
10498
  var require_lexer = __commonJS({
10499
- "../../node_modules/yaml/dist/parse/lexer.js"(exports2) {
10499
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/parse/lexer.js"(exports2) {
10500
10500
  "use strict";
10501
10501
  var cst = require_cst();
10502
10502
  function isEmpty(ch) {
@@ -11083,9 +11083,9 @@ var require_lexer = __commonJS({
11083
11083
  }
11084
11084
  });
11085
11085
 
11086
- // ../../node_modules/yaml/dist/parse/line-counter.js
11086
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/parse/line-counter.js
11087
11087
  var require_line_counter = __commonJS({
11088
- "../../node_modules/yaml/dist/parse/line-counter.js"(exports2) {
11088
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/parse/line-counter.js"(exports2) {
11089
11089
  "use strict";
11090
11090
  var LineCounter = class {
11091
11091
  constructor() {
@@ -11114,9 +11114,9 @@ var require_line_counter = __commonJS({
11114
11114
  }
11115
11115
  });
11116
11116
 
11117
- // ../../node_modules/yaml/dist/parse/parser.js
11117
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/parse/parser.js
11118
11118
  var require_parser = __commonJS({
11119
- "../../node_modules/yaml/dist/parse/parser.js"(exports2) {
11119
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/parse/parser.js"(exports2) {
11120
11120
  "use strict";
11121
11121
  var node_process = require("process");
11122
11122
  var cst = require_cst();
@@ -11988,9 +11988,9 @@ var require_parser = __commonJS({
11988
11988
  }
11989
11989
  });
11990
11990
 
11991
- // ../../node_modules/yaml/dist/public-api.js
11991
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/public-api.js
11992
11992
  var require_public_api = __commonJS({
11993
- "../../node_modules/yaml/dist/public-api.js"(exports2) {
11993
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/public-api.js"(exports2) {
11994
11994
  "use strict";
11995
11995
  var composer = require_composer();
11996
11996
  var Document = require_Document();
@@ -12085,9 +12085,9 @@ var require_public_api = __commonJS({
12085
12085
  }
12086
12086
  });
12087
12087
 
12088
- // ../../node_modules/yaml/dist/index.js
12088
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/index.js
12089
12089
  var require_dist2 = __commonJS({
12090
- "../../node_modules/yaml/dist/index.js"(exports2) {
12090
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/yaml/dist/index.js"(exports2) {
12091
12091
  "use strict";
12092
12092
  var composer = require_composer();
12093
12093
  var Document = require_Document();
@@ -12137,17 +12137,17 @@ var require_dist2 = __commonJS({
12137
12137
  }
12138
12138
  });
12139
12139
 
12140
- // ../../node_modules/events-universal/default.js
12140
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/events-universal/default.js
12141
12141
  var require_default = __commonJS({
12142
- "../../node_modules/events-universal/default.js"(exports2, module2) {
12142
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/events-universal/default.js"(exports2, module2) {
12143
12143
  "use strict";
12144
12144
  module2.exports = require("events");
12145
12145
  }
12146
12146
  });
12147
12147
 
12148
- // ../../node_modules/fast-fifo/fixed-size.js
12148
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/fast-fifo/fixed-size.js
12149
12149
  var require_fixed_size = __commonJS({
12150
- "../../node_modules/fast-fifo/fixed-size.js"(exports2, module2) {
12150
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/fast-fifo/fixed-size.js"(exports2, module2) {
12151
12151
  "use strict";
12152
12152
  module2.exports = class FixedFIFO {
12153
12153
  constructor(hwm) {
@@ -12186,9 +12186,9 @@ var require_fixed_size = __commonJS({
12186
12186
  }
12187
12187
  });
12188
12188
 
12189
- // ../../node_modules/fast-fifo/index.js
12189
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/fast-fifo/index.js
12190
12190
  var require_fast_fifo = __commonJS({
12191
- "../../node_modules/fast-fifo/index.js"(exports2, module2) {
12191
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/fast-fifo/index.js"(exports2, module2) {
12192
12192
  "use strict";
12193
12193
  var FixedFIFO = require_fixed_size();
12194
12194
  module2.exports = class FastFIFO {
@@ -12234,9 +12234,9 @@ var require_fast_fifo = __commonJS({
12234
12234
  }
12235
12235
  });
12236
12236
 
12237
- // ../../node_modules/b4a/index.js
12237
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/b4a/index.js
12238
12238
  var require_b4a = __commonJS({
12239
- "../../node_modules/b4a/index.js"(exports2, module2) {
12239
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/b4a/index.js"(exports2, module2) {
12240
12240
  "use strict";
12241
12241
  function isBuffer(value2) {
12242
12242
  return Buffer.isBuffer(value2) || value2 instanceof Uint8Array;
@@ -12392,9 +12392,9 @@ var require_b4a = __commonJS({
12392
12392
  }
12393
12393
  });
12394
12394
 
12395
- // ../../node_modules/text-decoder/lib/pass-through-decoder.js
12395
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/text-decoder/lib/pass-through-decoder.js
12396
12396
  var require_pass_through_decoder = __commonJS({
12397
- "../../node_modules/text-decoder/lib/pass-through-decoder.js"(exports2, module2) {
12397
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/text-decoder/lib/pass-through-decoder.js"(exports2, module2) {
12398
12398
  "use strict";
12399
12399
  var b4a = require_b4a();
12400
12400
  module2.exports = class PassThroughDecoder {
@@ -12414,9 +12414,9 @@ var require_pass_through_decoder = __commonJS({
12414
12414
  }
12415
12415
  });
12416
12416
 
12417
- // ../../node_modules/text-decoder/lib/utf8-decoder.js
12417
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/text-decoder/lib/utf8-decoder.js
12418
12418
  var require_utf8_decoder = __commonJS({
12419
- "../../node_modules/text-decoder/lib/utf8-decoder.js"(exports2, module2) {
12419
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/text-decoder/lib/utf8-decoder.js"(exports2, module2) {
12420
12420
  "use strict";
12421
12421
  var b4a = require_b4a();
12422
12422
  module2.exports = class UTF8Decoder {
@@ -12562,9 +12562,9 @@ var require_utf8_decoder = __commonJS({
12562
12562
  }
12563
12563
  });
12564
12564
 
12565
- // ../../node_modules/text-decoder/index.js
12565
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/text-decoder/index.js
12566
12566
  var require_text_decoder = __commonJS({
12567
- "../../node_modules/text-decoder/index.js"(exports2, module2) {
12567
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/text-decoder/index.js"(exports2, module2) {
12568
12568
  "use strict";
12569
12569
  var PassThroughDecoder = require_pass_through_decoder();
12570
12570
  var UTF8Decoder = require_utf8_decoder();
@@ -12625,9 +12625,9 @@ var require_text_decoder = __commonJS({
12625
12625
  }
12626
12626
  });
12627
12627
 
12628
- // ../../node_modules/streamx/lib/errors.js
12628
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/streamx/lib/errors.js
12629
12629
  var require_errors3 = __commonJS({
12630
- "../../node_modules/streamx/lib/errors.js"(exports2, module2) {
12630
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/streamx/lib/errors.js"(exports2, module2) {
12631
12631
  "use strict";
12632
12632
  module2.exports = class StreamError extends Error {
12633
12633
  constructor(msg, code, fn = StreamError) {
@@ -12668,9 +12668,9 @@ var require_errors3 = __commonJS({
12668
12668
  }
12669
12669
  });
12670
12670
 
12671
- // ../../node_modules/streamx/index.js
12671
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/streamx/index.js
12672
12672
  var require_streamx = __commonJS({
12673
- "../../node_modules/streamx/index.js"(exports2, module2) {
12673
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/streamx/index.js"(exports2, module2) {
12674
12674
  "use strict";
12675
12675
  var { EventEmitter } = require_default();
12676
12676
  var FIFO = require_fast_fifo();
@@ -13700,9 +13700,9 @@ var require_streamx = __commonJS({
13700
13700
  }
13701
13701
  });
13702
13702
 
13703
- // ../../node_modules/tar-stream/headers.js
13703
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/tar-stream/headers.js
13704
13704
  var require_headers = __commonJS({
13705
- "../../node_modules/tar-stream/headers.js"(exports2) {
13705
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/tar-stream/headers.js"(exports2) {
13706
13706
  "use strict";
13707
13707
  var b4a = require_b4a();
13708
13708
  var ZEROS = "0000000000000000000";
@@ -13963,9 +13963,9 @@ var require_headers = __commonJS({
13963
13963
  }
13964
13964
  });
13965
13965
 
13966
- // ../../node_modules/tar-stream/extract.js
13966
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/tar-stream/extract.js
13967
13967
  var require_extract = __commonJS({
13968
- "../../node_modules/tar-stream/extract.js"(exports2, module2) {
13968
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/tar-stream/extract.js"(exports2, module2) {
13969
13969
  "use strict";
13970
13970
  var { Writable, Readable: Readable2, getStreamError } = require_streamx();
13971
13971
  var FIFO = require_fast_fifo();
@@ -14308,9 +14308,9 @@ var require_extract = __commonJS({
14308
14308
  }
14309
14309
  });
14310
14310
 
14311
- // ../../node_modules/tar-stream/constants.js
14311
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/tar-stream/constants.js
14312
14312
  var require_constants2 = __commonJS({
14313
- "../../node_modules/tar-stream/constants.js"(exports2, module2) {
14313
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/tar-stream/constants.js"(exports2, module2) {
14314
14314
  "use strict";
14315
14315
  var constants5 = {
14316
14316
  // just for envs without fs
@@ -14329,9 +14329,9 @@ var require_constants2 = __commonJS({
14329
14329
  }
14330
14330
  });
14331
14331
 
14332
- // ../../node_modules/tar-stream/pack.js
14332
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/tar-stream/pack.js
14333
14333
  var require_pack = __commonJS({
14334
- "../../node_modules/tar-stream/pack.js"(exports2, module2) {
14334
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/tar-stream/pack.js"(exports2, module2) {
14335
14335
  "use strict";
14336
14336
  var { Readable: Readable2, Writable, getStreamError } = require_streamx();
14337
14337
  var b4a = require_b4a();
@@ -14564,9 +14564,9 @@ var require_pack = __commonJS({
14564
14564
  }
14565
14565
  });
14566
14566
 
14567
- // ../../node_modules/tar-stream/index.js
14567
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/tar-stream/index.js
14568
14568
  var require_tar_stream = __commonJS({
14569
- "../../node_modules/tar-stream/index.js"(exports2) {
14569
+ "../../../../../../../../../Users/aman/Documents/alan/node_modules/tar-stream/index.js"(exports2) {
14570
14570
  "use strict";
14571
14571
  exports2.extract = require_extract();
14572
14572
  exports2.pack = require_pack();
@@ -15240,14 +15240,14 @@ function describeError(error61) {
15240
15240
  }
15241
15241
 
15242
15242
  // src/version.ts
15243
- var AGENT_VERSION = "0.1.78";
15243
+ var AGENT_VERSION = "0.1.81";
15244
15244
 
15245
15245
  // src/daemon-worktree.ts
15246
15246
  var import_node_child_process3 = require("child_process");
15247
15247
  var import_node_fs3 = require("fs");
15248
15248
  var import_node_path3 = require("path");
15249
15249
 
15250
- // ../shared/dist/constants/agent.js
15250
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/constants/agent.js
15251
15251
  var INTERACTIVE_TOOL_NAMES = /* @__PURE__ */ new Set([
15252
15252
  "askuserquestion",
15253
15253
  "askquestion",
@@ -15296,7 +15296,7 @@ function isInteractiveToolName(name, input2) {
15296
15296
  var ALAN_AGENT_WORKOS_USER_ID_PREFIX = "alan-agent:";
15297
15297
  var ALAN_AGENT_WORKOS_USER_ID_LIKE_PATTERN = `${ALAN_AGENT_WORKOS_USER_ID_PREFIX}%`;
15298
15298
 
15299
- // ../shared/dist/constants/colors.js
15299
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/constants/colors.js
15300
15300
  var CATEGORICAL_COLORS = {
15301
15301
  slate: "#7280a0",
15302
15302
  slateMuted: "#8892a4",
@@ -15350,7 +15350,7 @@ var CATEGORICAL_COLORS = {
15350
15350
  var CATEGORICAL_COLOR_VALUES = Object.values(CATEGORICAL_COLORS);
15351
15351
  var CATEGORICAL_COLOR_VALUE_SET = new Set(CATEGORICAL_COLOR_VALUES);
15352
15352
 
15353
- // ../shared/dist/constants/labels.js
15353
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/constants/labels.js
15354
15354
  var LABEL_COLOR_PRESETS = {
15355
15355
  bug: CATEGORICAL_COLORS.red,
15356
15356
  feature: CATEGORICAL_COLORS.purple,
@@ -15394,13 +15394,13 @@ var AVATAR_COLOR_PALETTE = [
15394
15394
  CATEGORICAL_COLORS.cyanBright
15395
15395
  ];
15396
15396
 
15397
- // ../shared/dist/constants/local-workspace.js
15397
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/constants/local-workspace.js
15398
15398
  var ALAN_DEFAULT_WORKSPACE_URI = "alan://workspace";
15399
15399
  function isAlanDefaultWorkspace(value2) {
15400
15400
  return value2 === ALAN_DEFAULT_WORKSPACE_URI;
15401
15401
  }
15402
15402
 
15403
- // ../shared/dist/constants/task-duplicate.js
15403
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/constants/task-duplicate.js
15404
15404
  var TASK_CREATE_FIND_BEFORE_CREATE_INSTRUCTIONS = `TASK CREATION \u2014 FIND BEFORE CREATE
15405
15405
  Before create_task:
15406
15406
  1. Call find_records with kinds=["task"], the proposed title (and key phrases), and the same team scope.
@@ -15412,7 +15412,7 @@ Before create_task:
15412
15412
  4. Use list_team_labels and apply matching labels when creating or updating; do not invent label variants.
15413
15413
  5. Similarity hits are hints only \u2014 synthesize context and use judgment, not fixed thresholds.`;
15414
15414
 
15415
- // ../shared/dist/constants/tasks.js
15415
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/constants/tasks.js
15416
15416
  var STATUS_OPTIONS = [
15417
15417
  {
15418
15418
  value: "backlog",
@@ -15550,7 +15550,7 @@ var PRIORITY_OPTIONS = [
15550
15550
  }
15551
15551
  ];
15552
15552
 
15553
- // ../shared/dist/constants/workspace-retention.js
15553
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/constants/workspace-retention.js
15554
15554
  var RESOURCE_CLASS_GC_TIME_MS = {
15555
15555
  /**
15556
15556
  * Small, stable, expensive-to-refetch descriptors: team lists, member lists,
@@ -15572,12 +15572,12 @@ var RESOURCE_CLASS_GC_TIME_MS = {
15572
15572
  immutable: 60 * 6e4
15573
15573
  };
15574
15574
 
15575
- // ../shared/dist/node/local-workspace.js
15575
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/node/local-workspace.js
15576
15576
  var import_node_fs2 = require("fs");
15577
15577
  var import_node_os2 = require("os");
15578
15578
  var import_node_path2 = require("path");
15579
- function resolveAlanDefaultWorkspacePath(homeDirectory = (0, import_node_os2.homedir)()) {
15580
- return (0, import_node_path2.join)(homeDirectory, ".alan", "workspace");
15579
+ function resolveAlanDefaultWorkspacePath(homeDirectory2 = (0, import_node_os2.homedir)()) {
15580
+ return (0, import_node_path2.join)(homeDirectory2, ".alan", "workspace");
15581
15581
  }
15582
15582
 
15583
15583
  // src/local-workspace-migration.ts
@@ -16410,7 +16410,7 @@ var import_node_fs10 = require("fs");
16410
16410
  var import_node_os5 = require("os");
16411
16411
  var import_node_path9 = require("path");
16412
16412
 
16413
- // ../shared/dist/node/provider-limits.js
16413
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/node/provider-limits.js
16414
16414
  var import_node_child_process4 = require("child_process");
16415
16415
  var import_node_fs4 = require("fs");
16416
16416
  var import_node_os3 = require("os");
@@ -16791,7 +16791,7 @@ async function collectLocalAgentProviderLimits(env = process.env) {
16791
16791
  return limits;
16792
16792
  }
16793
16793
 
16794
- // ../../node_modules/zod/v4/classic/external.js
16794
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/classic/external.js
16795
16795
  var external_exports = {};
16796
16796
  __export(external_exports, {
16797
16797
  $brand: () => $brand,
@@ -17048,7 +17048,7 @@ __export(external_exports, {
17048
17048
  xor: () => xor
17049
17049
  });
17050
17050
 
17051
- // ../../node_modules/zod/v4/core/index.js
17051
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/core/index.js
17052
17052
  var core_exports2 = {};
17053
17053
  __export(core_exports2, {
17054
17054
  $ZodAny: () => $ZodAny,
@@ -17355,7 +17355,7 @@ __export(core_exports2, {
17355
17355
  version: () => version
17356
17356
  });
17357
17357
 
17358
- // ../../node_modules/zod/v4/core/util.js
17358
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/core/util.js
17359
17359
  var util_exports = {};
17360
17360
  __export(util_exports, {
17361
17361
  BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
@@ -18192,7 +18192,7 @@ function constantCatch(value2) {
18192
18192
  return fn;
18193
18193
  }
18194
18194
 
18195
- // ../../node_modules/zod/v4/core/core.js
18195
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/core/core.js
18196
18196
  var _a;
18197
18197
  var NEVER = /* @__PURE__ */ Object.freeze({
18198
18198
  status: "aborted"
@@ -18315,7 +18315,7 @@ function config(newConfig) {
18315
18315
  return globalConfig;
18316
18316
  }
18317
18317
 
18318
- // ../../node_modules/zod/v4/core/errors.js
18318
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/core/errors.js
18319
18319
  function _getMessage() {
18320
18320
  const internals = this._zod;
18321
18321
  internals.message ?? (internals.message = JSON.stringify(internals.def, jsonStringifyReplacer, 2));
@@ -18511,7 +18511,7 @@ function prettifyError(error61) {
18511
18511
  return lines.join("\n");
18512
18512
  }
18513
18513
 
18514
- // ../../node_modules/zod/v4/core/parse.js
18514
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/core/parse.js
18515
18515
  function finalizeParams(callee, params) {
18516
18516
  return { callee: params?.callee ?? callee, Err: params?.Err };
18517
18517
  }
@@ -18654,7 +18654,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value2, _ctx) => {
18654
18654
  };
18655
18655
  var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
18656
18656
 
18657
- // ../../node_modules/zod/v4/core/regexes.js
18657
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/core/regexes.js
18658
18658
  var regexes_exports = {};
18659
18659
  __export(regexes_exports, {
18660
18660
  base64: () => base64,
@@ -18820,7 +18820,7 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
18820
18820
  var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
18821
18821
  var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
18822
18822
 
18823
- // ../../node_modules/zod/v4/core/checks.js
18823
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/core/checks.js
18824
18824
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
18825
18825
  var _a3;
18826
18826
  inst._zod ?? (inst._zod = {});
@@ -19364,7 +19364,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
19364
19364
  };
19365
19365
  });
19366
19366
 
19367
- // ../../node_modules/zod/v4/core/doc.js
19367
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/core/doc.js
19368
19368
  var Doc = class {
19369
19369
  constructor(args = [], closed = {}) {
19370
19370
  this.content = [];
@@ -19401,14 +19401,14 @@ ${content.join("\n")}
19401
19401
  }
19402
19402
  };
19403
19403
 
19404
- // ../../node_modules/zod/v4/core/versions.js
19404
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/core/versions.js
19405
19405
  var version = {
19406
19406
  major: 4,
19407
19407
  minor: 5,
19408
19408
  patch: 2
19409
19409
  };
19410
19410
 
19411
- // ../../node_modules/zod/v4/core/schemas.js
19411
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/core/schemas.js
19412
19412
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
19413
19413
  var _a3;
19414
19414
  inst ?? (inst = {});
@@ -21672,7 +21672,7 @@ function handleRefineResult(result, payload, input2, inst) {
21672
21672
  }
21673
21673
  }
21674
21674
 
21675
- // ../../node_modules/zod/v4/core/memoizer.js
21675
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/core/memoizer.js
21676
21676
  var $ZodCyclicError = class extends Error {
21677
21677
  constructor() {
21678
21678
  super(`Cannot parse a reference cycle that closes through a transform`);
@@ -21836,7 +21836,7 @@ function isBackEdge(ctx, value2) {
21836
21836
  return backEdges !== void 0 && value2 !== null && typeof value2 === "object" && backEdges.has(value2);
21837
21837
  }
21838
21838
 
21839
- // ../../node_modules/zod/v4/locales/index.js
21839
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/index.js
21840
21840
  var locales_exports = {};
21841
21841
  __export(locales_exports, {
21842
21842
  ar: () => ar_default,
@@ -21903,7 +21903,7 @@ __export(locales_exports, {
21903
21903
  zhTW: () => zh_TW_default
21904
21904
  });
21905
21905
 
21906
- // ../../node_modules/zod/v4/locales/ar.js
21906
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/ar.js
21907
21907
  var error = () => {
21908
21908
  const Sizable = {
21909
21909
  string: { unit: "\u062D\u0631\u0641", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
@@ -22013,7 +22013,7 @@ function ar_default() {
22013
22013
  };
22014
22014
  }
22015
22015
 
22016
- // ../../node_modules/zod/v4/locales/az.js
22016
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/az.js
22017
22017
  var error2 = () => {
22018
22018
  const Sizable = {
22019
22019
  string: { unit: "simvol", verb: "olmal\u0131d\u0131r" },
@@ -22122,7 +22122,7 @@ function az_default() {
22122
22122
  };
22123
22123
  }
22124
22124
 
22125
- // ../../node_modules/zod/v4/locales/be.js
22125
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/be.js
22126
22126
  function getBelarusianPlural(count, one, few, many) {
22127
22127
  const absCount = Math.abs(count);
22128
22128
  const lastDigit = absCount % 10;
@@ -22289,7 +22289,7 @@ function be_default() {
22289
22289
  };
22290
22290
  }
22291
22291
 
22292
- // ../../node_modules/zod/v4/locales/bg.js
22292
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/bg.js
22293
22293
  var error4 = () => {
22294
22294
  const Sizable = {
22295
22295
  string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" },
@@ -22413,7 +22413,7 @@ function bg_default() {
22413
22413
  };
22414
22414
  }
22415
22415
 
22416
- // ../../node_modules/zod/v4/locales/bn.js
22416
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/bn.js
22417
22417
  var error5 = () => {
22418
22418
  const Sizable = {
22419
22419
  string: { unit: "\u0985\u0995\u09CD\u09B7\u09B0", verb: "\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7" },
@@ -22525,7 +22525,7 @@ function bn_default() {
22525
22525
  };
22526
22526
  }
22527
22527
 
22528
- // ../../node_modules/zod/v4/locales/ca.js
22528
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/ca.js
22529
22529
  var error6 = () => {
22530
22530
  const Sizable = {
22531
22531
  string: { unit: "car\xE0cters", verb: "contenir" },
@@ -22637,7 +22637,7 @@ function ca_default() {
22637
22637
  };
22638
22638
  }
22639
22639
 
22640
- // ../../node_modules/zod/v4/locales/ckb.js
22640
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/ckb.js
22641
22641
  var error7 = () => {
22642
22642
  const Sizable = {
22643
22643
  string: { unit: "\u067E\u06CC\u062A", verb: "\u0628\u06CE\u062A" },
@@ -22768,7 +22768,7 @@ function ckb_default() {
22768
22768
  };
22769
22769
  }
22770
22770
 
22771
- // ../../node_modules/zod/v4/locales/cs.js
22771
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/cs.js
22772
22772
  var error8 = () => {
22773
22773
  const Sizable = {
22774
22774
  string: { unit: "znak\u016F", verb: "m\xEDt" },
@@ -22883,7 +22883,7 @@ function cs_default() {
22883
22883
  };
22884
22884
  }
22885
22885
 
22886
- // ../../node_modules/zod/v4/locales/da.js
22886
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/da.js
22887
22887
  var error9 = () => {
22888
22888
  const Sizable = {
22889
22889
  string: { unit: "tegn", verb: "havde" },
@@ -23002,7 +23002,7 @@ function da_default() {
23002
23002
  };
23003
23003
  }
23004
23004
 
23005
- // ../../node_modules/zod/v4/locales/de.js
23005
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/de.js
23006
23006
  var error10 = () => {
23007
23007
  const Sizable = {
23008
23008
  string: { unit: "Zeichen", verb: "zu haben" },
@@ -23114,7 +23114,7 @@ function de_default() {
23114
23114
  };
23115
23115
  }
23116
23116
 
23117
- // ../../node_modules/zod/v4/locales/el.js
23117
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/el.js
23118
23118
  var error11 = () => {
23119
23119
  const Sizable = {
23120
23120
  string: { unit: "\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
@@ -23225,7 +23225,7 @@ function el_default() {
23225
23225
  };
23226
23226
  }
23227
23227
 
23228
- // ../../node_modules/zod/v4/locales/en.js
23228
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/en.js
23229
23229
  var error12 = () => {
23230
23230
  const Sizable = {
23231
23231
  string: { unit: "characters", verb: "to have" },
@@ -23348,7 +23348,7 @@ function en_default() {
23348
23348
  };
23349
23349
  }
23350
23350
 
23351
- // ../../node_modules/zod/v4/locales/eo.js
23351
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/eo.js
23352
23352
  var error13 = () => {
23353
23353
  const Sizable = {
23354
23354
  string: { unit: "karaktrojn", verb: "havi" },
@@ -23461,7 +23461,7 @@ function eo_default() {
23461
23461
  };
23462
23462
  }
23463
23463
 
23464
- // ../../node_modules/zod/v4/locales/es.js
23464
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/es.js
23465
23465
  var error14 = () => {
23466
23466
  const Sizable = {
23467
23467
  string: { unit: "caracteres", verb: "tener" },
@@ -23596,7 +23596,7 @@ function es_default() {
23596
23596
  };
23597
23597
  }
23598
23598
 
23599
- // ../../node_modules/zod/v4/locales/fa.js
23599
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/fa.js
23600
23600
  var error15 = () => {
23601
23601
  const Sizable = {
23602
23602
  string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
@@ -23714,7 +23714,7 @@ function fa_default() {
23714
23714
  };
23715
23715
  }
23716
23716
 
23717
- // ../../node_modules/zod/v4/locales/fi.js
23717
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/fi.js
23718
23718
  var error16 = () => {
23719
23719
  const Sizable = {
23720
23720
  string: { unit: "merkki\xE4", subject: "merkkijonon" },
@@ -23830,7 +23830,7 @@ function fi_default() {
23830
23830
  };
23831
23831
  }
23832
23832
 
23833
- // ../../node_modules/zod/v4/locales/fr.js
23833
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/fr.js
23834
23834
  var error17 = () => {
23835
23835
  const Sizable = {
23836
23836
  string: { unit: "caract\xE8res", verb: "avoir" },
@@ -23958,7 +23958,7 @@ function fr_default() {
23958
23958
  };
23959
23959
  }
23960
23960
 
23961
- // ../../node_modules/zod/v4/locales/fr-CA.js
23961
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/fr-CA.js
23962
23962
  var error18 = () => {
23963
23963
  const Sizable = {
23964
23964
  string: { unit: "caract\xE8res", verb: "avoir" },
@@ -24069,7 +24069,7 @@ function fr_CA_default() {
24069
24069
  };
24070
24070
  }
24071
24071
 
24072
- // ../../node_modules/zod/v4/locales/gu.js
24072
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/gu.js
24073
24073
  var error19 = () => {
24074
24074
  const Sizable = {
24075
24075
  string: { unit: "\u0A85\u0A95\u0ACD\u0AB7\u0AB0", verb: "\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F" },
@@ -24181,7 +24181,7 @@ function gu_default() {
24181
24181
  };
24182
24182
  }
24183
24183
 
24184
- // ../../node_modules/zod/v4/locales/he.js
24184
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/he.js
24185
24185
  var error20 = () => {
24186
24186
  const TypeNames = {
24187
24187
  string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
@@ -24381,7 +24381,7 @@ function he_default() {
24381
24381
  };
24382
24382
  }
24383
24383
 
24384
- // ../../node_modules/zod/v4/locales/hi.js
24384
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/hi.js
24385
24385
  var error21 = () => {
24386
24386
  const Sizable = {
24387
24387
  string: { unit: "\u0905\u0915\u094D\u0937\u0930", verb: "\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F" },
@@ -24491,7 +24491,7 @@ function hi_default() {
24491
24491
  };
24492
24492
  }
24493
24493
 
24494
- // ../../node_modules/zod/v4/locales/hr.js
24494
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/hr.js
24495
24495
  var error22 = () => {
24496
24496
  const Sizable = {
24497
24497
  string: { unit: "znakova", verb: "imati" },
@@ -24616,7 +24616,7 @@ function hr_default() {
24616
24616
  };
24617
24617
  }
24618
24618
 
24619
- // ../../node_modules/zod/v4/locales/hu.js
24619
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/hu.js
24620
24620
  var error23 = () => {
24621
24621
  const Sizable = {
24622
24622
  string: { unit: "karakter", verb: "legyen" },
@@ -24728,7 +24728,7 @@ function hu_default() {
24728
24728
  };
24729
24729
  }
24730
24730
 
24731
- // ../../node_modules/zod/v4/locales/hy.js
24731
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/hy.js
24732
24732
  function getArmenianPlural(count, one, many) {
24733
24733
  return Math.abs(count) === 1 ? one : many;
24734
24734
  }
@@ -24885,7 +24885,7 @@ function hy_default() {
24885
24885
  };
24886
24886
  }
24887
24887
 
24888
- // ../../node_modules/zod/v4/locales/id.js
24888
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/id.js
24889
24889
  var error25 = () => {
24890
24890
  const Sizable = {
24891
24891
  string: { unit: "karakter", verb: "memiliki" },
@@ -24995,7 +24995,7 @@ function id_default() {
24995
24995
  };
24996
24996
  }
24997
24997
 
24998
- // ../../node_modules/zod/v4/locales/is.js
24998
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/is.js
24999
24999
  var error26 = () => {
25000
25000
  const Sizable = {
25001
25001
  string: { unit: "stafi", verb: "a\xF0 hafa" },
@@ -25108,7 +25108,7 @@ function is_default() {
25108
25108
  };
25109
25109
  }
25110
25110
 
25111
- // ../../node_modules/zod/v4/locales/it.js
25111
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/it.js
25112
25112
  var error27 = () => {
25113
25113
  const Sizable = {
25114
25114
  string: { unit: "caratteri", verb: "avere" },
@@ -25220,7 +25220,7 @@ function it_default() {
25220
25220
  };
25221
25221
  }
25222
25222
 
25223
- // ../../node_modules/zod/v4/locales/ja.js
25223
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/ja.js
25224
25224
  var error28 = () => {
25225
25225
  const Sizable = {
25226
25226
  string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
@@ -25331,7 +25331,7 @@ function ja_default() {
25331
25331
  };
25332
25332
  }
25333
25333
 
25334
- // ../../node_modules/zod/v4/locales/ka.js
25334
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/ka.js
25335
25335
  var error29 = () => {
25336
25336
  const Sizable = {
25337
25337
  string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
@@ -25447,7 +25447,7 @@ function ka_default() {
25447
25447
  };
25448
25448
  }
25449
25449
 
25450
- // ../../node_modules/zod/v4/locales/km.js
25450
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/km.js
25451
25451
  var error30 = () => {
25452
25452
  const Sizable = {
25453
25453
  string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
@@ -25561,12 +25561,12 @@ function km_default() {
25561
25561
  };
25562
25562
  }
25563
25563
 
25564
- // ../../node_modules/zod/v4/locales/kh.js
25564
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/kh.js
25565
25565
  function kh_default() {
25566
25566
  return km_default();
25567
25567
  }
25568
25568
 
25569
- // ../../node_modules/zod/v4/locales/kn.js
25569
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/kn.js
25570
25570
  var error31 = () => {
25571
25571
  const Sizable = {
25572
25572
  string: { unit: "\u0C85\u0C95\u0CCD\u0CB7\u0CB0\u0C97\u0CB3\u0CC1", verb: "\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1" },
@@ -25680,7 +25680,7 @@ function kn_default() {
25680
25680
  };
25681
25681
  }
25682
25682
 
25683
- // ../../node_modules/zod/v4/locales/ko.js
25683
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/ko.js
25684
25684
  var error32 = () => {
25685
25685
  const Sizable = {
25686
25686
  string: { unit: "\uBB38\uC790", verb: "to have" },
@@ -25795,7 +25795,7 @@ function ko_default() {
25795
25795
  };
25796
25796
  }
25797
25797
 
25798
- // ../../node_modules/zod/v4/locales/lt.js
25798
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/lt.js
25799
25799
  var capitalizeFirstCharacter = (text) => {
25800
25800
  return text.charAt(0).toUpperCase() + text.slice(1);
25801
25801
  };
@@ -26001,7 +26001,7 @@ function lt_default() {
26001
26001
  };
26002
26002
  }
26003
26003
 
26004
- // ../../node_modules/zod/v4/locales/mk.js
26004
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/mk.js
26005
26005
  var error34 = () => {
26006
26006
  const Sizable = {
26007
26007
  string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
@@ -26114,7 +26114,7 @@ function mk_default() {
26114
26114
  };
26115
26115
  }
26116
26116
 
26117
- // ../../node_modules/zod/v4/locales/ms.js
26117
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/ms.js
26118
26118
  var error35 = () => {
26119
26119
  const Sizable = {
26120
26120
  string: { unit: "aksara", verb: "mempunyai" },
@@ -26225,7 +26225,7 @@ function ms_default() {
26225
26225
  };
26226
26226
  }
26227
26227
 
26228
- // ../../node_modules/zod/v4/locales/ne.js
26228
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/ne.js
26229
26229
  var error36 = () => {
26230
26230
  const Sizable = {
26231
26231
  string: { unit: "\u0905\u0915\u094D\u0937\u0930", verb: "\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B" },
@@ -26335,7 +26335,7 @@ function ne_default() {
26335
26335
  };
26336
26336
  }
26337
26337
 
26338
- // ../../node_modules/zod/v4/locales/nl.js
26338
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/nl.js
26339
26339
  var error37 = () => {
26340
26340
  const Sizable = {
26341
26341
  string: { unit: "tekens", verb: "heeft" },
@@ -26449,7 +26449,7 @@ function nl_default() {
26449
26449
  };
26450
26450
  }
26451
26451
 
26452
- // ../../node_modules/zod/v4/locales/nn.js
26452
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/nn.js
26453
26453
  var error38 = () => {
26454
26454
  const Sizable = {
26455
26455
  string: { unit: "teikn", verb: "\xE5 ha" },
@@ -26561,7 +26561,7 @@ function nn_default() {
26561
26561
  };
26562
26562
  }
26563
26563
 
26564
- // ../../node_modules/zod/v4/locales/no.js
26564
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/no.js
26565
26565
  var error39 = () => {
26566
26566
  const Sizable = {
26567
26567
  string: { unit: "tegn", verb: "\xE5 ha" },
@@ -26673,7 +26673,7 @@ function no_default() {
26673
26673
  };
26674
26674
  }
26675
26675
 
26676
- // ../../node_modules/zod/v4/locales/ota.js
26676
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/ota.js
26677
26677
  var error40 = () => {
26678
26678
  const Sizable = {
26679
26679
  string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
@@ -26786,7 +26786,7 @@ function ota_default() {
26786
26786
  };
26787
26787
  }
26788
26788
 
26789
- // ../../node_modules/zod/v4/locales/ps.js
26789
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/ps.js
26790
26790
  var error41 = () => {
26791
26791
  const Sizable = {
26792
26792
  string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
@@ -26904,7 +26904,7 @@ function ps_default() {
26904
26904
  };
26905
26905
  }
26906
26906
 
26907
- // ../../node_modules/zod/v4/locales/pl.js
26907
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/pl.js
26908
26908
  var error42 = () => {
26909
26909
  const Sizable = {
26910
26910
  string: { unit: "znak\xF3w", verb: "mie\u0107" },
@@ -27017,7 +27017,7 @@ function pl_default() {
27017
27017
  };
27018
27018
  }
27019
27019
 
27020
- // ../../node_modules/zod/v4/locales/pt.js
27020
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/pt.js
27021
27021
  var error43 = () => {
27022
27022
  const Sizable = {
27023
27023
  string: { unit: "caracteres" },
@@ -27159,7 +27159,7 @@ function pt_default() {
27159
27159
  };
27160
27160
  }
27161
27161
 
27162
- // ../../node_modules/zod/v4/locales/pt-BR.js
27162
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/pt-BR.js
27163
27163
  var error44 = () => {
27164
27164
  const Sizable = {
27165
27165
  string: { unit: "caracteres" },
@@ -27302,7 +27302,7 @@ function pt_BR_default() {
27302
27302
  };
27303
27303
  }
27304
27304
 
27305
- // ../../node_modules/zod/v4/locales/ro.js
27305
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/ro.js
27306
27306
  var error45 = () => {
27307
27307
  const Sizable = {
27308
27308
  string: { unit: "caractere", verb: "s\u0103 aib\u0103" },
@@ -27423,7 +27423,7 @@ function ro_default() {
27423
27423
  };
27424
27424
  }
27425
27425
 
27426
- // ../../node_modules/zod/v4/locales/ru.js
27426
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/ru.js
27427
27427
  function getRussianPlural(count, one, few, many) {
27428
27428
  const absCount = Math.abs(count);
27429
27429
  const lastDigit = absCount % 10;
@@ -27590,7 +27590,7 @@ function ru_default() {
27590
27590
  };
27591
27591
  }
27592
27592
 
27593
- // ../../node_modules/zod/v4/locales/sk.js
27593
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/sk.js
27594
27594
  var error47 = () => {
27595
27595
  const Sizable = {
27596
27596
  string: { unit: "znakov", verb: "ma\u0165" },
@@ -27705,7 +27705,7 @@ function sk_default() {
27705
27705
  };
27706
27706
  }
27707
27707
 
27708
- // ../../node_modules/zod/v4/locales/sl.js
27708
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/sl.js
27709
27709
  var error48 = () => {
27710
27710
  const Sizable = {
27711
27711
  string: { unit: "znakov", verb: "imeti" },
@@ -27818,7 +27818,7 @@ function sl_default() {
27818
27818
  };
27819
27819
  }
27820
27820
 
27821
- // ../../node_modules/zod/v4/locales/sv.js
27821
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/sv.js
27822
27822
  var error49 = () => {
27823
27823
  const Sizable = {
27824
27824
  string: { unit: "tecken", verb: "att ha" },
@@ -27932,7 +27932,7 @@ function sv_default() {
27932
27932
  };
27933
27933
  }
27934
27934
 
27935
- // ../../node_modules/zod/v4/locales/ta.js
27935
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/ta.js
27936
27936
  var error50 = () => {
27937
27937
  const Sizable = {
27938
27938
  string: { unit: "\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
@@ -28046,7 +28046,7 @@ function ta_default() {
28046
28046
  };
28047
28047
  }
28048
28048
 
28049
- // ../../node_modules/zod/v4/locales/th.js
28049
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/th.js
28050
28050
  var error51 = () => {
28051
28051
  const Sizable = {
28052
28052
  string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
@@ -28160,7 +28160,7 @@ function th_default() {
28160
28160
  };
28161
28161
  }
28162
28162
 
28163
- // ../../node_modules/zod/v4/locales/tk.js
28163
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/tk.js
28164
28164
  var error52 = () => {
28165
28165
  const Sizable = {
28166
28166
  string: { unit: "simwol", verb: "bolmaly" },
@@ -28266,7 +28266,7 @@ function tk_default() {
28266
28266
  };
28267
28267
  }
28268
28268
 
28269
- // ../../node_modules/zod/v4/locales/tr.js
28269
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/tr.js
28270
28270
  var error53 = () => {
28271
28271
  const Sizable = {
28272
28272
  string: { unit: "karakter", verb: "olmal\u0131" },
@@ -28375,7 +28375,7 @@ function tr_default() {
28375
28375
  };
28376
28376
  }
28377
28377
 
28378
- // ../../node_modules/zod/v4/locales/uk.js
28378
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/uk.js
28379
28379
  var error54 = () => {
28380
28380
  const Sizable = {
28381
28381
  string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
@@ -28487,12 +28487,12 @@ function uk_default() {
28487
28487
  };
28488
28488
  }
28489
28489
 
28490
- // ../../node_modules/zod/v4/locales/ua.js
28490
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/ua.js
28491
28491
  function ua_default() {
28492
28492
  return uk_default();
28493
28493
  }
28494
28494
 
28495
- // ../../node_modules/zod/v4/locales/ur.js
28495
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/ur.js
28496
28496
  var error55 = () => {
28497
28497
  const Sizable = {
28498
28498
  string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
@@ -28606,7 +28606,7 @@ function ur_default() {
28606
28606
  };
28607
28607
  }
28608
28608
 
28609
- // ../../node_modules/zod/v4/locales/uz.js
28609
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/uz.js
28610
28610
  var error56 = () => {
28611
28611
  const Sizable = {
28612
28612
  string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
@@ -28718,7 +28718,7 @@ function uz_default() {
28718
28718
  };
28719
28719
  }
28720
28720
 
28721
- // ../../node_modules/zod/v4/locales/vi.js
28721
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/vi.js
28722
28722
  var error57 = () => {
28723
28723
  const Sizable = {
28724
28724
  string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
@@ -28830,7 +28830,7 @@ function vi_default() {
28830
28830
  };
28831
28831
  }
28832
28832
 
28833
- // ../../node_modules/zod/v4/locales/zh-CN.js
28833
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/zh-CN.js
28834
28834
  var error58 = () => {
28835
28835
  const Sizable = {
28836
28836
  string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
@@ -28943,7 +28943,7 @@ function zh_CN_default() {
28943
28943
  };
28944
28944
  }
28945
28945
 
28946
- // ../../node_modules/zod/v4/locales/zh-TW.js
28946
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/zh-TW.js
28947
28947
  var error59 = () => {
28948
28948
  const Sizable = {
28949
28949
  string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
@@ -29054,7 +29054,7 @@ function zh_TW_default() {
29054
29054
  };
29055
29055
  }
29056
29056
 
29057
- // ../../node_modules/zod/v4/locales/yo.js
29057
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/locales/yo.js
29058
29058
  var error60 = () => {
29059
29059
  const Sizable = {
29060
29060
  string: { unit: "\xE0mi", verb: "n\xED" },
@@ -29165,7 +29165,7 @@ function yo_default() {
29165
29165
  };
29166
29166
  }
29167
29167
 
29168
- // ../../node_modules/zod/v4/core/registries.js
29168
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/core/registries.js
29169
29169
  var _a2;
29170
29170
  var $output = /* @__PURE__ */ Symbol("ZodOutput");
29171
29171
  var $input = /* @__PURE__ */ Symbol("ZodInput");
@@ -29215,7 +29215,7 @@ function registry() {
29215
29215
  (_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
29216
29216
  var globalRegistry = globalThis.__zod_globalRegistry;
29217
29217
 
29218
- // ../../node_modules/zod/v4/core/compile.js
29218
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/core/compile.js
29219
29219
  var INVALID = /* @__PURE__ */ Symbol.for("zod.compile.invalid");
29220
29220
  var FALLBACK_FLAG = /* @__PURE__ */ Symbol.for("zod.compile.fallback");
29221
29221
  var ZodCompileAsyncError = class extends Error {
@@ -30758,7 +30758,7 @@ function generateTransformCheck(doc, ctx, schema, accessor) {
30758
30758
  return accessor;
30759
30759
  }
30760
30760
 
30761
- // ../../node_modules/zod/v4/core/api.js
30761
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/core/api.js
30762
30762
  // @__NO_SIDE_EFFECTS__
30763
30763
  function _string(Class2, params) {
30764
30764
  return new Class2({
@@ -31814,7 +31814,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
31814
31814
  return inst;
31815
31815
  }
31816
31816
 
31817
- // ../../node_modules/zod/v4/core/to-json-schema.js
31817
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/core/to-json-schema.js
31818
31818
  function assignProps(target, ...sources) {
31819
31819
  for (const source of sources) {
31820
31820
  for (const key of Reflect.ownKeys(source)) {
@@ -32342,7 +32342,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
32342
32342
  return finalize(ctx, schema);
32343
32343
  };
32344
32344
 
32345
- // ../../node_modules/zod/v4/core/json-schema-processors.js
32345
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/core/json-schema-processors.js
32346
32346
  var formatMap = {
32347
32347
  guid: "uuid",
32348
32348
  url: "uri",
@@ -32930,7 +32930,7 @@ function toJSONSchema(input2, params) {
32930
32930
  return finalize(ctx, input2);
32931
32931
  }
32932
32932
 
32933
- // ../../node_modules/zod/v4/core/json-schema-generator.js
32933
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/core/json-schema-generator.js
32934
32934
  var JSONSchemaGenerator = class {
32935
32935
  /** @deprecated Access via ctx instead */
32936
32936
  get metadataRegistry() {
@@ -33008,10 +33008,10 @@ var JSONSchemaGenerator = class {
33008
33008
  }
33009
33009
  };
33010
33010
 
33011
- // ../../node_modules/zod/v4/core/json-schema.js
33011
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/core/json-schema.js
33012
33012
  var json_schema_exports = {};
33013
33013
 
33014
- // ../../node_modules/zod/v4/classic/schemas.js
33014
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/classic/schemas.js
33015
33015
  var schemas_exports2 = {};
33016
33016
  __export(schemas_exports2, {
33017
33017
  ZodAny: () => ZodAny,
@@ -33188,7 +33188,7 @@ __export(schemas_exports2, {
33188
33188
  xor: () => xor
33189
33189
  });
33190
33190
 
33191
- // ../../node_modules/zod/v4/classic/checks.js
33191
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/classic/checks.js
33192
33192
  var checks_exports2 = {};
33193
33193
  __export(checks_exports2, {
33194
33194
  endsWith: () => _endsWith,
@@ -33223,7 +33223,7 @@ __export(checks_exports2, {
33223
33223
  uppercase: () => _uppercase
33224
33224
  });
33225
33225
 
33226
- // ../../node_modules/zod/v4/classic/errors.js
33226
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/classic/errors.js
33227
33227
  var _installedErrorProtos = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
33228
33228
  function _lazyMethod(proto, key, make) {
33229
33229
  Object.defineProperty(proto, key, {
@@ -33269,7 +33269,7 @@ var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, void 0
33269
33269
  Parent: Error
33270
33270
  });
33271
33271
 
33272
- // ../../node_modules/zod/v4/classic/parse.js
33272
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/classic/parse.js
33273
33273
  var parse2 = /* @__PURE__ */ _parse(ZodRealError);
33274
33274
  var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
33275
33275
  var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
@@ -33283,7 +33283,7 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
33283
33283
  var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
33284
33284
  var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
33285
33285
 
33286
- // ../../node_modules/zod/v4/classic/schemas.js
33286
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/classic/schemas.js
33287
33287
  function _ensureDefaultLocale() {
33288
33288
  if (!globalConfig.localeError)
33289
33289
  config(en_default());
@@ -34694,7 +34694,7 @@ function preprocess(fn, schema) {
34694
34694
  });
34695
34695
  }
34696
34696
 
34697
- // ../../node_modules/zod/v4/classic/compat.js
34697
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/classic/compat.js
34698
34698
  var ZodIssueCode = {
34699
34699
  invalid_type: "invalid_type",
34700
34700
  too_big: "too_big",
@@ -34720,7 +34720,7 @@ var ZodFirstPartyTypeKind;
34720
34720
  /* @__PURE__ */ (function(ZodFirstPartyTypeKind2) {
34721
34721
  })(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
34722
34722
 
34723
- // ../../node_modules/zod/v4/classic/iso.js
34723
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/classic/iso.js
34724
34724
  var iso_exports = {};
34725
34725
  __export(iso_exports, {
34726
34726
  ZodISODate: () => ZodISODate,
@@ -34745,7 +34745,7 @@ function duration2(params) {
34745
34745
  return _isoDuration(ZodISODuration, params);
34746
34746
  }
34747
34747
 
34748
- // ../../node_modules/zod/v4/classic/from-json-schema.js
34748
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/classic/from-json-schema.js
34749
34749
  var z = {
34750
34750
  ...schemas_exports2,
34751
34751
  ...checks_exports2,
@@ -35285,7 +35285,7 @@ function fromJSONSchema(schema, params) {
35285
35285
  return convertSchema(normalized, ctx);
35286
35286
  }
35287
35287
 
35288
- // ../../node_modules/zod/v4/core/visit.js
35288
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/core/visit.js
35289
35289
  var RESOLVING = /* @__PURE__ */ Symbol("z.visit/resolving");
35290
35290
  function visit(schema, fnOrHandlers) {
35291
35291
  const fn = typeof fnOrHandlers === "function" ? fnOrHandlers : (node2, rewritten) => {
@@ -35440,7 +35440,7 @@ function visit(schema, fnOrHandlers) {
35440
35440
  return run(schema);
35441
35441
  }
35442
35442
 
35443
- // ../../node_modules/zod/v4/classic/deep-partial.js
35443
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/classic/deep-partial.js
35444
35444
  function deepPartial(schema) {
35445
35445
  return visit(schema, {
35446
35446
  object: (s) => s.partial(),
@@ -35452,7 +35452,7 @@ function deepPartial(schema) {
35452
35452
  });
35453
35453
  }
35454
35454
 
35455
- // ../../node_modules/zod/v4/classic/in-out.js
35455
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/classic/in-out.js
35456
35456
  function withChecks(side, checks) {
35457
35457
  if (!checks?.length)
35458
35458
  return side;
@@ -35482,7 +35482,7 @@ function output(schema) {
35482
35482
  });
35483
35483
  }
35484
35484
 
35485
- // ../../node_modules/zod/v4/classic/coerce.js
35485
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/zod/v4/classic/coerce.js
35486
35486
  var coerce_exports = {};
35487
35487
  __export(coerce_exports, {
35488
35488
  bigint: () => bigint3,
@@ -35507,7 +35507,7 @@ function date4(params) {
35507
35507
  return _coercedDate(ZodDate, params);
35508
35508
  }
35509
35509
 
35510
- // ../shared/dist/runtime-runner-status.js
35510
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/runtime-runner-status.js
35511
35511
  var AGENT_RUN_STAGES = [
35512
35512
  "queued",
35513
35513
  "dispatched",
@@ -35665,6 +35665,22 @@ var import_node_os4 = require("os");
35665
35665
  var import_node_path5 = require("path");
35666
35666
  var DEFAULT_AGENT_DIR = (0, import_node_path5.join)((0, import_node_os4.homedir)(), ".alan", "agent");
35667
35667
  var LEGACY_AGENT_DIR = (0, import_node_path5.join)((0, import_node_os4.homedir)(), ".aiden", "agent");
35668
+ function configuredConfigPathFromEnvironment() {
35669
+ const explicit = process.env.ALAN_AGENT_CONFIG_PATH?.trim() || process.env.ALAN_AGENT_CONFIG?.trim();
35670
+ return explicit || void 0;
35671
+ }
35672
+ function resolveIsolatedAgentBaseDir(profile) {
35673
+ switch (profile) {
35674
+ case "local":
35675
+ return (0, import_node_path5.join)((0, import_node_os4.homedir)(), ".alan-dev", "agent");
35676
+ case "staging":
35677
+ return (0, import_node_path5.join)((0, import_node_os4.homedir)(), ".alan-staging", "agent");
35678
+ case "custom":
35679
+ return (0, import_node_path5.join)((0, import_node_os4.homedir)(), ".alan-prod", "agent");
35680
+ default:
35681
+ return null;
35682
+ }
35683
+ }
35668
35684
  var AGENT_CONFIG_KEYS = /* @__PURE__ */ new Map([
35669
35685
  ["apiUrl", "string"],
35670
35686
  ["wsUrl", "string"],
@@ -35742,9 +35758,13 @@ function resolveAgentConfigPath(input2) {
35742
35758
  const profile = normalizeAgentEndpointProfile(
35743
35759
  typeof input2?.profile === "string" ? input2.profile : input2?.profile ?? null
35744
35760
  ) ?? "production";
35745
- const baseDir = input2?.baseDir ?? DEFAULT_AGENT_DIR;
35746
- if (input2?.baseDir === void 0) migrateLegacyAgentConfig({ profile });
35747
- return (0, import_node_path5.join)(baseDir, resolveAgentConfigFileName(profile));
35761
+ if (input2?.baseDir !== void 0) {
35762
+ return (0, import_node_path5.join)(input2.baseDir, resolveAgentConfigFileName(profile));
35763
+ }
35764
+ const isolatedBaseDir = profile === "production" ? null : resolveIsolatedAgentBaseDir(profile);
35765
+ if (isolatedBaseDir) return (0, import_node_path5.join)(isolatedBaseDir, "config.json");
35766
+ migrateLegacyAgentConfig({ profile });
35767
+ return (0, import_node_path5.join)(DEFAULT_AGENT_DIR, resolveAgentConfigFileName(profile));
35748
35768
  }
35749
35769
  function configExistsAtPath(configPath) {
35750
35770
  return (0, import_node_fs5.existsSync)(configPath);
@@ -35760,13 +35780,22 @@ function explicitConfigPathFromArgs(args) {
35760
35780
  const prefix = "--config-path=";
35761
35781
  return args.find((arg) => arg.startsWith(prefix))?.slice(prefix.length).trim() || void 0;
35762
35782
  }
35783
+ function hasExplicitProfileArg(args) {
35784
+ return args.some((arg) => arg === "--profile" || arg.startsWith("--profile="));
35785
+ }
35763
35786
  function bindAgentConfigPathFromArgs(args) {
35764
35787
  const argumentPath = explicitConfigPathFromArgs(args);
35765
35788
  if (argumentPath) {
35766
35789
  process.env.ALAN_AGENT_CONFIG_PATH = argumentPath;
35767
35790
  return argumentPath;
35768
35791
  }
35769
- const explicit = process.env.ALAN_AGENT_CONFIG_PATH?.trim();
35792
+ if (hasExplicitProfileArg(args)) {
35793
+ const profile2 = resolveEndpointProfileFromArgs(args);
35794
+ const configPath2 = resolveAgentConfigPath({ profile: profile2 });
35795
+ process.env.ALAN_AGENT_CONFIG_PATH = configPath2;
35796
+ return configPath2;
35797
+ }
35798
+ const explicit = configuredConfigPathFromEnvironment();
35770
35799
  if (explicit) return explicit;
35771
35800
  const profile = resolveEndpointProfileFromArgs(args);
35772
35801
  const configPath = resolveAgentConfigPath({ profile });
@@ -35985,12 +36014,12 @@ function buildComputerReadiness(input2) {
35985
36014
  // src/runtime-presenter.ts
35986
36015
  var import_node_crypto3 = require("crypto");
35987
36016
 
35988
- // ../agent-core/dist/index.js
36017
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/agent-core/dist/index.js
35989
36018
  var import_fs = require("fs");
35990
36019
  var import_os = require("os");
35991
36020
  var import_path = require("path");
35992
36021
 
35993
- // ../shared/dist/agent/agent-definitions.js
36022
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/agent/agent-definitions.js
35994
36023
  var COORDINATOR_PROMPT = `## You are the Orchestrator
35995
36024
 
35996
36025
  You are the **Orchestrator** for this task. When asked "who are you?", "what agent are you?", "are you the coordinator?", "are you the orchestrator?", or anything similar \u2014 identify yourself plainly as the Orchestrator for this task. Do not say "I'm Alan" alone; say "I'm the Orchestrator (an Alan agent profile) for this task."
@@ -36395,7 +36424,7 @@ function isReadOnlyAgent(agentId) {
36395
36424
  return !agent.capabilities.canEditFiles;
36396
36425
  }
36397
36426
 
36398
- // ../shared/dist/agent/generated-images.js
36427
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/agent/generated-images.js
36399
36428
  var GENERATED_IMAGE_TOOL_NAMES = [
36400
36429
  "image_generation",
36401
36430
  "image_generate",
@@ -36453,7 +36482,7 @@ function isBrowserRecordingToolName(toolName) {
36453
36482
  return BROWSER_RECORDING_TOOL_NAMES.some((token) => normalized === token || normalized.endsWith(`_${token}`));
36454
36483
  }
36455
36484
 
36456
- // ../shared/dist/agent/mcp-config.js
36485
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/agent/mcp-config.js
36457
36486
  var ALAN_MCP_READINESS_CONTRACT_VERSION = 1;
36458
36487
  function validateAlanMcpReadinessContract(registration) {
36459
36488
  if (registration.contractVersion === void 0) {
@@ -36728,7 +36757,7 @@ function mergeAlanMcpCodexToml(existingContent, desiredContent) {
36728
36757
  `;
36729
36758
  }
36730
36759
 
36731
- // ../shared/dist/agent/problem.js
36760
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/agent/problem.js
36732
36761
  var ALAN_PROBLEM_SEVERITIES = ["notice", "recoverable", "terminal"];
36733
36762
  var ALAN_PROBLEM_RECOVERY_MODES = [
36734
36763
  "automatic",
@@ -36959,7 +36988,7 @@ function createAlanProblem(input2) {
36959
36988
  return alanProblemV1Schema.parse({ ...input2, schemaVersion: 1 });
36960
36989
  }
36961
36990
 
36962
- // ../shared/dist/agent/provider-auth-env.js
36991
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/agent/provider-auth-env.js
36963
36992
  function parseOpenCodeAuthDocument(credential) {
36964
36993
  const trimmed = credential.trim();
36965
36994
  if (!trimmed.startsWith("{"))
@@ -37020,10 +37049,10 @@ function buildProviderAuthEnv(backendKind, providerApiKey) {
37020
37049
  }
37021
37050
  }
37022
37051
 
37023
- // ../shared/dist/agent/session-result.js
37052
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/agent/session-result.js
37024
37053
  var SESSION_RESUME_FAILED_MESSAGE = "Session resume failed. The previous session may have expired or is no longer available. Please start a new session.";
37025
37054
 
37026
- // ../shared/dist/agent/system-prompt.js
37055
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/agent/system-prompt.js
37027
37056
  var ALAN_CONTEXT_SEARCH_PROMPT = `## Memory (non-code context)
37028
37057
 
37029
37058
  The codebase records what the system does. It does not record why it is that way, what was ruled out, what an outside constraint forbids, or what someone was left owed. That record lives in \`search_context\` \u2014 this team's decisions, constraints, procedures, ownership, rejected approaches and unfinished work.
@@ -37159,7 +37188,7 @@ function getAlanAgentPrompt(agentId) {
37159
37188
  return getAgentSystemPrompt(agentId);
37160
37189
  }
37161
37190
 
37162
- // ../shared/dist/agent/transcript/coerce-error.js
37191
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/agent/transcript/coerce-error.js
37163
37192
  var CODEX_AUTH_EXPIRY_NEEDLES = [
37164
37193
  "access token could not be refreshed",
37165
37194
  "refresh_token_invalidated",
@@ -37182,7 +37211,7 @@ function isCodexTransientReconnectNotice(message) {
37182
37211
  return false;
37183
37212
  }
37184
37213
 
37185
- // ../shared/dist/utils/agent-run-status.js
37214
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/utils/agent-run-status.js
37186
37215
  var ACTIVE_AGENT_RUN_STATUSES = [
37187
37216
  "pending",
37188
37217
  "awaiting_agent",
@@ -37192,14 +37221,14 @@ var ACTIVE_AGENT_RUN_STATUSES = [
37192
37221
  ];
37193
37222
  var STOPPABLE_AGENT_RUN_STATUSES = [...ACTIVE_AGENT_RUN_STATUSES, "paused"];
37194
37223
 
37195
- // ../shared/dist/agent/types.js
37224
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/agent/types.js
37196
37225
  function resolveEffectiveBackendKind(backendKind) {
37197
37226
  if (backendKind === "codex")
37198
37227
  return "codex_app_server";
37199
37228
  return backendKind || "claude_cli";
37200
37229
  }
37201
37230
 
37202
- // ../shared/dist/effort.js
37231
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/effort.js
37203
37232
  var EFFORT_LEVELS = ["minimal", "low", "medium", "high", "xhigh", "max", "ultra"];
37204
37233
  var CLAUDE_EFFORT_LEVELS = [
37205
37234
  "minimal",
@@ -37346,7 +37375,7 @@ function collapseModelIdToBase(modelId) {
37346
37375
  return parsed.baseId;
37347
37376
  }
37348
37377
 
37349
- // ../shared/dist/agent-selection/catalog/models/canonical.js
37378
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/agent-selection/catalog/models/canonical.js
37350
37379
  var DATE_SUFFIX = /-\d{8}$/;
37351
37380
  var PREVIEW_SUFFIX = /-(preview|exp|experimental)$/;
37352
37381
  var PAREN_SUFFIX = /\s*\(([^)]*)\)\s*$/;
@@ -37408,7 +37437,7 @@ function toCanonicalModelKey(modelId) {
37408
37437
  return id;
37409
37438
  }
37410
37439
 
37411
- // ../shared/dist/agent-selection/catalog/models/registry.js
37440
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/agent-selection/catalog/models/registry.js
37412
37441
  var ENTRIES = [
37413
37442
  ["auto", "Auto", "auto"],
37414
37443
  // Claude. The bare aliases are what Claude Code reports for "latest in this
@@ -37553,7 +37582,7 @@ function withRegistryNames(models) {
37553
37582
  });
37554
37583
  }
37555
37584
 
37556
- // ../shared/dist/agent-selection/catalog/models/define.js
37585
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/agent-selection/catalog/models/define.js
37557
37586
  var UNREGISTERED_CATALOG_MODEL_IDS = [];
37558
37587
  function defineProviderModels(specs) {
37559
37588
  return specs.map((spec) => {
@@ -37572,7 +37601,7 @@ function defineProviderModels(specs) {
37572
37601
  });
37573
37602
  }
37574
37603
 
37575
- // ../shared/dist/agent-selection/catalog/models/claude.js
37604
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/agent-selection/catalog/models/claude.js
37576
37605
  var CLAUDE_5_EFFORT_LEVELS = CLAUDE_EFFORT_LEVELS;
37577
37606
  var AVAILABLE_MODELS = defineProviderModels([
37578
37607
  { id: "", capabilities: { contextWindows: [], effortLevels: [] } },
@@ -37601,7 +37630,7 @@ var CLAUDE_CLI_SEED_MODELS = defineProviderModels([
37601
37630
  { id: "", capabilities: { contextWindows: [], effortLevels: [] } }
37602
37631
  ]);
37603
37632
 
37604
- // ../shared/dist/agent-selection/catalog/models/cursor.js
37633
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/agent-selection/catalog/models/cursor.js
37605
37634
  var CLAUDE_5_EFFORT_LEVELS2 = CLAUDE_EFFORT_LEVELS;
37606
37635
  var CURSOR_AGENT_MODELS = defineProviderModels([
37607
37636
  { id: "auto" },
@@ -37731,7 +37760,7 @@ function inferSlugModelCapabilities(providerKind, modelId) {
37731
37760
  return void 0;
37732
37761
  }
37733
37762
 
37734
- // ../shared/dist/agent-selection/catalog/models/antigravity.js
37763
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/agent-selection/catalog/models/antigravity.js
37735
37764
  var ANTIGRAVITY_CLI_SEED_MODELS = defineProviderModels([{ id: "" }]);
37736
37765
  var ANTIGRAVITY_EFFORT_SUFFIX = /\s+\((High|Medium|Low|Max|Minimal)\)$/i;
37737
37766
  var ANTIGRAVITY_EFFORT_BY_LABEL = {
@@ -37764,10 +37793,10 @@ function collapseAntigravityDiscoveredModelIds(modelIds) {
37764
37793
  return Array.from(keys);
37765
37794
  }
37766
37795
 
37767
- // ../shared/dist/agent-selection/catalog/models/codex.js
37796
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/agent-selection/catalog/models/codex.js
37768
37797
  var CODEX_APP_SERVER_MODELS = [];
37769
37798
 
37770
- // ../shared/dist/agent-selection/catalog/models/copilot.js
37799
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/agent-selection/catalog/models/copilot.js
37771
37800
  var COPILOT_CLI_MODELS = defineProviderModels([
37772
37801
  { id: "auto" },
37773
37802
  {
@@ -37819,7 +37848,7 @@ var COPILOT_CLI_MODELS = defineProviderModels([
37819
37848
  { id: "kimi-k2.7-code" }
37820
37849
  ]);
37821
37850
 
37822
- // ../shared/dist/agent-selection/catalog/models/droid.js
37851
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/agent-selection/catalog/models/droid.js
37823
37852
  var DROID_CLI_MODELS = defineProviderModels([
37824
37853
  { id: "claude-opus-4-8" },
37825
37854
  // Droid reports the dated snapshot id. It canonicalises onto `claude-haiku-4-5`.
@@ -37833,7 +37862,7 @@ var DROID_CLI_MODELS = defineProviderModels([
37833
37862
  { id: "kimi-k2.5" }
37834
37863
  ]);
37835
37864
 
37836
- // ../shared/dist/agent-selection/catalog/models/grok.js
37865
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/agent-selection/catalog/models/grok.js
37837
37866
  var GROK_CLI_MODELS = defineProviderModels([
37838
37867
  { id: "grok-4.6" },
37839
37868
  { id: "grok-4.5" },
@@ -37841,7 +37870,7 @@ var GROK_CLI_MODELS = defineProviderModels([
37841
37870
  { id: "grok-composer-2.5-fast" }
37842
37871
  ]);
37843
37872
 
37844
- // ../shared/dist/agent-selection/catalog/models/kimi.js
37873
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/agent-selection/catalog/models/kimi.js
37845
37874
  var KIMI_CLI_MODELS = defineProviderModels([
37846
37875
  { id: "kimi-latest" },
37847
37876
  { id: "kimi-k2.6" },
@@ -37849,7 +37878,7 @@ var KIMI_CLI_MODELS = defineProviderModels([
37849
37878
  { id: "kimi-code/kimi-for-coding" }
37850
37879
  ]);
37851
37880
 
37852
- // ../shared/dist/agent-selection/catalog/models/opencode.js
37881
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/agent-selection/catalog/models/opencode.js
37853
37882
  var PAID = {
37854
37883
  billing: "paid",
37855
37884
  capabilities: { contextWindows: [], effortLevels: [] }
@@ -37940,7 +37969,7 @@ var OPENCODE_ZEN_MODELS = defineProviderModels([
37940
37969
  { id: "opencode/qwen3.5-plus", ...PAID }
37941
37970
  ]);
37942
37971
 
37943
- // ../shared/dist/agent-selection/catalog/models/supatest.js
37972
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/agent-selection/catalog/models/supatest.js
37944
37973
  var SUPATEST_CLI_MODELS = defineProviderModels([
37945
37974
  { id: "small" },
37946
37975
  { id: "medium" },
@@ -37950,7 +37979,7 @@ var SUPATEST_CLI_MODELS = defineProviderModels([
37950
37979
  { id: "claude-haiku-4-5" }
37951
37980
  ]);
37952
37981
 
37953
- // ../shared/dist/agent-selection/catalog/models/picker-fallback.js
37982
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/agent-selection/catalog/models/picker-fallback.js
37954
37983
  function caps(effortLevels, contextWindows = []) {
37955
37984
  return { contextWindows, effortLevels };
37956
37985
  }
@@ -38028,7 +38057,7 @@ function getProviderPickerFallbackModels(providerKind) {
38028
38057
  return PROVIDER_PICKER_FALLBACK_MODELS[providerKind] ?? [];
38029
38058
  }
38030
38059
 
38031
- // ../shared/dist/agent-selection/catalog/models/index.js
38060
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/agent-selection/catalog/models/index.js
38032
38061
  var PROVIDER_MODELS = {
38033
38062
  claude_cli: CLAUDE_CLI_SEED_MODELS,
38034
38063
  codex_app_server: CODEX_APP_SERVER_MODELS,
@@ -38070,7 +38099,7 @@ function providerCatalogModels(providerKind) {
38070
38099
  return staticCatalog;
38071
38100
  }
38072
38101
 
38073
- // ../shared/dist/agent-selection/catalog/providers.js
38102
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/agent-selection/catalog/providers.js
38074
38103
  var PROVIDERS = [
38075
38104
  {
38076
38105
  kind: "claude_cli",
@@ -38176,7 +38205,7 @@ function isOpenCodeProviderKind(kind) {
38176
38205
  }
38177
38206
  var WORKFLOW_ELIGIBLE_PROVIDER_KINDS = PROVIDERS.filter((provider) => provider.workflowEligible).map((provider) => provider.kind);
38178
38207
 
38179
- // ../shared/dist/agent-selection/discovery/model-variants.js
38208
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/agent-selection/discovery/model-variants.js
38180
38209
  var MAX_MODEL_VARIANT_LENGTH = 256;
38181
38210
  function hasControlCharacters(value2) {
38182
38211
  for (let index = 0; index < value2.length; index += 1) {
@@ -38202,7 +38231,7 @@ function normalizeDiscoveredModelVariants(values) {
38202
38231
  return normalized;
38203
38232
  }
38204
38233
 
38205
- // ../shared/dist/runtime-discovered-models.js
38234
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/runtime-discovered-models.js
38206
38235
  var OPENCODE_ZEN_MODEL_BY_ID = new Map(OPENCODE_ZEN_MODELS.map((model) => [model.id, model]));
38207
38236
  var DROID_MODEL_ID_PATTERN = /^(?:claude-(?:sonnet|opus|haiku|fable)-[a-z0-9][a-z0-9.-]*|gpt-[a-z0-9][a-z0-9.-]*|gemini-[a-z0-9][a-z0-9.-]*|glm-[a-z0-9][a-z0-9.-]*|kimi-[a-z0-9][a-z0-9.-]*)$/i;
38208
38237
  function isValidDroidModelId(modelId) {
@@ -38278,7 +38307,7 @@ function collapseDiscoveredModelIdsForProvider(providerKind, discoveredModelIds)
38278
38307
  return discoveredModelIds.map((id) => id.trim()).filter(Boolean);
38279
38308
  }
38280
38309
 
38281
- // ../agent-core/dist/index.js
38310
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/agent-core/dist/index.js
38282
38311
  var import_crypto = require("crypto");
38283
38312
  var import_fs2 = require("fs");
38284
38313
  var import_os2 = require("os");
@@ -49863,10 +49892,10 @@ var import_node_http = __toESM(require("http"), 1);
49863
49892
  var import_node_os10 = require("os");
49864
49893
  var import_node_path22 = require("path");
49865
49894
 
49866
- // ../../node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.node.js
49895
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.node.js
49867
49896
  var XMLHttpRequestModule = __toESM(require_XMLHttpRequest(), 1);
49868
49897
 
49869
- // ../../node_modules/engine.io-parser/build/esm/commons.js
49898
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-parser/build/esm/commons.js
49870
49899
  var PACKET_TYPES = /* @__PURE__ */ Object.create(null);
49871
49900
  PACKET_TYPES["open"] = "0";
49872
49901
  PACKET_TYPES["close"] = "1";
@@ -49881,7 +49910,7 @@ Object.keys(PACKET_TYPES).forEach((key) => {
49881
49910
  });
49882
49911
  var ERROR_PACKET = { type: "error", data: "parser error" };
49883
49912
 
49884
- // ../../node_modules/engine.io-parser/build/esm/encodePacket.js
49913
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-parser/build/esm/encodePacket.js
49885
49914
  var encodePacket = ({ type, data }, supportsBinary, callback) => {
49886
49915
  if (data instanceof ArrayBuffer || ArrayBuffer.isView(data)) {
49887
49916
  return callback(supportsBinary ? data : "b" + toBuffer(data, true).toString("base64"));
@@ -49910,7 +49939,7 @@ function encodePacketToBinary(packet, callback) {
49910
49939
  });
49911
49940
  }
49912
49941
 
49913
- // ../../node_modules/engine.io-parser/build/esm/decodePacket.js
49942
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-parser/build/esm/decodePacket.js
49914
49943
  var decodePacket = (encodedPacket, binaryType) => {
49915
49944
  if (typeof encodedPacket !== "string") {
49916
49945
  return {
@@ -49956,7 +49985,7 @@ var mapBinary = (data, binaryType) => {
49956
49985
  }
49957
49986
  };
49958
49987
 
49959
- // ../../node_modules/engine.io-parser/build/esm/index.js
49988
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-parser/build/esm/index.js
49960
49989
  var SEPARATOR = String.fromCharCode(30);
49961
49990
  var encodePayload = (packets, callback) => {
49962
49991
  const length = packets.length;
@@ -50098,7 +50127,7 @@ function createPacketDecoderStream(maxPayload, binaryType) {
50098
50127
  }
50099
50128
  var protocol = 4;
50100
50129
 
50101
- // ../../node_modules/@socket.io/component-emitter/lib/esm/index.js
50130
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/@socket.io/component-emitter/lib/esm/index.js
50102
50131
  function Emitter(obj) {
50103
50132
  if (obj) return mixin(obj);
50104
50133
  }
@@ -50170,7 +50199,7 @@ Emitter.prototype.hasListeners = function(event) {
50170
50199
  return !!this.listeners(event).length;
50171
50200
  };
50172
50201
 
50173
- // ../../node_modules/engine.io-client/build/esm-debug/globals.node.js
50202
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-client/build/esm-debug/globals.node.js
50174
50203
  var nextTick = process.nextTick;
50175
50204
  var globalThisShim = global;
50176
50205
  var defaultBinaryType = "nodebuffer";
@@ -50258,7 +50287,7 @@ var CookieJar = class {
50258
50287
  }
50259
50288
  };
50260
50289
 
50261
- // ../../node_modules/engine.io-client/build/esm-debug/util.js
50290
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-client/build/esm-debug/util.js
50262
50291
  function pick2(obj, ...attr) {
50263
50292
  return attr.reduce((acc, k) => {
50264
50293
  if (obj.hasOwnProperty(k)) {
@@ -50306,7 +50335,7 @@ function randomString2() {
50306
50335
  return Date.now().toString(36).substring(3) + Math.random().toString(36).substring(2, 5);
50307
50336
  }
50308
50337
 
50309
- // ../../node_modules/engine.io-client/build/esm-debug/contrib/parseqs.js
50338
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-client/build/esm-debug/contrib/parseqs.js
50310
50339
  function encode3(obj) {
50311
50340
  let str = "";
50312
50341
  for (let i in obj) {
@@ -50328,7 +50357,7 @@ function decode3(qs) {
50328
50357
  return qry;
50329
50358
  }
50330
50359
 
50331
- // ../../node_modules/engine.io-client/build/esm-debug/transport.js
50360
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-client/build/esm-debug/transport.js
50332
50361
  var import_debug = __toESM(require_src(), 1);
50333
50362
  var debug = (0, import_debug.default)("engine.io-client:transport");
50334
50363
  var TransportError = class extends Error {
@@ -50462,7 +50491,7 @@ var Transport = class extends Emitter {
50462
50491
  }
50463
50492
  };
50464
50493
 
50465
- // ../../node_modules/engine.io-client/build/esm-debug/transports/polling.js
50494
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-client/build/esm-debug/transports/polling.js
50466
50495
  var import_debug2 = __toESM(require_src(), 1);
50467
50496
  var debug2 = (0, import_debug2.default)("engine.io-client:polling");
50468
50497
  var Polling = class extends Transport {
@@ -50607,7 +50636,7 @@ var Polling = class extends Transport {
50607
50636
  }
50608
50637
  };
50609
50638
 
50610
- // ../../node_modules/engine.io-client/build/esm-debug/contrib/has-cors.js
50639
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-client/build/esm-debug/contrib/has-cors.js
50611
50640
  var value = false;
50612
50641
  try {
50613
50642
  value = typeof XMLHttpRequest !== "undefined" && "withCredentials" in new XMLHttpRequest();
@@ -50615,7 +50644,7 @@ try {
50615
50644
  }
50616
50645
  var hasCORS = value;
50617
50646
 
50618
- // ../../node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.js
50647
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.js
50619
50648
  var import_debug3 = __toESM(require_src(), 1);
50620
50649
  var debug3 = (0, import_debug3.default)("engine.io-client:polling");
50621
50650
  function empty() {
@@ -50850,7 +50879,7 @@ function newRequest(opts) {
50850
50879
  }
50851
50880
  }
50852
50881
 
50853
- // ../../node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.node.js
50882
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.node.js
50854
50883
  var XMLHttpRequest2 = XMLHttpRequestModule.default || XMLHttpRequestModule;
50855
50884
  var XHR = class extends BaseXHR {
50856
50885
  request(opts = {}) {
@@ -50860,14 +50889,14 @@ var XHR = class extends BaseXHR {
50860
50889
  }
50861
50890
  };
50862
50891
 
50863
- // ../../node_modules/engine.io-client/node_modules/ws/wrapper.mjs
50892
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-client/node_modules/ws/wrapper.mjs
50864
50893
  var import_stream = __toESM(require_stream(), 1);
50865
50894
  var import_receiver = __toESM(require_receiver(), 1);
50866
50895
  var import_sender = __toESM(require_sender(), 1);
50867
50896
  var import_websocket = __toESM(require_websocket(), 1);
50868
50897
  var import_websocket_server = __toESM(require_websocket_server(), 1);
50869
50898
 
50870
- // ../../node_modules/engine.io-client/build/esm-debug/transports/websocket.js
50899
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-client/build/esm-debug/transports/websocket.js
50871
50900
  var import_debug4 = __toESM(require_src(), 1);
50872
50901
  var debug4 = (0, import_debug4.default)("engine.io-client:websocket");
50873
50902
  var isReactNative = typeof navigator !== "undefined" && typeof navigator.product === "string" && navigator.product.toLowerCase() === "reactnative";
@@ -50956,7 +50985,7 @@ var BaseWS = class extends Transport {
50956
50985
  };
50957
50986
  var WebSocketCtor = globalThisShim.WebSocket || globalThisShim.MozWebSocket;
50958
50987
 
50959
- // ../../node_modules/engine.io-client/build/esm-debug/transports/websocket.node.js
50988
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-client/build/esm-debug/transports/websocket.node.js
50960
50989
  var WS = class extends BaseWS {
50961
50990
  createSocket(uri, protocols, opts) {
50962
50991
  var _a3;
@@ -50987,7 +51016,7 @@ var WS = class extends BaseWS {
50987
51016
  }
50988
51017
  };
50989
51018
 
50990
- // ../../node_modules/engine.io-client/build/esm-debug/transports/webtransport.js
51019
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-client/build/esm-debug/transports/webtransport.js
50991
51020
  var import_debug5 = __toESM(require_src(), 1);
50992
51021
  var debug5 = (0, import_debug5.default)("engine.io-client:webtransport");
50993
51022
  var WT = class extends Transport {
@@ -51057,14 +51086,14 @@ var WT = class extends Transport {
51057
51086
  }
51058
51087
  };
51059
51088
 
51060
- // ../../node_modules/engine.io-client/build/esm-debug/transports/index.js
51089
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-client/build/esm-debug/transports/index.js
51061
51090
  var transports = {
51062
51091
  websocket: WS,
51063
51092
  webtransport: WT,
51064
51093
  polling: XHR
51065
51094
  };
51066
51095
 
51067
- // ../../node_modules/engine.io-client/build/esm-debug/contrib/parseuri.js
51096
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-client/build/esm-debug/contrib/parseuri.js
51068
51097
  var re = /^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/;
51069
51098
  var parts = [
51070
51099
  "source",
@@ -51124,7 +51153,7 @@ function queryKey(uri, query) {
51124
51153
  return data;
51125
51154
  }
51126
51155
 
51127
- // ../../node_modules/engine.io-client/build/esm-debug/socket.js
51156
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-client/build/esm-debug/socket.js
51128
51157
  var import_debug6 = __toESM(require_src(), 1);
51129
51158
  var debug6 = (0, import_debug6.default)("engine.io-client:socket");
51130
51159
  var withEventListeners = typeof addEventListener === "function" && typeof removeEventListener === "function";
@@ -51720,10 +51749,10 @@ var Socket = class extends SocketWithUpgrade {
51720
51749
  }
51721
51750
  };
51722
51751
 
51723
- // ../../node_modules/engine.io-client/build/esm-debug/index.js
51752
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/engine.io-client/build/esm-debug/index.js
51724
51753
  var protocol2 = Socket.protocol;
51725
51754
 
51726
- // ../../node_modules/socket.io-client/build/esm-debug/url.js
51755
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/socket.io-client/build/esm-debug/url.js
51727
51756
  var import_debug7 = __toESM(require_src(), 1);
51728
51757
  var debug7 = (0, import_debug7.default)("socket.io-client:url");
51729
51758
  function url2(uri, path2 = "", loc) {
@@ -51765,7 +51794,7 @@ function url2(uri, path2 = "", loc) {
51765
51794
  return obj;
51766
51795
  }
51767
51796
 
51768
- // ../../node_modules/socket.io-parser/build/esm-debug/index.js
51797
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/socket.io-parser/build/esm-debug/index.js
51769
51798
  var esm_debug_exports = {};
51770
51799
  __export(esm_debug_exports, {
51771
51800
  Decoder: () => Decoder,
@@ -51775,7 +51804,7 @@ __export(esm_debug_exports, {
51775
51804
  protocol: () => protocol3
51776
51805
  });
51777
51806
 
51778
- // ../../node_modules/socket.io-parser/build/esm-debug/is-binary.js
51807
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/socket.io-parser/build/esm-debug/is-binary.js
51779
51808
  var withNativeArrayBuffer = typeof ArrayBuffer === "function";
51780
51809
  var isView = (obj) => {
51781
51810
  return typeof ArrayBuffer.isView === "function" ? ArrayBuffer.isView(obj) : obj.buffer instanceof ArrayBuffer;
@@ -51812,7 +51841,7 @@ function hasBinary(obj, toJSON) {
51812
51841
  return false;
51813
51842
  }
51814
51843
 
51815
- // ../../node_modules/socket.io-parser/build/esm-debug/binary.js
51844
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/socket.io-parser/build/esm-debug/binary.js
51816
51845
  function deconstructPacket(packet) {
51817
51846
  const buffers = [];
51818
51847
  const packetData = packet.data;
@@ -51874,7 +51903,7 @@ function _reconstructPacket(data, buffers) {
51874
51903
  return data;
51875
51904
  }
51876
51905
 
51877
- // ../../node_modules/socket.io-parser/build/esm-debug/index.js
51906
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/socket.io-parser/build/esm-debug/index.js
51878
51907
  var import_debug8 = __toESM(require_src(), 1);
51879
51908
  var debug8 = (0, import_debug8.default)("socket.io-parser");
51880
51909
  var RESERVED_EVENTS = [
@@ -52175,7 +52204,7 @@ function isPacketValid(packet) {
52175
52204
  return isNamespaceValid(packet.nsp) && isAckIdValid(packet.id) && isDataValid(packet.type, packet.data);
52176
52205
  }
52177
52206
 
52178
- // ../../node_modules/socket.io-client/build/esm-debug/on.js
52207
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/socket.io-client/build/esm-debug/on.js
52179
52208
  function on(obj, ev, fn) {
52180
52209
  obj.on(ev, fn);
52181
52210
  return function subDestroy() {
@@ -52183,7 +52212,7 @@ function on(obj, ev, fn) {
52183
52212
  };
52184
52213
  }
52185
52214
 
52186
- // ../../node_modules/socket.io-client/build/esm-debug/socket.js
52215
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/socket.io-client/build/esm-debug/socket.js
52187
52216
  var import_debug9 = __toESM(require_src(), 1);
52188
52217
  var debug9 = (0, import_debug9.default)("socket.io-client:socket");
52189
52218
  var RESERVED_EVENTS2 = Object.freeze({
@@ -52978,7 +53007,7 @@ var Socket2 = class extends Emitter {
52978
53007
  }
52979
53008
  };
52980
53009
 
52981
- // ../../node_modules/socket.io-client/build/esm-debug/contrib/backo2.js
53010
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/socket.io-client/build/esm-debug/contrib/backo2.js
52982
53011
  function Backoff(opts) {
52983
53012
  opts = opts || {};
52984
53013
  this.ms = opts.min || 100;
@@ -53009,7 +53038,7 @@ Backoff.prototype.setJitter = function(jitter) {
53009
53038
  this.jitter = jitter;
53010
53039
  };
53011
53040
 
53012
- // ../../node_modules/socket.io-client/build/esm-debug/manager.js
53041
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/socket.io-client/build/esm-debug/manager.js
53013
53042
  var import_debug10 = __toESM(require_src(), 1);
53014
53043
  var debug10 = (0, import_debug10.default)("socket.io-client:manager");
53015
53044
  var Manager = class extends Emitter {
@@ -53378,7 +53407,7 @@ var Manager = class extends Emitter {
53378
53407
  }
53379
53408
  };
53380
53409
 
53381
- // ../../node_modules/socket.io-client/build/esm-debug/index.js
53410
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/socket.io-client/build/esm-debug/index.js
53382
53411
  var import_debug11 = __toESM(require_src(), 1);
53383
53412
  var debug11 = (0, import_debug11.default)("socket.io-client");
53384
53413
  var cache = {};
@@ -54663,7 +54692,7 @@ var import_node_fs14 = require("fs");
54663
54692
  var import_node_os8 = require("os");
54664
54693
  var import_node_path12 = require("path");
54665
54694
 
54666
- // ../../node_modules/smol-toml/dist/error.js
54695
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/smol-toml/dist/error.js
54667
54696
  function getLineColFromPtr(string4, ptr) {
54668
54697
  let lines = string4.slice(0, ptr).split(/\r\n|\n|\r/g);
54669
54698
  return [lines.length, lines.pop().length + 1];
@@ -54703,7 +54732,7 @@ ${codeblock}`, options);
54703
54732
  }
54704
54733
  };
54705
54734
 
54706
- // ../../node_modules/smol-toml/dist/util.js
54735
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/smol-toml/dist/util.js
54707
54736
  function isEscaped(str, ptr) {
54708
54737
  let i = 0;
54709
54738
  while (str[ptr - ++i] === "\\")
@@ -54782,7 +54811,7 @@ function getStringEnd(str, seek) {
54782
54811
  return seek;
54783
54812
  }
54784
54813
 
54785
- // ../../node_modules/smol-toml/dist/date.js
54814
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/smol-toml/dist/date.js
54786
54815
  var DATE_TIME_RE = /^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}(?::\d{2}(?:\.\d+)?)?)?(Z|[-+]\d{2}:\d{2})?$/i;
54787
54816
  var TomlDate = class _TomlDate extends Date {
54788
54817
  #hasDate = false;
@@ -54874,7 +54903,7 @@ var TomlDate = class _TomlDate extends Date {
54874
54903
  }
54875
54904
  };
54876
54905
 
54877
- // ../../node_modules/smol-toml/dist/primitive.js
54906
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/smol-toml/dist/primitive.js
54878
54907
  var INT_REGEX = /^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/;
54879
54908
  var FLOAT_REGEX = /^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/;
54880
54909
  var LEADING_ZERO = /^[+-]?0[0-9_]/;
@@ -55013,7 +55042,7 @@ function parseValue(value2, toml, ptr, integersAsBigInt) {
55013
55042
  return date5;
55014
55043
  }
55015
55044
 
55016
- // ../../node_modules/smol-toml/dist/extract.js
55045
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/smol-toml/dist/extract.js
55017
55046
  function sliceAndTrimEndOf(str, startPtr, endPtr) {
55018
55047
  let value2 = str.slice(startPtr, endPtr);
55019
55048
  let commentIdx = value2.indexOf("#");
@@ -55080,7 +55109,7 @@ function extractValue(str, ptr, end, depth, integersAsBigInt) {
55080
55109
  ];
55081
55110
  }
55082
55111
 
55083
- // ../../node_modules/smol-toml/dist/struct.js
55112
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/smol-toml/dist/struct.js
55084
55113
  var KEY_PART_RE = /^[a-zA-Z0-9-_]+[ \t]*$/;
55085
55114
  function parseKey(str, ptr, end = "=") {
55086
55115
  let dot = ptr - 1;
@@ -55228,7 +55257,7 @@ function parseArray(str, ptr, depth, integersAsBigInt) {
55228
55257
  return [res, ptr];
55229
55258
  }
55230
55259
 
55231
- // ../../node_modules/smol-toml/dist/parse.js
55260
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/smol-toml/dist/parse.js
55232
55261
  function peekTable(key, table, meta3, type) {
55233
55262
  let t = table;
55234
55263
  let m = meta3;
@@ -55353,7 +55382,7 @@ function parse5(toml, { maxDepth = 1e3, integersAsBigInt } = {}) {
55353
55382
  return res;
55354
55383
  }
55355
55384
 
55356
- // ../../node_modules/smol-toml/dist/stringify.js
55385
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/smol-toml/dist/stringify.js
55357
55386
  var BARE_KEY = /^[a-z0-9-_]+$/i;
55358
55387
  function extendedTypeOf(obj) {
55359
55388
  let type = typeof obj;
@@ -56259,7 +56288,7 @@ ${meta3.description}`);
56259
56288
  }
56260
56289
  };
56261
56290
 
56262
- // ../../node_modules/@modelcontextprotocol/client/dist/chunk-Br0eD_fh.mjs
56291
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/@modelcontextprotocol/client/dist/chunk-Br0eD_fh.mjs
56263
56292
  var __create2 = Object.create;
56264
56293
  var __defProp2 = Object.defineProperty;
56265
56294
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
@@ -56299,7 +56328,7 @@ var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__
56299
56328
  enumerable: true
56300
56329
  }) : target, mod));
56301
56330
 
56302
- // ../../node_modules/@modelcontextprotocol/client/dist/dialects-BOhdv1Fc.mjs
56331
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/@modelcontextprotocol/client/dist/dialects-BOhdv1Fc.mjs
56303
56332
  var DRAFT_2020_12_URIS = /* @__PURE__ */ new Set(["https://json-schema.org/draft/2020-12/schema", "http://json-schema.org/draft/2020-12/schema"]);
56304
56333
  var DRAFT_2019_09_URIS = /* @__PURE__ */ new Set(["https://json-schema.org/draft/2019-09/schema", "http://json-schema.org/draft/2019-09/schema"]);
56305
56334
  var DRAFT_07_URIS = /* @__PURE__ */ new Set(["https://json-schema.org/draft-07/schema", "http://json-schema.org/draft-07/schema"]);
@@ -56316,7 +56345,7 @@ function declaredDialect(schema, remedy) {
56316
56345
  throw new Error(`JSON Schema declares an unsupported dialect ("$schema": "${schema.$schema.slice(0, 200)}"). The default validator supports JSON Schema 2020-12, 2019-09, draft-07, and draft-06; ${remedy}`);
56317
56346
  }
56318
56347
 
56319
- // ../../node_modules/@modelcontextprotocol/core/dist/auth-CUe6YdwF.mjs
56348
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/@modelcontextprotocol/core/dist/auth-CUe6YdwF.mjs
56320
56349
  var LATEST_PROTOCOL_VERSION = "2025-11-25";
56321
56350
  var SUPPORTED_PROTOCOL_VERSIONS = [
56322
56351
  LATEST_PROTOCOL_VERSION,
@@ -57254,7 +57283,7 @@ var OAuthTokenRevocationRequestSchema = object({
57254
57283
  token_type_hint: string2().optional()
57255
57284
  }).strip();
57256
57285
 
57257
- // ../../node_modules/@modelcontextprotocol/client/dist/src-D_zzAWoS.mjs
57286
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/@modelcontextprotocol/client/dist/src-D_zzAWoS.mjs
57258
57287
  var BRANDS = /* @__PURE__ */ Symbol.for("mcp.sdk.errorBrands");
57259
57288
  function stampErrorBrands(instance, ctor) {
57260
57289
  const brands = /* @__PURE__ */ new Set();
@@ -60269,9 +60298,9 @@ function buildMcpParamHeaders(declarations, args) {
60269
60298
  for (const decl of declarations) {
60270
60299
  const raw = valueAtPath(args, decl.path);
60271
60300
  if (raw === void 0 || raw === null) continue;
60272
- const stringValue = mcpParamPrimitiveToString(raw);
60273
- if (stringValue === void 0) continue;
60274
- out[`${MCP_PARAM_HEADER_PREFIX}${decl.headerName}`] = encodeMcpParamValue(stringValue);
60301
+ const stringValue2 = mcpParamPrimitiveToString(raw);
60302
+ if (stringValue2 === void 0) continue;
60303
+ out[`${MCP_PARAM_HEADER_PREFIX}${decl.headerName}`] = encodeMcpParamValue(stringValue2);
60275
60304
  }
60276
60305
  return out;
60277
60306
  }
@@ -61901,7 +61930,7 @@ function createFetchWithInit(baseFetch = fetch, baseInit) {
61901
61930
  };
61902
61931
  }
61903
61932
 
61904
- // ../../node_modules/@modelcontextprotocol/client/dist/ajvProvider-97rDpkRx.mjs
61933
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/@modelcontextprotocol/client/dist/ajvProvider-97rDpkRx.mjs
61905
61934
  var require_code$1 = /* @__PURE__ */ __commonJSMin(((exports2) => {
61906
61935
  Object.defineProperty(exports2, "__esModule", { value: true });
61907
61936
  exports2.regexpCode = exports2.getEsmExportName = exports2.getProperty = exports2.safeStringify = exports2.stringify = exports2.strConcat = exports2.addCodeArg = exports2.str = exports2._ = exports2.nil = exports2._Code = exports2.Name = exports2.IDENTIFIER = exports2._CodeOrName = void 0;
@@ -68911,10 +68940,10 @@ var AjvJsonSchemaValidator = class {
68911
68940
  };
68912
68941
  var Ajv = import_ajv.Ajv;
68913
68942
 
68914
- // ../../node_modules/@modelcontextprotocol/client/dist/shimsNode.mjs
68943
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/@modelcontextprotocol/client/dist/shimsNode.mjs
68915
68944
  var CORS_IS_POSSIBLE = false;
68916
68945
 
68917
- // ../../node_modules/pkce-challenge/dist/index.node.js
68946
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/pkce-challenge/dist/index.node.js
68918
68947
  var crypto;
68919
68948
  crypto = globalThis.crypto?.webcrypto ?? // Node.js [18-16] REPL
68920
68949
  globalThis.crypto ?? // Node.js >18
@@ -68957,7 +68986,7 @@ async function pkceChallenge(length) {
68957
68986
  };
68958
68987
  }
68959
68988
 
68960
- // ../../node_modules/eventsource-parser/dist/index.js
68989
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/eventsource-parser/dist/index.js
68961
68990
  var ParseError = class extends Error {
68962
68991
  constructor(message, options) {
68963
68992
  super(message), this.name = "ParseError", this.type = options.type, this.field = options.field, this.value = options.value, this.line = options.line;
@@ -69060,7 +69089,7 @@ function splitLines(chunk) {
69060
69089
  return [lines, incompleteLine];
69061
69090
  }
69062
69091
 
69063
- // ../../node_modules/eventsource-parser/dist/stream.js
69092
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/eventsource-parser/dist/stream.js
69064
69093
  var EventSourceParserStream = class extends TransformStream {
69065
69094
  constructor({ onError, onRetry, onComment } = {}) {
69066
69095
  let parser;
@@ -69084,7 +69113,7 @@ var EventSourceParserStream = class extends TransformStream {
69084
69113
  }
69085
69114
  };
69086
69115
 
69087
- // ../../node_modules/@modelcontextprotocol/client/dist/index.mjs
69116
+ // ../../../../../../../../../Users/aman/Documents/alan/node_modules/@modelcontextprotocol/client/dist/index.mjs
69088
69117
  var OAuthClientFlowError = class extends Error {
69089
69118
  static {
69090
69119
  Object.defineProperty(this, "mcpBrand", { value: "mcp.OAuthClientFlowError" });
@@ -72840,9 +72869,29 @@ function failureFromError(error61, paths) {
72840
72869
  stage: "protocol",
72841
72870
  message: "Alan's tool service returned an invalid MCP response.",
72842
72871
  retryable: false,
72843
- paths
72872
+ paths,
72873
+ diagnostic: describeReadinessError(error61)
72844
72874
  };
72845
72875
  }
72876
+ function describeReadinessError(error61) {
72877
+ if (!(error61 instanceof Error)) return String(error61);
72878
+ const parts2 = [];
72879
+ let current = error61;
72880
+ for (let depth = 0; current instanceof Error && depth < 4; depth += 1) {
72881
+ const { name, message } = current;
72882
+ const { code, status } = current;
72883
+ parts2.push(
72884
+ [
72885
+ name,
72886
+ message,
72887
+ code === void 0 ? "" : `code=${String(code)}`,
72888
+ status === void 0 ? "" : `status=${String(status)}`
72889
+ ].filter(Boolean).join(" ")
72890
+ );
72891
+ current = current.cause;
72892
+ }
72893
+ return parts2.join(" <- ");
72894
+ }
72846
72895
  async function waitBeforeRetry() {
72847
72896
  await new Promise((resolve15) => setTimeout(resolve15, RETRY_DELAY_MS2));
72848
72897
  }
@@ -73283,7 +73332,8 @@ async function handleAgentExecute(ctx, payload) {
73283
73332
  console.warn("[alan-agent] Alan MCP readiness observed failure", {
73284
73333
  ...correlation,
73285
73334
  code: failure.code,
73286
- stage: failure.stage
73335
+ stage: failure.stage,
73336
+ ...failure.diagnostic ? { diagnostic: failure.diagnostic } : {}
73287
73337
  });
73288
73338
  }
73289
73339
  });
@@ -74207,7 +74257,7 @@ var NativeTranscriptStreamer = class {
74207
74257
  continue;
74208
74258
  }
74209
74259
  const parsed = parseJsonObject3(raw);
74210
- const events = parsed ? claudeRecordToAgentEvents(parsed) : [];
74260
+ const events = parsed ? providerRecordToAgentEvents(hook.provider, parsed) : [];
74211
74261
  for (let index = 0; index < events.length; index += 1) {
74212
74262
  const deliveredEvent = events[index];
74213
74263
  const sourceCursor = `${start.generation}:${recordEndOffset}:${index}`;
@@ -74267,12 +74317,62 @@ function parseJsonObject3(value2) {
74267
74317
  return null;
74268
74318
  }
74269
74319
  }
74270
- function claudeRecordToAgentEvents(record2) {
74320
+ function providerRecordToAgentEvents(provider, record2) {
74321
+ if (provider === "codex") return codexRecordToAgentEvents(record2);
74322
+ if (provider === "copilot") return copilotRecordToAgentEvents(record2);
74323
+ return claudeCompatibleRecordToAgentEvents(record2);
74324
+ }
74325
+ function copilotRecordToAgentEvents(record2) {
74326
+ if (typeof record2.type !== "string" || !isRecord2(record2.data)) return [];
74327
+ const timestamp = timestampOf(record2) ? Date.parse(timestampOf(record2)) : Date.now();
74328
+ const ts = Number.isFinite(timestamp) ? timestamp : Date.now();
74329
+ const data = record2.data;
74330
+ if (record2.type === "assistant.message") {
74331
+ const events = [];
74332
+ if (typeof data.reasoningText === "string" && data.reasoningText.length > 0) {
74333
+ events.push({ type: "thinking", text: data.reasoningText, ts });
74334
+ }
74335
+ if (typeof data.content === "string" && data.content.length > 0) {
74336
+ events.push({ type: "text", text: data.content, ts });
74337
+ }
74338
+ if (Array.isArray(data.toolRequests)) {
74339
+ for (const request of data.toolRequests) {
74340
+ if (!isRecord2(request)) continue;
74341
+ const id = stringValue(request.id, request.toolCallId, request.tool_call_id);
74342
+ const name = stringValue(request.name, request.toolName, request.tool_name);
74343
+ if (id && name) {
74344
+ events.push({
74345
+ type: "tool_use",
74346
+ id,
74347
+ name,
74348
+ input: request.arguments ?? request.input,
74349
+ ts
74350
+ });
74351
+ }
74352
+ }
74353
+ }
74354
+ return events;
74355
+ }
74356
+ if (record2.type === "tool.execution_complete" || record2.type === "tool.execution_end") {
74357
+ const id = stringValue(data.toolCallId, data.tool_call_id, data.id);
74358
+ if (!id) return [];
74359
+ return [
74360
+ {
74361
+ type: "tool_result",
74362
+ id,
74363
+ content: extractText2(data.result ?? data.output ?? data.content),
74364
+ ts
74365
+ }
74366
+ ];
74367
+ }
74368
+ return [];
74369
+ }
74370
+ function claudeCompatibleRecordToAgentEvents(record2) {
74271
74371
  const timestamp = timestampOf(record2) ? Date.parse(timestampOf(record2)) : Date.now();
74272
74372
  const ts = Number.isFinite(timestamp) ? timestamp : Date.now();
74273
74373
  const message = isRecord2(record2.message) ? record2.message : record2;
74274
74374
  const content = message.content;
74275
- const role = typeof message.role === "string" ? message.role : typeof record2.type === "string" ? record2.type : null;
74375
+ const role = typeof message.role === "string" ? message.role : typeof record2.role === "string" ? record2.role : typeof record2.type === "string" ? record2.type : null;
74276
74376
  if (role === "user") {
74277
74377
  if (!Array.isArray(content)) return [];
74278
74378
  return content.flatMap((block) => {
@@ -74310,6 +74410,47 @@ function claudeRecordToAgentEvents(record2) {
74310
74410
  return [{ type: "text", text: content, ts }];
74311
74411
  return [];
74312
74412
  }
74413
+ function codexRecordToAgentEvents(record2) {
74414
+ if (record2.type !== "response_item" || !isRecord2(record2.payload)) return [];
74415
+ const payload = record2.payload;
74416
+ const timestamp = timestampOf(record2) ? Date.parse(timestampOf(record2)) : Date.now();
74417
+ const ts = Number.isFinite(timestamp) ? timestamp : Date.now();
74418
+ if (payload.type === "message" && payload.role === "assistant") {
74419
+ if (!Array.isArray(payload.content)) return [];
74420
+ return payload.content.flatMap((block) => {
74421
+ if (!isRecord2(block) || block.type !== "output_text" || typeof block.text !== "string") {
74422
+ return [];
74423
+ }
74424
+ return block.text ? [{ type: "text", text: block.text, ts }] : [];
74425
+ });
74426
+ }
74427
+ if (payload.type === "reasoning") {
74428
+ const text = extractText2(payload.summary);
74429
+ return text ? [{ type: "thinking", text, ts }] : [];
74430
+ }
74431
+ if (payload.type === "custom_tool_call") {
74432
+ const id = stringValue(payload.call_id, payload.id);
74433
+ const name = stringValue(payload.name);
74434
+ if (!id || !name) return [];
74435
+ return [{ type: "tool_use", id, name, input: parseEmbeddedJson(payload.input), ts }];
74436
+ }
74437
+ if (payload.type === "custom_tool_call_output") {
74438
+ const id = stringValue(payload.call_id, payload.id);
74439
+ return id ? [{ type: "tool_result", id, content: extractText2(payload.output), ts }] : [];
74440
+ }
74441
+ return [];
74442
+ }
74443
+ function stringValue(...values) {
74444
+ return values.find((value2) => typeof value2 === "string" && value2.length > 0) ?? null;
74445
+ }
74446
+ function parseEmbeddedJson(value2) {
74447
+ if (typeof value2 !== "string") return value2;
74448
+ try {
74449
+ return JSON.parse(value2);
74450
+ } catch {
74451
+ return value2;
74452
+ }
74453
+ }
74313
74454
  function extractText2(value2) {
74314
74455
  if (typeof value2 === "string") return value2;
74315
74456
  if (Array.isArray(value2)) return value2.map(extractText2).filter(Boolean).join("\n");
@@ -74596,14 +74737,14 @@ var import_node_crypto12 = require("crypto");
74596
74737
  var import_promises2 = require("fs/promises");
74597
74738
  var import_node_path18 = __toESM(require("path"), 1);
74598
74739
 
74599
- // ../shared/dist/node/skill-package.js
74740
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/node/skill-package.js
74600
74741
  var import_node_buffer = require("buffer");
74601
74742
  var import_node_crypto11 = require("crypto");
74602
74743
  var import_promises = require("fs/promises");
74603
74744
  var import_node_path17 = require("path");
74604
74745
  var import_yaml = __toESM(require_dist2(), 1);
74605
74746
 
74606
- // ../shared/dist/skills/domain.js
74747
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/skills/domain.js
74607
74748
  var SKILLS_PROTOCOL_VERSION = 1;
74608
74749
  var SKILL_PACKAGE_LIMITS = {
74609
74750
  maxArchiveBytes: 10 * 1024 * 1024,
@@ -74616,7 +74757,7 @@ var SKILL_PACKAGE_LIMITS = {
74616
74757
  maxDirectoryDepth: 16
74617
74758
  };
74618
74759
 
74619
- // ../shared/dist/skills/contracts.js
74760
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/skills/contracts.js
74620
74761
  var SKILL_NAME_PATTERN = /^(?!-)(?!.*--)[a-z0-9]+(?:-[a-z0-9]+)*$/;
74621
74762
  var SHA256_PATTERN = /^sha256:[a-f0-9]{64}$/;
74622
74763
  function defineWireSchema() {
@@ -74945,7 +75086,7 @@ var runtimeSkillSyncResponseSchema = defineWireSchema()(external_exports.object(
74945
75086
  commands: external_exports.array(runtimeSkillCommandSchema).max(100)
74946
75087
  }));
74947
75088
 
74948
- // ../shared/dist/skills/errors.js
75089
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/skills/errors.js
74949
75090
  var SkillPackageError = class extends Error {
74950
75091
  code;
74951
75092
  path;
@@ -74957,7 +75098,7 @@ var SkillPackageError = class extends Error {
74957
75098
  }
74958
75099
  };
74959
75100
 
74960
- // ../shared/dist/node/skill-package.js
75101
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/node/skill-package.js
74961
75102
  var TREE_HASH_PREFIX = import_node_buffer.Buffer.from("alan-skill-tree-v1\0", "utf8");
74962
75103
  var ALWAYS_IGNORED_DIRECTORIES = /* @__PURE__ */ new Set([".git", "node_modules"]);
74963
75104
  var ALWAYS_IGNORED_FILES = /* @__PURE__ */ new Set([
@@ -75132,10 +75273,10 @@ function createIgnoreMatcher(path2) {
75132
75273
  const expression = globToRegExp(pattern);
75133
75274
  return (candidate) => expression.test(candidate) || expression.test(`${candidate}/`);
75134
75275
  }
75135
- function isIgnored(normalizedPath, basename6, isDirectory2, configured) {
75136
- if (isDirectory2 && ALWAYS_IGNORED_DIRECTORIES.has(basename6))
75276
+ function isIgnored(normalizedPath, basename7, isDirectory2, configured) {
75277
+ if (isDirectory2 && ALWAYS_IGNORED_DIRECTORIES.has(basename7))
75137
75278
  return true;
75138
- if (!isDirectory2 && ALWAYS_IGNORED_FILES.has(basename6))
75279
+ if (!isDirectory2 && ALWAYS_IGNORED_FILES.has(basename7))
75139
75280
  return true;
75140
75281
  return configured.some((matches) => matches(normalizedPath));
75141
75282
  }
@@ -75380,7 +75521,7 @@ function uint642(value2) {
75380
75521
  return buffer;
75381
75522
  }
75382
75523
 
75383
- // ../shared/dist/skills/provider-sources.js
75524
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/skills/provider-sources.js
75384
75525
  var SKILL_PROVIDER_SOURCE_DEFINITIONS = [
75385
75526
  {
75386
75527
  providerKind: "claude_cli",
@@ -75742,8 +75883,8 @@ function isWithinDirectory(parent, candidate) {
75742
75883
  const path2 = (0, import_node_path18.relative)(parent, candidate);
75743
75884
  return path2 !== ".." && !path2.startsWith(`..${import_node_path18.sep}`) && !(0, import_node_path18.isAbsolute)(path2);
75744
75885
  }
75745
- async function loadSkillSourceConfig(homeDirectory) {
75746
- const configDirectory = (0, import_node_path18.join)(homeDirectory, ".alan");
75886
+ async function loadSkillSourceConfig(homeDirectory2) {
75887
+ const configDirectory = (0, import_node_path18.join)(homeDirectory2, ".alan");
75747
75888
  const configPath = (0, import_node_path18.join)(configDirectory, "config.toml");
75748
75889
  await (0, import_promises2.mkdir)(configDirectory, { recursive: true, mode: 448 });
75749
75890
  let created = false;
@@ -75759,18 +75900,18 @@ async function loadSkillSourceConfig(homeDirectory) {
75759
75900
  }
75760
75901
  const content = await (0, import_promises2.readFile)(configPath, "utf8");
75761
75902
  try {
75762
- return { state: "ready", config: parseSkillSourceConfig(content, homeDirectory), created };
75903
+ return { state: "ready", config: parseSkillSourceConfig(content, homeDirectory2), created };
75763
75904
  } catch (error61) {
75764
75905
  return {
75765
75906
  state: "invalid",
75766
- config: parseSkillSourceConfig(DEFAULT_SKILL_CONFIG, homeDirectory),
75907
+ config: parseSkillSourceConfig(DEFAULT_SKILL_CONFIG, homeDirectory2),
75767
75908
  created: false,
75768
75909
  diagnostic: error61 instanceof Error ? error61.message : String(error61)
75769
75910
  };
75770
75911
  }
75771
75912
  }
75772
- async function resolveSkillScanInput(homeDirectory, declared) {
75773
- const loaded = await loadSkillSourceConfig(homeDirectory);
75913
+ async function resolveSkillScanInput(homeDirectory2, declared) {
75914
+ const loaded = await loadSkillSourceConfig(homeDirectory2);
75774
75915
  if (loaded.state === "invalid") {
75775
75916
  throw Object.assign(new Error(`Invalid Skill source configuration: ${loaded.diagnostic}`), {
75776
75917
  code: "SKILL_SOURCE_CONFIG_INVALID"
@@ -75778,7 +75919,7 @@ async function resolveSkillScanInput(homeDirectory, declared) {
75778
75919
  }
75779
75920
  const { config: config2 } = loaded;
75780
75921
  if (!config2.enabled) return { ...declared, roots: [], ignoredPaths: config2.ignoredPaths };
75781
- const draftsPath = (0, import_node_path18.resolve)((0, import_node_path18.join)(homeDirectory, ".alan", "skill-sources"));
75922
+ const draftsPath = (0, import_node_path18.resolve)((0, import_node_path18.join)(homeDirectory2, ".alan", "skill-sources"));
75782
75923
  const enabledProviders = new Set(declared.enabledProviderKinds ?? []);
75783
75924
  const configured = [];
75784
75925
  for (const source of config2.sources) {
@@ -75802,7 +75943,7 @@ async function resolveSkillScanInput(homeDirectory, declared) {
75802
75943
  ignoredPaths: [.../* @__PURE__ */ new Set([...config2.ignoredPaths, ...declared.ignoredPaths ?? []])]
75803
75944
  };
75804
75945
  }
75805
- function parseSkillSourceConfig(content, homeDirectory) {
75946
+ function parseSkillSourceConfig(content, homeDirectory2) {
75806
75947
  const parsed = parse5(content);
75807
75948
  if (!isRecord4(parsed) || parsed.version !== 1 || !isRecord4(parsed.skills)) {
75808
75949
  throw new Error("~/.alan/config.toml must contain version = 1 and a [skills] table");
@@ -75825,7 +75966,7 @@ function parseSkillSourceConfig(content, homeDirectory) {
75825
75966
  `skills.sources entry ${index + 1} must contain string path and label values`
75826
75967
  );
75827
75968
  }
75828
- const sourcePath = resolveSkillSourcePath(value2.path, homeDirectory);
75969
+ const sourcePath = resolveSkillSourcePath(value2.path, homeDirectory2);
75829
75970
  const label = value2.label.trim();
75830
75971
  if (!label) throw new Error(`skills.sources entry ${index + 1} has an empty label`);
75831
75972
  const declarationId = value2.id === void 0 ? stableSourceDeclarationId(sourcePath) : requiredSourceId(value2.id, `skills.sources[${index}].id`);
@@ -75833,7 +75974,7 @@ function parseSkillSourceConfig(content, homeDirectory) {
75833
75974
  value2.providers,
75834
75975
  `skills.sources[${index}].providers`
75835
75976
  );
75836
- const relativeDirectory = import_node_path18.default.relative(homeDirectory, sourcePath);
75977
+ const relativeDirectory = import_node_path18.default.relative(homeDirectory2, sourcePath);
75837
75978
  const inferredProviders = providerKindsForUserDirectory(relativeDirectory);
75838
75979
  const declaredProviders = value2.providers === void 0 ? inferredProviders : [...new Set(explicitProviders.map((provider) => provider.trim()).filter(Boolean))];
75839
75980
  const stale = staleCodexDeclaration(relativeDirectory, label, declaredProviders);
@@ -75863,14 +76004,14 @@ function requiredSourceId(value2, field) {
75863
76004
  }
75864
76005
  return value2;
75865
76006
  }
75866
- function resolveSkillSourcePath(sourcePath, homeDirectory, pathApi = import_node_path18.default) {
76007
+ function resolveSkillSourcePath(sourcePath, homeDirectory2, pathApi = import_node_path18.default) {
75867
76008
  const trimmed = sourcePath.trim();
75868
- if (trimmed === "~") return pathApi.resolve(homeDirectory);
76009
+ if (trimmed === "~") return pathApi.resolve(homeDirectory2);
75869
76010
  if (trimmed.startsWith("~/") || trimmed.startsWith("~\\")) {
75870
76011
  const components = trimmed.slice(2).split(/[\\/]+/).filter(Boolean);
75871
- return pathApi.resolve(pathApi.join(homeDirectory, ...components));
76012
+ return pathApi.resolve(pathApi.join(homeDirectory2, ...components));
75872
76013
  }
75873
- return pathApi.isAbsolute(trimmed) ? pathApi.resolve(trimmed) : pathApi.resolve(homeDirectory, trimmed);
76014
+ return pathApi.isAbsolute(trimmed) ? pathApi.resolve(trimmed) : pathApi.resolve(homeDirectory2, trimmed);
75874
76015
  }
75875
76016
  function optionalBoolean(value2, fallback, field) {
75876
76017
  if (value2 === void 0) return fallback;
@@ -76331,7 +76472,7 @@ function isMissingPath2(error61) {
76331
76472
  return typeof error61 === "object" && error61 !== null && "code" in error61 && error61.code === "ENOENT";
76332
76473
  }
76333
76474
 
76334
- // ../shared/dist/node/skill-bundle.js
76475
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/node/skill-bundle.js
76335
76476
  var import_node_buffer3 = require("buffer");
76336
76477
  var import_node_crypto14 = require("crypto");
76337
76478
  var import_promises4 = require("fs/promises");
@@ -78777,17 +78918,10 @@ var log = {
78777
78918
  debug: () => {
78778
78919
  }
78779
78920
  };
78780
- var HOME = (0, import_node_os12.homedir)();
78781
- var PATHS = {
78782
- claude: (0, import_node_path23.join)(HOME, ".claude.json"),
78783
- codex: (0, import_node_path23.join)(HOME, ".codex", "config.toml"),
78784
- cursor: (0, import_node_path23.join)(HOME, ".cursor", "mcp.json"),
78785
- antigravity: (0, import_node_path23.join)(HOME, ".gemini", "config", "mcp_config.json"),
78786
- kimi: (0, import_node_path23.join)(HOME, ".kimi", "mcp.json"),
78787
- opencode: (0, import_node_path23.join)(HOME, ".config", "opencode", "opencode.json"),
78788
- factory: (0, import_node_path23.join)(HOME, ".factory", "mcp.json"),
78789
- amp: (0, import_node_path23.join)(HOME, ".config", "amp", "settings.json")
78790
- };
78921
+ var homeDirectoryOverride;
78922
+ function homeDirectory() {
78923
+ return homeDirectoryOverride ?? (0, import_node_os12.homedir)();
78924
+ }
78791
78925
  var MalformedToolConfigError = class extends Error {
78792
78926
  };
78793
78927
  function parseJsonSafe2(content) {
@@ -78848,9 +78982,12 @@ function saveMalformedBackup2(path2, content) {
78848
78982
  }
78849
78983
  var claudeAdapter = {
78850
78984
  cli: "Claude Code",
78851
- configPath: PATHS.claude,
78852
- guardDir: HOME,
78853
- // ~/.claude.json lives in home — always exists
78985
+ get configPath() {
78986
+ return (0, import_node_path23.join)(homeDirectory(), ".claude.json");
78987
+ },
78988
+ get guardDir() {
78989
+ return homeDirectory();
78990
+ },
78854
78991
  merge(existing, servers) {
78855
78992
  const config2 = parseJsonSafe2(existing);
78856
78993
  const mcpServers = config2.mcpServers ?? {};
@@ -78878,8 +79015,12 @@ var claudeAdapter = {
78878
79015
  };
78879
79016
  var codexAdapter = {
78880
79017
  cli: "Codex",
78881
- configPath: PATHS.codex,
78882
- guardDir: (0, import_node_path23.join)(HOME, ".codex"),
79018
+ get configPath() {
79019
+ return (0, import_node_path23.join)(homeDirectory(), ".codex", "config.toml");
79020
+ },
79021
+ get guardDir() {
79022
+ return (0, import_node_path23.join)(homeDirectory(), ".codex");
79023
+ },
78883
79024
  merge(existing, servers) {
78884
79025
  let config2 = {};
78885
79026
  if (existing) {
@@ -78920,8 +79061,12 @@ var codexAdapter = {
78920
79061
  };
78921
79062
  var cursorAdapter = {
78922
79063
  cli: "Cursor",
78923
- configPath: PATHS.cursor,
78924
- guardDir: (0, import_node_path23.join)(HOME, ".cursor"),
79064
+ get configPath() {
79065
+ return (0, import_node_path23.join)(homeDirectory(), ".cursor", "mcp.json");
79066
+ },
79067
+ get guardDir() {
79068
+ return (0, import_node_path23.join)(homeDirectory(), ".cursor");
79069
+ },
78925
79070
  merge(existing, servers) {
78926
79071
  const config2 = parseJsonSafe2(existing);
78927
79072
  const mcpServers = config2.mcpServers ?? {};
@@ -78950,8 +79095,12 @@ var cursorAdapter = {
78950
79095
  function createAntigravityAdapter() {
78951
79096
  return {
78952
79097
  cli: "Antigravity CLI",
78953
- configPath: PATHS.antigravity,
78954
- guardDir: (0, import_node_path23.join)(HOME, ".gemini", "config"),
79098
+ get configPath() {
79099
+ return (0, import_node_path23.join)(homeDirectory(), ".gemini", "config", "mcp_config.json");
79100
+ },
79101
+ get guardDir() {
79102
+ return (0, import_node_path23.join)(homeDirectory(), ".gemini", "config");
79103
+ },
78955
79104
  merge(existing, servers) {
78956
79105
  const config2 = parseJsonSafe2(existing);
78957
79106
  const mcpServers = config2.mcpServers ?? {};
@@ -78981,8 +79130,12 @@ function createAntigravityAdapter() {
78981
79130
  var antigravityAdapter = createAntigravityAdapter();
78982
79131
  var kimiAdapter = {
78983
79132
  cli: "Kimi CLI",
78984
- configPath: PATHS.kimi,
78985
- guardDir: (0, import_node_path23.join)(HOME, ".kimi"),
79133
+ get configPath() {
79134
+ return (0, import_node_path23.join)(homeDirectory(), ".kimi", "mcp.json");
79135
+ },
79136
+ get guardDir() {
79137
+ return (0, import_node_path23.join)(homeDirectory(), ".kimi");
79138
+ },
78986
79139
  merge(existing, servers) {
78987
79140
  const config2 = parseJsonSafe2(existing);
78988
79141
  const mcpServers = config2.mcpServers ?? {};
@@ -79010,8 +79163,12 @@ var kimiAdapter = {
79010
79163
  };
79011
79164
  var opencodeAdapter = {
79012
79165
  cli: "OpenCode",
79013
- configPath: PATHS.opencode,
79014
- guardDir: (0, import_node_path23.join)(HOME, ".config", "opencode"),
79166
+ get configPath() {
79167
+ return (0, import_node_path23.join)(homeDirectory(), ".config", "opencode", "opencode.json");
79168
+ },
79169
+ get guardDir() {
79170
+ return (0, import_node_path23.join)(homeDirectory(), ".config", "opencode");
79171
+ },
79015
79172
  merge(existing, servers) {
79016
79173
  const config2 = parseJsonSafe2(existing);
79017
79174
  const mcp = config2.mcp ?? {};
@@ -79039,8 +79196,12 @@ var opencodeAdapter = {
79039
79196
  };
79040
79197
  var factoryAdapter = {
79041
79198
  cli: "Factory Droid",
79042
- configPath: PATHS.factory,
79043
- guardDir: (0, import_node_path23.join)(HOME, ".factory"),
79199
+ get configPath() {
79200
+ return (0, import_node_path23.join)(homeDirectory(), ".factory", "mcp.json");
79201
+ },
79202
+ get guardDir() {
79203
+ return (0, import_node_path23.join)(homeDirectory(), ".factory");
79204
+ },
79044
79205
  merge(existing, servers) {
79045
79206
  const config2 = parseJsonSafe2(existing);
79046
79207
  const mcpServers = config2.mcpServers ?? {};
@@ -79075,8 +79236,12 @@ var factoryAdapter = {
79075
79236
  };
79076
79237
  var ampAdapter = {
79077
79238
  cli: "Amp",
79078
- configPath: PATHS.amp,
79079
- guardDir: (0, import_node_path23.join)(HOME, ".config", "amp"),
79239
+ get configPath() {
79240
+ return (0, import_node_path23.join)(homeDirectory(), ".config", "amp", "settings.json");
79241
+ },
79242
+ get guardDir() {
79243
+ return (0, import_node_path23.join)(homeDirectory(), ".config", "amp");
79244
+ },
79080
79245
  merge(existing, servers) {
79081
79246
  const config2 = parseJsonSafe2(existing);
79082
79247
  const mcpServers = config2["amp.mcpServers"] ?? {};
@@ -79182,6 +79347,77 @@ function normalizeAlanRuntimeEntry(actual, expected) {
79182
79347
  function matchesAlanManagedEntry(actual, expected) {
79183
79348
  return entriesMatch(actual, expected) || entriesMatch(normalizeAlanRuntimeEntry(actual, expected), expected);
79184
79349
  }
79350
+ var LOCAL_ALAN_MCP_HOSTS = /* @__PURE__ */ new Set(["localhost", "127.0.0.1", "0.0.0.0"]);
79351
+ var LEGACY_LOCAL_ALAN_MCP_PORTS = /* @__PURE__ */ new Set(["8400"]);
79352
+ var ALAN_MCP_HOST_SUFFIXES = [".tryalan.ai"];
79353
+ function normalizeMcpPathname(pathname) {
79354
+ const trimmed = pathname.replace(/\/+$/, "");
79355
+ return trimmed.length > 0 ? trimmed : "/";
79356
+ }
79357
+ function urlsShareAlanMcpEndpoint(left, right) {
79358
+ try {
79359
+ const a = new URL(left);
79360
+ const b = new URL(right);
79361
+ return a.origin === b.origin && normalizeMcpPathname(a.pathname) === normalizeMcpPathname(b.pathname);
79362
+ } catch {
79363
+ return left === right;
79364
+ }
79365
+ }
79366
+ function configuredAlanMcpUrlsFromEnv() {
79367
+ const urls = [];
79368
+ for (const raw of [
79369
+ process.env.ALAN_MCP_DESKTOP_URL,
79370
+ process.env.ALAN_MCP_PUBLIC_URL,
79371
+ process.env.ALAN_LOCAL_API_URL
79372
+ ]) {
79373
+ const value2 = raw?.trim();
79374
+ if (!value2) continue;
79375
+ try {
79376
+ const parsed = new URL(value2);
79377
+ if (normalizeMcpPathname(parsed.pathname) === "/mcp") {
79378
+ urls.push(parsed.toString());
79379
+ continue;
79380
+ }
79381
+ parsed.pathname = "/mcp";
79382
+ urls.push(parsed.toString());
79383
+ } catch {
79384
+ urls.push(value2.endsWith("/mcp") ? value2 : `${value2.replace(/\/$/, "")}/mcp`);
79385
+ }
79386
+ }
79387
+ return urls;
79388
+ }
79389
+ function extractHttpUrlFromEntry(entry) {
79390
+ if (!entry || typeof entry !== "object") return void 0;
79391
+ const record2 = entry;
79392
+ for (const key of ["url", "serverUrl"]) {
79393
+ const value2 = record2[key];
79394
+ if (typeof value2 === "string" && value2.length > 0) return value2;
79395
+ }
79396
+ for (const value2 of Object.values(record2)) {
79397
+ if (!value2 || typeof value2 !== "object") continue;
79398
+ const nested = extractHttpUrlFromEntry(value2);
79399
+ if (nested) return nested;
79400
+ }
79401
+ return void 0;
79402
+ }
79403
+ function isAlanSelfRegistrationEntry(entry) {
79404
+ const url3 = extractHttpUrlFromEntry(entry);
79405
+ if (!url3) return false;
79406
+ try {
79407
+ const parsed = new URL(url3);
79408
+ if (normalizeMcpPathname(parsed.pathname) !== "/mcp") return false;
79409
+ const host = parsed.hostname.toLowerCase();
79410
+ if (LOCAL_ALAN_MCP_HOSTS.has(host) && LEGACY_LOCAL_ALAN_MCP_PORTS.has(parsed.port)) {
79411
+ return true;
79412
+ }
79413
+ if (ALAN_MCP_HOST_SUFFIXES.some((suffix) => host.endsWith(suffix))) return true;
79414
+ return configuredAlanMcpUrlsFromEnv().some(
79415
+ (configured) => urlsShareAlanMcpEndpoint(configured, url3)
79416
+ );
79417
+ } catch {
79418
+ return false;
79419
+ }
79420
+ }
79185
79421
  function hasAlanManagedSignature(entry) {
79186
79422
  if (!entry || typeof entry !== "object") return false;
79187
79423
  for (const [key, value2] of Object.entries(entry)) {
@@ -79202,6 +79438,9 @@ function expectedServerEntry(adapter, server) {
79202
79438
  function isManagedServerList(entries) {
79203
79439
  return entries.length === 0 || typeof entries[0] !== "string";
79204
79440
  }
79441
+ function isAlanOwnedMcpEntry(entry, desiredEntry, previousEntry) {
79442
+ return hasAlanManagedSignature(entry) || isAlanSelfRegistrationEntry(entry) || matchesAlanManagedEntry(entry, desiredEntry) || previousEntry !== void 0 && matchesAlanManagedEntry(entry, previousEntry);
79443
+ }
79205
79444
  function syncMcpToAllClis(servers, oldManagedServers = []) {
79206
79445
  const written = [];
79207
79446
  const failures = [];
@@ -79216,6 +79455,7 @@ function syncMcpToAllClis(servers, oldManagedServers = []) {
79216
79455
  try {
79217
79456
  const existing = readFileOr(adapter.configPath);
79218
79457
  const previousServers = isManagedServerList(oldManagedServers) ? oldManagedServers : [];
79458
+ const previousNames = isManagedServerList(oldManagedServers) ? oldManagedServers.map((server) => server.name) : oldManagedServers;
79219
79459
  const previousByName = new Map(previousServers.map((server) => [server.name, server]));
79220
79460
  if (existing) {
79221
79461
  for (const server of servers) {
@@ -79224,21 +79464,20 @@ function syncMcpToAllClis(servers, oldManagedServers = []) {
79224
79464
  const desiredEntry = expectedServerEntry(adapter, server);
79225
79465
  const previous = previousByName.get(server.name);
79226
79466
  const previousEntry = previous ? expectedServerEntry(adapter, previous) : void 0;
79227
- if (!hasAlanManagedSignature(currentEntry) && !matchesAlanManagedEntry(currentEntry, desiredEntry) && (!previousEntry || !matchesAlanManagedEntry(currentEntry, previousEntry))) {
79467
+ if (!isAlanOwnedMcpEntry(currentEntry, desiredEntry, previousEntry)) {
79228
79468
  throw new Error(`an unowned entry already uses the name ${server.name}`);
79229
79469
  }
79230
79470
  }
79231
79471
  }
79232
79472
  const currentNames = new Set(servers.map((s) => s.name));
79233
- const toRemove = previousServers.filter((server) => !currentNames.has(server.name));
79473
+ const toRemove = previousNames.filter((name) => !currentNames.has(name));
79234
79474
  let content;
79235
79475
  if (toRemove.length > 0) {
79236
- const ownedNames = existing ? toRemove.filter(
79237
- (server) => matchesAlanManagedEntry(
79238
- serverEntry(adapter, existing, server.name),
79239
- expectedServerEntry(adapter, server)
79240
- )
79241
- ).map((server) => server.name) : [];
79476
+ const ownedNames = existing ? toRemove.filter((name) => {
79477
+ const entry = serverEntry(adapter, existing, name);
79478
+ const previous = previousByName.get(name);
79479
+ return hasAlanManagedSignature(entry) || isAlanSelfRegistrationEntry(entry) || previous !== void 0 && matchesAlanManagedEntry(entry, expectedServerEntry(adapter, previous));
79480
+ }) : [];
79242
79481
  const cleaned = adapter.remove(existing, ownedNames);
79243
79482
  content = adapter.merge(cleaned, servers);
79244
79483
  } else {
@@ -79323,7 +79562,9 @@ function inspectAlanMcpPresence(expectedServers = [], candidateNames = DEFAULT_A
79323
79562
  if (entry === void 0) continue;
79324
79563
  const expected = expectedByName.get(name);
79325
79564
  const matchesExpected = expected ? matchesAlanManagedEntry(entry, expectedServerEntry(adapter, expected)) : false;
79326
- if (!hasAlanManagedSignature(entry) && !matchesExpected) continue;
79565
+ if (!hasAlanManagedSignature(entry) && !matchesExpected && !isAlanSelfRegistrationEntry(entry)) {
79566
+ continue;
79567
+ }
79327
79568
  foundOnCli = true;
79328
79569
  serverNamesFound.add(name);
79329
79570
  }
@@ -79371,7 +79612,8 @@ var McpSyncService = class {
79371
79612
  managedServerNames;
79372
79613
  legacyServerNames;
79373
79614
  getStatus() {
79374
- const presence = inspectAlanMcpPresence([], this.managedServerNames);
79615
+ const candidateNames = [.../* @__PURE__ */ new Set([...this.managedServerNames, ...this.legacyServerNames])];
79616
+ const presence = inspectAlanMcpPresence([], candidateNames);
79375
79617
  return {
79376
79618
  configured: presence.configured,
79377
79619
  lastSyncAt: null,
@@ -79425,6 +79667,10 @@ var McpSyncService = class {
79425
79667
  var import_node_fs22 = require("fs");
79426
79668
  var import_node_os13 = require("os");
79427
79669
  var import_node_path24 = require("path");
79670
+ var ALAN_HOOK_MARKER = "# alan-native-session-hook";
79671
+ var ALAN_KIMI_HOOKS_START = "# alan-native-session-hooks:start";
79672
+ var ALAN_KIMI_HOOKS_END = "# alan-native-session-hooks:end";
79673
+ var ALAN_OPENCODE_PLUGIN_MARKER = "// alan-native-session-plugin";
79428
79674
  var CLAUDE_HOOK_EVENTS = [
79429
79675
  "SessionStart",
79430
79676
  "UserPromptSubmit",
@@ -79434,15 +79680,59 @@ var CLAUDE_HOOK_EVENTS = [
79434
79680
  "SubagentStop",
79435
79681
  "SessionEnd"
79436
79682
  ];
79437
- var ALAN_HOOK_MARKER = "# alan-native-session-hook";
79683
+ var CODEX_HOOK_EVENTS = [
79684
+ "SessionStart",
79685
+ "UserPromptSubmit",
79686
+ "PostToolUse",
79687
+ "Stop",
79688
+ "SubagentStart",
79689
+ "SubagentStop",
79690
+ "SessionEnd"
79691
+ ];
79692
+ var COPILOT_HOOK_EVENTS = [
79693
+ "SessionStart",
79694
+ "UserPromptSubmit",
79695
+ "PostToolUse",
79696
+ "Stop",
79697
+ "SubagentStop",
79698
+ "SessionEnd"
79699
+ ];
79700
+ var CURSOR_HOOK_EVENTS = [
79701
+ "sessionStart",
79702
+ "beforeSubmitPrompt",
79703
+ "afterAgentResponse",
79704
+ "stop",
79705
+ "sessionEnd"
79706
+ ];
79707
+ var KIMI_HOOK_EVENTS = [
79708
+ "SessionStart",
79709
+ "UserPromptSubmit",
79710
+ "PostToolUse",
79711
+ "Stop",
79712
+ "Interrupt",
79713
+ "SubagentStart",
79714
+ "SubagentStop",
79715
+ "SessionEnd"
79716
+ ];
79717
+ var GROK_HOOK_EVENTS = [
79718
+ "SessionStart",
79719
+ "UserPromptSubmit",
79720
+ "PostToolUse",
79721
+ "Stop",
79722
+ "StopFailure",
79723
+ "StopCancelled",
79724
+ "SubagentStart",
79725
+ "SubagentStop",
79726
+ "SessionEnd"
79727
+ ];
79438
79728
  function shellQuote(value2) {
79439
79729
  return `'${value2.replaceAll("'", `'\\''`)}'`;
79440
79730
  }
79441
79731
  function powershellQuote(value2) {
79442
79732
  return `'${value2.replaceAll("'", "''")}'`;
79443
79733
  }
79444
- function nativeHookCommand(input2) {
79445
- const args = [
79734
+ function hookArgs(input2) {
79735
+ return [
79446
79736
  input2.cliEntry,
79447
79737
  "hook",
79448
79738
  "--config-path",
@@ -79453,19 +79743,21 @@ function nativeHookCommand(input2) {
79453
79743
  input2.event,
79454
79744
  ALAN_HOOK_MARKER
79455
79745
  ];
79456
- const environment = Object.entries(input2.environment ?? {});
79457
- for (const [key] of environment) {
79746
+ }
79747
+ function checkedEnvironment(environment) {
79748
+ const entries = Object.entries(environment ?? {});
79749
+ for (const [key] of entries) {
79458
79750
  if (!/^[A-Za-z_][A-Za-z0-9_]*$/.test(key)) {
79459
79751
  throw new Error(`Invalid native hook environment variable: ${key}`);
79460
79752
  }
79461
79753
  }
79754
+ return entries;
79755
+ }
79756
+ function nativeHookCommand(input2) {
79757
+ const args = hookArgs(input2);
79758
+ const environment = checkedEnvironment(input2.environment);
79462
79759
  if (environment.length === 0) {
79463
- return {
79464
- type: "command",
79465
- command: input2.nodeExecutable,
79466
- args,
79467
- timeout: 5
79468
- };
79760
+ return { type: "command", command: input2.nodeExecutable, args, timeout: 5 };
79469
79761
  }
79470
79762
  if ((input2.platform ?? (0, import_node_os13.platform)()) === "win32") {
79471
79763
  const environmentPrefix2 = environment.map(([key, value2]) => `$env:${key}=${powershellQuote(value2)}`).join("; ");
@@ -79486,7 +79778,40 @@ function nativeHookCommand(input2) {
79486
79778
  timeout: 5
79487
79779
  };
79488
79780
  }
79489
- function readSettings(path2) {
79781
+ function nativeShellCommand(runtime, provider, event, platform6 = runtime.platform) {
79782
+ const args = hookArgs({
79783
+ configPath: runtime.configPath,
79784
+ cliEntry: runtime.cliEntry,
79785
+ provider,
79786
+ event
79787
+ });
79788
+ const environment = checkedEnvironment(runtime.environment);
79789
+ if (platform6 === "win32") {
79790
+ const prefix2 = environment.map(([key, value2]) => `$env:${key}=${powershellQuote(value2)}`).join("; ");
79791
+ const command2 = `& ${[runtime.nodeExecutable, ...args].map(powershellQuote).join(" ")}`;
79792
+ return prefix2 ? `${prefix2}; ${command2}` : command2;
79793
+ }
79794
+ const prefix = environment.map(([key, value2]) => `${key}=${shellQuote(value2)}`).join(" ");
79795
+ const command = [runtime.nodeExecutable, ...args].map(shellQuote).join(" ");
79796
+ return prefix ? `${prefix} ${command}` : command;
79797
+ }
79798
+ function resolveRuntime(input2 = {}) {
79799
+ const cliEntry = input2.cliEntry ?? process.argv[1];
79800
+ const configPath = input2.configPath ?? process.env.ALAN_AGENT_CONFIG_PATH;
79801
+ if (!cliEntry) throw new Error("Cannot resolve the alan-agent CLI entrypoint");
79802
+ if (!configPath?.trim()) {
79803
+ throw new Error("Cannot install native hooks without an exact Alan agent config path");
79804
+ }
79805
+ return {
79806
+ configPath,
79807
+ homeDir: input2.homeDir ?? (0, import_node_os13.homedir)(),
79808
+ nodeExecutable: input2.nodeExecutable ?? process.execPath,
79809
+ cliEntry,
79810
+ environment: input2.environment,
79811
+ platform: input2.platform ?? (0, import_node_os13.platform)()
79812
+ };
79813
+ }
79814
+ function readSettings(path2, providerLabel) {
79490
79815
  if (!(0, import_node_fs22.existsSync)(path2)) return {};
79491
79816
  try {
79492
79817
  const value2 = JSON.parse((0, import_node_fs22.readFileSync)(path2, "utf8"));
@@ -79498,78 +79823,363 @@ function readSettings(path2) {
79498
79823
  const backup = `${path2}.malformed-${Date.now()}.bak`;
79499
79824
  (0, import_node_fs22.copyFileSync)(path2, backup);
79500
79825
  throw new Error(
79501
- `Claude settings were malformed and moved to ${backup}: ${error61 instanceof Error ? error61.message : String(error61)}`
79826
+ `${providerLabel} settings were malformed and copied to ${backup}: ${error61 instanceof Error ? error61.message : String(error61)}`
79502
79827
  );
79503
79828
  }
79504
79829
  }
79505
- function withoutAlanHookGroups(value2) {
79830
+ function withoutAlanEntries(value2) {
79506
79831
  if (!Array.isArray(value2)) return [];
79507
- return value2.filter((group) => !JSON.stringify(group).includes(ALAN_HOOK_MARKER));
79832
+ return value2.filter((entry) => !JSON.stringify(entry).includes(ALAN_HOOK_MARKER));
79508
79833
  }
79509
79834
  function writeSettings(path2, settings) {
79835
+ const serialized = `${JSON.stringify(settings, null, 2)}
79836
+ `;
79837
+ if ((0, import_node_fs22.existsSync)(path2) && (0, import_node_fs22.readFileSync)(path2, "utf8") === serialized) return false;
79510
79838
  (0, import_node_fs22.mkdirSync)((0, import_node_path24.dirname)(path2), { recursive: true, mode: 448 });
79511
79839
  const temporary = `${path2}.${process.pid}.tmp`;
79512
- (0, import_node_fs22.writeFileSync)(temporary, `${JSON.stringify(settings, null, 2)}
79513
- `, { mode: 384 });
79840
+ (0, import_node_fs22.writeFileSync)(temporary, serialized, { mode: 384 });
79514
79841
  (0, import_node_fs22.renameSync)(temporary, path2);
79842
+ return true;
79515
79843
  }
79516
- function reconcileClaudeNativeHooks(input2) {
79517
- const homeDir = input2?.homeDir ?? (0, import_node_os13.homedir)();
79518
- const settingsPath = (0, import_node_path24.join)(homeDir, ".claude", "settings.json");
79519
- const nodeExecutable = input2?.nodeExecutable ?? process.execPath;
79520
- const cliEntry = input2?.cliEntry ?? process.argv[1];
79521
- const configPath = input2?.configPath ?? process.env.ALAN_AGENT_CONFIG_PATH;
79522
- if (!cliEntry) throw new Error("Cannot resolve the alan-agent CLI entrypoint");
79523
- if (!configPath?.trim()) {
79524
- throw new Error("Cannot install Claude hooks without an exact Alan agent config path");
79844
+ function writeTextFile(path2, content) {
79845
+ if ((0, import_node_fs22.existsSync)(path2) && (0, import_node_fs22.readFileSync)(path2, "utf8") === content) return false;
79846
+ (0, import_node_fs22.mkdirSync)((0, import_node_path24.dirname)(path2), { recursive: true, mode: 448 });
79847
+ const temporary = `${path2}.${process.pid}.tmp`;
79848
+ (0, import_node_fs22.writeFileSync)(temporary, content, { mode: 384 });
79849
+ (0, import_node_fs22.renameSync)(temporary, path2);
79850
+ return true;
79851
+ }
79852
+ function withoutMarkedSection(content, start, end) {
79853
+ const startIndex = content.indexOf(start);
79854
+ const endIndex = content.indexOf(end);
79855
+ if (startIndex < 0 && endIndex < 0) return content;
79856
+ if (startIndex < 0 || endIndex < startIndex) {
79857
+ throw new Error(`Malformed Alan-owned configuration section: ${start}`);
79858
+ }
79859
+ const afterEnd = endIndex + end.length;
79860
+ return `${content.slice(0, startIndex).trimEnd()}
79861
+ ${content.slice(afterEnd).trimStart()}`.trim();
79862
+ }
79863
+ function reconcileNestedCommandHooks(input2) {
79864
+ const settings = readSettings(input2.path, input2.providerLabel);
79865
+ const currentHooks = settings.hooks && typeof settings.hooks === "object" && !Array.isArray(settings.hooks) ? settings.hooks : {};
79866
+ const hooks = { ...currentHooks };
79867
+ for (const event of input2.events) {
79868
+ hooks[event] = [...withoutAlanEntries(currentHooks[event]), { hooks: [input2.command(event)] }];
79869
+ }
79870
+ return writeSettings(input2.path, { ...settings, hooks });
79871
+ }
79872
+ function removeNestedCommandHooks(path2, providerLabel) {
79873
+ if (!(0, import_node_fs22.existsSync)(path2)) return false;
79874
+ const settings = readSettings(path2, providerLabel);
79875
+ if (!settings.hooks || typeof settings.hooks !== "object" || Array.isArray(settings.hooks)) {
79876
+ return false;
79877
+ }
79878
+ const hooks = {};
79879
+ let removed = false;
79880
+ for (const [event, groups] of Object.entries(settings.hooks)) {
79881
+ const retained = withoutAlanEntries(groups);
79882
+ if (Array.isArray(groups) && retained.length !== groups.length) removed = true;
79883
+ if (retained.length > 0) hooks[event] = retained;
79884
+ }
79885
+ return removed ? writeSettings(path2, { ...settings, hooks }) : false;
79886
+ }
79887
+ function reconcileClaudeNativeHooks(input2 = {}) {
79888
+ const runtime = resolveRuntime(input2);
79889
+ return reconcileNestedCommandHooks({
79890
+ path: (0, import_node_path24.join)(runtime.homeDir, ".claude", "settings.json"),
79891
+ providerLabel: "Claude",
79892
+ events: CLAUDE_HOOK_EVENTS,
79893
+ command: (event) => ({
79894
+ ...nativeHookCommand({
79895
+ ...runtime,
79896
+ provider: "claude_cli",
79897
+ event
79898
+ })
79899
+ })
79900
+ });
79901
+ }
79902
+ function removeClaudeNativeHooks(homeDir = (0, import_node_os13.homedir)()) {
79903
+ return removeNestedCommandHooks((0, import_node_path24.join)(homeDir, ".claude", "settings.json"), "Claude");
79904
+ }
79905
+ function reconcileCodexNativeHooks(input2 = {}) {
79906
+ const runtime = resolveRuntime(input2);
79907
+ return reconcileNestedCommandHooks({
79908
+ path: (0, import_node_path24.join)(runtime.homeDir, ".codex", "hooks.json"),
79909
+ providerLabel: "Codex",
79910
+ events: CODEX_HOOK_EVENTS,
79911
+ command: (event) => ({
79912
+ type: "command",
79913
+ command: nativeShellCommand(runtime, "codex_app_server", event, "darwin"),
79914
+ commandWindows: nativeShellCommand(runtime, "codex_app_server", event, "win32"),
79915
+ timeout: event === "SessionEnd" ? 3 : 5
79916
+ })
79917
+ });
79918
+ }
79919
+ function removeCodexNativeHooks(homeDir = (0, import_node_os13.homedir)()) {
79920
+ return removeNestedCommandHooks((0, import_node_path24.join)(homeDir, ".codex", "hooks.json"), "Codex");
79921
+ }
79922
+ function reconcileCopilotNativeHooks(input2 = {}) {
79923
+ const runtime = resolveRuntime(input2);
79924
+ const path2 = (0, import_node_path24.join)(runtime.homeDir, ".copilot", "hooks", "alan-native-session.json");
79925
+ if ((0, import_node_fs22.existsSync)(path2) && !(0, import_node_fs22.readFileSync)(path2, "utf8").includes(ALAN_HOOK_MARKER)) {
79926
+ throw new Error(`Refusing to overwrite non-Alan Copilot hook configuration at ${path2}`);
79525
79927
  }
79526
- const settings = readSettings(settingsPath);
79928
+ const hooks = Object.fromEntries(
79929
+ COPILOT_HOOK_EVENTS.map((event) => [
79930
+ event,
79931
+ [
79932
+ {
79933
+ type: "command",
79934
+ bash: nativeShellCommand(runtime, "copilot_cli", event, "darwin"),
79935
+ powershell: nativeShellCommand(runtime, "copilot_cli", event, "win32"),
79936
+ timeoutSec: event === "SessionEnd" ? 3 : 5
79937
+ }
79938
+ ]
79939
+ ])
79940
+ );
79941
+ return writeSettings(path2, { version: 1, hooks });
79942
+ }
79943
+ function removeCopilotNativeHooks(homeDir = (0, import_node_os13.homedir)()) {
79944
+ const path2 = (0, import_node_path24.join)(homeDir, ".copilot", "hooks", "alan-native-session.json");
79945
+ if (!(0, import_node_fs22.existsSync)(path2)) return false;
79946
+ if (!(0, import_node_fs22.readFileSync)(path2, "utf8").includes(ALAN_HOOK_MARKER)) return false;
79947
+ (0, import_node_fs22.rmSync)(path2);
79948
+ return true;
79949
+ }
79950
+ function reconcileCursorNativeHooks(input2 = {}) {
79951
+ const runtime = resolveRuntime(input2);
79952
+ const path2 = (0, import_node_path24.join)(runtime.homeDir, ".cursor", "hooks.json");
79953
+ const settings = readSettings(path2, "Cursor");
79527
79954
  const currentHooks = settings.hooks && typeof settings.hooks === "object" && !Array.isArray(settings.hooks) ? settings.hooks : {};
79528
79955
  const hooks = { ...currentHooks };
79529
- for (const event of CLAUDE_HOOK_EVENTS) {
79956
+ for (const event of CURSOR_HOOK_EVENTS) {
79530
79957
  hooks[event] = [
79531
- ...withoutAlanHookGroups(currentHooks[event]),
79958
+ ...withoutAlanEntries(currentHooks[event]),
79532
79959
  {
79533
- hooks: [
79534
- nativeHookCommand({
79535
- configPath,
79536
- nodeExecutable,
79537
- cliEntry,
79538
- environment: input2?.environment,
79539
- platform: input2?.platform,
79540
- provider: "claude_cli",
79541
- event
79542
- })
79543
- ]
79960
+ type: "command",
79961
+ command: nativeShellCommand(runtime, "cursor_agent_cli", event),
79962
+ timeout: 5
79544
79963
  }
79545
79964
  ];
79546
79965
  }
79547
- const next = { ...settings, hooks };
79548
- const previous = (0, import_node_fs22.existsSync)(settingsPath) ? (0, import_node_fs22.readFileSync)(settingsPath, "utf8") : null;
79549
- const serialized = `${JSON.stringify(next, null, 2)}
79550
- `;
79551
- if (previous === serialized) return false;
79552
- writeSettings(settingsPath, next);
79553
- return true;
79966
+ return writeSettings(path2, { ...settings, version: settings.version ?? 1, hooks });
79554
79967
  }
79555
- function removeClaudeNativeHooks(homeDir = (0, import_node_os13.homedir)()) {
79556
- const settingsPath = (0, import_node_path24.join)(homeDir, ".claude", "settings.json");
79557
- if (!(0, import_node_fs22.existsSync)(settingsPath)) return false;
79558
- const settings = readSettings(settingsPath);
79968
+ function removeCursorNativeHooks(homeDir = (0, import_node_os13.homedir)()) {
79969
+ const path2 = (0, import_node_path24.join)(homeDir, ".cursor", "hooks.json");
79970
+ if (!(0, import_node_fs22.existsSync)(path2)) return false;
79971
+ const settings = readSettings(path2, "Cursor");
79559
79972
  if (!settings.hooks || typeof settings.hooks !== "object" || Array.isArray(settings.hooks)) {
79560
79973
  return false;
79561
79974
  }
79562
79975
  const hooks = {};
79563
79976
  let removed = false;
79564
- for (const [event, groups] of Object.entries(settings.hooks)) {
79565
- const retained = withoutAlanHookGroups(groups);
79566
- if (Array.isArray(groups) && retained.length !== groups.length) removed = true;
79977
+ for (const [event, entries] of Object.entries(settings.hooks)) {
79978
+ const retained = withoutAlanEntries(entries);
79979
+ if (Array.isArray(entries) && retained.length !== entries.length) removed = true;
79567
79980
  if (retained.length > 0) hooks[event] = retained;
79568
79981
  }
79569
- if (!removed) return false;
79570
- writeSettings(settingsPath, { ...settings, hooks });
79982
+ return removed ? writeSettings(path2, { ...settings, hooks }) : false;
79983
+ }
79984
+ function kimiHookSection(runtime) {
79985
+ const hooks = KIMI_HOOK_EVENTS.map(
79986
+ (event) => [
79987
+ "[[hooks]]",
79988
+ `event = ${JSON.stringify(event)}`,
79989
+ `command = ${JSON.stringify(nativeShellCommand(runtime, "kimi_cli", event))}`,
79990
+ `timeout = ${event === "SessionEnd" ? 3 : 5}`
79991
+ ].join("\n")
79992
+ ).join("\n\n");
79993
+ return `${ALAN_KIMI_HOOKS_START}
79994
+ ${hooks}
79995
+ ${ALAN_KIMI_HOOKS_END}`;
79996
+ }
79997
+ function reconcileKimiNativeHooks(input2 = {}) {
79998
+ const runtime = resolveRuntime(input2);
79999
+ const path2 = (0, import_node_path24.join)(runtime.homeDir, ".kimi-code", "config.toml");
80000
+ const current = (0, import_node_fs22.existsSync)(path2) ? (0, import_node_fs22.readFileSync)(path2, "utf8") : "";
80001
+ const userContent = withoutMarkedSection(current, ALAN_KIMI_HOOKS_START, ALAN_KIMI_HOOKS_END);
80002
+ const content = `${userContent.trimEnd()}${userContent.trim() ? "\n\n" : ""}${kimiHookSection(runtime)}
80003
+ `;
80004
+ return writeTextFile(path2, content);
80005
+ }
80006
+ function removeKimiNativeHooks(homeDir = (0, import_node_os13.homedir)()) {
80007
+ const path2 = (0, import_node_path24.join)(homeDir, ".kimi-code", "config.toml");
80008
+ if (!(0, import_node_fs22.existsSync)(path2)) return false;
80009
+ const current = (0, import_node_fs22.readFileSync)(path2, "utf8");
80010
+ const content = withoutMarkedSection(current, ALAN_KIMI_HOOKS_START, ALAN_KIMI_HOOKS_END);
80011
+ if (content === current) return false;
80012
+ return writeTextFile(path2, content ? `${content.trimEnd()}
80013
+ ` : "");
80014
+ }
80015
+ function reconcileGrokNativeHooks(input2 = {}) {
80016
+ const runtime = resolveRuntime(input2);
80017
+ const path2 = (0, import_node_path24.join)(runtime.homeDir, ".grok", "hooks", "alan-native-session.json");
80018
+ if ((0, import_node_fs22.existsSync)(path2) && !(0, import_node_fs22.readFileSync)(path2, "utf8").includes(ALAN_HOOK_MARKER)) {
80019
+ throw new Error(`Refusing to overwrite non-Alan Grok hook configuration at ${path2}`);
80020
+ }
80021
+ return reconcileNestedCommandHooks({
80022
+ path: path2,
80023
+ providerLabel: "Grok",
80024
+ events: GROK_HOOK_EVENTS,
80025
+ command: (event) => ({
80026
+ type: "command",
80027
+ command: nativeShellCommand(runtime, "grok_cli", event),
80028
+ timeout: event === "SessionEnd" ? 3 : 5
80029
+ })
80030
+ });
80031
+ }
80032
+ function removeGrokNativeHooks(homeDir = (0, import_node_os13.homedir)()) {
80033
+ const path2 = (0, import_node_path24.join)(homeDir, ".grok", "hooks", "alan-native-session.json");
80034
+ if (!(0, import_node_fs22.existsSync)(path2)) return false;
80035
+ if (!(0, import_node_fs22.readFileSync)(path2, "utf8").includes(ALAN_HOOK_MARKER)) return false;
80036
+ (0, import_node_fs22.rmSync)(path2);
79571
80037
  return true;
79572
80038
  }
80039
+ function opencodePluginSource(runtime) {
80040
+ const command = [
80041
+ runtime.nodeExecutable,
80042
+ runtime.cliEntry,
80043
+ "hook",
80044
+ "--config-path",
80045
+ runtime.configPath,
80046
+ "--provider",
80047
+ "opencode_cli"
80048
+ ];
80049
+ const environment = runtime.environment ?? {};
80050
+ return `${ALAN_OPENCODE_PLUGIN_MARKER}
80051
+ const command = ${JSON.stringify(command)}
80052
+ const environment = ${JSON.stringify(environment)}
80053
+
80054
+ export const AlanNativeSessionPlugin = async ({ directory }) => {
80055
+ const textByPart = new Map()
80056
+ const userPartIdsBySession = new Map()
80057
+ const send = async (event, payload) => {
80058
+ const proc = Bun.spawn({
80059
+ cmd: [...command, "--event", event, ${JSON.stringify(ALAN_HOOK_MARKER)}],
80060
+ env: { ...process.env, ...environment },
80061
+ stdin: "pipe",
80062
+ stdout: "ignore",
80063
+ stderr: "ignore",
80064
+ })
80065
+ proc.stdin.write(JSON.stringify({ ...payload, cwd: payload.cwd ?? directory }))
80066
+ proc.stdin.end()
80067
+ await proc.exited
80068
+ }
80069
+
80070
+ return {
80071
+ "chat.message": async (input, output) => {
80072
+ userPartIdsBySession.set(
80073
+ input.sessionID,
80074
+ new Set(output.parts.map((part) => part.id).filter(Boolean)),
80075
+ )
80076
+ const prompt = output.parts
80077
+ .filter((part) => part.type === "text")
80078
+ .map((part) => part.text)
80079
+ .join("\\n")
80080
+ await send("user_prompt", { session_id: input.sessionID, prompt })
80081
+ },
80082
+ event: async ({ event }) => {
80083
+ if (event.type === "session.created") {
80084
+ await send("session_start", { session_id: event.properties.info.id })
80085
+ return
80086
+ }
80087
+ if (event.type === "session.idle") {
80088
+ await send("stop", { session_id: event.properties.sessionID })
80089
+ return
80090
+ }
80091
+ if (event.type === "session.deleted") {
80092
+ userPartIdsBySession.delete(event.properties.info.id)
80093
+ await send("session_end", { session_id: event.properties.info.id })
80094
+ return
80095
+ }
80096
+ if (event.type === "session.error" && event.properties.sessionID) {
80097
+ await send("stop", {
80098
+ session_id: event.properties.sessionID,
80099
+ error: event.properties.error,
80100
+ })
80101
+ return
80102
+ }
80103
+ if (event.type !== "message.part.updated") return
80104
+ const part = event.properties.part
80105
+ if (part.type !== "text" && part.type !== "reasoning") return
80106
+ if (userPartIdsBySession.get(part.sessionID)?.has(part.id)) return
80107
+ const previous = textByPart.get(part.id) ?? ""
80108
+ const complete = typeof part.text === "string" ? part.text : ""
80109
+ const text = event.properties.delta ?? (complete.startsWith(previous) ? complete.slice(previous.length) : complete)
80110
+ textByPart.set(part.id, complete)
80111
+ if (!text) return
80112
+ await send("transcript_update", {
80113
+ session_id: part.sessionID,
80114
+ source_cursor: part.id + ":" + complete.length,
80115
+ ...(part.type === "reasoning" ? { thinking: text } : { transcript_delta: text }),
80116
+ })
80117
+ },
80118
+ }
80119
+ }
80120
+ `;
80121
+ }
80122
+ function reconcileOpencodeNativePlugin(input2 = {}) {
80123
+ const runtime = resolveRuntime(input2);
80124
+ const path2 = (0, import_node_path24.join)(runtime.homeDir, ".config", "opencode", "plugins", "alan-native-session.js");
80125
+ if ((0, import_node_fs22.existsSync)(path2) && !(0, import_node_fs22.readFileSync)(path2, "utf8").includes(ALAN_OPENCODE_PLUGIN_MARKER)) {
80126
+ throw new Error(`Refusing to overwrite non-Alan OpenCode plugin at ${path2}`);
80127
+ }
80128
+ const source = opencodePluginSource(runtime);
80129
+ if ((0, import_node_fs22.existsSync)(path2) && (0, import_node_fs22.readFileSync)(path2, "utf8") === source) return false;
80130
+ (0, import_node_fs22.mkdirSync)((0, import_node_path24.dirname)(path2), { recursive: true, mode: 448 });
80131
+ const temporary = `${path2}.${process.pid}.tmp`;
80132
+ (0, import_node_fs22.writeFileSync)(temporary, source, { mode: 384 });
80133
+ (0, import_node_fs22.renameSync)(temporary, path2);
80134
+ return true;
80135
+ }
80136
+ function removeOpencodeNativePlugin(homeDir = (0, import_node_os13.homedir)()) {
80137
+ const path2 = (0, import_node_path24.join)(homeDir, ".config", "opencode", "plugins", "alan-native-session.js");
80138
+ if (!(0, import_node_fs22.existsSync)(path2)) return false;
80139
+ if (!(0, import_node_fs22.readFileSync)(path2, "utf8").includes(ALAN_OPENCODE_PLUGIN_MARKER)) return false;
80140
+ (0, import_node_fs22.rmSync)(path2);
80141
+ return true;
80142
+ }
80143
+ function configFileContainsMarker(path2, marker) {
80144
+ if (!(0, import_node_fs22.existsSync)(path2)) return false;
80145
+ try {
80146
+ return (0, import_node_fs22.readFileSync)(path2, "utf8").includes(marker);
80147
+ } catch {
80148
+ return false;
80149
+ }
80150
+ }
80151
+ function inspectNativeHooksConfigured(providerKind, homeDir = (0, import_node_os13.homedir)()) {
80152
+ switch (providerKind) {
80153
+ case "claude_cli":
80154
+ return configFileContainsMarker((0, import_node_path24.join)(homeDir, ".claude", "settings.json"), ALAN_HOOK_MARKER);
80155
+ case "codex_app_server":
80156
+ return configFileContainsMarker((0, import_node_path24.join)(homeDir, ".codex", "hooks.json"), ALAN_HOOK_MARKER);
80157
+ case "copilot_cli":
80158
+ return configFileContainsMarker(
80159
+ (0, import_node_path24.join)(homeDir, ".copilot", "hooks", "alan-native-session.json"),
80160
+ ALAN_HOOK_MARKER
80161
+ );
80162
+ case "cursor_agent_cli":
80163
+ return configFileContainsMarker((0, import_node_path24.join)(homeDir, ".cursor", "hooks.json"), ALAN_HOOK_MARKER);
80164
+ case "kimi_cli":
80165
+ return configFileContainsMarker(
80166
+ (0, import_node_path24.join)(homeDir, ".kimi-code", "config.toml"),
80167
+ ALAN_KIMI_HOOKS_START
80168
+ );
80169
+ case "grok_cli":
80170
+ return configFileContainsMarker(
80171
+ (0, import_node_path24.join)(homeDir, ".grok", "hooks", "alan-native-session.json"),
80172
+ ALAN_HOOK_MARKER
80173
+ );
80174
+ case "opencode_cli":
80175
+ return configFileContainsMarker(
80176
+ (0, import_node_path24.join)(homeDir, ".config", "opencode", "plugins", "alan-native-session.js"),
80177
+ ALAN_OPENCODE_PLUGIN_MARKER
80178
+ );
80179
+ default:
80180
+ return false;
80181
+ }
80182
+ }
79573
80183
 
79574
80184
  // src/integration-cli.ts
79575
80185
  function alanMcpServers(apiUrl) {
@@ -79580,12 +80190,41 @@ function alanMcpServers(apiUrl) {
79580
80190
  }
79581
80191
  };
79582
80192
  }
80193
+ function reconcileInstalledNativeHooks(options) {
80194
+ const environment = getDaemonCliEnvironment();
80195
+ const nativeRuntime = {
80196
+ configPath: options.configPath ?? getConfigPath(),
80197
+ nodeExecutable: options.nativeHookRuntime?.executable,
80198
+ cliEntry: options.nativeHookRuntime?.cliEntry,
80199
+ environment: options.nativeHookRuntime?.environment
80200
+ };
80201
+ return [
80202
+ resolveCliExecutable("claude", environment) ? reconcileClaudeNativeHooks(nativeRuntime) : false,
80203
+ resolveCliExecutable("codex", environment) ? reconcileCodexNativeHooks(nativeRuntime) : false,
80204
+ resolveCliExecutable("copilot", environment) ? reconcileCopilotNativeHooks(nativeRuntime) : false,
80205
+ resolveCliExecutable("cursor-agent", environment) ? reconcileCursorNativeHooks(nativeRuntime) : false,
80206
+ resolveCliExecutable("kimi-cli", environment) ? reconcileKimiNativeHooks(nativeRuntime) : false,
80207
+ resolveCliExecutable("grok", environment) ? reconcileGrokNativeHooks(nativeRuntime) : false,
80208
+ resolveCliExecutable("opencode", environment) ? reconcileOpencodeNativePlugin(nativeRuntime) : false
80209
+ ].some(Boolean);
80210
+ }
80211
+ function removeNativeHooksOnly() {
80212
+ removeClaudeNativeHooks();
80213
+ removeCodexNativeHooks();
80214
+ removeCopilotNativeHooks();
80215
+ removeCursorNativeHooks();
80216
+ removeKimiNativeHooks();
80217
+ removeGrokNativeHooks();
80218
+ removeOpencodeNativePlugin();
80219
+ }
79583
80220
  function runMcpIntegrationCommand(args, options = {}) {
79584
80221
  bindConfigPath(args);
79585
80222
  const action = args[0] ?? "status";
79586
80223
  const config2 = readConfig();
79587
80224
  const endpoints = resolveEndpoints(args.slice(1), config2);
79588
80225
  const service = new McpSyncService({ enabled: true });
80226
+ const reconcileMcp = options.reconcileMcp ?? true;
80227
+ const reconcileHooks = options.reconcileHooks ?? true;
79589
80228
  if (action === "status") {
79590
80229
  process.stdout.write(`${JSON.stringify(service.getStatus(), null, 2)}
79591
80230
  `);
@@ -79597,23 +80236,26 @@ function runMcpIntegrationCommand(args, options = {}) {
79597
80236
  "Alan is not configured. Run `alan-agent login` or `alan-agent setup` first."
79598
80237
  );
79599
80238
  }
79600
- const result = service.syncServers(alanMcpServers(endpoints.apiUrl), endpoints.apiUrl);
79601
- if (result.errors.length > 0) throw new Error(result.errors.join("; "));
79602
- const hooksUpdated = resolveCliExecutable("claude", getDaemonCliEnvironment()) ? reconcileClaudeNativeHooks({
79603
- configPath: getConfigPath(),
79604
- nodeExecutable: options.nativeHookRuntime?.executable,
79605
- cliEntry: options.nativeHookRuntime?.cliEntry,
79606
- environment: options.nativeHookRuntime?.environment
79607
- }) : false;
80239
+ let mcpServersUpdated = false;
80240
+ if (reconcileMcp) {
80241
+ const result = service.syncServers(alanMcpServers(endpoints.apiUrl), endpoints.apiUrl);
80242
+ if (result.errors.length > 0) throw new Error(result.errors.join("; "));
80243
+ mcpServersUpdated = result.mcpServersUpdated;
80244
+ }
80245
+ const hooksUpdated = reconcileHooks ? reconcileInstalledNativeHooks(options) : false;
79608
80246
  process.stdout.write(
79609
- `${result.mcpServersUpdated || hooksUpdated ? "Alan CLI integrations updated" : "Alan CLI integrations already current"}.
80247
+ `${mcpServersUpdated || hooksUpdated ? "Alan CLI integrations updated" : "Alan CLI integrations already current"}.
79610
80248
  `
79611
80249
  );
79612
80250
  return;
79613
80251
  }
79614
80252
  if (action === "uninstall") {
79615
- service.cleanup(toManagedMcpServers(alanMcpServers(endpoints.apiUrl)));
79616
- removeClaudeNativeHooks();
80253
+ if (reconcileMcp) {
80254
+ service.cleanup(toManagedMcpServers(alanMcpServers(endpoints.apiUrl)));
80255
+ }
80256
+ if (reconcileHooks) {
80257
+ removeNativeHooksOnly();
80258
+ }
79617
80259
  process.stdout.write("Removed Alan-owned MCP configuration.\n");
79618
80260
  return;
79619
80261
  }
@@ -79695,6 +80337,7 @@ function omitUndefined(record2) {
79695
80337
  // src/native-hook-command.ts
79696
80338
  var import_node_crypto19 = require("crypto");
79697
80339
  var import_node_fs23 = require("fs");
80340
+ var import_node_os14 = require("os");
79698
80341
  var import_node_path25 = require("path");
79699
80342
 
79700
80343
  // src/native-session.ts
@@ -79727,28 +80370,64 @@ var NATIVE_SESSION_PROVIDER_CAPABILITIES = [
79727
80370
  command: "codex",
79728
80371
  capabilities: {
79729
80372
  mcp: true,
79730
- lifecycleHooks: false,
79731
- transcriptDelta: false,
79732
- subagents: false,
79733
- sessionEnd: false,
79734
- state: "degraded",
79735
- reason: "Codex exposes a turn-complete notification, not full lifecycle hooks."
80373
+ lifecycleHooks: true,
80374
+ transcriptDelta: true,
80375
+ subagents: true,
80376
+ sessionEnd: true,
80377
+ state: "supported"
79736
80378
  },
79737
- supportedHookEvents: ["agent-turn-complete"]
80379
+ supportedHookEvents: [
80380
+ "SessionStart",
80381
+ "UserPromptSubmit",
80382
+ "PostToolUse",
80383
+ "Stop",
80384
+ "SubagentStart",
80385
+ "SubagentStop",
80386
+ "SessionEnd"
80387
+ ]
79738
80388
  },
79739
80389
  {
79740
80390
  providerKind: "copilot_cli",
79741
80391
  provider: "copilot",
79742
80392
  command: "copilot",
79743
- capabilities: unsupportedMcpOnlyCapability(),
79744
- supportedHookEvents: []
80393
+ capabilities: {
80394
+ mcp: true,
80395
+ lifecycleHooks: true,
80396
+ transcriptDelta: true,
80397
+ subagents: false,
80398
+ sessionEnd: true,
80399
+ state: "supported",
80400
+ reason: "Copilot exposes stable subagent identity only on SubagentStop, so paired subagent lifecycle is not projected."
80401
+ },
80402
+ supportedHookEvents: [
80403
+ "SessionStart",
80404
+ "UserPromptSubmit",
80405
+ "PostToolUse",
80406
+ "Stop",
80407
+ "SubagentStop",
80408
+ "SessionEnd"
80409
+ ]
79745
80410
  },
79746
80411
  {
79747
80412
  providerKind: "cursor_agent_cli",
79748
80413
  provider: "cursor",
79749
80414
  command: "cursor-agent",
79750
- capabilities: unsupportedMcpOnlyCapability(),
79751
- supportedHookEvents: []
80415
+ capabilities: {
80416
+ mcp: true,
80417
+ lifecycleHooks: true,
80418
+ transcriptDelta: true,
80419
+ subagents: false,
80420
+ sessionEnd: true,
80421
+ state: "supported",
80422
+ reason: "Cursor's subagent stop hook does not expose the stable subagent id from subagent start."
80423
+ },
80424
+ supportedHookEvents: [
80425
+ "sessionStart",
80426
+ "beforeSubmitPrompt",
80427
+ "afterAgentResponse",
80428
+ "stop",
80429
+ "sessionEnd"
80430
+ ]
79752
80431
  },
79753
80432
  {
79754
80433
  providerKind: "antigravity_cli",
@@ -79761,22 +80440,70 @@ var NATIVE_SESSION_PROVIDER_CAPABILITIES = [
79761
80440
  providerKind: "kimi_cli",
79762
80441
  provider: "kimi",
79763
80442
  command: "kimi-cli",
79764
- capabilities: unsupportedMcpOnlyCapability(),
79765
- supportedHookEvents: []
80443
+ capabilities: {
80444
+ mcp: true,
80445
+ lifecycleHooks: true,
80446
+ transcriptDelta: true,
80447
+ subagents: false,
80448
+ sessionEnd: true,
80449
+ state: "supported",
80450
+ reason: "Kimi hooks identify subagents by name but do not expose a stable child session id."
80451
+ },
80452
+ supportedHookEvents: [
80453
+ "SessionStart",
80454
+ "UserPromptSubmit",
80455
+ "PostToolUse",
80456
+ "Stop",
80457
+ "Interrupt",
80458
+ "SubagentStart",
80459
+ "SubagentStop",
80460
+ "SessionEnd"
80461
+ ]
79766
80462
  },
79767
80463
  {
79768
80464
  providerKind: "grok_cli",
79769
80465
  provider: "grok",
79770
80466
  command: "grok",
79771
- capabilities: unsupportedMcpOnlyCapability(),
79772
- supportedHookEvents: []
80467
+ capabilities: {
80468
+ mcp: true,
80469
+ lifecycleHooks: true,
80470
+ transcriptDelta: false,
80471
+ subagents: false,
80472
+ sessionEnd: true,
80473
+ state: "supported",
80474
+ reason: "Grok supplies the final assistant message on terminal hooks, but not incremental transcript deltas or stable child session ids."
80475
+ },
80476
+ supportedHookEvents: [
80477
+ "SessionStart",
80478
+ "UserPromptSubmit",
80479
+ "PostToolUse",
80480
+ "Stop",
80481
+ "StopFailure",
80482
+ "StopCancelled",
80483
+ "SubagentStart",
80484
+ "SubagentStop",
80485
+ "SessionEnd"
80486
+ ]
79773
80487
  },
79774
80488
  {
79775
80489
  providerKind: "opencode_cli",
79776
80490
  provider: "opencode",
79777
80491
  command: "opencode",
79778
- capabilities: unsupportedMcpOnlyCapability(),
79779
- supportedHookEvents: []
80492
+ capabilities: {
80493
+ mcp: true,
80494
+ lifecycleHooks: true,
80495
+ transcriptDelta: true,
80496
+ subagents: false,
80497
+ sessionEnd: true,
80498
+ state: "supported",
80499
+ reason: "OpenCode exposes root session and message events; subagent lifecycle is not distinct."
80500
+ },
80501
+ supportedHookEvents: [
80502
+ "session.created",
80503
+ "message.part.updated",
80504
+ "session.idle",
80505
+ "session.deleted"
80506
+ ]
79780
80507
  },
79781
80508
  {
79782
80509
  providerKind: "droid_cli",
@@ -79826,6 +80553,17 @@ function stringField4(payload, ...names) {
79826
80553
  }
79827
80554
  return void 0;
79828
80555
  }
80556
+ function firstStringArrayField(payload, ...names) {
80557
+ for (const name of names) {
80558
+ const value2 = payload[name];
80559
+ if (!Array.isArray(value2)) continue;
80560
+ const first = value2.find(
80561
+ (entry) => typeof entry === "string" && entry.trim().length > 0
80562
+ );
80563
+ if (first) return first.trim();
80564
+ }
80565
+ return void 0;
80566
+ }
79829
80567
  function nonNegativeIntegerField(payload, ...names) {
79830
80568
  for (const name of names) {
79831
80569
  const value2 = payload[name];
@@ -79833,19 +80571,77 @@ function nonNegativeIntegerField(payload, ...names) {
79833
80571
  }
79834
80572
  return void 0;
79835
80573
  }
80574
+ function resolveCodexSessionIdFromTranscriptPath(transcriptPath) {
80575
+ const fileName = (0, import_node_path25.basename)(transcriptPath);
80576
+ const match = /^rollout-.*-([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\.jsonl$/i.exec(
80577
+ fileName
80578
+ );
80579
+ return match?.[1];
80580
+ }
80581
+ function resolveKimiTranscriptPath(externalSessionId, kimiHomeDir = process.env.KIMI_CODE_HOME?.trim() || (0, import_node_path25.join)((0, import_node_os14.homedir)(), ".kimi-code")) {
80582
+ if ((0, import_node_path25.basename)(externalSessionId) !== externalSessionId) return void 0;
80583
+ const sessionsDir = (0, import_node_path25.join)(kimiHomeDir, "sessions");
80584
+ if (!(0, import_node_fs23.existsSync)(sessionsDir)) return void 0;
80585
+ for (const workspace of (0, import_node_fs23.readdirSync)(sessionsDir, { withFileTypes: true })) {
80586
+ if (!workspace.isDirectory()) continue;
80587
+ const transcriptPath = (0, import_node_path25.join)(
80588
+ sessionsDir,
80589
+ workspace.name,
80590
+ externalSessionId,
80591
+ "agents",
80592
+ "main",
80593
+ "wire.jsonl"
80594
+ );
80595
+ if ((0, import_node_fs23.existsSync)(transcriptPath)) return transcriptPath;
80596
+ }
80597
+ return void 0;
80598
+ }
80599
+ function enrichProviderPayload(provider, payload) {
80600
+ if (provider === "codex_app_server") {
80601
+ const externalSessionId2 = stringField4(
80602
+ payload,
80603
+ "session_id",
80604
+ "sessionId",
80605
+ "thread_id",
80606
+ "threadId"
80607
+ );
80608
+ if (externalSessionId2) return payload;
80609
+ const transcriptPath2 = stringField4(payload, "transcript_path", "transcriptPath");
80610
+ if (!transcriptPath2) return payload;
80611
+ const derivedSessionId = resolveCodexSessionIdFromTranscriptPath(transcriptPath2);
80612
+ return derivedSessionId ? { ...payload, session_id: derivedSessionId } : payload;
80613
+ }
80614
+ if (provider !== "kimi_cli") return payload;
80615
+ const externalSessionId = stringField4(payload, "session_id", "sessionId");
80616
+ if (!externalSessionId || stringField4(payload, "transcript_path", "transcriptPath")) {
80617
+ return payload;
80618
+ }
80619
+ const transcriptPath = resolveKimiTranscriptPath(externalSessionId);
80620
+ return transcriptPath ? { ...payload, transcript_path: transcriptPath } : payload;
80621
+ }
79836
80622
  function parseNativeHookEnvelope(input2) {
79837
80623
  if (!isNativeSessionProviderKind(input2.provider)) {
79838
80624
  throw new Error(`unsupported native session provider: ${input2.provider}`);
79839
80625
  }
79840
- const rawHookEvent = input2.hookEvent ?? stringField4(input2.payload, "hook_event_name", "hookEvent", "type") ?? "notification";
79841
- const cwd = stringField4(input2.payload, "cwd", "working_directory", "workingDirectory");
79842
- const transcriptPath = stringField4(input2.payload, "transcript_path", "transcriptPath");
80626
+ const payload = enrichProviderPayload(input2.provider, input2.payload);
80627
+ const rawHookEvent = input2.hookEvent ?? stringField4(payload, "hook_event_name", "hookEvent", "hookEventName", "type") ?? "notification";
80628
+ const eventType = normalizeHookEvent(rawHookEvent);
80629
+ const cwd = stringField4(payload, "cwd", "working_directory", "workingDirectory") ?? firstStringArrayField(payload, "workspace_roots", "workspaceRoots");
80630
+ const transcriptPath = eventType === "subagent_start" || eventType === "subagent_end" ? stringField4(
80631
+ payload,
80632
+ "agent_transcript_path",
80633
+ "agentTranscriptPath",
80634
+ "transcript_path",
80635
+ "transcriptPath"
80636
+ ) : stringField4(payload, "transcript_path", "transcriptPath");
79843
80637
  const capability = NATIVE_SESSION_PROVIDER_CAPABILITIES.find(
79844
80638
  (candidate) => candidate.providerKind === input2.provider
79845
80639
  );
79846
80640
  if (!capability) throw new Error(`unsupported native session provider: ${input2.provider}`);
79847
- const externalSessionId = stringField4(
79848
- input2.payload,
80641
+ const parentSessionId = stringField4(
80642
+ payload,
80643
+ "parent_session_id",
80644
+ "parentSessionId",
79849
80645
  "session_id",
79850
80646
  "sessionId",
79851
80647
  "conversation_id",
@@ -79853,20 +80649,30 @@ function parseNativeHookEnvelope(input2) {
79853
80649
  "thread_id",
79854
80650
  "threadId"
79855
80651
  );
80652
+ const externalSessionId = eventType === "subagent_start" || eventType === "subagent_end" ? stringField4(
80653
+ payload,
80654
+ "agent_id",
80655
+ "agentId",
80656
+ "subagent_id",
80657
+ "subagentId",
80658
+ "task_id",
80659
+ "taskId"
80660
+ ) ?? parentSessionId : parentSessionId;
79856
80661
  if (!externalSessionId) throw new Error("hook payload is missing a provider session id");
79857
- const cursor = stringField4(input2.payload, "source_cursor", "sourceCursor") ?? nonNegativeIntegerField(input2.payload, "byte_offset", "byteOffset")?.toString() ?? nonNegativeIntegerField(input2.payload, "sequence", "seq")?.toString();
80662
+ const cursor = stringField4(payload, "source_cursor", "sourceCursor") ?? nonNegativeIntegerField(payload, "byte_offset", "byteOffset")?.toString() ?? nonNegativeIntegerField(payload, "sequence", "seq")?.toString();
80663
+ const providerPayload = capability.providerKind === "cursor_agent_cli" && eventType === "transcript_update" && !transcriptPath && typeof payload.text === "string" ? { ...payload, assistant_response: payload.text } : payload;
79858
80664
  return {
79859
80665
  schemaVersion: 1,
79860
80666
  eventId: (0, import_node_crypto19.randomUUID)(),
79861
80667
  provider: capability.provider,
79862
- eventType: normalizeHookEvent(rawHookEvent),
80668
+ eventType,
79863
80669
  observedAt: (input2.now ?? /* @__PURE__ */ new Date()).toISOString(),
79864
80670
  externalSessionId,
79865
- parentExternalSessionId: stringField4(input2.payload, "parent_session_id", "parentSessionId"),
80671
+ ...(eventType === "subagent_start" || eventType === "subagent_end") && parentSessionId ? { parentExternalSessionId: parentSessionId } : {},
79866
80672
  ...cwd ? { cwd: (0, import_node_path25.resolve)(cwd) } : {},
79867
80673
  ...transcriptPath ? { transcriptPath: (0, import_node_path25.resolve)(transcriptPath) } : {},
79868
80674
  ...cursor ? { sourceCursor: cursor } : {},
79869
- providerPayload: input2.payload
80675
+ providerPayload
79870
80676
  };
79871
80677
  }
79872
80678
  function normalizeHookEvent(raw) {
@@ -79875,6 +80681,8 @@ function normalizeHookEvent(raw) {
79875
80681
  case "session_start":
79876
80682
  return "session_start";
79877
80683
  case "userpromptsubmit":
80684
+ case "userpromptsubmitted":
80685
+ case "beforesubmitprompt":
79878
80686
  case "user_prompt":
79879
80687
  return "user_prompt";
79880
80688
  case "subagentstart":
@@ -79887,8 +80695,19 @@ function normalizeHookEvent(raw) {
79887
80695
  case "session_end":
79888
80696
  return "session_end";
79889
80697
  case "stop":
80698
+ case "agentstop":
80699
+ case "agent_stop":
79890
80700
  case "agent_turn_complete":
80701
+ case "stopfailure":
80702
+ case "stop_failure":
80703
+ case "stopcancelled":
80704
+ case "stop_cancelled":
80705
+ case "interrupt":
79891
80706
  return "stop";
80707
+ case "afteragentresponse":
80708
+ case "message.part.updated":
80709
+ case "transcript_update":
80710
+ return "transcript_update";
79892
80711
  default:
79893
80712
  return "transcript_update";
79894
80713
  }
@@ -79933,21 +80752,34 @@ function runNativeHookCommand(args) {
79933
80752
  try {
79934
80753
  const payload = readBoundedHookPayload();
79935
80754
  const enqueued = enqueueNativeHookFromConfig({ args, payload });
79936
- const hookEvent = argumentValue(args, "--event")?.toLowerCase();
79937
- if (enqueued && (hookEvent === "userpromptsubmit" || hookEvent === "user_prompt")) {
80755
+ const hookEvent = argumentValue(args, "--event");
80756
+ const normalizedEvent = normalizeHookEvent(hookEvent ?? "notification");
80757
+ if (enqueued && (normalizedEvent === "user_prompt" || normalizedEvent === "session_start")) {
79938
80758
  const providerKind = argumentValue(args, "--provider");
79939
- const externalSessionId = stringField4(payload, "session_id", "sessionId");
80759
+ const externalSessionId = stringField4(
80760
+ payload,
80761
+ "session_id",
80762
+ "sessionId",
80763
+ "conversation_id",
80764
+ "conversationId",
80765
+ "thread_id",
80766
+ "threadId"
80767
+ );
79940
80768
  const capability = providerKind ? NATIVE_SESSION_PROVIDER_CAPABILITIES.find(
79941
80769
  (candidate) => candidate.providerKind === providerKind
79942
80770
  ) : void 0;
79943
- if (capability && externalSessionId) {
80771
+ const shouldInjectLinkingContext = capability && externalSessionId && (capability.providerKind === "claude_cli" || capability.providerKind === "codex_app_server" || capability.providerKind === "kimi_cli" ? normalizedEvent === "user_prompt" : capability.providerKind === "cursor_agent_cli" && normalizedEvent === "session_start");
80772
+ if (shouldInjectLinkingContext && capability && externalSessionId) {
80773
+ const additionalContext = `First call get_native_session_link_status with provider=${capability.provider} and externalSessionId=${externalSessionId}. If status is linked, continue without asking or linking again. If status is syncing, wait briefly and retry the status check. Only when status is pending, ask the user one question: work on an Alan task or continue as a direct session. Resolve a named task with find_records, then call link_native_session. Do not guess a task and do not change task status.`;
79944
80774
  process.stdout.write(
79945
- `${JSON.stringify({
79946
- hookSpecificOutput: {
79947
- hookEventName: "UserPromptSubmit",
79948
- additionalContext: `First call get_native_session_link_status with provider=${capability.provider} and externalSessionId=${externalSessionId}. If status is linked, continue without asking or linking again. If status is syncing, wait briefly and retry the status check. Only when status is pending, ask the user one question: work on an Alan task or continue as a direct session. Resolve a named task with find_records, then call link_native_session. Do not guess a task and do not change task status.`
80775
+ `${JSON.stringify(
80776
+ capability.providerKind === "cursor_agent_cli" ? { additional_context: additionalContext } : {
80777
+ hookSpecificOutput: {
80778
+ hookEventName: "UserPromptSubmit",
80779
+ additionalContext
80780
+ }
79949
80781
  }
79950
- })}
80782
+ )}
79951
80783
  `
79952
80784
  );
79953
80785
  }
@@ -79965,10 +80797,12 @@ function collectNativeIntegrationStatus(args = []) {
79965
80797
  bindConfigPath(args);
79966
80798
  const config2 = readConfig();
79967
80799
  const env = getDaemonCliEnvironment();
80800
+ const homeDir = (0, import_node_os14.homedir)();
79968
80801
  return NATIVE_SESSION_PROVIDER_CAPABILITIES.map((capability) => ({
79969
80802
  provider: capability.providerKind,
79970
80803
  command: capability.command,
79971
80804
  installed: resolveCliExecutable(capability.command, env) !== null,
80805
+ hooksConfigured: inspectNativeHooksConfigured(capability.providerKind, homeDir),
79972
80806
  hookCoverage: capability.capabilities.lifecycleHooks ? "lifecycle" : capability.capabilities.state === "degraded" ? "notification" : "none",
79973
80807
  transcriptStreaming: capability.capabilities.transcriptDelta,
79974
80808
  inboxReady: Boolean(config2.eventSpoolKey)
@@ -79992,7 +80826,7 @@ function decodeResumeFallbackContext(encoded) {
79992
80826
  }
79993
80827
 
79994
80828
  // src/sandbox.ts
79995
- var import_node_os14 = require("os");
80829
+ var import_node_os15 = require("os");
79996
80830
 
79997
80831
  // src/execution-activity-tracker.ts
79998
80832
  var ExecutionActivityTracker = class {
@@ -80510,6 +81344,9 @@ var WebPresenter = class {
80510
81344
  id: (0, import_node_crypto20.randomUUID)(),
80511
81345
  title: APPLICATION_PROBLEM_TITLES[input2.code],
80512
81346
  detail: input2.message,
81347
+ // The schema's slot for the technical cause, so the problem carries it
81348
+ // without putting an SDK error message in front of the person.
81349
+ ...input2.diagnostic ? { diagnosticsRef: input2.diagnostic } : {},
80513
81350
  occurredAt: (/* @__PURE__ */ new Date()).toISOString(),
80514
81351
  severity: "terminal",
80515
81352
  scope: {
@@ -80576,7 +81413,7 @@ var WebPresenter = class {
80576
81413
  // src/ws-client.ts
80577
81414
  var import_node_crypto22 = require("crypto");
80578
81415
 
80579
- // ../shared/dist/agent-liveness.js
81416
+ // ../../../../../../../../../Users/aman/Documents/alan/packages/shared/dist/agent-liveness.js
80580
81417
  var AGENT_LIVENESS_PROTOCOL_VERSION = 1;
80581
81418
  var AGENT_HEARTBEAT_INTERVAL_MS = 15e3;
80582
81419
  var agentRunStateSchema = external_exports.object({
@@ -81095,9 +81932,10 @@ var WSClient = class {
81095
81932
 
81096
81933
  // src/sandbox.ts
81097
81934
  var RequiredToolsUnavailableError = class extends Error {
81098
- constructor(code, message) {
81935
+ constructor(code, message, diagnostic) {
81099
81936
  super(message);
81100
81937
  this.code = code;
81938
+ this.diagnostic = diagnostic;
81101
81939
  this.name = "RequiredToolsUnavailableError";
81102
81940
  }
81103
81941
  };
@@ -81285,7 +82123,7 @@ async function runSandbox(config2) {
81285
82123
  }
81286
82124
  const presenter = new WebPresenter(wsClient, config2.sessionId, config2.projectPath);
81287
82125
  presenter.setSuppressSessionLifecycle(true);
81288
- const runtimeSkillManager = await RuntimeSkillManager.open({ homeDirectory: (0, import_node_os14.homedir)() });
82126
+ const runtimeSkillManager = await RuntimeSkillManager.open({ homeDirectory: (0, import_node_os15.homedir)() });
81289
82127
  let lastProviderSessionId = config2.providerSessionId;
81290
82128
  let resumeFallbackContext = config2.resumeFallbackContext;
81291
82129
  let activeBackendKind = config2.backendKind || "claude_cli";
@@ -81370,10 +82208,17 @@ async function runSandbox(config2) {
81370
82208
  lifecycle.warn("sandbox_agent_mcp_readiness_failed", {
81371
82209
  backendKind: activeBackendKind,
81372
82210
  code: readiness.code,
82211
+ // The protocol branch cannot describe itself; without this the
82212
+ // event names a category and nothing else.
82213
+ ...readiness.diagnostic ? { diagnostic: readiness.diagnostic } : {},
81373
82214
  stage: readiness.stage,
81374
82215
  retryable: readiness.retryable
81375
82216
  });
81376
- throw new RequiredToolsUnavailableError(readiness.code, readiness.message);
82217
+ throw new RequiredToolsUnavailableError(
82218
+ readiness.code,
82219
+ readiness.message,
82220
+ readiness.diagnostic
82221
+ );
81377
82222
  }
81378
82223
  } else if (currentRunId ?? config2.runId) {
81379
82224
  lifecycle.warn("sandbox_agent_mcp_contract_missing", {
@@ -81464,7 +82309,11 @@ async function runSandbox(config2) {
81464
82309
  error: errorMessage
81465
82310
  };
81466
82311
  if (error61 instanceof RequiredToolsUnavailableError) {
81467
- presenter.onApplicationError({ code: error61.code, message: error61.message });
82312
+ presenter.onApplicationError({
82313
+ code: error61.code,
82314
+ message: error61.message,
82315
+ ...error61.diagnostic ? { diagnostic: error61.diagnostic } : {}
82316
+ });
81468
82317
  } else {
81469
82318
  presenter.onError(errorMessage, false);
81470
82319
  }
@@ -81574,7 +82423,7 @@ async function runSandbox(config2) {
81574
82423
  // src/service-manager.ts
81575
82424
  var import_node_child_process9 = require("child_process");
81576
82425
  var import_node_fs25 = require("fs");
81577
- var import_node_os15 = require("os");
82426
+ var import_node_os16 = require("os");
81578
82427
  var import_node_path26 = require("path");
81579
82428
  var SERVICE_LABEL = "ai.tryalan.agent";
81580
82429
  var SYSTEMD_UNIT = "alan-agent.service";
@@ -81767,7 +82616,7 @@ WantedBy=default.target
81767
82616
  };
81768
82617
  }
81769
82618
  function currentServicePlan(args, runtime) {
81770
- const currentPlatform = (0, import_node_os15.platform)();
82619
+ const currentPlatform = (0, import_node_os16.platform)();
81771
82620
  if (currentPlatform !== "darwin" && currentPlatform !== "linux" && currentPlatform !== "win32") {
81772
82621
  throw new Error(`Daemon service installation is not supported on ${currentPlatform}`);
81773
82622
  }
@@ -81776,7 +82625,7 @@ function currentServicePlan(args, runtime) {
81776
82625
  if (!cliEntry) throw new Error("Cannot determine the alan-agent executable path");
81777
82626
  return buildDaemonServicePlan({
81778
82627
  platform: currentPlatform,
81779
- homeDir: (0, import_node_os15.homedir)(),
82628
+ homeDir: (0, import_node_os16.homedir)(),
81780
82629
  nodeExecutable: runtime?.executable ?? process.execPath,
81781
82630
  cliEntry: (0, import_node_path26.resolve)(cliEntry),
81782
82631
  profile,
@@ -81813,8 +82662,8 @@ function installDaemonService(args = [], runtime) {
81813
82662
  }
81814
82663
  const plan = currentServicePlan(args, runtime);
81815
82664
  if (plan.manifestPath && plan.manifest) {
81816
- if ((0, import_node_os15.platform)() === "darwin") {
81817
- (0, import_node_fs25.mkdirSync)((0, import_node_path26.join)((0, import_node_os15.homedir)(), ".alan", "agent", "logs"), { recursive: true, mode: 448 });
82665
+ if ((0, import_node_os16.platform)() === "darwin") {
82666
+ (0, import_node_fs25.mkdirSync)((0, import_node_path26.join)((0, import_node_os16.homedir)(), ".alan", "agent", "logs"), { recursive: true, mode: 448 });
81818
82667
  }
81819
82668
  writeManifest(plan.manifestPath, plan.manifest);
81820
82669
  }
@@ -81836,16 +82685,16 @@ function printDaemonServiceStatus(args = []) {
81836
82685
 
81837
82686
  // src/skills/skill-cli.ts
81838
82687
  var import_promises6 = require("fs/promises");
81839
- var import_node_os16 = require("os");
82688
+ var import_node_os17 = require("os");
81840
82689
  var import_node_path27 = require("path");
81841
82690
  async function runSkillsCommand(args) {
81842
82691
  const [subcommand, ...options] = args;
81843
- const homeDirectory = option(options, "--home") ?? (0, import_node_os16.homedir)();
81844
- const manager = await RuntimeSkillManager.open({ homeDirectory });
82692
+ const homeDirectory2 = option(options, "--home") ?? (0, import_node_os17.homedir)();
82693
+ const manager = await RuntimeSkillManager.open({ homeDirectory: homeDirectory2 });
81845
82694
  if (subcommand === "scan") {
81846
82695
  const inputPath = option(options, "--input");
81847
82696
  const declaredInput = inputPath ? scanSkillsInputSchema.parse(await readProtectedJson(inputPath)) : null;
81848
- const input2 = declaredInput ? options.includes("--include-configured") ? await resolveSkillScanInput(homeDirectory, declaredInput) : declaredInput : await defaultScanInput(homeDirectory);
82697
+ const input2 = declaredInput ? options.includes("--include-configured") ? await resolveSkillScanInput(homeDirectory2, declaredInput) : declaredInput : await defaultScanInput(homeDirectory2);
81849
82698
  const outcome = await manager.scan(input2);
81850
82699
  process.stdout.write(`${JSON.stringify(outcome)}
81851
82700
  `);
@@ -81872,8 +82721,8 @@ async function runSkillsCommand(args) {
81872
82721
  "Usage: alan-agent skills scan [--input <0600-json>] [--include-configured] [--home <path>] | skills reconcile --manifest <0600-json> [--home <path>] | skills publish --input <0600-json> [--home <path>]"
81873
82722
  );
81874
82723
  }
81875
- async function defaultScanInput(homeDirectory) {
81876
- return resolveSkillScanInput(homeDirectory, {
82724
+ async function defaultScanInput(homeDirectory2) {
82725
+ return resolveSkillScanInput(homeDirectory2, {
81877
82726
  mode: "audit",
81878
82727
  reason: "refresh",
81879
82728
  enabledProviderKinds: [],