henergyqueai 0.9.4 → 0.9.5
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/bin/henergyqueai.js +1 -1
- package/package.json +1 -1
- package/src/ide-server.js +7 -1
package/bin/henergyqueai.js
CHANGED
|
@@ -36,7 +36,7 @@ import { expandReferences } from "../src/references.js";
|
|
|
36
36
|
import { stopAll } from "../src/background.js";
|
|
37
37
|
import { loadHooks } from "../src/hooks.js";
|
|
38
38
|
|
|
39
|
-
const VERSION = "0.9.
|
|
39
|
+
const VERSION = "0.9.5";
|
|
40
40
|
// Le papillon, une ligne vide, le trait, l'aide et une ligne vide.
|
|
41
41
|
const HEADER_HEIGHT = LOGO_HEIGHT + 4;
|
|
42
42
|
const BODY_ROW = HEADER_HEIGHT + 1;
|
package/package.json
CHANGED
package/src/ide-server.js
CHANGED
|
@@ -188,7 +188,13 @@ export async function runIdeServer(session, messages, { saveConfig, version }) {
|
|
|
188
188
|
});
|
|
189
189
|
} catch (error) {
|
|
190
190
|
aborted = controller.signal.aborted;
|
|
191
|
-
|
|
191
|
+
// Connexion révoquée depuis le site : on oublie la clé et l'extension
|
|
192
|
+
// affiche son bouton « Se connecter », sans renvoyer vers le terminal.
|
|
193
|
+
if (!aborted && error.status === 401) {
|
|
194
|
+
session.key = null;
|
|
195
|
+
await saveConfig({ key: undefined }).catch(() => {});
|
|
196
|
+
send({ type: "auth-required", reason: "revoked" });
|
|
197
|
+
} else send(aborted ? { type: "interrupted" } : { type: "error", message: error.message });
|
|
192
198
|
} finally {
|
|
193
199
|
settleAll();
|
|
194
200
|
for (const message of messages)
|