dsh-server-ops-agent 0.0.0-stage → 0.4.0-beta.5

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.
@@ -0,0 +1,75 @@
1
+ # DSH 服务器运维插件公开分发方案(`v0.4.0-beta.5`)
2
+
3
+ 本插件采用 **单 npm 包分发 DSH 插件、GitHub Releases 分发同版本离线包与 Linux 服务端包、公开 `index.json` 用于 DSH 发现**。两端产物严格绑定同一版本号与 `protocolVersion: 1`,零公网端口,完全复用已有 SSH 通道。
4
+
5
+ ---
6
+
7
+ ## 一、构建产物与包边界
8
+
9
+ 单一仓库(`dsh-server-ops-agent`)通过 `tsdown` 构建出 4 个明确入口,且 Linux 服务端发行包保持零外部 npm 依赖、严格小于 **1 MiB**:
10
+
11
+ | 产物 | 目标运行时 | 职责 |
12
+ | --- | --- | --- |
13
+ | `dist/plugin.js` | DSH Node 宿主 | 注册 `/server-operations/api` 路由、SSH 连接复用(5min 空闲回收)、KV 快照缓存与部署引擎 |
14
+ | `dist/workspace-tool.js` | DSH 原生会话 | 注册 13 个授权运维工具(观测 1 + 备份 6 + 恢复 3 + 部署 3),按工作区动态绑定主机 |
15
+ | `dist/client.js` | DSH Webview(`--dsw-alias-*`) | 注册侧栏入口与 3 Tab 工作台(总览 / 时间机器 / 动态与日报)+ 空态引导与设置抽屉 |
16
+ | `generated/linux-release.tgz` | Linux ARM64 / x86_64 | 内嵌 `server.js`、`install-linux.sh`、`dsh-server-ops`、`job-runner.py`、`catalog-export.py`、`container-probe.py`、`systemd` 单元与只读探针(`< 1 MiB`) |
17
+
18
+ `package.json` 通过以下字段声明 DSH 兼容性与加载入口:
19
+ - `engines.dsh`: `>=0.2.0-rc.2 || >=0.2.1-rc.2 || >=0.2.2-rc.1`
20
+ - `dsh.bundle.patch`: `./cordis.patch.yml`(同时注入工作台插件与 `server-ops-chat` 运维 Agent 预设)
21
+ - `dsh.client`: `{ platform: "web", immediately: true, inject: [...] }`
22
+ - `dsh.compatibility.dshReleases`: 声明各 RC / 正式版兼容状态,并与 `index.json` 保持同步
23
+
24
+ ---
25
+
26
+ ## 二、安装与首次连接流程
27
+
28
+ | 阶段 | 插件 / 服务端行为 |
29
+ | --- | --- |
30
+ | 1. 发现与安装 | 从 DSH 插件市场(`dsh-server-ops-agent@beta`)、公开索引 `index.json` 或 GitHub Release 离线 `.tgz` 安装。 |
31
+ | 2. 指纹校验与只读探测 | 核对管理员提供的 SHA-256 主机指纹,探测目标 Linux 的架构、`systemd`、Node 22 兼容性、挂载点与 `restic` 状态(也可在原生会话通过 `deploy_probe` 完成)。 |
32
+ | 3. 确认并部署 | 在界面或通过 `deploy_install` 真人确认卡明确展示指纹、Node 22 LTS 自拉需求、权限组(`server-ops-read` / `server-ops-admin`)与只读 `profile.yaml` 范围;确认后上传内置同版 Linux 包、校验 SHA-256、启动权限三分服务并自动重连 SSH。 |
33
+ | 4. 日常运维与恢复 | 桌面端以 <500ms KV 缓存呈现总览,通过双 Unix Socket 区分只读与管理操作;所有恢复强制落入隔离目录,绝不覆盖原文件。 |
34
+
35
+ ---
36
+
37
+ ## 三、架构不变量与 V2 边界
38
+
39
+ 1. **DSH 关闭行为不变**:DSH 退出或离线不影响 Linux 服务端采样、纯函数 07:00 日报与定时备份,桌面端零常驻守护进程。
40
+ 2. **界面清单封闭**:严格收敛在「总览 / 时间机器 / 动态与日报」3 个核心 Tab 与设置抽屉,对话交互统一走 DSH 原生工作区。
41
+ 3. **不做清单(V2 范围)**:不做自动自愈执行引擎、不做服务端 LLM 归因、不在 `profile.yaml` 中允许未知键或密钥、不在 V1 扩展除 `restic` 一等引擎与只读历史归档适配之外的新备份栈。
42
+
43
+ ---
44
+
45
+ ## 四、发布渠道与版本流程
46
+
47
+ 1. **源码与索引仓库**:维护公开源码、兼容矩阵、安装文档与 DSH 公开插件索引 [index.json](https://raw.githubusercontent.com/yanaoyong/dsh-server-ops-agent/main/index.json)。 [DSH 打包文档](https://github.com/deepseek-ai/deepseek-harness/blob/master/docs/user/develop/basic/publish.md) · [DSH 插件索引规范](https://github.com/deepseek-ai/deepseek-harness/blob/master/docs/user/guide/plugin-market.zh.md)
48
+ 2. **单标签双产物发布**:从版本标签(如 `v0.4.0-beta.5`)一次构建:
49
+ - DSH 插件包:`dsh-server-ops-agent-<version>.tgz`
50
+ - Linux 服务端包:`linux-release.tgz`(与插件内嵌 `generated/linux-release.tgz` 逐字节一致)
51
+ - 校验文件:`SHA256SUMS`
52
+ 三份产物同步上传至 [GitHub Releases](https://github.com/yanaoyong/dsh-server-ops-agent/releases)(`--prerelease` 对应 `beta`),再在登录 npm 后发布至 `beta` 标签。
53
+ 3. **诚实的 `index.json` 索引更新**:`index.json` **严禁宣告 npm registry 上尚不存在的版本**。完成 `npm login` 后,直接执行一键脚本完成扫描、发布到 `@beta`、核验 `npm view` 并同步更新 `index.json`:
54
+ ```sh
55
+ npm login
56
+ node scripts/publish-beta.mjs
57
+ git add index.json && git commit -m "chore: advertise 0.4.0-beta.5 in index.json" && git push
58
+ ```
59
+ (若已手动运行 `npm publish --tag beta --access public`,可执行 `node scripts/publish-beta.mjs --sync-index` 校验并更新 `index.json`。)
60
+
61
+ ---
62
+
63
+ ## 五、公开脱敏与发布验收清单
64
+
65
+ 每次发布前必须全部通过以下核验:
66
+
67
+ - **构建与测试全绿**:`corepack pnpm typecheck && corepack pnpm run build && corepack pnpm run pack:linux && corepack pnpm test && corepack pnpm run verify:release` 零失败。
68
+ - **三层脱敏审计(0 命中)**:
69
+ 1. 公开仓库工作树及发布 diff 零私人主机名、私人域名/IP、本机绝对路径与凭据残留;
70
+ 2. 解压 `dsh-server-ops-agent-<version>.tgz` 逐文件扫描零 `/Users/` 或 `/home/` 本机绝对路径、零敏感词、无测试文件、无私钥/凭据;
71
+ 3. 解压 `linux-release.tgz` 逐文件扫描零 `/Users/` 或 `/home/` 绝对路径、零敏感词,且体积严格 `< 1 MiB`。
72
+ - **干净环境实测验收**:
73
+ - 在独立隔离临时目录从打包产物 `.tgz` 解压校验 `package.json` 声明、`cordis.patch.yml`、Node 22 ESM 加载 `dist/plugin.js` 与 `dist/workspace-tool.js`(确认 13 个工具与 `/server-operations/api` 路由注册);
74
+ - 在隔离 VM 沙箱内通过 `window.__ModuleLoader__.load` 加载 `dist/client.js`,验证 `main` / `sidebar.panellist` 注册及无主机空态 `OnboardingView` 零报错渲染;
75
+ - 端到端验证双 Unix Socket 权限边界、只读/管理动词路由、`restic` 通用目录索引与 `job-runner.py` 隔离目录恢复校验。
@@ -0,0 +1,53 @@
1
+ # v0.4 迁移前只读审计与去污摘要
2
+
3
+ > 审计范围:公开仓库历史与工作树、`~/Library/Application Support/server-ops-agent/runtime/`(在线运行目录)对比本地开发源码 `server-ops-agent/`。
4
+ > 本文件经严格脱敏,不包含任何 IP、真实主机名、私钥、令牌或本地用户名路径。
5
+
6
+ ## 1. 公开仓库历史与工作树敏感信息扫描
7
+
8
+ 扫描范围:公开仓库 `yanaoyong/dsh-server-ops-agent` 全部分支与提交(含 `main` 与 `gh-pages`,共 5 个 commit,tag `v0.3.0-beta.1`)。
9
+
10
+ | 检查类别 | 命中结果 | 处置结论 |
11
+ | :--- | :--- | :--- |
12
+ | 私钥(`BEGIN * PRIVATE KEY`) | 0 | 无泄漏 |
13
+ | 模型 / 云服务 API Key(`sk-`、`AIza`、`GOCSPX-`、`ya29.`、`AKIA`、`ghp_` 等) | 0 | 无泄漏 |
14
+ | 硬编码密码 / Secret / Bearer Token | 0 | 无泄漏 |
15
+ | 公网 IPv4 地址 | 0 | 无泄漏 |
16
+ | SSH 公钥 | 0 | 无泄漏 |
17
+ | 真实邮箱 | 0(仅测试夹具 `operator@example.test`、`pass@server.test`) | 无泄漏 |
18
+ | 私人遗留栈代码(`operations/`、`tools/prepare-operations.py`) | 命中(`dab60fa`,共 109 个文件) | **已作为 `v0.4-rewrite` 首刀 commit 彻底删除**(未重写 git 历史) |
19
+
20
+ 结论:公开 git 历史中**不存在**真实密钥、密码、私钥或公网 IP 泄漏;暴露的私人运维工作台与遗留脚本结构已在 `v0.4-rewrite` 首提交 `chore: remove leaked private operations directory` 中移除。
21
+
22
+ ## 2. `runtime/` 与开发源码漂移核实
23
+
24
+ 对比对象:
25
+ - 在线运行目录:`~/Library/Application Support/server-ops-agent/runtime/`(共 42 个跟踪文件)
26
+ - 本地开发源码:`server-ops-agent/`(排除 `.git`、`node_modules`、`generated`、`dist`、`__pycache__` 后共 254 个文件)
27
+
28
+ 汇总结果:
29
+ - 仅存在于 `runtime/` 的文件:**0 个**
30
+ - 逐字节完全一致的文件:**32 个**
31
+ - 存在差异的文件:**10 个**
32
+ - `runtime/` 独有业务热补丁:**0 条**
33
+
34
+ ### 10 个差异文件逐项核查
35
+
36
+ | 文件 | 源码大小 / SHA256 前缀 | runtime 大小 / SHA256 前缀 | 差异性质 |
37
+ | :--- | :--- | :--- | :--- |
38
+ | `package.json` | 1,167 B (`ea7465cb9781`) | 639 B (`85979c3f67a4`) | 版本由 `0.3.0-alpha.2` 降级回 `0.2.0`,移除 `build:plugin` / `prepack` / `files` / `devDependencies`(`esbuild`、`ssh2`) |
39
+ | `plugin.js` | 7,664 B (`7d93fb9ef55a`) | 7,478 B (`d0add76c0b25`) | 移除 `connections.js` 与 `storage.backend.json` 远程连接路由,回退为直连本地 `control.sock` 转发 |
40
+ | `native-workspace.js` | 5,250 B (`82bb0dc135d8`) | 6,170 B (`b36f1a81f937`) | 内联本地 `control.sock` HTTP 客户端,移除 `serverId` 参数与多连接会话 ID 分流 |
41
+ | `workspace-tool.js` | 5,372 B (`da41b04f403d`) | 5,535 B (`ab367432c076`) | 移除 `./connections.js` 依赖,本地内联单主机 `workspaceTarget(cwd)` |
42
+ | `client.js` | 164,437 B (`79e3614f5666`) | 157,951 B (`7bce79ac7b88`) | 移除多服务器 `Connection` Context、`useApi` 与远程连接表单,回退为单机直连版 UI |
43
+ | `agent.js` | 12,777 B (`7ba441c9da23`) | 13,026 B (`99cb6c05711d`) | 回退独立 `./sampling.js` 抽象,恢复内联 `sampling` / `nextRemote` 轮询逻辑 |
44
+ | `ledger.js` | 17,059 B (`75f39278aec6`) | 16,997 B (`0c66d2c4639e`) | 早期版本签名:`observe` 无 `investigate` 选项、`reports` 无 `localSignal` 参数 |
45
+ | `signals.js` | 2,992 B (`5edc43727643`) | 2,974 B (`ee48384432f8`) | 对应 `ledger.js`,`recordSignals` 无 `options` 透传参数 |
46
+ | `linux-probe.py` | 18,517 B (`acab859cb863`) | 16,552 B (`cf7aaaa8ee3c`) | 缺少后续新增的 `listener_addresses` 与 `ssh_identification` SSH banner 探针 |
47
+ | `inventory.py` | 4,078 B (`b6b5fefa5a8c`) | 4,044 B (`9a6717709f4e`) | 早期临时目录判断(`startswith('/tmp')`、无 `is_directory` 字段) |
48
+
49
+ ### 迁移结论
50
+
51
+ 1. `runtime/` 是面向旧版 `0.2.0`(本机 Mac `control.sock` 模式)的降级运行副本,**无任何未回流的线上业务逻辑热补丁**。
52
+ 2. 无需对 `runtime/` 做反向热补丁回收;v0.4 直接以 `v0.3.0-beta.1`(tag `4e06005`)和 v2.1 架构蓝图为基础进行单包分层重构。
53
+ 3. 所有 `v0.3.0-beta.1` 历史平铺源码均完整保存在 git tag `v0.3.0-beta.1` 中,P1/P2 阶段可随时通过 `git show v0.3.0-beta.1:<file>` 查阅对比。
@@ -0,0 +1,28 @@
1
+ {
2
+ "version": "0.4.0-beta.5",
3
+ "bytes": 94831,
4
+ "digest": "0a0b07e21b30af38c0452aad75e1aaa04ce562db3ab68e97f05bca9d6eeb06ce",
5
+ "files": [
6
+ "DSH-Linux-首次连接.md",
7
+ "LICENSE",
8
+ "catalog-export.py",
9
+ "container-probe.py",
10
+ "dsh-server-ops",
11
+ "install-linux.sh",
12
+ "job-runner.py",
13
+ "linux-bridge.py",
14
+ "manifest.json",
15
+ "probes/linux-probe.py",
16
+ "probes/log-evidence.py",
17
+ "probes/retained-probe.py",
18
+ "profile.example.yaml",
19
+ "server.js",
20
+ "units/server-ops-agent.service",
21
+ "units/server-ops-catalog-export.service",
22
+ "units/server-ops-catalog-export.timer",
23
+ "units/server-ops-container-probe.service",
24
+ "units/server-ops-container-probe.timer",
25
+ "units/server-ops-jobs.path",
26
+ "units/server-ops-jobs.service"
27
+ ]
28
+ }
@@ -0,0 +1 @@
1
+ 0a0b07e21b30af38c0452aad75e1aaa04ce562db3ab68e97f05bca9d6eeb06ce linux-release.tgz
Binary file
@@ -0,0 +1,158 @@
1
+ asn1@0.2.6
2
+ Copyright (c) 2011 Mark Cavage, All rights reserved.
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in
12
+ all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
+ THE SOFTWARE
21
+
22
+ bcrypt-pbkdf@1.0.2
23
+ The Blowfish portions are under the following license:
24
+
25
+ Blowfish block cipher for OpenBSD
26
+ Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de>
27
+ All rights reserved.
28
+
29
+ Implementation advice by David Mazieres <dm@lcs.mit.edu>.
30
+
31
+ Redistribution and use in source and binary forms, with or without
32
+ modification, are permitted provided that the following conditions
33
+ are met:
34
+ 1. Redistributions of source code must retain the above copyright
35
+ notice, this list of conditions and the following disclaimer.
36
+ 2. Redistributions in binary form must reproduce the above copyright
37
+ notice, this list of conditions and the following disclaimer in the
38
+ documentation and/or other materials provided with the distribution.
39
+ 3. The name of the author may not be used to endorse or promote products
40
+ derived from this software without specific prior written permission.
41
+
42
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
43
+ IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
44
+ OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
45
+ IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
46
+ INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
47
+ NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
48
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
49
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
50
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
51
+ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
52
+
53
+
54
+
55
+ The bcrypt_pbkdf portions are under the following license:
56
+
57
+ Copyright (c) 2013 Ted Unangst <tedu@openbsd.org>
58
+
59
+ Permission to use, copy, modify, and distribute this software for any
60
+ purpose with or without fee is hereby granted, provided that the above
61
+ copyright notice and this permission notice appear in all copies.
62
+
63
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
64
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
65
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
66
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
67
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
68
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
69
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
70
+
71
+
72
+
73
+ Performance improvements (Javascript-specific):
74
+
75
+ Copyright 2016, Joyent Inc
76
+ Author: Alex Wilson <alex.wilson@joyent.com>
77
+
78
+ Permission to use, copy, modify, and distribute this software for any
79
+ purpose with or without fee is hereby granted, provided that the above
80
+ copyright notice and this permission notice appear in all copies.
81
+
82
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
83
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
84
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
85
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
86
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
87
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
88
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
89
+
90
+ safer-buffer@2.1.2
91
+ MIT License
92
+
93
+ Copyright (c) 2018 Nikita Skovoroda <chalkerx@gmail.com>
94
+
95
+ Permission is hereby granted, free of charge, to any person obtaining a copy
96
+ of this software and associated documentation files (the "Software"), to deal
97
+ in the Software without restriction, including without limitation the rights
98
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
99
+ copies of the Software, and to permit persons to whom the Software is
100
+ furnished to do so, subject to the following conditions:
101
+
102
+ The above copyright notice and this permission notice shall be included in all
103
+ copies or substantial portions of the Software.
104
+
105
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
106
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
107
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
108
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
109
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
110
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
111
+ SOFTWARE.
112
+
113
+ ssh2@1.17.0
114
+ Copyright Brian White. All rights reserved.
115
+
116
+ Permission is hereby granted, free of charge, to any person obtaining a copy
117
+ of this software and associated documentation files (the "Software"), to
118
+ deal in the Software without restriction, including without limitation the
119
+ rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
120
+ sell copies of the Software, and to permit persons to whom the Software is
121
+ furnished to do so, subject to the following conditions:
122
+
123
+ The above copyright notice and this permission notice shall be included in
124
+ all copies or substantial portions of the Software.
125
+
126
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
127
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
128
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
129
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
130
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
131
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
132
+ IN THE SOFTWARE.
133
+
134
+ tweetnacl@0.14.5
135
+ This is free and unencumbered software released into the public domain.
136
+
137
+ Anyone is free to copy, modify, publish, use, compile, sell, or
138
+ distribute this software, either in source code form or as a compiled
139
+ binary, for any purpose, commercial or non-commercial, and by any
140
+ means.
141
+
142
+ In jurisdictions that recognize copyright laws, the author or authors
143
+ of this software dedicate any and all copyright interest in the
144
+ software to the public domain. We make this dedication for the benefit
145
+ of the public at large and to the detriment of our heirs and
146
+ successors. We intend this dedication to be an overt act of
147
+ relinquishment in perpetuity of all present and future rights to this
148
+ software under copyright law.
149
+
150
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
151
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
152
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
153
+ IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
154
+ OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
155
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
156
+ OTHER DEALINGS IN THE SOFTWARE.
157
+
158
+ For more information, please refer to <http://unlicense.org>
package/package.json CHANGED
@@ -1,6 +1,128 @@
1
1
  {
2
2
  "name": "dsh-server-ops-agent",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.4.0-beta.5",
4
+ "description": "Linux 巡检、备份时间机器与原生运维会话的 DeepSeek Harness 插件",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/yanaoyong/dsh-server-ops-agent.git"
10
+ },
11
+ "homepage": "https://github.com/yanaoyong/dsh-server-ops-agent",
12
+ "bugs": {
13
+ "url": "https://github.com/yanaoyong/dsh-server-ops-agent/issues"
14
+ },
15
+ "keywords": [
16
+ "deepseek-harness",
17
+ "dsh",
18
+ "dsh-plugin",
19
+ "linux",
20
+ "server-ops",
21
+ "monitoring",
22
+ "restic",
23
+ "backup",
24
+ "ssh",
25
+ "systemd"
26
+ ],
27
+ "engines": {
28
+ "node": ">=22.13",
29
+ "dsh": ">=0.2.0-rc.2 || >=0.2.1-rc.2 || >=0.2.2-rc.1"
30
+ },
31
+ "main": "dist/plugin.js",
32
+ "types": "dist/plugin.d.ts",
33
+ "exports": {
34
+ ".": {
35
+ "types": "./dist/plugin.d.ts",
36
+ "default": "./dist/plugin.js"
37
+ },
38
+ "./client": "./dist/client.js",
39
+ "./workspace-tool": {
40
+ "types": "./dist/workspace-tool.d.ts",
41
+ "default": "./dist/workspace-tool.js"
42
+ },
43
+ "./package.json": "./package.json"
44
+ },
45
+ "files": [
46
+ "dist/*",
47
+ "generated/linux-release.tgz",
48
+ "generated/linux-release.sha256",
49
+ "generated/linux-release.json",
50
+ "generated/ssh-licenses.txt",
51
+ "cordis.patch.yml",
52
+ "LICENSE",
53
+ "README.md",
54
+ "docs/",
55
+ "DSH-Linux-首次连接.md"
56
+ ],
57
+ "scripts": {
58
+ "build": "tsdown && node scripts/strip-dist-paths.mjs && node scripts/generate-ssh-licenses.mjs",
59
+ "pack:linux": "node scripts/pack-linux.mjs",
60
+ "verify:release": "node scripts/publish-beta.mjs --check",
61
+ "verify:live": "node scripts/verify-live.mjs",
62
+ "prepack": "npm run build && npm run pack:linux",
63
+ "typecheck": "tsc --noEmit",
64
+ "test": "vitest run",
65
+ "test:unit": "vitest run --exclude 'test/gates/**'",
66
+ "test:gates": "vitest run test/gates",
67
+ "test:watch": "vitest",
68
+ "qa:target": "bash scripts/qa-target.sh"
69
+ },
70
+ "dsh": {
71
+ "bundle": {
72
+ "patch": "./cordis.patch.yml"
73
+ },
74
+ "client": {
75
+ "platform": "web",
76
+ "immediately": true,
77
+ "inject": [
78
+ "@deepseek-ai/dsh-client-ui-layout",
79
+ "@deepseek-ai/dsh-client-ui-sidebar",
80
+ "@deepseek-ai/dsh-client-ui-workspace"
81
+ ]
82
+ },
83
+ "compatibility": {
84
+ "dshReleases": {
85
+ "0.2.0-rc.2+": "compatible",
86
+ "0.2.1-rc.2+": "compatible",
87
+ "0.2.2-rc.1+": "compatible",
88
+ "0.2.2-rc.3+": "compatible",
89
+ "0.2.2-rc.5+": "compatible"
90
+ }
91
+ }
92
+ },
93
+ "peerDependencies": {
94
+ "@deepseek-ai/cordis": "^4.0.4 || >=4.0.6-alpha.2 <5.0.0",
95
+ "react": "^18.3.1",
96
+ "react-dom": "^18.3.1"
97
+ },
98
+ "peerDependenciesMeta": {
99
+ "@deepseek-ai/cordis": {
100
+ "optional": true
101
+ },
102
+ "react": {
103
+ "optional": true
104
+ },
105
+ "react-dom": {
106
+ "optional": true
107
+ }
108
+ },
109
+ "devDependencies": {
110
+ "@deepseek-ai/cordis": "4.1.0",
111
+ "@types/node": "^22.15.0",
112
+ "@types/react": "^18.3.20",
113
+ "@types/react-dom": "^18.3.6",
114
+ "@types/ssh2": "^1.15.0",
115
+ "esbuild": "0.25.12",
116
+ "react": "^18.3.1",
117
+ "react-dom": "^18.3.1",
118
+ "ssh2": "1.17.0",
119
+ "tsdown": "^0.15.12",
120
+ "typescript": "^5.8.3",
121
+ "vitest": "^3.2.0"
122
+ },
123
+ "publishConfig": {
124
+ "access": "public",
125
+ "tag": "beta",
126
+ "registry": "https://registry.npmjs.org/"
127
+ }
128
+ }