xlsx-formula-recalc 0.131.2 → 0.131.3

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 (3) hide show
  1. package/AGENTS.md +12 -8
  2. package/SKILL.md +17 -13
  3. package/package.json +3 -3
package/AGENTS.md CHANGED
@@ -3,30 +3,34 @@
3
3
  Use this package when a Node.js task edits an `.xlsx` workbook and needs fresh
4
4
  formula results before returning the file or reading output cells.
5
5
 
6
- Start with the one-command proof:
6
+ The canonical public package is `@bilig/xlsx-formula-recalc`. The unscoped
7
+ `xlsx-formula-recalc` package remains a compatibility and search alias, but new
8
+ agent instructions should use the scoped package first.
9
+
10
+ Start with the no-project evaluator:
7
11
 
8
12
  ```sh
9
- npx --package xlsx-formula-recalc xlsx-recalc --demo --json
13
+ npm exec --yes --package @bilig/xlsx-formula-recalc@latest -- bilig-evaluate --door xlsx-cache --json
10
14
  ```
11
15
 
12
16
  If the task came from a SheetJS / `xlsx` stale-formula issue, the same package
13
17
  also exposes a SheetJS-named command:
14
18
 
15
19
  ```sh
16
- npx --package xlsx-formula-recalc sheetjs-recalc --demo --json
20
+ npm exec --yes --package @bilig/xlsx-formula-recalc@latest -- sheetjs-recalc --demo --json
17
21
  ```
18
22
 
19
23
  If the caller has a real workbook but does not know which formulas to read yet,
20
24
  inspect it first without writing an output file:
21
25
 
22
26
  ```sh
23
- npx --package xlsx-formula-recalc xlsx-recalc workbook.xlsx --inspect --json
27
+ npm exec --yes --package @bilig/xlsx-formula-recalc@latest -- xlsx-recalc workbook.xlsx --inspect --json
24
28
  ```
25
29
 
26
30
  Use the memorable cache-diagnosis alias for issue triage or CI:
27
31
 
28
32
  ```sh
29
- npx --package xlsx-formula-recalc xlsx-cache-doctor workbook.xlsx --json
33
+ npm exec --yes --package @bilig/xlsx-formula-recalc@latest -- xlsx-cache-doctor workbook.xlsx --json
30
34
  ```
31
35
 
32
36
  Use the returned `suggestedReads`, stale cached formula counts, and warnings to
@@ -37,7 +41,7 @@ before treating the report as complete coverage.
37
41
  For a real workbook, use sheet-qualified A1 targets:
38
42
 
39
43
  ```sh
40
- npx --package xlsx-formula-recalc xlsx-recalc quote.xlsx \
44
+ npm exec --yes --package @bilig/xlsx-formula-recalc@latest -- xlsx-recalc quote.xlsx \
41
45
  --set Inputs!B2=48 \
42
46
  --read Summary!B7 \
43
47
  --out quote.recalculated.xlsx \
@@ -48,7 +52,7 @@ For external workbook links, pass companion files with `--external-workbook`
48
52
  or exact link bindings with `--external-workbook-target <path> <target>`:
49
53
 
50
54
  ```sh
51
- npx --package xlsx-formula-recalc xlsx-recalc quote.xlsx \
55
+ npm exec --yes --package @bilig/xlsx-formula-recalc@latest -- xlsx-recalc quote.xlsx \
52
56
  --external-workbook-target ./fixtures/rates-current.xlsx file:///tmp/rates.xlsx \
53
57
  --read Summary!B7 \
54
58
  --json
@@ -57,7 +61,7 @@ npx --package xlsx-formula-recalc xlsx-recalc quote.xlsx \
57
61
  Use the API when code already has workbook bytes:
58
62
 
59
63
  ```ts
60
- import { recalculateXlsx } from 'xlsx-formula-recalc'
64
+ import { recalculateXlsx } from '@bilig/xlsx-formula-recalc'
61
65
 
62
66
  const result = recalculateXlsx(xlsxBytes, {
63
67
  edits: [{ target: 'Inputs!B2', value: 48 }],
package/SKILL.md CHANGED
@@ -13,36 +13,40 @@ tags:
13
13
 
14
14
  # XLSX Formula Recalculation
15
15
 
16
- Use `xlsx-formula-recalc` when an agent or Node.js service has changed XLSX
17
- inputs and must read recalculated formula outputs without opening Excel,
18
- LibreOffice, or a browser.
16
+ Use `@bilig/xlsx-formula-recalc` when an agent or Node.js service has changed
17
+ XLSX inputs and must read recalculated formula outputs without opening Excel,
18
+ LibreOffice, or a browser. The unscoped `xlsx-formula-recalc` package remains a
19
+ compatibility/search alias; new agent instructions should use the scoped package
20
+ first.
19
21
 
20
22
  ## First Check
21
23
 
22
24
  ```sh
