Skip to content

Commit 13b2844

Browse files
committed
Refactor task management and validation system
- Replaced TodoProvider with TaskProvider in task-provider.factory.ts. - Introduced TaskManager class for managing TODO tasks and changelog operations. - Updated IssuesProvider and ProjectsProvider to use formatJson for request bodies. - Removed unused interfaces and types related to command execution and validation. - Enhanced ITaskValidator and ITaskFixer interfaces to use ITask type. - Updated validation functions to return IValidationResult instead of custom objects. - Cleaned up logger implementation and adjusted logging levels for CLI usage. - Removed obsolete error classes and command options related to auditing. - Simplified the structure of the aliases.json file and removed unused CI script.
1 parent 7ac468e commit 13b2844

File tree

81 files changed

+285
-982
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+285
-982
lines changed

package-lock.json

Lines changed: 91 additions & 80 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/validate-local.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env node
22

3-
import { TodoManager } from '../dist/core/storage/todo.js';
3+
import { TodoManager } from '../dist/core/storage/task.js';
44
import { getLogger } from '../dist/core/system/logger.js';
55
import { validateTasks } from '../dist/validators/validator.js';
66

src/commands/audit/supersede.command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { ILogger } from '../../types/observability';
66
import { CommandName, IUIdSupersedeUseCase } from '../../types';
77
import { BaseCommand } from '../shared/base.command';
88

9-
export interface ISupersedeOptions {
9+
interface ISupersedeOptions {
1010
oldUid: string;
1111
newUid: string;
1212
}

src/commands/rendering/next.command.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Command } from 'commander';
22

3-
import { TaskProviderType } from '../../types';
3+
import { CommandName, TaskProviderType } from '../../types';
44
import { ILogger, IObservabilityLogger } from '../../types/observability';
55
import { NextCommandOptions } from '../../types/rendering';
66
import { ITaskRepository } from '../../types/repository';
@@ -24,7 +24,7 @@ import { NextCommandTelemetry, OperationContext } from './next.command.telemetry
2424
* Enhanced with comprehensive observability and diagnostics.
2525
*/
2626
export class NextCommand extends BaseCommand {
27-
override name = 'next';
27+
override name = CommandName.NEXT;
2828
override description = 'Hydrate the next eligible task';
2929
private readonly hydrationService: TaskHydrationService;
3030
private readonly observabilityLogger: IObservabilityLogger;
@@ -132,7 +132,7 @@ export class NextCommand extends BaseCommand {
132132

133133
static configure(program: Command, logger: ILogger): void {
134134
program
135-
.command('next')
135+
.command(CommandName.NEXT)
136136
.description('Hydrate the next eligible task')
137137
.option('--provider <provider>', 'Task provider: todo, issues, projects', 'todo')
138138
.option('--filters <filters...>', 'Filters for task selection')

0 commit comments

Comments
 (0)