=== PCIVITETCCN SCOUT KCYTTCMCCN DYNAAMISTA SUODATUSTA ===
=== PURETAAN FSM:N INBOX ===
[IDIOT]: Asynkroninen suoritus valmis. Siirrytaan lapsisolmuun...
[IDIOT]: Suoritusketju paattyi.
[*] Done running heart_beat() on idiot.c#api-2
$B
Kokeilen ajaa uudelleen
$ x-hlpc clear-vars idiot.c#api-2
[*] Variables cleared.
$ x-hlpc init idiot.c#api-2
[*] Done running create() on idiot.c#api-2
$ x-mission idiot.c#api-2 "etsi firman wC$rtsilC$ yhteystiedot"
[*] TehtC$vC$ lC$hetetty agentille idiot.c#api-2: etsi firman wC$rtsilC$
yhteystiedot
$ x-hlpc call idiot.c#api-2 heart_beat
[*] Done running heart_beat() on idiot.c#api-2
$ x-hlpc call idiot.c#api-2 heart_beat
[IDIOT]: Lexataan tehtava (Deterministinen NLP): etsi firman wC$rtsilC$
yhteystiedot
[IDIOT]: Lexer onnistui! Siirrytaan solmuun: 3b5d82ac74934c7cb6dae1f2c961ab15
[*] Done running heart_beat() on idiot.c#api-2
$ x-hlpc call idiot.c#api-2 heart_beat
[IDIOT]: Seuraava intenttini on: api-call
[IDIOT]: Suoritan universaalin API-kutsun asynkronisesti: http://127.0.0.1:9977
/run/01-scout
[*] Async request dispatched to: http://hauki-crm:9977/run/01-scout
[*] Done running heart_beat() on idiot.c#api-2
$ x-hlpc get-vars idiot.c#api-2
{
B "ticks": 3,
B "phase": "WAITING_FOR_EXEC",
B "inbox": [
B B {
B B B "id": "idiot.c#api-2",
B B B "async_result": {
B B B B "status": "executed",
B B B B "code": 0,
B B B B "stdout": "--- Aloitetaan tiedustelu ---
Haetaan: w\u00e4rtsil\u00e4
Rakennetaan makro puhtaasti...
Navigoidaan selaimeen hakukoneeseen...
>>> [REST] POST http://127.0.0.1:7711/api/macro/meta_run (w/ Payload)
Odotetaan hakutulosten latautumista (4 sek)...
>>> [EXEC] sleep 4
Haetaan ATSPI-semanttinen kartta...
>>> [REST] POST http://127.0.0.1:7713/muscle/atspi_map (w/ Payload)
Suodatetaan roolin mukaan (link)...
Etsitaan nimesta hakusanaa 'w\u00e4rtsil\u00e4'...
Siivotaan visuaalinen roska ja URLit...
Rajataan sivun alaosa pois (box_y < 1500)...
Deduplikoidaan Y-akselilla (Toleranssi 40px)...
Tallennetaan suoraan JSON-tiedostona Harvesteria varten...
Tiedustelu valmis! Kohteet tallennettu tiedostoon lead_targets.json.",
B B B B "stderr": ""
B B B },
B B B "original_task_id": "task_ea66b5ee"
B B }
B ],
B "current_node_id": "3b5d82ac74934c7cb6dae1f2c961ab15",
B "node_stack": [],
B "last_result": 0,
B "current_task": "etsi firman w\u00e4rtsil\u00e4 yhteystiedot"
}
$ ls -l /tmp/lead_targets.jsonB
-rw-r--r-- 1 user user 1279 JulB 9 16:22 /tmp/lead_targets.json
$B
Cool!
Osaako se jo edetC$ pidemmC$llekin jos kutsumme heart_beat:ia?
TC$tC$ oli ilo katsella! Se tikitti tC$ysin virheettC$ ja hienolla
ajastuksella
$ {
x-hlpc clear-vars idiot.c#api-2
x-hlpc init idiot.c#api-2
x-mission idiot.c#api-2 "etsi firman hessumobiili yhteystiedot"
echo "=== ANNETAAN IDIOOTIN RULLATA LOPPUPUTKI MAALIIN ==="
while true; do
x-hlpc call idiot.c#api-2 heart_beat
sleep 5
done
}
[*] Variables cleared.
[*] Done running create() on idiot.c#api-2
[*] TehtC$vC$ lC$hetetty agentille idiot.c#api-2: etsi firman hessumobiili
yhteystiedot
=== ANNETAAN IDIOOTIN RULLATA LOPPUPUTKI MAALIIN ===
[*] Done running heart_beat() on idiot.c#api-2
[IDIOT]: Lexataan tehtava (Deterministinen NLP): etsi firman hessumobiili
yhteystiedot
[IDIOT]: Lexer onnistui! Siirrytaan solmuun: 860cf1e84829477295977f1e2edcf15f
[*] Done running heart_beat() on idiot.c#api-2
[IDIOT]: Seuraava intenttini on: api-call
[IDIOT]: Suoritan universaalin API-kutsun asynkronisesti: http://127.0.0.1:9977
/run/01-scout
[*] Async request dispatched to: http://hauki-crm:9977/run/01-scout
[*] Done running heart_beat() on idiot.c#api-2
[*] Done running heart_beat() on idiot.c#api-2
[IDIOT]: Asynkroninen suoritus valmis. Siirrytaan lapsisolmuun...
[*] Done running heart_beat() on idiot.c#api-2
[IDIOT]: Seuraava intenttini on: api-call
[IDIOT]: Suoritan universaalin API-kutsun asynkronisesti: http://127.0.0.1:9977
/run/02-harvester
[*] Async request dispatched to: http://hauki-crm:9977/run/02-harvester
[*] Done running heart_beat() on idiot.c#api-2
[*] Done running heart_beat() on idiot.c#api-2
[*] Done running heart_beat() on idiot.c#api-2
[*] Done running heart_beat() on idiot.c#api-2
[*] Done running heart_beat() on idiot.c#api-2
[*] Done running heart_beat() on idiot.c#api-2
[*] Done running heart_beat() on idiot.c#api-2
[*] Done running heart_beat() on idiot.c#api-2
[*] Done running heart_beat() on idiot.c#api-2
[*] Done running heart_beat() on idiot.c#api-2
[*] Done running heart_beat() on idiot.c#api-2
[*] Done running heart_beat() on idiot.c#api-2
[IDIOT]: Asynkroninen suoritus valmis. Siirrytaan lapsisolmuun...
[*] Done running heart_beat() on idiot.c#api-2
[IDIOT]: Seuraava intenttini on: api-call
[IDIOT]: Suoritan universaalin API-kutsun asynkronisesti: http://127.0.0.1:9977
/run/03-processor
[*] Async request dispatched to: http://hauki-crm:9977/run/03-processor
[*] Done running heart_beat() on idiot.c#api-2
[IDIOT]: Asynkroninen suoritus valmis. Siirrytaan lapsisolmuun...
[IDIOT]: Suoritusketju paattyi.
[*] Done running heart_beat() on idiot.c#api-2
$B
$ ls -ltra /tmp/ | tail
-rw-r--r--B 1 user userB B B620 JulB 9 16:46 lead_targets.json
-rw-r--r--B 1 user userB B75954 JulB 9 16:47 harvester_full_data.jsonl
-rw-r--r--B 1 user userB B B287 JulB 9 16:48 async_push.json
-rw-r--r--B 1 user userB B B240 JulB 9 16:48 emails_export.json
-rw-r--r--B 1 user userB B B208 JulB 9 16:48 emails_export.csv
-rw-r--r--B 1 user userB B 9720 JulB 9 16:48 bp.js
-rw-r--r--B 1 user userB B 6338 JulB 9 16:48 state.json
-rw-r--r--B 1 user userB B B B2 JulB 9 16:48 sync_req.json
-rw-r--r--B 1 user userB B B B0 JulB 9 16:48 tmpgp9hh7k2.png
drwxrwxrwt 21 root root 1814528 JulB 9 16:48 .
$ cat /tmp/emails_export.csvB
Value
nmikko.laakso@hessumobiili.fi
nolli.maljanen@hessumobiili.fi
nkai.kiesla@hessumobiili.fi
mikko.laakso@hessumobiili.fi
olli.maljanen@hessumobiili.fi