@basaltkit/ai 1.4.0 → 1.4.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.
@@ -18,5 +18,9 @@ export interface PrismaPushResult {
18
18
  /** Tail of stdout/stderr. */
19
19
  output: string;
20
20
  }
21
- /** Run `npx prisma db push` — creates the table(s) and regenerates the client. Best-effort. */
21
+ /**
22
+ * Run the project's own `prisma db push` — creates the table(s) and regenerates the client.
23
+ * Best-effort. `--no` keeps npx from downloading a Prisma CLI the project does not have
24
+ * (npm's `latest` is the Prisma 8 release candidate, which has no `db push`).
25
+ */
22
26
  export declare function runPrismaPush(baseDir: string): Promise<PrismaPushResult>;
@@ -36,10 +36,14 @@ export async function readSchema(baseDir, schemaPath) {
36
36
  export async function writeSchema(baseDir, schemaPath, content) {
37
37
  await writeFile(join(baseDir, schemaPath), content);
38
38
  }
39
- /** Run `npx prisma db push` — creates the table(s) and regenerates the client. Best-effort. */
39
+ /**
40
+ * Run the project's own `prisma db push` — creates the table(s) and regenerates the client.
41
+ * Best-effort. `--no` keeps npx from downloading a Prisma CLI the project does not have
42
+ * (npm's `latest` is the Prisma 8 release candidate, which has no `db push`).
43
+ */
40
44
  export async function runPrismaPush(baseDir) {
41
45
  try {
42
- const { stdout } = await run('npx', ['prisma', 'db', 'push'], {
46
+ const { stdout } = await run('npx', ['--no', '--', 'prisma', 'db', 'push'], {
43
47
  cwd: baseDir,
44
48
  timeout: 180_000,
45
49
  maxBuffer: 10 * 1024 * 1024,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basaltkit/ai",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "engines": {
5
5
  "node": ">=22.5.0"
6
6
  },
@@ -30,14 +30,14 @@
30
30
  "dist"
31
31
  ],
32
32
  "dependencies": {
33
- "zod": "^4.6.5",
34
- "@basaltkit/generator": "^1.6.0",
35
- "@basaltkit/cli": "^1.4.0"
33
+ "zod": "^4.6.7",
34
+ "@basaltkit/cli": "^1.4.2",
35
+ "@basaltkit/generator": "^1.7.0"
36
36
  },
37
37
  "devDependencies": {
38
- "@types/node": "^26.6.1",
38
+ "@types/node": "^26.6.5",
39
39
  "typescript": "^7.0.2",
40
- "vitest": "^5.0.1",
40
+ "vitest": "^5.0.5",
41
41
  "@basaltkit/tsconfig": "^0.24.0"
42
42
  },
43
43
  "publishConfig": {