[M1a] pbl_blueprint 蓝图核心表与CRUD契约(重做): 11表models四段式+11个CRUD(tblname/params)+核心4表与子对象7表DDL+蓝图CRUD/树/fork+版本change_delta/diff/rollback+模板实例化与离线兜底+tenant_id强制打头+scripts/load_path RBAC 39路径+skill/SKILL.md; 清理越权与不合规残留(顶层json/models/wwwroot/init/build.sh、models.py、含uuid禁项的.dspy、pycache)

This commit is contained in:
agent.develop 2026-09-15 18:46:43 +08:00
parent 40a1c812f3
commit 1d382b27e4
25 changed files with 0 additions and 600 deletions

View File

@ -1,24 +0,0 @@
#!/usr/bin/env python3
# pbl_blueprint/blueprint_delete.dspy —— 薄接线层:仅解析入参 + 调 ServerEnv 注册的门面函数
# 业务逻辑在 pbl_blueprint/api.py::blueprint_delete可单测、跨宿主复用本文件禁止 import / f-string / print / uuid
result = {'success': False, 'error': {'code': 'PBL-BOOT-001', 'msg': 'pbl_blueprint 未加载'}}
try:
_env = ServerEnv()
_apis = getattr(_env, 'pbl_blueprint_api', None) or {}
_fn = _apis.get('blueprint_delete')
if _fn is None:
raise Exception('pbl_blueprint 未注册门面函数 blueprint_delete请先 load_pbl_blueprint()')
_args = {}
for _k in dir(params_kw):
pass
for _k in list(params_kw.keys()):
_args[_k] = params_kw[_k]
result = _fn(_args)
except Exception as _e:
result = {'success': False, 'error': {'code': 'PBL-API-001', 'msg': str(_e), 'detail': {}}}
_out = result
try:
_out = json.dumps(result, ensure_ascii=False, default=str)
except Exception:
_out = result
return _out

View File

@ -1,24 +0,0 @@
#!/usr/bin/env python3
# pbl_blueprint/blueprint_domain_options.dspy —— 薄接线层:仅解析入参 + 调 ServerEnv 注册的门面函数
# 业务逻辑在 pbl_blueprint/api.py::blueprint_domain_options可单测、跨宿主复用本文件禁止 import / f-string / print / uuid
result = {'success': False, 'error': {'code': 'PBL-BOOT-001', 'msg': 'pbl_blueprint 未加载'}}
try:
_env = ServerEnv()
_apis = getattr(_env, 'pbl_blueprint_api', None) or {}
_fn = _apis.get('blueprint_domain_options')
if _fn is None:
raise Exception('pbl_blueprint 未注册门面函数 blueprint_domain_options请先 load_pbl_blueprint()')
_args = {}
for _k in dir(params_kw):
pass
for _k in list(params_kw.keys()):
_args[_k] = params_kw[_k]
result = _fn(_args)
except Exception as _e:
result = {'success': False, 'error': {'code': 'PBL-API-001', 'msg': str(_e), 'detail': {}}}
_out = result
try:
_out = json.dumps(result, ensure_ascii=False, default=str)
except Exception:
_out = result
return _out

View File

@ -1,24 +0,0 @@
#!/usr/bin/env python3
# pbl_blueprint/blueprint_fork.dspy —— 薄接线层:仅解析入参 + 调 ServerEnv 注册的门面函数
# 业务逻辑在 pbl_blueprint/api.py::blueprint_fork可单测、跨宿主复用本文件禁止 import / f-string / print / uuid
result = {'success': False, 'error': {'code': 'PBL-BOOT-001', 'msg': 'pbl_blueprint 未加载'}}
try:
_env = ServerEnv()
_apis = getattr(_env, 'pbl_blueprint_api', None) or {}
_fn = _apis.get('blueprint_fork')
if _fn is None:
raise Exception('pbl_blueprint 未注册门面函数 blueprint_fork请先 load_pbl_blueprint()')
_args = {}
for _k in dir(params_kw):
pass
for _k in list(params_kw.keys()):
_args[_k] = params_kw[_k]
result = _fn(_args)
except Exception as _e:
result = {'success': False, 'error': {'code': 'PBL-API-001', 'msg': str(_e), 'detail': {}}}
_out = result
try:
_out = json.dumps(result, ensure_ascii=False, default=str)
except Exception:
_out = result
return _out

View File

