@unbrained/pm-cli 2026.11.16 → 2026.11.17

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 (399) 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-ERD2RYWM.js → chunk-2WHXFKMY.js} +31 -31
  7. package/dist/cli-bundle/chunks/{chunk-VJLZHOTP.js → chunk-36R3JTAD.js} +2 -2
  8. package/dist/cli-bundle/chunks/{chunk-FZ4XWWLO.js → chunk-3IU2S5UQ.js} +43 -43
  9. package/dist/cli-bundle/chunks/chunk-4FIN2XWC.js +2 -0
  10. package/dist/cli-bundle/chunks/{chunk-NHNM3GIP.js → chunk-5OFMWP3Q.js} +3 -3
  11. package/dist/cli-bundle/chunks/{chunk-2WNORBVN.js → chunk-77MGDTK4.js} +83 -83
  12. package/dist/cli-bundle/chunks/{chunk-F7P42FL5.js → chunk-7K2RUKMK.js} +4 -4
  13. package/dist/cli-bundle/chunks/chunk-7UUPLMCU.js +115 -0
  14. package/dist/cli-bundle/chunks/chunk-ABFHWRLE.js +2 -0
  15. package/dist/cli-bundle/chunks/{chunk-KGOGLKL2.js → chunk-ACLBUVQG.js} +2 -2
  16. package/dist/cli-bundle/chunks/{chunk-DZWRNL6R.js → chunk-ADKDFCVT.js} +2 -2
  17. package/dist/cli-bundle/chunks/chunk-AM26RAG7.js +124 -0
  18. package/dist/cli-bundle/chunks/chunk-CR5GC3VO.js +9 -0
  19. package/dist/cli-bundle/chunks/chunk-DXSZL3T6.js +3 -0
  20. package/dist/cli-bundle/chunks/chunk-FXSLODOK.js +2 -0
  21. package/dist/cli-bundle/chunks/chunk-H64BNM4A.js +8 -0
  22. package/dist/cli-bundle/chunks/{chunk-2D26HRXB.js → chunk-HQYIKAC6.js} +2 -2
  23. package/dist/cli-bundle/chunks/{chunk-I3T2FVUA.js → chunk-KIQNEOKJ.js} +2 -2
  24. package/dist/cli-bundle/chunks/chunk-O4ZSIMNC.js +8 -0
  25. package/dist/cli-bundle/chunks/chunk-QANUQMDL.js +6 -0
  26. package/dist/cli-bundle/chunks/{chunk-4I7YG3VZ.js → chunk-QZNL5XDT.js} +2 -2
  27. package/dist/cli-bundle/chunks/chunk-RXNBNF6O.js +2 -0
  28. package/dist/cli-bundle/chunks/chunk-VLKCFZY6.js +2 -0
  29. package/dist/cli-bundle/chunks/{chunk-J257NZRD.js → chunk-X5TFNFTS.js} +11 -11
  30. package/dist/cli-bundle/chunks/chunk-XP35IEHT.js +2 -0
  31. package/dist/cli-bundle/chunks/chunk-XPBADEUK.js +2 -0
  32. package/dist/cli-bundle/chunks/{chunk-NYN5OR2T.js → chunk-Y4LXVPA5.js} +2 -2
  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-7RVMVXTE.js} +2 -2
  35. package/dist/cli-bundle/chunks/item-transaction-NVX6P3FK.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-3PKQOAYK.js +2 -0
  38. package/dist/cli-bundle/chunks/{register-list-query-AESCVO6H.js → register-list-query-TPZLHFHQ.js} +2 -2
  39. package/dist/cli-bundle/chunks/register-mutation-JG5AEBRJ.js +21 -0
  40. package/dist/cli-bundle/chunks/register-operations-3CNXP46P.js +2 -0
  41. package/dist/cli-bundle/chunks/register-setup-4N56VL2P.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-2MQNIDKG.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-SFATIM77.js → chunk-6JQXDGHM.js} +9 -9
  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-BNLLST32.js +2 -0
  51. package/dist/cli-bundle/focused-chunks/{chunk-7SEPCQV2.js → chunk-DH4DHL6V.js} +2 -2
  52. package/dist/cli-bundle/focused-chunks/chunk-EZXLY6S4.js +2 -0
  53. package/dist/cli-bundle/focused-chunks/{chunk-KRNF3WTC.js → chunk-FPPYE6CY.js} +2 -2
  54. package/dist/cli-bundle/focused-chunks/{chunk-ONM2R32I.js → chunk-GD2YWUAD.js} +50 -50
  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-PDXSMSO5.js → chunk-IXYBN6D2.js} +3 -3
  58. package/dist/cli-bundle/focused-chunks/chunk-MTBC32ZR.js +8 -0
  59. package/dist/cli-bundle/focused-chunks/chunk-OAIAZHRG.js +2 -0
  60. package/dist/cli-bundle/focused-chunks/chunk-OPY43DNJ.js +2 -0
  61. package/dist/cli-bundle/focused-chunks/{chunk-DZMP3VYQ.js → chunk-SESMRMEE.js} +2 -2
  62. package/dist/cli-bundle/focused-chunks/{chunk-PEL4SQXV.js → chunk-VBA4BIHN.js} +2 -2
  63. package/dist/cli-bundle/focused-chunks/{chunk-UBBTBNUY.js → chunk-XJS4COL2.js} +2 -2
  64. package/dist/cli-bundle/focused-chunks/chunk-XS2YZCT5.js +2 -0
  65. package/dist/cli-bundle/focused-chunks/chunk-YWPLBFPC.js +44 -0
  66. package/dist/cli-bundle/focused-chunks/{chunk-6E4X7MQA.js → chunk-ZDY5L2C2.js} +7 -7
  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-U7GDVAH7.js +2 -0
  70. package/dist/cli-bundle/focused-chunks/item-transaction-7C4BH47O.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-SKXVITP5.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 +57 -57
  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/policy/workflow-policy-store.js +1 -1
  93. package/dist/core/store/item-mutation-precondition.d.ts +32 -1
  94. package/dist/core/store/item-mutation-precondition.js +1 -1
  95. package/dist/core/store/item-store.js +1 -1
  96. package/dist/core/store/transaction-coordinator-scope.js +2 -0
  97. package/dist/sdk/authoring.d.ts +1 -1
  98. package/dist/sdk/authoring.js +1 -1
  99. package/dist/sdk/cli-bootstrap.js +1 -1
  100. package/dist/sdk/item-transaction.js +1 -1
  101. package/dist/sdk/lifecycle/copy.js +1 -1
  102. package/dist/sdk/lifecycle/create.js +1 -1
  103. package/dist/sdk/lifecycle/restore.js +1 -1
  104. package/dist/sdk/package-import-adapters.d.ts +14 -1
  105. package/dist/sdk/package-import-adapters.js +1 -1
  106. package/dist/sdk/public-surface.json +1 -1
  107. package/dist/sdk/testing.d.ts +21 -3
  108. package/dist/sdk/testing.js +2 -2
  109. package/dist/sdk/workspace-transaction.js +2 -2
  110. package/docs/EXTENSIONS.md +1 -1
  111. package/docs/MIGRATION_CLI_SIMPLIFICATION.md +1 -1
  112. package/docs/SDK.md +40 -3
  113. package/docs/WORKFLOW_POLICIES.md +23 -0
  114. package/marketplace.json +1 -1
  115. package/node_modules/@opentelemetry/core/build/esm/version.d.ts +1 -1
  116. package/node_modules/@opentelemetry/core/build/esm/version.js +1 -1
  117. package/node_modules/@opentelemetry/core/build/esnext/version.d.ts +1 -1
  118. package/node_modules/@opentelemetry/core/build/esnext/version.js +1 -1
  119. package/node_modules/@opentelemetry/core/build/src/version.d.ts +1 -1
  120. package/node_modules/@opentelemetry/core/build/src/version.js +1 -1
  121. package/node_modules/@opentelemetry/core/package.json +2 -2
  122. package/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/execAsync.d.ts +1 -0
  123. package/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/execAsync.js +1 -0
  124. package/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-bsd.js +3 -2
  125. package/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-darwin.js +3 -2
  126. package/node_modules/@opentelemetry/resources/build/esm/version.d.ts +1 -1
  127. package/node_modules/@opentelemetry/resources/build/esm/version.js +1 -1
  128. package/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/node/machine-id/execAsync.d.ts +1 -0
  129. package/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/node/machine-id/execAsync.js +1 -0
  130. package/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/node/machine-id/getMachineId-bsd.js +3 -2
  131. package/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/node/machine-id/getMachineId-darwin.js +3 -2
  132. package/node_modules/@opentelemetry/resources/build/esnext/version.d.ts +1 -1
  133. package/node_modules/@opentelemetry/resources/build/esnext/version.js +1 -1
  134. package/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/execAsync.d.ts +1 -0
  135. package/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/execAsync.js +2 -1
  136. package/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-bsd.js +2 -1
  137. package/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-darwin.js +2 -1
  138. package/node_modules/@opentelemetry/resources/build/src/version.d.ts +1 -1
  139. package/node_modules/@opentelemetry/resources/build/src/version.js +1 -1
  140. package/node_modules/@opentelemetry/resources/package.json +3 -3
  141. package/node_modules/@opentelemetry/sdk-trace/build/esm/version.d.ts +1 -1
  142. package/node_modules/@opentelemetry/sdk-trace/build/esm/version.js +1 -1
  143. package/node_modules/@opentelemetry/sdk-trace/build/esnext/version.d.ts +1 -1
  144. package/node_modules/@opentelemetry/sdk-trace/build/esnext/version.js +1 -1
  145. package/node_modules/@opentelemetry/sdk-trace/build/src/version.d.ts +1 -1
  146. package/node_modules/@opentelemetry/sdk-trace/build/src/version.js +1 -1
  147. package/node_modules/@opentelemetry/sdk-trace/package.json +5 -5
  148. package/node_modules/@opentelemetry/sdk-trace-base/build/esm/version.d.ts +1 -1
  149. package/node_modules/@opentelemetry/sdk-trace-base/build/esm/version.js +1 -1
  150. package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/version.d.ts +1 -1
  151. package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/version.js +1 -1
  152. package/node_modules/@opentelemetry/sdk-trace-base/build/src/version.d.ts +1 -1
  153. package/node_modules/@opentelemetry/sdk-trace-base/build/src/version.js +1 -1
  154. package/node_modules/@opentelemetry/sdk-trace-base/package.json +7 -7
  155. package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_attributes.cjs +18202 -0
  156. package/node_modules/@opentelemetry/semantic-conventions/{build/src/experimental_attributes.js → dist/experimental_attributes.d.cts} +3328 -1993
  157. package/node_modules/@opentelemetry/semantic-conventions/{build/esnext/experimental_attributes.js → dist/experimental_attributes.d.mts} +3328 -1935
  158. package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_attributes.mjs +16385 -0
  159. package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_events.cjs +325 -0
  160. package/node_modules/@opentelemetry/semantic-conventions/{build/esnext/experimental_events.js → dist/experimental_events.d.cts} +37 -41
  161. package/node_modules/@opentelemetry/semantic-conventions/{build/esm/experimental_events.js → dist/experimental_events.d.mts} +37 -41
  162. package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_events.mjs +295 -0
  163. package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_metrics.cjs +4929 -0
  164. package/node_modules/@opentelemetry/semantic-conventions/{build/esnext/experimental_metrics.js → dist/experimental_metrics.d.cts} +955 -597
  165. package/node_modules/@opentelemetry/semantic-conventions/{build/esm/experimental_metrics.js → dist/experimental_metrics.d.mts} +955 -597
  166. package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_metrics.mjs +4419 -0
  167. package/node_modules/@opentelemetry/semantic-conventions/dist/index-incubating.cjs +2619 -0
  168. package/node_modules/@opentelemetry/semantic-conventions/dist/index-incubating.d.cts +7 -0
  169. package/node_modules/@opentelemetry/semantic-conventions/dist/index-incubating.d.mts +7 -0
  170. package/node_modules/@opentelemetry/semantic-conventions/dist/index-incubating.mjs +7 -0
  171. package/node_modules/@opentelemetry/semantic-conventions/dist/index.cjs +670 -0
  172. package/node_modules/@opentelemetry/semantic-conventions/dist/index.d.cts +6 -0
  173. package/node_modules/@opentelemetry/semantic-conventions/dist/index.d.mts +6 -0
  174. package/node_modules/@opentelemetry/semantic-conventions/dist/index.mjs +6 -0
  175. package/node_modules/@opentelemetry/semantic-conventions/dist/internal/utils.cjs +20 -0
  176. package/node_modules/@opentelemetry/semantic-conventions/dist/internal/utils.mjs +20 -0
  177. package/node_modules/@opentelemetry/semantic-conventions/dist/resource/SemanticResourceAttributes.cjs +1326 -0
  178. package/node_modules/@opentelemetry/semantic-conventions/{build/esnext/resource/SemanticResourceAttributes.d.ts → dist/resource/SemanticResourceAttributes.d.cts} +600 -597
  179. package/node_modules/@opentelemetry/semantic-conventions/{build/src/resource/SemanticResourceAttributes.d.ts → dist/resource/SemanticResourceAttributes.d.mts} +600 -597
  180. package/node_modules/@opentelemetry/semantic-conventions/dist/resource/SemanticResourceAttributes.mjs +1188 -0
  181. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_attributes.cjs +2038 -0
  182. package/node_modules/@opentelemetry/semantic-conventions/{build/esm/stable_attributes.js → dist/stable_attributes.d.cts} +327 -220
  183. package/node_modules/@opentelemetry/semantic-conventions/{build/esnext/stable_attributes.js → dist/stable_attributes.d.mts} +327 -220
  184. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_attributes.mjs +1841 -0
  185. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_events.cjs +9 -0
  186. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_events.d.cts +8 -0
  187. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_events.d.mts +8 -0
  188. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_events.mjs +9 -0
  189. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_metrics.cjs +378 -0
  190. package/node_modules/@opentelemetry/semantic-conventions/{build/src/stable_metrics.js → dist/stable_metrics.d.cts} +69 -63
  191. package/node_modules/@opentelemetry/semantic-conventions/{build/esm/stable_metrics.js → dist/stable_metrics.d.mts} +69 -59
  192. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_metrics.mjs +326 -0
  193. package/node_modules/@opentelemetry/semantic-conventions/dist/trace/SemanticAttributes.cjs +2508 -0
  194. package/node_modules/@opentelemetry/semantic-conventions/{build/esnext/trace/SemanticAttributes.d.ts → dist/trace/SemanticAttributes.d.cts} +1097 -1094
  195. package/node_modules/@opentelemetry/semantic-conventions/{build/src/trace/SemanticAttributes.d.ts → dist/trace/SemanticAttributes.d.mts} +1097 -1094
  196. package/node_modules/@opentelemetry/semantic-conventions/dist/trace/SemanticAttributes.mjs +2236 -0
  197. package/node_modules/@opentelemetry/semantic-conventions/package.json +27 -42
  198. package/node_modules/@sentry/core/build/cjs/client.js +14 -5
  199. package/node_modules/@sentry/core/build/cjs/integrations/express/patch-layer.js +15 -1
  200. package/node_modules/@sentry/core/build/cjs/integrations/http/client-subscriptions.js +10 -1
  201. package/node_modules/@sentry/core/build/cjs/scope.js +0 -1
  202. package/node_modules/@sentry/core/build/cjs/tracing/openai/utils.js +1 -7
  203. package/node_modules/@sentry/core/build/cjs/tracing/sentrySpan.js +11 -0
  204. package/node_modules/@sentry/core/build/cjs/utils/envelope.js +1 -1
  205. package/node_modules/@sentry/core/build/cjs/utils/sql.js +1 -1
  206. package/node_modules/@sentry/core/build/cjs/utils/tunnel.js +9 -0
  207. package/node_modules/@sentry/core/build/cjs/utils/version.js +1 -1
  208. package/node_modules/@sentry/core/build/esm/client.js +14 -5
  209. package/node_modules/@sentry/core/build/esm/integrations/express/patch-layer.js +15 -1
  210. package/node_modules/@sentry/core/build/esm/integrations/http/client-subscriptions.js +10 -1
  211. package/node_modules/@sentry/core/build/esm/package.json +1 -1
  212. package/node_modules/@sentry/core/build/esm/scope.js +0 -1
  213. package/node_modules/@sentry/core/build/esm/tracing/openai/utils.js +1 -7
  214. package/node_modules/@sentry/core/build/esm/tracing/sentrySpan.js +11 -0
  215. package/node_modules/@sentry/core/build/esm/utils/envelope.js +1 -1
  216. package/node_modules/@sentry/core/build/esm/utils/sql.js +1 -1
  217. package/node_modules/@sentry/core/build/esm/utils/tunnel.js +9 -1
  218. package/node_modules/@sentry/core/build/esm/utils/version.js +1 -1
  219. package/node_modules/@sentry/core/build/types/types/datacategory.d.ts +1 -1
  220. package/node_modules/@sentry/core/build/types/utils/tunnel.d.ts +1 -0
  221. package/node_modules/@sentry/core/build/types-ts3.8/types/datacategory.d.ts +1 -1
  222. package/node_modules/@sentry/core/build/types-ts3.8/utils/tunnel.d.ts +1 -0
  223. package/node_modules/@sentry/core/package.json +1 -1
  224. package/node_modules/@sentry/node/build/cjs/integrations/tracing/redis/index.js +1 -1
  225. package/node_modules/@sentry/node/build/esm/package.json +1 -1
  226. package/node_modules/@sentry/node/package.json +6 -6
  227. package/node_modules/@sentry/node-core/build/cjs/integrations/anr/index.js +1 -1
  228. package/node_modules/@sentry/node-core/build/cjs/integrations/contextlines.js +6 -4
  229. package/node_modules/@sentry/node-core/build/cjs/integrations/local-variables/local-variables-async.js +1 -1
  230. package/node_modules/@sentry/node-core/build/cjs/integrations/modules.js +21 -2
  231. package/node_modules/@sentry/node-core/build/cjs/integrations/node-fetch/undici-instrumentation.js +8 -0
  232. package/node_modules/@sentry/node-core/build/esm/integrations/anr/index.js +1 -1
  233. package/node_modules/@sentry/node-core/build/esm/integrations/anr/worker-script.js +2 -2
  234. package/node_modules/@sentry/node-core/build/esm/integrations/contextlines.js +7 -5
  235. package/node_modules/@sentry/node-core/build/esm/integrations/local-variables/local-variables-async.js +1 -1
  236. package/node_modules/@sentry/node-core/build/esm/integrations/local-variables/worker-script.js +1 -1
  237. package/node_modules/@sentry/node-core/build/esm/integrations/node-fetch/undici-instrumentation.js +8 -0
  238. package/node_modules/@sentry/node-core/build/esm/package.json +1 -1
  239. package/node_modules/@sentry/node-core/package.json +9 -9
  240. package/node_modules/@sentry/opentelemetry/build/esm/package.json +1 -1
  241. package/node_modules/@sentry/opentelemetry/package.json +6 -6
  242. package/node_modules/@sentry/server-utils/build/THIRD-PARTY-LICENSES.txt +32 -32
  243. package/node_modules/@sentry/server-utils/build/cjs/integrations/tracing-channel/express/instrumentation.js +12 -1
  244. package/node_modules/@sentry/server-utils/build/esm/integrations/tracing-channel/express/instrumentation.js +13 -2
  245. package/node_modules/@sentry/server-utils/build/esm/package.json +1 -1
  246. package/node_modules/@sentry/server-utils/build/types/integrations/tracing-channel/express/types.d.ts +1 -1
  247. package/node_modules/@sentry/server-utils/build/types-ts3.8/integrations/tracing-channel/express/types.d.ts +1 -1
  248. package/node_modules/@sentry/server-utils/package.json +2 -2
  249. package/node_modules/debug/package.json +1 -1
  250. package/node_modules/es-module-lexer/dist/lexer.asm.js +2 -2
  251. package/node_modules/es-module-lexer/dist/lexer.cjs +1 -1
  252. package/node_modules/es-module-lexer/dist/lexer.js +2 -2
  253. package/node_modules/es-module-lexer/dist/lexer.minimal.asm.js +2 -2
  254. package/node_modules/es-module-lexer/dist/lexer.minimal.cjs +1 -1
  255. package/node_modules/es-module-lexer/dist/lexer.minimal.js +2 -2
  256. package/node_modules/es-module-lexer/package.json +1 -1
  257. package/node_modules/import-in-the-middle/CHANGELOG.md +35 -0
  258. package/node_modules/import-in-the-middle/README.md +15 -1
  259. package/node_modules/import-in-the-middle/create-hook.mjs +370 -155
  260. package/node_modules/import-in-the-middle/index.d.ts +8 -2
  261. package/node_modules/import-in-the-middle/index.js +80 -53
  262. package/node_modules/import-in-the-middle/lib/get-esm-exports.mjs +37 -3
  263. package/node_modules/import-in-the-middle/lib/get-exports.mjs +33 -40
  264. package/node_modules/import-in-the-middle/lib/register.js +81 -16
  265. package/node_modules/import-in-the-middle/package.json +9 -5
  266. package/node_modules/supports-color/browser.js +21 -2
  267. package/node_modules/supports-color/index.js +41 -24
  268. package/node_modules/supports-color/license +1 -1
  269. package/node_modules/supports-color/package.json +11 -6
  270. package/node_modules/supports-color/readme.md +8 -7
  271. package/package.json +4 -4
  272. package/packages/pm-beads/package.json +1 -1
  273. package/packages/pm-calendar/package.json +1 -1
  274. package/packages/pm-command-kit/package.json +1 -1
  275. package/packages/pm-digital-twin/package.json +1 -1
  276. package/packages/pm-governance-audit/package.json +1 -1
  277. package/packages/pm-guide-shell/package.json +1 -1
  278. package/packages/pm-kanban/package.json +1 -1
  279. package/packages/pm-lifecycle-hooks/package.json +1 -1
  280. package/packages/pm-linked-test-adapters/package.json +1 -1
  281. package/packages/pm-search-advanced/package.json +1 -1
  282. package/packages/pm-templates/package.json +1 -1
  283. package/packages/pm-todos/package.json +1 -1
  284. package/packages/pm-vcs/package.json +1 -1
  285. package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
  286. package/plugins/pm-claude/package.json +1 -1
  287. package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
  288. package/plugins/pm-codex/package.json +1 -1
  289. package/plugins/pm-codex/plugin.json +1 -1
  290. package/runtime-dependencies.json +1 -1
  291. package/dist/cli-bundle/chunks/chunk-4WIVCOA7.js +0 -2
  292. package/dist/cli-bundle/chunks/chunk-A3WCP4TU.js +0 -6
  293. package/dist/cli-bundle/chunks/chunk-AB5S6TWE.js +0 -124
  294. package/dist/cli-bundle/chunks/chunk-BV7J3LRH.js +0 -114
  295. package/dist/cli-bundle/chunks/chunk-E4BQRZF2.js +0 -10
  296. package/dist/cli-bundle/chunks/chunk-IGEBFNWE.js +0 -2
  297. package/dist/cli-bundle/chunks/chunk-IYICNCK2.js +0 -2
  298. package/dist/cli-bundle/chunks/chunk-JD3XWF66.js +0 -3
  299. package/dist/cli-bundle/chunks/chunk-JLHD7OQ2.js +0 -2
  300. package/dist/cli-bundle/chunks/chunk-LC4DJVXR.js +0 -2
  301. package/dist/cli-bundle/chunks/chunk-OFZQEQ6X.js +0 -2
  302. package/dist/cli-bundle/chunks/chunk-QGL5IAP4.js +0 -8
  303. package/dist/cli-bundle/chunks/chunk-R24NZ2TB.js +0 -8
  304. package/dist/cli-bundle/chunks/chunk-VO2HSB5F.js +0 -2
  305. package/dist/cli-bundle/chunks/item-transaction-55QTCU2M.js +0 -2
  306. package/dist/cli-bundle/chunks/mutation-admission-WUN7JYVJ.js +0 -2
  307. package/dist/cli-bundle/chunks/register-mutation-SKCEP5QU.js +0 -20
  308. package/dist/cli-bundle/chunks/register-operations-ZT4OYCF3.js +0 -2
  309. package/dist/cli-bundle/chunks/register-setup-JVWNS2TY.js +0 -2
  310. package/dist/cli-bundle/focused-chunks/chunk-3WVMEA2A.js +0 -6
  311. package/dist/cli-bundle/focused-chunks/chunk-5UVJOAUP.js +0 -91
  312. package/dist/cli-bundle/focused-chunks/chunk-5WQ3LNUK.js +0 -78
  313. package/dist/cli-bundle/focused-chunks/chunk-7XHE335U.js +0 -2
  314. package/dist/cli-bundle/focused-chunks/chunk-CZFZCSOX.js +0 -2
  315. package/dist/cli-bundle/focused-chunks/chunk-HPC2M6JD.js +0 -6
  316. package/dist/cli-bundle/focused-chunks/chunk-HR5FEUUL.js +0 -2
  317. package/dist/cli-bundle/focused-chunks/chunk-J7ESCE7M.js +0 -24
  318. package/dist/cli-bundle/focused-chunks/chunk-KWZLY35A.js +0 -2
  319. package/dist/cli-bundle/focused-chunks/chunk-M4IA4LC6.js +0 -8
  320. package/dist/cli-bundle/focused-chunks/chunk-NASE6JC2.js +0 -2
  321. package/dist/cli-bundle/focused-chunks/chunk-QJ647CQE.js +0 -2
  322. package/dist/cli-bundle/focused-chunks/chunk-ZCN35TCK.js +0 -2
  323. package/dist/cli-bundle/focused-chunks/chunk-ZSQ2FT22.js +0 -44
  324. package/dist/cli-bundle/focused-chunks/item-revision-GNKYO6GZ.js +0 -2
  325. package/dist/cli-bundle/focused-chunks/item-transaction-AUUQHR5Z.js +0 -2
  326. package/dist/cli-bundle/focused-chunks/mutation-actor-OBRD7HFZ.js +0 -2
  327. package/dist/cli-bundle/focused-chunks/mutation-admission-6TX3EOJX.js +0 -2
  328. package/dist/cli-bundle/focused-chunks/stage-LERF2YJU.js +0 -2
  329. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_attributes.d.ts +0 -14984
  330. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_attributes.js +0 -14991
  331. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_events.d.ts +0 -291
  332. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_metrics.d.ts +0 -4053
  333. package/node_modules/@opentelemetry/semantic-conventions/build/esm/index-incubating.d.ts +0 -7
  334. package/node_modules/@opentelemetry/semantic-conventions/build/esm/index-incubating.js +0 -13
  335. package/node_modules/@opentelemetry/semantic-conventions/build/esm/index.d.ts +0 -6
  336. package/node_modules/@opentelemetry/semantic-conventions/build/esm/index.js +0 -16
  337. package/node_modules/@opentelemetry/semantic-conventions/build/esm/internal/utils.d.ts +0 -7
  338. package/node_modules/@opentelemetry/semantic-conventions/build/esm/internal/utils.js +0 -23
  339. package/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/SemanticResourceAttributes.d.ts +0 -1453
  340. package/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/SemanticResourceAttributes.js +0 -1250
  341. package/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/index.d.ts +0 -2
  342. package/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/index.js +0 -10
  343. package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.d.ts +0 -1726
  344. package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_events.d.ts +0 -5
  345. package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_events.js +0 -12
  346. package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_metrics.d.ts +0 -308
  347. package/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/SemanticAttributes.d.ts +0 -2664
  348. package/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/SemanticAttributes.js +0 -2360
  349. package/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/index.d.ts +0 -2
  350. package/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/index.js +0 -10
  351. package/node_modules/@opentelemetry/semantic-conventions/build/esm/version.d.ts +0 -2
  352. package/node_modules/@opentelemetry/semantic-conventions/build/esm/version.js +0 -7
  353. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_attributes.d.ts +0 -14984
  354. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_events.d.ts +0 -291
  355. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_metrics.d.ts +0 -4053
  356. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index-incubating.d.ts +0 -7
  357. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index-incubating.js +0 -13
  358. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index.d.ts +0 -6
  359. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index.js +0 -16
  360. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/internal/utils.d.ts +0 -7
  361. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/internal/utils.js +0 -23
  362. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/resource/SemanticResourceAttributes.js +0 -1250
  363. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/resource/index.d.ts +0 -2
  364. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/resource/index.js +0 -10
  365. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_attributes.d.ts +0 -1726
  366. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_events.d.ts +0 -5
  367. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_events.js +0 -12
  368. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_metrics.d.ts +0 -308
  369. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_metrics.js +0 -315
  370. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/trace/SemanticAttributes.js +0 -2360
  371. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/trace/index.d.ts +0 -2
  372. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/trace/index.js +0 -10
  373. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/version.d.ts +0 -2
  374. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/version.js +0 -7
  375. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_attributes.d.ts +0 -14984
  376. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_events.d.ts +0 -291
  377. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_events.js +0 -301
  378. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_metrics.d.ts +0 -4053
  379. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_metrics.js +0 -4072
  380. package/node_modules/@opentelemetry/semantic-conventions/build/src/index-incubating.d.ts +0 -7
  381. package/node_modules/@opentelemetry/semantic-conventions/build/src/index-incubating.js +0 -29
  382. package/node_modules/@opentelemetry/semantic-conventions/build/src/index.d.ts +0 -6
  383. package/node_modules/@opentelemetry/semantic-conventions/build/src/index.js +0 -32
  384. package/node_modules/@opentelemetry/semantic-conventions/build/src/internal/utils.d.ts +0 -7
  385. package/node_modules/@opentelemetry/semantic-conventions/build/src/internal/utils.js +0 -27
  386. package/node_modules/@opentelemetry/semantic-conventions/build/src/resource/SemanticResourceAttributes.js +0 -1255
  387. package/node_modules/@opentelemetry/semantic-conventions/build/src/resource/index.d.ts +0 -2
  388. package/node_modules/@opentelemetry/semantic-conventions/build/src/resource/index.js +0 -26
  389. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_attributes.d.ts +0 -1726
  390. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_attributes.js +0 -1759
  391. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_events.d.ts +0 -5
  392. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_events.js +0 -15
  393. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_metrics.d.ts +0 -308
  394. package/node_modules/@opentelemetry/semantic-conventions/build/src/trace/SemanticAttributes.js +0 -2368
  395. package/node_modules/@opentelemetry/semantic-conventions/build/src/trace/index.d.ts +0 -2
  396. package/node_modules/@opentelemetry/semantic-conventions/build/src/trace/index.js +0 -26
  397. package/node_modules/@opentelemetry/semantic-conventions/build/src/version.d.ts +0 -2
  398. package/node_modules/@opentelemetry/semantic-conventions/build/src/version.js +0 -10
  399. /package/node_modules/import-in-the-middle/{register-hooks.d.ts → register-hooks.d.mts} +0 -0
