清理仓库:移除构建产物/工具状态等无关文件,保留.idea共享IDE配置

- .gitignore 排除 .vscode .claude .omc target/ forensics/ .DS_Store 等
- .idea/ 目录保留在版本控制中(共享IDE配置)
- 从版本控制中移除约440个无关文件
This commit is contained in:
Peijun Zhao
2026-05-12 23:50:14 +08:00
parent d12a545860
commit 69c9f64dbf
447 changed files with 28 additions and 1395 deletions
-22
View File
@@ -1,22 +0,0 @@
{
"permissions": {
"allow": [
"mcp__plugin_oh-my-claudecode_t__list_omc_skills",
"Bash(command -v ruby)",
"Bash(ruby --version)",
"Bash(echo \"Ruby detected: $\\(ruby --version)",
"Bash(node *)",
"Skill(claude-hud:setup)",
"Bash(command *)",
"Bash(omc --version)",
"Bash(echo \"INSTALLED: $\\(omc --version)",
"Bash(npm install *)",
"Bash(claude mcp *)",
"Bash(gh auth *)",
"Bash(gh release create v3.0 target/serverguard.jar --title 'Aluer ServerGuard v3.0' --notes ' *)"
]
},
"enabledPlugins": {
"superpowers@superpowers-marketplace": true
}
}
+28
View File
@@ -0,0 +1,28 @@
# IDE
.vscode/
*.iml
# .idea/ is intentionally tracked — shared IDE config
# Claude / OMC
.claude/
.omc/
# OS
.DS_Store
Thumbs.db
# Build
target/
*.class
# Logs
spring-shell.log
*.log
# Forensics output
forensics/
# Frontend node_modules
frontend/node_modules/
frontend/dist/
-378
View File
@@ -1,378 +0,0 @@
{
"version": "1.0.0",
"lastScanned": 1778389905908,
"projectRoot": "D:\\xwechat_files\\wxid_obftzwxnh68o12_1450\\msg\\file\\2026-03\\AluerIII\\AluerIII",
"techStack": {
"languages": [
{
"name": "Java",
"version": null,
"confidence": "high",
"markers": [
"pom.xml"
]
}
],
"frameworks": [],
"packageManager": "maven",
"runtime": null
},
"build": {
"buildCommand": null,
"testCommand": null,
"lintCommand": null,
"devCommand": null,
"scripts": {}
},
"conventions": {
"namingStyle": null,
"importStyle": null,
"testPattern": null,
"fileOrganization": null
},
"structure": {
"isMonorepo": false,
"workspaces": [],
"mainDirectories": [
"docs",
"src"
],
"gitBranches": null
},
"customNotes": [],
"directoryMap": {
"apache-maven-3.9.6": {
"path": "apache-maven-3.9.6",
"purpose": null,
"fileCount": 3,
"lastAccessed": 1778389905542,
"keyFiles": [
"LICENSE",
"NOTICE",
"README.txt"
]
},
"docs": {
"path": "docs",
"purpose": "Documentation",
"fileCount": 2,
"lastAccessed": 1778389905543,
"keyFiles": [
"PROJECT_SUMMARY.md",
"USER_MANUAL.md"
]
},
"frontend": {
"path": "frontend",
"purpose": null,
"fileCount": 4,
"lastAccessed": 1778389905584,
"keyFiles": [
"index.html",
"package-lock.json",
"package.json",
"vite.config.js"
]
},
"src": {
"path": "src",
"purpose": "Source code",
"fileCount": 0,
"lastAccessed": 1778389905617,
"keyFiles": []
},
"systemd": {
"path": "systemd",
"purpose": null,
"fileCount": 3,
"lastAccessed": 1778389905672,
"keyFiles": [
"minecraft.service",
"serverguard.service",
"sudoers.serverguard"
]
},
"target": {
"path": "target",
"purpose": null,
"fileCount": 2,
"lastAccessed": 1778389905774,
"keyFiles": [
"serverguard.jar",
"serverguard.jar.original"
]
},
"apache-maven-3.9.6\\bin": {
"path": "apache-maven-3.9.6\\bin",
"purpose": "Executable scripts",
"fileCount": 6,
"lastAccessed": 1778389905810,
"keyFiles": [
"m2.conf",
"mvn",
"mvn.cmd"
]
},
"apache-maven-3.9.6\\lib": {
"path": "apache-maven-3.9.6\\lib",
"purpose": "Library code",
"fileCount": 69,
"lastAccessed": 1778389905837,
"keyFiles": [
"aopalliance-1.0.jar",
"aopalliance.license",
"commons-cli-1.5.0.jar"
]
},
"frontend\\node_modules": {
"path": "frontend\\node_modules",
"purpose": "Dependencies",
"fileCount": 1,
"lastAccessed": 1778389905859,
"keyFiles": []
},
"frontend\\src": {
"path": "frontend\\src",
"purpose": "Source code",
"fileCount": 3,
"lastAccessed": 1778389905864,
"keyFiles": [
"App.jsx",
"main.jsx",
"styles.css"
]
},
"src\\test": {
"path": "src\\test",
"purpose": "Test files",
"fileCount": 0,
"lastAccessed": 1778389905865,
"keyFiles": []
}
},
"hotPaths": [
{
"path": "README.md",
"accessCount": 38,
"lastAccessed": 1778403725024,
"type": "file"
},
{
"path": "src\\main\\java\\com\\aluer\\service\\ServerGuardService.java",
"accessCount": 8,
"lastAccessed": 1778399401322,
"type": "file"
},
{
"path": "src\\main\\java\\com\\aluer\\web\\DashboardController.java",
"accessCount": 4,
"lastAccessed": 1778399547099,
"type": "file"
},
{
"path": "docs\\USER_MANUAL.md",
"accessCount": 4,
"lastAccessed": 1778401219639,
"type": "file"
},
{
"path": "src\\main\\resources\\application.yml",
"accessCount": 3,
"lastAccessed": 1778399573979,
"type": "file"
},
{
"path": "docs\\PROJECT_SUMMARY.md",
"accessCount": 3,
"lastAccessed": 1778400732599,
"type": "file"
},
{
"path": "pom.xml",
"accessCount": 2,
"lastAccessed": 1778398246314,
"type": "file"
},
{
"path": "src\\main\\java\\com\\aluer\\notification\\AttackReportService.java",
"accessCount": 2,
"lastAccessed": 1778399407185,
"type": "file"
},
{
"path": "frontend\\src\\App.jsx",
"accessCount": 2,
"lastAccessed": 1778399936325,
"type": "file"
},
{
"path": "frontend\\src\\styles.css",
"accessCount": 2,
"lastAccessed": 1778400093962,
"type": "file"
},
{
"path": "src\\main\\java\\com\\aluer\\ServerGuardApplication.java",
"accessCount": 2,
"lastAccessed": 1778400191190,
"type": "file"
},
{
"path": "C:\\Users\\Admin\\.claude\\plugins\\cache\\omc\\oh-my-claudecode\\4.13.7\\skills",
"accessCount": 1,
"lastAccessed": 1778390070712,
"type": "directory"
},
{
"path": "C:\\Users\\Admin\\.claude\\plugins\\cache\\omc\\oh-my-claudecode\\4.13.7\\skills\\setup\\SKILL.md",
"accessCount": 1,
"lastAccessed": 1778390083843,
"type": "file"
},
{
"path": "C:\\Users\\Admin\\.claude\\plugins\\cache\\omc\\oh-my-claudecode\\4.13.7\\skills\\omc-setup\\SKILL.md",
"accessCount": 1,
"lastAccessed": 1778390084019,
"type": "file"
},
{
"path": "C:\\Users\\Admin\\.claude\\plugins\\cache\\omc\\oh-my-claudecode\\4.13.7\\skills\\omc-setup\\phases\\01-install-claude-md.md",
"accessCount": 1,
"lastAccessed": 1778390280585,
"type": "file"
},
{
"path": "C:\\Users\\Admin\\.claude\\plugins\\cache\\omc\\oh-my-claudecode\\4.13.7\\skills\\omc-setup\\phases\\02-configure.md",
"accessCount": 1,
"lastAccessed": 1778390424477,
"type": "file"
},
{
"path": "C:\\Users\\Admin\\.claude\\plugins\\cache\\omc\\oh-my-claudecode\\4.13.7\\skills\\omc-setup\\phases\\03-integrations.md",
"accessCount": 1,
"lastAccessed": 1778391032325,
"type": "file"
},
{
"path": "C:\\Users\\Admin\\.claude\\plugins\\cache\\omc\\oh-my-claudecode\\4.13.7\\skills\\mcp-setup\\SKILL.md",
"accessCount": 1,
"lastAccessed": 1778391146488,
"type": "file"
},
{
"path": "C:\\Users\\Admin\\.claude\\plugins\\cache\\omc\\oh-my-claudecode\\4.13.7\\skills\\omc-setup\\phases\\04-welcome.md",
"accessCount": 1,
"lastAccessed": 1778391422821,
"type": "file"
},
{
"path": "LICENSE",
"accessCount": 1,
"lastAccessed": 1778391986701,
"type": "file"
},
{
"path": "frontend\\package.json",
"accessCount": 1,
"lastAccessed": 1778397740005,
"type": "file"
},
{
"path": "src\\main\\java\\com\\aluer\\ai\\AluerSovereignEngine.java",
"accessCount": 1,
"lastAccessed": 1778397767515,
"type": "file"
},
{
"path": "src\\main\\java\\com\\aluer\\config\\ServerGuardConfig.java",
"accessCount": 1,
"lastAccessed": 1778397767607,
"type": "file"
},
{
"path": "src\\main\\java\\com\\aluer\\kernel\\AluerKernelEngine.java",
"accessCount": 1,
"lastAccessed": 1778397767770,
"type": "file"
},
{
"path": "frontend\\vite.config.js",
"accessCount": 1,
"lastAccessed": 1778397767867,
"type": "file"
},
{
"path": "src\\main\\java\\com\\aluer\\service\\RconClient.java",
"accessCount": 1,
"lastAccessed": 1778397793366,
"type": "file"
},
{
"path": "src\\main\\java\\com\\aluer\\ai\\DeepSeekClient.java",
"accessCount": 1,
"lastAccessed": 1778397793582,
"type": "file"
},
{
"path": "frontend\\src\\main.jsx",
"accessCount": 1,
"lastAccessed": 1778397793909,
"type": "file"
},
{
"path": "src\\test\\java\\com\\aluer\\kernel\\AluerKernelEngineTest.java",
"accessCount": 1,
"lastAccessed": 1778397794050,
"type": "file"
},
{
"path": "src\\main\\java\\com\\aluer\\security\\NetworkThreatFusionService.java",
"accessCount": 1,
"lastAccessed": 1778397794216,
"type": "file"
},
{
"path": "src\\main\\java\\com\\aluer\\web\\HealthService.java",
"accessCount": 1,
"lastAccessed": 1778399317763,
"type": "file"
},
{
"path": "src\\main\\java\\com\\aluer\\web\\RequestLoggingFilter.java",
"accessCount": 1,
"lastAccessed": 1778399319971,
"type": "file"
},
{
"path": "src\\main\\java\\com\\aluer\\config\\CorsConfig.java",
"accessCount": 1,
"lastAccessed": 1778399321707,
"type": "file"
},
{
"path": "src\\main\\java\\com\\aluer\\notification\\WebhookService.java",
"accessCount": 1,
"lastAccessed": 1778399323386,
"type": "file"
},
{
"path": "src\\main\\resources\\banner.txt",
"accessCount": 1,
"lastAccessed": 1778400185516,
"type": "file"
},
{
"path": "",
"accessCount": 1,
"lastAccessed": 1778401199882,
"type": "directory"
},
{
"path": "README_EN.md",
"accessCount": 1,
"lastAccessed": 1778401892952,
"type": "file"
}
],
"userDirectives": []
}
@@ -1,8 +0,0 @@
{
"session_id": "2fc39faa-a3c0-440d-adef-146554bd72e4",
"ended_at": "2026-05-10T05:43:35.905Z",
"reason": "prompt_input_exit",
"agents_spawned": 0,
"agents_completed": 0,
"modes_used": []
}
@@ -1,8 +0,0 @@
{
"session_id": "373a32a2-1b99-4952-a1e5-a7483e0c9a59",
"ended_at": "2026-05-10T09:07:35.206Z",
"reason": "prompt_input_exit",
"agents_spawned": 0,
"agents_completed": 0,
"modes_used": []
}
@@ -1,8 +0,0 @@
{
"session_id": "6b0ec4b6-10f9-4f3e-aaf2-8fcc50a5d7a3",
"ended_at": "2026-05-10T07:20:08.530Z",
"reason": "prompt_input_exit",
"agents_spawned": 0,
"agents_completed": 0,
"modes_used": []
}
@@ -1,8 +0,0 @@
{
"session_id": "cf6d23d4-a08e-4441-b024-b8686b493f48",
"ended_at": "2026-05-10T05:41:22.075Z",
"reason": "prompt_input_exit",
"agents_spawned": 0,
"agents_completed": 0,
"modes_used": []
}
@@ -1,6 +0,0 @@
{
"session_id": "d7363e03-68a1-4c8b-9011-1158def6c8f6",
"started_at": "2026-05-10T05:43:44.590Z",
"cwd": "D:\\xwechat_files\\wxid_obftzwxnh68o12_1450\\msg\\file\\2026-03\\AluerIII\\AluerIII",
"pid": 31968
}
-5
View File
@@ -1,5 +0,0 @@
{
"lastCompletedStep": 6,
"timestamp": "2026-05-10T13:36:05+08:00",
"configType": "global"
}
-3
View File
@@ -1,3 +0,0 @@
{
"java.configuration.updateBuildConfiguration": "interactive"
}
View File
-192
View File
@@ -1,192 +0,0 @@
serverguard:
minecraft:
service-name: minecraft
process-name: paper-1.21.11.jar
jar-file: paper-1.21.11.jar
working-dir: /opt/minecraft
java-opts: -Xms4G -Xmx4G
check-interval-seconds: 5
rcon:
enabled: true
host: localhost
port: 25575
password: ${RCON_PASSWORD:}
monitor:
tps-threshold: 15
cpu-threshold: 80.0
memory-threshold: 85.0
connection-threshold: 50
log-watch-lines: 100
log-path: /opt/minecraft/logs/latest.log
alert:
enabled: true
email:
smtp-host: smtp.qq.com
smtp-port: 587
username: ${ALUER_ALERT_SMTP_USERNAME:}
password: ${ALUER_ALERT_SMTP_PASSWORD:}
to:
- ${ALUER_ALERT_EMAIL_PRIMARY:}
- ${ALUER_ALERT_EMAIL_SECONDARY:}
rate-limit:
per-type-seconds: 300
max-emails-per-minute: 10
ai:
enabled: true
use-isolation-forest: true
use-prediction: true
sliding-window-size: 100
anomaly-threshold: 0.7
prediction-horizon-minutes: 60
deepseek:
enabled: true
api-key: ${DEEPSEEK_API_KEY:}
base-url: ${DEEPSEEK_BASE_URL:https://api.deepseek.com}
model: ${DEEPSEEK_MODEL:deepseek-chat}
max-tokens: 1000
temperature: 0.35
auto-analyze-alerts: true
analysis-interval-seconds: 45
auto-execute:
enabled: true
ban-ip: true
kill-entity: true
clear-lag: true
set-spawn-rate: true
kick-player: true
whitelist: true
min-confidence: 88
security:
enabled: true
auto-ban-vpn: true
check-on-login: true
max-connections-per-ip: 3
block-common-exploits: true
log-all-commands: true
anti-intrusion:
enabled: true
monitor-commands: true
monitor-processes: true
monitor-files: true
monitor-plugins: true
monitor-systemd: true
monitor-rcon: true
file-integrity:
enabled: true
max-depth: 5
host-enforcement:
enabled: true
dry-run: true
preferred-backend: auto
default-block-minutes: 60
default-rate-limit-per-minute: 120
mirror-to-cloud-edge: true
cloud-edge:
enabled: false
dry-run: true
provider: cloudflare
zone-id: ${ALUER_CLOUDFLARE_ZONE_ID:}
api-key: ${ALUER_CLOUDFLARE_API_KEY:}
api-email: ${ALUER_CLOUDFLARE_EMAIL:}
default-block-mode: block
default-challenge-mode: challenge
enable-under-attack-on-critical: true
orchestration:
enabled: true
allow-local-block: true
allow-edge-challenge: true
allow-minecraft-defense: true
notify-on-critical: true
autonomy:
enabled: true
deepseek-dominant: true
quiet-console: true
loop-interval-seconds: 45
min-risk-score-for-action: 70
critical-risk-score: 90
workflow-cooldown-seconds: 180
max-actions-per-hour: 12
require-second-signal-for-containment: true
shield:
enabled: true
auto-mode: true
auto-enable-under-attack: true
heat-trigger: 78
resonance-trigger: 72
threat-score-trigger: 85
edge-challenge-offender-limit: 6
shelter-rate-limit-per-minute: 45
attacker-notice-enabled: true
deterrence-message: Your source has been identified, recorded, and isolated by Aluer.
kernel:
enabled: true
pulse-interval-seconds: 30
pulse-history-size: 180
journal-size: 300
echo-retention-minutes: 180
adaptive-weights: true
directive-heat-threshold: 60
lockdown-heat-threshold: 82
task-bus:
enabled: true
auto-dispatch: true
dispatch-interval-seconds: 10
queue-limit: 200
history-limit: 300
self-healing:
enabled: true
dry-run: true
loop-interval-seconds: 45
auto-backup-before-recovery: true
auto-whitelist-on-swarm: true
allow-soft-restart: true
tps-emergency-threshold: 12
cpu-emergency-threshold: 92.0
memory-emergency-threshold: 95.0
max-recovery-actions-per-hour: 8
dashboard:
enabled: true
title: Aluer Nebula Console
subtitle: PaperMC defense, recovery, and remote operations fabric
refresh-interval-seconds: 6
compact-terminal: true
ssh-gateway:
enabled: true
session-timeout-minutes: 30
max-sessions: 6
command-timeout-seconds: 25
strict-host-key-checking: false
allow-private-key-paste: true
require-engine-handshake: true
handshake-ttl-seconds: 30
webhook:
enabled: false
discord-url: ${ALUER_WEBHOOK_DISCORD:}
slack-url: ${ALUER_WEBHOOK_SLACK:}
report:
dir: ./reports
server:
port: 8080
spring:
shell:
interactive:
enabled: true
command:
init:
delay: 0
logging:
level:
root: INFO
com.aluer: INFO
file:
name: /var/log/serverguard.log
-18
View File
@@ -1,18 +0,0 @@
${AnsiColor.BRIGHT_CYAN} ╔════════════════════════════════════════════════════════════╗
║ ║
║ █████╗ ██╗ ██╗ ██╗███████╗██████╗ ║
║ ██╔══██╗██║ ██║ ██║██╔════╝██╔══██╗ ║
║ ███████║██║ ██║ ██║█████╗ ██████╔╝ ║
║ ██╔══██║██║ ██║ ██║██╔══╝ ██╔══██╗ ║
║ ██║ ██║███████╗╚██████╔╝███████╗██║ ██║ ║
║ ╚═╝ ╚═╝╚══════╝ ╚═════╝ ╚══════╝╚═╝ ╚═╝ ║
║ ║
║ ServerGuard v1.0.0 ║
║ AI-Powered Minecraft Server Protection ║
║ ║
╚════════════════════════════════════════════════════════════╝${AnsiStyle.NORMAL}
${AnsiColor.BRIGHT_GREEN}:: DeepSeek AI Powered ::${AnsiStyle.NORMAL} ${AnsiColor.BRIGHT_WHITE}Autonomous Defense Engine${AnsiStyle.NORMAL}
${AnsiColor.BRIGHT_GREEN}:: Multi-Layer Kernel ::${AnsiStyle.NORMAL} ${AnsiColor.BRIGHT_WHITE}Signal Fusion + Threat Mesh${AnsiStyle.NORMAL}
${AnsiColor.BRIGHT_GREEN}:: Mirage Shield ::${AnsiStyle.NORMAL} ${AnsiColor.BRIGHT_WHITE}4-Mode Adaptive Protection${AnsiStyle.NORMAL}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More