packages/tm-core/README.md
Core library for Task Master AI - providing task management and orchestration capabilities with TypeScript support.
tm-core is the foundational library that powers Task Master AI's task management system. It provides a comprehensive set of tools for creating, managing, and orchestrating tasks with AI integration.
npm install @task-master/tm-core
import { generateTaskId, PlaceholderTask } from '@task-master/tm-core';
// Generate a unique task ID
const taskId = generateTaskId();
// Create a task (coming soon - full implementation)
const task: PlaceholderTask = {
id: taskId,
title: 'My Task',
status: 'pending',
priority: 'medium'
};
You can import specific modules to reduce bundle size:
// Import types only
import type { TaskId, TaskStatus } from '@task-master/tm-core/types';
// Import utilities
import { generateTaskId, formatDate } from '@task-master/tm-core/utils';
// Import providers (AI providers coming soon)
// import { AIProvider } from '@task-master/tm-core/providers';
// Import storage
import { PlaceholderStorage } from '@task-master/tm-core/storage';
// Import parsers
import { PlaceholderParser } from '@task-master/tm-core/parser';
// Import errors
import { TmCoreError, TaskNotFoundError } from '@task-master/tm-core/errors';
The library is organized into several key modules:
# Install dependencies
npm install
# Build the library
npm run build
# Run tests
npm test
# Run tests with coverage
npm run test:coverage
# Lint code
npm run lint
# Format code
npm run format
build: Build the library for both ESM and CJS formatsbuild:watch: Build in watch mode for developmenttest: Run the test suitetest:watch: Run tests in watch modetest:coverage: Run tests with coverage reportinglint: Lint TypeScript fileslint:fix: Lint and auto-fix issuesformat: Format code with Prettierformat:check: Check code formattingtypecheck: Type-check without emitting filesclean: Clean build artifactsdev: Development mode with watchThis package supports both ESM and CommonJS formats automatically:
// ESM
import { generateTaskId } from '@task-master/tm-core';
// CommonJS
const { generateTaskId } = require('@task-master/tm-core');
This is the initial package structure. The following features are planned for implementation:
This package is part of the Task Master AI project. Please refer to the main project's contributing guidelines.
MIT - See the main project's LICENSE file for details.
For questions and support, please refer to the main Task Master AI documentation.