@bilig/workpaper 0.164.5 → 0.164.9
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 +42 -34
- package/package.json +4 -4
- 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.
|
|
50
|
+
"@bilig/workpaper": "0.164.9"
|
|
51
51
|
},
|
|
52
52
|
"evidence": {
|
|
53
53
|
"editedCell": "Inputs!B2",
|
|
@@ -60,8 +60,8 @@ The useful output is not a write-call status. It is readback proof:
|
|
|
60
60
|
}
|
|
61
61
|
```
|
|
62
62
|
|
|
63
|
-
|
|
64
|
-
<https://github.
|
|
63
|
+
For recompute and output boundaries, see
|
|
64
|
+
<https://proompteng.github.io/bilig/eval-workpaper-service.html#recompute-and-output-boundaries>.
|
|
65
65
|
|
|
66
66
|
For a richer tool check, add `--scenario revenue-plan` to the `agent-mcp`
|
|
67
67
|
evaluator. It proves `SUM`, `SUMIF`, `XLOOKUP`, `FILTER`, a named expression,
|
|
@@ -76,19 +76,16 @@ If the workbook has provider-backed formulas such as `IMPORTRANGE`, run
|
|
|
76
76
|
That proves the formula fails closed with an adapter diagnostic, then verifies a
|
|
77
77
|
local synthetic adapter readback. It does not call Google Sheets.
|
|
78
78
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
Framework examples live in the repo instead of this first screen. Start with
|
|
83
|
-
the closest runtime:
|
|
79
|
+
Framework examples live in the repo instead of this first screen. Use them after
|
|
80
|
+
one evaluator passes:
|
|
84
81
|
|
|
85
82
|
- Tool runtimes: Vercel AI SDK, LangGraph, LangChain MCP adapters, Open WebUI,
|
|
86
83
|
FastMCP, Agno, Pydantic AI, smolagents.
|
|
87
84
|
- Workflow engines: Trigger.dev, Inngest, Temporal, Airflow, Dagster, Kestra,
|
|
88
85
|
Prefect, Windmill.
|
|
89
86
|
- Low-code and data tools: n8n, Pipedream, Directus, Airbyte, Meltano.
|
|
90
|
-
-
|
|
91
|
-
|
|
87
|
+
- Saved workbook files: use the saved-file boundary section only when a file is
|
|
88
|
+
the contract.
|
|
92
89
|
|
|
93
90
|
## Searchable Example Guides
|
|
94
91
|
|
|
@@ -209,31 +206,28 @@ rewriting formula sheets.
|
|
|
209
206
|
|
|
210
207
|
## Verify Without Cloning
|
|
211
208
|
|
|
212
|
-
The package ships
|
|
209
|
+
The public package ships three no-clone checks. Start with the smallest one that
|
|
210
|
+
matches the state owner:
|
|
213
211
|
|
|
214
212
|
```sh
|
|
215
|
-
npm exec --package @bilig/workpaper@latest -- bilig-evaluate --door workpaper-service --json
|
|
216
|
-
npm exec --package @bilig/workpaper@latest -- bilig-evaluate --door agent-mcp --json
|
|
217
|
-
npm exec --package @bilig/workpaper@latest -- bilig-
|
|
218
|
-
npm exec --package @bilig/workpaper@latest -- bilig-agent-challenge --json
|
|
219
|
-
npm exec --package @bilig/workpaper@latest -- bilig-mcp-challenge --json
|
|
220
|
-
npm exec --package @bilig/workpaper@latest -- bilig-n8n-formula-server --port 4321
|
|
221
|
-
npm exec --package @bilig/workpaper@latest -- bilig-workpaper-mcp --workpaper ./pricing.workpaper.json --init-demo-workpaper --writable
|
|
222
|
-
npm exec --package @bilig/workpaper@latest -- bilig-workpaper-mcp --from-xlsx ./pricing.xlsx
|
|
223
|
-
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
|
|
224
216
|
```
|
|
225
217
|
|
|
226
218
|
`bilig-evaluate` prints a `bilig-evaluator.v1` object with `door`, `evidence`,
|
|
227
219
|
`verified`, `limitations`, and the source command output.
|
|
228
220
|
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
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.
|
|
237
231
|
|
|
238
232
|
## Tool Host WorkPaper Handoff
|
|
239
233
|
|
|
@@ -306,21 +300,35 @@ Docs:
|
|
|
306
300
|
- <https://proompteng.github.io/bilig/langgraph-workpaper-toolnode-spreadsheet.html>
|
|
307
301
|
- <https://proompteng.github.io/bilig/smolagents-workpaper-tool.html>
|
|
308
302
|
|
|
309
|
-
##
|
|
303
|
+
## Saved File Boundaries
|
|
310
304
|
|
|
311
305
|
```ts
|
|
312
306
|
import { WorkPaper } from '@bilig/workpaper'
|
|
313
307
|
import { exportXlsx, importXlsx } from '@bilig/workpaper/xlsx'
|
|
314
308
|
```
|
|
315
309
|
|
|
316
|
-
Use
|
|
317
|
-
|
|
318
|
-
|
|
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.
|
|
319
326
|
|
|
320
327
|
## Tool Commands And Optional MCP
|
|
321
328
|
|
|
322
|
-
The npm tarball exposes the same CLI entrypoints through the canonical scoped
|
|
323
|
-
hosts can install one focused package and still get the MCP
|
|
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:
|
|
324
332
|
|
|
325
333
|
```ts
|
|
326
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.
|
|
3
|
+
"version": "0.164.9",
|
|
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.
|
|
94
|
-
"@bilig/xlsx-formula-recalc": "0.164.
|
|
95
|
-
"bilig-workpaper": "0.164.
|
|
93
|
+
"@bilig/headless": "0.164.9",
|
|
94
|
+
"@bilig/xlsx-formula-recalc": "0.164.9",
|
|
95
|
+
"bilig-workpaper": "0.164.9"
|
|
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.
|
|
6
|
+
"version": "0.164.9",
|
|
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.
|
|
21
|
+
"version": "0.164.9",
|
|
22
22
|
"transport": {
|
|
23
23
|
"type": "stdio"
|
|
24
24
|
}
|