Skip to content

Commit 343a564

Browse files
authored
feat: unwrap 11 util namespaces to flat exports + barrel (#22739)
1 parent b0eae5e commit 343a564

188 files changed

Lines changed: 1068 additions & 1079 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/opencode/src/acp/agent.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ import {
3131
type Usage,
3232
} from "@agentclientprotocol/sdk"
3333

34-
import { Log } from "../util/log"
34+
import { Log } from "../util"
3535
import { pathToFileURL } from "url"
36-
import { Filesystem } from "../util/filesystem"
36+
import { Filesystem } from "../util"
3737
import { Hash } from "@opencode-ai/shared/util/hash"
3838
import { ACPSessionManager } from "./session"
3939
import type { ACPConfig } from "./types"

packages/opencode/src/acp/session.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { RequestError, type McpServer } from "@agentclientprotocol/sdk"
22
import type { ACPSessionState } from "./types"
3-
import { Log } from "@/util/log"
3+
import { Log } from "@/util"
44
import type { OpencodeClient } from "@opencode-ai/sdk/v2"
55

66
const log = Log.create({ service: "acp-session-manager" })

packages/opencode/src/bus/bus.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import z from "zod"
22
import { Effect, Exit, Layer, PubSub, Scope, Context, Stream } from "effect"
33
import { EffectBridge } from "@/effect"
4-
import { Log } from "../util/log"
4+
import { Log } from "../util"
55
import { BusEvent } from "./bus-event"
66
import { GlobalBus } from "./global"
77
import { InstanceState } from "@/effect"

packages/opencode/src/cli/cmd/acp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Log } from "@/util/log"
1+
import { Log } from "@/util"
22
import { bootstrap } from "../bootstrap"
33
import { cmd } from "./cmd"
44
import { AgentSideConnection, ndJsonStream } from "@agentclientprotocol/sdk"

packages/opencode/src/cli/cmd/agent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { Agent } from "../../agent/agent"
77
import { Provider } from "../../provider"
88
import path from "path"
99
import fs from "fs/promises"
10-
import { Filesystem } from "../../util/filesystem"
10+
import { Filesystem } from "../../util"
1111
import matter from "gray-matter"
1212
import { Instance } from "../../project/instance"
1313
import { EOL } from "os"

packages/opencode/src/cli/cmd/debug/lsp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { AppRuntime } from "../../../effect/app-runtime"
33
import { Effect } from "effect"
44
import { bootstrap } from "../../bootstrap"
55
import { cmd } from "../cmd"
6-
import { Log } from "../../../util/log"
6+
import { Log } from "../../../util"
77
import { EOL } from "os"
88

99
export const LSPCommand = cmd({

packages/opencode/src/cli/cmd/debug/scrap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { EOL } from "os"
22
import { Project } from "../../../project/project"
3-
import { Log } from "../../../util/log"
3+
import { Log } from "../../../util"
44
import { cmd } from "../cmd"
55

66
export const ScrapCommand = cmd({

packages/opencode/src/cli/cmd/github.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import path from "path"
22
import { exec } from "child_process"
3-
import { Filesystem } from "../../util/filesystem"
3+
import { Filesystem } from "../../util"
44
import * as prompts from "@clack/prompts"
55
import { map, pipe, sortBy, values } from "remeda"
66
import { Octokit } from "@octokit/rest"
@@ -32,7 +32,7 @@ import { SessionPrompt } from "@/session/prompt"
3232
import { AppRuntime } from "@/effect/app-runtime"
3333
import { Git } from "@/git"
3434
import { setTimeout as sleep } from "node:timers/promises"
35-
import { Process } from "@/util/process"
35+
import { Process } from "@/util"
3636
import { Effect } from "effect"
3737

3838
type GitHubAuthor = {

packages/opencode/src/cli/cmd/import.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { SessionTable, MessageTable, PartTable } from "../../session/session.sql
99
import { Instance } from "../../project/instance"
1010
import { ShareNext } from "../../share/share-next"
1111
import { EOL } from "os"
12-
import { Filesystem } from "../../util/filesystem"
12+
import { Filesystem } from "../../util"
1313
import { AppRuntime } from "@/effect/app-runtime"
1414

1515
/** Discriminated union returned by the ShareNext API (GET /api/shares/:id/data) */

packages/opencode/src/cli/cmd/mcp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { Installation } from "../../installation"
1313
import path from "path"
1414
import { Global } from "../../global"
1515
import { modify, applyEdits } from "jsonc-parser"
16-
import { Filesystem } from "../../util/filesystem"
16+
import { Filesystem } from "../../util"
1717
import { Bus } from "../../bus"
1818
import { AppRuntime } from "../../effect/app-runtime"
1919
import { Effect } from "effect"

0 commit comments

Comments
 (0)