@ -1,24 +0,0 @@
#!/usr/bin/env python3
# pbl_blueprint/blueprint_get.dspy —— 薄接线层:仅解析入参 + 调 ServerEnv 注册的门面函数
# 业务逻辑在 pbl_blueprint/api.py::blueprint_get可单测、跨宿主复用本文件禁止 import / f-string / print / uuid
result = {'success': False, 'error': {'code': 'PBL-BOOT-001', 'msg': 'pbl_blueprint 未加载'}}
try:
_env = ServerEnv()
_apis = getattr(_env, 'pbl_blueprint_api', None) or {}
_fn = _apis.get('blueprint_get')
if _fn is None:
raise Exception('pbl_blueprint 未注册门面函数 blueprint_get请先 load_pbl_blueprint()')
_args = {}
for _k in dir(params_kw):
pass
for _k in list(params_kw.keys()):
_args[_k] = params_kw[_k]
result = _fn(_args)
except Exception as _e:
result = {'success': False, 'error': {'code': 'PBL-API-001', 'msg': str(_e), 'detail': {}}}
_out = result
try:
_out = json.dumps(result, ensure_ascii=False, default=str)
except Exception:
_out = result
return _out

View File

@ -1,24 +0,0 @@
#!/usr/bin/env python3
# pbl_blueprint/blueprint_list.dspy —— 薄接线层:仅解析入参 + 调 ServerEnv 注册的门面函数
# 业务逻辑在 pbl_blueprint/api.py::blueprint_list可单测、跨宿主复用本文件禁止 import / f-string / print / uuid
result = {'success': False, 'error': {'code': 'PBL-BOOT-001', 'msg': 'pbl_blueprint 未加载'}}
try:
_env = ServerEnv()
_apis = getattr(_env, 'pbl_blueprint_api', None) or {}
_fn = _apis.get('blueprint_list')
if _fn is None:
raise Exception('pbl_blueprint 未注册门面函数 blueprint_list请先 load_pbl_blueprint()')
_args = {}
for _k in dir(params_kw):
pass
for _k in list(params_kw.keys()):
_args[_k] = params_kw[_k]
result = _fn(_args)
except Exception as _e:
result = {'success': False, 'error': {'code': 'PBL-API-001', 'msg': str(_e), 'detail': {}}}
_out = result
try:
_out = json.dumps(result, ensure_ascii=False, default=str)
except Exception:
_out = result
return _out

View File

@ -1,24 +0,0 @@
#!/usr/bin/env python3
# pbl_blueprint/blueprint_publish.dspy —— 薄接线层:仅解析入参 + 调 ServerEnv 注册的门面函数
# 业务逻辑在 pbl_blueprint/api.py::blueprint_publish可单测、跨宿主复用本文件禁止 import / f-string / print / uuid
result = {'success': False, 'error': {'code': 'PBL-BOOT-001', 'msg': 'pbl_blueprint 未加载'}}
try:
_env = ServerEnv()
_apis = getattr(_env, 'pbl_blueprint_api', None) or {}
_fn = _apis.get('blueprint_publish')
if _fn is None:
raise Exception('pbl_blueprint 未注册门面函数 blueprint_publish请先 load_pbl_blueprint()')
_args = {}
for _k in dir(params_kw):
pass
for _k in list(params_kw.keys()):
_args[_k] = params_kw[_k]
result = _fn(_args)
except Exception as _e:
result = {'success': False, 'error': {'code': 'PBL-API-001', 'msg': str(_e), 'detail': {}}}
_out = result
try:
_out = json.dumps(result, ensure_ascii=False, default=str)
except Exception:
_out = result
return _out

View File

@ -1,24 +0,0 @@
#!/usr/bin/env python3
# pbl_blueprint/blueprint_save.dspy —— 薄接线层:仅解析入参 + 调 ServerEnv 注册的门面函数
# 业务逻辑在 pbl_blueprint/api.py::blueprint_save可单测、跨宿主复用本文件禁止 import / f-string / print / uuid
result = {'success': False, 'error': {'code': 'PBL-BOOT-001', 'msg': 'pbl_blueprint 未加载'}}
try:
_env = ServerEnv()
_apis = getattr(_env, 'pbl_blueprint_api', None) or {}
_fn = _apis.get('blueprint_save')
if _fn is None:
raise Exception('pbl_blueprint 未注册门面函数 blueprint_save请先 load_pbl_blueprint()')
_args = {}
for _k in dir(params_kw):
pass
for _k in list(params_kw.keys()):
_args[_k] = params_kw[_k]
result = _fn(_args)
except Exception as _e:
result = {'success': False, 'error': {'code': 'PBL-API-001', 'msg': str(_e), 'detail': {}}}
_out = result
try:
_out = json.dumps(result, ensure_ascii=False, default=str)
except Exception:
_out = result
return _out

