mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-04 17:07:42 +01:00
- 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>
28 lines
667 B
Python
Executable File
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())
|