@checkstack/healthcheck-rcon-common 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/package.json +20 -0
- package/src/index.ts +5 -0
- package/src/plugin-metadata.ts +8 -0
- package/src/transport.ts +19 -0
- package/tsconfig.json +3 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# @checkstack/healthcheck-rcon-common
|
|
2
|
+
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 829c529: Add RCON healthcheck strategy for game server monitoring
|
|
8
|
+
|
|
9
|
+
New RCON (Remote Console) healthcheck strategy for monitoring game servers via the Source RCON protocol:
|
|
10
|
+
|
|
11
|
+
- **Generic Command Collector** - Execute arbitrary RCON commands
|
|
12
|
+
- **Minecraft Players** - Get player count and names from `list` command
|
|
13
|
+
- **Minecraft Server** - Get TPS for Paper/Spigot servers
|
|
14
|
+
- **Source Status** - Get server hostname, map, and player counts (CS:GO/CS2)
|
|
15
|
+
- **Source Players** - Get detailed player list from Source engine games
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [9faec1f]
|
|
20
|
+
- Updated dependencies [f533141]
|
|
21
|
+
- @checkstack/common@0.2.0
|
package/package.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@checkstack/healthcheck-rcon-common",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "src/index.ts",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"typecheck": "tsc --noEmit",
|
|
8
|
+
"lint": "bun run lint:code",
|
|
9
|
+
"lint:code": "eslint . --max-warnings 0"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"@checkstack/common": "workspace:*"
|
|
13
|
+
},
|
|
14
|
+
"devDependencies": {
|
|
15
|
+
"@types/bun": "^1.0.0",
|
|
16
|
+
"typescript": "^5.0.0",
|
|
17
|
+
"@checkstack/tsconfig": "workspace:*",
|
|
18
|
+
"@checkstack/scripts": "workspace:*"
|
|
19
|
+
}
|
|
20
|
+
}
|
package/src/index.ts
ADDED
package/src/transport.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { TransportClient } from "@checkstack/common";
|
|
2
|
+
|
|
3
|
+
// ============================================================================
|
|
4
|
+
// RCON TRANSPORT TYPES
|
|
5
|
+
// ============================================================================
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* RCON command execution result.
|
|
9
|
+
*/
|
|
10
|
+
export interface RconResult {
|
|
11
|
+
/** Response text from the RCON command */
|
|
12
|
+
response: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* RCON transport client type.
|
|
17
|
+
* Commands are strings (RCON commands), results include the response text.
|
|
18
|
+
*/
|
|
19
|
+
export type RconTransportClient = TransportClient<string, RconResult>;
|
package/tsconfig.json
ADDED