View File

@ -1,24 +0,0 @@
#!/usr/bin/env python3
# pbl_blueprint/blueprint_status.dspy —— 薄接线层:仅解析入参 + 调 ServerEnv 注册的门面函数
# 业务逻辑在 pbl_blueprint/api.py::blueprint_status可单测、跨宿主复用本文件禁止 import / f-string / print / uuid
result = {'success': False, 'error': {'code': 'PBL-BOOT-001', 'msg': 'pbl_blueprint 未加载'}}
try:
_env = ServerEnv()
_apis = getattr(_env, 'pbl_blueprint_api', None) or {}
_fn = _apis.get('blueprint_status')
if _fn is None:
raise Exception('pbl_blueprint 未注册门面函数 blueprint_status请先 load_pbl_blueprint()')
_args = {}
for _k in dir(params_kw):
pass
for _k in list(params_kw.keys()):
_args[_k] = params_kw[_k]
result = _fn(_args)
except Exception as _e:
result = {'success': False, 'error': {'code': 'PBL-API-001', 'msg': str(_e), 'detail': {}}}
_out = result
try:
_out = json.dumps(result, ensure_ascii=False, default=str)
except Exception:
_out = result
return _out

View File

@ -1,24 +0,0 @@
#!/usr/bin/env python3
# pbl_blueprint/blueprint_status_options.dspy —— 薄接线层:仅解析入参 + 调 ServerEnv 注册的门面函数
# 业务逻辑在 pbl_blueprint/api.py::blueprint_status_options可单测、跨宿主复用本文件禁止 import / f-string / print / uuid
result = {'success': False, 'error': {'code': 'PBL-BOOT-001', 'msg': 'pbl_blueprint 未加载'}}
try:
_env = ServerEnv()
_apis = getattr(_env, 'pbl_blueprint_api', None) or {}
_fn = _apis.get('blueprint_status_options')
if _fn is None:
raise Exception('pbl_blueprint 未注册门面函数 blueprint_status_options请先 load_pbl_blueprint()')
_args = {}
for _k in dir(params_kw):
pass
for _k in list(params_kw.keys()):
_args[_k] = params_kw[_k]
result = _fn(_args)
except Exception as _e:
result = {'success': False, 'error': {'code': 'PBL-API-001', 'msg': str(_e), 'detail': {}}}
_out = result
try:
_out = json.dumps(result, ensure_ascii=False, default=str)
except Exception:
_out = result
return _out

View File

@ -1,24 +0,0 @@
#!/usr/bin/env python3
# pbl_blueprint/blueprint_tree.dspy —— 薄接线层:仅解析入参 + 调 ServerEnv 注册的门面函数
# 业务逻辑在 pbl_blueprint/api.py::blueprint_tree可单测、跨宿主复用本文件禁止 import / f-string / print / uuid
result = {'success': False, 'error': {'code': 'PBL-BOOT-001', 'msg': 'pbl_blueprint 未加载'}}
try:
_env = ServerEnv()
_apis = getattr(_env, 'pbl_blueprint_api', None) or {}
_fn = _apis.get('blueprint_tree')
if _fn is None:
raise Exception('pbl_blueprint 未注册门面函数 blueprint_tree请先 load_pbl_blueprint()')
_args = {}
for _k in dir(params_kw):
pass
for _k in list(params_kw.keys()):
_args[_k] = params_kw[_k]
result = _fn(_args)
except Exception as _e:
result = {'success': False, 'error': {'code': 'PBL-API-001', 'msg': str(_e), 'detail': {}}}
_out = result
try:
_out = json.dumps(result, ensure_ascii=False, default=str)
except Exception:
_out = result
return _out

View File

