mirror of
https://github.com/MoonshotAI/kimi-code.git
synced 2026-07-10 01:39:25 +00:00
refactor(agent-core-v2): flatten task module interface directory
- move task.ts from task/interface/ up to task/ - remove the task/interface/ barrel directory - update imports in task barrel, taskService, and tests
This commit is contained in:
parent
b432d302d3
commit
c7c4b50d8c
5 changed files with 3 additions and 4 deletions
|
|
@ -3,6 +3,6 @@
|
|||
* Importing this barrel registers the `ITaskService` binding.
|
||||
*/
|
||||
|
||||
export * from './interface';
|
||||
export * from './task';
|
||||
import './taskService';
|
||||
export { TaskService } from './taskService';
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
export * from './task';
|
||||
|
|
@ -18,7 +18,7 @@ import {
|
|||
type TaskState,
|
||||
TERMINAL_TASK_STATES,
|
||||
TaskCancelledError,
|
||||
} from './interface/task';
|
||||
} from './task';
|
||||
|
||||
function isTerminal(state: TaskState): boolean {
|
||||
return TERMINAL_TASK_STATES.has(state);
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import {
|
|||
type IDeferredHandle,
|
||||
type TaskState,
|
||||
TaskCancelledError,
|
||||
} from '#/app/task/interface/task';
|
||||
} from '#/app/task/task';
|
||||
import { TaskService } from '#/app/task/taskService';
|
||||
|
||||
describe('TaskService', () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue