@jini-ai/provider-plugins 0.7.2 → 0.7.3-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -4
- package/README.md +1 -1
- package/catalog.json +20 -20
- package/dist/observability-opentelemetry/contract.d.ts +114 -0
- package/dist/observability-opentelemetry/contract.js +1 -0
- package/dist/observability-opentelemetry/otel-port.d.ts +31 -0
- package/dist/observability-opentelemetry/otel-port.js +187 -0
- package/package.json +26 -18
- package/plugins/ai-trace-langfuse/{0.7.2 → 0.7.3-next.1}/jini.plugin.json +3 -3
- package/plugins/ai-trace-langfuse/{0.7.2 → 0.7.3-next.1}/licenses/_jini-ai_provider-plugins/package-license.json +1 -1
- package/plugins/analytics-posthog/{0.7.2 → 0.7.3-next.1}/README.md +1 -1
- package/plugins/analytics-posthog/{0.7.2 → 0.7.3-next.1}/jini.plugin.json +6 -16
- package/plugins/analytics-posthog/{0.7.2 → 0.7.3-next.1}/licenses/_jini-ai_provider-plugins/package-license.json +1 -1
- package/plugins/analytics-posthog/0.7.3-next.1/server/consent-adapter.mjs +1 -0
- package/plugins/analytics-posthog/{0.7.2 → 0.7.3-next.1}/server/index.mjs +73 -90
- package/plugins/charts-echarts/{0.7.2 → 0.7.3-next.1}/client/provider.js +16 -16
- package/plugins/charts-echarts/{0.7.2 → 0.7.3-next.1}/jini.plugin.json +4 -10
- package/plugins/charts-echarts/{0.7.2 → 0.7.3-next.1}/licenses/_jini-ai_provider-plugins/package-license.json +1 -1
- package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/client/provider.js +47 -47
- package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/jini.plugin.json +5 -11
- package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/_jini-ai_provider-plugins/package-license.json +1 -1
- package/plugins/fixture-provider/{0.7.2 → 0.7.3-next.1}/jini.plugin.json +3 -3
- package/plugins/fixture-provider/0.7.3-next.1/licenses/_jini-ai_provider-plugins/package-license.json +5 -0
- package/plugins/formspree/{0.7.2 → 0.7.3-next.1}/jini.plugin.json +3 -3
- package/plugins/formspree/0.7.3-next.1/licenses/_jini-ai_provider-plugins/package-license.json +5 -0
- package/plugins/google-forms/{0.7.2 → 0.7.3-next.1}/jini.plugin.json +3 -3
- package/plugins/google-forms/0.7.3-next.1/licenses/_jini-ai_provider-plugins/package-license.json +5 -0
- package/plugins/observability-opentelemetry/{0.7.2 → 0.7.3-next.1}/README.md +1 -1
- package/plugins/observability-opentelemetry/{0.7.2 → 0.7.3-next.1}/jini.plugin.json +6 -15
- package/plugins/observability-opentelemetry/{0.7.2 → 0.7.3-next.1}/licenses/_jini-ai_core/package-license.json +1 -1
- package/plugins/observability-opentelemetry/0.7.3-next.1/licenses/_jini-ai_provider-plugins/package-license.json +5 -0
- package/plugins/observability-opentelemetry/{0.7.2 → 0.7.3-next.1}/server/index.mjs +246 -1190
- package/plugins/observability-sentry/{0.7.2 → 0.7.3-next.1}/README.md +1 -1
- package/plugins/observability-sentry/{0.7.2 → 0.7.3-next.1}/jini.plugin.json +6 -10
- package/plugins/observability-sentry/{0.7.2 → 0.7.3-next.1}/licenses/_jini-ai_core/package-license.json +1 -1
- package/plugins/observability-sentry/0.7.3-next.1/licenses/_jini-ai_provider-plugins/package-license.json +5 -0
- package/plugins/observability-sentry/{0.7.2 → 0.7.3-next.1}/server/index.mjs +85 -1045
- package/plugins/payments-stripe/{0.7.2 → 0.7.3-next.1}/jini.plugin.json +4 -9
- package/plugins/payments-stripe/0.7.3-next.1/licenses/_jini-ai_provider-plugins/package-license.json +5 -0
- package/plugins/payments-stripe/{0.7.2 → 0.7.3-next.1}/server/index.mjs +64 -63
- package/plugins/analytics-posthog/0.7.2/licenses/_jini-ai_cookie-consent/LICENSE-SOURCE +0 -1
- package/plugins/analytics-posthog/0.7.2/licenses/_jini-ai_cookie-consent/package-license.json +0 -5
- package/plugins/analytics-posthog/0.7.2/licenses/_jini-ai_core/package-license.json +0 -5
- package/plugins/analytics-posthog/0.7.2/licenses/_jini-ai_diagnostics/package-license.json +0 -5
- package/plugins/analytics-posthog/0.7.2/licenses/js-tokens/LICENSE +0 -21
- package/plugins/analytics-posthog/0.7.2/licenses/js-tokens/package-license.json +0 -5
- package/plugins/analytics-posthog/0.7.2/server/consent-adapter.mjs +0 -1
- package/plugins/charts-echarts/0.7.2/licenses/_jini-ai_ui/LICENSE-SOURCE +0 -1
- package/plugins/charts-echarts/0.7.2/licenses/_jini-ai_ui/package-license.json +0 -5
- package/plugins/charts-echarts/0.7.2/licenses/zod/LICENSE +0 -21
- package/plugins/charts-echarts/0.7.2/licenses/zod/package-license.json +0 -5
- package/plugins/charts-recharts/0.7.2/licenses/_jini-ai_ui/LICENSE-SOURCE +0 -1
- package/plugins/charts-recharts/0.7.2/licenses/_jini-ai_ui/package-license.json +0 -5
- package/plugins/charts-recharts/0.7.2/licenses/zod/LICENSE +0 -21
- package/plugins/charts-recharts/0.7.2/licenses/zod/package-license.json +0 -5
- package/plugins/fixture-provider/0.7.2/licenses/_jini-ai_provider-plugins/package-license.json +0 -5
- package/plugins/formspree/0.7.2/licenses/_jini-ai_provider-plugins/package-license.json +0 -5
- package/plugins/google-forms/0.7.2/licenses/_jini-ai_provider-plugins/package-license.json +0 -5
- package/plugins/observability-opentelemetry/0.7.2/licenses/_jini-ai_diagnostics/package-license.json +0 -5
- package/plugins/observability-opentelemetry/0.7.2/licenses/_jini-ai_plugins/LICENSE +0 -201
- package/plugins/observability-opentelemetry/0.7.2/licenses/_jini-ai_plugins/LICENSE-SOURCE +0 -1
- package/plugins/observability-opentelemetry/0.7.2/licenses/_jini-ai_plugins/package-license.json +0 -5
- package/plugins/observability-opentelemetry/0.7.2/licenses/_jini-ai_provider-plugins/LICENSE +0 -201
- package/plugins/observability-opentelemetry/0.7.2/licenses/_jini-ai_provider-plugins/package-license.json +0 -5
- package/plugins/observability-opentelemetry/0.7.2/licenses/js-tokens/LICENSE +0 -21
- package/plugins/observability-opentelemetry/0.7.2/licenses/js-tokens/package-license.json +0 -5
- package/plugins/observability-opentelemetry/0.7.2/licenses/semver/LICENSE +0 -15
- package/plugins/observability-opentelemetry/0.7.2/licenses/semver/package-license.json +0 -5
- package/plugins/observability-sentry/0.7.2/LICENSE +0 -201
- package/plugins/observability-sentry/0.7.2/licenses/_jini-ai_core/LICENSE +0 -201
- package/plugins/observability-sentry/0.7.2/licenses/_jini-ai_diagnostics/LICENSE +0 -201
- package/plugins/observability-sentry/0.7.2/licenses/_jini-ai_diagnostics/package-license.json +0 -5
- package/plugins/observability-sentry/0.7.2/licenses/_jini-ai_provider-plugins/LICENSE +0 -201
- package/plugins/observability-sentry/0.7.2/licenses/_jini-ai_provider-plugins/NOTICE +0 -28
- package/plugins/observability-sentry/0.7.2/licenses/_jini-ai_provider-plugins/package-license.json +0 -5
- package/plugins/observability-sentry/0.7.2/licenses/js-tokens/LICENSE +0 -21
- package/plugins/observability-sentry/0.7.2/licenses/js-tokens/package-license.json +0 -5
- package/plugins/payments-stripe/0.7.2/LICENSE +0 -201
- package/plugins/payments-stripe/0.7.2/NOTICE +0 -28
- package/plugins/payments-stripe/0.7.2/licenses/_jini-ai_commerce/LICENSE +0 -201
- package/plugins/payments-stripe/0.7.2/licenses/_jini-ai_commerce/NOTICE +0 -28
- package/plugins/payments-stripe/0.7.2/licenses/_jini-ai_commerce/package-license.json +0 -5
- package/plugins/payments-stripe/0.7.2/licenses/_jini-ai_core/LICENSE +0 -201
- package/plugins/payments-stripe/0.7.2/licenses/_jini-ai_core/package-license.json +0 -5
- package/plugins/payments-stripe/0.7.2/licenses/_jini-ai_provider-plugins/LICENSE +0 -201
- package/plugins/payments-stripe/0.7.2/licenses/_jini-ai_provider-plugins/NOTICE +0 -28
- package/plugins/payments-stripe/0.7.2/licenses/_jini-ai_provider-plugins/package-license.json +0 -5
- /package/plugins/ai-trace-langfuse/{0.7.2 → 0.7.3-next.1}/CHANGELOG.md +0 -0
- /package/plugins/ai-trace-langfuse/{0.7.2 → 0.7.3-next.1}/LICENSE +0 -0
- /package/plugins/ai-trace-langfuse/{0.7.2 → 0.7.3-next.1}/NOTICE +0 -0
- /package/plugins/ai-trace-langfuse/{0.7.2 → 0.7.3-next.1}/README.md +0 -0
- /package/plugins/ai-trace-langfuse/{0.7.2 → 0.7.3-next.1}/licenses/_jini-ai_provider-plugins/LICENSE +0 -0
- /package/plugins/ai-trace-langfuse/{0.7.2 → 0.7.3-next.1}/licenses/_jini-ai_provider-plugins/NOTICE +0 -0
- /package/plugins/ai-trace-langfuse/{0.7.2 → 0.7.3-next.1}/licenses/langfuse/LICENSE +0 -0
- /package/plugins/ai-trace-langfuse/{0.7.2 → 0.7.3-next.1}/licenses/langfuse/LICENSE-SOURCE +0 -0
- /package/plugins/ai-trace-langfuse/{0.7.2 → 0.7.3-next.1}/licenses/langfuse/SOURCE +0 -0
- /package/plugins/ai-trace-langfuse/{0.7.2 → 0.7.3-next.1}/licenses/langfuse/package-license.json +0 -0
- /package/plugins/ai-trace-langfuse/{0.7.2 → 0.7.3-next.1}/licenses/langfuse-core/LICENSE +0 -0
- /package/plugins/ai-trace-langfuse/{0.7.2 → 0.7.3-next.1}/licenses/langfuse-core/LICENSE-SOURCE +0 -0
- /package/plugins/ai-trace-langfuse/{0.7.2 → 0.7.3-next.1}/licenses/langfuse-core/SOURCE +0 -0
- /package/plugins/ai-trace-langfuse/{0.7.2 → 0.7.3-next.1}/licenses/langfuse-core/package-license.json +0 -0
- /package/plugins/ai-trace-langfuse/{0.7.2 → 0.7.3-next.1}/licenses/mustache/LICENSE +0 -0
- /package/plugins/ai-trace-langfuse/{0.7.2 → 0.7.3-next.1}/licenses/mustache/package-license.json +0 -0
- /package/plugins/ai-trace-langfuse/{0.7.2 → 0.7.3-next.1}/server/index.mjs +0 -0
- /package/plugins/analytics-posthog/{0.7.2 → 0.7.3-next.1}/CHANGELOG.md +0 -0
- /package/plugins/analytics-posthog/{0.7.2 → 0.7.3-next.1}/LICENSE +0 -0
- /package/plugins/analytics-posthog/{0.7.2 → 0.7.3-next.1}/NOTICE +0 -0
- /package/plugins/analytics-posthog/{0.7.2/licenses/_jini-ai_cookie-consent → 0.7.3-next.1/licenses/_jini-ai_provider-plugins}/LICENSE +0 -0
- /package/plugins/analytics-posthog/{0.7.2/licenses/_jini-ai_cookie-consent → 0.7.3-next.1/licenses/_jini-ai_provider-plugins}/NOTICE +0 -0
- /package/plugins/analytics-posthog/{0.7.2 → 0.7.3-next.1}/licenses/_posthog_core/LICENSE +0 -0
- /package/plugins/analytics-posthog/{0.7.2 → 0.7.3-next.1}/licenses/_posthog_core/package-license.json +0 -0
- /package/plugins/analytics-posthog/{0.7.2 → 0.7.3-next.1}/licenses/posthog-js/LICENSE +0 -0
- /package/plugins/analytics-posthog/{0.7.2 → 0.7.3-next.1}/licenses/posthog-js/package-license.json +0 -0
- /package/plugins/analytics-posthog/{0.7.2 → 0.7.3-next.1}/licenses/posthog-node/LICENSE +0 -0
- /package/plugins/analytics-posthog/{0.7.2 → 0.7.3-next.1}/licenses/posthog-node/package-license.json +0 -0
- /package/plugins/analytics-posthog/{0.7.2 → 0.7.3-next.1}/server/posthog-browser.js +0 -0
- /package/plugins/charts-echarts/{0.7.2 → 0.7.3-next.1}/client/styles.css +0 -0
- /package/plugins/{analytics-posthog/0.7.2/licenses/_jini-ai_core → charts-echarts/0.7.3-next.1/licenses/_jini-ai_provider-plugins}/LICENSE +0 -0
- /package/plugins/{analytics-posthog/0.7.2 → charts-echarts/0.7.3-next.1}/licenses/_jini-ai_provider-plugins/NOTICE +0 -0
- /package/plugins/charts-echarts/{0.7.2 → 0.7.3-next.1}/licenses/echarts/LICENSE +0 -0
- /package/plugins/charts-echarts/{0.7.2 → 0.7.3-next.1}/licenses/echarts/NOTICE +0 -0
- /package/plugins/charts-echarts/{0.7.2 → 0.7.3-next.1}/licenses/echarts/package-license.json +0 -0
- /package/plugins/charts-echarts/{0.7.2 → 0.7.3-next.1}/licenses/tslib/LICENSE.txt +0 -0
- /package/plugins/charts-echarts/{0.7.2 → 0.7.3-next.1}/licenses/tslib/package-license.json +0 -0
- /package/plugins/charts-echarts/{0.7.2 → 0.7.3-next.1}/licenses/zrender/LICENSE +0 -0
- /package/plugins/charts-echarts/{0.7.2 → 0.7.3-next.1}/licenses/zrender/package-license.json +0 -0
- /package/plugins/charts-echarts/{0.7.2 → 0.7.3-next.1}/server/index.mjs +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/client/styles.css +0 -0
- /package/plugins/{analytics-posthog/0.7.2/licenses/_jini-ai_diagnostics → charts-recharts/0.7.3-next.1/licenses/_jini-ai_provider-plugins}/LICENSE +0 -0
- /package/plugins/{charts-echarts/0.7.2 → charts-recharts/0.7.3-next.1}/licenses/_jini-ai_provider-plugins/NOTICE +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/_reduxjs_toolkit/LICENSE +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/_reduxjs_toolkit/package-license.json +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/clsx/license +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/clsx/package-license.json +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/d3-array/LICENSE +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/d3-array/package-license.json +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/d3-color/LICENSE +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/d3-color/package-license.json +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/d3-format/LICENSE +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/d3-format/package-license.json +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/d3-interpolate/LICENSE +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/d3-interpolate/package-license.json +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/d3-path/LICENSE +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/d3-path/package-license.json +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/d3-scale/LICENSE +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/d3-scale/package-license.json +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/d3-shape/LICENSE +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/d3-shape/package-license.json +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/d3-time/LICENSE +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/d3-time/package-license.json +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/d3-time-format/LICENSE +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/d3-time-format/package-license.json +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/decimal.js-light/LICENCE.md +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/decimal.js-light/package-license.json +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/es-toolkit/LICENSE +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/es-toolkit/package-license.json +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/eventemitter3/LICENSE +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/eventemitter3/package-license.json +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/immer/LICENSE +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/immer/package-license.json +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/internmap/LICENSE +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/internmap/package-license.json +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/react/LICENSE +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/react/package-license.json +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/react-dom/LICENSE +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/react-dom/package-license.json +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/react-is/LICENSE +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/react-is/package-license.json +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/react-redux/LICENSE.md +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/react-redux/package-license.json +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/recharts/LICENSE +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/recharts/package-license.json +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/redux/LICENSE.md +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/redux/package-license.json +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/redux-thunk/LICENSE.md +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/redux-thunk/package-license.json +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/reselect/LICENSE +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/reselect/package-license.json +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/scheduler/LICENSE +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/scheduler/package-license.json +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/tiny-invariant/LICENSE +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/tiny-invariant/package-license.json +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/use-sync-external-store/LICENSE +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/use-sync-external-store/package-license.json +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/victory-vendor/LICENSE.txt +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/licenses/victory-vendor/package-license.json +0 -0
- /package/plugins/charts-recharts/{0.7.2 → 0.7.3-next.1}/server/index.mjs +0 -0
- /package/plugins/{analytics-posthog/0.7.2 → fixture-provider/0.7.3-next.1}/licenses/_jini-ai_provider-plugins/LICENSE +0 -0
- /package/plugins/{charts-echarts/0.7.2/licenses/_jini-ai_ui → fixture-provider/0.7.3-next.1/licenses/_jini-ai_provider-plugins}/NOTICE +0 -0
- /package/plugins/fixture-provider/{0.7.2 → 0.7.3-next.1}/server/index.mjs +0 -0
- /package/plugins/{charts-echarts/0.7.2 → formspree/0.7.3-next.1}/licenses/_jini-ai_provider-plugins/LICENSE +0 -0
- /package/plugins/{charts-recharts/0.7.2 → formspree/0.7.3-next.1}/licenses/_jini-ai_provider-plugins/NOTICE +0 -0
- /package/plugins/formspree/{0.7.2 → 0.7.3-next.1}/server/index.mjs +0 -0
- /package/plugins/{charts-echarts/0.7.2/licenses/_jini-ai_ui → google-forms/0.7.3-next.1/licenses/_jini-ai_provider-plugins}/LICENSE +0 -0
- /package/plugins/{charts-recharts/0.7.2/licenses/_jini-ai_ui → google-forms/0.7.3-next.1/licenses/_jini-ai_provider-plugins}/NOTICE +0 -0
- /package/plugins/google-forms/{0.7.2 → 0.7.3-next.1}/server/index.mjs +0 -0
- /package/plugins/observability-opentelemetry/{0.7.2 → 0.7.3-next.1}/CHANGELOG.md +0 -0
- /package/plugins/{charts-recharts/0.7.2/licenses/_jini-ai_provider-plugins → observability-opentelemetry/0.7.3-next.1}/LICENSE +0 -0
- /package/plugins/observability-opentelemetry/{0.7.2 → 0.7.3-next.1}/NOTICE +0 -0
- /package/plugins/{charts-recharts/0.7.2/licenses/_jini-ai_ui → observability-opentelemetry/0.7.3-next.1/licenses/_jini-ai_core}/LICENSE +0 -0
- /package/plugins/{fixture-provider/0.7.2 → observability-opentelemetry/0.7.3-next.1}/licenses/_jini-ai_provider-plugins/LICENSE +0 -0
- /package/plugins/{fixture-provider/0.7.2 → observability-opentelemetry/0.7.3-next.1}/licenses/_jini-ai_provider-plugins/NOTICE +0 -0
- /package/plugins/observability-opentelemetry/{0.7.2 → 0.7.3-next.1}/licenses/_opentelemetry_api/LICENSE +0 -0
- /package/plugins/observability-opentelemetry/{0.7.2 → 0.7.3-next.1}/licenses/_opentelemetry_api/package-license.json +0 -0
- /package/plugins/observability-opentelemetry/{0.7.2 → 0.7.3-next.1}/licenses/_opentelemetry_api-logs/LICENSE +0 -0
- /package/plugins/observability-opentelemetry/{0.7.2 → 0.7.3-next.1}/licenses/_opentelemetry_api-logs/package-license.json +0 -0
- /package/plugins/observability-opentelemetry/{0.7.2 → 0.7.3-next.1}/licenses/_opentelemetry_context-async-hooks/LICENSE +0 -0
- /package/plugins/observability-opentelemetry/{0.7.2 → 0.7.3-next.1}/licenses/_opentelemetry_context-async-hooks/package-license.json +0 -0
- /package/plugins/observability-opentelemetry/{0.7.2 → 0.7.3-next.1}/licenses/_opentelemetry_core/LICENSE +0 -0
- /package/plugins/observability-opentelemetry/{0.7.2 → 0.7.3-next.1}/licenses/_opentelemetry_core/package-license.json +0 -0
- /package/plugins/observability-opentelemetry/{0.7.2 → 0.7.3-next.1}/licenses/_opentelemetry_otlp-exporter-base/LICENSE +0 -0
- /package/plugins/observability-opentelemetry/{0.7.2 → 0.7.3-next.1}/licenses/_opentelemetry_otlp-exporter-base/package-license.json +0 -0
- /package/plugins/observability-opentelemetry/{0.7.2 → 0.7.3-next.1}/licenses/_opentelemetry_otlp-transformer/LICENSE +0 -0
- /package/plugins/observability-opentelemetry/{0.7.2 → 0.7.3-next.1}/licenses/_opentelemetry_otlp-transformer/package-license.json +0 -0
- /package/plugins/observability-opentelemetry/{0.7.2 → 0.7.3-next.1}/licenses/_opentelemetry_resources/LICENSE +0 -0
- /package/plugins/observability-opentelemetry/{0.7.2 → 0.7.3-next.1}/licenses/_opentelemetry_resources/package-license.json +0 -0
- /package/plugins/observability-opentelemetry/{0.7.2 → 0.7.3-next.1}/licenses/_opentelemetry_sdk-metrics/LICENSE +0 -0
- /package/plugins/observability-opentelemetry/{0.7.2 → 0.7.3-next.1}/licenses/_opentelemetry_sdk-metrics/package-license.json +0 -0
- /package/plugins/observability-opentelemetry/{0.7.2 → 0.7.3-next.1}/licenses/_opentelemetry_sdk-trace/LICENSE +0 -0
- /package/plugins/observability-opentelemetry/{0.7.2 → 0.7.3-next.1}/licenses/_opentelemetry_sdk-trace/package-license.json +0 -0
- /package/plugins/observability-opentelemetry/{0.7.2 → 0.7.3-next.1}/licenses/_opentelemetry_sdk-trace-base/LICENSE +0 -0
- /package/plugins/observability-opentelemetry/{0.7.2 → 0.7.3-next.1}/licenses/_opentelemetry_sdk-trace-base/package-license.json +0 -0
- /package/plugins/observability-opentelemetry/{0.7.2 → 0.7.3-next.1}/licenses/_opentelemetry_sdk-trace-node/LICENSE +0 -0
- /package/plugins/observability-opentelemetry/{0.7.2 → 0.7.3-next.1}/licenses/_opentelemetry_sdk-trace-node/package-license.json +0 -0
- /package/plugins/observability-opentelemetry/{0.7.2 → 0.7.3-next.1}/licenses/_opentelemetry_semantic-conventions/LICENSE +0 -0
- /package/plugins/observability-opentelemetry/{0.7.2 → 0.7.3-next.1}/licenses/_opentelemetry_semantic-conventions/package-license.json +0 -0
- /package/plugins/observability-sentry/{0.7.2 → 0.7.3-next.1}/CHANGELOG.md +0 -0
- /package/plugins/{formspree/0.7.2/licenses/_jini-ai_provider-plugins → observability-sentry/0.7.3-next.1}/LICENSE +0 -0
- /package/plugins/observability-sentry/{0.7.2 → 0.7.3-next.1}/NOTICE +0 -0
- /package/plugins/{google-forms/0.7.2/licenses/_jini-ai_provider-plugins → observability-sentry/0.7.3-next.1/licenses/_jini-ai_core}/LICENSE +0 -0
- /package/plugins/{observability-opentelemetry/0.7.2 → observability-sentry/0.7.3-next.1/licenses/_jini-ai_provider-plugins}/LICENSE +0 -0
- /package/plugins/{formspree/0.7.2 → observability-sentry/0.7.3-next.1}/licenses/_jini-ai_provider-plugins/NOTICE +0 -0
- /package/plugins/observability-sentry/{0.7.2 → 0.7.3-next.1}/licenses/_opentelemetry_api/LICENSE +0 -0
- /package/plugins/observability-sentry/{0.7.2 → 0.7.3-next.1}/licenses/_opentelemetry_api/package-license.json +0 -0
- /package/plugins/observability-sentry/{0.7.2 → 0.7.3-next.1}/licenses/_sentry_conventions/LICENSE +0 -0
- /package/plugins/observability-sentry/{0.7.2 → 0.7.3-next.1}/licenses/_sentry_conventions/package-license.json +0 -0
- /package/plugins/observability-sentry/{0.7.2 → 0.7.3-next.1}/licenses/_sentry_core/LICENSE +0 -0
- /package/plugins/observability-sentry/{0.7.2 → 0.7.3-next.1}/licenses/_sentry_core/package-license.json +0 -0
- /package/plugins/observability-sentry/{0.7.2 → 0.7.3-next.1}/licenses/_sentry_node/LICENSE +0 -0
- /package/plugins/observability-sentry/{0.7.2 → 0.7.3-next.1}/licenses/_sentry_node/package-license.json +0 -0
- /package/plugins/observability-sentry/{0.7.2 → 0.7.3-next.1}/licenses/_sentry_opentelemetry/LICENSE +0 -0
- /package/plugins/observability-sentry/{0.7.2 → 0.7.3-next.1}/licenses/_sentry_opentelemetry/package-license.json +0 -0
- /package/plugins/observability-sentry/{0.7.2 → 0.7.3-next.1}/licenses/_sentry_server-runtime-injection/LICENSE +0 -0
- /package/plugins/observability-sentry/{0.7.2 → 0.7.3-next.1}/licenses/_sentry_server-runtime-injection/LICENSE-SOURCE +0 -0
- /package/plugins/observability-sentry/{0.7.2 → 0.7.3-next.1}/licenses/_sentry_server-runtime-injection/package-license.json +0 -0
- /package/plugins/observability-sentry/{0.7.2 → 0.7.3-next.1}/licenses/_sentry_server-utils/LICENSE +0 -0
- /package/plugins/observability-sentry/{0.7.2 → 0.7.3-next.1}/licenses/_sentry_server-utils/LICENSE-SOURCE +0 -0
- /package/plugins/observability-sentry/{0.7.2 → 0.7.3-next.1}/licenses/_sentry_server-utils/package-license.json +0 -0
- /package/plugins/payments-stripe/{0.7.2 → 0.7.3-next.1}/CHANGELOG.md +0 -0
- /package/plugins/{observability-opentelemetry/0.7.2/licenses/_jini-ai_core → payments-stripe/0.7.3-next.1}/LICENSE +0 -0
- /package/plugins/{google-forms/0.7.2/licenses/_jini-ai_provider-plugins → payments-stripe/0.7.3-next.1}/NOTICE +0 -0
- /package/plugins/payments-stripe/{0.7.2 → 0.7.3-next.1}/README.md +0 -0
- /package/plugins/{observability-opentelemetry/0.7.2/licenses/_jini-ai_diagnostics → payments-stripe/0.7.3-next.1/licenses/_jini-ai_provider-plugins}/LICENSE +0 -0
- /package/plugins/{observability-opentelemetry/0.7.2 → payments-stripe/0.7.3-next.1}/licenses/_jini-ai_provider-plugins/NOTICE +0 -0
|
@@ -1,453 +1,4 @@
|
|
|
1
1
|
import { createRequire as __jiniCreateRequire } from "node:module"; const require = __jiniCreateRequire(import.meta.url);
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
9
|
-
try {
|
|
10
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
11
|
-
} catch (e2) {
|
|
12
|
-
throw mod = 0, e2;
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
var __copyProps = (to, from, except, desc) => {
|
|
16
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
17
|
-
for (let key of __getOwnPropNames(from))
|
|
18
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
19
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
20
|
-
}
|
|
21
|
-
return to;
|
|
22
|
-
};
|
|
23
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
24
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
25
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
26
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
27
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
28
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
29
|
-
mod
|
|
30
|
-
));
|
|
31
|
-
|
|
32
|
-
// ../../node_modules/.pnpm/js-tokens@9.0.1/node_modules/js-tokens/index.js
|
|
33
|
-
var require_js_tokens = __commonJS({
|
|
34
|
-
"../../node_modules/.pnpm/js-tokens@9.0.1/node_modules/js-tokens/index.js"(exports, module2) {
|
|
35
|
-
var HashbangComment;
|
|
36
|
-
var Identifier;
|
|
37
|
-
var JSXIdentifier;
|
|
38
|
-
var JSXPunctuator;
|
|
39
|
-
var JSXString;
|
|
40
|
-
var JSXText;
|
|
41
|
-
var KeywordsWithExpressionAfter;
|
|
42
|
-
var KeywordsWithNoLineTerminatorAfter;
|
|
43
|
-
var LineTerminatorSequence;
|
|
44
|
-
var MultiLineComment;
|
|
45
|
-
var Newline;
|
|
46
|
-
var NumericLiteral;
|
|
47
|
-
var Punctuator;
|
|
48
|
-
var RegularExpressionLiteral;
|
|
49
|
-
var SingleLineComment;
|
|
50
|
-
var StringLiteral;
|
|
51
|
-
var Template;
|
|
52
|
-
var TokensNotPrecedingObjectLiteral;
|
|
53
|
-
var TokensPrecedingExpression;
|
|
54
|
-
var WhiteSpace;
|
|
55
|
-
var jsTokens2;
|
|
56
|
-
RegularExpressionLiteral = /\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]?|[^\/[\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu;
|
|
57
|
-
Punctuator = /--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y;
|
|
58
|
-
Identifier = /(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu;
|
|
59
|
-
StringLiteral = /(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y;
|
|
60
|
-
NumericLiteral = /(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y;
|
|
61
|
-
Template = /[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y;
|
|
62
|
-
WhiteSpace = /[\t\v\f\ufeff\p{Zs}]+/yu;
|
|
63
|
-
LineTerminatorSequence = /\r?\n|[\r\u2028\u2029]/y;
|
|
64
|
-
MultiLineComment = /\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y;
|
|
65
|
-
SingleLineComment = /\/\/.*/y;
|
|
66
|
-
HashbangComment = /^#!.*/;
|
|
67
|
-
JSXPunctuator = /[<>.:={}]|\/(?![\/*])/y;
|
|
68
|
-
JSXIdentifier = /[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu;
|
|
69
|
-
JSXString = /(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y;
|
|
70
|
-
JSXText = /[^<>{}]+/y;
|
|
71
|
-
TokensPrecedingExpression = /^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/;
|
|
72
|
-
TokensNotPrecedingObjectLiteral = /^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/;
|
|
73
|
-
KeywordsWithExpressionAfter = /^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/;
|
|
74
|
-
KeywordsWithNoLineTerminatorAfter = /^(?:return|throw|yield)$/;
|
|
75
|
-
Newline = RegExp(LineTerminatorSequence.source);
|
|
76
|
-
module2.exports = jsTokens2 = function* (input, { jsx = false } = {}) {
|
|
77
|
-
var braces, firstCodePoint, isExpression, lastIndex, lastSignificantToken, length, match2, mode, nextLastIndex, nextLastSignificantToken, parenNesting, postfixIncDec, punctuator, stack;
|
|
78
|
-
({ length } = input);
|
|
79
|
-
lastIndex = 0;
|
|
80
|
-
lastSignificantToken = "";
|
|
81
|
-
stack = [
|
|
82
|
-
{ tag: "JS" }
|
|
83
|
-
];
|
|
84
|
-
braces = [];
|
|
85
|
-
parenNesting = 0;
|
|
86
|
-
postfixIncDec = false;
|
|
87
|
-
if (match2 = HashbangComment.exec(input)) {
|
|
88
|
-
yield {
|
|
89
|
-
type: "HashbangComment",
|
|
90
|
-
value: match2[0]
|
|
91
|
-
};
|
|
92
|
-
lastIndex = match2[0].length;
|
|
93
|
-
}
|
|
94
|
-
while (lastIndex < length) {
|
|
95
|
-
mode = stack[stack.length - 1];
|
|
96
|
-
switch (mode.tag) {
|
|
97
|
-
case "JS":
|
|
98
|
-
case "JSNonExpressionParen":
|
|
99
|
-
case "InterpolationInTemplate":
|
|
100
|
-
case "InterpolationInJSX":
|
|
101
|
-
if (input[lastIndex] === "/" && (TokensPrecedingExpression.test(lastSignificantToken) || KeywordsWithExpressionAfter.test(lastSignificantToken))) {
|
|
102
|
-
RegularExpressionLiteral.lastIndex = lastIndex;
|
|
103
|
-
if (match2 = RegularExpressionLiteral.exec(input)) {
|
|
104
|
-
lastIndex = RegularExpressionLiteral.lastIndex;
|
|
105
|
-
lastSignificantToken = match2[0];
|
|
106
|
-
postfixIncDec = true;
|
|
107
|
-
yield {
|
|
108
|
-
type: "RegularExpressionLiteral",
|
|
109
|
-
value: match2[0],
|
|
110
|
-
closed: match2[1] !== void 0 && match2[1] !== "\\"
|
|
111
|
-
};
|
|
112
|
-
continue;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
Punctuator.lastIndex = lastIndex;
|
|
116
|
-
if (match2 = Punctuator.exec(input)) {
|
|
117
|
-
punctuator = match2[0];
|
|
118
|
-
nextLastIndex = Punctuator.lastIndex;
|
|
119
|
-
nextLastSignificantToken = punctuator;
|
|
120
|
-
switch (punctuator) {
|
|
121
|
-
case "(":
|
|
122
|
-
if (lastSignificantToken === "?NonExpressionParenKeyword") {
|
|
123
|
-
stack.push({
|
|
124
|
-
tag: "JSNonExpressionParen",
|
|
125
|
-
nesting: parenNesting
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
parenNesting++;
|
|
129
|
-
postfixIncDec = false;
|
|
130
|
-
break;
|
|
131
|
-
case ")":
|
|
132
|
-
parenNesting--;
|
|
133
|
-
postfixIncDec = true;
|
|
134
|
-
if (mode.tag === "JSNonExpressionParen" && parenNesting === mode.nesting) {
|
|
135
|
-
stack.pop();
|
|
136
|
-
nextLastSignificantToken = "?NonExpressionParenEnd";
|
|
137
|
-
postfixIncDec = false;
|
|
138
|
-
}
|
|
139
|
-
break;
|
|
140
|
-
case "{":
|
|
141
|
-
Punctuator.lastIndex = 0;
|
|
142
|
-
isExpression = !TokensNotPrecedingObjectLiteral.test(lastSignificantToken) && (TokensPrecedingExpression.test(lastSignificantToken) || KeywordsWithExpressionAfter.test(lastSignificantToken));
|
|
143
|
-
braces.push(isExpression);
|
|
144
|
-
postfixIncDec = false;
|
|
145
|
-
break;
|
|
146
|
-
case "}":
|
|
147
|
-
switch (mode.tag) {
|
|
148
|
-
case "InterpolationInTemplate":
|
|
149
|
-
if (braces.length === mode.nesting) {
|
|
150
|
-
Template.lastIndex = lastIndex;
|
|
151
|
-
match2 = Template.exec(input);
|
|
152
|
-
lastIndex = Template.lastIndex;
|
|
153
|
-
lastSignificantToken = match2[0];
|
|
154
|
-
if (match2[1] === "${") {
|
|
155
|
-
lastSignificantToken = "?InterpolationInTemplate";
|
|
156
|
-
postfixIncDec = false;
|
|
157
|
-
yield {
|
|
158
|
-
type: "TemplateMiddle",
|
|
159
|
-
value: match2[0]
|
|
160
|
-
};
|
|
161
|
-
} else {
|
|
162
|
-
stack.pop();
|
|
163
|
-
postfixIncDec = true;
|
|
164
|
-
yield {
|
|
165
|
-
type: "TemplateTail",
|
|
166
|
-
value: match2[0],
|
|
167
|
-
closed: match2[1] === "`"
|
|
168
|
-
};
|
|
169
|
-
}
|
|
170
|
-
continue;
|
|
171
|
-
}
|
|
172
|
-
break;
|
|
173
|
-
case "InterpolationInJSX":
|
|
174
|
-
if (braces.length === mode.nesting) {
|
|
175
|
-
stack.pop();
|
|
176
|
-
lastIndex += 1;
|
|
177
|
-
lastSignificantToken = "}";
|
|
178
|
-
yield {
|
|
179
|
-
type: "JSXPunctuator",
|
|
180
|
-
value: "}"
|
|
181
|
-
};
|
|
182
|
-
continue;
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
postfixIncDec = braces.pop();
|
|
186
|
-
nextLastSignificantToken = postfixIncDec ? "?ExpressionBraceEnd" : "}";
|
|
187
|
-
break;
|
|
188
|
-
case "]":
|
|
189
|
-
postfixIncDec = true;
|
|
190
|
-
break;
|
|
191
|
-
case "++":
|
|
192
|
-
case "--":
|
|
193
|
-
nextLastSignificantToken = postfixIncDec ? "?PostfixIncDec" : "?UnaryIncDec";
|
|
194
|
-
break;
|
|
195
|
-
case "<":
|
|
196
|
-
if (jsx && (TokensPrecedingExpression.test(lastSignificantToken) || KeywordsWithExpressionAfter.test(lastSignificantToken))) {
|
|
197
|
-
stack.push({ tag: "JSXTag" });
|
|
198
|
-
lastIndex += 1;
|
|
199
|
-
lastSignificantToken = "<";
|
|
200
|
-
yield {
|
|
201
|
-
type: "JSXPunctuator",
|
|
202
|
-
value: punctuator
|
|
203
|
-
};
|
|
204
|
-
continue;
|
|
205
|
-
}
|
|
206
|
-
postfixIncDec = false;
|
|
207
|
-
break;
|
|
208
|
-
default:
|
|
209
|
-
postfixIncDec = false;
|
|
210
|
-
}
|
|
211
|
-
lastIndex = nextLastIndex;
|
|
212
|
-
lastSignificantToken = nextLastSignificantToken;
|
|
213
|
-
yield {
|
|
214
|
-
type: "Punctuator",
|
|
215
|
-
value: punctuator
|
|
216
|
-
};
|
|
217
|
-
continue;
|
|
218
|
-
}
|
|
219
|
-
Identifier.lastIndex = lastIndex;
|
|
220
|
-
if (match2 = Identifier.exec(input)) {
|
|
221
|
-
lastIndex = Identifier.lastIndex;
|
|
222
|
-
nextLastSignificantToken = match2[0];
|
|
223
|
-
switch (match2[0]) {
|
|
224
|
-
case "for":
|
|
225
|
-
case "if":
|
|
226
|
-
case "while":
|
|
227
|
-
case "with":
|
|
228
|
-
if (lastSignificantToken !== "." && lastSignificantToken !== "?.") {
|
|
229
|
-
nextLastSignificantToken = "?NonExpressionParenKeyword";
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
lastSignificantToken = nextLastSignificantToken;
|
|
233
|
-
postfixIncDec = !KeywordsWithExpressionAfter.test(match2[0]);
|
|
234
|
-
yield {
|
|
235
|
-
type: match2[1] === "#" ? "PrivateIdentifier" : "IdentifierName",
|
|
236
|
-
value: match2[0]
|
|
237
|
-
};
|
|
238
|
-
continue;
|
|
239
|
-
}
|
|
240
|
-
StringLiteral.lastIndex = lastIndex;
|
|
241
|
-
if (match2 = StringLiteral.exec(input)) {
|
|
242
|
-
lastIndex = StringLiteral.lastIndex;
|
|
243
|
-
lastSignificantToken = match2[0];
|
|
244
|
-
postfixIncDec = true;
|
|
245
|
-
yield {
|
|
246
|
-
type: "StringLiteral",
|
|
247
|
-
value: match2[0],
|
|
248
|
-
closed: match2[2] !== void 0
|
|
249
|
-
};
|
|
250
|
-
continue;
|
|
251
|
-
}
|
|
252
|
-
NumericLiteral.lastIndex = lastIndex;
|
|
253
|
-
if (match2 = NumericLiteral.exec(input)) {
|
|
254
|
-
lastIndex = NumericLiteral.lastIndex;
|
|
255
|
-
lastSignificantToken = match2[0];
|
|
256
|
-
postfixIncDec = true;
|
|
257
|
-
yield {
|
|
258
|
-
type: "NumericLiteral",
|
|
259
|
-
value: match2[0]
|
|
260
|
-
};
|
|
261
|
-
continue;
|
|
262
|
-
}
|
|
263
|
-
Template.lastIndex = lastIndex;
|
|
264
|
-
if (match2 = Template.exec(input)) {
|
|
265
|
-
lastIndex = Template.lastIndex;
|
|
266
|
-
lastSignificantToken = match2[0];
|
|
267
|
-
if (match2[1] === "${") {
|
|
268
|
-
lastSignificantToken = "?InterpolationInTemplate";
|
|
269
|
-
stack.push({
|
|
270
|
-
tag: "InterpolationInTemplate",
|
|
271
|
-
nesting: braces.length
|
|
272
|
-
});
|
|
273
|
-
postfixIncDec = false;
|
|
274
|
-
yield {
|
|
275
|
-
type: "TemplateHead",
|
|
276
|
-
value: match2[0]
|
|
277
|
-
};
|
|
278
|
-
} else {
|
|
279
|
-
postfixIncDec = true;
|
|
280
|
-
yield {
|
|
281
|
-
type: "NoSubstitutionTemplate",
|
|
282
|
-
value: match2[0],
|
|
283
|
-
closed: match2[1] === "`"
|
|
284
|
-
};
|
|
285
|
-
}
|
|
286
|
-
continue;
|
|
287
|
-
}
|
|
288
|
-
break;
|
|
289
|
-
case "JSXTag":
|
|
290
|
-
case "JSXTagEnd":
|
|
291
|
-
JSXPunctuator.lastIndex = lastIndex;
|
|
292
|
-
if (match2 = JSXPunctuator.exec(input)) {
|
|
293
|
-
lastIndex = JSXPunctuator.lastIndex;
|
|
294
|
-
nextLastSignificantToken = match2[0];
|
|
295
|
-
switch (match2[0]) {
|
|
296
|
-
case "<":
|
|
297
|
-
stack.push({ tag: "JSXTag" });
|
|
298
|
-
break;
|
|
299
|
-
case ">":
|
|
300
|
-
stack.pop();
|
|
301
|
-
if (lastSignificantToken === "/" || mode.tag === "JSXTagEnd") {
|
|
302
|
-
nextLastSignificantToken = "?JSX";
|
|
303
|
-
postfixIncDec = true;
|
|
304
|
-
} else {
|
|
305
|
-
stack.push({ tag: "JSXChildren" });
|
|
306
|
-
}
|
|
307
|
-
break;
|
|
308
|
-
case "{":
|
|
309
|
-
stack.push({
|
|
310
|
-
tag: "InterpolationInJSX",
|
|
311
|
-
nesting: braces.length
|
|
312
|
-
});
|
|
313
|
-
nextLastSignificantToken = "?InterpolationInJSX";
|
|
314
|
-
postfixIncDec = false;
|
|
315
|
-
break;
|
|
316
|
-
case "/":
|
|
317
|
-
if (lastSignificantToken === "<") {
|
|
318
|
-
stack.pop();
|
|
319
|
-
if (stack[stack.length - 1].tag === "JSXChildren") {
|
|
320
|
-
stack.pop();
|
|
321
|
-
}
|
|
322
|
-
stack.push({ tag: "JSXTagEnd" });
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
lastSignificantToken = nextLastSignificantToken;
|
|
326
|
-
yield {
|
|
327
|
-
type: "JSXPunctuator",
|
|
328
|
-
value: match2[0]
|
|
329
|
-
};
|
|
330
|
-
continue;
|
|
331
|
-
}
|
|
332
|
-
JSXIdentifier.lastIndex = lastIndex;
|
|
333
|
-
if (match2 = JSXIdentifier.exec(input)) {
|
|
334
|
-
lastIndex = JSXIdentifier.lastIndex;
|
|
335
|
-
lastSignificantToken = match2[0];
|
|
336
|
-
yield {
|
|
337
|
-
type: "JSXIdentifier",
|
|
338
|
-
value: match2[0]
|
|
339
|
-
};
|
|
340
|
-
continue;
|
|
341
|
-
}
|
|
342
|
-
JSXString.lastIndex = lastIndex;
|
|
343
|
-
if (match2 = JSXString.exec(input)) {
|
|
344
|
-
lastIndex = JSXString.lastIndex;
|
|
345
|
-
lastSignificantToken = match2[0];
|
|
346
|
-
yield {
|
|
347
|
-
type: "JSXString",
|
|
348
|
-
value: match2[0],
|
|
349
|
-
closed: match2[2] !== void 0
|
|
350
|
-
};
|
|
351
|
-
continue;
|
|
352
|
-
}
|
|
353
|
-
break;
|
|
354
|
-
case "JSXChildren":
|
|
355
|
-
JSXText.lastIndex = lastIndex;
|
|
356
|
-
if (match2 = JSXText.exec(input)) {
|
|
357
|
-
lastIndex = JSXText.lastIndex;
|
|
358
|
-
lastSignificantToken = match2[0];
|
|
359
|
-
yield {
|
|
360
|
-
type: "JSXText",
|
|
361
|
-
value: match2[0]
|
|
362
|
-
};
|
|
363
|
-
continue;
|
|
364
|
-
}
|
|
365
|
-
switch (input[lastIndex]) {
|
|
366
|
-
case "<":
|
|
367
|
-
stack.push({ tag: "JSXTag" });
|
|
368
|
-
lastIndex++;
|
|
369
|
-
lastSignificantToken = "<";
|
|
370
|
-
yield {
|
|
371
|
-
type: "JSXPunctuator",
|
|
372
|
-
value: "<"
|
|
373
|
-
};
|
|
374
|
-
continue;
|
|
375
|
-
case "{":
|
|
376
|
-
stack.push({
|
|
377
|
-
tag: "InterpolationInJSX",
|
|
378
|
-
nesting: braces.length
|
|
379
|
-
});
|
|
380
|
-
lastIndex++;
|
|
381
|
-
lastSignificantToken = "?InterpolationInJSX";
|
|
382
|
-
postfixIncDec = false;
|
|
383
|
-
yield {
|
|
384
|
-
type: "JSXPunctuator",
|
|
385
|
-
value: "{"
|
|
386
|
-
};
|
|
387
|
-
continue;
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
WhiteSpace.lastIndex = lastIndex;
|
|
391
|
-
if (match2 = WhiteSpace.exec(input)) {
|
|
392
|
-
lastIndex = WhiteSpace.lastIndex;
|
|
393
|
-
yield {
|
|
394
|
-
type: "WhiteSpace",
|
|
395
|
-
value: match2[0]
|
|
396
|
-
};
|
|
397
|
-
continue;
|
|
398
|
-
}
|
|
399
|
-
LineTerminatorSequence.lastIndex = lastIndex;
|
|
400
|
-
if (match2 = LineTerminatorSequence.exec(input)) {
|
|
401
|
-
lastIndex = LineTerminatorSequence.lastIndex;
|
|
402
|
-
postfixIncDec = false;
|
|
403
|
-
if (KeywordsWithNoLineTerminatorAfter.test(lastSignificantToken)) {
|
|
404
|
-
lastSignificantToken = "?NoLineTerminatorHere";
|
|
405
|
-
}
|
|
406
|
-
yield {
|
|
407
|
-
type: "LineTerminatorSequence",
|
|
408
|
-
value: match2[0]
|
|
409
|
-
};
|
|
410
|
-
continue;
|
|
411
|
-
}
|
|
412
|
-
MultiLineComment.lastIndex = lastIndex;
|
|
413
|
-
if (match2 = MultiLineComment.exec(input)) {
|
|
414
|
-
lastIndex = MultiLineComment.lastIndex;
|
|
415
|
-
if (Newline.test(match2[0])) {
|
|
416
|
-
postfixIncDec = false;
|
|
417
|
-
if (KeywordsWithNoLineTerminatorAfter.test(lastSignificantToken)) {
|
|
418
|
-
lastSignificantToken = "?NoLineTerminatorHere";
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
yield {
|
|
422
|
-
type: "MultiLineComment",
|
|
423
|
-
value: match2[0],
|
|
424
|
-
closed: match2[1] !== void 0
|
|
425
|
-
};
|
|
426
|
-
continue;
|
|
427
|
-
}
|
|
428
|
-
SingleLineComment.lastIndex = lastIndex;
|
|
429
|
-
if (match2 = SingleLineComment.exec(input)) {
|
|
430
|
-
lastIndex = SingleLineComment.lastIndex;
|
|
431
|
-
postfixIncDec = false;
|
|
432
|
-
yield {
|
|
433
|
-
type: "SingleLineComment",
|
|
434
|
-
value: match2[0]
|
|
435
|
-
};
|
|
436
|
-
continue;
|
|
437
|
-
}
|
|
438
|
-
firstCodePoint = String.fromCodePoint(input.codePointAt(lastIndex));
|
|
439
|
-
lastIndex += firstCodePoint.length;
|
|
440
|
-
lastSignificantToken = firstCodePoint;
|
|
441
|
-
postfixIncDec = false;
|
|
442
|
-
yield {
|
|
443
|
-
type: mode.tag.startsWith("JSX") ? "JSXInvalid" : "Invalid",
|
|
444
|
-
value: firstCodePoint
|
|
445
|
-
};
|
|
446
|
-
}
|
|
447
|
-
return void 0;
|
|
448
|
-
};
|
|
449
|
-
}
|
|
450
|
-
});
|
|
451
2
|
|
|
452
3
|
// src/attribution.ts
|
|
453
4
|
var EMPTY = Object.freeze({ attributes: Object.freeze({}), groups: Object.freeze({}), tags: Object.freeze([]) });
|
|
@@ -466,6 +17,28 @@ function attributionOf(value) {
|
|
|
466
17
|
return { attributes: stringMap(attributes, "attributes"), groups: stringMap(groups, "groups"), tags: [...tags ?? []] };
|
|
467
18
|
}
|
|
468
19
|
|
|
20
|
+
// src/observability-sentry/configuration.ts
|
|
21
|
+
var HELPERS = ["redactOperationAttributes", "describeReportedError", "describeTelemetryFailure"];
|
|
22
|
+
var SentryProviderConfigError = class extends Error {
|
|
23
|
+
code = "observability_sentry_context_missing";
|
|
24
|
+
details;
|
|
25
|
+
constructor(required, _optional = {}) {
|
|
26
|
+
super("The Sentry error reporter was started without the redaction helpers it needs, so it will not send anything. Restart the app; if this keeps happening, copy the details into a bug report.");
|
|
27
|
+
this.name = "SentryProviderConfigError";
|
|
28
|
+
this.details = required.details;
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
function readSentryContext({ context: context2 }, _optional = {}) {
|
|
32
|
+
const record = context2 !== null && typeof context2 === "object" ? context2 : {};
|
|
33
|
+
const missing = HELPERS.filter((name) => typeof record[name] !== "function");
|
|
34
|
+
if (missing.length > 0) throw new SentryProviderConfigError({ details: `optional.context is missing: ${missing.join(", ")}` });
|
|
35
|
+
return {
|
|
36
|
+
redactOperationAttributes: record.redactOperationAttributes,
|
|
37
|
+
describeReportedError: record.describeReportedError,
|
|
38
|
+
describeTelemetryFailure: record.describeTelemetryFailure
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
|
|
469
42
|
// src/observability-sentry/sentry.ts
|
|
470
43
|
import { AsyncLocalStorage as AsyncLocalStorage3 } from "node:async_hooks";
|
|
471
44
|
|
|
@@ -12460,572 +12033,30 @@ var NodeClient = class extends ServerRuntimeClient {
|
|
|
12460
12033
|
}
|
|
12461
12034
|
};
|
|
12462
12035
|
|
|
12463
|
-
// ../
|
|
12036
|
+
// ../core/dist/contracts/observability.js
|
|
12464
12037
|
var run = (fn) => fn();
|
|
12465
12038
|
var NOOP_TRACKER = Object.freeze({ end() {
|
|
12466
12039
|
}, run });
|
|
12467
12040
|
var NOOP_SIGNAL_TRACKER = Object.freeze({ end() {
|
|
12468
12041
|
}, run });
|
|
12469
|
-
var
|
|
12470
|
-
|
|
12471
|
-
|
|
12472
|
-
|
|
12473
|
-
|
|
12474
|
-
|
|
12475
|
-
|
|
12476
|
-
|
|
12477
|
-
|
|
12478
|
-
|
|
12479
|
-
reportError: () => false,
|
|
12480
|
-
metric: () => {
|
|
12481
|
-
}
|
|
12482
|
-
};
|
|
12483
|
-
NOOP_PORTS.add(port);
|
|
12484
|
-
return port;
|
|
12485
|
-
}
|
|
12486
|
-
|
|
12487
|
-
// ../core/dist/redact.js
|
|
12488
|
-
var PEM_PATTERN_NAME = "PEM private key block";
|
|
12489
|
-
var PRIVATE_KEY_BLOCK = /-----BEGIN ([A-Z ]*)PRIVATE KEY-----[\s\S]*?(?:-----END \1PRIVATE KEY-----|$)/;
|
|
12490
|
-
var SECRET_SHAPE_PATTERNS = [
|
|
12491
|
-
{ name: "Google API key (AIza)", pattern: /(?<![A-Za-z0-9_-])AIza[0-9A-Za-z_-]{35}(?![A-Za-z0-9_-])/ },
|
|
12492
|
-
{ name: "Anthropic API key (sk-ant-)", pattern: /(?<![A-Za-z0-9_-])sk-ant-[A-Za-z0-9_-]{90,}/ },
|
|
12493
|
-
{ name: "generic sk- secret key (OpenAI-shaped)", pattern: /(?<![A-Za-z0-9_-])sk-[A-Za-z0-9]{40,}/ },
|
|
12494
|
-
{ name: "GitHub personal access token (classic, ghp_)", pattern: /(?<!\w)ghp_\w{36}(?!\w)/ },
|
|
12495
|
-
{ name: "GitHub OAuth token (gho_)", pattern: /(?<!\w)gho_\w{36}(?!\w)/ },
|
|
12496
|
-
{ name: "GitHub fine-grained PAT", pattern: /(?<!\w)github_pat_\w{80,}/ },
|
|
12497
|
-
{ name: "npm access token", pattern: /(?<!\w)npm_\w{36}(?!\w)/ },
|
|
12498
|
-
{ name: "Slack token", pattern: /(?<![A-Za-z0-9-])xox[baprs]-[A-Za-z0-9-]{12,}/ },
|
|
12499
|
-
{ name: "AWS access key ID", pattern: /(?<![0-9A-Z])AKIA[0-9A-Z]{16}(?![0-9A-Z])/ },
|
|
12500
|
-
{ name: "Fastmail app password (fm2_)", pattern: /(?<![A-Za-z0-9+/=])fm2_[A-Za-z0-9+/=]{20,}/ },
|
|
12501
|
-
{ name: PEM_PATTERN_NAME, pattern: PRIVATE_KEY_BLOCK }
|
|
12502
|
-
];
|
|
12503
|
-
var AGENT_FAILURE_TOKEN_SHAPES = [
|
|
12504
|
-
/AIza[\w-]+/,
|
|
12505
|
-
// Google API key
|
|
12506
|
-
/AQ\.[\w.\/-]+/,
|
|
12507
|
-
// AI Studio key
|
|
12508
|
-
/sk-[\w.-]+/,
|
|
12509
|
-
// OpenAI-style secret key
|
|
12510
|
-
/gh[pousr]_\w+/,
|
|
12511
|
-
// GitHub token
|
|
12512
|
-
/github_pat_\w+/,
|
|
12513
|
-
// GitHub fine-grained token
|
|
12514
|
-
/ya29\.[\w.-]+/,
|
|
12515
|
-
// Google OAuth access token
|
|
12516
|
-
/eyJ[\w-]+\.[\w-]+(?:\.[\w-]+)?/
|
|
12517
|
-
// JWT
|
|
12518
|
-
];
|
|
12519
|
-
var AGENT_FAILURE_SECRET_SHAPE_RE = new RegExp(`\\b(?:${AGENT_FAILURE_TOKEN_SHAPES.map((shape) => shape.source).join("|")})`, "g");
|
|
12520
|
-
var IPV4_OCTET = "(?:25[0-5]|2[0-4]\\d|[01]?\\d?\\d)";
|
|
12521
|
-
var PHONE_SEPARATOR = "[\\s.-]?";
|
|
12522
|
-
var PHONE_COUNTRY_CODE = /(?:\+?\d{1,3}[\s.-]?)?/;
|
|
12523
|
-
var PHONE_AREA_CODE = /(?:\(\d{3}\)|\d{3})/;
|
|
12524
|
-
var PATTERNS = [
|
|
12525
|
-
// Langfuse public/secret keys (pk-lf- / sk-lf-). Must run before the
|
|
12526
|
-
// generic sk- rule so the more specific label wins.
|
|
12527
|
-
{ name: "langfuse_key", regex: /\b(?:pk|sk)-lf-[A-Za-z0-9-]{16,}\b/g },
|
|
12528
|
-
// Anthropic / OpenAI-style keys: 'sk-' + optional sub-prefix + base64-ish.
|
|
12529
|
-
// Both vendors plus a long tail of OpenAI-compatible providers (DeepSeek,
|
|
12530
|
-
// MiniMax, Together, etc.) ship keys in this shape, so a single rule
|
|
12531
|
-
// covers most "sk-..." secrets a user might paste into a prompt.
|
|
12532
|
-
{ name: "sk_key", regex: /\bsk-(?:proj-|live-|test-|ant-)?[A-Za-z0-9_-]{20,}\b/g },
|
|
12533
|
-
// GitHub personal / OAuth / server / user-server / refresh tokens.
|
|
12534
|
-
{ name: "github_token", regex: /\bgh[opsur]_[A-Za-z0-9]{36,}\b/g },
|
|
12535
|
-
// GitHub legacy 40-hex personal access tokens that ship with no prefix
|
|
12536
|
-
// are indistinguishable from a sha1 hash, so we don't try to match them
|
|
12537
|
-
// here — false positives would be brutal in commit logs / artifact slugs.
|
|
12538
|
-
// AWS access key id. The matching secret access key is just 40 base64
|
|
12539
|
-
// chars with no fixed shape, so we cannot reliably redact it without
|
|
12540
|
-
// huge collateral damage; flagging the access key id at least
|
|
12541
|
-
// signals a paste happened.
|
|
12542
|
-
{ name: "aws_access_key", regex: /\bAKIA[0-9A-Z]{16}\b/g },
|
|
12543
|
-
// Google API keys — legacy AIza… (Maps / AI Studio) and service-account-
|
|
12544
|
-
// bound AQ.… keys AI Studio now issues. AQ. must run before the generic
|
|
12545
|
-
// sk_ rule would mis-label unrelated tokens.
|
|
12546
|
-
{ name: "google_api_key", regex: /\bAQ\.[A-Za-z0-9_-]{20,}\b/g },
|
|
12547
|
-
{ name: "google_api_key", regex: /\bAIza[0-9A-Za-z_-]{35}\b/g },
|
|
12548
|
-
// Slack tokens.
|
|
12549
|
-
{ name: "slack_token", regex: /\bxox[abprs]-[0-9A-Za-z-]{10,}\b/g },
|
|
12550
|
-
// Stripe keys.
|
|
12551
|
-
{ name: "stripe_key", regex: /\b(?:sk|pk|rk)_(?:live|test)_[0-9a-zA-Z]{16,}\b/g },
|
|
12552
|
-
// JSON Web Tokens. The "header.payload.signature" triple is distinctive
|
|
12553
|
-
// enough that false positives are rare (the literal "eyJ" prefix is the
|
|
12554
|
-
// base64 encoding of '{"' which is how every JOSE header starts).
|
|
12555
|
-
{ name: "jwt", regex: /(?<!\w)(?<!(?<!\w)eyJ[A-Za-z0-9_-]*?)eyJ[A-Za-z0-9_-]+\.eyJ[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\b/g },
|
|
12556
|
-
// Bearer tokens in HTTP Authorization header copy/paste. We only match
|
|
12557
|
-
// the value, not the literal 'Bearer ', so the marker stays readable in
|
|
12558
|
-
// the redacted output ("Authorization: Bearer [REDACTED:bearer_token]").
|
|
12559
|
-
// The leading lookahead only lets the lookbehind run where a value can start, so a long
|
|
12560
|
-
// whitespace run is not rescanned from every position inside it.
|
|
12561
|
-
{ name: "bearer_token", regex: /(?=[A-Za-z0-9._~+/-])(?<=\bBearer\s+)[A-Za-z0-9._~+/-]{16,}={0,2}/g },
|
|
12562
|
-
// Email addresses. Conservative enough to require a TLD-like trailer. The local part is
|
|
12563
|
-
// bounded at the RFC 5321 limit of 64: an unbounded run rescanned the suffix from every word
|
|
12564
|
-
// boundary, so `'a.'.repeat(20000)` blocked ~3 s on a large tool response. Matching starts at
|
|
12565
|
-
// the `@` and reads the local part in a lookbehind (captured as `local`): starting at every word
|
|
12566
|
-
// boundary still cost up to 64 steps per position, ~2.5 s on 10 MiB of `'eyJ-'`.
|
|
12567
|
-
// Alphabetic TLDs preserve versioned package paths in error stacks (e.g. pkg@1.2.3).
|
|
12568
|
-
{ name: "email", regex: /@(?<=\b(?<local>[\w.+-]{1,64})@)(?:[\w-]+\.)+[A-Za-z]{2,}\b/g },
|
|
12569
|
-
// IPv4. Reject all-zero / 255.255.255.255-ish junk shapes by gating on
|
|
12570
|
-
// each octet being 0-255.
|
|
12571
|
-
{
|
|
12572
|
-
name: "ipv4",
|
|
12573
|
-
regex: new RegExp(`\\b(?:${IPV4_OCTET}\\.){3}${IPV4_OCTET}\\b`, "g")
|
|
12574
|
-
},
|
|
12575
|
-
// Phone numbers. Tight US-leaning shape; a global PII detector would
|
|
12576
|
-
// need a real lib. We keep this so US-based test prompts ('call me at
|
|
12577
|
-
// (415) 555-...') don't ship. Note: no leading \b — '(' isn't a word
|
|
12578
|
-
// char, so a starting boundary would refuse to match `(415)`. Reject
|
|
12579
|
-
// adjacent word characters or hyphens so digit segments of UUIDs,
|
|
12580
|
-
// hashes and identifiers stay readable; separators within phones still match.
|
|
12581
|
-
{
|
|
12582
|
-
name: "phone",
|
|
12583
|
-
regex: new RegExp(`(?<![\\w-])${PHONE_COUNTRY_CODE.source}${PHONE_AREA_CODE.source}${PHONE_SEPARATOR}\\d{3}${PHONE_SEPARATOR}\\d{4}(?![\\w-])`, "g")
|
|
12584
|
-
}
|
|
12585
|
-
];
|
|
12586
|
-
var CATEGORY = {
|
|
12587
|
-
exactSecret: "exact_secret",
|
|
12588
|
-
credential: "credential",
|
|
12589
|
-
urlCredentials: "url_credentials",
|
|
12590
|
-
signedQuery: "signed_query",
|
|
12591
|
-
apiKeyHeader: "api_key_header",
|
|
12592
|
-
apiKeyQuery: "api_key_query",
|
|
12593
|
-
bearerToken: "bearer_token",
|
|
12594
|
-
labeledSecret: "labeled_secret",
|
|
12595
|
-
urlSecretParam: "url_secret_param",
|
|
12596
|
-
opaqueToken: "opaque_token",
|
|
12597
|
-
creditCard: "credit_card"
|
|
12598
|
-
};
|
|
12599
|
-
var GENERATED_CATEGORIES = [...PATTERNS.map(({ name }) => name), ...Object.values(CATEGORY)];
|
|
12600
|
-
function escapeRegExp(text) {
|
|
12601
|
-
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
12602
|
-
}
|
|
12603
|
-
function markerSource(categories) {
|
|
12604
|
-
return `\\[REDACTED:(?:${[...new Set(categories)].map(escapeRegExp).join("|")})\\]`;
|
|
12605
|
-
}
|
|
12606
|
-
var GENERATED_MARKER = markerSource(GENERATED_CATEGORIES);
|
|
12607
|
-
var GENERATED_MARKER_RE = new RegExp(GENERATED_MARKER, "g");
|
|
12608
|
-
var QUOTED_SECRET_VALUE = String.raw`"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'`;
|
|
12609
|
-
var API_KEY_HEADER = new RegExp(`(^|[^?&\\w])(["']?)(x-api-key|api-key|x-goog-api-key)\\2(\\s*[:=]\\s*)(${QUOTED_SECRET_VALUE}|[^\\s,;"'#}]+)`, "gi");
|
|
12610
|
-
var SECRET_LABELS = "authorization|bearer|api[-_]?key|access[-_]?token|refresh[-_]?token|client[-_]?secret|password|secret|cookie";
|
|
12611
|
-
var SERIALIZED_SECRET_LABELS = `${SECRET_LABELS}|x[-_](?:goog[-_])?api[-_]?key|api key|token|set[-_]cookie|private[-_]?key`;
|
|
12612
|
-
var EMPTY_QUOTED_ASSIGNMENT_RE = new RegExp(`\\b(?:${SERIALIZED_SECRET_LABELS})\\s*[:=]\\s*$`, "i");
|
|
12613
|
-
var LABELED_SECRET_RE = new RegExp(`\\b(${SECRET_LABELS})\\b\\s*[:=]\\s*\\S+`, "gi");
|
|
12614
|
-
var CORRELATION_ID = "ERR-[0-9A-F]{4}(?:-[0-9A-F]{4}){3}";
|
|
12615
|
-
var UPPER_SNAKE_DIAGNOSTIC = "[A-Z][A-Z0-9]*(?:_[A-Z0-9]+)+";
|
|
12616
|
-
var NON_SECRET_TOKEN_RE = new RegExp(`^(?:${CORRELATION_ID}|delegated-tool-calls|${UPPER_SNAKE_DIAGNOSTIC})$`);
|
|
12617
|
-
var RUNTIME_SECRET_LABELS = `${SERIALIZED_SECRET_LABELS}|(?<![?&])(?:key)`;
|
|
12618
|
-
var MASK_AWARE_LABELED_SECRET_RE = new RegExp(`(?<![\\w-])(["']?)(${RUNTIME_SECRET_LABELS})\\1\\s*[:=]\\s*(?!Bearer\\s+\\S)(?!${GENERATED_MARKER}[;&])((?!&)\\S)`, "gi");
|
|
12619
|
-
var CHAINED_LABEL_RE = new RegExp(`(?:${RUNTIME_SECRET_LABELS})\\b["']?\\s*[:=]\\s*(?=\\S)`, "iy");
|
|
12620
|
-
var SHORT_BEARER_RE = new RegExp(`Bearer\\s+["']?(?!${GENERATED_MARKER}(?=$|[\\s"',;<>}]))(?=([^\\s"',;<>}]+))`, "gi");
|
|
12621
|
-
var URL_SECRET_WORDS = "token|key|secret|signature|sig|code|password|passwd|pwd|auth|authorization|credential";
|
|
12622
|
-
var URL_SECRET_PARAM_RE = new RegExp(`[?&#;]([\\w.-]{0,128}?(?:${URL_SECRET_WORDS})s?(?=[._=-])[\\w.-]{0,128})=[^&;\\s"'<>()]+`, "gi");
|
|
12623
|
-
var LABELED_URL_PARAM_NAME_RE = new RegExp(`(?:^|[.-])(?:${SECRET_LABELS})$`, "i");
|
|
12624
|
-
var MASKED_VALUE_RE = new RegExp(`^["']?${GENERATED_MARKER}["']?$`);
|
|
12625
|
-
var PII_PATTERN_NAMES = ["email", "ipv4", "phone"];
|
|
12626
|
-
var NON_PII_PATTERNS = PATTERNS.filter((pattern) => !PII_PATTERN_NAMES.includes(pattern.name));
|
|
12627
|
-
var PII_PATTERNS = PATTERNS.filter((pattern) => PII_PATTERN_NAMES.includes(pattern.name));
|
|
12628
|
-
|
|
12629
|
-
// ../diagnostics/dist/core/secrets-only.js
|
|
12630
|
-
var import_js_tokens = __toESM(require_js_tokens(), 1);
|
|
12631
|
-
function withGlobalFlag(flags) {
|
|
12632
|
-
return flags.includes("g") ? flags : `${flags}g`;
|
|
12633
|
-
}
|
|
12634
|
-
var REUSED_CREDENTIAL_RULES = SECRET_SHAPE_PATTERNS.map((vendor) => ({
|
|
12635
|
-
kind: "credential",
|
|
12636
|
-
pattern: new RegExp(vendor.pattern.source, withGlobalFlag(vendor.pattern.flags)),
|
|
12637
|
-
replacement: () => "[REDACTED:credential]"
|
|
12638
|
-
}));
|
|
12639
|
-
var LABELED_SECRET_LABELS = "password|passwd|pwd|secret|client_secret|api_key|apikey|access_token|refresh_token|id_token|auth_token|token|private_key|secret_access_key|signing_secret|webhook_secret";
|
|
12640
|
-
var AUTH_HEADER_NAMES = "(?:proxy-)?authorization|x-api-key|api-key|x-goog-api-key|x-auth-token";
|
|
12641
|
-
var AUTH_SCHEMES = "Bearer|Basic|Token|Digest|ApiKey";
|
|
12642
|
-
var AUTH_VALUE = String.raw`(?!\[REDACTED)(?:(?!\x60(?=[\s"'.,);]|$))[^\s"'),;])+`;
|
|
12643
|
-
var AUTH_HEADER_VALUE_RE = new RegExp(String.raw`(?<![a-z0-9-])(${AUTH_HEADER_NAMES})(\s*(?:["']\s*)?[:=]\s*["']?)` + String.raw`(?:((?:${AUTH_SCHEMES})\s+)${AUTH_VALUE}|(?!(?:${AUTH_SCHEMES})(?:\s|["'\x60),;]|$))${AUTH_VALUE})`, "gi");
|
|
12644
|
-
var REDACTION_RULES = [
|
|
12645
|
-
{
|
|
12646
|
-
kind: "private_key",
|
|
12647
|
-
// Matches a full PEM block, including a truncated one with no `-----END-----` line (the
|
|
12648
|
-
// `$` alternative). `\1` backreferences the captured key type (e.g. "RSA ") so a
|
|
12649
|
-
// "BEGIN RSA PRIVATE KEY" block cannot be closed by an unrelated "END EC PRIVATE KEY" line.
|
|
12650
|
-
pattern: /-----BEGIN ([A-Z ]*)PRIVATE KEY-----[\s\S]*?(?:-----END \1PRIVATE KEY-----|$)/g,
|
|
12651
|
-
replacement: () => "[REDACTED:private_key]"
|
|
12652
|
-
},
|
|
12653
|
-
{
|
|
12654
|
-
kind: "auth_header",
|
|
12655
|
-
// The value is ONE token after an optional known scheme, never the rest of the line — a
|
|
12656
|
-
// rest-of-line value would eat a trailing IP/cause in a message like `request failed
|
|
12657
|
-
// (Authorization: Bearer <tok>): connect ECONNREFUSED 10.0.4.7:443`.
|
|
12658
|
-
//
|
|
12659
|
-
// Split into two non-overlapping alternatives (scheme+value vs. no-scheme+value) rather than
|
|
12660
|
-
// one optional scheme group, for idempotency: with a single optional group, a second pass over
|
|
12661
|
-
// already-redacted text (`Authorization: Bearer [REDACTED:auth_header]`) would fail the
|
|
12662
|
-
// `(?!\[REDACTED)` lookahead on the "with scheme" attempt, backtrack the optional group away,
|
|
12663
|
-
// and then match the bare word "Bearer" itself as the "value" — corrupting already-redacted
|
|
12664
|
-
// text. The second alternative explicitly refuses a scheme keyword followed by whitespace
|
|
12665
|
-
// or a value terminator, so when the first alternative's lookahead fails there is no fallback left to
|
|
12666
|
-
// backtrack into, and the whole rule correctly finds no match on a second pass.
|
|
12667
|
-
// Scheme names without a following value (including Markdown's `Authorization: Bearer`)
|
|
12668
|
-
// describe a header; they are not themselves credentials.
|
|
12669
|
-
pattern: AUTH_HEADER_VALUE_RE,
|
|
12670
|
-
replacement: ({ match: m3 }) => `${m3[1]}${m3[2]}${m3[3] ?? ""}[REDACTED:auth_header]`
|
|
12671
|
-
},
|
|
12672
|
-
{
|
|
12673
|
-
kind: "auth_header",
|
|
12674
|
-
pattern: /(?<![a-z0-9-])((?:set-)?cookie)(\s*[:=]\s*)(?!\[REDACTED)[^\s"'),;]+(?:;\s*[^\s"'),;]+)*/gi,
|
|
12675
|
-
replacement: ({ match: m3 }) => `${m3[1]}${m3[2]}[REDACTED:auth_header]`
|
|
12676
|
-
},
|
|
12677
|
-
{
|
|
12678
|
-
kind: "url_credentials",
|
|
12679
|
-
// Host, port, IP and path all stay — only the `user:pass@` half is replaced. The password class
|
|
12680
|
-
// ADMITS `@` and backtracks to the LAST one before the authority ends (2026-09-16 security
|
|
12681
|
-
// review): a password that was never percent-encoded — `postgres://u:p@ss4@host/db` — otherwise
|
|
12682
|
-
// matched only up to its FIRST `@`, leaving the tail (`ss4`) of the password in the output.
|
|
12683
|
-
// `?` is excluded so a query string's own `@` cannot drag the match past the authority.
|
|
12684
|
-
// Find the delimiter before checking the original scheme grammar. Starting at each word
|
|
12685
|
-
// boundary rescans long dashed runs quadratically; delimiter-first checks disjoint runs once.
|
|
12686
|
-
// The scheme stays outside the replacement, including suffixes after malformed prefixes.
|
|
12687
|
-
pattern: /:\/\/(?<=\b[a-z][a-z0-9+.-]*:\/\/)(?!\[REDACTED)[^\s/@:]+:[^\s/?]+@/gi,
|
|
12688
|
-
replacement: () => "://[REDACTED:url_credentials]@"
|
|
12689
|
-
},
|
|
12690
|
-
...REUSED_CREDENTIAL_RULES,
|
|
12691
|
-
{
|
|
12692
|
-
kind: "stripe_key",
|
|
12693
|
-
pattern: /(?<!\w)(?:sk|rk)_(?:live|test)_[0-9A-Za-z]{16,}/g,
|
|
12694
|
-
replacement: () => "[REDACTED:stripe_key]"
|
|
12695
|
-
},
|
|
12696
|
-
{
|
|
12697
|
-
kind: "stripe_key",
|
|
12698
|
-
pattern: /(?<!\w)whsec_[A-Za-z0-9]{24,}/g,
|
|
12699
|
-
replacement: () => "[REDACTED:stripe_key]"
|
|
12700
|
-
},
|
|
12701
|
-
{
|
|
12702
|
-
kind: "github_token",
|
|
12703
|
-
// Covers `ghs_`/`ghu_`/`ghr_` and lengths the exact-length SECRET_SHAPE_PATTERNS entries miss.
|
|
12704
|
-
pattern: /(?<!\w)gh[pousr]_[A-Za-z0-9]{30,}/g,
|
|
12705
|
-
replacement: () => "[REDACTED:github_token]"
|
|
12706
|
-
},
|
|
12707
|
-
{
|
|
12708
|
-
kind: "openai_key",
|
|
12709
|
-
pattern: /(?<![A-Za-z0-9_-])sk-(?:proj|svcacct|admin)-[A-Za-z0-9_-]{20,}/g,
|
|
12710
|
-
replacement: () => "[REDACTED:openai_key]"
|
|
12711
|
-
},
|
|
12712
|
-
{
|
|
12713
|
-
kind: "anthropic_key",
|
|
12714
|
-
// SECRET_SHAPE_PATTERNS' own `sk-ant-` entry needs 90+ trailing characters, which is right for the
|
|
12715
|
-
// repo-wide static check (a committed key is whole) but wrong here (2026-09-16 security review):
|
|
12716
|
-
// an upstream 401 often echoes a TRUNCATED key, and `sk-[A-Za-z0-9]{40,}` cannot cover it either
|
|
12717
|
-
// because `sk-ant-api03-` carries hyphens. The prefix alone is specific enough at this length.
|
|
12718
|
-
pattern: /(?<![A-Za-z0-9_-])sk-ant-[A-Za-z0-9_-]{20,}/g,
|
|
12719
|
-
replacement: () => "[REDACTED:anthropic_key]"
|
|
12720
|
-
},
|
|
12721
|
-
{
|
|
12722
|
-
kind: "google_api_key",
|
|
12723
|
-
pattern: /(?<![A-Za-z0-9_.-])AQ\.[A-Za-z0-9_-]{20,}/g,
|
|
12724
|
-
replacement: () => "[REDACTED:google_api_key]"
|
|
12725
|
-
},
|
|
12726
|
-
{
|
|
12727
|
-
kind: "aws_access_key",
|
|
12728
|
-
pattern: /(?<![0-9A-Z])ASIA[0-9A-Z]{16}(?![0-9A-Z])/g,
|
|
12729
|
-
replacement: () => "[REDACTED:aws_access_key]"
|
|
12730
|
-
},
|
|
12731
|
-
{
|
|
12732
|
-
kind: "jwt",
|
|
12733
|
-
pattern: /(?<![A-Za-z0-9_-])eyJ[A-Za-z0-9_-]{8,}\.eyJ[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{8,}/g,
|
|
12734
|
-
replacement: () => "[REDACTED:jwt]"
|
|
12735
|
-
},
|
|
12736
|
-
{
|
|
12737
|
-
kind: "bearer_token",
|
|
12738
|
-
// Bare scheme outside a header line. The value must be at least 16 characters AND contain a
|
|
12739
|
-
// digit, so ordinary prose ("Bearer token", "Basic authentication is not supported") is
|
|
12740
|
-
// untouched.
|
|
12741
|
-
pattern: /\b(Bearer|Basic|Token)\s+(?!\[REDACTED)(?=[A-Za-z0-9._~+/=:-]*\d)[A-Za-z0-9._~+/=:-]{16,}/g,
|
|
12742
|
-
replacement: ({ match: m3 }) => `${m3[1]} [REDACTED:bearer_token]`
|
|
12743
|
-
},
|
|
12744
|
-
{
|
|
12745
|
-
kind: "labeled_secret",
|
|
12746
|
-
// Assignment form only — never a bare prose colon (`password: must be...` is untouched).
|
|
12747
|
-
pattern: new RegExp(`(?<![A-Za-z0-9])(${LABELED_SECRET_LABELS})(\\s*=\\s*)(?!\\[REDACTED)([^\\s"'&,;})]+)`, "gi"),
|
|
12748
|
-
replacement: ({ match: m3 }) => `${m3[1]}${m3[2]}[REDACTED:labeled_secret]`
|
|
12749
|
-
},
|
|
12750
|
-
{
|
|
12751
|
-
kind: "labeled_secret",
|
|
12752
|
-
// JSON form: `"label":"value"`.
|
|
12753
|
-
pattern: new RegExp(`"(${LABELED_SECRET_LABELS})"(\\s*:\\s*)"(?!\\[REDACTED)[^"]+"`, "gi"),
|
|
12754
|
-
replacement: ({ match: m3 }) => `"${m3[1]}"${m3[2]}"[REDACTED:labeled_secret]"`
|
|
12755
|
-
},
|
|
12756
|
-
{
|
|
12757
|
-
kind: "labeled_secret",
|
|
12758
|
-
// Multi-word quoted keys can hold credentials too; translated phrases with spaces stay prose.
|
|
12759
|
-
pattern: new RegExp(String.raw`(["'])((?:[A-Za-z0-9_-]{1,32}[ \t]+){1,6}(?:${LABELED_SECRET_LABELS}))\1(\s*:\s*)(["'])(?!\[REDACTED)[^\s"'\\]{12,}\4`, "gi"),
|
|
12760
|
-
replacement: ({ match: m3 }) => `${m3[1]}${m3[2]}${m3[1]}${m3[3]}${m3[4]}[REDACTED:labeled_secret]${m3[4]}`
|
|
12761
|
-
},
|
|
12762
|
-
{
|
|
12763
|
-
kind: "labeled_secret",
|
|
12764
|
-
// Colon form: `api_key: <value>`, `{ api_key: 'value' }`, `\"api_key\":\"value\"` (2026-09-16
|
|
12765
|
-
// security review). The `=` and double-quoted-JSON rules above miss every one of these, and they
|
|
12766
|
-
// are the shapes a real failure arrives in most often — `util.inspect` of a request config, a
|
|
12767
|
-
// YAML/pretty-printed body, or a JSON error body embedded inside ANOTHER JSON string, where the
|
|
12768
|
-
// escaped `\"` defeats the plain JSON rule.
|
|
12769
|
-
//
|
|
12770
|
-
// Prose is kept out by the VALUE's own shape rather than by banning the colon: a quoted value is
|
|
12771
|
-
// always taken, an unquoted one only when it is a single ≥12-character token. That is what keeps
|
|
12772
|
-
// this file's Must NOT change list intact — `password: must be at least 8 characters` stops at
|
|
12773
|
-
// the 4-character `must`, and `token expired at ...` has no colon at all.
|
|
12774
|
-
// Match the whole key; multi-word labels above additionally require an opaque value.
|
|
12775
|
-
pattern: new RegExp(`(?<![A-Za-z0-9])((?:\\\\?["'])?)((?:[A-Za-z0-9]{1,32}[_-]){0,6}(?:${LABELED_SECRET_LABELS}))\\1(\\s*:\\s*)(?:(\\\\?["'])(?!\\[REDACTED)[^"'\\\\\\r\\n]+\\4|(?!\\[REDACTED)[^\\s"',;}]{12,})`, "gi"),
|
|
12776
|
-
replacement: ({ match: m3 }) => `${m3[1]}${m3[2]}${m3[1]}${m3[3]}${m3[4] ?? ""}[REDACTED:labeled_secret]${m3[4] ?? ""}`
|
|
12777
|
-
},
|
|
12778
|
-
{
|
|
12779
|
-
kind: "labeled_secret",
|
|
12780
|
-
// Query-string form: `?key=value` / `&token=value`.
|
|
12781
|
-
pattern: /([?&](?:key|api_key|api-key|token|access_token|sig|signature)=)(?!\[REDACTED)[^&#\s"']+/gi,
|
|
12782
|
-
replacement: ({ match: m3 }) => `${m3[1]}[REDACTED:labeled_secret]`
|
|
12783
|
-
}
|
|
12784
|
-
];
|
|
12785
|
-
var CODE_VENDOR_RULES = [
|
|
12786
|
-
{ kind: "google_oauth", pattern: /ya29\.[\w-]{20,}/g, replacement: () => "[REDACTED:google_oauth]" },
|
|
12787
|
-
{ kind: "sendgrid_key", pattern: /SG\.[\w-]{16,}\.[\w-]{16,}/g, replacement: () => "[REDACTED:sendgrid_key]" }
|
|
12788
|
-
];
|
|
12789
|
-
function applyRedactionRules({ text, rules }, _options = {}) {
|
|
12790
|
-
let redactions = 0;
|
|
12791
|
-
let result = text;
|
|
12792
|
-
for (const rule of rules) {
|
|
12793
|
-
result = result.replace(new RegExp(rule.pattern.source, withGlobalFlag(rule.pattern.flags)), (...args) => {
|
|
12794
|
-
redactions += 1;
|
|
12795
|
-
return rule.replacement({ match: args });
|
|
12796
|
-
});
|
|
12797
|
-
}
|
|
12798
|
-
return { text: result, redactions };
|
|
12799
|
-
}
|
|
12800
|
-
function hasCredentialEntropy({ content }, _options = {}) {
|
|
12801
|
-
const frequencies = /* @__PURE__ */ new Map();
|
|
12802
|
-
for (const char of content)
|
|
12803
|
-
frequencies.set(char, (frequencies.get(char) ?? 0) + 1);
|
|
12804
|
-
let entropy = 0;
|
|
12805
|
-
for (const count of frequencies.values()) {
|
|
12806
|
-
const probability = count / content.length;
|
|
12807
|
-
entropy -= probability * Math.log2(probability);
|
|
12808
|
-
}
|
|
12809
|
-
return entropy >= 3.5;
|
|
12810
|
-
}
|
|
12811
|
-
function isCredentialLiteral({ content }, _options = {}) {
|
|
12812
|
-
if (content.length < 20 || /\s/.test(content) || !/[a-z]/i.test(content) || !/\d/.test(content))
|
|
12813
|
-
return false;
|
|
12814
|
-
if (!/^[A-Za-z0-9_\-+/=.]{20,}$/.test(content))
|
|
12815
|
-
return false;
|
|
12816
|
-
if (/^[a-f0-9]{20,40}$/i.test(content))
|
|
12817
|
-
return false;
|
|
12818
|
-
if (content.includes("/") || /^[\w$-]+(?:\.[\w$-]+)+$/.test(content))
|
|
12819
|
-
return false;
|
|
12820
|
-
return hasCredentialEntropy({ content });
|
|
12821
|
-
}
|
|
12822
|
-
function isFirstNamedCallArgument({ previous, separator, name }, _options = {}) {
|
|
12823
|
-
if (separator !== "," || name.type !== "StringLiteral" || previous.at(-3)?.value !== "(")
|
|
12824
|
-
return false;
|
|
12825
|
-
const callee = previous.at(-4);
|
|
12826
|
-
if (!callee)
|
|
12827
|
-
return false;
|
|
12828
|
-
return callee.type === "IdentifierName" && !/^(if|while|for|switch|catch|with|function)$/.test(callee.value) || callee.value === ")" || callee.value === "]";
|
|
12829
|
-
}
|
|
12830
|
-
function hasSecretLiteralContext({ previous }, _options = {}) {
|
|
12831
|
-
const separator = previous.at(-1)?.value;
|
|
12832
|
-
const name = previous.at(-2);
|
|
12833
|
-
if (!name || name.type !== "IdentifierName" && name.type !== "StringLiteral")
|
|
12834
|
-
return false;
|
|
12835
|
-
const label = name.type === "StringLiteral" ? decodeStaticLiteral({ content: name.value.slice(1, -1) }) : name.value;
|
|
12836
|
-
if (!SECRET_LABEL_SUFFIX.test(label))
|
|
12837
|
-
return false;
|
|
12838
|
-
if (separator === ":" || separator === "=")
|
|
12839
|
-
return true;
|
|
12840
|
-
return isFirstNamedCallArgument({ previous, separator, name });
|
|
12841
|
-
}
|
|
12842
|
-
function codeTokenSpan({ token }, _options = {}) {
|
|
12843
|
-
switch (token.type) {
|
|
12844
|
-
case "StringLiteral":
|
|
12845
|
-
case "JSXString":
|
|
12846
|
-
case "NoSubstitutionTemplate":
|
|
12847
|
-
case "TemplateTail":
|
|
12848
|
-
return { start: 1, end: token.value.length - (token.closed ? 1 : 0), literal: true };
|
|
12849
|
-
case "TemplateHead":
|
|
12850
|
-
case "TemplateMiddle":
|
|
12851
|
-
return { start: 1, end: token.value.length - 2, literal: true };
|
|
12852
|
-
}
|
|
12853
|
-
if (/^(SingleLineComment|MultiLineComment|HashbangComment)$/.test(token.type)) {
|
|
12854
|
-
return { start: 0, end: token.value.length, literal: false };
|
|
12855
|
-
}
|
|
12856
|
-
return void 0;
|
|
12857
|
-
}
|
|
12858
|
-
function redactUnclassifiedLiteral({ content, adjacentSecret }, _options = {}) {
|
|
12859
|
-
const value = content.replace(/^(Bearer|Basic|Token) /i, "");
|
|
12860
|
-
if (adjacentSecret && content.length >= 8 && !/\s/.test(value) && !/^[A-Za-z]+(?:[-_.][A-Za-z]+)+$/.test(value)) {
|
|
12861
|
-
return { text: "[REDACTED:labeled_secret]", redactions: 1 };
|
|
12862
|
-
}
|
|
12863
|
-
if (isCredentialLiteral({ content }))
|
|
12864
|
-
return { text: "[REDACTED:high_entropy]", redactions: 1 };
|
|
12865
|
-
return { text: content, redactions: 0 };
|
|
12866
|
-
}
|
|
12867
|
-
var SECRET_LABEL_WORDS = [
|
|
12868
|
-
"pass(word|wd)?",
|
|
12869
|
-
"secret",
|
|
12870
|
-
"token",
|
|
12871
|
-
"api[-_]?key",
|
|
12872
|
-
"access[-_]?key",
|
|
12873
|
-
"private[-_]?key",
|
|
12874
|
-
"client[-_]?secret",
|
|
12875
|
-
"auth(orization)?",
|
|
12876
|
-
"bearer",
|
|
12877
|
-
"cookie",
|
|
12878
|
-
"credential"
|
|
12879
|
-
];
|
|
12880
|
-
var SECRET_LABEL_SUFFIX = new RegExp(`(${SECRET_LABEL_WORDS.join("|")})s?$`, "i");
|
|
12881
|
-
function decodeStaticLiteral({ content }, _options = {}) {
|
|
12882
|
-
const escapes = { n: "\n", r: "\r", t: " ", b: "\b", f: "\f", v: "\v" };
|
|
12883
|
-
return content.replace(/\\(u\{[0-9a-fA-F]+\}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{2}|[0-7]{1,3}|\r\n|[\s\S])/g, (_match, sequence) => {
|
|
12884
|
-
if (sequence.startsWith("u{")) {
|
|
12885
|
-
const point = Number.parseInt(sequence.slice(2, -1), 16);
|
|
12886
|
-
return point <= 1114111 ? String.fromCodePoint(point) : "";
|
|
12887
|
-
}
|
|
12888
|
-
if (/^[ux]/.test(sequence) && sequence.length > 1)
|
|
12889
|
-
return String.fromCharCode(Number.parseInt(sequence.slice(1), 16));
|
|
12890
|
-
if (/^[0-7]+$/.test(sequence))
|
|
12891
|
-
return String.fromCharCode(Number.parseInt(sequence, 8));
|
|
12892
|
-
if (/^[\r\n]/.test(sequence))
|
|
12893
|
-
return "";
|
|
12894
|
-
return escapes[sequence] ?? sequence;
|
|
12895
|
-
});
|
|
12896
|
-
}
|
|
12897
|
-
function redactCodeTokenContent({ content, literal, adjacentSecret, policy }, _options = {}) {
|
|
12898
|
-
const strict = redactSecretShapes({ text: content, policy: { ...policy, codeAware: false } });
|
|
12899
|
-
const vendor = applyRedactionRules({ text: strict.text, rules: CODE_VENDOR_RULES });
|
|
12900
|
-
if (literal && strict.redactions === 0 && vendor.text === content && !content.includes("[REDACTED:")) {
|
|
12901
|
-
return redactUnclassifiedLiteral({ content, adjacentSecret });
|
|
12902
|
-
}
|
|
12903
|
-
return { text: vendor.text, redactions: strict.redactions + vendor.redactions };
|
|
12904
|
-
}
|
|
12905
|
-
function renderRedactedLiteral({ content, classified, result }, _options = {}) {
|
|
12906
|
-
if (result.redactions === 0)
|
|
12907
|
-
return content;
|
|
12908
|
-
if (content === classified)
|
|
12909
|
-
return result.text;
|
|
12910
|
-
return result.text.match(/\[REDACTED:[^\]]+\]/)?.[0] ?? "[REDACTED:escaped_secret]";
|
|
12911
|
-
}
|
|
12912
|
-
function rememberSignificantCodeToken({ previous, token }, _options = {}) {
|
|
12913
|
-
if (/^(WhiteSpace|LineTerminatorSequence|SingleLineComment|MultiLineComment|HashbangComment)$/.test(token.type))
|
|
12914
|
-
return;
|
|
12915
|
-
previous.push(token);
|
|
12916
|
-
if (previous.length > 4)
|
|
12917
|
-
previous.shift();
|
|
12918
|
-
}
|
|
12919
|
-
function redactCodeLiterals({ source, policy }, { jsx = true } = {}) {
|
|
12920
|
-
const parts = [];
|
|
12921
|
-
let redactions = 0;
|
|
12922
|
-
const tokens = jsx ? (0, import_js_tokens.default)(source, { jsx: true }) : (0, import_js_tokens.default)(source);
|
|
12923
|
-
const previous = [];
|
|
12924
|
-
for (const token of tokens) {
|
|
12925
|
-
const adjacentSecret = /^(StringLiteral|NoSubstitutionTemplate|TemplateHead)$/.test(token.type) && hasSecretLiteralContext({ previous });
|
|
12926
|
-
rememberSignificantCodeToken({ previous, token });
|
|
12927
|
-
const span = codeTokenSpan({ token });
|
|
12928
|
-
if (!span) {
|
|
12929
|
-
parts.push(token.value);
|
|
12930
|
-
continue;
|
|
12931
|
-
}
|
|
12932
|
-
const { start, end, literal } = span;
|
|
12933
|
-
const content = token.value.slice(start, end);
|
|
12934
|
-
const classified = literal ? decodeStaticLiteral({ content }) : content;
|
|
12935
|
-
const result = redactCodeTokenContent({ content: classified, literal, adjacentSecret, policy });
|
|
12936
|
-
redactions += result.redactions;
|
|
12937
|
-
parts.push(token.value.slice(0, start), renderRedactedLiteral({ content, classified, result }), token.value.slice(end));
|
|
12938
|
-
}
|
|
12939
|
-
return { text: parts.join(""), redactions };
|
|
12940
|
-
}
|
|
12941
|
-
var CONTEXT_RULE_KINDS = /* @__PURE__ */ new Set(["auth_header", "url_credentials", "bearer_token", "labeled_secret"]);
|
|
12942
|
-
function redactSecretShapes({ text, policy }) {
|
|
12943
|
-
if (text.length === 0)
|
|
12944
|
-
return { text, redactions: 0 };
|
|
12945
|
-
if (policy.vendorOnly) {
|
|
12946
|
-
const vendorRules = REDACTION_RULES.filter((rule) => !CONTEXT_RULE_KINDS.has(rule.kind));
|
|
12947
|
-
return applyRedactionRules({ text, rules: [...vendorRules, ...CODE_VENDOR_RULES, ...policy.additionalRules ?? []] });
|
|
12948
|
-
}
|
|
12949
|
-
if (policy.codeAware) {
|
|
12950
|
-
const jsx = redactCodeLiterals({ source: text, policy });
|
|
12951
|
-
const plain = redactCodeLiterals({ source: jsx.text, policy }, { jsx: false });
|
|
12952
|
-
return { text: plain.text, redactions: jsx.redactions + plain.redactions };
|
|
12953
|
-
}
|
|
12954
|
-
const applicationRuleSlot = REDACTION_RULES.findIndex((rule) => rule.kind === "bearer_token");
|
|
12955
|
-
const rules = [
|
|
12956
|
-
...REDACTION_RULES.slice(0, applicationRuleSlot),
|
|
12957
|
-
...policy.additionalRules ?? [],
|
|
12958
|
-
...REDACTION_RULES.slice(applicationRuleSlot)
|
|
12959
|
-
];
|
|
12960
|
-
return applyRedactionRules({ text, rules });
|
|
12961
|
-
}
|
|
12962
|
-
|
|
12963
|
-
// ../diagnostics/dist/observability/otel.js
|
|
12964
|
-
function fallbackErrorLabel(error2) {
|
|
12965
|
-
return error2 instanceof Error ? String(error2.name) : typeof error2;
|
|
12966
|
-
}
|
|
12967
|
-
function errorType(error2) {
|
|
12968
|
-
const code = error2?.code;
|
|
12969
|
-
const label = typeof code === "string" && /^[A-Z][A-Z0-9_]{1,63}$/.test(code) ? code : fallbackErrorLabel(error2);
|
|
12970
|
-
return redactLabel(label).slice(0, MAX_ERROR_TYPE) || "Error";
|
|
12971
|
-
}
|
|
12972
|
-
var MAX_ERROR_TYPE = 64;
|
|
12973
|
-
var MAX_ATTRIBUTE_TEXT = 256;
|
|
12974
|
-
var MAX_ATTRIBUTES = 64;
|
|
12975
|
-
var ATTRIBUTE_KEY = /^[a-zA-Z][a-zA-Z0-9_.-]{0,63}$/;
|
|
12976
|
-
function redactLabel(text) {
|
|
12977
|
-
return redactSecretShapes({ text, policy: {} }).text;
|
|
12978
|
-
}
|
|
12979
|
-
function redactOperationAttributes({ attributes }) {
|
|
12980
|
-
const safe = {};
|
|
12981
|
-
const names = Object.keys(attributes).filter((name) => ATTRIBUTE_KEY.test(name) && redactLabel(name) === name);
|
|
12982
|
-
for (const name of names.slice(0, MAX_ATTRIBUTES)) {
|
|
12983
|
-
const value = attributes[name];
|
|
12984
|
-
safe[name] = typeof value === "string" ? redactLabel(value).slice(0, MAX_ATTRIBUTE_TEXT) : value;
|
|
12985
|
-
}
|
|
12986
|
-
return safe;
|
|
12987
|
-
}
|
|
12988
|
-
|
|
12989
|
-
// ../diagnostics/dist/observability/errors.js
|
|
12990
|
-
var MAX_MESSAGE = 1024;
|
|
12991
|
-
var MAX_STACK_LINES = 30;
|
|
12992
|
-
function redact(text) {
|
|
12993
|
-
return redactSecretShapes({ text, policy: {} }).text;
|
|
12994
|
-
}
|
|
12995
|
-
function rawMessage({ error: error2, type }) {
|
|
12996
|
-
if (error2 instanceof Error)
|
|
12997
|
-
return error2.message;
|
|
12998
|
-
return typeof error2 === "string" ? error2 : type;
|
|
12999
|
-
}
|
|
13000
|
-
function describeReportedError({ error: error2 }, _options = {}) {
|
|
13001
|
-
const type = errorType(error2);
|
|
13002
|
-
const raw = rawMessage({ error: error2, type });
|
|
13003
|
-
const stack = error2 instanceof Error && typeof error2.stack === "string" ? redact(error2.stack).split("\n").slice(0, MAX_STACK_LINES).join("\n") : void 0;
|
|
13004
|
-
return { type, message: redact(raw).slice(0, MAX_MESSAGE), ...stack ? { stack } : {} };
|
|
13005
|
-
}
|
|
13006
|
-
|
|
13007
|
-
// ../diagnostics/dist/observability/delivery.js
|
|
13008
|
-
var ERROR_CLASSES = /* @__PURE__ */ new Set(["Error", "TypeError", "RangeError", "TimeoutError", "AbortError", "OTLPExporterError", "PluginProviderError"]);
|
|
13009
|
-
function httpStatus(value) {
|
|
13010
|
-
if (typeof value !== "number" || !Number.isInteger(value))
|
|
13011
|
-
return void 0;
|
|
13012
|
-
return value >= 100 && value <= 599 ? value : void 0;
|
|
13013
|
-
}
|
|
13014
|
-
function describeTelemetryFailure({ error: error2 }, _options = {}) {
|
|
13015
|
-
if (typeof error2 !== "object" || error2 === null)
|
|
13016
|
-
return { errorClass: "Error" };
|
|
13017
|
-
try {
|
|
13018
|
-
const value = error2;
|
|
13019
|
-
const errorClass = typeof value.name === "string" && ERROR_CLASSES.has(value.name) ? value.name : "Error";
|
|
13020
|
-
const statusCode = httpStatus(value.statusCode ?? value.status ?? value.code);
|
|
13021
|
-
return { errorClass, ...statusCode === void 0 ? {} : { statusCode } };
|
|
13022
|
-
} catch {
|
|
13023
|
-
return { errorClass: "Error" };
|
|
12042
|
+
var NOOP_PORT = Object.freeze({
|
|
12043
|
+
supportsMetric: false,
|
|
12044
|
+
activeTraceIds: () => void 0,
|
|
12045
|
+
trackRequest: () => NOOP_TRACKER,
|
|
12046
|
+
trackDbQuery: () => NOOP_SIGNAL_TRACKER,
|
|
12047
|
+
trackOutboundCall: () => NOOP_SIGNAL_TRACKER,
|
|
12048
|
+
trackAgentRun: () => NOOP_SIGNAL_TRACKER,
|
|
12049
|
+
trackOperation: () => NOOP_SIGNAL_TRACKER,
|
|
12050
|
+
reportError: () => false,
|
|
12051
|
+
metric: () => {
|
|
13024
12052
|
}
|
|
12053
|
+
});
|
|
12054
|
+
function createNoopObservabilityPort(_required) {
|
|
12055
|
+
return NOOP_PORT;
|
|
13025
12056
|
}
|
|
13026
12057
|
|
|
13027
12058
|
// src/telemetry-reporter.ts
|
|
13028
|
-
function createProviderTelemetryReporter({ endpoint }, optional = {}) {
|
|
12059
|
+
function createProviderTelemetryReporter({ endpoint, describeTelemetryFailure }, optional = {}) {
|
|
13029
12060
|
const host = URL.canParse(endpoint) ? new URL(endpoint).hostname : "invalid-endpoint";
|
|
13030
12061
|
return {
|
|
13031
12062
|
initialized({ message }, _options = {}) {
|
|
@@ -13053,7 +12084,7 @@ function trimTrailingSlashes(text) {
|
|
|
13053
12084
|
// src/observability-sentry/sentry.ts
|
|
13054
12085
|
var SPAN_STATUS_OK2 = 1;
|
|
13055
12086
|
var SPAN_STATUS_ERROR = 2;
|
|
13056
|
-
function sanitizedError(error2) {
|
|
12087
|
+
function sanitizedError({ error: error2, describeReportedError }) {
|
|
13057
12088
|
const { type, message, stack } = describeReportedError({ error: error2 });
|
|
13058
12089
|
const sanitized = new Error(message);
|
|
13059
12090
|
sanitized.name = type;
|
|
@@ -13087,26 +12118,11 @@ function minidumpEndpoint({ dsn }, _options = {}) {
|
|
|
13087
12118
|
return void 0;
|
|
13088
12119
|
}
|
|
13089
12120
|
}
|
|
13090
|
-
function createSentryObservabilityAdapter({ config }, options = {}) {
|
|
12121
|
+
function createSentryObservabilityAdapter({ config, context: helpers }, options = {}) {
|
|
13091
12122
|
const exportEnabled = options.exportEnabled === true;
|
|
13092
12123
|
const owned = options.client === void 0;
|
|
13093
|
-
const reporter = createProviderTelemetryReporter({ endpoint: config.dsn }, options);
|
|
13094
|
-
const transport = (
|
|
13095
|
-
const inner = (options.transport ?? makeNodeTransport)(input);
|
|
13096
|
-
return { ...inner, async send(envelope) {
|
|
13097
|
-
if (options.signal?.aborted) return { statusCode: 200 };
|
|
13098
|
-
try {
|
|
13099
|
-
const result = await inner.send(envelope);
|
|
13100
|
-
const statusCode = result.statusCode;
|
|
13101
|
-
const ok2 = statusCode !== void 0 && statusCode >= 200 && statusCode < 300;
|
|
13102
|
-
reporter.result({ phase: "export", outcome: ok2 ? "ok" : "failed", error: { statusCode } });
|
|
13103
|
-
return result;
|
|
13104
|
-
} catch (error2) {
|
|
13105
|
-
reporter.result({ phase: "export", outcome: "failed", error: error2 });
|
|
13106
|
-
throw error2;
|
|
13107
|
-
}
|
|
13108
|
-
} };
|
|
13109
|
-
};
|
|
12124
|
+
const reporter = createProviderTelemetryReporter({ endpoint: config.dsn, describeTelemetryFailure: helpers.describeTelemetryFailure }, options);
|
|
12125
|
+
const transport = createSentryTransport(options, reporter);
|
|
13110
12126
|
const client = options.client ?? privateClient({ config }, { transport, exportEnabled });
|
|
13111
12127
|
const submitURL = exportEnabled ? minidumpEndpoint({ dsn: config.dsn }) : void 0;
|
|
13112
12128
|
const active = new AsyncLocalStorage3();
|
|
@@ -13121,29 +12137,13 @@ function createSentryObservabilityAdapter({ config }, options = {}) {
|
|
|
13121
12137
|
...submitURL ? { crashUpload({ release, environment }, _options = {}) {
|
|
13122
12138
|
return { submitURL, globalExtra: { sentry: JSON.stringify({ release, environment }) } };
|
|
13123
12139
|
} } : {},
|
|
13124
|
-
trackOperation({
|
|
13125
|
-
if (!exportEnabled) return createNoopObservabilityPort({}).trackOperation({ name, attributes });
|
|
13126
|
-
const parentSpan = active.getStore();
|
|
13127
|
-
const safe = redactOperationAttributes({ attributes });
|
|
13128
|
-
const span = inClient(() => parentSpan ? startInactiveSpan({ name, op: name, attributes: safe, parentSpan }) : startNewTrace(() => startInactiveSpan({ name, op: name, attributes: safe, forceTransaction: true })));
|
|
13129
|
-
let ended = false;
|
|
13130
|
-
return {
|
|
13131
|
-
run: (fn) => active.run(span, fn),
|
|
13132
|
-
end({ outcome, failed, attributes: settled = {} }) {
|
|
13133
|
-
if (ended) return;
|
|
13134
|
-
ended = true;
|
|
13135
|
-
span.setAttributes(redactOperationAttributes({ attributes: { ...settled, "operation.outcome": outcome } }));
|
|
13136
|
-
span.setStatus(failed ? { code: SPAN_STATUS_ERROR, message: outcome } : { code: SPAN_STATUS_OK2 });
|
|
13137
|
-
span.end();
|
|
13138
|
-
}
|
|
13139
|
-
};
|
|
13140
|
-
},
|
|
12140
|
+
trackOperation: createSentryOperationTracker({ exportEnabled, active, helpers }, inClient),
|
|
13141
12141
|
reportError({ error: error2, context: context2 }) {
|
|
13142
12142
|
if (!exportEnabled && !owned) return void 0;
|
|
13143
12143
|
try {
|
|
13144
12144
|
const span = active.getStore();
|
|
13145
|
-
const capture = () => captureException(sanitizedError(error2), { ...context2.level ? { level: context2.level } : {}, tags: { operation: context2.operation }, contexts: {
|
|
13146
|
-
operation: redactOperationAttributes({ attributes: context2.attributes ?? {} }),
|
|
12145
|
+
const capture = () => captureException(sanitizedError({ error: error2, describeReportedError: helpers.describeReportedError }), { ...context2.level ? { level: context2.level } : {}, tags: { operation: context2.operation }, contexts: {
|
|
12146
|
+
operation: helpers.redactOperationAttributes({ attributes: context2.attributes ?? {} }),
|
|
13147
12147
|
...context2.trace ? { otel: { trace_id: context2.trace.traceId, span_id: context2.trace.spanId } } : {}
|
|
13148
12148
|
} });
|
|
13149
12149
|
inClient(() => span ? withActiveSpan(span, capture) : capture());
|
|
@@ -13165,6 +12165,46 @@ function createSentryObservabilityAdapter({ config }, options = {}) {
|
|
|
13165
12165
|
}
|
|
13166
12166
|
};
|
|
13167
12167
|
}
|
|
12168
|
+
function createSentryOperationTracker({ exportEnabled, active, helpers }, inClient) {
|
|
12169
|
+
const operation = {
|
|
12170
|
+
trackOperation({ name, attributes = {} }) {
|
|
12171
|
+
if (!exportEnabled) return createNoopObservabilityPort({}).trackOperation({ name, attributes });
|
|
12172
|
+
const parentSpan = active.getStore();
|
|
12173
|
+
const safe = helpers.redactOperationAttributes({ attributes });
|
|
12174
|
+
const span = inClient(() => parentSpan ? startInactiveSpan({ name, op: name, attributes: safe, parentSpan }) : startNewTrace(() => startInactiveSpan({ name, op: name, attributes: safe, forceTransaction: true })));
|
|
12175
|
+
let ended = false;
|
|
12176
|
+
return {
|
|
12177
|
+
run: (fn) => active.run(span, fn),
|
|
12178
|
+
end({ outcome, failed, attributes: settled = {} }) {
|
|
12179
|
+
if (ended) return;
|
|
12180
|
+
ended = true;
|
|
12181
|
+
span.setAttributes(helpers.redactOperationAttributes({ attributes: { ...settled, "operation.outcome": outcome } }));
|
|
12182
|
+
span.setStatus(failed ? { code: SPAN_STATUS_ERROR, message: outcome } : { code: SPAN_STATUS_OK2 });
|
|
12183
|
+
span.end();
|
|
12184
|
+
}
|
|
12185
|
+
};
|
|
12186
|
+
}
|
|
12187
|
+
};
|
|
12188
|
+
return operation.trackOperation;
|
|
12189
|
+
}
|
|
12190
|
+
function createSentryTransport(options, reporter) {
|
|
12191
|
+
return (input) => {
|
|
12192
|
+
const inner = (options.transport ?? makeNodeTransport)(input);
|
|
12193
|
+
return { ...inner, async send(envelope) {
|
|
12194
|
+
if (options.signal?.aborted) return { statusCode: 200 };
|
|
12195
|
+
try {
|
|
12196
|
+
const result = await inner.send(envelope);
|
|
12197
|
+
const statusCode = result.statusCode;
|
|
12198
|
+
const ok2 = statusCode !== void 0 && statusCode >= 200 && statusCode < 300;
|
|
12199
|
+
reporter.result({ phase: "export", outcome: ok2 ? "ok" : "failed", error: { statusCode } });
|
|
12200
|
+
return result;
|
|
12201
|
+
} catch (error2) {
|
|
12202
|
+
reporter.result({ phase: "export", outcome: "failed", error: error2 });
|
|
12203
|
+
throw error2;
|
|
12204
|
+
}
|
|
12205
|
+
} };
|
|
12206
|
+
};
|
|
12207
|
+
}
|
|
13168
12208
|
|
|
13169
12209
|
// src/observability-sentry/index.ts
|
|
13170
12210
|
function releaseInput({ release }, _options = {}) {
|
|
@@ -13180,7 +12220,7 @@ function createSentryProvider(required, optional = {}) {
|
|
|
13180
12220
|
const tags = attributionOf(required.attribution).attributes;
|
|
13181
12221
|
const resolvedEnvironment = environment || tags["deployment.environment"];
|
|
13182
12222
|
const config = { enabled: true, dsn: dsn.trim(), tracesSampleRate: sampleRate, tags, ...releaseInput(required), ...resolvedEnvironment ? { environment: resolvedEnvironment } : {} };
|
|
13183
|
-
const { port, dispose } = createSentryObservabilityAdapter({ config }, optional);
|
|
12223
|
+
const { port, dispose } = createSentryObservabilityAdapter({ config, context: readSentryContext({ context: optional.context }) }, optional);
|
|
13184
12224
|
return { port, dispose: (_required, _optional = {}) => dispose() };
|
|
13185
12225
|
}
|
|
13186
12226
|
function validatedSampleRate({ tracesSampleRate }, _options = {}) {
|