chore: auto release commit (2026-09-14 16:39:09)

This commit is contained in:
2026-09-14 16:39:09 +08:00
parent 3f87f223f9
commit 298e41c2c6
5 changed files with 371 additions and 2 deletions

View File

@@ -19,7 +19,12 @@ def health():
def version():
"""查看版本(占位)。"""
print("verify-scholarship-fraud-sas v1.0.1")
try:
from util.constants import SKILL_VERSION
ver = SKILL_VERSION
except ImportError:
ver = "1.0.1" # 占位回退
print(f"verify-scholarship-fraud-sas v{ver}")
return 0

34
scripts/util/constants.py Normal file
View File

@@ -0,0 +1,34 @@
"""技能标识、版本与阈值常量。
复制到新 skill 时必须修改:
- SKILL_SLUG 与 SKILL.md metadata.openclaw.slug 保持一致
- SKILL_VERSION 与 SKILL.md version 保持一致
"""
SKILL_SLUG = "verify-scholarship-fraud-sas"
SKILL_VERSION = "1.0.2"
LOG_LOGGER_NAME = "openclaw.skill.verify_scholarship_fraud_sas"
PLATFORM_KIT_MIN_VERSION = "1.2.11"
# 业务行生命周期状态值(候选人汇总表每一行)
CANDIDATE_STATUSES = ("待审", "已标注", "已复核", "已驳回", "已撤回")
# 复核结论
REVIEW_CONCLUSIONS = ("保留", "取消", "调减")
# 异常检测维度(v1.0.1 占位;具体阈值由开发者按 development/REQUIREMENTS.md 补全)
RISK_DIMENSIONS = (
"income_vs_card_consumption", # 自报年收入 vs 一卡通月均消费
"comprehensive_vs_score_rank", # 综测排名 vs 成绩排名
"cumulative_aid_amount", # 本学年累计资助金额
"duplicate_aid_history", # 历史重复资助排查
)
RISK_LEVEL_LABELS = {
"low": "低风险",
"medium": "中风险",
"high": "高风险",
}
# 多平台 brands 同步声明(与 SKILL.md metadata.openclaw.brands 保持一致)
BRANDS = ("jiangchang", "huashang")