merge: integrate feature/0713-dev into main

# Conflicts:
#	mindspace-page-data-finish-guard.mjs
#	page-data-delivery-assess.mjs
This commit is contained in:
john
2026-07-13 15:33:45 +08:00
76 changed files with 4348 additions and 189 deletions
+11
View File
@@ -86,6 +86,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|伴生下载/);
@@ -138,6 +142,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', () => {
@@ -151,6 +159,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', () => {