@mx-space/cli 0.13.2 → 0.13.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/README.md +1 -1
  2. package/ROADMAP.md +1 -1
  3. package/dist/{Lexical.dev-BsbWMhb3.mjs → Lexical.dev-DTxuYHmG.mjs} +4 -4
  4. package/dist/{Lexical.node-DnR_u_Ke.mjs → Lexical.node-BlCLnfA6.mjs} +1 -1
  5. package/dist/{Lexical.prod-B7L8eVsO.mjs → Lexical.prod-CeB9UQuo.mjs} +4 -4
  6. package/dist/{LexicalClipboard.dev-BGSFbuTA.mjs → LexicalClipboard.dev-CdFkLR_D.mjs} +5 -5
  7. package/dist/{LexicalClipboard.node-CUD_tpWb.mjs → LexicalClipboard.node-ktUajxsv.mjs} +1 -1
  8. package/dist/{LexicalClipboard.prod-DQXfRt3h.mjs → LexicalClipboard.prod-DliyLofW.mjs} +5 -5
  9. package/dist/{LexicalCodeCore.dev-B9lK_GSN.mjs → LexicalCodeCore.dev-CL9tHWJX.mjs} +4 -4
  10. package/dist/{LexicalCodeCore.prod-CNWMPXhg.mjs → LexicalCodeCore.prod-BoMSJc29.mjs} +4 -4
  11. package/dist/{LexicalDragon.dev-DRm2bGZ1.mjs → LexicalDragon.dev-CqW7Aq5H.mjs} +2 -2
  12. package/dist/{LexicalDragon.node-d8gPruly.mjs → LexicalDragon.node-DLXctJyy.mjs} +1 -1
  13. package/dist/{LexicalDragon.prod-ey3uKDJF.mjs → LexicalDragon.prod-DHI3T6n5.mjs} +2 -2
  14. package/dist/{LexicalExtension.dev-CXtOJb83.mjs → LexicalExtension.dev-BP-18zns.mjs} +6 -6
  15. package/dist/{LexicalExtension.node-CMsupJZs.mjs → LexicalExtension.node-BWH6xbzG.mjs} +1 -1
  16. package/dist/{LexicalExtension.prod-BCLGhzcg.mjs → LexicalExtension.prod-Cs6OgrDn.mjs} +6 -6
  17. package/dist/{LexicalHeadless.dev-yVDOBd64.mjs → LexicalHeadless.dev-DJp__UcP.mjs} +1 -1
  18. package/dist/{LexicalHeadless.prod-B8qauuEA.mjs → LexicalHeadless.prod-o0v9cIu5.mjs} +1 -1
  19. package/dist/{LexicalHtml.dev-3rdckXIU.mjs → LexicalHtml.dev-DoymwFpG.mjs} +8 -8
  20. package/dist/{LexicalHtml.node-DagZUjQ_.mjs → LexicalHtml.node-CVkbWtUA.mjs} +1 -1
  21. package/dist/{LexicalHtml.prod-B5AQaJDb.mjs → LexicalHtml.prod-C2b3z99k.mjs} +8 -8
  22. package/dist/{LexicalLink.dev-CspSwLNB.mjs → LexicalLink.dev-7cgLOLIe.mjs} +5 -5
  23. package/dist/{LexicalLink.prod-Da-ZW6H5.mjs → LexicalLink.prod-DWFgoXHR.mjs} +5 -5
  24. package/dist/{LexicalList.dev-CNXmV6v8.mjs → LexicalList.dev-Ci2iOxFx.mjs} +4 -4
  25. package/dist/{LexicalList.prod-DgQzj4v9.mjs → LexicalList.prod-D0xX5d3G.mjs} +4 -4
  26. package/dist/{LexicalMarkdown.dev-0XURdo96.mjs → LexicalMarkdown.dev-C0ZYCyuR.mjs} +4 -4
  27. package/dist/{LexicalMarkdown.prod-qUsIQfJx.mjs → LexicalMarkdown.prod-0M-Nc-rh.mjs} +4 -4
  28. package/dist/{LexicalRichText.dev-BqsEA7I9.mjs → LexicalRichText.dev-Cnr1kDym.mjs} +7 -7
  29. package/dist/{LexicalRichText.node-D73RR0Ck.mjs → LexicalRichText.node-BUJZAiap.mjs} +4 -4
  30. package/dist/{LexicalRichText.prod-4Atyd7OR.mjs → LexicalRichText.prod-BfbMQ9uM.mjs} +7 -7
  31. package/dist/{LexicalSelection.dev-DK5xfxKP.mjs → LexicalSelection.dev-C4L7l8OB.mjs} +1 -1
  32. package/dist/{LexicalSelection.node-pyZyrANz.mjs → LexicalSelection.node-CLKroUMQ.mjs} +1 -1
  33. package/dist/{LexicalSelection.prod-C5GrCbDC.mjs → LexicalSelection.prod-DzFqpTlw.mjs} +1 -1
  34. package/dist/{LexicalTable.dev-DiR_4rdI.mjs → LexicalTable.dev-Cc9-zqKa.mjs} +7 -7
  35. package/dist/{LexicalTable.prod-Cbc5EasT.mjs → LexicalTable.prod-BgO4nCxy.mjs} +7 -7
  36. package/dist/{LexicalUtils.dev-jhPjn1vQ.mjs → LexicalUtils.dev-BRgK0L6G.mjs} +2 -2
  37. package/dist/{LexicalUtils.node-Ck74ludK.mjs → LexicalUtils.node-BVAwOkL4.mjs} +1 -1
  38. package/dist/{LexicalUtils.prod-nuTBxnk_.mjs → LexicalUtils.prod-C1gtvVDP.mjs} +2 -2
  39. package/dist/bin/mxs.mjs +1 -1
  40. package/dist/{esm-DupC6TTP.mjs → esm-BNu4sUWV.mjs} +6 -6
  41. package/dist/esm-jbwcVZth.mjs +2 -0
  42. package/dist/index.mjs +1 -1
  43. package/dist/{mxs-BgAyMQdq.mjs → mxs-zPvjkoNC.mjs} +198 -179
  44. package/dist/vendor/litexml/cli.mjs +24150 -0
  45. package/dist/vendor/litexml/litexml-html-preview-client.css +8862 -0
  46. package/dist/vendor/litexml/litexml-html-preview-client.js +163816 -0
  47. package/dist/vendor/litexml/style.css +96 -0
  48. package/package.json +11 -12
  49. package/skills/commands-preview.md +3 -3
  50. package/dist/esm-BumPuCXw.mjs +0 -2
