@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
@@ -13,8 +13,12 @@ argument parsing or exposing detected values.
13
13
  - Every mutation should have a stable author. Precedence remains explicit
14
14
  invocation author, `PM_AUTHOR`, configured `author_default`, detected
15
15
  harness identity, then `unknown`.
16
- - The secret guard inspects string leaves and returns only detector names and
17
- object paths. It never returns the matched value.
16
+ - The secret guard inspects string leaves and the property names that label
17
+ them, and returns only detector names and object paths, never the matched
18
+ text of a leaf. A flagged property name appears in a path only as a
19
+ positional placeholder (`[key <n>]`). Unflagged property names appear in
20
+ paths as written, so a name that merely equals a credential held elsewhere
21
+ in the payload is not redacted.
18
22
  - `pm health` reports old, unclaimed in-progress work as advisory governance
19
23
  data. It does not change ownership or status.
20
24
  - Historical unknown-author events remain immutable. Maintainers can append an
@@ -189,7 +193,83 @@ whole
189
193
  element body must satisfy the same grammar. `token_budget`, `max_tokens`, numeric
190
194
  counts, masks such as `********` and prose stay clean. A key starts only at the
191
195
  beginning of an identifier, so the scan stays linear. Plain and hyphenated
192
- password keys remain with the password rule, so each value is reported once. No rule is silently
196
+ password keys remain with the password rule, so each value is reported once.
197
+
198
+ A credential-key value that holds a run-time reference is judged by the
199
+ literal it spells
200
+ ([pm-hw00c2](https://github.com/unbraind/pm-cli/blob/main/.agents/pm/issues/pm-hw00c2.toon);
201
+ tracker record excluded from npm). A value that holds `${…}`, `$(…)`,
202
+ `$NAME` or `<…>` is captured whole. So is a value that opens with a quoted
203
+ piece concatenated as a shell concatenates `"${EMPTY}"…`: a reference or
204
+ another quoted piece follows it, or it holds a reference and a letter, digit
205
+ or non-operator symbol (`_ @ # ~`, or a `!` that no operator follows)
206
+ follows. A quoted value followed by an operator (`"…".trim()`,
207
+ `"${KEY}".toUpperCase()`, `"Bearer"+x`) stays a quoted value, and in unquoted
208
+ source a value is code when a binary operator (including `^` and `&`) or member access
209
+ follows its leading references (`${X}.trim`, `$TOKEN.length+1`, `$($(cmd)).length`,
210
+ `$TOKEN+suffix`) or a call's parenthesis follows it (`<string>getToken()`,
211
+ `<string>getToken ()`), and a value led by an angle span is code when the
212
+ span holds a TypeScript type (`<string>`, `<T>`, `<APIKey>`, `<auth.Token>`,
213
+ `<string|undefined>`, `<T[]>`, `<{value:string}>`, a literal type such as
214
+ `<"bearer">`; a
215
+ lowercase word such as `<x>` and an ALL-CAPS
216
+ name such as `<TOKEN>` are placeholders) or expression code
217
+ follows it (`{ token: <t>name ?? fallback }`); a letter,
218
+ digit, quoted piece or other punctuation (`!`, `@`, `#`) after a reference is
219
+ still a literal concatenation. After `=`, a value led
220
+ by an angle span is a TypeScript type assertion or a shell redirection
221
+ (`const token = <string>auth_token || fallback`), never a placeholder; after
222
+ `:` (YAML, prose) `<x>…` is still judged. The constant
223
+ statement exclusion judges the literal (`<string>DEFAULT_TOKEN;`); in a quoted
224
+ value or payload data it is still judged. The literal
225
+ left once its references expand is then judged by the same grammar, length,
226
+ entropy and exclusions as a reference-free value, read in the value's own
227
+ quote context. So `api_key=${EMPTY}"…"`, `api_key=$VAR"…"`, `token: <x>…`,
228
+ `"client_secret": "${EMPTY}…"` and the literal default `${KEY:-…}` are
229
+ reported, while a bare `${API_KEY}`, `$(op read key)`, `<placeholder>`, an
230
+ empty default, and a literal that is a path, URL or word stay clean. At most
231
+ 64 literal characters may come before the first reference; a longer prefix is
232
+ judged as a reference-free value. References and quoted pieces are
233
+ whitespace-free, as every credential-key value is, and the shell control
234
+ operators `|`, `||` and `&&` end one (`$(get_key)||fallback` spells nothing;
235
+ a single `&` is data, as in YAML), as do
236
+ `?` and `:`, which after a reference are code (`$TOKEN?.x`, `$TOKEN??y`), so a
237
+ spaced command substitution is never read as one value, and a key inside it keeps its own
238
+ verdict. The rule also scans its unchanged reference-free grammar as a
239
+ baseline reading, judged on the captured text exactly as before, and a value
240
+ is reported when either reading reports it. So
241
+ the referenced reading only adds findings, and every key the reference-free
242
+ scan visits, including one inside a rejected referenced value, keeps its
243
+ verdict. A key inside a rejected referenced value is also judged once by the
244
+ referenced reading, and the scan then resumes after it, so each character is
245
+ read at most twice. That rescan reaches one level, so a referenced credential
246
+ two references deep is judged only as the reference-free grammar judges it.
247
+
248
+ One `$NAME` policy holds for every key-named rule. A `$NAME` reference
249
+ expands to nothing when NAME is CONSTANT_CASE, the environment-variable
250
+ convention (`$DB_PASSWORD`, `$API_KEY`), and no literal text comes before it
251
+ in its word (`$VAR"…"`, `${EMPTY}$VAR…`), or when it is the whole value, in
252
+ quotes or not (a bare `$password`). Either way the value grammar must have
253
+ read the whole word. An unquoted value did when whitespace or the end of the
254
+ text follows it, optionally after structure such as `;` or `)`, or, for a key
255
+ found inside a rejected reference value, at the closer of the reference that
256
+ encloses it, whatever follows, or, inside a command substitution and outside
257
+ its quoted text, at a shell control operator or redirection (`|`, `&`, `;`,
258
+ `<`, `>`), where its judged value also ends. In a braced reference's word or
259
+ quoted text those characters are data, and any other parenthesis or brace is
260
+ literal data. A quoted value under a quoted key did as well when structure
261
+ and then the next member or element follows, as in compact JSON (`{"password":"$DB_PASSWORD","other":…}`,
262
+ `[{"password":"$DB_PASSWORD"},{"other":…}]`). Any other text after it (`$PW:…`,
263
+ `$PW[…`, `$PW,"…"`, `"$PW""…"`) belongs to the same word, and so does a quote
264
+ after an unquoted value, which may open a concatenated piece
265
+ (`$PW" spaced literal"`) as well as close an enclosing string. In those cases
266
+ the value keeps its `$NAME` text literal, so a bare variable directly before
267
+ the closing quote of a string that holds a whole assignment is judged as
268
+ before.
269
+ A credential-key value led by a lowercase `$name` keeps the reference-free
270
+ reading, in which a `$`-led literal is a placeholder. Any other `$` text is literal, so a
271
+ credential that merely contains `$`, after other characters or escaped as
272
+ `\$`, keeps its characters. No rule is silently
193
273
  gate-only. Repository diagnostics retain hyphenated names; SDK findings retain
