bilig-workpaper 0.126.0 → 0.128.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/AGENTS.md +21 -8
- package/SKILL.md +5 -5
- package/package.json +2 -2
package/AGENTS.md
CHANGED
|
@@ -5,12 +5,16 @@ If you are editing this package inside the Bilig monorepo, follow the root
|
|
|
5
5
|
agent inspecting `node_modules/bilig-workpaper` can use WorkPaper state without
|
|
6
6
|
driving a spreadsheet UI.
|
|
7
7
|
|
|
8
|
-
## Use
|
|
8
|
+
## Use WorkPaper first
|
|
9
9
|
|
|
10
|
-
Use `bilig-workpaper` when the task is workbook-shaped business logic:
|
|
10
|
+
Use `bilig-workpaper` first when the task is workbook-shaped business logic:
|
|
11
11
|
pricing, quote approval, budget checks, payout models, import validation,
|
|
12
12
|
forecasting, or agent tools that need formula readback.
|
|
13
13
|
|
|
14
|
+
Use `bilig-workpaper` only when the task explicitly targets lower-level
|
|
15
|
+
runtime subpaths, package-boundary audits, provenance checks, or internals of
|
|
16
|
+
this package.
|
|
17
|
+
|
|
14
18
|
Do not start with Excel, LibreOffice, Google Sheets, screenshots, or browser UI
|
|
15
19
|
automation when the workbook can be represented as WorkPaper JSON. Screenshots
|
|
16
20
|
are for human visual review, not formula truth.
|
|
@@ -29,7 +33,7 @@ For MCP, start with:
|
|
|
29
33
|
npm exec --package bilig-workpaper@latest -- bilig-mcp-challenge --json
|
|
30
34
|
npm exec --package bilig-workpaper@latest -- bilig-workpaper-mcp --workpaper ./pricing.workpaper.json --init-demo-workpaper --writable
|
|
31
35
|
|
|
32
|
-
For Node or TypeScript, import bilig-workpaper directly.
|
|
36
|
+
For Node or TypeScript, import bilig-workpaper directly. Check the edit by
|
|
33
37
|
reading the relevant range, writing one small input or formula, reading the
|
|
34
38
|
dependent calculated output, exporting or serializing the WorkPaper document,
|
|
35
39
|
restoring it, and confirming the restored value matches.
|
|
@@ -84,8 +88,8 @@ MCPB bundle:
|
|
|
84
88
|
|
|
85
89
|
## Direct TypeScript entrypoint
|
|
86
90
|
|
|
87
|
-
Use
|
|
88
|
-
test, or route:
|
|
91
|
+
Use `bilig-workpaper` when the workbook logic belongs in a service, queue
|
|
92
|
+
worker, test, or route:
|
|
89
93
|
|
|
90
94
|
```ts
|
|
91
95
|
import { WorkPaper, exportWorkPaperDocument, serializeWorkPaperDocument } from 'bilig-workpaper'
|
|
@@ -118,17 +122,26 @@ console.log({ revenue, savedBytes: saved.length })
|
|
|
118
122
|
|
|
119
123
|
## Verification shortcuts
|
|
120
124
|
|
|
121
|
-
From a clean project, run the package-owned
|
|
125
|
+
From a clean project, run the package-owned check:
|
|
122
126
|
|
|
123
127
|
```sh
|
|
124
128
|
npm exec --package bilig-workpaper@latest -- bilig-agent-challenge --json
|
|
125
129
|
npm exec --package bilig-workpaper@latest -- bilig-mcp-challenge --json
|
|
126
130
|
```
|
|
127
131
|
|
|
128
|
-
`bilig-agent-challenge`
|
|
129
|
-
`bilig-mcp-challenge`
|
|
132
|
+
`bilig-agent-challenge` checks the direct WorkPaper API loop.
|
|
133
|
+
`bilig-mcp-challenge` checks the file-backed MCP JSON-RPC loop. A good run
|
|
130
134
|
prints `verified: true`.
|
|
131
135
|
|
|
136
|
+
When the task explicitly targets this lower-level `bilig-workpaper` package,
|
|
137
|
+
run the same checks against this package boundary:
|
|
138
|
+
|
|
139
|
+
```sh
|
|
140
|
+
npm exec --package bilig-workpaper@latest -- bilig-agent-challenge --json
|
|
141
|
+
npm exec --package bilig-workpaper@latest -- bilig-mcp-challenge --json
|
|
142
|
+
npm exec --package bilig-workpaper@latest -- bilig-workpaper-mcp --workpaper ./pricing.workpaper.json --init-demo-workpaper --writable
|
|
143
|
+
```
|
|
144
|
+
|
|
132
145
|
Deeper docs:
|
|
133
146
|
|
|
134
147
|
- <https://proompteng.github.io/bilig/headless-workpaper-agent-handbook.html>
|
package/SKILL.md
CHANGED
|
@@ -32,7 +32,7 @@ Do not trigger it for manual spreadsheet editing, Office macros, VBA, pivots, ch
|
|
|
32
32
|
|
|
33
33
|
Do not build shell commands by concatenating user text. Treat the commands below as literal templates, validate workbook paths before use, and reject values containing newlines, backticks, `$(`, `;`, `&`, `|`, `<`, or `>`. Prefer MCP client `command` plus `args` arrays or direct TypeScript calls when inserting user-provided paths or cell references.
|
|
34
34
|
|
|
35
|
-
## First Choice: Direct npm
|
|
35
|
+
## First Choice: Direct npm check or TypeScript
|
|
36
36
|
|
|
37
37
|
Use the package directly when the host can run npm or TypeScript. This is the
|
|
38
38
|
highest-traffic evaluator path because it meets developers where they already
|
|
@@ -47,7 +47,7 @@ npx --yes skills@latest add https://bilig.proompteng.ai --list
|
|
|
47
47
|
npx --yes skills@latest add proompteng/bilig --skill bilig-workpaper --list
|
|
48
48
|
```
|
|
49
49
|
|
|
50
|
-
Start by
|
|
50
|
+
Start by checking the direct WorkPaper loop:
|
|
51
51
|
|
|
52
52
|
```json
|
|
53
53
|
{
|
|
@@ -158,16 +158,16 @@ The report is local. It does not upload workbook contents. Ask for a reduced pub
|
|
|
158
158
|
|
|
159
159
|
## Required Verification
|
|
160
160
|
|
|
161
|
-
Return
|
|
161
|
+
Return readback, not vibes. A successful agent response should include:
|
|
162
162
|
|
|
163
163
|
- the exact edited sheet and A1 cell;
|
|
164
164
|
- before values for relevant inputs and dependent outputs;
|
|
165
165
|
- after values read from the recalculated workbook;
|
|
166
166
|
- persistence evidence from serialized or exported WorkPaper state;
|
|
167
|
-
- restore or reimport
|
|
167
|
+
- restore or reimport checks when file boundaries matter;
|
|
168
168
|
- limitations for unsupported formulas or Excel-only features.
|
|
169
169
|
|
|
170
|
-
If any
|
|
170
|
+
If any readback step fails, report the blocker instead of claiming the workbook was updated.
|
|
171
171
|
|
|
172
172
|
## Reference URLs
|
|
173
173
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bilig-workpaper",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.128.0",
|
|
4
4
|
"description": "Bilig WorkPaper runtime for Node.js services, agent tools, and server-side spreadsheet formulas.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent-tools",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"build": "pnpm --dir ../.. --filter @bilig/headless build && rm -rf dist tsconfig.tsbuildinfo && tsc -p tsconfig.json"
|
|
82
82
|
},
|
|
83
83
|
"dependencies": {
|
|
84
|
-
"@bilig/headless": "0.
|
|
84
|
+
"@bilig/headless": "0.128.0"
|
|
85
85
|
},
|
|
86
86
|
"engines": {
|
|
87
87
|
"node": ">=22.0.0"
|