@unbrained/pm-cli 2026.12.1 → 2026.12.3

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 (376) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/dist/cli/commander-usage.js +4 -4
  3. package/dist/cli/expected-revisions.js +1 -1
  4. package/dist/cli/extension-command-help.js +4 -4
  5. package/dist/cli/main.js +5 -5
  6. package/dist/cli/runtime/invocation-rewrites.js +1 -1
  7. package/dist/cli/runtime-field-commands.js +2 -0
  8. package/dist/cli-bundle/bundle-manifest.json +1 -1
  9. package/dist/cli-bundle/chunks/chunk-3ESBFEQC.js +2 -0
  10. package/dist/cli-bundle/chunks/chunk-46AZP5QW.js +2 -0
  11. package/dist/cli-bundle/chunks/{chunk-OBPO6V7H.js → chunk-5WTBF4M4.js} +2 -2
  12. package/dist/cli-bundle/chunks/{chunk-3KEMIPKG.js → chunk-6TOZQ5BQ.js} +2 -2
  13. package/dist/cli-bundle/chunks/{chunk-4YYFY33T.js → chunk-AHVOEE7F.js} +2 -2
  14. package/dist/cli-bundle/chunks/chunk-CQHB3ZZH.js +2 -0
  15. package/dist/cli-bundle/chunks/chunk-DZPOS3YT.js +2 -0
  16. package/dist/cli-bundle/chunks/{chunk-OKEJ4U2I.js → chunk-E5ADC3HT.js} +65 -65
  17. package/dist/cli-bundle/chunks/{chunk-SY5C3U32.js → chunk-E5HO7HWP.js} +2 -2
  18. package/dist/cli-bundle/chunks/{chunk-3HKPVOAN.js → chunk-EDJ3KR2H.js} +2 -2
  19. package/dist/cli-bundle/chunks/{chunk-XME6GIFQ.js → chunk-FWQNWPIV.js} +2 -2
  20. package/dist/cli-bundle/chunks/{chunk-CWPR234D.js → chunk-H4U3LEOD.js} +2 -2
  21. package/dist/cli-bundle/chunks/{chunk-MZZ4ZJ5Z.js → chunk-HNMED75Y.js} +2 -2
  22. package/dist/cli-bundle/chunks/{chunk-U7RBJGLF.js → chunk-HPCMM74Q.js} +22 -22
  23. package/dist/cli-bundle/chunks/{chunk-WSEIEDEK.js → chunk-ITM4AMVM.js} +2 -2
  24. package/dist/cli-bundle/chunks/{chunk-Q6K7HWZ7.js → chunk-IW4A3I4N.js} +2 -2
  25. package/dist/cli-bundle/chunks/{chunk-4YQMQOUO.js → chunk-JJ73G5UT.js} +52 -52
  26. package/dist/cli-bundle/chunks/chunk-L4HMFRHB.js +2 -0
  27. package/dist/cli-bundle/chunks/{chunk-YSVOXCYH.js → chunk-LTQWPQ7H.js} +2 -2
  28. package/dist/cli-bundle/chunks/{chunk-Q6GLSAJY.js → chunk-MRT3ADO4.js} +2 -2
  29. package/dist/cli-bundle/chunks/{chunk-ZL6J6JYT.js → chunk-PBMLIV74.js} +2 -2
  30. package/dist/cli-bundle/chunks/{chunk-NA6D75V5.js → chunk-PJMGWJKU.js} +2 -2
  31. package/dist/cli-bundle/chunks/chunk-Q2HMDV56.js +9 -0
  32. package/dist/cli-bundle/chunks/{chunk-OXC5KBIQ.js → chunk-RRBNCL63.js} +2 -2
  33. package/dist/cli-bundle/chunks/{chunk-CBUC4X7Q.js → chunk-TDOF7BKO.js} +3 -3
  34. package/dist/cli-bundle/chunks/chunk-UXEZXGAD.js +113 -0
  35. package/dist/cli-bundle/chunks/{chunk-PCDTWL6V.js → chunk-W7HA65EO.js} +2 -2
  36. package/dist/cli-bundle/chunks/{chunk-I4SPJQQI.js → chunk-XGNUDSCG.js} +3 -3
  37. package/dist/cli-bundle/chunks/{chunk-AHV3CSQG.js → chunk-XKJ5NWQ7.js} +2 -2
  38. package/dist/cli-bundle/chunks/{field-option-collisions-BBGTV7AD.js → field-option-collisions-DXKTKW6J.js} +2 -2
  39. package/dist/cli-bundle/chunks/item-revision-DXEF4XBU.js +2 -0
  40. package/dist/cli-bundle/chunks/item-transaction-EANA7V4W.js +2 -0
  41. package/dist/cli-bundle/chunks/{linked-resource-value-list-E2DX52LY.js → linked-resource-value-list-5JRGUDUB.js} +2 -2
  42. package/dist/cli-bundle/chunks/{mutation-actor-NHN33ITJ.js → mutation-actor-S5G7FMNG.js} +2 -2
  43. package/dist/cli-bundle/chunks/{mutation-admission-PGKJTCG6.js → mutation-admission-HQVNPOXV.js} +2 -2
  44. package/dist/cli-bundle/chunks/{register-list-query-7S5QWDTI.js → register-list-query-SQF5PSJ4.js} +2 -2
  45. package/dist/cli-bundle/chunks/{register-mutation-2F6JUBST.js → register-mutation-4AQ4CEBL.js} +2 -2
  46. package/dist/cli-bundle/chunks/{register-operations-ET3UKPYK.js → register-operations-76P7OM4P.js} +2 -2
  47. package/dist/cli-bundle/chunks/{register-setup-I63QTFCU.js → register-setup-T6OEOZK3.js} +2 -2
  48. package/dist/cli-bundle/chunks/{stage-4ZCF74G4.js → stage-KUICZHSF.js} +2 -2
  49. package/dist/cli-bundle/focused-chunks/{chunk-4SCFAWAW.js → chunk-3LHBKFPD.js} +2 -2
  50. package/dist/cli-bundle/focused-chunks/chunk-4DDXERKN.js +2 -0
  51. package/dist/cli-bundle/focused-chunks/{chunk-JPZGC3W4.js → chunk-4YU75CWI.js} +2 -2
  52. package/dist/cli-bundle/focused-chunks/{chunk-TXTPAFHJ.js → chunk-5JQVPQMN.js} +2 -2
  53. package/dist/cli-bundle/focused-chunks/{chunk-KNBGHCIP.js → chunk-5Z4DXYBZ.js} +2 -2
  54. package/dist/cli-bundle/focused-chunks/chunk-7DOP5HEZ.js +44 -0
  55. package/dist/cli-bundle/focused-chunks/{chunk-TR22GU7M.js → chunk-AX4RBJ7B.js} +2 -2
  56. package/dist/cli-bundle/focused-chunks/{chunk-7A6SEZEY.js → chunk-BEHQCHQV.js} +2 -2
  57. package/dist/cli-bundle/focused-chunks/chunk-BUIF6CMZ.js +2 -0
  58. package/dist/cli-bundle/focused-chunks/chunk-E2IWEJL5.js +3 -0
  59. package/dist/cli-bundle/focused-chunks/chunk-GBU7GKNJ.js +2 -0
  60. package/dist/cli-bundle/focused-chunks/{chunk-EQCQTYKO.js → chunk-K35KTBDZ.js} +2 -2
  61. package/dist/cli-bundle/focused-chunks/{chunk-VQIC3UZB.js → chunk-KNST4PGF.js} +2 -2
  62. package/dist/cli-bundle/focused-chunks/{chunk-P2H3GTJK.js → chunk-L2XJB5PK.js} +2 -2
  63. package/dist/cli-bundle/focused-chunks/chunk-L6NOGC4N.js +100 -0
  64. package/dist/cli-bundle/focused-chunks/{chunk-VK3IE3TS.js → chunk-LWIIDPAV.js} +2 -2
  65. package/dist/cli-bundle/focused-chunks/{chunk-6IY5CVGJ.js → chunk-M54BMYG4.js} +2 -2
  66. package/dist/cli-bundle/focused-chunks/{chunk-6BKT6XQN.js → chunk-NEK7RX3N.js} +2 -2
  67. package/dist/cli-bundle/focused-chunks/{chunk-BHNBPCHP.js → chunk-OKGWIW6C.js} +2 -2
  68. package/dist/cli-bundle/focused-chunks/{chunk-2DGKVXFT.js → chunk-RFDSSOTZ.js} +2 -2
  69. package/dist/cli-bundle/focused-chunks/chunk-SSX5YBDC.js +2 -0
  70. package/dist/cli-bundle/focused-chunks/{chunk-OG57ESZK.js → chunk-TIEQVIFN.js} +2 -2
  71. package/dist/cli-bundle/focused-chunks/{chunk-SQ72CVUH.js → chunk-VEUBDQDP.js} +54 -54
  72. package/dist/cli-bundle/focused-chunks/{chunk-2UWKU2BQ.js → chunk-WDHNPNHX.js} +3 -3
  73. package/dist/cli-bundle/focused-chunks/{field-option-collisions-2C6DLUC4.js → field-option-collisions-32X7FP3H.js} +2 -2
  74. package/dist/cli-bundle/focused-chunks/item-revision-GUYSVVQD.js +2 -0
  75. package/dist/cli-bundle/focused-chunks/{item-transaction-2K4SFLJ7.js → item-transaction-MLKHZPL7.js} +2 -2
  76. package/dist/cli-bundle/focused-chunks/{mutation-actor-DJMZUIZI.js → mutation-actor-RDZJTRW2.js} +2 -2
  77. package/dist/cli-bundle/focused-chunks/{mutation-admission-SDWQVVHN.js → mutation-admission-IQB6XL75.js} +2 -2
  78. package/dist/cli-bundle/focused-chunks/{stage-QBZIK3T5.js → stage-AA7LORZ2.js} +2 -2
  79. package/dist/cli-bundle/main.js +27 -27
  80. package/dist/cli-bundle/sdk-authoring.js +1 -1
  81. package/dist/cli-bundle/sdk-contracts.js +1 -1
  82. package/dist/cli-bundle/sdk-core.js +1 -1
  83. package/dist/cli-bundle/sdk-governance.js +1 -1
  84. package/dist/cli-bundle/sdk-graph.js +1 -1
  85. package/dist/cli-bundle/sdk-merge.js +63 -63
  86. package/dist/cli-bundle/sdk-query.js +1 -1
  87. package/dist/cli-bundle/sdk-runtime.js +1 -1
  88. package/dist/cli-bundle/sdk-testing.js +1 -1
  89. package/dist/cli-bundle/sdk.js +9 -9
  90. package/dist/core/extensions/loader.d.ts +8 -0
  91. package/dist/core/extensions/loader.js +1 -1
  92. package/dist/core/item/actionability.js +1 -1
  93. package/dist/core/output/output.js +16 -16
  94. package/dist/mcp/server.js +1 -1
  95. package/dist/sdk/cli-contracts/enum-contracts.d.ts +25 -1
  96. package/dist/sdk/cli-contracts/enum-contracts.js +1 -1
  97. package/dist/sdk/cli-contracts/flag-contracts.d.ts +1 -1
  98. package/dist/sdk/cli-contracts/flag-contracts.js +1 -1
  99. package/dist/sdk/cli-contracts/runtime-contracts.js +1 -1
  100. package/dist/sdk/cli-contracts/tool-parameter-tables.js +1 -1
  101. package/dist/sdk/cli-contracts/tool-schema.js +1 -1
  102. package/dist/sdk/context-intent-contracts.js +1 -1
  103. package/dist/sdk/extension/install-sources.d.ts +2 -2
  104. package/dist/sdk/extension/install-sources.js +5 -5
  105. package/dist/sdk/lifecycle/expect-hash-admission.d.ts +27 -8
  106. package/dist/sdk/lifecycle/expect-hash-admission.js +1 -1
  107. package/dist/sdk/lifecycle/item-revision.d.ts +12 -4
  108. package/dist/sdk/lifecycle/item-revision.js +1 -1
  109. package/dist/sdk/output-projection.d.ts +1 -1
  110. package/dist/sdk/output-projection.js +1 -1
  111. package/dist/sdk/public-surface.json +1 -1
  112. package/dist/sdk/read-output/surfaces.js +1 -1
  113. package/dist/sdk/runtime/schema.js +1 -1
  114. package/dist/sdk/runtime-input.d.ts +6 -0
  115. package/dist/sdk/runtime-input.js +1 -1
  116. package/dist/sdk/runtime-primitives.d.ts +1 -1
  117. package/dist/sdk/runtime-primitives.js +1 -1
  118. package/dist/sdk/runtime.js +1 -1
  119. package/docs/COMMANDS.md +23 -5
  120. package/docs/EXTENSIONS.md +1 -1
  121. package/docs/SDK.md +15 -2
  122. package/marketplace.json +1 -1
  123. package/node_modules/tar/README.md +1792 -1147
  124. package/node_modules/tar/dist/commonjs/bytes.d.ts +21 -0
  125. package/node_modules/tar/dist/commonjs/bytes.js +83 -0
  126. package/node_modules/tar/dist/commonjs/codec.d.ts +53 -0
  127. package/node_modules/tar/dist/commonjs/codec.js +35 -0
  128. package/node_modules/tar/dist/commonjs/concat.d.ts +3 -0
  129. package/node_modules/tar/dist/commonjs/concat.js +20 -0
  130. package/node_modules/tar/dist/commonjs/create.d.ts +39 -2
  131. package/node_modules/tar/dist/commonjs/create.js +150 -64
  132. package/node_modules/tar/dist/commonjs/dealias.d.ts +79 -0
  133. package/node_modules/tar/dist/commonjs/dealias.js +50 -0
  134. package/node_modules/tar/dist/commonjs/delete.d.ts +19 -0
  135. package/node_modules/tar/dist/commonjs/delete.js +121 -0
  136. package/node_modules/tar/dist/commonjs/entries.d.ts +82 -0
  137. package/node_modules/tar/dist/commonjs/entries.js +398 -0
  138. package/node_modules/tar/dist/commonjs/extract.d.ts +14 -2
  139. package/node_modules/tar/dist/commonjs/extract.js +40 -81
  140. package/node_modules/tar/dist/commonjs/fs.d.ts +201 -0
  141. package/node_modules/tar/dist/commonjs/fs.js +5 -0
  142. package/node_modules/tar/dist/commonjs/header.d.ts +4 -4
  143. package/node_modules/tar/dist/commonjs/header.js +71 -53
  144. package/node_modules/tar/dist/commonjs/index.d.ts +25 -18
  145. package/node_modules/tar/dist/commonjs/index.js +46 -18
  146. package/node_modules/tar/dist/commonjs/index.min.js +2 -3
  147. package/node_modules/tar/dist/commonjs/large-numbers.d.ts +2 -2
  148. package/node_modules/tar/dist/commonjs/large-numbers.js +4 -4
  149. package/node_modules/tar/dist/commonjs/list.d.ts +23 -6
  150. package/node_modules/tar/dist/commonjs/list.js +99 -138
  151. package/node_modules/tar/dist/commonjs/mkdir.d.ts +16 -11
  152. package/node_modules/tar/dist/commonjs/mkdir.js +121 -159
  153. package/node_modules/tar/dist/commonjs/normalize-unicode.js +9 -0
  154. package/node_modules/tar/dist/commonjs/options.d.ts +284 -513
  155. package/node_modules/tar/dist/commonjs/options.js +20 -61
  156. package/node_modules/tar/dist/commonjs/pack.d.ts +150 -96
  157. package/node_modules/tar/dist/commonjs/pack.js +752 -445
  158. package/node_modules/tar/dist/commonjs/parser.d.ts +98 -0
  159. package/node_modules/tar/dist/commonjs/parser.js +452 -0
  160. package/node_modules/tar/dist/commonjs/path-reservations.d.ts +17 -7
  161. package/node_modules/tar/dist/commonjs/path-reservations.js +110 -140
  162. package/node_modules/tar/dist/commonjs/path.d.ts +19 -0
  163. package/node_modules/tar/dist/commonjs/path.js +90 -0
  164. package/node_modules/tar/dist/commonjs/pax.d.ts +3 -1
  165. package/node_modules/tar/dist/commonjs/pax.js +67 -36
  166. package/node_modules/tar/dist/commonjs/read-entry.d.ts +97 -11
  167. package/node_modules/tar/dist/commonjs/read-entry.js +251 -97
  168. package/node_modules/tar/dist/commonjs/read-file.d.ts +22 -0
  169. package/node_modules/tar/dist/commonjs/read-file.js +104 -0
  170. package/node_modules/tar/dist/commonjs/replace.d.ts +45 -1
  171. package/node_modules/tar/dist/commonjs/replace.js +164 -211
  172. package/node_modules/tar/dist/commonjs/server/codecs.d.ts +38 -0
  173. package/node_modules/tar/dist/commonjs/server/codecs.js +252 -0
  174. package/node_modules/tar/dist/commonjs/server/index.d.ts +115 -0
  175. package/node_modules/tar/dist/commonjs/server/index.js +166 -0
  176. package/node_modules/tar/dist/commonjs/server/index.min.js +3 -0
  177. package/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts +8 -0
  178. package/node_modules/tar/dist/commonjs/strip-absolute-path.js +17 -20
  179. package/node_modules/tar/dist/commonjs/to-stream.d.ts +7 -0
  180. package/node_modules/tar/dist/commonjs/to-stream.js +22 -0
  181. package/node_modules/tar/dist/commonjs/types.d.ts +4 -3
  182. package/node_modules/tar/dist/commonjs/types.js +4 -3
  183. package/node_modules/tar/dist/commonjs/unpack.d.ts +143 -89
  184. package/node_modules/tar/dist/commonjs/unpack.js +780 -725
  185. package/node_modules/tar/dist/commonjs/update.d.ts +11 -1
  186. package/node_modules/tar/dist/commonjs/update.js +37 -28
  187. package/node_modules/tar/dist/commonjs/warn.d.ts +27 -0
  188. package/node_modules/tar/dist/commonjs/warn.js +36 -0
  189. package/node_modules/tar/dist/commonjs/win32-path.d.ts +16 -0
  190. package/node_modules/tar/dist/commonjs/win32-path.js +67 -0
  191. package/node_modules/tar/dist/commonjs/write-entry.d.ts +64 -111
  192. package/node_modules/tar/dist/commonjs/write-entry.js +108 -672
  193. package/node_modules/tar/dist/commonjs/write-flag.d.ts +18 -0
  194. package/node_modules/tar/dist/commonjs/write-flag.js +29 -0
  195. package/node_modules/tar/dist/esm/bytes.d.ts +21 -0
  196. package/node_modules/tar/dist/esm/bytes.js +72 -0
  197. package/node_modules/tar/dist/esm/codec.d.ts +53 -0
  198. package/node_modules/tar/dist/esm/codec.js +32 -0
  199. package/node_modules/tar/dist/esm/concat.d.ts +3 -0
  200. package/node_modules/tar/dist/esm/concat.js +16 -0
  201. package/node_modules/tar/dist/esm/create.d.ts +39 -2
  202. package/node_modules/tar/dist/esm/create.js +144 -61
  203. package/node_modules/tar/dist/esm/dealias.d.ts +79 -0
  204. package/node_modules/tar/dist/esm/dealias.js +46 -0
  205. package/node_modules/tar/dist/esm/delete.d.ts +19 -0
  206. package/node_modules/tar/dist/esm/delete.js +117 -0
  207. package/node_modules/tar/dist/esm/entries.d.ts +82 -0
  208. package/node_modules/tar/dist/esm/entries.js +388 -0
  209. package/node_modules/tar/dist/esm/extract.d.ts +14 -2
  210. package/node_modules/tar/dist/esm/extract.js +37 -44
  211. package/node_modules/tar/dist/esm/fs.d.ts +201 -0
  212. package/node_modules/tar/dist/esm/fs.js +4 -0
  213. package/node_modules/tar/dist/esm/header.d.ts +4 -4
  214. package/node_modules/tar/dist/esm/header.js +71 -53
  215. package/node_modules/tar/dist/esm/index.d.ts +25 -18
  216. package/node_modules/tar/dist/esm/index.js +23 -18
  217. package/node_modules/tar/dist/esm/index.min.js +2 -3
  218. package/node_modules/tar/dist/esm/large-numbers.d.ts +2 -2
  219. package/node_modules/tar/dist/esm/large-numbers.js +4 -4
  220. package/node_modules/tar/dist/esm/list.d.ts +23 -6
  221. package/node_modules/tar/dist/esm/list.js +96 -101
  222. package/node_modules/tar/dist/esm/mkdir.d.ts +16 -11
  223. package/node_modules/tar/dist/esm/mkdir.js +119 -154
  224. package/node_modules/tar/dist/esm/normalize-unicode.js +9 -0
  225. package/node_modules/tar/dist/esm/options.d.ts +284 -513
  226. package/node_modules/tar/dist/esm/options.js +17 -51
  227. package/node_modules/tar/dist/esm/pack.d.ts +150 -96
  228. package/node_modules/tar/dist/esm/pack.js +750 -441
  229. package/node_modules/tar/dist/esm/parser.d.ts +98 -0
  230. package/node_modules/tar/dist/esm/parser.js +448 -0
  231. package/node_modules/tar/dist/esm/path-reservations.d.ts +17 -7
  232. package/node_modules/tar/dist/esm/path-reservations.js +110 -140
  233. package/node_modules/tar/dist/esm/path.d.ts +19 -0
  234. package/node_modules/tar/dist/esm/path.js +80 -0
  235. package/node_modules/tar/dist/esm/pax.d.ts +3 -1
  236. package/node_modules/tar/dist/esm/pax.js +66 -35
  237. package/node_modules/tar/dist/esm/read-entry.d.ts +97 -11
  238. package/node_modules/tar/dist/esm/read-entry.js +248 -96
  239. package/node_modules/tar/dist/esm/read-file.d.ts +22 -0
  240. package/node_modules/tar/dist/esm/read-file.js +99 -0
  241. package/node_modules/tar/dist/esm/replace.d.ts +45 -1
  242. package/node_modules/tar/dist/esm/replace.js +160 -207
  243. package/node_modules/tar/dist/esm/server/codecs.d.ts +38 -0
  244. package/node_modules/tar/dist/esm/server/codecs.js +214 -0
  245. package/node_modules/tar/dist/esm/server/index.d.ts +115 -0
  246. package/node_modules/tar/dist/esm/server/index.js +102 -0
  247. package/node_modules/tar/dist/esm/server/index.min.js +3 -0
  248. package/node_modules/tar/dist/esm/strip-absolute-path.d.ts +8 -0
  249. package/node_modules/tar/dist/esm/strip-absolute-path.js +17 -20
  250. package/node_modules/tar/dist/esm/to-stream.d.ts +7 -0
  251. package/node_modules/tar/dist/esm/to-stream.js +18 -0
  252. package/node_modules/tar/dist/esm/types.d.ts +4 -3
  253. package/node_modules/tar/dist/esm/types.js +4 -3
  254. package/node_modules/tar/dist/esm/unpack.d.ts +143 -89
  255. package/node_modules/tar/dist/esm/unpack.js +776 -719
  256. package/node_modules/tar/dist/esm/update.d.ts +11 -1
  257. package/node_modules/tar/dist/esm/update.js +35 -28
  258. package/node_modules/tar/dist/esm/warn.d.ts +27 -0
  259. package/node_modules/tar/dist/esm/warn.js +31 -0
  260. package/node_modules/tar/dist/esm/win32-path.d.ts +16 -0
  261. package/node_modules/tar/dist/esm/win32-path.js +60 -0
  262. package/node_modules/tar/dist/esm/write-entry.d.ts +64 -111
  263. package/node_modules/tar/dist/esm/write-entry.js +107 -633
  264. package/node_modules/tar/dist/esm/write-flag.d.ts +18 -0
  265. package/node_modules/tar/dist/esm/write-flag.js +25 -0
  266. package/node_modules/tar/package.json +68 -224
  267. package/package.json +2 -2
  268. package/packages/pm-beads/package.json +1 -1
  269. package/packages/pm-calendar/package.json +1 -1
  270. package/packages/pm-command-kit/package.json +1 -1
  271. package/packages/pm-digital-twin/package.json +1 -1
  272. package/packages/pm-governance-audit/package.json +1 -1
  273. package/packages/pm-guide-shell/package.json +1 -1
  274. package/packages/pm-kanban/package.json +1 -1
  275. package/packages/pm-lifecycle-hooks/package.json +1 -1
  276. package/packages/pm-linked-test-adapters/package.json +1 -1
  277. package/packages/pm-search-advanced/package.json +1 -1
  278. package/packages/pm-templates/package.json +1 -1
  279. package/packages/pm-todos/package.json +1 -1
  280. package/packages/pm-vcs/package.json +1 -1
  281. package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
  282. package/plugins/pm-claude/package.json +1 -1
  283. package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
  284. package/plugins/pm-codex/package.json +1 -1
  285. package/plugins/pm-codex/plugin.json +1 -1
  286. package/runtime-dependencies.json +1 -1
  287. package/dist/cli-bundle/chunks/chunk-A5ZEMOVR.js +0 -2
  288. package/dist/cli-bundle/chunks/chunk-AJLU6KLW.js +0 -2
  289. package/dist/cli-bundle/chunks/chunk-C6WM6ZN4.js +0 -9
  290. package/dist/cli-bundle/chunks/chunk-HZZLSBIJ.js +0 -2
  291. package/dist/cli-bundle/chunks/chunk-L2ZSSMYY.js +0 -2
  292. package/dist/cli-bundle/chunks/chunk-NRQCBUYD.js +0 -113
  293. package/dist/cli-bundle/chunks/chunk-QDV7S2QS.js +0 -2
  294. package/dist/cli-bundle/chunks/item-revision-3LENTXYF.js +0 -2
  295. package/dist/cli-bundle/chunks/item-transaction-66RDV7PH.js +0 -2
  296. package/dist/cli-bundle/focused-chunks/chunk-HTDYNY4L.js +0 -2
  297. package/dist/cli-bundle/focused-chunks/chunk-N64AC5G6.js +0 -100
  298. package/dist/cli-bundle/focused-chunks/chunk-PT7RT3T6.js +0 -44
  299. package/dist/cli-bundle/focused-chunks/chunk-QZRYGYTI.js +0 -2
  300. package/dist/cli-bundle/focused-chunks/chunk-SQMOF65W.js +0 -2
  301. package/dist/cli-bundle/focused-chunks/chunk-T3ILWAEV.js +0 -2
  302. package/dist/cli-bundle/focused-chunks/chunk-W4JMV7GF.js +0 -3
  303. package/dist/cli-bundle/focused-chunks/item-revision-723XCQPS.js +0 -2
  304. package/node_modules/@isaacs/fs-minipass/LICENSE +0 -15
  305. package/node_modules/@isaacs/fs-minipass/README.md +0 -71
  306. package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts +0 -118
  307. package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js +0 -430
  308. package/node_modules/@isaacs/fs-minipass/dist/commonjs/package.json +0 -3
  309. package/node_modules/@isaacs/fs-minipass/dist/esm/index.d.ts +0 -118
  310. package/node_modules/@isaacs/fs-minipass/dist/esm/index.js +0 -420
  311. package/node_modules/@isaacs/fs-minipass/dist/esm/package.json +0 -3
  312. package/node_modules/@isaacs/fs-minipass/package.json +0 -72
  313. package/node_modules/chownr/LICENSE.md +0 -63
  314. package/node_modules/chownr/README.md +0 -3
  315. package/node_modules/chownr/dist/commonjs/index.d.ts +0 -3
  316. package/node_modules/chownr/dist/commonjs/index.js +0 -93
  317. package/node_modules/chownr/dist/commonjs/package.json +0 -3
  318. package/node_modules/chownr/dist/esm/index.d.ts +0 -3
  319. package/node_modules/chownr/dist/esm/index.js +0 -85
  320. package/node_modules/chownr/dist/esm/package.json +0 -3
  321. package/node_modules/chownr/package.json +0 -69
  322. package/node_modules/minipass/LICENSE.md +0 -55
  323. package/node_modules/minipass/README.md +0 -825
  324. package/node_modules/minipass/dist/commonjs/index.d.ts +0 -545
  325. package/node_modules/minipass/dist/commonjs/index.js +0 -1038
  326. package/node_modules/minipass/dist/commonjs/package.json +0 -3
  327. package/node_modules/minipass/dist/esm/index.d.ts +0 -545
  328. package/node_modules/minipass/dist/esm/index.js +0 -1020
  329. package/node_modules/minipass/dist/esm/package.json +0 -3
  330. package/node_modules/minipass/package.json +0 -77
  331. package/node_modules/minizlib/LICENSE +0 -26
  332. package/node_modules/minizlib/README.md +0 -64
  333. package/node_modules/minizlib/dist/commonjs/constants.d.ts +0 -2
  334. package/node_modules/minizlib/dist/commonjs/constants.js +0 -123
  335. package/node_modules/minizlib/dist/commonjs/index.d.ts +0 -99
  336. package/node_modules/minizlib/dist/commonjs/index.js +0 -416
  337. package/node_modules/minizlib/dist/commonjs/package.json +0 -3
  338. package/node_modules/minizlib/dist/esm/constants.d.ts +0 -2
  339. package/node_modules/minizlib/dist/esm/constants.js +0 -117
  340. package/node_modules/minizlib/dist/esm/index.d.ts +0 -99
  341. package/node_modules/minizlib/dist/esm/index.js +0 -363
  342. package/node_modules/minizlib/dist/esm/package.json +0 -3
  343. package/node_modules/minizlib/package.json +0 -80
  344. package/node_modules/tar/dist/commonjs/get-write-flag.d.ts +0 -2
  345. package/node_modules/tar/dist/commonjs/get-write-flag.js +0 -32
  346. package/node_modules/tar/dist/commonjs/make-command.d.ts +0 -49
  347. package/node_modules/tar/dist/commonjs/make-command.js +0 -52
  348. package/node_modules/tar/dist/commonjs/normalize-windows-path.d.ts +0 -2
  349. package/node_modules/tar/dist/commonjs/normalize-windows-path.js +0 -12
  350. package/node_modules/tar/dist/commonjs/parse.d.ts +0 -92
  351. package/node_modules/tar/dist/commonjs/parse.js +0 -655
  352. package/node_modules/tar/dist/commonjs/process-umask.d.ts +0 -2
  353. package/node_modules/tar/dist/commonjs/process-umask.js +0 -7
  354. package/node_modules/tar/dist/commonjs/warn-method.d.ts +0 -24
  355. package/node_modules/tar/dist/commonjs/warn-method.js +0 -31
  356. package/node_modules/tar/dist/esm/get-write-flag.d.ts +0 -2
  357. package/node_modules/tar/dist/esm/get-write-flag.js +0 -26
  358. package/node_modules/tar/dist/esm/make-command.d.ts +0 -49
  359. package/node_modules/tar/dist/esm/make-command.js +0 -48
  360. package/node_modules/tar/dist/esm/normalize-windows-path.d.ts +0 -2
  361. package/node_modules/tar/dist/esm/normalize-windows-path.js +0 -9
  362. package/node_modules/tar/dist/esm/parse.d.ts +0 -92
  363. package/node_modules/tar/dist/esm/parse.js +0 -651
  364. package/node_modules/tar/dist/esm/process-umask.d.ts +0 -2
  365. package/node_modules/tar/dist/esm/process-umask.js +0 -3
  366. package/node_modules/tar/dist/esm/warn-method.d.ts +0 -24
  367. package/node_modules/tar/dist/esm/warn-method.js +0 -27
  368. package/node_modules/yallist/LICENSE.md +0 -63
  369. package/node_modules/yallist/README.md +0 -205
  370. package/node_modules/yallist/dist/commonjs/index.d.ts +0 -39
  371. package/node_modules/yallist/dist/commonjs/index.js +0 -384
  372. package/node_modules/yallist/dist/commonjs/package.json +0 -3
  373. package/node_modules/yallist/dist/esm/index.d.ts +0 -39
  374. package/node_modules/yallist/dist/esm/index.js +0 -379
  375. package/node_modules/yallist/dist/esm/package.json +0 -3
  376. package/node_modules/yallist/package.json +0 -68
