@mx-space/cli 0.11.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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.25.1/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.25.1/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.25.1_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.25.1_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,20 +33185,20 @@ 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
33203
  /** Extract the id from a server response — handles both `id` and `_id`. */
33104
33204
  const extractId$1 = (res) => {
@@ -33109,29 +33209,29 @@ const extractId$1 = (res) => {
33109
33209
  };
33110
33210
  //#endregion
33111
33211
  //#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"));
33212
+ const optional$2 = (self) => optional$4(self);
33213
+ const unwrap$7 = (value) => getOrUndefined(value);
33214
+ const title$1 = optional$2(text$4("title"));
33215
+ const slug$3 = optional$2(text$4("slug"));
33216
+ const topic = optional$2(text$4("topic"));
33217
+ const content$1 = optional$2(text$4("content"));
33218
+ const mood = optional$2(text$4("mood"));
33219
+ const weather = optional$2(text$4("weather"));
33220
+ const publicAt = optional$2(text$4("public-at"));
33221
+ const password = optional$2(text$4("password"));
33222
+ const coords = optional$2(text$4("coords"));
33223
+ const location$1 = optional$2(text$4("location"));
33224
+ const images$1 = optional$2(text$4("images"));
33225
+ const meta$1 = optional$2(text$4("meta"));
33226
+ const file$3 = optional$2(text$4("file"));
33227
+ const bookmark = optional$2(text$4("bookmark"));
33128
33228
  const noteWriteOptions = {
33129
33229
  title: title$1,
33130
33230
  slug: slug$3,
33131
33231
  topic,
33132
33232
  content: content$1,
33133
- format: choice("format", ["lexical", "markdown"]).pipe(optional$3),
33134
- state: choice("state", ["publish", "draft"]).pipe(optional$3),
33233
+ format: choice("format", ["lexical", "markdown"]).pipe(optional$4),
33234
+ state: choice("state", ["publish", "draft"]).pipe(optional$4),
33135
33235
  mood,
33136
33236
  weather,
33137
33237
  publicAt,
@@ -33141,28 +33241,28 @@ const noteWriteOptions = {
33141
33241
  location: location$1,
33142
33242
  images: images$1,
33143
33243
  meta: meta$1,
33144
- file: file$2,
33244
+ file: file$3,
33145
33245
  open: boolean("open").pipe(withDescription$3("After success, open the admin edit page in the default browser.")),
33146
33246
  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
33247
  };
33148
33248
  const parseBoolean = (v) => v === void 0 ? void 0 : v === "true";
33149
33249
  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)
33250
+ title: unwrap$7(opts.title),
33251
+ slug: unwrap$7(opts.slug),
33252
+ topic: unwrap$7(opts.topic),
33253
+ content: unwrap$7(opts.content),
33254
+ format: unwrap$7(opts.format),
33255
+ state: unwrap$7(opts.state),
33256
+ mood: unwrap$7(opts.mood),
33257
+ weather: unwrap$7(opts.weather),
33258
+ publicAt: unwrap$7(opts.publicAt),
33259
+ password: unwrap$7(opts.password),
33260
+ bookmark: parseBoolean(unwrap$7(opts.bookmark)),
33261
+ coords: unwrap$7(opts.coords),
33262
+ location: unwrap$7(opts.location),
33263
+ images: unwrap$7(opts.images),
33264
+ meta: unwrap$7(opts.meta),
33265
+ file: unwrap$7(opts.file)
33166
33266
  });
33167
33267
  /** Resolve `__topicName` placeholder → `topicId`. */
