@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,127 +0,0 @@
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
- //# sourceMapp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IACvB,CAAC;AACH,CAAC"}
@@ -1,59 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"gitignore.js","sourceRoot":"","sources":["../../src/commands/gitignore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,SAAS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AC,eAAe,CAAC,CAAC;YAC9B,CAAC;YAED,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBACvB,OAAO,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"}
@@ -1,80 +0,0 @@
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
@@ -1 +0,0 @@
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,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;YAC/C,OAAO;QACT,CAAC;QAED,OAAO,CAAC,GAAG,EAAE,CAAC;QACd,OAAO,CAAC,GAAG,CACT,KAAK,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,QAAQ,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC,CACrE,CAAC;QAEF,IAAI,QAAQ,CAAC,WAAW,EAAE,CAAC;YACzB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,QAAQ,CAA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AK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACtE,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,aAAa,qBAAqB,UAAU,CAAC,CAAC,CAAC;QACvE,CAAC;QACD,OAAO,CAAC,GAAG,EAAE,CAAC;QAEd,IAAI,QAAQ,CAAC,KAAK,IAAI,QAAQ,CAAC,OAAO,EAAE,CAAC;YACvC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC;YAE1C,IAAI,QAAQ,CAAC,KAAK,EAAE,CAAC;gBACnB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,cAAc,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;YACpE,CAAC;YAED,IAAI,QAAQ,CAAC,OAAO,EAAE,CAAC;gBACrB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,cAAc,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;YACtE,CAAC;YAED,OAAO,CAAC,GAAG,EAAE,CAAC;QAChB,CAAC;IACH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,EAAE,CAAC;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"}
@@ -1,150 +0,0 @@
1
- /**
2
- * skit install command - CLI wrapper for lib.installSkit
3
- */
4
- import chalk from 'chalk';
5
- import { installSkit } from '../lib.js';
6
- import { parseSkitManifest } from '../utils/skit-parser.js';
7
- import { DEFAULT_INSTALL_PATHS, PERMISSION_PACKS_PATH } from '../types/skit.js';
8
- import { resolve, join } from 'node:path';
9
- import { stat, access } from 'node:fs/promises';
10
- /**
11
- * Check if path is a directory with skit.json (for dry-run preview)
12
- */
13
- async function isLocalDirectory(packagePath) {
14
- const absolutePath = resolve(packagePath);
15
- try {
16
- const stats = await stat(absolutePath);
17
- if (!stats.isDirectory())
18
- return false;
19
- await access(join(absolutePath, 'skit.json'));
20
- return true;
21
- }
22
- catch {
23
- return false;
24
- }
25
- }
26
- /**
27
- * Print installation summary
28
- */
29
- function printSummary(summary, verbose) {
30
- console.log();
31
- console.log(chalk.bold(`Installed ${summary.packageName}@${summary.version}`));
32
- console.log();
33
- if (summary.failCount > 0) {
34
- console.log(chalk.red(` ${summary.failCount} component(s) failed to install`));
35
- }
36
- if (verbose || summary.failCount > 0) {
37
- for (const result of summary.results) {
38
- const icon = result.success ? chalk.green('✓') : chalk.red('✗');
39
- const status = result.success
40
- ? chalk.dim(`→ ${result.targetPath}`)
41
- : chalk.red(result.error || 'Unknown error');
42
- console.log(` ${icon} ${result.component.name} ${status}`);
43
- }
44
- }
45
- else {
46
- console.log(chalk.green(` ✓ ${summary.successCount} component(s) installed`));
47
- // Group by type
48
- const byType = new Map();
49
- for (const result of summary.results) {
50
- if (result.success) {
51
- byType.set(result.type, (byType.get(result.type) || 0) + 1);
52
- }
53
- }
54
- for (const [type, count] of byType) {
55
- console.log(chalk.dim(` ${count} ${type}`));
56
- }
57
- }
58
- console.log();
59
- }
60
- /**
61
- * Print dry-run preview
62
- */
63
- async function printDryRunPreview(packageName) {
64
- const isDirectory = await isLocalDirectory(packageName);
65
- if (!isDirectory) {
66
- console.log(chalk.yellow(' [dry-run] Would download and install package'));
67
- return;
68
- }
69
- const manifest = await parseSkitManifest(resolve(packageName));
70
- console.log(chalk.yellow(' [dry-run] Would install components:'));
71
- // Show CLIs
72
- if (manifest.components.clis && manifest.components.clis.length > 0) {
73
- console.log(chalk.dim(` clis:`));
74
- for (const cli of manifest.components.clis) {
75
- console.log(chalk.dim(` - ${cli.name} (${cli.package})`));
76
- }
77
- }
78
- // Show file-based components
79
- const fileComponentTypes = ['profiles', 'prompts', 'states'];
80
- for (const type of fileComponentTypes) {
81
- const components = manifest.components[type];
82
- if (components && components.length > 0) {
83
- const targetDir = manifest.install?.[type] || DEFAULT_INSTALL_PATHS[type];
84
- console.log(chalk.dim(` ${type} → ${targetDir}`));
85
- for (const c of components) {
86
- console.log(chalk.dim(` - ${c.name}`));
87
- }
88
- }
89
- }
90
- // Show packs
91
- if (manifest.components.packs && manifest.components.packs.length > 0) {
92
- console.log(chalk.dim(` packs → ${PERMISSION_PACKS_PATH} (merge)`));
93
- for (const c of manifest.components.packs) {
94
- console.log(chalk.dim(` - ${c.name}`));
95
- }
96
- }
97
- // Show hooks
98
- if (manifest.components.hooks && manifest.components.hooks.length > 0) {
99
- console.log(chalk.dim(` hooks:`));
100
- for (const h of manifest.components.hooks) {
101
- console.log(chalk.dim(` - ${h.name} (${h.type}) → ~/.${h.type}/hooks/${h.name}/`));
102
- }
103
- }
104
- console.log();
105
- }
106
- /**
107
- * Install command handler - thin wrapper around lib.installSkit
108
- */
109
- export async function installCommand(packageName, options) {
110
- const { verbose = false, dryRun = false } = options;
111
- console.log();
112
- console.log(chalk.cyan(`Installing ${packageName}...`));
113
- if (dryRun) {
114
- try {
115
- await printDryRunPreview(packageName);
116
- }
117
- catch (error) {
118
- console.error(chalk.red('Error:'), error instanceof Error ? error.message : String(error));
119
- process.exitCode = 1;
120
- }
121
- return;
122
- }
123
- // Use lib function with progress callback
124
- const result = await installSkit(packageName, {
125
- dryRun,
126
- onProgress: (message) => {
127
- if (verbose) {
128
- console.log(chalk.dim(` ${message}`));
129
- }
130
- },
131
- });
132
- if (!result.success) {
133
- console.error();
134
- console.error(chalk.red('Error:'), result.error);
135
- process.exitCode = 1;
136
- return;
137
- }
138
- if (result.summary) {
139
- printSummary(result.summary, verbose);
140
- if (result.summary.failCount > 0) {
141
- process.exitCode = 1;
142
- }
143
- }
144
- else {
145
- console.log();
146
- console.log(chalk.bold(`Installed ${result.packageName}@${result.version}`));
147
- console.log();
148
- }
149
- }
150
- //# sourceMappingURL=install.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"install.js","sourceRoot":"","sources":["../../src/commands/install.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAA0B,MAAM,WAAW,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAuB,MAAM,kBAAkB,CAAC;AACrG,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAOhD;;GAEG;AACH,KAAK,UAAU,gBAAgB,CAAC,WAAmB;IACjD,MAAM,YAAY,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAC1C,IAAI,CAAC;QACH,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,CAAC;QACvC,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE;YAAE,OAAO,KAAK,CAAC;QACvC,MAAM,MAAM,CAAC,IAAI,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC,CAAC;QAC9C,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAED;;GAEG;AACH,SAAS,YAAY,CAAC,OAAuB,EAAE,OAAgB;IAC7D,OAAO,CAAC,GAAG,EAAE,CAAC;IACd,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,OAAO,CAAC,WAAW,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;IAC/E,OAAO,CAAC,GAAG,EAAE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C;IAEH,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QACpB,OAAO,CAAC,KAAK,EAAE,CAAC;QAChB,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;QACjD,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;QACrB,OAAO;IACT,CAAC;IAED,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;QACnB,YAAY,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACtC,IAAI,MAAM,CAAC,OAAO,CAAC,SAAS,GAAG,CAAC,EAAE,CAAC;YACjC,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;QACvB,CAAC;IACH,CAAC;SAAM,CAAC;QACN,OAAO,CAAC,GAAG,EAAE,CAAC;QACd,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,MAAM,CAAC,WAAW,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;QAC7E,OAAO,CAAC,GAAG,EAAE,CAAC;IAChB,CAAC;AACH,CAAC"}
@@ -1,9 +0,0 @@
1
- interface LicensesOptions {
2
- json?: boolean;
3
- }
4
- /**
5
- * Licenses command handler
6
- */
7
- export declare function licensesCommand(options: LicensesOptions): Promise<void>;
8
- export {};
9
- //# sourceMappingURL=licenses.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"licenses.d.ts","sourceRoot":"","sources":["../../src/commands/licenses.ts"],"names":[],"mappings":"AAGA,UAAU,eAAe;IACvB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAyDD;;GAEG;AACH,wBAAsB,eAAe,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAyF7E"}
@@ -1,125 +0,0 @@
1
- import chalk from 'chalk';
2
- import { marketplaceFetch, isLoggedIn } from '../utils/auth.js';
3
- /**
4
- * Format license status with color
5
- */
6
- function formatStatus(status, expiresAt) {
7
- if (status === 'active') {
8
- if (expiresAt) {
9
- const expDate = new Date(expiresAt);
10
- const now = new Date();
11
- if (expDate < now) {
12
- return chalk.red('expired');
13
- }
14
- const daysLeft = Math.ceil((expDate.getTime() - now.getTime()) / (1000 * 60 * 60 * 24));
15
- if (daysLeft <= 7) {
16
- return chalk.yellow(`active (${daysLeft}d left)`);
17
- }
18
- }
19
- return chalk.green('active');
20
- }
21
- else if (status === 'expired') {
22
- return chalk.red('expired');
23
- }
24
- else if (status === 'cancelled') {
25
- return chalk.dim('cancelled');
26
- }
27
- return status;
28
- }
29
- /**
30
- * Format license type
31
- */
32
- function formatType(type) {
33
- switch (type) {
34
- case 'free':
35
- return chalk.cyan('free');
36
- case 'subscription':
37
- return chalk.yellow('subscription');
38
- case 'perpetual':
39
- return chalk.green('perpetual');
40
- default:
41
- return type;
42
- }
43
- }
44
- /**
45
- * Licenses command handler
46
- */
47
- export async function licensesCommand(options) {
48
- const { json = false } = options;
49
- if (!json) {
50
- console.log();
51
- }
52
- try {
53
- // Check if logged in
54
- if (!(await isLoggedIn())) {
55
- if (json) {
56
- console.log(JSON.stringify({ error: 'Not logged in', licenses: [] }));
57
- }
58
- else {
59
- console.error(chalk.red('You must be logged in to view licenses.'));
60
- console.log(chalk.dim('Use `skit login` to sign in.'));
61
- console.log();
62
- }
63
- process.exitCode = 1;
64
- return;
65
- }
66
- if (!json) {
67
- console.log(chalk.dim('Fetching licenses...'));
68
- }
69
- // Fetch licenses from marketplace
70
- const response = await marketplaceFetch('/my/licenses');
71
- if (!response.ok) {
72
- const error = await response.json();
73
- throw new Error(error.message || error.error || 'Failed to fetch licenses');
74
- }
75
- const data = await response.json();
76
- if (json) {
77
- console.log(JSON.stringify(data));
78
- return;
79
- }
80
- console.log();
81
- if (data.licenses.length === 0) {
82
- console.log(chalk.yellow('No licenses found.'));
83
- console.log(chalk.dim('Purchase packages with: skit purchase <package>'));
84
- console.log();
85
- return;
86
- }
87
- console.log(chalk.bold(`Your Licenses (${data.licenses.length})`));
88
- console.log();
89
- // Group by status
90
- const active = data.licenses.filter(l => l.status === 'active');
91
- const other = data.licenses.filter(l => l.status !== 'active');
92
- for (const license of active) {
93
- const fullName = `@${license.package_org}/${license.package_name}`;
94
- const status = formatStatus(license.status, license.expires_at);
95
- const type = formatType(license.type);
96
- console.log(` ${chalk.cyan(fullName)}`);
97
- console.log(` Type: ${type} Status: ${status}`);
98
- if (license.expires_at) {
99
- const expDate = new Date(license.expires_at);
100
- console.log(chalk.dim(` Expires: ${expDate.toLocaleDateString()}`));
101
- }
102
- console.log();
103
- }
104
- if (other.length > 0) {
105
- console.log(chalk.dim('Inactive Licenses:'));
106
- for (const license of other) {
107
- const fullName = `@${license.package_org}/${license.package_name}`;
108
- const status = formatStatus(license.status);
109
- console.log(chalk.dim(` ${fullName} - ${status}`));
110
- }
111
- console.log();
112
- }
113
- }
114
- catch (error) {
115
- if (json) {
116
- console.log(JSON.stringify({ error: error instanceof Error ? error.message : String(error), licenses: [] }));
117
- }
118
- else {
119
- console.error();
120
- console.error(chalk.red('Error:'), error instanceof Error ? error.message : String(error));
121
- }
122
- process.exitCode = 1;
123
- }
124
- }
125
- //# sourceMappingURL=licenses.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"licenses.js","sourceRoot":"","sources":["../../src/commands/licenses.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAoBhE;;GAEG;AACH,SAAS,YAAY,CAAC,MAAc,EAAE,SAAkB;IACtD,IAAI,MAAM,KAAK,QAAQ,EAAE,CAAC;QACxB,IAAI,SAAS,EAAE,CAAC;YACd,MAAM,OAAO,GAAG,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC;YACpC,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC;YACvB,IAAI,OAAO,GAAG,GAAG,EAA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AAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAC7F,CAAC;QACD,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;IACvB,CAAC;AACH,CAAC"}
@@ -1,41 +0,0 @@
1
- /**
2
- * skit list command - CLI wrapper for lib.listSkits
3
- */
4
- import chalk from 'chalk';
5
- import { listSkits } from '../lib.js';
6
- /**
7
- * List command handler - thin wrapper around lib.listSkits
8
- */
9
- export async function listCommand(options) {
10
- const { json = false } = options;
11
- try {
12
- const registry = await listSkits();
13
- const entries = Object.entries(registry);
14
- if (json) {
15
- console.log(JSON.stringify(registry, null, 2));
16
- return;
17
- }
18
- if (entries.length === 0) {
19
- console.log(chalk.dim('No kits installed'));
20
- console.log(chalk.dim('Use `skit install <package>` to install a kit'));
21
- return;
22
- }
23
- console.log();
24
- console.log(chalk.bold('Installed kits:'));
25
- console.log();
26
- // Calculate column widths
27
- const maxNameLen = Math.max(...entries.map(([name]) => name.length), 10);
28
- for (const [name, kit] of entries) {
29
- const version = chalk.cyan(`v${kit.version}`);
30
- const fileCount = chalk.dim(`(${kit.files.length} file${kit.files.length === 1 ? '' : 's'})`);
31
- const paddedName = name.padEnd(maxNameLen + 2);
32
- console.log(` ${paddedName} ${version} ${fileCount}`);
33
- }
34
- console.log();
35
- }
36
- catch (error) {
37
- console.error(chalk.red('Error:'), error instanceof Error ? error.message : String(error));
38
- process.exitCode = 1;
39
- }
40
- }
41
- //# sourceMappingURL=list.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"list.js","sourceRoot":"","sources":["../../src/commands/list.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAMtC;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,OAAoB;IACpD,MAAM,EAAE,IAAI,GAAG,KAAK,EAAE,GAAG,OAAO,CAAC;IAEjC,IAAI,CAAC;QACH,MAA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