claude-code-swarm 0.3.19 → 0.3.20
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-code-swarm",
|
|
3
3
|
"description": "Spin up Claude Code agent teams from openteams YAML topologies with optional MAP (Multi-Agent Protocol) observability and coordination. Provides hooks for session lifecycle, agent spawn/complete tracking, and a /swarm skill to launch team configurations.",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.20",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "alexngai"
|
|
7
7
|
},
|
package/package.json
CHANGED
package/scripts/map-sidecar.mjs
CHANGED
|
@@ -191,12 +191,15 @@ process.on("unhandledRejection", (reason) => {
|
|
|
191
191
|
function attachReconnectionListener(conn) {
|
|
192
192
|
if (!conn?.onReconnection) return;
|
|
193
193
|
|
|
194
|
-
conn.onReconnection((event) => {
|
|
194
|
+
conn.onReconnection(async (event) => {
|
|
195
195
|
if (event.type === "reconnectFailed") {
|
|
196
196
|
log.warn("SDK reconnection exhausted, starting slow retry loop", { error: event.error?.message, intervalMs: RECONNECT_INTERVAL_MS });
|
|
197
197
|
startSlowReconnectLoop();
|
|
198
198
|
} else if (event.type === "reconnected") {
|
|
199
|
-
log.info("SDK reconnected to MAP server");
|
|
199
|
+
log.info("SDK reconnected to MAP server, re-registering agents");
|
|
200
|
+
// The server lost session state on restart — re-register all agents
|
|
201
|
+
// so the hub's connection registry knows about them again.
|
|
202
|
+
await reRegisterAgents(conn);
|
|
200
203
|
} else if (event.type === "disconnected") {
|
|
201
204
|
log.warn("disconnected from MAP server, SDK will attempt reconnection");
|
|
202
205
|
}
|