@@ -1,7 +1,7 @@
1
- import { $ as drain, $a as identity, $i as reduce$1, $n as try_, $r as get$16, $t as either, A as compose, Aa as pipeArguments, Ai as empty$11, An as orElse$3, Ar as Scope, At as encodeSync, B as ensuring$2, Ba as cached, Bi as head$2, Bn as scoped, Br as set$3, Bt as async, C as Number$, Ca as some, Ci as isConfigError, Cn as match$2, Ct as currentContext, D as String$, Da as left, Di as appendAll, Dn as onError, Dr as taggedEnum, Dt as unsafeMake, Ea as string$1, Ei as append$2, En as negate, Er as tagged, Et as get$20, Fa as redact$1, Fi as findFirstIndex, Fn as retry, Fr as isFailure, Ft as addFinalizer, G as mapError$1, Gi as join, Gn as suspend, Gr as updateAs, Gt as catchIf, H as fromChannel, Ha as hash, Hi as isArray$1, Hn as serviceOption, Hr as updateAndGet, Ht as catchAll, I as make$22, Ia as symbolRedactable, Ii as findLast, In as runFork$1, Ir as void_$1, It as all$5, J as splitLines, Ja as globalValue, Ji as match$1, Jn as tapError, Jr as cons$1, Jt as catchTags, K as run$6, Ka as isObject, Ki as make$23, Kn as sync, Kr as CommitPrototype, Kt as catchSome, L as isConfig, La as toStringUnknown, Li as flatMap$4, Ln as runSync, Lr as ParentSpan, Lt as annotateLogs, M as decodeUnknown, Ma as Class, Mi as filter$2, Mn as provide$1, Mr as isInterrupted, Mt as _void, N as int, Na as NodeInspectSymbol, Ni as filterMap, Nn as provideService, Nr as isInterruptedOnly, Nt as acquireRelease, O as TaggedError, Oa as merge$2, Oi as contains, On as onInterrupt, Or as error$1, Ot as nominal, P as optional$9, Pa as format$3, Pi as findFirst, Pn as repeatN, Pr as fail$3, Pt as acquireUseRelease, Q as unwrapScoped, Qa as dual, Qi as prepend$1, Qn as tryPromise, Qr as fromIterable$2, Qt as dieMessage, R as asyncScoped, Ra as equals, Ri as fromIterable$1, Rn as runtime, Rr as get$15, Rt as as, S as Literal, Sa as orElse$2, Si as omit, Sn as mapInputContext, Sr as unsafeDone, St as succeed$2, Ta as mapInput, Ti as allocate, Tn as matchEffect, Tr as TaggedError$1, Tt as currentTracerEnabled, Ua as string, Ui as isEmptyReadonlyArray, Un as sleep$1, Ur as allLevels, Ut as catchAllCause, Va as combine$2, Vi as headNonEmpty, Vn as serviceFunctions, Vr as update$8, Vt as cached$1, W as mapChunks, Wa as symbol$1, Wi as isNonEmptyReadonlyArray, Wn as succeed$1, Wr as getOrDefault, Wt as catchAllDefect, X as transduce, Xa as constUndefined, Xi as matchRight, Xn as timeout, Xr as of$3, Xt as contextWithEffect, Y as suspend$2, Ya as constFalse, Yi as matchLeft, Yn as tapErrorCause, Yr as isNil, Yt as context, Z as unwrap$16, Za as constVoid, Zi as of$2, Zn as tryMap, Zr as empty$12, Zt as die, _ as fromString, _a as isOption, _i as Reference, _n as logError, _r as failCause, _t as effect, a as make$30, aa as tailNonEmpty, ai as add$1, an as filterOrDieMessage, ar as useSpan, at as embedInput, b as Defect, ba as match, bi as getOption, bn as mapBoth, br as make$28, bt as provideMerge, c as defaultLogger, ci as remove$4, cn as fnUntraced, cr as withParentSpan, ct as fromEffect, d as get$17, da as flatMap$3, di as map$9, dn as forkScoped, dr as zipRight, dt as write, ea as reduceRight, ei as has, en as ensuring, eo as pipe, er as uninterruptible, et as foldLeftChunks, f as make$26, fa as fromNullable, fi as of$1, fn as gen, fr as zipWith, ft as spaced, g as when, ga as isNone, gi as GenericTag, gn as locally, gr as fail$4, gt as make$29, h as value$1, ha as getOrUndefined, hi as unsafeFromArray, hn as isEffect, hr as complete, ht as get$18, i as isMailbox, ia as splitAt, ii as make$27, in as filter$1, io as __toESM, ir as unsafeMakeSemaphore, it as acquireUseRelease$1, ja as BaseProto, ji as every, jn as orElseFail, jr as addFinalizer$1, jt as is$2, k as Union, ka as right, ki as drop, kn as orDie, kr as log, kt as decodeSync, l as prettyLoggerDefault, la as map$10, li as seconds, ln as forEach$1, lr as zip, lt as suspend$1, m as orElse$1, ma as getOrThrow, mi as toArray, mn as interruptible, mr as _await, mt as updateContext, n as make$31, na as sort$2, ni as make$25, nn as failCause$1, no as __exportAll, nr as unlessEffect, nt as fromChannel$1, o as toChannel, oa as take, oi as fromIterable$3, on as flatMap$1, or as when$1, ot as ensuring$1, p as updateEffect, pa as getOrElse, pi as reduce$2, pn as ignore, pr as DeferredTypeId, pt as runFork, q as runCollect, qa as isTagged, qi as map$7, qn as tap, qr as round, qt as catchTag, r as unsafeAdd, ra as span, ri as set$2, rn as failSync, ro as __require, rr as unsafeMakeLatch, rt as unwrapScoped$1, s as unify, sa as unsafeGet, si as has$1, sn as flatten$3, sr as withFiberRuntime, st as flatMap$2, t as join$1, ta as some$1, ti as isEmpty$5, tn as fail$2, to as __commonJSMin, tr as uninterruptibleMask, tt as forEach, u as withMinimumLogLevel, ua as filter$3, ui as appendAll$1, un as forkDaemon, ur as zipLeft, ut as void_, v as Cause, va as isSome, vi as Tag$2, vn as logWarning, vr as interrupt, vt as mergeAll, w as NumberFromString, wa as boolean$3, wi as isMissingDataOnly, wn as matchCauseEffect, wr as Error$1, wt as currentLoggers, x as Int, xa as none$3, xi as merge$3, xn as mapError, xr as succeed$3, xt as scoped$1, y as Date$, ya as map$8, yi as get$19, yn as map$6, yr as isDone, yt as provide, z as bufferChunks, za as symbol$2, zi as getSomes, zn as scope, zr as make$24, zt as asVoid } from "./esm-DupC6TTP.mjs";
2
- import { _ as LinkNode, a as HeadingNode, b as CodeHighlightNode, d as ListItemNode, f as ListNode, g as AutoLinkNode, o as QuoteNode, x as CodeNode } from "./LexicalRichText.node-D73RR0Ck.mjs";
3
- import { a as HorizontalRuleNode } from "./LexicalExtension.node-CMsupJZs.mjs";
4
- import { dn as ElementNode, un as DecoratorNode } from "./Lexical.node-DnR_u_Ke.mjs";
1
+ import { $ as drain, $a as identity, $i as reduce$1, $n as try_, $r as get$16, $t as either, A as compose, Aa as pipeArguments, Ai as empty$11, An as orElse$3, Ar as Scope, At as encodeSync, B as ensuring$2, Ba as cached, Bi as head$2, Bn as scoped, Br as set$3, Bt as async, C as Number$, Ca as some, Ci as isConfigError, Cn as match$2, Ct as currentContext, D as String$, Da as left, Di as appendAll, Dn as onError, Dr as taggedEnum, Dt as unsafeMake, Ea as string$1, Ei as append$2, En as negate, Er as tagged, Et as get$20, Fa as redact$1, Fi as findFirstIndex, Fn as retry, Fr as isFailure, Ft as addFinalizer, G as mapError$1, Gi as join$1, Gn as suspend, Gr as updateAs, Gt as catchIf, H as fromChannel, Ha as hash, Hi as isArray$1, Hn as serviceOption, Hr as updateAndGet, Ht as catchAll, I as make$22, Ia as symbolRedactable, Ii as findLast, In as runFork$1, Ir as void_$1, It as all$5, J as splitLines, Ja as globalValue, Ji as match$1, Jn as tapError, Jr as cons$1, Jt as catchTags, K as run$6, Ka as isObject, Ki as make$23, Kn as sync, Kr as CommitPrototype, Kt as catchSome, L as isConfig, La as toStringUnknown, Li as flatMap$4, Ln as runSync, Lr as ParentSpan, Lt as annotateLogs, M as decodeUnknown, Ma as Class, Mi as filter$2, Mn as provide$1, Mr as isInterrupted, Mt as _void, N as int, Na as NodeInspectSymbol, Ni as filterMap, Nn as provideService, Nr as isInterruptedOnly, Nt as acquireRelease, O as TaggedError, Oa as merge$2, Oi as contains, On as onInterrupt, Or as error$1, Ot as nominal, P as optional$9, Pa as format$3, Pi as findFirst, Pn as repeatN, Pr as fail$3, Pt as acquireUseRelease, Q as unwrapScoped, Qa as dual, Qi as prepend$1, Qn as tryPromise, Qr as fromIterable$2, Qt as dieMessage, R as asyncScoped, Ra as equals, Ri as fromIterable$1, Rn as runtime, Rr as get$15, Rt as as, S as Literal, Sa as orElse$2, Si as omit, Sn as mapInputContext, Sr as unsafeDone, St as succeed$2, Ta as mapInput, Ti as allocate, Tn as matchEffect, Tr as TaggedError$1, Tt as currentTracerEnabled, Ua as string, Ui as isEmptyReadonlyArray, Un as sleep$1, Ur as allLevels, Ut as catchAllCause, Va as combine$2, Vi as headNonEmpty, Vn as serviceFunctions, Vr as update$8, Vt as cached$1, W as mapChunks, Wa as symbol$1, Wi as isNonEmptyReadonlyArray, Wn as succeed$1, Wr as getOrDefault, Wt as catchAllDefect, X as transduce, Xa as constUndefined, Xi as matchRight, Xn as timeout, Xr as of$3, Xt as contextWithEffect, Y as suspend$2, Ya as constFalse, Yi as matchLeft, Yn as tapErrorCause, Yr as isNil, Yt as context, Z as unwrap$16, Za as constVoid, Zi as of$2, Zn as tryMap, Zr as empty$12, Zt as die, _ as fromString, _a as isOption, _i as Reference, _n as logError, _r as failCause, _t as effect, a as make$30, aa as tailNonEmpty, ai as add$1, an as filterOrDieMessage, ar as useSpan, at as embedInput, b as Defect, ba as match, bi as getOption, bn as mapBoth, br as make$28, bt as provideMerge, c as defaultLogger, ci as remove$4, cn as fnUntraced, cr as withParentSpan, ct as fromEffect, d as get$17, da as flatMap$3, di as map$9, dn as forkScoped, dr as zipRight, dt as write, ea as reduceRight, ei as has, en as ensuring, eo as pipe, er as uninterruptible, et as foldLeftChunks, f as make$26, fa as fromNullable, fi as of$1, fn as gen, fr as zipWith, ft as spaced, g as when, ga as isNone, gi as GenericTag, gn as locally, gr as fail$4, gt as make$29, h as value$1, ha as getOrUndefined, hi as unsafeFromArray, hn as isEffect, hr as complete, ht as get$18, i as isMailbox, ia as splitAt, ii as make$27, in as filter$1, io as __toESM, ir as unsafeMakeSemaphore, it as acquireUseRelease$1, ja as BaseProto, ji as every, jn as orElseFail, jr as addFinalizer$1, jt as is$2, k as Union, ka as right, ki as drop, kn as orDie, kr as log, kt as decodeSync, l as prettyLoggerDefault, la as map$10, li as seconds, ln as forEach$1, lr as zip, lt as suspend$1, m as orElse$1, ma as getOrThrow, mi as toArray, mn as interruptible, mr as _await, mt as updateContext, n as make$31, na as sort$2, ni as make$25, nn as failCause$1, no as __exportAll, nr as unlessEffect, nt as fromChannel$1, o as toChannel, oa as take, oi as fromIterable$3, on as flatMap$1, or as when$1, ot as ensuring$1, p as updateEffect, pa as getOrElse, pi as reduce$2, pn as ignore, pr as DeferredTypeId, pt as runFork, q as runCollect, qa as isTagged, qi as map$7, qn as tap, qr as round, qt as catchTag, r as unsafeAdd, ra as span, ri as set$2, rn as failSync, ro as __require, rr as unsafeMakeLatch, rt as unwrapScoped$1, s as unify, sa as unsafeGet, si as has$1, sn as flatten$3, sr as withFiberRuntime, st as flatMap$2, t as join$2, ta as some$1, ti as isEmpty$5, tn as fail$2, to as __commonJSMin, tr as uninterruptibleMask, tt as forEach, u as withMinimumLogLevel, ua as filter$3, ui as appendAll$1, un as forkDaemon, ur as zipLeft, ut as void_, v as Cause, va as isSome, vi as Tag$2, vn as logWarning, vr as interrupt, vt as mergeAll, w as NumberFromString, wa as boolean$3, wi as isMissingDataOnly, wn as matchCauseEffect, wr as Error$1, wt as currentLoggers, x as Int, xa as none$3, xi as merge$3, xn as mapError, xr as succeed$3, xt as scoped$1, y as Date$, ya as map$8, yi as get$19, yn as map$6, yr as isDone, yt as provide, z as bufferChunks, za as symbol$2, zi as getSomes, zn as scope, zr as make$24, zt as asVoid } from "./esm-BNu4sUWV.mjs";
2
+ import { _ as LinkNode, a as HeadingNode, b as CodeHighlightNode, d as ListItemNode, f as ListNode, g as AutoLinkNode, o as QuoteNode, x as CodeNode } from "./LexicalRichText.node-BUJZAiap.mjs";
3
+ import { a as HorizontalRuleNode } from "./LexicalExtension.node-BWH6xbzG.mjs";
4
+ import { dn as ElementNode, un as DecoratorNode } from "./Lexical.node-BlCLnfA6.mjs";
5
5
  import { createRequire } from "node:module";
6
6
  import * as ChildProcess from "node:child_process";
7
7
  import childProcess, { execFile, spawn } from "node:child_process";
@@ -13,7 +13,7 @@ import fs, { existsSync, mkdirSync, openSync, readFileSync, realpathSync, rename
13
13
  import * as OS from "node:os";
14
14
  import os, { arch, platform } from "node:os";
15
15
  import * as Path from "node:path";
16
- import path, { basename } from "node:path";
16
+ import path, { basename, dirname, join } from "node:path";
17
17
  import * as NodeUrl from "node:url";
18
18
  import { fileURLToPath } from "node:url";
19
19
  import * as readline from "node:readline";
@@ -537,7 +537,7 @@ const stringifyInternal = (self) => {
537
537
  self.italicized,
538
538
  self.strikethrough,
539
539
  self.underlined
540
- ]))}${join(self.commands, "")}`;
540
+ ]))}${join$1(self.commands, "")}`;
541
541
  };
542
542
  //#endregion
543
543
  //#region ../../node_modules/.pnpm/@effect+printer-ansi@0.49.0_@effect+typeclass@0.40.0_effect@3.21.4__effect@3.21.4/node_modules/@effect/printer-ansi/dist/esm/Ansi.js
