@midscene/harmony 1.12.6-beta-20260910093036.0 → 1.12.6
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/bin.mjs +1 -1
- package/dist/es/cli.mjs +2 -2
- package/dist/es/index.mjs +1 -1
- package/dist/es/test-runner.mjs +1 -1
- package/dist/lib/bin.js +2 -2
- package/dist/lib/cli.js +3 -3
- package/dist/lib/index.js +2 -2
- package/dist/lib/test-runner.js +2 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types/test-runner.d.ts +1 -1
- package/package.json +5 -5
- package/static/index.html +1 -1
- package/static/static/js/{index.f9140de2.js → index.b77f8513.js} +84 -84
- package/static/static/js/index.b77f8513.js.map +1 -0
- package/static/static/js/index.f9140de2.js.map +0 -1
- /package/static/static/js/{index.f9140de2.js.LICENSE.txt → index.b77f8513.js.LICENSE.txt} +0 -0
package/dist/es/bin.mjs
CHANGED
|
@@ -14,7 +14,7 @@ import { getTmpFile, sleep } from "@midscene/core/utils";
|
|
|
14
14
|
import { createImgBase64ByFormat } from "@midscene/shared/img";
|
|
15
15
|
import { execFile } from "node:child_process";
|
|
16
16
|
import { promisify } from "node:util";
|
|
17
|
-
import { createAgentTestRunnerNodeDefinition } from "@midscene/core/agent/test
|
|
17
|
+
import { createAgentTestRunnerNodeDefinition } from "@midscene/core/agent/test";
|
|
18
18
|
import { z as v4_z } from "zod/v4";
|
|
19
19
|
const defaultAppNameMapping = {
|
|
20
20
|
设置: 'com.huawei.hmos.settings',
|
package/dist/es/cli.mjs
CHANGED
|
@@ -12,7 +12,7 @@ import { getTmpFile, sleep } from "@midscene/core/utils";
|
|
|
12
12
|
import { createImgBase64ByFormat } from "@midscene/shared/img";
|
|
13
13
|
import { execFile } from "node:child_process";
|
|
14
14
|
import { promisify } from "node:util";
|
|
15
|
-
import { createAgentTestRunnerNodeDefinition } from "@midscene/core/agent/test
|
|
15
|
+
import { createAgentTestRunnerNodeDefinition } from "@midscene/core/agent/test";
|
|
16
16
|
import { z as v4_z } from "zod/v4";
|
|
17
17
|
const defaultAppNameMapping = {
|
|
18
18
|
设置: 'com.huawei.hmos.settings',
|
|
@@ -1292,7 +1292,7 @@ class HarmonyMidsceneTools extends BaseMidsceneTools {
|
|
|
1292
1292
|
const tools = new HarmonyMidsceneTools();
|
|
1293
1293
|
runToolsCLI(tools, 'midscene-harmony', {
|
|
1294
1294
|
stripPrefix: 'harmony_',
|
|
1295
|
-
version: "1.12.6
|
|
1295
|
+
version: "1.12.6",
|
|
1296
1296
|
extraCommands: createReportCliCommands()
|
|
1297
1297
|
}).catch((e)=>{
|
|
1298
1298
|
process.exit(reportCLIError(e));
|
package/dist/es/index.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import { mergeAndNormalizeAppNameMapping, normalizeForComparison, repeat } from
|
|
|
9
9
|
import { execFile } from "node:child_process";
|
|
10
10
|
import { promisify } from "node:util";
|
|
11
11
|
import { Agent } from "@midscene/core/agent";
|
|
12
|
-
import { createAgentTestRunnerNodeDefinition } from "@midscene/core/agent/test
|
|
12
|
+
import { createAgentTestRunnerNodeDefinition } from "@midscene/core/agent/test";
|
|
13
13
|
import { z as v4_z } from "zod/v4";
|
|
14
14
|
import { agentBehaviorInitArgShape, extractAgentBehaviorInitArgs, getAgentInitArgsSignature, shouldRebuildAgentForInitArgs } from "@midscene/shared/agent-tools/agent-behavior-init-args";
|
|
15
15
|
import { BaseMidsceneTools } from "@midscene/shared/agent-tools/base-tools";
|
package/dist/es/test-runner.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createAgentTestRunnerNodeDefinition } from "@midscene/core/agent/test
|
|
1
|
+
import { createAgentTestRunnerNodeDefinition } from "@midscene/core/agent/test";
|
|
2
2
|
import { z } from "zod/v4";
|
|
3
3
|
const defineHarmonyAgentNode = createAgentTestRunnerNodeDefinition('a Harmony Agent');
|
|
4
4
|
const nonBlankText = (description)=>z.string().regex(/\S/, 'value must contain a non-whitespace character').describe(description);
|
package/dist/lib/bin.js
CHANGED
|
@@ -4,9 +4,9 @@ var __webpack_modules__ = {
|
|
|
4
4
|
__webpack_require__.d(__webpack_exports__, {
|
|
5
5
|
harmonyAgentTestRunnerNodeDefinitions: ()=>harmonyAgentTestRunnerNodeDefinitions
|
|
6
6
|
});
|
|
7
|
-
const
|
|
7
|
+
const test_namespaceObject = require("@midscene/core/agent/test");
|
|
8
8
|
const v4_namespaceObject = require("zod/v4");
|
|
9
|
-
const defineHarmonyAgentNode = (0,
|
|
9
|
+
const defineHarmonyAgentNode = (0, test_namespaceObject.createAgentTestRunnerNodeDefinition)('a Harmony Agent');
|
|
10
10
|
const nonBlankText = (description)=>v4_namespaceObject.z.string().regex(/\S/, 'value must contain a non-whitespace character').describe(description);
|
|
11
11
|
const launchInputSchema = v4_namespaceObject.z.strictObject({
|
|
12
12
|
uri: nonBlankText('The app, URL, URI, bundle name, or bundle/Ability target to launch.')
|
package/dist/lib/cli.js
CHANGED
|
@@ -4,9 +4,9 @@ var __webpack_modules__ = {
|
|
|
4
4
|
__webpack_require__.d(__webpack_exports__, {
|
|
5
5
|
harmonyAgentTestRunnerNodeDefinitions: ()=>harmonyAgentTestRunnerNodeDefinitions
|
|
6
6
|
});
|
|
7
|
-
const
|
|
7
|
+
const test_namespaceObject = require("@midscene/core/agent/test");
|
|
8
8
|
const v4_namespaceObject = require("zod/v4");
|
|
9
|
-
const defineHarmonyAgentNode = (0,
|
|
9
|
+
const defineHarmonyAgentNode = (0, test_namespaceObject.createAgentTestRunnerNodeDefinition)('a Harmony Agent');
|
|
10
10
|
const nonBlankText = (description)=>v4_namespaceObject.z.string().regex(/\S/, 'value must contain a non-whitespace character').describe(description);
|
|
11
11
|
const launchInputSchema = v4_namespaceObject.z.strictObject({
|
|
12
12
|
uri: nonBlankText('The app, URL, URI, bundle name, or bundle/Ability target to launch.')
|
|
@@ -1335,7 +1335,7 @@ var __webpack_exports__ = {};
|
|
|
1335
1335
|
const tools = new HarmonyMidsceneTools();
|
|
1336
1336
|
(0, cli_namespaceObject.runToolsCLI)(tools, 'midscene-harmony', {
|
|
1337
1337
|
stripPrefix: 'harmony_',
|
|
1338
|
-
version: "1.12.6
|
|
1338
|
+
version: "1.12.6",
|
|
1339
1339
|
extraCommands: (0, core_namespaceObject.createReportCliCommands)()
|
|
1340
1340
|
}).catch((e)=>{
|
|
1341
1341
|
process.exit((0, cli_namespaceObject.reportCLIError)(e));
|
package/dist/lib/index.js
CHANGED
|
@@ -7,9 +7,9 @@ var __webpack_modules__ = {
|
|
|
7
7
|
terminateInputSchema: ()=>terminateInputSchema,
|
|
8
8
|
launchInputSchema: ()=>launchInputSchema
|
|
9
9
|
});
|
|
10
|
-
const
|
|
10
|
+
const test_namespaceObject = require("@midscene/core/agent/test");
|
|
11
11
|
const v4_namespaceObject = require("zod/v4");
|
|
12
|
-
const defineHarmonyAgentNode = (0,
|
|
12
|
+
const defineHarmonyAgentNode = (0, test_namespaceObject.createAgentTestRunnerNodeDefinition)('a Harmony Agent');
|
|
13
13
|
const nonBlankText = (description)=>v4_namespaceObject.z.string().regex(/\S/, 'value must contain a non-whitespace character').describe(description);
|
|
14
14
|
const launchInputSchema = v4_namespaceObject.z.strictObject({
|
|
15
15
|
uri: nonBlankText('The app, URL, URI, bundle name, or bundle/Ability target to launch.')
|
package/dist/lib/test-runner.js
CHANGED
|
@@ -29,9 +29,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29
29
|
terminateInputSchema: ()=>terminateInputSchema,
|
|
30
30
|
launchInputSchema: ()=>launchInputSchema
|
|
31
31
|
});
|
|
32
|
-
const
|
|
32
|
+
const test_namespaceObject = require("@midscene/core/agent/test");
|
|
33
33
|
const v4_namespaceObject = require("zod/v4");
|
|
34
|
-
const defineHarmonyAgentNode = (0,
|
|
34
|
+
const defineHarmonyAgentNode = (0, test_namespaceObject.createAgentTestRunnerNodeDefinition)('a Harmony Agent');
|
|
35
35
|
const nonBlankText = (description)=>v4_namespaceObject.z.string().regex(/\S/, 'value must contain a non-whitespace character').describe(description);
|
|
36
36
|
const launchInputSchema = v4_namespaceObject.z.strictObject({
|
|
37
37
|
uri: nonBlankText('The app, URL, URI, bundle name, or bundle/Ability target to launch.')
|
package/dist/types/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { Agent } from '@midscene/core/agent';
|
|
|
5
5
|
import { AgentBehaviorInitArgs } from '@midscene/shared/agent-tools/agent-behavior-init-args';
|
|
6
6
|
import { AgentOpt } from '@midscene/core/agent';
|
|
7
7
|
import { AgentTestRunnerNodeDefinition } from '@midscene/core/agent';
|
|
8
|
-
import { AgentTestRunnerNodeDefinition as AgentTestRunnerNodeDefinition_2 } from '@midscene/core/agent/test
|
|
8
|
+
import { AgentTestRunnerNodeDefinition as AgentTestRunnerNodeDefinition_2 } from '@midscene/core/agent/test';
|
|
9
9
|
import { BaseMidsceneTools } from '@midscene/shared/agent-tools/base-tools';
|
|
10
10
|
import { DeviceAction } from '@midscene/core';
|
|
11
11
|
import type { ElementInfo } from '@midscene/shared/extractor';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AgentTestRunnerNodeDefinition } from '@midscene/core/agent/test
|
|
1
|
+
import { AgentTestRunnerNodeDefinition } from '@midscene/core/agent/test';
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
3
|
|
|
4
4
|
export declare const harmonyAgentTestRunnerNodeDefinitions: readonly AgentTestRunnerNodeDefinition[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midscene/harmony",
|
|
3
|
-
"version": "1.12.6
|
|
3
|
+
"version": "1.12.6",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/web-infra-dev/midscene.git",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"import": "./dist/es/index.mjs",
|
|
32
32
|
"require": "./dist/lib/index.js"
|
|
33
33
|
},
|
|
34
|
-
"./test
|
|
34
|
+
"./test": {
|
|
35
35
|
"types": "./dist/types/test-runner.d.ts",
|
|
36
36
|
"import": "./dist/es/test-runner.mjs",
|
|
37
37
|
"require": "./dist/lib/test-runner.js"
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
"@inquirer/prompts": "^7.8.6",
|
|
48
48
|
"open": "10.1.0",
|
|
49
49
|
"zod": "^3.25.1",
|
|
50
|
-
"@midscene/playground": "1.12.6
|
|
51
|
-
"@midscene/shared": "1.12.6
|
|
52
|
-
"@midscene/core": "1.12.6
|
|
50
|
+
"@midscene/playground": "1.12.6",
|
|
51
|
+
"@midscene/shared": "1.12.6",
|
|
52
|
+
"@midscene/core": "1.12.6"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@rslib/core": "^0.18.3",
|
package/static/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!doctype html><html><head><link rel="icon" href="/favicon.ico"><title>Midscene Playground</title><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><script defer src="/static/js/lib-react.8bb5dc6e.js"></script><script defer src="/static/js/415.bee53531.js"></script><script defer src="/static/js/index.
|
|
1
|
+
<!doctype html><html><head><link rel="icon" href="/favicon.ico"><title>Midscene Playground</title><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><script defer src="/static/js/lib-react.8bb5dc6e.js"></script><script defer src="/static/js/415.bee53531.js"></script><script defer src="/static/js/index.b77f8513.js"></script><link href="/static/css/index.67caac18.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
|