@theholocron/cli 3.13.1 → 3.15.0
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/dist/cli.mjs +100 -2
- package/dist/cli.mjs.map +1 -1
- package/dist/index.d.mts +29 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -101,6 +101,23 @@ interface AppConfig {
|
|
|
101
101
|
interface DoctorConfig {
|
|
102
102
|
checks?: string[];
|
|
103
103
|
}
|
|
104
|
+
interface EnvConfig {
|
|
105
|
+
/**
|
|
106
|
+
* Namespace prefixes used by this project's env vars.
|
|
107
|
+
* Listed from least- to most-specific (cascade model — last wins).
|
|
108
|
+
* Tooling reads this to generate `.env.example`, validate required
|
|
109
|
+
* vars, and produce documentation. Runtime code passes the same
|
|
110
|
+
* value to `createEnvParser({ namespaces })` from `@theholocron/env-utils`.
|
|
111
|
+
*
|
|
112
|
+
* @example
|
|
113
|
+
* // Project-only prefix
|
|
114
|
+
* namespaces: ["CLI_TEMPLATE"]
|
|
115
|
+
*
|
|
116
|
+
* // Org-wide defaults + project-specific overrides
|
|
117
|
+
* namespaces: ["HOLOCRON", "MY_CLI"]
|
|
118
|
+
*/
|
|
119
|
+
namespaces?: string[];
|
|
120
|
+
}
|
|
104
121
|
interface HolocronConfig {
|
|
105
122
|
/** Project name. Derived from package.json when absent. */
|
|
106
123
|
name?: string;
|
|
@@ -167,6 +184,16 @@ interface HolocronConfig {
|
|
|
167
184
|
* { build: "workflow", domain: "docs.theholocron.dev", https: true }
|
|
168
185
|
*/
|
|
169
186
|
docs?: DocsConfig;
|
|
187
|
+
/**
|
|
188
|
+
* Environment variable namespace configuration.
|
|
189
|
+
* Declares the prefix(es) this project uses for its env vars so that
|
|
190
|
+
* tooling can generate `.env.example`, validate required vars, and
|
|
191
|
+
* produce accurate documentation without hard-coding prefix strings.
|
|
192
|
+
*
|
|
193
|
+
* @example
|
|
194
|
+
* { namespaces: ["HOLOCRON", "MY_CLI"] }
|
|
195
|
+
*/
|
|
196
|
+
env?: EnvConfig;
|
|
170
197
|
}
|
|
171
198
|
interface ResolvedTuple {
|
|
172
199
|
provider: string;
|
|
@@ -199,6 +226,7 @@ interface ResolvedHolocronConfig {
|
|
|
199
226
|
skills?: string[];
|
|
200
227
|
/** Resolved Pages config. `build` is guaranteed present when this field exists. */
|
|
201
228
|
docs?: PagesConfig;
|
|
229
|
+
env?: EnvConfig;
|
|
202
230
|
}
|
|
203
231
|
declare class ConfigError extends Error {
|
|
204
232
|
name: string;
|
|
@@ -282,4 +310,4 @@ interface LoadedConfig {
|
|
|
282
310
|
*/
|
|
283
311
|
declare function loadConfig(cwd: string): Promise<LoadedConfig>;
|
|
284
312
|
//#endregion
|
|
285
|
-
export { Analytics, AppConfig, Auth, AuthDescription, AuthError, AuthEvent, AuthEventType, AuthIdentity, AuthUser, CARDINALITY, CapabilityConfigPackage, CapabilityImpls, CapabilityKey, Cardinality, CardinalityFor, Ci, CiRun, CiRunFilter, CiRunStatus, ConfigError, ConfigFileError, ConnectionStringOptions, CreateAuthUserInput, Deployment, DeploymentProject, DeploymentProjectSettings, DeploymentRecord, DeploymentTarget, DeploymentTrigger, Dns, DnsRecord, DnsRecordType, DocsConfig, DoctorConfig, EnsureResult, EnvLookup, Environment, EnvironmentReviewer, Environments, FeatureResolverConfig, HolocronConfig, Issue, IssueSearchFilter, Issues, LabelDef, LifecycleResult, LifecycleSlot, LoadedConfig, MultiEntry, NormalizedAuthUser, Notifications, Observability, PagesConfig, ParseWebhookInput, ProviderApiError, ProviderIdentity, ProviderOptions, REQUIRED_CAPABILITIES, RawProviderEntry, RawProvidersConfig, RepoConfig, RepoProperties, RepoProtection, RepoRef, RepoSettings, type RequestOptions, ResolveTokenConfig, type ResolveTokenInput, ResolvedCapability, ResolvedHolocronConfig, ResolvedProviderEntry, ResolvedProvidersConfig, ResolvedTuple, type RestClient, type RestClientConfig, Ruleset, SecretScope, Secrets, SingleEntry, Source, StatusCategory, Storage, StorageBranch, TeamEntry, TeamPermission, Tooling, ToolingDoctorReport, TrackerDoctorReport, TrackerUser, Vault, WebhookDashboardInfo, WebhookVerificationError, createEnvLookup, createFeatureResolver, createResolveToken, createRestClient, defineConfig, deleteToken, getToken, isMulti, listStoredProviders, loadConfig, resolveConfig, resolveEntry, resolvePluginPackage, setToken };
|
|
313
|
+
export { Analytics, AppConfig, Auth, AuthDescription, AuthError, AuthEvent, AuthEventType, AuthIdentity, AuthUser, CARDINALITY, CapabilityConfigPackage, CapabilityImpls, CapabilityKey, Cardinality, CardinalityFor, Ci, CiRun, CiRunFilter, CiRunStatus, ConfigError, ConfigFileError, ConnectionStringOptions, CreateAuthUserInput, Deployment, DeploymentProject, DeploymentProjectSettings, DeploymentRecord, DeploymentTarget, DeploymentTrigger, Dns, DnsRecord, DnsRecordType, DocsConfig, DoctorConfig, EnsureResult, EnvConfig, EnvLookup, Environment, EnvironmentReviewer, Environments, FeatureResolverConfig, HolocronConfig, Issue, IssueSearchFilter, Issues, LabelDef, LifecycleResult, LifecycleSlot, LoadedConfig, MultiEntry, NormalizedAuthUser, Notifications, Observability, PagesConfig, ParseWebhookInput, ProviderApiError, ProviderIdentity, ProviderOptions, REQUIRED_CAPABILITIES, RawProviderEntry, RawProvidersConfig, RepoConfig, RepoProperties, RepoProtection, RepoRef, RepoSettings, type RequestOptions, ResolveTokenConfig, type ResolveTokenInput, ResolvedCapability, ResolvedHolocronConfig, ResolvedProviderEntry, ResolvedProvidersConfig, ResolvedTuple, type RestClient, type RestClientConfig, Ruleset, SecretScope, Secrets, SingleEntry, Source, StatusCategory, Storage, StorageBranch, TeamEntry, TeamPermission, Tooling, ToolingDoctorReport, TrackerDoctorReport, TrackerUser, Vault, WebhookDashboardInfo, WebhookVerificationError, createEnvLookup, createFeatureResolver, createResolveToken, createRestClient, defineConfig, deleteToken, getToken, isMulti, listStoredProviders, loadConfig, resolveConfig, resolveEntry, resolvePluginPackage, setToken };
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/cli",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.15.0",
|
|
4
4
|
"description": "The Holocron CLI — a pluggable, capability-based orchestrator for spinning up and operating software projects.",
|
|
5
5
|
"homepage": "https://github.com/theholocron/holocron/tree/main/packages/cli#readme",
|
|
6
6
|
"bugs": "https://github.com/theholocron/holocron/issues",
|