33168
33268
  const resolveTopicRefs = (payload) => gen(function* () {
@@ -33174,7 +33274,7 @@ const resolveTopicRefs = (payload) => gen(function* () {
33174
33274
  });
33175
33275
  //#endregion
33176
33276
  //#region src/cli/note/create.ts
33177
- const create$4 = make$13("create", noteWriteOptions, (opts) => gen(function* () {
33277
+ const create$5 = make$13("create", noteWriteOptions, (opts) => gen(function* () {
33178
33278
  const payload = yield* resolveTopicRefs((yield* buildNotePayload(toNoteFlagInputs(opts))).payload);
33179
33279
  const api = yield* Api;
33180
33280
  const renderer = yield* Renderer;
@@ -33188,7 +33288,7 @@ const create$4 = make$13("create", noteWriteOptions, (opts) => gen(function* ()
33188
33288
  if (id) yield* openAdminEdit("notes", id);
33189
33289
  }
33190
33290
  })).pipe(withDescription("create a note"));
33191
- const del$4 = make$13("delete", {
33291
+ const del$5 = make$13("delete", {
33192
33292
  slugOrId: text$6({ name: "slugOrId" }),
33193
33293
  force: boolean("force").pipe(withDescription$3("skip confirmation"))
33194
33294
  }, ({ slugOrId, force }) => gen(function* () {
@@ -33244,7 +33344,7 @@ const applyNoteEnvelopeMeta = (payload, rawMeta) => {
33244
33344
  if (meta.location !== void 0) next.location = meta.location;
33245
33345
  return next;
33246
33346
  };
33247
- const edit$3 = make$13("edit", {
33347
+ const edit$4 = make$13("edit", {
33248
33348
  slugOrId: slugOrId$19,
33249
33349
  ...noteWriteOptions
33250
33350
  }, ({ slugOrId, ...rest }) => gen(function* () {
@@ -33422,7 +33522,7 @@ const noteListView = {
33422
33522
  modes: new Set(["readable", "llm"]),
33423
33523
  readable: (data) => renderNoteListReadable(data)
33424
33524
  };
33425
- const get$5 = make$13("get", { slugOrId: text$6({ name: "slugOrId" }) }, ({ slugOrId }) => gen(function* () {
33525
+ const get$6 = make$13("get", { slugOrId: text$6({ name: "slugOrId" }) }, ({ slugOrId }) => gen(function* () {
33426
33526
  const api = yield* Api;
33427
33527
  const renderer = yield* Renderer;
33428
33528
  if (isSnowflakeId(slugOrId)) {
@@ -33442,23 +33542,23 @@ const get$5 = make$13("get", { slugOrId: text$6({ name: "slugOrId" }) }, ({ slug
33442
33542
  })).pipe(withDescription("get a note by snowflake id or numeric nid"));
33443
33543
  //#endregion
33444
33544
  //#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,
33545
+ const page$3 = integer("page").pipe(optional$4);
33546
+ const size$3 = integer("size").pipe(optional$4);
33547
+ const state$1 = text$4("state").pipe(optional$4);
33548
+ const sort$1 = text$4("sort").pipe(optional$4);
33549
+ const unwrap$6 = (value) => getOrUndefined(value);
33550
+ const list$6 = make$13("list", {
33551
+ page: page$3,
33552
+ size: size$3,
33453
33553
  state: state$1,
33454
33554
  sort: sort$1
33455
33555
  }, ({ page, size, sort }) => gen(function* () {
33456
33556
  const api = yield* Api;
33457
33557
  const renderer = yield* Renderer;
33458
33558
  const res = yield* api.request("/notes", { query: {
33459
- page: unwrap$4(page),
33460
- size: unwrap$4(size),
33461
- sortBy: unwrap$4(sort)
33559
+ page: unwrap$6(page),
33560
+ size: unwrap$6(size),
33561
+ sortBy: unwrap$6(sort)
33462
33562
  } });
33463
33563
  yield* renderer.emit(noteListView, res);
33464
33564
  })).pipe(withDescription("list notes"));
@@ -33484,7 +33584,7 @@ const unpublish$1 = make$13("unpublish", { slugOrId: text$6({ name: "slugOrId" }
33484
33584
  });
33485
33585
  yield* renderer.emitSuccess(res);
33486
33586
  })).pipe(withDescription("unpublish a note"));
33487
- const update$4 = make$13("update", {
33587
+ const update$5 = make$13("update", {
33488
33588
  slugOrId: text$6({ name: "slugOrId" }),
33489
33589
  ...noteWriteOptions
33490
33590
  }, ({ slugOrId, ...rest }) => gen(function* () {
@@ -33509,7 +33609,7 @@ const update$4 = make$13("update", {
33509
33609
  })).pipe(withDescription("partially update a note"));
33510
33610
  //#endregion
33511
33611
  //#region src/cli/note/index.ts
33512
- const help$6 = registerCommandHelp({
33612
+ const help$7 = registerCommandHelp({
33513
33613
  name: "note",
33514
33614
  description: "manage notes",
33515
33615
  verbs: [
@@ -33572,40 +33672,40 @@ const help$6 = registerCommandHelp({
33572
33672
  }
33573
33673
  ]
33574
33674
  });
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,
33675
+ const noteCmd = make$13("note").pipe(withDescription(help$7.description), withSubcommands([
33676
+ list$6,
33677
+ get$6,
33678
+ create$5,
33679
+ edit$4,
33680
+ update$5,
33681
+ del$5,
33582
33682
  publish$1,
33583
33683
  unpublish$1
33584
33684
  ]));
33585
33685
  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")),
33686
+ title: optional$4(text$4("title")),
33687
+ slug: optional$4(text$4("slug")),
33688
+ subtitle: optional$4(text$4("subtitle")),
33689
+ order: optional$4(integer("order")),
33690
+ content: optional$4(text$4("content")),
33691
+ format: choice("format", ["lexical", "markdown"]).pipe(optional$4),
33692
+ meta: optional$4(text$4("meta")),
33693
+ file: optional$4(text$4("file")),
33594
33694
  open: boolean("open").pipe(withDescription$3("After success, open the admin edit page in the default browser.")),
33595
33695
  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
33696
  };
33597
- const unwrap$3 = (value) => getOrUndefined(value);
33697
+ const unwrap$5 = (value) => getOrUndefined(value);
33598
33698
  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)
33699
+ title: unwrap$5(opts.title),
33700
+ slug: unwrap$5(opts.slug),
33701
+ subtitle: unwrap$5(opts.subtitle),
33702
+ order: unwrap$5(opts.order),
33703
+ content: unwrap$5(opts.content),
33704
+ format: unwrap$5(opts.format),
33705
+ meta: unwrap$5(opts.meta),
33706
+ file: unwrap$5(opts.file)
33607
33707
  });
33608
- const create$3 = make$13("create", pageWriteOptions, (opts) => gen(function* () {
33708
+ const create$4 = make$13("create", pageWriteOptions, (opts) => gen(function* () {
33609
33709
  const built = yield* buildPagePayload(toPageFlagInputs(opts));
33610
33710
  const api = yield* Api;
33611
33711
  const renderer = yield* Renderer;
@@ -33622,7 +33722,7 @@ const create$3 = make$13("create", pageWriteOptions, (opts) => gen(function* ()
33622
33722
  //#endregion
33623
33723
  //#region src/cli/page/delete.ts
33624
33724
  const slugOrId$14 = text$6({ name: "slugOrId" });
33625
- const force$5 = boolean("force");
33725
+ const force$6 = boolean("force");
33626
33726
  const resolvePageId$2 = (api, ref) => gen(function* () {
33627
33727
  if (isSnowflakeId(ref)) return ref;
33628
33728
  const res = yield* api.request(`/pages/slug/${encodeURIComponent(ref)}`).pipe(catchAll(() => succeed$1(null)));
@@ -33634,9 +33734,9 @@ const resolvePageId$2 = (api, ref) => gen(function* () {
33634
33734
  }));
33635
33735
  return id;
33636
33736
  });
33637
- const del$3 = make$13("delete", {
33737
+ const del$4 = make$13("delete", {
33638
33738
  slugOrId: slugOrId$14,
33639
- force: force$5
33739
+ force: force$6
33640
33740
  }, ({ slugOrId, force }) => gen(function* () {
33641
33741
  if (!force && !process.stdin.isTTY) return yield* fail$2(new ValidationFailed({ message: "refusing to delete without --force in non-TTY context" }));
33642
33742
  const api = yield* Api;
@@ -33691,7 +33791,7 @@ const overlayPageMeta = (payload, rawMeta) => {
33691
33791
  if (meta.order !== void 0) next.order = meta.order;
33692
33792
  return next;
33693
33793
  };
33694
- const edit$2 = make$13("edit", {
33794
+ const edit$3 = make$13("edit", {
33695
33795
  slugOrId: slugOrId$13,
33696
33796
  ...pageWriteOptions
33697
33797
  }, ({ slugOrId, ...rest }) => gen(function* () {
@@ -33806,7 +33906,7 @@ const pageView = {
33806
33906
  });
33807
33907
  }
33808
33908
  };
33809
- const get$4 = make$13("get", { slugOrId: text$6({ name: "slugOrId" }) }, ({ slugOrId }) => gen(function* () {
33909
+ const get$5 = make$13("get", { slugOrId: text$6({ name: "slugOrId" }) }, ({ slugOrId }) => gen(function* () {
33810
33910
  const api = yield* Api;
33811
33911
  const renderer = yield* Renderer;
33812
33912
  const path = isSnowflakeId(slugOrId) ? `/pages/${slugOrId}` : `/pages/slug/${encodeURIComponent(slugOrId)}`;
@@ -33815,7 +33915,7 @@ const get$4 = make$13("get", { slugOrId: text$6({ name: "slugOrId" }) }, ({ slug
33815
33915
  }));
33816
33916
  //#endregion
33817
33917
  //#region src/cli/page/list.ts
33818
- const list$4 = make$13("list", {}, () => gen(function* () {
33918
+ const list$5 = make$13("list", {}, () => gen(function* () {
33819
33919
  const api = yield* Api;
33820
33920
  const renderer = yield* Renderer;
33821
33921
  const res = yield* api.request("/pages");
@@ -33835,7 +33935,7 @@ const resolvePageId = (api, ref) => gen(function* () {
33835
33935
  }));
33836
33936
  return id;
33837
33937
  });
33838
- const update$3 = make$13("update", {
33938
+ const update$4 = make$13("update", {
33839
33939
  slugOrId: slugOrId$11,
33840
33940
  ...pageWriteOptions
33841
33941
  }, ({ slugOrId, ...rest }) => gen(function* () {
@@ -33858,7 +33958,7 @@ const update$3 = make$13("update", {
33858
33958
  }));
33859
33959
  //#endregion
33860
33960
  //#region src/cli/page/index.ts
33861
- const help$5 = registerCommandHelp({
33961
+ const help$6 = registerCommandHelp({
33862
33962
  name: "page",
33863
33963
  description: "manage pages",
33864
33964
  verbs: [
@@ -33905,13 +34005,13 @@ const help$5 = registerCommandHelp({
33905
34005
  }
33906
34006
  ]
33907
34007
  });
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
34008
+ const pageCmd = make$13("page").pipe(withDescription(help$6.description), withSubcommands([
34009
+ list$5,
34010
+ get$5,
34011
+ create$4,
34012
+ edit$3,
34013
+ update$4,
34014
+ del$4
33915
34015
  ]));
33916
34016
  //#endregion
33917
34017
  //#region src/cli/post/apply.ts
@@ -33950,7 +34050,7 @@ const apply = make$13("apply", { slugOrId: slugOrId$10 }, ({ slugOrId }) => gen(
33950
34050
  })).pipe(withDescription("apply the staged draft of a post to the live post (the confirm step after `post stage`)"));
33951
34051
  //#endregion
33952
34052
  //#region src/cli/post/create.ts
33953
- const create$2 = make$13("create", postWriteOptions, (opts) => gen(function* () {
34053
+ const create$3 = make$13("create", postWriteOptions, (opts) => gen(function* () {
33954
34054
  const payload = yield* resolveCategoryRefs((yield* buildPostPayload(toPostFlagInputs(opts))).payload);
33955
34055
  const api = yield* Api;
33956
34056
  const renderer = yield* Renderer;
@@ -33964,7 +34064,7 @@ const create$2 = make$13("create", postWriteOptions, (opts) => gen(function* ()
33964
34064
  if (id) yield* openAdminEdit("posts", id);
33965
34065
  }
33966
34066
  })).pipe(withDescription("create a post"));
33967
- const del$2 = make$13("delete", {
34067
+ const del$3 = make$13("delete", {
33968
34068
  slugOrId: text$6({ name: "slugOrId" }),
33969
34069
  force: boolean("force").pipe(withDescription$3("skip confirmation"))
33970
34070
  }, ({ slugOrId, force }) => gen(function* () {
@@ -34017,7 +34117,7 @@ const metaFromEnvelope = (meta) => {
34017
34117
  if (m.tags !== void 0) overlay.tags = m.tags;
34018
34118
  return overlay;
34019
34119
  };
34020
- const edit$1 = make$13("edit", {
34120
+ const edit$2 = make$13("edit", {
34021
34121
  slugOrId: slugOrId$8,
34022
34122
  ...postWriteOptions
34023
34123
  }, ({ slugOrId, ...rest }) => gen(function* () {
@@ -34189,7 +34289,7 @@ const postListView = {
34189
34289
  modes: new Set(["readable", "llm"]),
34190
34290
  readable: (data) => renderPostListReadable(data)
34191
34291
  };
34192
- const get$3 = make$13("get", { slugOrId: text$6({ name: "slugOrId" }) }, ({ slugOrId }) => gen(function* () {
34292
+ const get$4 = make$13("get", { slugOrId: text$6({ name: "slugOrId" }) }, ({ slugOrId }) => gen(function* () {
34193
34293
  const api = yield* Api;
34194
34294
  const renderer = yield* Renderer;
34195
34295
  const path = yield* (yield* Resolver).resolvePostReadPath(slugOrId);
@@ -34198,24 +34298,24 @@ const get$3 = make$13("get", { slugOrId: text$6({ name: "slugOrId" }) }, ({ slug
34198
34298
  })).pipe(withDescription("get a post by slug or id"));
34199
34299
  //#endregion
34200
34300
  //#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,
34301
+ const page$2 = integer("page").pipe(optional$4);
34302
+ const size$2 = integer("size").pipe(optional$4);
34303
+ const state = choice("state", ["publish", "draft"]).pipe(optional$4);
34304
+ const sort = choice("sort", ["created", "modified"]).pipe(optional$4);
34305
+ const unwrap$4 = (value) => getOrUndefined(value);
34306
+ const list$4 = make$13("list", {
34307
+ page: page$2,
34308
+ size: size$2,
34209
34309
  state,
34210
34310
  sort
34211
34311
  }, ({ page, size, state, sort }) => gen(function* () {
34212
34312
  const api = yield* Api;
34213
34313
  const renderer = yield* Renderer;
34214
34314
  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)
34315
+ page: unwrap$4(page),
34316
+ size: unwrap$4(size),
34317
+ state: unwrap$4(state),
34318
+ sortBy: unwrap$4(sort)
34219
34319
  } });
34220
34320
  yield* renderer.emit(postListView, res);
34221
34321
  })).pipe(withDescription("list posts"));
@@ -34277,7 +34377,7 @@ const unpublish = make$13("unpublish", { slugOrId: text$6({ name: "slugOrId" })
34277
34377
  });
34278
34378
  yield* renderer.emitSuccess(res);
34279
34379
  })).pipe(withDescription("unpublish a post"));
34280
- const update$2 = make$13("update", {
34380
+ const update$3 = make$13("update", {
34281
34381
  slugOrId: text$6({ name: "slugOrId" }),
34282
34382
  ...postWriteOptions
34283
34383
  }, ({ slugOrId, ...rest }) => gen(function* () {
@@ -34302,7 +34402,7 @@ const update$2 = make$13("update", {
34302
34402
  })).pipe(withDescription("partially update a post"));
34303
34403
  //#endregion
34304
34404
  //#region src/cli/post/index.ts
34305
- const help$4 = registerCommandHelp({
34405
+ const help$5 = registerCommandHelp({
34306
34406
  name: "post",
34307
34407
  description: "manage posts",
34308
34408
  verbs: [
@@ -34379,13 +34479,13 @@ const help$4 = registerCommandHelp({
34379
34479
  }
34380
34480
  ]
34381
34481
  });
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,
34482
+ const postCmd = make$13("post").pipe(withDescription(help$5.description), withSubcommands([
34483
+ list$4,
34484
+ get$4,
34485
+ create$3,
34486
+ edit$2,
34487
+ update$3,
34488
+ del$3,
34389
34489
  publish,
34390
34490
  unpublish,
34391
34491
  stage,
@@ -34420,16 +34520,16 @@ registerCommandHelp({
34420
34520
  }
34421
34521
  ]
34422
34522
  });
34423
- const fileArg = text$6({ name: "file" }).pipe(optional$5);
34424
- const themeOpt = choice("theme", ["light", "dark"]).pipe(optional$3);
34523
+ const fileArg = text$6({ name: "file" }).pipe(optional$6);
34524
+ const themeOpt = choice("theme", ["light", "dark"]).pipe(optional$4);
34425
34525
  const variantOpt = choice("variant", [
34426
34526
  "article",
34427
34527
  "note",
34428
34528
  "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);
34529
+ ]).pipe(optional$4);
34530
+ const saveOpt = text$4("save").pipe(optional$4);
34531
+ const printOpt = boolean("print").pipe(optional$4);
34532
+ const openOpt = boolean("open").pipe(optional$4);
34433
34533
  const requireFrom$3 = createRequire(import.meta.url);
34434
34534
  const resolveLitexmlBin = () => {
34435
34535
  try {
@@ -34602,7 +34702,7 @@ const ls = make$13("ls", {}, () => gen(function* () {
34602
34702
  }));
34603
34703
  const mark = make$13("mark", {
34604
34704
  name: text$6({ name: "name" }),
34605
- production: boolean("production", { negationNames: ["no-production"] }).pipe(optional$3)
34705
+ production: boolean("production", { negationNames: ["no-production"] }).pipe(optional$4)
34606
34706
  }, ({ name, production }) => gen(function* () {
34607
34707
  const profile = yield* Profile;
34608
34708
  const renderer = yield* Renderer;
@@ -34615,7 +34715,7 @@ const mark = make$13("mark", {
34615
34715
  }));
34616
34716
  const rm = make$13("rm", {
34617
34717
  name: text$6({ name: "name" }),
34618
- force: boolean("force").pipe(optional$3)
34718
+ force: boolean("force").pipe(optional$4)
34619
34719
  }, ({ name, force }) => gen(function* () {
34620
34720
  const profile = yield* Profile;
34621
34721
  const config = yield* Config;
@@ -34644,7 +34744,7 @@ const rm = make$13("rm", {
34644
34744
  yield* renderer.emitInfo("mxs: cleared active profile pointer");
34645
34745
  }
34646
34746
  }));
34647
- const show = make$13("show", { name: text$6({ name: "name" }).pipe(optional$5) }, ({ name }) => gen(function* () {
34747
+ const show = make$13("show", { name: text$6({ name: "name" }).pipe(optional$6) }, ({ name }) => gen(function* () {
34648
34748
  const profile = yield* Profile;
34649
34749
  const config = yield* Config;
34650
34750
  const renderer = yield* Renderer;
@@ -34681,7 +34781,7 @@ const use = make$13("use", { name: text$6({ name: "name" }) }, ({ name }) => gen
34681
34781
  }));
34682
34782
  //#endregion
34683
34783
  //#region src/cli/profile/index.ts
34684
- const help$3 = registerCommandHelp({
34784
+ const help$4 = registerCommandHelp({
34685
34785
  name: "profile",
34686
34786
  description: "manage mxs profiles",
34687
34787
  verbs: [
@@ -34711,7 +34811,7 @@ const help$3 = registerCommandHelp({
34711
34811
  }
34712
34812
  ]
34713
34813
  });
34714
- const profileCmd = make$13("profile").pipe(withDescription(help$3.description), withSubcommands([
34814
+ const profileCmd = make$13("profile").pipe(withDescription(help$4.description), withSubcommands([
34715
34815
  ls,
34716
34816
  show,
34717
34817
  use,
@@ -34720,17 +34820,17 @@ const profileCmd = make$13("profile").pipe(withDescription(help$3.description),
34720
34820
  ]));
34721
34821
  //#endregion
34722
34822
  //#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"));
34823
+ const optional$1 = (self) => optional$4(self);
34824
+ const unwrap$3 = (value) => getOrUndefined(value);
34825
+ const name$4 = optional$1(text$4("name"));
34826
+ const description$2 = optional$1(text$4("description"));
34827
+ const previewUrl = optional$1(text$4("preview-url"));
34828
+ const docUrl = optional$1(text$4("doc-url"));
34829
+ const projectUrl = optional$1(text$4("project-url"));
34830
+ const avatar = optional$1(text$4("avatar"));
34831
+ const images = optional$1(text$4("images"));
34832
+ const text = optional$1(text$4("text"));
34833
+ const file$1 = optional$1(text$4("file"));
34734
34834
  const openFlag$1 = boolean("open").pipe(withDescription$3("After success, open the admin edit page in the default browser."));
34735
34835
  const silentFlag$1 = boolean("silent").pipe(withDescription$3("On success, emit a minimal `ok` instead of the full server response."));
34736
34836
  const parseCsv = (v) => {
@@ -34738,7 +34838,7 @@ const parseCsv = (v) => {
34738
34838
  return v.split(",").map((s) => s.trim()).filter(Boolean);
34739
34839
  };
34740
34840
  const projectWriteOptions = {
34741
- name: name$2,
34841
+ name: name$4,
34742
34842
  description: description$2,
34743
34843
  previewUrl,
34744
34844
  docUrl,
@@ -34746,20 +34846,20 @@ const projectWriteOptions = {
34746
34846
  avatar,
34747
34847
  images,
34748
34848
  text,
34749
- file,
34849
+ file: file$1,
34750
34850
  open: openFlag$1,
34751
34851
  silent: silentFlag$1
34752
34852
  };
34753
34853
  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)
34854
+ name: unwrap$3(opts.name),
34855
+ description: unwrap$3(opts.description),
34856
+ previewUrl: unwrap$3(opts.previewUrl),
34857
+ docUrl: unwrap$3(opts.docUrl),
34858
+ projectUrl: unwrap$3(opts.projectUrl),
34859
+ avatar: unwrap$3(opts.avatar),
34860
+ images: parseCsv(unwrap$3(opts.images)),
34861
+ text: unwrap$3(opts.text),
34862
+ file: unwrap$3(opts.file)
34763
34863
  });
34764
34864
  const PROJECT_KEYS = [
34765
34865
  "name",
@@ -34816,7 +34916,7 @@ const editableFieldsOf = (raw) => {
34816
34916
  };
34817
34917
  //#endregion
34818
34918
  //#region src/cli/project/create.ts
34819
- const create$1 = make$13("create", projectWriteOptions, (opts) => gen(function* () {
34919
+ const create$2 = make$13("create", projectWriteOptions, (opts) => gen(function* () {
34820
34920
  const payload = yield* buildProjectPayload(toProjectFlagInputs(opts));
34821
34921
  const api = yield* Api;
34822
34922
  const renderer = yield* Renderer;
@@ -34832,7 +34932,7 @@ const create$1 = make$13("create", projectWriteOptions, (opts) => gen(function*
34832
34932
  if (id) yield* openAdminEdit("projects", id);
34833
34933
  }
34834
34934
  })).pipe(withDescription("create a project"));
34835
- const del$1 = make$13("delete", {
34935
+ const del$2 = make$13("delete", {
34836
34936
  nameOrId: text$6({ name: "nameOrId" }),
34837
34937
  force: boolean("force").pipe(withDescription$3("skip the non-TTY guard"))
34838
34938
  }, ({ nameOrId, force }) => gen(function* () {
@@ -34850,7 +34950,7 @@ const del$1 = make$13("delete", {
34850
34950
  const nameOrId$3 = text$6({ name: "nameOrId" });
34851
34951
  const openFlag = boolean("open").pipe(withDescription$3("After success, open the admin edit page in the default browser."));
34852
34952
  const silentFlag = boolean("silent").pipe(withDescription$3("On success, emit a minimal `ok` instead of the full server response."));
34853
- const unwrapDoc = (raw) => {
34953
+ const unwrapDoc$1 = (raw) => {
34854
34954
  if (!raw || typeof raw !== "object") return {};
34855
34955
  const r = raw;
34856
34956
  if (r.data && typeof r.data === "object" && !Array.isArray(r.data)) return r.data;
@@ -34862,7 +34962,7 @@ const parseEnvelope = (raw) => {
34862
34962
  if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) throw new Error("expected a JSON object");
34863
34963
  return parsed;
34864
34964
  };
34865
- const edit = make$13("edit", {
34965
+ const edit$1 = make$13("edit", {
34866
34966
  nameOrId: nameOrId$3,
34867
34967
  open: openFlag,
34868
34968
  silent: silentFlag
@@ -34872,7 +34972,7 @@ const edit = make$13("edit", {
34872
34972
  const renderer = yield* Renderer;
34873
34973
  const resolver = yield* Resolver;
34874
34974
  const id = yield* resolver.resolveProjectId(nameOrId);
34875
- const initial = formatJson(editableFieldsOf(unwrapDoc(yield* api.request(`/projects/${id}`))));
34975
+ const initial = formatJson(editableFieldsOf(unwrapDoc$1(yield* api.request(`/projects/${id}`))));
34876
34976
  const next = yield* editor.openEditor({
34877
34977
  filename: `project-${id}.json`,
34878
34978
  initialContent: initial
@@ -34896,7 +34996,7 @@ const edit = make$13("edit", {
34896
34996
  yield* renderer.emitSuccess(silent ? { ok: true } : res);
34897
34997
  if (open) yield* openAdminEdit("projects", id);
34898
34998
  })).pipe(withDescription("edit a project via $EDITOR (JSON envelope)"));
34899
- const get$2 = make$13("get", { nameOrId: text$6({ name: "nameOrId" }) }, ({ nameOrId }) => gen(function* () {
34999
+ const get$3 = make$13("get", { nameOrId: text$6({ name: "nameOrId" }) }, ({ nameOrId }) => gen(function* () {
34900
35000
  const api = yield* Api;
34901
35001
  const renderer = yield* Renderer;
34902
35002
  const id = yield* (yield* Resolver).resolveProjectId(nameOrId);
@@ -34991,22 +35091,22 @@ const projectListView = {
34991
35091
  };
34992
35092
  //#endregion
34993
35093
  //#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
35094
+ const page$1 = integer("page").pipe(optional$4);
35095
+ const size$1 = integer("size").pipe(optional$4);
35096
+ const unwrap$2 = (value) => getOrUndefined(value);
35097
+ const list$3 = make$13("list", {
35098
+ page: page$1,
35099
+ size: size$1
35000
35100
  }, ({ page, size }) => gen(function* () {
35001
35101
  const api = yield* Api;
35002
35102
  const renderer = yield* Renderer;
35003
35103
  const res = yield* api.request("/projects", { query: {
35004
- page: unwrap(page),
35005
- size: unwrap(size)
35104
+ page: unwrap$2(page),
35105
+ size: unwrap$2(size)
35006
35106
  } });
35007
35107
  yield* renderer.emit(projectListView, res);
35008
35108
  })).pipe(withDescription("list projects"));
35009
- const update$1 = make$13("update", {
35109
+ const update$2 = make$13("update", {
35010
35110
  nameOrId: text$6({ name: "nameOrId" }),
35011
35111
  ...projectWriteOptions
35012
35112
  }, ({ nameOrId, ...rest }) => gen(function* () {
@@ -35032,7 +35132,7 @@ const viewCmd = make$13("view", { nameOrId: text$6({ name: "nameOrId" }) }, ({ n
35032
35132
  })).pipe(withDescription("show a project (rendered)"));
35033
35133
  //#endregion
35034
35134
  //#region src/cli/project/index.ts
35035
- const help$2 = registerCommandHelp({
35135
+ const help$3 = registerCommandHelp({
35036
35136
  name: "project",
35037
35137
  description: "manage portfolio projects",
35038
35138
  verbs: [
@@ -35082,14 +35182,14 @@ const help$2 = registerCommandHelp({
35082
35182
  }
35083
35183
  ]
35084
35184
  });
35085
- const projectCmd = make$13("project").pipe(withDescription(help$2.description), withSubcommands([
35086
- list$2,
35087
- get$2,
35185
+ const projectCmd = make$13("project").pipe(withDescription(help$3.description), withSubcommands([
35186
+ list$3,
35187
+ get$3,
35088
35188
  viewCmd,
35089
- create$1,
35090
- edit,
35091
- update$1,
35092
- del$1
35189
+ create$2,
35190
+ edit$1,
35191
+ update$2,
35192
+ del$2
35093
35193
  ]));
35094
35194
  //#endregion
35095
35195
  //#region ../../node_modules/.pnpm/minisearch@7.2.0/node_modules/minisearch/dist/es/index.js
@@ -37136,14 +37236,14 @@ const make$2 = gen(function* () {
37136
37236
  const cache = yield* make$23(null);
37137
37237
  const indexCache = yield* make$23(null);
37138
37238
  const load = gen(function* () {
37139
- const cached = yield* get$11(cache);
37239
+ const cached = yield* get$12(cache);
37140
37240
  if (cached) return cached;
37141
37241
  const chapters = yield* buildRegistry(fs, path, cliDir, haklexDir);
37142
37242
  yield* set$3(cache, chapters);
37143
37243
  return chapters;
37144
37244
  });
37145
37245
  const loadIndex = gen(function* () {
37146
- const cached = yield* get$11(indexCache);
37246
+ const cached = yield* get$12(indexCache);
37147
37247
  if (cached) return cached;
37148
37248
  const mini = buildIndex(yield* load);
37149
37249
  yield* set$3(indexCache, mini);
@@ -37295,7 +37395,7 @@ const all = make$13("all", {}, () => gen(function* () {
37295
37395
  const chapters = yield* skill.all;
37296
37396
  yield* renderer.emit(skillAllView, chapters);
37297
37397
  }));
37298
- const get$1 = make$13("get", { slug: text$6({ name: "slug" }) }, ({ slug }) => gen(function* () {
37398
+ const get$2 = make$13("get", { slug: text$6({ name: "slug" }) }, ({ slug }) => gen(function* () {
37299
37399
  const skill = yield* Skill;
37300
37400
  const renderer = yield* Renderer;
37301
37401
  const chapter = yield* skill.get(slug);
@@ -37303,7 +37403,7 @@ const get$1 = make$13("get", { slug: text$6({ name: "slug" }) }, ({ slug }) => g
37303
37403
  }));
37304
37404
  //#endregion
37305
37405
  //#region src/cli/skill/list.ts
37306
- const list$1 = make$13("list", {}, () => gen(function* () {
37406
+ const list$2 = make$13("list", {}, () => gen(function* () {
37307
37407
  const skill = yield* Skill;
37308
37408
  const renderer = yield* Renderer;
37309
37409
  const chapters = yield* skill.list;
@@ -37317,7 +37417,7 @@ const search = make$13("search", { keyword: text$6({ name: "keyword" }) }, ({ ke
37317
37417
  }));
37318
37418
  //#endregion
37319
37419
  //#region src/cli/skill/index.ts
37320
- const help$1 = registerCommandHelp({
37420
+ const help$2 = registerCommandHelp({
37321
37421
  name: "skill",
37322
37422
  description: "read bundled AI skill chapters (commands, authoring, liteXML)",
37323
37423
  verbs: [
@@ -37346,17 +37446,316 @@ const skillCmd = make$13("skill", {}, () => gen(function* () {
37346
37446
  const renderer = yield* Renderer;
37347
37447
  const chapters = yield* skill.list;
37348
37448
  yield* renderer.emit(skillListView, chapters);
37349
- })).pipe(withDescription(help$1.description), withSubcommands([
37350
- list$1,
37351
- get$1,
37449
+ })).pipe(withDescription(help$2.description), withSubcommands([
37450
+ list$2,
37451
+ get$2,
37352
37452
  all,
37353
37453
  search
37354
37454
  ]));
37455
+ //#endregion
37456
+ //#region src/cli/snippet/_flags.ts
37457
+ const optional = (self) => optional$4(self);
37458
+ const unwrap$1 = (value) => getOrUndefined(value);
37459
+ const SNIPPET_TYPES = [
37460
+ "json",
37461
+ "json5",
37462
+ "function",
37463
+ "text",
37464
+ "yaml"
37465
+ ];
37466
+ const SNIPPET_KEYS = [
37467
+ "name",
37468
+ "reference",
37469
+ "type",
37470
+ "raw",
37471
+ "private",
37472
+ "comment",
37473
+ "metatype",
37474
+ "schema",
37475
+ "method",
37476
+ "customPath",
37477
+ "secret",
37478
+ "enable"
37479
+ ];
37480
+ const snippetWriteOptions = {
37481
+ reference: optional(text$4("reference")),
37482
+ type: optional(choice("type", SNIPPET_TYPES)),
37483
+ file: optional(text$4("file")),
37484
+ raw: optional(text$4("raw")),
37485
+ comment: optional(text$4("comment")),
37486
+ method: optional(choice("method", [
37487
+ "GET",
37488
+ "POST",
37489
+ "PUT",
37490
+ "DELETE",
37491
+ "PATCH",
37492
+ "ALL"
37493
+ ])),
37494
+ metatype: optional(text$4("metatype")),
37495
+ schema: optional(text$4("schema")),
37496
+ customPath: optional(text$4("custom-path")),
37497
+ secret: optional(text$4("secret")),
37498
+ private: boolean("private"),
37499
+ noPrivate: boolean("no-private"),
37500
+ enable: boolean("enable"),
37501
+ noEnable: boolean("no-enable")
37502
+ };
37503
+ const toSnippetFlagInputs = (opts) => ({
37504
+ reference: unwrap$1(opts.reference),
37505
+ type: unwrap$1(opts.type),
37506
+ file: unwrap$1(opts.file),
37507
+ raw: unwrap$1(opts.raw),
37508
+ comment: unwrap$1(opts.comment),
37509
+ method: unwrap$1(opts.method),
37510
+ metatype: unwrap$1(opts.metatype),
37511
+ schema: unwrap$1(opts.schema),
37512
+ customPath: unwrap$1(opts.customPath),
37513
+ secret: unwrap$1(opts.secret),
37514
+ private: opts.private ? true : opts.noPrivate ? false : void 0,
37515
+ enable: opts.enable ? true : opts.noEnable ? false : void 0
37516
+ });
37517
+ const snippetFieldsOf = (flags) => {
37518
+ const out = {};
37519
+ if (flags.reference !== void 0) out.reference = flags.reference;
37520
+ if (flags.type !== void 0) out.type = flags.type;
37521
+ if (flags.comment !== void 0) out.comment = flags.comment;
37522
+ if (flags.method !== void 0) out.method = flags.method;
37523
+ if (flags.metatype !== void 0) out.metatype = flags.metatype;
37524
+ if (flags.schema !== void 0) out.schema = flags.schema;
37525
+ if (flags.customPath !== void 0) out.customPath = flags.customPath;
37526
+ if (flags.secret !== void 0) out.secret = flags.secret;
37527
+ if (flags.private !== void 0) out.private = flags.private;
37528
+ if (flags.enable !== void 0) out.enable = flags.enable;
37529
+ return out;
37530
+ };
37531
+ const resolveRawSource = (flags, opts) => gen(function* () {
37532
+ if (flags.file !== void 0) return yield* (yield* Editor).readFileOrStdin(flags.file);
37533
+ if (flags.raw !== void 0) return flags.raw;
37534
+ if (opts.implicitStdin && !process.stdin.isTTY) {
37535
+ const piped = yield* (yield* Editor).readFileOrStdin(void 0);
37536
+ return piped.trim() ? piped : void 0;
37537
+ }
37538
+ });
37539
+ const unwrapDoc = (res) => {
37540
+ if (!res || typeof res !== "object") return {};
37541
+ const r = res;
37542
+ if (r.data && typeof r.data === "object" && !Array.isArray(r.data)) return r.data;
37543
+ return r;
37544
+ };
37545
+ const pickSnippetFields = (doc) => {
37546
+ const out = {};
37547
+ for (const key of SNIPPET_KEYS) if (key in doc && doc[key] !== void 0) out[key] = doc[key];
37548
+ return out;
37549
+ };
37550
+ const EXT_BY_TYPE = {
37551
+ json: "json",
37552
+ json5: "json5",
37553
+ function: "js",
37554
+ yaml: "yaml",
37555
+ text: "txt"
37556
+ };
37557
+ const extForType = (type) => typeof type === "string" && EXT_BY_TYPE[type] || "txt";
37558
+ const create$1 = make$13("create", {
37559
+ name: text$4("name"),
37560
+ ...snippetWriteOptions
37561
+ }, ({ name, ...rest }) => gen(function* () {
37562
+ const flags = toSnippetFlagInputs(rest);
37563
+ const api = yield* Api;
37564
+ const renderer = yield* Renderer;
37565
+ let raw = yield* resolveRawSource(flags, { implicitStdin: true });
37566
+ if (raw === void 0) {
37567
+ if (!process.stdin.isTTY) return yield* fail$2(new ValidationFailed({ message: "no snippet content provided; pass --file, --raw, or pipe stdin" }));
37568
+ raw = yield* (yield* Editor).openEditor({
37569
+ filename: `snippet-${name}.${extForType(flags.type ?? "json")}`,
37570
+ initialContent: ""
37571
+ });
37572
+ }
37573
+ if (!raw.trim()) return yield* fail$2(new ValidationFailed({ message: "snippet content is empty" }));
37574
+ const body = {
37575
+ ...snippetFieldsOf(flags),
37576
+ name,
37577
+ raw
37578
+ };
37579
+ const res = yield* api.request("/snippets", {
37580
+ method: "POST",
37581
+ body
37582
+ });
37583
+ yield* renderer.emitSuccess(res);
37584
+ })).pipe(withDescription("create a snippet"));
37585
+ //#endregion
37586
+ //#region src/cli/snippet/_resolve.ts
37587
+ const unwrapList = (res) => {
37588
+ if (Array.isArray(res)) return res;
37589
+ if (res && typeof res === "object") {
37590
+ const data = res.data;
37591
+ if (Array.isArray(data)) return data;
37592
+ }
37593
+ return [];
37594
+ };
37595
+ const resolveSnippetId = (api, ref) => gen(function* () {
37596
+ if (isSnowflakeId(ref)) return ref;
37597
+ const slash = ref.indexOf("/");
37598
+ const reference = slash === -1 ? "root" : ref.slice(0, slash);
37599
+ const name = slash === -1 ? ref : ref.slice(slash + 1);
37600
+ const match = unwrapList(yield* api.request(`/snippets/group/${encodeURIComponent(reference)}`).pipe(catchAll(() => succeed$1(null)))).find((s) => s.name === name);
37601
+ if (!match?.id) return yield* fail$2(new ResourceNotFound({
37602
+ kind: "snippet",
37603
+ ref,
37604
+ message: `snippet not found: ${ref}`
37605
+ }));
37606
+ return match.id;
37607
+ });
37608
+ const del$1 = make$13("delete", {
37609
+ target: text$6({ name: "idOrRefName" }),
37610
+ force: boolean("force").pipe(withDescription$3("skip the non-TTY guard"))
37611
+ }, ({ target, force }) => gen(function* () {
37612
+ if (!force && !process.stdin.isTTY) return yield* fail$2(new ValidationFailed({ message: "refusing to delete without --force in non-TTY context" }));
37613
+ const api = yield* Api;
37614
+ const renderer = yield* Renderer;
37615
+ const id = yield* resolveSnippetId(api, target);
37616
+ yield* api.request(`/snippets/${id}`, { method: "DELETE" });
37617
+ yield* renderer.emitSuccess({ deleted: id });
37618
+ })).pipe(withDescription("delete a snippet"));
37619
+ const edit = make$13("edit", { target: text$6({ name: "idOrRefName" }) }, ({ target }) => gen(function* () {
37620
+ const api = yield* Api;
37621
+ const editor = yield* Editor;
37622
+ const renderer = yield* Renderer;
37623
+ const id = yield* resolveSnippetId(api, target);
37624
+ const current = unwrapDoc(yield* api.request(`/snippets/${id}`));
37625
+ const initial = typeof current.raw === "string" ? current.raw : "";
37626
+ const next = yield* editor.openEditor({
37627
+ filename: `snippet-${id}.${extForType(current.type)}`,
37628
+ initialContent: initial
37629
+ });
37630
+ if (next.trim() === initial.trim()) {
37631
+ yield* renderer.emitInfo("no changes");
37632
+ return;
37633
+ }
37634
+ const body = {
37635
+ ...pickSnippetFields(current),
37636
+ raw: next
37637
+ };
37638
+ const res = yield* api.request(`/snippets/${id}`, {
37639
+ method: "PUT",
37640
+ body
37641
+ });
37642
+ yield* renderer.emitSuccess(res);
37643
+ })).pipe(withDescription("edit snippet content via $EDITOR"));
37644
+ const get$1 = make$13("get", { target: text$6({ name: "idOrRefName" }) }, ({ target }) => gen(function* () {
37645
+ const api = yield* Api;
37646
+ const renderer = yield* Renderer;
37647
+ const id = yield* resolveSnippetId(api, target);
37648
+ const res = yield* api.request(`/snippets/${id}`);
37649
+ yield* renderer.emitSuccess(res);
37650
+ })).pipe(withDescription("get a snippet by id or reference/name"));
37651
+ //#endregion
37652
+ //#region src/cli/snippet/list.ts
37653
+ const page = integer("page").pipe(optional$4);
37654
+ const size = integer("size").pipe(optional$4);
37655
+ const grouped = boolean("grouped");
37656
+ const unwrap = (value) => getOrUndefined(value);
37657
+ const list$1 = make$13("list", {
37658
+ page,
37659
+ size,
37660
+ grouped
37661
+ }, ({ page, size, grouped }) => gen(function* () {
37662
+ const api = yield* Api;
37663
+ const renderer = yield* Renderer;
37664
+ const res = yield* api.request(grouped ? "/snippets/group" : "/snippets", { query: {
37665
+ page: unwrap(page),
37666
+ size: unwrap(size)
37667
+ } });
37668
+ yield* renderer.emitSuccess(res);
37669
+ })).pipe(withDescription("list snippets"));
37670
+ const update$1 = make$13("update", {
37671
+ target: text$6({ name: "idOrRefName" }),
37672
+ name: text$4("name").pipe(optional$4),
37673
+ ...snippetWriteOptions
37674
+ }, ({ target, name, ...rest }) => gen(function* () {
37675
+ const flags = toSnippetFlagInputs(rest);
37676
+ const api = yield* Api;
37677
+ const renderer = yield* Renderer;
37678
+ const id = yield* resolveSnippetId(api, target);
37679
+ const current = pickSnippetFields(unwrapDoc(yield* api.request(`/snippets/${id}`)));
37680
+ const raw = yield* resolveRawSource(flags, { implicitStdin: false });
37681
+ const body = {
37682
+ ...current,
37683
+ ...snippetFieldsOf(flags)
37684
+ };
37685
+ const n = getOrUndefined(name);
37686
+ if (n !== void 0) body.name = n;
37687
+ if (raw !== void 0) body.raw = raw;
37688
+ const res = yield* api.request(`/snippets/${id}`, {
37689
+ method: "PUT",
37690
+ body
37691
+ });
37692
+ yield* renderer.emitSuccess(res);
37693
+ })).pipe(withDescription("update a snippet"));
37694
+ //#endregion
37695
+ //#region src/cli/snippet/index.ts
37696
+ const help$1 = registerCommandHelp({
37697
+ name: "snippet",
37698
+ description: "manage snippets",
37699
+ verbs: [
37700
+ {
37701
+ name: "list",
37702
+ args: [
37703
+ "[--page <n>]",
37704
+ "[--size <n>]",
37705
+ "[--grouped]"
37706
+ ],
37707
+ description: "list snippets"
37708
+ },
37709
+ {
37710
+ name: "get",
37711
+ args: ["<id|ref/name>"],
37712
+ description: "show a single snippet (full, includes raw)"
37713
+ },
37714
+ {
37715
+ name: "create",
37716
+ args: [
37717
+ "--name <n>",
37718
+ "[--reference <r>]",
37719
+ "[--type <t>]",
37720
+ "[--file <path|-> | --raw <text> | stdin]",
37721
+ "..."
37722
+ ],
37723
+ description: "create a snippet"
37724
+ },
37725
+ {
37726
+ name: "update",
37727
+ args: [
37728
+ "<id|ref/name>",
37729
+ "[--file <path|-> | --raw <text>]",
37730
+ "..."
37731
+ ],
37732
+ description: "update a snippet"
37733
+ },
37734
+ {
37735
+ name: "edit",
37736
+ args: ["<id|ref/name>"],
37737
+ description: "edit snippet content via $EDITOR"
37738
+ },
37739
+ {
37740
+ name: "delete",
37741
+ args: ["<id|ref/name>", "[--force]"],
37742
+ description: "delete a snippet"
37743
+ }
37744
+ ]
37745
+ });
37746
+ const snippetCmd = make$13("snippet").pipe(withDescription(help$1.description), withSubcommands([
37747
+ list$1,
37748
+ get$1,
37749
+ create$1,
37750
+ update$1,
37751
+ edit,
37752
+ del$1
37753
+ ]));
37355
37754
  const create = make$13("create", {
37356
37755
  name: text$4("name"),
37357
37756
  slug: text$4("slug"),
37358
- description: text$4("description").pipe(optional$3),
37359
- icon: text$4("icon").pipe(optional$3)
37757
+ description: text$4("description").pipe(optional$4),
37758
+ icon: text$4("icon").pipe(optional$4)
37360
37759
  }, ({ name, slug, description, icon }) => gen(function* () {
37361
37760
  const body = {
37362
37761
  name,
@@ -37418,10 +37817,10 @@ const list = make$13("list", {}, () => gen(function* () {
37418
37817
  //#endregion
37419
37818
  //#region src/cli/topic/update.ts
37420
37819
  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);
37820
+ const name = text$4("name").pipe(optional$4);
37821
+ const slug = text$4("slug").pipe(optional$4);
37822
+ const description = text$4("description").pipe(optional$4);
37823
+ const icon = text$4("icon").pipe(optional$4);
37425
37824
  const resolveTopicId = (api, ref) => gen(function* () {
37426
37825
  if (isSnowflakeId(ref)) return ref;
37427
37826
  const res = yield* api.request(`/topics/slug/${encodeURIComponent(ref)}`).pipe(catchAll(() => succeed$1(null)));
@@ -37507,7 +37906,7 @@ const topicCmd = make$13("topic").pipe(withDescription(help.description), withSu
37507
37906
  del
37508
37907
  ]));
37509
37908
  //#endregion
37510
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/internal/constants.js
37909
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/internal/constants.js
37511
37910
  var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37512
37911
  const SEMVER_SPEC_VERSION = "2.0.0";
37513
37912
  const MAX_LENGTH = 256;
@@ -37532,12 +37931,12 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37532
37931
  };
37533
37932
  }));
37534
37933
  //#endregion
37535
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/internal/debug.js
37934
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/internal/debug.js
37536
37935
  var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37537
37936
  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
37937
  }));
37539
37938
  //#endregion
37540
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/internal/re.js
37939
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/internal/re.js
37541
37940
  var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37542
37941
  const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
37543
37942
  const debug = require_debug();
@@ -37616,7 +38015,7 @@ var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37616
38015
  createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
37617
38016
  }));
37618
38017
  //#endregion
37619
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/internal/parse-options.js
38018
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/internal/parse-options.js
37620
38019
  var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37621
38020
  const looseOption = Object.freeze({ loose: true });
37622
38021
  const emptyOpts = Object.freeze({});
@@ -37628,7 +38027,7 @@ var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) =>
37628
38027
  module.exports = parseOptions;
37629
38028
  }));
37630
38029
  //#endregion
37631
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/internal/identifiers.js
38030
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/internal/identifiers.js
37632
38031
  var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37633
38032
  const numeric = /^[0-9]+$/;
37634
38033
  const compareIdentifiers = (a, b) => {
@@ -37648,7 +38047,7 @@ var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37648
38047
  };
37649
38048
  }));
37650
38049
  //#endregion
37651
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/classes/semver.js
38050
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/classes/semver.js
37652
38051
  var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37653
38052
  const debug = require_debug();
37654
38053
  const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
@@ -37833,7 +38232,7 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37833
38232
  };
37834
38233
  }));
37835
38234
  //#endregion
37836
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/parse.js
38235
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/parse.js
37837
38236
  var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37838
38237
  const SemVer = require_semver$1();
37839
38238
  const parse = (version, options, throwErrors = false) => {
@@ -37848,7 +38247,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37848
38247
  module.exports = parse;
37849
38248
  }));
37850
38249
  //#endregion
37851
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/valid.js
38250
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/valid.js
37852
38251
  var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37853
38252
  const parse = require_parse();
37854
38253
  const valid = (version, options) => {
@@ -37858,7 +38257,7 @@ var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37858
38257
  module.exports = valid;
37859
38258
  }));
37860
38259
  //#endregion
37861
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/clean.js
38260
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/clean.js
37862
38261
  var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37863
38262
  const parse = require_parse();
37864
38263
  const clean = (version, options) => {
@@ -37868,7 +38267,7 @@ var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37868
38267
  module.exports = clean;
37869
38268
  }));
37870
38269
  //#endregion
37871
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/inc.js
38270
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/inc.js
37872
38271
  var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37873
38272
  const SemVer = require_semver$1();
37874
38273
  const inc = (version, release, options, identifier, identifierBase) => {
@@ -37886,7 +38285,7 @@ var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37886
38285
  module.exports = inc;
37887
38286
  }));
37888
38287
  //#endregion
37889
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/diff.js
38288
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/diff.js
37890
38289
  var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37891
38290
  const parse = require_parse();
37892
38291
  const diff = (version1, version2) => {
@@ -37914,28 +38313,28 @@ var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37914
38313
  module.exports = diff;
37915
38314
  }));
37916
38315
  //#endregion
37917
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/major.js
38316
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/major.js
37918
38317
  var require_major = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37919
38318
  const SemVer = require_semver$1();
37920
38319
  const major = (a, loose) => new SemVer(a, loose).major;
37921
38320
  module.exports = major;
37922
38321
  }));
37923
38322
  //#endregion
37924
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/minor.js
38323
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/minor.js
37925
38324
  var require_minor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37926
38325
  const SemVer = require_semver$1();
37927
38326
  const minor = (a, loose) => new SemVer(a, loose).minor;
37928
38327
  module.exports = minor;
37929
38328
  }));
37930
38329
  //#endregion
37931
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/patch.js
38330
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/patch.js
37932
38331
  var require_patch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37933
38332
  const SemVer = require_semver$1();
37934
38333
  const patch = (a, loose) => new SemVer(a, loose).patch;
37935
38334
  module.exports = patch;
37936
38335
  }));
37937
38336
  //#endregion
37938
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/prerelease.js
38337
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/prerelease.js
37939
38338
  var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37940
38339
  const parse = require_parse();
37941
38340
  const prerelease = (version, options) => {
@@ -37945,28 +38344,28 @@ var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37945
38344
  module.exports = prerelease;
37946
38345
  }));
37947
38346
  //#endregion
37948
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/compare.js
38347
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/compare.js
37949
38348
  var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37950
38349
  const SemVer = require_semver$1();
37951
38350
  const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
37952
38351
  module.exports = compare;
37953
38352
  }));
37954
38353
  //#endregion
37955
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/rcompare.js
38354
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/rcompare.js
37956
38355
  var require_rcompare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37957
38356
  const compare = require_compare();
37958
38357
  const rcompare = (a, b, loose) => compare(b, a, loose);
37959
38358
  module.exports = rcompare;
37960
38359
  }));
37961
38360
  //#endregion
37962
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/compare-loose.js
38361
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/compare-loose.js
37963
38362
  var require_compare_loose = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37964
38363
  const compare = require_compare();
37965
38364
  const compareLoose = (a, b) => compare(a, b, true);
37966
38365
  module.exports = compareLoose;
37967
38366
  }));
37968
38367
  //#endregion
37969
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/compare-build.js
38368
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/compare-build.js
37970
38369
  var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37971
38370
  const SemVer = require_semver$1();
37972
38371
  const compareBuild = (a, b, loose) => {
@@ -37977,63 +38376,63 @@ var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) =>
37977
38376
  module.exports = compareBuild;
37978
38377
  }));
37979
38378
  //#endregion
37980
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/sort.js
38379
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/sort.js
37981
38380
  var require_sort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37982
38381
  const compareBuild = require_compare_build();
37983
38382
  const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
37984
38383
  module.exports = sort;
37985
38384
  }));
37986
38385
  //#endregion
37987
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/rsort.js
38386
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/rsort.js
37988
38387
  var require_rsort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37989
38388
  const compareBuild = require_compare_build();
37990
38389
  const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
37991
38390
  module.exports = rsort;
37992
38391
  }));
37993
38392
  //#endregion
37994
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/gt.js
38393
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/gt.js
37995
38394
  var require_gt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
37996
38395
  const compare = require_compare();
37997
38396
  const gt = (a, b, loose) => compare(a, b, loose) > 0;
37998
38397
  module.exports = gt;
37999
38398
  }));
38000
38399
  //#endregion
38001
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/lt.js
38400
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/lt.js
38002
38401
  var require_lt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38003
38402
  const compare = require_compare();
38004
38403
  const lt = (a, b, loose) => compare(a, b, loose) < 0;
38005
38404
  module.exports = lt;
38006
38405
  }));
38007
38406
  //#endregion
38008
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/eq.js
38407
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/eq.js
38009
38408
  var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38010
38409
  const compare = require_compare();
38011
38410
  const eq = (a, b, loose) => compare(a, b, loose) === 0;
38012
38411
  module.exports = eq;
38013
38412
  }));
38014
38413
  //#endregion
38015
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/neq.js
38414
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/neq.js
38016
38415
  var require_neq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38017
38416
  const compare = require_compare();
38018
38417
  const neq = (a, b, loose) => compare(a, b, loose) !== 0;
38019
38418
  module.exports = neq;
38020
38419
  }));
38021
38420
  //#endregion
38022
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/gte.js
38421
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/gte.js
38023
38422
  var require_gte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38024
38423
  const compare = require_compare();
38025
38424
  const gte = (a, b, loose) => compare(a, b, loose) >= 0;
38026
38425
  module.exports = gte;
38027
38426
  }));
38028
38427
  //#endregion
38029
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/lte.js
38428
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/lte.js
38030
38429
  var require_lte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38031
38430
  const compare = require_compare();
38032
38431
  const lte = (a, b, loose) => compare(a, b, loose) <= 0;
38033
38432
  module.exports = lte;
38034
38433
  }));
38035
38434
  //#endregion
38036
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/cmp.js
38435
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/cmp.js
38037
38436
  var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38038
38437
  const eq = require_eq();
38039
38438
  const neq = require_neq();
@@ -38065,7 +38464,7 @@ var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38065
38464
  module.exports = cmp;
38066
38465
  }));
38067
38466
  //#endregion
38068
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/coerce.js
38467
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/coerce.js
38069
38468
  var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38070
38469
  const SemVer = require_semver$1();
38071
38470
  const parse = require_parse();
@@ -38093,7 +38492,7 @@ var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38093
38492
  module.exports = coerce;
38094
38493
  }));
38095
38494
  //#endregion
38096
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/truncate.js
38495
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/truncate.js
38097
38496
  var require_truncate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38098
38497
  const parse = require_parse();
38099
38498
  const constants = require_constants();
@@ -38126,7 +38525,7 @@ var require_truncate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38126
38525
  module.exports = truncate;
38127
38526
  }));
38128
38527
  //#endregion
38129
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/internal/lrucache.js
38528
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/internal/lrucache.js
38130
38529
  var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38131
38530
  var LRUCache = class {
38132
38531
  constructor() {
@@ -38159,7 +38558,7 @@ var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38159
38558
  module.exports = LRUCache;
38160
38559
  }));
38161
38560
  //#endregion
38162
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/classes/range.js
38561
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/classes/range.js
38163
38562
  var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38164
38563
  const SPACE_CHARACTERS = /\s+/g;
38165
38564
  module.exports = class Range {
@@ -38303,6 +38702,7 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38303
38702
  return comp;
38304
38703
  };
38305
38704
  const isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
38705
+ const invalidXRangeOrder = (M, m, p) => isX(M) && !isX(m) || isX(m) && p && !isX(p);
38306
38706
  const replaceTildes = (comp, options) => {
38307
38707
  return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
38308
38708
  };
@@ -38343,8 +38743,8 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38343
38743
  else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
38344
38744
  } else {
38345
38745
  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`;
38746
+ if (M === "0") if (m === "0") ret = `>=${M}.${m}.${p} <${M}.${m}.${+p + 1}-0`;
38747
+ else ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
38348
38748
  else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
38349
38749
  }
38350
38750
  debug("caret return", ret);
@@ -38360,6 +38760,7 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38360
38760
  const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
38361
38761
  return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
38362
38762
  debug("xRange", comp, ret, gtlt, M, m, p, pr);
38763
+ if (invalidXRangeOrder(M, m, p)) return comp;
38363
38764
  const xM = isX(M);
38364
38765
  const xm = xM || isX(m);
38365
38766
  const xp = xm || isX(p);
@@ -38433,7 +38834,7 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38433
38834
  };
38434
38835
  }));
38435
38836
  //#endregion
38436
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/classes/comparator.js
38837
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/classes/comparator.js
38437
38838
  var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38438
38839
  const ANY = Symbol("SemVer ANY");
38439
38840
  module.exports = class Comparator {
@@ -38503,7 +38904,7 @@ var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38503
38904
  const Range = require_range();
38504
38905
  }));
38505
38906
  //#endregion
38506
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/satisfies.js
38907
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/satisfies.js
38507
38908
  var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38508
38909
  const Range = require_range();
38509
38910
  const satisfies = (version, range, options) => {
@@ -38517,14 +38918,14 @@ var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38517
38918
  module.exports = satisfies;
38518
38919
  }));
38519
38920
  //#endregion
38520
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/ranges/to-comparators.js
38921
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/ranges/to-comparators.js
38521
38922
  var require_to_comparators = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38522
38923
  const Range = require_range();
38523
38924
  const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
38524
38925
  module.exports = toComparators;
38525
38926
  }));
38526
38927
  //#endregion
38527
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/ranges/max-satisfying.js
38928
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/ranges/max-satisfying.js
38528
38929
  var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38529
38930
  const SemVer = require_semver$1();
38530
38931
  const Range = require_range();
@@ -38550,7 +38951,7 @@ var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) =>
38550
38951
  module.exports = maxSatisfying;
38551
38952
  }));
38552
38953
  //#endregion
38553
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/ranges/min-satisfying.js
38954
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/ranges/min-satisfying.js
38554
38955
  var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38555
38956
  const SemVer = require_semver$1();
38556
38957
  const Range = require_range();
@@ -38576,7 +38977,7 @@ var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) =>
38576
38977
  module.exports = minSatisfying;
38577
38978
  }));
38578
38979
  //#endregion
38579
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/ranges/min-version.js
38980
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/ranges/min-version.js
38580
38981
  var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38581
38982
  const SemVer = require_semver$1();
38582
38983
  const Range = require_range();
@@ -38616,7 +39017,7 @@ var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38616
39017
  module.exports = minVersion;
38617
39018
  }));
38618
39019
  //#endregion
38619
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/ranges/valid.js
39020
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/ranges/valid.js
38620
39021
  var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38621
39022
  const Range = require_range();
38622
39023
  const validRange = (range, options) => {
@@ -38629,7 +39030,7 @@ var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38629
39030
  module.exports = validRange;
38630
39031
  }));
38631
39032
  //#endregion
38632
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/ranges/outside.js
39033
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/ranges/outside.js
38633
39034
  var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38634
39035
  const SemVer = require_semver$1();
38635
39036
  const Comparator = require_comparator();
@@ -38682,21 +39083,21 @@ var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38682
39083
  module.exports = outside;
38683
39084
  }));
38684
39085
  //#endregion
38685
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/ranges/gtr.js
39086
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/ranges/gtr.js
38686
39087
  var require_gtr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38687
39088
  const outside = require_outside();
38688
39089
  const gtr = (version, range, options) => outside(version, range, ">", options);
38689
39090
  module.exports = gtr;
38690
39091
  }));
38691
39092
  //#endregion
38692
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/ranges/ltr.js
39093
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/ranges/ltr.js
38693
39094
  var require_ltr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38694
39095
  const outside = require_outside();
38695
39096
  const ltr = (version, range, options) => outside(version, range, "<", options);
38696
39097
  module.exports = ltr;
38697
39098
  }));
38698
39099
  //#endregion
38699
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/ranges/intersects.js
39100
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/ranges/intersects.js
38700
39101
  var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38701
39102
  const Range = require_range();
38702
39103
  const intersects = (r1, r2, options) => {
@@ -38707,7 +39108,7 @@ var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38707
39108
  module.exports = intersects;
38708
39109
  }));
38709
39110
  //#endregion
38710
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/ranges/simplify.js
39111
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/ranges/simplify.js
38711
39112
  var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38712
39113
  const satisfies = require_satisfies();
38713
39114
  const compare = require_compare();
@@ -38737,7 +39138,7 @@ var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38737
39138
  };
38738
39139
  }));
38739
39140
  //#endregion
38740
- //#region ../../node_modules/.pnpm/semver@7.8.2/node_modules/semver/ranges/subset.js
39141
+ //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/ranges/subset.js
38741
39142
  var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38742
39143
  const Range = require_range();
38743
39144
  const Comparator = require_comparator();
@@ -39446,16 +39847,16 @@ const resolveCliVersion$1 = () => {
39446
39847
  return "0.0.0-unknown";
39447
39848
  };
39448
39849
  const CLI_VERSION$1 = resolveCliVersion$1();
39449
- const check = boolean("check").pipe(optional$3);
39450
- const prerelease = boolean("prerelease").pipe(optional$3);
39850
+ const check = boolean("check").pipe(optional$4);
39851
+ const prerelease = boolean("prerelease").pipe(optional$4);
39451
39852
  const pm = choice("pm", [
39452
39853
  "npm",
39453
39854
  "pnpm",
39454
39855
  "yarn",
39455
39856
  "bun"
39456
- ]).pipe(optional$3);
39457
- const force = boolean("force").pipe(optional$3);
39458
- const yes = boolean("yes").pipe(optional$3);
39857
+ ]).pipe(optional$4);
39858
+ const force = boolean("force").pipe(optional$4);
39859
+ const yes = boolean("yes").pipe(optional$4);
39459
39860
  const optBool = (opt) => getOrUndefined(opt);
39460
39861
  const updateCmd = make$13("update", {
39461
39862
  check,
@@ -39543,6 +39944,7 @@ const GROUP_NAMES = [
39543
39944
  "category",
39544
39945
  "topic",
39545
39946
  "comment",
39947
+ "snippet",
39546
39948
  "config",
39547
39949
  "skill",
39548
39950
  "preview",
@@ -40029,6 +40431,7 @@ const rootCmd = make$13("mxs", {}, () => flatMap$1(Renderer, (r) => r.emitInfo("
40029
40431
  categoryCmd,
40030
40432
  topicCmd,
40031
40433
  commentCmd,
40434
+ snippetCmd,
40032
40435
  configCmd,
40033
40436
  fileCmd,
40034
40437
  skillCmd,