@theholocron/cli 5.0.0-alpha.278 → 5.0.0-alpha.279

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/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { $ as LifecycleResult, $t as ToolingDoctorReport, A as DeploymentProject, At as ProviderIdentity, B as EnsureRelayResult, Bt as Source, C as ConnectionStringOptions, Ct as NotificationsPinnedLayout, D as DeployScriptConfig, Dt as NotificationsWelcomeLayout, E as DeployFunctionResult, Et as NotificationsSignedIn, F as Dns, Ft as ResolvedCapability, G as EnvironmentReviewer, Gt as SourceSecurity, H as EnsureWebhookResult, Ht as SourceFile, I as DnsRecord, It as Ruleset, J as InspectRelayInput, Jt as Storage, K as Environments, Kt as SourceTeamMember, L as DnsRecordRequest, Lt as SecretScope, M as DeploymentRecord, Mt as RelayState, N as DeploymentTarget, Nt as RepoRef, O as DeployScriptResult, Ot as PagesConfig, P as DeploymentTrigger, Pt as RepoSettings, Q as LabelDef, Qt as Tooling, R as DnsRecordType, Rt as Secrets, S as CiRunStatus, St as NotificationsOnboardingLayout, T as DeployFunctionConfig, Tt as NotificationsSignIn, U as EnsuredResource, Ut as SourceRepoInfo, V as EnsureResult, Vt as SourceBranch, W as Environment, Wt as SourceRulesetDetail, X as IssueSearchFilter, Xt as TeamEntry, Y as Issue, Yt as StorageBranch, Z as Issues, Zt as TeamPermission, _ as Cardinality, _t as NotificationsDelivery, a as REQUIRED_CAPABILITIES, an as WikiProvisionOpts, at as MonitoringAlertChannelState, b as CiRun, bt as NotificationsLinksLayout, c as Analytics, cn as Workers, ct as MonitoringAssertionSource, d as AuthEvent, dt as MonitoringHttpMethod, en as TrackerDoctorReport, et as LifecycleSlot, f as AuthEventType, ft as NormalizedAuthUser, g as CapabilityKey, gt as NotificationsChannelLayout, h as CapabilityImpls, ht as NotificationsApplicationLayout, i as ProviderApiError, in as Wiki, it as MonitoringAlertChannelResult, j as DeploymentProjectSettings, jt as PullRequest, k as Deployment, kt as ParseWebhookInput, l as Auth, lt as MonitoringCheck, m as AuthUser, mt as NotificationsAccess, n as ElevationRequiredError, nn as Vault, nt as Monitoring, o as WebhookVerificationError, on as WikiProxyConfig, ot as MonitoringAssertion, p as AuthIdentity, pt as Notifications, q as Errors, qt as StatusCategory, r as MissingTokenError, rn as WebhookDashboardInfo, rt as MonitoringAlertChannelInput, s as isMulti, sn as WorkerScriptState, st as MonitoringAssertionComparison, t as CARDINALITY, tn as TrackerUser, tt as Logs, u as AuthDescription, ut as MonitoringCheckInput, v as CardinalityFor, vt as NotificationsEveryoneLayout, w as CreateAuthUserInput, wt as NotificationsServerLayout, x as CiRunFilter, xt as NotificationsMember, y as Ci, yt as NotificationsLayout, z as EnsureRelayInput, zt as ServerInspection } from "./index-D_HJGtOY.mjs";
2
- import { A as ResolvedProviderEntry, C as RepoProperties, D as RepoValidationConfig, E as RepoSecretsSync, F as TaskEntryConfig, I as TelemetryConfig, L as WorkflowWithConfig, M as ResolvedTuple, N as SingleEntry, O as RepoVariables, P as StorybookDeployProject, S as RepoConfig, T as RepoSecrets, _ as LogConfig, a as ConfigError, b as RawProviderEntry, c as resolvePluginPackage, d as ChromaticProjectConfig, f as DocsConfig, g as HolocronConfig, h as EslintConfig, i as TaskEntry, j as ResolvedProvidersConfig, k as ResolvedHolocronConfig, l as AppConfig, m as EnvConfig, n as Capability, o as resolveConfig, p as DoctorConfig, r as ComposedPreset, s as resolveEntry, t as compose, u as CapabilityConfigPackage, v as MultiEntry, w as RepoProtection, x as RawProvidersConfig, y as ProviderOptions } from "./index-4Xmvf7KG.mjs";
1
+ import { $ as LifecycleResult, $t as ToolingDoctorReport, A as DeploymentProject, At as ProviderIdentity, B as EnsureRelayResult, Bt as Source, C as ConnectionStringOptions, Ct as NotificationsPinnedLayout, D as DeployScriptConfig, Dt as NotificationsWelcomeLayout, E as DeployFunctionResult, Et as NotificationsSignedIn, F as Dns, Ft as ResolvedCapability, G as EnvironmentReviewer, Gt as SourceSecurity, H as EnsureWebhookResult, Ht as SourceFile, I as DnsRecord, It as Ruleset, J as InspectRelayInput, Jt as Storage, K as Environments, Kt as SourceTeamMember, L as DnsRecordRequest, Lt as SecretScope, M as DeploymentRecord, Mt as RelayState, N as DeploymentTarget, Nt as RepoRef, O as DeployScriptResult, Ot as PagesConfig, P as DeploymentTrigger, Pt as RepoSettings, Q as LabelDef, Qt as Tooling, R as DnsRecordType, Rt as Secrets, S as CiRunStatus, St as NotificationsOnboardingLayout, T as DeployFunctionConfig, Tt as NotificationsSignIn, U as EnsuredResource, Ut as SourceRepoInfo, V as EnsureResult, Vt as SourceBranch, W as Environment, Wt as SourceRulesetDetail, X as IssueSearchFilter, Xt as TeamEntry, Y as Issue, Yt as StorageBranch, Z as Issues, Zt as TeamPermission, _ as Cardinality, _t as NotificationsDelivery, a as REQUIRED_CAPABILITIES, an as WikiProvisionOpts, at as MonitoringAlertChannelState, b as CiRun, bt as NotificationsLinksLayout, c as Analytics, cn as Workers, ct as MonitoringAssertionSource, d as AuthEvent, dt as MonitoringHttpMethod, en as TrackerDoctorReport, et as LifecycleSlot, f as AuthEventType, ft as NormalizedAuthUser, g as CapabilityKey, gt as NotificationsChannelLayout, h as CapabilityImpls, ht as NotificationsApplicationLayout, i as ProviderApiError, in as Wiki, it as MonitoringAlertChannelResult, j as DeploymentProjectSettings, jt as PullRequest, k as Deployment, kt as ParseWebhookInput, l as Auth, lt as MonitoringCheck, m as AuthUser, mt as NotificationsAccess, n as ElevationRequiredError, nn as Vault, nt as Monitoring, o as WebhookVerificationError, on as WikiProxyConfig, ot as MonitoringAssertion, p as AuthIdentity, pt as Notifications, q as Errors, qt as StatusCategory, r as MissingTokenError, rn as WebhookDashboardInfo, rt as MonitoringAlertChannelInput, s as isMulti, sn as WorkerScriptState, st as MonitoringAssertionComparison, t as CARDINALITY, tn as TrackerUser, tt as Logs, u as AuthDescription, ut as MonitoringCheckInput, v as CardinalityFor, vt as NotificationsEveryoneLayout, w as CreateAuthUserInput, wt as NotificationsServerLayout, x as CiRunFilter, xt as NotificationsMember, y as Ci, yt as NotificationsLayout, z as EnsureRelayInput, zt as ServerInspection } from "./index-aQ7iGTl7.mjs";
2
+ import { A as ResolvedProviderEntry, C as RepoProperties, D as RepoValidationConfig, E as RepoSecretsSync, F as TaskEntryConfig, I as TelemetryConfig, L as WorkflowWithConfig, M as ResolvedTuple, N as SingleEntry, O as RepoVariables, P as StorybookDeployProject, S as RepoConfig, T as RepoSecrets, _ as LogConfig, a as ConfigError, b as RawProviderEntry, c as resolvePluginPackage, d as ChromaticProjectConfig, f as DocsConfig, g as HolocronConfig, h as EslintConfig, i as TaskEntry, j as ResolvedProvidersConfig, k as ResolvedHolocronConfig, l as AppConfig, m as EnvConfig, n as Capability, o as resolveConfig, p as DoctorConfig, r as ComposedPreset, s as resolveEntry, t as compose, u as CapabilityConfigPackage, v as MultiEntry, w as RepoProtection, x as RawProvidersConfig, y as ProviderOptions } from "./index-B59MneN-.mjs";
3
3
  import { AuthError, RequestOptions, ResolveTokenConfig as ResolveTokenConfig$1, ResolveTokenInput, ResolveTokenInput as ResolveTokenInput$1, RestClient, RestClientConfig, createRestClient } from "@theholocron/http-client";