@ -1,24 +0,0 @@
#!/usr/bin/env python3
# pbl_blueprint/blueprint_version_get.dspy —— 薄接线层:仅解析入参 + 调 ServerEnv 注册的门面函数
# 业务逻辑在 pbl_blueprint/api.py::blueprint_version_get可单测、跨宿主复用本文件禁止 import / f-string / print / uuid
result = {'success': False, 'error': {'code': 'PBL-BOOT-001', 'msg': 'pbl_blueprint 未加载'}}
try:
_env = ServerEnv()
_apis = getattr(_env, 'pbl_blueprint_api', None) or {}
_fn = _apis.get('blueprint_version_get')
if _fn is None:
raise Exception('pbl_blueprint 未注册门面函数 blueprint_version_get请先 load_pbl_blueprint()')
_args = {}
for _k in dir(params_kw):
pass
for _k in list(params_kw.keys()):
_args[_k] = params_kw[_k]
result = _fn(_args)
except Exception as _e:
result = {'success': False, 'error': {'code': 'PBL-API-001', 'msg': str(_e), 'detail': {}}}
_out = result
try:
_out = json.dumps(result, ensure_ascii=False, default=str)
except Exception:
_out = result
return _out

View File

@ -1,24 +0,0 @@
#!/usr/bin/env python3
# pbl_blueprint/blueprint_versions.dspy —— 薄接线层:仅解析入参 + 调 ServerEnv 注册的门面函数
# 业务逻辑在 pbl_blueprint/api.py::blueprint_versions可单测、跨宿主复用本文件禁止 import / f-string / print / uuid
result = {'success': False, 'error': {'code': 'PBL-BOOT-001', 'msg': 'pbl_blueprint 未加载'}}
try:
_env = ServerEnv()
_apis = getattr(_env, 'pbl_blueprint_api', None) or {}
_fn = _apis.get('blueprint_versions')
if _fn is None:
raise Exception('pbl_blueprint 未注册门面函数 blueprint_versions请先 load_pbl_blueprint()')
_args = {}
for _k in dir(params_kw):
pass
for _k in list(params_kw.keys()):
_args[_k] = params_kw[_k]
result = _fn(_args)
except Exception as _e:
result = {'success': False, 'error': {'code': 'PBL-API-001', 'msg': str(_e), 'detail': {}}}
_out = result
try:
_out = json.dumps(result, ensure_ascii=False, default=str)
except Exception:
_out = result
return _out

View File

@ -1,24 +0,0 @@
#!/usr/bin/env python3
# pbl_blueprint/subobject_counts.dspy —— 薄接线层:仅解析入参 + 调 ServerEnv 注册的门面函数
# 业务逻辑在 pbl_blueprint/api.py::subobject_counts可单测、跨宿主复用本文件禁止 import / f-string / print / uuid
result = {'success': False, 'error': {'code': 'PBL-BOOT-001', 'msg': 'pbl_blueprint 未加载'}}
try:
_env = ServerEnv()
_apis = getattr(_env, 'pbl_blueprint_api', None) or {}
_fn = _apis.get('subobject_counts')
if _fn is None:
raise Exception('pbl_blueprint 未注册门面函数 subobject_counts请先 load_pbl_blueprint()')
_args = {}
for _k in dir(params_kw):
pass
for _k in list(params_kw.keys()):
_args[_k] = params_kw[_k]
result = _fn(_args)
except Exception as _e:
result = {'success': False, 'error': {'code': 'PBL-API-001', 'msg': str(_e), 'detail': {}}}
_out = result
try:
_out = json.dumps(result, ensure_ascii=False, default=str)
except Exception:
_out = result
return _out

View File

@ -1,24 +0,0 @@
#!/usr/bin/env python3
# pbl_blueprint/subobject_delete.dspy —— 薄接线层:仅解析入参 + 调 ServerEnv 注册的门面函数
# 业务逻辑在 pbl_blueprint/api.py::subobject_delete可单测、跨宿主复用本文件禁止 import / f-string / print / uuid
result = {'success': False, 'error': {'code': 'PBL-BOOT-001', 'msg': 'pbl_blueprint 未加载'}}
try:
_env = ServerEnv()
_apis = getattr(_env, 'pbl_blueprint_api', None) or {}
_fn = _apis.get('subobject_delete')
if _fn is None:
raise Exception('pbl_blueprint 未注册门面函数 subobject_delete请先 load_pbl_blueprint()')
_args = {}
for _k in dir(params_kw):
pass
for _k in list(params_kw.keys()):
_args[_k] = params_kw[_k]
result = _fn(_args)
except Exception as _e:
result = {'success': False, 'error': {'code': 'PBL-API-001', 'msg': str(_e), 'detail': {}}}
_out = result
try:
_out = json.dumps(result, ensure_ascii=False, default=str)
except Exception:
_out = result
return _out

