chore: auto release commit (2026-09-14 16:40:24)
This commit is contained in:
@@ -4,8 +4,10 @@
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
# 占位:开发者后续接入 jiangchang_skill_core
|
||||
# from jiangchang_skill_core import ...
|
||||
# 让 scripts/ 下的子包(util/db/service/cli)可作为顶级包导入
|
||||
_SCRIPTS_DIR = Path(__file__).resolve().parent
|
||||
if str(_SCRIPTS_DIR) not in sys.path:
|
||||
sys.path.insert(0, str(_SCRIPTS_DIR))
|
||||
|
||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||
|
||||
@@ -19,7 +21,8 @@ def health():
|
||||
|
||||
def version():
|
||||
"""查看版本(占位)。"""
|
||||
print("detect-policy-conflict-gs v1.0.1")
|
||||
from util.constants import SKILL_VERSION
|
||||
print(f"detect-policy-conflict-gs v{SKILL_VERSION}")
|
||||
return 0
|
||||
|
||||
|
||||
@@ -55,6 +58,10 @@ def export_review_report(draft_id: str, fmt: str = "pdf"):
|
||||
|
||||
def mark_policy_status(draft_id: str, target_status: str):
|
||||
"""标记送审稿状态(占位)。"""
|
||||
from util.constants import POLICY_DRAFT_STATUSES
|
||||
if target_status not in POLICY_DRAFT_STATUSES:
|
||||
print(f"ERROR: 未知状态 {target_status!r},允许:{POLICY_DRAFT_STATUSES}", file=sys.stderr)
|
||||
return 1
|
||||
print(f"mark-policy-status: {draft_id} -> {target_status} (待开发者实现)")
|
||||
return 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user