@clawos-dev/clawd 0.2.4 → 0.2.6
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.cjs +7 -2
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -16388,6 +16388,9 @@ var LocalWsServer = class {
|
|
|
16388
16388
|
}
|
|
16389
16389
|
return;
|
|
16390
16390
|
}
|
|
16391
|
+
} else if (frame.type === "auth") {
|
|
16392
|
+
this.safeSend(this.clients.get(client.id).ws, { type: "auth:ok" });
|
|
16393
|
+
return;
|
|
16391
16394
|
}
|
|
16392
16395
|
if (frame.type === "ping") {
|
|
16393
16396
|
this.safeSend(this.clients.get(client.id).ws, { type: "pong", at: Date.now() });
|
|
@@ -17366,7 +17369,7 @@ function listRecentDirs(store, limit = 50) {
|
|
|
17366
17369
|
}
|
|
17367
17370
|
|
|
17368
17371
|
// src/version.ts
|
|
17369
|
-
var version = "0.2.
|
|
17372
|
+
var version = "0.2.6".length > 0 ? "0.2.6" : "dev";
|
|
17370
17373
|
|
|
17371
17374
|
// src/index.ts
|
|
17372
17375
|
async function startDaemon(config) {
|
|
@@ -17755,7 +17758,9 @@ function buildMethodHandlers(deps) {
|
|
|
17755
17758
|
const caps = await manager.getCapabilities(args.tool);
|
|
17756
17759
|
return { response: { type: "capabilities:get", ...caps } };
|
|
17757
17760
|
},
|
|
17758
|
-
|
|
17761
|
+
// 必须带 type:ext-clawd DaemonConnection.handleFrame 看到 frame.type 不是 string
|
|
17762
|
+
// 直接丢弃整帧,pending requestId 永远不会被匹配,UI 端 info 调用就一直 pending 到超时。
|
|
17763
|
+
info: async () => ({ response: { type: "info", ...buildReadyFrame(deps) } }),
|
|
17759
17764
|
ping: async () => ({ response: { type: "pong", at: Date.now() } })
|
|
17760
17765
|
};
|
|
17761
17766
|
}
|