refactor: remove unused imports from auto-update-checker, claude-code-hooks, mcp
This commit is contained in:
parent
bfabad7681
commit
9dbb9552b8
@ -1,6 +1,5 @@
|
|||||||
import * as path from "node:path"
|
import * as path from "node:path"
|
||||||
import * as os from "node:os"
|
import * as os from "node:os"
|
||||||
import * as fs from "node:fs"
|
|
||||||
import { getOpenCodeConfigDir } from "../../shared"
|
import { getOpenCodeConfigDir } from "../../shared"
|
||||||
|
|
||||||
export const PACKAGE_NAME = "oh-my-opencode"
|
export const PACKAGE_NAME = "oh-my-opencode"
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import { log } from "../../../shared/logger"
|
|||||||
import { invalidatePackage } from "../cache"
|
import { invalidatePackage } from "../cache"
|
||||||
import { PACKAGE_NAME } from "../constants"
|
import { PACKAGE_NAME } from "../constants"
|
||||||
import { extractChannel } from "../version-channel"
|
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"
|
import { showAutoUpdatedToast, showUpdateAvailableToast } from "./update-toasts"
|
||||||
|
|
||||||
async function runBunInstallSafe(): Promise<boolean> {
|
async function runBunInstallSafe(): Promise<boolean> {
|
||||||
|
|||||||
@ -9,7 +9,7 @@ import {
|
|||||||
import { getToolInput } from "../tool-input-cache"
|
import { getToolInput } from "../tool-input-cache"
|
||||||
import { appendTranscriptEntry, getTranscriptPath } from "../transcript"
|
import { appendTranscriptEntry, getTranscriptPath } from "../transcript"
|
||||||
import type { PluginConfig } from "../types"
|
import type { PluginConfig } from "../types"
|
||||||
import { isHookDisabled, log } from "../../../shared"
|
import { isHookDisabled } from "../../../shared"
|
||||||
|
|
||||||
export function createToolExecuteAfterHandler(ctx: PluginInput, config: PluginConfig) {
|
export function createToolExecuteAfterHandler(ctx: PluginInput, config: PluginConfig) {
|
||||||
return async (
|
return async (
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
import { createWebsearchConfig } from "./websearch"
|
import { createWebsearchConfig } from "./websearch"
|
||||||
import { context7 } from "./context7"
|
import { context7 } from "./context7"
|
||||||
import { grep_app } from "./grep-app"
|
import { grep_app } from "./grep-app"
|
||||||
import type { McpName } from "./types"
|
|
||||||
import type { OhMyOpenCodeConfig } from "../config/schema"
|
import type { OhMyOpenCodeConfig } from "../config/schema"
|
||||||
|
|
||||||
export { McpNameSchema, type McpName } from "./types"
|
export { McpNameSchema, type McpName } from "./types"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user