@microwiseai/snapshot 0.3.32 → 0.3.37

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 (480) hide show
  1. package/dist/commands/install.d.ts +1 -0
  2. package/dist/commands/install.d.ts.map +1 -1
  3. package/dist/commands/install.js +101 -12
  4. package/dist/commands/install.js.map +1 -1
  5. package/dist/lib/access-sync.d.ts.map +1 -1
  6. package/dist/lib/access-sync.js +2 -3
  7. package/dist/lib/access-sync.js.map +1 -1
  8. package/dist/lib/config.d.ts +11 -7
  9. package/dist/lib/config.d.ts.map +1 -1
  10. package/dist/lib/config.js +22 -13
  11. package/dist/lib/config.js.map +1 -1
  12. package/dist/lib/config.test.d.ts +2 -0
  13. package/dist/lib/config.test.d.ts.map +1 -0
  14. package/dist/lib/config.test.js +186 -0
  15. package/dist/lib/config.test.js.map +1 -0
  16. package/dist/lib/gitlab.d.ts.map +1 -1
  17. package/dist/lib/gitlab.js +5 -13
  18. package/dist/lib/gitlab.js.map +1 -1
  19. package/dist/lib/package-resolver.js +2 -2
  20. package/dist/lib/package-resolver.js.map +1 -1
  21. package/dist/lib/session.d.ts +37 -0
  22. package/dist/lib/session.d.ts.map +1 -0
  23. package/dist/lib/session.js +77 -0
  24. package/dist/lib/session.js.map +1 -0
  25. package/dist/lib/skit-adapter.d.ts +5 -5
  26. package/dist/lib/skit-adapter.d.ts.map +1 -1
  27. package/dist/lib/skit-adapter.js +58 -21
  28. package/dist/lib/skit-adapter.js.map +1 -1
  29. package/dist/lib/transitive-resolver.d.ts +4 -1
  30. package/dist/lib/transitive-resolver.d.ts.map +1 -1
  31. package/dist/lib/transitive-resolver.js +13 -8
  32. package/dist/lib/transitive-resolver.js.map +1 -1
  33. package/dist/lib/transitive-resolver.test.d.ts +2 -0
  34. package/dist/lib/transitive-resolver.test.d.ts.map +1 -0
  35. package/dist/lib/transitive-resolver.test.js +279 -0
  36. package/dist/lib/transitive-resolver.test.js.map +1 -0
  37. package/node_modules/@isaacs/fs-minipass/LICENSE +15 -0
  38. package/node_modules/@isaacs/fs-minipass/README.md +71 -0
  39. package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts +118 -0
  40. package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts.map +1 -0
  41. package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js +430 -0
  42. package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js.map +1 -0
  43. package/node_modules/@isaacs/fs-minipass/dist/commonjs/package.json +3 -0
  44. package/node_modules/@isaacs/fs-minipass/dist/esm/index.d.ts +118 -0
  45. package/node_modules/@isaacs/fs-minipass/dist/esm/index.d.ts.map +1 -0
  46. package/node_modules/@isaacs/fs-minipass/dist/esm/index.js +420 -0
  47. package/node_modules/@isaacs/fs-minipass/dist/esm/index.js.map +1 -0
  48. package/node_modules/@isaacs/fs-minipass/dist/esm/package.json +3 -0
  49. package/node_modules/@isaacs/fs-minipass/package.json +72 -0
  50. package/node_modules/@ist/registry-config/dist/index.d.ts +3 -0
  51. package/node_modules/@ist/registry-config/dist/index.js +3 -0
  52. package/node_modules/@ist/registry-config/dist/registry-url.d.ts +1 -0
  53. package/node_modules/@ist/registry-config/dist/registry-url.js +1 -0
  54. package/node_modules/@ist/registry-config/dist/scope-mapping.d.ts +6 -0
  55. package/node_modules/@ist/registry-config/dist/scope-mapping.js +7 -0
  56. package/node_modules/@ist/registry-config/dist/types.d.ts +4 -0
  57. package/node_modules/@ist/registry-config/dist/types.js +1 -0
  58. package/node_modules/@ist/registry-config/package.json +32 -0
  59. package/node_modules/@ist/skit/README.md +204 -0
  60. package/node_modules/@ist/skit/dist/commands/browse.d.ts +9 -0
  61. package/node_modules/@ist/skit/dist/commands/browse.d.ts.map +1 -0
  62. package/node_modules/@ist/skit/dist/commands/browse.js +127 -0
  63. package/node_modules/@ist/skit/dist/commands/browse.js.map +1 -0
  64. package/node_modules/@ist/skit/dist/commands/gitignore.d.ts +9 -0
  65. package/node_modules/@ist/skit/dist/commands/gitignore.d.ts.map +1 -0
  66. package/node_modules/@ist/skit/dist/commands/gitignore.js +59 -0
  67. package/node_modules/@ist/skit/dist/commands/gitignore.js.map +1 -0
  68. package/node_modules/@ist/skit/dist/commands/info.d.ts +9 -0
  69. package/node_modules/@ist/skit/dist/commands/info.d.ts.map +1 -0
  70. package/node_modules/@ist/skit/dist/commands/info.js +80 -0
  71. package/node_modules/@ist/skit/dist/commands/info.js.map +1 -0
  72. package/node_modules/@ist/skit/dist/commands/install.d.ts +13 -0
  73. package/node_modules/@ist/skit/dist/commands/install.d.ts.map +1 -0
  74. package/node_modules/@ist/skit/dist/commands/install.js +150 -0
  75. package/node_modules/@ist/skit/dist/commands/install.js.map +1 -0
  76. package/node_modules/@ist/skit/dist/commands/licenses.d.ts +9 -0
  77. package/node_modules/@ist/skit/dist/commands/licenses.d.ts.map +1 -0
  78. package/node_modules/@ist/skit/dist/commands/licenses.js +125 -0
  79. package/node_modules/@ist/skit/dist/commands/licenses.js.map +1 -0
  80. package/node_modules/@ist/skit/dist/commands/list.d.ts +12 -0
  81. package/node_modules/@ist/skit/dist/commands/list.d.ts.map +1 -0
  82. package/node_modules/@ist/skit/dist/commands/list.js +41 -0
  83. package/node_modules/@ist/skit/dist/commands/list.js.map +1 -0
  84. package/node_modules/@ist/skit/dist/commands/login.d.ts +10 -0
  85. package/node_modules/@ist/skit/dist/commands/login.d.ts.map +1 -0
  86. package/node_modules/@ist/skit/dist/commands/login.js +112 -0
  87. package/node_modules/@ist/skit/dist/commands/login.js.map +1 -0
  88. package/node_modules/@ist/skit/dist/commands/logout.d.ts +5 -0
  89. package/node_modules/@ist/skit/dist/commands/logout.d.ts.map +1 -0
  90. package/node_modules/@ist/skit/dist/commands/logout.js +30 -0
  91. package/node_modules/@ist/skit/dist/commands/logout.js.map +1 -0
  92. package/node_modules/@ist/skit/dist/commands/pack.d.ts +10 -0
  93. package/node_modules/@ist/skit/dist/commands/pack.d.ts.map +1 -0
  94. package/node_modules/@ist/skit/dist/commands/pack.js +185 -0
  95. package/node_modules/@ist/skit/dist/commands/pack.js.map +1 -0
  96. package/node_modules/@ist/skit/dist/commands/publish.d.ts +11 -0
  97. package/node_modules/@ist/skit/dist/commands/publish.d.ts.map +1 -0
  98. package/node_modules/@ist/skit/dist/commands/publish.js +108 -0
  99. package/node_modules/@ist/skit/dist/commands/publish.js.map +1 -0
  100. package/node_modules/@ist/skit/dist/commands/purchase.d.ts +9 -0
  101. package/node_modules/@ist/skit/dist/commands/purchase.d.ts.map +1 -0
  102. package/node_modules/@ist/skit/dist/commands/purchase.js +160 -0
  103. package/node_modules/@ist/skit/dist/commands/purchase.js.map +1 -0
  104. package/node_modules/@ist/skit/dist/commands/register.d.ts +10 -0
  105. package/node_modules/@ist/skit/dist/commands/register.d.ts.map +1 -0
  106. package/node_modules/@ist/skit/dist/commands/register.js +121 -0
  107. package/node_modules/@ist/skit/dist/commands/register.js.map +1 -0
  108. package/node_modules/@ist/skit/dist/commands/uninstall.d.ts +13 -0
  109. package/node_modules/@ist/skit/dist/commands/uninstall.d.ts.map +1 -0
  110. package/node_modules/@ist/skit/dist/commands/uninstall.js +138 -0
  111. package/node_modules/@ist/skit/dist/commands/uninstall.js.map +1 -0
  112. package/node_modules/@ist/skit/dist/commands/whoami.d.ts +9 -0
  113. package/node_modules/@ist/skit/dist/commands/whoami.d.ts.map +1 -0
  114. package/node_modules/@ist/skit/dist/commands/whoami.js +79 -0
  115. package/node_modules/@ist/skit/dist/commands/whoami.js.map +1 -0
  116. package/node_modules/@ist/skit/dist/index.d.ts +3 -0
  117. package/node_modules/@ist/skit/dist/index.d.ts.map +1 -0
  118. package/node_modules/@ist/skit/dist/index.js +69 -0
  119. package/node_modules/@ist/skit/dist/index.js.map +1 -0
  120. package/node_modules/@ist/skit/dist/lib.d.ts +144 -0
  121. package/node_modules/@ist/skit/dist/lib.d.ts.map +1 -0
  122. package/node_modules/@ist/skit/dist/lib.js +542 -0
  123. package/node_modules/@ist/skit/dist/lib.js.map +1 -0
  124. package/node_modules/@ist/skit/dist/types/skit.d.ts +155 -0
  125. package/node_modules/@ist/skit/dist/types/skit.d.ts.map +1 -0
  126. package/node_modules/@ist/skit/dist/types/skit.js +20 -0
  127. package/node_modules/@ist/skit/dist/types/skit.js.map +1 -0
  128. package/node_modules/@ist/skit/dist/utils/api.d.ts +18 -0
  129. package/node_modules/@ist/skit/dist/utils/api.d.ts.map +1 -0
  130. package/node_modules/@ist/skit/dist/utils/api.js +26 -0
  131. package/node_modules/@ist/skit/dist/utils/api.js.map +1 -0
  132. package/node_modules/@ist/skit/dist/utils/auth.d.ts +62 -0
  133. package/node_modules/@ist/skit/dist/utils/auth.d.ts.map +1 -0
  134. package/node_modules/@ist/skit/dist/utils/auth.js +172 -0
  135. package/node_modules/@ist/skit/dist/utils/auth.js.map +1 -0
  136. package/node_modules/@ist/skit/dist/utils/file-copy.d.ts +26 -0
  137. package/node_modules/@ist/skit/dist/utils/file-copy.d.ts.map +1 -0
  138. package/node_modules/@ist/skit/dist/utils/file-copy.js +219 -0
  139. package/node_modules/@ist/skit/dist/utils/file-copy.js.map +1 -0
  140. package/node_modules/@ist/skit/dist/utils/hook-installer.d.ts +21 -0
  141. package/node_modules/@ist/skit/dist/utils/hook-installer.d.ts.map +1 -0
  142. package/node_modules/@ist/skit/dist/utils/hook-installer.js +98 -0
  143. package/node_modules/@ist/skit/dist/utils/hook-installer.js.map +1 -0
  144. package/node_modules/@ist/skit/dist/utils/installed-registry.d.ts +50 -0
  145. package/node_modules/@ist/skit/dist/utils/installed-registry.d.ts.map +1 -0
  146. package/node_modules/@ist/skit/dist/utils/installed-registry.js +108 -0
  147. package/node_modules/@ist/skit/dist/utils/installed-registry.js.map +1 -0
  148. package/node_modules/@ist/skit/dist/utils/skit-parser.d.ts +10 -0
  149. package/node_modules/@ist/skit/dist/utils/skit-parser.d.ts.map +1 -0
  150. package/node_modules/@ist/skit/dist/utils/skit-parser.js +52 -0
  151. package/node_modules/@ist/skit/dist/utils/skit-parser.js.map +1 -0
  152. package/node_modules/@ist/skit/dist/utils/wrapper-generator.d.ts +74 -0
  153. package/node_modules/@ist/skit/dist/utils/wrapper-generator.d.ts.map +1 -0
  154. package/node_modules/@ist/skit/dist/utils/wrapper-generator.js +280 -0
  155. package/node_modules/@ist/skit/dist/utils/wrapper-generator.js.map +1 -0
  156. package/node_modules/@ist/skit/package.json +54 -0
  157. package/node_modules/chownr/LICENSE.md +63 -0
  158. package/node_modules/chownr/README.md +3 -0
  159. package/node_modules/chownr/dist/commonjs/index.d.ts +3 -0
  160. package/node_modules/chownr/dist/commonjs/index.d.ts.map +1 -0
  161. package/node_modules/chownr/dist/commonjs/index.js +93 -0
  162. package/node_modules/chownr/dist/commonjs/index.js.map +1 -0
  163. package/node_modules/chownr/dist/commonjs/package.json +3 -0
  164. package/node_modules/chownr/dist/esm/index.d.ts +3 -0
  165. package/node_modules/chownr/dist/esm/index.d.ts.map +1 -0
  166. package/node_modules/chownr/dist/esm/index.js +85 -0
  167. package/node_modules/chownr/dist/esm/index.js.map +1 -0
  168. package/node_modules/chownr/dist/esm/package.json +3 -0
  169. package/node_modules/chownr/package.json +69 -0
  170. package/node_modules/commander/LICENSE +22 -0
  171. package/node_modules/commander/Readme.md +1157 -0
  172. package/node_modules/commander/esm.mjs +16 -0
  173. package/node_modules/commander/index.js +24 -0
  174. package/node_modules/commander/lib/argument.js +149 -0
  175. package/node_modules/commander/lib/command.js +2509 -0
  176. package/node_modules/commander/lib/error.js +39 -0
  177. package/node_modules/commander/lib/help.js +520 -0
  178. package/node_modules/commander/lib/option.js +330 -0
  179. package/node_modules/commander/lib/suggestSimilar.js +101 -0
  180. package/node_modules/commander/package-support.json +16 -0
  181. package/node_modules/commander/package.json +84 -0
  182. package/node_modules/commander/typings/esm.d.mts +3 -0
  183. package/node_modules/commander/typings/index.d.ts +969 -0
  184. package/node_modules/minipass/LICENSE.md +55 -0
  185. package/node_modules/minipass/README.md +825 -0
  186. package/node_modules/minipass/dist/commonjs/index.d.ts +545 -0
  187. package/node_modules/minipass/dist/commonjs/index.d.ts.map +1 -0
  188. package/node_modules/minipass/dist/commonjs/index.js +1038 -0
  189. package/node_modules/minipass/dist/commonjs/index.js.map +1 -0
  190. package/node_modules/minipass/dist/commonjs/package.json +3 -0
  191. package/node_modules/minipass/dist/esm/index.d.ts +545 -0
  192. package/node_modules/minipass/dist/esm/index.d.ts.map +1 -0
  193. package/node_modules/minipass/dist/esm/index.js +1020 -0
  194. package/node_modules/minipass/dist/esm/index.js.map +1 -0
  195. package/node_modules/minipass/dist/esm/package.json +3 -0
  196. package/node_modules/minipass/package.json +77 -0
  197. package/node_modules/minizlib/LICENSE +26 -0
  198. package/node_modules/minizlib/README.md +64 -0
  199. package/node_modules/minizlib/dist/commonjs/constants.d.ts +2 -0
  200. package/node_modules/minizlib/dist/commonjs/constants.d.ts.map +1 -0
  201. package/node_modules/minizlib/dist/commonjs/constants.js +123 -0
  202. package/node_modules/minizlib/dist/commonjs/constants.js.map +1 -0
  203. package/node_modules/minizlib/dist/commonjs/index.d.ts +99 -0
  204. package/node_modules/minizlib/dist/commonjs/index.d.ts.map +1 -0
  205. package/node_modules/minizlib/dist/commonjs/index.js +416 -0
  206. package/node_modules/minizlib/dist/commonjs/index.js.map +1 -0
  207. package/node_modules/minizlib/dist/commonjs/package.json +3 -0
  208. package/node_modules/minizlib/dist/esm/constants.d.ts +2 -0
  209. package/node_modules/minizlib/dist/esm/constants.d.ts.map +1 -0
  210. package/node_modules/minizlib/dist/esm/constants.js +117 -0
  211. package/node_modules/minizlib/dist/esm/constants.js.map +1 -0
  212. package/node_modules/minizlib/dist/esm/index.d.ts +99 -0
  213. package/node_modules/minizlib/dist/esm/index.d.ts.map +1 -0
  214. package/node_modules/minizlib/dist/esm/index.js +363 -0
  215. package/node_modules/minizlib/dist/esm/index.js.map +1 -0
  216. package/node_modules/minizlib/dist/esm/package.json +3 -0
  217. package/node_modules/minizlib/package.json +80 -0
  218. package/node_modules/tar/LICENSE.md +55 -0
  219. package/node_modules/tar/README.md +1224 -0
  220. package/node_modules/tar/dist/commonjs/create.d.ts +3 -0
  221. package/node_modules/tar/dist/commonjs/create.d.ts.map +1 -0
  222. package/node_modules/tar/dist/commonjs/create.js +82 -0
  223. package/node_modules/tar/dist/commonjs/create.js.map +1 -0
  224. package/node_modules/tar/dist/commonjs/cwd-error.d.ts +8 -0
  225. package/node_modules/tar/dist/commonjs/cwd-error.d.ts.map +1 -0
  226. package/node_modules/tar/dist/commonjs/cwd-error.js +18 -0
  227. package/node_modules/tar/dist/commonjs/cwd-error.js.map +1 -0
  228. package/node_modules/tar/dist/commonjs/extract.d.ts +3 -0
  229. package/node_modules/tar/dist/commonjs/extract.d.ts.map +1 -0
  230. package/node_modules/tar/dist/commonjs/extract.js +88 -0
  231. package/node_modules/tar/dist/commonjs/extract.js.map +1 -0
  232. package/node_modules/tar/dist/commonjs/get-write-flag.d.ts +2 -0
  233. package/node_modules/tar/dist/commonjs/get-write-flag.d.ts.map +1 -0
  234. package/node_modules/tar/dist/commonjs/get-write-flag.js +32 -0
  235. package/node_modules/tar/dist/commonjs/get-write-flag.js.map +1 -0
  236. package/node_modules/tar/dist/commonjs/header.d.ts +53 -0
  237. package/node_modules/tar/dist/commonjs/header.d.ts.map +1 -0
  238. package/node_modules/tar/dist/commonjs/header.js +312 -0
  239. package/node_modules/tar/dist/commonjs/header.js.map +1 -0
  240. package/node_modules/tar/dist/commonjs/index.d.ts +20 -0
  241. package/node_modules/tar/dist/commonjs/index.d.ts.map +1 -0
  242. package/node_modules/tar/dist/commonjs/index.js +64 -0
  243. package/node_modules/tar/dist/commonjs/index.js.map +1 -0
  244. package/node_modules/tar/dist/commonjs/index.min.js +4 -0
  245. package/node_modules/tar/dist/commonjs/index.min.js.map +7 -0
  246. package/node_modules/tar/dist/commonjs/large-numbers.d.ts +3 -0
  247. package/node_modules/tar/dist/commonjs/large-numbers.d.ts.map +1 -0
  248. package/node_modules/tar/dist/commonjs/large-numbers.js +99 -0
  249. package/node_modules/tar/dist/commonjs/large-numbers.js.map +1 -0
  250. package/node_modules/tar/dist/commonjs/list.d.ts +7 -0
  251. package/node_modules/tar/dist/commonjs/list.d.ts.map +1 -0
  252. package/node_modules/tar/dist/commonjs/list.js +145 -0
  253. package/node_modules/tar/dist/commonjs/list.js.map +1 -0
  254. package/node_modules/tar/dist/commonjs/make-command.d.ts +49 -0
  255. package/node_modules/tar/dist/commonjs/make-command.d.ts.map +1 -0
  256. package/node_modules/tar/dist/commonjs/make-command.js +52 -0
  257. package/node_modules/tar/dist/commonjs/make-command.js.map +1 -0
  258. package/node_modules/tar/dist/commonjs/mkdir.d.ts +25 -0
  259. package/node_modules/tar/dist/commonjs/mkdir.d.ts.map +1 -0
  260. package/node_modules/tar/dist/commonjs/mkdir.js +187 -0
  261. package/node_modules/tar/dist/commonjs/mkdir.js.map +1 -0
  262. package/node_modules/tar/dist/commonjs/mode-fix.d.ts +2 -0
  263. package/node_modules/tar/dist/commonjs/mode-fix.d.ts.map +1 -0
  264. package/node_modules/tar/dist/commonjs/mode-fix.js +29 -0
  265. package/node_modules/tar/dist/commonjs/mode-fix.js.map +1 -0
  266. package/node_modules/tar/dist/commonjs/normalize-unicode.d.ts +2 -0
  267. package/node_modules/tar/dist/commonjs/normalize-unicode.d.ts.map +1 -0
  268. package/node_modules/tar/dist/commonjs/normalize-unicode.js +38 -0
  269. package/node_modules/tar/dist/commonjs/normalize-unicode.js.map +1 -0
  270. package/node_modules/tar/dist/commonjs/normalize-windows-path.d.ts +2 -0
  271. package/node_modules/tar/dist/commonjs/normalize-windows-path.d.ts.map +1 -0
  272. package/node_modules/tar/dist/commonjs/normalize-windows-path.js +12 -0
  273. package/node_modules/tar/dist/commonjs/normalize-windows-path.js.map +1 -0
  274. package/node_modules/tar/dist/commonjs/options.d.ts +596 -0
  275. package/node_modules/tar/dist/commonjs/options.d.ts.map +1 -0
  276. package/node_modules/tar/dist/commonjs/options.js +66 -0
  277. package/node_modules/tar/dist/commonjs/options.js.map +1 -0
  278. package/node_modules/tar/dist/commonjs/pack.d.ts +102 -0
  279. package/node_modules/tar/dist/commonjs/pack.d.ts.map +1 -0
  280. package/node_modules/tar/dist/commonjs/pack.js +511 -0
  281. package/node_modules/tar/dist/commonjs/pack.js.map +1 -0
  282. package/node_modules/tar/dist/commonjs/package.json +3 -0
  283. package/node_modules/tar/dist/commonjs/parse.d.ts +85 -0
  284. package/node_modules/tar/dist/commonjs/parse.d.ts.map +1 -0
  285. package/node_modules/tar/dist/commonjs/parse.js +610 -0
  286. package/node_modules/tar/dist/commonjs/parse.js.map +1 -0
  287. package/node_modules/tar/dist/commonjs/path-reservations.d.ts +11 -0
  288. package/node_modules/tar/dist/commonjs/path-reservations.d.ts.map +1 -0
  289. package/node_modules/tar/dist/commonjs/path-reservations.js +170 -0
  290. package/node_modules/tar/dist/commonjs/path-reservations.js.map +1 -0
  291. package/node_modules/tar/dist/commonjs/pax.d.ts +26 -0
  292. package/node_modules/tar/dist/commonjs/pax.d.ts.map +1 -0
  293. package/node_modules/tar/dist/commonjs/pax.js +158 -0
  294. package/node_modules/tar/dist/commonjs/pax.js.map +1 -0
  295. package/node_modules/tar/dist/commonjs/process-umask.d.ts +2 -0
  296. package/node_modules/tar/dist/commonjs/process-umask.d.ts.map +1 -0
  297. package/node_modules/tar/dist/commonjs/process-umask.js +7 -0
  298. package/node_modules/tar/dist/commonjs/process-umask.js.map +1 -0
  299. package/node_modules/tar/dist/commonjs/read-entry.d.ts +36 -0
  300. package/node_modules/tar/dist/commonjs/read-entry.d.ts.map +1 -0
  301. package/node_modules/tar/dist/commonjs/read-entry.js +136 -0
  302. package/node_modules/tar/dist/commonjs/read-entry.js.map +1 -0
  303. package/node_modules/tar/dist/commonjs/replace.d.ts +2 -0
  304. package/node_modules/tar/dist/commonjs/replace.d.ts.map +1 -0
  305. package/node_modules/tar/dist/commonjs/replace.js +227 -0
  306. package/node_modules/tar/dist/commonjs/replace.js.map +1 -0
  307. package/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts +2 -0
  308. package/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts.map +1 -0
  309. package/node_modules/tar/dist/commonjs/strip-absolute-path.js +29 -0
  310. package/node_modules/tar/dist/commonjs/strip-absolute-path.js.map +1 -0
  311. package/node_modules/tar/dist/commonjs/strip-trailing-slashes.d.ts +2 -0
  312. package/node_modules/tar/dist/commonjs/strip-trailing-slashes.d.ts.map +1 -0
  313. package/node_modules/tar/dist/commonjs/strip-trailing-slashes.js +18 -0
  314. package/node_modules/tar/dist/commonjs/strip-trailing-slashes.js.map +1 -0
  315. package/node_modules/tar/dist/commonjs/symlink-error.d.ts +9 -0
  316. package/node_modules/tar/dist/commonjs/symlink-error.d.ts.map +1 -0
  317. package/node_modules/tar/dist/commonjs/symlink-error.js +19 -0
  318. package/node_modules/tar/dist/commonjs/symlink-error.js.map +1 -0
  319. package/node_modules/tar/dist/commonjs/types.d.ts +7 -0
  320. package/node_modules/tar/dist/commonjs/types.d.ts.map +1 -0
  321. package/node_modules/tar/dist/commonjs/types.js +50 -0
  322. package/node_modules/tar/dist/commonjs/types.js.map +1 -0
  323. package/node_modules/tar/dist/commonjs/unpack.d.ts +101 -0
  324. package/node_modules/tar/dist/commonjs/unpack.d.ts.map +1 -0
  325. package/node_modules/tar/dist/commonjs/unpack.js +932 -0
  326. package/node_modules/tar/dist/commonjs/unpack.js.map +1 -0
  327. package/node_modules/tar/dist/commonjs/update.d.ts +2 -0
  328. package/node_modules/tar/dist/commonjs/update.d.ts.map +1 -0
  329. package/node_modules/tar/dist/commonjs/update.js +33 -0
  330. package/node_modules/tar/dist/commonjs/update.js.map +1 -0
  331. package/node_modules/tar/dist/commonjs/warn-method.d.ts +24 -0
  332. package/node_modules/tar/dist/commonjs/warn-method.d.ts.map +1 -0
  333. package/node_modules/tar/dist/commonjs/warn-method.js +31 -0
  334. package/node_modules/tar/dist/commonjs/warn-method.js.map +1 -0
  335. package/node_modules/tar/dist/commonjs/winchars.d.ts +3 -0
  336. package/node_modules/tar/dist/commonjs/winchars.d.ts.map +1 -0
  337. package/node_modules/tar/dist/commonjs/winchars.js +14 -0
  338. package/node_modules/tar/dist/commonjs/winchars.js.map +1 -0
  339. package/node_modules/tar/dist/commonjs/write-entry.d.ts +129 -0
  340. package/node_modules/tar/dist/commonjs/write-entry.d.ts.map +1 -0
  341. package/node_modules/tar/dist/commonjs/write-entry.js +698 -0
  342. package/node_modules/tar/dist/commonjs/write-entry.js.map +1 -0
  343. package/node_modules/tar/dist/esm/create.d.ts +3 -0
  344. package/node_modules/tar/dist/esm/create.d.ts.map +1 -0
  345. package/node_modules/tar/dist/esm/create.js +76 -0
  346. package/node_modules/tar/dist/esm/create.js.map +1 -0
  347. package/node_modules/tar/dist/esm/cwd-error.d.ts +8 -0
  348. package/node_modules/tar/dist/esm/cwd-error.d.ts.map +1 -0
  349. package/node_modules/tar/dist/esm/cwd-error.js +14 -0
  350. package/node_modules/tar/dist/esm/cwd-error.js.map +1 -0
  351. package/node_modules/tar/dist/esm/extract.d.ts +3 -0
  352. package/node_modules/tar/dist/esm/extract.d.ts.map +1 -0
  353. package/node_modules/tar/dist/esm/extract.js +49 -0
  354. package/node_modules/tar/dist/esm/extract.js.map +1 -0
  355. package/node_modules/tar/dist/esm/get-write-flag.d.ts +2 -0
  356. package/node_modules/tar/dist/esm/get-write-flag.d.ts.map +1 -0
  357. package/node_modules/tar/dist/esm/get-write-flag.js +26 -0
  358. package/node_modules/tar/dist/esm/get-write-flag.js.map +1 -0
  359. package/node_modules/tar/dist/esm/header.d.ts +53 -0
  360. package/node_modules/tar/dist/esm/header.d.ts.map +1 -0
  361. package/node_modules/tar/dist/esm/header.js +275 -0
  362. package/node_modules/tar/dist/esm/header.js.map +1 -0
  363. package/node_modules/tar/dist/esm/index.d.ts +20 -0
  364. package/node_modules/tar/dist/esm/index.d.ts.map +1 -0
  365. package/node_modules/tar/dist/esm/index.js +20 -0
  366. package/node_modules/tar/dist/esm/index.js.map +1 -0
  367. package/node_modules/tar/dist/esm/index.min.js +4 -0
  368. package/node_modules/tar/dist/esm/index.min.js.map +7 -0
  369. package/node_modules/tar/dist/esm/large-numbers.d.ts +3 -0
  370. package/node_modules/tar/dist/esm/large-numbers.d.ts.map +1 -0
  371. package/node_modules/tar/dist/esm/large-numbers.js +94 -0
  372. package/node_modules/tar/dist/esm/large-numbers.js.map +1 -0
  373. package/node_modules/tar/dist/esm/list.d.ts +7 -0
  374. package/node_modules/tar/dist/esm/list.d.ts.map +1 -0
  375. package/node_modules/tar/dist/esm/list.js +105 -0
  376. package/node_modules/tar/dist/esm/list.js.map +1 -0
  377. package/node_modules/tar/dist/esm/make-command.d.ts +49 -0
  378. package/node_modules/tar/dist/esm/make-command.d.ts.map +1 -0
  379. package/node_modules/tar/dist/esm/make-command.js +48 -0
  380. package/node_modules/tar/dist/esm/make-command.js.map +1 -0
  381. package/node_modules/tar/dist/esm/mkdir.d.ts +25 -0
  382. package/node_modules/tar/dist/esm/mkdir.d.ts.map +1 -0
  383. package/node_modules/tar/dist/esm/mkdir.js +179 -0
  384. package/node_modules/tar/dist/esm/mkdir.js.map +1 -0
  385. package/node_modules/tar/dist/esm/mode-fix.d.ts +2 -0
  386. package/node_modules/tar/dist/esm/mode-fix.d.ts.map +1 -0
  387. package/node_modules/tar/dist/esm/mode-fix.js +25 -0
  388. package/node_modules/tar/dist/esm/mode-fix.js.map +1 -0
  389. package/node_modules/tar/dist/esm/normalize-unicode.d.ts +2 -0
  390. package/node_modules/tar/dist/esm/normalize-unicode.d.ts.map +1 -0
  391. package/node_modules/tar/dist/esm/normalize-unicode.js +34 -0
  392. package/node_modules/tar/dist/esm/normalize-unicode.js.map +1 -0
  393. package/node_modules/tar/dist/esm/normalize-windows-path.d.ts +2 -0
  394. package/node_modules/tar/dist/esm/normalize-windows-path.d.ts.map +1 -0
  395. package/node_modules/tar/dist/esm/normalize-windows-path.js +9 -0
  396. package/node_modules/tar/dist/esm/normalize-windows-path.js.map +1 -0
  397. package/node_modules/tar/dist/esm/options.d.ts +596 -0
  398. package/node_modules/tar/dist/esm/options.d.ts.map +1 -0
  399. package/node_modules/tar/dist/esm/options.js +54 -0
  400. package/node_modules/tar/dist/esm/options.js.map +1 -0
  401. package/node_modules/tar/dist/esm/pack.d.ts +102 -0
  402. package/node_modules/tar/dist/esm/pack.d.ts.map +1 -0
  403. package/node_modules/tar/dist/esm/pack.js +469 -0
  404. package/node_modules/tar/dist/esm/pack.js.map +1 -0
  405. package/node_modules/tar/dist/esm/package.json +3 -0
  406. package/node_modules/tar/dist/esm/parse.d.ts +85 -0
  407. package/node_modules/tar/dist/esm/parse.d.ts.map +1 -0
  408. package/node_modules/tar/dist/esm/parse.js +606 -0
  409. package/node_modules/tar/dist/esm/parse.js.map +1 -0
  410. package/node_modules/tar/dist/esm/path-reservations.d.ts +11 -0
  411. package/node_modules/tar/dist/esm/path-reservations.d.ts.map +1 -0
  412. package/node_modules/tar/dist/esm/path-reservations.js +166 -0
  413. package/node_modules/tar/dist/esm/path-reservations.js.map +1 -0
  414. package/node_modules/tar/dist/esm/pax.d.ts +26 -0
  415. package/node_modules/tar/dist/esm/pax.d.ts.map +1 -0
  416. package/node_modules/tar/dist/esm/pax.js +154 -0
  417. package/node_modules/tar/dist/esm/pax.js.map +1 -0
  418. package/node_modules/tar/dist/esm/process-umask.d.ts +2 -0
  419. package/node_modules/tar/dist/esm/process-umask.d.ts.map +1 -0
  420. package/node_modules/tar/dist/esm/process-umask.js +3 -0
  421. package/node_modules/tar/dist/esm/process-umask.js.map +1 -0
  422. package/node_modules/tar/dist/esm/read-entry.d.ts +36 -0
  423. package/node_modules/tar/dist/esm/read-entry.d.ts.map +1 -0
  424. package/node_modules/tar/dist/esm/read-entry.js +132 -0
  425. package/node_modules/tar/dist/esm/read-entry.js.map +1 -0
  426. package/node_modules/tar/dist/esm/replace.d.ts +2 -0
  427. package/node_modules/tar/dist/esm/replace.d.ts.map +1 -0
  428. package/node_modules/tar/dist/esm/replace.js +221 -0
  429. package/node_modules/tar/dist/esm/replace.js.map +1 -0
  430. package/node_modules/tar/dist/esm/strip-absolute-path.d.ts +2 -0
  431. package/node_modules/tar/dist/esm/strip-absolute-path.d.ts.map +1 -0
  432. package/node_modules/tar/dist/esm/strip-absolute-path.js +25 -0
  433. package/node_modules/tar/dist/esm/strip-absolute-path.js.map +1 -0
  434. package/node_modules/tar/dist/esm/strip-trailing-slashes.d.ts +2 -0
  435. package/node_modules/tar/dist/esm/strip-trailing-slashes.d.ts.map +1 -0
  436. package/node_modules/tar/dist/esm/strip-trailing-slashes.js +14 -0
  437. package/node_modules/tar/dist/esm/strip-trailing-slashes.js.map +1 -0
  438. package/node_modules/tar/dist/esm/symlink-error.d.ts +9 -0
  439. package/node_modules/tar/dist/esm/symlink-error.d.ts.map +1 -0
  440. package/node_modules/tar/dist/esm/symlink-error.js +15 -0
  441. package/node_modules/tar/dist/esm/symlink-error.js.map +1 -0
  442. package/node_modules/tar/dist/esm/types.d.ts +7 -0
  443. package/node_modules/tar/dist/esm/types.d.ts.map +1 -0
  444. package/node_modules/tar/dist/esm/types.js +45 -0
  445. package/node_modules/tar/dist/esm/types.js.map +1 -0
  446. package/node_modules/tar/dist/esm/unpack.d.ts +101 -0
  447. package/node_modules/tar/dist/esm/unpack.d.ts.map +1 -0
  448. package/node_modules/tar/dist/esm/unpack.js +891 -0
  449. package/node_modules/tar/dist/esm/unpack.js.map +1 -0
  450. package/node_modules/tar/dist/esm/update.d.ts +2 -0
  451. package/node_modules/tar/dist/esm/update.d.ts.map +1 -0
  452. package/node_modules/tar/dist/esm/update.js +30 -0
  453. package/node_modules/tar/dist/esm/update.js.map +1 -0
  454. package/node_modules/tar/dist/esm/warn-method.d.ts +24 -0
  455. package/node_modules/tar/dist/esm/warn-method.d.ts.map +1 -0
  456. package/node_modules/tar/dist/esm/warn-method.js +27 -0
  457. package/node_modules/tar/dist/esm/warn-method.js.map +1 -0
  458. package/node_modules/tar/dist/esm/winchars.d.ts +3 -0
  459. package/node_modules/tar/dist/esm/winchars.d.ts.map +1 -0
  460. package/node_modules/tar/dist/esm/winchars.js +9 -0
  461. package/node_modules/tar/dist/esm/winchars.js.map +1 -0
  462. package/node_modules/tar/dist/esm/write-entry.d.ts +129 -0
  463. package/node_modules/tar/dist/esm/write-entry.d.ts.map +1 -0
  464. package/node_modules/tar/dist/esm/write-entry.js +656 -0
  465. package/node_modules/tar/dist/esm/write-entry.js.map +1 -0
  466. package/node_modules/tar/package.json +297 -0
  467. package/node_modules/yallist/LICENSE.md +63 -0
  468. package/node_modules/yallist/README.md +205 -0
  469. package/node_modules/yallist/dist/commonjs/index.d.ts +39 -0
  470. package/node_modules/yallist/dist/commonjs/index.d.ts.map +1 -0
  471. package/node_modules/yallist/dist/commonjs/index.js +384 -0
  472. package/node_modules/yallist/dist/commonjs/index.js.map +1 -0
  473. package/node_modules/yallist/dist/commonjs/package.json +3 -0
  474. package/node_modules/yallist/dist/esm/index.d.ts +39 -0
  475. package/node_modules/yallist/dist/esm/index.d.ts.map +1 -0
  476. package/node_modules/yallist/dist/esm/index.js +379 -0
  477. package/node_modules/yallist/dist/esm/index.js.map +1 -0
  478. package/node_modules/yallist/dist/esm/package.json +3 -0
  479. package/node_modules/yallist/package.json +68 -0
  480. package/package.json +9 -5
