Commit Graph

288 Commits

Author SHA1 Message Date
Teknium
4a8c01790a fix(skills): document skills share one PM-built side environment; pause before Enter in the no-tmux recipe
The six document skills each carried a copy of a venv bootstrap that ran
`python -m venv --clear` on a shared directory after an unlocked check, so two
agents could erase each other's install, and the pdf skill's optional installs
read a DOCS_ENV that was only set inside a branch.

`hermes pm environment NAME --extra E | --requirement R` exposes PM's existing
isolated environments (pm.ensure_environment) to shell callers: the identity
is re-checked under the environment's install lock, a rebuild lands in a new
generation published by an atomic selection, and the previous generation is
never deleted. It prints only the interpreter path on stdout. --extra reads
the extra's pins from pyproject.toml, so a Hermes update does not build a new
generation unless those pins change.

Every document skill now runs the same one-liner
(`hermes pm environment documents --extra documents --extra documents-pdf`)
when `python` lacks the libraries; the new documents-pdf extra carries
pdfplumber and pypdfium2. OCR libraries get their own named environments.

The no-tmux PTY recipe pauses 0.5 s between the text write and the Enter
write, like the tmux recipe, so the paste guard cannot read Enter as a newline.
2026-10-28 19:26:17 -07:00
Teknium
b357ebbfc4 fix(docker): ship tmux and the Office/PDF libraries; document skills keep a persistent side env
Hosted Docker instances could not run the hermes-agent skill's tmux spawning
recipe (no tmux) or create Office/PDF files: the docx/xlsx/powerpoint/pdf
skills said `pip install ...`, but the image's sealed venv has no pip and the
root fs resets on restart.

- Dockerfile: tmux in the runtime apt layer (+3 MB); bake a new [documents]
  extra (python-docx, openpyxl, python-pptx, reportlab, pypdf) into the
  sealed venv (+14 MB compressed, ~+38 MB on disk).
- pyproject/uv.lock: the [documents] extra, exact pins, outside [all];
  pm/extras ANCHORS gets its import anchors.
- docx/xlsx/powerpoint/pdf (+ optional excel-author/pptx-author): use
  `python` when it already imports the libs, otherwise a persistent side
  venv at $HERMES_HOME/environments/documents (recreated when its Python is
  gone); pdf script hints and the OCR reference point there, never at pip
  into Hermes's interpreter.
- hermes-agent skill: send text and Enter as separate tmux keystrokes (one
  burst lands as a newline, verified live), plus a no-tmux fallback via
  terminal(background=true, pty=true) + process_manage write.

