[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