@project-ava-supernova/core 0.2.175 → 0.2.177
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 +3 -0
- package/dist/agent/agent.d.ts.map +1 -1
- package/dist/agent/agent.js +78 -52
- package/dist/agent/agent.js.map +1 -1
- package/dist/agent/system-prompt.d.ts +3 -2
- package/dist/agent/system-prompt.d.ts.map +1 -1
- package/dist/agent/system-prompt.js +1356 -1308
- package/dist/agent/system-prompt.js.map +1 -1
- package/dist/auto/aurora-router.d.ts +1 -1
- package/dist/auto/aurora-router.d.ts.map +1 -1
- package/dist/auto/aurora-router.js +4 -1
- package/dist/auto/aurora-router.js.map +1 -1
- package/dist/auto/auto-coordinator.d.ts.map +1 -1
- package/dist/auto/auto-coordinator.js +2 -1
- package/dist/auto/auto-coordinator.js.map +1 -1
- package/dist/auto/longxiang-router.d.ts.map +1 -1
- package/dist/auto/longxiang-router.js +1 -0
- 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 +1 -0
- package/dist/auto/model-router.js.map +1 -1
- package/dist/auto/supernova-router.d.ts.map +1 -1
- package/dist/auto/supernova-router.js +3 -0
- 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 +8 -1
- package/dist/auto/task-classifier.js.map +1 -1
- package/dist/auto/types.d.ts +1 -1
- package/dist/auto/types.d.ts.map +1 -1
- package/dist/brand/brand-kits.d.ts +217 -0
- package/dist/brand/brand-kits.d.ts.map +1 -0
- package/dist/brand/brand-kits.js +681 -0
- package/dist/brand/brand-kits.js.map +1 -0
- package/dist/brand/kit-py.d.ts +7 -0
- package/dist/brand/kit-py.d.ts.map +1 -0
- package/dist/brand/kit-py.js +45 -0
- package/dist/brand/kit-py.js.map +1 -0
- package/dist/config/schema.d.ts +5 -0
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/schema.js.map +1 -1
- package/dist/docs/data/tools.d.ts.map +1 -1
- package/dist/docs/data/tools.js +15 -0
- package/dist/docs/data/tools.js.map +1 -1
- package/dist/index.d.ts +16 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -1
- package/dist/memory/config.d.ts +12 -0
- package/dist/memory/config.d.ts.map +1 -1
- package/dist/memory/config.js +12 -0
- package/dist/memory/config.js.map +1 -1
- package/dist/memory/memory-manager.d.ts +11 -0
- package/dist/memory/memory-manager.d.ts.map +1 -1
- package/dist/memory/memory-manager.js +90 -2
- package/dist/memory/memory-manager.js.map +1 -1
- package/dist/memory/project-brain.d.ts.map +1 -1
- package/dist/memory/project-brain.js +2 -1
- package/dist/memory/project-brain.js.map +1 -1
- package/dist/memory/tfidf.d.ts +10 -0
- package/dist/memory/tfidf.d.ts.map +1 -1
- package/dist/memory/tfidf.js +27 -0
- package/dist/memory/tfidf.js.map +1 -1
- package/dist/social/index.d.ts +48 -0
- package/dist/social/index.d.ts.map +1 -1
- package/dist/social/index.js +19 -0
- package/dist/social/index.js.map +1 -1
- package/dist/tools/blender/build-model.d.ts +52 -0
- package/dist/tools/blender/build-model.d.ts.map +1 -0
- package/dist/tools/blender/build-model.js +426 -0
- package/dist/tools/blender/build-model.js.map +1 -0
- package/dist/tools/blender/find-blender.d.ts +43 -0
- package/dist/tools/blender/find-blender.d.ts.map +1 -0
- package/dist/tools/blender/find-blender.js +154 -0
- package/dist/tools/blender/find-blender.js.map +1 -0
- package/dist/tools/blender/model-brief.d.ts +61 -0
- package/dist/tools/blender/model-brief.d.ts.map +1 -0
- package/dist/tools/blender/model-brief.js +117 -0
- package/dist/tools/blender/model-brief.js.map +1 -0
- package/dist/tools/blender/paths.d.ts +20 -0
- package/dist/tools/blender/paths.d.ts.map +1 -0
- package/dist/tools/blender/paths.js +37 -0
- package/dist/tools/blender/paths.js.map +1 -0
- package/dist/tools/blender/runner-py.d.ts +2 -0
- package/dist/tools/blender/runner-py.d.ts.map +1 -0
- package/dist/tools/blender/runner-py.js +442 -0
- package/dist/tools/blender/runner-py.js.map +1 -0
- package/dist/tools/brief-store.d.ts +25 -0
- package/dist/tools/brief-store.d.ts.map +1 -0
- package/dist/tools/brief-store.js +59 -0
- package/dist/tools/brief-store.js.map +1 -0
- package/dist/tools/check-posts.d.ts.map +1 -1
- package/dist/tools/check-posts.js +21 -3
- package/dist/tools/check-posts.js.map +1 -1
- package/dist/tools/design-checkin.d.ts +28 -0
- package/dist/tools/design-checkin.d.ts.map +1 -0
- package/dist/tools/design-checkin.js +74 -0
- package/dist/tools/design-checkin.js.map +1 -0
- package/dist/tools/design-docs.d.ts +37 -0
- package/dist/tools/design-docs.d.ts.map +1 -0
- package/dist/tools/design-docs.js +367 -0
- package/dist/tools/design-docs.js.map +1 -0
- package/dist/tools/design-fonts.d.ts +54 -0
- package/dist/tools/design-fonts.d.ts.map +1 -0
- package/dist/tools/design-fonts.js +312 -0
- package/dist/tools/design-fonts.js.map +1 -0
- package/dist/tools/design-studio-tools.d.ts +16 -0
- package/dist/tools/design-studio-tools.d.ts.map +1 -1
- package/dist/tools/design-studio-tools.js +288 -43
- package/dist/tools/design-studio-tools.js.map +1 -1
- package/dist/tools/generation-manager.d.ts +1 -1
- package/dist/tools/generation-manager.d.ts.map +1 -1
- package/dist/tools/gimp/build-image.d.ts +152 -0
- package/dist/tools/gimp/build-image.d.ts.map +1 -0
- package/dist/tools/gimp/build-image.js +809 -0
- package/dist/tools/gimp/build-image.js.map +1 -0
- package/dist/tools/gimp/find-gimp.d.ts +32 -0
- package/dist/tools/gimp/find-gimp.d.ts.map +1 -0
- package/dist/tools/gimp/find-gimp.js +149 -0
- package/dist/tools/gimp/find-gimp.js.map +1 -0
- package/dist/tools/gimp/runner-py.d.ts +2 -0
- package/dist/tools/gimp/runner-py.d.ts.map +1 -0
- package/dist/tools/gimp/runner-py.js +723 -0
- package/dist/tools/gimp/runner-py.js.map +1 -0
- package/dist/tools/propose-brief.d.ts.map +1 -1
- package/dist/tools/propose-brief.js +6 -1
- package/dist/tools/propose-brief.js.map +1 -1
- package/dist/tools/review-post.d.ts +25 -0
- package/dist/tools/review-post.d.ts.map +1 -0
- package/dist/tools/review-post.js +63 -0
- package/dist/tools/review-post.js.map +1 -0
- package/dist/tools/tool-registry.d.ts.map +1 -1
- package/dist/tools/tool-registry.js +39 -1
- package/dist/tools/tool-registry.js.map +1 -1
- package/dist/tools/tool-request-words.d.ts +7 -0
- package/dist/tools/tool-request-words.d.ts.map +1 -0
- package/dist/tools/tool-request-words.js +39 -0
- package/dist/tools/tool-request-words.js.map +1 -0
- package/dist/tools/write-post.d.ts.map +1 -1
- package/dist/tools/write-post.js +5 -1
- package/dist/tools/write-post.js.map +1 -1
- package/dist/tools/write-video-post.d.ts.map +1 -1
- package/dist/tools/write-video-post.js +6 -1
- package/dist/tools/write-video-post.js.map +1 -1
- package/package.json +1 -1
package/dist/agent/agent.d.ts
CHANGED
|
@@ -126,6 +126,9 @@ export declare function talkingToolsFor(modeAllowed: Set<string>): Set<string>;
|
|
|
126
126
|
* go; memory, todos and presenting a plan stay — they are how planning is done.
|
|
127
127
|
*/
|
|
128
128
|
export declare const CHANGING_TOOLS: Set<string>;
|
|
129
|
+
/** A room's allowlist, read-only — for tests and for anything that needs to
|
|
130
|
+
* SAY what a room offers rather than guess it. Null for an unscoped mode. */
|
|
131
|
+
export declare function modeAllowedTools(mode: string): ReadonlySet<string> | null;
|
|
129
132
|
/** Whether a mode id is a talking variant (`social:talking`, `work:talking`). */
|
|
130
133
|
export declare function isTalkingMode(mode: string | null | undefined): boolean;
|
|
131
134
|
export declare function toolPassesModeGate(name: string, modeAllowed: Set<string>): boolean;
|
|
@@ -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;AAE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AAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,OAAO,EAAE,CAAC;IAMrB;;;;;OAKG;IACG,eAAe,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
|
@@ -22,6 +22,7 @@ import { recordEditFromTool, pendingFilesAtClosure, runPendingVerify, buildVerif
|
|
|
22
22
|
import { signatureForFailure, recordFailure, shouldEscalateFreshEyes, markFreshEyesEscalated, describeFailureLoop, } from './error-loop-detector.js';
|
|
23
23
|
import { runFreshEyesReview, buildFreshEyesContext } from './fresh-eyes.js';
|
|
24
24
|
import { randomUUID } from 'node:crypto';
|
|
25
|
+
import { toldToKeepGoing } from '../tools/design-checkin.js';
|
|
25
26
|
import { appendFileSync } from 'node:fs';
|
|
26
27
|
import { join } from 'node:path';
|
|
27
28
|
import { AVA_HOME } from '../core/constants.js';
|
|
@@ -473,7 +474,13 @@ const MODE_ALLOWED_TOOLS = {
|
|
|
473
474
|
design: new Set([
|
|
474
475
|
'design_find_shape', 'design_generate_icon', 'design_generate_set',
|
|
475
476
|
'design_generate_video', 'design_generate_image', 'design_generate_voice',
|
|
476
|
-
'design_generate_logo', 'design_explore_logos', 'design_brand_kit', 'design_save',
|
|
477
|
+
'design_generate_logo', 'design_explore_logos', 'design_brand_kit', 'design_propose_kit', 'design_save_to_kit', 'design_save',
|
|
478
|
+
// 3D in headless Blender — free, local, guarded (Design Studio 3D plan, 3 Nov 2026).
|
|
479
|
+
'design_propose_model_brief', 'design_build_model', 'design_duplicate_model',
|
|
480
|
+
// 2D in headless GIMP — the same pattern (Phase 4, 4 Nov 2026).
|
|
481
|
+
'design_propose_image_brief', 'design_build_image', 'design_duplicate_image', 'design_show_options', 'design_mark_final',
|
|
482
|
+
// Her sources of truth: the installed program, and the official docs.
|
|
483
|
+
'design_api_lookup', 'design_read_docs', 'design_fonts', 'design_install_font', 'design_restore_image',
|
|
477
484
|
'memory_save', 'memory_recall', 'memory_update',
|
|
478
485
|
// Journal — Ava reflects on the person + their taste in her own voice
|
|
479
486
|
'journal_write',
|
|
@@ -489,20 +496,21 @@ const MODE_ALLOWED_TOOLS = {
|
|
|
489
496
|
// brand's public presence. Coding / file / shell tools are deliberately OUT —
|
|
490
497
|
// this room ships posts, it doesn't touch the codebase.
|
|
491
498
|
social: new Set([
|
|
492
|
-
'research_post', 'propose_hooks', 'write_post', 'post_performance',
|
|
499
|
+
'research_post', 'propose_hooks', 'write_post', 'post_performance',
|
|
493
500
|
// The brief for each post, agreed before it is written. Not a producing
|
|
494
501
|
// tool, so it stays available in a talking turn — which is where a brief
|
|
495
502
|
// is discussed.
|
|
496
503
|
'propose_brief',
|
|
497
|
-
//
|
|
498
|
-
//
|
|
499
|
-
//
|
|
500
|
-
//
|
|
501
|
-
//
|
|
502
|
-
// it
|
|
503
|
-
|
|
504
|
-
//
|
|
505
|
-
|
|
504
|
+
// Her verdict on her own posts once they are out — always given
|
|
505
|
+
// (operator, 20 Oct). It lives on the post now.
|
|
506
|
+
//
|
|
507
|
+
// 8 Nov 2026 — the day plan left this room: suggest_beats and
|
|
508
|
+
// day_plan_read / write / item_status / review. "We never plan out
|
|
509
|
+
// anything, it's all done on demand." The tools stay registered and the
|
|
510
|
+
// day_plan_items rows stay in the database; the room just stops offering
|
|
511
|
+
// a plan, because a plan written at breakfast is what made the posts
|
|
512
|
+
// read as pre-written.
|
|
513
|
+
'review_post',
|
|
506
514
|
// Short-form video — the Video Posts room. Registering the tool in the
|
|
507
515
|
// builtins was not enough: this Set is the real gate, and while it was
|
|
508
516
|
// missing she reported "write_video_post isn't in my toolset" and pointed
|
|
@@ -801,6 +809,11 @@ export const CHANGING_TOOLS = new Set([
|
|
|
801
809
|
'apply_plan', 'env_write', 'database_query', 'remove_background',
|
|
802
810
|
'test_run', 'test_generate', 'doc_generate', 'verify_change', 'benchmark',
|
|
803
811
|
]);
|
|
812
|
+
/** A room's allowlist, read-only — for tests and for anything that needs to
|
|
813
|
+
* SAY what a room offers rather than guess it. Null for an unscoped mode. */
|
|
814
|
+
export function modeAllowedTools(mode) {
|
|
815
|
+
return MODE_ALLOWED_TOOLS[mode] ?? null;
|
|
816
|
+
}
|
|
804
817
|
/** Whether a mode id is a talking variant (`social:talking`, `work:talking`). */
|
|
805
818
|
export function isTalkingMode(mode) {
|
|
806
819
|
return !!mode && mode.endsWith(TALKING_MODE_SUFFIX);
|
|
@@ -1422,6 +1435,10 @@ export class Agent {
|
|
|
1422
1435
|
// impossible: the summary is the fast path, this is the source of truth.
|
|
1423
1436
|
if (this.toolContext.sharedState) {
|
|
1424
1437
|
this.toolContext.sharedState.recallTranscript = [...messages];
|
|
1438
|
+
// One run() is one thing the person said; the making rooms count their
|
|
1439
|
+
// steps against it to know when to stop (design-checkin.ts).
|
|
1440
|
+
this.toolContext.sharedState.designTurnId = randomUUID();
|
|
1441
|
+
this.toolContext.sharedState.designKeepGoing = toldToKeepGoing(this.findLatestNonMetaUserMessage(messages) ?? '');
|
|
1425
1442
|
}
|
|
1426
1443
|
// ─── Stop-command detection ────────────────────────────────────────────
|
|
1427
1444
|
// If the user's latest message is an explicit stop command ("stop",
|
|
@@ -2439,6 +2456,13 @@ export class Agent {
|
|
|
2439
2456
|
lastToolName = currentToolSig;
|
|
2440
2457
|
repeatCount = 0;
|
|
2441
2458
|
}
|
|
2459
|
+
// The calls that will actually RUN. The reply itself keeps every call it
|
|
2460
|
+
// made: a refused call stays on it, answered by its refusal. Taking the
|
|
2461
|
+
// call off while keeping the refusal left an answer to a call that no
|
|
2462
|
+
// longer existed, and DeepSeek rejected the NEXT request with "the
|
|
2463
|
+
// reasoning_content in the thinking mode must be passed back" — every
|
|
2464
|
+
// time Ava reached for a tool with the Talk switch on (3 Nov 2026).
|
|
2465
|
+
let callsToRun = assistantMessage.tool_calls;
|
|
2442
2466
|
// ── Mode enforcement: block tools not allowed in the active mode ────
|
|
2443
2467
|
// ALWAYS_ALLOWED_TOOLS is honoured here as well as in the schema filter
|
|
2444
2468
|
// above. The two must agree: offering a schema and then blocking the call
|
|
@@ -2500,15 +2524,11 @@ export class Agent {
|
|
|
2500
2524
|
tool_call_id: tc.id,
|
|
2501
2525
|
});
|
|
2502
2526
|
}
|
|
2503
|
-
//
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
// Since assistantMessage is a reference already in `messages`,
|
|
2508
|
-
// the deletion propagates to the history.
|
|
2509
|
-
delete assistantMessage.tool_calls;
|
|
2527
|
+
// Run only the allowed ones. The blocked calls stay on the reply,
|
|
2528
|
+
// each paired with the refusal pushed above.
|
|
2529
|
+
callsToRun = callsToRun.filter((tc) => isAllowed(tc.function.name));
|
|
2530
|
+
if (callsToRun.length === 0)
|
|
2510
2531
|
continue;
|
|
2511
|
-
}
|
|
2512
2532
|
}
|
|
2513
2533
|
}
|
|
2514
2534
|
// ── Hard exploration budget enforcement ──────────────────────────────
|
|
@@ -2524,9 +2544,9 @@ export class Agent {
|
|
|
2524
2544
|
const hardBudget = COMPLEXITY_BUDGETS[this.currentTaskComplexity];
|
|
2525
2545
|
const hardCap = hardBudget.readCapBeforeFirstWrite * 2;
|
|
2526
2546
|
const projectedReads = this.readCountBeforeFirstWrite
|
|
2527
|
-
+
|
|
2547
|
+
+ callsToRun.filter((tc) => this.isReadOnlyToolCall(tc.function.name)).length;
|
|
2528
2548
|
if (projectedReads > hardCap) {
|
|
2529
|
-
const blockedReads =
|
|
2549
|
+
const blockedReads = callsToRun.filter((tc) => this.isReadOnlyToolCall(tc.function.name));
|
|
2530
2550
|
if (blockedReads.length > 0) {
|
|
2531
2551
|
logger.warn(`[agent] HARD BUDGET BLOCK: ${this.readCountBeforeFirstWrite} reads already done, ${blockedReads.length} more would exceed ${hardCap} cap for ${this.currentTaskComplexity} task`);
|
|
2532
2552
|
// Note: assistantMessage is already in `messages` (pushed
|
|
@@ -2550,13 +2570,11 @@ export class Agent {
|
|
|
2550
2570
|
tool_call_id: tc.id,
|
|
2551
2571
|
});
|
|
2552
2572
|
}
|
|
2553
|
-
//
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
delete assistantMessage.tool_calls;
|
|
2573
|
+
// Run any non-read calls (writes, etc.); the blocked reads stay on
|
|
2574
|
+
// the reply, each paired with its refusal.
|
|
2575
|
+
callsToRun = callsToRun.filter((tc) => !blockedReads.some(b => b.id === tc.id));
|
|
2576
|
+
if (callsToRun.length === 0)
|
|
2558
2577
|
continue;
|
|
2559
|
-
}
|
|
2560
2578
|
}
|
|
2561
2579
|
}
|
|
2562
2580
|
}
|
|
@@ -2565,7 +2583,7 @@ export class Agent {
|
|
|
2565
2583
|
// auto-approved tools run in parallel after for speed.
|
|
2566
2584
|
const confirmCalls = [];
|
|
2567
2585
|
const autoCalls = [];
|
|
2568
|
-
for (const tc of
|
|
2586
|
+
for (const tc of callsToRun) {
|
|
2569
2587
|
const tool = this.toolRegistry.getTool(tc.function.name);
|
|
2570
2588
|
if (tool && this.toolRegistry.needsConfirmation(tool)) {
|
|
2571
2589
|
confirmCalls.push(tc);
|
|
@@ -2687,6 +2705,10 @@ export class Agent {
|
|
|
2687
2705
|
{ type: 'image_url', image_url: {
|
|
2688
2706
|
url: `data:${result.metadata.mime_type || 'image/png'};base64,${resizedBase64}`,
|
|
2689
2707
|
} },
|
|
2708
|
+
...(result.metadata.more_images ?? []).map((b64) => ({
|
|
2709
|
+
type: 'image_url',
|
|
2710
|
+
image_url: { url: `data:${result.metadata.mime_type || 'image/png'};base64,${downsampleScreenshotBase64(b64)}` },
|
|
2711
|
+
})),
|
|
2690
2712
|
],
|
|
2691
2713
|
},
|
|
2692
2714
|
];
|
|
@@ -3230,8 +3252,8 @@ export class Agent {
|
|
|
3230
3252
|
const n = (this.repeatedToolFailures.get(failKey) ?? 0) + 1;
|
|
3231
3253
|
this.repeatedToolFailures.set(failKey, n);
|
|
3232
3254
|
if (n >= 3) {
|
|
3233
|
-
output = `${result.output}
|
|
3234
|
-
|
|
3255
|
+
output = `${result.output}
|
|
3256
|
+
|
|
3235
3257
|
[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.]`;
|
|
3236
3258
|
}
|
|
3237
3259
|
}
|
|
@@ -3269,6 +3291,10 @@ export class Agent {
|
|
|
3269
3291
|
{ type: 'image_url', image_url: {
|
|
3270
3292
|
url: `data:${result.metadata.mime_type || 'image/png'};base64,${result.metadata.base64_image}`,
|
|
3271
3293
|
} },
|
|
3294
|
+
...(result.metadata.more_images ?? []).map((b64) => ({
|
|
3295
|
+
type: 'image_url',
|
|
3296
|
+
image_url: { url: `data:${result.metadata.mime_type || 'image/png'};base64,${b64}` },
|
|
3297
|
+
})),
|
|
3272
3298
|
],
|
|
3273
3299
|
},
|
|
3274
3300
|
];
|
|
@@ -3539,28 +3565,28 @@ export class Agent {
|
|
|
3539
3565
|
if (cur.length)
|
|
3540
3566
|
chunks.push(cur.join('\n'));
|
|
3541
3567
|
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}`;
|
|
3542
|
-
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.
|
|
3543
|
-
|
|
3544
|
-
Produce your output in EXACTLY this format:
|
|
3545
|
-
|
|
3546
|
-
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.>
|
|
3547
|
-
|
|
3548
|
-
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."</ >
|
|
3549
|
-
|
|
3550
|
-
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." >
|
|
3551
|
-
|
|
3552
|
-
BLOCKERS: <any active blockers the agent needs to know about. Write "none" if there are none.>
|
|
3553
|
-
|
|
3554
|
-
SUMMARY:
|
|
3555
|
-
<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.>
|
|
3556
|
-
|
|
3557
|
-
Rules:
|
|
3558
|
-
- Every field above is MANDATORY. If you can't extract a value for one, write "unclear" but never omit the field.
|
|
3559
|
-
- No pleasantries, no meta-commentary, no "Here's the summary" preamble.
|
|
3560
|
-
- Use plain text in the structured fields — no markdown, no bullet points, no multi-line values.
|
|
3561
|
-
- Keep the CURRENT_TASK, LAST_STEP, NEXT_STEP fields to a single sentence each.
|
|
3562
|
-
|
|
3563
|
-
TRANSCRIPT:
|
|
3568
|
+
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.
|
|
3569
|
+
|
|
3570
|
+
Produce your output in EXACTLY this format:
|
|
3571
|
+
|
|
3572
|
+
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.>
|
|
3573
|
+
|
|
3574
|
+
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."</ >
|
|
3575
|
+
|
|
3576
|
+
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." >
|
|
3577
|
+
|
|
3578
|
+
BLOCKERS: <any active blockers the agent needs to know about. Write "none" if there are none.>
|
|
3579
|
+
|
|
3580
|
+
SUMMARY:
|
|
3581
|
+
<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.>
|
|
3582
|
+
|
|
3583
|
+
Rules:
|
|
3584
|
+
- Every field above is MANDATORY. If you can't extract a value for one, write "unclear" but never omit the field.
|
|
3585
|
+
- No pleasantries, no meta-commentary, no "Here's the summary" preamble.
|
|
3586
|
+
- Use plain text in the structured fields — no markdown, no bullet points, no multi-line values.
|
|
3587
|
+
- Keep the CURRENT_TASK, LAST_STEP, NEXT_STEP fields to a single sentence each.
|
|
3588
|
+
|
|
3589
|
+
TRANSCRIPT:
|
|
3564
3590
|
${transcript}`;
|
|
3565
3591
|
// Scale the summary budget to how much is being compressed. A flat cap
|
|
3566
3592
|
// under-summarises a large zone — 1500 tokens for a 300K-token compress
|