@bilig/workpaper 0.131.0 → 0.131.2

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 CHANGED
@@ -6,7 +6,7 @@ Use this file when an AI coding agent, MCP client, or tool host needs workbook f
6
6
 
7
7
  1. Read `https://proompteng.github.io/bilig/llms.txt` for the compact map.
8
8
  2. Read `https://proompteng.github.io/bilig/llms-full.txt` when you need enough context to implement a workflow without searching the whole site.
9
- 3. Use `https://proompteng.github.io/bilig/agent-adoption-kit.html` when you need the shortest no-key install, MCP proof, and paste-ready workbook task.
9
+ 3. Use `https://proompteng.github.io/bilig/agent-adoption-kit.html` when you need the shortest no-key install, MCP proof, and workbook task.
10
10
  4. If your host can install skills from a well-known endpoint, run
11
11
  `npx --yes skills@latest add https://bilig.proompteng.ai --list`.
12
12
  5. Read `https://bilig.proompteng.ai/.well-known/agent-skills/bilig-workpaper/SKILL.txt` when your agent supports skill manifests.
package/README.md CHANGED
@@ -17,31 +17,51 @@ npm install @bilig/workpaper
17
17
 
18
18
  ## Start Here
19
19
 
20
- Pick the path that matches the workflow you are trying to unblock:
21
-
22
- | You need... | Run this first | Proof you should get |
23
- | ----------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
24
- | Formula workbook logic inside a Node service, route, queue, or test | `npm create @bilig/workpaper@latest pricing-workpaper` | Inputs are written, formulas recalculate, JSON persists, restore matches readback, and `verified: true` is printed. |
25
- | A coding agent or MCP client that needs spreadsheet operations | `npm create @bilig/workpaper@latest pricing-agent -- --agent` | The generated project includes an agent contract, MCP config, and `npm run agent:verify`. |
26
- | Windmill TypeScript workflow fields | `cd examples/windmill-workpaper-script && pnpm install --ignore-workspace --lockfile=false && pnpm run smoke` | The script returns a calculated field patch plus before/after/restore WorkPaper proof with `verified: true`. |
27
- | Trigger.dev durable task fields | `cd examples/triggerdev-workpaper-task && pnpm install --ignore-workspace --lockfile=false && pnpm run smoke` | The task helper returns a calculated field patch plus before/after/restore WorkPaper proof with `verified: true`. |
28
- | Inngest durable step fields | `cd examples/inngest-workpaper-step && pnpm install --ignore-workspace --lockfile=false && pnpm run smoke` | The step helper returns a calculated field patch plus before/after/restore WorkPaper proof with `verified: true`. |
29
- | Airbyte post-sync record and state validation | `cd examples/airbyte-workpaper-validation && pnpm install --ignore-workspace --lockfile=false && pnpm run smoke` | The validation step reads Airbyte-style `STREAM`/`GLOBAL` state JSONL and returns a patch plus restore proof. |
30
- | Meltano custom utility validation | `cd examples/meltano-workpaper-utility && pnpm install --ignore-workspace --lockfile=false && pnpm run smoke` | The utility reads a post-ELT JSONL export and writes a formula-backed WorkPaper proof artifact. |
31
- | Temporal TypeScript Activity decisions | `cd examples/temporal-workpaper-activity && pnpm install --ignore-workspace --lockfile=false && pnpm run smoke` | The Activity owns WorkPaper formula work while Workflow code stays free of workbook imports. |
32
- | Apache Airflow DAG task outputs | `cd examples/airflow-workpaper-dag && pnpm install --ignore-workspace --lockfile=false && pnpm run smoke` | The Node step writes a full proof file while the DAG returns a compact XCom summary for downstream tasks. |
33
- | Dagster asset materialization metadata | `cd examples/dagster-workpaper-asset && pnpm install --ignore-workspace --lockfile=false && pnpm run smoke` | The Node subprocess writes WorkPaper proof and emits compact Dagster Pipes materialization metadata. |
34
- | Kestra Node Commands flow fields | `cd examples/kestra-workpaper-flow && pnpm install --ignore-workspace --lockfile=false && pnpm run smoke` | The flow script writes a `workpaper-proof.json` artifact with before/after/restore proof and `verified: true`. |
35
- | Prefect flow fields | `cd examples/prefect-workpaper-flow && pnpm install --ignore-workspace --lockfile=false && pnpm run smoke` | The Node step writes a `workpaper-proof.json` artifact that a Prefect task can validate and return. |
36
- | Directus Flow operation for persisted calculated fields | `cd examples/directus-workpaper-flow-operation && npm install && npm run smoke` | The operation returns a Directus `patch` plus before/after/restore WorkPaper proof with `verified: true`. |
37
- | n8n, Dify, Flowise, or Pipedream formula readback without spreadsheet UI automation | `npm exec --package @bilig/workpaper@latest -- bilig-n8n-formula-server --port 4321` | The workflow writes one input cell, reads dependent formula output, and returns a compact JSON proof. |
38
- | Vercel AI SDK `generateText()` or `streamText()` tools | Import `createAiSdkWorkPaperTools` from `@bilig/workpaper/ai-sdk` | The tool call returns before/after/restore formula readback instead of a blind write result. |
39
- | Open WebUI needs MCP spreadsheet tools | `npm exec --package @bilig/workpaper@latest -- bilig-mcp-challenge --json` | Open WebUI can call the hosted Streamable HTTP endpoint or a local stdio server bridged through `mcpo`. |
40
- | FastMCP Python client for hosted MCP smoke tests | `cd examples/fastmcp-workpaper-client && uv run --python 3.12 --with 'fastmcp-slim[client]' python fastmcp_workpaper_client.py --output .tmp/fastmcp-workpaper-proof.json` | FastMCP lists Bilig tools, writes `Inputs!B3`, checks restore proof, and exports WorkPaper JSON. |
41
- | LangGraph.js ToolNode should keep formula proof in state | `cd examples/langgraph-workpaper-tool-state && pnpm install --ignore-workspace --lockfile=false && pnpm run smoke` | Real `@langchain/langgraph` `ToolNode` returns `ToolMessage` readback proof after a WorkPaper mutation. |
42
- | LangChain MCP adapters should load WorkPaper tools | `cd examples/langchain-mcp-workpaper-toolnode && pnpm install --ignore-workspace --lockfile=false && pnpm run smoke` | `@langchain/mcp-adapters` discovers Bilig MCP tools and `ToolNode` proves write, readback, persistence, and restart. |
43
- | Hugging Face smolagents tool | `cd examples/smolagents-workpaper-tool && uv run --python 3.12 --with smolagents python smolagents_workpaper_tool.py --output .tmp/smolagents-workpaper-proof.json` | A smolagents `Tool` runs Bilig formula readback proof and returns a structured `verified: true` object. |
44
- | An existing `.xlsx` file with stale formula results after Node edits | `npx --package @bilig/xlsx-formula-recalc xlsx-recalc --demo --json` | The file-level path updates inputs and returns fresh formula values without Excel, LibreOffice, or a browser. |
20
+ Pick the door that matches the state you own:
21
+
22
+ | Door | Run first | What it proves |
23
+ | -------------------------- | ---------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
24
+ | Node service or test | `npm exec --yes --package @bilig/workpaper@latest -- bilig-evaluate --door workpaper-service --json` | edit input, recalculate output, persist JSON, restore, and return `verified: true`. |
25
+ | Coding agent or MCP client | `npm exec --yes --package @bilig/workpaper@latest -- bilig-evaluate --door agent-mcp --json` | tool discovery, cell mutation, formula readback, JSON export, restart proof, and `verified: true`. |
26
+ | New project | `npm create @bilig/workpaper@latest pricing-agent -- --agent` | a starter with `AGENTS.md`, MCP config, and `npm run agent:verify` wired to the same proof loop. |
27
+
28
+ If one of those matches your workflow, keep Bilig nearby:
29
+ <https://github.com/proompteng/bilig>. Watch releases if this is close to a
30
+ production dependency: <https://github.com/proompteng/bilig/subscription>.
31
+
32
+ Framework examples live in the repo instead of this first screen. Start with
33
+ the closest runtime:
34
+
35
+ - Agent tools: Vercel AI SDK, LangGraph, LangChain MCP adapters, Open WebUI,
36
+ FastMCP, smolagents.
37
+ - Workflow engines: Trigger.dev, Inngest, Temporal, Airflow, Dagster, Kestra,
38
+ Prefect, Windmill.
39
+ - Low-code and data tools: n8n, Pipedream, Directus, Airbyte, Meltano.
40
+ - Existing `.xlsx` files: use `@bilig/xlsx-formula-recalc` for stale formula
41
+ caches and exported workbook readback.
42
+
43
+ ## Searchable Example Guides
44
+
45
+ These are integration guide names that users search for on npm. They are links,
46
+ not the first-run path:
47
+
48
+ | Guide need | Start here |
49
+ | ----------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
50
+ | Windmill TypeScript workflow fields | <https://proompteng.github.io/bilig/windmill-workpaper-script.html> |
51
+ | Trigger.dev durable task fields | <https://proompteng.github.io/bilig/triggerdev-workpaper-task.html> |
52
+ | Inngest durable step fields | <https://proompteng.github.io/bilig/inngest-workpaper-step.html> |
53
+ | Temporal TypeScript Activity decisions | <https://proompteng.github.io/bilig/temporal-workpaper-activity.html> |
54
+ | Apache Airflow DAG task outputs | <https://proompteng.github.io/bilig/airflow-workpaper-dag.html> |
55
+ | Dagster asset materialization metadata | <https://proompteng.github.io/bilig/dagster-workpaper-asset.html> |
56
+ | Kestra Node Commands flow fields | <https://proompteng.github.io/bilig/kestra-workpaper-flow.html> |
57
+ | Prefect flow fields | <https://proompteng.github.io/bilig/prefect-workpaper-flow.html> |
58
+ | Directus Flow operation for persisted calculated fields | <https://proompteng.github.io/bilig/directus-workpaper-flow-operation.html> |
59
+ | n8n formula readback for self-hosted workflows | <https://proompteng.github.io/bilig/n8n-workpaper-formula-readback.html> |
60
+ | Dify formula readback | <https://proompteng.github.io/bilig/dify-workpaper-formula-readback.html> |
61
+ | Flowise formula readback | <https://proompteng.github.io/bilig/flowise-workpaper-formula-readback.html> |
62
+ | Pipedream formula readback | <https://proompteng.github.io/bilig/pipedream-workpaper-formula-readback.html> |
63
+ | FastMCP Python client for hosted MCP smoke tests | <https://proompteng.github.io/bilig/fastmcp-workpaper-client.html> |
64
+ | Hugging Face smolagents tool | <https://proompteng.github.io/bilig/smolagents-workpaper-tool.html> |
45
65
 
