refactor(core): move database schema ownership (#29068)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
This commit is contained in:
Dax
2026-05-30 21:08:38 -04:00
committed by GitHub
parent 6bcb9cb9bb
commit 7f571d36ea
390 changed files with 11127 additions and 9164 deletions

View File

@@ -1,13 +1,13 @@
import { describe, expect, test } from "bun:test"
import { Schema } from "effect"
import { ProjectID } from "../../src/project/schema"
import { ProjectV2 } from "@opencode-ai/core/project"
import { MessageID, SessionID } from "../../src/session/schema"
import { Session } from "../../src/session/session"
const info = {
id: SessionID.descending(),
slug: "test-session",
projectID: ProjectID.global,
projectID: ProjectV2.ID.global,
workspaceID: undefined,
directory: "/tmp/opencode",
parentID: undefined,
@@ -43,7 +43,7 @@ describe("Session schema", () => {
const encoded = Schema.encodeUnknownSync(Session.GlobalInfo)({
...info,
project: {
id: ProjectID.global,
id: ProjectV2.ID.global,
name: undefined,
worktree: "/tmp/opencode",
},