@bilig/workpaper 0.164.8 → 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 +40 -35
- 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.164.
|
|
50
|
+
"@bilig/workpaper": "0.164.9"
|
|
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
|
-
|
|
83
|
-
|
|
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
|
-
-
|
|
94
|
-
|
|
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
|
|
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-
|
|
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
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
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
|
-
##
|
|
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
|
|
320
|
-
|
|
321
|
-
|
|
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
|
|
326
|
-
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:
|
|
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.
|
|
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
|
}
|