@microwiseai/snapshot 0.9.0 → 0.9.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 (477) hide show
  1. package/dist/build-info.json +1 -1
  2. package/dist/commands/install.d.ts.map +1 -1
  3. package/dist/commands/install.js +20 -81
  4. package/dist/commands/install.js.map +1 -1
  5. package/dist/commands/publish.d.ts.map +1 -1
  6. package/dist/commands/publish.js +7 -0
  7. package/dist/commands/publish.js.map +1 -1
  8. package/dist/lib/prerequisites.d.ts.map +1 -1
  9. package/dist/lib/prerequisites.js +2 -1
  10. package/dist/lib/prerequisites.js.map +1 -1
  11. package/dist/lib/proxy-index-refresh.d.ts +40 -0
  12. package/dist/lib/proxy-index-refresh.d.ts.map +1 -0
  13. package/dist/lib/proxy-index-refresh.js +66 -0
  14. package/dist/lib/proxy-index-refresh.js.map +1 -0
  15. package/dist/lib/proxy-userconfig.d.ts +45 -0
  16. package/dist/lib/proxy-userconfig.d.ts.map +1 -0
  17. package/dist/lib/proxy-userconfig.js +94 -0
  18. package/dist/lib/proxy-userconfig.js.map +1 -0
  19. package/node_modules/@microwiseai/skit/LICENSE +21 -0
  20. package/node_modules/@microwiseai/skit/README.md +137 -93
  21. package/node_modules/@microwiseai/skit/dist/__tests__/setup/hermetic-config.d.ts +2 -0
  22. package/node_modules/@microwiseai/skit/dist/__tests__/setup/hermetic-config.d.ts.map +1 -0
  23. package/node_modules/@microwiseai/skit/dist/commands/browse.d.ts +47 -3
  24. package/node_modules/@microwiseai/skit/dist/commands/browse.d.ts.map +1 -1
  25. package/node_modules/@microwiseai/skit/dist/commands/config.d.ts +5 -0
  26. package/node_modules/@microwiseai/skit/dist/commands/config.d.ts.map +1 -0
  27. package/node_modules/@microwiseai/skit/dist/commands/install.d.ts +14 -2
  28. package/node_modules/@microwiseai/skit/dist/commands/install.d.ts.map +1 -1
  29. package/node_modules/@microwiseai/skit/dist/commands/orphans.d.ts +16 -0
  30. package/node_modules/@microwiseai/skit/dist/commands/orphans.d.ts.map +1 -0
  31. package/node_modules/@microwiseai/skit/dist/commands/pack.d.ts.map +1 -1
  32. package/node_modules/@microwiseai/skit/dist/commands/prompt.d.ts +25 -0
  33. package/node_modules/@microwiseai/skit/dist/commands/prompt.d.ts.map +1 -0
  34. package/node_modules/@microwiseai/skit/dist/commands/publish.d.ts.map +1 -1
  35. package/node_modules/@microwiseai/skit/dist/commands/uninstall.d.ts.map +1 -1
  36. package/node_modules/@microwiseai/skit/dist/distkit/install-directive.d.ts +48 -0
  37. package/node_modules/@microwiseai/skit/dist/distkit/install-directive.d.ts.map +1 -0
  38. package/node_modules/@microwiseai/skit/dist/distkit/kit-executor.d.ts +46 -0
  39. package/node_modules/@microwiseai/skit/dist/distkit/kit-executor.d.ts.map +1 -0
  40. package/node_modules/@microwiseai/skit/dist/distkit/resolve-from.d.ts +37 -0
  41. package/node_modules/@microwiseai/skit/dist/distkit/resolve-from.d.ts.map +1 -0
  42. package/node_modules/@microwiseai/skit/dist/index.d.ts +0 -1
  43. package/node_modules/@microwiseai/skit/dist/index.js +52519 -68
  44. package/node_modules/@microwiseai/skit/dist/lib.d.ts +657 -5
  45. package/node_modules/@microwiseai/skit/dist/lib.d.ts.map +1 -1
  46. package/node_modules/@microwiseai/skit/dist/lib.js +48417 -554
  47. package/node_modules/@microwiseai/skit/dist/types/skit.d.ts +189 -12
  48. package/node_modules/@microwiseai/skit/dist/types/skit.d.ts.map +1 -1
  49. package/node_modules/@microwiseai/skit/dist/utils/dep-plan.d.ts +150 -0
  50. package/node_modules/@microwiseai/skit/dist/utils/dep-plan.d.ts.map +1 -0
  51. package/node_modules/@microwiseai/skit/dist/utils/file-copy.d.ts +10 -5
  52. package/node_modules/@microwiseai/skit/dist/utils/file-copy.d.ts.map +1 -1
  53. package/node_modules/@microwiseai/skit/dist/utils/gitlab-registry.d.ts +91 -0
  54. package/node_modules/@microwiseai/skit/dist/utils/gitlab-registry.d.ts.map +1 -0
  55. package/node_modules/@microwiseai/skit/dist/utils/installed-registry.d.ts +59 -3
  56. package/node_modules/@microwiseai/skit/dist/utils/installed-registry.d.ts.map +1 -1
  57. package/node_modules/@microwiseai/skit/dist/utils/npm-auth.d.ts +99 -0
  58. package/node_modules/@microwiseai/skit/dist/utils/npm-auth.d.ts.map +1 -0
  59. package/node_modules/@microwiseai/skit/dist/utils/profile-permissions.d.ts +54 -0
  60. package/node_modules/@microwiseai/skit/dist/utils/profile-permissions.d.ts.map +1 -0
  61. package/node_modules/@microwiseai/skit/dist/utils/skit-config.d.ts +41 -0
  62. package/node_modules/@microwiseai/skit/dist/utils/skit-config.d.ts.map +1 -0
  63. package/node_modules/@microwiseai/skit/dist/utils/skit-parser.d.ts +5 -0
  64. package/node_modules/@microwiseai/skit/dist/utils/skit-parser.d.ts.map +1 -1
  65. package/node_modules/@microwiseai/skit/dist/utils/temp-npmrc.d.ts +70 -0
  66. package/node_modules/@microwiseai/skit/dist/utils/temp-npmrc.d.ts.map +1 -0
  67. package/node_modules/@microwiseai/skit/package.json +40 -10
  68. package/package.json +2 -2
  69. package/node_modules/@isaacs/fs-minipass/LICENSE +0 -15
  70. package/node_modules/@isaacs/fs-minipass/README.md +0 -71
  71. package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts +0 -118
  72. package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts.map +0 -1
  73. package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js +0 -430
  74. package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js.map +0 -1
  75. package/node_modules/@isaacs/fs-minipass/dist/commonjs/package.json +0 -3
  76. package/node_modules/@isaacs/fs-minipass/dist/esm/index.d.ts +0 -118
  77. package/node_modules/@isaacs/fs-minipass/dist/esm/index.d.ts.map +0 -1
  78. package/node_modules/@isaacs/fs-minipass/dist/esm/index.js +0 -420
  79. package/node_modules/@isaacs/fs-minipass/dist/esm/index.js.map +0 -1
  80. package/node_modules/@isaacs/fs-minipass/dist/esm/package.json +0 -3
  81. package/node_modules/@isaacs/fs-minipass/package.json +0 -72
  82. package/node_modules/@ist/registry-config/dist/index.d.ts +0 -3
  83. package/node_modules/@ist/registry-config/dist/index.js +0 -3
  84. package/node_modules/@ist/registry-config/dist/registry-url.d.ts +0 -1
  85. package/node_modules/@ist/registry-config/dist/registry-url.js +0 -1
  86. package/node_modules/@ist/registry-config/dist/scope-mapping.d.ts +0 -6
  87. package/node_modules/@ist/registry-config/dist/scope-mapping.js +0 -7
  88. package/node_modules/@ist/registry-config/dist/types.d.ts +0 -4
  89. package/node_modules/@ist/registry-config/dist/types.js +0 -1
  90. package/node_modules/@ist/registry-config/package.json +0 -32
  91. package/node_modules/@microwiseai/skit/dist/commands/browse.js +0 -127
  92. package/node_modules/@microwiseai/skit/dist/commands/browse.js.map +0 -1
  93. package/node_modules/@microwiseai/skit/dist/commands/gitignore.js +0 -59
  94. package/node_modules/@microwiseai/skit/dist/commands/gitignore.js.map +0 -1
  95. package/node_modules/@microwiseai/skit/dist/commands/info.js +0 -80
  96. package/node_modules/@microwiseai/skit/dist/commands/info.js.map +0 -1
  97. package/node_modules/@microwiseai/skit/dist/commands/install.js +0 -150
  98. package/node_modules/@microwiseai/skit/dist/commands/install.js.map +0 -1
  99. package/node_modules/@microwiseai/skit/dist/commands/licenses.d.ts +0 -9
  100. package/node_modules/@microwiseai/skit/dist/commands/licenses.d.ts.map +0 -1
  101. package/node_modules/@microwiseai/skit/dist/commands/licenses.js +0 -125
  102. package/node_modules/@microwiseai/skit/dist/commands/licenses.js.map +0 -1
  103. package/node_modules/@microwiseai/skit/dist/commands/list.js +0 -41
  104. package/node_modules/@microwiseai/skit/dist/commands/list.js.map +0 -1
  105. package/node_modules/@microwiseai/skit/dist/commands/login.d.ts +0 -10
  106. package/node_modules/@microwiseai/skit/dist/commands/login.d.ts.map +0 -1
  107. package/node_modules/@microwiseai/skit/dist/commands/login.js +0 -112
  108. package/node_modules/@microwiseai/skit/dist/commands/login.js.map +0 -1
  109. package/node_modules/@microwiseai/skit/dist/commands/logout.d.ts +0 -5
  110. package/node_modules/@microwiseai/skit/dist/commands/logout.d.ts.map +0 -1
  111. package/node_modules/@microwiseai/skit/dist/commands/logout.js +0 -30
  112. package/node_modules/@microwiseai/skit/dist/commands/logout.js.map +0 -1
  113. package/node_modules/@microwiseai/skit/dist/commands/pack.js +0 -185
  114. package/node_modules/@microwiseai/skit/dist/commands/pack.js.map +0 -1
  115. package/node_modules/@microwiseai/skit/dist/commands/publish.js +0 -108
  116. package/node_modules/@microwiseai/skit/dist/commands/publish.js.map +0 -1
  117. package/node_modules/@microwiseai/skit/dist/commands/purchase.d.ts +0 -9
  118. package/node_modules/@microwiseai/skit/dist/commands/purchase.d.ts.map +0 -1
  119. package/node_modules/@microwiseai/skit/dist/commands/purchase.js +0 -160
  120. package/node_modules/@microwiseai/skit/dist/commands/purchase.js.map +0 -1
  121. package/node_modules/@microwiseai/skit/dist/commands/register.d.ts +0 -10
  122. package/node_modules/@microwiseai/skit/dist/commands/register.d.ts.map +0 -1
  123. package/node_modules/@microwiseai/skit/dist/commands/register.js +0 -121
  124. package/node_modules/@microwiseai/skit/dist/commands/register.js.map +0 -1
  125. package/node_modules/@microwiseai/skit/dist/commands/uninstall.js +0 -138
  126. package/node_modules/@microwiseai/skit/dist/commands/uninstall.js.map +0 -1
  127. package/node_modules/@microwiseai/skit/dist/commands/whoami.d.ts +0 -9
  128. package/node_modules/@microwiseai/skit/dist/commands/whoami.d.ts.map +0 -1
  129. package/node_modules/@microwiseai/skit/dist/commands/whoami.js +0 -79
  130. package/node_modules/@microwiseai/skit/dist/commands/whoami.js.map +0 -1
  131. package/node_modules/@microwiseai/skit/dist/index.js.map +0 -1
  132. package/node_modules/@microwiseai/skit/dist/lib.js.map +0 -1
  133. package/node_modules/@microwiseai/skit/dist/types/skit.js +0 -20
  134. package/node_modules/@microwiseai/skit/dist/types/skit.js.map +0 -1
  135. package/node_modules/@microwiseai/skit/dist/utils/api.d.ts +0 -18
  136. package/node_modules/@microwiseai/skit/dist/utils/api.d.ts.map +0 -1
  137. package/node_modules/@microwiseai/skit/dist/utils/api.js +0 -26
  138. package/node_modules/@microwiseai/skit/dist/utils/api.js.map +0 -1
  139. package/node_modules/@microwiseai/skit/dist/utils/auth.d.ts +0 -62
  140. package/node_modules/@microwiseai/skit/dist/utils/auth.d.ts.map +0 -1
  141. package/node_modules/@microwiseai/skit/dist/utils/auth.js +0 -172
  142. package/node_modules/@microwiseai/skit/dist/utils/auth.js.map +0 -1
  143. package/node_modules/@microwiseai/skit/dist/utils/file-copy.js +0 -219
  144. package/node_modules/@microwiseai/skit/dist/utils/file-copy.js.map +0 -1
  145. package/node_modules/@microwiseai/skit/dist/utils/hook-installer.js +0 -98
  146. package/node_modules/@microwiseai/skit/dist/utils/hook-installer.js.map +0 -1
  147. package/node_modules/@microwiseai/skit/dist/utils/installed-registry.js +0 -108
  148. package/node_modules/@microwiseai/skit/dist/utils/installed-registry.js.map +0 -1
  149. package/node_modules/@microwiseai/skit/dist/utils/skit-parser.js +0 -52
  150. package/node_modules/@microwiseai/skit/dist/utils/skit-parser.js.map +0 -1
  151. package/node_modules/@microwiseai/skit/dist/utils/wrapper-generator.d.ts +0 -74
  152. package/node_modules/@microwiseai/skit/dist/utils/wrapper-generator.d.ts.map +0 -1
  153. package/node_modules/@microwiseai/skit/dist/utils/wrapper-generator.js +0 -280
  154. package/node_modules/@microwiseai/skit/dist/utils/wrapper-generator.js.map +0 -1
  155. package/node_modules/chownr/LICENSE.md +0 -63
  156. package/node_modules/chownr/README.md +0 -3
  157. package/node_modules/chownr/dist/commonjs/index.d.ts +0 -3
  158. package/node_modules/chownr/dist/commonjs/index.d.ts.map +0 -1
  159. package/node_modules/chownr/dist/commonjs/index.js +0 -93
  160. package/node_modules/chownr/dist/commonjs/index.js.map +0 -1
  161. package/node_modules/chownr/dist/commonjs/package.json +0 -3
  162. package/node_modules/chownr/dist/esm/index.d.ts +0 -3
  163. package/node_modules/chownr/dist/esm/index.d.ts.map +0 -1
  164. package/node_modules/chownr/dist/esm/index.js +0 -85
  165. package/node_modules/chownr/dist/esm/index.js.map +0 -1
  166. package/node_modules/chownr/dist/esm/package.json +0 -3
  167. package/node_modules/chownr/package.json +0 -69
  168. package/node_modules/commander/LICENSE +0 -22
  169. package/node_modules/commander/Readme.md +0 -1157
  170. package/node_modules/commander/esm.mjs +0 -16
  171. package/node_modules/commander/index.js +0 -24
  172. package/node_modules/commander/lib/argument.js +0 -149
  173. package/node_modules/commander/lib/command.js +0 -2509
  174. package/node_modules/commander/lib/error.js +0 -39
  175. package/node_modules/commander/lib/help.js +0 -520
  176. package/node_modules/commander/lib/option.js +0 -330
  177. package/node_modules/commander/lib/suggestSimilar.js +0 -101
  178. package/node_modules/commander/package-support.json +0 -16
  179. package/node_modules/commander/package.json +0 -84
  180. package/node_modules/commander/typings/esm.d.mts +0 -3
  181. package/node_modules/commander/typings/index.d.ts +0 -969
  182. package/node_modules/minipass/LICENSE.md +0 -55
  183. package/node_modules/minipass/README.md +0 -825
  184. package/node_modules/minipass/dist/commonjs/index.d.ts +0 -545
  185. package/node_modules/minipass/dist/commonjs/index.d.ts.map +0 -1
  186. package/node_modules/minipass/dist/commonjs/index.js +0 -1038
  187. package/node_modules/minipass/dist/commonjs/index.js.map +0 -1
  188. package/node_modules/minipass/dist/commonjs/package.json +0 -3
  189. package/node_modules/minipass/dist/esm/index.d.ts +0 -545
  190. package/node_modules/minipass/dist/esm/index.d.ts.map +0 -1
  191. package/node_modules/minipass/dist/esm/index.js +0 -1020
  192. package/node_modules/minipass/dist/esm/index.js.map +0 -1
  193. package/node_modules/minipass/dist/esm/package.json +0 -3
  194. package/node_modules/minipass/package.json +0 -77
  195. package/node_modules/minizlib/LICENSE +0 -26
  196. package/node_modules/minizlib/README.md +0 -64
  197. package/node_modules/minizlib/dist/commonjs/constants.d.ts +0 -2
  198. package/node_modules/minizlib/dist/commonjs/constants.d.ts.map +0 -1
  199. package/node_modules/minizlib/dist/commonjs/constants.js +0 -123
  200. package/node_modules/minizlib/dist/commonjs/constants.js.map +0 -1
  201. package/node_modules/minizlib/dist/commonjs/index.d.ts +0 -99
  202. package/node_modules/minizlib/dist/commonjs/index.d.ts.map +0 -1
  203. package/node_modules/minizlib/dist/commonjs/index.js +0 -416
  204. package/node_modules/minizlib/dist/commonjs/index.js.map +0 -1
  205. package/node_modules/minizlib/dist/commonjs/package.json +0 -3
  206. package/node_modules/minizlib/dist/esm/constants.d.ts +0 -2
  207. package/node_modules/minizlib/dist/esm/constants.d.ts.map +0 -1
  208. package/node_modules/minizlib/dist/esm/constants.js +0 -117
  209. package/node_modules/minizlib/dist/esm/constants.js.map +0 -1
  210. package/node_modules/minizlib/dist/esm/index.d.ts +0 -99
  211. package/node_modules/minizlib/dist/esm/index.d.ts.map +0 -1
  212. package/node_modules/minizlib/dist/esm/index.js +0 -363
  213. package/node_modules/minizlib/dist/esm/index.js.map +0 -1
  214. package/node_modules/minizlib/dist/esm/package.json +0 -3
  215. package/node_modules/minizlib/package.json +0 -80
  216. package/node_modules/tar/LICENSE.md +0 -55
  217. package/node_modules/tar/README.md +0 -1224
  218. package/node_modules/tar/dist/commonjs/create.d.ts +0 -3
  219. package/node_modules/tar/dist/commonjs/create.d.ts.map +0 -1
  220. package/node_modules/tar/dist/commonjs/create.js +0 -82
  221. package/node_modules/tar/dist/commonjs/create.js.map +0 -1
  222. package/node_modules/tar/dist/commonjs/cwd-error.d.ts +0 -8
  223. package/node_modules/tar/dist/commonjs/cwd-error.d.ts.map +0 -1
  224. package/node_modules/tar/dist/commonjs/cwd-error.js +0 -18
  225. package/node_modules/tar/dist/commonjs/cwd-error.js.map +0 -1
  226. package/node_modules/tar/dist/commonjs/extract.d.ts +0 -3
  227. package/node_modules/tar/dist/commonjs/extract.d.ts.map +0 -1
  228. package/node_modules/tar/dist/commonjs/extract.js +0 -88
  229. package/node_modules/tar/dist/commonjs/extract.js.map +0 -1
  230. package/node_modules/tar/dist/commonjs/get-write-flag.d.ts +0 -2
  231. package/node_modules/tar/dist/commonjs/get-write-flag.d.ts.map +0 -1
  232. package/node_modules/tar/dist/commonjs/get-write-flag.js +0 -32
  233. package/node_modules/tar/dist/commonjs/get-write-flag.js.map +0 -1
  234. package/node_modules/tar/dist/commonjs/header.d.ts +0 -53
  235. package/node_modules/tar/dist/commonjs/header.d.ts.map +0 -1
  236. package/node_modules/tar/dist/commonjs/header.js +0 -312
  237. package/node_modules/tar/dist/commonjs/header.js.map +0 -1
  238. package/node_modules/tar/dist/commonjs/index.d.ts +0 -20
  239. package/node_modules/tar/dist/commonjs/index.d.ts.map +0 -1
  240. package/node_modules/tar/dist/commonjs/index.js +0 -64
  241. package/node_modules/tar/dist/commonjs/index.js.map +0 -1
  242. package/node_modules/tar/dist/commonjs/index.min.js +0 -4
  243. package/node_modules/tar/dist/commonjs/index.min.js.map +0 -7
  244. package/node_modules/tar/dist/commonjs/large-numbers.d.ts +0 -3
  245. package/node_modules/tar/dist/commonjs/large-numbers.d.ts.map +0 -1
  246. package/node_modules/tar/dist/commonjs/large-numbers.js +0 -99
  247. package/node_modules/tar/dist/commonjs/large-numbers.js.map +0 -1
  248. package/node_modules/tar/dist/commonjs/list.d.ts +0 -7
  249. package/node_modules/tar/dist/commonjs/list.d.ts.map +0 -1
  250. package/node_modules/tar/dist/commonjs/list.js +0 -145
  251. package/node_modules/tar/dist/commonjs/list.js.map +0 -1
  252. package/node_modules/tar/dist/commonjs/make-command.d.ts +0 -49
  253. package/node_modules/tar/dist/commonjs/make-command.d.ts.map +0 -1
  254. package/node_modules/tar/dist/commonjs/make-command.js +0 -52
  255. package/node_modules/tar/dist/commonjs/make-command.js.map +0 -1
  256. package/node_modules/tar/dist/commonjs/mkdir.d.ts +0 -25
  257. package/node_modules/tar/dist/commonjs/mkdir.d.ts.map +0 -1
  258. package/node_modules/tar/dist/commonjs/mkdir.js +0 -187
  259. package/node_modules/tar/dist/commonjs/mkdir.js.map +0 -1
  260. package/node_modules/tar/dist/commonjs/mode-fix.d.ts +0 -2
  261. package/node_modules/tar/dist/commonjs/mode-fix.d.ts.map +0 -1
  262. package/node_modules/tar/dist/commonjs/mode-fix.js +0 -29
  263. package/node_modules/tar/dist/commonjs/mode-fix.js.map +0 -1
  264. package/node_modules/tar/dist/commonjs/normalize-unicode.d.ts +0 -2
  265. package/node_modules/tar/dist/commonjs/normalize-unicode.d.ts.map +0 -1
  266. package/node_modules/tar/dist/commonjs/normalize-unicode.js +0 -38
  267. package/node_modules/tar/dist/commonjs/normalize-unicode.js.map +0 -1
  268. package/node_modules/tar/dist/commonjs/normalize-windows-path.d.ts +0 -2
  269. package/node_modules/tar/dist/commonjs/normalize-windows-path.d.ts.map +0 -1
  270. package/node_modules/tar/dist/commonjs/normalize-windows-path.js +0 -12
  271. package/node_modules/tar/dist/commonjs/normalize-windows-path.js.map +0 -1
  272. package/node_modules/tar/dist/commonjs/options.d.ts +0 -596
  273. package/node_modules/tar/dist/commonjs/options.d.ts.map +0 -1
  274. package/node_modules/tar/dist/commonjs/options.js +0 -66
  275. package/node_modules/tar/dist/commonjs/options.js.map +0 -1
  276. package/node_modules/tar/dist/commonjs/pack.d.ts +0 -102
  277. package/node_modules/tar/dist/commonjs/pack.d.ts.map +0 -1
  278. package/node_modules/tar/dist/commonjs/pack.js +0 -511
  279. package/node_modules/tar/dist/commonjs/pack.js.map +0 -1
  280. package/node_modules/tar/dist/commonjs/package.json +0 -3
  281. package/node_modules/tar/dist/commonjs/parse.d.ts +0 -85
  282. package/node_modules/tar/dist/commonjs/parse.d.ts.map +0 -1
  283. package/node_modules/tar/dist/commonjs/parse.js +0 -610
  284. package/node_modules/tar/dist/commonjs/parse.js.map +0 -1
  285. package/node_modules/tar/dist/commonjs/path-reservations.d.ts +0 -11
  286. package/node_modules/tar/dist/commonjs/path-reservations.d.ts.map +0 -1
  287. package/node_modules/tar/dist/commonjs/path-reservations.js +0 -170
  288. package/node_modules/tar/dist/commonjs/path-reservations.js.map +0 -1
  289. package/node_modules/tar/dist/commonjs/pax.d.ts +0 -26
  290. package/node_modules/tar/dist/commonjs/pax.d.ts.map +0 -1
  291. package/node_modules/tar/dist/commonjs/pax.js +0 -158
  292. package/node_modules/tar/dist/commonjs/pax.js.map +0 -1
  293. package/node_modules/tar/dist/commonjs/process-umask.d.ts +0 -2
  294. package/node_modules/tar/dist/commonjs/process-umask.d.ts.map +0 -1
  295. package/node_modules/tar/dist/commonjs/process-umask.js +0 -7
  296. package/node_modules/tar/dist/commonjs/process-umask.js.map +0 -1
  297. package/node_modules/tar/dist/commonjs/read-entry.d.ts +0 -36
  298. package/node_modules/tar/dist/commonjs/read-entry.d.ts.map +0 -1
  299. package/node_modules/tar/dist/commonjs/read-entry.js +0 -136
  300. package/node_modules/tar/dist/commonjs/read-entry.js.map +0 -1
  301. package/node_modules/tar/dist/commonjs/replace.d.ts +0 -2
  302. package/node_modules/tar/dist/commonjs/replace.d.ts.map +0 -1
  303. package/node_modules/tar/dist/commonjs/replace.js +0 -227
  304. package/node_modules/tar/dist/commonjs/replace.js.map +0 -1
  305. package/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts +0 -2
  306. package/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts.map +0 -1
  307. package/node_modules/tar/dist/commonjs/strip-absolute-path.js +0 -29
  308. package/node_modules/tar/dist/commonjs/strip-absolute-path.js.map +0 -1
  309. package/node_modules/tar/dist/commonjs/strip-trailing-slashes.d.ts +0 -2
  310. package/node_modules/tar/dist/commonjs/strip-trailing-slashes.d.ts.map +0 -1
  311. package/node_modules/tar/dist/commonjs/strip-trailing-slashes.js +0 -18
  312. package/node_modules/tar/dist/commonjs/strip-trailing-slashes.js.map +0 -1
  313. package/node_modules/tar/dist/commonjs/symlink-error.d.ts +0 -9
  314. package/node_modules/tar/dist/commonjs/symlink-error.d.ts.map +0 -1
  315. package/node_modules/tar/dist/commonjs/symlink-error.js +0 -19
  316. package/node_modules/tar/dist/commonjs/symlink-error.js.map +0 -1
  317. package/node_modules/tar/dist/commonjs/types.d.ts +0 -7
  318. package/node_modules/tar/dist/commonjs/types.d.ts.map +0 -1
  319. package/node_modules/tar/dist/commonjs/types.js +0 -50
  320. package/node_modules/tar/dist/commonjs/types.js.map +0 -1
  321. package/node_modules/tar/dist/commonjs/unpack.d.ts +0 -101
  322. package/node_modules/tar/dist/commonjs/unpack.d.ts.map +0 -1
  323. package/node_modules/tar/dist/commonjs/unpack.js +0 -932
  324. package/node_modules/tar/dist/commonjs/unpack.js.map +0 -1
  325. package/node_modules/tar/dist/commonjs/update.d.ts +0 -2
  326. package/node_modules/tar/dist/commonjs/update.d.ts.map +0 -1
  327. package/node_modules/tar/dist/commonjs/update.js +0 -33
  328. package/node_modules/tar/dist/commonjs/update.js.map +0 -1
  329. package/node_modules/tar/dist/commonjs/warn-method.d.ts +0 -24
  330. package/node_modules/tar/dist/commonjs/warn-method.d.ts.map +0 -1
  331. package/node_modules/tar/dist/commonjs/warn-method.js +0 -31
  332. package/node_modules/tar/dist/commonjs/warn-method.js.map +0 -1
  333. package/node_modules/tar/dist/commonjs/winchars.d.ts +0 -3
  334. package/node_modules/tar/dist/commonjs/winchars.d.ts.map +0 -1
  335. package/node_modules/tar/dist/commonjs/winchars.js +0 -14
  336. package/node_modules/tar/dist/commonjs/winchars.js.map +0 -1
  337. package/node_modules/tar/dist/commonjs/write-entry.d.ts +0 -129
  338. package/node_modules/tar/dist/commonjs/write-entry.d.ts.map +0 -1
  339. package/node_modules/tar/dist/commonjs/write-entry.js +0 -698
  340. package/node_modules/tar/dist/commonjs/write-entry.js.map +0 -1
  341. package/node_modules/tar/dist/esm/create.d.ts +0 -3
  342. package/node_modules/tar/dist/esm/create.d.ts.map +0 -1
  343. package/node_modules/tar/dist/esm/create.js +0 -76
  344. package/node_modules/tar/dist/esm/create.js.map +0 -1
  345. package/node_modules/tar/dist/esm/cwd-error.d.ts +0 -8
  346. package/node_modules/tar/dist/esm/cwd-error.d.ts.map +0 -1
  347. package/node_modules/tar/dist/esm/cwd-error.js +0 -14
  348. package/node_modules/tar/dist/esm/cwd-error.js.map +0 -1
  349. package/node_modules/tar/dist/esm/extract.d.ts +0 -3
  350. package/node_modules/tar/dist/esm/extract.d.ts.map +0 -1
  351. package/node_modules/tar/dist/esm/extract.js +0 -49
  352. package/node_modules/tar/dist/esm/extract.js.map +0 -1
  353. package/node_modules/tar/dist/esm/get-write-flag.d.ts +0 -2
  354. package/node_modules/tar/dist/esm/get-write-flag.d.ts.map +0 -1
  355. package/node_modules/tar/dist/esm/get-write-flag.js +0 -26
  356. package/node_modules/tar/dist/esm/get-write-flag.js.map +0 -1
  357. package/node_modules/tar/dist/esm/header.d.ts +0 -53
  358. package/node_modules/tar/dist/esm/header.d.ts.map +0 -1
  359. package/node_modules/tar/dist/esm/header.js +0 -275
  360. package/node_modules/tar/dist/esm/header.js.map +0 -1
  361. package/node_modules/tar/dist/esm/index.d.ts +0 -20
  362. package/node_modules/tar/dist/esm/index.d.ts.map +0 -1
  363. package/node_modules/tar/dist/esm/index.js +0 -20
  364. package/node_modules/tar/dist/esm/index.js.map +0 -1
  365. package/node_modules/tar/dist/esm/index.min.js +0 -4
  366. package/node_modules/tar/dist/esm/index.min.js.map +0 -7
  367. package/node_modules/tar/dist/esm/large-numbers.d.ts +0 -3
  368. package/node_modules/tar/dist/esm/large-numbers.d.ts.map +0 -1
  369. package/node_modules/tar/dist/esm/large-numbers.js +0 -94
  370. package/node_modules/tar/dist/esm/large-numbers.js.map +0 -1
  371. package/node_modules/tar/dist/esm/list.d.ts +0 -7
  372. package/node_modules/tar/dist/esm/list.d.ts.map +0 -1
  373. package/node_modules/tar/dist/esm/list.js +0 -105
  374. package/node_modules/tar/dist/esm/list.js.map +0 -1
  375. package/node_modules/tar/dist/esm/make-command.d.ts +0 -49
  376. package/node_modules/tar/dist/esm/make-command.d.ts.map +0 -1
  377. package/node_modules/tar/dist/esm/make-command.js +0 -48
  378. package/node_modules/tar/dist/esm/make-command.js.map +0 -1
  379. package/node_modules/tar/dist/esm/mkdir.d.ts +0 -25
  380. package/node_modules/tar/dist/esm/mkdir.d.ts.map +0 -1
  381. package/node_modules/tar/dist/esm/mkdir.js +0 -179
  382. package/node_modules/tar/dist/esm/mkdir.js.map +0 -1
  383. package/node_modules/tar/dist/esm/mode-fix.d.ts +0 -2
  384. package/node_modules/tar/dist/esm/mode-fix.d.ts.map +0 -1
  385. package/node_modules/tar/dist/esm/mode-fix.js +0 -25
  386. package/node_modules/tar/dist/esm/mode-fix.js.map +0 -1
  387. package/node_modules/tar/dist/esm/normalize-unicode.d.ts +0 -2
  388. package/node_modules/tar/dist/esm/normalize-unicode.d.ts.map +0 -1
  389. package/node_modules/tar/dist/esm/normalize-unicode.js +0 -34
  390. package/node_modules/tar/dist/esm/normalize-unicode.js.map +0 -1
  391. package/node_modules/tar/dist/esm/normalize-windows-path.d.ts +0 -2
  392. package/node_modules/tar/dist/esm/normalize-windows-path.d.ts.map +0 -1
  393. package/node_modules/tar/dist/esm/normalize-windows-path.js +0 -9
  394. package/node_modules/tar/dist/esm/normalize-windows-path.js.map +0 -1
  395. package/node_modules/tar/dist/esm/options.d.ts +0 -596
  396. package/node_modules/tar/dist/esm/options.d.ts.map +0 -1
  397. package/node_modules/tar/dist/esm/options.js +0 -54
  398. package/node_modules/tar/dist/esm/options.js.map +0 -1
  399. package/node_modules/tar/dist/esm/pack.d.ts +0 -102
  400. package/node_modules/tar/dist/esm/pack.d.ts.map +0 -1
  401. package/node_modules/tar/dist/esm/pack.js +0 -469
  402. package/node_modules/tar/dist/esm/pack.js.map +0 -1
  403. package/node_modules/tar/dist/esm/package.json +0 -3
  404. package/node_modules/tar/dist/esm/parse.d.ts +0 -85
  405. package/node_modules/tar/dist/esm/parse.d.ts.map +0 -1
  406. package/node_modules/tar/dist/esm/parse.js +0 -606
  407. package/node_modules/tar/dist/esm/parse.js.map +0 -1
  408. package/node_modules/tar/dist/esm/path-reservations.d.ts +0 -11
  409. package/node_modules/tar/dist/esm/path-reservations.d.ts.map +0 -1
  410. package/node_modules/tar/dist/esm/path-reservations.js +0 -166
  411. package/node_modules/tar/dist/esm/path-reservations.js.map +0 -1
  412. package/node_modules/tar/dist/esm/pax.d.ts +0 -26
  413. package/node_modules/tar/dist/esm/pax.d.ts.map +0 -1
  414. package/node_modules/tar/dist/esm/pax.js +0 -154
  415. package/node_modules/tar/dist/esm/pax.js.map +0 -1
  416. package/node_modules/tar/dist/esm/process-umask.d.ts +0 -2
  417. package/node_modules/tar/dist/esm/process-umask.d.ts.map +0 -1
  418. package/node_modules/tar/dist/esm/process-umask.js +0 -3
  419. package/node_modules/tar/dist/esm/process-umask.js.map +0 -1
  420. package/node_modules/tar/dist/esm/read-entry.d.ts +0 -36
  421. package/node_modules/tar/dist/esm/read-entry.d.ts.map +0 -1
  422. package/node_modules/tar/dist/esm/read-entry.js +0 -132
  423. package/node_modules/tar/dist/esm/read-entry.js.map +0 -1
  424. package/node_modules/tar/dist/esm/replace.d.ts +0 -2
  425. package/node_modules/tar/dist/esm/replace.d.ts.map +0 -1
  426. package/node_modules/tar/dist/esm/replace.js +0 -221
  427. package/node_modules/tar/dist/esm/replace.js.map +0 -1
  428. package/node_modules/tar/dist/esm/strip-absolute-path.d.ts +0 -2
  429. package/node_modules/tar/dist/esm/strip-absolute-path.d.ts.map +0 -1
  430. package/node_modules/tar/dist/esm/strip-absolute-path.js +0 -25
  431. package/node_modules/tar/dist/esm/strip-absolute-path.js.map +0 -1
  432. package/node_modules/tar/dist/esm/strip-trailing-slashes.d.ts +0 -2
  433. package/node_modules/tar/dist/esm/strip-trailing-slashes.d.ts.map +0 -1
  434. package/node_modules/tar/dist/esm/strip-trailing-slashes.js +0 -14
  435. package/node_modules/tar/dist/esm/strip-trailing-slashes.js.map +0 -1
  436. package/node_modules/tar/dist/esm/symlink-error.d.ts +0 -9
  437. package/node_modules/tar/dist/esm/symlink-error.d.ts.map +0 -1
  438. package/node_modules/tar/dist/esm/symlink-error.js +0 -15
  439. package/node_modules/tar/dist/esm/symlink-error.js.map +0 -1
  440. package/node_modules/tar/dist/esm/types.d.ts +0 -7
  441. package/node_modules/tar/dist/esm/types.d.ts.map +0 -1
  442. package/node_modules/tar/dist/esm/types.js +0 -45
  443. package/node_modules/tar/dist/esm/types.js.map +0 -1
  444. package/node_modules/tar/dist/esm/unpack.d.ts +0 -101
  445. package/node_modules/tar/dist/esm/unpack.d.ts.map +0 -1
  446. package/node_modules/tar/dist/esm/unpack.js +0 -891
  447. package/node_modules/tar/dist/esm/unpack.js.map +0 -1
  448. package/node_modules/tar/dist/esm/update.d.ts +0 -2
  449. package/node_modules/tar/dist/esm/update.d.ts.map +0 -1
  450. package/node_modules/tar/dist/esm/update.js +0 -30
  451. package/node_modules/tar/dist/esm/update.js.map +0 -1
  452. package/node_modules/tar/dist/esm/warn-method.d.ts +0 -24
  453. package/node_modules/tar/dist/esm/warn-method.d.ts.map +0 -1
  454. package/node_modules/tar/dist/esm/warn-method.js +0 -27
  455. package/node_modules/tar/dist/esm/warn-method.js.map +0 -1
  456. package/node_modules/tar/dist/esm/winchars.d.ts +0 -3
  457. package/node_modules/tar/dist/esm/winchars.d.ts.map +0 -1
  458. package/node_modules/tar/dist/esm/winchars.js +0 -9
  459. package/node_modules/tar/dist/esm/winchars.js.map +0 -1
  460. package/node_modules/tar/dist/esm/write-entry.d.ts +0 -129
  461. package/node_modules/tar/dist/esm/write-entry.d.ts.map +0 -1
  462. package/node_modules/tar/dist/esm/write-entry.js +0 -656
  463. package/node_modules/tar/dist/esm/write-entry.js.map +0 -1
  464. package/node_modules/tar/package.json +0 -297
  465. package/node_modules/yallist/LICENSE.md +0 -63
  466. package/node_modules/yallist/README.md +0 -205
  467. package/node_modules/yallist/dist/commonjs/index.d.ts +0 -39
  468. package/node_modules/yallist/dist/commonjs/index.d.ts.map +0 -1
  469. package/node_modules/yallist/dist/commonjs/index.js +0 -384
  470. package/node_modules/yallist/dist/commonjs/index.js.map +0 -1
  471. package/node_modules/yallist/dist/commonjs/package.json +0 -3
  472. package/node_modules/yallist/dist/esm/index.d.ts +0 -39
  473. package/node_modules/yallist/dist/esm/index.d.ts.map +0 -1
  474. package/node_modules/yallist/dist/esm/index.js +0 -379
  475. package/node_modules/yallist/dist/esm/index.js.map +0 -1
  476. package/node_modules/yallist/dist/esm/package.json +0 -3
  477. package/node_modules/yallist/package.json +0 -68
