chore: auto-commit from dashboard
This commit is contained in:
@@ -34,12 +34,12 @@
|
||||
"python3",
|
||||
"tools/anaf-monitor/monitor_v2.py"
|
||||
],
|
||||
"report_on": "never",
|
||||
"report_on": "changes",
|
||||
"timeout": 120,
|
||||
"enabled": true,
|
||||
"last_run": "2026-04-24T10:00:00.003684+00:00",
|
||||
"last_run": "2026-04-24T16:00:00.001676+00:00",
|
||||
"last_status": "ok",
|
||||
"next_run": "2026-04-24T16:00:00+00:00"
|
||||
"next_run": "2026-04-25T10:00:00+00:00"
|
||||
},
|
||||
{
|
||||
"name": "security-audit-daily",
|
||||
@@ -269,8 +269,8 @@
|
||||
"prompt": "Heartbeat check. Rulează src/heartbeat.py printr-un scurt raport de status.\nDacă nu e nimic de raportat (email=0, calendar nu are evenimente <2h, kb ok), răspunde doar cu HEARTBEAT_OK și oprește-te — nu trimite mesaj.\nDacă e ceva: raport scurt pe Discord #echo-work.",
|
||||
"allowed_tools": [],
|
||||
"enabled": true,
|
||||
"last_run": "2026-04-24T10:00:00.004025+00:00",
|
||||
"last_run": "2026-04-24T16:00:00.002070+00:00",
|
||||
"last_status": "ok",
|
||||
"next_run": "2026-04-24T12:00:00+00:00"
|
||||
"next_run": "2026-04-24T18:00:00+00:00"
|
||||
}
|
||||
]
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
"""YouTube subtitle-download + note-creation endpoint."""
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
import re
|
||||
import subprocess
|
||||
@@ -10,6 +11,8 @@ from pathlib import Path
|
||||
|
||||
import constants
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def _clean_vtt(content):
|
||||
"""Convert VTT captions to plain text."""
|
||||
@@ -101,6 +104,16 @@ def _process_youtube(url):
|
||||
[sys.executable, str(constants.TOOLS_DIR / 'update_notes_index.py')],
|
||||
capture_output=True,
|
||||
)
|
||||
|
||||
# Index new note with Ollama semantic embeddings
|
||||
try:
|
||||
sys.path.insert(0, str(constants.BASE_DIR))
|
||||
from src.memory_search import index_file, MEMORY_DIR
|
||||
n = index_file(note_path)
|
||||
log.info("Ollama indexed %s (%d chunks)", filename, n)
|
||||
except Exception as e:
|
||||
log.warning("Ollama indexing failed for %s: %s", filename, e)
|
||||
|
||||
print(f"Created note: {filename}")
|
||||
return filename
|
||||
|
||||
|
||||
@@ -10,19 +10,10 @@
|
||||
"time": "30 Jan 2026, 22:00"
|
||||
},
|
||||
"anaf": {
|
||||
"ok": false,
|
||||
"status": "MODIFICĂRI",
|
||||
"message": "1 modificări detectate",
|
||||
"lastCheck": "24 Apr 2026, 10:00",
|
||||
"changesCount": 1,
|
||||
"changes": [
|
||||
{
|
||||
"name": "Declarația 100 - Obligații de plată la bugetul de stat",
|
||||
"url": "https://static.anaf.ro/static/10/Anaf/Declaratii_R/100.html",
|
||||
"summary": [
|
||||
"Soft J: 07.04.2026 → 23.04.2026"
|
||||
]
|
||||
}
|
||||
]
|
||||
"ok": true,
|
||||
"status": "OK",
|
||||
"message": "Nicio modificare detectată",
|
||||
"lastCheck": "24 Apr 2026, 16:00",
|
||||
"changesCount": 0
|
||||
}
|
||||
}
|
||||
@@ -994,3 +994,16 @@
|
||||
[2026-04-24 10:00:01] OK: SIT_FIN_AN_2025
|
||||
[2026-04-24 10:00:01] OK: DESCARCARE_DECLARATII
|
||||
[2026-04-24 10:00:01] === Monitor complete ===
|
||||
[2026-04-24 16:00:00] === Starting ANAF monitor v2.1 ===
|
||||
[2026-04-24 16:00:00] OK: D100
|
||||
[2026-04-24 16:00:00] OK: D101
|
||||
[2026-04-24 16:00:00] OK: D300
|
||||
[2026-04-24 16:00:00] OK: D390
|
||||
[2026-04-24 16:00:00] OK: D394
|
||||
[2026-04-24 16:00:00] OK: D205
|
||||
[2026-04-24 16:00:01] OK: D406
|
||||
[2026-04-24 16:00:01] OK: BILANT_2025
|
||||
[2026-04-24 16:00:01] OK: SIT_FIN_SEM_2025
|
||||
[2026-04-24 16:00:01] OK: SIT_FIN_AN_2025
|
||||
[2026-04-24 16:00:01] OK: DESCARCARE_DECLARATII
|
||||
[2026-04-24 16:00:01] === Monitor complete ===
|
||||
|
||||
Reference in New Issue
Block a user