Document local MindSpace delivery links and block production URLs in dev.

Agents must deliver public pages via Portal 8081 with /MindSpace/<userId>/public/ paths; forbid mindspace.tkmind.cn and bare 5173/public links during local development.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-09-02 14:51:41 +08:00
parent 49758568bb
commit eb0c697c4e
4 changed files with 43 additions and 3 deletions
+7 -1
View File
@@ -1,10 +1,16 @@
// Keep browser-safe: do not import user-publish.mjs (uses node:fs/path/url).
import { shouldUseScheduledTaskAutomation } from './scheduled-task-intent.mjs';
const MINDSPACE_DELIVERY_LINK_RULE =
'本地开发交付必须用 http://127.0.0.1:8081/MindSpace/<用户ID>/public/...Page Data API 走 Portal 8081);' +
'可选经 5173 代理:http://127.0.0.1:5173/MindSpace/<用户ID>/public/...' +
'禁止 https://mindspace.tkmind.cn/、https://m.tkmind.cn/(除非用户明确要求生产链接)、' +
'禁止 http://127.0.0.1:5173/public/...、禁止省略 /MindSpace/<用户ID>/ 前缀。';
const PAGE_TEMPLATE_PROMPT_SUFFIX =
'【硬性要求】必须先 load_skill 并 read_file 官方 templates/*.html,仅替换 {{PLACEHOLDER}}' +
'禁止修改 <style> 结构或新增模板外 CSS 类;正文内容只能填入占位符 HTML 片段。' +
'交付链接必须含 /MindSpace/<用户ID>/public/...,禁止 http://127.0.0.1:5173/public/...。';
MINDSPACE_DELIVERY_LINK_RULE;
const PUBLISH_SKILL_NAME = 'static-page-publish';
export const PAGE_DATA_COLLECT_SKILL_NAME = 'page-data-collect';