@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":"prerequisites.js","sourceRoot":"","sources":["../../src/lib/prerequisites.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,IAAI,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAqBzC;;GAEG;AACH,SAAS,cAAc;IACrB,MAAM,EAAE,GAAG,QAAQ,EAAE,CAAC;IACtB,IAAI,EAAE,KAAK,QAAQ;QAAE,OAAO,YAAY,CAAC;IACzC,IAAI,EAAE,KAAK,OAAO,EAAE,CAAC;QACnB,oBAAoB;QACpB,IAAI,CAAC;YACH,QAAQ,CAAC,eAAe,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;YAC/C,OAAO,WAAW,CAAC;QACrB,CAAC;QAAC,MAAM,CAAC;YACP,IAAI,CAAC;gBACH,QAAQ,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;gBAC3C,OAAO,WAAW,CAAC;YACrB,CAAC;YAAC,MAAM,CAAC;gBACP,OAAO,eAAe,CAAC;YACzB,CAAC;QACH,CAAC;IACH,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED;;GAEG;AACH,SAAS,UAAU,CAAC,GAAW;IAC7B,IAAI,CAAC;QACH,QAAQ,CAAC,SAAS,GAAG,cAAc,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;QAC1D,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC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CAAC,IAAI;QACjB,WAAW,EAAE,MAAM,CAAC,WAAW;QAC/B,UAAU,EAAE,MAAM,CAAC,UAAU;QAC7B,SAAS,EAAE,MAAM,CAAC,KAAK,EAAE;QACzB,KAAK,EAAE,MAAM,CAAC,KAAK;QACnB,cAAc,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC,WAAW,CAAC,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC,WAAW,CAAC;KAC/E,CAAC,CAAC,CAAC;AACN,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,mBAAmB,CAAC,MAAmB;IACrD,IAAI,MAAM,CAAC,SAAS;QAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAC/C,IAAI,CAAC,MAAM,CAAC,cAAc;QAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,gCAAgC,GAAG,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC,EAAE,CAAC;IAEtH,IAAI,CAAC;QACH,QAAQ,CAAC,MAAM,CAAC,cAAc,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QACtD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAC3B,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,CAAC;IAChD,CAAC;AACH,CAAC"}
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Ask registry-proxy to rebuild its snapshot index right after a publish
3
+ * (POST {proxy}/snapshot-index/refresh {snapshot, version}), so a new public
4
+ * snapshot version is installable immediately instead of after the next
5
+ * 10-minute cron. Best effort: never throws; the cron remains the backstop.
6
+ *
7
+ * The endpoint needs no credentials: the proxy re-reads access-index.json from
8
+ * GitLab with its own token, so the request only names the version.
9
+ * Opt out with SNAPSHOT_PUBLISH_REFRESH=0.
10
+ */
11
+ export type IndexRefreshOutcome = {
12
+ kind: 'refreshed';
13
+ status: 'indexed' | 'already-indexed';
14
+ } | {
15
+ kind: 'not-indexed';
16
+ } | {
17
+ kind: 'unsupported';
18
+ } | {
19
+ kind: 'throttled';
20
+ } | {
21
+ kind: 'no-endpoint';
22
+ } | {
23
+ kind: 'skipped';
24
+ } | {
25
+ kind: 'error';
26
+ reason: string;
27
+ };
28
+ export interface IndexRefreshOptions {
29
+ proxyUrl: string;
30
+ fetchFn?: typeof fetch;
31
+ timeoutMs?: number;
32
+ env?: NodeJS.ProcessEnv;
33
+ }
34
+ export declare function requestProxyIndexRefresh(snapshot: string, version: string, opts: IndexRefreshOptions): Promise<IndexRefreshOutcome>;
35
+ /** One console line per outcome (no secrets involved). */
36
+ export declare function describeIndexRefresh(o: IndexRefreshOutcome, label: string): {
37
+ level: 'ok' | 'warn' | 'info';
38
+ text: string;
39
+ };
40
+ //# sourceMappingURL=proxy-index-refresh.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"proxy-index-refresh.d.ts","sourceRoot":"","sources":["../../src/lib/proxy-index-refresh.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,MAAM,MAAM,mBAAmB,GAC3B;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,MAAM,EAAE,SAAS,GAAG,iBAAiB,CAAA;CAAE,GAC5D;IAAE,IAAI,EAAE,aAAa,CAAA;CAAE,GACvB;IAAE,IAAI,EAAE,aAAa,CAAA;CAAE,GACvB;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE,GACrB;IAAE,IAAI,EAAE,aAAa,CAAA;CAAE,GACvB;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,GACnB;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtC,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,KAAK,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;CACzB;AAED,wBAAsB,wBAAwB,CAC5C,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,mBAAmB,GACxB,OAAO,CAAC,mBAAmB,CAAC,CA2B9B;AAED,0DAA0D;AAC1D,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,mBAAmB,EAAE,KAAK,EAAE,MAAM,GAAG;IAAE,KAAK,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAiB3H"}
@@ -0,0 +1,66 @@
1
+ /**
2
+ * Ask registry-proxy to rebuild its snapshot index right after a publish
3
+ * (POST {proxy}/snapshot-index/refresh {snapshot, version}), so a new public
4
+ * snapshot version is installable immediately instead of after the next
5
+ * 10-minute cron. Best effort: never throws; the cron remains the backstop.
6
+ *
7
+ * The endpoint needs no credentials: the proxy re-reads access-index.json from
8
+ * GitLab with its own token, so the request only names the version.
9
+ * Opt out with SNAPSHOT_PUBLISH_REFRESH=0.
10
+ */
11
+ export async function requestProxyIndexRefresh(snapshot, version, opts) {
12
+ const env = opts.env ?? process.env;
13
+ if ((env.SNAPSHOT_PUBLISH_REFRESH ?? '').trim() === '0')
14
+ return { kind: 'skipped' };
15
+ const fetchFn = opts.fetchFn ?? fetch;
16
+ const url = `${opts.proxyUrl.replace(/\/+$/, '')}/snapshot-index/refresh`;
17
+ try {
18
+ const res = await fetchFn(url, {
19
+ method: 'POST',
20
+ headers: { 'Content-Type': 'application/json' },
21
+ body: JSON.stringify({ snapshot, version }),
22
+ signal: AbortSignal.timeout(opts.timeoutMs ?? 30_000),
23
+ });
24
+ let status;
25
+ try {
26
+ status = (await res.json())?.status;
27
+ }
28
+ catch {
29
+ status = undefined;
30
+ }
31
+ if (status === 'indexed' || status === 'already-indexed')
32
+ return { kind: 'refreshed', status };
33
+ if (status === 'not-indexed')
34
+ return { kind: 'not-indexed' };
35
+ if (status === 'unsupported')
36
+ return { kind: 'unsupported' };
37
+ if (status === 'throttled')
38
+ return { kind: 'throttled' };
39
+ if (res.status === 404 || res.status === 405)
40
+ return { kind: 'no-endpoint' };
41
+ return { kind: 'error', reason: `HTTP ${res.status}` };
42
+ }
43
+ catch (error) {
44
+ return { kind: 'error', reason: error instanceof Error ? error.message : String(error) };
45
+ }
46
+ }
47
+ /** One console line per outcome (no secrets involved). */
48
+ export function describeIndexRefresh(o, label) {
49
+ switch (o.kind) {
50
+ case 'refreshed':
51
+ return { level: 'ok', text: `registry-proxy index refreshed for ${label} (${o.status}) — installable now` };
52
+ case 'not-indexed':
53
+ return { level: 'warn', text: `registry-proxy could not index ${label} yet (access-index not readable); the 10-min cron will retry` };
54
+ case 'unsupported':
55
+ return { level: 'warn', text: `${label}: snapshot not in the proxy's SUPPORTED_SNAPSHOTS — its access-index grants nothing` };
56
+ case 'throttled':
57
+ return { level: 'info', text: `registry-proxy refresh for ${label} already requested within the last minute` };
58
+ case 'no-endpoint':
59
+ return { level: 'info', text: `registry-proxy has no refresh endpoint yet; ${label} becomes installable after the next index rebuild (≤10 min)` };
60
+ case 'skipped':
61
+ return { level: 'info', text: 'registry-proxy index refresh skipped (SNAPSHOT_PUBLISH_REFRESH=0)' };
62
+ case 'error':
63
+ return { level: 'warn', text: `registry-proxy index refresh failed (${o.reason}); ${label} becomes installable after the next index rebuild (≤10 min)` };
64
+ }
65
+ }
66
+ //# sourceMappingURL=proxy-index-refresh.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"proxy-index-refresh.js","sourceRoot":"","sources":["../../src/lib/proxy-index-refresh.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAkBH,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAC5C,QAAgB,EAChB,OAAe,EACf,IAAyB;IAEzB,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;IACpC,IAAI,CAAC,G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KAAK,6DAA6D,EAAE,CAAC;IAC7J,CAAC;AACH,CAAC"}
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Temp npm USERCONFIG for registry-proxy installs (replaces ~/.npmrc writes).
3
+ *
4
+ * Before 0.9.1, `snapshot install` rewrote ~/.npmrc (proxy scope lines + an
5
+ * env-referenced auth line) and restored it afterwards. A crash, a kill -9 or a
6
+ * concurrent npm process could observe or keep the rewritten file.
7
+ *
8
+ * Now: the user's current userconfig is only READ. A temp copy (minus our scope
9
+ * and proxy-auth lines) plus the proxy lines is written to a private temp dir
10
+ * (dir 0700, file 0600), and NPM_CONFIG_USERCONFIG / npm_config_userconfig in
11
+ * process.env point at it, so every npm child (spawn/execSync inherit env) and
12
+ * skit read it. The auth line is an env REFERENCE (`${IST_SESSION_TOKEN}`),
13
+ * never a token value. cleanup() restores the previous env values and removes
14
+ * the temp dir; ~/.npmrc is never written.
15
+ */
16
+ /** Env keys this carrier sets (both spellings — npm reads either). */
17
+ export declare const USERCONFIG_ENV_KEYS: readonly ["NPM_CONFIG_USERCONFIG", "npm_config_userconfig"];
18
+ export interface ProxyUserconfigOptions {
19
+ /** Scopes routed to the proxy, e.g. ['@ist', '@microwiseai']. */
20
+ scopes: string[];
21
+ /** Registry-proxy base URL (e.g. https://registry-proxy.example.dev). */
22
+ proxyUrl: string;
23
+ /** Add `//<proxy>/:_authToken=${IST_SESSION_TOKEN}` (authenticated / grant mode). */
24
+ withAuth: boolean;
25
+ /** Env to read the prior userconfig from and to set (default process.env). */
26
+ env?: NodeJS.ProcessEnv;
27
+ /** Home dir for the default ~/.npmrc (default os.homedir()). */
28
+ home?: string;
29
+ }
30
+ export interface ProxyUserconfig {
31
+ /** Temp userconfig path. */
32
+ path: string;
33
+ /** Restore the previous env values and remove the temp dir. Idempotent, never throws. */
34
+ cleanup: () => void;
35
+ }
36
+ /** The userconfig npm would read right now: explicit env override, else ~/.npmrc. */
37
+ export declare function resolveCurrentUserconfigPath(env?: NodeJS.ProcessEnv, home?: string): string;
38
+ /**
39
+ * Prior userconfig lines (minus our scopes' registry lines and any line for the
40
+ * proxy host) + one `<scope>:registry=<proxy>/` per scope + optional auth line.
41
+ */
42
+ export declare function buildProxyUserconfigContent(existing: string | null, scopes: string[], proxyUrl: string, withAuth: boolean): string;
43
+ /** Write the temp userconfig and point the env at it. */
44
+ export declare function activateProxyUserconfig(opts: ProxyUserconfigOptions): ProxyUserconfig;
45
+ //# sourceMappingURL=proxy-userconfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"proxy-userconfig.d.ts","sourceRoot":"","sources":["../../src/lib/proxy-userconfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAOH,sEAAsE;AACtE,eAAO,MAAM,mBAAmB,6DAA8D,CAAC;AAE/F,MAAM,WAAW,sBAAsB;IACrC,iEAAiE;IACjE,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,yEAAyE;IACzE,QAAQ,EAAE,MAAM,CAAC;IACjB,qFAAqF;IACrF,QAAQ,EAAE,OAAO,CAAC;IAClB,8EAA8E;IAC9E,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IACxB,gEAAgE;IAChE,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,eAAe;IAC9B,4BAA4B;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,yFAAyF;IACzF,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,qFAAqF;AACrF,wBAAgB,4BAA4B,CAAC,GAAG,GAAE,MAAM,CAAC,UAAwB,EAAE,IAAI,GAAE,MAAkB,GAAG,MAAM,CAEnH;AAED;;;GAGG;AACH,wBAAgB,2BAA2B,CACzC,QAAQ,EAAE,MAAM,GAAG,IAAI,EACvB,MAAM,EAAE,MAAM,EAAE,EAChB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,OAAO,GAChB,MAAM,CAeR;AAED,yDAAyD;AACzD,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,sBAAsB,GAAG,eAAe,CAqCrF"}
@@ -0,0 +1,94 @@
1
+ /**
2
+ * Temp npm USERCONFIG for registry-proxy installs (replaces ~/.npmrc writes).
3
+ *
4
+ * Before 0.9.1, `snapshot install` rewrote ~/.npmrc (proxy scope lines + an
5
+ * env-referenced auth line) and restored it afterwards. A crash, a kill -9 or a
6
+ * concurrent npm process could observe or keep the rewritten file.
7
+ *
8
+ * Now: the user's current userconfig is only READ. A temp copy (minus our scope
9
+ * and proxy-auth lines) plus the proxy lines is written to a private temp dir
10
+ * (dir 0700, file 0600), and NPM_CONFIG_USERCONFIG / npm_config_userconfig in
11
+ * process.env point at it, so every npm child (spawn/execSync inherit env) and
12
+ * skit read it. The auth line is an env REFERENCE (`${IST_SESSION_TOKEN}`),
13
+ * never a token value. cleanup() restores the previous env values and removes
14
+ * the temp dir; ~/.npmrc is never written.
15
+ */
16
+ import { existsSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'fs';
17
+ import { homedir, tmpdir } from 'os';
18
+ import { join } from 'path';
19
+ import { SESSION_TOKEN_ENV, proxyAuthKey } from './proxy-auth-globalconfig.js';
20
+ /** Env keys this carrier sets (both spellings — npm reads either). */
21
+ export const USERCONFIG_ENV_KEYS = ['NPM_CONFIG_USERCONFIG', 'npm_config_userconfig'];
22
+ /** The userconfig npm would read right now: explicit env override, else ~/.npmrc. */
23
+ export function resolveCurrentUserconfigPath(env = process.env, home = homedir()) {
24
+ return env.NPM_CONFIG_USERCONFIG || env.npm_config_userconfig || join(home, '.npmrc');
25
+ }
26
+ /**
27
+ * Prior userconfig lines (minus our scopes' registry lines and any line for the
28
+ * proxy host) + one `<scope>:registry=<proxy>/` per scope + optional auth line.
29
+ */
30
+ export function buildProxyUserconfigContent(existing, scopes, proxyUrl, withAuth) {
31
+ const base = proxyUrl.trim().replace(/\/+$/, '');
32
+ const proxyHost = base.replace(/^https?:\/\//i, '');
33
+ const lines = [];
34
+ if (existing) {
35
+ for (const line of existing.split(/\r?\n/)) {
36
+ if (!line.trim())
37
+ continue;
38
+ if (scopes.some((s) => line.includes(`${s}:registry`)))
39
+ continue;
40
+ if (line.includes(proxyHost))
41
+ continue;
42
+ lines.push(line);
43
+ }
44
+ }
45
+ for (const scope of scopes)
46
+ lines.push(`${scope}:registry=${base}/`);
47
+ if (withAuth)
48
+ lines.push(`${proxyAuthKey(base)}:_authToken=\${${SESSION_TOKEN_ENV}}`);
49
+ return lines.join('\n') + '\n';
50
+ }
51
+ /** Write the temp userconfig and point the env at it. */
52
+ export function activateProxyUserconfig(opts) {
53
+ const env = opts.env ?? process.env;
54
+ const priorPath = resolveCurrentUserconfigPath(env, opts.home ?? homedir());
55
+ let existing = null;
56
+ try {
57
+ if (existsSync(priorPath))
58
+ existing = readFileSync(priorPath, 'utf-8');
59
+ }
60
+ catch {
61
+ existing = null;
62
+ }
63
+ const dir = mkdtempSync(join(tmpdir(), 'snapshot-npmrc-'));
64
+ const path = join(dir, 'npmrc');
65
+ writeFileSync(path, buildProxyUserconfigContent(existing, opts.scopes, opts.proxyUrl, opts.withAuth), {
66
+ encoding: 'utf-8',
67
+ mode: 0o600,
68
+ });
69
+ const previous = USERCONFIG_ENV_KEYS.map((k) => [k, env[k]]);
70
+ for (const k of USERCONFIG_ENV_KEYS)
71
+ env[k] = path;
72
+ let done = false;
73
+ return {
74
+ path,
75
+ cleanup: () => {
76
+ if (done)
77
+ return;
78
+ done = true;
79
+ for (const [k, v] of previous) {
80
+ if (v === undefined)
81
+ delete env[k];
82
+ else
83
+ env[k] = v;
84
+ }
85
+ try {
86
+ rmSync(dir, { recursive: true, force: true });
87
+ }
88
+ catch {
89
+ /* best effort */
90
+ }
91
+ },
92
+ };
93
+ }
94
+ //# sourceMappingURL=proxy-userconfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"proxy-userconfig.js","sourceRoot":"","sources":["../../src/lib/proxy-userconfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAA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CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAU,CAAC,CAAC;IACtE,KAAK,MAAM,CAAC,IAAI,mBAAmB;QAAE,GAAG,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;IAEnD,IAAI,IAAI,GAAG,KAAK,CAAC;IACjB,OAAO;QACL,IAAI;QACJ,OAAO,EAAE,GAAG,EAAE;YACZ,IAAI,IAAI;gBAAE,OAAO;YACjB,IAAI,GAAG,IAAI,CAAC;YACZ,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,QAAQ,EAAE,CAAC;gBAC9B,IAAI,CAAC,KAAK,SAAS;oBAAE,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC;;oBAC9B,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;YAClB,CAAC;YACD,IAAI,CAAC;gBACH,MAAM,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;YAChD,CAAC;YAAC,MAAM,CAAC;gBACP,iBAAiB;YACnB,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 주식회사 마이크로아틱 / Microartic Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,119 +1,152 @@
1
- # @ist/skit
1
+ # @microwiseai/skit
2
2
 
3
- Session Kit (skit) 패키지를 관리하기 위한 CLI 도구입니다. Claude Code 세션에서 사용할 profiles, prompts, packs 등을 설치하고 관리합니다.
3
+ skit (Session Kit) is a vendor-neutral format and package manager for session kits: it defines the profiles, prompts, permission packs, state, hooks and CLI tools an AI agent session needs for a role, and installs and distributes them as one kit. Adapters apply kits to each agent, so any vendor can use them by providing an adapter; IST is one such adapter, connecting kits to Claude Code, Codex, Cursor and more.
4
4
 
5
- ## 설치
5
+ Canonical definition: [docs/DEFINITION.md](docs/DEFINITION.md).
6
+
7
+ > The CLI command is `skit`; the npm package name is `@microwiseai/skit`.
8
+
9
+ ## Installation
6
10
 
7
11
  ```bash
8
- npm install -g @ist/skit
12
+ npm install -g @microwiseai/skit
9
13
  ```
10
14
 
11
- **요구 사항**: Node.js >= 18.0.0
15
+ **Requirements**: Node.js >= 18.0.0
16
+
17
+ ## Usage
18
+
19
+ Run `skit --help` to see the full command list.
12
20
 
13
- ## 사용법
21
+ | Command | Alias | Description |
22
+ |---------|-------|-------------|
23
+ | `skit install <pkg>` | `i` | Install a skit package |
24
+ | `skit uninstall <pkg>` | `rm` | Uninstall a skit package |
25
+ | `skit list` | `ls` | List installed skit packages |
26
+ | `skit browse <org>` | | Browse an organization's skit packages |
27
+ | `skit info` | | Show info from the current skit.json |
28
+ | `skit pack` | | Pack the current directory into a .tgz |
29
+ | `skit publish` | `p` | Publish to the GitLab registry |
30
+ | `skit prompt` | | Kit-aware prompt management |
31
+ | `skit orphans` | | Find prompts/profiles not managed by any skit |
32
+ | `skit gitignore` | | Create/update a skit-default .gitignore |
14
33
 
15
- ### 패키지 설치
34
+ ### Installing packages
16
35
 
17
36
  ```bash
18
- # GitLab 레지스트리에서 설치
37
+ # Install from the GitLab registry
19
38
  skit install @ist/qa-kit
20
39
 
21
- # 특정 버전 설치
40
+ # Install a specific version
22
41
  skit install @ist/qa-kit@1.0.0
23
42
 
24
- # 로컬 .tgz 파일에서 설치
43
+ # Install from a local .tgz file
25
44
  skit install ./my-kit-1.0.0.tgz
26
45
 
27
- # 로컬 디렉토리에서 설치 (개발용)
46
+ # Install from a local directory (development)
28
47
  skit install .
29
48
 
30
- # 상세 출력
49
+ # Verbose output / dry run
31
50
  skit install @ist/qa-kit -v
32
-
33
- # 드라이 런 (실제 설치 없이 확인)
34
51
  skit install @ist/qa-kit --dry-run
35
52
  ```
36
53
 
37
- ### 패키지 삭제
54
+ ### Global dependencies (`--deps`)
38
55
 
39
- ```bash
40
- skit uninstall @ist/qa-kit
41
- # 또는
42
- skit rm @ist/qa-kit
43
- ```
56
+ A kit's `dependencies.npm` and `components.clis` are installed globally. Before
57
+ installing, `skit install` prints a plan, and `--deps` controls what it does:
44
58
 
45
- ### 설치된 패키지 목록
59
+ | Mode | Behavior |
60
+ |------|----------|
61
+ | `satisfied` (default) | Keep an installed global version that satisfies the declared range (semver, prereleases count). Install deps that are missing or out of range. |
62
+ | `missing` | Keep **any** installed version, even a prerelease or one outside the range. Install only absent deps (useful on a dev machine). |
63
+ | `all` | Reinstall every dep regardless of what is installed (the behavior up to 0.1.43). |
64
+ | `none` | Install no global deps; only profiles, prompts, states, packs and hooks are installed. Same as `--no-deps`. |
46
65
 
47
66
  ```bash
48
- skit list
49
- # 또는
50
- skit ls
51
-
52
- # JSON 형식 출력
53
- skit list --json
67
+ skit install @ist/tda-kit # default: --deps satisfied
68
+ skit install @ist/tda-kit --deps missing # keep my dev builds
69
+ skit install @ist/tda-kit --skip-dep @ist/sesh # never touch sesh (repeatable; CLI names work too)
70
+ skit install @ist/tda-kit --no-deps # components only
71
+ skit install @ist/tda-kit --dry-run # components + dep plan, nothing installed
54
72
  ```
55
73
 
56
- ### 패키지 탐색
57
-
58
- ```bash
59
- # 특정 조직의 skit 패키지 목록 조회
60
- skit browse @ist
74
+ Example plan:
61
75
 
62
- # JSON 형식 출력
63
- skit browse @ist --json
76
+ ```
77
+ global deps (mode: satisfied):
78
+ = @ist/tda 0.1.8 ^0.1.8 keep (satisfies) (newer in range: 0.1.9 — use --deps all)
79
+ ~ @ist/sesh 0.9.0-dev.1790427711543 ^0.8.2 CHANGE 0.9.0-dev.1790427711543 → ^0.8.2 ⚠ downgrade, prerelease → stable
80
+ + @ist/loggable-cli (absent) ^0.1.17 install
81
+ - @ist/messenger-cli 0.4.0 ^0.5.0 skip (--skip-dep)
82
+ ⚠ @ist/sesh: 0.9.0-dev.1790427711543 would be replaced by ^0.8.2 — use --deps missing or --skip-dep @ist/sesh to keep it
64
83
  ```
65
84
 
66
- ### 패키지 정보
85
+ - To detect installed versions, skit runs `npm root -g` once and reads `<root>/<name>/package.json`. It does not spawn npm once per dependency.
86
+ - When a change is a **downgrade** or replaces a **prerelease with a stable** version, an interactive terminal asks y/N for each such dep. The default N keeps the installed version. Non-TTY runs and `--yes` only print the warning.
87
+ - `--dry-run` fetches a remote kit into a temporary staging directory to read its `skit.json`. Dry-run is the only time skit queries the registry for the `newer in range` hint.
67
88
 
68
- ```bash
69
- # 현재 디렉토리의 skit.json 정보 표시
70
- skit info
89
+ ### Uninstall / list / browse / info
71
90
 
72
- # JSON 형식 출력
91
+ ```bash
92
+ skit uninstall @ist/qa-kit # or: skit rm @ist/qa-kit
93
+ skit list # or: skit ls
94
+ skit list --json
95
+ skit browse @ist # list an org's skit packages
96
+ skit browse @ist --json
97
+ skit info # show the current skit.json info
73
98
  skit info --json
74
99
  ```
75
100
 
76
- ### 패키지 패킹
77
-
78
- ```bash
79
- # 현재 디렉토리를 .tgz 파일로 패킹
80
- skit pack
101
+ ### Prompt management
81
102
 
82
- # 출력 디렉토리 지정
83
- skit pack -o ./dist
103
+ Browse and print the prompts provided by installed kits directly with `skit` (no need to go through `sesh`).
84
104
 
85
- # 포함될 파일 확인 (드라이 런)
86
- skit pack --dry-run
105
+ ```bash
106
+ # List prompts (grouped by kit)
107
+ skit prompt list # or: skit prompt ls
108
+ skit prompt list --json
109
+ skit prompt list -a # all scopes (global + profile) + unmanaged
110
+ skit prompt list -p <profile> # a specific profile scope
111
+
112
+ # Print prompt content
113
+ skit prompt show <name>
114
+ skit prompt show <name> --raw # raw content without the kit header
115
+ skit prompt show <name> -p <profile> # from a specific profile scope
87
116
  ```
88
117
 
89
- ### 패키지 배포
118
+ ### Orphans (cleaning up unmanaged files)
90
119
 
91
120
  ```bash
92
- # GitLab에 배포
93
- skit publish
94
- # 또는
95
- skit p
121
+ skit orphans # find unmanaged prompts/profiles
122
+ skit orphans --json
123
+ skit orphans --dry-run # show what would be deleted
124
+ skit orphans -i # interactively select files to delete
125
+ skit orphans --clean --force # delete all without confirmation
126
+ ```
96
127
 
97
- # 버전 범프와 함께 배포
98
- skit publish --bump patch # 0.1.0 → 0.1.1
99
- skit publish --bump minor # 0.1.0 → 0.2.0
100
- skit publish --bump major # 0.1.0 → 1.0.0
128
+ ### Pack / publish
101
129
 
102
- # 드라이 런
130
+ ```bash
131
+ skit pack # pack into a .tgz
132
+ skit pack -o ./dist # set output directory
133
+ skit pack --dry-run # preview included files
134
+
135
+ skit publish # publish to GitLab (alias: skit p)
136
+ skit publish --bump patch # 0.1.0 -> 0.1.1
137
+ skit publish --bump minor # 0.1.0 -> 0.2.0
138
+ skit publish --bump major # 0.1.0 -> 1.0.0
103
139
  skit publish --dry-run
104
140
  ```
105
141
 
106
- ### .gitignore 생성
142
+ ### Generating .gitignore
107
143
 
108
144
  ```bash
109
- # skit 기본 .gitignore 생성/업데이트
110
- skit gitignore
111
-
112
- # 기존 파일 덮어쓰기
113
- skit gitignore -f
145
+ skit gitignore # create/update a skit-default .gitignore
146
+ skit gitignore -f # overwrite the existing file
114
147
  ```
115
148
 
116
- ## skit.json 구조
149
+ ## skit.json structure
117
150
 
118
151
  ```json
119
152
  {
@@ -127,7 +160,7 @@ skit gitignore -f
127
160
  "cli": [
128
161
  {
129
162
  "name": "git-nested",
130
- "install": "gitlab-install add @microature/git-nested -g",
163
+ "install": "glpkg install @microature/git-nested -g",
131
164
  "check": "git-nested --version",
132
165
  "optional": true
133
166
  }
@@ -159,46 +192,57 @@ skit gitignore -f
159
192
  }
160
193
  ```
161
194
 
162
- ### dependencies 필드
195
+ ### `dependencies` field
163
196
 
164
- | 필드 | 설명 |
165
- |------|------|
166
- | `cli` | CLI 도구 의존성 (gitlab-install, npm, pip 등 어떤 패키지 매니저든 가능) |
167
- | `cli[].name` | 도구 이름 (표시용) |
168
- | `cli[].install` | 설치 명령어 |
169
- | `cli[].check` | (선택) 설치 확인 명령어 - 성공하면 설치 스킵 |
170
- | `cli[].optional` | (선택) true면 설치 실패해도 계속 진행 |
171
- | `skit` | 다른 skit 패키지 의존성
172
- ```
197
+ | Field | Description |
198
+ |-------|-------------|
199
+ | `cli` | CLI tool dependencies (any package manager: glpkg, npm, pip, etc.) |
200
+ | `cli[].name` | Tool name (for display) |
201
+ | `cli[].install` | Install command |
202
+ | `cli[].check` | (optional) Check command — skips install if it succeeds |
203
+ | `cli[].optional` | (optional) If true, continue even if install fails |
204
+ | `skit` | Other skit package dependencies |
173
205
 
174
- ## 기본 설치 경로
206
+ ## Default install paths
175
207
 
176
- | 컴포넌트 타입 | 기본 경로 |
177
- |--------------|----------|
208
+ | Component type | Default path |
209
+ |----------------|--------------|
178
210
  | profiles | `~/.ist/profiles/` |
179
211
  | prompts | `~/.ist/prompts/global/` |
180
212
  | states | `~/.ist/state/profiles/` |
181
- | packs | `~/.sesh/permission-packs.json` (병합) |
213
+ | packs | `~/.sesh/permission-packs.json` (merged) |
182
214
 
183
- ## 개발
215
+ ## Using as a library
184
216
 
185
- ```bash
186
- # 의존성 설치
187
- npm install
217
+ ```ts
218
+ import { /* ... */ } from "@microwiseai/skit/lib";
219
+ ```
188
220
 
189
- # TypeScript 컴파일
190
- npm run build
221
+ ```ts
222
+ import { installSkit } from "@microwiseai/skit/lib";
191
223
 
192
- # 개발 모드 (watch)
193
- npm run dev
224
+ const result = await installSkit("@ist/tda-kit", {
225
+ deps: "missing", // 'satisfied' (default) | 'missing' | 'all' | 'none'
226
+ skipDeps: ["@ist/sesh"],
227
+ // skipDependencies: true // deprecated alias for deps: 'none'
228
+ confirmChange: (entry) => false, // optional: decline risky (downgrade / prerelease→stable) changes
229
+ });
230
+ result.depPlan; // [{ name, range, installed?, action: 'keep'|'install'|'change'|'skip', reason, kind, warnings? }]
231
+ ```
232
+
233
+ - `main`: `./dist/lib.js`
234
+ - `exports`: `.` (CLI entry), `./lib` (library entry)
194
235
 
195
- # 테스트 실행
196
- npm test
236
+ ## Development
197
237
 
198
- # 테스트 단일 실행
199
- npm run test:run
238
+ ```bash
239
+ npm install # install dependencies
240
+ npm run build # compile TypeScript
241
+ npm run dev # watch mode
242
+ npm test # run tests (vitest)
243
+ npm run test:run # run tests once
200
244
  ```
201
245
 
202
- ## 라이선스
246
+ ## License
203
247
 
204
248
  MIT
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=hermetic-config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hermetic-config.d.ts","sourceRoot":"","sources":["../../../src/__tests__/setup/hermetic-config.ts"],"names":[],"mappings":""}