48e9242f8f
display.format_token_count now rounds half-up to whole numbers with tier rollover (999999 -> "1M", never "1000k"; 275860 -> "276k"). display.format_token_line renders '-- I:<s>+<t> O:<s>+<t> C:<s>+<t>': the +N suffixes come from new last_turn token fields in the report (CLI --json raw counts + token_display last_turn_* keys; Hermes plugin passes its in-memory turn bucket), render +0 on zero increments, and fail soft when absent - every display path (CLI, --display-lines, GUI, Vibe hooks, Hermes plugin) changes together per the display-parity rule. Docs and tests updated; 125 pass. MINOR bump to 0.8.0. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
49 lines
1.6 KiB
TOML
49 lines
1.6 KiB
TOML
[build-system]
|
|
requires = ["setuptools>=77"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "agent-cost-estimator"
|
|
version = "0.8.0"
|
|
description = "Report token usage and estimated USD cost of AI agent sessions from local harness logs"
|
|
readme = "README.md"
|
|
requires-python = ">=3.9"
|
|
license = "GPL-3.0-only"
|
|
license-files = ["LICENSE"]
|
|
authors = [{ name = "nvaldez" }]
|
|
keywords = ["ai", "agents", "llm", "tokens", "cost", "cli", "mistral", "vibe"]
|
|
classifiers = [
|
|
"Development Status :: 4 - Beta",
|
|
"Environment :: Console",
|
|
"Intended Audience :: Developers",
|
|
"Operating System :: OS Independent",
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python :: 3.9",
|
|
"Programming Language :: Python :: 3.10",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Programming Language :: Python :: 3.12",
|
|
"Programming Language :: Python :: 3.13",
|
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
]
|
|
|
|
[project.scripts]
|
|
agent-cost-estimator = "agent_cost_estimator.cli:main"
|
|
agent-cost-estimator-gui = "agent_cost_estimator.gui:main"
|
|
|
|
[project.entry-points."agent_cost_estimator.harnesses"]
|
|
vibe = "agent_cost_estimator.harnesses.vibe:VibeHarness"
|
|
hermes = "agent_cost_estimator.harnesses.hermes:HermesHarness"
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest>=7.0.0",
|
|
"pytest-cov>=4.0.0",
|
|
]
|
|
|
|
[tool.setuptools]
|
|
packages = ["agent_cost_estimator", "agent_cost_estimator.harnesses", "agent_cost_estimator.skill", "agent_cost_estimator.hooks", "agent_cost_estimator.integration", "agent_cost_estimator.integration.hermes"]
|
|
include-package-data = true
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|