tuna-agent 0.1.153 → 0.1.154

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.
@@ -247,8 +247,10 @@ Voiceover during this scene: "${voiceoverText || '(none)'}"`;
247
247
  { text: promptText },
248
248
  ...frames.map(b64 => ({ inlineData: { mimeType: 'image/jpeg', data: b64 } })),
249
249
  ];
250
- const { text, usage } = await geminiGenerate(parts, 512);
251
- cost?.geminiVision('vision', usage);
250
+ // Gemini 2.5 Flash (cheapest). geminiGenerate disables thinking for
251
+ // 2.5-flash so the 512 budget isn't starved → non-empty descriptions.
252
+ const { text, usage } = await geminiGenerate(parts, 512, 'gemini-2.5-flash');
253
+ cost?.geminiVision('vision', usage, 'gemini-2.5-flash');
252
254
  return text;
253
255
  }
254
256
  // Phase 1 (the strong part of AI_Video_Clone, ported): ONE gpt-4o call over
@@ -291,18 +293,18 @@ Rules:
291
293
  - NO GROUP ENTRIES (CRITICAL): NEVER output a collective/crowd label as a single entry — forbidden: "VILLAGERS", "LADIES GROUP", "KNITTING GROUP", "CROWD", "GROUP OF ...", any "*_GROUP". If 2+ similar secondary people RECUR across scenes, list them as SEPARATE numbered individuals (e.g. WOMAN_1, WOMAN_2, WOMAN_3), each with its OWN distinct face/hair/body/age. Only a truly anonymous one-off background that never recurs may be omitted entirely.
292
294
  - characters.description: ENGLISH only, factual, no camera/action words.
293
295
  - DISTINCT FACES (CRITICAL): every character MUST have a HIGHLY UNIQUE facial structure, a distinct hairstyle, a specific body type and a clearly different age. NEVER reuse the same or a similar facial description for two characters — they must look completely different from one another.`;
294
- // Phase-1 on Gemini 3 Flash (strong multimodal, far cheaper image tokens
295
- // than gpt-4o) with a dense 30-frame seed. 1 call/video; final cast
296
- // recall is double-covered by the reconcile pass. Generous output budget
297
- // so any model-side thinking can't starve the JSON answer.
296
+ // Phase-1 on Gemini 2.5 Flash (cheapest) with a dense 30-frame seed. 1
297
+ // call/video; final cast recall is double-covered by the reconcile pass.
298
+ // geminiGenerate disables thinking for 2.5-flash + generous 3000 output
299
+ // budget so the JSON answer is never starved (was empty without this).
298
300
  const parts = [
299
301
  { text: promptText },
300
302
  ...frames.map(b64 => ({ inlineData: { mimeType: 'image/jpeg', data: b64 } })),
301
303
  ];
302
- const { text: rawTxt, usage } = await geminiGenerate(parts, 3000, 'gemini-3-flash-preview');
304
+ const { text: rawTxt, usage } = await geminiGenerate(parts, 3000, 'gemini-2.5-flash');
303
305
  if (!rawTxt)
304
306
  return empty;
305
- cost?.geminiVision('phase1', usage, 'gemini-3-flash-preview');
307
+ cost?.geminiVision('phase1', usage, 'gemini-2.5-flash');
306
308
  let parsed = {};
307
309
  try {
308
310
  const m = rawTxt.match(/\{[\s\S]*\}/);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tuna-agent",
3
- "version": "0.1.153",
3
+ "version": "0.1.154",
4
4
  "description": "Tuna Agent - Run AI coding tasks on your machine",
5
5
  "bin": {
6
6
  "tuna-agent": "dist/cli/index.js"