1
- import { ALL_TOOLS } from '../../src/types /tools.js' ;
2
- import { TaskManagerServer } from '../../src/server/TaskManagerServer .js' ;
1
+ import { ALL_TOOLS } from '../../src/server /tools.js' ;
2
+ import { TaskManager } from '../../src/server/TaskManager .js' ;
3
3
import * as os from 'node:os' ;
4
4
import * as path from 'node:path' ;
5
5
import * as fs from 'node:fs/promises' ;
6
6
import { Task } from '../../src/types/index.js' ;
7
7
8
- describe ( 'TaskManagerServer Integration' , ( ) => {
9
- let server : TaskManagerServer ;
8
+ describe ( 'TaskManager Integration' , ( ) => {
9
+ let server : TaskManager ;
10
10
let tempDir : string ;
11
11
let testFilePath : string ;
12
12
@@ -17,7 +17,7 @@ describe('TaskManagerServer Integration', () => {
17
17
testFilePath = path . join ( tempDir , 'test-tasks.json' ) ;
18
18
19
19
// Initialize the server with the test file path
20
- server = new TaskManagerServer ( testFilePath ) ;
20
+ server = new TaskManager ( testFilePath ) ;
21
21
} ) ;
22
22
23
23
afterEach ( async ( ) => {
@@ -484,7 +484,7 @@ describe('TaskManagerServer Integration', () => {
484
484
] ) ;
485
485
486
486
// Create a new server instance pointing to the same file
487
- const newServer = new TaskManagerServer ( testFilePath ) ;
487
+ const newServer = new TaskManager ( testFilePath ) ;
488
488
489
489
// Verify the data was loaded correctly
490
490
const result = await newServer . listProjects ( "open" ) ;
@@ -499,13 +499,13 @@ describe('TaskManagerServer Integration', () => {
499
499
}
500
500
501
501
// Create another server instance and verify the changes persisted
502
- const thirdServer = new TaskManagerServer ( testFilePath ) ;
502
+ const thirdServer = new TaskManager ( testFilePath ) ;
503
503
const pendingResult = await thirdServer . listTasks ( project . projectId , "pending_approval" ) ;
504
504
expect ( pendingResult . tasks ! . length ) . toBe ( 1 ) ;
505
505
} ) ;
506
506
507
507
it ( "should handle tool/rule recommendations end-to-end" , async ( ) => {
508
- const server = new TaskManagerServer ( testFilePath ) ;
508
+ const server = new TaskManager ( testFilePath ) ;
509
509
510
510
// Create a project with tasks that have recommendations
511
511
const { projectId } = await server . createProject ( "Test Project" , [
0 commit comments