|
|
@@ -6,7 +6,7 @@ import os from "os"
|
|
|
import { ZenData } from "../src/model"
|
|
|
|
|
|
const root = path.resolve(process.cwd(), "..", "..", "..")
|
|
|
-const models = await $`bun sst secret list`.cwd(root).text()
|
|
|
+const models = await $`bun sst secret list --stage frank`.cwd(root).text()
|
|
|
const PARTS = 30
|
|
|
|
|
|
// read the line starting with "ZEN_MODELS"
|
|
|
@@ -40,4 +40,4 @@ const newValues = Array.from({ length: PARTS }, (_, i) =>
|
|
|
|
|
|
const envFile = Bun.file(path.join(os.tmpdir(), `models-${Date.now()}.env`))
|
|
|
await envFile.write(newValues.map((v, i) => `ZEN_MODELS${i + 1}="${v.replace(/"/g, '\\"')}"`).join("\n"))
|
|
|
-await $`bun sst secret load ${envFile.name}`.cwd(root)
|
|
|
+await $`bun sst secret load ${envFile.name} --stage frank`.cwd(root)
|