Artifacts
Path:
codemode-gateway/src/providers/artifacts.tsRelative: src/providers/artifacts.tsSubproject: codemode-gatewayCategory: codemode-gatewayLines: 36Bytes: 992Imports: 1Exports: 1
Content Preview
- import type { Env } from "../types";
- /**
- * Artifacts namespace tools — R2 bucket for binary artifacts.
- *
- * Provides `list` for key discovery. Delete is intentionally NOT exposed
- * (never-delete policy). HTTP `GET /artifacts/<key>` is handled in `src/index.ts`.
- */
- /**
- * `artifacts.list({ prefix? })` → keys in the ARTIFACTS bucket.
- * Returns an array of key strings. Pagination-aware (walks all pages).
- */
- async function artifactsList(
- args: { prefix?: string },
- env: Env
- ): Promise<str