page-agent 1.7.0 → 1.8.0-beta.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/README.md +12 -12
- package/dist/esm/page-agent.js +2 -6
- package/dist/esm/page-agent.js.map +1 -1
- package/dist/iife/page-agent.demo.js +73 -73
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -50,8 +50,8 @@ Fastest way to try PageAgent with our free Demo LLM:
|
|
|
50
50
|
|
|
51
51
|
| Mirrors | URL |
|
|
52
52
|
| ------- | ---------------------------------------------------------------------------------- |
|
|
53
|
-
| Global | https://cdn.jsdelivr.net/npm/page-agent@1.
|
|
54
|
-
| China | https://registry.npmmirror.com/page-agent/1.
|
|
53
|
+
| Global | https://cdn.jsdelivr.net/npm/page-agent@1.8.0-beta.0/dist/iife/page-agent.demo.js |
|
|
54
|
+
| China | https://registry.npmmirror.com/page-agent/1.8.0-beta.0/files/dist/iife/page-agent.demo.js |
|
|
55
55
|
|
|
56
56
|
### NPM Installation
|
|
57
57
|
|
|
@@ -74,6 +74,16 @@ await agent.execute('Click the login button')
|
|
|
74
74
|
|
|
75
75
|
For more programmatic usage, see [📖 Documentations](https://alibaba.github.io/page-agent/docs/introduction/overview).
|
|
76
76
|
|
|
77
|
+
## 🌟 Awesome Page Agent
|
|
78
|
+
|
|
79
|
+
Built something cool with PageAgent? Add it here! Open a PR to share your project.
|
|
80
|
+
|
|
81
|
+
> These are community projects — not maintained or endorsed by us. Use at your own discretion.
|
|
82
|
+
|
|
83
|
+
| Project | Description |
|
|
84
|
+
| -------- | ----------------------------------------------------------- |
|
|
85
|
+
| _Yours?_ | [Open a PR](https://github.com/alibaba/page-agent/pulls) 🙌 |
|
|
86
|
+
|
|
77
87
|
## 🤝 Contributing
|
|
78
88
|
|
|
79
89
|
We welcome contributions from the community! See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines and [docs/developer-guide.md](docs/developer-guide.md) for local development workflows.
|
|
@@ -104,16 +114,6 @@ excellent work on web automation and DOM interaction patterns that helped make
|
|
|
104
114
|
this project possible.
|
|
105
115
|
```
|
|
106
116
|
|
|
107
|
-
## 🌟 Awesome Page Agent
|
|
108
|
-
|
|
109
|
-
Built something cool with PageAgent? Add it here! Open a PR to share your project.
|
|
110
|
-
|
|
111
|
-
> These are community projects — not maintained or endorsed by us. Use at your own discretion.
|
|
112
|
-
|
|
113
|
-
| Project | Description |
|
|
114
|
-
| -------- | ----------------------------------------------------------- |
|
|
115
|
-
| _Yours?_ | [Open a PR](https://github.com/alibaba/page-agent/pulls) 🙌 |
|
|
116
|
-
|
|
117
117
|
---
|
|
118
118
|
|
|
119
119
|
**⭐ Star this repo if you find PageAgent helpful!**
|
package/dist/esm/page-agent.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
1
|
import { PageAgentCore } from "@page-agent/core";
|
|
4
2
|
export * from "@page-agent/core";
|
|
5
3
|
import { PageController } from "@page-agent/page-controller";
|
|
6
4
|
import { Panel } from "@page-agent/ui";
|
|
7
|
-
|
|
5
|
+
class PageAgent extends PageAgentCore {
|
|
8
6
|
panel;
|
|
9
7
|
constructor(config) {
|
|
10
8
|
const pageController = new PageController({
|
|
@@ -17,9 +15,7 @@ const _PageAgent = class _PageAgent extends PageAgentCore {
|
|
|
17
15
|
promptForNextTask: config.promptForNextTask
|
|
18
16
|
});
|
|
19
17
|
}
|
|
20
|
-
}
|
|
21
|
-
__name(_PageAgent, "PageAgent");
|
|
22
|
-
let PageAgent = _PageAgent;
|
|
18
|
+
}
|
|
23
19
|
export {
|
|
24
20
|
PageAgent
|
|
25
21
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-agent.js","sources":["../../src/PageAgent.ts"],"sourcesContent":["/**\n * Copyright (C) 2025 Alibaba Group Holding Limited\n * All rights reserved.\n */\nimport { type AgentConfig, PageAgentCore } from '@page-agent/core'\nimport { PageController, type PageControllerConfig } from '@page-agent/page-controller'\nimport { Panel, type PanelConfig } from '@page-agent/ui'\n\nexport * from '@page-agent/core'\n\nexport type PageAgentConfig = AgentConfig & PageControllerConfig & Omit<PanelConfig, 'language'>\n\nexport class PageAgent extends PageAgentCore {\n\tpanel: Panel\n\n\tconstructor(config: PageAgentConfig) {\n\t\tconst pageController = new PageController({\n\t\t\t...config,\n\t\t\tenableMask: config.enableMask ?? true,\n\t\t})\n\n\t\tsuper({ ...config, pageController })\n\n\t\tthis.panel = new Panel(this, {\n\t\t\tlanguage: config.language,\n\t\t\tpromptForNextTask: config.promptForNextTask,\n\t\t})\n\t}\n}\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"page-agent.js","sources":["../../src/PageAgent.ts"],"sourcesContent":["/**\n * Copyright (C) 2025 Alibaba Group Holding Limited\n * All rights reserved.\n */\nimport { type AgentConfig, PageAgentCore } from '@page-agent/core'\nimport { PageController, type PageControllerConfig } from '@page-agent/page-controller'\nimport { Panel, type PanelConfig } from '@page-agent/ui'\n\nexport * from '@page-agent/core'\n\nexport type PageAgentConfig = AgentConfig & PageControllerConfig & Omit<PanelConfig, 'language'>\n\nexport class PageAgent extends PageAgentCore {\n\tpanel: Panel\n\n\tconstructor(config: PageAgentConfig) {\n\t\tconst pageController = new PageController({\n\t\t\t...config,\n\t\t\tenableMask: config.enableMask ?? true,\n\t\t})\n\n\t\tsuper({ ...config, pageController })\n\n\t\tthis.panel = new Panel(this, {\n\t\t\tlanguage: config.language,\n\t\t\tpromptForNextTask: config.promptForNextTask,\n\t\t})\n\t}\n}\n"],"names":[],"mappings":";;;;AAYO,MAAM,kBAAkB,cAAc;AAAA,EAC5C;AAAA,EAEA,YAAY,QAAyB;AACpC,UAAM,iBAAiB,IAAI,eAAe;AAAA,MACzC,GAAG;AAAA,MACH,YAAY,OAAO,cAAc;AAAA,IAAA,CACjC;AAED,UAAM,EAAE,GAAG,QAAQ,gBAAgB;AAEnC,SAAK,QAAQ,IAAI,MAAM,MAAM;AAAA,MAC5B,UAAU,OAAO;AAAA,MACjB,mBAAmB,OAAO;AAAA,IAAA,CAC1B;AAAA,EACF;AACD;"}
|