The open source coding agent.
TypeScript
wip: zen
Franka93a1b93e119
diff --git a/infra/console.ts b/infra/console.tsindex 4e5a14b0457..9089055821c 100644--- a/infra/console.ts+++ b/infra/console.ts@@ -145,6 +145,16 @@ const ZEN_MODELS = [new sst.Secret("ZEN_MODELS18"),new sst.Secret("ZEN_MODELS19"),new sst.Secret("ZEN_MODELS20"),+ new sst.Secret("ZEN_MODELS21"),+ new sst.Secret("ZEN_MODELS22"),+ new sst.Secret("ZEN_MODELS23"),+ new sst.Secret("ZEN_MODELS24"),+ new sst.Secret("ZEN_MODELS25"),+ new sst.Secret("ZEN_MODELS26"),+ new sst.Secret("ZEN_MODELS27"),+ new sst.Secret("ZEN_MODELS28"),+ new sst.Secret("ZEN_MODELS29"),+ new sst.Secret("ZEN_MODELS30"),]const STRIPE_SECRET_KEY = new sst.Secret("STRIPE_SECRET_KEY")const STRIPE_PUBLISHABLE_KEY = new sst.Secret("STRIPE_PUBLISHABLE_KEY")diff --git a/packages/console/core/script/promote-models.ts b/packages/console/core/script/promote-models.tsindex 17715bedfb8..aa9f20abc3e 100755--- a/packages/console/core/script/promote-models.ts+++ b/packages/console/core/script/promote-models.ts@@ -9,7 +9,7 @@ const stage = process.argv[2]if (!stage) throw new Error("Stage is required")const root = path.resolve(process.cwd(), "..", "..", "..")-const PARTS = 20+const PARTS = 30// read the secretconst ret = await $`bun sst secret list`.cwd(root).text()diff --git a/packages/console/core/script/update-models.ts b/packages/console/core/script/update-models.tsindex 9025a6526e5..6d7f7662a4c 100755--- a/packages/console/core/script/update-models.ts+++ b/packages/console/core/script/update-models.ts@@ -7,7 +7,7 @@ import { ZenData } from "../src/model"const root = path.resolve(process.cwd(), "..", "..", "..")const models = await $`bun sst secret list`.cwd(root).text()-const PARTS = 20+const PARTS = 30// read the line starting with "ZEN_MODELS"const lines = models.split("\n")diff --git a/packages/console/core/src/model.ts b/packages/console/core/src/model.tsindex da267784493..6011cac3768 100644--- a/packages/console/core/src/model.ts+++ b/packages/console/core/src/model.ts@@ -102,7 +102,17 @@ export namespace ZenData {Resource.ZEN_MODELS17.value +Resource.ZEN_MODELS18.value +Resource.ZEN_MODELS19.value +- Resource.ZEN_MODELS20.value,+ Resource.ZEN_MODELS20.value ++ Resource.ZEN_MODELS21.value ++ Resource.ZEN_MODELS22.value ++ Resource.ZEN_MODELS23.value ++ Resource.ZEN_MODELS24.value ++ Resource.ZEN_MODELS25.value ++ Resource.ZEN_MODELS26.value ++ Resource.ZEN_MODELS27.value ++ Resource.ZEN_MODELS28.value ++ Resource.ZEN_MODELS29.value ++ Resource.ZEN_MODELS30.value,)const { models, providers, providerFamilies } = ModelsSchema.parse(json)return {diff --git a/packages/console/core/sst-env.d.ts b/packages/console/core/sst-env.d.tsindex fea908213df..737af71d414 100644--- a/packages/console/core/sst-env.d.ts+++ b/packages/console/core/sst-env.d.ts@@ -181,10 +181,50 @@ declare module "sst" {"type": "sst.sst.Secret""value": string}+ "ZEN_MODELS21": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS22": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS23": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS24": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS25": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS26": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS27": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS28": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS29": {+ "type": "sst.sst.Secret"+ "value": string+ }"ZEN_MODELS3": {"type": "sst.sst.Secret""value": string}+ "ZEN_MODELS30": {+ "type": "sst.sst.Secret"+ "value": string+ }"ZEN_MODELS4": {"type": "sst.sst.Secret""value": stringdiff --git a/packages/console/function/sst-env.d.ts b/packages/console/function/sst-env.d.tsindex fea908213df..737af71d414 100644--- a/packages/console/function/sst-env.d.ts+++ b/packages/console/function/sst-env.d.ts@@ -181,10 +181,50 @@ declare module "sst" {"type": "sst.sst.Secret""value": string}+ "ZEN_MODELS21": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS22": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS23": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS24": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS25": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS26": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS27": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS28": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS29": {+ "type": "sst.sst.Secret"+ "value": string+ }"ZEN_MODELS3": {"type": "sst.sst.Secret""value": string}+ "ZEN_MODELS30": {+ "type": "sst.sst.Secret"+ "value": string+ }"ZEN_MODELS4": {"type": "sst.sst.Secret""value": stringdiff --git a/packages/console/resource/sst-env.d.ts b/packages/console/resource/sst-env.d.tsindex fea908213df..737af71d414 100644--- a/packages/console/resource/sst-env.d.ts+++ b/packages/console/resource/sst-env.d.ts@@ -181,10 +181,50 @@ declare module "sst" {"type": "sst.sst.Secret""value": string}+ "ZEN_MODELS21": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS22": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS23": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS24": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS25": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS26": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS27": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS28": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS29": {+ "type": "sst.sst.Secret"+ "value": string+ }"ZEN_MODELS3": {"type": "sst.sst.Secret""value": string}+ "ZEN_MODELS30": {+ "type": "sst.sst.Secret"+ "value": string+ }"ZEN_MODELS4": {"type": "sst.sst.Secret""value": stringdiff --git a/packages/enterprise/sst-env.d.ts b/packages/enterprise/sst-env.d.tsindex fea908213df..737af71d414 100644--- a/packages/enterprise/sst-env.d.ts+++ b/packages/enterprise/sst-env.d.ts@@ -181,10 +181,50 @@ declare module "sst" {"type": "sst.sst.Secret""value": string}+ "ZEN_MODELS21": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS22": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS23": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS24": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS25": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS26": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS27": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS28": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS29": {+ "type": "sst.sst.Secret"+ "value": string+ }"ZEN_MODELS3": {"type": "sst.sst.Secret""value": string}+ "ZEN_MODELS30": {+ "type": "sst.sst.Secret"+ "value": string+ }"ZEN_MODELS4": {"type": "sst.sst.Secret""value": stringdiff --git a/packages/function/sst-env.d.ts b/packages/function/sst-env.d.tsindex fea908213df..737af71d414 100644--- a/packages/function/sst-env.d.ts+++ b/packages/function/sst-env.d.ts@@ -181,10 +181,50 @@ declare module "sst" {"type": "sst.sst.Secret""value": string}+ "ZEN_MODELS21": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS22": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS23": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS24": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS25": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS26": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS27": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS28": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS29": {+ "type": "sst.sst.Secret"+ "value": string+ }"ZEN_MODELS3": {"type": "sst.sst.Secret""value": string}+ "ZEN_MODELS30": {+ "type": "sst.sst.Secret"+ "value": string+ }"ZEN_MODELS4": {"type": "sst.sst.Secret""value": stringdiff --git a/sst-env.d.ts b/sst-env.d.tsindex f87d4d603f6..b2ae763562c 100644--- a/sst-env.d.ts+++ b/sst-env.d.ts@@ -207,10 +207,50 @@ declare module "sst" {"type": "sst.sst.Secret""value": string}+ "ZEN_MODELS21": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS22": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS23": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS24": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS25": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS26": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS27": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS28": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS29": {+ "type": "sst.sst.Secret"+ "value": string+ }"ZEN_MODELS3": {"type": "sst.sst.Secret""value": string}+ "ZEN_MODELS30": {+ "type": "sst.sst.Secret"+ "value": string+ }"ZEN_MODELS4": {"type": "sst.sst.Secret""value": string