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.
@@ -1,8 +1,7 @@
1
1
  #!/usr/bin/env bun
2
2
 
3
- import { Cr as gen, Gn as acquireUseRelease, Ii as Scope, Ka as Service, Li as addFinalizer, Nr as map, Oi as effectServices, Pt as die$1, Xa as getUnsafe, Xn as as, Xr as scope, Ya as get, Za as make$3, _i as withFiber, a as makeCompilerSqlite, ai as sync, di as try_, dn as make$1, dr as fail, g as unwrap, gi as void_, i as defaultTransforms, ji as provide, jn as getCurrent, mr as flatMap, n as SqlClient, ni as succeed, o as layer$1, oi as tap, pi as uninterruptibleMask, qa as add, r as make$2, ro as minutes, sr as die, t as SafeIntegers, us as identity } from "./SqlClient-8hJa5MAm.mjs";
4
- import { n as make$4, t as get$1 } from "./index.mjs";
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$4({
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$1(1);
109
+ const semaphore = yield* make$2(1);
111
110
  const connection = yield* makeConnection;
112
- return yield* make$2({
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$3(SqliteClient, client).pipe(add(SqlClient, client))))).pipe(provide(layer$1));
135
- const layer = (config) => effectServices(map(make(config), (client) => make$3(SqliteClient, client).pipe(add(SqlClient, client)))).pipe(provide(layer$1));
136
- const layerMemory = (config = {}) => effectServices(map(makeMemory(config), (client) => make$3(SqliteClient, client).pipe(add(SqlClient, client)))).pipe(provide(layer$1));
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-8mlwim6r.mjs.map
139
+ //# sourceMappingURL=NodeSqliteClient-Cx2_VxdP.mjs.map
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env bun
2
2
 
3
- import { N as TaggedErrorClass, b as Defect, j as String, k as Number, pt as optional } from "./SqlClient-8hJa5MAm.mjs";
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-4YSIrGT4.mjs.map
28
+ //# sourceMappingURL=SqlError-CoqftVSq.mjs.map
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env bun
2
2
 
3
- import { Cr as gen, Ii as Scope, Ka as Service, Kn as addFinalizer, Li as addFinalizer$1, Nr as map, Oi as effectServices, Pt as die, Xa as getUnsafe, Xn as as, Ya as get, Za as make$3, _i as withFiber, a as makeCompilerSqlite, ai as sync, di as try_, dn as make$1, dr as fail, g as unwrap, i as defaultTransforms, ji as provide, jn as getCurrent, mr as flatMap, n as SqlClient, ni as succeed, o as layer$1, oi as tap, pi as uninterruptibleMask, qa as add, r as make$2, t as SafeIntegers, us as identity } from "./SqlClient-8hJa5MAm.mjs";
4
- import { t as SqlError } from "./SqlError-4YSIrGT4.mjs";
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-DkbUL5wr.mjs.map
127
+ //# sourceMappingURL=SqliteClient-CXjquy8x.mjs.map