feat(mindspace): enforce PostgreSQL user data delivery

This commit is contained in:
john
2026-07-13 15:29:29 +08:00
parent b33c943b69
commit a6620fb719
57 changed files with 2779 additions and 164 deletions
+11
View File
@@ -85,6 +85,10 @@ test('publish dir and public url use stable user id', () => {
assert.match(skillText, /docx-generate/);
assert.match(skillText, /long-image-download/);
assert.match(skillText, /generate_long_image/);
assert.match(skillText, /禁止使用 `localStorage`/);
assert.match(skillText, /IndexedDB/);
assert.match(skillText, /PostgreSQL schema/);
assert.match(skillText, /page-data-collect/);
assert.match(docxSkillText, /public\/文件名\.docx/);
assert.match(longImageSkillText, /public\/report\.long\.png/);
assert.match(skillText, /report\.docx|伴生下载/);
@@ -137,6 +141,10 @@ test('buildSandboxSessionConstraints documents shell and forbids public url brow
assert.match(text, /docx-generate/);
assert.match(text, /public\/\*\.docx/);
assert.match(text, /\/public\//);
assert.match(text, /当前用户专属 PostgreSQL 数据空间/);
assert.match(text, /localStorage/);
assert.match(text, /IndexedDB/);
assert.match(text, /write_file\/edit_file 会直接拒绝/);
});
test('renderWorkspaceHints includes docx download guidance for published pages', () => {
@@ -150,6 +158,9 @@ test('renderWorkspaceHints includes docx download guidance for published pages',
assert.match(text, /public\/\*\.docx/);
assert.match(text, /long-image-download/);
assert.match(text, /generate_long_image/);
assert.match(text, /apps__create_app/);
assert.match(text, /Page Data API/);
assert.match(text, /未验证文件已落盘/);
});
test('isPathInsidePublishDir blocks escape', () => {