@hmharness/domain-harmony 0.13.6 → 0.13.8

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/dist/vmenv.d.ts CHANGED
@@ -14,7 +14,7 @@ export interface VmConfig {
14
14
  vmware?: VmVmwareConfig;
15
15
  }
16
16
  /** extra hdc resolver candidate: the 5.0.2 SDK shipped beside the image */
17
- export declare const QEMU_SDK_HDC = "D:/OHOS-QEMU/sdk-5.0.2/14/toolchains/hdc.exe";
17
+ export declare const QEMU_SDK_HDC = "QEMU_DIR/sdk-5.0.2/14/toolchains/hdc.exe";
18
18
  export declare const VM_DEFAULTS: {
19
19
  qemuDir: string;
20
20
  qemuLaunch: string;
package/dist/vmenv.js CHANGED
@@ -40,14 +40,14 @@ async function vmConfig() {
40
40
  }
41
41
  }
42
42
  /** extra hdc resolver candidate: the 5.0.2 SDK shipped beside the image */
43
- export const QEMU_SDK_HDC = 'D:/OHOS-QEMU/sdk-5.0.2/14/toolchains/hdc.exe';
43
+ export const QEMU_SDK_HDC = 'QEMU_DIR/sdk-5.0.2/14/toolchains/hdc.exe';
44
44
  export const VM_DEFAULTS = {
45
- qemuDir: 'D:/OHOS-QEMU/KaihongOS',
45
+ qemuDir: 'QEMU_DIR/KaihongOS',
46
46
  qemuLaunch: 'launch_qemu_vnc.cmd',
47
47
  qemuHdcPort: 15566,
48
48
  qemuVncDisplay: 5,
49
49
  vmrun: 'C:/Program Files/VMware/VMware Workstation/vmrun.exe',
50
- vmDirs: ['D:/VMs'],
50
+ vmDirs: ['VM_DIR'],
51
51
  };
52
52
  export function resolveQemu(cfg) {
53
53
  const dir = cfg?.dir ?? VM_DEFAULTS.qemuDir;
@@ -214,9 +214,9 @@ export const vmwareVmsTool = {
214
214
  type: 'object',
215
215
  properties: {
216
216
  action: { type: 'string', description: 'list | start | stop | suspend | ip | guest-run' },
217
- vm: { type: 'string', description: 'VM name or absolute .vmx path (list under D:/VMs)' },
217
+ vm: { type: 'string', description: 'VM name or absolute .vmx path (list under VM_DIR)' },
218
218
  guestCmd: { type: 'string', description: 'for guest-run: command line to run inside the guest (requires VMware Tools)' },
219
- sshKey: { type: 'string', description: 'for check: path to the SSH key (default ~/.ssh/vm_maintenance_ed25519)' },
219
+ sshKey: { type: 'string', description: 'for check: path to the SSH key (default ~/.ssh/VM_KEY)' },
220
220
  },
221
221
  required: [],
222
222
  },
@@ -279,13 +279,13 @@ export const vmwareVmsTool = {
279
279
  if (action === 'check') {
280
280
  // per-OS dev-environment readiness over SSH (BatchMode + maintenance
281
281
  // key). Read-only probes; unreachable VMs are reported, not errors.
282
- const key = String(args?.sshKey ?? join(process.env.USERPROFILE ?? '', '.ssh', 'vm_maintenance_ed25519'));
282
+ const key = String(args?.sshKey ?? join(process.env.USERPROFILE ?? '', '.ssh', 'VM_KEY'));
283
283
  const vms = [
284
- { name: 'Ubuntu 26.04', host: '192.168.161.128', user: 'hongfu' },
285
- { name: 'Kali 2026.2', host: '192.168.161.129', user: 'kali' },
286
- { name: 'Win10 Fresh', host: '192.168.161.133', user: 'hongfu2' },
287
- { name: 'Win11 Fresh', host: '192.168.161.132', user: 'hongfu1' },
288
- { name: 'Omarchy 4.0.4', host: '192.168.161.136', user: 'hongfu' },
284
+ { name: 'Ubuntu 26.04', host: 'VM_IP_PLACEHOLDER', user: 'VM_USER' },
285
+ { name: 'Kali 2026.2', host: 'VM_IP_PLACEHOLDER', user: 'kali' },
286
+ { name: 'Win10 Fresh', host: 'VM_IP_PLACEHOLDER', user: 'VM_USER2' },
287
+ { name: 'Win11 Fresh', host: 'VM_IP_PLACEHOLDER', user: 'VM_USER' },
288
+ { name: 'Omarchy 4.0.4', host: 'VM_IP_PLACEHOLDER', user: 'VM_USER' },
289
289
  ];
290
290
  const probe = 'uname -a 2>/dev/null || ver; echo ---; node -v 2>/dev/null || echo no-node; python3 --version 2>/dev/null || echo no-python3; which hdc ohpm hvigorw 2>/dev/null || echo no-hmony-tools';
291
291
  const lines = ['VM dev-environment check (SSH BatchMode, key ' + key + '):'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hmharness/domain-harmony",
3
- "version": "0.13.6",
3
+ "version": "0.13.8",
4
4
  "description": "hmharness HarmonyOS domain core: device, toolchain, build, and project lifecycle capabilities. HarmonyOS is the framework's native domain, not an add-on.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",