@@ -0,0 +1,3 @@
1
+ export * from './types.js';
2
+ export * from './scope-mapping.js';
3
+ export * from './registry-url.js';
@@ -0,0 +1,3 @@
1
+ export * from './types.js';
2
+ export * from './scope-mapping.js';
3
+ export * from './registry-url.js';
@@ -0,0 +1 @@
1
+ export declare const REGISTRY_PROXY_URL = "https://registry-proxy.sisung-kim1.workers.dev";
@@ -0,0 +1 @@
1
+ export const REGISTRY_PROXY_URL = 'https://registry-proxy.sisung-kim1.workers.dev';
@@ -0,0 +1,6 @@
1
+ import type { ScopeMapping } from './types.js';
2
+ /**
3
+ * Merge multiple registry mappings.
4
+ * Later mappings override earlier ones.
5
+ */
6
+ export declare function mergeRegistryMapping(...mappings: ScopeMapping[]): ScopeMapping;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Merge multiple registry mappings.
3
+ * Later mappings override earlier ones.
4
+ */
5
+ export function mergeRegistryMapping(...mappings) {
6
+ return Object.assign({}, ...mappings);
7
+ }
@@ -0,0 +1,4 @@
1
+ export interface ScopeConfig {
2
+ group: string;
3
+ }
4
+ export type ScopeMapping = Record<string, ScopeConfig>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "@ist/registry-config",
3
+ "version": "0.1.1",
4
+ "description": "Registry configuration for IST packages - scope mapping and proxy URL",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js"
12
+ }
13
+ },
14
+ "scripts": {
15
+ "build": "tsc",
16
+ "dev": "tsc --watch"
17
+ },
18
+ "files": [
19
+ "dist"
20
+ ],
21
+ "keywords": [
22
+ "registry",
23
+ "config",
24
+ "ist",
25
+ "scope-mapping"
26
+ ],
27
+ "license": "MIT",
28
+ "devDependencies": {
29
+ "typescript": "^5.3.0",
30
+ "@types/node": "^20.10.0"
31
+ }
32
+ }
@@ -0,0 +1,204 @@
1
+ # @ist/skit
2
+
3
+ Session Kit (skit) 패키지를 관리하기 위한 CLI 도구입니다. Claude Code 세션에서 사용할 profiles, prompts, packs 등을 설치하고 관리합니다.
4
+
5
+ ## 설치
6
+
7
+ ```bash
8
+ npm install -g @ist/skit
9
+ ```
10
+
11
+ **요구 사항**: Node.js >= 18.0.0
12
+
13
+ ## 사용법
14
+
15
+ ### 패키지 설치
16
+
17
+ ```bash
18
+ # GitLab 레지스트리에서 설치
19
+ skit install @ist/qa-kit
20
+
21
+ # 특정 버전 설치
22
+ skit install @ist/qa-kit@1.0.0
23
+
24
+ # 로컬 .tgz 파일에서 설치
25
+ skit install ./my-kit-1.0.0.tgz
26
+
27
+ # 로컬 디렉토리에서 설치 (개발용)
28
+ skit install .
29
+
30
+ # 상세 출력
31
+ skit install @ist/qa-kit -v
32
+
33
+ # 드라이 런 (실제 설치 없이 확인)
34
+ skit install @ist/qa-kit --dry-run
35
+ ```
36
+
37
+ ### 패키지 삭제
38
+
39
+ ```bash
40
+ skit uninstall @ist/qa-kit
41
+ # 또는
42
+ skit rm @ist/qa-kit
43
+ ```
44
+
45
+ ### 설치된 패키지 목록
46
+
47
+ ```bash
48
+ skit list
49
+ # 또는
50
+ skit ls
51
+
52
+ # JSON 형식 출력
53
+ skit list --json
54
+ ```
55
+
56
+ ### 패키지 탐색
57
+
58
+ ```bash
59
+ # 특정 조직의 skit 패키지 목록 조회
60
+ skit browse @ist
61
+
62
+ # JSON 형식 출력
63
+ skit browse @ist --json
64
+ ```
65
+
66
+ ### 패키지 정보
67
+
68
+ ```bash
69
+ # 현재 디렉토리의 skit.json 정보 표시
70
+ skit info
71
+
72
+ # JSON 형식 출력
73
+ skit info --json
74
+ ```
75
+
76
+ ### 패키지 패킹
77
+
78
+ ```bash
79
+ # 현재 디렉토리를 .tgz 파일로 패킹
80
+ skit pack
81
+
82
+ # 출력 디렉토리 지정
83
+ skit pack -o ./dist
84
+
85
+ # 포함될 파일 확인 (드라이 런)
86
+ skit pack --dry-run
87
+ ```
88
+
89
+ ### 패키지 배포
90
+
91
+ ```bash
92
+ # GitLab에 배포
93
+ skit publish
94
+ # 또는
95
+ skit p
96
+
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
101
+
102
+ # 드라이 런
103
+ skit publish --dry-run
104
+ ```
105
+
106
+ ### .gitignore 생성
107
+
108
+ ```bash
109
+ # skit 기본 .gitignore 생성/업데이트
110
+ skit gitignore
111
+
112
+ # 기존 파일 덮어쓰기
113
+ skit gitignore -f
114
+ ```
115
+
116
+ ## skit.json 구조
117
+
118
+ ```json
119
+ {
120
+ "name": "@ist/my-kit",
121
+ "version": "1.0.0",
122
+ "description": "My awesome session kit",
123
+ "type": "skit",
124
+ "files": ["**/*"],
125
+ "exclude": ["*.test.ts"],
126
+ "dependencies": {
127
+ "cli": [
128
+ {
129
+ "name": "git-nested",
130
+ "install": "gitlab-install add @microature/git-nested -g",
131
+ "check": "git-nested --version",
132
+ "optional": true
133
+ }
134
+ ],
135
+ "skit": {
136
+ "@ist/base-kit": "latest"
137
+ }
138
+ },
139
+ "components": {
140
+ "profiles": [
141
+ { "name": "my-profile", "file": "profiles/my-profile.md" }
142
+ ],
143
+ "prompts": [
144
+ { "name": "my-prompt", "file": "prompts/my-prompt.md" }
145
+ ],
146
+ "packs": [
147
+ { "name": "my-pack", "file": "packs/my-pack.json" }
148
+ ],
149
+ "clis": [
150
+ { "name": "mycli", "package": "@ist/mycli" }
151
+ ]
152
+ },
153
+ "install": {
154
+ "profiles": "~/.ist/profiles/",
155
+ "prompts": "~/.ist/prompts/global/",
156
+ "pre": ["echo 'Installing...'"],
157
+ "post": ["echo 'Done!'"]
158
+ }
159
+ }
160
+ ```
161
+
162
+ ### dependencies 필드
163
+
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
+ ```
173
+
174
+ ## 기본 설치 경로
175
+
176
+ | 컴포넌트 타입 | 기본 경로 |
177
+ |--------------|----------|
178
+ | profiles | `~/.ist/profiles/` |
179
+ | prompts | `~/.ist/prompts/global/` |
180
+ | states | `~/.ist/state/profiles/` |
181
+ | packs | `~/.sesh/permission-packs.json` (병합) |
182
+
183
+ ## 개발
184
+
185
+ ```bash
186
+ # 의존성 설치
187
+ npm install
188
+
189
+ # TypeScript 컴파일
190
+ npm run build
191
+
192
+ # 개발 모드 (watch)
193
+ npm run dev
194
+
195
+ # 테스트 실행
196
+ npm test
197
+
198
+ # 테스트 단일 실행
199
+ npm run test:run
200
+ ```
201
+
202
+ ## 라이선스
203
+
204
+ MIT
@@ -0,0 +1,9 @@
1
+ interface BrowseOptions {
2
+ json?: boolean;
3
+ }
4
+ /**
5
+ * Browse command handler - list skits for an organization
6
+ */
7
+ export declare function browseCommand(org: string, options: BrowseOptions): Promise<void>;
8
+ export {};
9
+ //# sourceMappingURL=browse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"browse.d.ts","sourceRoot":"","sources":["../../src/commands/browse.ts"],"names":[],"mappings":"AAGA,UAAU,aAAa;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAkFD;;GAEG;AACH,wBAAsB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CA0EtF"}
@@ -0,0 +1,127 @@
1
+ import { execSync } from 'node:child_process';
2
+ import chalk from 'chalk';
3
+ /**
4
+ * Get scope mapping from gitlab-config
5
+ */
6
+ function getScopeInfo(scope) {
7
+ try {
8
+ const output = execSync(`gitlab-config scope get ${scope}`, {
9
+ encoding: 'utf-8',
10
+ stdio: ['pipe', 'pipe', 'pipe'],
11
+ });
12
+ return JSON.parse(output);
13
+ }
14
+ catch {
15
+ return null;
16
+ }
17
+ }
18
+ /**
19
+ * Get GitLab token from gitlab-config
20
+ */
21
+ function getGitLabToken() {
22
+ try {
23
+ return execSync('gitlab-config get', {
24
+ encoding: 'utf-8',
25
+ stdio: ['pipe', 'pipe', 'pipe'],
26
+ }).trim();
27
+ }
28
+ catch {
29
+ return null;
30
+ }
31
+ }
32
+ /**
33
+ * Fetch packages from GitLab API
34
+ */
35
+ async function fetchPackages(groupId, token) {
36
+ const url = `https://gitlab.com/api/v4/groups/${groupId}/packages?package_type=generic&per_page=100`;
37
+ const response = await fetch(url, {
38
+ headers: {
39
+ 'PRIVATE-TOKEN': token,
40
+ },
41
+ });
42
+ if (!response.ok) {
43
+ throw new Error(`GitLab API error: ${response.status} ${response.statusText}`);
44
+ }
45
+ return response.json();
46
+ }
47
+ /**
48
+ * Group packages by name and get latest version
49
+ */
50
+ function groupPackages(packages) {
51
+ const grouped = new Map();
52
+ for (const pkg of packages) {
53
+ const existing = grouped.get(pkg.name);
54
+ if (!existing || new Date(pkg.created_at) > new Date(existing.created_at)) {
55
+ grouped.set(pkg.name, pkg);
56
+ }
57
+ }
58
+ return grouped;
59
+ }
60
+ /**
61
+ * Browse command handler - list skits for an organization
62
+ */
63
+ export async function browseCommand(org, options) {
64
+ // Remove @ prefix if present
65
+ const orgName = org.startsWith('@') ? org.slice(1) : org;
66
+ if (!options.json) {
67
+ console.log();
68
+ console.log(chalk.cyan(`Browsing skits for @${orgName}...`));
69
+ console.log();
70
+ }
71
+ try {
72
+ // Get scope mapping
73
+ const scopeInfo = getScopeInfo(orgName);
74
+ if (!scopeInfo) {
75
+ console.error(chalk.red(`Error: No scope mapping found for @${orgName}`));
76
+ console.log(chalk.dim(` Run: gitlab-config scope set ${orgName} <gitlab-group>`));
77
+ process.exitCode = 1;
78
+ return;
79
+ }
80
+ // Get GitLab token
81
+ const token = getGitLabToken();
82
+ if (!token) {
83
+ console.error(chalk.red('Error: GitLab token not found'));
84
+ console.log(chalk.dim(' Run: gitlab-config save <token>'));
85
+ process.exitCode = 1;
86
+ return;
87
+ }
88
+ // Fetch packages from GitLab
89
+ const packages = await fetchPackages(scopeInfo.groupId, token);
90
+ // Filter skit packages (those with skit in name or specific pattern)
91
+ const skitPackages = packages.filter(pkg => pkg.name.includes('skit') ||
92
+ pkg.name.includes('-kit') ||
93
+ pkg.name.startsWith('ist__') // skit tarball naming
94
+ );
95
+ // Group by name and get latest
96
+ const grouped = groupPackages(skitPackages);
97
+ const uniquePackages = Array.from(grouped.values());
98
+ if (options.json) {
99
+ const result = uniquePackages.map(pkg => ({
100
+ name: pkg.name,
101
+ version: pkg.version,
102
+ created_at: pkg.created_at,
103
+ }));
104
+ console.log(JSON.stringify(result, null, 2));
105
+ return;
106
+ }
107
+ if (uniquePackages.length === 0) {
108
+ console.log(chalk.yellow(`No skits found for @${orgName}`));
109
+ return;
110
+ }
111
+ console.log(chalk.green(`Found ${uniquePackages.length} skit(s):`));
112
+ console.log();
113
+ for (const pkg of uniquePackages) {
114
+ // Clean up name display
115
+ const displayName = pkg.name.startsWith('ist__')
116
+ ? `@ist/${pkg.name.replace('ist__', '').replace(/-\d+\.\d+\.\d+.*/, '')}`
117
+ : pkg.name;
118
+ console.log(chalk.bold(` ${displayName}`) + chalk.dim(`@${pkg.version}`));
119
+ console.log();
120
+ }
121
+ }
122
+ catch (error) {
123
+ console.error(chalk.red('Error:'), error instanceof Error ? error.message : String(error));
124
+ process.exitCode = 1;
125
+ }
126
+ }
127
+ //# sourceMappingURL=browse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"browse.js","sourceRoot":"","sources":["../../src/commands/browse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,KAAK,MAAM,OAAO,CAAC;AAsB1B;;GAEG;AACH,SAAS,YAAY,CAAC,KAAa;IACjC,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,QAAQ,CAAC,2BAA2B,KAAK,EAAE,EAAE;YAC1D,QAAQ,EAAE,OAAO;YACjB,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;SAChC,CAAC,CAAC;QACH,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC;AAED;;GAEG;AACH,SAAS,cAAc;IACrB,IAAI,CAAC;QACH,OAAO,QAAQ,CAA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AAC,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC,EAAE;gBACzE,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC;YAEb,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,WAAW,EAAE,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;YAC3E,OAAO,CAAC,GAAG,EAAE,CAAC;QAChB,CAAC;IACH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAC3F,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;IACvB,CAAC;AACH,CAAC"}
@@ -0,0 +1,9 @@
1
+ interface GitignoreOptions {
2
+ force?: boolean;
3
+ }
4
+ /**
5
+ * Add or create .gitignore with skit defaults
6
+ */
7
+ export declare function gitignoreCommand(options: GitignoreOptions): Promise<void>;
8
+ export {};
9
+ //# sourceMappingURL=gitignore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gitignore.d.ts","sourceRoot":"","sources":["../../src/commands/gitignore.ts"],"names":[],"mappings":"AAWA,UAAU,gBAAgB;IACxB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;GAEG;AACH,wBAAsB,gBAAgB,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAiD/E"}
@@ -0,0 +1,59 @@
1
+ import { access, writeFile, readFile } from 'node:fs/promises';
2
+ import { join } from 'node:path';
3
+ import chalk from 'chalk';
4
+ const DEFAULT_GITIGNORE = `# skit build artifacts
5
+ *.tgz
6
+
7
+ # Node (if applicable)
8
+ node_modules/
9
+ `;
10
+ /**
11
+ * Add or create .gitignore with skit defaults
12
+ */
13
+ export async function gitignoreCommand(options) {
14
+ const { force = false } = options;
15
+ const gitignorePath = join(process.cwd(), '.gitignore');
16
+ console.log();
17
+ try {
18
+ // Check if .gitignore exists
19
+ let existingContent = '';
20
+ let exists = false;
21
+ try {
22
+ await access(gitignorePath);
23
+ exists = true;
24
+ existingContent = await readFile(gitignorePath, 'utf-8');
25
+ }
26
+ catch {
27
+ // File doesn't exist
28
+ }
29
+ if (exists && !force) {
30
+ // Append missing entries
31
+ const lines = existingContent.split('\n');
32
+ const toAdd = [];
33
+ if (!lines.some(l => l.trim() === '*.tgz')) {
34
+ toAdd.push('*.tgz');
35
+ }
36
+ if (!lines.some(l => l.trim() === 'node_modules/')) {
37
+ toAdd.push('node_modules/');
38
+ }
39
+ if (toAdd.length === 0) {
40
+ console.log(chalk.dim('.gitignore already has skit entries'));
41
+ return;
42
+ }
43
+ const newContent = existingContent.trimEnd() + '\n\n# skit\n' + toAdd.join('\n') + '\n';
44
+ await writeFile(gitignorePath, newContent);
45
+ console.log(chalk.green('✓ Updated .gitignore'));
46
+ console.log(chalk.dim(` Added: ${toAdd.join(', ')}`));
47
+ }
48
+ else {
49
+ // Create new or overwrite
50
+ await writeFile(gitignorePath, DEFAULT_GITIGNORE);
51
+ console.log(chalk.green('✓ Created .gitignore'));
52
+ }
53
+ }
54
+ catch (error) {
55
+ console.error(chalk.red('Error:'), error instanceof Error ? error.message : String(error));
56
+ process.exitCode = 1;
57
+ }
58
+ }
59
+ //# sourceMappingURL=gitignore.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gitignore.js","sourceRoot":"","sources":["../../src/commands/gitignore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OA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O,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,qCAAqC,CAAC,CAAC,CAAC;gBAC9D,OAAO;YACT,CAAC;YAED,MAAM,UAAU,GAAG,eAAe,CAAC,OAAO,EAAE,GAAG,cAAc,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;YACxF,MAAM,SAAS,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;YAC3C,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC,CAAC;YACjD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,YAAY,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;QACzD,CAAC;aAAM,CAAC;YACN,0BAA0B;YAC1B,MAAM,SAAS,CAAC,aAAa,EAAE,iBAAiB,CAAC,CAAC;YAClD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC,CAAC;QACnD,CAAC;IACH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAC3F,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;IACvB,CAAC;AACH,CAAC"}
@@ -0,0 +1,9 @@
1
+ interface InfoOptions {
2
+ json?: boolean;
3
+ }
4
+ /**
5
+ * Info command handler
6
+ */
7
+ export declare function infoCommand(options: InfoOptions): Promise<void>;
8
+ export {};
9
+ //# sourceMappingURL=info.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"info.d.ts","sourceRoot":"","sources":["../../src/commands/info.ts"],"names":[],"mappings":"AAIA,UAAU,WAAW;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED;;GAEG;AACH,wBAAsB,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CA4FrE"}
@@ -0,0 +1,80 @@
1
+ import chalk from 'chalk';
2
+ import { parseSkitManifest } from '../utils/skit-parser.js';
3
+ import { DEFAULT_INSTALL_PATHS, PERMISSION_PACKS_PATH } from '../types/skit.js';
4
+ /**
5
+ * Info command handler
6
+ */
7
+ export async function infoCommand(options) {
8
+ const { json = false } = options;
9
+ try {
10
+ const manifest = await parseSkitManifest(process.cwd());
11
+ if (json) {
12
+ console.log(JSON.stringify(manifest, null, 2));
13
+ return;
14
+ }
15
+ console.log();
16
+ console.log(chalk.bold(`${manifest.name} ${chalk.cyan(`v${manifest.version}`)}`));
17
+ if (manifest.description) {
18
+ console.log(chalk.dim(` ${manifest.description}`));
19
+ }
20
+ console.log();
21
+ const componentTypes = ['profiles', 'prompts', 'packs'];
22
+ const hasComponents = componentTypes.some((type) => manifest.components[type] && manifest.components[type].length > 0);
23
+ if (hasComponents) {
24
+ console.log(chalk.bold('Components:'));
25
+ for (const type of componentTypes) {
26
+ const components = manifest.components[type];
27
+ if (!components || components.length === 0)
28
+ continue;
29
+ console.log(chalk.cyan(` ${type} (${components.length})`));
30
+ const maxShow = 7;
31
+ const componentsToShow = components.slice(0, maxShow);
32
+ const hasMore = components.length > maxShow;
33
+ componentsToShow.forEach((component, index) => {
34
+ const isLast = index === componentsToShow.length - 1 && !hasMore;
35
+ const prefix = isLast ? ' └─' : ' ├─';
36
+ const nameWithDesc = component.description
37
+ ? `${component.name} ${chalk.dim(`- ${component.description}`)}`
38
+ : component.name;
39
+ console.log(chalk.dim(`${prefix} ${nameWithDesc}`));
40
+ });
41
+ if (hasMore) {
42
+ const remaining = components.length - maxShow;
43
+ console.log(chalk.dim(` └─ ... and ${remaining} more`));
44
+ }
45
+ console.log();
46
+ }
47
+ }
48
+ console.log(chalk.bold('Install paths:'));
49
+ // File-based components (profiles, prompts)
50
+ const fileComponentTypes = ['profiles', 'prompts'];
51
+ for (const type of fileComponentTypes) {
52
+ const components = manifest.components[type];
53
+ if (components && components.length > 0) {
54
+ const targetPath = manifest.install?.[type] || DEFAULT_INSTALL_PATHS[type];
55
+ console.log(chalk.dim(` ${type} → ${targetPath}`));
56
+ }
57
+ }
58
+ // Packs (JSON merge into permission-packs.json)
59
+ if (manifest.components.packs && manifest.components.packs.length > 0) {
60
+ console.log(chalk.dim(` packs → ${PERMISSION_PACKS_PATH} (merge)`));
61
+ }
62
+ console.log();
63
+ if (manifest.files || manifest.exclude) {
64
+ console.log(chalk.bold('File patterns:'));
65
+ if (manifest.files) {
66
+ console.log(chalk.dim(` include: ${manifest.files.join(', ')}`));
67
+ }
68
+ if (manifest.exclude) {
69
+ console.log(chalk.dim(` exclude: ${manifest.exclude.join(', ')}`));
70
+ }
71
+ console.log();
72
+ }
73
+ }
74
+ catch (error) {
75
+ console.error();
76
+ console.error(chalk.red('Error:'), error instanceof Error ? error.message : String(error));
77
+ process.exitCode = 1;
78
+ }
79
+ }
80
+ //# sourceMappingURL=info.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"info.js","sourceRoot":"","sources":["../../src/commands/info.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAMhF;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,OAAoB;IACpD,MAAM,EAAE,IAAI,GAAG,KAAK,EAAE,GAAG,OAAO,CAAC;IAEjC,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,MAAM,iBAAiB,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;QAExD,IAAI,IAAI,EAAE,CAAC;YACT,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC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AC;QAChB,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAC3F,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;IACvB,CAAC;AACH,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * skit install command - CLI wrapper for lib.installSkit
3
+ */
4
+ interface InstallOptions {
5
+ verbose?: boolean;
6
+ dryRun?: boolean;
7
+ }
8
+ /**
9
+ * Install command handler - thin wrapper around lib.installSkit
10
+ */
11
+ export declare function installCommand(packageName: string, options: InstallOptions): Promise<void>;
12
+ export {};
13
+ //# sourceMappingURL=install.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../src/commands/install.ts"],"names":[],"mappings":"AAAA;;GAEG;AASH,UAAU,cAAc;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AA6GD;;GAEG;AACH,wBAAsB,cAAc,CAClC,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,cAAc,GACtB,OAAO,CAAC,IAAI,CAAC,CA2Cf"}