Moves all Mosaic framework runtime files from the separate bootstrap repo into the monorepo as canonical source. The @mosaic/mosaic npm package now ships the complete framework — bin scripts, runtime configs, tools, and templates — enabling standalone installation via npm install. Structure: packages/mosaic/framework/ ├── bin/ 28 CLI scripts (mosaic, mosaic-doctor, mosaic-sync-skills, etc.) ├── runtime/ Runtime adapters (claude, codex, opencode, pi, mcp) ├── tools/ Shell tooling (git, prdy, orchestrator, quality, etc.) ├── templates/ Agent and repo templates ├── defaults/ Default identity files (AGENTS.md, STANDARDS.md, SOUL.md, etc.) ├── install.sh Legacy bash installer └── remote-install.sh One-liner remote installer Key files with Pi support and recent fixes: - bin/mosaic: launch_pi() with skills-local loop - bin/mosaic-doctor: --fix auto-wiring for all 4 harnesses - bin/mosaic-sync-skills: Pi as 4th link target, symlink-aware find - bin/mosaic-link-runtime-assets: Pi settings.json patching - bin/mosaic-migrate-local-skills: Pi skill roots, symlink find - runtime/pi/RUNTIME.md + mosaic-extension.ts Package ships 251 framework files in the npm tarball (278KB compressed).
60 lines
2.3 KiB
PowerShell
60 lines
2.3 KiB
PowerShell
# Quality Rails Installation Script (Windows)
|
|
param(
|
|
[Parameter(Mandatory=$true)]
|
|
[string]$Template,
|
|
|
|
[Parameter(Mandatory=$false)]
|
|
[string]$TargetDir = "."
|
|
)
|
|
|
|
$ErrorActionPreference = "Stop"
|
|
|
|
$ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
|
|
$RepoRoot = Split-Path -Parent $ScriptDir
|
|
$TemplateDir = Join-Path $RepoRoot "templates\$Template"
|
|
|
|
if (-not (Test-Path $TemplateDir)) {
|
|
Write-Error "Template '$Template' not found at $TemplateDir"
|
|
Write-Host "Available templates: typescript-node, typescript-nextjs, python, monorepo"
|
|
exit 1
|
|
}
|
|
|
|
Write-Host "Installing Quality Rails: $Template"
|
|
Write-Host "Target directory: $TargetDir"
|
|
Write-Host ""
|
|
|
|
# Copy template files
|
|
Write-Host "Copying template files..."
|
|
if (Test-Path "$TemplateDir\.husky") {
|
|
Copy-Item -Path "$TemplateDir\.husky" -Destination $TargetDir -Recurse -Force
|
|
}
|
|
Copy-Item -Path "$TemplateDir\.lintstagedrc.js" -Destination $TargetDir -Force -ErrorAction SilentlyContinue
|
|
Copy-Item -Path "$TemplateDir\.eslintrc.strict.js" -Destination "$TargetDir\.eslintrc.js" -Force -ErrorAction SilentlyContinue
|
|
Copy-Item -Path "$TemplateDir\tsconfig.strict.json" -Destination "$TargetDir\tsconfig.json" -Force -ErrorAction SilentlyContinue
|
|
Copy-Item -Path "$TemplateDir\.woodpecker.yml" -Destination $TargetDir -Force -ErrorAction SilentlyContinue
|
|
|
|
# Copy shared gitleaks config from templates root
|
|
$SharedTemplates = Split-Path -Parent $TemplateDir
|
|
Copy-Item -Path "$SharedTemplates\.gitleaks.toml" -Destination $TargetDir -Force -ErrorAction SilentlyContinue
|
|
|
|
Write-Host "✓ Files copied"
|
|
|
|
if (Test-Path "$TargetDir\package.json") {
|
|
Write-Host ""
|
|
Write-Host "⚠ package.json exists. Please manually merge dependencies from:"
|
|
Write-Host " $TemplateDir\package.json.snippet"
|
|
} else {
|
|
Write-Host "⚠ No package.json found. Create one and add dependencies from:"
|
|
Write-Host " $TemplateDir\package.json.snippet"
|
|
}
|
|
|
|
Write-Host ""
|
|
Write-Host "✓ Quality Rails installed successfully!"
|
|
Write-Host ""
|
|
Write-Host "Next steps:"
|
|
Write-Host "1. Install dependencies: npm install"
|
|
Write-Host "2. Initialize husky: npx husky install"
|
|
Write-Host "3. Install gitleaks: winget install gitleaks"
|
|
Write-Host "4. Run verification: ..\quality-rails\scripts\verify.ps1"
|
|
Write-Host "5. (Optional) Scan full history: gitleaks git --redact --verbose"
|