46
66
  ## Use A WorkPaper In Node
47
67
 
@@ -148,10 +168,9 @@ The mutating tool returns `editedCell`, `before`, `after`, `restored`, and
148
168
  `checks`. Keep `writableSheets` narrow so the model can edit inputs without
149
169
  rewriting formula sheets.
150
170
 
151
- ## Prove The Agent Loop Without Cloning
171
+ ## Verify Without Cloning
152
172
 
153
- The package ships one evaluator front door plus the narrow proof commands for
154
- coding agents and service evaluators:
173
+ The package ships evaluator and direct proof commands:
155
174
 
156
175
  ```sh
157
176
  npm exec --package @bilig/workpaper@latest -- bilig-evaluate --door workpaper-service --json
@@ -163,7 +182,7 @@ npm exec --package @bilig/workpaper@latest -- bilig-workpaper-mcp --workpaper ./
163
182
  ```
164
183
 
165
184
  `bilig-evaluate` prints a `bilig-evaluator.v1` object with `door`, `evidence`,
166
- `verified`, `limitations`, and the underlying source proof.
185
+ `verified`, `limitations`, and the source command output.
167
186
 
168
187
  The challenge commands edit one input, recalculate dependent formulas, export
169
188
  WorkPaper JSON, restore it, and print a `verified: true` proof object.
