episoda 0.2.55 → 0.2.56
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.
|
@@ -2319,6 +2319,14 @@ var require_websocket_client = __commonJS({
|
|
|
2319
2319
|
connected: this.isConnected
|
|
2320
2320
|
};
|
|
2321
2321
|
}
|
|
2322
|
+
/**
|
|
2323
|
+
* EP949: Update the access token (used when server sends token_refresh message)
|
|
2324
|
+
* This updates the in-memory token used for reconnection.
|
|
2325
|
+
*/
|
|
2326
|
+
updateToken(newToken) {
|
|
2327
|
+
console.log("[EpisodaClient] EP949: Access token updated");
|
|
2328
|
+
this.token = newToken;
|
|
2329
|
+
}
|
|
2322
2330
|
/**
|
|
2323
2331
|
* EP605: Update last command time to reset idle detection
|
|
2324
2332
|
* Call this when a command is received/executed
|
|
@@ -2718,7 +2726,7 @@ var require_package = __commonJS({
|
|
|
2718
2726
|
"package.json"(exports2, module2) {
|
|
2719
2727
|
module2.exports = {
|
|
2720
2728
|
name: "episoda",
|
|
2721
|
-
version: "0.2.
|
|
2729
|
+
version: "0.2.56",
|
|
2722
2730
|
description: "CLI tool for Episoda local development workflow orchestration",
|
|
2723
2731
|
main: "dist/index.js",
|
|
2724
2732
|
types: "dist/index.d.ts",
|
|
@@ -8802,6 +8810,11 @@ var Daemon = class _Daemon {
|
|
|
8802
8810
|
client.on("error", (message) => {
|
|
8803
8811
|
console.error(`[Daemon] Server error for ${projectId}:`, message);
|
|
8804
8812
|
});
|
|
8813
|
+
client.on("token_refresh", (message) => {
|
|
8814
|
+
const tokenMsg = message;
|
|
8815
|
+
console.log(`[Daemon] EP949: Received token refresh for ${projectId}`);
|
|
8816
|
+
client.updateToken(tokenMsg.accessToken);
|
|
8817
|
+
});
|
|
8805
8818
|
client.on("disconnected", (event) => {
|
|
8806
8819
|
const disconnectEvent = event;
|
|
8807
8820
|
console.log(`[Daemon] Connection closed for ${projectId}: code=${disconnectEvent.code}, willReconnect=${disconnectEvent.willReconnect}`);
|