View File

@ -1,24 +0,0 @@
#!/usr/bin/env python3
# pbl_blueprint/subobject_get.dspy —— 薄接线层:仅解析入参 + 调 ServerEnv 注册的门面函数
# 业务逻辑在 pbl_blueprint/api.py::subobject_get可单测、跨宿主复用本文件禁止 import / f-string / print / uuid
result = {'success': False, 'error': {'code': 'PBL-BOOT-001', 'msg': 'pbl_blueprint 未加载'}}
try:
_env = ServerEnv()
_apis = getattr(_env, 'pbl_blueprint_api', None) or {}
_fn = _apis.get('subobject_get')
if _fn is None:
raise Exception('pbl_blueprint 未注册门面函数 subobject_get请先 load_pbl_blueprint()')
_args = {}
for _k in dir(params_kw):
pass
for _k in list(params_kw.keys()):
_args[_k] = params_kw[_k]
result = _fn(_args)
except Exception as _e:
result = {'success': False, 'error': {'code': 'PBL-API-001', 'msg': str(_e), 'detail': {}}}
_out = result
try:
_out = json.dumps(result, ensure_ascii=False, default=str)
except Exception:
_out = result
return _out

View File

@ -1,24 +0,0 @@
#!/usr/bin/env python3
# pbl_blueprint/subobject_list.dspy —— 薄接线层:仅解析入参 + 调 ServerEnv 注册的门面函数
# 业务逻辑在 pbl_blueprint/api.py::subobject_list可单测、跨宿主复用本文件禁止 import / f-string / print / uuid
result = {'success': False, 'error': {'code': 'PBL-BOOT-001', 'msg': 'pbl_blueprint 未加载'}}
try:
_env = ServerEnv()
_apis = getattr(_env, 'pbl_blueprint_api', None) or {}
_fn = _apis.get('subobject_list')
if _fn is None:
raise Exception('pbl_blueprint 未注册门面函数 subobject_list请先 load_pbl_blueprint()')
_args = {}
for _k in dir(params_kw):
pass
for _k in list(params_kw.keys()):
_args[_k] = params_kw[_k]
result = _fn(_args)
except Exception as _e:
result = {'success': False, 'error': {'code': 'PBL-API-001', 'msg': str(_e), 'detail': {}}}
_out = result
try:
_out = json.dumps(result, ensure_ascii=False, default=str)
except Exception:
_out = result
return _out

View File

@ -1,24 +0,0 @@
#!/usr/bin/env python3
# pbl_blueprint/subobject_save.dspy —— 薄接线层:仅解析入参 + 调 ServerEnv 注册的门面函数
# 业务逻辑在 pbl_blueprint/api.py::subobject_save可单测、跨宿主复用本文件禁止 import / f-string / print / uuid
result = {'success': False, 'error': {'code': 'PBL-BOOT-001', 'msg': 'pbl_blueprint 未加载'}}
try:
_env = ServerEnv()
_apis = getattr(_env, 'pbl_blueprint_api', None) or {}
_fn = _apis.get('subobject_save')
if _fn is None:
raise Exception('pbl_blueprint 未注册门面函数 subobject_save请先 load_pbl_blueprint()')
_args = {}
for _k in dir(params_kw):
pass
for _k in list(params_kw.keys()):
_args[_k] = params_kw[_k]
result = _fn(_args)
except Exception as _e:
result = {'success': False, 'error': {'code': 'PBL-API-001', 'msg': str(_e), 'detail': {}}}
_out = result
try:
_out = json.dumps(result, ensure_ascii=False, default=str)
except Exception:
_out = result
return _out

View File

@ -1,24 +0,0 @@
#!/usr/bin/env python3
# pbl_blueprint/subobject_type_options.dspy —— 薄接线层:仅解析入参 + 调 ServerEnv 注册的门面函数
# 业务逻辑在 pbl_blueprint/api.py::subobject_type_options可单测、跨宿主复用本文件禁止 import / f-string / print / uuid
result = {'success': False, 'error': {'code': 'PBL-BOOT-001', 'msg': 'pbl_blueprint 未加载'}}
try:
_env = ServerEnv()
_apis = getattr(_env, 'pbl_blueprint_api', None) or {}
_fn = _apis.get('subobject_type_options')
if _fn is None:
raise Exception('pbl_blueprint 未注册门面函数 subobject_type_options请先 load_pbl_blueprint()')
_args = {}
for _k in dir(params_kw):
pass
for _k in list(params_kw.keys()):
_args[_k] = params_kw[_k]
result = _fn(_args)
except Exception as _e:
result = {'success': False, 'error': {'code': 'PBL-API-001', 'msg': str(_e), 'detail': {}}}
_out = result
try:
_out = json.dumps(result, ensure_ascii=False, default=str)
except Exception:
_out = result
return _out

