@theholocron/cli 5.0.0-alpha.23 → 5.0.0-alpha.230
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/README.md +319 -55
- package/dist/cli.mjs +8125 -2840
- package/dist/cli.mjs.map +1 -1
- package/dist/index.d.mts +277 -127
- package/dist/index.mjs +55 -58
- package/dist/plugin/capabilities.d.mts +883 -48
- package/dist/plugin/capabilities.mjs +15 -2
- package/package.json +19 -13
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ProviderApiError } from "@theholocron/http-client";
|
|
2
|
-
//#region src/plugin/capabilities.ts
|
|
2
|
+
//#region src/plugin/capabilities/capabilities.ts
|
|
3
3
|
const CARDINALITY = {
|
|
4
4
|
source: "single",
|
|
5
5
|
ci: "single",
|
|
@@ -16,6 +16,7 @@ const CARDINALITY = {
|
|
|
16
16
|
analytics: "many",
|
|
17
17
|
errors: "single",
|
|
18
18
|
logs: "single",
|
|
19
|
+
monitoring: "single",
|
|
19
20
|
wiki: "single",
|
|
20
21
|
workers: "single"
|
|
21
22
|
};
|
|
@@ -25,6 +26,18 @@ const CARDINALITY = {
|
|
|
25
26
|
* own requirements at call time.
|
|
26
27
|
*/
|
|
27
28
|
const REQUIRED_CAPABILITIES = [];
|
|
29
|
+
/**
|
|
30
|
+
* A provider could not finish an edit because the bot lacks a permission it should not keep. Carries what a person
|
|
31
|
+
* needs to give it for one run and take it away again, so `setup` can walk them through it.
|
|
32
|
+
*/
|
|
33
|
+
var ElevationRequiredError = class extends Error {
|
|
34
|
+
elevation;
|
|
35
|
+
name = "ElevationRequiredError";
|
|
36
|
+
constructor(message, elevation, options) {
|
|
37
|
+
super(message, options);
|
|
38
|
+
this.elevation = elevation;
|
|
39
|
+
}
|
|
40
|
+
};
|
|
28
41
|
var WebhookVerificationError = class extends Error {
|
|
29
42
|
name = "WebhookVerificationError";
|
|
30
43
|
};
|
|
@@ -32,4 +45,4 @@ function isMulti(key) {
|
|
|
32
45
|
return CARDINALITY[key] === "many";
|
|
33
46
|
}
|
|
34
47
|
//#endregion
|
|
35
|
-
export { CARDINALITY, ProviderApiError, REQUIRED_CAPABILITIES, WebhookVerificationError, isMulti };
|
|
48
|
+
export { CARDINALITY, ElevationRequiredError, ProviderApiError, REQUIRED_CAPABILITIES, WebhookVerificationError, isMulti };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/cli",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.230",
|
|
4
4
|
"description": "The Holocron CLI - a pluggable, capability-based orchestrator for spinning up and operating software projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -46,24 +46,31 @@
|
|
|
46
46
|
"@napi-rs/keyring": "^1.3.0",
|
|
47
47
|
"@sentry/node": "^10.70.0",
|
|
48
48
|
"@theholocron/components-doc": "^1.6.0",
|
|
49
|
-
"@theholocron/env-utils": "^1.
|
|
50
|
-
"@theholocron/
|
|
51
|
-
"@theholocron/
|
|
52
|
-
"@theholocron/
|
|
49
|
+
"@theholocron/env-utils": "^1.16.0",
|
|
50
|
+
"@theholocron/fs-utils": "^1.16.0",
|
|
51
|
+
"@theholocron/git-utils": "^1.16.0",
|
|
52
|
+
"@theholocron/github-client": "^1.51.0",
|
|
53
|
+
"@theholocron/http-client": "^1.54.2",
|
|
54
|
+
"@theholocron/json-utils": "^1.16.0",
|
|
55
|
+
"@theholocron/misc-utils": "^1.16.0",
|
|
56
|
+
"@theholocron/observability": "^0.6.0",
|
|
57
|
+
"@theholocron/pkg-utils": "^1.16.0",
|
|
53
58
|
"@theholocron/registry-doc": "^1.12.0",
|
|
54
59
|
"chalk": "^6.0.0",
|
|
60
|
+
"dotenv": "^17.4.2",
|
|
55
61
|
"ora": "^9.4.1",
|
|
56
62
|
"pino": "^10.3.1",
|
|
57
63
|
"pino-pretty": "^13.1.3",
|
|
58
64
|
"posthog-node": "^5.51.6",
|
|
59
65
|
"yargs": "^18.1.0",
|
|
60
|
-
"@theholocron/astromech": "5.0.0-alpha.
|
|
61
|
-
"@theholocron/datapad": "5.0.0-alpha.
|
|
66
|
+
"@theholocron/astromech": "5.0.0-alpha.230",
|
|
67
|
+
"@theholocron/datapad": "5.0.0-alpha.230"
|
|
62
68
|
},
|
|
63
69
|
"devDependencies": {
|
|
64
|
-
"@theholocron/eslint-config": "^8.
|
|
65
|
-
"@theholocron/
|
|
66
|
-
"@theholocron/
|
|
70
|
+
"@theholocron/eslint-config": "^8.8.2",
|
|
71
|
+
"@theholocron/rollup-plugin-transform-template": "^8.8.2",
|
|
72
|
+
"@theholocron/tsconfig": "^8.8.2",
|
|
73
|
+
"@theholocron/vitest-config": "^8.8.2",
|
|
67
74
|
"@types/node": "^26",
|
|
68
75
|
"@types/yargs": "^17.0.35",
|
|
69
76
|
"@vitest/coverage-v8": "^4.1.11",
|
|
@@ -72,10 +79,9 @@
|
|
|
72
79
|
"eslint-plugin-n": "^18.3.0",
|
|
73
80
|
"globals": "^17.11.0",
|
|
74
81
|
"tsdown": "^0.22.14",
|
|
75
|
-
"tsx": "4.23.
|
|
82
|
+
"tsx": "4.23.15",
|
|
76
83
|
"typescript": "^5.9.3",
|
|
77
|
-
"vitest": "^4.1.11"
|
|
78
|
-
"@theholocron/rollup-plugin-transform-template": "5.0.0-alpha.23"
|
|
84
|
+
"vitest": "^4.1.11"
|
|
79
85
|
},
|
|
80
86
|
"engines": {
|
|
81
87
|
"node": ">=22.0.0"
|