fix: harden release gate and page delivery
Memind CI / Test, build, and release guards (push) Failing after 12m3s

This commit is contained in:
john
2026-07-26 14:32:01 +08:00
parent d3141a3e91
commit b1577a16e9
61 changed files with 6017 additions and 89 deletions
+10
View File
@@ -148,6 +148,16 @@ test('buildSandboxSessionConstraints documents shell and forbids public url brow
assert.match(text, /write_file\/edit_file 会直接拒绝/);
});
test('sandbox MCP constraints use namespaced file tools', () => {
const text = buildSandboxSessionConstraints({
baseConstraints: 'base',
developerTools: ['write_file', 'edit_file', 'read_file'],
});
assert.match(text, /sandbox-fs__write_file/);
assert.match(text, /sandbox-fs__edit_file/);
assert.match(text, /禁止调用不存在的裸 `write_file`/);
});
test('renderWorkspaceHints includes docx download guidance for published pages', () => {
const text = renderWorkspaceHints({
slug: USER_ID,