Local Playgrounds Link
[MODE:BROWNFIELD] Tier: brownfield. Idempotent.
Creates symlinks from /opt/fibe/playgrounds/<name>/... (or MARQUEE_ROOT) into link_dir so the Agent container can edit Playground files directly. Wraps fibe local playgrounds link <id-or-name> [--link-dir DIR].
When to use
- After
fibe_greenfield_create(called automatically — manually re-run only when the auto-link failed). - Switching between Playgrounds within one Agent session.
- Recovering after
/app/playgroundsymlinks went stale (Playground recreated, paths changed).
Inputs
| Field | Type | Required | Notes |
|---|---|---|---|
playground | string | conditional | Local playground ID, name, compose project, playspec, or unique playspec prefix |
playground_id | number | conditional | Local numeric Playground ID. Pass either playground or playground_id, not both |
link_dir | string | no | Target directory; default /app/playground |
Output
Cobra-run envelope. stdout typically lists the created symlinks.
Behavior
- Resolves the target Playground locally (discover candidates with
fibe_local_playgrounds_info(view:"names")). - Removes prior symlinks under
link_dirthat pointed to a different Playground. - Creates fresh symlinks for each mount slot — typically the Prop checkout, optional secondary repos, and shared volumes.
Gotchas
- If the Playground was recreated, paths under
/opt/fibe/playgrounds/<name>may have changed; re-link to refresh. link_dirmust be writable by the Agent process —/app/playgroundis the standard mount and works in default Agent images.- Files written through
link_dirland in the real Marquee filesystem and become visible to the Playground's containers immediately (live-reload territory). Load thefibe-live-reloadskill. - Linking a Playground that doesn't exist locally errors; pre-flight with
fibe_local_playgrounds_info(view:"names").
Related
fibe_local_playgrounds_info(view:"names")— find target names.fibe_local_playgrounds_info(view:"mounts")— confirm source paths.fibe-live-reloadskill — live editing semantics.fibe_greenfield_create— auto-links on success.