@swmansion/argent 0.34.1-next.98 → 0.35.0

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 (32) hide show
  1. package/bin/argent-android-devtools-0.4.0.apk +0 -0
  2. package/bin/darwin/argent-macos-helper +0 -0
  3. package/bin/darwin/ax-service +0 -0
  4. package/bin/darwin/simulator-server +0 -0
  5. package/bin/darwin/tvos-ax-service +0 -0
  6. package/bin/darwin/tvos-hid-daemon +0 -0
  7. package/bin/linux/simulator-server +0 -0
  8. package/bin/linux-arm64/simulator-server +0 -0
  9. package/bin/network-inspector/network-inspector.jar +0 -0
  10. package/bin/tcp/ax-service +0 -0
  11. package/bin/win32/simulator-server.exe +0 -0
  12. package/dist/cli-cmds.mjs +187 -182
  13. package/dist/installer.mjs +353 -222
  14. package/dist/mcp-server.mjs +450 -11
  15. package/dist/tool-server.cjs +1430 -951
  16. package/dylibs/libArgentAudio.dylib +0 -0
  17. package/dylibs/libArgentInjectionBootstrap.dylib +0 -0
  18. package/dylibs/libKeyboardPatch.dylib +0 -0
  19. package/dylibs/libNativeDevtoolsIos.dylib +0 -0
  20. package/dylibs/macos/libArgentInjectionBootstrap.dylib +0 -0
  21. package/dylibs/macos/libNativeDevtoolsMacos.dylib +0 -0
  22. package/dylibs/tcp/argent-audio-feeder +0 -0
  23. package/dylibs/tcp/libArgentAudio.dylib +0 -0
  24. package/dylibs/tcp/libArgentInjectionBootstrap.dylib +0 -0
  25. package/dylibs/tcp/libKeyboardPatch.dylib +0 -0
  26. package/dylibs/tcp/libNativeDevtoolsIos.dylib +0 -0
  27. package/dylibs/tvos/libArgentInjectionBootstrap.dylib +0 -0
  28. package/dylibs/tvos/libKeyboardPatch.dylib +0 -0
  29. package/dylibs/tvos/libNativeDevtoolsIos.dylib +0 -0
  30. package/package.json +2 -2
  31. package/skills/argent-device-interact/SKILL.md +1 -1
  32. package/skills/argent-test-ui-flow/SKILL.md +1 -1
