THE single repo holding every Svrnty modification to nesquena/hermes-webui per
the SVRNTY-HERMES Plugin Protocol PRD (hermes/docs/SVRNTY-PLUGIN-PROTOCOL.md).
This scaffold is the empty vessel; Phase 2 migrates the existing fork
modifications (STT, vault status, brand skin) into it.
Contents:
plugin.py register(api) entry; reads 6-method
contract; wires static + routes
svrnty_hermes_webui_plugin/ package wrapper for pip install
manifest.yaml plugin name · version · upstream pin
pyproject.toml pip-installable
routes/__init__.py placeholder until Phase 2 migration
static/ placeholder for brand skin migration
CONNECTION-MAP.md AST-generated; 4 public API calls, 0 forced
scripts/ast-connection-map.py AST walker; modes: regen · --check · --diff
tests/{unit,integration,evals}/ skeleton for Phase 3 eval suite
.github/workflows/
plugin-tests.yml push: unit + integration + map check
connection-map-check.yml PR: regen + diff vs committed
upstream-drift.yml daily cron: detect new upstream tags +
run matrix (activates when Gitea runner
registered on Svrnty infra)
Karpathy 4 rules in CLAUDE.md; every subagent inherits them via the workspace
contract.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
33 lines
928 B
YAML
33 lines
928 B
YAML
name: plugin-tests
|
|
|
|
# Runs on every push to jp/main + on every PR.
|
|
# Fast (unit + integration). Drift CI is a separate workflow.
|
|
on:
|
|
push:
|
|
branches: [jp, main]
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.12"
|
|
|
|
- name: Install plugin (editable) + dev deps
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -e .
|
|
pip install pytest pyyaml
|
|
|
|
- name: Unit tests
|
|
run: pytest tests/unit -v --tb=short || (echo "no unit tests yet — Phase 2"; true)
|
|
|
|
- name: Integration tests (skip if hermes-webui not available)
|
|
run: pytest tests/integration -v --tb=short || (echo "no integration tests yet — Phase 2"; true)
|
|
|
|
- name: AST connection map is fresh
|
|
run: python3 scripts/ast-connection-map.py --check
|