page-agent 1.2.0 β 1.3.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 +24 -27
- package/dist/iife/page-agent.demo.js +33 -33
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Page Agent
|
|
2
2
|
|
|
3
3
|
<picture>
|
|
4
4
|
<source media="(prefers-color-scheme: dark)" srcset="https://img.alicdn.com/imgextra/i4/O1CN01qKig1P1FnhpFKNdi6_!!6000000000532-2-tps-1280-256.png">
|
|
@@ -19,18 +19,16 @@ The GUI Agent Living in Your Webpage. Control web interfaces with natural langua
|
|
|
19
19
|
|
|
20
20
|
## β¨ Features
|
|
21
21
|
|
|
22
|
-
- **π― Easy
|
|
23
|
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
-
|
|
27
|
-
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
-
|
|
32
|
-
|
|
33
|
-
π [**πΊοΈ Roadmap**](https://github.com/alibaba/page-agent/issues/96)
|
|
22
|
+
- **π― Easy integration**
|
|
23
|
+
- No need for `browser extension` / `python` / `headless browser`.
|
|
24
|
+
- Just in-page javascript. Everything happens in your web page.
|
|
25
|
+
- The best tool for your agent to control web pages.
|
|
26
|
+
- **π Text-based DOM manipulation**
|
|
27
|
+
- No screenshots. No OCR or multi-modal LLMs needed.
|
|
28
|
+
- No special permissions required.
|
|
29
|
+
- **π§ Bring your own LLMs**
|
|
30
|
+
- **π¨ Pretty UI with human-in-the-loop**
|
|
31
|
+
- **π Optional [chrome extension](https://alibaba.github.io/page-agent/#/docs/features/chrome-extension) for multi-page tasks.**
|
|
34
32
|
|
|
35
33
|
## π Quick Start
|
|
36
34
|
|
|
@@ -39,19 +37,15 @@ And π
|
|
|
39
37
|
Fastest way to try PageAgent with our free Demo LLM:
|
|
40
38
|
|
|
41
39
|
```html
|
|
42
|
-
<script
|
|
43
|
-
src="https://cdn.jsdelivr.net/npm/page-agent@1.2.0/dist/iife/page-agent.demo.js"
|
|
44
|
-
crossorigin="true"
|
|
45
|
-
></script>
|
|
40
|
+
<script src="{URL}" crossorigin="true"></script>
|
|
46
41
|
```
|
|
47
42
|
|
|
48
|
-
> - **β οΈ For technical evaluation only.** Demo LLM has rate limits and usage restrictions. May change without notice.
|
|
49
|
-
> - **π· Bring your own LLM API.**
|
|
50
|
-
|
|
51
43
|
| Mirrors | URL |
|
|
52
44
|
| ------- | ---------------------------------------------------------------------------------- |
|
|
53
|
-
| Global | https://cdn.jsdelivr.net/npm/page-agent@1.
|
|
54
|
-
| China | https://registry.npmmirror.com/page-agent/1.
|
|
45
|
+
| Global | https://cdn.jsdelivr.net/npm/page-agent@1.3.0/dist/iife/page-agent.demo.js |
|
|
46
|
+
| China | https://registry.npmmirror.com/page-agent/1.3.0/files/dist/iife/page-agent.demo.js |
|
|
47
|
+
|
|
48
|
+
> **β οΈ For technical evaluation only.** Demo LLM has rate limits and usage restrictions. Slow. May change without notice.
|
|
55
49
|
|
|
56
50
|
### NPM Installation
|
|
57
51
|
|
|
@@ -72,18 +66,21 @@ const agent = new PageAgent({
|
|
|
72
66
|
await agent.execute('Click the login button')
|
|
73
67
|
```
|
|
74
68
|
|
|
69
|
+
For more programmatic usage, see [π Documentations](https://alibaba.github.io/page-agent/#/docs/introduction/overview).
|
|
70
|
+
|
|
75
71
|
## ποΈ Structure
|
|
76
72
|
|
|
77
73
|
PageAgent adopts a simplified monorepo structure:
|
|
78
74
|
|
|
79
75
|
```
|
|
80
76
|
packages/
|
|
81
|
-
βββ core/ # ** Core agent logic
|
|
82
|
-
βββ page-agent/ # Exported agent and demo(npm: page-agent)
|
|
77
|
+
βββ core/ # ** Core agent logic (npm: @page-agent/core) **
|
|
83
78
|
βββ llms/ # LLM client (npm: @page-agent/llms)
|
|
84
|
-
βββ page-controller/ # DOM operations
|
|
85
|
-
βββ ui/ # Panel
|
|
86
|
-
|
|
79
|
+
βββ page-controller/ # DOM operations (npm: @page-agent/page-controller)
|
|
80
|
+
βββ ui/ # Panel UI (npm: @page-agent/ui)
|
|
81
|
+
βββ page-agent/ # Entry class and iife builds(npm: page-agent)
|
|
82
|
+
βββ extension/ # Chrome extension for multi-page tasks
|
|
83
|
+
βββ website/ # Website & Documentation site
|
|
87
84
|
```
|
|
88
85
|
|
|
89
86
|
## π€ Contributing
|