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GR,GAAG,SAAU,IAClB,QAAQ,KAAK,EAAK,GACjB,IAIJ,EACE,QAAQ,QACR,YAAY,kBACZ,QAAO,KACO,MAAM,OAAQ,CAAC,cAAe,QAAS,CACpD,MAAO,UACP,IAAK,QAAQ,QAGR,GAAG,SAAU,IAClB,QAAQ,KAAK,EAAK,GACjB,IAGJ,EACE,QAAQ,QACR,YAAY,iCACZ,QAAO,KACO,MAAM,OAAQ,CAAC,cAAe,QAAS,CACpD,MAAO,UACP,IAAK,QAAQ,QAGR,GAAG,SAAU,IAClB,QAAQ,KAAK,EAAK,GACjB,IAGJ,EACE,QAAQ,YACR,YAAY,uBACZ,QAAO,KACO,MAAM,OAAQ,CAAC,cAAe,YAAa,CACxD,MAAO,UACP,IAAK,QAAQ,QAGR,GAAG,SAAU,IAClB,QAAQ,KAAK,EAAK,GACjB,IAGJ,EAAQ,MAAM,QAAQ,KACvB","file":"/npm/@delorenj/taskmaster@1.13.3/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@delorenj/taskmaster@1.13.3/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","#!/usr/bin/env node\n\n/**\n * Task Master\n * Copyright (c) 2025 Eyal Toledano, Ralph Khreish\n *\n * This software is licensed under the MIT License with Commons Clause.\n * You may use this software for any purpose, including commercial applications,\n * and modify and redistribute it freely, subject to the following restrictions:\n *\n * 1. You may not sell this software or offer it as a service.\n * 2. The origin of this software must not be misrepresented.\n * 3. Altered source versions must be plainly marked as such.\n *\n * For the full license text, see the LICENSE file in the root directory.\n */\n\n/**\n * Claude Task Master\n * A task management system for AI-driven development with Claude\n */\n\n// This file serves as the main entry point for the package\n// The primary functionality is provided through the CLI commands\n\nimport { fileURLToPath } from 'url';\nimport { dirname, resolve } from 'path';\nimport { createRequire } from 'module';\nimport { spawn } from 'child_process';\nimport { Command } from 'commander';\n\nconst __filename = fileURLToPath(import.meta.url);\nconst __dirname = dirname(__filename);\nconst require = createRequire(import.meta.url);\n\n// Get package information\nconst packageJson = require('./package.json');\n\n// Export the path to the dev.js script for programmatic usage\nexport const devScriptPath = resolve(__dirname, './scripts/dev.js');\n\n// Export a function to initialize a new project programmatically\nexport const initProject = async (options = {}) => {\n\tconst init = await import('./scripts/init.js');\n\treturn init.initializeProject(options);\n};\n\n// Export a function to run init as a CLI command\nexport const runInitCLI = async (options = {}) => {\n\ttry {\n\t\tconst init = await import('./scripts/init.js');\n\t\tconst result = await init.initializeProject(options);\n\t\treturn result;\n\t} catch (error) {\n\t\tconsole.error('Initialization failed:', error.message);\n\t\tif (process.env.DEBUG === 'true') {\n\t\t\tconsole.error('Debug stack trace:', error.stack);\n\t\t}\n\t\tthrow error; // Re-throw to be handled by the command handler\n\t}\n};\n\n// Export version information\nexport const version = packageJson.version;\n\n// CLI implementation\nif (import.meta.url === `file://${process.argv[1]}`) {\n\tconst program = new Command();\n\n\tprogram\n\t\t.name('task-master')\n\t\t.description('Claude Task Master CLI')\n\t\t.version(version);\n\n\tprogram\n\t\t.command('init')\n\t\t.description('Initialize a new project')\n\t\t.option('-y, --yes', 'Skip prompts and use default values')\n\t\t.option('-n, --name <n>', 'Project name')\n\t\t.option('-d, --description <description>', 'Project description')\n\t\t.option('-v, --version <version>', 'Project version', '0.1.0')\n\t\t.option('-a, --author <author>', 'Author name')\n\t\t.option('--skip-install', 'Skip installing dependencies')\n\t\t.option('--dry-run', 'Show what would be done without making changes')\n\t\t.option('--aliases', 'Add shell aliases (tm, taskmaster)')\n\t\t.action(async (cmdOptions) => {\n\t\t\ttry {\n\t\t\t\tawait runInitCLI(cmdOptions);\n\t\t\t} catch (err) {\n\t\t\t\tconsole.error('Init failed:', err.message);\n\t\t\t\tprocess.exit(1);\n\t\t\t}\n\t\t});\n\n\tprogram\n\t\t.command('dev')\n\t\t.description('Run the dev.js script')\n\t\t.allowUnknownOption(true)\n\t\t.action(() => {\n\t\t\tconst args = process.argv.slice(process.argv.indexOf('dev') + 1);\n\t\t\tconst child = spawn('node', [devScriptPath, ...args], {\n\t\t\t\tstdio: 'inherit',\n\t\t\t\tcwd: process.cwd()\n\t\t\t});\n\n\t\t\tchild.on('close', (code) => {\n\t\t\t\tprocess.exit(code);\n\t\t\t});\n\t\t});\n\n\t// Add shortcuts for common dev.js commands\n\tprogram\n\t\t.command('list')\n\t\t.description('List all tasks')\n\t\t.action(() => {\n\t\t\tconst child = spawn('node', [devScriptPath, 'list'], {\n\t\t\t\tstdio: 'inherit',\n\t\t\t\tcwd: process.cwd()\n\t\t\t});\n\n\t\t\tchild.on('close', (code) => {\n\t\t\t\tprocess.exit(code);\n\t\t\t});\n\t\t});\n\n\tprogram\n\t\t.command('next')\n\t\t.description('Show the next task to work on')\n\t\t.action(() => {\n\t\t\tconst child = spawn('node', [devScriptPath, 'next'], {\n\t\t\t\tstdio: 'inherit',\n\t\t\t\tcwd: process.cwd()\n\t\t\t});\n\n\t\t\tchild.on('close', (code) => {\n\t\t\t\tprocess.exit(code);\n\t\t\t});\n\t\t});\n\n\tprogram\n\t\t.command('generate')\n\t\t.description('Generate task files')\n\t\t.action(() => {\n\t\t\tconst child = spawn('node', [devScriptPath, 'generate'], {\n\t\t\t\tstdio: 'inherit',\n\t\t\t\tcwd: process.cwd()\n\t\t\t});\n\n\t\t\tchild.on('close', (code) => {\n\t\t\t\tprocess.exit(code);\n\t\t\t});\n\t\t});\n\n\tprogram.parse(process.argv);\n}\n"]}