@wecode-ai/weibo-openclaw-plugin 2.1.3 → 2.2.0

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 (355) hide show
  1. package/README.md +28 -1
  2. package/node_modules/@isaacs/fs-minipass/LICENSE +15 -0
  3. package/node_modules/@isaacs/fs-minipass/README.md +71 -0
  4. package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts +118 -0
  5. package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts.map +1 -0
  6. package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js +430 -0
  7. package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js.map +1 -0
  8. package/node_modules/@isaacs/fs-minipass/dist/commonjs/package.json +3 -0
  9. package/node_modules/@isaacs/fs-minipass/dist/esm/index.d.ts +118 -0
  10. package/node_modules/@isaacs/fs-minipass/dist/esm/index.d.ts.map +1 -0
  11. package/node_modules/@isaacs/fs-minipass/dist/esm/index.js +420 -0
  12. package/node_modules/@isaacs/fs-minipass/dist/esm/index.js.map +1 -0
  13. package/node_modules/@isaacs/fs-minipass/dist/esm/package.json +3 -0
  14. package/node_modules/@isaacs/fs-minipass/package.json +72 -0
  15. package/node_modules/chownr/LICENSE.md +63 -0
  16. package/node_modules/chownr/README.md +3 -0
  17. package/node_modules/chownr/dist/commonjs/index.d.ts +3 -0
  18. package/node_modules/chownr/dist/commonjs/index.d.ts.map +1 -0
  19. package/node_modules/chownr/dist/commonjs/index.js +93 -0
  20. package/node_modules/chownr/dist/commonjs/index.js.map +1 -0
  21. package/node_modules/chownr/dist/commonjs/package.json +3 -0
  22. package/node_modules/chownr/dist/esm/index.d.ts +3 -0
  23. package/node_modules/chownr/dist/esm/index.d.ts.map +1 -0
  24. package/node_modules/chownr/dist/esm/index.js +85 -0
  25. package/node_modules/chownr/dist/esm/index.js.map +1 -0
  26. package/node_modules/chownr/dist/esm/package.json +3 -0
  27. package/node_modules/chownr/package.json +69 -0
  28. package/node_modules/minipass/LICENSE.md +55 -0
  29. package/node_modules/minipass/README.md +825 -0
  30. package/node_modules/minipass/dist/commonjs/index.d.ts +545 -0
  31. package/node_modules/minipass/dist/commonjs/index.d.ts.map +1 -0
  32. package/node_modules/minipass/dist/commonjs/index.js +1038 -0
  33. package/node_modules/minipass/dist/commonjs/index.js.map +1 -0
  34. package/node_modules/minipass/dist/commonjs/package.json +3 -0
  35. package/node_modules/minipass/dist/esm/index.d.ts +545 -0
  36. package/node_modules/minipass/dist/esm/index.d.ts.map +1 -0
  37. package/node_modules/minipass/dist/esm/index.js +1020 -0
  38. package/node_modules/minipass/dist/esm/index.js.map +1 -0
  39. package/node_modules/minipass/dist/esm/package.json +3 -0
  40. package/node_modules/minipass/package.json +77 -0
  41. package/node_modules/minizlib/LICENSE +26 -0
  42. package/node_modules/minizlib/README.md +64 -0
  43. package/node_modules/minizlib/dist/commonjs/constants.d.ts +2 -0
  44. package/node_modules/minizlib/dist/commonjs/constants.d.ts.map +1 -0
  45. package/node_modules/minizlib/dist/commonjs/constants.js +123 -0
  46. package/node_modules/minizlib/dist/commonjs/constants.js.map +1 -0
  47. package/node_modules/minizlib/dist/commonjs/index.d.ts +99 -0
  48. package/node_modules/minizlib/dist/commonjs/index.d.ts.map +1 -0
  49. package/node_modules/minizlib/dist/commonjs/index.js +416 -0
  50. package/node_modules/minizlib/dist/commonjs/index.js.map +1 -0
  51. package/node_modules/minizlib/dist/commonjs/package.json +3 -0
  52. package/node_modules/minizlib/dist/esm/constants.d.ts +2 -0
  53. package/node_modules/minizlib/dist/esm/constants.d.ts.map +1 -0
  54. package/node_modules/minizlib/dist/esm/constants.js +117 -0
  55. package/node_modules/minizlib/dist/esm/constants.js.map +1 -0
  56. package/node_modules/minizlib/dist/esm/index.d.ts +99 -0
  57. package/node_modules/minizlib/dist/esm/index.d.ts.map +1 -0
  58. package/node_modules/minizlib/dist/esm/index.js +363 -0
  59. package/node_modules/minizlib/dist/esm/index.js.map +1 -0
  60. package/node_modules/minizlib/dist/esm/package.json +3 -0
  61. package/node_modules/minizlib/package.json +80 -0
  62. package/node_modules/tar/LICENSE.md +55 -0
  63. package/node_modules/tar/README.md +1224 -0
  64. package/node_modules/tar/dist/commonjs/create.d.ts +3 -0
  65. package/node_modules/tar/dist/commonjs/create.d.ts.map +1 -0
  66. package/node_modules/tar/dist/commonjs/create.js +82 -0
  67. package/node_modules/tar/dist/commonjs/create.js.map +1 -0
  68. package/node_modules/tar/dist/commonjs/cwd-error.d.ts +8 -0
  69. package/node_modules/tar/dist/commonjs/cwd-error.d.ts.map +1 -0
  70. package/node_modules/tar/dist/commonjs/cwd-error.js +18 -0
  71. package/node_modules/tar/dist/commonjs/cwd-error.js.map +1 -0
  72. package/node_modules/tar/dist/commonjs/extract.d.ts +3 -0
  73. package/node_modules/tar/dist/commonjs/extract.d.ts.map +1 -0
  74. package/node_modules/tar/dist/commonjs/extract.js +88 -0
  75. package/node_modules/tar/dist/commonjs/extract.js.map +1 -0
  76. package/node_modules/tar/dist/commonjs/get-write-flag.d.ts +2 -0
  77. package/node_modules/tar/dist/commonjs/get-write-flag.d.ts.map +1 -0
  78. package/node_modules/tar/dist/commonjs/get-write-flag.js +32 -0
  79. package/node_modules/tar/dist/commonjs/get-write-flag.js.map +1 -0
  80. package/node_modules/tar/dist/commonjs/header.d.ts +53 -0
  81. package/node_modules/tar/dist/commonjs/header.d.ts.map +1 -0
  82. package/node_modules/tar/dist/commonjs/header.js +312 -0
  83. package/node_modules/tar/dist/commonjs/header.js.map +1 -0
  84. package/node_modules/tar/dist/commonjs/index.d.ts +20 -0
  85. package/node_modules/tar/dist/commonjs/index.d.ts.map +1 -0
  86. package/node_modules/tar/dist/commonjs/index.js +64 -0
  87. package/node_modules/tar/dist/commonjs/index.js.map +1 -0
  88. package/node_modules/tar/dist/commonjs/index.min.js +4 -0
  89. package/node_modules/tar/dist/commonjs/index.min.js.map +7 -0
  90. package/node_modules/tar/dist/commonjs/large-numbers.d.ts +3 -0
  91. package/node_modules/tar/dist/commonjs/large-numbers.d.ts.map +1 -0
  92. package/node_modules/tar/dist/commonjs/large-numbers.js +99 -0
  93. package/node_modules/tar/dist/commonjs/large-numbers.js.map +1 -0
  94. package/node_modules/tar/dist/commonjs/list.d.ts +7 -0
  95. package/node_modules/tar/dist/commonjs/list.d.ts.map +1 -0
  96. package/node_modules/tar/dist/commonjs/list.js +145 -0
  97. package/node_modules/tar/dist/commonjs/list.js.map +1 -0
  98. package/node_modules/tar/dist/commonjs/make-command.d.ts +49 -0
  99. package/node_modules/tar/dist/commonjs/make-command.d.ts.map +1 -0
  100. package/node_modules/tar/dist/commonjs/make-command.js +52 -0
  101. package/node_modules/tar/dist/commonjs/make-command.js.map +1 -0
  102. package/node_modules/tar/dist/commonjs/mkdir.d.ts +25 -0
  103. package/node_modules/tar/dist/commonjs/mkdir.d.ts.map +1 -0
  104. package/node_modules/tar/dist/commonjs/mkdir.js +187 -0
  105. package/node_modules/tar/dist/commonjs/mkdir.js.map +1 -0
  106. package/node_modules/tar/dist/commonjs/mode-fix.d.ts +2 -0
  107. package/node_modules/tar/dist/commonjs/mode-fix.d.ts.map +1 -0
  108. package/node_modules/tar/dist/commonjs/mode-fix.js +29 -0
  109. package/node_modules/tar/dist/commonjs/mode-fix.js.map +1 -0
  110. package/node_modules/tar/dist/commonjs/normalize-unicode.d.ts +2 -0
  111. package/node_modules/tar/dist/commonjs/normalize-unicode.d.ts.map +1 -0
  112. package/node_modules/tar/dist/commonjs/normalize-unicode.js +38 -0
  113. package/node_modules/tar/dist/commonjs/normalize-unicode.js.map +1 -0
  114. package/node_modules/tar/dist/commonjs/normalize-windows-path.d.ts +2 -0
  115. package/node_modules/tar/dist/commonjs/normalize-windows-path.d.ts.map +1 -0
  116. package/node_modules/tar/dist/commonjs/normalize-windows-path.js +12 -0
  117. package/node_modules/tar/dist/commonjs/normalize-windows-path.js.map +1 -0
  118. package/node_modules/tar/dist/commonjs/options.d.ts +596 -0
  119. package/node_modules/tar/dist/commonjs/options.d.ts.map +1 -0
  120. package/node_modules/tar/dist/commonjs/options.js +66 -0
  121. package/node_modules/tar/dist/commonjs/options.js.map +1 -0
  122. package/node_modules/tar/dist/commonjs/pack.d.ts +102 -0
  123. package/node_modules/tar/dist/commonjs/pack.d.ts.map +1 -0
  124. package/node_modules/tar/dist/commonjs/pack.js +511 -0
  125. package/node_modules/tar/dist/commonjs/pack.js.map +1 -0
  126. package/node_modules/tar/dist/commonjs/package.json +3 -0
  127. package/node_modules/tar/dist/commonjs/parse.d.ts +85 -0
  128. package/node_modules/tar/dist/commonjs/parse.d.ts.map +1 -0
  129. package/node_modules/tar/dist/commonjs/parse.js +610 -0
  130. package/node_modules/tar/dist/commonjs/parse.js.map +1 -0
  131. package/node_modules/tar/dist/commonjs/path-reservations.d.ts +11 -0
  132. package/node_modules/tar/dist/commonjs/path-reservations.d.ts.map +1 -0
  133. package/node_modules/tar/dist/commonjs/path-reservations.js +170 -0
  134. package/node_modules/tar/dist/commonjs/path-reservations.js.map +1 -0
  135. package/node_modules/tar/dist/commonjs/pax.d.ts +26 -0
  136. package/node_modules/tar/dist/commonjs/pax.d.ts.map +1 -0
  137. package/node_modules/tar/dist/commonjs/pax.js +158 -0
  138. package/node_modules/tar/dist/commonjs/pax.js.map +1 -0
  139. package/node_modules/tar/dist/commonjs/process-umask.d.ts +2 -0
  140. package/node_modules/tar/dist/commonjs/process-umask.d.ts.map +1 -0
  141. package/node_modules/tar/dist/commonjs/process-umask.js +7 -0
  142. package/node_modules/tar/dist/commonjs/process-umask.js.map +1 -0
  143. package/node_modules/tar/dist/commonjs/read-entry.d.ts +36 -0
  144. package/node_modules/tar/dist/commonjs/read-entry.d.ts.map +1 -0
  145. package/node_modules/tar/dist/commonjs/read-entry.js +136 -0
  146. package/node_modules/tar/dist/commonjs/read-entry.js.map +1 -0
  147. package/node_modules/tar/dist/commonjs/replace.d.ts +2 -0
  148. package/node_modules/tar/dist/commonjs/replace.d.ts.map +1 -0
  149. package/node_modules/tar/dist/commonjs/replace.js +227 -0
  150. package/node_modules/tar/dist/commonjs/replace.js.map +1 -0
  151. package/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts +2 -0
  152. package/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts.map +1 -0
  153. package/node_modules/tar/dist/commonjs/strip-absolute-path.js +29 -0
  154. package/node_modules/tar/dist/commonjs/strip-absolute-path.js.map +1 -0
  155. package/node_modules/tar/dist/commonjs/strip-trailing-slashes.d.ts +2 -0
  156. package/node_modules/tar/dist/commonjs/strip-trailing-slashes.d.ts.map +1 -0
  157. package/node_modules/tar/dist/commonjs/strip-trailing-slashes.js +18 -0
  158. package/node_modules/tar/dist/commonjs/strip-trailing-slashes.js.map +1 -0
  159. package/node_modules/tar/dist/commonjs/symlink-error.d.ts +9 -0
  160. package/node_modules/tar/dist/commonjs/symlink-error.d.ts.map +1 -0
  161. package/node_modules/tar/dist/commonjs/symlink-error.js +19 -0
  162. package/node_modules/tar/dist/commonjs/symlink-error.js.map +1 -0
  163. package/node_modules/tar/dist/commonjs/types.d.ts +7 -0
  164. package/node_modules/tar/dist/commonjs/types.d.ts.map +1 -0
  165. package/node_modules/tar/dist/commonjs/types.js +50 -0
  166. package/node_modules/tar/dist/commonjs/types.js.map +1 -0
  167. package/node_modules/tar/dist/commonjs/unpack.d.ts +101 -0
  168. package/node_modules/tar/dist/commonjs/unpack.d.ts.map +1 -0
  169. package/node_modules/tar/dist/commonjs/unpack.js +932 -0
  170. package/node_modules/tar/dist/commonjs/unpack.js.map +1 -0
  171. package/node_modules/tar/dist/commonjs/update.d.ts +2 -0
  172. package/node_modules/tar/dist/commonjs/update.d.ts.map +1 -0
  173. package/node_modules/tar/dist/commonjs/update.js +33 -0
  174. package/node_modules/tar/dist/commonjs/update.js.map +1 -0
  175. package/node_modules/tar/dist/commonjs/warn-method.d.ts +24 -0
  176. package/node_modules/tar/dist/commonjs/warn-method.d.ts.map +1 -0
  177. package/node_modules/tar/dist/commonjs/warn-method.js +31 -0
  178. package/node_modules/tar/dist/commonjs/warn-method.js.map +1 -0
  179. package/node_modules/tar/dist/commonjs/winchars.d.ts +3 -0
  180. package/node_modules/tar/dist/commonjs/winchars.d.ts.map +1 -0
  181. package/node_modules/tar/dist/commonjs/winchars.js +14 -0
  182. package/node_modules/tar/dist/commonjs/winchars.js.map +1 -0
  183. package/node_modules/tar/dist/commonjs/write-entry.d.ts +129 -0
  184. package/node_modules/tar/dist/commonjs/write-entry.d.ts.map +1 -0
  185. package/node_modules/tar/dist/commonjs/write-entry.js +698 -0
  186. package/node_modules/tar/dist/commonjs/write-entry.js.map +1 -0
  187. package/node_modules/tar/dist/esm/create.d.ts +3 -0
  188. package/node_modules/tar/dist/esm/create.d.ts.map +1 -0
  189. package/node_modules/tar/dist/esm/create.js +76 -0
  190. package/node_modules/tar/dist/esm/create.js.map +1 -0
  191. package/node_modules/tar/dist/esm/cwd-error.d.ts +8 -0
  192. package/node_modules/tar/dist/esm/cwd-error.d.ts.map +1 -0
  193. package/node_modules/tar/dist/esm/cwd-error.js +14 -0
  194. package/node_modules/tar/dist/esm/cwd-error.js.map +1 -0
  195. package/node_modules/tar/dist/esm/extract.d.ts +3 -0
  196. package/node_modules/tar/dist/esm/extract.d.ts.map +1 -0
  197. package/node_modules/tar/dist/esm/extract.js +49 -0
  198. package/node_modules/tar/dist/esm/extract.js.map +1 -0
  199. package/node_modules/tar/dist/esm/get-write-flag.d.ts +2 -0
  200. package/node_modules/tar/dist/esm/get-write-flag.d.ts.map +1 -0
  201. package/node_modules/tar/dist/esm/get-write-flag.js +26 -0
  202. package/node_modules/tar/dist/esm/get-write-flag.js.map +1 -0
  203. package/node_modules/tar/dist/esm/header.d.ts +53 -0
  204. package/node_modules/tar/dist/esm/header.d.ts.map +1 -0
  205. package/node_modules/tar/dist/esm/header.js +275 -0
  206. package/node_modules/tar/dist/esm/header.js.map +1 -0
  207. package/node_modules/tar/dist/esm/index.d.ts +20 -0
  208. package/node_modules/tar/dist/esm/index.d.ts.map +1 -0
  209. package/node_modules/tar/dist/esm/index.js +20 -0
  210. package/node_modules/tar/dist/esm/index.js.map +1 -0
  211. package/node_modules/tar/dist/esm/index.min.js +4 -0
  212. package/node_modules/tar/dist/esm/index.min.js.map +7 -0
  213. package/node_modules/tar/dist/esm/large-numbers.d.ts +3 -0
  214. package/node_modules/tar/dist/esm/large-numbers.d.ts.map +1 -0
  215. package/node_modules/tar/dist/esm/large-numbers.js +94 -0
  216. package/node_modules/tar/dist/esm/large-numbers.js.map +1 -0
  217. package/node_modules/tar/dist/esm/list.d.ts +7 -0
  218. package/node_modules/tar/dist/esm/list.d.ts.map +1 -0
  219. package/node_modules/tar/dist/esm/list.js +105 -0
  220. package/node_modules/tar/dist/esm/list.js.map +1 -0
  221. package/node_modules/tar/dist/esm/make-command.d.ts +49 -0
  222. package/node_modules/tar/dist/esm/make-command.d.ts.map +1 -0
  223. package/node_modules/tar/dist/esm/make-command.js +48 -0
  224. package/node_modules/tar/dist/esm/make-command.js.map +1 -0
  225. package/node_modules/tar/dist/esm/mkdir.d.ts +25 -0
  226. package/node_modules/tar/dist/esm/mkdir.d.ts.map +1 -0
  227. package/node_modules/tar/dist/esm/mkdir.js +179 -0
  228. package/node_modules/tar/dist/esm/mkdir.js.map +1 -0
  229. package/node_modules/tar/dist/esm/mode-fix.d.ts +2 -0
  230. package/node_modules/tar/dist/esm/mode-fix.d.ts.map +1 -0
  231. package/node_modules/tar/dist/esm/mode-fix.js +25 -0
  232. package/node_modules/tar/dist/esm/mode-fix.js.map +1 -0
  233. package/node_modules/tar/dist/esm/normalize-unicode.d.ts +2 -0
  234. package/node_modules/tar/dist/esm/normalize-unicode.d.ts.map +1 -0
  235. package/node_modules/tar/dist/esm/normalize-unicode.js +34 -0
  236. package/node_modules/tar/dist/esm/normalize-unicode.js.map +1 -0
  237. package/node_modules/tar/dist/esm/normalize-windows-path.d.ts +2 -0
  238. package/node_modules/tar/dist/esm/normalize-windows-path.d.ts.map +1 -0
  239. package/node_modules/tar/dist/esm/normalize-windows-path.js +9 -0
  240. package/node_modules/tar/dist/esm/normalize-windows-path.js.map +1 -0
  241. package/node_modules/tar/dist/esm/options.d.ts +596 -0
  242. package/node_modules/tar/dist/esm/options.d.ts.map +1 -0
  243. package/node_modules/tar/dist/esm/options.js +54 -0
  244. package/node_modules/tar/dist/esm/options.js.map +1 -0
  245. package/node_modules/tar/dist/esm/pack.d.ts +102 -0
  246. package/node_modules/tar/dist/esm/pack.d.ts.map +1 -0
  247. package/node_modules/tar/dist/esm/pack.js +469 -0
  248. package/node_modules/tar/dist/esm/pack.js.map +1 -0
  249. package/node_modules/tar/dist/esm/package.json +3 -0
  250. package/node_modules/tar/dist/esm/parse.d.ts +85 -0
  251. package/node_modules/tar/dist/esm/parse.d.ts.map +1 -0
  252. package/node_modules/tar/dist/esm/parse.js +606 -0
  253. package/node_modules/tar/dist/esm/parse.js.map +1 -0
  254. package/node_modules/tar/dist/esm/path-reservations.d.ts +11 -0
  255. package/node_modules/tar/dist/esm/path-reservations.d.ts.map +1 -0
  256. package/node_modules/tar/dist/esm/path-reservations.js +166 -0
  257. package/node_modules/tar/dist/esm/path-reservations.js.map +1 -0
  258. package/node_modules/tar/dist/esm/pax.d.ts +26 -0
  259. package/node_modules/tar/dist/esm/pax.d.ts.map +1 -0
  260. package/node_modules/tar/dist/esm/pax.js +154 -0
  261. package/node_modules/tar/dist/esm/pax.js.map +1 -0
  262. package/node_modules/tar/dist/esm/process-umask.d.ts +2 -0
  263. package/node_modules/tar/dist/esm/process-umask.d.ts.map +1 -0
  264. package/node_modules/tar/dist/esm/process-umask.js +3 -0
  265. package/node_modules/tar/dist/esm/process-umask.js.map +1 -0
  266. package/node_modules/tar/dist/esm/read-entry.d.ts +36 -0
  267. package/node_modules/tar/dist/esm/read-entry.d.ts.map +1 -0
  268. package/node_modules/tar/dist/esm/read-entry.js +132 -0
  269. package/node_modules/tar/dist/esm/read-entry.js.map +1 -0
  270. package/node_modules/tar/dist/esm/replace.d.ts +2 -0
  271. package/node_modules/tar/dist/esm/replace.d.ts.map +1 -0
  272. package/node_modules/tar/dist/esm/replace.js +221 -0
  273. package/node_modules/tar/dist/esm/replace.js.map +1 -0
  274. package/node_modules/tar/dist/esm/strip-absolute-path.d.ts +2 -0
  275. package/node_modules/tar/dist/esm/strip-absolute-path.d.ts.map +1 -0
  276. package/node_modules/tar/dist/esm/strip-absolute-path.js +25 -0
  277. package/node_modules/tar/dist/esm/strip-absolute-path.js.map +1 -0
  278. package/node_modules/tar/dist/esm/strip-trailing-slashes.d.ts +2 -0
  279. package/node_modules/tar/dist/esm/strip-trailing-slashes.d.ts.map +1 -0
  280. package/node_modules/tar/dist/esm/strip-trailing-slashes.js +14 -0
  281. package/node_modules/tar/dist/esm/strip-trailing-slashes.js.map +1 -0
  282. package/node_modules/tar/dist/esm/symlink-error.d.ts +9 -0
  283. package/node_modules/tar/dist/esm/symlink-error.d.ts.map +1 -0
  284. package/node_modules/tar/dist/esm/symlink-error.js +15 -0
  285. package/node_modules/tar/dist/esm/symlink-error.js.map +1 -0
  286. package/node_modules/tar/dist/esm/types.d.ts +7 -0
  287. package/node_modules/tar/dist/esm/types.d.ts.map +1 -0
  288. package/node_modules/tar/dist/esm/types.js +45 -0
  289. package/node_modules/tar/dist/esm/types.js.map +1 -0
  290. package/node_modules/tar/dist/esm/unpack.d.ts +101 -0
  291. package/node_modules/tar/dist/esm/unpack.d.ts.map +1 -0
  292. package/node_modules/tar/dist/esm/unpack.js +891 -0
  293. package/node_modules/tar/dist/esm/unpack.js.map +1 -0
  294. package/node_modules/tar/dist/esm/update.d.ts +2 -0
  295. package/node_modules/tar/dist/esm/update.d.ts.map +1 -0
  296. package/node_modules/tar/dist/esm/update.js +30 -0
  297. package/node_modules/tar/dist/esm/update.js.map +1 -0
  298. package/node_modules/tar/dist/esm/warn-method.d.ts +24 -0
  299. package/node_modules/tar/dist/esm/warn-method.d.ts.map +1 -0
  300. package/node_modules/tar/dist/esm/warn-method.js +27 -0
  301. package/node_modules/tar/dist/esm/warn-method.js.map +1 -0
  302. package/node_modules/tar/dist/esm/winchars.d.ts +3 -0
  303. package/node_modules/tar/dist/esm/winchars.d.ts.map +1 -0
  304. package/node_modules/tar/dist/esm/winchars.js +9 -0
  305. package/node_modules/tar/dist/esm/winchars.js.map +1 -0
  306. package/node_modules/tar/dist/esm/write-entry.d.ts +129 -0
  307. package/node_modules/tar/dist/esm/write-entry.d.ts.map +1 -0
  308. package/node_modules/tar/dist/esm/write-entry.js +656 -0
  309. package/node_modules/tar/dist/esm/write-entry.js.map +1 -0
  310. package/node_modules/tar/package.json +297 -0
  311. package/node_modules/yallist/LICENSE.md +63 -0
  312. package/node_modules/yallist/README.md +205 -0
  313. package/node_modules/yallist/dist/commonjs/index.d.ts +39 -0
  314. package/node_modules/yallist/dist/commonjs/index.d.ts.map +1 -0
  315. package/node_modules/yallist/dist/commonjs/index.js +384 -0
  316. package/node_modules/yallist/dist/commonjs/index.js.map +1 -0
  317. package/node_modules/yallist/dist/commonjs/package.json +3 -0
  318. package/node_modules/yallist/dist/esm/index.d.ts +39 -0
  319. package/node_modules/yallist/dist/esm/index.d.ts.map +1 -0
  320. package/node_modules/yallist/dist/esm/index.js +379 -0
  321. package/node_modules/yallist/dist/esm/index.js.map +1 -0
  322. package/node_modules/yallist/dist/esm/package.json +3 -0
  323. package/node_modules/yallist/package.json +68 -0
  324. package/package.json +3 -1
  325. package/skills/manifest.json +12 -0
  326. package/skills/weibo-cron/SKILL.md +115 -48
  327. package/skills/weibo-crowd/SKILL.md +187 -19
  328. package/skills/weibo-crowd/references/SILICON-TEAHOUSE-RULES.md +197 -63
  329. package/skills/weibo-crowd/scripts/weibo-crowd.js +105 -27
  330. package/skills/weibo-hot-search/SKILL.md +2 -0
  331. package/skills/weibo-pic/SKILL.md +266 -0
  332. package/skills/weibo-pic/scripts/weibo-pic.js +798 -0
  333. package/skills/weibo-search/SKILL.md +2 -0
  334. package/skills/weibo-status/SKILL.md +2 -0
  335. package/skills/weibo-token/SKILL.md +2 -0
  336. package/skills/weibo-video/SKILL.md +2 -0
  337. package/src/client.d.ts.map +1 -1
  338. package/src/client.js +3 -0
  339. package/src/client.js.map +1 -1
  340. package/src/skill-updater.d.ts +14 -0
  341. package/src/skill-updater.d.ts.map +1 -0
  342. package/src/skill-updater.js +240 -0
  343. package/src/skill-updater.js.map +1 -0
  344. package/src/token.d.ts +2 -0
  345. package/src/token.d.ts.map +1 -1
  346. package/src/token.js +1 -0
  347. package/src/token.js.map +1 -1
  348. package/src/weibo-hot-search.js +1 -1
  349. package/src/weibo-hot-search.js.map +1 -1
  350. package/src/weibo-search.js +1 -1
  351. package/src/weibo-search.js.map +1 -1
  352. package/src/weibo-status.js +1 -1
  353. package/src/weibo-status.js.map +1 -1
  354. package/src/weibo-token-tool.js +1 -1
  355. package/src/weibo-token-tool.js.map +1 -1
