page-agent 0.0.22 → 0.0.24

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 CHANGED
@@ -28,7 +28,22 @@ The GUI Agent Living in Your Webpage. Control web interfaces with natural langua
28
28
 
29
29
  ## 🚀 Quick Start
30
30
 
31
- ### NPM Installation
31
+ ### Quick Try (Demo CDN)
32
+
33
+ Fastest way to try PageAgent:
34
+
35
+ ```html
36
+ <script src="https://cdn.jsdelivr.net/npm/@page-agent/cdn/dist/page-agent.demo.js" crossorigin="true"></script>
37
+ ```
38
+
39
+ > ⚠️ **For technical evaluation only.** Demo model has rate limits and usage restrictions. Use NPM for production.
40
+
41
+ | Location | URL |
42
+ | -------- | --------------------------------------------------------------------------------------- |
43
+ | Global | https://cdn.jsdelivr.net/npm/@page-agent/cdn/dist/page-agent.demo.js |
44
+ | China | https://registry.npmmirror.com/@page-agent/cdn/latest/files/dist/page-agent.demo.js |
45
+
46
+ ### NPM Installation (Recommended)
32
47
 
33
48
  ```bash
34
49
  npm install page-agent
@@ -37,40 +52,37 @@ npm install page-agent
37
52
  ```javascript
38
53
  import { PageAgent } from 'page-agent'
39
54
 
40
- // test server
41
- // @note: rate limit. prompt limit. Origin limit. May change anytime. Use your own llm!
42
- // @note Using official DeepSeek-chat(3.2). Go to DeepSeek website for privacy policy.
43
- const DEMO_MODEL = 'PAGE-AGENT-FREE-TESTING-RANDOM'
44
- const DEMO_BASE_URL = 'https://hwcxiuzfylggtcktqgij.supabase.co/functions/v1/llm-testing-proxy'
45
- const DEMO_API_KEY = 'PAGE-AGENT-FREE-TESTING-RANDOM'
46
-
47
55
  const agent = new PageAgent({
48
- model: DEMO_MODEL,
49
- baseURL: DEMO_BASE_URL,
50
- apiKey: DEMO_API_KEY,
56
+ model: 'deepseek-chat',
57
+ baseURL: 'https://api.deepseek.com',
58
+ apiKey: 'YOUR_API_KEY',
51
59
  language: 'en-US',
52
60
  })
53
61
 
54
62
  await agent.execute('Click the login button')
55
63
  ```
56
64
 
57
- ### CDN Integration
58
-
59
- Fastest way to try PageAgent is to include it via CDN. Demo model will be used by default.
65
+ ### CDN Build
60
66
 
61
- | Location | URL |
62
- | -------- | ----------------------------------------------------------------------------- |
63
- | Global | https://cdn.jsdelivr.net/npm/page-agent@latest/dist/umd/page-agent.js |
64
- | China | https://registry.npmmirror.com/page-agent/latest/files/dist/umd/page-agent.js |
67
+ For environments where NPM is not available. Usage is identical to NPM:
65
68
 
66
69
  ```html
67
- <script
68
- src="https://cdn.jsdelivr.net/npm/page-agent@latest/dist/umd/page-agent.js"
69
- crossorigin="true"
70
- type="text/javascript"
71
- ></script>
70
+ <script src="https://cdn.jsdelivr.net/npm/@page-agent/cdn/dist/page-agent.js" crossorigin="true"></script>
71
+ <script>
72
+ const agent = new PageAgent({
73
+ model: 'deepseek-chat',
74
+ baseURL: 'https://api.deepseek.com',
75
+ apiKey: 'YOUR_API_KEY',
76
+ })
77
+ await agent.execute('Click the login button')
78
+ </script>
72
79
  ```
73
80
 
81
+ | Location | URL |
82
+ | -------- | ----------------------------------------------------------------------------------- |
83
+ | Global | https://cdn.jsdelivr.net/npm/@page-agent/cdn/dist/page-agent.js |
84
+ | China | https://registry.npmmirror.com/@page-agent/cdn/latest/files/dist/page-agent.js |
85
+
74
86
  ## 🏗️ Structure
75
87
 
76
88
  PageAgent adopts a simplified monorepo structure: