Core utilities for kodrdriv command packages.
npm install @grunnverk/coreimport { Config, getLogger, create as createDiff } from '@grunnverk/core';
// Use core utilities in your command package
const logger = getLogger();
const diff = await createDiff({
excludedPatterns: ['node_modules'],
maxDiffBytes: 20480
});
const diffContent = await diff.get();- diff.ts - Git diff operations with intelligent truncation
- log.ts - Git log operations
- files.ts - File content collection for context
- general.ts - Version management, file paths, timestamping
- interactive.ts - TTY prompts and user interaction
- aiAdapter.ts - Convert kodrdriv config to AI service format
- storageAdapter.ts - Storage adapter for AI service
- loggerAdapter.ts - Logger adapter for AI service
- stopContext.ts - Sensitive content filtering
- gitMutex.ts - Repository-level git locking
- fileLock.ts - File-based cross-process locking
- validation.ts - Data validation utilities
- errorHandler.ts - Standardized error handling
- types.ts - TypeScript type definitions and Zod schemas
- constants.ts - Package constants and defaults
- logging.ts - Winston logger configuration
For AI agents and developers:
- Agentic Guide - Start here for AI-assisted development
- API Documentation - Detailed API reference
- Architecture - Package design and structure
Apache-2.0
TEST