@llmops/core 0.6.8 → 0.6.9-beta.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/{bun-sqlite-dialect-CweOAhRE.cjs → bun-sqlite-dialect-CksPRKLh.cjs} +1 -1
- package/dist/db/index.cjs +2 -2
- package/dist/db/index.mjs +1 -1
- package/dist/{db-H8SfNI38.mjs → db-7xGTn9dj.mjs} +6 -2
- package/dist/{db-DsEVRoua.cjs → db-DCd8fH5o.cjs} +10 -6
- package/dist/index.cjs +7 -3
- package/dist/index.mjs +6 -2
- package/dist/{neon-dialect-Dn80Acj9.cjs → neon-dialect-BwxWZibF.cjs} +1 -1
- package/dist/{neon-dialect-Bk6Cncio.cjs → neon-dialect-D1BNI0H1.cjs} +1 -1
- package/dist/{node-sqlite-dialect-DyFzt-h5.cjs → node-sqlite-dialect-Lkc1F6MI.cjs} +1 -1
- package/package.json +2 -2
package/dist/db/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_db = require('../db-
|
|
2
|
-
const require_neon_dialect = require('../neon-dialect-
|
|
1
|
+
const require_db = require('../db-DCd8fH5o.cjs');
|
|
2
|
+
const require_neon_dialect = require('../neon-dialect-BwxWZibF.cjs');
|
|
3
3
|
|
|
4
4
|
exports.SCHEMA_METADATA = require_db.SCHEMA_METADATA;
|
|
5
5
|
exports.configVariantsSchema = require_db.configVariantsSchema;
|
package/dist/db/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as schemas, C as llmRequestsSchema, D as playgroundsSchema, E as playgroundRunsSchema, F as variantVersionsSchema, I as variantsSchema, L as workspaceSettingsSchema, M as spansSchema, N as targetingRulesSchema, O as providerConfigsSchema, P as tracesSchema, S as guardrailConfigsSchema, T as playgroundResultsSchema, _ as datasetVersionRecordsSchema, a as matchType, b as environmentSecretsSchema, d as validatePartialTableData, f as validateTableData, g as datasetRecordsSchema, h as configsSchema, i as getMigrations, j as spanEventsSchema, k as providerGuardrailOverridesSchema, l as parsePartialTableData, m as configVariantsSchema, n as createDatabaseFromConnection, o as runAutoMigrations, p as SCHEMA_METADATA, r as detectDatabaseType, t as createDatabase, u as parseTableData, v as datasetVersionsSchema, w as playgroundColumnSchema, x as environmentsSchema, y as datasetsSchema } from "../db-
|
|
1
|
+
import { A as schemas, C as llmRequestsSchema, D as playgroundsSchema, E as playgroundRunsSchema, F as variantVersionsSchema, I as variantsSchema, L as workspaceSettingsSchema, M as spansSchema, N as targetingRulesSchema, O as providerConfigsSchema, P as tracesSchema, S as guardrailConfigsSchema, T as playgroundResultsSchema, _ as datasetVersionRecordsSchema, a as matchType, b as environmentSecretsSchema, d as validatePartialTableData, f as validateTableData, g as datasetRecordsSchema, h as configsSchema, i as getMigrations, j as spanEventsSchema, k as providerGuardrailOverridesSchema, l as parsePartialTableData, m as configVariantsSchema, n as createDatabaseFromConnection, o as runAutoMigrations, p as SCHEMA_METADATA, r as detectDatabaseType, t as createDatabase, u as parseTableData, v as datasetVersionsSchema, w as playgroundColumnSchema, x as environmentsSchema, y as datasetsSchema } from "../db-7xGTn9dj.mjs";
|
|
2
2
|
import { n as executeWithSchema, t as createNeonDialect } from "../neon-dialect-DySGBYUi.mjs";
|
|
3
3
|
|
|
4
4
|
export { SCHEMA_METADATA, configVariantsSchema, configsSchema, createDatabase, createDatabaseFromConnection, createNeonDialect, datasetRecordsSchema, datasetVersionRecordsSchema, datasetVersionsSchema, datasetsSchema, detectDatabaseType, environmentSecretsSchema, environmentsSchema, executeWithSchema, getMigrations, guardrailConfigsSchema, llmRequestsSchema, matchType, parsePartialTableData, parseTableData, playgroundColumnSchema, playgroundResultsSchema, playgroundRunsSchema, playgroundsSchema, providerConfigsSchema, providerGuardrailOverridesSchema, runAutoMigrations, schemas, spanEventsSchema, spansSchema, targetingRulesSchema, tracesSchema, validatePartialTableData, validateTableData, variantVersionsSchema, variantsSchema, workspaceSettingsSchema };
|
|
@@ -14522,9 +14522,13 @@ async function getMigrations(db, dbType, options) {
|
|
|
14522
14522
|
}
|
|
14523
14523
|
let getAuthMigrations;
|
|
14524
14524
|
try {
|
|
14525
|
-
|
|
14525
|
+
try {
|
|
14526
|
+
({getMigrations: getAuthMigrations} = await import("better-auth/db"));
|
|
14527
|
+
} catch {
|
|
14528
|
+
({getMigrations: getAuthMigrations} = await import("better-auth/db/migration"));
|
|
14529
|
+
}
|
|
14526
14530
|
} catch (error$47) {
|
|
14527
|
-
logger.warn({ error: error$47 }, "Failed to import better-auth
|
|
14531
|
+
logger.warn({ error: error$47 }, "Failed to import better-auth migrations; skipping auth migrations");
|
|
14528
14532
|
return {
|
|
14529
14533
|
toBeCreated,
|
|
14530
14534
|
toBeAdded,
|
|
@@ -14546,9 +14546,13 @@ async function getMigrations(db, dbType, options) {
|
|
|
14546
14546
|
}
|
|
14547
14547
|
let getAuthMigrations;
|
|
14548
14548
|
try {
|
|
14549
|
-
|
|
14549
|
+
try {
|
|
14550
|
+
({getMigrations: getAuthMigrations} = await import("better-auth/db"));
|
|
14551
|
+
} catch {
|
|
14552
|
+
({getMigrations: getAuthMigrations} = await import("better-auth/db/migration"));
|
|
14553
|
+
}
|
|
14550
14554
|
} catch (error$47) {
|
|
14551
|
-
logger.warn({ error: error$47 }, "Failed to import better-auth
|
|
14555
|
+
logger.warn({ error: error$47 }, "Failed to import better-auth migrations; skipping auth migrations");
|
|
14552
14556
|
return {
|
|
14553
14557
|
toBeCreated,
|
|
14554
14558
|
toBeAdded,
|
|
@@ -14713,12 +14717,12 @@ async function createDatabaseFromConnection(rawConnection, options) {
|
|
|
14713
14717
|
case "sqlite":
|
|
14714
14718
|
if ("aggregate" in rawConnection && !("createSession" in rawConnection)) dialect = new kysely.SqliteDialect({ database: rawConnection });
|
|
14715
14719
|
else if ("fileControl" in rawConnection) {
|
|
14716
|
-
const { BunSqliteDialect } = await Promise.resolve().then(() => require("./bun-sqlite-dialect-
|
|
14720
|
+
const { BunSqliteDialect } = await Promise.resolve().then(() => require("./bun-sqlite-dialect-CksPRKLh.cjs"));
|
|
14717
14721
|
dialect = new BunSqliteDialect({ database: rawConnection });
|
|
14718
14722
|
} else if ("createSession" in rawConnection && typeof window === "undefined") try {
|
|
14719
14723
|
const { DatabaseSync } = await import("node:sqlite");
|
|
14720
14724
|
if (rawConnection instanceof DatabaseSync) {
|
|
14721
|
-
const { NodeSqliteDialect } = await Promise.resolve().then(() => require("./node-sqlite-dialect-
|
|
14725
|
+
const { NodeSqliteDialect } = await Promise.resolve().then(() => require("./node-sqlite-dialect-Lkc1F6MI.cjs"));
|
|
14722
14726
|
dialect = new NodeSqliteDialect({ database: rawConnection });
|
|
14723
14727
|
}
|
|
14724
14728
|
} catch {}
|
|
@@ -14736,7 +14740,7 @@ async function createDatabaseFromConnection(rawConnection, options) {
|
|
|
14736
14740
|
break;
|
|
14737
14741
|
case "neon": {
|
|
14738
14742
|
if (typeof rawConnection === "function") {
|
|
14739
|
-
const { createNeonDialect: createNeonDialect$1 } = await Promise.resolve().then(() => require("./neon-dialect-
|
|
14743
|
+
const { createNeonDialect: createNeonDialect$1 } = await Promise.resolve().then(() => require("./neon-dialect-D1BNI0H1.cjs"));
|
|
14740
14744
|
dialect = createNeonDialect$1(rawConnection);
|
|
14741
14745
|
break;
|
|
14742
14746
|
}
|
|
@@ -14744,7 +14748,7 @@ async function createDatabaseFromConnection(rawConnection, options) {
|
|
|
14744
14748
|
if (!connectionString) throw new Error("Neon connection string is required. Pass it directly as the database option or set one of: NEON_CONNECTION_STRING, NEON_PG_URL, DATABASE_URL, POSTGRES_URL");
|
|
14745
14749
|
const { neon } = await import("@neondatabase/serverless");
|
|
14746
14750
|
const sql$1 = neon(connectionString);
|
|
14747
|
-
const { createNeonDialect } = await Promise.resolve().then(() => require("./neon-dialect-
|
|
14751
|
+
const { createNeonDialect } = await Promise.resolve().then(() => require("./neon-dialect-D1BNI0H1.cjs"));
|
|
14748
14752
|
dialect = createNeonDialect(sql$1);
|
|
14749
14753
|
break;
|
|
14750
14754
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_db = require('./db-
|
|
2
|
-
const require_neon_dialect = require('./neon-dialect-
|
|
1
|
+
const require_db = require('./db-DCd8fH5o.cjs');
|
|
2
|
+
const require_neon_dialect = require('./neon-dialect-BwxWZibF.cjs');
|
|
3
3
|
let __llmops_gateway = require("@llmops/gateway");
|
|
4
4
|
__llmops_gateway = require_db.__toESM(__llmops_gateway);
|
|
5
5
|
let kysely = require("kysely");
|
|
@@ -3664,7 +3664,11 @@ const createWorkspaceSettingsDataLayer = (db) => {
|
|
|
3664
3664
|
return true;
|
|
3665
3665
|
},
|
|
3666
3666
|
isSetupComplete: async () => {
|
|
3667
|
-
|
|
3667
|
+
try {
|
|
3668
|
+
return (await db.selectFrom("workspace_settings").select("setupComplete").executeTakeFirst())?.setupComplete ?? false;
|
|
3669
|
+
} catch {
|
|
3670
|
+
return false;
|
|
3671
|
+
}
|
|
3668
3672
|
},
|
|
3669
3673
|
markSetupComplete: async () => {
|
|
3670
3674
|
let settings = await db.selectFrom("workspace_settings").selectAll().executeTakeFirst();
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as schemas, B as any, C as llmRequestsSchema, D as playgroundsSchema, E as playgroundRunsSchema, F as variantVersionsSchema, G as object, H as boolean, I as variantsSchema, J as union, K as record, L as workspaceSettingsSchema, M as spansSchema, N as targetingRulesSchema, O as providerConfigsSchema, P as tracesSchema, R as zod_default, S as guardrailConfigsSchema, T as playgroundResultsSchema, U as literal, V as array, W as number, Y as unknown, _ as datasetVersionRecordsSchema, a as matchType, b as environmentSecretsSchema, c as logger, d as validatePartialTableData, f as validateTableData, g as datasetRecordsSchema, h as configsSchema, i as getMigrations, j as spanEventsSchema, k as providerGuardrailOverridesSchema, l as parsePartialTableData, m as configVariantsSchema, n as createDatabaseFromConnection, o as runAutoMigrations, p as SCHEMA_METADATA, q as string, r as detectDatabaseType, s as getAuthClientOptions, t as createDatabase, u as parseTableData, v as datasetVersionsSchema, w as playgroundColumnSchema, x as environmentsSchema, y as datasetsSchema, z as _enum } from "./db-
|
|
1
|
+
import { A as schemas, B as any, C as llmRequestsSchema, D as playgroundsSchema, E as playgroundRunsSchema, F as variantVersionsSchema, G as object, H as boolean, I as variantsSchema, J as union, K as record, L as workspaceSettingsSchema, M as spansSchema, N as targetingRulesSchema, O as providerConfigsSchema, P as tracesSchema, R as zod_default, S as guardrailConfigsSchema, T as playgroundResultsSchema, U as literal, V as array, W as number, Y as unknown, _ as datasetVersionRecordsSchema, a as matchType, b as environmentSecretsSchema, c as logger, d as validatePartialTableData, f as validateTableData, g as datasetRecordsSchema, h as configsSchema, i as getMigrations, j as spanEventsSchema, k as providerGuardrailOverridesSchema, l as parsePartialTableData, m as configVariantsSchema, n as createDatabaseFromConnection, o as runAutoMigrations, p as SCHEMA_METADATA, q as string, r as detectDatabaseType, s as getAuthClientOptions, t as createDatabase, u as parseTableData, v as datasetVersionsSchema, w as playgroundColumnSchema, x as environmentsSchema, y as datasetsSchema, z as _enum } from "./db-7xGTn9dj.mjs";
|
|
2
2
|
import { n as executeWithSchema, t as createNeonDialect } from "./neon-dialect-DySGBYUi.mjs";
|
|
3
3
|
import gateway from "@llmops/gateway";
|
|
4
4
|
import { sql } from "kysely";
|
|
@@ -3661,7 +3661,11 @@ const createWorkspaceSettingsDataLayer = (db) => {
|
|
|
3661
3661
|
return true;
|
|
3662
3662
|
},
|
|
3663
3663
|
isSetupComplete: async () => {
|
|
3664
|
-
|
|
3664
|
+
try {
|
|
3665
|
+
return (await db.selectFrom("workspace_settings").select("setupComplete").executeTakeFirst())?.setupComplete ?? false;
|
|
3666
|
+
} catch {
|
|
3667
|
+
return false;
|
|
3668
|
+
}
|
|
3665
3669
|
},
|
|
3666
3670
|
markSetupComplete: async () => {
|
|
3667
3671
|
let settings = await db.selectFrom("workspace_settings").selectAll().executeTakeFirst();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@llmops/core",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.9-beta.1",
|
|
4
4
|
"description": "Core LLMOps functionality and utilities",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"kysely": "^0.28.8",
|
|
56
56
|
"kysely-neon": "^2.0.2",
|
|
57
57
|
"pino": "^10.1.0",
|
|
58
|
-
"@llmops/gateway": "^0.6.
|
|
58
|
+
"@llmops/gateway": "^0.6.9-beta.1"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/json-logic-js": "^2.0.8",
|