env.ts
Language TypeScript674 B16 lines
import type { PlinthEnvVars } from "./lib/config.js";import type { RateLimiterDO } from "./rateLimiterDO.js";/*** Cloudflare Workers environment bindings.** Extends the plain env vars the core reads (PlinthEnvVars) with the* Worker-only bindings. `PLINTH_API_KEY` is a SECRET: set it with* `wrangler secret put PLINTH_API_KEY`, never in wrangler.jsonc.*/export interface Env extends PlinthEnvVars {/** Durable Object namespace backing the McpAgent (one instance per session). */PLINTH_MCP: DurableObjectNamespace;/** Shared rate-limiter DO enforcing the global 10/10s cap across sessions. */RATE_LIMITER: DurableObjectNamespace<RateLimiterDO>;}