@llmops/app 0.2.1-beta.2 → 0.2.2
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.cjs +10 -0
- package/dist/index.mjs +10 -0
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -16325,17 +16325,27 @@ const createMigrationMiddleware = (config$1) => {
|
|
|
16325
16325
|
* Creates auth client middleware that uses the pre-configured Kysely instance
|
|
16326
16326
|
* from context. This ensures Better Auth uses the same database connection
|
|
16327
16327
|
* with the correct schema (search_path) configuration.
|
|
16328
|
+
*
|
|
16329
|
+
* Only initializes the auth client for /api/* routes where it's actually needed.
|
|
16328
16330
|
*/
|
|
16329
16331
|
const createAuthClientMiddleware = () => {
|
|
16330
16332
|
return async (c, next) => {
|
|
16333
|
+
if (!c.req.path.startsWith("/api")) {
|
|
16334
|
+
await next();
|
|
16335
|
+
return;
|
|
16336
|
+
}
|
|
16331
16337
|
const kyselyDb = c.get("kyselyDb");
|
|
16332
16338
|
const dbType = c.get("dbType");
|
|
16333
16339
|
const workspaceSettings = (0, __llmops_core.createWorkspaceSettingsDataLayer)(kyselyDb);
|
|
16340
|
+
const url$2 = new URL(c.req.url);
|
|
16341
|
+
const baseURL = `${url$2.protocol}//${url$2.host}`;
|
|
16334
16342
|
const authClient = (0, better_auth.betterAuth)((0, __llmops_core.getAuthClientOptions)({
|
|
16335
16343
|
database: {
|
|
16336
16344
|
db: kyselyDb,
|
|
16337
16345
|
type: dbType
|
|
16338
16346
|
},
|
|
16347
|
+
baseURL,
|
|
16348
|
+
trustedOrigins: [baseURL],
|
|
16339
16349
|
onUserCreated: async (userId) => {
|
|
16340
16350
|
await workspaceSettings.setSuperAdminId(userId);
|
|
16341
16351
|
await workspaceSettings.markSetupComplete();
|
package/dist/index.mjs
CHANGED
|
@@ -16299,17 +16299,27 @@ const createMigrationMiddleware = (config$1) => {
|
|
|
16299
16299
|
* Creates auth client middleware that uses the pre-configured Kysely instance
|
|
16300
16300
|
* from context. This ensures Better Auth uses the same database connection
|
|
16301
16301
|
* with the correct schema (search_path) configuration.
|
|
16302
|
+
*
|
|
16303
|
+
* Only initializes the auth client for /api/* routes where it's actually needed.
|
|
16302
16304
|
*/
|
|
16303
16305
|
const createAuthClientMiddleware = () => {
|
|
16304
16306
|
return async (c, next) => {
|
|
16307
|
+
if (!c.req.path.startsWith("/api")) {
|
|
16308
|
+
await next();
|
|
16309
|
+
return;
|
|
16310
|
+
}
|
|
16305
16311
|
const kyselyDb = c.get("kyselyDb");
|
|
16306
16312
|
const dbType = c.get("dbType");
|
|
16307
16313
|
const workspaceSettings = createWorkspaceSettingsDataLayer(kyselyDb);
|
|
16314
|
+
const url$1 = new URL(c.req.url);
|
|
16315
|
+
const baseURL = `${url$1.protocol}//${url$1.host}`;
|
|
16308
16316
|
const authClient = betterAuth(getAuthClientOptions({
|
|
16309
16317
|
database: {
|
|
16310
16318
|
db: kyselyDb,
|
|
16311
16319
|
type: dbType
|
|
16312
16320
|
},
|
|
16321
|
+
baseURL,
|
|
16322
|
+
trustedOrigins: [baseURL],
|
|
16313
16323
|
onUserCreated: async (userId) => {
|
|
16314
16324
|
await workspaceSettings.setSuperAdminId(userId);
|
|
16315
16325
|
await workspaceSettings.markSetupComplete();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@llmops/app",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "LLMOps application with server and client",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
"react-aria-components": "^1.13.0",
|
|
67
67
|
"react-hook-form": "^7.68.0",
|
|
68
68
|
"recharts": "^3.6.0",
|
|
69
|
-
"@llmops/core": "^0.2.
|
|
70
|
-
"@llmops/gateway": "^0.2.
|
|
69
|
+
"@llmops/core": "^0.2.2",
|
|
70
|
+
"@llmops/gateway": "^0.2.2"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
73
|
"react": "^19.2.1",
|