taskgraph-ai 0.52.12 → 0.54.7

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.
Files changed (42) hide show
  1. package/README.md +38 -34
  2. package/dist/ai-services-unified-443pp39A.js +1 -0
  3. package/dist/ai-services-unified-C29ea2f8.js +3 -0
  4. package/dist/assets/AGENTS.md +12 -13
  5. package/dist/commands-BQrpRKx2.js +126 -0
  6. package/dist/config-manager-1Zhw_Ob5.js +1 -0
  7. package/dist/config-manager-CecOyMub.js +1 -0
  8. package/dist/git-utils-CRR3iPaC.js +1 -0
  9. package/dist/{git-utils--i2q96hv.js → git-utils-NnZtE3nY.js} +1 -1
  10. package/dist/init-Dm0XBXMD.js +24 -0
  11. package/dist/mcp-server.js +2 -10
  12. package/dist/research-BY8APYWo.js +585 -0
  13. package/dist/research-CJ_GBjgH.js +1 -0
  14. package/dist/response-language-29GrZl4K.js +1 -0
  15. package/dist/response-language-mSXkRdue.js +1 -0
  16. package/dist/rolldown-runtime-BxhE39jg.js +1 -0
  17. package/dist/src-ZjjcZr3a.js +468 -0
  18. package/dist/src-xo9dUCIC.js +207 -0
  19. package/dist/tag-management-D4lpCywn.js +1 -0
  20. package/dist/task-manager-GG4EpQXs.js +168 -0
  21. package/dist/task-manager-gnhcGsE8.js +1 -0
  22. package/dist/taskgraph.js +1 -1
  23. package/package.json +6 -13
  24. package/dist/ai-services-unified-BuoDs5zU.js +0 -1
  25. package/dist/ai-services-unified-D8LfWQ4S.js +0 -3
  26. package/dist/assets/claude/TM_COMMANDS_GUIDE.md +0 -147
  27. package/dist/commands-Brsl3ZyL.js +0 -210
  28. package/dist/config-manager-BxNrtquR.js +0 -1
  29. package/dist/config-manager-CkwCWw53.js +0 -1
  30. package/dist/dependency-manager-DRkIU6DR.js +0 -1283
  31. package/dist/git-utils-BezpEZd4.js +0 -1
  32. package/dist/init-Cp1ZIvlh.js +0 -3142
  33. package/dist/research-Cf8YeyqJ.js +0 -1
  34. package/dist/response-language-BhegpO-l.js +0 -1
  35. package/dist/response-language-CvMcnuEd.js +0 -1
  36. package/dist/src-BaM893RS.js +0 -207
  37. package/dist/tag-management-DILdqQSS.js +0 -1
  38. package/dist/task-manager-L39eOUEz.js +0 -1
  39. package/dist/update-subtask-by-id-Dlk8IQru.js +0 -1
  40. package/dist/update-task-by-id-C1xnfWPp.js +0 -1
  41. package/dist/utils-CvXyXTNj.js +0 -1
  42. package/index.js +0 -157
