Files
oh-my-opencode/src/tools/background-task/tools.ts
T
YeonGyu-Kim ee72c45552 refactor(tools/background-task): split tools.ts into focused modules under 200 LOC
- Create modules/ directory with 6 focused modules:
  - background-task.ts: task creation logic
  - background-output.ts: output retrieval logic
  - background-cancel.ts: cancellation logic
  - formatters.ts: message formatting utilities
  - message-processing.ts: message extraction utilities
  - utils.ts: shared utility functions
- Reduce tools.ts from ~798 to ~30 lines (barrel pattern)
- Add new types to types.ts for module interfaces
- Update index.ts for clean re-exports
- Follow modular code architecture (200 LOC limit)

🤖 Generated with assistance of OhMyOpenCode
2026-02-08 17:52:00 +09:00

12 lines
374 B
TypeScript

export type {
BackgroundCancelClient,
BackgroundOutputClient,
BackgroundOutputManager,
BackgroundOutputMessage,
BackgroundOutputMessagesResult,
} from "./clients"
export { createBackgroundTask } from "./create-background-task"
export { createBackgroundOutput } from "./create-background-output"
export { createBackgroundCancel } from "./create-background-cancel"