@bilig/workpaper 0.164.8 → 0.164.10

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/README.md +40 -35
  2. package/package.json +4 -4
  3. package/server.json +2 -2
package/README.md CHANGED
@@ -47,7 +47,7 @@ The useful output is not a write-call status. It is readback proof:
47
47
  "door": "workpaper-service",
48
48
  "verified": true,
49
49
  "packageVersions": {
50
- "@bilig/workpaper": "0.164.8"
50
+ "@bilig/workpaper": "0.164.10"
51
51
  },
52
52
  "evidence": {
53
53
  "editedCell": "Inputs!B2",
@@ -63,9 +63,6 @@ The useful output is not a write-call status. It is readback proof:
63
63
  For recompute and output boundaries, see
64
64
  <https://proompteng.github.io/bilig/eval-workpaper-service.html#recompute-and-output-boundaries>.
65
65
 
66
- If this is close to production, watch releases and review the public limits:
67
- <https://github.com/proompteng/bilig/subscription>.
68
-
69
66
  For a richer tool check, add `--scenario revenue-plan` to the `agent-mcp`
70
67
  evaluator. It proves `SUM`, `SUMIF`, `XLOOKUP`, `FILTER`, a named expression,
71
68
  JSON persistence, and restart readback.
@@ -79,19 +76,16 @@ If the workbook has provider-backed formulas such as `IMPORTRANGE`, run
79
76
  That proves the formula fails closed with an adapter diagnostic, then verifies a
80
77
  local synthetic adapter readback. It does not call Google Sheets.
81
78
 
82
- If one of those matches your workflow, keep Bilig nearby:
83
- <https://github.com/proompteng/bilig>.
84
-
85
- Framework examples live in the repo instead of this first screen. Start with
86
- the closest runtime:
79
+ Framework examples live in the repo instead of this first screen. Use them after
80
+ one evaluator passes:
87
81
 
88
82
  - Tool runtimes: Vercel AI SDK, LangGraph, LangChain MCP adapters, Open WebUI,
89
83
  FastMCP, Agno, Pydantic AI, smolagents.
90
84
  - Workflow engines: Trigger.dev, Inngest, Temporal, Airflow, Dagster, Kestra,
91
85
  Prefect, Windmill.
92
86
  - Low-code and data tools: n8n, Pipedream, Directus, Airbyte, Meltano.
93
- - Existing `.xlsx` files: use `@bilig/xlsx-formula-recalc` for saved-file
94
- recalculation and exported workbook readback.
87
+ - Saved workbook files: use the saved-file boundary section only when a file is
88
+ the contract.
95
89
 
96
90
  ## Searchable Example Guides
97
91
 
@@ -212,31 +206,28 @@ rewriting formula sheets.
212
206
 
213
207
  ## Verify Without Cloning
214
208
 
215
- The package ships evaluator and direct proof commands:
209
+ The public package ships three no-clone checks. Start with the smallest one that
210
+ matches the state owner:
216
211
 
217
212
  ```sh
218
- npm exec --package @bilig/workpaper@latest -- bilig-evaluate --door workpaper-service --json
219
- npm exec --package @bilig/workpaper@latest -- bilig-evaluate --door agent-mcp --json
220
- npm exec --package @bilig/workpaper@latest -- bilig-evaluate --door agent-mcp --scenario provider-backed --json
221
- npm exec --package @bilig/workpaper@latest -- bilig-agent-challenge --json
222
- npm exec --package @bilig/workpaper@latest -- bilig-mcp-challenge --json
223
- npm exec --package @bilig/workpaper@latest -- bilig-n8n-formula-server --port 4321
224
- npm exec --package @bilig/workpaper@latest -- bilig-workpaper-mcp --workpaper ./pricing.workpaper.json --init-demo-workpaper --writable
225
- npm exec --package @bilig/workpaper@latest -- bilig-workpaper-mcp --from-xlsx ./pricing.xlsx
226
- npm exec --package @bilig/workpaper@latest -- bilig-workpaper-mcp --from-xlsx ./pricing.xlsx --workpaper ./.bilig/pricing.workpaper.json --writable
213
+ npm exec --yes --package @bilig/workpaper@latest -- bilig-evaluate --door workpaper-service --json
214
+ npm exec --yes --package @bilig/workpaper@latest -- bilig-evaluate --door agent-mcp --json
215
+ npm exec --yes --package @bilig/workpaper@latest -- bilig-agent-start --json
227
216
  ```
228
217
 
229
218
  `bilig-evaluate` prints a `bilig-evaluator.v1` object with `door`, `evidence`,
230
219
  `verified`, `limitations`, and the source command output.
231
220
 
232
- The challenge commands edit one input, recalculate dependent formulas, export
233
- WorkPaper JSON, restore it, and print a `verified: true` proof object.
234
- Use `--from-xlsx` when the tool host already has an XLSX file: Bilig imports it once
235
- into an in-memory MCP server by default, or into persisted WorkPaper JSON when
236
- `--workpaper --writable` is also supplied. That XLSX-backed MCP path also lists
237
- `analyze_workbook_risk`, a read-only tool fixed to the source workbook passed at
238
- startup. It reports workbook risk indicators before a workflow trusts the imported
239
- WorkPaper and does not certify Excel compatibility.
221
+ Use the raw challenge commands only when you need a lower-level transcript for
222
+ debugging:
223
+
224
+ ```sh
225
+ npm exec --yes --package @bilig/workpaper@latest -- bilig-agent-challenge --json
226
+ npm exec --package @bilig/workpaper@latest -- bilig-mcp-challenge --json
227
+ ```
228
+
229
+ Those commands edit one input, recalculate dependent formulas, export WorkPaper
230
+ JSON, restore it, and print a `verified: true` proof object.
240
231
 
241
232
  ## Tool Host WorkPaper Handoff
242
233
 
@@ -309,21 +300,35 @@ Docs:
309
300
  - <https://proompteng.github.io/bilig/langgraph-workpaper-toolnode-spreadsheet.html>
310
301
  - <https://proompteng.github.io/bilig/smolagents-workpaper-tool.html>
311
302
 
312
- ## XLSX Import And Export
303
+ ## Saved File Boundaries
313
304
 
314
305
  ```ts
315
306
  import { WorkPaper } from '@bilig/workpaper'
316
307
  import { exportXlsx, importXlsx } from '@bilig/workpaper/xlsx'
317
308
  ```
318
309
 
319
- Use `@bilig/xlsx-formula-recalc` when you only need to edit and recalculate
320
- XLSX files. Use `@bilig/exceljs-formula-recalc` when you already use ExcelJS
321
- and need recalculated formula results after changing inputs.
310
+ Use saved-file commands only when a workbook file is the integration contract:
311
+
312
+ ```sh
313
+ npm exec --package @bilig/workpaper@latest -- bilig-workpaper-mcp --from-xlsx ./pricing.xlsx
314
+ npm exec --package @bilig/workpaper@latest -- bilig-workpaper-mcp --from-xlsx ./pricing.xlsx --workpaper ./.bilig/pricing.workpaper.json --writable
315
+ ```
316
+
317
+ The `--from-xlsx` path imports the file once into an in-memory MCP server by
318
+ default, or into persisted WorkPaper JSON when `--workpaper --writable` is also
319
+ supplied. It also exposes `analyze_workbook_risk`, a read-only tool fixed to the
320
+ source workbook passed at startup. That report surfaces workbook risk indicators
321
+ before a workflow trusts the imported WorkPaper; it does not certify Excel compatibility.
322
+
323
+ Use `@bilig/xlsx-formula-recalc` when the job is only to edit and recalculate
324
+ XLSX files. Use `@bilig/exceljs-formula-recalc` when an existing ExcelJS
325
+ workflow needs recalculated formula results after changing inputs.
322
326
 
323
327
  ## Tool Commands And Optional MCP
324
328
 
325
- The npm tarball exposes the same CLI entrypoints through the canonical scoped package, so tool
326
- hosts can install one focused package and still get the MCP stdio server:
329
+ The npm tarball exposes the same CLI entrypoints through the canonical scoped
330
+ package, so tool hosts can install one focused package and still get the MCP
331
+ stdio server:
327
332
 
328
333
  ```ts
329
334
  import { createWorkPaperMcpServer } from '@bilig/workpaper/mcp'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bilig/workpaper",
3
- "version": "0.164.8",
3
+ "version": "0.164.10",
4
4
  "description": "Run workbook-shaped business rules in Node services: edit inputs, recalculate formulas, read outputs, and save WorkPaper JSON.",
5
5
  "keywords": [
6
6
  "bilig",
@@ -90,9 +90,9 @@
90
90
  "build": "pnpm --dir ../.. --filter bilig-workpaper build && rm -rf dist tsconfig.tsbuildinfo && tsc -p tsconfig.json"
91
91
  },
92
92
  "dependencies": {
93
- "@bilig/headless": "0.164.8",
94
- "@bilig/xlsx-formula-recalc": "0.164.8",
95
- "bilig-workpaper": "0.164.8"
93
+ "@bilig/headless": "0.164.10",
94
+ "@bilig/xlsx-formula-recalc": "0.164.10",
95
+ "bilig-workpaper": "0.164.10"
96
96
  },
97
97
  "devDependencies": {
98
98
  "ai": "6.0.195",
package/server.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "io.github.proompteng/bilig-workpaper",
4
4
  "title": "Bilig WorkPaper",
5
5
  "description": "Formula readback, input edits, JSON persistence, and workbook risk preflight for agents.",
6
- "version": "0.164.8",
6
+ "version": "0.164.10",
7
7
  "repository": {
8
8
  "url": "https://github.com/proompteng/bilig",
9
9
  "source": "github"
@@ -18,7 +18,7 @@
18
18
  {
19
19
  "registryType": "npm",
20
20
  "identifier": "@bilig/workpaper",
21
- "version": "0.164.8",
21
+ "version": "0.164.10",
22
22
  "transport": {
23
23
  "type": "stdio"
24
24
  }