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:
haozhe.yang 2026-07-03 15:47:40 +08:00
parent b432d302d3
commit c7c4b50d8c
5 changed files with 3 additions and 4 deletions

View file

@ -3,6 +3,6 @@
* Importing this barrel registers the `ITaskService` binding.
*/
export * from './interface';
export * from './task';
import './taskService';
export { TaskService } from './taskService';

View file

@ -1 +0,0 @@
export * from './task';

View file

@ -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);

View file

@ -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', () => {