mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-09 07:13:17 +08:00
- 在 oclaw/ 下重新初始化 Git 仓库 - 补齐子仓库 .gitignore,避免提交本地运行态数据(_local、node_modules、logs 等) - 提交当前工程代码与配置 Made-with: Cursor
14 lines
309 B
Python
14 lines
309 B
Python
from __future__ import annotations
|
|
|
|
from typing import Any
|
|
|
|
|
|
def resolve_base_hash_param(params: Any) -> str | None:
|
|
raw = None
|
|
if isinstance(params, dict):
|
|
raw = params.get("baseHash")
|
|
if not isinstance(raw, str):
|
|
return None
|
|
trimmed = raw.strip()
|
|
return trimmed or None
|
|
|