diff options
| author | Frank <[email protected]> | 2026-03-31 00:07:54 -0400 |
|---|---|---|
| committer | Frank <[email protected]> | 2026-03-31 00:07:56 -0400 |
| commit | 2cc738fb1794470d28b6795f2267b9b756d4be88 (patch) | |
| tree | 336dcf0f36aa29ec9f8062d5fab0c8c62550b3df | |
| parent | 71b20698bbbbedb72a1bc107af656e7115705fb5 (diff) | |
| download | opencode-2cc738fb1794470d28b6795f2267b9b756d4be88.tar.gz opencode-2cc738fb1794470d28b6795f2267b9b756d4be88.zip | |
wip: zen
| -rwxr-xr-x | packages/console/core/script/promote-limits.ts | 2 | ||||
| -rwxr-xr-x | packages/console/core/script/promote-models.ts | 2 | ||||
| -rwxr-xr-x | packages/console/core/script/update-limits.ts | 4 | ||||
| -rwxr-xr-x | packages/console/core/script/update-models.ts | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/packages/console/core/script/promote-limits.ts b/packages/console/core/script/promote-limits.ts index f488aba02..a54fcd0af 100755 --- a/packages/console/core/script/promote-limits.ts +++ b/packages/console/core/script/promote-limits.ts @@ -10,7 +10,7 @@ if (!stage) throw new Error("Stage is required") const root = path.resolve(process.cwd(), "..", "..", "..") // read the secret -const ret = await $`bun sst secret list`.cwd(root).text() +const ret = await $`bun sst secret list --stage frank`.cwd(root).text() const lines = ret.split("\n") const value = lines.find((line) => line.startsWith("ZEN_LIMITS"))?.split("=")[1] if (!value) throw new Error("ZEN_LIMITS not found") diff --git a/packages/console/core/script/promote-models.ts b/packages/console/core/script/promote-models.ts index aa9f20abc..28db3642c 100755 --- a/packages/console/core/script/promote-models.ts +++ b/packages/console/core/script/promote-models.ts @@ -12,7 +12,7 @@ const root = path.resolve(process.cwd(), "..", "..", "..") const PARTS = 30 // read the secret -const ret = await $`bun sst secret list`.cwd(root).text() +const ret = await $`bun sst secret list --stage frank`.cwd(root).text() const lines = ret.split("\n") const values = Array.from({ length: PARTS }, (_, i) => { const value = lines diff --git a/packages/console/core/script/update-limits.ts b/packages/console/core/script/update-limits.ts index 8f2579312..29794f5be 100755 --- a/packages/console/core/script/update-limits.ts +++ b/packages/console/core/script/update-limits.ts @@ -6,7 +6,7 @@ import os from "os" import { Subscription } from "../src/subscription" const root = path.resolve(process.cwd(), "..", "..", "..") -const secrets = await $`bun sst secret list`.cwd(root).text() +const secrets = await $`bun sst secret list --stage frank`.cwd(root).text() // read value const lines = secrets.split("\n") @@ -25,4 +25,4 @@ const newValue = JSON.stringify(JSON.parse(await tempFile.text())) Subscription.validate(JSON.parse(newValue)) // update the secret -await $`bun sst secret set ZEN_LIMITS ${newValue}` +await $`bun sst secret set ZEN_LIMITS ${newValue} --stage frank`.cwd(root) diff --git a/packages/console/core/script/update-models.ts b/packages/console/core/script/update-models.ts index 6d7f7662a..e426aec1c 100755 --- a/packages/console/core/script/update-models.ts +++ b/packages/console/core/script/update-models.ts @@ -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) |
