@r5n/hydra 0.5.8 → 0.7.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/LICENSE +1 -201
- package/README.md +63 -312
- package/dist/cli.js +95 -81
- package/package.json +7 -10
- package/schema.json +40 -4
package/package.json
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"author": "@ice-chillios",
|
|
3
3
|
"bin": {
|
|
4
|
-
"hydra": "
|
|
4
|
+
"hydra": "dist/cli.js"
|
|
5
5
|
},
|
|
6
6
|
"description": "A tool for spawning multiple local GitHub self-hosted runners",
|
|
7
|
-
"
|
|
8
|
-
"@
|
|
9
|
-
"@r5n/cli-core": "workspace:*",
|
|
10
|
-
"@r5n/tools": "workspace:*"
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"@r5n/cli-core": "0.2.2"
|
|
11
9
|
},
|
|
12
10
|
"files": [
|
|
13
11
|
"dist",
|
|
@@ -34,13 +32,12 @@
|
|
|
34
32
|
"build": "rm -rf dist && bun build.ts",
|
|
35
33
|
"clean": "rm -rf dist node_modules",
|
|
36
34
|
"dev": "bun --bun src/cli.ts",
|
|
37
|
-
"package:dryRun": "bun
|
|
35
|
+
"package:dryRun": "bun ../../tools/scripts/publish-package.ts . --dry-run",
|
|
38
36
|
"package:prepare": "NODE_ENV=production bun run build && bun ../../tools/scripts/prepare-publish.ts .",
|
|
39
|
-
"package:publish": "bun
|
|
40
|
-
"type-check": "bun --bun tsc --noEmit"
|
|
41
|
-
"type-check:go": "tsgo"
|
|
37
|
+
"package:publish": "bun ../../tools/scripts/publish-package.ts .",
|
|
38
|
+
"type-check": "bun --bun tsc --noEmit"
|
|
42
39
|
},
|
|
43
40
|
"type": "module",
|
|
44
41
|
"types": "src/cli.ts",
|
|
45
|
-
"version": "0.
|
|
42
|
+
"version": "0.7.0"
|
|
46
43
|
}
|
package/schema.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$comment": "Add this to your hydra.json: \"$schema\": \"https://raw.githubusercontent.com/r5n-labs/clis/refs/heads/develop/packages/hydra/schema.json\"",
|
|
2
|
+
"$comment": "Add this to your .hydra/config.json: \"$schema\": \"https://raw.githubusercontent.com/r5n-labs/clis/refs/heads/develop/packages/hydra/schema.json\"",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"additionalProperties": false,
|
|
5
5
|
"definitions": {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"additionalProperties": false,
|
|
8
8
|
"properties": {
|
|
9
9
|
"directory": {
|
|
10
|
-
"default": "
|
|
10
|
+
"default": ".hydra/runners",
|
|
11
11
|
"description": "Directory where runners will be created",
|
|
12
12
|
"type": "string"
|
|
13
13
|
},
|
|
@@ -26,14 +26,45 @@
|
|
|
26
26
|
"type": "string"
|
|
27
27
|
},
|
|
28
28
|
"overwrite": { "default": false, "description": "Whether to overwrite existing runners", "type": "boolean" },
|
|
29
|
+
"provider": {
|
|
30
|
+
"default": "github",
|
|
31
|
+
"description": "Runner provider backing this profile",
|
|
32
|
+
"enum": ["github", "gitlab"],
|
|
33
|
+
"type": "string"
|
|
34
|
+
},
|
|
29
35
|
"run": {
|
|
30
36
|
"default": false,
|
|
31
37
|
"description": "Whether to start runners immediately after creation",
|
|
32
38
|
"type": "boolean"
|
|
33
39
|
},
|
|
34
|
-
"runnerGroup": {
|
|
35
|
-
|
|
40
|
+
"runnerGroup": {
|
|
41
|
+
"description": "Runner group to assign runners to (applies to organization runners)",
|
|
42
|
+
"type": "string"
|
|
43
|
+
},
|
|
44
|
+
"url": {
|
|
45
|
+
"description": "GitHub repository URL (https://github.com/<owner>/<repo>) or organization URL (https://github.com/<org>)",
|
|
46
|
+
"format": "uri",
|
|
47
|
+
"type": "string"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"type": "object"
|
|
51
|
+
},
|
|
52
|
+
"runnerEntry": {
|
|
53
|
+
"additionalProperties": false,
|
|
54
|
+
"properties": {
|
|
55
|
+
"createdAt": { "description": "ISO timestamp of when the runner was created", "type": "string" },
|
|
56
|
+
"directory": { "description": "Directory of the runner installation", "type": "string" },
|
|
57
|
+
"id": { "description": "Runner identifier", "type": "string" },
|
|
58
|
+
"name": { "description": "Runner name as registered with the provider", "type": "string" },
|
|
59
|
+
"profile": { "description": "Profile the runner belongs to", "type": "string" },
|
|
60
|
+
"provider": {
|
|
61
|
+
"description": "Provider the runner is registered with",
|
|
62
|
+
"enum": ["github", "gitlab"],
|
|
63
|
+
"type": "string"
|
|
64
|
+
},
|
|
65
|
+
"url": { "description": "Repository or organization URL the runner is registered against", "type": "string" }
|
|
36
66
|
},
|
|
67
|
+
"required": ["id", "name", "profile", "provider", "url", "directory", "createdAt"],
|
|
37
68
|
"type": "object"
|
|
38
69
|
}
|
|
39
70
|
},
|
|
@@ -45,6 +76,11 @@
|
|
|
45
76
|
"additionalProperties": { "$ref": "#/definitions/profile" },
|
|
46
77
|
"description": "Named profiles for different runner configurations",
|
|
47
78
|
"type": "object"
|
|
79
|
+
},
|
|
80
|
+
"runners": {
|
|
81
|
+
"description": "Runners Hydra has created; managed by Hydra, do not edit by hand",
|
|
82
|
+
"items": { "$ref": "#/definitions/runnerEntry" },
|
|
83
|
+
"type": "array"
|
|
48
84
|
}
|
|
49
85
|
},
|
|
50
86
|
"required": ["profiles"],
|