@opensip-cli/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/LICENSE +202 -0
- package/NOTICE +8 -0
- package/README.md +31 -0
- package/dist/__tests__/config-resolution.test.d.ts +2 -0
- package/dist/__tests__/config-resolution.test.d.ts.map +1 -0
- package/dist/__tests__/config-resolution.test.js +94 -0
- package/dist/__tests__/config-resolution.test.js.map +1 -0
- package/dist/__tests__/public-api.test.d.ts +16 -0
- package/dist/__tests__/public-api.test.d.ts.map +1 -0
- package/dist/__tests__/public-api.test.js +209 -0
- package/dist/__tests__/public-api.test.js.map +1 -0
- package/dist/__tests__/signal-batch.test.d.ts +2 -0
- package/dist/__tests__/signal-batch.test.d.ts.map +1 -0
- package/dist/__tests__/signal-batch.test.js +39 -0
- package/dist/__tests__/signal-batch.test.js.map +1 -0
- package/dist/__tests__/signal-sink.test.d.ts +2 -0
- package/dist/__tests__/signal-sink.test.d.ts.map +1 -0
- package/dist/__tests__/signal-sink.test.js +25 -0
- package/dist/__tests__/signal-sink.test.js.map +1 -0
- package/dist/__tests__/strip-utils.test.d.ts +2 -0
- package/dist/__tests__/strip-utils.test.d.ts.map +1 -0
- package/dist/__tests__/strip-utils.test.js +397 -0
- package/dist/__tests__/strip-utils.test.js.map +1 -0
- package/dist/__tests__/text-tree.test.d.ts +2 -0
- package/dist/__tests__/text-tree.test.d.ts.map +1 -0
- package/dist/__tests__/text-tree.test.js +31 -0
- package/dist/__tests__/text-tree.test.js.map +1 -0
- package/dist/baseline/__tests__/fingerprint-strategy.test.d.ts +2 -0
- package/dist/baseline/__tests__/fingerprint-strategy.test.d.ts.map +1 -0
- package/dist/baseline/__tests__/fingerprint-strategy.test.js +69 -0
- package/dist/baseline/__tests__/fingerprint-strategy.test.js.map +1 -0
- package/dist/baseline/fingerprint-strategy.d.ts +70 -0
- package/dist/baseline/fingerprint-strategy.d.ts.map +1 -0
- package/dist/baseline/fingerprint-strategy.js +90 -0
- package/dist/baseline/fingerprint-strategy.js.map +1 -0
- package/dist/config-resolution.d.ts +27 -0
- package/dist/config-resolution.d.ts.map +1 -0
- package/dist/config-resolution.js +92 -0
- package/dist/config-resolution.js.map +1 -0
- package/dist/index.d.ts +81 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +165 -0
- package/dist/index.js.map +1 -0
- package/dist/languages/__tests__/content-filter-dispatch.test.d.ts +2 -0
- package/dist/languages/__tests__/content-filter-dispatch.test.d.ts.map +1 -0
- package/dist/languages/__tests__/content-filter-dispatch.test.js +87 -0
- package/dist/languages/__tests__/content-filter-dispatch.test.js.map +1 -0
- package/dist/languages/__tests__/non-code-formats.test.d.ts +2 -0
- package/dist/languages/__tests__/non-code-formats.test.d.ts.map +1 -0
- package/dist/languages/__tests__/non-code-formats.test.js +31 -0
- package/dist/languages/__tests__/non-code-formats.test.js.map +1 -0
- package/dist/languages/__tests__/parse-cache.test.d.ts +2 -0
- package/dist/languages/__tests__/parse-cache.test.d.ts.map +1 -0
- package/dist/languages/__tests__/parse-cache.test.js +228 -0
- package/dist/languages/__tests__/parse-cache.test.js.map +1 -0
- package/dist/languages/__tests__/registry.test.d.ts +2 -0
- package/dist/languages/__tests__/registry.test.d.ts.map +1 -0
- package/dist/languages/__tests__/registry.test.js +193 -0
- package/dist/languages/__tests__/registry.test.js.map +1 -0
- package/dist/languages/__tests__/workspace-unit-contract.test.d.ts +2 -0
- package/dist/languages/__tests__/workspace-unit-contract.test.d.ts.map +1 -0
- package/dist/languages/__tests__/workspace-unit-contract.test.js +66 -0
- package/dist/languages/__tests__/workspace-unit-contract.test.js.map +1 -0
- package/dist/languages/adapter.d.ts +66 -0
- package/dist/languages/adapter.d.ts.map +1 -0
- package/dist/languages/adapter.js +2 -0
- package/dist/languages/adapter.js.map +1 -0
- package/dist/languages/content-filter-dispatch.d.ts +36 -0
- package/dist/languages/content-filter-dispatch.d.ts.map +1 -0
- package/dist/languages/content-filter-dispatch.js +75 -0
- package/dist/languages/content-filter-dispatch.js.map +1 -0
- package/dist/languages/generic-types.d.ts +22 -0
- package/dist/languages/generic-types.d.ts.map +1 -0
- package/dist/languages/generic-types.js +3 -0
- package/dist/languages/generic-types.js.map +1 -0
- package/dist/languages/index.d.ts +12 -0
- package/dist/languages/index.d.ts.map +1 -0
- package/dist/languages/index.js +7 -0
- package/dist/languages/index.js.map +1 -0
- package/dist/languages/non-code-formats.d.ts +37 -0
- package/dist/languages/non-code-formats.d.ts.map +1 -0
- package/dist/languages/non-code-formats.js +45 -0
- package/dist/languages/non-code-formats.js.map +1 -0
- package/dist/languages/parse-cache-class.d.ts +69 -0
- package/dist/languages/parse-cache-class.d.ts.map +1 -0
- package/dist/languages/parse-cache-class.js +135 -0
- package/dist/languages/parse-cache-class.js.map +1 -0
- package/dist/languages/parse-cache.d.ts +54 -0
- package/dist/languages/parse-cache.d.ts.map +1 -0
- package/dist/languages/parse-cache.js +88 -0
- package/dist/languages/parse-cache.js.map +1 -0
- package/dist/languages/registry.d.ts +35 -0
- package/dist/languages/registry.d.ts.map +1 -0
- package/dist/languages/registry.js +123 -0
- package/dist/languages/registry.js.map +1 -0
- package/dist/languages/strip-scanners.d.ts +170 -0
- package/dist/languages/strip-scanners.d.ts.map +1 -0
- package/dist/languages/strip-scanners.js +233 -0
- package/dist/languages/strip-scanners.js.map +1 -0
- package/dist/languages/strip-utils.d.ts +66 -0
- package/dist/languages/strip-utils.d.ts.map +1 -0
- package/dist/languages/strip-utils.js +88 -0
- package/dist/languages/strip-utils.js.map +1 -0
- package/dist/languages/text-tree.d.ts +44 -0
- package/dist/languages/text-tree.d.ts.map +1 -0
- package/dist/languages/text-tree.js +34 -0
- package/dist/languages/text-tree.js.map +1 -0
- package/dist/languages/workspace-unit.d.ts +18 -0
- package/dist/languages/workspace-unit.d.ts.map +1 -0
- package/dist/languages/workspace-unit.js +2 -0
- package/dist/languages/workspace-unit.js.map +1 -0
- package/dist/lib/__tests__/config-version.test.d.ts +12 -0
- package/dist/lib/__tests__/config-version.test.d.ts.map +1 -0
- package/dist/lib/__tests__/config-version.test.js +92 -0
- package/dist/lib/__tests__/config-version.test.js.map +1 -0
- package/dist/lib/__tests__/diagnostics-bus.test.d.ts +7 -0
- package/dist/lib/__tests__/diagnostics-bus.test.d.ts.map +1 -0
- package/dist/lib/__tests__/diagnostics-bus.test.js +44 -0
- package/dist/lib/__tests__/diagnostics-bus.test.js.map +1 -0
- package/dist/lib/__tests__/env-registry.test.d.ts +7 -0
- package/dist/lib/__tests__/env-registry.test.d.ts.map +1 -0
- package/dist/lib/__tests__/env-registry.test.js +82 -0
- package/dist/lib/__tests__/env-registry.test.js.map +1 -0
- package/dist/lib/__tests__/errors.test.d.ts +2 -0
- package/dist/lib/__tests__/errors.test.d.ts.map +1 -0
- package/dist/lib/__tests__/errors.test.js +218 -0
- package/dist/lib/__tests__/errors.test.js.map +1 -0
- package/dist/lib/__tests__/format.test.d.ts +2 -0
- package/dist/lib/__tests__/format.test.d.ts.map +1 -0
- package/dist/lib/__tests__/format.test.js +23 -0
- package/dist/lib/__tests__/format.test.js.map +1 -0
- package/dist/lib/__tests__/ids.test.d.ts +2 -0
- package/dist/lib/__tests__/ids.test.d.ts.map +1 -0
- package/dist/lib/__tests__/ids.test.js +80 -0
- package/dist/lib/__tests__/ids.test.js.map +1 -0
- package/dist/lib/__tests__/logger.test.d.ts +2 -0
- package/dist/lib/__tests__/logger.test.d.ts.map +1 -0
- package/dist/lib/__tests__/logger.test.js +284 -0
- package/dist/lib/__tests__/logger.test.js.map +1 -0
- package/dist/lib/__tests__/package-version.test.d.ts +2 -0
- package/dist/lib/__tests__/package-version.test.d.ts.map +1 -0
- package/dist/lib/__tests__/package-version.test.js +47 -0
- package/dist/lib/__tests__/package-version.test.js.map +1 -0
- package/dist/lib/__tests__/paths.test.d.ts +5 -0
- package/dist/lib/__tests__/paths.test.d.ts.map +1 -0
- package/dist/lib/__tests__/paths.test.js +59 -0
- package/dist/lib/__tests__/paths.test.js.map +1 -0
- package/dist/lib/__tests__/payload-version.test.d.ts +2 -0
- package/dist/lib/__tests__/payload-version.test.d.ts.map +1 -0
- package/dist/lib/__tests__/payload-version.test.js +35 -0
- package/dist/lib/__tests__/payload-version.test.js.map +1 -0
- package/dist/lib/__tests__/phantom-detect.test.d.ts +10 -0
- package/dist/lib/__tests__/phantom-detect.test.d.ts.map +1 -0
- package/dist/lib/__tests__/phantom-detect.test.js +84 -0
- package/dist/lib/__tests__/phantom-detect.test.js.map +1 -0
- package/dist/lib/__tests__/project-context.test.d.ts +10 -0
- package/dist/lib/__tests__/project-context.test.d.ts.map +1 -0
- package/dist/lib/__tests__/project-context.test.js +240 -0
- package/dist/lib/__tests__/project-context.test.js.map +1 -0
- package/dist/lib/__tests__/registry.test.d.ts +2 -0
- package/dist/lib/__tests__/registry.test.d.ts.map +1 -0
- package/dist/lib/__tests__/registry.test.js +333 -0
- package/dist/lib/__tests__/registry.test.js.map +1 -0
- package/dist/lib/__tests__/retry.test.d.ts +2 -0
- package/dist/lib/__tests__/retry.test.d.ts.map +1 -0
- package/dist/lib/__tests__/retry.test.js +71 -0
- package/dist/lib/__tests__/retry.test.js.map +1 -0
- package/dist/lib/__tests__/run-diagnostics.test.d.ts +9 -0
- package/dist/lib/__tests__/run-diagnostics.test.d.ts.map +1 -0
- package/dist/lib/__tests__/run-diagnostics.test.js +61 -0
- package/dist/lib/__tests__/run-diagnostics.test.js.map +1 -0
- package/dist/lib/__tests__/run-scope.test.d.ts +2 -0
- package/dist/lib/__tests__/run-scope.test.d.ts.map +1 -0
- package/dist/lib/__tests__/run-scope.test.js +202 -0
- package/dist/lib/__tests__/run-scope.test.js.map +1 -0
- package/dist/lib/__tests__/run-timer.test.d.ts +2 -0
- package/dist/lib/__tests__/run-timer.test.d.ts.map +1 -0
- package/dist/lib/__tests__/run-timer.test.js +152 -0
- package/dist/lib/__tests__/run-timer.test.js.map +1 -0
- package/dist/lib/__tests__/severity-policy.test.d.ts +6 -0
- package/dist/lib/__tests__/severity-policy.test.d.ts.map +1 -0
- package/dist/lib/__tests__/severity-policy.test.js +47 -0
- package/dist/lib/__tests__/severity-policy.test.js.map +1 -0
- package/dist/lib/__tests__/telemetry.test.d.ts +2 -0
- package/dist/lib/__tests__/telemetry.test.d.ts.map +1 -0
- package/dist/lib/__tests__/telemetry.test.js +212 -0
- package/dist/lib/__tests__/telemetry.test.js.map +1 -0
- package/dist/lib/__tests__/verdict-policy.test.d.ts +7 -0
- package/dist/lib/__tests__/verdict-policy.test.d.ts.map +1 -0
- package/dist/lib/__tests__/verdict-policy.test.js +91 -0
- package/dist/lib/__tests__/verdict-policy.test.js.map +1 -0
- package/dist/lib/__tests__/yaml.test.d.ts +6 -0
- package/dist/lib/__tests__/yaml.test.d.ts.map +1 -0
- package/dist/lib/__tests__/yaml.test.js +79 -0
- package/dist/lib/__tests__/yaml.test.js.map +1 -0
- package/dist/lib/config-version.d.ts +49 -0
- package/dist/lib/config-version.d.ts.map +1 -0
- package/dist/lib/config-version.js +56 -0
- package/dist/lib/config-version.js.map +1 -0
- package/dist/lib/diagnostics-bus.d.ts +48 -0
- package/dist/lib/diagnostics-bus.d.ts.map +1 -0
- package/dist/lib/diagnostics-bus.js +74 -0
- package/dist/lib/diagnostics-bus.js.map +1 -0
- package/dist/lib/env-registry.d.ts +108 -0
- package/dist/lib/env-registry.d.ts.map +1 -0
- package/dist/lib/env-registry.js +92 -0
- package/dist/lib/env-registry.js.map +1 -0
- package/dist/lib/errors.d.ts +132 -0
- package/dist/lib/errors.d.ts.map +1 -0
- package/dist/lib/errors.js +160 -0
- package/dist/lib/errors.js.map +1 -0
- package/dist/lib/execution/__tests__/execution.test.d.ts +7 -0
- package/dist/lib/execution/__tests__/execution.test.d.ts.map +1 -0
- package/dist/lib/execution/__tests__/execution.test.js +254 -0
- package/dist/lib/execution/__tests__/execution.test.js.map +1 -0
- package/dist/lib/execution/index.d.ts +15 -0
- package/dist/lib/execution/index.d.ts.map +1 -0
- package/dist/lib/execution/index.js +10 -0
- package/dist/lib/execution/index.js.map +1 -0
- package/dist/lib/execution/options.d.ts +32 -0
- package/dist/lib/execution/options.d.ts.map +1 -0
- package/dist/lib/execution/options.js +15 -0
- package/dist/lib/execution/options.js.map +1 -0
- package/dist/lib/execution/pipeline.d.ts +36 -0
- package/dist/lib/execution/pipeline.d.ts.map +1 -0
- package/dist/lib/execution/pipeline.js +38 -0
- package/dist/lib/execution/pipeline.js.map +1 -0
- package/dist/lib/execution/retry.d.ts +38 -0
- package/dist/lib/execution/retry.d.ts.map +1 -0
- package/dist/lib/execution/retry.js +56 -0
- package/dist/lib/execution/retry.js.map +1 -0
- package/dist/lib/execution/run-with-timeout.d.ts +46 -0
- package/dist/lib/execution/run-with-timeout.d.ts.map +1 -0
- package/dist/lib/execution/run-with-timeout.js +86 -0
- package/dist/lib/execution/run-with-timeout.js.map +1 -0
- package/dist/lib/execution/schedule.d.ts +62 -0
- package/dist/lib/execution/schedule.d.ts.map +1 -0
- package/dist/lib/execution/schedule.js +130 -0
- package/dist/lib/execution/schedule.js.map +1 -0
- package/dist/lib/format.d.ts +17 -0
- package/dist/lib/format.d.ts.map +1 -0
- package/dist/lib/format.js +26 -0
- package/dist/lib/format.js.map +1 -0
- package/dist/lib/ids.d.ts +13 -0
- package/dist/lib/ids.d.ts.map +1 -0
- package/dist/lib/ids.js +48 -0
- package/dist/lib/ids.js.map +1 -0
- package/dist/lib/logger.d.ts +166 -0
- package/dist/lib/logger.d.ts.map +1 -0
- package/dist/lib/logger.js +283 -0
- package/dist/lib/logger.js.map +1 -0
- package/dist/lib/package-version.d.ts +17 -0
- package/dist/lib/package-version.d.ts.map +1 -0
- package/dist/lib/package-version.js +52 -0
- package/dist/lib/package-version.js.map +1 -0
- package/dist/lib/paths.d.ts +139 -0
- package/dist/lib/paths.d.ts.map +1 -0
- package/dist/lib/paths.js +105 -0
- package/dist/lib/paths.js.map +1 -0
- package/dist/lib/payload-version.d.ts +15 -0
- package/dist/lib/payload-version.d.ts.map +1 -0
- package/dist/lib/payload-version.js +24 -0
- package/dist/lib/payload-version.js.map +1 -0
- package/dist/lib/phantom-detect.d.ts +21 -0
- package/dist/lib/phantom-detect.d.ts.map +1 -0
- package/dist/lib/phantom-detect.js +76 -0
- package/dist/lib/phantom-detect.js.map +1 -0
- package/dist/lib/project-context.d.ts +66 -0
- package/dist/lib/project-context.d.ts.map +1 -0
- package/dist/lib/project-context.js +112 -0
- package/dist/lib/project-context.js.map +1 -0
- package/dist/lib/recipe-id.d.ts +13 -0
- package/dist/lib/recipe-id.d.ts.map +1 -0
- package/dist/lib/recipe-id.js +15 -0
- package/dist/lib/recipe-id.js.map +1 -0
- package/dist/lib/registry.d.ts +98 -0
- package/dist/lib/registry.d.ts.map +1 -0
- package/dist/lib/registry.js +152 -0
- package/dist/lib/registry.js.map +1 -0
- package/dist/lib/retry.d.ts +26 -0
- package/dist/lib/retry.d.ts.map +1 -0
- package/dist/lib/retry.js +48 -0
- package/dist/lib/retry.js.map +1 -0
- package/dist/lib/run-diagnostics.d.ts +64 -0
- package/dist/lib/run-diagnostics.d.ts.map +1 -0
- package/dist/lib/run-diagnostics.js +25 -0
- package/dist/lib/run-diagnostics.js.map +1 -0
- package/dist/lib/run-scope.d.ts +167 -0
- package/dist/lib/run-scope.d.ts.map +1 -0
- package/dist/lib/run-scope.js +176 -0
- package/dist/lib/run-scope.js.map +1 -0
- package/dist/lib/run-timer.d.ts +82 -0
- package/dist/lib/run-timer.d.ts.map +1 -0
- package/dist/lib/run-timer.js +79 -0
- package/dist/lib/run-timer.js.map +1 -0
- package/dist/lib/scope-types.d.ts +172 -0
- package/dist/lib/scope-types.d.ts.map +1 -0
- package/dist/lib/scope-types.js +27 -0
- package/dist/lib/scope-types.js.map +1 -0
- package/dist/lib/severity-policy.d.ts +38 -0
- package/dist/lib/severity-policy.d.ts.map +1 -0
- package/dist/lib/severity-policy.js +44 -0
- package/dist/lib/severity-policy.js.map +1 -0
- package/dist/lib/telemetry.d.ts +93 -0
- package/dist/lib/telemetry.d.ts.map +1 -0
- package/dist/lib/telemetry.js +144 -0
- package/dist/lib/telemetry.js.map +1 -0
- package/dist/lib/ui-context.d.ts +34 -0
- package/dist/lib/ui-context.d.ts.map +1 -0
- package/dist/lib/ui-context.js +16 -0
- package/dist/lib/ui-context.js.map +1 -0
- package/dist/lib/verdict-policy.d.ts +71 -0
- package/dist/lib/verdict-policy.d.ts.map +1 -0
- package/dist/lib/verdict-policy.js +82 -0
- package/dist/lib/verdict-policy.js.map +1 -0
- package/dist/lib/yaml.d.ts +74 -0
- package/dist/lib/yaml.d.ts.map +1 -0
- package/dist/lib/yaml.js +118 -0
- package/dist/lib/yaml.js.map +1 -0
- package/dist/plugins/__tests__/as-if-external.test.d.ts +18 -0
- package/dist/plugins/__tests__/as-if-external.test.d.ts.map +1 -0
- package/dist/plugins/__tests__/as-if-external.test.js +159 -0
- package/dist/plugins/__tests__/as-if-external.test.js.map +1 -0
- package/dist/plugins/__tests__/authored-tool-discovery.test.d.ts +8 -0
- package/dist/plugins/__tests__/authored-tool-discovery.test.d.ts.map +1 -0
- package/dist/plugins/__tests__/authored-tool-discovery.test.js +97 -0
- package/dist/plugins/__tests__/authored-tool-discovery.test.js.map +1 -0
- package/dist/plugins/__tests__/capability-discovery.test.d.ts +2 -0
- package/dist/plugins/__tests__/capability-discovery.test.d.ts.map +1 -0
- package/dist/plugins/__tests__/capability-discovery.test.js +349 -0
- package/dist/plugins/__tests__/capability-discovery.test.js.map +1 -0
- package/dist/plugins/__tests__/capability-from-manifest.test.d.ts +2 -0
- package/dist/plugins/__tests__/capability-from-manifest.test.d.ts.map +1 -0
- package/dist/plugins/__tests__/capability-from-manifest.test.js +172 -0
- package/dist/plugins/__tests__/capability-from-manifest.test.js.map +1 -0
- package/dist/plugins/__tests__/capability-loader.test.d.ts +2 -0
- package/dist/plugins/__tests__/capability-loader.test.d.ts.map +1 -0
- package/dist/plugins/__tests__/capability-loader.test.js +122 -0
- package/dist/plugins/__tests__/capability-loader.test.js.map +1 -0
- package/dist/plugins/__tests__/capability-registry.test.d.ts +2 -0
- package/dist/plugins/__tests__/capability-registry.test.d.ts.map +1 -0
- package/dist/plugins/__tests__/capability-registry.test.js +185 -0
- package/dist/plugins/__tests__/capability-registry.test.js.map +1 -0
- package/dist/plugins/__tests__/discover.test.d.ts +2 -0
- package/dist/plugins/__tests__/discover.test.d.ts.map +1 -0
- package/dist/plugins/__tests__/discover.test.js +311 -0
- package/dist/plugins/__tests__/discover.test.js.map +1 -0
- package/dist/plugins/__tests__/loader.test.d.ts +2 -0
- package/dist/plugins/__tests__/loader.test.d.ts.map +1 -0
- package/dist/plugins/__tests__/loader.test.js +191 -0
- package/dist/plugins/__tests__/loader.test.js.map +1 -0
- package/dist/plugins/__tests__/manifest-discovery.test.d.ts +2 -0
- package/dist/plugins/__tests__/manifest-discovery.test.d.ts.map +1 -0
- package/dist/plugins/__tests__/manifest-discovery.test.js +132 -0
- package/dist/plugins/__tests__/manifest-discovery.test.js.map +1 -0
- package/dist/plugins/__tests__/manifest-loader.test.d.ts +2 -0
- package/dist/plugins/__tests__/manifest-loader.test.d.ts.map +1 -0
- package/dist/plugins/__tests__/manifest-loader.test.js +434 -0
- package/dist/plugins/__tests__/manifest-loader.test.js.map +1 -0
- package/dist/plugins/__tests__/marker-discovery.test.d.ts +2 -0
- package/dist/plugins/__tests__/marker-discovery.test.d.ts.map +1 -0
- package/dist/plugins/__tests__/marker-discovery.test.js +164 -0
- package/dist/plugins/__tests__/marker-discovery.test.js.map +1 -0
- package/dist/plugins/__tests__/node-modules-walk.test.d.ts +2 -0
- package/dist/plugins/__tests__/node-modules-walk.test.d.ts.map +1 -0
- package/dist/plugins/__tests__/node-modules-walk.test.js +76 -0
- package/dist/plugins/__tests__/node-modules-walk.test.js.map +1 -0
- package/dist/plugins/__tests__/package-entry.test.d.ts +9 -0
- package/dist/plugins/__tests__/package-entry.test.d.ts.map +1 -0
- package/dist/plugins/__tests__/package-entry.test.js +117 -0
- package/dist/plugins/__tests__/package-entry.test.js.map +1 -0
- package/dist/plugins/__tests__/recipe-loader.test.d.ts +2 -0
- package/dist/plugins/__tests__/recipe-loader.test.d.ts.map +1 -0
- package/dist/plugins/__tests__/recipe-loader.test.js +130 -0
- package/dist/plugins/__tests__/recipe-loader.test.js.map +1 -0
- package/dist/plugins/__tests__/scope-validation.test.d.ts +2 -0
- package/dist/plugins/__tests__/scope-validation.test.d.ts.map +1 -0
- package/dist/plugins/__tests__/scope-validation.test.js +68 -0
- package/dist/plugins/__tests__/scope-validation.test.js.map +1 -0
- package/dist/plugins/__tests__/single-core-guard.test.d.ts +10 -0
- package/dist/plugins/__tests__/single-core-guard.test.d.ts.map +1 -0
- package/dist/plugins/__tests__/single-core-guard.test.js +89 -0
- package/dist/plugins/__tests__/single-core-guard.test.js.map +1 -0
- package/dist/plugins/__tests__/tool-package-discovery.test.d.ts +2 -0
- package/dist/plugins/__tests__/tool-package-discovery.test.d.ts.map +1 -0
- package/dist/plugins/__tests__/tool-package-discovery.test.js +215 -0
- package/dist/plugins/__tests__/tool-package-discovery.test.js.map +1 -0
- package/dist/plugins/authored-tool-discovery.d.ts +45 -0
- package/dist/plugins/authored-tool-discovery.d.ts.map +1 -0
- package/dist/plugins/authored-tool-discovery.js +61 -0
- package/dist/plugins/authored-tool-discovery.js.map +1 -0
- package/dist/plugins/capability-discovery.d.ts +80 -0
- package/dist/plugins/capability-discovery.d.ts.map +1 -0
- package/dist/plugins/capability-discovery.js +278 -0
- package/dist/plugins/capability-discovery.js.map +1 -0
- package/dist/plugins/capability-loader.d.ts +50 -0
- package/dist/plugins/capability-loader.d.ts.map +1 -0
- package/dist/plugins/capability-loader.js +85 -0
- package/dist/plugins/capability-loader.js.map +1 -0
- package/dist/plugins/capability-registry.d.ts +169 -0
- package/dist/plugins/capability-registry.d.ts.map +1 -0
- package/dist/plugins/capability-registry.js +319 -0
- package/dist/plugins/capability-registry.js.map +1 -0
- package/dist/plugins/discover.d.ts +64 -0
- package/dist/plugins/discover.d.ts.map +1 -0
- package/dist/plugins/discover.js +303 -0
- package/dist/plugins/discover.js.map +1 -0
- package/dist/plugins/index.d.ts +37 -0
- package/dist/plugins/index.d.ts.map +1 -0
- package/dist/plugins/index.js +40 -0
- package/dist/plugins/index.js.map +1 -0
- package/dist/plugins/json-guards.d.ts +11 -0
- package/dist/plugins/json-guards.d.ts.map +1 -0
- package/dist/plugins/json-guards.js +15 -0
- package/dist/plugins/json-guards.js.map +1 -0
- package/dist/plugins/loader.d.ts +67 -0
- package/dist/plugins/loader.d.ts.map +1 -0
- package/dist/plugins/loader.js +137 -0
- package/dist/plugins/loader.js.map +1 -0
- package/dist/plugins/manifest-discovery.d.ts +28 -0
- package/dist/plugins/manifest-discovery.d.ts.map +1 -0
- package/dist/plugins/manifest-discovery.js +103 -0
- package/dist/plugins/manifest-discovery.js.map +1 -0
- package/dist/plugins/manifest-loader.d.ts +120 -0
- package/dist/plugins/manifest-loader.d.ts.map +1 -0
- package/dist/plugins/manifest-loader.js +410 -0
- package/dist/plugins/manifest-loader.js.map +1 -0
- package/dist/plugins/marker-discovery.d.ts +115 -0
- package/dist/plugins/marker-discovery.d.ts.map +1 -0
- package/dist/plugins/marker-discovery.js +172 -0
- package/dist/plugins/marker-discovery.js.map +1 -0
- package/dist/plugins/node-modules-walk.d.ts +61 -0
- package/dist/plugins/node-modules-walk.d.ts.map +1 -0
- package/dist/plugins/node-modules-walk.js +99 -0
- package/dist/plugins/node-modules-walk.js.map +1 -0
- package/dist/plugins/package-entry.d.ts +38 -0
- package/dist/plugins/package-entry.d.ts.map +1 -0
- package/dist/plugins/package-entry.js +86 -0
- package/dist/plugins/package-entry.js.map +1 -0
- package/dist/plugins/recipe-loader.d.ts +63 -0
- package/dist/plugins/recipe-loader.d.ts.map +1 -0
- package/dist/plugins/recipe-loader.js +67 -0
- package/dist/plugins/recipe-loader.js.map +1 -0
- package/dist/plugins/scope-validation.d.ts +35 -0
- package/dist/plugins/scope-validation.d.ts.map +1 -0
- package/dist/plugins/scope-validation.js +55 -0
- package/dist/plugins/scope-validation.js.map +1 -0
- package/dist/plugins/single-core-guard.d.ts +28 -0
- package/dist/plugins/single-core-guard.d.ts.map +1 -0
- package/dist/plugins/single-core-guard.js +69 -0
- package/dist/plugins/single-core-guard.js.map +1 -0
- package/dist/plugins/tool-package-discovery.d.ts +93 -0
- package/dist/plugins/tool-package-discovery.d.ts.map +1 -0
- package/dist/plugins/tool-package-discovery.js +118 -0
- package/dist/plugins/tool-package-discovery.js.map +1 -0
- package/dist/plugins/types.d.ts +78 -0
- package/dist/plugins/types.d.ts.map +1 -0
- package/dist/plugins/types.js +15 -0
- package/dist/plugins/types.js.map +1 -0
- package/dist/recipes/__tests__/registry.test.d.ts +2 -0
- package/dist/recipes/__tests__/registry.test.d.ts.map +1 -0
- package/dist/recipes/__tests__/registry.test.js +170 -0
- package/dist/recipes/__tests__/registry.test.js.map +1 -0
- package/dist/recipes/__tests__/selector.test.d.ts +20 -0
- package/dist/recipes/__tests__/selector.test.d.ts.map +1 -0
- package/dist/recipes/__tests__/selector.test.js +173 -0
- package/dist/recipes/__tests__/selector.test.js.map +1 -0
- package/dist/recipes/__tests__/unit-config.test.d.ts +7 -0
- package/dist/recipes/__tests__/unit-config.test.d.ts.map +1 -0
- package/dist/recipes/__tests__/unit-config.test.js +52 -0
- package/dist/recipes/__tests__/unit-config.test.js.map +1 -0
- package/dist/recipes/registry.d.ts +105 -0
- package/dist/recipes/registry.d.ts.map +1 -0
- package/dist/recipes/registry.js +141 -0
- package/dist/recipes/registry.js.map +1 -0
- package/dist/recipes/selector.d.ts +112 -0
- package/dist/recipes/selector.d.ts.map +1 -0
- package/dist/recipes/selector.js +134 -0
- package/dist/recipes/selector.js.map +1 -0
- package/dist/recipes/unit-config.d.ts +63 -0
- package/dist/recipes/unit-config.d.ts.map +1 -0
- package/dist/recipes/unit-config.js +68 -0
- package/dist/recipes/unit-config.js.map +1 -0
- package/dist/runtime/__tests__/in-process-transport.test.d.ts +6 -0
- package/dist/runtime/__tests__/in-process-transport.test.d.ts.map +1 -0
- package/dist/runtime/__tests__/in-process-transport.test.js +73 -0
- package/dist/runtime/__tests__/in-process-transport.test.js.map +1 -0
- package/dist/runtime/__tests__/subprocess-transport.test.d.ts +11 -0
- package/dist/runtime/__tests__/subprocess-transport.test.d.ts.map +1 -0
- package/dist/runtime/__tests__/subprocess-transport.test.js +118 -0
- package/dist/runtime/__tests__/subprocess-transport.test.js.map +1 -0
- package/dist/runtime/in-process-transport.d.ts +20 -0
- package/dist/runtime/in-process-transport.d.ts.map +1 -0
- package/dist/runtime/in-process-transport.js +49 -0
- package/dist/runtime/in-process-transport.js.map +1 -0
- package/dist/runtime/progress-transport.d.ts +73 -0
- package/dist/runtime/progress-transport.d.ts.map +1 -0
- package/dist/runtime/progress-transport.js +17 -0
- package/dist/runtime/progress-transport.js.map +1 -0
- package/dist/runtime/subprocess-transport.d.ts +43 -0
- package/dist/runtime/subprocess-transport.d.ts.map +1 -0
- package/dist/runtime/subprocess-transport.js +134 -0
- package/dist/runtime/subprocess-transport.js.map +1 -0
- package/dist/signals/comment-openers.d.ts +29 -0
- package/dist/signals/comment-openers.d.ts.map +1 -0
- package/dist/signals/comment-openers.js +41 -0
- package/dist/signals/comment-openers.js.map +1 -0
- package/dist/signals/comment-openers.test.d.ts +7 -0
- package/dist/signals/comment-openers.test.d.ts.map +1 -0
- package/dist/signals/comment-openers.test.js +41 -0
- package/dist/signals/comment-openers.test.js.map +1 -0
- package/dist/signals/create-signal-from-violation.d.ts +29 -0
- package/dist/signals/create-signal-from-violation.d.ts.map +1 -0
- package/dist/signals/create-signal-from-violation.js +29 -0
- package/dist/signals/create-signal-from-violation.js.map +1 -0
- package/dist/signals/signal-sink.d.ts +49 -0
- package/dist/signals/signal-sink.d.ts.map +1 -0
- package/dist/signals/signal-sink.js +6 -0
- package/dist/signals/signal-sink.js.map +1 -0
- package/dist/signals/suppress.d.ts +102 -0
- package/dist/signals/suppress.d.ts.map +1 -0
- package/dist/signals/suppress.js +325 -0
- package/dist/signals/suppress.js.map +1 -0
- package/dist/signals/suppress.test.d.ts +2 -0
- package/dist/signals/suppress.test.d.ts.map +1 -0
- package/dist/signals/suppress.test.js +213 -0
- package/dist/signals/suppress.test.js.map +1 -0
- package/dist/tools/__tests__/command-spec.test.d.ts +2 -0
- package/dist/tools/__tests__/command-spec.test.d.ts.map +1 -0
- package/dist/tools/__tests__/command-spec.test.js +191 -0
- package/dist/tools/__tests__/command-spec.test.js.map +1 -0
- package/dist/tools/__tests__/compatibility.test.d.ts +5 -0
- package/dist/tools/__tests__/compatibility.test.d.ts.map +1 -0
- package/dist/tools/__tests__/compatibility.test.js +41 -0
- package/dist/tools/__tests__/compatibility.test.js.map +1 -0
- package/dist/tools/__tests__/ids.test.d.ts +5 -0
- package/dist/tools/__tests__/ids.test.d.ts.map +1 -0
- package/dist/tools/__tests__/ids.test.js +56 -0
- package/dist/tools/__tests__/ids.test.js.map +1 -0
- package/dist/tools/__tests__/manifest-assert.test.d.ts +5 -0
- package/dist/tools/__tests__/manifest-assert.test.d.ts.map +1 -0
- package/dist/tools/__tests__/manifest-assert.test.js +66 -0
- package/dist/tools/__tests__/manifest-assert.test.js.map +1 -0
- package/dist/tools/__tests__/registry.test.d.ts +2 -0
- package/dist/tools/__tests__/registry.test.d.ts.map +1 -0
- package/dist/tools/__tests__/registry.test.js +93 -0
- package/dist/tools/__tests__/registry.test.js.map +1 -0
- package/dist/tools/__tests__/types.test.d.ts +2 -0
- package/dist/tools/__tests__/types.test.d.ts.map +1 -0
- package/dist/tools/__tests__/types.test.js +51 -0
- package/dist/tools/__tests__/types.test.js.map +1 -0
- package/dist/tools/capability.d.ts +257 -0
- package/dist/tools/capability.d.ts.map +1 -0
- package/dist/tools/capability.js +46 -0
- package/dist/tools/capability.js.map +1 -0
- package/dist/tools/command-spec.d.ts +211 -0
- package/dist/tools/command-spec.d.ts.map +1 -0
- package/dist/tools/command-spec.js +110 -0
- package/dist/tools/command-spec.js.map +1 -0
- package/dist/tools/compatibility.d.ts +45 -0
- package/dist/tools/compatibility.d.ts.map +1 -0
- package/dist/tools/compatibility.js +49 -0
- package/dist/tools/compatibility.js.map +1 -0
- package/dist/tools/ids.d.ts +61 -0
- package/dist/tools/ids.d.ts.map +1 -0
- package/dist/tools/ids.js +61 -0
- package/dist/tools/ids.js.map +1 -0
- package/dist/tools/index.d.ts +22 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +28 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/manifest-assert.d.ts +35 -0
- package/dist/tools/manifest-assert.d.ts.map +1 -0
- package/dist/tools/manifest-assert.js +67 -0
- package/dist/tools/manifest-assert.js.map +1 -0
- package/dist/tools/manifest.d.ts +178 -0
- package/dist/tools/manifest.d.ts.map +1 -0
- package/dist/tools/manifest.js +35 -0
- package/dist/tools/manifest.js.map +1 -0
- package/dist/tools/registry.d.ts +37 -0
- package/dist/tools/registry.d.ts.map +1 -0
- package/dist/tools/registry.js +49 -0
- package/dist/tools/registry.js.map +1 -0
- package/dist/tools/types.d.ts +1021 -0
- package/dist/tools/types.d.ts.map +1 -0
- package/dist/tools/types.js +77 -0
- package/dist/tools/types.js.map +1 -0
- package/dist/types/__tests__/signal.test.d.ts +2 -0
- package/dist/types/__tests__/signal.test.d.ts.map +1 -0
- package/dist/types/__tests__/signal.test.js +111 -0
- package/dist/types/__tests__/signal.test.js.map +1 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +3 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/signal-batch.d.ts +56 -0
- package/dist/types/signal-batch.d.ts.map +1 -0
- package/dist/types/signal-batch.js +54 -0
- package/dist/types/signal-batch.js.map +1 -0
- package/dist/types/signal.d.ts +77 -0
- package/dist/types/signal.d.ts.map +1 -0
- package/dist/types/signal.js +42 -0
- package/dist/types/signal.js.map +1 -0
- package/package.json +57 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Fingerprint strategy — the host-owned baseline/ratchet plane's
|
|
3
|
+
* identity primitive (ADR-0036).
|
|
4
|
+
*
|
|
5
|
+
* A `FingerprintStrategy` maps a `Signal` to a stable string identity. Each tool
|
|
6
|
+
* MAY declare one via `Tool.fingerprintStrategy`; a tool that declares nothing
|
|
7
|
+
* inherits {@link defaultFingerprintStrategy}. The fingerprint is stamped onto
|
|
8
|
+
* `Signal.fingerprint` at envelope-construction time: `buildSignalEnvelope`
|
|
9
|
+
* (`@opensip-cli/contracts`) calls {@link stampFingerprints} with the tool's
|
|
10
|
+
* strategy (host default when none is passed), so every built envelope reaches
|
|
11
|
+
* the host seams already stamped. The plane itself NEVER re-fingerprints or
|
|
12
|
+
* re-derives the value (it treats it opaquely); the seam-side stamped-ness check
|
|
13
|
+
* (`requireStampedEntries`, cli baseline-seams) remains as defense in depth for
|
|
14
|
+
* envelopes assembled without the builder.
|
|
15
|
+
*
|
|
16
|
+
* This lives in `core` because `core` is the only layer every tool already
|
|
17
|
+
* imports and it owns `Signal`; the strategy is pure (no persistence), so it is
|
|
18
|
+
* kernel-safe.
|
|
19
|
+
*/
|
|
20
|
+
import type { Signal } from '../types/signal.js';
|
|
21
|
+
/** Maps a {@link Signal} to its stable, opaque baseline identity (ADR-0036). */
|
|
22
|
+
export type FingerprintStrategy = (signal: Signal) => string;
|
|
23
|
+
/**
|
|
24
|
+
* The host default identity: `ruleId | filePath | line | column`.
|
|
25
|
+
*
|
|
26
|
+
* Verbatim shape from graph's `fingerprintSignal` so the host default and
|
|
27
|
+
* graph's byte-preserved strategy are textually identical. Deliberately excludes
|
|
28
|
+
* `message` — a fingerprint is an *identity*, and several rules embed run-varying
|
|
29
|
+
* counts in their message text, which would make the same logical finding
|
|
30
|
+
* fingerprint differently across runs (a spurious "resolved + new" flap).
|
|
31
|
+
*
|
|
32
|
+
* WARNING for tool authors: this strategy collides for any two findings that
|
|
33
|
+
* share ruleId+filePath but lack a stable line/col (e.g. synthetic whole-file
|
|
34
|
+
* nodes like `<module-init>`, or rules that intentionally report at file level
|
|
35
|
+
* with line/col omitted or zero). Tools that emit such findings MUST declare
|
|
36
|
+
* their own `Tool.fingerprintStrategy` (see helpers below or a content hash)
|
|
37
|
+
* or risk baseline ratchet flapping / lost distinct findings.
|
|
38
|
+
*/
|
|
39
|
+
export declare const defaultFingerprintStrategy: FingerprintStrategy;
|
|
40
|
+
/**
|
|
41
|
+
* A stable identity for file-level or synthetic (no reliable line/col) findings.
|
|
42
|
+
* Differentiates by ruleId + filePath only. Suitable when the *rule* itself
|
|
43
|
+
* is the distinguishing fact and there is at most one such finding per
|
|
44
|
+
* (rule, file) in a run.
|
|
45
|
+
*/
|
|
46
|
+
export declare const fileLevelFingerprintStrategy: FingerprintStrategy;
|
|
47
|
+
/**
|
|
48
|
+
* A content-aware fallback that incorporates a short hash of the message when
|
|
49
|
+
* line/col are absent. This reduces (but does not eliminate) collisions for
|
|
50
|
+
* rules that legitimately emit multiple file-level findings that differ only
|
|
51
|
+
* in the human message text.
|
|
52
|
+
*
|
|
53
|
+
* Tools that care about exact stability should prefer a strategy that hashes
|
|
54
|
+
* the parts of the Signal that are semantically part of "the same finding"
|
|
55
|
+
* (often ruleId + filePath + a normalized key extracted from the finding).
|
|
56
|
+
*/
|
|
57
|
+
export declare const contentHashFallbackFingerprintStrategy: FingerprintStrategy;
|
|
58
|
+
/**
|
|
59
|
+
* Stamp `fingerprint` onto each signal using `strategy`, returning new signal
|
|
60
|
+
* objects (spread + override). Called by `buildSignalEnvelope` at
|
|
61
|
+
* envelope-construction time (ADR-0036), BEFORE the envelope reaches a host seam.
|
|
62
|
+
*
|
|
63
|
+
* **Idempotent**: a signal whose `fingerprint` is already a non-empty string is
|
|
64
|
+
* returned unchanged — and a fully pre-stamped array is returned by identity
|
|
65
|
+
* (no re-allocation). This is a safety net (it lets a tool stamp earlier still,
|
|
66
|
+
* e.g. at `createSignal`, without double-hashing), NOT a second stamping point —
|
|
67
|
+
* the host seams only ever READ `signal.fingerprint`.
|
|
68
|
+
*/
|
|
69
|
+
export declare function stampFingerprints(signals: readonly Signal[], strategy: FingerprintStrategy): readonly Signal[];
|
|
70
|
+
//# sourceMappingURL=fingerprint-strategy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fingerprint-strategy.d.ts","sourceRoot":"","sources":["../../src/baseline/fingerprint-strategy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAEjD,gFAAgF;AAChF,MAAM,MAAM,mBAAmB,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;AAE7D;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,0BAA0B,EAAE,mBACoC,CAAC;AAE9E;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B,EAAE,mBAAwD,CAAC;AAEpG;;;;;;;;;GASG;AACH,eAAO,MAAM,sCAAsC,EAAE,mBAkBpD,CAAC;AAEF;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,SAAS,MAAM,EAAE,EAC1B,QAAQ,EAAE,mBAAmB,GAC5B,SAAS,MAAM,EAAE,CAKnB"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Fingerprint strategy — the host-owned baseline/ratchet plane's
|
|
3
|
+
* identity primitive (ADR-0036).
|
|
4
|
+
*
|
|
5
|
+
* A `FingerprintStrategy` maps a `Signal` to a stable string identity. Each tool
|
|
6
|
+
* MAY declare one via `Tool.fingerprintStrategy`; a tool that declares nothing
|
|
7
|
+
* inherits {@link defaultFingerprintStrategy}. The fingerprint is stamped onto
|
|
8
|
+
* `Signal.fingerprint` at envelope-construction time: `buildSignalEnvelope`
|
|
9
|
+
* (`@opensip-cli/contracts`) calls {@link stampFingerprints} with the tool's
|
|
10
|
+
* strategy (host default when none is passed), so every built envelope reaches
|
|
11
|
+
* the host seams already stamped. The plane itself NEVER re-fingerprints or
|
|
12
|
+
* re-derives the value (it treats it opaquely); the seam-side stamped-ness check
|
|
13
|
+
* (`requireStampedEntries`, cli baseline-seams) remains as defense in depth for
|
|
14
|
+
* envelopes assembled without the builder.
|
|
15
|
+
*
|
|
16
|
+
* This lives in `core` because `core` is the only layer every tool already
|
|
17
|
+
* imports and it owns `Signal`; the strategy is pure (no persistence), so it is
|
|
18
|
+
* kernel-safe.
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* The host default identity: `ruleId | filePath | line | column`.
|
|
22
|
+
*
|
|
23
|
+
* Verbatim shape from graph's `fingerprintSignal` so the host default and
|
|
24
|
+
* graph's byte-preserved strategy are textually identical. Deliberately excludes
|
|
25
|
+
* `message` — a fingerprint is an *identity*, and several rules embed run-varying
|
|
26
|
+
* counts in their message text, which would make the same logical finding
|
|
27
|
+
* fingerprint differently across runs (a spurious "resolved + new" flap).
|
|
28
|
+
*
|
|
29
|
+
* WARNING for tool authors: this strategy collides for any two findings that
|
|
30
|
+
* share ruleId+filePath but lack a stable line/col (e.g. synthetic whole-file
|
|
31
|
+
* nodes like `<module-init>`, or rules that intentionally report at file level
|
|
32
|
+
* with line/col omitted or zero). Tools that emit such findings MUST declare
|
|
33
|
+
* their own `Tool.fingerprintStrategy` (see helpers below or a content hash)
|
|
34
|
+
* or risk baseline ratchet flapping / lost distinct findings.
|
|
35
|
+
*/
|
|
36
|
+
export const defaultFingerprintStrategy = (s) => `${s.ruleId}|${s.filePath}|${String(s.line ?? 0)}|${String(s.column ?? 0)}`;
|
|
37
|
+
/**
|
|
38
|
+
* A stable identity for file-level or synthetic (no reliable line/col) findings.
|
|
39
|
+
* Differentiates by ruleId + filePath only. Suitable when the *rule* itself
|
|
40
|
+
* is the distinguishing fact and there is at most one such finding per
|
|
41
|
+
* (rule, file) in a run.
|
|
42
|
+
*/
|
|
43
|
+
export const fileLevelFingerprintStrategy = (s) => `${s.ruleId}|${s.filePath}`;
|
|
44
|
+
/**
|
|
45
|
+
* A content-aware fallback that incorporates a short hash of the message when
|
|
46
|
+
* line/col are absent. This reduces (but does not eliminate) collisions for
|
|
47
|
+
* rules that legitimately emit multiple file-level findings that differ only
|
|
48
|
+
* in the human message text.
|
|
49
|
+
*
|
|
50
|
+
* Tools that care about exact stability should prefer a strategy that hashes
|
|
51
|
+
* the parts of the Signal that are semantically part of "the same finding"
|
|
52
|
+
* (often ruleId + filePath + a normalized key extracted from the finding).
|
|
53
|
+
*/
|
|
54
|
+
export const contentHashFallbackFingerprintStrategy = (s) => {
|
|
55
|
+
// Very small stable hash of message (or empty) to disambiguate file-level variants.
|
|
56
|
+
const msg = s.message ?? '';
|
|
57
|
+
let h = 2_166_136_261;
|
|
58
|
+
for (let i = 0; i < msg.length; i++) {
|
|
59
|
+
const cp = msg.codePointAt(i) ?? 0;
|
|
60
|
+
h ^= cp & 0xff_ff;
|
|
61
|
+
h = Math.imul(h, 16_777_619);
|
|
62
|
+
if (cp > 0xff_ff)
|
|
63
|
+
i += 1;
|
|
64
|
+
}
|
|
65
|
+
const suffix = (h >>> 0).toString(16).padStart(8, '0');
|
|
66
|
+
const line = s.line ?? 0;
|
|
67
|
+
const col = s.column ?? 0;
|
|
68
|
+
// When we have real line/col prefer the default shape; otherwise use file+hash.
|
|
69
|
+
if (line || col) {
|
|
70
|
+
return defaultFingerprintStrategy(s);
|
|
71
|
+
}
|
|
72
|
+
return `${s.ruleId}|${s.filePath}|${suffix}`;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* Stamp `fingerprint` onto each signal using `strategy`, returning new signal
|
|
76
|
+
* objects (spread + override). Called by `buildSignalEnvelope` at
|
|
77
|
+
* envelope-construction time (ADR-0036), BEFORE the envelope reaches a host seam.
|
|
78
|
+
*
|
|
79
|
+
* **Idempotent**: a signal whose `fingerprint` is already a non-empty string is
|
|
80
|
+
* returned unchanged — and a fully pre-stamped array is returned by identity
|
|
81
|
+
* (no re-allocation). This is a safety net (it lets a tool stamp earlier still,
|
|
82
|
+
* e.g. at `createSignal`, without double-hashing), NOT a second stamping point —
|
|
83
|
+
* the host seams only ever READ `signal.fingerprint`.
|
|
84
|
+
*/
|
|
85
|
+
export function stampFingerprints(signals, strategy) {
|
|
86
|
+
if (signals.every((signal) => signal.fingerprint))
|
|
87
|
+
return signals;
|
|
88
|
+
return signals.map((signal) => signal.fingerprint ? signal : { ...signal, fingerprint: strategy(signal) });
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=fingerprint-strategy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fingerprint-strategy.js","sourceRoot":"","sources":["../../src/baseline/fingerprint-strategy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAOH;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAwB,CAAC,CAAC,EAAE,EAAE,CACnE,GAAG,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,QAAQ,IAAI,MAAM,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,EAAE,CAAC;AAE9E;;;;;GAKG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAwB,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC;AAEpG;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,sCAAsC,GAAwB,CAAC,CAAC,EAAE,EAAE;IAC/E,oFAAoF;IACpF,MAAM,GAAG,GAAG,CAAC,CAAC,OAAO,IAAI,EAAE,CAAC;IAC5B,IAAI,CAAC,GAAG,aAAa,CAAC;IACtB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EA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path to opensip-cli.config.yml.
|
|
3
|
+
*
|
|
4
|
+
* Resolution order (first match wins):
|
|
5
|
+
* 1. Explicit path — passed from --config CLI flag or programmatic caller.
|
|
6
|
+
* 2. package.json — `opensip-cli.configPath` field at <rootDir>/package.json.
|
|
7
|
+
* 3. Default — <rootDir>/opensip-cli.config.yml.
|
|
8
|
+
*
|
|
9
|
+
* Throws ValidationError if none of the above resolve to an existing file.
|
|
10
|
+
* This is intentional: running fitness checks with no config silently
|
|
11
|
+
* produces zero findings (file-based checks get zero files), which looks
|
|
12
|
+
* green but actually didn't run anything.
|
|
13
|
+
*/
|
|
14
|
+
/** Canonical filename for the opensip-cli project config. */
|
|
15
|
+
export declare const PROJECT_CONFIG_FILENAME = "opensip-cli.config.yml";
|
|
16
|
+
/**
|
|
17
|
+
* Resolve the config file path for a given rootDir.
|
|
18
|
+
*
|
|
19
|
+
* @param rootDir - Absolute path to the project root.
|
|
20
|
+
* @param explicitPath - Optional path from `--config` CLI flag. May be
|
|
21
|
+
* absolute or relative to `rootDir`.
|
|
22
|
+
* @throws {ValidationError} When no config file exists at any resolved
|
|
23
|
+
* location. The error message enumerates every path attempted so
|
|
24
|
+
* operators can diagnose without re-running with --debug.
|
|
25
|
+
*/
|
|
26
|
+
export declare function resolveProjectConfigPath(rootDir: string, explicitPath?: string): string;
|
|
27
|
+
//# sourceMappingURL=config-resolution.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-resolution.d.ts","sourceRoot":"","sources":["../src/config-resolution.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAOH,6DAA6D;AAC7D,eAAO,MAAM,uBAAuB,2BAA2B,CAAC;AAiChE;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAwCvF"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Resolve the path to opensip-cli.config.yml.
|
|
3
|
+
*
|
|
4
|
+
* Resolution order (first match wins):
|
|
5
|
+
* 1. Explicit path — passed from --config CLI flag or programmatic caller.
|
|
6
|
+
* 2. package.json — `opensip-cli.configPath` field at <rootDir>/package.json.
|
|
7
|
+
* 3. Default — <rootDir>/opensip-cli.config.yml.
|
|
8
|
+
*
|
|
9
|
+
* Throws ValidationError if none of the above resolve to an existing file.
|
|
10
|
+
* This is intentional: running fitness checks with no config silently
|
|
11
|
+
* produces zero findings (file-based checks get zero files), which looks
|
|
12
|
+
* green but actually didn't run anything.
|
|
13
|
+
*/
|
|
14
|
+
import { existsSync, readFileSync } from 'node:fs';
|
|
15
|
+
import { isAbsolute, join, resolve } from 'node:path';
|
|
16
|
+
import { ValidationError } from './lib/errors.js';
|
|
17
|
+
/** Canonical filename for the opensip-cli project config. */
|
|
18
|
+
export const PROJECT_CONFIG_FILENAME = 'opensip-cli.config.yml';
|
|
19
|
+
/** Key read from package.json to locate a non-default config path. */
|
|
20
|
+
const PKG_JSON_POINTER_FIELD = 'opensip-cli';
|
|
21
|
+
const PKG_JSON_POINTER_SUBFIELD = 'configPath';
|
|
22
|
+
/** Read `configPath` from <rootDir>/package.json. Returns null when absent. */
|
|
23
|
+
function readConfigPathFromPackageJson(rootDir) {
|
|
24
|
+
const pkgPath = join(rootDir, 'package.json');
|
|
25
|
+
if (!existsSync(pkgPath))
|
|
26
|
+
return null;
|
|
27
|
+
let parsed;
|
|
28
|
+
try {
|
|
29
|
+
parsed = JSON.parse(readFileSync(pkgPath, 'utf8'));
|
|
30
|
+
}
|
|
31
|
+
catch {
|
|
32
|
+
// Malformed package.json is the user's problem to fix — don't
|
|
33
|
+
// silently mask it with a config-resolution error. The subsequent
|
|
34
|
+
// fall-through to the default path will succeed or fail as usual.
|
|
35
|
+
// @fitness-ignore-next-line error-handling-quality -- intentional swallow: malformed package.json surfaces via null return (see preceding comment).
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
if (typeof parsed !== 'object' || parsed === null)
|
|
39
|
+
return null;
|
|
40
|
+
const root = parsed;
|
|
41
|
+
const toolSection = root[PKG_JSON_POINTER_FIELD];
|
|
42
|
+
if (typeof toolSection !== 'object' || toolSection === null)
|
|
43
|
+
return null;
|
|
44
|
+
const section = toolSection;
|
|
45
|
+
const raw = section[PKG_JSON_POINTER_SUBFIELD];
|
|
46
|
+
if (typeof raw !== 'string' || raw.length === 0)
|
|
47
|
+
return null;
|
|
48
|
+
return raw;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Resolve the config file path for a given rootDir.
|
|
52
|
+
*
|
|
53
|
+
* @param rootDir - Absolute path to the project root.
|
|
54
|
+
* @param explicitPath - Optional path from `--config` CLI flag. May be
|
|
55
|
+
* absolute or relative to `rootDir`.
|
|
56
|
+
* @throws {ValidationError} When no config file exists at any resolved
|
|
57
|
+
* location. The error message enumerates every path attempted so
|
|
58
|
+
* operators can diagnose without re-running with --debug.
|
|
59
|
+
*/
|
|
60
|
+
export function resolveProjectConfigPath(rootDir, explicitPath) {
|
|
61
|
+
const attempts = [];
|
|
62
|
+
// 1. --config flag (explicit)
|
|
63
|
+
if (explicitPath && explicitPath.length > 0) {
|
|
64
|
+
const resolved = isAbsolute(explicitPath) ? explicitPath : resolve(rootDir, explicitPath);
|
|
65
|
+
attempts.push(`--config ${resolved}`);
|
|
66
|
+
if (existsSync(resolved))
|
|
67
|
+
return resolved;
|
|
68
|
+
throw new ValidationError(`Config path from --config flag does not exist: ${resolved}`, {
|
|
69
|
+
operation: 'resolve',
|
|
70
|
+
loader: 'project-config',
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
// 2. package.json#opensip-cli.configPath
|
|
74
|
+
const pointerRaw = readConfigPathFromPackageJson(rootDir);
|
|
75
|
+
if (pointerRaw) {
|
|
76
|
+
const resolved = isAbsolute(pointerRaw) ? pointerRaw : resolve(rootDir, pointerRaw);
|
|
77
|
+
attempts.push(`package.json#${PKG_JSON_POINTER_FIELD}.${PKG_JSON_POINTER_SUBFIELD} → ${resolved}`);
|
|
78
|
+
if (existsSync(resolved))
|
|
79
|
+
return resolved;
|
|
80
|
+
throw new ValidationError(`package.json "${PKG_JSON_POINTER_FIELD}.${PKG_JSON_POINTER_SUBFIELD}" points to a file that does not exist: ${resolved}`, { operation: 'resolve', loader: 'project-config' });
|
|
81
|
+
}
|
|
82
|
+
// 3. Default: <rootDir>/opensip-cli.config.yml
|
|
83
|
+
const defaultPath = join(rootDir, PROJECT_CONFIG_FILENAME);
|
|
84
|
+
attempts.push(defaultPath);
|
|
85
|
+
if (existsSync(defaultPath))
|
|
86
|
+
return defaultPath;
|
|
87
|
+
throw new ValidationError(`No ${PROJECT_CONFIG_FILENAME} found. Checked:\n` +
|
|
88
|
+
attempts.map((a) => ` - ${a}`).join('\n') +
|
|
89
|
+
`\n\nRun 'opensip init' to scaffold one, or pass --config <path> ` +
|
|
90
|
+
`to point at an existing config.`, { operation: 'resolve', loader: 'project-config', code: 'ERRORS.CONFIG.NOT_FOUND' });
|
|
91
|
+
}
|
|
92
|
+
//# sourceMappingURL=config-resolution.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-resolution.js","sourceRoot":"","sources":["../src/config-resolution.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEtD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,6DAA6D;AAC7D,MAAM,CAAC,MAAM,uBAAuB,GAAG,wBAAwB,CAAC;AAEhE,sEAAsE;AACtE,MAAM,sBAAsB,GAAG,aAAa,CAAC;AAC7C,MAAM,yBAAyB,GAAG,YAAY,CAAC;AAE/C,+EAA+E;AAC/E,SAAS,6BAA6B,CAAC,OAAe;IACpD,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AM,EAAE,gBAAgB,EAAE,IAAI,EAAE,yBAAyB,EAAE,CACpF,CAAC;AACJ,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
export type { Signal, SignalSeverity, SignalCategory, CreateSignalInput, FixHint, } from './types/signal.js';
|
|
2
|
+
export { createSignal, isErrorSeverity, isErrorSignal } from './types/signal.js';
|
|
3
|
+
export { SeverityPolicy } from './lib/severity-policy.js';
|
|
4
|
+
export type { AuthorSeverity } from './lib/severity-policy.js';
|
|
5
|
+
export { HOST_VERDICT_POLICY_FALLBACK, policyPasses, resolveVerdictPolicy, DEFAULT_FAIL_ON_DEGRADED, resolveFailOnDegraded, } from './lib/verdict-policy.js';
|
|
6
|
+
export type { VerdictPolicy } from './lib/verdict-policy.js';
|
|
7
|
+
export { contentHashFallbackFingerprintStrategy, defaultFingerprintStrategy, fileLevelFingerprintStrategy, stampFingerprints, } from './baseline/fingerprint-strategy.js';
|
|
8
|
+
export type { FingerprintStrategy } from './baseline/fingerprint-strategy.js';
|
|
9
|
+
export { createSignalFromViolation } from './signals/create-signal-from-violation.js';
|
|
10
|
+
export type { ViolationInput } from './signals/create-signal-from-violation.js';
|
|
11
|
+
export type { SignalBatch, RepoIdentity, BuildSignalBatchInput } from './types/signal-batch.js';
|
|
12
|
+
export { buildSignalBatch, MAX_SIGNALS_PER_BATCH } from './types/signal-batch.js';
|
|
13
|
+
export type { SignalSink, EmitResult } from './signals/signal-sink.js';
|
|
14
|
+
export { noopSignalSink } from './signals/signal-sink.js';
|
|
15
|
+
export { filterSignalsBySuppressions, scanSuppressionDirectives } from './signals/suppress.js';
|
|
16
|
+
export type { SuppressionKeywords, SuppressionLocation, SuppressionRequest, SuppressionMatch, SuppressionResult, SuppressionScan, } from './signals/suppress.js';
|
|
17
|
+
export { COMMENT_OPENERS, stripCommentOpener } from './signals/comment-openers.js';
|
|
18
|
+
export { createInProcessTransport } from './runtime/in-process-transport.js';
|
|
19
|
+
export { createSubprocessProgressRun, runOffThreadOrInProcess, } from './runtime/subprocess-transport.js';
|
|
20
|
+
export type { ProgressTransport, ProgressRun, ProgressJob, SubprocessJobDescriptor, WorkerMessage, } from './runtime/progress-transport.js';
|
|
21
|
+
export * from './languages/index.js';
|
|
22
|
+
export { PROJECT_CONFIG_FILENAME, resolveProjectConfigPath } from './config-resolution.js';
|
|
23
|
+
export { discoverPlugins, readProjectPluginsList, resolvePackageEntryPoint, discoverToolPackages, discoverToolPackagesFromAnchors, readToolPackageMetadata, discoverPackagesByMarker, discoverPackagesByDeclaredKind, discoverPackagesInNodeModules, isMarkerKind, readMarkerKind, readDeclaredKind, MARKER_KINDS, discoverScopedPackages, discoverCapabilityContributions, isRecord, isStringArray, hasPackageJson, resolvePackageDir, registerRecipesFromMod, loadPlugin, loadAllPlugins, resolveScopes, VALID_NPM_SCOPE_REGEX, loadToolManifest, admitTool, discoverAuthoredToolSidecars, registerCapabilityDomainsFromManifest, PROJECT_LOCAL_MANIFEST_FILE, CapabilityRegistry, createCapabilityRegistry, currentCapabilityRegistry, loadCapabilityDomain, } from './plugins/index.js';
|
|
24
|
+
export type { AdmissionResult, AuthoredToolCandidate, CapabilityRegistrar, LoadCapabilityDomainOptions, PluginLayout, DiscoveredPlugin, LoadedPlugin, PluginLoadResult, LangPluginExports, PluginExports, PackageEntryResolution, ToolPackageDiscoveryOptions, ToolDiscoverySource, DiscoveredToolPackage, ToolPackageMetadata, MarkerKind, MarkerDiscoveryOptions, DiscoveredMarkerPackage, DiscoveredDeclaredPackage, DiscoveredScopedPackage, DiscoverScopedPackagesOptions, CapabilityDiscoveryPreferences, RawCapabilityContribution, CapabilityDiscoveryDiagnostic, DiscoverCapabilityContributionsOptions, RegisterRecipesOptions, RegisterRecipesResult, RegisterCtx, RegisteredCounts, RegisterExportsFn, } from './plugins/index.js';
|
|
25
|
+
export { ToolRegistry, UnknownLiveViewError, TOOL_CONTRACT_VERSION } from './tools/index.js';
|
|
26
|
+
export type { Tool, ToolMetadata, ToolCommandDescriptor, ToolConfigContribution, ToolCliContext, GateCompareResult, SignalDeliveryResult, ScaffoldContext, ScaffoldFile, ToolPluginExports, ToolSessionRecord, ToolSessionReplayContribution, ToolExtensionPoints, LiveViewRenderer, LiveViewContext, ToolRunSessionInput, ToolSessionContribution, ToolRunCompletion, RecordedToolRunSession, ToolRunSessions, HostGovernance, HostAudit, HostEntitlements, } from './tools/index.js';
|
|
27
|
+
export { PLUGIN_API_VERSION } from './tools/index.js';
|
|
28
|
+
export type { RawToolPluginManifest, ToolPluginManifest, ToolCommandManifest, ToolProvenance, ToolSource, } from './tools/index.js';
|
|
29
|
+
export { defineCommand, COMMON_FLAG_KEYS, RAW_STREAM_REASONS } from './tools/index.js';
|
|
30
|
+
export type { CommandSpec, OptionSpec, ArgSpec, CommandHandler, CommandContext, CommandOutputMode, CommandScopeRequirement, CommonFlagKey, RawStreamReason, } from './tools/index.js';
|
|
31
|
+
export { isCapabilityValidator, isStructuralContributionSchema } from './tools/index.js';
|
|
32
|
+
export type { CapabilityDomainSpec, CapabilityContributionKind, CapabilityDiscoveryDescriptor, CapabilityDiscoveryMode, CapabilityCoContribution, CapabilityValidator, StructuralContributionSchema, ToolCapabilityDeclaration, } from './tools/index.js';
|
|
33
|
+
export { checkCompatibility } from './tools/index.js';
|
|
34
|
+
export type { CompatibilityVerdict } from './tools/index.js';
|
|
35
|
+
export { assertManifestMatchesTool } from './tools/index.js';
|
|
36
|
+
export { TOOL_LONG_IDS, TOOL_LONG_TO_SHORT, TOOL_SHORT_IDS, TOOL_SHORT_TO_LONG, isToolLongId, isToolShortId, } from './tools/index.js';
|
|
37
|
+
export type { ToolLongId, ToolShortId } from './tools/index.js';
|
|
38
|
+
export { RecipeRegistry } from './recipes/registry.js';
|
|
39
|
+
export type { RecipeBase, RecipeRegisterOptions, RecipeRegistryOptions, } from './recipes/registry.js';
|
|
40
|
+
export { resolveSelector } from './recipes/selector.js';
|
|
41
|
+
export type { RecipeSelector, ExplicitSelector, AllSelector, TagsSelector, PatternSelector, ResolveSelectorOptions, } from './recipes/selector.js';
|
|
42
|
+
export { getUnitConfig, setCurrentRecipeUnitConfig, clearCurrentRecipeUnitConfig, } from './recipes/unit-config.js';
|
|
43
|
+
export type { RecipeUnitConfigMap } from './recipes/unit-config.js';
|
|
44
|
+
export { Registry } from './lib/registry.js';
|
|
45
|
+
export type { DuplicatePolicy, Registerable, RegistryOptions, RegisterCallOptions, } from './lib/registry.js';
|
|
46
|
+
export { RunScope, runWithScope, runWithScopeSync, enterScope, currentScope, } from './lib/run-scope.js';
|
|
47
|
+
export type { RunScopeOptions } from './lib/run-scope.js';
|
|
48
|
+
export type { RecipeUnitConfigSlot, DataStoreThunk, ToolScope, ScopeContribution, ResolvedToolConfig, TargetResolver, TargetView, } from './lib/scope-types.js';
|
|
49
|
+
export { ToolError, ValidationError, NotFoundError, SystemError, TimeoutError, NetworkError, ConfigurationError, PluginIncompatibleError, UnknownCapabilityDomainError, CapabilitySchemaMismatchError, } from './lib/errors.js';
|
|
50
|
+
export { ok, err, tryCatchAsync, tryCatch } from './lib/errors.js';
|
|
51
|
+
export type { Result, ToolErrorCode, ToolErrorOptions } from './lib/errors.js';
|
|
52
|
+
export { logger, LoggerImpl, configureLogger } from './lib/logger.js';
|
|
53
|
+
export type { Logger, LogLevel, LoggerOptions, RunIdProvider } from './lib/logger.js';
|
|
54
|
+
export { getTracer, withSpan, withSpanAsync, currentTraceparent, getMeter, } from './lib/telemetry.js';
|
|
55
|
+
export type { Span, Attributes, Tracer } from '@opentelemetry/api';
|
|
56
|
+
export { EnvRegistry } from './lib/env-registry.js';
|
|
57
|
+
export type { EnvVarSpec, EnvDeprecation, EnvReadResult } from './lib/env-registry.js';
|
|
58
|
+
export { DiagnosticsBus } from './lib/diagnostics-bus.js';
|
|
59
|
+
export type { RunDiagnostics, DiagnosticEvent, DiagnosticPhase, DiagnosticLevel, } from './lib/run-diagnostics.js';
|
|
60
|
+
export { readYamlFile, readYamlFileOrThrow } from './lib/yaml.js';
|
|
61
|
+
export type { ReadYamlFileOrThrowOptions } from './lib/yaml.js';
|
|
62
|
+
export { generateId, generatePrefixedId, extractTimestamp, generateUUID } from './lib/ids.js';
|
|
63
|
+
export { extractPayloadVersion } from './lib/payload-version.js';
|
|
64
|
+
export { withRetry } from './lib/retry.js';
|
|
65
|
+
export type { RetryOptions } from './lib/retry.js';
|
|
66
|
+
export { scheduleUnits, yieldToEventLoop, runWithTimeout, runWithRetry, executePipeline, } from './lib/execution/index.js';
|
|
67
|
+
export type { ScheduleUnitsOptions, UnitRunOutcome, RunWithTimeoutOptions, PipelineRetryOptions, PipelineRetryOutcome, ExecutePipelineOptions, WorkflowExecutionOptions, WorkflowRetryOptions, } from './lib/execution/index.js';
|
|
68
|
+
export { deriveRecipeId } from './lib/recipe-id.js';
|
|
69
|
+
export { readPackageVersion } from './lib/package-version.js';
|
|
70
|
+
export { formatDuration } from './lib/format.js';
|
|
71
|
+
export { createRunTimer, createRunLifecycle } from './lib/run-timer.js';
|
|
72
|
+
export type { RunTimer, RunLifecycle, RunTimingSnapshot } from './lib/run-timer.js';
|
|
73
|
+
export { resolveProjectPaths, resolveUserPaths, isPathInside } from './lib/paths.js';
|
|
74
|
+
export type { ProjectPaths, UserPaths, PathDomain } from './lib/paths.js';
|
|
75
|
+
export { resolveProjectContext } from './lib/project-context.js';
|
|
76
|
+
export type { ProjectContext, ResolveProjectContextInput } from './lib/project-context.js';
|
|
77
|
+
export type { UiContext } from './lib/ui-context.js';
|
|
78
|
+
export { CLI_SUPPORTED_SCHEMA_VERSION, readConfigSchemaVersion, checkSchemaCompat, } from './lib/config-version.js';
|
|
79
|
+
export type { SchemaCompat } from './lib/config-version.js';
|
|
80
|
+
export { detectPhantomRuntimes } from './lib/phantom-detect.js';
|
|
81
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"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EACtB,wBAAwB,EACxB,oBAAoB,GACrB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAIpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAK9D,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAOjD,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxE,YAAY,EAAE,QAAQ,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAKpF,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACrF,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAO1E,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,YAAY,EAAE,cAAc,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAK3F,YAAY,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAKrD,OAAO,EACL,4BAA4B,EAC5B,uBAAuB,EACvB,iBAAiB,GAClB,MAAM,yBAAyB,CAAC;AACjC,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAK5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
export { createSignal, isErrorSeverity, isErrorSignal } from './types/signal.js';
|
|
2
|
+
// Severity & Signal policy (north-star §5.9, launch). One home for
|
|
3
|
+
// author→wire severity mapping + the override clamp + the gate's error/warning
|
|
4
|
+
// predicate, plus the generic identity-stamping factory `createSignalFromViolation`
|
|
5
|
+
// (so tools stamp source/ruleId/severity instead of retyping them).
|
|
6
|
+
export { SeverityPolicy } from './lib/severity-policy.js';
|
|
7
|
+
// Host-owned findings verdict policy (ADR-0035): the reserved
|
|
8
|
+
// failOnErrors/failOnWarnings gate, its pure predicate, and the per-tool resolver.
|
|
9
|
+
export { HOST_VERDICT_POLICY_FALLBACK, policyPasses, resolveVerdictPolicy, DEFAULT_FAIL_ON_DEGRADED, resolveFailOnDegraded, } from './lib/verdict-policy.js';
|
|
10
|
+
// Host-owned baseline/ratchet plane (ADR-0036): the per-tool fingerprint
|
|
11
|
+
// strategy primitive, the host default identity, and the stamp helper.
|
|
12
|
+
export { contentHashFallbackFingerprintStrategy, defaultFingerprintStrategy, fileLevelFingerprintStrategy, stampFingerprints, } from './baseline/fingerprint-strategy.js';
|
|
13
|
+
export { createSignalFromViolation } from './signals/create-signal-from-violation.js';
|
|
14
|
+
export { buildSignalBatch, MAX_SIGNALS_PER_BATCH } from './types/signal-batch.js';
|
|
15
|
+
export { noopSignalSink } from './signals/signal-sink.js';
|
|
16
|
+
// Inline suppression primitive (ADR-0014) — shared `@x-ignore-*` machinery
|
|
17
|
+
export { filterSignalsBySuppressions, scanSuppressionDirectives } from './signals/suppress.js';
|
|
18
|
+
export { COMMENT_OPENERS, stripCommentOpener } from './signals/comment-openers.js';
|
|
19
|
+
// Runtime — live-run progress transport seam (ADR-0016). Generic over the event
|
|
20
|
+
// type so the kernel never names cli-ui's concrete ProgressEvent.
|
|
21
|
+
export { createInProcessTransport } from './runtime/in-process-transport.js';
|
|
22
|
+
export { createSubprocessProgressRun, runOffThreadOrInProcess, } from './runtime/subprocess-transport.js';
|
|
23
|
+
// Languages — cross-language adapter API
|
|
24
|
+
export * from './languages/index.js';
|
|
25
|
+
// Project config resolution
|
|
26
|
+
export { PROJECT_CONFIG_FILENAME, resolveProjectConfigPath } from './config-resolution.js';
|
|
27
|
+
// Plugins
|
|
28
|
+
export { discoverPlugins, readProjectPluginsList, resolvePackageEntryPoint, discoverToolPackages, discoverToolPackagesFromAnchors, readToolPackageMetadata, discoverPackagesByMarker, discoverPackagesByDeclaredKind, discoverPackagesInNodeModules, isMarkerKind, readMarkerKind, readDeclaredKind, MARKER_KINDS, discoverScopedPackages, discoverCapabilityContributions, isRecord, isStringArray, hasPackageJson, resolvePackageDir, registerRecipesFromMod, loadPlugin, loadAllPlugins, resolveScopes, VALID_NPM_SCOPE_REGEX, loadToolManifest, admitTool, discoverAuthoredToolSidecars, registerCapabilityDomainsFromManifest, PROJECT_LOCAL_MANIFEST_FILE, CapabilityRegistry, createCapabilityRegistry, currentCapabilityRegistry, loadCapabilityDomain, } from './plugins/index.js';
|
|
29
|
+
// Tools — kernel-level Tool plugin contract.
|
|
30
|
+
// (discoverToolPackages and friends live under plugins/ and are
|
|
31
|
+
// re-exported above; the Tool / Registry types are tool-shape, not
|
|
32
|
+
// plugin-discovery-shape, hence the separate barrel.)
|
|
33
|
+
export { ToolRegistry, UnknownLiveViewError, TOOL_CONTRACT_VERSION } from './tools/index.js';
|
|
34
|
+
// Static tool-plugin manifest + the plugin-API epoch + provenance types
|
|
35
|
+
// (launch raw-vs-admitted contract). Re-exported by @opensip-cli/
|
|
36
|
+
// contracts for the public surface.
|
|
37
|
+
export { PLUGIN_API_VERSION } from './tools/index.js';
|
|
38
|
+
// Command-plane types (launch, §5.4): the declarative CommandSpec a tool
|
|
39
|
+
// exports for the host to mount, plus the pure CommonFlagKey key type. The
|
|
40
|
+
// Commander-touching applyCommonFlags runtime stays in @opensip-cli/contracts,
|
|
41
|
+
// which re-exports CommonFlagKey from here. Re-exported by contracts.
|
|
42
|
+
export { defineCommand, COMMON_FLAG_KEYS, RAW_STREAM_REASONS } from './tools/index.js';
|
|
43
|
+
// Capability domain model (launch, §5.3): the data shape a tool
|
|
44
|
+
// uses to declare an extension point it owns. The scope-owned runtime
|
|
45
|
+
// registry is exported from ./plugins/index.js below. Re-exported by
|
|
46
|
+
// @opensip-cli/contracts for the public surface.
|
|
47
|
+
export { isCapabilityValidator, isStructuralContributionSchema } from './tools/index.js';
|
|
48
|
+
// The single pure compatibility gate shared by the bundled + external
|
|
49
|
+
// admission paths. Re-exported by @opensip-cli/contracts.
|
|
50
|
+
export { checkCompatibility } from './tools/index.js';
|
|
51
|
+
// Load-time manifest⇔Tool drift guard.
|
|
52
|
+
export { assertManifestMatchesTool } from './tools/index.js';
|
|
53
|
+
export { TOOL_LONG_IDS, TOOL_LONG_TO_SHORT, TOOL_SHORT_IDS, TOOL_SHORT_TO_LONG, isToolLongId, isToolShortId, } from './tools/index.js';
|
|
54
|
+
// Recipes — generic recipe registry shared by fitness + simulation.
|
|
55
|
+
export { RecipeRegistry } from './recipes/registry.js';
|
|
56
|
+
// Recipes — generic selector union + resolver (selection half of the
|
|
57
|
+
// substrate; execution stays tool-owned).
|
|
58
|
+
export { resolveSelector } from './recipes/selector.js';
|
|
59
|
+
// Recipes — per-unit config-override accessors + map type.
|
|
60
|
+
export { getUnitConfig, setCurrentRecipeUnitConfig, clearCurrentRecipeUnitConfig, } from './recipes/unit-config.js';
|
|
61
|
+
// Generic `Registry<T>` — the unified base for every registry in the
|
|
62
|
+
// workspace. Replaces the ten registry classes catalogued in the
|
|
63
|
+
// runscope+registry plan's Phase 0. See `lib/registry.ts` for the
|
|
64
|
+
// full design rationale + the closed `DuplicatePolicy` union.
|
|
65
|
+
//
|
|
66
|
+
// `Registerable` is the minimum shape every registry item must
|
|
67
|
+
// satisfy: `{ id, name, tags? }`. The historical `IdNameTagRegistry`
|
|
68
|
+
// has been deleted; consumers use `Registry<T>` directly with
|
|
69
|
+
// `duplicatePolicy: 'silent-skip'` + `nameCollisionMode: 'throw'`
|
|
70
|
+
// for the same dual-key semantics.
|
|
71
|
+
export { Registry } from './lib/registry.js';
|
|
72
|
+
// RunScope — per-invocation execution scope. Owns the lifecycle of
|
|
73
|
+
// every singleton the codebase previously hung on module-level state
|
|
74
|
+
// (logger, caches, registries, recipe-config slot, project context,
|
|
75
|
+
// datastore thunk). See `lib/run-scope.ts` for the AsyncLocalStorage
|
|
76
|
+
// seam and the two-copies-of-fitness hazard resolution.
|
|
77
|
+
export { RunScope, runWithScope, runWithScopeSync, enterScope, currentScope, } from './lib/run-scope.js';
|
|
78
|
+
// Lib — errors + Result pattern
|
|
79
|
+
export { ToolError, ValidationError, NotFoundError, SystemError, TimeoutError, NetworkError, ConfigurationError, PluginIncompatibleError, UnknownCapabilityDomainError, CapabilitySchemaMismatchError, } from './lib/errors.js';
|
|
80
|
+
export { ok, err, tryCatchAsync, tryCatch } from './lib/errors.js';
|
|
81
|
+
// Lib — logger.
|
|
82
|
+
//
|
|
83
|
+
// Production callers should import the typed `logger` singleton +
|
|
84
|
+
// helper functions; `LoggerImpl` is exported for tests (and tools
|
|
85
|
+
// that need an isolated logger) — advanced / discouraged for
|
|
86
|
+
// general use, see the file-level docstring on lib/logger.ts.
|
|
87
|
+
// `getRunId()` free function was removed in Item 2 — read
|
|
88
|
+
// `currentScope()?.runId` instead. The instance methods
|
|
89
|
+
// `LoggerImpl.{get,set}RunId` survive for isolated-instance test use.
|
|
90
|
+
export { logger, LoggerImpl, configureLogger } from './lib/logger.js';
|
|
91
|
+
// Lib — telemetry (tracing). The kernel sibling of `logger`: a thin seam over
|
|
92
|
+
// the OpenTelemetry *API* (`@opentelemetry/api`) only. No-op until an SDK
|
|
93
|
+
// registers a global provider at the application boundary (the CLI). Tools emit
|
|
94
|
+
// spans via `withSpan` and reach span types through this barrel so they never
|
|
95
|
+
// import `@opentelemetry/api` directly — the kernel is the single seam.
|
|
96
|
+
export { getTracer, withSpan, withSpanAsync, currentTraceparent, getMeter, } from './lib/telemetry.js';
|
|
97
|
+
// Lib — environment registry (north-star §5.12, launch). The kernel
|
|
98
|
+
// observability primitive that governs the env surface: a tool/host declares an
|
|
99
|
+
// `EnvVarSpec` (canonical name, aliases, coercion, default, docs, deprecation) and
|
|
100
|
+
// every env read flows through `EnvRegistry.get`. Reading `process.env` inside
|
|
101
|
+
// this primitive is the one sanctioned site; the `env-via-registry` guardrail
|
|
102
|
+
// fails CI on raw reads elsewhere. The immutable definition table lets a static
|
|
103
|
+
// instance serve the pre-scope readers (theme, graph heap-preflight).
|
|
104
|
+
export { EnvRegistry } from './lib/env-registry.js';
|
|
105
|
+
// Lib — run diagnostics (north-star §5.10, launch). The shared,
|
|
106
|
+
// JSON-emittable diagnostics vocabulary carried on a `CommandOutcome`, produced
|
|
107
|
+
// by the scope-owned `DiagnosticsBus`. Types DEFINED here (the bus that produces
|
|
108
|
+
// them is here; contracts re-exports the types for `CommandOutcome`).
|
|
109
|
+
export { DiagnosticsBus } from './lib/diagnostics-bus.js';
|
|
110
|
+
// Lib — permissive YAML reader (returns undefined on missing/malformed
|
|
111
|
+
// files). Used by plugin-discovery sites that need to peek at a single
|
|
112
|
+
// field of opensip-cli.config.yml without dragging in a Zod schema.
|
|
113
|
+
// Advanced / discouraged for general use — tools that need structured
|
|
114
|
+
// parse errors should use `readYamlFileOrThrow` instead, or build their
|
|
115
|
+
// own dedicated loader (see fitness's targets/loader.ts for a
|
|
116
|
+
// schema-validating example).
|
|
117
|
+
export { readYamlFile, readYamlFileOrThrow } from './lib/yaml.js';
|
|
118
|
+
// Lib — IDs
|
|
119
|
+
export { generateId, generatePrefixedId, extractTimestamp, generateUUID } from './lib/ids.js';
|
|
120
|
+
// Lib — payload version extraction (inner __version convention for
|
|
121
|
+
// tool-owned opaque session payloads and toolState). Pure function with
|
|
122
|
+
// no knowledge of any tool payload shape. Used by decode/hydrate/replay
|
|
123
|
+
// paths and by tools for their own state versioning.
|
|
124
|
+
export { extractPayloadVersion } from './lib/payload-version.js';
|
|
125
|
+
// Lib — retry
|
|
126
|
+
export { withRetry } from './lib/retry.js';
|
|
127
|
+
// Lib — execution substrate (north-star §5.8, launch). One bounded
|
|
128
|
+
// scheduler + per-unit timeout/retry that fit + sim recipes run on, so
|
|
129
|
+
// timeout/maxParallel/stopOnFirstFailure mean the same thing in every domain
|
|
130
|
+
// (and a declared `timeout` actually aborts — the §4.3 sim fix). Plus the shared
|
|
131
|
+
// `deriveRecipeId` (one `<prefix>_<name>` scheme across domains).
|
|
132
|
+
export { scheduleUnits, yieldToEventLoop, runWithTimeout, runWithRetry, executePipeline, } from './lib/execution/index.js';
|
|
133
|
+
export { deriveRecipeId } from './lib/recipe-id.js';
|
|
134
|
+
// Lib — package-version reader (used by first-party Tools to set
|
|
135
|
+
// metadata.version without duplicating the literal in source).
|
|
136
|
+
export { readPackageVersion } from './lib/package-version.js';
|
|
137
|
+
// Lib — shared presentation formatters (duration, …) used by more than one
|
|
138
|
+
// tool's CLI/report layer; centralized here since tools cannot depend on
|
|
139
|
+
// each other.
|
|
140
|
+
export { formatDuration } from './lib/format.js';
|
|
141
|
+
// Lib — host-owned run timer (host-owned-run-timing). The single
|
|
142
|
+
// RunTimer created by the CLI host at the command boundary; exposed to
|
|
143
|
+
// tools exclusively via ToolCliContext.runSession.timing (and via the
|
|
144
|
+
// optional LiveViewContext second arg to live renderers). Tools must
|
|
145
|
+
// not construct their own for StoredSession timing.
|
|
146
|
+
export { createRunTimer, createRunLifecycle } from './lib/run-timer.js';
|
|
147
|
+
// Lib — path resolver (project-local opensip-cli/.runtime, user-level
|
|
148
|
+
// ~/.opensip-cli/config.yml). Every consumer constructs paths through
|
|
149
|
+
// this module so a layout change is a single-file edit.
|
|
150
|
+
export { resolveProjectPaths, resolveUserPaths, isPathInside } from './lib/paths.js';
|
|
151
|
+
// Lib — project-context resolver. One-shot ancestor walk from cwd to
|
|
152
|
+
// the nearest opensip-cli.config.yml. Returns a ProjectContext that
|
|
153
|
+
// every downstream consumer (CLI bootstrap, tool action handlers,
|
|
154
|
+
// uninstall/init/dashboard) reads from instead of re-deriving cwd
|
|
155
|
+
// semantics.
|
|
156
|
+
export { resolveProjectContext } from './lib/project-context.js';
|
|
157
|
+
// Lib — config schemaVersion. Permissive top-level field reader +
|
|
158
|
+
// CLI/config compatibility classifier. Used by pre-action-hook for
|
|
159
|
+
// upgrade-mismatch detection.
|
|
160
|
+
export { CLI_SUPPORTED_SCHEMA_VERSION, readConfigSchemaVersion, checkSchemaCompat, } from './lib/config-version.js';
|
|
161
|
+
// Lib — phantom-dir detector. Warns about orphaned opensip-cli/
|
|
162
|
+
// subtrees left over from pre-discovery runs. Returns paths; callers
|
|
163
|
+
// surface them; never auto-deletes.
|
|
164
|
+
export { detectPhantomRuntimes } from './lib/phantom-detect.js';
|
|
165
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEjF,mEAAmE;AACnE,+EAA+E;AAC/E,oFAAoF;AACpF,oEAAoE;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,8DAA8D;AAC9D,mFAAmF;AACnF,OAAO,EACL,4BAA4B,EAC5B,YAAY,EACZ,oBAAoB,EACpB,wBAAwB,EACxB,qBAAqB,GACtB,MAAM,yBAAyB,CAAC;AAEjC,yEAAyE;AACzE,uEAAuE;AACvE,OAAO,EACL,sCAAsC,EACtC,0BAA0B,EAC1B,4BAA4B,EAC5B,iBAAiB,GAClB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AAItF,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAGlF,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,2EAA2E;AAC3E,OAAO,EAAE,2BAA2B,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAS/F,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAEnF,gFAAgF;AAChF,kEAAkE;AAClE,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EACL,2BAA2B,EAC3B,uBAAuB,GACxB,MAAM,mCAAmC,CAAC;AAS3C,yCAAyC;AACzC,cAAc,sBAAsB,CAAC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c,EAAE,MAAM,iBAAiB,CAAC;AAEjD,iEAAiE;AACjE,uEAAuE;AACvE,sEAAsE;AACtE,qEAAqE;AACrE,oDAAoD;AACpD,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAGxE,sEAAsE;AACtE,sEAAsE;AACtE,wDAAwD;AACxD,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAGrF,qEAAqE;AACrE,oEAAoE;AACpE,kEAAkE;AAClE,kEAAkE;AAClE,aAAa;AACb,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAQjE,kEAAkE;AAClE,mEAAmE;AACnE,8BAA8B;AAC9B,OAAO,EACL,4BAA4B,EAC5B,uBAAuB,EACvB,iBAAiB,GAClB,MAAM,yBAAyB,CAAC;AAGjC,gEAAgE;AAChE,qEAAqE;AACrE,oCAAoC;AACpC,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-filter-dispatch.test.d.ts","sourceRoot":"","sources":["../../../src/languages/__tests__/content-filter-dispatch.test.ts"],"names":[],"mappings":""}
|