80a56ae26c
The 0.4.3 detached-thread publish could lose the line with no trace: any failure inside _publish_notification (owner lookup import error, session not live, missing event stream, publish exception) returned quietly and the detached thread exited. - every daemon-path failure now falls back to print() AND logs a WARNING/INFO tagged [cost], so a regression is diagnosable from the daemon's logs (grep '\[cost\]' in ~/.hermes/logs/errors.log) instead of a missing line - session-not-live now falls back (was: silent skip) - stream lookup is defensive (no event stream -> print + warn) - success path logs INFO '[cost] published notification' - 57/57 tests pass; version 0.4.4 (package + manifest) Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
48 lines
1.6 KiB
TOML
48 lines
1.6 KiB
TOML
[build-system]
|
|
requires = ["setuptools>=77"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "agent-cost-estimator"
|
|
version = "0.4.4"
|
|
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"
|
|
|
|
[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"]
|