@@ -1,363 +0,0 @@
1
- import assert from 'assert';
2
- import { Buffer } from 'buffer';
3
- import { Minipass } from 'minipass';
4
- import * as realZlib from 'zlib';
5
- import { constants } from './constants.js';
6
- export { constants } from './constants.js';
7
- const OriginalBufferConcat = Buffer.concat;
8
- const desc = Object.getOwnPropertyDescriptor(Buffer, 'concat');
9
- const noop = (args) => args;
10
- const passthroughBufferConcat = desc?.writable === true || desc?.set !== undefined
11
- ? (makeNoOp) => {
12
- Buffer.concat = makeNoOp ? noop : OriginalBufferConcat;
13
- }
14
- : (_) => { };
15
- const _superWrite = Symbol('_superWrite');
16
- export class ZlibError extends Error {
17
- code;
18
- errno;
19
- constructor(err, origin) {
20
- super('zlib: ' + err.message, { cause: err });
21
- this.code = err.code;
22
- this.errno = err.errno;
23
- /* c8 ignore next */
24
- if (!this.code)
25
- this.code = 'ZLIB_ERROR';
26
- this.message = 'zlib: ' + err.message;
27
- Error.captureStackTrace(this, origin ?? this.constructor);
28
- }
29
- get name() {
30
- return 'ZlibError';
31
- }
32
- }
33
- // the Zlib class they all inherit from
34
- // This thing manages the queue of requests, and returns
35
- // true or false if there is anything in the queue when
36
- // you call the .write() method.
37
- const _flushFlag = Symbol('flushFlag');
38
- class ZlibBase extends Minipass {
39
- #sawError = false;
40
- #ended = false;
41
- #flushFlag;
42
- #finishFlushFlag;
43
- #fullFlushFlag;
44
- #handle;
45
- #onError;
46
- get sawError() {
47
- return this.#sawError;
48
- }
49
- get handle() {
50
- return this.#handle;
51
- }
52
- /* c8 ignore start */
53
- get flushFlag() {
54
- return this.#flushFlag;
55
- }
56
- /* c8 ignore stop */
57
- constructor(opts, mode) {
58
- if (!opts || typeof opts !== 'object')
59
- throw new TypeError('invalid options for ZlibBase constructor');
60
- //@ts-ignore
61
- super(opts);
62
- /* c8 ignore start */
63
- this.#flushFlag = opts.flush ?? 0;
64
- this.#finishFlushFlag = opts.finishFlush ?? 0;
65
- this.#fullFlushFlag = opts.fullFlushFlag ?? 0;
66
- /* c8 ignore stop */
67
- //@ts-ignore
68
- if (typeof realZlib[mode] !== 'function') {
69
- throw new TypeError('Compression method not supported: ' + mode);
70
- }
71
- // this will throw if any options are invalid for the class selected
72
- try {
73
- // @types/node doesn't know that it exports the classes, but they're there
74
- //@ts-ignore
75
- this.#handle = new realZlib[mode](opts);
76
- }
77
- catch (er) {
78
- // make sure that all errors get decorated properly
79
- throw new ZlibError(er, this.constructor);
80
- }
81
- this.#onError = err => {
82
- // no sense raising multiple errors, since we abort on the first one.
83
- if (this.#sawError)
84
- return;
85
- this.#sawError = true;
86
- // there is no way to cleanly recover.
87
- // continuing only obscures problems.
88
- this.close();
89
- this.emit('error', err);
90
- };
91
- this.#handle?.on('error', er => this.#onError(new ZlibError(er)));
92
- this.once('end', () => this.close);
93
- }
94
- close() {
95
- if (this.#handle) {
96
- this.#handle.close();
97
- this.#handle = undefined;
98
- this.emit('close');
99
- }
100
- }
101
- reset() {
102
- if (!this.#sawError) {
103
- assert(this.#handle, 'zlib binding closed');
104
- //@ts-ignore
105
- return this.#handle.reset?.();
106
- }
107
- }
108
- flush(flushFlag) {
109
- if (this.ended)
110
- return;
111
- if (typeof flushFlag !== 'number')
112
- flushFlag = this.#fullFlushFlag;
113
- this.write(Object.assign(Buffer.alloc(0), { [_flushFlag]: flushFlag }));
114
- }
115
- end(chunk, encoding, cb) {
116
- /* c8 ignore start */
117
- if (typeof chunk === 'function') {
118
- cb = chunk;
119
- encoding = undefined;
120
- chunk = undefined;
121
- }
122
- if (typeof encoding === 'function') {
123
- cb = encoding;
124
- encoding = undefined;
125
- }
126
- /* c8 ignore stop */
127
- if (chunk) {
128
- if (encoding)
129
- this.write(chunk, encoding);
130
- else
131
- this.write(chunk);
132
- }
133
- this.flush(this.#finishFlushFlag);
134
- this.#ended = true;
135
- return super.end(cb);
136
- }
137
- get ended() {
138
- return this.#ended;
139
- }
140
- // overridden in the gzip classes to do portable writes
141
- [_superWrite](data) {
142
- return super.write(data);
143
- }
144
- write(chunk, encoding, cb) {
145
- // process the chunk using the sync process
146
- // then super.write() all the outputted chunks
147
- if (typeof encoding === 'function')
148
- (cb = encoding), (encoding = 'utf8');
149
- if (typeof chunk === 'string')
150
- chunk = Buffer.from(chunk, encoding);
151
- if (this.#sawError)
152
- return;
153
- assert(this.#handle, 'zlib binding closed');
154
- // _processChunk tries to .close() the native handle after it's done, so we
155
- // intercept that by temporarily making it a no-op.
156
- // diving into the node:zlib internals a bit here
157
- const nativeHandle = this.#handle
158
- ._handle;
159
- const originalNativeClose = nativeHandle.close;
160
- nativeHandle.close = () => { };
161
- const originalClose = this.#handle.close;
162
- this.#handle.close = () => { };
163
- // It also calls `Buffer.concat()` at the end, which may be convenient
164
- // for some, but which we are not interested in as it slows us down.
165
- passthroughBufferConcat(true);
166
- let result = undefined;
167
- try {
168
- const flushFlag = typeof chunk[_flushFlag] === 'number'
169
- ? chunk[_flushFlag]
170
- : this.#flushFlag;
171
- result = this.#handle._processChunk(chunk, flushFlag);
172
- // if we don't throw, reset it back how it was
173
- passthroughBufferConcat(false);
174
- }
175
- catch (err) {
176
- // or if we do, put Buffer.concat() back before we emit error
177
- // Error events call into user code, which may call Buffer.concat()
178
- passthroughBufferConcat(false);
179
- this.#onError(new ZlibError(err, this.write));
180
- }
181
- finally {
182
- if (this.#handle) {
183
- // Core zlib resets `_handle` to null after attempting to close the
184
- // native handle. Our no-op handler prevented actual closure, but we
185
- // need to restore the `._handle` property.
186
- ;
187
- this.#handle._handle =
188
- nativeHandle;
189
- nativeHandle.close = originalNativeClose;
190
- this.#handle.close = originalClose;
191
- // `_processChunk()` adds an 'error' listener. If we don't remove it
192
- // after each call, these handlers start piling up.
193
- this.#handle.removeAllListeners('error');
194
- // make sure OUR error listener is still attached tho
195
- }
196
- }
197
- if (this.#handle)
198
- this.#handle.on('error', er => this.#onError(new ZlibError(er, this.write)));
199
- let writeReturn;
200
- if (result) {
201
- if (Array.isArray(result) && result.length > 0) {
202
- const r = result[0];
203
- // The first buffer is always `handle._outBuffer`, which would be
204
- // re-used for later invocations; so, we always have to copy that one.
205
- writeReturn = this[_superWrite](Buffer.from(r));
206
- for (let i = 1; i < result.length; i++) {
207
- writeReturn = this[_superWrite](result[i]);
208
- }
209
- }
210
- else {
211
- // either a single Buffer or an empty array
212
- writeReturn = this[_superWrite](Buffer.from(result));
213
- }
214
- }
215
- if (cb)
216
- cb();
217
- return writeReturn;
218
- }
219
- }
220
- export class Zlib extends ZlibBase {
221
- #level;
222
- #strategy;
223
- constructor(opts, mode) {
224
- opts = opts || {};
225
- opts.flush = opts.flush || constants.Z_NO_FLUSH;
226
- opts.finishFlush = opts.finishFlush || constants.Z_FINISH;
227
- opts.fullFlushFlag = constants.Z_FULL_FLUSH;
228
- super(opts, mode);
229
- this.#level = opts.level;
230
- this.#strategy = opts.strategy;
231
- }
232
- params(level, strategy) {
233
- if (this.sawError)
234
- return;
235
- if (!this.handle)
236
- throw new Error('cannot switch params when binding is closed');
237
- // no way to test this without also not supporting params at all
238
- /* c8 ignore start */
239
- if (!this.handle.params)
240
- throw new Error('not supported in this implementation');
241
- /* c8 ignore stop */
242
- if (this.#level !== level || this.#strategy !== strategy) {
243
- this.flush(constants.Z_SYNC_FLUSH);
244
- assert(this.handle, 'zlib binding closed');
245
- // .params() calls .flush(), but the latter is always async in the
246
- // core zlib. We override .flush() temporarily to intercept that and
247
- // flush synchronously.
248
- const origFlush = this.handle.flush;
249
- this.handle.flush = (flushFlag, cb) => {
250
- /* c8 ignore start */
251
- if (typeof flushFlag === 'function') {
252
- cb = flushFlag;
253
- flushFlag = this.flushFlag;
254
- }
255
- /* c8 ignore stop */
256
- this.flush(flushFlag);
257
- cb?.();
258
- };
259
- try {
260
- ;
261
- this.handle.params(level, strategy);
262
- }
263
- finally {
264
- this.handle.flush = origFlush;
265
- }
266
- /* c8 ignore start */
267
- if (this.handle) {
268
- this.#level = level;
269
- this.#strategy = strategy;
270
- }
271
- /* c8 ignore stop */
272
- }
273
- }
274
- }
275
- // minimal 2-byte header
276
- export class Deflate extends Zlib {
277
- constructor(opts) {
278
- super(opts, 'Deflate');
279
- }
280
- }
281
- export class Inflate extends Zlib {
282
- constructor(opts) {
283
- super(opts, 'Inflate');
284
- }
285
- }
286
- export class Gzip extends Zlib {
287
- #portable;
288
- constructor(opts) {
289
- super(opts, 'Gzip');
290
- this.#portable = opts && !!opts.portable;
291
- }
292
- [_superWrite](data) {
293
- if (!this.#portable)
294
- return super[_superWrite](data);
295
- // we'll always get the header emitted in one first chunk
296
- // overwrite the OS indicator byte with 0xFF
297
- this.#portable = false;
298
- data[9] = 255;
299
- return super[_superWrite](data);
300
- }
301
- }
302
- export class Gunzip extends Zlib {
303
- constructor(opts) {
304
- super(opts, 'Gunzip');
305
- }
306
- }
307
- // raw - no header
308
- export class DeflateRaw extends Zlib {
309
- constructor(opts) {
310
- super(opts, 'DeflateRaw');
311
- }
312
- }
313
- export class InflateRaw extends Zlib {
314
- constructor(opts) {
315
- super(opts, 'InflateRaw');
316
- }
317
- }
318
- // auto-detect header.
319
- export class Unzip extends Zlib {
320
- constructor(opts) {
321
- super(opts, 'Unzip');
322
- }
323
- }
324
- class Brotli extends ZlibBase {
325
- constructor(opts, mode) {
326
- opts = opts || {};
327
- opts.flush = opts.flush || constants.BROTLI_OPERATION_PROCESS;
328
- opts.finishFlush =
329
- opts.finishFlush || constants.BROTLI_OPERATION_FINISH;
330
- opts.fullFlushFlag = constants.BROTLI_OPERATION_FLUSH;
331
- super(opts, mode);
332
- }
333
- }
334
- export class BrotliCompress extends Brotli {
335
- constructor(opts) {
336
- super(opts, 'BrotliCompress');
337
- }
338
- }
339
- export class BrotliDecompress extends Brotli {
340
- constructor(opts) {
341
- super(opts, 'BrotliDecompress');
342
- }
343
- }
344
- class Zstd extends ZlibBase {
345
- constructor(opts, mode) {
346
- opts = opts || {};
347
- opts.flush = opts.flush || constants.ZSTD_e_continue;
348
- opts.finishFlush = opts.finishFlush || constants.ZSTD_e_end;
349
- opts.fullFlushFlag = constants.ZSTD_e_flush;
350
- super(opts, mode);
351
- }
352
- }
353
- export class ZstdCompress extends Zstd {
354
- constructor(opts) {
355
- super(opts, 'ZstdCompress');
356
- }
357
- }
358
- export class ZstdDecompress extends Zstd {
359
- constructor(opts) {
360
- super(opts, 'ZstdDecompress');
361
- }
362
- }
363
- //# sourceMappingURL=index.js.map
@@ -1,3 +0,0 @@
1
- {
2
- "type": "module"
3
- }
@@ -1,80 +0,0 @@
1
- {
2
- "name": "minizlib",
3
- "version": "3.1.0",
4
- "description": "A small fast zlib stream built on [minipass](http://npm.im/minipass) and Node.js's zlib binding.",
5
- "main": "./dist/commonjs/index.js",
6
- "dependencies": {
7
- "minipass": "^7.1.2"
8
- },
9
- "scripts": {
10
- "prepare": "tshy",
11
- "pretest": "npm run prepare",
12
- "test": "tap",
13
- "preversion": "npm test",
14
- "postversion": "npm publish",
15
- "prepublishOnly": "git push origin --follow-tags",
16
- "format": "prettier --write . --loglevel warn",
17
- "typedoc": "typedoc --tsconfig .tshy/esm.json ./src/*.ts"
18
- },
19
- "repository": {
20
- "type": "git",
21
- "url": "git+https://github.com/isaacs/minizlib.git"
22
- },
23
- "keywords": [
24
- "zlib",
25
- "gzip",
26
- "gunzip",
27
- "deflate",
28
- "inflate",
29
- "compression",
30
- "zip",
31
- "unzip"
32
- ],
33
- "author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
34
- "license": "MIT",
35
- "devDependencies": {
36
- "@types/node": "^24.5.2",
37
- "tap": "^21.1.0",
38
- "tshy": "^3.0.2",
39
- "typedoc": "^0.28.1"
40
- },
41
- "files": [
42
- "dist"
43
- ],
44
- "engines": {
45
- "node": ">= 18"
46
- },
47
- "tshy": {
48
- "exports": {
49
- "./package.json": "./package.json",
50
- ".": "./src/index.ts"
51
- }
52
- },
53
- "exports": {
54
- "./package.json": "./package.json",
55
- ".": {
56
- "import": {
57
- "types": "./dist/esm/index.d.ts",
58
- "default": "./dist/esm/index.js"
59
- },
60
- "require": {
61
- "types": "./dist/commonjs/index.d.ts",
62
- "default": "./dist/commonjs/index.js"
63
- }
64
- }
65
- },
66
- "types": "./dist/commonjs/index.d.ts",
67
- "type": "module",
68
- "prettier": {
69
- "semi": false,
70
- "printWidth": 75,
71
- "tabWidth": 2,
72
- "useTabs": false,
73
- "singleQuote": true,
74
- "jsxSingleQuote": false,
75
- "bracketSameLine": true,
76
- "arrowParens": "avoid",
77
- "endOfLine": "lf"
78
- },
79
- "module": "./dist/esm/index.js"
80
- }
@@ -1,2 +0,0 @@
1
- export declare const getWriteFlag: (() => string) | ((size: number) => number | "w");
2
- //# sourceMappingURL=get-write-flag.d.ts.map
@@ -1,32 +0,0 @@
1
- "use strict";
2
- // Get the appropriate flag to use for creating files
3
- // We use fmap on Windows platforms for files less than
4
- // 512kb. This is a fairly low limit, but avoids making
5
- // things slower in some cases. Since most of what this
6
- // library is used for is extracting tarballs of many
7
- // relatively small files in npm packages and the like,
8
- // it can be a big boost on Windows platforms.
9
- var __importDefault = (this && this.__importDefault) || function (mod) {
10
- return (mod && mod.__esModule) ? mod : { "default": mod };
11
- };
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.getWriteFlag = void 0;
14
- const fs_1 = __importDefault(require("fs"));
15
- const platform = process.env.__FAKE_PLATFORM__ || process.platform;
16
- const isWindows = platform === 'win32';
17
- /* c8 ignore start */
18
- const { O_CREAT, O_NOFOLLOW, O_TRUNC, O_WRONLY } = fs_1.default.constants;
19
- const UV_FS_O_FILEMAP = Number(process.env.__FAKE_FS_O_FILENAME__) ||
20
- fs_1.default.constants.UV_FS_O_FILEMAP ||
21
- 0;
22
- /* c8 ignore stop */
23
- const fMapEnabled = isWindows && !!UV_FS_O_FILEMAP;
24
- const fMapLimit = 512 * 1024;
25
- const fMapFlag = UV_FS_O_FILEMAP | O_TRUNC | O_CREAT | O_WRONLY;
26
- const noFollowFlag = !isWindows && typeof O_NOFOLLOW === 'number' ?
27
- O_NOFOLLOW | O_TRUNC | O_CREAT | O_WRONLY
28
- : null;
29
- exports.getWriteFlag = noFollowFlag !== null ? () => noFollowFlag
30
- : !fMapEnabled ? () => 'w'
31
- : (size) => (size < fMapLimit ? fMapFlag : 'w');
32
- //# sourceMappingURL=get-write-flag.js.map
@@ -1,49 +0,0 @@
1
- import type { TarOptions, TarOptionsAsyncFile, TarOptionsAsyncNoFile, TarOptionsSyncFile, TarOptionsSyncNoFile, TarOptionsWithAliases, TarOptionsWithAliasesAsync, TarOptionsWithAliasesAsyncFile, TarOptionsWithAliasesAsyncNoFile, TarOptionsWithAliasesFile, TarOptionsWithAliasesNoFile, TarOptionsWithAliasesSync, TarOptionsWithAliasesSyncFile, TarOptionsWithAliasesSyncNoFile } from './options.js';
2
- export type CB = (er?: Error) => unknown;
3
- export type TarCommand<AsyncClass, SyncClass extends {
4
- sync: true;
5
- }> = {
6
- (): AsyncClass;
7
- (opt: TarOptionsWithAliasesAsyncNoFile): AsyncClass;
8
- (entries: string[]): AsyncClass;
9
- (opt: TarOptionsWithAliasesAsyncNoFile, entries: string[]): AsyncClass;
10
- } & {
11
- (opt: TarOptionsWithAliasesSyncNoFile): SyncClass;
12
- (opt: TarOptionsWithAliasesSyncNoFile, entries: string[]): SyncClass;
13
- } & {
14
- (opt: TarOptionsWithAliasesAsyncFile): Promise<void>;
15
- (opt: TarOptionsWithAliasesAsyncFile, entries: string[]): Promise<void>;
16
- (opt: TarOptionsWithAliasesAsyncFile, cb: CB): Promise<void>;
17
- (opt: TarOptionsWithAliasesAsyncFile, entries: string[], cb: CB): Promise<void>;
18
- } & {
19
- (opt: TarOptionsWithAliasesSyncFile): void;
20
- (opt: TarOptionsWithAliasesSyncFile, entries: string[]): void;
21
- } & {
22
- (opt: TarOptionsWithAliasesSync): typeof opt extends (TarOptionsWithAliasesFile) ? void : typeof opt extends TarOptionsWithAliasesNoFile ? SyncClass : void | SyncClass;
23
- (opt: TarOptionsWithAliasesSync, entries: string[]): typeof opt extends TarOptionsWithAliasesFile ? void : typeof opt extends TarOptionsWithAliasesNoFile ? SyncClass : void | SyncClass;
24
- } & {
25
- (opt: TarOptionsWithAliasesAsync): typeof opt extends (TarOptionsWithAliasesFile) ? Promise<void> : typeof opt extends TarOptionsWithAliasesNoFile ? AsyncClass : Promise<void> | AsyncClass;
26
- (opt: TarOptionsWithAliasesAsync, entries: string[]): typeof opt extends TarOptionsWithAliasesFile ? Promise<void> : typeof opt extends TarOptionsWithAliasesNoFile ? AsyncClass : Promise<void> | AsyncClass;
27
- (opt: TarOptionsWithAliasesAsync, cb: CB): Promise<void>;
28
- (opt: TarOptionsWithAliasesAsync, entries: string[], cb: CB): typeof opt extends TarOptionsWithAliasesFile ? Promise<void> : typeof opt extends TarOptionsWithAliasesNoFile ? never : Promise<void>;
29
- } & {
30
- (opt: TarOptionsWithAliasesFile): Promise<void> | void;
31
- (opt: TarOptionsWithAliasesFile, entries: string[]): typeof opt extends TarOptionsWithAliasesSync ? void : typeof opt extends TarOptionsWithAliasesAsync ? Promise<void> : Promise<void> | void;
32
- (opt: TarOptionsWithAliasesFile, cb: CB): Promise<void>;
33
- (opt: TarOptionsWithAliasesFile, entries: string[], cb: CB): typeof opt extends TarOptionsWithAliasesSync ? never : typeof opt extends TarOptionsWithAliasesAsync ? Promise<void> : Promise<void>;
34
- } & {
35
- (opt: TarOptionsWithAliasesNoFile): typeof opt extends (TarOptionsWithAliasesSync) ? SyncClass : typeof opt extends TarOptionsWithAliasesAsync ? AsyncClass : SyncClass | AsyncClass;
36
- (opt: TarOptionsWithAliasesNoFile, entries: string[]): typeof opt extends TarOptionsWithAliasesSync ? SyncClass : typeof opt extends TarOptionsWithAliasesAsync ? AsyncClass : SyncClass | AsyncClass;
37
- } & {
38
- (opt: TarOptionsWithAliases): typeof opt extends (TarOptionsWithAliasesFile) ? typeof opt extends TarOptionsWithAliasesSync ? void : typeof opt extends TarOptionsWithAliasesAsync ? Promise<void> : void | Promise<void> : typeof opt extends TarOptionsWithAliasesNoFile ? typeof opt extends TarOptionsWithAliasesSync ? SyncClass : typeof opt extends TarOptionsWithAliasesAsync ? AsyncClass : SyncClass | AsyncClass : typeof opt extends TarOptionsWithAliasesSync ? SyncClass | void : typeof opt extends TarOptionsWithAliasesAsync ? AsyncClass | Promise<void> : SyncClass | void | AsyncClass | Promise<void>;
39
- } & {
40
- syncFile: (opt: TarOptionsSyncFile, entries: string[]) => void;
41
- asyncFile: (opt: TarOptionsAsyncFile, entries: string[], cb?: CB) => Promise<void>;
42
- syncNoFile: (opt: TarOptionsSyncNoFile, entries: string[]) => SyncClass;
43
- asyncNoFile: (opt: TarOptionsAsyncNoFile, entries: string[]) => AsyncClass;
44
- validate?: (opt: TarOptions, entries?: string[]) => void;
45
- };
46
- export declare const makeCommand: <AsyncClass, SyncClass extends {
47
- sync: true;
48
- }>(syncFile: (opt: TarOptionsSyncFile, entries: string[]) => void, asyncFile: (opt: TarOptionsAsyncFile, entries: string[], cb?: CB) => Promise<void>, syncNoFile: (opt: TarOptionsSyncNoFile, entries: string[]) => SyncClass, asyncNoFile: (opt: TarOptionsAsyncNoFile, entries: string[]) => AsyncClass, validate?: (opt: TarOptions, entries?: string[]) => void) => TarCommand<AsyncClass, SyncClass>;
49
- //# sourceMappingURL=make-command.d.ts.map
@@ -1,52 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.makeCommand = void 0;
4
- const options_js_1 = require("./options.js");
5
- const makeCommand = (syncFile, asyncFile, syncNoFile, asyncNoFile, validate) => {
6
- return Object.assign((opt_ = [], entries, cb) => {
7
- if (Array.isArray(opt_)) {
8
- entries = opt_;
9
- opt_ = {};
10
- }
11
- if (typeof entries === 'function') {
12
- cb = entries;
13
- entries = undefined;
14
- }
15
- entries = !entries ? [] : Array.from(entries);
16
- const opt = (0, options_js_1.dealias)(opt_);
17
- validate?.(opt, entries);
18
- if ((0, options_js_1.isSyncFile)(opt)) {
19
- if (typeof cb === 'function') {
20
- throw new TypeError('callback not supported for sync tar functions');
21
- }
22
- return syncFile(opt, entries);
23
- }
24
- else if ((0, options_js_1.isAsyncFile)(opt)) {
25
- const p = asyncFile(opt, entries);
26
- return cb ? p.then(() => cb(), cb) : p;
27
- }
28
- else if ((0, options_js_1.isSyncNoFile)(opt)) {
29
- if (typeof cb === 'function') {
30
- throw new TypeError('callback not supported for sync tar functions');
31
- }
32
- return syncNoFile(opt, entries);
33
- }
34
- else if ((0, options_js_1.isAsyncNoFile)(opt)) {
35
- if (typeof cb === 'function') {
36
- throw new TypeError('callback only supported with file option');
37
- }
38
- return asyncNoFile(opt, entries);
39
- /* c8 ignore start */
40
- }
41
- throw new Error('impossible options??');
42
- /* c8 ignore stop */
43
- }, {
44
- syncFile,
45
- asyncFile,
46
- syncNoFile,
47
- asyncNoFile,
48
- validate,
49
- });
50
- };
51
- exports.makeCommand = makeCommand;
52
- //# sourceMappingURL=make-command.js.map
@@ -1,2 +0,0 @@
1
- export declare const normalizeWindowsPath: (p: unknown) => string;
2
- //# sourceMappingURL=normalize-windows-path.d.ts.map
@@ -1,12 +0,0 @@
1
- "use strict";
2
- // on windows, either \ or / are valid directory separators.
3
- // on unix, \ is a valid character in filenames.
4
- // so, on windows, and only on windows, we replace all \ chars with /,
5
- // so that we can use / as our one and only directory separator char.
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.normalizeWindowsPath = void 0;
8
- const platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
9
- exports.normalizeWindowsPath = platform !== 'win32' ?
10
- (p) => String(p)
11
- : (p) => String(p).replaceAll(/\\/g, '/');
12
- //# sourceMappingURL=normalize-windows-path.js.map