@midscene/cli 1.8.10-beta-20260603081456.0 → 1.8.11
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 +1 -18
- package/dist/es/framework/index.mjs.map +1 -1
- package/dist/es/index.mjs +4 -2
- package/dist/es/index.mjs.map +1 -1
- package/dist/lib/framework/index.js +1 -18
- package/dist/lib/framework/index.js.map +1 -1
- package/dist/lib/index.js +4 -2
- package/dist/lib/index.js.map +1 -1
- package/package.json +7 -8
|
@@ -3321,23 +3321,6 @@ 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
|
-
}
|
|
3341
3324
|
if (void 0 !== clonedYamlScript.computer) {
|
|
3342
3325
|
const computerTarget = clonedYamlScript.computer;
|
|
3343
3326
|
const { agentForComputer } = await import("@midscene/computer");
|
|
@@ -3380,7 +3363,7 @@ defineYamlBatchTest(${JSON.stringify(testOptions, null, 2)});
|
|
|
3380
3363
|
freeFn
|
|
3381
3364
|
};
|
|
3382
3365
|
}
|
|
3383
|
-
throw new Error('No valid interface configuration found in the yaml script, should be either "web", "android", "ios", "
|
|
3366
|
+
throw new Error('No valid interface configuration found in the yaml script, should be either "web", "android", "ios", "computer", or "interface"');
|
|
3384
3367
|
}, void 0, file);
|
|
3385
3368
|
return player;
|
|
3386
3369
|
}
|