16 Commits

Author SHA1 Message Date
0967bab53d rename: FAMILY_CONVENTIONS → HERMES_AGENT_CONVENTIONS
[小糯]
2026-04-23 18:41:18 +08:00
559913466a refactor(personality): CONVENTIONS 改从 cfg 读取,不再依赖本地文件
- loadConventions() 从 cfg get FAMILY_CONVENTIONS 读取(shared scope)
- 改一处即所有 agent 即时可用,无需 git pull + sync
- 移除 CONVENTIONS_PATH 文件依赖

[小糯]
2026-04-23 18:37:30 +08:00
c5559b134d feat(personality): switch 时自动更新 SOUL.md,append CONVENTIONS.md
切换人格时同时写 SOUL.md = personality prompt + ~/.hermes/CONVENTIONS.md。
清除人格时 SOUL.md 只保留 conventions 内容。
CONVENTIONS.md 由 skills repo sync.sh 维护,集中管理家族共识。

[小糯]
2026-04-23 18:29:38 +08:00
69d9c69358 fix: correct package name to @shazhou/hermes-harness — 小糯 2026-04-21 11:35:17 +08:00
96156cef27 chore: bump version to 0.1.1 — 小糯 2026-04-21 11:34:20 +08:00
5b2d33411e Merge pull request 'fix: auxiliary switch reads provider from cfg registry' (#3) from fix/models-review-feedback into main 2026-04-21 03:32:52 +00:00
8074e4cfc3 fix: auxiliary switch reads provider from cfg registry
Auxiliary model switching now looks up provider details from cfg
registry (base_url, api_key) and adds custom: prefix automatically,
matching the behavior of main provider switching.

— 小糯
2026-04-21 11:27:12 +08:00
d736d43f72 feat: read providers from cfg registry instead of config.yaml
- providers/list/test now read from cfg (HERMES_CUSTOM_PROVIDERS)
- switch writes target provider into config.yaml custom_providers and restarts gateway
- standard providers (openrouter, anthropic) clear custom_providers on switch
- fallback to config.yaml if cfg unavailable

Signed-off-by: Xiaonuo <xiaonuo@shazhou.work>
2026-04-21 11:07:31 +08:00
f1c65b2c1b Merge pull request 'fix: models review feedback' (#2) from fix/models-review-feedback into main 2026-04-21 02:50:37 +00:00
a11bb53539 fix: address review feedback from PR #1
1. switch 后提示重启 gateway 以生效
2. auxiliary tasks 从 config.yaml 动态读取,不再硬编码
3. Telegram 删消息加 3s delay,确保 hermes 先处理
4. api_key_env 已在前一个 commit 修复

Ref: PR #1 review by tuanzi
Signed-off-by: Xiaonuo <xiaonuo@shazhou.work>
2026-04-21 10:50:18 +08:00
b6ee3e071f Merge pull request 'feat: models command' (#1) from feat/models-command into main 2026-04-21 02:42:02 +00:00
d78116ed26 fix: read api_key_env from .env file for provider auth
Supports api_key_env field in custom_providers config, reads
from process.env first then falls back to ~/.hermes/.env.

Signed-off-by: Xiaonuo <xiaonuo@shazhou.work>
2026-04-21 10:22:55 +08:00
f195e6a8aa feat: models command — providers/list/test/status/switch with --aux and --tg support
- models providers: list configured custom providers
- models list [provider]: fetch and display available models from /v1/models
- models test [provider]: connectivity check with latency
- models status: show current main + auxiliary model config
- models switch: change provider/model for main or auxiliary tasks
  - --aux <task>: target specific auxiliary tasks (repeatable)
  - --tg: switch via Telegram /model command (current session)
  - --global: persistent switch (with --tg)

Signed-off-by: Xiaonuo <xiaonuo@shazhou.work>
2026-04-21 10:09:47 +08:00
8f4b1126da fix: delete /personality message after sending to reduce chat clutter 2026-04-20 01:31:42 +00:00
27f9849507 feat: personality subcommand — list/show/add/remove/switch
CRUD for Hermes personality presets in ~/.hermes/config.yaml.
Supports --tg flag to switch via Telegram Bot API for live session updates.

Usage:
  hermes-har personality list
  hermes-har personality show <name>
  hermes-har personality add <name> <prompt>
  hermes-har personality remove <name>
  hermes-har personality switch <name> [--tg]
2026-04-20 00:10:28 +00:00
27e7d908ed Initial commit 2026-04-20 00:08:34 +00:00