page-agent 0.0.5 → 0.0.6

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.
Files changed (2) hide show
  1. package/package.json +8 -8
  2. package/README-zh.md +0 -128
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "page-agent",
3
3
  "private": false,
4
- "version": "0.0.5",
4
+ "version": "0.0.6",
5
5
  "type": "module",
6
6
  "main": "./dist/lib/page-agent.js",
7
7
  "module": "./dist/lib/page-agent.js",
@@ -16,26 +16,26 @@
16
16
  "files": [
17
17
  "dist/",
18
18
  "README.md",
19
- "README-zh.md",
20
19
  "LICENSE"
21
20
  ],
22
- "description": "AI-powered UI agent for web applications - add intelligent automation to any webpage with a single script tag",
21
+ "description": "GUI agent for web applications - add intelligent automation to any webpage with a single script",
23
22
  "keywords": [
24
23
  "ai",
25
24
  "automation",
26
25
  "ui-agent",
26
+ "GUI-agent",
27
27
  "browser-automation",
28
28
  "web-agent",
29
29
  "llm",
30
30
  "dom-interaction",
31
- "intelligent-ui"
31
+ "web-automation",
32
+ "GUI-simulation"
32
33
  ],
33
34
  "author": "Simon<gaomeng1900>",
34
35
  "license": "MIT",
35
36
  "repository": {
36
37
  "type": "git",
37
- "url": "https://github.com/alibaba/page-agent.git",
38
- "directory": "packages/page-agent"
38
+ "url": "https://github.com/alibaba/page-agent.git"
39
39
  },
40
40
  "homepage": "https://alibaba.github.io/page-agent/",
41
41
  "scripts": {
@@ -43,8 +43,8 @@
43
43
  "build:lib": "MODE=lib vite build",
44
44
  "build:umd": "MODE=umd vite build",
45
45
  "build:watch": "MODE=lib vite build --watch",
46
- "prepublishOnly": "node -e \"const fs=require('fs');['README.md','README-zh.md','LICENSE'].forEach(f=>fs.copyFileSync('../../'+f,f))\"",
47
- "postpublish": "node -e \"['README.md','README-zh.md','LICENSE'].forEach(f=>{try{require('fs').unlinkSync(f)}catch{}})\""
46
+ "prepublishOnly": "node -e \"const fs=require('fs');['README.md','LICENSE'].forEach(f=>fs.copyFileSync('../../'+f,f))\"",
47
+ "postpublish": "node -e \"['README.md','LICENSE'].forEach(f=>{try{require('fs').unlinkSync(f)}catch{}})\""
48
48
  },
