@inventec/dsh-copilot-auth 1.2.21 → 1.2.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +3 -3
  2. package/icon.svg +18 -0
  3. package/package.json +7 -2
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  [![npm](https://img.shields.io/npm/v/%40inventec%2Fdsh-copilot-auth?label=npm)](https://www.npmjs.com/package/@inventec/dsh-copilot-auth)
4
4
  [![CI](https://img.shields.io/github/actions/workflow/status/iasiv5/dsh-copilot-auth/ci.yml?branch=main&label=CI)](https://github.com/iasiv5/dsh-copilot-auth/actions/workflows/ci.yml)
5
5
  [![License](https://img.shields.io/github/license/iasiv5/dsh-copilot-auth?label=License)](https://github.com/iasiv5/dsh-copilot-auth/blob/main/LICENSE)
6
- [![DSH](https://img.shields.io/badge/DSH-0.1.7--rc.2%20%7C%200.2.0--rc.1%2Frc.2%20verified-2563eb)](#版本兼容)
6
+ [![DSH](https://img.shields.io/badge/DSH-0.2.1--rc.3%20verified-2563eb)](#版本兼容)
7
7
 
8
8
  为 DSH(DeepSeek Harness)内置的 GitHub Copilot 通道补上**网页设备码登录 / 注销**入口,预置开箱即用的 Copilot 提供方路由,并提供**模型列表管理**。用公司 GitHub 账号(带 Copilot 订阅)登录 DSH 的方式与其他 Copilot 客户端一致:**网页 + 设备码**,全程不填 API Token。
9
9
 
@@ -79,7 +79,7 @@ pi-ai 的模型目录是打包时硬编码的 JSON:上游新增模型在本机
79
79
 
80
80
  | 插件线 | DSH 实测版本 | 说明 |
81
81
  |---|---|---|
82
- | **v1.2.x** | `0.1.7-rc.2` ~ `0.2.0-rc.2` | 当前线;`0.2.0` 起注意插件 peer 精确版本守卫 |
82
+ | **v1.2.x** | `0.1.7-rc.2`、`0.2.0-rc.1/rc.2`、`0.2.1-rc.2/rc.3` | 当前线;`0.2.0` 起注意插件 peer 精确版本守卫;rc.3 Web 冒烟:`/copilot-auth/status` 200、`activated=true`、`settingsNotServed=[]`、`lastError=null` |
83
83
  | v1.1.x | `0.1.2-rc.1` ~ `0.1.5-rc.2` | 旧版线;依赖 v1.2.0 已移除的 authorization 挂载补丁,新版 DSH 上无法激活 |
84
84
 
85
85
  逐版本沿革(v1.2.0 ~ v1.2.20 完整说明与已移除能力的语义记录)见 [docs/CHANGELOG.md](./docs/CHANGELOG.md)。
@@ -120,7 +120,7 @@ base 模型(GPT-4o / 4.1 一类)不耗 premium requests;premium 模型(C
120
120
  - 自行 patch `llm-pi-ai` 整段 config 会覆盖预置路由;`settings.yaml` 的 `llm-pi-ai:` 节只能稀疏覆盖字段,无法删除预置路由本身(移除须卸载本插件)
121
121
  - 路由前缀 `/copilot-auth` 两侧硬编码,不可配置
122
122
  - 模型目录「**只增不更新**」:合并只补充本机从未见过的条目,上游对已有 id 的元数据修正不会同步(ADR 0001)
123
- - DSH rc 版本耦合:实测 `0.1.7-rc.2` 与 `0.2.0-rc.1 / rc.2`,peer 仅 `@deepseek-ai/cordis@^4.0.2`
123
+ - DSH rc 版本耦合:实测 `0.1.7-rc.2`、`0.2.0-rc.1/rc.2` 与 `0.2.1-rc.2/rc.3`;rc.3 Web 冒烟见「版本兼容」,peer 仅 `@deepseek-ai/cordis@^4.0.2`
124
124
  - DSH 升级后的目录自愈仅在 pi-ai 基线版本不变时按已确认条目只增重放;跨基线且条目缺失时上报 `self-heal-incompatible`,不修改安装树(重新执行一次手动刷新即可在新基线上激活)
125
125
  - 并发保护为宿主单进程内 mutex,不支持多实例 / 多进程并发操作同一安装目录
126
126
  - 目录 fsync 仅在 POSIX 执行:Windows 无目录 fsync 语义(必然 `EPERM`),直接跳过,一致性由 NTFS 元数据日志保证(v1.2.3 起)
package/icon.svg ADDED
@@ -0,0 +1,18 @@
1
+ <svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="dsh-copilot-auth">
2
+ <!-- dsh-copilot-auth 认证:斜向钥匙(环尾含青色轴点)= 设备码登录与凭据入库 -->
3
+ <circle cx="12.5" cy="12.5" r="6" stroke="url(#b)" stroke-width="4" fill="none"/>
4
+ <circle cx="12.5" cy="12.5" r="2.2" fill="url(#t)"/>
5
+ <path d="M17 17L27.5 27.5" stroke="url(#b)" stroke-width="4" stroke-linecap="round"/>
6
+ <path d="M24 24L27.5 20.5" stroke="url(#b)" stroke-width="3.4" stroke-linecap="round"/>
7
+ <path d="M27.5 27.5L31 24" stroke="url(#b)" stroke-width="3.4" stroke-linecap="round"/>
8
+ <defs>
9
+ <linearGradient id="b" x1="6.5" y1="6.5" x2="31" y2="27.5" gradientUnits="userSpaceOnUse">
10
+ <stop stop-color="#69B9FF"/>
11
+ <stop offset="1" stop-color="#324DE2"/>
12
+ </linearGradient>
13
+ <linearGradient id="t" x1="10.3" y1="10.3" x2="14.7" y2="14.7" gradientUnits="userSpaceOnUse">
14
+ <stop stop-color="#45E7A4"/>
15
+ <stop offset="1" stop-color="#05909D"/>
16
+ </linearGradient>
17
+ </defs>
18
+ </svg>
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@inventec/dsh-copilot-auth",
3
- "version": "1.2.21",
3
+ "version": "1.2.22",
4
4
  "description": "为内置 Copilot 提供方补设备码登录设置页,预置开箱路由;凭据入内置凭据库,模型目录兜底不覆盖定制。v1.2.19:管理模型列表 v3 目标状态编辑(分组全表/挽留/对齐/清空语义告知)+单次确认+移除请求撤回+退出残影修复。v1.2.18:授权失败附网络失败码+人性化提示。适配 DSH 0.1.7+(≤0.1.5 请用 1.1.x)。v1.2.21:移除前实时证据自动续期(ephemeral 不落库+负缓存 5min)+缓存证据原因分型文案+busy 卡死 retire 出口与水合判序修正(032)。",
5
+ "icon": "./icon.svg",
5
6
  "type": "module",
6
7
  "license": "MIT",
7
8
  "author": "iasi",
@@ -38,7 +39,8 @@
38
39
  "src/model-update.mjs",
39
40
  "src/refresh-service.mjs",
40
41
  "src/refresh-transaction.mjs",
41
- "src/catalog-overlay.json"
42
+ "src/catalog-overlay.json",
43
+ "icon.svg"
42
44
  ],
43
45
  "scripts": {
44
46
  "build": "node scripts/build-client.mjs",
@@ -59,6 +61,9 @@
59
61
  "yaml": "^2.5.0"
60
62
  },
61
63
  "dsh": {
64
+ "engines": {
65
+ "dsh": ">=0.1.7-rc.2"
66
+ },
62
67
  "bundle": {
63
68
  "patch": "./cordis.patch.yml"
64
69
  },