The open source coding agent.
TypeScript
wip: zen
Frankbbc9142fc54f
diff --git a/github/sst-env.d.ts b/github/sst-env.d.tsindex 6b69016e718..f742a120044 100644--- a/github/sst-env.d.ts+++ b/github/sst-env.d.ts@@ -6,4 +6,4 @@/// <reference path="../sst-env.d.ts" />import "sst"-export {}+export {}\ No newline at end of filediff --git a/infra/console.ts b/infra/console.tsindex b614da41187..eddc97d2f18 100644--- a/infra/console.ts+++ b/infra/console.ts@@ -116,6 +116,8 @@ const gatewayKv = new sst.cloudflare.Kv("GatewayKv")// CONSOLE////////////////+const bucket = new sst.cloudflare.Bucket("ConsoleData")+const AWS_SES_ACCESS_KEY_ID = new sst.Secret("AWS_SES_ACCESS_KEY_ID")const AWS_SES_SECRET_ACCESS_KEY = new sst.Secret("AWS_SES_SECRET_ACCESS_KEY")@@ -132,6 +134,7 @@ new sst.cloudflare.x.SolidStart("Console", {domain,path: "packages/console/app",link: [+ bucket,database,AUTH_API_URL,STRIPE_WEBHOOK_SECRET,diff --git a/packages/console/app/src/routes/zen/util/dataDumper.ts b/packages/console/app/src/routes/zen/util/dataDumper.tsnew file mode 100644index 00000000000..6a064138a7e--- /dev/null+++ b/packages/console/app/src/routes/zen/util/dataDumper.ts@@ -0,0 +1,26 @@+import { Resource, waitUntil } from "@opencode-ai/console-resource"++export function createDataDumper(sessionId: string, requestId: string) {+ if (Resource.App.stage !== "production") return++ let data: Record<string, any> = {}+ let modelName: string | undefined++ return {+ provideModel: (model?: string) => (modelName = model),+ provideRequest: (request: string) => (data.request = request),+ provideResponse: (response: string) => (data.response = response),+ provideStream: (chunk: string) => (data.response = (data.response ?? "") + chunk),+ flush: () => {+ if (!modelName) return++ const str = new Date().toISOString().replace(/[^0-9]/g, "")+ const yyyymmdd = str.substring(0, 8)+ const hh = str.substring(8, 10)++ waitUntil(+ Resource.ConsoleData.put(`${yyyymmdd}/${hh}/${modelName}/${sessionId}/${requestId}.json`, JSON.stringify(data)),+ )+ },+ }+}diff --git a/packages/console/app/src/routes/zen/util/handler.ts b/packages/console/app/src/routes/zen/util/handler.tsindex 3453a6d3810..c40db6e1d4e 100644--- a/packages/console/app/src/routes/zen/util/handler.ts+++ b/packages/console/app/src/routes/zen/util/handler.ts@@ -19,6 +19,7 @@ import { googleHelper } from "./provider/google"import { openaiHelper } from "./provider/openai"import { oaCompatHelper } from "./provider/openai-compatible"import { createRateLimiter } from "./rateLimiter"+import { createDataDumper } from "./dataDumper"type ZenData = Awaited<ReturnType<typeof ZenData.list>>type RetryOptions = {@@ -48,16 +49,19 @@ export async function handler(try {const url = input.request.urlconst body = await input.request.json()- const ip = input.request.headers.get("x-real-ip") ?? ""const model = opts.parseModel(url, body)const isStream = opts.parseIsStream(url, body)+ const ip = input.request.headers.get("x-real-ip") ?? ""+ const sessionId = input.request.headers.get("x-opencode-session")+ const requestId = input.request.headers.get("x-opencode-request")logger.metric({is_tream: isStream,- session: input.request.headers.get("x-opencode-session"),- request: input.request.headers.get("x-opencode-request"),+ session: sessionId,+ request: requestId,})const zenData = ZenData.list()const modelInfo = validateModel(zenData, model)+ const dataDumper = createDataDumper(sessionId, requestId)const rateLimiter = createRateLimiter(modelInfo.id, modelInfo.rateLimit, ip)await rateLimiter?.check()@@ -104,10 +108,14 @@ export async function handler(})}- return { providerInfo, authInfo, res, startTimestamp }+ return { providerInfo, authInfo, reqBody, res, startTimestamp }}- const { providerInfo, authInfo, res, startTimestamp } = await retriableRequest()+ const { providerInfo, authInfo, reqBody, res, startTimestamp } = await retriableRequest()++ // Store model request+ dataDumper?.provideModel(providerInfo.storeModel)+ dataDumper?.provideRequest(reqBody)// Scrub response headersconst resHeaders = new Headers()@@ -126,6 +134,8 @@ export async function handler(const body = JSON.stringify(responseConverter(json))logger.metric({ response_length: body.length })logger.debug("RESPONSE: " + body)+ dataDumper?.provideResponse(body)+ dataDumper?.flush()await rateLimiter?.track()await trackUsage(authInfo, modelInfo, providerInfo, json.usage)await reload(authInfo)@@ -155,6 +165,7 @@ export async function handler(response_length: responseLength,"timestamp.last_byte": Date.now(),})+ dataDumper?.flush()await rateLimiter?.track()const usage = usageParser.retrieve()if (usage) {@@ -174,6 +185,7 @@ export async function handler(}responseLength += value.lengthbuffer += decoder.decode(value, { stream: true })+ dataDumper?.provideStream(buffer)const parts = buffer.split(providerInfo.streamSeparator)buffer = parts.pop() ?? ""diff --git a/packages/console/app/sst-env.d.ts b/packages/console/app/sst-env.d.tsindex bd558821739..9b9de73273f 100644--- a/packages/console/app/sst-env.d.ts+++ b/packages/console/app/sst-env.d.ts@@ -6,4 +6,4 @@/// <reference path="../../../sst-env.d.ts" />import "sst"-export {}+export {}\ No newline at end of filediff --git a/packages/console/core/src/model.ts b/packages/console/core/src/model.tsindex ed7911ab999..fd6cd095e94 100644--- a/packages/console/core/src/model.ts+++ b/packages/console/core/src/model.ts@@ -32,6 +32,7 @@ export namespace ZenData {model: z.string(),weight: z.number().optional(),disabled: z.boolean().optional(),+ storeModel: z.string().optional(),}),),})diff --git a/packages/console/core/sst-env.d.ts b/packages/console/core/sst-env.d.tsindex 0862ae4e377..8e38d38251b 100644--- a/packages/console/core/sst-env.d.ts+++ b/packages/console/core/sst-env.d.ts@@ -6,116 +6,126 @@import "sst"declare module "sst" {export interface Resource {- ADMIN_SECRET: {- type: "sst.sst.Secret"- value: string- }- AUTH_API_URL: {- type: "sst.sst.Linkable"- value: string- }- AWS_SES_ACCESS_KEY_ID: {- type: "sst.sst.Secret"- value: string- }- AWS_SES_SECRET_ACCESS_KEY: {- type: "sst.sst.Secret"- value: string- }- CLOUDFLARE_API_TOKEN: {- type: "sst.sst.Secret"- value: string- }- CLOUDFLARE_DEFAULT_ACCOUNT_ID: {- type: "sst.sst.Secret"- value: string- }- Console: {- type: "sst.cloudflare.SolidStart"- url: string- }- Database: {- database: string- host: string- password: string- port: number- type: "sst.sst.Linkable"- username: string- }- Desktop: {- type: "sst.cloudflare.StaticSite"- url: string- }- EMAILOCTOPUS_API_KEY: {- type: "sst.sst.Secret"- value: string- }- GITHUB_APP_ID: {- type: "sst.sst.Secret"- value: string- }- GITHUB_APP_PRIVATE_KEY: {- type: "sst.sst.Secret"- value: string- }- GITHUB_CLIENT_ID_CONSOLE: {- type: "sst.sst.Secret"- value: string- }- GITHUB_CLIENT_SECRET_CONSOLE: {- type: "sst.sst.Secret"- value: string- }- GOOGLE_CLIENT_ID: {- type: "sst.sst.Secret"- value: string- }- HONEYCOMB_API_KEY: {- type: "sst.sst.Secret"- value: string- }- STRIPE_SECRET_KEY: {- type: "sst.sst.Secret"- value: string- }- STRIPE_WEBHOOK_SECRET: {- type: "sst.sst.Linkable"- value: string- }- Web: {- type: "sst.cloudflare.Astro"- url: string- }- ZEN_MODELS1: {- type: "sst.sst.Secret"- value: string- }- ZEN_MODELS2: {- type: "sst.sst.Secret"- value: string- }- ZEN_MODELS3: {- type: "sst.sst.Secret"- value: string- }- ZEN_MODELS4: {- type: "sst.sst.Secret"- value: string+ "ADMIN_SECRET": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "AUTH_API_URL": {+ "type": "sst.sst.Linkable"+ "value": string+ }+ "AWS_SES_ACCESS_KEY_ID": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "AWS_SES_SECRET_ACCESS_KEY": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "CLOUDFLARE_API_TOKEN": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "CLOUDFLARE_DEFAULT_ACCOUNT_ID": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "Console": {+ "type": "sst.cloudflare.SolidStart"+ "url": string+ }+ "Database": {+ "database": string+ "host": string+ "password": string+ "port": number+ "type": "sst.sst.Linkable"+ "username": string+ }+ "Desktop": {+ "type": "sst.cloudflare.StaticSite"+ "url": string+ }+ "EMAILOCTOPUS_API_KEY": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "GITHUB_APP_ID": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "GITHUB_APP_PRIVATE_KEY": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "GITHUB_CLIENT_ID_CONSOLE": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "GITHUB_CLIENT_SECRET_CONSOLE": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "GOOGLE_CLIENT_ID": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "HONEYCOMB_API_KEY": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "R2AccessKey": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "R2SecretKey": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "STRIPE_SECRET_KEY": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "STRIPE_WEBHOOK_SECRET": {+ "type": "sst.sst.Linkable"+ "value": string+ }+ "Web": {+ "type": "sst.cloudflare.Astro"+ "url": string+ }+ "ZEN_MODELS1": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS2": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS3": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS4": {+ "type": "sst.sst.Secret"+ "value": string}}}-// cloudflare-import * as cloudflare from "@cloudflare/workers-types"+// cloudflare+import * as cloudflare from "@cloudflare/workers-types";declare module "sst" {export interface Resource {- Api: cloudflare.Service- AuthApi: cloudflare.Service- AuthStorage: cloudflare.KVNamespace- Bucket: cloudflare.R2Bucket- GatewayKv: cloudflare.KVNamespace- LogProcessor: cloudflare.Service+ "Api": cloudflare.Service+ "AuthApi": cloudflare.Service+ "AuthStorage": cloudflare.KVNamespace+ "Bucket": cloudflare.R2Bucket+ "ConsoleData": cloudflare.R2Bucket+ "EnterpriseStorage": cloudflare.R2Bucket+ "GatewayKv": cloudflare.KVNamespace+ "LogProcessor": cloudflare.Service}}import "sst"-export {}+export {}\ No newline at end of filediff --git a/packages/console/function/sst-env.d.ts b/packages/console/function/sst-env.d.tsindex 0862ae4e377..8e38d38251b 100644--- a/packages/console/function/sst-env.d.ts+++ b/packages/console/function/sst-env.d.ts@@ -6,116 +6,126 @@import "sst"declare module "sst" {export interface Resource {- ADMIN_SECRET: {- type: "sst.sst.Secret"- value: string- }- AUTH_API_URL: {- type: "sst.sst.Linkable"- value: string- }- AWS_SES_ACCESS_KEY_ID: {- type: "sst.sst.Secret"- value: string- }- AWS_SES_SECRET_ACCESS_KEY: {- type: "sst.sst.Secret"- value: string- }- CLOUDFLARE_API_TOKEN: {- type: "sst.sst.Secret"- value: string- }- CLOUDFLARE_DEFAULT_ACCOUNT_ID: {- type: "sst.sst.Secret"- value: string- }- Console: {- type: "sst.cloudflare.SolidStart"- url: string- }- Database: {- database: string- host: string- password: string- port: number- type: "sst.sst.Linkable"- username: string- }- Desktop: {- type: "sst.cloudflare.StaticSite"- url: string- }- EMAILOCTOPUS_API_KEY: {- type: "sst.sst.Secret"- value: string- }- GITHUB_APP_ID: {- type: "sst.sst.Secret"- value: string- }- GITHUB_APP_PRIVATE_KEY: {- type: "sst.sst.Secret"- value: string- }- GITHUB_CLIENT_ID_CONSOLE: {- type: "sst.sst.Secret"- value: string- }- GITHUB_CLIENT_SECRET_CONSOLE: {- type: "sst.sst.Secret"- value: string- }- GOOGLE_CLIENT_ID: {- type: "sst.sst.Secret"- value: string- }- HONEYCOMB_API_KEY: {- type: "sst.sst.Secret"- value: string- }- STRIPE_SECRET_KEY: {- type: "sst.sst.Secret"- value: string- }- STRIPE_WEBHOOK_SECRET: {- type: "sst.sst.Linkable"- value: string- }- Web: {- type: "sst.cloudflare.Astro"- url: string- }- ZEN_MODELS1: {- type: "sst.sst.Secret"- value: string- }- ZEN_MODELS2: {- type: "sst.sst.Secret"- value: string- }- ZEN_MODELS3: {- type: "sst.sst.Secret"- value: string- }- ZEN_MODELS4: {- type: "sst.sst.Secret"- value: string+ "ADMIN_SECRET": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "AUTH_API_URL": {+ "type": "sst.sst.Linkable"+ "value": string+ }+ "AWS_SES_ACCESS_KEY_ID": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "AWS_SES_SECRET_ACCESS_KEY": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "CLOUDFLARE_API_TOKEN": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "CLOUDFLARE_DEFAULT_ACCOUNT_ID": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "Console": {+ "type": "sst.cloudflare.SolidStart"+ "url": string+ }+ "Database": {+ "database": string+ "host": string+ "password": string+ "port": number+ "type": "sst.sst.Linkable"+ "username": string+ }+ "Desktop": {+ "type": "sst.cloudflare.StaticSite"+ "url": string+ }+ "EMAILOCTOPUS_API_KEY": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "GITHUB_APP_ID": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "GITHUB_APP_PRIVATE_KEY": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "GITHUB_CLIENT_ID_CONSOLE": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "GITHUB_CLIENT_SECRET_CONSOLE": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "GOOGLE_CLIENT_ID": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "HONEYCOMB_API_KEY": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "R2AccessKey": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "R2SecretKey": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "STRIPE_SECRET_KEY": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "STRIPE_WEBHOOK_SECRET": {+ "type": "sst.sst.Linkable"+ "value": string+ }+ "Web": {+ "type": "sst.cloudflare.Astro"+ "url": string+ }+ "ZEN_MODELS1": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS2": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS3": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS4": {+ "type": "sst.sst.Secret"+ "value": string}}}-// cloudflare-import * as cloudflare from "@cloudflare/workers-types"+// cloudflare+import * as cloudflare from "@cloudflare/workers-types";declare module "sst" {export interface Resource {- Api: cloudflare.Service- AuthApi: cloudflare.Service- AuthStorage: cloudflare.KVNamespace- Bucket: cloudflare.R2Bucket- GatewayKv: cloudflare.KVNamespace- LogProcessor: cloudflare.Service+ "Api": cloudflare.Service+ "AuthApi": cloudflare.Service+ "AuthStorage": cloudflare.KVNamespace+ "Bucket": cloudflare.R2Bucket+ "ConsoleData": cloudflare.R2Bucket+ "EnterpriseStorage": cloudflare.R2Bucket+ "GatewayKv": cloudflare.KVNamespace+ "LogProcessor": cloudflare.Service}}import "sst"-export {}+export {}\ No newline at end of filediff --git a/packages/console/mail/sst-env.d.ts b/packages/console/mail/sst-env.d.tsindex bd558821739..9b9de73273f 100644--- a/packages/console/mail/sst-env.d.ts+++ b/packages/console/mail/sst-env.d.ts@@ -6,4 +6,4 @@/// <reference path="../../../sst-env.d.ts" />import "sst"-export {}+export {}\ No newline at end of filediff --git a/packages/console/resource/resource.cloudflare.ts b/packages/console/resource/resource.cloudflare.tsindex a56b1e4174d..745212ca9c9 100644--- a/packages/console/resource/resource.cloudflare.ts+++ b/packages/console/resource/resource.cloudflare.ts@@ -1,4 +1,5 @@import { env } from "cloudflare:workers"+export { waitUntil } from "cloudflare:workers"export const Resource = new Proxy({},diff --git a/packages/console/resource/resource.node.ts b/packages/console/resource/resource.node.tsindex f63d7bada92..46b9629ed2d 100644--- a/packages/console/resource/resource.node.ts+++ b/packages/console/resource/resource.node.ts@@ -2,54 +2,66 @@ import type { KVNamespaceListOptions, KVNamespaceListResult, KVNamespacePutOptioimport { Resource as ResourceBase } from "sst"import Cloudflare from "cloudflare"+export const waitUntil = async (fn: () => Promise<void>) => {+ await fn()+}+export const Resource = new Proxy({},{get(_target, prop: keyof typeof ResourceBase) {const value = ResourceBase[prop]- // @ts-ignore- if ("type" in value && value.type === "sst.cloudflare.Kv") {- const client = new Cloudflare({- apiToken: ResourceBase.CLOUDFLARE_API_TOKEN.value,- })+ if ("type" in value) {+ // @ts-ignore+ if (value.type === "sst.cloudflare.Bucket") {+ return {+ put: async () => {},+ }+ }// @ts-ignore- const namespaceId = value.namespaceId- const accountId = ResourceBase.CLOUDFLARE_DEFAULT_ACCOUNT_ID.value- return {- get: (k: string | string[]) => {- const isMulti = Array.isArray(k)- return client.kv.namespaces- .bulkGet(namespaceId, {- keys: Array.isArray(k) ? k : [k],+ if (value.type === "sst.cloudflare.Kv") {+ const client = new Cloudflare({+ apiToken: ResourceBase.CLOUDFLARE_API_TOKEN.value,+ })+ // @ts-ignore+ const namespaceId = value.namespaceId+ const accountId = ResourceBase.CLOUDFLARE_DEFAULT_ACCOUNT_ID.value+ return {+ get: (k: string | string[]) => {+ const isMulti = Array.isArray(k)+ return client.kv.namespaces+ .bulkGet(namespaceId, {+ keys: Array.isArray(k) ? k : [k],+ account_id: accountId,+ })+ .then((result) => (isMulti ? new Map(Object.entries(result?.values ?? {})) : result?.values?.[k]))+ },+ put: (k: string, v: string, opts?: KVNamespacePutOptions) =>+ client.kv.namespaces.values.update(namespaceId, k, {account_id: accountId,- })- .then((result) => (isMulti ? new Map(Object.entries(result?.values ?? {})) : result?.values?.[k]))- },- put: (k: string, v: string, opts?: KVNamespacePutOptions) =>- client.kv.namespaces.values.update(namespaceId, k, {- account_id: accountId,- value: v,- expiration: opts?.expiration,- expiration_ttl: opts?.expirationTtl,- metadata: opts?.metadata,- }),- delete: (k: string) =>- client.kv.namespaces.values.delete(namespaceId, k, {- account_id: accountId,- }),- list: (opts?: KVNamespaceListOptions): Promise<KVNamespaceListResult<unknown, string>> =>- client.kv.namespaces.keys- .list(namespaceId, {+ value: v,+ expiration: opts?.expiration,+ expiration_ttl: opts?.expirationTtl,+ metadata: opts?.metadata,+ }),+ delete: (k: string) =>+ client.kv.namespaces.values.delete(namespaceId, k, {account_id: accountId,- prefix: opts?.prefix ?? undefined,- })- .then((result) => {- return {- keys: result.result,- list_complete: true,- cacheStatus: null,- }}),+ list: (opts?: KVNamespaceListOptions): Promise<KVNamespaceListResult<unknown, string>> =>+ client.kv.namespaces.keys+ .list(namespaceId, {+ account_id: accountId,+ prefix: opts?.prefix ?? undefined,+ })+ .then((result) => {+ return {+ keys: result.result,+ list_complete: true,+ cacheStatus: null,+ }+ }),+ }}}return valuediff --git a/packages/console/resource/sst-env.d.ts b/packages/console/resource/sst-env.d.tsindex 0862ae4e377..8e38d38251b 100644--- a/packages/console/resource/sst-env.d.ts+++ b/packages/console/resource/sst-env.d.ts@@ -6,116 +6,126 @@import "sst"declare module "sst" {export interface Resource {- ADMIN_SECRET: {- type: "sst.sst.Secret"- value: string- }- AUTH_API_URL: {- type: "sst.sst.Linkable"- value: string- }- AWS_SES_ACCESS_KEY_ID: {- type: "sst.sst.Secret"- value: string- }- AWS_SES_SECRET_ACCESS_KEY: {- type: "sst.sst.Secret"- value: string- }- CLOUDFLARE_API_TOKEN: {- type: "sst.sst.Secret"- value: string- }- CLOUDFLARE_DEFAULT_ACCOUNT_ID: {- type: "sst.sst.Secret"- value: string- }- Console: {- type: "sst.cloudflare.SolidStart"- url: string- }- Database: {- database: string- host: string- password: string- port: number- type: "sst.sst.Linkable"- username: string- }- Desktop: {- type: "sst.cloudflare.StaticSite"- url: string- }- EMAILOCTOPUS_API_KEY: {- type: "sst.sst.Secret"- value: string- }- GITHUB_APP_ID: {- type: "sst.sst.Secret"- value: string- }- GITHUB_APP_PRIVATE_KEY: {- type: "sst.sst.Secret"- value: string- }- GITHUB_CLIENT_ID_CONSOLE: {- type: "sst.sst.Secret"- value: string- }- GITHUB_CLIENT_SECRET_CONSOLE: {- type: "sst.sst.Secret"- value: string- }- GOOGLE_CLIENT_ID: {- type: "sst.sst.Secret"- value: string- }- HONEYCOMB_API_KEY: {- type: "sst.sst.Secret"- value: string- }- STRIPE_SECRET_KEY: {- type: "sst.sst.Secret"- value: string- }- STRIPE_WEBHOOK_SECRET: {- type: "sst.sst.Linkable"- value: string- }- Web: {- type: "sst.cloudflare.Astro"- url: string- }- ZEN_MODELS1: {- type: "sst.sst.Secret"- value: string- }- ZEN_MODELS2: {- type: "sst.sst.Secret"- value: string- }- ZEN_MODELS3: {- type: "sst.sst.Secret"- value: string- }- ZEN_MODELS4: {- type: "sst.sst.Secret"- value: string+ "ADMIN_SECRET": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "AUTH_API_URL": {+ "type": "sst.sst.Linkable"+ "value": string+ }+ "AWS_SES_ACCESS_KEY_ID": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "AWS_SES_SECRET_ACCESS_KEY": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "CLOUDFLARE_API_TOKEN": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "CLOUDFLARE_DEFAULT_ACCOUNT_ID": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "Console": {+ "type": "sst.cloudflare.SolidStart"+ "url": string+ }+ "Database": {+ "database": string+ "host": string+ "password": string+ "port": number+ "type": "sst.sst.Linkable"+ "username": string+ }+ "Desktop": {+ "type": "sst.cloudflare.StaticSite"+ "url": string+ }+ "EMAILOCTOPUS_API_KEY": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "GITHUB_APP_ID": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "GITHUB_APP_PRIVATE_KEY": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "GITHUB_CLIENT_ID_CONSOLE": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "GITHUB_CLIENT_SECRET_CONSOLE": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "GOOGLE_CLIENT_ID": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "HONEYCOMB_API_KEY": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "R2AccessKey": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "R2SecretKey": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "STRIPE_SECRET_KEY": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "STRIPE_WEBHOOK_SECRET": {+ "type": "sst.sst.Linkable"+ "value": string+ }+ "Web": {+ "type": "sst.cloudflare.Astro"+ "url": string+ }+ "ZEN_MODELS1": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS2": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS3": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS4": {+ "type": "sst.sst.Secret"+ "value": string}}}-// cloudflare-import * as cloudflare from "@cloudflare/workers-types"+// cloudflare+import * as cloudflare from "@cloudflare/workers-types";declare module "sst" {export interface Resource {- Api: cloudflare.Service- AuthApi: cloudflare.Service- AuthStorage: cloudflare.KVNamespace- Bucket: cloudflare.R2Bucket- GatewayKv: cloudflare.KVNamespace- LogProcessor: cloudflare.Service+ "Api": cloudflare.Service+ "AuthApi": cloudflare.Service+ "AuthStorage": cloudflare.KVNamespace+ "Bucket": cloudflare.R2Bucket+ "ConsoleData": cloudflare.R2Bucket+ "EnterpriseStorage": cloudflare.R2Bucket+ "GatewayKv": cloudflare.KVNamespace+ "LogProcessor": cloudflare.Service}}import "sst"-export {}+export {}\ No newline at end of filediff --git a/packages/desktop/src/sst-env.d.ts b/packages/desktop/src/sst-env.d.tsindex 1b1683a1e74..47a8fbec7bf 100644--- a/packages/desktop/src/sst-env.d.ts+++ b/packages/desktop/src/sst-env.d.ts@@ -2,7 +2,9 @@/* tslint:disable *//* eslint-disable *//// <reference types="vite/client" />-interface ImportMetaEnv {}+interface ImportMetaEnv {++}interface ImportMeta {readonly env: ImportMetaEnv-}+}\ No newline at end of filediff --git a/packages/desktop/sst-env.d.ts b/packages/desktop/sst-env.d.tsindex 0397645b50f..b6a7e9066ef 100644--- a/packages/desktop/sst-env.d.ts+++ b/packages/desktop/sst-env.d.ts@@ -6,4 +6,4 @@/// <reference path="../../sst-env.d.ts" />import "sst"-export {}+export {}\ No newline at end of filediff --git a/packages/enterprise/sst-env.d.ts b/packages/enterprise/sst-env.d.tsnew file mode 100644index 00000000000..8e38d38251b--- /dev/null+++ b/packages/enterprise/sst-env.d.ts@@ -0,0 +1,131 @@+/* This file is auto-generated by SST. Do not edit. */+/* tslint:disable */+/* eslint-disable */+/* deno-fmt-ignore-file */++import "sst"+declare module "sst" {+ export interface Resource {+ "ADMIN_SECRET": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "AUTH_API_URL": {+ "type": "sst.sst.Linkable"+ "value": string+ }+ "AWS_SES_ACCESS_KEY_ID": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "AWS_SES_SECRET_ACCESS_KEY": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "CLOUDFLARE_API_TOKEN": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "CLOUDFLARE_DEFAULT_ACCOUNT_ID": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "Console": {+ "type": "sst.cloudflare.SolidStart"+ "url": string+ }+ "Database": {+ "database": string+ "host": string+ "password": string+ "port": number+ "type": "sst.sst.Linkable"+ "username": string+ }+ "Desktop": {+ "type": "sst.cloudflare.StaticSite"+ "url": string+ }+ "EMAILOCTOPUS_API_KEY": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "GITHUB_APP_ID": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "GITHUB_APP_PRIVATE_KEY": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "GITHUB_CLIENT_ID_CONSOLE": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "GITHUB_CLIENT_SECRET_CONSOLE": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "GOOGLE_CLIENT_ID": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "HONEYCOMB_API_KEY": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "R2AccessKey": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "R2SecretKey": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "STRIPE_SECRET_KEY": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "STRIPE_WEBHOOK_SECRET": {+ "type": "sst.sst.Linkable"+ "value": string+ }+ "Web": {+ "type": "sst.cloudflare.Astro"+ "url": string+ }+ "ZEN_MODELS1": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS2": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS3": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS4": {+ "type": "sst.sst.Secret"+ "value": string+ }+ }+}+// cloudflare+import * as cloudflare from "@cloudflare/workers-types";+declare module "sst" {+ export interface Resource {+ "Api": cloudflare.Service+ "AuthApi": cloudflare.Service+ "AuthStorage": cloudflare.KVNamespace+ "Bucket": cloudflare.R2Bucket+ "ConsoleData": cloudflare.R2Bucket+ "EnterpriseStorage": cloudflare.R2Bucket+ "GatewayKv": cloudflare.KVNamespace+ "LogProcessor": cloudflare.Service+ }+}++import "sst"+export {}\ No newline at end of filediff --git a/packages/function/sst-env.d.ts b/packages/function/sst-env.d.tsindex 0862ae4e377..8e38d38251b 100644--- a/packages/function/sst-env.d.ts+++ b/packages/function/sst-env.d.ts@@ -6,116 +6,126 @@import "sst"declare module "sst" {export interface Resource {- ADMIN_SECRET: {- type: "sst.sst.Secret"- value: string- }- AUTH_API_URL: {- type: "sst.sst.Linkable"- value: string- }- AWS_SES_ACCESS_KEY_ID: {- type: "sst.sst.Secret"- value: string- }- AWS_SES_SECRET_ACCESS_KEY: {- type: "sst.sst.Secret"- value: string- }- CLOUDFLARE_API_TOKEN: {- type: "sst.sst.Secret"- value: string- }- CLOUDFLARE_DEFAULT_ACCOUNT_ID: {- type: "sst.sst.Secret"- value: string- }- Console: {- type: "sst.cloudflare.SolidStart"- url: string- }- Database: {- database: string- host: string- password: string- port: number- type: "sst.sst.Linkable"- username: string- }- Desktop: {- type: "sst.cloudflare.StaticSite"- url: string- }- EMAILOCTOPUS_API_KEY: {- type: "sst.sst.Secret"- value: string- }- GITHUB_APP_ID: {- type: "sst.sst.Secret"- value: string- }- GITHUB_APP_PRIVATE_KEY: {- type: "sst.sst.Secret"- value: string- }- GITHUB_CLIENT_ID_CONSOLE: {- type: "sst.sst.Secret"- value: string- }- GITHUB_CLIENT_SECRET_CONSOLE: {- type: "sst.sst.Secret"- value: string- }- GOOGLE_CLIENT_ID: {- type: "sst.sst.Secret"- value: string- }- HONEYCOMB_API_KEY: {- type: "sst.sst.Secret"- value: string- }- STRIPE_SECRET_KEY: {- type: "sst.sst.Secret"- value: string- }- STRIPE_WEBHOOK_SECRET: {- type: "sst.sst.Linkable"- value: string- }- Web: {- type: "sst.cloudflare.Astro"- url: string- }- ZEN_MODELS1: {- type: "sst.sst.Secret"- value: string- }- ZEN_MODELS2: {- type: "sst.sst.Secret"- value: string- }- ZEN_MODELS3: {- type: "sst.sst.Secret"- value: string- }- ZEN_MODELS4: {- type: "sst.sst.Secret"- value: string+ "ADMIN_SECRET": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "AUTH_API_URL": {+ "type": "sst.sst.Linkable"+ "value": string+ }+ "AWS_SES_ACCESS_KEY_ID": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "AWS_SES_SECRET_ACCESS_KEY": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "CLOUDFLARE_API_TOKEN": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "CLOUDFLARE_DEFAULT_ACCOUNT_ID": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "Console": {+ "type": "sst.cloudflare.SolidStart"+ "url": string+ }+ "Database": {+ "database": string+ "host": string+ "password": string+ "port": number+ "type": "sst.sst.Linkable"+ "username": string+ }+ "Desktop": {+ "type": "sst.cloudflare.StaticSite"+ "url": string+ }+ "EMAILOCTOPUS_API_KEY": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "GITHUB_APP_ID": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "GITHUB_APP_PRIVATE_KEY": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "GITHUB_CLIENT_ID_CONSOLE": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "GITHUB_CLIENT_SECRET_CONSOLE": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "GOOGLE_CLIENT_ID": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "HONEYCOMB_API_KEY": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "R2AccessKey": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "R2SecretKey": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "STRIPE_SECRET_KEY": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "STRIPE_WEBHOOK_SECRET": {+ "type": "sst.sst.Linkable"+ "value": string+ }+ "Web": {+ "type": "sst.cloudflare.Astro"+ "url": string+ }+ "ZEN_MODELS1": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS2": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS3": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "ZEN_MODELS4": {+ "type": "sst.sst.Secret"+ "value": string}}}-// cloudflare-import * as cloudflare from "@cloudflare/workers-types"+// cloudflare+import * as cloudflare from "@cloudflare/workers-types";declare module "sst" {export interface Resource {- Api: cloudflare.Service- AuthApi: cloudflare.Service- AuthStorage: cloudflare.KVNamespace- Bucket: cloudflare.R2Bucket- GatewayKv: cloudflare.KVNamespace- LogProcessor: cloudflare.Service+ "Api": cloudflare.Service+ "AuthApi": cloudflare.Service+ "AuthStorage": cloudflare.KVNamespace+ "Bucket": cloudflare.R2Bucket+ "ConsoleData": cloudflare.R2Bucket+ "EnterpriseStorage": cloudflare.R2Bucket+ "GatewayKv": cloudflare.KVNamespace+ "LogProcessor": cloudflare.Service}}import "sst"-export {}+export {}\ No newline at end of filediff --git a/packages/opencode/src/provider/provider.ts b/packages/opencode/src/provider/provider.tsindex bc212629d33..d632085cfc1 100644--- a/packages/opencode/src/provider/provider.ts+++ b/packages/opencode/src/provider/provider.ts@@ -676,7 +676,7 @@ export namespace Provider {if (providerID === "github-copilot") {priority = priority.filter((m) => m !== "claude-haiku-4.5")}- if (providerID === "opencode" || providerID === "local") {+ if (providerID.startsWith("opencode")) {priority = ["gpt-5-nano"]}for (const item of priority) {diff --git a/packages/opencode/src/session/prompt.ts b/packages/opencode/src/session/prompt.tsindex 6b255981b78..f550005b341 100644--- a/packages/opencode/src/session/prompt.ts+++ b/packages/opencode/src/session/prompt.ts@@ -534,7 +534,7 @@ export namespace SessionPrompt {}},headers: {- ...(model.providerID === "opencode"+ ...(model.providerID.startsWith("opencode")? {"x-opencode-session": sessionID,"x-opencode-request": lastUser.id,diff --git a/packages/opencode/sst-env.d.ts b/packages/opencode/sst-env.d.tsindex 0397645b50f..b6a7e9066ef 100644--- a/packages/opencode/sst-env.d.ts+++ b/packages/opencode/sst-env.d.ts@@ -6,4 +6,4 @@/// <reference path="../../sst-env.d.ts" />import "sst"-export {}+export {}\ No newline at end of filediff --git a/packages/plugin/sst-env.d.ts b/packages/plugin/sst-env.d.tsindex 0397645b50f..b6a7e9066ef 100644--- a/packages/plugin/sst-env.d.ts+++ b/packages/plugin/sst-env.d.ts@@ -6,4 +6,4 @@/// <reference path="../../sst-env.d.ts" />import "sst"-export {}+export {}\ No newline at end of filediff --git a/packages/script/sst-env.d.ts b/packages/script/sst-env.d.tsindex 0397645b50f..b6a7e9066ef 100644--- a/packages/script/sst-env.d.ts+++ b/packages/script/sst-env.d.ts@@ -6,4 +6,4 @@/// <reference path="../../sst-env.d.ts" />import "sst"-export {}+export {}\ No newline at end of filediff --git a/packages/sdk/js/sst-env.d.ts b/packages/sdk/js/sst-env.d.tsindex bd558821739..9b9de73273f 100644--- a/packages/sdk/js/sst-env.d.ts+++ b/packages/sdk/js/sst-env.d.ts@@ -6,4 +6,4 @@/// <reference path="../../../sst-env.d.ts" />import "sst"-export {}+export {}\ No newline at end of filediff --git a/packages/sdk/python/sst.pyi b/packages/sdk/python/sst.pyiindex 0598229ca34..1c423e9ac5c 100644--- a/packages/sdk/python/sst.pyi+++ b/packages/sdk/python/sst.pyi@@ -39,6 +39,9 @@ class Resource:class Console:type: strurl: str+ class ConsoleData:+ name: str+ type: strclass Database:database: strhost: str@@ -52,6 +55,9 @@ class Resource:class EMAILOCTOPUS_API_KEY:type: strvalue: str+ class EnterpriseStorage:+ name: str+ type: strclass GITHUB_APP_ID:type: strvalue: str@@ -75,6 +81,12 @@ class Resource:value: strclass LogProcessor:type: str+ class R2AccessKey:+ type: str+ value: str+ class R2SecretKey:+ type: str+ value: strclass STRIPE_SECRET_KEY:type: strvalue: strdiff --git a/packages/slack/sst-env.d.ts b/packages/slack/sst-env.d.tsindex 0397645b50f..b6a7e9066ef 100644--- a/packages/slack/sst-env.d.ts+++ b/packages/slack/sst-env.d.ts@@ -6,4 +6,4 @@/// <reference path="../../sst-env.d.ts" />import "sst"-export {}+export {}\ No newline at end of filediff --git a/packages/tauri/sst-env.d.ts b/packages/tauri/sst-env.d.tsnew file mode 100644index 00000000000..b6a7e9066ef--- /dev/null+++ b/packages/tauri/sst-env.d.ts@@ -0,0 +1,9 @@+/* This file is auto-generated by SST. Do not edit. */+/* tslint:disable */+/* eslint-disable */+/* deno-fmt-ignore-file */++/// <reference path="../../sst-env.d.ts" />++import "sst"+export {}\ No newline at end of filediff --git a/packages/ui/sst-env.d.ts b/packages/ui/sst-env.d.tsindex 0397645b50f..b6a7e9066ef 100644--- a/packages/ui/sst-env.d.ts+++ b/packages/ui/sst-env.d.ts@@ -6,4 +6,4 @@/// <reference path="../../sst-env.d.ts" />import "sst"-export {}+export {}\ No newline at end of filediff --git a/packages/util/sst-env.d.ts b/packages/util/sst-env.d.tsindex 0397645b50f..b6a7e9066ef 100644--- a/packages/util/sst-env.d.ts+++ b/packages/util/sst-env.d.ts@@ -6,4 +6,4 @@/// <reference path="../../sst-env.d.ts" />import "sst"-export {}+export {}\ No newline at end of filediff --git a/packages/web/sst-env.d.ts b/packages/web/sst-env.d.tsindex 0397645b50f..b6a7e9066ef 100644--- a/packages/web/sst-env.d.ts+++ b/packages/web/sst-env.d.ts@@ -6,4 +6,4 @@/// <reference path="../../sst-env.d.ts" />import "sst"-export {}+export {}\ No newline at end of filediff --git a/sdks/vscode/sst-env.d.ts b/sdks/vscode/sst-env.d.tsindex 0397645b50f..b6a7e9066ef 100644--- a/sdks/vscode/sst-env.d.ts+++ b/sdks/vscode/sst-env.d.ts@@ -6,4 +6,4 @@/// <reference path="../../sst-env.d.ts" />import "sst"-export {}+export {}\ No newline at end of filediff --git a/sst-env.d.ts b/sst-env.d.tsindex 171ff4a071a..361c2fdfa8e 100644--- a/sst-env.d.ts+++ b/sst-env.d.ts@@ -5,128 +5,144 @@declare module "sst" {export interface Resource {- ADMIN_SECRET: {- type: "sst.sst.Secret"- value: string- }- AUTH_API_URL: {- type: "sst.sst.Linkable"- value: string- }- AWS_SES_ACCESS_KEY_ID: {- type: "sst.sst.Secret"- value: string- }- AWS_SES_SECRET_ACCESS_KEY: {- type: "sst.sst.Secret"- value: string- }- Api: {- type: "sst.cloudflare.Worker"- url: string+ "ADMIN_SECRET": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "AUTH_API_URL": {+ "type": "sst.sst.Linkable"+ "value": string+ }+ "AWS_SES_ACCESS_KEY_ID": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "AWS_SES_SECRET_ACCESS_KEY": {+ "type": "sst.sst.Secret"+ "value": string+ }+ "Api": {+ "type": "sst.cloudflare.Worker"+ "url": string+ }+ "AuthApi": {+ "type": "sst.cloudflare.Worker"+ "url": string+ }+ "AuthStorage": {+ "namespaceId": string+ "type": "sst.cloudflare.Kv"+ }+ "Bucket": {+ "name": string+ "type": "sst.cloudflare.Bucket"+ }+ "CLOUDFLARE_API_TOKEN": {+ "type": "sst.sst.Secret"+ "value": string}- AuthApi: {- type: "sst.cloudflare.Worker"- url: string+ "CLOUDFLARE_DEFAULT_ACCOUNT_ID": {+ "type": "sst.sst.Secret"+ "value": string}- AuthStorage: {- namespaceId: string- type: "sst.cloudflare.Kv"+ "Console": {+ "type": "sst.cloudflare.SolidStart"+ "url": string}- Bucket: {- name: string- type: "sst.cloudflare.Bucket"+ "ConsoleData": {+ "name": string+ "type": "sst.cloudflare.Bucket"}- CLOUDFLARE_API_TOKEN: {- type: "sst.sst.Secret"- value: string+ "Database": {+ "database": string+ "host": string+ "password": string+ "port": number+ "type": "sst.sst.Linkable"+ "username": string}- CLOUDFLARE_DEFAULT_ACCOUNT_ID: {- type: "sst.sst.Secret"- value: string+ "Desktop": {+ "type": "sst.cloudflare.StaticSite"+ "url": string}- Console: {- type: "sst.cloudflare.SolidStart"- url: string+ "EMAILOCTOPUS_API_KEY": {+ "type": "sst.sst.Secret"+ "value": string}- Database: {- database: string- host: string- password: string- port: number- type: "sst.sst.Linkable"- username: string+ "EnterpriseStorage": {+ "name": string+ "type": "sst.cloudflare.Bucket"}- Desktop: {- type: "sst.cloudflare.StaticSite"- url: string+ "GITHUB_APP_ID": {+ "type": "sst.sst.Secret"+ "value": string}- EMAILOCTOPUS_API_KEY: {- type: "sst.sst.Secret"- value: string+ "GITHUB_APP_PRIVATE_KEY": {+ "type": "sst.sst.Secret"+ "value": string}- GITHUB_APP_ID: {- type: "sst.sst.Secret"- value: string+ "GITHUB_CLIENT_ID_CONSOLE": {+ "type": "sst.sst.Secret"+ "value": string}- GITHUB_APP_PRIVATE_KEY: {- type: "sst.sst.Secret"- value: string+ "GITHUB_CLIENT_SECRET_CONSOLE": {+ "type": "sst.sst.Secret"+ "value": string}- GITHUB_CLIENT_ID_CONSOLE: {- type: "sst.sst.Secret"- value: string+ "GOOGLE_CLIENT_ID": {+ "type": "sst.sst.Secret"+ "value": string}- GITHUB_CLIENT_SECRET_CONSOLE: {- type: "sst.sst.Secret"- value: string+ "GatewayKv": {+ "namespaceId": string+ "type": "sst.cloudflare.Kv"}- GOOGLE_CLIENT_ID: {- type: "sst.sst.Secret"- value: string+ "HONEYCOMB_API_KEY": {+ "type": "sst.sst.Secret"+ "value": string}- GatewayKv: {- namespaceId: string- type: "sst.cloudflare.Kv"+ "LogProcessor": {+ "type": "sst.cloudflare.Worker"}- HONEYCOMB_API_KEY: {- type: "sst.sst.Secret"- value: string+ "R2AccessKey": {+ "type": "sst.sst.Secret"+ "value": string}- LogProcessor: {- type: "sst.cloudflare.Worker"+ "R2SecretKey": {+ "type": "sst.sst.Secret"+ "value": string}- STRIPE_SECRET_KEY: {- type: "sst.sst.Secret"- value: string+ "STRIPE_SECRET_KEY": {+ "type": "sst.sst.Secret"+ "value": string}- STRIPE_WEBHOOK_SECRET: {- type: "sst.sst.Linkable"- value: string+ "STRIPE_WEBHOOK_SECRET": {+ "type": "sst.sst.Linkable"+ "value": string}- Web: {- type: "sst.cloudflare.Astro"- url: string+ "Web": {+ "type": "sst.cloudflare.Astro"+ "url": string}- ZEN_MODELS1: {- type: "sst.sst.Secret"- value: string+ "ZEN_MODELS1": {+ "type": "sst.sst.Secret"+ "value": string}- ZEN_MODELS2: {- type: "sst.sst.Secret"- value: string+ "ZEN_MODELS2": {+ "type": "sst.sst.Secret"+ "value": string}- ZEN_MODELS3: {- type: "sst.sst.Secret"- value: string+ "ZEN_MODELS3": {+ "type": "sst.sst.Secret"+ "value": string}- ZEN_MODELS4: {- type: "sst.sst.Secret"- value: string+ "ZEN_MODELS4": {+ "type": "sst.sst.Secret"+ "value": string}}}/// <reference path="sst-env.d.ts" />import "sst"-export {}+export {}\ No newline at end of file