@theholocron/cli 5.0.0-alpha.350 → 5.0.0-alpha.352
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 +4 -2
- package/dist/cli.mjs +259 -10
- package/dist/cli.mjs.map +1 -1
- package/dist/{config-system-C6MsRNbo.d.mts → config-system-DU91-XEp.d.mts} +21 -1
- package/dist/{config-system-5rdWyUAw.mjs → config-system-iuxern-U.mjs} +35 -4
- 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 +9 -9
|
@@ -121,9 +121,29 @@ interface RepoVariables {
|
|
|
121
121
|
value: string;
|
|
122
122
|
visibility?: "all" | "private";
|
|
123
123
|
}>;
|
|
124
|
+
/**
|
|
125
|
+
* The vault environments `holocron secrets sync` fills variables from, so one 1Password Environment is the only
|
|
126
|
+
* place they are edited. Names only. A name here must not also be a literal value in `repo` or `org`, and `prune`
|
|
127
|
+
* cannot be combined with it; either is a config error.
|
|
128
|
+
*/
|
|
129
|
+
sync?: RepoVariablesSync[];
|
|
124
130
|
/** Delete variables that exist but are not declared here. Off by default: they are left alone. */
|
|
125
131
|
prune?: boolean;
|
|
126
132
|
}
|
|
133
|
+
/**
|
|
134
|
+
* One vault environment that `holocron secrets sync` pushes into GitHub Actions variables. Not secrets: a variable is
|
|
135
|
+
* readable in GitHub afterwards, so keep it in an environment of its own, apart from the one that fills secrets.
|
|
136
|
+
*/
|
|
137
|
+
interface RepoVariablesSync {
|
|
138
|
+
/** The vault environment id, as given to `holocron secrets sync <environmentId>`. */
|
|
139
|
+
environment: string;
|
|
140
|
+
/** The vault keys written as variables, by name. Required: a key the environment gains by mistake is never published. */
|
|
141
|
+
keys: string[];
|
|
142
|
+
/** Where the variables land: `"repo"` (the default) or `"org=<name>"`. */
|
|
143
|
+
scope?: string;
|
|
144
|
+
/** Organization variables only: which repositories can read them. `"all"` by default. */
|
|
145
|
+
visibility?: "all" | "private";
|
|
146
|
+
}
|
|
127
147
|
/**
|
|
128
148
|
* The names of the secrets that must exist for this repository's workflows to work, so `holocron doctor secrets`
|
|
129
149
|
* can say which are missing. Only names go here, never values; `holocron secrets set` and `secrets sync` write
|
|
@@ -845,4 +865,4 @@ declare const loadConfig: (cwd: string) => Promise<LoadedConfig>;
|
|
|
845
865
|
* const preset = compose(node(), nextjs());
|
|
846
866
|
*/
|
|
847
867
|
declare const compose: (...args: (Capability | Capability[])[]) => ComposedPreset;
|
|
848
|
-
export { RepoConfig as A,
|
|
868
|
+
export { RepoConfig as A, ResolvedProvidersConfig as B, EslintConfig as C, ProviderOptions as D, MultiEntry as E, RepoValidationConfig as F, TelemetryConfig as G, SingleEntry as H, RepoVariables as I, WorkflowWithConfig as K, RepoVariablesSync as L, RepoProtection as M, RepoSecrets as N, RawProviderEntry as O, RepoSecretsSync as P, ResolvedHolocronConfig as R, EnvConfig as S, LogConfig as T, StorybookDeployProject as U, ResolvedTuple as V, TaskEntryConfig 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$1 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, ResolvedProviderEntry as z };
|
|
@@ -6,6 +6,34 @@ import { readPackageJson } from "@theholocron/pkg-utils";
|
|
|
6
6
|
import { resolveTaskName } from "@theholocron/astromech";
|
|
7
7
|
import { loadTasksConfig } from "@theholocron/astromech/config";
|
|
8
8
|
import { readGitRemote } from "@theholocron/git-utils";
|
|
9
|
+
// src/config/validate-variables-sync/validate-variables-sync.ts
|
|
10
|
+
/** GitHub treats variable names as case-insensitive, so every comparison goes through this. */
|
|
11
|
+
const key = (name) => name.toUpperCase();
|
|
12
|
+
/**
|
|
13
|
+
* Check `repo.variables.sync`: each entry names a vault environment, one or more keys and a scope that is `repo` or
|
|
14
|
+
* `org=<name>`; a name may not also be a literal value of the same scope (one source per name); and `prune` cannot
|
|
15
|
+
* be combined with `sync`, because `repo setup` would delete the variables the sync wrote.
|
|
16
|
+
*
|
|
17
|
+
* @param variables - `repo.variables`, if the config has it.
|
|
18
|
+
* @throws {ConfigError} Naming the first problem found.
|
|
19
|
+
*/
|
|
20
|
+
function validateVariablesSync(variables) {
|
|
21
|
+
const entries = variables?.sync;
|
|
22
|
+
if (!entries || entries.length === 0) return;
|
|
23
|
+
if (variables?.prune === true) throw new ConfigError("`repo.variables.prune` cannot be combined with `repo.variables.sync`: pruning would delete the variables the sync writes");
|
|
24
|
+
for (const entry of entries) {
|
|
25
|
+
if (typeof entry.environment !== "string" || entry.environment.trim() === "") throw new ConfigError("a `repo.variables.sync` entry needs the name of a vault environment");
|
|
26
|
+
const label = `\`repo.variables.sync\` entry for ${JSON.stringify(entry.environment)}`;
|
|
27
|
+
if (!Array.isArray(entry.keys) || entry.keys.length === 0 || entry.keys.some((k) => typeof k !== "string" || k === "")) throw new ConfigError(`${label} needs \`keys\`, a list of variable names`);
|
|
28
|
+
const scope = entry.scope ?? "repo";
|
|
29
|
+
const org = scope.startsWith("org=") ? scope.slice(4) : void 0;
|
|
30
|
+
if (scope !== "repo" && (org === void 0 || org === "")) throw new ConfigError(`${label} has scope ${JSON.stringify(scope)}: use "repo" or "org=<name>"`);
|
|
31
|
+
if (entry.visibility !== void 0 && entry.visibility !== "all" && entry.visibility !== "private") throw new ConfigError(`${label} has visibility ${JSON.stringify(entry.visibility)}: use "all" or "private"`);
|
|
32
|
+
const literal = new Set(Object.keys((org === void 0 ? variables?.repo : variables?.org) ?? {}).map(key));
|
|
33
|
+
const both = entry.keys.filter((k) => literal.has(key(k)));
|
|
34
|
+
if (both.length > 0) throw new ConfigError(`${label} lists ${both.join(", ")}, which \`repo.variables.${org === void 0 ? "repo" : "org"}\` also gives a value: keep one source per name`);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
9
37
|
// src/config/config/config.ts
|
|
10
38
|
const PLUGIN_PREFIX = "@theholocron/holocron-plugin-";
|
|
11
39
|
const COMMUNITY_PREFIX = "holocron-plugin-";
|
|
@@ -127,6 +155,7 @@ function resolveConfig(raw) {
|
|
|
127
155
|
if (typeof environment !== "string" || environment.trim() === "") throw new ConfigError$1("`credentials.environment` must be the name of an environment, got an empty value");
|
|
128
156
|
}
|
|
129
157
|
if (raw.dev !== void 0) validateDev(raw.dev);
|
|
158
|
+
validateVariablesSync(raw.repo?.variables);
|
|
130
159
|
const credentialsEntry = providers.credentials;
|
|
131
160
|
if (credentialsEntry?.cardinality === "many") for (const tuple of credentialsEntry.tuples) {
|
|
132
161
|
const own = tuple.options.environment;
|
|
@@ -163,8 +192,9 @@ function resolveConfig(raw) {
|
|
|
163
192
|
}
|
|
164
193
|
// src/config/compose/merge-sync/merge-sync.ts
|
|
165
194
|
/**
|
|
166
|
-
* Merge two lists of `repo.secrets.sync` entries. An entry is the same sync when its
|
|
167
|
-
* the keys then add up, and an entry that names no keys (every key the vault holds) stays
|
|
195
|
+
* Merge two lists of `repo.secrets.sync` (or `repo.variables.sync`) entries. An entry is the same sync when its
|
|
196
|
+
* environment and scope match; the keys then add up, and an entry that names no keys (every key the vault holds) stays
|
|
197
|
+
* that way.
|
|
168
198
|
*/
|
|
169
199
|
function mergeSync(a, b) {
|
|
170
200
|
const merged = /* @__PURE__ */ new Map();
|
|
@@ -187,7 +217,7 @@ const properties = shallowMerge();
|
|
|
187
217
|
const teamsByKey = mergeByKey((t) => typeof t === "string" ? t : t.slug);
|
|
188
218
|
/**
|
|
189
219
|
* Merge one capability's `repo` fragment onto what earlier ones gave. Scalars: last writer wins. `properties`: shallow
|
|
190
|
-
* merge. `variables`: merged per scope (`repo`, `org`). `secrets`: each name list is a union, and `sync` entries merge by
|
|
220
|
+
* merge. `variables`: merged per scope (`repo`, `org`), and `sync` entries by environment and scope. `secrets`: each name list is a union, and `sync` entries merge by
|
|
191
221
|
* environment and scope. `topics`: union. `teams`: merged by slug.
|
|
192
222
|
*/
|
|
193
223
|
function mergeRepo(prev, next) {
|
|
@@ -207,7 +237,8 @@ function mergeRepo(prev, next) {
|
|
|
207
237
|
...repo.variables?.org || variables.org ? { org: {
|
|
208
238
|
...repo.variables?.org,
|
|
209
239
|
...variables.org
|
|
210
|
-
} } : {}
|
|
240
|
+
} } : {},
|
|
241
|
+
...repo.variables?.sync || variables.sync ? { sync: mergeSync(repo.variables?.sync, variables.sync) } : {}
|
|
211
242
|
};
|
|
212
243
|
if (secrets) {
|
|
213
244
|
const environments = { ...repo.secrets?.environments };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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-CArtx6o0.mjs";
|
|
2
|
-
import { A as RepoConfig, B as
|
|
2
|
+
import { A as RepoConfig, B as ResolvedProvidersConfig, C as EslintConfig, D as ProviderOptions, E as MultiEntry, F as RepoValidationConfig, G as TelemetryConfig, H as SingleEntry, I as RepoVariables, K as WorkflowWithConfig, L as RepoVariablesSync, M as RepoProtection, N as RepoSecrets, O as RawProviderEntry, P as RepoSecretsSync, R as ResolvedHolocronConfig, S as EnvConfig, T as LogConfig, U as StorybookDeployProject, V as ResolvedTuple, W as TaskEntryConfig, _ 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 ResolvedProviderEntry } from "./config-system-DU91-XEp.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
5
|
import "@theholocron/kyber/plugins";
|
|
@@ -329,4 +329,4 @@ export interface ConnectionProbeInput extends Omit<ConnectionProbeInput$1, "veri
|
|
|
329
329
|
* kyber's `connectionProbe`; this types the result as the plugin system's {@link Probe} and `verify` as `VerifyTokenResult`.
|
|
330
330
|
*/
|
|
331
331
|
export declare function connectionProbe(input: ConnectionProbeInput): Probe;
|
|
332
|
-
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 };
|
|
332
|
+
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 RepoVariablesSync, 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,5 +1,5 @@
|
|
|
1
1
|
import { CARDINALITY, ElevationRequiredError, MissingTokenError, ProviderApiError, REQUIRED_CAPABILITIES, WebhookVerificationError, isMulti } from "./plugin/capabilities.mjs";
|
|
2
|
-
import { a as placeAreas, c as credentialsEnvironment, d as resolvePluginPackage, i as loadConfig, l as resolveConfig, n as compose, o as HOLOCRON_AREAS, r as defineConfig, s as ConfigError, t as ConfigFileError, u as resolveEntry } from "./config-system-
|
|
2
|
+
import { a as placeAreas, c as credentialsEnvironment, d as resolvePluginPackage, i as loadConfig, l as resolveConfig, n as compose, o as HOLOCRON_AREAS, r as defineConfig, s as ConfigError, t as ConfigFileError, u as resolveEntry } from "./config-system-iuxern-U.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";
|
package/dist/presets.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as compose, o as Capability, s as ComposedPreset } from "./config-system-
|
|
1
|
+
import { n as compose, o as Capability, s as ComposedPreset } from "./config-system-DU91-XEp.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.352",
|
|
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,19 +54,19 @@
|
|
|
54
54
|
"posthog-node": "^5.61.1",
|
|
55
55
|
"tsx": "4.23.15",
|
|
56
56
|
"yargs": "^18.1.0",
|
|
57
|
-
"@theholocron/
|
|
58
|
-
"@theholocron/
|
|
57
|
+
"@theholocron/dagobah": "5.0.0-alpha.352",
|
|
58
|
+
"@theholocron/datapad": "5.0.0-alpha.352",
|
|
59
|
+
"@theholocron/fs-utils": "^1.17.0-alpha.1",
|
|
59
60
|
"@theholocron/env-utils": "^1.17.0-alpha.1",
|
|
60
61
|
"@theholocron/git-utils": "^1.17.0-alpha.1",
|
|
62
|
+
"@theholocron/astromech": "5.0.0-alpha.352",
|
|
61
63
|
"@theholocron/github-client": "^1.58.0-alpha.11",
|
|
62
|
-
"@theholocron/datapad": "5.0.0-alpha.350",
|
|
63
64
|
"@theholocron/http-client": "^1.58.0-alpha.11",
|
|
64
65
|
"@theholocron/json-utils": "^1.17.0-alpha.1",
|
|
66
|
+
"@theholocron/kyber": "5.0.0-alpha.352",
|
|
65
67
|
"@theholocron/observability": "^0.7.0-alpha.1",
|
|
66
|
-
"@theholocron/misc-utils": "^1.17.0-alpha.1",
|
|
67
|
-
"@theholocron/kyber": "5.0.0-alpha.350",
|
|
68
68
|
"@theholocron/pkg-utils": "^1.17.0-alpha.1",
|
|
69
|
-
"@theholocron/
|
|
69
|
+
"@theholocron/misc-utils": "^1.17.0-alpha.1"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@types/node": "^26",
|
|
@@ -80,9 +80,9 @@
|
|
|
80
80
|
"typescript": "^5.9.3",
|
|
81
81
|
"vitest": "^5.0.5",
|
|
82
82
|
"@theholocron/eslint-config": "^8.9.0-alpha.8",
|
|
83
|
-
"@theholocron/
|
|
83
|
+
"@theholocron/tsconfig": "^8.9.0-alpha.8",
|
|
84
84
|
"@theholocron/vitest-config": "^8.9.0-alpha.8",
|
|
85
|
-
"@theholocron/
|
|
85
|
+
"@theholocron/rollup-plugin-transform-template": "^8.9.0-alpha.8"
|
|
86
86
|
},
|
|
87
87
|
"engines": {
|
|
88
88
|
"node": ">=22.0.0"
|