package/index.js DELETED
@@ -1,157 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- /**
4
- * TaskGraph
5
- * Copyright (c) 2025 Eyal Toledano, Ralph Khreish
6
- *
7
- * This software is licensed under the MIT License with Commons Clause.
8
- * You may use this software for any purpose, including commercial applications,
9
- * and modify and redistribute it freely, subject to the following restrictions:
10
- *
11
- * 1. You may not sell this software or offer it as a service.
12
- * 2. The origin of this software must not be misrepresented.
13
- * 3. Altered source versions must be plainly marked as such.
14
- *
15
- * For the full license text, see the LICENSE file in the root directory.
16
- */
17
-
18
- /**
19
- * TaskGraph
20
- * A task management system for AI-driven development with Claude
21
- */
22
-
23
- // This file serves as the main entry point for the package
24
- // The primary functionality is provided through the CLI commands
25
-
26
- import { spawn } from 'child_process';
27
- import { createRequire } from 'module';
28
- import { dirname, resolve } from 'path';
29
- import { fileURLToPath } from 'url';
30
- import { Command } from 'commander';
31
-
32
- const __filename = fileURLToPath(import.meta.url);
33
- const __dirname = dirname(__filename);
34
- const require = createRequire(import.meta.url);
35
-
36
- // Get package information
37
- const packageJson = require('./package.json');
38
-
39
- // Export the path to the dev.js script for programmatic usage
40
- export const devScriptPath = resolve(__dirname, './scripts/dev.js');
41
-
42
- // Export a function to initialize a new project programmatically
43
- export const initProject = async (options = {}) => {
44
- const init = await import('./scripts/init.js');
45
- return init.initializeProject(options);
46
- };
47
-
48
- // Export a function to run init as a CLI command
49
- export const runInitCLI = async (options = {}) => {
50
- try {
51
- const init = await import('./scripts/init.js');
52
- const result = await init.initializeProject(options);
53
- return result;
54
- } catch (error) {
55
- console.error('Initialization failed:', error.message);
56
- if (process.env.DEBUG === 'true') {
57
- console.error('Debug stack trace:', error.stack);
58
- }
59
- throw error; // Re-throw to be handled by the command handler
60
- }
61
- };
62
-
63
- // Export version information
64
- export const version = packageJson.version;
65
-
66
- // CLI implementation
67
- if (import.meta.url === `file://${process.argv[1]}`) {
68
- const program = new Command();
69
-
70
- program.name('taskgraph').description('TaskGraph CLI').version(version);
71
-
72
- program
73
- .command('init')
74
- .description('Initialize a new project')
75
- .option('-y, --yes', 'Skip prompts and use default values')
76
- .option('-n, --name <n>', 'Project name')
77
- .option('-d, --description <description>', 'Project description')
78
- .option('-v, --version <version>', 'Project version', '0.1.0')
79
- .option('-a, --author <author>', 'Author name')
80
- .option('--skip-install', 'Skip installing dependencies')
81
- .option('--dry-run', 'Show what would be done without making changes')
82
- .option('--aliases', 'Add shell aliases (tm, taskgraph)')
83
- .option('--no-aliases', 'Skip shell aliases (tm, taskgraph)')
84
- .option('--git', 'Initialize Git repository')
85
- .option('--no-git', 'Skip Git repository initialization')
86
- .option('--git-tasks', 'Store tasks in Git')
87
- .option('--no-git-tasks', 'No Git storage of tasks')
88
- .action(async (cmdOptions) => {
89
- try {
90
- await runInitCLI(cmdOptions);
91
- } catch (err) {
92
- console.error('Init failed:', err.message);
93
- process.exit(1);
94
- }
95
- });
96
-
97
- program
98
- .command('dev')
99
- .description('Run the dev.js script')
100
- .allowUnknownOption(true)
101
- .action(() => {
102
- const args = process.argv.slice(process.argv.indexOf('dev') + 1);
103
- const child = spawn('node', [devScriptPath, ...args], {
104
- stdio: 'inherit',
105
- cwd: process.cwd()
106
- });
107
-
108
- child.on('close', (code) => {
109
- process.exit(code);
110
- });
111
- });
112
-
113
- // Add shortcuts for common dev.js commands
114
- program
115
- .command('list')
116
- .description('List all tasks')
117
- .action(() => {
118
- const child = spawn('node', [devScriptPath, 'list'], {
119
- stdio: 'inherit',
120
- cwd: process.cwd()
121
- });
122
-
123
- child.on('close', (code) => {
124
- process.exit(code);
125
- });
126
- });
127
-
128
- program
129
- .command('next')
130
- .description('Show the next task to work on')
131
- .action(() => {
132
- const child = spawn('node', [devScriptPath, 'next'], {
133
- stdio: 'inherit',
134
- cwd: process.cwd()
135
- });
136
-
137
- child.on('close', (code) => {
138
- process.exit(code);
139
- });
140
- });
141
-
142
- program
143
- .command('generate')
144
- .description('Generate task files')
145
- .action(() => {
146
- const child = spawn('node', [devScriptPath, 'generate'], {
147
- stdio: 'inherit',
148
- cwd: process.cwd()
149
- });
150
-
151
- child.on('close', (code) => {
152
- process.exit(code);
153
- });
154
- });
155
-
156
- program.parse(process.argv);
157
- }