@redaksjon/kronologi
v0.0.12
Published
Intelligent monthly summary generation from activity and context
Readme
Kronologi
Kronologi is a powerful tool for generating intelligent monthly summaries from activity and context. It uses AI to analyze and synthesize information, making it easier to create comprehensive and meaningful documentation for your work.
Features
- Generate intelligent release notes and change logs
- Analyze Git history with customizable time periods
- AI-powered summarization of code changes
- Flexible configuration options
- Support for multiple output formats
- Context-aware analysis
Installation
npm install -g @redaksjon/kronologiCommand Line Usage
Kronologi provides a rich set of command line options to customize its behavior:
Required Arguments
<summaryType>: Type of summary to generate<year>: Year for the summary (must be between 1900 and 2100)<month>: Month for the summary (1-12)
Optional Arguments
[historyMonths]: Number of months of history to include (default: 1)[summaryMonths]: Number of months to summarize (default: 1)
Options
--dry-run: Perform a dry run without saving files (default: false)--verbose: Enable verbose logging (default: false)--debug: Enable debug logging (default: false)--timezone <timezone>: Timezone for date calculations (default: system timezone)--openai-api-key <openaiApiKey>: OpenAI API key (can also be set via OPENAI_API_KEY environment variable)--model <model>: OpenAI model to use (default: gpt-4)--config-dir <configDir>: Config directory (default: ./config)--context-directory <contextDirectory>: Directory containing context files to be included in prompts (default: ./context)--activity-directory <activityDirectory>: Directory containing activity files to be included in prompts (default: ./activity)--summary-directory <summaryDirectory>: Directory containing summary files to be included in prompts (default: ./summary)--replace: Replace existing summary files if they exist (default: false)--version: Display version information
Examples
- Generate a summary for January 2024:
kronologi release-notes 2024 1- Generate a summary with 3 months of history:
kronologi release-notes 2024 1 3- Generate a summary with custom directories:
kronologi release-notes 2024 1 --config-dir ./my-config --context-directory ./my-context- Generate a summary with a specific timezone:
kronologi release-notes 2024 1 --timezone America/New_YorkHow It Works
Kronologi analyzes your Git history and related content using a sophisticated analysis engine that:
- Reads and processes configuration files from the specified config directory
- Gathers context from various sources including:
- Static context files
- Historical context from previous summaries
- Activity files from the specified period
- Processes and combines this information using AI to generate meaningful summaries
- Outputs the results in the specified format
The analysis engine is highly configurable, allowing you to:
- Define custom parameters and their types
- Specify which context sources to include
- Control the temperature and token limits for AI processing
- Customize the output format and structure
Name Origin
The name "Kronologi" comes from the Norwegian word for "chronology" or "timeline", reflecting its purpose of creating temporal summaries and documentation of your work over time.
