@hasna/economy 0.3.23 → 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,23 @@
|
|
|
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
|
+
|
|
9
|
+
## 0.3.25
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 2b87a81: Hermeticize six test suites (21a04472): economy ingest/sync tests stash the ambient Accounts API key, testers CLI/MCP tests stash the ambient Testers API env, attachments stash ambient API/todos keys and split the server harness out of the test file, shield routes CRUD modules through a db-access seam, hooks disable ambient core.hooksPath for fixture commits, markdown skips the per-package lockfile this monorepo layout does not have, and testers pins @hasna/browser to the published 0.5.29.
|
|
14
|
+
|
|
15
|
+
## 0.3.24
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- @hasna/projects@1.0.0
|
|
20
|
+
|
|
3
21
|
## 0.3.23
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stash and delete the hosted-accounts env vars. Returns a restore function
|
|
3
|
+
* for afterEach/afterAll. Safe to call when the variables are unset.
|
|
4
|
+
*/
|
|
5
|
+
export declare function isolateHostedAccountsEnv(): () => void;
|
|
6
|
+
//# sourceMappingURL=test-hermetic-accounts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-hermetic-accounts.d.ts","sourceRoot":"","sources":["../../src/lib/test-hermetic-accounts.ts"],"names":[],"mappings":"AAaA;;;GAGG;AACH,wBAAgB,wBAAwB,IAAI,MAAM,IAAI,CAUrD"}
|
package/dist/otel/index.js
CHANGED
|
@@ -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.
|
|
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",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"@hasna/contracts": "0.13.4",
|
|
78
78
|
"@hasna/events": "^0.1.16",
|
|
79
79
|
"@hasna/mcp-harness": "^0.1.0",
|
|
80
|
-
"@hasna/projects": "0.
|
|
80
|
+
"@hasna/projects": "1.0.0",
|
|
81
81
|
"@modelcontextprotocol/sdk": "^1.12.1",
|
|
82
82
|
"chalk": "^5.4.1",
|
|
83
83
|
"commander": "^13.1.0",
|