How code-amalps/amstralift works
AMstraLift modernizes frameworks and remediates dependency vulnerabilities through a CLI, GUI, or REST API. Its upgrade workflow discovers the project, prepares an isolated credential-scrubbed workspace, applies ecosystem-specific migrations, verifies changes, signs evidence, and can publish a pull request. A separate security workflow audits vulnerabilities and supports preview or verified remediation. The map includes documented capabilities whose implementation was not sampled; edges are limited to relationships evidenced by excerpts, the source index, or the README.
Main entry points: service.py Upgrade orchestrator · stage_a.py Stage A execution · orchestrator.py Security workflow · stage_b.py Stage B publishing
Components 23
User entry points
- CLI
amstralift/cli.py - Desktop GUI
amstralift/gui.py - REST API
amstralift/api/app.py
Upgrade workflow
- Upgrade orchestrator
amstralift/service.py - Project discovery
amstralift/core/monorepo.py - Isolated workspace
amstralift/core/workspace.py - Stage A execution
amstralift/execution/stage_a.py - Upgrade contracts
amstralift/core/models.py
Migration adapters
- Adapter interface
amstralift/adapters/base.py - Angular migrations
amstralift/adapters/angular.py - Other ecosystems
amstralift/adapters
Security remediation
- Security workflow
amstralift/security/orchestrator.py - Dependency analysis
amstralift/security/dependency_graph.py - OSV vulnerability scan
amstralift/security/osv_client.py - Finding and plan models
amstralift/security/models.py - Vulnerability policy
amstralift/governance/vulnerabilities.py
Verification and publishing
- Stage B publishing
amstralift/execution/stage_b.py - Bundle signing
amstralift/core/crypto.py - GitHub publisher
amstralift/publisher/github.py - Semantic contract diff
amstralift/semantic/engine.py - Evidence pipeline
amstralift/evidence/pipeline.py
Other components
- Developer
- OSV.dev
Connections 29
- Developer → CLI: invokes
- Developer → Desktop GUI: uses
- Developer → REST API: calls
- CLI → Upgrade orchestrator: starts upgrades
amstralift/cli.py - Desktop GUI → Upgrade orchestrator: starts upgrades
amstralift/gui.py - REST API → Upgrade orchestrator: starts upgrades
amstralift/api/app.py - REST API → Security workflow: starts audits
amstralift/api/app.py - Upgrade orchestrator → Project discovery: discovers projects
amstralift/service.py - Upgrade orchestrator → Stage A execution: runs Stage A
amstralift/service.py - Upgrade orchestrator → Stage B publishing: runs Stage B
amstralift/service.py - Upgrade orchestrator → Angular migrations: selects adapter
amstralift/service.py - Upgrade orchestrator → Other ecosystems: selects adapter
amstralift/service.py - Stage A execution → Isolated workspace: prepares sandbox
amstralift/execution/stage_a.py - Stage A execution → Adapter interface: runs adapter
amstralift/execution/stage_a.py - Angular migrations → Adapter interface: implements
amstralift/adapters/angular.py - Adapter interface → Isolated workspace: uses workspace
amstralift/adapters/base.py - Stage A execution → Dependency analysis: scans dependencies
amstralift/execution/stage_a.py - Stage A execution → OSV vulnerability scan: checks vulnerabilities
amstralift/execution/stage_a.py - OSV vulnerability scan → OSV.dev: queries
amstralift/security/osv_client.py - Stage A execution → Upgrade contracts: builds bundle
amstralift/execution/stage_a.py - Stage A execution → Semantic contract diff: checks contracts
- Security workflow → Dependency analysis: builds dependency graph
amstralift/security/orchestrator.py - Security workflow → OSV vulnerability scan: requests audit
amstralift/security/orchestrator.py - Security workflow → Vulnerability policy: applies policy
amstralift/security/orchestrator.py - Security workflow → Finding and plan models: produces plans
amstralift/security/orchestrator.py - Stage B publishing → Bundle signing: verifies bundle
amstralift/execution/stage_b.py - Stage B publishing → GitHub publisher: creates pull request
amstralift/execution/stage_b.py - Stage B publishing → Isolated workspace: validates patch
amstralift/execution/stage_b.py - Evidence pipeline → Bundle signing: signs evidence
amstralift/evidence/pipeline.py