@billionaire-sh/cli 0.2.0 → 0.4.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 +39 -3
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -119,6 +119,38 @@ billionaire charts check skr-03 2026
119
119
  Both run the parser package in the repository's uv workspace; the installed
120
120
  CLI outside a checkout answers that the documents are in the repository.
121
121
 
122
+ What follows from the editions' files is derived and checked in as a lock
123
+ (`libs/billionaire/charts/README.md`, "Succession" and "Mappings"): what
124
+ becomes of each account from one edition to the next, the counterpart of
125
+ each account on the other chart line, its place in each taxonomy edition,
126
+ and the rules its booking role stands for. A change of an account in
127
+ `meaning.json` ends with `lock`, and the diff of the locks is part of it:
128
+
129
+ ```sh
130
+ # Write every lock and each chart line's CHANGES.md.
131
+ billionaire charts lock
132
+
133
+ # Exit 1 unless every checked-in lock is exactly what the derivation gives.
134
+ billionaire charts lock --check
135
+ ```
136
+
137
+ The chart data is sealed by the owner (`libs/billionaire/charts/README.md`,
138
+ "The seal"): every file of the editions has its hash in `seal.json`, signed
139
+ with a key whose passphrase only the owner knows. A change of the chart
140
+ data — and of the locks that follow from it — waits for that seal:
141
+
142
+ ```sh
143
+ # Exit 1 unless every file of the chart data is what the owner sealed.
144
+ # Needs no key.
145
+ billionaire charts seal --check
146
+
147
+ # The owner's: show what changed since the last seal — data as a table
148
+ # (account, field, was, is), locks as pairs of lines — then sign.
149
+ # ssh-keygen asks for the passphrase of the sealing key on the terminal.
150
+ billionaire charts seal
151
+ billionaire charts seal --key ~/.ssh/billionaire_chart_seal # the default
152
+ ```
153
+
122
154
  A number answers with one of:
123
155
 
124
156
  | `status` | Meaning |
@@ -133,6 +165,10 @@ A number answers with one of:
133
165
  The charts are inlined at build time from the ONE place the platform keeps
134
166
  them — the library `libs/billionaire/charts` (`editions/<provider>/<chart>/<edition>/`: what the source prints and what
135
167
  we decide, beside the source PDFs), taken from the DATEV Kontenrahmen named in
136
- each file's `edition`. The app's database (account templates, account
137
- rules, taxonomy positions) is seeded from the same files. The CLI holds no
138
- copy and no number of its own.
168
+ each file's `edition`. The CLI holds no copy and no number of its own.
169
+
170
+ The CLI has no database and no network, so it loads none: a database is
171
+ loaded from the same files by the app, which holds the connection
172
+ (`apps/billionaire/billionaire/scripts/typescript/apply-chart-edition.ts`),
173
+ and held equal to them by `check-chart-editions-against-database.ts` —
174
+ `libs/billionaire/charts/README.md`, "Loading an edition into a database".
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@billionaire-sh/cli",
3
- "version": "0.2.0",
3
+ "version": "0.4.0",
4
4
  "description": "Agent-friendly command-line interface for the billionaire platform",
5
5
  "type": "module",
6
6
  "private": false,
@@ -25,9 +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
+ "@billionaire/charts": "0.4.0",
29
+ "@kolaveri/eslint-config": "1.28.0",
29
30
  "@kolaveri/prettier-config": "1.0.6",
30
- "@kolaveri/eslint-config": "1.27.0",
31
31
  "@kolaveri/tsconfig": "1.0.1"
32
32
  },
33
33
  "prettier": "@kolaveri/prettier-config",