23
- npx --package xlsx-formula-recalc xlsx-recalc --demo --json
25
+ npm exec --yes --package @bilig/xlsx-formula-recalc@latest -- bilig-evaluate --door xlsx-cache --json
24
26
  ```
25
27
 
26
- The demo should print `recalculationCompleted: true`,
27
- `expectedValueMatched: true`, and a `Summary!B2` value of `72000`.
28
+ The evaluator should print `schemaVersion: "bilig-evaluator.v1"`,
29
+ `door: "xlsx-cache"`, `verified: true`, and evidence for a stale cached
30
+ formula corrected to a `Summary!B2` value of `72000`.
31
+
28
32
  For SheetJS / `xlsx` stale-formula issues, use the SheetJS-named binary from the
29
33
  same package:
30
34
 
31
35
  ```sh
32
- npx --package xlsx-formula-recalc sheetjs-recalc --demo --json
36
+ npm exec --yes --package @bilig/xlsx-formula-recalc@latest -- sheetjs-recalc --demo --json
33
37
  ```
34
38
 
35
39
  If you have a real workbook but do not yet know which formula cells to verify,
36
40
  inspect it without writing an output file:
37
41
 
38
42
  ```sh
39
- npx --package xlsx-formula-recalc xlsx-recalc workbook.xlsx --inspect --json
43
+ npm exec --yes --package @bilig/xlsx-formula-recalc@latest -- xlsx-recalc workbook.xlsx --inspect --json
40
44
  ```
41
45
 
42
46
  For CI or issue triage, use the cache-diagnosis alias:
43
47
 
44
48
  ```sh
45
- npx --package xlsx-formula-recalc xlsx-cache-doctor workbook.xlsx --json
49
+ npm exec --yes --package @bilig/xlsx-formula-recalc@latest -- xlsx-cache-doctor workbook.xlsx --json
46
50
  ```
47
51
 
48
52
  The inspection output includes `formulaCellCount`, `staleCachedFormulaCount`,
@@ -54,7 +58,7 @@ coverage.
54
58
  ## Real Workbook
55
59
 
56
60
  ```sh
57
- npx --package xlsx-formula-recalc xlsx-recalc workbook.xlsx \
61
+ npm exec --yes --package @bilig/xlsx-formula-recalc@latest -- xlsx-recalc workbook.xlsx \
58
62
  --set Inputs!B2=48 \
59
63
  --read Summary!B7 \
60
64
  --out workbook.recalculated.xlsx \
@@ -64,7 +68,7 @@ npx --package xlsx-formula-recalc xlsx-recalc workbook.xlsx \
64
68
  For linked workbooks, pass companion files:
65
69
 
66
70
  ```sh
67
- npx --package xlsx-formula-recalc xlsx-recalc workbook.xlsx \
71
+ npm exec --yes --package @bilig/xlsx-formula-recalc@latest -- xlsx-recalc workbook.xlsx \
68
72
  --external-workbook rates.xlsx \
69
73
  --read Summary!B7 \
70
74
  --json
@@ -74,7 +78,7 @@ Use an exact target binding when the workbook link target differs from the local
74
78
  filename:
75
79
 
76
80
  ```sh
77
- npx --package xlsx-formula-recalc xlsx-recalc workbook.xlsx \
81
+ npm exec --yes --package @bilig/xlsx-formula-recalc@latest -- xlsx-recalc workbook.xlsx \
78
82
  --external-workbook-target ./fixtures/rates-current.xlsx file:///tmp/rates.xlsx \
79
83
  --read Summary!B7 \
80
84
  --json
@@ -83,7 +87,7 @@ npx --package xlsx-formula-recalc xlsx-recalc workbook.xlsx \
83
87
  ## TypeScript
84
88
 
85
89
  ```ts
86
- import { recalculateXlsx } from 'xlsx-formula-recalc'
90
+ import { recalculateXlsx } from '@bilig/xlsx-formula-recalc'
87
91
 
88
92
  const result = recalculateXlsx(inputXlsxBytes, {
89
93
  edits: [{ target: 'Inputs!B2', value: 48 }],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xlsx-formula-recalc",
3
- "version": "0.131.2",
3
+ "version": "0.131.3",
4
4
  "description": "Diagnose stale cached XLSX formula values and recalculate XLSX formulas in Node.js without Excel, LibreOffice, or browser automation.",
5
5
  "keywords": [
6
6
  "excel",
@@ -83,8 +83,8 @@
83
83
  "smoke": "node ./dist/cli.js --help"
84
84
  },
85
85
  "dependencies": {
86
- "@bilig/headless": "0.131.2",
87
- "@bilig/protocol": "0.131.2",
86
+ "@bilig/headless": "0.131.3",
87
+ "@bilig/protocol": "0.131.3",
88
88
  "fflate": "0.3.11"
89
89
  },
90
90
  "engines": {