docs: update README with GitHub+Gitea links, simplify install-sl.ps1
This commit is contained in:
15
README.md
15
README.md
@@ -11,14 +11,14 @@ Custom slash command for [Hermes Agent](https://github.com/NousResearch/hermes-a
|
||||
|
||||
## Install
|
||||
|
||||
**Linux/macOS:**
|
||||
From **GitHub**:
|
||||
```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):**
|
||||
```powershell
|
||||
PowerShell -ExecutionPolicy Bypass -Command "irm https://git.softmediadesign.com/git_alhan/hermes-plugin-session-list/raw/branch/master/install-sl.ps1 | iex"
|
||||
From **Gitea** (self-hosted):
|
||||
```bash
|
||||
hermes plugins install https://git.softmediadesign.com/git_alhan/hermes-plugin-session-list.git --enable
|
||||
```
|
||||
|
||||
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`
|
||||
|
||||
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
|
||||
|
||||
@@ -1,38 +1,33 @@
|
||||
# install-sl.ps1 — Hermes /sl plugin installer (Windows)
|
||||
#
|
||||
# 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
|
||||
# install-sl.ps1 — Hermes /sl plugin installer
|
||||
# Run: PowerShell -ExecutionPolicy Bypass -File install-sl.ps1
|
||||
|
||||
Write-Host "=== Hermes /sl Plugin Installer ===" -ForegroundColor Cyan
|
||||
Write-Host ""
|
||||
|
||||
# Install plugin from Gitea repo
|
||||
Write-Host "Installing session-list plugin..."
|
||||
$result = hermes plugins install "https://git.softmediadesign.com/git_alhan/hermes-plugin-session-list.git" --enable 2>&1
|
||||
# Install from Gitea repo
|
||||
Write-Host "Installing from Gitea..."
|
||||
hermes plugins install https://git.softmediadesign.com/git_alhan/hermes-plugin-session-list.git --enable
|
||||
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
Write-Host "[FAIL] Plugin install failed:" -ForegroundColor Red
|
||||
Write-Host $result
|
||||
Write-Host "Gitea failed, trying GitHub..."
|
||||
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
|
||||
}
|
||||
Write-Host "[OK] Plugin installed" -ForegroundColor Green
|
||||
|
||||
# Copy default config if not exists
|
||||
# Default config
|
||||
$ConfigFile = "$env:USERPROFILE\.hermes\session_list_config.yaml"
|
||||
if (-not (Test-Path $ConfigFile)) {
|
||||
Write-Host "Creating default config..."
|
||||
@'
|
||||
# Hermes Session List — Column Configuration
|
||||
# Edit this file to customize /sl output.
|
||||
#
|
||||
# Available fields: #, id, source, model, title, started_at, ended_at,
|
||||
# Available: #, 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
|
||||
# width: 0 = free-form (only for the last column)
|
||||
|
||||
columns:
|
||||
- {field: "#", width: 3, label: "#"}
|
||||
@@ -45,15 +40,8 @@ columns:
|
||||
- {field: source, width: 4, label: Src}
|
||||
- {field: last_active, width: 11, label: Active}
|
||||
'@ | Out-File -FilePath $ConfigFile -Encoding utf8
|
||||
Write-Host "[OK] Created $ConfigFile" -ForegroundColor Green
|
||||
} else {
|
||||
Write-Host "[SKIP] Config already exists: $ConfigFile" -ForegroundColor Yellow
|
||||
Write-Host "[OK] Config created" -ForegroundColor Green
|
||||
}
|
||||
|
||||
Write-Host ""
|
||||
Write-Host "==================================" -ForegroundColor Cyan
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user