Enhance API with OIDC support, including login and callback endpoints. Update environment variables for OIDC configuration in .env.example. Add new features to the catalog service for listing software families, Minecraft versions, and deployment regions. Implement server management actions such as kill, delete, and update in the servers module. Integrate feature flags for maintenance mode in server operations. Update pnpm-lock.yaml with new dependencies and versions.
Some checks failed
CI / Node — lint, typecheck, test, build (push) Failing after 12s
CI / Go — node-agent tests (push) Failing after 9s
CI / Go — edge-gateway build (push) Successful in 17s

This commit is contained in:
TheOnlyMace
2026-07-05 18:39:53 +02:00
parent bf36cb3159
commit 50cd4b3ffd
225 changed files with 17824 additions and 436 deletions

View File

@@ -38,6 +38,9 @@ const (
TypeServerFilesList MessageType = "server.files.list"
TypeServerFilesRead MessageType = "server.files.read"
TypeServerFilesWrite MessageType = "server.files.write"
TypeServerFilesDelete MessageType = "server.files.delete"
TypeServerFilesArchive MessageType = "server.files.archive"
TypeServerFilesUnarchive MessageType = "server.files.unarchive"
TypeServerFilesUploadDone MessageType = "server.files.upload.complete"
TypeServerWorldValidate MessageType = "server.world.validate"
TypeServerWorldArchive MessageType = "server.world.archive"
@@ -76,6 +79,9 @@ var controlToAgentTypes = map[MessageType]struct{}{
TypeServerFilesList: {},
TypeServerFilesRead: {},
TypeServerFilesWrite: {},
TypeServerFilesDelete: {},
TypeServerFilesArchive: {},
TypeServerFilesUnarchive: {},
TypeServerFilesUploadDone: {},
TypeServerWorldValidate: {},
TypeServerWorldArchive: {},
@@ -185,9 +191,30 @@ type ServerFilesReadPayload struct {
// ServerFilesWritePayload writes content to a file in the server data directory.
type ServerFilesWritePayload struct {
OperationMeta
Path string `json:"path"`
Content string `json:"content"`
Create bool `json:"create"`
Path string `json:"path"`
Content string `json:"content"`
Create bool `json:"create"`
Encoding string `json:"encoding,omitempty"`
}
// ServerFilesDeletePayload deletes a file or directory relative to data root.
type ServerFilesDeletePayload struct {
OperationMeta
Path string `json:"path"`
}
// ServerFilesArchivePayload creates a tar.gz archive from paths.
type ServerFilesArchivePayload struct {
OperationMeta
Paths []string `json:"paths"`
ArchiveName string `json:"archiveName,omitempty"`
}
// ServerFilesUnarchivePayload extracts a tar.gz archive.
type ServerFilesUnarchivePayload struct {
OperationMeta
ArchivePath string `json:"archivePath"`
DestinationPath string `json:"destinationPath"`
}
// ServerWorldValidatePayload validates a Minecraft world directory.