Astra: data safety (fencing, history, audit), AP 26D fixes, dry runs via the runner, client polish (56e055deeb3e)
5ce1088 verified Download .env.example from EnergyVenom/patchwise-agent-studio: direct link, hf CLI and curl.
- Browser
- Download file 5.41 kB
-
https://huggingface.co/spaces/EnergyVenom/patchwise-agent-studio/resolve/main/.env.example
- Command line
-
hf download hf://spaces/EnergyVenom/patchwise-agent-studio/.env.example
-
curl -L -o .env.example https://huggingface.co/spaces/EnergyVenom/patchwise-agent-studio/resolve/main/.env.example
5.41 kB
| # Patchwise settings. Copy to .env for local development; on a server set them as environment variables | |
| # (Hugging Face: Space variables and secrets; Render: environment group). Every setting has a safe default; the full | |
| # list with types is coworker/config.py (class Settings). Settings are validated when the app starts and it refuses to | |
| # start with a malformed value. Never commit a real .env (it is git-ignored). | |
| # ---------------------------------------------------------------- server | |
| FPT_HOME=./var # where data lives: database, vault, run evidence (a volume in Docker: /data) | |
| FPT_API_HOST=127.0.0.1 # 0.0.0.0 in a container | |
| FPT_API_PORT=8800 | |
| FPT_PUBLIC_URL= # https://your-app.example.com : used for links in e-mails (password reset) | |
| FPT_TRUST_PROXY=0 # 1 only behind a reverse proxy (Hugging Face, Render, nginx) that sets X-Forwarded-For | |
| FPT_COOKIE_SECURE=auto # auto | always (behind https) | never (plain-http local only) | |
| FPT_CORS_ORIGINS=["http://127.0.0.1:5173","http://localhost:5173"] # [] in production: the web app is same-origin | |
| FPT_API_DOCS=1 # 0 on a public server: hides /api/docs and /api/openapi.json | |
| FPT_EMBED_ORIGIN= # e.g. https://huggingface.co when the app is shown inside that site | |
| FPT_PRODUCT_NAME=Patchwise | |
| FPT_ORG_NAME= | |
| FPT_TZ=Asia/Kolkata # default time zone for new schedules | |
| # ---------------------------------------------------------------- accounts | |
| FPT_BOOTSTRAP_ADMIN_USER= # first admin, created at first start when no user exists | |
| FPT_BOOTSTRAP_ADMIN_PASSWORD= # secret | |
| SESSION_TTL_HOURS=12 | |
| LOGIN_MAX_ATTEMPTS=5 | |
| LOGIN_WINDOW_S=300 | |
| FPT_HASH_CONCURRENCY=4 # password hashes checked at the same time (each uses 64 MiB) | |
| # Optional identity provider and state backup (Supabase) | |
| SUPABASE_URL= | |
| SUPABASE_ANON_KEY= | |
| SUPABASE_SERVICE_KEY= # secret: storage of the encrypted state archive | |
| SUPABASE_BUCKET=patch-coworker | |
| FPT_STATE_KEY= # secret: key of the state archive (recommended; without it a key is derived from the service key) | |
| FPT_STATE_HISTORY=5 # earlier archives kept in the bucket (state/history/), so a bad save can be undone | |
| FPT_SHUTDOWN_RUN_WAIT_S=20 # at shutdown, how long a running test run may take to reach its next step before the last save | |
| FPT_REGISTRATION=1 # 0 to switch off self-registration | |
| FPT_REGISTER_ROLE=viewer # role of a self-registered account: viewer | consultant | qa_approver (never admin) | |
| FPT_ADMIN_EMAILS= # comma list; only applies to addresses the identity provider has confirmed | |
| # ---------------------------------------------------------------- what gets tested | |
| POD_BASE_URL=http://127.0.0.1:3100 # the practice pod (mock app) | |
| PLAYWRIGHT_MODE=live # live (real browser) | stub (quick simulation) | |
| FPT_BROWSER_RUNS= # 0 on servers with less than 2 GB of memory | |
| FPT_BROWSER_SLOWMO_MS=0 # slow browser actions down so people can watch | |
| FPT_FUSION_BASE_URL= # an Oracle Fusion TEST pod, re-created at every start (never production) | |
| FPT_FUSION_NAME=Oracle Fusion test pod | |
| FPT_FUSION_ENVIRONMENT=test # test | uat | sit | dev | |
| FPT_FUSION_MODULES=AP | |
| FPT_SECRET_FUSION_USERNAME= # secret: the Fusion test user | |
| FPT_SECRET_FUSION_PASSWORD= # secret | |
| SEED_ALLOWED=0 # 1 lets runs create test data on the pod | |
| # ---------------------------------------------------------------- AI model | |
| LLM_FRONTIER=off # off | frontier (switched on automatically when the three below are set) | |
| FRONTIER_BASE_URL= # e.g. https://integrate.api.nvidia.com/v1 (OpenAI-compatible) | |
| FRONTIER_MODEL= | |
| FPT_SECRET_FRONTIER_API_KEY= # secret | |
| FPT_FRONTIER_TIMEOUT_S=120 | |
| FPT_FUSION_AI_SCENARIOS=2 # scenarios the model may write per Fusion run (0 = off) | |
| # ---------------------------------------------------------------- workflow engine | |
| FPT_ORCHESTRATOR=langgraph # langgraph (single server) | temporal | |
| TEMPORAL_ADDRESS=127.0.0.1:7233 | |
| FPT_EMBEDDED_WORKER=0 | |
| # ---------------------------------------------------------------- optional assistant (Hermes) | |
| FPT_HERMES_ENABLED=0 | |
| FPT_HERMES_URL= | |
| FPT_SECRET_HERMES_API_KEY= # secret | |
| # ---------------------------------------------------------------- notifications (optional; see docs/DEPLOYMENT.md) | |
| FPT_NOTIFY_WEBHOOK_URL= # https URL that receives a signed POST per notification (e.g. an n8n webhook) | |
| FPT_SECRET_NOTIFY_SECRET= # secret: HMAC-SHA256 signing key (FPT_NOTIFY_SECRET is also read) | |
| FPT_TELEGRAM_BOT_TOKEN= # secret: the bot token from @BotFather (set it as a Space secret, never in a file) | |
| FPT_TELEGRAM_CHAT_ID= # optional: fixes the chat; otherwise choose it in Settings > Notifications | |
| FPT_TELEGRAM_POLLING= # "0": send only, never read the bot's messages (the two-way bot is off) | |
| FPT_TELEGRAM_API_BASE= # optional https relay to the Telegram Bot API, for hosts that block api.telegram.org | |
| # ---------------------------------------------------------------- retention | |
| EVIDENCE_RETENTION_DAYS=30 | |
| CHECKPOINT_RETENTION_DAYS=7 | |
| RUN_FILES_RETENTION_DAYS=90 | |
| CHAT_RETENTION_DAYS=30 | |
| PATCH_WATCH_ENABLED=1 | |