@hasna/economy 0.5.10 → 0.5.12

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,20 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.5.12
4
+
5
+ ### Patch Changes
6
+
7
+ - Avoid recreating local recovery records when a restarted hosted sync encounters
8
+ an already retired batch with a verified authority anchor and exact server
9
+ receipt. Preserve pending-command reconciliation and fail closed when receipt
10
+ or principal validation fails.
11
+
12
+ ## 0.5.11
13
+
14
+ ### Patch Changes
15
+
16
+ - Make explicit daemon watch mode collect through the hosted service with serialized, rate-limited syncs, selected-agent paths and periodic fallback. Keep ordinary hosted watch read-only and allow desktop notifications to be disabled.
17
+
3
18
  ## 0.5.10
4
19
 
5
20
  ### Patch Changes
package/README.md CHANGED
@@ -44,6 +44,28 @@ economy serve --port 3456
44
44
 
45
45
  ## CLI Output Defaults
46
46
 
47
+ ### Continuous collection
48
+
49
+ `economy watch` reads stored reports from the configured hosted service. Add
50
+ `--daemon` to collect local provider usage through the same durable ingestion
51
+ and recovery path as `economy sync`:
52
+
53
+ ```bash
54
+ economy watch --daemon --agent codex --sync-interval 60 --no-notifications
55
+ ```
56
+
57
+ Collection runs once at startup, coalesces file changes, and scans periodically
58
+ when a filesystem notification is unavailable. Only one collection runs at a
59
+ time; `--sync-interval` sets its minimum start interval and periodic fallback.
60
+ `--interval` controls report refresh separately. Selected native profile paths
61
+ and explicit Economy source overrides retain their normal precedence. Configure
62
+ the supported ingestion recovery backend before unattended collection; a failed
63
+ or interrupted receipt is reconciled before more data is sent.
64
+
65
+ This is a foreground process. It does not install a login service or make another
66
+ station collect data. Ctrl+C or SIGTERM closes its watchers and waits for the
67
+ current collection to finish. `--no-notifications` disables desktop notices.
68
+
47
69
  Economy CLI commands are compact by default so agent terminals do not fill their context with full records. High-cardinality list and status commands show essential columns, cap row counts, and print a hint when more rows are available.
48
70
 
49
71
  Use explicit detail paths when you need more:
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  LOCAL_STORAGE_OPT_IN_KEYS
4
- } from "./index-4v5r3c22.js";
4
+ } from "./index-vavbzb1s.js";
5
5
  import {
6
6
  assessCostFromDb,
7
7
  getIngestState,
@@ -4,7 +4,7 @@ import {
4
4
  } from "./index-w3bvv0ns.js";
5
5
  import {
6
6
  getStore
7
- } from "./index-twn8ncdp.js";
7
+ } from "./index-mn8ybzv7.js";
8
8
  import {
9
9
  formatReportedUsd,
10
10
  formatSummaryCoverage,
@@ -15,7 +15,7 @@ import {
15
15
  requireCurrentBillingDiffSummary,
16
16
  requireCurrentRangeStats,
17
17
  requireCurrentSavingsReport
18
- } from "./index-4v5r3c22.js";
18
+ } from "./index-vavbzb1s.js";
19
19
  import {
20
20
  deleteBudget,
21
21
  deleteGoal,