mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-24 19:35:28 -06:00
5fda9d09f0
* 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
14 lines
509 B
TypeScript
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>;
|
|
}
|
|
}
|