@kky42/pievo-server 2.4.13 → 3.0.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.
- package/.output/nitro.json +1 -1
- package/.output/public/assets/{actionUi-D8m1FDHO.js → actionUi-BZrLpgHT.js} +1 -1
- package/.output/public/assets/app-DXLuQNb9.css +2 -0
- package/.output/public/assets/index-Di_wpAtL.js +10 -0
- package/.output/public/assets/loops._loopId-X3ClNPMY.js +67 -0
- package/.output/public/assets/loops._loopId_.runs._runId-ByU2BSyF.js +3 -0
- package/.output/public/assets/preload-helper-hRTYB_ju.js +3 -0
- package/.output/public/assets/{routes-79D939J4.js → routes-BIOJZsig.js} +1 -1
- package/.output/public/assets/routes-K8D5uBiV.js +1 -0
- package/.output/server/_chunks/ssr-renderer.mjs +1 -1
- package/.output/server/_libs/{drizzle-orm+postgres.mjs → drizzle-orm.mjs} +93 -2218
- package/.output/server/_ssr/{MachinesModal-DBIP648Z.mjs → MachinesModal-CmVMec6B.mjs} +52 -46
- package/.output/server/_ssr/{actionUi-C_WswNb1.mjs → actionUi-DE-Pb2tv.mjs} +4 -5
- package/.output/server/_ssr/{artifactFiles-BvVmixrs.mjs → artifactFiles-Di1xDKvX.mjs} +5 -7
- package/.output/server/_ssr/{artifactKind-DRCbYHZU.mjs → artifactKind-DqpmtxDU.mjs} +3 -9
- package/.output/server/_ssr/{boot-U-CFI65B.mjs → boot-CYRi-wez.mjs} +531 -1976
- package/.output/server/_ssr/lifecycleUi-BsbUsi5K.mjs +106 -0
- package/.output/server/_ssr/{loopApi-C4nN0msL.mjs → loopApi-Bez1rHV0.mjs} +50 -65
- package/.output/server/_ssr/{loopProjection-DMSNHux6.mjs → loopProjection-esCjyZJg.mjs} +4 -20
- package/.output/server/_ssr/{loops._loopId-Q4pRYPip.mjs → loops._loopId-KUezNY69.mjs} +133 -24
- package/.output/server/_ssr/{loops._loopId_.runs._runId-DNXVmCt5.mjs → loops._loopId_.runs._runId-BFP9oMrp.mjs} +2 -7
- package/.output/server/_ssr/{loops._loopId_.runs._runId-ty3AhkOi.mjs → loops._loopId_.runs._runId-DOkUEesG.mjs} +18 -33
- package/.output/server/_ssr/{machineFns-CkNms3zA.mjs → machineFns-CniGcY8s.mjs} +13 -49
- package/.output/server/_ssr/networkAccess-CIlK3ION.mjs +30 -0
- package/.output/server/_ssr/router-BFIH2UAE.mjs +362 -0
- package/.output/server/_ssr/routes-BSVBANI3.mjs +12 -0
- package/.output/server/_ssr/{routes-BaanDO41.mjs → routes-DnE7XDe_.mjs} +242 -77
- package/.output/server/_ssr/{routes-B3fulW5I.mjs → routes-ngpX7h8D.mjs} +2 -4
- package/.output/server/_ssr/ssr.mjs +25 -34
- package/.output/server/_ssr/start-B5_9Z5W-.mjs +35 -0
- package/.output/server/{_tanstack-start-manifest_v-DkmxsHDK.mjs → _tanstack-start-manifest_v-DnwAupbZ.mjs} +8 -13
- package/.output/server/drizzle/0000_baseline.sql +6 -97
- package/.output/server/drizzle/meta/_journal.json +2 -16
- package/.output/server/index.mjs +43 -50
- package/drizzle/0000_baseline.sql +6 -97
- package/drizzle/meta/_journal.json +2 -16
- package/package.json +4 -8
- package/scripts/pievo-server.mjs +49 -47
- package/scripts/server-cli-lib.mjs +21 -12
- package/scripts/server-network.mjs +139 -0
- package/.output/public/assets/SignIn-CDCdDD1a.js +0 -1
- package/.output/public/assets/app-PPhgN9iN.css +0 -2
- package/.output/public/assets/index-c0XPWXuz.js +0 -10
- package/.output/public/assets/loops._loopId-D7i_BGiE.js +0 -67
- package/.output/public/assets/loops._loopId_.runs._runId-CksSrEY7.js +0 -3
- package/.output/public/assets/preload-helper-Zcmr31XG.js +0 -5
- package/.output/public/assets/routes-BYgl3Tmv.js +0 -1
- package/.output/server/_libs/@aws-crypto/crc32+[...].mjs +0 -419
- package/.output/server/_libs/@aws-sdk/checksums+[...].mjs +0 -10732
- package/.output/server/_libs/@aws-sdk/client-s3+[...].mjs +0 -9475
- package/.output/server/_libs/@aws-sdk/credential-provider-http+[...].mjs +0 -137
- package/.output/server/_libs/@aws-sdk/credential-provider-ini+[...].mjs +0 -440
- package/.output/server/_libs/@aws-sdk/credential-provider-process+[...].mjs +0 -62
- package/.output/server/_libs/@aws-sdk/credential-provider-sso+[...].mjs +0 -818
- package/.output/server/_libs/@aws-sdk/credential-provider-web-identity+[...].mjs +0 -59
- package/.output/server/_libs/@smithy/credential-provider-imds+[...].mjs +0 -342
- package/.output/server/_libs/aws-crypto__crc32c.mjs +0 -314
- package/.output/server/_libs/aws-sdk__nested-clients.mjs +0 -2671
- package/.output/server/_ssr/SignIn-Bp3uWaCQ.mjs +0 -53
- package/.output/server/_ssr/artifacts-CzDJLaa6.mjs +0 -2
- package/.output/server/_ssr/auth-BV0MxVdo.mjs +0 -38355
- package/.output/server/_ssr/auth-client-RTpMpT4L.mjs +0 -1070
- package/.output/server/_ssr/boot-CsLXrLEa.mjs +0 -2
- package/.output/server/_ssr/bun-sqlite-dialect-BW9W1_Ps-D9KUBJ-L.mjs +0 -162
- package/.output/server/_ssr/core-RrmWoKne.mjs +0 -5
- package/.output/server/_ssr/d1-sqlite-dialect-BLC8LXE6-CVHRzH1n.mjs +0 -112
- package/.output/server/_ssr/db-BTX-xORB.mjs +0 -2
- package/.output/server/_ssr/dist-D7UDVZ5G.mjs +0 -342
- package/.output/server/_ssr/factory-DYFx1fg-.mjs +0 -6903
- package/.output/server/_ssr/kysely-adapter-CwdB7yBh.mjs +0 -2
- package/.output/server/_ssr/kysely-migration-tables-JkVUjPF_-bPAX9LR_.mjs +0 -19
- package/.output/server/_ssr/logger-CwiKSMp6.mjs +0 -2
- package/.output/server/_ssr/node-sqlite-dialect-B_g92oFK.mjs +0 -162
- package/.output/server/_ssr/router-DCNZ2xLm.mjs +0 -543
- package/.output/server/_ssr/routes-8JSF7bX_.mjs +0 -27
- package/.output/server/_ssr/runDiff-D7CxAgYL.mjs +0 -2
- package/.output/server/_ssr/start-4ifArtKx.mjs +0 -4
- package/.output/server/_ssr/store-DSNbXxqz.mjs +0 -2
- package/.output/server/_ssr/tokens-DzUv7CCp.mjs +0 -2
- package/.output/server/drizzle/0001_add_pi_agent.sql +0 -9
- package/.output/server/drizzle/0002_remove_teams.sql +0 -15
- package/.output/server/node_modules/tslib/modules/index.js +0 -70
- package/.output/server/node_modules/tslib/modules/package.json +0 -3
- package/.output/server/node_modules/tslib/package.json +0 -47
- package/.output/server/node_modules/tslib/tslib.js +0 -484
- package/.output/server/package.json +0 -9
- package/drizzle/0001_add_pi_agent.sql +0 -9
- package/drizzle/0002_remove_teams.sql +0 -15
- package/scripts/prestart.mjs +0 -66
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/kysely-migration-tables-JkVUjPF_-bPAX9LR_.js
|
|
2
|
-
/**
|
|
3
|
-
* Kysely's internal migration table names, mirrored as local constants.
|
|
4
|
-
*
|
|
5
|
-
* Kysely 0.29 moved these from its main entry to the `kysely/migration`
|
|
6
|
-
* subpath (which 0.28 lacks), and the main entry now exports only type stubs
|
|
7
|
-
* with no runtime value, which breaks strict ESM bundlers such as Turbopack.
|
|
8
|
-
* The values are a stable part of Kysely's public migration contract, so
|
|
9
|
-
* mirroring them lets the SQLite dialects run on both Kysely 0.28 and 0.29
|
|
10
|
-
* without importing from a moving path.
|
|
11
|
-
* TODO: Revisit this mirror if Better Auth drops Kysely 0.28 support and can
|
|
12
|
-
* depend on Kysely's `kysely/migration` export.
|
|
13
|
-
*
|
|
14
|
-
* @see https://github.com/better-auth/better-auth/issues/9810
|
|
15
|
-
*/
|
|
16
|
-
var DEFAULT_MIGRATION_TABLE = "kysely_migration";
|
|
17
|
-
var DEFAULT_MIGRATION_LOCK_TABLE = "kysely_migration_lock";
|
|
18
|
-
//#endregion
|
|
19
|
-
export { DEFAULT_MIGRATION_TABLE as n, DEFAULT_MIGRATION_LOCK_TABLE as t };
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
import { n as DefaultQueryCompiler, o as CompiledQuery, s as sql$1 } from "./auth-BV0MxVdo.mjs";
|
|
2
|
-
import { n as DEFAULT_MIGRATION_TABLE, t as DEFAULT_MIGRATION_LOCK_TABLE } from "./kysely-migration-tables-JkVUjPF_-bPAX9LR_.mjs";
|
|
3
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/node-sqlite-dialect-B_g92oFK.js
|
|
4
|
-
var NodeSqliteAdapter = class {
|
|
5
|
-
get supportsCreateIfNotExists() {
|
|
6
|
-
return true;
|
|
7
|
-
}
|
|
8
|
-
get supportsTransactionalDdl() {
|
|
9
|
-
return false;
|
|
10
|
-
}
|
|
11
|
-
get supportsMultipleConnections() {
|
|
12
|
-
return false;
|
|
13
|
-
}
|
|
14
|
-
get supportsReturning() {
|
|
15
|
-
return true;
|
|
16
|
-
}
|
|
17
|
-
async acquireMigrationLock() {}
|
|
18
|
-
async releaseMigrationLock() {}
|
|
19
|
-
get supportsOutput() {
|
|
20
|
-
return true;
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
var NodeSqliteDriver = class {
|
|
24
|
-
#config;
|
|
25
|
-
#connectionMutex = new ConnectionMutex();
|
|
26
|
-
#db;
|
|
27
|
-
#connection;
|
|
28
|
-
constructor(config) {
|
|
29
|
-
this.#config = { ...config };
|
|
30
|
-
}
|
|
31
|
-
async init() {
|
|
32
|
-
this.#db = this.#config.database;
|
|
33
|
-
this.#connection = new NodeSqliteConnection(this.#db);
|
|
34
|
-
if (this.#config.onCreateConnection) await this.#config.onCreateConnection(this.#connection);
|
|
35
|
-
}
|
|
36
|
-
async acquireConnection() {
|
|
37
|
-
await this.#connectionMutex.lock();
|
|
38
|
-
return this.#connection;
|
|
39
|
-
}
|
|
40
|
-
async beginTransaction(connection) {
|
|
41
|
-
await connection.executeQuery(CompiledQuery.raw("begin"));
|
|
42
|
-
}
|
|
43
|
-
async commitTransaction(connection) {
|
|
44
|
-
await connection.executeQuery(CompiledQuery.raw("commit"));
|
|
45
|
-
}
|
|
46
|
-
async rollbackTransaction(connection) {
|
|
47
|
-
await connection.executeQuery(CompiledQuery.raw("rollback"));
|
|
48
|
-
}
|
|
49
|
-
async releaseConnection() {
|
|
50
|
-
this.#connectionMutex.unlock();
|
|
51
|
-
}
|
|
52
|
-
async destroy() {
|
|
53
|
-
this.#db?.close();
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
var NodeSqliteConnection = class {
|
|
57
|
-
#db;
|
|
58
|
-
constructor(db) {
|
|
59
|
-
this.#db = db;
|
|
60
|
-
}
|
|
61
|
-
executeQuery(compiledQuery) {
|
|
62
|
-
const { sql, parameters } = compiledQuery;
|
|
63
|
-
const stmt = this.#db.prepare(sql);
|
|
64
|
-
const params = parameters;
|
|
65
|
-
if (stmt.columns().length > 0) return Promise.resolve({ rows: stmt.all(...params) });
|
|
66
|
-
const { changes, lastInsertRowid } = stmt.run(...params);
|
|
67
|
-
return Promise.resolve({
|
|
68
|
-
rows: [],
|
|
69
|
-
numAffectedRows: BigInt(changes),
|
|
70
|
-
insertId: typeof lastInsertRowid === "bigint" ? lastInsertRowid : BigInt(lastInsertRowid)
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
async *streamQuery() {
|
|
74
|
-
throw new Error("Streaming query is not supported by SQLite driver.");
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
var ConnectionMutex = class {
|
|
78
|
-
#promise;
|
|
79
|
-
#resolve;
|
|
80
|
-
async lock() {
|
|
81
|
-
while (this.#promise !== void 0) await this.#promise;
|
|
82
|
-
this.#promise = new Promise((resolve) => {
|
|
83
|
-
this.#resolve = resolve;
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
unlock() {
|
|
87
|
-
const resolve = this.#resolve;
|
|
88
|
-
this.#promise = void 0;
|
|
89
|
-
this.#resolve = void 0;
|
|
90
|
-
resolve?.();
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
var NodeSqliteIntrospector = class {
|
|
94
|
-
#db;
|
|
95
|
-
constructor(db) {
|
|
96
|
-
this.#db = db;
|
|
97
|
-
}
|
|
98
|
-
async getSchemas() {
|
|
99
|
-
return [];
|
|
100
|
-
}
|
|
101
|
-
async getTables(options = { withInternalKyselyTables: false }) {
|
|
102
|
-
let query = this.#db.selectFrom("sqlite_schema").where("type", "=", "table").where("name", "not like", "sqlite_%").select("name").$castTo();
|
|
103
|
-
if (!options.withInternalKyselyTables) query = query.where("name", "!=", DEFAULT_MIGRATION_TABLE).where("name", "!=", DEFAULT_MIGRATION_LOCK_TABLE);
|
|
104
|
-
const tables = await query.execute();
|
|
105
|
-
return Promise.all(tables.map(({ name }) => this.#getTableMetadata(name)));
|
|
106
|
-
}
|
|
107
|
-
async #getTableMetadata(table) {
|
|
108
|
-
const db = this.#db;
|
|
109
|
-
const autoIncrementCol = (await db.selectFrom("sqlite_master").where("name", "=", table).select("sql").$castTo().execute())[0]?.sql?.split(/[\(\),]/)?.find((it) => it.toLowerCase().includes("autoincrement"))?.split(/\s+/)?.[0]?.replace(/["`]/g, "");
|
|
110
|
-
return {
|
|
111
|
-
name: table,
|
|
112
|
-
columns: (await db.selectFrom(sql$1`pragma_table_info(${table})`.as("table_info")).select([
|
|
113
|
-
"name",
|
|
114
|
-
"type",
|
|
115
|
-
"notnull",
|
|
116
|
-
"dflt_value"
|
|
117
|
-
]).execute()).map((col) => ({
|
|
118
|
-
name: col.name,
|
|
119
|
-
dataType: col.type,
|
|
120
|
-
isNullable: !col.notnull,
|
|
121
|
-
isAutoIncrementing: col.name === autoIncrementCol,
|
|
122
|
-
hasDefaultValue: col.dflt_value != null
|
|
123
|
-
})),
|
|
124
|
-
isView: false,
|
|
125
|
-
isForeign: false
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
};
|
|
129
|
-
var NodeSqliteQueryCompiler = class extends DefaultQueryCompiler {
|
|
130
|
-
getCurrentParameterPlaceholder() {
|
|
131
|
-
return "?";
|
|
132
|
-
}
|
|
133
|
-
getLeftIdentifierWrapper() {
|
|
134
|
-
return "\"";
|
|
135
|
-
}
|
|
136
|
-
getRightIdentifierWrapper() {
|
|
137
|
-
return "\"";
|
|
138
|
-
}
|
|
139
|
-
getAutoIncrement() {
|
|
140
|
-
return "autoincrement";
|
|
141
|
-
}
|
|
142
|
-
};
|
|
143
|
-
var NodeSqliteDialect = class {
|
|
144
|
-
#config;
|
|
145
|
-
constructor(config) {
|
|
146
|
-
this.#config = { ...config };
|
|
147
|
-
}
|
|
148
|
-
createDriver() {
|
|
149
|
-
return new NodeSqliteDriver(this.#config);
|
|
150
|
-
}
|
|
151
|
-
createQueryCompiler() {
|
|
152
|
-
return new NodeSqliteQueryCompiler();
|
|
153
|
-
}
|
|
154
|
-
createAdapter() {
|
|
155
|
-
return new NodeSqliteAdapter();
|
|
156
|
-
}
|
|
157
|
-
createIntrospector(db) {
|
|
158
|
-
return new NodeSqliteIntrospector(db);
|
|
159
|
-
}
|
|
160
|
-
};
|
|
161
|
-
//#endregion
|
|
162
|
-
export { NodeSqliteDialect };
|