Files
openclaw/scripts/cloudflare/src/cloudflare-containers.d.ts
T
Peter Steinberger 5fda9d09f0 feat(deploy): add experimental Cloudflare deployment template (#122768)
* feat(deploy): add experimental Cloudflare template

* fix(deploy): keep container SSH debug access opt-in

* fix(deploy): satisfy scripts tsgo lane and model wrangler entrypoint in knip

* fix(deploy): model wrangler-consumed exports and isolated dependency in knip

The Worker default export and Durable Object class are instantiated by
wrangler from wrangler.jsonc, and @cloudflare/containers lives in the
template's isolated package.json — modeled per the deadcode checks' own
guidance rather than root-manifest changes.

* docs(deploy): align SSH bootstrap flow with the disabled-by-default policy
2026-08-12 14:07:48 -07:00

14 lines
509 B
TypeScript

// Keep this deployment template type-checkable without adding Cloudflare packages
// to the OpenClaw workspace. The isolated package.json supplies the runtime module.
declare module "@cloudflare/containers" {
export class Container<Env = unknown> {
constructor(ctx: unknown, env: Env);
defaultPort?: number;
envVars: Record<string, string>;
pingEndpoint: string;
sleepAfter: string | number;
fetch(request: Request): Promise<Response>;
onActivityExpired(): Promise<void>;
}
}