docs: update README with GitHub+Gitea links, simplify install-sl.ps1

This commit is contained in:
2026-06-12 18:59:28 +00:00
parent 42c9810681
commit 587aebe8b9
2 changed files with 25 additions and 32 deletions

View File

@@ -11,14 +11,14 @@ Custom slash command for [Hermes Agent](https://github.com/NousResearch/hermes-a
## Install ## Install
**Linux/macOS:** From **GitHub**:
```bash ```bash
hermes plugins install https://git.softmediadesign.com/git_alhan/hermes-plugin-session-list.git --enable hermes plugins install https://github.com/alhan/hermes-plugin-session-list.git --enable
``` ```
**Windows (one-liner):** From **Gitea** (self-hosted):
```powershell ```bash
PowerShell -ExecutionPolicy Bypass -Command "irm https://git.softmediadesign.com/git_alhan/hermes-plugin-session-list/raw/branch/master/install-sl.ps1 | iex" hermes plugins install https://git.softmediadesign.com/git_alhan/hermes-plugin-session-list.git --enable
``` ```
Then `/new` (or restart Hermes) to reload. Then `/new` (or restart Hermes) to reload.
@@ -50,3 +50,8 @@ columns:
Available fields: `#`, `id`, `source`, `model`, `title`, `started_at`, `ended_at`, `message_count`, `preview`, `last_active`, `input_tokens`, `output_tokens`, `total_tokens`, `net_input`, `net_total`, `cache_read_tokens`, `cache_write_tokens`, `reasoning_tokens` Available fields: `#`, `id`, `source`, `model`, `title`, `started_at`, `ended_at`, `message_count`, `preview`, `last_active`, `input_tokens`, `output_tokens`, `total_tokens`, `net_input`, `net_total`, `cache_read_tokens`, `cache_write_tokens`, `reasoning_tokens`
Set `width: 0` on the **last** column for free-form (no truncation). Set `width: 0` on the **last** column for free-form (no truncation).
## Repos
- GitHub: https://github.com/alhan/hermes-plugin-session-list
- Gitea: https://git.softmediadesign.com/git_alhan/hermes-plugin-session-list

View File

@@ -1,38 +1,33 @@
# install-sl.ps1 — Hermes /sl plugin installer (Windows) # install-sl.ps1 — Hermes /sl plugin installer
# # Run: PowerShell -ExecutionPolicy Bypass -File install-sl.ps1
# Single-command install:
# PowerShell -ExecutionPolicy Bypass -Command "irm https://git.softmediadesign.com/git_alhan/hermes-plugin-session-list/raw/branch/master/install-sl.ps1 | iex"
#
# Or manually:
# PowerShell -ExecutionPolicy Bypass -File install-sl.ps1
Write-Host "=== Hermes /sl Plugin Installer ===" -ForegroundColor Cyan Write-Host "=== Hermes /sl Plugin Installer ===" -ForegroundColor Cyan
Write-Host "" Write-Host ""
# Install plugin from Gitea repo # Install from Gitea repo
Write-Host "Installing session-list plugin..." Write-Host "Installing from Gitea..."
$result = hermes plugins install "https://git.softmediadesign.com/git_alhan/hermes-plugin-session-list.git" --enable 2>&1 hermes plugins install https://git.softmediadesign.com/git_alhan/hermes-plugin-session-list.git --enable
if ($LASTEXITCODE -ne 0) { if ($LASTEXITCODE -ne 0) {
Write-Host "[FAIL] Plugin install failed:" -ForegroundColor Red Write-Host "Gitea failed, trying GitHub..."
Write-Host $result hermes plugins install https://github.com/alhan/hermes-plugin-session-list.git --enable
}
if ($LASTEXITCODE -ne 0) {
Write-Host "[FAIL] Could not install plugin" -ForegroundColor Red
exit 1 exit 1
} }
Write-Host "[OK] Plugin installed" -ForegroundColor Green
# Copy default config if not exists # Default config
$ConfigFile = "$env:USERPROFILE\.hermes\session_list_config.yaml" $ConfigFile = "$env:USERPROFILE\.hermes\session_list_config.yaml"
if (-not (Test-Path $ConfigFile)) { if (-not (Test-Path $ConfigFile)) {
Write-Host "Creating default config..." Write-Host "Creating default config..."
@' @'
# Hermes Session List — Column Configuration # Hermes Session List — Column Configuration
# Edit this file to customize /sl output. # Available: #, id, source, model, title, started_at, ended_at,
#
# Available fields: #, id, source, model, title, started_at, ended_at,
# message_count, preview, last_active, input_tokens, output_tokens, # message_count, preview, last_active, input_tokens, output_tokens,
# total_tokens, net_input, net_total, cache_read_tokens, # total_tokens, net_input, net_total, cache_read_tokens,
# cache_write_tokens, reasoning_tokens # cache_write_tokens, reasoning_tokens
# width: 0 = free-form (only for the last column)
columns: columns:
- {field: "#", width: 3, label: "#"} - {field: "#", width: 3, label: "#"}
@@ -45,15 +40,8 @@ columns:
- {field: source, width: 4, label: Src} - {field: source, width: 4, label: Src}
- {field: last_active, width: 11, label: Active} - {field: last_active, width: 11, label: Active}
'@ | Out-File -FilePath $ConfigFile -Encoding utf8 '@ | Out-File -FilePath $ConfigFile -Encoding utf8
Write-Host "[OK] Created $ConfigFile" -ForegroundColor Green Write-Host "[OK] Config created" -ForegroundColor Green
} else {
Write-Host "[SKIP] Config already exists: $ConfigFile" -ForegroundColor Yellow
} }
Write-Host "" Write-Host ""
Write-Host "==================================" -ForegroundColor Cyan Write-Host "Done! Restart Hermes, type /sl" -ForegroundColor Green
Write-Host " Done! Restart Hermes, type /sl" -ForegroundColor Green
Write-Host "==================================" -ForegroundColor Cyan
Write-Host ""
Write-Host "Config: $ConfigFile" -ForegroundColor Yellow
Write-Host "Plugin: ~/.hermes/plugins/session-list/" -ForegroundColor Yellow