@microwiseai/snapshot 0.3.31 → 0.3.36

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 (485) 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 +122 -27
  4. package/dist/commands/install.js.map +1 -1
  5. package/dist/commands/license.d.ts.map +1 -1
  6. package/dist/commands/license.js +8 -11
  7. package/dist/commands/license.js.map +1 -1
  8. package/dist/index.js +7 -1
  9. package/dist/index.js.map +1 -1
  10. package/dist/lib/access-sync.d.ts.map +1 -1
  11. package/dist/lib/access-sync.js +2 -3
  12. package/dist/lib/access-sync.js.map +1 -1
  13. package/dist/lib/config.d.ts +11 -7
  14. package/dist/lib/config.d.ts.map +1 -1
  15. package/dist/lib/config.js +22 -13
  16. package/dist/lib/config.js.map +1 -1
  17. package/dist/lib/config.test.d.ts +2 -0
  18. package/dist/lib/config.test.d.ts.map +1 -0
  19. package/dist/lib/config.test.js +186 -0
  20. package/dist/lib/config.test.js.map +1 -0
  21. package/dist/lib/gitlab.d.ts.map +1 -1
  22. package/dist/lib/gitlab.js +5 -13
  23. package/dist/lib/gitlab.js.map +1 -1
  24. package/dist/lib/package-resolver.js +2 -2
  25. package/dist/lib/package-resolver.js.map +1 -1
  26. package/dist/lib/session.d.ts +37 -0
  27. package/dist/lib/session.d.ts.map +1 -0
  28. package/dist/lib/session.js +77 -0
  29. package/dist/lib/session.js.map +1 -0
  30. package/dist/lib/skit-adapter.d.ts +5 -5
  31. package/dist/lib/skit-adapter.d.ts.map +1 -1
  32. package/dist/lib/skit-adapter.js +58 -21
  33. package/dist/lib/skit-adapter.js.map +1 -1
  34. package/dist/lib/transitive-resolver.d.ts +4 -1
  35. package/dist/lib/transitive-resolver.d.ts.map +1 -1
  36. package/dist/lib/transitive-resolver.js +13 -8
  37. package/dist/lib/transitive-resolver.js.map +1 -1
  38. package/dist/lib/transitive-resolver.test.d.ts +2 -0
  39. package/dist/lib/transitive-resolver.test.d.ts.map +1 -0
  40. package/dist/lib/transitive-resolver.test.js +279 -0
  41. package/dist/lib/transitive-resolver.test.js.map +1 -0
  42. package/node_modules/@isaacs/fs-minipass/LICENSE +15 -0
  43. package/node_modules/@isaacs/fs-minipass/README.md +71 -0
  44. package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts +118 -0
  45. package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts.map +1 -0
  46. package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js +430 -0
  47. package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js.map +1 -0
  48. package/node_modules/@isaacs/fs-minipass/dist/commonjs/package.json +3 -0
  49. package/node_modules/@isaacs/fs-minipass/dist/esm/index.d.ts +118 -0
  50. package/node_modules/@isaacs/fs-minipass/dist/esm/index.d.ts.map +1 -0
  51. package/node_modules/@isaacs/fs-minipass/dist/esm/index.js +420 -0
  52. package/node_modules/@isaacs/fs-minipass/dist/esm/index.js.map +1 -0
  53. package/node_modules/@isaacs/fs-minipass/dist/esm/package.json +3 -0
  54. package/node_modules/@isaacs/fs-minipass/package.json +72 -0
  55. package/node_modules/@ist/registry-config/dist/index.d.ts +3 -0
  56. package/node_modules/@ist/registry-config/dist/index.js +3 -0
  57. package/node_modules/@ist/registry-config/dist/registry-url.d.ts +1 -0
  58. package/node_modules/@ist/registry-config/dist/registry-url.js +1 -0
  59. package/node_modules/@ist/registry-config/dist/scope-mapping.d.ts +6 -0
  60. package/node_modules/@ist/registry-config/dist/scope-mapping.js +7 -0
  61. package/node_modules/@ist/registry-config/dist/types.d.ts +4 -0
  62. package/node_modules/@ist/registry-config/dist/types.js +1 -0
  63. package/node_modules/@ist/registry-config/package.json +32 -0
  64. package/node_modules/@ist/skit/README.md +204 -0
  65. package/node_modules/@ist/skit/dist/commands/browse.d.ts +9 -0
  66. package/node_modules/@ist/skit/dist/commands/browse.d.ts.map +1 -0
  67. package/node_modules/@ist/skit/dist/commands/browse.js +127 -0
  68. package/node_modules/@ist/skit/dist/commands/browse.js.map +1 -0
  69. package/node_modules/@ist/skit/dist/commands/gitignore.d.ts +9 -0
  70. package/node_modules/@ist/skit/dist/commands/gitignore.d.ts.map +1 -0
  71. package/node_modules/@ist/skit/dist/commands/gitignore.js +59 -0
  72. package/node_modules/@ist/skit/dist/commands/gitignore.js.map +1 -0
  73. package/node_modules/@ist/skit/dist/commands/info.d.ts +9 -0
  74. package/node_modules/@ist/skit/dist/commands/info.d.ts.map +1 -0
  75. package/node_modules/@ist/skit/dist/commands/info.js +80 -0
  76. package/node_modules/@ist/skit/dist/commands/info.js.map +1 -0
  77. package/node_modules/@ist/skit/dist/commands/install.d.ts +13 -0
  78. package/node_modules/@ist/skit/dist/commands/install.d.ts.map +1 -0
  79. package/node_modules/@ist/skit/dist/commands/install.js +150 -0
  80. package/node_modules/@ist/skit/dist/commands/install.js.map +1 -0
  81. package/node_modules/@ist/skit/dist/commands/licenses.d.ts +9 -0
  82. package/node_modules/@ist/skit/dist/commands/licenses.d.ts.map +1 -0
  83. package/node_modules/@ist/skit/dist/commands/licenses.js +125 -0
  84. package/node_modules/@ist/skit/dist/commands/licenses.js.map +1 -0
  85. package/node_modules/@ist/skit/dist/commands/list.d.ts +12 -0
  86. package/node_modules/@ist/skit/dist/commands/list.d.ts.map +1 -0
  87. package/node_modules/@ist/skit/dist/commands/list.js +41 -0
  88. package/node_modules/@ist/skit/dist/commands/list.js.map +1 -0
  89. package/node_modules/@ist/skit/dist/commands/login.d.ts +10 -0
  90. package/node_modules/@ist/skit/dist/commands/login.d.ts.map +1 -0
  91. package/node_modules/@ist/skit/dist/commands/login.js +112 -0
  92. package/node_modules/@ist/skit/dist/commands/login.js.map +1 -0
  93. package/node_modules/@ist/skit/dist/commands/logout.d.ts +5 -0
  94. package/node_modules/@ist/skit/dist/commands/logout.d.ts.map +1 -0
  95. package/node_modules/@ist/skit/dist/commands/logout.js +30 -0
  96. package/node_modules/@ist/skit/dist/commands/logout.js.map +1 -0
  97. package/node_modules/@ist/skit/dist/commands/pack.d.ts +10 -0
  98. package/node_modules/@ist/skit/dist/commands/pack.d.ts.map +1 -0
  99. package/node_modules/@ist/skit/dist/commands/pack.js +185 -0
  100. package/node_modules/@ist/skit/dist/commands/pack.js.map +1 -0
  101. package/node_modules/@ist/skit/dist/commands/publish.d.ts +11 -0
  102. package/node_modules/@ist/skit/dist/commands/publish.d.ts.map +1 -0
  103. package/node_modules/@ist/skit/dist/commands/publish.js +108 -0
  104. package/node_modules/@ist/skit/dist/commands/publish.js.map +1 -0
  105. package/node_modules/@ist/skit/dist/commands/purchase.d.ts +9 -0
  106. package/node_modules/@ist/skit/dist/commands/purchase.d.ts.map +1 -0
  107. package/node_modules/@ist/skit/dist/commands/purchase.js +160 -0
  108. package/node_modules/@ist/skit/dist/commands/purchase.js.map +1 -0
  109. package/node_modules/@ist/skit/dist/commands/register.d.ts +10 -0
  110. package/node_modules/@ist/skit/dist/commands/register.d.ts.map +1 -0
  111. package/node_modules/@ist/skit/dist/commands/register.js +121 -0
  112. package/node_modules/@ist/skit/dist/commands/register.js.map +1 -0
  113. package/node_modules/@ist/skit/dist/commands/uninstall.d.ts +13 -0
  114. package/node_modules/@ist/skit/dist/commands/uninstall.d.ts.map +1 -0
  115. package/node_modules/@ist/skit/dist/commands/uninstall.js +138 -0
  116. package/node_modules/@ist/skit/dist/commands/uninstall.js.map +1 -0
  117. package/node_modules/@ist/skit/dist/commands/whoami.d.ts +9 -0
  118. package/node_modules/@ist/skit/dist/commands/whoami.d.ts.map +1 -0
  119. package/node_modules/@ist/skit/dist/commands/whoami.js +79 -0
  120. package/node_modules/@ist/skit/dist/commands/whoami.js.map +1 -0
  121. package/node_modules/@ist/skit/dist/index.d.ts +3 -0
  122. package/node_modules/@ist/skit/dist/index.d.ts.map +1 -0
  123. package/node_modules/@ist/skit/dist/index.js +69 -0
  124. package/node_modules/@ist/skit/dist/index.js.map +1 -0
  125. package/node_modules/@ist/skit/dist/lib.d.ts +144 -0
  126. package/node_modules/@ist/skit/dist/lib.d.ts.map +1 -0
  127. package/node_modules/@ist/skit/dist/lib.js +542 -0
  128. package/node_modules/@ist/skit/dist/lib.js.map +1 -0
  129. package/node_modules/@ist/skit/dist/types/skit.d.ts +155 -0
  130. package/node_modules/@ist/skit/dist/types/skit.d.ts.map +1 -0
  131. package/node_modules/@ist/skit/dist/types/skit.js +20 -0
  132. package/node_modules/@ist/skit/dist/types/skit.js.map +1 -0
  133. package/node_modules/@ist/skit/dist/utils/api.d.ts +18 -0
  134. package/node_modules/@ist/skit/dist/utils/api.d.ts.map +1 -0
  135. package/node_modules/@ist/skit/dist/utils/api.js +26 -0
  136. package/node_modules/@ist/skit/dist/utils/api.js.map +1 -0
  137. package/node_modules/@ist/skit/dist/utils/auth.d.ts +62 -0
  138. package/node_modules/@ist/skit/dist/utils/auth.d.ts.map +1 -0
  139. package/node_modules/@ist/skit/dist/utils/auth.js +172 -0
  140. package/node_modules/@ist/skit/dist/utils/auth.js.map +1 -0
  141. package/node_modules/@ist/skit/dist/utils/file-copy.d.ts +26 -0
  142. package/node_modules/@ist/skit/dist/utils/file-copy.d.ts.map +1 -0
  143. package/node_modules/@ist/skit/dist/utils/file-copy.js +219 -0
  144. package/node_modules/@ist/skit/dist/utils/file-copy.js.map +1 -0
  145. package/node_modules/@ist/skit/dist/utils/hook-installer.d.ts +21 -0
  146. package/node_modules/@ist/skit/dist/utils/hook-installer.d.ts.map +1 -0
  147. package/node_modules/@ist/skit/dist/utils/hook-installer.js +98 -0
  148. package/node_modules/@ist/skit/dist/utils/hook-installer.js.map +1 -0
  149. package/node_modules/@ist/skit/dist/utils/installed-registry.d.ts +50 -0
  150. package/node_modules/@ist/skit/dist/utils/installed-registry.d.ts.map +1 -0
  151. package/node_modules/@ist/skit/dist/utils/installed-registry.js +108 -0
  152. package/node_modules/@ist/skit/dist/utils/installed-registry.js.map +1 -0
  153. package/node_modules/@ist/skit/dist/utils/skit-parser.d.ts +10 -0
  154. package/node_modules/@ist/skit/dist/utils/skit-parser.d.ts.map +1 -0
  155. package/node_modules/@ist/skit/dist/utils/skit-parser.js +52 -0
  156. package/node_modules/@ist/skit/dist/utils/skit-parser.js.map +1 -0
  157. package/node_modules/@ist/skit/dist/utils/wrapper-generator.d.ts +74 -0
  158. package/node_modules/@ist/skit/dist/utils/wrapper-generator.d.ts.map +1 -0
  159. package/node_modules/@ist/skit/dist/utils/wrapper-generator.js +280 -0
  160. package/node_modules/@ist/skit/dist/utils/wrapper-generator.js.map +1 -0
  161. package/node_modules/@ist/skit/package.json +54 -0
  162. package/node_modules/chownr/LICENSE.md +63 -0
  163. package/node_modules/chownr/README.md +3 -0
  164. package/node_modules/chownr/dist/commonjs/index.d.ts +3 -0
  165. package/node_modules/chownr/dist/commonjs/index.d.ts.map +1 -0
  166. package/node_modules/chownr/dist/commonjs/index.js +93 -0
  167. package/node_modules/chownr/dist/commonjs/index.js.map +1 -0
  168. package/node_modules/chownr/dist/commonjs/package.json +3 -0
  169. package/node_modules/chownr/dist/esm/index.d.ts +3 -0
  170. package/node_modules/chownr/dist/esm/index.d.ts.map +1 -0
  171. package/node_modules/chownr/dist/esm/index.js +85 -0
  172. package/node_modules/chownr/dist/esm/index.js.map +1 -0
  173. package/node_modules/chownr/dist/esm/package.json +3 -0
  174. package/node_modules/chownr/package.json +69 -0
  175. package/node_modules/commander/LICENSE +22 -0
  176. package/node_modules/commander/Readme.md +1157 -0
  177. package/node_modules/commander/esm.mjs +16 -0
  178. package/node_modules/commander/index.js +24 -0
  179. package/node_modules/commander/lib/argument.js +149 -0
  180. package/node_modules/commander/lib/command.js +2509 -0
  181. package/node_modules/commander/lib/error.js +39 -0
  182. package/node_modules/commander/lib/help.js +520 -0
  183. package/node_modules/commander/lib/option.js +330 -0
  184. package/node_modules/commander/lib/suggestSimilar.js +101 -0
  185. package/node_modules/commander/package-support.json +16 -0
  186. package/node_modules/commander/package.json +84 -0
  187. package/node_modules/commander/typings/esm.d.mts +3 -0
  188. package/node_modules/commander/typings/index.d.ts +969 -0
  189. package/node_modules/minipass/LICENSE.md +55 -0
  190. package/node_modules/minipass/README.md +825 -0
  191. package/node_modules/minipass/dist/commonjs/index.d.ts +545 -0
  192. package/node_modules/minipass/dist/commonjs/index.d.ts.map +1 -0
  193. package/node_modules/minipass/dist/commonjs/index.js +1038 -0
  194. package/node_modules/minipass/dist/commonjs/index.js.map +1 -0
  195. package/node_modules/minipass/dist/commonjs/package.json +3 -0
  196. package/node_modules/minipass/dist/esm/index.d.ts +545 -0
  197. package/node_modules/minipass/dist/esm/index.d.ts.map +1 -0
  198. package/node_modules/minipass/dist/esm/index.js +1020 -0
  199. package/node_modules/minipass/dist/esm/index.js.map +1 -0
  200. package/node_modules/minipass/dist/esm/package.json +3 -0
  201. package/node_modules/minipass/package.json +77 -0
  202. package/node_modules/minizlib/LICENSE +26 -0
  203. package/node_modules/minizlib/README.md +64 -0
  204. package/node_modules/minizlib/dist/commonjs/constants.d.ts +2 -0
  205. package/node_modules/minizlib/dist/commonjs/constants.d.ts.map +1 -0
  206. package/node_modules/minizlib/dist/commonjs/constants.js +123 -0
  207. package/node_modules/minizlib/dist/commonjs/constants.js.map +1 -0
  208. package/node_modules/minizlib/dist/commonjs/index.d.ts +99 -0
  209. package/node_modules/minizlib/dist/commonjs/index.d.ts.map +1 -0
  210. package/node_modules/minizlib/dist/commonjs/index.js +416 -0
  211. package/node_modules/minizlib/dist/commonjs/index.js.map +1 -0
  212. package/node_modules/minizlib/dist/commonjs/package.json +3 -0
  213. package/node_modules/minizlib/dist/esm/constants.d.ts +2 -0
  214. package/node_modules/minizlib/dist/esm/constants.d.ts.map +1 -0
  215. package/node_modules/minizlib/dist/esm/constants.js +117 -0
  216. package/node_modules/minizlib/dist/esm/constants.js.map +1 -0
  217. package/node_modules/minizlib/dist/esm/index.d.ts +99 -0
  218. package/node_modules/minizlib/dist/esm/index.d.ts.map +1 -0
  219. package/node_modules/minizlib/dist/esm/index.js +363 -0
  220. package/node_modules/minizlib/dist/esm/index.js.map +1 -0
  221. package/node_modules/minizlib/dist/esm/package.json +3 -0
  222. package/node_modules/minizlib/package.json +80 -0
  223. package/node_modules/tar/LICENSE.md +55 -0
  224. package/node_modules/tar/README.md +1224 -0
  225. package/node_modules/tar/dist/commonjs/create.d.ts +3 -0
  226. package/node_modules/tar/dist/commonjs/create.d.ts.map +1 -0
  227. package/node_modules/tar/dist/commonjs/create.js +82 -0
  228. package/node_modules/tar/dist/commonjs/create.js.map +1 -0
  229. package/node_modules/tar/dist/commonjs/cwd-error.d.ts +8 -0
  230. package/node_modules/tar/dist/commonjs/cwd-error.d.ts.map +1 -0
  231. package/node_modules/tar/dist/commonjs/cwd-error.js +18 -0
  232. package/node_modules/tar/dist/commonjs/cwd-error.js.map +1 -0
  233. package/node_modules/tar/dist/commonjs/extract.d.ts +3 -0
  234. package/node_modules/tar/dist/commonjs/extract.d.ts.map +1 -0
  235. package/node_modules/tar/dist/commonjs/extract.js +88 -0
  236. package/node_modules/tar/dist/commonjs/extract.js.map +1 -0
  237. package/node_modules/tar/dist/commonjs/get-write-flag.d.ts +2 -0
  238. package/node_modules/tar/dist/commonjs/get-write-flag.d.ts.map +1 -0
  239. package/node_modules/tar/dist/commonjs/get-write-flag.js +32 -0
  240. package/node_modules/tar/dist/commonjs/get-write-flag.js.map +1 -0
  241. package/node_modules/tar/dist/commonjs/header.d.ts +53 -0
  242. package/node_modules/tar/dist/commonjs/header.d.ts.map +1 -0
  243. package/node_modules/tar/dist/commonjs/header.js +312 -0
  244. package/node_modules/tar/dist/commonjs/header.js.map +1 -0
  245. package/node_modules/tar/dist/commonjs/index.d.ts +20 -0
  246. package/node_modules/tar/dist/commonjs/index.d.ts.map +1 -0
  247. package/node_modules/tar/dist/commonjs/index.js +64 -0
  248. package/node_modules/tar/dist/commonjs/index.js.map +1 -0
  249. package/node_modules/tar/dist/commonjs/index.min.js +4 -0
  250. package/node_modules/tar/dist/commonjs/index.min.js.map +7 -0
  251. package/node_modules/tar/dist/commonjs/large-numbers.d.ts +3 -0
  252. package/node_modules/tar/dist/commonjs/large-numbers.d.ts.map +1 -0
  253. package/node_modules/tar/dist/commonjs/large-numbers.js +99 -0
  254. package/node_modules/tar/dist/commonjs/large-numbers.js.map +1 -0
  255. package/node_modules/tar/dist/commonjs/list.d.ts +7 -0
  256. package/node_modules/tar/dist/commonjs/list.d.ts.map +1 -0
  257. package/node_modules/tar/dist/commonjs/list.js +145 -0
  258. package/node_modules/tar/dist/commonjs/list.js.map +1 -0
  259. package/node_modules/tar/dist/commonjs/make-command.d.ts +49 -0
  260. package/node_modules/tar/dist/commonjs/make-command.d.ts.map +1 -0
  261. package/node_modules/tar/dist/commonjs/make-command.js +52 -0
  262. package/node_modules/tar/dist/commonjs/make-command.js.map +1 -0
  263. package/node_modules/tar/dist/commonjs/mkdir.d.ts +25 -0
  264. package/node_modules/tar/dist/commonjs/mkdir.d.ts.map +1 -0
  265. package/node_modules/tar/dist/commonjs/mkdir.js +187 -0
  266. package/node_modules/tar/dist/commonjs/mkdir.js.map +1 -0
  267. package/node_modules/tar/dist/commonjs/mode-fix.d.ts +2 -0
  268. package/node_modules/tar/dist/commonjs/mode-fix.d.ts.map +1 -0
  269. package/node_modules/tar/dist/commonjs/mode-fix.js +29 -0
  270. package/node_modules/tar/dist/commonjs/mode-fix.js.map +1 -0
  271. package/node_modules/tar/dist/commonjs/normalize-unicode.d.ts +2 -0
  272. package/node_modules/tar/dist/commonjs/normalize-unicode.d.ts.map +1 -0
  273. package/node_modules/tar/dist/commonjs/normalize-unicode.js +38 -0
  274. package/node_modules/tar/dist/commonjs/normalize-unicode.js.map +1 -0
  275. package/node_modules/tar/dist/commonjs/normalize-windows-path.d.ts +2 -0
  276. package/node_modules/tar/dist/commonjs/normalize-windows-path.d.ts.map +1 -0
  277. package/node_modules/tar/dist/commonjs/normalize-windows-path.js +12 -0
  278. package/node_modules/tar/dist/commonjs/normalize-windows-path.js.map +1 -0
  279. package/node_modules/tar/dist/commonjs/options.d.ts +596 -0
  280. package/node_modules/tar/dist/commonjs/options.d.ts.map +1 -0
  281. package/node_modules/tar/dist/commonjs/options.js +66 -0
  282. package/node_modules/tar/dist/commonjs/options.js.map +1 -0
  283. package/node_modules/tar/dist/commonjs/pack.d.ts +102 -0
  284. package/node_modules/tar/dist/commonjs/pack.d.ts.map +1 -0
  285. package/node_modules/tar/dist/commonjs/pack.js +511 -0
  286. package/node_modules/tar/dist/commonjs/pack.js.map +1 -0
  287. package/node_modules/tar/dist/commonjs/package.json +3 -0
  288. package/node_modules/tar/dist/commonjs/parse.d.ts +85 -0
  289. package/node_modules/tar/dist/commonjs/parse.d.ts.map +1 -0
  290. package/node_modules/tar/dist/commonjs/parse.js +610 -0
  291. package/node_modules/tar/dist/commonjs/parse.js.map +1 -0
  292. package/node_modules/tar/dist/commonjs/path-reservations.d.ts +11 -0
  293. package/node_modules/tar/dist/commonjs/path-reservations.d.ts.map +1 -0
  294. package/node_modules/tar/dist/commonjs/path-reservations.js +170 -0
  295. package/node_modules/tar/dist/commonjs/path-reservations.js.map +1 -0
  296. package/node_modules/tar/dist/commonjs/pax.d.ts +26 -0
  297. package/node_modules/tar/dist/commonjs/pax.d.ts.map +1 -0
  298. package/node_modules/tar/dist/commonjs/pax.js +158 -0
  299. package/node_modules/tar/dist/commonjs/pax.js.map +1 -0
  300. package/node_modules/tar/dist/commonjs/process-umask.d.ts +2 -0
  301. package/node_modules/tar/dist/commonjs/process-umask.d.ts.map +1 -0
  302. package/node_modules/tar/dist/commonjs/process-umask.js +7 -0
  303. package/node_modules/tar/dist/commonjs/process-umask.js.map +1 -0
  304. package/node_modules/tar/dist/commonjs/read-entry.d.ts +36 -0
  305. package/node_modules/tar/dist/commonjs/read-entry.d.ts.map +1 -0
  306. package/node_modules/tar/dist/commonjs/read-entry.js +136 -0
  307. package/node_modules/tar/dist/commonjs/read-entry.js.map +1 -0
  308. package/node_modules/tar/dist/commonjs/replace.d.ts +2 -0
  309. package/node_modules/tar/dist/commonjs/replace.d.ts.map +1 -0
  310. package/node_modules/tar/dist/commonjs/replace.js +227 -0
  311. package/node_modules/tar/dist/commonjs/replace.js.map +1 -0
  312. package/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts +2 -0
  313. package/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts.map +1 -0
  314. package/node_modules/tar/dist/commonjs/strip-absolute-path.js +29 -0
  315. package/node_modules/tar/dist/commonjs/strip-absolute-path.js.map +1 -0
  316. package/node_modules/tar/dist/commonjs/strip-trailing-slashes.d.ts +2 -0
  317. package/node_modules/tar/dist/commonjs/strip-trailing-slashes.d.ts.map +1 -0
  318. package/node_modules/tar/dist/commonjs/strip-trailing-slashes.js +18 -0
  319. package/node_modules/tar/dist/commonjs/strip-trailing-slashes.js.map +1 -0
  320. package/node_modules/tar/dist/commonjs/symlink-error.d.ts +9 -0
  321. package/node_modules/tar/dist/commonjs/symlink-error.d.ts.map +1 -0
  322. package/node_modules/tar/dist/commonjs/symlink-error.js +19 -0
  323. package/node_modules/tar/dist/commonjs/symlink-error.js.map +1 -0
  324. package/node_modules/tar/dist/commonjs/types.d.ts +7 -0
  325. package/node_modules/tar/dist/commonjs/types.d.ts.map +1 -0
  326. package/node_modules/tar/dist/commonjs/types.js +50 -0
  327. package/node_modules/tar/dist/commonjs/types.js.map +1 -0
  328. package/node_modules/tar/dist/commonjs/unpack.d.ts +101 -0
  329. package/node_modules/tar/dist/commonjs/unpack.d.ts.map +1 -0
  330. package/node_modules/tar/dist/commonjs/unpack.js +932 -0
  331. package/node_modules/tar/dist/commonjs/unpack.js.map +1 -0
  332. package/node_modules/tar/dist/commonjs/update.d.ts +2 -0
  333. package/node_modules/tar/dist/commonjs/update.d.ts.map +1 -0
  334. package/node_modules/tar/dist/commonjs/update.js +33 -0
  335. package/node_modules/tar/dist/commonjs/update.js.map +1 -0
  336. package/node_modules/tar/dist/commonjs/warn-method.d.ts +24 -0
  337. package/node_modules/tar/dist/commonjs/warn-method.d.ts.map +1 -0
  338. package/node_modules/tar/dist/commonjs/warn-method.js +31 -0
  339. package/node_modules/tar/dist/commonjs/warn-method.js.map +1 -0
  340. package/node_modules/tar/dist/commonjs/winchars.d.ts +3 -0
  341. package/node_modules/tar/dist/commonjs/winchars.d.ts.map +1 -0
  342. package/node_modules/tar/dist/commonjs/winchars.js +14 -0
  343. package/node_modules/tar/dist/commonjs/winchars.js.map +1 -0
  344. package/node_modules/tar/dist/commonjs/write-entry.d.ts +129 -0
  345. package/node_modules/tar/dist/commonjs/write-entry.d.ts.map +1 -0
  346. package/node_modules/tar/dist/commonjs/write-entry.js +698 -0
  347. package/node_modules/tar/dist/commonjs/write-entry.js.map +1 -0
  348. package/node_modules/tar/dist/esm/create.d.ts +3 -0
  349. package/node_modules/tar/dist/esm/create.d.ts.map +1 -0
  350. package/node_modules/tar/dist/esm/create.js +76 -0
  351. package/node_modules/tar/dist/esm/create.js.map +1 -0
  352. package/node_modules/tar/dist/esm/cwd-error.d.ts +8 -0
  353. package/node_modules/tar/dist/esm/cwd-error.d.ts.map +1 -0
  354. package/node_modules/tar/dist/esm/cwd-error.js +14 -0
  355. package/node_modules/tar/dist/esm/cwd-error.js.map +1 -0
  356. package/node_modules/tar/dist/esm/extract.d.ts +3 -0
  357. package/node_modules/tar/dist/esm/extract.d.ts.map +1 -0
  358. package/node_modules/tar/dist/esm/extract.js +49 -0
  359. package/node_modules/tar/dist/esm/extract.js.map +1 -0
  360. package/node_modules/tar/dist/esm/get-write-flag.d.ts +2 -0
  361. package/node_modules/tar/dist/esm/get-write-flag.d.ts.map +1 -0
  362. package/node_modules/tar/dist/esm/get-write-flag.js +26 -0
  363. package/node_modules/tar/dist/esm/get-write-flag.js.map +1 -0
  364. package/node_modules/tar/dist/esm/header.d.ts +53 -0
  365. package/node_modules/tar/dist/esm/header.d.ts.map +1 -0
  366. package/node_modules/tar/dist/esm/header.js +275 -0
  367. package/node_modules/tar/dist/esm/header.js.map +1 -0
  368. package/node_modules/tar/dist/esm/index.d.ts +20 -0
  369. package/node_modules/tar/dist/esm/index.d.ts.map +1 -0
  370. package/node_modules/tar/dist/esm/index.js +20 -0
  371. package/node_modules/tar/dist/esm/index.js.map +1 -0
  372. package/node_modules/tar/dist/esm/index.min.js +4 -0
  373. package/node_modules/tar/dist/esm/index.min.js.map +7 -0
  374. package/node_modules/tar/dist/esm/large-numbers.d.ts +3 -0
  375. package/node_modules/tar/dist/esm/large-numbers.d.ts.map +1 -0
  376. package/node_modules/tar/dist/esm/large-numbers.js +94 -0
  377. package/node_modules/tar/dist/esm/large-numbers.js.map +1 -0
  378. package/node_modules/tar/dist/esm/list.d.ts +7 -0
  379. package/node_modules/tar/dist/esm/list.d.ts.map +1 -0
  380. package/node_modules/tar/dist/esm/list.js +105 -0
  381. package/node_modules/tar/dist/esm/list.js.map +1 -0
  382. package/node_modules/tar/dist/esm/make-command.d.ts +49 -0
  383. package/node_modules/tar/dist/esm/make-command.d.ts.map +1 -0
  384. package/node_modules/tar/dist/esm/make-command.js +48 -0
  385. package/node_modules/tar/dist/esm/make-command.js.map +1 -0
  386. package/node_modules/tar/dist/esm/mkdir.d.ts +25 -0
  387. package/node_modules/tar/dist/esm/mkdir.d.ts.map +1 -0
  388. package/node_modules/tar/dist/esm/mkdir.js +179 -0
  389. package/node_modules/tar/dist/esm/mkdir.js.map +1 -0
  390. package/node_modules/tar/dist/esm/mode-fix.d.ts +2 -0
  391. package/node_modules/tar/dist/esm/mode-fix.d.ts.map +1 -0
  392. package/node_modules/tar/dist/esm/mode-fix.js +25 -0
  393. package/node_modules/tar/dist/esm/mode-fix.js.map +1 -0
  394. package/node_modules/tar/dist/esm/normalize-unicode.d.ts +2 -0
  395. package/node_modules/tar/dist/esm/normalize-unicode.d.ts.map +1 -0
  396. package/node_modules/tar/dist/esm/normalize-unicode.js +34 -0
  397. package/node_modules/tar/dist/esm/normalize-unicode.js.map +1 -0
  398. package/node_modules/tar/dist/esm/normalize-windows-path.d.ts +2 -0
  399. package/node_modules/tar/dist/esm/normalize-windows-path.d.ts.map +1 -0
  400. package/node_modules/tar/dist/esm/normalize-windows-path.js +9 -0
  401. package/node_modules/tar/dist/esm/normalize-windows-path.js.map +1 -0
  402. package/node_modules/tar/dist/esm/options.d.ts +596 -0
  403. package/node_modules/tar/dist/esm/options.d.ts.map +1 -0
  404. package/node_modules/tar/dist/esm/options.js +54 -0
  405. package/node_modules/tar/dist/esm/options.js.map +1 -0
  406. package/node_modules/tar/dist/esm/pack.d.ts +102 -0
  407. package/node_modules/tar/dist/esm/pack.d.ts.map +1 -0
  408. package/node_modules/tar/dist/esm/pack.js +469 -0
  409. package/node_modules/tar/dist/esm/pack.js.map +1 -0
  410. package/node_modules/tar/dist/esm/package.json +3 -0
  411. package/node_modules/tar/dist/esm/parse.d.ts +85 -0
  412. package/node_modules/tar/dist/esm/parse.d.ts.map +1 -0
  413. package/node_modules/tar/dist/esm/parse.js +606 -0
  414. package/node_modules/tar/dist/esm/parse.js.map +1 -0
  415. package/node_modules/tar/dist/esm/path-reservations.d.ts +11 -0
  416. package/node_modules/tar/dist/esm/path-reservations.d.ts.map +1 -0
  417. package/node_modules/tar/dist/esm/path-reservations.js +166 -0
  418. package/node_modules/tar/dist/esm/path-reservations.js.map +1 -0
  419. package/node_modules/tar/dist/esm/pax.d.ts +26 -0
  420. package/node_modules/tar/dist/esm/pax.d.ts.map +1 -0
  421. package/node_modules/tar/dist/esm/pax.js +154 -0
  422. package/node_modules/tar/dist/esm/pax.js.map +1 -0
  423. package/node_modules/tar/dist/esm/process-umask.d.ts +2 -0
  424. package/node_modules/tar/dist/esm/process-umask.d.ts.map +1 -0
  425. package/node_modules/tar/dist/esm/process-umask.js +3 -0
  426. package/node_modules/tar/dist/esm/process-umask.js.map +1 -0
  427. package/node_modules/tar/dist/esm/read-entry.d.ts +36 -0
  428. package/node_modules/tar/dist/esm/read-entry.d.ts.map +1 -0
  429. package/node_modules/tar/dist/esm/read-entry.js +132 -0
  430. package/node_modules/tar/dist/esm/read-entry.js.map +1 -0
  431. package/node_modules/tar/dist/esm/replace.d.ts +2 -0
  432. package/node_modules/tar/dist/esm/replace.d.ts.map +1 -0
  433. package/node_modules/tar/dist/esm/replace.js +221 -0
  434. package/node_modules/tar/dist/esm/replace.js.map +1 -0
  435. package/node_modules/tar/dist/esm/strip-absolute-path.d.ts +2 -0
  436. package/node_modules/tar/dist/esm/strip-absolute-path.d.ts.map +1 -0
  437. package/node_modules/tar/dist/esm/strip-absolute-path.js +25 -0
  438. package/node_modules/tar/dist/esm/strip-absolute-path.js.map +1 -0
  439. package/node_modules/tar/dist/esm/strip-trailing-slashes.d.ts +2 -0
  440. package/node_modules/tar/dist/esm/strip-trailing-slashes.d.ts.map +1 -0
  441. package/node_modules/tar/dist/esm/strip-trailing-slashes.js +14 -0
  442. package/node_modules/tar/dist/esm/strip-trailing-slashes.js.map +1 -0
  443. package/node_modules/tar/dist/esm/symlink-error.d.ts +9 -0
  444. package/node_modules/tar/dist/esm/symlink-error.d.ts.map +1 -0
  445. package/node_modules/tar/dist/esm/symlink-error.js +15 -0
  446. package/node_modules/tar/dist/esm/symlink-error.js.map +1 -0
  447. package/node_modules/tar/dist/esm/types.d.ts +7 -0
  448. package/node_modules/tar/dist/esm/types.d.ts.map +1 -0
  449. package/node_modules/tar/dist/esm/types.js +45 -0
  450. package/node_modules/tar/dist/esm/types.js.map +1 -0
  451. package/node_modules/tar/dist/esm/unpack.d.ts +101 -0
  452. package/node_modules/tar/dist/esm/unpack.d.ts.map +1 -0
  453. package/node_modules/tar/dist/esm/unpack.js +891 -0
  454. package/node_modules/tar/dist/esm/unpack.js.map +1 -0
  455. package/node_modules/tar/dist/esm/update.d.ts +2 -0
  456. package/node_modules/tar/dist/esm/update.d.ts.map +1 -0
  457. package/node_modules/tar/dist/esm/update.js +30 -0
  458. package/node_modules/tar/dist/esm/update.js.map +1 -0
  459. package/node_modules/tar/dist/esm/warn-method.d.ts +24 -0
  460. package/node_modules/tar/dist/esm/warn-method.d.ts.map +1 -0
  461. package/node_modules/tar/dist/esm/warn-method.js +27 -0
  462. package/node_modules/tar/dist/esm/warn-method.js.map +1 -0
  463. package/node_modules/tar/dist/esm/winchars.d.ts +3 -0
  464. package/node_modules/tar/dist/esm/winchars.d.ts.map +1 -0
  465. package/node_modules/tar/dist/esm/winchars.js +9 -0
  466. package/node_modules/tar/dist/esm/winchars.js.map +1 -0
  467. package/node_modules/tar/dist/esm/write-entry.d.ts +129 -0
  468. package/node_modules/tar/dist/esm/write-entry.d.ts.map +1 -0
  469. package/node_modules/tar/dist/esm/write-entry.js +656 -0
  470. package/node_modules/tar/dist/esm/write-entry.js.map +1 -0
  471. package/node_modules/tar/package.json +297 -0
  472. package/node_modules/yallist/LICENSE.md +63 -0
  473. package/node_modules/yallist/README.md +205 -0
  474. package/node_modules/yallist/dist/commonjs/index.d.ts +39 -0
  475. package/node_modules/yallist/dist/commonjs/index.d.ts.map +1 -0
  476. package/node_modules/yallist/dist/commonjs/index.js +384 -0
  477. package/node_modules/yallist/dist/commonjs/index.js.map +1 -0
  478. package/node_modules/yallist/dist/commonjs/package.json +3 -0
  479. package/node_modules/yallist/dist/esm/index.d.ts +39 -0
  480. package/node_modules/yallist/dist/esm/index.d.ts.map +1 -0
  481. package/node_modules/yallist/dist/esm/index.js +379 -0
  482. package/node_modules/yallist/dist/esm/index.js.map +1 -0
  483. package/node_modules/yallist/dist/esm/package.json +3 -0
  484. package/node_modules/yallist/package.json +68 -0
  485. package/package.json +9 -3
