@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
@@ -0,0 +1,252 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.zlibCodecs = exports.codecStream = void 0;
37
+ const node_buffer_1 = require("node:buffer");
38
+ const nodeZlib = __importStar(require("node:zlib"));
39
+ // The size of each chunk of decompressed output, and the size below
40
+ // which chunks of input to compress are put together.
41
+ const CHUNK = 64 * 1024;
42
+ /**
43
+ * Make the two web streams of a `node:zlib` stream, or of another
44
+ * `Transform` stream of `node:stream`. The result fits the
45
+ * `transform` option of `extract`.
46
+ *
47
+ * As with a `TransformStream`, a write is complete only when the
48
+ * reader asks for more output than the stream has. The zlib stream
49
+ * makes output only until its buffer is full. So the reader of an
50
+ * archive can stop before more is decompressed.
51
+ *
52
+ * @param batch put small chunks of input together for one write.
53
+ * Each write is a task for a thread.
54
+ * @param first called with the first chunk of output
55
+ */
56
+ const codecStream = (stream, batch = false, first) => {
57
+ let output;
58
+ let input;
59
+ // True while the reader waits for output.
60
+ let wanted = false;
61
+ // True when the zlib stream is closed.
62
+ let done = false;
63
+ // settles the write or the close that waits for the zlib stream
64
+ let settle;
65
+ // settles the write that waits for the reader
66
+ let wake;
67
+ const held = batch ? new Uint8Array(CHUNK) : undefined;
68
+ let used = 0;
69
+ const write = (chunk) => new Promise(res => {
70
+ settle = res;
71
+ stream.write(chunk, () => res());
72
+ });
73
+ const flush = async (held) => {
74
+ if (used)
75
+ await write(held.subarray(0, used));
76
+ used = 0;
77
+ };
78
+ // A write has no callback when the zlib stream fails or is
79
+ // destroyed.
80
+ const release = () => {
81
+ done = true;
82
+ settle?.();
83
+ wake?.();
84
+ };
85
+ const stop = () => {
86
+ release();
87
+ stream.destroy();
88
+ };
89
+ stream.pause();
90
+ stream.on('data', (chunk) => {
91
+ first?.(chunk);
92
+ first = undefined;
93
+ wanted = false;
94
+ stream.pause();
95
+ output.enqueue(chunk);
96
+ });
97
+ // On Deno, a zlib stream that already has all its output emits
98
+ // 'end' after it is destroyed. The output is then closed already.
99
+ stream.on('end', () => {
100
+ if (!done)
101
+ output.close();
102
+ });
103
+ stream.on('error', er => {
104
+ output.error(er);
105
+ input.error(er);
106
+ release();
107
+ });
108
+ stream.on('close', release);
109
+ return {
110
+ readable: new ReadableStream({
111
+ start: controller => {
112
+ output = controller;
113
+ },
114
+ pull: () => {
115
+ wanted = true;
116
+ wake?.();
117
+ stream.resume();
118
+ },
119
+ cancel: reason => {
120
+ // Stop the source of the input also.
121
+ input.error(reason);
122
+ stop();
123
+ },
124
+ }, { highWaterMark: 0 }),
125
+ writable: new WritableStream({
126
+ start: controller => {
127
+ input = controller;
128
+ // An abort does not wait for a write that waits.
129
+ const { signal } = controller;
130
+ signal.addEventListener('abort', () => {
131
+ output.error(signal.reason);
132
+ stop();
133
+ });
134
+ },
135
+ write: async (chunk) => {
136
+ if (!held)
137
+ await write(chunk);
138
+ else {
139
+ if (used + chunk.length > CHUNK)
140
+ await flush(held);
141
+ if (chunk.length > CHUNK)
142
+ await write(chunk);
143
+ else {
144
+ held.set(chunk, used);
145
+ used += chunk.length;
146
+ }
147
+ }
148
+ // As with a `TransformStream`, the write waits until the
149
+ // reader wants output. Then a pipe from the source does not
150
+ // start a write to a stream that the reader canceled.
151
+ if (!wanted && !done)
152
+ await new Promise(res => (wake = res));
153
+ },
154
+ close: async () => {
155
+ if (held)
156
+ await flush(held);
157
+ await new Promise(res => {
158
+ settle = res;
159
+ stream.end();
160
+ });
161
+ },
162
+ }),
163
+ };
164
+ };
165
+ exports.codecStream = codecStream;
166
+ // The option of the sync functions that limits the output. They
167
+ // refuse a number that is not in the range of a buffer length.
168
+ const limit = (max) => max >= node_buffer_1.constants.MAX_LENGTH ?
169
+ {}
170
+ : { maxOutputLength: Math.max(1, Math.floor(max)) };
171
+ const make = (base, compress, decompress, compressSync, decompressSync) => ({
172
+ ...base,
173
+ decompress: () => (0, exports.codecStream)(decompress({ chunkSize: CHUNK })),
174
+ compress: options => (0, exports.codecStream)(compress(options), true),
175
+ decompressSync: (data, { maxOutputLength }) => {
176
+ try {
177
+ return decompressSync(data, limit(maxOutputLength));
178
+ }
179
+ catch (er) {
180
+ if (er?.code !== 'ERR_BUFFER_TOO_LARGE') {
181
+ throw er;
182
+ }
183
+ throw new Error(`max decompression ratio exceeded: the output is larger than ${maxOutputLength} bytes`);
184
+ }
185
+ },
186
+ compressSync,
187
+ });
188
+ // Byte 9 of a gzip stream names the system that made it. Set it to
189
+ // 255, "unknown", so that each system makes the same bytes.
190
+ const portable = (chunk) => {
191
+ chunk[9] = 255;
192
+ };
193
+ /**
194
+ * The codecs of a `node:zlib` module: gzip, then brotli and zstd if
195
+ * the module has their functions.
196
+ *
197
+ * The value of a `gzip`, `brotli`, or `zstd` option of `create` goes
198
+ * to the zlib function as its options. A gzip codec reads the tar
199
+ * option `portable` in its options: it makes output that does not
200
+ * name the system.
201
+ *
202
+ * A brotli archive has no magic number. The readers use the brotli
203
+ * codec for a file with a name that ends in `.tar.br` or `.tbr`, if
204
+ * the file does not start with a tar header.
205
+ */
206
+ const zlibCodecs = (z = nodeZlib) => {
207
+ const { createBrotliCompress, createBrotliDecompress, brotliCompressSync, brotliDecompressSync, createZstdCompress, createZstdDecompress, zstdCompressSync, zstdDecompressSync, } = z;
208
+ const gzip = make({
209
+ name: 'gzip',
210
+ headLength: 2,
211
+ detect: head => head[0] === 0x1f && head[1] === 0x8b,
212
+ }, z.createGzip, z.createGunzip, z.gzipSync, z.gunzipSync);
213
+ const codecs = [
214
+ {
215
+ ...gzip,
216
+ compress: ({ portable: p, ...options } = {}) => (0, exports.codecStream)(z.createGzip(options), true, p ? portable : undefined),
217
+ compressSync: (data, { portable: p, ...options } = {}) => {
218
+ const out = z.gzipSync(data, options);
219
+ if (p)
220
+ portable(out);
221
+ return out;
222
+ },
223
+ },
224
+ ];
225
+ if (createBrotliCompress &&
226
+ createBrotliDecompress &&
227
+ brotliCompressSync &&
228
+ brotliDecompressSync) {
229
+ codecs.push(make({
230
+ name: 'brotli',
231
+ headLength: 0,
232
+ detect: () => false,
233
+ extensions: ['.tar.br', '.tbr'],
234
+ }, createBrotliCompress, createBrotliDecompress, brotliCompressSync, brotliDecompressSync));
235
+ }
236
+ if (createZstdCompress &&
237
+ createZstdDecompress &&
238
+ zstdCompressSync &&
239
+ zstdDecompressSync) {
240
+ codecs.push(make({
241
+ name: 'zstd',
242
+ headLength: 4,
243
+ detect: head => head[0] === 0x28 &&
244
+ head[1] === 0xb5 &&
245
+ head[2] === 0x2f &&
246
+ head[3] === 0xfd,
247
+ }, createZstdCompress, createZstdDecompress, zstdCompressSync, zstdDecompressSync));
248
+ }
249
+ return codecs;
250
+ };
251
+ exports.zlibCodecs = zlibCodecs;
252
+ //# sourceMappingURL=codecs.js.map
@@ -0,0 +1,115 @@
1
+ import type { BrotliOptions, ZlibOptions, ZstdOptions } from 'node:zlib';
2
+ import * as core from '../index.js';
3
+ import { type FileOption, type NoFileOption, type WithAliases } from '../dealias.js';
4
+ import type { PackInput, PackInputSync } from '../pack.js';
5
+ import type { ReadEntry, ReadEntrySync } from '../read-entry.js';
6
+ export * from '../index.js';
7
+ export { TarReaderSync } from '../entries.js';
8
+ export { PackSync } from '../pack.js';
9
+ export { ReadEntrySync } from '../read-entry.js';
10
+ export { UnpackSync } from '../unpack.js';
11
+ export { zlibCodecs, codecStream, type ZlibModule } from './codecs.js';
12
+ /** Each member of the option type `T`, with `fs` and `cwd` optional. */
13
+ export type Loose<T> = T extends unknown ? Omit<T, 'fs' | 'cwd'> & Partial<Pick<T, Extract<keyof T, 'fs' | 'cwd'>>> : never;
14
+ /** The compression options, with the option types of `node:zlib`. */
15
+ export type Zip = {
16
+ /** Compress with gzip. An object is the options of `zlib.createGzip`. */
17
+ gzip?: boolean | ZlibOptions;
18
+ /**
19
+ * Compress with brotli. An object is the options of
20
+ * `zlib.createBrotliCompress`.
21
+ */
22
+ brotli?: boolean | BrotliOptions;
23
+ /**
24
+ * Compress with zstd. An object is the options of
25
+ * `zlib.createZstdCompress`.
26
+ */
27
+ zstd?: boolean | ZstdOptions;
28
+ };
29
+ /** `Loose<T>`, with the compression options of `Zip`. */
30
+ export type Packing<T> = Omit<Loose<T>, keyof Zip> & Zip;
31
+ /** The options of `entries`. */
32
+ export type ReadOptions = core.ReadOptions;
33
+ /** The options of `entriesSync`. */
34
+ export type ReadOptionsSync = core.ReadOptionsSync;
35
+ /** The options of `list`. Set `input` or `file`. */
36
+ export type ListOptions = Loose<core.ListOptions>;
37
+ /** The options of `listSync`. Set `input` or `file`. */
38
+ export type ListOptionsSync = Loose<core.ListOptionsSync>;
39
+ /** The options of `extract`. The default of `cwd` is `process.cwd()`. */
40
+ export type ExtractOptions = Loose<core.ExtractOptions>;
41
+ /** The options of `extractSync`. */
42
+ export type ExtractOptionsSync = Loose<core.ExtractOptionsSync>;
43
+ /** The options of `create`. The default of `cwd` is `process.cwd()`. */
44
+ export type CreateOptions = Packing<core.CreateOptions>;
45
+ /** The options of `createSync`. */
46
+ export type CreateOptionsSync = Packing<core.CreateOptionsSync>;
47
+ /** The options of `replace` and `update`. */
48
+ export type ReplaceOptions = Packing<core.ReplaceOptions>;
49
+ /** The options of `replaceSync` and `updateSync`. */
50
+ export type ReplaceOptionsSync = Packing<core.ReplaceOptionsSync>;
51
+ /** The options of `delete`. */
52
+ export type DeleteOptions = Loose<core.DeleteOptions>;
53
+ /** The options of `deleteSync`. */
54
+ export type DeleteOptionsSync = Loose<core.DeleteOptionsSync>;
55
+ /**
56
+ * Read the entries of an archive. Gzip, brotli, and zstd input is
57
+ * decompressed, if the runtime has the format.
58
+ */
59
+ export declare const entries: (input: core.TarInput, opt?: ReadOptions) => AsyncIterableIterator<ReadEntry, undefined>;
60
+ /** The sync form of `entries`. */
61
+ export declare const entriesSync: (input: core.TarInputSync, opt?: ReadOptionsSync) => IterableIterator<ReadEntrySync, undefined>;
62
+ /**
63
+ * Call `opt.onEntry` with each entry of an archive. If `files` is
64
+ * set, only with the entries that it lists, and the entries in the
65
+ * directories that it lists.
66
+ */
67
+ export declare const list: (opt: WithAliases<ListOptions>, files?: string[]) => Promise<void>;
68
+ /** The sync form of `list`. */
69
+ export declare const listSync: (opt: WithAliases<ListOptionsSync>, files?: string[]) => void;
70
+ /**
71
+ * Extract the entries of an archive into the directory `opt.cwd`.
72
+ * If `files` is set, only the entries that it lists, and the entries
73
+ * in the directories that it lists.
74
+ */
75
+ export declare const extract: (opt: WithAliases<ExtractOptions>, files?: string[]) => Promise<void>;
76
+ /** The sync form of `extract`. */
77
+ export declare const extractSync: (opt: WithAliases<ExtractOptionsSync>, files?: string[]) => void;
78
+ /**
79
+ * Make an archive of the files. With `opt.file`, the archive is
80
+ * written to that path. With no `opt.file`, the result is a stream
81
+ * of the bytes of the archive.
82
+ */
83
+ export declare function create(opt: WithAliases<CreateOptions> & FileOption, files: PackInput[]): Promise<void>;
84
+ export declare function create(opt: WithAliases<CreateOptions> & NoFileOption, files: PackInput[]): ReadableStream<Uint8Array>;
85
+ export declare function create(opt: WithAliases<CreateOptions>, files: PackInput[]): Promise<void> | ReadableStream<Uint8Array>;
86
+ /**
87
+ * The sync form of `create`. With no `opt.file`, the result is an
88
+ * iterator of the bytes of the archive.
89
+ */
90
+ export declare function createSync(opt: WithAliases<CreateOptionsSync> & FileOption, files: PackInputSync[]): void;
91
+ export declare function createSync(opt: WithAliases<CreateOptionsSync> & NoFileOption, files: PackInputSync[]): IterableIterator<Uint8Array, undefined>;
92
+ export declare function createSync(opt: WithAliases<CreateOptionsSync>, files: PackInputSync[]): void | IterableIterator<Uint8Array, undefined>;
93
+ /** Add the files to the end of an archive file that is not compressed. */
94
+ export declare const replace: (opt: WithAliases<ReplaceOptions>, files: PackInput[]) => Promise<void>;
95
+ /** The sync form of `replace`. */
96
+ export declare const replaceSync: (opt: WithAliases<ReplaceOptionsSync>, files: PackInputSync[]) => void;
97
+ /**
98
+ * The same as `replace`, but a file is added only if it is newer than
99
+ * the last entry of the archive that has its path. A directory is
100
+ * always added, and each path in it is checked.
101
+ */
102
+ export declare const update: (opt: WithAliases<ReplaceOptions>, files: PackInput[]) => Promise<void>;
103
+ /** The sync form of `update`. */
104
+ export declare const updateSync: (opt: WithAliases<ReplaceOptionsSync>, files: PackInputSync[]) => void;
105
+ /**
106
+ * Remove entries from an archive file: each entry that `files` lists,
107
+ * and each entry in a directory that it lists. With `opt.filter`,
108
+ * only if the filter also returns true.
109
+ */
110
+ declare const del: (opt: WithAliases<DeleteOptions>, files?: string[]) => Promise<void>;
111
+ /** The sync form of `delete`. */
112
+ export declare const deleteSync: (opt: WithAliases<DeleteOptionsSync>, files?: string[]) => void;
113
+ export { del as delete };
114
+ export { create as c, extract as x, list as t, replace as r, update as u };
115
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,166 @@
1
+ "use strict";
2
+ // The entry point for Node.js, and for each runtime that has the
3
+ // `node:` modules. It has all that the core entry point has. Each
4
+ // command gets defaults for the options that the core cannot know:
5
+ // the file system, the working directory, the platform, the user of
6
+ // the process, and the codecs of `node:zlib`. It adds the sync
7
+ // commands.
8
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
9
+ if (k2 === undefined) k2 = k;
10
+ var desc = Object.getOwnPropertyDescriptor(m, k);
11
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
12
+ desc = { enumerable: true, get: function() { return m[k]; } };
13
+ }
14
+ Object.defineProperty(o, k2, desc);
15
+ }) : (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ o[k2] = m[k];
18
+ }));
19
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
20
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
21
+ }) : function(o, v) {
22
+ o["default"] = v;
23
+ });
24
+ var __importStar = (this && this.__importStar) || (function () {
25
+ var ownKeys = function(o) {
26
+ ownKeys = Object.getOwnPropertyNames || function (o) {
27
+ var ar = [];
28
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
29
+ return ar;
30
+ };
31
+ return ownKeys(o);
32
+ };
33
+ return function (mod) {
34
+ if (mod && mod.__esModule) return mod;
35
+ var result = {};
36
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
37
+ __setModuleDefault(result, mod);
38
+ return result;
39
+ };
40
+ })();
41
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
42
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
43
+ };
44
+ Object.defineProperty(exports, "__esModule", { value: true });
45
+ exports.u = exports.r = exports.t = exports.x = exports.delete = exports.deleteSync = exports.updateSync = exports.update = exports.replaceSync = exports.replace = exports.extractSync = exports.extract = exports.listSync = exports.list = exports.entriesSync = exports.entries = exports.codecStream = exports.zlibCodecs = exports.UnpackSync = exports.ReadEntrySync = exports.PackSync = exports.TarReaderSync = void 0;
46
+ exports.create = create;
47
+ exports.c = create;
48
+ exports.createSync = createSync;
49
+ exports.create = create;
50
+ exports.c = create;
51
+ const nodeFs = __importStar(require("node:fs"));
52
+ const nodeFsPromises = __importStar(require("node:fs/promises"));
53
+ const node_path_1 = require("node:path");
54
+ const core = __importStar(require("../index.js"));
55
+ const create_js_1 = require("../create.js");
56
+ const delete_js_1 = require("../delete.js");
57
+ const dealias_js_1 = require("../dealias.js");
58
+ const entries_js_1 = require("../entries.js");
59
+ const extract_js_1 = require("../extract.js");
60
+ const list_js_1 = require("../list.js");
61
+ const replace_js_1 = require("../replace.js");
62
+ const update_js_1 = require("../update.js");
63
+ const codecs_js_1 = require("./codecs.js");
64
+ __exportStar(require("../index.js"), exports);
65
+ var entries_js_2 = require("../entries.js");
66
+ Object.defineProperty(exports, "TarReaderSync", { enumerable: true, get: function () { return entries_js_2.TarReaderSync; } });
67
+ var pack_js_1 = require("../pack.js");
68
+ Object.defineProperty(exports, "PackSync", { enumerable: true, get: function () { return pack_js_1.PackSync; } });
69
+ var read_entry_js_1 = require("../read-entry.js");
70
+ Object.defineProperty(exports, "ReadEntrySync", { enumerable: true, get: function () { return read_entry_js_1.ReadEntrySync; } });
71
+ var unpack_js_1 = require("../unpack.js");
72
+ Object.defineProperty(exports, "UnpackSync", { enumerable: true, get: function () { return unpack_js_1.UnpackSync; } });
73
+ var codecs_js_2 = require("./codecs.js");
74
+ Object.defineProperty(exports, "zlibCodecs", { enumerable: true, get: function () { return codecs_js_2.zlibCodecs; } });
75
+ Object.defineProperty(exports, "codecStream", { enumerable: true, get: function () { return codecs_js_2.codecStream; } });
76
+ const fs = nodeFsPromises;
77
+ const fsSync = nodeFs;
78
+ const platform = process.platform === 'win32' ? 'win32' : 'posix';
79
+ const codecs = (0, codecs_js_1.zlibCodecs)();
80
+ // A copy of the options, with the name of the option in place of
81
+ // each alias, and a default for each option that is not set. `T` is
82
+ // the option type of the core command.
83
+ const fill = (options, fs, paths) => {
84
+ const opt = (0, dealias_js_1.dealias)(options);
85
+ opt.fs ??= fs;
86
+ opt.platform ??= platform;
87
+ opt.codecs = [...(opt.codecs ?? []), ...codecs];
88
+ // A command that reads an archive, and writes no file, does not
89
+ // need the working directory or the user.
90
+ if (paths) {
91
+ // `resolve` adds `process.cwd()` to a relative path.
92
+ opt.cwd = (0, node_path_1.resolve)(opt.cwd ?? '');
93
+ opt.processUid ??= process.getuid?.();
94
+ opt.processGid ??= process.getgid?.();
95
+ opt.processUname ??= process.env.USER;
96
+ if (opt.chmod)
97
+ opt.processUmask ??= process.umask();
98
+ }
99
+ return opt;
100
+ };
101
+ /**
102
+ * Read the entries of an archive. Gzip, brotli, and zstd input is
103
+ * decompressed, if the runtime has the format.
104
+ */
105
+ const entries = (input, opt = {}) => core.entries(input, fill(opt, fs, false));
106
+ exports.entries = entries;
107
+ /** The sync form of `entries`. */
108
+ const entriesSync = (input, opt = {}) => (0, entries_js_1.entriesSync)(input, fill(opt, fsSync, false));
109
+ exports.entriesSync = entriesSync;
110
+ /**
111
+ * Call `opt.onEntry` with each entry of an archive. If `files` is
112
+ * set, only with the entries that it lists, and the entries in the
113
+ * directories that it lists.
114
+ */
115
+ const list = (opt, files) => core.list(fill(opt, fs, false), files);
116
+ exports.list = list;
117
+ exports.t = exports.list;
118
+ /** The sync form of `list`. */
119
+ const listSync = (opt, files) => (0, list_js_1.listSync)(fill(opt, fsSync, false), files);
120
+ exports.listSync = listSync;
121
+ /**
122
+ * Extract the entries of an archive into the directory `opt.cwd`.
123
+ * If `files` is set, only the entries that it lists, and the entries
124
+ * in the directories that it lists.
125
+ */
126
+ const extract = (opt, files) => core.extract(fill(opt, fs, true), files);
127
+ exports.extract = extract;
128
+ exports.x = exports.extract;
129
+ /** The sync form of `extract`. */
130
+ const extractSync = (opt, files) => (0, extract_js_1.extractSync)(fill(opt, fsSync, true), files);
131
+ exports.extractSync = extractSync;
132
+ function create(opt, files) {
133
+ return core.create(fill(opt, fs, true), files);
134
+ }
135
+ function createSync(opt, files) {
136
+ return (0, create_js_1.createSync)(fill(opt, fsSync, true), files);
137
+ }
138
+ /** Add the files to the end of an archive file that is not compressed. */
139
+ const replace = (opt, files) => core.replace(fill(opt, fs, true), files);
140
+ exports.replace = replace;
141
+ exports.r = exports.replace;
142
+ /** The sync form of `replace`. */
143
+ const replaceSync = (opt, files) => (0, replace_js_1.replaceSync)(fill(opt, fsSync, true), files);
144
+ exports.replaceSync = replaceSync;
145
+ /**
146
+ * The same as `replace`, but a file is added only if it is newer than
147
+ * the last entry of the archive that has its path. A directory is
148
+ * always added, and each path in it is checked.
149
+ */
150
+ const update = (opt, files) => core.update(fill(opt, fs, true), files);
151
+ exports.update = update;
152
+ exports.u = exports.update;
153
+ /** The sync form of `update`. */
154
+ const updateSync = (opt, files) => (0, update_js_1.updateSync)(fill(opt, fsSync, true), files);
155
+ exports.updateSync = updateSync;
156
+ /**
157
+ * Remove entries from an archive file: each entry that `files` lists,
158
+ * and each entry in a directory that it lists. With `opt.filter`,
159
+ * only if the filter also returns true.
160
+ */
161
+ const del = (opt, files) => core.delete(fill(opt, fs, false), files);
162
+ exports.delete = del;
163
+ /** The sync form of `delete`. */
164
+ const deleteSync = (opt, files) => (0, delete_js_1.deleteSync)(fill(opt, fsSync, false), files);
165
+ exports.deleteSync = deleteSync;
166
+ //# sourceMappingURL=index.js.map