@project-ava-supernova/core 0.2.188 → 0.2.190
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 +54 -32
- package/dist/agent/agent.js.map +1 -1
- package/dist/agent/mode-tags.d.ts.map +1 -1
- package/dist/agent/mode-tags.js +3 -1
- package/dist/agent/mode-tags.js.map +1 -1
- package/dist/agent/social-craft.d.ts +1 -1
- package/dist/agent/social-craft.d.ts.map +1 -1
- package/dist/agent/social-craft.js +1 -1
- package/dist/agent/system-prompt.d.ts +13 -18
- package/dist/agent/system-prompt.d.ts.map +1 -1
- package/dist/agent/system-prompt.js +1247 -1197
- 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/brainstorm/brainstorm-store.d.ts +47 -25
- package/dist/brainstorm/brainstorm-store.d.ts.map +1 -1
- package/dist/brainstorm/brainstorm-store.js +221 -104
- package/dist/brainstorm/brainstorm-store.js.map +1 -1
- package/dist/brainstorm/page.d.ts +41 -0
- package/dist/brainstorm/page.d.ts.map +1 -0
- package/dist/brainstorm/page.js +109 -0
- package/dist/brainstorm/page.js.map +1 -0
- package/dist/brainstorm/types.d.ts +75 -19
- package/dist/brainstorm/types.d.ts.map +1 -1
- package/dist/brainstorm/types.js +19 -14
- package/dist/brainstorm/types.js.map +1 -1
- package/dist/brainstorm/work-plans.d.ts +23 -0
- package/dist/brainstorm/work-plans.d.ts.map +1 -0
- package/dist/brainstorm/work-plans.js +56 -0
- package/dist/brainstorm/work-plans.js.map +1 -0
- package/dist/brand/brand-kits.d.ts +17 -0
- package/dist/brand/brand-kits.d.ts.map +1 -1
- package/dist/brand/brand-kits.js +10 -0
- package/dist/brand/brand-kits.js.map +1 -1
- package/dist/config/personality.js +1 -1
- package/dist/docs/content/concepts.js +8 -8
- package/dist/docs/content/concepts.js.map +1 -1
- package/dist/docs/content/reference.js +1 -1
- package/dist/docs/content/reference.js.map +1 -1
- package/dist/docs/content/start.js +2 -2
- package/dist/docs/content/start.js.map +1 -1
- package/dist/docs/data/modes.d.ts.map +1 -1
- package/dist/docs/data/modes.js +3 -9
- package/dist/docs/data/modes.js.map +1 -1
- package/dist/docs/data/personas.js +4 -4
- package/dist/docs/data/personas.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/data/shortcuts.d.ts.map +1 -1
- package/dist/docs/data/shortcuts.js +8 -7
- package/dist/docs/data/shortcuts.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/history/conversation-title.d.ts +1 -1
- package/dist/history/conversation-title.d.ts.map +1 -1
- package/dist/history/conversation-title.js +1 -0
- package/dist/history/conversation-title.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 +135 -3
- 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 +135 -3
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +131 -0
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +135 -3
- 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 +135 -3
- 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 +135 -3
- 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 +135 -3
- 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 +135 -3
- 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 +135 -3
- 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 +135 -3
- 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 +135 -3
- 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 +135 -3
- 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 +135 -3
- 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 +135 -3
- 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 +135 -3
- 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 +135 -3
- 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 +135 -3
- 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 +135 -3
- 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 +135 -3
- 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 +135 -3
- 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 +135 -3
- package/dist/i18n/locales/zh-TW.js.map +1 -1
- package/dist/index.d.ts +8 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -2
- 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 +8 -1
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +4 -1
- 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 +7 -4
- package/dist/mcp/suggested.d.ts.map +1 -1
- package/dist/mcp/suggested.js +14 -3
- 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/ambient-capture.js +1 -1
- package/dist/memory/ambient-capture.js.map +1 -1
- 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/definitions.d.ts.map +1 -1
- package/dist/personas/definitions.js +55 -42
- package/dist/personas/definitions.js.map +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/brainstorm-plan.d.ts +25 -0
- package/dist/tools/brainstorm-plan.d.ts.map +1 -0
- package/dist/tools/brainstorm-plan.js +179 -0
- package/dist/tools/brainstorm-plan.js.map +1 -0
- package/dist/tools/brainstorm-session.d.ts +14 -12
- package/dist/tools/brainstorm-session.d.ts.map +1 -1
- package/dist/tools/brainstorm-session.js +220 -113
- package/dist/tools/brainstorm-session.js.map +1 -1
- package/dist/tools/connection-tools.js +1 -1
- package/dist/tools/connection-tools.js.map +1 -1
- package/dist/tools/create-project.js +1 -1
- package/dist/tools/create-project.js.map +1 -1
- package/dist/tools/open-brainstorm-room.d.ts +22 -0
- package/dist/tools/open-brainstorm-room.d.ts.map +1 -0
- package/dist/tools/open-brainstorm-room.js +40 -0
- package/dist/tools/open-brainstorm-room.js.map +1 -0
- package/dist/tools/switch-mode.d.ts.map +1 -1
- package/dist/tools/switch-mode.js +4 -3
- package/dist/tools/switch-mode.js.map +1 -1
- package/dist/tools/tool-registry.d.ts.map +1 -1
- package/dist/tools/tool-registry.js +13 -4
- 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 +24 -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,eAAe,EACf,UAAU,EAEX,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAG9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AA6BhD,OAAO,KAAK,EAAE,UAAU,EAAW,MAAM,sBAAsB,CAAC;AAgJhE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,kBAAkB,kQAarB,CAAC;AAgEX,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/agent/agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAqC,MAA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BAAkB;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
|
@@ -292,6 +292,9 @@ export const MODE_ALLOWED_TOOLS = {
|
|
|
292
292
|
'memory_save', 'memory_recall', 'memory_update',
|
|
293
293
|
// Planning / tasks
|
|
294
294
|
'present_plan', 'todo_write', 'task_manage', 'task_suggest', 'apply_plan',
|
|
295
|
+
// The brainstormed plans assigned to this project: read, tick what's built,
|
|
296
|
+
// keep honest while building (plan 2026-11-17-brainstorm, Phase 4).
|
|
297
|
+
'brainstorm_plan',
|
|
295
298
|
// Testing
|
|
296
299
|
'test_run', 'test_generate',
|
|
297
300
|
// Architecture / docs gen
|
|
@@ -322,7 +325,7 @@ export const MODE_ALLOWED_TOOLS = {
|
|
|
322
325
|
// Hand a fitness/meal plan request off to the focused Health room, a
|
|
323
326
|
// learn-a-topic request off to the focused Learning room, or an icon /
|
|
324
327
|
// on-brand asset request off to the focused Design Studio.
|
|
325
|
-
'open_health_room', 'open_learning_room', 'open_design_studio',
|
|
328
|
+
'open_health_room', 'open_learning_room', 'open_design_studio', 'open_brainstorm_room',
|
|
326
329
|
// Mode switch
|
|
327
330
|
'switch_mode',
|
|
328
331
|
]),
|
|
@@ -337,6 +340,11 @@ export const MODE_ALLOWED_TOOLS = {
|
|
|
337
340
|
'connection_search', 'connection_list',
|
|
338
341
|
// Memory + planning + analysis
|
|
339
342
|
'memory_save', 'memory_recall', 'present_plan', 'analyze_architecture',
|
|
343
|
+
// Brainstormed plans assigned to this project — planning starts from them.
|
|
344
|
+
// Writes only to ~/.ava/brainstorm, never the project, so Plan stays read-only.
|
|
345
|
+
'brainstorm_plan',
|
|
346
|
+
// Still at the idea stage → the Brainstorm room (no longer a main-chat mode).
|
|
347
|
+
'open_brainstorm_room',
|
|
340
348
|
// Reference / introspection (already used; advertised below now too)
|
|
341
349
|
'docs_lookup', 'self_inspect',
|
|
342
350
|
// Taste specialist for design/voice/microcopy decisions
|
|
@@ -369,7 +377,7 @@ export const MODE_ALLOWED_TOOLS = {
|
|
|
369
377
|
// Hand a fitness/meal plan request off to the focused Health room, a
|
|
370
378
|
// learn-a-topic request off to the focused Learning room, or an icon /
|
|
371
379
|
// on-brand asset request off to the focused Design Studio.
|
|
372
|
-
'open_health_room', 'open_learning_room', 'open_design_studio',
|
|
380
|
+
'open_health_room', 'open_learning_room', 'open_design_studio', 'open_brainstorm_room',
|
|
373
381
|
// His MCP servers: research, list, add (always a card), bring in from his other apps
|
|
374
382
|
'connection_search', 'connection_list', 'connection_add', 'connection_import',
|
|
375
383
|
'switch_mode',
|
|
@@ -846,10 +854,12 @@ function allowedToolsForMode(mode) {
|
|
|
846
854
|
const base = MODE_ALLOWED_TOOLS[mode.slice(0, -TALKING_MODE_SUFFIX.length)];
|
|
847
855
|
return base ? talkingToolsFor(base) : undefined;
|
|
848
856
|
}
|
|
849
|
-
export function toolPassesModeGate(name, modeAllowed, mode) {
|
|
857
|
+
export function toolPassesModeGate(name, modeAllowed, mode, args) {
|
|
850
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).
|
|
851
861
|
if (isUserMcpTool(name))
|
|
852
|
-
return mcpToolInMode(name, mode);
|
|
862
|
+
return mcpToolInMode(name, mode, args);
|
|
853
863
|
// Tools a connected program brings (Blender Live's blender_live_*) are only
|
|
854
864
|
// known at run time; they belong to the room that has Live's own tools.
|
|
855
865
|
if (name?.startsWith('blender_live_'))
|
|
@@ -1641,7 +1651,9 @@ export class Agent {
|
|
|
1641
1651
|
&& (baseMode !== 'work' || WORK_TOOL_GATE === 'enforce' || talkingMode);
|
|
1642
1652
|
let filteredSchemas;
|
|
1643
1653
|
if (modeAllowed && applyModeGate) {
|
|
1644
|
-
|
|
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));
|
|
1645
1657
|
}
|
|
1646
1658
|
else {
|
|
1647
1659
|
filteredSchemas = allSchemas.filter(s => !DESKTOP_ONLY_TOOLS.has(s.function.name));
|
|
@@ -2504,8 +2516,18 @@ export class Agent {
|
|
|
2504
2516
|
// blocking here would do precisely what the paragraph above forbids:
|
|
2505
2517
|
// offer a tool and then refuse the call.
|
|
2506
2518
|
if (modeAllowed) {
|
|
2507
|
-
const
|
|
2508
|
-
|
|
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));
|
|
2509
2531
|
if (blocked.length > 0 && !applyModeGate) {
|
|
2510
2532
|
// The evidence worth having. The static count says what is in play;
|
|
2511
2533
|
// this says what she actually reached for while coding — and
|
|
@@ -2556,7 +2578,7 @@ export class Agent {
|
|
|
2556
2578
|
}
|
|
2557
2579
|
// Run only the allowed ones. The blocked calls stay on the reply,
|
|
2558
2580
|
// each paired with the refusal pushed above.
|
|
2559
|
-
callsToRun = callsToRun.filter((tc) =>
|
|
2581
|
+
callsToRun = callsToRun.filter((tc) => callAllowed(tc));
|
|
2560
2582
|
if (callsToRun.length === 0)
|
|
2561
2583
|
continue;
|
|
2562
2584
|
}
|
|
@@ -3235,8 +3257,8 @@ export class Agent {
|
|
|
3235
3257
|
const n = (this.repeatedToolFailures.get(failKey) ?? 0) + 1;
|
|
3236
3258
|
this.repeatedToolFailures.set(failKey, n);
|
|
3237
3259
|
if (n >= 3) {
|
|
3238
|
-
output = `${result.output}
|
|
3239
|
-
|
|
3260
|
+
output = `${result.output}
|
|
3261
|
+
|
|
3240
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.]`;
|
|
3241
3263
|
}
|
|
3242
3264
|
}
|
|
@@ -3548,28 +3570,28 @@ export class Agent {
|
|
|
3548
3570
|
if (cur.length)
|
|
3549
3571
|
chunks.push(cur.join('\n'));
|
|
3550
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}`;
|
|
3551
|
-
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.
|
|
3552
|
-
|
|
3553
|
-
Produce your output in EXACTLY this format:
|
|
3554
|
-
|
|
3555
|
-
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.>
|
|
3556
|
-
|
|
3557
|
-
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."</ >
|
|
3558
|
-
|
|
3559
|
-
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." >
|
|
3560
|
-
|
|
3561
|
-
BLOCKERS: <any active blockers the agent needs to know about. Write "none" if there are none.>
|
|
3562
|
-
|
|
3563
|
-
SUMMARY:
|
|
3564
|
-
<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.>
|
|
3565
|
-
|
|
3566
|
-
Rules:
|
|
3567
|
-
- Every field above is MANDATORY. If you can't extract a value for one, write "unclear" but never omit the field.
|
|
3568
|
-
- No pleasantries, no meta-commentary, no "Here's the summary" preamble.
|
|
3569
|
-
- Use plain text in the structured fields — no markdown, no bullet points, no multi-line values.
|
|
3570
|
-
- Keep the CURRENT_TASK, LAST_STEP, NEXT_STEP fields to a single sentence each.
|
|
3571
|
-
|
|
3572
|
-
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:
|
|
3573
3595
|
${transcript}`;
|
|
3574
3596
|
// Scale the summary budget to how much is being compressed. A flat cap
|
|
3575
3597
|
// under-summarises a large zone — 1500 tokens for a 300K-token compress
|