@theholocron/cli 2.0.0-alpha.5 → 2.0.0-alpha.50

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.
@@ -1,2 +1,32 @@
1
- import { a as isMulti, i as WebhookVerificationError, n as ProviderApiError, r as REQUIRED_CAPABILITIES, t as CARDINALITY } from "../capabilities-DapaKOlX.mjs";
1
+ import { ProviderApiError } from "@theholocron/http-client";
2
+ //#region src/capabilities/index.ts
3
+ const CARDINALITY = {
4
+ source: "single",
5
+ ci: "single",
6
+ secrets: "single",
7
+ environments: "single",
8
+ issues: "single",
9
+ deployment: "single",
10
+ storage: "single",
11
+ auth: "single",
12
+ vault: "single",
13
+ dns: "single",
14
+ tooling: "many",
15
+ notifications: "many",
16
+ analytics: "many",
17
+ observability: "many"
18
+ };
19
+ /**
20
+ * No capabilities are strictly required — repos without secrets (e.g. org
21
+ * community health repos) legitimately omit vault. Plugins validate their
22
+ * own requirements at call time.
23
+ */
24
+ const REQUIRED_CAPABILITIES = [];
25
+ var WebhookVerificationError = class extends Error {
26
+ name = "WebhookVerificationError";
27
+ };
28
+ function isMulti(key) {
29
+ return CARDINALITY[key] === "many";
30
+ }
31
+ //#endregion
2
32
  export { CARDINALITY, ProviderApiError, REQUIRED_CAPABILITIES, WebhookVerificationError, isMulti };