@lincoln504/pi-research 1.7.17 → 1.7.19
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 +8 -3
- package/agent-skill/pi-research/SKILL.md +1 -1
- package/agent-skill/pi-research/scripts/run.mjs +122 -34
- package/dist/cli-bin.mjs +39 -7
- package/dist/host-resolve-hook.mjs +37 -0
- package/dist/host-roots.mjs +122 -0
- package/dist/thread-worker.mjs +8520 -59
- package/docs/ARCHITECTURE.md +3 -2
- package/docs/CHANGELOG.md +35 -0
- package/docs/THIRD-PARTY-NOTICES.md +16 -2
- package/node_modules/@lancedb/lancedb/AGENTS.md +13 -0
- package/node_modules/@lancedb/lancedb/CONTRIBUTING.md +78 -0
- package/node_modules/@lancedb/lancedb/NODEJS_THIRD_PARTY_LICENSES.md +668 -0
- package/node_modules/@lancedb/lancedb/README.md +37 -0
- package/node_modules/@lancedb/lancedb/RUST_THIRD_PARTY_LICENSES.html +14607 -0
- package/node_modules/@lancedb/lancedb/dist/arrow.d.ts +312 -0
- package/node_modules/@lancedb/lancedb/dist/arrow.js +1242 -0
- package/node_modules/@lancedb/lancedb/dist/arrow_type.d.ts +9 -0
- package/node_modules/@lancedb/lancedb/dist/arrow_type.js +29 -0
- package/node_modules/@lancedb/lancedb/dist/blob.d.ts +126 -0
- package/node_modules/@lancedb/lancedb/dist/blob.js +219 -0
- package/node_modules/@lancedb/lancedb/dist/catalog.d.ts +46 -0
- package/node_modules/@lancedb/lancedb/dist/catalog.js +63 -0
- package/node_modules/@lancedb/lancedb/dist/connection.d.ts +577 -0
- package/node_modules/@lancedb/lancedb/dist/connection.js +316 -0
- package/node_modules/@lancedb/lancedb/dist/embedding/embedding_function.d.ts +103 -0
- package/node_modules/@lancedb/lancedb/dist/embedding/embedding_function.js +192 -0
- package/node_modules/@lancedb/lancedb/dist/embedding/index.d.ts +37 -0
- package/node_modules/@lancedb/lancedb/dist/embedding/index.js +108 -0
- package/node_modules/@lancedb/lancedb/dist/embedding/openai.d.ts +16 -0
- package/node_modules/@lancedb/lancedb/dist/embedding/openai.js +81 -0
- package/node_modules/@lancedb/lancedb/dist/embedding/registry.d.ts +94 -0
- package/node_modules/@lancedb/lancedb/dist/embedding/registry.js +221 -0
- package/node_modules/@lancedb/lancedb/dist/embedding/transformers.d.ts +36 -0
- package/node_modules/@lancedb/lancedb/dist/embedding/transformers.js +110 -0
- package/node_modules/@lancedb/lancedb/dist/header.d.ts +162 -0
- package/node_modules/@lancedb/lancedb/dist/header.js +217 -0
- package/node_modules/@lancedb/lancedb/dist/index.d.ts +251 -0
- package/node_modules/@lancedb/lancedb/dist/index.js +187 -0
- package/node_modules/@lancedb/lancedb/dist/indices.d.ts +721 -0
- package/node_modules/@lancedb/lancedb/dist/indices.js +166 -0
- package/node_modules/@lancedb/lancedb/dist/job.d.ts +93 -0
- package/node_modules/@lancedb/lancedb/dist/job.js +163 -0
- package/node_modules/@lancedb/lancedb/dist/materialized_view.d.ts +74 -0
- package/node_modules/@lancedb/lancedb/dist/materialized_view.js +150 -0
- package/node_modules/@lancedb/lancedb/dist/merge.d.ts +104 -0
- package/node_modules/@lancedb/lancedb/dist/merge.js +120 -0
- package/node_modules/@lancedb/lancedb/dist/native.d.ts +1466 -0
- package/node_modules/@lancedb/lancedb/dist/native.js +691 -0
- package/node_modules/@lancedb/lancedb/dist/oauth.d.ts +271 -0
- package/node_modules/@lancedb/lancedb/dist/oauth.js +111 -0
- package/node_modules/@lancedb/lancedb/dist/otel.d.ts +26 -0
- package/node_modules/@lancedb/lancedb/dist/otel.js +114 -0
- package/node_modules/@lancedb/lancedb/dist/permutation.d.ts +143 -0
- package/node_modules/@lancedb/lancedb/dist/permutation.js +184 -0
- package/node_modules/@lancedb/lancedb/dist/query.d.ts +663 -0
- package/node_modules/@lancedb/lancedb/dist/query.js +966 -0
- package/node_modules/@lancedb/lancedb/dist/rerankers/index.d.ts +5 -0
- package/node_modules/@lancedb/lancedb/dist/rerankers/index.js +19 -0
- package/node_modules/@lancedb/lancedb/dist/rerankers/rrf.d.ts +14 -0
- package/node_modules/@lancedb/lancedb/dist/rerankers/rrf.js +28 -0
- package/node_modules/@lancedb/lancedb/dist/sanitize.d.ts +32 -0
- package/node_modules/@lancedb/lancedb/dist/sanitize.js +548 -0
- package/node_modules/@lancedb/lancedb/dist/scannable.d.ts +92 -0
- package/node_modules/@lancedb/lancedb/dist/scannable.js +200 -0
- package/node_modules/@lancedb/lancedb/dist/schema.d.ts +16 -0
- package/node_modules/@lancedb/lancedb/dist/schema.js +416 -0
- package/node_modules/@lancedb/lancedb/dist/table.d.ts +1141 -0
- package/node_modules/@lancedb/lancedb/dist/table.js +517 -0
- package/node_modules/@lancedb/lancedb/dist/util.d.ts +14 -0
- package/node_modules/@lancedb/lancedb/dist/util.js +86 -0
- package/node_modules/@lancedb/lancedb/dist/view.d.ts +32 -0
- package/node_modules/@lancedb/lancedb/dist/view.js +17 -0
- package/node_modules/@lancedb/lancedb/license_header.txt +2 -0
- package/node_modules/@lancedb/lancedb/package.json +130 -0
- package/node_modules/@lancedb/lancedb/pnpm-workspace.yaml +56 -0
- package/node_modules/@opentelemetry/api/LICENSE +201 -0
- package/node_modules/@opentelemetry/api/README.md +98 -0
- package/node_modules/@opentelemetry/api/dist/api/context.cjs +100 -0
- package/node_modules/@opentelemetry/api/dist/api/context.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/api/context.d.cts +74 -0
- package/node_modules/@opentelemetry/api/dist/api/context.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/api/context.d.mts +74 -0
- package/node_modules/@opentelemetry/api/dist/api/context.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/api/context.mjs +100 -0
- package/node_modules/@opentelemetry/api/dist/api/context.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/api/diag.cjs +68 -0
- package/node_modules/@opentelemetry/api/dist/api/diag.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/api/diag.d.cts +35 -0
- package/node_modules/@opentelemetry/api/dist/api/diag.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/api/diag.d.mts +35 -0
- package/node_modules/@opentelemetry/api/dist/api/diag.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/api/diag.mjs +68 -0
- package/node_modules/@opentelemetry/api/dist/api/diag.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/api/logs.cjs +59 -0
- package/node_modules/@opentelemetry/api/dist/api/logs.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/api/logs.d.cts +43 -0
- package/node_modules/@opentelemetry/api/dist/api/logs.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/api/logs.d.mts +43 -0
- package/node_modules/@opentelemetry/api/dist/api/logs.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/api/logs.mjs +59 -0
- package/node_modules/@opentelemetry/api/dist/api/logs.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/api/metrics.cjs +46 -0
- package/node_modules/@opentelemetry/api/dist/api/metrics.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/api/metrics.d.cts +33 -0
- package/node_modules/@opentelemetry/api/dist/api/metrics.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/api/metrics.d.mts +33 -0
- package/node_modules/@opentelemetry/api/dist/api/metrics.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/api/metrics.mjs +46 -0
- package/node_modules/@opentelemetry/api/dist/api/metrics.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/api/propagation.cjs +74 -0
- package/node_modules/@opentelemetry/api/dist/api/propagation.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/api/propagation.d.cts +55 -0
- package/node_modules/@opentelemetry/api/dist/api/propagation.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/api/propagation.d.mts +55 -0
- package/node_modules/@opentelemetry/api/dist/api/propagation.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/api/propagation.mjs +74 -0
- package/node_modules/@opentelemetry/api/dist/api/propagation.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/api/trace.cjs +62 -0
- package/node_modules/@opentelemetry/api/dist/api/trace.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/api/trace.d.cts +46 -0
- package/node_modules/@opentelemetry/api/dist/api/trace.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/api/trace.d.mts +46 -0
- package/node_modules/@opentelemetry/api/dist/api/trace.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/api/trace.mjs +62 -0
- package/node_modules/@opentelemetry/api/dist/api/trace.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/baggage/context-helpers.cjs +48 -0
- package/node_modules/@opentelemetry/api/dist/baggage/context-helpers.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/baggage/context-helpers.d.cts +32 -0
- package/node_modules/@opentelemetry/api/dist/baggage/context-helpers.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/baggage/context-helpers.d.mts +32 -0
- package/node_modules/@opentelemetry/api/dist/baggage/context-helpers.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/baggage/context-helpers.mjs +45 -0
- package/node_modules/@opentelemetry/api/dist/baggage/context-helpers.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/baggage/internal/baggage-impl.cjs +36 -0
- package/node_modules/@opentelemetry/api/dist/baggage/internal/baggage-impl.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/baggage/internal/baggage-impl.mjs +36 -0
- package/node_modules/@opentelemetry/api/dist/baggage/internal/baggage-impl.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/baggage/internal/symbol.cjs +9 -0
- package/node_modules/@opentelemetry/api/dist/baggage/internal/symbol.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/baggage/internal/symbol.d.cts +8 -0
- package/node_modules/@opentelemetry/api/dist/baggage/internal/symbol.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/baggage/internal/symbol.d.mts +8 -0
- package/node_modules/@opentelemetry/api/dist/baggage/internal/symbol.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/baggage/internal/symbol.mjs +9 -0
- package/node_modules/@opentelemetry/api/dist/baggage/internal/symbol.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/baggage/types.d.cts +70 -0
- package/node_modules/@opentelemetry/api/dist/baggage/types.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/baggage/types.d.mts +70 -0
- package/node_modules/@opentelemetry/api/dist/baggage/types.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/baggage/utils.cjs +37 -0
- package/node_modules/@opentelemetry/api/dist/baggage/utils.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/baggage/utils.d.cts +19 -0
- package/node_modules/@opentelemetry/api/dist/baggage/utils.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/baggage/utils.d.mts +19 -0
- package/node_modules/@opentelemetry/api/dist/baggage/utils.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/baggage/utils.mjs +36 -0
- package/node_modules/@opentelemetry/api/dist/baggage/utils.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/common/AnyValue.d.cts +33 -0
- package/node_modules/@opentelemetry/api/dist/common/AnyValue.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/common/AnyValue.d.mts +33 -0
- package/node_modules/@opentelemetry/api/dist/common/AnyValue.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/common/Attributes.d.cts +19 -0
- package/node_modules/@opentelemetry/api/dist/common/Attributes.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/common/Attributes.d.mts +19 -0
- package/node_modules/@opentelemetry/api/dist/common/Attributes.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/common/Exception.d.cts +30 -0
- package/node_modules/@opentelemetry/api/dist/common/Exception.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/common/Exception.d.mts +30 -0
- package/node_modules/@opentelemetry/api/dist/common/Exception.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/common/Time.d.cts +27 -0
- package/node_modules/@opentelemetry/api/dist/common/Time.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/common/Time.d.mts +27 -0
- package/node_modules/@opentelemetry/api/dist/common/Time.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/context/NoopContextManager.cjs +27 -0
- package/node_modules/@opentelemetry/api/dist/context/NoopContextManager.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/context/NoopContextManager.mjs +27 -0
- package/node_modules/@opentelemetry/api/dist/context/NoopContextManager.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/context/context.cjs +41 -0
- package/node_modules/@opentelemetry/api/dist/context/context.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/context/context.d.cts +17 -0
- package/node_modules/@opentelemetry/api/dist/context/context.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/context/context.d.mts +17 -0
- package/node_modules/@opentelemetry/api/dist/context/context.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/context/context.mjs +40 -0
- package/node_modules/@opentelemetry/api/dist/context/context.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/context/types.d.cts +92 -0
- package/node_modules/@opentelemetry/api/dist/context/types.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/context/types.d.mts +92 -0
- package/node_modules/@opentelemetry/api/dist/context/types.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/context-api.cjs +10 -0
- package/node_modules/@opentelemetry/api/dist/context-api.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/context-api.d.cts +10 -0
- package/node_modules/@opentelemetry/api/dist/context-api.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/context-api.d.mts +10 -0
- package/node_modules/@opentelemetry/api/dist/context-api.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/context-api.mjs +11 -0
- package/node_modules/@opentelemetry/api/dist/context-api.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/diag/ComponentLogger.cjs +40 -0
- package/node_modules/@opentelemetry/api/dist/diag/ComponentLogger.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/diag/ComponentLogger.mjs +40 -0
- package/node_modules/@opentelemetry/api/dist/diag/ComponentLogger.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/diag/consoleLogger.cjs +62 -0
- package/node_modules/@opentelemetry/api/dist/diag/consoleLogger.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/diag/consoleLogger.d.cts +43 -0
- package/node_modules/@opentelemetry/api/dist/diag/consoleLogger.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/diag/consoleLogger.d.mts +43 -0
- package/node_modules/@opentelemetry/api/dist/diag/consoleLogger.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/diag/consoleLogger.mjs +61 -0
- package/node_modules/@opentelemetry/api/dist/diag/consoleLogger.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/diag/internal/logLevelLogger.cjs +23 -0
- package/node_modules/@opentelemetry/api/dist/diag/internal/logLevelLogger.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/diag/internal/logLevelLogger.mjs +23 -0
- package/node_modules/@opentelemetry/api/dist/diag/internal/logLevelLogger.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/diag/types.cjs +32 -0
- package/node_modules/@opentelemetry/api/dist/diag/types.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/diag/types.d.cts +115 -0
- package/node_modules/@opentelemetry/api/dist/diag/types.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/diag/types.d.mts +115 -0
- package/node_modules/@opentelemetry/api/dist/diag/types.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/diag/types.mjs +32 -0
- package/node_modules/@opentelemetry/api/dist/diag/types.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/diag-api.cjs +14 -0
- package/node_modules/@opentelemetry/api/dist/diag-api.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/diag-api.d.cts +14 -0
- package/node_modules/@opentelemetry/api/dist/diag-api.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/diag-api.d.mts +14 -0
- package/node_modules/@opentelemetry/api/dist/diag-api.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/diag-api.mjs +15 -0
- package/node_modules/@opentelemetry/api/dist/diag-api.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/experimental/index.cjs +4 -0
- package/node_modules/@opentelemetry/api/dist/experimental/index.d.cts +3 -0
- package/node_modules/@opentelemetry/api/dist/experimental/index.d.mts +3 -0
- package/node_modules/@opentelemetry/api/dist/experimental/index.mjs +2 -0
- package/node_modules/@opentelemetry/api/dist/experimental/trace/SugaredOptions.d.cts +17 -0
- package/node_modules/@opentelemetry/api/dist/experimental/trace/SugaredOptions.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/experimental/trace/SugaredOptions.d.mts +17 -0
- package/node_modules/@opentelemetry/api/dist/experimental/trace/SugaredOptions.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/experimental/trace/SugaredTracer.cjs +88 -0
- package/node_modules/@opentelemetry/api/dist/experimental/trace/SugaredTracer.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/experimental/trace/SugaredTracer.d.cts +69 -0
- package/node_modules/@opentelemetry/api/dist/experimental/trace/SugaredTracer.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/experimental/trace/SugaredTracer.d.mts +69 -0
- package/node_modules/@opentelemetry/api/dist/experimental/trace/SugaredTracer.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/experimental/trace/SugaredTracer.mjs +87 -0
- package/node_modules/@opentelemetry/api/dist/experimental/trace/SugaredTracer.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/index.cjs +71 -0
- package/node_modules/@opentelemetry/api/dist/index.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/index.d.cts +63 -0
- package/node_modules/@opentelemetry/api/dist/index.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/index.d.mts +63 -0
- package/node_modules/@opentelemetry/api/dist/index.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/index.mjs +37 -0
- package/node_modules/@opentelemetry/api/dist/index.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/internal/global-utils.cjs +52 -0
- package/node_modules/@opentelemetry/api/dist/internal/global-utils.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/internal/global-utils.mjs +50 -0
- package/node_modules/@opentelemetry/api/dist/internal/global-utils.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/internal/semver.cjs +83 -0
- package/node_modules/@opentelemetry/api/dist/internal/semver.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/internal/semver.mjs +82 -0
- package/node_modules/@opentelemetry/api/dist/internal/semver.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/logs/LogRecord.cjs +33 -0
- package/node_modules/@opentelemetry/api/dist/logs/LogRecord.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/logs/LogRecord.d.cts +75 -0
- package/node_modules/@opentelemetry/api/dist/logs/LogRecord.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/logs/LogRecord.d.mts +75 -0
- package/node_modules/@opentelemetry/api/dist/logs/LogRecord.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/logs/LogRecord.mjs +33 -0
- package/node_modules/@opentelemetry/api/dist/logs/LogRecord.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/logs/Logger.d.cts +23 -0
- package/node_modules/@opentelemetry/api/dist/logs/Logger.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/logs/Logger.d.mts +23 -0
- package/node_modules/@opentelemetry/api/dist/logs/Logger.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/logs/LoggerOptions.d.cts +22 -0
- package/node_modules/@opentelemetry/api/dist/logs/LoggerOptions.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/logs/LoggerOptions.d.mts +22 -0
- package/node_modules/@opentelemetry/api/dist/logs/LoggerOptions.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/logs/LoggerProvider.d.cts +27 -0
- package/node_modules/@opentelemetry/api/dist/logs/LoggerProvider.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/logs/LoggerProvider.d.mts +27 -0
- package/node_modules/@opentelemetry/api/dist/logs/LoggerProvider.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/logs/NoopLogger.cjs +20 -0
- package/node_modules/@opentelemetry/api/dist/logs/NoopLogger.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/logs/NoopLogger.d.cts +9 -0
- package/node_modules/@opentelemetry/api/dist/logs/NoopLogger.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/logs/NoopLogger.d.mts +9 -0
- package/node_modules/@opentelemetry/api/dist/logs/NoopLogger.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/logs/NoopLogger.mjs +18 -0
- package/node_modules/@opentelemetry/api/dist/logs/NoopLogger.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/logs/NoopLoggerProvider.cjs +13 -0
- package/node_modules/@opentelemetry/api/dist/logs/NoopLoggerProvider.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/logs/NoopLoggerProvider.mjs +12 -0
- package/node_modules/@opentelemetry/api/dist/logs/NoopLoggerProvider.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/logs/ProxyLogger.cjs +36 -0
- package/node_modules/@opentelemetry/api/dist/logs/ProxyLogger.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/logs/ProxyLogger.mjs +36 -0
- package/node_modules/@opentelemetry/api/dist/logs/ProxyLogger.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/logs/ProxyLoggerProvider.cjs +36 -0
- package/node_modules/@opentelemetry/api/dist/logs/ProxyLoggerProvider.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/logs/ProxyLoggerProvider.mjs +36 -0
- package/node_modules/@opentelemetry/api/dist/logs/ProxyLoggerProvider.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/logs-api.cjs +11 -0
- package/node_modules/@opentelemetry/api/dist/logs-api.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/logs-api.d.cts +11 -0
- package/node_modules/@opentelemetry/api/dist/logs-api.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/logs-api.d.mts +11 -0
- package/node_modules/@opentelemetry/api/dist/logs-api.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/logs-api.mjs +12 -0
- package/node_modules/@opentelemetry/api/dist/logs-api.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/metrics/Meter.d.cts +119 -0
- package/node_modules/@opentelemetry/api/dist/metrics/Meter.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/metrics/Meter.d.mts +119 -0
- package/node_modules/@opentelemetry/api/dist/metrics/Meter.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/metrics/MeterProvider.d.cts +22 -0
- package/node_modules/@opentelemetry/api/dist/metrics/MeterProvider.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/metrics/MeterProvider.d.mts +22 -0
- package/node_modules/@opentelemetry/api/dist/metrics/MeterProvider.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/metrics/Metric.cjs +15 -0
- package/node_modules/@opentelemetry/api/dist/metrics/Metric.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/metrics/Metric.d.cts +188 -0
- package/node_modules/@opentelemetry/api/dist/metrics/Metric.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/metrics/Metric.d.mts +188 -0
- package/node_modules/@opentelemetry/api/dist/metrics/Metric.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/metrics/Metric.mjs +15 -0
- package/node_modules/@opentelemetry/api/dist/metrics/Metric.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/metrics/NoopMeter.cjs +116 -0
- package/node_modules/@opentelemetry/api/dist/metrics/NoopMeter.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/metrics/NoopMeter.d.cts +11 -0
- package/node_modules/@opentelemetry/api/dist/metrics/NoopMeter.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/metrics/NoopMeter.d.mts +11 -0
- package/node_modules/@opentelemetry/api/dist/metrics/NoopMeter.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/metrics/NoopMeter.mjs +98 -0
- package/node_modules/@opentelemetry/api/dist/metrics/NoopMeter.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/metrics/NoopMeterProvider.cjs +17 -0
- package/node_modules/@opentelemetry/api/dist/metrics/NoopMeterProvider.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/metrics/NoopMeterProvider.mjs +16 -0
- package/node_modules/@opentelemetry/api/dist/metrics/NoopMeterProvider.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/metrics-api.cjs +11 -0
- package/node_modules/@opentelemetry/api/dist/metrics-api.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/metrics-api.d.cts +11 -0
- package/node_modules/@opentelemetry/api/dist/metrics-api.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/metrics-api.d.mts +11 -0
- package/node_modules/@opentelemetry/api/dist/metrics-api.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/metrics-api.mjs +12 -0
- package/node_modules/@opentelemetry/api/dist/metrics-api.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/propagation/NoopTextMapPropagator.cjs +19 -0
- package/node_modules/@opentelemetry/api/dist/propagation/NoopTextMapPropagator.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/propagation/NoopTextMapPropagator.mjs +19 -0
- package/node_modules/@opentelemetry/api/dist/propagation/NoopTextMapPropagator.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/propagation/TextMapPropagator.cjs +26 -0
- package/node_modules/@opentelemetry/api/dist/propagation/TextMapPropagator.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/propagation/TextMapPropagator.d.cts +99 -0
- package/node_modules/@opentelemetry/api/dist/propagation/TextMapPropagator.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/propagation/TextMapPropagator.d.mts +99 -0
- package/node_modules/@opentelemetry/api/dist/propagation/TextMapPropagator.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/propagation/TextMapPropagator.mjs +25 -0
- package/node_modules/@opentelemetry/api/dist/propagation/TextMapPropagator.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/propagation-api.cjs +11 -0
- package/node_modules/@opentelemetry/api/dist/propagation-api.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/propagation-api.d.cts +11 -0
- package/node_modules/@opentelemetry/api/dist/propagation-api.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/propagation-api.d.mts +11 -0
- package/node_modules/@opentelemetry/api/dist/propagation-api.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/propagation-api.mjs +12 -0
- package/node_modules/@opentelemetry/api/dist/propagation-api.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/NonRecordingSpan.cjs +45 -0
- package/node_modules/@opentelemetry/api/dist/trace/NonRecordingSpan.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/NonRecordingSpan.mjs +45 -0
- package/node_modules/@opentelemetry/api/dist/trace/NonRecordingSpan.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/NoopTracer.cjs +44 -0
- package/node_modules/@opentelemetry/api/dist/trace/NoopTracer.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/NoopTracer.mjs +44 -0
- package/node_modules/@opentelemetry/api/dist/trace/NoopTracer.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/NoopTracerProvider.cjs +17 -0
- package/node_modules/@opentelemetry/api/dist/trace/NoopTracerProvider.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/NoopTracerProvider.mjs +17 -0
- package/node_modules/@opentelemetry/api/dist/trace/NoopTracerProvider.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/ProxyTracer.cjs +37 -0
- package/node_modules/@opentelemetry/api/dist/trace/ProxyTracer.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/ProxyTracer.d.cts +36 -0
- package/node_modules/@opentelemetry/api/dist/trace/ProxyTracer.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/ProxyTracer.d.mts +36 -0
- package/node_modules/@opentelemetry/api/dist/trace/ProxyTracer.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/ProxyTracer.mjs +38 -0
- package/node_modules/@opentelemetry/api/dist/trace/ProxyTracer.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/ProxyTracerProvider.cjs +41 -0
- package/node_modules/@opentelemetry/api/dist/trace/ProxyTracerProvider.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/ProxyTracerProvider.d.cts +31 -0
- package/node_modules/@opentelemetry/api/dist/trace/ProxyTracerProvider.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/ProxyTracerProvider.d.mts +31 -0
- package/node_modules/@opentelemetry/api/dist/trace/ProxyTracerProvider.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/ProxyTracerProvider.mjs +42 -0
- package/node_modules/@opentelemetry/api/dist/trace/ProxyTracerProvider.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/Sampler.d.cts +36 -0
- package/node_modules/@opentelemetry/api/dist/trace/Sampler.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/Sampler.d.mts +36 -0
- package/node_modules/@opentelemetry/api/dist/trace/Sampler.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/SamplingResult.cjs +30 -0
- package/node_modules/@opentelemetry/api/dist/trace/SamplingResult.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/SamplingResult.d.cts +58 -0
- package/node_modules/@opentelemetry/api/dist/trace/SamplingResult.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/SamplingResult.d.mts +58 -0
- package/node_modules/@opentelemetry/api/dist/trace/SamplingResult.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/SamplingResult.mjs +30 -0
- package/node_modules/@opentelemetry/api/dist/trace/SamplingResult.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/SpanOptions.d.cts +28 -0
- package/node_modules/@opentelemetry/api/dist/trace/SpanOptions.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/SpanOptions.d.mts +28 -0
- package/node_modules/@opentelemetry/api/dist/trace/SpanOptions.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/attributes.d.cts +15 -0
- package/node_modules/@opentelemetry/api/dist/trace/attributes.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/attributes.d.mts +15 -0
- package/node_modules/@opentelemetry/api/dist/trace/attributes.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/context-utils.cjs +67 -0
- package/node_modules/@opentelemetry/api/dist/trace/context-utils.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/context-utils.d.cts +44 -0
- package/node_modules/@opentelemetry/api/dist/trace/context-utils.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/context-utils.d.mts +44 -0
- package/node_modules/@opentelemetry/api/dist/trace/context-utils.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/context-utils.mjs +62 -0
- package/node_modules/@opentelemetry/api/dist/trace/context-utils.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/internal/tracestate-impl.cjs +77 -0
- package/node_modules/@opentelemetry/api/dist/trace/internal/tracestate-impl.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/internal/tracestate-impl.mjs +77 -0
- package/node_modules/@opentelemetry/api/dist/trace/internal/tracestate-impl.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/internal/tracestate-validators.cjs +28 -0
- package/node_modules/@opentelemetry/api/dist/trace/internal/tracestate-validators.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/internal/tracestate-validators.mjs +27 -0
- package/node_modules/@opentelemetry/api/dist/trace/internal/tracestate-validators.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/internal/utils.cjs +13 -0
- package/node_modules/@opentelemetry/api/dist/trace/internal/utils.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/internal/utils.d.cts +10 -0
- package/node_modules/@opentelemetry/api/dist/trace/internal/utils.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/internal/utils.d.mts +10 -0
- package/node_modules/@opentelemetry/api/dist/trace/internal/utils.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/internal/utils.mjs +13 -0
- package/node_modules/@opentelemetry/api/dist/trace/internal/utils.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/invalid-span-constants.cjs +24 -0
- package/node_modules/@opentelemetry/api/dist/trace/invalid-span-constants.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/invalid-span-constants.d.cts +17 -0
- package/node_modules/@opentelemetry/api/dist/trace/invalid-span-constants.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/invalid-span-constants.d.mts +17 -0
- package/node_modules/@opentelemetry/api/dist/trace/invalid-span-constants.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/invalid-span-constants.mjs +22 -0
- package/node_modules/@opentelemetry/api/dist/trace/invalid-span-constants.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/link.d.cts +35 -0
- package/node_modules/@opentelemetry/api/dist/trace/link.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/link.d.mts +35 -0
- package/node_modules/@opentelemetry/api/dist/trace/link.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/span.d.cts +139 -0
- package/node_modules/@opentelemetry/api/dist/trace/span.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/span.d.mts +139 -0
- package/node_modules/@opentelemetry/api/dist/trace/span.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/span_context.d.cts +58 -0
- package/node_modules/@opentelemetry/api/dist/trace/span_context.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/span_context.d.mts +58 -0
- package/node_modules/@opentelemetry/api/dist/trace/span_context.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/span_kind.cjs +35 -0
- package/node_modules/@opentelemetry/api/dist/trace/span_kind.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/span_kind.d.cts +33 -0
- package/node_modules/@opentelemetry/api/dist/trace/span_kind.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/span_kind.d.mts +33 -0
- package/node_modules/@opentelemetry/api/dist/trace/span_kind.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/span_kind.mjs +35 -0
- package/node_modules/@opentelemetry/api/dist/trace/span_kind.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/spancontext-utils.cjs +151 -0
- package/node_modules/@opentelemetry/api/dist/trace/spancontext-utils.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/spancontext-utils.d.cts +28 -0
- package/node_modules/@opentelemetry/api/dist/trace/spancontext-utils.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/spancontext-utils.d.mts +28 -0
- package/node_modules/@opentelemetry/api/dist/trace/spancontext-utils.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/spancontext-utils.mjs +148 -0
- package/node_modules/@opentelemetry/api/dist/trace/spancontext-utils.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/status.cjs +26 -0
- package/node_modules/@opentelemetry/api/dist/trace/status.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/status.d.cts +33 -0
- package/node_modules/@opentelemetry/api/dist/trace/status.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/status.d.mts +33 -0
- package/node_modules/@opentelemetry/api/dist/trace/status.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/status.mjs +26 -0
- package/node_modules/@opentelemetry/api/dist/trace/status.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/trace_flags.cjs +15 -0
- package/node_modules/@opentelemetry/api/dist/trace/trace_flags.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/trace_flags.d.cts +13 -0
- package/node_modules/@opentelemetry/api/dist/trace/trace_flags.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/trace_flags.d.mts +13 -0
- package/node_modules/@opentelemetry/api/dist/trace/trace_flags.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/trace_flags.mjs +15 -0
- package/node_modules/@opentelemetry/api/dist/trace/trace_flags.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/trace_state.d.cts +44 -0
- package/node_modules/@opentelemetry/api/dist/trace/trace_state.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/trace_state.d.mts +44 -0
- package/node_modules/@opentelemetry/api/dist/trace/trace_state.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/tracer.d.cts +81 -0
- package/node_modules/@opentelemetry/api/dist/trace/tracer.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/tracer.d.mts +81 -0
- package/node_modules/@opentelemetry/api/dist/trace/tracer.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/tracer_options.d.cts +15 -0
- package/node_modules/@opentelemetry/api/dist/trace/tracer_options.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/tracer_options.d.mts +15 -0
- package/node_modules/@opentelemetry/api/dist/trace/tracer_options.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/tracer_provider.d.cts +26 -0
- package/node_modules/@opentelemetry/api/dist/trace/tracer_provider.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace/tracer_provider.d.mts +26 -0
- package/node_modules/@opentelemetry/api/dist/trace/tracer_provider.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace-api.cjs +11 -0
- package/node_modules/@opentelemetry/api/dist/trace-api.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace-api.d.cts +11 -0
- package/node_modules/@opentelemetry/api/dist/trace-api.d.cts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace-api.d.mts +11 -0
- package/node_modules/@opentelemetry/api/dist/trace-api.d.mts.map +1 -0
- package/node_modules/@opentelemetry/api/dist/trace-api.mjs +12 -0
- package/node_modules/@opentelemetry/api/dist/trace-api.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/version.cjs +6 -0
- package/node_modules/@opentelemetry/api/dist/version.cjs.map +1 -0
- package/node_modules/@opentelemetry/api/dist/version.mjs +6 -0
- package/node_modules/@opentelemetry/api/dist/version.mjs.map +1 -0
- package/node_modules/@opentelemetry/api/package.json +94 -0
- package/node_modules/reflect-metadata/AUTHORS.md +5 -0
- package/node_modules/reflect-metadata/CopyrightNotice.txt +15 -0
- package/node_modules/reflect-metadata/LICENSE +55 -0
- package/node_modules/reflect-metadata/README.md +232 -0
- package/node_modules/reflect-metadata/Reflect.js +1415 -0
- package/node_modules/reflect-metadata/ReflectLite.js +1137 -0
- package/node_modules/reflect-metadata/ReflectNoConflict.js +1111 -0
- package/node_modules/reflect-metadata/index.d.ts +491 -0
- package/node_modules/reflect-metadata/no-conflict.d.ts +484 -0
- package/node_modules/reflect-metadata/package.json +68 -0
- package/node_modules/reflect-metadata/standalone.d.ts +485 -0
- package/package.json +22 -9
- package/scripts/bare-imports.cjs +61 -0
- package/scripts/build.cjs +16 -1
- package/src/cli-bin.mjs +39 -7
- package/src/host-resolve-hook.mjs +37 -0
- package/src/host-roots.d.mts +4 -0
- package/src/host-roots.mjs +122 -0
- package/src/infrastructure/browser/thread-worker.mjs +8520 -59
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
// SPDX-FileCopyrightText: Copyright The LanceDB Authors
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.Index = void 0;
|
|
6
|
+
const native_1 = require("./native");
|
|
7
|
+
class Index {
|
|
8
|
+
inner;
|
|
9
|
+
constructor(inner) {
|
|
10
|
+
this.inner = inner;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Create an IvfPq index
|
|
14
|
+
*
|
|
15
|
+
* This index stores a compressed (quantized) copy of every vector. These vectors
|
|
16
|
+
* are grouped into partitions of similar vectors. Each partition keeps track of
|
|
17
|
+
* a centroid which is the average value of all vectors in the group.
|
|
18
|
+
*
|
|
19
|
+
* During a query the centroids are compared with the query vector to find the closest
|
|
20
|
+
* partitions. The compressed vectors in these partitions are then searched to find
|
|
21
|
+
* the closest vectors.
|
|
22
|
+
*
|
|
23
|
+
* The compression scheme is called product quantization. Each vector is divided into
|
|
24
|
+
* subvectors and then each subvector is quantized into a small number of bits. the
|
|
25
|
+
* parameters `num_bits` and `num_subvectors` control this process, providing a tradeoff
|
|
26
|
+
* between index size (and thus search speed) and index accuracy.
|
|
27
|
+
*
|
|
28
|
+
* The partitioning process is called IVF and the `num_partitions` parameter controls how
|
|
29
|
+
* many groups to create.
|
|
30
|
+
*
|
|
31
|
+
* Note that training an IVF PQ index on a large dataset is a slow operation and
|
|
32
|
+
* currently is also a memory intensive operation.
|
|
33
|
+
*/
|
|
34
|
+
static ivfPq(options) {
|
|
35
|
+
return new Index(native_1.Index.ivfPq(options?.distanceType, options?.numPartitions, options?.numSubVectors, options?.numBits, options?.maxIterations, options?.sampleRate));
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Create an IvfRq index
|
|
39
|
+
*
|
|
40
|
+
* IVF-RQ (RabitQ Quantization) compresses vectors using RabitQ quantization
|
|
41
|
+
* and organizes them into IVF partitions.
|
|
42
|
+
*
|
|
43
|
+
* The compression scheme is called RabitQ quantization. Each dimension is quantized into a small number of bits.
|
|
44
|
+
* The parameters `num_bits` and `num_partitions` control this process, providing a tradeoff
|
|
45
|
+
* between index size (and thus search speed) and index accuracy.
|
|
46
|
+
*
|
|
47
|
+
* The partitioning process is called IVF and the `num_partitions` parameter controls how
|
|
48
|
+
* many groups to create.
|
|
49
|
+
*
|
|
50
|
+
* Note that training an IVF RQ index on a large dataset is a slow operation and
|
|
51
|
+
* currently is also a memory intensive operation.
|
|
52
|
+
*/
|
|
53
|
+
static ivfRq(options) {
|
|
54
|
+
return new Index(native_1.Index.ivfRq(options?.distanceType, options?.numPartitions, options?.numBits, options?.maxIterations, options?.sampleRate));
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Create an IvfFlat index
|
|
58
|
+
*
|
|
59
|
+
* This index groups vectors into partitions of similar vectors. Each partition keeps track of
|
|
60
|
+
* a centroid which is the average value of all vectors in the group.
|
|
61
|
+
*
|
|
62
|
+
* During a query the centroids are compared with the query vector to find the closest
|
|
63
|
+
* partitions. The vectors in these partitions are then searched to find
|
|
64
|
+
* the closest vectors.
|
|
65
|
+
*
|
|
66
|
+
* The partitioning process is called IVF and the `num_partitions` parameter controls how
|
|
67
|
+
* many groups to create.
|
|
68
|
+
*
|
|
69
|
+
* Note that training an IVF FLAT index on a large dataset is a slow operation and
|
|
70
|
+
* currently is also a memory intensive operation.
|
|
71
|
+
*/
|
|
72
|
+
static ivfFlat(options) {
|
|
73
|
+
return new Index(native_1.Index.ivfFlat(options?.distanceType, options?.numPartitions, options?.maxIterations, options?.sampleRate));
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Create a btree index
|
|
77
|
+
*
|
|
78
|
+
* A btree index is an index on a scalar columns. The index stores a copy of the column
|
|
79
|
+
* in sorted order. A header entry is created for each block of rows (currently the
|
|
80
|
+
* block size is fixed at 4096). These header entries are stored in a separate
|
|
81
|
+
* cacheable structure (a btree). To search for data the header is used to determine
|
|
82
|
+
* which blocks need to be read from disk.
|
|
83
|
+
*
|
|
84
|
+
* For example, a btree index in a table with 1Bi rows requires sizeof(Scalar) * 256Ki
|
|
85
|
+
* bytes of memory and will generally need to read sizeof(Scalar) * 4096 bytes to find
|
|
86
|
+
* the correct row ids.
|
|
87
|
+
*
|
|
88
|
+
* This index is good for scalar columns with mostly distinct values and does best when
|
|
89
|
+
* the query is highly selective.
|
|
90
|
+
*
|
|
91
|
+
* The btree index does not currently have any parameters though parameters such as the
|
|
92
|
+
* block size may be added in the future.
|
|
93
|
+
*/
|
|
94
|
+
static btree() {
|
|
95
|
+
return new Index(native_1.Index.btree());
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Create a bitmap index.
|
|
99
|
+
*
|
|
100
|
+
* A `Bitmap` index stores a bitmap for each distinct value in the column for every row.
|
|
101
|
+
*
|
|
102
|
+
* This index works best for low-cardinality columns, where the number of unique values
|
|
103
|
+
* is small (i.e., less than a few hundreds).
|
|
104
|
+
*/
|
|
105
|
+
static bitmap() {
|
|
106
|
+
return new Index(native_1.Index.bitmap());
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Create a label list index.
|
|
110
|
+
*
|
|
111
|
+
* LabelList index is a scalar index that can be used on `List<T>` columns to
|
|
112
|
+
* support queries with `array_contains_all` and `array_contains_any`
|
|
113
|
+
* using an underlying bitmap index.
|
|
114
|
+
*/
|
|
115
|
+
static labelList() {
|
|
116
|
+
return new Index(native_1.Index.labelList());
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Create an FM-Index.
|
|
120
|
+
*
|
|
121
|
+
* An FM-Index is a scalar index on string or binary columns that accelerates
|
|
122
|
+
* substring search, i.e. `contains(col, 'needle')`. Unlike the tokenized
|
|
123
|
+
* full-text-search index, it matches arbitrary substrings of the raw bytes.
|
|
124
|
+
*/
|
|
125
|
+
static fm() {
|
|
126
|
+
return new Index(native_1.Index.fm());
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Create a full text search index
|
|
130
|
+
*
|
|
131
|
+
* A full text search index is an index on a string column, so that you can conduct full
|
|
132
|
+
* text searches on the column.
|
|
133
|
+
*
|
|
134
|
+
* The results of a full text search are ordered by relevance measured by BM25.
|
|
135
|
+
*
|
|
136
|
+
* You can combine filters with full text search.
|
|
137
|
+
*/
|
|
138
|
+
static fts(options) {
|
|
139
|
+
return new Index(native_1.Index.fts(options?.withPosition, options?.baseTokenizer, options?.language, options?.maxTokenLength, options?.lowercase, options?.stem, options?.removeStopWords, options?.customStopWords, options?.asciiFolding, options?.ngramMinLength, options?.ngramMaxLength, options?.prefixOnly, options?.blockSize));
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* Create a hnswPq index
|
|
144
|
+
*
|
|
145
|
+
* HNSW-PQ stands for Hierarchical Navigable Small World - Product Quantization.
|
|
146
|
+
* It is a variant of the HNSW algorithm that uses product quantization to compress
|
|
147
|
+
* the vectors.
|
|
148
|
+
*
|
|
149
|
+
*/
|
|
150
|
+
static hnswPq(options) {
|
|
151
|
+
return new Index(native_1.Index.hnswPq(options?.distanceType, options?.numPartitions, options?.numSubVectors, options?.maxIterations, options?.sampleRate, options?.m, options?.efConstruction));
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
*
|
|
155
|
+
* Create a hnswSq index
|
|
156
|
+
*
|
|
157
|
+
* HNSW-SQ stands for Hierarchical Navigable Small World - Scalar Quantization.
|
|
158
|
+
* It is a variant of the HNSW algorithm that uses scalar quantization to compress
|
|
159
|
+
* the vectors.
|
|
160
|
+
*
|
|
161
|
+
*/
|
|
162
|
+
static hnswSq(options) {
|
|
163
|
+
return new Index(native_1.Index.hnswSq(options?.distanceType, options?.numPartitions, options?.maxIterations, options?.sampleRate, options?.m, options?.efConstruction));
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
exports.Index = Index;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { Table as ArrowTable } from "apache-arrow";
|
|
2
|
+
import { JobFailureInfo, Job as NativeJob } from "./native";
|
|
3
|
+
/** Which of a job's events {@link Job.events} returns. */
|
|
4
|
+
export interface JobEventsOptions {
|
|
5
|
+
/** Maximum event rows to return, up to the server maximum of 10,000. */
|
|
6
|
+
limit?: number;
|
|
7
|
+
/** SQL-like filter over the event columns. */
|
|
8
|
+
filter?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* A handle to an operation that may still be running.
|
|
12
|
+
*
|
|
13
|
+
* The operation may already be complete when the handle is created.
|
|
14
|
+
*
|
|
15
|
+
* The detail getters read what the handle last observed. Submitting an
|
|
16
|
+
* operation returns only a job id, so populating them eagerly would cost an
|
|
17
|
+
* extra round trip on every call:
|
|
18
|
+
*
|
|
19
|
+
* - {@link Job.refresh} and {@link Job.status} fetch the whole record.
|
|
20
|
+
* - {@link Job.wait} records the terminal state it establishes, but not the
|
|
21
|
+
* rest of the record.
|
|
22
|
+
* - Everything is null until one of those runs.
|
|
23
|
+
*
|
|
24
|
+
* @hideconstructor
|
|
25
|
+
*/
|
|
26
|
+
export declare class Job {
|
|
27
|
+
private readonly inner;
|
|
28
|
+
constructor(inner: NativeJob);
|
|
29
|
+
/**
|
|
30
|
+
* Identifies the operation on the server that is running it.
|
|
31
|
+
*
|
|
32
|
+
* Operations that run in this process have no server id. The value is
|
|
33
|
+
* opaque: parsing it or storing it to resume the job later is not supported.
|
|
34
|
+
*/
|
|
35
|
+
get id(): string | null;
|
|
36
|
+
/** The last observed lifecycle state, without contacting the backend. */
|
|
37
|
+
get state(): string | null;
|
|
38
|
+
/**
|
|
39
|
+
* The job's type, as the server names it. Null for an in-process job, which
|
|
40
|
+
* has no server-side record.
|
|
41
|
+
*/
|
|
42
|
+
get jobType(): string | null;
|
|
43
|
+
/** When the job was created, in milliseconds since the epoch. */
|
|
44
|
+
get creationMs(): number | null;
|
|
45
|
+
/** The job-type-specific specification it was submitted with. */
|
|
46
|
+
get spec(): any | null;
|
|
47
|
+
/**
|
|
48
|
+
* The job-type-specific terminal result. Null until the job succeeds, so a
|
|
49
|
+
* job that never terminates reports its progress through {@link Job.events}
|
|
50
|
+
* instead.
|
|
51
|
+
*/
|
|
52
|
+
get result(): any | null;
|
|
53
|
+
/** Why the job failed, when it failed and the server reports a reason. */
|
|
54
|
+
get failure(): JobFailureInfo | null;
|
|
55
|
+
/**
|
|
56
|
+
* The operation's current lifecycle state: "running", "finished", "failed",
|
|
57
|
+
* or "cancelled".
|
|
58
|
+
*
|
|
59
|
+
* A point snapshot; unlike {@link Job.wait} it does not block or reject on a
|
|
60
|
+
* terminal failure state. Also refreshes the getters above.
|
|
61
|
+
*/
|
|
62
|
+
status(): Promise<string>;
|
|
63
|
+
/** Wait until the operation reaches a terminal state. */
|
|
64
|
+
wait(): Promise<void>;
|
|
65
|
+
/** Request cancellation. Cancelling a finished operation is a no-op. */
|
|
66
|
+
cancel(): Promise<void>;
|
|
67
|
+
/**
|
|
68
|
+
* Ask the backend for this job's current state, and for a server-side job
|
|
69
|
+
* its full record, then cache it for the getters above.
|
|
70
|
+
*/
|
|
71
|
+
refresh(): Promise<void>;
|
|
72
|
+
/**
|
|
73
|
+
* This job's recorded lifecycle events.
|
|
74
|
+
*
|
|
75
|
+
* Where the getters above report a terminal result only once the job reaches
|
|
76
|
+
* one, events are written as the job runs and outlive the workers that
|
|
77
|
+
* produced them. A distributed job records a `claim`/`claim_complete` pair
|
|
78
|
+
* per unit of work, each carrying `rows_processed`, so a job that never
|
|
79
|
+
* finishes still accounts for what it did.
|
|
80
|
+
*
|
|
81
|
+
* The server caps results at 1000 rows by default and 10,000 at most, and
|
|
82
|
+
* truncates without saying so, so pass `limit` for a job that emits an event
|
|
83
|
+
* per fragment. `filter` is a SQL-like expression over the `state`,
|
|
84
|
+
* `updated_by`, `emitted_from`, `emitted_by`, and `claim_entity` columns.
|
|
85
|
+
*/
|
|
86
|
+
events(options?: JobEventsOptions): Promise<ArrowTable>;
|
|
87
|
+
/**
|
|
88
|
+
* Every field the handle currently knows, one per line, with the JSON
|
|
89
|
+
* payloads indented -- a refresh job's spec and result are the point of
|
|
90
|
+
* printing it.
|
|
91
|
+
*/
|
|
92
|
+
toString(): string;
|
|
93
|
+
}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
// SPDX-FileCopyrightText: Copyright The LanceDB Authors
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.Job = void 0;
|
|
6
|
+
const apache_arrow_1 = require("apache-arrow");
|
|
7
|
+
/**
|
|
8
|
+
* A handle to an operation that may still be running.
|
|
9
|
+
*
|
|
10
|
+
* The operation may already be complete when the handle is created.
|
|
11
|
+
*
|
|
12
|
+
* The detail getters read what the handle last observed. Submitting an
|
|
13
|
+
* operation returns only a job id, so populating them eagerly would cost an
|
|
14
|
+
* extra round trip on every call:
|
|
15
|
+
*
|
|
16
|
+
* - {@link Job.refresh} and {@link Job.status} fetch the whole record.
|
|
17
|
+
* - {@link Job.wait} records the terminal state it establishes, but not the
|
|
18
|
+
* rest of the record.
|
|
19
|
+
* - Everything is null until one of those runs.
|
|
20
|
+
*
|
|
21
|
+
* @hideconstructor
|
|
22
|
+
*/
|
|
23
|
+
class Job {
|
|
24
|
+
inner;
|
|
25
|
+
constructor(inner) {
|
|
26
|
+
this.inner = inner;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Identifies the operation on the server that is running it.
|
|
30
|
+
*
|
|
31
|
+
* Operations that run in this process have no server id. The value is
|
|
32
|
+
* opaque: parsing it or storing it to resume the job later is not supported.
|
|
33
|
+
*/
|
|
34
|
+
get id() {
|
|
35
|
+
return this.inner.id ?? null;
|
|
36
|
+
}
|
|
37
|
+
/** The last observed lifecycle state, without contacting the backend. */
|
|
38
|
+
get state() {
|
|
39
|
+
return this.inner.state ?? null;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* The job's type, as the server names it. Null for an in-process job, which
|
|
43
|
+
* has no server-side record.
|
|
44
|
+
*/
|
|
45
|
+
get jobType() {
|
|
46
|
+
return this.inner.jobType ?? null;
|
|
47
|
+
}
|
|
48
|
+
/** When the job was created, in milliseconds since the epoch. */
|
|
49
|
+
get creationMs() {
|
|
50
|
+
return this.inner.creationMs ?? null;
|
|
51
|
+
}
|
|
52
|
+
/** The job-type-specific specification it was submitted with. */
|
|
53
|
+
// biome-ignore lint/suspicious/noExplicitAny: shape varies by job type
|
|
54
|
+
get spec() {
|
|
55
|
+
return parseJson(this.inner.specJson);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* The job-type-specific terminal result. Null until the job succeeds, so a
|
|
59
|
+
* job that never terminates reports its progress through {@link Job.events}
|
|
60
|
+
* instead.
|
|
61
|
+
*/
|
|
62
|
+
// biome-ignore lint/suspicious/noExplicitAny: shape varies by job type
|
|
63
|
+
get result() {
|
|
64
|
+
return parseJson(this.inner.resultJson);
|
|
65
|
+
}
|
|
66
|
+
/** Why the job failed, when it failed and the server reports a reason. */
|
|
67
|
+
get failure() {
|
|
68
|
+
return this.inner.failure ?? null;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* The operation's current lifecycle state: "running", "finished", "failed",
|
|
72
|
+
* or "cancelled".
|
|
73
|
+
*
|
|
74
|
+
* A point snapshot; unlike {@link Job.wait} it does not block or reject on a
|
|
75
|
+
* terminal failure state. Also refreshes the getters above.
|
|
76
|
+
*/
|
|
77
|
+
async status() {
|
|
78
|
+
return this.inner.status();
|
|
79
|
+
}
|
|
80
|
+
/** Wait until the operation reaches a terminal state. */
|
|
81
|
+
async wait() {
|
|
82
|
+
return this.inner.wait();
|
|
83
|
+
}
|
|
84
|
+
/** Request cancellation. Cancelling a finished operation is a no-op. */
|
|
85
|
+
async cancel() {
|
|
86
|
+
return this.inner.cancel();
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Ask the backend for this job's current state, and for a server-side job
|
|
90
|
+
* its full record, then cache it for the getters above.
|
|
91
|
+
*/
|
|
92
|
+
async refresh() {
|
|
93
|
+
return this.inner.refresh();
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* This job's recorded lifecycle events.
|
|
97
|
+
*
|
|
98
|
+
* Where the getters above report a terminal result only once the job reaches
|
|
99
|
+
* one, events are written as the job runs and outlive the workers that
|
|
100
|
+
* produced them. A distributed job records a `claim`/`claim_complete` pair
|
|
101
|
+
* per unit of work, each carrying `rows_processed`, so a job that never
|
|
102
|
+
* finishes still accounts for what it did.
|
|
103
|
+
*
|
|
104
|
+
* The server caps results at 1000 rows by default and 10,000 at most, and
|
|
105
|
+
* truncates without saying so, so pass `limit` for a job that emits an event
|
|
106
|
+
* per fragment. `filter` is a SQL-like expression over the `state`,
|
|
107
|
+
* `updated_by`, `emitted_from`, `emitted_by`, and `claim_entity` columns.
|
|
108
|
+
*/
|
|
109
|
+
async events(options) {
|
|
110
|
+
const buf = await this.inner.events(options?.limit, options?.filter);
|
|
111
|
+
if (buf.length === 0) {
|
|
112
|
+
return new apache_arrow_1.Table();
|
|
113
|
+
}
|
|
114
|
+
return (0, apache_arrow_1.tableFromIPC)(buf);
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Every field the handle currently knows, one per line, with the JSON
|
|
118
|
+
* payloads indented -- a refresh job's spec and result are the point of
|
|
119
|
+
* printing it.
|
|
120
|
+
*/
|
|
121
|
+
toString() {
|
|
122
|
+
if (this.state === null) {
|
|
123
|
+
const known = this.id === null ? "" : `id=${JSON.stringify(this.id)}, `;
|
|
124
|
+
return `Job(${known}not refreshed)`;
|
|
125
|
+
}
|
|
126
|
+
const fields = [];
|
|
127
|
+
if (this.id !== null) {
|
|
128
|
+
fields.push(`id=${JSON.stringify(this.id)}`);
|
|
129
|
+
}
|
|
130
|
+
fields.push(`state=${JSON.stringify(this.state)}`);
|
|
131
|
+
if (this.jobType !== null) {
|
|
132
|
+
fields.push(`jobType=${JSON.stringify(this.jobType)}`);
|
|
133
|
+
}
|
|
134
|
+
if (this.creationMs !== null) {
|
|
135
|
+
fields.push(`creationMs=${this.creationMs}`);
|
|
136
|
+
}
|
|
137
|
+
for (const [name, value] of [
|
|
138
|
+
["spec", this.spec],
|
|
139
|
+
["result", this.result],
|
|
140
|
+
]) {
|
|
141
|
+
if (value !== null) {
|
|
142
|
+
fields.push(`${name}=${indentJson(value)}`);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
if (this.failure !== null) {
|
|
146
|
+
fields.push(`failure=${indentJson(this.failure)}`);
|
|
147
|
+
}
|
|
148
|
+
return `Job(${fields.map((field) => `\n${REPR_INDENT}${field},`).join("")}\n)`;
|
|
149
|
+
}
|
|
150
|
+
[Symbol.for("nodejs.util.inspect.custom")]() {
|
|
151
|
+
return this.toString();
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
exports.Job = Job;
|
|
155
|
+
const REPR_INDENT = " ";
|
|
156
|
+
// biome-ignore lint/suspicious/noExplicitAny: shape varies by job type
|
|
157
|
+
function indentJson(value) {
|
|
158
|
+
return JSON.stringify(value, null, 4).replace(/\n/g, `\n${REPR_INDENT}`);
|
|
159
|
+
}
|
|
160
|
+
// biome-ignore lint/suspicious/noExplicitAny: shape varies by job type
|
|
161
|
+
function parseJson(raw) {
|
|
162
|
+
return raw === null || raw === undefined ? null : JSON.parse(raw);
|
|
163
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { RefreshMaterializedViewResult } from "./native";
|
|
2
|
+
import { Table } from "./table";
|
|
3
|
+
/** Schema metadata key holding a materialized view's definition. */
|
|
4
|
+
export declare const DEFINITION_META_KEY = "mv.definition";
|
|
5
|
+
/**
|
|
6
|
+
* The newest stored layout this version reads: `{"format": N, "query": "<SQL>"}`,
|
|
7
|
+
* format 2 being a query with `GROUP BY`, format 3 native pairs and format 4
|
|
8
|
+
* native dedup results.
|
|
9
|
+
*/
|
|
10
|
+
export declare const DEFINITION_FORMAT = 4;
|
|
11
|
+
/**
|
|
12
|
+
* The query that defines a materialized view, as stored:
|
|
13
|
+
* `SELECT columns FROM [ns.]table [, function(args) AS alias | , UNNEST(column) AS alias]
|
|
14
|
+
* [WHERE predicate] [GROUP BY expr, ...] [LIMIT n]`. A Function in `FROM`
|
|
15
|
+
* position yields one row per element it returns.
|
|
16
|
+
*/
|
|
17
|
+
export interface MaterializedViewDefinition {
|
|
18
|
+
/** The defining query, in the canonical spelling the server stores. */
|
|
19
|
+
query: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The view's columns: column names, `[alias, SQL expression]` pairs, or a
|
|
23
|
+
* record of the same. A bare name projects itself.
|
|
24
|
+
*/
|
|
25
|
+
export type MaterializedViewSelect = (string | [string, string])[] | Record<string, string>;
|
|
26
|
+
/**
|
|
27
|
+
* @internal Reject a numeric option N-API would otherwise silently coerce:
|
|
28
|
+
* `Infinity` reaches Rust as 0, `1.5` as 1.
|
|
29
|
+
*/
|
|
30
|
+
export declare function validateNonNegativeInteger(value: number | undefined, name: string): void;
|
|
31
|
+
/**
|
|
32
|
+
* @internal Normalize a select argument into `[alias, expression]` pairs.
|
|
33
|
+
* A bare name projects itself and is quoted, so any valid column name works;
|
|
34
|
+
* pair and record entries are kept verbatim because their right side is an
|
|
35
|
+
* expression.
|
|
36
|
+
*/
|
|
37
|
+
export declare function normalizeSelect(select?: MaterializedViewSelect): [string, string][] | undefined;
|
|
38
|
+
/** @internal Parse a definition off a table's stored schema metadata. */
|
|
39
|
+
export declare function definitionFromMetadata(metadata: Map<string, string>, name: string): MaterializedViewDefinition;
|
|
40
|
+
/** @internal Parse the backend-independent definition returned by native code. */
|
|
41
|
+
export declare function definitionFromJson(raw: string, name: string): MaterializedViewDefinition;
|
|
42
|
+
/**
|
|
43
|
+
* A handle on a materialized view: its table plus its definition.
|
|
44
|
+
*
|
|
45
|
+
* Obtained from {@link Connection#createMaterializedView} or
|
|
46
|
+
* {@link Connection#openMaterializedView}. The view is a normal table --
|
|
47
|
+
* queries, indexes and search all apply through {@link MaterializedView#table}
|
|
48
|
+
* -- whose contents are maintained by {@link MaterializedView#refresh}.
|
|
49
|
+
*/
|
|
50
|
+
export declare class MaterializedView {
|
|
51
|
+
private readonly inner;
|
|
52
|
+
constructor(table: Table);
|
|
53
|
+
get name(): string;
|
|
54
|
+
/** The view, as the table it is. */
|
|
55
|
+
table(): Table;
|
|
56
|
+
/** The query that defines the view. */
|
|
57
|
+
definition(): Promise<MaterializedViewDefinition>;
|
|
58
|
+
/**
|
|
59
|
+
* Recompute the view from its source.
|
|
60
|
+
*
|
|
61
|
+
* The refresh is incremental when the source's changes can be reconciled
|
|
62
|
+
* into the view -- rows added, changed or removed since the last one --
|
|
63
|
+
* and otherwise rebuilds. `full` forces a rebuild; `sourceVersion`
|
|
64
|
+
* refreshes to that source version instead of the latest.
|
|
65
|
+
*
|
|
66
|
+
* Concurrent refreshes of one view do not duplicate its rows. Two that
|
|
67
|
+
* plan the same source rows conflict on commit, and the loser throws
|
|
68
|
+
* rather than writing them a second time.
|
|
69
|
+
*/
|
|
70
|
+
refresh(options?: {
|
|
71
|
+
full?: boolean;
|
|
72
|
+
sourceVersion?: number;
|
|
73
|
+
}): Promise<RefreshMaterializedViewResult>;
|
|
74
|
+
}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
// SPDX-FileCopyrightText: Copyright The LanceDB Authors
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.MaterializedView = exports.DEFINITION_FORMAT = exports.DEFINITION_META_KEY = void 0;
|
|
6
|
+
exports.validateNonNegativeInteger = validateNonNegativeInteger;
|
|
7
|
+
exports.normalizeSelect = normalizeSelect;
|
|
8
|
+
exports.definitionFromMetadata = definitionFromMetadata;
|
|
9
|
+
exports.definitionFromJson = definitionFromJson;
|
|
10
|
+
/** Schema metadata key holding a materialized view's definition. */
|
|
11
|
+
exports.DEFINITION_META_KEY = "mv.definition";
|
|
12
|
+
/**
|
|
13
|
+
* The newest stored layout this version reads: `{"format": N, "query": "<SQL>"}`,
|
|
14
|
+
* format 2 being a query with `GROUP BY`, format 3 native pairs and format 4
|
|
15
|
+
* native dedup results.
|
|
16
|
+
*/
|
|
17
|
+
exports.DEFINITION_FORMAT = 4;
|
|
18
|
+
/**
|
|
19
|
+
* @internal Reject a numeric option N-API would otherwise silently coerce:
|
|
20
|
+
* `Infinity` reaches Rust as 0, `1.5` as 1.
|
|
21
|
+
*/
|
|
22
|
+
function validateNonNegativeInteger(value, name) {
|
|
23
|
+
if (value !== undefined && !(Number.isSafeInteger(value) && value >= 0)) {
|
|
24
|
+
throw new Error(`${name} must be a non-negative integer`);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
/** @internal Quote a column name as a Lance SQL identifier (backticks). */
|
|
28
|
+
function quoteIdentifier(name) {
|
|
29
|
+
return "`" + name.replace(/`/g, "``") + "`";
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @internal Normalize a select argument into `[alias, expression]` pairs.
|
|
33
|
+
* A bare name projects itself and is quoted, so any valid column name works;
|
|
34
|
+
* pair and record entries are kept verbatim because their right side is an
|
|
35
|
+
* expression.
|
|
36
|
+
*/
|
|
37
|
+
function normalizeSelect(select) {
|
|
38
|
+
if (select === undefined) {
|
|
39
|
+
return undefined;
|
|
40
|
+
}
|
|
41
|
+
if (Array.isArray(select)) {
|
|
42
|
+
return select.map((item) => typeof item === "string" ? [item, quoteIdentifier(item)] : item);
|
|
43
|
+
}
|
|
44
|
+
return Object.entries(select);
|
|
45
|
+
}
|
|
46
|
+
/** @internal Parse a definition off a table's stored schema metadata. */
|
|
47
|
+
function definitionFromMetadata(metadata, name) {
|
|
48
|
+
const raw = metadata.get(exports.DEFINITION_META_KEY);
|
|
49
|
+
if (raw === undefined) {
|
|
50
|
+
throw new Error(`Table '${name}' is not a materialized view`);
|
|
51
|
+
}
|
|
52
|
+
return definitionFromJson(raw, name);
|
|
53
|
+
}
|
|
54
|
+
/** @internal Parse the backend-independent definition returned by native code. */
|
|
55
|
+
function definitionFromJson(raw, name) {
|
|
56
|
+
// biome-ignore lint/suspicious/noExplicitAny: raw JSON
|
|
57
|
+
const value = JSON.parse(raw);
|
|
58
|
+
if (value.format !== undefined) {
|
|
59
|
+
// A newer writer's layout is reported, never guessed at.
|
|
60
|
+
if (!Number.isInteger(value.format) || value.format > exports.DEFINITION_FORMAT) {
|
|
61
|
+
throw new Error(`materialized view '${name}' is stored in format ${value.format}, ` +
|
|
62
|
+
"which this version of lancedb cannot refresh");
|
|
63
|
+
}
|
|
64
|
+
return { query: value.query };
|
|
65
|
+
}
|
|
66
|
+
// The structured layout written before the format number.
|
|
67
|
+
if (value.kind !== "select" && value.kind !== "namespaced_select") {
|
|
68
|
+
throw new Error(`materialized view '${name}' is stored in format kind '${value.kind}', ` +
|
|
69
|
+
"which this version of lancedb cannot refresh");
|
|
70
|
+
}
|
|
71
|
+
const limit = value.limit ?? undefined;
|
|
72
|
+
// JSON.parse rounds integers past 2^53; every exact u64 parses to a safe
|
|
73
|
+
// integer and every rounded one does not, so this rejects precisely the
|
|
74
|
+
// values a number cannot carry.
|
|
75
|
+
if (limit !== undefined && !Number.isSafeInteger(limit)) {
|
|
76
|
+
throw new Error(`materialized view '${name}' has a stored limit too large to represent exactly`);
|
|
77
|
+
}
|
|
78
|
+
return { query: legacyQuery(value, limit) };
|
|
79
|
+
}
|
|
80
|
+
function legacyIdent(name) {
|
|
81
|
+
return /^[a-z_][a-z0-9_]*$/.test(name)
|
|
82
|
+
? name
|
|
83
|
+
: `\`${name.replace(/`/g, "``")}\``;
|
|
84
|
+
}
|
|
85
|
+
/** Render the pre-format structured layout as the query it described. */
|
|
86
|
+
// biome-ignore lint/suspicious/noExplicitAny: raw JSON
|
|
87
|
+
function legacyQuery(value, limit) {
|
|
88
|
+
// biome-ignore lint/suspicious/noExplicitAny: raw JSON
|
|
89
|
+
const projections = value.projections ?? [];
|
|
90
|
+
const columns = projections.length === 0
|
|
91
|
+
? "*"
|
|
92
|
+
: projections
|
|
93
|
+
.map((p) => p.expression === p.output || p.expression === `\`${p.output}\``
|
|
94
|
+
? p.expression
|
|
95
|
+
: `${p.expression} AS ${legacyIdent(p.output)}`)
|
|
96
|
+
.join(", ");
|
|
97
|
+
const table = [...(value.source_namespace ?? []), value.source_table]
|
|
98
|
+
.map(legacyIdent)
|
|
99
|
+
.join(".");
|
|
100
|
+
let query = `SELECT ${columns} FROM ${table}`;
|
|
101
|
+
if (value.filter !== undefined && value.filter !== null) {
|
|
102
|
+
query += ` WHERE ${value.filter}`;
|
|
103
|
+
}
|
|
104
|
+
if (limit !== undefined) {
|
|
105
|
+
query += ` LIMIT ${limit}`;
|
|
106
|
+
}
|
|
107
|
+
return query;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* A handle on a materialized view: its table plus its definition.
|
|
111
|
+
*
|
|
112
|
+
* Obtained from {@link Connection#createMaterializedView} or
|
|
113
|
+
* {@link Connection#openMaterializedView}. The view is a normal table --
|
|
114
|
+
* queries, indexes and search all apply through {@link MaterializedView#table}
|
|
115
|
+
* -- whose contents are maintained by {@link MaterializedView#refresh}.
|
|
116
|
+
*/
|
|
117
|
+
class MaterializedView {
|
|
118
|
+
inner;
|
|
119
|
+
constructor(table) {
|
|
120
|
+
this.inner = table;
|
|
121
|
+
}
|
|
122
|
+
get name() {
|
|
123
|
+
return this.inner.name;
|
|
124
|
+
}
|
|
125
|
+
/** The view, as the table it is. */
|
|
126
|
+
table() {
|
|
127
|
+
return this.inner;
|
|
128
|
+
}
|
|
129
|
+
/** The query that defines the view. */
|
|
130
|
+
async definition() {
|
|
131
|
+
return definitionFromJson(await this.inner.materializedViewDefinition(), this.name);
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Recompute the view from its source.
|
|
135
|
+
*
|
|
136
|
+
* The refresh is incremental when the source's changes can be reconciled
|
|
137
|
+
* into the view -- rows added, changed or removed since the last one --
|
|
138
|
+
* and otherwise rebuilds. `full` forces a rebuild; `sourceVersion`
|
|
139
|
+
* refreshes to that source version instead of the latest.
|
|
140
|
+
*
|
|
141
|
+
* Concurrent refreshes of one view do not duplicate its rows. Two that
|
|
142
|
+
* plan the same source rows conflict on commit, and the loser throws
|
|
143
|
+
* rather than writing them a second time.
|
|
144
|
+
*/
|
|
145
|
+
async refresh(options) {
|
|
146
|
+
validateNonNegativeInteger(options?.sourceVersion, "sourceVersion");
|
|
147
|
+
return await this.inner.refreshMaterializedView(options?.full, options?.sourceVersion);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
exports.MaterializedView = MaterializedView;
|