Repository navigation
Expand file tree
/
Copy pathenv.schema
More file actions
502 lines (451 loc) · 18.6 KB
/
Copy pathenv.schema
File metadata and controls
502 lines (451 loc) · 18.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
# env.schema: the one checked-in environment file for Green Goods.
#
# It names every variable and holds the value `bun run env:sync` writes to the root `.env`:
# a plain default, nothing, or a 1Password secret reference for a secret the team shares.
# The sync hands this whole file to the 1Password CLI, which swaps each reference for its
# secret, so `.env` is this file with the references resolved. Personal credentials go
# straight into your own `.env`.
#
# Annotations sit on the comment lines above a key:
# @required-in <profiles> Enforced. `bun run env:check --profile <name>` fails, and a
# Vercel production build stops, when the key is missing or empty
# for that profile. Without --profile the check uses `dev`.
# @public Documentation. The value is safe to print or publish. Treat a
# key without it as sensitive unless its name starts with VITE_;
# those ship in the browser bundle.
# @type, @required= Documentation. No check reads them.
#
# Never write a secret's value here: this file is public. A secret is a reference, or it stays
# in your own `.env`. Only a non-secret default may be a plain value.
#
# Keep secret references out of comments. The CLI resolves a reference wherever it appears,
# so an example in a comment fails the sync for everyone. A reference is a whole value: the
# 1Password URI scheme followed by vault/item/field.
# =====================================================================
# Environment selector
# =====================================================================
# @public
# @type=enum(development,test,staging,production)
# @required-in dev
APP_ENV=development
# =====================================================================
# Workspace lifecycle
# =====================================================================
# Non-secret setup profile for host, isolated worktree, and container flows.
# Setup behavior must key off environment shape, not agent identity.
# @public
# @type=enum(host,isolated,cloud)
GG_WORKSPACE_PROFILE=host
# Dependency install policy for setup. `auto` installs on host and when an
# isolated workspace lacks node_modules; `skip` is for pre-baked containers.
# @public
# @type=enum(auto,always,skip)
GG_SETUP_INSTALL=auto
# Environment materialization policy for setup. `baseline` writes only the
# non-secret web defaults needed by env:check; `skip` leaves env untouched.
# @public
# @type=enum(auto,baseline,skip)
GG_SETUP_ENV_MODE=auto
# =====================================================================
# 1Password (optional; not needed for baseline web)
# =====================================================================
# Baseline web development works without shared secrets or 1Password. The CLI is needed
# only for `bun run env:sync`, which resolves the secret references in this file.
# Service account token used in CI/deployed environments.
# Optional locally if you prefer service-account auth over desktop app auth.
OP_SERVICE_ACCOUNT_TOKEN=
# Optional 1Password account shorthand/id for the `op` CLI when multiple
# accounts are configured locally.
OP_ACCOUNT=
# =====================================================================
# Authentication and wallet
# =====================================================================
# @public
# @required-in production,production-client,production-admin,sourcemaps-client,sourcemaps-admin
VITE_WALLETCONNECT_PROJECT_ID="op://Green Goods/VITE_WALLETCONNECT_PROJECT_ID/credential"
# @public
# @required-in production,production-client,production-admin,sourcemaps-client,sourcemaps-admin
VITE_PIMLICO_API_KEY="op://Green Goods/VITE_PIMLICO_API_KEY/credential"
# Optional local-development relying party override; deployed sites use greengoods.app.
# @public
VITE_PASSKEY_RP_ID=
# Local development only: enable the agent passkey directory instead of local-only passkeys.
# Deployed sites always use the directory at VITE_API_BASE_URL.
# @public
# @type=boolean
VITE_PASSKEY_SERVER_ENABLED=false
# Email sign-in (Openfort). The embedded wallet owns a Kernel account sponsored through
# Pimlico, like passkeys. `bun run openfort:keys` stores the four keys in 1Password, the root
# .env, the App and Hub Vercel projects (the two public keys only) and the Fly agent.
# The switch that shows email sign-in beside passkeys. Off until the release turns it on.
# @public
# @type=boolean
VITE_OPENFORT_SIGN_IN_ENABLED=false
# Read by the App and Hub builds and by the agent, which checks a caller's Openfort session.
# @public
VITE_OPENFORT_PUBLISHABLE_KEY="op://Green Goods/VITE_OPENFORT_PUBLISHABLE_KEY/credential"
# @public
VITE_OPENFORT_SHIELD_PUBLISHABLE_KEY="op://Green Goods/VITE_OPENFORT_SHIELD_PUBLISHABLE_KEY/credential"
# Agent only, for automatic recovery. Never a client build: the names carry no VITE_ prefix.
OPENFORT_SHIELD_SECRET_KEY="op://Green Goods/OPENFORT_SHIELD_SECRET_KEY/credential"
OPENFORT_SHIELD_ENCRYPTION_SHARE="op://Green Goods/OPENFORT_SHIELD_ENCRYPTION_SHARE/credential"
# Arbitrum One, the chain the local stack runs against. CI, the push gate and the isolated
# setup baseline set their own value.
# @public
# @type=number
# @required-in dev,production,production-client,production-admin,sourcemaps-client,sourcemaps-admin
VITE_CHAIN_ID=42161
# Optional dev-surfaces override. Leave blank in shared env files; the
# Green Goods dev surface sets this to `arbitrum_fork` for local fork mode.
# @public
VITE_DEV_CHAIN_MODE=
# @public
VITE_LOCAL_FORK_RPC_URL=
# When true, PM2 replaces an inherited local agent URL with the root or hosted agent URL.
# @public
# @type=boolean
VITE_DISABLE_LOCAL_AGENT=false
# When true, PM2 replaces inherited local-chain Vite settings with the root chain configuration.
# @public
# @type=boolean
VITE_DISABLE_LOCAL_CHAIN=false
# When true, PM2 replaces the local indexer URL with the root or hosted indexer URL.
# @public
# @type=boolean
VITE_DISABLE_LOCAL_INDEXER=false
# @public
# @type=boolean
VITE_ENABLE_ANVIL_WALLETS=false
# =====================================================================
# RPC and network
# =====================================================================
ALCHEMY_API_KEY="op://Green Goods/ALCHEMY_API_KEY/credential"
# Aliases used by some scripts.
VITE_ALCHEMY_API_KEY="op://Green Goods/VITE_ALCHEMY_API_KEY/credential"
ALCHEMY_KEY="op://Green Goods/ALCHEMY_API_KEY/credential"
# Keep standard RPC URL vars blank by default. Runtime helpers provide public
# fallbacks; Gnosis requires an explicit URL. Values may contain provider keys
# and must stay private.
ARBITRUM_RPC_URL=
GNOSIS_RPC_URL=
CELO_RPC_URL=
ETHEREUM_RPC_URL=
SEPOLIA_RPC_URL=
OPTIMISM_RPC_URL=
# Required for reliable live-indexer mirror catch-up through Envio HyperSync.
ENVIO_API_TOKEN=
# Optional high-capacity overrides for Foundry fork tests.
# Prefer dedicated provider URLs here when public endpoints start rate-limiting.
ARBITRUM_FORK_RPC_URL=
SEPOLIA_FORK_RPC_URL=
CELO_FORK_RPC_URL=
# Optional fork pins for deterministic reruns against live chains.
ARBITRUM_FORK_BLOCK_NUMBER=
SEPOLIA_FORK_BLOCK_NUMBER=
CELO_FORK_BLOCK_NUMBER=
# =====================================================================
# Contracts and deployment
# =====================================================================
FOUNDRY_KEYSTORE_ACCOUNT=green-goods-deployer
ETHERSCAN_API_KEY="op://Green Goods/ETHERSCAN_API_KEY/credential"
DEPLOYMENT_SALT=greenGoodsCleanDeploy2025:13
ENS_L1_RECEIVER=
# @public
COMMUNITY_GARDEN_SLUG=community
# @type=boolean
AUTO_DEPLOY_OCTANT_FACTORY=true
# @type=boolean
REQUIRE_OCTANT_READY=true
# @type=boolean
REQUIRE_COOKIEJAR_READY=true
DEPLOYMENT_OUTPUT_DIR=
# @type=boolean
UPDATE_SCHEMAS_ONLY=false
# @type=boolean
FORCE_REDEPLOY=false
# @public
# @type=enum(auto,fast,full)
GG_CONTRACTS_BUILD_MODE=auto
# @public
# @type=boolean
GG_CONTRACTS_BUILD_QUIET=true
DEPLOYMENT_REGISTRY_ALLOWLIST=
HATS_MODULE=
# =====================================================================
# IPFS and media
# =====================================================================
# PINATA_JWT is a server/script upload credential. Browser uploads request
# short-lived signed Pinata URLs from the agent instead of embedding this secret.
PINATA_JWT="op://Green Goods/PINATA_JWT/credential"
# @public
PINATA_GATEWAY_URL=https://greengoods.mypinata.cloud
# @public
PINATA_API_URL=https://api.pinata.cloud
# @public
PINATA_UPLOADS_API_URL=https://uploads.pinata.cloud/v3
# Browser-facing read config. Upload authority stays on the agent.
# @public
# @required-in production,production-client,production-admin,sourcemaps-client,sourcemaps-admin
VITE_PINATA_GATEWAY_URL=
# =====================================================================
# Indexing and subgraphs
# =====================================================================
# @public
# @required-in dev,production,production-client,production-admin,sourcemaps-client,sourcemaps-admin
VITE_ENVIO_INDEXER_URL=http://localhost:3006/v1/graphql
# NOTE: currently consumed in browser-side shared config.
# @public
VITE_GARDENS_SUBGRAPH_KEY=
# =====================================================================
# Analytics
# =====================================================================
# Agent runtime token. Do not use a VITE_ prefix for the Fly secret.
POSTHOG_AGENT_KEY=
# Read-only PostHog Personal API key with `query:read` scope for agent query scripts.
POSTHOG_PROJECT_API_KEY=
POSTHOG_PROJECT_ID=
POSTHOG_HOST=https://us.posthog.com
# Existing GitHub Actions source-map upload credentials. These are CI-only;
# the annotations validate their presence without materializing a new secret.
# @required-in sourcemaps-client,sourcemaps-admin
POSTHOG_CLI_TOKEN=
# @required-in sourcemaps-client
POSTHOG_CLIENT_ENV_ID=
# @required-in sourcemaps-admin
POSTHOG_ADMIN_ENV_ID=
# @public
# @required-in production,production-client
VITE_POSTHOG_KEY="op://Green Goods/VITE_POSTHOG_KEY/credential"
# Admin browser token. Vercel must use this exact name; VITE_PUBLIC_POSTHOG_KEY is ignored.
# @public
# @required-in production,production-admin
VITE_POSTHOG_ADMIN_KEY=
# @public
# @type=boolean
VITE_POSTHOG_DEBUG=false
# Our own test accounts and gardens, so App, Hub and Agent events can say `is_test_account` and
# `is_test_garden` (PRD-1560): comma-separated addresses. Set them in the deployment (Vercel for
# the App and Hub builds, Fly secrets for the Agent), never here: this repository is public. The
# browser builds ship only digests of the accounts. Unset, every event says "unknown".
TELEMETRY_TEST_ACCOUNTS=
TELEMETRY_TEST_GARDENS=
# Sentry is the stack/release-debugging companion to PostHog product telemetry.
SENTRY_DSN=
SENTRY_AGENT_DSN=
SENTRY_CLIENT_DSN=
SENTRY_ADMIN_DSN=
# @required-in production,production-client,production-admin
SENTRY_AUTH_TOKEN=
SENTRY_ORG=greenpill
SENTRY_AGENT_PROJECT=green-goods-agent
SENTRY_CLIENT_PROJECT=green-goods-client
SENTRY_ADMIN_PROJECT=green-goods-admin
SENTRY_PROJECT=
# @type=boolean
SENTRY_ENABLED=true
# @type=number
SENTRY_TRACES_SAMPLE_RATE=0.05
# @public
VITE_SENTRY_DSN=
# @public
VITE_SENTRY_CLIENT_DSN=
# @public
VITE_SENTRY_ADMIN_DSN=
# @public
# @type=boolean
VITE_SENTRY_DEBUG=false
# @type=boolean
ANALYTICS_ENABLED=true
# =====================================================================
# Frontend runtime toggles
# =====================================================================
# @public
VITE_APP_VERSION=0.4.0
# @public
VITE_APP_URL=https://greengoods.app
# @public
VITE_CLIENT_APP_URL=https://greengoods.app
# The Green Goods Hub's address. Home's About This Garden opens it for the selected garden's
# owners and stewards. Each hosted App build sets the Hub of its own environment (production:
# https://admin.greengoods.app, beta: https://beta.admin.greengoods.app); without it the App shows
# no Hub link, so a production App build fails without it and a beta build warns (PRD-1526).
# Locally it is the dev stack's Hub, which mkcert serves over HTTPS. A Hub dev server without
# mkcert (a devcontainer, CI, or SKIP_MKCERT=true) serves plain HTTP, so set
# http://localhost:3002 in your own `.env` there.
# @public
# @required-in production,production-client
VITE_ADMIN_APP_URL=https://localhost:3002
# Local agent origin. Hosted builds set their own; production uses https://agent.greengoods.app.
# @public
# @required-in dev,production,production-client
VITE_API_BASE_URL=http://127.0.0.1:3005
# @public
VITE_GOOGLE_APPOINTMENT_URL="op://Green Goods/VITE_GOOGLE_APPOINTMENT_URL/credential"
# @public
# @type=boolean
VITE_ENABLE_SW_DEV=true
# @public
# @type=boolean
VITE_ENABLE_RPC_BG_SYNC=false
# @public
# @type=boolean
VITE_DEBUG_MODE=false
# @public
# @type=boolean
VITE_QUEUE_DEBUG=false
# @public
# @type=boolean
VITE_MOCK_PWA_INSTALLED=false
# Optional Pimlico policy override for sponsored transactions.
VITE_PIMLICO_SPONSORSHIP_POLICY_ID=
# Optional Celo G$ policy override. Without it, Celo uses the configured general policy;
# without either policy, Celo passkey sends remain unavailable.
# @public
VITE_PIMLICO_CELO_SPONSORSHIP_POLICY_ID=
# @public
# Optional ERC-7677 paymaster proxy URL for gas sponsorship.
VITE_ERC7677_PROXY_URL=
# @public
# @type=boolean
VITE_USE_HASH_ROUTER=false
# =====================================================================
# Agent service
# =====================================================================
# @required=forEnv(staging,production)
TELEGRAM_BOT_TOKEN="op://Green Goods/TELEGRAM_BOT_TOKEN/credential"
# @required=forEnv(staging,production)
ENCRYPTION_SECRET="op://Green Goods/ENCRYPTION_SECRET/credential"
# @public
# @type=boolean
JOIN_REQUESTS_ENABLED=false
JOIN_REQUESTS_ENCRYPTION_KEY=
# @type=boolean
JOIN_REQUESTS_PRODUCTION_READY=false
# 32 bytes, hex or base64. The agent requires it in production.
# @required=forEnv(staging,production)
SAVED_OFFERS_ENCRYPTION_KEY=
# @required=forEnv(staging,production)
SAVED_OFFERS_AUDIENCE=agent.greengoods.app
# @public
# @type=enum(polling,webhook)
BOT_MODE=webhook
# @type=number
PORT=3000
# @public
HOST=0.0.0.0
WEBHOOK_URL=
TELEGRAM_WEBHOOK_SECRET="op://Green Goods/TELEGRAM_WEBHOOK_SECRET/credential"
# Optional Telegram forum topic capture allowlist entries in `<chat_id>_<thread_id>` form.
TELEGRAM_BUGS_TOPIC=
TELEGRAM_IDEAS_TOPIC=
DB_PATH=data/agent.db
LOG_LEVEL=
BOT_API_TOKEN=
LUMA_API_KEY="op://Green Goods/LUMA_API_KEY/credential"
LUMA_CALENDAR_ID="op://Green Goods/LUMA_CALENDAR_ID/credential"
LUMA_GREEN_GOODS_TAG_ID=
# @public
LUMA_GREEN_GOODS_TAG_NAME=Subscriber
# Public thirdweb client ID used by agent-created checkout sessions.
# Not required on client/admin Vercel projects.
# @public
VITE_THIRDWEB_CLIENT_ID="op://Green Goods/VITE_THIRDWEB_CLIENT_ID/credential"
THIRDWEB_SECRET_KEY="op://Green Goods/THIRDWEB_SECRET_KEY/credential"
THIRDWEB_WEBHOOK_SECRET="op://Green Goods/THIRDWEB_WEBHOOK_SECRET/credential"
# Local client and admin browser origins allowed to request short-lived upload URLs.
# Deployed agents set their own list.
# @required=forEnv(staging,production)
AGENT_ALLOWED_ORIGINS=http://localhost:3001,https://localhost:3001,http://127.0.0.1:3001,https://127.0.0.1:3001,http://localhost:3002,https://localhost:3002,http://127.0.0.1:3002,https://127.0.0.1:3002
# Compatibility alias for existing public routes.
AGENT_PUBLIC_ALLOWED_ORIGINS=
# @required=forEnv(staging,production)
# @type=number
AGENT_TRUSTED_PROXY_HOPS=
# @required=forEnv(staging,production)
AGENT_TRUSTED_PROXY_CIDRS=
# @type=number
AGENT_UPLOAD_SIGN_TTL_SECONDS=60
# @type=number
AGENT_UPLOAD_MAX_FILE_SIZE_BYTES=10485760
AGENT_UPLOAD_ALLOWED_MIME_TYPES=image/*,audio/*,video/mp4,video/webm,video/quicktime,application/json,application/pdf,text/plain,text/markdown,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document
# @type=number
AGENT_UPLOAD_SIGN_RATE_LIMIT=20
# @type=number
AGENT_UPLOAD_SIGN_RATE_LIMIT_WINDOW_MS=60000
# =====================================================================
# Optional backend infra
# =====================================================================
# =====================================================================
# Test and local tooling flags
# =====================================================================
# @public
# @type=enum(development,test,production)
NODE_ENV=development
# @public
# @type=boolean
CI=false
# @public
# @type=boolean
DEVCONTAINER=false
# @public
# @type=boolean
SKIP_MKCERT=false
# @public
# @type=boolean
SKIP_WEBSERVER=false
# @public
# @type=boolean
SKIP_HEALTH_CHECK=false
# @public
# @type=boolean
ENABLE_PWA_E2E=false
# @public
# @type=boolean
RUN_REAL_PASSKEY_E2E=false
# @public
# @type=boolean
TESTNET=false
# @public
# @type=number
ANVIL_FORK_BLOCK=
# @public
# @type=boolean
ANVIL_RUNNING=false
VITE_RPC_URL_11155111=
# Contract test realism tooling.
CONTRACT_REALISM_MODE=advisory
CONTRACT_REALISM_REPORT_MD=../../output/contracts-test-audit/realism-report.md
CONTRACT_REALISM_REPORT_JSON=../../output/contracts-test-audit/realism-report.json
# Post-deploy verification toggles.
# @type=boolean
CHECK_INDEXER_RUNTIME=false
POST_DEPLOY_INDEXER_URL=
# @type=number
INDEXER_SYNC_TIMEOUT_SECONDS=600
# @type=number
INDEXER_SYNC_POLL_SECONDS=20
# =====================================================================
# Agent reporting
# =====================================================================
# Versioned key list for private reporting data: `version:base64key` entries, comma separated,
# current first, each key 32 bytes. Reporting starts once this is set and a chat channel is
# available. Keep it; replace it only by rotating (add a new first entry).
AGENT_REPORTING_KEYS=
# Optional separate wrapping key ring for per-grant delegated signers under /data/reporting-signers.
# Same version:base64key format; use different key material from AGENT_REPORTING_KEYS. Retain old
# versions until every signer wrapped by them is revoked and rewrapped or deleted.
AGENT_REPORTING_SIGNER_KEYS=
# Provider keys for the versions pinned in reporting/config.ts: gpt-4.1-mini-2025-04-14,
# gpt-4o-mini-transcribe-2025-12-15 and jev-1.13.0. Models are not selected by environment.
# Missing keys preserve deterministic text questions; runtime controls still govern processing.
AGENT_REPORTING_OPENAI_API_KEY=
AGENT_REPORTING_JEV_API_KEY=
# The Green Goods site a deployed Agent runs its reporting ceremonies on: its links point there and
# the ceremony API accepts no other origin. `production` is https://www.greengoods.app, built from
# main. `beta` is https://beta.greengoods.app, built from develop, for testing against the live
# Agent before main carries a release. The addresses are fixed in reporting/config.ts. With
# reporting on, an unknown name stops the Agent at start-up. Outside production the local Client
# dev server is used whichever site is named.
# @public
# @type=enum(production,beta)
AGENT_REPORTING_SITE=production