4
4
  import { PackageJson } from "@theholocron/pkg-utils";
5
5
  import { ConfigFileError } from "@theholocron/datapad";
@@ -1,2 +1,2 @@
1
- import { $ as LifecycleResult, $t as ToolingDoctorReport, A as DeploymentProject, At as ProviderIdentity, B as EnsureRelayResult, Bt as Source, C as ConnectionStringOptions, Ct as NotificationsPinnedLayout, D as DeployScriptConfig, Dt as NotificationsWelcomeLayout, E as DeployFunctionResult, Et as NotificationsSignedIn, F as Dns, Ft as ResolvedCapability, G as EnvironmentReviewer, Gt as SourceSecurity, H as EnsureWebhookResult, Ht as SourceFile, I as DnsRecord, It as Ruleset, J as InspectRelayInput, Jt as Storage, K as Environments, Kt as SourceTeamMember, L as DnsRecordRequest, Lt as SecretScope, M as DeploymentRecord, Mt as RelayState, N as DeploymentTarget, Nt as RepoRef, O as DeployScriptResult, Ot as PagesConfig, P as DeploymentTrigger, Pt as RepoSettings, Q as LabelDef, Qt as Tooling, R as DnsRecordType, Rt as Secrets, S as CiRunStatus, St as NotificationsOnboardingLayout, T as DeployFunctionConfig, Tt as NotificationsSignIn, U as EnsuredResource, Ut as SourceRepoInfo, V as EnsureResult, Vt as SourceBranch, W as Environment, Wt as SourceRulesetDetail, X as IssueSearchFilter, Xt as TeamEntry, Y as Issue, Yt as StorageBranch, Z as Issues, Zt as TeamPermission, _ as Cardinality, _t as NotificationsDelivery, a as REQUIRED_CAPABILITIES, an as WikiProvisionOpts, at as MonitoringAlertChannelState, b as CiRun, bt as NotificationsLinksLayout, c as Analytics, cn as Workers, ct as MonitoringAssertionSource, d as AuthEvent, dt as MonitoringHttpMethod, en as TrackerDoctorReport, et as LifecycleSlot, f as AuthEventType, ft as NormalizedAuthUser, g as CapabilityKey, gt as NotificationsChannelLayout, h as CapabilityImpls, ht as NotificationsApplicationLayout, i as ProviderApiError, in as Wiki, it as MonitoringAlertChannelResult, j as DeploymentProjectSettings, jt as PullRequest, k as Deployment, kt as ParseWebhookInput, l as Auth, lt as MonitoringCheck, m as AuthUser, mt as NotificationsAccess, n as ElevationRequiredError, nn as Vault, nt as Monitoring, o as WebhookVerificationError, on as WikiProxyConfig, ot as MonitoringAssertion, p as AuthIdentity, pt as Notifications, q as Errors, qt as StatusCategory, r as MissingTokenError, rn as WebhookDashboardInfo, rt as MonitoringAlertChannelInput, s as isMulti, sn as WorkerScriptState, st as MonitoringAssertionComparison, t as CARDINALITY, tn as TrackerUser, tt as Logs, u as AuthDescription, ut as MonitoringCheckInput, v as CardinalityFor, vt as NotificationsEveryoneLayout, w as CreateAuthUserInput, wt as NotificationsServerLayout, x as CiRunFilter, xt as NotificationsMember, y as Ci, yt as NotificationsLayout, z as EnsureRelayInput, zt as ServerInspection } from "../index-D_HJGtOY.mjs";
1
+ import { $ as LifecycleResult, $t as ToolingDoctorReport, A as DeploymentProject, At as ProviderIdentity, B as EnsureRelayResult, Bt as Source, C as ConnectionStringOptions, Ct as NotificationsPinnedLayout, D as DeployScriptConfig, Dt as NotificationsWelcomeLayout, E as DeployFunctionResult, Et as NotificationsSignedIn, F as Dns, Ft as ResolvedCapability, G as EnvironmentReviewer, Gt as SourceSecurity, H as EnsureWebhookResult, Ht as SourceFile, I as DnsRecord, It as Ruleset, J as InspectRelayInput, Jt as Storage, K as Environments, Kt as SourceTeamMember, L as DnsRecordRequest, Lt as SecretScope, M as DeploymentRecord, Mt as RelayState, N as DeploymentTarget, Nt as RepoRef, O as DeployScriptResult, Ot as PagesConfig, P as DeploymentTrigger, Pt as RepoSettings, Q as LabelDef, Qt as Tooling, R as DnsRecordType, Rt as Secrets, S as CiRunStatus, St as NotificationsOnboardingLayout, T as DeployFunctionConfig, Tt as NotificationsSignIn, U as EnsuredResource, Ut as SourceRepoInfo, V as EnsureResult, Vt as SourceBranch, W as Environment, Wt as SourceRulesetDetail, X as IssueSearchFilter, Xt as TeamEntry, Y as Issue, Yt as StorageBranch, Z as Issues, Zt as TeamPermission, _ as Cardinality, _t as NotificationsDelivery, a as REQUIRED_CAPABILITIES, an as WikiProvisionOpts, at as MonitoringAlertChannelState, b as CiRun, bt as NotificationsLinksLayout, c as Analytics, cn as Workers, ct as MonitoringAssertionSource, d as AuthEvent, dt as MonitoringHttpMethod, en as TrackerDoctorReport, et as LifecycleSlot, f as AuthEventType, ft as NormalizedAuthUser, g as CapabilityKey, gt as NotificationsChannelLayout, h as CapabilityImpls, ht as NotificationsApplicationLayout, i as ProviderApiError, in as Wiki, it as MonitoringAlertChannelResult, j as DeploymentProjectSettings, jt as PullRequest, k as Deployment, kt as ParseWebhookInput, l as Auth, lt as MonitoringCheck, m as AuthUser, mt as NotificationsAccess, n as ElevationRequiredError, nn as Vault, nt as Monitoring, o as WebhookVerificationError, on as WikiProxyConfig, ot as MonitoringAssertion, p as AuthIdentity, pt as Notifications, q as Errors, qt as StatusCategory, r as MissingTokenError, rn as WebhookDashboardInfo, rt as MonitoringAlertChannelInput, s as isMulti, sn as WorkerScriptState, st as MonitoringAssertionComparison, t as CARDINALITY, tn as TrackerUser, tt as Logs, u as AuthDescription, ut as MonitoringCheckInput, v as CardinalityFor, vt as NotificationsEveryoneLayout, w as CreateAuthUserInput, wt as NotificationsServerLayout, x as CiRunFilter, xt as NotificationsMember, y as Ci, yt as NotificationsLayout, z as EnsureRelayInput, zt as ServerInspection } from "../index-aQ7iGTl7.mjs";
2
2
  export { Analytics, Auth, AuthDescription, AuthEvent, AuthEventType, AuthIdentity, AuthUser, CARDINALITY, CapabilityImpls, CapabilityKey, Cardinality, CardinalityFor, Ci, CiRun, CiRunFilter, CiRunStatus, ConnectionStringOptions, CreateAuthUserInput, DeployFunctionConfig, DeployFunctionResult, DeployScriptConfig, DeployScriptResult, Deployment, DeploymentProject, DeploymentProjectSettings, DeploymentRecord, DeploymentTarget, DeploymentTrigger, Dns, DnsRecord, DnsRecordRequest, DnsRecordType, ElevationRequiredError, EnsureRelayInput, EnsureRelayResult, EnsureResult, EnsureWebhookResult, EnsuredResource, Environment, EnvironmentReviewer, Environments, Errors, InspectRelayInput, Issue, IssueSearchFilter, Issues, LabelDef, LifecycleResult, LifecycleSlot, Logs, MissingTokenError, Monitoring, MonitoringAlertChannelInput, MonitoringAlertChannelResult, MonitoringAlertChannelState, MonitoringAssertion, MonitoringAssertionComparison, MonitoringAssertionSource, MonitoringCheck, MonitoringCheckInput, MonitoringHttpMethod, NormalizedAuthUser, Notifications, NotificationsAccess, NotificationsApplicationLayout, NotificationsChannelLayout, NotificationsDelivery, NotificationsEveryoneLayout, NotificationsLayout, NotificationsLinksLayout, NotificationsMember, NotificationsOnboardingLayout, NotificationsPinnedLayout, NotificationsServerLayout, NotificationsSignIn, NotificationsSignedIn, NotificationsWelcomeLayout, PagesConfig, ParseWebhookInput, ProviderApiError, ProviderIdentity, PullRequest, REQUIRED_CAPABILITIES, RelayState, RepoRef, RepoSettings, ResolvedCapability, Ruleset, SecretScope, Secrets, ServerInspection, Source, SourceBranch, SourceFile, SourceRepoInfo, SourceRulesetDetail, SourceSecurity, SourceTeamMember, StatusCategory, Storage, StorageBranch, TeamEntry, TeamPermission, Tooling, ToolingDoctorReport, TrackerDoctorReport, TrackerUser, Vault, WebhookDashboardInfo, WebhookVerificationError, Wiki, WikiProvisionOpts, WikiProxyConfig, WorkerScriptState, Workers, isMulti };