194
274
  underscore names. Adding a pattern therefore changes both consumers together.
195
275
 
@@ -204,9 +284,9 @@ spellings are covered:
204
284
  key, at any depth;
205
285
  - for password and credential-key assignments, element content such as
206
286
  `<password>…</password>` or `<client_secret>…</client_secret>`. Element
207
- content is judged like a quoted value of an exact key: at least eight
208
- characters after trimming, with the `${…}` and `$(…)` placeholder
209
- exclusions.
287
+ content is judged like a quoted value of an exact key: a password element
288
+ must spell at least eight literal characters after trimming, once its
289
+ references expand (see below).
210
290
 
211
291
  An *exact* key is the key word alone (`"password"`, `<password>`). A
212
292
  *prefixed* key has other key text before the word, such as `reset-password`,
@@ -216,8 +296,14 @@ member's value inside a container, count only when they contain no
216
296
  whitespace, because labels and JSON Schema descriptions are prose. Array
217
297
  elements under an exact key keep passphrases.
218
298
 
299
+ A quoted value with escapes is matched in a neutralized reading, where its
300
+ own quote characters and line breaks cannot end it early, and the rule's
301
+ predicates (literal length, references, entropy) then judge the same span of
302
+ the decoded original, so a decoded quote keeps its meaning. An escaped `\$`
303
+ decodes to `$`, as JSON and JavaScript readers decode it.
304
+
219
305
  Each candidate key/value is judged by the rule's own value grammar. The
220
- eight-character minimum, the `<…`, `${…}` and `$(…)` placeholder exclusions
306
+ password rule's literal minimum, the credential-key placeholder exclusions
221
307
  and the high-entropy predicate therefore carry over. Bare tokens inside a
222
308
  container are never judged, so `password=[scrubbed]` stays clean. A
223
309
  structured string literal that spans a raw line break is a host-language
@@ -227,6 +313,100 @@ at most twice: once for an exact key, whose lenient walk covers everything
227
313
  inside it, and once for a prefixed key, whose compact walk covers only
