Expand description
byob’s spreadsheets: the bundled sheets plugin’s backend, in-process, on the IronCalc
engine: tools to create, describe, read, write, fill, restructure and format sheets, with
lints, artifact versions, drafts and an editable grid view. The plugin’s manifest
(crates/bundled/plugins/sheets) names it with "backend": {"native": "sheets"}; the app
registers factory under ID.
It implements byob_plugins::native::NativeBackend, so the engine hosts it like a
process backend (its own thread, restarted after a panic).
Modules§
- book
- Workbooks: IronCalc’s raw
Modelbehind the small interface the tools use. Sheets are 0-based indices, rows and columns 1-based (IronCalc’s convention). - charts
- Charts drawn from a sheet:
chart_sheetmakes a chart artifact from a sheet’s columns (the computed values, formulas included) that remembers where it came from (byob_types::chart::ChartSource), andrefreshdraws those charts again from the sheet each time it is saved, by a tool or by the user’s edits in the grid, so a chart never goes stale and nobody copies numbers by hand. - refs
- A1 references: forgiving ranges, and formulas shifted like Excel’s fill and copy. Rows and columns are 1-based.
- store
- Artifacts on disk (
.byob/artifacts/<id>/artifact.json+ version files, as byob writes them), what a tool’ssheetargument names, and the live workbooks in memory. - text
- How replies spell values: Python’s conventions (
repr,str,json.dumps,%.10g), the format the tools’ replies have had since the backend was a Python plugin (and that models read well:'Sheet1',True,5.0), kept so they stay stable. - tools
- The sheet tools (describe_sheet, read_cells, write_cells, fill, edit_sheet, format_cells, create_sheet).
- view
- The grid view the artifact pane shows (
view:sheet) and the user’s edits in it: the tree, window paging, formula text (i), frozen strips, tabs, and draft versions.
Structs§
- Sheets
- The sheets backend’s state: workbooks, views, and the artifacts its views show.
Enums§
- Sheet
Error - A problem the model can act on (its text is a plain sentence).
Constants§
- ID
- The id manifests name (
"backend": {"native": "sheets"}). - TOOLS
- The tools it serves, in the manifest’s order.