Feat v0.6.3 dead code sweep (#38)
All checks were successful
CI/CD / detect-changes (push) Successful in 4s
CI/CD / test-frontend (push) Successful in 6s
CI/CD / test-sqlite (push) Successful in 2m46s
CI/CD / test-go-pg (push) Successful in 2m47s
CI/CD / build-and-deploy (push) Successful in 26s

Co-authored-by: Jeffrey Smith <jasafpro@gmail.com>
Co-committed-by: Jeffrey Smith <jasafpro@gmail.com>
This commit was merged in pull request #38.
This commit is contained in:
2026-03-31 12:37:47 +00:00
committed by xcaliber
parent a887b4c78b
commit 3d4228f868
130 changed files with 522 additions and 1215 deletions

View File

@@ -2,6 +2,47 @@
All notable changes to Switchboard Core are documented here.
## v0.6.3 — Dead Code Sweep + Registry Fix
Pre-fork hardening: fix broken registry install, add registry settings UI,
clean up dead code, narrow default bundle.
### Fixed
- **Registry install**: SDK was sending `{ url }` but the Go handler expects
`{ download_url }`, causing every registry Install click to return 400.
### Added
- **Package Registry settings**: New "Package Registry" section in Admin >
Settings with a URL input field for configuring the external registry.
- **`scripts/generate-registry.sh`**: Shell script that reads `.pkg` ZIPs,
extracts manifests, and emits a `registry.json` for self-hosted discovery.
- **`docs/PACKAGE-REGISTRY.md`**: Documents registry JSON format, admin
configuration, script usage, and self-hosting setup.
### Removed
- **Dead Go code**: Orphaned channel/message type comments from
`interfaces.go`, unused `roleFilterType()` from `pages.go`, stale version
comment from `main.go`.
- **Dead vendor JS**: `marked.min.js` (40KB) and `purify.min.js` (22KB) —
unused vendor copies with zero production imports. Removed cache entries
from `sw.js`.
- **`dev.html`**: 676-line standalone dev gallery, not referenced by anything.
- **Pre-fork version comments**: Stripped all chat-switchboard version
annotations across ~140 files — standalone comments, inline suffixes,
section headers, and config field docs. Reworded to describe features
rather than reference pre-fork version numbers.
### Changed
- **Default bundle narrowed** from 10 packages to 5: `notes`, `chat`,
`chat-core`, `mermaid-renderer`, `schedules`. All other packages remain
available via `BUNDLED_PACKAGES=*` or explicit list.
---
## v0.6.2 — Docs Polish + Dynamic OpenAPI
Docs surface polish and dynamic OpenAPI spec with extension route merging.