feat(platform): close AI expense value loop

Add tenant-safe value, telemetry, connector, commercial, and production-readiness foundations.
This commit is contained in:
caoxiaozhu
2026-07-17 14:14:08 +08:00
parent 242d68c36f
commit 787bc3a481
507 changed files with 82072 additions and 6344 deletions

View File

@@ -32,7 +32,10 @@ def test_digital_employee_reminder_task_generates_actionable_report() -> None:
with build_session() as db:
_seed_reminder_data(db, now)
result = DigitalEmployeeReminderTaskService(db).refresh_reminders(now=now)
result = DigitalEmployeeReminderTaskService(
db,
tenant_id="default",
).refresh_reminders(now=now)
summary = result["summary"]
report = result["report"]
@@ -56,7 +59,7 @@ def test_digital_employee_reminder_task_generates_actionable_report() -> None:
"reimbursement_overdue",
}.issubset(reminder_types)
dashboard = DigitalEmployeeDashboardService(db).build_dashboard(days=7)
dashboard = DigitalEmployeeDashboardService(db).build_dashboard(days=7, now=now)
assert dashboard.totals["reminders"] >= 4
assert dashboard.totals["businessOutputs"] >= 4
assert dashboard.task_distribution[0]["taskType"] == "digital_employee_reminder_scan"