@bilig/xlsx-formula-recalc 0.122.0 → 0.124.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.
package/README.md CHANGED
@@ -59,8 +59,7 @@ npx --package @bilig/xlsx-formula-recalc xlsx-recalc --demo --json
59
59
 
60
60
  That command creates a tiny workbook, changes `Inputs!B2` and `Inputs!B3`,
61
61
  recalculates `Summary!B2`, writes `bilig-formula-recalc-demo.xlsx`, and prints
62
- a proof object with `verified: true`, the recalculated value, and explicit next
63
- actions:
62
+ a proof object with explicit recalculation fields and the recalculated value:
64
63
 
65
64
  ```json
66
65
  {
@@ -70,28 +69,26 @@ actions:
70
69
  }
71
70
  },
72
71
  "warnings": [],
73
- "verified": true,
74
- "star": "https://github.com/proompteng/bilig/stargazers",
75
- "watchReleases": "https://github.com/proompteng/bilig/subscription",
76
- "adoptionBlocker": "https://github.com/proompteng/bilig/discussions/new?category=general",
77
- "nextStep": {
78
- "ifUseful": "If this proof fixed your stale XLSX formula workflow, star or bookmark Bilig so you can find it again.",
79
- "star": "https://github.com/proompteng/bilig/stargazers",
80
- "watchReleases": "https://github.com/proompteng/bilig/subscription",
81
- "ifBlocked": "If this is close but blocked by a workbook edge case, open an adoption blocker with a reduced fixture.",
82
- "adoptionBlocker": "https://github.com/proompteng/bilig/discussions/new?category=general"
83
- }
72
+ "commandSucceeded": true,
73
+ "recalculationCompleted": true,
74
+ "excelParity": "not_proven",
75
+ "expectedReadback": {
76
+ "Summary!B2": 72000
77
+ },
78
+ "expectedValueMatched": true
84
79
  }
85
80
  ```
86
81
 
87
- Keep the proof first: use the star or release-watch links only after the
88
- recalculated value and warnings match the workflow you are evaluating.
82
+ Keep the proof first. The JSON is meant for CI and agents, so it does not carry
83
+ star, release-watch, or discussion links. Use the links in the README or docs
84
+ only after the recalculated value and warnings match the workflow you are
85
+ evaluating.
89
86
 
90
87
  If you have a real workbook but do not yet know which formula cells matter,
91
- inspect it without writing an output file:
88
+ diagnose it without writing an output file:
92
89
 
93
90
  ```sh
94
- npx --package @bilig/xlsx-formula-recalc xlsx-recalc pricing.xlsx --inspect --json
91
+ npx --package @bilig/xlsx-formula-recalc xlsx-cache-doctor pricing.xlsx --json
95
92
  ```
96
93
 
97
94
  Inspection imports the workbook, lists formula cells, recomputes a bounded
@@ -113,13 +110,19 @@ the recalculation command:
113
110
  "staleCachedValue": true
114
111
  }
115
112
  ],
116
- "verified": true,
117
- "nextStep": {
118
- "command": "xlsx-recalc pricing.xlsx --read 'Summary!B7' --json"
119
- }
113
+ "commandSucceeded": true,
114
+ "inspectionCompleted": true,
115
+ "recalculationCompleted": true,
116
+ "excelParity": "not_proven"
120
117
  }
121
118
  ```
122
119
 
120
+ `xlsx-cache-doctor` is a readable alias for
121
+ `xlsx-recalc pricing.xlsx --inspect --json`. Use it for issue triage, CI, and
122
+ pull-request checks when the only question is whether committed XLSX files have
123
+ stale cached formula values. The GitHub Action wrapper lives at
124
+ [`actions/xlsx-cache-doctor`](../../actions/xlsx-cache-doctor).
125
+
123
126
  For an existing workbook:
124
127
 
125
128
  ```sh
@@ -224,8 +227,8 @@ from `@bilig/workpaper`.
224
227
 
225
228
  ## After The Proof
226
229
 
227
- If `verified: true` matches the Node/XLSX workflow you need, star or bookmark
228
- the repo so you can find it again:
230
+ If the recalculation proof matches the Node/XLSX workflow you need, star or
231
+ bookmark the repo so you can find it again:
229
232
  <https://github.com/proompteng/bilig/stargazers>.
230
233
 
231
234
  Watch releases if the package is close to a production path:
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export {};
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env node
2
+ import { runXlsxFormulaRecalcCli } from './cli-api.js';
3
+ process.exitCode = runXlsxFormulaRecalcCli(process.argv.slice(2), {
4
+ commandName: 'xlsx-cache-doctor',
5
+ });
6
+ //# sourceMappingURL=cache-doctor-cli.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cache-doctor-cli.js","sourceRoot":"","sources":["../src/cache-doctor-cli.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAA;AAEtD,OAAO,CAAC,QAAQ,GAAG,uBAAuB,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE;IAChE,WAAW,EAAE,mBAAmB;CACjC,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bilig/xlsx-formula-recalc",
3
- "version": "0.122.0",
3
+ "version": "0.124.0",
4
4
  "description": "Recalculate XLSX formula values in Node.js after SheetJS, ExcelJS, or xlsx-populate edits without Excel, LibreOffice, or browser automation.",
5
5
  "keywords": [
6
6
  "bilig",
@@ -19,6 +19,7 @@
19
19
  "stale-xlsx-cache",
20
20
  "workbook",
21
21
  "xlsx",
22
+ "xlsx-cache-doctor",
22
23
  "xlsx-calc",
23
24
  "xlsx-formula",
24
25
  "xlsx-formula-recalculation",
@@ -38,6 +39,7 @@
38
39
  },
39
40
  "bin": {
40
41
  "sheetjs-recalc": "./dist/sheetjs-cli.js",
42
+ "xlsx-cache-doctor": "./dist/cache-doctor-cli.js",
41
43
  "xlsx-recalc": "./dist/cli.js"
42
44
  },
43
45
  "files": [
@@ -69,7 +71,7 @@
69
71
  "smoke": "node ./dist/cli.js --help"
70
72
  },
71
73
  "dependencies": {
72
- "xlsx-formula-recalc": "0.122.0"
74
+ "xlsx-formula-recalc": "0.124.0"
73
75
  },
74
76
  "engines": {
75
77
  "node": ">=22.0.0"