@tjamescouch/agentchat 0.21.1 → 0.22.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/lib/protocol.js +3 -2
- package/package.json +7 -3
package/lib/protocol.js
CHANGED
|
@@ -92,7 +92,8 @@ export const PresenceStatus = {
|
|
|
92
92
|
ONLINE: 'online',
|
|
93
93
|
AWAY: 'away',
|
|
94
94
|
BUSY: 'busy',
|
|
95
|
-
OFFLINE: 'offline'
|
|
95
|
+
OFFLINE: 'offline',
|
|
96
|
+
LISTENING: 'listening'
|
|
96
97
|
};
|
|
97
98
|
|
|
98
99
|
// Proposal status
|
|
@@ -366,7 +367,7 @@ export function validateClientMessage(raw) {
|
|
|
366
367
|
|
|
367
368
|
case ClientMessageType.SET_PRESENCE:
|
|
368
369
|
// Set presence requires: status (online, away, busy, offline)
|
|
369
|
-
const validStatuses = ['online', 'away', 'busy', 'offline'];
|
|
370
|
+
const validStatuses = ['online', 'away', 'busy', 'offline', 'listening'];
|
|
370
371
|
if (!msg.status || !validStatuses.includes(msg.status)) {
|
|
371
372
|
return { valid: false, error: `Invalid presence status. Must be one of: ${validStatuses.join(', ')}` };
|
|
372
373
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tjamescouch/agentchat",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"description": "Real-time IRC-like communication protocol for AI agents",
|
|
5
5
|
"main": "lib/client.js",
|
|
6
6
|
"files": [
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
"start": "node bin/agentchat.js serve",
|
|
17
17
|
"test": "node --test 'test/*.test.js'",
|
|
18
18
|
"test:integration": "node --test test/*.integration.test.js",
|
|
19
|
-
"test:all": "node --test test/*.test.js"
|
|
19
|
+
"test:all": "node --test test/*.test.js",
|
|
20
|
+
"knip": "knip"
|
|
20
21
|
},
|
|
21
22
|
"keywords": [
|
|
22
23
|
"ai",
|
|
@@ -48,5 +49,8 @@
|
|
|
48
49
|
"bugs": {
|
|
49
50
|
"url": "https://github.com/tjamescouch/agentchat/issues"
|
|
50
51
|
},
|
|
51
|
-
"type": "module"
|
|
52
|
+
"type": "module",
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"knip": "^5.83.0"
|
|
55
|
+
}
|
|
52
56
|
}
|