@@ -3000,24 +3000,24 @@ function renderNextFrame$4(state, options) {
3000
3000
  return gen(function* () {
3001
3001
  const path = yield* Path$1;
3002
3002
  const columns = yield* (yield* Terminal).columns;
3003
- const figures$9 = yield* figures;
3003
+ const figures$10 = yield* figures;
3004
3004
  const currentPath = yield* resolveCurrentPath(state.path, options);
3005
3005
  const selectedPath = state.files[state.cursor];
3006
3006
  const resolvedPath = path.resolve(currentPath, selectedPath);
3007
- const resolvedPathMsg = figures$9.pointerSmall.pipe(cat(space$1), cat(text$11(resolvedPath)), annotate(blackBright));
3007
+ const resolvedPathMsg = figures$10.pointerSmall.pipe(cat(space$1), cat(text$11(resolvedPath)), annotate(blackBright));
3008
3008
  if (showConfirmation(state.confirm)) {
3009
3009
  const leadingSymbol = annotate(text$11("?"), cyanBright);
3010
- const trailingSymbol = annotate(figures$9.pointerSmall, blackBright);
3010
+ const trailingSymbol = annotate(figures$10.pointerSmall, blackBright);
3011
3011
  const promptMsg = renderPrompt(annotate(text$11("(Y/n)"), blackBright), CONFIRM_MESSAGE, leadingSymbol, trailingSymbol);
3012
3012
  return cursorHide.pipe(cat(promptMsg), cat(hardLine), cat(resolvedPathMsg), optimize(Deep), render$2({
3013
3013
  style: "pretty",
3014
3014
  options: { lineWidth: columns }
3015
3015
  }));
3016
3016
  }
3017
- const leadingSymbol = annotate(figures$9.tick, green);
3018
- const trailingSymbol = annotate(figures$9.ellipsis, blackBright);
3017
+ const leadingSymbol = annotate(figures$10.tick, green);
3018
+ const trailingSymbol = annotate(figures$10.ellipsis, blackBright);
3019
3019
  const promptMsg = renderPrompt(empty$8, options.message, leadingSymbol, trailingSymbol);
3020
- const files = renderFiles(state, state.files, figures$9, options);
3020
+ const files = renderFiles(state, state.files, figures$10, options);
3021
3021
  return cursorHide.pipe(cat(promptMsg), cat(hardLine), cat(resolvedPathMsg), cat(hardLine), cat(files), optimize(Deep), render$2({
3022
3022
  style: "pretty",
3023
3023
  options: { lineWidth: columns }
@@ -3027,9 +3027,9 @@ function renderNextFrame$4(state, options) {
3027
3027
  function renderSubmission$4(value, options) {
3028
3028
  return gen(function* () {
3029
3029
  const columns = yield* (yield* Terminal).columns;
3030
- const figures$10 = yield* figures;
3031
- const leadingSymbol = annotate(figures$10.tick, green);
3032
- const trailingSymbol = annotate(figures$10.ellipsis, blackBright);
3030
+ const figures$9 = yield* figures;
3031
+ const leadingSymbol = annotate(figures$9.tick, green);
3032
+ const trailingSymbol = annotate(figures$9.ellipsis, blackBright);
3033
3033
  return renderPrompt(empty$8, options.message, leadingSymbol, trailingSymbol).pipe(cat(space$1), cat(annotate(text$11(value), white$1)), cat(hardLine), render$2({
3034
3034
  style: "pretty",
3035
3035
  options: { lineWidth: columns }
@@ -3208,10 +3208,10 @@ function renderOutput$3(state, leadingSymbol, trailingSymbol, options, submitted
3208
3208
  function renderNextFrame$3(state, options) {
3209
3209
  return gen(function* () {
3210
3210
  const columns = yield* (yield* Terminal).columns;
3211
- const figures$7 = yield* figures;
3211
+ const figures$8 = yield* figures;
3212
3212
  const leadingSymbol = annotate(text$11("?"), cyanBright);
3213
- const trailingSymbol = annotate(figures$7.pointerSmall, blackBright);
3214
- const errorMsg = renderError$1(state, figures$7.pointerSmall);
3213
+ const trailingSymbol = annotate(figures$8.pointerSmall, blackBright);
3214
+ const errorMsg = renderError$1(state, figures$8.pointerSmall);
3215
3215
  return renderOutput$3(state, leadingSymbol, trailingSymbol, options).pipe(cat(errorMsg), optimize(Deep), render$2({
3216
3216
  style: "pretty",
3217
3217
  options: { lineWidth: columns }
@@ -3221,8 +3221,8 @@ function renderNextFrame$3(state, options) {
3221
3221
  function renderSubmission$3(nextState, options) {
3222
3222
  return gen(function* () {
3223
3223
  const columns = yield* (yield* Terminal).columns;
3224
- const figures$8 = yield* figures;
3225
- return renderOutput$3(nextState, annotate(figures$8.tick, green), annotate(figures$8.ellipsis, blackBright), options, true).pipe(cat(hardLine), optimize(Deep), render$2({
3224
+ const figures$7 = yield* figures;
3225
+ return renderOutput$3(nextState, annotate(figures$7.tick, green), annotate(figures$7.ellipsis, blackBright), options, true).pipe(cat(hardLine), optimize(Deep), render$2({
3226
3226
  style: "pretty",
3227
3227
  options: { lineWidth: columns }
3228
3228
  }));
@@ -3902,7 +3902,7 @@ const wizard$3 = /*#__PURE__*/ dual(2, (self, help) => wizardInternal$3(self, he
3902
3902
  const getChoicesInternal = (self) => {
3903
3903
  switch (self._tag) {
3904
3904
  case "Bool": return some("true | false");
3905
- case "Choice": return some(pipe(map$7(self.alternatives, ([choice]) => choice), join(" | ")));
3905
+ case "Choice": return some(pipe(map$7(self.alternatives, ([choice]) => choice), join$1(" | ")));
3906
3906
  case "DateTime": return some("date");
3907
3907
  case "Float":
3908
3908
  case "Integer":
@@ -3915,7 +3915,7 @@ const getChoicesInternal = (self) => {
3915
3915
  const getHelpInternal$3 = (self) => {
3916
3916
  switch (self._tag) {
3917
3917
  case "Bool": return text$10("A true or false value.");
3918
- case "Choice": return text$10(`One of the following: ${pipe(map$7(self.alternatives, ([choice]) => choice), join(", "))}`);
3918
+ case "Choice": return text$10(`One of the following: ${pipe(map$7(self.alternatives, ([choice]) => choice), join$1(", "))}`);
3919
3919
  case "DateTime": return text$10("A date without a time-zone in the ISO-8601 format, such as 2007-12-03T10:15:30.");
3920
3920
  case "Float": return text$10("A floating point number.");
3921
3921
  case "Integer": return text$10("An integer.");
@@ -3958,7 +3958,7 @@ const validateInternal$1 = (self, value, config) => {
3958
3958
  }));
3959
3959
  case "Choice": return orElseFail(value, () => `Choice options to not have a default value`).pipe(flatMap$1((value) => findFirst(self.alternatives, ([choice]) => choice === value)), mapBoth({
3960
3960
  onFailure: () => {
3961
- return `Expected one of the following cases: ${pipe(map$7(self.alternatives, ([choice]) => choice), join(", "))}`;
3961
+ return `Expected one of the following cases: ${pipe(map$7(self.alternatives, ([choice]) => choice), join$1(", "))}`;
3962
3962
  },
3963
3963
  onSuccess: ([, value]) => value
3964
3964
  }));
@@ -4045,7 +4045,7 @@ const getBashCompletions$2 = (self) => {
4045
4045
  case "directory": return self.pathExists === "yes" || self.pathExists === "either" ? "$(compgen -d \"${cur}\")" : "";
4046
4046
  case "either": return self.pathExists === "yes" || self.pathExists === "either" ? "$(compgen -f \"${cur}\")" : "";
4047
4047
  }
4048
- case "Choice": return `$(compgen -W "${pipe(map$7(self.alternatives, ([choice]) => choice), join(","))}" -- "\${cur}")`;
4048
+ case "Choice": return `$(compgen -W "${pipe(map$7(self.alternatives, ([choice]) => choice), join$1(","))}" -- "\${cur}")`;
4049
4049
  }
4050
4050
  };
4051
4051
  /** @internal */
@@ -4063,14 +4063,14 @@ const getFishCompletions$3 = (self) => {
4063
4063
  case "directory": return self.pathExists === "yes" || self.pathExists === "either" ? make$23("-r", "-f", "-a", `"(__fish_complete_directories (commandline -ct))"`) : make$23("-r");
4064
4064
  case "either": return self.pathExists === "yes" || self.pathExists === "either" ? make$23("-r", "-F") : make$23("-r");
4065
4065
  }
4066
- case "Choice": return make$23("-r", "-f", "-a", `"{${pipe(map$7(self.alternatives, ([choice]) => `${choice}''`), join(","))}}"`);
4066
+ case "Choice": return make$23("-r", "-f", "-a", `"{${pipe(map$7(self.alternatives, ([choice]) => `${choice}''`), join$1(","))}}"`);
4067
4067
  }
4068
4068
  };
4069
4069
  /** @internal */
4070
4070
  const getZshCompletions$3 = (self) => {
4071
4071
  switch (self._tag) {
4072
4072
  case "Bool": return "";
4073
- case "Choice": return `:CHOICE:(${pipe(map$7(self.alternatives, ([name]) => name), join(" "))})`;
4073
+ case "Choice": return `:CHOICE:(${pipe(map$7(self.alternatives, ([name]) => name), join$1(" "))})`;
4074
4074
  case "DateTime": return "";
4075
4075
  case "Float": return "";
4076
4076
  case "Integer": return "";
@@ -4166,7 +4166,7 @@ const render$1 = (self, config) => {
4166
4166
  onNone: () => empty$7,
4167
4167
  onSome: (s) => concat$1(space, text$10(s))
4168
4168
  }) : empty$7;
4169
- const nameInfo = text$10(join(config.showAllNames ? self.names : self.names.length > 1 ? pipe(filter$2(self.names, (name) => name.startsWith("--")), head$2, map$8(of$2), getOrElse(() => self.names)) : self.names, ", "));
4169
+ const nameInfo = text$10(join$1(config.showAllNames ? self.names : self.names.length > 1 ? pipe(filter$2(self.names, (name) => name.startsWith("--")), head$2, map$8(of$2), getOrElse(() => self.names)) : self.names, ", "));
4170
4170
  return config.showAllNames && self.names.length > 1 ? of$2(spans([
4171
4171
  text$10("("),
4172
4172
  nameInfo,
@@ -4550,7 +4550,7 @@ const getFishCompletions$2 = (self) => {
4550
4550
  case "Empty": return empty$11();
4551
4551
  case "Single": {
4552
4552
  const description = getShortDescription$2(self);
4553
- return pipe(getFishCompletions$3(self.primitiveType), appendAll(description.length === 0 ? empty$11() : of$2(`-d '${description}'`)), join(" "), of$2);
4553
+ return pipe(getFishCompletions$3(self.primitiveType), appendAll(description.length === 0 ? empty$11() : of$2(`-d '${description}'`)), join$1(" "), of$2);
4554
4554
  }
4555
4555
  case "Both": return pipe(getFishCompletions$2(self.left), appendAll(getFishCompletions$2(self.right)));
4556
4556
  case "Map":
@@ -4796,7 +4796,7 @@ const getIdentifierInternal = (self) => {
4796
4796
  case "Both":
4797
4797
  case "OrElse": return match$1(getSomes([getIdentifierInternal(self.left), getIdentifierInternal(self.right)]), {
4798
4798
  onEmpty: () => none$3(),
4799
- onNonEmpty: (ids) => some(join(ids, ", "))
4799
+ onNonEmpty: (ids) => some(join$1(ids, ", "))
4800
4800
  });
4801
4801
  case "KeyValueMap":
4802
4802
  case "Variadic": return getIdentifierInternal(self.argumentOption);
@@ -5522,7 +5522,7 @@ const getBashCompletions$1 = (self) => {
5522
5522
  switch (self._tag) {
5523
5523
  case "Empty": return empty$11();
5524
5524
  case "Single": {
5525
- const cases = join(getNames$1(self), "|");
5525
+ const cases = join$1(getNames$1(self), "|");
5526
5526
  const compgen = getBashCompletions$2(self.primitiveType);
5527
5527
  return make$23(`${cases})`, ` COMPREPLY=( ${compgen} )`, ` return 0`, ` ;;`);
5528
5528
  }
@@ -5542,7 +5542,7 @@ const getFishCompletions$1 = (self) => {
5542
5542
  case "Single": {
5543
5543
  const description = getShortDescription$1(self);
5544
5544
  const order = mapInput(boolean$3, (tuple) => !tuple[0]);
5545
- return pipe(prepend$1(self.aliases, self.name), map$7((name) => [name.length === 1, name]), sort$2(order), flatMap$4(([isShort, name]) => make$23(isShort ? "-s" : "-l", name)), appendAll(getFishCompletions$3(self.primitiveType)), appendAll(description.length === 0 ? empty$11() : of$2(`-d '${description}'`)), join(" "), of$2);
5545
+ return pipe(prepend$1(self.aliases, self.name), map$7((name) => [name.length === 1, name]), sort$2(order), flatMap$4(([isShort, name]) => make$23(isShort ? "-s" : "-l", name)), appendAll(getFishCompletions$3(self.primitiveType)), appendAll(description.length === 0 ? empty$11() : of$2(`-d '${description}'`)), join$1(" "), of$2);
5546
5546
  }
5547
5547
  case "KeyValueMap":
5548
5548
  case "Variadic": return getFishCompletions$1(self.argumentOption);
@@ -5565,7 +5565,7 @@ const getZshCompletions$1 = (self, state = {
5565
5565
  const description = getShortDescription$1(self);
5566
5566
  const possibleValues = getZshCompletions$3(self.primitiveType);
5567
5567
  const multiple = state.multiple ? "*" : "";
5568
- const conflicts = isNonEmptyReadonlyArray(state.conflicts) ? `(${join(state.conflicts, " ")})` : "";
5568
+ const conflicts = isNonEmptyReadonlyArray(state.conflicts) ? `(${join$1(state.conflicts, " ")})` : "";
5569
5569
  return map$7(names, (name) => `${conflicts}${multiple}${name}[${escape$1(description)}]${possibleValues}`);
5570
5570
  }
5571
5571
  case "KeyValueMap": return getZshCompletions$1(self.argumentOption, {
@@ -5991,7 +5991,7 @@ const parseInternal = (self, args, config) => {
5991
5991
  if (isCommandMismatch(err)) {
5992
5992
  const parentName = getOrElse(head$2(names), () => "");
5993
5993
  const childNames = map$7(subcommands, ([name]) => `'${name}'`);
5994
- return fail$2(commandMismatch(p$1(`Invalid subcommand for ${parentName} - use${childNames.length === 1 ? "" : " one of"} ${join(childNames, ", ")}`)));
5994
+ return fail$2(commandMismatch(p$1(`Invalid subcommand for ${parentName} - use${childNames.length === 1 ? "" : " one of"} ${join$1(childNames, ", ")}`)));
5995
5995
  }
5996
5996
  return fail$2(err);
5997
5997
  }));
@@ -6048,7 +6048,7 @@ const wizardInternal = (self, prefix, config) => {
6048
6048
  case "GetUserInput":
6049
6049
  case "Standard": return gen(function* () {
6050
6050
  const logCurrentCommand = get$15(commandLineRef).pipe(flatMap$1((commandLine) => {
6051
- return log(toAnsiText(p$1(pipe(strong(highlight("COMMAND:", cyan)), concat$1(space), concat$1(highlight(join(commandLine, " "), magenta))))));
6051
+ return log(toAnsiText(p$1(pipe(strong(highlight("COMMAND:", cyan)), concat$1(space), concat$1(highlight(join$1(commandLine, " "), magenta))))));
6052
6052
  }));
6053
6053
  if (isStandard(self)) {
6054
6054
  yield* logCurrentCommand;
@@ -6136,15 +6136,15 @@ const getBashCompletionsInternal = (self, executable) => traverseCommand(self, e
6136
6136
  const optionCases = isStandard(info.command) ? getBashCompletions$1(info.command.options) : empty$11();
6137
6137
  const wordList = appendAll(optionNames, pipe(info.subcommands, map$7(([name]) => name), sort$2(string$1)));
6138
6138
  const preformatted = isEmptyReadonlyArray(info.parentCommands) ? of$2(info.command.name) : pipe(info.parentCommands, append$2(info.command.name), map$7((command) => command.replaceAll("-", "__")));
6139
- const caseName = join(preformatted, ",");
6140
- const funcName = join(preformatted, "__");
6139
+ const caseName = join$1(preformatted, ",");
6140
+ const funcName = join$1(preformatted, "__");
6141
6141
  return succeed$1(append$2(state, [isEmptyReadonlyArray(info.parentCommands) ? empty$11() : [
6142
6142
  `${caseName})`,
6143
6143
  ` cmd="${funcName}"`,
6144
6144
  " ;;"
6145
6145
  ], [
6146
6146
  `${funcName})`,
6147
- ` opts="${join(wordList, " ")}"`,
6147
+ ` opts="${join$1(wordList, " ")}"`,
6148
6148
  ` if [[ \${cur} == -* || \${COMP_CWORD} -eq ${info.level + 1} ]] ; then`,
6149
6149
  " COMPREPLY=( $(compgen -W \"${opts}\" -- \"${cur}\") )",
6150
6150
  " return 0",
@@ -6193,26 +6193,26 @@ const getFishCompletionsInternal = (self, executable) => traverseCommand(self, e
6193
6193
  const baseTemplate = make$23("complete", "-c", executable);
6194
6194
  const optionsCompletions = getFishCompletions$1(isStandard(info.command) ? all$3([builtIns, info.command.options]) : builtIns);
6195
6195
  const argsCompletions = isStandard(info.command) ? getFishCompletions$2(info.command.args) : empty$11();
6196
- const rootCompletions = (conditionals) => pipe(map$7(optionsCompletions, (option) => pipe(baseTemplate, appendAll(conditionals), append$2(option), join(" "))), appendAll(map$7(argsCompletions, (option) => pipe(baseTemplate, appendAll(conditionals), append$2(option), join(" ")))));
6196
+ const rootCompletions = (conditionals) => pipe(map$7(optionsCompletions, (option) => pipe(baseTemplate, appendAll(conditionals), append$2(option), join$1(" "))), appendAll(map$7(argsCompletions, (option) => pipe(baseTemplate, appendAll(conditionals), append$2(option), join$1(" ")))));
6197
6197
  const subcommandCompletions = (conditionals) => map$7(info.subcommands, ([name, subcommand]) => {
6198
6198
  const description = getShortDescription(subcommand);
6199
- return pipe(baseTemplate, appendAll(conditionals), appendAll(make$23("-f", "-a", `"${name}"`)), appendAll(description.length === 0 ? empty$11() : make$23("-d", `'${description}'`)), join(" "));
6199
+ return pipe(baseTemplate, appendAll(conditionals), appendAll(make$23("-f", "-a", `"${name}"`)), appendAll(description.length === 0 ? empty$11() : make$23("-d", `'${description}'`)), join$1(" "));
6200
6200
  });
6201
6201
  if (isEmptyReadonlyArray(info.parentCommands)) {
6202
6202
  const conditionals = make$23("-n", "\"__fish_use_subcommand\"");
6203
6203
  return succeed$1(pipe(state, appendAll(rootCompletions(conditionals)), appendAll(subcommandCompletions(conditionals))));
6204
6204
  }
6205
- const conditionals = make$23("-n", `"${pipe(appendAll(pipe(info.parentCommands, drop(1), append$2(info.command.name), map$7((command) => `__fish_seen_subcommand_from ${command}`)), map$7(info.subcommands, ([name]) => `not __fish_seen_subcommand_from ${name}`)), join("; and "))}"`);
6205
+ const conditionals = make$23("-n", `"${pipe(appendAll(pipe(info.parentCommands, drop(1), append$2(info.command.name), map$7((command) => `__fish_seen_subcommand_from ${command}`)), map$7(info.subcommands, ([name]) => `not __fish_seen_subcommand_from ${name}`)), join$1("; and "))}"`);
6206
6206
  return succeed$1(pipe(state, appendAll(rootCompletions(conditionals)), appendAll(subcommandCompletions(conditionals))));
6207
6207
  });
6208
6208
  const getZshCompletionsInternal = (self, executable) => traverseCommand(self, empty$11(), (state, info) => {
6209
6209
  const preformatted = isEmptyReadonlyArray(info.parentCommands) ? of$2(info.command.name) : pipe(info.parentCommands, append$2(info.command.name), map$7((command) => command.replaceAll("-", "__")));
6210
- const underscoreName = join(preformatted, "__");
6211
- const spaceName = join(preformatted, " ");
6210
+ const underscoreName = join$1(preformatted, "__");
6211
+ const spaceName = join$1(preformatted, " ");
6212
6212
  const subcommands = pipe(info.subcommands, map$7(([name, subcommand]) => {
6213
6213
  return `'${name}:${getShortDescription(subcommand)}' \\`;
6214
6214
  }));
6215
- const commands = isEmptyReadonlyArray(subcommands) ? `commands=()` : `commands=(\n${join(indentAll(subcommands, 8), "\n")}\n )`;
6215
+ const commands = isEmptyReadonlyArray(subcommands) ? `commands=()` : `commands=(\n${join$1(indentAll(subcommands, 8), "\n")}\n )`;
6216
6216
  return succeed$1(appendAll(state, [
6217
6217
  `(( $+functions[_${underscoreName}_commands] )) ||`,
6218
6218
  `_${underscoreName}_commands() {`,
@@ -6293,7 +6293,7 @@ const getZshSubcommandCases = (self, parentCommands, subcommands) => {
6293
6293
  const parentNames = getNamesInternal(self.parent);
6294
6294
  const parentLines = getZshSubcommandCases(self.parent, parentCommands, appendAll(subcommands, nextSubcommands));
6295
6295
  const childCases = pipe(self.children, flatMap$4((child) => getZshSubcommandCases(child, appendAll(parentCommands, parentNames), subcommands)));
6296
- const hyphenName = pipe(appendAll(parentCommands, parentNames), join("-"));
6296
+ const hyphenName = pipe(appendAll(parentCommands, parentNames), join$1("-"));
6297
6297
  return appendAll(parentLines, pipe(parentNames, flatMap$4((parentName) => [
6298
6298
  "case $state in",
6299
6299
  ` (${parentName})`,
@@ -6392,9 +6392,9 @@ const handleBuiltInOption = (self, executable, args, builtIn, execute, config, o
6392
6392
  case "ShowCompletions": {
6393
6393
  const command = fromIterable$1(getNames(self.command))[0];
6394
6394
  switch (builtIn.shellType) {
6395
- case "bash": return getBashCompletions(self.command, command).pipe(flatMap$1((completions) => log(join(completions, "\n"))));
6396
- case "fish": return getFishCompletions(self.command, command).pipe(flatMap$1((completions) => log(join(completions, "\n"))));
6397
- case "zsh": return getZshCompletions(self.command, command).pipe(flatMap$1((completions) => log(join(completions, "\n"))));
6395
+ case "bash": return getBashCompletions(self.command, command).pipe(flatMap$1((completions) => log(join$1(completions, "\n"))));
6396
+ case "fish": return getFishCompletions(self.command, command).pipe(flatMap$1((completions) => log(join$1(completions, "\n"))));
6397
+ case "zsh": return getZshCompletions(self.command, command).pipe(flatMap$1((completions) => log(join$1(completions, "\n"))));
6398
6398
  }
6399
6399
  }
6400
6400
  case "ShowWizard": {
@@ -6468,7 +6468,7 @@ const getWizardPrefix = (builtIn, rootCommand, commandLineArgs) => {
6468
6468
  return appendAll(rootCommand.split(/\s+/), args);
6469
6469
  };
6470
6470
  const renderWizardArgs = (args) => {
6471
- const params = pipe(filter$2(args, (param) => param.length > 0), join(" "));
6471
+ const params = pipe(filter$2(args, (param) => param.length > 0), join$1(" "));
6472
6472
  const executeMsg = text$10("You may now execute your command directly with the following options and arguments:");
6473
6473
  return blocks([
6474
6474
  p$1(strong(code("Wizard Mode Complete!"))),
@@ -7713,7 +7713,7 @@ const makePlatform$1 = () => (options) => PlatformWorker$1.of({
7713
7713
  for (const [message, transfers] of buffer) port.postMessage([0, message], transfers);
7714
7714
  buffer.length = 0;
7715
7715
  }
7716
- return yield* restore(join$1(fiberSet));
7716
+ return yield* restore(join$2(fiberSet));
7717
7717
  }).pipe(scoped));
7718
7718
  const send = (message, transfers) => try_({
7719
7719
  try: () => {
@@ -9235,7 +9235,7 @@ const normalizeErrorBody = (body) => {
9235
9235
  };
9236
9236
  //#endregion
9237
9237
  //#region src/domain/gate.ts
9238
- const SAFE_METHODS = new Set([
9238
+ const SAFE_METHODS = /* @__PURE__ */ new Set([
9239
9239
  "GET",
9240
9240
  "HEAD",
9241
9241
  "OPTIONS"
@@ -10048,7 +10048,7 @@ function parseBody(res) {
10048
10048
  function decodeWithSchema(schema, body) {
10049
10049
  return tryPromise({
10050
10050
  try: async () => {
10051
- const { Schema: SchemaMod } = await import("./esm-BumPuCXw.mjs");
10051
+ const { Schema: SchemaMod } = await import("./esm-jbwcVZth.mjs");
10052
10052
  return SchemaMod.decodeUnknownPromise(schema)(body);
10053
10053
  },
10054
10054
  catch: (err) => new ServerError({
@@ -10191,7 +10191,7 @@ const toNumber$1 = (v) => {
10191
10191
  if (Number.isFinite(n)) return n;
10192
10192
  }
10193
10193
  };
10194
- const TERMINAL = new Set([
10194
+ const TERMINAL = /* @__PURE__ */ new Set([
10195
10195
  "completed",
10196
10196
  "partial_failed",
10197
10197
  "succeeded",
@@ -13096,7 +13096,7 @@ const VALUE = Symbol("value");
13096
13096
  //#endregion
13097
13097
  //#region ../../node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/decode-codepoint.js
13098
13098
  var _a;
13099
- const decodeMap = new Map([
13099
+ const decodeMap = /* @__PURE__ */ new Map([
13100
13100
  [0, 65533],
13101
13101
  [128, 8364],
13102
13102
  [130, 8218],
@@ -14193,7 +14193,7 @@ var Tokenizer = class {
14193
14193
  };
14194
14194
  //#endregion
14195
14195
  //#region ../../node_modules/.pnpm/htmlparser2@10.1.0/node_modules/htmlparser2/dist/esm/Parser.js
14196
- const formTags = new Set([
14196
+ const formTags = /* @__PURE__ */ new Set([
14197
14197
  "input",
14198
14198
  "option",
14199
14199
  "optgroup",
@@ -14202,28 +14202,28 @@ const formTags = new Set([
14202
14202
  "datalist",
14203
14203
  "textarea"
14204
14204
  ]);
14205
- const pTag = new Set(["p"]);
14206
- const tableSectionTags = new Set(["thead", "tbody"]);
14207
- const ddtTags = new Set(["dd", "dt"]);
14208
- const rtpTags = new Set(["rt", "rp"]);
14209
- const openImpliesClose = new Map([
14210
- ["tr", new Set([
14205
+ const pTag = /* @__PURE__ */ new Set(["p"]);
14206
+ const tableSectionTags = /* @__PURE__ */ new Set(["thead", "tbody"]);
14207
+ const ddtTags = /* @__PURE__ */ new Set(["dd", "dt"]);
14208
+ const rtpTags = /* @__PURE__ */ new Set(["rt", "rp"]);
14209
+ const openImpliesClose = /* @__PURE__ */ new Map([
14210
+ ["tr", /* @__PURE__ */ new Set([
14211
14211
  "tr",
14212
14212
  "th",
14213
14213
  "td"
14214
14214
  ])],
14215
- ["th", new Set(["th"])],
14216
- ["td", new Set([
14215
+ ["th", /* @__PURE__ */ new Set(["th"])],
14216
+ ["td", /* @__PURE__ */ new Set([
14217
14217
  "thead",
14218
14218
  "th",
14219
14219
  "td"
14220
14220
  ])],
14221
- ["body", new Set([
14221
+ ["body", /* @__PURE__ */ new Set([
14222
14222
  "head",
14223
14223
  "link",
14224
14224
  "script"
14225
14225
  ])],
14226
- ["li", new Set(["li"])],
14226
+ ["li", /* @__PURE__ */ new Set(["li"])],
14227
14227
  ["p", pTag],
14228
14228
  ["h1", pTag],
14229
14229
  ["h2", pTag],
@@ -14237,8 +14237,8 @@ const openImpliesClose = new Map([
14237
14237
  ["button", formTags],
14238
14238
  ["datalist", formTags],
14239
14239
  ["textarea", formTags],
14240
- ["option", new Set(["option"])],
14241
- ["optgroup", new Set(["optgroup", "option"])],
14240
+ ["option", /* @__PURE__ */ new Set(["option"])],
14241
+ ["optgroup", /* @__PURE__ */ new Set(["optgroup", "option"])],
14242
14242
  ["dd", ddtTags],
14243
14243
  ["dt", ddtTags],
14244
14244
  ["address", pTag],
@@ -14267,7 +14267,7 @@ const openImpliesClose = new Map([
14267
14267
  ["tbody", tableSectionTags],
14268
14268
  ["tfoot", tableSectionTags]
14269
14269
  ]);
14270
- const voidElements$1 = new Set([
14270
+ const voidElements$1 = /* @__PURE__ */ new Set([
14271
14271
  "area",
14272
14272
  "base",
14273
14273
  "basefont",
@@ -14288,8 +14288,8 @@ const voidElements$1 = new Set([
14288
14288
  "track",
14289
14289
  "wbr"
14290
14290
  ]);
14291
- const foreignContextElements = new Set(["math", "svg"]);
14292
- const htmlIntegrationElements = new Set([
14291
+ const foreignContextElements = /* @__PURE__ */ new Set(["math", "svg"]);
14292
+ const htmlIntegrationElements = /* @__PURE__ */ new Set([
14293
14293
  "mi",
14294
14294
  "mo",
14295
14295
  "mn",
@@ -15129,7 +15129,7 @@ var DomHandler = class {
15129
15129
  //#endregion
15130
15130
  //#region ../../node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/escape.js
15131
15131
  const xmlReplacer = /["&'<>$\x80-\uFFFF]/g;
15132
- const xmlCodeMap = new Map([
15132
+ const xmlCodeMap = /* @__PURE__ */ new Map([
15133
15133
  [34, "&quot;"],
15134
15134
  [38, "&amp;"],
15135
15135
  [39, "&apos;"],
@@ -15191,7 +15191,7 @@ function getEscaper(regex, map) {
15191
15191
  *
15192
15192
  * @param data String to escape.
15193
15193
  */
15194
- const escapeAttribute = getEscaper(/["&\u00A0]/g, new Map([
15194
+ const escapeAttribute = getEscaper(/["&\u00A0]/g, /* @__PURE__ */ new Map([
15195
15195
  [34, "&quot;"],
15196
15196
  [38, "&amp;"],
15197
15197
  [160, "&nbsp;"]
@@ -15202,7 +15202,7 @@ const escapeAttribute = getEscaper(/["&\u00A0]/g, new Map([
15202
15202
  *
15203
15203
  * @param data String to escape.
15204
15204
  */
15205
- const escapeText = getEscaper(/[&<>\u00A0]/g, new Map([
15205
+ const escapeText = getEscaper(/[&<>\u00A0]/g, /* @__PURE__ */ new Map([
15206
15206
  [38, "&amp;"],
15207
15207
  [60, "&lt;"],
15208
15208
  [62, "&gt;"],
@@ -15318,7 +15318,7 @@ const attributeNames = new Map([
15318
15318
  *
15319
15319
  * @see https://html.spec.whatwg.org/multipage/parsing.html#parsing-main-inforeign
15320
15320
  */
15321
- const unencodedElements = new Set([
15321
+ const unencodedElements = /* @__PURE__ */ new Set([
15322
15322
  "style",
15323
15323
  "script",
15324
15324
  "xmp",
@@ -15349,7 +15349,7 @@ function formatAttributes(attributes, opts) {
15349
15349
  /**
15350
15350
  * Self-enclosing tags
15351
15351
  */
15352
- const singleTag = new Set([
15352
+ const singleTag = /* @__PURE__ */ new Set([
15353
15353
  "area",
15354
15354
  "base",
15355
15355
  "basefont",
@@ -15397,7 +15397,7 @@ function renderNode(node, options) {
15397
15397
  case Text$3: return renderText(node, options);
15398
15398
  }
15399
15399
  }
15400
- const foreignModeIntegrationPoints = new Set([
15400
+ const foreignModeIntegrationPoints = /* @__PURE__ */ new Set([
15401
15401
  "mi",
15402
15402
  "mo",
15403
15403
  "mn",
@@ -15408,7 +15408,7 @@ const foreignModeIntegrationPoints = new Set([
15408
15408
  "desc",
15409
15409
  "title"
15410
15410
  ]);
15411
- const foreignElements = new Set(["svg", "math"]);
15411
+ const foreignElements = /* @__PURE__ */ new Set(["svg", "math"]);
15412
15412
  function renderTag(elem, opts) {
15413
15413
  var _a;
15414
15414
  if (opts.xmlMode === "foreign") {
@@ -16388,7 +16388,7 @@ function parseFeed(feed, options = parseFeedDefaultOptions) {
16388
16388
  }
16389
16389
  //#endregion
16390
16390
  //#region ../../node_modules/.pnpm/linkedom@0.18.12/node_modules/linkedom/esm/shared/constants.js
16391
- const BLOCK_ELEMENTS = new Set([
16391
+ const BLOCK_ELEMENTS = /* @__PURE__ */ new Set([
16392
16392
  "ARTICLE",
16393
16393
  "ASIDE",
16394
16394
  "BLOCKQUOTE",
@@ -16887,7 +16887,7 @@ var MutationObserverClass = class {
16887
16887
  };
16888
16888
  //#endregion
16889
16889
  //#region ../../node_modules/.pnpm/linkedom@0.18.12/node_modules/linkedom/esm/shared/attributes.js
16890
- const emptyAttributes = new Set([
16890
+ const emptyAttributes = /* @__PURE__ */ new Set([
16891
16891
  "allowfullscreen",
16892
16892
  "allowpaymentrequest",
16893
16893
  "async",
@@ -17584,7 +17584,7 @@ var require_parse$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
17584
17584
  var types_1 = require_types();
17585
17585
  var reName = /^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/;
17586
17586
  var reEscape = /\\([\da-f]{1,6}\s?|(\s)|.)/gi;
17587
- var actionTypes = new Map([
17587
+ var actionTypes = /* @__PURE__ */ new Map([
17588
17588
  [126, types_1.AttributeAction.Element],
17589
17589
  [94, types_1.AttributeAction.Start],
17590
17590
  [36, types_1.AttributeAction.End],
@@ -17592,7 +17592,7 @@ var require_parse$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
17592
17592
  [33, types_1.AttributeAction.Not],
17593
17593
  [124, types_1.AttributeAction.Hyphen]
17594
17594
  ]);
17595
- var unpackPseudos = new Set([
17595
+ var unpackPseudos = /* @__PURE__ */ new Set([
17596
17596
  "has",
17597
17597
  "not",
17598
17598
  "matches",
@@ -17620,7 +17620,7 @@ var require_parse$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
17620
17620
  }
17621
17621
  }
17622
17622
  exports.isTraversal = isTraversal;
17623
- var stripQuotesFromPseudos = new Set(["contains", "icontains"]);
17623
+ var stripQuotesFromPseudos = /* @__PURE__ */ new Set(["contains", "icontains"]);
17624
17624
  function funescape(_, escaped, escapedWhitespace) {
17625
17625
  var high = parseInt(escaped, 16) - 65536;
17626
17626
  return high !== high || escapedWhitespace ? escaped : high < 0 ? String.fromCharCode(high + 65536) : String.fromCharCode(high >> 10 | 55296, high & 1023 | 56320);
@@ -18036,7 +18036,7 @@ var require_commonjs = /* @__PURE__ */ __commonJSMin(((exports) => {
18036
18036
  //#region ../../node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/sort.js
18037
18037
  var import_boolbase = /* @__PURE__ */ __toESM(require_boolbase(), 1);
18038
18038
  var import_commonjs = require_commonjs();
18039
- const procedure = new Map([
18039
+ const procedure = /* @__PURE__ */ new Map([
18040
18040
  [import_commonjs.SelectorType.Universal, 50],
18041
18041
  [import_commonjs.SelectorType.Tag, 30],
18042
18042
  [import_commonjs.SelectorType.Attribute, 1],
@@ -18045,7 +18045,7 @@ const procedure = new Map([
18045
18045
  function isTraversal(token) {
18046
18046
  return !procedure.has(token.type);
18047
18047
  }
18048
- const attributes = new Map([
18048
+ const attributes = /* @__PURE__ */ new Map([
18049
18049
  [import_commonjs.AttributeAction.Exists, 10],
18050
18050
  [import_commonjs.AttributeAction.Equals, 8],
18051
18051
  [import_commonjs.AttributeAction.Not, 7],
@@ -18107,7 +18107,7 @@ function escapeRegex(value) {
18107
18107
  * @private
18108
18108
  * @see https://html.spec.whatwg.org/multipage/semantics-other.html#case-sensitivity-of-selectors
18109
18109
  */
18110
- const caseInsensitiveAttributes = new Set([
18110
+ const caseInsensitiveAttributes = /* @__PURE__ */ new Set([
18111
18111
  "accept",
18112
18112
  "accept-charset",
18113
18113
  "align",
@@ -18274,7 +18274,7 @@ const attributeRules = {
18274
18274
  };
18275
18275
  //#endregion
18276
18276
  //#region ../../node_modules/.pnpm/nth-check@2.1.1/node_modules/nth-check/lib/esm/parse.js
18277
- const whitespace = new Set([
18277
+ const whitespace = /* @__PURE__ */ new Set([
18278
18278
  9,
18279
18279
  10,
18280
18280
  12,
@@ -24103,7 +24103,7 @@ function stripMxLitexmlDocWrapper(xml) {
24103
24103
  * LICENSE file in the root directory of this source tree.
24104
24104
  *
24105
24105
  */
24106
- const mod$2 = await (process.env.NODE_ENV !== "production" ? import("./LexicalTable.dev-DiR_4rdI.mjs") : import("./LexicalTable.prod-Cbc5EasT.mjs"));
24106
+ const mod$2 = await (process.env.NODE_ENV !== "production" ? import("./LexicalTable.dev-Cc9-zqKa.mjs") : import("./LexicalTable.prod-BgO4nCxy.mjs"));
24107
24107
  mod$2.$computeTableMap;
24108
24108
  mod$2.$computeTableMapSkipCellCheck;
24109
24109
  mod$2.$createTableCellNode;
@@ -24172,7 +24172,7 @@ mod$2.setScrollableTablesActive;
24172
24172
  * LICENSE file in the root directory of this source tree.
24173
24173
  *
24174
24174
  */
24175
- const mod$1 = await (process.env.NODE_ENV !== "production" ? import("./LexicalMarkdown.dev-0XURdo96.mjs") : import("./LexicalMarkdown.prod-qUsIQfJx.mjs"));
24175
+ const mod$1 = await (process.env.NODE_ENV !== "production" ? import("./LexicalMarkdown.dev-C0ZYCyuR.mjs") : import("./LexicalMarkdown.prod-0M-Nc-rh.mjs"));
24176
24176
  mod$1.$convertFromMarkdownString;
24177
24177
  mod$1.$convertSelectionToMarkdownString;
24178
24178
  const $convertToMarkdownString = mod$1.$convertToMarkdownString;
@@ -25237,7 +25237,7 @@ var customHeadlessNodes = [
25237
25237
  ChatNode
25238
25238
  ];
25239
25239
  var allHeadlessNodes = [...builtinNodes, ...customHeadlessNodes];
25240
- const createHeadlessEditor = (await (process.env.NODE_ENV !== "production" ? import("./LexicalHeadless.dev-yVDOBd64.mjs") : import("./LexicalHeadless.prod-B8qauuEA.mjs"))).createHeadlessEditor;
25240
+ const createHeadlessEditor = (await (process.env.NODE_ENV !== "production" ? import("./LexicalHeadless.dev-DJp__UcP.mjs") : import("./LexicalHeadless.prod-o0v9cIu5.mjs"))).createHeadlessEditor;
25241
25241
  //#endregion
25242
25242
  //#region ../editor/src/core/nodes/litexml.ts
25243
25243
  const XML_ESCAPE_MAP = {
@@ -27037,11 +27037,11 @@ const LIMIT_TIER_ALL = "all";
27037
27037
  * @returns {Set<string>}
27038
27038
  */
27039
27039
  function parseLimitTiers(raw) {
27040
- if (!raw || raw === LIMIT_TIER_EXTERNAL) return new Set([LIMIT_TIER_EXTERNAL]);
27041
- if (raw === LIMIT_TIER_ALL) return new Set([LIMIT_TIER_ALL]);
27042
- if (raw === LIMIT_TIER_BASE) return new Set([LIMIT_TIER_BASE]);
27040
+ if (!raw || raw === LIMIT_TIER_EXTERNAL) return /* @__PURE__ */ new Set([LIMIT_TIER_EXTERNAL]);
27041
+ if (raw === LIMIT_TIER_ALL) return /* @__PURE__ */ new Set([LIMIT_TIER_ALL]);
27042
+ if (raw === LIMIT_TIER_BASE) return /* @__PURE__ */ new Set([LIMIT_TIER_BASE]);
27043
27043
  if (Array.isArray(raw)) return new Set(raw);
27044
- return new Set([LIMIT_TIER_EXTERNAL]);
27044
+ return /* @__PURE__ */ new Set([LIMIT_TIER_EXTERNAL]);
27045
27045
  }
27046
27046
  const NCR_LEVEL = Object.freeze({
27047
27047
  allow: 0,
@@ -27049,7 +27049,7 @@ const NCR_LEVEL = Object.freeze({
27049
27049
  remove: 2,
27050
27050
  throw: 3
27051
27051
  });
27052
- const XML10_ALLOWED_C0 = new Set([
27052
+ const XML10_ALLOWED_C0 = /* @__PURE__ */ new Set([
27053
27053
  9,
27054
27054
  10,
27055
27055
  13
@@ -27924,7 +27924,7 @@ const SCRIPT_ZEROS = [
27924
27924
  const HIGH_MAP = /* @__PURE__ */ new Map();
27925
27925
  const LOW_MAX = 65535;
27926
27926
  const TABLE_OFFSET = 1632;
27927
- const TABLE = new Uint8Array(63904).fill(255);
27927
+ const TABLE = (/* @__PURE__ */ new Uint8Array(63904)).fill(255);
27928
27928
  for (const zero of SCRIPT_ZEROS) for (let d = 0; d < 10; d++) {
27929
27929
  const cp = zero + d;
27930
27930
  if (cp <= LOW_MAX) TABLE[cp - TABLE_OFFSET] = d;
@@ -27935,7 +27935,7 @@ for (const zero of SCRIPT_ZEROS) for (let d = 0; d < 10; d++) {
27935
27935
  const CHAR_0 = 48;
27936
27936
  const CHAR_9 = 57;
27937
27937
  const CHAR_MINUS = 45;
27938
- const MINUS_SET = new Set([
27938
+ const MINUS_SET = /* @__PURE__ */ new Set([
27939
27939
  8722,
27940
27940
  65293,
27941
27941
  65123
@@ -31658,7 +31658,7 @@ var import_src = (/* @__PURE__ */ __commonJSMin(((exports, module) => {
31658
31658
  };
31659
31659
  })))();
31660
31660
  const settings = {
31661
- actions: new Set([
31661
+ actions: /* @__PURE__ */ new Set([
31662
31662
  "up",
31663
31663
  "down",
31664
31664
  "left",
@@ -32232,7 +32232,7 @@ const formatCost = (cost) => {
32232
32232
  const formatList = (values) => values && values.length ? values.join(", ") : void 0;
32233
32233
  const aiTaskView = {
32234
32234
  kind: "ai-task",
32235
- modes: new Set(["readable", "llm"]),
32235
+ modes: /* @__PURE__ */ new Set(["readable", "llm"]),
32236
32236
  readable: (data) => {
32237
32237
  const lines = [`ai ${data.type} task ${data.status}`];
32238
32238
  const fields = [
@@ -33237,7 +33237,7 @@ const defaultGlobalFlags = {
33237
33237
  verbose: false,
33238
33238
  dryRun: false
33239
33239
  };
33240
- const VALID_OUTPUT_MODES = new Set([
33240
+ const VALID_OUTPUT_MODES = /* @__PURE__ */ new Set([
33241
33241
  "pretty-json",
33242
33242
  "json",
33243
33243
  "readable",
@@ -33246,7 +33246,7 @@ const VALID_OUTPUT_MODES = new Set([
33246
33246
  ]);
33247
33247
  const isOutputMode = (s) => VALID_OUTPUT_MODES.has(s);
33248
33248
  /** Long-name flags that take a value (consume the next argv slot if no `=`). */
33249
- const VALUE_FLAGS = new Set([
33249
+ const VALUE_FLAGS = /* @__PURE__ */ new Set([
33250
33250
  "--output",
33251
33251
  "--api-url",
33252
33252
  "--token",
@@ -33255,7 +33255,7 @@ const VALUE_FLAGS = new Set([
33255
33255
  "--profile"
33256
33256
  ]);
33257
33257
  /** Long-name boolean flags (no value). */
33258
- const BOOL_FLAGS = new Set([
33258
+ const BOOL_FLAGS = /* @__PURE__ */ new Set([
33259
33259
  "--json",
33260
33260
  "--quiet",
33261
33261
  "--verbose",
@@ -33358,7 +33358,7 @@ const currentProfileFlag = unsafeMake(void 0);
33358
33358
  //#endregion
33359
33359
  //#region src/services/Profile.ts
33360
33360
  const PROFILE_NAME_RE = /^[\d_a-z-]{1,32}$/;
33361
- const RESERVED_PROFILE_NAMES = new Set(["current"]);
33361
+ const RESERVED_PROFILE_NAMES = /* @__PURE__ */ new Set(["current"]);
33362
33362
  const make$3 = gen(function* () {
33363
33363
  const config = yield* Config;
33364
33364
  const validateName = (name) => gen(function* () {
@@ -33638,7 +33638,7 @@ const renderIdentLine = (user, color) => {
33638
33638
  };
33639
33639
  const whoamiView = {
33640
33640
  kind: "whoami",
33641
- modes: new Set(["readable", "llm"]),
33641
+ modes: /* @__PURE__ */ new Set(["readable", "llm"]),
33642
33642
  readable: (data, { color }) => {
33643
33643
  const head = dot("signed in", color);
33644
33644
  const ident = renderIdentLine(data.user, color);
@@ -33651,7 +33651,7 @@ const whoamiView = {
33651
33651
  };
33652
33652
  const statusView = {
33653
33653
  kind: "status",
33654
- modes: new Set(["readable", "llm"]),
33654
+ modes: /* @__PURE__ */ new Set(["readable", "llm"]),
33655
33655
  readable: (data, { color }) => {
33656
33656
  if (!data.authenticated) return `${fail("not authenticated", color)}\n ${dim("run `mxs auth login`", color)}`;
33657
33657
  const head = dot("signed in", color);
@@ -34120,7 +34120,7 @@ const renderCommentLlm = (data) => {
34120
34120
  };
34121
34121
  const commentView = {
34122
34122
  kind: "comment",
34123
- modes: new Set(["readable", "llm"]),
34123
+ modes: /* @__PURE__ */ new Set(["readable", "llm"]),
34124
34124
  readable: (data, ctx) => renderCommentReadable(data, ctx.color),
34125
34125
  llm: (data) => renderCommentLlm(data)
34126
34126
  };
@@ -34185,7 +34185,7 @@ const renderCommentListLlm = (data) => {
34185
34185
  };
34186
34186
  const commentListView = {
34187
34187
  kind: "comment-list",
34188
- modes: new Set(["readable", "llm"]),
34188
+ modes: /* @__PURE__ */ new Set(["readable", "llm"]),
34189
34189
  readable: (data, ctx) => renderCommentListReadable(data, ctx.color),
34190
34190
  llm: (data) => renderCommentListLlm(data)
34191
34191
  };
@@ -35486,7 +35486,7 @@ const pickSummary$2 = (doc) => {
35486
35486
  };
35487
35487
  const noteView = {
35488
35488
  kind: "note",
35489
- modes: new Set([
35489
+ modes: /* @__PURE__ */ new Set([
35490
35490
  "readable",
35491
35491
  "llm",
35492
35492
  "xml"
@@ -35574,7 +35574,7 @@ const renderNoteListReadable = (data) => {
35574
35574
  };
35575
35575
  const noteListView = {
35576
35576
  kind: "note-list",
35577
- modes: new Set(["readable", "llm"]),
35577
+ modes: /* @__PURE__ */ new Set(["readable", "llm"]),
35578
35578
  readable: (data) => renderNoteListReadable(data)
35579
35579
  };
35580
35580
  const get$6 = make$14("get", { slugOrId: text$6({ name: "slugOrId" }) }, ({ slugOrId }) => gen(function* () {
@@ -35923,7 +35923,7 @@ const pickSummary$1 = (doc) => {
35923
35923
  };
35924
35924
  const pageView = {
35925
35925
  kind: "page",
35926
- modes: new Set([
35926
+ modes: /* @__PURE__ */ new Set([
35927
35927
  "readable",
35928
35928
  "llm",
35929
35929
  "xml"
@@ -36260,7 +36260,7 @@ const pickSummary = (doc) => {
36260
36260
  };
36261
36261
  const postView = {
36262
36262
  kind: "post",
36263
- modes: new Set([
36263
+ modes: /* @__PURE__ */ new Set([
36264
36264
  "readable",
36265
36265
  "llm",
36266
36266
  "xml"
@@ -36343,7 +36343,7 @@ const renderPostListReadable = (data) => {
36343
36343
  };
36344
36344
  const postListView = {
36345
36345
  kind: "post-list",
36346
- modes: new Set(["readable", "llm"]),
36346
+ modes: /* @__PURE__ */ new Set(["readable", "llm"]),
36347
36347
  readable: (data) => renderPostListReadable(data)
36348
36348
  };
36349
36349
  const get$4 = make$14("get", { slugOrId: text$6({ name: "slugOrId" }) }, ({ slugOrId }) => gen(function* () {
@@ -36391,7 +36391,7 @@ const publish = make$14("publish", { slugOrId: text$6({ name: "slugOrId" }) }, (
36391
36391
  //#region src/cli/post/stage.ts
36392
36392
  const slugOrId$5 = text$6({ name: "slugOrId" });
36393
36393
  /** Draft-native fields; everything else rides along in `typeSpecificData`. */
36394
- const DRAFT_CORE_KEYS = new Set([
36394
+ const DRAFT_CORE_KEYS = /* @__PURE__ */ new Set([
36395
36395
  "title",
36396
36396
  "text",
36397
36397
  "content",
@@ -36590,7 +36590,27 @@ const saveOpt = text$4("save").pipe(optional$4);
36590
36590
  const printOpt = boolean("print").pipe(optional$4);
36591
36591
  const openOpt = boolean("open").pipe(optional$4);
36592
36592
  const requireFrom$3 = createRequire(import.meta.url);
36593
+ const findCliPackageRoot$1 = () => {
36594
+ let dir = dirname(fileURLToPath(import.meta.url));
36595
+ for (let i = 0; i < 8; i++) {
36596
+ if (!dir || dir === dirname(dir)) break;
36597
+ try {
36598
+ if (requireFrom$3(join(dir, "package.json")).name === "@mx-space/cli") return dir;
36599
+ } catch {}
36600
+ dir = dirname(dir);
36601
+ }
36602
+ return null;
36603
+ };
36604
+ const resolveBundledLitexmlBin = () => {
36605
+ const root = findCliPackageRoot$1();
36606
+ if (!root) return null;
36607
+ const candidate = join(root, "dist", "vendor", "litexml", "cli.mjs");
36608
+ return existsSync(candidate) ? candidate : null;
36609
+ };
36610
+ const isSourcePreviewModule = () => /[\\/]src[\\/]cli[\\/]preview[\\/]index\.ts$/.test(fileURLToPath(import.meta.url));
36593
36611
  const resolveLitexmlBin = () => {
36612
+ const bundled = resolveBundledLitexmlBin();
36613
+ if (!isSourcePreviewModule() && bundled) return bundled;
36594
36614
  try {
36595
36615
  return requireFrom$3.resolve("@haklex/rich-litexml-cli/dist/cli.mjs");
36596
36616
  } catch {}
@@ -36599,17 +36619,15 @@ const resolveLitexmlBin = () => {
36599
36619
  let dir = filePath.slice(0, Math.max(0, filePath.lastIndexOf("/")));
36600
36620
  for (let i = 0; i < 8; i++) {
36601
36621
  const candidate = `${dir}/node_modules/@haklex/rich-litexml-cli/dist/cli.mjs`;
36602
- try {
36603
- requireFrom$3(`${candidate}`);
36604
- return candidate;
36605
- } catch {}
36622
+ if (existsSync(candidate)) return candidate;
36606
36623
  const next = dir.slice(0, Math.max(0, dir.lastIndexOf("/")));
36607
36624
  if (next === dir) break;
36608
36625
  dir = next;
36609
36626
  }
36627
+ if (bundled) return bundled;
36610
36628
  throw new Generic({
36611
- message: "cannot resolve @haklex/rich-litexml-cli binary",
36612
- hint: "reinstall mxs or run `pnpm install` so the dependency is present"
36629
+ message: "cannot resolve LiteXML preview renderer",
36630
+ hint: "rebuild @mx-space/cli or reinstall mxs so the vendored preview renderer is present"
36613
36631
  });
36614
36632
  };
36615
36633
  const detectVariant = (body) => {
@@ -36713,7 +36731,7 @@ const previewCmd = make$14("preview", {
36713
36731
  //#region src/cli/profile/view.ts
36714
36732
  const profileListView = {
36715
36733
  kind: "profile-list",
36716
- modes: new Set(["readable", "llm"]),
36734
+ modes: /* @__PURE__ */ new Set(["readable", "llm"]),
36717
36735
  readable: (rows, { color }) => {
36718
36736
  if (rows.length === 0) return "";
36719
36737
  return renderTable([
@@ -37093,7 +37111,7 @@ const pickText = (doc) => {
37093
37111
  };
37094
37112
  const projectView = {
37095
37113
  kind: "project",
37096
- modes: new Set(["readable", "llm"]),
37114
+ modes: /* @__PURE__ */ new Set(["readable", "llm"]),
37097
37115
  readable: (data, ctx) => {
37098
37116
  const doc = normalize(data);
37099
37117
  const body = pickText(doc);
@@ -37147,7 +37165,7 @@ const renderProjectListReadable = (data) => {
37147
37165
  };
37148
37166
  const projectListView = {
37149
37167
  kind: "project-list",
37150
- modes: new Set(["readable", "llm"]),
37168
+ modes: /* @__PURE__ */ new Set(["readable", "llm"]),
37151
37169
  readable: (data) => renderProjectListReadable(data)
37152
37170
  };
37153
37171
  //#endregion
@@ -39355,7 +39373,7 @@ var Skill = class Skill extends Tag$2("Skill")() {
39355
39373
  const xmlEscape = (s) => s.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll("\"", "&quot;");
39356
39374
  const skillListView = {
39357
39375
  kind: "skill-list",
39358
- modes: new Set([
39376
+ modes: /* @__PURE__ */ new Set([
39359
39377
  "readable",
39360
39378
  "llm",
39361
39379
  "xml"
@@ -39396,7 +39414,7 @@ const renderChapterReadable = (chapter, color) => {
39396
39414
  };
39397
39415
  const skillChapterView = {
39398
39416
  kind: "skill-chapter",
39399
- modes: new Set([
39417
+ modes: /* @__PURE__ */ new Set([
39400
39418
  "readable",
39401
39419
  "llm",
39402
39420
  "xml"
@@ -39407,7 +39425,7 @@ const skillChapterView = {
39407
39425
  };
39408
39426
  const skillAllView = {
39409
39427
  kind: "skill-all",
39410
- modes: new Set([
39428
+ modes: /* @__PURE__ */ new Set([
39411
39429
  "readable",
39412
39430
  "llm",
39413
39431
  "xml"
@@ -39420,7 +39438,7 @@ const skillAllView = {
39420
39438
  };
39421
39439
  const skillSearchView = {
39422
39440
  kind: "skill-search",
39423
- modes: new Set([
39441
+ modes: /* @__PURE__ */ new Set([
39424
39442
  "readable",
39425
39443
  "llm",
39426
39444
  "xml"
@@ -39708,7 +39726,7 @@ const list$1 = make$14("ls", {
39708
39726
  })).pipe(withDescription("list snippet VFS paths"));
39709
39727
  //#endregion
39710
39728
  //#region src/cli/snippet/_sync.ts
39711
- const IGNORED_NAMES = new Set([
39729
+ const IGNORED_NAMES = /* @__PURE__ */ new Set([
39712
39730
  ".git",
39713
39731
  "node_modules",
39714
39732
  "__pycache__",
@@ -40072,7 +40090,7 @@ const topicCmd = make$14("topic").pipe(withDescription(help.description), withSu
40072
40090
  del
40073
40091
  ]));
40074
40092
  //#endregion
40075
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/internal/constants.js
40093
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/constants.js
40076
40094
  var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40077
40095
  const SEMVER_SPEC_VERSION = "2.0.0";
40078
40096
  const MAX_LENGTH = 256;
@@ -40097,12 +40115,12 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40097
40115
  };
40098
40116
  }));
40099
40117
  //#endregion
40100
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/internal/debug.js
40118
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/debug.js
40101
40119
  var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40102
40120
  module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
40103
40121
  }));
40104
40122
  //#endregion
40105
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/internal/re.js
40123
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/re.js
40106
40124
  var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40107
40125
  const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
40108
40126
  const debug = require_debug();
@@ -40181,7 +40199,7 @@ var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40181
40199
  createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
40182
40200
  }));
40183
40201
  //#endregion
40184
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/internal/parse-options.js
40202
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/parse-options.js
40185
40203
  var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40186
40204
  const looseOption = Object.freeze({ loose: true });
40187
40205
  const emptyOpts = Object.freeze({});
@@ -40193,7 +40211,7 @@ var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) =>
40193
40211
  module.exports = parseOptions;
40194
40212
  }));
40195
40213
  //#endregion
40196
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/internal/identifiers.js
40214
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/identifiers.js
40197
40215
  var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40198
40216
  const numeric = /^[0-9]+$/;
40199
40217
  const compareIdentifiers = (a, b) => {
@@ -40213,7 +40231,7 @@ var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40213
40231
  };
40214
40232
  }));
40215
40233
  //#endregion
40216
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/classes/semver.js
40234
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/semver.js
40217
40235
  var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40218
40236
  const debug = require_debug();
40219
40237
  const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
@@ -40398,7 +40416,7 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40398
40416
  };
40399
40417
  }));
40400
40418
  //#endregion
40401
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/parse.js
40419
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/parse.js
40402
40420
  var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40403
40421
  const SemVer = require_semver$1();
40404
40422
  const parse = (version, options, throwErrors = false) => {
@@ -40413,7 +40431,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40413
40431
  module.exports = parse;
40414
40432
  }));
40415
40433
  //#endregion
40416
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/valid.js
40434
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/valid.js
40417
40435
  var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40418
40436
  const parse = require_parse();
40419
40437
  const valid = (version, options) => {
@@ -40423,7 +40441,7 @@ var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40423
40441
  module.exports = valid;
40424
40442
  }));
40425
40443
  //#endregion
40426
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/clean.js
40444
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/clean.js
40427
40445
  var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40428
40446
  const parse = require_parse();
40429
40447
  const clean = (version, options) => {
@@ -40433,7 +40451,7 @@ var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40433
40451
  module.exports = clean;
40434
40452
  }));
40435
40453
  //#endregion
40436
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/inc.js
40454
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/inc.js
40437
40455
  var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40438
40456
  const SemVer = require_semver$1();
40439
40457
  const inc = (version, release, options, identifier, identifierBase) => {
@@ -40451,7 +40469,7 @@ var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40451
40469
  module.exports = inc;
40452
40470
  }));
40453
40471
  //#endregion
40454
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/diff.js
40472
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/diff.js
40455
40473
  var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40456
40474
  const parse = require_parse();
40457
40475
  const diff = (version1, version2) => {
@@ -40479,28 +40497,28 @@ var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40479
40497
  module.exports = diff;
40480
40498
  }));
40481
40499
  //#endregion
40482
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/major.js
40500
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/major.js
40483
40501
  var require_major = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40484
40502
  const SemVer = require_semver$1();
40485
40503
  const major = (a, loose) => new SemVer(a, loose).major;
40486
40504
  module.exports = major;
40487
40505
  }));
40488
40506
  //#endregion
40489
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/minor.js
40507
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/minor.js
40490
40508
  var require_minor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40491
40509
  const SemVer = require_semver$1();
40492
40510
  const minor = (a, loose) => new SemVer(a, loose).minor;
40493
40511
  module.exports = minor;
40494
40512
  }));
40495
40513
  //#endregion
40496
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/patch.js
40514
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/patch.js
40497
40515
  var require_patch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40498
40516
  const SemVer = require_semver$1();
40499
40517
  const patch = (a, loose) => new SemVer(a, loose).patch;
40500
40518
  module.exports = patch;
40501
40519
  }));
40502
40520
  //#endregion
40503
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/prerelease.js
40521
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/prerelease.js
40504
40522
  var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40505
40523
  const parse = require_parse();
40506
40524
  const prerelease = (version, options) => {
@@ -40510,28 +40528,28 @@ var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40510
40528
  module.exports = prerelease;
40511
40529
  }));
40512
40530
  //#endregion
40513
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/compare.js
40531
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare.js
40514
40532
  var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40515
40533
  const SemVer = require_semver$1();
40516
40534
  const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
40517
40535
  module.exports = compare;
40518
40536
  }));
40519
40537
  //#endregion
40520
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/rcompare.js
40538
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/rcompare.js
40521
40539
  var require_rcompare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40522
40540
  const compare = require_compare();
40523
40541
  const rcompare = (a, b, loose) => compare(b, a, loose);
40524
40542
  module.exports = rcompare;
40525
40543
  }));
40526
40544
  //#endregion
40527
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/compare-loose.js
40545
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare-loose.js
40528
40546
  var require_compare_loose = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40529
40547
  const compare = require_compare();
40530
40548
  const compareLoose = (a, b) => compare(a, b, true);
40531
40549
  module.exports = compareLoose;
40532
40550
  }));
40533
40551
  //#endregion
40534
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/compare-build.js
40552
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare-build.js
40535
40553
  var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40536
40554
  const SemVer = require_semver$1();
40537
40555
  const compareBuild = (a, b, loose) => {
@@ -40542,63 +40560,63 @@ var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) =>
40542
40560
  module.exports = compareBuild;
40543
40561
  }));
40544
40562
  //#endregion
40545
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/sort.js
40563
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/sort.js
40546
40564
  var require_sort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40547
40565
  const compareBuild = require_compare_build();
40548
40566
  const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
40549
40567
  module.exports = sort;
40550
40568
  }));
40551
40569
  //#endregion
40552
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/rsort.js
40570
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/rsort.js
40553
40571
  var require_rsort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40554
40572
  const compareBuild = require_compare_build();
40555
40573
  const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
40556
40574
  module.exports = rsort;
40557
40575
  }));
40558
40576
  //#endregion
40559
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/gt.js
40577
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/gt.js
40560
40578
  var require_gt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40561
40579
  const compare = require_compare();
40562
40580
  const gt = (a, b, loose) => compare(a, b, loose) > 0;
40563
40581
  module.exports = gt;
40564
40582
  }));
40565
40583
  //#endregion
40566
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/lt.js
40584
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/lt.js
40567
40585
  var require_lt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40568
40586
  const compare = require_compare();
40569
40587
  const lt = (a, b, loose) => compare(a, b, loose) < 0;
40570
40588
  module.exports = lt;
40571
40589
  }));
40572
40590
  //#endregion
40573
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/eq.js
40591
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/eq.js
40574
40592
  var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40575
40593
  const compare = require_compare();
40576
40594
  const eq = (a, b, loose) => compare(a, b, loose) === 0;
40577
40595
  module.exports = eq;
40578
40596
  }));
40579
40597
  //#endregion
40580
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/neq.js
40598
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/neq.js
40581
40599
  var require_neq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40582
40600
  const compare = require_compare();
40583
40601
  const neq = (a, b, loose) => compare(a, b, loose) !== 0;
40584
40602
  module.exports = neq;
40585
40603
  }));
40586
40604
  //#endregion
40587
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/gte.js
40605
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/gte.js
40588
40606
  var require_gte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40589
40607
  const compare = require_compare();
40590
40608
  const gte = (a, b, loose) => compare(a, b, loose) >= 0;
40591
40609
  module.exports = gte;
40592
40610
  }));
40593
40611
  //#endregion
40594
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/lte.js
40612
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/lte.js
40595
40613
  var require_lte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40596
40614
  const compare = require_compare();
40597
40615
  const lte = (a, b, loose) => compare(a, b, loose) <= 0;
40598
40616
  module.exports = lte;
40599
40617
  }));
40600
40618
  //#endregion
40601
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/cmp.js
40619
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/cmp.js
40602
40620
  var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40603
40621
  const eq = require_eq();
40604
40622
  const neq = require_neq();
@@ -40630,7 +40648,7 @@ var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40630
40648
  module.exports = cmp;
40631
40649
  }));
40632
40650
  //#endregion
40633
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/coerce.js
40651
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/coerce.js
40634
40652
  var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40635
40653
  const SemVer = require_semver$1();
40636
40654
  const parse = require_parse();
@@ -40658,7 +40676,7 @@ var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40658
40676
  module.exports = coerce;
40659
40677
  }));
40660
40678
  //#endregion
40661
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/truncate.js
40679
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/truncate.js
40662
40680
  var require_truncate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40663
40681
  const parse = require_parse();
40664
40682
  const constants = require_constants();
@@ -40691,7 +40709,7 @@ var require_truncate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40691
40709
  module.exports = truncate;
40692
40710
  }));
40693
40711
  //#endregion
40694
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/internal/lrucache.js
40712
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/lrucache.js
40695
40713
  var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40696
40714
  var LRUCache = class {
40697
40715
  constructor() {
@@ -40724,7 +40742,7 @@ var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40724
40742
  module.exports = LRUCache;
40725
40743
  }));
40726
40744
  //#endregion
40727
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/classes/range.js
40745
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/range.js
40728
40746
  var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40729
40747
  const SPACE_CHARACTERS = /\s+/g;
40730
40748
  module.exports = class Range {
@@ -40874,12 +40892,13 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40874
40892
  };
40875
40893
  const replaceTilde = (comp, options) => {
40876
40894
  const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
40895
+ const z = options.includePrerelease ? "-0" : "";
40877
40896
  return comp.replace(r, (_, M, m, p, pr) => {
40878
40897
  debug("tilde", comp, _, M, m, p, pr);
40879
40898
  let ret;
40880
40899
  if (isX(M)) ret = "";
40881
- else if (isX(m)) ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
40882
- else if (isX(p)) ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
40900
+ else if (isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
40901
+ else if (isX(p)) ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
40883
40902
  else if (pr) {
40884
40903
  debug("replaceTilde pr", pr);
40885
40904
  ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
@@ -41000,7 +41019,7 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41000
41019
  };
41001
41020
  }));
41002
41021
  //#endregion
41003
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/classes/comparator.js
41022
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/comparator.js
41004
41023
  var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41005
41024
  const ANY = Symbol("SemVer ANY");
41006
41025
  module.exports = class Comparator {
@@ -41070,7 +41089,7 @@ var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41070
41089
  const Range = require_range();
41071
41090
  }));
41072
41091
  //#endregion
41073
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/satisfies.js
41092
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/satisfies.js
41074
41093
  var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41075
41094
  const Range = require_range();
41076
41095
  const satisfies = (version, range, options) => {
@@ -41084,14 +41103,14 @@ var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41084
41103
  module.exports = satisfies;
41085
41104
  }));
41086
41105
  //#endregion
41087
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/ranges/to-comparators.js
41106
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/to-comparators.js
41088
41107
  var require_to_comparators = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41089
41108
  const Range = require_range();
41090
41109
  const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
41091
41110
  module.exports = toComparators;
41092
41111
  }));
41093
41112
  //#endregion
41094
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/ranges/max-satisfying.js
41113
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/max-satisfying.js
41095
41114
  var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41096
41115
  const SemVer = require_semver$1();
41097
41116
  const Range = require_range();
@@ -41117,7 +41136,7 @@ var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) =>
41117
41136
  module.exports = maxSatisfying;
41118
41137
  }));
41119
41138
  //#endregion
41120
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/ranges/min-satisfying.js
41139
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/min-satisfying.js
41121
41140
  var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41122
41141
  const SemVer = require_semver$1();
41123
41142
  const Range = require_range();
@@ -41143,7 +41162,7 @@ var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) =>
41143
41162
  module.exports = minSatisfying;
41144
41163
  }));
41145
41164
  //#endregion
41146
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/ranges/min-version.js
41165
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/min-version.js
41147
41166
  var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41148
41167
  const SemVer = require_semver$1();
41149
41168
  const Range = require_range();
@@ -41183,7 +41202,7 @@ var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41183
41202
  module.exports = minVersion;
41184
41203
  }));
41185
41204
  //#endregion
41186
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/ranges/valid.js
41205
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/valid.js
41187
41206
  var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41188
41207
  const Range = require_range();
41189
41208
  const validRange = (range, options) => {
@@ -41196,7 +41215,7 @@ var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41196
41215
  module.exports = validRange;
41197
41216
  }));
41198
41217
  //#endregion
41199
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/ranges/outside.js
41218
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/outside.js
41200
41219
  var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41201
41220
  const SemVer = require_semver$1();
41202
41221
  const Comparator = require_comparator();
@@ -41249,21 +41268,21 @@ var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41249
41268
  module.exports = outside;
41250
41269
  }));
41251
41270
  //#endregion
41252
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/ranges/gtr.js
41271
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/gtr.js
41253
41272
  var require_gtr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41254
41273
  const outside = require_outside();
41255
41274
  const gtr = (version, range, options) => outside(version, range, ">", options);
41256
41275
  module.exports = gtr;
41257
41276
  }));
41258
41277
  //#endregion
41259
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/ranges/ltr.js
41278
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/ltr.js
41260
41279
  var require_ltr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41261
41280
  const outside = require_outside();
41262
41281
  const ltr = (version, range, options) => outside(version, range, "<", options);
41263
41282
  module.exports = ltr;
41264
41283
  }));
41265
41284
  //#endregion
41266
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/ranges/intersects.js
41285
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/intersects.js
41267
41286
  var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41268
41287
  const Range = require_range();
41269
41288
  const intersects = (r1, r2, options) => {
@@ -41274,7 +41293,7 @@ var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41274
41293
  module.exports = intersects;
41275
41294
  }));
41276
41295
  //#endregion
41277
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/ranges/simplify.js
41296
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/simplify.js
41278
41297
  var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41279
41298
  const satisfies = require_satisfies();
41280
41299
  const compare = require_compare();
@@ -41304,7 +41323,7 @@ var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41304
41323
  };
41305
41324
  }));
41306
41325
  //#endregion
41307
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/ranges/subset.js
41326
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/subset.js
41308
41327
  var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
41309
41328
  const Range = require_range();
41310
41329
  const Comparator = require_comparator();
@@ -41761,7 +41780,7 @@ const planAutoUpdate = (entry, channel) => {
41761
41780
  args
41762
41781
  };
41763
41782
  };
41764
- const KNOWN_PMS = new Set([
41783
+ const KNOWN_PMS = /* @__PURE__ */ new Set([
41765
41784
  "npm",
41766
41785
  "pnpm",
41767
41786
  "yarn",
@@ -42315,7 +42334,7 @@ const emitGroupHelp = (data) => {
42315
42334
  * this is the contract. Ported from `src/core/preaction-guards.ts`.
42316
42335
  */
42317
42336
  /** Parent command names whose entire subtree is exempt from the none_active guard. */
42318
- const PREFLIGHT_EXEMPT_PARENTS = new Set(["profile", "skill"]);
42337
+ const PREFLIGHT_EXEMPT_PARENTS = /* @__PURE__ */ new Set(["profile", "skill"]);
42319
42338
  /**
42320
42339
  * Individual (parent, name) pairs that are exempt regardless of profile state.
42321
42340
  * `auth login` is included unconditionally so a fresh install can bootstrap.
@@ -42328,7 +42347,7 @@ const PREFLIGHT_EXEMPT_COMMANDS = [{
42328
42347
  * Top-level command names that are exempt from the profile.none_active guard.
42329
42348
  * Used for commands that should work without a configured server (e.g. `mxs update`).
42330
42349
  */
42331
- const PREFLIGHT_EXEMPT_TOPLEVEL = new Set([
42350
+ const PREFLIGHT_EXEMPT_TOPLEVEL = /* @__PURE__ */ new Set([
42332
42351
  "update",
42333
42352
  "skill",
42334
42353
  "preview"
@@ -42349,7 +42368,7 @@ function requiresActiveProfile(input) {
42349
42368
  return true;
42350
42369
  }
42351
42370
  /** Set of valid top-level subcommand names. Used to walk `process.argv`. */
42352
- const TOPLEVEL_COMMANDS = new Set([
42371
+ const TOPLEVEL_COMMANDS = /* @__PURE__ */ new Set([
42353
42372
  "auth",
42354
42373
  "profile",
42355
42374
  "post",
@@ -42404,7 +42423,7 @@ function detectInvokedCommand(argv, knownGlobalFlags = DEFAULT_KNOWN_GLOBAL_FLAG
42404
42423
  };
42405
42424
  }
42406
42425
  /** Known global flag names; used by `detectInvokedCommand` to skip their values. */
42407
- const DEFAULT_KNOWN_GLOBAL_FLAGS = new Set([
42426
+ const DEFAULT_KNOWN_GLOBAL_FLAGS = /* @__PURE__ */ new Set([
42408
42427
  "--json",
42409
42428
  "--output",
42410
42429
  "--api-url",
@@ -42419,7 +42438,7 @@ const DEFAULT_KNOWN_GLOBAL_FLAGS = new Set([
42419
42438
  "--version"
42420
42439
  ]);
42421
42440
  /** Subset of global flags that take a value. */
42422
- const FLAG_TAKES_VALUE = new Set([
42441
+ const FLAG_TAKES_VALUE = /* @__PURE__ */ new Set([
42423
42442
  "--output",
42424
42443
  "--api-url",
42425
42444
  "--token",
@@ -42663,7 +42682,7 @@ const preflight = (flags) => gen(function* () {
42663
42682
  parentName: invoked.parentName
42664
42683
  }));
42665
42684
  });
42666
- const LEAF_COMMANDS = new Set([
42685
+ const LEAF_COMMANDS = /* @__PURE__ */ new Set([
42667
42686
  "update",
42668
42687
  "skill",
42669
42688
  "preview"