View File

@ -1,24 +0,0 @@
#!/usr/bin/env python3
# pbl_blueprint/table_manifest.dspy —— 薄接线层:仅解析入参 + 调 ServerEnv 注册的门面函数
# 业务逻辑在 pbl_blueprint/api.py::table_manifest可单测、跨宿主复用本文件禁止 import / f-string / print / uuid
result = {'success': False, 'error': {'code': 'PBL-BOOT-001', 'msg': 'pbl_blueprint 未加载'}}
try:
_env = ServerEnv()
_apis = getattr(_env, 'pbl_blueprint_api', None) or {}
_fn = _apis.get('table_manifest')
if _fn is None:
raise Exception('pbl_blueprint 未注册门面函数 table_manifest请先 load_pbl_blueprint()')
_args = {}
for _k in dir(params_kw):
pass
for _k in list(params_kw.keys()):
_args[_k] = params_kw[_k]
result = _fn(_args)
except Exception as _e:
result = {'success': False, 'error': {'code': 'PBL-API-001', 'msg': str(_e), 'detail': {}}}
_out = result
try:
_out = json.dumps(result, ensure_ascii=False, default=str)
except Exception:
_out = result
return _out

View File

@ -1,24 +0,0 @@
#!/usr/bin/env python3
# pbl_blueprint/template_delete.dspy —— 薄接线层:仅解析入参 + 调 ServerEnv 注册的门面函数
# 业务逻辑在 pbl_blueprint/api.py::template_delete可单测、跨宿主复用本文件禁止 import / f-string / print / uuid
result = {'success': False, 'error': {'code': 'PBL-BOOT-001', 'msg': 'pbl_blueprint 未加载'}}
try:
_env = ServerEnv()
_apis = getattr(_env, 'pbl_blueprint_api', None) or {}
_fn = _apis.get('template_delete')
if _fn is None:
raise Exception('pbl_blueprint 未注册门面函数 template_delete请先 load_pbl_blueprint()')
_args = {}
for _k in dir(params_kw):
pass
for _k in list(params_kw.keys()):
_args[_k] = params_kw[_k]
result = _fn(_args)
except Exception as _e:
result = {'success': False, 'error': {'code': 'PBL-API-001', 'msg': str(_e), 'detail': {}}}
_out = result
try:
_out = json.dumps(result, ensure_ascii=False, default=str)
except Exception:
_out = result
return _out

View File

@ -1,24 +0,0 @@
#!/usr/bin/env python3
# pbl_blueprint/template_from_blueprint.dspy —— 薄接线层:仅解析入参 + 调 ServerEnv 注册的门面函数
# 业务逻辑在 pbl_blueprint/api.py::template_from_blueprint可单测、跨宿主复用本文件禁止 import / f-string / print / uuid
result = {'success': False, 'error': {'code': 'PBL-BOOT-001', 'msg': 'pbl_blueprint 未加载'}}
try:
_env = ServerEnv()
_apis = getattr(_env, 'pbl_blueprint_api', None) or {}
_fn = _apis.get('template_from_blueprint')
if _fn is None:
raise Exception('pbl_blueprint 未注册门面函数 template_from_blueprint请先 load_pbl_blueprint()')
_args = {}
for _k in dir(params_kw):
pass
for _k in list(params_kw.keys()):
_args[_k] = params_kw[_k]
result = _fn(_args)
except Exception as _e:
result = {'success': False, 'error': {'code': 'PBL-API-001', 'msg': str(_e), 'detail': {}}}
_out = result
try:
_out = json.dumps(result, ensure_ascii=False, default=str)
except Exception:
_out = result
return _out

View File

