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
co-authored by copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
parent 6bcb9cb9bb
commit 7f571d36ea
390 changed files with 11127 additions and 9164 deletions
+3 -3
View File
@@ -1,9 +1,9 @@
import type { ContentBlock, ContentChunk, ResourceLink, Role } from "@agentclientprotocol/sdk"
import path from "node:path"
import { pathToFileURL } from "node:url"
import type { MessageV2 } from "@/session/message-v2"
import { SessionLegacy } from "@opencode-ai/core/session/legacy"
export type PromptPart = MessageV2.TextPartInput | MessageV2.FilePartInput
export type PromptPart = SessionLegacy.TextPartInput | SessionLegacy.FilePartInput
export type ReplayPart =
| {
@@ -141,7 +141,7 @@ function uriToFilePart(
uri: string,
mime: string,
filename?: string,
): MessageV2.FilePartInput | MessageV2.TextPartInput {
): SessionLegacy.FilePartInput | SessionLegacy.TextPartInput {
try {
if (uri.startsWith("file://")) {
return {