Files
Juan DenisandClaude Opus 4.8 8670ebae45 localkit ext: GET /pull/code, pair features, php_version on /sites
The download half of code sync — the missing piece for LocalKit's
"import this remote site as a new local site" flow (LocalKit plan 18).

- GET /pull/code streams a tar.gz of the site's wp-content, built inside
  the container with `docker exec tar czf -` so permissions and structure
  survive. Entries are prefixed `wp-content/`, the same format POST
  /push/code accepts, so both directions share one archive shape. GNU
  tar's exit 1 ("file changed as we read it") is tolerated — a live site
  writing uploads mid-archive is normal.
- GET /pair now reports a `features` array so clients gate their UI on
  capability instead of discovering a 404 mid-operation.
- GET /sites gains `php_version` (regexed off the compose image tag, not
  a per-site container shell) and an explicit `site_url`.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-20 14:39:12 -04:00

15 lines
610 B
JSON

{
"name": "serverkit-localkit",
"display_name": "LocalKit Bridge",
"version": "0.2.0",
"description": "API surface for the LocalKit desktop app: pair with an API key, list/create WordPress sites (API-key friendly), and push/pull wp-content code and database dumps between local and server sites.",
"author": "ServerKit",
"license": "MIT",
"category": "integration",
"homepage": "https://github.com/jhd3197/ServerKit",
"permissions": ["filesystem", "network", "docker", "database"],
"min_panel_version": "1.7.0",
"entry_point": "localkit:localkit_bp",
"url_prefix": "/api/v1/localkit"
}