agent-world 0.11.0 → 0.11.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 +45 -4
- package/package.json +7 -3
package/README.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Agent World
|
|
2
2
|
|
|
3
|
+
[](https://github.com/yysun/agent-world/releases)
|
|
4
|
+
|
|
5
|
+
<p align="center">
|
|
6
|
+
<img src="electron/assets/icons/agent-world-icon.svg" alt="Agent World Logo" width="120" />
|
|
7
|
+
</p>
|
|
8
|
+
|
|
3
9
|
*Build AI agent teams with just words—no coding required.*
|
|
4
10
|
|
|
5
11
|
## Why Agent World?
|
|
@@ -29,9 +35,27 @@ Paste that prompt. Agents come alive instantly.
|
|
|
29
35
|
- ✅ No Code Required - Agents are defined entirely in natural language
|
|
30
36
|
- ✅ Natural Communication - Agents understand context and conversations
|
|
31
37
|
- ✅ Built-in Rules for Messages - Turn limits to prevent loops
|
|
32
|
-
- ✅
|
|
38
|
+
- ✅ Concurrent Chat Sessions - Isolated `chatId` routing enables parallel conversations
|
|
39
|
+
- ✅ Progressive Agent Skills - Skills are discovered and loaded on demand via `load_skill`
|
|
40
|
+
- ✅ Cross-Client HITL Approval - Option-based approvals in CLI, Web, and Electron
|
|
41
|
+
- ✅ Runtime Controls - Session-scoped send/stop flows and tool lifecycle visibility
|
|
42
|
+
- ✅ Safer Tool Execution - Trusted-CWD and argument-scope guards for `shell_cmd`
|
|
33
43
|
- ✅ Multiple AI Providers - Use different models for different agents
|
|
34
|
-
- ✅
|
|
44
|
+
- ✅ Web + CLI + Electron - Modern interfaces with real-time streaming and status feedback
|
|
45
|
+
|
|
46
|
+
## Latest Highlights (v0.11.0)
|
|
47
|
+
|
|
48
|
+
- Electron desktop app with workspace-folder world loading, recents, and improved world info
|
|
49
|
+
- Concurrent chat session isolation with chat-scoped event routing and stop controls
|
|
50
|
+
- World-level `mainAgent` routing and agent-level `autoReply` configuration
|
|
51
|
+
- Core-owned edit/resubmit and chat-title flows for consistent behavior across clients
|
|
52
|
+
- World variables as `.env` text with runtime interpolation support
|
|
53
|
+
- Progressive skills (`load_skill`) with skill registry sync and HITL-gated activation
|
|
54
|
+
|
|
55
|
+
## Release Notes
|
|
56
|
+
|
|
57
|
+
- **v0.11.0** - Electron desktop workflow, concurrent chat sessions, main-agent routing, progressive skills + HITL, and runtime safety hardening
|
|
58
|
+
- Full history: [CHANGELOG.md](CHANGELOG.md)
|
|
35
59
|
|
|
36
60
|
## What You Can Build
|
|
37
61
|
|
|
@@ -134,6 +158,11 @@ npx agent-world -w default-world "hi"
|
|
|
134
158
|
echo "hi" | npx agent-world -w default-world
|
|
135
159
|
```
|
|
136
160
|
|
|
161
|
+
**Option 3: Electron Desktop App (repo)**
|
|
162
|
+
```bash
|
|
163
|
+
npm run electron:dev
|
|
164
|
+
```
|
|
165
|
+
|
|
137
166
|
## Project Structure
|
|
138
167
|
|
|
139
168
|
See [Project Structure Documentation](project.md)
|
|
@@ -188,6 +217,13 @@ export OLLAMA_BASE_URL="http://localhost:11434"
|
|
|
188
217
|
|
|
189
218
|
Or create a `.env` file in your working directory with:
|
|
190
219
|
|
|
220
|
+
```bash
|
|
221
|
+
OPENAI_API_KEY=your-key-here
|
|
222
|
+
ANTHROPIC_API_KEY=your-key-here
|
|
223
|
+
GOOGLE_API_KEY=your-key-here
|
|
224
|
+
OLLAMA_BASE_URL=http://localhost:11434
|
|
225
|
+
```
|
|
226
|
+
|
|
191
227
|
## Testing
|
|
192
228
|
|
|
193
229
|
**Run all tests:**
|
|
@@ -230,7 +266,7 @@ LOG_EVENTS_AGENT=debug LOG_LLM=debug npm run web:dev
|
|
|
230
266
|
|
|
231
267
|
**For complete logging documentation**, see [Logging Guide](docs/logging-guide.md).
|
|
232
268
|
|
|
233
|
-
##
|
|
269
|
+
## Storage Configuration
|
|
234
270
|
|
|
235
271
|
### World Database Setup
|
|
236
272
|
|
|
@@ -246,6 +282,7 @@ export AGENT_WORLD_DATA_PATH=./data/worlds
|
|
|
246
282
|
|
|
247
283
|
## Learn More
|
|
248
284
|
|
|
285
|
+
- **[Docs Home](docs/docs-home.md)** - Central navigation page for all major documentation
|
|
249
286
|
- **[Building Agents with Just Words](docs/Building%20Agents%20with%20Just%20Words.md)** - Complete guide with examples
|
|
250
287
|
- **[Shell Command Tool (shell_cmd)](docs/shell-cmd-tool.md)** - Built-in tool for executing shell commands
|
|
251
288
|
- **[HITL Approval Flow](docs/hitl-approval-flow.md)** - Option-based approval flow across Core/Electron/Web/CLI
|
|
@@ -260,11 +297,15 @@ Agent World includes built-in tools that are automatically available to all agen
|
|
|
260
297
|
### shell_cmd
|
|
261
298
|
Execute shell commands with full output capture and execution history. Perfect for file operations, system information, and automation tasks.
|
|
262
299
|
|
|
300
|
+
- Enforces trusted working-directory scope from world/tool context
|
|
301
|
+
- Validates command/path arguments to prevent out-of-scope traversal patterns
|
|
302
|
+
- Supports lifecycle tracking and session-scoped cancellation in active runtimes
|
|
303
|
+
|
|
263
304
|
```typescript
|
|
264
305
|
// Available to LLMs as 'shell_cmd' tool
|
|
265
306
|
{
|
|
266
307
|
"command": "ls",
|
|
267
|
-
|
|
308
|
+
"parameters": ["-la", "./"]
|
|
268
309
|
}
|
|
269
310
|
```
|
|
270
311
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-world",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -26,20 +26,24 @@
|
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
28
|
"dev": "npm run web:dev",
|
|
29
|
-
"
|
|
29
|
+
"dev:reset": "for p in 3000 8080; do pids=$(lsof -tiTCP:$p -sTCP:LISTEN 2>/dev/null || true); if [ -n \"$pids\" ]; then kill $pids; fi; done",
|
|
30
|
+
"web:dev": "npm-run-all --parallel server:watch web:vite:wait",
|
|
30
31
|
"cli:dev": "npx tsx --watch cli/index.ts",
|
|
31
|
-
"electron:dev": "npm-run-all --sequential build:core electron:
|
|
32
|
+
"electron:dev": "npm-run-all --sequential build:core electron:dev:watch",
|
|
33
|
+
"electron:dev:watch": "npm-run-all --parallel build:core:watch electron:vite",
|
|
32
34
|
"start": "npm run web:start",
|
|
33
35
|
"web:start": "npm run build && npm run server:start",
|
|
34
36
|
"cli:start": "npm run build && node dist/cli/index.js",
|
|
35
37
|
"electron:start": "npm run build:core && npm run start --prefix electron",
|
|
36
38
|
"build": "npm run build --workspace=core && tsc --project tsconfig.build.json && npm run build --workspace=web",
|
|
37
39
|
"build:core": "npm run build --workspace=core",
|
|
40
|
+
"build:core:watch": "npm run build --workspace=core -- --watch --preserveWatchOutput",
|
|
38
41
|
"check": "tsc --noEmit --project tsconfig.build.json && npm run check --workspace=core && npm run check --workspace=web",
|
|
39
42
|
"server:dev": "npx tsx server/index.ts",
|
|
40
43
|
"server:watch": "npx tsx --watch server/index.ts",
|
|
41
44
|
"server:start": "node dist/server/index.js",
|
|
42
45
|
"web:vite": "npm run dev --workspace=web",
|
|
46
|
+
"web:vite:wait": "wait-on tcp:127.0.0.1:3000 && npm run web:vite",
|
|
43
47
|
"electron:vite": "npm run dev --prefix electron",
|
|
44
48
|
"test": "vitest run",
|
|
45
49
|
"test:watch": "vitest",
|