feat(mindspace): add SEO/GEO delivery, page template catalog, and admin hooks
Memind CI / Test, build, and release guards (push) Has been cancelled

Enable optional SEO/GEO injection and discovery routes for confirmed public pages while keeping private pages noindex. Add premium page template skills, portal catalog API, template shop UI, and Baidu push gated by memind_adm config.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-08-10 08:06:12 +08:00
parent 7c65540366
commit fde6503bdf
158 changed files with 9194 additions and 270 deletions
+11
View File
@@ -17,6 +17,10 @@ import {
createSubscriptionService,
ensurePlanCatalogSchema,
} from './billing-subscription.mjs';
import {
createPageTemplateCatalogService,
ensureTemplateCatalogSchema,
} from './page-template-catalog.mjs';
import { createDbPool, ensureAssetGatewaySchema, isDatabaseConfigured } from './db.mjs';
import { createUserAuth } from './user-auth.mjs';
import { createLlmProviderService } from './llm-providers.mjs';
@@ -74,6 +78,7 @@ export async function createAdminServices(env = {}) {
// optional control-plane tables here instead of requiring the public boot path.
await ensureAssetGatewaySchema(pool);
await ensurePlanCatalogSchema(pool);
await ensureTemplateCatalogSchema(pool);
// --- plaza graph (review queue, reports, featured, analytics, creators) ---
const plazaRedis = createNoopPlazaRedis();
@@ -112,6 +117,11 @@ export async function createAdminServices(env = {}) {
defaultSignupBalanceCents,
subscriptionService,
});
const templateCatalogService = createPageTemplateCatalogService(pool, {
userAuth,
h5Root,
});
await templateCatalogService.ensureReady();
if (env.ensureAdminUser !== false) {
await userAuth.ensureAdminUser();
}
@@ -195,5 +205,6 @@ export async function createAdminServices(env = {}) {
plazaOps,
wechatAdmin,
subscriptionService,
templateCatalogService,
};
}