Skip to content

Commit e92c4fb

Browse files
authored
chore: drop dead imports across opencode/core/llm (anomalyco#28720)
1 parent 4b49606 commit e92c4fb

25 files changed

Lines changed: 7 additions & 27 deletions

File tree

packages/core/src/plugin/boot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export * as PluginBoot from "./boot"
22

3-
import { Context, Deferred, Effect, Layer, Scope } from "effect"
3+
import { Context, Deferred, Effect, Layer } from "effect"
44
import { AccountV2 } from "../account"
55
import { AgentV2 } from "../agent"
66
import { Catalog } from "../catalog"

packages/core/src/plugin/provider/vercel.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { Effect } from "effect"
22
import { PluginV2 } from "../../plugin"
3-
import { ProviderV2 } from "../../provider"
43

54
export const VercelPlugin = PluginV2.define({
65
id: PluginV2.ID.make("vercel"),

packages/core/test/plugin/provider-cerebras.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Catalog } from "@opencode-ai/core/catalog"
44
import { PluginV2 } from "@opencode-ai/core/plugin"
55
import { CerebrasPlugin } from "@opencode-ai/core/plugin/provider/cerebras"
66
import { ProviderV2 } from "@opencode-ai/core/provider"
7-
import { it, model, provider } from "./provider-helper"
7+
import { it, model } from "./provider-helper"
88

99
const cerebrasOptions: Record<string, unknown>[] = []
1010

packages/llm/src/llm.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import {
1414
ToolChoice,
1515
ToolDefinition,
1616
type ContentPart,
17-
ToolCallPart,
1817
ToolResultPart,
1918
} from "./schema"
2019
import { make as makeTool, type ToolSchema } from "./tool"

packages/llm/src/route/transport/websocket.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { Cause, Context, Effect, Layer, Queue, Stream } from "effect"
22
import { Headers } from "effect/unstable/http"
3-
import { Auth } from "../auth"
4-
import { LLMError, TransportReason, type LLMRequest } from "../../schema"
3+
import { LLMError, TransportReason } from "../../schema"
54
import * as HttpTransport from "./http"
65
import type { Transport } from "./index"
76

packages/llm/test/lib/tool-runtime.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Stream } from "effect"
21
import { LLMClient } from "../../src/route"
32
import type { Tools } from "../../src/tool"
43
import type { RunOptions } from "../../src/tool-runtime"

packages/llm/test/provider/bedrock-converse.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { Effect } from "effect"
55
import { CacheHint, LLM, Message, ToolCallPart, ToolChoice } from "../../src"
66
import { LLMClient } from "../../src/route"
77
import { AmazonBedrock } from "../../src/providers"
8-
import * as BedrockConverse from "../../src/protocols/bedrock-converse"
98
import { it } from "../lib/effect"
109
import { fixedResponse } from "../lib/http"
1110
import {

packages/opencode/src/acp/agent.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@ import type { ACPConfig } from "./types"
4242
import { ACPRuntime } from "./runtime"
4343
import { Provider } from "@/provider/provider"
4444
import { ModelID, ProviderID } from "../provider/schema"
45-
import { Installation } from "@/installation"
4645
import { MessageV2 } from "@/session/message-v2"
47-
import { Config } from "@/config/config"
4846
import { ConfigMCP } from "@/config/mcp"
4947
import { Todo } from "@/session/todo"
5048
import { Result, Schema } from "effect"

packages/opencode/src/cli/cmd/mcp.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import { McpOAuthProvider } from "../../mcp/oauth-provider"
1212
import { Config } from "@/config/config"
1313
import { ConfigMCP } from "../../config/mcp"
1414
import { InstanceRef } from "@/effect/instance-ref"
15-
import { Installation } from "../../installation"
1615
import { InstallationVersion } from "@opencode-ai/core/installation/version"
1716
import path from "path"
1817
import { Global } from "@opencode-ai/core/global"

packages/opencode/src/cli/cmd/tui/feature-plugins/system/session-v2.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import type {
2424
SessionMessageCompaction,
2525
SessionMessageModelSwitched,
2626
SessionMessageShell,
27-
SessionMessageSynthetic,
2827
SessionMessageUser,
2928
ToolFileContent,
3029
ToolTextContent,

0 commit comments

Comments
 (0)