@@ -0,0 +1,2 @@
1
+ import{a as f,b as I,f as T,i as _,j as M,l as y}from"./chunk-XPBADEUK.js";import{v as g}from"./chunk-CR5GC3VO.js";import{Ec as l,Fc as p}from"./chunk-7UUPLMCU.js";import{A as c,C as u}from"./chunk-5OFMWP3Q.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4175f7f5-a689-5d05-982a-f92e21bc83e7")}catch{}})();(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="3041c268-69c8-58e5-8a68-eaaa3c0dbd3b")}catch{}})();async function ce(e){let{plan:t}=e,r=await y({pmRoot:e.pmRoot,author:e.author,transactionId:t.transaction_id,mutations:t.mutations}),o=new Map(r.warnings.map(i=>[i.index,i.warnings])),s=t.rows.map(i=>{let n={...i};delete n.warnings;let a=o.get(i.index);return a!==void 0&&(n.warnings=a),n});return{validation:r,rows:s}}async function ue(e){let t=e.upsertKey?.trim();if(t!==void 0&&t.length===0)throw new u("Upsert key must be a non-empty field name.",c.USAGE);let r=e.settings??await g(e.pmRoot),o=e.transactionId?.trim()??"",s=o.length>0?o:I(e.input),i=await _(e.pmRoot,r),n=l(i.schema).definitions,a=(n.find(m=>m.metadata_key===t)??n.find(m=>m.key===t||p(m)===t))?.metadata_key??f(t),d=a===void 0?void 0:{key:a,existing:await M(e.pmRoot,r,i,a)};return{...T(e.input,{transactionId:s,idPrefix:r.id_prefix,runtimeFields:n,...d===void 0?{}:{upsert:d}}),transaction_id:s,transaction_id_source:o.length>0?"explicit":"derived",...d===void 0?{}:{upsert_key:d.key}}}export{ce as a,ue as b};
2
+ //# sourceMappingURL=chunk-ABFHWRLE.js.map
@@ -1,3 +1,3 @@
1
- import{a as k,c as I,d as A,e as E,k as T,m as _}from"./chunk-A3WCP4TU.js";import{lb as b,mb as v,nb as R}from"./chunk-J257NZRD.js";import{Cc as f,Fc as g,Gc as a,Xc as w}from"./chunk-F7P42FL5.js";import{Cd as H,ca as D}from"./chunk-AB5S6TWE.js";import{Qc as x,Vc as m,Wc as y}from"./chunk-BV7J3LRH.js";import{we as C}from"./chunk-E4BQRZF2.js";import{A as c,C as p}from"./chunk-NHNM3GIP.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="631e56aa-4d7e-58b6-bbea-a0d320716b82")}catch{}})();(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="0bcdd63c-5fd3-585d-a6c5-9393029ef864")}catch{}})();(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="4dce4f19-071c-54a8-be0d-5975d9e3b34b")}catch{}})();(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="f330a0c5-a967-5383-9c27-efa4a39e0f0d")}catch{}})();(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="f910b36e-c3ed-532e-a679-12547d249443")}catch{}})();function O(t,e){if(typeof t!="string")return;let o=Number.parseInt(t,10);if(!/^\d+$/.test(t.trim())||!Number.isSafeInteger(o))throw new p(`history-compact ${e} must be a non-negative integer.`,c.USAGE);return o}async function S(t,e,o){let r=f(o),n=Date.now(),i=await D(a(e,"ids")),l=i===void 0?void 0:H(i),d=O(e.allOver,"--all-over"),u=O(e.minEntries,"--min-entries");if(e.closed===!0&&e.allStreams===!0)throw new p("history-compact: --closed and --all-streams are mutually exclusive; pick one lifecycle scope.",c.USAGE);let s=e.closed===!0?"closed":e.allStreams===!0?"all-streams":void 0;if((l!==void 0||d!==void 0||s!==void 0)&&typeof e.before=="string")throw new p("history-compact: --before applies only in single-id mode (bulk mode always compacts full streams).",c.USAGE);if(I(t,{ids:l,allOver:d,scope:s}),t!==void 0&&u!==void 0)throw new p("history-compact: --min-entries applies only in bulk mode (single-id mode compacts the named stream).",c.USAGE);if(t===void 0){let h=await A({ids:l,scope:s,allOver:d,minEntries:u,dryRun:e.dryRun===!0,author:a(e,"author"),message:a(e,"message"),force:!!e.force},r);m(h,r),h.totals.items_errored>0&&(process.exitCode=c.GENERIC_FAILURE)}else{let h=await k(t,{before:a(e,"before"),dryRun:e.dryRun===!0,author:a(e,"author"),message:a(e,"message"),force:!!e.force},r);m(h,r)}r.profile&&y(`profile:command=history-compact took_ms=${Date.now()-n}`)}async function N(t,e,o,r){let n=f(r),i=Date.now(),l=await _(t,e,{author:a(o,"author"),message:a(o,"message"),force:!!o.force},n);await w(n,l),m(l,n),n.profile&&y(`profile:command=restore took_ms=${Date.now()-i}`)}async function B(t,e){let o=f(e),r=await T({verify:a(t,"verify"),output:a(t,"output"),hashAlgorithm:a(t,"hashAlgorithm")},o);"format"in r?(C(r),o.quiet||x(`${JSON.stringify(r,null,2)}
1
+ import{a as k,c as I,d as A,e as E,k as T,m as _}from"./chunk-QANUQMDL.js";import{lb as b,mb as v,nb as R}from"./chunk-X5TFNFTS.js";import{Cc as f,Fc as g,Gc as a,Xc as w}from"./chunk-7K2RUKMK.js";import{ca as x,ld as H}from"./chunk-AM26RAG7.js";import{$g as m,Wg as C,ah as y,hj as D}from"./chunk-7UUPLMCU.js";import{A as c,C as p}from"./chunk-5OFMWP3Q.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="631e56aa-4d7e-58b6-bbea-a0d320716b82")}catch{}})();(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="0bcdd63c-5fd3-585d-a6c5-9393029ef864")}catch{}})();(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="4dce4f19-071c-54a8-be0d-5975d9e3b34b")}catch{}})();(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="f330a0c5-a967-5383-9c27-efa4a39e0f0d")}catch{}})();(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="f910b36e-c3ed-532e-a679-12547d249443")}catch{}})();function O(t,e){if(typeof t!="string")return;let o=Number.parseInt(t,10);if(!/^\d+$/.test(t.trim())||!Number.isSafeInteger(o))throw new p(`history-compact ${e} must be a non-negative integer.`,c.USAGE);return o}async function S(t,e,o){let r=f(o),n=Date.now(),i=await x(a(e,"ids")),l=i===void 0?void 0:H(i),d=O(e.allOver,"--all-over"),u=O(e.minEntries,"--min-entries");if(e.closed===!0&&e.allStreams===!0)throw new p("history-compact: --closed and --all-streams are mutually exclusive; pick one lifecycle scope.",c.USAGE);let s=e.closed===!0?"closed":e.allStreams===!0?"all-streams":void 0;if((l!==void 0||d!==void 0||s!==void 0)&&typeof e.before=="string")throw new p("history-compact: --before applies only in single-id mode (bulk mode always compacts full streams).",c.USAGE);if(I(t,{ids:l,allOver:d,scope:s}),t!==void 0&&u!==void 0)throw new p("history-compact: --min-entries applies only in bulk mode (single-id mode compacts the named stream).",c.USAGE);if(t===void 0){let h=await A({ids:l,scope:s,allOver:d,minEntries:u,dryRun:e.dryRun===!0,author:a(e,"author"),message:a(e,"message"),force:!!e.force},r);m(h,r),h.totals.items_errored>0&&(process.exitCode=c.GENERIC_FAILURE)}else{let h=await k(t,{before:a(e,"before"),dryRun:e.dryRun===!0,author:a(e,"author"),message:a(e,"message"),force:!!e.force},r);m(h,r)}r.profile&&y(`profile:command=history-compact took_ms=${Date.now()-n}`)}async function N(t,e,o,r){let n=f(r),i=Date.now(),l=await _(t,e,{author:a(o,"author"),message:a(o,"message"),force:!!o.force},n);await w(n,l),m(l,n),n.profile&&y(`profile:command=restore took_ms=${Date.now()-i}`)}async function B(t,e){let o=f(e),r=await T({verify:a(t,"verify"),output:a(t,"output"),hashAlgorithm:a(t,"hashAlgorithm")},o);"format"in r?(D(r),o.quiet||C(`${JSON.stringify(r,null,2)}
2
2
  `)):m(r,o),"ok"in r&&!r.ok&&(process.exitCode=c.GENERIC_FAILURE)}function Z(t,e){t.command(e?"attest":"history-attest",{hidden:!e}).summary("Export or verify history proof.").option("--verify <file>","Compare retained streams with a detached JSON proof").option("--output <file>","Create a proof file and return a compact receipt").option("--hash-algorithm <name>","Bundle digest algorithm: sha256 (default) or sha512").description("Export exact-byte history commitments, or verify an independently retained proof without tracker writes.").action(B),t.command("restore",{hidden:!e}).summary("Restore a version.").argument("<id>","Item id").argument("<target>","Restore target timestamp or version number").option("--author <value>","Mutation author").option("--message <value>","History message").option("--force","Force ownership/lock override").description("Restore an item to an earlier timestamp or version.").action(N),t.command(e?"redact":"history-redact",{hidden:!e}).summary("Redact sensitive values.").argument("<id>","Item id").option("--literal <value>","Literal; repeatable",g).option("--regex <value>","Raw RegExp source (repeatable; e.g. /var/[a-z]+) or /pattern/flags. Leading-slash input is a literal only when the final unescaped slash is followed by supported JavaScript flag letters or nothing.",g).option("--replacement <value>",'Default: "[redacted]"').option("--dry-run","Preview; no item/history edits").option("--author <value>","Author").option("--message <value>","Audit marker message").option("--force","Override owner/lock").description("Redact and reseal item history.").action(async(o,r,n)=>{let i=f(n),l=Date.now(),d=Array.isArray(r.literal)?r.literal:void 0,u=Array.isArray(r.regex)?r.regex:void 0,s=await E(o,{literal:d,regex:u,replacement:a(r,"replacement"),dryRun:r.dryRun===!0,author:a(r,"author"),message:a(r,"message"),force:!!r.force},i);s.changed&&!s.dry_run&&await w(i,s),m(s,i),i.profile&&y(`profile:command=history-redact took_ms=${Date.now()-l}`)}),t.command(e?"repair":"history-repair",{hidden:!e}).summary("Repair drift.").argument("[id]","Item id (omit with --all)").option("--salvage-tail","Recover invalid tail; requires verified prefix").option("--all","Scan every stream for drift and repair each drifted stream in one audited pass").option("--dry-run","Preview the re-anchor impact without writing the history file").option("--normalize-provenance","Remove invalid provenance; return aggregate-only evidence").option("--author <value>","Mutation author").option("--message <value>","Audit history message for the repair marker entry").option("--force","Force ownership/lock override").description("Re-anchor a drifted item history chain (recompute hashes, reconcile with the on-disk item) and record an audit marker. Use --all to repair every drifted stream.").action(async(o,r,n)=>{let i=f(n),l=Date.now(),d=r.all===!0;v(o,d);let u={dryRun:r.dryRun===!0,author:a(r,"author"),message:a(r,"message"),force:!!r.force,normalizeProvenance:r.normalizeProvenance===!0,salvageTail:r.salvageTail===!0};if(d){let s=await R(u,i);m(s,i),s.totals.failed>0&&(process.exitCode=c.GENERIC_FAILURE)}else{let s=await b(o,u,i);m(s,i)}i.profile&&y(`profile:command=history-repair took_ms=${Date.now()-l}`)}),t.command(e?"compact":"history-compact",{hidden:!e}).summary("Compact streams.").argument("[id]","Item id (omit when using a bulk selector)").option("--before <value>","Compact entries strictly before this version number or ISO timestamp (single-id mode only)").option("--ids <value>","Bulk IDs: comma/newline text, - stdin, or @path file").option("--all-over <n>","Bulk: compact every stream with more than N entries").option("--closed","Bulk: compact only closed (terminal) items' streams").option("--all-streams","Bulk: compact every history stream regardless of lifecycle state").option("--min-entries <n>","Bulk: skip streams with at most N entries (already compact; default 3)").option("--dry-run","Preview compaction impact without writing the history file").option("--author <value>","Mutation author").option("--message <value>","Audit history message for the compaction marker entry").option("--force","Force ownership/lock override").description("Compact item history streams into a synthetic baseline plus retained tail entries. Pass an item id for one stream, or a bulk selector (--ids/--all-over/--closed/--all-streams) to compact many.").action(S)}export{Z as a};
3
- //# sourceMappingURL=chunk-KGOGLKL2.js.map
3
+ //# sourceMappingURL=chunk-ACLBUVQG.js.map
@@ -1,2 +1,2 @@
1
- import{_c as o}from"./chunk-ERD2RYWM.js";import{sa as d}from"./chunk-AB5S6TWE.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="41b0b451-a696-5d06-a19d-df1d6b28963c")}catch{}})();function i(e,t,n){return o(e,d(t),n)}export{i as a};
2
- //# sourceMappingURL=chunk-DZWRNL6R.js.map
1
+ import{_c as o}from"./chunk-2WHXFKMY.js";import{sa as d}from"./chunk-AM26RAG7.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="41b0b451-a696-5d06-a19d-df1d6b28963c")}catch{}})();function i(e,t,n){return o(e,d(t),n)}export{i as a};
2
+ //# sourceMappingURL=chunk-ADKDFCVT.js.map