codexuse-cli 3.5.6 → 3.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +189 -87
- package/dist/index.js.map +1 -1
- package/dist/server/{NodeSqliteClient-C3G_wOtl.mjs → NodeSqliteClient-BXfshIvF.mjs} +3 -3
- package/dist/server/{SqlClient-DExl4DLk.mjs → SqlClient-DSf3-WP1.mjs} +35 -2
- package/dist/server/{SqlError-CJg2cz5q.mjs → SqlError-Djvykpuc.mjs} +2 -2
- package/dist/server/{SqliteClient-DG8tJKWU.mjs → SqliteClient-DBy8Gtib.mjs} +3 -3
- package/dist/server/index.mjs +3127 -2661
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { $a as add, Ai as effectServices, Fr as map, It as die$1, Ni as provide, Nn as getCurrent, Qa as Service, Qn as as, Qr as scope, Ri as Scope, Tr as gen, a as makeCompilerSqlite, ci as tap, g as unwrap, gr as flatMap, hi as uninterruptibleMask, i as defaultTransforms, ii as succeed, lo as minutes, lr as die, n as SqlClient, no as getUnsafe, o as layer$1, pi as try_, pn as make$1, pr as fail, qn as acquireUseRelease, r as make$2, ro as make$3, si as sync, t as SafeIntegers, to as get, vi as void_, yi as withFiber, ys as identity, zi as addFinalizer } from "./SqlClient-DSf3-WP1.mjs";
|
|
4
4
|
import { n as make$4, t as get$1 } from "./index.mjs";
|
|
5
|
-
import { t as SqlError } from "./SqlError-
|
|
5
|
+
import { t as SqlError } from "./SqlError-Djvykpuc.mjs";
|
|
6
6
|
import { DatabaseSync } from "node:sqlite";
|
|
7
7
|
//#region src/persistence/NodeSqliteClient.ts
|
|
8
8
|
/**
|
|
@@ -137,4 +137,4 @@ const layerMemory = (config = {}) => effectServices(map(makeMemory(config), (cli
|
|
|
137
137
|
//#endregion
|
|
138
138
|
export { SqliteClient, TypeId, layer, layerConfig, layerMemory };
|
|
139
139
|
|
|
140
|
-
//# sourceMappingURL=NodeSqliteClient-
|
|
140
|
+
//# sourceMappingURL=NodeSqliteClient-BXfshIvF.mjs.map
|
|
@@ -13578,6 +13578,39 @@ const forkIn = forkIn$1;
|
|
|
13578
13578
|
*/
|
|
13579
13579
|
const forkScoped = forkScoped$1;
|
|
13580
13580
|
/**
|
|
13581
|
+
* Forks the effect into a new fiber attached to the global scope. Because the
|
|
13582
|
+
* new fiber is attached to the global scope, when the fiber executing the
|
|
13583
|
+
* returned effect terminates, the forked fiber will continue running.
|
|
13584
|
+
*
|
|
13585
|
+
* @example
|
|
13586
|
+
* ```ts
|
|
13587
|
+
* import { Effect } from "effect"
|
|
13588
|
+
*
|
|
13589
|
+
* const daemonTask = Effect.gen(function*() {
|
|
13590
|
+
* while (true) {
|
|
13591
|
+
* yield* Effect.sleep("1 second")
|
|
13592
|
+
* yield* Effect.log("Daemon running...")
|
|
13593
|
+
* }
|
|
13594
|
+
* })
|
|
13595
|
+
*
|
|
13596
|
+
* const program = Effect.gen(function*() {
|
|
13597
|
+
* const fiber = yield* daemonTask.pipe(Effect.forkDetach)
|
|
13598
|
+
*
|
|
13599
|
+
* // or fork a fiber that starts immediately:
|
|
13600
|
+
* yield* daemonTask.pipe(Effect.forkDetach({ startImmediately: true }))
|
|
13601
|
+
*
|
|
13602
|
+
* yield* Effect.log("Daemon started")
|
|
13603
|
+
* yield* Effect.sleep("3 seconds")
|
|
13604
|
+
* // Daemon continues running after this effect completes
|
|
13605
|
+
* return "main completed"
|
|
13606
|
+
* })
|
|
13607
|
+
* ```
|
|
13608
|
+
*
|
|
13609
|
+
* @since 2.0.0
|
|
13610
|
+
* @category Supervision & Fibers
|
|
13611
|
+
*/
|
|
13612
|
+
const forkDetach = forkDetach$1;
|
|
13613
|
+
/**
|
|
13581
13614
|
* The foundational function for running effects, returning a "fiber" that can
|
|
13582
13615
|
* be observed or interrupted.
|
|
13583
13616
|
*
|
|
@@ -27947,6 +27980,6 @@ var TransactionConnection = class extends Service()("effect/sql/SqlClient/Transa
|
|
|
27947
27980
|
*/
|
|
27948
27981
|
const SafeIntegers = /* @__PURE__ */ Reference("effect/sql/SqlClient/SafeIntegers", { defaultValue: () => false });
|
|
27949
27982
|
//#endregion
|
|
27950
|
-
export { encodeUnknownEffect as $,
|
|
27983
|
+
export { encodeUnknownEffect as $, add$2 as $a, isFailure$1 as $i, asSome as $n, BaseProto as $o, scoped as $r, runFold as $t, NullOr as A, gen$1 as Aa, effectServices as Ai, make$15 as An, getOrThrow as Ao, log as Ar, Size as At, Union as B, succeedNone$1 as Ba, close as Bi, parseJson as Bn, map$10 as Bo, onInterrupt as Br, fromChannel as Bt, Finite as C, fiberInterrupt as Ca, catchDone as Ci, offerAll as Cn, sort as Co, forkIn as Cr, assign as Ct, NonEmptyArray as D, forkDetach$1 as Da, TaggedError as Di, unbounded as Dn, makeEquivalence$3 as Do, ignoreCause as Dr, FileDescriptor as Dt, Literals as E, forever$2 as Ea, Error$2 as Ei, take as En, filterMap$2 as Eo, ignore as Er, TypeId$4 as Et, TaggedErrorClass as F, scopeAddFinalizerExit as Fa, succeed$3 as Fi, badArgument as Fn, getOrElse$1 as Fo, map$3 as Fr, decodeText as Ft, decodeEffect as G, updateServices$1 as Ga, fail$5 as Gi, encodeBase64Url as Gn, make$29 as Go, provideService as Gr, fromReadableStream as Gt, Void as H, sync$2 as Ha, provide$3 as Hi, InvalidValue as Hn, none as Ho, orElseSucceed as Hr, fromIterable as Ht, TemplateLiteral as I, servicesWith$1 as Ia, sync$1 as Ii, systemError as In, getOrNull as Io, mapError as Ir, die as It, decodeUnknownEffect as J, CurrentLogSpans as Ja, make$25 as Ji, addFinalizer as Jn, PipeInspectableProto as Jo, runFork as Jr, merge as Jt, decodeExit as K, void_$3 as Ka, failCause$3 as Ki, acquireRelease as Kn, make$30 as Ko, provideServices as Kr, isStream as Kt, Trim as L, sleep$1 as La, unwrap$4 as Li, nominal as Ln, getOrUndefined as Lo, matchCauseEffect as Lr, empty as Lt, Record as M, loggerMake as Ma, mergeAll$1 as Mi, makeUnsafe$3 as Mn, succeed$7 as Mo, logError as Mr, make$7 as Mt, String$1 as N, onExit$3 as Na, provide$2 as Ni, getCurrent as Nn, filter$6 as No, logInfo as Nr, callback as Nt, NonEmptyString as O, formatLabel as Oa, effect as Oi, publish as On, fail$9 as Oo, interrupt$1 as Or, FileSystem as Ot, Struct as P, scope$1 as Pa, provideMerge as Pi, BadArgument as Pn, fromNullishOr$3 as Po, logWarning as Pr, concat as Pt, encodeEffect as Q, Service as Qa, hasInterrupts as Qi, as as Qn, withFiber$1 as Qo, scope as Qr, runCollect as Qt, Tuple as R, structuredMessage as Ra, Scope as Ri, transform as Rn, isNone as Ro, matchEffect as Rr, fail$1 as Rt, ErrorClass as S, defaultLogger as Sa, zipWith as Si, offer as Sn, of as So, forkDetach as Sr, withDecodingDefault as St, Literal as T, fnUntraced$1 as Ta, Class as Ti, shutdown as Tn, map$9 as To, gen as Tr, Path as Tt, brand as U, tracerLogger as Ua, _await as Ui, makeFormatterDefault as Un, some as Uo, promise as Ur, fromPubSub as Ut, Unknown as V, suspend$4 as Va, make$24 as Vi, stringifyJson as Vn, match$7 as Vo, orDie as Vr, fromEffect as Vt, declare as W, uninterruptibleMask$1 as Wa, doneUnsafe as Wi, make$21 as Wn, Number$5 as Wo, provide as Wr, fromQueue as Wt, decodeUnknownSync as X, DisablePropagation as Xa, succeed$4 as Xi, andThen as Xn, exitSucceed as Xo, runPromiseWith as Xr, onExit as Xt, decodeUnknownExit as Y, MinimumLogLevel as Ya, makeUnsafe$7 as Yi, all$1 as Yn, YieldableProto as Yo, runPromise as Yr, mkString as Yt, encode as Z, Reference as Za, fail$6 as Zi, annotateLogs as Zn, isEffect$1 as Zo, runSync as Zr, run$1 as Zt, url as _, andThen$1 as _a, useSpan as _i, set as _n, fromIterable$2 as _o, fn as _r, constVoid as _s, tag as _t, makeCompilerSqlite as a, UnknownError as aa, succeedNone as ai, unwrap$1 as an, fromInputUnsafe as ao, catchFilter as ar, symbolRedactable as as, isLessThanOrEqualTo as at, DateValid as b, causePretty as ba, withParentSpan as bi, failCauseUnsafe as bn, makeEquivalence$1 as bo, forever as br, pipe as bs, toType as bt, FalseValues as c, hasInterrupts$1 as ca, tap as ci, drain as cn, isZero$1 as co, catch_ as cr, structure as cs, isMinLength as ct, boolean as d, squash as da, timeoutOrElse as di, fromTransform$1 as dn, toMillis as do, ensuring as dr, isNotNull as ds, isSchemaError as dt, isSuccess$1 as ea, service as ei, runForEach as en, empty$5 as eo, asVoid as er, Class$1 as es, fromJsonString as et, map as f, ClockRef as fa, tryPromise as fi, mapDone as fn, toSeconds as fo, exit as fr, isNotUndefined as fs, link as ft, unwrap as g, addFinalizer$2 as ga, updateServices as gi, remove as gn, flatMapNullishOr as go, flatMap$2 as gr, constTrue as gs, suspend as gt, string as h, LogToStderr as ha, uninterruptibleMask as hi, make$12 as hn, filter$3 as ho, filterOrFail as hr, constFalse as hs, optional as ht, defaultTransforms as i, NoSuchElementError as ia, succeed$2 as ii, transduce as in, merge$2 as io, catchDefect as ir, redact as is, isGreaterThanOrEqualTo as it, Number$1 as j, ignore$1 as ja, empty$3 as ji, set$1 as jn, isFailure$3 as jo, logDebug as jr, WatchBackend as jt, Null as k, formatLogSpan as ka, effectDiscard as ki, unbounded$1 as kn, failVoid as ko, isEffect as kr, FileTypeId as kt, TrueValues as l, hasInterruptsOnly as la, tapCause as li, fromChannel$1 as ln, minutes as lo, die$2 as lr, symbol$3 as ls, isNonEmpty as lt, port as m, CurrentLoggers as ma, uninterruptible as mi, get$2 as mn, ensure as mo, failCause$2 as mr, isUndefined as ms, mutable as mt, SqlClient as n, void_$2 as na, services as ni, suspend$1 as nn, getUnsafe as no, callback$1 as nr, format$3 as ns, isBetween as nt, layer as o, done$1 as oa, suspend$3 as oi, get as on, infinity as oo, catchTag as or, symbol$2 as os, isMaxLength as ot, option as p, ConsoleRef as pa, try_ as pi, make$11 as pn, zero$1 as po, fail$4 as pr, isNullish as ps, makeFilter as pt, decodeTo as q, CurrentLogAnnotations as qa, isDone as qi, acquireUseRelease as qn, strictEqual as qo, result as qr, make$8 as qt, make as r, Done as ra, servicesWith as ri, toReadableStreamEffect as rn, make$27 as ro, catchCause as rr, formatJson as rs, isGreaterThan$1 as rt, Boolean as s, fail$7 as sa, sync as si, make$9 as sn, isFinite$1 as so, catchTags as sr, array as ss, isMaxProperties as st, SafeIntegers as t, succeed$5 as ta, serviceOption as ti, splitLines as tn, get$3 as to, cached as tr, NodeInspectSymbol as ts, is as tt, all as u, pretty as ua, timeoutOption as ui, isSink as un, seconds as uo, effectify as ur, hasProperty as us, isPattern as ut, Array$1 as v, as$1 as va, void_$1 as vi, size as vn, isArray as vo, fnUntraced as vr, dual as vs, toCodecStringTree as vt, Int as w, flatMap$4 as wa, clamp$1 as wi, offerUnsafe as wn, makeEquivalence$2 as wo, forkScoped as wr, omit as wt, Defect as x, consolePretty as xa, withSpan as xi, make$13 as xn, map$8 as xo, forkChild as xr, pipeArguments as xs, withConstructorDefault as xt, Boolean$1 as y, asSome$1 as ya, withFiber as yi, endUnsafe as yn, isReadonlyArrayNonEmpty as yo, forEach$1 as yr, identity as ys, toJsonSchemaDocument as yt, URLFromString as z, succeed$6 as za, addFinalizer$1 as zi, transformOrFail as zn, isSome as zo, never$4 as zr, flatMap as zt };
|
|
27951
27984
|
|
|
27952
|
-
//# sourceMappingURL=SqlClient-
|
|
27985
|
+
//# sourceMappingURL=SqlClient-DSf3-WP1.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
|
|
3
|
-
import { F as TaggedErrorClass, N as String, ht as optional, j as Number, x as Defect } from "./SqlClient-
|
|
3
|
+
import { F as TaggedErrorClass, N as String, ht as optional, j as Number, x as Defect } from "./SqlClient-DSf3-WP1.mjs";
|
|
4
4
|
//#region ../../node_modules/.bun/effect@https+++pkg.pr.new+Effect-TS+effect-smol+effect@8881a9b/node_modules/effect/dist/unstable/sql/SqlError.js
|
|
5
5
|
/**
|
|
6
6
|
* @since 4.0.0
|
|
@@ -25,4 +25,4 @@ TaggedErrorClass("effect/sql/ResultLengthMismatch")("ResultLengthMismatch", {
|
|
|
25
25
|
//#endregion
|
|
26
26
|
export { SqlError as t };
|
|
27
27
|
|
|
28
|
-
//# sourceMappingURL=SqlError-
|
|
28
|
+
//# sourceMappingURL=SqlError-Djvykpuc.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import { t as SqlError } from "./SqlError-
|
|
3
|
+
import { $a as add, Ai as effectServices, Fr as map, It as die, Jn as addFinalizer, Ni as provide, Nn as getCurrent, Qa as Service, Qn as as, Ri as Scope, Tr as gen, a as makeCompilerSqlite, ci as tap, g as unwrap, gr as flatMap, hi as uninterruptibleMask, i as defaultTransforms, ii as succeed, n as SqlClient, no as getUnsafe, o as layer$1, pi as try_, pn as make$1, pr as fail, r as make$2, ro as make$3, si as sync, t as SafeIntegers, to as get, yi as withFiber, ys as identity, zi as addFinalizer$1 } from "./SqlClient-DSf3-WP1.mjs";
|
|
4
|
+
import { t as SqlError } from "./SqlError-Djvykpuc.mjs";
|
|
5
5
|
import { Database } from "bun:sqlite";
|
|
6
6
|
//#region ../../node_modules/.bun/@effect+sql-sqlite-bun@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+sql-sqlite-bun@8881a9b+eecd35a1726d7096/node_modules/@effect/sql-sqlite-bun/dist/SqliteClient.js
|
|
7
7
|
/**
|
|
@@ -124,4 +124,4 @@ const layer = (config) => effectServices(map(make(config), (client) => make$3(Sq
|
|
|
124
124
|
//#endregion
|
|
125
125
|
export { SqliteClient, TypeId, layer, layerConfig, make };
|
|
126
126
|
|
|
127
|
-
//# sourceMappingURL=SqliteClient-
|
|
127
|
+
//# sourceMappingURL=SqliteClient-DBy8Gtib.mjs.map
|