ai-spend-agent 0.4.4 → 0.5.0

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -0
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -968,9 +968,16 @@ async function buildReportInput(stateDir, rootPath) {
968
968
  windowDays: 30
969
969
  }).catch(() => undefined)
970
970
  : undefined;
971
+ const detectedPlans = spendState.mode === "local_logs"
972
+ ? await detectLocalPlans({
973
+ claudeConfigPath: process.env.AI_SPEND_CLAUDE_CONFIG,
974
+ codexAuthPath: process.env.AI_SPEND_CODEX_AUTH
975
+ }).catch(() => [])
976
+ : [];
971
977
  return {
972
978
  summary: spendState.summary,
973
979
  deadContext,
980
+ detectedPlans,
974
981
  // Evidence ledger is built from the SAME records as the confidence
975
982
  // breakdown so the two sections can never contradict each other.
976
983
  allRecords: spendState.records ?? [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-spend-agent",
3
- "version": "0.4.4",
3
+ "version": "0.5.0",
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",
@@ -49,8 +49,8 @@
49
49
  "prepack": "npm run build"
50
50
  },
51
51
  "dependencies": {
52
- "@agent-finops/core": "0.4.4",
53
- "@agent-finops/report": "0.4.4",
52
+ "@agent-finops/core": "0.5.0",
53
+ "@agent-finops/report": "0.5.0",
54
54
  "yocto-spinner": "^1.2.0"
55
55
  }
56
56
  }