package/SKILL.md CHANGED
@@ -24,7 +24,7 @@ Trigger this skill for tasks involving:
24
24
  - quote, budget, payout, pricing, import-validation, or forecast models;
25
25
  - agent spreadsheet tools that need deterministic cell addresses;
26
26
  - MCP clients that can run a stdio server or call a Streamable HTTP endpoint;
27
- - reduced XLSX formula bugs that need a paste-ready report.
27
+ - reduced XLSX formula bugs that need a local report.
28
28
 
29
29
  Do not trigger it for manual spreadsheet editing, Office macros, VBA, pivots, charts, COM automation, or exact Excel desktop behavior unless the user explicitly asks to compare Bilig against an Excel oracle.
30
30
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bilig/workpaper",
3
- "version": "0.131.0",
3
+ "version": "0.131.2",
4
4
  "description": "Scoped Bilig WorkPaper runtime and MCP server for Node.js services, agent tools, and server-side spreadsheet formulas.",
5
5
  "keywords": [
6
6
  "agent-tools",
@@ -91,9 +91,9 @@
91
91
  "build": "pnpm --dir ../.. --filter bilig-workpaper build && rm -rf dist tsconfig.tsbuildinfo && tsc -p tsconfig.json"
92
92
  },
93
93
  "dependencies": {
94
- "@bilig/headless": "0.131.0",
95
- "@bilig/xlsx-formula-recalc": "0.131.0",
96
- "bilig-workpaper": "0.131.0"
94
+ "@bilig/headless": "0.131.2",
95
+ "@bilig/xlsx-formula-recalc": "0.131.2",
96
+ "bilig-workpaper": "0.131.2"
97
97
  },
98
98
  "devDependencies": {
99
99
  "ai": "6.0.182",
package/server.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "io.github.proompteng/bilig-workpaper",
4
4
  "title": "Bilig WorkPaper",
5
5
  "description": "WorkPaper MCP tools, resources, and prompts for readback, edits, and JSON persistence.",
6
- "version": "0.131.0",
6
+ "version": "0.131.2",
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.131.0",
21
+ "version": "0.131.2",
22
22
  "transport": {
23
23
  "type": "stdio"
24
24
  }