ai-spend-agent 0.5.4 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -0
- package/package.json +5 -3
package/dist/index.js
CHANGED
|
@@ -963,6 +963,10 @@ async function buildReportInput(stateDir, rootPath) {
|
|
|
963
963
|
const needsFreshLogs = !spendState?.summary ||
|
|
964
964
|
!spendState.records ||
|
|
965
965
|
spendState.records.length === 0 ||
|
|
966
|
+
// Pre-0.5.3 state did not persist a mode. Treat it as a cache and
|
|
967
|
+
// re-detect local logs so report/apply cannot route through the agency
|
|
968
|
+
// artifact path with stale or demo-shaped records.
|
|
969
|
+
spendState.mode === undefined ||
|
|
966
970
|
spendState.mode === "local_logs" ||
|
|
967
971
|
// Mislabeled state (local-log records stamped connected by a past bug)
|
|
968
972
|
// must be superseded by a fresh read, not trusted.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ai-spend-agent",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.5",
|
|
4
4
|
"description": "Your AI spend in one view, in 90 seconds — local-first CLI for OpenAI, Anthropic, Cursor, Copilot + Claude Code/Codex session logs, with a ranked savings cut list, and flags the tools your agent loads but never uses (dead context).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -34,7 +34,9 @@
|
|
|
34
34
|
"cursor",
|
|
35
35
|
"llm",
|
|
36
36
|
"token",
|
|
37
|
+
"token-usage",
|
|
37
38
|
"billing",
|
|
39
|
+
"ai-cost-tracker",
|
|
38
40
|
"cli",
|
|
39
41
|
"mcp",
|
|
40
42
|
"claude-code-skills",
|
|
@@ -49,8 +51,8 @@
|
|
|
49
51
|
"prepack": "npm run build"
|
|
50
52
|
},
|
|
51
53
|
"dependencies": {
|
|
52
|
-
"@agent-finops/core": "0.5.
|
|
53
|
-
"@agent-finops/report": "0.5.
|
|
54
|
+
"@agent-finops/core": "0.5.5",
|
|
55
|
+
"@agent-finops/report": "0.5.5",
|
|
54
56
|
"yocto-spinner": "^1.2.0"
|
|
55
57
|
}
|
|
56
58
|
}
|