49
49
  "dependencies": {
50
50
  "ai-motion": "^0.4.7",
package/README-zh.md DELETED
@@ -1,128 +0,0 @@
1
- # PageAgent 🤖🪄
2
-
3
- ![banner](https://img.alicdn.com/imgextra/i1/O1CN01RY0Wvh26ATVeDIX7v_!!6000000007621-0-tps-1672-512.jpg)
4
-
5
- [![npm version](https://badge.fury.io/js/page-agent.svg)](https://badge.fury.io/js/page-agent) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![TypeScript](https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg)](http://www.typescriptlang.org/) [![Downloads](https://img.shields.io/npm/dt/page-agent.svg)](https://www.npmjs.com/package/page-agent) [![Bundle Size](https://img.shields.io/bundlephobia/minzip/page-agent)](https://bundlephobia.com/package/page-agent) [![GitHub stars](https://img.shields.io/github/stars/alibaba/page-agent.svg)](https://github.com/alibaba/page-agent)
6
-
7
- 纯 JS 实现的 GUI agent。使用自然语言操作你的 Web 应用。无须后端、客户端、浏览器插件。
8
-
9
- 🌐 [English](./README.md) | **中文**
10
-
11
- 👉 <a href="https://alibaba.github.io/page-agent/" target="_blank"><b>🚀 Demo</b></a> | <a href="https://alibaba.github.io/page-agent/#/docs/introduction/overview" target="_blank"><b>📖 Documentation</b></a>
12
-
13
- <video id="demo-video" src="https://github.com/user-attachments/assets/141bbb01-8022-4d1f-919d-9efc9a1dc1cf" width="640" crossorigin muted autoplay loop></video>
14
-
15
- ---
16
-
17
- ## ✨ Features
18
-
19
- - **🎯 轻松集成**
20
- - **🔐 端侧运行**
21
- - **🧠 HTML 脱水**
22
- - **💬 自然语言接口**
23
- - **🎨 HITL 交互界面**
24
-
25
- ## 🗺️ Roadmap
26
-
27
- 👉 [**Roadmap**](./ROADMAP.md)
28
-
29
- ## 🚀 快速开始
30
-
31
- ### CDN 集成
32
-
33
- ```html
34
- <!-- 临时 CDN URL. 未来会变更 -->
35
- <script
36
- src="https://hwcxiuzfylggtcktqgij.supabase.co/storage/v1/object/public/demo-public/v0.0.4/page-agent.js"
37
- crossorigin="true"
38
- type="text/javascript"
39
- ></script>
40
- ```
41
-
42
- ### NPM 安装
43
-
44
- ```bash
45
- npm install page-agent
46
- ```
47
-
48
- ```javascript
49
- import { PageAgent } from 'page-agent'
50
-
51
- // 测试接口
52
- // @note: 限流,限制 prompt 内容,限制来源,随时变更,请替换成你自己的
53
- // @note: 使用 DeepSeek-chat(3.2) 官方版本,使用协议和隐私策略见 DeepSeek 网站
54
- const DEMO_MODEL = 'PAGE-AGENT-FREE-TESTING-RANDOM'
55
- const DEMO_BASE_URL = 'https://hwcxiuzfylggtcktqgij.supabase.co/functions/v1/llm-testing-proxy'
56
- const DEMO_API_KEY = 'PAGE-AGENT-FREE-TESTING-RANDOM'
57
-
58
- const agent = new PageAgent({
59
- modelName: DEMO_MODEL,
60
- baseURL: DEMO_BASE_URL,
61
- apiKey: DEMO_API_KEY,
62
- language: 'zh-CN',
63
- })
64
-
65
- await agent.execute('点击登录按钮')
66
- ```
67
-
68
- ## 🏗️ 架构设计
69
-
70
- PageAgent 采用清晰的模块化架构:
71
-
72
- ```
73
- src/
74
- ├── PageAgent.ts # Agent 主流程
75
- ├── dom/ # DOM 理解
76
- ├── tools/ # 代理交互工具
77
- ├── ui/ # UI 组件和面板
78
- ├── llms/ # LLM 集成层
79
- └── utils/ # 事件总线和工具
80
- ```
81
-
82
- ## 🤝 贡献
83
-
84
- 欢迎社区贡献!以下是参与方式:
85
-
86
- ### 开发环境
87
-
88
- 1. Fork 项目仓库
89
- 2. Clone or fork: `git clone https://github.com/alibaba/page-agent.git && cd page-agent`
90
- 3. 安装依赖: `npm install`
91
- 4. 启动开发: `npm start`
92
-
93
- ### 贡献指南
94
-
95
- 请在贡献前阅读我们的[行为准则](CODE_OF_CONDUCT.md)和[贡献指南](CONTRIBUTING.md)。
96
-
97
- ## 👏 致谢
98
-
99
- 本项目基于以下优秀项目构建:
100
-
101
- - **[browser-use](https://github.com/browser-use/browser-use)**
102
-
103
- PageAgent 专为**客户端网页增强**设计,不是服务端自动化工具。
104
-
105
- ## 📄 许可证
106
-
107
- MIT 许可证 - 详见 [LICENSE](LICENSE) 文件。
108
-
109
- ```
110
- DOM processing components and prompt are derived from browser-use:
111
-
112
- Browser Use
113
- Copyright (c) 2024 Gregor Zunic
114
- Licensed under the MIT License
115
-
116
- Original browser-use project: <https://github.com/browser-use/browser-use>
117
-
118
- We gratefully acknowledge the browser-use project and its contributors for their
119
- excellent work on web automation and DOM interaction patterns that helped make
120
- this project possible.
121
-
122
- Third-party dependencies and their licenses can be found in the package.json
123
- file and in the node_modules directory after installation.
124
- ```
125
-
126
- ---
127
-
128
- **⭐ 如果觉得 PageAgent 有用或有趣,请给项目点个星!**