Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 23 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
matrix:
python-version: ['3.11', '3.12', '3.13']
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
Expand All @@ -34,32 +38,44 @@ jobs:
- name: Install uv
uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5

- name: Set up Python 3.11
run: uv python install 3.11
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}

- name: Cache uv
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
with:
path: |
~/.cache/uv
.venv
key: ${{ runner.os }}-python-${{ matrix.python-version }}-uv-${{ hashFiles('pyproject.toml', 'uv.lock') }}
restore-keys: |
${{ runner.os }}-python-${{ matrix.python-version }}-uv-

- name: Install dependencies
run: |
uv venv .venv --python 3.11
uv venv .venv --python ${{ matrix.python-version }}
source .venv/bin/activate
uv pip install -e ".[all,dev]"

- name: Run tests
- name: Run tests (unit + integration)
run: |
source .venv/bin/activate
python -m pytest tests/ -q --ignore=tests/integration --ignore=tests/e2e --tb=short -n auto
python -m pytest tests/ -q --ignore=tests/e2e --tb=short -n auto
env:
# Ensure tests don't accidentally call real APIs
OPENROUTER_API_KEY: ""
OPENAI_API_KEY: ""
NOUS_API_KEY: ""

e2e:
runs-on: ubuntu-latest
timeout-minutes: 10
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4

- name: Install system dependencies
run: sudo apt-get update && sudo apt-get install -y ripgrep

- name: Install uv
uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5

Expand Down
16 changes: 14 additions & 2 deletions hermes_cli/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -4873,7 +4873,14 @@ def _minimax_oauth_login(
)

now = datetime.now(timezone.utc)
expires_in_s = int(token_data["expired_in"])
raw_expired = int(token_data["expired_in"])
# MiniMax returns expired_in as a Unix-ms timestamp (not a seconds duration).
# Use the same defensive heuristic as _minimax_poll_token.
now_ms = int(now.timestamp() * 1000)
if raw_expired > now_ms // 2:
expires_in_s = max(1, (raw_expired / 1000.0) - now.timestamp())
else:
expires_in_s = max(1, raw_expired)
expires_at = now.timestamp() + expires_in_s

auth_state = {
Expand Down Expand Up @@ -4949,7 +4956,12 @@ def _refresh_minimax_oauth_state(
relogin_required=True,
)
now_dt = datetime.now(timezone.utc)
expires_in_s = int(payload["expired_in"])
raw_expired = int(payload["expired_in"])
now_ms = int(now_dt.timestamp() * 1000)
if raw_expired > now_ms // 2:
expires_in_s = max(1, (raw_expired / 1000.0) - now_dt.timestamp())
else:
expires_in_s = max(1, raw_expired)
new_state = dict(state)
new_state.update({
"access_token": payload["access_token"],
Expand Down
25 changes: 25 additions & 0 deletions locales/af.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Hermes static-message catalog -- Afrikaans
#
# See en.yaml for scope and contribution requirements.

approval:
dangerous_header: "⚠️ GEVAARLIKE OPDRAG: {description}"
choose_long: " [o]nce | [s]ession | [a]lways | [d]eny"
choose_short: " [o]nce | [s]ession | [d]eny"
prompt_long: " Keuse [o/s/a/D]: "
prompt_short: " Keuse [o/s/D]: "
timeout: " ⏱ Tyd verstreke - opdrag geweier"
allowed_once: " ✓ Eenmalig toegelaat"
allowed_session: " ✓ Toegelaat vir hierdie sessie"
allowed_always: " ✓ By permanente toelaatlys gevoeg"
denied: " ✗ Geweier"
cancelled: " ✗ Gekanselleer"
blocklist_message: "Hierdie opdrag is op die onvoorwaardelike blokkeerlys en kan nie goedgekeur word nie."

gateway:
approval_expired: "⚠️ Goedkeuring verval (agent wag nie meer nie). Vra die agent om weer te probeer."
draining: "⏳ Besig om {count} aktiewe agent(e) te dreineer voor herbegin..."
goal_cleared: "✓ Doelwit skoongemaak."
no_active_goal: "Geen aktiewe doelwit nie."
config_read_failed: "⚠️ Kon nie config.yaml lees nie: {error}"
config_save_failed: "⚠️ Kon nie config stoor nie: {error}"
3 changes: 0 additions & 3 deletions skills/apple/DESCRIPTION.md

This file was deleted.

90 changes: 0 additions & 90 deletions skills/apple/apple-notes/SKILL.md

This file was deleted.

98 changes: 0 additions & 98 deletions skills/apple/apple-reminders/SKILL.md

This file was deleted.

Loading