@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.
Files changed (434) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/dist/cli/main.js +2 -2
  3. package/dist/cli/register-mutation.js +3 -2
  4. package/dist/cli/runtime/invocation-rewrites.js +2 -0
  5. package/dist/cli-bundle/bundle-manifest.json +1 -1
  6. package/dist/cli-bundle/chunks/chunk-2VH6COJE.js +125 -0
  7. package/dist/cli-bundle/chunks/{chunk-NHNM3GIP.js → chunk-5OFMWP3Q.js} +3 -3
  8. package/dist/cli-bundle/chunks/chunk-7ETRLLK3.js +31 -0
  9. package/dist/cli-bundle/chunks/chunk-7LCJA54R.js +2 -0
  10. package/dist/cli-bundle/chunks/chunk-7UUPLMCU.js +115 -0
  11. package/dist/cli-bundle/chunks/chunk-AGU7632B.js +3 -0
  12. package/dist/cli-bundle/chunks/{chunk-J257NZRD.js → chunk-CGTVDSAR.js} +11 -11
  13. package/dist/cli-bundle/chunks/chunk-CR5GC3VO.js +9 -0
  14. package/dist/cli-bundle/chunks/{chunk-KGOGLKL2.js → chunk-FJQCORYR.js} +2 -2
  15. package/dist/cli-bundle/chunks/chunk-H64BNM4A.js +8 -0
  16. package/dist/cli-bundle/chunks/{chunk-2D26HRXB.js → chunk-HQYIKAC6.js} +2 -2
  17. package/dist/cli-bundle/chunks/chunk-JBPXNG6P.js +2 -0
  18. package/dist/cli-bundle/chunks/{chunk-4I7YG3VZ.js → chunk-L2ZLH3LZ.js} +2 -2
  19. package/dist/cli-bundle/chunks/chunk-LGWP5D7V.js +2 -0
  20. package/dist/cli-bundle/chunks/{chunk-I3T2FVUA.js → chunk-MUGGRKK3.js} +2 -2
  21. package/dist/cli-bundle/chunks/{chunk-FZ4XWWLO.js → chunk-OD2I3SFQ.js} +43 -43
  22. package/dist/cli-bundle/chunks/chunk-QK7RAN7R.js +2 -0
  23. package/dist/cli-bundle/chunks/{chunk-2WNORBVN.js → chunk-S3RMFLEG.js} +83 -83
  24. package/dist/cli-bundle/chunks/chunk-SSZBVRIN.js +6 -0
  25. package/dist/cli-bundle/chunks/chunk-T3E3WNHO.js +2 -0
  26. package/dist/cli-bundle/chunks/{chunk-DZWRNL6R.js → chunk-TA5VN4ME.js} +2 -2
  27. package/dist/cli-bundle/chunks/chunk-TS2CZE3O.js +2 -0
  28. package/dist/cli-bundle/chunks/{chunk-F7P42FL5.js → chunk-VETSGCF4.js} +4 -4
  29. package/dist/cli-bundle/chunks/{chunk-VJLZHOTP.js → chunk-WKHS4QC6.js} +2 -2
  30. package/dist/cli-bundle/chunks/chunk-XDIJK6VW.js +8 -0
  31. package/dist/cli-bundle/chunks/{chunk-NYN5OR2T.js → chunk-Y4LXVPA5.js} +2 -2
  32. package/dist/cli-bundle/chunks/chunk-YJI2Y5N6.js +2 -0
  33. package/dist/cli-bundle/chunks/{indexed-receipt-blobs-HNLN6UXH.js → indexed-receipt-blobs-ELEMA7IW.js} +2 -2
  34. package/dist/cli-bundle/chunks/{item-revision-PSOL5I4H.js → item-revision-BV5BUBCR.js} +2 -2
  35. package/dist/cli-bundle/chunks/item-transaction-E2ST3A3X.js +2 -0
  36. package/dist/cli-bundle/chunks/{mutation-actor-BDBBH3ZS.js → mutation-actor-DDYJW5B4.js} +2 -2
  37. package/dist/cli-bundle/chunks/mutation-admission-5AWMXMCB.js +2 -0
  38. package/dist/cli-bundle/chunks/{register-list-query-AESCVO6H.js → register-list-query-RJT7YBRF.js} +2 -2
  39. package/dist/cli-bundle/chunks/register-mutation-6KTMJGYF.js +21 -0
  40. package/dist/cli-bundle/chunks/register-operations-W24TA3HZ.js +2 -0
  41. package/dist/cli-bundle/chunks/register-setup-QK67WUX6.js +2 -0
  42. package/dist/cli-bundle/chunks/{settlement-hook-MVVVUIVZ.js → settlement-hook-E5LHZ4RD.js} +2 -2
  43. package/dist/cli-bundle/chunks/{stage-RMU3JAWM.js → stage-XGWW3T64.js} +2 -2
  44. package/dist/cli-bundle/focused-chunks/chunk-3H3SVHAT.js +2 -0
  45. package/dist/cli-bundle/focused-chunks/{chunk-DFBHW7HP.js → chunk-5JVB42Z7.js} +3 -3
  46. package/dist/cli-bundle/focused-chunks/{chunk-ONM2R32I.js → chunk-6OZ7BKWJ.js} +54 -54
  47. package/dist/cli-bundle/focused-chunks/{chunk-HHMMIHZP.js → chunk-7RF2YPZ5.js} +2 -2
  48. package/dist/cli-bundle/focused-chunks/chunk-7Z2NYAK4.js +2 -0
  49. package/dist/cli-bundle/focused-chunks/chunk-A2CLYPDA.js +102 -0
  50. package/dist/cli-bundle/focused-chunks/{chunk-7SEPCQV2.js → chunk-DH4DHL6V.js} +2 -2
  51. package/dist/cli-bundle/focused-chunks/{chunk-UBBTBNUY.js → chunk-DWCFZVT2.js} +2 -2
  52. package/dist/cli-bundle/focused-chunks/{chunk-DZMP3VYQ.js → chunk-EO4XM3XJ.js} +2 -2
  53. package/dist/cli-bundle/focused-chunks/chunk-EZXLY6S4.js +2 -0
  54. package/dist/cli-bundle/focused-chunks/{chunk-KRNF3WTC.js → chunk-FPPYE6CY.js} +2 -2
  55. package/dist/cli-bundle/focused-chunks/chunk-HO2YUD4P.js +91 -0
  56. package/dist/cli-bundle/focused-chunks/{chunk-BEHIMEV2.js → chunk-ICEHI4SN.js} +2 -2
  57. package/dist/cli-bundle/focused-chunks/chunk-IGMFXB5W.js +2 -0
  58. package/dist/cli-bundle/focused-chunks/{chunk-PDXSMSO5.js → chunk-IXYBN6D2.js} +3 -3
  59. package/dist/cli-bundle/focused-chunks/{chunk-PEL4SQXV.js → chunk-LZR3JKYT.js} +2 -2
  60. package/dist/cli-bundle/focused-chunks/chunk-MTBC32ZR.js +8 -0
  61. package/dist/cli-bundle/focused-chunks/chunk-OAIAZHRG.js +2 -0
  62. package/dist/cli-bundle/focused-chunks/{chunk-SFATIM77.js → chunk-ONHUG7IL.js} +9 -9
  63. package/dist/cli-bundle/focused-chunks/chunk-OPY43DNJ.js +2 -0
  64. package/dist/cli-bundle/focused-chunks/chunk-PNCCTZKI.js +44 -0
  65. package/dist/cli-bundle/focused-chunks/chunk-T3NMYMW4.js +27 -0
  66. package/dist/cli-bundle/focused-chunks/chunk-XS2YZCT5.js +2 -0
  67. package/dist/cli-bundle/focused-chunks/chunk-ZFUZ4YYN.js +8 -0
  68. package/dist/cli-bundle/focused-chunks/{indexed-receipt-blobs-ADMQXF3N.js → indexed-receipt-blobs-ZTRFCPH7.js} +2 -2
  69. package/dist/cli-bundle/focused-chunks/item-revision-NS2V4WON.js +2 -0
  70. package/dist/cli-bundle/focused-chunks/item-transaction-NENC4HYI.js +2 -0
  71. package/dist/cli-bundle/focused-chunks/mutation-actor-2SVBO324.js +2 -0
  72. package/dist/cli-bundle/focused-chunks/mutation-admission-DZIBDJAE.js +2 -0
  73. package/dist/cli-bundle/focused-chunks/{settlement-hook-5U2M75BY.js → settlement-hook-OUBUN45C.js} +2 -2
  74. package/dist/cli-bundle/focused-chunks/stage-LVAGKCEE.js +2 -0
  75. package/dist/cli-bundle/main.js +27 -27
  76. package/dist/cli-bundle/sdk-authoring.js +1 -1
  77. package/dist/cli-bundle/sdk-contracts.js +2 -2
  78. package/dist/cli-bundle/sdk-core.js +1 -1
  79. package/dist/cli-bundle/sdk-governance.js +1 -1
  80. package/dist/cli-bundle/sdk-graph.js +1 -1
  81. package/dist/cli-bundle/sdk-merge.js +58 -58
  82. package/dist/cli-bundle/sdk-query.js +1 -1
  83. package/dist/cli-bundle/sdk-runtime.js +1 -1
  84. package/dist/cli-bundle/sdk-testing.js +1 -1
  85. package/dist/cli-bundle/sdk.js +4 -4
  86. package/dist/core/extensions/extension-hook-runtime.d.ts +14 -2
  87. package/dist/core/extensions/extension-hook-runtime.js +1 -1
  88. package/dist/core/extensions/extension-types.d.ts +14 -0
  89. package/dist/core/extensions/extension-types.js +1 -1
  90. package/dist/core/extensions/index.d.ts +1 -1
  91. package/dist/core/extensions/index.js +1 -1
  92. package/dist/core/fs/file-glob.js +2 -0
  93. package/dist/core/policy/workflow-policy-store.js +1 -1
  94. package/dist/core/shared/secret-rules.d.ts +83 -4
  95. package/dist/core/shared/secret-rules.js +5 -4
  96. package/dist/core/store/item-mutation-precondition.d.ts +32 -1
  97. package/dist/core/store/item-mutation-precondition.js +1 -1
  98. package/dist/core/store/item-store.js +1 -1
  99. package/dist/core/store/transaction-coordinator-scope.js +2 -0
  100. package/dist/sdk/authoring.d.ts +1 -1
  101. package/dist/sdk/authoring.js +1 -1
  102. package/dist/sdk/cli-bootstrap.js +1 -1
  103. package/dist/sdk/item-transaction.js +1 -1
  104. package/dist/sdk/lifecycle/copy.js +1 -1
  105. package/dist/sdk/lifecycle/create.js +1 -1
  106. package/dist/sdk/lifecycle/restore.js +1 -1
  107. package/dist/sdk/linked-artifacts.js +2 -2
  108. package/dist/sdk/mutation-guard.d.ts +25 -4
  109. package/dist/sdk/mutation-guard.js +1 -1
  110. package/dist/sdk/package-import-adapters.d.ts +14 -1
  111. package/dist/sdk/package-import-adapters.js +1 -1
  112. package/dist/sdk/public-surface.json +1 -1
  113. package/dist/sdk/testing.d.ts +21 -3
  114. package/dist/sdk/testing.js +2 -2
  115. package/dist/sdk/workspace-transaction.js +2 -2
  116. package/docs/COMMANDS.md +33 -0
  117. package/docs/DEFECT_RECURRENCE.md +3 -2
  118. package/docs/EXTENSIONS.md +1 -1
  119. package/docs/MIGRATION_CLI_SIMPLIFICATION.md +1 -1
  120. package/docs/MUTATION_INTEGRITY.md +187 -7
  121. package/docs/SDK.md +40 -3
  122. package/docs/WORKFLOW_POLICIES.md +23 -0
  123. package/marketplace.json +1 -1
  124. package/node_modules/@opentelemetry/core/build/esm/version.d.ts +1 -1
  125. package/node_modules/@opentelemetry/core/build/esm/version.js +1 -1
  126. package/node_modules/@opentelemetry/core/build/esnext/version.d.ts +1 -1
  127. package/node_modules/@opentelemetry/core/build/esnext/version.js +1 -1
  128. package/node_modules/@opentelemetry/core/build/src/version.d.ts +1 -1
  129. package/node_modules/@opentelemetry/core/build/src/version.js +1 -1
  130. package/node_modules/@opentelemetry/core/package.json +2 -2
  131. package/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/execAsync.d.ts +1 -0
  132. package/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/execAsync.js +1 -0
  133. package/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-bsd.js +3 -2
  134. package/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-darwin.js +3 -2
  135. package/node_modules/@opentelemetry/resources/build/esm/version.d.ts +1 -1
  136. package/node_modules/@opentelemetry/resources/build/esm/version.js +1 -1
  137. package/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/node/machine-id/execAsync.d.ts +1 -0
  138. package/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/node/machine-id/execAsync.js +1 -0
  139. package/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/node/machine-id/getMachineId-bsd.js +3 -2
  140. package/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/node/machine-id/getMachineId-darwin.js +3 -2
  141. package/node_modules/@opentelemetry/resources/build/esnext/version.d.ts +1 -1
  142. package/node_modules/@opentelemetry/resources/build/esnext/version.js +1 -1
  143. package/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/execAsync.d.ts +1 -0
  144. package/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/execAsync.js +2 -1
  145. package/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-bsd.js +2 -1
  146. package/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-darwin.js +2 -1
  147. package/node_modules/@opentelemetry/resources/build/src/version.d.ts +1 -1
  148. package/node_modules/@opentelemetry/resources/build/src/version.js +1 -1
  149. package/node_modules/@opentelemetry/resources/package.json +3 -3
  150. package/node_modules/@opentelemetry/sdk-trace/build/esm/version.d.ts +1 -1
  151. package/node_modules/@opentelemetry/sdk-trace/build/esm/version.js +1 -1
  152. package/node_modules/@opentelemetry/sdk-trace/build/esnext/version.d.ts +1 -1
  153. package/node_modules/@opentelemetry/sdk-trace/build/esnext/version.js +1 -1
  154. package/node_modules/@opentelemetry/sdk-trace/build/src/version.d.ts +1 -1
  155. package/node_modules/@opentelemetry/sdk-trace/build/src/version.js +1 -1
  156. package/node_modules/@opentelemetry/sdk-trace/package.json +5 -5
  157. package/node_modules/@opentelemetry/sdk-trace-base/build/esm/version.d.ts +1 -1
  158. package/node_modules/@opentelemetry/sdk-trace-base/build/esm/version.js +1 -1
  159. package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/version.d.ts +1 -1
  160. package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/version.js +1 -1
  161. package/node_modules/@opentelemetry/sdk-trace-base/build/src/version.d.ts +1 -1
  162. package/node_modules/@opentelemetry/sdk-trace-base/build/src/version.js +1 -1
  163. package/node_modules/@opentelemetry/sdk-trace-base/package.json +7 -7
  164. package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_attributes.cjs +18202 -0
  165. package/node_modules/@opentelemetry/semantic-conventions/{build/src/experimental_attributes.js → dist/experimental_attributes.d.cts} +3328 -1993
  166. package/node_modules/@opentelemetry/semantic-conventions/{build/esnext/experimental_attributes.js → dist/experimental_attributes.d.mts} +3328 -1935
  167. package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_attributes.mjs +16385 -0
  168. package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_events.cjs +325 -0
  169. package/node_modules/@opentelemetry/semantic-conventions/{build/esnext/experimental_events.js → dist/experimental_events.d.cts} +37 -41
  170. package/node_modules/@opentelemetry/semantic-conventions/{build/esm/experimental_events.js → dist/experimental_events.d.mts} +37 -41
  171. package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_events.mjs +295 -0
  172. package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_metrics.cjs +4929 -0
  173. package/node_modules/@opentelemetry/semantic-conventions/{build/esnext/experimental_metrics.js → dist/experimental_metrics.d.cts} +955 -597
  174. package/node_modules/@opentelemetry/semantic-conventions/{build/esm/experimental_metrics.js → dist/experimental_metrics.d.mts} +955 -597
  175. package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_metrics.mjs +4419 -0
  176. package/node_modules/@opentelemetry/semantic-conventions/dist/index-incubating.cjs +2619 -0
  177. package/node_modules/@opentelemetry/semantic-conventions/dist/index-incubating.d.cts +7 -0
  178. package/node_modules/@opentelemetry/semantic-conventions/dist/index-incubating.d.mts +7 -0
  179. package/node_modules/@opentelemetry/semantic-conventions/dist/index-incubating.mjs +7 -0
  180. package/node_modules/@opentelemetry/semantic-conventions/dist/index.cjs +670 -0
  181. package/node_modules/@opentelemetry/semantic-conventions/dist/index.d.cts +6 -0
  182. package/node_modules/@opentelemetry/semantic-conventions/dist/index.d.mts +6 -0
  183. package/node_modules/@opentelemetry/semantic-conventions/dist/index.mjs +6 -0
  184. package/node_modules/@opentelemetry/semantic-conventions/dist/internal/utils.cjs +20 -0
  185. package/node_modules/@opentelemetry/semantic-conventions/dist/internal/utils.mjs +20 -0
  186. package/node_modules/@opentelemetry/semantic-conventions/dist/resource/SemanticResourceAttributes.cjs +1326 -0
  187. package/node_modules/@opentelemetry/semantic-conventions/{build/esnext/resource/SemanticResourceAttributes.d.ts → dist/resource/SemanticResourceAttributes.d.cts} +600 -597
  188. package/node_modules/@opentelemetry/semantic-conventions/{build/src/resource/SemanticResourceAttributes.d.ts → dist/resource/SemanticResourceAttributes.d.mts} +600 -597
  189. package/node_modules/@opentelemetry/semantic-conventions/dist/resource/SemanticResourceAttributes.mjs +1188 -0
  190. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_attributes.cjs +2038 -0
  191. package/node_modules/@opentelemetry/semantic-conventions/{build/esm/stable_attributes.js → dist/stable_attributes.d.cts} +327 -220
  192. package/node_modules/@opentelemetry/semantic-conventions/{build/esnext/stable_attributes.js → dist/stable_attributes.d.mts} +327 -220
  193. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_attributes.mjs +1841 -0
  194. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_events.cjs +9 -0
  195. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_events.d.cts +8 -0
  196. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_events.d.mts +8 -0
  197. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_events.mjs +9 -0
  198. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_metrics.cjs +378 -0
  199. package/node_modules/@opentelemetry/semantic-conventions/{build/src/stable_metrics.js → dist/stable_metrics.d.cts} +69 -63
  200. package/node_modules/@opentelemetry/semantic-conventions/{build/esm/stable_metrics.js → dist/stable_metrics.d.mts} +69 -59
  201. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_metrics.mjs +326 -0
  202. package/node_modules/@opentelemetry/semantic-conventions/dist/trace/SemanticAttributes.cjs +2508 -0
  203. package/node_modules/@opentelemetry/semantic-conventions/{build/esnext/trace/SemanticAttributes.d.ts → dist/trace/SemanticAttributes.d.cts} +1097 -1094
  204. package/node_modules/@opentelemetry/semantic-conventions/{build/src/trace/SemanticAttributes.d.ts → dist/trace/SemanticAttributes.d.mts} +1097 -1094
  205. package/node_modules/@opentelemetry/semantic-conventions/dist/trace/SemanticAttributes.mjs +2236 -0
  206. package/node_modules/@opentelemetry/semantic-conventions/package.json +27 -42
  207. package/node_modules/@sentry/core/build/cjs/client.js +14 -5
  208. package/node_modules/@sentry/core/build/cjs/integrations/express/patch-layer.js +15 -1
  209. package/node_modules/@sentry/core/build/cjs/integrations/http/client-subscriptions.js +10 -1
  210. package/node_modules/@sentry/core/build/cjs/scope.js +0 -1
  211. package/node_modules/@sentry/core/build/cjs/tracing/openai/utils.js +1 -7
  212. package/node_modules/@sentry/core/build/cjs/tracing/sentrySpan.js +11 -0
  213. package/node_modules/@sentry/core/build/cjs/utils/envelope.js +1 -1
  214. package/node_modules/@sentry/core/build/cjs/utils/sql.js +1 -1
  215. package/node_modules/@sentry/core/build/cjs/utils/tunnel.js +9 -0
  216. package/node_modules/@sentry/core/build/cjs/utils/version.js +1 -1
  217. package/node_modules/@sentry/core/build/esm/client.js +14 -5
  218. package/node_modules/@sentry/core/build/esm/integrations/express/patch-layer.js +15 -1
  219. package/node_modules/@sentry/core/build/esm/integrations/http/client-subscriptions.js +10 -1
  220. package/node_modules/@sentry/core/build/esm/package.json +1 -1
  221. package/node_modules/@sentry/core/build/esm/scope.js +0 -1
  222. package/node_modules/@sentry/core/build/esm/tracing/openai/utils.js +1 -7
  223. package/node_modules/@sentry/core/build/esm/tracing/sentrySpan.js +11 -0
  224. package/node_modules/@sentry/core/build/esm/utils/envelope.js +1 -1
  225. package/node_modules/@sentry/core/build/esm/utils/sql.js +1 -1
  226. package/node_modules/@sentry/core/build/esm/utils/tunnel.js +9 -1
  227. package/node_modules/@sentry/core/build/esm/utils/version.js +1 -1
  228. package/node_modules/@sentry/core/build/types/types/datacategory.d.ts +1 -1
  229. package/node_modules/@sentry/core/build/types/utils/tunnel.d.ts +1 -0
  230. package/node_modules/@sentry/core/build/types-ts3.8/types/datacategory.d.ts +1 -1
  231. package/node_modules/@sentry/core/build/types-ts3.8/utils/tunnel.d.ts +1 -0
  232. package/node_modules/@sentry/core/package.json +1 -1
  233. package/node_modules/@sentry/node/build/cjs/integrations/tracing/redis/index.js +1 -1
  234. package/node_modules/@sentry/node/build/esm/package.json +1 -1
  235. package/node_modules/@sentry/node/package.json +6 -6
  236. package/node_modules/@sentry/node-core/build/cjs/integrations/anr/index.js +1 -1
  237. package/node_modules/@sentry/node-core/build/cjs/integrations/contextlines.js +6 -4
  238. package/node_modules/@sentry/node-core/build/cjs/integrations/local-variables/local-variables-async.js +1 -1
  239. package/node_modules/@sentry/node-core/build/cjs/integrations/modules.js +21 -2
  240. package/node_modules/@sentry/node-core/build/cjs/integrations/node-fetch/undici-instrumentation.js +8 -0
  241. package/node_modules/@sentry/node-core/build/esm/integrations/anr/index.js +1 -1
  242. package/node_modules/@sentry/node-core/build/esm/integrations/anr/worker-script.js +2 -2
  243. package/node_modules/@sentry/node-core/build/esm/integrations/contextlines.js +7 -5
  244. package/node_modules/@sentry/node-core/build/esm/integrations/local-variables/local-variables-async.js +1 -1
  245. package/node_modules/@sentry/node-core/build/esm/integrations/local-variables/worker-script.js +1 -1
  246. package/node_modules/@sentry/node-core/build/esm/integrations/node-fetch/undici-instrumentation.js +8 -0
  247. package/node_modules/@sentry/node-core/build/esm/package.json +1 -1
  248. package/node_modules/@sentry/node-core/package.json +9 -9
  249. package/node_modules/@sentry/opentelemetry/build/esm/package.json +1 -1
  250. package/node_modules/@sentry/opentelemetry/package.json +6 -6
  251. package/node_modules/@sentry/server-utils/build/THIRD-PARTY-LICENSES.txt +32 -32
  252. package/node_modules/@sentry/server-utils/build/cjs/integrations/tracing-channel/express/instrumentation.js +12 -1
  253. package/node_modules/@sentry/server-utils/build/esm/integrations/tracing-channel/express/instrumentation.js +13 -2
  254. package/node_modules/@sentry/server-utils/build/esm/package.json +1 -1
  255. package/node_modules/@sentry/server-utils/build/types/integrations/tracing-channel/express/types.d.ts +1 -1
  256. package/node_modules/@sentry/server-utils/build/types-ts3.8/integrations/tracing-channel/express/types.d.ts +1 -1
  257. package/node_modules/@sentry/server-utils/package.json +2 -2
  258. package/node_modules/debug/package.json +1 -1
  259. package/node_modules/es-module-lexer/dist/lexer.asm.js +2 -2
  260. package/node_modules/es-module-lexer/dist/lexer.cjs +1 -1
  261. package/node_modules/es-module-lexer/dist/lexer.js +2 -2
  262. package/node_modules/es-module-lexer/dist/lexer.minimal.asm.js +2 -2
  263. package/node_modules/es-module-lexer/dist/lexer.minimal.cjs +1 -1
  264. package/node_modules/es-module-lexer/dist/lexer.minimal.js +2 -2
  265. package/node_modules/es-module-lexer/package.json +1 -1
  266. package/node_modules/import-in-the-middle/CHANGELOG.md +35 -0
  267. package/node_modules/import-in-the-middle/README.md +15 -1
  268. package/node_modules/import-in-the-middle/create-hook.mjs +370 -155
  269. package/node_modules/import-in-the-middle/index.d.ts +8 -2
  270. package/node_modules/import-in-the-middle/index.js +80 -53
  271. package/node_modules/import-in-the-middle/lib/get-esm-exports.mjs +37 -3
  272. package/node_modules/import-in-the-middle/lib/get-exports.mjs +33 -40
  273. package/node_modules/import-in-the-middle/lib/register.js +81 -16
  274. package/node_modules/import-in-the-middle/package.json +9 -5
  275. package/node_modules/supports-color/browser.js +21 -2
  276. package/node_modules/supports-color/index.js +41 -24
  277. package/node_modules/supports-color/license +1 -1
  278. package/node_modules/supports-color/package.json +11 -6
  279. package/node_modules/supports-color/readme.md +8 -7
  280. package/package.json +4 -6
  281. package/packages/pm-beads/package.json +1 -1
  282. package/packages/pm-calendar/package.json +1 -1
  283. package/packages/pm-command-kit/package.json +1 -1
  284. package/packages/pm-digital-twin/package.json +1 -1
  285. package/packages/pm-governance-audit/package.json +1 -1
  286. package/packages/pm-guide-shell/package.json +1 -1
  287. package/packages/pm-kanban/package.json +1 -1
  288. package/packages/pm-lifecycle-hooks/package.json +1 -1
  289. package/packages/pm-linked-test-adapters/package.json +1 -1
  290. package/packages/pm-search-advanced/package.json +1 -1
  291. package/packages/pm-templates/package.json +1 -1
  292. package/packages/pm-todos/package.json +1 -1
  293. package/packages/pm-vcs/package.json +1 -1
  294. package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
  295. package/plugins/pm-claude/package.json +1 -1
  296. package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
  297. package/plugins/pm-codex/package.json +1 -1
  298. package/plugins/pm-codex/plugin.json +1 -1
  299. package/runtime-dependencies.json +1 -1
  300. package/dist/cli-bundle/chunks/chunk-4WIVCOA7.js +0 -2
  301. package/dist/cli-bundle/chunks/chunk-A3WCP4TU.js +0 -6
  302. package/dist/cli-bundle/chunks/chunk-AB5S6TWE.js +0 -124
  303. package/dist/cli-bundle/chunks/chunk-BV7J3LRH.js +0 -114
  304. package/dist/cli-bundle/chunks/chunk-E4BQRZF2.js +0 -10
  305. package/dist/cli-bundle/chunks/chunk-ERD2RYWM.js +0 -31
  306. package/dist/cli-bundle/chunks/chunk-IGEBFNWE.js +0 -2
  307. package/dist/cli-bundle/chunks/chunk-IYICNCK2.js +0 -2
  308. package/dist/cli-bundle/chunks/chunk-JD3XWF66.js +0 -3
  309. package/dist/cli-bundle/chunks/chunk-JLHD7OQ2.js +0 -2
  310. package/dist/cli-bundle/chunks/chunk-LC4DJVXR.js +0 -2
  311. package/dist/cli-bundle/chunks/chunk-OFZQEQ6X.js +0 -2
  312. package/dist/cli-bundle/chunks/chunk-QGL5IAP4.js +0 -8
  313. package/dist/cli-bundle/chunks/chunk-R24NZ2TB.js +0 -8
  314. package/dist/cli-bundle/chunks/chunk-VO2HSB5F.js +0 -2
  315. package/dist/cli-bundle/chunks/item-transaction-55QTCU2M.js +0 -2
  316. package/dist/cli-bundle/chunks/mutation-admission-WUN7JYVJ.js +0 -2
  317. package/dist/cli-bundle/chunks/register-mutation-SKCEP5QU.js +0 -20
  318. package/dist/cli-bundle/chunks/register-operations-ZT4OYCF3.js +0 -2
  319. package/dist/cli-bundle/chunks/register-setup-JVWNS2TY.js +0 -2
  320. package/dist/cli-bundle/focused-chunks/chunk-3WVMEA2A.js +0 -6
  321. package/dist/cli-bundle/focused-chunks/chunk-5UVJOAUP.js +0 -91
  322. package/dist/cli-bundle/focused-chunks/chunk-5WQ3LNUK.js +0 -78
  323. package/dist/cli-bundle/focused-chunks/chunk-6E4X7MQA.js +0 -26
  324. package/dist/cli-bundle/focused-chunks/chunk-7XHE335U.js +0 -2
  325. package/dist/cli-bundle/focused-chunks/chunk-CZFZCSOX.js +0 -2
  326. package/dist/cli-bundle/focused-chunks/chunk-HPC2M6JD.js +0 -6
  327. package/dist/cli-bundle/focused-chunks/chunk-HR5FEUUL.js +0 -2
  328. package/dist/cli-bundle/focused-chunks/chunk-J7ESCE7M.js +0 -24
  329. package/dist/cli-bundle/focused-chunks/chunk-KWZLY35A.js +0 -2
  330. package/dist/cli-bundle/focused-chunks/chunk-M4IA4LC6.js +0 -8
  331. package/dist/cli-bundle/focused-chunks/chunk-NASE6JC2.js +0 -2
  332. package/dist/cli-bundle/focused-chunks/chunk-QJ647CQE.js +0 -2
  333. package/dist/cli-bundle/focused-chunks/chunk-ZCN35TCK.js +0 -2
  334. package/dist/cli-bundle/focused-chunks/chunk-ZSQ2FT22.js +0 -44
  335. package/dist/cli-bundle/focused-chunks/item-revision-GNKYO6GZ.js +0 -2
  336. package/dist/cli-bundle/focused-chunks/item-transaction-AUUQHR5Z.js +0 -2
  337. package/dist/cli-bundle/focused-chunks/mutation-actor-OBRD7HFZ.js +0 -2
  338. package/dist/cli-bundle/focused-chunks/mutation-admission-6TX3EOJX.js +0 -2
  339. package/dist/cli-bundle/focused-chunks/stage-LERF2YJU.js +0 -2
  340. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_attributes.d.ts +0 -14984
  341. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_attributes.js +0 -14991
  342. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_events.d.ts +0 -291
  343. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_metrics.d.ts +0 -4053
  344. package/node_modules/@opentelemetry/semantic-conventions/build/esm/index-incubating.d.ts +0 -7
  345. package/node_modules/@opentelemetry/semantic-conventions/build/esm/index-incubating.js +0 -13
  346. package/node_modules/@opentelemetry/semantic-conventions/build/esm/index.d.ts +0 -6
  347. package/node_modules/@opentelemetry/semantic-conventions/build/esm/index.js +0 -16
  348. package/node_modules/@opentelemetry/semantic-conventions/build/esm/internal/utils.d.ts +0 -7
  349. package/node_modules/@opentelemetry/semantic-conventions/build/esm/internal/utils.js +0 -23
  350. package/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/SemanticResourceAttributes.d.ts +0 -1453
  351. package/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/SemanticResourceAttributes.js +0 -1250
  352. package/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/index.d.ts +0 -2
  353. package/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/index.js +0 -10
  354. package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.d.ts +0 -1726
  355. package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_events.d.ts +0 -5
  356. package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_events.js +0 -12
  357. package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_metrics.d.ts +0 -308
  358. package/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/SemanticAttributes.d.ts +0 -2664
  359. package/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/SemanticAttributes.js +0 -2360
  360. package/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/index.d.ts +0 -2
  361. package/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/index.js +0 -10
  362. package/node_modules/@opentelemetry/semantic-conventions/build/esm/version.d.ts +0 -2
  363. package/node_modules/@opentelemetry/semantic-conventions/build/esm/version.js +0 -7
  364. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_attributes.d.ts +0 -14984
  365. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_events.d.ts +0 -291
  366. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_metrics.d.ts +0 -4053
  367. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index-incubating.d.ts +0 -7
  368. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index-incubating.js +0 -13
  369. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index.d.ts +0 -6
  370. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index.js +0 -16
  371. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/internal/utils.d.ts +0 -7
  372. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/internal/utils.js +0 -23
  373. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/resource/SemanticResourceAttributes.js +0 -1250
  374. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/resource/index.d.ts +0 -2
  375. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/resource/index.js +0 -10
  376. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_attributes.d.ts +0 -1726
  377. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_events.d.ts +0 -5
  378. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_events.js +0 -12
  379. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_metrics.d.ts +0 -308
  380. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_metrics.js +0 -315
  381. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/trace/SemanticAttributes.js +0 -2360
  382. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/trace/index.d.ts +0 -2
  383. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/trace/index.js +0 -10
  384. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/version.d.ts +0 -2
  385. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/version.js +0 -7
  386. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_attributes.d.ts +0 -14984
  387. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_events.d.ts +0 -291
  388. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_events.js +0 -301
  389. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_metrics.d.ts +0 -4053
  390. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_metrics.js +0 -4072
  391. package/node_modules/@opentelemetry/semantic-conventions/build/src/index-incubating.d.ts +0 -7
  392. package/node_modules/@opentelemetry/semantic-conventions/build/src/index-incubating.js +0 -29
  393. package/node_modules/@opentelemetry/semantic-conventions/build/src/index.d.ts +0 -6
  394. package/node_modules/@opentelemetry/semantic-conventions/build/src/index.js +0 -32
  395. package/node_modules/@opentelemetry/semantic-conventions/build/src/internal/utils.d.ts +0 -7
  396. package/node_modules/@opentelemetry/semantic-conventions/build/src/internal/utils.js +0 -27
  397. package/node_modules/@opentelemetry/semantic-conventions/build/src/resource/SemanticResourceAttributes.js +0 -1255
  398. package/node_modules/@opentelemetry/semantic-conventions/build/src/resource/index.d.ts +0 -2
  399. package/node_modules/@opentelemetry/semantic-conventions/build/src/resource/index.js +0 -26
  400. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_attributes.d.ts +0 -1726
  401. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_attributes.js +0 -1759
  402. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_events.d.ts +0 -5
  403. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_events.js +0 -15
  404. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_metrics.d.ts +0 -308
  405. package/node_modules/@opentelemetry/semantic-conventions/build/src/trace/SemanticAttributes.js +0 -2368
  406. package/node_modules/@opentelemetry/semantic-conventions/build/src/trace/index.d.ts +0 -2
  407. package/node_modules/@opentelemetry/semantic-conventions/build/src/trace/index.js +0 -26
  408. package/node_modules/@opentelemetry/semantic-conventions/build/src/version.d.ts +0 -2
  409. package/node_modules/@opentelemetry/semantic-conventions/build/src/version.js +0 -10
  410. package/node_modules/fdir/LICENSE +0 -7
  411. package/node_modules/fdir/README.md +0 -91
  412. package/node_modules/fdir/dist/index.cjs +0 -588
  413. package/node_modules/fdir/dist/index.d.cts +0 -155
  414. package/node_modules/fdir/dist/index.d.mts +0 -155
  415. package/node_modules/fdir/dist/index.mjs +0 -570
  416. package/node_modules/fdir/package.json +0 -106
  417. package/node_modules/picomatch/LICENSE +0 -21
  418. package/node_modules/picomatch/README.md +0 -743
  419. package/node_modules/picomatch/index.js +0 -17
  420. package/node_modules/picomatch/lib/constants.js +0 -184
  421. package/node_modules/picomatch/lib/parse.js +0 -1425
  422. package/node_modules/picomatch/lib/picomatch.js +0 -361
  423. package/node_modules/picomatch/lib/scan.js +0 -403
  424. package/node_modules/picomatch/lib/utils.js +0 -72
  425. package/node_modules/picomatch/package.json +0 -83
  426. package/node_modules/picomatch/posix.js +0 -3
  427. package/node_modules/tinyglobby/LICENSE +0 -21
  428. package/node_modules/tinyglobby/README.md +0 -25
  429. package/node_modules/tinyglobby/dist/index.cjs +0 -335
  430. package/node_modules/tinyglobby/dist/index.d.cts +0 -148
  431. package/node_modules/tinyglobby/dist/index.d.mts +0 -148
  432. package/node_modules/tinyglobby/dist/index.mjs +0 -307
  433. package/node_modules/tinyglobby/package.json +0 -70
  434. /package/node_modules/import-in-the-middle/{register-hooks.d.ts → register-hooks.d.mts} +0 -0
