misoai-web 1.0.0 → 1.0.1

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.
@@ -1,4 +1,4 @@
1
- import { W as WebPage, d as WebElementInfo, e as WebUIContext } from './page-26522e97.js';
1
+ import { W as WebPage, d as WebElementInfo, e as WebUIContext } from './page-b8ada1f3.js';
2
2
  import { Insight, ExecutionTaskProgressOptions, Executor, PlanningAction, MidsceneYamlFlowItem, InsightExtractParam, InsightAssertionResponse, PlanningActionParamWaitFor, OnTaskStartTip, GroupedActionDump, InsightAction, ExecutionDump, LocateOption, PlanningActionParamScroll, LocatorValidatorOption, AgentDescribeElementAtPointResult, LocateValidatorResult, LocateResultElement, AgentAssertOpt, AgentWaitForOpt } from 'misoai-core';
3
3
  import { ChatCompletionMessageParam } from 'misoai-core/ai-model';
4
4
  import 'playwright';
@@ -6,6 +6,7 @@ import 'misoai-shared/extractor';
6
6
  import 'puppeteer';
7
7
  import 'misoai-shared/logger';
8
8
  import 'misoai-shared/constants';
9
+ import 'misoai-core/.';
9
10
 
10
11
  interface PlanningCache {
11
12
  type: 'plan';
@@ -1,8 +1,9 @@
1
- export { E as ExtensionBridgePageBrowserSide } from './browser-8be53932.js';
2
- import './page-26522e97.js';
1
+ export { E as ExtensionBridgePageBrowserSide } from './browser-d447695b.js';
2
+ import './page-b8ada1f3.js';
3
3
  import 'playwright';
4
4
  import 'misoai-core';
5
5
  import 'misoai-shared/extractor';
6
6
  import 'puppeteer';
7
7
  import 'misoai-shared/logger';
8
8
  import 'misoai-shared/constants';
9
+ import 'misoai-core/.';
@@ -1,13 +1,14 @@
1
1
  import { PageAgent, PageAgentOpt, AITaskResult } from './agent.js';
2
- import { B as BridgeConnectTabOptions, E as ExtensionBridgePageBrowserSide } from './browser-8be53932.js';
2
+ import { B as BridgeConnectTabOptions, E as ExtensionBridgePageBrowserSide } from './browser-d447695b.js';
3
3
  export { allConfigFromEnv, overrideAIConfig } from 'misoai-shared/env';
4
- import './page-26522e97.js';
4
+ import './page-b8ada1f3.js';
5
5
  import 'playwright';
6
6
  import 'misoai-core';
7
7
  import 'misoai-shared/extractor';
8
8
  import 'puppeteer';
9
9
  import 'misoai-shared/logger';
10
10
  import 'misoai-shared/constants';
11
+ import 'misoai-core/.';
11
12
  import 'misoai-core/ai-model';
12
13
 
13
14
  interface ChromeExtensionPageCliSide extends ExtensionBridgePageBrowserSide {
@@ -1,4 +1,4 @@
1
- import { C as ChromeExtensionProxyPage, f as ChromePageDestroyOptions } from './page-26522e97.js';
1
+ import { C as ChromeExtensionProxyPage, f as ChromePageDestroyOptions } from './page-b8ada1f3.js';
2
2
 
3
3
  interface BridgeConnectTabOptions {
4
4
  /**
@@ -1,5 +1,5 @@
1
- import { C as ChromeExtensionProxyPage } from './page-26522e97.js';
2
- export { E as ERROR_CODE_NOT_IMPLEMENTED_AS_DESIGNED } from './page-26522e97.js';
1
+ import { C as ChromeExtensionProxyPage } from './page-b8ada1f3.js';
2
+ export { E as ERROR_CODE_NOT_IMPLEMENTED_AS_DESIGNED } from './page-b8ada1f3.js';
3
3
  import { PageAgent, PageAgentOpt } from './agent.js';
4
4
  export { overrideAIConfig } from 'misoai-shared/env';
5
5
  import 'playwright';
@@ -8,6 +8,7 @@ import 'misoai-shared/extractor';
8
8
  import 'puppeteer';
9
9
  import 'misoai-shared/logger';
10
10
  import 'misoai-shared/constants';
11
+ import 'misoai-core/.';
11
12
  import 'misoai-core/ai-model';
12
13
 
13
14
  declare class ChromeExtensionProxyPageAgent extends PageAgent {
@@ -1,5 +1,5 @@
1
1
  export { PlayWrightAiFixtureType, PlaywrightAgent, PlaywrightAiFixture } from './playwright.js';
2
- export { a as AbstractPage, A as AndroidDevicePage, W as WebPage, p as parseContextFromWebPage } from './page-26522e97.js';
2
+ export { a as AbstractPage, A as AndroidDevicePage, W as WebPage, p as parseContextFromWebPage } from './page-b8ada1f3.js';
3
3
  export { PageAgent, PageAgentOpt } from './agent.js';
4
4
  export { PuppeteerAgent } from './puppeteer.js';
5
5
  export { StaticPageAgent } from './playground.js';
@@ -12,4 +12,5 @@ import 'misoai-shared/extractor';
12
12
  import 'puppeteer';
13
13
  import 'misoai-shared/logger';
14
14
  import 'misoai-shared/constants';
15
+ import 'misoai-core/.';
15
16
  import 'misoai-core/ai-model';
@@ -2,7 +2,7 @@ import * as http from 'http';
2
2
  import { Server } from 'node:http';
3
3
  import express from 'express';
4
4
  import { PageAgent } from './agent.js';
5
- import { a as AbstractPage } from './page-26522e97.js';
5
+ import { a as AbstractPage } from './page-b8ada1f3.js';
6
6
  import 'misoai-core';
7
7
  import 'misoai-core/ai-model';
8
8
  import 'playwright';
@@ -10,6 +10,7 @@ import 'misoai-shared/extractor';
10
10
  import 'puppeteer';
11
11
  import 'misoai-shared/logger';
12
12
  import 'misoai-shared/constants';
13
+ import 'misoai-core/.';
13
14
 
14
15
  declare class PlaygroundServer {
15
16
  app: express.Application;
@@ -1,10 +1,10 @@
1
1
  import { Page as Page$2 } from 'playwright';
2
- import * as misoai_core from 'misoai-core';
3
2
  import { BaseElement, Rect, UIContext, PlaywrightParserOpt, PlanningLocateParam, ElementTreeNode, Size, Point, PageType } from 'misoai-core';
4
3
  import { ElementInfo, ElementNode } from 'misoai-shared/extractor';
5
4
  import { Page as Page$1, KeyInput } from 'puppeteer';
6
5
  import { DebugFunction } from 'misoai-shared/logger';
7
6
  import { NodeType } from 'misoai-shared/constants';
7
+ import * as misoai_core__ from 'misoai-core/.';
8
8
 
9
9
  declare class WebElementInfo implements BaseElement {
10
10
  content: string;
@@ -185,7 +185,7 @@ declare class StaticPage implements AbstractPage {
185
185
  evaluateJavaScript<T = any>(script: string): Promise<T>;
186
186
  getElementsInfo(): Promise<any>;
187
187
  getElementsNodeTree(): Promise<any>;
188
- size(): Promise<misoai_core.Size>;
188
+ size(): Promise<misoai_core__.Size>;
189
189
  screenshotBase64(): Promise<string>;
190
190
  url(): Promise<string>;
191
191
  scrollUntilTop(startingPoint?: Point): Promise<any>;
@@ -1,5 +1,5 @@
1
- import { S as StaticPage } from './page-26522e97.js';
2
- export { E as ERROR_CODE_NOT_IMPLEMENTED_AS_DESIGNED } from './page-26522e97.js';
1
+ import { S as StaticPage } from './page-b8ada1f3.js';
2
+ export { E as ERROR_CODE_NOT_IMPLEMENTED_AS_DESIGNED } from './page-b8ada1f3.js';
3
3
  import { PageAgent } from './agent.js';
4
4
  import 'playwright';
5
5
  import 'misoai-core';
@@ -7,6 +7,7 @@ import 'misoai-shared/extractor';
7
7
  import 'puppeteer';
8
8
  import 'misoai-shared/logger';
9
9
  import 'misoai-shared/constants';
10
+ import 'misoai-core/.';
10
11
  import 'misoai-core/ai-model';
11
12
 
12
13
  declare class StaticPageAgent extends PageAgent {
@@ -1,6 +1,6 @@
1
1
  import { PageAgent, PageAgentOpt } from './agent.js';
2
2
  import { Page } from 'playwright';
3
- import { c as WebPage } from './page-26522e97.js';
3
+ import { c as WebPage } from './page-b8ada1f3.js';
4
4
  import { AgentWaitForOpt } from 'misoai-core';
5
5
  import { TestInfo } from '@playwright/test';
6
6
  export { overrideAIConfig } from 'misoai-shared/env';
@@ -9,6 +9,7 @@ import 'misoai-shared/extractor';
9
9
  import 'puppeteer';
10
10
  import 'misoai-shared/logger';
11
11
  import 'misoai-shared/constants';
12
+ import 'misoai-core/.';
12
13
 
13
14
  declare const PlaywrightAiFixture: (options?: {
14
15
  forceSameTabNavigation?: boolean;
@@ -2,11 +2,12 @@ import * as puppeteer from 'puppeteer';
2
2
  import { PuppeteerAgent } from './puppeteer.js';
3
3
  import { MidsceneYamlScriptWebEnv } from 'misoai-core';
4
4
  import './agent.js';
5
- import './page-26522e97.js';
5
+ import './page-b8ada1f3.js';
6
6
  import 'playwright';
7
7
  import 'misoai-shared/extractor';
8
8
  import 'misoai-shared/logger';
9
9
  import 'misoai-shared/constants';
10
+ import 'misoai-core/.';
10
11
  import 'misoai-core/ai-model';
11
12
  import 'misoai-shared/env';
12
13
 
@@ -1,6 +1,6 @@
1
1
  import { PageAgent, PageAgentOpt } from './agent.js';
2
2
  import { Page } from 'puppeteer';
3
- import { b as WebPage } from './page-26522e97.js';
3
+ import { b as WebPage } from './page-b8ada1f3.js';
4
4
  export { overrideAIConfig } from 'misoai-shared/env';
5
5
  import 'misoai-core';
6
6
  import 'misoai-core/ai-model';
@@ -8,6 +8,7 @@ import 'playwright';
8
8
  import 'misoai-shared/extractor';
9
9
  import 'misoai-shared/logger';
10
10
  import 'misoai-shared/constants';
11
+ import 'misoai-core/.';
11
12
 
12
13
  declare class PuppeteerAgent extends PageAgent<WebPage> {
13
14
  constructor(page: Page, opts?: PageAgentOpt);
@@ -2,6 +2,7 @@ import 'misoai-core';
2
2
  import 'misoai-shared/logger';
3
3
  import 'playwright';
4
4
  import 'puppeteer';
5
- export { E as ERROR_CODE_NOT_IMPLEMENTED_AS_DESIGNED, e as WebUIContext, k as forceClosePopup, i as generateCacheId, h as getCurrentExecutionFile, m as matchElementFromPlan, p as parseContextFromWebPage, g as printReportMsg, j as replaceIllegalPathCharsAndSpace, r as reportFileName } from './page-26522e97.js';
5
+ export { E as ERROR_CODE_NOT_IMPLEMENTED_AS_DESIGNED, e as WebUIContext, k as forceClosePopup, i as generateCacheId, h as getCurrentExecutionFile, m as matchElementFromPlan, p as parseContextFromWebPage, g as printReportMsg, j as replaceIllegalPathCharsAndSpace, r as reportFileName } from './page-b8ada1f3.js';
6
6
  import 'misoai-shared/extractor';
7
7
  import 'misoai-shared/constants';
8
+ import 'misoai-core/.';
@@ -1,12 +1,13 @@
1
1
  export { S as ScriptPlayer, p as parseYamlScript } from './utils-badc824e.js';
2
2
  import { MidsceneYamlScriptWebEnv, MidsceneYamlTask } from 'misoai-core';
3
3
  import './agent.js';
4
- import './page-26522e97.js';
4
+ import './page-b8ada1f3.js';
5
5
  import 'playwright';
6
6
  import 'misoai-shared/extractor';
7
7
  import 'puppeteer';
8
8
  import 'misoai-shared/logger';
9
9
  import 'misoai-shared/constants';
10
+ import 'misoai-core/.';
10
11
  import 'misoai-core/ai-model';
11
12
 
12
13
  declare function buildYaml(env: MidsceneYamlScriptWebEnv, tasks: MidsceneYamlTask[]): string;
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "Browser use",
9
9
  "Android use"
10
10
  ],
11
- "version": "1.0.0",
11
+ "version": "1.0.1",
12
12
  "repository": "https://github.com/web-infra-dev/midscene",
13
13
  "homepage": "https://midscenejs.com/",
14
14
  "jsnext:source": "./src/index.ts",
@@ -81,28 +81,58 @@
81
81
  },
82
82
  "typesVersions": {
83
83
  "*": {
84
- ".": ["./dist/types/index.d.ts"],
85
- "bridge-mode": ["./dist/types/bridge-mode.d.ts"],
86
- "bridge-mode-browser": ["./dist/types/bridge-mode-browser.d.ts"],
87
- "utils": ["./dist/types/utils.d.ts"],
88
- "ui-utils": ["./dist/types/ui-utils.d.ts"],
89
- "puppeteer": ["./dist/types/puppeteer.d.ts"],
84
+ ".": [
85
+ "./dist/types/index.d.ts"
86
+ ],
87
+ "bridge-mode": [
88
+ "./dist/types/bridge-mode.d.ts"
89
+ ],
90
+ "bridge-mode-browser": [
91
+ "./dist/types/bridge-mode-browser.d.ts"
92
+ ],
93
+ "utils": [
94
+ "./dist/types/utils.d.ts"
95
+ ],
96
+ "ui-utils": [
97
+ "./dist/types/ui-utils.d.ts"
98
+ ],
99
+ "puppeteer": [
100
+ "./dist/types/puppeteer.d.ts"
101
+ ],
90
102
  "puppeteer-agent-launcher": [
91
103
  "./dist/types/puppeteer-agent-launcher.d.ts"
92
104
  ],
93
- "playwright": ["./dist/types/playwright.d.ts"],
94
- "playwright-report": ["./dist/types/playwright-report.d.ts"],
95
- "playground": ["./dist/types/playground.d.ts"],
96
- "midscene-playground": ["./dist/types/midscene-playground.d.ts"],
97
- "midscene-server": ["./dist/types/midscene-server.d.ts"],
98
- "chrome-extension": ["./dist/types/chrome-extension.d.ts"],
99
- "yaml": ["./dist/types/yaml.d.ts"],
100
- "agent": ["./dist/types/agent.d.ts"]
105
+ "playwright": [
106
+ "./dist/types/playwright.d.ts"
107
+ ],
108
+ "playwright-report": [
109
+ "./dist/types/playwright-report.d.ts"
110
+ ],
111
+ "playground": [
112
+ "./dist/types/playground.d.ts"
113
+ ],
114
+ "midscene-playground": [
115
+ "./dist/types/midscene-playground.d.ts"
116
+ ],
117
+ "midscene-server": [
118
+ "./dist/types/midscene-server.d.ts"
119
+ ],
120
+ "chrome-extension": [
121
+ "./dist/types/chrome-extension.d.ts"
122
+ ],
123
+ "yaml": [
124
+ "./dist/types/yaml.d.ts"
125
+ ],
126
+ "agent": [
127
+ "./dist/types/agent.d.ts"
128
+ ]
101
129
  }
102
130
  },
103
131
  "watch": {
104
132
  "build": {
105
- "patterns": ["src"],
133
+ "patterns": [
134
+ "src"
135
+ ],
106
136
  "extensions": "tsx,less,scss,css,js,jsx,ts",
107
137
  "quiet": false
108
138
  }
@@ -126,10 +156,16 @@
126
156
  "e2e:ui": "playwright test --config=tests/playwright.config.ts --ui",
127
157
  "e2e:ui:cache": "MIDSCENE_CACHE=true playwright test --config=tests/playwright.config.ts --ui"
128
158
  },
129
- "files": ["static", "dist", "iife-script", "README.md", "bin"],
159
+ "files": [
160
+ "static",
161
+ "dist",
162
+ "iife-script",
163
+ "README.md",
164
+ "bin"
165
+ ],
130
166
  "dependencies": {
131
- "misoai-core": "workspace:*",
132
- "misoai-shared": "workspace:*",
167
+ "misoai-core": "1.0.0",
168
+ "misoai-shared": "1.0.0",
133
169
  "@xmldom/xmldom": "0.8.10",
134
170
  "cors": "2.8.5",
135
171
  "dayjs": "1.11.11",
@@ -163,8 +199,8 @@
163
199
  },
164
200
  "peerDependencies": {
165
201
  "@playwright/test": "^1.44.1",
166
- "playwright": "^1.44.1",
167
- "puppeteer": ">=20.0.0"
202
+ "playwright": "1.44.1",
203
+ "puppeteer": "24.2.0"
168
204
  },
169
205
  "peerDependenciesMeta": {
170
206
  "@playwright/test": {