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:
+3
-1
@@ -361,6 +361,8 @@ export function buildSandboxSessionConstraints({ baseConstraints, developerTools
|
||||
const hasSandboxMcp = tools.includes('write_file') || tools.includes('read_file');
|
||||
const hasShell = tools.includes('shell');
|
||||
const hasListDir = tools.includes('list_dir') || tools.includes('tree');
|
||||
const writeTool = hasSandboxMcp ? 'sandbox-fs__write_file' : 'write_file';
|
||||
const editTool = hasSandboxMcp ? 'sandbox-fs__edit_file' : 'edit_file';
|
||||
|
||||
const lines = [
|
||||
baseConstraints,
|
||||
@@ -396,7 +398,7 @@ export function buildSandboxSessionConstraints({ baseConstraints, developerTools
|
||||
lines.push(
|
||||
'',
|
||||
'## 生成 / 发布 HTML 页面',
|
||||
'- 你有 write_file/edit_file 工具:**必须由你**写入 `public/xxx.html`(或工作区根目录 `.html`)',
|
||||
`- 你有 ${writeTool}/${editTool} 工具:**必须由你**写入 \`public/xxx.html\`(或工作区根目录 \`.html\`);沙箱 MCP 使用带 \`sandbox-fs__\` 前缀的工具名,禁止调用不存在的裸 \`write_file\``,
|
||||
'- 开始前执行 load_skill → `static-page-publish`,按技能说明写入 mindspace-cover 元数据',
|
||||
'- `generate_image` 成功后,HTML 的图片与背景只能使用返回的 `asset.htmlSrc`;`workspaceRelativePath` 只用于文件操作,禁止直接写入 HTML',
|
||||
'- 默认只生成 HTML;不要在没有明确需求时强制生成 Word、PDF、长图等伴生文件',
|
||||
|
||||
Reference in New Issue
Block a user