dsh-adb 0.1.2 → 0.1.3
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 +17 -8
- package/lib/adb.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -64,16 +64,25 @@ npm pack --dry-run # 校验发布包内容(lib/ + cordis.patch.yml)
|
|
|
64
64
|
|
|
65
65
|
注意:本机若设了 `NODE_ENV=production`,npm 会跳过 devDependencies,安装时用 `npm install --include=dev`。
|
|
66
66
|
|
|
67
|
-
## 真机/台架冒烟(2026-08-14,SA_DIREWOLF_IVI
|
|
67
|
+
## 真机/台架冒烟(2026-08-14,SA_DIREWOLF_IVI 台架,Android 13)
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
headless profile 端到端验证(`dsh --profile bench "任务"`),**7 个工具全部实测通过**:
|
|
70
70
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
71
|
+
| 工具 | 实测结果 |
|
|
72
|
+
| --- | --- |
|
|
73
|
+
| `adb_devices` | ✅ 返回 `f20c9b04 device msmnile_gvmq_for_arm64` |
|
|
74
|
+
| `adb_connect` / `adb_disconnect` | ✅ 不可达端点正确返回 CONNECT_FAILED;disconnect 正常 |
|
|
75
|
+
| `adb_logcat`(前向) | ✅ level=E tail=5 返回真实错误日志 |
|
|
76
|
+
| `adb_logcat`(后台采集) | ✅ job_output 读回 43065 行/7MB 流,job_kill 正常 |
|
|
77
|
+
| `adb_install` | ✅ pull 真机 apk → `install -r` → "Performing Streamed Install / Success" |
|
|
78
|
+
| `adb_file` | ✅ ls / push / pull 往返字节一致 |
|
|
79
|
+
| `adb_perf_snapshot` | ✅ meminfo(SystemUI PSS 131MB)+ gfxinfo(232 帧/60.78% 卡顿)解析正确;battery 空(台架无电池服务) |
|
|
80
|
+
|
|
81
|
+
配置覆盖(`adbPath`/`defaultSerial`)✅ · 错误码(`ADB_NOT_FOUND`/`CONNECT_FAILED`)✅
|
|
82
|
+
|
|
83
|
+
> 冒烟发现并修复两个已发布 bug:
|
|
84
|
+
> - **v0.1.0 → v0.1.1**:`ctx.tools.register` 未声明 `inject: ['tools']` 导致加载失败(Cordis Guard 拒绝未声明依赖)
|
|
85
|
+
> - **v0.1.1 → v0.1.2**:后台 logcat 的 `readOutput` 返回 `{added,text}` 对象,违反 jobs 契约(须返回字符串)导致 `job_output` 报 `value.text must be a string`
|
|
77
86
|
|
|
78
87
|
## License
|
|
79
88
|
|
package/lib/adb.js
CHANGED
|
@@ -117,7 +117,7 @@ export async function runAdb(ctx, cfg, argv, options = {}) {
|
|
|
117
117
|
export function classifyFailure(result) {
|
|
118
118
|
const stderr = result.stderr;
|
|
119
119
|
const stdout = result.stdout;
|
|
120
|
-
if (/error
|
|
120
|
+
if (/(?:error:\s*)?device ['"]?[^'\r\n]*['"]? not found/i.test(stderr)) {
|
|
121
121
|
return new AdbError('DEVICE_NOT_FOUND', excerpt(stderr));
|
|
122
122
|
}
|
|
123
123
|
if (/no devices\/emulators found/i.test(stderr)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-adb",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "ADB device & bench operations for DeepSeek Harness: device discovery, structured logcat, apk install, file pull/push, performance snapshots",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|