spectra_cli 0.1.4 copy "spectra_cli: ^0.1.4" to clipboard
spectra_cli: ^0.1.4 copied to clipboard

A Multi-LLM Spec-Driven Development System.

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

0.1.4 - 2026-01-08 #

Changed #

  • Updated jaspr dependency to ^0.22.1.

Fixed #

  • Fixed lint warnings in CodebaseContextService (prefer single quotes).

0.1.3 - 2026-01-05 #

Added #

  • Test Suite: Comprehensive unit tests for agents, models, and utilities.
    • Tests for AgentState JSON serialization/deserialization.
    • Tests for SpectraTask XML parsing.
    • Tests for WorkerAgent task assignment and execution.
    • Tests for StateManager pruning logic.
  • LLM Response Caching: New caching layer to reduce API costs.
    • LRU cache with configurable size and TTL.
    • Persistent file-based caching in ~/.spectra/cache.json.
    • CachedLLMProvider wrapper for transparent caching.
  • Timeout & Retry Handling: Robust HTTP request handling.
    • Configurable timeouts for all LLM API calls (default: 60s).
    • Automatic retry with exponential backoff.
    • Rate limit detection and handling.
  • Enhanced Error Recovery: Improved multi-agent resilience.
    • OrchestratorConfig for customizable orchestrator behavior.
    • Automatic stuck agent detection and recovery.
    • Consecutive failure tracking with configurable thresholds.
    • Task release and reassignment when workers fail.
    • restartAgent() method for manual recovery.
  • API Documentation: Comprehensive doc comments throughout codebase.
    • All public APIs documented with examples.
    • Agent roles, states, and lifecycle documented.
    • LLM provider interface fully documented.
  • Web Dashboard: Real-time browser-based agent monitoring UI.
    • New spectra dashboard command to launch the web server.
    • Built with Jaspr for component-based server-side rendering.
    • Reusable components: DashboardPage, AgentCard, ProgressCard.
    • Live agent status with role indicators (Mayor 👔, Worker 🔧, Witness 👁️).
    • Project progress tracking with visual progress bar.
    • Auto-refresh every 2 seconds.
    • Modern dark theme with responsive design.
    • Configurable port via --port flag.

Changed #

  • Replaced Timer.periodic with proper async loop in orchestrator to prevent race conditions.
  • Workers now properly reset to idle status after completing tasks.
  • All LLM providers now use HttpUtils for consistent timeout/retry behavior.
  • SpectraCommand now extends Command<void> for type safety.
  • Added analysis_options.yaml with strict linting rules.
  • Updated minimum Dart SDK to 3.10.0 for modern language features.

Dependencies #

  • Added jaspr ^0.22.0 for component-based web dashboard.
  • Added shelf ^1.4.1 and shelf_router ^1.1.4 for HTTP server.
  • Added crypto ^3.0.3 for cache key hashing.
  • Added mocktail ^1.0.4 (dev) for testing.

Fixed #

  • Fixed orchestrator race condition where agent steps could execute concurrently.
  • Fixed worker agents becoming permanently unavailable after first task completion.
  • Fixed nullable field promotion issues in LLMCache.
  • Fixed LRU cache corruption when updating existing entries (duplicate keys in access order).
  • Fixed potential null pointer exception in progress command's ANSI color wrapping.
  • Fixed type casting issues in progress and start commands.

0.1.2 - 2026-01-04 #

Added #

  • Multi-Agent Orchestrator: Introduced a new orchestration layer inspired by Gastown.
    • Mayor Agent: New role for task coordination and assignment.
    • Worker Agent: Parallelized execution engine for faster implementation.
    • Witness Agent: Health monitoring role to detect stuck or timed-out agents.
  • spectra start Command: New CLI command to launch the orchestrator with configurable worker counts (--workers).
  • Convoy System: Batch management for grouped tasks to enable better parallel orchestration.

Changed #

  • Refactored implementation logic to be modular and reusable across single-agent and multi-agent execution.
  • Renamed docs directory to doc to follow Dart Pub layout conventions.

0.1.1 - 2025-12-20 #

Added #

  • Model Selection System: Users can now select specific model versions for each provider via spectra config.
  • Preferred Provider Support: Ability to set a default provider for the entire workflow.
  • LLM Context Awareness: spectra execute now reads existing file contents to provide context to the LLM, preventing blind overwrites.
  • Autonomous Progress Tracking: spectra execute now automatically updates task status in PLAN.md and appends implementation logs to STATE.md.
  • Interactive ASCII Banner: High-fidelity cyan banner added to onboarding and help commands.
  • Enhanced Help System: Curated command guide and discoverable examples.

Changed #

  • Flagship Model Updates: Defaulted to the latest 2025 frontier models: OpenAI GPT-5.2, Anthropic Claude 4.5, and Google Gemini 3 Pro.
  • Gemini Migration: Switched from google_generative_ai SDK to direct REST API implementation for better security (x-goog-api-key header) and reduced dependency bloat.
  • Logic Refinement: Replaced all mock implementations in plan, execute, map, progress, and resume with real production-ready logic.
  • Package Renaming: Project and imports migrated from spectra to spectra_cli.

Fixed #

  • Fixed duplication of project description in help output.
  • Fixed missing mason_logger imports for color constants in commands.

0.1.0 - 2025-12-20 #

Added #

  • Initial release of Spectra CLI.
  • Core Command Framework using args and mason_logger.
  • Multi-LLM Provider Layer (Gemini, Claude, OpenAI).
  • spectra new for interactive project initialization.
  • spectra map for brownfield codebase analysis.
  • spectra plan for XML-based task generation.
  • spectra execute for automated file modification and execution.
  • spectra progress and spectra resume for state management.
  • StateManager for automated STATE.md pruning and archiving.
  • Comprehensive README inspired by get-shit-done.
2
likes
140
points
143
downloads

Publisher

verified publisheretornam.dev

Weekly Downloads

A Multi-LLM Spec-Driven Development System.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

args, crypto, http, interact, jaspr, mason_logger, shelf, shelf_router, xml, yaml

More

Packages that depend on spectra_cli