Fixed Agent Macro Deployment Issues
This commit is contained in:
parent
47d13c0178
commit
4aff680b17
@ -376,6 +376,7 @@ switch ($choice) {
|
|||||||
Remove-Item $agentDestinationFolder -Recurse -Force -ErrorAction SilentlyContinue
|
Remove-Item $agentDestinationFolder -Recurse -Force -ErrorAction SilentlyContinue
|
||||||
New-Item -Path $agentDestinationFolder -ItemType Directory -Force | Out-Null
|
New-Item -Path $agentDestinationFolder -ItemType Directory -Force | Out-Null
|
||||||
Copy-Item $agentSourcePath $agentDestinationFile -Force
|
Copy-Item $agentSourcePath $agentDestinationFile -Force
|
||||||
|
Copy-Item "Data\Agent\Python_API_Endpoints" $agentDestinationFolder -Recurse
|
||||||
}
|
}
|
||||||
. "$venvFolder\Scripts\Activate"
|
. "$venvFolder\Scripts\Activate"
|
||||||
}
|
}
|
||||||
|
@ -158,7 +158,6 @@ async def disconnect():
|
|||||||
# //////////////////////////////////////////////////////////////////////////
|
# //////////////////////////////////////////////////////////////////////////
|
||||||
# CORE SECTION: AGENT CONFIG MANAGEMENT / WINDOW MANAGEMENT
|
# CORE SECTION: AGENT CONFIG MANAGEMENT / WINDOW MANAGEMENT
|
||||||
# //////////////////////////////////////////////////////////////////////////
|
# //////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
@sio.on('agent_config')
|
@sio.on('agent_config')
|
||||||
async def on_agent_config(cfg):
|
async def on_agent_config(cfg):
|
||||||
print("[DEBUG] agent_config event received.")
|
print("[DEBUG] agent_config event received.")
|
||||||
@ -168,15 +167,6 @@ async def on_agent_config(cfg):
|
|||||||
await stop_all_roles()
|
await stop_all_roles()
|
||||||
return
|
return
|
||||||
|
|
||||||
@sio.on('list_agent_windows')
|
|
||||||
async def handle_list_agent_windows(data):
|
|
||||||
# Called from the server/webui to fetch current open windows for dropdown
|
|
||||||
windows = macro_engines.list_windows()
|
|
||||||
await sio.emit('agent_window_list', {
|
|
||||||
'agent_id': AGENT_ID,
|
|
||||||
'windows': windows
|
|
||||||
})
|
|
||||||
|
|
||||||
print(f"[CONFIG] Received New Agent Config with {len(roles)} Role(s).")
|
print(f"[CONFIG] Received New Agent Config with {len(roles)} Role(s).")
|
||||||
|
|
||||||
new_ids = {r.get('node_id') for r in roles if r.get('node_id')}
|
new_ids = {r.get('node_id') for r in roles if r.get('node_id')}
|
||||||
@ -211,6 +201,14 @@ async def handle_list_agent_windows(data):
|
|||||||
task = asyncio.create_task(macro_task(role_cfg))
|
task = asyncio.create_task(macro_task(role_cfg))
|
||||||
role_tasks[nid] = task
|
role_tasks[nid] = task
|
||||||
|
|
||||||
|
@sio.on('list_agent_windows')
|
||||||
|
async def handle_list_agent_windows(data):
|
||||||
|
windows = macro_engines.list_windows()
|
||||||
|
await sio.emit('agent_window_list', {
|
||||||
|
'agent_id': AGENT_ID,
|
||||||
|
'windows': windows
|
||||||
|
})
|
||||||
|
|
||||||
# ---------------- Overlay Widget ----------------
|
# ---------------- Overlay Widget ----------------
|
||||||
overlay_green_thickness = 4
|
overlay_green_thickness = 4
|
||||||
overlay_gray_thickness = 2
|
overlay_gray_thickness = 2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user