@eko-ai/eko-nodejs 3.0.9 → 3.1.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.
- package/README.md +42 -16
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -87,7 +87,25 @@ const llms: LLMs = {
|
|
|
87
87
|
provider: "openai",
|
|
88
88
|
model: "gpt-5",
|
|
89
89
|
apiKey: "your-api-key"
|
|
90
|
+
},
|
|
91
|
+
// OpenAI-compatible models (Qwen, Doubao, etc.)
|
|
92
|
+
qwen: {
|
|
93
|
+
provider: "openai",
|
|
94
|
+
model: "qwen-plus",
|
|
95
|
+
apiKey: "your-qwen-api-key",
|
|
96
|
+
config: {
|
|
97
|
+
baseURL: "https://dashscope-intl.aliyuncs.com/compatible-mode/v1"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
doubao: {
|
|
101
|
+
provider: "openai", // Use OpenAI provider for compatibility
|
|
102
|
+
model: "doubao-seed-1-6-250615", // or other Doubao model
|
|
103
|
+
apiKey: "your-volcengine-api-key",
|
|
104
|
+
config: {
|
|
105
|
+
baseURL: "https://ark.cn-beijing.volces.com/api/v3" // Volcengine endpoint
|
|
106
|
+
}
|
|
90
107
|
}
|
|
108
|
+
|
|
91
109
|
};
|
|
92
110
|
|
|
93
111
|
let agents: Agent[] = [new BrowserAgent(), new FileAgent()];
|
|
@@ -101,26 +119,36 @@ $ pnpm install @eko-ai/eko
|
|
|
101
119
|
|
|
102
120
|
## Example Projects
|
|
103
121
|
|
|
104
|
-
The repository ships with three workspace examples under the `example/` folder.
|
|
105
|
-
|
|
106
|
-
|
|
122
|
+
The repository ships with three workspace examples under the `example/` folder.
|
|
123
|
+
|
|
124
|
+
### Prerequisites
|
|
125
|
+
|
|
126
|
+
Before running any example, install dependencies and build the core packages from the root directory:
|
|
127
|
+
|
|
128
|
+
```bash
|
|
129
|
+
pnpm install
|
|
130
|
+
pnpm build
|
|
131
|
+
```
|
|
107
132
|
|
|
108
133
|
### Browser Extension (`example/extension`)
|
|
109
134
|
|
|
110
135
|
```bash
|
|
111
|
-
|
|
112
|
-
pnpm
|
|
136
|
+
cd example/extension
|
|
137
|
+
pnpm install
|
|
138
|
+
pnpm run build
|
|
113
139
|
```
|
|
114
140
|
|
|
115
|
-
Load the generated `
|
|
116
|
-
|
|
141
|
+
Load the generated `dist` directory via `chrome://extensions` → Developer Mode → Load unpacked.
|
|
142
|
+
Configure your API key in the extension options before running the automation task.
|
|
117
143
|
|
|
118
144
|
### Node.js Automation (`example/nodejs`)
|
|
119
145
|
|
|
120
146
|
```bash
|
|
121
|
-
|
|
122
|
-
pnpm
|
|
123
|
-
|
|
147
|
+
cd example/nodejs
|
|
148
|
+
pnpm install
|
|
149
|
+
pnpm run playwright # first time only, installs browsers
|
|
150
|
+
pnpm run build
|
|
151
|
+
OPENAI_API_KEY=... ANTHROPIC_API_KEY=... pnpm run start
|
|
124
152
|
```
|
|
125
153
|
|
|
126
154
|
The Node.js demo drives Playwright through Eko; provide at least one model API key before running it.
|
|
@@ -128,7 +156,9 @@ The Node.js demo drives Playwright through Eko; provide at least one model API k
|
|
|
128
156
|
### Web Login Demo (`example/web`)
|
|
129
157
|
|
|
130
158
|
```bash
|
|
131
|
-
|
|
159
|
+
cd example/web
|
|
160
|
+
pnpm install
|
|
161
|
+
pnpm run start
|
|
132
162
|
```
|
|
133
163
|
|
|
134
164
|
This starts a React dev server on the default port with a simple login flow that you can automate
|
|
@@ -173,12 +203,8 @@ Eko can be used in multiple environments:
|
|
|
173
203
|
- **Career Co-Pilot**: https://github.com/wangwangbobo/career_skill_learnig.git
|
|
174
204
|
- **Slides Agent by Eko**: https://github.com/MICAHFANG/slides-agent-by-eko
|
|
175
205
|
- **Universal Sidebar Assistant**: https://github.com/San12341/eko-broser-extension.git
|
|
176
|
-
- **48 Hour Browser Challenge**: https://github.com/MoonIRL/eko
|
|
177
206
|
- **Orbit X Smart Terminal**: https://github.com/Skywang16/OrbitX/tree/main
|
|
178
|
-
- **
|
|
179
|
-
- **Vision-Eko Plugin**: https://github.com/dcpwilliam/vision-eko/tree/main/serviceNowPlugin
|
|
180
|
-
- **IC Cafe Platform**: https://cnb.cool/giggle_giraffe/ic-info-wxapp
|
|
181
|
-
- **AI Monitoring Assistant**: https://github.com/yuhoudecheqiancao/eko-ai-monitoring
|
|
207
|
+
- **48 Hour Browser Challenge**: https://github.com/MoonIRL/eko
|
|
182
208
|
|
|
183
209
|
## License
|
|
184
210
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eko-ai/eko-nodejs",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"description": "Empowering language to transform human words into action.",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"chromium-bidi": "^0.12.0",
|
|
38
38
|
"glob": "^11.0.2",
|
|
39
39
|
"playwright": "^1.52.0",
|
|
40
|
-
"@eko-ai/eko": "3.
|
|
40
|
+
"@eko-ai/eko": "3.1.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@rollup/plugin-commonjs": "^28.0.3",
|