@skastr0/pulsar-core 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/backpressure.d.ts +31 -0
- package/dist/backpressure.d.ts.map +1 -0
- package/dist/backpressure.js +206 -0
- package/dist/backpressure.js.map +1 -0
- package/dist/baseline.d.ts +91 -0
- package/dist/baseline.d.ts.map +1 -0
- package/dist/baseline.js +139 -0
- package/dist/baseline.js.map +1 -0
- package/dist/bypass.d.ts +14 -0
- package/dist/bypass.d.ts.map +1 -0
- package/dist/bypass.js +47 -0
- package/dist/bypass.js.map +1 -0
- package/dist/cache-disk.d.ts +4 -0
- package/dist/cache-disk.d.ts.map +1 -0
- package/dist/cache-disk.js +212 -0
- package/dist/cache-disk.js.map +1 -0
- package/dist/cache.d.ts +62 -0
- package/dist/cache.d.ts.map +1 -0
- package/dist/cache.js +87 -0
- package/dist/cache.js.map +1 -0
- package/dist/calibration-context.d.ts +7 -0
- package/dist/calibration-context.d.ts.map +1 -0
- package/dist/calibration-context.js +40 -0
- package/dist/calibration-context.js.map +1 -0
- package/dist/calibration-fingerprint.d.ts +28 -0
- package/dist/calibration-fingerprint.d.ts.map +1 -0
- package/dist/calibration-fingerprint.js +67 -0
- package/dist/calibration-fingerprint.js.map +1 -0
- package/dist/calibration-model.d.ts +103 -0
- package/dist/calibration-model.d.ts.map +1 -0
- package/dist/calibration-model.js +44 -0
- package/dist/calibration-model.js.map +1 -0
- package/dist/calibration-slot-values.d.ts +232 -0
- package/dist/calibration-slot-values.d.ts.map +1 -0
- package/dist/calibration-slot-values.js +2 -0
- package/dist/calibration-slot-values.js.map +1 -0
- package/dist/calibration.d.ts +4 -0
- package/dist/calibration.d.ts.map +1 -0
- package/dist/calibration.js +4 -0
- package/dist/calibration.js.map +1 -0
- package/dist/category.d.ts +6 -0
- package/dist/category.d.ts.map +1 -0
- package/dist/category.js +12 -0
- package/dist/category.js.map +1 -0
- package/dist/concurrency.d.ts +2 -0
- package/dist/concurrency.d.ts.map +1 -0
- package/dist/concurrency.js +15 -0
- package/dist/concurrency.js.map +1 -0
- package/dist/context.d.ts +40 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/context.js +28 -0
- package/dist/context.js.map +1 -0
- package/dist/conventions.d.ts +110 -0
- package/dist/conventions.d.ts.map +1 -0
- package/dist/conventions.js +40 -0
- package/dist/conventions.js.map +1 -0
- package/dist/dedupe-by-key.d.ts +2 -0
- package/dist/dedupe-by-key.d.ts.map +1 -0
- package/dist/dedupe-by-key.js +13 -0
- package/dist/dedupe-by-key.js.map +1 -0
- package/dist/diagnostic.d.ts +26 -0
- package/dist/diagnostic.d.ts.map +1 -0
- package/dist/diagnostic.js +34 -0
- package/dist/diagnostic.js.map +1 -0
- package/dist/distribution.d.ts +18 -0
- package/dist/distribution.d.ts.map +1 -0
- package/dist/distribution.js +44 -0
- package/dist/distribution.js.map +1 -0
- package/dist/edit-distance.d.ts +2 -0
- package/dist/edit-distance.d.ts.map +1 -0
- package/dist/edit-distance.js +21 -0
- package/dist/edit-distance.js.map +1 -0
- package/dist/elicitation/proposal-ai-assisted-mode.d.ts +9 -0
- package/dist/elicitation/proposal-ai-assisted-mode.d.ts.map +1 -0
- package/dist/elicitation/proposal-ai-assisted-mode.js +37 -0
- package/dist/elicitation/proposal-ai-assisted-mode.js.map +1 -0
- package/dist/elicitation/proposal-passive.d.ts +12 -0
- package/dist/elicitation/proposal-passive.d.ts.map +1 -0
- package/dist/elicitation/proposal-passive.js +62 -0
- package/dist/elicitation/proposal-passive.js.map +1 -0
- package/dist/elicitation/proposal-resolution.d.ts +11 -0
- package/dist/elicitation/proposal-resolution.d.ts.map +1 -0
- package/dist/elicitation/proposal-resolution.js +43 -0
- package/dist/elicitation/proposal-resolution.js.map +1 -0
- package/dist/elicitation/proposal-revealed-preference.d.ts +21 -0
- package/dist/elicitation/proposal-revealed-preference.d.ts.map +1 -0
- package/dist/elicitation/proposal-revealed-preference.js +72 -0
- package/dist/elicitation/proposal-revealed-preference.js.map +1 -0
- package/dist/elicitation/proposal-schema.d.ts +62 -0
- package/dist/elicitation/proposal-schema.d.ts.map +1 -0
- package/dist/elicitation/proposal-schema.js +39 -0
- package/dist/elicitation/proposal-schema.js.map +1 -0
- package/dist/elicitation/proposal-utils.d.ts +6 -0
- package/dist/elicitation/proposal-utils.d.ts.map +1 -0
- package/dist/elicitation/proposal-utils.js +7 -0
- package/dist/elicitation/proposal-utils.js.map +1 -0
- package/dist/elicitation/proposals.d.ts +6 -0
- package/dist/elicitation/proposals.d.ts.map +1 -0
- package/dist/elicitation/proposals.js +6 -0
- package/dist/elicitation/proposals.js.map +1 -0
- package/dist/elicitation/quiz.d.ts +72 -0
- package/dist/elicitation/quiz.d.ts.map +1 -0
- package/dist/elicitation/quiz.js +189 -0
- package/dist/elicitation/quiz.js.map +1 -0
- package/dist/elicitation/revealed-preference.d.ts +24 -0
- package/dist/elicitation/revealed-preference.d.ts.map +1 -0
- package/dist/elicitation/revealed-preference.js +101 -0
- package/dist/elicitation/revealed-preference.js.map +1 -0
- package/dist/elicitation.d.ts +5 -0
- package/dist/elicitation.d.ts.map +1 -0
- package/dist/elicitation.js +5 -0
- package/dist/elicitation.js.map +1 -0
- package/dist/enforcement.d.ts +13 -0
- package/dist/enforcement.d.ts.map +1 -0
- package/dist/enforcement.js +31 -0
- package/dist/enforcement.js.map +1 -0
- package/dist/errors.d.ts +132 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +76 -0
- package/dist/errors.js.map +1 -0
- package/dist/factor-ledger.d.ts +38 -0
- package/dist/factor-ledger.d.ts.map +1 -0
- package/dist/factor-ledger.js +184 -0
- package/dist/factor-ledger.js.map +1 -0
- package/dist/factor-policy-ledger.d.ts +12 -0
- package/dist/factor-policy-ledger.d.ts.map +1 -0
- package/dist/factor-policy-ledger.js +48 -0
- package/dist/factor-policy-ledger.js.map +1 -0
- package/dist/factors.d.ts +4 -0
- package/dist/factors.d.ts.map +1 -0
- package/dist/factors.js +3 -0
- package/dist/factors.js.map +1 -0
- package/dist/file-taxonomy.d.ts +10 -0
- package/dist/file-taxonomy.d.ts.map +1 -0
- package/dist/file-taxonomy.js +171 -0
- package/dist/file-taxonomy.js.map +1 -0
- package/dist/globs.d.ts +3 -0
- package/dist/globs.d.ts.map +1 -0
- package/dist/globs.js +24 -0
- package/dist/globs.js.map +1 -0
- package/dist/glossary.d.ts +137 -0
- package/dist/glossary.d.ts.map +1 -0
- package/dist/glossary.js +51 -0
- package/dist/glossary.js.map +1 -0
- package/dist/goodhart.d.ts +31 -0
- package/dist/goodhart.d.ts.map +1 -0
- package/dist/goodhart.js +176 -0
- package/dist/goodhart.js.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -0
- package/dist/input-outputs.d.ts +3 -0
- package/dist/input-outputs.d.ts.map +1 -0
- package/dist/input-outputs.js +10 -0
- package/dist/input-outputs.js.map +1 -0
- package/dist/observer-categories.d.ts +7 -0
- package/dist/observer-categories.d.ts.map +1 -0
- package/dist/observer-categories.js +158 -0
- package/dist/observer-categories.js.map +1 -0
- package/dist/observer-execution.d.ts +23 -0
- package/dist/observer-execution.d.ts.map +1 -0
- package/dist/observer-execution.js +130 -0
- package/dist/observer-execution.js.map +1 -0
- package/dist/observer-json.d.ts +319 -0
- package/dist/observer-json.d.ts.map +1 -0
- package/dist/observer-json.js +153 -0
- package/dist/observer-json.js.map +1 -0
- package/dist/observer-local-pressure.d.ts +5 -0
- package/dist/observer-local-pressure.d.ts.map +1 -0
- package/dist/observer-local-pressure.js +9 -0
- package/dist/observer-local-pressure.js.map +1 -0
- package/dist/observer-minimum.d.ts +26 -0
- package/dist/observer-minimum.d.ts.map +1 -0
- package/dist/observer-minimum.js +94 -0
- package/dist/observer-minimum.js.map +1 -0
- package/dist/observer-model.d.ts +129 -0
- package/dist/observer-model.d.ts.map +1 -0
- package/dist/observer-model.js +2 -0
- package/dist/observer-model.js.map +1 -0
- package/dist/observer-readiness.d.ts +6 -0
- package/dist/observer-readiness.d.ts.map +1 -0
- package/dist/observer-readiness.js +131 -0
- package/dist/observer-readiness.js.map +1 -0
- package/dist/observer-score-utils.d.ts +8 -0
- package/dist/observer-score-utils.d.ts.map +1 -0
- package/dist/observer-score-utils.js +17 -0
- package/dist/observer-score-utils.js.map +1 -0
- package/dist/observer-serializer.d.ts +3 -0
- package/dist/observer-serializer.d.ts.map +1 -0
- package/dist/observer-serializer.js +66 -0
- package/dist/observer-serializer.js.map +1 -0
- package/dist/observer-time.d.ts +3 -0
- package/dist/observer-time.d.ts.map +1 -0
- package/dist/observer-time.js +7 -0
- package/dist/observer-time.js.map +1 -0
- package/dist/observer-weighted-mean.d.ts +4 -0
- package/dist/observer-weighted-mean.d.ts.map +1 -0
- package/dist/observer-weighted-mean.js +17 -0
- package/dist/observer-weighted-mean.js.map +1 -0
- package/dist/observer.d.ts +26 -0
- package/dist/observer.d.ts.map +1 -0
- package/dist/observer.js +63 -0
- package/dist/observer.js.map +1 -0
- package/dist/presets.d.ts +11 -0
- package/dist/presets.d.ts.map +1 -0
- package/dist/presets.js +52 -0
- package/dist/presets.js.map +1 -0
- package/dist/reference-data-loader.d.ts +6 -0
- package/dist/reference-data-loader.d.ts.map +1 -0
- package/dist/reference-data-loader.js +53 -0
- package/dist/reference-data-loader.js.map +1 -0
- package/dist/reference-data.d.ts +6 -0
- package/dist/reference-data.d.ts.map +1 -0
- package/dist/reference-data.js +6 -0
- package/dist/reference-data.js.map +1 -0
- package/dist/registry.d.ts +16 -0
- package/dist/registry.d.ts.map +1 -0
- package/dist/registry.js +174 -0
- package/dist/registry.js.map +1 -0
- package/dist/review-plan.d.ts +30 -0
- package/dist/review-plan.d.ts.map +1 -0
- package/dist/review-plan.js +235 -0
- package/dist/review-plan.js.map +1 -0
- package/dist/routing-context-payload.d.ts +20 -0
- package/dist/routing-context-payload.d.ts.map +1 -0
- package/dist/routing-context-payload.js +58 -0
- package/dist/routing-context-payload.js.map +1 -0
- package/dist/routing-matching.d.ts +10 -0
- package/dist/routing-matching.d.ts.map +1 -0
- package/dist/routing-matching.js +74 -0
- package/dist/routing-matching.js.map +1 -0
- package/dist/routing-pattern-catalog.d.ts +7 -0
- package/dist/routing-pattern-catalog.d.ts.map +1 -0
- package/dist/routing-pattern-catalog.js +120 -0
- package/dist/routing-pattern-catalog.js.map +1 -0
- package/dist/routing-schema.d.ts +162 -0
- package/dist/routing-schema.d.ts.map +1 -0
- package/dist/routing-schema.js +75 -0
- package/dist/routing-schema.js.map +1 -0
- package/dist/routing.d.ts +14 -0
- package/dist/routing.d.ts.map +1 -0
- package/dist/routing.js +35 -0
- package/dist/routing.js.map +1 -0
- package/dist/runner.d.ts +26 -0
- package/dist/runner.d.ts.map +1 -0
- package/dist/runner.js +72 -0
- package/dist/runner.js.map +1 -0
- package/dist/scoring-engine-contract.d.ts +43 -0
- package/dist/scoring-engine-contract.d.ts.map +1 -0
- package/dist/scoring-engine-contract.js +42 -0
- package/dist/scoring-engine-contract.js.map +1 -0
- package/dist/scoring-engine-git-content-hash.d.ts +12 -0
- package/dist/scoring-engine-git-content-hash.d.ts.map +1 -0
- package/dist/scoring-engine-git-content-hash.js +154 -0
- package/dist/scoring-engine-git-content-hash.js.map +1 -0
- package/dist/scoring-engine-git-diff.d.ts +10 -0
- package/dist/scoring-engine-git-diff.d.ts.map +1 -0
- package/dist/scoring-engine-git-diff.js +103 -0
- package/dist/scoring-engine-git-diff.js.map +1 -0
- package/dist/scoring-engine-git-paths.d.ts +2 -0
- package/dist/scoring-engine-git-paths.d.ts.map +1 -0
- package/dist/scoring-engine-git-paths.js +17 -0
- package/dist/scoring-engine-git-paths.js.map +1 -0
- package/dist/scoring-engine-git-range.d.ts +9 -0
- package/dist/scoring-engine-git-range.d.ts.map +1 -0
- package/dist/scoring-engine-git-range.js +19 -0
- package/dist/scoring-engine-git-range.js.map +1 -0
- package/dist/scoring-engine-git-run.d.ts +7 -0
- package/dist/scoring-engine-git-run.d.ts.map +1 -0
- package/dist/scoring-engine-git-run.js +32 -0
- package/dist/scoring-engine-git-run.js.map +1 -0
- package/dist/scoring-engine-git-worktree.d.ts +9 -0
- package/dist/scoring-engine-git-worktree.d.ts.map +1 -0
- package/dist/scoring-engine-git-worktree.js +83 -0
- package/dist/scoring-engine-git-worktree.js.map +1 -0
- package/dist/scoring-engine-git.d.ts +5 -0
- package/dist/scoring-engine-git.d.ts.map +1 -0
- package/dist/scoring-engine-git.js +5 -0
- package/dist/scoring-engine-git.js.map +1 -0
- package/dist/scoring-engine-layer.d.ts +12 -0
- package/dist/scoring-engine-layer.d.ts.map +1 -0
- package/dist/scoring-engine-layer.js +48 -0
- package/dist/scoring-engine-layer.js.map +1 -0
- package/dist/scoring-engine-observe.d.ts +50 -0
- package/dist/scoring-engine-observe.d.ts.map +1 -0
- package/dist/scoring-engine-observe.js +77 -0
- package/dist/scoring-engine-observe.js.map +1 -0
- package/dist/scoring-engine-observer-cache.d.ts +36 -0
- package/dist/scoring-engine-observer-cache.d.ts.map +1 -0
- package/dist/scoring-engine-observer-cache.js +115 -0
- package/dist/scoring-engine-observer-cache.js.map +1 -0
- package/dist/scoring-engine-runtime.d.ts +25 -0
- package/dist/scoring-engine-runtime.d.ts.map +1 -0
- package/dist/scoring-engine-runtime.js +49 -0
- package/dist/scoring-engine-runtime.js.map +1 -0
- package/dist/scoring-engine-score-execution.d.ts +24 -0
- package/dist/scoring-engine-score-execution.d.ts.map +1 -0
- package/dist/scoring-engine-score-execution.js +71 -0
- package/dist/scoring-engine-score-execution.js.map +1 -0
- package/dist/scoring-engine-score.d.ts +13 -0
- package/dist/scoring-engine-score.d.ts.map +1 -0
- package/dist/scoring-engine-score.js +28 -0
- package/dist/scoring-engine-score.js.map +1 -0
- package/dist/scoring-engine.d.ts +5 -0
- package/dist/scoring-engine.d.ts.map +1 -0
- package/dist/scoring-engine.js +5 -0
- package/dist/scoring-engine.js.map +1 -0
- package/dist/scoring.d.ts +9 -0
- package/dist/scoring.d.ts.map +1 -0
- package/dist/scoring.js +9 -0
- package/dist/scoring.js.map +1 -0
- package/dist/shared-02-aggregation.d.ts +31 -0
- package/dist/shared-02-aggregation.d.ts.map +1 -0
- package/dist/shared-02-aggregation.js +63 -0
- package/dist/shared-02-aggregation.js.map +1 -0
- package/dist/shared-02-bus-factor.d.ts +37 -0
- package/dist/shared-02-bus-factor.d.ts.map +1 -0
- package/dist/shared-02-bus-factor.js +195 -0
- package/dist/shared-02-bus-factor.js.map +1 -0
- package/dist/shared-02-history.d.ts +7 -0
- package/dist/shared-02-history.d.ts.map +1 -0
- package/dist/shared-02-history.js +9 -0
- package/dist/shared-02-history.js.map +1 -0
- package/dist/shared-03-churn-rate.d.ts +47 -0
- package/dist/shared-03-churn-rate.d.ts.map +1 -0
- package/dist/shared-03-churn-rate.js +187 -0
- package/dist/shared-03-churn-rate.js.map +1 -0
- package/dist/shared-03-compute.d.ts +4 -0
- package/dist/shared-03-compute.d.ts.map +1 -0
- package/dist/shared-03-compute.js +84 -0
- package/dist/shared-03-compute.js.map +1 -0
- package/dist/shared-03-line-matching.d.ts +2 -0
- package/dist/shared-03-line-matching.d.ts.map +1 -0
- package/dist/shared-03-line-matching.js +119 -0
- package/dist/shared-03-line-matching.js.map +1 -0
- package/dist/shared-churn-01.d.ts +24 -0
- package/dist/shared-churn-01.d.ts.map +1 -0
- package/dist/shared-churn-01.js +107 -0
- package/dist/shared-churn-01.js.map +1 -0
- package/dist/shared-history-authors.d.ts +5 -0
- package/dist/shared-history-authors.d.ts.map +1 -0
- package/dist/shared-history-authors.js +77 -0
- package/dist/shared-history-authors.js.map +1 -0
- package/dist/shared-history-defaults.d.ts +2 -0
- package/dist/shared-history-defaults.d.ts.map +1 -0
- package/dist/shared-history-defaults.js +73 -0
- package/dist/shared-history-defaults.js.map +1 -0
- package/dist/shared-history-files.d.ts +3 -0
- package/dist/shared-history-files.d.ts.map +1 -0
- package/dist/shared-history-files.js +19 -0
- package/dist/shared-history-files.js.map +1 -0
- package/dist/shared-history-filter.d.ts +10 -0
- package/dist/shared-history-filter.d.ts.map +1 -0
- package/dist/shared-history-filter.js +10 -0
- package/dist/shared-history-filter.js.map +1 -0
- package/dist/shared-history-git.d.ts +7 -0
- package/dist/shared-history-git.d.ts.map +1 -0
- package/dist/shared-history-git.js +45 -0
- package/dist/shared-history-git.js.map +1 -0
- package/dist/shared-history-lines.d.ts +4 -0
- package/dist/shared-history-lines.d.ts.map +1 -0
- package/dist/shared-history-lines.js +139 -0
- package/dist/shared-history-lines.js.map +1 -0
- package/dist/shared-history.d.ts +6 -0
- package/dist/shared-history.d.ts.map +1 -0
- package/dist/shared-history.js +6 -0
- package/dist/shared-history.js.map +1 -0
- package/dist/shared-signals.d.ts +4 -0
- package/dist/shared-signals.d.ts.map +1 -0
- package/dist/shared-signals.js +4 -0
- package/dist/shared-signals.js.map +1 -0
- package/dist/signal-api.d.ts +16 -0
- package/dist/signal-api.d.ts.map +1 -0
- package/dist/signal-api.js +13 -0
- package/dist/signal-api.js.map +1 -0
- package/dist/signal-factor-model.d.ts +53 -0
- package/dist/signal-factor-model.d.ts.map +1 -0
- package/dist/signal-factor-model.js +2 -0
- package/dist/signal-factor-model.js.map +1 -0
- package/dist/signal-runtime.d.ts +13 -0
- package/dist/signal-runtime.d.ts.map +1 -0
- package/dist/signal-runtime.js +2 -0
- package/dist/signal-runtime.js.map +1 -0
- package/dist/signal-score-utils.d.ts +2 -0
- package/dist/signal-score-utils.d.ts.map +1 -0
- package/dist/signal-score-utils.js +6 -0
- package/dist/signal-score-utils.js.map +1 -0
- package/dist/signal.d.ts +113 -0
- package/dist/signal.d.ts.map +1 -0
- package/dist/signal.js +2 -0
- package/dist/signal.js.map +1 -0
- package/dist/state-paths.d.ts +7 -0
- package/dist/state-paths.d.ts.map +1 -0
- package/dist/state-paths.js +32 -0
- package/dist/state-paths.js.map +1 -0
- package/dist/tier.d.ts +14 -0
- package/dist/tier.d.ts.map +1 -0
- package/dist/tier.js +12 -0
- package/dist/tier.js.map +1 -0
- package/dist/time-series-compaction-types.d.ts +6 -0
- package/dist/time-series-compaction-types.d.ts.map +1 -0
- package/dist/time-series-compaction-types.js +2 -0
- package/dist/time-series-compaction-types.js.map +1 -0
- package/dist/time-series-compaction.d.ts +3 -0
- package/dist/time-series-compaction.d.ts.map +1 -0
- package/dist/time-series-compaction.js +138 -0
- package/dist/time-series-compaction.js.map +1 -0
- package/dist/time-series-dates.d.ts +8 -0
- package/dist/time-series-dates.d.ts.map +1 -0
- package/dist/time-series-dates.js +43 -0
- package/dist/time-series-dates.js.map +1 -0
- package/dist/time-series-metadata.d.ts +6 -0
- package/dist/time-series-metadata.d.ts.map +1 -0
- package/dist/time-series-metadata.js +72 -0
- package/dist/time-series-metadata.js.map +1 -0
- package/dist/time-series-model.d.ts +419 -0
- package/dist/time-series-model.d.ts.map +1 -0
- package/dist/time-series-model.js +51 -0
- package/dist/time-series-model.js.map +1 -0
- package/dist/time-series-readiness.d.ts +4 -0
- package/dist/time-series-readiness.d.ts.map +1 -0
- package/dist/time-series-readiness.js +82 -0
- package/dist/time-series-readiness.js.map +1 -0
- package/dist/time-series-storage.d.ts +15 -0
- package/dist/time-series-storage.d.ts.map +1 -0
- package/dist/time-series-storage.js +124 -0
- package/dist/time-series-storage.js.map +1 -0
- package/dist/time-series.d.ts +6 -0
- package/dist/time-series.d.ts.map +1 -0
- package/dist/time-series.js +98 -0
- package/dist/time-series.js.map +1 -0
- package/dist/vector-ai-mode.d.ts +10 -0
- package/dist/vector-ai-mode.d.ts.map +1 -0
- package/dist/vector-ai-mode.js +41 -0
- package/dist/vector-ai-mode.js.map +1 -0
- package/dist/vector-backpressure-config.d.ts +3 -0
- package/dist/vector-backpressure-config.d.ts.map +1 -0
- package/dist/vector-backpressure-config.js +18 -0
- package/dist/vector-backpressure-config.js.map +1 -0
- package/dist/vector-observer-config.d.ts +7 -0
- package/dist/vector-observer-config.d.ts.map +1 -0
- package/dist/vector-observer-config.js +24 -0
- package/dist/vector-observer-config.js.map +1 -0
- package/dist/vector-provenance.d.ts +3 -0
- package/dist/vector-provenance.d.ts.map +1 -0
- package/dist/vector-provenance.js +5 -0
- package/dist/vector-provenance.js.map +1 -0
- package/dist/vector-resolution.d.ts +25 -0
- package/dist/vector-resolution.d.ts.map +1 -0
- package/dist/vector-resolution.js +82 -0
- package/dist/vector-resolution.js.map +1 -0
- package/dist/vector-schema.d.ts +435 -0
- package/dist/vector-schema.d.ts.map +1 -0
- package/dist/vector-schema.js +158 -0
- package/dist/vector-schema.js.map +1 -0
- package/dist/vector.d.ts +3 -0
- package/dist/vector.d.ts.map +1 -0
- package/dist/vector.js +3 -0
- package/dist/vector.js.map +1 -0
- package/package.json +106 -0
- package/presets/ai-slop-defense.json +28 -0
- package/presets/domain-purist.json +15 -0
- package/presets/refactor-friendly.json +18 -0
- package/presets/security-paranoid.json +20 -0
- package/presets/strict-type-safety.json +15 -0
- package/presets/velocity-first.json +32 -0
- package/quiz-items/typescript.json +602 -0
- package/routing-patterns/api-surface-change.json +17 -0
- package/routing-patterns/auth-paths-touched.json +16 -0
- package/routing-patterns/crypto-import-added.json +21 -0
- package/routing-patterns/domain-term-drift.json +17 -0
- package/routing-patterns/migration-added.json +13 -0
- package/routing-patterns/unsafe-added.json +17 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { Context, Effect, Schema } from "effect";
|
|
2
|
+
import type { CalibrationSlotValues } from "./calibration-slot-values.js";
|
|
3
|
+
export type * from "./calibration-slot-values.js";
|
|
4
|
+
export declare const CALIBRATION_SLOT_IDS: readonly ["taxonomy.file-classifier", "language-pack-activation", "typescript.noop-classifier", "typescript.clone-group-policy", "typescript.dependency-resolver", "typescript.suppression-justifier", "typescript.callback-context-namer", "typescript.export-reachability", "typescript.unfinished-implementation-policy", "typescript.unsafe-type-policy", "typescript.type-coupling-policy", "typescript.dependency-version-policy", "typescript.pr-size-policy", "shared.bus-factor-policy", "shared.churn-rate-policy", "mixer.category-policy"];
|
|
5
|
+
export declare const CalibrationSlotId: Schema.Literal<["taxonomy.file-classifier", "language-pack-activation", "typescript.noop-classifier", "typescript.clone-group-policy", "typescript.dependency-resolver", "typescript.suppression-justifier", "typescript.callback-context-namer", "typescript.export-reachability", "typescript.unfinished-implementation-policy", "typescript.unsafe-type-policy", "typescript.type-coupling-policy", "typescript.dependency-version-policy", "typescript.pr-size-policy", "shared.bus-factor-policy", "shared.churn-rate-policy", "mixer.category-policy"]>;
|
|
6
|
+
export type CalibrationSlotId = typeof CalibrationSlotId.Type;
|
|
7
|
+
export declare const CalibrationProcessorRole: Schema.Literal<["filter", "resolver", "normalizer", "compressor", "enricher", "factor-policy", "mixer-policy"]>;
|
|
8
|
+
export type CalibrationProcessorRole = typeof CalibrationProcessorRole.Type;
|
|
9
|
+
export declare const CalibrationConfidence: Schema.Literal<["high", "medium", "low"]>;
|
|
10
|
+
export type CalibrationConfidence = typeof CalibrationConfidence.Type;
|
|
11
|
+
export declare const SourceCategory: Schema.Literal<["production_source", "test_code", "test_utility", "example", "generated", "config_tooling", "declaration", "build_artifact", "dependency", "hidden_tooling", "documentation", "stories", "unknown"]>;
|
|
12
|
+
export type SourceCategory = typeof SourceCategory.Type;
|
|
13
|
+
export interface CalibrationEvidenceRef {
|
|
14
|
+
readonly kind: string;
|
|
15
|
+
readonly value: string;
|
|
16
|
+
readonly metadata?: Readonly<Record<string, unknown>>;
|
|
17
|
+
}
|
|
18
|
+
export interface CalibrationDecision {
|
|
19
|
+
readonly moduleId: string;
|
|
20
|
+
readonly processorId: string;
|
|
21
|
+
readonly slot: CalibrationSlotId;
|
|
22
|
+
readonly action: string;
|
|
23
|
+
readonly confidence: CalibrationConfidence;
|
|
24
|
+
readonly reason: string;
|
|
25
|
+
readonly ruleId?: string;
|
|
26
|
+
readonly factorPaths?: ReadonlyArray<string>;
|
|
27
|
+
readonly before?: unknown;
|
|
28
|
+
readonly after?: unknown;
|
|
29
|
+
readonly evidence: ReadonlyArray<CalibrationEvidenceRef>;
|
|
30
|
+
}
|
|
31
|
+
export interface CalibrationSlotResult<Value> {
|
|
32
|
+
readonly value: Value;
|
|
33
|
+
readonly decisions: ReadonlyArray<CalibrationDecision>;
|
|
34
|
+
}
|
|
35
|
+
export declare const unchangedCalibrationResult: <Value>(value: Value) => CalibrationSlotResult<Value>;
|
|
36
|
+
export declare const appendCalibrationDecision: <Value>(result: CalibrationSlotResult<Value>, decision: CalibrationDecision, nextValue?: Value) => CalibrationSlotResult<Value>;
|
|
37
|
+
export interface CalibrationSlots extends CalibrationSlotValues {
|
|
38
|
+
}
|
|
39
|
+
export type CalibrationSlotInput<Slot extends CalibrationSlotId> = CalibrationSlots[Slot];
|
|
40
|
+
export type CalibrationSlotOutput<Slot extends CalibrationSlotId> = CalibrationSlotResult<CalibrationSlots[Slot]>;
|
|
41
|
+
export declare const ProjectModuleScope: Schema.Literal<["core", "language", "ecosystem", "technology", "framework", "organization", "repository"]>;
|
|
42
|
+
export type ProjectModuleScope = typeof ProjectModuleScope.Type;
|
|
43
|
+
export interface ProjectModuleContribution {
|
|
44
|
+
readonly slot: CalibrationSlotId;
|
|
45
|
+
readonly processorId: string;
|
|
46
|
+
readonly role: CalibrationProcessorRole;
|
|
47
|
+
readonly priority: number;
|
|
48
|
+
readonly fingerprint: string;
|
|
49
|
+
}
|
|
50
|
+
export interface ProjectModuleDescriptor {
|
|
51
|
+
readonly id: string;
|
|
52
|
+
readonly version: string;
|
|
53
|
+
readonly scope: ProjectModuleScope;
|
|
54
|
+
readonly source: "builtin" | "package" | "workspace" | "repo-local";
|
|
55
|
+
readonly sourceRef?: string;
|
|
56
|
+
readonly sourceFingerprint?: string;
|
|
57
|
+
readonly configHash?: string;
|
|
58
|
+
readonly contributions: ReadonlyArray<ProjectModuleContribution>;
|
|
59
|
+
}
|
|
60
|
+
export interface ActiveProjectModule extends ProjectModuleDescriptor {
|
|
61
|
+
readonly fingerprint: string;
|
|
62
|
+
}
|
|
63
|
+
export interface RepoFacts {
|
|
64
|
+
readonly repoRoot: string;
|
|
65
|
+
readonly fingerprint: string;
|
|
66
|
+
readonly detectedTechnologies: ReadonlyArray<string>;
|
|
67
|
+
readonly sourceExtensions: ReadonlyArray<string>;
|
|
68
|
+
readonly metadata?: Readonly<Record<string, unknown>>;
|
|
69
|
+
}
|
|
70
|
+
declare const CalibrationProcessorError_base: Schema.TaggedErrorClass<CalibrationProcessorError, "CalibrationProcessorError", {
|
|
71
|
+
readonly _tag: Schema.tag<"CalibrationProcessorError">;
|
|
72
|
+
} & {
|
|
73
|
+
slot: Schema.Literal<["taxonomy.file-classifier", "language-pack-activation", "typescript.noop-classifier", "typescript.clone-group-policy", "typescript.dependency-resolver", "typescript.suppression-justifier", "typescript.callback-context-namer", "typescript.export-reachability", "typescript.unfinished-implementation-policy", "typescript.unsafe-type-policy", "typescript.type-coupling-policy", "typescript.dependency-version-policy", "typescript.pr-size-policy", "shared.bus-factor-policy", "shared.churn-rate-policy", "mixer.category-policy"]>;
|
|
74
|
+
moduleId: typeof Schema.String;
|
|
75
|
+
processorId: typeof Schema.String;
|
|
76
|
+
message: typeof Schema.String;
|
|
77
|
+
cause: Schema.optional<typeof Schema.Unknown>;
|
|
78
|
+
}>;
|
|
79
|
+
export declare class CalibrationProcessorError extends CalibrationProcessorError_base {
|
|
80
|
+
}
|
|
81
|
+
export interface CalibrationProcessor<Slot extends CalibrationSlotId> {
|
|
82
|
+
readonly id: string;
|
|
83
|
+
readonly moduleId: string;
|
|
84
|
+
readonly moduleVersion: string;
|
|
85
|
+
readonly slot: Slot;
|
|
86
|
+
readonly role: CalibrationProcessorRole;
|
|
87
|
+
readonly priority: number;
|
|
88
|
+
readonly fingerprint: string;
|
|
89
|
+
readonly process: (current: CalibrationSlotOutput<Slot>, context: ResolvedCalibrationContext) => Effect.Effect<CalibrationSlotOutput<Slot>, CalibrationProcessorError, never>;
|
|
90
|
+
}
|
|
91
|
+
export type AnyCalibrationProcessor = CalibrationProcessor<"taxonomy.file-classifier"> | CalibrationProcessor<"language-pack-activation"> | CalibrationProcessor<"typescript.noop-classifier"> | CalibrationProcessor<"typescript.clone-group-policy"> | CalibrationProcessor<"typescript.dependency-resolver"> | CalibrationProcessor<"typescript.suppression-justifier"> | CalibrationProcessor<"typescript.callback-context-namer"> | CalibrationProcessor<"typescript.export-reachability"> | CalibrationProcessor<"typescript.unfinished-implementation-policy"> | CalibrationProcessor<"typescript.unsafe-type-policy"> | CalibrationProcessor<"typescript.type-coupling-policy"> | CalibrationProcessor<"typescript.dependency-version-policy"> | CalibrationProcessor<"typescript.pr-size-policy"> | CalibrationProcessor<"shared.bus-factor-policy"> | CalibrationProcessor<"shared.churn-rate-policy"> | CalibrationProcessor<"mixer.category-policy">;
|
|
92
|
+
export interface ResolvedCalibrationContext {
|
|
93
|
+
readonly fingerprint: string;
|
|
94
|
+
readonly activeModules: ReadonlyArray<ActiveProjectModule>;
|
|
95
|
+
readonly repoFacts: RepoFacts;
|
|
96
|
+
readonly processors: ReadonlyArray<AnyCalibrationProcessor>;
|
|
97
|
+
readonly runSlot: <Slot extends CalibrationSlotId>(slot: Slot, input: CalibrationSlotInput<Slot>) => Effect.Effect<CalibrationSlotOutput<Slot>, CalibrationProcessorError, never>;
|
|
98
|
+
}
|
|
99
|
+
declare const CalibrationContextTag_base: Context.TagClass<CalibrationContextTag, "@skastr0/pulsar-core/CalibrationContext", ResolvedCalibrationContext>;
|
|
100
|
+
export declare class CalibrationContextTag extends CalibrationContextTag_base {
|
|
101
|
+
}
|
|
102
|
+
export declare const defineCalibrationProcessor: <Slot extends CalibrationSlotId>(processor: CalibrationProcessor<Slot>) => CalibrationProcessor<Slot>;
|
|
103
|
+
//# sourceMappingURL=calibration-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calibration-model.d.ts","sourceRoot":"","sources":["../src/calibration-model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAA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BAAyB,EAAE,KAAK,CAAC,CAAA;CAClF;;AAED,qBAAa,qBAAsB,SAAQ,0BAEW;CAAG;AAEzD,eAAO,MAAM,0BAA0B,GAAI,IAAI,SAAS,iBAAiB,EACvE,WAAW,oBAAoB,CAAC,IAAI,CAAC,KACpC,oBAAoB,CAAC,IAAI,CAAc,CAAA"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Context, Schema } from "effect";
|
|
2
|
+
export const CALIBRATION_SLOT_IDS = [
|
|
3
|
+
"taxonomy.file-classifier",
|
|
4
|
+
"language-pack-activation",
|
|
5
|
+
"typescript.noop-classifier",
|
|
6
|
+
"typescript.clone-group-policy",
|
|
7
|
+
"typescript.dependency-resolver",
|
|
8
|
+
"typescript.suppression-justifier",
|
|
9
|
+
"typescript.callback-context-namer",
|
|
10
|
+
"typescript.export-reachability",
|
|
11
|
+
"typescript.unfinished-implementation-policy",
|
|
12
|
+
"typescript.unsafe-type-policy",
|
|
13
|
+
"typescript.type-coupling-policy",
|
|
14
|
+
"typescript.dependency-version-policy",
|
|
15
|
+
"typescript.pr-size-policy",
|
|
16
|
+
"shared.bus-factor-policy",
|
|
17
|
+
"shared.churn-rate-policy",
|
|
18
|
+
"mixer.category-policy",
|
|
19
|
+
];
|
|
20
|
+
export const CalibrationSlotId = Schema.Literal(...CALIBRATION_SLOT_IDS);
|
|
21
|
+
export const CalibrationProcessorRole = Schema.Literal("filter", "resolver", "normalizer", "compressor", "enricher", "factor-policy", "mixer-policy");
|
|
22
|
+
export const CalibrationConfidence = Schema.Literal("high", "medium", "low");
|
|
23
|
+
export const SourceCategory = Schema.Literal("production_source", "test_code", "test_utility", "example", "generated", "config_tooling", "declaration", "build_artifact", "dependency", "hidden_tooling", "documentation", "stories", "unknown");
|
|
24
|
+
export const unchangedCalibrationResult = (value) => ({
|
|
25
|
+
value,
|
|
26
|
+
decisions: [],
|
|
27
|
+
});
|
|
28
|
+
export const appendCalibrationDecision = (result, decision, nextValue) => ({
|
|
29
|
+
value: nextValue ?? result.value,
|
|
30
|
+
decisions: [...result.decisions, decision],
|
|
31
|
+
});
|
|
32
|
+
export const ProjectModuleScope = Schema.Literal("core", "language", "ecosystem", "technology", "framework", "organization", "repository");
|
|
33
|
+
export class CalibrationProcessorError extends Schema.TaggedError()("CalibrationProcessorError", {
|
|
34
|
+
slot: CalibrationSlotId,
|
|
35
|
+
moduleId: Schema.String,
|
|
36
|
+
processorId: Schema.String,
|
|
37
|
+
message: Schema.String,
|
|
38
|
+
cause: Schema.optional(Schema.Unknown),
|
|
39
|
+
}) {
|
|
40
|
+
}
|
|
41
|
+
export class CalibrationContextTag extends Context.Tag("@skastr0/pulsar-core/CalibrationContext")() {
|
|
42
|
+
}
|
|
43
|
+
export const defineCalibrationProcessor = (processor) => processor;
|
|
44
|
+
//# sourceMappingURL=calibration-model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calibration-model.js","sourceRoot":"","sources":["../src/calibration-model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAU,MAAM,EAAE,MAAM,QAAQ,CAAA;AAMhD,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,0BAA0B;IAC1B,0BAA0B;IAC1B,4BAA4B;IAC5B,+BAA+B;IAC/B,gCAAgC;IAChC,kCAAkC;IAClC,mCAAmC;IACnC,gCAAgC;IAChC,6CAA6C;IAC7C,+BAA+B;IAC/B,iCAAiC;IACjC,sCAAsC;IACtC,2BAA2B;IAC3B,0BAA0B;IAC1B,0BAA0B;IAC1B,uBAAuB;CACf,CAAA;AAEV,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,oBAAoB,CAAC,CAAA;AAGxE,MAAM,CAAC,MAAM,wBAAwB,GAAG,MAAM,CAAC,OAAO,CACpD,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,eAAe,EACf,cAAc,CACf,CAAA;AAGD,MAAM,CA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,CAAC,MAAM,0BAA0B,GAAG,CACxC,SAAqC,EACT,EAAE,CAAC,SAAS,CAAA"}
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
import type { CalibrationConfidence, CalibrationEvidenceRef, SourceCategory } from "./calibration-model.js";
|
|
2
|
+
export interface FileClassificationValue {
|
|
3
|
+
readonly path: string;
|
|
4
|
+
readonly categories: ReadonlyArray<SourceCategory>;
|
|
5
|
+
readonly metadata?: Readonly<Record<string, unknown>>;
|
|
6
|
+
}
|
|
7
|
+
export interface LanguagePackActivationValue {
|
|
8
|
+
readonly repoRoot: string;
|
|
9
|
+
readonly sourceExtensions: ReadonlyArray<string>;
|
|
10
|
+
readonly activePackIds: ReadonlyArray<string>;
|
|
11
|
+
readonly evidence: ReadonlyArray<CalibrationEvidenceRef>;
|
|
12
|
+
}
|
|
13
|
+
export interface TypeScriptNoopClassificationValue {
|
|
14
|
+
readonly file: string;
|
|
15
|
+
readonly name: string;
|
|
16
|
+
readonly line?: number;
|
|
17
|
+
readonly nodeKind: string;
|
|
18
|
+
readonly bodyText?: string;
|
|
19
|
+
readonly functionText?: string;
|
|
20
|
+
readonly parentKind?: string;
|
|
21
|
+
readonly parentText?: string;
|
|
22
|
+
readonly ancestorKinds?: ReadonlyArray<string>;
|
|
23
|
+
readonly candidateKind?: "throw-not-implemented" | "empty-body" | "todo-comment" | "mock-return" | "unknown";
|
|
24
|
+
readonly inTestPath?: boolean;
|
|
25
|
+
readonly classification: "unknown" | "intentional_noop" | "stub";
|
|
26
|
+
readonly confidence?: CalibrationConfidence;
|
|
27
|
+
readonly metadata?: Readonly<Record<string, unknown>>;
|
|
28
|
+
}
|
|
29
|
+
export interface TypeScriptCloneGroupPolicyValue {
|
|
30
|
+
readonly groupId: string;
|
|
31
|
+
readonly action: "keep" | "deweight" | "exclude";
|
|
32
|
+
readonly factor: number;
|
|
33
|
+
readonly metadata?: Readonly<Record<string, unknown>>;
|
|
34
|
+
}
|
|
35
|
+
export interface TypeScriptDependencyResolutionValue {
|
|
36
|
+
readonly specifier: string;
|
|
37
|
+
readonly fromFile: string;
|
|
38
|
+
readonly resolution: "unresolved" | "declared" | "virtual_module" | "path_alias" | "workspace" | "bundled_external" | "facade_alias";
|
|
39
|
+
readonly packageName?: string;
|
|
40
|
+
readonly metadata?: Readonly<Record<string, unknown>>;
|
|
41
|
+
}
|
|
42
|
+
export interface TypeScriptSuppressionJustificationValue {
|
|
43
|
+
readonly file: string;
|
|
44
|
+
readonly line: number;
|
|
45
|
+
readonly directive: string;
|
|
46
|
+
readonly justification: "unknown" | "justified" | "suspicious" | "unjustified";
|
|
47
|
+
readonly metadata?: Readonly<Record<string, unknown>>;
|
|
48
|
+
}
|
|
49
|
+
export interface TypeScriptCallbackContextNameValue {
|
|
50
|
+
readonly file: string;
|
|
51
|
+
readonly line: number;
|
|
52
|
+
readonly fallbackName: string;
|
|
53
|
+
readonly resolvedName: string;
|
|
54
|
+
readonly metadata?: Readonly<Record<string, unknown>>;
|
|
55
|
+
}
|
|
56
|
+
export interface TypeScriptCallExpressionFact {
|
|
57
|
+
readonly calleeText: string;
|
|
58
|
+
readonly calleeName?: string;
|
|
59
|
+
}
|
|
60
|
+
export interface TypeScriptImportBindingFact {
|
|
61
|
+
readonly moduleSpecifier: string;
|
|
62
|
+
readonly importKind: "default" | "named" | "namespace";
|
|
63
|
+
readonly importedName: string;
|
|
64
|
+
readonly localName: string;
|
|
65
|
+
}
|
|
66
|
+
export interface TypeScriptLocalBindingFact {
|
|
67
|
+
readonly localName: string;
|
|
68
|
+
readonly initializerCall?: TypeScriptCallExpressionFact;
|
|
69
|
+
}
|
|
70
|
+
export interface TypeScriptExportSpecifierFact {
|
|
71
|
+
readonly exportedName: string;
|
|
72
|
+
readonly localName: string;
|
|
73
|
+
readonly moduleSpecifier?: string;
|
|
74
|
+
}
|
|
75
|
+
export interface TypeScriptExportDeclarationFact {
|
|
76
|
+
readonly declarationKind: string;
|
|
77
|
+
readonly exportName: string;
|
|
78
|
+
readonly localName?: string;
|
|
79
|
+
readonly initializerCall?: TypeScriptCallExpressionFact;
|
|
80
|
+
readonly expressionIdentifier?: string;
|
|
81
|
+
readonly expressionCall?: TypeScriptCallExpressionFact;
|
|
82
|
+
}
|
|
83
|
+
export interface TypeScriptExportReachabilityValue {
|
|
84
|
+
readonly exportFile: string;
|
|
85
|
+
readonly exportName: string;
|
|
86
|
+
readonly declarationFiles: ReadonlyArray<string>;
|
|
87
|
+
readonly declarationKinds: ReadonlyArray<string>;
|
|
88
|
+
readonly declarations?: ReadonlyArray<TypeScriptExportDeclarationFact>;
|
|
89
|
+
readonly sourceImports?: ReadonlyArray<TypeScriptImportBindingFact>;
|
|
90
|
+
readonly sourceLocalBindings?: ReadonlyArray<TypeScriptLocalBindingFact>;
|
|
91
|
+
readonly sourceExportSpecifiers?: ReadonlyArray<TypeScriptExportSpecifierFact>;
|
|
92
|
+
readonly isPublicEntrypoint: boolean;
|
|
93
|
+
readonly metadata?: Readonly<Record<string, unknown>>;
|
|
94
|
+
}
|
|
95
|
+
export interface TypeScriptUnfinishedImplementationPolicyValue {
|
|
96
|
+
readonly signalId: string;
|
|
97
|
+
readonly findingId: string;
|
|
98
|
+
readonly file: string;
|
|
99
|
+
readonly name: string;
|
|
100
|
+
readonly line?: number;
|
|
101
|
+
readonly stubKind: "throw-not-implemented" | "empty-body" | "todo-comment" | "mock-return" | "unknown";
|
|
102
|
+
readonly message: string;
|
|
103
|
+
readonly visible: boolean;
|
|
104
|
+
readonly severity: "info" | "warn" | "block";
|
|
105
|
+
readonly confidence: CalibrationConfidence;
|
|
106
|
+
readonly penaltyWeight: number;
|
|
107
|
+
readonly scoreCapParticipation: boolean;
|
|
108
|
+
readonly scoreCap?: number;
|
|
109
|
+
readonly factorPathPrefix: string;
|
|
110
|
+
readonly metadata?: Readonly<Record<string, unknown>>;
|
|
111
|
+
}
|
|
112
|
+
export interface TypeScriptUnsafeTypePolicyValue {
|
|
113
|
+
readonly signalId: string;
|
|
114
|
+
readonly findingId: string;
|
|
115
|
+
readonly file: string;
|
|
116
|
+
readonly line: number;
|
|
117
|
+
readonly kind: "parameter" | "return" | "property" | "variable" | "type-alias" | "assertion" | "heritage" | "unknown";
|
|
118
|
+
readonly target: string;
|
|
119
|
+
readonly boundary: boolean;
|
|
120
|
+
readonly visible: boolean;
|
|
121
|
+
readonly severity: "info" | "warn" | "block";
|
|
122
|
+
readonly baseWeight: number;
|
|
123
|
+
readonly weight: number;
|
|
124
|
+
readonly factorPathPrefix: string;
|
|
125
|
+
readonly metadata?: Readonly<Record<string, unknown>>;
|
|
126
|
+
}
|
|
127
|
+
export interface TypeScriptTypeCouplingPolicyValue {
|
|
128
|
+
readonly signalId: string;
|
|
129
|
+
readonly findingId: string;
|
|
130
|
+
readonly file: string;
|
|
131
|
+
readonly externalTypesReferenced: number;
|
|
132
|
+
readonly typesReferencedExternally: number;
|
|
133
|
+
readonly totalCoupling: number;
|
|
134
|
+
readonly outlierThreshold: number;
|
|
135
|
+
readonly visible: boolean;
|
|
136
|
+
readonly severity: "info" | "warn" | "block";
|
|
137
|
+
readonly penaltyWeight: number;
|
|
138
|
+
readonly factorPathPrefix: string;
|
|
139
|
+
readonly metadata?: Readonly<Record<string, unknown>>;
|
|
140
|
+
}
|
|
141
|
+
export interface TypeScriptDependencyVersionPolicyValue {
|
|
142
|
+
readonly signalId: string;
|
|
143
|
+
readonly findingId: string;
|
|
144
|
+
readonly packageName: string;
|
|
145
|
+
readonly versions: ReadonlyArray<string>;
|
|
146
|
+
readonly evidenceKind: "direct-workspace-duplicate" | "transitive-lockfile-duplicate";
|
|
147
|
+
readonly pullInChains: ReadonlyArray<{
|
|
148
|
+
readonly version: string;
|
|
149
|
+
readonly chain: ReadonlyArray<string>;
|
|
150
|
+
}>;
|
|
151
|
+
readonly visible: boolean;
|
|
152
|
+
readonly severity: "info" | "warn" | "block";
|
|
153
|
+
readonly penaltyWeight: number;
|
|
154
|
+
readonly factorPathPrefix: string;
|
|
155
|
+
readonly metadata?: Readonly<Record<string, unknown>>;
|
|
156
|
+
}
|
|
157
|
+
export interface TypeScriptPrSizePolicyValue {
|
|
158
|
+
readonly signalId: string;
|
|
159
|
+
readonly findingId: string;
|
|
160
|
+
readonly diffMode: "git-working-tree" | "git-branch-range" | "git-commit-range" | "changed-hunks-fallback" | "missing";
|
|
161
|
+
readonly linesAdded: number;
|
|
162
|
+
readonly linesDeleted: number;
|
|
163
|
+
readonly filesChanged: ReadonlyArray<string>;
|
|
164
|
+
readonly sizeCategory: "small" | "medium" | "large" | "oversized";
|
|
165
|
+
readonly visible: boolean;
|
|
166
|
+
readonly severity: "info" | "warn" | "block";
|
|
167
|
+
readonly penaltyWeight: number;
|
|
168
|
+
readonly factorPathPrefix: string;
|
|
169
|
+
readonly metadata?: Readonly<Record<string, unknown>>;
|
|
170
|
+
}
|
|
171
|
+
export interface SharedBusFactorPolicyValue {
|
|
172
|
+
readonly signalId: string;
|
|
173
|
+
readonly findingId: string;
|
|
174
|
+
readonly file: string;
|
|
175
|
+
readonly author: string;
|
|
176
|
+
readonly loc: number;
|
|
177
|
+
readonly windowDays: number;
|
|
178
|
+
readonly maxCommits: number;
|
|
179
|
+
readonly touchedFileCount: number;
|
|
180
|
+
readonly touchedLoc: number;
|
|
181
|
+
readonly repoAuthors: ReadonlyArray<string>;
|
|
182
|
+
readonly visible: boolean;
|
|
183
|
+
readonly severity: "info" | "warn" | "block";
|
|
184
|
+
readonly penaltyWeight: number;
|
|
185
|
+
readonly factorPathPrefix: string;
|
|
186
|
+
readonly metadata?: Readonly<Record<string, unknown>>;
|
|
187
|
+
}
|
|
188
|
+
export interface SharedChurnRatePolicyValue {
|
|
189
|
+
readonly signalId: string;
|
|
190
|
+
readonly findingId: string;
|
|
191
|
+
readonly file: string;
|
|
192
|
+
readonly windowDays: number;
|
|
193
|
+
readonly introduced: number;
|
|
194
|
+
readonly churned: number;
|
|
195
|
+
readonly rate: number;
|
|
196
|
+
readonly introducedLineCount: number;
|
|
197
|
+
readonly churnedLineCount: number;
|
|
198
|
+
readonly churnRate: number;
|
|
199
|
+
readonly repoIntroduced: number;
|
|
200
|
+
readonly repoChurned: number;
|
|
201
|
+
readonly repoRate: number;
|
|
202
|
+
readonly visible: boolean;
|
|
203
|
+
readonly severity: "info" | "warn" | "block";
|
|
204
|
+
readonly penaltyWeight: number;
|
|
205
|
+
readonly factorPathPrefix: string;
|
|
206
|
+
readonly metadata?: Readonly<Record<string, unknown>>;
|
|
207
|
+
}
|
|
208
|
+
export interface MixerCategoryPolicyValue {
|
|
209
|
+
readonly category: string;
|
|
210
|
+
readonly rawScore: number;
|
|
211
|
+
readonly finalScore: number;
|
|
212
|
+
readonly metadata?: Readonly<Record<string, unknown>>;
|
|
213
|
+
}
|
|
214
|
+
export interface CalibrationSlotValues {
|
|
215
|
+
readonly "taxonomy.file-classifier": FileClassificationValue;
|
|
216
|
+
readonly "language-pack-activation": LanguagePackActivationValue;
|
|
217
|
+
readonly "typescript.noop-classifier": TypeScriptNoopClassificationValue;
|
|
218
|
+
readonly "typescript.clone-group-policy": TypeScriptCloneGroupPolicyValue;
|
|
219
|
+
readonly "typescript.dependency-resolver": TypeScriptDependencyResolutionValue;
|
|
220
|
+
readonly "typescript.suppression-justifier": TypeScriptSuppressionJustificationValue;
|
|
221
|
+
readonly "typescript.callback-context-namer": TypeScriptCallbackContextNameValue;
|
|
222
|
+
readonly "typescript.export-reachability": TypeScriptExportReachabilityValue;
|
|
223
|
+
readonly "typescript.unfinished-implementation-policy": TypeScriptUnfinishedImplementationPolicyValue;
|
|
224
|
+
readonly "typescript.unsafe-type-policy": TypeScriptUnsafeTypePolicyValue;
|
|
225
|
+
readonly "typescript.type-coupling-policy": TypeScriptTypeCouplingPolicyValue;
|
|
226
|
+
readonly "typescript.dependency-version-policy": TypeScriptDependencyVersionPolicyValue;
|
|
227
|
+
readonly "typescript.pr-size-policy": TypeScriptPrSizePolicyValue;
|
|
228
|
+
readonly "shared.bus-factor-policy": SharedBusFactorPolicyValue;
|
|
229
|
+
readonly "shared.churn-rate-policy": SharedChurnRatePolicyValue;
|
|
230
|
+
readonly "mixer.category-policy": MixerCategoryPolicyValue;
|
|
231
|
+
}
|
|
232
|
+
//# sourceMappingURL=calibration-slot-values.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calibration-slot-values.d.ts","sourceRoot":"","sources":["../src/calibration-slot-values.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,sBAAsB,EACtB,cAAc,EACf,MAAM,wBAAwB,CAAA;AAE/B,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC,cAAc,CAAC,CAAA;IAClD,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;CACtD;AAED,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,gBAAgB,EAAE,aAAa,CAAC,MAAM,CAAC,CAAA;IAChD,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC,MAAM,CAAC,CAAA;IAC7C,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC,sBAAsB,CAAC,CAAA;CACzD;AAED,MAAM,WAAW,iCAAiC;IAChD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,UAA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AAQ,CAAC,0BAA0B,EAAE,0BAA0B,CAAA;IAC/D,QAAQ,CAAC,0BAA0B,EAAE,0BAA0B,CAAA;IAC/D,QAAQ,CAAC,uBAAuB,EAAE,wBAAwB,CAAA;CAC3D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calibration-slot-values.js","sourceRoot":"","sources":["../src/calibration-slot-values.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calibration.d.ts","sourceRoot":"","sources":["../src/calibration.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA;AACxC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,wBAAwB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calibration.js","sourceRoot":"","sources":["../src/calibration.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA;AACxC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,wBAAwB,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
export declare const CATEGORIES: readonly ["architectural-drift", "dependency-entropy", "abstraction-bloat", "legibility-decay", "generated-slop", "review-pain"];
|
|
3
|
+
export declare const Category: Schema.Literal<["architectural-drift", "dependency-entropy", "abstraction-bloat", "legibility-decay", "generated-slop", "review-pain"]>;
|
|
4
|
+
export type Category = typeof Category.Type;
|
|
5
|
+
export declare const categoryRecord: <Value>(valueOf: (category: Category) => Value) => Record<Category, Value>;
|
|
6
|
+
//# sourceMappingURL=category.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../src/category.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAE/B,eAAO,MAAM,UAAU,kIAOb,CAAA;AAEV,eAAO,MAAM,QAAQ,yIAAgC,CAAA;AACrD,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC,IAAI,CAAA;AAE3C,eAAO,MAAM,cAAc,GAAI,KAAK,EAClC,SAAS,CAAC,QAAQ,EAAE,QAAQ,KAAK,KAAK,KACrC,MAAM,CAAC,QAAQ,EAAE,KAAK,CAGK,CAAA"}
|
package/dist/category.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
export const CATEGORIES = [
|
|
3
|
+
"architectural-drift",
|
|
4
|
+
"dependency-entropy",
|
|
5
|
+
"abstraction-bloat",
|
|
6
|
+
"legibility-decay",
|
|
7
|
+
"generated-slop",
|
|
8
|
+
"review-pain",
|
|
9
|
+
];
|
|
10
|
+
export const Category = Schema.Literal(...CATEGORIES);
|
|
11
|
+
export const categoryRecord = (valueOf) => Object.fromEntries(CATEGORIES.map((category) => [category, valueOf(category)]));
|
|
12
|
+
//# sourceMappingURL=category.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"category.js","sourceRoot":"","sources":["../src/category.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAE/B,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,qBAAqB;IACrB,oBAAoB;IACpB,mBAAmB;IACnB,kBAAkB;IAClB,gBAAgB;IAChB,aAAa;CACL,CAAA;AAEV,MAAM,CAAC,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,UAAU,CAAC,CAAA;AAGrD,MAAM,CAAC,MAAM,cAAc,GAAG,CAC5B,OAAsC,EACb,EAAE,CAC3B,MAAM,CAAC,WAAW,CAChB,UAAU,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CACjC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"concurrency.d.ts","sourceRoot":"","sources":["../src/concurrency.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,GAAU,CAAC,EAAE,CAAC,EAC3C,OAAO,aAAa,CAAC,CAAC,CAAC,EACvB,aAAa,MAAM,EACnB,IAAI,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,KAC1B,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAgBlB,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export const mapWithConcurrency = async (items, concurrency, fn) => {
|
|
2
|
+
const results = new Array(items.length);
|
|
3
|
+
let nextIndex = 0;
|
|
4
|
+
const workerCount = Math.min(concurrency, items.length);
|
|
5
|
+
await Promise.all(Array.from({ length: workerCount }, async () => {
|
|
6
|
+
while (true) {
|
|
7
|
+
const index = nextIndex++;
|
|
8
|
+
if (index >= items.length)
|
|
9
|
+
return;
|
|
10
|
+
results[index] = await fn(items[index]);
|
|
11
|
+
}
|
|
12
|
+
}));
|
|
13
|
+
return results;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=concurrency.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"concurrency.js","sourceRoot":"","sources":["../src/concurrency.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG,KAAK,EACrC,KAAuB,EACvB,WAAmB,EACnB,EAA2B,EACR,EAAE;IACrB,MAAM,OAAO,GAAG,IAAI,KAAK,CAAI,KAAK,CAAC,MAAM,CAAC,CAAA;IAC1C,IAAI,SAAS,GAAG,CAAC,CAAA;IACjB,MAAM,WAAW,GAAG,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IAEvD,MAAM,OAAO,CAAC,GAAG,CACf,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,KAAK,IAAI,EAAE;QAC7C,OAAO,IAAI,EAAE,CAAC;YACZ,MAAM,KAAK,GAAG,SAAS,EAAE,CAAA;YACzB,IAAI,KAAK,IAAI,KAAK,CAAC,MAAM;gBAAE,OAAM;YACjC,OAAO,CAAC,KAAK,CAAC,GAAG,MAAM,EAAE,CAAC,KAAK,CAAC,KAAK,CAAE,CAAC,CAAA;QAC1C,CAAC;IACH,CAAC,CAAC,CACH,CAAA;IAED,OAAO,OAAO,CAAA;AAChB,CAAC,CAAA"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Context, Effect, Option, Schema } from "effect";
|
|
2
|
+
import { ReferenceDataMissingError } from "./errors.js";
|
|
3
|
+
/**
|
|
4
|
+
* A changed hunk in the scored commit, used by signals to compute
|
|
5
|
+
* diff-aware outputs without re-reading the whole tree.
|
|
6
|
+
*/
|
|
7
|
+
export declare const ChangedHunk: Schema.Struct<{
|
|
8
|
+
file: typeof Schema.String;
|
|
9
|
+
oldStart: typeof Schema.Number;
|
|
10
|
+
oldLines: typeof Schema.Number;
|
|
11
|
+
newStart: typeof Schema.Number;
|
|
12
|
+
newLines: typeof Schema.Number;
|
|
13
|
+
}>;
|
|
14
|
+
export type ChangedHunk = typeof ChangedHunk.Type;
|
|
15
|
+
/**
|
|
16
|
+
* Scoped reference data. A key identifies the kind (e.g. "glossary",
|
|
17
|
+
* "boundary-rules"); the value is opaque and validated by each consumer.
|
|
18
|
+
*/
|
|
19
|
+
export interface ReferenceData {
|
|
20
|
+
readonly get: <A>(key: string) => Effect.Effect<Option.Option<A>>;
|
|
21
|
+
readonly require: <A>(signalId: string, key: string) => Effect.Effect<A, ReferenceDataMissingError>;
|
|
22
|
+
}
|
|
23
|
+
declare const ReferenceDataTag_base: Context.TagClass<ReferenceDataTag, "@skastr0/pulsar-core/ReferenceData", ReferenceData>;
|
|
24
|
+
export declare class ReferenceDataTag extends ReferenceDataTag_base {
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* The scoring context — the spine that threads through every signal's
|
|
28
|
+
* compute. Provided by the scoring engine once per commit.
|
|
29
|
+
*/
|
|
30
|
+
export interface SignalContext {
|
|
31
|
+
readonly gitSha: string;
|
|
32
|
+
readonly worktreePath: string;
|
|
33
|
+
readonly changedHunks: ReadonlyArray<ChangedHunk>;
|
|
34
|
+
}
|
|
35
|
+
declare const SignalContextTag_base: Context.TagClass<SignalContextTag, "@skastr0/pulsar-core/SignalContext", SignalContext>;
|
|
36
|
+
export declare class SignalContextTag extends SignalContextTag_base {
|
|
37
|
+
}
|
|
38
|
+
export declare const makeReferenceData: (entries: ReadonlyMap<string, unknown>) => ReferenceData;
|
|
39
|
+
export {};
|
|
40
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACxD,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAA;AAEvD;;;GAGG;AACH,eAAO,MAAM,WAAW;;;;;;EAMtB,CAAA;AACF,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC,IAAI,CAAA;AAEjD;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAA;IACjE,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,yBAAyB,CAAC,CAAA;CACpG;;AAED,qBAAa,gBAAiB,SAAQ,qBAGnC;CAAG;AAEN;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;IAC7B,QAAQ,CAAC,YAAY,EAAE,aAAa,CAAC,WAAW,CAAC,CAAA;CAClD;;AAED,qBAAa,gBAAiB,SAAQ,qBAGnC;CAAG;AAEN,eAAO,MAAM,iBAAiB,GAC5B,SAAS,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,KACpC,aAUD,CAAA"}
|
package/dist/context.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Context, Effect, Option, Schema } from "effect";
|
|
2
|
+
import { ReferenceDataMissingError } from "./errors.js";
|
|
3
|
+
/**
|
|
4
|
+
* A changed hunk in the scored commit, used by signals to compute
|
|
5
|
+
* diff-aware outputs without re-reading the whole tree.
|
|
6
|
+
*/
|
|
7
|
+
export const ChangedHunk = Schema.Struct({
|
|
8
|
+
file: Schema.String,
|
|
9
|
+
oldStart: Schema.Number,
|
|
10
|
+
oldLines: Schema.Number,
|
|
11
|
+
newStart: Schema.Number,
|
|
12
|
+
newLines: Schema.Number,
|
|
13
|
+
});
|
|
14
|
+
export class ReferenceDataTag extends Context.Tag("@skastr0/pulsar-core/ReferenceData")() {
|
|
15
|
+
}
|
|
16
|
+
export class SignalContextTag extends Context.Tag("@skastr0/pulsar-core/SignalContext")() {
|
|
17
|
+
}
|
|
18
|
+
export const makeReferenceData = (entries) => ({
|
|
19
|
+
get: (key) => Effect.sync(() => Option.fromNullable(entries.get(key))),
|
|
20
|
+
require: (signalId, key) => Effect.gen(function* () {
|
|
21
|
+
const value = entries.get(key);
|
|
22
|
+
if (value === undefined) {
|
|
23
|
+
return yield* new ReferenceDataMissingError({ signalId, key });
|
|
24
|
+
}
|
|
25
|
+
return value;
|
|
26
|
+
}),
|
|
27
|
+
});
|
|
28
|
+
//# sourceMappingURL=context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,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