agent-world 0.6.2 → 0.7.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/dist/cli/index.js +16 -19
- package/package.json +10 -5
package/dist/cli/index.js
CHANGED
|
@@ -529,25 +529,22 @@ async function runInteractiveMode(options) {
|
|
|
529
529
|
!result.message.includes('Message sent to world')) {
|
|
530
530
|
console.log(success(result.message));
|
|
531
531
|
}
|
|
532
|
-
if (result.data && !(result.data.sender === 'HUMAN')) {
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
}
|
|
549
|
-
}
|
|
550
|
-
}
|
|
532
|
+
// if (result.data && !(result.data.sender === 'HUMAN')) {
|
|
533
|
+
// // Print a concise summary of result.data if present and not already in message
|
|
534
|
+
// if (result.data) {
|
|
535
|
+
// if (typeof result.data === 'string') {
|
|
536
|
+
// console.log(`${boldMagenta('Data:')} ${result.data}`);
|
|
537
|
+
// } else if (result.data.name) {
|
|
538
|
+
// // If it's an agent or world object
|
|
539
|
+
// console.log(`${boldMagenta('Data:')} ${result.data.name}`);
|
|
540
|
+
// } else if (Array.isArray(result.data)) {
|
|
541
|
+
// console.log(`${boldMagenta('Data:')} ${result.data.length} items`);
|
|
542
|
+
// } else {
|
|
543
|
+
// // Fallback: print keys
|
|
544
|
+
// console.log(`${boldMagenta('Data:')} ${Object.keys(result.data).join(', ')}`);
|
|
545
|
+
// }
|
|
546
|
+
// }
|
|
547
|
+
// }
|
|
551
548
|
// Refresh world if needed
|
|
552
549
|
if (result.refreshWorld && currentWorldName && worldState) {
|
|
553
550
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-world",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -29,7 +29,11 @@
|
|
|
29
29
|
"start": "node dist/server/index.js",
|
|
30
30
|
"cli": "npx tsx cli/index.ts",
|
|
31
31
|
"server": "npx tsx server/index.ts",
|
|
32
|
-
"dev": "
|
|
32
|
+
"dev": "npm-run-all --parallel server:watch web:dev",
|
|
33
|
+
"server:watch": "npx tsx --watch server/index.ts",
|
|
34
|
+
"web:dev": "npm-run-all --sequential web:wait web:start",
|
|
35
|
+
"web:wait": "wait-on http://127.0.0.1:3000/health",
|
|
36
|
+
"web:start": "npm run dev --workspace=web",
|
|
33
37
|
"test": "jest --config jest.config.js",
|
|
34
38
|
"test:db": "npx tsx tests/db/migration-tests.ts",
|
|
35
39
|
"check": "tsc --noEmit && npm run check --workspace=web",
|
|
@@ -61,11 +65,12 @@
|
|
|
61
65
|
"@types/cors": "^2.8.19",
|
|
62
66
|
"@types/express": "^4.17.23",
|
|
63
67
|
"@types/jest": "^30.0.0",
|
|
64
|
-
"@types/node": "^24.
|
|
68
|
+
"@types/node": "^24.9.1",
|
|
65
69
|
"commander": "^14.0.0",
|
|
66
|
-
"concurrently": "^9.2.0",
|
|
67
70
|
"jest": "^30.0.5",
|
|
68
|
-
"
|
|
71
|
+
"npm-run-all": "^4.1.5",
|
|
72
|
+
"ts-jest": "^29.4.1",
|
|
73
|
+
"wait-on": "^9.0.1"
|
|
69
74
|
},
|
|
70
75
|
"engines": {
|
|
71
76
|
"node": ">=20.0.0"
|