Index

loom-sprint-scaffoldsourcetypescript
Path: loom-sprint-scaffold/loom/src/memory/index.tsRelative: loom/src/memory/index.tsSubproject: loom-sprint-scaffoldCategory: other
Lines: 259Bytes: 8,844Imports: 11Exports: 5

Content Preview

  1. /**
  2. * Loop 4 — Memory Service: thin worker shell.
  3. *
  4. * Factory: pick VectorizeIndex when env.SEMANTIC binding present,
  5. * else Fts5Index (H4.6 fallback).
  6. *
  7. * Route handlers (matching src/index.ts routing style):
  8. * POST /memory/assemble — assemble context (H4.1)
  9. * POST /memory/expand — expand episodic_ref (H4.4)
  10. * POST /memory/records — validated write
  11. *
  12. * Wiring entry: wireMemoryRoutes(router, env) is called from src/index.ts.
  13. */
  14. import { createLogger } from "../lib/log