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

@@ -0,0 +1,57 @@
#!/usr/bin/env bash
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
PACKAGING="${ROOT}/packaging"
MANIFEST="${PACKAGING}/manifest.json"
DIST="${ROOT}/dist"
STAGING="${DIST}/staging"
VERSION="$(python3 -c "import json; print(json.load(open('${MANIFEST}'))['version'])")"
PACKAGE_NAME="hexagamecloud-whmcs-${VERSION}"
ZIP_PATH="${DIST}/${PACKAGE_NAME}.zip"
CHECKSUMS_PATH="${DIST}/checksums.txt"
rm -rf "${STAGING}" "${ZIP_PATH}"
mkdir -p "${STAGING}/modules/servers" "${STAGING}/modules/addons" "${STAGING}/hooks" "${STAGING}/lib" "${DIST}"
copy_tree() {
local source="$1"
local target="$2"
if command -v rsync >/dev/null 2>&1; then
rsync -a --exclude '.gitkeep' "${source}/" "${target}/"
else
cp -a "${source}/." "${target}/"
fi
}
copy_tree "${ROOT}/modules/servers/hexagamecloud" "${STAGING}/modules/servers/hexagamecloud"
copy_tree "${ROOT}/modules/addons/hexagamecloud" "${STAGING}/modules/addons/hexagamecloud"
copy_tree "${ROOT}/hooks" "${STAGING}/hooks"
copy_tree "${ROOT}/lib" "${STAGING}/lib"
cp "${MANIFEST}" "${STAGING}/manifest.json"
(
cd "${STAGING}"
zip -r "${ZIP_PATH}" .
)
SHA256="$(sha256sum "${ZIP_PATH}" | awk '{print $1}')"
SHA512="$(sha512sum "${ZIP_PATH}" | awk '{print $1}')"
FILE_SIZE="$(stat -c '%s' "${ZIP_PATH}")"
BUILT_AT="$(date -u +"%Y-%m-%dT%H:%M:%SZ")"
cat > "${CHECKSUMS_PATH}" <<EOF
# HexaHost GameCloud WHMCS package checksums
# version=${VERSION}
# built_at=${BUILT_AT}
SHA256 ${SHA256} ${PACKAGE_NAME}.zip
SHA512 ${SHA512} ${PACKAGE_NAME}.zip
SIZE ${FILE_SIZE} ${PACKAGE_NAME}.zip
EOF
rm -rf "${STAGING}"
echo "Built ${ZIP_PATH}"
echo "Checksums written to ${CHECKSUMS_PATH}"

View File

@@ -0,0 +1,43 @@
{
"name": "hexagamecloud-whmcs",
"displayName": "HexaHost GameCloud WHMCS Integration",
"version": "1.1.0",
"description": "Server provisioning and addon modules for HexaHost GameCloud billing integration.",
"author": "HexaHost",
"license": "Proprietary",
"modules": {
"server": {
"name": "hexagamecloud",
"path": "modules/servers/hexagamecloud",
"version": "1.1.0"
},
"addon": {
"name": "hexagamecloud",
"path": "modules/addons/hexagamecloud",
"version": "1.1.0"
}
},
"includes": [
"hooks/hexagamecloud.php",
"lib/MtlsConfig.php",
"lib/ProductMapping.php"
],
"compatibility": {
"whmcs": {
"minimum": "8.5.0",
"tested": ["8.5.0", "8.6.0", "8.7.0", "8.8.0", "8.9.0", "8.10.0", "8.11.0"]
},
"php": {
"minimum": "8.1.0",
"maximum": "8.3.99",
"extensions": ["curl", "json", "openssl"]
},
"gamecloud": {
"minimumApiVersion": "1.1"
}
},
"artifacts": {
"zip": "dist/hexagamecloud-whmcs-{version}.zip",
"checksums": "dist/checksums.txt"
}
}