Files
deta-agent-plugins/plugins/studio/package.json
T
ringo e7d372f939
CI / contract (push) Has been cancelled
fix(plugin): 云令牌改由启动器解析,清掉废弃的 MCP 授权指引
症状:装好插件后调 list_projects 返回 auth_required,模型被技能里"先让用户完成 MCP 授权(codex mcp login deta_mcp)"带偏,用户卡在登录环节。

根因两条:① 启动器只透传环境变量 DETA_TOKEN,而 Finder/Dock 启动的桌面应用不继承终端环境,登录助手写的 ~/.deta 凭据根本进不去宿主进程;② 技能/README 仍留着远程形态的 OAuth 指引,本机形态里那条命令不存在。

修复:启动器按 DETA_TOKEN 环境变量 → ~/.deta/env → ~/.deta/credentials.json 顺序解析令牌并在 stderr 报告来源(不打印值);技能改为"让用户跑登录助手 → 开新会话",并明确区分 MCP 侧云令牌与面板侧 deta.city 登录;两份 README 的登录流程改为"登录一次、开新会话即可"(无需 source / launchctl / 改 .zshrc / 重启应用)。studio 0.3.1 → 0.3.2。

实测(隔离 HOME):四种取令牌路径与优先级、缺令牌时的引导文案均符合预期。
2026-09-20 12:02:24 +08:00

21 lines
413 B
JSON
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.
{
"name": "deta-studio-plugin",
"version": "0.3.2",
"description": "DETA Studio:AML 建筑模型读写与编译校验(Codex 插件 / dsh 组合包 双壳)",
"type": "module",
"license": "Proprietary",
"files": [
"cordis.patch.yml",
"skills",
".codex-plugin",
".mcp.json",
"bin",
"README.md"
],
"dsh": {
"bundle": {
"patch": "./cordis.patch.yml"
}
}
}