Commit Graph

16 Commits

Author SHA1 Message Date
user 17239e26b3 Add comprehensive SPEC.md for project recreation
- Document architecture, data flow, and module structure
- Define harness adapter interface contract
- Specify pricing table format (provider-based)
- Document hook integration requirements
- List all feature requirements and configuration files
- Include glossary, examples, and file index

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-24 02:45:45 +02:00
user d6f37c3be5 Bump version to 0.2.1
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-24 02:33:53 +02:00
user b726ca28dd Prioritize active_model over model_name for pricing lookup
- Swapped parameter order in effective_rates() to pass alias (active_model) as model_name
- This ensures the actual running model is displayed in hook output
- Updated docstring to clarify the new priority order
- All 30 tests still pass

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-24 02:31:13 +02:00
user fb2ceaedf0 Bump version to 0.2.0
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-24 02:24:07 +02:00
user 4d13fa08fd Make --integrate command require explicit harness argument
- Changed --integrate from flag to argument that requires a harness name
- Currently supports 'mistral' harness (Vibe CLI)
- Renamed integrate_vibe_hooks() to integrate_hooks() for modularity
- Added validation for supported harnesses
- Added tests for --integrate command validation
- Modular design allows adding more harnesses in the future

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-24 02:17:12 +02:00
user 974aea129e Add warning when model price is not available in pricing.json
- Modified get_model_prices() in pricing.py to return is_default flag
- Updated CLI to display warning in all output modes (default, details, JSON)
- Warning format: '**model price not available**' on new line
- Updated all tests to handle 4-tuple return value
- Works with refactored provider-based pricing structure

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-24 02:14:59 +02:00
user 27a7200bc3 Update documentation for --integrate command
- Updated README.md with --integrate usage
- Updated SKILL.md with --integrate documentation

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-24 02:05:18 +02:00
user 6feecdaa12 Add --integrate command for automatic Vibe hook installation
- New command: agent-cost-estimator --integrate
- Installs post_turn.py hook script to ~/.vibe/hooks/
- Creates/updates ~/.vibe/hooks.toml with hook configuration
- Adds agent-cost-estimator to Vibe's bash allowlist in config.toml
- Hook script bundled in agent_cost_estimator/hooks/ package
- Works on all machines (portable installation)
- Added hooks package to pyproject.toml

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-24 02:04:29 +02:00
user ecafb961c1 Update CLI output to show provider:model in all display modes
- Default output: provider:model | session:$X | turn:$Y
- Details (-d): shows provider:model as 'model' field
- JSON (--json): adds 'provider' and 'provider_model' fields
- Updated test to expect new default output format

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-24 02:03:06 +02:00
user 443f88a32b Clean up pricing.json to provider-only structure
- Remove root-level currency and models (flat structure)
- Keep only providers dictionary with nested currency and models
- Add default provider as fallback
- Add mistral-vibe-cli-latest model to mistral provider
- Simplify pricing.py to remove backward compatibility code
- Update tests to use provider-based structure

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-24 02:00:20 +02:00
user 79300bdb13 Refactor pricing.json to support multiple providers
- Add 'providers' top-level dictionary with provider-specific configurations
- Each provider has its own 'currency' and 'models' dictionary
- Model-level currency can override provider currency
- Maintain backward compatibility with flat structure (currency + models at root)
- Update pricing.py to handle both structures with provider-aware lookup
- Update get_model_prices() to return (rates, key, currency) tuple
- Update CLI to display currency and provider-prefixed model keys
- Update tests to handle new return signature

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-24 01:52:20 +02:00
nvaldez 27fb34dd78 Fix pyproject.toml: replace invalid package-data syntax with include-package-data
The original package-data configuration used invalid TOML syntax with
empty string and wildcard keys that are not supported by setuptools.
This caused pip install to fail with TOMLDecodeError.

Changed to use include-package-data = true which automatically includes
all non-Python files in the package directories (pricing.json, SKILL.md).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-23 23:03:47 +02:00
nvaldez c38579fb1e Add --local and --no-env options to bootstrap scripts
- Add --no-env flag to skip virtual environment creation
- Add --local flag to install with --user (user-local installation)
- Update both bash and PowerShell scripts

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-21 23:55:53 +02:00
nvaldez 59c7fd73da Add bootstrap scripts for local pip install
- Add bash bootstrap script for Linux/macOS
- Add PowerShell bootstrap.ps1 for Windows
- Update pyproject.toml with dev dependencies (pytest, pytest-cov)
- Update license to GPL-3.0-only
- Add pytest configuration

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-21 23:53:29 +02:00
nvaldez a3b12291cb Change license from MIT to GNU GPL v3
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-21 23:18:37 +02:00
nvaldez b3d581d21a Initial commit: agent-cost-estimator 0.1.0
- Python CLI tool to report token usage and estimated USD cost
- Supports Mistral Vibe harness with pluggable adapter interface
- Includes SKILL.md in skill/ directory for LLM consumption via --skill flag
- Full test suite (28 tests)
- Typical Python project structure with .gitignore, .gitattributes, LICENSE, README.md
- Build script for PyPI distribution

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-10-21 23:12:07 +02:00