feat: unified install.sh + auto-update checker (deprecates mosaic/bootstrap) #347
Reference in New Issue
Block a user
Delete Branch "feat/install-update-checker"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Single
tools/install.shthat installs both the Mosaic framework (~/.config/mosaic/) and@mosaic/cli(npm). Adds auto-update checking on CLI startup. Fully deprecates themosaic/bootstraprepo.What it does
tools/install.sh— unified installerpackages/mosaic/framework/@mosaic/clivia npm (scoped@mosaicregistry in~/.npmrc)--check,--framework,--cli,--ref <branch>main()wrapper, no stdin consumption)Auto-update checker
packages/mosaic/src/runtime/update-checker.ts— checks Gitea npm registry, caches result 1h at~/.cache/mosaic/update-check.jsonmosaicinvocationmosaic updatecommand: explicit check + install (--checkfor CI)scripts/agent/session-start.sh: warns agents when CLI is outdatedCleanup
remote-install.shandremote-install.ps1(redundant redirectors)mosaic/bootstrapreferences →mosaic/mosaic-stackdefaults/README.mdfor monorepo, Pi as first-class runtimeFiles changed (14 files, +767 / -298)
tools/install.shpackages/mosaic/src/runtime/update-checker.tspackages/mosaic/__tests__/update-checker.test.tspackages/cli/src/cli.tsmosaic updatecommandpackages/mosaic/src/index.tsscripts/agent/session-start.sheslint.config.mjs__tests__/in mosaic packageframework/bin/mosaicframework/bin/mosaic.ps1framework/bin/mosaic-release-upgradeframework/bin/mosaic-release-upgrade.ps1framework/defaults/README.mdframework/remote-install.shframework/remote-install.ps1Testing
vitest— semver comparison + notice formatting tests passtsc --noEmit— both@mosaic/mosaicand@mosaic/clicompile cleanbash -n— all shell scripts pass syntax check--checkflag verified against live Gitea registryDeprecates
mosaic/bootstrap— zero references remain in the codebase. Ready to archive.1ad0175ec1to3b9104429b