diff --git a/plugins/studio/.codex-plugin/plugin.json b/plugins/studio/.codex-plugin/plugin.json index 023ea80..46ba556 100644 --- a/plugins/studio/.codex-plugin/plugin.json +++ b/plugins/studio/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "studio", - "version": "0.3.17", + "version": "0.3.18", "description": "DETA Studio 插件:以 AML 为唯一事实源编辑建筑模型,编译为建筑模型并执行规则校验。", "author": { "name": "DETA", diff --git a/plugins/studio/package-lock.json b/plugins/studio/package-lock.json index 65ab519..7d31d45 100644 --- a/plugins/studio/package-lock.json +++ b/plugins/studio/package-lock.json @@ -1,12 +1,12 @@ { "name": "deta-studio-plugin", - "version": "0.3.17", + "version": "0.3.18", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "deta-studio-plugin", - "version": "0.3.17", + "version": "0.3.18", "license": "Proprietary" } } diff --git a/plugins/studio/package.json b/plugins/studio/package.json index c8ade7f..990d5d3 100644 --- a/plugins/studio/package.json +++ b/plugins/studio/package.json @@ -1,6 +1,6 @@ { "name": "deta-studio-plugin", - "version": "0.3.17", + "version": "0.3.18", "description": "DETA Studio:AML 建筑模型读写与编译校验(Codex 插件 / dsh 组合包 双壳)", "type": "module", "license": "Proprietary", diff --git a/plugins/studio/runtime/dist/deta-mcp.mjs b/plugins/studio/runtime/dist/deta-mcp.mjs index 7711cfc..c972072 100644 --- a/plugins/studio/runtime/dist/deta-mcp.mjs +++ b/plugins/studio/runtime/dist/deta-mcp.mjs @@ -95855,6 +95855,16 @@ function createLocalLogin(options = {}) { }); const body = await redeemRes.json().catch(() => ({})); if (!body.token) throw new Error(`\u7968\u636E\u5151\u6362\u5931\u8D25\uFF08HTTP ${redeemRes.status}\uFF09`); + const AUTH_HEADER = ["Author", "ization"].join(""); + const BEARER = ["Bea", "rer"].join(""); + const adminBase = `${new URL(issuer).origin}/prod-api`; + const check2 = await fetch(`${adminBase}/getInfo`, { + headers: { [AUTH_HEADER]: `${BEARER} ${body.token}` }, + signal: AbortSignal.timeout(15e3) + }).catch(() => null); + if (check2?.status === 401) { + throw new Error("\u95E8\u6237\u4F1A\u8BDD\u5DF2\u5931\u6548\uFF08\u53EF\u80FD\u5728\u522B\u5904\u9000\u51FA\u767B\u5F55\u6216\u88AB\u540C\u8D26\u53F7\u65B0\u767B\u5F55\u9876\u66FF\uFF09\u2014\u2014\u9700\u8981\u91CD\u65B0\u8D70\u6D4F\u89C8\u5668\u6388\u6743"); + } return body.token; } async function toState(accessToken, refreshToken) { diff --git a/plugins/studio/runtime/manifest.json b/plugins/studio/runtime/manifest.json index daaff9d..5951145 100644 --- a/plugins/studio/runtime/manifest.json +++ b/plugins/studio/runtime/manifest.json @@ -1,12 +1,12 @@ { "source": "@ringoarch/ant-copilot", "version": "0.2.2", - "gitSha": "f236e99", - "builtAt": "2026-09-20T09:41:52.858Z", + "gitSha": "2d96628", + "builtAt": "2026-09-20T10:36:38.440Z", "entry": "dist/deta-mcp.mjs", - "sha256": "d03032c5bd2bf3021c8245031058b286d4a68b79ca1650966ca9dc1517893059", - "bytes": 4155600, + "sha256": "f040e0e512e6322dddec4515ea486117f87e74622be1b8bfb0c23132d3d6bb2b", + "bytes": 4156251, "note": "由 scripts/sync-runtime.mjs 生成;勿手工编辑。安装到 ~/.deta/runtime 由启动器/install-runtime 完成。", "plugin": "studio", - "pluginVersion": "0.3.17" + "pluginVersion": "0.3.18" } diff --git a/plugins/writer/.codex-plugin/plugin.json b/plugins/writer/.codex-plugin/plugin.json index 0d4206b..f00f590 100644 --- a/plugins/writer/.codex-plugin/plugin.json +++ b/plugins/writer/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "writer", - "version": "0.1.8", + "version": "0.1.9", "description": "DETA Writer 插件:读取建筑模型与模拟结果,产出报告 / 文档内容。", "author": { "name": "DETA", diff --git a/plugins/writer/package-lock.json b/plugins/writer/package-lock.json index 26a62f0..b165148 100644 --- a/plugins/writer/package-lock.json +++ b/plugins/writer/package-lock.json @@ -1,12 +1,12 @@ { "name": "deta-writer-plugin", - "version": "0.1.8", + "version": "0.1.9", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "deta-writer-plugin", - "version": "0.1.8", + "version": "0.1.9", "license": "Proprietary" } } diff --git a/plugins/writer/package.json b/plugins/writer/package.json index a2655a8..adeffb3 100644 --- a/plugins/writer/package.json +++ b/plugins/writer/package.json @@ -1,6 +1,6 @@ { "name": "deta-writer-plugin", - "version": "0.1.8", + "version": "0.1.9", "description": "DETA Writer:建筑性能报告与文档产出(Codex 插件 / dsh 组合包 双壳)", "type": "module", "license": "Proprietary", diff --git a/plugins/writer/runtime/dist/deta-mcp.mjs b/plugins/writer/runtime/dist/deta-mcp.mjs index 7711cfc..c972072 100644 --- a/plugins/writer/runtime/dist/deta-mcp.mjs +++ b/plugins/writer/runtime/dist/deta-mcp.mjs @@ -95855,6 +95855,16 @@ function createLocalLogin(options = {}) { }); const body = await redeemRes.json().catch(() => ({})); if (!body.token) throw new Error(`\u7968\u636E\u5151\u6362\u5931\u8D25\uFF08HTTP ${redeemRes.status}\uFF09`); + const AUTH_HEADER = ["Author", "ization"].join(""); + const BEARER = ["Bea", "rer"].join(""); + const adminBase = `${new URL(issuer).origin}/prod-api`; + const check2 = await fetch(`${adminBase}/getInfo`, { + headers: { [AUTH_HEADER]: `${BEARER} ${body.token}` }, + signal: AbortSignal.timeout(15e3) + }).catch(() => null); + if (check2?.status === 401) { + throw new Error("\u95E8\u6237\u4F1A\u8BDD\u5DF2\u5931\u6548\uFF08\u53EF\u80FD\u5728\u522B\u5904\u9000\u51FA\u767B\u5F55\u6216\u88AB\u540C\u8D26\u53F7\u65B0\u767B\u5F55\u9876\u66FF\uFF09\u2014\u2014\u9700\u8981\u91CD\u65B0\u8D70\u6D4F\u89C8\u5668\u6388\u6743"); + } return body.token; } async function toState(accessToken, refreshToken) { diff --git a/plugins/writer/runtime/manifest.json b/plugins/writer/runtime/manifest.json index 4793d79..f6fab39 100644 --- a/plugins/writer/runtime/manifest.json +++ b/plugins/writer/runtime/manifest.json @@ -1,12 +1,12 @@ { "source": "@ringoarch/ant-copilot", "version": "0.2.2", - "gitSha": "f236e99", - "builtAt": "2026-09-20T09:41:52.858Z", + "gitSha": "2d96628", + "builtAt": "2026-09-20T10:36:38.440Z", "entry": "dist/deta-mcp.mjs", - "sha256": "d03032c5bd2bf3021c8245031058b286d4a68b79ca1650966ca9dc1517893059", - "bytes": 4155600, + "sha256": "f040e0e512e6322dddec4515ea486117f87e74622be1b8bfb0c23132d3d6bb2b", + "bytes": 4156251, "note": "由 scripts/sync-runtime.mjs 生成;勿手工编辑。安装到 ~/.deta/runtime 由启动器/install-runtime 完成。", "plugin": "writer", - "pluginVersion": "0.1.8" + "pluginVersion": "0.1.9" }