refactor: remove unused code from background-agent, background-task, call-omo-agent
This commit is contained in:
parent
169c07ebf8
commit
1ba330f8ca
@ -16,7 +16,6 @@ import {
|
|||||||
DEFAULT_STALE_TIMEOUT_MS,
|
DEFAULT_STALE_TIMEOUT_MS,
|
||||||
MIN_IDLE_TIME_MS,
|
MIN_IDLE_TIME_MS,
|
||||||
MIN_RUNTIME_BEFORE_STALE_MS,
|
MIN_RUNTIME_BEFORE_STALE_MS,
|
||||||
MIN_STABILITY_TIME_MS,
|
|
||||||
POLLING_INTERVAL_MS,
|
POLLING_INTERVAL_MS,
|
||||||
TASK_CLEANUP_DELAY_MS,
|
TASK_CLEANUP_DELAY_MS,
|
||||||
TASK_TTL_MS,
|
TASK_TTL_MS,
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import type { BackgroundCancelArgs } from "./types"
|
|||||||
import type { BackgroundCancelClient } from "./clients"
|
import type { BackgroundCancelClient } from "./clients"
|
||||||
import { BACKGROUND_CANCEL_DESCRIPTION } from "./constants"
|
import { BACKGROUND_CANCEL_DESCRIPTION } from "./constants"
|
||||||
|
|
||||||
export function createBackgroundCancel(manager: BackgroundManager, client: BackgroundCancelClient): ToolDefinition {
|
export function createBackgroundCancel(manager: BackgroundManager, _client: BackgroundCancelClient): ToolDefinition {
|
||||||
return tool({
|
return tool({
|
||||||
description: BACKGROUND_CANCEL_DESCRIPTION,
|
description: BACKGROUND_CANCEL_DESCRIPTION,
|
||||||
args: {
|
args: {
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import type { BackgroundManager } from "../../../features/background-agent"
|
|||||||
import type { BackgroundCancelArgs } from "../types"
|
import type { BackgroundCancelArgs } from "../types"
|
||||||
import { BACKGROUND_CANCEL_DESCRIPTION } from "../constants"
|
import { BACKGROUND_CANCEL_DESCRIPTION } from "../constants"
|
||||||
|
|
||||||
export function createBackgroundCancel(manager: BackgroundManager, client: BackgroundCancelClient): ToolDefinition {
|
export function createBackgroundCancel(manager: BackgroundManager, _client: BackgroundCancelClient): ToolDefinition {
|
||||||
return tool({
|
return tool({
|
||||||
description: BACKGROUND_CANCEL_DESCRIPTION,
|
description: BACKGROUND_CANCEL_DESCRIPTION,
|
||||||
args: {
|
args: {
|
||||||
|
|||||||
@ -2,7 +2,7 @@ import { tool, type ToolDefinition } from "@opencode-ai/plugin"
|
|||||||
import type { BackgroundManager } from "../../../features/background-agent"
|
import type { BackgroundManager } from "../../../features/background-agent"
|
||||||
import type { BackgroundTaskArgs } from "../types"
|
import type { BackgroundTaskArgs } from "../types"
|
||||||
import { BACKGROUND_TASK_DESCRIPTION } from "../constants"
|
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 { getSessionAgent } from "../../../features/claude-code-session-state"
|
||||||
import { log } from "../../../shared/logger"
|
import { log } from "../../../shared/logger"
|
||||||
import { storeToolMetadata } from "../../../features/tool-metadata-store"
|
import { storeToolMetadata } from "../../../features/tool-metadata-store"
|
||||||
|
|||||||
@ -2,7 +2,6 @@ import type { CallOmoAgentArgs } from "./types"
|
|||||||
import type { BackgroundManager } from "../../features/background-agent"
|
import type { BackgroundManager } from "../../features/background-agent"
|
||||||
import type { PluginInput } from "@opencode-ai/plugin"
|
import type { PluginInput } from "@opencode-ai/plugin"
|
||||||
import { log } from "../../shared"
|
import { log } from "../../shared"
|
||||||
import { consumeNewMessages } from "../../shared/session-cursor"
|
|
||||||
import { resolveMessageContext } from "../../features/hook-message-injector"
|
import { resolveMessageContext } from "../../features/hook-message-injector"
|
||||||
import { getSessionAgent } from "../../features/claude-code-session-state"
|
import { getSessionAgent } from "../../features/claude-code-session-state"
|
||||||
import { getMessageDir } from "./message-dir"
|
import { getMessageDir } from "./message-dir"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user