initial COM2 system snapshot
This commit is contained in:
28
agents/json_homepage_agent.py
Executable file
28
agents/json_homepage_agent.py
Executable file
@@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env python3
|
||||
import json
|
||||
import os
|
||||
|
||||
WORKSPACE = "/opt/hx-ki/workspaces/homepage"
|
||||
FILE = os.path.join(WORKSPACE, "homepage.json")
|
||||
|
||||
os.makedirs(WORKSPACE, exist_ok=True)
|
||||
|
||||
content = {
|
||||
"hero_title": "HX-KI – Dynamischer JSON-Agent",
|
||||
"hero_sub": "Content kommt aus dem Workspace auf Falkenstein – kein Zugriff auf Gehirn oder Motor.",
|
||||
"sections": [
|
||||
{
|
||||
"title": "Agent-Status",
|
||||
"text": "Dieser JSON-Agent kann von Events, Cron, KI oder Mautic getriggert werden."
|
||||
},
|
||||
{
|
||||
"title": "Architektur-Sicherheit",
|
||||
"text": "Falkenstein liest nur den Workspace. Nürnberg & Helsinki bleiben intern."
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
with open(FILE, "w") as f:
|
||||
json.dump(content, f, indent=2)
|
||||
|
||||
print(f"✔ homepage.json durch json_homepage_agent.py erzeugt/aktualisiert: {FILE}")
|
||||
Reference in New Issue
Block a user