tuna-agent 0.1.118 → 0.1.119

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.
@@ -559,6 +559,24 @@ ${skillContent.slice(0, 15000)}`;
559
559
  })();
560
560
  break;
561
561
  }
562
+ if (extTask === 'analyze_video' && msg.url) {
563
+ (async () => {
564
+ try {
565
+ // Load custom handler from ~/.tuna-agent/ if available
566
+ const handlerPath = path.join(os.homedir(), '.tuna-agent', 'analyze-video-handler.mjs');
567
+ const { analyzeVideo } = await import(handlerPath);
568
+ console.log(`[Daemon] analyze_video: using custom handler for ${msg.url}`);
569
+ const result = await analyzeVideo(msg.url);
570
+ ws.sendExtensionDone(extCode, extTaskId, { ...result, isError: false });
571
+ }
572
+ catch (err) {
573
+ const errMsg = err instanceof Error ? err.message : String(err);
574
+ console.error(`[Daemon] analyze_video error: ${errMsg}`);
575
+ ws.sendExtensionDone(extCode, extTaskId, { error: errMsg, isError: true });
576
+ }
577
+ })();
578
+ break;
579
+ }
562
580
  if (extTask === 'generate_ideas') {
563
581
  (async () => {
564
582
  await handleGenerateIdeas(ws, extCode, extTaskId, msg.topic, msg.styleName, msg.styleDesc, msg.language, msg.count, msg.ideasInstruction, msg.provider, msg.appContext);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tuna-agent",
3
- "version": "0.1.118",
3
+ "version": "0.1.119",
4
4
  "description": "Tuna Agent - Run AI coding tasks on your machine",
5
5
  "bin": {
6
6
  "tuna-agent": "dist/cli/index.js"