@unbrained/pm-cli 2026.12.1 → 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 (267) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/dist/cli-bundle/bundle-manifest.json +1 -1
  3. package/dist/cli-bundle/chunks/{chunk-CWPR234D.js → chunk-7NAO7I75.js} +2 -2
  4. package/dist/cli-bundle/chunks/{chunk-4YQMQOUO.js → chunk-7V65VACG.js} +52 -52
  5. package/dist/cli-bundle/chunks/{chunk-NA6D75V5.js → chunk-G6TARHFK.js} +2 -2
  6. package/dist/cli-bundle/chunks/{chunk-YSVOXCYH.js → chunk-GOEQXVOI.js} +2 -2
  7. package/dist/cli-bundle/chunks/{chunk-OKEJ4U2I.js → chunk-ROTEELDL.js} +3 -3
  8. package/dist/cli-bundle/chunks/{chunk-U7RBJGLF.js → chunk-SDXCJZKB.js} +2 -2
  9. package/dist/cli-bundle/chunks/{chunk-XME6GIFQ.js → chunk-TKUG2X24.js} +2 -2
  10. package/dist/cli-bundle/chunks/{chunk-Q6GLSAJY.js → chunk-UNBW2LF3.js} +2 -2
  11. package/dist/cli-bundle/chunks/chunk-V2S4XAX3.js +2 -0
  12. package/dist/cli-bundle/chunks/{item-transaction-66RDV7PH.js → item-transaction-56J5OCHA.js} +2 -2
  13. package/dist/cli-bundle/chunks/{linked-resource-value-list-E2DX52LY.js → linked-resource-value-list-ZBIY4H23.js} +2 -2
  14. package/dist/cli-bundle/chunks/{register-mutation-2F6JUBST.js → register-mutation-EK6DVIQK.js} +2 -2
  15. package/dist/cli-bundle/chunks/{register-operations-ET3UKPYK.js → register-operations-6MURXE4V.js} +2 -2
  16. package/dist/cli-bundle/chunks/{register-setup-I63QTFCU.js → register-setup-RW26X3GJ.js} +2 -2
  17. package/dist/cli-bundle/focused-chunks/{chunk-SQ72CVUH.js → chunk-3COWDIPX.js} +54 -54
  18. package/dist/cli-bundle/focused-chunks/{chunk-PT7RT3T6.js → chunk-J72TRWR5.js} +3 -3
  19. package/dist/cli-bundle/focused-chunks/{item-transaction-2K4SFLJ7.js → item-transaction-LQLQLZE7.js} +2 -2
  20. package/dist/cli-bundle/main.js +3 -3
  21. package/dist/cli-bundle/sdk-core.js +1 -1
  22. package/dist/cli-bundle/sdk-governance.js +1 -1
  23. package/dist/cli-bundle/sdk-merge.js +1 -1
  24. package/dist/cli-bundle/sdk-runtime.js +1 -1
  25. package/dist/cli-bundle/sdk-testing.js +1 -1
  26. package/dist/cli-bundle/sdk.js +1 -1
  27. package/dist/sdk/extension/install-sources.d.ts +2 -2
  28. package/dist/sdk/extension/install-sources.js +5 -5
  29. package/marketplace.json +1 -1
  30. package/node_modules/tar/README.md +1792 -1147
  31. package/node_modules/tar/dist/commonjs/bytes.d.ts +21 -0
  32. package/node_modules/tar/dist/commonjs/bytes.js +83 -0
  33. package/node_modules/tar/dist/commonjs/codec.d.ts +53 -0
  34. package/node_modules/tar/dist/commonjs/codec.js +35 -0
  35. package/node_modules/tar/dist/commonjs/concat.d.ts +3 -0
  36. package/node_modules/tar/dist/commonjs/concat.js +20 -0
  37. package/node_modules/tar/dist/commonjs/create.d.ts +39 -2
  38. package/node_modules/tar/dist/commonjs/create.js +150 -64
  39. package/node_modules/tar/dist/commonjs/dealias.d.ts +79 -0
  40. package/node_modules/tar/dist/commonjs/dealias.js +50 -0
  41. package/node_modules/tar/dist/commonjs/delete.d.ts +19 -0
  42. package/node_modules/tar/dist/commonjs/delete.js +121 -0
  43. package/node_modules/tar/dist/commonjs/entries.d.ts +82 -0
  44. package/node_modules/tar/dist/commonjs/entries.js +398 -0
  45. package/node_modules/tar/dist/commonjs/extract.d.ts +14 -2
  46. package/node_modules/tar/dist/commonjs/extract.js +40 -81
  47. package/node_modules/tar/dist/commonjs/fs.d.ts +201 -0
  48. package/node_modules/tar/dist/commonjs/fs.js +5 -0
  49. package/node_modules/tar/dist/commonjs/header.d.ts +4 -4
  50. package/node_modules/tar/dist/commonjs/header.js +71 -53
  51. package/node_modules/tar/dist/commonjs/index.d.ts +25 -18
  52. package/node_modules/tar/dist/commonjs/index.js +46 -18
  53. package/node_modules/tar/dist/commonjs/index.min.js +2 -3
  54. package/node_modules/tar/dist/commonjs/large-numbers.d.ts +2 -2
  55. package/node_modules/tar/dist/commonjs/large-numbers.js +4 -4
  56. package/node_modules/tar/dist/commonjs/list.d.ts +23 -6
  57. package/node_modules/tar/dist/commonjs/list.js +99 -138
  58. package/node_modules/tar/dist/commonjs/mkdir.d.ts +16 -11
  59. package/node_modules/tar/dist/commonjs/mkdir.js +121 -159
  60. package/node_modules/tar/dist/commonjs/normalize-unicode.js +9 -0
  61. package/node_modules/tar/dist/commonjs/options.d.ts +284 -513
  62. package/node_modules/tar/dist/commonjs/options.js +20 -61
  63. package/node_modules/tar/dist/commonjs/pack.d.ts +150 -96
  64. package/node_modules/tar/dist/commonjs/pack.js +752 -445
  65. package/node_modules/tar/dist/commonjs/parser.d.ts +98 -0
  66. package/node_modules/tar/dist/commonjs/parser.js +452 -0
  67. package/node_modules/tar/dist/commonjs/path-reservations.d.ts +17 -7
  68. package/node_modules/tar/dist/commonjs/path-reservations.js +110 -140
  69. package/node_modules/tar/dist/commonjs/path.d.ts +19 -0
  70. package/node_modules/tar/dist/commonjs/path.js +90 -0
  71. package/node_modules/tar/dist/commonjs/pax.d.ts +3 -1
  72. package/node_modules/tar/dist/commonjs/pax.js +67 -36
  73. package/node_modules/tar/dist/commonjs/read-entry.d.ts +97 -11
  74. package/node_modules/tar/dist/commonjs/read-entry.js +251 -97
  75. package/node_modules/tar/dist/commonjs/read-file.d.ts +22 -0
  76. package/node_modules/tar/dist/commonjs/read-file.js +104 -0
  77. package/node_modules/tar/dist/commonjs/replace.d.ts +45 -1
  78. package/node_modules/tar/dist/commonjs/replace.js +164 -211
  79. package/node_modules/tar/dist/commonjs/server/codecs.d.ts +38 -0
  80. package/node_modules/tar/dist/commonjs/server/codecs.js +252 -0
  81. package/node_modules/tar/dist/commonjs/server/index.d.ts +115 -0
  82. package/node_modules/tar/dist/commonjs/server/index.js +166 -0
  83. package/node_modules/tar/dist/commonjs/server/index.min.js +3 -0
  84. package/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts +8 -0
  85. package/node_modules/tar/dist/commonjs/strip-absolute-path.js +17 -20
  86. package/node_modules/tar/dist/commonjs/to-stream.d.ts +7 -0
  87. package/node_modules/tar/dist/commonjs/to-stream.js +22 -0
  88. package/node_modules/tar/dist/commonjs/types.d.ts +4 -3
  89. package/node_modules/tar/dist/commonjs/types.js +4 -3
  90. package/node_modules/tar/dist/commonjs/unpack.d.ts +143 -89
  91. package/node_modules/tar/dist/commonjs/unpack.js +780 -725
  92. package/node_modules/tar/dist/commonjs/update.d.ts +11 -1
  93. package/node_modules/tar/dist/commonjs/update.js +37 -28
  94. package/node_modules/tar/dist/commonjs/warn.d.ts +27 -0
  95. package/node_modules/tar/dist/commonjs/warn.js +36 -0
  96. package/node_modules/tar/dist/commonjs/win32-path.d.ts +16 -0
  97. package/node_modules/tar/dist/commonjs/win32-path.js +67 -0
  98. package/node_modules/tar/dist/commonjs/write-entry.d.ts +64 -111
  99. package/node_modules/tar/dist/commonjs/write-entry.js +108 -672
  100. package/node_modules/tar/dist/commonjs/write-flag.d.ts +18 -0
  101. package/node_modules/tar/dist/commonjs/write-flag.js +29 -0
  102. package/node_modules/tar/dist/esm/bytes.d.ts +21 -0
  103. package/node_modules/tar/dist/esm/bytes.js +72 -0
  104. package/node_modules/tar/dist/esm/codec.d.ts +53 -0
  105. package/node_modules/tar/dist/esm/codec.js +32 -0
  106. package/node_modules/tar/dist/esm/concat.d.ts +3 -0
  107. package/node_modules/tar/dist/esm/concat.js +16 -0
  108. package/node_modules/tar/dist/esm/create.d.ts +39 -2
  109. package/node_modules/tar/dist/esm/create.js +144 -61
  110. package/node_modules/tar/dist/esm/dealias.d.ts +79 -0
  111. package/node_modules/tar/dist/esm/dealias.js +46 -0
  112. package/node_modules/tar/dist/esm/delete.d.ts +19 -0
  113. package/node_modules/tar/dist/esm/delete.js +117 -0
  114. package/node_modules/tar/dist/esm/entries.d.ts +82 -0
  115. package/node_modules/tar/dist/esm/entries.js +388 -0
  116. package/node_modules/tar/dist/esm/extract.d.ts +14 -2
  117. package/node_modules/tar/dist/esm/extract.js +37 -44
  118. package/node_modules/tar/dist/esm/fs.d.ts +201 -0
  119. package/node_modules/tar/dist/esm/fs.js +4 -0
  120. package/node_modules/tar/dist/esm/header.d.ts +4 -4
  121. package/node_modules/tar/dist/esm/header.js +71 -53
  122. package/node_modules/tar/dist/esm/index.d.ts +25 -18
  123. package/node_modules/tar/dist/esm/index.js +23 -18
  124. package/node_modules/tar/dist/esm/index.min.js +2 -3
  125. package/node_modules/tar/dist/esm/large-numbers.d.ts +2 -2
  126. package/node_modules/tar/dist/esm/large-numbers.js +4 -4
  127. package/node_modules/tar/dist/esm/list.d.ts +23 -6
  128. package/node_modules/tar/dist/esm/list.js +96 -101
  129. package/node_modules/tar/dist/esm/mkdir.d.ts +16 -11
  130. package/node_modules/tar/dist/esm/mkdir.js +119 -154
  131. package/node_modules/tar/dist/esm/normalize-unicode.js +9 -0
  132. package/node_modules/tar/dist/esm/options.d.ts +284 -513
  133. package/node_modules/tar/dist/esm/options.js +17 -51
  134. package/node_modules/tar/dist/esm/pack.d.ts +150 -96
  135. package/node_modules/tar/dist/esm/pack.js +750 -441
  136. package/node_modules/tar/dist/esm/parser.d.ts +98 -0
  137. package/node_modules/tar/dist/esm/parser.js +448 -0
  138. package/node_modules/tar/dist/esm/path-reservations.d.ts +17 -7
  139. package/node_modules/tar/dist/esm/path-reservations.js +110 -140
  140. package/node_modules/tar/dist/esm/path.d.ts +19 -0
  141. package/node_modules/tar/dist/esm/path.js +80 -0
  142. package/node_modules/tar/dist/esm/pax.d.ts +3 -1
  143. package/node_modules/tar/dist/esm/pax.js +66 -35
  144. package/node_modules/tar/dist/esm/read-entry.d.ts +97 -11
  145. package/node_modules/tar/dist/esm/read-entry.js +248 -96
  146. package/node_modules/tar/dist/esm/read-file.d.ts +22 -0
  147. package/node_modules/tar/dist/esm/read-file.js +99 -0
  148. package/node_modules/tar/dist/esm/replace.d.ts +45 -1
  149. package/node_modules/tar/dist/esm/replace.js +160 -207
  150. package/node_modules/tar/dist/esm/server/codecs.d.ts +38 -0
  151. package/node_modules/tar/dist/esm/server/codecs.js +214 -0
  152. package/node_modules/tar/dist/esm/server/index.d.ts +115 -0
  153. package/node_modules/tar/dist/esm/server/index.js +102 -0
  154. package/node_modules/tar/dist/esm/server/index.min.js +3 -0
  155. package/node_modules/tar/dist/esm/strip-absolute-path.d.ts +8 -0
  156. package/node_modules/tar/dist/esm/strip-absolute-path.js +17 -20
  157. package/node_modules/tar/dist/esm/to-stream.d.ts +7 -0
  158. package/node_modules/tar/dist/esm/to-stream.js +18 -0
  159. package/node_modules/tar/dist/esm/types.d.ts +4 -3
  160. package/node_modules/tar/dist/esm/types.js +4 -3
  161. package/node_modules/tar/dist/esm/unpack.d.ts +143 -89
  162. package/node_modules/tar/dist/esm/unpack.js +776 -719
  163. package/node_modules/tar/dist/esm/update.d.ts +11 -1
  164. package/node_modules/tar/dist/esm/update.js +35 -28
  165. package/node_modules/tar/dist/esm/warn.d.ts +27 -0
  166. package/node_modules/tar/dist/esm/warn.js +31 -0
  167. package/node_modules/tar/dist/esm/win32-path.d.ts +16 -0
  168. package/node_modules/tar/dist/esm/win32-path.js +60 -0
  169. package/node_modules/tar/dist/esm/write-entry.d.ts +64 -111
  170. package/node_modules/tar/dist/esm/write-entry.js +107 -633
  171. package/node_modules/tar/dist/esm/write-flag.d.ts +18 -0
  172. package/node_modules/tar/dist/esm/write-flag.js +25 -0
  173. package/node_modules/tar/package.json +68 -224
  174. package/package.json +2 -2
  175. package/packages/pm-beads/package.json +1 -1
  176. package/packages/pm-calendar/package.json +1 -1
  177. package/packages/pm-command-kit/package.json +1 -1
  178. package/packages/pm-digital-twin/package.json +1 -1
  179. package/packages/pm-governance-audit/package.json +1 -1
  180. package/packages/pm-guide-shell/package.json +1 -1
  181. package/packages/pm-kanban/package.json +1 -1
  182. package/packages/pm-lifecycle-hooks/package.json +1 -1
  183. package/packages/pm-linked-test-adapters/package.json +1 -1
  184. package/packages/pm-search-advanced/package.json +1 -1
  185. package/packages/pm-templates/package.json +1 -1
  186. package/packages/pm-todos/package.json +1 -1
  187. package/packages/pm-vcs/package.json +1 -1
  188. package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
  189. package/plugins/pm-claude/package.json +1 -1
  190. package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
  191. package/plugins/pm-codex/package.json +1 -1
  192. package/plugins/pm-codex/plugin.json +1 -1
  193. package/runtime-dependencies.json +1 -1
  194. package/dist/cli-bundle/chunks/chunk-AJLU6KLW.js +0 -2
  195. package/node_modules/@isaacs/fs-minipass/LICENSE +0 -15
  196. package/node_modules/@isaacs/fs-minipass/README.md +0 -71
  197. package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts +0 -118
  198. package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js +0 -430
  199. package/node_modules/@isaacs/fs-minipass/dist/commonjs/package.json +0 -3
  200. package/node_modules/@isaacs/fs-minipass/dist/esm/index.d.ts +0 -118
  201. package/node_modules/@isaacs/fs-minipass/dist/esm/index.js +0 -420
  202. package/node_modules/@isaacs/fs-minipass/dist/esm/package.json +0 -3
  203. package/node_modules/@isaacs/fs-minipass/package.json +0 -72
  204. package/node_modules/chownr/LICENSE.md +0 -63
  205. package/node_modules/chownr/README.md +0 -3
  206. package/node_modules/chownr/dist/commonjs/index.d.ts +0 -3
  207. package/node_modules/chownr/dist/commonjs/index.js +0 -93
  208. package/node_modules/chownr/dist/commonjs/package.json +0 -3
  209. package/node_modules/chownr/dist/esm/index.d.ts +0 -3
  210. package/node_modules/chownr/dist/esm/index.js +0 -85
  211. package/node_modules/chownr/dist/esm/package.json +0 -3
  212. package/node_modules/chownr/package.json +0 -69
  213. package/node_modules/minipass/LICENSE.md +0 -55
  214. package/node_modules/minipass/README.md +0 -825
  215. package/node_modules/minipass/dist/commonjs/index.d.ts +0 -545
  216. package/node_modules/minipass/dist/commonjs/index.js +0 -1038
  217. package/node_modules/minipass/dist/commonjs/package.json +0 -3
  218. package/node_modules/minipass/dist/esm/index.d.ts +0 -545
  219. package/node_modules/minipass/dist/esm/index.js +0 -1020
  220. package/node_modules/minipass/dist/esm/package.json +0 -3
  221. package/node_modules/minipass/package.json +0 -77
  222. package/node_modules/minizlib/LICENSE +0 -26
  223. package/node_modules/minizlib/README.md +0 -64
  224. package/node_modules/minizlib/dist/commonjs/constants.d.ts +0 -2
  225. package/node_modules/minizlib/dist/commonjs/constants.js +0 -123
  226. package/node_modules/minizlib/dist/commonjs/index.d.ts +0 -99
  227. package/node_modules/minizlib/dist/commonjs/index.js +0 -416
  228. package/node_modules/minizlib/dist/commonjs/package.json +0 -3
  229. package/node_modules/minizlib/dist/esm/constants.d.ts +0 -2
  230. package/node_modules/minizlib/dist/esm/constants.js +0 -117
  231. package/node_modules/minizlib/dist/esm/index.d.ts +0 -99
  232. package/node_modules/minizlib/dist/esm/index.js +0 -363
  233. package/node_modules/minizlib/dist/esm/package.json +0 -3
  234. package/node_modules/minizlib/package.json +0 -80
  235. package/node_modules/tar/dist/commonjs/get-write-flag.d.ts +0 -2
  236. package/node_modules/tar/dist/commonjs/get-write-flag.js +0 -32
  237. package/node_modules/tar/dist/commonjs/make-command.d.ts +0 -49
  238. package/node_modules/tar/dist/commonjs/make-command.js +0 -52
  239. package/node_modules/tar/dist/commonjs/normalize-windows-path.d.ts +0 -2
  240. package/node_modules/tar/dist/commonjs/normalize-windows-path.js +0 -12
  241. package/node_modules/tar/dist/commonjs/parse.d.ts +0 -92
  242. package/node_modules/tar/dist/commonjs/parse.js +0 -655
  243. package/node_modules/tar/dist/commonjs/process-umask.d.ts +0 -2
  244. package/node_modules/tar/dist/commonjs/process-umask.js +0 -7
  245. package/node_modules/tar/dist/commonjs/warn-method.d.ts +0 -24
  246. package/node_modules/tar/dist/commonjs/warn-method.js +0 -31
  247. package/node_modules/tar/dist/esm/get-write-flag.d.ts +0 -2
  248. package/node_modules/tar/dist/esm/get-write-flag.js +0 -26
  249. package/node_modules/tar/dist/esm/make-command.d.ts +0 -49
  250. package/node_modules/tar/dist/esm/make-command.js +0 -48
  251. package/node_modules/tar/dist/esm/normalize-windows-path.d.ts +0 -2
  252. package/node_modules/tar/dist/esm/normalize-windows-path.js +0 -9
  253. package/node_modules/tar/dist/esm/parse.d.ts +0 -92
  254. package/node_modules/tar/dist/esm/parse.js +0 -651
  255. package/node_modules/tar/dist/esm/process-umask.d.ts +0 -2
  256. package/node_modules/tar/dist/esm/process-umask.js +0 -3
  257. package/node_modules/tar/dist/esm/warn-method.d.ts +0 -24
  258. package/node_modules/tar/dist/esm/warn-method.js +0 -27
  259. package/node_modules/yallist/LICENSE.md +0 -63
  260. package/node_modules/yallist/README.md +0 -205
  261. package/node_modules/yallist/dist/commonjs/index.d.ts +0 -39
  262. package/node_modules/yallist/dist/commonjs/index.js +0 -384
  263. package/node_modules/yallist/dist/commonjs/package.json +0 -3
  264. package/node_modules/yallist/dist/esm/index.d.ts +0 -39
  265. package/node_modules/yallist/dist/esm/index.js +0 -379
  266. package/node_modules/yallist/dist/esm/package.json +0 -3
  267. package/node_modules/yallist/package.json +0 -68
