fix: harden release gate and page delivery
Memind CI / Test, build, and release guards (push) Failing after 12m3s
Memind CI / Test, build, and release guards (push) Failing after 12m3s
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user