mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-26 16:19:40 +00:00
fix: update imports after dev namespace reorganization
Some checks failed
Deploy to apn-relay / porter-deploy (push) Has been cancelled
Some checks failed
Deploy to apn-relay / porter-deploy (push) Has been cancelled
- Log: @/util/log -> @/util - Project: ../../project/project -> ../../project - Database.use -> use (direct export from @/storage/db)
This commit is contained in:
parent
18563363da
commit
162da4bd97
3 changed files with 6 additions and 6 deletions
|
|
@ -6,10 +6,10 @@ import { cmd } from "./cmd"
|
|||
import { withNetworkOptions, resolveNetworkOptions } from "../network"
|
||||
import { Flag } from "../../flag/flag"
|
||||
import { Workspace } from "../../control-plane/workspace"
|
||||
import { Project } from "../../project/project"
|
||||
import { Project } from "../../project"
|
||||
import { Installation } from "../../installation"
|
||||
import { PushRelay } from "../../server/push-relay"
|
||||
import { Log } from "../../util/log"
|
||||
import { Log } from "../../util"
|
||||
import * as QRCode from "qrcode"
|
||||
|
||||
const log = Log.create({ service: "serve" })
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import os from "node:os"
|
|||
import { createHash } from "node:crypto"
|
||||
import { SessionID } from "@/session/schema"
|
||||
import { GlobalBus } from "@/bus/global"
|
||||
import { Log } from "@/util/log"
|
||||
import { Log } from "@/util"
|
||||
|
||||
type Type = "complete" | "permission" | "error"
|
||||
|
||||
|
|
@ -326,14 +326,14 @@ async function notify(input: { type: Type; sessionID: string }): Promise<Notify>
|
|||
}
|
||||
|
||||
try {
|
||||
const [{ Session }, { MessageV2 }, { SessionTable }, { Database, eq }] = await Promise.all([
|
||||
const [{ Session }, { MessageV2 }, { SessionTable }, { use, eq }] = await Promise.all([
|
||||
import("@/session"),
|
||||
import("@/session/message-v2"),
|
||||
import("@/session/session.sql"),
|
||||
import("@/storage/db"),
|
||||
])
|
||||
const sessionID = SessionID.make(input.sessionID)
|
||||
const row = Database.use((db) => db.select().from(SessionTable).where(eq(SessionTable.id, sessionID)).get())
|
||||
const row = use((db) => db.select().from(SessionTable).where(eq(SessionTable.id, sessionID)).get())
|
||||
const session = row ? Session.fromRow(row) : undefined
|
||||
out.title = session?.title
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { BusEvent } from "@/bus/bus-event"
|
||||
import { Bus } from "@/bus"
|
||||
import { InstanceState } from "@/effect"
|
||||
import { Log } from "@/util/log"
|
||||
import { Log } from "@/util"
|
||||
import { SessionID } from "./schema"
|
||||
import { Effect, Layer, Context } from "effect"
|
||||
import z from "zod"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue