@bldrs-ai/conway 1.400.1226 → 1.401.1237
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/compiled/Dist/ConwayGeomWasmNode.js +0 -0
- package/compiled/Dist/ConwayGeomWasmNodeMT.js +0 -0
- package/compiled/Dist/ConwayGeomWasmWeb.js +0 -0
- package/compiled/Dist/ConwayGeomWasmWebMT.js +1 -1
- package/compiled/Dist/ConwayGeomWasmWebMT.wasm +0 -0
- package/compiled/dependencies/conway-geom/Dist/ConwayGeomWasmNode.js +0 -0
- package/compiled/dependencies/conway-geom/Dist/ConwayGeomWasmNodeMT.js +0 -0
- package/compiled/dependencies/conway-geom/Dist/ConwayGeomWasmWeb.js +0 -0
- package/compiled/dependencies/conway-geom/Dist/ConwayGeomWasmWebMT.js +1 -1
- package/compiled/dependencies/conway-geom/Dist/ConwayGeomWasmWebMT.wasm +0 -0
- package/compiled/examples/browser-bundled.cjs +13 -6
- package/compiled/examples/cli-bundled.cjs +42 -35
- package/compiled/examples/cli-step-bundled.cjs +40 -33
- package/compiled/examples/validator-bundled.cjs +13 -6
- package/compiled/src/step/parsing/incremental_type_index.d.ts +64 -0
- package/compiled/src/step/parsing/incremental_type_index.d.ts.map +1 -0
- package/compiled/src/step/parsing/incremental_type_index.js +92 -0
- package/compiled/src/step/parsing/incremental_type_index.test.d.ts +2 -0
- package/compiled/src/step/parsing/incremental_type_index.test.d.ts.map +1 -0
- package/compiled/src/step/parsing/incremental_type_index.test.js +55 -0
- package/compiled/src/step/parsing/step_parser.d.ts +6 -1
- package/compiled/src/step/parsing/step_parser.d.ts.map +1 -1
- package/compiled/src/step/parsing/step_parser.js +10 -3
- package/compiled/src/step/parsing/streaming_index_builder.d.ts +11 -1
- package/compiled/src/step/parsing/streaming_index_builder.d.ts.map +1 -1
- package/compiled/src/step/parsing/streaming_index_builder.js +12 -2
- package/compiled/src/step/parsing/streaming_record_dispatcher.d.ts +55 -0
- package/compiled/src/step/parsing/streaming_record_dispatcher.d.ts.map +1 -0
- package/compiled/src/step/parsing/streaming_record_dispatcher.js +67 -0
- package/compiled/src/step/parsing/streaming_record_dispatcher.test.d.ts +2 -0
- package/compiled/src/step/parsing/streaming_record_dispatcher.test.d.ts.map +1 -0
- package/compiled/src/step/parsing/streaming_record_dispatcher.test.js +66 -0
- package/compiled/src/version/version.js +1 -1
- package/compiled/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
Binary file
|
|
@@ -30,7 +30,7 @@ var import_node_process = require("node:process");
|
|
|
30
30
|
var readline = __toESM(require("node:readline"), 1);
|
|
31
31
|
|
|
32
32
|
// compiled/src/version/version.js
|
|
33
|
-
var versionString = "Conway v1.
|
|
33
|
+
var versionString = "Conway v1.401.1237";
|
|
34
34
|
|
|
35
35
|
// compiled/dependencies/conway-geom/interface/conway_geometry.js
|
|
36
36
|
var wasmType = "";
|
|
@@ -2579,11 +2579,16 @@ var StepParser = class extends StepHeaderParser {
|
|
|
2579
2579
|
* @param input The input parsing buffer, positioned at the data section.
|
|
2580
2580
|
* @param onRecordBoundary Called at each top-level record boundary with the
|
|
2581
2581
|
* buffer; the callback may rebase the buffer's window in place.
|
|
2582
|
+
* @param onRecordIndexed Called as each top-level record is indexed, with
|
|
2583
|
+
* its localID, expressID and typeID (0 for external-mapping records) — the
|
|
2584
|
+
* seam for incremental semantic consumers (type index, roots registry,
|
|
2585
|
+
* names skeleton). Must be synchronous and cheap; expensive work belongs on
|
|
2586
|
+
* a demand queue, not the parse path.
|
|
2582
2587
|
* @param onProgress Optional byte-cursor progress callback.
|
|
2583
2588
|
* @return {BlockParseResult} The parsing result, including the index and result enum.
|
|
2584
2589
|
*/
|
|
2585
|
-
parseDataBlockStreamed(input2, onRecordBoundary, onProgress) {
|
|
2586
|
-
const parser211 = this.parseDataBlockIncremental(input2, onRecordBoundary);
|
|
2590
|
+
parseDataBlockStreamed(input2, onRecordBoundary, onRecordIndexed, onProgress) {
|
|
2591
|
+
const parser211 = this.parseDataBlockIncremental(input2, onRecordBoundary, onRecordIndexed);
|
|
2587
2592
|
while (true) {
|
|
2588
2593
|
const next = parser211.next();
|
|
2589
2594
|
if (next.done === true) {
|
|
@@ -2629,7 +2634,7 @@ var StepParser = class extends StepHeaderParser {
|
|
|
2629
2634
|
* @yields {number} The current byte cursor within the input buffer.
|
|
2630
2635
|
* @return {BlockParseResult} The parsing result, including the index and result enum.
|
|
2631
2636
|
*/
|
|
2632
|
-
*parseDataBlockIncremental(input2, onRecordBoundary) {
|
|
2637
|
+
*parseDataBlockIncremental(input2, onRecordBoundary, onRecordIndexed) {
|
|
2633
2638
|
const indexResult = { elements: [] };
|
|
2634
2639
|
const match = input2.match;
|
|
2635
2640
|
const comment = () => match(commentParser2);
|
|
@@ -2806,6 +2811,7 @@ var StepParser = class extends StepHeaderParser {
|
|
|
2806
2811
|
if (!charws(SEMICOLON)) {
|
|
2807
2812
|
return syntaxError();
|
|
2808
2813
|
}
|
|
2814
|
+
onRecordIndexed?.(indexResult.elements.length, expressID, 0);
|
|
2809
2815
|
indexResult.elements.push({
|
|
2810
2816
|
address: startElement2,
|
|
2811
2817
|
length: input2.address - startElement2,
|
|
@@ -2897,6 +2903,7 @@ var StepParser = class extends StepHeaderParser {
|
|
|
2897
2903
|
if (!charws(SEMICOLON)) {
|
|
2898
2904
|
return syntaxError();
|
|
2899
2905
|
}
|
|
2906
|
+
onRecordIndexed?.(indexResult.elements.length, expressID, foundItem);
|
|
2900
2907
|
indexResult.elements.push({
|
|
2901
2908
|
address: startElement,
|
|
2902
2909
|
length: input2.address - startElement,
|
|
@@ -70776,7 +70783,7 @@ var IfcStepModel = class extends StepModelBase {
|
|
|
70776
70783
|
};
|
|
70777
70784
|
|
|
70778
70785
|
// compiled/src/step/parsing/streaming_index_builder.js
|
|
70779
|
-
function buildIndexStreaming(source, parser211, pool3) {
|
|
70786
|
+
function buildIndexStreaming(source, parser211, pool3, onRecordIndexed) {
|
|
70780
70787
|
const fileSize = source.byteLength;
|
|
70781
70788
|
let windowBytes = Math.max(pool3, MIN_WINDOW);
|
|
70782
70789
|
for (; ; ) {
|
|
@@ -70822,7 +70829,7 @@ function buildIndexStreaming(source, parser211, pool3) {
|
|
|
70822
70829
|
buffer.rebaseWindow(window2, 0, windowLen, windowStartFile);
|
|
70823
70830
|
++slides;
|
|
70824
70831
|
};
|
|
70825
|
-
const [index, result] = parser211.parseDataBlockStreamed(input2, onRecordBoundary);
|
|
70832
|
+
const [index, result] = parser211.parseDataBlockStreamed(input2, onRecordBoundary, onRecordIndexed);
|
|
70826
70833
|
const stoppedShort = result !== ParseResult.COMPLETE;
|
|
70827
70834
|
const notAtEof = windowStartFile + windowLen < fileSize;
|
|
70828
70835
|
if (stoppedShort && notAtEof) {
|