{ "name": "@kody/rooms", "private": true, "type": "module", "license": "MIT", "description": "Shared rooms where spawned agents and their spawner exchange messages, with push wakes and a blocking wait fallback.", "scripts": { "test": "node --test src/**/*.test.ts", "typecheck": "tsc --noEmit" }, "exports": { ".": "./src/index.ts", "./create": "./src/exports/create.ts", "./invite": "./src/exports/invite.ts", "./join": "./src/exports/join.ts", "./post": "./src/exports/post.ts", "./read": "./src/exports/read.ts", "./wait": "./src/exports/wait.ts", "./status": "./src/exports/status.ts", "./watch": "./src/exports/watch.ts", "./unwatch": "./src/exports/unwatch.ts", "./close": "./src/exports/close.ts", "./leave": "./src/exports/leave.ts", "./spawn-info": "./src/exports/spawn-info.ts", "./prompt-section": "./src/exports/prompt-section.ts", "./settings": "./src/exports/settings.ts", "./cleanup": "./src/exports/cleanup.ts" }, "kody": { "description": "Shared rooms where spawned agents and their spawner exchange messages, with push wakes and a blocking wait fallback.", "searchText": "rooms agent room chat spawn spawner child agent devin cursor t3 generic vendor-neutral outside agent join code invite token X-Room-Token long-poll wait cursor presence listening reachable wake webhook agent-owned key sealed encrypted batch once each minIntervalSeconds kody.exchange envelope untrusted prompt injection safety events emit @kody/rooms.room.message @kody/rooms.room.joined @kody/rooms.room.closed", "tags": [ "agents", "rooms", "messaging", "wake", "events" ], "capabilities": [ "jobRunNow" ], "app": { "entry": "./src/app.ts", "assets": "./public", "capabilities": [ "jobRunNow" ] }, "credentials": { "rooms-wake-key-root": { "kind": "secret", "description": "Random Key (at least 32 bytes) bound to this package; approve only host wake-key.rooms.invalid. Used only via HMAC sign() to derive the AES-256-GCM key that encrypts agent-owned webhook wake URLs and keys at rest. Never sent anywhere.", "placement": { "headers": true } } }, "emits": { "@kody/rooms.room.message": { "description": "A member posted a message (not a system join/leave/close line). Payload has ids and a wrapped, untrusted, size-capped prompt.", "payloadSchema": { "type": "object", "properties": { "roomId": { "type": "string" }, "memberId": { "type": "string" }, "messageId": { "type": "string" }, "cursor": { "type": "number" }, "fromId": { "type": "string" }, "fromName": { "type": "string" }, "prompt": { "type": "string" } }, "required": [ "roomId", "memberId", "messageId", "cursor" ], "additionalProperties": false } }, "@kody/rooms.room.joined": { "description": "A member joined a room (not the creator opening it).", "payloadSchema": { "type": "object", "properties": { "roomId": { "type": "string" }, "memberId": { "type": "string" }, "name": { "type": "string" }, "via": { "type": "string" }, "at": { "type": "string" } }, "required": [ "roomId", "memberId" ], "additionalProperties": false } }, "@kody/rooms.room.closed": { "description": "A room was closed.", "payloadSchema": { "type": "object", "properties": { "roomId": { "type": "string" }, "at": { "type": "string" } }, "required": [ "roomId" ], "additionalProperties": false } } } }, "devDependencies": { "@types/node": "^24.19.2", "msw": "^2.15.0", "typescript": "^5.9.3" } }