feat(runtime): 运行时随 login 存活校验更新,studio 0.3.18 / writer 0.1.9
CI / contract (push) Has been cancelled

This commit is contained in:
ringo
2026-09-20 18:36:39 +08:00
parent 2d6bc05b12
commit caf0f32313
10 changed files with 38 additions and 18 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "studio",
"version": "0.3.17",
"version": "0.3.18",
"description": "DETA Studio 插件:以 AML 为唯一事实源编辑建筑模型,编译为建筑模型并执行规则校验。",
"author": {
"name": "DETA",
+2 -2
View File
@@ -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"
}
}
+1 -1
View File
@@ -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",
+10
View File
@@ -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) {
+5 -5
View File
@@ -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"
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "writer",
"version": "0.1.8",
"version": "0.1.9",
"description": "DETA Writer 插件:读取建筑模型与模拟结果,产出报告 / 文档内容。",
"author": {
"name": "DETA",
+2 -2
View File
@@ -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"
}
}
+1 -1
View File
@@ -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",
+10
View File
@@ -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) {
+5 -5
View File
@@ -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"
}