Files
loki/scripts/sync-agent-runtime-config.py
T
g-butandClaude Sonnet 4.6 c1956f2a35 feat(scripts): add beacon popup system and agent hook infrastructure
- beacon.py: PyQt6 desktop overlay for session stops — countdown auto-continue,
  Whisper STT voice input, session summary display, confirm popup for destructive commands
- agent-hook-lib.sh: shared bash utilities — resolve_tab (pane-file fast path +
  zellij process tree fallback), inject_prompt, get_prompt, play_sound
- agent-hook-bridge.sh: stop/notification handler — writes /tmp sentinel files,
  launches beacon, injects chosen prompt back into the zellij tab; respects
  prefer_browser_ready_ui to skip native popup when Cockpit is running
- run-codex-task.sh: headless Codex executor that fires agent-hook-bridge stop on exit,
  bringing Codex into the lifecycle contract for orchestration-dispatched tasks
- smoke-beacon-stop.sh: integration smoke test for the full beacon stop chain
- sync-agent-runtime-config.py: copies claude-prompts.json → agent-prompts.json,
  claude-projects.conf → agent-projects.conf for agent-agnostic naming
- check-agent-runtime.sh, check-design-system.sh: dev diagnostic utilities

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-07 16:23:06 +02:00

28 lines
667 B
Python
Executable File

#!/usr/bin/env python3
import os
import shutil
from pathlib import Path
def sync_file(target: Path, legacy: Path) -> None:
if not legacy.exists():
return
if target.exists() and target.stat().st_mtime >= legacy.stat().st_mtime:
return
target.parent.mkdir(parents=True, exist_ok=True)
shutil.copy2(legacy, target)
def main() -> int:
home = Path(os.path.expanduser("~"))
config = home / ".config"
sync_file(config / "agent-projects.conf", config / "claude-projects.conf")
sync_file(config / "agent-prompts.json", config / "claude-prompts.json")
return 0
if __name__ == "__main__":
raise SystemExit(main())