@cmmd-center/forge 0.9.5 → 0.9.7
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.
- package/dist/{BunHttpServer-BgNCpQzV.mjs → BunHttpServer-C_855q3m.mjs} +6 -6
- package/dist/{BunHttpServer-DOAuw4Iq.cjs → BunHttpServer-Dxx0kzQc.cjs} +6 -6
- package/dist/{BunPTY-D-Klry5N.mjs → BunPTY-B7ThejfA.mjs} +3 -3
- package/dist/{BunPTY-2icf7sRj.cjs → BunPTY-BjHFZATJ.cjs} +3 -3
- package/dist/{BunServices-ChM4mYH9.mjs → BunServices-BFygTrvx.mjs} +3 -3
- package/dist/{BunServices-CiNXNzHD.cjs → BunServices-U1VBnEJS.cjs} +3 -3
- package/dist/{Cache-XSj5g7uG.cjs → Cache-BRhFH80U.cjs} +3 -3
- package/dist/{Cache-Cm78WiyU.mjs → Cache-CHvh_vWI.mjs} +3 -3
- package/dist/{Config-DMA9WqtC.cjs → Config-BHRBB8XM.cjs} +2 -2
- package/dist/{Config-DrOyN3WS.mjs → Config-To1VEqlB.mjs} +2 -2
- package/dist/{HttpServer-aJkhz6yu.cjs → HttpServer-BTcgkY38.cjs} +123 -4
- package/dist/{HttpServer-ByyNdEXm.mjs → HttpServer-DV-x5DVo.mjs} +118 -4
- package/dist/{NodeHttpServer-D_ismXpd.cjs → NodeHttpServer-D6YVHsL8.cjs} +7 -7
- package/dist/{NodeHttpServer-C_wePPV0.mjs → NodeHttpServer-DgD75IAg.mjs} +7 -7
- package/dist/{NodePTY-cb7HIasY.cjs → NodePTY-Bd9mvI6U.cjs} +4 -4
- package/dist/{NodePTY-BMUFdM93.mjs → NodePTY-RnitYPTs.mjs} +4 -4
- package/dist/{NodeServices-BAl07hlH.cjs → NodeServices-BcQL_53W.cjs} +1 -1
- package/dist/{NodeServices-BISZRY3e.cjs → NodeServices-BjmXNhpe.cjs} +3 -3
- package/dist/{NodeServices-Bqqy4DuH.mjs → NodeServices-Da5rUDDE.mjs} +3 -3
- package/dist/{NodeSqliteClient-SsUCk9mA.cjs → NodeSqliteClient-CG_mPdVp.cjs} +6 -6
- package/dist/{NodeSqliteClient-OdI1TawL.mjs → NodeSqliteClient-CcLD4Zvr.mjs} +6 -6
- package/dist/{NodeTerminal-B9u7fFYa.cjs → NodeTerminal-D86oor5_.cjs} +3 -3
- package/dist/{NodeTerminal-_XekCzf-.mjs → NodeTerminal-Ke6chk0A.mjs} +3 -3
- package/dist/{PTY-U3JQnLXS.cjs → PTY-BB84iC10.cjs} +2 -2
- package/dist/{PTY-CBkE5akF.mjs → PTY-X-4Tv31s.mjs} +2 -2
- package/dist/{Path-Bwl3ltR5.mjs → Path-DJTwK58E.mjs} +2 -2
- package/dist/{Path-CsbBuCFB.cjs → Path-qpublmG3.cjs} +2 -2
- package/dist/{Schema-CTXk8IgN.mjs → Schema-CKuz8TX8.mjs} +61 -6
- package/dist/{Schema-Bij_WAra.cjs → Schema-DaFukK_y.cjs} +72 -5
- package/dist/{SqlError-C2mi8_tp.cjs → SqlError-CsWFS-OU.cjs} +3 -3
- package/dist/{SqlError-1c-3v7GY.mjs → SqlError-DhK0hV8S.mjs} +3 -3
- package/dist/{SqliteClient-CdAhI4lb.cjs → SqliteClient-BpjZWL6O.cjs} +5 -5
- package/dist/{SqliteClient-aoOb51gB.mjs → SqliteClient-CA7vjiUj.mjs} +5 -5
- package/dist/bin.cjs +307 -57
- package/dist/bin.mjs +306 -57
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
require("./chunk-BhaIgcZK.cjs");
|
|
4
|
-
const require_Schema = require("./Schema-
|
|
5
|
-
const require_Path = require("./Path-
|
|
6
|
-
const require_PTY = require("./PTY-
|
|
4
|
+
const require_Schema = require("./Schema-DaFukK_y.cjs");
|
|
5
|
+
const require_Path = require("./Path-qpublmG3.cjs");
|
|
6
|
+
const require_PTY = require("./PTY-BB84iC10.cjs");
|
|
7
7
|
let node_module = require("node:module");
|
|
8
8
|
//#region src/terminal/Layers/NodePTY.ts
|
|
9
9
|
let didEnsureSpawnHelperExecutable = false;
|
|
@@ -85,4 +85,4 @@ const layer = require_Schema.effect(require_PTY.PtyAdapter, require_Schema.gen(f
|
|
|
85
85
|
exports.ensureNodePtySpawnHelperExecutable = ensureNodePtySpawnHelperExecutable;
|
|
86
86
|
exports.layer = layer;
|
|
87
87
|
|
|
88
|
-
//# sourceMappingURL=NodePTY-
|
|
88
|
+
//# sourceMappingURL=NodePTY-Bd9mvI6U.cjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import { i as FileSystem, t as Path } from "./Path-
|
|
5
|
-
import { t as PtyAdapter } from "./PTY-
|
|
3
|
+
import { An as cached, Br as promise, Ur as provideService, dr as gen, ma as effect, rr as fn, zr as orElseSucceed } from "./Schema-CKuz8TX8.mjs";
|
|
4
|
+
import { i as FileSystem, t as Path } from "./Path-DJTwK58E.mjs";
|
|
5
|
+
import { t as PtyAdapter } from "./PTY-X-4Tv31s.mjs";
|
|
6
6
|
import { createRequire } from "node:module";
|
|
7
7
|
//#region src/terminal/Layers/NodePTY.ts
|
|
8
8
|
let didEnsureSpawnHelperExecutable = false;
|
|
@@ -83,4 +83,4 @@ const layer = effect(PtyAdapter, gen(function* () {
|
|
|
83
83
|
//#endregion
|
|
84
84
|
export { ensureNodePtySpawnHelperExecutable, layer };
|
|
85
85
|
|
|
86
|
-
//# sourceMappingURL=NodePTY-
|
|
86
|
+
//# sourceMappingURL=NodePTY-RnitYPTs.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
const require_Schema = require("./Schema-
|
|
4
|
-
const require_NodeTerminal = require("./NodeTerminal-
|
|
3
|
+
const require_Schema = require("./Schema-DaFukK_y.cjs");
|
|
4
|
+
const require_NodeTerminal = require("./NodeTerminal-D86oor5_.cjs");
|
|
5
5
|
//#region ../../node_modules/.bun/@effect+platform-node@4.0.0-beta.45+6a386fbfc71a3ef3/node_modules/@effect/platform-node/dist/NodeFileSystem.js
|
|
6
6
|
/**
|
|
7
7
|
* @since 1.0.0
|
|
@@ -60,4 +60,4 @@ Object.defineProperty(exports, "layer$1", {
|
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
62
|
|
|
63
|
-
//# sourceMappingURL=NodeServices-
|
|
63
|
+
//# sourceMappingURL=NodeServices-BjmXNhpe.cjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { r as __exportAll } from "./chunk-C5ckVeoz.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import { d as layer$9, i as layer$7, s as layer$6, t as layer$8, u as layer$5 } from "./NodeTerminal-
|
|
4
|
+
import { Ca as provideMerge, xa as mergeAll } from "./Schema-CKuz8TX8.mjs";
|
|
5
|
+
import { d as layer$9, i as layer$7, s as layer$6, t as layer$8, u as layer$5 } from "./NodeTerminal-Ke6chk0A.mjs";
|
|
6
6
|
//#region ../../node_modules/.bun/@effect+platform-node@4.0.0-beta.45+6a386fbfc71a3ef3/node_modules/@effect/platform-node/dist/NodeFileSystem.js
|
|
7
7
|
/**
|
|
8
8
|
* @since 1.0.0
|
|
@@ -48,4 +48,4 @@ const layer = /* @__PURE__ */ provideMerge(layer$9, /* @__PURE__ */ mergeAll(lay
|
|
|
48
48
|
//#endregion
|
|
49
49
|
export { layer as n, layer$4 as r, NodeServices_exports as t };
|
|
50
50
|
|
|
51
|
-
//# sourceMappingURL=NodeServices-
|
|
51
|
+
//# sourceMappingURL=NodeServices-Da5rUDDE.mjs.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
require("./chunk-BhaIgcZK.cjs");
|
|
4
|
-
const require_Schema = require("./Schema-
|
|
5
|
-
const require_Path = require("./Path-
|
|
6
|
-
const require_Config = require("./Config-
|
|
7
|
-
const require_Cache = require("./Cache-
|
|
8
|
-
const require_SqlError = require("./SqlError-
|
|
4
|
+
const require_Schema = require("./Schema-DaFukK_y.cjs");
|
|
5
|
+
const require_Path = require("./Path-qpublmG3.cjs");
|
|
6
|
+
const require_Config = require("./Config-BHRBB8XM.cjs");
|
|
7
|
+
const require_Cache = require("./Cache-BRhFH80U.cjs");
|
|
8
|
+
const require_SqlError = require("./SqlError-CsWFS-OU.cjs");
|
|
9
9
|
let node_sqlite = require("node:sqlite");
|
|
10
10
|
//#region src/persistence/NodeSqliteClient.ts
|
|
11
11
|
/**
|
|
@@ -144,4 +144,4 @@ exports.layer = layer;
|
|
|
144
144
|
exports.layerConfig = layerConfig;
|
|
145
145
|
exports.layerMemory = layerMemory;
|
|
146
146
|
|
|
147
|
-
//# sourceMappingURL=NodeSqliteClient-
|
|
147
|
+
//# sourceMappingURL=NodeSqliteClient-CG_mPdVp.cjs.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import { Wt as getCurrent, bt as make$2, m as die$1 } from "./Path-
|
|
5
|
-
import { h as unwrap } from "./Config-
|
|
6
|
-
import { a as make$3, t as get$1 } from "./Cache-
|
|
7
|
-
import { S as layer$1, c as SqlError, f as classifySqliteError, h as make$4, m as SqlClient, p as SafeIntegers, v as defaultTransforms, x as makeCompilerSqlite } from "./SqlError-
|
|
3
|
+
import { Dn as as, Fc as get, Jn as fail, Mc as Service, Nc as add, Oa as Scope, Oi as void_, Ql as identity, Rc as getUnsafe, Sa as provide, Ti as uninterruptibleMask, Wn as die, Ys as minutes, bi as try_, bn as acquireUseRelease, di as sync, dr as gen, er as flatMap, fi as tap, ha as effectContext, ji as withFiber, ka as addFinalizer, rr as fn, si as succeed, ti as scope, wr as map, zc as make$1 } from "./Schema-CKuz8TX8.mjs";
|
|
4
|
+
import { Wt as getCurrent, bt as make$2, m as die$1 } from "./Path-DJTwK58E.mjs";
|
|
5
|
+
import { h as unwrap } from "./Config-To1VEqlB.mjs";
|
|
6
|
+
import { a as make$3, t as get$1 } from "./Cache-CHvh_vWI.mjs";
|
|
7
|
+
import { S as layer$1, c as SqlError, f as classifySqliteError, h as make$4, m as SqlClient, p as SafeIntegers, v as defaultTransforms, x as makeCompilerSqlite } from "./SqlError-DhK0hV8S.mjs";
|
|
8
8
|
import { DatabaseSync } from "node:sqlite";
|
|
9
9
|
//#region src/persistence/NodeSqliteClient.ts
|
|
10
10
|
/**
|
|
@@ -138,4 +138,4 @@ const layerMemory = (config = {}) => effectContext(map(makeMemory(config), (clie
|
|
|
138
138
|
//#endregion
|
|
139
139
|
export { layer, layerConfig, layerMemory };
|
|
140
140
|
|
|
141
|
-
//# sourceMappingURL=NodeSqliteClient-
|
|
141
|
+
//# sourceMappingURL=NodeSqliteClient-CcLD4Zvr.mjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
const require_chunk = require("./chunk-BhaIgcZK.cjs");
|
|
4
|
-
const require_Schema = require("./Schema-
|
|
5
|
-
const require_Path = require("./Path-
|
|
4
|
+
const require_Schema = require("./Schema-DaFukK_y.cjs");
|
|
5
|
+
const require_Path = require("./Path-qpublmG3.cjs");
|
|
6
6
|
let node_child_process = require("node:child_process");
|
|
7
7
|
node_child_process = require_chunk.__toESM(node_child_process);
|
|
8
8
|
require("node:stream");
|
|
@@ -1532,4 +1532,4 @@ Object.defineProperty(exports, "toUint8Array", {
|
|
|
1532
1532
|
}
|
|
1533
1533
|
});
|
|
1534
1534
|
|
|
1535
|
-
//# sourceMappingURL=NodeTerminal-
|
|
1535
|
+
//# sourceMappingURL=NodeTerminal-D86oor5_.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { $
|
|
4
|
-
import { A as isStream, At as offerUnsafe, Bt as make$6, C as fromChannel$1, Dt as make$9, Et as failCauseUnsafe, F as merge, H as run, Ht as makeUnsafe$1, I as mkString, J as splitLines, Jt as BadArgument, Ot as offer, U as runCollect, Xt as systemError, Yt as badArgument, Zt as nominal, _t as fromTransform, a as FileTypeId, at as make$8, c as make$7, dt as drain, h as empty, i as FileSystem, it as get, l as callback$1, mt as isSink, n as TypeId$3, nt as transduce, o as Size, p as decodeText, pt as fromChannel, r as FileDescriptor, rt as unwrap, s as WatchBackend, t as Path$1, vt as mapDone, wt as endUnsafe } from "./Path-
|
|
3
|
+
import { $a as fail$1, $l as pipe, Cn as andThen, Dn as as, Fl as isNotNull, Gn as effectify, Gr as raceFirst, Ha as _await, Ja as isDone, Jc as getOrElse, Jn as fail, Kc as fromNullishOr, Ll as isNotUndefined, Mc as Service, Oi as void_, Pl as hasProperty, Qi as catchDone, Ql as identity, Rl as isNullish, Rr as orDie, Tt as tag, Ua as doneUnsafe, Vl as isUndefined, Wc as flatMap$1, Xa as makeUnsafe, Yr as runFork, ai as serviceOption, ao as succeed$1, ar as forEach, bi as try_, di as sync, dr as gen, er as flatMap, fr as ignore, ir as fnUntraced, jn as callback, jr as matchEffect, ka as addFinalizer, kn as asVoid, ll as PipeInspectableProto, ma as effect, mo as fail$2, ni as scoped, nl as some, or as forever, pc as of, po as done, qc as fromUndefinedOr, si as succeed, so as Done, tl as none, u as ErrorClass, ui as suspend, ul as YieldableProto, uo as UnknownError, ur as forkScoped, vi as timeoutOrElse, wa as succeed$2, wi as uninterruptible, wr as map, xn as addFinalizer$1, yi as tryPromise, yl as BaseProto, yn as acquireRelease, zn as catch_ } from "./Schema-CKuz8TX8.mjs";
|
|
4
|
+
import { A as isStream, At as offerUnsafe, Bt as make$6, C as fromChannel$1, Dt as make$9, Et as failCauseUnsafe, F as merge, H as run, Ht as makeUnsafe$1, I as mkString, J as splitLines, Jt as BadArgument, Ot as offer, U as runCollect, Xt as systemError, Yt as badArgument, Zt as nominal, _t as fromTransform, a as FileTypeId, at as make$8, c as make$7, dt as drain, h as empty, i as FileSystem, it as get, l as callback$1, mt as isSink, n as TypeId$3, nt as transduce, o as Size, p as decodeText, pt as fromChannel, r as FileDescriptor, rt as unwrap, s as WatchBackend, t as Path$1, vt as mapDone, wt as endUnsafe } from "./Path-DJTwK58E.mjs";
|
|
5
5
|
import * as NodeChildProcess from "node:child_process";
|
|
6
6
|
import "node:stream";
|
|
7
7
|
import * as Crypto from "node:crypto";
|
|
@@ -1415,4 +1415,4 @@ function defaultShouldQuit(input) {
|
|
|
1415
1415
|
//#endregion
|
|
1416
1416
|
export { ChildProcessSpawner as _, Stdio as a, layerPosix as c, layer$4 as d, fromReadable as f, make$4 as g, toUint8Array as h, layer$1 as i, layerWin32 as l, toString as m, make as n, make$2 as o, toArrayBuffer as p, isQuitError as r, layer$2 as s, layer as t, layer$3 as u };
|
|
1417
1417
|
|
|
1418
|
-
//# sourceMappingURL=NodeTerminal-
|
|
1418
|
+
//# sourceMappingURL=NodeTerminal-Ke6chk0A.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
const require_Schema = require("./Schema-
|
|
3
|
+
const require_Schema = require("./Schema-DaFukK_y.cjs");
|
|
4
4
|
//#region src/terminal/Services/PTY.ts
|
|
5
5
|
/**
|
|
6
6
|
* PtyAdapter - Terminal PTY adapter service contract.
|
|
@@ -36,4 +36,4 @@ Object.defineProperty(exports, "PtySpawnError", {
|
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
|
|
39
|
-
//# sourceMappingURL=PTY-
|
|
39
|
+
//# sourceMappingURL=PTY-BB84iC10.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { E as TaggedErrorClass, Mc as Service, St as optional, c as Defect, w as String } from "./Schema-CKuz8TX8.mjs";
|
|
4
4
|
//#region src/terminal/Services/PTY.ts
|
|
5
5
|
/**
|
|
6
6
|
* PtyAdapter - Terminal PTY adapter service contract.
|
|
@@ -25,4 +25,4 @@ var PtyAdapter = class extends Service()("forge/terminal/Services/PTY/PtyAdapter
|
|
|
25
25
|
//#endregion
|
|
26
26
|
export { PtySpawnError as n, PtyAdapter as t };
|
|
27
27
|
|
|
28
|
-
//# sourceMappingURL=PTY-
|
|
28
|
+
//# sourceMappingURL=PTY-X-4Tv31s.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { $a as
|
|
3
|
+
import { $a as fail$3, $i as doneExitFromCause, $l as pipe, $r as runPromiseWith, Aa as addFinalizerExit, Ac as succeed$2, Ai as whileLoop, Al as hash, Bn as context, Br as promise, Cl as format, Cn as andThen, Cs as sync$1, Dc as isFailure, Dl as equals, Dn as as, Ds as void_$1, Fa as makeUnsafe$2, Fc as get$3, Go as exitInterrupt$1, Gr as raceFirst, Ha as _await, Hr as provideContext$2, Hs as fromInputUnsafe, Ia as provide, Ii as yieldNow, Io as andThen$1, Ir as onInterrupt, Jl as constVoid, Jn as fail$2, Jo as fiberAwait, Ka as interruptWith, Kl as constTrue, Kn as ensuring$2, Ko as exitVoid, Ln as catchTag, Mc as Service, Mn as catchCause$2, Na as forkUnsafe, Nc as add, Nr as onError, Oa as Scope, Oc as isSuccess, Oi as void_, Pc as empty$3, Pl as hasProperty, Pr as onExit$2, Qi as catchDone, Ql as identity, Qr as runPromiseExitWith, Qs as toMillis, Ro as asSome, Sc as headUnsafe, Sl as toJson, Ss as suspend$3, Ti as uninterruptibleMask$1, Ts as uninterruptibleMask, Ua as doneUnsafe, Un as delay, Vn as contextWith, Ws as isFinite, Xa as makeUnsafe$3, Xl as dual, Xo as fiberInterrupt, Xr as runForkWith, Yl as constant, Yn as failCause$3, Yr as runFork, Zo as fiberInterruptAll, Zr as runPromise, ao as succeed$4, ar as forEach$1, bi as try_, bs as succeed$5, cc as isReadonlyArrayNonEmpty, di as sync, dl as causeFail, dr as gen, ds as makeLatchUnsafe, ea as filterDone, el as match, eo as failCause$4, er as flatMap$2, es as fiberJoin, eu as pipeArguments, fc as map$3, fi as tap, fo as die$2, go as findError, hl as exitSucceed, ir as fnUntraced, ja as close, ji as withFiber, ka as addFinalizer, ki as when, kn as asVoid, ko as squash, kr as matchCauseEffect, la as Error$1, ll as PipeInspectableProto, lr as forkIn, ml as exitFailCause, mr as interrupt$2, ms as onExitPrimitive, na as matchEffect, nl as some, nr as flatten$1, ns as fiberRunIn, oa as Clock, oc as fromIterable$2, oi as sleep, oo as void_$2, or as forever, pc as of, pl as exitFail, po as done, qn as exit, qo as exitZipRight, ri as scopedWith, ro as isSuccess$1, rs as flatMap$3, sc as isArrayNonEmpty, si as succeed$3, sl as Done, sr as forkChild, ss as getCurrentFiber, ta as isDoneCause, ti as scope, tl as none, to as interrupt$1, tr as flatMapEager, ua as TaggedError, uc as lastNonEmpty, ui as suspend$2, us as makeLatch, vl as withFiber$1, wi as uninterruptible, wr as map$2, xl as NodeInspectSymbol, xs as succeedNone, yi as tryPromise, zn as catch_$1, zo as callback$1 } from "./Schema-CKuz8TX8.mjs";
|
|
4
4
|
//#region ../../node_modules/.bun/effect@4.0.0-beta.45/node_modules/effect/dist/Brand.js
|
|
5
5
|
/**
|
|
6
6
|
* This function returns a `Constructor` that **does not apply any runtime
|
|
@@ -7030,4 +7030,4 @@ const posixImpl = /* @__PURE__ */ Path.of({
|
|
|
7030
7030
|
//#endregion
|
|
7031
7031
|
export { toAsyncIterable as $, isStream as A, offerUnsafe as At, pipeThroughChannel as B, make$8 as Bt, fromChannel as C, end as Ct, fromQueue as D, make$6 as Dt, fromPubSub as E, failCauseUnsafe as Et, merge as F, unbounded as Ft, runFold as G, interrupt as Gt, run as H, makeUnsafe$1 as Ht, mkString as I, publish as It, splitLines as J, BadArgument as Jt, runForEach as K, interruptAll as Kt, mkUint8Array as L, shutdown$1 as Lt, map as M, sliding as Mt, mapEffect as N, take as Nt, fromReadableStream as O, offer as Ot, mapError as P, takeAll as Pt, tick as Q, onExit as R, subscribe as Rt, fromAsyncIterable as S, bounded as St, fromIterable as T, failCause$2 as Tt, runCollect as U, await_ as Ut, provideContext as V, set$1 as Vt, runDrain as W, getCurrent as Wt, suspend as X, systemError as Xt, succeed as Y, badArgument as Yt, takeWhile as Z, nominal as Zt, ensuring as _, fromTransform$1 as _t, FileTypeId as a, make$2 as at, filter as b, make$5 as bt, make as c, remove as ct, concat as d, drain as dt, toReadableStreamEffect as et, debounce as f, forEach as ft, encodeText as g, fromPull$1 as gt, empty as h, mapInput as ht, FileSystem as i, get as it, make$1 as j, shutdown as jt, fromSubscription as k, offerAll as kt, callback as l, set as lt, die as m, isSink as mt, TypeId as n, transduce as nt, Size as o, get$2 as ot, decodeText as p, fromChannel$1 as pt, runForEachArray as q, runIn as qt, FileDescriptor as r, unwrap as rt, WatchBackend as s, make$4 as st, Path as t, toReadableStreamWith as tt, catchCause as u, size as ut, fail as v, mapDone as vt, fromEffect as w, endUnsafe as wt, flatMap as x, makeUnsafe as xt, failCause as y, runFold$1 as yt, orDie as z, unbounded$1 as zt };
|
|
7032
7032
|
|
|
7033
|
-
//# sourceMappingURL=Path-
|
|
7033
|
+
//# sourceMappingURL=Path-DJTwK58E.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
const require_Schema = require("./Schema-
|
|
3
|
+
const require_Schema = require("./Schema-DaFukK_y.cjs");
|
|
4
4
|
//#region ../../node_modules/.bun/effect@4.0.0-beta.45/node_modules/effect/dist/Brand.js
|
|
5
5
|
/**
|
|
6
6
|
* This function returns a `Constructor` that **does not apply any runtime
|
|
@@ -7672,4 +7672,4 @@ Object.defineProperty(exports, "unwrap", {
|
|
|
7672
7672
|
}
|
|
7673
7673
|
});
|
|
7674
7674
|
|
|
7675
|
-
//# sourceMappingURL=Path-
|
|
7675
|
+
//# sourceMappingURL=Path-qpublmG3.cjs.map
|
|
@@ -12121,6 +12121,8 @@ const now$1 = /* @__PURE__ */ map$3(currentTimeMillis, makeUtc);
|
|
|
12121
12121
|
/** @internal */
|
|
12122
12122
|
const toUtc$1 = (self) => makeUtc(self.epochMilliseconds);
|
|
12123
12123
|
/** @internal */
|
|
12124
|
+
const distance$1 = /* @__PURE__ */ dual(2, (self, other) => millis(toEpochMillis$1(other) - toEpochMillis$1(self)));
|
|
12125
|
+
/** @internal */
|
|
12124
12126
|
const isGreaterThanOrEqualTo$2 = /* @__PURE__ */ isGreaterThanOrEqualTo$3(Order$4);
|
|
12125
12127
|
/** @internal */
|
|
12126
12128
|
const toDateUtc$1 = (self) => new Date(self.epochMilliseconds);
|
|
@@ -18860,6 +18862,30 @@ const now = now$1;
|
|
|
18860
18862
|
*/
|
|
18861
18863
|
const toUtc = toUtc$1;
|
|
18862
18864
|
/**
|
|
18865
|
+
* Calulate the difference between two `DateTime` values, returning a
|
|
18866
|
+
* `Duration` representing the amount of time between them.
|
|
18867
|
+
*
|
|
18868
|
+
* If `other` is *after* `self`, the result will be a positive `Duration`. If
|
|
18869
|
+
* `other` is *before* `self`, the result will be a negative `Duration`. If they
|
|
18870
|
+
* are equal, the result will be a `Duration` of zero.
|
|
18871
|
+
*
|
|
18872
|
+
* @since 3.6.0
|
|
18873
|
+
* @category comparisons
|
|
18874
|
+
* @example
|
|
18875
|
+
* ```ts
|
|
18876
|
+
* import { DateTime, Effect } from "effect"
|
|
18877
|
+
*
|
|
18878
|
+
* Effect.gen(function*() {
|
|
18879
|
+
* const now = yield* DateTime.now
|
|
18880
|
+
* const other = DateTime.add(now, { minutes: 1 })
|
|
18881
|
+
*
|
|
18882
|
+
* // returns Duration.minutes(1)
|
|
18883
|
+
* DateTime.distance(now, other)
|
|
18884
|
+
* })
|
|
18885
|
+
* ```
|
|
18886
|
+
*/
|
|
18887
|
+
const distance = distance$1;
|
|
18888
|
+
/**
|
|
18863
18889
|
* Checks if the first `DateTime` is after or equal to the second `DateTime`.
|
|
18864
18890
|
*
|
|
18865
18891
|
* @example
|
|
@@ -23325,7 +23351,7 @@ function getLastEncoding(ast) {
|
|
|
23325
23351
|
return ast.encoding ? getLastEncoding(ast.encoding[ast.encoding.length - 1].to) : ast;
|
|
23326
23352
|
}
|
|
23327
23353
|
/** @internal */
|
|
23328
|
-
function annotate(ast, annotations) {
|
|
23354
|
+
function annotate$1(ast, annotations) {
|
|
23329
23355
|
if (ast.checks) {
|
|
23330
23356
|
const last = ast.checks[ast.checks.length - 1];
|
|
23331
23357
|
return replaceChecks(ast, append$1(ast.checks.slice(0, -1), last.annotate(annotations)));
|
|
@@ -23366,7 +23392,7 @@ function appendTransformation(from, transformation, to) {
|
|
|
23366
23392
|
/** @internal */
|
|
23367
23393
|
function brand$1(ast, brand) {
|
|
23368
23394
|
const existing = resolveBrands(ast);
|
|
23369
|
-
return annotate(ast, { brands: existing ? [...existing, brand] : [brand] });
|
|
23395
|
+
return annotate$1(ast, { brands: existing ? [...existing, brand] : [brand] });
|
|
23370
23396
|
}
|
|
23371
23397
|
function mapOrSame(as, f) {
|
|
23372
23398
|
let changed = false;
|
|
@@ -24688,7 +24714,7 @@ const SchemaProto = {
|
|
|
24688
24714
|
return pipeArguments(this, arguments);
|
|
24689
24715
|
},
|
|
24690
24716
|
annotate(annotations) {
|
|
24691
|
-
return this.rebuild(annotate(this.ast, annotations));
|
|
24717
|
+
return this.rebuild(annotate$1(this.ast, annotations));
|
|
24692
24718
|
},
|
|
24693
24719
|
annotateKey(annotations) {
|
|
24694
24720
|
return this.rebuild(annotateKey(this.ast, annotations));
|
|
@@ -25467,6 +25493,35 @@ function declare(is, annotations) {
|
|
|
25467
25493
|
return declareConstructor()([], () => (input, ast) => is(input) ? succeed(input) : fail$1(new InvalidType(ast, some(input))), annotations);
|
|
25468
25494
|
}
|
|
25469
25495
|
/**
|
|
25496
|
+
* Adds metadata annotations to a schema without changing its runtime behavior.
|
|
25497
|
+
* This is the pipeable (curried) counterpart of the `.annotate` method.
|
|
25498
|
+
*
|
|
25499
|
+
* Annotations provide extra context used by documentation generators, JSON
|
|
25500
|
+
* Schema converters, error formatters, and other tooling. Common keys include
|
|
25501
|
+
* `title`, `description`, `examples`, `message`, and `identifier`.
|
|
25502
|
+
*
|
|
25503
|
+
* **Example** (Adding a title and description)
|
|
25504
|
+
*
|
|
25505
|
+
* ```ts
|
|
25506
|
+
* import { Schema } from "effect"
|
|
25507
|
+
*
|
|
25508
|
+
* const Age = Schema.Number.pipe(
|
|
25509
|
+
* Schema.annotate({
|
|
25510
|
+
* title: "Age",
|
|
25511
|
+
* description: "A non-negative integer representing age in years"
|
|
25512
|
+
* })
|
|
25513
|
+
* )
|
|
25514
|
+
* ```
|
|
25515
|
+
*
|
|
25516
|
+
* @category Annotations
|
|
25517
|
+
* @since 4.0.0
|
|
25518
|
+
*/
|
|
25519
|
+
function annotate(annotations) {
|
|
25520
|
+
return (self) => {
|
|
25521
|
+
return self.annotate(annotations);
|
|
25522
|
+
};
|
|
25523
|
+
}
|
|
25524
|
+
/**
|
|
25470
25525
|
* Returns `true` if `u` is a {@link SchemaError}.
|
|
25471
25526
|
*
|
|
25472
25527
|
* **Example** (Type guard in a catch block)
|
|
@@ -27535,7 +27590,7 @@ function makeClass(Inherited, identifier, struct$1, annotations, proto) {
|
|
|
27535
27590
|
return makeOption(getClassSchema(this))(input, options);
|
|
27536
27591
|
}
|
|
27537
27592
|
static annotate(annotations) {
|
|
27538
|
-
return this.rebuild(annotate(this.ast, annotations));
|
|
27593
|
+
return this.rebuild(annotate$1(this.ast, annotations));
|
|
27539
27594
|
}
|
|
27540
27595
|
static annotateKey(annotations) {
|
|
27541
27596
|
return this.rebuild(annotateKey(this.ast, annotations));
|
|
@@ -27815,6 +27870,6 @@ function onSerializerEnsureArray(ast) {
|
|
|
27815
27870
|
}
|
|
27816
27871
|
}
|
|
27817
27872
|
//#endregion
|
|
27818
|
-
export {
|
|
27873
|
+
export { encodeEffect as $, fail$3 as $a, map$7 as $c, doneExitFromCause as $i, pipe as $l, filterOrFail as $n, fiberInterruptAs as $o, runPromiseWith as $r, toSeconds as $s, stringifyJson as $t, Tuple as A, addFinalizerExit as Aa, succeed$5 as Ac, whileLoop as Ai, hash as Al, cached as An, ClockRef as Ao, matchCauseEffectEager as Ar, MinimumTraceLevel as As, withConstructorDefault as At, annotate as B, TracerEnabled as Ba, makeUnsafe$5 as Bc, snapshotUnsafe as Bi, isTagged as Bl, context as Bn, causePretty as Bo, promise as Br, format$3 as Bs, head as Bt, Record as C, provideMerge as Ca, makeEquivalence$4 as Cc, undefined_$1 as Ci, format$4 as Cl, andThen as Cn, isNoSuchElementError as Co, makeSpanScoped as Cr, sync$2 as Cs, optionalKey as Ct, TaggedStruct as D, unwrap as Da, isFailure$3 as Dc, useSpan as Di, equals$2 as Dl, as as Dn, pretty as Do, mapErrorEager as Dr, void_$3 as Ds, toCodecStringTree as Dt, TaggedErrorClass as E, sync$1 as Ea, getOrThrow as Ec, updateContext as Ei, symbolRedactable as El, annotateSpans as En, map$2 as Eo, mapError as Er, updateContext$1 as Es, toCodecJson as Et, UndefinedOr as F, makeUnsafe$3 as Fa, get$1 as Fc, withTracerEnabled as Fi, isNotNull as Fl, catchIf as Fn, addFinalizer$2 as Fo, onExitPrimitive as Fr, make$10 as Fs, encodeUnknownEffect$1 as Ft, decodeExit as G, failCause$1 as Ga, flatten$2 as Gc, both as Gi, constFalse as Gl, effectify as Gn, exitInterrupt as Go, raceFirst as Gr, isZero$1 as Gs, Transformation as Gt, declare as H, _await as Ha, mutate$2 as Hc, update as Hi, or as Hl, currentSpan as Hn, contextWith$1 as Ho, provideContext as Hr, fromInputUnsafe as Hs, size as Ht, Union as I, provide$3 as Ia, getOption as Ic, yieldNow as Ii, isNotNullish as Il, catchReason as In, andThen$1 as Io, onInterrupt as Ir, compose as Is, assign as It, decodeUnknownEffect as J, isDone as Ja, getOrElse$1 as Jc, isSchedule as Ji, constVoid as Jl, fail$1 as Jn, fiberAwait as Jo, retry as Jr, min$2 as Js, transformOrFail as Jt, decodeSync as K, interruptWith as Ka, fromNullishOr$3 as Kc, exponential as Ki, constTrue as Kl, ensuring as Kn, exitVoid as Ko, repeat as Kr, max$2 as Ks, splitKeyValue as Kt, Unknown as L, CurrentLogAnnotations as La, getOrUndefined as Lc, zipWith as Li, isNotUndefined as Ll, catchTag as Ln, as$1 as Lo, option as Lr, has as Ls, append as Lt, URLFromString as M, closeUnsafe as Ma, Service as Mc, withLogSpan as Mi, symbol$3 as Ml, catchCause as Mn, CurrentLoggers$1 as Mo, never$1 as Mr, ParentSpan as Ms, SchemaError as Mt, Uint8Array$1 as N, forkUnsafe as Na, add$2 as Nc, withParentSpan as Ni, compose$1 as Nl, catchDefect as Nn, LogLevelOrder as No, onError as Nr, Tracer as Ns, _is as Nt, TemplateLiteral as O, Scope as Oa, isSuccess$3 as Oc, void_$1 as Oi, symbol$2 as Ol, asSome as On, prettyErrors as Oo, match$1 as Or, CurrentErrorReporters as Os, toJsonSchemaDocument as Ot, Undefined as P, make$8 as Pa, empty$6 as Pc, withSpan as Pi, hasProperty as Pl, catchFilter as Pn, LogToStderr$1 as Po, onExit as Pr, externalSpan as Ps, decodeUnknownEffect$1 as Pt, encode as Q, die$1 as Qa, isSome as Qc, catchDone as Qi, identity as Ql, filterMapOrFail as Qn, fiberInterruptAllAs as Qo, runPromiseExitWith as Qr, toMillis as Qs, passthrough$1 as Qt, UnknownFromJsonString as R, CurrentLogSpans as Ra, getUnsafe$2 as Rc, counter as Ri, isNullish as Rl, catchTags as Rn, asSome$1 as Ro, orDie as Rr, toPredicate as Rs, drop as Rt, Option as S, provide$2 as Sa, headUnsafe as Sc, txRetry as Si, toJson as Sl, all as Sn, interruptors as So, logWarning as Sr, suspend$2 as Ss, optional as St, Struct as T, succeedContext as Ta, failVoid as Tc, uninterruptibleMask as Ti, redact as Tl, annotateLogs as Tn, makeDieReason as To, mapEager as Tr, uninterruptibleMask$1 as Ts, tag as Tt, decode as U, doneUnsafe as Ua, firstSomeOf as Uc, withAttributes as Ui, cast as Ul, delay as Un, defaultLogger as Uo, provideService as Ur, infinity as Us, toArray as Ut, brand as V, TracerTimingEnabled as Va, merge$1 as Vc, timer as Vi, isUndefined as Vl, contextWith as Vn, consolePretty as Vo, provide as Vr, fromInput as Vs, isEmpty as Vt, decodeEffect as W, fail$2 as Wa, flatMap$4 as Wc, addDelay as Wi, compose$2 as Wl, die as Wn, endSpan as Wo, race as Wr, isFinite$1 as Ws, toEncoded$1 as Wt, decodeUnknownOption as X, makeUnsafe$4 as Xa, getOrUndefined$1 as Xc, recurs as Xi, dual as Xl, fiber as Xn, fiberInterrupt as Xo, runForkWith as Xr, seconds as Xs, onSome as Xt, decodeUnknownExit as Y, make$9 as Ya, getOrNull as Yc, passthrough$2 as Yi, constant as Yl, failCause as Yn, fiberAwaitAll as Yo, runFork as Yr, minutes as Ys, forbidden as Yt, decodeUnknownSync as Z, succeed$2 as Za, isNone as Zc, spaced as Zi, flow as Zl, filter as Zn, fiberInterruptAll as Zo, runPromise as Zr, times as Zs, parseJson as Zt, NonEmptyArray as _, empty$1 as _a, makeEquivalence$3 as _c, timeoutOption as _i, isEffect$1 as _l, toUtc as _n, fromReasons as _o, log as _r, scopeAddFinalizerExit as _s, isSchemaError as _t, DateTimeUtc as a, parse as aa, flatMapNullishOr as ac, serviceOption as ai, make$14 as al, value as an, succeed$3 as ao, forEach as ar, forever$2 as as, isBetween as at, NullOr as b, merge as ba, empty$5 as bc, try_ as bi, Class$2 as bl, acquireUseRelease as bn, hasInterruptsOnly as bo, logFatal as br, succeed$4 as bs, makeFilter as bt, Defect as c, Class$1 as ca, isReadonlyArrayNonEmpty as cc, succeedNone as ci, EffectProto as cl, add as cn, NoSuchElementError as co, forkDetach as cr, isLogLevelGreaterThan as cs, isGreaterThanOrEqualTo as ct, Exit as d, CurrentMemoMap as da, makeEquivalence$2 as dc, sync as di, causeFail as dl, isGreaterThanOrEqualTo$1 as dn, combine as do, gen as dr, makeLatchUnsafe as ds, isMaxLength as dt, filterDone as ea, zero$1 as ec, runSync as ei, match$7 as el, transformOrFail$1 as en, failCause$2 as eo, flatMap as er, fiberJoin as es, encodeSync as et, pipeArguments as eu, Finite as f, build as fa, map$4 as fc, tap as fi, evaluate as fl, make$6 as fn, die$2 as fo, ignore as fr, makeSpanUnsafe as fs, isMaxProperties as ft, Never as g, effectDiscard as ga, isEmptyRecord as gc, timeout as gi, identifier as gl, toEpochMillis as gn, findError$1 as go, isEffect as gr, scope$1 as gs, isSchema as gt, Literals as h, effectContext as ha, sort as hc, tapErrorTag as hi, exitSucceed as hl, toDate as hn, filterInterruptors as ho, interruptible as hr, reportCauseUnsafe as hs, isPattern as ht, Class as i, clamp$1 as ia, filter$2 as ic, service as ii, make$13 as il, make$5 as in, match$3 as io, fnUntraced as ir, fnUntraced$1 as is, is as it, URL$1 as j, close as ja, Reference as jc, withFiber as ji, structure as jl, callback as jn, ConsoleRef as jo, matchEffect as jr, NativeSpan as js, withDecodingDefault as jt, Trim as k, addFinalizer$1 as ka, map$6 as kc, when as ki, array as kl, asVoid as kn, squash as ko, matchCauseEffect as kr, DisablePropagation as ks, toType as kt, Duration as l, Error$2 as la, last as lc, succeedSome as li, PipeInspectableProto as ll, distance as ln, StackTrace as lo, forkIn as lr, loggerMake as ls, isInt as lt, Literal as m, effect as ma, reverse as mc, tapError as mi, exitFailCause as ml, now as mn, fail$4 as mo, interrupt as mr, onExitPrimitive$1 as ms, isNonEmpty as mt, ArraySchema as n, matchEffect$1 as na, empty$3 as nc, scoped as ni, some as nl, Pointer as nn, isFailure$1 as no, flatten as nr, fiberRunIn as ns, encodeUnknownExit as nt, DateTimeUtcFromString as o, Clock as oa, fromIterable as oc, sleep as oi, strictEqual as ol, stringOrRedacted as on, void_$2 as oo, forever as or, forkDetach$1 as os, isFinite as ot, Int as p, buildWithMemoMap as pa, of$1 as pc, tapCause as pi, exitFail as pl, makeUnsafe$1 as pn, done$1 as po, ignoreCause as pr, onExit$1 as ps, isMinLength as pt, decodeTo as q, into as qa, fromUndefinedOr as qc, forever$1 as qi, constUndefined as ql, exit as qn, exitZipRight as qo, result as qr, millis as qs, transform as qt, Boolean as r, Random as ra, ensure as rc, scopedWith as ri, Number$5 as rl, makeFormatterDefault as rn, isSuccess$1 as ro, fn as rr, flatMap$2 as rs, fromJsonString as rt, DateValid as s, currentTimeMillis as sa, isArrayNonEmpty as sc, succeed as si, Done$1 as sl, encodeBase64Url$1 as sn, Done as so, forkChild as sr, getCurrentFiber as ss, isGreaterThan as st, Any as t, isDoneCause as ta, allocate as tc, scope as ti, none as tl, InvalidValue as tn, interrupt$1 as to, flatMapEager as tr, fiberJoinAll as ts, encodeUnknownEffect as tt, ErrorClass as u, TaggedError as ua, lastNonEmpty as uc, suspend$1 as ui, YieldableProto as ul, formatIso as un, UnknownError as uo, forkScoped as ur, makeLatch as us, isLessThanOrEqualTo as ut, NonEmptyString as v, fresh as va, map$5 as vc, timeoutOrElse as vi, withFiber$1 as vl, Transaction as vn, hasDies$1 as vo, logDebug as vr, sleep$1 as vs, link as vt, String$1 as w, succeed$1 as wa, fail$6 as wc, uninterruptible as wi, formatJson as wl, annotateCurrentSpan as wn, isTimeoutError as wo, map as wr, tracerLogger as ws, suspend as wt, Number$1 as x, mergeAll as xa, filterMap$2 as xc, tx as xi, NodeInspectSymbol as xl, addFinalizer as xn, interrupt$2 as xo, logInfo as xr, succeedNone$1 as xs, mutable as xt, Null as y, launch as ya, set$1 as yc, tryPromise as yi, BaseProto as yl, acquireRelease as yn, hasInterrupts$1 as yo, logError as yr, structuredMessage as ys, make as yt, Void as z, MinimumLogLevel as za, make$12 as zc, gauge as zi, isObject as zl, catch_ as zn, callback$1 as zo, orElseSucceed as zr, days as zs, empty as zt };
|
|
27819
27874
|
|
|
27820
|
-
//# sourceMappingURL=Schema-
|
|
27875
|
+
//# sourceMappingURL=Schema-CKuz8TX8.mjs.map
|
|
@@ -12121,6 +12121,8 @@ const now$1 = /* @__PURE__ */ map$3(currentTimeMillis, makeUtc);
|
|
|
12121
12121
|
/** @internal */
|
|
12122
12122
|
const toUtc$1 = (self) => makeUtc(self.epochMilliseconds);
|
|
12123
12123
|
/** @internal */
|
|
12124
|
+
const distance$1 = /* @__PURE__ */ dual(2, (self, other) => millis(toEpochMillis$1(other) - toEpochMillis$1(self)));
|
|
12125
|
+
/** @internal */
|
|
12124
12126
|
const isGreaterThanOrEqualTo$2 = /* @__PURE__ */ isGreaterThanOrEqualTo$3(Order$4);
|
|
12125
12127
|
/** @internal */
|
|
12126
12128
|
const toDateUtc$1 = (self) => new Date(self.epochMilliseconds);
|
|
@@ -18860,6 +18862,30 @@ const now = now$1;
|
|
|
18860
18862
|
*/
|
|
18861
18863
|
const toUtc = toUtc$1;
|
|
18862
18864
|
/**
|
|
18865
|
+
* Calulate the difference between two `DateTime` values, returning a
|
|
18866
|
+
* `Duration` representing the amount of time between them.
|
|
18867
|
+
*
|
|
18868
|
+
* If `other` is *after* `self`, the result will be a positive `Duration`. If
|
|
18869
|
+
* `other` is *before* `self`, the result will be a negative `Duration`. If they
|
|
18870
|
+
* are equal, the result will be a `Duration` of zero.
|
|
18871
|
+
*
|
|
18872
|
+
* @since 3.6.0
|
|
18873
|
+
* @category comparisons
|
|
18874
|
+
* @example
|
|
18875
|
+
* ```ts
|
|
18876
|
+
* import { DateTime, Effect } from "effect"
|
|
18877
|
+
*
|
|
18878
|
+
* Effect.gen(function*() {
|
|
18879
|
+
* const now = yield* DateTime.now
|
|
18880
|
+
* const other = DateTime.add(now, { minutes: 1 })
|
|
18881
|
+
*
|
|
18882
|
+
* // returns Duration.minutes(1)
|
|
18883
|
+
* DateTime.distance(now, other)
|
|
18884
|
+
* })
|
|
18885
|
+
* ```
|
|
18886
|
+
*/
|
|
18887
|
+
const distance = distance$1;
|
|
18888
|
+
/**
|
|
18863
18889
|
* Checks if the first `DateTime` is after or equal to the second `DateTime`.
|
|
18864
18890
|
*
|
|
18865
18891
|
* @example
|
|
@@ -23325,7 +23351,7 @@ function getLastEncoding(ast) {
|
|
|
23325
23351
|
return ast.encoding ? getLastEncoding(ast.encoding[ast.encoding.length - 1].to) : ast;
|
|
23326
23352
|
}
|
|
23327
23353
|
/** @internal */
|
|
23328
|
-
function annotate(ast, annotations) {
|
|
23354
|
+
function annotate$1(ast, annotations) {
|
|
23329
23355
|
if (ast.checks) {
|
|
23330
23356
|
const last = ast.checks[ast.checks.length - 1];
|
|
23331
23357
|
return replaceChecks(ast, append$1(ast.checks.slice(0, -1), last.annotate(annotations)));
|
|
@@ -23366,7 +23392,7 @@ function appendTransformation(from, transformation, to) {
|
|
|
23366
23392
|
/** @internal */
|
|
23367
23393
|
function brand$1(ast, brand) {
|
|
23368
23394
|
const existing = resolveBrands(ast);
|
|
23369
|
-
return annotate(ast, { brands: existing ? [...existing, brand] : [brand] });
|
|
23395
|
+
return annotate$1(ast, { brands: existing ? [...existing, brand] : [brand] });
|
|
23370
23396
|
}
|
|
23371
23397
|
function mapOrSame(as, f) {
|
|
23372
23398
|
let changed = false;
|
|
@@ -24688,7 +24714,7 @@ const SchemaProto = {
|
|
|
24688
24714
|
return pipeArguments(this, arguments);
|
|
24689
24715
|
},
|
|
24690
24716
|
annotate(annotations) {
|
|
24691
|
-
return this.rebuild(annotate(this.ast, annotations));
|
|
24717
|
+
return this.rebuild(annotate$1(this.ast, annotations));
|
|
24692
24718
|
},
|
|
24693
24719
|
annotateKey(annotations) {
|
|
24694
24720
|
return this.rebuild(annotateKey(this.ast, annotations));
|
|
@@ -25467,6 +25493,35 @@ function declare(is, annotations) {
|
|
|
25467
25493
|
return declareConstructor()([], () => (input, ast) => is(input) ? succeed(input) : fail$1(new InvalidType(ast, some(input))), annotations);
|
|
25468
25494
|
}
|
|
25469
25495
|
/**
|
|
25496
|
+
* Adds metadata annotations to a schema without changing its runtime behavior.
|
|
25497
|
+
* This is the pipeable (curried) counterpart of the `.annotate` method.
|
|
25498
|
+
*
|
|
25499
|
+
* Annotations provide extra context used by documentation generators, JSON
|
|
25500
|
+
* Schema converters, error formatters, and other tooling. Common keys include
|
|
25501
|
+
* `title`, `description`, `examples`, `message`, and `identifier`.
|
|
25502
|
+
*
|
|
25503
|
+
* **Example** (Adding a title and description)
|
|
25504
|
+
*
|
|
25505
|
+
* ```ts
|
|
25506
|
+
* import { Schema } from "effect"
|
|
25507
|
+
*
|
|
25508
|
+
* const Age = Schema.Number.pipe(
|
|
25509
|
+
* Schema.annotate({
|
|
25510
|
+
* title: "Age",
|
|
25511
|
+
* description: "A non-negative integer representing age in years"
|
|
25512
|
+
* })
|
|
25513
|
+
* )
|
|
25514
|
+
* ```
|
|
25515
|
+
*
|
|
25516
|
+
* @category Annotations
|
|
25517
|
+
* @since 4.0.0
|
|
25518
|
+
*/
|
|
25519
|
+
function annotate(annotations) {
|
|
25520
|
+
return (self) => {
|
|
25521
|
+
return self.annotate(annotations);
|
|
25522
|
+
};
|
|
25523
|
+
}
|
|
25524
|
+
/**
|
|
25470
25525
|
* Returns `true` if `u` is a {@link SchemaError}.
|
|
25471
25526
|
*
|
|
25472
25527
|
* **Example** (Type guard in a catch block)
|
|
@@ -27535,7 +27590,7 @@ function makeClass(Inherited, identifier, struct$1, annotations, proto) {
|
|
|
27535
27590
|
return makeOption(getClassSchema(this))(input, options);
|
|
27536
27591
|
}
|
|
27537
27592
|
static annotate(annotations) {
|
|
27538
|
-
return this.rebuild(annotate(this.ast, annotations));
|
|
27593
|
+
return this.rebuild(annotate$1(this.ast, annotations));
|
|
27539
27594
|
}
|
|
27540
27595
|
static annotateKey(annotations) {
|
|
27541
27596
|
return this.rebuild(annotateKey(this.ast, annotations));
|
|
@@ -28391,6 +28446,12 @@ Object.defineProperty(exports, "andThen$1", {
|
|
|
28391
28446
|
return andThen$1;
|
|
28392
28447
|
}
|
|
28393
28448
|
});
|
|
28449
|
+
Object.defineProperty(exports, "annotate", {
|
|
28450
|
+
enumerable: true,
|
|
28451
|
+
get: function() {
|
|
28452
|
+
return annotate;
|
|
28453
|
+
}
|
|
28454
|
+
});
|
|
28394
28455
|
Object.defineProperty(exports, "annotateCurrentSpan", {
|
|
28395
28456
|
enumerable: true,
|
|
28396
28457
|
get: function() {
|
|
@@ -28787,6 +28848,12 @@ Object.defineProperty(exports, "die$2", {
|
|
|
28787
28848
|
return die$2;
|
|
28788
28849
|
}
|
|
28789
28850
|
});
|
|
28851
|
+
Object.defineProperty(exports, "distance", {
|
|
28852
|
+
enumerable: true,
|
|
28853
|
+
get: function() {
|
|
28854
|
+
return distance;
|
|
28855
|
+
}
|
|
28856
|
+
});
|
|
28790
28857
|
Object.defineProperty(exports, "done", {
|
|
28791
28858
|
enumerable: true,
|
|
28792
28859
|
get: function() {
|
|
@@ -31044,4 +31111,4 @@ Object.defineProperty(exports, "zipWith", {
|
|
|
31044
31111
|
}
|
|
31045
31112
|
});
|
|
31046
31113
|
|
|
31047
|
-
//# sourceMappingURL=Schema-
|
|
31114
|
+
//# sourceMappingURL=Schema-DaFukK_y.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
const require_Schema = require("./Schema-
|
|
4
|
-
const require_Path = require("./Path-
|
|
3
|
+
const require_Schema = require("./Schema-DaFukK_y.cjs");
|
|
4
|
+
const require_Path = require("./Path-qpublmG3.cjs");
|
|
5
5
|
//#region ../../node_modules/.bun/effect@4.0.0-beta.45/node_modules/effect/dist/unstable/reactivity/Reactivity.js
|
|
6
6
|
/**
|
|
7
7
|
* @since 4.0.0
|
|
@@ -1170,4 +1170,4 @@ Object.defineProperty(exports, "makeCompilerSqlite", {
|
|
|
1170
1170
|
}
|
|
1171
1171
|
});
|
|
1172
1172
|
|
|
1173
|
-
//# sourceMappingURL=SqlError-
|
|
1173
|
+
//# sourceMappingURL=SqlError-CsWFS-OU.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import { At as offerUnsafe, D as fromQueue, Dt as make$4, Et as failCauseUnsafe, qt as runIn, rt as unwrap } from "./Path-
|
|
3
|
+
import { Al as hash, Bn as context, Cr as makeSpanScoped, Di as useSpan, E as TaggedErrorClass, Fc as get, Hc as mutate, Hr as provideContext, I as Union, Ia as provide, Ic as getOption, Kn as ensuring, Mc as Service, Ms as ParentSpan, Nc as add, Oa as Scope, Oi as void_, Pa as make$3, Pl as hasProperty, Pr as onExit, Rr as orDie, St as optional, Ti as uninterruptibleMask, Ur as provideService, Va as TracerTimingEnabled, Vn as contextWith, Wo as endSpan, Xr as runForkWith, Zl as flow, ai as serviceOption, c as Defect, cl as EffectProto, di as sync, dr as gen, el as match, er as flatMap, fi as tap, fl as evaluate, fs as makeSpanUnsafe, gl as identifier$1, ir as fnUntraced, ja as close, jc as Reference, ji as withFiber, ka as addFinalizer, ma as effect, ni as scoped, oa as Clock, ql as constUndefined, qn as exit, ro as isSuccess, si as succeed, ui as suspend, w as String$1, wr as map } from "./Schema-CKuz8TX8.mjs";
|
|
4
|
+
import { At as offerUnsafe, D as fromQueue, Dt as make$4, Et as failCauseUnsafe, qt as runIn, rt as unwrap } from "./Path-DJTwK58E.mjs";
|
|
5
5
|
//#region ../../node_modules/.bun/effect@4.0.0-beta.45/node_modules/effect/dist/unstable/reactivity/Reactivity.js
|
|
6
6
|
/**
|
|
7
7
|
* @since 4.0.0
|
|
@@ -1037,4 +1037,4 @@ const classifySqliteError = (cause, { message, operation } = {}) => {
|
|
|
1037
1037
|
//#endregion
|
|
1038
1038
|
export { layer as S, defaultEscape as _, DeadlockError as a, makeCompiler as b, SqlError as c, UnknownError as d, classifySqliteError as f, custom as g, make as h, ConstraintError as i, SqlSyntaxError as l, SqlClient as m, AuthorizationError as n, LockTimeoutError as o, SafeIntegers as p, ConnectionError as r, SerializationError as s, AuthenticationError as t, StatementTimeoutError as u, defaultTransforms as v, makeCompilerSqlite as x, fragment as y };
|
|
1039
1039
|
|
|
1040
|
-
//# sourceMappingURL=SqlError-
|
|
1040
|
+
//# sourceMappingURL=SqlError-DhK0hV8S.mjs.map
|