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
1223455678910101112131415161718192021222317242519202627282930313233343536373826394041424332444546473 unmodified lines515253424354555657@echo offTITLE ZETA SOVEREIGN INTELLIGENCE - ULTRA LAUNCHER v25.1TITLE ZETA SOVEREIGN INTELLIGENCE - ULTRA LAUNCHER v25.2SETLOCAL EnableDelayedExpansionCOLOR 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 # [ 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 list >nul 2>&1ollama --version >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" 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...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:7860if exist "zeta-suite" cd zeta-suitestart "ZETA_NEURAL_BRIDGE" cmd /k "node server.js"
:: STEP 4: LAUNCH DASHBOARD3 unmodified lines
echo.echo ============================================================echo [SUCCESS] ZETA SOVEREIGN SUITE IS NOW OPERATIONAL.echo [MODE] HYBRID: GROQ (CLOUD) + ABIRAY (LOCAL)echo [SUCCESS] ZETA SOVEREIGN SUITE PROCESS STABILIZED.echo ============================================================echo.pause6 unmodified lines7891010111213141516171819202122232425262728293031326 unmodified linesconst path = require('path');dotenv.config();
const app = express();/** * [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)123456789101112131415161718192067212223241025262728293031323334353637383940161741424319204445464748252627282930313233343549505137385253545556574445585960616263506465665354556768697071import osimport requestsfrom swarms import Agent, Swarm
def 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 stability except Exception as e: return f"SEARCH_ERROR: {str(e)}"
class USwarmProtocol: """ USWARM: Sovereign Swarm Intelligence Protocol v8.1 Integrates the 'swarms' framework into the Zeta Sovereign Suite. USWARM: Sovereign Swarm Intelligence Protocol v9.0 Integrates autonomous web research and tactical orchestration. """ def __init__(self): self.name = "USWARM_V8.1" self.name = "USWARM_V9.0" self.status = "ACTIVE" self.groq_key = os.getenv("GROQ_API_KEY", "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") # Initialize specialized agents self.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, open ports, and service banners.", model_name="gpt-4o", # Fallback model if cloud is used 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, dashboard=False autosave=True ) 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", 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, dashboard=False autosave=True )
# Create the Swarm self.swarm = Swarm( name="ZETA-USWARM", description="Autonomous Offensive Swarm Intelligence", agents=[self.recon_agent, self.exploit_agent, self.stealth_agent] 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 execution. Dispatches a task to the swarm for collaborative research and 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 orchestration return f"USWARM_{self.status}: Task '{task}' delegated to Swarm agents." # The Research agent will be the first to act if information is missing return self.swarm.run(task)
# Global instanceuswarm = USwarmProtocol()ZETA_ULTRA_LAUNCHER.bat+21-10
server.js+19-1
uswarm.py+39-26