@theholocron/cli 5.0.0-alpha.276 → 5.0.0-alpha.278
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 +30 -17
- package/dist/cli.mjs +293 -142
- package/dist/cli.mjs.map +1 -1
- package/dist/{compose-8k8KP396.mjs → compose-DxOjvMVt.mjs} +9 -0
- package/dist/{index-DvgH4Vvm.d.mts → index-4Xmvf7KG.d.mts} +18 -2
- package/dist/{index-Czpb0oQX.d.mts → index-D_HJGtOY.d.mts} +54 -1
- package/dist/index.d.mts +8 -3
- package/dist/index.mjs +1 -1
- package/dist/plugin/capabilities.d.mts +2 -2
- package/dist/presets.d.mts +1 -1
- package/dist/presets.mjs +1 -1
- package/package.json +15 -15
|
@@ -68,6 +68,12 @@ function resolveEntry(key, raw) {
|
|
|
68
68
|
})
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
|
+
/** The values `repoValidation.docsCoverage` accepts. */
|
|
72
|
+
const DOCS_COVERAGE_MODES = [
|
|
73
|
+
"off",
|
|
74
|
+
"warn",
|
|
75
|
+
"required"
|
|
76
|
+
];
|
|
71
77
|
function resolveConfig(raw) {
|
|
72
78
|
if (!raw.name) throw new ConfigError("`name` is required");
|
|
73
79
|
if (!raw.providers || typeof raw.providers !== "object") throw new ConfigError("`providers` block is required");
|
|
@@ -82,6 +88,8 @@ function resolveConfig(raw) {
|
|
|
82
88
|
if (!raw.docs.build) throw new ConfigError("`docs.build` is required when `docs` is set");
|
|
83
89
|
docs = raw.docs;
|
|
84
90
|
}
|
|
91
|
+
const docsCoverage = raw.repoValidation?.docsCoverage;
|
|
92
|
+
if (docsCoverage !== void 0 && !DOCS_COVERAGE_MODES.includes(docsCoverage)) throw new ConfigError(`\`repoValidation.docsCoverage\` must be one of ${DOCS_COVERAGE_MODES.map((m) => `"${m}"`).join(", ")}, got ${JSON.stringify(docsCoverage)}`);
|
|
85
93
|
const homepage = raw.homepage ?? (docs?.domain ? `https://${docs.domain}/` : void 0);
|
|
86
94
|
return {
|
|
87
95
|
name: raw.name,
|
|
@@ -90,6 +98,7 @@ function resolveConfig(raw) {
|
|
|
90
98
|
org: raw.org,
|
|
91
99
|
domain: raw.domain,
|
|
92
100
|
repo: raw.repo,
|
|
101
|
+
repoValidation: raw.repoValidation,
|
|
93
102
|
tasks: raw.tasks,
|
|
94
103
|
syncScripts: raw.syncScripts,
|
|
95
104
|
holocronScript: raw.holocronScript,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ot as PagesConfig, Xt as TeamEntry, g as CapabilityKey } from "./index-D_HJGtOY.mjs";
|
|
2
2
|
import { LogLevel } from "@theholocron/observability/core";
|
|
3
|
+
import { DocsCoverageMode } from "@theholocron/astromech";
|
|
3
4
|
/** Structured-logging config. The Axiom **token** never lives here — only in
|
|
4
5
|
* env vars or the OS keyring — but the non-secret dataset name may. */
|
|
5
6
|
interface LogConfig {
|
|
@@ -140,6 +141,17 @@ interface RepoSecretsSync {
|
|
|
140
141
|
/** Where the secrets land, as `--github-secret-scope` words it: `"repo"` (the default), `"env=<name>"` or `"org=<name>"`. */
|
|
141
142
|
scope?: string;
|
|
142
143
|
}
|
|
144
|
+
/** Per-repo switches for the repo-validation checks (spec `tech-api-docs`, #1368). */
|
|
145
|
+
interface RepoValidationConfig {
|
|
146
|
+
/**
|
|
147
|
+
* How strictly this repo enforces doc-comment coverage of its public API (`holocron probe docs patch`, the
|
|
148
|
+
* `Docs coverage` workflow and the `documentation` Codecov flag). `"off"` (the default) does nothing; `"warn"`
|
|
149
|
+
* reports without failing and posts informational Codecov statuses; `"required"` fails the check and posts statuses
|
|
150
|
+
* that are not informational. It never adds a status to the branch-protection required checks: that stays in
|
|
151
|
+
* `extraRequiredChecks`.
|
|
152
|
+
*/
|
|
153
|
+
docsCoverage?: DocsCoverageMode;
|
|
154
|
+
}
|
|
143
155
|
interface RepoConfig {
|
|
144
156
|
/** "owner/name" — the GitHub repository coordinate. Derived from the git remote when absent. */
|
|
145
157
|
name?: string;
|
|
@@ -353,6 +365,8 @@ interface HolocronConfig {
|
|
|
353
365
|
* `--repo` on the command line still overrides.
|
|
354
366
|
*/
|
|
355
367
|
repo?: RepoConfig;
|
|
368
|
+
/** Per-repo switches for the repo-validation checks. */
|
|
369
|
+
repoValidation?: RepoValidationConfig;
|
|
356
370
|
/**
|
|
357
371
|
* The task manifest — what this repo runs. Each entry is a task name
|
|
358
372
|
* (backed by a reusable workflow in `theholocron/.github`), or the object
|
|
@@ -568,6 +582,8 @@ interface ResolvedHolocronConfig {
|
|
|
568
582
|
org?: string;
|
|
569
583
|
domain?: string;
|
|
570
584
|
repo?: RepoConfig;
|
|
585
|
+
/** Which repo-wide checks this repo turns on (`docsCoverage`), validated by `resolveConfig`. */
|
|
586
|
+
repoValidation?: RepoValidationConfig;
|
|
571
587
|
tasks?: Array<string | TaskEntryConfig>;
|
|
572
588
|
syncScripts?: boolean;
|
|
573
589
|
holocronScript?: string;
|
|
@@ -658,4 +674,4 @@ interface ComposedPreset {
|
|
|
658
674
|
* const preset = compose(node(), nextjs());
|
|
659
675
|
*/
|
|
660
676
|
declare function compose(...args: (Capability | Capability[])[]): ComposedPreset;
|
|
661
|
-
export {
|
|
677
|
+
export { ResolvedProviderEntry as A, RepoProperties as C, RepoValidationConfig as D, RepoSecretsSync as E, TaskEntryConfig as F, TelemetryConfig as I, WorkflowWithConfig as L, ResolvedTuple as M, SingleEntry as N, RepoVariables as O, StorybookDeployProject as P, RepoConfig as S, RepoSecrets as T, LogConfig as _, ConfigError as a, RawProviderEntry as b, resolvePluginPackage as c, ChromaticProjectConfig as d, DocsConfig as f, HolocronConfig as g, EslintConfig as h, TaskEntry as i, ResolvedProvidersConfig as j, ResolvedHolocronConfig as k, AppConfig as l, EnvConfig as m, Capability as n, resolveConfig as o, DoctorConfig as p, ComposedPreset as r, resolveEntry as s, compose as t, CapabilityConfigPackage as u, MultiEntry as v, RepoProtection as w, RawProvidersConfig as x, ProviderOptions as y };
|
|
@@ -827,6 +827,12 @@ interface Errors extends ProviderIdentity {
|
|
|
827
827
|
* provider did not give it (some show it only when the integration is made).
|
|
828
828
|
*/
|
|
829
829
|
ensureRelay?(input: EnsureRelayInput): Promise<EnsureRelayResult>;
|
|
830
|
+
/**
|
|
831
|
+
* Read back what `ensureRelay` makes without changing anything: the integration and, for each project, whether the
|
|
832
|
+
* alert rule is on it, enabled and sends through the integration. Never reads the signing secret.
|
|
833
|
+
* Optional — a provider with no relay omits it.
|
|
834
|
+
*/
|
|
835
|
+
inspectRelay?(input: InspectRelayInput): Promise<RelayState>;
|
|
830
836
|
}
|
|
831
837
|
interface EnsureRelayInput {
|
|
832
838
|
/** The integration's name at the provider (also how an existing one is found). */
|
|
@@ -841,6 +847,38 @@ interface EnsureRelayInput {
|
|
|
841
847
|
frequency?: number;
|
|
842
848
|
};
|
|
843
849
|
}
|
|
850
|
+
/** Which integration and alert rule to read back: the names `ensureRelay` was given, without the parts that write. */
|
|
851
|
+
interface InspectRelayInput {
|
|
852
|
+
/** The integration's name at the provider. */
|
|
853
|
+
name: string;
|
|
854
|
+
/** The projects whose issues are sent. */
|
|
855
|
+
projects: string[];
|
|
856
|
+
/** The alert rule to look for. */
|
|
857
|
+
rule: {
|
|
858
|
+
/** Its name at the provider. */
|
|
859
|
+
name: string;
|
|
860
|
+
};
|
|
861
|
+
}
|
|
862
|
+
/**
|
|
863
|
+
* The tracker's side of a relay as the provider holds it. Never carries the integration's signing secret: the read
|
|
864
|
+
* does not ask for it.
|
|
865
|
+
*/
|
|
866
|
+
interface RelayState {
|
|
867
|
+
/** The integration, or undefined when none has that name. */
|
|
868
|
+
integration?: {
|
|
869
|
+
/** Where it posts alerts, or null when it has no webhook. */
|
|
870
|
+
webhookUrl: string | null;
|
|
871
|
+
/** Whether it is offered as an alert action. */
|
|
872
|
+
alertAction: boolean;
|
|
873
|
+
};
|
|
874
|
+
/** One entry per requested project the rule is attached to; a project missing here has no such rule. */
|
|
875
|
+
rules: Array<{
|
|
876
|
+
project: string;
|
|
877
|
+
enabled: boolean;
|
|
878
|
+
/** Whether the rule sends through the integration. */
|
|
879
|
+
sends: boolean;
|
|
880
|
+
}>;
|
|
881
|
+
}
|
|
844
882
|
interface EnsureRelayResult {
|
|
845
883
|
integration: {
|
|
846
884
|
created: boolean;
|
|
@@ -1648,6 +1686,15 @@ interface DeployScriptConfig {
|
|
|
1648
1686
|
*/
|
|
1649
1687
|
routes?: string[];
|
|
1650
1688
|
}
|
|
1689
|
+
/** A deployed Worker as the provider holds it, for `doctor notifications`. Binding names only: a value is never read. */
|
|
1690
|
+
interface WorkerScriptState {
|
|
1691
|
+
/** Whether a script with that name is deployed. */
|
|
1692
|
+
exists: boolean;
|
|
1693
|
+
/** The route patterns that serve the script in the zone of the host asked about. */
|
|
1694
|
+
routes: string[];
|
|
1695
|
+
/** The names of the secrets bound to the script. */
|
|
1696
|
+
bindingNames: string[];
|
|
1697
|
+
}
|
|
1651
1698
|
interface DeployScriptResult {
|
|
1652
1699
|
/** The deployed script's name at the provider. */
|
|
1653
1700
|
scriptName: string;
|
|
@@ -1678,6 +1725,12 @@ interface Workers extends ProviderIdentity {
|
|
|
1678
1725
|
setSecret?(script: string, name: string, value: string): Promise<void>;
|
|
1679
1726
|
/** The names (never the values) of the secrets bound to a deployed script. `holocron probe` uses it to see what a Worker has. */
|
|
1680
1727
|
secretNames?(script: string): Promise<string[]>;
|
|
1728
|
+
/**
|
|
1729
|
+
* Read a deployed script without changing it: whether it exists, which route patterns serve it in the zone `host`
|
|
1730
|
+
* is in, and the names of its bindings. Read-only; `holocron doctor notifications` uses it to check the relay.
|
|
1731
|
+
* Optional — a provider that cannot read its scripts omits it.
|
|
1732
|
+
*/
|
|
1733
|
+
inspectScript?(name: string, host: string): Promise<WorkerScriptState>;
|
|
1681
1734
|
/**
|
|
1682
1735
|
* A `holocron doctor` smoke check — every other method either mutates or
|
|
1683
1736
|
* needs a specific script/zone doctor has no way to supply up front.
|
|
@@ -1784,4 +1837,4 @@ declare class WebhookVerificationError extends Error {
|
|
|
1784
1837
|
name: string;
|
|
1785
1838
|
}
|
|
1786
1839
|
declare function isMulti<K extends CapabilityKey>(key: K): CardinalityFor<K> extends "many" ? true : false;
|
|
1787
|
-
export {
|
|
1840
|
+
export { LifecycleResult as $, ToolingDoctorReport as $t, DeploymentProject as A, ProviderIdentity as At, EnsureRelayResult as B, Source as Bt, ConnectionStringOptions as C, NotificationsPinnedLayout as Ct, DeployScriptConfig as D, NotificationsWelcomeLayout as Dt, DeployFunctionResult as E, NotificationsSignedIn as Et, Dns as F, ResolvedCapability as Ft, EnvironmentReviewer as G, SourceSecurity as Gt, EnsureWebhookResult as H, SourceFile as Ht, DnsRecord as I, Ruleset as It, InspectRelayInput as J, Storage as Jt, Environments as K, SourceTeamMember as Kt, DnsRecordRequest as L, SecretScope as Lt, DeploymentRecord as M, RelayState as Mt, DeploymentTarget as N, RepoRef as Nt, DeployScriptResult as O, PagesConfig as Ot, DeploymentTrigger as P, RepoSettings as Pt, LabelDef as Q, Tooling as Qt, DnsRecordType as R, Secrets as Rt, CiRunStatus as S, NotificationsOnboardingLayout as St, DeployFunctionConfig as T, NotificationsSignIn as Tt, EnsuredResource as U, SourceRepoInfo as Ut, EnsureResult as V, SourceBranch as Vt, Environment as W, SourceRulesetDetail as Wt, IssueSearchFilter as X, TeamEntry as Xt, Issue as Y, StorageBranch as Yt, Issues as Z, TeamPermission as Zt, Cardinality as _, NotificationsDelivery as _t, REQUIRED_CAPABILITIES as a, WikiProvisionOpts as an, MonitoringAlertChannelState as at, CiRun as b, NotificationsLinksLayout as bt, Analytics as c, Workers as cn, MonitoringAssertionSource as ct, AuthEvent as d, MonitoringHttpMethod as dt, TrackerDoctorReport as en, LifecycleSlot as et, AuthEventType as f, NormalizedAuthUser as ft, CapabilityKey as g, NotificationsChannelLayout as gt, CapabilityImpls as h, NotificationsApplicationLayout as ht, ProviderApiError as i, Wiki as in, MonitoringAlertChannelResult as it, DeploymentProjectSettings as j, PullRequest as jt, Deployment as k, ParseWebhookInput as kt, Auth as l, MonitoringCheck as lt, AuthUser as m, NotificationsAccess as mt, ElevationRequiredError as n, Vault as nn, Monitoring as nt, WebhookVerificationError as o, WikiProxyConfig as on, MonitoringAssertion as ot, AuthIdentity as p, Notifications as pt, Errors as q, StatusCategory as qt, MissingTokenError as r, WebhookDashboardInfo as rn, MonitoringAlertChannelInput as rt, isMulti as s, WorkerScriptState as sn, MonitoringAssertionComparison as st, CARDINALITY as t, TrackerUser as tn, Logs as tt, AuthDescription as u, MonitoringCheckInput as ut, CardinalityFor as v, NotificationsEveryoneLayout as vt, CreateAuthUserInput as w, NotificationsServerLayout as wt, CiRunFilter as x, NotificationsMember as xt, Ci as y, NotificationsLayout as yt, EnsureRelayInput as z, ServerInspection as zt };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { A as
|
|
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";
|
|
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";
|
|
@@ -199,6 +199,11 @@ interface ProbeRow {
|
|
|
199
199
|
interface ProbeContext {
|
|
200
200
|
/** What the person typed after the probe name (`probe deps who vitest` hands `["vitest"]`). */
|
|
201
201
|
args?: readonly string[];
|
|
202
|
+
/**
|
|
203
|
+
* `--lcov <path>`: where a probe that measures coverage also writes an lcov report, on top of the rows it prints.
|
|
204
|
+
* Relative to the repo root. Unset when the flag was not given.
|
|
205
|
+
*/
|
|
206
|
+
lcov?: string;
|
|
202
207
|
/** `--dry-run`: `write` calls are announced and skipped. */
|
|
203
208
|
dryRun: boolean;
|
|
204
209
|
/** Report one line. The text is scrubbed of secrets before it is printed. */
|
|
@@ -248,4 +253,4 @@ export declare function describeNetworkError(err: unknown, timeoutMs: number): s
|
|
|
248
253
|
* earlier one failed is reported as not tried rather than failing a second time for the same reason.
|
|
249
254
|
*/
|
|
250
255
|
export declare function connectionProbe(input: ConnectionProbeInput): Probe;
|
|
251
|
-
export { Analytics, type AppConfig, Auth, AuthDescription, AuthError, AuthEvent, AuthEventType, AuthIdentity, AuthUser, CARDINALITY, type Capability, type CapabilityConfigPackage, CapabilityImpls, CapabilityKey, Cardinality, CardinalityFor, type ChromaticProjectConfig, Ci, CiRun, CiRunFilter, CiRunStatus, type ComposedPreset, ConfigError, ConfigFileError, ConnectionStringOptions, CreateAuthUserInput, DeployFunctionConfig, DeployFunctionResult, DeployScriptConfig, DeployScriptResult, Deployment, DeploymentProject, DeploymentProjectSettings, DeploymentRecord, DeploymentTarget, DeploymentTrigger, type DeriveProfileInput, Dns, DnsRecord, DnsRecordRequest, DnsRecordType, type DocsConfig, type DoctorConfig, ElevationRequiredError, EnsureRelayInput, EnsureRelayResult, EnsureResult, EnsureWebhookResult, EnsuredResource, type EnvConfig, Environment, EnvironmentReviewer, Environments, Errors, type EslintConfig, type FeatureResolver, type FeatureResolverConfig, type HolocronConfig, type HolocronProfile, Issue, IssueSearchFilter, Issues, LabelDef, LifecycleResult, LifecycleSlot, type LoadedConfig, type LogConfig, Logs, MissingTokenError, Monitoring, MonitoringAlertChannelInput, MonitoringAlertChannelResult, MonitoringAlertChannelState, MonitoringAssertion, MonitoringAssertionComparison, MonitoringAssertionSource, MonitoringCheck, MonitoringCheckInput, MonitoringHttpMethod, type MultiEntry, NormalizedAuthUser, Notifications, NotificationsAccess, NotificationsApplicationLayout, NotificationsChannelLayout, NotificationsDelivery, NotificationsEveryoneLayout, NotificationsLayout, NotificationsLinksLayout, NotificationsMember, NotificationsOnboardingLayout, NotificationsPinnedLayout, NotificationsServerLayout, NotificationsSignIn, NotificationsSignedIn, NotificationsWelcomeLayout, type PackageJsonLike, PagesConfig, ParseWebhookInput, type PluginProbes, type PluginToken, type Probe, type ProbeContext, type ProbeRow, ProviderApiError, ProviderIdentity, type ProviderOptions, PullRequest, REQUIRED_CAPABILITIES, type RawProviderEntry, type RawProvidersConfig, type RepoConfig, type RepoProperties, type RepoProtection, RepoRef, type RepoSecrets, type RepoSecretsSync, RepoSettings, type RepoVariables, type RequestOptions, type ResolveTokenConfig, type ResolveTokenInput, ResolvedCapability, type ResolvedHolocronConfig, type ResolvedProviderEntry, type ResolvedProvidersConfig, type ResolvedTuple, type RestClient, type RestClientConfig, Ruleset, SecretScope, Secrets, ServerInspection, type SingleEntry, Source, SourceBranch, SourceFile, SourceRepoInfo, SourceRulesetDetail, SourceSecurity, SourceTeamMember, StatusCategory, Storage, StorageBranch, type StorybookDeployProject, type TaskEntry, type TaskEntryConfig, TeamEntry, TeamPermission, type TelemetryConfig, type TokenResolver, Tooling, ToolingDoctorReport, TrackerDoctorReport, TrackerUser, Vault, type VerifyTokenFailure, type VerifyTokenResult, type VerifyTokenSuccess, WebhookDashboardInfo, WebhookVerificationError, Wiki, WikiProvisionOpts, WikiProxyConfig, Workers, type WorkflowWithConfig, compose, createRestClient, isMulti, resolveConfig, resolveEntry, resolvePluginPackage };
|
|
256
|
+
export { Analytics, type AppConfig, Auth, AuthDescription, AuthError, AuthEvent, AuthEventType, AuthIdentity, AuthUser, CARDINALITY, type Capability, type CapabilityConfigPackage, CapabilityImpls, CapabilityKey, Cardinality, CardinalityFor, type ChromaticProjectConfig, Ci, CiRun, CiRunFilter, CiRunStatus, type ComposedPreset, ConfigError, ConfigFileError, ConnectionStringOptions, CreateAuthUserInput, DeployFunctionConfig, DeployFunctionResult, DeployScriptConfig, DeployScriptResult, Deployment, DeploymentProject, DeploymentProjectSettings, DeploymentRecord, DeploymentTarget, DeploymentTrigger, type DeriveProfileInput, Dns, DnsRecord, DnsRecordRequest, DnsRecordType, type DocsConfig, type DoctorConfig, ElevationRequiredError, EnsureRelayInput, EnsureRelayResult, EnsureResult, EnsureWebhookResult, EnsuredResource, type EnvConfig, Environment, EnvironmentReviewer, Environments, Errors, type EslintConfig, type FeatureResolver, type FeatureResolverConfig, type HolocronConfig, type HolocronProfile, InspectRelayInput, Issue, IssueSearchFilter, Issues, LabelDef, LifecycleResult, LifecycleSlot, type LoadedConfig, type LogConfig, Logs, MissingTokenError, Monitoring, MonitoringAlertChannelInput, MonitoringAlertChannelResult, MonitoringAlertChannelState, MonitoringAssertion, MonitoringAssertionComparison, MonitoringAssertionSource, MonitoringCheck, MonitoringCheckInput, MonitoringHttpMethod, type MultiEntry, NormalizedAuthUser, Notifications, NotificationsAccess, NotificationsApplicationLayout, NotificationsChannelLayout, NotificationsDelivery, NotificationsEveryoneLayout, NotificationsLayout, NotificationsLinksLayout, NotificationsMember, NotificationsOnboardingLayout, NotificationsPinnedLayout, NotificationsServerLayout, NotificationsSignIn, NotificationsSignedIn, NotificationsWelcomeLayout, type PackageJsonLike, PagesConfig, ParseWebhookInput, type PluginProbes, type PluginToken, type Probe, type ProbeContext, type ProbeRow, ProviderApiError, ProviderIdentity, type ProviderOptions, PullRequest, REQUIRED_CAPABILITIES, type RawProviderEntry, type RawProvidersConfig, RelayState, type RepoConfig, type RepoProperties, type RepoProtection, RepoRef, type RepoSecrets, type RepoSecretsSync, RepoSettings, type RepoValidationConfig, type RepoVariables, type RequestOptions, type ResolveTokenConfig, type ResolveTokenInput, ResolvedCapability, type ResolvedHolocronConfig, type ResolvedProviderEntry, type ResolvedProvidersConfig, type ResolvedTuple, type RestClient, type RestClientConfig, Ruleset, SecretScope, Secrets, ServerInspection, type SingleEntry, Source, SourceBranch, SourceFile, SourceRepoInfo, SourceRulesetDetail, SourceSecurity, SourceTeamMember, StatusCategory, Storage, StorageBranch, type StorybookDeployProject, type TaskEntry, type TaskEntryConfig, TeamEntry, TeamPermission, type TelemetryConfig, type TokenResolver, Tooling, ToolingDoctorReport, TrackerDoctorReport, TrackerUser, Vault, type VerifyTokenFailure, type VerifyTokenResult, type VerifyTokenSuccess, WebhookDashboardInfo, WebhookVerificationError, Wiki, WikiProvisionOpts, WikiProxyConfig, WorkerScriptState, Workers, type WorkflowWithConfig, compose, createRestClient, isMulti, resolveConfig, resolveEntry, resolvePluginPackage };
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CARDINALITY, ElevationRequiredError, MissingTokenError, ProviderApiError, REQUIRED_CAPABILITIES, WebhookVerificationError, isMulti } from "./plugin/capabilities.mjs";
|
|
2
|
-
import { a as resolvePluginPackage, i as resolveEntry, n as ConfigError, r as resolveConfig, t as compose } from "./compose-
|
|
2
|
+
import { a as resolvePluginPackage, i as resolveEntry, n as ConfigError, r as resolveConfig, t as compose } from "./compose-DxOjvMVt.mjs";
|
|
3
3
|
import { AuthError, createResolveToken as createResolveToken$1, createRestClient } from "@theholocron/http-client";
|
|
4
4
|
import { createEnvLookup, withEnvPrefix } from "@theholocron/env-utils";
|
|
5
5
|
import { Entry, findCredentials } from "@napi-rs/keyring";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
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, 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, 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, Workers, isMulti };
|
|
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
|
+
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 };
|
package/dist/presets.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as Capability, r as ComposedPreset, t as compose } from "./index-
|
|
1
|
+
import { n as Capability, r as ComposedPreset, t as compose } from "./index-4Xmvf7KG.mjs";
|
|
2
2
|
interface AuditOptions {
|
|
3
3
|
/** Enable Knip unused-export analysis (default: false). */
|
|
4
4
|
knip?: boolean;
|
package/dist/presets.mjs
CHANGED
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.278",
|
|
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/
|
|
56
|
-
"@theholocron/
|
|
57
|
-
"@theholocron/
|
|
58
|
-
"@theholocron/astromech": "5.0.0-alpha.
|
|
59
|
-
"@theholocron/git-utils": "^1.16.1-alpha.
|
|
60
|
-
"@theholocron/github-client": "^1.58.0-alpha.3",
|
|
61
|
-
"@theholocron/json-utils": "^1.16.1-alpha.1",
|
|
55
|
+
"@theholocron/env-utils": "^1.16.1-alpha.3",
|
|
56
|
+
"@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
|
+
"@theholocron/git-utils": "^1.16.1-alpha.3",
|
|
62
60
|
"@theholocron/http-client": "^1.58.0-alpha.3",
|
|
63
|
-
"@theholocron/
|
|
64
|
-
"@theholocron/
|
|
65
|
-
"@theholocron/
|
|
61
|
+
"@theholocron/github-client": "^1.58.0-alpha.3",
|
|
62
|
+
"@theholocron/json-utils": "^1.16.1-alpha.3",
|
|
63
|
+
"@theholocron/misc-utils": "^1.16.1-alpha.3",
|
|
64
|
+
"@theholocron/pkg-utils": "^1.16.1-alpha.3",
|
|
65
|
+
"@theholocron/observability": "^0.6.1-alpha.1"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@types/node": "^26",
|
|
@@ -76,10 +76,10 @@
|
|
|
76
76
|
"tsx": "4.23.15",
|
|
77
77
|
"typescript": "^5.9.3",
|
|
78
78
|
"vitest": "^5.0.5",
|
|
79
|
-
"@theholocron/
|
|
80
|
-
"@theholocron/
|
|
81
|
-
"@theholocron/tsconfig": "^8.9.0-alpha.
|
|
82
|
-
"@theholocron/vitest-config": "^8.9.0-alpha.
|
|
79
|
+
"@theholocron/eslint-config": "^8.9.0-alpha.4",
|
|
80
|
+
"@theholocron/rollup-plugin-transform-template": "^8.9.0-alpha.4",
|
|
81
|
+
"@theholocron/tsconfig": "^8.9.0-alpha.4",
|
|
82
|
+
"@theholocron/vitest-config": "^8.9.0-alpha.4"
|
|
83
83
|
},
|
|
84
84
|
"engines": {
|
|
85
85
|
"node": ">=22.0.0"
|