@unbrained/pm-cli 2026.11.30 → 2026.12.2

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 (382) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/dist/cli/commander-usage.js +10 -10
  3. package/dist/cli/error-guidance.js +5 -5
  4. package/dist/cli/extension-command-help.js +6 -6
  5. package/dist/cli/help-json-payload.js +7 -7
  6. package/dist/cli/main.js +5 -5
  7. package/dist/cli/register-list-query.js +10 -10
  8. package/dist/cli/register-mutation.js +3 -3
  9. package/dist/cli/runtime/invocation-command-path.js +2 -0
  10. package/dist/cli/runtime/read-output-mutation-retry.js +1 -1
  11. package/dist/cli-bundle/bundle-manifest.json +1 -1
  12. package/dist/cli-bundle/chunks/{chunk-DCWGM7CY.js → chunk-3HKPVOAN.js} +2 -2
  13. package/dist/cli-bundle/chunks/{chunk-Z7YL2SUM.js → chunk-3KEMIPKG.js} +2 -2
  14. package/dist/cli-bundle/chunks/{chunk-TX74QJ4W.js → chunk-4YYFY33T.js} +2 -2
  15. package/dist/cli-bundle/chunks/{chunk-47ZS6RPL.js → chunk-7NAO7I75.js} +2 -2
  16. package/dist/cli-bundle/chunks/{chunk-IGEFPHV7.js → chunk-7V65VACG.js} +52 -52
  17. package/dist/cli-bundle/chunks/chunk-A5ZEMOVR.js +2 -0
  18. package/dist/cli-bundle/chunks/{chunk-5PNOVDVO.js → chunk-AHV3CSQG.js} +2 -2
  19. package/dist/cli-bundle/chunks/{chunk-KCVSSONY.js → chunk-C6WM6ZN4.js} +3 -3
  20. package/dist/cli-bundle/chunks/chunk-CBUC4X7Q.js +127 -0
  21. package/dist/cli-bundle/chunks/{chunk-CCKM5YQM.js → chunk-G6TARHFK.js} +2 -2
  22. package/dist/cli-bundle/chunks/{chunk-TY55UX6M.js → chunk-GOEQXVOI.js} +2 -2
  23. package/dist/cli-bundle/chunks/chunk-I4SPJQQI.js +3 -0
  24. package/dist/cli-bundle/chunks/{chunk-Q4VZSMUL.js → chunk-L2ZSSMYY.js} +2 -2
  25. package/dist/cli-bundle/chunks/{chunk-NHBG5ET3.js → chunk-MZZ4ZJ5Z.js} +2 -2
  26. package/dist/cli-bundle/chunks/chunk-NRQCBUYD.js +113 -0
  27. package/dist/cli-bundle/chunks/{chunk-YVTALIN3.js → chunk-OBPO6V7H.js} +2 -2
  28. package/dist/cli-bundle/chunks/{chunk-KXTKLDKD.js → chunk-OXC5KBIQ.js} +2 -2
  29. package/dist/cli-bundle/chunks/{chunk-HXQ3OHQR.js → chunk-PCDTWL6V.js} +2 -2
  30. package/dist/cli-bundle/chunks/{chunk-AOTI76Q6.js → chunk-Q6K7HWZ7.js} +2 -2
  31. package/dist/cli-bundle/chunks/chunk-QDV7S2QS.js +2 -0
  32. package/dist/cli-bundle/chunks/{chunk-NZSXWIX7.js → chunk-ROTEELDL.js} +7 -7
  33. package/dist/cli-bundle/chunks/{chunk-WFYE34TO.js → chunk-SDXCJZKB.js} +23 -23
  34. package/dist/cli-bundle/chunks/{chunk-2SBTXR6C.js → chunk-SY5C3U32.js} +3 -3
  35. package/dist/cli-bundle/chunks/{chunk-FR7ULTM4.js → chunk-TKUG2X24.js} +2 -2
  36. package/dist/cli-bundle/chunks/{chunk-FECZV72T.js → chunk-UNBW2LF3.js} +2 -2
  37. package/dist/cli-bundle/chunks/chunk-V2S4XAX3.js +2 -0
  38. package/dist/cli-bundle/chunks/chunk-WSEIEDEK.js +2 -0
  39. package/dist/cli-bundle/chunks/{chunk-ZA5NS3PL.js → chunk-ZL6J6JYT.js} +6 -6
  40. package/dist/cli-bundle/chunks/{field-option-collisions-2F2Z7R7B.js → field-option-collisions-BBGTV7AD.js} +2 -2
  41. package/dist/cli-bundle/chunks/item-revision-3LENTXYF.js +2 -0
  42. package/dist/cli-bundle/chunks/item-transaction-56J5OCHA.js +2 -0
  43. package/dist/cli-bundle/chunks/{linked-resource-value-list-WXPPYUVQ.js → linked-resource-value-list-ZBIY4H23.js} +2 -2
  44. package/dist/cli-bundle/chunks/{mutation-actor-UK3QNEEB.js → mutation-actor-NHN33ITJ.js} +2 -2
  45. package/dist/cli-bundle/chunks/{mutation-admission-UTDYPFWP.js → mutation-admission-PGKJTCG6.js} +2 -2
  46. package/dist/cli-bundle/chunks/{register-list-query-DRA3CWHI.js → register-list-query-7S5QWDTI.js} +11 -11
  47. package/dist/cli-bundle/chunks/{register-mutation-WO74VLEQ.js → register-mutation-EK6DVIQK.js} +5 -5
  48. package/dist/cli-bundle/chunks/{register-operations-CRBKH7WN.js → register-operations-6MURXE4V.js} +2 -2
  49. package/dist/cli-bundle/chunks/{register-setup-6V6NQB5C.js → register-setup-RW26X3GJ.js} +2 -2
  50. package/dist/cli-bundle/chunks/{stage-DYEHGASU.js → stage-4ZCF74G4.js} +2 -2
  51. package/dist/cli-bundle/focused-chunks/{chunk-RQYVX2T6.js → chunk-2DGKVXFT.js} +2 -2
  52. package/dist/cli-bundle/focused-chunks/chunk-2UWKU2BQ.js +3 -0
  53. package/dist/cli-bundle/focused-chunks/{chunk-A3DORTXS.js → chunk-3COWDIPX.js} +54 -54
  54. package/dist/cli-bundle/focused-chunks/{chunk-UQJ4PY2Y.js → chunk-4SCFAWAW.js} +2 -2
  55. package/dist/cli-bundle/focused-chunks/{chunk-7G7JIXLL.js → chunk-6BKT6XQN.js} +2 -2
  56. package/dist/cli-bundle/focused-chunks/chunk-6IY5CVGJ.js +2 -0
  57. package/dist/cli-bundle/focused-chunks/chunk-7A6SEZEY.js +4 -0
  58. package/dist/cli-bundle/focused-chunks/{chunk-IJ3T3W4U.js → chunk-BHNBPCHP.js} +2 -2
  59. package/dist/cli-bundle/focused-chunks/{chunk-LWBZ7UGG.js → chunk-EQCQTYKO.js} +2 -2
  60. package/dist/cli-bundle/focused-chunks/{chunk-FM5WQ6ZU.js → chunk-HTDYNY4L.js} +2 -2
  61. package/dist/cli-bundle/focused-chunks/{chunk-TQQO42C2.js → chunk-J72TRWR5.js} +26 -26
  62. package/dist/cli-bundle/focused-chunks/{chunk-L357ZAES.js → chunk-JPZGC3W4.js} +5 -5
  63. package/dist/cli-bundle/focused-chunks/{chunk-62AMZMR4.js → chunk-KNBGHCIP.js} +3 -3
  64. package/dist/cli-bundle/focused-chunks/chunk-N64AC5G6.js +100 -0
  65. package/dist/cli-bundle/focused-chunks/{chunk-IIVDBAJM.js → chunk-OG57ESZK.js} +2 -2
  66. package/dist/cli-bundle/focused-chunks/{chunk-MZNV26XE.js → chunk-P2H3GTJK.js} +2 -2
  67. package/dist/cli-bundle/focused-chunks/chunk-QZRYGYTI.js +2 -0
  68. package/dist/cli-bundle/focused-chunks/chunk-SQMOF65W.js +2 -0
  69. package/dist/cli-bundle/focused-chunks/chunk-T3ILWAEV.js +2 -0
  70. package/dist/cli-bundle/focused-chunks/{chunk-SXC3NVZI.js → chunk-TR22GU7M.js} +2 -2
  71. package/dist/cli-bundle/focused-chunks/{chunk-M57KDG7I.js → chunk-TXTPAFHJ.js} +2 -2
  72. package/dist/cli-bundle/focused-chunks/chunk-VK3IE3TS.js +29 -0
  73. package/dist/cli-bundle/focused-chunks/{chunk-NJTKGBSK.js → chunk-VQIC3UZB.js} +2 -2
  74. package/dist/cli-bundle/focused-chunks/{chunk-U35K7FSE.js → chunk-W4JMV7GF.js} +2 -2
  75. package/dist/cli-bundle/focused-chunks/{field-option-collisions-7TG7STO7.js → field-option-collisions-2C6DLUC4.js} +2 -2
  76. package/dist/cli-bundle/focused-chunks/item-revision-723XCQPS.js +2 -0
  77. package/dist/cli-bundle/focused-chunks/{item-transaction-2IC2MLML.js → item-transaction-LQLQLZE7.js} +2 -2
  78. package/dist/cli-bundle/focused-chunks/{mutation-actor-LJVF2HVD.js → mutation-actor-DJMZUIZI.js} +2 -2
  79. package/dist/cli-bundle/focused-chunks/mutation-admission-SDWQVVHN.js +2 -0
  80. package/dist/cli-bundle/focused-chunks/{stage-MWR73LTZ.js → stage-QBZIK3T5.js} +2 -2
  81. package/dist/cli-bundle/main.js +27 -27
  82. package/dist/cli-bundle/sdk-authoring.js +1 -1
  83. package/dist/cli-bundle/sdk-contracts.js +1 -1
  84. package/dist/cli-bundle/sdk-core.js +1 -1
  85. package/dist/cli-bundle/sdk-governance.js +1 -1
  86. package/dist/cli-bundle/sdk-graph.js +1 -1
  87. package/dist/cli-bundle/sdk-merge.js +61 -61
  88. package/dist/cli-bundle/sdk-query.js +1 -1
  89. package/dist/cli-bundle/sdk-runtime.js +1 -1
  90. package/dist/cli-bundle/sdk-testing.js +1 -1
  91. package/dist/cli-bundle/sdk.js +2 -2
  92. package/dist/core/extensions/reserved-host-flags.js +1 -1
  93. package/dist/core/shared/secret-rules.d.ts +86 -12
  94. package/dist/core/shared/secret-rules.js +7 -5
  95. package/dist/sdk/cli-bootstrap.js +1 -1
  96. package/dist/sdk/cli-contracts/flag-contracts.d.ts +50 -0
  97. package/dist/sdk/cli-contracts/flag-contracts.js +1 -1
  98. package/dist/sdk/cli-contracts/runtime-contracts.d.ts +3 -1
  99. package/dist/sdk/cli-contracts/runtime-contracts.js +1 -1
  100. package/dist/sdk/extension/command-options.js +1 -1
  101. package/dist/sdk/extension/install-sources.d.ts +2 -2
  102. package/dist/sdk/extension/install-sources.js +5 -5
  103. package/dist/sdk/lifecycle/expect-hash-admission.d.ts +15 -0
  104. package/dist/sdk/lifecycle/expect-hash-admission.js +2 -0
  105. package/dist/sdk/lifecycle/item-revision.d.ts +4 -1
  106. package/dist/sdk/lifecycle/item-revision.js +1 -1
  107. package/dist/sdk/mutation-guard.js +1 -1
  108. package/dist/sdk/output-contracts.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/query/aggregate.js +1 -1
  113. package/dist/sdk/query/context.js +1 -1
  114. package/dist/sdk/query/list.js +1 -1
  115. package/dist/sdk/query/next.js +1 -1
  116. package/dist/sdk/query/search-contracts.js +1 -1
  117. package/dist/sdk/read-output/surfaces.js +1 -1
  118. package/dist/sdk/read-output-budget.d.ts +1 -1
  119. package/dist/sdk/read-output-budget.js +1 -1
  120. package/dist/sdk/read-output-contracts.js +1 -1
  121. package/dist/sdk/read-output-rows.js +1 -1
  122. package/docs/COMMANDS.md +37 -0
  123. package/docs/MUTATION_INTEGRITY.md +226 -10
  124. package/docs/SDK.md +16 -6
  125. package/docs/agent-task-token-baseline.json +1 -1
  126. package/marketplace.json +1 -1
  127. package/node_modules/tar/README.md +1792 -1147
  128. package/node_modules/tar/dist/commonjs/bytes.d.ts +21 -0
  129. package/node_modules/tar/dist/commonjs/bytes.js +83 -0
  130. package/node_modules/tar/dist/commonjs/codec.d.ts +53 -0
  131. package/node_modules/tar/dist/commonjs/codec.js +35 -0
  132. package/node_modules/tar/dist/commonjs/concat.d.ts +3 -0
  133. package/node_modules/tar/dist/commonjs/concat.js +20 -0
  134. package/node_modules/tar/dist/commonjs/create.d.ts +39 -2
  135. package/node_modules/tar/dist/commonjs/create.js +150 -64
  136. package/node_modules/tar/dist/commonjs/dealias.d.ts +79 -0
  137. package/node_modules/tar/dist/commonjs/dealias.js +50 -0
  138. package/node_modules/tar/dist/commonjs/delete.d.ts +19 -0
  139. package/node_modules/tar/dist/commonjs/delete.js +121 -0
  140. package/node_modules/tar/dist/commonjs/entries.d.ts +82 -0
  141. package/node_modules/tar/dist/commonjs/entries.js +398 -0
  142. package/node_modules/tar/dist/commonjs/extract.d.ts +14 -2
  143. package/node_modules/tar/dist/commonjs/extract.js +40 -81
  144. package/node_modules/tar/dist/commonjs/fs.d.ts +201 -0
  145. package/node_modules/tar/dist/commonjs/fs.js +5 -0
  146. package/node_modules/tar/dist/commonjs/header.d.ts +4 -4
  147. package/node_modules/tar/dist/commonjs/header.js +71 -53
  148. package/node_modules/tar/dist/commonjs/index.d.ts +25 -18
  149. package/node_modules/tar/dist/commonjs/index.js +46 -18
  150. package/node_modules/tar/dist/commonjs/index.min.js +2 -3
  151. package/node_modules/tar/dist/commonjs/large-numbers.d.ts +2 -2
  152. package/node_modules/tar/dist/commonjs/large-numbers.js +4 -4
  153. package/node_modules/tar/dist/commonjs/list.d.ts +23 -6
  154. package/node_modules/tar/dist/commonjs/list.js +99 -138
  155. package/node_modules/tar/dist/commonjs/mkdir.d.ts +16 -11
  156. package/node_modules/tar/dist/commonjs/mkdir.js +121 -159
  157. package/node_modules/tar/dist/commonjs/normalize-unicode.js +9 -0
  158. package/node_modules/tar/dist/commonjs/options.d.ts +284 -513
  159. package/node_modules/tar/dist/commonjs/options.js +20 -61
  160. package/node_modules/tar/dist/commonjs/pack.d.ts +150 -96
  161. package/node_modules/tar/dist/commonjs/pack.js +752 -445
  162. package/node_modules/tar/dist/commonjs/parser.d.ts +98 -0
  163. package/node_modules/tar/dist/commonjs/parser.js +452 -0
  164. package/node_modules/tar/dist/commonjs/path-reservations.d.ts +17 -7
  165. package/node_modules/tar/dist/commonjs/path-reservations.js +110 -140
  166. package/node_modules/tar/dist/commonjs/path.d.ts +19 -0
  167. package/node_modules/tar/dist/commonjs/path.js +90 -0
  168. package/node_modules/tar/dist/commonjs/pax.d.ts +3 -1
  169. package/node_modules/tar/dist/commonjs/pax.js +67 -36
  170. package/node_modules/tar/dist/commonjs/read-entry.d.ts +97 -11
  171. package/node_modules/tar/dist/commonjs/read-entry.js +251 -97
  172. package/node_modules/tar/dist/commonjs/read-file.d.ts +22 -0
  173. package/node_modules/tar/dist/commonjs/read-file.js +104 -0
  174. package/node_modules/tar/dist/commonjs/replace.d.ts +45 -1
  175. package/node_modules/tar/dist/commonjs/replace.js +164 -211
  176. package/node_modules/tar/dist/commonjs/server/codecs.d.ts +38 -0
  177. package/node_modules/tar/dist/commonjs/server/codecs.js +252 -0
  178. package/node_modules/tar/dist/commonjs/server/index.d.ts +115 -0
  179. package/node_modules/tar/dist/commonjs/server/index.js +166 -0
  180. package/node_modules/tar/dist/commonjs/server/index.min.js +3 -0
  181. package/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts +8 -0
  182. package/node_modules/tar/dist/commonjs/strip-absolute-path.js +17 -20
  183. package/node_modules/tar/dist/commonjs/to-stream.d.ts +7 -0
  184. package/node_modules/tar/dist/commonjs/to-stream.js +22 -0
  185. package/node_modules/tar/dist/commonjs/types.d.ts +4 -3
  186. package/node_modules/tar/dist/commonjs/types.js +4 -3
  187. package/node_modules/tar/dist/commonjs/unpack.d.ts +143 -89
  188. package/node_modules/tar/dist/commonjs/unpack.js +780 -725
  189. package/node_modules/tar/dist/commonjs/update.d.ts +11 -1
  190. package/node_modules/tar/dist/commonjs/update.js +37 -28
  191. package/node_modules/tar/dist/commonjs/warn.d.ts +27 -0
  192. package/node_modules/tar/dist/commonjs/warn.js +36 -0
  193. package/node_modules/tar/dist/commonjs/win32-path.d.ts +16 -0
  194. package/node_modules/tar/dist/commonjs/win32-path.js +67 -0
  195. package/node_modules/tar/dist/commonjs/write-entry.d.ts +64 -111
  196. package/node_modules/tar/dist/commonjs/write-entry.js +108 -672
  197. package/node_modules/tar/dist/commonjs/write-flag.d.ts +18 -0
  198. package/node_modules/tar/dist/commonjs/write-flag.js +29 -0
  199. package/node_modules/tar/dist/esm/bytes.d.ts +21 -0
  200. package/node_modules/tar/dist/esm/bytes.js +72 -0
  201. package/node_modules/tar/dist/esm/codec.d.ts +53 -0
  202. package/node_modules/tar/dist/esm/codec.js +32 -0
  203. package/node_modules/tar/dist/esm/concat.d.ts +3 -0
  204. package/node_modules/tar/dist/esm/concat.js +16 -0
  205. package/node_modules/tar/dist/esm/create.d.ts +39 -2
  206. package/node_modules/tar/dist/esm/create.js +144 -61
  207. package/node_modules/tar/dist/esm/dealias.d.ts +79 -0
  208. package/node_modules/tar/dist/esm/dealias.js +46 -0
  209. package/node_modules/tar/dist/esm/delete.d.ts +19 -0
  210. package/node_modules/tar/dist/esm/delete.js +117 -0
  211. package/node_modules/tar/dist/esm/entries.d.ts +82 -0
  212. package/node_modules/tar/dist/esm/entries.js +388 -0
  213. package/node_modules/tar/dist/esm/extract.d.ts +14 -2
  214. package/node_modules/tar/dist/esm/extract.js +37 -44
  215. package/node_modules/tar/dist/esm/fs.d.ts +201 -0
  216. package/node_modules/tar/dist/esm/fs.js +4 -0
  217. package/node_modules/tar/dist/esm/header.d.ts +4 -4
  218. package/node_modules/tar/dist/esm/header.js +71 -53
  219. package/node_modules/tar/dist/esm/index.d.ts +25 -18
  220. package/node_modules/tar/dist/esm/index.js +23 -18
  221. package/node_modules/tar/dist/esm/index.min.js +2 -3
  222. package/node_modules/tar/dist/esm/large-numbers.d.ts +2 -2
  223. package/node_modules/tar/dist/esm/large-numbers.js +4 -4
  224. package/node_modules/tar/dist/esm/list.d.ts +23 -6
  225. package/node_modules/tar/dist/esm/list.js +96 -101
  226. package/node_modules/tar/dist/esm/mkdir.d.ts +16 -11
  227. package/node_modules/tar/dist/esm/mkdir.js +119 -154
  228. package/node_modules/tar/dist/esm/normalize-unicode.js +9 -0
  229. package/node_modules/tar/dist/esm/options.d.ts +284 -513
  230. package/node_modules/tar/dist/esm/options.js +17 -51
  231. package/node_modules/tar/dist/esm/pack.d.ts +150 -96
  232. package/node_modules/tar/dist/esm/pack.js +750 -441
  233. package/node_modules/tar/dist/esm/parser.d.ts +98 -0
  234. package/node_modules/tar/dist/esm/parser.js +448 -0
  235. package/node_modules/tar/dist/esm/path-reservations.d.ts +17 -7
  236. package/node_modules/tar/dist/esm/path-reservations.js +110 -140
  237. package/node_modules/tar/dist/esm/path.d.ts +19 -0
  238. package/node_modules/tar/dist/esm/path.js +80 -0
  239. package/node_modules/tar/dist/esm/pax.d.ts +3 -1
  240. package/node_modules/tar/dist/esm/pax.js +66 -35
  241. package/node_modules/tar/dist/esm/read-entry.d.ts +97 -11
  242. package/node_modules/tar/dist/esm/read-entry.js +248 -96
  243. package/node_modules/tar/dist/esm/read-file.d.ts +22 -0
  244. package/node_modules/tar/dist/esm/read-file.js +99 -0
  245. package/node_modules/tar/dist/esm/replace.d.ts +45 -1
  246. package/node_modules/tar/dist/esm/replace.js +160 -207
  247. package/node_modules/tar/dist/esm/server/codecs.d.ts +38 -0
  248. package/node_modules/tar/dist/esm/server/codecs.js +214 -0
  249. package/node_modules/tar/dist/esm/server/index.d.ts +115 -0
  250. package/node_modules/tar/dist/esm/server/index.js +102 -0
  251. package/node_modules/tar/dist/esm/server/index.min.js +3 -0
  252. package/node_modules/tar/dist/esm/strip-absolute-path.d.ts +8 -0
  253. package/node_modules/tar/dist/esm/strip-absolute-path.js +17 -20
  254. package/node_modules/tar/dist/esm/to-stream.d.ts +7 -0
  255. package/node_modules/tar/dist/esm/to-stream.js +18 -0
  256. package/node_modules/tar/dist/esm/types.d.ts +4 -3
  257. package/node_modules/tar/dist/esm/types.js +4 -3
  258. package/node_modules/tar/dist/esm/unpack.d.ts +143 -89
  259. package/node_modules/tar/dist/esm/unpack.js +776 -719
  260. package/node_modules/tar/dist/esm/update.d.ts +11 -1
  261. package/node_modules/tar/dist/esm/update.js +35 -28
  262. package/node_modules/tar/dist/esm/warn.d.ts +27 -0
  263. package/node_modules/tar/dist/esm/warn.js +31 -0
  264. package/node_modules/tar/dist/esm/win32-path.d.ts +16 -0
  265. package/node_modules/tar/dist/esm/win32-path.js +60 -0
  266. package/node_modules/tar/dist/esm/write-entry.d.ts +64 -111
  267. package/node_modules/tar/dist/esm/write-entry.js +107 -633
  268. package/node_modules/tar/dist/esm/write-flag.d.ts +18 -0
  269. package/node_modules/tar/dist/esm/write-flag.js +25 -0
  270. package/node_modules/tar/package.json +68 -224
  271. package/package.json +2 -2
  272. package/packages/pm-beads/package.json +1 -1
  273. package/packages/pm-calendar/package.json +1 -1
  274. package/packages/pm-command-kit/package.json +1 -1
  275. package/packages/pm-digital-twin/package.json +1 -1
  276. package/packages/pm-governance-audit/package.json +1 -1
  277. package/packages/pm-guide-shell/package.json +1 -1
  278. package/packages/pm-kanban/package.json +1 -1
  279. package/packages/pm-lifecycle-hooks/package.json +1 -1
  280. package/packages/pm-linked-test-adapters/package.json +1 -1
  281. package/packages/pm-search-advanced/package.json +1 -1
  282. package/packages/pm-templates/package.json +1 -1
  283. package/packages/pm-todos/package.json +1 -1
  284. package/packages/pm-vcs/package.json +1 -1
  285. package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
  286. package/plugins/pm-claude/package.json +1 -1
  287. package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
  288. package/plugins/pm-codex/package.json +1 -1
  289. package/plugins/pm-codex/plugin.json +1 -1
  290. package/runtime-dependencies.json +1 -1
  291. package/dist/cli-bundle/chunks/chunk-3TXEWHQX.js +0 -125
  292. package/dist/cli-bundle/chunks/chunk-JPJNJHQW.js +0 -2
  293. package/dist/cli-bundle/chunks/chunk-NVYDPNQP.js +0 -2
  294. package/dist/cli-bundle/chunks/chunk-SJWIPGZW.js +0 -113
  295. package/dist/cli-bundle/chunks/chunk-USBTXMKS.js +0 -2
  296. package/dist/cli-bundle/chunks/chunk-VCXQ6A35.js +0 -3
  297. package/dist/cli-bundle/chunks/chunk-YPMNXG2C.js +0 -2
  298. package/dist/cli-bundle/chunks/item-revision-UAF6L47R.js +0 -2
  299. package/dist/cli-bundle/chunks/item-transaction-RJECL53Y.js +0 -2
  300. package/dist/cli-bundle/focused-chunks/chunk-2UUBS4BG.js +0 -2
  301. package/dist/cli-bundle/focused-chunks/chunk-4ER3VMST.js +0 -2
  302. package/dist/cli-bundle/focused-chunks/chunk-4YBMHMBJ.js +0 -2
  303. package/dist/cli-bundle/focused-chunks/chunk-HXM7K6VH.js +0 -100
  304. package/dist/cli-bundle/focused-chunks/chunk-NGHT2LNG.js +0 -3
  305. package/dist/cli-bundle/focused-chunks/chunk-P55AZPFN.js +0 -2
  306. package/dist/cli-bundle/focused-chunks/chunk-WAP3DF4B.js +0 -27
  307. package/dist/cli-bundle/focused-chunks/chunk-XR745UGE.js +0 -4
  308. package/dist/cli-bundle/focused-chunks/item-revision-J7EUGCHR.js +0 -2
  309. package/dist/cli-bundle/focused-chunks/mutation-admission-SLFAUONA.js +0 -2
  310. package/node_modules/@isaacs/fs-minipass/LICENSE +0 -15
  311. package/node_modules/@isaacs/fs-minipass/README.md +0 -71
  312. package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts +0 -118
  313. package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js +0 -430
  314. package/node_modules/@isaacs/fs-minipass/dist/commonjs/package.json +0 -3
  315. package/node_modules/@isaacs/fs-minipass/dist/esm/index.d.ts +0 -118
  316. package/node_modules/@isaacs/fs-minipass/dist/esm/index.js +0 -420
  317. package/node_modules/@isaacs/fs-minipass/dist/esm/package.json +0 -3
  318. package/node_modules/@isaacs/fs-minipass/package.json +0 -72
  319. package/node_modules/chownr/LICENSE.md +0 -63
  320. package/node_modules/chownr/README.md +0 -3
  321. package/node_modules/chownr/dist/commonjs/index.d.ts +0 -3
  322. package/node_modules/chownr/dist/commonjs/index.js +0 -93
  323. package/node_modules/chownr/dist/commonjs/package.json +0 -3
  324. package/node_modules/chownr/dist/esm/index.d.ts +0 -3
  325. package/node_modules/chownr/dist/esm/index.js +0 -85
  326. package/node_modules/chownr/dist/esm/package.json +0 -3
  327. package/node_modules/chownr/package.json +0 -69
  328. package/node_modules/minipass/LICENSE.md +0 -55
  329. package/node_modules/minipass/README.md +0 -825
  330. package/node_modules/minipass/dist/commonjs/index.d.ts +0 -545
  331. package/node_modules/minipass/dist/commonjs/index.js +0 -1038
  332. package/node_modules/minipass/dist/commonjs/package.json +0 -3
  333. package/node_modules/minipass/dist/esm/index.d.ts +0 -545
  334. package/node_modules/minipass/dist/esm/index.js +0 -1020
  335. package/node_modules/minipass/dist/esm/package.json +0 -3
  336. package/node_modules/minipass/package.json +0 -77
  337. package/node_modules/minizlib/LICENSE +0 -26
  338. package/node_modules/minizlib/README.md +0 -64
  339. package/node_modules/minizlib/dist/commonjs/constants.d.ts +0 -2
  340. package/node_modules/minizlib/dist/commonjs/constants.js +0 -123
  341. package/node_modules/minizlib/dist/commonjs/index.d.ts +0 -99
  342. package/node_modules/minizlib/dist/commonjs/index.js +0 -416
  343. package/node_modules/minizlib/dist/commonjs/package.json +0 -3
  344. package/node_modules/minizlib/dist/esm/constants.d.ts +0 -2
  345. package/node_modules/minizlib/dist/esm/constants.js +0 -117
  346. package/node_modules/minizlib/dist/esm/index.d.ts +0 -99
  347. package/node_modules/minizlib/dist/esm/index.js +0 -363
  348. package/node_modules/minizlib/dist/esm/package.json +0 -3
  349. package/node_modules/minizlib/package.json +0 -80
  350. package/node_modules/tar/dist/commonjs/get-write-flag.d.ts +0 -2
  351. package/node_modules/tar/dist/commonjs/get-write-flag.js +0 -32
  352. package/node_modules/tar/dist/commonjs/make-command.d.ts +0 -49
  353. package/node_modules/tar/dist/commonjs/make-command.js +0 -52
  354. package/node_modules/tar/dist/commonjs/normalize-windows-path.d.ts +0 -2
  355. package/node_modules/tar/dist/commonjs/normalize-windows-path.js +0 -12
  356. package/node_modules/tar/dist/commonjs/parse.d.ts +0 -92
  357. package/node_modules/tar/dist/commonjs/parse.js +0 -655
  358. package/node_modules/tar/dist/commonjs/process-umask.d.ts +0 -2
  359. package/node_modules/tar/dist/commonjs/process-umask.js +0 -7
  360. package/node_modules/tar/dist/commonjs/warn-method.d.ts +0 -24
  361. package/node_modules/tar/dist/commonjs/warn-method.js +0 -31
  362. package/node_modules/tar/dist/esm/get-write-flag.d.ts +0 -2
  363. package/node_modules/tar/dist/esm/get-write-flag.js +0 -26
  364. package/node_modules/tar/dist/esm/make-command.d.ts +0 -49
  365. package/node_modules/tar/dist/esm/make-command.js +0 -48
  366. package/node_modules/tar/dist/esm/normalize-windows-path.d.ts +0 -2
  367. package/node_modules/tar/dist/esm/normalize-windows-path.js +0 -9
  368. package/node_modules/tar/dist/esm/parse.d.ts +0 -92
  369. package/node_modules/tar/dist/esm/parse.js +0 -651
  370. package/node_modules/tar/dist/esm/process-umask.d.ts +0 -2
  371. package/node_modules/tar/dist/esm/process-umask.js +0 -3
  372. package/node_modules/tar/dist/esm/warn-method.d.ts +0 -24
  373. package/node_modules/tar/dist/esm/warn-method.js +0 -27
  374. package/node_modules/yallist/LICENSE.md +0 -63
  375. package/node_modules/yallist/README.md +0 -205
  376. package/node_modules/yallist/dist/commonjs/index.d.ts +0 -39
  377. package/node_modules/yallist/dist/commonjs/index.js +0 -384
  378. package/node_modules/yallist/dist/commonjs/package.json +0 -3
  379. package/node_modules/yallist/dist/esm/index.d.ts +0 -39
  380. package/node_modules/yallist/dist/esm/index.js +0 -379
  381. package/node_modules/yallist/dist/esm/package.json +0 -3
  382. 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