package/dist/cli-cmds.mjs CHANGED
@@ -124,17 +124,17 @@ var require_visit = __commonJS({
124
124
  visit3.BREAK = BREAK;
125
125
  visit3.SKIP = SKIP;
126
126
  visit3.REMOVE = REMOVE;
127
- function visit_(key, node2, visitor, path45) {
128
- const ctrl = callVisitor(key, node2, visitor, path45);
127
+ function visit_(key, node2, visitor, path46) {
128
+ const ctrl = callVisitor(key, node2, visitor, path46);
129
129
  if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
130
- replaceNode(key, path45, ctrl);
131
- return visit_(key, ctrl, visitor, path45);
130
+ replaceNode(key, path46, ctrl);
131
+ return visit_(key, ctrl, visitor, path46);
132
132
  }
133
133
  if (typeof ctrl !== "symbol") {
134
134
  if (identity2.isCollection(node2)) {
135
- path45 = Object.freeze(path45.concat(node2));
135
+ path46 = Object.freeze(path46.concat(node2));
136
136
  for (let i2 = 0; i2 < node2.items.length; ++i2) {
137
- const ci = visit_(i2, node2.items[i2], visitor, path45);
137
+ const ci = visit_(i2, node2.items[i2], visitor, path46);
138
138
  if (typeof ci === "number")
139
139
  i2 = ci - 1;
140
140
  else if (ci === BREAK)
@@ -145,13 +145,13 @@ var require_visit = __commonJS({
145
145
  }
146
146
  }
147
147
  } else if (identity2.isPair(node2)) {
148
- path45 = Object.freeze(path45.concat(node2));
149
- const ck = visit_("key", node2.key, visitor, path45);
148
+ path46 = Object.freeze(path46.concat(node2));
149
+ const ck = visit_("key", node2.key, visitor, path46);
150
150
  if (ck === BREAK)
151
151
  return BREAK;
152
152
  else if (ck === REMOVE)
153
153
  node2.key = null;
154
- const cv = visit_("value", node2.value, visitor, path45);
154
+ const cv = visit_("value", node2.value, visitor, path46);
155
155
  if (cv === BREAK)
156
156
  return BREAK;
157
157
  else if (cv === REMOVE)
@@ -172,17 +172,17 @@ var require_visit = __commonJS({
172
172
  visitAsync.BREAK = BREAK;
173
173
  visitAsync.SKIP = SKIP;
174
174
  visitAsync.REMOVE = REMOVE;
175
- async function visitAsync_(key, node2, visitor, path45) {
176
- const ctrl = await callVisitor(key, node2, visitor, path45);
175
+ async function visitAsync_(key, node2, visitor, path46) {
176
+ const ctrl = await callVisitor(key, node2, visitor, path46);
177
177
  if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
178
- replaceNode(key, path45, ctrl);
179
- return visitAsync_(key, ctrl, visitor, path45);
178
+ replaceNode(key, path46, ctrl);
179
+ return visitAsync_(key, ctrl, visitor, path46);
180
180
  }
181
181
  if (typeof ctrl !== "symbol") {
182
182
  if (identity2.isCollection(node2)) {
183
- path45 = Object.freeze(path45.concat(node2));
183
+ path46 = Object.freeze(path46.concat(node2));
184
184
  for (let i2 = 0; i2 < node2.items.length; ++i2) {
185
- const ci = await visitAsync_(i2, node2.items[i2], visitor, path45);
185
+ const ci = await visitAsync_(i2, node2.items[i2], visitor, path46);
186
186
  if (typeof ci === "number")
187
187
  i2 = ci - 1;
188
188
  else if (ci === BREAK)
@@ -193,13 +193,13 @@ var require_visit = __commonJS({
193
193
  }
194
194
  }
195
195
  } else if (identity2.isPair(node2)) {
196
- path45 = Object.freeze(path45.concat(node2));
197
- const ck = await visitAsync_("key", node2.key, visitor, path45);
196
+ path46 = Object.freeze(path46.concat(node2));
197
+ const ck = await visitAsync_("key", node2.key, visitor, path46);
198
198
  if (ck === BREAK)
199
199
  return BREAK;
200
200
  else if (ck === REMOVE)
201
201
  node2.key = null;
202
- const cv = await visitAsync_("value", node2.value, visitor, path45);
202
+ const cv = await visitAsync_("value", node2.value, visitor, path46);
203
203
  if (cv === BREAK)
204
204
  return BREAK;
205
205
  else if (cv === REMOVE)
@@ -226,23 +226,23 @@ var require_visit = __commonJS({
226
226
  }
227
227
  return visitor;
228
228
  }
229
- function callVisitor(key, node2, visitor, path45) {
229
+ function callVisitor(key, node2, visitor, path46) {
230
230
  if (typeof visitor === "function")
231
- return visitor(key, node2, path45);
231
+ return visitor(key, node2, path46);
232
232
  if (identity2.isMap(node2))
233
- return visitor.Map?.(key, node2, path45);
233
+ return visitor.Map?.(key, node2, path46);
234
234
  if (identity2.isSeq(node2))
235
- return visitor.Seq?.(key, node2, path45);
235
+ return visitor.Seq?.(key, node2, path46);
236
236
  if (identity2.isPair(node2))
237
- return visitor.Pair?.(key, node2, path45);
237
+ return visitor.Pair?.(key, node2, path46);
238
238
  if (identity2.isScalar(node2))
239
- return visitor.Scalar?.(key, node2, path45);
239
+ return visitor.Scalar?.(key, node2, path46);
240
240
  if (identity2.isAlias(node2))
241
- return visitor.Alias?.(key, node2, path45);
241
+ return visitor.Alias?.(key, node2, path46);
242
242
  return void 0;
243
243
  }
244
- function replaceNode(key, path45, node2) {
245
- const parent = path45[path45.length - 1];
244
+ function replaceNode(key, path46, node2) {
245
+ const parent = path46[path46.length - 1];
246
246
  if (identity2.isCollection(parent)) {
247
247
  parent.items[key] = node2;
248
248
  } else if (identity2.isPair(parent)) {
@@ -854,10 +854,10 @@ var require_Collection = __commonJS({
854
854
  var createNode = require_createNode();
855
855
  var identity2 = require_identity();
856
856
  var Node = require_Node();
857
- function collectionFromPath(schema, path45, value) {
857
+ function collectionFromPath(schema, path46, value) {
858
858
  let v = value;
859
- for (let i2 = path45.length - 1; i2 >= 0; --i2) {
860
- const k = path45[i2];
859
+ for (let i2 = path46.length - 1; i2 >= 0; --i2) {
860
+ const k = path46[i2];
861
861
  if (typeof k === "number" && Number.isInteger(k) && k >= 0) {
862
862
  const a2 = [];
863
863
  a2[k] = v;
@@ -876,7 +876,7 @@ var require_Collection = __commonJS({
876
876
  sourceObjects: /* @__PURE__ */ new Map()
877
877
  });
878
878
  }
879
- var isEmptyPath = (path45) => path45 == null || typeof path45 === "object" && !!path45[Symbol.iterator]().next().done;
879
+ var isEmptyPath = (path46) => path46 == null || typeof path46 === "object" && !!path46[Symbol.iterator]().next().done;
880
880
  var Collection = class extends Node.NodeBase {
881
881
  constructor(type, schema) {
882
882
  super(type);
@@ -906,11 +906,11 @@ var require_Collection = __commonJS({
906
906
  * be a Pair instance or a `{ key, value }` object, which may not have a key
907
907
  * that already exists in the map.
908
908
  */
909
- addIn(path45, value) {
910
- if (isEmptyPath(path45))
909
+ addIn(path46, value) {
910
+ if (isEmptyPath(path46))
911
911
  this.add(value);
912
912
  else {
913
- const [key, ...rest] = path45;
913
+ const [key, ...rest] = path46;
914
914
  const node2 = this.get(key, true);
915
915
  if (identity2.isCollection(node2))
916
916
  node2.addIn(rest, value);
@@ -924,8 +924,8 @@ var require_Collection = __commonJS({
924
924
  * Removes a value from the collection.
925
925
  * @returns `true` if the item was found and removed.
926
926
  */
927
- deleteIn(path45) {
928
- const [key, ...rest] = path45;
927
+ deleteIn(path46) {
928
+ const [key, ...rest] = path46;
929
929
  if (rest.length === 0)
930
930
  return this.delete(key);
931
931
  const node2 = this.get(key, true);
@@ -939,8 +939,8 @@ var require_Collection = __commonJS({
939
939
  * scalar values from their surrounding node; to disable set `keepScalar` to
940
940
  * `true` (collections are always returned intact).
941
941
  */
942
- getIn(path45, keepScalar) {
943
- const [key, ...rest] = path45;
942
+ getIn(path46, keepScalar) {
943
+ const [key, ...rest] = path46;
944
944
  const node2 = this.get(key, true);
945
945
  if (rest.length === 0)
946
946
  return !keepScalar && identity2.isScalar(node2) ? node2.value : node2;
@@ -958,8 +958,8 @@ var require_Collection = __commonJS({
958
958
  /**
959
959
  * Checks if the collection includes a value with the key `key`.
960
960
  */
961
- hasIn(path45) {
962
- const [key, ...rest] = path45;
961
+ hasIn(path46) {
962
+ const [key, ...rest] = path46;
963
963
  if (rest.length === 0)
964
964
  return this.has(key);
965
965
  const node2 = this.get(key, true);
@@ -969,8 +969,8 @@ var require_Collection = __commonJS({
969
969
  * Sets a value in this collection. For `!!set`, `value` needs to be a
970
970
  * boolean to add/remove the item from the set.
971
971
  */
972
- setIn(path45, value) {
973
- const [key, ...rest] = path45;
972
+ setIn(path46, value) {
973
+ const [key, ...rest] = path46;
974
974
  if (rest.length === 0) {
975
975
  this.set(key, value);
976
976
  } else {
@@ -3485,9 +3485,9 @@ var require_Document = __commonJS({
3485
3485
  this.contents.add(value);
3486
3486
  }
3487
3487
  /** Adds a value to the document. */
3488
- addIn(path45, value) {
3488
+ addIn(path46, value) {
3489
3489
  if (assertCollection(this.contents))
3490
- this.contents.addIn(path45, value);
3490
+ this.contents.addIn(path46, value);
3491
3491
  }
3492
3492
  /**
3493
3493
  * Create a new `Alias` node, ensuring that the target `node` has the required anchor.
@@ -3562,14 +3562,14 @@ var require_Document = __commonJS({
3562
3562
  * Removes a value from the document.
3563
3563
  * @returns `true` if the item was found and removed.
3564
3564
  */
3565
- deleteIn(path45) {
3566
- if (Collection.isEmptyPath(path45)) {
3565
+ deleteIn(path46) {
3566
+ if (Collection.isEmptyPath(path46)) {
3567
3567
  if (this.contents == null)
3568
3568
  return false;
3569
3569
  this.contents = null;
3570
3570
  return true;
3571
3571
  }
3572
- return assertCollection(this.contents) ? this.contents.deleteIn(path45) : false;
3572
+ return assertCollection(this.contents) ? this.contents.deleteIn(path46) : false;
3573
3573
  }
3574
3574
  /**
3575
3575
  * Returns item at `key`, or `undefined` if not found. By default unwraps
@@ -3584,10 +3584,10 @@ var require_Document = __commonJS({
3584
3584
  * scalar values from their surrounding node; to disable set `keepScalar` to
3585
3585
  * `true` (collections are always returned intact).
3586
3586
  */
3587
- getIn(path45, keepScalar) {
3588
- if (Collection.isEmptyPath(path45))
3587
+ getIn(path46, keepScalar) {
3588
+ if (Collection.isEmptyPath(path46))
3589
3589
  return !keepScalar && identity2.isScalar(this.contents) ? this.contents.value : this.contents;
3590
- return identity2.isCollection(this.contents) ? this.contents.getIn(path45, keepScalar) : void 0;
3590
+ return identity2.isCollection(this.contents) ? this.contents.getIn(path46, keepScalar) : void 0;
3591
3591
  }
3592
3592
  /**
3593
3593
  * Checks if the document includes a value with the key `key`.
@@ -3598,10 +3598,10 @@ var require_Document = __commonJS({
3598
3598
  /**
3599
3599
  * Checks if the document includes a value at `path`.
3600
3600
  */
3601
- hasIn(path45) {
3602
- if (Collection.isEmptyPath(path45))
3601
+ hasIn(path46) {
3602
+ if (Collection.isEmptyPath(path46))
3603
3603
  return this.contents !== void 0;
3604
- return identity2.isCollection(this.contents) ? this.contents.hasIn(path45) : false;
3604
+ return identity2.isCollection(this.contents) ? this.contents.hasIn(path46) : false;
3605
3605
  }
3606
3606
  /**
3607
3607
  * Sets a value in this document. For `!!set`, `value` needs to be a
@@ -3618,13 +3618,13 @@ var require_Document = __commonJS({
3618
3618
  * Sets a value in this document. For `!!set`, `value` needs to be a
3619
3619
  * boolean to add/remove the item from the set.
3620
3620
  */
3621
- setIn(path45, value) {
3622
- if (Collection.isEmptyPath(path45)) {
3621
+ setIn(path46, value) {
3622
+ if (Collection.isEmptyPath(path46)) {
3623
3623
  this.contents = value;
3624
3624
  } else if (this.contents == null) {
3625
- this.contents = Collection.collectionFromPath(this.schema, Array.from(path45), value);
3625
+ this.contents = Collection.collectionFromPath(this.schema, Array.from(path46), value);
3626
3626
  } else if (assertCollection(this.contents)) {
3627
- this.contents.setIn(path45, value);
3627
+ this.contents.setIn(path46, value);
3628
3628
  }
3629
3629
  }
3630
3630
  /**
@@ -5585,9 +5585,9 @@ var require_cst_visit = __commonJS({
5585
5585
  visit3.BREAK = BREAK;
5586
5586
  visit3.SKIP = SKIP;
5587
5587
  visit3.REMOVE = REMOVE;
5588
- visit3.itemAtPath = (cst, path45) => {
5588
+ visit3.itemAtPath = (cst, path46) => {
5589
5589
  let item = cst;
5590
- for (const [field, index] of path45) {
5590
+ for (const [field, index] of path46) {
5591
5591
  const tok = item?.[field];
5592
5592
  if (tok && "items" in tok) {
5593
5593
  item = tok.items[index];
@@ -5596,23 +5596,23 @@ var require_cst_visit = __commonJS({
5596
5596
  }
5597
5597
  return item;
5598
5598
  };
5599
- visit3.parentCollection = (cst, path45) => {
5600
- const parent = visit3.itemAtPath(cst, path45.slice(0, -1));
5601
- const field = path45[path45.length - 1][0];
5599
+ visit3.parentCollection = (cst, path46) => {
5600
+ const parent = visit3.itemAtPath(cst, path46.slice(0, -1));
5601
+ const field = path46[path46.length - 1][0];
5602
5602
  const coll = parent?.[field];
5603
5603
  if (coll && "items" in coll)
5604
5604
  return coll;
5605
5605
  throw new Error("Parent collection not found");
5606
5606
  };
5607
- function _visit(path45, item, visitor) {
5608
- let ctrl = visitor(item, path45);
5607
+ function _visit(path46, item, visitor) {
5608
+ let ctrl = visitor(item, path46);
5609
5609
  if (typeof ctrl === "symbol")
5610
5610
  return ctrl;
5611
5611
  for (const field of ["key", "value"]) {
5612
5612
  const token = item[field];
5613
5613
  if (token && "items" in token) {
5614
5614
  for (let i2 = 0; i2 < token.items.length; ++i2) {
5615
- const ci = _visit(Object.freeze(path45.concat([[field, i2]])), token.items[i2], visitor);
5615
+ const ci = _visit(Object.freeze(path46.concat([[field, i2]])), token.items[i2], visitor);
5616
5616
  if (typeof ci === "number")
5617
5617
  i2 = ci - 1;
5618
5618
  else if (ci === BREAK)
@@ -5623,10 +5623,10 @@ var require_cst_visit = __commonJS({
5623
5623
  }
5624
5624
  }
5625
5625
  if (typeof ctrl === "function" && field === "key")
5626
- ctrl = ctrl(item, path45);
5626
+ ctrl = ctrl(item, path46);
5627
5627
  }
5628
5628
  }
5629
- return typeof ctrl === "function" ? ctrl(item, path45) : ctrl;
5629
+ return typeof ctrl === "function" ? ctrl(item, path46) : ctrl;
5630
5630
  }
5631
5631
  exports.visit = visit3;
5632
5632
  }
@@ -6928,14 +6928,14 @@ var require_parser = __commonJS({
6928
6928
  case "scalar":
6929
6929
  case "single-quoted-scalar":
6930
6930
  case "double-quoted-scalar": {
6931
- const fs33 = this.flowScalar(this.type);
6931
+ const fs34 = this.flowScalar(this.type);
6932
6932
  if (atNextItem || it.value) {
6933
- map2.items.push({ start, key: fs33, sep: [] });
6933
+ map2.items.push({ start, key: fs34, sep: [] });
6934
6934
  this.onKeyLine = true;
6935
6935
  } else if (it.sep) {
6936
- this.stack.push(fs33);
6936
+ this.stack.push(fs34);
6937
6937
  } else {
6938
- Object.assign(it, { key: fs33, sep: [] });
6938
+ Object.assign(it, { key: fs34, sep: [] });
6939
6939
  this.onKeyLine = true;
6940
6940
  }
6941
6941
  return;
@@ -7063,13 +7063,13 @@ var require_parser = __commonJS({
7063
7063
  case "scalar":
7064
7064
  case "single-quoted-scalar":
7065
7065
  case "double-quoted-scalar": {
7066
- const fs33 = this.flowScalar(this.type);
7066
+ const fs34 = this.flowScalar(this.type);
7067
7067
  if (!it || it.value)
7068
- fc.items.push({ start: [], key: fs33, sep: [] });
7068
+ fc.items.push({ start: [], key: fs34, sep: [] });
7069
7069
  else if (it.sep)
7070
- this.stack.push(fs33);
7070
+ this.stack.push(fs34);
7071
7071
  else
7072
- Object.assign(it, { key: fs33, sep: [] });
7072
+ Object.assign(it, { key: fs34, sep: [] });
7073
7073
  return;
7074
7074
  }
7075
7075
  case "flow-map-end":
@@ -9765,10 +9765,10 @@ var require_truncate = __commonJS({
9765
9765
  "../../node_modules/semver/functions/truncate.js"(exports, module) {
9766
9766
  "use strict";
9767
9767
  var parse7 = require_parse();
9768
- var constants5 = require_constants();
9768
+ var constants6 = require_constants();
9769
9769
  var SemVer = require_semver();
9770
9770
  var truncate = (version2, truncation, options) => {
9771
- if (!constants5.RELEASE_TYPES.includes(truncation)) {
9771
+ if (!constants6.RELEASE_TYPES.includes(truncation)) {
9772
9772
  return null;
9773
9773
  }
9774
9774
  const clonedVersion = cloneInputVersion(version2, options);
@@ -10817,7 +10817,7 @@ var require_semver2 = __commonJS({
10817
10817
  "../../node_modules/semver/index.js"(exports, module) {
10818
10818
  "use strict";
10819
10819
  var internalRe = require_re();
10820
- var constants5 = require_constants();
10820
+ var constants6 = require_constants();
10821
10821
  var SemVer = require_semver();
10822
10822
  var identifiers = require_identifiers();
10823
10823
  var parse7 = require_parse();
@@ -10901,8 +10901,8 @@ var require_semver2 = __commonJS({
10901
10901
  re: internalRe.re,
10902
10902
  src: internalRe.src,
10903
10903
  tokens: internalRe.t,
10904
- SEMVER_SPEC_VERSION: constants5.SEMVER_SPEC_VERSION,
10905
- RELEASE_TYPES: constants5.RELEASE_TYPES,
10904
+ SEMVER_SPEC_VERSION: constants6.SEMVER_SPEC_VERSION,
10905
+ RELEASE_TYPES: constants6.RELEASE_TYPES,
10906
10906
  compareIdentifiers: identifiers.compareIdentifiers,
10907
10907
  rcompareIdentifiers: identifiers.rcompareIdentifiers
10908
10908
  };
@@ -12547,8 +12547,8 @@ var UNEXPANDED_PATH = /^~|\$[A-Za-z0-9_{(]|`|%[A-Za-z_][A-Za-z0-9_]*%|^[A-Za-z][
12547
12547
  function isUnexpandedPath(p) {
12548
12548
  return UNEXPANDED_PATH.test(p);
12549
12549
  }
12550
- function isClientFileArgument({ spec, path: path45 }) {
12551
- return spec.kind === "file" && spec.path === `\${${spec.target}}` && path45.startsWith("/") && hasToolFileExtension(path45);
12550
+ function isClientFileArgument({ spec, path: path46 }) {
12551
+ return spec.kind === "file" && spec.path === `\${${spec.target}}` && path46.startsWith("/") && hasToolFileExtension(path46);
12552
12552
  }
12553
12553
 
12554
12554
  // ../registry/src/flow-platforms.ts
@@ -14086,10 +14086,10 @@ function mergeDefs(...defs) {
14086
14086
  function cloneDef(schema) {
14087
14087
  return mergeDefs(schema._zod.def);
14088
14088
  }
14089
- function getElementAtPath(obj, path45) {
14090
- if (!path45)
14089
+ function getElementAtPath(obj, path46) {
14090
+ if (!path46)
14091
14091
  return obj;
14092
- return path45.reduce((acc, key) => acc?.[key], obj);
14092
+ return path46.reduce((acc, key) => acc?.[key], obj);
14093
14093
  }
14094
14094
  function promiseAllObject(promisesObj) {
14095
14095
  const keys = Object.keys(promisesObj);
@@ -14429,11 +14429,11 @@ function explicitlyAborted(x, startIndex = 0) {
14429
14429
  }
14430
14430
  return false;
14431
14431
  }
14432
- function prefixIssues(path45, issues) {
14432
+ function prefixIssues(path46, issues) {
14433
14433
  return issues.map((iss) => {
14434
14434
  var _a3;
14435
14435
  (_a3 = iss).path ?? (_a3.path = []);
14436
- iss.path.unshift(path45);
14436
+ iss.path.unshift(path46);
14437
14437
  return iss;
14438
14438
  });
14439
14439
  }
@@ -14895,16 +14895,16 @@ function flattenError(error63, mapper = (issue2) => issue2.message) {
14895
14895
  }
14896
14896
  function formatError(error63, mapper = (issue2) => issue2.message) {
14897
14897
  const fieldErrors = { _errors: [] };
14898
- const processError = (error64, path45 = []) => {
14898
+ const processError = (error64, path46 = []) => {
14899
14899
  for (const issue2 of error64.issues) {
14900
14900
  if (issue2.code === "invalid_union" && issue2.errors.length) {
14901
- issue2.errors.map((issues) => processError({ issues }, [...path45, ...issue2.path]));
14901
+ issue2.errors.map((issues) => processError({ issues }, [...path46, ...issue2.path]));
14902
14902
  } else if (issue2.code === "invalid_key") {
14903
- processError({ issues: issue2.issues }, [...path45, ...issue2.path]);
14903
+ processError({ issues: issue2.issues }, [...path46, ...issue2.path]);
14904
14904
  } else if (issue2.code === "invalid_element") {
14905
- processError({ issues: issue2.issues }, [...path45, ...issue2.path]);
14905
+ processError({ issues: issue2.issues }, [...path46, ...issue2.path]);
14906
14906
  } else {
14907
- const fullpath = [...path45, ...issue2.path];
14907
+ const fullpath = [...path46, ...issue2.path];
14908
14908
  if (fullpath.length === 0) {
14909
14909
  fieldErrors._errors.push(mapper(issue2));
14910
14910
  } else {
@@ -14943,17 +14943,17 @@ function formatError(error63, mapper = (issue2) => issue2.message) {
14943
14943
  }
14944
14944
  function treeifyError(error63, mapper = (issue2) => issue2.message) {
14945
14945
  const result = { errors: [] };
14946
- const processError = (error64, path45 = []) => {
14946
+ const processError = (error64, path46 = []) => {
14947
14947
  var _a3;
14948
14948
  for (const issue2 of error64.issues) {
14949
14949
  if (issue2.code === "invalid_union" && issue2.errors.length) {
14950
- issue2.errors.map((issues) => processError({ issues }, [...path45, ...issue2.path]));
14950
+ issue2.errors.map((issues) => processError({ issues }, [...path46, ...issue2.path]));
14951
14951
  } else if (issue2.code === "invalid_key") {
14952
- processError({ issues: issue2.issues }, [...path45, ...issue2.path]);
14952
+ processError({ issues: issue2.issues }, [...path46, ...issue2.path]);
14953
14953
  } else if (issue2.code === "invalid_element") {
14954
- processError({ issues: issue2.issues }, [...path45, ...issue2.path]);
14954
+ processError({ issues: issue2.issues }, [...path46, ...issue2.path]);
14955
14955
  } else {
14956
- const fullpath = [...path45, ...issue2.path];
14956
+ const fullpath = [...path46, ...issue2.path];
14957
14957
  if (fullpath.length === 0) {
14958
14958
  result.errors.push(mapper(issue2));
14959
14959
  continue;
@@ -14992,8 +14992,8 @@ function treeifyError(error63, mapper = (issue2) => issue2.message) {
14992
14992
  }
14993
14993
  function toDotPath(_path) {
14994
14994
  const segs = [];
14995
- const path45 = _path.map((seg) => typeof seg === "object" ? seg.key : seg);
14996
- for (const seg of path45) {
14995
+ const path46 = _path.map((seg) => typeof seg === "object" ? seg.key : seg);
14996
+ for (const seg of path46) {
14997
14997
  if (typeof seg === "number")
14998
14998
  segs.push(`[${seg}]`);
14999
14999
  else if (typeof seg === "symbol")
@@ -15279,8 +15279,8 @@ function emoji() {
15279
15279
  }
15280
15280
  var ipv4 = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/;
15281
15281
  var ipv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/;
15282
- var mac = (delimiter2) => {
15283
- const escapedDelim = escapeRegex(delimiter2 ?? ":");
15282
+ var mac = (delimiter3) => {
15283
+ const escapedDelim = escapeRegex(delimiter3 ?? ":");
15284
15284
  return new RegExp(`^(?:[0-9A-F]{2}${escapedDelim}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${escapedDelim}){5}[0-9a-f]{2}$`);
15285
15285
  };
15286
15286
  var cidrv4 = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/;
@@ -32131,13 +32131,13 @@ function resolveRef(ref, ctx) {
32131
32131
  if (!ref.startsWith("#")) {
32132
32132
  throw new Error("External $ref is not supported, only local refs (#/...) are allowed");
32133
32133
  }
32134
- const path45 = ref.slice(1).split("/").filter(Boolean);
32135
- if (path45.length === 0) {
32134
+ const path46 = ref.slice(1).split("/").filter(Boolean);
32135
+ if (path46.length === 0) {
32136
32136
  return ctx.rootSchema;
32137
32137
  }
32138
32138
  const defsKey = ctx.version === "draft-2020-12" ? "$defs" : "definitions";
32139
- if (path45[0] === defsKey) {
32140
- const key = path45[1] === void 0 ? void 0 : decodeJSONPointerSegment(path45[1]);
32139
+ if (path46[0] === defsKey) {
32140
+ const key = path46[1] === void 0 ? void 0 : decodeJSONPointerSegment(path46[1]);
32141
32141
  if (!key || !ctx.defs[key]) {
32142
32142
  throw new Error(`Reference not found: ${ref}`);
32143
32143
  }
@@ -32990,9 +32990,9 @@ function date4(params) {
32990
32990
  import { randomUUID as randomUUID3 } from "node:crypto";
32991
32991
  import { AsyncLocalStorage } from "node:async_hooks";
32992
32992
  var resolvedDuringInvocation = new AsyncLocalStorage();
32993
- function valueAtPath(root, path45) {
32993
+ function valueAtPath(root, path46) {
32994
32994
  let current = root;
32995
- for (const key of path45) {
32995
+ for (const key of path46) {
32996
32996
  if (current === null || typeof current !== "object") return void 0;
32997
32997
  if (!Object.hasOwn(current, key)) return void 0;
32998
32998
  current = current[key];
@@ -33152,8 +33152,8 @@ function parseLinkTarget(input2) {
33152
33152
  const host = u3.hostname.startsWith("[") ? u3.hostname.slice(1, -1) : u3.hostname;
33153
33153
  if (!host) throw new Error(`URL "${input2}" is missing a host.`);
33154
33154
  const port = u3.port ? Number(u3.port) : u3.protocol === "https:" ? 443 : 80;
33155
- const path45 = u3.pathname === "/" ? "" : u3.pathname.replace(/\/+$/, "");
33156
- const url2 = `${u3.protocol}//${u3.host}${path45}`;
33155
+ const path46 = u3.pathname === "/" ? "" : u3.pathname.replace(/\/+$/, "");
33156
+ const url2 = `${u3.protocol}//${u3.host}${path46}`;
33157
33157
  const token = u3.username ? decodeURIComponent(u3.username) : void 0;
33158
33158
  return { url: url2, host, port, ...token ? { token } : {} };
33159
33159
  }
@@ -33384,8 +33384,8 @@ async function runTar(archive, args, signal) {
33384
33384
  function normalizeTarMemberPath(memberPath) {
33385
33385
  return memberPath.replace(/^\.\//, "").replace(/\\/g, "/");
33386
33386
  }
33387
- function isContainedPath(path45, windows = process.platform === "win32") {
33388
- const slashed = path45.replace(/\\/g, "/");
33387
+ function isContainedPath(path46, windows = process.platform === "win32") {
33388
+ const slashed = path46.replace(/\\/g, "/");
33389
33389
  const drive = windows ? /^[A-Za-z]:/ : /^[A-Za-z]:\//;
33390
33390
  return !slashed.startsWith("/") && !drive.test(slashed) && !slashed.split("/").includes("..");
33391
33391
  }
@@ -34409,10 +34409,10 @@ function assertFiniteNumbers(args) {
34409
34409
  if (typeof item === "object" && item !== null) {
34410
34410
  pending.push({ value: item, key, parent: visit3 });
34411
34411
  } else if (typeof item === "number" && !Number.isFinite(item)) {
34412
- const path45 = [key];
34413
- for (let at = visit3; at.parent; at = at.parent) path45.push(at.key);
34414
- path45.reverse();
34415
- issues.push({ code: "invalid_type", path: path45, message: `expected a number, got ${item}` });
34412
+ const path46 = [key];
34413
+ for (let at = visit3; at.parent; at = at.parent) path46.push(at.key);
34414
+ path46.reverse();
34415
+ issues.push({ code: "invalid_type", path: path46, message: `expected a number, got ${item}` });
34416
34416
  if (issues.length === MAX_NON_FINITE_ISSUES) break;
34417
34417
  }
34418
34418
  }
@@ -34836,10 +34836,10 @@ async function writeDurableUnique(dir, filename, write) {
34836
34836
  const stem = filename.slice(0, filename.length - ext.length);
34837
34837
  for (let i2 = 1; i2 <= 1e3; i2++) {
34838
34838
  const candidate = i2 === 1 ? filename : `${stem} (${i2})${ext}`;
34839
- const path45 = join13(dir, candidate);
34839
+ const path46 = join13(dir, candidate);
34840
34840
  try {
34841
- await write(path45);
34842
- return path45;
34841
+ await write(path46);
34842
+ return path46;
34843
34843
  } catch (err) {
34844
34844
  if (err?.code === "EEXIST") continue;
34845
34845
  throw err;
@@ -37476,7 +37476,7 @@ function appendRootPathToUrlIfNeeded(url2) {
37476
37476
  return void 0;
37477
37477
  }
37478
37478
  }
37479
- function appendResourcePathToUrl(url2, path45) {
37479
+ function appendResourcePathToUrl(url2, path46) {
37480
37480
  try {
37481
37481
  new URL(url2);
37482
37482
  } catch {
@@ -37486,11 +37486,11 @@ function appendResourcePathToUrl(url2, path45) {
37486
37486
  if (!url2.endsWith("/")) {
37487
37487
  url2 = url2 + "/";
37488
37488
  }
37489
- url2 += path45;
37489
+ url2 += path46;
37490
37490
  try {
37491
37491
  new URL(url2);
37492
37492
  } catch {
37493
- diag2.warn(`Configuration: Provided URL appended with '${path45}' is not a valid URL, using 'undefined' instead of '${url2}'`);
37493
+ diag2.warn(`Configuration: Provided URL appended with '${path46}' is not a valid URL, using 'undefined' instead of '${url2}'`);
37494
37494
  return void 0;
37495
37495
  }
37496
37496
  return url2;
@@ -38153,9 +38153,9 @@ function isReplitAgent(env) {
38153
38153
  }
38154
38154
  var DEVIN_MARKER_PATH = "/opt/.devin";
38155
38155
  var JULES_MARKER_PATH = "/opt/environment_summary.sh";
38156
- function safeExists(fileExists, path45) {
38156
+ function safeExists(fileExists, path46) {
38157
38157
  try {
38158
- return fileExists(path45);
38158
+ return fileExists(path46);
38159
38159
  } catch {
38160
38160
  return false;
38161
38161
  }
@@ -38575,7 +38575,7 @@ function isCi(env = process.env) {
38575
38575
  var SESSION_ID2 = randomUUID5();
38576
38576
  function readCliVersion() {
38577
38577
  if (true) {
38578
- return "0.34.1-next.98";
38578
+ return "0.35.0";
38579
38579
  }
38580
38580
  return "0.0.0";
38581
38581
  }
@@ -41933,14 +41933,14 @@ import * as path22 from "node:path";
41933
41933
  import { execFileSync as execFileSync3 } from "node:child_process";
41934
41934
  import { existsSync as existsSync6 } from "node:fs";
41935
41935
  var ITERM_PATHS = ["/Applications/iTerm.app", `${process.env.HOME ?? ""}/Applications/iTerm.app`];
41936
- function isITermInstalled(existsSync21 = defaultExists) {
41937
- return ITERM_PATHS.some((p) => p && existsSync21(p));
41936
+ function isITermInstalled(existsSync22 = defaultExists) {
41937
+ return ITERM_PATHS.some((p) => p && existsSync22(p));
41938
41938
  }
41939
41939
  function defaultExists(p) {
41940
41940
  return existsSync6(p);
41941
41941
  }
41942
- function resolveTerminal(preferred = "iterm", existsSync21 = defaultExists) {
41943
- if (preferred === "iterm" && isITermInstalled(existsSync21)) return "iterm";
41942
+ function resolveTerminal(preferred = "iterm", existsSync22 = defaultExists) {
41943
+ if (preferred === "iterm" && isITermInstalled(existsSync22)) return "iterm";
41944
41944
  return "terminal";
41945
41945
  }
41946
41946
  function escapeAppleScript(s) {
@@ -46259,8 +46259,8 @@ async function providers(argv) {
46259
46259
 
46260
46260
  // ../argent-cli/src/doctor.ts
46261
46261
  var import_picocolors8 = __toESM(require_picocolors(), 1);
46262
- import * as fs32 from "node:fs";
46263
- import * as path44 from "node:path";
46262
+ import * as fs33 from "node:fs";
46263
+ import * as path45 from "node:path";
46264
46264
  import { execFile } from "node:child_process";
46265
46265
  import { promisify } from "node:util";
46266
46266
  import { homedir as homedir11 } from "node:os";
@@ -48028,12 +48028,12 @@ function parseTree(text2, errors = [], options = ParseOptions.DEFAULT) {
48028
48028
  }
48029
48029
  return result;
48030
48030
  }
48031
- function findNodeAtLocation(root, path45) {
48031
+ function findNodeAtLocation(root, path46) {
48032
48032
  if (!root) {
48033
48033
  return void 0;
48034
48034
  }
48035
48035
  let node2 = root;
48036
- for (let segment of path45) {
48036
+ for (let segment of path46) {
48037
48037
  if (typeof segment === "string") {
48038
48038
  if (node2.type !== "object" || !Array.isArray(node2.children)) {
48039
48039
  return void 0;
@@ -48387,14 +48387,14 @@ function getNodeType(value) {
48387
48387
 
48388
48388
  // ../../node_modules/jsonc-parser/lib/esm/impl/edit.js
48389
48389
  function setProperty(text2, originalPath, value, options) {
48390
- const path45 = originalPath.slice();
48390
+ const path46 = originalPath.slice();
48391
48391
  const errors = [];
48392
48392
  const root = parseTree(text2, errors);
48393
48393
  let parent = void 0;
48394
48394
  let lastSegment = void 0;
48395
- while (path45.length > 0) {
48396
- lastSegment = path45.pop();
48397
- parent = findNodeAtLocation(root, path45);
48395
+ while (path46.length > 0) {
48396
+ lastSegment = path46.pop();
48397
+ parent = findNodeAtLocation(root, path46);
48398
48398
  if (parent === void 0 && value !== void 0) {
48399
48399
  if (typeof lastSegment === "string") {
48400
48400
  value = { [lastSegment]: value };
@@ -48580,8 +48580,8 @@ var ParseErrorCode;
48580
48580
  ParseErrorCode2[ParseErrorCode2["InvalidEscapeCharacter"] = 15] = "InvalidEscapeCharacter";
48581
48581
  ParseErrorCode2[ParseErrorCode2["InvalidCharacter"] = 16] = "InvalidCharacter";
48582
48582
  })(ParseErrorCode || (ParseErrorCode = {}));
48583
- function modify(text2, path45, value, options) {
48584
- return setProperty(text2, path45, value, options);
48583
+ function modify(text2, path46, value, options) {
48584
+ return setProperty(text2, path46, value, options);
48585
48585
  }
48586
48586
  function applyEdits(text2, edits) {
48587
48587
  let sortedEdits = edits.slice(0).sort((a2, b) => {
@@ -50524,30 +50524,35 @@ var INSTALL_UNCLASSIFIED_FAILED = {
50524
50524
  };
50525
50525
 
50526
50526
  // ../argent-installer/src/install-runner.ts
50527
- import * as fs29 from "node:fs";
50528
- import * as path40 from "node:path";
50527
+ import * as fs30 from "node:fs";
50528
+ import * as path41 from "node:path";
50529
50529
 
50530
50530
  // ../argent-installer/src/shell.ts
50531
50531
  import { execFileSync as execFileSync8, spawn as spawn5 } from "node:child_process";
50532
50532
 
50533
50533
  // ../argent-installer/src/skills.ts
50534
+ import { execFileSync as execFileSync10 } from "node:child_process";
50535
+ import * as fs29 from "node:fs";
50536
+ import * as path40 from "node:path";
50537
+
50538
+ // ../argent-installer/src/skills-runner.ts
50534
50539
  import { execFileSync as execFileSync9 } from "node:child_process";
50535
50540
  import * as fs28 from "node:fs";
50536
50541
  import * as path39 from "node:path";
50537
50542
 
50538
50543
  // ../argent-installer/src/init-scope.ts
50539
- import { existsSync as existsSync17 } from "node:fs";
50544
+ import { existsSync as existsSync18 } from "node:fs";
50540
50545
  import { resolve as resolve21 } from "node:path";
50541
50546
 
50542
50547
  // ../argent-installer/src/init-skills.ts
50543
50548
  import { spawn as spawn6 } from "node:child_process";
50544
50549
  import * as os6 from "node:os";
50545
- import * as path41 from "node:path";
50550
+ import * as path42 from "node:path";
50546
50551
 
50547
50552
  // ../argent-installer/src/update.ts
50548
50553
  var import_semver5 = __toESM(require_semver2(), 1);
50549
- import * as fs30 from "node:fs";
50550
- import * as path42 from "node:path";
50554
+ import * as fs31 from "node:fs";
50555
+ import * as path43 from "node:path";
50551
50556
 
50552
50557
  // ../argent-installer/src/update-target.ts
50553
50558
  var import_update_core = __toESM(require_dist3(), 1);
@@ -50592,8 +50597,8 @@ var UPDATE_UNCLASSIFIED_FAILED = {
50592
50597
 
50593
50598
  // ../argent-installer/src/uninstall.ts
50594
50599
  var import_yaml7 = __toESM(require_dist(), 1);
50595
- import * as fs31 from "node:fs";
50596
- import * as path43 from "node:path";
50600
+ import * as fs32 from "node:fs";
50601
+ import * as path44 from "node:path";
50597
50602
  var UNINSTALL_TOOLSERVER_STOP_FAILED = {
50598
50603
  error_code: FAILURE_CODES.UNINSTALL_TOOLSERVER_STOP_FAILED,
50599
50604
  failure_stage: "installer_uninstall_toolserver_stop",
@@ -50633,10 +50638,10 @@ function check2(status2, label, extra = {}) {
50633
50638
  }
50634
50639
  function home(p) {
50635
50640
  const h2 = homedir11();
50636
- return p === h2 || p.startsWith(h2 + path44.sep) ? `~${p.slice(h2.length)}` : p;
50641
+ return p === h2 || p.startsWith(h2 + path45.sep) ? `~${p.slice(h2.length)}` : p;
50637
50642
  }
50638
50643
  function installSection(ctx) {
50639
- const packageRoot = path44.dirname(path44.dirname(ctx.paths.bundlePath));
50644
+ const packageRoot = path45.dirname(path45.dirname(ctx.paths.bundlePath));
50640
50645
  const checks = [check2("info", `Running v${ctx.running}`, { detail: home(packageRoot) })];
50641
50646
  const mode = resolveInstallMode(ctx.projectRoot);
50642
50647
  if (ctx.globalOnPath) {
@@ -50681,15 +50686,15 @@ function classifyArgentOnPath(entry, ctx) {
50681
50686
  function classifyNodeScript(entry, ctx) {
50682
50687
  const script = entry.args.find((arg) => !arg.startsWith("-"));
50683
50688
  if (!script) return entryCheck("info", entry, "custom command, not checked");
50684
- if (path44.isAbsolute(script)) {
50685
- return fs32.existsSync(script) ? entryCheck("ok", entry) : entryCheck("error", entry, `${script} does not exist`, {
50689
+ if (path45.isAbsolute(script)) {
50690
+ return fs33.existsSync(script) ? entryCheck("ok", entry) : entryCheck("error", entry, `${script} does not exist`, {
50686
50691
  fix: `${ctx.argentCommand} init`
50687
50692
  });
50688
50693
  }
50689
- if (!fs32.existsSync(path44.resolve(ctx.projectRoot, script))) {
50694
+ if (!fs33.existsSync(path45.resolve(ctx.projectRoot, script))) {
50690
50695
  return entryCheck("error", entry, `${script} does not exist`, { fix: ctx.projectInstallFix });
50691
50696
  }
50692
- if (!fs32.existsSync(path44.resolve(ctx.cwd, script))) {
50697
+ if (!fs33.existsSync(path45.resolve(ctx.cwd, script))) {
50693
50698
  return entryCheck("error", entry, `${script} is relative to ${home(ctx.projectRoot)}`, {
50694
50699
  detail: "an editor started in this folder cannot find it",
50695
50700
  fix: `Start the editor in ${home(ctx.projectRoot)}`
@@ -50698,13 +50703,13 @@ function classifyNodeScript(entry, ctx) {
50698
50703
  return entryCheck("ok", entry);
50699
50704
  }
50700
50705
  function classifyPinnedEntry(entry, initFix) {
50701
- const missing = [entry.command, entry.args[0]].find((p) => !fs32.existsSync(p));
50706
+ const missing = [entry.command, entry.args[0]].find((p) => !fs33.existsSync(p));
50702
50707
  return missing ? entryCheck("error", entry, `${missing} does not exist`, { fix: initFix }) : entryCheck("ok", entry);
50703
50708
  }
50704
50709
  function isRunnableFile(file2) {
50705
50710
  try {
50706
- if (!fs32.statSync(file2).isFile()) return false;
50707
- if (process.platform !== "win32") fs32.accessSync(file2, fs32.constants.X_OK);
50711
+ if (!fs33.statSync(file2).isFile()) return false;
50712
+ if (process.platform !== "win32") fs33.accessSync(file2, fs33.constants.X_OK);
50708
50713
  return true;
50709
50714
  } catch {
50710
50715
  return false;
@@ -50712,7 +50717,7 @@ function isRunnableFile(file2) {
50712
50717
  }
50713
50718
  function isOnPath(command) {
50714
50719
  const names = process.platform === "win32" ? [".cmd", ".exe"].map((ext) => command + ext) : [command];
50715
- return (process.env.PATH ?? "").split(path44.delimiter).some((dir) => dir !== "" && names.some((name) => isRunnableFile(path44.join(dir, name))));
50720
+ return (process.env.PATH ?? "").split(path45.delimiter).some((dir) => dir !== "" && names.some((name) => isRunnableFile(path45.join(dir, name))));
50716
50721
  }
50717
50722
  function classifyPackageRunner(entry, ctx) {
50718
50723
  if (!isOnPath(entry.command)) {
@@ -50747,7 +50752,7 @@ function classifyMcpEntry(entry, ctx) {
50747
50752
  if (entry.command === MCP_BINARY_NAME) return classifyArgentOnPath(entry, ctx);
50748
50753
  if (Object.hasOwn(RUNNER_PACKAGES, entry.command)) return classifyPackageRunner(entry, ctx);
50749
50754
  if (isPinnedGlobalEntry(entry)) return classifyPinnedEntry(entry, initFix);
50750
- if (path44.isAbsolute(entry.command) && !fs32.existsSync(entry.command)) {
50755
+ if (path45.isAbsolute(entry.command) && !fs33.existsSync(entry.command)) {
50751
50756
  return entryCheck("error", entry, `${entry.command} does not exist`, { fix: initFix });
50752
50757
  }
50753
50758
  return entryCheck("info", entry, "custom command, not checked");
@@ -50765,7 +50770,7 @@ function syntaxCheck(adapterName, configPath) {
50765
50770
  EDITOR_JSON_OPTIONS[adapterName] ?? JSONC_OPTIONS
50766
50771
  );
50767
50772
  if (line === null) return null;
50768
- const format2 = path44.extname(configPath).slice(1).toUpperCase();
50773
+ const format2 = path45.extname(configPath).slice(1).toUpperCase();
50769
50774
  return check2("error", `the config has a ${format2} syntax error on line ${line}`, {
50770
50775
  fix: `Fix line ${line} of ${home(configPath)}. The editor loads no MCP servers from it until then`
50771
50776
  });
@@ -50782,14 +50787,14 @@ function editorCheck(result, { adapter, scope, configPath }, initFix) {
50782
50787
  };
50783
50788
  }
50784
50789
  function brokenUnconfiguredConfigs({ projectRoot, cwd }, configured) {
50785
- const seen = new Set(configured.map((c2) => path44.resolve(c2.configPath)));
50790
+ const seen = new Set(configured.map((c2) => path45.resolve(c2.configPath)));
50786
50791
  const aboveRepo = crossesGitRoot(cwd, projectRoot);
50787
50792
  return ALL_ADAPTERS.flatMap(
50788
50793
  (adapter) => ["project", "global"].flatMap((scope) => {
50789
50794
  if (scope === "project" && !readsConfigAt(adapter.name, aboveRepo)) return [];
50790
50795
  const configPath = scope === "project" ? adapter.projectPath(projectRoot) : adapter.globalPath();
50791
- if (!configPath || seen.has(path44.resolve(configPath))) return [];
50792
- seen.add(path44.resolve(configPath));
50796
+ if (!configPath || seen.has(path45.resolve(configPath))) return [];
50797
+ seen.add(path45.resolve(configPath));
50793
50798
  const result = syntaxCheck(adapter.name, configPath);
50794
50799
  return result ? [{ adapter, scope, configPath, result }] : [];
50795
50800
  })
@@ -50798,7 +50803,7 @@ function brokenUnconfiguredConfigs({ projectRoot, cwd }, configured) {
50798
50803
  function mayHoldArgentEntry({ scope, configPath }) {
50799
50804
  if (scope === "project") return true;
50800
50805
  try {
50801
- return fs32.readFileSync(configPath, "utf8").includes(MCP_SERVER_KEY);
50806
+ return fs33.readFileSync(configPath, "utf8").includes(MCP_SERVER_KEY);
50802
50807
  } catch {
50803
50808
  return false;
50804
50809
  }
@@ -50838,7 +50843,7 @@ function editorsSection(ctx) {
50838
50843
  }
50839
50844
  function listRuleFiles(rulesDir = RULES_DIR) {
50840
50845
  try {
50841
- return fs32.readdirSync(rulesDir).filter((f) => f.endsWith(".md"));
50846
+ return fs33.readdirSync(rulesDir).filter((f) => f.endsWith(".md"));
50842
50847
  } catch {
50843
50848
  return [];
50844
50849
  }
@@ -50858,8 +50863,8 @@ function summarizeList(items, shown = 5) {
50858
50863
  }
50859
50864
  function localContentDir(ctx, name) {
50860
50865
  if (!ctx.localPackageDir) return void 0;
50861
- const dir = path44.join(ctx.localPackageDir, name);
50862
- return fs32.existsSync(dir) ? dir : void 0;
50866
+ const dir = path45.join(ctx.localPackageDir, name);
50867
+ return fs33.existsSync(dir) ? dir : void 0;
50863
50868
  }
50864
50869
  function skillsSection(ctx) {
50865
50870
  const checks = [];
@@ -50867,7 +50872,7 @@ function skillsSection(ctx) {
50867
50872
  const initFix = `${ctx.argentCommand} init`;
50868
50873
  const bundled = listBundledSkills(localContentDir(ctx, "skills"));
50869
50874
  const missing = bundled.filter(
50870
- (skill) => !skillDirs.some((dir) => fs32.existsSync(path44.join(dir, skill)))
50875
+ (skill) => !skillDirs.some((dir) => fs33.existsSync(path45.join(dir, skill)))
50871
50876
  );
50872
50877
  if (bundled.length > 0 && missing.length === bundled.length) {
50873
50878
  checks.push(check2("warn", "No argent skills installed", { fix: initFix }));
@@ -50887,7 +50892,7 @@ function skillsSection(ctx) {
50887
50892
  }
50888
50893
  const ruleFiles = listRuleFiles(localContentDir(ctx, "rules"));
50889
50894
  for (const dir of ruleDirs) {
50890
- const absent = ruleFiles.filter((f) => !fs32.existsSync(path44.join(dir, f)));
50895
+ const absent = ruleFiles.filter((f) => !fs33.existsSync(path45.join(dir, f)));
50891
50896
  checks.push(
50892
50897
  absent.length === 0 ? check2("ok", `Rules present in ${home(dir)}`) : check2("warn", `Rules missing in ${home(dir)}`, {
50893
50898
  detail: absent.join(", "),
@@ -50914,16 +50919,16 @@ async function probeHostDeps(paths) {
50914
50919
  }
50915
50920
  function xcodesIn(dir) {
50916
50921
  try {
50917
- return fs32.readdirSync(dir).filter((name) => /^Xcode(?:[-_ ].*)?\.app$/.test(name)).map((name) => path44.join(dir, name));
50922
+ return fs33.readdirSync(dir).filter((name) => /^Xcode(?:[-_ ].*)?\.app$/.test(name)).map((name) => path45.join(dir, name));
50918
50923
  } catch {
50919
50924
  return [];
50920
50925
  }
50921
50926
  }
50922
50927
  function installedXcodes() {
50923
- return [...xcodesIn("/Applications"), ...xcodesIn(path44.join(homedir11(), "Applications"))];
50928
+ return [...xcodesIn("/Applications"), ...xcodesIn(path45.join(homedir11(), "Applications"))];
50924
50929
  }
50925
50930
  function selectXcodeFix(xcodeApps) {
50926
- const app = xcodeApps.find((p) => path44.basename(p) === "Xcode.app") ?? xcodeApps[0];
50931
+ const app = xcodeApps.find((p) => path45.basename(p) === "Xcode.app") ?? xcodeApps[0];
50927
50932
  const developerDir = `${app ?? "/Applications/Xcode.app"}/Contents/Developer`;
50928
50933
  const select2 = formatShellCommand({ bin: "sudo", args: ["xcode-select", "-s", developerDir] });
50929
50934
  const run2 = process.env.DEVELOPER_DIR ? `unset DEVELOPER_DIR (it overrides xcode-select), then run ${select2}` : `run ${select2}`;
@@ -50970,7 +50975,7 @@ async function toolchainSection(ctx) {
50970
50975
  }
50971
50976
  function isGlobalConfigPath(entry) {
50972
50977
  const globalPath = entry.adapter.globalPath();
50973
- return globalPath !== null && path44.resolve(globalPath) === path44.resolve(entry.configPath);
50978
+ return globalPath !== null && path45.resolve(globalPath) === path45.resolve(entry.configPath);
50974
50979
  }
50975
50980
  function findConfigured(projectRoot) {
50976
50981
  return findConfiguredAdapterScopes(ALL_ADAPTERS, projectRoot).filter(
@@ -50987,28 +50992,28 @@ function hasClaudeProjectConfig(dir) {
50987
50992
  }
50988
50993
  function ancestorsInRepo(dir, homeDir) {
50989
50994
  const ancestors = ancestorsBelowHome(dir, homeDir);
50990
- const repoIndex = [dir, ...ancestors].findIndex((d) => fs32.existsSync(path44.join(d, ".git")));
50995
+ const repoIndex = [dir, ...ancestors].findIndex((d) => fs33.existsSync(path45.join(d, ".git")));
50991
50996
  return repoIndex === -1 ? ancestors : ancestors.slice(0, repoIndex);
50992
50997
  }
50993
50998
  function ancestorsBelowHome(dir, homeDir) {
50994
50999
  const ancestors = [];
50995
- let current = path44.dirname(dir);
50996
- while (current !== homeDir && current !== path44.dirname(current)) {
51000
+ let current = path45.dirname(dir);
51001
+ while (current !== homeDir && current !== path45.dirname(current)) {
50997
51002
  ancestors.push(current);
50998
- current = path44.dirname(current);
51003
+ current = path45.dirname(current);
50999
51004
  }
51000
51005
  return ancestors;
51001
51006
  }
51002
51007
  function resolveDoctorRoot(cwd, homeDir = homedir11()) {
51003
51008
  const projectRoot = resolveProjectRoot2(cwd, homeDir);
51004
- const resolvedHome = path44.resolve(homeDir);
51009
+ const resolvedHome = path45.resolve(homeDir);
51005
51010
  if (projectRoot === resolvedHome || hasProjectConfig(projectRoot)) return projectRoot;
51006
51011
  return ancestorsInRepo(projectRoot, resolvedHome).find(hasProjectConfig) ?? ancestorsBelowHome(projectRoot, resolvedHome).find(hasClaudeProjectConfig) ?? projectRoot;
51007
51012
  }
51008
51013
  function crossesGitRoot(cwd, projectRoot) {
51009
- const dirs = [cwd, ...ancestorsBelowHome(cwd, path44.resolve(homedir11()))];
51014
+ const dirs = [cwd, ...ancestorsBelowHome(cwd, path45.resolve(homedir11()))];
51010
51015
  const rootIndex = dirs.indexOf(projectRoot);
51011
- return rootIndex > 0 && dirs.slice(0, rootIndex).some((d) => fs32.existsSync(path44.join(d, ".git")));
51016
+ return rootIndex > 0 && dirs.slice(0, rootIndex).some((d) => fs33.existsSync(path45.join(d, ".git")));
51012
51017
  }
51013
51018
  function readsConfigAt(editor, aboveRepo) {
51014
51019
  return !aboveRepo || editor === "Claude Code";
@@ -51021,10 +51026,10 @@ function configuredFor(projectRoot, cwd) {
51021
51026
  }
51022
51027
  function offPathBinDir() {
51023
51028
  const bin = process.argv[1];
51024
- if (!bin || path44.basename(bin) !== MCP_BINARY_NAME) return null;
51025
- const dir = path44.dirname(bin);
51026
- if (path44.basename(dir) === ".bin") return null;
51027
- return (process.env.PATH ?? "").split(path44.delimiter).includes(dir) ? null : dir;
51029
+ if (!bin || path45.basename(bin) !== MCP_BINARY_NAME) return null;
51030
+ const dir = path45.dirname(bin);
51031
+ if (path45.basename(dir) === ".bin") return null;
51032
+ return (process.env.PATH ?? "").split(path45.delimiter).includes(dir) ? null : dir;
51028
51033
  }
51029
51034
  function globalInstallFix() {
51030
51035
  const binDir = offPathBinDir();