@@ -305,6 +305,7 @@ def refresh_shared_templates(
305305 repo_root : Path ,
306306 console : Any ,
307307 invoke_separator : str ,
308+ invoke_prefix : str = "/" ,
308309 force : bool = False ,
309310) -> None :
310311 """Refresh default-sensitive shared templates without touching scripts."""
@@ -336,7 +337,9 @@ def refresh_shared_templates(
336337 continue
337338
338339 content = src .read_text (encoding = "utf-8" )
339- content = IntegrationBase .resolve_command_refs (content , invoke_separator )
340+ content = IntegrationBase .resolve_command_refs (
341+ content , invoke_separator , invoke_prefix
342+ )
340343 planned_updates .append ((dst , rel , content ))
341344
342345 for dst , rel , content in planned_updates :
@@ -363,6 +366,7 @@ def install_shared_infra(
363366 console : Any ,
364367 force : bool = False ,
365368 invoke_separator : str = "." ,
369+ invoke_prefix : str = "/" ,
366370 refresh_managed : bool = False ,
367371 refresh_hint : str | None = None ,
368372) -> bool :
@@ -516,7 +520,9 @@ def _ensure_or_bucket_dir(directory: Path) -> bool:
516520 if not _ensure_or_bucket_dir (dst_path .parent ):
517521 continue
518522 content = src_path .read_text (encoding = "utf-8" )
519- content = IntegrationBase .resolve_command_refs (content , invoke_separator )
523+ content = IntegrationBase .resolve_command_refs (
524+ content , invoke_separator , invoke_prefix
525+ )
520526 content = _resolve_dynamic_command_refs (content , invoke_separator )
521527 planned_copies .append (
522528 (
@@ -566,7 +572,9 @@ def _ensure_or_bucket_dir(directory: Path) -> bool:
566572 continue
567573
568574 content = src .read_text (encoding = "utf-8" )
569- content = IntegrationBase .resolve_command_refs (content , invoke_separator )
575+ content = IntegrationBase .resolve_command_refs (
576+ content , invoke_separator , invoke_prefix
577+ )
570578 planned_templates .append ((dst , rel , content ))
571579
572580 for dst_path , rel , content , mode in planned_copies :
0 commit comments