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

@@ -28,10 +28,15 @@ def test_force_sync_queues_ingested_documents_and_creates_hermes_run(tmp_path, m
name="管理员",
role_codes=["manager"],
is_admin=True,
tenant_id="tenant-a",
)
with build_session() as db:
knowledge_service = KnowledgeService(storage_root=tmp_path, db=db)
knowledge_service = KnowledgeService(
storage_root=tmp_path,
db=db,
tenant_id="tenant-a",
)
uploaded = knowledge_service.upload_document("报销制度", "demo.txt", b"hello", user)
document_id = uploaded.id
knowledge_service.set_document_ingest_statuses(