docs: update README with GitHub+Gitea links, simplify install-sl.ps1
This commit is contained in:
1 parent
42c9810681
commit
587aebe8b9
2 files changed
+25
-32
No files matched your search
+15
-27
@@ -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
|
||||
Write-Host "Done! Restart Hermes, type /sl" -ForegroundColor Green
|
||||
Reference in new issue
Block a user