@mx-space/cli 0.11.1 → 0.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { $ as drain, $a as pipe, $i as reduceRight, $n as uninterruptible, $r as has, $t as either, A as compose, Aa as BaseProto, Ai as every, An as orElse$3, Ar as addFinalizer$1, At as encodeSync, B as ensuring$2, Ba as combine$2, Bi as headNonEmpty, Bn as scoped, Br as update$7, Bt as async, C as Number$, Ca as boolean$3, Ci as isMissingDataOnly, Cn as match$2, Cr as Error$1, Ct as currentContext, D as String$, Da as merge$2, Di as contains, Dn as onError, Dr as error$1, Dt as unsafeMake, Ea as left, Ei as appendAll, En as negate, Er as taggedEnum, Et as get$16, Fa as symbolRedactable, Fi as findLast, Fn as retry, Fr as void_$1, Ft as addFinalizer, G as mapError$1, Ga as isObject, Gi as make$22, Gn as sync, Gr as CommitPrototype, Gt as catchIf, H as fromChannel, Ha as string, Hi as isEmptyReadonlyArray, Hn as serviceOption, Hr as allLevels, Ht as catchAll, I as make$21, Ia as toStringUnknown, Ii as flatMap$4, In as runFork$1, Ir as ParentSpan, It as all$5, J as splitLines, Ja as constFalse, Ji as matchLeft, Jn as tapErrorCause, Jr as isNil, Jt as catchTags, K as run$5, Ka as isTagged, Ki as map$7, Kn as tap, Kr as round, Kt as catchSome, L as isConfig, La as equals, Li as fromIterable$1, Ln as runSync, Lr as get$11, Lt as annotateLogs, M as decodeUnknown, Ma as NodeInspectSymbol, Mi as filterMap, Mn as provide$1, Mr as isInterruptedOnly, Mt as _void, N as int, Na as format$3, Ni as findFirst, Nn as provideService, Nr as fail$3, Nt as acquireRelease, O as TaggedError, Oa as right, Oi as drop, On as onInterrupt, Or as log, Ot as nominal, P as optional$8, Pa as redact$1, Pi as findFirstIndex, Pn as repeatN, Pr as isFailure, Pt as acquireUseRelease, Q as unwrapScoped, Qa as identity, Qi as reduce$1, Qn as try_, Qr as get$12, Qt as dieMessage, R as asyncScoped, Ra as symbol$2, Ri as getSomes, Rn as runtime, Rr as make$23, Rt as as, S as Literal, Sa as some, Si as isConfigError, Sn as mapInputContext, St as succeed$2, Ta as string$1, Ti as append$2, Tn as matchEffect, Tr as tagged, Tt as currentTracerEnabled, Ua as symbol$1, Ui as isNonEmptyReadonlyArray, Un as succeed$1, Ur as getOrDefault, Ut as catchAllCause, Va as hash, Vi as isArray$1, Vn as serviceFunctions, Vr as updateAndGet, Vt as cached$1, W as mapChunks, Wi as join, Wn as suspend, Wr as updateAs, Wt as catchAllDefect, X as transduce, Xa as constVoid, Xi as of$2, Xn as tryMap, Xr as empty$12, Xt as contextWithEffect, Y as suspend$2, Ya as constUndefined, Yi as matchRight, Yn as timeout, Yr as of$3, Yt as context, Z as unwrap$7, Za as dual, Zi as prepend$1, Zn as tryPromise, Zr as fromIterable$2, Zt as die, _ as fromString, _a as isSome, _i as Tag$2, _n as logError, _r as interrupt, _t as effect, a as make$29, aa as take, ai as fromIterable$3, an as filterOrDieMessage, ar as when$1, at as embedInput, b as Defect, ba as none$3, bi as merge$3, bn as mapBoth, br as succeed$3, bt as provideMerge, c as defaultLogger, ca as map$10, ci as seconds, cn as fnUntraced, cr as zip, ct as fromEffect, d as get$13, da as fromNullable, di as of$1, dn as forkScoped, dr as zipWith, dt as write, ea as some$1, ei as isEmpty$5, en as ensuring, eo as __commonJSMin, er as uninterruptibleMask, et as foldLeftChunks, f as make$25, fa as getOrElse, fi as reduce$2, fn as gen, fr as DeferredTypeId, ft as spaced, g as when, ga as isOption, gi as Reference, gn as locally, gr as failCause, gt as make$28, h as value$1, ha as isNone, hi as GenericTag, hn as isEffect, hr as fail$4, ht as get$14, i as isMailbox, ia as tailNonEmpty, ii as add$1, in as filter$1, ir as useSpan, it as acquireUseRelease$1, ja as Class, ji as filter$2, jn as orElseFail, jr as isInterrupted, jt as is$2, k as Union, ka as pipeArguments, ki as empty$11, kn as orDie, kr as Scope, kt as decodeSync, l as prettyLoggerDefault, la as filter$3, li as appendAll$1, ln as forEach$1, lr as zipLeft, lt as suspend$1, m as orElse$1, ma as getOrUndefined, mi as unsafeFromArray, mn as interruptible, mr as complete, mt as updateContext, n as make$30, na as span, ni as set$2, nn as failCause$1, no as __require, nr as unsafeMakeLatch, nt as fromChannel$1, o as toChannel, oa as unsafeGet, oi as has$1, on as flatMap$1, or as withFiberRuntime, ot as ensuring$1, p as updateEffect, pa as getOrThrow, pi as toArray, pn as ignore, pr as _await, pt as runFork, q as runCollect, qa as globalValue, qi as match$1, qn as tapError, qr as cons$1, qt as catchTag, r as unsafeAdd, ra as splitAt, ri as make$26, rn as failSync, ro as __toESM, rr as unsafeMakeSemaphore, rt as unwrapScoped$1, s as unify, si as remove$4, sn as flatten$3, sr as withParentSpan, st as flatMap$2, t as join$1, ta as sort$2, ti as make$24, tn as fail$2, to as __exportAll, tr as unlessEffect, tt as forEach, u as withMinimumLogLevel, ua as flatMap$3, ui as map$9, un as forkDaemon, ur as zipRight, ut as void_, v as Cause, va as map$8, vi as get$15, vn as logWarning, vr as isDone, vt as mergeAll, w as NumberFromString, wa as mapInput, wi as allocate, wn as matchCauseEffect, wr as TaggedError$1, wt as currentLoggers, x as Int, xa as orElse$2, xi as omit, xn as mapError, xr as unsafeDone, xt as scoped$1, y as Date$, ya as match, yi as getOption, yn as map$6, yr as make$27, yt as provide, z as bufferChunks, za as cached, zi as head$2, zn as scope, zr as set$3, zt as asVoid } from "./esm-eihI6wbY.mjs";
1
+ import { $ as drain, $a as pipe, $i as reduceRight, $n as uninterruptible, $r as has, $t as either, A as compose, Aa as BaseProto, Ai as every, An as orElse$3, Ar as addFinalizer$1, At as encodeSync, B as ensuring$2, Ba as combine$2, Bi as headNonEmpty, Bn as scoped, Br as update$8, Bt as async, C as Number$, Ca as boolean$3, Ci as isMissingDataOnly, Cn as match$2, Cr as Error$1, Ct as currentContext, D as String$, Da as merge$2, Di as contains, Dn as onError, Dr as error$1, Dt as unsafeMake, Ea as left, Ei as appendAll, En as negate, Er as taggedEnum, Et as get$17, Fa as symbolRedactable, Fi as findLast, Fn as retry, Fr as void_$1, Ft as addFinalizer, G as mapError$1, Ga as isObject, Gi as make$22, Gn as sync, Gr as CommitPrototype, Gt as catchIf, H as fromChannel, Ha as string, Hi as isEmptyReadonlyArray, Hn as serviceOption, Hr as allLevels, Ht as catchAll, I as make$21, Ia as toStringUnknown, Ii as flatMap$4, In as runFork$1, Ir as ParentSpan, It as all$5, J as splitLines, Ja as constFalse, Ji as matchLeft, Jn as tapErrorCause, Jr as isNil, Jt as catchTags, K as run$5, Ka as isTagged, Ki as map$7, Kn as tap, Kr as round, Kt as catchSome, L as isConfig, La as equals, Li as fromIterable$1, Ln as runSync, Lr as get$12, Lt as annotateLogs, M as decodeUnknown, Ma as NodeInspectSymbol, Mi as filterMap, Mn as provide$1, Mr as isInterruptedOnly, Mt as _void, N as int, Na as format$3, Ni as findFirst, Nn as provideService, Nr as fail$3, Nt as acquireRelease, O as TaggedError, Oa as right, Oi as drop, On as onInterrupt, Or as log, Ot as nominal, P as optional$9, Pa as redact$1, Pi as findFirstIndex, Pn as repeatN, Pr as isFailure, Pt as acquireUseRelease, Q as unwrapScoped, Qa as identity, Qi as reduce$1, Qn as try_, Qr as get$13, Qt as dieMessage, R as asyncScoped, Ra as symbol$2, Ri as getSomes, Rn as runtime, Rr as make$23, Rt as as, S as Literal, Sa as some, Si as isConfigError, Sn as mapInputContext, St as succeed$2, Ta as string$1, Ti as append$2, Tn as matchEffect, Tr as tagged, Tt as currentTracerEnabled, Ua as symbol$1, Ui as isNonEmptyReadonlyArray, Un as succeed$1, Ur as getOrDefault, Ut as catchAllCause, Va as hash, Vi as isArray$1, Vn as serviceFunctions, Vr as updateAndGet, Vt as cached$1, W as mapChunks, Wi as join, Wn as suspend, Wr as updateAs, Wt as catchAllDefect, X as transduce, Xa as constVoid, Xi as of$2, Xn as tryMap, Xr as empty$12, Xt as contextWithEffect, Y as suspend$2, Ya as constUndefined, Yi as matchRight, Yn as timeout, Yr as of$3, Yt as context, Z as unwrap$9, Za as dual, Zi as prepend$1, Zn as tryPromise, Zr as fromIterable$2, Zt as die, _ as fromString, _a as isSome, _i as Tag$2, _n as logError, _r as interrupt, _t as effect, a as make$29, aa as take, ai as fromIterable$3, an as filterOrDieMessage, ar as when$1, at as embedInput, b as Defect, ba as none$3, bi as merge$3, bn as mapBoth, br as succeed$3, bt as provideMerge, c as defaultLogger, ca as map$10, ci as seconds, cn as fnUntraced, cr as zip, ct as fromEffect, d as get$14, da as fromNullable, di as of$1, dn as forkScoped, dr as zipWith, dt as write, ea as some$1, ei as isEmpty$5, en as ensuring, eo as __commonJSMin, er as uninterruptibleMask, et as foldLeftChunks, f as make$25, fa as getOrElse, fi as reduce$2, fn as gen, fr as DeferredTypeId, ft as spaced, g as when, ga as isOption, gi as Reference, gn as locally, gr as failCause, gt as make$28, h as value$1, ha as isNone, hi as GenericTag, hn as isEffect, hr as fail$4, ht as get$15, i as isMailbox, ia as tailNonEmpty, ii as add$1, in as filter$1, ir as useSpan, it as acquireUseRelease$1, ja as Class, ji as filter$2, jn as orElseFail, jr as isInterrupted, jt as is$2, k as Union, ka as pipeArguments, ki as empty$11, kn as orDie, kr as Scope, kt as decodeSync, l as prettyLoggerDefault, la as filter$3, li as appendAll$1, ln as forEach$1, lr as zipLeft, lt as suspend$1, m as orElse$1, ma as getOrUndefined, mi as unsafeFromArray, mn as interruptible, mr as complete, mt as updateContext, n as make$30, na as span, ni as set$2, nn as failCause$1, no as __require, nr as unsafeMakeLatch, nt as fromChannel$1, o as toChannel, oa as unsafeGet, oi as has$1, on as flatMap$1, or as withFiberRuntime, ot as ensuring$1, p as updateEffect, pa as getOrThrow, pi as toArray, pn as ignore, pr as _await, pt as runFork, q as runCollect, qa as globalValue, qi as match$1, qn as tapError, qr as cons$1, qt as catchTag, r as unsafeAdd, ra as splitAt, ri as make$26, rn as failSync, ro as __toESM, rr as unsafeMakeSemaphore, rt as unwrapScoped$1, s as unify, si as remove$4, sn as flatten$3, sr as withParentSpan, st as flatMap$2, t as join$1, ta as sort$2, ti as make$24, tn as fail$2, to as __exportAll, tr as unlessEffect, tt as forEach, u as withMinimumLogLevel, ua as flatMap$3, ui as map$9, un as forkDaemon, ur as zipRight, ut as void_, v as Cause, va as map$8, vi as get$16, vn as logWarning, vr as isDone, vt as mergeAll, w as NumberFromString, wa as mapInput, wi as allocate, wn as matchCauseEffect, wr as TaggedError$1, wt as currentLoggers, x as Int, xa as orElse$2, xi as omit, xn as mapError, xr as unsafeDone, xt as scoped$1, y as Date$, ya as match, yi as getOption, yn as map$6, yr as make$27, yt as provide, z as bufferChunks, za as cached, zi as head$2, zn as scope, zr as set$3, zt as asVoid } from "./esm-DFrz5rIo.mjs";
2
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-Bg9jND3Q.mjs";
3
3
  import { a as HorizontalRuleNode } from "./LexicalExtension.node-BVlcrgOx.mjs";
4
4
  import { $t as ElementNode, Qt as DecoratorNode } from "./Lexical.node-fXM8Jp7p.mjs";
@@ -25,7 +25,7 @@ import { promisify, styleText } from "node:util";
25
25
  import { Buffer as Buffer$1 } from "node:buffer";
26
26
  import fs$1, { constants, readFile } from "node:fs/promises";
27
27
  import process$1, { stdin, stdout } from "node:process";
28
- //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.2/node_modules/@effect/platform/dist/esm/Error.js
28
+ //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.3/node_modules/@effect/platform/dist/esm/Error.js
29
29
  /**
30
30
  * @since 1.0.0
31
31
  * @category type id
@@ -55,8 +55,8 @@ const Module = /*#__PURE__*/ Literal("Clipboard", "Command", "FileSystem", "KeyV
55
55
  var BadArgument = class extends TaggedError("@effect/platform/Error/BadArgument")("BadArgument", {
56
56
  module: Module,
57
57
  method: String$,
58
- description: /*#__PURE__*/ optional$8(String$),
59
- cause: /*#__PURE__*/ optional$8(Defect)
58
+ description: /*#__PURE__*/ optional$9(String$),
59
+ cause: /*#__PURE__*/ optional$9(Defect)
60
60
  }) {
61
61
  /**
62
62
  * @since 1.0.0
@@ -82,10 +82,10 @@ var SystemError = class extends TaggedError("@effect/platform/Error/SystemError"
82
82
  reason: SystemErrorReason,
83
83
  module: Module,
84
84
  method: String$,
85
- description: /*#__PURE__*/ optional$8(String$),
86
- syscall: /*#__PURE__*/ optional$8(String$),
87
- pathOrDescriptor: /*#__PURE__*/ optional$8(/*#__PURE__*/ Union(String$, Number$)),
88
- cause: /*#__PURE__*/ optional$8(Defect)
85
+ description: /*#__PURE__*/ optional$9(String$),
86
+ syscall: /*#__PURE__*/ optional$9(String$),
87
+ pathOrDescriptor: /*#__PURE__*/ optional$9(/*#__PURE__*/ Union(String$, Number$)),
88
+ cause: /*#__PURE__*/ optional$9(Defect)
89
89
  }) {
90
90
  /**
91
91
  * @since 1.0.0
@@ -99,7 +99,7 @@ var SystemError = class extends TaggedError("@effect/platform/Error/SystemError"
99
99
  }
100
100
  };
101
101
  //#endregion
102
- //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.2/node_modules/@effect/platform/dist/esm/internal/fileSystem.js
102
+ //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.3/node_modules/@effect/platform/dist/esm/internal/fileSystem.js
103
103
  /** @internal */
104
104
  const tag$2 = /*#__PURE__*/ GenericTag("@effect/platform/FileSystem");
105
105
  /** @internal */
@@ -151,7 +151,7 @@ const stream = (file, { bufferSize = 16, bytesToRead: bytesToRead_, chunkSize: c
151
151
  return bufferChunks(fromChannel(loop(BigInt(0))), { capacity: bufferSize });
152
152
  };
153
153
  //#endregion
154
- //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.2/node_modules/@effect/platform/dist/esm/FileSystem.js
154
+ //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.3/node_modules/@effect/platform/dist/esm/FileSystem.js
155
155
  /**
156
156
  * @since 1.0.0
157
157
  */
@@ -201,7 +201,7 @@ const WatchEventRemove = /*#__PURE__*/ tagged("Remove");
201
201
  */
202
202
  var WatchBackend = class extends Tag$2("@effect/platform/FileSystem/WatchBackend")() {};
203
203
  //#endregion
204
- //#region ../../node_modules/.pnpm/@effect+typeclass@0.40.0_effect@3.21.2/node_modules/@effect/typeclass/dist/esm/internal/Iterable.js
204
+ //#region ../../node_modules/.pnpm/@effect+typeclass@0.40.0_effect@3.21.3/node_modules/@effect/typeclass/dist/esm/internal/Iterable.js
205
205
  /** @internal */
206
206
  function reduce(b, f) {
207
207
  return function(iterable) {
@@ -221,7 +221,7 @@ function map$5(f) {
221
221
  };
222
222
  }
223
223
  //#endregion
224
- //#region ../../node_modules/.pnpm/@effect+typeclass@0.40.0_effect@3.21.2/node_modules/@effect/typeclass/dist/esm/Product.js
224
+ //#region ../../node_modules/.pnpm/@effect+typeclass@0.40.0_effect@3.21.3/node_modules/@effect/typeclass/dist/esm/Product.js
225
225
  /**
226
226
  * @since 0.24.0
227
227
  */
@@ -234,7 +234,7 @@ const struct$2 = (F) => (fields) => {
234
234
  }, (r) => keys.map((k) => r[k]));
235
235
  };
236
236
  //#endregion
237
- //#region ../../node_modules/.pnpm/@effect+typeclass@0.40.0_effect@3.21.2/node_modules/@effect/typeclass/dist/esm/Semigroup.js
237
+ //#region ../../node_modules/.pnpm/@effect+typeclass@0.40.0_effect@3.21.3/node_modules/@effect/typeclass/dist/esm/Semigroup.js
238
238
  /**
239
239
  * @since 0.24.0
240
240
  */
@@ -314,7 +314,7 @@ const array$1 = () => make$18((self, that) => self.concat(that));
314
314
  */
315
315
  const struct$1 = /*#__PURE__*/ struct$2(Product);
316
316
  //#endregion
317
- //#region ../../node_modules/.pnpm/@effect+typeclass@0.40.0_effect@3.21.2/node_modules/@effect/typeclass/dist/esm/Monoid.js
317
+ //#region ../../node_modules/.pnpm/@effect+typeclass@0.40.0_effect@3.21.3/node_modules/@effect/typeclass/dist/esm/Monoid.js
318
318
  /**
319
319
  * @category constructors
320
320
  * @since 0.24.0
@@ -351,7 +351,7 @@ const struct = (fields) => {
351
351
  return fromSemigroup(struct$1(fields), empty);
352
352
  };
353
353
  //#endregion
354
- //#region ../../node_modules/.pnpm/@effect+printer-ansi@0.49.0_@effect+typeclass@0.40.0_effect@3.21.2__effect@3.21.2/node_modules/@effect/printer-ansi/dist/esm/internal/color.js
354
+ //#region ../../node_modules/.pnpm/@effect+printer-ansi@0.49.0_@effect+typeclass@0.40.0_effect@3.21.3__effect@3.21.3/node_modules/@effect/printer-ansi/dist/esm/internal/color.js
355
355
  /** @internal */
356
356
  const black = { _tag: "Black" };
357
357
  /** @internal */
@@ -378,7 +378,7 @@ const toCode$1 = (color) => {
378
378
  }
379
379
  };
380
380
  //#endregion
381
- //#region ../../node_modules/.pnpm/@effect+printer-ansi@0.49.0_@effect+typeclass@0.40.0_effect@3.21.2__effect@3.21.2/node_modules/@effect/printer-ansi/dist/esm/internal/sgr.js
381
+ //#region ../../node_modules/.pnpm/@effect+printer-ansi@0.49.0_@effect+typeclass@0.40.0_effect@3.21.3__effect@3.21.3/node_modules/@effect/printer-ansi/dist/esm/internal/sgr.js
382
382
  /** @internal */
383
383
  const reset = { _tag: "Reset" };
384
384
  /** @internal */
