@authinex/dsh-plugin 0.0.0-stage → 0.1.0

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.
package/README.md CHANGED
@@ -1,3 +1,56 @@
1
- # Temporary Holding Version
1
+ # AuthineX DS 插件
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ DeepSeek 桌面应用和网页客户端里的插件。装好后由用户自己填**访问地址和密钥**完成绑定,然后可以问产品、查 ONES / 氚云 / PMO、检索源码、做只读定位,并用本人账号建单。工单账号与 AuthineX、运营台个人设置是同一份:已经配过的直接拉下来用,在插件里新填的写回 AgentHub。
4
+
5
+ 插件本身**不带任何默认地址、公司信息或密钥**:包里没有组合包 `config` 段,Host 也不导出 `Config`;用户填的地址和私钥只进本机凭据。密钥验证通过之前不带出使用者或工单登录名;连续猜密钥会锁 IP,反复被锁会拉黑。插件不在本机保存业务系统密码,也不改本机、不推代码。
6
+
7
+ 源码是 TypeScript(`src/`)。发给 npm 的是打包后的 JavaScript,安装的机器不用再构建。
8
+
9
+ 实现约定见 [docs/DS插件-技术与产品实现.md](docs/DS插件-技术与产品实现.md),接口和里程碑见 [docs/DS插件-编码实施计划.md](docs/DS插件-编码实施计划.md)。安装、构建和本版验收见 [docs/安装与验收.md](docs/安装与验收.md)。
10
+
11
+ ## 开发
12
+
13
+ ```bash
14
+ npm install
15
+ npm test
16
+ ```
17
+
18
+ `npm test` 会先做类型检查,再把 `src/*.ts` 打成 `lib/index.js`(Host)和 `lib/client.js`(配置页),然后跑测试。
19
+
20
+ 看配置页长什么样,不用开 DeepSeek:
21
+
22
+ ```bash
23
+ npm run preview
24
+ ```
25
+
26
+ 浏览器打开 `http://127.0.0.1:4173`。左边切换未绑定、已绑定这些状态。这只是把客户端那一块单独挂出来,密钥不会真的去连 AgentHub。
27
+
28
+ ## 它是怎么跑起来的
29
+
30
+ 这是一个 DeepSeek 组合包,不是独立网站。`cordis.patch.yml` 往 Host 里插入一行 `@authinex/dsh-plugin`。
31
+
32
+ 包里有两半:
33
+
34
+ - **Host**(`lib/index.js`,跑在 DeepSeek 的 Node 进程里)注册对话工具,并把「用户填的地址 + 私钥 + 安装号」放进 Host 凭据。配置页的请求打到同源的 `/authinex-ds/*`,由 Host 转发到用户填的那台 AgentHub。
35
+ - **Client**(`lib/client.js`,跑在插件页里)通过 `window.__ModuleLoader__` 注册,同时挂到 DeepSeek 的 `plugins.bundle.config` 和 `plugins.row.config` 两个插槽。页面上只有两个输入框:访问地址和密钥。页面不保存公司、用户和密码。
36
+
37
+ 更新也在这个页面完成:插件调 Host 的 `pluginManager.installBundle` 装新版本,服务端只提供一份 `manifest.json`。装完重启智能问答即生效,绑定和账号不动。
38
+
39
+ 对话里的工具调用发生在 Host。建单会先弹出 DeepSeek 的确认卡,人点创建才发给 AgentHub。
40
+
41
+ ## 发布和安装
42
+
43
+ 在有 `@authinex` 发布权限的账号下:
44
+
45
+ ```bash
46
+ npm login
47
+ npm publish
48
+ ```
49
+
50
+ `npm publish` 会先跑测试。装到要用的机器上:
51
+
52
+ ```bash
53
+ npm install @authinex/dsh-plugin
54
+ ```
55
+
56
+ 装好的包里只有 `lib/`、`cordis.patch.yml` 和密钥测试向量,没有 TypeScript 源码。DeepSeek 按包里的 `cordis.patch.yml` 加载这一行插件。
@@ -0,0 +1,4 @@
1
+ # 组合包只插入一行。地址和密钥都由用户在插件配置页自己填,这里不带任何默认值。
2
+ - insert:
3
+ - id: authinex-ds-plugin
4
+ name: '@authinex/dsh-plugin'