From e5fc7a33cccc266b83994d2c078222c7588cb663 Mon Sep 17 00:00:00 2001 From: chen qiang <343005560@qq.com> Date: Mon, 17 Aug 2026 13:58:43 +0800 Subject: [PATCH] chore: refresh public mirror --- CHANGELOG.md | 5 +++++ SKILL.md | 2 ++ VERSION | 2 +- scripts/oracle_skill.py | 9 +++++++-- 4 files changed, 15 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e1af74..5d32115 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -410,3 +410,8 @@ ### Trusted-device key location - Store the trusted-device key at `~/.oracle-jump-query/device-key.json`, shared by all installations of the Skill for the same Windows user. - Never migrate or overwrite another key; the private key is created once and never committed or uploaded. +## 1.5.41 (2026-08-17) + +### Trusted-device detection +- `login` may now be run without a secret key; the Skill first detects an approved local trusted device and obtains a token automatically. +- A secret-key login is requested only when no approved device is available. diff --git a/SKILL.md b/SKILL.md index 995d25b..32df981 100644 --- a/SKILL.md +++ b/SKILL.md @@ -47,6 +47,8 @@ python scripts/oracle_skill.py [args] python scripts/oracle_skill.py login [clientCode] ``` +如果当前 Windows 用户目录中已有已审批的可信设备,也可以直接执行 `python scripts/oracle_skill.py login`;Skill 会自动检测设备并申请中转 token,只有设备不存在、被撤销或已过期时才需要提供登录密钥。 + `clientCode` 是客户服务器编号,非必填;不传时中转机会默认选择 BOS 返回的第一个可用 client。登录成功后本地只保存中转机签发的 `access_token` 和过期时间,不保存 BOS `secretKey`。同一个 `secretKey` 同时只允许一个设备在线,其他设备重新登录后,当前 token 会失效。 常用命令: diff --git a/VERSION b/VERSION index adecc24..4d05cfc 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.5.40 +1.5.41 diff --git a/scripts/oracle_skill.py b/scripts/oracle_skill.py index aea62a1..23aecac 100644 --- a/scripts/oracle_skill.py +++ b/scripts/oracle_skill.py @@ -3553,8 +3553,13 @@ def main(): result = query_with_permission(user_id, table_id, sql) print_result(result) - elif cmd == "login" and len(sys.argv) >= 3: - cmd_login(sys.argv[2], sys.argv[3] if len(sys.argv) >= 4 else "") + elif cmd == "login": + if len(sys.argv) >= 3: + cmd_login(sys.argv[2], sys.argv[3] if len(sys.argv) >= 4 else "") + else: + cfg = get_config() or {} + if not ensure_logged_in(cfg): + print("❌ 未检测到已授权可信设备,请执行 login [clientCode]") elif cmd == "logout": cmd_logout()