Add User Model Service and Temporal Recall for MeMind V0.1.
Introduce UMS ingest/snapshot pipeline, Context Planner with multi-source recall, runtime context injection, canonical user mapping, and session snapshot loading on auth/me. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -22,6 +22,8 @@ export function createPortalApiAuthMiddleware({
|
||||
isPageDataPublicPath = () => false,
|
||||
isLegacyPageDataApiPath = () => false,
|
||||
isProductAnalyticsPublicPath = () => false,
|
||||
isUmsIngestPublicPath = () => false,
|
||||
isTemporalRecallInfoPublicPath = () => false,
|
||||
accessPolicyMode = PORTAL_ACCESS_POLICY_MODE.OFF,
|
||||
accessEnforcementConfig = Object.freeze({
|
||||
masterEnabled: false,
|
||||
@@ -104,6 +106,8 @@ export function createPortalApiAuthMiddleware({
|
||||
req.path,
|
||||
req.method,
|
||||
);
|
||||
const umsIngestPublic = isUmsIngestPublicPath(req.path, req.method);
|
||||
const temporalRecallInfoPublic = isTemporalRecallInfoPublicPath(req.path, req.method);
|
||||
// The retired namespace must reach its explicit 410 route instead of
|
||||
// being converted into a misleading global 401/403 response.
|
||||
const legacyPageDataApi = isLegacyPageDataApiPath(req.path);
|
||||
@@ -114,7 +118,9 @@ export function createPortalApiAuthMiddleware({
|
||||
plazaPublic ||
|
||||
pageDataPublic ||
|
||||
legacyPageDataApi ||
|
||||
productAnalyticsPublic
|
||||
productAnalyticsPublic ||
|
||||
umsIngestPublic ||
|
||||
temporalRecallInfoPublic
|
||||
) {
|
||||
return next();
|
||||
}
|
||||
@@ -129,7 +135,9 @@ export function createPortalApiAuthMiddleware({
|
||||
plazaPublic ||
|
||||
pageDataPublic ||
|
||||
legacyPageDataApi ||
|
||||
productAnalyticsPublic
|
||||
productAnalyticsPublic ||
|
||||
umsIngestPublic ||
|
||||
temporalRecallInfoPublic
|
||||
) {
|
||||
return next();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user