@@ -1,23 +1,42 @@
1
1
  import { ProviderApiError } from "@theholocron/http-client";
2
2
  // src/plugin/capabilities/capabilities.ts
3
+ /** How many providers each capability resolves to: one (`"single"`) or several active at once (`"many"`). */
3
4
  const CARDINALITY = {
5
+ /** `source` has exactly one provider. */
4
6
  source: "single",
7
+ /** `ci` has exactly one provider. */
5
8
  ci: "single",
9
+ /** `secrets` has exactly one provider. */
6
10
  secrets: "single",
11
+ /** `environments` has exactly one provider. */
7
12
  environments: "single",
13
+ /** `issues` has exactly one provider. */
8
14
  issues: "single",
15
+ /** `deployment` has exactly one provider. */
9
16
  deployment: "single",
17
+ /** `storage` has exactly one provider. */
10
18
  storage: "single",
19
+ /** `auth` has exactly one provider. */
11
20
  auth: "single",
21
+ /** `vault` has exactly one provider. */
12
22
  vault: "single",
23
+ /** `dns` has exactly one provider. */
13
24
  dns: "single",
25
+ /** `tooling` can have several providers active at once. */
14
26
  tooling: "many",
27
+ /** `notifications` can have several providers active at once. */
15
28
  notifications: "many",
29
+ /** `analytics` can have several providers active at once. */
16
30
  analytics: "many",
31
+ /** `errors` has exactly one provider. */
17
32
  errors: "single",
33
+ /** `logs` has exactly one provider. */
18
34
  logs: "single",
35
+ /** `monitoring` has exactly one provider. */
19
36
  monitoring: "single",
37
+ /** `wiki` has exactly one provider. */
20
38
  wiki: "single",
39
+ /** `workers` has exactly one provider. */
21
40
  workers: "single"
22
41
  };
