@hasna/economy 0.3.25 → 0.3.26

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.26
4
+
5
+ ### Patch Changes
6
+
7
+ - 8b70821: economy-otel answers --version/-V before any bind (todos row 7e5f8f3d). Previously `economy-otel --version` fell through to resolvePort()/Bun.serve and bound the OTLP listener (:4318) with no output.
8
+
3
9
  ## 0.3.25
4
10
 
5
11
  ### Patch Changes
@@ -1412,6 +1412,10 @@ function resolvePort(argv) {
1412
1412
  return Number(process.env["ECONOMY_OTEL_PORT"] ?? 4318);
1413
1413
  }
1414
1414
  var args = process.argv.slice(2);
1415
+ if (args.includes("--version") || args.includes("-V")) {
1416
+ console.log(packageMetadata.version);
1417
+ process.exit(0);
1418
+ }
1415
1419
  if (args.includes("--help") || args.includes("-h")) {
1416
1420
  console.log(`Usage: economy-otel [options]
1417
1421
 
@@ -1419,6 +1423,7 @@ OTLP/HTTP metrics sidecar \u2014 ingests *.cost.* / *.token.* metrics into econo
1419
1423
 
1420
1424
  Options:
1421
1425
  -p, --port <port> Port to bind (default: ECONOMY_OTEL_PORT or 4318)
1426
+ -V, --version output the version number
1422
1427
  -h, --help display help for command
1423
1428
 
1424
1429
  Environment:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hasna/economy",
3
- "version": "0.3.25",
3
+ "version": "0.3.26",
4
4
  "description": "AI coding cost tracker — CLI + MCP server + REST API + web dashboard for Claude Code, Codex, OpenCode, Cursor, Pi, and Hermes, with legacy Gemini CLI session and Gemini API billing ingestion",
5
5
  "repository": {
6
6
  "type": "git",