summaryrefslogtreecommitdiffhomepage
path: root/cloud/resource
diff options
context:
space:
mode:
authorFrank <[email protected]>2025-09-18 01:32:40 -0400
committerFrank <[email protected]>2025-09-18 01:32:40 -0400
commitfc4f281408c56ab12db571a470456212a479edf5 (patch)
tree309d23b0c497bc61af6f8e650a6036fa41d7cbdb /cloud/resource
parentf8c4f713a5b48892899d0ac195c3470ab7ef764c (diff)
downloadopencode-fc4f281408c56ab12db571a470456212a479edf5.tar.gz
opencode-fc4f281408c56ab12db571a470456212a479edf5.zip
wip: zen
Diffstat (limited to 'cloud/resource')
-rw-r--r--cloud/resource/bun.lock13
-rw-r--r--cloud/resource/package.json15
-rw-r--r--cloud/resource/resource.cloudflare.ts18
-rw-r--r--cloud/resource/resource.node.ts1
-rw-r--r--cloud/resource/sst-env.d.ts96
-rw-r--r--cloud/resource/tsconfig.json9
6 files changed, 0 insertions, 152 deletions
diff --git a/cloud/resource/bun.lock b/cloud/resource/bun.lock
deleted file mode 100644
index 56bdf44ca..000000000
--- a/cloud/resource/bun.lock
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "lockfileVersion": 1,
- "workspaces": {
- "": {
- "dependencies": {
- "@cloudflare/workers-types": "^4.20250830.0",
- },
- },
- },
- "packages": {
- "@cloudflare/workers-types": ["@cloudflare/[email protected]", "", {}, "sha512-uAGZFqEBFnCiwIokxMnrrtjIkT8qyGT1LACSScEUyW7nKmtD0Viykp9QZWrIlssyEp/MDB6XsdALF8y6upxpcg=="],
- }
-}
diff --git a/cloud/resource/package.json b/cloud/resource/package.json
deleted file mode 100644
index fd9fa6f34..000000000
--- a/cloud/resource/package.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "$schema": "https://json.schemastore.org/package.json",
- "name": "@opencode/cloud-resource",
- "dependencies": {
- "@cloudflare/workers-types": "^4.20250830.0"
- },
- "exports": {
- ".": {
- "production": {
- "import": "./resource.cloudflare.ts"
- },
- "import": "./resource.node.ts"
- }
- }
-}
diff --git a/cloud/resource/resource.cloudflare.ts b/cloud/resource/resource.cloudflare.ts
deleted file mode 100644
index a56b1e417..000000000
--- a/cloud/resource/resource.cloudflare.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-import { env } from "cloudflare:workers"
-
-export const Resource = new Proxy(
- {},
- {
- get(_target, prop: string) {
- if (prop in env) {
- // @ts-expect-error
- const value = env[prop]
- return typeof value === "string" ? JSON.parse(value) : value
- } else if (prop === "App") {
- // @ts-expect-error
- return JSON.parse(env.SST_RESOURCE_App)
- }
- throw new Error(`"${prop}" is not linked in your sst.config.ts (cloudflare)`)
- },
- },
-) as Record<string, any>
diff --git a/cloud/resource/resource.node.ts b/cloud/resource/resource.node.ts
deleted file mode 100644
index d7dbb6c6d..000000000
--- a/cloud/resource/resource.node.ts
+++ /dev/null
@@ -1 +0,0 @@
-export { Resource } from "sst"
diff --git a/cloud/resource/sst-env.d.ts b/cloud/resource/sst-env.d.ts
deleted file mode 100644
index afa8c6fe7..000000000
--- a/cloud/resource/sst-env.d.ts
+++ /dev/null
@@ -1,96 +0,0 @@
-/* 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 {
- 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
- }
- FIREWORKS_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
- }
- 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"
-declare module "sst" {
- export interface Resource {
- Api: cloudflare.Service
- AuthApi: cloudflare.Service
- AuthStorage: cloudflare.KVNamespace
- Bucket: cloudflare.R2Bucket
- LogProcessor: cloudflare.Service
- }
-}
-
-import "sst"
-export {}
diff --git a/cloud/resource/tsconfig.json b/cloud/resource/tsconfig.json
deleted file mode 100644
index 0faf16aab..000000000
--- a/cloud/resource/tsconfig.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "$schema": "https://json.schemastore.org/tsconfig",
- "extends": "@tsconfig/node22/tsconfig.json",
- "compilerOptions": {
- "module": "ESNext",
- "moduleResolution": "bundler",
- "types": ["@cloudflare/workers-types", "node"]
- }
-}