File size: 918 Bytes
49b5a76 e7c20f5 49b5a76 e7c20f5 49b5a76 e7c20f5 49b5a76 e7c20f5 49b5a76 e7c20f5 49b5a76 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# 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)
|