@gscdump/engine 1.4.0 → 1.4.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.
- package/dist/adapters/duckdb-node.d.mts +7 -0
- package/dist/adapters/duckdb-node.mjs +94 -0
- package/dist/adapters/filesystem.d.mts +1 -1
- package/dist/adapters/filesystem.mjs +1 -1
- package/dist/adapters/hyparquet.d.mts +4 -3
- package/dist/adapters/hyparquet.mjs +7 -3
- package/dist/adapters/node-harness.d.mts +38 -0
- package/dist/adapters/node-harness.mjs +47 -0
- package/dist/adapters/node.d.mts +4 -100
- package/dist/adapters/node.mjs +4 -240
- package/dist/adapters/parquet-attach.d.mts +23 -0
- package/dist/adapters/parquet-attach.mjs +21 -0
- package/dist/adapters/r2-manifest.d.mts +82 -0
- package/dist/adapters/r2-manifest.mjs +364 -0
- package/dist/adapters/r2.d.mts +1 -1
- package/dist/adapters/read-optional.mjs +15 -0
- package/dist/adapters/snapshot-attach.d.mts +38 -0
- package/dist/adapters/snapshot-attach.mjs +85 -0
- package/dist/analysis-types.d.mts +56 -1
- package/dist/analyzer/define.d.mts +48 -0
- package/dist/analyzer/define.mjs +60 -0
- package/dist/analyzer/dispatch.d.mts +17 -0
- package/dist/analyzer/index.d.mts +4 -14
- package/dist/analyzer/index.mjs +4 -112
- package/dist/analyzer/registry.d.mts +33 -0
- package/dist/analyzer/registry.mjs +49 -0
- package/dist/analyzer/types.d.mts +95 -0
- package/dist/analyzer/types.mjs +5 -0
- package/dist/coerce.d.mts +4 -0
- package/dist/compaction.d.mts +14 -0
- package/dist/{_chunks/parquet-plan.mjs → compaction.mjs} +2 -138
- package/dist/contracts.d.mts +1 -2
- package/dist/{_chunks/schema.d.mts → drizzle-schema.d.mts} +2 -34
- package/dist/{_chunks/schema.mjs → drizzle-schema.mjs} +2 -78
- package/dist/{_chunks/snapshot.d.mts → duckdb.d.mts} +1 -14
- package/dist/duckdb.mjs +207 -0
- package/dist/engine.d.mts +4 -0
- package/dist/engine.mjs +385 -0
- package/dist/entities.d.mts +3 -52
- package/dist/entities.mjs +867 -2
- package/dist/errors.d.mts +114 -1
- package/dist/gc.mjs +92 -0
- package/dist/iceberg/append-sink.d.mts +14 -0
- package/dist/iceberg/append-sink.mjs +142 -0
- package/dist/iceberg/catalog.d.mts +71 -0
- package/dist/iceberg/catalog.mjs +109 -0
- package/dist/iceberg/index.d.mts +4 -13
- package/dist/iceberg/index.mjs +3 -244
- package/dist/iceberg/overwrite-writer.d.mts +161 -0
- package/dist/iceberg/overwrite-writer.mjs +102 -0
- package/dist/iceberg/pyiceberg-runtime.mjs +34 -0
- package/dist/iceberg/schema.d.mts +69 -0
- package/dist/{_chunks/schema2.mjs → iceberg/schema.mjs} +3 -2
- package/dist/index.d.mts +14 -190
- package/dist/index.mjs +10 -645
- package/dist/ingest-accumulator.d.mts +1 -1
- package/dist/ingest.d.mts +1 -1
- package/dist/layout.d.mts +31 -0
- package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.bitreader.mjs +88 -0
- package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.blocks.mjs +120 -0
- package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.context.mjs +1805 -0
- package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.contextmap.mjs +49 -0
- package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.dictionary.mjs +984 -0
- package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.huffman.mjs +266 -0
- package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.mjs +340 -0
- package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.prefix.mjs +109 -0
- package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.streams.mjs +21 -0
- package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/brotli.transform.mjs +190 -0
- package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/compressors.mjs +7 -0
- package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/gzip.huffman.mjs +121 -0
- package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/gzip.mjs +176 -0
- package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/index.mjs +7 -0
- package/dist/node_modules/.pnpm/hyparquet-compressors@1.1.1/node_modules/hyparquet-compressors/src/lz4.mjs +52 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/bloom.mjs +93 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/bytewriter.mjs +91 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/column.mjs +186 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/datapage.mjs +113 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/delta.mjs +111 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/dictionary.mjs +99 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/dremel.mjs +116 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/encoding.mjs +51 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/geospatial.mjs +84 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/index.mjs +7 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/indexes.mjs +31 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/metadata.mjs +138 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/node.mjs +8 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/parquet-writer.mjs +139 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/plain.mjs +68 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/schema.mjs +254 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/snappy.mjs +125 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/splitstream.mjs +38 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/thrift.mjs +79 -0
- package/dist/{_chunks/libs/hyparquet-writer.d.mts → node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/types.d.mts} +2 -2
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/unconvert.mjs +247 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/variant.mjs +321 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/wkb.mjs +79 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/write-rows.mjs +122 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/src/write.mjs +5 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/types/bytewriter.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/types/index.d.mts +10 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/types/node.d.mts +3 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/types/parquet-writer.d.mts +2 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/types/schema.d.mts +2 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/types/wkb.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/types/write-rows.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet-writer@0.16.1_patch_hash_7a5e451ac7634d7546ac56bcc5eadacf7715a6241640c2b5a5bc0cfc9763b8ec/node_modules/hyparquet-writer/types/write.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/assemble.mjs +3 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/bloom.mjs +69 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/column.mjs +8 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/constants.mjs +80 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/convert.mjs +3 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/datapage.mjs +6 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/delta.mjs +2 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/encoding.mjs +2 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/filter.mjs +3 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/geoparquet.mjs +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/index.mjs +7 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/indexes.mjs +5 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/metadata.mjs +7 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/node.mjs +3 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/plain.mjs +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/plan.mjs +5 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/query.mjs +3 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/read.mjs +6 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/rowgroup.mjs +7 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/schema.mjs +54 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/snappy.mjs +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/thrift.mjs +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/types.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/utils.mjs +19 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/variant.mjs +3 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/wkb.mjs +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/src/xxhash.mjs +68 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/index.d.mts +7 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/indexes.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/metadata.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/node.d.mts +2 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/query.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/read.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/snappy.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.1/node_modules/hyparquet/types/utils.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/assemble.mjs +144 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/bloom.mjs +124 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/column.mjs +127 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/constants.mjs +75 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/convert.mjs +118 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/datapage.mjs +144 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/delta.mjs +65 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/encoding.mjs +76 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/filter.mjs +98 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/geoparquet.mjs +24 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/index.mjs +7 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/indexes.mjs +16 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/metadata.mjs +235 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/node.mjs +7 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/plain.mjs +78 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/plan.mjs +147 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/query.mjs +3 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/read.mjs +106 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/rowgroup.mjs +154 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/schema.mjs +75 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/snappy.mjs +70 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/thrift.mjs +86 -0
- package/dist/{_chunks/libs/hyparquet.d.mts → node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/types.d.mts} +6 -8
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/utils.mjs +31 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/variant.mjs +225 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/wkb.mjs +94 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/src/xxhash.mjs +68 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/index.d.mts +10 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/indexes.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/metadata.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/node.d.mts +3 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/query.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/read.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/snappy.d.mts +1 -0
- package/dist/node_modules/.pnpm/hyparquet@1.26.2/node_modules/hyparquet/types/utils.d.mts +1 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/avro/avro.metadata.mjs +1 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/avro/avro.read.mjs +4 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/avro/avro.write.mjs +2 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/catalog/file.mjs +1 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/catalog/loadTable.mjs +3 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/catalog/rest.mjs +73 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/create.mjs +67 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/delete.mjs +2 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/fetch.mjs +8 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/index.mjs +13 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/json.mjs +147 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/manifest.mjs +2 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/metadata.mjs +3 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/prune.mjs +4 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/puffin/deletion-vector.mjs +2 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/puffin/puffin.mjs +2 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/puffin/roaring.mjs +1 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/read.mjs +9 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/s3.mjs +3 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/schema.mjs +76 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/sigv4.mjs +2 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/sql/icebergDataSource.mjs +8 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/sql/icebergQuery.mjs +5 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/sql/whereFilter.mjs +1 -0
- package/dist/{_chunks/libs/icebird.d.mts → node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/types.d.mts} +5 -33
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/utils.mjs +8 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/commit.mjs +5 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/conversions.mjs +19 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/delete-file.mjs +3 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/geospatial.mjs +1 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/manifest-list.mjs +2 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/manifest.mjs +3 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/parquet.mjs +5 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/partition.mjs +75 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/rewrite.mjs +10 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/serde.mjs +2 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/snapshot.mjs +5 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/sort.mjs +3 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/stage-deletion-vector.mjs +11 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/stage-position-delete.mjs +8 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/stage.mjs +10 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/stats.mjs +4 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/transform.mjs +60 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/src/write/write.mjs +45 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/catalog/file.d.mts +1 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/catalog/rest.d.mts +1 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/create.d.mts +1 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/fetch.d.mts +1 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/index.d.mts +13 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/manifest.d.mts +1 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/metadata.d.mts +1 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/read.d.mts +2 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/s3.d.mts +1 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/sql/icebergDataSource.d.mts +2 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/sql/icebergQuery.d.mts +2 -0
- package/dist/node_modules/.pnpm/icebird@0.8.15_patch_hash_d1902372376af18885e7c7dce807f1ecab86c2f86a9d1ff65d51e3b63b64b057/node_modules/icebird/types/write/write.d.mts +32 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/ast.d.mts +1 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/backend/dataSource.mjs +1 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/accumulator.mjs +2 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/aggregates.mjs +10 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/execute.mjs +15 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/join.mjs +5 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/scanColumn.mjs +1 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/sort.mjs +5 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/streamingAggregate.mjs +9 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/utils.mjs +1 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/window.mjs +5 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/execute/yield.mjs +17 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/expression/alias.mjs +1 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/expression/binary.mjs +1 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/expression/date.mjs +1 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/expression/evaluate.mjs +15 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/expression/math.mjs +1 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/expression/regexp.mjs +2 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/expression/strings.mjs +3 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/index.d.mts +1 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/index.mjs +9 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/expression.mjs +6 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/extractTables.mjs +1 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/functions.mjs +5 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/joins.mjs +7 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/parse.mjs +10 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/primary.mjs +8 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/state.mjs +2 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/tokenize.mjs +3 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/parse/types.d.mts +1 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/plan/columns.mjs +3 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/plan/plan.mjs +7 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/plan/types.d.mts +1 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/bbox.mjs +2 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/equality.mjs +2 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/operations.mjs +5 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/pointRelations.mjs +2 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/primitives.mjs +2 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/segments.mjs +2 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/spatial.mjs +6 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/spatial/wkt.mjs +1 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/types.d.mts +3 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/validation/aggregates.mjs +3 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/validation/executionErrors.mjs +2 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/validation/functions.mjs +2 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/validation/keywords.mjs +1 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/validation/parseErrors.mjs +2 -0
- package/dist/node_modules/.pnpm/squirreling@0.15.0/node_modules/squirreling/src/validation/tables.mjs +2 -0
- package/dist/parquet-plan.d.mts +15 -0
- package/dist/parquet-plan.mjs +139 -0
- package/dist/parquet-pushdown.mjs +58 -0
- package/dist/period/index.d.mts +52 -1
- package/dist/planner.d.mts +2 -14
- package/dist/planner.mjs +2 -1
- package/dist/profile.d.mts +21 -0
- package/dist/profile.mjs +27 -0
- package/dist/query-dim.d.mts +54 -0
- package/dist/query-dim.mjs +91 -0
- package/dist/report/define.d.mts +8 -0
- package/dist/report/define.mjs +15 -0
- package/dist/report/hash.d.mts +13 -0
- package/dist/report/hash.mjs +29 -0
- package/dist/report/index.d.mts +4 -170
- package/dist/report/index.mjs +3 -55
- package/dist/report/registry.d.mts +18 -0
- package/dist/report/registry.mjs +14 -0
- package/dist/report/types.d.mts +139 -0
- package/dist/resolver/adapter.d.mts +13 -0
- package/dist/resolver/adapter.mjs +27 -0
- package/dist/resolver/canonical-source.d.mts +5 -0
- package/dist/resolver/canonical-source.mjs +14 -0
- package/dist/resolver/compile.d.mts +15 -0
- package/dist/resolver/compile.mjs +396 -0
- package/dist/resolver/datasets.d.mts +16 -0
- package/dist/resolver/datasets.mjs +159 -0
- package/dist/resolver/extras-overlay.d.mts +37 -0
- package/dist/resolver/extras-overlay.mjs +17 -0
- package/dist/resolver/filter-utils.d.mts +10 -0
- package/dist/resolver/filter-utils.mjs +59 -0
- package/dist/resolver/fragments.d.mts +60 -0
- package/dist/resolver/fragments.mjs +206 -0
- package/dist/resolver/index.d.mts +11 -371
- package/dist/resolver/index.mjs +10 -1
- package/dist/resolver/pg-adapter.d.mts +56 -0
- package/dist/resolver/pg-adapter.mjs +110 -0
- package/dist/resolver/run-query.d.mts +172 -0
- package/dist/resolver/run-query.mjs +241 -0
- package/dist/resolver/schema-drift.d.mts +15 -0
- package/dist/resolver/schema-drift.mjs +12 -0
- package/dist/rollups.d.mts +4 -4
- package/dist/rollups.mjs +3 -2
- package/dist/schedule.mjs +100 -0
- package/dist/schema.d.mts +34 -1
- package/dist/schema.mjs +78 -1
- package/dist/sink-node.d.mts +1 -159
- package/dist/sink-node.mjs +1 -133
- package/dist/sink.d.mts +125 -0
- package/dist/sinks/in-memory-sink.d.mts +25 -0
- package/dist/sinks/in-memory-sink.mjs +61 -0
- package/dist/sinks/index.d.mts +2 -0
- package/dist/sinks/index.mjs +2 -0
- package/dist/snapshot.d.mts +14 -0
- package/dist/source/attached-table.d.mts +45 -0
- package/dist/source/attached-table.mjs +55 -0
- package/dist/source/create-sql-query-source.d.mts +24 -0
- package/dist/source/create-sql-query-source.mjs +28 -0
- package/dist/source/index.d.mts +6 -66
- package/dist/source/index.mjs +9 -82
- package/dist/source/source-types.d.mts +49 -0
- package/dist/{_chunks/storage.d.mts → storage.d.mts} +4 -14
- package/dist/sync-config.d.mts +36 -0
- package/dist/sync-config.mjs +98 -0
- package/dist/vendor/hysnappy-purejs.mjs +12 -1
- package/package.json +4 -4
- package/dist/_chunks/analysis-types.d.mts +0 -57
- package/dist/_chunks/contracts.d.mts +0 -1
- package/dist/_chunks/engine.mjs +0 -731
- package/dist/_chunks/entities.mjs +0 -967
- package/dist/_chunks/errors.d.mts +0 -115
- package/dist/_chunks/index.d.mts +0 -53
- package/dist/_chunks/libs/hyparquet-compressors.mjs +0 -2796
- package/dist/_chunks/libs/hyparquet-writer.mjs +0 -2524
- package/dist/_chunks/libs/hyparquet.mjs +0 -2596
- package/dist/_chunks/libs/icebird.mjs +0 -564
- package/dist/_chunks/registry.d.mts +0 -213
- package/dist/_chunks/resolver.mjs +0 -1220
- package/dist/_chunks/sink.d.mts +0 -257
- /package/dist/{_chunks → analyzer}/dispatch.mjs +0 -0
- /package/dist/{_chunks/coerce.mjs → coerce.mjs} +0 -0
- /package/dist/{_chunks/layout.mjs → layout.mjs} +0 -0
- /package/dist/{_chunks/manifest-store-utils.mjs → manifest-store-utils.mjs} +0 -0
- /package/dist/{_chunks/libs/fzstd.mjs → node_modules/.pnpm/fzstd@0.1.1/node_modules/fzstd/esm/index.mjs} +0 -0
- /package/dist/{_chunks → resolver}/types.d.mts +0 -0
- /package/dist/{_chunks/schedule.d.mts → schedule.d.mts} +0 -0
package/dist/report/index.d.mts
CHANGED
|
@@ -1,171 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
type ReportSeverity = 'info' | 'low' | 'medium' | 'high';
|
|
6
|
-
type ReportEntityKind = 'page' | 'query';
|
|
7
|
-
type ReportActionKind = 'analyzer' | 'cli' | 'indexing' | 'fix';
|
|
8
|
-
type ReportCoverage = 'full' | 'partial';
|
|
9
|
-
/** Citty-shaped arg spec, kept structural so engine doesn't pull citty in. */
|
|
10
|
-
interface ReportArgDef {
|
|
11
|
-
type: 'string' | 'boolean' | 'number';
|
|
12
|
-
description?: string;
|
|
13
|
-
default?: string | boolean | number;
|
|
14
|
-
required?: boolean;
|
|
15
|
-
alias?: string;
|
|
16
|
-
}
|
|
17
|
-
type ReportArgsSpec = Record<string, ReportArgDef>;
|
|
18
|
-
interface ReportEntity {
|
|
19
|
-
kind: ReportEntityKind;
|
|
20
|
-
value: string;
|
|
21
|
-
}
|
|
22
|
-
interface ReportFindingDelta {
|
|
23
|
-
metric: string;
|
|
24
|
-
prior: number;
|
|
25
|
-
current: number;
|
|
26
|
-
pct: number;
|
|
27
|
-
}
|
|
28
|
-
interface ReportFinding {
|
|
29
|
-
entity: ReportEntity;
|
|
30
|
-
metrics: Record<string, number>;
|
|
31
|
-
delta?: ReportFindingDelta;
|
|
32
|
-
why?: string;
|
|
33
|
-
}
|
|
34
|
-
interface ReportSectionSummary {
|
|
35
|
-
delta?: number;
|
|
36
|
-
direction?: 'up' | 'down' | 'flat';
|
|
37
|
-
magnitudeLabel?: string;
|
|
38
|
-
}
|
|
39
|
-
interface ReportAction {
|
|
40
|
-
kind: ReportActionKind;
|
|
41
|
-
target?: ReportEntity;
|
|
42
|
-
params?: Record<string, unknown>;
|
|
43
|
-
rationale: string;
|
|
44
|
-
/** Human hint, generated; never authoritative. */
|
|
45
|
-
cliHint?: string;
|
|
46
|
-
}
|
|
47
|
-
interface ReportSectionArtifact {
|
|
48
|
-
analyzer: string;
|
|
49
|
-
params: AnalysisParams;
|
|
50
|
-
}
|
|
51
|
-
interface ReportSection {
|
|
52
|
-
id: string;
|
|
53
|
-
title: string;
|
|
54
|
-
severity: ReportSeverity;
|
|
55
|
-
summary: ReportSectionSummary;
|
|
56
|
-
/** Bounded; sorted by stable composite key. */
|
|
57
|
-
findings: ReportFinding[];
|
|
58
|
-
truncated?: {
|
|
59
|
-
kept: number;
|
|
60
|
-
total: number;
|
|
61
|
-
};
|
|
62
|
-
coverage: ReportCoverage;
|
|
63
|
-
actions: ReportAction[];
|
|
64
|
-
artifact?: ReportSectionArtifact;
|
|
65
|
-
}
|
|
66
|
-
interface ReportPlanStep {
|
|
67
|
-
/** Stable identifier within the report (e.g. `movers`, `decay-current`). */
|
|
68
|
-
key: string;
|
|
69
|
-
/** Analyzer id (or future: nested report id). Open string by design. */
|
|
70
|
-
type: string;
|
|
71
|
-
/** Analyzer params; report-runtime applies `type` from the step. */
|
|
72
|
-
params: Omit<AnalysisParams, 'type'>;
|
|
73
|
-
/** Required steps fail the report; optional steps degrade `coverage`. */
|
|
74
|
-
required?: boolean;
|
|
75
|
-
}
|
|
76
|
-
interface ReportStepStateMeta {
|
|
77
|
-
key: string;
|
|
78
|
-
type: string;
|
|
79
|
-
status: ReportStepStatus;
|
|
80
|
-
error?: string;
|
|
81
|
-
}
|
|
82
|
-
interface ReportResultMeta {
|
|
83
|
-
durationMs: number;
|
|
84
|
-
rowsScanned: number;
|
|
85
|
-
degraded: boolean;
|
|
86
|
-
steps: ReportStepStateMeta[];
|
|
87
|
-
}
|
|
88
|
-
interface ReportResult {
|
|
89
|
-
id: string;
|
|
90
|
-
site: string;
|
|
91
|
-
/** sha256(id|site|window|paramsCanonical|registryVersion). Stable. */
|
|
92
|
-
inputHash: string;
|
|
93
|
-
/** ISO 8601. NOT included in inputHash. */
|
|
94
|
-
generatedAt: string;
|
|
95
|
-
window: ResolvedWindow;
|
|
96
|
-
sections: ReportSection[];
|
|
97
|
-
meta: ReportResultMeta;
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Loose params bag. Concrete reports refine this with their own interface.
|
|
101
|
-
* Constraint is `object` so report authors can use plain interfaces without
|
|
102
|
-
* needing an index signature.
|
|
103
|
-
*/
|
|
104
|
-
type ReportParams = object;
|
|
105
|
-
interface ReportContext<P extends ReportParams = ReportParams> {
|
|
106
|
-
/** Resolved site URL (e.g. `https://example.com/`). */
|
|
107
|
-
site: string;
|
|
108
|
-
/** Already-resolved window — runtime calls `resolveWindow` once before plan(). */
|
|
109
|
-
window: ResolvedWindow;
|
|
110
|
-
params: P;
|
|
111
|
-
/** Hash of registry/code version. Bumped via package version. */
|
|
112
|
-
registryVersion: string;
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* Reduce step results → sections. Runtime injects `meta` post-reduce.
|
|
116
|
-
*/
|
|
117
|
-
type ReportReducer<P extends ReportParams = ReportParams> = (results: Record<string, AnalysisResult>, ctx: ReportContext<P>) => Omit<ReportResult, 'meta' | 'inputHash' | 'generatedAt' | 'site' | 'window' | 'id'> & {
|
|
118
|
-
sections: ReportSection[];
|
|
119
|
-
};
|
|
120
|
-
interface DefinedReport<P extends ReportParams = ReportParams> {
|
|
121
|
-
id: string;
|
|
122
|
-
description: string;
|
|
123
|
-
defaultPeriod: WindowPreset;
|
|
124
|
-
defaultComparison: ComparisonMode;
|
|
125
|
-
/** Single source of truth for CLI flags + MCP input schema. */
|
|
126
|
-
argsSpec: ReportArgsSpec;
|
|
127
|
-
plan: (params: P, window: ResolvedWindow) => readonly ReportPlanStep[];
|
|
128
|
-
reduce: ReportReducer<P>;
|
|
129
|
-
}
|
|
130
|
-
interface DefineReportOptions<P extends ReportParams = ReportParams> {
|
|
131
|
-
id: string;
|
|
132
|
-
description: string;
|
|
133
|
-
defaultPeriod: WindowPreset;
|
|
134
|
-
defaultComparison: ComparisonMode;
|
|
135
|
-
argsSpec?: ReportArgsSpec;
|
|
136
|
-
plan: (params: P, window: ResolvedWindow) => readonly ReportPlanStep[];
|
|
137
|
-
reduce: ReportReducer<P>;
|
|
138
|
-
}
|
|
139
|
-
/**
|
|
140
|
-
* Mirror of `defineAnalyzer`. Pure factory: validates required fields,
|
|
141
|
-
* fills default `argsSpec`. No runtime behaviour — `runReport` consumes
|
|
142
|
-
* the returned object.
|
|
143
|
-
*/
|
|
144
|
-
declare function defineReport<P extends ReportParams = ReportParams>(opts: DefineReportOptions<P>): DefinedReport<P>;
|
|
145
|
-
interface InputHashSeeds {
|
|
146
|
-
id: string;
|
|
147
|
-
site: string;
|
|
148
|
-
window: ResolvedWindow;
|
|
149
|
-
params: ReportParams;
|
|
150
|
-
registryVersion: string;
|
|
151
|
-
}
|
|
152
|
-
/** Stable JSON: sorts object keys at every level. Arrays preserve order. */
|
|
153
|
-
declare function canonicalize(value: unknown): unknown;
|
|
154
|
-
declare function computeInputHash(seeds: InputHashSeeds): Promise<string>;
|
|
155
|
-
interface ReportRegistryInit {
|
|
156
|
-
reports?: readonly DefinedReport<ReportParams>[];
|
|
157
|
-
/**
|
|
158
|
-
* Opaque version string. Used as the `registryVersion` input to
|
|
159
|
-
* `inputHash` so cached results invalidate when report code ships.
|
|
160
|
-
* Caller is expected to feed in their package version.
|
|
161
|
-
*/
|
|
162
|
-
version?: string;
|
|
163
|
-
}
|
|
164
|
-
interface ReportRegistry {
|
|
165
|
-
version: string;
|
|
166
|
-
listReportIds: () => readonly string[];
|
|
167
|
-
getReport: (id: string) => DefinedReport<ReportParams> | undefined;
|
|
168
|
-
listReports: () => readonly DefinedReport<ReportParams>[];
|
|
169
|
-
}
|
|
170
|
-
declare function createReportRegistry(init?: ReportRegistryInit): ReportRegistry;
|
|
1
|
+
import { DefineReportOptions, DefinedReport, ReportAction, ReportActionKind, ReportArgDef, ReportArgsSpec, ReportContext, ReportCoverage, ReportEntity, ReportEntityKind, ReportFinding, ReportFindingDelta, ReportParams, ReportPlanStep, ReportReducer, ReportResult, ReportResultMeta, ReportSection, ReportSectionArtifact, ReportSectionSummary, ReportSeverity, ReportStepStateMeta, ReportStepStatus } from "./types.mjs";
|
|
2
|
+
import { defineReport } from "./define.mjs";
|
|
3
|
+
import { InputHashSeeds, canonicalize, computeInputHash } from "./hash.mjs";
|
|
4
|
+
import { ReportRegistry, ReportRegistryInit, createReportRegistry } from "./registry.mjs";
|
|
171
5
|
export { type DefineReportOptions, type DefinedReport, type InputHashSeeds, type ReportAction, type ReportActionKind, type ReportArgDef, type ReportArgsSpec, type ReportContext, type ReportCoverage, type ReportEntity, type ReportEntityKind, type ReportFinding, type ReportFindingDelta, type ReportParams, type ReportPlanStep, type ReportReducer, type ReportRegistry, type ReportRegistryInit, type ReportResult, type ReportResultMeta, type ReportSection, type ReportSectionArtifact, type ReportSectionSummary, type ReportSeverity, type ReportStepStateMeta, type ReportStepStatus, canonicalize, computeInputHash, createReportRegistry, defineReport };
|
package/dist/report/index.mjs
CHANGED
|
@@ -1,56 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
if (!opts.reduce) throw new Error(`defineReport(${opts.id}): reduce is required`);
|
|
5
|
-
return {
|
|
6
|
-
id: opts.id,
|
|
7
|
-
description: opts.description,
|
|
8
|
-
defaultPeriod: opts.defaultPeriod,
|
|
9
|
-
defaultComparison: opts.defaultComparison,
|
|
10
|
-
argsSpec: opts.argsSpec ?? {},
|
|
11
|
-
plan: opts.plan,
|
|
12
|
-
reduce: opts.reduce
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
function canonicalize(value) {
|
|
16
|
-
if (value == null || typeof value !== "object") return value;
|
|
17
|
-
if (Array.isArray(value)) return value.map(canonicalize);
|
|
18
|
-
const out = {};
|
|
19
|
-
for (const k of Object.keys(value).sort()) out[k] = canonicalize(value[k]);
|
|
20
|
-
return out;
|
|
21
|
-
}
|
|
22
|
-
async function computeInputHash(seeds) {
|
|
23
|
-
const payload = JSON.stringify(canonicalize({
|
|
24
|
-
id: seeds.id,
|
|
25
|
-
site: seeds.site,
|
|
26
|
-
window: {
|
|
27
|
-
start: seeds.window.start,
|
|
28
|
-
end: seeds.window.end,
|
|
29
|
-
comparison: seeds.window.comparison ?? null
|
|
30
|
-
},
|
|
31
|
-
params: seeds.params,
|
|
32
|
-
registryVersion: seeds.registryVersion
|
|
33
|
-
}));
|
|
34
|
-
const bytes = new TextEncoder().encode(payload);
|
|
35
|
-
return bufferToHex(await globalThis.crypto.subtle.digest("SHA-256", bytes));
|
|
36
|
-
}
|
|
37
|
-
function bufferToHex(buffer) {
|
|
38
|
-
const bytes = new Uint8Array(buffer);
|
|
39
|
-
let out = "";
|
|
40
|
-
for (let i = 0; i < bytes.length; i++) out += bytes[i].toString(16).padStart(2, "0");
|
|
41
|
-
return out;
|
|
42
|
-
}
|
|
43
|
-
function createReportRegistry(init = {}) {
|
|
44
|
-
const byId = /* @__PURE__ */ new Map();
|
|
45
|
-
for (const r of init.reports ?? []) {
|
|
46
|
-
if (byId.has(r.id)) throw new Error(`createReportRegistry: duplicate report id ${r.id}`);
|
|
47
|
-
byId.set(r.id, r);
|
|
48
|
-
}
|
|
49
|
-
return {
|
|
50
|
-
version: init.version ?? "0",
|
|
51
|
-
listReportIds: () => [...byId.keys()].sort(),
|
|
52
|
-
getReport: (id) => byId.get(id),
|
|
53
|
-
listReports: () => [...byId.values()]
|
|
54
|
-
};
|
|
55
|
-
}
|
|
1
|
+
import { defineReport } from "./define.mjs";
|
|
2
|
+
import { canonicalize, computeInputHash } from "./hash.mjs";
|
|
3
|
+
import { createReportRegistry } from "./registry.mjs";
|
|
56
4
|
export { canonicalize, computeInputHash, createReportRegistry, defineReport };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DefinedReport, ReportParams } from "./types.mjs";
|
|
2
|
+
interface ReportRegistryInit {
|
|
3
|
+
reports?: readonly DefinedReport<ReportParams>[];
|
|
4
|
+
/**
|
|
5
|
+
* Opaque version string. Used as the `registryVersion` input to
|
|
6
|
+
* `inputHash` so cached results invalidate when report code ships.
|
|
7
|
+
* Caller is expected to feed in their package version.
|
|
8
|
+
*/
|
|
9
|
+
version?: string;
|
|
10
|
+
}
|
|
11
|
+
interface ReportRegistry {
|
|
12
|
+
version: string;
|
|
13
|
+
listReportIds: () => readonly string[];
|
|
14
|
+
getReport: (id: string) => DefinedReport<ReportParams> | undefined;
|
|
15
|
+
listReports: () => readonly DefinedReport<ReportParams>[];
|
|
16
|
+
}
|
|
17
|
+
declare function createReportRegistry(init?: ReportRegistryInit): ReportRegistry;
|
|
18
|
+
export { ReportRegistry, ReportRegistryInit, createReportRegistry };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
function createReportRegistry(init = {}) {
|
|
2
|
+
const byId = /* @__PURE__ */ new Map();
|
|
3
|
+
for (const r of init.reports ?? []) {
|
|
4
|
+
if (byId.has(r.id)) throw new Error(`createReportRegistry: duplicate report id ${r.id}`);
|
|
5
|
+
byId.set(r.id, r);
|
|
6
|
+
}
|
|
7
|
+
return {
|
|
8
|
+
version: init.version ?? "0",
|
|
9
|
+
listReportIds: () => [...byId.keys()].sort(),
|
|
10
|
+
getReport: (id) => byId.get(id),
|
|
11
|
+
listReports: () => [...byId.values()]
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export { createReportRegistry };
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { AnalysisParams, AnalysisResult } from "../analysis-types.mjs";
|
|
2
|
+
import { ComparisonMode, ResolvedWindow, WindowPreset } from "../period/index.mjs";
|
|
3
|
+
/** Status vocabulary mirrors `ActionPrioritySourceStatus`. */
|
|
4
|
+
type ReportStepStatus = 'pending' | 'running' | 'done' | 'skipped' | 'error';
|
|
5
|
+
type ReportSeverity = 'info' | 'low' | 'medium' | 'high';
|
|
6
|
+
type ReportEntityKind = 'page' | 'query';
|
|
7
|
+
type ReportActionKind = 'analyzer' | 'cli' | 'indexing' | 'fix';
|
|
8
|
+
type ReportCoverage = 'full' | 'partial';
|
|
9
|
+
/** Citty-shaped arg spec, kept structural so engine doesn't pull citty in. */
|
|
10
|
+
interface ReportArgDef {
|
|
11
|
+
type: 'string' | 'boolean' | 'number';
|
|
12
|
+
description?: string;
|
|
13
|
+
default?: string | boolean | number;
|
|
14
|
+
required?: boolean;
|
|
15
|
+
alias?: string;
|
|
16
|
+
}
|
|
17
|
+
type ReportArgsSpec = Record<string, ReportArgDef>;
|
|
18
|
+
interface ReportEntity {
|
|
19
|
+
kind: ReportEntityKind;
|
|
20
|
+
value: string;
|
|
21
|
+
}
|
|
22
|
+
interface ReportFindingDelta {
|
|
23
|
+
metric: string;
|
|
24
|
+
prior: number;
|
|
25
|
+
current: number;
|
|
26
|
+
pct: number;
|
|
27
|
+
}
|
|
28
|
+
interface ReportFinding {
|
|
29
|
+
entity: ReportEntity;
|
|
30
|
+
metrics: Record<string, number>;
|
|
31
|
+
delta?: ReportFindingDelta;
|
|
32
|
+
why?: string;
|
|
33
|
+
}
|
|
34
|
+
interface ReportSectionSummary {
|
|
35
|
+
delta?: number;
|
|
36
|
+
direction?: 'up' | 'down' | 'flat';
|
|
37
|
+
magnitudeLabel?: string;
|
|
38
|
+
}
|
|
39
|
+
interface ReportAction {
|
|
40
|
+
kind: ReportActionKind;
|
|
41
|
+
target?: ReportEntity;
|
|
42
|
+
params?: Record<string, unknown>;
|
|
43
|
+
rationale: string;
|
|
44
|
+
/** Human hint, generated; never authoritative. */
|
|
45
|
+
cliHint?: string;
|
|
46
|
+
}
|
|
47
|
+
interface ReportSectionArtifact {
|
|
48
|
+
analyzer: string;
|
|
49
|
+
params: AnalysisParams;
|
|
50
|
+
}
|
|
51
|
+
interface ReportSection {
|
|
52
|
+
id: string;
|
|
53
|
+
title: string;
|
|
54
|
+
severity: ReportSeverity;
|
|
55
|
+
summary: ReportSectionSummary;
|
|
56
|
+
/** Bounded; sorted by stable composite key. */
|
|
57
|
+
findings: ReportFinding[];
|
|
58
|
+
truncated?: {
|
|
59
|
+
kept: number;
|
|
60
|
+
total: number;
|
|
61
|
+
};
|
|
62
|
+
coverage: ReportCoverage;
|
|
63
|
+
actions: ReportAction[];
|
|
64
|
+
artifact?: ReportSectionArtifact;
|
|
65
|
+
}
|
|
66
|
+
interface ReportPlanStep {
|
|
67
|
+
/** Stable identifier within the report (e.g. `movers`, `decay-current`). */
|
|
68
|
+
key: string;
|
|
69
|
+
/** Analyzer id (or future: nested report id). Open string by design. */
|
|
70
|
+
type: string;
|
|
71
|
+
/** Analyzer params; report-runtime applies `type` from the step. */
|
|
72
|
+
params: Omit<AnalysisParams, 'type'>;
|
|
73
|
+
/** Required steps fail the report; optional steps degrade `coverage`. */
|
|
74
|
+
required?: boolean;
|
|
75
|
+
}
|
|
76
|
+
interface ReportStepStateMeta {
|
|
77
|
+
key: string;
|
|
78
|
+
type: string;
|
|
79
|
+
status: ReportStepStatus;
|
|
80
|
+
error?: string;
|
|
81
|
+
}
|
|
82
|
+
interface ReportResultMeta {
|
|
83
|
+
durationMs: number;
|
|
84
|
+
rowsScanned: number;
|
|
85
|
+
degraded: boolean;
|
|
86
|
+
steps: ReportStepStateMeta[];
|
|
87
|
+
}
|
|
88
|
+
interface ReportResult {
|
|
89
|
+
id: string;
|
|
90
|
+
site: string;
|
|
91
|
+
/** sha256(id|site|window|paramsCanonical|registryVersion). Stable. */
|
|
92
|
+
inputHash: string;
|
|
93
|
+
/** ISO 8601. NOT included in inputHash. */
|
|
94
|
+
generatedAt: string;
|
|
95
|
+
window: ResolvedWindow;
|
|
96
|
+
sections: ReportSection[];
|
|
97
|
+
meta: ReportResultMeta;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Loose params bag. Concrete reports refine this with their own interface.
|
|
101
|
+
* Constraint is `object` so report authors can use plain interfaces without
|
|
102
|
+
* needing an index signature.
|
|
103
|
+
*/
|
|
104
|
+
type ReportParams = object;
|
|
105
|
+
interface ReportContext<P extends ReportParams = ReportParams> {
|
|
106
|
+
/** Resolved site URL (e.g. `https://example.com/`). */
|
|
107
|
+
site: string;
|
|
108
|
+
/** Already-resolved window — runtime calls `resolveWindow` once before plan(). */
|
|
109
|
+
window: ResolvedWindow;
|
|
110
|
+
params: P;
|
|
111
|
+
/** Hash of registry/code version. Bumped via package version. */
|
|
112
|
+
registryVersion: string;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Reduce step results → sections. Runtime injects `meta` post-reduce.
|
|
116
|
+
*/
|
|
117
|
+
type ReportReducer<P extends ReportParams = ReportParams> = (results: Record<string, AnalysisResult>, ctx: ReportContext<P>) => Omit<ReportResult, 'meta' | 'inputHash' | 'generatedAt' | 'site' | 'window' | 'id'> & {
|
|
118
|
+
sections: ReportSection[];
|
|
119
|
+
};
|
|
120
|
+
interface DefinedReport<P extends ReportParams = ReportParams> {
|
|
121
|
+
id: string;
|
|
122
|
+
description: string;
|
|
123
|
+
defaultPeriod: WindowPreset;
|
|
124
|
+
defaultComparison: ComparisonMode;
|
|
125
|
+
/** Single source of truth for CLI flags + MCP input schema. */
|
|
126
|
+
argsSpec: ReportArgsSpec;
|
|
127
|
+
plan: (params: P, window: ResolvedWindow) => readonly ReportPlanStep[];
|
|
128
|
+
reduce: ReportReducer<P>;
|
|
129
|
+
}
|
|
130
|
+
interface DefineReportOptions<P extends ReportParams = ReportParams> {
|
|
131
|
+
id: string;
|
|
132
|
+
description: string;
|
|
133
|
+
defaultPeriod: WindowPreset;
|
|
134
|
+
defaultComparison: ComparisonMode;
|
|
135
|
+
argsSpec?: ReportArgsSpec;
|
|
136
|
+
plan: (params: P, window: ResolvedWindow) => readonly ReportPlanStep[];
|
|
137
|
+
reduce: ReportReducer<P>;
|
|
138
|
+
}
|
|
139
|
+
export { DefineReportOptions, DefinedReport, ReportAction, ReportActionKind, ReportArgDef, ReportArgsSpec, ReportContext, ReportCoverage, ReportEntity, ReportEntityKind, ReportFinding, ReportFindingDelta, ReportParams, ReportPlanStep, ReportReducer, ReportResult, ReportResultMeta, ReportSection, ReportSectionArtifact, ReportSectionSummary, ReportSeverity, ReportStepStateMeta, ReportStepStatus };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ResolverAdapter } from "./types.mjs";
|
|
2
|
+
import { SqlFragmentsConfig } from "./fragments.mjs";
|
|
3
|
+
import { PlannerCapabilities } from "gscdump/query/plan";
|
|
4
|
+
import { SQL } from "drizzle-orm";
|
|
5
|
+
interface CreateResolverAdapterConfig<TableKey extends string> extends SqlFragmentsConfig<TableKey> {
|
|
6
|
+
compile: (query: SQL) => {
|
|
7
|
+
sql: string;
|
|
8
|
+
params: unknown[];
|
|
9
|
+
};
|
|
10
|
+
capabilities: PlannerCapabilities;
|
|
11
|
+
}
|
|
12
|
+
declare function createResolverAdapter<TableKey extends string>(config: CreateResolverAdapterConfig<TableKey>): ResolverAdapter<TableKey>;
|
|
13
|
+
export { CreateResolverAdapterConfig, createResolverAdapter };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { createSqlFragments } from "./fragments.mjs";
|
|
2
|
+
function createResolverAdapter(config) {
|
|
3
|
+
const runtime = createSqlFragments(config);
|
|
4
|
+
return {
|
|
5
|
+
METRIC_NAMES: runtime.METRIC_NAMES,
|
|
6
|
+
capabilities: config.capabilities,
|
|
7
|
+
schema: config.schema,
|
|
8
|
+
tableKeyForDataset: runtime.tableKeyForDataset,
|
|
9
|
+
inferTable: runtime.inferTable,
|
|
10
|
+
dimColumn: runtime.dimColumn,
|
|
11
|
+
isMetricDimension: runtime.isMetricDimension,
|
|
12
|
+
tableRef: runtime.tableRef,
|
|
13
|
+
fromSql: runtime.fromSql,
|
|
14
|
+
dateColRef: runtime.dateColRef,
|
|
15
|
+
urlToPathExpr: runtime.urlToPathExpr,
|
|
16
|
+
siteIdColRef: runtime.siteIdColRef,
|
|
17
|
+
searchTypeColRef: runtime.searchTypeColRef,
|
|
18
|
+
dimExprSql: runtime.dimExprSql,
|
|
19
|
+
metricSql: runtime.metricSql,
|
|
20
|
+
dimensionPredicates: runtime.dimensionPredicates,
|
|
21
|
+
havingPredicates: runtime.havingPredicates,
|
|
22
|
+
prefilterPredicates: runtime.prefilterPredicates,
|
|
23
|
+
topLevelPredicate: runtime.topLevelPredicate,
|
|
24
|
+
compile: config.compile
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export { createResolverAdapter };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { PlannerCapabilities } from "gscdump/query/plan";
|
|
2
|
+
import { BuilderState } from "gscdump/query";
|
|
3
|
+
/** State-level convenience: build the plan then gate. */
|
|
4
|
+
declare function canonicalRollupCovers(state: BuilderState, capabilities: PlannerCapabilities): boolean;
|
|
5
|
+
export { canonicalRollupCovers };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { buildLogicalPlan } from "gscdump/query/plan";
|
|
2
|
+
const ALLOWED_FILTER_DIMS = /* @__PURE__ */ new Set(["date", "queryCanonical"]);
|
|
3
|
+
function planCoveredByCanonicalRollup(plan) {
|
|
4
|
+
if (plan.dataset !== "queries") return false;
|
|
5
|
+
if (plan.groupByDimensions.length !== 1 || plan.groupByDimensions[0] !== "queryCanonical") return false;
|
|
6
|
+
if (!plan.dimensionFilters.every((f) => ALLOWED_FILTER_DIMS.has(f.dimension))) return false;
|
|
7
|
+
if (plan.prefilters.length > 0) return false;
|
|
8
|
+
if (plan.specialFilters.topLevel) return false;
|
|
9
|
+
return true;
|
|
10
|
+
}
|
|
11
|
+
function canonicalRollupCovers(state, capabilities) {
|
|
12
|
+
return planCoveredByCanonicalRollup(buildLogicalPlan(state, capabilities));
|
|
13
|
+
}
|
|
14
|
+
export { canonicalRollupCovers };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ComparisonFilter, ExtraQuery, ResolvedComparisonSQL, ResolvedSQL, ResolvedSQLOptimized, ResolverOptions } from "./types.mjs";
|
|
2
|
+
import { BuilderState } from "gscdump/query";
|
|
3
|
+
declare function resolveToSQLOptimized<TK extends string>(state: BuilderState, options: ResolverOptions<TK>): ResolvedSQLOptimized;
|
|
4
|
+
declare function resolveToSQL<TK extends string>(state: BuilderState, options: ResolverOptions<TK>): ResolvedSQL;
|
|
5
|
+
declare function buildTotalsSql<TK extends string>(state: BuilderState, options: ResolverOptions<TK>): {
|
|
6
|
+
sql: string;
|
|
7
|
+
params: unknown[];
|
|
8
|
+
};
|
|
9
|
+
declare function resolveComparisonSQL<TK extends string>(current: BuilderState, previous: BuilderState, options: ResolverOptions<TK>, comparisonFilter?: ComparisonFilter): ResolvedComparisonSQL;
|
|
10
|
+
declare function buildExtrasQueries<TK extends string>(state: BuilderState, options: ResolverOptions<TK>): ExtraQuery[];
|
|
11
|
+
declare function mergeExtras(rows: Record<string, unknown>[], extrasResults: {
|
|
12
|
+
key: string;
|
|
13
|
+
results: Record<string, unknown>[];
|
|
14
|
+
}[]): Record<string, unknown>[];
|
|
15
|
+
export { buildExtrasQueries, buildTotalsSql, mergeExtras, resolveComparisonSQL, resolveToSQL, resolveToSQLOptimized };
|