aegiscode 6.8.29 → 6.8.30
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aegiscode",
|
|
3
3
|
"productName": "AEGIS Code",
|
|
4
|
-
"version": "6.8.
|
|
4
|
+
"version": "6.8.30",
|
|
5
5
|
"description": "aegiscode — the command-line version of AEGIS Desktop. The shared tool surface in your shell, over the same thin transport and tool registry as the MCP plugin and the desktop app. Ships transport + UI only; no brain.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "AEGIS Code",
|
package/vendor/client/aegis.js
CHANGED
|
@@ -1002,6 +1002,8 @@ function createClient(opts = {}) {
|
|
|
1002
1002
|
maxTokens,
|
|
1003
1003
|
effort,
|
|
1004
1004
|
reasoningEffort,
|
|
1005
|
+
tools,
|
|
1006
|
+
toolChoice,
|
|
1005
1007
|
stream = false,
|
|
1006
1008
|
onStream,
|
|
1007
1009
|
signal,
|
|
@@ -1035,6 +1037,13 @@ function createClient(opts = {}) {
|
|
|
1035
1037
|
// failed turn, not a harmless extra key.
|
|
1036
1038
|
...(effort ? { effort } : {}),
|
|
1037
1039
|
...(reasoningEffort ? { reasoning_effort: reasoningEffort } : {}),
|
|
1040
|
+
// Forwarded only when the caller actually supplied a schema — aegis1's
|
|
1041
|
+
// byok_chat_completions (app.py) reads `tools`/`tool_choice` off the body
|
|
1042
|
+
// and passes each to the provider only `if tools:`, so an empty array
|
|
1043
|
+
// here would still be a behavioural change for a provider that treats
|
|
1044
|
+
// `tools: []` differently from the field's plain absence.
|
|
1045
|
+
...(Array.isArray(tools) && tools.length ? { tools } : {}),
|
|
1046
|
+
...(toolChoice ? { tool_choice: toolChoice } : {}),
|
|
1038
1047
|
};
|
|
1039
1048
|
if (model) body.model = model;
|
|
1040
1049
|
const headers = {
|
|
@@ -1392,6 +1392,17 @@ function createLocalEngine({
|
|
|
1392
1392
|
system: opts.system,
|
|
1393
1393
|
messages: opts.messages,
|
|
1394
1394
|
maxTokens: opts.maxTokens,
|
|
1395
|
+
// aegis1's byok_chat_completions has read and forwarded `tools`/
|
|
1396
|
+
// `tool_choice` since 926069b (2026-09-10) — this call simply never
|
|
1397
|
+
// sent them, so every BYOK turn (DeepSeek, Anthropic, OpenAI alike)
|
|
1398
|
+
// ran with no write/exec/editFile schema at all. A model told in its
|
|
1399
|
+
// system prompt that it "writes and edits files" but never given the
|
|
1400
|
+
// JSON shape to do so improvises a DeepSeek-native DSML call from
|
|
1401
|
+
// prose alone when it's confident, and falls back to prose ADVICE
|
|
1402
|
+
// (a shell script to run by hand) when it isn't — which is exactly
|
|
1403
|
+
// the bug this line closes.
|
|
1404
|
+
tools: opts.tools,
|
|
1405
|
+
toolChoice: opts.toolChoice,
|
|
1395
1406
|
// Native effort knob, field and level both from the dialect table.
|
|
1396
1407
|
// `bareModel` is already provider-less, so it matches the dialect
|
|
1397
1408
|
// regexes without further stripping. Only a dialect whose field is
|
|
@@ -1530,12 +1541,19 @@ function createLocalEngine({
|
|
|
1530
1541
|
const signal = controller.signal;
|
|
1531
1542
|
|
|
1532
1543
|
// A caller can opt out of the agent loop entirely (`tools: false`) and get
|
|
1533
|
-
// the old single-shot turn back. byok
|
|
1534
|
-
//
|
|
1535
|
-
//
|
|
1536
|
-
//
|
|
1537
|
-
//
|
|
1538
|
-
|
|
1544
|
+
// the old single-shot turn back. byok used to be forced into that same
|
|
1545
|
+
// single-shot shape unconditionally: aegis1's byok relay had no
|
|
1546
|
+
// tools/tool_choice parameter at all, so sending schemas would build a
|
|
1547
|
+
// prompt promising tool access the transport silently dropped — the model
|
|
1548
|
+
// would reason about exec/readFile and never see a result. That stopped
|
|
1549
|
+
// being true at aegis1 926069b (2026-09-10, byok_chat_completions reads
|
|
1550
|
+
// and forwards both), but this carve-out was never revisited, so every
|
|
1551
|
+
// BYOK turn since kept running with no tool schema at all regardless —
|
|
1552
|
+
// the model told in its own system prompt that it writes and edits files,
|
|
1553
|
+
// and never given the JSON shape to do so. Reported live: asked to save a
|
|
1554
|
+
// file to the Desktop, DeepSeek had no write tool to call and answered
|
|
1555
|
+
// with a PowerShell script for the user to run by hand instead.
|
|
1556
|
+
const toolsEnabled = !(payload && payload.tools === false);
|
|
1539
1557
|
const toolSchemas = toolsEnabled ? T.toolsFor({ includeSubagent: depth < MAX_SUBAGENT_DEPTH }) : [];
|
|
1540
1558
|
const toolChoice = (payload && payload.toolChoice) || null;
|
|
1541
1559
|
|