@beyondwork/xlsx-substrate-bindings 0.1.0 → 0.2.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/README.md +136 -0
- package/dist/ai/agent-metadata.d.ts +363 -0
- package/dist/ai/agent-metadata.js +227 -0
- package/dist/ai/index.d.ts +5 -1
- package/dist/ai/index.js +6 -0
- package/dist/ai/mutation-bridge.d.ts +82 -0
- package/dist/ai/mutation-bridge.js +179 -0
- package/dist/ai/types.d.ts +448 -3
- package/dist/index.d.ts +7 -3
- package/dist/index.js +20 -2
- package/dist/runtime/index.d.ts +1 -1
- package/dist/runtime/types.d.ts +57 -1
- package/dist/wasm/ai-session-bridge.d.ts +97 -0
- package/dist/wasm/ai-session-bridge.js +154 -0
- package/dist/wasm/bridge-contract.d.ts +108 -6
- package/dist/wasm/bridge-contract.js +146 -7
- package/dist/wasm/index.d.ts +43 -2
- package/dist/wasm/index.js +253 -23
- package/dist/wasm/memory-budget.d.ts +77 -0
- package/dist/wasm/memory-budget.js +532 -0
- package/dist/wasm/runtime-guard.d.ts +141 -0
- package/dist/wasm/runtime-guard.js +373 -0
- package/dist/wasm/web.d.ts +16 -3
- package/dist/wasm/web.js +91 -9
- package/generated/wasm-web/xlsx_substrate_wasm.d.ts +66 -0
- package/generated/wasm-web/xlsx_substrate_wasm.js +2488 -2104
- package/generated/wasm-web/xlsx_substrate_wasm_bg.wasm +0 -0
- package/generated/wasm-web/xlsx_substrate_wasm_bg.wasm.d.ts +15 -0
- package/package.json +18 -4
- package/dist/wasm/chart-test-fixture.d.ts +0 -19
- package/dist/wasm/chart-test-fixture.js +0 -42
- package/dist/wasm/media-test-fixture.d.ts +0 -44
- package/dist/wasm/media-test-fixture.js +0 -160
- package/dist/wasm/volatile-test-fixture.d.ts +0 -7
- package/dist/wasm/volatile-test-fixture.js +0 -35
- package/generated/wasm/package.json +0 -3
- package/generated/wasm/sheet-window-binary.mjs +0 -482
- package/generated/wasm/snippets/ironcalc_base-89b4f49381e1e289/inline0.js +0 -45
- package/generated/wasm/xlsx_substrate_wasm.d.ts +0 -336
- package/generated/wasm/xlsx_substrate_wasm.js +0 -2108
- package/generated/wasm/xlsx_substrate_wasm_bg.wasm +0 -0
- package/generated/wasm/xlsx_substrate_wasm_bg.wasm.d.ts +0 -105
|
@@ -1,336 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
|
|
4
|
-
export function bindUiRuntimeSession(handle_id: string, requested_active_sheet_id?: string | null): any;
|
|
5
|
-
|
|
6
|
-
export function bindUiSession(bytes: Uint8Array, requested_active_sheet_id?: string | null): any;
|
|
7
|
-
|
|
8
|
-
export function cancelKernelRun(bytes: Uint8Array, request: any): any;
|
|
9
|
-
|
|
10
|
-
export function classifyUiState(namespace: string): any;
|
|
11
|
-
|
|
12
|
-
export function commitApplyFilter(bytes: Uint8Array, request: any): any;
|
|
13
|
-
|
|
14
|
-
export function commitApplySort(bytes: Uint8Array, request: any): any;
|
|
15
|
-
|
|
16
|
-
export function commitCellFormula(bytes: Uint8Array, request: any): any;
|
|
17
|
-
|
|
18
|
-
export function commitCellFormulaInSession(handle_id: string, request: any): any;
|
|
19
|
-
|
|
20
|
-
export function commitClearFilter(bytes: Uint8Array, request: any): any;
|
|
21
|
-
|
|
22
|
-
export function commitRangeClear(bytes: Uint8Array, request: any): any;
|
|
23
|
-
|
|
24
|
-
export function commitRangeClearInSession(handle_id: string, request: any): any;
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* X5-U-011 data-validation authoring (byte path). Sets or clears a rule
|
|
28
|
-
* over the target range (a scope handle, a single address, or an explicit
|
|
29
|
-
* `targetRange`), then re-exports the mutated package. Rule shape is
|
|
30
|
-
* validated runtime-side, so a caller that skips the dialog is refused here.
|
|
31
|
-
*/
|
|
32
|
-
export function commitRangeDataValidation(bytes: Uint8Array, request: any): any;
|
|
33
|
-
|
|
34
|
-
export function commitRangeFill(bytes: Uint8Array, request: any): any;
|
|
35
|
-
|
|
36
|
-
export function commitRangeFillInSession(handle_id: string, request: any): any;
|
|
37
|
-
|
|
38
|
-
export function commitRangeFormat(bytes: Uint8Array, request: any): any;
|
|
39
|
-
|
|
40
|
-
export function commitRangeFormatInSession(handle_id: string, request: any): any;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* X5-U-009 hyperlink authoring (byte path). Attaches, replaces or removes a
|
|
44
|
-
* cell hyperlink over the target range, then re-exports the mutated package.
|
|
45
|
-
* Destination policy is enforced runtime-side, so a caller that skips the
|
|
46
|
-
* product surface is refused here, not silently allowed.
|
|
47
|
-
*/
|
|
48
|
-
export function commitRangeHyperlink(bytes: Uint8Array, request: any): any;
|
|
49
|
-
|
|
50
|
-
export function commitRangePaste(bytes: Uint8Array, request: any): any;
|
|
51
|
-
|
|
52
|
-
export function commitRangePasteInSession(handle_id: string, request: any): any;
|
|
53
|
-
|
|
54
|
-
export function commitRangeTransfer(bytes: Uint8Array, request: any): any;
|
|
55
|
-
|
|
56
|
-
export function commitRangeTransferInSession(handle_id: string, request: any): any;
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* X5-U-010b `review.comment` (byte path). Creates, edits, replies to,
|
|
60
|
-
* resolves, reopens or deletes the comment thread on ONE cell (a scope
|
|
61
|
-
* handle or a single address), then re-exports the mutated package. Verb
|
|
62
|
-
* and text shape are validated runtime-side.
|
|
63
|
-
*/
|
|
64
|
-
export function commitReviewComment(bytes: Uint8Array, request: any): any;
|
|
65
|
-
|
|
66
|
-
export function commitSelectionSetClear(bytes: Uint8Array, request: any): any;
|
|
67
|
-
|
|
68
|
-
export function commitSelectionSetFormat(bytes: Uint8Array, request: any): any;
|
|
69
|
-
|
|
70
|
-
export function commitSelectionSetPaste(bytes: Uint8Array, request: any): any;
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* X5-U-006 insert/delete cells with shift (byte path). Applies
|
|
74
|
-
* `runtime_sheet_shift_cells` over one rectangle and a shift direction, then
|
|
75
|
-
* exports the mutated workbook. Refusals come back typed with no bytes.
|
|
76
|
-
*/
|
|
77
|
-
export function commitShiftCells(bytes: Uint8Array, request: any): any;
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* X5-U-006 insert/delete cells with shift (session path). A cell shift
|
|
81
|
-
* re-addresses every cell in the moved band and rewrites the formulas that
|
|
82
|
-
* follow them, which incremental graph maintenance cannot see — so, like a
|
|
83
|
-
* row/column structure mutation, it forces the full-recalc fallback.
|
|
84
|
-
*/
|
|
85
|
-
export function commitShiftCellsInSession(handle_id: string, request: any): any;
|
|
86
|
-
|
|
87
|
-
export function commitTableAppendRow(bytes: Uint8Array, request: any): any;
|
|
88
|
-
|
|
89
|
-
export function commitTableAppendRowInSession(handle_id: string, request: any): any;
|
|
90
|
-
|
|
91
|
-
export function completeKernelRun(bytes: Uint8Array, request: any): any;
|
|
92
|
-
|
|
93
|
-
export function createKernelBinding(bytes: Uint8Array, request: any): any;
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* X3-R-012 (v40): data-region navigation over the session workbook.
|
|
97
|
-
* Read-only: the session is untouched. `query: "edge"` answers Ctrl+Arrow
|
|
98
|
-
* (`Range.End(direction)` of `active`), `query: "extend"` answers
|
|
99
|
-
* Ctrl+Shift+Arrow (the same edge as the head of a selection kept on
|
|
100
|
-
* `anchor`), `query: "current-region"` answers Ctrl+A
|
|
101
|
-
* (`Range.CurrentRegion` of `active`, or the whole sheet when `selection`
|
|
102
|
-
* already covers it). The answer carries the target's sheet, range, label
|
|
103
|
-
* and the selection handle the selection command takes, so the grid
|
|
104
|
-
* readback and the name box follow from the runtime's answer — never from
|
|
105
|
-
* a walk over the loaded window.
|
|
106
|
-
*/
|
|
107
|
-
export function dataRegionInRuntimeSession(handle_id: string, request: any): any;
|
|
108
|
-
|
|
109
|
-
export function deleteKernelBinding(bytes: Uint8Array, request: any): any;
|
|
110
|
-
|
|
111
|
-
export function detachKernelOutput(bytes: Uint8Array, request: any): any;
|
|
112
|
-
|
|
113
|
-
export function disposeWorkbookRuntimeSession(handle_id: string): any;
|
|
114
|
-
|
|
115
|
-
export function explainFormula(bytes: Uint8Array, target: any): any;
|
|
116
|
-
|
|
117
|
-
export function explainRuntimeSessionFormula(handle_id: string, target: any): any;
|
|
118
|
-
|
|
119
|
-
export function exportRuntimeSessionBytes(handle_id: string, request: any): any;
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* X5-U-012: the product's delimited-text (CSV/TSV) export.
|
|
123
|
-
*
|
|
124
|
-
* Read-only, like `exportRuntimeSessionBytes`: no revision bump, no
|
|
125
|
-
* invalidation, no identity advancement. The whole sheet is walked engine
|
|
126
|
-
* side rather than the materialized window the clipboard serializer sees, so
|
|
127
|
-
* what the user downloads is the sheet and not the part of it that happens to
|
|
128
|
-
* be on screen.
|
|
129
|
-
*
|
|
130
|
-
* A refusal comes back as `blockers`, not as an exception: the export is
|
|
131
|
-
* bounded on the range it would emit (a two-cell workbook whose used range
|
|
132
|
-
* spans the grid is `delimited-export-too-many-cells`), and what CSV cannot
|
|
133
|
-
* carry — other sheets, formulas as their last calculated value, formatting —
|
|
134
|
-
* comes back on `refusals` so the surface can tell the user before they open
|
|
135
|
-
* the file somewhere else.
|
|
136
|
-
*/
|
|
137
|
-
export function exportRuntimeSessionDelimitedText(handle_id: string, request: any): any;
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* X5-U-038 (v34): Excel's Find over the session workbook. Read-only: the
|
|
141
|
-
* session is untouched, so the answer is the match list (with the cell
|
|
142
|
-
* handle the selection command takes for each) or a typed refusal of the
|
|
143
|
-
* query itself. Never a window scan — the runtime walks the canonical cell
|
|
144
|
-
* store, so off-window and off-sheet cells are found.
|
|
145
|
-
*/
|
|
146
|
-
export function findInRuntimeSession(handle_id: string, request: any): any;
|
|
147
|
-
|
|
148
|
-
export function getWasmStatus(): any;
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* X5-U-023 (v35): name-box / Go To resolution over the session workbook.
|
|
152
|
-
* Read-only: the session is untouched. The answer names the target sheet
|
|
153
|
-
* and range, the label the name box shows, and the selection handle the
|
|
154
|
-
* selection command (`interact` / `readRuntimeSessionSelection`) takes —
|
|
155
|
-
* so the grid readback and the formula bar follow from the runtime's
|
|
156
|
-
* answer, never from a client parse of the typed text. Defined names are
|
|
157
|
-
* resolved here with Excel's scope precedence; the client never scans.
|
|
158
|
-
*/
|
|
159
|
-
export function goToInRuntimeSession(handle_id: string, request: any): any;
|
|
160
|
-
|
|
161
|
-
export function inspectWorkbook(bytes: Uint8Array, source_label?: string | null): any;
|
|
162
|
-
|
|
163
|
-
export function inspectWorkbookRuntimeSession(handle_id: string): any;
|
|
164
|
-
|
|
165
|
-
export function listRuntimeSessionScopes(handle_id: string, request: any): any;
|
|
166
|
-
|
|
167
|
-
export function listScopes(bytes: Uint8Array, request: any): any;
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* X5-U-037 merge/unmerge cells (byte path). Applies the runtime merge
|
|
171
|
-
* command and, on an applied verdict, exports the mutated workbook so the
|
|
172
|
-
* caller can thread the bytes forward. The result carries the discarded
|
|
173
|
-
* covered cells so the host can confirm the loss with the user.
|
|
174
|
-
*/
|
|
175
|
-
export function mergeCells(bytes: Uint8Array, request: any): any;
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* X5-U-037 merge/unmerge cells (session path). A merge that discards
|
|
179
|
-
* covered content is a range clear for the keep-alive graph (dirty seeds =
|
|
180
|
-
* the discarded cells' ids); a merge with nothing to discard and every
|
|
181
|
-
* unmerge is value-neutral.
|
|
182
|
-
*/
|
|
183
|
-
export function mergeCellsInSession(handle_id: string, request: any): any;
|
|
184
|
-
|
|
185
|
-
export function mutateSheetStructure(bytes: Uint8Array, request: any): any;
|
|
186
|
-
|
|
187
|
-
export function mutateSheetStructureInSession(handle_id: string, request: any): any;
|
|
188
|
-
|
|
189
|
-
export function mutateSheetTabs(bytes: Uint8Array, request: any): any;
|
|
190
|
-
|
|
191
|
-
export function mutateSheetTabsInSession(handle_id: string, request: any): any;
|
|
192
|
-
|
|
193
|
-
export function openWorkbookRuntimeSession(bytes: Uint8Array, request: any): any;
|
|
194
|
-
|
|
195
|
-
export function projectViewportHint(bytes: Uint8Array, hint: any): any;
|
|
196
|
-
|
|
197
|
-
export function readCompressedContext(bytes: Uint8Array, request: any): any;
|
|
198
|
-
|
|
199
|
-
export function readCompressedDrilldown(bytes: Uint8Array, request: any): any;
|
|
200
|
-
|
|
201
|
-
export function readKernelPanel(bytes: Uint8Array, workflow_context: any): any;
|
|
202
|
-
|
|
203
|
-
/**
|
|
204
|
-
* X4-CL-002 readable posture: enumerate preserve-only entities so hosts
|
|
205
|
-
* and agents can show typed preserved-object affordances instead of opaque
|
|
206
|
-
* refusals. Metadata-only: keys, kinds, source labels, digest prefixes, and
|
|
207
|
-
* provenance classes — never payload content.
|
|
208
|
-
*/
|
|
209
|
-
export function readPreserveOnlyEntities(bytes: Uint8Array, source_label?: string | null): any;
|
|
210
|
-
|
|
211
|
-
/**
|
|
212
|
-
* D4-R2b (v20): digest-addressed chart XML for a `DrawingChartHandle`
|
|
213
|
-
* chart id (`chart:sha256:<64-hex>`). One-shot, uncached on the wasm side —
|
|
214
|
-
* the package seam recomputes the SHA-256 per call, so callers must not
|
|
215
|
-
* invoke this per paint frame (the client chart-preview store is the
|
|
216
|
-
* consumer guard). The workbook theme XML rides along when present so the
|
|
217
|
-
* host-side synthesizer needs no second readback. Refusals are typed
|
|
218
|
-
* kebab-case `ChartAccessError` codes.
|
|
219
|
-
*/
|
|
220
|
-
export function readRuntimeSessionChartBytes(handle_id: string, chart_id: string): any;
|
|
221
|
-
|
|
222
|
-
export function readRuntimeSessionCompressedContext(handle_id: string, request: any): any;
|
|
223
|
-
|
|
224
|
-
export function readRuntimeSessionCompressedDrilldown(handle_id: string, request: any): any;
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
* W-A §5: the explicit integrity readback — the ONLY session read that
|
|
228
|
-
* materializes the full state SHA on demand (memoized until the next
|
|
229
|
-
* mutation). Read-only: no revision bump, no identity advancement. Hosts
|
|
230
|
-
* use it for export-independent integrity verification and idle checks;
|
|
231
|
-
* every routine surface carries the O(1) chain identity instead.
|
|
232
|
-
*/
|
|
233
|
-
export function readRuntimeSessionIntegrity(handle_id: string): any;
|
|
234
|
-
|
|
235
|
-
export function readRuntimeSessionKernelPanel(handle_id: string, workflow_context: any): any;
|
|
236
|
-
|
|
237
|
-
/**
|
|
238
|
-
* BR-3 (v18): digest-addressed media bytes for a `DrawingMediaHandle`
|
|
239
|
-
* media id (`media:sha256:<64-hex>`). One-shot, uncached on the wasm side —
|
|
240
|
-
* the package seam recomputes the SHA-256 per call, so callers must not
|
|
241
|
-
* invoke this per paint frame (the client decode cache is the consumer
|
|
242
|
-
* guard). Refusals are typed kebab-case `MediaAccessError` codes.
|
|
243
|
-
*/
|
|
244
|
-
export function readRuntimeSessionMediaBytes(handle_id: string, media_id: string): any;
|
|
245
|
-
|
|
246
|
-
export function readRuntimeSessionOverlayLanes(handle_id: string, request: any): any;
|
|
247
|
-
|
|
248
|
-
export function readRuntimeSessionPreserveOnlyEntities(handle_id: string): any;
|
|
249
|
-
|
|
250
|
-
/**
|
|
251
|
-
* X5-U-028 (v24): `selection_cursor` is an optional `{anchor, head}`; when
|
|
252
|
-
* present it is validated against the selected range and echoed on the
|
|
253
|
-
* readback, so a backwards drag keeps its corners across a refresh.
|
|
254
|
-
*/
|
|
255
|
-
export function readRuntimeSessionSelection(handle_id: string, handle: any, viewport_hint: any, workflow_context: any, selection_cursor: any): any;
|
|
256
|
-
|
|
257
|
-
export function readRuntimeSessionSelectionSet(handle_id: string, request: any): any;
|
|
258
|
-
|
|
259
|
-
export function readRuntimeSessionSheetWindow(handle_id: string, viewport_hint: any, active_handle: any, workflow_context: any): any;
|
|
260
|
-
|
|
261
|
-
/**
|
|
262
|
-
* T5 hybrid binary sheet-window export (`xlsx-sheet-window-binary/1`).
|
|
263
|
-
*
|
|
264
|
-
* Same parameters and window semantics as `readRuntimeSessionSheetWindow`;
|
|
265
|
-
* returns `{ schemaId, bytes, rest }` where `bytes` carries the four bulk
|
|
266
|
-
* arrays in the flat layout owned by `sheet_window_binary` and `rest` is a
|
|
267
|
-
* small JSON DTO (envelope/cache/merges/rare payloads). Cache-warm hits
|
|
268
|
-
* return the cached bytes verbatim — the serde-per-hit cost of the JSON
|
|
269
|
-
* export (bench BR-6) is skipped entirely.
|
|
270
|
-
*/
|
|
271
|
-
export function readRuntimeSessionSheetWindowBinary(handle_id: string, viewport_hint: any, active_handle: any, workflow_context: any): any;
|
|
272
|
-
|
|
273
|
-
export function readSelection(bytes: Uint8Array, handle: any, viewport_hint: any, workflow_context: any, selection_cursor: any): any;
|
|
274
|
-
|
|
275
|
-
export function readSelectionSet(bytes: Uint8Array, request: any): any;
|
|
276
|
-
|
|
277
|
-
export function readSheetWindow(bytes: Uint8Array, viewport_hint: any, active_handle: any, workflow_context: any): any;
|
|
278
|
-
|
|
279
|
-
export function readWorkflowOverlayLanes(bytes: Uint8Array, request: any): any;
|
|
280
|
-
|
|
281
|
-
export function recalculateFormulas(bytes: Uint8Array, request: any): any;
|
|
282
|
-
|
|
283
|
-
export function recalculateInSession(handle_id: string, request: any): any;
|
|
284
|
-
|
|
285
|
-
export function resizeColumnWidth(bytes: Uint8Array, request: any): any;
|
|
286
|
-
|
|
287
|
-
export function resizeColumnWidthInSession(handle_id: string, request: any): any;
|
|
288
|
-
|
|
289
|
-
export function resizeRowHeight(bytes: Uint8Array, request: any): any;
|
|
290
|
-
|
|
291
|
-
export function resizeRowHeightInSession(handle_id: string, request: any): any;
|
|
292
|
-
|
|
293
|
-
export function resolveReference(bytes: Uint8Array, query: any): any;
|
|
294
|
-
|
|
295
|
-
export function setColumnHidden(bytes: Uint8Array, request: any): any;
|
|
296
|
-
|
|
297
|
-
export function setColumnHiddenInSession(handle_id: string, request: any): any;
|
|
298
|
-
|
|
299
|
-
export function setColumnOutlineGroupHidden(bytes: Uint8Array, request: any): any;
|
|
300
|
-
|
|
301
|
-
/**
|
|
302
|
-
* X5-U-004: freeze/unfreeze panes (byte path). Applies the runtime frozen
|
|
303
|
-
* pane command and, on an applied verdict, exports the mutated workbook so
|
|
304
|
-
* the caller can thread the bytes forward.
|
|
305
|
-
*/
|
|
306
|
-
export function setFrozenPane(bytes: Uint8Array, request: any): any;
|
|
307
|
-
|
|
308
|
-
/**
|
|
309
|
-
* X5-U-004: freeze/unfreeze panes (session path). Adopts the mutated
|
|
310
|
-
* workbook in place with the same value-neutral session bookkeeping as the
|
|
311
|
-
* layout-metric commits (pane state changes no cell values, so the
|
|
312
|
-
* keep-alive calc graph stays valid).
|
|
313
|
-
*/
|
|
314
|
-
export function setFrozenPaneInSession(handle_id: string, request: any): any;
|
|
315
|
-
|
|
316
|
-
export function setRowHidden(bytes: Uint8Array, request: any): any;
|
|
317
|
-
|
|
318
|
-
export function setRowHiddenInSession(handle_id: string, request: any): any;
|
|
319
|
-
|
|
320
|
-
export function setRowOutlineGroupHidden(bytes: Uint8Array, request: any): any;
|
|
321
|
-
|
|
322
|
-
/**
|
|
323
|
-
* X5-U-005 outline authoring (byte path). Raises/lowers the outline level of
|
|
324
|
-
* a row/column span, then re-exports the mutated package.
|
|
325
|
-
*/
|
|
326
|
-
export function setSheetOutlineLevel(bytes: Uint8Array, request: any): any;
|
|
327
|
-
|
|
328
|
-
export function startKernelRun(bytes: Uint8Array, request: any): any;
|
|
329
|
-
|
|
330
|
-
export function summarizeAccessibility(bytes: Uint8Array, handle: any, viewport_hint: any, workflow_context: any): any;
|
|
331
|
-
|
|
332
|
-
export function summarizeRuntimeSessionAccessibility(handle_id: string, handle: any, viewport_hint: any, workflow_context: any): any;
|
|
333
|
-
|
|
334
|
-
export function updateKernelSource(bytes: Uint8Array, request: any): any;
|
|
335
|
-
|
|
336
|
-
export function validateKernelAction(bytes: Uint8Array, request: any): any;
|