@@ -0,0 +1,155 @@
1
+ /**
2
+ * Skit package manifest types
3
+ */
4
+ export interface SkitComponent {
5
+ name: string;
6
+ file: string;
7
+ description?: string;
8
+ }
9
+ /**
10
+ * Extended profile component with optional scoped prompts
11
+ */
12
+ export interface SkitProfileComponent extends SkitComponent {
13
+ /** Prompt names scoped to this profile (installed to profile-specific dir) */
14
+ prompts?: string[];
15
+ }
16
+ export interface SkitCli {
17
+ name: string;
18
+ package: string;
19
+ bin?: string;
20
+ }
21
+ export interface SkitStateComponent {
22
+ name: string;
23
+ file: string;
24
+ description?: string;
25
+ }
26
+ /**
27
+ * Hook component types
28
+ */
29
+ export type HookType = 'chook' | 'dhook' | 'phook';
30
+ export interface SkitHook {
31
+ name: string;
32
+ type: HookType;
33
+ file: string;
34
+ description?: string;
35
+ }
36
+ export interface SkitComponents {
37
+ clis?: SkitCli[];
38
+ profiles?: SkitProfileComponent[];
39
+ prompts?: SkitComponent[];
40
+ packs?: SkitComponent[];
41
+ states?: SkitStateComponent[];
42
+ hooks?: SkitHook[];
43
+ }
44
+ export interface SkitInstallPaths {
45
+ profiles?: string;
46
+ prompts?: string;
47
+ packs?: string;
48
+ states?: string;
49
+ pre?: string[];
50
+ post?: string[];
51
+ }
52
+ /**
53
+ * CLI tool dependency (external tools like gitlab-install, npm, pip, etc.)
54
+ */
55
+ export interface CliDependency {
56
+ name: string;
57
+ install: string;
58
+ check?: string;
59
+ optional?: boolean;
60
+ }
61
+ /**
62
+ * Dependencies structure for skit packages
63
+ */
64
+ export interface SkitDependencies {
65
+ /** npm 패키지 의존성 (권장) */
66
+ npm?: Record<string, string>;
67
+ /** 다른 skit 패키지 의존성 */
68
+ skit?: Record<string, string>;
69
+ /**
70
+ * CLI 도구 의존성 (deprecated)
71
+ * npm 패키지는 dependencies.npm 사용 권장
72
+ */
73
+ cli?: CliDependency[];
74
+ }
75
+ /**
76
+ * Scope to GitLab group mapping for npm dependencies
77
+ * @example { "@ist": { "group": "microwiseai" }, "@mwd-tools": { "group": "microwiseai" } }
78
+ */
79
+ export interface ScopeRegistryMapping {
80
+ [scope: string]: {
81
+ group: string;
82
+ };
83
+ }
84
+ export interface SkitManifest {
85
+ name: string;
86
+ version: string;
87
+ description?: string;
88
+ type: 'skit';
89
+ files?: string[];
90
+ exclude?: string[];
91
+ dependencies?: SkitDependencies;
92
+ /** Scope to GitLab group mapping for npm dependencies */
93
+ registry?: ScopeRegistryMapping;
94
+ components: SkitComponents;
95
+ install: SkitInstallPaths;
96
+ }
97
+ /**
98
+ * Component type names
99
+ */
100
+ export type ComponentType = keyof SkitComponents;
101
+ /**
102
+ * File-based component types (excludes CLIs, packs, and hooks)
103
+ */
104
+ export type FileComponentType = Exclude<ComponentType, 'clis' | 'packs' | 'hooks'>;
105
+ /**
106
+ * Installable component types (file-based + packs)
107
+ */
108
+ export type InstallableComponentType = FileComponentType | 'packs';
109
+ /**
110
+ * Default install paths for file-based components
111
+ */
112
+ export declare const DEFAULT_INSTALL_PATHS: Record<FileComponentType, string>;
113
+ /**
114
+ * Profile-scoped prompts directory (prompts only visible to specific profile)
115
+ */
116
+ export declare const PROFILE_PROMPTS_PATH = "~/.ist/prompts/profiles/";
117
+ /**
118
+ * Permission packs JSON file path
119
+ */
120
+ export declare const PERMISSION_PACKS_PATH = "~/.sesh/permission-packs.json";
121
+ /**
122
+ * Pack data structure in permission-packs.json
123
+ */
124
+ export interface PackData {
125
+ allowedTools: string[];
126
+ }
127
+ /**
128
+ * Permission packs JSON structure
129
+ */
130
+ export interface PermissionPacksJson {
131
+ packs: Record<string, PackData>;
132
+ }
133
+ /**
134
+ * Installation result for a single component
135
+ */
136
+ export interface InstallResult {
137
+ component: SkitComponent;
138
+ type: InstallableComponentType;
139
+ sourcePath: string;
140
+ targetPath: string;
141
+ success: boolean;
142
+ error?: string;
143
+ }
144
+ /**
145
+ * Overall installation summary
146
+ */
147
+ export interface InstallSummary {
148
+ packageName: string;
149
+ version: string;
150
+ results: InstallResult[];
151
+ totalComponents: number;
152
+ successCount: number;
153
+ failCount: number;
154
+ }
155
+ //# sourceMappingURL=skit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skit.d.ts","sourceRoot":"","sources":["../../src/types/skit.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,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;;GAEG;AACH,eAAO,MAAM,qBAAqB,kCAAkC,CAAC;AAErE;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,aAAa,CAAC;IACzB,IAAI,EAAE,wBAAwB,CAAC;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,aAAa,EAAE,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;CACnB"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Skit package manifest types
3
+ */
4
+ /**
5
+ * Default install paths for file-based components
6
+ */
7
+ export const DEFAULT_INSTALL_PATHS = {
8
+ profiles: '~/.ist/profiles/',
9
+ prompts: '~/.ist/prompts/global/',
10
+ states: '~/.ist/state/profiles/',
11
+ };
12
+ /**
13
+ * Profile-scoped prompts directory (prompts only visible to specific profile)
14
+ */
15
+ export const PROFILE_PROMPTS_PATH = '~/.ist/prompts/profiles/';
16
+ /**
17
+ * Permission packs JSON file path
18
+ */
19
+ export const PERMISSION_PACKS_PATH = '~/.sesh/permission-packs.json';
20
+ //# sourceMappingURL=skit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skit.js","sourceRoot":"","sources":["../../src/types/skit.ts"],"names":[],"mappings":"AAAA;;GAEG;AA0HH;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAsC;IACtE,QAAQ,EAAE,kBAAkB;IAC5B,OAAO,EAAE,wBAAwB;IACjC,MAAM,EAAE,wBAAwB;CACjC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,0BAA0B,CAAC;AAE/D;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,+BAA+B,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * API URL Configuration
3
+ *
4
+ * Two separate APIs:
5
+ * - Registry API: browse, search, package metadata
6
+ * - Marketplace API: auth, license, purchase, download (R2)
7
+ */
8
+ export declare const REGISTRY_API_URL: string;
9
+ export declare const MARKETPLACE_API_URL: string;
10
+ /**
11
+ * Get registry API URL
12
+ */
13
+ export declare function getRegistryApiUrl(): string;
14
+ /**
15
+ * Get marketplace API URL
16
+ */
17
+ export declare function getMarketplaceApiUrl(): string;
18
+ //# sourceMappingURL=api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/utils/api.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,eAAO,MAAM,gBAAgB,QAEwB,CAAC;AAGtD,eAAO,MAAM,mBAAmB,QAEmB,CAAC;AAEpD;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C;AAED;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,CAE7C"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * API URL Configuration
3
+ *
4
+ * Two separate APIs:
5
+ * - Registry API: browse, search, package metadata
6
+ * - Marketplace API: auth, license, purchase, download (R2)
7
+ */
8
+ // Registry API - package browsing and search
9
+ export const REGISTRY_API_URL = process.env.SKIT_REGISTRY_URL ||
10
+ 'https://skit-registry-api.sisung-kim1.workers.dev';
11
+ // Marketplace API - auth, license, purchase, download
12
+ export const MARKETPLACE_API_URL = process.env.SKIT_MARKETPLACE_URL ||
13
+ 'https://marketplace-api.sisung-kim1.workers.dev';
14
+ /**
15
+ * Get registry API URL
16
+ */
17
+ export function getRegistryApiUrl() {
18
+ return REGISTRY_API_URL;
19
+ }
20
+ /**
21
+ * Get marketplace API URL
22
+ */
23
+ export function getMarketplaceApiUrl() {
24
+ return MARKETPLACE_API_URL;
25
+ }
26
+ //# sourceMappingURL=api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/utils/api.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,6CAA6C;AAC7C,MAAM,CAAC,MAAM,gBAAgB,GAC3B,OAAO,CAAC,GAAG,CAAC,iBAAiB;IAC7B,mDAAmD,CAAC;AAEtD,sDAAsD;AACtD,MAAM,CAAC,MAAM,mBAAmB,GAC9B,OAAO,CAAC,GAAG,CAAC,oBAAoB;IAChC,iDAAiD,CAAC;AAEpD;;GAEG;AACH,MAAM,UAAU,iBAAiB;IAC/B,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,oBAAoB;IAClC,OAAO,mBAAmB,CAAC;AAC7B,CAAC"}
@@ -0,0 +1,62 @@
1
+ export interface AuthUser {
2
+ id: number;
3
+ email: string;
4
+ name?: string;
5
+ role?: string;
6
+ }
7
+ export interface AuthData {
8
+ accessToken: string;
9
+ refreshToken: string;
10
+ expiresAt: number;
11
+ user: AuthUser;
12
+ }
13
+ export interface ApiError {
14
+ error: string;
15
+ message?: string;
16
+ }
17
+ /**
18
+ * Load auth data from ~/.ist/auth.json
19
+ */
20
+ export declare function loadAuth(): Promise<AuthData | null>;
21
+ /**
22
+ * Save auth data to ~/.ist/auth.json
23
+ */
24
+ export declare function saveAuth(data: AuthData): Promise<void>;
25
+ /**
26
+ * Clear auth data (logout)
27
+ */
28
+ export declare function clearAuth(): Promise<void>;
29
+ /**
30
+ * Check if user is logged in
31
+ */
32
+ export declare function isLoggedIn(): Promise<boolean>;
33
+ /**
34
+ * Check if token is expired or about to expire (within 5 minutes)
35
+ */
36
+ export declare function isTokenExpired(expiresAt: number, bufferSeconds?: number): boolean;
37
+ /**
38
+ * Refresh access token if expired or about to expire
39
+ */
40
+ export declare function refreshTokenIfNeeded(): Promise<AuthData | null>;
41
+ /**
42
+ * Get valid auth data with automatic refresh
43
+ */
44
+ export declare function getValidAuth(): Promise<AuthData | null>;
45
+ /**
46
+ * Login with email and password
47
+ */
48
+ export declare function login(email: string, password: string): Promise<AuthData>;
49
+ /**
50
+ * Register a new user
51
+ */
52
+ export declare function registerUser(email: string, password: string, name?: string): Promise<AuthData>;
53
+ /**
54
+ * Get current user info from API
55
+ */
56
+ export declare function getCurrentUser(): Promise<AuthUser | null>;
57
+ /**
58
+ * Make authenticated API request to marketplace
59
+ */
60
+ export declare function marketplaceFetch(path: string, options?: RequestInit): Promise<Response>;
61
+ export declare const authFetch: typeof marketplaceFetch;
62
+ //# sourceMappingURL=auth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/utils/auth.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,QAAQ;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,wBAAsB,QAAQ,IAAI,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,CAQzD;AAED;;GAEG;AACH,wBAAsB,QAAQ,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CAG5D;AAED;;GAEG;AACH,wBAAsB,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC,CAM/C;AAED;;GAEG;AACH,wBAAsB,UAAU,IAAI,OAAO,CAAC,OAAO,CAAC,CAGnD;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,aAAa,SAAM,GAAG,OAAO,CAG9E;AAED;;GAEG;AACH,wBAAsB,oBAAoB,IAAI,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,CAkCrE;AAED;;GAEG;AACH,wBAAsB,YAAY,IAAI,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,CAE7D;AAED;;GAEG;AACH,wBAAsB,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAiB9E;AAED;;GAEG;AACH,wBAAsB,YAAY,CAChC,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,MAAM,EAChB,IAAI,CAAC,EAAE,MAAM,GACZ,OAAO,CAAC,QAAQ,CAAC,CAiBnB;AAED;;GAEG;AACH,wBAAsB,cAAc,IAAI,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,CAsB/D;AAED;;GAEG;AACH,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,WAAgB,GACxB,OAAO,CAAC,QAAQ,CAAC,CAanB;AAGD,eAAO,MAAM,SAAS,yBAAmB,CAAC"}
@@ -0,0 +1,172 @@
1
+ import { readFile, writeFile, mkdir, unlink } from 'node:fs/promises';
2
+ import { join } from 'node:path';
3
+ import { homedir } from 'node:os';
4
+ import { getMarketplaceApiUrl } from './api.js';
5
+ const AUTH_DIR = join(homedir(), '.ist');
6
+ const AUTH_FILE = join(AUTH_DIR, 'auth.json');
7
+ /**
8
+ * Load auth data from ~/.ist/auth.json
9
+ */
10
+ export async function loadAuth() {
11
+ try {
12
+ const content = await readFile(AUTH_FILE, 'utf-8');
13
+ const data = JSON.parse(content);
14
+ return data;
15
+ }
16
+ catch {
17
+ return null;
18
+ }
19
+ }
20
+ /**
21
+ * Save auth data to ~/.ist/auth.json
22
+ */
23
+ export async function saveAuth(data) {
24
+ await mkdir(AUTH_DIR, { recursive: true });
25
+ await writeFile(AUTH_FILE, JSON.stringify(data, null, 2), 'utf-8');
26
+ }
27
+ /**
28
+ * Clear auth data (logout)
29
+ */
30
+ export async function clearAuth() {
31
+ try {
32
+ await unlink(AUTH_FILE);
33
+ }
34
+ catch {
35
+ // Ignore if file doesn't exist
36
+ }
37
+ }
38
+ /**
39
+ * Check if user is logged in
40
+ */
41
+ export async function isLoggedIn() {
42
+ const auth = await loadAuth();
43
+ return auth !== null;
44
+ }
45
+ /**
46
+ * Check if token is expired or about to expire (within 5 minutes)
47
+ */
48
+ export function isTokenExpired(expiresAt, bufferSeconds = 300) {
49
+ const now = Math.floor(Date.now() / 1000);
50
+ return now >= expiresAt - bufferSeconds;
51
+ }
52
+ /**
53
+ * Refresh access token if expired or about to expire
54
+ */
55
+ export async function refreshTokenIfNeeded() {
56
+ const auth = await loadAuth();
57
+ if (!auth) {
58
+ return null;
59
+ }
60
+ // Check if token needs refresh (expired or expiring in 5 minutes)
61
+ if (!isTokenExpired(auth.expiresAt)) {
62
+ return auth;
63
+ }
64
+ // Try to refresh
65
+ try {
66
+ const response = await fetch(`${getMarketplaceApiUrl()}/auth/refresh`, {
67
+ method: 'POST',
68
+ headers: {
69
+ 'Content-Type': 'application/json',
70
+ },
71
+ body: JSON.stringify({ refreshToken: auth.refreshToken }),
72
+ });
73
+ if (!response.ok) {
74
+ // Refresh failed, clear auth and return null
75
+ await clearAuth();
76
+ return null;
77
+ }
78
+ const data = await response.json();
79
+ await saveAuth(data);
80
+ return data;
81
+ }
82
+ catch {
83
+ // Network error, keep existing auth for offline use
84
+ return auth;
85
+ }
86
+ }
87
+ /**
88
+ * Get valid auth data with automatic refresh
89
+ */
90
+ export async function getValidAuth() {
91
+ return refreshTokenIfNeeded();
92
+ }
93
+ /**
94
+ * Login with email and password
95
+ */
96
+ export async function login(email, password) {
97
+ const response = await fetch(`${getMarketplaceApiUrl()}/auth/login`, {
98
+ method: 'POST',
99
+ headers: {
100
+ 'Content-Type': 'application/json',
101
+ },
102
+ body: JSON.stringify({ email, password }),
103
+ });
104
+ if (!response.ok) {
105
+ const error = await response.json();
106
+ throw new Error(error.message || error.error || 'Login failed');
107
+ }
108
+ const data = await response.json();
109
+ await saveAuth(data);
110
+ return data;
111
+ }
112
+ /**
113
+ * Register a new user
114
+ */
115
+ export async function registerUser(email, password, name) {
116
+ const response = await fetch(`${getMarketplaceApiUrl()}/auth/register`, {
117
+ method: 'POST',
118
+ headers: {
119
+ 'Content-Type': 'application/json',
120
+ },
121
+ body: JSON.stringify({ email, password, name }),
122
+ });
123
+ if (!response.ok) {
124
+ const error = await response.json();
125
+ throw new Error(error.message || error.error || 'Registration failed');
126
+ }
127
+ const data = await response.json();
128
+ await saveAuth(data);
129
+ return data;
130
+ }
131
+ /**
132
+ * Get current user info from API
133
+ */
134
+ export async function getCurrentUser() {
135
+ const auth = await getValidAuth();
136
+ if (!auth) {
137
+ return null;
138
+ }
139
+ try {
140
+ const response = await fetch(`${getMarketplaceApiUrl()}/auth/me`, {
141
+ headers: {
142
+ 'Authorization': `Bearer ${auth.accessToken}`,
143
+ },
144
+ });
145
+ if (!response.ok) {
146
+ return null;
147
+ }
148
+ return await response.json();
149
+ }
150
+ catch {
151
+ // Return cached user if API fails
152
+ return auth.user;
153
+ }
154
+ }
155
+ /**
156
+ * Make authenticated API request to marketplace
157
+ */
158
+ export async function marketplaceFetch(path, options = {}) {
159
+ const auth = await getValidAuth();
160
+ if (!auth) {
161
+ throw new Error('Not logged in. Please run: skit login');
162
+ }
163
+ const headers = new Headers(options.headers);
164
+ headers.set('Authorization', `Bearer ${auth.accessToken}`);
165
+ return fetch(`${getMarketplaceApiUrl()}${path}`, {
166
+ ...options,
167
+ headers,
168
+ });
169
+ }
170
+ // Backward compatibility alias
171
+ export const authFetch = marketplaceFetch;
172
+ //# sourceMappingURL=auth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.js","sourceRoot":"","sources":["../../src/utils/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEhD,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,EAAE,EAAE,MAAM,CAAC,CAAC;AACzC,MAAM,SAAS,GAAG,IAAI,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;AAqB9C;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,QAAQ;IAC5B,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,MAAM,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QACnD,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAa,CAAC;QAC7C,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,QAAQ,CAAC,IAAc;IAC3C,MAAM,KAAK,CAAC,QAAQ,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAC3C,MAAM,SAAS,CAAC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;AACrE,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,SAAS;IAC7B,IAAI,CAAC;QACH,MAAM,MAAM,CAAC,SAAS,CAAC,CAAC;IAC1B,CAAC;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CAAC;IAC7C,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,UAAU,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;IAE3D,OAAO,KAAK,CAAC,GAAG,oBAAoB,EAAE,GAAG,IAAI,EAAE,EAAE;QAC/C,GAAG,OAAO;QACV,OAAO;KACR,CAAC,CAAC;AACL,CAAC;AAED,+BAA+B;AAC/B,MAAM,CAAC,MAAM,SAAS,GAAG,gBAAgB,CAAC"}
@@ -0,0 +1,26 @@
1
+ import type { SkitManifest, FileComponentType, InstallResult, InstallSummary } from '../types/skit.js';
2
+ /**
3
+ * Expand ~ to home directory
4
+ */
5
+ export declare function expandPath(path: string): string;
6
+ /**
7
+ * Get install path for a component type
8
+ */
9
+ export declare function getInstallPath(manifest: SkitManifest, componentType: FileComponentType, defaultPaths: Record<FileComponentType, string>): string;
10
+ /**
11
+ * Install a single component
12
+ */
13
+ export declare function installComponent(stagingDir: string, targetDir: string, componentFile: string, componentType: FileComponentType, componentName: string): Promise<InstallResult>;
14
+ /**
15
+ * Install a single pack by merging into permission-packs.json
16
+ */
17
+ export declare function installPack(stagingDir: string, packFile: string, packName: string): Promise<InstallResult>;
18
+ /**
19
+ * Install a state directory (copies entire directory: state.json + *.md files)
20
+ */
21
+ export declare function installStateDirectory(stagingDir: string, targetBaseDir: string, stateDir: string, stateName: string): Promise<InstallResult>;
22
+ /**
23
+ * Install all components from a manifest
24
+ */
25
+ export declare function installAllComponents(manifest: SkitManifest, stagingDir: string, defaultPaths: Record<FileComponentType, string>): Promise<InstallSummary>;
26
+ //# sourceMappingURL=file-copy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-copy.d.ts","sourceRoot":"","sources":["../../src/utils/file-copy.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,cAAc,EAKf,MAAM,kBAAkB,CAAC;AAG1B;;GAEG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAK/C;AAED;;GAEG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,YAAY,EACtB,aAAa,EAAE,iBAAiB,EAChC,YAAY,EAAE,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAAC,GAC9C,MAAM,CAIR;AAED;;GAEG;AACH,wBAAsB,gBAAgB,CACpC,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,MAAM,EACrB,aAAa,EAAE,iBAAiB,EAChC,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC,aAAa,CAAC,CA8BxB;AAyBD;;GAEG;AACH,wBAAsB,WAAW,CAC/B,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,aAAa,CAAC,CAmCxB;AAED;;GAEG;AACH,wBAAsB,qBAAqB,CACzC,UAAU,EAAE,MAAM,EAClB,aAAa,EAAE,MAAM,EACrB,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,aAAa,CAAC,CA4BxB;AAmBD;;GAEG;AACH,wBAAsB,oBAAoB,CACxC,QAAQ,EAAE,YAAY,EACtB,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAAC,GAC9C,OAAO,CAAC,cAAc,CAAC,CAoFzB"}