refactor: remove unused imports from auto-update-checker, claude-code-hooks, mcp

This commit is contained in:
YeonGyu-Kim
2026-02-16 22:11:38 +09:00
parent bfabad7681
commit 9dbb9552b8
4 changed files with 2 additions and 4 deletions

View File

@@ -1,6 +1,5 @@
import * as path from "node:path"
import * as os from "node:os"
import * as fs from "node:fs"
import { getOpenCodeConfigDir } from "../../shared"
export const PACKAGE_NAME = "oh-my-opencode"

View File

@@ -4,7 +4,7 @@ import { log } from "../../../shared/logger"
import { invalidatePackage } from "../cache"
import { PACKAGE_NAME } from "../constants"
import { extractChannel } from "../version-channel"
import { findPluginEntry, getCachedVersion, getLatestVersion, updatePinnedVersion, revertPinnedVersion } from "../checker"
import { findPluginEntry, getCachedVersion, getLatestVersion, revertPinnedVersion } from "../checker"
import { showAutoUpdatedToast, showUpdateAvailableToast } from "./update-toasts"
async function runBunInstallSafe(): Promise<boolean> {

View File

@@ -9,7 +9,7 @@ import {
import { getToolInput } from "../tool-input-cache"
import { appendTranscriptEntry, getTranscriptPath } from "../transcript"
import type { PluginConfig } from "../types"
import { isHookDisabled, log } from "../../../shared"
import { isHookDisabled } from "../../../shared"
export function createToolExecuteAfterHandler(ctx: PluginInput, config: PluginConfig) {
return async (

View File

@@ -1,7 +1,6 @@
import { createWebsearchConfig } from "./websearch"
import { context7 } from "./context7"
import { grep_app } from "./grep-app"
import type { McpName } from "./types"
import type { OhMyOpenCodeConfig } from "../config/schema"
export { McpNameSchema, type McpName } from "./types"