feat: complete framework migration — PowerShell, adapters, guides, profiles, tests
Completes the bootstrap repo migration with remaining files: - PowerShell scripts (.ps1) for Windows support (bin/ + tools/) - Runtime adapters (claude, codex, generic, pi) - Guides (17 .md files) and profiles (domains, tech-stacks, workflows) - Wizard test suite (6 test files from bootstrap tests/) - Memory placeholder, audit history Bootstrap repo (mosaic/bootstrap) is now fully superseded: - All 335 files accounted for - 5 build config files (package.json, tsconfig, etc.) not needed — monorepo has its own at packages/mosaic/ - skills-local/ superseded by monorepo skills/ with mosaic-* naming - src/ already lives at packages/mosaic/src/
This commit is contained in:
38
packages/mosaic/framework/remote-install.ps1
Normal file
38
packages/mosaic/framework/remote-install.ps1
Normal file
@@ -0,0 +1,38 @@
|
||||
# Mosaic Bootstrap — Remote Installer (Windows PowerShell)
|
||||
#
|
||||
# One-liner:
|
||||
# irm https://git.mosaicstack.dev/mosaic/bootstrap/raw/branch/main/remote-install.ps1 | iex
|
||||
#
|
||||
# Or explicit:
|
||||
# powershell -ExecutionPolicy Bypass -File remote-install.ps1
|
||||
#
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
$BootstrapRef = if ($env:MOSAIC_BOOTSTRAP_REF) { $env:MOSAIC_BOOTSTRAP_REF } else { "main" }
|
||||
$ArchiveUrl = "https://git.mosaicstack.dev/mosaic/bootstrap/archive/$BootstrapRef.zip"
|
||||
$WorkDir = Join-Path $env:TEMP "mosaic-bootstrap-$PID"
|
||||
$ZipPath = "$WorkDir.zip"
|
||||
|
||||
try {
|
||||
Write-Host "[mosaic] Downloading bootstrap archive (ref: $BootstrapRef)..."
|
||||
New-Item -ItemType Directory -Path $WorkDir -Force | Out-Null
|
||||
Invoke-WebRequest -Uri $ArchiveUrl -OutFile $ZipPath -UseBasicParsing
|
||||
|
||||
Write-Host "[mosaic] Extracting..."
|
||||
Expand-Archive -Path $ZipPath -DestinationPath $WorkDir -Force
|
||||
|
||||
$InstallScript = Join-Path $WorkDir "bootstrap\install.ps1"
|
||||
if (-not (Test-Path $InstallScript)) {
|
||||
throw "install.ps1 not found in archive"
|
||||
}
|
||||
|
||||
Write-Host "[mosaic] Running install..."
|
||||
& $InstallScript
|
||||
|
||||
Write-Host "[mosaic] Done."
|
||||
}
|
||||
finally {
|
||||
Write-Host "[mosaic] Cleaning up temporary files..."
|
||||
Remove-Item -Path $ZipPath -Force -ErrorAction SilentlyContinue
|
||||
Remove-Item -Path $WorkDir -Recurse -Force -ErrorAction SilentlyContinue
|
||||
}
|
||||
Reference in New Issue
Block a user