Extension Maintenance
Extension repository maintenance model. Observes a multi-extension repo, audits dependency freshness (npm, swamp-testing, manifest pins), computes quality scores, plans version bumps, and applies changes with human approval.
Designed for repos publishing many swamp extensions via CI. Replaces the manual audit → bump → test → PR loop with typed, observable methods.
Usage
swamp extension pull @webframp/extension-maintenance
swamp model create @webframp/extension-maintenance/maintainer ext-maint \
--global repo_root=/path/to/extensions
# Observe
swamp model method run ext-maint audit
# Plan (human reviews output)
swamp model method run ext-maint plan-bump
# Apply (writes files)
swamp model method run ext-maint apply-bump
# Verify
swamp model method run ext-maint quality-gate2026.07.25.2
Fixed: Scoped extension names (@webframp/...) in manifest dependency pins
are now parsed correctly. Previous regex silently failed on the leading @,
causing all manifest deps to be reported as up-to-date.
Fixed: nextCalVer() increments the sequence number when an extension was
already bumped today, preventing no-op replacements or version field corruption
on same-day re-runs.
Fixed: registry_timeout global argument is now applied to all fetch calls
via AbortSignal.timeout(). Previously validated but never used.
Fixed: Test-only stale entries (swamp-testing bump) no longer emit plan entries or overwrite existing RELEASE_NOTES.md with empty content.
Fixed: Manifest version replacement uses the full version: "X.Y.Z.N" field
string instead of the bare version, preventing accidental substitution in
manifest description blocks.
Changed: Unversioned npm imports (e.g. npm:zod without a pinned version)
are now logged as warnings during audit instead of being silently skipped.
Changed: apply-bump dry-run mode now reads files and counts matches,
producing accurate filesModified counts that match what a real run would do.
Resources
2026.07.25.1
Added: Initial release of the extension maintenance model.
auditmethod: scans all extensions, queries npm/JSR/swamp registries for latest versions, produces structured staleness report with quality scoresplan-bumpmethod: reads audit output, computes structured change plan with CalVer versioning and draft release notesapply-bumpmethod: executes the plan, writes version changes and RELEASE_NOTES.md files (supports dry_run mode)quality-gatemethod: runs deno check/lint/fmt/test plus swamp extension quality and fmt across all or filtered extensions
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License declared1/1earned
- Verified public repository2/2earned