You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3ec7fcb
Browse filesBrowse the repository at this point in the historyBrowse files
Replace createMemory({ app }) with a createMemoryRoutes sub-app
createMemoryRoutes(deps) builds the routes on a fresh Hono<TenantEnv>
with paths relative to the mount point; the host mounts it at
/api/tenants/:tenantId/memory with its own requireGrant. The barrel's
createMemory wrapper that mutated a passed app is gone, so the one
createMemory is the plane factory in memory.ts, and it assembles its
options as explicit literals rather than conditional spreads.
The package root now exports only the public API: internal services,
helpers and test fakes are gone from it, the distiller and migrations
stay on their own subpaths, and the internal MergeLocalLiveV1 name no
longer appears in shipped declarations.
`createMemory({ callerResolver })` lets a host resolve identity for a caller
617
+
**Machine callers (CL-6286):**`RouteDeps.callerResolver`(passed to
618
+
`createMemoryRoutes`) lets a host resolve identity for a caller
618
619
that never goes through its tenant-session middleware — e.g. a workflow-run
619
620
child authenticating with its own sidecar bearer token. Unset by default
620
621
(every existing host is unaffected). When set, `resolveCaller` (`deps.ts`)
@@ -640,7 +641,7 @@ surface, or a migrating host silently loses them.
640
641
|`POST /api/tenants/:tenantId/memory/documents/:documentId/purge`|`purge`| none |`200 { documentId, deleted, reason? }`; `403` unless caller is the document's creator; `404` unknown document. Hard-deletes the row — irreversible; refused while a `durable` version is untombstoned. |
641
642
|`POST /api/tenants/:tenantId/memory/versions/:versionId/retention-class`|`forget`|`{ retention_class }`|`200 { versionId, documentId, status }`; `400` invalid class; `403` unless caller is the version's creator; `404` unknown version. |
642
643
643
-
`registerMemoryRoutes` and `createMemory({ app })` register these seven HTTP
0 commit comments