diff options
| author | Dax Raad <[email protected]> | 2025-09-09 23:43:37 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-09-09 23:44:04 -0400 |
| commit | 38e8c42cf02f73fb300889ab989088899a3aedb7 (patch) | |
| tree | 313db96535cf136cc1032618b43462c1f2f0e14c /cloud | |
| parent | 58fe88432714456350244ebbea1e6287d3dccb36 (diff) | |
| download | opencode-38e8c42cf02f73fb300889ab989088899a3aedb7.tar.gz opencode-38e8c42cf02f73fb300889ab989088899a3aedb7.zip | |
ci: format
Diffstat (limited to 'cloud')
| -rw-r--r-- | cloud/app/src/app.tsx | 16 | ||||
| -rw-r--r-- | cloud/app/src/component/icon.tsx | 58 | ||||
| -rw-r--r-- | cloud/app/src/entry-client.tsx | 4 | ||||
| -rw-r--r-- | cloud/app/src/entry-server.tsx | 48 | ||||
| -rw-r--r-- | cloud/app/src/routes/index.tsx | 7 | ||||
| -rw-r--r-- | cloud/app/src/routes/workspace.tsx | 12 | ||||
| -rw-r--r-- | cloud/app/src/routes/workspace/[id].tsx | 89 | ||||
| -rw-r--r-- | cloud/app/src/style/token/font.css | 3 | ||||
| -rw-r--r-- | cloud/app/sst-env.d.ts | 2 | ||||
| -rw-r--r-- | cloud/app/tsconfig.json | 8 | ||||
| -rw-r--r-- | cloud/core/migrations/meta/0000_snapshot.json | 48 | ||||
| -rw-r--r-- | cloud/core/migrations/meta/0001_snapshot.json | 48 | ||||
| -rw-r--r-- | cloud/core/migrations/meta/_journal.json | 2 | ||||
| -rw-r--r-- | cloud/core/src/util/fn.ts | 5 | ||||
| -rw-r--r-- | cloud/core/sst-env.d.ts | 2 | ||||
| -rw-r--r-- | cloud/function/sst-env.d.ts | 150 | ||||
| -rw-r--r-- | cloud/resource/sst-env.d.ts | 150 | ||||
| -rw-r--r-- | cloud/resource/tsconfig.json | 5 | ||||
| -rw-r--r-- | cloud/scripts/sst-env.d.ts | 2 |
19 files changed, 320 insertions, 339 deletions
diff --git a/cloud/app/src/app.tsx b/cloud/app/src/app.tsx index 17385c4a5..bc3961214 100644 --- a/cloud/app/src/app.tsx +++ b/cloud/app/src/app.tsx @@ -1,15 +1,15 @@ -import { MetaProvider, Title, Meta } from "@solidjs/meta"; -import { Router } from "@solidjs/router"; -import { FileRoutes } from "@solidjs/start/router"; -import { ErrorBoundary, Suspense } from "solid-js"; -import "@ibm/plex/css/ibm-plex.css"; -import "./app.css"; +import { MetaProvider, Title, Meta } from "@solidjs/meta" +import { Router } from "@solidjs/router" +import { FileRoutes } from "@solidjs/start/router" +import { ErrorBoundary, Suspense } from "solid-js" +import "@ibm/plex/css/ibm-plex.css" +import "./app.css" export default function App() { return ( <Router explicitLinks={true} - root={props => ( + root={(props) => ( <MetaProvider> <Title>opencode</Title> <Meta name="description" content="opencode - The AI coding agent built for the terminal." /> @@ -19,5 +19,5 @@ export default function App() { > <FileRoutes /> </Router> - ); + ) } diff --git a/cloud/app/src/component/icon.tsx b/cloud/app/src/component/icon.tsx index d73c178bc..c91c4937d 100644 --- a/cloud/app/src/component/icon.tsx +++ b/cloud/app/src/component/icon.tsx @@ -6,34 +6,66 @@ export function IconLogo(props: JSX.SvgSVGAttributes<SVGSVGElement>) { <path d="M264.5 0H288.5V8.5H272.5V16.5H288.5V25H272.5V33H288.5V41.5H264.5V0Z" fill="currentColor" /> <path d="M248.5 0H224.5V41.5H248.5V33H232.5V8.5H248.5V0Z" fill="currentColor" /> <path d="M256.5 8.5H248.5V33H256.5V8.5Z" fill="currentColor" /> - <path fill-rule="evenodd" clip-rule="evenodd" d="M184.5 0H216.5V41.5H184.5V0ZM208.5 8.5H192.5V33H208.5V8.5Z" fill="currentColor" /> + <path + fill-rule="evenodd" + clip-rule="evenodd" + d="M184.5 0H216.5V41.5H184.5V0ZM208.5 8.5H192.5V33H208.5V8.5Z" + fill="currentColor" + /> <path d="M144.5 8.5H136.5V41.5H144.5V8.5Z" fill="currentColor" /> <path d="M136.5 0H112.5V41.5H120.5V8.5H136.5V0Z" fill="currentColor" /> <path d="M80.5 0H104.5V8.5H88.5V16.5H104.5V25H88.5V33H104.5V41.5H80.5V0Z" fill="currentColor" /> - <path fill-rule="evenodd" clip-rule="evenodd" d="M40.5 0H72.5V41.5H48.5V49.5H40.5V0ZM64.5 8.5H48.5V33H64.5V8.5Z" fill="currentColor" /> - <path fill-rule="evenodd" clip-rule="evenodd" d="M0.5 0H32.5V41.5955H0.5V0ZM24.5 8.5H8.5V33H24.5V8.5Z" fill="currentColor" /> + <path + fill-rule="evenodd" + clip-rule="evenodd" + d="M40.5 0H72.5V41.5H48.5V49.5H40.5V0ZM64.5 8.5H48.5V33H64.5V8.5Z" + fill="currentColor" + /> + <path + fill-rule="evenodd" + clip-rule="evenodd" + d="M0.5 0H32.5V41.5955H0.5V0ZM24.5 8.5H8.5V33H24.5V8.5Z" + fill="currentColor" + /> <path d="M152.5 0H176.5V8.5H160.5V33H176.5V41.5H152.5V0Z" fill="currentColor" /> </svg> - ); + ) } export function IconCopy(props: JSX.SvgSVGAttributes<SVGSVGElement>) { return ( - <svg - {...props} - viewBox="0 0 512 512" > - <rect width="336" height="336" x="128" y="128" fill="none" stroke="currentColor" stroke-linejoin="round" stroke-width="32" rx="57" ry="57"></rect> - <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="m383.5 128l.5-24a56.16 56.16 0 0 0-56-56H112a64.19 64.19 0 0 0-64 64v216a56.16 56.16 0 0 0 56 56h24"></path> + <svg {...props} viewBox="0 0 512 512"> + <rect + width="336" + height="336" + x="128" + y="128" + fill="none" + stroke="currentColor" + stroke-linejoin="round" + stroke-width="32" + rx="57" + ry="57" + ></rect> + <path + fill="none" + stroke="currentColor" + stroke-linecap="round" + stroke-linejoin="round" + stroke-width="32" + d="m383.5 128l.5-24a56.16 56.16 0 0 0-56-56H112a64.19 64.19 0 0 0-64 64v216a56.16 56.16 0 0 0 56 56h24" + ></path> </svg> ) } export function IconCheck(props: JSX.SvgSVGAttributes<SVGSVGElement>) { return ( - <svg - {...props} - viewBox="0 0 24 24" > - <path fill="currentColor" d="M9 16.17L5.53 12.7a.996.996 0 1 0-1.41 1.41l4.18 4.18c.39.39 1.02.39 1.41 0L20.29 7.71a.996.996 0 1 0-1.41-1.41z"></path> + <svg {...props} viewBox="0 0 24 24"> + <path + fill="currentColor" + d="M9 16.17L5.53 12.7a.996.996 0 1 0-1.41 1.41l4.18 4.18c.39.39 1.02.39 1.41 0L20.29 7.71a.996.996 0 1 0-1.41-1.41z" + ></path> </svg> ) } diff --git a/cloud/app/src/entry-client.tsx b/cloud/app/src/entry-client.tsx index 0ca4e3c30..642deacf7 100644 --- a/cloud/app/src/entry-client.tsx +++ b/cloud/app/src/entry-client.tsx @@ -1,4 +1,4 @@ // @refresh reload -import { mount, StartClient } from "@solidjs/start/client"; +import { mount, StartClient } from "@solidjs/start/client" -mount(() => <StartClient />, document.getElementById("app")!); +mount(() => <StartClient />, document.getElementById("app")!) diff --git a/cloud/app/src/entry-server.tsx b/cloud/app/src/entry-server.tsx index d2e6044aa..d5fca6aa5 100644 --- a/cloud/app/src/entry-server.tsx +++ b/cloud/app/src/entry-server.tsx @@ -1,26 +1,28 @@ // @refresh reload import { createHandler, StartServer } from "@solidjs/start/server" - -export default createHandler(() => ( - <StartServer - document={({ assets, children, scripts }) => ( - <html lang="en"> - <head> - <meta charset="utf-8" /> - <meta name="viewport" content="width=device-width, initial-scale=1" /> - <link rel="icon" href="/favicon.svg" /> - <meta property="og:image" content="/social-share.png" /> - <meta property="twitter:image" content="/social-share.png" /> - {assets} - </head> - <body> - <div id="app">{children}</div> - {scripts} - </body> - </html> - )} - /> -), { - mode: "async", -}) +export default createHandler( + () => ( + <StartServer + document={({ assets, children, scripts }) => ( + <html lang="en"> + <head> + <meta charset="utf-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1" /> + <link rel="icon" href="/favicon.svg" /> + <meta property="og:image" content="/social-share.png" /> + <meta property="twitter:image" content="/social-share.png" /> + {assets} + </head> + <body> + <div id="app">{children}</div> + {scripts} + </body> + </html> + )} + /> + ), + { + mode: "async", + }, +) diff --git a/cloud/app/src/routes/index.tsx b/cloud/app/src/routes/index.tsx index 23e870a55..fe355d79e 100644 --- a/cloud/app/src/routes/index.tsx +++ b/cloud/app/src/routes/index.tsx @@ -64,9 +64,7 @@ export default function Home() { <section data-component="cta"> <div data-slot="left"> - <a href="/docs"> - Get Started - </a> + <a href="/docs">Get Started</a> </div> <div data-slot="right"> <button data-copy data-slot="command"> @@ -90,7 +88,8 @@ export default function Home() { <strong>LSP enabled</strong> Automatically loads the right LSPs for the LLM </li> <li> - <strong>opencode zen</strong> A <a href="/docs/zen">curated list of models</a> provided by opencode <label>New</label> + <strong>opencode zen</strong> A <a href="/docs/zen">curated list of models</a> provided by opencode{" "} + <label>New</label> </li> <li> <strong>Multi-session</strong> Start multiple agents in parallel on the same project diff --git a/cloud/app/src/routes/workspace.tsx b/cloud/app/src/routes/workspace.tsx index 746a3adcd..3f08a70a0 100644 --- a/cloud/app/src/routes/workspace.tsx +++ b/cloud/app/src/routes/workspace.tsx @@ -2,7 +2,17 @@ import "./workspace.css" import { useAuthSession } from "~/context/auth.session" import { IconLogo } from "../component/icon" import { withActor } from "~/context/auth.withActor" -import { query, action, redirect, createAsync, RouteSectionProps, Navigate, useNavigate, useParams, A } from "@solidjs/router" +import { + query, + action, + redirect, + createAsync, + RouteSectionProps, + Navigate, + useNavigate, + useParams, + A, +} from "@solidjs/router" import { User } from "@opencode/cloud-core/user.js" import { Actor } from "@opencode/cloud-core/actor.js" import { getRequestEvent } from "solid-js/web" diff --git a/cloud/app/src/routes/workspace/[id].tsx b/cloud/app/src/routes/workspace/[id].tsx index 61e9c1db6..959799c63 100644 --- a/cloud/app/src/routes/workspace/[id].tsx +++ b/cloud/app/src/routes/workspace/[id].tsx @@ -1,15 +1,7 @@ import "./[id].css" import { Billing } from "@opencode/cloud-core/billing.js" import { Key } from "@opencode/cloud-core/key.js" -import { - json, - query, - action, - useParams, - useAction, - createAsync, - useSubmission, -} from "@solidjs/router" +import { json, query, action, useParams, useAction, createAsync, useSubmission } from "@solidjs/router" import { createMemo, createSignal, For, Show } from "solid-js" import { withActor } from "~/context/auth.withActor" import { IconCopy, IconCheck } from "~/component/icon" @@ -432,50 +424,57 @@ function PaymentsSection() { const payments = createAsync(() => getPaymentsInfo(params.id)) // const payments = () => dummyPayments - return payments() && payments()!.length > 0 && ( - <section data-component="payments-section"> - <div data-slot="section-title"> - <h2>Payments History</h2> - <p>Recent payment transactions.</p> - </div> - <div data-slot="payments-table"> - <table data-slot="payments-table-element"> - <thead> - <tr> - <th>Date</th> - <th>Payment ID</th> - <th>Amount</th> - </tr> - </thead> - <tbody> - <For each={payments()!}> - {(payment) => { - const date = new Date(payment.timeCreated) - return ( - <tr> - <td data-slot="payment-date" title={formatDateUTC(date)}> - {formatDateForTable(date)} - </td> - <td data-slot="payment-id">{payment.id}</td> - <td data-slot="payment-amount">${((payment.amount ?? 0) / 100000000).toFixed(2)}</td> - </tr> - ) - }} - </For> - </tbody> - </table> - </div> - </section> + return ( + payments() && + payments()!.length > 0 && ( + <section data-component="payments-section"> + <div data-slot="section-title"> + <h2>Payments History</h2> + <p>Recent payment transactions.</p> + </div> + <div data-slot="payments-table"> + <table data-slot="payments-table-element"> + <thead> + <tr> + <th>Date</th> + <th>Payment ID</th> + <th>Amount</th> + </tr> + </thead> + <tbody> + <For each={payments()!}> + {(payment) => { + const date = new Date(payment.timeCreated) + return ( + <tr> + <td data-slot="payment-date" title={formatDateUTC(date)}> + {formatDateForTable(date)} + </td> + <td data-slot="payment-id">{payment.id}</td> + <td data-slot="payment-amount">${((payment.amount ?? 0) / 100000000).toFixed(2)}</td> + </tr> + ) + }} + </For> + </tbody> + </table> + </div> + </section> + ) ) } -export default function() { +export default function () { return ( <div data-page="workspace-[id]"> <section data-component="title-section"> <h1>Zen</h1> <p> - Curated list of models provided by opencode. <a target="_blank" href="/docs/zen">Learn more</a>. + Curated list of models provided by opencode.{" "} + <a target="_blank" href="/docs/zen"> + Learn more + </a> + . </p> </section> diff --git a/cloud/app/src/style/token/font.css b/cloud/app/src/style/token/font.css index 4d20e324c..67143e662 100644 --- a/cloud/app/src/style/token/font.css +++ b/cloud/app/src/style/token/font.css @@ -14,6 +14,7 @@ body { --font-size-8xl: 6rem; --font-size-9xl: 8rem; - --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; + --font-mono: + "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; --font-sans: var(--font-mono); } diff --git a/cloud/app/sst-env.d.ts b/cloud/app/sst-env.d.ts index b6a7e9066..0397645b5 100644 --- a/cloud/app/sst-env.d.ts +++ b/cloud/app/sst-env.d.ts @@ -6,4 +6,4 @@ /// <reference path="../../sst-env.d.ts" /> import "sst" -export {}
\ No newline at end of file +export {} diff --git a/cloud/app/tsconfig.json b/cloud/app/tsconfig.json index 4110b02e5..07148a458 100644 --- a/cloud/app/tsconfig.json +++ b/cloud/app/tsconfig.json @@ -12,14 +12,10 @@ "allowJs": true, "strict": true, "noEmit": true, - "types": [ - "vinxi/types/client" - ], + "types": ["vinxi/types/client"], "isolatedModules": true, "paths": { - "~/*": [ - "./src/*" - ] + "~/*": ["./src/*"] } } } diff --git a/cloud/core/migrations/meta/0000_snapshot.json b/cloud/core/migrations/meta/0000_snapshot.json index 623ec4930..17d3bd7f9 100644 --- a/cloud/core/migrations/meta/0000_snapshot.json +++ b/cloud/core/migrations/meta/0000_snapshot.json @@ -48,9 +48,7 @@ "indexes": { "email": { "name": "email", - "columns": [ - "email" - ], + "columns": ["email"], "isUnique": true } }, @@ -140,10 +138,7 @@ "compositePrimaryKeys": { "billing_workspace_id_id_pk": { "name": "billing_workspace_id_id_pk", - "columns": [ - "workspace_id", - "id" - ] + "columns": ["workspace_id", "id"] } }, "uniqueConstraints": {}, @@ -216,10 +211,7 @@ "compositePrimaryKeys": { "payment_workspace_id_id_pk": { "name": "payment_workspace_id_id_pk", - "columns": [ - "workspace_id", - "id" - ] + "columns": ["workspace_id", "id"] } }, "uniqueConstraints": {}, @@ -320,10 +312,7 @@ "compositePrimaryKeys": { "usage_workspace_id_id_pk": { "name": "usage_workspace_id_id_pk", - "columns": [ - "workspace_id", - "id" - ] + "columns": ["workspace_id", "id"] } }, "uniqueConstraints": {}, @@ -401,9 +390,7 @@ "indexes": { "global_key": { "name": "global_key", - "columns": [ - "key" - ], + "columns": ["key"], "isUnique": true } }, @@ -411,10 +398,7 @@ "compositePrimaryKeys": { "key_workspace_id_id_pk": { "name": "key_workspace_id_id_pk", - "columns": [ - "workspace_id", - "id" - ] + "columns": ["workspace_id", "id"] } }, "uniqueConstraints": {}, @@ -492,10 +476,7 @@ "indexes": { "user_email": { "name": "user_email", - "columns": [ - "workspace_id", - "email" - ], + "columns": ["workspace_id", "email"], "isUnique": true } }, @@ -503,10 +484,7 @@ "compositePrimaryKeys": { "user_workspace_id_id_pk": { "name": "user_workspace_id_id_pk", - "columns": [ - "workspace_id", - "id" - ] + "columns": ["workspace_id", "id"] } }, "uniqueConstraints": {}, @@ -563,9 +541,7 @@ "indexes": { "slug": { "name": "slug", - "columns": [ - "slug" - ], + "columns": ["slug"], "isUnique": true } }, @@ -573,9 +549,7 @@ "compositePrimaryKeys": { "workspace_id": { "name": "workspace_id", - "columns": [ - "id" - ] + "columns": ["id"] } }, "uniqueConstraints": {}, @@ -592,4 +566,4 @@ "tables": {}, "indexes": {} } -}
\ No newline at end of file +} diff --git a/cloud/core/migrations/meta/0001_snapshot.json b/cloud/core/migrations/meta/0001_snapshot.json index d06e80705..d23d1601d 100644 --- a/cloud/core/migrations/meta/0001_snapshot.json +++ b/cloud/core/migrations/meta/0001_snapshot.json @@ -48,9 +48,7 @@ "indexes": { "email": { "name": "email", - "columns": [ - "email" - ], + "columns": ["email"], "isUnique": true } }, @@ -140,10 +138,7 @@ "compositePrimaryKeys": { "billing_workspace_id_id_pk": { "name": "billing_workspace_id_id_pk", - "columns": [ - "workspace_id", - "id" - ] + "columns": ["workspace_id", "id"] } }, "uniqueConstraints": {}, @@ -216,10 +211,7 @@ "compositePrimaryKeys": { "payment_workspace_id_id_pk": { "name": "payment_workspace_id_id_pk", - "columns": [ - "workspace_id", - "id" - ] + "columns": ["workspace_id", "id"] } }, "uniqueConstraints": {}, @@ -320,10 +312,7 @@ "compositePrimaryKeys": { "usage_workspace_id_id_pk": { "name": "usage_workspace_id_id_pk", - "columns": [ - "workspace_id", - "id" - ] + "columns": ["workspace_id", "id"] } }, "uniqueConstraints": {}, @@ -401,9 +390,7 @@ "indexes": { "global_key": { "name": "global_key", - "columns": [ - "key" - ], + "columns": ["key"], "isUnique": true } }, @@ -411,10 +398,7 @@ "compositePrimaryKeys": { "key_workspace_id_id_pk": { "name": "key_workspace_id_id_pk", - "columns": [ - "workspace_id", - "id" - ] + "columns": ["workspace_id", "id"] } }, "uniqueConstraints": {}, @@ -492,10 +476,7 @@ "indexes": { "user_email": { "name": "user_email", - "columns": [ - "workspace_id", - "email" - ], + "columns": ["workspace_id", "email"], "isUnique": true } }, @@ -503,10 +484,7 @@ "compositePrimaryKeys": { "user_workspace_id_id_pk": { "name": "user_workspace_id_id_pk", - "columns": [ - "workspace_id", - "id" - ] + "columns": ["workspace_id", "id"] } }, "uniqueConstraints": {}, @@ -563,9 +541,7 @@ "indexes": { "slug": { "name": "slug", - "columns": [ - "slug" - ], + "columns": ["slug"], "isUnique": true } }, @@ -573,9 +549,7 @@ "compositePrimaryKeys": { "workspace_id": { "name": "workspace_id", - "columns": [ - "id" - ] + "columns": ["id"] } }, "uniqueConstraints": {}, @@ -592,4 +566,4 @@ "tables": {}, "indexes": {} } -}
\ No newline at end of file +} diff --git a/cloud/core/migrations/meta/_journal.json b/cloud/core/migrations/meta/_journal.json index d383b96a1..131e85613 100644 --- a/cloud/core/migrations/meta/_journal.json +++ b/cloud/core/migrations/meta/_journal.json @@ -17,4 +17,4 @@ "breakpoints": true } ] -}
\ No newline at end of file +} diff --git a/cloud/core/src/util/fn.ts b/cloud/core/src/util/fn.ts index 038a50719..52df65e2b 100644 --- a/cloud/core/src/util/fn.ts +++ b/cloud/core/src/util/fn.ts @@ -1,9 +1,6 @@ import { z } from "zod" -export function fn<T extends z.ZodType, Result>( - schema: T, - cb: (input: z.output<T>) => Result, -) { +export function fn<T extends z.ZodType, Result>(schema: T, cb: (input: z.output<T>) => Result) { const result = (input: z.input<T>) => { const parsed = schema.parse(input) return cb(parsed) diff --git a/cloud/core/sst-env.d.ts b/cloud/core/sst-env.d.ts index b6a7e9066..0397645b5 100644 --- a/cloud/core/sst-env.d.ts +++ b/cloud/core/sst-env.d.ts @@ -6,4 +6,4 @@ /// <reference path="../../sst-env.d.ts" /> import "sst" -export {}
\ No newline at end of file +export {} diff --git a/cloud/function/sst-env.d.ts b/cloud/function/sst-env.d.ts index fd96591b8..11bc7adea 100644 --- a/cloud/function/sst-env.d.ts +++ b/cloud/function/sst-env.d.ts @@ -6,87 +6,87 @@ import "sst" declare module "sst" { export interface Resource { - "ANTHROPIC_API_KEY": { - "type": "sst.sst.Secret" - "value": string - } - "AUTH_API_URL": { - "type": "sst.sst.Linkable" - "value": string - } - "BASETEN_API_KEY": { - "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 - } - "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 - } - "OPENAI_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 - } - "XAI_API_KEY": { - "type": "sst.sst.Secret" - "value": string + ANTHROPIC_API_KEY: { + type: "sst.sst.Secret" + value: string + } + AUTH_API_URL: { + type: "sst.sst.Linkable" + value: string + } + BASETEN_API_KEY: { + 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 + } + 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 + } + OPENAI_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 + } + XAI_API_KEY: { + 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 - "LogProcessor": cloudflare.Service + Api: cloudflare.Service + AuthApi: cloudflare.Service + AuthStorage: cloudflare.KVNamespace + Bucket: cloudflare.R2Bucket + LogProcessor: cloudflare.Service } } import "sst" -export {}
\ No newline at end of file +export {} diff --git a/cloud/resource/sst-env.d.ts b/cloud/resource/sst-env.d.ts index fd96591b8..11bc7adea 100644 --- a/cloud/resource/sst-env.d.ts +++ b/cloud/resource/sst-env.d.ts @@ -6,87 +6,87 @@ import "sst" declare module "sst" { export interface Resource { - "ANTHROPIC_API_KEY": { - "type": "sst.sst.Secret" - "value": string - } - "AUTH_API_URL": { - "type": "sst.sst.Linkable" - "value": string - } - "BASETEN_API_KEY": { - "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 - } - "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 - } - "OPENAI_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 - } - "XAI_API_KEY": { - "type": "sst.sst.Secret" - "value": string + ANTHROPIC_API_KEY: { + type: "sst.sst.Secret" + value: string + } + AUTH_API_URL: { + type: "sst.sst.Linkable" + value: string + } + BASETEN_API_KEY: { + 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 + } + 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 + } + OPENAI_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 + } + XAI_API_KEY: { + 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 - "LogProcessor": cloudflare.Service + Api: cloudflare.Service + AuthApi: cloudflare.Service + AuthStorage: cloudflare.KVNamespace + Bucket: cloudflare.R2Bucket + LogProcessor: cloudflare.Service } } import "sst" -export {}
\ No newline at end of file +export {} diff --git a/cloud/resource/tsconfig.json b/cloud/resource/tsconfig.json index 829dbad01..0faf16aab 100644 --- a/cloud/resource/tsconfig.json +++ b/cloud/resource/tsconfig.json @@ -4,9 +4,6 @@ "compilerOptions": { "module": "ESNext", "moduleResolution": "bundler", - "types": [ - "@cloudflare/workers-types", - "node" - ] + "types": ["@cloudflare/workers-types", "node"] } } diff --git a/cloud/scripts/sst-env.d.ts b/cloud/scripts/sst-env.d.ts index b6a7e9066..0397645b5 100644 --- a/cloud/scripts/sst-env.d.ts +++ b/cloud/scripts/sst-env.d.ts @@ -6,4 +6,4 @@ /// <reference path="../../sst-env.d.ts" /> import "sst" -export {}
\ No newline at end of file +export {} |