@@ -1,101 +1,155 @@
1
- import { type Stats } from 'node:fs';
2
- import type { MkdirError } from './mkdir.js';
3
- import { Parser } from './parse.js';
4
- import type { TarOptions } from './options.js';
5
- import { PathReservations } from './path-reservations.js';
6
- import type { ReadEntry } from './read-entry.js';
7
- import type { WarnData } from './warn-method.js';
8
1
  import { SymlinkError } from './symlink-error.js';
9
- declare const ONENTRY: unique symbol;
10
- declare const CHECKFS: unique symbol;
11
- declare const CHECKFS2: unique symbol;
12
- declare const ISREUSABLE: unique symbol;
13
- declare const MAKEFS: unique symbol;
14
- declare const FILE: unique symbol;
15
- declare const DIRECTORY: unique symbol;
16
- declare const LINK: unique symbol;
17
- declare const SYMLINK: unique symbol;
18
- declare const HARDLINK: unique symbol;
19
- declare const ENSURE_NO_SYMLINK: unique symbol;
20
- declare const UNSUPPORTED: unique symbol;
21
- declare const CHECKPATH: unique symbol;
22
- declare const STRIPABSOLUTEPATH: unique symbol;
23
- declare const MKDIR: unique symbol;
24
- declare const ONERROR: unique symbol;
25
- declare const PENDING: unique symbol;
26
- declare const PEND: unique symbol;
27
- declare const UNPEND: unique symbol;
28
- declare const ENDED: unique symbol;
29
- declare const MAYBECLOSE: unique symbol;
30
- declare const SKIP: unique symbol;
31
- declare const DOCHOWN: unique symbol;
32
- declare const UID: unique symbol;
33
- declare const GID: unique symbol;
34
- declare const CHECKED_CWD: unique symbol;
35
- export declare class Unpack extends Parser {
36
- [ENDED]: boolean;
37
- [CHECKED_CWD]: boolean;
38
- [PENDING]: number;
39
- reservations: PathReservations;
40
- transform?: TarOptions['transform'];
41
- writable: true;
42
- readable: false;
2
+ import type { ExtractStats } from './fs.js';
3
+ import { type MkdirOptions } from './mkdir.js';
4
+ import { type ExtractOptions, type ExtractOptionsSync, type ReadOptions, type TarInput, type TarInputSync, type UnpackOptions } from './options.js';
5
+ import type { EntryData, ReadEntry, ReadEntrySync } from './read-entry.js';
6
+ import { type WarnData } from './warn.js';
7
+ import { type OpenConstants } from './write-flag.js';
8
+ /** The options that `UnpackBase` reads. */
9
+ export type UnpackBaseOptions<E extends EntryData> = ReadOptions<E> & UnpackOptions & {
10
+ fs: {
11
+ constants?: OpenConstants;
12
+ };
13
+ };
14
+ /**
15
+ * The parts of the extraction that do not use the file system: the
16
+ * options, the checks of each entry, and the warnings. `Unpack` and
17
+ * `UnpackSync` add the file system work.
18
+ */
19
+ export declare class UnpackBase<E extends EntryData, O extends UnpackBaseOptions<E> = UnpackBaseOptions<E>> {
20
+ #private;
21
+ /** The options, with no prototype. */
22
+ opt: O;
23
+ /** The absolute path of the extraction directory. */
24
+ cwd: string;
25
+ win32: boolean;
26
+ strip: number;
27
+ maxDepth: number;
28
+ preservePaths: boolean;
29
+ unlink: boolean;
30
+ keep: boolean;
31
+ newer: boolean;
32
+ noMtime: boolean;
33
+ chmod: boolean;
43
34
  uid?: number;
44
35
  gid?: number;
45
- setOwner: boolean;
46
36
  preserveOwner: boolean;
47
- processGid?: number;
48
- processUid?: number;
49
- maxDepth: number;
50
37
  forceChown: boolean;
51
- win32: boolean;
52
- newer: boolean;
53
- keep: boolean;
54
- noMtime: boolean;
55
- preservePaths: boolean;
56
- unlink: boolean;
57
- cwd: string;
58
- strip: number;
38
+ processUid?: number;
39
+ processGid?: number;
59
40
  processUmask: number;
60
41
  umask: number;
61
42
  dmode: number;
62
43
  fmode: number;
63
- chmod: boolean;
64
- constructor(opt?: TarOptions);
65
- warn(code: string, msg: string | Error, data?: WarnData): void;
66
- [MAYBECLOSE](): void;
67
- [STRIPABSOLUTEPATH](entry: ReadEntry, field: 'path' | 'linkpath'): boolean;
68
- [CHECKPATH](entry: ReadEntry): boolean;
69
- [ONENTRY](entry: ReadEntry): void;
70
- [ONERROR](er: Error, entry: ReadEntry): void;
71
- [MKDIR](dir: string, mode: number, cb: (er?: null | MkdirError, made?: string) => void): void;
72
- [DOCHOWN](entry: ReadEntry): boolean;
73
- [UID](entry: ReadEntry): number | undefined;
74
- [GID](entry: ReadEntry): number | undefined;
75
- [FILE](entry: ReadEntry, fullyDone: () => void): void;
76
- [DIRECTORY](entry: ReadEntry, fullyDone: () => void): void;
77
- [UNSUPPORTED](entry: ReadEntry): void;
78
- [SYMLINK](entry: ReadEntry, done: () => void): void;
79
- [HARDLINK](entry: ReadEntry, done: () => void): void;
80
- [ENSURE_NO_SYMLINK](entry: ReadEntry, cwd: string, parts: string[], done: () => void, onError: (er: SymlinkError) => void): void;
81
- [PEND](): void;
82
- [UNPEND](): void;
83
- [SKIP](entry: ReadEntry): void;
84
- [ISREUSABLE](entry: ReadEntry, st: Stats): boolean;
85
- [CHECKFS](entry: ReadEntry): void;
86
- [CHECKFS2](entry: ReadEntry, fullyDone: (er?: Error) => void): void;
87
- [MAKEFS](er: null | undefined | Error, entry: ReadEntry, done: () => void): void;
88
- [LINK](entry: ReadEntry, linkpath: string, link: 'link' | 'symlink', done: () => void): void;
44
+ /** Gives the `open` flag for a new file of a given size. */
45
+ writeFlag: (size: number) => string | number;
46
+ /** Resolve a path from an absolute path. */
47
+ resolve: (base: string, path: string) => string;
48
+ /** The parent directory of an absolute path. */
49
+ dirname: (path: string) => string;
50
+ /** Set when an error stops the extraction. */
51
+ fatal?: {
52
+ error: unknown;
53
+ };
54
+ constructor(options: O);
55
+ /**
56
+ * Report a problem to `onwarn`, or throw it if `strict` is set. A
57
+ * damaged archive is always an error here, because the extraction
58
+ * cannot be complete.
59
+ */
60
+ warn(code: string, message: string | Error, data?: WarnData): void;
61
+ /** The options for the reader. Its warnings go to `warn()`. */
62
+ readerOptions(): ReadOptions<E>;
63
+ /**
64
+ * Report the failure of one entry as a `TAR_ENTRY_ERROR` warning.
65
+ * Throws the error if it stops the extraction: the extraction
66
+ * directory is not usable, the archive cannot be read, or `strict`
67
+ * is set.
68
+ */
69
+ entryError(er: unknown, entry: E): void;
70
+ /** Record the error that stops the extraction. Returns it. */
71
+ fail(error: unknown): unknown;
72
+ /**
73
+ * Check the entry, with no use of the file system. Set its
74
+ * `absolute` path, and change its `path`, `linkpath`, and `mode` to
75
+ * the values to extract. False if the entry must not be extracted.
76
+ */
77
+ check(entry: E): boolean;
78
+ /**
79
+ * The paths that the entry must have for itself while it is made.
80
+ * A link also reserves its target, so that an entry that makes the
81
+ * target, and an entry that goes through the link, do not run at
82
+ * the same time as the link.
83
+ */
84
+ reservedPaths(entry: E): string[];
85
+ /** The options to make a directory with a mode. */
86
+ mkdirOptions(mode: number): MkdirOptions;
87
+ /**
88
+ * The owner to set on the entry, if it needs one: with
89
+ * `preserveOwner`, when the owner in the archive is not the process
90
+ * owner, and with `uid` and `gid`, when they are not the process
91
+ * owner.
92
+ */
93
+ owner(entry: E): {
94
+ uid: number;
95
+ gid: number;
96
+ } | undefined;
97
+ /** The times to set on the entry, if it needs them. */
98
+ times(entry: E): {
99
+ atime: Date;
100
+ mtime: Date;
101
+ } | undefined;
102
+ /** True if the object on disk at the path of the entry must stay. */
103
+ skip(entry: E, st: ExtractStats): boolean;
104
+ /**
105
+ * True if the entry can be written into the file that is on disk.
106
+ * A file with more than one link is not used, because the write
107
+ * would change the other links. Windows does not report a useful
108
+ * link count.
109
+ */
110
+ isReusable(entry: E, st: ExtractStats): boolean;
111
+ /**
112
+ * The parts of the path from the extraction directory to the
113
+ * target of a link entry. None of them can be a symbolic link.
114
+ */
115
+ linkParts(entry: E, absolute: string): string[];
116
+ /**
117
+ * The parts of the path from the extraction directory to the
118
+ * parent directory of an entry. The extraction checks them again
119
+ * after it makes the entry: none of them can be a symbolic link
120
+ * then. So a directory that another process replaced with a
121
+ * symbolic link during the extraction is an error of the entry.
122
+ */
123
+ parentParts(absolute: string): string[];
124
+ /** The error for a link target that goes through a symbolic link. */
125
+ symlinkError(symlink: string, parts: string[]): SymlinkError;
126
+ }
127
+ /**
128
+ * Extracts the entries of an archive with async file system
129
+ * functions.
130
+ *
131
+ * Several entries are extracted at one time. Entries that use the
132
+ * same path, or a path and a directory above it, are extracted in
133
+ * the order of the archive.
134
+ */
135
+ export declare class Unpack extends UnpackBase<ReadEntry, ExtractOptions> {
136
+ #private;
137
+ constructor(opt: ExtractOptions);
138
+ /**
139
+ * Extract the archive. The promise settles when all the file
140
+ * system work is done. It rejects with the first error that stops
141
+ * the extraction.
142
+ */
143
+ extract(input: TarInput): Promise<void>;
89
144
  }
90
- export declare class UnpackSync extends Unpack {
91
- sync: true;
92
- [MAKEFS](er: null | Error | undefined, entry: ReadEntry): void;
93
- [CHECKFS](entry: ReadEntry): void;
94
- [FILE](entry: ReadEntry, done: () => void): void;
95
- [DIRECTORY](entry: ReadEntry, done: () => void): void;
96
- [MKDIR](dir: string, mode: number): unknown;
97
- [ENSURE_NO_SYMLINK](_entry: ReadEntry, cwd: string, parts: string[], done: () => void, onError: (er: SymlinkError) => void): void;
98
- [LINK](entry: ReadEntry, linkpath: string, link: 'link' | 'symlink', done: () => void): void;
145
+ /**
146
+ * Extracts the entries of an archive with sync file system
147
+ * functions, one entry at a time.
148
+ */
149
+ export declare class UnpackSync extends UnpackBase<ReadEntrySync, ExtractOptionsSync> {
150
+ #private;
151
+ constructor(opt: ExtractOptionsSync);
152
+ /** Extract the archive. Throws the first error that stops it. */
153
+ extract(input: TarInputSync): void;
99
154
  }
100
- export {};
101
155
  //# sourceMappingURL=unpack.d.ts.map