save-creation
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSave creation
保存创作
Push a creative document to OriginMind (). Plans, statements, proposals — not source code.
status: savedServer auto-ingests saved creations into Creative DNA () by deleting the prior Memory Engine document and re-ingesting (one registry row per creation). Do not call a separate project ingest after a successful save.
vector_only将创意文档推送到 OriginMind()。适用于计划、声明、提案等文档,不适用于源代码。
status: saved服务器会将已保存的创作自动摄取到 Creative DNA(),方式是删除先前的 Memory Engine 文档并重新摄取(每个创作对应一条注册表记录)。保存成功后,不要调用单独的项目摄取流程。
vector_onlyWhen to use
何时使用
- User asks to save, sync, or update a creative document on another device
- End of a session when the output is a document (not code)
- 用户要求在另一台设备上保存、同步或更新创意文档
- 会话结束且输出为文档(而非代码)时
When NOT to use
何时不要使用
- Source code, configs, tests, or repo implementation
- User says don't save
- No API key
- 源代码、配置、测试或仓库实现
- 用户明确表示不要保存
- 没有 API key
API
API
- Base URL:
https://api.originmind.ai GET /api/v1/creations?project_id=...GET /api/v1/creations/{id}- —
PATCH /api/v1/creations/{id}{ "title", "content", "status": "saved" } - —
POST /api/v1/creations{ "project_id", "title", "content", "status": "saved" } - Auth: or Bearer JWT
X-OriAI-Api-Key
- Base URL:
https://api.originmind.ai GET /api/v1/creations?project_id=...GET /api/v1/creations/{id}- —
PATCH /api/v1/creations/{id}{ "title", "content", "status": "saved" } - —
POST /api/v1/creations{ "project_id", "title", "content", "status": "saved" } - 身份验证:或 Bearer JWT
X-OriAI-Api-Key
Bootstrap
初始化
Once per shell:
powershell
. ./skills/create/scripts/bootstrap-originmind-env.ps1bash
source ./skills/create/scripts/bootstrap-originmind-env.shMISSING_KEY. ./skills/create/scripts/setup-oauth.ps1.sh.env.localORIGINMIND_API_KEY=om_live_....env每个 shell 执行一次:
powershell
. ./skills/create/scripts/bootstrap-originmind-env.ps1bash
source ./skills/create/scripts/bootstrap-originmind-env.shMISSING_KEY. ./skills/create/scripts/setup-oauth.ps1.sh.env.localORIGINMIND_API_KEY=om_live_....envResolve project_id
解析 project_id
- User or context names or project name →
proj_....GET /api/v1/projects - in env.
ORIGINMIND_CREATIVE_DNA_PROJECT_ID - Config-based inference (no API call) — read →
.originmind/om_project.config.json(or legacyprojects[]). Score each project's name against the user message + conversation context per search-creative-dna config-based inference. If one is clearly relevant (≥80%), use it.defaultProjectId - Else most recently updated project from .
GET /api/v1/projects
- 用户或上下文提供 或项目名称 →
proj_...。GET /api/v1/projects - 环境变量 。
ORIGINMIND_CREATIVE_DNA_PROJECT_ID - 基于配置推断(无 API 调用)——读取 →
.originmind/om_project.config.json(或旧版projects[])。按照基于配置推断(无 API 调用)中的规则,根据用户消息和对话上下文为每个项目名称评分。如果有一个项目明显相关(≥80%),则使用它。defaultProjectId - 否则,使用 返回的最近更新项目。
GET /api/v1/projects
Workflow — GET first, then PATCH or POST
工作流——先 GET,再 PATCH 或 POST
- Prepare and
title(markdown; not a code dump).content GET /api/v1/creations?project_id={project_id}- Candidate among /
saved(notdraft): user-namedfinalized, else same title (case-insensitive), else most recently updated match.id - Exists: → same content skip; else
GET /api/v1/creations/{id}with updatedPATCH/title/content.status: saved - No match: .
POST /api/v1/creations - Never a
PATCHrow —finalizednew or ask user.POST - Echo creation . Do not follow with a separate ingest call.
id
- 准备 和
title(Markdown;不要直接转储代码)。content GET /api/v1/creations?project_id={project_id}- 在 /
saved状态中查找候选项(不包括draft):优先使用用户指定的finalized,其次匹配标题相同且不区分大小写的记录,否则选择最近更新的匹配项。id - 存在: → 如果内容相同则跳过;否则使用更新后的
GET /api/v1/creations/{id}/title/content执行status: saved。PATCH - 没有匹配项: 执行 。
POST /api/v1/creations - 绝不要对 记录执行
finalized——应执行PATCH创建新记录或询问用户。POST - 回显创作的 。不要在之后调用单独的摄取流程。
id
Errors
错误
| Code | Action |
|---|---|
| 401 | New key at app |
| 404 | Wrong ids |
| 400 | Finalized — POST new or ask user |
| 402 / 429 | Stop — https://app.originmind.ai/ |
| 代码 | 操作 |
|---|---|
| 401 | 在 app 中创建新 key |
| 404 | ID 错误 |
| 400 | 已 finalized——执行 |
| 402 / 429 | 停止——https://app.originmind.ai/ |