henergyqueai 0.8.0 → 0.8.1
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/agent-loop.js +1 -0
- package/src/client.js +3 -1
- package/src/ide-server.js +1 -0
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.8.
|
|
39
|
+
const VERSION = "0.8.1";
|
|
40
40
|
const HEADER_HEIGHT = 9;
|
|
41
41
|
const BODY_ROW = HEADER_HEIGHT + 1;
|
|
42
42
|
const CONFIG = path.join(homedir(), ".henergyqueai", "config.json");
|
package/package.json
CHANGED
package/src/agent-loop.js
CHANGED
|
@@ -250,6 +250,7 @@ export async function runAgentTurn(session, messages, options = {}) {
|
|
|
250
250
|
messages,
|
|
251
251
|
tools: session.tools,
|
|
252
252
|
modelId: session.modelId,
|
|
253
|
+
surface: session.surface,
|
|
253
254
|
signal,
|
|
254
255
|
onThinking: ({ tokens } = {}) =>
|
|
255
256
|
send({ type: "thinking", round, tokens: Number(tokens) || 0 }),
|
package/src/client.js
CHANGED
|
@@ -34,6 +34,7 @@ export async function ask({
|
|
|
34
34
|
messages,
|
|
35
35
|
tools,
|
|
36
36
|
modelId,
|
|
37
|
+
surface,
|
|
37
38
|
onDelta,
|
|
38
39
|
onThinking,
|
|
39
40
|
signal,
|
|
@@ -45,7 +46,8 @@ export async function ask({
|
|
|
45
46
|
"Content-Type": "application/json",
|
|
46
47
|
Authorization: `Bearer ${key}`,
|
|
47
48
|
},
|
|
48
|
-
|
|
49
|
+
// surface : d'où l'assistant est utilisé (terminal ou VS Code).
|
|
50
|
+
body: JSON.stringify({ messages, tools, modelId, ...(surface ? { surface } : {}) }),
|
|
49
51
|
});
|
|
50
52
|
|
|
51
53
|
if (
|
package/src/ide-server.js
CHANGED
|
@@ -82,6 +82,7 @@ export async function runIdeServer(session, messages, { saveConfig, version }) {
|
|
|
82
82
|
console.log = (...args) => console.error(...args);
|
|
83
83
|
console.info = console.log;
|
|
84
84
|
|
|
85
|
+
session.surface = "vscode";
|
|
85
86
|
const known = new Set(session.tools.map((tool) => tool.function?.name));
|
|
86
87
|
session.tools = [...session.tools, ...interactiveDefinitions.filter((tool) => !known.has(tool.function.name))];
|
|
87
88
|
let checkpoints = createCheckpoints(session.root);
|