@@ -1 +1 @@
1
- {"version":3,"file":"installed-registry.d.ts","sourceRoot":"","sources":["../../src/utils/installed-registry.ts"],"names":[],"mappings":"AAAA;;GAEG;AAQH;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,CAAC,WAAW,EAAE,MAAM,GAAG,YAAY,CAAC;CACrC;AAYD;;GAEG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAMjD;AASD;;GAEG;AACH,wBAAsB,YAAY,IAAI,OAAO,CAAC,iBAAiB,CAAC,CAQ/D;AAED;;GAEG;AACH,wBAAsB,aAAa,CAAC,QAAQ,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAI9E;AAED;;GAEG;AACH,wBAAsB,eAAe,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC,CAGvF;AAED;;GAEG;AACH,wBAAsB,oBAAoB,CACxC,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EAAE,GACd,OAAO,CAAC,IAAI,CAAC,CAUf;AAED;;GAEG;AACH,wBAAsB,aAAa,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAItE;AAED;;GAEG;AACH,wBAAsB,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAmBjF;AAED;;GAEG;AACH,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,iBAAiB,CAAC,CAEpE"}
1
+ {"version":3,"file":"installed-registry.d.ts","sourceRoot":"","sources":["../../src/utils/installed-registry.ts"],"names":[],"mappings":"AAAA;;GAEG;AAQH;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;CAC1C;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,CAAC,WAAW,EAAE,MAAM,GAAG,YAAY,CAAC;CACrC;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAK/C;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAMjD;AASD;;GAEG;AACH,wBAAsB,YAAY,IAAI,OAAO,CAAC,iBAAiB,CAAC,CAQ/D;AAED;;GAEG;AACH,wBAAsB,aAAa,CAAC,QAAQ,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAI9E;AAED;;GAEG;AACH,wBAAsB,eAAe,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC,CAGvF;AAED;;GAEG;AACH,wBAAsB,oBAAoB,CACxC,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EAAE,EACf,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,GACvC,OAAO,CAAC,IAAI,CAAC,CAWf;AAED;;GAEG;AACH,wBAAsB,aAAa,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAItE;AAED;;;;GAIG;AACH,wBAAgB,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NPM_CONFIG_USERCONFIG`, which makes npm IGNORE the user's own ~/.npmrc —
6
+ * including its `//<proxy>/:_authToken=` line. A logged-in user therefore hit
7
+ * the proxy anonymously (401 Authentication required on a private dep).
8
+ *
9
+ * This module carries the user's proxy auth into the temp .npmrc WITHOUT ever
10
+ * writing a token value to disk:
11
+ * - a user line already in env-reference form (`${VAR}`) is copied verbatim
12
+ * (only when every referenced VAR is set — npm fails hard on an unset ref);
13
+ * - a PLAINTEXT user token is moved into a child-process env var
14
+ * (`SKIT_NPM_AUTH_<n>`) and the temp .npmrc gets `${SKIT_NPM_AUTH_<n>}`;
15
+ * - with no user line, an `IST_SESSION_TOKEN` env (the IST session token the
16
+ * proxy accepts as Bearer) yields a `${IST_SESSION_TOKEN}` reference line.
17
+ * With none of these, no auth line is produced — the anonymous behavior is
18
+ * unchanged.
19
+ */
20
+ /** Env var that carries the IST session token the registry-proxy accepts. */
21
+ export declare const IST_SESSION_TOKEN_ENV = "IST_SESSION_TOKEN";
22
+ /** Prefix for the child-only env vars that carry a plaintext user token. */
23
+ export declare const SKIT_NPM_AUTH_ENV_PREFIX = "SKIT_NPM_AUTH_";
24
+ export interface InheritedNpmAuth {
25
+ /** `.npmrc` lines to append — env references only, never a token value. */
26
+ lines: string[];
27
+ /** Extra env for the npm child process (plaintext tokens live ONLY here). */
28
+ env: Record<string, string>;
29
+ }
30
+ /**
31
+ * Path of the user's npm config as npm itself would pick it: the ORIGINAL
32
+ * `NPM_CONFIG_USERCONFIG` (case-insensitive, as npm reads it) or `~/.npmrc`.
33
+ */
34
+ export declare function resolveUserNpmrcPath(env?: NodeJS.ProcessEnv): string;
35
+ /**
36
+ * Build the auth lines + child env that let a temp .npmrc authenticate against
37
+ * `registryUrl` the same way the user's own npm config would. Pure given its
38
+ * inputs (`npmrcContent` is the user's npmrc body, or null when unreadable).
39
+ * Exported for tests.
40
+ */
41
+ export declare function buildInheritedNpmAuth(registryUrl: string, npmrcContent: string | null, env?: NodeJS.ProcessEnv): InheritedNpmAuth;
42
+ /**
43
+ * Read the user's npm config (see {@link resolveUserNpmrcPath}) and build the
44
+ * inherited auth for `registryUrl`. A missing/unreadable config is not an error
45
+ * (it just contributes no lines).
46
+ */
47
+ export declare function resolveInheritedNpmAuth(registryUrl: string, env?: NodeJS.ProcessEnv): InheritedNpmAuth;
48
+ /**
49
+ * Strip credentials from a URL for display: userinfo and the query string are
50
+ * dropped (tokens never belong in a reported URL). Non-URLs are returned as-is.
51
+ */
52
+ export declare function redactUrl(url: string): string;
53
+ /**
54
+ * Remove anything token-shaped from free text before it is surfaced: the given
55
+ * secret values, `_authToken=`/`_auth=` values, and `Bearer`/`token` headers.
56
+ */
57
+ export declare function redactSecrets(text: string, secrets?: string[]): string;
58
+ /** Actionable hint for an HTTP status from a registry. */
59
+ export declare function httpStatusHint(status: number): string;
60
+ /**
61
+ * Format a registry HTTP failure: `HTTP <status> [<statusText>] <METHOD> <url>`
62
+ * plus a hint for 401/403. The URL is always redacted.
63
+ */
64
+ export declare function formatHttpFailure(status: number, url: string, opts?: {
65
+ statusText?: string;
66
+ method?: string;
67
+ }): string;
68
+ export interface NpmHttpFailure {
69
+ status: number;
70
+ method?: string;
71
+ url?: string;
72
+ }
73
+ /**
74
+ * Pull the HTTP status + URL out of npm's error output, e.g.
75
+ * `npm error 401 Unauthorized - GET https://proxy/@scope%2fpkg - Authentication required`
76
+ * `npm ERR! 404 Not Found - GET https://proxy/@scope%2fpkg - Not found`
77
+ * `npm error code E403`
78
+ * Returns null when npm's output carries no HTTP status.
79
+ */
80
+ export declare function parseNpmHttpFailure(output: string): NpmHttpFailure | null;
81
+ /**
82
+ * Build the error message for a failed `npm install -g` batch: surfaces the
83
+ * real HTTP status + (redacted) URL when npm reports one, with an auth hint for
84
+ * 401/403, and redacts any token material from npm's own output.
85
+ */
86
+ export declare function formatNpmInstallError(specs: string[], rawMessage: string, secrets?: string[]): string;
87
+ /**
88
+ * A registry HTTP failure carrying the real status + (redacted) URL, so callers
89
+ * can branch on it (e.g. 401/403 → fall back to another source) without
90
+ * parsing message text.
91
+ */
92
+ export declare class RegistryHttpError extends Error {
93
+ readonly status: number;
94
+ readonly url: string;
95
+ constructor(message: string, status: number, url: string);
96
+ }
97
+ /** True for a 401/403 (auth / entitlement) registry failure. */
98
+ export declare function isAuthDenied(error: unknown): error is RegistryHttpError;
99
+ //# sourceMappingURL=npm-auth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"npm-auth.d.ts","sourceRoot":"","sources":["../../src/utils/npm-auth.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,6EAA6E;AAC7E,eAAO,MAAM,qBAAqB,sBAAsB,CAAC;AAEzD,4EAA4E;AAC5E,eAAO,MAAM,wBAAwB,mBAAmB,CAAC;AAEzD,MAAM,WAAW,gBAAgB;IAC/B,2EAA2E;IAC3E,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,6EAA6E;IAC7E,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC7B;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,MAAM,CAIjF;AAcD;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,GAAG,IAAI,EAC3B,GAAG,GAAE,MAAM,CAAC,UAAwB,GACnC,gBAAgB,CAoClB;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CACrC,WAAW,EAAE,MAAM,EACnB,GAAG,GAAE,MAAM,CAAC,UAAwB,GACnC,gBAAgB,CAQlB;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAW7C;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,MAAM,EAAO,GAAG,MAAM,CAU1E;AAED,0DAA0D;AAC1D,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAYrD;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,MAAM,EACX,IAAI,GAAE;IAAE,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAO,GAClD,MAAM,CAKR;AAED,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,cAAc,GAAG,IAAI,CASzE;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,MAAM,EAAE,EACf,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE,MAAM,EAAO,GACrB,MAAM,CASR;AAED;;;;GAIG;AACH,qBAAa,iBAAkB,SAAQ,KAAK;IAC1C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;gBACT,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM;CAMzD;AAED,gEAAgE;AAChE,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,iBAAiB,CAEvE"}
@@ -0,0 +1,54 @@
1
+ /**
2
+ * Profile permission overlays.
3
+ *
4
+ * A paid add-on kit (e.g. @ist/smon-kit) can declare `profilePermissions` in its
5
+ * skit.json to grant `allowedTools` entries to a profile shipped by a DIFFERENT
6
+ * (typically free) base kit — for example re-granting `Bash(smon:*)` to the
7
+ * `tda-manager` profile that @ist/tda-kit-free intentionally ships without it.
8
+ *
9
+ * On install we union the declared entries into the installed profile's YAML
10
+ * front-matter `allowedTools:` list; on uninstall we remove exactly what we added
11
+ * (the applied set is recorded in the installed-kits registry so removal never
12
+ * touches permissions the base profile legitimately owns).
13
+ *
14
+ * Front-matter is edited textually (no YAML dependency) so existing formatting,
15
+ * comments and key ordering are preserved. Only the `allowedTools:` list block is
16
+ * touched.
17
+ */
18
+ import { type ProfilePermissions, type SkitManifest } from '../types/skit.js';
19
+ /** Map of profileName -> allowedTools entries actually applied (for reversal). */
20
+ export type AppliedProfileGrants = Record<string, string[]>;
21
+ /**
22
+ * Union `tools` into a profile's `allowedTools` front-matter list.
23
+ * Returns the (possibly unchanged) content and the subset actually added.
24
+ */
25
+ export declare function addToolsToProfile(content: string, tools: string[]): {
26
+ content: string;
27
+ added: string[];
28
+ };
29
+ /**
30
+ * Remove `tools` from a profile's `allowedTools` front-matter list.
31
+ * Returns the (possibly unchanged) content and the subset actually removed.
32
+ */
33
+ export declare function removeToolsFromProfile(content: string, tools: string[]): {
34
+ content: string;
35
+ removed: string[];
36
+ };
37
+ interface OverlayOptions {
38
+ dryRun?: boolean;
39
+ onProgress?: (message: string) => void;
40
+ }
41
+ /**
42
+ * Apply a manifest's `profilePermissions` to the installed profiles.
43
+ * Returns the grants actually applied (profile -> added tools), for later reversal.
44
+ */
45
+ export declare function applyProfilePermissions(manifest: SkitManifest, options?: OverlayOptions): Promise<AppliedProfileGrants>;
46
+ /**
47
+ * Reverse previously-applied profile permission grants (on uninstall).
48
+ * `grants` is the recorded profile -> tools map from the registry.
49
+ */
50
+ export declare function removeProfilePermissions(grants: ProfilePermissions, options?: OverlayOptions & {
51
+ installProfiles?: string;
52
+ }): Promise<AppliedProfileGrants>;
53
+ export {};
54
+ //# sourceMappingURL=profile-permissions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile-permissions.d.ts","sourceRoot":"","sources":["../../src/utils/profile-permissions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAKH,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,YAAY,EAClB,MAAM,kBAAkB,CAAC;AAE1B,kFAAkF;AAClF,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;AAiD5D;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EAAE,GACd;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,EAAE,CAAA;CAAE,CAsBtC;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EAAE,GACd;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,CAexC;AAED,UAAU,cAAc;IACtB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACxC;AAOD;;;GAGG;AACH,wBAAsB,uBAAuB,CAC3C,QAAQ,EAAE,YAAY,EACtB,OAAO,GAAE,cAAmB,GAC3B,OAAO,CAAC,oBAAoB,CAAC,CA4B/B;AAED;;;GAGG;AACH,wBAAsB,wBAAwB,CAC5C,MAAM,EAAE,kBAAkB,EAC1B,OAAO,GAAE,cAAc,GAAG;IAAE,eAAe,CAAC,EAAE,MAAM,CAAA;CAAO,GAC1D,OAAO,CAAC,oBAAoB,CAAC,CAuB/B"}
@@ -0,0 +1,41 @@
1
+ /** Installer config shape (P1: registryUrl; P2 T1: gitlabHost / gitlabGroup). */
2
+ export interface SkitConfig {
3
+ /** Default proxy/registry base URL (layer ③ of getRegistryUrl). */
4
+ registryUrl?: string;
5
+ /**
6
+ * Default GitLab host (P2 #4). Bare host (e.g. "gitlab.acme.com"); a scheme is
7
+ * stripped by `getGitlabHost`. Layer ② of the host chain (below IST_GITLAB_HOST
8
+ * env, above the built-in gitlab.com).
9
+ */
10
+ gitlabHost?: string;
11
+ /**
12
+ * Installer-default GitLab group name (P2 #5). Layer below the author's
13
+ * manifest `registry[scope].group` and the IST_GITLAB_GROUP env.
14
+ */
15
+ gitlabGroup?: string;
16
+ }
17
+ /**
18
+ * Resolve the config file path: `$XDG_CONFIG_HOME/skit/config.json` when
19
+ * `XDG_CONFIG_HOME` is set (and non-empty), else `~/.config/skit/config.json`.
20
+ * @internal Exported for testing.
21
+ */
22
+ export declare function getSkitConfigPath(): string;
23
+ /** Read + parse the config file (no cache). @internal Exported for testing. */
24
+ export declare function readSkitConfig(): SkitConfig;
25
+ /** Load the installer config, cached for the process lifetime. */
26
+ export declare function loadSkitConfig(): SkitConfig;
27
+ /** Clear the module-level cache (test seam). @internal */
28
+ export declare function resetSkitConfigCache(): void;
29
+ /** Keys `skit config set|get|unset` manages (the fields of {@link SkitConfig}). */
30
+ export declare const SKIT_CONFIG_KEYS: readonly ["registryUrl", "gitlabHost", "gitlabGroup"];
31
+ export type SkitConfigKey = (typeof SKIT_CONFIG_KEYS)[number];
32
+ /** Validate a key for `skit config`. Throws on an unknown key. */
33
+ export declare function parseSkitConfigKey(key: string): SkitConfigKey;
34
+ /**
35
+ * Set (value string) or remove (value undefined) one key in the config file.
36
+ * Other keys in the file — including ones this version does not know — are
37
+ * kept as they are. A malformed file is NOT overwritten (throws instead).
38
+ * Resets the read cache.
39
+ */
40
+ export declare function updateSkitConfig(key: SkitConfigKey, value: string | undefined): string;
41
+ //# sourceMappingURL=skit-config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skit-config.d.ts","sourceRoot":"","sources":["../../src/utils/skit-config.ts"],"names":[],"mappings":"AAyBA,iFAAiF;AACjF,MAAM,WAAW,UAAU;IACzB,mEAAmE;IACnE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAID;;;;GAIG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,CAI1C;AAED,+EAA+E;AAC/E,wBAAgB,cAAc,IAAI,UAAU,CA4B3C;AAED,kEAAkE;AAClE,wBAAgB,cAAc,IAAI,UAAU,CAI3C;AAED,0DAA0D;AAC1D,wBAAgB,oBAAoB,IAAI,IAAI,CAE3C;AAED,mFAAmF;AACnF,eAAO,MAAM,gBAAgB,uDAAwD,CAAC;AACtF,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9D,kEAAkE;AAClE,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAG7D;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAwBtF"}
@@ -1,4 +1,9 @@
1
1
  import type { SkitManifest } from '../types/skit.js';
2
+ /**
3
+ * Validate that the prompt install path is a valid scoped directory.
4
+ * Returns null if valid, or an error message string if invalid.
5
+ */
6
+ export declare function validatePromptInstallPath(manifest: SkitManifest): string | null;
2
7
  /**
3
8
  * Parse skit.json from a staging directory
4
9
  */
@@ -1 +1 @@
1
- {"version":3,"file":"skit-parser.d.ts","sourceRoot":"","sources":["../../src/utils/skit-parser.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD;;GAEG;AACH,wBAAsB,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CA+BjF;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,YAAY,GAAG,MAAM,CAU9D"}
1
+ {"version":3,"file":"skit-parser.d.ts","sourceRoot":"","sources":["../../src/utils/skit-parser.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAYrD;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,YAAY,GAAG,MAAM,GAAG,IAAI,CAgC/E;AAED;;GAEG;AACH,wBAAsB,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CA+BjF;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,YAAY,GAAG,MAAM,CAU9D"}
@@ -0,0 +1,70 @@
1
+ /**
2
+ * A throwaway .npmrc that routes one or more npm scopes to a given registry
3
+ * (typically the registry-proxy) for an ANONYMOUS read — no auth token is
4
+ * written. Callers point npm at it via `NPM_CONFIG_USERCONFIG` for a single
5
+ * install, then call `cleanup()`.
6
+ *
7
+ * This replicates what glpkg does internally (scope -> registry with no auth
8
+ * line when no token is present) WITHOUT requiring the glpkg binary.
9
+ */
10
+ export interface TempNpmrc {
11
+ /** Absolute path to the generated .npmrc file. */
12
+ path: string;
13
+ /** Remove the temp directory. Safe to call more than once. */
14
+ cleanup: () => void;
15
+ }
16
+ /**
17
+ * Build the .npmrc body mapping each scope to `registryUrl` (no auth line).
18
+ * Scopes are normalized to start with '@' and de-duplicated. Exported for tests.
19
+ *
20
+ * `overrides` pins specific scopes to a different registry (e.g. an npmjs-native
21
+ * scope routed to public npmjs instead of the proxy). Override lines are emitted
22
+ * first and win over the default `registryUrl` for the same scope.
23
+ *
24
+ * @example
25
+ * buildScopedNpmrcContent(['@ist', 'microwiseai'], 'https://proxy/')
26
+ * // => "@ist:registry=https://proxy/\n@microwiseai:registry=https://proxy/\n"
27
+ * @example
28
+ * buildScopedNpmrcContent(['@ist'], 'https://proxy/', { '@glpkg': 'https://registry.npmjs.org/' })
29
+ * // => "@glpkg:registry=https://registry.npmjs.org/\n@ist:registry=https://proxy/\n"
30
+ */
31
+ export declare function buildScopedNpmrcContent(scopes: string[], registryUrl: string, overrides?: Record<string, string>): string;
32
+ /**
33
+ * Write a temporary scoped .npmrc under the OS temp dir and return its path plus
34
+ * a cleanup handle. `overrides` pins specific scopes to a different registry
35
+ * (see buildScopedNpmrcContent). `extraLines` are appended verbatim — callers
36
+ * use it ONLY for env-reference auth lines (`//host/:_authToken=${VAR}`, see
37
+ * utils/npm-auth.ts), so no token value is ever written. With no extra lines
38
+ * the file is anonymous (unchanged behavior). The file is created 0600.
39
+ */
40
+ export declare function writeScopedNpmrc(scopes: string[], registryUrl: string, overrides?: Record<string, string>, extraLines?: string[]): TempNpmrc;
41
+ /** One GitLab-direct scope → its group registry base URL. */
42
+ export interface GitlabScopeEntry {
43
+ /** npm scope, e.g. '@ist' (normalized to start with '@'). */
44
+ scope: string;
45
+ /** GitLab group npm registry base URL for this scope (from manifest registry). */
46
+ registryUrl: string;
47
+ }
48
+ /**
49
+ * Convert a registry base URL to its npm auth-key prefix: npm keys `_authToken`
50
+ * lines by the scheme-less `//host/path/` form. e.g.
51
+ * `https://gitlab.com/api/v4/groups/9/-/packages/npm/`
52
+ * -> `//gitlab.com/api/v4/groups/9/-/packages/npm/`
53
+ * A trailing slash is preserved (npm matches the registry path exactly).
54
+ */
55
+ export declare function npmrcAuthKey(registryUrl: string): string;
56
+ /**
57
+ * Build a GitLab-direct .npmrc body: per-scope `@scope:registry=<url>` lines plus,
58
+ * when `token` is non-null, one `//<host/path>/:_authToken=<token>` line per
59
+ * DISTINCT registry base. When `token` is null the body carries NO auth line —
60
+ * an anonymous read, so a PUBLIC package still installs token-free (the no-token
61
+ * public invariant is preserved for the gitlab origin too). Exported for tests.
62
+ */
63
+ export declare function buildGitlabNpmrcContent(entries: GitlabScopeEntry[], token: string | null): string;
64
+ /**
65
+ * Write a temporary GitLab-direct scoped .npmrc (see buildGitlabNpmrcContent) and
66
+ * return its path + cleanup handle. Anonymous-tolerant: pass `token: null` for a
67
+ * token-free (public) install, or a PAT to authenticate a private read.
68
+ */
69
+ export declare function writeGitlabScopedNpmrc(entries: GitlabScopeEntry[], token: string | null): TempNpmrc;
70
+ //# sourceMappingURL=temp-npmrc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"temp-npmrc.d.ts","sourceRoot":"","sources":["../../src/utils/temp-npmrc.ts"],"names":[],"mappings":"AAIA;;;;;;;;GAQG;AACH,MAAM,WAAW,SAAS;IACxB,kDAAkD;IAClD,IAAI,EAAE,MAAM,CAAC;IACb,8DAA8D;IAC9D,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,MAAM,EAAE,EAChB,WAAW,EAAE,MAAM,EACnB,SAAS,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GACrC,MAAM,CAaR;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,MAAM,EAAE,EAChB,WAAW,EAAE,MAAM,EACnB,SAAS,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,EACtC,UAAU,GAAE,MAAM,EAAO,GACxB,SAAS,CAiBX;AAED,6DAA6D;AAC7D,MAAM,WAAW,gBAAgB;IAC/B,6DAA6D;IAC7D,KAAK,EAAE,MAAM,CAAC;IACd,kFAAkF;IAClF,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAExD;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,gBAAgB,EAAE,EAC3B,KAAK,EAAE,MAAM,GAAG,IAAI,GACnB,MAAM,CAmBR;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,gBAAgB,EAAE,EAC3B,KAAK,EAAE,MAAM,GAAG,IAAI,GACnB,SAAS,CAcX"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microwiseai/skit",
3
- "version": "0.1.19",
3
+ "version": "0.1.45",
4
4
  "description": "CLI and library for installing skit packages to correct component locations",
5
5
  "type": "module",
6
6
  "main": "./dist/lib.js",
@@ -16,14 +16,19 @@
16
16
  }
17
17
  },
18
18
  "bin": {
19
- "skit": "./dist/index.js"
19
+ "skit": "dist/index.js"
20
20
  },
21
21
  "scripts": {
22
- "build": "tsc",
23
- "dev": "tsc --watch",
22
+ "build": "node scripts/build.mjs",
23
+ "typecheck": "tsc --noEmit",
24
+ "dev": "node scripts/build.mjs",
24
25
  "test": "vitest",
25
26
  "test:run": "vitest run",
26
- "prepublishOnly": "npm run build"
27
+ "test:e2e:network": "SKIT_E2E_NETWORK=1 vitest run src/__tests__/version-resolve.test.ts",
28
+ "prepublishOnly": "npm run build",
29
+ "publish:glpkg": "glpkg publish",
30
+ "publish:npm": "node scripts/publish-npm.mjs",
31
+ "publish:all": "npm run publish:glpkg && npm run publish:npm"
27
32
  },
28
33
  "files": [
29
34
  "dist"
@@ -37,18 +42,43 @@
37
42
  ],
38
43
  "author": "Microature",
39
44
  "license": "MIT",
40
- "dependencies": {
41
- "@ist/registry-config": "^0.1.1",
42
- "chalk": "^5.3.0",
43
- "commander": "^12.1.0",
44
- "tar": "^7.5.12"
45
+ "comment:dependencies": "Runtime deps are esbuild-inlined into dist/ (see scripts/build.mjs); the published package has ZERO runtime dependencies so it installs from ANY registry (npmjs included) with no @microwiseai/@glpkg auth. The former runtime deps (@glpkg/cli, @microwiseai/distkit(-schema), chalk, commander, semver, tar) live under devDependencies because they are only needed at build time to bundle.",
46
+ "dependencies": {},
47
+ "comment:peerDependencies": "distkit(-schema) are OPTIONAL peers (peerDependenciesMeta.optional): they are NOT on npmjs, so making them hard deps would break a public install. Optional keeps npmjs CLI installs clean (npm never tries to fetch them) while letting a GitLab-registry LIB consumer converge on the SAME distkit the bundle was built against (no directive-shape skew). Peers are not installed/bundled — bundling uses the devDependencies copy via esbuild — so the ZERO-runtime-deps invariant is unaffected.",
48
+ "peerDependencies": {
49
+ "@microwiseai/distkit": "0.7.0",
50
+ "@microwiseai/distkit-schema": "0.5.2"
51
+ },
52
+ "peerDependenciesMeta": {
53
+ "@microwiseai/distkit": {
54
+ "optional": true
55
+ },
56
+ "@microwiseai/distkit-schema": {
57
+ "optional": true
58
+ }
45
59
  },
46
60
  "devDependencies": {
61
+ "@glpkg/cli": "0.16.1",
62
+ "@microwiseai/distkit": "0.7.0",
63
+ "@microwiseai/distkit-schema": "0.5.2",
47
64
  "@types/node": "^20.11.0",
65
+ "@types/semver": "^7.5.0",
66
+ "chalk": "^5.3.0",
67
+ "commander": "^12.1.0",
68
+ "esbuild": "^0.27.2",
69
+ "semver": "^7.8.0",
70
+ "tar": "^7.5.12",
48
71
  "typescript": "^5.7.3",
49
72
  "vitest": "^3.0.4"
50
73
  },
51
74
  "engines": {
52
75
  "node": ">=18.0.0"
76
+ },
77
+ "glpkg": {
78
+ "group": "microwiseai"
79
+ },
80
+ "repository": {
81
+ "type": "git",
82
+ "url": "git+https://gitlab.com/microwiseai/ist.skit.skit-cli.git"
53
83
  }
54
84
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microwiseai/snapshot",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
4
4
  "description": "CLI for installing IST Snapshot packages",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -52,7 +52,7 @@
52
52
  "dependencies": {
53
53
  "@microwiseai/import-telemetry": "^0.1.0",
54
54
  "@microwiseai/license": "^0.1.4",
55
- "@microwiseai/skit": "^0.1.19",
55
+ "@microwiseai/skit": "^0.1.45",
56
56
  "@microwiseai/snapshot-dedup": "0.2.0",
57
57
  "@microwiseai/snapshot-downgrade-guard": "0.1.0",
58
58
  "@microwiseai/snapshot-parallel": "^0.1.0",
@@ -1,15 +0,0 @@
1
- The ISC License
2
-
3
- Copyright (c) Isaac Z. Schlueter and Contributors
4
-
5
- Permission to use, copy, modify, and/or distribute this software for any
6
- purpose with or without fee is hereby granted, provided that the above
7
- copyright notice and this permission notice appear in all copies.
8
-
9
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10
- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11
- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12
- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13
- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14
- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
15
- IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -1,71 +0,0 @@
1
- # fs-minipass
2
-
3
- Filesystem streams based on [minipass](http://npm.im/minipass).
4
-
5
- 4 classes are exported:
6
-
7
- - ReadStream
8
- - ReadStreamSync
9
- - WriteStream
10
- - WriteStreamSync
11
-
12
- When using `ReadStreamSync`, all of the data is made available
13
- immediately upon consuming the stream. Nothing is buffered in memory
14
- when the stream is constructed. If the stream is piped to a writer,
15
- then it will synchronously `read()` and emit data into the writer as
16
- fast as the writer can consume it. (That is, it will respect
17
- backpressure.) If you call `stream.read()` then it will read the
18
- entire file and return the contents.
19
-
20
- When using `WriteStreamSync`, every write is flushed to the file
21
- synchronously. If your writes all come in a single tick, then it'll
22
- write it all out in a single tick. It's as synchronous as you are.
23
-
24
- The async versions work much like their node builtin counterparts,
25
- with the exception of introducing significantly less Stream machinery
26
- overhead.
27
-
28
- ## USAGE
29
-
30
- It's just streams, you pipe them or read() them or write() to them.
31
-
32
- ```js
33
- import { ReadStream, WriteStream } from 'fs-minipass'
34
- // or: const { ReadStream, WriteStream } = require('fs-minipass')
35
- const readStream = new ReadStream('file.txt')
36
- const writeStream = new WriteStream('output.txt')
37
- writeStream.write('some file header or whatever\n')
38
- readStream.pipe(writeStream)
39
- ```
40
-
41
- ## ReadStream(path, options)
42
-
43
- Path string is required, but somewhat irrelevant if an open file
44
- descriptor is passed in as an option.
45
-
46
- Options:
47
-
48
- - `fd` Pass in a numeric file descriptor, if the file is already open.
49
- - `readSize` The size of reads to do, defaults to 16MB
50
- - `size` The size of the file, if known. Prevents zero-byte read()
51
- call at the end.
52
- - `autoClose` Set to `false` to prevent the file descriptor from being
53
- closed when the file is done being read.
54
-
55
- ## WriteStream(path, options)
56
-
57
- Path string is required, but somewhat irrelevant if an open file
58
- descriptor is passed in as an option.
59
-
60
- Options:
61
-
62
- - `fd` Pass in a numeric file descriptor, if the file is already open.
63
- - `mode` The mode to create the file with. Defaults to `0o666`.
64
- - `start` The position in the file to start reading. If not
65
- specified, then the file will start writing at position zero, and be
66
- truncated by default.
67
- - `autoClose` Set to `false` to prevent the file descriptor from being
68
- closed when the stream is ended.
69
- - `flags` Flags to use when opening the file. Irrelevant if `fd` is
70
- passed in, since file won't be opened in that case. Defaults to
71
- `'a'` if a `pos` is specified, or `'w'` otherwise.
@@ -1,118 +0,0 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
- /// <reference types="node" />
4
- import EE from 'events';
5
- import { Minipass } from 'minipass';
6
- declare const _autoClose: unique symbol;
7
- declare const _close: unique symbol;
8
- declare const _ended: unique symbol;
9
- declare const _fd: unique symbol;
10
- declare const _finished: unique symbol;
11
- declare const _flags: unique symbol;
12
- declare const _flush: unique symbol;
13
- declare const _handleChunk: unique symbol;
14
- declare const _makeBuf: unique symbol;
15
- declare const _mode: unique symbol;
16
- declare const _needDrain: unique symbol;
17
- declare const _onerror: unique symbol;
18
- declare const _onopen: unique symbol;
19
- declare const _onread: unique symbol;
20
- declare const _onwrite: unique symbol;
21
- declare const _open: unique symbol;
22
- declare const _path: unique symbol;
23
- declare const _pos: unique symbol;
24
- declare const _queue: unique symbol;
25
- declare const _read: unique symbol;
26
- declare const _readSize: unique symbol;
27
- declare const _reading: unique symbol;
28
- declare const _remain: unique symbol;
29
- declare const _size: unique symbol;
30
- declare const _write: unique symbol;
31
- declare const _writing: unique symbol;
32
- declare const _defaultFlag: unique symbol;
33
- declare const _errored: unique symbol;
34
- export type ReadStreamOptions = Minipass.Options<Minipass.ContiguousData> & {
35
- fd?: number;
36
- readSize?: number;
37
- size?: number;
38
- autoClose?: boolean;
39
- };
40
- export type ReadStreamEvents = Minipass.Events<Minipass.ContiguousData> & {
41
- open: [fd: number];
42
- };
43
- export declare class ReadStream extends Minipass<Minipass.ContiguousData, Buffer, ReadStreamEvents> {
44
- [_errored]: boolean;
45
- [_fd]?: number;
46
- [_path]: string;
47
- [_readSize]: number;
48
- [_reading]: boolean;
49
- [_size]: number;
50
- [_remain]: number;
51
- [_autoClose]: boolean;
52
- constructor(path: string, opt: ReadStreamOptions);
53
- get fd(): number | undefined;
54
- get path(): string;
55
- write(): void;
56
- end(): void;
57
- [_open](): void;
58
- [_onopen](er?: NodeJS.ErrnoException | null, fd?: number): void;
59
- [_makeBuf](): Buffer;
60
- [_read](): void;
61
- [_onread](er?: NodeJS.ErrnoException | null, br?: number, buf?: Buffer): void;
62
- [_close](): void;
63
- [_onerror](er: NodeJS.ErrnoException): void;
64
- [_handleChunk](br: number, buf: Buffer): boolean;
65
- emit<Event extends keyof ReadStreamEvents>(ev: Event, ...args: ReadStreamEvents[Event]): boolean;
66
- }
67
- export declare class ReadStreamSync extends ReadStream {
68
- [_open](): void;
69
- [_read](): void;
70
- [_close](): void;
71
- }
72
- export type WriteStreamOptions = {
73
- fd?: number;
74
- autoClose?: boolean;
75
- mode?: number;
76
- captureRejections?: boolean;
77
- start?: number;
78
- flags?: string;
79
- };
80
- export declare class WriteStream extends EE {
81
- readable: false;
82
- writable: boolean;
83
- [_errored]: boolean;
84
- [_writing]: boolean;
85
- [_ended]: boolean;
86
- [_queue]: Buffer[];
87
- [_needDrain]: boolean;
88
- [_path]: string;
89
- [_mode]: number;
90
- [_autoClose]: boolean;
91
- [_fd]?: number;
92
- [_defaultFlag]: boolean;
93
- [_flags]: string;
94
- [_finished]: boolean;
95
- [_pos]?: number;
96
- constructor(path: string, opt: WriteStreamOptions);
97
- emit(ev: string, ...args: any[]): boolean;
98
- get fd(): number | undefined;
99
- get path(): string;
100
- [_onerror](er: NodeJS.ErrnoException): void;
101
- [_open](): void;
102
- [_onopen](er?: null | NodeJS.ErrnoException, fd?: number): void;
103
- end(buf: string, enc?: BufferEncoding): this;
104
- end(buf?: Buffer, enc?: undefined): this;
105
- write(buf: string, enc?: BufferEncoding): boolean;
106
- write(buf: Buffer, enc?: undefined): boolean;
107
- [_write](buf: Buffer): void;
108
- [_onwrite](er?: null | NodeJS.ErrnoException, bw?: number): void;
109
- [_flush](): void;
110
- [_close](): void;
111
- }
112
- export declare class WriteStreamSync extends WriteStream {
113
- [_open](): void;
114
- [_close](): void;
115
- [_write](buf: Buffer): void;
116
- }
117
- export {};
118
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,OAAO,EAAE,MAAM,QAAQ,CAAA;AAEvB,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAInC,QAAA,MAAM,UAAU,eAAuB,CAAA;AACvC,QAAA,MAAM,MAAM,eAAmB,CAAA;AAC/B,QAAA,MAAM,MAAM,eAAmB,CAAA;AAC/B,QAAA,MAAM,GAAG,eAAgB,CAAA;AACzB,QAAA,MAAM,SAAS,eAAsB,CAAA;AACrC,QAAA,MAAM,MAAM,eAAmB,CAAA;AAC/B,QAAA,MAAM,MAAM,eAAmB,CAAA;AAC/B,QAAA,MAAM,YAAY,eAAyB,CAAA;AAC3C,QAAA,MAAM,QAAQ,eAAqB,CAAA;AACnC,QAAA,MAAM,KAAK,eAAkB,CAAA;AAC7B,QAAA,MAAM,UAAU,eAAuB,CAAA;AACvC,QAAA,MAAM,QAAQ,eAAqB,CAAA;AACnC,QAAA,MAAM,OAAO,eAAoB,CAAA;AACjC,QAAA,MAAM,OAAO,eAAoB,CAAA;AACjC,QAAA,MAAM,QAAQ,eAAqB,CAAA;AACnC,QAAA,MAAM,KAAK,eAAkB,CAAA;AAC7B,QAAA,MAAM,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