henergyqueai 0.9.4 → 0.9.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/bin/henergyqueai.js +3 -3
- package/package.json +1 -1
- package/src/ide-server.js +8 -2
- package/src/terminal-app.js +1 -1
package/bin/henergyqueai.js
CHANGED
|
@@ -36,13 +36,13 @@ 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.6";
|
|
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;
|
|
43
43
|
const CONFIG = path.join(homedir(), ".henergyqueai", "config.json");
|
|
44
44
|
const DEFAULT_BASE = process.env.HENERGYQUEAI_URL || "https://henergyqueai.fr";
|
|
45
|
-
const MODELS = { aelyr: "Aelyr", oryne: "Oryne", velys: "Velys" };
|
|
45
|
+
const MODELS = { aelyr: "Aelyr 4.2 Pro", oryne: "Oryne 2.6", velys: "Velys 3.0" };
|
|
46
46
|
|
|
47
47
|
const requestContent = (content, session) => {
|
|
48
48
|
const task =
|
|
@@ -320,7 +320,7 @@ function header(session) {
|
|
|
320
320
|
const place = session.root.replace(homedir(), "~");
|
|
321
321
|
const facts = [
|
|
322
322
|
`${brand("HenergyqueAI")} ${style.dim(`v${VERSION}`)}`,
|
|
323
|
-
`${style.bold(MODELS[session.modelId] || "Velys")} ${style.dim(`· ${session.mode}`)}`,
|
|
323
|
+
`${style.bold(MODELS[session.modelId] || "Velys 3.0")} ${style.dim(`· ${session.mode}`)}`,
|
|
324
324
|
style.dim(place),
|
|
325
325
|
"",
|
|
326
326
|
style.dim("Entrée à vide · menu ↑↓"),
|
package/package.json
CHANGED
package/src/ide-server.js
CHANGED
|
@@ -16,7 +16,7 @@ import { conversationMarkdown } from "./export.js";
|
|
|
16
16
|
// le moteur. Chaque ligne reçue sur l'entrée standard est une commande JSON,
|
|
17
17
|
// chaque ligne écrite sur la sortie standard un événement JSON.
|
|
18
18
|
|
|
19
|
-
const MODELS = { velys: "Velys", oryne: "Oryne", aelyr: "Aelyr" };
|
|
19
|
+
const MODELS = { velys: "Velys 3.0", oryne: "Oryne 2.6", aelyr: "Aelyr 4.2 Pro" };
|
|
20
20
|
const SHELL_MARKER = "\n\n--- Commandes lancées par l’utilisateur ---\n";
|
|
21
21
|
const NOTE_MARKER = "\n\n--- Consignes ajoutées au projet ---\n";
|
|
22
22
|
const INIT_PROMPT =
|
|
@@ -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)
|
package/src/terminal-app.js
CHANGED
|
@@ -38,7 +38,7 @@ const VERSION = (() => {
|
|
|
38
38
|
}
|
|
39
39
|
})();
|
|
40
40
|
|
|
41
|
-
const MODELS = { velys: "Velys", oryne: "Oryne", aelyr: "Aelyr" };
|
|
41
|
+
const MODELS = { velys: "Velys 3.0", oryne: "Oryne 2.6", aelyr: "Aelyr 4.2 Pro" };
|
|
42
42
|
const MODEL_NOTES = {
|
|
43
43
|
velys: "Pour vos idées du quotidien",
|
|
44
44
|
oryne: "Pour écrire et améliorer votre code",
|