@theholocron/cli 5.0.0-alpha.265 → 5.0.0-alpha.267
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 +21 -18
- package/dist/cli.mjs +364 -43
- package/dist/cli.mjs.map +1 -1
- package/dist/{compose-DFW8ftHT.mjs → compose-CDyegVKe.mjs} +11 -1
- package/dist/{index-DyTxSSgq.d.mts → index-DbuSPIGf.d.mts} +17 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/presets.d.mts +1 -1
- package/dist/presets.mjs +1 -1
- package/package.json +8 -8
|
@@ -157,7 +157,7 @@ function compose(...args) {
|
|
|
157
157
|
let repo = {};
|
|
158
158
|
for (const cap of caps) {
|
|
159
159
|
if (!cap.repo) continue;
|
|
160
|
-
const { properties, topics, teams, variables, ...scalars } = cap.repo;
|
|
160
|
+
const { properties, topics, teams, variables, secrets, ...scalars } = cap.repo;
|
|
161
161
|
repo = {
|
|
162
162
|
...repo,
|
|
163
163
|
...scalars
|
|
@@ -178,6 +178,16 @@ function compose(...args) {
|
|
|
178
178
|
...variables.org
|
|
179
179
|
} } : {}
|
|
180
180
|
};
|
|
181
|
+
if (secrets) {
|
|
182
|
+
const union = (a, b) => [.../* @__PURE__ */ new Set([...a ?? [], ...b ?? []])];
|
|
183
|
+
const environments = { ...repo.secrets?.environments };
|
|
184
|
+
for (const [env, names] of Object.entries(secrets.environments ?? {})) environments[env] = union(environments[env], names);
|
|
185
|
+
repo.secrets = {
|
|
186
|
+
...repo.secrets?.repo || secrets.repo ? { repo: union(repo.secrets?.repo, secrets.repo) } : {},
|
|
187
|
+
...repo.secrets?.org || secrets.org ? { org: union(repo.secrets?.org, secrets.org) } : {},
|
|
188
|
+
...Object.keys(environments).length > 0 ? { environments } : {}
|
|
189
|
+
};
|
|
190
|
+
}
|
|
181
191
|
if (topics) {
|
|
182
192
|
const merged = /* @__PURE__ */ new Set([...repo.topics ?? [], ...topics]);
|
|
183
193
|
repo.topics = [...merged];
|
|
@@ -109,6 +109,20 @@ interface RepoVariables {
|
|
|
109
109
|
/** Delete variables that exist but are not declared here. Off by default: they are left alone. */
|
|
110
110
|
prune?: boolean;
|
|
111
111
|
}
|
|
112
|
+
/**
|
|
113
|
+
* The names of the secrets that must exist for this repository's workflows to work, so `holocron doctor secrets`
|
|
114
|
+
* can say which are missing. Only names go here, never values; `holocron secrets set` and `secrets sync` write
|
|
115
|
+
* them. The secrets the config already implies (the notification layout's webhooks and roles, a Chromatic project
|
|
116
|
+
* token) are expected without being listed again. A secret that exists but is not listed is never a problem.
|
|
117
|
+
*/
|
|
118
|
+
interface RepoSecrets {
|
|
119
|
+
/** Repository secrets. */
|
|
120
|
+
repo?: string[];
|
|
121
|
+
/** Organization secrets. Declare these in one repo only (the one that owns the org's configuration). */
|
|
122
|
+
org?: string[];
|
|
123
|
+
/** Environment secrets, by environment name. */
|
|
124
|
+
environments?: Record<string, string[]>;
|
|
125
|
+
}
|
|
112
126
|
interface RepoConfig {
|
|
113
127
|
/** "owner/name" — the GitHub repository coordinate. Derived from the git remote when absent. */
|
|
114
128
|
name?: string;
|
|
@@ -147,6 +161,8 @@ interface RepoConfig {
|
|
|
147
161
|
properties?: RepoProperties;
|
|
148
162
|
/** GitHub Actions variables reconciled by `holocron repo setup`. */
|
|
149
163
|
variables?: RepoVariables;
|
|
164
|
+
/** The secrets that must exist, checked by `holocron doctor secrets`. Names only; nothing writes them. */
|
|
165
|
+
secrets?: RepoSecrets;
|
|
150
166
|
}
|
|
151
167
|
interface AppConfig {
|
|
152
168
|
name: string;
|
|
@@ -625,4 +641,4 @@ interface ComposedPreset {
|
|
|
625
641
|
* const preset = compose(node(), nextjs());
|
|
626
642
|
*/
|
|
627
643
|
declare function compose(...args: (Capability | Capability[])[]): ComposedPreset;
|
|
628
|
-
export {
|
|
644
|
+
export { ResolvedTuple as A, RepoProperties as C, ResolvedHolocronConfig as D, RepoVariables as E, WorkflowWithConfig as F, StorybookDeployProject as M, TaskEntryConfig as N, ResolvedProviderEntry as O, TelemetryConfig 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, SingleEntry as j, ResolvedProvidersConfig 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,5 +1,5 @@
|
|
|
1
1
|
import { $ as LifecycleSlot, $t as WikiProvisionOpts, A as DeploymentProject, At as RepoRef, B as EnsureRelayResult, Bt as SourceTeamMember, C as ConnectionStringOptions, Ct as NotificationsSignIn, D as DeployScriptConfig, Dt as ParseWebhookInput, E as DeployFunctionResult, Et as PagesConfig, F as Dns, Ft as Secrets, G as EnvironmentReviewer, Gt as TeamPermission, H as EnsureWebhookResult, Ht as Storage, I as DnsRecord, It as ServerInspection, J as Issue, Jt as TrackerDoctorReport, K as Environments, Kt as Tooling, L as DnsRecordRequest, Lt as Source, M as DeploymentRecord, Mt as ResolvedCapability, N as DeploymentTarget, Nt as Ruleset, O as DeployScriptResult, Ot as ProviderIdentity, P as DeploymentTrigger, Pt as SecretScope, Q as LifecycleResult, Qt as Wiki, R as DnsRecordType, Rt as SourceBranch, S as CiRunStatus, St as NotificationsServerLayout, T as DeployFunctionConfig, Tt as NotificationsWelcomeLayout, U as EnsuredResource, Ut as StorageBranch, V as EnsureResult, Vt as StatusCategory, W as Environment, Wt as TeamEntry, X as Issues, Xt as Vault, Y as IssueSearchFilter, Yt as TrackerUser, Z as LabelDef, Zt as WebhookDashboardInfo, _ as Cardinality, _t as NotificationsLayout, a as REQUIRED_CAPABILITIES, at as MonitoringAssertionComparison, b as CiRun, bt as NotificationsOnboardingLayout, c as Analytics, ct as MonitoringCheckInput, d as AuthEvent, dt as Notifications, en as WikiProxyConfig, et as Logs, f as AuthEventType, ft as NotificationsAccess, g as CapabilityKey, gt as NotificationsEveryoneLayout, h as CapabilityImpls, ht as NotificationsDelivery, i as ProviderApiError, it as MonitoringAssertion, j as DeploymentProjectSettings, jt as RepoSettings, k as Deployment, kt as PullRequest, l as Auth, lt as MonitoringHttpMethod, m as AuthUser, mt as NotificationsChannelLayout, n as ElevationRequiredError, nt as MonitoringAlertChannelInput, o as WebhookVerificationError, ot as MonitoringAssertionSource, p as AuthIdentity, pt as NotificationsApplicationLayout, q as Errors, qt as ToolingDoctorReport, r as MissingTokenError, rt as MonitoringAlertChannelResult, s as isMulti, st as MonitoringCheck, t as CARDINALITY, tn as Workers, tt as Monitoring, u as AuthDescription, ut as NormalizedAuthUser, v as CardinalityFor, vt as NotificationsLinksLayout, w as CreateAuthUserInput, wt as NotificationsSignedIn, x as CiRunFilter, xt as NotificationsPinnedLayout, y as Ci, yt as NotificationsMember, z as EnsureRelayInput, zt as SourceFile } from "./index-CwxYoWzS.mjs";
|
|
2
|
-
import { A as
|
|
2
|
+
import { A as ResolvedTuple, C as RepoProperties, D as ResolvedHolocronConfig, E as RepoVariables, F as WorkflowWithConfig, M as StorybookDeployProject, N as TaskEntryConfig, O as ResolvedProviderEntry, P as TelemetryConfig, 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 SingleEntry, k as ResolvedProvidersConfig, 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-DbuSPIGf.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";
|
|
@@ -222,4 +222,4 @@ export declare function describeNetworkError(err: unknown, timeoutMs: number): s
|
|
|
222
222
|
* earlier one failed is reported as not tried rather than failing a second time for the same reason.
|
|
223
223
|
*/
|
|
224
224
|
export declare function connectionProbe(input: ConnectionProbeInput): Probe;
|
|
225
|
-
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, MissingTokenError, 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, SourceBranch, 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 };
|
|
225
|
+
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, MissingTokenError, 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, type RepoSecrets, 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, 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, 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-CDyegVKe.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";
|
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-DbuSPIGf.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.267",
|
|
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/datapad": "5.0.0-alpha.265",
|
|
57
|
-
"@theholocron/fs-utils": "^1.16.1-alpha.1",
|
|
55
|
+
"@theholocron/env-utils": "^1.16.1-alpha.1",
|
|
58
56
|
"@theholocron/git-utils": "^1.16.1-alpha.1",
|
|
59
|
-
"@theholocron/
|
|
57
|
+
"@theholocron/fs-utils": "^1.16.1-alpha.1",
|
|
58
|
+
"@theholocron/datapad": "5.0.0-alpha.267",
|
|
60
59
|
"@theholocron/http-client": "^1.58.0-alpha.1",
|
|
61
|
-
"@theholocron/
|
|
60
|
+
"@theholocron/github-client": "^1.58.0-alpha.1",
|
|
62
61
|
"@theholocron/json-utils": "^1.16.1-alpha.1",
|
|
63
62
|
"@theholocron/misc-utils": "^1.16.1-alpha.1",
|
|
63
|
+
"@theholocron/observability": "^0.6.1-alpha.1",
|
|
64
64
|
"@theholocron/pkg-utils": "^1.16.1-alpha.1",
|
|
65
|
-
"@theholocron/
|
|
65
|
+
"@theholocron/astromech": "5.0.0-alpha.267"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@types/node": "^26",
|
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
"typescript": "^5.9.3",
|
|
78
78
|
"vitest": "^5.0.5",
|
|
79
79
|
"@theholocron/eslint-config": "^8.9.0-alpha.3",
|
|
80
|
-
"@theholocron/tsconfig": "^8.9.0-alpha.3",
|
|
81
80
|
"@theholocron/rollup-plugin-transform-template": "^8.9.0-alpha.3",
|
|
81
|
+
"@theholocron/tsconfig": "^8.9.0-alpha.3",
|
|
82
82
|
"@theholocron/vitest-config": "^8.9.0-alpha.3"
|
|
83
83
|
},
|
|
84
84
|
"engines": {
|