@@ -1,307 +0,0 @@
1
- import { readdir, readdirSync, realpath, realpathSync, stat, statSync } from "fs";
2
- import { isAbsolute, posix, resolve } from "path";
3
- import { fileURLToPath } from "url";
4
- import { fdir } from "fdir";
5
- import picomatch from "picomatch";
6
- //#region src/utils.ts
7
- const isReadonlyArray = Array.isArray;
8
- const BACKSLASHES = /\\/g;
9
- const DRIVE_RELATIVE_PATH = /^[A-Za-z]:$/;
10
- const isWin = process.platform === "win32";
11
- const ONLY_PARENT_DIRECTORIES = /^(\/?\.\.)+$/;
12
- function getPartialMatcher(patterns, options = {}) {
13
- const patternsCount = patterns.length;
14
- const patternsParts = Array(patternsCount);
15
- const matchers = Array(patternsCount);
16
- let i, j;
17
- for (i = 0; i < patternsCount; i++) {
18
- const parts = splitPattern(patterns[i]);
19
- patternsParts[i] = parts;
20
- const partsCount = parts.length;
21
- const partMatchers = Array(partsCount);
22
- for (j = 0; j < partsCount; j++) partMatchers[j] = picomatch(parts[j], options);
23
- matchers[i] = partMatchers;
24
- }
25
- return (input) => {
26
- const inputParts = input.split("/");
27
- if (inputParts[0] === ".." && ONLY_PARENT_DIRECTORIES.test(input)) return true;
28
- for (i = 0; i < patternsCount; i++) {
29
- const patternParts = patternsParts[i];
30
- const matcher = matchers[i];
31
- const inputPatternCount = inputParts.length;
32
- const minParts = Math.min(inputPatternCount, patternParts.length);
33
- j = 0;
34
- while (j < minParts) {
35
- const part = patternParts[j];
36
- if (part.includes("/")) return true;
37
- if (!matcher[j](inputParts[j])) break;
38
- if (!options.noglobstar && part === "**") return true;
39
- j++;
40
- }
41
- if (j === inputPatternCount) return true;
42
- }
43
- return false;
44
- };
45
- }
46
- /* node:coverage ignore next 2 */
47
- const WIN32_ROOT_DIR = /^[A-Z]:\/$/i;
48
- const isRoot = isWin ? (p) => WIN32_ROOT_DIR.test(p) : (p) => p === "/";
49
- function buildFormat(cwd, root, absolute) {
50
- if (cwd === root || root.startsWith(`${cwd}/`)) {
51
- if (absolute) {
52
- const start = cwd.length + +!isRoot(cwd);
53
- return (p, isDir) => p.slice(start, isDir ? -1 : void 0) || ".";
54
- }
55
- const prefix = root.slice(cwd.length + 1);
56
- if (prefix) return (p, isDir) => {
57
- if (p === ".") return prefix;
58
- const result = `${prefix}/${p}`;
59
- return isDir ? result.slice(0, -1) : result;
60
- };
61
- return (p, isDir) => isDir && p !== "." ? p.slice(0, -1) : p;
62
- }
63
- if (absolute) return (p) => posix.relative(cwd, p) || ".";
64
- return (p) => posix.relative(cwd, `${root}/${p}`) || ".";
65
- }
66
- function buildRelative(cwd, root) {
67
- if (root.startsWith(`${cwd}/`)) {
68
- const prefix = root.slice(cwd.length + 1);
69
- return (p) => `${prefix}/${p}`;
70
- }
71
- return (p) => {
72
- const result = posix.relative(cwd, `${root}/${p}`);
73
- return p[p.length - 1] === "/" && result !== "" ? `${result}/` : result || ".";
74
- };
75
- }
76
- function ensureNonDriveRelativePath(path) {
77
- return path.replace(DRIVE_RELATIVE_PATH, (match) => `${match}/`);
78
- }
79
- const splitPatternOptions = { parts: true };
80
- function splitPattern(path) {
81
- var _result$parts;
82
- const result = picomatch.scan(path, splitPatternOptions);
83
- return ((_result$parts = result.parts) === null || _result$parts === void 0 ? void 0 : _result$parts.length) ? result.parts : [path];
84
- }
85
- const ESCAPED_WIN32_BACKSLASHES = /\\(?![()[\]{}!+@])/g;
86
- function convertPosixPathToPattern(path) {
87
- return escapePosixPath(path);
88
- }
89
- function convertWin32PathToPattern(path) {
90
- return escapeWin32Path(path).replace(ESCAPED_WIN32_BACKSLASHES, "/");
91
- }
92
- /**
93
- * Converts a path to a pattern depending on the platform.
94
- * Identical to {@link escapePath} on POSIX systems.
95
- * @see {@link https://superchupu.dev/tinyglobby/documentation#convertPathToPattern}
96
- */
97
- /* node:coverage ignore next 3 */
98
- const convertPathToPattern = isWin ? convertWin32PathToPattern : convertPosixPathToPattern;
99
- const POSIX_UNESCAPED_GLOB_SYMBOLS = /(?<!\\)([()[\]{}*?|]|^!|[!+@](?=\()|\\(?![()[\]{}!*+?@|]))/g;
100
- const WIN32_UNESCAPED_GLOB_SYMBOLS = /(?<!\\)([()[\]{}]|^!|[!+@](?=\())/g;
101
- const escapePosixPath = (path) => path.replace(POSIX_UNESCAPED_GLOB_SYMBOLS, "\\$&");
102
- const escapeWin32Path = (path) => path.replace(WIN32_UNESCAPED_GLOB_SYMBOLS, "\\$&");
103
- /**
104
- * Escapes a path's special characters depending on the platform.
105
- * @see {@link https://superchupu.dev/tinyglobby/documentation#escapePath}
106
- */
107
- /* node:coverage ignore next */
108
- const escapePath = isWin ? escapeWin32Path : escapePosixPath;
109
- /**
110
- * Checks if a pattern has dynamic parts.
111
- *
112
- * Has a few minor differences with [`fast-glob`](https://github.com/mrmlnc/fast-glob) for better accuracy:
113
- *
114
- * - Doesn't necessarily return `false` on patterns that include `\`.
115
- * - Returns `true` if the pattern includes parentheses, regardless of them representing one single pattern or not.
116
- * - Returns `true` for unfinished glob extensions i.e. `(h`, `+(h`.
117
- * - Returns `true` for unfinished brace expansions as long as they include `,` or `..`.
118
- *
119
- * @see {@link https://superchupu.dev/tinyglobby/documentation#isDynamicPattern}
120
- */
121
- function isDynamicPattern(pattern, options) {
122
- if ((options === null || options === void 0 ? void 0 : options.caseSensitiveMatch) === false) return true;
123
- const scan = picomatch.scan(pattern);
124
- return scan.isGlob || scan.negated;
125
- }
126
- function log(...tasks) {
127
- console.log(`[tinyglobby ${(/* @__PURE__ */ new Date()).toLocaleTimeString("es")}]`, ...tasks);
128
- }
129
- function ensureStringArray(value) {
130
- return typeof value === "string" ? [value] : value !== null && value !== void 0 ? value : [];
131
- }
132
- //#endregion
133
- //#region src/patterns.ts
134
- const PARENT_DIRECTORY = /^(\/?\.\.)+/;
135
- const ESCAPING_BACKSLASHES = /\\(?=[()[\]{}!*+?@|])/g;
136
- function normalizePattern(pattern, opts, props, isIgnore) {
137
- var _PARENT_DIRECTORY$exe;
138
- const cwd = opts.cwd;
139
- let result = pattern;
140
- if (pattern[pattern.length - 1] === "/") result = pattern.slice(0, -1);
141
- if (result[result.length - 1] !== "*" && opts.expandDirectories) result += "/**";
142
- const escapedCwd = escapePath(cwd);
143
- result = isAbsolute(result.replace(ESCAPING_BACKSLASHES, "")) ? posix.relative(escapedCwd, result) : posix.normalize(result);
144
- const parentDir = (_PARENT_DIRECTORY$exe = PARENT_DIRECTORY.exec(result)) === null || _PARENT_DIRECTORY$exe === void 0 ? void 0 : _PARENT_DIRECTORY$exe[0];
145
- const parts = splitPattern(result);
146
- if (parentDir) {
147
- const n = (parentDir.length + 1) / 3;
148
- let i = 0;
149
- const cwdParts = escapedCwd.split("/");
150
- while (i < n && parts[i + n] === cwdParts[cwdParts.length + i - n]) {
151
- result = result.slice(0, (n - i - 1) * 3) + result.slice((n - i) * 3 + parts[i + n].length + 1) || ".";
152
- i++;
153
- }
154
- const potentialRoot = posix.join(cwd, parentDir.slice(i * 3));
155
- if (potentialRoot[0] !== "." && props.root.length > potentialRoot.length) {
156
- props.root = ensureNonDriveRelativePath(potentialRoot);
157
- props.depthOffset = -n + i;
158
- }
159
- }
160
- if (!isIgnore && props.depthOffset >= 0) {
161
- var _props$commonPath;
162
- (_props$commonPath = props.commonPath) !== null && _props$commonPath !== void 0 || (props.commonPath = parts);
163
- const newCommonPath = [];
164
- const length = Math.min(props.commonPath.length, parts.length);
165
- for (let i = 0; i < length; i++) {
166
- const part = parts[i];
167
- if (part === "**" && !parts[i + 1]) {
168
- newCommonPath.pop();
169
- break;
170
- }
171
- if (i === parts.length - 1 || part !== props.commonPath[i] || isDynamicPattern(part)) break;
172
- newCommonPath.push(part);
173
- }
174
- props.depthOffset = newCommonPath.length;
175
- props.commonPath = newCommonPath;
176
- props.root = ensureNonDriveRelativePath(newCommonPath.length > 0 ? posix.join(cwd, ...newCommonPath) : cwd);
177
- }
178
- return result;
179
- }
180
- function processPatterns(options, patterns, props) {
181
- const matchPatterns = [];
182
- const ignorePatterns = [];
183
- for (const pattern of options.ignore) {
184
- if (!pattern) continue;
185
- if (pattern[0] !== "!" || pattern[1] === "(") ignorePatterns.push(normalizePattern(pattern, options, props, true));
186
- }
187
- for (const pattern of patterns) {
188
- if (!pattern) continue;
189
- if (pattern[0] !== "!" || pattern[1] === "(") matchPatterns.push(normalizePattern(pattern, options, props, false));
190
- else if (pattern[1] !== "!" || pattern[2] === "(") ignorePatterns.push(normalizePattern(pattern.slice(1), options, props, true));
191
- }
192
- return {
193
- match: matchPatterns,
194
- ignore: ignorePatterns
195
- };
196
- }
197
- //#endregion
198
- //#region src/crawler.ts
199
- function buildCrawler(options, patterns) {
200
- const cwd = options.cwd;
201
- const props = {
202
- root: cwd,
203
- depthOffset: 0
204
- };
205
- const processed = processPatterns(options, patterns, props);
206
- if (options.debug) log("internal processing patterns:", processed);
207
- const { absolute, caseSensitiveMatch, debug, dot, followSymbolicLinks, onlyDirectories } = options;
208
- const root = props.root.replace(BACKSLASHES, "");
209
- const matchOptions = {
210
- dot,
211
- nobrace: options.braceExpansion === false,
212
- nocase: !caseSensitiveMatch,
213
- noextglob: options.extglob === false,
214
- noglobstar: options.globstar === false,
215
- posix: true
216
- };
217
- const matcher = picomatch(processed.match, matchOptions);
218
- const ignore = picomatch(processed.ignore, matchOptions);
219
- const partialMatcher = getPartialMatcher(processed.match, matchOptions);
220
- const format = buildFormat(cwd, root, absolute);
221
- const excludeFormatter = absolute ? format : buildFormat(cwd, root, true);
222
- const excludePredicate = (_, p) => {
223
- const relativePath = excludeFormatter(p, true);
224
- return relativePath !== "." && !partialMatcher(relativePath) || ignore(relativePath);
225
- };
226
- let maxDepth;
227
- if (options.deep !== void 0) maxDepth = Math.round(options.deep - props.depthOffset);
228
- const crawler = new fdir({
229
- filters: [debug ? (p, isDirectory) => {
230
- const path = format(p, isDirectory);
231
- const matches = matcher(path) && !ignore(path);
232
- if (matches) log(`matched ${path}`);
233
- return matches;
234
- } : (p, isDirectory) => {
235
- const path = format(p, isDirectory);
236
- return matcher(path) && !ignore(path);
237
- }],
238
- exclude: debug ? (_, p) => {
239
- const skipped = excludePredicate(_, p);
240
- log(`${skipped ? "skipped" : "crawling"} ${p}`);
241
- return skipped;
242
- } : excludePredicate,
243
- fs: options.fs,
244
- pathSeparator: "/",
245
- relativePaths: !absolute,
246
- resolvePaths: absolute,
247
- includeBasePath: absolute,
248
- resolveSymlinks: followSymbolicLinks,
249
- excludeSymlinks: !followSymbolicLinks,
250
- excludeFiles: onlyDirectories,
251
- includeDirs: onlyDirectories || !options.onlyFiles,
252
- maxDepth,
253
- signal: options.signal
254
- }).crawl(root);
255
- if (options.debug) log("internal properties:", {
256
- ...props,
257
- root
258
- });
259
- return [crawler, cwd !== root && !absolute && buildRelative(cwd, root)];
260
- }
261
- //#endregion
262
- //#region src/index.ts
263
- function formatPaths(paths, mapper) {
264
- if (mapper) for (let i = paths.length - 1; i >= 0; i--) paths[i] = mapper(paths[i]);
265
- return paths;
266
- }
267
- const defaultOptions = {
268
- caseSensitiveMatch: true,
269
- debug: !!process.env.TINYGLOBBY_DEBUG,
270
- expandDirectories: true,
271
- followSymbolicLinks: true,
272
- onlyFiles: true
273
- };
274
- function getOptions(options) {
275
- const opts = Object.assign({}, options);
276
- for (const key in defaultOptions) if (opts[key] === void 0) Object.assign(opts, { [key]: defaultOptions[key] });
277
- opts.cwd = (opts.cwd instanceof URL ? fileURLToPath(opts.cwd) : resolve(opts.cwd || process.cwd())).replace(BACKSLASHES, "/");
278
- opts.ignore = ensureStringArray(opts.ignore);
279
- opts.fs && (opts.fs = {
280
- readdir: opts.fs.readdir || readdir,
281
- readdirSync: opts.fs.readdirSync || readdirSync,
282
- realpath: opts.fs.realpath || realpath,
283
- realpathSync: opts.fs.realpathSync || realpathSync,
284
- stat: opts.fs.stat || stat,
285
- statSync: opts.fs.statSync || statSync
286
- });
287
- if (opts.debug) log("globbing with options:", opts);
288
- return opts;
289
- }
290
- function getCrawler(globInput, inputOptions = {}) {
291
- var _ref;
292
- if (globInput && (inputOptions === null || inputOptions === void 0 ? void 0 : inputOptions.patterns)) throw new Error("Cannot pass patterns as both an argument and an option");
293
- const isModern = isReadonlyArray(globInput) || typeof globInput === "string";
294
- const patterns = ensureStringArray((_ref = isModern ? globInput : globInput.patterns) !== null && _ref !== void 0 ? _ref : "**/*");
295
- const options = getOptions(isModern ? inputOptions : globInput);
296
- return patterns.length > 0 ? buildCrawler(options, patterns) : [];
297
- }
298
- async function glob(globInput, options) {
299
- const [crawler, relative] = getCrawler(globInput, options);
300
- return crawler ? formatPaths(await crawler.withPromise(), relative) : [];
301
- }
302
- function globSync(globInput, options) {
303
- const [crawler, relative] = getCrawler(globInput, options);
304
- return crawler ? formatPaths(crawler.sync(), relative) : [];
305
- }
306
- //#endregion
307
- export { convertPathToPattern, escapePath, glob, globSync, isDynamicPattern };
@@ -1,70 +0,0 @@
1
- {
2
- "name": "tinyglobby",
3
- "version": "0.2.17",
4
- "description": "A fast and minimal alternative to globby and fast-glob",
5
- "type": "module",
6
- "main": "./dist/index.cjs",
7
- "module": "./dist/index.mjs",
8
- "types": "./dist/index.d.cts",
9
- "exports": {
10
- ".": {
11
- "import": "./dist/index.mjs",
12
- "require": "./dist/index.cjs"
13
- },
14
- "./package.json": "./package.json"
15
- },
16
- "sideEffects": false,
17
- "files": [
18
- "dist"
19
- ],
20
- "author": "Superchupu",
21
- "license": "MIT",
22
- "keywords": [
23
- "glob",
24
- "patterns",
25
- "tiny",
26
- "fast"
27
- ],
28
- "repository": {
29
- "type": "git",
30
- "url": "git+https://github.com/SuperchupuDev/tinyglobby.git"
31
- },
32
- "bugs": {
33
- "url": "https://github.com/SuperchupuDev/tinyglobby/issues"
34
- },
35
- "homepage": "https://superchupu.dev/tinyglobby",
36
- "funding": {
37
- "url": "https://github.com/sponsors/SuperchupuDev"
38
- },
39
- "dependencies": {
40
- "fdir": "^6.5.0",
41
- "picomatch": "^4.0.4"
42
- },
43
- "devDependencies": {
44
- "@biomejs/biome": "^2.4.16",
45
- "@types/node": "^25.9.1",
46
- "@types/picomatch": "^4.0.3",
47
- "fast-glob": "^3.3.3",
48
- "fs-fixture": "^2.14.0",
49
- "glob": "^13.0.6",
50
- "tinybench": "^6.0.2",
51
- "tsdown": "^0.22.1",
52
- "typescript": "^6.0.3"
53
- },
54
- "engines": {
55
- "node": ">=12.0.0"
56
- },
57
- "scripts": {
58
- "bench": "node benchmark/bench.ts",
59
- "bench:setup": "node benchmark/setup.ts",
60
- "build": "tsdown",
61
- "check": "biome check",
62
- "check:fix": "biome check --write --unsafe",
63
- "format": "biome format --write",
64
- "lint": "biome lint",
65
- "test": "node --test \"test/**/*.ts\"",
66
- "test:coverage": "node --test --experimental-test-coverage \"test/**/*.ts\"",
67
- "test:only": "node --test --test-only \"test/**/*.ts\"",
68
- "typecheck": "tsc --noEmit"
69
- }
70
- }