refactor: rename shared package to core (#24309)

This commit is contained in:
Dax
2026-04-25 10:59:17 -04:00
committed by GitHub
parent 37aa8442dc
commit 62ef2a2207
166 changed files with 218 additions and 218 deletions

View File

@@ -1,5 +1,5 @@
import { Effect } from "effect"
import { AppFileSystem } from "@opencode-ai/shared/filesystem"
import { AppFileSystem } from "@opencode-ai/core/filesystem"
const BOM_CODE = 0xfeff
const BOM = String.fromCharCode(BOM_CODE)

View File

@@ -4,7 +4,7 @@ import { realpathSync } from "fs"
import { dirname, join, relative, resolve as pathResolve, win32 } from "path"
import { Readable } from "stream"
import { pipeline } from "stream/promises"
import { Glob } from "@opencode-ai/shared/util/glob"
import { Glob } from "@opencode-ai/core/util/glob"
// Fast sync version for metadata checks
export async function exists(p: string): Promise<boolean> {

View File

@@ -3,7 +3,7 @@ import fs from "fs/promises"
import { createWriteStream } from "fs"
import { Global } from "../global"
import z from "zod"
import { Glob } from "@opencode-ai/shared/util/glob"
import { Glob } from "@opencode-ai/core/util/glob"
export const Level = z.enum(["DEBUG", "INFO", "WARN", "ERROR"]).meta({ ref: "LogLevel", description: "Log level" })
export type Level = z.infer<typeof Level>