Spaces:
Runtime error
Runtime error
Total Citadel Sync: 2026-04-12
Browse files- MAP_ALL.sh +28 -0
- TIA/__init__.py +0 -0
- TIA/__pycache__/__init__.cpython-313.pyc +0 -0
- __pycache__/app.cpython-313.pyc +0 -0
- __pycache__/tia_worker.cpython-313.pyc +0 -0
- app.py +12 -21
- citadel/__init__.py +0 -0
- citadel/__pycache__/__init__.cpython-313.pyc +0 -0
- citadel/holo3d/__init__.py +0 -0
- citadel/holo3d/__pycache__/__init__.cpython-313.pyc +0 -0
- citadel/holo3d/ui/__init__.py +0 -0
- citadel/holo3d/ui/__pycache__/__init__.cpython-313.pyc +0 -0
- index.ts +1 -2
- tia_index.json +1 -1
MAP_ALL.sh
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/data/data/com.termux/files/usr/bin/bash
|
| 2 |
+
|
| 3 |
+
OUT=~/SYSTEM_MAP
|
| 4 |
+
mkdir -p $OUT
|
| 5 |
+
|
| 6 |
+
echo "[1/7] Mapping directories..."
|
| 7 |
+
find $HOME -type d | sed "s|$HOME||" | sort > $OUT/directories.txt
|
| 8 |
+
|
| 9 |
+
echo "[2/7] Mapping files..."
|
| 10 |
+
find $HOME -type f | sed "s|$HOME||" | sort > $OUT/files.txt
|
| 11 |
+
|
| 12 |
+
echo "[3/7] Mapping Python modules..."
|
| 13 |
+
find $HOME -type f -name "*.py" | sed "s|$HOME||" | sort > $OUT/python_modules.txt
|
| 14 |
+
|
| 15 |
+
echo "[4/7] Mapping TypeScript modules..."
|
| 16 |
+
find $HOME -type f -name "*.ts" | sed "s|$HOME||" | sort > $OUT/typescript_modules.txt
|
| 17 |
+
|
| 18 |
+
echo "[5/7] Mapping JSON + configs..."
|
| 19 |
+
find $HOME -type f \( -name "*.json" -o -name "*.yaml" -o -name "*.yml" \) \
|
| 20 |
+
| sed "s|$HOME||" | sort > $OUT/configs.txt
|
| 21 |
+
|
| 22 |
+
echo "[6/7] Mapping executables..."
|
| 23 |
+
find $HOME -type f -executable | sed "s|$HOME||" | sort > $OUT/executables.txt
|
| 24 |
+
|
| 25 |
+
echo "[7/7] Mapping large files..."
|
| 26 |
+
find $HOME -type f -size +5M | sed "s|$HOME||" | sort > $OUT/large_files.txt
|
| 27 |
+
|
| 28 |
+
echo "DONE. Maps saved in: $OUT"
|
TIA/__init__.py
ADDED
|
File without changes
|
TIA/__pycache__/__init__.cpython-313.pyc
ADDED
|
Binary file (114 Bytes). View file
|
|
|
__pycache__/app.cpython-313.pyc
ADDED
|
Binary file (2.8 kB). View file
|
|
|
__pycache__/tia_worker.cpython-313.pyc
ADDED
|
Binary file (6.08 kB). View file
|
|
|
app.py
CHANGED
|
@@ -1,21 +1,16 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import json
|
| 3 |
-
import os
|
| 4 |
-
import importlib
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
def load_module(module_path, attr=None):
|
| 9 |
try:
|
| 10 |
-
module =
|
| 11 |
return getattr(module, attr) if attr else module
|
| 12 |
-
except Exception
|
| 13 |
return None
|
| 14 |
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
HoloCommandCentre = load_module("citadel.holo3d.ui.commandCentre", "CommandCentre")
|
| 19 |
|
| 20 |
def qgtnl_process(command):
|
| 21 |
result = {
|
|
@@ -25,27 +20,23 @@ def qgtnl_process(command):
|
|
| 25 |
"status": "OK"
|
| 26 |
}
|
| 27 |
|
| 28 |
-
# TIA
|
| 29 |
if TIAWorker:
|
| 30 |
try:
|
| 31 |
-
|
| 32 |
-
result["tia"] = worker.process(command)
|
| 33 |
except Exception as e:
|
| 34 |
result["tia"] = f"TIA error: {e}"
|
| 35 |
|
| 36 |
-
# Lineage / PrimeSchema
|
| 37 |
if PrimeSchema:
|
| 38 |
try:
|
| 39 |
-
|
| 40 |
-
result["lineage"] = schema.summarize()
|
| 41 |
except Exception as e:
|
| 42 |
result["lineage"] = f"Lineage error: {e}"
|
| 43 |
|
| 44 |
return json.dumps(result, indent=2)
|
| 45 |
|
| 46 |
-
with gr.Blocks() as app:
|
| 47 |
gr.Markdown("# **QGTNL Command Centre**")
|
| 48 |
-
gr.Markdown("###
|
| 49 |
|
| 50 |
with gr.Row():
|
| 51 |
cmd = gr.Textbox(label="Command Input")
|
|
@@ -61,7 +52,7 @@ with gr.Blocks() as app:
|
|
| 61 |
try:
|
| 62 |
html = HoloCommandCentre().render()
|
| 63 |
gr.HTML(html)
|
| 64 |
-
except
|
| 65 |
gr.Markdown("Holo3D failed to load.")
|
| 66 |
|
| 67 |
-
app.launch(
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import json
|
|
|
|
|
|
|
| 3 |
|
| 4 |
+
def safe_import(module_path, attr=None):
|
|
|
|
|
|
|
| 5 |
try:
|
| 6 |
+
module = __import__(module_path, fromlist=[attr] if attr else [])
|
| 7 |
return getattr(module, attr) if attr else module
|
| 8 |
+
except Exception:
|
| 9 |
return None
|
| 10 |
|
| 11 |
+
TIAWorker = safe_import("TIA.worker", "TIAWorker")
|
| 12 |
+
PrimeSchema = safe_import("citadel.primeSchema", "PrimeSchema")
|
| 13 |
+
HoloCommandCentre = safe_import("citadel.holo3d.ui.commandCentre", "CommandCentre")
|
|
|
|
| 14 |
|
| 15 |
def qgtnl_process(command):
|
| 16 |
result = {
|
|
|
|
| 20 |
"status": "OK"
|
| 21 |
}
|
| 22 |
|
|
|
|
| 23 |
if TIAWorker:
|
| 24 |
try:
|
| 25 |
+
result["tia"] = TIAWorker().process(command)
|
|
|
|
| 26 |
except Exception as e:
|
| 27 |
result["tia"] = f"TIA error: {e}"
|
| 28 |
|
|
|
|
| 29 |
if PrimeSchema:
|
| 30 |
try:
|
| 31 |
+
result["lineage"] = PrimeSchema().summarize()
|
|
|
|
| 32 |
except Exception as e:
|
| 33 |
result["lineage"] = f"Lineage error: {e}"
|
| 34 |
|
| 35 |
return json.dumps(result, indent=2)
|
| 36 |
|
| 37 |
+
with gr.Blocks(css="body { background: black; color: cyan; }") as app:
|
| 38 |
gr.Markdown("# **QGTNL Command Centre**")
|
| 39 |
+
gr.Markdown("### Citadel • TIA • AION • ORACLE • Holo3D")
|
| 40 |
|
| 41 |
with gr.Row():
|
| 42 |
cmd = gr.Textbox(label="Command Input")
|
|
|
|
| 52 |
try:
|
| 53 |
html = HoloCommandCentre().render()
|
| 54 |
gr.HTML(html)
|
| 55 |
+
except:
|
| 56 |
gr.Markdown("Holo3D failed to load.")
|
| 57 |
|
| 58 |
+
app.launch()
|
citadel/__init__.py
ADDED
|
File without changes
|
citadel/__pycache__/__init__.cpython-313.pyc
ADDED
|
Binary file (118 Bytes). View file
|
|
|
citadel/holo3d/__init__.py
ADDED
|
File without changes
|
citadel/holo3d/__pycache__/__init__.cpython-313.pyc
ADDED
|
Binary file (125 Bytes). View file
|
|
|
citadel/holo3d/ui/__init__.py
ADDED
|
File without changes
|
citadel/holo3d/ui/__pycache__/__init__.cpython-313.pyc
ADDED
|
Binary file (128 Bytes). View file
|
|
|
index.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
| 1 |
-
|
| 2 |
-
export * from "./app";
|
|
|
|
| 1 |
+
import "./citadel/main";
|
|
|
tia_index.json
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
|
|
|
|
| 1 |
+
{}
|