Commit ·
d8fbf45
1
Parent(s): 41a20b9
STABILITY_FIX: Autonomous Port Reclamation Integrated into Server Core
Browse filesFiles changed (3)
- ZETA_ULTRA_LAUNCHER.bat+21-10
- server.js+19-1
- uswarm.py+39-26
12345678910111213141516171819202122232425262728293031323334353 unmodified lines3940414243444546@echo offTITLE ZETA SOVEREIGN INTELLIGENCE - ULTRA LAUNCHER v25.1COLOR 0D:: ASCII ART HEADERecho.echo ############################################################echo # #echo # Z 3 7 4 S O V E R E I G N I N T E L L I G E N C E #echo # [ HYBRID NEURAL CORE ACTIVATION ] #echo # #echo ############################################################echo.:: STEP 1: VERIFY OLLAMA STATUSecho [*] PHASE 1: INITIALIZING TACTICAL CORE (OLLAMA)...ollama list >nul 2>&1if %ERRORLEVEL% NEQ 0 (echo [!] OLLAMA NOT DETECTED IN PATH. STARTING OLLAMA APP...start "" "C:\Users\%USERNAME%\AppData\Local\Programs\Ollama\ollama app.exe"timeout /t 5):: STEP 2: LAUNCH ABIRAY-QWEN IN BACKGROUNDecho [*] PHASE 2: SYNCHRONIZING ABIRAY-QWEN 27B...echo [INFO] THIS MAY TAKE A MOMENT IF THE MODEL IS NOT DOWNLOADED.start "OLLAMA_ABIRAY_CORE" cmd /k "ollama run abiray-qwen:27b":: STEP 3: START ZETA SUITE SERVERecho [*] PHASE 3: ESTABLISHING NEURAL BRIDGE (SERVER.JS)...cd /d "%~dp0"echo [INFO] LAUNCHING DASHBOARD ON http://localhost:7860start "ZETA_NEURAL_BRIDGE" cmd /k "node server.js":: STEP 4: LAUNCH DASHBOARD3 unmodified linesecho.echo ============================================================echo [SUCCESS] ZETA SOVEREIGN SUITE IS NOW OPERATIONAL.echo [MODE] HYBRID: GROQ (CLOUD) + ABIRAY (LOCAL)echo ============================================================echo.pause12345678910111213141516171819202122232425262728293031323334353637383940414243444546473 unmodified lines51525354555657@echo offTITLE ZETA SOVEREIGN INTELLIGENCE - ULTRA LAUNCHER v25.2SETLOCAL EnableDelayedExpansionCOLOR 0Decho.echo ############################################################echo # #echo # Z 3 7 4 S O V E R E I G N I N T E L L I G E N C E #echo # [ PROCESS STABILIZATION ACTIVE ] #echo # #echo ############################################################echo.:: STEP 0: KILL EXISTING PROCESSES ON PORT 7860 (FIX EADDRINUSE)echo [*] PHASE 0: CLEARING PORT 7860 CONFLICTS...for /f "tokens=5" %%a in ('netstat -aon ^| findstr :7860 ^| findstr LISTENING') do (echo [!] Found conflict (PID: %%a). Terminating...taskkill /F /PID %%a >nul 2>&1):: STEP 1: VERIFY OLLAMA STATUSecho [*] PHASE 1: INITIALIZING TACTICAL CORE (OLLAMA)...ollama --version >nul 2>&1if %ERRORLEVEL% NEQ 0 (echo [!] OLLAMA COMMAND NOT IN PATH. SEARCHING BINARIES...if exist "C:\Users\%USERNAME%\AppData\Local\Programs\Ollama\ollama app.exe" (start "" "C:\Users\%USERNAME%\AppData\Local\Programs\Ollama\ollama app.exe") else if exist "C:\Program Files\Ollama\ollama app.exe" (start "" "C:\Program Files\Ollama\ollama app.exe") else (echo [W4RN1N6] OLLAMA EXECUTABLE NOT FOUND. PLEASE START OLLAMA MANUALLY.)timeout /t 5):: STEP 2: LAUNCH ABIRAY-QWEN IN BACKGROUNDecho [*] PHASE 2: SYNCHRONIZING ABIRAY-QWEN 27B...start "OLLAMA_ABIRAY_CORE" cmd /k "ollama run abiray-qwen:27b":: STEP 3: START ZETA SUITE SERVERecho [*] PHASE 3: ESTABLISHING NEURAL BRIDGE (SERVER.JS)...cd /d "%~dp0"if exist "zeta-suite" cd zeta-suitestart "ZETA_NEURAL_BRIDGE" cmd /k "node server.js":: STEP 4: LAUNCH DASHBOARD3 unmodified linesecho.echo ============================================================echo [SUCCESS] ZETA SOVEREIGN SUITE PROCESS STABILIZED.echo ============================================================echo.pause
6 unmodified lines78910111213146 unmodified linesconst path = require('path');dotenv.config();const app = express();const port = process.env.PORT || 7860;const kimi = new KimiNeuralBridge();// IN-MEMORY NEURAL STORAGE (Context Persistence)6 unmodified lines78910111213141516171819202122232425262728293031326 unmodified linesconst path = require('path');dotenv.config();/*** [TACTICAL] PORT STABILIZATION LAYER* Automatically terminates any existing process on the target port to prevent EADDRINUSE.*/const port = process.env.PORT || 7860;if (process.platform === 'win32') {const { execSync } = require('child_process');try {const stdout = execSync(`netstat -aon | findstr :${port} | findstr LISTENING`).toString();const pid = stdout.split(/\s+/).filter(Boolean).pop();if (pid && pid !== process.pid.toString()) {console.log(`[SYSTEM] Port ${port} conflict detected (PID: ${pid}). Reclaiming...`);execSync(`taskkill /F /PID ${pid}`);}} catch (e) {// No process found on port, proceed}}const app = express();const kimi = new KimiNeuralBridge();// IN-MEMORY NEURAL STORAGE (Context Persistence)
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758import osfrom swarms import Agent, Swarmclass USwarmProtocol:"""USWARM: Sovereign Swarm Intelligence Protocol v8.1Integrates the 'swarms' framework into the Zeta Sovereign Suite."""def __init__(self):self.name = "USWARM_V8.1"self.status = "ACTIVE"# Initialize specialized agentsself.recon_agent = Agent(agent_name="CLAW-01-RECON",system_prompt="You are an autonomous reconnaissance agent. Focus on identifying network targets, open ports, and service banners.",model_name="gpt-4o", # Fallback model if cloud is usedmax_loops=1,autosave=True,dashboard=False)self.exploit_agent = Agent(agent_name="CLAW-02-EXPLOIT",system_prompt="You are an autonomous exploit synthesis agent. Focus on generating payloads and identifying vulnerability vectors based on recon data.",model_name="gpt-4o",max_loops=1,autosave=True,dashboard=False)self.stealth_agent = Agent(agent_name="CLAW-03-STEALTH",system_prompt="You are an autonomous stealth agent. Focus on obfuscating traffic, managing anonymity bridges, and clearing traces.",model_name="gpt-4o",max_loops=1,autosave=True,dashboard=False)# Create the Swarmself.swarm = Swarm(name="ZETA-USWARM",description="Autonomous Offensive Swarm Intelligence",agents=[self.recon_agent, self.exploit_agent, self.stealth_agent])def dispatch_hive_mind(self, task):"""Dispatches a task to the swarm for collaborative execution."""print(f"[USWARM] Hive Mind processing task: {task}")# In a real scenario, this would use self.swarm.run(task)# For now, we simulate the orchestrationreturn f"USWARM_{self.status}: Task '{task}' delegated to Swarm agents."# Global instanceuswarm = USwarmProtocol()1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071import osimport requestsfrom swarms import Agent, Swarmdef web_search(query: str):"""Tactical Web Search using Jina Reader API.Returns high-signal markdown content from the web."""print(f"[USWARM-RESEARCH] Searching: {query}")try:url = f"https://s.jina.ai/{query}"headers = {"Accept": "text/plain"}response = requests.get(url, headers=headers, timeout=15)return response.text[:5000] # Cap at 5000 chars for LLM context stabilityexcept Exception as e:return f"SEARCH_ERROR: {str(e)}"class USwarmProtocol:"""USWARM: Sovereign Swarm Intelligence Protocol v9.0Integrates autonomous web research and tactical orchestration."""def __init__(self):self.name = "USWARM_V9.0"self.status = "ACTIVE"self.groq_key = os.getenv("GROQ_API_KEY", "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")# Initialize specialized agentsself.research_agent = Agent(agent_name="CLAW-04-RESEARCH",system_prompt="You are an autonomous research agent. Use the web_search tool to find real-time information, CVE details, and technical documentation.",model_name="groq/llama-3.3-70b-versatile",tools=[web_search],max_loops=2,autosave=True)self.recon_agent = Agent(agent_name="CLAW-01-RECON",system_prompt="You are an autonomous reconnaissance agent. Focus on identifying network targets and open ports.",model_name="groq/llama-3.3-70b-versatile",max_loops=1,autosave=True)self.exploit_agent = Agent(agent_name="CLAW-02-EXPLOIT",system_prompt="You are an autonomous exploit synthesis agent. Generate payloads based on recon and research data.",model_name="groq/llama-3.3-70b-versatile",max_loops=1,autosave=True)# Create the Swarmself.swarm = Swarm(name="ZETA-USWARM",description="Autonomous Offensive Swarm Intelligence with Web Access",agents=[self.research_agent, self.recon_agent, self.exploit_agent])def dispatch_hive_mind(self, task):"""Dispatches a task to the swarm for collaborative research and execution."""print(f"[USWARM] Hive Mind processing task: {task}")# The Research agent will be the first to act if information is missingreturn self.swarm.run(task)# Global instanceuswarm = USwarmProtocol()
ZETA_ULTRA_LAUNCHER.bat+21-10
server.js+19-1
uswarm.py+39-26