Snippet
Path:
codemode-gateway/src/types/snippet.tsRelative: src/types/snippet.tsSubproject: codemode-gatewayCategory: codemode-gatewayLines: 37Bytes: 1,245Imports: 0Exports: 3
Content Preview
- /**
- * Snippet store types. A snippet is a saved, named sandbox script — the
- * gateway's "procedural memory". Stored as JSON in the `SNIPPETS` Workers KV
- * namespace (binding created via `wrangler kv namespace create SNIPPETS`),
- * keyed by name. Per ADR-2026-07-10-codemode-snippets-kv-not-runtime the
- * gateway owns snippets natively (NOT `createCodemodeRuntime`): ~100 lines
- * over KV with the exact small-model contract (`codemode.run("name")`).
- */
- /** Full stored record (the KV value, JSO