@midscene/web 0.5.2 → 0.6.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/appium.js CHANGED
@@ -871,8 +871,9 @@ import {
871
871
 
872
872
  // src/common/tasks.ts
873
873
  import assert2 from "assert";
874
- import Insight, {
874
+ import {
875
875
  Executor,
876
+ Insight,
876
877
  plan
877
878
  } from "@midscene/core";
878
879
  import { sleep } from "@midscene/core/utils";
package/dist/es/index.js CHANGED
@@ -874,8 +874,9 @@ import {
874
874
 
875
875
  // src/common/tasks.ts
876
876
  import assert2 from "assert";
877
- import Insight, {
877
+ import {
878
878
  Executor,
879
+ Insight,
879
880
  plan
880
881
  } from "@midscene/core";
881
882
  import { sleep } from "@midscene/core/utils";
@@ -348,8 +348,9 @@ import {
348
348
 
349
349
  // src/common/tasks.ts
350
350
  import assert2 from "assert";
351
- import Insight, {
351
+ import {
352
352
  Executor,
353
+ Insight,
353
354
  plan
354
355
  } from "@midscene/core";
355
356
  import { sleep } from "@midscene/core/utils";
@@ -345,8 +345,9 @@ import {
345
345
 
346
346
  // src/common/tasks.ts
347
347
  import assert2 from "assert";
348
- import Insight, {
348
+ import {
349
349
  Executor,
350
+ Insight,
350
351
  plan
351
352
  } from "@midscene/core";
352
353
  import { sleep } from "@midscene/core/utils";
@@ -874,7 +874,7 @@ var import_utils5 = require("@midscene/core/utils");
874
874
 
875
875
  // src/common/tasks.ts
876
876
  var import_node_assert2 = __toESM(require("assert"));
877
- var import_core = __toESM(require("@midscene/core"));
877
+ var import_core = require("@midscene/core");
878
878
  var import_utils3 = require("@midscene/core/utils");
879
879
  var import_img3 = require("@midscene/shared/img");
880
880
 
@@ -1135,7 +1135,7 @@ var TaskCache = class {
1135
1135
  var PageTaskExecutor = class {
1136
1136
  constructor(page, opts) {
1137
1137
  this.page = page;
1138
- this.insight = new import_core.default(async () => {
1138
+ this.insight = new import_core.Insight(async () => {
1139
1139
  return await parseContextFromWebPage(page);
1140
1140
  });
1141
1141
  this.taskCache = new TaskCache({
package/dist/lib/index.js CHANGED
@@ -881,7 +881,7 @@ var import_utils5 = require("@midscene/core/utils");
881
881
 
882
882
  // src/common/tasks.ts
883
883
  var import_node_assert2 = __toESM(require("assert"));
884
- var import_core = __toESM(require("@midscene/core"));
884
+ var import_core = require("@midscene/core");
885
885
  var import_utils3 = require("@midscene/core/utils");
886
886
  var import_img3 = require("@midscene/shared/img");
887
887
 
@@ -1149,7 +1149,7 @@ var TaskCache = class {
1149
1149
  var PageTaskExecutor = class {
1150
1150
  constructor(page, opts) {
1151
1151
  this.page = page;
1152
- this.insight = new import_core.default(async () => {
1152
+ this.insight = new import_core.Insight(async () => {
1153
1153
  return await parseContextFromWebPage(page);
1154
1154
  });
1155
1155
  this.taskCache = new TaskCache({
@@ -359,7 +359,7 @@ var import_utils5 = require("@midscene/core/utils");
359
359
 
360
360
  // src/common/tasks.ts
361
361
  var import_node_assert2 = __toESM(require("assert"));
362
- var import_core = __toESM(require("@midscene/core"));
362
+ var import_core = require("@midscene/core");
363
363
  var import_utils3 = require("@midscene/core/utils");
364
364
  var import_img3 = require("@midscene/shared/img");
365
365
 
@@ -627,7 +627,7 @@ var TaskCache = class {
627
627
  var PageTaskExecutor = class {
628
628
  constructor(page, opts) {
629
629
  this.page = page;
630
- this.insight = new import_core.default(async () => {
630
+ this.insight = new import_core.Insight(async () => {
631
631
  return await parseContextFromWebPage(page);
632
632
  });
633
633
  this.taskCache = new TaskCache({
@@ -355,7 +355,7 @@ var import_utils5 = require("@midscene/core/utils");
355
355
 
356
356
  // src/common/tasks.ts
357
357
  var import_node_assert2 = __toESM(require("assert"));
358
- var import_core = __toESM(require("@midscene/core"));
358
+ var import_core = require("@midscene/core");
359
359
  var import_utils3 = require("@midscene/core/utils");
360
360
  var import_img3 = require("@midscene/shared/img");
361
361
 
@@ -623,7 +623,7 @@ var TaskCache = class {
623
623
  var PageTaskExecutor = class {
624
624
  constructor(page, opts) {
625
625
  this.page = page;
626
- this.insight = new import_core.default(async () => {
626
+ this.insight = new import_core.Insight(async () => {
627
627
  return await parseContextFromWebPage(page);
628
628
  });
629
629
  this.taskCache = new TaskCache({
@@ -1,4 +1,4 @@
1
- export { P as AppiumAgent } from './tasks-9af2ee2d.js';
1
+ export { P as AppiumAgent } from './tasks-997761d4.js';
2
2
  export { P as AppiumPage } from './page-ccbba1d9.js';
3
3
  import '@midscene/core';
4
4
  import '@midscene/shared/constants';
@@ -1,5 +1,5 @@
1
1
  export { PlayWrightAiFixtureType, PlaywrightAiFixture } from './playwright.js';
2
- export { P as AppiumAgent, P as PlaywrightAgent } from './tasks-9af2ee2d.js';
2
+ export { P as AppiumAgent, P as PlaywrightAgent } from './tasks-997761d4.js';
3
3
  export { P as AppiumPage } from './page-ccbba1d9.js';
4
4
  export { PuppeteerAgent } from './puppeteer.js';
5
5
  export { generateExtractData } from './debug.js';
@@ -1,8 +1,8 @@
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-9af2ee2d.js';
5
- export { P as PlaywrightAgent } from './tasks-9af2ee2d.js';
4
+ import { b as PageTaskExecutor } from './tasks-997761d4.js';
5
+ export { P as PlaywrightAgent } from './tasks-997761d4.js';
6
6
  export { b as PlaywrightWebPage } from './page-ccbba1d9.js';
7
7
  import '@midscene/core';
8
8
  import '@midscene/shared/constants';
@@ -1,4 +1,4 @@
1
- import { P as PageAgent, a as PageAgentOpt } from './tasks-9af2ee2d.js';
1
+ import { P as PageAgent, a as PageAgentOpt } from './tasks-997761d4.js';
2
2
  import { Page } from 'puppeteer';
3
3
  export { a as PuppeteerWebPage } from './page-ccbba1d9.js';
4
4
  import '@midscene/core';
@@ -1,5 +1,5 @@
1
1
  import { W as WebPage } from './page-ccbba1d9.js';
2
- import Insight, { BaseElement, Rect, UIContext, PlanningAction, AIElementParseResponse, GroupedActionDump, ExecutionDump, AgentWaitForOpt, InsightExtractParam, InsightAssertionResponse, PlanningActionParamWaitFor, Executor } from '@midscene/core';
2
+ import { BaseElement, Rect, UIContext, PlanningAction, AIElementParseResponse, GroupedActionDump, ExecutionDump, AgentWaitForOpt, Insight, InsightExtractParam, InsightAssertionResponse, PlanningActionParamWaitFor, Executor } from '@midscene/core';
3
3
  import { NodeType } from '@midscene/shared/constants';
4
4
  import { getMidscenePkgInfo } from '@midscene/shared/fs';
5
5
 
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.5.2",
4
+ "version": "0.6.0",
5
5
  "jsnext:source": "./src/index.ts",
6
6
  "main": "./dist/lib/index.js",
7
7
  "types": "./dist/types/index.d.ts",
@@ -47,8 +47,8 @@
47
47
  "openai": "4.57.1",
48
48
  "inquirer": "10.1.5",
49
49
  "@xmldom/xmldom": "0.8.10",
50
- "@midscene/core": "0.5.2",
51
- "@midscene/shared": "0.5.2"
50
+ "@midscene/core": "0.6.0",
51
+ "@midscene/shared": "0.6.0"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@modern-js/module-tools": "2.58.2",