Skip to content

Commit a427a28

Browse files
authored
feat: unwrap project namespaces to flat exports + barrel (anomalyco#22743)
1 parent 0beaf04 commit a427a28

18 files changed

Lines changed: 636 additions & 638 deletions

File tree

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

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

‎packages/opencode/src/cli/cmd/stats.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Session } from "../../session"
44
import { bootstrap } from "../bootstrap"
55
import { Database } from "../../storage/db"
66
import { SessionTable } from "../../session/session.sql"
7-
import { Project } from "../../project/project"
7+
import { Project } from "../../project"
88
import { Instance } from "../../project/instance"
99
import { AppRuntime } from "@/effect/app-runtime"
1010

‎packages/opencode/src/control-plane/workspace.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import z from "zod"
22
import { setTimeout as sleep } from "node:timers/promises"
33
import { fn } from "@/util/fn"
44
import { Database, asc, eq, inArray } from "@/storage/db"
5-
import { Project } from "@/project/project"
5+
import { Project } from "@/project"
66
import { BusEvent } from "@/bus/bus-event"
77
import { GlobalBus } from "@/bus/global"
88
import { SyncEvent } from "@/sync"

‎packages/opencode/src/effect/app-runtime.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ import { Command } from "@/command"
4040
import { Truncate } from "@/tool/truncate"
4141
import { ToolRegistry } from "@/tool/registry"
4242
import { Format } from "@/format"
43-
import { Project } from "@/project/project"
44-
import { Vcs } from "@/project/vcs"
43+
import { Project } from "@/project"
44+
import { Vcs } from "@/project"
4545
import { Worktree } from "@/worktree"
4646
import { Pty } from "@/pty"
4747
import { Installation } from "@/installation"

‎packages/opencode/src/effect/bootstrap-runtime.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { FileWatcher } from "@/file/watcher"
77
import { Format } from "@/format"
88
import { ShareNext } from "@/share/share-next"
99
import { File } from "@/file"
10-
import { Vcs } from "@/project/vcs"
10+
import { Vcs } from "@/project"
1111
import { Snapshot } from "@/snapshot"
1212
import { Bus } from "@/bus"
1313
import { Observability } from "./observability"

‎packages/opencode/src/project/bootstrap.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { Format } from "../format"
33
import { LSP } from "../lsp"
44
import { File } from "../file"
55
import { Snapshot } from "../snapshot"
6-
import { Project } from "./project"
7-
import { Vcs } from "./vcs"
6+
import { Project } from "."
7+
import { Vcs } from "."
88
import { Bus } from "../bus"
99
import { Command } from "../command"
1010
import { Instance } from "./instance"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export * as Vcs from "./vcs"
2+
export * as Project from "./project"

‎packages/opencode/src/project/instance.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { AppFileSystem } from "@opencode-ai/shared/filesystem"
55
import { iife } from "@/util/iife"
66
import { Log } from "@/util"
77
import { LocalContext } from "../util"
8-
import { Project } from "./project"
8+
import { Project } from "."
99
import { WorkspaceContext } from "@/control-plane/workspace-context"
1010

1111
export interface InstanceContext {

0 commit comments

Comments
 (0)