docs(agents): Pro gate is enabled in production (SASQUATCH_REQUIRE_PRO=1)
This commit is contained in:
parent
8d272a9c76
commit
70440c4bce
1 changed files with 10 additions and 7 deletions
17
AGENTS.md
17
AGENTS.md
|
|
@ -112,13 +112,16 @@ session with **no other memory of this project**. So:
|
||||||
Retention, so gemini/anthropic/gpt-4o-mini are **not** routable) — keep
|
Retention, so gemini/anthropic/gpt-4o-mini are **not** routable) — keep
|
||||||
`ALLOWED_MODELS` in the function in sync with `PROXY_MODELS` in
|
`ALLOWED_MODELS` in the function in sync with `PROXY_MODELS` in
|
||||||
`sasquatchBrain.ts`. Keyless **Pollinations** is the fallback.
|
`sasquatchBrain.ts`. Keyless **Pollinations** is the fallback.
|
||||||
The proxy has an **env-gated Pro paywall**: set `SASQUATCH_REQUIRE_PRO=1` and
|
The proxy has an **env-gated Pro paywall** and it is **ENABLED in production**
|
||||||
it requires `x-sasquatch-auth` (a NIP-98 kind-27235 event) plus
|
(`SASQUATCH_REQUIRE_PRO=1`): `/api/ai` requires `x-sasquatch-auth` (a NIP-98
|
||||||
`x-sasquatch-pro` (the Pro zap receipt, verified offline incl. paid-amount→
|
kind-27235 event) plus `x-sasquatch-pro` (the Pro zap receipt, verified
|
||||||
tier); platform owners bypass. Off by default. The client (`src/lib/proAuth.ts`)
|
offline incl. paid-amount→tier); platform owners bypass. Disable with
|
||||||
signs NIP-98 once per session and attaches the receipt — **but the per-crew
|
`netlify env:unset SASQUATCH_REQUIRE_PRO`. The client (`src/lib/proAuth.ts`)
|
||||||
agent (`useCrewAgentChat`) does not yet**, so don't enable the gate until it
|
signs NIP-98 once per session (no Amber pop per message) and attaches the
|
||||||
does. The pay-to address is single-sourced in `src/lib/platform.ts`.
|
receipt — used by BOTH `SasquatchGuide` and the crew agent
|
||||||
|
(`useCrewAgentChat`). Callers without credentials 401 and fall back to
|
||||||
|
keyless **Pollinations**. The pay-to address is single-sourced in
|
||||||
|
`src/lib/platform.ts`.
|
||||||
**AI answers are Pro-only**: free users get the static FAQ/glossary + local
|
**AI answers are Pro-only**: free users get the static FAQ/glossary + local
|
||||||
relay lookups only (`if (isPro)` gates the AI block in `SasquatchGuide`).
|
relay lookups only (`if (isPro)` gates the AI block in `SasquatchGuide`).
|
||||||
Pro access (`useSasquatchPro`) is granted by a provider-authored zap receipt,
|
Pro access (`useSasquatchPro`) is granted by a provider-authored zap receipt,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue