Files
memind/.cursor/rules/mindspace-local-delivery-links.mdc
T
john eb0c697c4e 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>
2026-09-02 14:51:41 +08:00

32 lines
1.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
description: MindSpace 页面本地交付链接必须用 8081 Portal + /MindSpace/ 路径,禁止生产域名
globs: skills/**/*.md,chat-skills.mjs,page-template-enforcement.mjs,user-publish.mjs
alwaysApply: false
---
# MindSpace 本地交付链接
用户在本机开发(`pnpm dev`、5173/8081)时,向用户交付的公开页链接必须符合以下规则。
## 必须(本地)
- 主链接:`http://127.0.0.1:8081/MindSpace/<用户ID>/public/<页面>.html`
- Page Data API 与 bind 走 Portal **8081**,不是 Vite 5173
- 可选(5173 代理):`http://127.0.0.1:5173/MindSpace/<用户ID>/public/<页面>.html`
## 禁止(本地 dev 时)
- `https://mindspace.tkmind.cn/...` — 生产短链域名
- `https://m.tkmind.cn/...` — 除非用户**明确要求**生产链接
- `http://127.0.0.1:5173/public/...` — 缺少 `/MindSpace/<用户ID>/`
- `http://127.0.0.1:8081/public/...` — 缺少 `/MindSpace/<用户ID>/`
## 示例(用户 `1c99b83b-0454-474f-a5d2-129d34506a32`
```markdown
[行程清单](http://127.0.0.1:8081/MindSpace/1c99b83b-0454-474f-a5d2-129d34506a32/public/trip-itinerary.html)
[后台管理](http://127.0.0.1:8081/MindSpace/1c99b83b-0454-474f-a5d2-129d34506a32/public/trip-itinerary-admin.html)
```
详见 `skills/static-page-publish/SKILL.md` 与 `skills/page-data-collect/SKILL.md` 的「回复格式」节。