228
314
  other prefixed keys.
229
315
 
316
+ A password reference is a placeholder only when it is the whole value
317
+ ([pm-ycgb5g](https://github.com/unbraind/pm-cli/blob/main/.agents/pm/issues/pm-ycgb5g.toon);
318
+ tracker record excluded from npm). The password rule captures the whole
319
+ value and judges the literal it spells once every run-time reference
320
+ expands, in one linear pass that follows nesting: `${NAME}`,
321
+ `${NAME:?message}`, `$(command)` and `<placeholder>` contribute nothing, and
322
+ the word of `${NAME:-word}`, `${NAME:=word}` or `${NAME:+word}` contributes
323
+ its own expansion. Quoted text inside a reference never closes it, so
324
+ `$(printf ')')` is one reference. An unquoted value's references may nest one
325
+ level (`${PW:-${FALLBACK}}`); deeper nesting is followed inside quoted values
326
+ and elements. A quoted value ends at its first closing quote, even inside a
327
+ reference (`"$(op read "item")"`); the reference it cuts contributes nothing,
328
+ so the value stays a placeholder, and a literal after that inner quote is not
329
+ measured. The value must spell at least eight literal characters.
330
+ So `password=${BUILD_PASSWORD}`, `password=$(op read pw)`,
331
+ `password=<placeholder>`, `password=${PREFIX}${SUFFIX}`,
332
+ `password=${PRIMARY:-${SECONDARY}}` and an empty default stay clean, while a
333
+ literal before or after a reference (`password=${EMPTY}"…"`,
334
+ `password=$VAR"…"`, `password="${EMPTY}"…`, `password=…${VAR}`) or a literal
335
+ default is reported. A value may hold up to four whitespace-free quoted
336
+ pieces, as a shell concatenates them; in source code the quote after a value
337
+ usually closes the enclosing string literal, so spaced code after it is never
338
+ read as part of the value. A quoted value that holds whitespace (a
339
+ passphrase) is that quoted literal alone. A prefixed key's whitespace check
340
+ reads the literal, so spaces inside `$(op read pw)` never hide a compact
341
+ credential. Element content keeps its quote characters as text, and may hold
342
+ markup or placeholder spans (`<password><x>…</password>`). Every scan stays
343
+ linear.
344
+
345
+ A key inside a rejected value keeps its own verdict
346
+ ([pm-bn3ppf](https://github.com/unbraind/pm-cli/blob/main/.agents/pm/issues/pm-bn3ppf.toon);
347
+ tracker record excluded from npm). A whole-value reference such as a spaced
348
+ command substitution spells nothing, so its match is rejected. Each key that
349
+ starts inside it is then judged once, so a password assignment written inside
350
+ `$(echo …)`, `${…:?…}` or `<…>` is still reported; a key word that names a
351
+ braced reference's parameter (`${PASSWORD:OFFSET:8}`) is not an assignment. A rejected inner value
352
+ that holds a reference is entered in turn, so a deeper assignment is reached
353
+ too. A rejected password value spells fewer literal characters than a key, so
354
+ every key inside it sits in a reference body; bodies nest a bounded number of
355
+ levels, and the rescan stays linear. Rules with other predicates rely on their
356
+ baseline reading instead.
357
+
358
+ Structured SDK and MCP payloads carry a key as a property name rather than in
359
+ the text
360
+ ([pm-3fbj1f](https://github.com/unbraind/pm-cli/blob/main/.agents/pm/issues/pm-3fbj1f.toon);
361
+ tracker record excluded from npm). A string leaf under a property whose name
362
+ ends with a key-named rule's key is judged as that key's value, exactly as the
363
+ structured pass judges the payload's JSON spelling `{"<name>": <value>}`: the
364
+ same key pattern reads the name, and the rule's own value judge reads the
365
+ leaf. A name is read as written, with camelCase words split (`accessToken`
366
+ reads as `access_Token`), and with only a prefix split before each of its
367
+ last three word boundaries, so `passPhrase`, `APIkey`, `dbPassPhrase` and
368
+ `clientAPIkey` keep their keys. As in the JSON spelling, a leaf is judged leniently when its own
369
+ exact key names it or when it is an array element under an exact key, and
370
+ compactly (whitespace-free) under a prefixed key or as an object member's
371
+ value under any credential key above it. The finding reports the leaf's path,
372
+ never its value. `{ api_key: "…" }`, `{ clientSecret: "…" }` and
373
+ `{ password: ["…"] }` are therefore judged like `{"api_key":"…"}`, and pm's
374
+ own fields such as `token_budget`, `max_tokens` and numeric counts stay clean.
375
+ A payload string is complete data, so it is judged as a decoded literal
376
+ whether or not its JSON spelling needs escapes: its quote characters are
377
+ data, and an unclosed reference in it is literal text (the source-text rule
378
+ for a reference cut by the grammar never applies). Only strings are judged: a
379
+ number, boolean, null or boxed value under a credential key is not a
380
+ credential, and the pass never serializes a value or
381
+ calls `toJSON`. Each leaf is judged once per rule, so the pass is linear in
382
+ the payload. Both passes walk the payload with their own stack, so payload
383
+ depth is not limited by the call stack, and a deeply nested credential is
384
+ blocked like a shallow one
385
+ ([pm-wq9njf](https://github.com/unbraind/pm-cli/blob/main/.agents/pm/issues/pm-wq9njf.toon);
386
+ tracker record excluded from npm). A value that is clean only as unquoted code, such as a call or a
387
+ statement constant, is a string literal in a payload, as it already is in its
388
+ JSON spelling.
389
+
390
+ Property names are text too
391
+ ([pm-x07qz2](https://github.com/unbraind/pm-cli/blob/main/.agents/pm/issues/pm-x07qz2.toon);
392
+ tracker record excluded from npm). Every property name in a payload is judged
393
+ by every rule as its own leaf, so `{ metadata: { "<token>": true } }` is
394
+ reported. A finding for a name carries `property_name: true`. A path never
395
+ repeats a flagged name: its segment becomes the positional placeholder
396
+ `[key <n>]`, the name's index among its object's own entries, in the name's
397
+ own finding and in every finding under it (`$.metadata[key 0].password`).
398
+ Paths for other names are unchanged, and array indices are positions, never
399
+ judged as names. Each distinct name is judged once per scan. Only a name that
400
+ a rule flags on its own is replaced: a name that is not credential-shaped by
401
+ itself stays in the path even when it equals a value that another rule flags.
402
+
403
+ A value too large for a rule's pattern to judge (one of millions of
404
+ characters that exhausts the regex stack) fails closed for itself: the guard
405
+ reports it under that rule with `normalization_incomplete: true` for explicit
406
+ review, and keeps scanning every other leaf, instead of letting the error make
407
+ the whole scan fail open. Any other detector error still yields the
408
+ `secret_guard_scan_failed_open` advisory.
409
+
230
410
  A private address or host path can be legitimate project context. The default
231
411
  remains advisory; a workspace selecting `block` must replace those literals
232
412
  with references or explicitly review a force override. CLI routing paths and
package/docs/SDK.md CHANGED
@@ -2160,7 +2160,36 @@ api.hooks.beforeMutation(({ operation, before, actor }) => {
2160
2160
 
2161
2161
  Hosts never supply a placeholder: an unattributed write reports
2162
2162
  `author: "unknown"` with `author_source: "unknown"`. `runRegisteredMutationGuardForTest`
2163
- resolves an omitted test `actor` from the context's `author` the same way. Preview cost is proportional to the tracker data
2163
+ resolves an omitted test `actor` from the context's `author` the same way.
2164
+
2165
+ #### Transaction rollbacks
2166
+
2167
+ A guard that denies `close`, `delete` or `restore` must not wedge a refused
2168
+ batch half-applied (pm-wb6ktl). When a later step of `commitItemMutations` is
2169
+ refused, the coordinator compensates the steps it applied. It closes or deletes
2170
+ the items it created and restores the items it updated. The exemption needs
2171
+ three proofs. The coordinator itself must be compensating that step, and the
2172
+ step must be one the SDK built from the batch plan for that item and operation,
2173
+ never a step a caller supplied to `commitWorkspaceTransaction`. The item's immutable history must prove the effects are the step's own:
2174
+ a create whose whole history belongs to the transaction, or a restore receipt
2175
+ bound to the history prefix the journal captured. Finally, the ownership check
2176
+ must have held against the locked item stored under that id. Only that write
2177
+ carries `compensation: { transaction_id, step_id }` in the guard context, which
2178
+ the host builds from an allowlist, so a caller cannot supply the field.
2179
+ Guards still judge it. A denial, a thrown error or a timeout is recorded instead
2180
+ of refusing the rollback, and so is an unsatisfied workflow-policy refusal. The
2181
+ rollback's history entry lists each one under
2182
+ `context.transaction_compensation.overridden`, for example
2183
+ `{ source: "mutation_guard", guard: "project:claimant-close", code: "close_requires_claimant" }`.
2184
+ The batch then reports the original refusal. All of the following are judged
2185
+ normally: a write to another item, a write that proposes the scoped id for a
2186
+ different stored item, another operation, an ordinary close that reuses the
2187
+ compensation history message, a direct call of a compensation helper, a
2188
+ caller-supplied coordinator step that calls one, and a legacy receipt identified
2189
+ by its message alone. Pass `compensation` to `runRegisteredMutationGuardForTest` (or
2190
+ `harness.runMutationGuard`) to exercise a guard's rollback branch: it then
2191
+ resolves the recorded overrides instead of refusing, while an ordinary context
2192
+ still resolves `undefined`. As on a host, a dry-run context is never exempted. Preview cost is proportional to the tracker data
2164
2193
  staged, rather than unrelated root-layout project content.
2165
2194
 
2166
2195
  `itemDocumentToMutationOptions` is the companion full-document adapter. It
@@ -4269,8 +4298,16 @@ deferrals as curation work, and strict close refuses the item with
4269
4298
  `close_validation_deferred_fields` until every deferred field has a value.
4270
4299
  Package import adapters (`commitImportedItem`) now run the tracker's
4271
4300
  `beforeMutation` guards as operation `import`, with the importer's actor. A
4272
- guard denial propagates as a refusal; only a held item lock returns the
4273
- skippable `conflictWarning`.
4301
+ guard denial propagates as a refusal. Only a held item lock, or an id that a
4302
+ concurrent importer committed under the lock after the caller's own existence
4303
+ check, returns the skippable `conflictWarning`. The adapter holds its lock as a
4304
+ lease and fences the item write and history append with it (pm-0m64xk). With
4305
+ pm's native file locks, if policies or guards outlast `locks.ttl_seconds` and
4306
+ another writer takes the lock over, the import refuses with `lock_lost` and
4307
+ writes nothing, so the other writer's item is never overwritten. `create` and
4308
+ `pm copy` fence their writes the same way. An extension that handles
4309
+ `lock_acquire` owns its lock lifecycle: its leases commit unfenced, so it must
4310
+ supply its own stale-writer protection.
4274
4311
 
4275
4312
  By default the auto-created command only has a handler. Pass an optional third
4276
4313
  `ImportExportRegistrationOptions` argument to make it a first-class command with a
@@ -96,6 +96,29 @@ does not claim a completed append. This disclosure is tracked by
96
96
  Accepted mutations attach bounded policy decisions to their normal
97
97
  history event. Diagnostics contain policy ids and missing field paths, without
98
98
  copying reviewed content into errors.
99
+
100
+ Every item writer evaluates the policies before it persists anything: create,
101
+ update, close, delete, restore, package imports (operation `import`) and
102
+ `pm copy`. A copy is judged with operation `create`, so a policy that refuses a
103
+ creation also refuses copying an existing item into that shape, and the copy's
104
+ history event carries the same decisions a create records
105
+ ([pm-womkyw](https://github.com/unbraind/pm-cli/blob/main/.agents/pm/issues/pm-womkyw.toon),
106
+ a repository-only tracker record excluded from npm).
107
+
108
+ A transaction's own rollback is the one write a refusal cannot stop. When
109
+ `commitItemMutations` compensates a failed batch, it closes or deletes the
110
+ items it created and restores the items it updated. It does so only while the
111
+ coordinator itself compensates a step the SDK built from the batch plan, after the item's immutable history
112
+ proves those effects are the step's own, and only for the locked item stored
113
+ under that id. The policies
114
+ still evaluate that rollback, and its history event records their decisions. An
115
+ unsatisfied refusal is listed under `transaction_compensation.overridden` and is
116
+ not enforced. Otherwise a policy that refuses closing, deleting or restoring
117
+ would leave the batch half-applied. A write to any other item, any other
118
+ operation, a compensation helper called directly, or a caller-supplied
119
+ coordinator step is judged normally
120
+ ([pm-wb6ktl](https://github.com/unbraind/pm-cli/blob/main/.agents/pm/issues/pm-wb6ktl.toon),
121
+ a repository-only tracker record excluded from npm).
99
122
  If the mandatory refusal audit cannot be appended, the mutation instead raises
100
123
  `workflow_policy_audit_failed` and preserves the original failure in the SDK
101
124
  error's `cause`. Item data remains unchanged; resolve the workspace history lock
package/marketplace.json CHANGED
@@ -1 +1 @@
1
- {"name":"pm","owner":{"name":"unbrained","url":"https://github.com/unbraind/pm-cli"},"description":"Official marketplace for pm CLI — native git-based project management for Claude Code and AI coding agents.","version":"2026.11.16","plugins":[{"name":"pm-claude","source":"./plugins/pm-claude","description":"Native pm CLI integration for Claude Code — 32 MCP tools, 14 workflow skills with slash invocations, 4 subagents, hybrid TUI task tracking, session context injection, and coordination subagents for git-based project management without leaving Claude Code.","version":"2026.11.16","author":{"name":"unbrained","url":"https://github.com/unbraind/pm-cli"},"homepage":"https://github.com/unbraind/pm-cli","repository":"https://github.com/unbraind/pm-cli","license":"MIT","keywords":["pm-cli","project-management","mcp","tasks","agents","workflows","git-native","task-tracker","ai"],"category":"productivity"}]}
1
+ {"name":"pm","owner":{"name":"unbrained","url":"https://github.com/unbraind/pm-cli"},"description":"Official marketplace for pm CLI — native git-based project management for Claude Code and AI coding agents.","version":"2026.11.18","plugins":[{"name":"pm-claude","source":"./plugins/pm-claude","description":"Native pm CLI integration for Claude Code — 32 MCP tools, 14 workflow skills with slash invocations, 4 subagents, hybrid TUI task tracking, session context injection, and coordination subagents for git-based project management without leaving Claude Code.","version":"2026.11.18","author":{"name":"unbrained","url":"https://github.com/unbraind/pm-cli"},"homepage":"https://github.com/unbraind/pm-cli","repository":"https://github.com/unbraind/pm-cli","license":"MIT","keywords":["pm-cli","project-management","mcp","tasks","agents","workflows","git-native","task-tracker","ai"],"category":"productivity"}]}
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "2.12.0";
1
+ export declare const VERSION = "2.12.1";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -3,5 +3,5 @@
3
3
  * SPDX-License-Identifier: Apache-2.0
4
4
  */
5
5
  // this is autogenerated file, see scripts/version-update.js
6
- export const VERSION = '2.12.0';
6
+ export const VERSION = '2.12.1';
7
7
  //# sourceMappingURL=version.js.map
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "2.12.0";
1
+ export declare const VERSION = "2.12.1";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -3,5 +3,5 @@
3
3
  * SPDX-License-Identifier: Apache-2.0
4
4
  */
5
5
  // this is autogenerated file, see scripts/version-update.js
6
- export const VERSION = '2.12.0';
6
+ export const VERSION = '2.12.1';
7
7
  //# sourceMappingURL=version.js.map
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "2.12.0";
1
+ export declare const VERSION = "2.12.1";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -6,5 +6,5 @@
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.VERSION = void 0;
8
8
  // this is autogenerated file, see scripts/version-update.js
9
- exports.VERSION = '2.12.0';
9
+ exports.VERSION = '2.12.1';
10
10
  //# sourceMappingURL=version.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentelemetry/core",
3
- "version": "2.12.0",
3
+ "version": "2.12.1",
4
4
  "description": "OpenTelemetry Core provides constants and utilities shared by all OpenTelemetry SDK packages.",
5
5
  "main": "build/src/index.js",
6
6
  "module": "build/esm/index.js",
@@ -91,5 +91,5 @@
91
91
  },
92
92
  "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-core",
93
93
  "sideEffects": false,
94
- "gitHead": "92b844e8aa7d9655e4b3560154e912c4c1ced64d"
94
+ "gitHead": "8795a06d2c025d5dc454d85cec785849844cc5d9"
95
95
  }
@@ -1,4 +1,5 @@
1
1
  /// <reference types="node" />
2
2
  import * as child_process from 'child_process';
3
3
  export declare const execAsync: typeof child_process.exec.__promisify__;
4
+ export declare const execFileAsync: typeof child_process.execFile.__promisify__;
4
5
  //# sourceMappingURL=execAsync.d.ts.map
@@ -5,4 +5,5 @@
5
5
  import * as child_process from 'child_process';
6
6
  import * as util from 'util';
7
7
  export const execAsync = util.promisify(child_process.exec);
8
+ export const execFileAsync = util.promisify(child_process.execFile);
8
9
  //# sourceMappingURL=execAsync.js.map
@@ -3,8 +3,9 @@
3
3
  * SPDX-License-Identifier: Apache-2.0
4
4
  */
5
5
  import { promises as fs } from 'fs';
6
- import { execAsync } from './execAsync';
6
+ import { execFileAsync } from './execAsync';
7
7
  import { diag } from '@opentelemetry/api';
8
+ const EXEC_TIMEOUT_MS = 5000;
8
9
  export async function getMachineId() {
9
10
  try {
10
11
  const result = await fs.readFile('/etc/hostid', { encoding: 'utf8' });
@@ -14,7 +15,7 @@ export async function getMachineId() {
14
15
  diag.debug(`error reading machine id: ${e}`);
15
16
  }
16
17
  try {
17
- const result = await execAsync('kenv -q smbios.system.uuid');
18
+ const result = await execFileAsync('/bin/kenv', ['-q', 'smbios.system.uuid'], { timeout: EXEC_TIMEOUT_MS });
18
19
  return result.stdout.trim();
19
20
  }
20
21
  catch (e) {
@@ -2,11 +2,12 @@
2
2
  * Copyright The OpenTelemetry Authors
3
3
  * SPDX-License-Identifier: Apache-2.0
4
4
  */
5
- import { execAsync } from './execAsync';
5
+ import { execFileAsync } from './execAsync';
6
6
  import { diag } from '@opentelemetry/api';
7
+ const EXEC_TIMEOUT_MS = 5000;
7
8
  export async function getMachineId() {
8
9
  try {
9
- const result = await execAsync('ioreg -rd1 -c "IOPlatformExpertDevice"');
10
+ const result = await execFileAsync('/usr/sbin/ioreg', ['-rd1', '-c', 'IOPlatformExpertDevice'], { timeout: EXEC_TIMEOUT_MS });
10
11
  const idLine = result.stdout
11
12
  .split('\n')
12
13
  .find(line => line.includes('IOPlatformUUID'));
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "2.12.0";
1
+ export declare const VERSION = "2.12.1";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -3,5 +3,5 @@
3
3
  * SPDX-License-Identifier: Apache-2.0
4
4
  */
5
5
  // this is autogenerated file, see scripts/version-update.js
6
- export const VERSION = '2.12.0';
6
+ export const VERSION = '2.12.1';
7
7
  //# sourceMappingURL=version.js.map
@@ -1,4 +1,5 @@
1
1
  /// <reference types="node" />
2
2
  import * as child_process from 'child_process';
3
3
  export declare const execAsync: typeof child_process.exec.__promisify__;
4
+ export declare const execFileAsync: typeof child_process.execFile.__promisify__;
4
5
  //# sourceMappingURL=execAsync.d.ts.map
@@ -5,4 +5,5 @@
5
5
  import * as child_process from 'child_process';
6
6
  import * as util from 'util';
7
7
  export const execAsync = util.promisify(child_process.exec);
8
+ export const execFileAsync = util.promisify(child_process.execFile);
8
9
  //# sourceMappingURL=execAsync.js.map
@@ -3,8 +3,9 @@
3
3
  * SPDX-License-Identifier: Apache-2.0
4
4
  */
5
5
  import { promises as fs } from 'fs';
6
- import { execAsync } from './execAsync';
6
+ import { execFileAsync } from './execAsync';
7
7
  import { diag } from '@opentelemetry/api';
8
+ const EXEC_TIMEOUT_MS = 5000;
8
9
  export async function getMachineId() {
9
10
  try {
10
11
  const result = await fs.readFile('/etc/hostid', { encoding: 'utf8' });
@@ -14,7 +15,7 @@ export async function getMachineId() {
14
15
  diag.debug(`error reading machine id: ${e}`);
15
16
  }
16
17
  try {
17
- const result = await execAsync('kenv -q smbios.system.uuid');
18
+ const result = await execFileAsync('/bin/kenv', ['-q', 'smbios.system.uuid'], { timeout: EXEC_TIMEOUT_MS });
18
19
  return result.stdout.trim();
19
20
  }
20
21
  catch (e) {
@@ -2,11 +2,12 @@
2
2
  * Copyright The OpenTelemetry Authors
3
3
  * SPDX-License-Identifier: Apache-2.0
4
4
  */
5
- import { execAsync } from './execAsync';
5
+ import { execFileAsync } from './execAsync';
6
6
  import { diag } from '@opentelemetry/api';
7
+ const EXEC_TIMEOUT_MS = 5000;
7
8
  export async function getMachineId() {
8
9
  try {
9
- const result = await execAsync('ioreg -rd1 -c "IOPlatformExpertDevice"');
10
+ const result = await execFileAsync('/usr/sbin/ioreg', ['-rd1', '-c', 'IOPlatformExpertDevice'], { timeout: EXEC_TIMEOUT_MS });
10
11
  const idLine = result.stdout
11
12
  .split('\n')
12
13
  .find(line => line.includes('IOPlatformUUID'));
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "2.12.0";
1
+ export declare const VERSION = "2.12.1";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -3,5 +3,5 @@
3
3
  * SPDX-License-Identifier: Apache-2.0
4
4
  */
5
5
  // this is autogenerated file, see scripts/version-update.js
6
- export const VERSION = '2.12.0';
6
+ export const VERSION = '2.12.1';
7
7
  //# sourceMappingURL=version.js.map
@@ -1,4 +1,5 @@
1
1
  /// <reference types="node" />
2
2
  import * as child_process from 'child_process';
3
3
  export declare const execAsync: typeof child_process.exec.__promisify__;
4
+ export declare const execFileAsync: typeof child_process.execFile.__promisify__;
4
5
  //# sourceMappingURL=execAsync.d.ts.map
@@ -4,8 +4,9 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.execAsync = void 0;
7
+ exports.execFileAsync = exports.execAsync = void 0;
8
8
  const child_process = require("child_process");
9
9
  const util = require("util");
10
10
  exports.execAsync = util.promisify(child_process.exec);
11
+ exports.execFileAsync = util.promisify(child_process.execFile);
11
12
  //# sourceMappingURL=execAsync.js.map
@@ -8,6 +8,7 @@ exports.getMachineId = void 0;
8
8
  const fs_1 = require("fs");
9
9
  const execAsync_1 = require("./execAsync");
10
10
  const api_1 = require("@opentelemetry/api");
11
+ const EXEC_TIMEOUT_MS = 5000;
11
12
  async function getMachineId() {
12
13
  try {
13
14
  const result = await fs_1.promises.readFile('/etc/hostid', { encoding: 'utf8' });
@@ -17,7 +18,7 @@ async function getMachineId() {
17
18
  api_1.diag.debug(`error reading machine id: ${e}`);
18
19
  }
19
20
  try {
20
- const result = await (0, execAsync_1.execAsync)('kenv -q smbios.system.uuid');
21
+ const result = await (0, execAsync_1.execFileAsync)('/bin/kenv', ['-q', 'smbios.system.uuid'], { timeout: EXEC_TIMEOUT_MS });
21
22
  return result.stdout.trim();
22
23
  }
23
24
  catch (e) {
@@ -7,9 +7,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.getMachineId = void 0;
8
8
  const execAsync_1 = require("./execAsync");
9
9
  const api_1 = require("@opentelemetry/api");
10
+ const EXEC_TIMEOUT_MS = 5000;
10
11
  async function getMachineId() {
11
12
  try {
12
- const result = await (0, execAsync_1.execAsync)('ioreg -rd1 -c "IOPlatformExpertDevice"');
13
+ const result = await (0, execAsync_1.execFileAsync)('/usr/sbin/ioreg', ['-rd1', '-c', 'IOPlatformExpertDevice'], { timeout: EXEC_TIMEOUT_MS });
13
14
  const idLine = result.stdout
14
15
  .split('\n')
15
16
  .find(line => line.includes('IOPlatformUUID'));
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "2.12.0";
1
+ export declare const VERSION = "2.12.1";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -6,5 +6,5 @@
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.VERSION = void 0;
8
8
  // this is autogenerated file, see scripts/version-update.js
9
- exports.VERSION = '2.12.0';
9
+ exports.VERSION = '2.12.1';
10
10
  //# sourceMappingURL=version.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentelemetry/resources",
3
- "version": "2.12.0",
3
+ "version": "2.12.1",
4
4
  "description": "OpenTelemetry SDK resources",
5
5
  "main": "build/src/index.js",
6
6
  "module": "build/esm/index.js",
@@ -82,11 +82,11 @@
82
82
  "@opentelemetry/api": ">=1.3.0 <1.10.0"
83
83
  },
84
84
  "dependencies": {
85
- "@opentelemetry/core": "2.12.0",
85
+ "@opentelemetry/core": "2.12.1",
86
86
  "@opentelemetry/semantic-conventions": "^1.29.0",
87
87
  "@opentelemetry/api": "1.9.1"
88
88
  },
89
89
  "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-resources",
90
90
  "sideEffects": false,
91
- "gitHead": "92b844e8aa7d9655e4b3560154e912c4c1ced64d"
91
+ "gitHead": "8795a06d2c025d5dc454d85cec785849844cc5d9"
92
92
  }
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "2.12.0";
1
+ export declare const VERSION = "2.12.1";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -3,5 +3,5 @@
3
3
  * SPDX-License-Identifier: Apache-2.0
4
4
  */
5
5
  // this is autogenerated file, see scripts/version-update.js
6
- export const VERSION = '2.12.0';
6
+ export const VERSION = '2.12.1';
7
7
  //# sourceMappingURL=version.js.map
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "2.12.0";
1
+ export declare const VERSION = "2.12.1";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -3,5 +3,5 @@
3
3
  * SPDX-License-Identifier: Apache-2.0
4
4
  */
5
5
  // this is autogenerated file, see scripts/version-update.js
6
- export const VERSION = '2.12.0';
6
+ export const VERSION = '2.12.1';
7
7
  //# sourceMappingURL=version.js.map