@rowsncolumns/rnc-yrs-store 0.8.144 → 0.9.1

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.
@@ -99,6 +99,12 @@ export class SpreadsheetEngine {
99
99
  */
100
100
  filterColors(sheet_id: number, col: number, start_row: number, end_row: number): string;
101
101
  findAll(sheet_id: number, ranges_json: string, find: string, match_case: boolean, whole_word: boolean, use_regex: boolean): string;
102
+ /**
103
+ * Every HOST-OWNED formula cell on a sheet (registered custom-function calls + dot accessors)
104
+ * as a `CellChange[]` JSON, row-major (`SpreadsheetEngineLike.hostOwnedCells`). The index-backed
105
+ * replacement for paging `readWindow` over a sheet to find agent-written `=AOP(…)` cells.
106
+ */
107
+ hostOwnedCells(sheet_id: number): string;
102
108
  /**
103
109
  * Stream CSV text into the sheet's dense column blocks anchored at `(start_row, start_col)`
104
110
  * (1-based); returns the number of rows written. Designed to run in a Web Worker: one synchronous
@@ -292,6 +298,7 @@ export interface InitOutput {
292
298
  readonly spreadsheetengine_registerCustomFunction: (a: number, b: number, c: number) => void;
293
299
  readonly spreadsheetengine_precedents: (a: number, b: number, c: number, d: number) => [number, number];
294
300
  readonly spreadsheetengine_dependents: (a: number, b: number, c: number, d: number) => [number, number];
301
+ readonly spreadsheetengine_hostOwnedCells: (a: number, b: number) => [number, number];
295
302
  readonly spreadsheetengine_takeCappedFormulas: (a: number) => [number, number];
296
303
  readonly spreadsheetengine_clearHistory: (a: number) => void;
297
304
  readonly spreadsheetengine_undoDepth: (a: number) => number;
@@ -338,6 +338,25 @@ export class SpreadsheetEngine {
338
338
  wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
339
339
  }
340
340
  }
341
+ /**
342
+ * Every HOST-OWNED formula cell on a sheet (registered custom-function calls + dot accessors)
343
+ * as a `CellChange[]` JSON, row-major (`SpreadsheetEngineLike.hostOwnedCells`). The index-backed
344
+ * replacement for paging `readWindow` over a sheet to find agent-written `=AOP(…)` cells.
345
+ * @param {number} sheet_id
346
+ * @returns {string}
347
+ */
348
+ hostOwnedCells(sheet_id) {
349
+ let deferred1_0;
350
+ let deferred1_1;
351
+ try {
352
+ const ret = wasm.spreadsheetengine_hostOwnedCells(this.__wbg_ptr, sheet_id);
353
+ deferred1_0 = ret[0];
354
+ deferred1_1 = ret[1];
355
+ return getStringFromWasm0(ret[0], ret[1]);
356
+ } finally {
357
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
358
+ }
359
+ }
341
360
  /**
342
361
  * Stream CSV text into the sheet's dense column blocks anchored at `(start_row, start_col)`
343
362
  * (1-based); returns the number of rows written. Designed to run in a Web Worker: one synchronous
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rowsncolumns/rnc-yrs-store",
3
- "version": "0.8.144",
3
+ "version": "0.9.1",
4
4
  "author": "Vinay M",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "description": "Document-backed Rust→WASM spreadsheet calc engine (yrs/CRDT, canonical sheetDataV3). Ships the `SpreadsheetEngine` (a `Store<YrsStore>`): applyCommand / undo / redo / canUndo + the Yjs collaboration surface (applyUpdate / takePendingUpdates / loadFromUpdate / stateAsUpdate) the Keryx update-pump binds to. This is the 1,000,000-row engine the demo-app ships today — previously vendored, now a versioned package. The PREBUILT wasm is included (consumers need NO Rust/wasm toolchain); the glue's default init REQUIRES an explicit `module_or_path` — pass the URL of the served `rnc_yrs_store_bg.wasm` (webpack/Turbopack statically resolve a bundled `new URL`, which would 404 from this package, so the inline-default branch is intentionally a throw).",