refactor: switch plugin siblings to self-reexport imports

This commit is contained in:
Kit Langton
2026-04-16 11:26:57 -04:00
parent c74ea2166f
commit 50a52bf0f1
7 changed files with 6 additions and 6 deletions

View File

@@ -24,8 +24,8 @@ import {
type PluginPackage,
type PluginSource,
} from "@/plugin/shared"
import { PluginLoader } from "@/plugin"
import { PluginMeta } from "@/plugin"
import { PluginLoader } from "@/plugin/loader"
import { PluginMeta } from "@/plugin/meta"
import { installPlugin as installModulePlugin, patchPluginConfig, readPluginManifest } from "@/plugin/install"
import { hasTheme, upsertTheme } from "../context/theme"
import { Global } from "@/global"

View File

@@ -1 +0,0 @@
export * as CopilotModels from "./models"

View File

@@ -142,3 +142,4 @@ export async function get(
return result
}
export * as CopilotModels from "./models"

View File

@@ -1,3 +1 @@
export * as Plugin from "./plugin"
export * as PluginMeta from "./meta"
export * as PluginLoader from "./loader"

View File

@@ -170,3 +170,4 @@ export async function loadExternal<R = Loaded>(input: Input<R>): Promise<R[]> {
for (const item of out) if (item !== undefined) ready.push(item)
return ready
}
export * as PluginLoader from "./loader"

View File

@@ -184,3 +184,4 @@ export async function list(): Promise<Store> {
const file = storePath()
return Flock.withLock(lock(file), async () => read(file))
}
export * as PluginMeta from "./meta"

View File

@@ -1,5 +1,5 @@
import { afterEach, expect, mock, test } from "bun:test"
import { CopilotModels } from "@/plugin/github-copilot"
import { CopilotModels } from "../../src/plugin/github-copilot/models"
import { CopilotAuthPlugin } from "@/plugin/github-copilot/copilot"
const originalFetch = globalThis.fetch