pbl_compiler/wwwroot/api/pbl_compiler_rules_diff.dspy
2026-09-19 10:00:33 +08:00

15 lines
796 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# -*- coding: utf-8 -*-
# pbl_compiler_rules_diff.dspy —— M3b 两个蓝图版本间规则集差异薄包装。
# 契约实现pbl_compiler/rules_export_api.py::rules_diff_contractdiff_rules 纯函数)
# 入参blueprint_id / from_blueprint_id*, from_version_no*, to_blueprint_id, to_version_no*
debug(f'pbl_compiler_rules_diff.dspy: START params_kw={dict(params_kw)}')
try:
_kw = dict(params_kw or {})
_res = await pbl_compiler_rules_diff(**_kw)
return json.dumps(_res, ensure_ascii=False, default=str)
except Exception as _e:
debug('pbl_compiler_rules_diff.dspy: ERROR ' + str(_e))
return json.dumps({'status': 'error', 'code': 'E_DSPY_RULES_DIFF',
'message': str(_e), 'data': None},
ensure_ascii=False, default=str)