Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .cursorignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!.env.schema
90 changes: 90 additions & 0 deletions .env.schema
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# This env file uses @env-spec - see https://varlock.dev/env-spec for more info
#
# @defaultRequired=false @defaultSensitive=false
# @generateTypes(lang=ts, path=env.d.ts)
# @currentEnv=$GRADIENT_ENV
# ----------

# Custom env flag
# @type=enum(development, test, production)
GRADIENT_ENV=development

# API Keys
# ---
# Deepgram
# @docs(https://developers.deepgram.com/docs/api-reference)
# @sensitive @required
DEEPGRAM_API_KEY=
# @docs(https://cartesia.ai/docs/api-reference)
# @sensitive @required
CARTESIA_API_KEY=
# @docs(https://cloud.google.com/gemini-api/docs/quickstart)
# @sensitive @required
GOOGLE_API_KEY=
# @docs(https://docs.daily.co/reference/api-reference)
# @sensitive
DAILY_API_KEY=


# World
# ---
# data directory
WORLD_DATA_DIR=world-data
# sector count
# @type=number
WORLD_SECTOR_COUNT=5000
# seed
# @type=number
WORLD_SEED=1234

# Krisp
# @type=boolean
# @docs(https://sdk-docs.krisp.ai/)
BOT_USE_KRISP=false

# Server URL
# @type=url
GAME_SERVER_URL=http://localhost:8000

# development mode
#
GAME_SERVER_DEV_MODE=1 # make this a proper bool?


# Supabase
# ---

# built in supabase env variables
# SB_REGION=
# SB_EXECUTION_ID=
# DENO_DEPLOYMENT_ID=

# supbase flag
# @type=boolean
SUPABASE=false

# @sensitive @required=if($SUPABASE)
SUPABASE_URL=
# @sensitive @required=if($SUPABASE)
SUPABASE_SERVICE_ROLE_KEY=
# @sensitive @required=if($SUPABASE)
SUPABASE_ANON_KEY=
# @sensitive @required=if($SUPABASE)
SUPABASE_DB_URL=
# @sensitive @required=if($SUPABASE)
EDGE_API_TOKEN=
# @sensitive @required=if($SUPABASE)
EDGE_FUNCTIONS_URL=
# @sensitive @required=if($SUPABASE)
EDGE_JWT_SECRET=


# For production:
# @type=url @required=forEnv("production")
GAME_SERVER_AGENT_START_URL=http://localhost:7860/start

# @required=forEnv("production")
GAME_SERVER_AGENT_PUBLIC_KEY=

# @required=forEnv("production")
GAME_SERVER_CORS_ALLOWED_ORIGINS=
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,6 @@ venv.bak/
.DS_Store

# Deployment
deployment/pcc-deploy.toml
deployment/pcc-deploy.toml
!.env.schema
env.d.ts
13 changes: 13 additions & 0 deletions client/app/.env.schema
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# This env file uses @env-spec - see https://varlock.dev/env-spec for more info
#
# @defaultRequired @defaultSensitive=false
# @generateTypes(lang=ts, path=env.d.ts)
# @import(../../.env.schema, GAME_SERVER_URL, GAME_SERVER_AGENT_START_URL, GRADIENT_ENV)
# ----------

VITE_SERVER_URL=$GAME_SERVER_URL
VITE_BOT_START_URL=$GAME_SERVER_AGENT_START_URL

# @type=enum(smallwebrtc, daily)
VITE_PIPECAT_TRANSPORT=smallwebrtc

4 changes: 3 additions & 1 deletion client/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"@radix-ui/react-switch": "^1.2.6",
"@radix-ui/react-toggle-group": "^1.1.11",
"@uidotdev/usehooks": "^2.4.1",
"@varlock/vite-integration": "^0.1.0",
"camera-controls": "^3.1.0",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
Expand All @@ -51,6 +52,7 @@
"tw-animate-css": "^1.4.0",
"use-debounce": "^10.0.6",
"use-stick-to-bottom": "^1.1.1",
"varlock": "^0.1.2",
"zustand": "^5.0.8"
},
"devDependencies": {
Expand All @@ -63,8 +65,8 @@
"@types/three": "^0.179.0",
"@types/uuid": "^10.0.0",
"@vitejs/plugin-react": "^4.6.0",
"leva": "^0.10.1",
"globals": "^16.3.0",
"leva": "^0.10.1",
"rollup-plugin-visualizer": "^6.0.5",
"unplugin-preprocessor-directives": "^1.2.0",
"vite": "^7.0.4",
Expand Down
2 changes: 2 additions & 0 deletions client/app/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import path from "path"
import { visualizer } from "rollup-plugin-visualizer"
import PreprocessorDirectives from "unplugin-preprocessor-directives/vite"
import { defineConfig, type PluginOption } from "vite"
import { varlockVitePlugin } from '@varlock/vite-integration'
import { VitePWA } from "vite-plugin-pwa"
import tailwindcss from "@tailwindcss/vite"
import react from "@vitejs/plugin-react"
Expand Down Expand Up @@ -29,6 +30,7 @@ export default defineConfig(({ mode }) => ({
"import.meta.env.VITE_APP_VERSION": JSON.stringify(version),
},
plugins: [
varlockVitePlugin(),
PreprocessorDirectives(),
react(),
tailwindcss(),
Expand Down
Loading