@e0ipso/ai-task-manager 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/logger.js ADDED
@@ -0,0 +1,184 @@
1
+ "use strict";
2
+ /**
3
+ * Simple Logging Utility
4
+ *
5
+ * This file provides a simple logging interface for the CLI
6
+ * Handles different log levels and formatted output with optional color support
7
+ */
8
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
9
+ if (k2 === undefined) k2 = k;
10
+ var desc = Object.getOwnPropertyDescriptor(m, k);
11
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
12
+ desc = { enumerable: true, get: function() { return m[k]; } };
13
+ }
14
+ Object.defineProperty(o, k2, desc);
15
+ }) : (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ o[k2] = m[k];
18
+ }));
19
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
20
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
21
+ }) : function(o, v) {
22
+ o["default"] = v;
23
+ });
24
+ var __importStar = (this && this.__importStar) || (function () {
25
+ var ownKeys = function(o) {
26
+ ownKeys = Object.getOwnPropertyNames || function (o) {
27
+ var ar = [];
28
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
29
+ return ar;
30
+ };
31
+ return ownKeys(o);
32
+ };
33
+ return function (mod) {
34
+ if (mod && mod.__esModule) return mod;
35
+ var result = {};
36
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
37
+ __setModuleDefault(result, mod);
38
+ return result;
39
+ };
40
+ })();
41
+ Object.defineProperty(exports, "__esModule", { value: true });
42
+ exports.sync = exports.isDebugMode = void 0;
43
+ exports.setDebugMode = setDebugMode;
44
+ exports.info = info;
45
+ exports.success = success;
46
+ exports.error = error;
47
+ exports.warning = warning;
48
+ exports.debug = debug;
49
+ exports.initLogger = initLogger;
50
+ // Chalk instance - loaded dynamically to handle ESM module
51
+ let chalkInstance = null;
52
+ let chalkInitialized = false;
53
+ /**
54
+ * Initialize chalk instance dynamically
55
+ * This handles the ESM import in a CommonJS environment
56
+ */
57
+ async function initChalk() {
58
+ if (chalkInitialized)
59
+ return;
60
+ try {
61
+ const { default: chalk } = await Promise.resolve().then(() => __importStar(require('chalk')));
62
+ chalkInstance = chalk;
63
+ }
64
+ catch (_error) {
65
+ // Chalk not available, will fall back to plain console output
66
+ chalkInstance = null;
67
+ }
68
+ chalkInitialized = true;
69
+ }
70
+ /**
71
+ * Get chalk instance, initializing if necessary
72
+ */
73
+ async function getChalk() {
74
+ await initChalk();
75
+ return chalkInstance;
76
+ }
77
+ /**
78
+ * Debug mode flag - can be set externally
79
+ */
80
+ exports.isDebugMode = false;
81
+ /**
82
+ * Enable or disable debug mode
83
+ */
84
+ function setDebugMode(enabled) {
85
+ exports.isDebugMode = enabled;
86
+ }
87
+ /**
88
+ * Log an informational message
89
+ */
90
+ async function info(message) {
91
+ const chalk = await getChalk();
92
+ const formattedMessage = chalk?.blue(`ℹ ${message}`) || `ℹ ${message}`;
93
+ console.log(formattedMessage);
94
+ }
95
+ /**
96
+ * Log a success message
97
+ */
98
+ async function success(message) {
99
+ const chalk = await getChalk();
100
+ const formattedMessage = chalk?.green(`✓ ${message}`) || `✓ ${message}`;
101
+ console.log(formattedMessage);
102
+ }
103
+ /**
104
+ * Log an error message
105
+ */
106
+ async function error(message) {
107
+ const chalk = await getChalk();
108
+ const formattedMessage = chalk?.red(`✗ ${message}`) || `✗ ${message}`;
109
+ console.error(formattedMessage);
110
+ }
111
+ /**
112
+ * Log a warning message
113
+ */
114
+ async function warning(message) {
115
+ const chalk = await getChalk();
116
+ const formattedMessage = chalk?.yellow(`⚠ ${message}`) || `⚠ ${message}`;
117
+ console.log(formattedMessage);
118
+ }
119
+ /**
120
+ * Log a debug message (only shown in debug mode)
121
+ */
122
+ async function debug(message) {
123
+ if (!exports.isDebugMode)
124
+ return;
125
+ const chalk = await getChalk();
126
+ const formattedMessage = chalk?.gray(`🐛 DEBUG: ${message}`) || `🐛 DEBUG: ${message}`;
127
+ console.log(formattedMessage);
128
+ }
129
+ /**
130
+ * Synchronous versions for cases where async is not suitable
131
+ * These will only use colors if chalk was previously initialized
132
+ */
133
+ exports.sync = {
134
+ /**
135
+ * Log an informational message (sync)
136
+ */
137
+ info(message) {
138
+ const formattedMessage = chalkInstance?.blue(`ℹ ${message}`) || `ℹ ${message}`;
139
+ console.log(formattedMessage);
140
+ },
141
+ /**
142
+ * Log a success message (sync)
143
+ */
144
+ success(message) {
145
+ const formattedMessage = chalkInstance?.green(`✓ ${message}`) || `✓ ${message}`;
146
+ console.log(formattedMessage);
147
+ },
148
+ /**
149
+ * Log an error message (sync)
150
+ */
151
+ error(message) {
152
+ const formattedMessage = chalkInstance?.red(`✗ ${message}`) || `✗ ${message}`;
153
+ console.error(formattedMessage);
154
+ },
155
+ /**
156
+ * Log a warning message (sync)
157
+ */
158
+ warning(message) {
159
+ const formattedMessage = chalkInstance?.yellow(`⚠ ${message}`) || `⚠ ${message}`;
160
+ console.log(formattedMessage);
161
+ },
162
+ /**
163
+ * Log a debug message (sync, only shown in debug mode)
164
+ */
165
+ debug(message) {
166
+ if (!exports.isDebugMode)
167
+ return;
168
+ const formattedMessage = chalkInstance?.gray(`🐛 DEBUG: ${message}`) || `🐛 DEBUG: ${message}`;
169
+ console.log(formattedMessage);
170
+ },
171
+ };
172
+ /**
173
+ * Initialize the logger - call this early in your application
174
+ * This pre-loads chalk to avoid delays on first use
175
+ */
176
+ async function initLogger() {
177
+ await initChalk();
178
+ }
179
+ // Pre-initialize chalk on module load (non-blocking)
180
+ initChalk().catch(() => {
181
+ // Silently handle initialization errors
182
+ // Logger will work without colors if chalk fails to load
183
+ });
184
+ //# sourceMappingURL=logger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.js","sourceRoot":"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;OAEG;IACH,OAAO,CAAC,OAAe;QACrB,MAAM,gBAAgB,GAAG,aAAa,EAAE,KAAK,CAAC,KAAK,OAAO,EAAE,CAAC,IAAI,KAAK,OAAO,EAAE,CAAC;QAChF,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAChC,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,OAAe;QACnB,MAAM,gBAAgB,GAAG,aAAa,EAAE,GAAG,CAAC,KAAK,OAAO,EAAE,CAAC,IAAI,KAAK,OAAO,EAAE,CAAC;QAC9E,OAAO,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;IAClC,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,OAAe;QACrB,MAAM,gBAAgB,GAAG,aAAa,EAAE,MAAM,CAAC,KAAK,OAAO,EAAE,CAAC,IAAI,KAAK,OAAO,EAAE,CAAC;QACjF,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAChC,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,OAAe;QACnB,IAAI,CAAC,mBAAW;YAAE,OAAO;QAEzB,MAAM,gBAAgB,GAAG,aAAa,EAAE,IAAI,CAAC,aAAa,OAAO,EAAE,CAAC,IAAI,aAAa,OAAO,EAAE,CAAC;QAC/F,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAChC,CAAC;CACF,CAAC;AAEF;;;GAGG;AACI,KAAK,UAAU,UAAU;IAC9B,MAAM,SAAS,EAAE,CAAC;AACpB,CAAC;AAED,qDAAqD;AACrD,SAAS,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE;IACrB,wCAAwC;IACxC,yDAAyD;AAC3D,CAAC,CAAC,CAAC"}
@@ -0,0 +1,256 @@
1
+ /**
2
+ * TypeScript Type Definitions
3
+ *
4
+ * This file contains all TypeScript interfaces, types, and enums
5
+ * used throughout the AI Task Manager CLI application
6
+ */
7
+ /**
8
+ * Supported AI assistants for task management
9
+ */
10
+ export type Assistant = 'claude' | 'gemini';
11
+ /**
12
+ * Template format types for different assistants
13
+ */
14
+ export type TemplateFormat = 'md' | 'toml';
15
+ /**
16
+ * Options for the init command
17
+ */
18
+ export interface InitOptions {
19
+ /**
20
+ * Comma-separated list of assistants to configure
21
+ */
22
+ assistants: string;
23
+ /**
24
+ * Optional destination directory for the configuration
25
+ */
26
+ destinationDirectory?: string;
27
+ }
28
+ /**
29
+ * Configuration for directory structure
30
+ */
31
+ export interface DirectoryConfig {
32
+ /**
33
+ * Path to the directory
34
+ */
35
+ path: string;
36
+ /**
37
+ * Optional list of files to create in the directory
38
+ */
39
+ files?: string[];
40
+ }
41
+ /**
42
+ * Task status enumeration
43
+ */
44
+ export type TaskStatus = 'pending' | 'in_progress' | 'completed' | 'cancelled';
45
+ /**
46
+ * Task priority levels
47
+ */
48
+ export type TaskPriority = 'low' | 'medium' | 'high' | 'urgent';
49
+ /**
50
+ * Individual task definition
51
+ */
52
+ export interface Task {
53
+ /**
54
+ * Unique identifier for the task
55
+ */
56
+ id: string;
57
+ /**
58
+ * Task title/name
59
+ */
60
+ title: string;
61
+ /**
62
+ * Detailed task description
63
+ */
64
+ description?: string;
65
+ /**
66
+ * Current status of the task
67
+ */
68
+ status: TaskStatus;
69
+ /**
70
+ * Task priority level
71
+ */
72
+ priority: TaskPriority;
73
+ /**
74
+ * Task creation timestamp
75
+ */
76
+ createdAt: Date;
77
+ /**
78
+ * Last update timestamp
79
+ */
80
+ updatedAt: Date;
81
+ /**
82
+ * Optional due date
83
+ */
84
+ dueDate?: Date;
85
+ /**
86
+ * Tags associated with the task
87
+ */
88
+ tags: string[];
89
+ /**
90
+ * AI assistant assigned to the task
91
+ */
92
+ assignedTo?: Assistant;
93
+ }
94
+ /**
95
+ * Task list configuration
96
+ */
97
+ export interface TaskList {
98
+ /**
99
+ * List name/identifier
100
+ */
101
+ name: string;
102
+ /**
103
+ * List description
104
+ */
105
+ description?: string;
106
+ /**
107
+ * Tasks in the list
108
+ */
109
+ tasks: Task[];
110
+ /**
111
+ * Creation timestamp
112
+ */
113
+ createdAt: Date;
114
+ /**
115
+ * Last update timestamp
116
+ */
117
+ updatedAt: Date;
118
+ }
119
+ /**
120
+ * CLI command options base interface
121
+ */
122
+ export interface BaseCommandOptions {
123
+ /**
124
+ * Enable verbose logging
125
+ */
126
+ verbose?: boolean;
127
+ /**
128
+ * Dry run mode - show what would be done without executing
129
+ */
130
+ dryRun?: boolean;
131
+ }
132
+ /**
133
+ * Assistant configuration
134
+ */
135
+ export interface AssistantConfig {
136
+ /**
137
+ * Assistant type
138
+ */
139
+ type: Assistant;
140
+ /**
141
+ * API endpoint URL
142
+ */
143
+ endpoint?: string;
144
+ /**
145
+ * API key for authentication
146
+ */
147
+ apiKey?: string;
148
+ /**
149
+ * Model name/version to use
150
+ */
151
+ model?: string;
152
+ /**
153
+ * Additional configuration options
154
+ */
155
+ options?: Record<string, unknown>;
156
+ }
157
+ /**
158
+ * Project configuration
159
+ */
160
+ export interface ProjectConfig {
161
+ /**
162
+ * Project name
163
+ */
164
+ name: string;
165
+ /**
166
+ * Project description
167
+ */
168
+ description?: string;
169
+ /**
170
+ * Default assistant for the project
171
+ */
172
+ defaultAssistant?: Assistant;
173
+ /**
174
+ * Configured assistants
175
+ */
176
+ assistants: AssistantConfig[];
177
+ /**
178
+ * Project creation timestamp
179
+ */
180
+ createdAt: Date;
181
+ /**
182
+ * Configuration file version
183
+ */
184
+ version: string;
185
+ }
186
+ /**
187
+ * Error types for better error handling
188
+ */
189
+ export declare class TaskManagerError extends Error {
190
+ code: string;
191
+ details?: Record<string, unknown> | undefined;
192
+ constructor(message: string, code: string, details?: Record<string, unknown> | undefined);
193
+ }
194
+ /**
195
+ * Configuration validation error
196
+ */
197
+ export declare class ConfigError extends TaskManagerError {
198
+ constructor(message: string, details?: Record<string, unknown>);
199
+ }
200
+ /**
201
+ * Task operation error
202
+ */
203
+ export declare class TaskError extends TaskManagerError {
204
+ constructor(message: string, details?: Record<string, unknown>);
205
+ }
206
+ /**
207
+ * Assistant integration error
208
+ */
209
+ export declare class AssistantError extends TaskManagerError {
210
+ constructor(message: string, details?: Record<string, unknown>);
211
+ }
212
+ /**
213
+ * File system operation error
214
+ */
215
+ export declare class FileSystemError extends TaskManagerError {
216
+ constructor(message: string, details?: Record<string, unknown>);
217
+ }
218
+ /**
219
+ * Validation result interface
220
+ */
221
+ export interface ValidationResult {
222
+ /**
223
+ * Whether validation passed
224
+ */
225
+ valid: boolean;
226
+ /**
227
+ * Validation errors if any
228
+ */
229
+ errors: string[];
230
+ /**
231
+ * Validation warnings if any
232
+ */
233
+ warnings: string[];
234
+ }
235
+ /**
236
+ * Command execution result
237
+ */
238
+ export interface CommandResult {
239
+ /**
240
+ * Whether command executed successfully
241
+ */
242
+ success: boolean;
243
+ /**
244
+ * Result message
245
+ */
246
+ message: string;
247
+ /**
248
+ * Additional data from command execution
249
+ */
250
+ data?: unknown;
251
+ /**
252
+ * Error information if command failed
253
+ */
254
+ error?: Error;
255
+ }
256
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE5C;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,IAAI,GAAG,MAAM,CAAC;AAE3C;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,aAAa,GAAG,WAAW,GAAG,WAAW,CAA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G;IACH,KAAK,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB;;OAEG;IACH,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;CACf"}
package/dist/types.js ADDED
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ /**
3
+ * TypeScript Type Definitions
4
+ *
5
+ * This file contains all TypeScript interfaces, types, and enums
6
+ * used throughout the AI Task Manager CLI application
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.FileSystemError = exports.AssistantError = exports.TaskError = exports.ConfigError = exports.TaskManagerError = void 0;
10
+ /**
11
+ * Error types for better error handling
12
+ */
13
+ class TaskManagerError extends Error {
14
+ constructor(message, code, details) {
15
+ super(message);
16
+ this.code = code;
17
+ this.details = details;
18
+ this.name = 'TaskManagerError';
19
+ }
20
+ }
21
+ exports.TaskManagerError = TaskManagerError;
22
+ /**
23
+ * Configuration validation error
24
+ */
25
+ class ConfigError extends TaskManagerError {
26
+ constructor(message, details) {
27
+ super(message, 'CONFIG_ERROR', details);
28
+ this.name = 'ConfigError';
29
+ }
30
+ }
31
+ exports.ConfigError = ConfigError;
32
+ /**
33
+ * Task operation error
34
+ */
35
+ class TaskError extends TaskManagerError {
36
+ constructor(message, details) {
37
+ super(message, 'TASK_ERROR', details);
38
+ this.name = 'TaskError';
39
+ }
40
+ }
41
+ exports.TaskError = TaskError;
42
+ /**
43
+ * Assistant integration error
44
+ */
45
+ class AssistantError extends TaskManagerError {
46
+ constructor(message, details) {
47
+ super(message, 'ASSISTANT_ERROR', details);
48
+ this.name = 'AssistantError';
49
+ }
50
+ }
51
+ exports.AssistantError = AssistantError;
52
+ /**
53
+ * File system operation error
54
+ */
55
+ class FileSystemError extends TaskManagerError {
56
+ constructor(message, details) {
57
+ super(message, 'FILESYSTEM_ERROR', details);
58
+ this.name = 'FileSystemError';
59
+ }
60
+ }
61
+ exports.FileSystemError = FileSystemError;
62
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAgMH;;GAEG;AACH,MAAa,gBAAiB,SAAQ,KAAK;IACzC,YACE,OAAe,EACR,IAAY,EACZ,OAAiC;QAExC,KAAK,CAAC,OAAO,CAAC,CAAC;QAHR,SAAI,GAAJ,IAAI,CAAQ;QACZ,YAAO,GAAP,OAAO,CAA0B;QAGxC,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAC;IACjC,CAAC;CACF;AATD,4CASC;AAED;;GAEG;AACH,MAAa,WAAY,SAAQ,gBAAgB;IAC/C,YAAY,OAAe,EAAE,OAAiC;QAC5D,KAAK,CAAC,OAAO,EAAE,cAAc,EAAE,OAAO,CAAC,CAAC;QACxC,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC;IAC5B,CAAC;CACF;AALD,kCAKC;AAED;;GAEG;AACH,MAAa,SAAU,SAAQ,gBAAgB;IAC7C,YAAY,OAAe,EAAE,OAAiC;QAC5D,KAAK,CAAC,OAAO,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;QACtC,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC;IAC1B,CAAC;CACF;AALD,8BAKC;AAED;;GAEG;AACH,MAAa,cAAe,SAAQ,gBAAgB;IAClD,YAAY,OAAe,EAAE,OAAiC;QAC5D,KAAK,CAAC,OAAO,EAAE,iBAAiB,EAAE,OAAO,CAAC,CAAC;QAC3C,IAAI,CAAC,IAAI,GAAG,gBAAgB,CAAC;IAC/B,CAAC;CACF;AALD,wCAKC;AAED;;GAEG;AACH,M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