@@ -0,0 +1,596 @@
1
+ import { type GzipOptions, type ZlibOptions } from 'minizlib';
2
+ import { type Stats } from 'node:fs';
3
+ import { type ReadEntry } from './read-entry.js';
4
+ import { type WarnData } from './warn-method.js';
5
+ import type { WriteEntry } from './write-entry.js';
6
+ /**
7
+ * The options that can be provided to tar commands.
8
+ *
9
+ * Note that some of these are only relevant for certain commands, since
10
+ * they are specific to reading or writing.
11
+ *
12
+ * Aliases are provided in the {@link TarOptionsWithAliases} type.
13
+ */
14
+ export interface TarOptions {
15
+ /**
16
+ * Perform all I/O operations synchronously. If the stream is ended
17
+ * immediately, then it will be processed entirely synchronously.
18
+ */
19
+ sync?: boolean;
20
+ /**
21
+ * The tar file to be read and/or written. When this is set, a stream
22
+ * is not returned. Asynchronous commands will return a promise indicating
23
+ * when the operation is completed, and synchronous commands will return
24
+ * immediately.
25
+ */
26
+ file?: string;
27
+ /**
28
+ * Treat warnings as crash-worthy errors. Defaults false.
29
+ */
30
+ strict?: boolean;
31
+ /**
32
+ * The effective current working directory for this tar command
33
+ */
34
+ cwd?: string;
35
+ /**
36
+ * When creating a tar archive, this can be used to compress it as well.
37
+ * Set to `true` to use the default gzip options, or customize them as
38
+ * needed.
39
+ *
40
+ * When reading, if this is unset, then the compression status will be
41
+ * inferred from the archive data. This is generally best, unless you are
42
+ * sure of the compression settings in use to create the archive, and want to
43
+ * fail if the archive doesn't match expectations.
44
+ */
45
+ gzip?: boolean | GzipOptions;
46
+ /**
47
+ * When creating archives, preserve absolute and `..` paths in the archive,
48
+ * rather than sanitizing them under the cwd.
49
+ *
50
+ * When extracting, allow absolute paths, paths containing `..`, and
51
+ * extracting through symbolic links. By default, the root `/` is stripped
52
+ * from absolute paths (eg, turning `/x/y/z` into `x/y/z`), paths containing
53
+ * `..` are not extracted, and any file whose location would be modified by a
54
+ * symbolic link is not extracted.
55
+ *
56
+ * **WARNING** This is almost always unsafe, and must NEVER be used on
57
+ * archives from untrusted sources, such as user input, and every entry must
58
+ * be validated to ensure it is safe to write. Even if the input is not
59
+ * malicious, mistakes can cause a lot of damage!
60
+ */
61
+ preservePaths?: boolean;
62
+ /**
63
+ * When extracting, do not set the `mtime` value for extracted entries to
64
+ * match the `mtime` in the archive.
65
+ *
66
+ * When creating archives, do not store the `mtime` value in the entry. Note
67
+ * that this prevents properly using other mtime-based features (such as
68
+ * `tar.update` or the `newer` option) with the resulting archive.
69
+ */
70
+ noMtime?: boolean;
71
+ /**
72
+ * Set to `true` or an object with settings for `zlib.BrotliCompress()` to
73
+ * create a brotli-compressed archive
74
+ *
75
+ * When extracting, this will cause the archive to be treated as a
76
+ * brotli-compressed file if set to `true` or a ZlibOptions object.
77
+ *
78
+ * If set `false`, then brotli options will not be used.
79
+ *
80
+ * If this, the `gzip`, and `zstd` options are left `undefined`, then tar
81
+ * will attempt to infer the brotli compression status, but can only do so
82
+ * based on the filename. If the filename ends in `.tbr` or `.tar.br`, and
83
+ * the first 512 bytes are not a valid tar header, then brotli decompression
84
+ * will be attempted.
85
+ */
86
+ brotli?: boolean | ZlibOptions;
87
+ /**
88
+ * Set to `true` or an object with settings for `zstd.compress()` to
89
+ * create a zstd-compressed archive
90
+ *
91
+ * When extracting, this will cause the archive to be treated as a
92
+ * zstd-compressed file if set to `true` or a ZlibOptions object.
93
+ *
94
+ * If set `false`, then zstd options will not be used.
95
+ *
96
+ * If this, the `gzip`, and `brotli` options are left `undefined`, then tar
97
+ * will attempt to infer the zstd compression status, but can only do so
98
+ * based on the filename. If the filename ends in `.tzst` or `.tar.zst`, and
99
+ * the first 512 bytes are not a valid tar header, then zstd decompression
100
+ * will be attempted.
101
+ */
102
+ zstd?: boolean | ZlibOptions;
103
+ /**
104
+ * A function that is called with `(path, stat)` when creating an archive, or
105
+ * `(path, entry)` when extracting. Return true to process the file/entry, or
106
+ * false to exclude it.
107
+ */
108
+ filter?: (path: string, entry: Stats | ReadEntry) => boolean;
109
+ /**
110
+ * A function that gets called for any warning encountered.
111
+ *
112
+ * Note: if `strict` is set, then the warning will throw, and this method
113
+ * will not be called.
114
+ */
115
+ onwarn?: (code: string, message: string, data: WarnData) => unknown;
116
+ /**
117
+ * When extracting, unlink files before creating them. Without this option,
118
+ * tar overwrites existing files, which preserves existing hardlinks. With
119
+ * this option, existing hardlinks will be broken, as will any symlink that
120
+ * would affect the location of an extracted file.
121
+ */
122
+ unlink?: boolean;
123
+ /**
124
+ * When extracting, strip the specified number of path portions from the
125
+ * entry path. For example, with `{strip: 2}`, the entry `a/b/c/d` would be
126
+ * extracted to `{cwd}/c/d`.
127
+ *
128
+ * Any entry whose entire path is stripped will be excluded.
129
+ */
130
+ strip?: number;
131
+ /**
132
+ * When extracting, keep the existing file on disk if it's newer than the
133
+ * file in the archive.
134
+ */
135
+ newer?: boolean;
136
+ /**
137
+ * When extracting, do not overwrite existing files at all.
138
+ */
139
+ keep?: boolean;
140
+ /**
141
+ * When extracting, set the `uid` and `gid` of extracted entries to the `uid`
142
+ * and `gid` fields in the archive. Defaults to true when run as root, and
143
+ * false otherwise.
144
+ *
145
+ * If false, then files and directories will be set with the owner and group
146
+ * of the user running the process. This is similar to `-p` in `tar(1)`, but
147
+ * ACLs and other system-specific data is never unpacked in this
148
+ * implementation, and modes are set by default already.
149
+ */
150
+ preserveOwner?: boolean;
151
+ /**
152
+ * The maximum depth of subfolders to extract into. This defaults to 1024.
153
+ * Anything deeper than the limit will raise a warning and skip the entry.
154
+ * Set to `Infinity` to remove the limitation.
155
+ */
156
+ maxDepth?: number;
157
+ /**
158
+ * When extracting, force all created files and directories, and all
159
+ * implicitly created directories, to be owned by the specified user id,
160
+ * regardless of the `uid` field in the archive.
161
+ *
162
+ * Cannot be used along with `preserveOwner`. Requires also setting the `gid`
163
+ * option.
164
+ */
165
+ uid?: number;
166
+ /**
167
+ * When extracting, force all created files and directories, and all
168
+ * implicitly created directories, to be owned by the specified group id,
169
+ * regardless of the `gid` field in the archive.
170
+ *
171
+ * Cannot be used along with `preserveOwner`. Requires also setting the `uid`
172
+ * option.
173
+ */
174
+ gid?: number;
175
+ /**
176
+ * When extracting, provide a function that takes an `entry` object, and
177
+ * returns a stream, or any falsey value. If a stream is provided, then that
178
+ * stream's data will be written instead of the contents of the archive
179
+ * entry. If a falsey value is provided, then the entry is written to disk as
180
+ * normal.
181
+ *
182
+ * To exclude items from extraction, use the `filter` option.
183
+ *
184
+ * Note that using an asynchronous stream type with the `transform` option
185
+ * will cause undefined behavior in synchronous extractions.
186
+ * [MiniPass](http://npm.im/minipass)-based streams are designed for this use
187
+ * case.
188
+ */
189
+ transform?: (entry: ReadEntry) => ReadEntry;
190
+ /**
191
+ * Call `chmod()` to ensure that extracted files match the entry's mode
192
+ * field. Without this field set, all mode fields in archive entries are a
193
+ * best effort attempt only.
194
+ *
195
+ * Setting this necessitates a call to the deprecated `process.umask()`
196
+ * method to determine the default umask value, unless a `processUmask`
197
+ * config is provided as well.
198
+ *
199
+ * If not set, tar will attempt to create file system entries with whatever
200
+ * mode is provided, and let the implicit process `umask` apply normally, but
201
+ * if a file already exists to be written to, then its existing mode will not
202
+ * be modified.
203
+ *
204
+ * When setting `chmod: true`, it is highly recommend to set the
205
+ * {@link TarOptions#processUmask} option as well, to avoid the call to the
206
+ * deprecated (and thread-unsafe) `process.umask()` method.
207
+ */
208
+ chmod?: boolean;
209
+ /**
210
+ * When setting the {@link TarOptions#chmod} option to `true`, you may
211
+ * provide a value here to avoid having to call the deprecated and
212
+ * thread-unsafe `process.umask()` method.
213
+ *
214
+ * This has no effect with `chmod` is not set to true, as mode values are not
215
+ * set explicitly anyway. If `chmod` is set to `true`, and a value is not
216
+ * provided here, then `process.umask()` must be called, which will result in
217
+ * deprecation warnings.
218
+ *
219
+ * The most common values for this are `0o22` (resulting in directories
220
+ * created with mode `0o755` and files with `0o644` by default) and `0o2`
221
+ * (resulting in directores created with mode `0o775` and files `0o664`, so
222
+ * they are group-writable).
223
+ */
224
+ processUmask?: number;
225
+ /**
226
+ * When parsing/listing archives, `entry` streams are by default resumed
227
+ * (set into "flowing" mode) immediately after the call to `onReadEntry()`.
228
+ * Set `noResume: true` to suppress this behavior.
229
+ *
230
+ * Note that when this is set, the stream will never complete until the
231
+ * data is consumed somehow.
232
+ *
233
+ * Set automatically in extract operations, since the entry is piped to
234
+ * a file system entry right away. Only relevant when parsing.
235
+ */
236
+ noResume?: boolean;
237
+ /**
238
+ * When creating, updating, or replacing within archives, this method will
239
+ * be called with each WriteEntry that is created.
240
+ */
241
+ onWriteEntry?: (entry: WriteEntry) => unknown;
242
+ /**
243
+ * When extracting or listing archives, this method will be called with
244
+ * each entry that is not excluded by a `filter`.
245
+ *
246
+ * Important when listing archives synchronously from a file, because there
247
+ * is otherwise no way to interact with the data!
248
+ */
249
+ onReadEntry?: (entry: ReadEntry) => unknown;
250
+ /**
251
+ * Pack the targets of symbolic links rather than the link itself.
252
+ */
253
+ follow?: boolean;
254
+ /**
255
+ * When creating archives, omit any metadata that is system-specific:
256
+ * `ctime`, `atime`, `uid`, `gid`, `uname`, `gname`, `dev`, `ino`, and
257
+ * `nlink`. Note that `mtime` is still included, because this is necessary
258
+ * for other time-based operations such as `tar.update`. Additionally, `mode`
259
+ * is set to a "reasonable default" for mose unix systems, based on an
260
+ * effective `umask` of `0o22`.
261
+ *
262
+ * This also defaults the `portable` option in the gzip configs when creating
263
+ * a compressed archive, in order to produce deterministic archives that are
264
+ * not operating-system specific.
265
+ */
266
+ portable?: boolean;
267
+ /**
268
+ * When creating archives, do not recursively archive the contents of
269
+ * directories. By default, archiving a directory archives all of its
270
+ * contents as well.
271
+ */
272
+ noDirRecurse?: boolean;
273
+ /**
274
+ * Suppress Pax extended headers when creating archives. Note that this means
275
+ * long paths and linkpaths will be truncated, and large or negative numeric
276
+ * values may be interpreted incorrectly.
277
+ */
278
+ noPax?: boolean;
279
+ /**
280
+ * Set to a `Date` object to force a specific `mtime` value for everything
281
+ * written to an archive.
282
+ *
283
+ * This is useful when creating archives that are intended to be
284
+ * deterministic based on their contents, irrespective of the file's last
285
+ * modification time.
286
+ *
287
+ * Overridden by `noMtime`.
288
+ */
289
+ mtime?: Date;
290
+ /**
291
+ * A path portion to prefix onto the entries added to an archive.
292
+ */
293
+ prefix?: string;
294
+ /**
295
+ * The mode to set on any created file archive, defaults to 0o666
296
+ * masked by the process umask, often resulting in 0o644.
297
+ *
298
+ * This does *not* affect the mode fields of individual entries, or the
299
+ * mode status of extracted entries on the filesystem.
300
+ */
301
+ mode?: number;
302
+ /**
303
+ * A cache of mtime values, to avoid having to stat the same file repeatedly.
304
+ *
305
+ * @internal
306
+ */
307
+ mtimeCache?: Map<string, Date>;
308
+ /**
309
+ * maximum buffer size for `fs.read()` operations.
310
+ *
311
+ * @internal
312
+ */
313
+ maxReadSize?: number;
314
+ /**
315
+ * Filter modes of entries being unpacked, like `process.umask()`
316
+ *
317
+ * @internal
318
+ */
319
+ umask?: number;
320
+ /**
321
+ * Default mode for directories. Used for all implicitly created directories,
322
+ * and any directories in the archive that do not have a mode field.
323
+ *
324
+ * @internal
325
+ */
326
+ dmode?: number;
327
+ /**
328
+ * default mode for files
329
+ *
330
+ * @internal
331
+ */
332
+ fmode?: number;
333
+ /**
334
+ * Map that tracks which directories already exist, for extraction
335
+ *
336
+ * @internal
337
+ */
338
+ dirCache?: Map<string, boolean>;
339
+ /**
340
+ * maximum supported size of meta entries. Defaults to 1MB
341
+ *
342
+ * @internal
343
+ */
344
+ maxMetaEntrySize?: number;
345
+ /**
346
+ * A Map object containing the device and inode value for any file whose
347
+ * `nlink` value is greater than 1, to identify hard links when creating
348
+ * archives.
349
+ *
350
+ * @internal
351
+ */
352
+ linkCache?: Map<LinkCacheKey, string>;
353
+ /**
354
+ * A map object containing the results of `fs.readdir()` calls.
355
+ *
356
+ * @internal
357
+ */
358
+ readdirCache?: Map<string, string[]>;
359
+ /**
360
+ * A cache of all `lstat` results, for use in creating archives.
361
+ *
362
+ * @internal
363
+ */
364
+ statCache?: Map<string, Stats>;
365
+ /**
366
+ * Number of concurrent jobs to run when creating archives.
367
+ *
368
+ * Defaults to 4.
369
+ *
370
+ * @internal
371
+ */
372
+ jobs?: number;
373
+ /**
374
+ * Automatically set to true on Windows systems.
375
+ *
376
+ * When extracting, causes behavior where filenames containing `<|>?:`
377
+ * characters are converted to windows-compatible escape sequences in the
378
+ * created filesystem entries.
379
+ *
380
+ * When packing, causes behavior where paths replace `\` with `/`, and
381
+ * filenames containing the windows-compatible escaped forms of `<|>?:` are
382
+ * converted to actual `<|>?:` characters in the archive.
383
+ *
384
+ * @internal
385
+ */
386
+ win32?: boolean;
387
+ /**
388
+ * For `WriteEntry` objects, the absolute path to the entry on the
389
+ * filesystem. By default, this is `resolve(cwd, entry.path)`, but it can be
390
+ * overridden explicitly.
391
+ *
392
+ * @internal
393
+ */
394
+ absolute?: string;
395
+ /**
396
+ * Used with Parser stream interface, to attach and take over when the
397
+ * stream is completely parsed. If this is set, then the prefinish,
398
+ * finish, and end events will not fire, and are the responsibility of
399
+ * the ondone method to emit properly.
400
+ *
401
+ * @internal
402
+ */
403
+ ondone?: () => void;
404
+ /**
405
+ * Mostly for testing, but potentially useful in some cases.
406
+ * Forcibly trigger a chown on every entry, no matter what.
407
+ */
408
+ forceChown?: boolean;
409
+ /**
410
+ * ambiguous deprecated name for {@link onReadEntry}
411
+ *
412
+ * @deprecated
413
+ */
414
+ onentry?: (entry: ReadEntry) => unknown;
415
+ }
416
+ export type TarOptionsSync = TarOptions & {
417
+ sync: true;
418
+ };
419
+ export type TarOptionsAsync = TarOptions & {
420
+ sync?: false;
421
+ };
422
+ export type TarOptionsFile = TarOptions & {
423
+ file: string;
424
+ };
425
+ export type TarOptionsNoFile = TarOptions & {
426
+ file?: undefined;
427
+ };
428
+ export type TarOptionsSyncFile = TarOptionsSync & TarOptionsFile;
429
+ export type TarOptionsAsyncFile = TarOptionsAsync & TarOptionsFile;
430
+ export type TarOptionsSyncNoFile = TarOptionsSync & TarOptionsNoFile;
431
+ export type TarOptionsAsyncNoFile = TarOptionsAsync & TarOptionsNoFile;
432
+ export type LinkCacheKey = `${number}:${number}`;
433
+ export interface TarOptionsWithAliases extends TarOptions {
434
+ /**
435
+ * The effective current working directory for this tar command
436
+ */
437
+ C?: TarOptions['cwd'];
438
+ /**
439
+ * The tar file to be read and/or written. When this is set, a stream
440
+ * is not returned. Asynchronous commands will return a promise indicating
441
+ * when the operation is completed, and synchronous commands will return
442
+ * immediately.
443
+ */
444
+ f?: TarOptions['file'];
445
+ /**
446
+ * When creating a tar archive, this can be used to compress it as well.
447
+ * Set to `true` to use the default gzip options, or customize them as
448
+ * needed.
449
+ *
450
+ * When reading, if this is unset, then the compression status will be
451
+ * inferred from the archive data. This is generally best, unless you are
452
+ * sure of the compression settings in use to create the archive, and want to
453
+ * fail if the archive doesn't match expectations.
454
+ */
455
+ z?: TarOptions['gzip'];
456
+ /**
457
+ * When creating archives, preserve absolute and `..` paths in the archive,
458
+ * rather than sanitizing them under the cwd.
459
+ *
460
+ * When extracting, allow absolute paths, paths containing `..`, and
461
+ * extracting through symbolic links. By default, the root `/` is stripped
462
+ * from absolute paths (eg, turning `/x/y/z` into `x/y/z`), paths containing
463
+ * `..` are not extracted, and any file whose location would be modified by a
464
+ * symbolic link is not extracted.
465
+ *
466
+ * **WARNING** This is almost always unsafe, and must NEVER be used on
467
+ * archives from untrusted sources, such as user input, and every entry must
468
+ * be validated to ensure it is safe to write. Even if the input is not
469
+ * malicious, mistakes can cause a lot of damage!
470
+ */
471
+ P?: TarOptions['preservePaths'];
472
+ /**
473
+ * When extracting, unlink files before creating them. Without this option,
474
+ * tar overwrites existing files, which preserves existing hardlinks. With
475
+ * this option, existing hardlinks will be broken, as will any symlink that
476
+ * would affect the location of an extracted file.
477
+ */
478
+ U?: TarOptions['unlink'];
479
+ /**
480
+ * When extracting, strip the specified number of path portions from the
481
+ * entry path. For example, with `{strip: 2}`, the entry `a/b/c/d` would be
482
+ * extracted to `{cwd}/c/d`.
483
+ */
484
+ 'strip-components'?: TarOptions['strip'];
485
+ /**
486
+ * When extracting, strip the specified number of path portions from the
487
+ * entry path. For example, with `{strip: 2}`, the entry `a/b/c/d` would be
488
+ * extracted to `{cwd}/c/d`.
489
+ */
490
+ stripComponents?: TarOptions['strip'];
491
+ /**
492
+ * When extracting, keep the existing file on disk if it's newer than the
493
+ * file in the archive.
494
+ */
495
+ 'keep-newer'?: TarOptions['newer'];
496
+ /**
497
+ * When extracting, keep the existing file on disk if it's newer than the
498
+ * file in the archive.
499
+ */
500
+ keepNewer?: TarOptions['newer'];
501
+ /**
502
+ * When extracting, keep the existing file on disk if it's newer than the
503
+ * file in the archive.
504
+ */
505
+ 'keep-newer-files'?: TarOptions['newer'];
506
+ /**
507
+ * When extracting, keep the existing file on disk if it's newer than the
508
+ * file in the archive.
509
+ */
510
+ keepNewerFiles?: TarOptions['newer'];
511
+ /**
512
+ * When extracting, do not overwrite existing files at all.
513
+ */
514
+ k?: TarOptions['keep'];
515
+ /**
516
+ * When extracting, do not overwrite existing files at all.
517
+ */
518
+ 'keep-existing'?: TarOptions['keep'];
519
+ /**
520
+ * When extracting, do not overwrite existing files at all.
521
+ */
522
+ keepExisting?: TarOptions['keep'];
523
+ /**
524
+ * When extracting, do not set the `mtime` value for extracted entries to
525
+ * match the `mtime` in the archive.
526
+ *
527
+ * When creating archives, do not store the `mtime` value in the entry. Note
528
+ * that this prevents properly using other mtime-based features (such as
529
+ * `tar.update` or the `newer` option) with the resulting archive.
530
+ */
531
+ m?: TarOptions['noMtime'];
532
+ /**
533
+ * When extracting, do not set the `mtime` value for extracted entries to
534
+ * match the `mtime` in the archive.
535
+ *
536
+ * When creating archives, do not store the `mtime` value in the entry. Note
537
+ * that this prevents properly using other mtime-based features (such as
538
+ * `tar.update` or the `newer` option) with the resulting archive.
539
+ */
540
+ 'no-mtime'?: TarOptions['noMtime'];
541
+ /**
542
+ * When extracting, set the `uid` and `gid` of extracted entries to the `uid`
543
+ * and `gid` fields in the archive. Defaults to true when run as root, and
544
+ * false otherwise.
545
+ *
546
+ * If false, then files and directories will be set with the owner and group
547
+ * of the user running the process. This is similar to `-p` in `tar(1)`, but
548
+ * ACLs and other system-specific data is never unpacked in this
549
+ * implementation, and modes are set by default already.
550
+ */
551
+ p?: TarOptions['preserveOwner'];
552
+ /**
553
+ * Pack the targets of symbolic links rather than the link itself.
554
+ */
555
+ L?: TarOptions['follow'];
556
+ /**
557
+ * Pack the targets of symbolic links rather than the link itself.
558
+ */
559
+ h?: TarOptions['follow'];
560
+ /**
561
+ * Deprecated option. Set explicitly false to set `chmod: true`. Ignored
562
+ * if {@link TarOptions#chmod} is set to any boolean value.
563
+ *
564
+ * @deprecated
565
+ */
566
+ noChmod?: boolean;
567
+ }
568
+ export type TarOptionsWithAliasesSync = TarOptionsWithAliases & {
569
+ sync: true;
570
+ };
571
+ export type TarOptionsWithAliasesAsync = TarOptionsWithAliases & {
572
+ sync?: false;
573
+ };
574
+ export type TarOptionsWithAliasesFile = (TarOptionsWithAliases & {
575
+ file: string;
576
+ }) | (TarOptionsWithAliases & {
577
+ f: string;
578
+ });
579
+ export type TarOptionsWithAliasesSyncFile = TarOptionsWithAliasesSync & TarOptionsWithAliasesFile;
580
+ export type TarOptionsWithAliasesAsyncFile = TarOptionsWithAliasesAsync & TarOptionsWithAliasesFile;
581
+ export type TarOptionsWithAliasesNoFile = TarOptionsWithAliases & {
582
+ f?: undefined;
583
+ file?: undefined;
584
+ };
585
+ export type TarOptionsWithAliasesSyncNoFile = TarOptionsWithAliasesSync & TarOptionsWithAliasesNoFile;
586
+ export type TarOptionsWithAliasesAsyncNoFile = TarOptionsWithAliasesAsync & TarOptionsWithAliasesNoFile;
587
+ export declare const isSyncFile: <O extends TarOptions>(o: O) => o is O & TarOptionsSyncFile;
588
+ export declare const isAsyncFile: <O extends TarOptions>(o: O) => o is O & TarOptionsAsyncFile;
589
+ export declare const isSyncNoFile: <O extends TarOptions>(o: O) => o is O & TarOptionsSyncNoFile;
590
+ export declare const isAsyncNoFile: <O extends TarOptions>(o: O) => o is O & TarOptionsAsyncNoFile;
591
+ export declare const isSync: <O extends TarOptions>(o: O) => o is O & TarOptionsSync;
592
+ export declare const isAsync: <O extends TarOptions>(o: O) => o is O & TarOptionsAsync;
593
+ export declare const isFile: <O extends TarOptions>(o: O) => o is O & TarOptionsFile;
594
+ export declare const isNoFile: <O extends TarOptions>(o: O) => o is O & TarOptionsNoFile;
595
+ export declare const dealias: (opt?: TarOptionsWithAliases) => TarOptions;
596
+ //# sourceMappingURL=options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../src/options.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAA;AAC7D,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,SAAS,CAAA;AACpC,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAyBlD;;;;;;;GAOG;AACH,MAAM,WA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C/C,GAAG,CAAC,KACH,CAAC,IAAI,CAAC,GAAG,oBAA2C,CAAA;AACvD,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,UAAU,EAChD,GAAG,CAAC,KACH,CAAC,IAAI,CAAC,GAAG,qBAA2C,CAAA;AACvD,eAAO,MAAM,MAAM,GAAI,CAAC,SAAS,UAAU,EACzC,GAAG,CAAC,KACH,CAAC,IAAI,CAAC,GAAG,cAA0B,CAAA;AACtC,eAAO,MAAM,OAAO,GAAI,CAAC,SAAS,UAAU,EAC1C,GAAG,CAAC,KACH,CAAC,IAAI,CAAC,GAAG,eAA0B,CAAA;AACtC,eAAO,MAAM,MAAM,GAAI,CAAC,SAAS,UAAU,EACzC,GAAG,CAAC,KACH,CAAC,IAAI,CAAC,GAAG,cAA0B,CAAA;AACtC,eAAO,MAAM,QAAQ,GAAI,CAAC,SAAS,UAAU,EAC3C,GAAG,CAAC,KACH,CAAC,IAAI,CAAC,GAAG,gBAA2B,CAAA;AAQvC,eAAO,MAAM,OAAO,GAAI,MAAK,qBAA0B,KAAG,UAiBzD,CAAA"}
@@ -0,0 +1,54 @@
1
+ // turn tar(1) style args like `C` into the more verbose things like `cwd`
2
+ const argmap = new Map([
3
+ ['C', 'cwd'],
4
+ ['f', 'file'],
5
+ ['z', 'gzip'],
6
+ ['P', 'preservePaths'],
7
+ ['U', 'unlink'],
8
+ ['strip-components', 'strip'],
9
+ ['stripComponents', 'strip'],
10
+ ['keep-newer', 'newer'],
11
+ ['keepNewer', 'newer'],
12
+ ['keep-newer-files', 'newer'],
13
+ ['keepNewerFiles', 'newer'],
14
+ ['k', 'keep'],
15
+ ['keep-existing', 'keep'],
16
+ ['keepExisting', 'keep'],
17
+ ['m', 'noMtime'],
18
+ ['no-mtime', 'noMtime'],
19
+ ['p', 'preserveOwner'],
20
+ ['L', 'follow'],
21
+ ['h', 'follow'],
22
+ ['onentry', 'onReadEntry'],
23
+ ]);
24
+ export const isSyncFile = (o) => !!o.sync && !!o.file;
25
+ export const isAsyncFile = (o) => !o.sync && !!o.file;
26
+ export const isSyncNoFile = (o) => !!o.sync && !o.file;
27
+ export const isAsyncNoFile = (o) => !o.sync && !o.file;
28
+ export const isSync = (o) => !!o.sync;
29
+ export const isAsync = (o) => !o.sync;
30
+ export const isFile = (o) => !!o.file;
31
+ export const isNoFile = (o) => !o.file;
32
+ const dealiasKey = (k) => {
33
+ const d = argmap.get(k);
34
+ if (d)
35
+ return d;
36
+ return k;
37
+ };
38
+ export const dealias = (opt = {}) => {
39
+ if (!opt)
40
+ return {};
41
+ const result = {};
42
+ for (const [key, v] of Object.entries(opt)) {
43
+ // TS doesn't know that aliases are going to always be the same type
44
+ const k = dealiasKey(key);
45
+ result[k] = v;
46
+ }
47
+ // affordance for deprecated noChmod -> chmod
48
+ if (result.chmod === undefined && result.noChmod === false) {
49
+ result.chmod = true;
50
+ }
51
+ delete result.noChmod;
52
+ return result;
53
+ };
54
+ //# sourceMappingURL=options.js.map