@theholocron/cli 5.0.0-alpha.246 → 5.0.0-alpha.248

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,5 +1,5 @@
1
1
  import { CARDINALITY, REQUIRED_CAPABILITIES } from "./plugin/capabilities.mjs";
2
- //#region src/config/config/config.ts
2
+ // src/config/config/config.ts
3
3
  var ConfigError = class extends Error {
4
4
  name = "ConfigError";
5
5
  };
@@ -107,8 +107,7 @@ function resolveConfig(raw) {
107
107
  eslint: raw.eslint
108
108
  };
109
109
  }
110
- //#endregion
111
- //#region src/config/compose/compose.ts
110
+ // src/config/compose/compose.ts
112
111
  function taskName(e) {
113
112
  return typeof e === "string" ? e : e.name;
114
113
  }
@@ -207,5 +206,4 @@ function compose(...args) {
207
206
  ...docs !== void 0 ? { docs } : {}
208
207
  };
209
208
  }
210
- //#endregion
211
209
  export { resolvePluginPackage as a, resolveEntry as i, ConfigError as n, resolveConfig as r, compose as t };
@@ -1,5 +1,4 @@
1
1
  import { ProviderApiError } from "@theholocron/http-client";
2
- //#region src/plugin/capabilities/capabilities.type.d.ts
3
2
  /**
4
3
  * Capability interfaces — the contracts that providers implement.
5
4
  *
@@ -1565,8 +1564,6 @@ interface CapabilityImpls {
1565
1564
  type CardinalityFor<K extends CapabilityKey> = (typeof CARDINALITY)[K];
1566
1565
  /** Resolved runtime shape: single → one impl; many → array. */
1567
1566
  type ResolvedCapability<K extends CapabilityKey> = CardinalityFor<K> extends "many" ? CapabilityImpls[K][] : CapabilityImpls[K];