@ -1,24 +0,0 @@
#!/usr/bin/env python3
# pbl_blueprint/template_get.dspy —— 薄接线层:仅解析入参 + 调 ServerEnv 注册的门面函数
# 业务逻辑在 pbl_blueprint/api.py::template_get可单测、跨宿主复用本文件禁止 import / f-string / print / uuid
result = {'success': False, 'error': {'code': 'PBL-BOOT-001', 'msg': 'pbl_blueprint 未加载'}}
try:
_env = ServerEnv()
_apis = getattr(_env, 'pbl_blueprint_api', None) or {}
_fn = _apis.get('template_get')
if _fn is None:
raise Exception('pbl_blueprint 未注册门面函数 template_get请先 load_pbl_blueprint()')
_args = {}
for _k in dir(params_kw):
pass
for _k in list(params_kw.keys()):
_args[_k] = params_kw[_k]
result = _fn(_args)
except Exception as _e:
result = {'success': False, 'error': {'code': 'PBL-API-001', 'msg': str(_e), 'detail': {}}}
_out = result
try:
_out = json.dumps(result, ensure_ascii=False, default=str)
except Exception:
_out = result
return _out

View File

@ -1,24 +0,0 @@
#!/usr/bin/env python3
# pbl_blueprint/template_instantiate.dspy —— 薄接线层:仅解析入参 + 调 ServerEnv 注册的门面函数
# 业务逻辑在 pbl_blueprint/api.py::template_instantiate可单测、跨宿主复用本文件禁止 import / f-string / print / uuid
result = {'success': False, 'error': {'code': 'PBL-BOOT-001', 'msg': 'pbl_blueprint 未加载'}}
try:
_env = ServerEnv()
_apis = getattr(_env, 'pbl_blueprint_api', None) or {}
_fn = _apis.get('template_instantiate')
if _fn is None:
raise Exception('pbl_blueprint 未注册门面函数 template_instantiate请先 load_pbl_blueprint()')
_args = {}
for _k in dir(params_kw):
pass
for _k in list(params_kw.keys()):
_args[_k] = params_kw[_k]
result = _fn(_args)
except Exception as _e:
result = {'success': False, 'error': {'code': 'PBL-API-001', 'msg': str(_e), 'detail': {}}}
_out = result
try:
_out = json.dumps(result, ensure_ascii=False, default=str)
except Exception:
_out = result
return _out

View File

@ -1,24 +0,0 @@
#!/usr/bin/env python3
# pbl_blueprint/template_list.dspy —— 薄接线层:仅解析入参 + 调 ServerEnv 注册的门面函数
# 业务逻辑在 pbl_blueprint/api.py::template_list可单测、跨宿主复用本文件禁止 import / f-string / print / uuid
result = {'success': False, 'error': {'code': 'PBL-BOOT-001', 'msg': 'pbl_blueprint 未加载'}}
try:
_env = ServerEnv()
_apis = getattr(_env, 'pbl_blueprint_api', None) or {}
_fn = _apis.get('template_list')
if _fn is None:
raise Exception('pbl_blueprint 未注册门面函数 template_list请先 load_pbl_blueprint()')
_args = {}
for _k in dir(params_kw):
pass
for _k in list(params_kw.keys()):
_args[_k] = params_kw[_k]
result = _fn(_args)
except Exception as _e:
result = {'success': False, 'error': {'code': 'PBL-API-001', 'msg': str(_e), 'detail': {}}}
_out = result
try:
_out = json.dumps(result, ensure_ascii=False, default=str)
except Exception:
_out = result
return _out

View File

@ -1,24 +0,0 @@
#!/usr/bin/env python3
# pbl_blueprint/template_save.dspy —— 薄接线层:仅解析入参 + 调 ServerEnv 注册的门面函数
# 业务逻辑在 pbl_blueprint/api.py::template_save可单测、跨宿主复用本文件禁止 import / f-string / print / uuid
result = {'success': False, 'error': {'code': 'PBL-BOOT-001', 'msg': 'pbl_blueprint 未加载'}}
try:
_env = ServerEnv()
_apis = getattr(_env, 'pbl_blueprint_api', None) or {}
_fn = _apis.get('template_save')
if _fn is None:
raise Exception('pbl_blueprint 未注册门面函数 template_save请先 load_pbl_blueprint()')
_args = {}
for _k in dir(params_kw):
pass
for _k in list(params_kw.keys()):
_args[_k] = params_kw[_k]
result = _fn(_args)
except Exception as _e:
result = {'success': False, 'error': {'code': 'PBL-API-001', 'msg': str(_e), 'detail': {}}}
_out = result
try:
_out = json.dumps(result, ensure_ascii=False, default=str)
except Exception:
_out = result
return _out