opencode-agent[bot] před 4 dny
rodič
revize
c081e12c60
2 změnil soubory, kde provedl 3 přidání a 2 odebrání
  1. 1 1
      packages/core/src/tool.ts
  2. 2 1
      packages/merman/src/markdown.ts

+ 1 - 1
packages/core/src/tool.ts

@@ -100,7 +100,7 @@ const layer = Layer.effect(
       const execution = yield* execute(tool, beforeEvent.input, context).pipe(
         Effect.map((value) => ({ value })),
         Effect.catchTag("Tool.Error", (failure) => Effect.succeed({ failure })),
-        )
+      )
       const base = {
         tool: name,
         sessionID: context.sessionID,

+ 2 - 1
packages/merman/src/markdown.ts

@@ -202,7 +202,8 @@ export function createMermaidCodeBlockRenderer(
     // OpenTUI's default block ID is the stable identity available for this fence across streaming updates.
     const key = context.defaultRender()?.id
     const options = typeof input === "function" ? input() : input
-    const configuredMaxWidth = options.layoutMaxWidth === undefined ? 120 : Math.max(1, Math.trunc(options.layoutMaxWidth))
+    const configuredMaxWidth =
+      options.layoutMaxWidth === undefined ? 120 : Math.max(1, Math.trunc(options.layoutMaxWidth))
     const layoutMaxWidth = Math.min(configuredMaxWidth, Math.max(1, Math.trunc(ctx.width)))
 
     try {