@microwiseai/snapshot 0.3.32 → 0.3.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/install.d.ts +1 -0
- package/dist/commands/install.d.ts.map +1 -1
- package/dist/commands/install.js +101 -12
- package/dist/commands/install.js.map +1 -1
- package/dist/lib/access-sync.d.ts.map +1 -1
- package/dist/lib/access-sync.js +2 -3
- package/dist/lib/access-sync.js.map +1 -1
- package/dist/lib/config.d.ts +11 -7
- package/dist/lib/config.d.ts.map +1 -1
- package/dist/lib/config.js +22 -13
- package/dist/lib/config.js.map +1 -1
- package/dist/lib/config.test.d.ts +2 -0
- package/dist/lib/config.test.d.ts.map +1 -0
- package/dist/lib/config.test.js +186 -0
- package/dist/lib/config.test.js.map +1 -0
- package/dist/lib/gitlab.d.ts.map +1 -1
- package/dist/lib/gitlab.js +5 -13
- package/dist/lib/gitlab.js.map +1 -1
- package/dist/lib/package-resolver.js +2 -2
- package/dist/lib/package-resolver.js.map +1 -1
- package/dist/lib/session.d.ts +37 -0
- package/dist/lib/session.d.ts.map +1 -0
- package/dist/lib/session.js +77 -0
- package/dist/lib/session.js.map +1 -0
- package/dist/lib/skit-adapter.d.ts +5 -5
- package/dist/lib/skit-adapter.d.ts.map +1 -1
- package/dist/lib/skit-adapter.js +58 -21
- package/dist/lib/skit-adapter.js.map +1 -1
- package/dist/lib/transitive-resolver.d.ts +4 -1
- package/dist/lib/transitive-resolver.d.ts.map +1 -1
- package/dist/lib/transitive-resolver.js +13 -8
- package/dist/lib/transitive-resolver.js.map +1 -1
- package/dist/lib/transitive-resolver.test.d.ts +2 -0
- package/dist/lib/transitive-resolver.test.d.ts.map +1 -0
- package/dist/lib/transitive-resolver.test.js +279 -0
- package/dist/lib/transitive-resolver.test.js.map +1 -0
- package/node_modules/@isaacs/fs-minipass/LICENSE +15 -0
- package/node_modules/@isaacs/fs-minipass/README.md +71 -0
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts +118 -0
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js +430 -0
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js.map +1 -0
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/package.json +3 -0
- package/node_modules/@isaacs/fs-minipass/dist/esm/index.d.ts +118 -0
- package/node_modules/@isaacs/fs-minipass/dist/esm/index.d.ts.map +1 -0
- package/node_modules/@isaacs/fs-minipass/dist/esm/index.js +420 -0
- package/node_modules/@isaacs/fs-minipass/dist/esm/index.js.map +1 -0
- package/node_modules/@isaacs/fs-minipass/dist/esm/package.json +3 -0
- package/node_modules/@isaacs/fs-minipass/package.json +72 -0
- package/node_modules/@ist/registry-config/dist/index.d.ts +3 -0
- package/node_modules/@ist/registry-config/dist/index.js +3 -0
- package/node_modules/@ist/registry-config/dist/registry-url.d.ts +1 -0
- package/node_modules/@ist/registry-config/dist/registry-url.js +1 -0
- package/node_modules/@ist/registry-config/dist/scope-mapping.d.ts +6 -0
- package/node_modules/@ist/registry-config/dist/scope-mapping.js +7 -0
- package/node_modules/@ist/registry-config/dist/types.d.ts +4 -0
- package/node_modules/@ist/registry-config/dist/types.js +1 -0
- package/node_modules/@ist/registry-config/package.json +32 -0
- package/node_modules/@ist/skit/README.md +204 -0
- package/node_modules/@ist/skit/dist/commands/browse.d.ts +9 -0
- package/node_modules/@ist/skit/dist/commands/browse.d.ts.map +1 -0
- package/node_modules/@ist/skit/dist/commands/browse.js +127 -0
- package/node_modules/@ist/skit/dist/commands/browse.js.map +1 -0
- package/node_modules/@ist/skit/dist/commands/gitignore.d.ts +9 -0
- package/node_modules/@ist/skit/dist/commands/gitignore.d.ts.map +1 -0
- package/node_modules/@ist/skit/dist/commands/gitignore.js +59 -0
- package/node_modules/@ist/skit/dist/commands/gitignore.js.map +1 -0
- package/node_modules/@ist/skit/dist/commands/info.d.ts +9 -0
- package/node_modules/@ist/skit/dist/commands/info.d.ts.map +1 -0
- package/node_modules/@ist/skit/dist/commands/info.js +80 -0
- package/node_modules/@ist/skit/dist/commands/info.js.map +1 -0
- package/node_modules/@ist/skit/dist/commands/install.d.ts +13 -0
- package/node_modules/@ist/skit/dist/commands/install.d.ts.map +1 -0
- package/node_modules/@ist/skit/dist/commands/install.js +150 -0
- package/node_modules/@ist/skit/dist/commands/install.js.map +1 -0
- package/node_modules/@ist/skit/dist/commands/licenses.d.ts +9 -0
- package/node_modules/@ist/skit/dist/commands/licenses.d.ts.map +1 -0
- package/node_modules/@ist/skit/dist/commands/licenses.js +125 -0
- package/node_modules/@ist/skit/dist/commands/licenses.js.map +1 -0
- package/node_modules/@ist/skit/dist/commands/list.d.ts +12 -0
- package/node_modules/@ist/skit/dist/commands/list.d.ts.map +1 -0
- package/node_modules/@ist/skit/dist/commands/list.js +41 -0
- package/node_modules/@ist/skit/dist/commands/list.js.map +1 -0
- package/node_modules/@ist/skit/dist/commands/login.d.ts +10 -0
- package/node_modules/@ist/skit/dist/commands/login.d.ts.map +1 -0
- package/node_modules/@ist/skit/dist/commands/login.js +112 -0
- package/node_modules/@ist/skit/dist/commands/login.js.map +1 -0
- package/node_modules/@ist/skit/dist/commands/logout.d.ts +5 -0
- package/node_modules/@ist/skit/dist/commands/logout.d.ts.map +1 -0
- package/node_modules/@ist/skit/dist/commands/logout.js +30 -0
- package/node_modules/@ist/skit/dist/commands/logout.js.map +1 -0
- package/node_modules/@ist/skit/dist/commands/pack.d.ts +10 -0
- package/node_modules/@ist/skit/dist/commands/pack.d.ts.map +1 -0
- package/node_modules/@ist/skit/dist/commands/pack.js +185 -0
- package/node_modules/@ist/skit/dist/commands/pack.js.map +1 -0
- package/node_modules/@ist/skit/dist/commands/publish.d.ts +11 -0
- package/node_modules/@ist/skit/dist/commands/publish.d.ts.map +1 -0
- package/node_modules/@ist/skit/dist/commands/publish.js +108 -0
- package/node_modules/@ist/skit/dist/commands/publish.js.map +1 -0
- package/node_modules/@ist/skit/dist/commands/purchase.d.ts +9 -0
- package/node_modules/@ist/skit/dist/commands/purchase.d.ts.map +1 -0
- package/node_modules/@ist/skit/dist/commands/purchase.js +160 -0
- package/node_modules/@ist/skit/dist/commands/purchase.js.map +1 -0
- package/node_modules/@ist/skit/dist/commands/register.d.ts +10 -0
- package/node_modules/@ist/skit/dist/commands/register.d.ts.map +1 -0
- package/node_modules/@ist/skit/dist/commands/register.js +121 -0
- package/node_modules/@ist/skit/dist/commands/register.js.map +1 -0
- package/node_modules/@ist/skit/dist/commands/uninstall.d.ts +13 -0
- package/node_modules/@ist/skit/dist/commands/uninstall.d.ts.map +1 -0
- package/node_modules/@ist/skit/dist/commands/uninstall.js +138 -0
- package/node_modules/@ist/skit/dist/commands/uninstall.js.map +1 -0
- package/node_modules/@ist/skit/dist/commands/whoami.d.ts +9 -0
- package/node_modules/@ist/skit/dist/commands/whoami.d.ts.map +1 -0
- package/node_modules/@ist/skit/dist/commands/whoami.js +79 -0
- package/node_modules/@ist/skit/dist/commands/whoami.js.map +1 -0
- package/node_modules/@ist/skit/dist/index.d.ts +3 -0
- package/node_modules/@ist/skit/dist/index.d.ts.map +1 -0
- package/node_modules/@ist/skit/dist/index.js +69 -0
- package/node_modules/@ist/skit/dist/index.js.map +1 -0
- package/node_modules/@ist/skit/dist/lib.d.ts +144 -0
- package/node_modules/@ist/skit/dist/lib.d.ts.map +1 -0
- package/node_modules/@ist/skit/dist/lib.js +542 -0
- package/node_modules/@ist/skit/dist/lib.js.map +1 -0
- package/node_modules/@ist/skit/dist/types/skit.d.ts +155 -0
- package/node_modules/@ist/skit/dist/types/skit.d.ts.map +1 -0
- package/node_modules/@ist/skit/dist/types/skit.js +20 -0
- package/node_modules/@ist/skit/dist/types/skit.js.map +1 -0
- package/node_modules/@ist/skit/dist/utils/api.d.ts +18 -0
- package/node_modules/@ist/skit/dist/utils/api.d.ts.map +1 -0
- package/node_modules/@ist/skit/dist/utils/api.js +26 -0
- package/node_modules/@ist/skit/dist/utils/api.js.map +1 -0
- package/node_modules/@ist/skit/dist/utils/auth.d.ts +62 -0
- package/node_modules/@ist/skit/dist/utils/auth.d.ts.map +1 -0
- package/node_modules/@ist/skit/dist/utils/auth.js +172 -0
- package/node_modules/@ist/skit/dist/utils/auth.js.map +1 -0
- package/node_modules/@ist/skit/dist/utils/file-copy.d.ts +26 -0
- package/node_modules/@ist/skit/dist/utils/file-copy.d.ts.map +1 -0
- package/node_modules/@ist/skit/dist/utils/file-copy.js +219 -0
- package/node_modules/@ist/skit/dist/utils/file-copy.js.map +1 -0
- package/node_modules/@ist/skit/dist/utils/hook-installer.d.ts +21 -0
- package/node_modules/@ist/skit/dist/utils/hook-installer.d.ts.map +1 -0
- package/node_modules/@ist/skit/dist/utils/hook-installer.js +98 -0
- package/node_modules/@ist/skit/dist/utils/hook-installer.js.map +1 -0
- package/node_modules/@ist/skit/dist/utils/installed-registry.d.ts +50 -0
- package/node_modules/@ist/skit/dist/utils/installed-registry.d.ts.map +1 -0
- package/node_modules/@ist/skit/dist/utils/installed-registry.js +108 -0
- package/node_modules/@ist/skit/dist/utils/installed-registry.js.map +1 -0
- package/node_modules/@ist/skit/dist/utils/skit-parser.d.ts +10 -0
- package/node_modules/@ist/skit/dist/utils/skit-parser.d.ts.map +1 -0
- package/node_modules/@ist/skit/dist/utils/skit-parser.js +52 -0
- package/node_modules/@ist/skit/dist/utils/skit-parser.js.map +1 -0
- package/node_modules/@ist/skit/dist/utils/wrapper-generator.d.ts +74 -0
- package/node_modules/@ist/skit/dist/utils/wrapper-generator.d.ts.map +1 -0
- package/node_modules/@ist/skit/dist/utils/wrapper-generator.js +280 -0
- package/node_modules/@ist/skit/dist/utils/wrapper-generator.js.map +1 -0
- package/node_modules/@ist/skit/package.json +54 -0
- package/node_modules/chownr/LICENSE.md +63 -0
- package/node_modules/chownr/README.md +3 -0
- package/node_modules/chownr/dist/commonjs/index.d.ts +3 -0
- package/node_modules/chownr/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/chownr/dist/commonjs/index.js +93 -0
- package/node_modules/chownr/dist/commonjs/index.js.map +1 -0
- package/node_modules/chownr/dist/commonjs/package.json +3 -0
- package/node_modules/chownr/dist/esm/index.d.ts +3 -0
- package/node_modules/chownr/dist/esm/index.d.ts.map +1 -0
- package/node_modules/chownr/dist/esm/index.js +85 -0
- package/node_modules/chownr/dist/esm/index.js.map +1 -0
- package/node_modules/chownr/dist/esm/package.json +3 -0
- package/node_modules/chownr/package.json +69 -0
- package/node_modules/commander/LICENSE +22 -0
- package/node_modules/commander/Readme.md +1157 -0
- package/node_modules/commander/esm.mjs +16 -0
- package/node_modules/commander/index.js +24 -0
- package/node_modules/commander/lib/argument.js +149 -0
- package/node_modules/commander/lib/command.js +2509 -0
- package/node_modules/commander/lib/error.js +39 -0
- package/node_modules/commander/lib/help.js +520 -0
- package/node_modules/commander/lib/option.js +330 -0
- package/node_modules/commander/lib/suggestSimilar.js +101 -0
- package/node_modules/commander/package-support.json +16 -0
- package/node_modules/commander/package.json +84 -0
- package/node_modules/commander/typings/esm.d.mts +3 -0
- package/node_modules/commander/typings/index.d.ts +969 -0
- package/node_modules/minipass/LICENSE.md +55 -0
- package/node_modules/minipass/README.md +825 -0
- package/node_modules/minipass/dist/commonjs/index.d.ts +545 -0
- package/node_modules/minipass/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/minipass/dist/commonjs/index.js +1038 -0
- package/node_modules/minipass/dist/commonjs/index.js.map +1 -0
- package/node_modules/minipass/dist/commonjs/package.json +3 -0
- package/node_modules/minipass/dist/esm/index.d.ts +545 -0
- package/node_modules/minipass/dist/esm/index.d.ts.map +1 -0
- package/node_modules/minipass/dist/esm/index.js +1020 -0
- package/node_modules/minipass/dist/esm/index.js.map +1 -0
- package/node_modules/minipass/dist/esm/package.json +3 -0
- package/node_modules/minipass/package.json +77 -0
- package/node_modules/minizlib/LICENSE +26 -0
- package/node_modules/minizlib/README.md +64 -0
- package/node_modules/minizlib/dist/commonjs/constants.d.ts +2 -0
- package/node_modules/minizlib/dist/commonjs/constants.d.ts.map +1 -0
- package/node_modules/minizlib/dist/commonjs/constants.js +123 -0
- package/node_modules/minizlib/dist/commonjs/constants.js.map +1 -0
- package/node_modules/minizlib/dist/commonjs/index.d.ts +99 -0
- package/node_modules/minizlib/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/minizlib/dist/commonjs/index.js +416 -0
- package/node_modules/minizlib/dist/commonjs/index.js.map +1 -0
- package/node_modules/minizlib/dist/commonjs/package.json +3 -0
- package/node_modules/minizlib/dist/esm/constants.d.ts +2 -0
- package/node_modules/minizlib/dist/esm/constants.d.ts.map +1 -0
- package/node_modules/minizlib/dist/esm/constants.js +117 -0
- package/node_modules/minizlib/dist/esm/constants.js.map +1 -0
- package/node_modules/minizlib/dist/esm/index.d.ts +99 -0
- package/node_modules/minizlib/dist/esm/index.d.ts.map +1 -0
- package/node_modules/minizlib/dist/esm/index.js +363 -0
- package/node_modules/minizlib/dist/esm/index.js.map +1 -0
- package/node_modules/minizlib/dist/esm/package.json +3 -0
- package/node_modules/minizlib/package.json +80 -0
- package/node_modules/tar/LICENSE.md +55 -0
- package/node_modules/tar/README.md +1224 -0
- package/node_modules/tar/dist/commonjs/create.d.ts +3 -0
- package/node_modules/tar/dist/commonjs/create.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/create.js +82 -0
- package/node_modules/tar/dist/commonjs/create.js.map +1 -0
- package/node_modules/tar/dist/commonjs/cwd-error.d.ts +8 -0
- package/node_modules/tar/dist/commonjs/cwd-error.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/cwd-error.js +18 -0
- package/node_modules/tar/dist/commonjs/cwd-error.js.map +1 -0
- package/node_modules/tar/dist/commonjs/extract.d.ts +3 -0
- package/node_modules/tar/dist/commonjs/extract.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/extract.js +88 -0
- package/node_modules/tar/dist/commonjs/extract.js.map +1 -0
- package/node_modules/tar/dist/commonjs/get-write-flag.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/get-write-flag.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/get-write-flag.js +32 -0
- package/node_modules/tar/dist/commonjs/get-write-flag.js.map +1 -0
- package/node_modules/tar/dist/commonjs/header.d.ts +53 -0
- package/node_modules/tar/dist/commonjs/header.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/header.js +312 -0
- package/node_modules/tar/dist/commonjs/header.js.map +1 -0
- package/node_modules/tar/dist/commonjs/index.d.ts +20 -0
- package/node_modules/tar/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/index.js +64 -0
- package/node_modules/tar/dist/commonjs/index.js.map +1 -0
- package/node_modules/tar/dist/commonjs/index.min.js +4 -0
- package/node_modules/tar/dist/commonjs/index.min.js.map +7 -0
- package/node_modules/tar/dist/commonjs/large-numbers.d.ts +3 -0
- package/node_modules/tar/dist/commonjs/large-numbers.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/large-numbers.js +99 -0
- package/node_modules/tar/dist/commonjs/large-numbers.js.map +1 -0
- package/node_modules/tar/dist/commonjs/list.d.ts +7 -0
- package/node_modules/tar/dist/commonjs/list.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/list.js +145 -0
- package/node_modules/tar/dist/commonjs/list.js.map +1 -0
- package/node_modules/tar/dist/commonjs/make-command.d.ts +49 -0
- package/node_modules/tar/dist/commonjs/make-command.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/make-command.js +52 -0
- package/node_modules/tar/dist/commonjs/make-command.js.map +1 -0
- package/node_modules/tar/dist/commonjs/mkdir.d.ts +25 -0
- package/node_modules/tar/dist/commonjs/mkdir.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/mkdir.js +187 -0
- package/node_modules/tar/dist/commonjs/mkdir.js.map +1 -0
- package/node_modules/tar/dist/commonjs/mode-fix.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/mode-fix.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/mode-fix.js +29 -0
- package/node_modules/tar/dist/commonjs/mode-fix.js.map +1 -0
- package/node_modules/tar/dist/commonjs/normalize-unicode.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/normalize-unicode.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/normalize-unicode.js +38 -0
- package/node_modules/tar/dist/commonjs/normalize-unicode.js.map +1 -0
- package/node_modules/tar/dist/commonjs/normalize-windows-path.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/normalize-windows-path.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/normalize-windows-path.js +12 -0
- package/node_modules/tar/dist/commonjs/normalize-windows-path.js.map +1 -0
- package/node_modules/tar/dist/commonjs/options.d.ts +596 -0
- package/node_modules/tar/dist/commonjs/options.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/options.js +66 -0
- package/node_modules/tar/dist/commonjs/options.js.map +1 -0
- package/node_modules/tar/dist/commonjs/pack.d.ts +102 -0
- package/node_modules/tar/dist/commonjs/pack.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/pack.js +511 -0
- package/node_modules/tar/dist/commonjs/pack.js.map +1 -0
- package/node_modules/tar/dist/commonjs/package.json +3 -0
- package/node_modules/tar/dist/commonjs/parse.d.ts +85 -0
- package/node_modules/tar/dist/commonjs/parse.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/parse.js +610 -0
- package/node_modules/tar/dist/commonjs/parse.js.map +1 -0
- package/node_modules/tar/dist/commonjs/path-reservations.d.ts +11 -0
- package/node_modules/tar/dist/commonjs/path-reservations.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/path-reservations.js +170 -0
- package/node_modules/tar/dist/commonjs/path-reservations.js.map +1 -0
- package/node_modules/tar/dist/commonjs/pax.d.ts +26 -0
- package/node_modules/tar/dist/commonjs/pax.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/pax.js +158 -0
- package/node_modules/tar/dist/commonjs/pax.js.map +1 -0
- package/node_modules/tar/dist/commonjs/process-umask.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/process-umask.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/process-umask.js +7 -0
- package/node_modules/tar/dist/commonjs/process-umask.js.map +1 -0
- package/node_modules/tar/dist/commonjs/read-entry.d.ts +36 -0
- package/node_modules/tar/dist/commonjs/read-entry.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/read-entry.js +136 -0
- package/node_modules/tar/dist/commonjs/read-entry.js.map +1 -0
- package/node_modules/tar/dist/commonjs/replace.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/replace.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/replace.js +227 -0
- package/node_modules/tar/dist/commonjs/replace.js.map +1 -0
- package/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/strip-absolute-path.js +29 -0
- package/node_modules/tar/dist/commonjs/strip-absolute-path.js.map +1 -0
- package/node_modules/tar/dist/commonjs/strip-trailing-slashes.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/strip-trailing-slashes.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/strip-trailing-slashes.js +18 -0
- package/node_modules/tar/dist/commonjs/strip-trailing-slashes.js.map +1 -0
- package/node_modules/tar/dist/commonjs/symlink-error.d.ts +9 -0
- package/node_modules/tar/dist/commonjs/symlink-error.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/symlink-error.js +19 -0
- package/node_modules/tar/dist/commonjs/symlink-error.js.map +1 -0
- package/node_modules/tar/dist/commonjs/types.d.ts +7 -0
- package/node_modules/tar/dist/commonjs/types.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/types.js +50 -0
- package/node_modules/tar/dist/commonjs/types.js.map +1 -0
- package/node_modules/tar/dist/commonjs/unpack.d.ts +101 -0
- package/node_modules/tar/dist/commonjs/unpack.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/unpack.js +932 -0
- package/node_modules/tar/dist/commonjs/unpack.js.map +1 -0
- package/node_modules/tar/dist/commonjs/update.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/update.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/update.js +33 -0
- package/node_modules/tar/dist/commonjs/update.js.map +1 -0
- package/node_modules/tar/dist/commonjs/warn-method.d.ts +24 -0
- package/node_modules/tar/dist/commonjs/warn-method.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/warn-method.js +31 -0
- package/node_modules/tar/dist/commonjs/warn-method.js.map +1 -0
- package/node_modules/tar/dist/commonjs/winchars.d.ts +3 -0
- package/node_modules/tar/dist/commonjs/winchars.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/winchars.js +14 -0
- package/node_modules/tar/dist/commonjs/winchars.js.map +1 -0
- package/node_modules/tar/dist/commonjs/write-entry.d.ts +129 -0
- package/node_modules/tar/dist/commonjs/write-entry.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/write-entry.js +698 -0
- package/node_modules/tar/dist/commonjs/write-entry.js.map +1 -0
- package/node_modules/tar/dist/esm/create.d.ts +3 -0
- package/node_modules/tar/dist/esm/create.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/create.js +76 -0
- package/node_modules/tar/dist/esm/create.js.map +1 -0
- package/node_modules/tar/dist/esm/cwd-error.d.ts +8 -0
- package/node_modules/tar/dist/esm/cwd-error.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/cwd-error.js +14 -0
- package/node_modules/tar/dist/esm/cwd-error.js.map +1 -0
- package/node_modules/tar/dist/esm/extract.d.ts +3 -0
- package/node_modules/tar/dist/esm/extract.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/extract.js +49 -0
- package/node_modules/tar/dist/esm/extract.js.map +1 -0
- package/node_modules/tar/dist/esm/get-write-flag.d.ts +2 -0
- package/node_modules/tar/dist/esm/get-write-flag.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/get-write-flag.js +26 -0
- package/node_modules/tar/dist/esm/get-write-flag.js.map +1 -0
- package/node_modules/tar/dist/esm/header.d.ts +53 -0
- package/node_modules/tar/dist/esm/header.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/header.js +275 -0
- package/node_modules/tar/dist/esm/header.js.map +1 -0
- package/node_modules/tar/dist/esm/index.d.ts +20 -0
- package/node_modules/tar/dist/esm/index.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/index.js +20 -0
- package/node_modules/tar/dist/esm/index.js.map +1 -0
- package/node_modules/tar/dist/esm/index.min.js +4 -0
- package/node_modules/tar/dist/esm/index.min.js.map +7 -0
- package/node_modules/tar/dist/esm/large-numbers.d.ts +3 -0
- package/node_modules/tar/dist/esm/large-numbers.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/large-numbers.js +94 -0
- package/node_modules/tar/dist/esm/large-numbers.js.map +1 -0
- package/node_modules/tar/dist/esm/list.d.ts +7 -0
- package/node_modules/tar/dist/esm/list.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/list.js +105 -0
- package/node_modules/tar/dist/esm/list.js.map +1 -0
- package/node_modules/tar/dist/esm/make-command.d.ts +49 -0
- package/node_modules/tar/dist/esm/make-command.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/make-command.js +48 -0
- package/node_modules/tar/dist/esm/make-command.js.map +1 -0
- package/node_modules/tar/dist/esm/mkdir.d.ts +25 -0
- package/node_modules/tar/dist/esm/mkdir.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/mkdir.js +179 -0
- package/node_modules/tar/dist/esm/mkdir.js.map +1 -0
- package/node_modules/tar/dist/esm/mode-fix.d.ts +2 -0
- package/node_modules/tar/dist/esm/mode-fix.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/mode-fix.js +25 -0
- package/node_modules/tar/dist/esm/mode-fix.js.map +1 -0
- package/node_modules/tar/dist/esm/normalize-unicode.d.ts +2 -0
- package/node_modules/tar/dist/esm/normalize-unicode.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/normalize-unicode.js +34 -0
- package/node_modules/tar/dist/esm/normalize-unicode.js.map +1 -0
- package/node_modules/tar/dist/esm/normalize-windows-path.d.ts +2 -0
- package/node_modules/tar/dist/esm/normalize-windows-path.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/normalize-windows-path.js +9 -0
- package/node_modules/tar/dist/esm/normalize-windows-path.js.map +1 -0
- package/node_modules/tar/dist/esm/options.d.ts +596 -0
- package/node_modules/tar/dist/esm/options.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/options.js +54 -0
- package/node_modules/tar/dist/esm/options.js.map +1 -0
- package/node_modules/tar/dist/esm/pack.d.ts +102 -0
- package/node_modules/tar/dist/esm/pack.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/pack.js +469 -0
- package/node_modules/tar/dist/esm/pack.js.map +1 -0
- package/node_modules/tar/dist/esm/package.json +3 -0
- package/node_modules/tar/dist/esm/parse.d.ts +85 -0
- package/node_modules/tar/dist/esm/parse.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/parse.js +606 -0
- package/node_modules/tar/dist/esm/parse.js.map +1 -0
- package/node_modules/tar/dist/esm/path-reservations.d.ts +11 -0
- package/node_modules/tar/dist/esm/path-reservations.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/path-reservations.js +166 -0
- package/node_modules/tar/dist/esm/path-reservations.js.map +1 -0
- package/node_modules/tar/dist/esm/pax.d.ts +26 -0
- package/node_modules/tar/dist/esm/pax.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/pax.js +154 -0
- package/node_modules/tar/dist/esm/pax.js.map +1 -0
- package/node_modules/tar/dist/esm/process-umask.d.ts +2 -0
- package/node_modules/tar/dist/esm/process-umask.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/process-umask.js +3 -0
- package/node_modules/tar/dist/esm/process-umask.js.map +1 -0
- package/node_modules/tar/dist/esm/read-entry.d.ts +36 -0
- package/node_modules/tar/dist/esm/read-entry.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/read-entry.js +132 -0
- package/node_modules/tar/dist/esm/read-entry.js.map +1 -0
- package/node_modules/tar/dist/esm/replace.d.ts +2 -0
- package/node_modules/tar/dist/esm/replace.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/replace.js +221 -0
- package/node_modules/tar/dist/esm/replace.js.map +1 -0
- package/node_modules/tar/dist/esm/strip-absolute-path.d.ts +2 -0
- package/node_modules/tar/dist/esm/strip-absolute-path.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/strip-absolute-path.js +25 -0
- package/node_modules/tar/dist/esm/strip-absolute-path.js.map +1 -0
- package/node_modules/tar/dist/esm/strip-trailing-slashes.d.ts +2 -0
- package/node_modules/tar/dist/esm/strip-trailing-slashes.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/strip-trailing-slashes.js +14 -0
- package/node_modules/tar/dist/esm/strip-trailing-slashes.js.map +1 -0
- package/node_modules/tar/dist/esm/symlink-error.d.ts +9 -0
- package/node_modules/tar/dist/esm/symlink-error.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/symlink-error.js +15 -0
- package/node_modules/tar/dist/esm/symlink-error.js.map +1 -0
- package/node_modules/tar/dist/esm/types.d.ts +7 -0
- package/node_modules/tar/dist/esm/types.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/types.js +45 -0
- package/node_modules/tar/dist/esm/types.js.map +1 -0
- package/node_modules/tar/dist/esm/unpack.d.ts +101 -0
- package/node_modules/tar/dist/esm/unpack.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/unpack.js +891 -0
- package/node_modules/tar/dist/esm/unpack.js.map +1 -0
- package/node_modules/tar/dist/esm/update.d.ts +2 -0
- package/node_modules/tar/dist/esm/update.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/update.js +30 -0
- package/node_modules/tar/dist/esm/update.js.map +1 -0
- package/node_modules/tar/dist/esm/warn-method.d.ts +24 -0
- package/node_modules/tar/dist/esm/warn-method.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/warn-method.js +27 -0
- package/node_modules/tar/dist/esm/warn-method.js.map +1 -0
- package/node_modules/tar/dist/esm/winchars.d.ts +3 -0
- package/node_modules/tar/dist/esm/winchars.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/winchars.js +9 -0
- package/node_modules/tar/dist/esm/winchars.js.map +1 -0
- package/node_modules/tar/dist/esm/write-entry.d.ts +129 -0
- package/node_modules/tar/dist/esm/write-entry.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/write-entry.js +656 -0
- package/node_modules/tar/dist/esm/write-entry.js.map +1 -0
- package/node_modules/tar/package.json +297 -0
- package/node_modules/yallist/LICENSE.md +63 -0
- package/node_modules/yallist/README.md +205 -0
- package/node_modules/yallist/dist/commonjs/index.d.ts +39 -0
- package/node_modules/yallist/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/yallist/dist/commonjs/index.js +384 -0
- package/node_modules/yallist/dist/commonjs/index.js.map +1 -0
- package/node_modules/yallist/dist/commonjs/package.json +3 -0
- package/node_modules/yallist/dist/esm/index.d.ts +39 -0
- package/node_modules/yallist/dist/esm/index.d.ts.map +1 -0
- package/node_modules/yallist/dist/esm/index.js +379 -0
- package/node_modules/yallist/dist/esm/index.js.map +1 -0
- package/node_modules/yallist/dist/esm/package.json +3 -0
- package/node_modules/yallist/package.json +68 -0
- package/package.json +9 -5
|
@@ -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,oBAAqB,SAAQ,aAAa;IACzD,8EAA8E;IAC9E,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,MAAM,C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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,O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@
|
|
|
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"}
|