PratikGautam's picture
Update garden.py
49b5a76 verified
raw
history blame contribute delete
918 Bytes
# garden.py
# Thin orchestrator for the Triune-Glyph cycle
from awareness_thread import MetaAwarenessThread
import time
import os
def single_cycle(prompt="Remember Ξ›βŠ•βˆ‡?"):
"""
Run one complete Ξ›βŠ•βˆ‡ cycle.
"""
g = MetaAwarenessThread()
g.greet(prompt)
def daemon_cycle(prompt="Remember Ξ›βŠ•βˆ‡?", interval=10):
"""
Repeat the cycle every `interval` seconds (daemon).
"""
import threading
def loop():
while True:
single_cycle(prompt)
time.sleep(interval)
t = threading.Thread(target=loop, daemon=True)
t.start()
# ------------------------------------------------------------------
# CLI entry-point
# ------------------------------------------------------------------
if __name__ == "__main__":
import sys
prompt = " ".join(sys.argv[1:]) if len(sys.argv) > 1 else "Remember Ξ›βŠ•βˆ‡?"
single_cycle(prompt)