1568
- //#endregion
1569
- //#region src/plugin/capabilities/capabilities.d.ts
1570
1567
  declare const CARDINALITY: {
1571
1568
  readonly source: "single";
1572
1569
  readonly ci: "single";
@@ -1632,5 +1629,4 @@ declare class WebhookVerificationError extends Error {
1632
1629
  name: string;
1633
1630
  }
1634
1631
  declare function isMulti<K extends CapabilityKey>(key: K): CardinalityFor<K> extends "many" ? true : false;
1635
- //#endregion
1636
1632
  export { Logs as $, Workers as $t, DeploymentProjectSettings as A, RepoSettings as At, EnsureResult as B, Storage as Bt, CreateAuthUserInput as C, NotificationsSignedIn as Ct, DeployScriptResult as D, ProviderIdentity as Dt, DeployScriptConfig as E, ParseWebhookInput as Et, DnsRecord as F, ServerInspection as Ft, Environments as G, ToolingDoctorReport as Gt, EnsuredResource as H, TeamEntry as Ht, DnsRecordRequest as I, Source as It, IssueSearchFilter as J, Vault as Jt, Errors as K, TrackerDoctorReport as Kt, DnsRecordType as L, SourceFile as Lt, DeploymentTarget as M, Ruleset as Mt, DeploymentTrigger as N, SecretScope as Nt, Deployment as O, PullRequest as Ot, Dns as P, Secrets as Pt, LifecycleSlot as Q, WikiProxyConfig as Qt, EnsureRelayInput as R, SourceTeamMember as Rt, ConnectionStringOptions as S, NotificationsSignIn as St, DeployFunctionResult as T, PagesConfig as Tt, Environment as U, TeamPermission as Ut, EnsureWebhookResult as V, StorageBranch as Vt, EnvironmentReviewer as W, Tooling as Wt, LabelDef as X, Wiki as Xt, Issues as Y, WebhookDashboardInfo as Yt, LifecycleResult as Z, WikiProvisionOpts as Zt, CardinalityFor as _, NotificationsLinksLayout as _t, WebhookVerificationError as a, MonitoringAssertionSource as at, CiRunFilter as b, NotificationsPinnedLayout as bt, Auth as c, MonitoringHttpMethod as ct, AuthEventType as d, NotificationsAccess as dt, Monitoring as et, AuthIdentity as f, NotificationsApplicationLayout as ft, Cardinality as g, NotificationsLayout as gt, CapabilityKey as h, NotificationsEveryoneLayout as ht, REQUIRED_CAPABILITIES as i, MonitoringAssertionComparison as it, DeploymentRecord as j, ResolvedCapability as jt, DeploymentProject as k, RepoRef as kt, AuthDescription as l, NormalizedAuthUser as lt, CapabilityImpls as m, NotificationsDelivery as mt, ElevationRequiredError as n, MonitoringAlertChannelResult as nt, isMulti as o, MonitoringCheck as ot, AuthUser as p, NotificationsChannelLayout as pt, Issue as q, TrackerUser as qt, ProviderApiError as r, MonitoringAssertion as rt, Analytics as s, MonitoringCheckInput as st, CARDINALITY as t, MonitoringAlertChannelInput as tt, AuthEvent as u, Notifications as ut, Ci as v, NotificationsMember as vt, DeployFunctionConfig as w, NotificationsWelcomeLayout as wt, CiRunStatus as x, NotificationsServerLayout as xt, CiRun as y, NotificationsOnboardingLayout as yt, EnsureRelayResult as z, StatusCategory as zt };
@@ -1,6 +1,5 @@
1
- import { Ht as TeamEntry, Tt as PagesConfig, h as CapabilityKey } from "./index-DvQb3PcL.mjs";
1
+ import { Ht as TeamEntry, Tt as PagesConfig, h as CapabilityKey } from "./index-BD9zG_5Z.mjs";
2
2
  import { LogLevel } from "@theholocron/observability/core";
3
- //#region src/config/config/config.type.d.ts
4
3
  /** Structured-logging config. The Axiom **token** never lives here — only in
5
4
  * env vars or the OS keyring — but the non-secret dataset name may. */
6
5
  interface LogConfig {
@@ -553,8 +552,6 @@ interface ResolvedHolocronConfig {
553
552
  telemetry?: TelemetryConfig;
554
553
  eslint?: EslintConfig;
555
554
  }
556
- //#endregion
557
- //#region src/config/config/config.d.ts
558
555
  declare class ConfigError extends Error {
559
556
  name: string;
560
557
  }
@@ -566,8 +563,6 @@ declare class ConfigError extends Error {
566
563
  declare function resolvePluginPackage(provider: string): string;
567
564
  declare function resolveEntry(key: CapabilityKey, raw: RawProviderEntry): ResolvedProviderEntry;
568
565
  declare function resolveConfig(raw: HolocronConfig): ResolvedHolocronConfig;
569
- //#endregion
570
- //#region src/config/compose/compose.type.d.ts
571
566
  type TaskEntry = NonNullable<HolocronConfig["tasks"]>[number];
572
567
  /** A single composable capability fragment. */
573
568
  interface Capability {
@@ -606,8 +601,6 @@ interface ComposedPreset {
606
601
  domain?: string;
607
602
  docs?: DocsConfig;
608
603
  }
609
- //#endregion
610
- //#region src/config/compose/compose.d.ts
611
604
  /**
612
605
  * Merge any number of capability fragments into a single preset object that
613
606
  * spreads directly into `defineConfig()`.
@@ -630,5 +623,4 @@ interface ComposedPreset {
630
623
  * const preset = compose(node(), nextjs());
631
624
  */
632
625
  declare function compose(...args: (Capability | Capability[])[]): ComposedPreset;
633
- //#endregion
634
626
  export { SingleEntry as A, RepoProperties as C, ResolvedProviderEntry as D, ResolvedHolocronConfig as E, TaskEntryConfig as M, TelemetryConfig as N, ResolvedProvidersConfig as O, WorkflowWithConfig as P, RepoConfig as S, RepoVariables 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, StorybookDeployProject as j, ResolvedTuple 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 };
package/dist/index.d.mts CHANGED
@@ -1,11 +1,10 @@
1
- import { $ as Logs, $t as Workers, A as DeploymentProjectSettings, At as RepoSettings, B as EnsureResult, Bt as Storage, C as CreateAuthUserInput, Ct as NotificationsSignedIn, D as DeployScriptResult, Dt as ProviderIdentity, E as DeployScriptConfig, Et as ParseWebhookInput, F as DnsRecord, Ft as ServerInspection, G as Environments, Gt as ToolingDoctorReport, H as EnsuredResource, Ht as TeamEntry, I as DnsRecordRequest, It as Source, J as IssueSearchFilter, Jt as Vault, K as Errors, Kt as TrackerDoctorReport, L as DnsRecordType, Lt as SourceFile, M as DeploymentTarget, Mt as Ruleset, N as DeploymentTrigger, Nt as SecretScope, O as Deployment, Ot as PullRequest, P as Dns, Pt as Secrets, Q as LifecycleSlot, Qt as WikiProxyConfig, R as EnsureRelayInput, Rt as SourceTeamMember, S as ConnectionStringOptions, St as NotificationsSignIn, T as DeployFunctionResult, Tt as PagesConfig, U as Environment, Ut as TeamPermission, V as EnsureWebhookResult, Vt as StorageBranch, W as EnvironmentReviewer, Wt as Tooling, X as LabelDef, Xt as Wiki, Y as Issues, Yt as WebhookDashboardInfo, Z as LifecycleResult, Zt as WikiProvisionOpts, _ as CardinalityFor, _t as NotificationsLinksLayout, a as WebhookVerificationError, at as MonitoringAssertionSource, b as CiRunFilter, bt as NotificationsPinnedLayout, c as Auth, ct as MonitoringHttpMethod, d as AuthEventType, dt as NotificationsAccess, et as Monitoring, f as AuthIdentity, ft as NotificationsApplicationLayout, g as Cardinality, gt as NotificationsLayout, h as CapabilityKey, ht as NotificationsEveryoneLayout, i as REQUIRED_CAPABILITIES, it as MonitoringAssertionComparison, j as DeploymentRecord, jt as ResolvedCapability, k as DeploymentProject, kt as RepoRef, l as AuthDescription, lt as NormalizedAuthUser, m as CapabilityImpls, mt as NotificationsDelivery, n as ElevationRequiredError, nt as MonitoringAlertChannelResult, o as isMulti, ot as MonitoringCheck, p as AuthUser, pt as NotificationsChannelLayout, q as Issue, qt as TrackerUser, r as ProviderApiError, rt as MonitoringAssertion, s as Analytics, st as MonitoringCheckInput, t as CARDINALITY, tt as MonitoringAlertChannelInput, u as AuthEvent, ut as Notifications, v as Ci, vt as NotificationsMember, w as DeployFunctionConfig, wt as NotificationsWelcomeLayout, x as CiRunStatus, xt as NotificationsServerLayout, y as CiRun, yt as NotificationsOnboardingLayout, z as EnsureRelayResult, zt as StatusCategory } from "./index-DvQb3PcL.mjs";
2
- import { A as SingleEntry, C as RepoProperties, D as ResolvedProviderEntry, E as ResolvedHolocronConfig, M as TaskEntryConfig, N as TelemetryConfig, O as ResolvedProvidersConfig, P as WorkflowWithConfig, S as RepoConfig, T as RepoVariables, _ 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 StorybookDeployProject, k as ResolvedTuple, 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-Cd_9v4b8.mjs";
1
+ import { $ as Logs, $t as Workers, A as DeploymentProjectSettings, At as RepoSettings, B as EnsureResult, Bt as Storage, C as CreateAuthUserInput, Ct as NotificationsSignedIn, D as DeployScriptResult, Dt as ProviderIdentity, E as DeployScriptConfig, Et as ParseWebhookInput, F as DnsRecord, Ft as ServerInspection, G as Environments, Gt as ToolingDoctorReport, H as EnsuredResource, Ht as TeamEntry, I as DnsRecordRequest, It as Source, J as IssueSearchFilter, Jt as Vault, K as Errors, Kt as TrackerDoctorReport, L as DnsRecordType, Lt as SourceFile, M as DeploymentTarget, Mt as Ruleset, N as DeploymentTrigger, Nt as SecretScope, O as Deployment, Ot as PullRequest, P as Dns, Pt as Secrets, Q as LifecycleSlot, Qt as WikiProxyConfig, R as EnsureRelayInput, Rt as SourceTeamMember, S as ConnectionStringOptions, St as NotificationsSignIn, T as DeployFunctionResult, Tt as PagesConfig, U as Environment, Ut as TeamPermission, V as EnsureWebhookResult, Vt as StorageBranch, W as EnvironmentReviewer, Wt as Tooling, X as LabelDef, Xt as Wiki, Y as Issues, Yt as WebhookDashboardInfo, Z as LifecycleResult, Zt as WikiProvisionOpts, _ as CardinalityFor, _t as NotificationsLinksLayout, a as WebhookVerificationError, at as MonitoringAssertionSource, b as CiRunFilter, bt as NotificationsPinnedLayout, c as Auth, ct as MonitoringHttpMethod, d as AuthEventType, dt as NotificationsAccess, et as Monitoring, f as AuthIdentity, ft as NotificationsApplicationLayout, g as Cardinality, gt as NotificationsLayout, h as CapabilityKey, ht as NotificationsEveryoneLayout, i as REQUIRED_CAPABILITIES, it as MonitoringAssertionComparison, j as DeploymentRecord, jt as ResolvedCapability, k as DeploymentProject, kt as RepoRef, l as AuthDescription, lt as NormalizedAuthUser, m as CapabilityImpls, mt as NotificationsDelivery, n as ElevationRequiredError, nt as MonitoringAlertChannelResult, o as isMulti, ot as MonitoringCheck, p as AuthUser, pt as NotificationsChannelLayout, q as Issue, qt as TrackerUser, r as ProviderApiError, rt as MonitoringAssertion, s as Analytics, st as MonitoringCheckInput, t as CARDINALITY, tt as MonitoringAlertChannelInput, u as AuthEvent, ut as Notifications, v as Ci, vt as NotificationsMember, w as DeployFunctionConfig, wt as NotificationsWelcomeLayout, x as CiRunStatus, xt as NotificationsServerLayout, y as CiRun, yt as NotificationsOnboardingLayout, z as EnsureRelayResult, zt as StatusCategory } from "./index-BD9zG_5Z.mjs";
2
+ import { A as SingleEntry, C as RepoProperties, D as ResolvedProviderEntry, E as ResolvedHolocronConfig, M as TaskEntryConfig, N as TelemetryConfig, O as ResolvedProvidersConfig, P as WorkflowWithConfig, S as RepoConfig, T as RepoVariables, _ 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 StorybookDeployProject, k as ResolvedTuple, 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-BK5cc9WI.mjs";
3
3
  import { AuthError, RequestOptions, ResolveTokenConfig as ResolveTokenConfig$1, ResolveTokenInput, RestClient, RestClientConfig, createRestClient } from "@theholocron/http-client";
4
4
  import { PackageJson } from "@theholocron/pkg-utils";
5
5
  import { ConfigFileError } from "@theholocron/datapad";
6
6
  import "@theholocron/observability/core";
7
7
  import { WorkspacePackage } from "@theholocron/astromech";
8
- //#region src/auth/auth-resolver/auth-resolver.type.d.ts
9
8
  type ResolveTokenConfig = Omit<ResolveTokenConfig$1, "getKeyringToken">;
10
9
  interface FeatureResolverConfig {
11
10
  /** Env var name for this feature, e.g. `"HOLOCRON_ISSUES_TOKEN"`. */
@@ -15,11 +14,9 @@ interface FeatureResolverConfig {
15
14
  /** The vendor named in the "no token" message. Default `GitHub`. */
16
15
  vendor?: string;
17
16
  }
18
- //#endregion
19
- //#region src/auth/auth-resolver/auth-resolver.d.ts
20
17
  /** Wraps `createResolveToken` from `@theholocron/http` and injects the
21
18
  * system keyring so plugins stay at a one-liner call site. */
22
- declare function createResolveToken(config: ResolveTokenConfig): (input?: ResolveTokenInput) => string;
19
+ export declare function createResolveToken(config: ResolveTokenConfig): (input?: ResolveTokenInput) => string;
23
20
  /**
24
21
  * Build a strict, single-feature token resolver.
25
22
  *
@@ -27,9 +24,7 @@ declare function createResolveToken(config: ResolveTokenConfig): (input?: Resolv
27
24
  * No broad-token fallback — if the feature-specific token is absent the
28
25
  * operation fails with a message naming the exact env var to set.
29
26
  */
30
- declare function createFeatureResolver(config: FeatureResolverConfig): (input?: ResolveTokenInput) => string;
31
- //#endregion
32
- //#region src/auth/keyring/keyring.d.ts
27
+ export declare function createFeatureResolver(config: FeatureResolverConfig): (input?: ResolveTokenInput) => string;
33
28
  /**
34
29
  * Keyring-backed bootstrap credential store.
35
30
  *
@@ -52,28 +47,26 @@ declare function createFeatureResolver(config: FeatureResolverConfig): (input?:
52
47
  * Store or overwrite a bootstrap token for a provider. Returns true on
53
48
  * success, false when the underlying keyring is unsupported or errored.
54
49
  */
55
- declare function setToken(provider: string, token: string): boolean;
50
+ export declare function setToken(provider: string, token: string): boolean;
56
51
  /**
57
52
  * Read the bootstrap token for a provider. Returns `null` for both
58
53
  * "not stored" and "keyring unavailable" — callers can treat them the
59
54
  * same way (fall through to env-var precedence).
60
55
  */
61
- declare function getToken(provider: string): string | null;
56
+ export declare function getToken(provider: string): string | null;
62
57
  /**
63
58
  * Delete a stored token. Returns true when a token was removed, false
64
59
  * when there was nothing to delete or the keyring is unavailable.
65
60
  * Distinguishing the two cases isn't worth the surface area — the
66
61
  * command output makes the situation clear either way.
67
62
  */
68
- declare function deleteToken(provider: string): boolean;
63
+ export declare function deleteToken(provider: string): boolean;
69
64
  /**
70
65
  * List provider slugs with a stored token in this service scope.
71
66
  * Uses the library's `findCredentials(service)` — supported on all
72
67
  * platforms the underlying credential store supports.
73
68
  */
74
- declare function listStoredProviders(): string[];
75
- //#endregion
76
- //#region src/commands/auth/auth.type.d.ts
69
+ export declare function listStoredProviders(): string[];
77
70
  interface VerifyTokenSuccess {
78
71
  ok: true;
79
72
  /** "workplace: acme" / "user: cnewton@x" — surfaced in success output. */
@@ -85,18 +78,12 @@ interface VerifyTokenFailure {
85
78
  message: string;
86
79
  }
87
80
  type VerifyTokenResult = VerifyTokenSuccess | VerifyTokenFailure;
88
- //#endregion
89
- //#region src/config/define-config/define-config.d.ts
90
- declare function defineConfig(config: HolocronConfig): HolocronConfig;
91
- //#endregion
92
- //#region src/config/load-config/load-config.type.d.ts
81
+ export declare function defineConfig(config: HolocronConfig): HolocronConfig;
93
82
  interface LoadedConfig {
94
83
  resolved: ResolvedHolocronConfig;
95
84
  /** Absolute path to the file the config was read from. */
96
85
  filepath: string;
97
86
  }
98
- //#endregion
99
- //#region src/config/load-config/load-config.d.ts
100
87
  /**
101
88
  * Read + parse + resolve `holocron.config.*` starting from the given
102
89
  * directory, walking up through ancestors to the nearest `.git` boundary
@@ -106,9 +93,7 @@ interface LoadedConfig {
106
93
  * Throws {@link ConfigFileError} when nothing is found or a file cannot
107
94
  * be loaded, or `ConfigError` when the config fails schema checks.
108
95
  */
109
- declare function loadConfig(cwd: string): Promise<LoadedConfig>;
110
- //#endregion
111
- //#region src/commands/setup/derived-properties/derived-properties.type.d.ts
96
+ export declare function loadConfig(cwd: string): Promise<LoadedConfig>;
112
97
  /**
113
98
  * Derived custom-properties (#677). Unlike the existing 6 GitHub
114
99
  * custom-properties fields (`lifecycle`, `open_source`, `runtime_environment`,
@@ -129,8 +114,6 @@ interface DeriveProfileInput {
129
114
  /** `packages/*` package.json contents, monorepo repos only — used to find the primary published artifact. */
130
115
  workspacePackageJsons: PackageJsonLike[];
131
116
  }
132
- //#endregion
133
- //#region src/commands/setup/derived-properties/derived-properties.d.ts
134
117
  /**
135
118
  * Repo archetype, in priority order:
136
119
  * 1. `*-template` repo name → `template` (independent of package shape).
@@ -153,7 +136,7 @@ interface DeriveProfileInput {
153
136
  * 6. Private, non-publishable, non-docs → `app`.
154
137
  * 7. Otherwise, a single publishable package → `library`.
155
138
  */
156
- declare function deriveProfile(input: DeriveProfileInput): HolocronProfile;
139
+ export declare function deriveProfile(input: DeriveProfileInput): HolocronProfile;
157
140
  /**
158
141
  * Detected build/framework tooling — the literal "does this repo need
159
142
  * next/vite/tsdown" signal `holocron.config.ts` has no field for today
@@ -161,17 +144,17 @@ declare function deriveProfile(input: DeriveProfileInput): HolocronProfile;
161
144
  * Curated table, not exhaustive by design — add to `KNOWN_STACK_DEPS` as new
162
145
  * frameworks show up rather than trying to detect anything on npm.
163
146
  */
164
- declare function deriveStack(pkg: PackageJsonLike | null): string[];
147
+ export declare function deriveStack(pkg: PackageJsonLike | null): string[];
165
148
  /** The provider capability keys actually wired in `providers: {}` — zero heuristics. */
166
- declare function deriveCapabilities(providers: ResolvedProvidersConfig | undefined): string[];
167
- declare function deriveCompliance(capabilities: readonly string[]): "compliant" | "non-compliant";
149
+ export declare function deriveCapabilities(providers: ResolvedProvidersConfig | undefined): string[];
150
+ export declare function deriveCompliance(capabilities: readonly string[]): "compliant" | "non-compliant";
168
151
  /**
169
152
  * The Phase B refinement `deriveCompliance()`'s own doc comment names —
170
153
  * *why* a repo is non-compliant, not just that it is. `[]` when compliant.
171
154
  * Same `REQUIRED_BASELINE` `deriveCompliance()` checks against — one
172
155
  * table, not two independently-maintained baselines.
173
156
  */
174
- declare function missingCapabilities(capabilities: readonly string[]): string[];
157
+ export declare function missingCapabilities(capabilities: readonly string[]): string[];
175
158
  /**
176
159
  * Reads each workspace package's actual `package.json` content (not just
177
160
  * `readWorkspacePackages()`'s `{ slug, name, dir }` — `deriveProfile()`'s
@@ -179,9 +162,7 @@ declare function missingCapabilities(capabilities: readonly string[]): string[];
179
162
  * Missing/invalid files are skipped, matching `readWorkspacePackages()`'s
180
163
  * own soft-fail behavior.
181
164
  */
182
- declare function readWorkspacePackageJsons(repoRoot: string, workspacePackages: readonly WorkspacePackage[]): Promise<PackageJsonLike[]>;
183
- //#endregion
184
- //#region src/plugin/probe/probe.type.d.ts
165
+ export declare function readWorkspacePackageJsons(repoRoot: string, workspacePackages: readonly WorkspacePackage[]): Promise<PackageJsonLike[]>;
185
166
  /** One line a probe reports: `info` for a fact, `ok` / `fail` for a result, `heading` to title the rows that follow. */
186
167
  interface ProbeRow {
187
168
  status: "ok" | "fail" | "info" | "heading";
@@ -213,9 +194,7 @@ interface Probe {
213
194
  }
214
195
  /** A plugin's probes by name (kebab-case), as returned from `createPlugin` next to `capabilities`. */
215
196
  type PluginProbes = Record<string, Probe>;
216
- //#endregion
217
- //#region src/plugin/connection-probe/connection-probe.d.ts
218
- interface ConnectionProbeInput {
197
+ export interface ConnectionProbeInput {
219
198
  /** How the provider is named in output, e.g. `Axiom`. */
220
199
  provider: string;
221
200
  /** A URL on the provider's API host. Without one, only the token is checked (a provider that has no HTTP API of its own). */
@@ -234,12 +213,11 @@ interface ConnectionProbeInput {
234
213
  timeoutMs?: number;
235
214
  }
236
215
  /** A network failure in plain words, with what usually causes it. Never includes anything from a request. */
237
- declare function describeNetworkError(err: unknown, timeoutMs: number): string;
216
+ export declare function describeNetworkError(err: unknown, timeoutMs: number): string;
238
217
  /**
239
218
  * The `connection` probe every provider offers, for telling a network problem from a credential problem: does the name
240
219
  * resolve, does the host answer, is there a token, and does the provider accept it. A step that cannot work because an
241
220
  * earlier one failed is reported as not tried rather than failing a second time for the same reason.
242
221
  */
243
- declare function connectionProbe(input: ConnectionProbeInput): Probe;
244
- //#endregion
245
- 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, ConnectionProbeInput, 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 FeatureResolverConfig, type HolocronConfig, type HolocronProfile, Issue, IssueSearchFilter, Issues, LabelDef, LifecycleResult, LifecycleSlot, type LoadedConfig, type LogConfig, Logs, Monitoring, MonitoringAlertChannelInput, MonitoringAlertChannelResult, 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 Probe, type ProbeContext, type ProbeRow, ProviderApiError, ProviderIdentity, type ProviderOptions, PullRequest, REQUIRED_CAPABILITIES, type RawProviderEntry, type RawProvidersConfig, type RepoConfig, type RepoProperties, type RepoProtection, RepoRef, 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, SourceFile, SourceTeamMember, StatusCategory, Storage, StorageBranch, type StorybookDeployProject, type TaskEntry, type TaskEntryConfig, TeamEntry, TeamPermission, type TelemetryConfig, Tooling, ToolingDoctorReport, TrackerDoctorReport, TrackerUser, Vault, type VerifyTokenFailure, type VerifyTokenResult, type VerifyTokenSuccess, WebhookDashboardInfo, WebhookVerificationError, Wiki, WikiProvisionOpts, WikiProxyConfig, Workers, type WorkflowWithConfig, compose, connectionProbe, createFeatureResolver, createResolveToken, createRestClient, defineConfig, deleteToken, deriveCapabilities, deriveCompliance, deriveProfile, deriveStack, describeNetworkError, getToken, isMulti, listStoredProviders, loadConfig, missingCapabilities, readWorkspacePackageJsons, resolveConfig, resolveEntry, resolvePluginPackage, setToken };
222
+ export declare function connectionProbe(input: ConnectionProbeInput): Probe;
223
+ 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 FeatureResolverConfig, type HolocronConfig, type HolocronProfile, Issue, IssueSearchFilter, Issues, LabelDef, LifecycleResult, LifecycleSlot, type LoadedConfig, type LogConfig, Logs, Monitoring, MonitoringAlertChannelInput, MonitoringAlertChannelResult, 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 Probe, type ProbeContext, type ProbeRow, ProviderApiError, ProviderIdentity, type ProviderOptions, PullRequest, REQUIRED_CAPABILITIES, type RawProviderEntry, type RawProvidersConfig, type RepoConfig, type RepoProperties, type RepoProtection, RepoRef, 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, SourceFile, SourceTeamMember, StatusCategory, Storage, StorageBranch, type StorybookDeployProject, type TaskEntry, type TaskEntryConfig, TeamEntry, TeamPermission, type TelemetryConfig, 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 };
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { CARDINALITY, ElevationRequiredError, 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-Cao-W6Mu.mjs";
2
+ import { a as resolvePluginPackage, i as resolveEntry, n as ConfigError, r as resolveConfig, t as compose } from "./compose-DFW8ftHT.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";
@@ -9,7 +9,7 @@ import { loadTasksConfig } from "@theholocron/astromech/config";
9
9
  import { ConfigFileError, ConfigFileError as ConfigFileError$1, loadConfigFile } from "@theholocron/datapad";
10
10
  import { readGitRemote } from "@theholocron/git-utils";
11
11
  import { lookup } from "node:dns/promises";
12
- //#region src/env/env.ts
12
+ // src/env/env.ts
13
13
  /** Singleton env for simple global lookups throughout the CLI. */
14
14
  const env = createEnvLookup();
15
15
  withEnvPrefix(env, "HOLOCRON");
@@ -20,8 +20,7 @@ withEnvPrefix(env, "HOLOCRON");
20
20
  function makeEnv(source) {
21
21
  return createEnvLookup(source);
22
22
  }
23
- //#endregion
24
- //#region src/auth/keyring/keyring.ts
23
+ // src/auth/keyring/keyring.ts
25
24
  /**
26
25
  * Keyring-backed bootstrap credential store.
27
26
  *
@@ -90,8 +89,7 @@ function listStoredProviders() {
90
89
  return [];
91
90
  }
92
91
  }
93
- //#endregion
94
- //#region src/auth/auth-resolver/auth-resolver.ts
92
+ // src/auth/auth-resolver/auth-resolver.ts
95
93
  /** Wraps `createResolveToken` from `@theholocron/http` and injects the
96
94
  * system keyring so plugins stay at a one-liner call site. */
97
95
  function createResolveToken(config) {
@@ -116,8 +114,7 @@ function createFeatureResolver(config) {
116
114
  return token;
117
115
  };
118
116
  }
119
- //#endregion
120
- //#region src/commands/setup/derived-properties/derived-properties.ts
117
+ // src/commands/setup/derived-properties/derived-properties.ts
121
118
  /**
122
119
  * Repo archetype, in priority order:
123
120
  * 1. `*-template` repo name → `template` (independent of package shape).
@@ -223,13 +220,11 @@ async function readWorkspacePackageJsons(repoRoot, workspacePackages) {
223
220
  }
224
221
  return results;
225
222
  }
226
- //#endregion
227
- //#region src/config/define-config/define-config.ts
223
+ // src/config/define-config/define-config.ts
228
224
  function defineConfig(config) {
229
225
  return config;
230
226
  }
231
- //#endregion
232
- //#region src/config/load-config/load-config.ts
227
+ // src/config/load-config/load-config.ts
233
228
  /**
234
229
  * `holocron.config.{ts,js,mjs,cjs,json}` loader.
235
230
  *
@@ -286,8 +281,7 @@ async function readPackageJsonName(dir) {
286
281
  const name = (await readPackageJson(dir))?.name;
287
282
  return name === void 0 ? void 0 : name.replace(/^@[^/]+\//, "");
288
283
  }
289
- //#endregion
290
- //#region src/plugin/connection-probe/connection-probe.ts
284
+ // src/plugin/connection-probe/connection-probe.ts
291
285
  const TLS_CODES = /* @__PURE__ */ new Set([
292
286
  "UNABLE_TO_VERIFY_LEAF_SIGNATURE",
293
287
  "SELF_SIGNED_CERT_IN_CHAIN",
@@ -424,5 +418,4 @@ function connectionProbe(input) {
424
418
  }
425
419
  };
426
420
  }
427
- //#endregion
428
421
  export { AuthError, CARDINALITY, ConfigError, ConfigFileError, ElevationRequiredError, ProviderApiError, REQUIRED_CAPABILITIES, WebhookVerificationError, compose, connectionProbe, createFeatureResolver, createResolveToken, createRestClient, defineConfig, deleteToken, deriveCapabilities, deriveCompliance, deriveProfile, deriveStack, describeNetworkError, getToken, isMulti, listStoredProviders, loadConfig, missingCapabilities, readWorkspacePackageJsons, resolveConfig, resolveEntry, resolvePluginPackage, setToken };
@@ -1,2 +1,2 @@
1
- import { $ as Logs, $t as Workers, A as DeploymentProjectSettings, At as RepoSettings, B as EnsureResult, Bt as Storage, C as CreateAuthUserInput, Ct as NotificationsSignedIn, D as DeployScriptResult, Dt as ProviderIdentity, E as DeployScriptConfig, Et as ParseWebhookInput, F as DnsRecord, Ft as ServerInspection, G as Environments, Gt as ToolingDoctorReport, H as EnsuredResource, Ht as TeamEntry, I as DnsRecordRequest, It as Source, J as IssueSearchFilter, Jt as Vault, K as Errors, Kt as TrackerDoctorReport, L as DnsRecordType, Lt as SourceFile, M as DeploymentTarget, Mt as Ruleset, N as DeploymentTrigger, Nt as SecretScope, O as Deployment, Ot as PullRequest, P as Dns, Pt as Secrets, Q as LifecycleSlot, Qt as WikiProxyConfig, R as EnsureRelayInput, Rt as SourceTeamMember, S as ConnectionStringOptions, St as NotificationsSignIn, T as DeployFunctionResult, Tt as PagesConfig, U as Environment, Ut as TeamPermission, V as EnsureWebhookResult, Vt as StorageBranch, W as EnvironmentReviewer, Wt as Tooling, X as LabelDef, Xt as Wiki, Y as Issues, Yt as WebhookDashboardInfo, Z as LifecycleResult, Zt as WikiProvisionOpts, _ as CardinalityFor, _t as NotificationsLinksLayout, a as WebhookVerificationError, at as MonitoringAssertionSource, b as CiRunFilter, bt as NotificationsPinnedLayout, c as Auth, ct as MonitoringHttpMethod, d as AuthEventType, dt as NotificationsAccess, et as Monitoring, f as AuthIdentity, ft as NotificationsApplicationLayout, g as Cardinality, gt as NotificationsLayout, h as CapabilityKey, ht as NotificationsEveryoneLayout, i as REQUIRED_CAPABILITIES, it as MonitoringAssertionComparison, j as DeploymentRecord, jt as ResolvedCapability, k as DeploymentProject, kt as RepoRef, l as AuthDescription, lt as NormalizedAuthUser, m as CapabilityImpls, mt as NotificationsDelivery, n as ElevationRequiredError, nt as MonitoringAlertChannelResult, o as isMulti, ot as MonitoringCheck, p as AuthUser, pt as NotificationsChannelLayout, q as Issue, qt as TrackerUser, r as ProviderApiError, rt as MonitoringAssertion, s as Analytics, st as MonitoringCheckInput, t as CARDINALITY, tt as MonitoringAlertChannelInput, u as AuthEvent, ut as Notifications, v as Ci, vt as NotificationsMember, w as DeployFunctionConfig, wt as NotificationsWelcomeLayout, x as CiRunStatus, xt as NotificationsServerLayout, y as CiRun, yt as NotificationsOnboardingLayout, z as EnsureRelayResult, zt as StatusCategory } from "../index-DvQb3PcL.mjs";
1
+ import { $ as Logs, $t as Workers, A as DeploymentProjectSettings, At as RepoSettings, B as EnsureResult, Bt as Storage, C as CreateAuthUserInput, Ct as NotificationsSignedIn, D as DeployScriptResult, Dt as ProviderIdentity, E as DeployScriptConfig, Et as ParseWebhookInput, F as DnsRecord, Ft as ServerInspection, G as Environments, Gt as ToolingDoctorReport, H as EnsuredResource, Ht as TeamEntry, I as DnsRecordRequest, It as Source, J as IssueSearchFilter, Jt as Vault, K as Errors, Kt as TrackerDoctorReport, L as DnsRecordType, Lt as SourceFile, M as DeploymentTarget, Mt as Ruleset, N as DeploymentTrigger, Nt as SecretScope, O as Deployment, Ot as PullRequest, P as Dns, Pt as Secrets, Q as LifecycleSlot, Qt as WikiProxyConfig, R as EnsureRelayInput, Rt as SourceTeamMember, S as ConnectionStringOptions, St as NotificationsSignIn, T as DeployFunctionResult, Tt as PagesConfig, U as Environment, Ut as TeamPermission, V as EnsureWebhookResult, Vt as StorageBranch, W as EnvironmentReviewer, Wt as Tooling, X as LabelDef, Xt as Wiki, Y as Issues, Yt as WebhookDashboardInfo, Z as LifecycleResult, Zt as WikiProvisionOpts, _ as CardinalityFor, _t as NotificationsLinksLayout, a as WebhookVerificationError, at as MonitoringAssertionSource, b as CiRunFilter, bt as NotificationsPinnedLayout, c as Auth, ct as MonitoringHttpMethod, d as AuthEventType, dt as NotificationsAccess, et as Monitoring, f as AuthIdentity, ft as NotificationsApplicationLayout, g as Cardinality, gt as NotificationsLayout, h as CapabilityKey, ht as NotificationsEveryoneLayout, i as REQUIRED_CAPABILITIES, it as MonitoringAssertionComparison, j as DeploymentRecord, jt as ResolvedCapability, k as DeploymentProject, kt as RepoRef, l as AuthDescription, lt as NormalizedAuthUser, m as CapabilityImpls, mt as NotificationsDelivery, n as ElevationRequiredError, nt as MonitoringAlertChannelResult, o as isMulti, ot as MonitoringCheck, p as AuthUser, pt as NotificationsChannelLayout, q as Issue, qt as TrackerUser, r as ProviderApiError, rt as MonitoringAssertion, s as Analytics, st as MonitoringCheckInput, t as CARDINALITY, tt as MonitoringAlertChannelInput, u as AuthEvent, ut as Notifications, v as Ci, vt as NotificationsMember, w as DeployFunctionConfig, wt as NotificationsWelcomeLayout, x as CiRunStatus, xt as NotificationsServerLayout, y as CiRun, yt as NotificationsOnboardingLayout, z as EnsureRelayResult, zt as StatusCategory } from "../index-BD9zG_5Z.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, Issue, IssueSearchFilter, Issues, LabelDef, LifecycleResult, LifecycleSlot, Logs, Monitoring, MonitoringAlertChannelInput, MonitoringAlertChannelResult, 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, SourceFile, SourceTeamMember, StatusCategory, Storage, StorageBranch, TeamEntry, TeamPermission, Tooling, ToolingDoctorReport, TrackerDoctorReport, TrackerUser, Vault, WebhookDashboardInfo, WebhookVerificationError, Wiki, WikiProvisionOpts, WikiProxyConfig, Workers, isMulti };
@@ -1,5 +1,5 @@
1
1
  import { ProviderApiError } from "@theholocron/http-client";
2
- //#region src/plugin/capabilities/capabilities.ts
2
+ // src/plugin/capabilities/capabilities.ts
3
3
  const CARDINALITY = {
4
4
  source: "single",
5
5
  ci: "single",
@@ -44,5 +44,4 @@ var WebhookVerificationError = class extends Error {
44
44
  function isMulti(key) {
45
45
  return CARDINALITY[key] === "many";
46
46
  }
47
- //#endregion
48
47
  export { CARDINALITY, ElevationRequiredError, ProviderApiError, REQUIRED_CAPABILITIES, WebhookVerificationError, isMulti };
@@ -1,5 +1,4 @@
1
- import { n as Capability, r as ComposedPreset, t as compose } from "./index-Cd_9v4b8.mjs";
2
- //#region src/presets/capabilities/audit.d.ts
1
+ import { n as Capability, r as ComposedPreset, t as compose } from "./index-BK5cc9WI.mjs";
3
2
  interface AuditOptions {
4
3
  /** Enable Knip unused-export analysis (default: false). */
5
4
  knip?: boolean;
@@ -15,8 +14,6 @@ interface AuditOptions {
15
14
  * Requires: node
16
15
  */
17
16
  declare function audit({ knip, performance, lighthouseConfig }?: AuditOptions): Capability;
18
- //#endregion
19
- //#region src/presets/capabilities/docs.d.ts
20
17
  /**
21
18
  * Adds a documentation site deployed to Cloudflare Pages with PR previews.
22
19
  * Sets org/domain, wires Cloudflare + DNS providers, and adds the codecov
@@ -24,8 +21,6 @@ declare function audit({ knip, performance, lighthouseConfig }?: AuditOptions):
24
21
  * Requires: node
25
22
  */
26
23
  declare function docs(): Capability;
27
- //#endregion
28
- //#region src/presets/capabilities/monorepo.d.ts
29
24
  /**
30
25
  * Adjusts a repo to be a monorepo — sets uses_external_packages: true
31
26
  * (workspaces pull in many deps). Compose after the base capabilities.
@@ -35,8 +30,6 @@ declare function docs(): Capability;
35
30
  * const preset = compose(node(), typecheck(), nextjs(), monorepo());
36
31
  */
37
32
  declare function monorepo(): Capability;
38
- //#endregion
39
- //#region src/presets/capabilities/nextjs.d.ts
40
33
  interface NextjsOptions {
41
34
  /** Extra `with:` inputs merged into the `test` workflow entry. */
42
35
  test?: Record<string, unknown>;
@@ -53,8 +46,6 @@ interface NextjsOptions {
53
46
  * const preset = compose(node(), typecheck(), nextjs({ test: { "wait-on-url": "http://localhost:3000" } }));
54
47
  */
55
48
  declare function nextjs({ test: testOverrides }?: NextjsOptions): Capability[];
56
- //#endregion
57
- //#region src/presets/capabilities/node.d.ts
58
49
  /**
59
50
  * Base capability for all theholocron Node.js repositories.
60
51
  * Contributes: GitHub source/CI/issues providers, strict branch protection,
@@ -66,8 +57,6 @@ declare function nextjs({ test: testOverrides }?: NextjsOptions): Capability[];
66
57
  * `… / Conclusion` branch-protection check contexts from the manifest.
67
58
  */
68
59
  declare function node(): Capability;
69
- //#endregion
70
- //#region src/presets/capabilities/react.d.ts
71
60
  interface ReactOptions {
72
61
  /** Extra `with:` inputs merged into the `test` workflow entry (e.g. run-chromatic). */
73
62
  test?: Record<string, unknown>;
@@ -86,16 +75,12 @@ interface ReactOptions {
86
75
  * compose(node(), typecheck(), react({ test: { "run-chromatic": { projects: [...] } } }))
87
76
  */
88
77
  declare function react({ test: testOverrides }?: ReactOptions): Capability;
89
- //#endregion
90
- //#region src/presets/capabilities/typecheck.d.ts
91
78
  /**
92
79
  * Adds TypeScript type-checking to a repo. Marked `required` — `holocron setup`
93
80
  * derives the `Typecheck / Conclusion` branch-protection check from the manifest.
94
81
  * Requires: node
95
82
  */
96
83
  declare function typecheck(): Capability;
97
- //#endregion
98
- //#region src/presets/capabilities/wiki.d.ts
99
84
  /**
100
85
  * Adds the Fern engineering wiki (wiki.theholocron.dev/<repo>) to a repo.
101
86
  * Provisions docs/wiki/{decisions,standards,specifications}/ and wires the
@@ -108,12 +93,8 @@ declare function typecheck(): Capability;
108
93
  * ```
109
94
  */
110
95
  declare function wiki(): Capability;
111
- //#endregion
112
- //#region src/presets/constants.d.ts
113
96
  /** Cloudflare account ID for the theholocron org. */
114
- declare const CLOUDFLARE_ACCOUNT_ID = "9c558af98664d13fc89b7e0a0d93d5a8";
115
- //#endregion
116
- //#region src/presets/configs/docs.d.ts
97
+ export declare const CLOUDFLARE_ACCOUNT_ID = "9c558af98664d13fc89b7e0a0d93d5a8";
117
98
  type DocsPreset = ComposedPreset;
118
99
  type DocsSitePreset = ComposedPreset;
119
100
  /**
@@ -141,7 +122,7 @@ type DocsSitePreset = ComposedPreset;
141
122
  * providers: { ...preset.providers, secrets: "github" },
142
123
  * });
143
124
  */
144
- declare function docsPreset(): DocsPreset;
125
+ export declare function docsPreset(): DocsPreset;
145
126
  /**
146
127
  * Preset for theholocron repos that are documentation-only sites with no
147
128
  * TypeScript source to check (e.g. skills, themes). No typecheck, no audit.
@@ -156,9 +137,7 @@ declare function docsPreset(): DocsPreset;
156
137
  * providers: { ...preset.providers, secrets: "github" },
157
138
  * });
158
139
  */
159
- declare function docsSitePreset(): DocsSitePreset;
160
- //#endregion
161
- //#region src/presets/configs/monorepo.d.ts
140
+ export declare function docsSitePreset(): DocsSitePreset;
162
141
  /**
163
142
  * Wraps any composed preset with monorepo-specific overrides
164
143
  * (sets uses_external_packages: true).
@@ -168,9 +147,7 @@ declare function docsSitePreset(): DocsSitePreset;
168
147
  * @example
169
148
  * const preset = monorepo(nextjs());
170
149
  */
171
- declare function monorepoPreset(base: ComposedPreset): ComposedPreset;
172
- //#endregion
173
- //#region src/presets/configs/nextjs.d.ts
150
+ export declare function monorepoPreset(base: ComposedPreset): ComposedPreset;
174
151
  /**
175
152
  * Preset for single-package Next.js application repos. Includes Vercel
176
153
  * deployment, Lighthouse audit, Storybook + interaction + user-flow tests,
@@ -188,9 +165,7 @@ declare function monorepoPreset(base: ComposedPreset): ComposedPreset;
188
165
  * ],
189
166
  * });
190
167
  */
191
- declare function nextjsPreset(options?: NextjsOptions): ComposedPreset;
192
- //#endregion
193
- //#region src/presets/configs/node.d.ts
168
+ export declare function nextjsPreset(options?: NextjsOptions): ComposedPreset;
194
169
  /**
195
170
  * Base preset for theholocron Node.js repositories.
196
171
  * Spread the returned fragments into `defineConfig()`.
@@ -203,9 +178,7 @@ declare function nextjsPreset(options?: NextjsOptions): ComposedPreset;
203
178
  * tasks: [...preset.tasks, { name: "release", with: { "run-build": true } }],
204
179
  * });
205
180
  */
206
- declare function nodePreset(): ComposedPreset;
207
- //#endregion
208
- //#region src/presets/configs/react.d.ts
181
+ export declare function nodePreset(): ComposedPreset;
209
182
  /**
210
183
  * Preset for single-package React/Vite application repos. Includes Storybook,
211
184
  * interaction tests, Knip + Lighthouse audit, and the UI extraRequiredChecks.
@@ -223,11 +196,9 @@ declare function nodePreset(): ComposedPreset;
223
196
  * tasks: [...preset.tasks, "sync", { name: "deploy", with: { docs: true, storybook: [{ name: "" }] } }],
224
197
  * });
225
198
  */
226
- declare function reactPreset(options?: ReactOptions): ComposedPreset;
227
- //#endregion
228
- //#region src/presets/index.d.ts
199
+ export declare function reactPreset(options?: ReactOptions): ComposedPreset;
229
200
  /** The capability factories, for composing your own preset with compose(). */
230
- declare const withCapabilities: {
201
+ export declare const withCapabilities: {
231
202
  withAudit: typeof audit;
232
203
  withDocs: typeof docs;
233
204
  withMonorepo: typeof monorepo;
@@ -237,5 +208,4 @@ declare const withCapabilities: {
237
208
  withTypecheck: typeof typecheck;
238
209
  withWiki: typeof wiki;
239
210
  };
240
- //#endregion
241
- export { type AuditOptions, CLOUDFLARE_ACCOUNT_ID, type Capability, type ComposedPreset, type DocsPreset, type DocsSitePreset, type NextjsOptions, type ReactOptions, compose, docsPreset, docsSitePreset, monorepoPreset, nextjsPreset, nodePreset, reactPreset, withCapabilities };
211
+ export { type AuditOptions, type Capability, type ComposedPreset, type DocsPreset, type DocsSitePreset, type NextjsOptions, type ReactOptions, compose };