Update src/core.ps1

This commit is contained in:
2026-02-16 20:18:06 -05:00
parent 9f97ff88e4
commit 171f0e1939

View File

@@ -92,13 +92,6 @@ function Invoke-ScriptAutomationMonkey {
# Initialize config + URLs (moved out of core body) # Initialize config + URLs (moved out of core body)
Initialize-SamyConfig Initialize-SamyConfig
# Test URL Diagnostics
Write-LogHybrid "SamyFunctionsUrl: $Script:SamyFunctionsUrl" Info Startup -LogToEvent
Write-LogHybrid "SamyTasksUrl: $Script:SamyTasksUrl" Info Startup -LogToEvent
Write-LogHybrid "SamyHtmlUrl: $Script:SamyHtmlUrl" Info Startup -LogToEvent
Write-LogHybrid "SamyJsUrl: $Script:SamyJsUrl" Info Startup -LogToEvent
Write-LogHybrid "SamyCssUrl: $Script:SamyCssUrl" Info Startup -LogToEvent
# Ensure core functions exist (bootstrap may have already loaded them) # Ensure core functions exist (bootstrap may have already loaded them)
Ensure-SamyFunctionsLoaded Ensure-SamyFunctionsLoaded
@@ -108,11 +101,6 @@ function Invoke-ScriptAutomationMonkey {
# Load tasks # Load tasks
$Global:SamyTasks = Get-SamyTasks -Url $Script:SamyTasksUrl $Global:SamyTasks = Get-SamyTasks -Url $Script:SamyTasksUrl
# Test Prove task Loaded Diagnostics
Write-LogHybrid "Tasks loaded: $(@($Global:SamyTasks).Count)" Info Startup -LogToEvent
Write-LogHybrid ("Tasks by page: " + ((@($Global:SamyTasks) | Group-Object Page | ForEach-Object { "$($_.Name)=$($_.Count)" }) -join ', ')) Info Startup -LogToEvent
if (-not $Global:SamyTasks) { if (-not $Global:SamyTasks) {
throw "SAMY cannot continue: failed to load tasks from $Script:SamyTasksUrl" throw "SAMY cannot continue: failed to load tasks from $Script:SamyTasksUrl"
} }