Kaynağa Gözat

feat(index): wire image_routing into message transform

Michael Henke 2 ay önce
ebeveyn
işleme
5142c92a1f
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      src/index.ts

+ 2 - 2
src/index.ts

@@ -10,7 +10,7 @@ import {
   type MultiplexerConfig,
   type MultiplexerConfig,
 } from './config';
 } from './config';
 import { parseList } from './config/agent-mcps';
 import { parseList } from './config/agent-mcps';
-import { AGENT_ALIASES } from './config/constants';
+import { AGENT_ALIASES, DEFAULT_IMAGE_ROUTING } from './config/constants';
 import {
 import {
   getActiveRuntimePreset,
   getActiveRuntimePreset,
   getPreviousRuntimePreset,
   getPreviousRuntimePreset,
@@ -1122,7 +1122,7 @@ const OhMyOpenCodeLite: Plugin = async (ctx) => {
       processImageAttachments({
       processImageAttachments({
         messages: typedOutput.messages,
         messages: typedOutput.messages,
         workDir: ctx.directory,
         workDir: ctx.directory,
-        imageRouting: 'auto', // TODO(task-3): wire from config
+        imageRouting: config.image_routing ?? DEFAULT_IMAGE_ROUTING,
         disabledAgents,
         disabledAgents,
         log,
         log,
       });
       });