落地报价模板主账与后台:合同映射、灌种 SQL/脚本、智能体填表,并补测服运维探针与合同文档对齐。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
linmianxun
2026-09-14 14:09:45 +08:00
co-authored by Cursor
parent 8bdf4990a2
commit a70bce3c8f
138 changed files with 7239 additions and 1085 deletions
+9 -3
View File
@@ -238,9 +238,15 @@ def main() -> int:
from agent.quote_templates import list_templates_from_ledger
lt = list_templates_from_ledger(LedgerClient.from_settings(get_settings()))
assert lt.status_code == 501
assert lt.error and "list_quote_templates" in lt.error
# 主账可达时返回 2xx;不可达时 status_code=0 + error,不再假装 501
assert isinstance(lt.status_code, int)
assert lt.ok or lt.error or lt.data is not None
logger.info(
"OK: list_quote_templates status=%s ok=%s err=%s",
lt.status_code,
lt.ok,
(lt.error or "")[:80],
)
vf = validate_required_fields_shell(facts={}, require_formal=True)
assert vf.get("implemented") is False