@midscene/cli 1.8.8 → 1.8.10-beta-20260603081456.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/dist/es/framework/index.mjs +18 -1
- package/dist/es/framework/index.mjs.map +1 -1
- package/dist/es/index.mjs +2 -4
- package/dist/es/index.mjs.map +1 -1
- package/dist/lib/framework/index.js +18 -1
- package/dist/lib/framework/index.js.map +1 -1
- package/dist/lib/index.js +2 -4
- package/dist/lib/index.js.map +1 -1
- package/package.json +8 -7
|
@@ -3321,6 +3321,23 @@ defineYamlBatchTest(${JSON.stringify(testOptions, null, 2)});
|
|
|
3321
3321
|
freeFn
|
|
3322
3322
|
};
|
|
3323
3323
|
}
|
|
3324
|
+
if (void 0 !== clonedYamlScript.harmony) {
|
|
3325
|
+
const harmonyTarget = clonedYamlScript.harmony;
|
|
3326
|
+
const { agentFromHdcDevice } = await import("@midscene/harmony");
|
|
3327
|
+
const agent = await agentFromHdcDevice(harmonyTarget?.deviceId, {
|
|
3328
|
+
...harmonyTarget,
|
|
3329
|
+
...buildAgentOptions(clonedYamlScript.agent, preference.reportFileName, fileName)
|
|
3330
|
+
});
|
|
3331
|
+
if (harmonyTarget?.launch) await agent.launch(harmonyTarget.launch);
|
|
3332
|
+
freeFn.push({
|
|
3333
|
+
name: 'destroy_harmony_agent',
|
|
3334
|
+
fn: ()=>agent.destroy()
|
|
3335
|
+
});
|
|
3336
|
+
return {
|
|
3337
|
+
agent,
|
|
3338
|
+
freeFn
|
|
3339
|
+
};
|
|
3340
|
+
}
|
|
3324
3341
|
if (void 0 !== clonedYamlScript.computer) {
|
|
3325
3342
|
const computerTarget = clonedYamlScript.computer;
|
|
3326
3343
|
const { agentForComputer } = await import("@midscene/computer");
|
|
@@ -3363,7 +3380,7 @@ defineYamlBatchTest(${JSON.stringify(testOptions, null, 2)});
|
|
|
3363
3380
|
freeFn
|
|
3364
3381
|
};
|
|
3365
3382
|
}
|
|
3366
|
-
throw new Error('No valid interface configuration found in the yaml script, should be either "web", "android", "ios", "computer", or "interface"');
|
|
3383
|
+
throw new Error('No valid interface configuration found in the yaml script, should be either "web", "android", "ios", "harmony", "computer", or "interface"');
|
|
3367
3384
|
}, void 0, file);
|
|
3368
3385
|
return player;
|
|
3369
3386
|
}
|