@@ -540,7 +540,7 @@ const stringifyInternal = (self) => {
540
540
  ]))}${join(self.commands, "")}`;
541
541
  };
542
542
  //#endregion
543
- //#region ../../node_modules/.pnpm/@effect+printer-ansi@0.49.0_@effect+typeclass@0.40.0_effect@3.21.2__effect@3.21.2/node_modules/@effect/printer-ansi/dist/esm/Ansi.js
543
+ //#region ../../node_modules/.pnpm/@effect+printer-ansi@0.49.0_@effect+typeclass@0.40.0_effect@3.21.3__effect@3.21.3/node_modules/@effect/printer-ansi/dist/esm/Ansi.js
544
544
  /**
545
545
  * @since 1.0.0
546
546
  * @category constructors
@@ -597,7 +597,7 @@ const cyanBright = cyanBright$1;
597
597
  */
598
598
  const combine = combine$1;
599
599
  //#endregion
600
- //#region ../../node_modules/.pnpm/@effect+printer@0.49.0_@effect+typeclass@0.40.0_effect@3.21.2__effect@3.21.2/node_modules/@effect/printer/dist/esm/internal/flatten.js
600
+ //#region ../../node_modules/.pnpm/@effect+printer@0.49.0_@effect+typeclass@0.40.0_effect@3.21.3__effect@3.21.3/node_modules/@effect/printer/dist/esm/internal/flatten.js
601
601
  const FlattenSymbolKey = "@effect/printer/Flatten";
602
602
  /** @internal */
603
603
  const FlattenTypeId = /*#__PURE__*/ Symbol.for(FlattenSymbolKey);
@@ -656,7 +656,7 @@ const map$4 = /*#__PURE__*/ dual(2, (self, f) => {
656
656
  }
657
657
  });
658
658
  //#endregion
659
- //#region ../../node_modules/.pnpm/@effect+printer@0.49.0_@effect+typeclass@0.40.0_effect@3.21.2__effect@3.21.2/node_modules/@effect/printer/dist/esm/internal/doc.js
659
+ //#region ../../node_modules/.pnpm/@effect+printer@0.49.0_@effect+typeclass@0.40.0_effect@3.21.3__effect@3.21.3/node_modules/@effect/printer/dist/esm/internal/doc.js
660
660
  const DocSymbolKey = "@effect/printer/Doc";
661
661
  /** @internal */
662
662
  const DocTypeId = /*#__PURE__*/ Symbol.for(DocSymbolKey);
@@ -916,7 +916,7 @@ const textSpaces = (n) => {
916
916
  return s;
917
917
  };
918
918
  //#endregion
919
- //#region ../../node_modules/.pnpm/@effect+printer@0.49.0_@effect+typeclass@0.40.0_effect@3.21.2__effect@3.21.2/node_modules/@effect/printer/dist/esm/internal/docStream.js
919
+ //#region ../../node_modules/.pnpm/@effect+printer@0.49.0_@effect+typeclass@0.40.0_effect@3.21.3__effect@3.21.3/node_modules/@effect/printer/dist/esm/internal/docStream.js
920
920
  const DocStreamSymbolKey = "@effect/printer/DocStream";
921
921
  /** @internal */
922
922
  const DocStreamTypeId = /*#__PURE__*/ Symbol.for(DocStreamSymbolKey);
@@ -1005,7 +1005,7 @@ const popAnnotation = (stream) => {
1005
1005
  return op;
1006
1006
  };
1007
1007
  //#endregion
1008
- //#region ../../node_modules/.pnpm/@effect+printer@0.49.0_@effect+typeclass@0.40.0_effect@3.21.2__effect@3.21.2/node_modules/@effect/printer/dist/esm/internal/layoutPipeline.js
1008
+ //#region ../../node_modules/.pnpm/@effect+printer@0.49.0_@effect+typeclass@0.40.0_effect@3.21.3__effect@3.21.3/node_modules/@effect/printer/dist/esm/internal/layoutPipeline.js
1009
1009
  /** @internal */
1010
1010
  const nil = { _tag: "Nil" };
1011
1011
  /** @internal */
@@ -1021,7 +1021,7 @@ const undoAnnotation = (pipeline) => ({
1021
1021
  pipeline
1022
1022
  });
1023
1023
  //#endregion
1024
- //#region ../../node_modules/.pnpm/@effect+printer@0.49.0_@effect+typeclass@0.40.0_effect@3.21.2__effect@3.21.2/node_modules/@effect/printer/dist/esm/internal/pageWidth.js
1024
+ //#region ../../node_modules/.pnpm/@effect+printer@0.49.0_@effect+typeclass@0.40.0_effect@3.21.3__effect@3.21.3/node_modules/@effect/printer/dist/esm/internal/pageWidth.js
1025
1025
  const PageWidthSymbolKey = "@effect/printer/PageWidth";
1026
1026
  /** @internal */
1027
1027
  const PageWidthTypeId = /*#__PURE__*/ Symbol.for(PageWidthSymbolKey);
@@ -1067,7 +1067,7 @@ const remainingWidth = (pageWidth, ribbonFraction, indentation, currentColumn) =
1067
1067
  return Math.min(columnsLeftInLine, columnsLeftInRibbon);
1068
1068
  };
1069
1069
  //#endregion
1070
- //#region ../../node_modules/.pnpm/@effect+printer@0.49.0_@effect+typeclass@0.40.0_effect@3.21.2__effect@3.21.2/node_modules/@effect/printer/dist/esm/internal/layout.js
1070
+ //#region ../../node_modules/.pnpm/@effect+printer@0.49.0_@effect+typeclass@0.40.0_effect@3.21.3__effect@3.21.3/node_modules/@effect/printer/dist/esm/internal/layout.js
1071
1071
  /** @internal */
1072
1072
  const options$3 = (pageWidth) => ({ pageWidth });
1073
1073
  /** @internal */
@@ -1256,7 +1256,7 @@ const failsOnFirstLine = (self) => {
1256
1256
  throw new Error("bug");
1257
1257
  };
1258
1258
  //#endregion
1259
- //#region ../../node_modules/.pnpm/@effect+printer@0.49.0_@effect+typeclass@0.40.0_effect@3.21.2__effect@3.21.2/node_modules/@effect/printer/dist/esm/Doc.js
1259
+ //#region ../../node_modules/.pnpm/@effect+printer@0.49.0_@effect+typeclass@0.40.0_effect@3.21.3__effect@3.21.3/node_modules/@effect/printer/dist/esm/Doc.js
1260
1260
  /**
1261
1261
  * The abstract data type `Doc<A>` represents prettified documents that have
1262
1262
  * been annotated with data of type `A`.
@@ -1643,7 +1643,7 @@ const indent$1 = indent$2;
1643
1643
  */
1644
1644
  const annotate = annotate$1;
1645
1645
  //#endregion
1646
- //#region ../../node_modules/.pnpm/@effect+printer-ansi@0.49.0_@effect+typeclass@0.40.0_effect@3.21.2__effect@3.21.2/node_modules/@effect/printer-ansi/dist/esm/internal/ansiDoc.js
1646
+ //#region ../../node_modules/.pnpm/@effect+printer-ansi@0.49.0_@effect+typeclass@0.40.0_effect@3.21.3__effect@3.21.3/node_modules/@effect/printer-ansi/dist/esm/internal/ansiDoc.js
1647
1647
  /** @internal */
1648
1648
  const beep$1 = /*#__PURE__*/ annotate(empty$8, beep$2);
1649
1649
  /** @internal */
@@ -1667,7 +1667,7 @@ const eraseLines$1 = (rows) => annotate(empty$8, eraseLines$2(rows));
1667
1667
  /** @internal */
1668
1668
  const eraseLine$1 = /*#__PURE__*/ annotate(empty$8, eraseLine$2);
1669
1669
  //#endregion
1670
- //#region ../../node_modules/.pnpm/@effect+printer@0.49.0_@effect+typeclass@0.40.0_effect@3.21.2__effect@3.21.2/node_modules/@effect/printer/dist/esm/PageWidth.js
1670
+ //#region ../../node_modules/.pnpm/@effect+printer@0.49.0_@effect+typeclass@0.40.0_effect@3.21.3__effect@3.21.3/node_modules/@effect/printer/dist/esm/PageWidth.js
1671
1671
  /**
1672
1672
  * @since 1.0.0
1673
1673
  */
@@ -1677,7 +1677,7 @@ const eraseLine$1 = /*#__PURE__*/ annotate(empty$8, eraseLine$2);
1677
1677
  */
1678
1678
  const defaultPageWidth = defaultPageWidth$1;
1679
1679
  //#endregion
1680
- //#region ../../node_modules/.pnpm/@effect+printer@0.49.0_@effect+typeclass@0.40.0_effect@3.21.2__effect@3.21.2/node_modules/@effect/printer/dist/esm/Layout.js
1680
+ //#region ../../node_modules/.pnpm/@effect+printer@0.49.0_@effect+typeclass@0.40.0_effect@3.21.3__effect@3.21.3/node_modules/@effect/printer/dist/esm/Layout.js
1681
1681
  /**
1682
1682
  * @since 1.0.0
1683
1683
  */
@@ -1852,7 +1852,7 @@ const pretty = pretty$1;
1852
1852
  */
1853
1853
  const smart = smart$1;
1854
1854
  //#endregion
1855
- //#region ../../node_modules/.pnpm/@effect+printer-ansi@0.49.0_@effect+typeclass@0.40.0_effect@3.21.2__effect@3.21.2/node_modules/@effect/printer-ansi/dist/esm/internal/ansiRender.js
1855
+ //#region ../../node_modules/.pnpm/@effect+printer-ansi@0.49.0_@effect+typeclass@0.40.0_effect@3.21.3__effect@3.21.3/node_modules/@effect/printer-ansi/dist/esm/internal/ansiRender.js
1856
1856
  /** @internal */
1857
1857
  const render$3 = /*#__PURE__*/ dual(2, (self, config) => {
1858
1858
  switch (config.style) {
@@ -1895,7 +1895,7 @@ const renderSafe = (self, stack) => {
1895
1895
  }
1896
1896
  };
1897
1897
  //#endregion
1898
- //#region ../../node_modules/.pnpm/@effect+printer-ansi@0.49.0_@effect+typeclass@0.40.0_effect@3.21.2__effect@3.21.2/node_modules/@effect/printer-ansi/dist/esm/AnsiDoc.js
1898
+ //#region ../../node_modules/.pnpm/@effect+printer-ansi@0.49.0_@effect+typeclass@0.40.0_effect@3.21.3__effect@3.21.3/node_modules/@effect/printer-ansi/dist/esm/AnsiDoc.js
1899
1899
  /**
1900
1900
  * Play a beeping sound.
1901
1901
  *
@@ -1993,7 +1993,7 @@ const eraseLine = eraseLine$1;
1993
1993
  */
1994
1994
  const render$2 = render$3;
1995
1995
  //#endregion
1996
- //#region ../../node_modules/.pnpm/@effect+printer@0.49.0_@effect+typeclass@0.40.0_effect@3.21.2__effect@3.21.2/node_modules/@effect/printer/dist/esm/internal/optimize.js
1996
+ //#region ../../node_modules/.pnpm/@effect+printer@0.49.0_@effect+typeclass@0.40.0_effect@3.21.3__effect@3.21.3/node_modules/@effect/printer/dist/esm/internal/optimize.js
1997
1997
  /** @internal */
1998
1998
  const optimize$1 = /*#__PURE__*/ dual(2, (self, depth) => runSync(optimizeSafe(self, depth)));
1999
1999
  const optimizeSafe = (self, depth) => {
@@ -2036,7 +2036,7 @@ const optimizeSafe = (self, depth) => {
2036
2036
  return optimize(self);
2037
2037
  };
2038
2038
  //#endregion
2039
- //#region ../../node_modules/.pnpm/@effect+printer@0.49.0_@effect+typeclass@0.40.0_effect@3.21.2__effect@3.21.2/node_modules/@effect/printer/dist/esm/Optimize.js
2039
+ //#region ../../node_modules/.pnpm/@effect+printer@0.49.0_@effect+typeclass@0.40.0_effect@3.21.3__effect@3.21.3/node_modules/@effect/printer/dist/esm/Optimize.js
2040
2040
  /**
2041
2041
  * @since 1.0.0
2042
2042
  */
@@ -2084,7 +2084,7 @@ const Deep = { _tag: "Deep" };
2084
2084
  */
2085
2085
  const optimize = optimize$1;
2086
2086
  //#endregion
2087
- //#region ../../node_modules/.pnpm/@effect+printer-ansi@0.49.0_@effect+typeclass@0.40.0_effect@3.21.2__effect@3.21.2/node_modules/@effect/printer-ansi/dist/esm/Color.js
2087
+ //#region ../../node_modules/.pnpm/@effect+printer-ansi@0.49.0_@effect+typeclass@0.40.0_effect@3.21.3__effect@3.21.3/node_modules/@effect/printer-ansi/dist/esm/Color.js
2088
2088
  /**
2089
2089
  * @since 1.0.0
2090
2090
  */
@@ -2109,7 +2109,7 @@ const cyan = cyan$1;
2109
2109
  */
2110
2110
  const white = white$3;
2111
2111
  //#endregion
2112
- //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.2__@effect+printer-ansi@0.49.0_@_4d5fe3e52e753e91ea7f4be1c61c2cec/node_modules/@effect/cli/dist/esm/internal/helpDoc/span.js
2112
+ //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.3__@effect+printer-ansi@0.49.0_@_7f3f53a68d4dca55cb6daaa18dc6a25c/node_modules/@effect/cli/dist/esm/internal/helpDoc/span.js
2113
2113
  /** @internal */
2114
2114
  const text$10 = (value) => ({
2115
2115
  _tag: "Text",
@@ -2164,16 +2164,16 @@ const spans = (spans) => {
2164
2164
  return empty$7;
2165
2165
  };
2166
2166
  /** @internal */
2167
- const isEmpty$3 = (self) => size$5(self) === 0;
2167
+ const isEmpty$3 = (self) => size$6(self) === 0;
2168
2168
  /** @internal */
2169
- const size$5 = (self) => {
2169
+ const size$6 = (self) => {
2170
2170
  switch (self._tag) {
2171
2171
  case "Text":
2172
2172
  case "URI": return self.value.length;
2173
2173
  case "Highlight":
2174
2174
  case "Strong":
2175
- case "Weak": return size$5(self.value);
2176
- case "Sequence": return size$5(self.left) + size$5(self.right);
2175
+ case "Weak": return size$6(self.value);
2176
+ case "Sequence": return size$6(self.left) + size$6(self.right);
2177
2177
  }
2178
2178
  };
2179
2179
  /** @internal */
@@ -2188,7 +2188,7 @@ const toAnsiDoc$1 = (self) => {
2188
2188
  }
2189
2189
  };
2190
2190
  //#endregion
2191
- //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.2__@effect+printer-ansi@0.49.0_@_4d5fe3e52e753e91ea7f4be1c61c2cec/node_modules/@effect/cli/dist/esm/internal/helpDoc.js
2191
+ //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.3__@effect+printer-ansi@0.49.0_@_7f3f53a68d4dca55cb6daaa18dc6a25c/node_modules/@effect/cli/dist/esm/internal/helpDoc.js
2192
2192
  /** @internal */
2193
2193
  const isEmpty$2 = (helpDoc) => helpDoc._tag === "Empty";
2194
2194
  /** @internal */
@@ -2259,7 +2259,7 @@ const toAnsiDocInternal = (self) => {
2259
2259
  }
2260
2260
  };
2261
2261
  //#endregion
2262
- //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.2__@effect+printer-ansi@0.49.0_@_4d5fe3e52e753e91ea7f4be1c61c2cec/node_modules/@effect/cli/dist/esm/internal/cliConfig.js
2262
+ //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.3__@effect+printer-ansi@0.49.0_@_7f3f53a68d4dca55cb6daaa18dc6a25c/node_modules/@effect/cli/dist/esm/internal/cliConfig.js
2263
2263
  /** @internal */
2264
2264
  const Tag$1 = /*#__PURE__*/ GenericTag("@effect/cli/CliConfig");
2265
2265
  /** @internal */
@@ -2274,11 +2274,11 @@ const defaultConfig = {
2274
2274
  /** @internal */
2275
2275
  const normalizeCase = /*#__PURE__*/ dual(2, (self, text) => self.isCaseSensitive ? text : text.toLowerCase());
2276
2276
  //#endregion
2277
- //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.2/node_modules/@effect/platform/dist/esm/internal/terminal.js
2277
+ //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.3/node_modules/@effect/platform/dist/esm/internal/terminal.js
2278
2278
  /** @internal */
2279
2279
  const tag$1 = /*#__PURE__*/ GenericTag("@effect/platform/Terminal");
2280
2280
  //#endregion
2281
- //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.2/node_modules/@effect/platform/dist/esm/Terminal.js
2281
+ //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.3/node_modules/@effect/platform/dist/esm/Terminal.js
2282
2282
  /**
2283
2283
  * A `QuitException` represents an exception that occurs when a user attempts to
2284
2284
  * quit out of a `Terminal` prompt for input (usually by entering `ctrl`+`c`).
@@ -2298,7 +2298,7 @@ const isQuitException = (u) => typeof u === "object" && u != null && "_tag" in u
2298
2298
  */
2299
2299
  const Terminal = tag$1;
2300
2300
  //#endregion
2301
- //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.2__@effect+printer-ansi@0.49.0_@_4d5fe3e52e753e91ea7f4be1c61c2cec/node_modules/@effect/cli/dist/esm/internal/prompt/action.js
2301
+ //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.3__@effect+printer-ansi@0.49.0_@_7f3f53a68d4dca55cb6daaa18dc6a25c/node_modules/@effect/cli/dist/esm/internal/prompt/action.js
2302
2302
  /** @internal */
2303
2303
  const Action = /*#__PURE__*/ taggedEnum();
2304
2304
  /** @internal */
@@ -2380,7 +2380,7 @@ const succeed = (value) => {
2380
2380
  return op;
2381
2381
  };
2382
2382
  //#endregion
2383
- //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.2__@effect+printer-ansi@0.49.0_@_4d5fe3e52e753e91ea7f4be1c61c2cec/node_modules/@effect/cli/dist/esm/internal/prompt/ansi-utils.js
2383
+ //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.3__@effect+printer-ansi@0.49.0_@_7f3f53a68d4dca55cb6daaa18dc6a25c/node_modules/@effect/cli/dist/esm/internal/prompt/ansi-utils.js
2384
2384
  const defaultFigures = {
2385
2385
  arrowUp: /*#__PURE__*/ text$11("↑"),
2386
2386
  arrowDown: /*#__PURE__*/ text$11("↓"),
@@ -2433,7 +2433,7 @@ function lines(prompt, columns) {
2433
2433
  return columns === 0 ? lines.length : pipe(map$7(lines, (line) => Math.ceil(line.length / columns)), reduce$1(0, (left, right) => left + right));
2434
2434
  }
2435
2435
  //#endregion
2436
- //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.2__@effect+printer-ansi@0.49.0_@_4d5fe3e52e753e91ea7f4be1c61c2cec/node_modules/@effect/cli/dist/esm/internal/prompt/date.js
2436
+ //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.3__@effect+printer-ansi@0.49.0_@_7f3f53a68d4dca55cb6daaa18dc6a25c/node_modules/@effect/cli/dist/esm/internal/prompt/date.js
2437
2437
  const renderBeep$5 = /*#__PURE__*/ render$2(beep, { style: "pretty" });
2438
2438
  function handleClear$5(options) {
2439
2439
  return (state, _) => {
@@ -2885,13 +2885,13 @@ var Meridiem = class extends DatePart {
2885
2885
  }
2886
2886
  };
2887
2887
  //#endregion
2888
- //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.2/node_modules/@effect/platform/dist/esm/internal/path.js
2888
+ //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.3/node_modules/@effect/platform/dist/esm/internal/path.js
2889
2889
  /** @internal */
2890
2890
  const TypeId$13 = /*#__PURE__*/ Symbol.for("@effect/platform/Path");
2891
2891
  /** @internal */
2892
2892
  const Path$2 = /*#__PURE__*/ GenericTag("@effect/platform/Path");
2893
2893
  //#endregion
2894
- //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.2/node_modules/@effect/platform/dist/esm/Path.js
2894
+ //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.3/node_modules/@effect/platform/dist/esm/Path.js
2895
2895
  /**
2896
2896
  * @since 1.0.0
2897
2897
  */
@@ -2906,7 +2906,7 @@ const TypeId$12 = TypeId$13;
2906
2906
  */
2907
2907
  const Path$1 = Path$2;
2908
2908
  //#endregion
2909
- //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.2__@effect+printer-ansi@0.49.0_@_4d5fe3e52e753e91ea7f4be1c61c2cec/node_modules/@effect/cli/dist/esm/internal/prompt/utils.js
2909
+ //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.3__@effect+printer-ansi@0.49.0_@_7f3f53a68d4dca55cb6daaa18dc6a25c/node_modules/@effect/cli/dist/esm/internal/prompt/utils.js
2910
2910
  /** @internal */
2911
2911
  const entriesToDisplay = (cursor, total, maxVisible) => {
2912
2912
  const max = maxVisible === void 0 ? total : maxVisible;
@@ -2919,7 +2919,7 @@ const entriesToDisplay = (cursor, total, maxVisible) => {
2919
2919
  };
2920
2920
  };
2921
2921
  //#endregion
2922
- //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.2__@effect+printer-ansi@0.49.0_@_4d5fe3e52e753e91ea7f4be1c61c2cec/node_modules/@effect/cli/dist/esm/internal/prompt/file.js
2922
+ //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.3__@effect+printer-ansi@0.49.0_@_7f3f53a68d4dca55cb6daaa18dc6a25c/node_modules/@effect/cli/dist/esm/internal/prompt/file.js
2923
2923
  const CONFIRM_MESSAGE = "The selected directory contains files. Would you like to traverse the selected directory?";
2924
2924
  const Confirm = /*#__PURE__*/ taggedEnum();
2925
2925
  const showConfirmation = /*#__PURE__*/ Confirm.$is("Show");
@@ -3123,7 +3123,7 @@ function handleProcess$3(options) {
3123
3123
  });
3124
3124
  }
3125
3125
  /** @internal */
3126
- const file$4 = (options = {}) => {
3126
+ const file$5 = (options = {}) => {
3127
3127
  const opts = {
3128
3128
  type: options.type ?? "file",
3129
3129
  message: options.message ?? `Choose a file`,
@@ -3146,7 +3146,7 @@ const file$4 = (options = {}) => {
3146
3146
  });
3147
3147
  };
3148
3148
  //#endregion
3149
- //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.2__@effect+printer-ansi@0.49.0_@_4d5fe3e52e753e91ea7f4be1c61c2cec/node_modules/@effect/cli/dist/esm/internal/prompt/number.js
3149
+ //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.3__@effect+printer-ansi@0.49.0_@_7f3f53a68d4dca55cb6daaa18dc6a25c/node_modules/@effect/cli/dist/esm/internal/prompt/number.js
3150
3150
  const parseInt$1 = /*#__PURE__*/ NumberFromString.pipe(/*#__PURE__*/ int(), decodeUnknown);
3151
3151
  const parseFloat$1 = /*#__PURE__*/ decodeUnknown(NumberFromString);
3152
3152
  const renderBeep$3 = /*#__PURE__*/ render$2(beep, { style: "pretty" });
@@ -3401,7 +3401,7 @@ const float = (options) => {
3401
3401
  });
3402
3402
  };
3403
3403
  //#endregion
3404
- //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.2__@effect+printer-ansi@0.49.0_@_4d5fe3e52e753e91ea7f4be1c61c2cec/node_modules/@effect/cli/dist/esm/internal/prompt/select.js
3404
+ //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.3__@effect+printer-ansi@0.49.0_@_7f3f53a68d4dca55cb6daaa18dc6a25c/node_modules/@effect/cli/dist/esm/internal/prompt/select.js
3405
3405
  const renderBeep$2 = /*#__PURE__*/ render$2(beep, { style: "pretty" });
3406
3406
  const NEWLINE_REGEX = /\r?\n/;
3407
3407
  function renderOutput$2(leadingSymbol, trailingSymbol, options) {
@@ -3539,7 +3539,7 @@ const select = (options) => {
3539
3539
  });
3540
3540
  };
3541
3541
  //#endregion
3542
- //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.2__@effect+printer-ansi@0.49.0_@_4d5fe3e52e753e91ea7f4be1c61c2cec/node_modules/@effect/cli/dist/esm/internal/prompt/text.js
3542
+ //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.3__@effect+printer-ansi@0.49.0_@_7f3f53a68d4dca55cb6daaa18dc6a25c/node_modules/@effect/cli/dist/esm/internal/prompt/text.js
3543
3543
  function getValue(state, options) {
3544
3544
  return state.value.length > 0 ? state.value : options.default;
3545
3545
  }
@@ -3739,7 +3739,7 @@ const hidden = (options) => basePrompt(options, "hidden").pipe(map$3(make$21));
3739
3739
  /** @internal */
3740
3740
  const text$9 = (options) => basePrompt(options, "text");
3741
3741
  //#endregion
3742
- //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.2__@effect+printer-ansi@0.49.0_@_4d5fe3e52e753e91ea7f4be1c61c2cec/node_modules/@effect/cli/dist/esm/internal/prompt/toggle.js
3742
+ //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.3__@effect+printer-ansi@0.49.0_@_7f3f53a68d4dca55cb6daaa18dc6a25c/node_modules/@effect/cli/dist/esm/internal/prompt/toggle.js
3743
3743
  const renderBeep = /*#__PURE__*/ render$2(beep, { style: "pretty" });
3744
3744
  function handleClear(options) {
3745
3745
  return gen(function* () {
@@ -4020,7 +4020,7 @@ const wizardInternal$3 = (self, help) => {
4020
4020
  case "Integer": return integer$3({ message: toAnsiText(sequence(help, p$1("Enter an integer"))).trimEnd() }).pipe(map$3((value) => `${value}`));
4021
4021
  case "Path": {
4022
4022
  const message = sequence(help, p$1("Select a file system path"));
4023
- return file$4({
4023
+ return file$5({
4024
4024
  type: self.pathType,
4025
4025
  message: toAnsiText(message).trimEnd()
4026
4026
  });
@@ -4085,7 +4085,7 @@ const getZshCompletions$3 = (self) => {
4085
4085
  }
4086
4086
  };
4087
4087
  //#endregion
4088
- //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.2__@effect+printer-ansi@0.49.0_@_4d5fe3e52e753e91ea7f4be1c61c2cec/node_modules/@effect/cli/dist/esm/internal/usage.js
4088
+ //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.3__@effect+printer-ansi@0.49.0_@_7f3f53a68d4dca55cb6daaa18dc6a25c/node_modules/@effect/cli/dist/esm/internal/usage.js
4089
4089
  /** @internal */
4090
4090
  const empty$5 = { _tag: "Empty" };
4091
4091
  /** @internal */
@@ -4097,7 +4097,7 @@ const named = (names, acceptedValues) => ({
4097
4097
  acceptedValues
4098
4098
  });
4099
4099
  /** @internal */
4100
- const optional$7 = (self) => ({
4100
+ const optional$8 = (self) => ({
4101
4101
  _tag: "Optional",
4102
4102
  usage: self
4103
4103
  });
@@ -4139,7 +4139,7 @@ const simplify = (self, config) => {
4139
4139
  case "Optional": {
4140
4140
  if (self.usage._tag === "Empty") return empty$5;
4141
4141
  const usage = simplify(self.usage, config);
4142
- return usage._tag === "Empty" ? empty$5 : usage._tag === "Optional" ? usage : optional$7(usage);
4142
+ return usage._tag === "Empty" ? empty$5 : usage._tag === "Optional" ? usage : optional$8(usage);
4143
4143
  }
4144
4144
  case "Repeated": {
4145
4145
  const usage = simplify(self.usage, config);
@@ -4325,7 +4325,7 @@ const map$2 = /*#__PURE__*/ dual(2, (self, f) => mapEffect$1(self, (a) => succee
4325
4325
  /** @internal */
4326
4326
  const mapEffect$1 = /*#__PURE__*/ dual(2, (self, f) => makeMap$1(self, f));
4327
4327
  /** @internal */
4328
- const optional$6 = (self) => makeWithDefault$1(map$2(self, some), none$3());
4328
+ const optional$7 = (self) => makeWithDefault$1(map$2(self, some), none$3());
4329
4329
  /** @internal */
4330
4330
  const repeated$1 = (self) => makeVariadic$1(self, none$3(), none$3());
4331
4331
  /** @internal */
@@ -4402,7 +4402,7 @@ const getUsageInternal$2 = (self) => {
4402
4402
  case "Both": return concat(getUsageInternal$2(self.left), getUsageInternal$2(self.right));
4403
4403
  case "Variadic": return repeated$2(getUsageInternal$2(self.args));
4404
4404
  case "WithDefault":
4405
- case "WithFallbackConfig": return optional$7(getUsageInternal$2(self.args));
4405
+ case "WithFallbackConfig": return optional$8(getUsageInternal$2(self.args));
4406
4406
  }
4407
4407
  };
4408
4408
  const makeSingle$1 = (pseudoName, primitiveType, description = empty$6) => {
@@ -4503,7 +4503,7 @@ const wizardInternal$2 = (self, config) => {
4503
4503
  message: toAnsiText(pipe(getHelpInternal$2(self), sequence(repeatHelp))).trimEnd(),
4504
4504
  min: getMinSizeInternal$1(self),
4505
4505
  max: getMaxSizeInternal$1(self)
4506
- }).pipe(zipLeft(log()), flatMap$1((n) => n <= 0 ? succeed$1(empty$11()) : make$23(empty$11()).pipe(flatMap$1((ref) => wizardInternal$2(self.args, config).pipe(flatMap$1((args) => update$7(ref, appendAll(args))), repeatN(n - 1), zipRight(get$11(ref)), tap((args) => validateInternal(self, args, config)))))));
4506
+ }).pipe(zipLeft(log()), flatMap$1((n) => n <= 0 ? succeed$1(empty$11()) : make$23(empty$11()).pipe(flatMap$1((ref) => wizardInternal$2(self.args, config).pipe(flatMap$1((args) => update$8(ref, appendAll(args))), repeatN(n - 1), zipRight(get$12(ref)), tap((args) => validateInternal(self, args, config)))))));
4507
4507
  }
4508
4508
  case "WithDefault": {
4509
4509
  const defaultHelp = p$1(`This argument is optional - use the default?`);
@@ -4587,12 +4587,12 @@ const getZshCompletions$2 = (self, state = {
4587
4587
  }
4588
4588
  };
4589
4589
  //#endregion
4590
- //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.2__@effect+printer-ansi@0.49.0_@_4d5fe3e52e753e91ea7f4be1c61c2cec/node_modules/@effect/cli/dist/esm/Args.js
4590
+ //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.3__@effect+printer-ansi@0.49.0_@_7f3f53a68d4dca55cb6daaa18dc6a25c/node_modules/@effect/cli/dist/esm/Args.js
4591
4591
  /**
4592
4592
  * @since 1.0.0
4593
4593
  * @category combinators
4594
4594
  */
4595
- const optional$5 = optional$6;
4595
+ const optional$6 = optional$7;
4596
4596
  /**
4597
4597
  * @since 1.0.0
4598
4598
  * @category combinators
@@ -4608,14 +4608,14 @@ const repeated = repeated$1;
4608
4608
  */
4609
4609
  const text$6 = text$7;
4610
4610
  //#endregion
4611
- //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.2__@effect+printer-ansi@0.49.0_@_4d5fe3e52e753e91ea7f4be1c61c2cec/node_modules/@effect/cli/dist/esm/HelpDoc.js
4611
+ //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.3__@effect+printer-ansi@0.49.0_@_7f3f53a68d4dca55cb6daaa18dc6a25c/node_modules/@effect/cli/dist/esm/HelpDoc.js
4612
4612
  /**
4613
4613
  * @since 1.0.0
4614
4614
  * @category constructors
4615
4615
  */
4616
4616
  const p = p$1;
4617
4617
  //#endregion
4618
- //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.2__@effect+printer-ansi@0.49.0_@_4d5fe3e52e753e91ea7f4be1c61c2cec/node_modules/@effect/cli/dist/esm/internal/autoCorrect.js
4618
+ //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.3__@effect+printer-ansi@0.49.0_@_7f3f53a68d4dca55cb6daaa18dc6a25c/node_modules/@effect/cli/dist/esm/internal/autoCorrect.js
4619
4619
  /** @internal */
4620
4620
  const levensteinDistance = (first, second, config) => {
4621
4621
  if (first.length === 0 && second.length === 0) return 0;
@@ -4638,9 +4638,9 @@ const levensteinDistance = (first, second, config) => {
4638
4638
  return matrix[rowCount][columnCount];
4639
4639
  };
4640
4640
  //#endregion
4641
- //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.2__@effect+printer-ansi@0.49.0_@_4d5fe3e52e753e91ea7f4be1c61c2cec/node_modules/@effect/cli/dist/esm/internal/prompt/list.js
4641
+ //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.3__@effect+printer-ansi@0.49.0_@_7f3f53a68d4dca55cb6daaa18dc6a25c/node_modules/@effect/cli/dist/esm/internal/prompt/list.js
4642
4642
  /** @internal */
4643
- const list$10 = (options) => text$9(options).pipe(map$3((output) => output.split(options.delimiter || ",")));
4643
+ const list$11 = (options) => text$9(options).pipe(map$3((output) => output.split(options.delimiter || ",")));
4644
4644
  /** @internal */
4645
4645
  const OptionsTypeId = /*#__PURE__*/ Symbol.for("@effect/cli/Options");
4646
4646
  const proto$2 = {
@@ -4711,7 +4711,7 @@ const getUsage$1 = (self) => getUsageInternal$1(self);
4711
4711
  /** @internal */
4712
4712
  const map$1 = /*#__PURE__*/ dual(2, (self, f) => makeMap(self, (a) => right(f(a))));
4713
4713
  /** @internal */
4714
- const optional$4 = (self) => withDefault$1(map$1(self, some), none$3());
4714
+ const optional$5 = (self) => withDefault$1(map$1(self, some), none$3());
4715
4715
  /** @internal */
4716
4716
  const orElse = /*#__PURE__*/ dual(2, (self, that) => orElseEither(self, that).pipe(map$1(merge$2)));
4717
4717
  /** @internal */
@@ -4854,7 +4854,7 @@ const getUsageInternal$1 = (self) => {
4854
4854
  case "OrElse": return alternation(getUsageInternal$1(self.left), getUsageInternal$1(self.right));
4855
4855
  case "Variadic": return repeated$2(getUsageInternal$1(self.argumentOption));
4856
4856
  case "WithDefault":
4857
- case "WithFallback": return optional$7(getUsageInternal$1(self.options));
4857
+ case "WithFallback": return optional$8(getUsageInternal$1(self.options));
4858
4858
  }
4859
4859
  };
4860
4860
  const isBoolInternal = (self) => {
@@ -4978,7 +4978,7 @@ const parseInternal$1 = (self, args, config) => {
4978
4978
  switch (self._tag) {
4979
4979
  case "Empty": return _void;
4980
4980
  case "Single": {
4981
- const singleNames = filterMap(getNames$1(self), (name) => get$12(args, name));
4981
+ const singleNames = filterMap(getNames$1(self), (name) => get$13(args, name));
4982
4982
  if (isNonEmptyReadonlyArray(singleNames)) {
4983
4983
  const head = headNonEmpty(singleNames);
4984
4984
  if (isEmptyReadonlyArray(tailNonEmpty(singleNames))) {
@@ -5026,7 +5026,7 @@ const parseInternal$1 = (self, args, config) => {
5026
5026
  case "Variadic": {
5027
5027
  const min = getOrElse(self.min, () => 0);
5028
5028
  const max = getOrElse(self.max, () => Number.MAX_SAFE_INTEGER);
5029
- const matchedArgument = filterMap(getNames$1(self), (name) => get$12(args, name));
5029
+ const matchedArgument = filterMap(getNames$1(self), (name) => get$13(args, name));
5030
5030
  const validateMinMax = (values) => {
5031
5031
  if (values.length < min) return fail$2(invalidValue(p$1(`Expected at least ${min} value(s) for option: '${self.argumentOption.fullName}'`)));
5032
5032
  if (values.length > max) return fail$2(invalidValue(p$1(`Expected at most ${max} value(s) for option: '${self.argumentOption.fullName}'`)));
@@ -5058,7 +5058,7 @@ const wizardInternal$1 = (self, config) => {
5058
5058
  return parseCommandLine(self, args, config).pipe(as(args));
5059
5059
  }), zipLeft(log()));
5060
5060
  }
5061
- case "KeyValueMap": return list$10({
5061
+ case "KeyValueMap": return list$11({
5062
5062
  message: toAnsiText(p$1("Enter `key=value` pairs separated by spaces")).trim(),
5063
5063
  delimiter: " "
5064
5064
  }).pipe(flatMap$1((args) => {
@@ -5086,7 +5086,7 @@ const wizardInternal$1 = (self, config) => {
5086
5086
  message: toAnsiText(pipe(getHelpInternal$1(self), sequence(repeatHelp))).trimEnd(),
5087
5087
  min: getMinSizeInternal(self),
5088
5088
  max: getMaxSizeInternal(self)
5089
- }).pipe(flatMap$1((n) => n <= 0 ? succeed$1(empty$11()) : make$23(empty$11()).pipe(flatMap$1((ref) => wizardInternal$1(self.argumentOption, config).pipe(flatMap$1((args) => update$7(ref, appendAll(args))), repeatN(n - 1), zipRight(get$11(ref)))))));
5089
+ }).pipe(flatMap$1((n) => n <= 0 ? succeed$1(empty$11()) : make$23(empty$11()).pipe(flatMap$1((ref) => wizardInternal$1(self.argumentOption, config).pipe(flatMap$1((args) => update$8(ref, appendAll(args))), repeatN(n - 1), zipRight(get$12(ref)))))));
5090
5090
  }
5091
5091
  case "WithDefault": {
5092
5092
  if (isBoolInternal(self.options)) return wizardInternal$1(self.options, config);
@@ -5494,7 +5494,7 @@ const merge$1 = (map1, map2) => {
5494
5494
  if (isNonEmptyReadonlyArray(map2)) {
5495
5495
  const head = headNonEmpty(map2);
5496
5496
  const tail = tailNonEmpty(map2);
5497
- return merge$1(match(get$12(map1, head[0]), {
5497
+ return merge$1(match(get$13(map1, head[0]), {
5498
5498
  onNone: () => set$2(map1, head[0], head[1]),
5499
5499
  onSome: (elems) => set$2(map1, head[0], appendAll(elems, head[1]))
5500
5500
  }), tail);
@@ -5592,7 +5592,7 @@ const getZshCompletions$1 = (self, state = {
5592
5592
  }
5593
5593
  };
5594
5594
  //#endregion
5595
- //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.2__@effect+printer-ansi@0.49.0_@_4d5fe3e52e753e91ea7f4be1c61c2cec/node_modules/@effect/cli/dist/esm/Options.js
5595
+ //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.3__@effect+printer-ansi@0.49.0_@_7f3f53a68d4dca55cb6daaa18dc6a25c/node_modules/@effect/cli/dist/esm/Options.js
5596
5596
  /**
5597
5597
  * @since 1.0.0
5598
5598
  * @category constructors
@@ -5636,7 +5636,7 @@ const text$4 = text$5;
5636
5636
  * @since 1.0.0
5637
5637
  * @category combinators
5638
5638
  */
5639
- const optional$3 = optional$4;
5639
+ const optional$4 = optional$5;
5640
5640
  /**
5641
5641
  * @since 1.0.0
5642
5642
  * @category combinators
@@ -5648,7 +5648,7 @@ const withDefault = withDefault$1;
5648
5648
  */
5649
5649
  const withDescription$3 = withDescription$4;
5650
5650
  //#endregion
5651
- //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.2__@effect+printer-ansi@0.49.0_@_4d5fe3e52e753e91ea7f4be1c61c2cec/node_modules/@effect/cli/dist/esm/internal/builtInOptions.js
5651
+ //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.3__@effect+printer-ansi@0.49.0_@_7f3f53a68d4dca55cb6daaa18dc6a25c/node_modules/@effect/cli/dist/esm/internal/builtInOptions.js
5652
5652
  /** @internal */
5653
5653
  const setLogLevel = (level) => ({
5654
5654
  _tag: "SetLogLevel",
@@ -5682,9 +5682,9 @@ const completionsOptions = /*#__PURE__*/ choiceWithValue("completions", [
5682
5682
  ["bash", "bash"],
5683
5683
  ["fish", "fish"],
5684
5684
  ["zsh", "zsh"]
5685
- ]).pipe(optional$4, /*#__PURE__*/ withDescription$4("Generate a completion script for a specific shell."));
5685
+ ]).pipe(optional$5, /*#__PURE__*/ withDescription$4("Generate a completion script for a specific shell."));
5686
5686
  /** @internal */
5687
- const logLevelOptions = /*#__PURE__*/ choiceWithValue("log-level", allLevels.map((level) => [level._tag.toLowerCase(), level])).pipe(optional$4, /*#__PURE__*/ withDescription$4("Sets the minimum log level for a command."));
5687
+ const logLevelOptions = /*#__PURE__*/ choiceWithValue("log-level", allLevels.map((level) => [level._tag.toLowerCase(), level])).pipe(optional$5, /*#__PURE__*/ withDescription$4("Sets the minimum log level for a command."));
5688
5688
  /** @internal */
5689
5689
  const helpOptions = /*#__PURE__*/ boolean$1("help").pipe(/*#__PURE__*/ withAlias("h"), /*#__PURE__*/ withDescription$4("Show the help documentation for a command."));
5690
5690
  /** @internal */
@@ -5707,7 +5707,7 @@ const builtInOptions = (command, usage, helpDoc) => map$1(builtIns, (builtIn) =>
5707
5707
  return none$3();
5708
5708
  });
5709
5709
  //#endregion
5710
- //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.2__@effect+printer-ansi@0.49.0_@_4d5fe3e52e753e91ea7f4be1c61c2cec/node_modules/@effect/cli/dist/esm/internal/commandDirective.js
5710
+ //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.3__@effect+printer-ansi@0.49.0_@_7f3f53a68d4dca55cb6daaa18dc6a25c/node_modules/@effect/cli/dist/esm/internal/commandDirective.js
5711
5711
  /** @internal */
5712
5712
  const builtIn = (option) => ({
5713
5713
  _tag: "BuiltIn",
@@ -5816,10 +5816,10 @@ const getHelpInternal = (self, config) => {
5816
5816
  }
5817
5817
  };
5818
5818
  const printSubcommands = (subcommands) => {
5819
- const maxUsageLength = reduceRight(subcommands, 0, (max, [usage]) => Math.max(size$5(usage), max));
5819
+ const maxUsageLength = reduceRight(subcommands, 0, (max, [usage]) => Math.max(size$6(usage), max));
5820
5820
  const documents = map$7(subcommands, ([usage, desc]) => p$1(spans([
5821
5821
  usage,
5822
- text$10(" ".repeat(maxUsageLength - size$5(usage) + 2)),
5822
+ text$10(" ".repeat(maxUsageLength - size$6(usage) + 2)),
5823
5823
  desc
5824
5824
  ])));
5825
5825
  if (isNonEmptyReadonlyArray(documents)) return enumeration(documents);
@@ -6034,7 +6034,7 @@ const wizardInternal = (self, prefix, config) => {
6034
6034
  switch (self._tag) {
6035
6035
  case "GetUserInput":
6036
6036
  case "Standard": return gen(function* () {
6037
- const logCurrentCommand = get$11(commandLineRef).pipe(flatMap$1((commandLine) => {
6037
+ const logCurrentCommand = get$12(commandLineRef).pipe(flatMap$1((commandLine) => {
6038
6038
  return log(toAnsiText(p$1(pipe(strong(highlight("COMMAND:", cyan)), concat$1(space), concat$1(highlight(join(commandLine, " "), magenta))))));
6039
6039
  }));
6040
6040
  if (isStandard(self)) {
@@ -6051,7 +6051,7 @@ const wizardInternal = (self, prefix, config) => {
6051
6051
  yield* logCurrentCommand;
6052
6052
  }
6053
6053
  }
6054
- return yield* get$11(commandLineRef);
6054
+ return yield* get$12(commandLineRef);
6055
6055
  });
6056
6056
  case "Map": return loop(self.command, commandLineRef);
6057
6057
  case "Subcommands": {
@@ -6064,11 +6064,11 @@ const wizardInternal = (self, prefix, config) => {
6064
6064
  return loop(self.parent, commandLineRef).pipe(zipRight(select({
6065
6065
  message,
6066
6066
  choices
6067
- }).pipe(tap(([name]) => update$7(commandLineRef, append$2(name))), zipLeft(log()), flatMap$1(([, nextIndex]) => loop(self.children[nextIndex], commandLineRef)))));
6067
+ }).pipe(tap(([name]) => update$8(commandLineRef, append$2(name))), zipLeft(log()), flatMap$1(([, nextIndex]) => loop(self.children[nextIndex], commandLineRef)))));
6068
6068
  }
6069
6069
  }
6070
6070
  };
6071
- return make$23(prefix).pipe(flatMap$1((commandLineRef) => loop(self, commandLineRef).pipe(zipRight(get$11(commandLineRef)))));
6071
+ return make$23(prefix).pipe(flatMap$1((commandLineRef) => loop(self, commandLineRef).pipe(zipRight(get$12(commandLineRef)))));
6072
6072
  };
6073
6073
  const getShortDescription = (self) => {
6074
6074
  switch (self._tag) {
@@ -6112,7 +6112,7 @@ const traverseCommand = (self, initialState, f) => make$25(initialState).pipe(fl
6112
6112
  }
6113
6113
  }
6114
6114
  };
6115
- return suspend(() => loop(self, empty$11(), empty$11(), 0)).pipe(zipRight(get$13(ref)));
6115
+ return suspend(() => loop(self, empty$11(), empty$11(), 0)).pipe(zipRight(get$14(ref)));
6116
6116
  }));
6117
6117
  const indentAll = /*#__PURE__*/ dual(2, (self, indent) => {
6118
6118
  const indentation = allocate(indent + 1).join(" ");
@@ -6305,14 +6305,14 @@ const helpRequestedError = (command) => {
6305
6305
  return op;
6306
6306
  };
6307
6307
  //#endregion
6308
- //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.2__@effect+printer-ansi@0.49.0_@_4d5fe3e52e753e91ea7f4be1c61c2cec/node_modules/@effect/cli/dist/esm/ValidationError.js
6308
+ //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.3__@effect+printer-ansi@0.49.0_@_7f3f53a68d4dca55cb6daaa18dc6a25c/node_modules/@effect/cli/dist/esm/ValidationError.js
6309
6309
  /**
6310
6310
  * @since 1.0.0
6311
6311
  * @category constructors
6312
6312
  */
6313
6313
  const helpRequested = helpRequestedError;
6314
6314
  //#endregion
6315
- //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.2__@effect+printer-ansi@0.49.0_@_4d5fe3e52e753e91ea7f4be1c61c2cec/node_modules/@effect/cli/dist/esm/internal/cliApp.js
6315
+ //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.3__@effect+printer-ansi@0.49.0_@_7f3f53a68d4dca55cb6daaa18dc6a25c/node_modules/@effect/cli/dist/esm/internal/cliApp.js
6316
6316
  const proto = { pipe() {
6317
6317
  return pipeArguments(this, arguments);
6318
6318
  } };
@@ -6591,7 +6591,7 @@ const run$2 = /*#__PURE__*/ dual(2, (self, config) => {
6591
6591
  return (args) => run$3(app, args, handler);
6592
6592
  });
6593
6593
  //#endregion
6594
- //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.2__@effect+printer-ansi@0.49.0_@_4d5fe3e52e753e91ea7f4be1c61c2cec/node_modules/@effect/cli/dist/esm/Command.js
6594
+ //#region ../../node_modules/.pnpm/@effect+cli@0.75.2_@effect+platform@0.96.1_effect@3.21.3__@effect+printer-ansi@0.49.0_@_7f3f53a68d4dca55cb6daaa18dc6a25c/node_modules/@effect/cli/dist/esm/Command.js
6595
6595
  /**
6596
6596
  * @since 1.0.0
6597
6597
  * @category constructors
@@ -6613,7 +6613,7 @@ const withSubcommands = withSubcommands$1;
6613
6613
  */
6614
6614
  const run$1 = run$2;
6615
6615
  //#endregion
6616
- //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.2/node_modules/@effect/platform/dist/esm/internal/commandExecutor.js
6616
+ //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.3/node_modules/@effect/platform/dist/esm/internal/commandExecutor.js
6617
6617
  /** @internal */
6618
6618
  const TypeId$9 = /*#__PURE__*/ Symbol.for("@effect/platform/CommandExecutor");
6619
6619
  /** @internal */
@@ -6653,7 +6653,7 @@ const collectUint8Array = /*#__PURE__*/ foldLeftChunks(/*#__PURE__*/ new Uint8Ar
6653
6653
  return newArray;
6654
6654
  }));
6655
6655
  //#endregion
6656
- //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.2/node_modules/@effect/platform/dist/esm/internal/command.js
6656
+ //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.3/node_modules/@effect/platform/dist/esm/internal/command.js
6657
6657
  /** @internal */
6658
6658
  const CommandTypeId = /*#__PURE__*/ Symbol.for("@effect/platform/Command");
6659
6659
  /** @internal */
@@ -6717,7 +6717,7 @@ const stdin$2 = /*#__PURE__*/ dual(2, (self, input) => {
6717
6717
  }
6718
6718
  });
6719
6719
  //#endregion
6720
- //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.2/node_modules/@effect/platform/dist/esm/Command.js
6720
+ //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.3/node_modules/@effect/platform/dist/esm/Command.js
6721
6721
  /**
6722
6722
  * Flatten this command to a non-empty array of standard commands.
6723
6723
  *
@@ -6737,7 +6737,7 @@ const flatten = flatten$1;
6737
6737
  */
6738
6738
  const stdin$1 = stdin$2;
6739
6739
  //#endregion
6740
- //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.2/node_modules/@effect/platform/dist/esm/CommandExecutor.js
6740
+ //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.3/node_modules/@effect/platform/dist/esm/CommandExecutor.js
6741
6741
  /**
6742
6742
  * @since 1.0.0
6743
6743
  * @category tags
@@ -6764,7 +6764,7 @@ const ProcessId = ProcessId$1;
6764
6764
  */
6765
6765
  const makeExecutor = makeExecutor$1;
6766
6766
  //#endregion
6767
- //#region ../../node_modules/.pnpm/@effect+platform-node-shared@0.60.0_@effect+cluster@0.58.2_@effect+platform@0.96.1_effe_9287673120c6c7b5a6b26884e6799c5b/node_modules/@effect/platform-node-shared/dist/esm/internal/error.js
6767
+ //#region ../../node_modules/.pnpm/@effect+platform-node-shared@0.60.0_@effect+cluster@0.58.2_@effect+platform@0.96.1_effe_3f7432e28658a8d68e8638816a6c2527/node_modules/@effect/platform-node-shared/dist/esm/internal/error.js
6768
6768
  /** @internal */
6769
6769
  const handleErrnoException = (module, method) => (err, [path]) => {
6770
6770
  let reason = "Unknown";
@@ -6802,7 +6802,7 @@ const handleErrnoException = (module, method) => (err, [path]) => {
6802
6802
  });
6803
6803
  };
6804
6804
  //#endregion
6805
- //#region ../../node_modules/.pnpm/@effect+platform-node-shared@0.60.0_@effect+cluster@0.58.2_@effect+platform@0.96.1_effe_9287673120c6c7b5a6b26884e6799c5b/node_modules/@effect/platform-node-shared/dist/esm/internal/stream.js
6805
+ //#region ../../node_modules/.pnpm/@effect+platform-node-shared@0.60.0_@effect+cluster@0.58.2_@effect+platform@0.96.1_effe_3f7432e28658a8d68e8638816a6c2527/node_modules/@effect/platform-node-shared/dist/esm/internal/stream.js
6806
6806
  /** @internal */
6807
6807
  const fromReadable$1 = (evaluate, onError, options) => fromChannel(fromReadableChannel(evaluate, onError, options));
6808
6808
  /** @internal */
@@ -6923,7 +6923,7 @@ const unsafeReadableRead = (readable, onError, exit, options) => {
6923
6923
  }));
6924
6924
  };
6925
6925
  //#endregion
6926
- //#region ../../node_modules/.pnpm/@effect+platform-node-shared@0.60.0_@effect+cluster@0.58.2_@effect+platform@0.96.1_effe_9287673120c6c7b5a6b26884e6799c5b/node_modules/@effect/platform-node-shared/dist/esm/internal/sink.js
6926
+ //#region ../../node_modules/.pnpm/@effect+platform-node-shared@0.60.0_@effect+cluster@0.58.2_@effect+platform@0.96.1_effe_3f7432e28658a8d68e8638816a6c2527/node_modules/@effect/platform-node-shared/dist/esm/internal/sink.js
6927
6927
  /** @internal */
6928
6928
  const fromWritable$1 = (evaluate, onError, options) => fromChannel$1(fromWritableChannel(evaluate, onError, options));
6929
6929
  /** @internal */
@@ -6938,7 +6938,7 @@ const writableOutput = (writable, deferred, onError) => suspend(() => {
6938
6938
  }));
6939
6939
  });
6940
6940
  //#endregion
6941
- //#region ../../node_modules/.pnpm/@effect+platform-node-shared@0.60.0_@effect+cluster@0.58.2_@effect+platform@0.96.1_effe_9287673120c6c7b5a6b26884e6799c5b/node_modules/@effect/platform-node-shared/dist/esm/internal/commandExecutor.js
6941
+ //#region ../../node_modules/.pnpm/@effect+platform-node-shared@0.60.0_@effect+cluster@0.58.2_@effect+platform@0.96.1_effe_3f7432e28658a8d68e8638816a6c2527/node_modules/@effect/platform-node-shared/dist/esm/internal/commandExecutor.js
6942
6942
  const inputToStdioOption = (stdin) => typeof stdin === "string" ? stdin : "pipe";
6943
6943
  const outputToStdioOption = (output) => typeof output === "string" ? output : "pipe";
6944
6944
  const toError = (err) => err instanceof globalThis.Error ? err : new globalThis.Error(String(err));
@@ -7045,14 +7045,14 @@ const runCommand = (fileSystem) => (command) => {
7045
7045
  }
7046
7046
  };
7047
7047
  //#endregion
7048
- //#region ../../node_modules/.pnpm/@effect+platform-node-shared@0.60.0_@effect+cluster@0.58.2_@effect+platform@0.96.1_effe_9287673120c6c7b5a6b26884e6799c5b/node_modules/@effect/platform-node-shared/dist/esm/NodeCommandExecutor.js
7048
+ //#region ../../node_modules/.pnpm/@effect+platform-node-shared@0.60.0_@effect+cluster@0.58.2_@effect+platform@0.96.1_effe_3f7432e28658a8d68e8638816a6c2527/node_modules/@effect/platform-node-shared/dist/esm/NodeCommandExecutor.js
7049
7049
  /**
7050
7050
  * @since 1.0.0
7051
7051
  * @category layer
7052
7052
  */
7053
7053
  const layer$9 = /* @__PURE__ */ effect(CommandExecutor, /*#__PURE__*/ pipe(FileSystem, /*#__PURE__*/ map$6((fileSystem) => makeExecutor(runCommand(fileSystem)))));
7054
7054
  //#endregion
7055
- //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.2/node_modules/@effect/platform/dist/esm/internal/effectify.js
7055
+ //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.3/node_modules/@effect/platform/dist/esm/internal/effectify.js
7056
7056
  /** @internal */
7057
7057
  const effectify$1 = (fn, onError, onSyncError) => (...args) => async((resume) => {
7058
7058
  try {
@@ -7065,13 +7065,13 @@ const effectify$1 = (fn, onError, onSyncError) => (...args) => async((resume) =>
7065
7065
  }
7066
7066
  });
7067
7067
  //#endregion
7068
- //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.2/node_modules/@effect/platform/dist/esm/Effectify.js
7068
+ //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.3/node_modules/@effect/platform/dist/esm/Effectify.js
7069
7069
  /**
7070
7070
  * @since 1.0.0
7071
7071
  */
7072
7072
  const effectify = effectify$1;
7073
7073
  //#endregion
7074
- //#region ../../node_modules/.pnpm/@effect+platform-node-shared@0.60.0_@effect+cluster@0.58.2_@effect+platform@0.96.1_effe_9287673120c6c7b5a6b26884e6799c5b/node_modules/@effect/platform-node-shared/dist/esm/internal/fileSystem.js
7074
+ //#region ../../node_modules/.pnpm/@effect+platform-node-shared@0.60.0_@effect+cluster@0.58.2_@effect+platform@0.96.1_effe_3f7432e28658a8d68e8638816a6c2527/node_modules/@effect/platform-node-shared/dist/esm/internal/fileSystem.js
7075
7075
  const handleBadArgument = (method) => (cause) => new BadArgument({
7076
7076
  module: "FileSystem",
7077
7077
  method,
@@ -7337,7 +7337,7 @@ const watchNode = (path, options) => asyncScoped((emit) => acquireRelease(sync((
7337
7337
  });
7338
7338
  return watcher;
7339
7339
  }), (watcher) => sync(() => watcher.close())));
7340
- const watch = (backend, path, options) => stat(path).pipe(map$6((stat) => backend.pipe(flatMap$3((_) => _.register(path, stat, options)), getOrElse(() => watchNode(path, options)))), unwrap$7);
7340
+ const watch = (backend, path, options) => stat(path).pipe(map$6((stat) => backend.pipe(flatMap$3((_) => _.register(path, stat, options)), getOrElse(() => watchNode(path, options)))), unwrap$9);
7341
7341
  const writeFile = (path, data, options) => async((resume, signal) => {
7342
7342
  try {
7343
7343
  NFS.writeFile(path, data, {
@@ -7353,7 +7353,7 @@ const writeFile = (path, data, options) => async((resume, signal) => {
7353
7353
  }
7354
7354
  });
7355
7355
  //#endregion
7356
- //#region ../../node_modules/.pnpm/@effect+platform-node-shared@0.60.0_@effect+cluster@0.58.2_@effect+platform@0.96.1_effe_9287673120c6c7b5a6b26884e6799c5b/node_modules/@effect/platform-node-shared/dist/esm/NodeFileSystem.js
7356
+ //#region ../../node_modules/.pnpm/@effect+platform-node-shared@0.60.0_@effect+cluster@0.58.2_@effect+platform@0.96.1_effe_3f7432e28658a8d68e8638816a6c2527/node_modules/@effect/platform-node-shared/dist/esm/NodeFileSystem.js
7357
7357
  /**
7358
7358
  * @since 1.0.0
7359
7359
  */
@@ -7390,7 +7390,7 @@ const layer$7 = /* @__PURE__ */ effect(FileSystem, /* @__PURE__ */ map$6(/*#__PU
7390
7390
  writeFile
7391
7391
  })));
7392
7392
  //#endregion
7393
- //#region ../../node_modules/.pnpm/@effect+platform-node-shared@0.60.0_@effect+cluster@0.58.2_@effect+platform@0.96.1_effe_9287673120c6c7b5a6b26884e6799c5b/node_modules/@effect/platform-node-shared/dist/esm/internal/path.js
7393
+ //#region ../../node_modules/.pnpm/@effect+platform-node-shared@0.60.0_@effect+cluster@0.58.2_@effect+platform@0.96.1_effe_3f7432e28658a8d68e8638816a6c2527/node_modules/@effect/platform-node-shared/dist/esm/internal/path.js
7394
7394
  const fromFileUrl = (url) => try_({
7395
7395
  try: () => NodeUrl.fileURLToPath(url),
7396
7396
  catch: (error) => new BadArgument({
@@ -7412,7 +7412,7 @@ const toFileUrl = (path) => try_({
7412
7412
  ({ ...Path.posix });
7413
7413
  ({ ...Path.win32 });
7414
7414
  //#endregion
7415
- //#region ../../node_modules/.pnpm/@effect+platform-node-shared@0.60.0_@effect+cluster@0.58.2_@effect+platform@0.96.1_effe_9287673120c6c7b5a6b26884e6799c5b/node_modules/@effect/platform-node-shared/dist/esm/NodePath.js
7415
+ //#region ../../node_modules/.pnpm/@effect+platform-node-shared@0.60.0_@effect+cluster@0.58.2_@effect+platform@0.96.1_effe_3f7432e28658a8d68e8638816a6c2527/node_modules/@effect/platform-node-shared/dist/esm/NodePath.js
7416
7416
  /**
7417
7417
  * @since 1.0.0
7418
7418
  */
@@ -7427,10 +7427,10 @@ const layer$5 = /* @__PURE__ */ succeed$2(Path$1, /*#__PURE__*/ Path$1.of({
7427
7427
  toFileUrl
7428
7428
  }));
7429
7429
  //#endregion
7430
- //#region ../../node_modules/.pnpm/@effect+platform-node-shared@0.60.0_@effect+cluster@0.58.2_@effect+platform@0.96.1_effe_9287673120c6c7b5a6b26884e6799c5b/node_modules/@effect/platform-node-shared/dist/esm/internal/terminal.js
7430
+ //#region ../../node_modules/.pnpm/@effect+platform-node-shared@0.60.0_@effect+cluster@0.58.2_@effect+platform@0.96.1_effe_3f7432e28658a8d68e8638816a6c2527/node_modules/@effect/platform-node-shared/dist/esm/internal/terminal.js
7431
7431
  const defaultShouldQuit = (input) => input.key.ctrl && (input.key.name === "c" || input.key.name === "d");
7432
7432
  //#endregion
7433
- //#region ../../node_modules/.pnpm/@effect+platform-node-shared@0.60.0_@effect+cluster@0.58.2_@effect+platform@0.96.1_effe_9287673120c6c7b5a6b26884e6799c5b/node_modules/@effect/platform-node-shared/dist/esm/NodeTerminal.js
7433
+ //#region ../../node_modules/.pnpm/@effect+platform-node-shared@0.60.0_@effect+cluster@0.58.2_@effect+platform@0.96.1_effe_3f7432e28658a8d68e8638816a6c2527/node_modules/@effect/platform-node-shared/dist/esm/NodeTerminal.js
7434
7434
  /**
7435
7435
  * @since 1.0.0
7436
7436
  * @category layer
@@ -7454,7 +7454,7 @@ const layer$3 = /* @__PURE__ */ scoped$1(Terminal, /*#__PURE__*/ (/* @__PURE__ *
7454
7454
  const rows = sync(() => stdout.rows ?? 0);
7455
7455
  const isTTY = sync(() => Boolean(stdout.isTTY));
7456
7456
  const readInput = gen(function* () {
7457
- yield* get$14(rlRef);
7457
+ yield* get$15(rlRef);
7458
7458
  const mailbox = yield* make$29();
7459
7459
  const handleKeypress = (s, k) => {
7460
7460
  const userInput = {
@@ -7473,7 +7473,7 @@ const layer$3 = /* @__PURE__ */ scoped$1(Terminal, /*#__PURE__*/ (/* @__PURE__ *
7473
7473
  stdin.on("keypress", handleKeypress);
7474
7474
  return mailbox;
7475
7475
  });
7476
- const readLine = get$14(rlRef).pipe(flatMap$1((readlineInterface) => async((resume) => {
7476
+ const readLine = get$15(rlRef).pipe(flatMap$1((readlineInterface) => async((resume) => {
7477
7477
  const onLine = (line) => resume(succeed$1(line));
7478
7478
  readlineInterface.once("line", onLine);
7479
7479
  return sync(() => readlineInterface.off("line", onLine));
@@ -7496,7 +7496,7 @@ const layer$3 = /* @__PURE__ */ scoped$1(Terminal, /*#__PURE__*/ (/* @__PURE__ *
7496
7496
  });
7497
7497
  }))(defaultShouldQuit));
7498
7498
  //#endregion
7499
- //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.2/node_modules/@effect/platform/dist/esm/Transferable.js
7499
+ //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.3/node_modules/@effect/platform/dist/esm/Transferable.js
7500
7500
  /**
7501
7501
  * @since 1.0.0
7502
7502
  */
@@ -7530,7 +7530,7 @@ const unsafeMakeCollector = () => {
7530
7530
  });
7531
7531
  };
7532
7532
  //#endregion
7533
- //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.2/node_modules/@effect/platform/dist/esm/WorkerError.js
7533
+ //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.3/node_modules/@effect/platform/dist/esm/WorkerError.js
7534
7534
  /**
7535
7535
  * @since 1.0.0
7536
7536
  * @category type ids
@@ -7577,7 +7577,7 @@ var WorkerError = class extends TaggedError()("WorkerError", {
7577
7577
  }
7578
7578
  };
7579
7579
  //#endregion
7580
- //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.2/node_modules/@effect/platform/dist/esm/internal/worker.js
7580
+ //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.3/node_modules/@effect/platform/dist/esm/internal/worker.js
7581
7581
  /** @internal */
7582
7582
  const PlatformWorkerTypeId = /*#__PURE__*/ Symbol.for("@effect/platform/Worker/PlatformWorker");
7583
7583
  /** @internal */
@@ -7720,7 +7720,7 @@ const makePlatform$1 = () => (options) => PlatformWorker$1.of({
7720
7720
  }
7721
7721
  });
7722
7722
  //#endregion
7723
- //#region ../../node_modules/.pnpm/@effect+platform-node@0.107.0_@effect+cluster@0.58.2_@effect+platform@0.96.1_effect@3.2_e0a605a6b8260a5264e7050b2fb70be0/node_modules/@effect/platform-node/dist/esm/NodeContext.js
7723
+ //#region ../../node_modules/.pnpm/@effect+platform-node@0.107.0_@effect+cluster@0.58.2_@effect+platform@0.96.1_effect@3.2_b63ddfed36e9feb8e8fc66f1925dcf42/node_modules/@effect/platform-node/dist/esm/NodeContext.js
7724
7724
  /**
7725
7725
  * @since 1.0.0
7726
7726
  */
@@ -7779,7 +7779,7 @@ const layer$2 = /*#__PURE__*/ pipe(/*#__PURE__*/ mergeAll(layer$5, layer$9, laye
7779
7779
  }
7780
7780
  })))), /*#__PURE__*/ provideMerge(layer$7));
7781
7781
  //#endregion
7782
- //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.2/node_modules/@effect/platform/dist/esm/Cookies.js
7782
+ //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.3/node_modules/@effect/platform/dist/esm/Cookies.js
7783
7783
  /**
7784
7784
  * @since 1.0.0
7785
7785
  */
@@ -7961,7 +7961,7 @@ const tryDecodeURIComponent = (str) => {
7961
7961
  }
7962
7962
  };
7963
7963
  //#endregion
7964
- //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.2/node_modules/@effect/platform/dist/esm/Headers.js
7964
+ //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.3/node_modules/@effect/platform/dist/esm/Headers.js
7965
7965
  /**
7966
7966
  * @since 1.0.0
7967
7967
  */
@@ -8063,7 +8063,7 @@ const currentRedactedNames = /*#__PURE__*/ globalValue("@effect/platform/Headers
8063
8063
  "x-api-key"
8064
8064
  ]));
8065
8065
  //#endregion
8066
- //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.2/node_modules/@effect/platform/dist/esm/HttpClientError.js
8066
+ //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.3/node_modules/@effect/platform/dist/esm/HttpClientError.js
8067
8067
  /**
8068
8068
  * @since 1.0.0
8069
8069
  * @category type id
@@ -8095,7 +8095,7 @@ var ResponseError = class extends TypeIdError(TypeId$6, "ResponseError") {
8095
8095
  }
8096
8096
  };
8097
8097
  //#endregion
8098
- //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.2/node_modules/@effect/platform/dist/esm/UrlParams.js
8098
+ //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.3/node_modules/@effect/platform/dist/esm/UrlParams.js
8099
8099
  /**
8100
8100
  * @since 1.0.0
8101
8101
  */
@@ -8163,7 +8163,7 @@ const baseUrl = () => {
8163
8163
  if ("location" in globalThis && globalThis.location !== void 0 && globalThis.location.origin !== void 0 && globalThis.location.pathname !== void 0) return location.origin + location.pathname;
8164
8164
  };
8165
8165
  //#endregion
8166
- //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.2/node_modules/@effect/platform/dist/esm/HttpIncomingMessage.js
8166
+ //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.3/node_modules/@effect/platform/dist/esm/HttpIncomingMessage.js
8167
8167
  /**
8168
8168
  * @since 1.0.0
8169
8169
  */
@@ -8198,7 +8198,7 @@ const inspect = (self, that) => {
8198
8198
  return obj;
8199
8199
  };
8200
8200
  //#endregion
8201
- //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.2/node_modules/@effect/platform/dist/esm/HttpTraceContext.js
8201
+ //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.3/node_modules/@effect/platform/dist/esm/HttpTraceContext.js
8202
8202
  /**
8203
8203
  * @since 1.0.0
8204
8204
  * @category encoding
@@ -8208,7 +8208,7 @@ const toHeaders = (span) => unsafeFromRecord({
8208
8208
  traceparent: `00-${span.traceId}-${span.spanId}-${span.sampled ? "01" : "00"}`
8209
8209
  });
8210
8210
  //#endregion
8211
- //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.2/node_modules/@effect/platform/dist/esm/internal/httpBody.js
8211
+ //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.3/node_modules/@effect/platform/dist/esm/internal/httpBody.js
8212
8212
  /** @internal */
8213
8213
  const TypeId$4 = /*#__PURE__*/ Symbol.for("@effect/platform/HttpBody");
8214
8214
  /** @internal */
@@ -8297,7 +8297,7 @@ var FormDataImpl = class extends BodyBase {
8297
8297
  /** @internal */
8298
8298
  const formData = (body) => new FormDataImpl(body);
8299
8299
  //#endregion
8300
- //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.2/node_modules/@effect/platform/dist/esm/internal/httpClientRequest.js
8300
+ //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.3/node_modules/@effect/platform/dist/esm/internal/httpClientRequest.js
8301
8301
  /** @internal */
8302
8302
  const TypeId$3 = /*#__PURE__*/ Symbol.for("@effect/platform/HttpClientRequest");
8303
8303
  const Proto = {
@@ -8337,7 +8337,7 @@ const make$10 = (method) => (url, options) => modify(empty, {
8337
8337
  ...options ?? void 0
8338
8338
  });
8339
8339
  /** @internal */
8340
- const get$10 = /*#__PURE__*/ make$10("GET");
8340
+ const get$11 = /*#__PURE__*/ make$10("GET");
8341
8341
  /** @internal */
8342
8342
  const post$1 = /*#__PURE__*/ make$10("POST");
8343
8343
  /** @internal */
@@ -8345,7 +8345,7 @@ const put$1 = /*#__PURE__*/ make$10("PUT");
8345
8345
  /** @internal */
8346
8346
  const patch$1 = /*#__PURE__*/ make$10("PATCH");
8347
8347
  /** @internal */
8348
- const del$9 = /*#__PURE__*/ make$10("DELETE");
8348
+ const del$10 = /*#__PURE__*/ make$10("DELETE");
8349
8349
  /** @internal */
8350
8350
  const head$1 = /*#__PURE__*/ make$10("HEAD");
8351
8351
  /** @internal */
@@ -8404,11 +8404,11 @@ const bodyJson$1 = /*#__PURE__*/ dual(2, (self, body) => map$6(json(body), (body
8404
8404
  /** @internal */
8405
8405
  const bodyFormData$1 = /*#__PURE__*/ dual(2, (self, body) => setBody(self, formData(body)));
8406
8406
  //#endregion
8407
- //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.2/node_modules/@effect/platform/dist/esm/internal/httpClientResponse.js
8407
+ //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.3/node_modules/@effect/platform/dist/esm/internal/httpClientResponse.js
8408
8408
  /** @internal */
8409
8409
  const TypeId$2 = /*#__PURE__*/ Symbol.for("@effect/platform/HttpClientResponse");
8410
8410
  //#endregion
8411
- //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.2/node_modules/@effect/platform/dist/esm/internal/httpClient.js
8411
+ //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.3/node_modules/@effect/platform/dist/esm/internal/httpClient.js
8412
8412
  const ATTR_HTTP_REQUEST_HEADER = (key) => `http.request.header.${key}`;
8413
8413
  const ATTR_HTTP_REQUEST_METHOD = "http.request.method";
8414
8414
  const ATTR_HTTP_RESPONSE_HEADER = (key) => `http.response.header.${key}`;
@@ -8439,7 +8439,7 @@ const ClientProto = {
8439
8439
  return { _id: "@effect/platform/HttpClient" };
8440
8440
  },
8441
8441
  get(url, options) {
8442
- return this.execute(get$10(url, options));
8442
+ return this.execute(get$11(url, options));
8443
8443
  },
8444
8444
  head(url, options) {
8445
8445
  return this.execute(head$1(url, options));
@@ -8454,7 +8454,7 @@ const ClientProto = {
8454
8454
  return this.execute(patch$1(url, options));
8455
8455
  },
8456
8456
  del(url, options) {
8457
- return this.execute(del$9(url, options));
8457
+ return this.execute(del$10(url, options));
8458
8458
  },
8459
8459
  options(url, options) {
8460
8460
  return this.execute(options$1(url, options));
@@ -8523,7 +8523,7 @@ const make$9 = (f) => makeWith((effect) => flatMap$1(effect, (request) => withFi
8523
8523
  }
8524
8524
  }));
8525
8525
  }
8526
- return useSpan(get$15(fiber.currentContext, SpanNameGenerator)(request), {
8526
+ return useSpan(get$16(fiber.currentContext, SpanNameGenerator)(request), {
8527
8527
  kind: "client",
8528
8528
  captureStackTrace: false
8529
8529
  }, (span) => {
@@ -8617,7 +8617,7 @@ var InterruptibleResponse = class {
8617
8617
  return this.original[NodeInspectSymbol]();
8618
8618
  }
8619
8619
  };
8620
- const { del: del$8, execute, get: get$9, head, options, patch, post, put } = /*#__PURE__*/ serviceFunctions(tag);
8620
+ const { del: del$9, execute, get: get$10, head, options, patch, post, put } = /*#__PURE__*/ serviceFunctions(tag);
8621
8621
  /** @internal */
8622
8622
  const transformResponse = /*#__PURE__*/ dual(2, (self, f) => {
8623
8623
  const client = self;
@@ -8626,7 +8626,7 @@ const transformResponse = /*#__PURE__*/ dual(2, (self, f) => {
8626
8626
  /** @internal */
8627
8627
  const layerMergedContext$1 = (effect$1) => effect(tag, flatMap$1(context(), (context) => map$6(effect$1, (client) => transformResponse(client, mapInputContext((input) => merge$3(context, input))))));
8628
8628
  //#endregion
8629
- //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.2/node_modules/@effect/platform/dist/esm/HttpClient.js
8629
+ //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.3/node_modules/@effect/platform/dist/esm/HttpClient.js
8630
8630
  /**
8631
8631
  * @since 1.0.0
8632
8632
  * @category tags
@@ -8642,21 +8642,21 @@ const make$8 = make$9;
8642
8642
  */
8643
8643
  const layerMergedContext = layerMergedContext$1;
8644
8644
  //#endregion
8645
- //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.2/node_modules/@effect/platform/dist/esm/HttpClientResponse.js
8645
+ //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.3/node_modules/@effect/platform/dist/esm/HttpClientResponse.js
8646
8646
  /**
8647
8647
  * @since 1.0.0
8648
8648
  * @category type ids
8649
8649
  */
8650
8650
  const TypeId = TypeId$2;
8651
8651
  //#endregion
8652
- //#region ../../node_modules/.pnpm/@effect+platform-node-shared@0.60.0_@effect+cluster@0.58.2_@effect+platform@0.96.1_effe_9287673120c6c7b5a6b26884e6799c5b/node_modules/@effect/platform-node-shared/dist/esm/NodeSink.js
8652
+ //#region ../../node_modules/.pnpm/@effect+platform-node-shared@0.60.0_@effect+cluster@0.58.2_@effect+platform@0.96.1_effe_3f7432e28658a8d68e8638816a6c2527/node_modules/@effect/platform-node-shared/dist/esm/NodeSink.js
8653
8653
  /**
8654
8654
  * @category constructor
8655
8655
  * @since 1.0.0
8656
8656
  */
8657
8657
  const fromWritable = fromWritable$1;
8658
8658
  //#endregion
8659
- //#region ../../node_modules/.pnpm/@effect+platform-node-shared@0.60.0_@effect+cluster@0.58.2_@effect+platform@0.96.1_effe_9287673120c6c7b5a6b26884e6799c5b/node_modules/@effect/platform-node-shared/dist/esm/NodeStream.js
8659
+ //#region ../../node_modules/.pnpm/@effect+platform-node-shared@0.60.0_@effect+cluster@0.58.2_@effect+platform@0.96.1_effe_3f7432e28658a8d68e8638816a6c2527/node_modules/@effect/platform-node-shared/dist/esm/NodeStream.js
8660
8660
  /**
8661
8661
  * @category constructors
8662
8662
  * @since 1.0.0
@@ -8673,7 +8673,7 @@ const toString$1 = toString$2;
8673
8673
  */
8674
8674
  const toUint8Array = toUint8Array$1;
8675
8675
  //#endregion
8676
- //#region ../../node_modules/.pnpm/@effect+platform-node@0.107.0_@effect+cluster@0.58.2_@effect+platform@0.96.1_effect@3.2_e0a605a6b8260a5264e7050b2fb70be0/node_modules/@effect/platform-node/dist/esm/internal/httpIncomingMessage.js
8676
+ //#region ../../node_modules/.pnpm/@effect+platform-node@0.107.0_@effect+cluster@0.58.2_@effect+platform@0.96.1_effect@3.2_b63ddfed36e9feb8e8fc66f1925dcf42/node_modules/@effect/platform-node/dist/esm/internal/httpIncomingMessage.js
8677
8677
  /** @internal */
8678
8678
  var HttpIncomingMessageImpl = class extends Class {
8679
8679
  source;
@@ -8731,7 +8731,7 @@ var HttpIncomingMessageImpl = class extends Class {
8731
8731
  }
8732
8732
  };
8733
8733
  //#endregion
8734
- //#region ../../node_modules/.pnpm/@effect+platform-node@0.107.0_@effect+cluster@0.58.2_@effect+platform@0.96.1_effect@3.2_e0a605a6b8260a5264e7050b2fb70be0/node_modules/@effect/platform-node/dist/esm/internal/httpClient.js
8734
+ //#region ../../node_modules/.pnpm/@effect+platform-node@0.107.0_@effect+cluster@0.58.2_@effect+platform@0.96.1_effect@3.2_b63ddfed36e9feb8e8fc66f1925dcf42/node_modules/@effect/platform-node/dist/esm/internal/httpClient.js
8735
8735
  /** @internal */
8736
8736
  const HttpAgentTypeId = /*#__PURE__*/ Symbol.for("@effect/platform-node/Http/NodeClient/HttpAgent");
8737
8737
  /** @internal */
@@ -8879,11 +8879,11 @@ var ClientResponseImpl$1 = class extends HttpIncomingMessageImpl {
8879
8879
  /** @internal */
8880
8880
  const layer$1 = /*#__PURE__*/ provide(/* @__PURE__ */ layerMergedContext(/* @__PURE__ */ map$6(HttpAgent, fromAgent)), agentLayer);
8881
8881
  //#endregion
8882
- //#region ../../node_modules/.pnpm/@effect+platform-node@0.107.0_@effect+cluster@0.58.2_@effect+platform@0.96.1_effect@3.2_e0a605a6b8260a5264e7050b2fb70be0/node_modules/@effect/platform-node/dist/esm/internal/httpClientUndici.js
8882
+ //#region ../../node_modules/.pnpm/@effect+platform-node@0.107.0_@effect+cluster@0.58.2_@effect+platform@0.96.1_effect@3.2_b63ddfed36e9feb8e8fc66f1925dcf42/node_modules/@effect/platform-node/dist/esm/internal/httpClientUndici.js
8883
8883
  /** @internal */
8884
8884
  const undiciOptionsTagKey = "@effect/platform-node/NodeHttpClient/undiciOptions";
8885
8885
  //#endregion
8886
- //#region ../../node_modules/.pnpm/@effect+platform-node@0.107.0_@effect+cluster@0.58.2_@effect+platform@0.96.1_effect@3.2_e0a605a6b8260a5264e7050b2fb70be0/node_modules/@effect/platform-node/dist/esm/NodeHttpClient.js
8886
+ //#region ../../node_modules/.pnpm/@effect+platform-node@0.107.0_@effect+cluster@0.58.2_@effect+platform@0.96.1_effect@3.2_b63ddfed36e9feb8e8fc66f1925dcf42/node_modules/@effect/platform-node/dist/esm/NodeHttpClient.js
8887
8887
  /**
8888
8888
  * @since 1.0.0
8889
8889
  * @category layers
@@ -8891,7 +8891,7 @@ const undiciOptionsTagKey = "@effect/platform-node/NodeHttpClient/undiciOptions"
8891
8891
  const layer = layer$1;
8892
8892
  Tag$2(undiciOptionsTagKey)();
8893
8893
  //#endregion
8894
- //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.2/node_modules/@effect/platform/dist/esm/Runtime.js
8894
+ //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.3/node_modules/@effect/platform/dist/esm/Runtime.js
8895
8895
  /**
8896
8896
  * @since 1.0.0
8897
8897
  */
@@ -8925,7 +8925,7 @@ const makeRunMain = (f) => dual((args) => isEffect(args[0]), (effect, options) =
8925
8925
  });
8926
8926
  });
8927
8927
  //#endregion
8928
- //#region ../../node_modules/.pnpm/@effect+platform-node@0.107.0_@effect+cluster@0.58.2_@effect+platform@0.96.1_effect@3.2_e0a605a6b8260a5264e7050b2fb70be0/node_modules/@effect/platform-node/dist/esm/NodeRuntime.js
8928
+ //#region ../../node_modules/.pnpm/@effect+platform-node@0.107.0_@effect+cluster@0.58.2_@effect+platform@0.96.1_effect@3.2_b63ddfed36e9feb8e8fc66f1925dcf42/node_modules/@effect/platform-node/dist/esm/NodeRuntime.js
8929
8929
  /**
8930
8930
  * @since 1.0.0
8931
8931
  */
@@ -9765,7 +9765,7 @@ const parseGlobalFlags = (argv) => {
9765
9765
  const currentDryRun = unsafeMake(false);
9766
9766
  const currentProfileFlag = unsafeMake(void 0);
9767
9767
  //#endregion
9768
- //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.2/node_modules/@effect/platform/dist/esm/HttpClientRequest.js
9768
+ //#region ../../node_modules/.pnpm/@effect+platform@0.96.1_effect@3.21.3/node_modules/@effect/platform/dist/esm/HttpClientRequest.js
9769
9769
  /**
9770
9770
  * @since 1.0.0
9771
9771
  * @category constructors
@@ -12575,7 +12575,7 @@ function customAlphabet(alphabet, size = 21) {
12575
12575
  return customRandom(alphabet, size, random);
12576
12576
  }
12577
12577
  //#endregion
12578
- //#region ../../node_modules/.pnpm/@haklex+rich-litexml@0.22.0/node_modules/@haklex/rich-litexml/dist/src-CWxDj4Bd.js
12578
+ //#region ../../node_modules/.pnpm/@haklex+rich-litexml@0.27.0/node_modules/@haklex/rich-litexml/dist/src-1idECb05.js
12579
12579
  var impl = null;
12580
12580
  function registerParseHTML(fn) {
12581
12581
  impl = fn;
@@ -12730,6 +12730,20 @@ function numAttr(el, name) {
12730
12730
  const v = el.getAttribute(name);
12731
12731
  return v !== null ? Number(v) : void 0;
12732
12732
  }
12733
+ var IMAGE_LAYOUTS = new Set([
12734
+ "align-left",
12735
+ "align-right",
12736
+ "float-left",
12737
+ "float-right"
12738
+ ]);
12739
+ function imageDisplayWidthAttr(el) {
12740
+ const v = numAttr(el, "display-width");
12741
+ return v !== void 0 && Number.isFinite(v) && v >= 10 && v <= 100 ? v : void 0;
12742
+ }
12743
+ function imageLayoutAttr(el) {
12744
+ const v = el.getAttribute("layout");
12745
+ return v !== null && IMAGE_LAYOUTS.has(v) ? v : void 0;
12746
+ }
12733
12747
  /**
12734
12748
  * Extract CDATA text content from an element.
12735
12749
  * linkedom (HTML parser) converts <![CDATA[...]]> to a comment node
@@ -12758,6 +12772,8 @@ function registerCustomReaders(registry) {
12758
12772
  caption: el.getAttribute("caption") ?? void 0,
12759
12773
  thumbhash: el.getAttribute("thumbhash") ?? void 0,
12760
12774
  accent: el.getAttribute("accent") ?? void 0,
12775
+ displayWidth: imageDisplayWidthAttr(el),
12776
+ layout: imageLayoutAttr(el),
12761
12777
  version: 1
12762
12778
  };
12763
12779
  });
@@ -12958,9 +12974,25 @@ function registerCustomReaders(registry) {
12958
12974
  registry.registerReader("excalidraw", (el) => ({
12959
12975
  type: "excalidraw",
12960
12976
  ...extractBlockId(el),
12961
- snapshot: extractCdataText(el) || el.getAttribute("snapshot") || "",
12977
+ snapshot: extractCdataText(el) || el.getAttribute("snapshot") || el.textContent?.trim() || "",
12962
12978
  version: 1
12963
12979
  }));
12980
+ registry.registerReader("dynamic", (el) => {
12981
+ let props = {};
12982
+ const raw = (extractCdataText(el) ?? el.textContent ?? "").trim();
12983
+ if (raw) try {
12984
+ const parsed = JSON.parse(raw);
12985
+ if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) props = parsed;
12986
+ } catch {}
12987
+ return {
12988
+ type: "dynamic",
12989
+ ...extractBlockId(el),
12990
+ url: el.getAttribute("url") ?? "",
12991
+ props,
12992
+ initialHeight: numAttr(el, "initial-height") ?? 320,
12993
+ version: 1
12994
+ };
12995
+ });
12964
12996
  registry.registerReader("grid", (el, ctx) => {
12965
12997
  const cells = [];
12966
12998
  for (const child of el.children) if (child.tagName.toLowerCase() === "cell") {
@@ -13204,13 +13236,15 @@ function registerCustomWriters(registry) {
13204
13236
  tag: "img",
13205
13237
  attrs: optAttr({
13206
13238
  ...blockId(n),
13207
- src: n.src,
13208
- alt: n.altText,
13209
- width: n.width != null ? String(n.width) : void 0,
13210
- height: n.height != null ? String(n.height) : void 0,
13211
- caption: n.caption,
13212
- thumbhash: n.thumbhash,
13213
- accent: n.accent
13239
+ "src": n.src,
13240
+ "alt": n.altText,
13241
+ "width": n.width != null ? String(n.width) : void 0,
13242
+ "height": n.height != null ? String(n.height) : void 0,
13243
+ "caption": n.caption,
13244
+ "thumbhash": n.thumbhash,
13245
+ "accent": n.accent,
13246
+ "display-width": n.displayWidth != null ? String(n.displayWidth) : void 0,
13247
+ "layout": n.layout
13214
13248
  }),
13215
13249
  selfClosing: true
13216
13250
  };
@@ -13332,12 +13366,35 @@ function registerCustomWriters(registry) {
13332
13366
  attrs: optAttr(blockId(n)),
13333
13367
  selfClosing: true
13334
13368
  };
13369
+ if (/^(?:https?:\/\/|blob:|ref:)\S+$/.test(n.snapshot.trim())) return {
13370
+ tag: "excalidraw",
13371
+ attrs: optAttr(blockId(n)),
13372
+ children: [n.snapshot.trim()]
13373
+ };
13335
13374
  return {
13336
13375
  tag: "excalidraw",
13337
13376
  attrs: optAttr(blockId(n)),
13338
13377
  children: [{ cdata: n.snapshot }]
13339
13378
  };
13340
13379
  });
13380
+ registry.registerWriter("dynamic", (node) => {
13381
+ const n = node;
13382
+ const attrs = optAttr({
13383
+ ...blockId(n),
13384
+ "url": n.url,
13385
+ "initial-height": n.initialHeight != null ? String(n.initialHeight) : void 0
13386
+ });
13387
+ if (!n.props || Object.keys(n.props).length === 0) return {
13388
+ tag: "dynamic",
13389
+ attrs,
13390
+ selfClosing: true
13391
+ };
13392
+ return {
13393
+ tag: "dynamic",
13394
+ attrs,
13395
+ children: [{ cdata: JSON.stringify(n.props) }]
13396
+ };
13397
+ });
13341
13398
  registry.registerWriter("grid-container", (node, ctx) => {
13342
13399
  const n = node;
13343
13400
  const cells = (n.cells ?? []).map((cellState) => ({
@@ -17277,7 +17334,7 @@ const BLOCK_ELEMENTS = new Set([
17277
17334
  const SVG_NAMESPACE = "http://www.w3.org/2000/svg";
17278
17335
  //#endregion
17279
17336
  //#region ../../node_modules/.pnpm/linkedom@0.18.12/node_modules/linkedom/esm/shared/object.js
17280
- const { assign, create: create$7, defineProperties, entries, getOwnPropertyDescriptors, keys, setPrototypeOf } = Object;
17337
+ const { assign, create: create$8, defineProperties, entries, getOwnPropertyDescriptors, keys, setPrototypeOf } = Object;
17281
17338
  //#endregion
17282
17339
  //#region ../../node_modules/.pnpm/linkedom@0.18.12/node_modules/linkedom/esm/shared/utils.js
17283
17340
  const $String = String;
@@ -20181,7 +20238,7 @@ const { add } = Set.prototype;
20181
20238
  const addTokens = (self, tokens) => {
20182
20239
  for (const token of tokens) if (token) add.call(self, token);
20183
20240
  };
20184
- const update$6 = ({ [OWNER_ELEMENT]: ownerElement, value }) => {
20241
+ const update$7 = ({ [OWNER_ELEMENT]: ownerElement, value }) => {
20185
20242
  const attribute = ownerElement.getAttributeNode("class");
20186
20243
  if (attribute) attribute.value = value;
20187
20244
  else setAttribute(ownerElement, new Attr$1(ownerElement.ownerDocument, "class", value));
@@ -20207,7 +20264,7 @@ var DOMTokenList = class extends Set {
20207
20264
  */
20208
20265
  add(...tokens) {
20209
20266
  addTokens(this, tokens);
20210
- update$6(this);
20267
+ update$7(this);
20211
20268
  }
20212
20269
  /**
20213
20270
  * @param {string} token
@@ -20220,7 +20277,7 @@ var DOMTokenList = class extends Set {
20220
20277
  */
20221
20278
  remove(...tokens) {
20222
20279
  for (const token of tokens) this.delete(token);
20223
- update$6(this);
20280
+ update$7(this);
20224
20281
  }
20225
20282
  /**
20226
20283
  * @param {string} token
@@ -20230,10 +20287,10 @@ var DOMTokenList = class extends Set {
20230
20287
  if (this.has(token)) {
20231
20288
  if (force) return true;
20232
20289
  this.delete(token);
20233
- update$6(this);
20290
+ update$7(this);
20234
20291
  } else if (force || arguments.length === 1) {
20235
20292
  super.add(token);
20236
- update$6(this);
20293
+ update$7(this);
20237
20294
  return true;
20238
20295
  }
20239
20296
  return false;
@@ -20246,7 +20303,7 @@ var DOMTokenList = class extends Set {
20246
20303
  if (this.has(token)) {
20247
20304
  this.delete(token);
20248
20305
  super.add(newToken);
20249
- update$6(this);
20306
+ update$7(this);
20250
20307
  return true;
20251
20308
  }
20252
20309
  return false;
@@ -20490,7 +20547,7 @@ var ShadowRoot$1 = class extends NonElementParentNode {
20490
20547
  const attributesHandler = { get(target, key) {
20491
20548
  return key in target ? target[key] : target.find(({ name }) => name === key);
20492
20549
  } };
20493
- const create$6 = (ownerDocument, element, localName) => {
20550
+ const create$7 = (ownerDocument, element, localName) => {
20494
20551
  if ("ownerSVGElement" in element) {
20495
20552
  const svg = ownerDocument.createElementNS(SVG_NAMESPACE, localName);
20496
20553
  svg.ownerSVGElement = element.ownerSVGElement;
@@ -20800,7 +20857,7 @@ var Element$1 = class extends ParentNode {
20800
20857
  knownAdjacent($next, next);
20801
20858
  $next = next;
20802
20859
  };
20803
- const clone = create$6(ownerDocument, this, localName);
20860
+ const clone = create$7(ownerDocument, this, localName);
20804
20861
  let parentNode = clone, $next = clone;
20805
20862
  let { [NEXT]: next, [END]: prev } = this;
20806
20863
  while (next !== prev && (deep || next.nodeType === 2)) {
@@ -20811,7 +20868,7 @@ var Element$1 = class extends ParentNode {
20811
20868
  parentNode = parentNode.parentNode;
20812
20869
  break;
20813
20870
  case 1: {
20814
- const node = create$6(ownerDocument, next, next.localName);
20871
+ const node = create$7(ownerDocument, next, next.localName);
20815
20872
  addNext(node);
20816
20873
  parentNode = node;
20817
20874
  break;
@@ -24699,7 +24756,7 @@ var Document$1 = class extends NonElementParentNode {
24699
24756
  return this.createTreeWalker(root, whatToShow);
24700
24757
  }
24701
24758
  createEvent(name) {
24702
- const event = create$7(name === "Event" ? new GlobalEvent("") : new CustomEvent(""));
24759
+ const event = create$8(name === "Event" ? new GlobalEvent("") : new CustomEvent(""));
24703
24760
  event.initEvent = event.initCustomEvent = (type, canBubble = false, cancelable = false, detail) => {
24704
24761
  event.bubbles = !!canBubble;
24705
24762
  defineProperties(event, {
@@ -24913,7 +24970,7 @@ function Document() {
24913
24970
  }
24914
24971
  setPrototypeOf(Document, Document$1).prototype = Document$1.prototype;
24915
24972
  //#endregion
24916
- //#region ../../node_modules/.pnpm/@haklex+rich-litexml@0.22.0/node_modules/@haklex/rich-litexml/dist/node.mjs
24973
+ //#region ../../node_modules/.pnpm/@haklex+rich-litexml@0.27.0/node_modules/@haklex/rich-litexml/dist/node.mjs
24917
24974
  registerParseHTML((html) => parseHTML(html).document);
24918
24975
  //#endregion
24919
24976
  //#region ../editor/src/core/litexml.ts
@@ -25053,7 +25110,7 @@ const TRANSFORMERS = mod$1.TRANSFORMERS;
25053
25110
  mod$1.UNORDERED_LIST;
25054
25111
  mod$1.registerMarkdownShortcuts;
25055
25112
  //#endregion
25056
- //#region ../../node_modules/.pnpm/@haklex+rich-headless@0.22.0_lexical@0.45.0/node_modules/@haklex/rich-headless/dist/transformers.mjs
25113
+ //#region ../../node_modules/.pnpm/@haklex+rich-headless@0.27.0_lexical@0.45.0/node_modules/@haklex/rich-headless/dist/transformers.mjs
25057
25114
  /**
25058
25115
  * Headless Markdown transformers — export-only (Lexical → Markdown).
25059
25116
  * Import stubs are no-ops; used only for $convertToMarkdownString.
@@ -25480,7 +25537,7 @@ function $toMarkdown() {
25480
25537
  return $convertToMarkdownString(allHeadlessTransformers);
25481
25538
  }
25482
25539
  //#endregion
25483
- //#region ../../node_modules/.pnpm/@haklex+rich-headless@0.22.0_lexical@0.45.0/node_modules/@haklex/rich-headless/dist/index.mjs
25540
+ //#region ../../node_modules/.pnpm/@haklex+rich-headless@0.27.0_lexical@0.45.0/node_modules/@haklex/rich-headless/dist/index.mjs
25484
25541
  var INTRINSIC_TYPES = [
25485
25542
  "root",
25486
25543
  "paragraph",
@@ -25693,6 +25750,38 @@ var DetailsNode = class DetailsNode extends ElementNode {
25693
25750
  return false;
25694
25751
  }
25695
25752
  };
25753
+ var RichQuoteNode = class RichQuoteNode extends QuoteNode {
25754
+ static getType() {
25755
+ return "rich-quote";
25756
+ }
25757
+ static clone(node) {
25758
+ const n = new RichQuoteNode(node.__key);
25759
+ n.__attribution = node.__attribution;
25760
+ return n;
25761
+ }
25762
+ constructor(key) {
25763
+ super(key);
25764
+ this.__attribution = null;
25765
+ }
25766
+ static importJSON(json) {
25767
+ const node = new RichQuoteNode();
25768
+ node.__attribution = json.attribution ?? null;
25769
+ return node;
25770
+ }
25771
+ exportJSON() {
25772
+ return {
25773
+ ...super.exportJSON(),
25774
+ type: "rich-quote",
25775
+ attribution: this.__attribution
25776
+ };
25777
+ }
25778
+ createDOM() {
25779
+ return stubDOM();
25780
+ }
25781
+ updateDOM() {
25782
+ return false;
25783
+ }
25784
+ };
25696
25785
  function headlessDecorator(type, propKeys, defaults, inline = false) {
25697
25786
  class Node extends DecoratorNode {
25698
25787
  constructor(key) {
@@ -25808,6 +25897,15 @@ var GalleryNode = headlessDecorator("gallery", ["images", "layout"], {
25808
25897
  layout: "grid"
25809
25898
  });
25810
25899
  var ExcalidrawNode = headlessDecorator("excalidraw", ["snapshot"], { snapshot: "" });
25900
+ var DynamicNode = headlessDecorator("dynamic", [
25901
+ "url",
25902
+ "props",
25903
+ "initialHeight"
25904
+ ], {
25905
+ url: "",
25906
+ props: {},
25907
+ initialHeight: 320
25908
+ });
25811
25909
  var TagNode = headlessDecorator("tag", ["text"], { text: "" }, true);
25812
25910
  var CommentNode = headlessDecorator("comment", ["text"], { text: "" }, true);
25813
25911
  var PollNode = headlessDecorator("poll", [
@@ -25838,6 +25936,7 @@ var customHeadlessNodes = [
25838
25936
  SpoilerNode,
25839
25937
  RubyNode,
25840
25938
  DetailsNode,
25939
+ RichQuoteNode,
25841
25940
  ImageNode,
25842
25941
  VideoNode,
25843
25942
  LinkCardNode,
@@ -25852,6 +25951,7 @@ var customHeadlessNodes = [
25852
25951
  CodeSnippetNode,
25853
25952
  GalleryNode,
25854
25953
  ExcalidrawNode,
25954
+ DynamicNode,
25855
25955
  TagNode,
25856
25956
  CommentNode,
25857
25957
  class BannerNode extends DecoratorNode {
@@ -30597,7 +30697,7 @@ const renderReadableGeneric = (data) => renderReadableLines(data, 0).join("\n");
30597
30697
  //#endregion
30598
30698
  //#region src/services/Renderer/service.ts
30599
30699
  const makeService$2 = () => {
30600
- const getOpts = get$16(currentOutputOptions);
30700
+ const getOpts = get$17(currentOutputOptions);
30601
30701
  const emitSuccessSync = (data, opts) => {
30602
30702
  if (opts.json || opts.output === "json") {
30603
30703
  writeStdout(`${JSON.stringify({
@@ -30771,7 +30871,7 @@ const humanUntil = (epochMs) => {
30771
30871
  };
30772
30872
  //#endregion
30773
30873
  //#region src/cli/auth/login.ts
30774
- const production$1 = boolean("production", { negationNames: ["no-production"] }).pipe(optional$3);
30874
+ const production$1 = boolean("production", { negationNames: ["no-production"] }).pipe(optional$4);
30775
30875
  const DEFAULT_PROFILE = "default";
30776
30876
  const login = make$13("login", { production: production$1 }, ({ production }) => gen(function* () {
30777
30877
  const auth = yield* Auth;
@@ -30780,7 +30880,7 @@ const login = make$13("login", { production: production$1 }, ({ production }) =>
30780
30880
  const editor = yield* Editor;
30781
30881
  const renderer = yield* Renderer;
30782
30882
  const opts = yield* renderer.options;
30783
- const flagProfile = yield* get$16(currentProfileFlag);
30883
+ const flagProfile = yield* get$17(currentProfileFlag);
30784
30884
  const resolved = yield* profile.resolve(flagProfile ? { profile: flagProfile } : {}).pipe(catchTags({
30785
30885
  Generic: (e) => {
30786
30886
  return e.cause?._tag === "ConfigMissingApiUrl" ? succeed$1(null) : fail$2(e);
@@ -30976,7 +31076,7 @@ const whoami = make$13("whoami", {}, () => gen(function* () {
30976
31076
  }));
30977
31077
  //#endregion
30978
31078
  //#region src/cli/auth/index.ts
30979
- const help$11 = registerCommandHelp({
31079
+ const help$12 = registerCommandHelp({
30980
31080
  name: "auth",
30981
31081
  description: "authentication",
30982
31082
  verbs: [
@@ -30999,7 +31099,7 @@ const help$11 = registerCommandHelp({
30999
31099
  }
31000
31100
  ]
31001
31101
  });
31002
- const authCmd = make$13("auth").pipe(withDescription(help$11.description), withSubcommands([
31102
+ const authCmd = make$13("auth").pipe(withDescription(help$12.description), withSubcommands([
31003
31103
  login,
31004
31104
  logout,
31005
31105
  whoami,
@@ -31164,7 +31264,7 @@ function makeApiService(http, config, auth, opts) {
31164
31264
  })));
31165
31265
  const maybeEmitBanner = (resolved) => gen(function* () {
31166
31266
  if (!resolved.isProduction || opts.quiet) return;
31167
- if (yield* get$11(bannerEmitted)) return;
31267
+ if (yield* get$12(bannerEmitted)) return;
31168
31268
  yield* set$3(bannerEmitted, true);
31169
31269
  yield* sync(() => {
31170
31270
  process.stderr.write(`mxs: profile=${resolved.profileName} (production) → ${resolved.apiUrl}\n`);
@@ -31256,7 +31356,7 @@ function makeApiService(http, config, auth, opts) {
31256
31356
  }
31257
31357
  const body = yield* parseBody(res);
31258
31358
  if (opts.verbose) {
31259
- if (!(yield* get$11(detectedWire))) {
31359
+ if (!(yield* get$12(detectedWire))) {
31260
31360
  const sniffed = detectWireVersion(body);
31261
31361
  if (sniffed) {
31262
31362
  yield* set$3(detectedWire, sniffed);
@@ -31293,7 +31393,7 @@ function parseBody(res) {
31293
31393
  function decodeWithSchema(schema, body) {
31294
31394
  return tryPromise({
31295
31395
  try: async () => {
31296
- const { Schema: SchemaMod } = await import("./esm-Bw9S3CPp.mjs");
31396
+ const { Schema: SchemaMod } = await import("./esm-DXO9Afik.mjs");
31297
31397
  return SchemaMod.decodeUnknownPromise(schema)(body);
31298
31398
  },
31299
31399
  catch: (err) => new ServerError({
@@ -31394,11 +31494,11 @@ function refreshOnce(auth, config, resolved, currentToken) {
31394
31494
  return refreshed;
31395
31495
  });
31396
31496
  }
31397
- const create$5 = make$13("create", {
31497
+ const create$6 = make$13("create", {
31398
31498
  name: text$4("name"),
31399
31499
  slug: text$4("slug"),
31400
- type: choice("type", ["category", "tag"]).pipe(optional$3),
31401
- icon: text$4("icon").pipe(optional$3)
31500
+ type: choice("type", ["category", "tag"]).pipe(optional$4),
31501
+ icon: text$4("icon").pipe(optional$4)
31402
31502
  }, ({ name, slug, type, icon }) => gen(function* () {
31403
31503
  const body = {
31404
31504
  name,
@@ -31619,7 +31719,7 @@ var Resolver = class Resolver extends Tag$2("Resolver")() {
31619
31719
  return make$3(yield* Api);
31620
31720
  }));
31621
31721
  };
31622
- const del$7 = make$13("delete", {
31722
+ const del$8 = make$13("delete", {
31623
31723
  slugOrId: text$6({ name: "slugOrId" }),
31624
31724
  force: boolean("force")
31625
31725
  }, ({ slugOrId, force }) => gen(function* () {
@@ -31630,7 +31730,7 @@ const del$7 = make$13("delete", {
31630
31730
  yield* api.request(`/categories/${id}`, { method: "DELETE" });
31631
31731
  yield* renderer.emitSuccess({ deleted: id });
31632
31732
  }));
31633
- const get$8 = make$13("get", { slugOrId: text$6({ name: "slugOrId" }) }, ({ slugOrId }) => gen(function* () {
31733
+ const get$9 = make$13("get", { slugOrId: text$6({ name: "slugOrId" }) }, ({ slugOrId }) => gen(function* () {
31634
31734
  const api = yield* Api;
31635
31735
  const renderer = yield* Renderer;
31636
31736
  const res = yield* api.request(`/categories/${encodeURIComponent(slugOrId)}`);
@@ -31638,18 +31738,18 @@ const get$8 = make$13("get", { slugOrId: text$6({ name: "slugOrId" }) }, ({ slug
31638
31738
  }));
31639
31739
  //#endregion
31640
31740
  //#region src/cli/category/list.ts
31641
- const list$9 = make$13("list", {}, () => gen(function* () {
31741
+ const list$10 = make$13("list", {}, () => gen(function* () {
31642
31742
  const api = yield* Api;
31643
31743
  const renderer = yield* Renderer;
31644
31744
  const res = yield* api.request("/categories");
31645
31745
  yield* renderer.emitSuccess(res);
31646
31746
  }));
31647
- const update$5 = make$13("update", {
31747
+ const update$6 = make$13("update", {
31648
31748
  slugOrId: text$6({ name: "slugOrId" }),
31649
- name: text$4("name").pipe(optional$3),
31650
- slug: text$4("slug").pipe(optional$3),
31651
- type: choice("type", ["category", "tag"]).pipe(optional$3),
31652
- icon: text$4("icon").pipe(optional$3)
31749
+ name: text$4("name").pipe(optional$4),
31750
+ slug: text$4("slug").pipe(optional$4),
31751
+ type: choice("type", ["category", "tag"]).pipe(optional$4),
31752
+ icon: text$4("icon").pipe(optional$4)
31653
31753
  }, ({ slugOrId, name, slug, type, icon }) => gen(function* () {
31654
31754
  const body = {};
31655
31755
  const n = getOrUndefined(name);
@@ -31671,7 +31771,7 @@ const update$5 = make$13("update", {
31671
31771
  }));
31672
31772
  //#endregion
31673
31773
  //#region src/cli/category/index.ts
31674
- const help$10 = registerCommandHelp({
31774
+ const help$11 = registerCommandHelp({
31675
31775
  name: "category",
31676
31776
  description: "manage categories / tags",
31677
31777
  verbs: [
@@ -31711,12 +31811,12 @@ const help$10 = registerCommandHelp({
31711
31811
  }
31712
31812
  ]
31713
31813
  });
31714
- const categoryCmd = make$13("category").pipe(withDescription(help$10.description), withSubcommands([
31715
- list$9,
31716
- get$8,
31717
- create$5,
31718
- update$5,
31719
- del$7
31814
+ const categoryCmd = make$13("category").pipe(withDescription(help$11.description), withSubcommands([
31815
+ list$10,
31816
+ get$9,
31817
+ create$6,
31818
+ update$6,
31819
+ del$8
31720
31820
  ]));
31721
31821
  //#endregion
31722
31822
  //#region src/services/Comment.ts
@@ -31819,12 +31919,12 @@ var Comment = class Comment extends Tag$2("Comment")() {
31819
31919
  //#region src/cli/comment/_flags.ts
31820
31920
  const ids = text$6({ name: "id" }).pipe(repeated);
31821
31921
  const all$1 = boolean("all").pipe(withDescription$3("apply to every comment (optionally filtered by --state)"));
31822
- const force$8 = boolean("force").pipe(withDescription$3("skip TTY confirmation guard"));
31922
+ const force$9 = boolean("force").pipe(withDescription$3("skip TTY confirmation guard"));
31823
31923
  const stateFilter = choice("state", [
31824
31924
  "unread",
31825
31925
  "read",
31826
31926
  "junk"
31827
- ]).pipe(optional$3);
31927
+ ]).pipe(optional$4);
31828
31928
  const unwrapOption = (value) => getOrUndefined(value);
31829
31929
  /**
31830
31930
  * Shared invariants for ids/--all batch verbs (`approve`, `reject`, `delete`).
@@ -31850,7 +31950,7 @@ const requireForceForSingleDelete = (params) => suspend(() => {
31850
31950
  const approve = make$13("approve", {
31851
31951
  ids,
31852
31952
  all: all$1,
31853
- force: force$8,
31953
+ force: force$9,
31854
31954
  state: stateFilter
31855
31955
  }, ({ ids, all, force, state }) => gen(function* () {
31856
31956
  yield* validateBatchSelection({
@@ -31874,10 +31974,10 @@ const approve = make$13("approve", {
31874
31974
  })).pipe(withDescription("mark comments as read; pass ids or --all [--state <s>]"));
31875
31975
  //#endregion
31876
31976
  //#region src/cli/comment/delete.ts
31877
- const del$6 = make$13("delete", {
31977
+ const del$7 = make$13("delete", {
31878
31978
  ids,
31879
31979
  all: all$1,
31880
- force: force$8,
31980
+ force: force$9,
31881
31981
  state: stateFilter
31882
31982
  }, ({ ids, all, force, state }) => gen(function* () {
31883
31983
  yield* validateBatchSelection({
@@ -32041,15 +32141,15 @@ const commentListView = {
32041
32141
  readable: (data, ctx) => renderCommentListReadable(data, ctx.color),
32042
32142
  llm: (data) => renderCommentListLlm(data)
32043
32143
  };
32044
- const get$7 = make$13("get", { id: text$6({ name: "id" }) }, ({ id }) => gen(function* () {
32144
+ const get$8 = make$13("get", { id: text$6({ name: "id" }) }, ({ id }) => gen(function* () {
32045
32145
  const comment = yield* Comment;
32046
32146
  const renderer = yield* Renderer;
32047
32147
  const res = yield* comment.get(id);
32048
32148
  yield* renderer.emit(commentView, res);
32049
32149
  })).pipe(withDescription("show a single comment by id"));
32050
- const list$8 = make$13("list", {
32051
- page: integer("page").pipe(optional$3),
32052
- size: integer("size").pipe(optional$3),
32150
+ const list$9 = make$13("list", {
32151
+ page: integer("page").pipe(optional$4),
32152
+ size: integer("size").pipe(optional$4),
32053
32153
  state: stateFilter,
32054
32154
  all: boolean("all").pipe(withDescription$3("list comments across every state (ignores --state)"))
32055
32155
  }, ({ page, size, state, all }) => gen(function* () {
@@ -32068,7 +32168,7 @@ const list$8 = make$13("list", {
32068
32168
  const reject = make$13("reject", {
32069
32169
  ids,
32070
32170
  all: all$1,
32071
- force: force$8,
32171
+ force: force$9,
32072
32172
  state: stateFilter
32073
32173
  }, ({ ids, all, force, state }) => gen(function* () {
32074
32174
  yield* validateBatchSelection({
@@ -32155,7 +32255,7 @@ const readStdin = gen(function* () {
32155
32255
  });
32156
32256
  const reply = make$13("reply", {
32157
32257
  id: text$6({ name: "id" }),
32158
- text: text$4("text").pipe(withDescription$3("reply text — inline literal, `file=<path>`, or `-`/`stdin` to read stdin"), optional$3),
32258
+ text: text$4("text").pipe(withDescription$3("reply text — inline literal, `file=<path>`, or `-`/`stdin` to read stdin"), optional$4),
32159
32259
  whispers: boolean("whispers").pipe(withDescription$3("mark this reply as whispers (owner-only visible)")),
32160
32260
  silent: boolean("silent").pipe(withDescription$3("on success, emit a minimal `ok` instead of the full server response"))
32161
32261
  }, ({ id, text, whispers, silent }) => gen(function* () {
@@ -32172,8 +32272,8 @@ const reply = make$13("reply", {
32172
32272
  yield* renderer.emitSuccess(silent ? { ok: true } : res);
32173
32273
  })).pipe(withDescription("post an owner reply to a comment; pass --text inline, --text file=<path>, or --text -"));
32174
32274
  const unread = make$13("unread", {
32175
- page: integer("page").pipe(optional$3),
32176
- size: integer("size").pipe(optional$3)
32275
+ page: integer("page").pipe(optional$4),
32276
+ size: integer("size").pipe(optional$4)
32177
32277
  }, ({ page, size }) => gen(function* () {
32178
32278
  const comment = yield* Comment;
32179
32279
  const renderer = yield* Renderer;
@@ -32186,7 +32286,7 @@ const unread = make$13("unread", {
32186
32286
  })).pipe(withDescription("list unread comments (alias for `comment list --state unread`)"));
32187
32287
  //#endregion
32188
32288
  //#region src/cli/comment/index.ts
32189
- const help$9 = registerCommandHelp({
32289
+ const help$10 = registerCommandHelp({
32190
32290
  name: "comment",
32191
32291
  description: "list and moderate comments",
32192
32292
  verbs: [
@@ -32253,18 +32353,18 @@ const help$9 = registerCommandHelp({
32253
32353
  }
32254
32354
  ]
32255
32355
  });
32256
- const commentCmd = make$13("comment").pipe(withDescription(help$9.description), withSubcommands([
32257
- list$8,
32356
+ const commentCmd = make$13("comment").pipe(withDescription(help$10.description), withSubcommands([
32357
+ list$9,
32258
32358
  unread,
32259
- get$7,
32359
+ get$8,
32260
32360
  reply,
32261
32361
  approve,
32262
32362
  reject,
32263
- del$6
32363
+ del$7
32264
32364
  ]));
32265
32365
  //#endregion
32266
32366
  //#region src/cli/config/edit.ts
32267
- const edit$4 = make$13("edit", {}, () => gen(function* () {
32367
+ const edit$5 = make$13("edit", {}, () => gen(function* () {
32268
32368
  const api = yield* Api;
32269
32369
  const editor = yield* Editor;
32270
32370
  const renderer = yield* Renderer;
@@ -32289,7 +32389,7 @@ const edit$4 = make$13("edit", {}, () => gen(function* () {
32289
32389
  });
32290
32390
  yield* renderer.emitSuccess(results);
32291
32391
  }));
32292
- const get$6 = make$13("get", { key: text$6({ name: "key" }) }, ({ key }) => gen(function* () {
32392
+ const get$7 = make$13("get", { key: text$6({ name: "key" }) }, ({ key }) => gen(function* () {
32293
32393
  const api = yield* Api;
32294
32394
  const renderer = yield* Renderer;
32295
32395
  const res = yield* api.request(`/options/${encodeURIComponent(key)}`);
@@ -32297,7 +32397,7 @@ const get$6 = make$13("get", { key: text$6({ name: "key" }) }, ({ key }) => gen(
32297
32397
  }));
32298
32398
  //#endregion
32299
32399
  //#region src/cli/config/list.ts
32300
- const list$7 = make$13("list", {}, () => gen(function* () {
32400
+ const list$8 = make$13("list", {}, () => gen(function* () {
32301
32401
  const api = yield* Api;
32302
32402
  const renderer = yield* Renderer;
32303
32403
  const res = yield* api.request("/options");
@@ -32312,7 +32412,7 @@ const type_ = choice("type", [
32312
32412
  "string",
32313
32413
  "number",
32314
32414
  "bool"
32315
- ]).pipe(optional$3);
32415
+ ]).pipe(optional$4);
32316
32416
  const coerce = (raw, type) => {
32317
32417
  if (type === "string") return succeed$1(raw);
32318
32418
  if (type === "number") {
@@ -32344,7 +32444,7 @@ const set = make$13("set", {
32344
32444
  }));
32345
32445
  //#endregion
32346
32446
  //#region src/cli/config/index.ts
32347
- const help$8 = registerCommandHelp({
32447
+ const help$9 = registerCommandHelp({
32348
32448
  name: "config",
32349
32449
  description: "manage server options",
32350
32450
  verbs: [
@@ -32372,11 +32472,11 @@ const help$8 = registerCommandHelp({
32372
32472
  }
32373
32473
  ]
32374
32474
  });
32375
- const configCmd = make$13("config").pipe(withDescription(help$8.description), withSubcommands([
32376
- list$7,
32377
- get$6,
32475
+ const configCmd = make$13("config").pipe(withDescription(help$9.description), withSubcommands([
32476
+ list$8,
32477
+ get$7,
32378
32478
  set,
32379
- edit$4
32479
+ edit$5
32380
32480
  ]));
32381
32481
  //#endregion
32382
32482
  //#region src/cli/file/_shared.ts
@@ -32389,7 +32489,7 @@ const FILE_TYPES = [
32389
32489
  ];
32390
32490
  const typeOption = choice("type", FILE_TYPES).pipe(withDescription$3("server-side storage bucket for the file"), withDefault("file"));
32391
32491
  const silentFlag$5 = boolean("silent").pipe(withDescription$3("On success, emit a minimal `ok` instead of the full server response."));
32392
- const del$5 = make$13("delete", {
32492
+ const del$6 = make$13("delete", {
32393
32493
  name: text$6({ name: "name" }),
32394
32494
  type: typeOption,
32395
32495
  force: boolean("force").pipe(withDescription$3("skip confirmation"))
@@ -32402,7 +32502,7 @@ const del$5 = make$13("delete", {
32402
32502
  })).pipe(withDescription("delete an uploaded file"));
32403
32503
  //#endregion
32404
32504
  //#region src/cli/file/list.ts
32405
- const list$6 = make$13("list", { type: typeOption }, ({ type }) => gen(function* () {
32505
+ const list$7 = make$13("list", { type: typeOption }, ({ type }) => gen(function* () {
32406
32506
  const api = yield* Api;
32407
32507
  const renderer = yield* Renderer;
32408
32508
  const res = yield* api.request(`/objects/${type}`);
@@ -32427,7 +32527,7 @@ const rename = make$13("rename", {
32427
32527
  const upload = make$13("upload", {
32428
32528
  path: text$6({ name: "path" }),
32429
32529
  type: typeOption,
32430
- name: text$4("name").pipe(withDescription$3("override the uploaded filename (defaults to the local basename)"), optional$3),
32530
+ name: text$4("name").pipe(withDescription$3("override the uploaded filename (defaults to the local basename)"), optional$4),
32431
32531
  silent: silentFlag$5
32432
32532
  }, ({ path, type, name, silent }) => gen(function* () {
32433
32533
  const buffer = yield* tryPromise({
@@ -32451,7 +32551,7 @@ const upload = make$13("upload", {
32451
32551
  })).pipe(withDescription(`upload a local file (--type ${FILE_TYPES.join("|")}); returns { url, name }`));
32452
32552
  //#endregion
32453
32553
  //#region src/cli/file/index.ts
32454
- const help$7 = registerCommandHelp({
32554
+ const help$8 = registerCommandHelp({
32455
32555
  name: "file",
32456
32556
  description: "upload and manage static files (images, icons, avatars)",
32457
32557
  verbs: [
@@ -32489,10 +32589,10 @@ const help$7 = registerCommandHelp({
32489
32589
  }
32490
32590
  ]
32491
32591
  });
32492
- const fileCmd = make$13("file").pipe(withDescription(help$7.description), withSubcommands([
32592
+ const fileCmd = make$13("file").pipe(withDescription(help$8.description), withSubcommands([
32493
32593
  upload,
32494
- list$6,
32495
- del$5,
32594
+ list$7,
32595
+ del$6,
32496
32596
  rename
32497
32597
  ]));
32498
32598
  //#endregion
@@ -33035,22 +33135,22 @@ const resolveContent = (flagSpec, envelope, format) => gen(function* () {
33035
33135
  });
33036
33136
  //#endregion
33037
33137
  //#region src/cli/post/_flags.ts
33038
- const optional$2 = (self) => optional$3(self);
33039
- const unwrap$6 = (value) => getOrUndefined(value);
33040
- const title$2 = optional$2(text$4("title"));
33041
- const slug$4 = optional$2(text$4("slug"));
33042
- const category = optional$2(text$4("category"));
33043
- const content$2 = optional$2(text$4("content"));
33044
- const summary = optional$2(text$4("summary"));
33045
- const file$3 = optional$2(text$4("file"));
33046
- const meta$2 = optional$2(text$4("meta"));
33047
- const pin = optional$2(text$4("pin"));
33048
- const format$2 = choice("format", ["lexical", "markdown"]).pipe(optional$3);
33049
- const state$3 = choice("state", ["publish", "draft"]).pipe(optional$3);
33050
- const tags = optional$2(text$4("tags"));
33051
- const related = optional$2(text$4("related"));
33052
- const pinOrder = optional$2(integer("pin-order"));
33053
- const copyright = optional$2(text$4("copyright"));
33138
+ const optional$3 = (self) => optional$4(self);
33139
+ const unwrap$8 = (value) => getOrUndefined(value);
33140
+ const title$2 = optional$3(text$4("title"));
33141
+ const slug$4 = optional$3(text$4("slug"));
33142
+ const category = optional$3(text$4("category"));
33143
+ const content$2 = optional$3(text$4("content"));
33144
+ const summary = optional$3(text$4("summary"));
33145
+ const file$4 = optional$3(text$4("file"));
33146
+ const meta$2 = optional$3(text$4("meta"));
33147
+ const pin = optional$3(text$4("pin"));
33148
+ const format$2 = choice("format", ["lexical", "markdown"]).pipe(optional$4);
33149
+ const state$3 = choice("state", ["publish", "draft"]).pipe(optional$4);
33150
+ const tags = optional$3(text$4("tags"));
33151
+ const related = optional$3(text$4("related"));
33152
+ const pinOrder = optional$3(integer("pin-order"));
33153
+ const copyright = optional$3(text$4("copyright"));
33054
33154
  const openFlag$4 = boolean("open").pipe(withDescription$3("After success, open the admin edit page in the default browser."));
33055
33155
  const silentFlag$4 = boolean("silent").pipe(withDescription$3("On success, emit a minimal `ok` instead of the full server response (saves output tokens). Errors still print normally."));
33056
33156
  const parseCsv$1 = (v) => {
@@ -33072,7 +33172,7 @@ const postWriteOptions = {
33072
33172
  pinOrder,
33073
33173
  related,
33074
33174
  meta: meta$2,
33075
- file: file$3,
33175
+ file: file$4,
33076
33176
  open: openFlag$4,
33077
33177
  silent: silentFlag$4
33078
33178
  };
@@ -33085,53 +33185,58 @@ const resolveCategoryRefs = (payload) => gen(function* () {
33085
33185
  return next;
33086
33186
  });
33087
33187
  const toPostFlagInputs = (opts) => ({
33088
- title: unwrap$6(opts.title),
33089
- slug: unwrap$6(opts.slug),
33090
- category: unwrap$6(opts.category),
33091
- content: unwrap$6(opts.content),
33092
- format: unwrap$6(opts.format),
33093
- summary: unwrap$6(opts.summary),
33094
- state: unwrap$6(opts.state),
33095
- tags: parseCsv$1(unwrap$6(opts.tags)),
33096
- copyright: parseCopyright(unwrap$6(opts.copyright)),
33097
- pin: unwrap$6(opts.pin),
33098
- pinOrder: unwrap$6(opts.pinOrder),
33099
- related: parseCsv$1(unwrap$6(opts.related)),
33100
- meta: unwrap$6(opts.meta),
33101
- file: unwrap$6(opts.file)
33188
+ title: unwrap$8(opts.title),
33189
+ slug: unwrap$8(opts.slug),
33190
+ category: unwrap$8(opts.category),
33191
+ content: unwrap$8(opts.content),
33192
+ format: unwrap$8(opts.format),
33193
+ summary: unwrap$8(opts.summary),
33194
+ state: unwrap$8(opts.state),
33195
+ tags: parseCsv$1(unwrap$8(opts.tags)),
33196
+ copyright: parseCopyright(unwrap$8(opts.copyright)),
33197
+ pin: unwrap$8(opts.pin),
33198
+ pinOrder: unwrap$8(opts.pinOrder),
33199
+ related: parseCsv$1(unwrap$8(opts.related)),
33200
+ meta: unwrap$8(opts.meta),
33201
+ file: unwrap$8(opts.file)
33102
33202
  });
33103
- /** Extract the id from a server response — handles both `id` and `_id`. */
33203
+ /**
33204
+ * Extract the id from a server response — handles both `id` and `_id`,
33205
+ * and unwraps the outer `data` envelope mx-core wraps single-object
33206
+ * responses with (so `--open` works after `post create`).
33207
+ */
33104
33208
  const extractId$1 = (res) => {
33105
33209
  if (!res || typeof res !== "object") return void 0;
33106
33210
  const r = res;
33107
33211
  if (typeof r.id === "string") return r.id;
33108
33212
  if (typeof r._id === "string") return r._id;
33213
+ if (r.data && typeof r.data === "object") return extractId$1(r.data);
33109
33214
  };
33110
33215
  //#endregion
33111
33216
  //#region src/cli/note/_flags.ts
33112
- const optional$1 = (self) => optional$3(self);
33113
- const unwrap$5 = (value) => getOrUndefined(value);
33114
- const title$1 = optional$1(text$4("title"));
33115
- const slug$3 = optional$1(text$4("slug"));
33116
- const topic = optional$1(text$4("topic"));
33117
- const content$1 = optional$1(text$4("content"));
33118
- const mood = optional$1(text$4("mood"));
33119
- const weather = optional$1(text$4("weather"));
33120
- const publicAt = optional$1(text$4("public-at"));
33121
- const password = optional$1(text$4("password"));
33122
- const coords = optional$1(text$4("coords"));
33123
- const location$1 = optional$1(text$4("location"));
33124
- const images$1 = optional$1(text$4("images"));
33125
- const meta$1 = optional$1(text$4("meta"));
33126
- const file$2 = optional$1(text$4("file"));
33127
- const bookmark = optional$1(text$4("bookmark"));
33217
+ const optional$2 = (self) => optional$4(self);
33218
+ const unwrap$7 = (value) => getOrUndefined(value);
33219
+ const title$1 = optional$2(text$4("title"));
33220
+ const slug$3 = optional$2(text$4("slug"));
33221
+ const topic = optional$2(text$4("topic"));
33222
+ const content$1 = optional$2(text$4("content"));
33223
+ const mood = optional$2(text$4("mood"));
33224
+ const weather = optional$2(text$4("weather"));
33225
+ const publicAt = optional$2(text$4("public-at"));
33226
+ const password = optional$2(text$4("password"));
33227
+ const coords = optional$2(text$4("coords"));
33228
+ const location$1 = optional$2(text$4("location"));
33229
+ const images$1 = optional$2(text$4("images"));
33230
+ const meta$1 = optional$2(text$4("meta"));
33231
+ const file$3 = optional$2(text$4("file"));
33232
+ const bookmark = optional$2(text$4("bookmark"));
33128
33233
  const noteWriteOptions = {
33129
33234
  title: title$1,
33130
33235
  slug: slug$3,
33131
33236
  topic,
33132
33237
  content: content$1,
33133
- format: choice("format", ["lexical", "markdown"]).pipe(optional$3),
33134
- state: choice("state", ["publish", "draft"]).pipe(optional$3),
33238
+ format: choice("format", ["lexical", "markdown"]).pipe(optional$4),
33239
+ state: choice("state", ["publish", "draft"]).pipe(optional$4),
33135
33240
  mood,
33136
33241
  weather,
33137
33242
  publicAt,
@@ -33141,28 +33246,28 @@ const noteWriteOptions = {
33141
33246
  location: location$1,
33142
33247
  images: images$1,
33143
33248
  meta: meta$1,
33144
- file: file$2,
33249
+ file: file$3,
33145
33250
  open: boolean("open").pipe(withDescription$3("After success, open the admin edit page in the default browser.")),
33146
33251
  silent: boolean("silent").pipe(withDescription$3("On success, emit a minimal `ok` instead of the full server response (saves output tokens). Errors still print normally."))
33147
33252
  };
33148
33253
  const parseBoolean = (v) => v === void 0 ? void 0 : v === "true";
33149
33254
  const toNoteFlagInputs = (opts) => ({
33150
- title: unwrap$5(opts.title),
33151
- slug: unwrap$5(opts.slug),
33152
- topic: unwrap$5(opts.topic),
33153
- content: unwrap$5(opts.content),
33154
- format: unwrap$5(opts.format),
33155
- state: unwrap$5(opts.state),
33156
- mood: unwrap$5(opts.mood),
33157
- weather: unwrap$5(opts.weather),
33158
- publicAt: unwrap$5(opts.publicAt),
33159
- password: unwrap$5(opts.password),
33160
- bookmark: parseBoolean(unwrap$5(opts.bookmark)),
33161
- coords: unwrap$5(opts.coords),
33162
- location: unwrap$5(opts.location),
33163
- images: unwrap$5(opts.images),
33164
- meta: unwrap$5(opts.meta),
33165
- file: unwrap$5(opts.file)
33255
+ title: unwrap$7(opts.title),
33256
+ slug: unwrap$7(opts.slug),
33257
+ topic: unwrap$7(opts.topic),
33258
+ content: unwrap$7(opts.content),
33259
+ format: unwrap$7(opts.format),
33260
+ state: unwrap$7(opts.state),
33261
+ mood: unwrap$7(opts.mood),
33262
+ weather: unwrap$7(opts.weather),
33263
+ publicAt: unwrap$7(opts.publicAt),
33264
+ password: unwrap$7(opts.password),
33265
+ bookmark: parseBoolean(unwrap$7(opts.bookmark)),
33266
+ coords: unwrap$7(opts.coords),
33267
+ location: unwrap$7(opts.location),
33268
+ images: unwrap$7(opts.images),
33269
+ meta: unwrap$7(opts.meta),
33270
+ file: unwrap$7(opts.file)
33166
33271
  });
33167
33272
  /** Resolve `__topicName` placeholder → `topicId`. */
33168
33273
  const resolveTopicRefs = (payload) => gen(function* () {
@@ -33174,7 +33279,7 @@ const resolveTopicRefs = (payload) => gen(function* () {
33174
33279
  });
33175
33280
  //#endregion
33176
33281
  //#region src/cli/note/create.ts
33177
- const create$4 = make$13("create", noteWriteOptions, (opts) => gen(function* () {
33282
+ const create$5 = make$13("create", noteWriteOptions, (opts) => gen(function* () {
33178
33283
  const payload = yield* resolveTopicRefs((yield* buildNotePayload(toNoteFlagInputs(opts))).payload);
33179
33284
  const api = yield* Api;
33180
33285
  const renderer = yield* Renderer;
@@ -33188,7 +33293,7 @@ const create$4 = make$13("create", noteWriteOptions, (opts) => gen(function* ()
33188
33293
  if (id) yield* openAdminEdit("notes", id);
33189
33294
  }
33190
33295
  })).pipe(withDescription("create a note"));
33191
- const del$4 = make$13("delete", {
33296
+ const del$5 = make$13("delete", {
33192
33297
  slugOrId: text$6({ name: "slugOrId" }),
33193
33298
  force: boolean("force").pipe(withDescription$3("skip confirmation"))
33194
33299
  }, ({ slugOrId, force }) => gen(function* () {
@@ -33244,7 +33349,7 @@ const applyNoteEnvelopeMeta = (payload, rawMeta) => {
33244
33349
  if (meta.location !== void 0) next.location = meta.location;
33245
33350
  return next;
33246
33351
  };
33247
- const edit$3 = make$13("edit", {
33352
+ const edit$4 = make$13("edit", {
33248
33353
  slugOrId: slugOrId$19,
33249
33354
  ...noteWriteOptions
33250
33355
  }, ({ slugOrId, ...rest }) => gen(function* () {
@@ -33422,7 +33527,7 @@ const noteListView = {
33422
33527
  modes: new Set(["readable", "llm"]),
33423
33528
  readable: (data) => renderNoteListReadable(data)
33424
33529
  };
33425
- const get$5 = make$13("get", { slugOrId: text$6({ name: "slugOrId" }) }, ({ slugOrId }) => gen(function* () {
33530
+ const get$6 = make$13("get", { slugOrId: text$6({ name: "slugOrId" }) }, ({ slugOrId }) => gen(function* () {
33426
33531
  const api = yield* Api;
33427
33532
  const renderer = yield* Renderer;
33428
33533
  if (isSnowflakeId(slugOrId)) {
@@ -33442,23 +33547,23 @@ const get$5 = make$13("get", { slugOrId: text$6({ name: "slugOrId" }) }, ({ slug
33442
33547
  })).pipe(withDescription("get a note by snowflake id or numeric nid"));
33443
33548
  //#endregion
33444
33549
  //#region src/cli/note/list.ts
33445
- const page$2 = integer("page").pipe(optional$3);
33446
- const size$2 = integer("size").pipe(optional$3);
33447
- const state$1 = text$4("state").pipe(optional$3);
33448
- const sort$1 = text$4("sort").pipe(optional$3);
33449
- const unwrap$4 = (value) => getOrUndefined(value);
33450
- const list$5 = make$13("list", {
33451
- page: page$2,
33452
- size: size$2,
33550
+ const page$3 = integer("page").pipe(optional$4);
33551
+ const size$3 = integer("size").pipe(optional$4);
33552
+ const state$1 = text$4("state").pipe(optional$4);
33553
+ const sort$1 = text$4("sort").pipe(optional$4);
33554
+ const unwrap$6 = (value) => getOrUndefined(value);
33555
+ const list$6 = make$13("list", {
33556
+ page: page$3,
33557
+ size: size$3,
33453
33558
  state: state$1,
33454
33559
  sort: sort$1
33455
33560
  }, ({ page, size, sort }) => gen(function* () {
33456
33561
  const api = yield* Api;
33457
33562
  const renderer = yield* Renderer;
33458
33563
  const res = yield* api.request("/notes", { query: {
33459
- page: unwrap$4(page),
33460
- size: unwrap$4(size),
33461
- sortBy: unwrap$4(sort)
33564
+ page: unwrap$6(page),
33565
+ size: unwrap$6(size),
33566
+ sortBy: unwrap$6(sort)
33462
33567
  } });
33463
33568
  yield* renderer.emit(noteListView, res);
33464
33569
  })).pipe(withDescription("list notes"));
@@ -33484,7 +33589,7 @@ const unpublish$1 = make$13("unpublish", { slugOrId: text$6({ name: "slugOrId" }
33484
33589
  });
33485
33590
  yield* renderer.emitSuccess(res);
33486
33591
  })).pipe(withDescription("unpublish a note"));
33487
- const update$4 = make$13("update", {
33592
+ const update$5 = make$13("update", {
33488
33593
  slugOrId: text$6({ name: "slugOrId" }),
33489
33594
  ...noteWriteOptions
33490
33595
  }, ({ slugOrId, ...rest }) => gen(function* () {
@@ -33509,7 +33614,7 @@ const update$4 = make$13("update", {
33509
33614
  })).pipe(withDescription("partially update a note"));
33510
33615
  //#endregion
33511
33616
  //#region src/cli/note/index.ts
33512
- const help$6 = registerCommandHelp({
33617
+ const help$7 = registerCommandHelp({
33513
33618
  name: "note",
33514
33619
  description: "manage notes",
33515
33620
  verbs: [
@@ -33572,40 +33677,40 @@ const help$6 = registerCommandHelp({
33572
33677
  }
33573
33678
  ]
33574
33679
  });
33575
- const noteCmd = make$13("note").pipe(withDescription(help$6.description), withSubcommands([
33576
- list$5,
33577
- get$5,
33578
- create$4,
33579
- edit$3,
33580
- update$4,
33581
- del$4,
33680
+ const noteCmd = make$13("note").pipe(withDescription(help$7.description), withSubcommands([
33681
+ list$6,
33682
+ get$6,
33683
+ create$5,
33684
+ edit$4,
33685
+ update$5,
33686
+ del$5,
33582
33687
  publish$1,
33583
33688
  unpublish$1
33584
33689
  ]));
33585
33690
  const pageWriteOptions = {
33586
- title: optional$3(text$4("title")),
33587
- slug: optional$3(text$4("slug")),
33588
- subtitle: optional$3(text$4("subtitle")),
33589
- order: optional$3(integer("order")),
33590
- content: optional$3(text$4("content")),
33591
- format: choice("format", ["lexical", "markdown"]).pipe(optional$3),
33592
- meta: optional$3(text$4("meta")),
33593
- file: optional$3(text$4("file")),
33691
+ title: optional$4(text$4("title")),
33692
+ slug: optional$4(text$4("slug")),
33693
+ subtitle: optional$4(text$4("subtitle")),
33694
+ order: optional$4(integer("order")),
33695
+ content: optional$4(text$4("content")),
33696
+ format: choice("format", ["lexical", "markdown"]).pipe(optional$4),
33697
+ meta: optional$4(text$4("meta")),
33698
+ file: optional$4(text$4("file")),
33594
33699
  open: boolean("open").pipe(withDescription$3("After success, open the admin edit page in the default browser.")),
33595
33700
  silent: boolean("silent").pipe(withDescription$3("On success, emit a minimal `ok` instead of the full server response (saves output tokens). Errors still print normally."))
33596
33701
  };
33597
- const unwrap$3 = (value) => getOrUndefined(value);
33702
+ const unwrap$5 = (value) => getOrUndefined(value);
33598
33703
  const toPageFlagInputs = (opts) => ({
33599
- title: unwrap$3(opts.title),
33600
- slug: unwrap$3(opts.slug),
33601
- subtitle: unwrap$3(opts.subtitle),
33602
- order: unwrap$3(opts.order),
33603
- content: unwrap$3(opts.content),
33604
- format: unwrap$3(opts.format),
33605
- meta: unwrap$3(opts.meta),
33606
- file: unwrap$3(opts.file)
33704
+ title: unwrap$5(opts.title),
33705
+ slug: unwrap$5(opts.slug),
33706
+ subtitle: unwrap$5(opts.subtitle),
33707
+ order: unwrap$5(opts.order),
33708
+ content: unwrap$5(opts.content),
33709
+ format: unwrap$5(opts.format),
33710
+ meta: unwrap$5(opts.meta),
33711
+ file: unwrap$5(opts.file)
33607
33712
  });
33608
- const create$3 = make$13("create", pageWriteOptions, (opts) => gen(function* () {
33713
+ const create$4 = make$13("create", pageWriteOptions, (opts) => gen(function* () {
33609
33714
  const built = yield* buildPagePayload(toPageFlagInputs(opts));
33610
33715
  const api = yield* Api;
33611
33716
  const renderer = yield* Renderer;
@@ -33622,7 +33727,7 @@ const create$3 = make$13("create", pageWriteOptions, (opts) => gen(function* ()
33622
33727
  //#endregion
33623
33728
  //#region src/cli/page/delete.ts
33624
33729
  const slugOrId$14 = text$6({ name: "slugOrId" });
33625
- const force$5 = boolean("force");
33730
+ const force$6 = boolean("force");
33626
33731
  const resolvePageId$2 = (api, ref) => gen(function* () {
33627
33732
  if (isSnowflakeId(ref)) return ref;
33628
33733
  const res = yield* api.request(`/pages/slug/${encodeURIComponent(ref)}`).pipe(catchAll(() => succeed$1(null)));
@@ -33634,9 +33739,9 @@ const resolvePageId$2 = (api, ref) => gen(function* () {
33634
33739
  }));
33635
33740
  return id;
33636
33741
  });
33637
- const del$3 = make$13("delete", {
33742
+ const del$4 = make$13("delete", {
33638
33743
  slugOrId: slugOrId$14,
33639
- force: force$5
33744
+ force: force$6
33640
33745
  }, ({ slugOrId, force }) => gen(function* () {
33641
33746
  if (!force && !process.stdin.isTTY) return yield* fail$2(new ValidationFailed({ message: "refusing to delete without --force in non-TTY context" }));
33642
33747
  const api = yield* Api;
@@ -33691,7 +33796,7 @@ const overlayPageMeta = (payload, rawMeta) => {
33691
33796
  if (meta.order !== void 0) next.order = meta.order;
33692
33797
  return next;
33693
33798
  };
33694
- const edit$2 = make$13("edit", {
33799
+ const edit$3 = make$13("edit", {
33695
33800
  slugOrId: slugOrId$13,
33696
33801
  ...pageWriteOptions
33697
33802
  }, ({ slugOrId, ...rest }) => gen(function* () {
@@ -33806,7 +33911,7 @@ const pageView = {
33806
33911
  });
33807
33912
  }
33808
33913
  };
33809
- const get$4 = make$13("get", { slugOrId: text$6({ name: "slugOrId" }) }, ({ slugOrId }) => gen(function* () {
33914
+ const get$5 = make$13("get", { slugOrId: text$6({ name: "slugOrId" }) }, ({ slugOrId }) => gen(function* () {
33810
33915
  const api = yield* Api;
33811
33916
  const renderer = yield* Renderer;
33812
33917
  const path = isSnowflakeId(slugOrId) ? `/pages/${slugOrId}` : `/pages/slug/${encodeURIComponent(slugOrId)}`;
@@ -33815,7 +33920,7 @@ const get$4 = make$13("get", { slugOrId: text$6({ name: "slugOrId" }) }, ({ slug
33815
33920
  }));
33816
33921
  //#endregion
33817
33922
  //#region src/cli/page/list.ts
33818
- const list$4 = make$13("list", {}, () => gen(function* () {
33923
+ const list$5 = make$13("list", {}, () => gen(function* () {
33819
33924
  const api = yield* Api;
33820
33925
  const renderer = yield* Renderer;
33821
33926
  const res = yield* api.request("/pages");
@@ -33835,7 +33940,7 @@ const resolvePageId = (api, ref) => gen(function* () {
33835
33940
  }));
33836
33941
  return id;
33837
33942
  });
33838
- const update$3 = make$13("update", {
33943
+ const update$4 = make$13("update", {
33839
33944
  slugOrId: slugOrId$11,
33840
33945
  ...pageWriteOptions
33841
33946
  }, ({ slugOrId, ...rest }) => gen(function* () {
@@ -33858,7 +33963,7 @@ const update$3 = make$13("update", {
33858
33963
  }));
33859
33964
  //#endregion
33860
33965
  //#region src/cli/page/index.ts
33861
- const help$5 = registerCommandHelp({
33966
+ const help$6 = registerCommandHelp({
33862
33967
  name: "page",
33863
33968
  description: "manage pages",
33864
33969
  verbs: [
@@ -33905,13 +34010,13 @@ const help$5 = registerCommandHelp({
33905
34010
  }
33906
34011
  ]
33907
34012
  });
33908
- const pageCmd = make$13("page").pipe(withDescription(help$5.description), withSubcommands([
33909
- list$4,
33910
- get$4,
33911
- create$3,
33912
- edit$2,
33913
- update$3,
33914
- del$3
34013
+ const pageCmd = make$13("page").pipe(withDescription(help$6.description), withSubcommands([
34014
+ list$5,
34015
+ get$5,
34016
+ create$4,
34017
+ edit$3,
34018
+ update$4,
34019
+ del$4
33915
34020
  ]));
33916
34021
  //#endregion
33917
34022
  //#region src/cli/post/apply.ts
@@ -33950,7 +34055,7 @@ const apply = make$13("apply", { slugOrId: slugOrId$10 }, ({ slugOrId }) => gen(
33950
34055
  })).pipe(withDescription("apply the staged draft of a post to the live post (the confirm step after `post stage`)"));
33951
34056
  //#endregion
33952
34057
  //#region src/cli/post/create.ts
33953
- const create$2 = make$13("create", postWriteOptions, (opts) => gen(function* () {
34058
+ const create$3 = make$13("create", postWriteOptions, (opts) => gen(function* () {
33954
34059
  const payload = yield* resolveCategoryRefs((yield* buildPostPayload(toPostFlagInputs(opts))).payload);
33955
34060
  const api = yield* Api;
33956
34061
  const renderer = yield* Renderer;
@@ -33964,7 +34069,7 @@ const create$2 = make$13("create", postWriteOptions, (opts) => gen(function* ()
33964
34069
  if (id) yield* openAdminEdit("posts", id);
33965
34070
  }
33966
34071
  })).pipe(withDescription("create a post"));
33967
- const del$2 = make$13("delete", {
34072
+ const del$3 = make$13("delete", {
33968
34073
  slugOrId: text$6({ name: "slugOrId" }),
33969
34074
  force: boolean("force").pipe(withDescription$3("skip confirmation"))
33970
34075
  }, ({ slugOrId, force }) => gen(function* () {
@@ -34017,7 +34122,7 @@ const metaFromEnvelope = (meta) => {
34017
34122
  if (m.tags !== void 0) overlay.tags = m.tags;
34018
34123
  return overlay;
34019
34124
  };
34020
- const edit$1 = make$13("edit", {
34125
+ const edit$2 = make$13("edit", {
34021
34126
  slugOrId: slugOrId$8,
34022
34127
  ...postWriteOptions
34023
34128
  }, ({ slugOrId, ...rest }) => gen(function* () {
@@ -34189,7 +34294,7 @@ const postListView = {
34189
34294
  modes: new Set(["readable", "llm"]),
34190
34295
  readable: (data) => renderPostListReadable(data)
34191
34296
  };
34192
- const get$3 = make$13("get", { slugOrId: text$6({ name: "slugOrId" }) }, ({ slugOrId }) => gen(function* () {
34297
+ const get$4 = make$13("get", { slugOrId: text$6({ name: "slugOrId" }) }, ({ slugOrId }) => gen(function* () {
34193
34298
  const api = yield* Api;
34194
34299
  const renderer = yield* Renderer;
34195
34300
  const path = yield* (yield* Resolver).resolvePostReadPath(slugOrId);
@@ -34198,24 +34303,24 @@ const get$3 = make$13("get", { slugOrId: text$6({ name: "slugOrId" }) }, ({ slug
34198
34303
  })).pipe(withDescription("get a post by slug or id"));
34199
34304
  //#endregion
34200
34305
  //#region src/cli/post/list.ts
34201
- const page$1 = integer("page").pipe(optional$3);
34202
- const size$1 = integer("size").pipe(optional$3);
34203
- const state = choice("state", ["publish", "draft"]).pipe(optional$3);
34204
- const sort = choice("sort", ["created", "modified"]).pipe(optional$3);
34205
- const unwrap$2 = (value) => getOrUndefined(value);
34206
- const list$3 = make$13("list", {
34207
- page: page$1,
34208
- size: size$1,
34306
+ const page$2 = integer("page").pipe(optional$4);
34307
+ const size$2 = integer("size").pipe(optional$4);
34308
+ const state = choice("state", ["publish", "draft"]).pipe(optional$4);
34309
+ const sort = choice("sort", ["created", "modified"]).pipe(optional$4);
34310
+ const unwrap$4 = (value) => getOrUndefined(value);
34311
+ const list$4 = make$13("list", {
34312
+ page: page$2,
34313
+ size: size$2,
34209
34314
  state,
34210
34315
  sort
34211
34316
  }, ({ page, size, state, sort }) => gen(function* () {
34212
34317
  const api = yield* Api;
34213
34318
  const renderer = yield* Renderer;
34214
34319
  const res = yield* api.request("/posts", { query: {
34215
- page: unwrap$2(page),
34216
- size: unwrap$2(size),
34217
- state: unwrap$2(state),
34218
- sortBy: unwrap$2(sort)
34320
+ page: unwrap$4(page),
34321
+ size: unwrap$4(size),
34322
+ state: unwrap$4(state),
34323
+ sortBy: unwrap$4(sort)
34219
34324
  } });
34220
34325
  yield* renderer.emit(postListView, res);
34221
34326
  })).pipe(withDescription("list posts"));
@@ -34277,7 +34382,7 @@ const unpublish = make$13("unpublish", { slugOrId: text$6({ name: "slugOrId" })
34277
34382
  });
34278
34383
  yield* renderer.emitSuccess(res);
34279
34384
  })).pipe(withDescription("unpublish a post"));
34280
- const update$2 = make$13("update", {
34385
+ const update$3 = make$13("update", {
34281
34386
  slugOrId: text$6({ name: "slugOrId" }),
34282
34387
  ...postWriteOptions
34283
34388
  }, ({ slugOrId, ...rest }) => gen(function* () {
@@ -34302,7 +34407,7 @@ const update$2 = make$13("update", {
34302
34407
  })).pipe(withDescription("partially update a post"));
34303
34408
  //#endregion
34304
34409
  //#region src/cli/post/index.ts
34305
- const help$4 = registerCommandHelp({
34410
+ const help$5 = registerCommandHelp({
34306
34411
  name: "post",
34307
34412
  description: "manage posts",
34308
34413
  verbs: [
@@ -34379,13 +34484,13 @@ const help$4 = registerCommandHelp({
34379
34484
  }
34380
34485
  ]
34381
34486
  });
34382
- const postCmd = make$13("post").pipe(withDescription(help$4.description), withSubcommands([
34383
- list$3,
34384
- get$3,
34385
- create$2,
34386
- edit$1,
34387
- update$2,
34388
- del$2,
34487
+ const postCmd = make$13("post").pipe(withDescription(help$5.description), withSubcommands([
34488
+ list$4,
34489
+ get$4,
34490
+ create$3,
34491
+ edit$2,
34492
+ update$3,
34493
+ del$3,
34389
34494
  publish,
34390
34495
  unpublish,
34391
34496
  stage,
@@ -34420,16 +34525,16 @@ registerCommandHelp({
34420
34525
  }
34421
34526
  ]
34422
34527
  });
34423
- const fileArg = text$6({ name: "file" }).pipe(optional$5);
34424
- const themeOpt = choice("theme", ["light", "dark"]).pipe(optional$3);
34528
+ const fileArg = text$6({ name: "file" }).pipe(optional$6);
34529
+ const themeOpt = choice("theme", ["light", "dark"]).pipe(optional$4);
34425
34530
  const variantOpt = choice("variant", [
34426
34531
  "article",
34427
34532
  "note",
34428
34533
  "comment"
34429
- ]).pipe(optional$3);
34430
- const saveOpt = text$4("save").pipe(optional$3);
34431
- const printOpt = boolean("print").pipe(optional$3);
34432
- const openOpt = boolean("open").pipe(optional$3);
34534
+ ]).pipe(optional$4);
34535
+ const saveOpt = text$4("save").pipe(optional$4);
34536
+ const printOpt = boolean("print").pipe(optional$4);
34537
+ const openOpt = boolean("open").pipe(optional$4);
34433
34538
  const requireFrom$3 = createRequire(import.meta.url);
34434
34539
  const resolveLitexmlBin = () => {
34435
34540
  try {
@@ -34602,7 +34707,7 @@ const ls = make$13("ls", {}, () => gen(function* () {
34602
34707
  }));
34603
34708
  const mark = make$13("mark", {
34604
34709
  name: text$6({ name: "name" }),
34605
- production: boolean("production", { negationNames: ["no-production"] }).pipe(optional$3)
34710
+ production: boolean("production", { negationNames: ["no-production"] }).pipe(optional$4)
34606
34711
  }, ({ name, production }) => gen(function* () {
34607
34712
  const profile = yield* Profile;
34608
34713
  const renderer = yield* Renderer;
@@ -34615,7 +34720,7 @@ const mark = make$13("mark", {
34615
34720
  }));
34616
34721
  const rm = make$13("rm", {
34617
34722
  name: text$6({ name: "name" }),
34618
- force: boolean("force").pipe(optional$3)
34723
+ force: boolean("force").pipe(optional$4)
34619
34724
  }, ({ name, force }) => gen(function* () {
34620
34725
  const profile = yield* Profile;
34621
34726
  const config = yield* Config;
@@ -34644,7 +34749,7 @@ const rm = make$13("rm", {
34644
34749
  yield* renderer.emitInfo("mxs: cleared active profile pointer");
34645
34750
  }
34646
34751
  }));
34647
- const show = make$13("show", { name: text$6({ name: "name" }).pipe(optional$5) }, ({ name }) => gen(function* () {
34752
+ const show = make$13("show", { name: text$6({ name: "name" }).pipe(optional$6) }, ({ name }) => gen(function* () {
34648
34753
  const profile = yield* Profile;
34649
34754
  const config = yield* Config;
34650
34755
  const renderer = yield* Renderer;
@@ -34681,7 +34786,7 @@ const use = make$13("use", { name: text$6({ name: "name" }) }, ({ name }) => gen
34681
34786
  }));
34682
34787
  //#endregion
34683
34788
  //#region src/cli/profile/index.ts
34684
- const help$3 = registerCommandHelp({
34789
+ const help$4 = registerCommandHelp({
34685
34790
  name: "profile",
34686
34791
  description: "manage mxs profiles",
34687
34792
  verbs: [
@@ -34711,7 +34816,7 @@ const help$3 = registerCommandHelp({
34711
34816
  }
34712
34817
  ]
34713
34818
  });
34714
- const profileCmd = make$13("profile").pipe(withDescription(help$3.description), withSubcommands([
34819
+ const profileCmd = make$13("profile").pipe(withDescription(help$4.description), withSubcommands([
34715
34820
  ls,
34716
34821
  show,
34717
34822
  use,
@@ -34720,17 +34825,17 @@ const profileCmd = make$13("profile").pipe(withDescription(help$3.description),
34720
34825
  ]));
34721
34826
  //#endregion
34722
34827
  //#region src/cli/project/_flags.ts
34723
- const optional = (self) => optional$3(self);
34724
- const unwrap$1 = (value) => getOrUndefined(value);
34725
- const name$2 = optional(text$4("name"));
34726
- const description$2 = optional(text$4("description"));
34727
- const previewUrl = optional(text$4("preview-url"));
34728
- const docUrl = optional(text$4("doc-url"));
34729
- const projectUrl = optional(text$4("project-url"));
34730
- const avatar = optional(text$4("avatar"));
34731
- const images = optional(text$4("images"));
34732
- const text = optional(text$4("text"));
34733
- const file = optional(text$4("file"));
34828
+ const optional$1 = (self) => optional$4(self);
34829
+ const unwrap$3 = (value) => getOrUndefined(value);
34830
+ const name$4 = optional$1(text$4("name"));
34831
+ const description$2 = optional$1(text$4("description"));
34832
+ const previewUrl = optional$1(text$4("preview-url"));
34833
+ const docUrl = optional$1(text$4("doc-url"));
34834
+ const projectUrl = optional$1(text$4("project-url"));
34835
+ const avatar = optional$1(text$4("avatar"));
34836
+ const images = optional$1(text$4("images"));
34837
+ const text = optional$1(text$4("text"));
34838
+ const file$1 = optional$1(text$4("file"));
34734
34839
  const openFlag$1 = boolean("open").pipe(withDescription$3("After success, open the admin edit page in the default browser."));
34735
34840
  const silentFlag$1 = boolean("silent").pipe(withDescription$3("On success, emit a minimal `ok` instead of the full server response."));
34736
34841
  const parseCsv = (v) => {
@@ -34738,7 +34843,7 @@ const parseCsv = (v) => {
34738
34843
  return v.split(",").map((s) => s.trim()).filter(Boolean);
34739
34844
  };
34740
34845
  const projectWriteOptions = {
34741
- name: name$2,
34846
+ name: name$4,
34742
34847
  description: description$2,
34743
34848
  previewUrl,
34744
34849
  docUrl,
@@ -34746,20 +34851,20 @@ const projectWriteOptions = {
34746
34851
  avatar,
34747
34852
  images,
34748
34853
  text,
34749
- file,
34854
+ file: file$1,
34750
34855
  open: openFlag$1,
34751
34856
  silent: silentFlag$1
34752
34857
  };
34753
34858
  const toProjectFlagInputs = (opts) => ({
34754
- name: unwrap$1(opts.name),
34755
- description: unwrap$1(opts.description),
34756
- previewUrl: unwrap$1(opts.previewUrl),
34757
- docUrl: unwrap$1(opts.docUrl),
34758
- projectUrl: unwrap$1(opts.projectUrl),
34759
- avatar: unwrap$1(opts.avatar),
34760
- images: parseCsv(unwrap$1(opts.images)),
34761
- text: unwrap$1(opts.text),
34762
- file: unwrap$1(opts.file)
34859
+ name: unwrap$3(opts.name),
34860
+ description: unwrap$3(opts.description),
34861
+ previewUrl: unwrap$3(opts.previewUrl),
34862
+ docUrl: unwrap$3(opts.docUrl),
34863
+ projectUrl: unwrap$3(opts.projectUrl),
34864
+ avatar: unwrap$3(opts.avatar),
34865
+ images: parseCsv(unwrap$3(opts.images)),
34866
+ text: unwrap$3(opts.text),
34867
+ file: unwrap$3(opts.file)
34763
34868
  });
34764
34869
  const PROJECT_KEYS = [
34765
34870
  "name",
@@ -34808,6 +34913,7 @@ const extractId = (res) => {
34808
34913
  const r = res;
34809
34914
  if (typeof r.id === "string") return r.id;
34810
34915
  if (typeof r._id === "string") return r._id;
34916
+ if (r.data && typeof r.data === "object") return extractId(r.data);
34811
34917
  };
34812
34918
  const editableFieldsOf = (raw) => {
34813
34919
  const out = {};
@@ -34816,7 +34922,7 @@ const editableFieldsOf = (raw) => {
34816
34922
  };
34817
34923
  //#endregion
34818
34924
  //#region src/cli/project/create.ts
34819
- const create$1 = make$13("create", projectWriteOptions, (opts) => gen(function* () {
34925
+ const create$2 = make$13("create", projectWriteOptions, (opts) => gen(function* () {
34820
34926
  const payload = yield* buildProjectPayload(toProjectFlagInputs(opts));
34821
34927
  const api = yield* Api;
34822
34928
  const renderer = yield* Renderer;
@@ -34832,7 +34938,7 @@ const create$1 = make$13("create", projectWriteOptions, (opts) => gen(function*
34832
34938
  if (id) yield* openAdminEdit("projects", id);
34833
34939
  }
34834
34940
  })).pipe(withDescription("create a project"));
34835
- const del$1 = make$13("delete", {
34941
+ const del$2 = make$13("delete", {
34836
34942
  nameOrId: text$6({ name: "nameOrId" }),
34837
34943
  force: boolean("force").pipe(withDescription$3("skip the non-TTY guard"))
34838
34944
  }, ({ nameOrId, force }) => gen(function* () {
@@ -34850,7 +34956,7 @@ const del$1 = make$13("delete", {
34850
34956
  const nameOrId$3 = text$6({ name: "nameOrId" });
34851
34957
  const openFlag = boolean("open").pipe(withDescription$3("After success, open the admin edit page in the default browser."));
34852
34958
  const silentFlag = boolean("silent").pipe(withDescription$3("On success, emit a minimal `ok` instead of the full server response."));
34853
- const unwrapDoc = (raw) => {
34959
+ const unwrapDoc$1 = (raw) => {
34854
34960
  if (!raw || typeof raw !== "object") return {};
34855
34961
  const r = raw;
34856
34962
  if (r.data && typeof r.data === "object" && !Array.isArray(r.data)) return r.data;
@@ -34862,7 +34968,7 @@ const parseEnvelope = (raw) => {
34862
34968
  if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) throw new Error("expected a JSON object");
34863
34969
  return parsed;
34864
34970
  };
34865
- const edit = make$13("edit", {
34971
+ const edit$1 = make$13("edit", {
34866
34972
  nameOrId: nameOrId$3,
34867
34973
  open: openFlag,
34868
34974
  silent: silentFlag
@@ -34872,7 +34978,7 @@ const edit = make$13("edit", {
34872
34978
  const renderer = yield* Renderer;
34873
34979
  const resolver = yield* Resolver;
34874
34980
  const id = yield* resolver.resolveProjectId(nameOrId);
34875
- const initial = formatJson(editableFieldsOf(unwrapDoc(yield* api.request(`/projects/${id}`))));
34981
+ const initial = formatJson(editableFieldsOf(unwrapDoc$1(yield* api.request(`/projects/${id}`))));
34876
34982
  const next = yield* editor.openEditor({
34877
34983
  filename: `project-${id}.json`,
34878
34984
  initialContent: initial
@@ -34896,7 +35002,7 @@ const edit = make$13("edit", {
34896
35002
  yield* renderer.emitSuccess(silent ? { ok: true } : res);
34897
35003
  if (open) yield* openAdminEdit("projects", id);
34898
35004
  })).pipe(withDescription("edit a project via $EDITOR (JSON envelope)"));
34899
- const get$2 = make$13("get", { nameOrId: text$6({ name: "nameOrId" }) }, ({ nameOrId }) => gen(function* () {
35005
+ const get$3 = make$13("get", { nameOrId: text$6({ name: "nameOrId" }) }, ({ nameOrId }) => gen(function* () {
34900
35006
  const api = yield* Api;
34901
35007
  const renderer = yield* Renderer;
34902
35008
  const id = yield* (yield* Resolver).resolveProjectId(nameOrId);
@@ -34991,22 +35097,22 @@ const projectListView = {
34991
35097
  };
34992
35098
  //#endregion
34993
35099
  //#region src/cli/project/list.ts
34994
- const page = integer("page").pipe(optional$3);
34995
- const size = integer("size").pipe(optional$3);
34996
- const unwrap = (value) => getOrUndefined(value);
34997
- const list$2 = make$13("list", {
34998
- page,
34999
- size
35100
+ const page$1 = integer("page").pipe(optional$4);
35101
+ const size$1 = integer("size").pipe(optional$4);
35102
+ const unwrap$2 = (value) => getOrUndefined(value);
35103
+ const list$3 = make$13("list", {
35104
+ page: page$1,
35105
+ size: size$1
35000
35106
  }, ({ page, size }) => gen(function* () {
35001
35107
  const api = yield* Api;
35002
35108
  const renderer = yield* Renderer;
35003
35109
  const res = yield* api.request("/projects", { query: {
35004
- page: unwrap(page),
35005
- size: unwrap(size)
35110
+ page: unwrap$2(page),
35111
+ size: unwrap$2(size)
35006
35112
  } });
35007
35113
  yield* renderer.emit(projectListView, res);
35008
35114
  })).pipe(withDescription("list projects"));
35009
- const update$1 = make$13("update", {
35115
+ const update$2 = make$13("update", {
35010
35116
  nameOrId: text$6({ name: "nameOrId" }),
35011
35117
  ...projectWriteOptions
35012
35118
  }, ({ nameOrId, ...rest }) => gen(function* () {
@@ -35032,7 +35138,7 @@ const viewCmd = make$13("view", { nameOrId: text$6({ name: "nameOrId" }) }, ({ n
35032
35138
  })).pipe(withDescription("show a project (rendered)"));
35033
35139
  //#endregion
35034
35140
  //#region src/cli/project/index.ts
35035
- const help$2 = registerCommandHelp({
35141
+ const help$3 = registerCommandHelp({
35036
35142
  name: "project",
35037
35143
  description: "manage portfolio projects",
35038
35144
  verbs: [
@@ -35082,14 +35188,14 @@ const help$2 = registerCommandHelp({
35082
35188
  }
35083
35189
  ]
35084
35190
  });
35085
- const projectCmd = make$13("project").pipe(withDescription(help$2.description), withSubcommands([
35086
- list$2,
35087
- get$2,
35191
+ const projectCmd = make$13("project").pipe(withDescription(help$3.description), withSubcommands([
35192
+ list$3,
35193
+ get$3,
35088
35194
  viewCmd,
35089
- create$1,
35090
- edit,
35091
- update$1,
35092
- del$1
35195
+ create$2,
35196
+ edit$1,
35197
+ update$2,
35198
+ del$2
35093
35199
  ]));
35094
35200
  //#endregion
35095
35201
  //#region ../../node_modules/.pnpm/minisearch@7.2.0/node_modules/minisearch/dist/es/index.js
@@ -37136,14 +37242,14 @@ const make$2 = gen(function* () {
37136
37242
  const cache = yield* make$23(null);
37137
37243
  const indexCache = yield* make$23(null);
37138
37244
  const load = gen(function* () {
37139
- const cached = yield* get$11(cache);
37245
+ const cached = yield* get$12(cache);
37140
37246
  if (cached) return cached;
37141
37247
  const chapters = yield* buildRegistry(fs, path, cliDir, haklexDir);
37142
37248
  yield* set$3(cache, chapters);
37143
37249
  return chapters;
37144
37250
  });
37145
37251
  const loadIndex = gen(function* () {
37146
- const cached = yield* get$11(indexCache);
37252
+ const cached = yield* get$12(indexCache);
37147
37253
  if (cached) return cached;
37148
37254
  const mini = buildIndex(yield* load);
37149
37255
  yield* set$3(indexCache, mini);
@@ -37295,7 +37401,7 @@ const all = make$13("all", {}, () => gen(function* () {
37295
37401
  const chapters = yield* skill.all;
37296
37402
  yield* renderer.emit(skillAllView, chapters);
37297
37403
  }));
37298
- const get$1 = make$13("get", { slug: text$6({ name: "slug" }) }, ({ slug }) => gen(function* () {
37404
+ const get$2 = make$13("get", { slug: text$6({ name: "slug" }) }, ({ slug }) => gen(function* () {
37299
37405
  const skill = yield* Skill;
37300
37406
  const renderer = yield* Renderer;
37301
37407
  const chapter = yield* skill.get(slug);
@@ -37303,7 +37409,7 @@ const get$1 = make$13("get", { slug: text$6({ name: "slug" }) }, ({ slug }) => g
37303
37409
  }));
37304
37410
  //#endregion
37305
37411
  //#region src/cli/skill/list.ts
37306
- const list$1 = make$13("list", {}, () => gen(function* () {
37412
+ const list$2 = make$13("list", {}, () => gen(function* () {
37307
37413
  const skill = yield* Skill;
37308
37414
  const renderer = yield* Renderer;
37309
37415
  const chapters = yield* skill.list;
@@ -37317,7 +37423,7 @@ const search = make$13("search", { keyword: text$6({ name: "keyword" }) }, ({ ke
37317
37423
  }));
37318
37424
  //#endregion
37319
37425
  //#region src/cli/skill/index.ts
37320
- const help$1 = registerCommandHelp({
37426
+ const help$2 = registerCommandHelp({
37321
37427
  name: "skill",
37322
37428
  description: "read bundled AI skill chapters (commands, authoring, liteXML)",
37323
37429
  verbs: [
@@ -37346,17 +37452,316 @@ const skillCmd = make$13("skill", {}, () => gen(function* () {
37346
37452
  const renderer = yield* Renderer;
37347
37453
  const chapters = yield* skill.list;
37348
37454
  yield* renderer.emit(skillListView, chapters);
37349
- })).pipe(withDescription(help$1.description), withSubcommands([
37350
- list$1,
37351
- get$1,
37455
+ })).pipe(withDescription(help$2.description), withSubcommands([
37456
+ list$2,
37457
+ get$2,
37352
37458
  all,
37353
37459
  search
37354
37460
  ]));
37461
+ //#endregion
37462
+ //#region src/cli/snippet/_flags.ts
37463
+ const optional = (self) => optional$4(self);
37464
+ const unwrap$1 = (value) => getOrUndefined(value);
37465
+ const SNIPPET_TYPES = [
37466
+ "json",
37467
+ "json5",
37468
+ "function",
37469
+ "text",
37470
+ "yaml"
37471
+ ];
37472
+ const SNIPPET_KEYS = [
37473
+ "name",
37474
+ "reference",
37475
+ "type",
37476
+ "raw",
37477
+ "private",
37478
+ "comment",
37479
+ "metatype",
37480
+ "schema",
37481
+ "method",
37482
+ "customPath",
37483
+ "secret",
37484
+ "enable"
37485
+ ];
37486
+ const snippetWriteOptions = {
37487
+ reference: optional(text$4("reference")),
37488
+ type: optional(choice("type", SNIPPET_TYPES)),
37489
+ file: optional(text$4("file")),
37490
+ raw: optional(text$4("raw")),
37491
+ comment: optional(text$4("comment")),
37492
+ method: optional(choice("method", [
37493
+ "GET",
37494
+ "POST",
37495
+ "PUT",
37496
+ "DELETE",
37497
+ "PATCH",
37498
+ "ALL"
37499
+ ])),
37500
+ metatype: optional(text$4("metatype")),
37501
+ schema: optional(text$4("schema")),
37502
+ customPath: optional(text$4("custom-path")),
37503
+ secret: optional(text$4("secret")),
37504
+ private: boolean("private"),
37505
+ noPrivate: boolean("no-private"),
37506
+ enable: boolean("enable"),
37507
+ noEnable: boolean("no-enable")
37508
+ };
37509
+ const toSnippetFlagInputs = (opts) => ({
37510
+ reference: unwrap$1(opts.reference),
37511
+ type: unwrap$1(opts.type),
37512
+ file: unwrap$1(opts.file),
37513
+ raw: unwrap$1(opts.raw),
37514
+ comment: unwrap$1(opts.comment),
37515
+ method: unwrap$1(opts.method),
37516
+ metatype: unwrap$1(opts.metatype),
37517
+ schema: unwrap$1(opts.schema),
37518
+ customPath: unwrap$1(opts.customPath),
37519
+ secret: unwrap$1(opts.secret),
37520
+ private: opts.private ? true : opts.noPrivate ? false : void 0,
37521
+ enable: opts.enable ? true : opts.noEnable ? false : void 0
37522
+ });
37523
+ const snippetFieldsOf = (flags) => {
37524
+ const out = {};
37525
+ if (flags.reference !== void 0) out.reference = flags.reference;
37526
+ if (flags.type !== void 0) out.type = flags.type;
37527
+ if (flags.comment !== void 0) out.comment = flags.comment;
37528
+ if (flags.method !== void 0) out.method = flags.method;
37529
+ if (flags.metatype !== void 0) out.metatype = flags.metatype;
37530
+ if (flags.schema !== void 0) out.schema = flags.schema;
37531
+ if (flags.customPath !== void 0) out.customPath = flags.customPath;
37532
+ if (flags.secret !== void 0) out.secret = flags.secret;
37533
+ if (flags.private !== void 0) out.private = flags.private;
37534
+ if (flags.enable !== void 0) out.enable = flags.enable;
37535
+ return out;
37536
+ };
37537
+ const resolveRawSource = (flags, opts) => gen(function* () {
37538
+ if (flags.file !== void 0) return yield* (yield* Editor).readFileOrStdin(flags.file);
37539
+ if (flags.raw !== void 0) return flags.raw;
37540
+ if (opts.implicitStdin && !process.stdin.isTTY) {
37541
+ const piped = yield* (yield* Editor).readFileOrStdin(void 0);
37542
+ return piped.trim() ? piped : void 0;
37543
+ }
37544
+ });
37545
+ const unwrapDoc = (res) => {
37546
+ if (!res || typeof res !== "object") return {};
37547
+ const r = res;
37548
+ if (r.data && typeof r.data === "object" && !Array.isArray(r.data)) return r.data;
37549
+ return r;
37550
+ };
37551
+ const pickSnippetFields = (doc) => {
37552
+ const out = {};
37553
+ for (const key of SNIPPET_KEYS) if (key in doc && doc[key] !== void 0) out[key] = doc[key];
37554
+ return out;
37555
+ };
37556
+ const EXT_BY_TYPE = {
37557
+ json: "json",
37558
+ json5: "json5",
37559
+ function: "js",
37560
+ yaml: "yaml",
37561
+ text: "txt"
37562
+ };
37563
+ const extForType = (type) => typeof type === "string" && EXT_BY_TYPE[type] || "txt";
37564
+ const create$1 = make$13("create", {
37565
+ name: text$4("name"),
37566
+ ...snippetWriteOptions
37567
+ }, ({ name, ...rest }) => gen(function* () {
37568
+ const flags = toSnippetFlagInputs(rest);
37569
+ const api = yield* Api;
37570
+ const renderer = yield* Renderer;
37571
+ let raw = yield* resolveRawSource(flags, { implicitStdin: true });
37572
+ if (raw === void 0) {
37573
+ if (!process.stdin.isTTY) return yield* fail$2(new ValidationFailed({ message: "no snippet content provided; pass --file, --raw, or pipe stdin" }));
37574
+ raw = yield* (yield* Editor).openEditor({
37575
+ filename: `snippet-${name}.${extForType(flags.type ?? "json")}`,
37576
+ initialContent: ""
37577
+ });
37578
+ }
37579
+ if (!raw.trim()) return yield* fail$2(new ValidationFailed({ message: "snippet content is empty" }));
37580
+ const body = {
37581
+ ...snippetFieldsOf(flags),
37582
+ name,
37583
+ raw
37584
+ };
37585
+ const res = yield* api.request("/snippets", {
37586
+ method: "POST",
37587
+ body
37588
+ });
37589
+ yield* renderer.emitSuccess(res);
37590
+ })).pipe(withDescription("create a snippet"));
37591
+ //#endregion
37592
+ //#region src/cli/snippet/_resolve.ts
37593
+ const unwrapList = (res) => {
37594
+ if (Array.isArray(res)) return res;
37595
+ if (res && typeof res === "object") {
37596
+ const data = res.data;
37597
+ if (Array.isArray(data)) return data;
37598
+ }
37599
+ return [];
37600
+ };
37601
+ const resolveSnippetId = (api, ref) => gen(function* () {
37602
+ if (isSnowflakeId(ref)) return ref;
37603
+ const slash = ref.indexOf("/");
37604
+ const reference = slash === -1 ? "root" : ref.slice(0, slash);
37605
+ const name = slash === -1 ? ref : ref.slice(slash + 1);
37606
+ const match = unwrapList(yield* api.request(`/snippets/group/${encodeURIComponent(reference)}`).pipe(catchAll(() => succeed$1(null)))).find((s) => s.name === name);
37607
+ if (!match?.id) return yield* fail$2(new ResourceNotFound({
37608
+ kind: "snippet",
37609
+ ref,
37610
+ message: `snippet not found: ${ref}`
37611
+ }));
37612
+ return match.id;
37613
+ });
37614
+ const del$1 = make$13("delete", {
37615
+ target: text$6({ name: "idOrRefName" }),
37616
+ force: boolean("force").pipe(withDescription$3("skip the non-TTY guard"))
37617
+ }, ({ target, force }) => gen(function* () {
37618
+ if (!force && !process.stdin.isTTY) return yield* fail$2(new ValidationFailed({ message: "refusing to delete without --force in non-TTY context" }));
37619
+ const api = yield* Api;
37620
+ const renderer = yield* Renderer;
37621
+ const id = yield* resolveSnippetId(api, target);
37622
+ yield* api.request(`/snippets/${id}`, { method: "DELETE" });
37623
+ yield* renderer.emitSuccess({ deleted: id });
37624
+ })).pipe(withDescription("delete a snippet"));
37625
+ const edit = make$13("edit", { target: text$6({ name: "idOrRefName" }) }, ({ target }) => gen(function* () {
37626
+ const api = yield* Api;
37627
+ const editor = yield* Editor;
37628
+ const renderer = yield* Renderer;
37629
+ const id = yield* resolveSnippetId(api, target);
37630
+ const current = unwrapDoc(yield* api.request(`/snippets/${id}`));
37631
+ const initial = typeof current.raw === "string" ? current.raw : "";
37632
+ const next = yield* editor.openEditor({
37633
+ filename: `snippet-${id}.${extForType(current.type)}`,
37634
+ initialContent: initial
37635
+ });
37636
+ if (next.trim() === initial.trim()) {
37637
+ yield* renderer.emitInfo("no changes");
37638
+ return;
37639
+ }
37640
+ const body = {
37641
+ ...pickSnippetFields(current),
37642
+ raw: next
37643
+ };
37644
+ const res = yield* api.request(`/snippets/${id}`, {
37645
+ method: "PUT",
37646
+ body
37647
+ });
37648
+ yield* renderer.emitSuccess(res);
37649
+ })).pipe(withDescription("edit snippet content via $EDITOR"));
37650
+ const get$1 = make$13("get", { target: text$6({ name: "idOrRefName" }) }, ({ target }) => gen(function* () {
37651
+ const api = yield* Api;
37652
+ const renderer = yield* Renderer;
37653
+ const id = yield* resolveSnippetId(api, target);
37654
+ const res = yield* api.request(`/snippets/${id}`);
37655
+ yield* renderer.emitSuccess(res);
37656
+ })).pipe(withDescription("get a snippet by id or reference/name"));
37657
+ //#endregion
37658
+ //#region src/cli/snippet/list.ts
37659
+ const page = integer("page").pipe(optional$4);
37660
+ const size = integer("size").pipe(optional$4);
37661
+ const grouped = boolean("grouped");
37662
+ const unwrap = (value) => getOrUndefined(value);
37663
+ const list$1 = make$13("list", {
37664
+ page,
37665
+ size,
37666
+ grouped
37667
+ }, ({ page, size, grouped }) => gen(function* () {
37668
+ const api = yield* Api;
37669
+ const renderer = yield* Renderer;
37670
+ const res = yield* api.request(grouped ? "/snippets/group" : "/snippets", { query: {
37671
+ page: unwrap(page),
37672
+ size: unwrap(size)
37673
+ } });
37674
+ yield* renderer.emitSuccess(res);
37675
+ })).pipe(withDescription("list snippets"));
37676
+ const update$1 = make$13("update", {
37677
+ target: text$6({ name: "idOrRefName" }),
37678
+ name: text$4("name").pipe(optional$4),
37679
+ ...snippetWriteOptions
37680
+ }, ({ target, name, ...rest }) => gen(function* () {
37681
+ const flags = toSnippetFlagInputs(rest);
37682
+ const api = yield* Api;
37683
+ const renderer = yield* Renderer;
37684
+ const id = yield* resolveSnippetId(api, target);
37685
+ const current = pickSnippetFields(unwrapDoc(yield* api.request(`/snippets/${id}`)));
37686
+ const raw = yield* resolveRawSource(flags, { implicitStdin: false });
37687
+ const body = {
37688
+ ...current,
37689
+ ...snippetFieldsOf(flags)
37690
+ };
37691
+ const n = getOrUndefined(name);
37692
+ if (n !== void 0) body.name = n;
37693
+ if (raw !== void 0) body.raw = raw;
37694
+ const res = yield* api.request(`/snippets/${id}`, {
37695
+ method: "PUT",
37696
+ body
37697
+ });
37698
+ yield* renderer.emitSuccess(res);
37699
+ })).pipe(withDescription("update a snippet"));
37700
+ //#endregion
37701
+ //#region src/cli/snippet/index.ts
37702
+ const help$1 = registerCommandHelp({
37703
+ name: "snippet",
37704
+ description: "manage snippets",
37705
+ verbs: [
37706
+ {
37707
+ name: "list",
37708
+ args: [
37709
+ "[--page <n>]",
37710
+ "[--size <n>]",
37711
+ "[--grouped]"
37712
+ ],
37713
+ description: "list snippets"
37714
+ },
37715
+ {
37716
+ name: "get",
37717
+ args: ["<id|ref/name>"],
37718
+ description: "show a single snippet (full, includes raw)"
37719
+ },
37720
+ {
37721
+ name: "create",
37722
+ args: [
37723
+ "--name <n>",
37724
+ "[--reference <r>]",
37725
+ "[--type <t>]",
37726
+ "[--file <path|-> | --raw <text> | stdin]",
37727
+ "..."
37728
+ ],
37729
+ description: "create a snippet"
37730
+ },
37731
+ {
37732
+ name: "update",
37733
+ args: [
37734
+ "<id|ref/name>",
37735
+ "[--file <path|-> | --raw <text>]",
37736
+ "..."
37737
+ ],
37738
+ description: "update a snippet"
37739
+ },
37740
+ {
37741
+ name: "edit",
37742
+ args: ["<id|ref/name>"],
37743
+ description: "edit snippet content via $EDITOR"
37744
+ },
37745
+ {
37746
+ name: "delete",
37747
+ args: ["<id|ref/name>", "[--force]"],
37748
+ description: "delete a snippet"
37749
+ }
37750
+ ]
37751
+ });
37752
+ const snippetCmd = make$13("snippet").pipe(withDescription(help$1.description), withSubcommands([
37753
+ list$1,
37754
+ get$1,
37755
+ create$1,
37756
+ update$1,
37757
+ edit,
37758
+ del$1
37759
+ ]));
37355
37760
  const create = make$13("create", {
37356
37761
  name: text$4("name"),
37357
37762
  slug: text$4("slug"),
37358
- description: text$4("description").pipe(optional$3),
37359
- icon: text$4("icon").pipe(optional$3)
37763
+ description: text$4("description").pipe(optional$4),
37764
+ icon: text$4("icon").pipe(optional$4)
37360
37765
  }, ({ name, slug, description, icon }) => gen(function* () {
37361
37766
  const body = {
37362
37767
  name,
@@ -37418,10 +37823,10 @@ const list = make$13("list", {}, () => gen(function* () {
37418
37823
  //#endregion
37419
37824
  //#region src/cli/topic/update.ts
37420
37825
  const slugOrId = text$6({ name: "slugOrId" });
37421
- const name = text$4("name").pipe(optional$3);
37422
- const slug = text$4("slug").pipe(optional$3);
37423
- const description = text$4("description").pipe(optional$3);
37424
- const icon = text$4("icon").pipe(optional$3);
37826
+ const name = text$4("name").pipe(optional$4);
37827
+ const slug = text$4("slug").pipe(optional$4);
37828
+ const description = text$4("description").pipe(optional$4);
37829
+ const icon = text$4("icon").pipe(optional$4);
37425
37830
  const resolveTopicId = (api, ref) => gen(function* () {
37426
37831
  if (isSnowflakeId(ref)) return ref;
37427
37832
  const res = yield* api.request(`/topics/slug/${encodeURIComponent(ref)}`).pipe(catchAll(() => succeed$1(null)));
@@ -37507,7 +37912,7 @@ const topicCmd = make$13("topic").pipe(withDescription(help.description), withSu
37507
37912
  del
37508
37913
  ]));
37509
37914
  //#endregion
37510
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/internal/constants.js
37915
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/internal/constants.js
37511
37916
  var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37512
37917
  const SEMVER_SPEC_VERSION = "2.0.0";
37513
37918
  const MAX_LENGTH = 256;
@@ -37532,12 +37937,12 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37532
37937
  };
37533
37938
  }));
37534
37939
  //#endregion
37535
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/internal/debug.js
37940
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/internal/debug.js
37536
37941
  var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37537
37942
  module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
37538
37943
  }));
37539
37944
  //#endregion
37540
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/internal/re.js
37945
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/internal/re.js
37541
37946
  var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37542
37947
  const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
37543
37948
  const debug = require_debug();
@@ -37616,7 +38021,7 @@ var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37616
38021
  createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
37617
38022
  }));
37618
38023
  //#endregion
37619
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/internal/parse-options.js
38024
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/internal/parse-options.js
37620
38025
  var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37621
38026
  const looseOption = Object.freeze({ loose: true });
37622
38027
  const emptyOpts = Object.freeze({});
@@ -37628,7 +38033,7 @@ var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) =>
37628
38033
  module.exports = parseOptions;
37629
38034
  }));
37630
38035
  //#endregion
37631
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/internal/identifiers.js
38036
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/internal/identifiers.js
37632
38037
  var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37633
38038
  const numeric = /^[0-9]+$/;
37634
38039
  const compareIdentifiers = (a, b) => {
@@ -37648,7 +38053,7 @@ var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37648
38053
  };
37649
38054
  }));
37650
38055
  //#endregion
37651
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/classes/semver.js
38056
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/classes/semver.js
37652
38057
  var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37653
38058
  const debug = require_debug();
37654
38059
  const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
@@ -37833,7 +38238,7 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37833
38238
  };
37834
38239
  }));
37835
38240
  //#endregion
37836
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/parse.js
38241
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/parse.js
37837
38242
  var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37838
38243
  const SemVer = require_semver$1();
37839
38244
  const parse = (version, options, throwErrors = false) => {
@@ -37848,7 +38253,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37848
38253
  module.exports = parse;
37849
38254
  }));
37850
38255
  //#endregion
37851
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/valid.js
38256
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/valid.js
37852
38257
  var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37853
38258
  const parse = require_parse();
37854
38259
  const valid = (version, options) => {
@@ -37858,7 +38263,7 @@ var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37858
38263
  module.exports = valid;
37859
38264
  }));
37860
38265
  //#endregion
37861
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/clean.js
38266
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/clean.js
37862
38267
  var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37863
38268
  const parse = require_parse();
37864
38269
  const clean = (version, options) => {
@@ -37868,7 +38273,7 @@ var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37868
38273
  module.exports = clean;
37869
38274
  }));
37870
38275
  //#endregion
37871
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/inc.js
38276
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/inc.js
37872
38277
  var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37873
38278
  const SemVer = require_semver$1();
37874
38279
  const inc = (version, release, options, identifier, identifierBase) => {
@@ -37886,7 +38291,7 @@ var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37886
38291
  module.exports = inc;
37887
38292
  }));
37888
38293
  //#endregion
37889
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/diff.js
38294
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/diff.js
37890
38295
  var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37891
38296
  const parse = require_parse();
37892
38297
  const diff = (version1, version2) => {
@@ -37914,28 +38319,28 @@ var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37914
38319
  module.exports = diff;
37915
38320
  }));
37916
38321
  //#endregion
37917
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/major.js
38322
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/major.js
37918
38323
  var require_major = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37919
38324
  const SemVer = require_semver$1();
37920
38325
  const major = (a, loose) => new SemVer(a, loose).major;
37921
38326
  module.exports = major;
37922
38327
  }));
37923
38328
  //#endregion
37924
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/minor.js
38329
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/minor.js
37925
38330
  var require_minor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37926
38331
  const SemVer = require_semver$1();
37927
38332
  const minor = (a, loose) => new SemVer(a, loose).minor;
37928
38333
  module.exports = minor;
37929
38334
  }));
37930
38335
  //#endregion
37931
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/patch.js
38336
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/patch.js
37932
38337
  var require_patch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37933
38338
  const SemVer = require_semver$1();
37934
38339
  const patch = (a, loose) => new SemVer(a, loose).patch;
37935
38340
  module.exports = patch;
37936
38341
  }));
37937
38342
  //#endregion
37938
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/prerelease.js
38343
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/prerelease.js
37939
38344
  var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37940
38345
  const parse = require_parse();
37941
38346
  const prerelease = (version, options) => {
@@ -37945,28 +38350,28 @@ var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37945
38350
  module.exports = prerelease;
37946
38351
  }));
37947
38352
  //#endregion
37948
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/compare.js
38353
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/compare.js
37949
38354
  var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37950
38355
  const SemVer = require_semver$1();
37951
38356
  const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
37952
38357
  module.exports = compare;
37953
38358
  }));
37954
38359
  //#endregion
37955
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/rcompare.js
38360
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/rcompare.js
37956
38361
  var require_rcompare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37957
38362
  const compare = require_compare();
37958
38363
  const rcompare = (a, b, loose) => compare(b, a, loose);
37959
38364
  module.exports = rcompare;
37960
38365
  }));
37961
38366
  //#endregion
37962
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/compare-loose.js
38367
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/compare-loose.js
37963
38368
  var require_compare_loose = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37964
38369
  const compare = require_compare();
37965
38370
  const compareLoose = (a, b) => compare(a, b, true);
37966
38371
  module.exports = compareLoose;
37967
38372
  }));
37968
38373
  //#endregion
37969
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/compare-build.js
38374
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/compare-build.js
37970
38375
  var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37971
38376
  const SemVer = require_semver$1();
37972
38377
  const compareBuild = (a, b, loose) => {
@@ -37977,63 +38382,63 @@ var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) =>
37977
38382
  module.exports = compareBuild;
37978
38383
  }));
37979
38384
  //#endregion
37980
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/sort.js
38385
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/sort.js
37981
38386
  var require_sort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37982
38387
  const compareBuild = require_compare_build();
37983
38388
  const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
37984
38389
  module.exports = sort;
37985
38390
  }));
37986
38391
  //#endregion
37987
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/rsort.js
38392
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/rsort.js
37988
38393
  var require_rsort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37989
38394
  const compareBuild = require_compare_build();
37990
38395
  const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
37991
38396
  module.exports = rsort;
37992
38397
  }));
37993
38398
  //#endregion
37994
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/gt.js
38399
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/gt.js
37995
38400
  var require_gt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37996
38401
  const compare = require_compare();
37997
38402
  const gt = (a, b, loose) => compare(a, b, loose) > 0;
37998
38403
  module.exports = gt;
37999
38404
  }));
38000
38405
  //#endregion
38001
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/lt.js
38406
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/lt.js
38002
38407
  var require_lt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38003
38408
  const compare = require_compare();
38004
38409
  const lt = (a, b, loose) => compare(a, b, loose) < 0;
38005
38410
  module.exports = lt;
38006
38411
  }));
38007
38412
  //#endregion
38008
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/eq.js
38413
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/eq.js
38009
38414
  var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38010
38415
  const compare = require_compare();
38011
38416
  const eq = (a, b, loose) => compare(a, b, loose) === 0;
38012
38417
  module.exports = eq;
38013
38418
  }));
38014
38419
  //#endregion
38015
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/neq.js
38420
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/neq.js
38016
38421
  var require_neq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38017
38422
  const compare = require_compare();
38018
38423
  const neq = (a, b, loose) => compare(a, b, loose) !== 0;
38019
38424
  module.exports = neq;
38020
38425
  }));
38021
38426
  //#endregion
38022
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/gte.js
38427
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/gte.js
38023
38428
  var require_gte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38024
38429
  const compare = require_compare();
38025
38430
  const gte = (a, b, loose) => compare(a, b, loose) >= 0;
38026
38431
  module.exports = gte;
38027
38432
  }));
38028
38433
  //#endregion
38029
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/lte.js
38434
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/lte.js
38030
38435
  var require_lte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38031
38436
  const compare = require_compare();
38032
38437
  const lte = (a, b, loose) => compare(a, b, loose) <= 0;
38033
38438
  module.exports = lte;
38034
38439
  }));
38035
38440
  //#endregion
38036
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/cmp.js
38441
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/cmp.js
38037
38442
  var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38038
38443
  const eq = require_eq();
38039
38444
  const neq = require_neq();
@@ -38065,7 +38470,7 @@ var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38065
38470
  module.exports = cmp;
38066
38471
  }));
38067
38472
  //#endregion
38068
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/coerce.js
38473
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/coerce.js
38069
38474
  var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38070
38475
  const SemVer = require_semver$1();
38071
38476
  const parse = require_parse();
@@ -38093,7 +38498,7 @@ var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38093
38498
  module.exports = coerce;
38094
38499
  }));
38095
38500
  //#endregion
38096
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/truncate.js
38501
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/truncate.js
38097
38502
  var require_truncate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38098
38503
  const parse = require_parse();
38099
38504
  const constants = require_constants();
@@ -38126,7 +38531,7 @@ var require_truncate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38126
38531
  module.exports = truncate;
38127
38532
  }));
38128
38533
  //#endregion
38129
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/internal/lrucache.js
38534
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/internal/lrucache.js
38130
38535
  var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38131
38536
  var LRUCache = class {
38132
38537
  constructor() {
@@ -38159,7 +38564,7 @@ var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38159
38564
  module.exports = LRUCache;
38160
38565
  }));
38161
38566
  //#endregion
38162
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/classes/range.js
38567
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/classes/range.js
38163
38568
  var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38164
38569
  const SPACE_CHARACTERS = /\s+/g;
38165
38570
  module.exports = class Range {
@@ -38303,6 +38708,7 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38303
38708
  return comp;
38304
38709
  };
38305
38710
  const isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
38711
+ const invalidXRangeOrder = (M, m, p) => isX(M) && !isX(m) || isX(m) && p && !isX(p);
38306
38712
  const replaceTildes = (comp, options) => {
38307
38713
  return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
38308
38714
  };
@@ -38343,8 +38749,8 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38343
38749
  else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
38344
38750
  } else {
38345
38751
  debug("no pr");
38346
- if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;
38347
- else ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;
38752
+ if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p} <${M}.${m}.${+p + 1}-0`;
38753
+ else ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
38348
38754
  else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
38349
38755
  }
38350
38756
  debug("caret return", ret);
@@ -38360,6 +38766,7 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38360
38766
  const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
38361
38767
  return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
38362
38768
  debug("xRange", comp, ret, gtlt, M, m, p, pr);
38769
+ if (invalidXRangeOrder(M, m, p)) return comp;
38363
38770
  const xM = isX(M);
38364
38771
  const xm = xM || isX(m);
38365
38772
  const xp = xm || isX(p);
@@ -38433,7 +38840,7 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38433
38840
  };
38434
38841
  }));
38435
38842
  //#endregion
38436
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/classes/comparator.js
38843
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/classes/comparator.js
38437
38844
  var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38438
38845
  const ANY = Symbol("SemVer ANY");
38439
38846
  module.exports = class Comparator {
@@ -38503,7 +38910,7 @@ var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38503
38910
  const Range = require_range();
38504
38911
  }));
38505
38912
  //#endregion
38506
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/satisfies.js
38913
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/satisfies.js
38507
38914
  var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38508
38915
  const Range = require_range();
38509
38916
  const satisfies = (version, range, options) => {
@@ -38517,14 +38924,14 @@ var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38517
38924
  module.exports = satisfies;
38518
38925
  }));
38519
38926
  //#endregion
38520
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/ranges/to-comparators.js
38927
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/ranges/to-comparators.js
38521
38928
  var require_to_comparators = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38522
38929
  const Range = require_range();
38523
38930
  const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
38524
38931
  module.exports = toComparators;
38525
38932
  }));
38526
38933
  //#endregion
38527
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/ranges/max-satisfying.js
38934
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/ranges/max-satisfying.js
38528
38935
  var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38529
38936
  const SemVer = require_semver$1();
38530
38937
  const Range = require_range();
@@ -38550,7 +38957,7 @@ var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) =>
38550
38957
  module.exports = maxSatisfying;
38551
38958
  }));
38552
38959
  //#endregion
38553
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/ranges/min-satisfying.js
38960
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/ranges/min-satisfying.js
38554
38961
  var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38555
38962
  const SemVer = require_semver$1();
38556
38963
  const Range = require_range();
@@ -38576,7 +38983,7 @@ var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) =>
38576
38983
  module.exports = minSatisfying;
38577
38984
  }));
38578
38985
  //#endregion
38579
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/ranges/min-version.js
38986
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/ranges/min-version.js
38580
38987
  var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38581
38988
  const SemVer = require_semver$1();
38582
38989
  const Range = require_range();
@@ -38616,7 +39023,7 @@ var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38616
39023
  module.exports = minVersion;
38617
39024
  }));
38618
39025
  //#endregion
38619
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/ranges/valid.js
39026
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/ranges/valid.js
38620
39027
  var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38621
39028
  const Range = require_range();
38622
39029
  const validRange = (range, options) => {
@@ -38629,7 +39036,7 @@ var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38629
39036
  module.exports = validRange;
38630
39037
  }));
38631
39038
  //#endregion
38632
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/ranges/outside.js
39039
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/ranges/outside.js
38633
39040
  var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38634
39041
  const SemVer = require_semver$1();
38635
39042
  const Comparator = require_comparator();
@@ -38682,21 +39089,21 @@ var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38682
39089
  module.exports = outside;
38683
39090
  }));
38684
39091
  //#endregion
38685
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/ranges/gtr.js
39092
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/ranges/gtr.js
38686
39093
  var require_gtr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38687
39094
  const outside = require_outside();
38688
39095
  const gtr = (version, range, options) => outside(version, range, ">", options);
38689
39096
  module.exports = gtr;
38690
39097
  }));
38691
39098
  //#endregion
38692
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/ranges/ltr.js
39099
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/ranges/ltr.js
38693
39100
  var require_ltr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38694
39101
  const outside = require_outside();
38695
39102
  const ltr = (version, range, options) => outside(version, range, "<", options);
38696
39103
  module.exports = ltr;
38697
39104
  }));
38698
39105
  //#endregion
38699
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/ranges/intersects.js
39106
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/ranges/intersects.js
38700
39107
  var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38701
39108
  const Range = require_range();
38702
39109
  const intersects = (r1, r2, options) => {
@@ -38707,7 +39114,7 @@ var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38707
39114
  module.exports = intersects;
38708
39115
  }));
38709
39116
  //#endregion
38710
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/ranges/simplify.js
39117
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/ranges/simplify.js
38711
39118
  var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38712
39119
  const satisfies = require_satisfies();
38713
39120
  const compare = require_compare();
@@ -38737,7 +39144,7 @@ var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38737
39144
  };
38738
39145
  }));
38739
39146
  //#endregion
38740
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/ranges/subset.js
39147
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/ranges/subset.js
38741
39148
  var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38742
39149
  const Range = require_range();
38743
39150
  const Comparator = require_comparator();
@@ -39446,16 +39853,16 @@ const resolveCliVersion$1 = () => {
39446
39853
  return "0.0.0-unknown";
39447
39854
  };
39448
39855
  const CLI_VERSION$1 = resolveCliVersion$1();
39449
- const check = boolean("check").pipe(optional$3);
39450
- const prerelease = boolean("prerelease").pipe(optional$3);
39856
+ const check = boolean("check").pipe(optional$4);
39857
+ const prerelease = boolean("prerelease").pipe(optional$4);
39451
39858
  const pm = choice("pm", [
39452
39859
  "npm",
39453
39860
  "pnpm",
39454
39861
  "yarn",
39455
39862
  "bun"
39456
- ]).pipe(optional$3);
39457
- const force = boolean("force").pipe(optional$3);
39458
- const yes = boolean("yes").pipe(optional$3);
39863
+ ]).pipe(optional$4);
39864
+ const force = boolean("force").pipe(optional$4);
39865
+ const yes = boolean("yes").pipe(optional$4);
39459
39866
  const optBool = (opt) => getOrUndefined(opt);
39460
39867
  const updateCmd = make$13("update", {
39461
39868
  check,
@@ -39543,6 +39950,7 @@ const GROUP_NAMES = [
39543
39950
  "category",
39544
39951
  "topic",
39545
39952
  "comment",
39953
+ "snippet",
39546
39954
  "config",
39547
39955
  "skill",
39548
39956
  "preview",
@@ -40029,6 +40437,7 @@ const rootCmd = make$13("mxs", {}, () => flatMap$1(Renderer, (r) => r.emitInfo("
40029
40437
  categoryCmd,
40030
40438
  topicCmd,
40031
40439
  commentCmd,
40440
+ snippetCmd,
40032
40441
  configCmd,
40033
40442
  fileCmd,
40034
40443
  skillCmd,