@theholocron/cli 5.0.0-alpha.341 → 5.0.0-alpha.343
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 +10 -10
- package/dist/cli.mjs +283 -774
- package/dist/cli.mjs.map +1 -1
- package/dist/{compose-BucaYv2k.mjs → config-system-Bq6510iF.mjs} +30 -8
- package/dist/{index-BfArEnkX.d.mts → config-system-uaeB3g1g.d.mts} +22 -3
- package/dist/index.d.mts +2 -22
- package/dist/index.mjs +1 -30
- package/dist/presets.d.mts +1 -1
- package/dist/presets.mjs +1 -1
- package/package.json +10 -10
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CARDINALITY, REQUIRED_CAPABILITIES } from "./plugin/capabilities.mjs";
|
|
2
|
-
import { ConfigError, createConfigSystem, lastWins, mergeByKey, shallowMerge, union } from "@theholocron/kyber/config";
|
|
2
|
+
import { ConfigError, ConfigFileError, createConfigSystem, lastWins, mergeByKey, shallowMerge, union } from "@theholocron/kyber/config";
|
|
3
3
|
import { basename, dirname } from "node:path";
|
|
4
4
|
import { readPackageJson } from "@theholocron/pkg-utils";
|
|
5
5
|
import { resolveTaskName } from "@theholocron/astromech";
|
|
@@ -283,15 +283,39 @@ async function deriveDefaults(found) {
|
|
|
283
283
|
if (manifest.extraRequiredChecks) result.extraRequiredChecks = [...result.extraRequiredChecks ?? [], ...manifest.extraRequiredChecks];
|
|
284
284
|
return result;
|
|
285
285
|
}
|
|
286
|
-
// src/config/system
|
|
287
|
-
/**
|
|
286
|
+
// src/config/config-system.ts
|
|
287
|
+
/**
|
|
288
|
+
* Holocron's config system: `defineConfig`, `loadConfig` and `compose`, all built from one
|
|
289
|
+
* `createConfigSystem` call.
|
|
290
|
+
*
|
|
291
|
+
* File discovery, the walk up to `.git`, module loading (typed configs via `tsx`) and the derive-then-resolve flow come
|
|
292
|
+
* from `@theholocron/kyber/config`. The holocron-specific parts are `deriveDefaults` (name, `repo.name`, the task
|
|
293
|
+
* manifest), `resolveConfig` and `mergeStrategies`.
|
|
294
|
+
*
|
|
295
|
+
* The three functions live together because each is only a method of the one system object; splitting them back into
|
|
296
|
+
* one file apiece would just be pass-through wrappers (an exception to the one-function-per-file rule).
|
|
297
|
+
*
|
|
298
|
+
* Probe order is TS-first (`.ts` → `.js` → `.mjs` → `.cjs` → `.json`) —
|
|
299
|
+
* see ADR-0010 / issue #75 / #81.
|
|
300
|
+
*/
|
|
288
301
|
const system = createConfigSystem({
|
|
289
302
|
name: "holocron",
|
|
290
303
|
derive: deriveDefaults,
|
|
291
304
|
resolve: resolveConfig,
|
|
292
305
|
merge: mergeStrategies
|
|
293
306
|
});
|
|
294
|
-
|
|
307
|
+
/** Returns the config unchanged; it exists to type and autocomplete a `holocron.config.ts`. */
|
|
308
|
+
const defineConfig = system.defineConfig;
|
|
309
|
+
/**
|
|
310
|
+
* Read + parse + resolve `holocron.config.*` starting from the given
|
|
311
|
+
* directory, walking up through ancestors to the nearest `.git` boundary
|
|
312
|
+
* when `cwd` itself has no match — every command is usable from any
|
|
313
|
+
* subdirectory of a repo, not only its exact root (see
|
|
314
|
+
* `@theholocron/datapad`'s own doc comment for the stop conditions).
|
|
315
|
+
* Throws `ConfigFileError` when nothing is found or a file cannot
|
|
316
|
+
* be loaded, or `ConfigError` when the config fails schema checks.
|
|
317
|
+
*/
|
|
318
|
+
const loadConfig = system.loadConfig;
|
|
295
319
|
/**
|
|
296
320
|
* Merge any number of capability fragments into a single preset object that
|
|
297
321
|
* spreads directly into `defineConfig()`.
|
|
@@ -313,7 +337,5 @@ const system = createConfigSystem({
|
|
|
313
337
|
* // nextjs() is a bundle that returns Capability[]
|
|
314
338
|
* const preset = compose(node(), nextjs());
|
|
315
339
|
*/
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
}
|
|
319
|
-
export { resolveConfig as a, credentialsEnvironment as i, system as n, resolveEntry as o, ConfigError as r, resolvePluginPackage as s, compose as t };
|
|
340
|
+
const compose = system.compose;
|
|
341
|
+
export { ConfigError as a, resolveEntry as c, loadConfig as i, resolvePluginPackage as l, compose as n, credentialsEnvironment as o, defineConfig as r, resolveConfig as s, ConfigFileError as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { D as CapabilityKey, Qt as PagesConfig, xn as TeamEntry } from "./index-XBpiD6Sx.mjs";
|
|
2
|
-
import { ConfigError } from "@theholocron/kyber/config";
|
|
2
|
+
import { ConfigError, ConfigFileError } from "@theholocron/kyber/config";
|
|
3
3
|
import { DocsCoverageMode } from "@theholocron/astromech";
|
|
4
4
|
import { LogLevel } from "@theholocron/observability/core";
|
|
5
5
|
/** Structured-logging config. The Axiom **token** never lives here — only in
|
|
@@ -804,6 +804,25 @@ interface ComposedPreset {
|
|
|
804
804
|
/** Docs site config; the last capability that sets it wins. */
|
|
805
805
|
docs?: DocsConfig;
|
|
806
806
|
}
|
|
807
|
+
/** A loaded and resolved `holocron.config`. */
|
|
808
|
+
interface LoadedConfig {
|
|
809
|
+
/** The config after `resolveConfig`. */
|
|
810
|
+
resolved: ResolvedHolocronConfig;
|
|
811
|
+
/** Absolute path to the file the config was read from. */
|
|
812
|
+
filepath: string;
|
|
813
|
+
}
|
|
814
|
+
/** Returns the config unchanged; it exists to type and autocomplete a `holocron.config.ts`. */
|
|
815
|
+
declare const defineConfig: (config: HolocronConfig) => HolocronConfig;
|
|
816
|
+
/**
|
|
817
|
+
* Read + parse + resolve `holocron.config.*` starting from the given
|
|
818
|
+
* directory, walking up through ancestors to the nearest `.git` boundary
|
|
819
|
+
* when `cwd` itself has no match — every command is usable from any
|
|
820
|
+
* subdirectory of a repo, not only its exact root (see
|
|
821
|
+
* `@theholocron/datapad`'s own doc comment for the stop conditions).
|
|
822
|
+
* Throws `ConfigFileError` when nothing is found or a file cannot
|
|
823
|
+
* be loaded, or `ConfigError` when the config fails schema checks.
|
|
824
|
+
*/
|
|
825
|
+
declare const loadConfig: (cwd: string) => Promise<LoadedConfig>;
|
|
807
826
|
/**
|
|
808
827
|
* Merge any number of capability fragments into a single preset object that
|
|
809
828
|
* spreads directly into `defineConfig()`.
|
|
@@ -825,5 +844,5 @@ interface ComposedPreset {
|
|
|
825
844
|
* // nextjs() is a bundle that returns Capability[]
|
|
826
845
|
* const preset = compose(node(), nextjs());
|
|
827
846
|
*/
|
|
828
|
-
declare
|
|
829
|
-
export {
|
|
847
|
+
declare const compose: (...args: (Capability | Capability[])[]) => ComposedPreset;
|
|
848
|
+
export { RepoConfig as A, ResolvedTuple as B, EslintConfig as C, ProviderOptions as D, MultiEntry as E, RepoValidationConfig as F, WorkflowWithConfig as G, StorybookDeployProject as H, RepoVariables as I, ResolvedHolocronConfig as L, RepoProtection as M, RepoSecrets as N, RawProviderEntry as O, RepoSecretsSync as P, ResolvedProviderEntry as R, EnvConfig as S, LogConfig as T, TaskEntryConfig as U, SingleEntry as V, TelemetryConfig as W, CredentialsConfig as _, LoadedConfig as a, DocsConfig as b, TaskEntry as c, resolveConfig as d, resolveEntry as f, ChromaticProjectConfig as g, CapabilityConfigPackage as h, loadConfig as i, RepoProperties as j, RawProvidersConfig as k, ConfigError as l, AppConfig as m, compose as n, Capability as o, resolvePluginPackage as p, defineConfig as r, ComposedPreset as s, ConfigFileError as t, credentialsEnvironment as u, DevConfig as v, HolocronConfig as w, DoctorConfig as x, DevServeConfig as y, ResolvedProvidersConfig as z };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { $ as DnsRecordType, $t as ParseWebhookInput, A as Ci, An as WebhookDashboardInfo, At as MonitoringCheckInput, B as DeployScriptConfig, Bt as NotificationsForumTag, C as BoardTemplate, Cn as Tooling, Ct as MonitoringAlertChannelResult, D as CapabilityKey, Dn as TunnelRoute, Dt as MonitoringAssertionComparison, E as CapabilityImpls, En as TrackerUser, Et as MonitoringAssertion, F as CreateAuthUserInput, Fn as Workers, Ft as NotificationsAccess, G as DeploymentRecord, Gt as NotificationsOnboardingLayout, H as Deployment, Ht as NotificationsLinksLayout, I as Credentials, It as NotificationsApplicationLayout, J as DiscussionPatch, Jt as NotificationsServerLayout, K as DeploymentTarget, Kt as NotificationsPicture, L as CredentialsInspection, Lt as NotificationsChannelLayout, M as CiRunFilter, Mn as WikiProvisionOpts, Mt as MoveReport, N as CiRunStatus, Nn as WikiProxyConfig, Nt as NormalizedAuthUser, O as Cardinality, On as Tunnels, Ot as MonitoringAssertionSource, P as ConnectionStringOptions, Pn as WorkerScriptState, Pt as Notifications, Q as DnsRecordRequest, Qt as PagesConfig, R as DeployFunctionConfig, Rt as NotificationsDelivery, S as BoardSummary, Sn as TeamPermission, St as MonitoringAlertChannelInput, T as BoardView, Tn as TrackerDoctorReport, Tt as MonitoringAlertSettings, U as DeploymentProject, Ut as NotificationsMember, V as DeployScriptResult, Vt as NotificationsLayout, W as DeploymentProjectSettings, Wt as NotificationsMonitoringFeed, X as Dns, Xt as NotificationsSignedIn, Y as DiscussionPost, Yt as NotificationsSignIn, Z as DnsRecord, Zt as NotificationsWelcomeLayout, _ as BoardItem, _n as SourceTeamMember, _t as LabelDef, a as REQUIRED_CAPABILITIES, an as RepoSettings, at as EnsureWebhookResult, b as BoardStatus, bn as StorageBranch, bt as Logs, c as Analytics, cn as SecretScope, ct as EnsuredTunnel, d as AuthEvent, dn as Source, dt as Environments, en as Projects, et as EnsureDiscussionInput, f as AuthEventType, fn as SourceBranch, ft as Errors, g as BoardFieldType, gn as SourceSecurity, gt as Issues, h as BoardField, hn as SourceRulesetDetail, ht as IssueSearchFilter, i as ProviderApiError, in as RepoRef, it as EnsureResult, j as CiRun, jn as Wiki, jt as MonitoringHttpMethod, k as CardinalityFor, kn as Vault, kt as MonitoringCheck, l as Auth, ln as Secrets, lt as Environment, m as AuthUser, mn as SourceRepoInfo, mt as Issue, n as ElevationRequiredError, nn as PullRequest, nt as EnsureRelayResult, o as WebhookVerificationError, on as ResolvedCapability, ot as EnsuredDiscussion, p as AuthIdentity, pn as SourceFile, pt as InspectRelayInput, q as DeploymentTrigger, qt as NotificationsPinnedLayout, r as MissingTokenError, rn as RelayState, rt as EnsureReport, s as isMulti, sn as Ruleset, st as EnsuredResource, t as CARDINALITY, tn as ProviderIdentity, tt as EnsureRelayInput, u as AuthDescription, un as ServerInspection, ut as EnvironmentReviewer, v as BoardRule, vn as StatusCategory, vt as LifecycleResult, w as BoardTemplateFile, wn as ToolingDoctorReport, wt as MonitoringAlertChannelState, x as BoardStatusCategory, xn as TeamEntry, xt as Monitoring, y as BoardState, yn as Storage, yt as LifecycleSlot, z as DeployFunctionResult, zt as NotificationsEveryoneLayout } from "./index-XBpiD6Sx.mjs";
|
|
2
|
-
import { A as
|
|
2
|
+
import { A as RepoConfig, B as ResolvedTuple, C as EslintConfig, D as ProviderOptions, E as MultiEntry, F as RepoValidationConfig, G as WorkflowWithConfig, H as StorybookDeployProject, I as RepoVariables, L as ResolvedHolocronConfig, M as RepoProtection, N as RepoSecrets, O as RawProviderEntry, P as RepoSecretsSync, R as ResolvedProviderEntry, S as EnvConfig, T as LogConfig, U as TaskEntryConfig, V as SingleEntry, W as TelemetryConfig, _ as CredentialsConfig, a as LoadedConfig, b as DocsConfig, c as TaskEntry, d as resolveConfig, f as resolveEntry, g as ChromaticProjectConfig, h as CapabilityConfigPackage, i as loadConfig, j as RepoProperties, k as RawProvidersConfig, l as ConfigError, m as AppConfig, n as compose, o as Capability, p as resolvePluginPackage, r as defineConfig, s as ComposedPreset, t as ConfigFileError, u as credentialsEnvironment, v as DevConfig, w as HolocronConfig, x as DoctorConfig, y as DevServeConfig, z as ResolvedProvidersConfig } from "./config-system-uaeB3g1g.mjs";
|
|
3
3
|
import { AuthError, ResolveTokenConfig as ResolveTokenConfig$1, ResolveTokenInput, ResolveTokenInput as ResolveTokenInput$1 } from "@theholocron/kyber/secrets";
|
|
4
4
|
import { RequestOptions, RestClient, RestClientConfig, createRestClient } from "@theholocron/http-client";
|
|
5
|
-
import { ConfigFileError } from "@theholocron/kyber/config";
|
|
6
5
|
import { PackageJson } from "@theholocron/pkg-utils";
|
|
7
6
|
import { WorkspacePackage } from "@theholocron/astromech";
|
|
8
7
|
import "@theholocron/observability/core";
|
|
@@ -154,25 +153,6 @@ export declare function describeNetworkError(err: unknown, timeoutMs: number): s
|
|
|
154
153
|
* earlier one failed is reported as not tried rather than failing a second time for the same reason.
|
|
155
154
|
*/
|
|
156
155
|
export declare function connectionProbe(input: ConnectionProbeInput): Probe;
|
|
157
|
-
/** Returns the config unchanged; it exists to type and autocomplete a `holocron.config.ts`. */
|
|
158
|
-
export declare function defineConfig(config: HolocronConfig): HolocronConfig;
|
|
159
|
-
/** A loaded and resolved `holocron.config`. */
|
|
160
|
-
interface LoadedConfig {
|
|
161
|
-
/** The config after `resolveConfig`. */
|
|
162
|
-
resolved: ResolvedHolocronConfig;
|
|
163
|
-
/** Absolute path to the file the config was read from. */
|
|
164
|
-
filepath: string;
|
|
165
|
-
}
|
|
166
|
-
/**
|
|
167
|
-
* Read + parse + resolve `holocron.config.*` starting from the given
|
|
168
|
-
* directory, walking up through ancestors to the nearest `.git` boundary
|
|
169
|
-
* when `cwd` itself has no match — every command is usable from any
|
|
170
|
-
* subdirectory of a repo, not only its exact root (see
|
|
171
|
-
* `@theholocron/datapad`'s own doc comment for the stop conditions).
|
|
172
|
-
* Throws `ConfigFileError` when nothing is found or a file cannot
|
|
173
|
-
* be loaded, or `ConfigError` when the config fails schema checks.
|
|
174
|
-
*/
|
|
175
|
-
export declare function loadConfig(cwd: string): Promise<LoadedConfig>;
|
|
176
156
|
interface RoleSyncOutcome {
|
|
177
157
|
role: string;
|
|
178
158
|
team: string;
|
|
@@ -351,4 +331,4 @@ export declare function missingCapabilities(capabilities: readonly string[]): st
|
|
|
351
331
|
* own soft-fail behavior.
|
|
352
332
|
*/
|
|
353
333
|
export declare function readWorkspacePackageJsons(repoRoot: string, workspacePackages: readonly WorkspacePackage[]): Promise<PackageJsonLike[]>;
|
|
354
|
-
export { Analytics, type AppConfig, Auth, AuthDescription, AuthError, AuthEvent, AuthEventType, AuthIdentity, AuthUser, BoardField, BoardFieldType, BoardItem, BoardRule, BoardState, BoardStatus, BoardStatusCategory, BoardSummary, BoardTemplate, BoardTemplateFile, BoardView, CARDINALITY, type Capability, type CapabilityConfigPackage, CapabilityImpls, CapabilityKey, Cardinality, CardinalityFor, type ChromaticProjectConfig, Ci, CiRun, CiRunFilter, CiRunStatus, type ComposedPreset, ConfigError, ConfigFileError, ConnectionStringOptions, CreateAuthUserInput, Credentials, type CredentialsConfig, CredentialsInspection, DeployFunctionConfig, DeployFunctionResult, DeployScriptConfig, DeployScriptResult, Deployment, DeploymentProject, DeploymentProjectSettings, DeploymentRecord, DeploymentTarget, DeploymentTrigger, type DeriveProfileInput, type DevConfig, type DevServeConfig, DiscussionPatch, DiscussionPost, Dns, DnsRecord, DnsRecordRequest, DnsRecordType, type DocsConfig, type DoctorConfig, ElevationRequiredError, EnsureDiscussionInput, EnsureRelayInput, EnsureRelayResult, EnsureReport, EnsureResult, EnsureWebhookResult, EnsuredDiscussion, EnsuredResource, EnsuredTunnel, type EnvConfig, Environment, EnvironmentReviewer, Environments, Errors, type EslintConfig, type FeatureResolver, type FeatureResolverConfig, type HolocronConfig, type HolocronProfile, InspectRelayInput, Issue, IssueSearchFilter, Issues, LabelDef, LifecycleResult, LifecycleSlot, type LinksFile, type LoadedConfig, type LogConfig, Logs, type MemberLink, MissingTokenError, Monitoring, MonitoringAlertChannelInput, MonitoringAlertChannelResult, MonitoringAlertChannelState, MonitoringAlertSettings, MonitoringAssertion, MonitoringAssertionComparison, MonitoringAssertionSource, MonitoringCheck, MonitoringCheckInput, MonitoringHttpMethod, MoveReport, type MultiEntry, NormalizedAuthUser, Notifications, NotificationsAccess, NotificationsApplicationLayout, NotificationsChannelLayout, NotificationsDelivery, NotificationsEveryoneLayout, NotificationsForumTag, NotificationsLayout, NotificationsLinksLayout, NotificationsMember, NotificationsMonitoringFeed, NotificationsOnboardingLayout, NotificationsPicture, NotificationsPinnedLayout, NotificationsServerLayout, NotificationsSignIn, NotificationsSignedIn, NotificationsWelcomeLayout, type PackageJsonLike, PagesConfig, ParseWebhookInput, type PluginProbes, type PluginToken, type Probe, type ProbeContext, type ProbeRow, Projects, 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 SyncRolesInput, type SyncRolesResult, type TaskEntry, type TaskEntryConfig, TeamEntry, TeamPermission, type TelemetryConfig, type TokenResolver, Tooling, ToolingDoctorReport, TrackerDoctorReport, TrackerUser, TunnelRoute, Tunnels, Vault, type VerifyTokenFailure, type VerifyTokenResult, type VerifyTokenSuccess, WebhookDashboardInfo, WebhookVerificationError, Wiki, WikiProvisionOpts, WikiProxyConfig, WorkerScriptState, Workers, type WorkflowWithConfig, compose, createRestClient, credentialsEnvironment, isMulti, resolveConfig, resolveEntry, resolvePluginPackage };
|
|
334
|
+
export { Analytics, type AppConfig, Auth, AuthDescription, AuthError, AuthEvent, AuthEventType, AuthIdentity, AuthUser, BoardField, BoardFieldType, BoardItem, BoardRule, BoardState, BoardStatus, BoardStatusCategory, BoardSummary, BoardTemplate, BoardTemplateFile, BoardView, CARDINALITY, type Capability, type CapabilityConfigPackage, CapabilityImpls, CapabilityKey, Cardinality, CardinalityFor, type ChromaticProjectConfig, Ci, CiRun, CiRunFilter, CiRunStatus, type ComposedPreset, ConfigError, ConfigFileError, ConnectionStringOptions, CreateAuthUserInput, Credentials, type CredentialsConfig, CredentialsInspection, DeployFunctionConfig, DeployFunctionResult, DeployScriptConfig, DeployScriptResult, Deployment, DeploymentProject, DeploymentProjectSettings, DeploymentRecord, DeploymentTarget, DeploymentTrigger, type DeriveProfileInput, type DevConfig, type DevServeConfig, DiscussionPatch, DiscussionPost, Dns, DnsRecord, DnsRecordRequest, DnsRecordType, type DocsConfig, type DoctorConfig, ElevationRequiredError, EnsureDiscussionInput, EnsureRelayInput, EnsureRelayResult, EnsureReport, EnsureResult, EnsureWebhookResult, EnsuredDiscussion, EnsuredResource, EnsuredTunnel, type EnvConfig, Environment, EnvironmentReviewer, Environments, Errors, type EslintConfig, type FeatureResolver, type FeatureResolverConfig, type HolocronConfig, type HolocronProfile, InspectRelayInput, Issue, IssueSearchFilter, Issues, LabelDef, LifecycleResult, LifecycleSlot, type LinksFile, type LoadedConfig, type LogConfig, Logs, type MemberLink, MissingTokenError, Monitoring, MonitoringAlertChannelInput, MonitoringAlertChannelResult, MonitoringAlertChannelState, MonitoringAlertSettings, MonitoringAssertion, MonitoringAssertionComparison, MonitoringAssertionSource, MonitoringCheck, MonitoringCheckInput, MonitoringHttpMethod, MoveReport, type MultiEntry, NormalizedAuthUser, Notifications, NotificationsAccess, NotificationsApplicationLayout, NotificationsChannelLayout, NotificationsDelivery, NotificationsEveryoneLayout, NotificationsForumTag, NotificationsLayout, NotificationsLinksLayout, NotificationsMember, NotificationsMonitoringFeed, NotificationsOnboardingLayout, NotificationsPicture, NotificationsPinnedLayout, NotificationsServerLayout, NotificationsSignIn, NotificationsSignedIn, NotificationsWelcomeLayout, type PackageJsonLike, PagesConfig, ParseWebhookInput, type PluginProbes, type PluginToken, type Probe, type ProbeContext, type ProbeRow, Projects, 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 SyncRolesInput, type SyncRolesResult, type TaskEntry, type TaskEntryConfig, TeamEntry, TeamPermission, type TelemetryConfig, type TokenResolver, Tooling, ToolingDoctorReport, TrackerDoctorReport, TrackerUser, TunnelRoute, Tunnels, Vault, type VerifyTokenFailure, type VerifyTokenResult, type VerifyTokenSuccess, WebhookDashboardInfo, WebhookVerificationError, Wiki, WikiProvisionOpts, WikiProxyConfig, WorkerScriptState, Workers, type WorkflowWithConfig, compose, createRestClient, credentialsEnvironment, defineConfig, isMulti, loadConfig, resolveConfig, resolveEntry, resolvePluginPackage };
|
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { CARDINALITY, ElevationRequiredError, MissingTokenError, ProviderApiError, REQUIRED_CAPABILITIES, WebhookVerificationError, isMulti } from "./plugin/capabilities.mjs";
|
|
2
|
-
import { a as
|
|
2
|
+
import { a as ConfigError, c as resolveEntry, i as loadConfig, l as resolvePluginPackage, n as compose, o as credentialsEnvironment, r as defineConfig, s as resolveConfig, t as ConfigFileError } from "./config-system-Bq6510iF.mjs";
|
|
3
3
|
import { Entry, findCredentials } from "@napi-rs/keyring";
|
|
4
4
|
import { AuthError, createFeatureResolver as createFeatureResolver$1, createKeyring, createResolveToken as createResolveToken$1 } from "@theholocron/kyber/secrets";
|
|
5
5
|
import { describeError, style } from "@theholocron/kyber/ui";
|
|
6
6
|
import { errorMessage } from "@theholocron/misc-utils";
|
|
7
7
|
import { createRestClient } from "@theholocron/http-client";
|
|
8
8
|
import { lookup } from "node:dns/promises";
|
|
9
|
-
import { ConfigFileError } from "@theholocron/kyber/config";
|
|
10
9
|
import { join } from "node:path";
|
|
11
10
|
import { readPackageJson } from "@theholocron/pkg-utils";
|
|
12
11
|
// src/auth.ts
|
|
@@ -522,32 +521,4 @@ async function readWorkspacePackageJsons(repoRoot, workspacePackages) {
|
|
|
522
521
|
}
|
|
523
522
|
return results;
|
|
524
523
|
}
|
|
525
|
-
// src/config/define-config/define-config.ts
|
|
526
|
-
/** Returns the config unchanged; it exists to type and autocomplete a `holocron.config.ts`. */
|
|
527
|
-
function defineConfig(config) {
|
|
528
|
-
return system.defineConfig(config);
|
|
529
|
-
}
|
|
530
|
-
// src/config/load-config/load-config.ts
|
|
531
|
-
/**
|
|
532
|
-
* `holocron.config.{ts,js,mjs,cjs,json}` loader.
|
|
533
|
-
*
|
|
534
|
-
* File discovery, the walk up to `.git`, module loading (typed configs via `tsx`) and the derive-then-resolve flow come
|
|
535
|
-
* from `@theholocron/kyber/config`. The holocron-specific parts are `deriveDefaults` (name, `repo.name`, the task
|
|
536
|
-
* manifest) and `resolveConfig`; see `../system`.
|
|
537
|
-
*
|
|
538
|
-
* Probe order is TS-first (`.ts` → `.js` → `.mjs` → `.cjs` → `.json`) —
|
|
539
|
-
* see ADR-0010 / issue #75 / #81.
|
|
540
|
-
*/
|
|
541
|
-
/**
|
|
542
|
-
* Read + parse + resolve `holocron.config.*` starting from the given
|
|
543
|
-
* directory, walking up through ancestors to the nearest `.git` boundary
|
|
544
|
-
* when `cwd` itself has no match — every command is usable from any
|
|
545
|
-
* subdirectory of a repo, not only its exact root (see
|
|
546
|
-
* `@theholocron/datapad`'s own doc comment for the stop conditions).
|
|
547
|
-
* Throws `ConfigFileError` when nothing is found or a file cannot
|
|
548
|
-
* be loaded, or `ConfigError` when the config fails schema checks.
|
|
549
|
-
*/
|
|
550
|
-
function loadConfig(cwd) {
|
|
551
|
-
return system.loadConfig(cwd);
|
|
552
|
-
}
|
|
553
524
|
export { AuthError, CARDINALITY, ConfigError, ConfigFileError, ElevationRequiredError, MissingTokenError, ProviderApiError, REQUIRED_CAPABILITIES, WebhookVerificationError, compose, connectionProbe, createFeatureResolver, createResolveToken, createRestClient, credentialsEnvironment, defineConfig, deriveCapabilities, deriveCompliance, deriveProfile, deriveStack, describeNetworkError, isMulti, keyring, loadConfig, missingCapabilities, readLinks, readWorkspacePackageJsons, resolveConfig, resolveEntry, resolvePluginPackage, roleTeamProblem, sourceProblem, syncRoles };
|
package/dist/presets.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as
|
|
1
|
+
import { n as compose, o as Capability, s as ComposedPreset } from "./config-system-uaeB3g1g.mjs";
|
|
2
2
|
/** Options for the audit capability. */
|
|
3
3
|
interface AuditOptions {
|
|
4
4
|
/** Enable Knip unused-export analysis (default: false). */
|
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.343",
|
|
4
4
|
"description": "The Holocron CLI - a pluggable, capability-based orchestrator for spinning up and operating software projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -54,18 +54,18 @@
|
|
|
54
54
|
"posthog-node": "^5.61.1",
|
|
55
55
|
"tsx": "4.23.15",
|
|
56
56
|
"yargs": "^18.1.0",
|
|
57
|
-
"@theholocron/astromech": "5.0.0-alpha.
|
|
58
|
-
"@theholocron/
|
|
59
|
-
"@theholocron/datapad": "5.0.0-alpha.341",
|
|
57
|
+
"@theholocron/astromech": "5.0.0-alpha.343",
|
|
58
|
+
"@theholocron/datapad": "5.0.0-alpha.343",
|
|
60
59
|
"@theholocron/env-utils": "^1.17.0-alpha.1",
|
|
61
|
-
"@theholocron/fs-utils": "^1.17.0-alpha.1",
|
|
62
|
-
"@theholocron/github-client": "^1.58.0-alpha.9",
|
|
63
|
-
"@theholocron/http-client": "^1.58.0-alpha.9",
|
|
64
|
-
"@theholocron/kyber": "5.0.0-alpha.341",
|
|
65
60
|
"@theholocron/git-utils": "^1.17.0-alpha.1",
|
|
61
|
+
"@theholocron/fs-utils": "^1.17.0-alpha.1",
|
|
62
|
+
"@theholocron/github-client": "^1.58.0-alpha.10",
|
|
63
|
+
"@theholocron/dagobah": "5.0.0-alpha.343",
|
|
64
|
+
"@theholocron/http-client": "^1.58.0-alpha.10",
|
|
65
|
+
"@theholocron/kyber": "5.0.0-alpha.343",
|
|
66
66
|
"@theholocron/misc-utils": "^1.17.0-alpha.1",
|
|
67
|
-
"@theholocron/observability": "^0.7.0-alpha.1",
|
|
68
67
|
"@theholocron/json-utils": "^1.17.0-alpha.1",
|
|
68
|
+
"@theholocron/observability": "^0.7.0-alpha.1",
|
|
69
69
|
"@theholocron/pkg-utils": "^1.17.0-alpha.1"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
"tsdown": "^0.23.4",
|
|
80
80
|
"typescript": "^5.9.3",
|
|
81
81
|
"vitest": "^5.0.5",
|
|
82
|
-
"@theholocron/rollup-plugin-transform-template": "^8.9.0-alpha.8",
|
|
83
82
|
"@theholocron/eslint-config": "^8.9.0-alpha.8",
|
|
83
|
+
"@theholocron/rollup-plugin-transform-template": "^8.9.0-alpha.8",
|
|
84
84
|
"@theholocron/tsconfig": "^8.9.0-alpha.8",
|
|
85
85
|
"@theholocron/vitest-config": "^8.9.0-alpha.8"
|
|
86
86
|
},
|