Implement milestone M2 of the minimal MCP plan: the tools that answer from the server's own state instead of opening a device channel. - Extract the audit-log scanner from web into package auditquery so the admin page and get_audit_log share one implementation. The web handler keeps its 500-row cap, the MCP tool uses the protocol's 1000-row cap. Query gains json tags for the web snake_case wire format (device_id, warn_only) and reports TotalAll before filters. - Add package buildinfo and inject Version/Commit with -X from build.ps1 and the Makefile; go-winres refreshes Windows resources from the git tag when available. An unversioned build reports "", and only initialize substitutes "dev". - list_hosts: online/offline pools, include_offline merge, every documented filter, limit/offset paging with total/totalAll/hasMore, and schema-named host fields (authStatus/tls/remark are never fabricated). - get_host_detail: single id or a batch of up to 50, online lookup then the last history record, capabilities from protocol.SupportsCap plus the Windows/registry/virtual-desktop rules; v2 is not listed. - get_server_status: version, uptime, online/offline counts, port and bind. sessions stays absent until the MCP session table lands in M3. - get_audit_log: case-insensitive event substring, keyword, paging; hasMore turns false at the MaxOffset clamp so paging cannot loop. Wire hub, history, audit path and listen address through mcp.Config from cmd/main.go. Tests cover pools/filters/paging, capability bits, batch failures, audit paging and the unversioned build. Co-Authored-By: deepseek-flash
107 lines
1.5 KiB
Plaintext
107 lines
1.5 KiB
Plaintext
# Prerequisites
|
|
*.d
|
|
.svn
|
|
Debug
|
|
Release
|
|
|
|
# Compiled Object files
|
|
*.slo
|
|
*.lo
|
|
*.o
|
|
*.obj
|
|
|
|
# Precompiled Headers
|
|
*.gch
|
|
*.pch
|
|
|
|
# Compiled Dynamic libraries
|
|
*.so
|
|
*.dylib
|
|
*.dll
|
|
|
|
# Fortran module files
|
|
*.mod
|
|
*.smod
|
|
|
|
# Compiled Static libraries
|
|
*.lai
|
|
*.la
|
|
*.a
|
|
|
|
# Executables
|
|
*.exe
|
|
*.out
|
|
*.app
|
|
|
|
# =========================
|
|
# Operating System Files
|
|
# =========================
|
|
|
|
# Windows
|
|
# =========================
|
|
|
|
# Windows thumbnail cache files
|
|
Thumbs.db
|
|
ehthumbs.db
|
|
ehthumbs_vista.db
|
|
|
|
# Folder config file
|
|
Desktop.ini
|
|
|
|
# Recycle Bin used on file shares
|
|
$RECYCLE.BIN/
|
|
|
|
# Windows Installer files
|
|
*.cab
|
|
*.msi
|
|
*.msm
|
|
*.msp
|
|
|
|
# Windows shortcuts
|
|
*.lnk
|
|
*.sdf
|
|
server/2015Remote/2015Remote.aps
|
|
*.ipch
|
|
*.aps
|
|
*.suo
|
|
server/2015Remote.VC.db
|
|
server/2015Remote.opensdf
|
|
*.7z
|
|
*.ini
|
|
test/build/
|
|
|
|
# Security-sensitive design documents
|
|
docs/MultiLayerLicense_Design.md
|
|
docs/MultiLayerLicense_Implementation.md
|
|
docs/_CodeReference.md
|
|
linux/CMakeFiles/*
|
|
Releases/*
|
|
*.log
|
|
*.txt
|
|
linux/Makefile
|
|
linux/cmake_install.cmake
|
|
.vs
|
|
client/ghost_vs2015.vcxproj.user
|
|
docs/macOS_Support_Design.md
|
|
settings.local.json
|
|
*.zip
|
|
*.lic
|
|
YAMA.code-workspace
|
|
.claude/settings.json
|
|
.vscode/settings.json
|
|
Bin/*
|
|
nul
|
|
server/go/web/assets/index.html
|
|
server/go/users.json
|
|
server/go/devices.json
|
|
server/go/build/
|
|
server/go/cmd/*.syso
|
|
server/go/.claude/settings.json
|
|
android/app/.cxx/
|
|
|
|
# MCP 工具清单的中间产物(dump_tools.py 的默认输出)
|
|
tools_raw.json
|
|
|
|
# AI 助手的本地工作记忆(含个人上下文,与 .claude/settings.json 同理)
|
|
.workbuddy-ai/
|