@schnick371/devsteps-shared
v0.8.5
Published
Never Code Alone. Shared types, schemas, and utilities for DevSteps task tracking.
Maintainers
Readme
@schnick371/devsteps-shared
Never Code Alone. Shared utilities and types for DevSteps packages.
Overview
Core package providing shared types, schemas, and utilities used across all DevSteps packages (CLI, MCP Server, VS Code Extension).
Features
- TypeScript Types: Complete type definitions for work items, configurations, and API responses
- Zod Schemas: Runtime validation for all data structures
- Core Functions: File operations, item management, relationship handling
- Utilities: ID parsing, timestamp handling, configuration management
Installation
npm install @schnick371/devsteps-sharedUsage
import { addItem, getItem, listItems } from '@schnick371/devsteps-shared';
import type { ItemType, ItemStatus } from '@schnick371/devsteps-shared';
// Add a new work item
const result = await addItem('/path/to/.devsteps', {
type: 'task',
title: 'Implement feature',
priority: 'high'
});
// Get work item
const item = await getItem('/path/to/.devsteps', 'TASK-001');
// List all items
const items = await listItems('/path/to/.devsteps');Exports
Core Functions
addItem()- Create new work itemgetItem()- Retrieve work item by IDupdateItem()- Update existing work itemdeleteItem()- Delete work itemlistItems()- List all work items with filterssearchItems()- Full-text search across itemslinkItems()- Create relationships between itemsarchiveItem()- Archive completed items
Types
ItemType- Epic, Story, Task, Bug, etc.ItemStatus- Draft, In Progress, Done, etc.Priority- Critical, High, Medium, LowMethodology- Scrum, Waterfall, HybridItemMetadata- Complete work item structure
Schemas
addItemSchema- Validation for item creationupdateItemSchema- Validation for updateslinkItemSchema- Validation for relationships
Documentation
License
Apache-2.0 © Thomas Hertel
