@midscene/web 0.8.7-beta-20241218070032.0 → 0.8.7
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/appium.js +4 -4
- package/dist/es/chrome-extension.js +4 -4
- package/dist/es/index.js +4 -4
- package/dist/es/midscene-playground.js +4 -4
- package/dist/es/playground.js +4 -4
- package/dist/es/playwright.js +4 -4
- package/dist/es/puppeteer.js +4 -4
- package/dist/lib/appium.js +4 -4
- package/dist/lib/chrome-extension.js +4 -4
- package/dist/lib/index.js +4 -4
- package/dist/lib/midscene-playground.js +4 -4
- package/dist/lib/playground.js +4 -4
- package/dist/lib/playwright.js +4 -4
- package/dist/lib/puppeteer.js +4 -4
- package/dist/types/appium.d.ts +3 -3
- package/dist/types/chrome-extension.d.ts +4 -4
- package/dist/types/debug.d.ts +2 -2
- package/dist/types/index.d.ts +3 -3
- package/dist/types/{page-8a79c6e3.d.ts → page-b9196527.d.ts} +2 -2
- package/dist/types/playground.d.ts +4 -4
- package/dist/types/playwright.d.ts +4 -4
- package/dist/types/puppeteer.d.ts +3 -3
- package/dist/types/{tasks-7945bd8c.d.ts → tasks-969c0e3e.d.ts} +3 -3
- package/dist/types/utils.d.ts +2 -2
- package/package.json +3 -3
package/dist/es/appium.js
CHANGED
|
@@ -1299,17 +1299,17 @@ var PageTaskExecutor = class {
|
|
|
1299
1299
|
}
|
|
1300
1300
|
};
|
|
1301
1301
|
tasks.push(taskActionError);
|
|
1302
|
-
} else if (plan2.type === "
|
|
1303
|
-
const
|
|
1302
|
+
} else if (plan2.type === "FalsyConditionStatement") {
|
|
1303
|
+
const taskActionFalsyConditionStatement = {
|
|
1304
1304
|
type: "Action",
|
|
1305
|
-
subType: "
|
|
1305
|
+
subType: "FalsyConditionStatement",
|
|
1306
1306
|
param: null,
|
|
1307
1307
|
thought: plan2.thought,
|
|
1308
1308
|
locate: plan2.locate,
|
|
1309
1309
|
executor: async () => {
|
|
1310
1310
|
}
|
|
1311
1311
|
};
|
|
1312
|
-
tasks.push(
|
|
1312
|
+
tasks.push(taskActionFalsyConditionStatement);
|
|
1313
1313
|
} else {
|
|
1314
1314
|
throw new Error(`Unknown or unsupported task type: ${plan2.type}`);
|
|
1315
1315
|
}
|
|
@@ -895,17 +895,17 @@ var PageTaskExecutor = class {
|
|
|
895
895
|
}
|
|
896
896
|
};
|
|
897
897
|
tasks.push(taskActionError);
|
|
898
|
-
} else if (plan2.type === "
|
|
899
|
-
const
|
|
898
|
+
} else if (plan2.type === "FalsyConditionStatement") {
|
|
899
|
+
const taskActionFalsyConditionStatement = {
|
|
900
900
|
type: "Action",
|
|
901
|
-
subType: "
|
|
901
|
+
subType: "FalsyConditionStatement",
|
|
902
902
|
param: null,
|
|
903
903
|
thought: plan2.thought,
|
|
904
904
|
locate: plan2.locate,
|
|
905
905
|
executor: async () => {
|
|
906
906
|
}
|
|
907
907
|
};
|
|
908
|
-
tasks.push(
|
|
908
|
+
tasks.push(taskActionFalsyConditionStatement);
|
|
909
909
|
} else {
|
|
910
910
|
throw new Error(`Unknown or unsupported task type: ${plan2.type}`);
|
|
911
911
|
}
|
package/dist/es/index.js
CHANGED
|
@@ -1307,17 +1307,17 @@ var PageTaskExecutor = class {
|
|
|
1307
1307
|
}
|
|
1308
1308
|
};
|
|
1309
1309
|
tasks.push(taskActionError);
|
|
1310
|
-
} else if (plan2.type === "
|
|
1311
|
-
const
|
|
1310
|
+
} else if (plan2.type === "FalsyConditionStatement") {
|
|
1311
|
+
const taskActionFalsyConditionStatement = {
|
|
1312
1312
|
type: "Action",
|
|
1313
|
-
subType: "
|
|
1313
|
+
subType: "FalsyConditionStatement",
|
|
1314
1314
|
param: null,
|
|
1315
1315
|
thought: plan2.thought,
|
|
1316
1316
|
locate: plan2.locate,
|
|
1317
1317
|
executor: async () => {
|
|
1318
1318
|
}
|
|
1319
1319
|
};
|
|
1320
|
-
tasks.push(
|
|
1320
|
+
tasks.push(taskActionFalsyConditionStatement);
|
|
1321
1321
|
} else {
|
|
1322
1322
|
throw new Error(`Unknown or unsupported task type: ${plan2.type}`);
|
|
1323
1323
|
}
|
|
@@ -1232,17 +1232,17 @@ var PageTaskExecutor = class {
|
|
|
1232
1232
|
}
|
|
1233
1233
|
};
|
|
1234
1234
|
tasks.push(taskActionError);
|
|
1235
|
-
} else if (plan2.type === "
|
|
1236
|
-
const
|
|
1235
|
+
} else if (plan2.type === "FalsyConditionStatement") {
|
|
1236
|
+
const taskActionFalsyConditionStatement = {
|
|
1237
1237
|
type: "Action",
|
|
1238
|
-
subType: "
|
|
1238
|
+
subType: "FalsyConditionStatement",
|
|
1239
1239
|
param: null,
|
|
1240
1240
|
thought: plan2.thought,
|
|
1241
1241
|
locate: plan2.locate,
|
|
1242
1242
|
executor: async () => {
|
|
1243
1243
|
}
|
|
1244
1244
|
};
|
|
1245
|
-
tasks.push(
|
|
1245
|
+
tasks.push(taskActionFalsyConditionStatement);
|
|
1246
1246
|
} else {
|
|
1247
1247
|
throw new Error(`Unknown or unsupported task type: ${plan2.type}`);
|
|
1248
1248
|
}
|
package/dist/es/playground.js
CHANGED
|
@@ -895,17 +895,17 @@ var PageTaskExecutor = class {
|
|
|
895
895
|
}
|
|
896
896
|
};
|
|
897
897
|
tasks.push(taskActionError);
|
|
898
|
-
} else if (plan2.type === "
|
|
899
|
-
const
|
|
898
|
+
} else if (plan2.type === "FalsyConditionStatement") {
|
|
899
|
+
const taskActionFalsyConditionStatement = {
|
|
900
900
|
type: "Action",
|
|
901
|
-
subType: "
|
|
901
|
+
subType: "FalsyConditionStatement",
|
|
902
902
|
param: null,
|
|
903
903
|
thought: plan2.thought,
|
|
904
904
|
locate: plan2.locate,
|
|
905
905
|
executor: async () => {
|
|
906
906
|
}
|
|
907
907
|
};
|
|
908
|
-
tasks.push(
|
|
908
|
+
tasks.push(taskActionFalsyConditionStatement);
|
|
909
909
|
} else {
|
|
910
910
|
throw new Error(`Unknown or unsupported task type: ${plan2.type}`);
|
|
911
911
|
}
|
package/dist/es/playwright.js
CHANGED
|
@@ -785,17 +785,17 @@ var PageTaskExecutor = class {
|
|
|
785
785
|
}
|
|
786
786
|
};
|
|
787
787
|
tasks.push(taskActionError);
|
|
788
|
-
} else if (plan2.type === "
|
|
789
|
-
const
|
|
788
|
+
} else if (plan2.type === "FalsyConditionStatement") {
|
|
789
|
+
const taskActionFalsyConditionStatement = {
|
|
790
790
|
type: "Action",
|
|
791
|
-
subType: "
|
|
791
|
+
subType: "FalsyConditionStatement",
|
|
792
792
|
param: null,
|
|
793
793
|
thought: plan2.thought,
|
|
794
794
|
locate: plan2.locate,
|
|
795
795
|
executor: async () => {
|
|
796
796
|
}
|
|
797
797
|
};
|
|
798
|
-
tasks.push(
|
|
798
|
+
tasks.push(taskActionFalsyConditionStatement);
|
|
799
799
|
} else {
|
|
800
800
|
throw new Error(`Unknown or unsupported task type: ${plan2.type}`);
|
|
801
801
|
}
|
package/dist/es/puppeteer.js
CHANGED
|
@@ -781,17 +781,17 @@ var PageTaskExecutor = class {
|
|
|
781
781
|
}
|
|
782
782
|
};
|
|
783
783
|
tasks.push(taskActionError);
|
|
784
|
-
} else if (plan2.type === "
|
|
785
|
-
const
|
|
784
|
+
} else if (plan2.type === "FalsyConditionStatement") {
|
|
785
|
+
const taskActionFalsyConditionStatement = {
|
|
786
786
|
type: "Action",
|
|
787
|
-
subType: "
|
|
787
|
+
subType: "FalsyConditionStatement",
|
|
788
788
|
param: null,
|
|
789
789
|
thought: plan2.thought,
|
|
790
790
|
locate: plan2.locate,
|
|
791
791
|
executor: async () => {
|
|
792
792
|
}
|
|
793
793
|
};
|
|
794
|
-
tasks.push(
|
|
794
|
+
tasks.push(taskActionFalsyConditionStatement);
|
|
795
795
|
} else {
|
|
796
796
|
throw new Error(`Unknown or unsupported task type: ${plan2.type}`);
|
|
797
797
|
}
|
package/dist/lib/appium.js
CHANGED
|
@@ -1299,17 +1299,17 @@ var PageTaskExecutor = class {
|
|
|
1299
1299
|
}
|
|
1300
1300
|
};
|
|
1301
1301
|
tasks.push(taskActionError);
|
|
1302
|
-
} else if (plan2.type === "
|
|
1303
|
-
const
|
|
1302
|
+
} else if (plan2.type === "FalsyConditionStatement") {
|
|
1303
|
+
const taskActionFalsyConditionStatement = {
|
|
1304
1304
|
type: "Action",
|
|
1305
|
-
subType: "
|
|
1305
|
+
subType: "FalsyConditionStatement",
|
|
1306
1306
|
param: null,
|
|
1307
1307
|
thought: plan2.thought,
|
|
1308
1308
|
locate: plan2.locate,
|
|
1309
1309
|
executor: async () => {
|
|
1310
1310
|
}
|
|
1311
1311
|
};
|
|
1312
|
-
tasks.push(
|
|
1312
|
+
tasks.push(taskActionFalsyConditionStatement);
|
|
1313
1313
|
} else {
|
|
1314
1314
|
throw new Error(`Unknown or unsupported task type: ${plan2.type}`);
|
|
1315
1315
|
}
|
|
@@ -895,17 +895,17 @@ var PageTaskExecutor = class {
|
|
|
895
895
|
}
|
|
896
896
|
};
|
|
897
897
|
tasks.push(taskActionError);
|
|
898
|
-
} else if (plan2.type === "
|
|
899
|
-
const
|
|
898
|
+
} else if (plan2.type === "FalsyConditionStatement") {
|
|
899
|
+
const taskActionFalsyConditionStatement = {
|
|
900
900
|
type: "Action",
|
|
901
|
-
subType: "
|
|
901
|
+
subType: "FalsyConditionStatement",
|
|
902
902
|
param: null,
|
|
903
903
|
thought: plan2.thought,
|
|
904
904
|
locate: plan2.locate,
|
|
905
905
|
executor: async () => {
|
|
906
906
|
}
|
|
907
907
|
};
|
|
908
|
-
tasks.push(
|
|
908
|
+
tasks.push(taskActionFalsyConditionStatement);
|
|
909
909
|
} else {
|
|
910
910
|
throw new Error(`Unknown or unsupported task type: ${plan2.type}`);
|
|
911
911
|
}
|
package/dist/lib/index.js
CHANGED
|
@@ -1307,17 +1307,17 @@ var PageTaskExecutor = class {
|
|
|
1307
1307
|
}
|
|
1308
1308
|
};
|
|
1309
1309
|
tasks.push(taskActionError);
|
|
1310
|
-
} else if (plan2.type === "
|
|
1311
|
-
const
|
|
1310
|
+
} else if (plan2.type === "FalsyConditionStatement") {
|
|
1311
|
+
const taskActionFalsyConditionStatement = {
|
|
1312
1312
|
type: "Action",
|
|
1313
|
-
subType: "
|
|
1313
|
+
subType: "FalsyConditionStatement",
|
|
1314
1314
|
param: null,
|
|
1315
1315
|
thought: plan2.thought,
|
|
1316
1316
|
locate: plan2.locate,
|
|
1317
1317
|
executor: async () => {
|
|
1318
1318
|
}
|
|
1319
1319
|
};
|
|
1320
|
-
tasks.push(
|
|
1320
|
+
tasks.push(taskActionFalsyConditionStatement);
|
|
1321
1321
|
} else {
|
|
1322
1322
|
throw new Error(`Unknown or unsupported task type: ${plan2.type}`);
|
|
1323
1323
|
}
|
|
@@ -1232,17 +1232,17 @@ var PageTaskExecutor = class {
|
|
|
1232
1232
|
}
|
|
1233
1233
|
};
|
|
1234
1234
|
tasks.push(taskActionError);
|
|
1235
|
-
} else if (plan2.type === "
|
|
1236
|
-
const
|
|
1235
|
+
} else if (plan2.type === "FalsyConditionStatement") {
|
|
1236
|
+
const taskActionFalsyConditionStatement = {
|
|
1237
1237
|
type: "Action",
|
|
1238
|
-
subType: "
|
|
1238
|
+
subType: "FalsyConditionStatement",
|
|
1239
1239
|
param: null,
|
|
1240
1240
|
thought: plan2.thought,
|
|
1241
1241
|
locate: plan2.locate,
|
|
1242
1242
|
executor: async () => {
|
|
1243
1243
|
}
|
|
1244
1244
|
};
|
|
1245
|
-
tasks.push(
|
|
1245
|
+
tasks.push(taskActionFalsyConditionStatement);
|
|
1246
1246
|
} else {
|
|
1247
1247
|
throw new Error(`Unknown or unsupported task type: ${plan2.type}`);
|
|
1248
1248
|
}
|
package/dist/lib/playground.js
CHANGED
|
@@ -895,17 +895,17 @@ var PageTaskExecutor = class {
|
|
|
895
895
|
}
|
|
896
896
|
};
|
|
897
897
|
tasks.push(taskActionError);
|
|
898
|
-
} else if (plan2.type === "
|
|
899
|
-
const
|
|
898
|
+
} else if (plan2.type === "FalsyConditionStatement") {
|
|
899
|
+
const taskActionFalsyConditionStatement = {
|
|
900
900
|
type: "Action",
|
|
901
|
-
subType: "
|
|
901
|
+
subType: "FalsyConditionStatement",
|
|
902
902
|
param: null,
|
|
903
903
|
thought: plan2.thought,
|
|
904
904
|
locate: plan2.locate,
|
|
905
905
|
executor: async () => {
|
|
906
906
|
}
|
|
907
907
|
};
|
|
908
|
-
tasks.push(
|
|
908
|
+
tasks.push(taskActionFalsyConditionStatement);
|
|
909
909
|
} else {
|
|
910
910
|
throw new Error(`Unknown or unsupported task type: ${plan2.type}`);
|
|
911
911
|
}
|
package/dist/lib/playwright.js
CHANGED
|
@@ -785,17 +785,17 @@ var PageTaskExecutor = class {
|
|
|
785
785
|
}
|
|
786
786
|
};
|
|
787
787
|
tasks.push(taskActionError);
|
|
788
|
-
} else if (plan2.type === "
|
|
789
|
-
const
|
|
788
|
+
} else if (plan2.type === "FalsyConditionStatement") {
|
|
789
|
+
const taskActionFalsyConditionStatement = {
|
|
790
790
|
type: "Action",
|
|
791
|
-
subType: "
|
|
791
|
+
subType: "FalsyConditionStatement",
|
|
792
792
|
param: null,
|
|
793
793
|
thought: plan2.thought,
|
|
794
794
|
locate: plan2.locate,
|
|
795
795
|
executor: async () => {
|
|
796
796
|
}
|
|
797
797
|
};
|
|
798
|
-
tasks.push(
|
|
798
|
+
tasks.push(taskActionFalsyConditionStatement);
|
|
799
799
|
} else {
|
|
800
800
|
throw new Error(`Unknown or unsupported task type: ${plan2.type}`);
|
|
801
801
|
}
|
package/dist/lib/puppeteer.js
CHANGED
|
@@ -781,17 +781,17 @@ var PageTaskExecutor = class {
|
|
|
781
781
|
}
|
|
782
782
|
};
|
|
783
783
|
tasks.push(taskActionError);
|
|
784
|
-
} else if (plan2.type === "
|
|
785
|
-
const
|
|
784
|
+
} else if (plan2.type === "FalsyConditionStatement") {
|
|
785
|
+
const taskActionFalsyConditionStatement = {
|
|
786
786
|
type: "Action",
|
|
787
|
-
subType: "
|
|
787
|
+
subType: "FalsyConditionStatement",
|
|
788
788
|
param: null,
|
|
789
789
|
thought: plan2.thought,
|
|
790
790
|
locate: plan2.locate,
|
|
791
791
|
executor: async () => {
|
|
792
792
|
}
|
|
793
793
|
};
|
|
794
|
-
tasks.push(
|
|
794
|
+
tasks.push(taskActionFalsyConditionStatement);
|
|
795
795
|
} else {
|
|
796
796
|
throw new Error(`Unknown or unsupported task type: ${plan2.type}`);
|
|
797
797
|
}
|
package/dist/types/appium.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { P as AppiumAgent } from './tasks-
|
|
2
|
-
export { P as AppiumPage } from './page-
|
|
3
|
-
import '@midscene/core/dist/lib/types/types-
|
|
1
|
+
export { P as AppiumAgent } from './tasks-969c0e3e.js';
|
|
2
|
+
export { P as AppiumPage } from './page-b9196527.js';
|
|
3
|
+
import '@midscene/core/dist/lib/types/types-55182ae1';
|
|
4
4
|
import '@midscene/core';
|
|
5
5
|
import '@midscene/shared/fs';
|
|
6
6
|
import 'playwright';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { C as ChromeExtensionProxyPage } from './page-
|
|
2
|
-
export { b as ERROR_CODE_NOT_IMPLEMENTED_AS_DESIGNED } from './page-
|
|
3
|
-
import { P as PageAgent } from './tasks-
|
|
1
|
+
import { C as ChromeExtensionProxyPage } from './page-b9196527.js';
|
|
2
|
+
export { b as ERROR_CODE_NOT_IMPLEMENTED_AS_DESIGNED } from './page-b9196527.js';
|
|
3
|
+
import { P as PageAgent } from './tasks-969c0e3e.js';
|
|
4
4
|
import 'playwright';
|
|
5
5
|
import '@midscene/core/.';
|
|
6
6
|
import 'puppeteer';
|
|
7
7
|
import '@midscene/shared/constants';
|
|
8
8
|
import '@midscene/core';
|
|
9
|
-
import '@midscene/core/dist/lib/types/types-
|
|
9
|
+
import '@midscene/core/dist/lib/types/types-55182ae1';
|
|
10
10
|
import 'webdriverio';
|
|
11
11
|
import '@midscene/shared/fs';
|
|
12
12
|
|
package/dist/types/debug.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { writeFileSync } from 'node:fs';
|
|
2
|
-
import { W as WebPage, E as ElementInfo } from './page-
|
|
2
|
+
import { W as WebPage, E as ElementInfo } from './page-b9196527.js';
|
|
3
3
|
import 'playwright';
|
|
4
4
|
import '@midscene/core/.';
|
|
5
5
|
import 'puppeteer';
|
|
6
6
|
import '@midscene/shared/constants';
|
|
7
7
|
import '@midscene/core';
|
|
8
|
-
import '@midscene/core/dist/lib/types/types-
|
|
8
|
+
import '@midscene/core/dist/lib/types/types-55182ae1';
|
|
9
9
|
import 'webdriverio';
|
|
10
10
|
|
|
11
11
|
declare function generateExtractData(page: WebPage, targetDir: string, saveImgType?: {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { PlayWrightAiFixtureType, PlaywrightAiFixture } from './playwright.js';
|
|
2
|
-
export { P as AppiumAgent, P as PlaywrightAgent } from './tasks-
|
|
3
|
-
export { P as AppiumPage } from './page-
|
|
2
|
+
export { P as AppiumAgent, P as PlaywrightAgent } from './tasks-969c0e3e.js';
|
|
3
|
+
export { P as AppiumPage } from './page-b9196527.js';
|
|
4
4
|
export { StaticPageAgent } from './playground.js';
|
|
5
5
|
export { PuppeteerAgent } from './puppeteer.js';
|
|
6
6
|
export { generateExtractData } from './debug.js';
|
|
@@ -8,7 +8,7 @@ import '@midscene/core/.';
|
|
|
8
8
|
import '@playwright/test';
|
|
9
9
|
import 'playwright';
|
|
10
10
|
import '@midscene/core';
|
|
11
|
-
import '@midscene/core/dist/lib/types/types-
|
|
11
|
+
import '@midscene/core/dist/lib/types/types-55182ae1';
|
|
12
12
|
import '@midscene/shared/fs';
|
|
13
13
|
import 'puppeteer';
|
|
14
14
|
import '@midscene/shared/constants';
|
|
@@ -3,7 +3,7 @@ import { Size } from '@midscene/core/.';
|
|
|
3
3
|
import { KeyInput, Page as Page$2 } from 'puppeteer';
|
|
4
4
|
import { NodeType } from '@midscene/shared/constants';
|
|
5
5
|
import { BaseElement, Rect, UIContext, PlaywrightParserOpt } from '@midscene/core';
|
|
6
|
-
import * as
|
|
6
|
+
import * as _midscene_core_dist_lib_types_types_55182ae1 from '@midscene/core/dist/lib/types/types-55182ae1';
|
|
7
7
|
import { Browser } from 'webdriverio';
|
|
8
8
|
|
|
9
9
|
declare class WebElementInfo implements BaseElement {
|
|
@@ -182,7 +182,7 @@ declare class StaticPage implements AbstractPage {
|
|
|
182
182
|
private uiContext;
|
|
183
183
|
constructor(uiContext: WebUIContext);
|
|
184
184
|
getElementInfos(): Promise<any>;
|
|
185
|
-
size(): Promise<
|
|
185
|
+
size(): Promise<_midscene_core_dist_lib_types_types_55182ae1.S>;
|
|
186
186
|
screenshotBase64(): Promise<string>;
|
|
187
187
|
url(): Promise<string>;
|
|
188
188
|
scrollUntilTop(): Promise<any>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { S as StaticPage } from './page-
|
|
2
|
-
export { b as ERROR_CODE_NOT_IMPLEMENTED_AS_DESIGNED } from './page-
|
|
3
|
-
import { P as PageAgent } from './tasks-
|
|
1
|
+
import { S as StaticPage } from './page-b9196527.js';
|
|
2
|
+
export { b as ERROR_CODE_NOT_IMPLEMENTED_AS_DESIGNED } from './page-b9196527.js';
|
|
3
|
+
import { P as PageAgent } from './tasks-969c0e3e.js';
|
|
4
4
|
import 'playwright';
|
|
5
5
|
import '@midscene/core/.';
|
|
6
6
|
import 'puppeteer';
|
|
7
7
|
import '@midscene/shared/constants';
|
|
8
8
|
import '@midscene/core';
|
|
9
|
-
import '@midscene/core/dist/lib/types/types-
|
|
9
|
+
import '@midscene/core/dist/lib/types/types-55182ae1';
|
|
10
10
|
import 'webdriverio';
|
|
11
11
|
import '@midscene/shared/fs';
|
|
12
12
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { AgentWaitForOpt } from '@midscene/core/.';
|
|
2
2
|
import { TestInfo } from '@playwright/test';
|
|
3
3
|
import { Page } from 'playwright';
|
|
4
|
-
import { b as PageTaskExecutor } from './tasks-
|
|
5
|
-
export { P as PlaywrightAgent } from './tasks-
|
|
6
|
-
export { c as PlaywrightWebPage } from './page-
|
|
4
|
+
import { b as PageTaskExecutor } from './tasks-969c0e3e.js';
|
|
5
|
+
export { P as PlaywrightAgent } from './tasks-969c0e3e.js';
|
|
6
|
+
export { c as PlaywrightWebPage } from './page-b9196527.js';
|
|
7
7
|
export { overrideAIConfig } from '@midscene/core';
|
|
8
|
-
import '@midscene/core/dist/lib/types/types-
|
|
8
|
+
import '@midscene/core/dist/lib/types/types-55182ae1';
|
|
9
9
|
import '@midscene/shared/fs';
|
|
10
10
|
import 'puppeteer';
|
|
11
11
|
import '@midscene/shared/constants';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { P as PageAgent, a as PageAgentOpt } from './tasks-
|
|
1
|
+
import { P as PageAgent, a as PageAgentOpt } from './tasks-969c0e3e.js';
|
|
2
2
|
import { Page } from 'puppeteer';
|
|
3
|
-
export { a as PuppeteerWebPage } from './page-
|
|
3
|
+
export { a as PuppeteerWebPage } from './page-b9196527.js';
|
|
4
4
|
export { overrideAIConfig } from '@midscene/core';
|
|
5
|
-
import '@midscene/core/dist/lib/types/types-
|
|
5
|
+
import '@midscene/core/dist/lib/types/types-55182ae1';
|
|
6
6
|
import '@midscene/shared/fs';
|
|
7
7
|
import 'playwright';
|
|
8
8
|
import '@midscene/core/.';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { d as WebUIContext, W as WebPage, e as WebElementInfo } from './page-
|
|
1
|
+
import * as _midscene_core_dist_lib_types_types_55182ae1 from '@midscene/core/dist/lib/types/types-55182ae1';
|
|
2
|
+
import { d as WebUIContext, W as WebPage, e as WebElementInfo } from './page-b9196527.js';
|
|
3
3
|
import { PlanningAIResponse, AIElementIdResponse, Insight, GroupedActionDump, InsightAction, ExecutionDump, ExecutionTaskProgressOptions, AgentAssertOpt, AgentWaitForOpt, InsightExtractParam, InsightAssertionResponse, PlanningActionParamWaitFor, Executor } from '@midscene/core';
|
|
4
4
|
import { getRunningPkgInfo } from '@midscene/shared/fs';
|
|
5
5
|
|
|
@@ -107,7 +107,7 @@ declare class PageAgent {
|
|
|
107
107
|
writeOutActionDumps(): void;
|
|
108
108
|
aiAction(taskPrompt: string, options?: ExecutionTaskProgressOptions): Promise<void>;
|
|
109
109
|
aiQuery(demand: any): Promise<any>;
|
|
110
|
-
aiAssert(assertion: string, msg?: string, opt?: AgentAssertOpt): Promise<
|
|
110
|
+
aiAssert(assertion: string, msg?: string, opt?: AgentAssertOpt): Promise<_midscene_core_dist_lib_types_types_55182ae1.o | undefined>;
|
|
111
111
|
aiWaitFor(assertion: string, opt?: AgentWaitForOpt): Promise<void>;
|
|
112
112
|
ai(taskPrompt: string, type?: string): Promise<any>;
|
|
113
113
|
destroy(): Promise<void>;
|
package/dist/types/utils.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '@midscene/core';
|
|
2
|
-
export { b as ERROR_CODE_NOT_IMPLEMENTED_AS_DESIGNED, d as WebUIContext, i as generateCacheId, h as getCurrentExecutionFile, g as getExtraReturnLogic, p as parseContextFromWebPage, f as printReportMsg, r as reportFileName } from './page-
|
|
2
|
+
export { b as ERROR_CODE_NOT_IMPLEMENTED_AS_DESIGNED, d as WebUIContext, i as generateCacheId, h as getCurrentExecutionFile, g as getExtraReturnLogic, p as parseContextFromWebPage, f as printReportMsg, r as reportFileName } from './page-b9196527.js';
|
|
3
3
|
import 'playwright';
|
|
4
4
|
import '@midscene/core/.';
|
|
5
5
|
import 'puppeteer';
|
|
6
6
|
import '@midscene/shared/constants';
|
|
7
|
-
import '@midscene/core/dist/lib/types/types-
|
|
7
|
+
import '@midscene/core/dist/lib/types/types-55182ae1';
|
|
8
8
|
import 'webdriverio';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midscene/web",
|
|
3
3
|
"description": "An AI-powered automation SDK can control the page, perform assertions, and extract data in JSON format using natural language. See https://midscenejs.com/ for details.",
|
|
4
|
-
"version": "0.8.7
|
|
4
|
+
"version": "0.8.7",
|
|
5
5
|
"repository": "https://github.com/web-infra-dev/midscene",
|
|
6
6
|
"homepage": "https://midscenejs.com/",
|
|
7
7
|
"jsnext:source": "./src/index.ts",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"express": "4.21.1",
|
|
73
73
|
"inquirer": "10.1.5",
|
|
74
74
|
"openai": "4.57.1",
|
|
75
|
-
"@midscene/shared": "0.8.7
|
|
76
|
-
"@midscene/core": "0.8.7
|
|
75
|
+
"@midscene/shared": "0.8.7",
|
|
76
|
+
"@midscene/core": "0.8.7"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@modern-js/module-tools": "2.60.6",
|