Found on Hermes Cloud staging.
2026-10-28 19:26:17 -07:00
Maciej Lisiewski
bb6986f4d9 chore(deps): bump brotlicffi to 1.2.1.0 (#145147)
Carries libbrotli 1.2.1 (CVE-2026-111497, out-of-bounds write / RCE). Trailing bytes after a complete Brotli stream now raise brotlicffi.error.
2026-10-26 12:08:32 -07:00
Teknium
7abb9cc0fa feat(vault): opt-in OS-keychain storage for the vault key, with a verified migration
The local vault key sat in vault.key next to vault.json.enc, so any backup, synced
folder or copied ~/.hermes carried the ciphertext together with its key.

vault.key_storage: keychain (default stays `file`) puts a NEW vault's key in the OS
keychain via keyring (new lazy `keychain` extra, keyring==25.7.0), one entry per
profile, named by a non-secret vault.keyref. No reachable keychain (headless Linux,
extra not installed, plaintext/null keyring backends) falls back to the 0600 file.

`hermes vault key` shows where the key is; `hermes vault key migrate --to keychain|file`
writes the destination, proves it decrypts the vault, and only then removes the
source, so an interrupted move leaves a working vault and a rerun finishes it.

A vault whose key is missing (file or keychain entry) now raises a recovery message
and never mints a new key over existing ciphertext (before, a deleted vault.key was
silently replaced and the vault reported "key mismatch or corruption").

Opt-in rather than default: macOS can prompt for keychain access after Hermes'
Python changes, locked Linux keyrings prompt or are absent over SSH, cron while
logged out cannot read the key, and backups stop being self-contained.
2026-10-25 05:45:51 -07:00
Maciej Lisiewski
128b101efd chore(deps): bump openai to 2.54.0
openai: 2.24.0 -> 2.54.0 (pins edited: 1; also: {})
2026-10-23 09:24:07 +02:00
Maciej Lisiewski
5a36b89795 chore(deps): bump daytona to 0.225.0
daytona: 0.210.0 -> 0.225.0 (pins edited: 1; also: {daytona-analytics-api-client 0.210.0->0.225.0, daytona-api-client-async 0.210.0->0.225.0, daytona-api-client 0.210.0->0.225.0, daytona-analytics-api-client-async 0.210.0->0.225.0, daytona-toolbox-api-client 0.210.0->0.225.0, daytona-toolbox-api-client-async 0.210.0->0.225.0})
2026-10-23 09:24:06 +02:00
Maciej Lisiewski
c8d9bf011b chore(deps): bump indirect dependencies within existing constraints
- obstore: 0.8.2 -> 0.11.1
- transformers: 5.17.0 -> 5.20.2
2026-10-23 09:24:05 +02:00
Maciej Lisiewski
f02555cf5f chore(deps): bump ruff to 0.15.22
ruff: 0.15.10 -> 0.15.22 (pins edited: 1; also: {})
2026-10-23 09:24:04 +02:00
Maciej Lisiewski
64487e631f chore(deps): bump ty to 0.0.89
ty: 0.0.82 -> 0.0.89 (pins edited: 1; also: {})
2026-10-23 09:24:03 +02:00
Maciej Lisiewski
5961800d49 chore(deps): bump watchfiles to 1.3.0
watchfiles: 1.2.0 -> 1.3.0 (pins edited: 0; also: {})
2026-10-23 09:24:02 +02:00
Maciej Lisiewski
f9ed8d62ce chore(deps): bump vercel to 0.12.0
vercel: 0.7.2 -> 0.12.0 (pins edited: 1; also: {vercel-workers 0.0.25->None, vercel-internal-telemetry 0.7.2->0.8.1, vercel-cache 0.7.2->0.7.6})
2026-10-23 09:24:01 +02:00
Maciej Lisiewski
287ced62f3 chore(deps): bump uvloop to 0.23.0
uvloop: 0.22.1 -> 0.23.0 (pins edited: 0; also: {})
2026-10-23 09:23:59 +02:00
Maciej Lisiewski
fa8ffd09c9 chore(deps): bump uvicorn to 0.54.0
uvicorn: 0.41.0 -> 0.54.0 (pins edited: 1; also: {})
2026-10-23 09:23:58 +02:00
Maciej Lisiewski
fb945d0e61 chore(deps): bump truststore to 0.10.5
truststore: 0.10.4 -> 0.10.5 (pins edited: 2; also: {})
2026-10-23 09:23:58 +02:00
Maciej Lisiewski
b2ae855dff chore(deps): bump tenacity to 9.2.1
tenacity: 9.1.4 -> 9.2.1 (pins edited: 1; also: {})
2026-10-23 09:23:57 +02:00
Maciej Lisiewski
d8062a5c44 chore(deps): bump starlette to 1.9.0
starlette: 1.3.1 -> 1.9.0 (pins edited: 4; also: {})
2026-10-23 09:23:56 +02:00
Maciej Lisiewski
741357733f chore(deps): bump sounddevice to 0.5.6
sounddevice: 0.5.5 -> 0.5.6 (pins edited: 3; also: {})
2026-10-23 09:23:55 +02:00
Maciej Lisiewski
b3ace3a08f chore(deps): bump slack-sdk to 3.45.0
slack-sdk: 3.44.1 -> 3.45.0 (pins edited: 2; also: {})
2026-10-23 09:23:54 +02:00
Maciej Lisiewski
c6a8753e65 chore(deps): bump rich to 14.3.4
rich: 14.3.3 -> 14.3.4 (pins edited: 1; also: {})
2026-10-23 09:23:53 +02:00
Maciej Lisiewski
00a064a797 chore(deps): bump resvg-py to 0.5.0
resvg-py: 0.4.0 -> 0.5.0 (pins edited: 1; also: {})
2026-10-23 09:23:52 +02:00
Maciej Lisiewski
cec2a96e89 chore(deps): bump requests to 2.34.2
requests: 2.33.0 -> 2.34.2 (pins edited: 1; also: {})
2026-10-23 09:23:51 +02:00
Maciej Lisiewski
ae815e695a chore(deps): bump pywinpty to 3.1.0
pywinpty: 3.0.5 -> 3.1.0 (pins edited: 0; also: {})
2026-10-23 09:23:50 +02:00
Maciej Lisiewski
f62a01d293 chore(deps): bump python-dotenv to 1.2.4
python-dotenv: 1.2.2 -> 1.2.4 (pins edited: 1; also: {})
2026-10-23 09:23:49 +02:00
Maciej Lisiewski
67e9933f4e chore(deps): bump pytest-asyncio to 1.4.0
pytest-asyncio: 1.3.0 -> 1.4.0 (pins edited: 1; also: {})
2026-10-23 09:23:48 +02:00
Maciej Lisiewski
335e0eb680 chore(deps): bump pydantic to 2.14.1
pydantic: 2.13.4 -> 2.14.1 (pins edited: 1; also: {pydantic-core 2.46.4->2.50.1})
2026-10-23 09:23:47 +02:00
Maciej Lisiewski
e2a379174a chore(deps): bump prompt-toolkit to 3.0.53
prompt-toolkit: 3.0.52 -> 3.0.53 (pins edited: 1; also: {})
2026-10-23 09:23:47 +02:00
Maciej Lisiewski
65a82c53f9 chore(deps): bump playwright to 1.64.0
playwright: 1.62.0 -> 1.64.0 (pins edited: 1; also: {})
2026-10-23 09:23:46 +02:00
Maciej Lisiewski
2a4603b920 chore(deps): bump pillow-heif to 1.8.1
pillow-heif: 1.6.0 -> 1.8.1 (pins edited: 0; also: {})
2026-10-23 09:23:45 +02:00
Maciej Lisiewski
7e0c575b44 chore(deps): bump parallel-web to 0.6.0
parallel-web: 0.4.2 -> 0.6.0 (pins edited: 1; also: {})
2026-10-23 09:23:44 +02:00
Maciej Lisiewski
8309f37f33 chore(deps): bump packaging to 26.3
packaging: 26.0 -> 26.3 (pins edited: 2; also: {})
2026-10-23 09:23:43 +02:00
Maciej Lisiewski
b3f77e1ddd chore(deps): bump numpy to 2.5.4
numpy: 2.4.3 -> 2.5.4 (pins edited: 3; also: {})
2026-10-23 09:23:42 +02:00
Maciej Lisiewski
59821bdc3b chore(deps): bump nemo-relay to 0.10.3
nemo-relay: 0.10.0 -> 0.10.3 (pins edited: 0; also: {})
2026-10-23 09:23:41 +02:00
Maciej Lisiewski
e322dde361 chore(deps): bump modal to 1.6.2
modal: 1.5.5 -> 1.6.2 (pins edited: 1; also: {})
2026-10-23 09:23:40 +02:00
Maciej Lisiewski
481796aa6a chore(deps): bump microsoft-teams-apps to 2.1.1
microsoft-teams-apps: 2.0.13.4 -> 2.1.1 (pins edited: 1; also: {microsoft-teams-api 2.0.16->2.1.1})
2026-10-23 09:23:39 +02:00
Maciej Lisiewski
fe279881f8 chore(deps): bump markdown to 3.11.2
markdown: 3.10.2 -> 3.11.2 (pins edited: 1; also: {})
2026-10-23 09:23:38 +02:00
Maciej Lisiewski
c2083e626a chore(deps): bump lark-oapi to 1.7.5
lark-oapi: 1.6.8 -> 1.7.5 (pins edited: 1; also: {})
2026-10-23 09:23:37 +02:00
Maciej Lisiewski
161e7d2121 chore(deps): bump huggingface-hub to 1.33.0
huggingface-hub: 1.24.0 -> 1.33.0 (pins edited: 1; also: {})
2026-10-23 09:23:36 +02:00
Maciej Lisiewski
0cd517aa68 chore(deps): bump httpx2 to 2.15.1
httpx2: 2.12.0 -> 2.15.1 (pins edited: 3; also: {httpcore2 2.12.0->2.15.1})
2026-10-23 09:23:35 +02:00
Maciej Lisiewski
4b5479596f chore(deps): bump google-cloud-pubsub to 2.43.0
google-cloud-pubsub: 2.39.2 -> 2.43.0 (pins edited: 1; also: {})
2026-10-23 09:23:34 +02:00
Maciej Lisiewski
154748800b chore(deps): bump google-auth-oauthlib to 1.5.0
google-auth-oauthlib: 1.3.1 -> 1.5.0 (pins edited: 1; also: {})
2026-10-23 09:23:34 +02:00
Maciej Lisiewski
77da0e47a1 chore(deps): bump google-auth-httplib2 to 0.4.4
google-auth-httplib2: 0.3.1 -> 0.4.4 (pins edited: 1; also: {})
2026-10-23 09:23:33 +02:00
Maciej Lisiewski
9200e9202b chore(deps): bump google-auth to 2.62.0
google-auth: 2.55.1 -> 2.62.0 (pins edited: 2; also: {})
2026-10-23 09:23:32 +02:00
Maciej Lisiewski
5bc07faa3c chore(deps): bump google-api-python-client to 2.201.0
google-api-python-client: 2.194.0 -> 2.201.0 (pins edited: 1; also: {})
2026-10-23 09:23:31 +02:00
Maciej Lisiewski
f1fff8a28d chore(deps): bump firecrawl-py to 4.53.2
firecrawl-py: 4.17.0 -> 4.53.2 (pins edited: 1; also: {})
2026-10-23 09:23:30 +02:00
Maciej Lisiewski
fd665c15ba chore(deps): bump fal-client to 0.14.1
fal-client: 0.13.1 -> 0.14.1 (pins edited: 1; also: {})
2026-10-23 09:23:29 +02:00
Maciej Lisiewski
99ba67b76e chore(deps): bump exa-py to 2.26.0
exa-py: 2.10.2 -> 2.26.0 (pins edited: 1; also: {})
2026-10-23 09:23:28 +02:00
Maciej Lisiewski
ee0755a57c chore(deps): bump distlib to 0.4.4
distlib: 0.4.3 -> 0.4.4 (pins edited: 1; also: {})
2026-10-23 09:23:26 +02:00
Maciej Lisiewski
2e65467c3c chore(deps): bump debugpy to 1.8.22
debugpy: 1.8.20 -> 1.8.22 (pins edited: 1; also: {})
2026-10-23 09:23:25 +02:00
Maciej Lisiewski
f76c9d786f chore(deps): bump daytona to 0.210.0
daytona: 0.155.0 -> 0.210.0 (pins edited: 1; also: {marshmallow 4.3.1->None, daytona-api-client-async 0.155.0->0.210.0, daytona-api-client 0.155.0->0.210.0, daytona-toolbox-api-client-async 0.155.0->0.210.0, daytona-toolbox-api-client 0.155.0->0.210.0, environs 14.6.0->None})
2026-10-23 09:23:24 +02:00
Maciej Lisiewski
06f9f23585 chore(deps): bump cryptography to 50.0.2
cryptography: 50.0.1 -> 50.0.2 (pins edited: 2; also: {})
2026-10-23 09:23:23 +02:00