@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,570 +0,0 @@
1
- import { createRequire } from "module";
2
- import { basename, dirname, normalize, relative, resolve, sep } from "path";
3
- import * as nativeFs from "fs";
4
-
5
- //#region rolldown:runtime
6
- var __require = /* @__PURE__ */ createRequire(import.meta.url);
7
-
8
- //#endregion
9
- //#region src/utils.ts
10
- function cleanPath(path) {
11
- let normalized = normalize(path);
12
- if (normalized.length > 1 && normalized[normalized.length - 1] === sep) normalized = normalized.substring(0, normalized.length - 1);
13
- return normalized;
14
- }
15
- const SLASHES_REGEX = /[\\/]/g;
16
- function convertSlashes(path, separator) {
17
- return path.replace(SLASHES_REGEX, separator);
18
- }
19
- const WINDOWS_ROOT_DIR_REGEX = /^[a-z]:[\\/]$/i;
20
- function isRootDirectory(path) {
21
- return path === "/" || WINDOWS_ROOT_DIR_REGEX.test(path);
22
- }
23
- function normalizePath(path, options) {
24
- const { resolvePaths, normalizePath: normalizePath$1, pathSeparator } = options;
25
- const pathNeedsCleaning = process.platform === "win32" && path.includes("/") || path.startsWith(".");
26
- if (resolvePaths) path = resolve(path);
27
- if (normalizePath$1 || pathNeedsCleaning) path = cleanPath(path);
28
- if (path === ".") return "";
29
- const needsSeperator = path[path.length - 1] !== pathSeparator;
30
- return convertSlashes(needsSeperator ? path + pathSeparator : path, pathSeparator);
31
- }
32
-
33
- //#endregion
34
- //#region src/api/functions/join-path.ts
35
- function joinPathWithBasePath(filename, directoryPath) {
36
- return directoryPath + filename;
37
- }
38
- function joinPathWithRelativePath(root, options) {
39
- return function(filename, directoryPath) {
40
- const sameRoot = directoryPath.startsWith(root);
41
- if (sameRoot) return directoryPath.slice(root.length) + filename;
42
- else return convertSlashes(relative(root, directoryPath), options.pathSeparator) + options.pathSeparator + filename;
43
- };
44
- }
45
- function joinPath(filename) {
46
- return filename;
47
- }
48
- function joinDirectoryPath(filename, directoryPath, separator) {
49
- return directoryPath + filename + separator;
50
- }
51
- function build$7(root, options) {
52
- const { relativePaths, includeBasePath } = options;
53
- return relativePaths && root ? joinPathWithRelativePath(root, options) : includeBasePath ? joinPathWithBasePath : joinPath;
54
- }
55
-
56
- //#endregion
57
- //#region src/api/functions/push-directory.ts
58
- function pushDirectoryWithRelativePath(root) {
59
- return function(directoryPath, paths) {
60
- paths.push(directoryPath.substring(root.length) || ".");
61
- };
62
- }
63
- function pushDirectoryFilterWithRelativePath(root) {
64
- return function(directoryPath, paths, filters) {
65
- const relativePath = directoryPath.substring(root.length) || ".";
66
- if (filters.every((filter) => filter(relativePath, true))) paths.push(relativePath);
67
- };
68
- }
69
- const pushDirectory = (directoryPath, paths) => {
70
- paths.push(directoryPath || ".");
71
- };
72
- const pushDirectoryFilter = (directoryPath, paths, filters) => {
73
- const path = directoryPath || ".";
74
- if (filters.every((filter) => filter(path, true))) paths.push(path);
75
- };
76
- const empty$2 = () => {};
77
- function build$6(root, options) {
78
- const { includeDirs, filters, relativePaths } = options;
79
- if (!includeDirs) return empty$2;
80
- if (relativePaths) return filters && filters.length ? pushDirectoryFilterWithRelativePath(root) : pushDirectoryWithRelativePath(root);
81
- return filters && filters.length ? pushDirectoryFilter : pushDirectory;
82
- }
83
-
84
- //#endregion
85
- //#region src/api/functions/push-file.ts
86
- const pushFileFilterAndCount = (filename, _paths, counts, filters) => {
87
- if (filters.every((filter) => filter(filename, false))) counts.files++;
88
- };
89
- const pushFileFilter = (filename, paths, _counts, filters) => {
90
- if (filters.every((filter) => filter(filename, false))) paths.push(filename);
91
- };
92
- const pushFileCount = (_filename, _paths, counts, _filters) => {
93
- counts.files++;
94
- };
95
- const pushFile = (filename, paths) => {
96
- paths.push(filename);
97
- };
98
- const empty$1 = () => {};
99
- function build$5(options) {
100
- const { excludeFiles, filters, onlyCounts } = options;
101
- if (excludeFiles) return empty$1;
102
- if (filters && filters.length) return onlyCounts ? pushFileFilterAndCount : pushFileFilter;
103
- else if (onlyCounts) return pushFileCount;
104
- else return pushFile;
105
- }
106
-
107
- //#endregion
108
- //#region src/api/functions/get-array.ts
109
- const getArray = (paths) => {
110
- return paths;
111
- };
112
- const getArrayGroup = () => {
113
- return [""].slice(0, 0);
114
- };
115
- function build$4(options) {
116
- return options.group ? getArrayGroup : getArray;
117
- }
118
-
119
- //#endregion
120
- //#region src/api/functions/group-files.ts
121
- const groupFiles = (groups, directory, files) => {
122
- groups.push({
123
- directory,
124
- files,
125
- dir: directory
126
- });
127
- };
128
- const empty = () => {};
129
- function build$3(options) {
130
- return options.group ? groupFiles : empty;
131
- }
132
-
133
- //#endregion
134
- //#region src/api/functions/resolve-symlink.ts
135
- const resolveSymlinksAsync = function(path, state, callback$1) {
136
- const { queue, fs, options: { suppressErrors } } = state;
137
- queue.enqueue();
138
- fs.realpath(path, (error, resolvedPath) => {
139
- if (error) return queue.dequeue(suppressErrors ? null : error, state);
140
- fs.stat(resolvedPath, (error$1, stat) => {
141
- if (error$1) return queue.dequeue(suppressErrors ? null : error$1, state);
142
- if (stat.isDirectory() && isRecursive(path, resolvedPath, state)) return queue.dequeue(null, state);
143
- callback$1(stat, resolvedPath);
144
- queue.dequeue(null, state);
145
- });
146
- });
147
- };
148
- const resolveSymlinks = function(path, state, callback$1) {
149
- const { queue, fs, options: { suppressErrors } } = state;
150
- queue.enqueue();
151
- try {
152
- const resolvedPath = fs.realpathSync(path);
153
- const stat = fs.statSync(resolvedPath);
154
- if (stat.isDirectory() && isRecursive(path, resolvedPath, state)) return;
155
- callback$1(stat, resolvedPath);
156
- } catch (e) {
157
- if (!suppressErrors) throw e;
158
- }
159
- };
160
- function build$2(options, isSynchronous) {
161
- if (!options.resolveSymlinks || options.excludeSymlinks) return null;
162
- return isSynchronous ? resolveSymlinks : resolveSymlinksAsync;
163
- }
164
- function isRecursive(path, resolved, state) {
165
- if (state.options.useRealPaths) return isRecursiveUsingRealPaths(resolved, state);
166
- let parent = dirname(path);
167
- let depth = 1;
168
- while (parent !== state.root && depth < 2) {
169
- const resolvedPath = state.symlinks.get(parent);
170
- const isSameRoot = !!resolvedPath && (resolvedPath === resolved || resolvedPath.startsWith(resolved) || resolved.startsWith(resolvedPath));
171
- if (isSameRoot) depth++;
172
- else parent = dirname(parent);
173
- }
174
- state.symlinks.set(path, resolved);
175
- return depth > 1;
176
- }
177
- function isRecursiveUsingRealPaths(resolved, state) {
178
- return state.visited.includes(resolved + state.options.pathSeparator);
179
- }
180
-
181
- //#endregion
182
- //#region src/api/functions/invoke-callback.ts
183
- const onlyCountsSync = (state) => {
184
- return state.counts;
185
- };
186
- const groupsSync = (state) => {
187
- return state.groups;
188
- };
189
- const defaultSync = (state) => {
190
- return state.paths;
191
- };
192
- const limitFilesSync = (state) => {
193
- return state.paths.slice(0, state.options.maxFiles);
194
- };
195
- const onlyCountsAsync = (state, error, callback$1) => {
196
- report(error, callback$1, state.counts, state.options.suppressErrors);
197
- return null;
198
- };
199
- const defaultAsync = (state, error, callback$1) => {
200
- report(error, callback$1, state.paths, state.options.suppressErrors);
201
- return null;
202
- };
203
- const limitFilesAsync = (state, error, callback$1) => {
204
- report(error, callback$1, state.paths.slice(0, state.options.maxFiles), state.options.suppressErrors);
205
- return null;
206
- };
207
- const groupsAsync = (state, error, callback$1) => {
208
- report(error, callback$1, state.groups, state.options.suppressErrors);
209
- return null;
210
- };
211
- function report(error, callback$1, output, suppressErrors) {
212
- if (error && !suppressErrors) callback$1(error, output);
213
- else callback$1(null, output);
214
- }
215
- function build$1(options, isSynchronous) {
216
- const { onlyCounts, group, maxFiles } = options;
217
- if (onlyCounts) return isSynchronous ? onlyCountsSync : onlyCountsAsync;
218
- else if (group) return isSynchronous ? groupsSync : groupsAsync;
219
- else if (maxFiles) return isSynchronous ? limitFilesSync : limitFilesAsync;
220
- else return isSynchronous ? defaultSync : defaultAsync;
221
- }
222
-
223
- //#endregion
224
- //#region src/api/functions/walk-directory.ts
225
- const readdirOpts = { withFileTypes: true };
226
- const walkAsync = (state, crawlPath, directoryPath, currentDepth, callback$1) => {
227
- state.queue.enqueue();
228
- if (currentDepth < 0) return state.queue.dequeue(null, state);
229
- const { fs } = state;
230
- state.visited.push(crawlPath);
231
- state.counts.directories++;
232
- fs.readdir(crawlPath || ".", readdirOpts, (error, entries = []) => {
233
- callback$1(entries, directoryPath, currentDepth);
234
- state.queue.dequeue(state.options.suppressErrors ? null : error, state);
235
- });
236
- };
237
- const walkSync = (state, crawlPath, directoryPath, currentDepth, callback$1) => {
238
- const { fs } = state;
239
- if (currentDepth < 0) return;
240
- state.visited.push(crawlPath);
241
- state.counts.directories++;
242
- let entries = [];
243
- try {
244
- entries = fs.readdirSync(crawlPath || ".", readdirOpts);
245
- } catch (e) {
246
- if (!state.options.suppressErrors) throw e;
247
- }
248
- callback$1(entries, directoryPath, currentDepth);
249
- };
250
- function build(isSynchronous) {
251
- return isSynchronous ? walkSync : walkAsync;
252
- }
253
-
254
- //#endregion
255
- //#region src/api/queue.ts
256
- /**
257
- * This is a custom stateless queue to track concurrent async fs calls.
258
- * It increments a counter whenever a call is queued and decrements it
259
- * as soon as it completes. When the counter hits 0, it calls onQueueEmpty.
260
- */
261
- var Queue = class {
262
- count = 0;
263
- constructor(onQueueEmpty) {
264
- this.onQueueEmpty = onQueueEmpty;
265
- }
266
- enqueue() {
267
- this.count++;
268
- return this.count;
269
- }
270
- dequeue(error, output) {
271
- if (this.onQueueEmpty && (--this.count <= 0 || error)) {
272
- this.onQueueEmpty(error, output);
273
- if (error) {
274
- output.controller.abort();
275
- this.onQueueEmpty = void 0;
276
- }
277
- }
278
- }
279
- };
280
-
281
- //#endregion
282
- //#region src/api/counter.ts
283
- var Counter = class {
284
- _files = 0;
285
- _directories = 0;
286
- set files(num) {
287
- this._files = num;
288
- }
289
- get files() {
290
- return this._files;
291
- }
292
- set directories(num) {
293
- this._directories = num;
294
- }
295
- get directories() {
296
- return this._directories;
297
- }
298
- /**
299
- * @deprecated use `directories` instead
300
- */
301
- /* c8 ignore next 3 */
302
- get dirs() {
303
- return this._directories;
304
- }
305
- };
306
-
307
- //#endregion
308
- //#region src/api/aborter.ts
309
- /**
310
- * AbortController is not supported on Node 14 so we use this until we can drop
311
- * support for Node 14.
312
- */
313
- var Aborter = class {
314
- aborted = false;
315
- abort() {
316
- this.aborted = true;
317
- }
318
- };
319
-
320
- //#endregion
321
- //#region src/api/walker.ts
322
- var Walker = class {
323
- root;
324
- isSynchronous;
325
- state;
326
- joinPath;
327
- pushDirectory;
328
- pushFile;
329
- getArray;
330
- groupFiles;
331
- resolveSymlink;
332
- walkDirectory;
333
- callbackInvoker;
334
- constructor(root, options, callback$1) {
335
- this.isSynchronous = !callback$1;
336
- this.callbackInvoker = build$1(options, this.isSynchronous);
337
- this.root = normalizePath(root, options);
338
- this.state = {
339
- root: isRootDirectory(this.root) ? this.root : this.root.slice(0, -1),
340
- paths: [""].slice(0, 0),
341
- groups: [],
342
- counts: new Counter(),
343
- options,
344
- queue: new Queue((error, state) => this.callbackInvoker(state, error, callback$1)),
345
- symlinks: /* @__PURE__ */ new Map(),
346
- visited: [""].slice(0, 0),
347
- controller: new Aborter(),
348
- fs: options.fs || nativeFs
349
- };
350
- this.joinPath = build$7(this.root, options);
351
- this.pushDirectory = build$6(this.root, options);
352
- this.pushFile = build$5(options);
353
- this.getArray = build$4(options);
354
- this.groupFiles = build$3(options);
355
- this.resolveSymlink = build$2(options, this.isSynchronous);
356
- this.walkDirectory = build(this.isSynchronous);
357
- }
358
- start() {
359
- this.pushDirectory(this.root, this.state.paths, this.state.options.filters);
360
- this.walkDirectory(this.state, this.root, this.root, this.state.options.maxDepth, this.walk);
361
- return this.isSynchronous ? this.callbackInvoker(this.state, null) : null;
362
- }
363
- walk = (entries, directoryPath, depth) => {
364
- const { paths, options: { filters, resolveSymlinks: resolveSymlinks$1, excludeSymlinks, exclude, maxFiles, signal, useRealPaths, pathSeparator }, controller } = this.state;
365
- if (controller.aborted || signal && signal.aborted || maxFiles && paths.length > maxFiles) return;
366
- const files = this.getArray(this.state.paths);
367
- for (let i = 0; i < entries.length; ++i) {
368
- const entry = entries[i];
369
- if (entry.isFile() || entry.isSymbolicLink() && !resolveSymlinks$1 && !excludeSymlinks) {
370
- const filename = this.joinPath(entry.name, directoryPath);
371
- this.pushFile(filename, files, this.state.counts, filters);
372
- } else if (entry.isDirectory()) {
373
- let path = joinDirectoryPath(entry.name, directoryPath, this.state.options.pathSeparator);
374
- if (exclude && exclude(entry.name, path)) continue;
375
- this.pushDirectory(path, paths, filters);
376
- this.walkDirectory(this.state, path, path, depth - 1, this.walk);
377
- } else if (this.resolveSymlink && entry.isSymbolicLink()) {
378
- let path = joinPathWithBasePath(entry.name, directoryPath);
379
- this.resolveSymlink(path, this.state, (stat, resolvedPath) => {
380
- if (stat.isDirectory()) {
381
- resolvedPath = normalizePath(resolvedPath, this.state.options);
382
- if (exclude && exclude(entry.name, useRealPaths ? resolvedPath : path + pathSeparator)) return;
383
- this.walkDirectory(this.state, resolvedPath, useRealPaths ? resolvedPath : path + pathSeparator, depth - 1, this.walk);
384
- } else {
385
- resolvedPath = useRealPaths ? resolvedPath : path;
386
- const filename = basename(resolvedPath);
387
- const directoryPath$1 = normalizePath(dirname(resolvedPath), this.state.options);
388
- resolvedPath = this.joinPath(filename, directoryPath$1);
389
- this.pushFile(resolvedPath, files, this.state.counts, filters);
390
- }
391
- });
392
- }
393
- }
394
- this.groupFiles(this.state.groups, directoryPath, files);
395
- };
396
- };
397
-
398
- //#endregion
399
- //#region src/api/async.ts
400
- function promise(root, options) {
401
- return new Promise((resolve$1, reject) => {
402
- callback(root, options, (err, output) => {
403
- if (err) return reject(err);
404
- resolve$1(output);
405
- });
406
- });
407
- }
408
- function callback(root, options, callback$1) {
409
- let walker = new Walker(root, options, callback$1);
410
- walker.start();
411
- }
412
-
413
- //#endregion
414
- //#region src/api/sync.ts
415
- function sync(root, options) {
416
- const walker = new Walker(root, options);
417
- return walker.start();
418
- }
419
-
420
- //#endregion
421
- //#region src/builder/api-builder.ts
422
- var APIBuilder = class {
423
- constructor(root, options) {
424
- this.root = root;
425
- this.options = options;
426
- }
427
- withPromise() {
428
- return promise(this.root, this.options);
429
- }
430
- withCallback(cb) {
431
- callback(this.root, this.options, cb);
432
- }
433
- sync() {
434
- return sync(this.root, this.options);
435
- }
436
- };
437
-
438
- //#endregion
439
- //#region src/builder/index.ts
440
- let pm = null;
441
- /* c8 ignore next 6 */
442
- try {
443
- __require.resolve("picomatch");
444
- pm = __require("picomatch");
445
- } catch {}
446
- var Builder = class {
447
- globCache = {};
448
- options = {
449
- maxDepth: Infinity,
450
- suppressErrors: true,
451
- pathSeparator: sep,
452
- filters: []
453
- };
454
- globFunction;
455
- constructor(options) {
456
- this.options = {
457
- ...this.options,
458
- ...options
459
- };
460
- this.globFunction = this.options.globFunction;
461
- }
462
- group() {
463
- this.options.group = true;
464
- return this;
465
- }
466
- withPathSeparator(separator) {
467
- this.options.pathSeparator = separator;
468
- return this;
469
- }
470
- withBasePath() {
471
- this.options.includeBasePath = true;
472
- return this;
473
- }
474
- withRelativePaths() {
475
- this.options.relativePaths = true;
476
- return this;
477
- }
478
- withDirs() {
479
- this.options.includeDirs = true;
480
- return this;
481
- }
482
- withMaxDepth(depth) {
483
- this.options.maxDepth = depth;
484
- return this;
485
- }
486
- withMaxFiles(limit) {
487
- this.options.maxFiles = limit;
488
- return this;
489
- }
490
- withFullPaths() {
491
- this.options.resolvePaths = true;
492
- this.options.includeBasePath = true;
493
- return this;
494
- }
495
- withErrors() {
496
- this.options.suppressErrors = false;
497
- return this;
498
- }
499
- withSymlinks({ resolvePaths = true } = {}) {
500
- this.options.resolveSymlinks = true;
501
- this.options.useRealPaths = resolvePaths;
502
- return this.withFullPaths();
503
- }
504
- withAbortSignal(signal) {
505
- this.options.signal = signal;
506
- return this;
507
- }
508
- normalize() {
509
- this.options.normalizePath = true;
510
- return this;
511
- }
512
- filter(predicate) {
513
- this.options.filters.push(predicate);
514
- return this;
515
- }
516
- onlyDirs() {
517
- this.options.excludeFiles = true;
518
- this.options.includeDirs = true;
519
- return this;
520
- }
521
- exclude(predicate) {
522
- this.options.exclude = predicate;
523
- return this;
524
- }
525
- onlyCounts() {
526
- this.options.onlyCounts = true;
527
- return this;
528
- }
529
- crawl(root) {
530
- return new APIBuilder(root || ".", this.options);
531
- }
532
- withGlobFunction(fn) {
533
- this.globFunction = fn;
534
- return this;
535
- }
536
- /**
537
- * @deprecated Pass options using the constructor instead:
538
- * ```ts
539
- * new fdir(options).crawl("/path/to/root");
540
- * ```
541
- * This method will be removed in v7.0
542
- */
543
- /* c8 ignore next 4 */
544
- crawlWithOptions(root, options) {
545
- this.options = {
546
- ...this.options,
547
- ...options
548
- };
549
- return new APIBuilder(root || ".", this.options);
550
- }
551
- glob(...patterns) {
552
- if (this.globFunction) return this.globWithOptions(patterns);
553
- return this.globWithOptions(patterns, ...[{ dot: true }]);
554
- }
555
- globWithOptions(patterns, ...options) {
556
- const globFn = this.globFunction || pm;
557
- /* c8 ignore next 5 */
558
- if (!globFn) throw new Error("Please specify a glob function to use glob matching.");
559
- var isMatch = this.globCache[patterns.join("\0")];
560
- if (!isMatch) {
561
- isMatch = globFn(patterns, ...options);
562
- this.globCache[patterns.join("\0")] = isMatch;
563
- }
564
- this.options.filters.push((path) => isMatch(path));
565
- return this;
566
- }
567
- };
568
-
569
- //#endregion
570
- export { Builder as fdir };
@@ -1,106 +0,0 @@
1
- {
2
- "name": "fdir",
3
- "version": "6.5.0",
4
- "description": "The fastest directory crawler & globbing alternative to glob, fast-glob, & tiny-glob. Crawls 1m files in < 1s",
5
- "main": "./dist/index.cjs",
6
- "types": "./dist/index.d.cts",
7
- "type": "module",
8
- "scripts": {
9
- "prepublishOnly": "npm run test && npm run build",
10
- "build": "tsdown",
11
- "format": "prettier --write src __tests__ benchmarks",
12
- "test": "vitest run __tests__/",
13
- "test:coverage": "vitest run --coverage __tests__/",
14
- "test:watch": "vitest __tests__/",
15
- "bench": "ts-node benchmarks/benchmark.js",
16
- "bench:glob": "ts-node benchmarks/glob-benchmark.ts",
17
- "bench:fdir": "ts-node benchmarks/fdir-benchmark.ts",
18
- "release": "./scripts/release.sh"
19
- },
20
- "engines": {
21
- "node": ">=12.0.0"
22
- },
23
- "repository": {
24
- "type": "git",
25
- "url": "git+https://github.com/thecodrr/fdir.git"
26
- },
27
- "keywords": [
28
- "util",
29
- "os",
30
- "sys",
31
- "fs",
32
- "walk",
33
- "crawler",
34
- "directory",
35
- "files",
36
- "io",
37
- "tiny-glob",
38
- "glob",
39
- "fast-glob",
40
- "speed",
41
- "javascript",
42
- "nodejs"
43
- ],
44
- "author": "thecodrr <thecodrr@protonmail.com>",
45
- "license": "MIT",
46
- "bugs": {
47
- "url": "https://github.com/thecodrr/fdir/issues"
48
- },
49
- "homepage": "https://github.com/thecodrr/fdir#readme",
50
- "devDependencies": {
51
- "@types/glob": "^8.1.0",
52
- "@types/mock-fs": "^4.13.4",
53
- "@types/node": "^20.9.4",
54
- "@types/picomatch": "^4.0.0",
55
- "@types/tap": "^15.0.11",
56
- "@vitest/coverage-v8": "^0.34.6",
57
- "all-files-in-tree": "^1.1.2",
58
- "benny": "^3.7.1",
59
- "csv-to-markdown-table": "^1.3.1",
60
- "expect": "^29.7.0",
61
- "fast-glob": "^3.3.2",
62
- "fdir1": "npm:fdir@1.2.0",
63
- "fdir2": "npm:fdir@2.1.0",
64
- "fdir3": "npm:fdir@3.4.2",
65
- "fdir4": "npm:fdir@4.1.0",
66
- "fdir5": "npm:fdir@5.0.0",
67
- "fs-readdir-recursive": "^1.1.0",
68
- "get-all-files": "^4.1.0",
69
- "glob": "^10.3.10",
70
- "klaw-sync": "^6.0.0",
71
- "mock-fs": "^5.2.0",
72
- "picomatch": "^4.0.2",
73
- "prettier": "^3.5.3",
74
- "recur-readdir": "0.0.1",
75
- "recursive-files": "^1.0.2",
76
- "recursive-fs": "^2.1.0",
77
- "recursive-readdir": "^2.2.3",
78
- "rrdir": "^12.1.0",
79
- "systeminformation": "^5.21.17",
80
- "tiny-glob": "^0.2.9",
81
- "ts-node": "^10.9.1",
82
- "tsdown": "^0.12.5",
83
- "typescript": "^5.3.2",
84
- "vitest": "^0.34.6",
85
- "walk-sync": "^3.0.0"
86
- },
87
- "peerDependencies": {
88
- "picomatch": "^3 || ^4"
89
- },
90
- "peerDependenciesMeta": {
91
- "picomatch": {
92
- "optional": true
93
- }
94
- },
95
- "module": "./dist/index.mjs",
96
- "exports": {
97
- ".": {
98
- "import": "./dist/index.mjs",
99
- "require": "./dist/index.cjs"
100
- },
101
- "./package.json": "./package.json"
102
- },
103
- "optionalDependencies": {
104
- "picomatch": "4.0.7"
105
- }
106
- }
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2017-present, Jon Schlinkert.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.