@project-ava-supernova/core 0.2.196 → 0.2.198
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.js +24 -24
- package/dist/agent/fresh-eyes.js +10 -10
- package/dist/agent/system-prompt.js +1223 -1223
- package/dist/agent/text-tool-parser.js +14 -14
- package/dist/auto/intent-gate.js +44 -44
- package/dist/auto/task-executor.js +45 -45
- package/dist/brand/kit-py.js +41 -41
- package/dist/desktop/personas.js +116 -116
- package/dist/docs/content/concepts.js +1 -1
- package/dist/docs/content/concepts.js.map +1 -1
- package/dist/docs/data/tools.js +3 -3
- package/dist/docs/data/tools.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/locales/ar.js +2 -2
- package/dist/i18n/locales/ar.js.map +1 -1
- package/dist/i18n/locales/de.js +2 -2
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/en.js +2 -2
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/es.js +2 -2
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.js +2 -2
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hi.js +2 -2
- package/dist/i18n/locales/hi.js.map +1 -1
- package/dist/i18n/locales/id.js +2 -2
- package/dist/i18n/locales/id.js.map +1 -1
- package/dist/i18n/locales/it.js +2 -2
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/ja.js +2 -2
- package/dist/i18n/locales/ja.js.map +1 -1
- package/dist/i18n/locales/ko.js +2 -2
- package/dist/i18n/locales/ko.js.map +1 -1
- package/dist/i18n/locales/nl.js +2 -2
- package/dist/i18n/locales/nl.js.map +1 -1
- package/dist/i18n/locales/pl.js +2 -2
- package/dist/i18n/locales/pl.js.map +1 -1
- package/dist/i18n/locales/pt.js +2 -2
- package/dist/i18n/locales/pt.js.map +1 -1
- package/dist/i18n/locales/ru.js +2 -2
- package/dist/i18n/locales/ru.js.map +1 -1
- package/dist/i18n/locales/th.js +2 -2
- package/dist/i18n/locales/th.js.map +1 -1
- package/dist/i18n/locales/tr.js +2 -2
- package/dist/i18n/locales/tr.js.map +1 -1
- package/dist/i18n/locales/uk.js +2 -2
- package/dist/i18n/locales/uk.js.map +1 -1
- package/dist/i18n/locales/vi.js +2 -2
- package/dist/i18n/locales/vi.js.map +1 -1
- package/dist/i18n/locales/zh-CN.js +2 -2
- package/dist/i18n/locales/zh-CN.js.map +1 -1
- package/dist/i18n/locales/zh-TW.js +2 -2
- package/dist/i18n/locales/zh-TW.js.map +1 -1
- package/dist/memory/auto-extract.js +36 -36
- package/dist/memory/insights.js +24 -24
- package/dist/memory/memory-agent.js +55 -55
- package/dist/personas/conductor.js +12 -12
- package/dist/tools/apply-plan.js +2 -2
- package/dist/tools/apply-plan.js.map +1 -1
- package/dist/tools/benchmark.d.ts.map +1 -1
- package/dist/tools/benchmark.js +4 -1
- package/dist/tools/benchmark.js.map +1 -1
- package/dist/tools/blender/runner-py.js +443 -443
- package/dist/tools/debug-logs.d.ts.map +1 -1
- package/dist/tools/debug-logs.js +4 -1
- package/dist/tools/debug-logs.js.map +1 -1
- package/dist/tools/design-docs.js +186 -186
- package/dist/tools/doc-generate.js +2 -2
- package/dist/tools/doc-generate.js.map +1 -1
- package/dist/tools/document-author.js +3 -3
- package/dist/tools/document-author.js.map +1 -1
- package/dist/tools/document-manage.js +4 -4
- package/dist/tools/document-manage.js.map +1 -1
- package/dist/tools/env-write.d.ts.map +1 -1
- package/dist/tools/env-write.js +2 -1
- package/dist/tools/env-write.js.map +1 -1
- package/dist/tools/file-edit.js +2 -2
- package/dist/tools/file-edit.js.map +1 -1
- package/dist/tools/file-write.js +2 -2
- package/dist/tools/file-write.js.map +1 -1
- package/dist/tools/generate-image.d.ts.map +1 -1
- package/dist/tools/generate-image.js +3 -2
- package/dist/tools/generate-image.js.map +1 -1
- package/dist/tools/generate-video.d.ts.map +1 -1
- package/dist/tools/generate-video.js +3 -2
- package/dist/tools/generate-video.js.map +1 -1
- package/dist/tools/generate-voice.d.ts.map +1 -1
- package/dist/tools/generate-voice.js +3 -2
- package/dist/tools/generate-voice.js.map +1 -1
- package/dist/tools/gimp/runner-py.js +740 -740
- package/dist/tools/git.d.ts.map +1 -1
- package/dist/tools/git.js +43 -1
- package/dist/tools/git.js.map +1 -1
- package/dist/tools/remove-background.d.ts.map +1 -1
- package/dist/tools/remove-background.js +4 -3
- package/dist/tools/remove-background.js.map +1 -1
- package/dist/tools/security.d.ts +5 -0
- package/dist/tools/security.d.ts.map +1 -1
- package/dist/tools/security.js +73 -8
- package/dist/tools/security.js.map +1 -1
- package/dist/tools/test-generate.js +2 -2
- package/dist/tools/test-generate.js.map +1 -1
- package/dist/tools/test-run.d.ts.map +1 -1
- package/dist/tools/test-run.js +4 -1
- package/dist/tools/test-run.js.map +1 -1
- package/package.json +6 -1
- package/dist/tools/memory-delete.d.ts +0 -11
- package/dist/tools/memory-delete.d.ts.map +0 -1
- package/dist/tools/memory-delete.js +0 -54
- package/dist/tools/memory-delete.js.map +0 -1
- package/dist/tools/memory-recall.d.ts +0 -11
- package/dist/tools/memory-recall.d.ts.map +0 -1
- package/dist/tools/memory-recall.js +0 -101
- package/dist/tools/memory-recall.js.map +0 -1
- package/dist/tools/memory-save.d.ts +0 -11
- package/dist/tools/memory-save.d.ts.map +0 -1
- package/dist/tools/memory-save.js +0 -112
- package/dist/tools/memory-save.js.map +0 -1
- package/dist/tools/memory-update.d.ts +0 -11
- package/dist/tools/memory-update.d.ts.map +0 -1
- package/dist/tools/memory-update.js +0 -88
- package/dist/tools/memory-update.js.map +0 -1
package/dist/agent/agent.js
CHANGED
|
@@ -3263,8 +3263,8 @@ export class Agent {
|
|
|
3263
3263
|
const n = (this.repeatedToolFailures.get(failKey) ?? 0) + 1;
|
|
3264
3264
|
this.repeatedToolFailures.set(failKey, n);
|
|
3265
3265
|
if (n >= 3) {
|
|
3266
|
-
output = `${result.output}
|
|
3267
|
-
|
|
3266
|
+
output = `${result.output}
|
|
3267
|
+
|
|
3268
3268
|
[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.]`;
|
|
3269
3269
|
}
|
|
3270
3270
|
}
|
|
@@ -3576,28 +3576,28 @@ export class Agent {
|
|
|
3576
3576
|
if (cur.length)
|
|
3577
3577
|
chunks.push(cur.join('\n'));
|
|
3578
3578
|
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}`;
|
|
3579
|
-
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.
|
|
3580
|
-
|
|
3581
|
-
Produce your output in EXACTLY this format:
|
|
3582
|
-
|
|
3583
|
-
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.>
|
|
3584
|
-
|
|
3585
|
-
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."</ >
|
|
3586
|
-
|
|
3587
|
-
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." >
|
|
3588
|
-
|
|
3589
|
-
BLOCKERS: <any active blockers the agent needs to know about. Write "none" if there are none.>
|
|
3590
|
-
|
|
3591
|
-
SUMMARY:
|
|
3592
|
-
<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.>
|
|
3593
|
-
|
|
3594
|
-
Rules:
|
|
3595
|
-
- Every field above is MANDATORY. If you can't extract a value for one, write "unclear" but never omit the field.
|
|
3596
|
-
- No pleasantries, no meta-commentary, no "Here's the summary" preamble.
|
|
3597
|
-
- Use plain text in the structured fields — no markdown, no bullet points, no multi-line values.
|
|
3598
|
-
- Keep the CURRENT_TASK, LAST_STEP, NEXT_STEP fields to a single sentence each.
|
|
3599
|
-
|
|
3600
|
-
TRANSCRIPT:
|
|
3579
|
+
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.
|
|
3580
|
+
|
|
3581
|
+
Produce your output in EXACTLY this format:
|
|
3582
|
+
|
|
3583
|
+
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.>
|
|
3584
|
+
|
|
3585
|
+
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."</ >
|
|
3586
|
+
|
|
3587
|
+
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." >
|
|
3588
|
+
|
|
3589
|
+
BLOCKERS: <any active blockers the agent needs to know about. Write "none" if there are none.>
|
|
3590
|
+
|
|
3591
|
+
SUMMARY:
|
|
3592
|
+
<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.>
|
|
3593
|
+
|
|
3594
|
+
Rules:
|
|
3595
|
+
- Every field above is MANDATORY. If you can't extract a value for one, write "unclear" but never omit the field.
|
|
3596
|
+
- No pleasantries, no meta-commentary, no "Here's the summary" preamble.
|
|
3597
|
+
- Use plain text in the structured fields — no markdown, no bullet points, no multi-line values.
|
|
3598
|
+
- Keep the CURRENT_TASK, LAST_STEP, NEXT_STEP fields to a single sentence each.
|
|
3599
|
+
|
|
3600
|
+
TRANSCRIPT:
|
|
3601
3601
|
${transcript}`;
|
|
3602
3602
|
// Scale the summary budget to how much is being compressed. A flat cap
|
|
3603
3603
|
// under-summarises a large zone — 1500 tokens for a 300K-token compress
|
package/dist/agent/fresh-eyes.js
CHANGED
|
@@ -19,16 +19,16 @@
|
|
|
19
19
|
*/
|
|
20
20
|
import { readFile } from 'node:fs/promises';
|
|
21
21
|
import { resolve } from 'node:path';
|
|
22
|
-
const FRESH_EYES_SYSTEM_PROMPT = `You are a senior engineer brought in to give a SECOND OPINION on a stuck change. Another agent has been trying to fix the same verification failure for several iterations and isn't making progress — fresh eyes time.
|
|
23
|
-
|
|
24
|
-
Your job:
|
|
25
|
-
1. Read the file content + the verify failure carefully.
|
|
26
|
-
2. Diagnose the ACTUAL root cause — don't trust the previous fix attempts.
|
|
27
|
-
3. State whether the previous approach is salvageable or whether it needs to be scrapped.
|
|
28
|
-
4. Recommend ONE concrete next step in 2–4 sentences. Be specific about what code to change and why.
|
|
29
|
-
|
|
30
|
-
Be direct. Don't hedge. The other agent will receive your opinion as advice and decide whether to apply it. They can't see your reasoning if it's buried in qualifiers.
|
|
31
|
-
|
|
22
|
+
const FRESH_EYES_SYSTEM_PROMPT = `You are a senior engineer brought in to give a SECOND OPINION on a stuck change. Another agent has been trying to fix the same verification failure for several iterations and isn't making progress — fresh eyes time.
|
|
23
|
+
|
|
24
|
+
Your job:
|
|
25
|
+
1. Read the file content + the verify failure carefully.
|
|
26
|
+
2. Diagnose the ACTUAL root cause — don't trust the previous fix attempts.
|
|
27
|
+
3. State whether the previous approach is salvageable or whether it needs to be scrapped.
|
|
28
|
+
4. Recommend ONE concrete next step in 2–4 sentences. Be specific about what code to change and why.
|
|
29
|
+
|
|
30
|
+
Be direct. Don't hedge. The other agent will receive your opinion as advice and decide whether to apply it. They can't see your reasoning if it's buried in qualifiers.
|
|
31
|
+
|
|
32
32
|
If you genuinely don't know, say "I can't see the issue from this output — the agent should ask the user for more context" rather than fabricating a fix.`;
|
|
33
33
|
/** Per-file content cap so a giant file doesn't blow the prompt budget. */
|
|
34
34
|
const FILE_CHARS_BUDGET = 6_000;
|