regenerateConnectionPageFile
Regenerates the committed connection-page file from the server config after dashboard edits, returning the file content to write. Use after configuration changes to sync the repo; pass projectPath to detect overwrites.
Instructions
Regenerate the committed extentos.connection-page.json FROM the dashboard/server config (file ← server) — the generated mirror that makes the dashboard's tokens real in the repo and lets the app theme correctly offline. Returns file: { path, content } for you to write (it carries a generated _comment marker — do not hand-edit; edits belong in the dashboard). If the project is UNMANAGED (no server config) there is nothing to mirror. Pass projectPath to get a drift note when an existing committed file would be overwritten. Android-only for now (iOS file-sync is Phase 4). USE after setConnectionPageConfig / dashboard edits to sync the repo. DON'T USE to push local edits up (use adoptConnectionPageFile).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| platform | No | Defaults to android. iOS file-sync is Phase 4 — returns a not_supported message for now. | |
| appPackage | Yes | The app's package / bundle id (project_install_id). | |
| projectPath | No | Absolute path to the project root. Optional — when given, enables an overwrite/drift note if a committed file already exists. |