@project-ava-supernova/core 0.2.189 → 0.2.191
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/dist/agent/agent.d.ts +1 -1
- package/dist/agent/agent.d.ts.map +1 -1
- package/dist/agent/agent.js +44 -30
- package/dist/agent/agent.js.map +1 -1
- package/dist/agent/system-prompt.d.ts.map +1 -1
- package/dist/agent/system-prompt.js +1224 -1223
- package/dist/agent/system-prompt.js.map +1 -1
- package/dist/audit/cost.d.ts.map +1 -1
- package/dist/audit/cost.js +10 -9
- package/dist/audit/cost.js.map +1 -1
- package/dist/auto/auto-coordinator.d.ts +1 -1
- package/dist/auto/auto-coordinator.js +2 -2
- package/dist/auto/coordinator-model.d.ts +6 -4
- package/dist/auto/coordinator-model.d.ts.map +1 -1
- package/dist/auto/coordinator-model.js +4 -3
- package/dist/auto/coordinator-model.js.map +1 -1
- package/dist/auto/intent-gate.d.ts +2 -2
- package/dist/auto/intent-gate.d.ts.map +1 -1
- package/dist/auto/intent-gate.js +4 -5
- package/dist/auto/intent-gate.js.map +1 -1
- package/dist/auto/longxiang-router.d.ts +5 -1
- package/dist/auto/longxiang-router.d.ts.map +1 -1
- package/dist/auto/longxiang-router.js +5 -1
- package/dist/auto/longxiang-router.js.map +1 -1
- package/dist/auto/model-router.d.ts.map +1 -1
- package/dist/auto/model-router.js +17 -14
- package/dist/auto/model-router.js.map +1 -1
- package/dist/auto/supernova-router.d.ts +2 -3
- package/dist/auto/supernova-router.d.ts.map +1 -1
- package/dist/auto/supernova-router.js +2 -3
- package/dist/auto/supernova-router.js.map +1 -1
- package/dist/auto/task-classifier.d.ts.map +1 -1
- package/dist/auto/task-classifier.js +3 -1
- package/dist/auto/task-classifier.js.map +1 -1
- package/dist/docs/content/concepts.js +7 -7
- package/dist/docs/content/concepts.js.map +1 -1
- package/dist/docs/data/providers.d.ts.map +1 -1
- package/dist/docs/data/providers.js +2 -4
- package/dist/docs/data/providers.js.map +1 -1
- package/dist/docs/i18n/translations.d.ts.map +1 -1
- package/dist/docs/i18n/translations.js +1 -1
- package/dist/docs/i18n/translations.js.map +1 -1
- package/dist/i18n/keep-english.d.ts.map +1 -1
- package/dist/i18n/keep-english.js +3 -0
- package/dist/i18n/keep-english.js.map +1 -1
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/ar.js +47 -0
- package/dist/i18n/locales/ar.js.map +1 -1
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/de.js +47 -0
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +47 -0
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +47 -0
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/es.js +47 -0
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/fr.js +47 -0
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hi.d.ts.map +1 -1
- package/dist/i18n/locales/hi.js +47 -0
- package/dist/i18n/locales/hi.js.map +1 -1
- package/dist/i18n/locales/id.d.ts.map +1 -1
- package/dist/i18n/locales/id.js +47 -0
- package/dist/i18n/locales/id.js.map +1 -1
- package/dist/i18n/locales/it.d.ts.map +1 -1
- package/dist/i18n/locales/it.js +47 -0
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/ja.js +47 -0
- package/dist/i18n/locales/ja.js.map +1 -1
- package/dist/i18n/locales/ko.d.ts.map +1 -1
- package/dist/i18n/locales/ko.js +47 -0
- package/dist/i18n/locales/ko.js.map +1 -1
- package/dist/i18n/locales/nl.d.ts.map +1 -1
- package/dist/i18n/locales/nl.js +47 -0
- package/dist/i18n/locales/nl.js.map +1 -1
- package/dist/i18n/locales/pl.d.ts.map +1 -1
- package/dist/i18n/locales/pl.js +47 -0
- package/dist/i18n/locales/pl.js.map +1 -1
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/pt.js +47 -0
- package/dist/i18n/locales/pt.js.map +1 -1
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/locales/ru.js +47 -0
- package/dist/i18n/locales/ru.js.map +1 -1
- package/dist/i18n/locales/th.d.ts.map +1 -1
- package/dist/i18n/locales/th.js +47 -0
- package/dist/i18n/locales/th.js.map +1 -1
- package/dist/i18n/locales/tr.d.ts.map +1 -1
- package/dist/i18n/locales/tr.js +47 -0
- package/dist/i18n/locales/tr.js.map +1 -1
- package/dist/i18n/locales/uk.d.ts.map +1 -1
- package/dist/i18n/locales/uk.js +47 -0
- package/dist/i18n/locales/uk.js.map +1 -1
- package/dist/i18n/locales/vi.d.ts.map +1 -1
- package/dist/i18n/locales/vi.js +47 -0
- package/dist/i18n/locales/vi.js.map +1 -1
- package/dist/i18n/locales/zh-CN.d.ts.map +1 -1
- package/dist/i18n/locales/zh-CN.js +47 -0
- package/dist/i18n/locales/zh-CN.js.map +1 -1
- package/dist/i18n/locales/zh-TW.d.ts.map +1 -1
- package/dist/i18n/locales/zh-TW.js +47 -0
- package/dist/i18n/locales/zh-TW.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/mcp/connection.d.ts +37 -1
- package/dist/mcp/connection.d.ts.map +1 -1
- package/dist/mcp/connection.js +146 -3
- package/dist/mcp/connection.js.map +1 -1
- package/dist/mcp/index.d.ts +9 -2
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +5 -2
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/manager.d.ts +61 -4
- package/dist/mcp/manager.d.ts.map +1 -1
- package/dist/mcp/manager.js +211 -15
- package/dist/mcp/manager.js.map +1 -1
- package/dist/mcp/page.d.ts +1 -1
- package/dist/mcp/page.d.ts.map +1 -1
- package/dist/mcp/page.js +15 -2
- package/dist/mcp/page.js.map +1 -1
- package/dist/mcp/permissions.d.ts +29 -9
- package/dist/mcp/permissions.d.ts.map +1 -1
- package/dist/mcp/permissions.js +26 -15
- package/dist/mcp/permissions.js.map +1 -1
- package/dist/mcp/servers-config.d.ts +7 -0
- package/dist/mcp/servers-config.d.ts.map +1 -1
- package/dist/mcp/servers-config.js +2 -0
- package/dist/mcp/servers-config.js.map +1 -1
- package/dist/mcp/suggested.d.ts +20 -5
- package/dist/mcp/suggested.d.ts.map +1 -1
- package/dist/mcp/suggested.js +29 -6
- package/dist/mcp/suggested.js.map +1 -1
- package/dist/mcp/tools.d.ts.map +1 -1
- package/dist/mcp/tools.js +7 -1
- package/dist/mcp/tools.js.map +1 -1
- package/dist/mcp/unreal-context.d.ts +36 -0
- package/dist/mcp/unreal-context.d.ts.map +1 -0
- package/dist/mcp/unreal-context.js +163 -0
- package/dist/mcp/unreal-context.js.map +1 -0
- package/dist/mcp/unreal-install.d.ts +67 -0
- package/dist/mcp/unreal-install.d.ts.map +1 -0
- package/dist/mcp/unreal-install.js +182 -0
- package/dist/mcp/unreal-install.js.map +1 -0
- package/dist/mcp/unreal-panel.d.ts +38 -0
- package/dist/mcp/unreal-panel.d.ts.map +1 -0
- package/dist/mcp/unreal-panel.js +59 -0
- package/dist/mcp/unreal-panel.js.map +1 -0
- package/dist/mcp/unreal.d.ts +94 -0
- package/dist/mcp/unreal.d.ts.map +1 -0
- package/dist/mcp/unreal.js +174 -0
- package/dist/mcp/unreal.js.map +1 -0
- package/dist/memory-v4/model.js +1 -1
- package/dist/memory-v4/model.js.map +1 -1
- package/dist/personas/conductor.d.ts +1 -1
- package/dist/personas/types.d.ts +1 -1
- package/dist/providers/qwen/models.d.ts.map +1 -1
- package/dist/providers/qwen/models.js +52 -35
- package/dist/providers/qwen/models.js.map +1 -1
- package/dist/providers/request-shaping/model-ids.d.ts +3 -1
- package/dist/providers/request-shaping/model-ids.d.ts.map +1 -1
- package/dist/providers/request-shaping/model-ids.js +14 -7
- package/dist/providers/request-shaping/model-ids.js.map +1 -1
- package/dist/tools/blender/build-model.js +1 -1
- package/dist/tools/blender/build-model.js.map +1 -1
- package/dist/tools/blender/live-tools.js +2 -2
- package/dist/tools/blender/live-tools.js.map +1 -1
- package/dist/tools/blender/runner-py.d.ts.map +1 -1
- package/dist/tools/blender/runner-py.js +3 -1
- package/dist/tools/blender/runner-py.js.map +1 -1
- package/dist/tools/connection-tools.js +1 -1
- package/dist/tools/connection-tools.js.map +1 -1
- package/dist/tools/tool-registry.d.ts.map +1 -1
- package/dist/tools/tool-registry.js +5 -3
- package/dist/tools/tool-registry.js.map +1 -1
- package/dist/tools/tool-request-words.d.ts.map +1 -1
- package/dist/tools/tool-request-words.js +20 -2
- package/dist/tools/tool-request-words.js.map +1 -1
- package/package.json +1 -1
package/dist/agent/agent.d.ts
CHANGED
|
@@ -132,7 +132,7 @@ export declare const CHANGING_TOOLS: Set<string>;
|
|
|
132
132
|
export declare function modeAllowedTools(mode: string): ReadonlySet<string> | null;
|
|
133
133
|
/** Whether a mode id is a talking variant (`social:talking`, `work:talking`). */
|
|
134
134
|
export declare function isTalkingMode(mode: string | null | undefined): boolean;
|
|
135
|
-
export declare function toolPassesModeGate(name: string, modeAllowed: Set<string>, mode?: string | null): boolean;
|
|
135
|
+
export declare function toolPassesModeGate(name: string, modeAllowed: Set<string>, mode?: string | null, args?: Record<string, unknown>): boolean;
|
|
136
136
|
/**
|
|
137
137
|
* The hard ceiling on what a persona may be handed in a READ-ONLY mode.
|
|
138
138
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/agent/agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAqC,MAAM,uBAAuB,CAAC;AAEzF,OAAO,KAAK,EACV,OAAO,EACP,gBAAgB,EAChB,QAAQ,EACR,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AAe,CACnB,QAAQ,EAAE,OAAO,EAAE,EACnB,OAAO,EAAE,iBAAiB,EAC1B,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,OAAO,EAAE,CAAC;IA6PrB,OAAO,CAAC,MAAM,CAAC,kBAAkB;IAMjC,OAAO,CAAC,qBAAqB;IA4B7B,8DAA8D;IAC9D,kBAAkB,CAAC,QAAQ,EAAE,OAAO,EAAE,GAAG,MAAM;IAM/C;;;;OAIG;IACH;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,OAAO,CAAC,kBAAkB;IAyE1B,OAAO,CAAC,gBAAgB;IAyDxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,OAAO,CAAC,sBAAsB;IAkE9B;;;;;;;;;;;;;;;;;OAiBG;IACH,OAAO,CAAC,iBAAiB;IA8DzB;;;;;;;OAOG;IACH,cAAc,CAAC,QAAQ,EAAE,OAAO,EAAE,GAAG,OAAO,EAAE;IAI9C;;;;OAIG;IACH,OAAO,CAAC,cAAc;CAoDvB"}
|
package/dist/agent/agent.js
CHANGED
|
@@ -854,10 +854,12 @@ function allowedToolsForMode(mode) {
|
|
|
854
854
|
const base = MODE_ALLOWED_TOOLS[mode.slice(0, -TALKING_MODE_SUFFIX.length)];
|
|
855
855
|
return base ? talkingToolsFor(base) : undefined;
|
|
856
856
|
}
|
|
857
|
-
export function toolPassesModeGate(name, modeAllowed, mode) {
|
|
857
|
+
export function toolPassesModeGate(name, modeAllowed, mode, args) {
|
|
858
858
|
// Servers the person added: Code and Chat, Plan's read-only ones, no room.
|
|
859
|
+
// With a call's args the check is for that call: Plan may be offered
|
|
860
|
+
// Unreal's call_tool, and then only its read tools run (permissions.ts).
|
|
859
861
|
if (isUserMcpTool(name))
|
|
860
|
-
return mcpToolInMode(name, mode);
|
|
862
|
+
return mcpToolInMode(name, mode, args);
|
|
861
863
|
// Tools a connected program brings (Blender Live's blender_live_*) are only
|
|
862
864
|
// known at run time; they belong to the room that has Live's own tools.
|
|
863
865
|
if (name?.startsWith('blender_live_'))
|
|
@@ -1649,7 +1651,9 @@ export class Agent {
|
|
|
1649
1651
|
&& (baseMode !== 'work' || WORK_TOOL_GATE === 'enforce' || talkingMode);
|
|
1650
1652
|
let filteredSchemas;
|
|
1651
1653
|
if (modeAllowed && applyModeGate) {
|
|
1652
|
-
|
|
1654
|
+
// effectiveMode, not baseMode: a connected server's tools are told Talk
|
|
1655
|
+
// (work:talking) from Code (permissions.ts mcpToolInMode).
|
|
1656
|
+
filteredSchemas = allSchemas.filter(s => toolPassesModeGate(s.function.name, modeAllowed, effectiveMode));
|
|
1653
1657
|
}
|
|
1654
1658
|
else {
|
|
1655
1659
|
filteredSchemas = allSchemas.filter(s => !DESKTOP_ONLY_TOOLS.has(s.function.name));
|
|
@@ -2512,8 +2516,18 @@ export class Agent {
|
|
|
2512
2516
|
// blocking here would do precisely what the paragraph above forbids:
|
|
2513
2517
|
// offer a tool and then refuse the call.
|
|
2514
2518
|
if (modeAllowed) {
|
|
2515
|
-
const
|
|
2516
|
-
|
|
2519
|
+
const argsOf = (tc) => {
|
|
2520
|
+
if (!isUserMcpTool(tc.function.name))
|
|
2521
|
+
return undefined;
|
|
2522
|
+
try {
|
|
2523
|
+
return JSON.parse(tc.function.arguments || '{}');
|
|
2524
|
+
}
|
|
2525
|
+
catch {
|
|
2526
|
+
return {};
|
|
2527
|
+
}
|
|
2528
|
+
};
|
|
2529
|
+
const callAllowed = (tc) => toolPassesModeGate(tc.function.name, modeAllowed, effectiveMode, argsOf(tc));
|
|
2530
|
+
const blocked = assistantMessage.tool_calls.filter((tc) => !callAllowed(tc));
|
|
2517
2531
|
if (blocked.length > 0 && !applyModeGate) {
|
|
2518
2532
|
// The evidence worth having. The static count says what is in play;
|
|
2519
2533
|
// this says what she actually reached for while coding — and
|
|
@@ -2564,7 +2578,7 @@ export class Agent {
|
|
|
2564
2578
|
}
|
|
2565
2579
|
// Run only the allowed ones. The blocked calls stay on the reply,
|
|
2566
2580
|
// each paired with the refusal pushed above.
|
|
2567
|
-
callsToRun = callsToRun.filter((tc) =>
|
|
2581
|
+
callsToRun = callsToRun.filter((tc) => callAllowed(tc));
|
|
2568
2582
|
if (callsToRun.length === 0)
|
|
2569
2583
|
continue;
|
|
2570
2584
|
}
|
|
@@ -3243,8 +3257,8 @@ export class Agent {
|
|
|
3243
3257
|
const n = (this.repeatedToolFailures.get(failKey) ?? 0) + 1;
|
|
3244
3258
|
this.repeatedToolFailures.set(failKey, n);
|
|
3245
3259
|
if (n >= 3) {
|
|
3246
|
-
output = `${result.output}
|
|
3247
|
-
|
|
3260
|
+
output = `${result.output}
|
|
3261
|
+
|
|
3248
3262
|
[This is attempt ${n} of \`${toolCall.function.name}\` with identical arguments, and it has failed the same way every time. Do NOT call it again with these arguments — nothing has changed, so nothing will. Tell the user plainly what failed and what the error said, and either change the approach or ask them how they want to proceed.]`;
|
|
3249
3263
|
}
|
|
3250
3264
|
}
|
|
@@ -3556,28 +3570,28 @@ export class Agent {
|
|
|
3556
3570
|
if (cur.length)
|
|
3557
3571
|
chunks.push(cur.join('\n'));
|
|
3558
3572
|
const notesPrompt = (part, total, text) => `You are summarising part ${part} of ${total} of a long transcript between a user and an AI agent, as working notes for a later handoff summary. Capture, as concise bullet points: decisions made, files and functions named, tool results and errors and how they were resolved, what the user asked for in their own words, and what was in flight at the end of this part. No preamble, no narrative.\n\nTRANSCRIPT PART ${part}/${total}:\n${text}`;
|
|
3559
|
-
const compressionPromptFor = (transcript) => `You are a conversation summarizer preparing a handoff for an AI agent that will continue the work. The agent will have zero memory of this transcript except for what you produce, so your summary must be structured and decision-focused, not narrative.
|
|
3560
|
-
|
|
3561
|
-
Produce your output in EXACTLY this format:
|
|
3562
|
-
|
|
3563
|
-
CURRENT_TASK: <one sentence describing what the agent was actively working on at the end of the transcript. This is the single most important field — the agent uses it to decide what to do next. If multiple tasks were interleaved, pick the one that was most recently in flight.>
|
|
3564
|
-
|
|
3565
|
-
LAST_STEP: <one sentence describing the most recent concrete action the agent completed. Example: "Wrote src/components/HabitTracker.tsx with Tauri invoke calls for get_habit_logs."</ >
|
|
3566
|
-
|
|
3567
|
-
NEXT_STEP: <one sentence describing what the agent should do next to continue the task. Example: "Fix the missing habitId argument being passed to get_habit_logs in App.tsx." >
|
|
3568
|
-
|
|
3569
|
-
BLOCKERS: <any active blockers the agent needs to know about. Write "none" if there are none.>
|
|
3570
|
-
|
|
3571
|
-
SUMMARY:
|
|
3572
|
-
<Free-form bullet-point summary of everything else worth preserving: key decisions, file paths, function names, tool results, errors and how they were resolved, technical context. Be thorough but concise. Do NOT repeat what you put in the structured fields above.>
|
|
3573
|
-
|
|
3574
|
-
Rules:
|
|
3575
|
-
- Every field above is MANDATORY. If you can't extract a value for one, write "unclear" but never omit the field.
|
|
3576
|
-
- No pleasantries, no meta-commentary, no "Here's the summary" preamble.
|
|
3577
|
-
- Use plain text in the structured fields — no markdown, no bullet points, no multi-line values.
|
|
3578
|
-
- Keep the CURRENT_TASK, LAST_STEP, NEXT_STEP fields to a single sentence each.
|
|
3579
|
-
|
|
3580
|
-
TRANSCRIPT:
|
|
3573
|
+
const compressionPromptFor = (transcript) => `You are a conversation summarizer preparing a handoff for an AI agent that will continue the work. The agent will have zero memory of this transcript except for what you produce, so your summary must be structured and decision-focused, not narrative.
|
|
3574
|
+
|
|
3575
|
+
Produce your output in EXACTLY this format:
|
|
3576
|
+
|
|
3577
|
+
CURRENT_TASK: <one sentence describing what the agent was actively working on at the end of the transcript. This is the single most important field — the agent uses it to decide what to do next. If multiple tasks were interleaved, pick the one that was most recently in flight.>
|
|
3578
|
+
|
|
3579
|
+
LAST_STEP: <one sentence describing the most recent concrete action the agent completed. Example: "Wrote src/components/HabitTracker.tsx with Tauri invoke calls for get_habit_logs."</ >
|
|
3580
|
+
|
|
3581
|
+
NEXT_STEP: <one sentence describing what the agent should do next to continue the task. Example: "Fix the missing habitId argument being passed to get_habit_logs in App.tsx." >
|
|
3582
|
+
|
|
3583
|
+
BLOCKERS: <any active blockers the agent needs to know about. Write "none" if there are none.>
|
|
3584
|
+
|
|
3585
|
+
SUMMARY:
|
|
3586
|
+
<Free-form bullet-point summary of everything else worth preserving: key decisions, file paths, function names, tool results, errors and how they were resolved, technical context. Be thorough but concise. Do NOT repeat what you put in the structured fields above.>
|
|
3587
|
+
|
|
3588
|
+
Rules:
|
|
3589
|
+
- Every field above is MANDATORY. If you can't extract a value for one, write "unclear" but never omit the field.
|
|
3590
|
+
- No pleasantries, no meta-commentary, no "Here's the summary" preamble.
|
|
3591
|
+
- Use plain text in the structured fields — no markdown, no bullet points, no multi-line values.
|
|
3592
|
+
- Keep the CURRENT_TASK, LAST_STEP, NEXT_STEP fields to a single sentence each.
|
|
3593
|
+
|
|
3594
|
+
TRANSCRIPT:
|
|
3581
3595
|
${transcript}`;
|
|
3582
3596
|
// Scale the summary budget to how much is being compressed. A flat cap
|
|
3583
3597
|
// under-summarises a large zone — 1500 tokens for a 300K-token compress
|