23
42
  /**
@@ -32,6 +51,7 @@ const REQUIRED_CAPABILITIES = [];
32
51
  */
33
52
  var ElevationRequiredError = class extends Error {
34
53
  elevation;
54
+ /** Lets a caller tell this error from any other by name, across package copies. */
35
55
  name = "ElevationRequiredError";
36
56
  constructor(message, elevation, options) {
37
57
  super(message, options);
@@ -46,9 +66,12 @@ var MissingTokenError = class extends Error {
46
66
  /** Lets a caller tell this error from any other by name, across package copies. */
47
67
  name = "MissingTokenError";
48
68
  };
69
+ /** A webhook payload failed signature verification, so it must not be trusted. */
49
70
  var WebhookVerificationError = class extends Error {
71
+ /** Lets a caller tell this error from any other by name, across package copies. */
50
72
  name = "WebhookVerificationError";
51
73
  };
74
+ /** Whether `key` is a capability that can have several providers active at once. */
52
75
  function isMulti(key) {
53
76
  return CARDINALITY[key] === "many";
54
77
  }
@@ -1,4 +1,4 @@
1
- import { n as Capability, r as ComposedPreset, t as compose } from "./index-4Xmvf7KG.mjs";
1
+ import { n as Capability, r as ComposedPreset, t as compose } from "./index-B59MneN-.mjs";
2
2
  interface AuditOptions {
3
3
  /** Enable Knip unused-export analysis (default: false). */
4
4
  knip?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/cli",
3
- "version": "5.0.0-alpha.278",
3
+ "version": "5.0.0-alpha.279",
4
4
  "description": "The Holocron CLI - a pluggable, capability-based orchestrator for spinning up and operating software projects.",
5
5
  "keywords": [
6
6
  "cli",
@@ -52,17 +52,17 @@
52
52
  "pino-pretty": "^13.1.3",
53
53
  "posthog-node": "^5.57.2",
54
54
  "yargs": "^18.1.0",
55
+ "@theholocron/astromech": "5.0.0-alpha.279",
56
+ "@theholocron/datapad": "5.0.0-alpha.279",
55
57
  "@theholocron/env-utils": "^1.16.1-alpha.3",
56
58
  "@theholocron/fs-utils": "^1.16.1-alpha.3",
57
- "@theholocron/datapad": "5.0.0-alpha.278",
58
- "@theholocron/astromech": "5.0.0-alpha.278",
59
59
  "@theholocron/git-utils": "^1.16.1-alpha.3",
60
- "@theholocron/http-client": "^1.58.0-alpha.3",
61
60
  "@theholocron/github-client": "^1.58.0-alpha.3",
62
- "@theholocron/json-utils": "^1.16.1-alpha.3",
63
61
  "@theholocron/misc-utils": "^1.16.1-alpha.3",
64
62
  "@theholocron/pkg-utils": "^1.16.1-alpha.3",
65
- "@theholocron/observability": "^0.6.1-alpha.1"
63
+ "@theholocron/observability": "^0.6.1-alpha.1",
64
+ "@theholocron/http-client": "^1.58.0-alpha.3",
65
+ "@theholocron/json-utils": "^1.16.1-alpha.3"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@types/node": "^26",