refactor: remove unused code from background-agent, background-task, call-omo-agent

This commit is contained in:
YeonGyu-Kim
2026-02-16 22:11:29 +09:00
parent 169c07ebf8
commit 1ba330f8ca
5 changed files with 3 additions and 5 deletions

View File

@@ -16,7 +16,6 @@ import {
DEFAULT_STALE_TIMEOUT_MS,
MIN_IDLE_TIME_MS,
MIN_RUNTIME_BEFORE_STALE_MS,
MIN_STABILITY_TIME_MS,
POLLING_INTERVAL_MS,
TASK_CLEANUP_DELAY_MS,
TASK_TTL_MS,

View File

@@ -4,7 +4,7 @@ import type { BackgroundCancelArgs } from "./types"
import type { BackgroundCancelClient } from "./clients"
import { BACKGROUND_CANCEL_DESCRIPTION } from "./constants"
export function createBackgroundCancel(manager: BackgroundManager, client: BackgroundCancelClient): ToolDefinition {
export function createBackgroundCancel(manager: BackgroundManager, _client: BackgroundCancelClient): ToolDefinition {
return tool({
description: BACKGROUND_CANCEL_DESCRIPTION,
args: {

View File

@@ -4,7 +4,7 @@ import type { BackgroundManager } from "../../../features/background-agent"
import type { BackgroundCancelArgs } from "../types"
import { BACKGROUND_CANCEL_DESCRIPTION } from "../constants"
export function createBackgroundCancel(manager: BackgroundManager, client: BackgroundCancelClient): ToolDefinition {
export function createBackgroundCancel(manager: BackgroundManager, _client: BackgroundCancelClient): ToolDefinition {
return tool({
description: BACKGROUND_CANCEL_DESCRIPTION,
args: {

View File

@@ -2,7 +2,7 @@ import { tool, type ToolDefinition } from "@opencode-ai/plugin"
import type { BackgroundManager } from "../../../features/background-agent"
import type { BackgroundTaskArgs } from "../types"
import { BACKGROUND_TASK_DESCRIPTION } from "../constants"
import { findNearestMessageWithFields, findFirstMessageWithAgent, MESSAGE_STORAGE } from "../../../features/hook-message-injector"
import { findNearestMessageWithFields, findFirstMessageWithAgent } from "../../../features/hook-message-injector"
import { getSessionAgent } from "../../../features/claude-code-session-state"
import { log } from "../../../shared/logger"
import { storeToolMetadata } from "../../../features/tool-metadata-store"

View File

@@ -2,7 +2,6 @@ import type { CallOmoAgentArgs } from "./types"
import type { BackgroundManager } from "../../features/background-agent"
import type { PluginInput } from "@opencode-ai/plugin"
import { log } from "../../shared"
import { consumeNewMessages } from "../../shared/session-cursor"
import { resolveMessageContext } from "../../features/hook-message-injector"
import { getSessionAgent } from "../../features/claude-code-session-state"
import { getMessageDir } from "./message-dir"