@unbrained/pm-cli 2026.11.16 → 2026.11.18
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/.claude-plugin/marketplace.json +1 -1
- package/dist/cli/main.js +2 -2
- package/dist/cli/register-mutation.js +3 -2
- package/dist/cli/runtime/invocation-rewrites.js +2 -0
- package/dist/cli-bundle/bundle-manifest.json +1 -1
- package/dist/cli-bundle/chunks/chunk-2VH6COJE.js +125 -0
- package/dist/cli-bundle/chunks/{chunk-NHNM3GIP.js → chunk-5OFMWP3Q.js} +3 -3
- package/dist/cli-bundle/chunks/chunk-7ETRLLK3.js +31 -0
- package/dist/cli-bundle/chunks/chunk-7LCJA54R.js +2 -0
- package/dist/cli-bundle/chunks/chunk-7UUPLMCU.js +115 -0
- package/dist/cli-bundle/chunks/chunk-AGU7632B.js +3 -0
- package/dist/cli-bundle/chunks/{chunk-J257NZRD.js → chunk-CGTVDSAR.js} +11 -11
- package/dist/cli-bundle/chunks/chunk-CR5GC3VO.js +9 -0
- package/dist/cli-bundle/chunks/{chunk-KGOGLKL2.js → chunk-FJQCORYR.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-H64BNM4A.js +8 -0
- package/dist/cli-bundle/chunks/{chunk-2D26HRXB.js → chunk-HQYIKAC6.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-JBPXNG6P.js +2 -0
- package/dist/cli-bundle/chunks/{chunk-4I7YG3VZ.js → chunk-L2ZLH3LZ.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-LGWP5D7V.js +2 -0
- package/dist/cli-bundle/chunks/{chunk-I3T2FVUA.js → chunk-MUGGRKK3.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-FZ4XWWLO.js → chunk-OD2I3SFQ.js} +43 -43
- package/dist/cli-bundle/chunks/chunk-QK7RAN7R.js +2 -0
- package/dist/cli-bundle/chunks/{chunk-2WNORBVN.js → chunk-S3RMFLEG.js} +83 -83
- package/dist/cli-bundle/chunks/chunk-SSZBVRIN.js +6 -0
- package/dist/cli-bundle/chunks/chunk-T3E3WNHO.js +2 -0
- package/dist/cli-bundle/chunks/{chunk-DZWRNL6R.js → chunk-TA5VN4ME.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-TS2CZE3O.js +2 -0
- package/dist/cli-bundle/chunks/{chunk-F7P42FL5.js → chunk-VETSGCF4.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-VJLZHOTP.js → chunk-WKHS4QC6.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-XDIJK6VW.js +8 -0
- package/dist/cli-bundle/chunks/{chunk-NYN5OR2T.js → chunk-Y4LXVPA5.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-YJI2Y5N6.js +2 -0
- package/dist/cli-bundle/chunks/{indexed-receipt-blobs-HNLN6UXH.js → indexed-receipt-blobs-ELEMA7IW.js} +2 -2
- package/dist/cli-bundle/chunks/{item-revision-PSOL5I4H.js → item-revision-BV5BUBCR.js} +2 -2
- package/dist/cli-bundle/chunks/item-transaction-E2ST3A3X.js +2 -0
- package/dist/cli-bundle/chunks/{mutation-actor-BDBBH3ZS.js → mutation-actor-DDYJW5B4.js} +2 -2
- package/dist/cli-bundle/chunks/mutation-admission-5AWMXMCB.js +2 -0
- package/dist/cli-bundle/chunks/{register-list-query-AESCVO6H.js → register-list-query-RJT7YBRF.js} +2 -2
- package/dist/cli-bundle/chunks/register-mutation-6KTMJGYF.js +21 -0
- package/dist/cli-bundle/chunks/register-operations-W24TA3HZ.js +2 -0
- package/dist/cli-bundle/chunks/register-setup-QK67WUX6.js +2 -0
- package/dist/cli-bundle/chunks/{settlement-hook-MVVVUIVZ.js → settlement-hook-E5LHZ4RD.js} +2 -2
- package/dist/cli-bundle/chunks/{stage-RMU3JAWM.js → stage-XGWW3T64.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-3H3SVHAT.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-DFBHW7HP.js → chunk-5JVB42Z7.js} +3 -3
- package/dist/cli-bundle/focused-chunks/{chunk-ONM2R32I.js → chunk-6OZ7BKWJ.js} +54 -54
- package/dist/cli-bundle/focused-chunks/{chunk-HHMMIHZP.js → chunk-7RF2YPZ5.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-7Z2NYAK4.js +2 -0
- package/dist/cli-bundle/focused-chunks/chunk-A2CLYPDA.js +102 -0
- package/dist/cli-bundle/focused-chunks/{chunk-7SEPCQV2.js → chunk-DH4DHL6V.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-UBBTBNUY.js → chunk-DWCFZVT2.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-DZMP3VYQ.js → chunk-EO4XM3XJ.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-EZXLY6S4.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-KRNF3WTC.js → chunk-FPPYE6CY.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-HO2YUD4P.js +91 -0
- package/dist/cli-bundle/focused-chunks/{chunk-BEHIMEV2.js → chunk-ICEHI4SN.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-IGMFXB5W.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-PDXSMSO5.js → chunk-IXYBN6D2.js} +3 -3
- package/dist/cli-bundle/focused-chunks/{chunk-PEL4SQXV.js → chunk-LZR3JKYT.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-MTBC32ZR.js +8 -0
- package/dist/cli-bundle/focused-chunks/chunk-OAIAZHRG.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-SFATIM77.js → chunk-ONHUG7IL.js} +9 -9
- package/dist/cli-bundle/focused-chunks/chunk-OPY43DNJ.js +2 -0
- package/dist/cli-bundle/focused-chunks/chunk-PNCCTZKI.js +44 -0
- package/dist/cli-bundle/focused-chunks/chunk-T3NMYMW4.js +27 -0
- package/dist/cli-bundle/focused-chunks/chunk-XS2YZCT5.js +2 -0
- package/dist/cli-bundle/focused-chunks/chunk-ZFUZ4YYN.js +8 -0
- package/dist/cli-bundle/focused-chunks/{indexed-receipt-blobs-ADMQXF3N.js → indexed-receipt-blobs-ZTRFCPH7.js} +2 -2
- package/dist/cli-bundle/focused-chunks/item-revision-NS2V4WON.js +2 -0
- package/dist/cli-bundle/focused-chunks/item-transaction-NENC4HYI.js +2 -0
- package/dist/cli-bundle/focused-chunks/mutation-actor-2SVBO324.js +2 -0
- package/dist/cli-bundle/focused-chunks/mutation-admission-DZIBDJAE.js +2 -0
- package/dist/cli-bundle/focused-chunks/{settlement-hook-5U2M75BY.js → settlement-hook-OUBUN45C.js} +2 -2
- package/dist/cli-bundle/focused-chunks/stage-LVAGKCEE.js +2 -0
- package/dist/cli-bundle/main.js +27 -27
- package/dist/cli-bundle/sdk-authoring.js +1 -1
- package/dist/cli-bundle/sdk-contracts.js +2 -2
- package/dist/cli-bundle/sdk-core.js +1 -1
- package/dist/cli-bundle/sdk-governance.js +1 -1
- package/dist/cli-bundle/sdk-graph.js +1 -1
- package/dist/cli-bundle/sdk-merge.js +58 -58
- package/dist/cli-bundle/sdk-query.js +1 -1
- package/dist/cli-bundle/sdk-runtime.js +1 -1
- package/dist/cli-bundle/sdk-testing.js +1 -1
- package/dist/cli-bundle/sdk.js +4 -4
- package/dist/core/extensions/extension-hook-runtime.d.ts +14 -2
- package/dist/core/extensions/extension-hook-runtime.js +1 -1
- package/dist/core/extensions/extension-types.d.ts +14 -0
- package/dist/core/extensions/extension-types.js +1 -1
- package/dist/core/extensions/index.d.ts +1 -1
- package/dist/core/extensions/index.js +1 -1
- package/dist/core/fs/file-glob.js +2 -0
- package/dist/core/policy/workflow-policy-store.js +1 -1
- package/dist/core/shared/secret-rules.d.ts +83 -4
- package/dist/core/shared/secret-rules.js +5 -4
- package/dist/core/store/item-mutation-precondition.d.ts +32 -1
- package/dist/core/store/item-mutation-precondition.js +1 -1
- package/dist/core/store/item-store.js +1 -1
- package/dist/core/store/transaction-coordinator-scope.js +2 -0
- package/dist/sdk/authoring.d.ts +1 -1
- package/dist/sdk/authoring.js +1 -1
- package/dist/sdk/cli-bootstrap.js +1 -1
- package/dist/sdk/item-transaction.js +1 -1
- package/dist/sdk/lifecycle/copy.js +1 -1
- package/dist/sdk/lifecycle/create.js +1 -1
- package/dist/sdk/lifecycle/restore.js +1 -1
- package/dist/sdk/linked-artifacts.js +2 -2
- package/dist/sdk/mutation-guard.d.ts +25 -4
- package/dist/sdk/mutation-guard.js +1 -1
- package/dist/sdk/package-import-adapters.d.ts +14 -1
- package/dist/sdk/package-import-adapters.js +1 -1
- package/dist/sdk/public-surface.json +1 -1
- package/dist/sdk/testing.d.ts +21 -3
- package/dist/sdk/testing.js +2 -2
- package/dist/sdk/workspace-transaction.js +2 -2
- package/docs/COMMANDS.md +33 -0
- package/docs/DEFECT_RECURRENCE.md +3 -2
- package/docs/EXTENSIONS.md +1 -1
- package/docs/MIGRATION_CLI_SIMPLIFICATION.md +1 -1
- package/docs/MUTATION_INTEGRITY.md +187 -7
- package/docs/SDK.md +40 -3
- package/docs/WORKFLOW_POLICIES.md +23 -0
- package/marketplace.json +1 -1
- package/node_modules/@opentelemetry/core/build/esm/version.d.ts +1 -1
- package/node_modules/@opentelemetry/core/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/core/build/esnext/version.d.ts +1 -1
- package/node_modules/@opentelemetry/core/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/core/build/src/version.d.ts +1 -1
- package/node_modules/@opentelemetry/core/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/core/package.json +2 -2
- package/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/execAsync.d.ts +1 -0
- package/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/execAsync.js +1 -0
- package/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-bsd.js +3 -2
- package/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-darwin.js +3 -2
- package/node_modules/@opentelemetry/resources/build/esm/version.d.ts +1 -1
- package/node_modules/@opentelemetry/resources/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/node/machine-id/execAsync.d.ts +1 -0
- package/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/node/machine-id/execAsync.js +1 -0
- package/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/node/machine-id/getMachineId-bsd.js +3 -2
- package/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/node/machine-id/getMachineId-darwin.js +3 -2
- package/node_modules/@opentelemetry/resources/build/esnext/version.d.ts +1 -1
- package/node_modules/@opentelemetry/resources/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/execAsync.d.ts +1 -0
- package/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/execAsync.js +2 -1
- package/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-bsd.js +2 -1
- package/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-darwin.js +2 -1
- package/node_modules/@opentelemetry/resources/build/src/version.d.ts +1 -1
- package/node_modules/@opentelemetry/resources/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/resources/package.json +3 -3
- package/node_modules/@opentelemetry/sdk-trace/build/esm/version.d.ts +1 -1
- package/node_modules/@opentelemetry/sdk-trace/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace/build/esnext/version.d.ts +1 -1
- package/node_modules/@opentelemetry/sdk-trace/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace/build/src/version.d.ts +1 -1
- package/node_modules/@opentelemetry/sdk-trace/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace/package.json +5 -5
- package/node_modules/@opentelemetry/sdk-trace-base/build/esm/version.d.ts +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/version.d.ts +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/src/version.d.ts +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/package.json +7 -7
- package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_attributes.cjs +18202 -0
- package/node_modules/@opentelemetry/semantic-conventions/{build/src/experimental_attributes.js → dist/experimental_attributes.d.cts} +3328 -1993
- package/node_modules/@opentelemetry/semantic-conventions/{build/esnext/experimental_attributes.js → dist/experimental_attributes.d.mts} +3328 -1935
- package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_attributes.mjs +16385 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_events.cjs +325 -0
- package/node_modules/@opentelemetry/semantic-conventions/{build/esnext/experimental_events.js → dist/experimental_events.d.cts} +37 -41
- package/node_modules/@opentelemetry/semantic-conventions/{build/esm/experimental_events.js → dist/experimental_events.d.mts} +37 -41
- package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_events.mjs +295 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_metrics.cjs +4929 -0
- package/node_modules/@opentelemetry/semantic-conventions/{build/esnext/experimental_metrics.js → dist/experimental_metrics.d.cts} +955 -597
- package/node_modules/@opentelemetry/semantic-conventions/{build/esm/experimental_metrics.js → dist/experimental_metrics.d.mts} +955 -597
- package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_metrics.mjs +4419 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/index-incubating.cjs +2619 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/index-incubating.d.cts +7 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/index-incubating.d.mts +7 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/index-incubating.mjs +7 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/index.cjs +670 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/index.d.cts +6 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/index.d.mts +6 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/index.mjs +6 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/internal/utils.cjs +20 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/internal/utils.mjs +20 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/resource/SemanticResourceAttributes.cjs +1326 -0
- package/node_modules/@opentelemetry/semantic-conventions/{build/esnext/resource/SemanticResourceAttributes.d.ts → dist/resource/SemanticResourceAttributes.d.cts} +600 -597
- package/node_modules/@opentelemetry/semantic-conventions/{build/src/resource/SemanticResourceAttributes.d.ts → dist/resource/SemanticResourceAttributes.d.mts} +600 -597
- package/node_modules/@opentelemetry/semantic-conventions/dist/resource/SemanticResourceAttributes.mjs +1188 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/stable_attributes.cjs +2038 -0
- package/node_modules/@opentelemetry/semantic-conventions/{build/esm/stable_attributes.js → dist/stable_attributes.d.cts} +327 -220
- package/node_modules/@opentelemetry/semantic-conventions/{build/esnext/stable_attributes.js → dist/stable_attributes.d.mts} +327 -220
- package/node_modules/@opentelemetry/semantic-conventions/dist/stable_attributes.mjs +1841 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/stable_events.cjs +9 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/stable_events.d.cts +8 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/stable_events.d.mts +8 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/stable_events.mjs +9 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/stable_metrics.cjs +378 -0
- package/node_modules/@opentelemetry/semantic-conventions/{build/src/stable_metrics.js → dist/stable_metrics.d.cts} +69 -63
- package/node_modules/@opentelemetry/semantic-conventions/{build/esm/stable_metrics.js → dist/stable_metrics.d.mts} +69 -59
- package/node_modules/@opentelemetry/semantic-conventions/dist/stable_metrics.mjs +326 -0
- package/node_modules/@opentelemetry/semantic-conventions/dist/trace/SemanticAttributes.cjs +2508 -0
- package/node_modules/@opentelemetry/semantic-conventions/{build/esnext/trace/SemanticAttributes.d.ts → dist/trace/SemanticAttributes.d.cts} +1097 -1094
- package/node_modules/@opentelemetry/semantic-conventions/{build/src/trace/SemanticAttributes.d.ts → dist/trace/SemanticAttributes.d.mts} +1097 -1094
- package/node_modules/@opentelemetry/semantic-conventions/dist/trace/SemanticAttributes.mjs +2236 -0
- package/node_modules/@opentelemetry/semantic-conventions/package.json +27 -42
- package/node_modules/@sentry/core/build/cjs/client.js +14 -5
- package/node_modules/@sentry/core/build/cjs/integrations/express/patch-layer.js +15 -1
- package/node_modules/@sentry/core/build/cjs/integrations/http/client-subscriptions.js +10 -1
- package/node_modules/@sentry/core/build/cjs/scope.js +0 -1
- package/node_modules/@sentry/core/build/cjs/tracing/openai/utils.js +1 -7
- package/node_modules/@sentry/core/build/cjs/tracing/sentrySpan.js +11 -0
- package/node_modules/@sentry/core/build/cjs/utils/envelope.js +1 -1
- package/node_modules/@sentry/core/build/cjs/utils/sql.js +1 -1
- package/node_modules/@sentry/core/build/cjs/utils/tunnel.js +9 -0
- package/node_modules/@sentry/core/build/cjs/utils/version.js +1 -1
- package/node_modules/@sentry/core/build/esm/client.js +14 -5
- package/node_modules/@sentry/core/build/esm/integrations/express/patch-layer.js +15 -1
- package/node_modules/@sentry/core/build/esm/integrations/http/client-subscriptions.js +10 -1
- package/node_modules/@sentry/core/build/esm/package.json +1 -1
- package/node_modules/@sentry/core/build/esm/scope.js +0 -1
- package/node_modules/@sentry/core/build/esm/tracing/openai/utils.js +1 -7
- package/node_modules/@sentry/core/build/esm/tracing/sentrySpan.js +11 -0
- package/node_modules/@sentry/core/build/esm/utils/envelope.js +1 -1
- package/node_modules/@sentry/core/build/esm/utils/sql.js +1 -1
- package/node_modules/@sentry/core/build/esm/utils/tunnel.js +9 -1
- package/node_modules/@sentry/core/build/esm/utils/version.js +1 -1
- package/node_modules/@sentry/core/build/types/types/datacategory.d.ts +1 -1
- package/node_modules/@sentry/core/build/types/utils/tunnel.d.ts +1 -0
- package/node_modules/@sentry/core/build/types-ts3.8/types/datacategory.d.ts +1 -1
- package/node_modules/@sentry/core/build/types-ts3.8/utils/tunnel.d.ts +1 -0
- package/node_modules/@sentry/core/package.json +1 -1
- package/node_modules/@sentry/node/build/cjs/integrations/tracing/redis/index.js +1 -1
- package/node_modules/@sentry/node/build/esm/package.json +1 -1
- package/node_modules/@sentry/node/package.json +6 -6
- package/node_modules/@sentry/node-core/build/cjs/integrations/anr/index.js +1 -1
- package/node_modules/@sentry/node-core/build/cjs/integrations/contextlines.js +6 -4
- package/node_modules/@sentry/node-core/build/cjs/integrations/local-variables/local-variables-async.js +1 -1
- package/node_modules/@sentry/node-core/build/cjs/integrations/modules.js +21 -2
- package/node_modules/@sentry/node-core/build/cjs/integrations/node-fetch/undici-instrumentation.js +8 -0
- package/node_modules/@sentry/node-core/build/esm/integrations/anr/index.js +1 -1
- package/node_modules/@sentry/node-core/build/esm/integrations/anr/worker-script.js +2 -2
- package/node_modules/@sentry/node-core/build/esm/integrations/contextlines.js +7 -5
- package/node_modules/@sentry/node-core/build/esm/integrations/local-variables/local-variables-async.js +1 -1
- package/node_modules/@sentry/node-core/build/esm/integrations/local-variables/worker-script.js +1 -1
- package/node_modules/@sentry/node-core/build/esm/integrations/node-fetch/undici-instrumentation.js +8 -0
- package/node_modules/@sentry/node-core/build/esm/package.json +1 -1
- package/node_modules/@sentry/node-core/package.json +9 -9
- package/node_modules/@sentry/opentelemetry/build/esm/package.json +1 -1
- package/node_modules/@sentry/opentelemetry/package.json +6 -6
- package/node_modules/@sentry/server-utils/build/THIRD-PARTY-LICENSES.txt +32 -32
- package/node_modules/@sentry/server-utils/build/cjs/integrations/tracing-channel/express/instrumentation.js +12 -1
- package/node_modules/@sentry/server-utils/build/esm/integrations/tracing-channel/express/instrumentation.js +13 -2
- package/node_modules/@sentry/server-utils/build/esm/package.json +1 -1
- package/node_modules/@sentry/server-utils/build/types/integrations/tracing-channel/express/types.d.ts +1 -1
- package/node_modules/@sentry/server-utils/build/types-ts3.8/integrations/tracing-channel/express/types.d.ts +1 -1
- package/node_modules/@sentry/server-utils/package.json +2 -2
- package/node_modules/debug/package.json +1 -1
- package/node_modules/es-module-lexer/dist/lexer.asm.js +2 -2
- package/node_modules/es-module-lexer/dist/lexer.cjs +1 -1
- package/node_modules/es-module-lexer/dist/lexer.js +2 -2
- package/node_modules/es-module-lexer/dist/lexer.minimal.asm.js +2 -2
- package/node_modules/es-module-lexer/dist/lexer.minimal.cjs +1 -1
- package/node_modules/es-module-lexer/dist/lexer.minimal.js +2 -2
- package/node_modules/es-module-lexer/package.json +1 -1
- package/node_modules/import-in-the-middle/CHANGELOG.md +35 -0
- package/node_modules/import-in-the-middle/README.md +15 -1
- package/node_modules/import-in-the-middle/create-hook.mjs +370 -155
- package/node_modules/import-in-the-middle/index.d.ts +8 -2
- package/node_modules/import-in-the-middle/index.js +80 -53
- package/node_modules/import-in-the-middle/lib/get-esm-exports.mjs +37 -3
- package/node_modules/import-in-the-middle/lib/get-exports.mjs +33 -40
- package/node_modules/import-in-the-middle/lib/register.js +81 -16
- package/node_modules/import-in-the-middle/package.json +9 -5
- package/node_modules/supports-color/browser.js +21 -2
- package/node_modules/supports-color/index.js +41 -24
- package/node_modules/supports-color/license +1 -1
- package/node_modules/supports-color/package.json +11 -6
- package/node_modules/supports-color/readme.md +8 -7
- package/package.json +4 -6
- package/packages/pm-beads/package.json +1 -1
- package/packages/pm-calendar/package.json +1 -1
- package/packages/pm-command-kit/package.json +1 -1
- package/packages/pm-digital-twin/package.json +1 -1
- package/packages/pm-governance-audit/package.json +1 -1
- package/packages/pm-guide-shell/package.json +1 -1
- package/packages/pm-kanban/package.json +1 -1
- package/packages/pm-lifecycle-hooks/package.json +1 -1
- package/packages/pm-linked-test-adapters/package.json +1 -1
- package/packages/pm-search-advanced/package.json +1 -1
- package/packages/pm-templates/package.json +1 -1
- package/packages/pm-todos/package.json +1 -1
- package/packages/pm-vcs/package.json +1 -1
- package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
- package/plugins/pm-claude/package.json +1 -1
- package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
- package/plugins/pm-codex/package.json +1 -1
- package/plugins/pm-codex/plugin.json +1 -1
- package/runtime-dependencies.json +1 -1
- package/dist/cli-bundle/chunks/chunk-4WIVCOA7.js +0 -2
- package/dist/cli-bundle/chunks/chunk-A3WCP4TU.js +0 -6
- package/dist/cli-bundle/chunks/chunk-AB5S6TWE.js +0 -124
- package/dist/cli-bundle/chunks/chunk-BV7J3LRH.js +0 -114
- package/dist/cli-bundle/chunks/chunk-E4BQRZF2.js +0 -10
- package/dist/cli-bundle/chunks/chunk-ERD2RYWM.js +0 -31
- package/dist/cli-bundle/chunks/chunk-IGEBFNWE.js +0 -2
- package/dist/cli-bundle/chunks/chunk-IYICNCK2.js +0 -2
- package/dist/cli-bundle/chunks/chunk-JD3XWF66.js +0 -3
- package/dist/cli-bundle/chunks/chunk-JLHD7OQ2.js +0 -2
- package/dist/cli-bundle/chunks/chunk-LC4DJVXR.js +0 -2
- package/dist/cli-bundle/chunks/chunk-OFZQEQ6X.js +0 -2
- package/dist/cli-bundle/chunks/chunk-QGL5IAP4.js +0 -8
- package/dist/cli-bundle/chunks/chunk-R24NZ2TB.js +0 -8
- package/dist/cli-bundle/chunks/chunk-VO2HSB5F.js +0 -2
- package/dist/cli-bundle/chunks/item-transaction-55QTCU2M.js +0 -2
- package/dist/cli-bundle/chunks/mutation-admission-WUN7JYVJ.js +0 -2
- package/dist/cli-bundle/chunks/register-mutation-SKCEP5QU.js +0 -20
- package/dist/cli-bundle/chunks/register-operations-ZT4OYCF3.js +0 -2
- package/dist/cli-bundle/chunks/register-setup-JVWNS2TY.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-3WVMEA2A.js +0 -6
- package/dist/cli-bundle/focused-chunks/chunk-5UVJOAUP.js +0 -91
- package/dist/cli-bundle/focused-chunks/chunk-5WQ3LNUK.js +0 -78
- package/dist/cli-bundle/focused-chunks/chunk-6E4X7MQA.js +0 -26
- package/dist/cli-bundle/focused-chunks/chunk-7XHE335U.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-CZFZCSOX.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-HPC2M6JD.js +0 -6
- package/dist/cli-bundle/focused-chunks/chunk-HR5FEUUL.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-J7ESCE7M.js +0 -24
- package/dist/cli-bundle/focused-chunks/chunk-KWZLY35A.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-M4IA4LC6.js +0 -8
- package/dist/cli-bundle/focused-chunks/chunk-NASE6JC2.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-QJ647CQE.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-ZCN35TCK.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-ZSQ2FT22.js +0 -44
- package/dist/cli-bundle/focused-chunks/item-revision-GNKYO6GZ.js +0 -2
- package/dist/cli-bundle/focused-chunks/item-transaction-AUUQHR5Z.js +0 -2
- package/dist/cli-bundle/focused-chunks/mutation-actor-OBRD7HFZ.js +0 -2
- package/dist/cli-bundle/focused-chunks/mutation-admission-6TX3EOJX.js +0 -2
- package/dist/cli-bundle/focused-chunks/stage-LERF2YJU.js +0 -2
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_attributes.d.ts +0 -14984
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_attributes.js +0 -14991
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_events.d.ts +0 -291
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_metrics.d.ts +0 -4053
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/index-incubating.d.ts +0 -7
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/index-incubating.js +0 -13
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/index.d.ts +0 -6
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/index.js +0 -16
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/internal/utils.d.ts +0 -7
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/internal/utils.js +0 -23
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/SemanticResourceAttributes.d.ts +0 -1453
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/SemanticResourceAttributes.js +0 -1250
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/index.d.ts +0 -2
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/index.js +0 -10
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.d.ts +0 -1726
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_events.d.ts +0 -5
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_events.js +0 -12
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_metrics.d.ts +0 -308
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/SemanticAttributes.d.ts +0 -2664
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/SemanticAttributes.js +0 -2360
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/index.d.ts +0 -2
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/index.js +0 -10
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/version.d.ts +0 -2
- package/node_modules/@opentelemetry/semantic-conventions/build/esm/version.js +0 -7
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_attributes.d.ts +0 -14984
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_events.d.ts +0 -291
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_metrics.d.ts +0 -4053
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index-incubating.d.ts +0 -7
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index-incubating.js +0 -13
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index.d.ts +0 -6
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index.js +0 -16
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/internal/utils.d.ts +0 -7
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/internal/utils.js +0 -23
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/resource/SemanticResourceAttributes.js +0 -1250
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/resource/index.d.ts +0 -2
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/resource/index.js +0 -10
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_attributes.d.ts +0 -1726
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_events.d.ts +0 -5
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_events.js +0 -12
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_metrics.d.ts +0 -308
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_metrics.js +0 -315
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/trace/SemanticAttributes.js +0 -2360
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/trace/index.d.ts +0 -2
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/trace/index.js +0 -10
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/version.d.ts +0 -2
- package/node_modules/@opentelemetry/semantic-conventions/build/esnext/version.js +0 -7
- package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_attributes.d.ts +0 -14984
- package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_events.d.ts +0 -291
- package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_events.js +0 -301
- package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_metrics.d.ts +0 -4053
- package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_metrics.js +0 -4072
- package/node_modules/@opentelemetry/semantic-conventions/build/src/index-incubating.d.ts +0 -7
- package/node_modules/@opentelemetry/semantic-conventions/build/src/index-incubating.js +0 -29
- package/node_modules/@opentelemetry/semantic-conventions/build/src/index.d.ts +0 -6
- package/node_modules/@opentelemetry/semantic-conventions/build/src/index.js +0 -32
- package/node_modules/@opentelemetry/semantic-conventions/build/src/internal/utils.d.ts +0 -7
- package/node_modules/@opentelemetry/semantic-conventions/build/src/internal/utils.js +0 -27
- package/node_modules/@opentelemetry/semantic-conventions/build/src/resource/SemanticResourceAttributes.js +0 -1255
- package/node_modules/@opentelemetry/semantic-conventions/build/src/resource/index.d.ts +0 -2
- package/node_modules/@opentelemetry/semantic-conventions/build/src/resource/index.js +0 -26
- package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_attributes.d.ts +0 -1726
- package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_attributes.js +0 -1759
- package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_events.d.ts +0 -5
- package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_events.js +0 -15
- package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_metrics.d.ts +0 -308
- package/node_modules/@opentelemetry/semantic-conventions/build/src/trace/SemanticAttributes.js +0 -2368
- package/node_modules/@opentelemetry/semantic-conventions/build/src/trace/index.d.ts +0 -2
- package/node_modules/@opentelemetry/semantic-conventions/build/src/trace/index.js +0 -26
- package/node_modules/@opentelemetry/semantic-conventions/build/src/version.d.ts +0 -2
- package/node_modules/@opentelemetry/semantic-conventions/build/src/version.js +0 -10
- package/node_modules/fdir/LICENSE +0 -7
- package/node_modules/fdir/README.md +0 -91
- package/node_modules/fdir/dist/index.cjs +0 -588
- package/node_modules/fdir/dist/index.d.cts +0 -155
- package/node_modules/fdir/dist/index.d.mts +0 -155
- package/node_modules/fdir/dist/index.mjs +0 -570
- package/node_modules/fdir/package.json +0 -106
- package/node_modules/picomatch/LICENSE +0 -21
- package/node_modules/picomatch/README.md +0 -743
- package/node_modules/picomatch/index.js +0 -17
- package/node_modules/picomatch/lib/constants.js +0 -184
- package/node_modules/picomatch/lib/parse.js +0 -1425
- package/node_modules/picomatch/lib/picomatch.js +0 -361
- package/node_modules/picomatch/lib/scan.js +0 -403
- package/node_modules/picomatch/lib/utils.js +0 -72
- package/node_modules/picomatch/package.json +0 -83
- package/node_modules/picomatch/posix.js +0 -3
- package/node_modules/tinyglobby/LICENSE +0 -21
- package/node_modules/tinyglobby/README.md +0 -25
- package/node_modules/tinyglobby/dist/index.cjs +0 -335
- package/node_modules/tinyglobby/dist/index.d.cts +0 -148
- package/node_modules/tinyglobby/dist/index.d.mts +0 -148
- package/node_modules/tinyglobby/dist/index.mjs +0 -307
- package/node_modules/tinyglobby/package.json +0 -70
- /package/node_modules/import-in-the-middle/{register-hooks.d.ts → register-hooks.d.mts} +0 -0
|
@@ -1,361 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const scan = require('./scan');
|
|
4
|
-
const parse = require('./parse');
|
|
5
|
-
const utils = require('./utils');
|
|
6
|
-
const constants = require('./constants');
|
|
7
|
-
const isObject = val => val && typeof val === 'object' && !Array.isArray(val);
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Creates a matcher function from one or more glob patterns. The
|
|
11
|
-
* returned function takes a string to match as its first argument,
|
|
12
|
-
* and returns true if the string is a match. The returned matcher
|
|
13
|
-
* function also takes a boolean as the second argument that, when true,
|
|
14
|
-
* returns an object with additional information.
|
|
15
|
-
*
|
|
16
|
-
* ```js
|
|
17
|
-
* const picomatch = require('picomatch');
|
|
18
|
-
* // picomatch(glob[, options]);
|
|
19
|
-
*
|
|
20
|
-
* const isMatch = picomatch('*.!(*a)');
|
|
21
|
-
* console.log(isMatch('a.a')); //=> false
|
|
22
|
-
* console.log(isMatch('a.b')); //=> true
|
|
23
|
-
*
|
|
24
|
-
* // For environments without `node.js`, `picomatch/posix` provides you a dependency-free matcher, without automatic OS detection.
|
|
25
|
-
* const picomatch = require('picomatch/posix');
|
|
26
|
-
* // the same API, defaulting to posix paths
|
|
27
|
-
* const isMatch = picomatch('a/*');
|
|
28
|
-
* console.log(isMatch('a\\b')); //=> false
|
|
29
|
-
* console.log(isMatch('a/b')); //=> true
|
|
30
|
-
*
|
|
31
|
-
* // you can still configure the matcher function to accept windows paths
|
|
32
|
-
* const isMatch = picomatch('a/*', { options: windows });
|
|
33
|
-
* console.log(isMatch('a\\b')); //=> true
|
|
34
|
-
* console.log(isMatch('a/b')); //=> true
|
|
35
|
-
* ```
|
|
36
|
-
* @name picomatch
|
|
37
|
-
* @param {String|Array} `globs` One or more glob patterns.
|
|
38
|
-
* @param {Object=} `options`
|
|
39
|
-
* @return {Function=} Returns a matcher function.
|
|
40
|
-
* @api public
|
|
41
|
-
*/
|
|
42
|
-
|
|
43
|
-
const picomatch = (glob, options, returnState = false) => {
|
|
44
|
-
if (Array.isArray(glob)) {
|
|
45
|
-
const fns = glob.map(input => picomatch(input, options, returnState));
|
|
46
|
-
const arrayMatcher = str => {
|
|
47
|
-
for (const isMatch of fns) {
|
|
48
|
-
const state = isMatch(str);
|
|
49
|
-
if (state) return state;
|
|
50
|
-
}
|
|
51
|
-
return false;
|
|
52
|
-
};
|
|
53
|
-
return arrayMatcher;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
const isState = isObject(glob) && glob.tokens && glob.input;
|
|
57
|
-
|
|
58
|
-
if (glob === '' || (typeof glob !== 'string' && !isState)) {
|
|
59
|
-
throw new TypeError('Expected pattern to be a non-empty string');
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
const opts = options || {};
|
|
63
|
-
const posix = opts.windows;
|
|
64
|
-
const regex = isState
|
|
65
|
-
? picomatch.compileRe(glob, options)
|
|
66
|
-
: picomatch.makeRe(glob, options, false, true);
|
|
67
|
-
|
|
68
|
-
const state = regex.state;
|
|
69
|
-
delete regex.state;
|
|
70
|
-
|
|
71
|
-
let isIgnored = () => false;
|
|
72
|
-
if (opts.ignore) {
|
|
73
|
-
const ignoreOpts = { ...options, ignore: null, onMatch: null, onResult: null };
|
|
74
|
-
isIgnored = picomatch(opts.ignore, ignoreOpts, returnState);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
const matcher = (input, returnObject = false) => {
|
|
78
|
-
const { isMatch, match, output } = picomatch.test(input, regex, options, { glob, posix });
|
|
79
|
-
const result = { glob, state, regex, posix, input, output, match, isMatch };
|
|
80
|
-
|
|
81
|
-
if (typeof opts.onResult === 'function') {
|
|
82
|
-
opts.onResult(result);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
if (isMatch === false) {
|
|
86
|
-
result.isMatch = false;
|
|
87
|
-
return returnObject ? result : false;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
if (isIgnored(input)) {
|
|
91
|
-
if (typeof opts.onIgnore === 'function') {
|
|
92
|
-
opts.onIgnore(result);
|
|
93
|
-
}
|
|
94
|
-
result.isMatch = false;
|
|
95
|
-
return returnObject ? result : false;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
if (typeof opts.onMatch === 'function') {
|
|
99
|
-
opts.onMatch(result);
|
|
100
|
-
}
|
|
101
|
-
return returnObject ? result : true;
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
if (returnState) {
|
|
105
|
-
matcher.state = state;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
return matcher;
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* Test `input` with the given `regex`. This is used by the main
|
|
113
|
-
* `picomatch()` function to test the input string.
|
|
114
|
-
*
|
|
115
|
-
* ```js
|
|
116
|
-
* const picomatch = require('picomatch');
|
|
117
|
-
* // picomatch.test(input, regex[, options]);
|
|
118
|
-
*
|
|
119
|
-
* console.log(picomatch.test('foo/bar', /^(?:([^/]*?)\/([^/]*?))$/));
|
|
120
|
-
* // { isMatch: true, match: [ 'foo/', 'foo', 'bar' ], output: 'foo/bar' }
|
|
121
|
-
* ```
|
|
122
|
-
* @param {String} `input` String to test.
|
|
123
|
-
* @param {RegExp} `regex`
|
|
124
|
-
* @return {Object} Returns an object with matching info.
|
|
125
|
-
* @api public
|
|
126
|
-
*/
|
|
127
|
-
|
|
128
|
-
picomatch.test = (input, regex, options, { glob, posix } = {}) => {
|
|
129
|
-
if (typeof input !== 'string') {
|
|
130
|
-
throw new TypeError('Expected input to be a string');
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
if (input === '') {
|
|
134
|
-
return { isMatch: false, output: '' };
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
const opts = options || {};
|
|
138
|
-
const format = opts.format || (posix ? utils.toPosixSlashes : null);
|
|
139
|
-
let match = input === glob;
|
|
140
|
-
let output = (match && format) ? format(input) : input;
|
|
141
|
-
|
|
142
|
-
if (match === false) {
|
|
143
|
-
output = format ? format(input) : input;
|
|
144
|
-
match = output === glob;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
if (match === false || opts.capture === true) {
|
|
148
|
-
if (opts.matchBase === true || opts.basename === true) {
|
|
149
|
-
match = picomatch.matchBase(input, regex, options, posix);
|
|
150
|
-
} else {
|
|
151
|
-
match = regex.exec(output);
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
return { isMatch: Boolean(match), match, output };
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* Match the basename of a filepath.
|
|
160
|
-
*
|
|
161
|
-
* ```js
|
|
162
|
-
* const picomatch = require('picomatch');
|
|
163
|
-
* // picomatch.matchBase(input, glob[, options]);
|
|
164
|
-
* console.log(picomatch.matchBase('foo/bar.js', '*.js'); // true
|
|
165
|
-
* ```
|
|
166
|
-
* @param {String} `input` String to test.
|
|
167
|
-
* @param {RegExp|String} `glob` Glob pattern or regex created by [.makeRe](#makeRe).
|
|
168
|
-
* @return {Boolean}
|
|
169
|
-
* @api public
|
|
170
|
-
*/
|
|
171
|
-
|
|
172
|
-
picomatch.matchBase = (input, glob, options, posix = options && options.windows) => {
|
|
173
|
-
const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
|
|
174
|
-
return regex.test(utils.basename(input, { windows: posix }));
|
|
175
|
-
};
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* Returns true if **any** of the given glob `patterns` match the specified `string`.
|
|
179
|
-
*
|
|
180
|
-
* ```js
|
|
181
|
-
* const picomatch = require('picomatch');
|
|
182
|
-
* // picomatch.isMatch(string, patterns[, options]);
|
|
183
|
-
*
|
|
184
|
-
* console.log(picomatch.isMatch('a.a', ['b.*', '*.a'])); //=> true
|
|
185
|
-
* console.log(picomatch.isMatch('a.a', 'b.*')); //=> false
|
|
186
|
-
* ```
|
|
187
|
-
* @param {String|Array} str The string to test.
|
|
188
|
-
* @param {String|Array} patterns One or more glob patterns to use for matching.
|
|
189
|
-
* @param {Object} [options] See available [options](#options).
|
|
190
|
-
* @return {Boolean} Returns true if any patterns match `str`
|
|
191
|
-
* @api public
|
|
192
|
-
*/
|
|
193
|
-
|
|
194
|
-
picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* Parse a glob pattern to create the source string for a regular
|
|
198
|
-
* expression.
|
|
199
|
-
*
|
|
200
|
-
* ```js
|
|
201
|
-
* const picomatch = require('picomatch');
|
|
202
|
-
* const result = picomatch.parse(pattern[, options]);
|
|
203
|
-
* ```
|
|
204
|
-
* @param {String} `pattern`
|
|
205
|
-
* @param {Object} `options`
|
|
206
|
-
* @return {Object} Returns an object with useful properties and output to be used as a regex source string.
|
|
207
|
-
* @api public
|
|
208
|
-
*/
|
|
209
|
-
|
|
210
|
-
picomatch.parse = (pattern, options) => {
|
|
211
|
-
if (Array.isArray(pattern)) return pattern.map(p => picomatch.parse(p, options));
|
|
212
|
-
return parse(pattern, { ...options, fastpaths: false });
|
|
213
|
-
};
|
|
214
|
-
|
|
215
|
-
/**
|
|
216
|
-
* Scan a glob pattern to separate the pattern into segments.
|
|
217
|
-
*
|
|
218
|
-
* ```js
|
|
219
|
-
* const picomatch = require('picomatch');
|
|
220
|
-
* // picomatch.scan(input[, options]);
|
|
221
|
-
*
|
|
222
|
-
* const result = picomatch.scan('!./foo/*.js');
|
|
223
|
-
* console.log(result);
|
|
224
|
-
* { prefix: '!./',
|
|
225
|
-
* input: '!./foo/*.js',
|
|
226
|
-
* start: 3,
|
|
227
|
-
* base: 'foo',
|
|
228
|
-
* glob: '*.js',
|
|
229
|
-
* isBrace: false,
|
|
230
|
-
* isBracket: false,
|
|
231
|
-
* isGlob: true,
|
|
232
|
-
* isExtglob: false,
|
|
233
|
-
* isGlobstar: false,
|
|
234
|
-
* negated: true }
|
|
235
|
-
* ```
|
|
236
|
-
* @param {String} `input` Glob pattern to scan.
|
|
237
|
-
* @param {Object} `options`
|
|
238
|
-
* @return {Object} Returns an object with
|
|
239
|
-
* @api public
|
|
240
|
-
*/
|
|
241
|
-
|
|
242
|
-
picomatch.scan = (input, options) => scan(input, options);
|
|
243
|
-
|
|
244
|
-
/**
|
|
245
|
-
* Compile a regular expression from the `state` object returned by the
|
|
246
|
-
* [parse()](#parse) method.
|
|
247
|
-
*
|
|
248
|
-
* ```js
|
|
249
|
-
* const picomatch = require('picomatch');
|
|
250
|
-
* const state = picomatch.parse('*.js');
|
|
251
|
-
* // picomatch.compileRe(state[, options]);
|
|
252
|
-
*
|
|
253
|
-
* console.log(picomatch.compileRe(state));
|
|
254
|
-
* //=> /^(?:(?!\.)(?=.)[^/]*?\.js)$/
|
|
255
|
-
* ```
|
|
256
|
-
* @param {Object} `state`
|
|
257
|
-
* @param {Object} `options`
|
|
258
|
-
* @param {Boolean} `returnOutput` Intended for implementors, this argument allows you to return the raw output from the parser.
|
|
259
|
-
* @param {Boolean} `returnState` Adds the state to a `state` property on the returned regex. Useful for implementors and debugging.
|
|
260
|
-
* @return {RegExp}
|
|
261
|
-
* @api public
|
|
262
|
-
*/
|
|
263
|
-
|
|
264
|
-
picomatch.compileRe = (state, options, returnOutput = false, returnState = false) => {
|
|
265
|
-
if (returnOutput === true) {
|
|
266
|
-
return state.output;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
const opts = options || {};
|
|
270
|
-
const prepend = opts.contains ? '' : '^';
|
|
271
|
-
const append = opts.contains ? '' : '$';
|
|
272
|
-
|
|
273
|
-
let source = `${prepend}(?:${state.output})${append}`;
|
|
274
|
-
if (state && state.negated === true) {
|
|
275
|
-
source = `^(?!${source}).*$`;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
const regex = picomatch.toRegex(source, options);
|
|
279
|
-
if (returnState === true) {
|
|
280
|
-
regex.state = state;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
return regex;
|
|
284
|
-
};
|
|
285
|
-
|
|
286
|
-
/**
|
|
287
|
-
* Create a regular expression from a parsed glob pattern.
|
|
288
|
-
*
|
|
289
|
-
* ```js
|
|
290
|
-
* const picomatch = require('picomatch');
|
|
291
|
-
* // picomatch.makeRe(state[, options]);
|
|
292
|
-
*
|
|
293
|
-
* const result = picomatch.makeRe('*.js');
|
|
294
|
-
* console.log(result);
|
|
295
|
-
* //=> /^(?:(?!\.)(?=.)[^/]*?\.js)$/
|
|
296
|
-
* ```
|
|
297
|
-
* @param {String} `state` The object returned from the `.parse` method.
|
|
298
|
-
* @param {Object} `options`
|
|
299
|
-
* @param {Boolean} `returnOutput` Implementors may use this argument to return the compiled output, instead of a regular expression. This is not exposed on the options to prevent end-users from mutating the result.
|
|
300
|
-
* @param {Boolean} `returnState` Implementors may use this argument to return the state from the parsed glob with the returned regular expression.
|
|
301
|
-
* @return {RegExp} Returns a regex created from the given pattern.
|
|
302
|
-
* @api public
|
|
303
|
-
*/
|
|
304
|
-
|
|
305
|
-
picomatch.makeRe = (input, options = {}, returnOutput = false, returnState = false) => {
|
|
306
|
-
if (!input || typeof input !== 'string') {
|
|
307
|
-
throw new TypeError('Expected a non-empty string');
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
let parsed = { negated: false, fastpaths: true };
|
|
311
|
-
|
|
312
|
-
if (options.fastpaths !== false && (input[0] === '.' || input[0] === '*')) {
|
|
313
|
-
parsed.output = parse.fastpaths(input, options);
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
if (!parsed.output) {
|
|
317
|
-
parsed = parse(input, options);
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
return picomatch.compileRe(parsed, options, returnOutput, returnState);
|
|
321
|
-
};
|
|
322
|
-
|
|
323
|
-
/**
|
|
324
|
-
* Create a regular expression from the given regex source string.
|
|
325
|
-
*
|
|
326
|
-
* ```js
|
|
327
|
-
* const picomatch = require('picomatch');
|
|
328
|
-
* // picomatch.toRegex(source[, options]);
|
|
329
|
-
*
|
|
330
|
-
* const { output } = picomatch.parse('*.js');
|
|
331
|
-
* console.log(picomatch.toRegex(output));
|
|
332
|
-
* //=> /^(?:(?!\.)(?=.)[^/]*?\.js)$/
|
|
333
|
-
* ```
|
|
334
|
-
* @param {String} `source` Regular expression source string.
|
|
335
|
-
* @param {Object} `options`
|
|
336
|
-
* @return {RegExp}
|
|
337
|
-
* @api public
|
|
338
|
-
*/
|
|
339
|
-
|
|
340
|
-
picomatch.toRegex = (source, options) => {
|
|
341
|
-
try {
|
|
342
|
-
const opts = options || {};
|
|
343
|
-
return new RegExp(source, opts.flags || (opts.nocase ? 'i' : ''));
|
|
344
|
-
} catch (err) {
|
|
345
|
-
if (options && options.debug === true) throw err;
|
|
346
|
-
return /$^/;
|
|
347
|
-
}
|
|
348
|
-
};
|
|
349
|
-
|
|
350
|
-
/**
|
|
351
|
-
* Picomatch constants.
|
|
352
|
-
* @return {Object}
|
|
353
|
-
*/
|
|
354
|
-
|
|
355
|
-
picomatch.constants = constants;
|
|
356
|
-
|
|
357
|
-
/**
|
|
358
|
-
* Expose "picomatch"
|
|
359
|
-
*/
|
|
360
|
-
|
|
361
|
-
module.exports = picomatch;
|