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
+9
View File
@@ -29,6 +29,7 @@ test('applyMemindRuntimeProfile local forces monolith adapter and repo storage',
assert.equal(result.profile, 'local');
assert.equal(env.MINDSPACE_SERVER_ADAPTER, 'local');
assert.match(env.MINDSPACE_STORAGE_ROOT, /\/tmp\/memind\/data\/mindspace$/);
assert.equal(env.MEMIND_H5_HTML_FINISH_GUARD, '1');
});
test('applyMemindRuntimeProfile split-service expands auth token reference', () => {
@@ -39,6 +40,7 @@ test('applyMemindRuntimeProfile split-service expands auth token reference', ()
applyMemindRuntimeProfile({ env, profile: 'split-service' });
assert.equal(env.MINDSPACE_SERVER_ADAPTER, 'remote');
assert.equal(env.MINDSPACE_REMOTE_AUTH_TOKEN, 'local-dev-secret');
assert.equal(env.MEMIND_H5_HTML_FINISH_GUARD, '1');
});
test('applyMemindRuntimeProfile production does not override adapter', () => {
@@ -51,4 +53,11 @@ test('applyMemindRuntimeProfile production does not override adapter', () => {
assert.equal(result.profile, 'production');
assert.equal(env.MINDSPACE_SERVER_ADAPTER, 'remote');
assert.equal(env.MINDSPACE_REMOTE_AUTH_TOKEN, 'prod-token');
assert.equal(env.MEMIND_H5_HTML_FINISH_GUARD, undefined);
});
test('applyMemindRuntimeProfile local respects explicit finish guard override', () => {
const env = { MEMIND_H5_HTML_FINISH_GUARD: '0' };
applyMemindRuntimeProfile({ rootDir: '/tmp/memind', env, profile: 'local' });
assert.equal(env.MEMIND_H5_HTML_FINISH_GUARD, '0');
});