@llmops/cli 0.1.0 → 0.1.1-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/index.mjs +3 -2
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -63,7 +63,8 @@ const migrateCommand = command({
|
|
|
63
63
|
logger.error("No database configuration found.");
|
|
64
64
|
process.exit(1);
|
|
65
65
|
}
|
|
66
|
-
const
|
|
66
|
+
const schema = config.schema ?? "llmops";
|
|
67
|
+
const db = await createDatabaseFromConnection(config.database, { schema });
|
|
67
68
|
if (!db) {
|
|
68
69
|
logger.error("Failed to create database connection.");
|
|
69
70
|
process.exit(1);
|
|
@@ -74,7 +75,7 @@ const migrateCommand = command({
|
|
|
74
75
|
process.exit(1);
|
|
75
76
|
}
|
|
76
77
|
const spinner = yoctoSpinner({ text: "preparing migration..." }).start();
|
|
77
|
-
const { toBeAdded, toBeCreated, runMigrations } = await getMigrations(db, dbType);
|
|
78
|
+
const { toBeAdded, toBeCreated, runMigrations } = await getMigrations(db, dbType, { schema });
|
|
78
79
|
if (!toBeAdded.length && !toBeCreated.length) {
|
|
79
80
|
spinner.stop();
|
|
80
81
|
console.log("🚀 No migrations needed.");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@llmops/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1-beta.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "LLMOps CLI - A pluggable LLMOps toolkit for TypeScript teams",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"kysely": "^0.28.8",
|
|
46
46
|
"prompts": "^2.4.2",
|
|
47
47
|
"yocto-spinner": "^1.0.0",
|
|
48
|
-
"@llmops/
|
|
49
|
-
"@llmops/
|
|
48
|
+
"@llmops/sdk": "^0.1.1-beta.1",
|
|
49
|
+
"@llmops/core": "^0.1.1-beta.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/pg": "^8.15.6",
|