codexuse-cli 3.8.1 → 3.9.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 +496 -141
- package/dist/index.js.map +1 -1
- package/dist/server/{NodeSqliteClient-8mlwim6r.mjs → NodeSqliteClient-Cx2_VxdP.mjs} +9 -10
- package/dist/server/{SqlError-4YSIrGT4.mjs → SqlError-CoqftVSq.mjs} +2 -2
- package/dist/server/{SqliteClient-DkbUL5wr.mjs → SqliteClient-CXjquy8x.mjs} +3 -3
- package/dist/server/index.mjs +32103 -1852
- package/dist/server/{open-BM96ykXl.mjs → open-DX6_a9Ta.mjs} +1 -1
- package/package.json +2 -2
- package/dist/server/SqlClient-8hJa5MAm.mjs +0 -27647
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as SqlError } from "./SqlError-4YSIrGT4.mjs";
|
|
3
|
+
import { A as try_, B as get, C as flatMap, D as succeed, E as scope, F as provide, H as make$4, I as Scope, L as addFinalizer, M as void_, N as withFiber, O as sync, P as effectServices, R as Service, S as fail, T as map, U as minutes, V as getUnsafe, W as identity, _ as getCurrent, a as makeCompilerSqlite, b as as, c as get$1, g as make$2, h as die$1, i as defaultTransforms, j as uninterruptibleMask, k as tap, l as make$1, n as SqlClient, o as layer$1, r as make$3, s as unwrap, t as SafeIntegers, v as acquireUseRelease, w as gen, x as die, z as add } from "./index.mjs";
|
|
4
|
+
import { t as SqlError } from "./SqlError-CoqftVSq.mjs";
|
|
6
5
|
import { DatabaseSync } from "node:sqlite";
|
|
7
6
|
//#region src/persistence/NodeSqliteClient.ts
|
|
8
7
|
/**
|
|
@@ -47,7 +46,7 @@ const makeWithDatabase = (options, openDatabase) => gen(function* () {
|
|
|
47
46
|
statementReaderCache.set(statement, value);
|
|
48
47
|
return value;
|
|
49
48
|
};
|
|
50
|
-
const prepareCache = yield* make$
|
|
49
|
+
const prepareCache = yield* make$1({
|
|
51
50
|
capacity: options.prepareCacheSize ?? 200,
|
|
52
51
|
timeToLive: options.prepareCacheTTL ?? minutes(10),
|
|
53
52
|
lookup: (sql) => try_({
|
|
@@ -107,9 +106,9 @@ const makeWithDatabase = (options, openDatabase) => gen(function* () {
|
|
|
107
106
|
}
|
|
108
107
|
});
|
|
109
108
|
});
|
|
110
|
-
const semaphore = yield* make$
|
|
109
|
+
const semaphore = yield* make$2(1);
|
|
111
110
|
const connection = yield* makeConnection;
|
|
112
|
-
return yield* make$
|
|
111
|
+
return yield* make$3({
|
|
113
112
|
acquirer: semaphore.withPermits(1)(succeed(connection)),
|
|
114
113
|
compiler,
|
|
115
114
|
transactionAcquirer: uninterruptibleMask((restore) => {
|
|
@@ -131,10 +130,10 @@ const makeMemory = (config = {}) => makeWithDatabase({
|
|
|
131
130
|
}, () => {
|
|
132
131
|
return new DatabaseSync(":memory:", { allowExtension: config.allowExtension ?? false });
|
|
133
132
|
});
|
|
134
|
-
const layerConfig = (config) => effectServices(unwrap(config).asEffect().pipe(flatMap(make), map((client) => make$
|
|
135
|
-
const layer = (config) => effectServices(map(make(config), (client) => make$
|
|
136
|
-
const layerMemory = (config = {}) => effectServices(map(makeMemory(config), (client) => make$
|
|
133
|
+
const layerConfig = (config) => effectServices(unwrap(config).asEffect().pipe(flatMap(make), map((client) => make$4(SqliteClient, client).pipe(add(SqlClient, client))))).pipe(provide(layer$1));
|
|
134
|
+
const layer = (config) => effectServices(map(make(config), (client) => make$4(SqliteClient, client).pipe(add(SqlClient, client)))).pipe(provide(layer$1));
|
|
135
|
+
const layerMemory = (config = {}) => effectServices(map(makeMemory(config), (client) => make$4(SqliteClient, client).pipe(add(SqlClient, client)))).pipe(provide(layer$1));
|
|
137
136
|
//#endregion
|
|
138
137
|
export { SqliteClient, TypeId, layer, layerConfig, layerMemory };
|
|
139
138
|
|
|
140
|
-
//# sourceMappingURL=NodeSqliteClient-
|
|
139
|
+
//# sourceMappingURL=NodeSqliteClient-Cx2_VxdP.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { d as Number, f as String, m as optional, p as TaggedErrorClass, u as Defect } from "./index.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-CoqftVSq.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 try_, B as get, C as flatMap, D as succeed, F as provide, H as make$3, I as Scope, L as addFinalizer$1, N as withFiber, O as sync, P as effectServices, R as Service, S as fail, T as map, V as getUnsafe, W as identity, _ as getCurrent, a as makeCompilerSqlite, b as as, g as make$1, h as die, i as defaultTransforms, j as uninterruptibleMask, k as tap, n as SqlClient, o as layer$1, r as make$2, s as unwrap, t as SafeIntegers, w as gen, y as addFinalizer, z as add } from "./index.mjs";
|
|
4
|
+
import { t as SqlError } from "./SqlError-CoqftVSq.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-CXjquy8x.mjs.map
|