mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-12-05 06:31:46 +09:00
Pre-reqs for extracting WordPress into a bundled default-installed extension (#38). No behavior change yet — WordPress still ships as core; this only inverts the couplings so the physical move is mechanical: - app/services/wordpress_bridge.py: importlib bridge to the (future) dashed package app.plugins.serverkit-wordpress, with a two-speed fallback to the legacy core location so callers work before AND after the move. - plugin_service: _ensure_builtin_backend_importable() registers a dashed builtin backend in-place via spec_from_file_location (no copy) — solves dev/test/prod loadability of a default-installed dashed package; extra_blueprints manifest support (WP needs 3 blueprints / 4 mounts incl. the /pipelines alias); FLAGSHIP_SLUGS + seed_flagship_extensions() + flagship-aware install/uninstall (D4: default-installed, uninstallable, never deletes tracked files). - create_app: seed flagships before load_all_plugins (inert until the folder exists). - Re-point the 6 lazy WP-service callers (preview/webhook/env-pipeline/apps/ builtin_handlers/backup_policy) through the bridge; drop the eager WordPressService import from app/services/__init__.py. Models stay core. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>