Import-safe helpers for inspecting a Python interpreter's linked SQLite. This module intentionally depends only on the standard library. Installer and update code must be able to use it before Hermes' third-party dependencies are healthy.
# Source: https://github.com/Eynzof/Hermes-CN-Core | License: MIT | Copyright 2025 Nous Research
# Provided via justclaw.it.com; keep this notice with the code.
"""Import-safe helpers for inspecting a Python interpreter's linked SQLite.
This module intentionally depends only on the standard library. Installer and update code must be
able to use it before Hermes' third-party dependencies are healthy.
"""
from __future__ import annotations
import json
import os
import subprocess
from dataclasses import dataclass
from pathlib import Path
from typing import Iterable
def _version_tuple(parts: Iterable[object]) -> tuple[int, int, int]:
values = [int(part) for part in parts]
values.extend([0] * (3 - len(values)))
return tuple(values[:3])
def is_sqlite_wal_reset_vulnerable(versi
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key