mirror of
https://github.com/rohitg00/skillkit.git
synced 2026-11-18 18:04:26 +00:00
Move @skillkit/api, @skillkit/tui, @skillkit/mesh, @skillkit/messaging to optionalDependencies. Drop @skillkit/memory entirely — the CLI never imported it (only @skillkit/mcp-memory consumes it). Killing @skillkit/memory removes cozo-node (native Rust) and @xenova/transformers (~300MB ML stack) from the critical install path. Making @skillkit/tui optional removes @opentui/core's prebuild-install toolchain, which was the source of the inflight/gauge/npmlog/tar/glob deprecation warnings. Add skipNodeModulesBundle + platform=node + target=node18 to apps/skillkit tsup config so optional deps stay external. All TUI/mesh/messaging/api commands already lazy-import via dynamic import() with surrounding try/catch, so missing optional deps surface as a graceful error rather than a crash. Measured impact (npm i skillkit in a clean cache): Scenario Packages Time Deprecations Vulns (crit/high) main 544 37s 10 33 (5/5) slim (default) 475 18s 3 25 (0/0) slim --omit=optional 118 9s 0 0 Core commands (list, find, translate, recommend, install, --help, --version) smoke-tested in all three scenarios. Optional commands (ui, mesh, message, serve) confirmed to degrade with a clean "Cannot find package" error under --omit=optional.