dsh-adb 0.1.0 → 0.1.2

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
@@ -10,12 +10,13 @@
10
10
  dsh plugin --profile web add dsh-adb
11
11
  ```
12
12
 
13
- > v0.1 发布前可从 GitHub 直装:`dsh plugin --profile web add github:SamXiaBing/dsh-adb`
13
+ 或从 GitHub 直装:`dsh plugin --profile web add github:SamXiaBing/dsh-adb`
14
14
 
15
15
  ## 生态收录
16
16
 
17
- - ✅ [awesome-deepseek-harness#87](https://github.com/0xsline/awesome-deepseek-harness/pull/87) — **已合并**(2026-08-14)
18
- - ✅ [awesome-dsh-plugin#85](https://github.com/awesome-dsh-plugin/awesome-dsh-plugin/pull/85) — **已合并**(2026-08-14)
17
+ - ✅ [npm](https://www.npmjs.com/package/dsh-adb) — `dsh-adb@0.1.0` 已发布(2026-08-14)
18
+ - ✅ [awesome-deepseek-harness#87](https://github.com/0xsline/awesome-deepseek-harness/pull/87) — **已合并**
19
+ - ✅ [awesome-dsh-plugin#85](https://github.com/awesome-dsh-plugin/awesome-dsh-plugin/pull/85) — **已合并**
19
20
  - ⏳ [awesome-DSH-plugin#29](https://github.com/Alex-Yanggg/awesome-DSH-plugin/pull/29) — 待合并
20
21
 
21
22
  Topics:`dsh-plugin` `dsh` `adb` `android` `automotive` `bench`
@@ -63,6 +64,17 @@ npm pack --dry-run # 校验发布包内容(lib/ + cordis.patch.yml)
63
64
 
64
65
  注意:本机若设了 `NODE_ENV=production`,npm 会跳过 devDependencies,安装时用 `npm install --include=dev`。
65
66
 
67
+ ## 真机/台架冒烟(2026-08-14,SA_DIREWOLF_IVI 台架)
68
+
69
+ 在 headless profile 中端到端验证(`dsh --profile bench "任务"`):
70
+
71
+ - `adb_devices` → `f20c9b04 device msmnile_gvmq_for_arm64` ✅
72
+ - `adb_perf_snapshot` meminfo(com.android.systemui) → PSS 133995 KB / RSS 283832 KB / Java Heap 12328 KB / Native Heap 26692 KB ✅
73
+ - `adb_logcat` level=E tail=5 → 真实设备错误日志结构化返回 ✅
74
+ - 配置覆盖(`adbPath` / `defaultSerial`)✅ · 错误码(`ADB_NOT_FOUND`)✅
75
+
76
+ > v0.1.0 → v0.1.1 修复:冒烟发现 `ctx.tools.register` 未声明 `inject: ['tools']` 导致加载失败(Cordis Guard 拒绝未声明依赖),已修复并重新发布。
77
+
66
78
  ## License
67
79
 
68
80
  MIT
package/lib/index.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  import Schema from 'schemastery';
2
2
  import type { Context } from '@deepseek-ai/cordis';
3
3
  export declare const name = "dsh-adb";
4
+ /** The tool registry is a hard dependency: every tool registers through it. */
5
+ export declare const inject: string[];
4
6
  /** Plugin config (all optional — `Config` supplies the defaults). */
5
7
  export interface Config {
6
8
  /** Absolute path to the adb executable. */
package/lib/index.js CHANGED
@@ -5,6 +5,8 @@ import { registerInstallTool } from './tools/install.js';
5
5
  import { registerLogcatTool } from './tools/logcat.js';
6
6
  import { registerPerfTool } from './tools/perf.js';
7
7
  export const name = 'dsh-adb';
8
+ /** The tool registry is a hard dependency: every tool registers through it. */
9
+ export const inject = ['tools'];
8
10
  export const Config = Schema.object({
9
11
  adbPath: Schema.string().description('adb 可执行文件绝对路径;缺省自动探测 PATH / ANDROID_HOME / ANDROID_SDK_ROOT / platform-tools'),
10
12
  defaultSerial: Schema.string().description('默认目标设备 serial'),
@@ -120,9 +120,9 @@ function startBackgroundLogcat(ctx, cfg, args, exec) {
120
120
  readOutput: () => {
121
121
  const read = handle?.collected.stdout?.readFrom(cursor);
122
122
  if (read === undefined)
123
- return { added: 0, text: '' };
123
+ return '';
124
124
  cursor += Buffer.byteLength(read.text, 'utf8');
125
- return { added: read.text.length, text: read.text };
125
+ return read.text;
126
126
  },
127
127
  };
128
128
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-adb",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
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",