feat(page-data): add private and public dataset API (phase 1-3)

Extract UserDataSpaceService for shared SQLite access, wire logged-in Page
Data routes, and add public insert plus password-token read/update/delete with
policy storage, rate limits, and regression tests.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-07-08 12:44:23 +08:00
parent 1c8e0db256
commit 8d01553469
17 changed files with 2587 additions and 189 deletions
+12
View File
@@ -132,6 +132,18 @@ const SCOPE_RULES = [
'plaza-ops.test.mjs',
],
},
{
id: 'page-data',
patterns: [/page-data/i, /page-access-policy/i, /user-data-space-service/i, /mindspace-sandbox-mcp/i],
tests: [
'user-data-space-service.test.mjs',
'page-access-policy.test.mjs',
'page-data-routes.test.mjs',
'page-data-public-service.test.mjs',
'page-data-integration.test.mjs',
'mindspace-sandbox-mcp.test.mjs',
],
},
{
id: 'mindspace-core',
patterns: [/mindspace/i, /server\.mjs$/, /src\/hooks\/useTKMind/i],