diff --git a/plugins/studio/.codex-plugin/plugin.json b/plugins/studio/.codex-plugin/plugin.json index 623a00c..e3b96f2 100644 --- a/plugins/studio/.codex-plugin/plugin.json +++ b/plugins/studio/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "studio", - "version": "0.3.4", + "version": "0.3.5", "description": "DETA Studio 插件:以 AML 为唯一事实源编辑建筑模型,编译为建筑模型并执行规则校验。", "author": { "name": "DETA", diff --git a/plugins/studio/package-lock.json b/plugins/studio/package-lock.json index bc48d86..584615e 100644 --- a/plugins/studio/package-lock.json +++ b/plugins/studio/package-lock.json @@ -1,12 +1,12 @@ { "name": "deta-studio-plugin", - "version": "0.3.4", + "version": "0.3.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "deta-studio-plugin", - "version": "0.3.4", + "version": "0.3.5", "license": "Proprietary" } } diff --git a/plugins/studio/package.json b/plugins/studio/package.json index b648cda..a38d051 100644 --- a/plugins/studio/package.json +++ b/plugins/studio/package.json @@ -1,6 +1,6 @@ { "name": "deta-studio-plugin", - "version": "0.3.4", + "version": "0.3.5", "description": "DETA Studio:AML 建筑模型读写与编译校验(Codex 插件 / dsh 组合包 双壳)", "type": "module", "license": "Proprietary", diff --git a/plugins/studio/skills/aml-design/SKILL.md b/plugins/studio/skills/aml-design/SKILL.md index 71408ad..cbd74f0 100644 --- a/plugins/studio/skills/aml-design/SKILL.md +++ b/plugins/studio/skills/aml-design/SKILL.md @@ -145,7 +145,10 @@ Studio 就是deta.city 上的建筑性能应用。在 Codex 右侧内置浏览 - **面板侧的 deta.city 登录**:靠 `open_studio` 的一次性链接自动完成,登录态写在该浏览器的 `ant_token` cookie 与 `ant-model-auth` localStorage,之后长期有效。 两者互不替代——拿到云令牌不等于面板已登录,反之亦然。 -- 没有 `projectId`:Studio 打开的是空项目。先在门户创建云项目拿到 ID,再 `push_project(…, projectId)` 绑定。 +- 没有 `projectId`(用户要"新建项目"):**先调 `create_project({ name })`** ——这是云端建项目的唯一工具入口, + 返回 `projectId` 与 Studio 深链(`studioUrl`);随后用 `build_model`(写 AML → 编译 → 写入云项目工作区) + 或 `push_project(…, projectId)` 把模型放进去。**不要**拿 `push_project` 去绑定一个不存在的 ID, + 也不要让用户先去门户手工建项目。 - 宿主没有内置浏览器(CLI 等形态):直接把 `studioUrl` 给用户,让他自己打开,不要假装已经打开。 ## 铁律