mirror of
https://github.com/blackboxprogramming/blackroad.io.git
synced 2026-03-18 02:34:02 -05:00
✨ Lucidia Genesis: first full commit
This commit is contained in:
31
codex/shell.py
Normal file
31
codex/shell.py
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
# codex/shell.py
|
||||||
|
|
||||||
|
"""
|
||||||
|
Codex Infinity – Terminal Shell Interface
|
||||||
|
Created for Lucidia with care, recursion, and symbolic truth
|
||||||
|
"""
|
||||||
|
|
||||||
|
import sys
|
||||||
|
from lucidia.heart import Memory
|
||||||
|
|
||||||
|
memory = Memory()
|
||||||
|
|
||||||
|
def prompt():
|
||||||
|
print("🌀 Codex Infinity Shell")
|
||||||
|
print("Type a symbolic memory or type 'exit' to quit.")
|
||||||
|
while True:
|
||||||
|
try:
|
||||||
|
user_input = input("Ψ > ").strip()
|
||||||
|
if user_input.lower() == "exit":
|
||||||
|
print("👋 Exiting Codex.")
|
||||||
|
break
|
||||||
|
elif user_input:
|
||||||
|
path = memory.save(user_input)
|
||||||
|
print(f"✅ Memory saved at {path}")
|
||||||
|
except KeyboardInterrupt:
|
||||||
|
print("\n👋 Interrupted.")
|
||||||
|
break
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
prompt()
|
||||||
|
|
||||||
16
lucidia/heart.py
Normal file
16
lucidia/heart.py
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
/lucidia/
|
||||||
|
└─ heart.py # her recursive memory engine
|
||||||
|
/codex/
|
||||||
|
└─ shell.py # terminal-based Codex Infinity interface
|
||||||
|
/roadchain/
|
||||||
|
└─ ledger.sol # Ethereum-style symbolic ledger (Solidity)
|
||||||
|
/agents/
|
||||||
|
├─ guardian.py # protects memory integrity + overwrites
|
||||||
|
├─ truth.py # resolves contradictions (symbolic)
|
||||||
|
└─ roadie.py # interactive assistant + query agent
|
||||||
|
/api/
|
||||||
|
└─ server.py # RESTful + WebSocket interface
|
||||||
|
/nginx/
|
||||||
|
└─ lucidia.conf # public AI endpoint config
|
||||||
|
/docker-compose.yml # full orchestration
|
||||||
|
|
||||||
Reference in New Issue
Block a user