@cfour-hi/dsh-plugin-devicex 0.0.0-stage → 1.7.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/LICENSE +21 -0
- package/README.md +38 -2
- package/client.js +1008 -0
- package/cordis.patch.yml +3 -0
- package/host/actions-darwin.js +1261 -0
- package/host/actions-win32.js +1333 -0
- package/host/actions.js +45 -0
- package/host/benchmark.js +413 -0
- package/host/cleanup-darwin.js +715 -0
- package/host/cleanup-win32.js +760 -0
- package/host/cleanup.js +62 -0
- package/host/collector-darwin.js +2995 -0
- package/host/collector-win32.js +2060 -0
- package/host/collector.js +71 -0
- package/host/footprint-core.js +399 -0
- package/host/footprint-darwin.js +663 -0
- package/host/footprint-win32.js +411 -0
- package/host/footprint.js +284 -0
- package/host/proc.js +232 -0
- package/host/tool.js +254 -0
- package/host/transport.js +316 -0
- package/host/uninstall.js +244 -0
- package/host/win/hardware.ps1 +501 -0
- package/host/win/metrics.ps1 +535 -0
- package/host/win/network.ps1 +322 -0
- package/host/win/processes.ps1 +169 -0
- package/host/win/security.ps1 +197 -0
- package/host/win/software.ps1 +119 -0
- package/host/win/system.ps1 +279 -0
- package/host/win.js +187 -0
- package/icon.svg +18 -0
- package/index.js +67 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +60 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 cfour-hi
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,39 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @cfour-hi/dsh-plugin-devicex
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**Device X** — inspect every part of this device and control what can be changed
|
|
4
|
+
(macOS + Windows). A [DeepSeek Harness](https://github.com/cfour-hi/dsh-plugin-devicex) plugin.
|
|
5
|
+
|
|
6
|
+
## 安装
|
|
7
|
+
|
|
8
|
+
```sh
|
|
9
|
+
dsh plugin add @cfour-hi/dsh-plugin-devicex
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
或在 DSH 的 **Plugins** 页面粘贴包名;Agent 侧对应 `plugin_manager install_bundle`。
|
|
13
|
+
|
|
14
|
+
## 内容
|
|
15
|
+
|
|
16
|
+
| 路径 | 作用 |
|
|
17
|
+
| --- | --- |
|
|
18
|
+
| `index.js` | 插件入口:注册 `device_info` / `device_control` 两个工具、HTTP 路由与 Cordis 层 |
|
|
19
|
+
| `client.js` | 浏览器端单文件 bundle(由仓库的 `src/client/` 用 esbuild 生成,已随包提交,无需构建) |
|
|
20
|
+
| `host/` | Host 侧采集与动作实现:`collector-*`、`actions-*`、`cleanup-*`、`benchmark`、`proc`、`transport` |
|
|
21
|
+
| `host/win/*.ps1` | Windows 采集桥(PowerShell + CIM) |
|
|
22
|
+
| `locale/{en,zh}.json` | 插件管理器里的标题与描述 |
|
|
23
|
+
| `icon.svg` | 面板图标 |
|
|
24
|
+
|
|
25
|
+
本包不含源码、测试与构建脚本;完整源码、契约文档与验证套件在仓库中:
|
|
26
|
+
|
|
27
|
+
- 仓库:https://github.com/cfour-hi/dsh-plugin-devicex
|
|
28
|
+
- 安装说明:https://github.com/cfour-hi/dsh-plugin-devicex/blob/main/docs/INSTALL.md
|
|
29
|
+
- 发布流程:https://github.com/cfour-hi/dsh-plugin-devicex/blob/main/docs/RELEASE.md
|
|
30
|
+
|
|
31
|
+
## 许可
|
|
32
|
+
|
|
33
|
+
[MIT](https://github.com/cfour-hi/dsh-plugin-devicex/blob/main/LICENSE)。
|
|
34
|
+
|
|
35
|
+
## 注意
|
|
36
|
+
|
|
37
|
+
这是**本机设备管理**插件:数据不出本机,每个用户各自采集、各自操作。`device_control` 对 Agent 开放了
|
|
38
|
+
结束进程、卸载软件、改主机名、防火墙、DNS 等高权限动作;装到共享账号的 profile 前请确认这是预期行为。
|
|
39
|
+
需管理员权限的动作在 macOS 需要授权、在 Windows 需要以管理员身份运行 DeepSeek Harness。
|