Browse Source

chore: generate

opencode-agent[bot] 5 months ago
parent
commit
d8ad8338f5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/opencode/src/tool/registry.ts

+ 2 - 2
packages/opencode/src/tool/registry.ts

@@ -92,8 +92,8 @@ export namespace ToolRegistry {
           if (matches.length) yield* config.waitForDependencies()
           if (matches.length) yield* config.waitForDependencies()
           for (const match of matches) {
           for (const match of matches) {
             const namespace = path.basename(match, path.extname(match))
             const namespace = path.basename(match, path.extname(match))
-            const mod = yield* Effect.promise(() =>
-              import(process.platform === "win32" ? match : pathToFileURL(match).href),
+            const mod = yield* Effect.promise(
+              () => import(process.platform === "win32" ? match : pathToFileURL(match).href),
             )
             )
             for (const [id, def] of Object.entries<ToolDefinition>(mod)) {
             for (const [id, def] of Object.entries<ToolDefinition>(mod)) {
               custom.push(fromPlugin(id === "default" ? namespace : `${namespace}_${id}`, def))
               custom.push(fromPlugin(id === "default" ? namespace : `${namespace}_${id}`, def))