@billionaire-sh/cli 0.3.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 +31 -7
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -119,18 +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 becomes of each account from one edition to the next is derived from
123
- the editions' files and checked in as a lock
124
- (`libs/billionaire/charts/README.md`, "Succession"):
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:
125
128
 
126
129
  ```sh
127
- # Write every succession lock and each chart line's CHANGES.md.
130
+ # Write every lock and each chart line's CHANGES.md.
128
131
  billionaire charts lock
129
132
 
130
133
  # Exit 1 unless every checked-in lock is exactly what the derivation gives.
131
134
  billionaire charts lock --check
132
135
  ```
133
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
+
134
154
  A number answers with one of:
135
155
 
136
156
  | `status` | Meaning |
@@ -145,6 +165,10 @@ A number answers with one of:
145
165
  The charts are inlined at build time from the ONE place the platform keeps
146
166
  them — the library `libs/billionaire/charts` (`editions/<provider>/<chart>/<edition>/`: what the source prints and what
147
167
  we decide, beside the source PDFs), taken from the DATEV Kontenrahmen named in
148
- each file's `edition`. The app's database (account templates, account
149
- rules, taxonomy positions) is seeded from the same files. The CLI holds no
150
- 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.3.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,10 +25,10 @@
25
25
  "tsx": "^4.19.2",
26
26
  "typescript": "^5.9.3",
27
27
  "vitest": "^4.1.7",
28
- "@billionaire/charts": "0.3.0",
29
- "@kolaveri/eslint-config": "1.27.0",
30
- "@kolaveri/tsconfig": "1.0.1",
31
- "@kolaveri/prettier-config": "1.0.6"
28
+ "@billionaire/charts": "0.4.0",
29
+ "@kolaveri/eslint-config": "1.28.0",
30
+ "@kolaveri/prettier-config": "1.0.6",
31
+ "@kolaveri/tsconfig": "1.0.1"
32
32
  },
33
33
  "prettier": "@kolaveri/prettier-config",
34
34
  "scripts": {