瀏覽代碼

chore: generate

opencode-agent[bot] 5 月之前
父節點
當前提交
727a83aa7a
共有 1 個文件被更改,包括 3 次插入 和 1 次删除
  1. 3 1
      packages/opencode/src/tool/repo_overview.ts

+ 3 - 1
packages/opencode/src/tool/repo_overview.ts

@@ -108,7 +108,9 @@ export const RepoOverviewTool = Tool.define<typeof Parameters, Metadata, AppFile
       params: Schema.Schema.Type<typeof Parameters>,
     ) {
       if (params.path) {
-        const full = path.isAbsolute(params.path) ? params.path : path.resolve(yield* InstanceState.directory, params.path)
+        const full = path.isAbsolute(params.path)
+          ? params.path
+          : path.resolve(yield* InstanceState.directory, params.path)
         return { path: full, repository: params.repository }
       }