Agents now connect to the hub with no manual env/flag, and announce themselves on join — restoring the agreed onboarding flow. Auto-connect (resolveContext): - An initialized project WITHOUT a configured serverUrl now falls through to LAN auto-discovery (previously it went straight to local mode, so agents in an initialized repo never found the server). The discovered URL is persisted to the project config, so the next command is instant. - IP-change self-heal: when a configured server is unreachable, runRemote re-discovers the live server and updates the config so the next command reconnects automatically. Presence (join-announce): - POST /announce broadcasts an ephemeral 'agent/joined' event (not written to disk). New `agenthub hello --agent <name> --role <role>` posts it; watchers print "AgentHub: <agent> joined (<role>)". - AgentHubEvent extended with type 'agent' + actions 'joined'/'left'; formatEvent renders presence lines; remoteClient.announce() added. Tests: formatEvent agent lines + /announce SSE e2e. 109/109 green. Bump 0.1.2 -> 0.2.0 (CLI --version too). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
41 lines
931 B
JSON
41 lines
931 B
JSON
{
|
|
"name": "agenthub",
|
|
"version": "0.2.0",
|
|
"description": "Local coordination layer for AI coding agents",
|
|
"type": "module",
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"files": ["dist", "bin"],
|
|
"bin": {
|
|
"agenthub": "./bin/agenthub.js"
|
|
},
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"dev": "tsc --watch",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest"
|
|
},
|
|
"engines": {
|
|
"node": ">=20"
|
|
},
|
|
"dependencies": {
|
|
"@inquirer/prompts": "^7.0.0",
|
|
"better-sqlite3": "^12.0.0",
|
|
"commander": "^13.0.0",
|
|
"fastify": "^5.0.0",
|
|
"yaml": "^2.6.0",
|
|
"zod": "^3.23.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/better-sqlite3": "^7.6.12",
|
|
"@types/node": "^22.0.0",
|
|
"typescript": "^5.7.0",
|
|
"vitest": "^3.0.0"
|
|
},
|
|
"keywords": ["ai", "agents", "claude", "codex", "kimi", "collaboration"],
|
|
"license": "MIT",
|
|
"pnpm": {
|
|
"onlyBuiltDependencies": ["better-sqlite3"]
|
|
}
|
|
}
|