@billionaire-sh/cli 0.1.0 → 0.2.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/README.md +24 -3
  2. package/package.json +3 -2
package/README.md CHANGED
@@ -94,10 +94,31 @@ billionaire charts account skr-04 "innergemeinschaftlichem Erwerb"
94
94
  # For scripts and hooks: exit 1 unless every number is an active account.
95
95
  billionaire charts account skr-03 4930 1574 --check
96
96
 
97
- # Which charts, from which DATEV publication?
97
+ # A chart is published anew from time to time. Without more, the newest
98
+ # edition answers; ask a named edition, or the one valid on a day — the
99
+ # edition a booking of that day stands on. A day before a chart's first
100
+ # edition answers with an error: a later edition does not stand in.
101
+ billionaire charts account skr-03 4930 --edition 2026
102
+ billionaire charts account skr-03 4930 --on 2026-03-31
103
+
104
+ # Which charts, which editions, valid from when, from which publication?
98
105
  billionaire charts list
99
106
  ```
100
107
 
108
+ An edition's data is produced from its source documents by a parser
109
+ (`libs/billionaire/charts/python`). Inside a checkout of the repository:
110
+
111
+ ```sh
112
+ # Write the edition's printed.json from the documents in its source/ folder.
113
+ billionaire charts parse skr-03 2026
114
+
115
+ # Exit 1 unless the checked-in printed.json is exactly what the parser gives.
116
+ billionaire charts check skr-03 2026
117
+ ```
118
+
119
+ Both run the parser package in the repository's uv workspace; the installed
120
+ CLI outside a checkout answers that the documents are in the repository.
121
+
101
122
  A number answers with one of:
102
123
 
103
124
  | `status` | Meaning |
@@ -110,8 +131,8 @@ A number answers with one of:
110
131
  ### Where the data comes from
111
132
 
112
133
  The charts are inlined at build time from the ONE place the platform keeps
113
- them — `apps/billionaire/billionaire/src/features/platform/server/utils/datevCharts/`
114
- (`skr-03.json`, `skr-04.json`), taken from the DATEV Kontenrahmen named in
134
+ them — the library `libs/billionaire/charts` (`editions/<provider>/<chart>/<edition>/`: what the source prints and what
135
+ we decide, beside the source PDFs), taken from the DATEV Kontenrahmen named in
115
136
  each file's `edition`. The app's database (account templates, account
116
137
  rules, taxonomy positions) is seeded from the same files. The CLI holds no
117
138
  copy and no number of its own.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@billionaire-sh/cli",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Agent-friendly command-line interface for the billionaire platform",
5
5
  "type": "module",
6
6
  "private": false,
@@ -25,8 +25,9 @@
25
25
  "tsx": "^4.19.2",
26
26
  "typescript": "^5.9.3",
27
27
  "vitest": "^4.1.7",
28
+ "@billionaire/charts": "0.1.0",
28
29
  "@kolaveri/prettier-config": "1.0.6",
29
- "@kolaveri/eslint-config": "1.26.0",
30
+ "@kolaveri/eslint-config": "1.27.0",
30
31
  "@kolaveri/tsconfig": "1.0.1"
31
32
  },
32
33
  "prettier": "@kolaveri/prettier-config",