@theholocron/cli 5.0.0-alpha.362 → 5.0.0-alpha.364

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,4 +1,4 @@
1
- import { $t as PagesConfig, D as CapabilityKey, Sn as TeamEntry } from "./index-oC-J5CCm.mjs";
1
+ import { $t as PagesConfig, D as CapabilityKey, Sn as TeamEntry } from "./index-CvlWdUi1.mjs";
2
2
  import { ConfigError as ConfigError$1, ConfigFileError } from "@theholocron/kyber/config";
3
3
  import { DocsCoverageMode } from "@theholocron/astromech";
4
4
  import { LogLevel } from "@theholocron/observability/core";
@@ -271,6 +271,17 @@ interface Source extends ProviderIdentity {
271
271
  * permission). Read-only. Optional — providers without custom properties omit this.
272
272
  */
273
273
  checkPropertyValues?(values: Record<string, string | string[]>): Promise<string[] | undefined>;
274
+ /**
275
+ * The values the organization's `single_select` or `multi_select` custom property `name` allows, or `undefined` when
276
+ * the definitions cannot be read, the property does not exist or it takes any value. Read-only. Optional.
277
+ */
278
+ getOrgPropertyValues?(name: string): Promise<string[] | undefined>;
279
+ /**
280
+ * Adds the values the organization's custom property `name` does not allow yet and returns the ones it added. Never
281
+ * removes or reorders a value, and keeps the rest of the definition as it is. Rejects when the property does not
282
+ * exist or the token cannot write it (the organization's Custom properties: admin). Optional.
283
+ */
284
+ addOrgPropertyValues?(name: string, values: string[]): Promise<string[]>;
274
285
  /**
275
286
  * The repository's labels as they are now. Read-only.
276
287
  * Optional — providers without labels omit this.
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { $ as DnsRecordType, $t as PagesConfig, A as Ci, An as Vault, At as MonitoringCheckInput, B as DeployScriptConfig, Bt as NotificationsForumTag, C as BoardTemplate, Cn as TeamPermission, Ct as MonitoringAlertChannelResult, D as CapabilityKey, Dn as TrackerUser, Dt as MonitoringAssertionComparison, E as CapabilityImpls, En as TrackerDoctorReport, Et as MonitoringAssertion, F as CreateAuthUserInput, Fn as WorkerScriptState, Ft as NotificationsAccess, G as DeploymentRecord, Gt as NotificationsOnboardingLayout, H as Deployment, Ht as NotificationsLinksLayout, I as Credentials, In as Workers, It as NotificationsApplicationLayout, J as DiscussionPatch, Jt as NotificationsPrsFeed, K as DeploymentTarget, Kt as NotificationsPicture, L as CredentialsInspection, Lt as NotificationsChannelLayout, M as CiRunFilter, Mn as Wiki, Mt as MoveReport, N as CiRunStatus, Nn as WikiProvisionOpts, Nt as NormalizedAuthUser, O as Cardinality, On as TunnelRoute, Ot as MonitoringAssertionSource, P as ConnectionStringOptions, Pn as WikiProxyConfig, Pt as Notifications, Q as DnsRecordRequest, Qt as NotificationsWelcomeLayout, R as DeployFunctionConfig, Rt as NotificationsDelivery, S as BoardSummary, Sn as TeamEntry, St as MonitoringAlertChannelInput, T as BoardView, Tn as ToolingDoctorReport, 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 NotificationsSignIn, Y as DiscussionPost, Yt as NotificationsServerLayout, Z as DnsRecord, Zt as NotificationsSignedIn, _ as BoardItem, _n as SourceSecurity, _t as LabelDef, a as REQUIRED_CAPABILITIES, an as RepoRef, at as EnsureWebhookResult, b as BoardStatus, bn as Storage, bt as Logs, c as Analytics, cn as Ruleset, ct as EnsuredTunnel, d as AuthEvent, dn as ServerInspection, dt as Environments, en as ParseWebhookInput, et as EnsureDiscussionInput, f as AuthEventType, fn as Source, ft as Errors, g as BoardFieldType, gn as SourceRulesetDetail, gt as Issues, h as BoardField, hn as SourceRepoInfo, ht as IssueSearchFilter, i as ProviderApiError, in as RelayState, it as EnsureResult, j as CiRun, jn as WebhookDashboardInfo, jt as MonitoringHttpMethod, k as CardinalityFor, kn as Tunnels, kt as MonitoringCheck, l as Auth, ln as SecretScope, lt as Environment, m as AuthUser, mn as SourceFile, mt as Issue, n as ElevationRequiredError, nn as ProviderIdentity, nt as EnsureRelayResult, o as WebhookVerificationError, on as RepoSettings, ot as EnsuredDiscussion, p as AuthIdentity, pn as SourceBranch, pt as InspectRelayInput, q as DeploymentTrigger, qt as NotificationsPinnedLayout, r as MissingTokenError, rn as PullRequest, rt as EnsureReport, s as isMulti, sn as ResolvedCapability, st as EnsuredResource, t as CARDINALITY, tn as Projects, tt as EnsureRelayInput, u as AuthDescription, un as Secrets, ut as EnvironmentReviewer, v as BoardRule, vn as SourceTeamMember, vt as LifecycleResult, w as BoardTemplateFile, wn as Tooling, wt as MonitoringAlertChannelState, x as BoardStatusCategory, xn as StorageBranch, xt as Monitoring, y as BoardState, yn as StatusCategory, yt as LifecycleSlot, z as DeployFunctionResult, zt as NotificationsEveryoneLayout } from "./index-oC-J5CCm.mjs";
2
- import { A as RawProviderEntry, B as ResolvedHolocronConfig, C as EslintConfig, D as MultiEntry, E as LogConfig, F as RepoSecrets, G as StorybookDeployProject, H as ResolvedProvidersConfig, I as RepoSecretsSync, J as WorkflowWithConfig, K as TaskEntryConfig, L as RepoValidationConfig, M as RepoConfig, N as RepoProperties, O as OrgConfig, P as RepoProtection, R as RepoVariables, S as EnvConfig, T as HolocronConfig, U as ResolvedTuple, V as ResolvedProviderEntry, W as SingleEntry, _ 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 RawProvidersConfig, k as ProviderOptions, l as ConfigError, m as AppConfig, n as compose, o as Capability, p as resolvePluginPackage, q as TelemetryConfig, r as defineConfig, s as ComposedPreset, t as ConfigFileError, u as credentialsEnvironment, v as DevConfig, w as GitHubAppConfig, x as DoctorConfig, y as DevServeConfig, z as RepoVariablesSync } from "./config-system-BLKX9ztT.mjs";
1
+ import { $ as DnsRecordType, $t as PagesConfig, A as Ci, An as Vault, At as MonitoringCheckInput, B as DeployScriptConfig, Bt as NotificationsForumTag, C as BoardTemplate, Cn as TeamPermission, Ct as MonitoringAlertChannelResult, D as CapabilityKey, Dn as TrackerUser, Dt as MonitoringAssertionComparison, E as CapabilityImpls, En as TrackerDoctorReport, Et as MonitoringAssertion, F as CreateAuthUserInput, Fn as WorkerScriptState, Ft as NotificationsAccess, G as DeploymentRecord, Gt as NotificationsOnboardingLayout, H as Deployment, Ht as NotificationsLinksLayout, I as Credentials, In as Workers, It as NotificationsApplicationLayout, J as DiscussionPatch, Jt as NotificationsPrsFeed, K as DeploymentTarget, Kt as NotificationsPicture, L as CredentialsInspection, Lt as NotificationsChannelLayout, M as CiRunFilter, Mn as Wiki, Mt as MoveReport, N as CiRunStatus, Nn as WikiProvisionOpts, Nt as NormalizedAuthUser, O as Cardinality, On as TunnelRoute, Ot as MonitoringAssertionSource, P as ConnectionStringOptions, Pn as WikiProxyConfig, Pt as Notifications, Q as DnsRecordRequest, Qt as NotificationsWelcomeLayout, R as DeployFunctionConfig, Rt as NotificationsDelivery, S as BoardSummary, Sn as TeamEntry, St as MonitoringAlertChannelInput, T as BoardView, Tn as ToolingDoctorReport, 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 NotificationsSignIn, Y as DiscussionPost, Yt as NotificationsServerLayout, Z as DnsRecord, Zt as NotificationsSignedIn, _ as BoardItem, _n as SourceSecurity, _t as LabelDef, a as REQUIRED_CAPABILITIES, an as RepoRef, at as EnsureWebhookResult, b as BoardStatus, bn as Storage, bt as Logs, c as Analytics, cn as Ruleset, ct as EnsuredTunnel, d as AuthEvent, dn as ServerInspection, dt as Environments, en as ParseWebhookInput, et as EnsureDiscussionInput, f as AuthEventType, fn as Source, ft as Errors, g as BoardFieldType, gn as SourceRulesetDetail, gt as Issues, h as BoardField, hn as SourceRepoInfo, ht as IssueSearchFilter, i as ProviderApiError, in as RelayState, it as EnsureResult, j as CiRun, jn as WebhookDashboardInfo, jt as MonitoringHttpMethod, k as CardinalityFor, kn as Tunnels, kt as MonitoringCheck, l as Auth, ln as SecretScope, lt as Environment, m as AuthUser, mn as SourceFile, mt as Issue, n as ElevationRequiredError, nn as ProviderIdentity, nt as EnsureRelayResult, o as WebhookVerificationError, on as RepoSettings, ot as EnsuredDiscussion, p as AuthIdentity, pn as SourceBranch, pt as InspectRelayInput, q as DeploymentTrigger, qt as NotificationsPinnedLayout, r as MissingTokenError, rn as PullRequest, rt as EnsureReport, s as isMulti, sn as ResolvedCapability, st as EnsuredResource, t as CARDINALITY, tn as Projects, tt as EnsureRelayInput, u as AuthDescription, un as Secrets, ut as EnvironmentReviewer, v as BoardRule, vn as SourceTeamMember, vt as LifecycleResult, w as BoardTemplateFile, wn as Tooling, wt as MonitoringAlertChannelState, x as BoardStatusCategory, xn as StorageBranch, xt as Monitoring, y as BoardState, yn as StatusCategory, yt as LifecycleSlot, z as DeployFunctionResult, zt as NotificationsEveryoneLayout } from "./index-CvlWdUi1.mjs";
2
+ import { A as RawProviderEntry, B as ResolvedHolocronConfig, C as EslintConfig, D as MultiEntry, E as LogConfig, F as RepoSecrets, G as StorybookDeployProject, H as ResolvedProvidersConfig, I as RepoSecretsSync, J as WorkflowWithConfig, K as TaskEntryConfig, L as RepoValidationConfig, M as RepoConfig, N as RepoProperties, O as OrgConfig, P as RepoProtection, R as RepoVariables, S as EnvConfig, T as HolocronConfig, U as ResolvedTuple, V as ResolvedProviderEntry, W as SingleEntry, _ 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 RawProvidersConfig, k as ProviderOptions, l as ConfigError, m as AppConfig, n as compose, o as Capability, p as resolvePluginPackage, q as TelemetryConfig, r as defineConfig, s as ComposedPreset, t as ConfigFileError, u as credentialsEnvironment, v as DevConfig, w as GitHubAppConfig, x as DoctorConfig, y as DevServeConfig, z as RepoVariablesSync } from "./config-system-uzcuUTOA.mjs";
3
3
  import { AuthError, ResolveTokenConfig as ResolveTokenConfig$1, ResolveTokenInput, ResolveTokenInput as ResolveTokenInput$1, resolveValue } from "@theholocron/kyber/secrets";
4
4
  import { RequestOptions, RestClient, RestClientConfig, createRestClient } from "@theholocron/http-client";
5
5
  import "@theholocron/kyber/plugins";
@@ -1,2 +1,2 @@
1
- import { $ as DnsRecordType, $t as PagesConfig, A as Ci, An as Vault, At as MonitoringCheckInput, B as DeployScriptConfig, Bt as NotificationsForumTag, C as BoardTemplate, Cn as TeamPermission, Ct as MonitoringAlertChannelResult, D as CapabilityKey, Dn as TrackerUser, Dt as MonitoringAssertionComparison, E as CapabilityImpls, En as TrackerDoctorReport, Et as MonitoringAssertion, F as CreateAuthUserInput, Fn as WorkerScriptState, Ft as NotificationsAccess, G as DeploymentRecord, Gt as NotificationsOnboardingLayout, H as Deployment, Ht as NotificationsLinksLayout, I as Credentials, In as Workers, It as NotificationsApplicationLayout, J as DiscussionPatch, Jt as NotificationsPrsFeed, K as DeploymentTarget, Kt as NotificationsPicture, L as CredentialsInspection, Lt as NotificationsChannelLayout, M as CiRunFilter, Mn as Wiki, Mt as MoveReport, N as CiRunStatus, Nn as WikiProvisionOpts, Nt as NormalizedAuthUser, O as Cardinality, On as TunnelRoute, Ot as MonitoringAssertionSource, P as ConnectionStringOptions, Pn as WikiProxyConfig, Pt as Notifications, Q as DnsRecordRequest, Qt as NotificationsWelcomeLayout, R as DeployFunctionConfig, Rt as NotificationsDelivery, S as BoardSummary, Sn as TeamEntry, St as MonitoringAlertChannelInput, T as BoardView, Tn as ToolingDoctorReport, 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 NotificationsSignIn, Y as DiscussionPost, Yt as NotificationsServerLayout, Z as DnsRecord, Zt as NotificationsSignedIn, _ as BoardItem, _n as SourceSecurity, _t as LabelDef, a as REQUIRED_CAPABILITIES, an as RepoRef, at as EnsureWebhookResult, b as BoardStatus, bn as Storage, bt as Logs, c as Analytics, cn as Ruleset, ct as EnsuredTunnel, d as AuthEvent, dn as ServerInspection, dt as Environments, en as ParseWebhookInput, et as EnsureDiscussionInput, f as AuthEventType, fn as Source, ft as Errors, g as BoardFieldType, gn as SourceRulesetDetail, gt as Issues, h as BoardField, hn as SourceRepoInfo, ht as IssueSearchFilter, i as ProviderApiError, in as RelayState, it as EnsureResult, j as CiRun, jn as WebhookDashboardInfo, jt as MonitoringHttpMethod, k as CardinalityFor, kn as Tunnels, kt as MonitoringCheck, l as Auth, ln as SecretScope, lt as Environment, m as AuthUser, mn as SourceFile, mt as Issue, n as ElevationRequiredError, nn as ProviderIdentity, nt as EnsureRelayResult, o as WebhookVerificationError, on as RepoSettings, ot as EnsuredDiscussion, p as AuthIdentity, pn as SourceBranch, pt as InspectRelayInput, q as DeploymentTrigger, qt as NotificationsPinnedLayout, r as MissingTokenError, rn as PullRequest, rt as EnsureReport, s as isMulti, sn as ResolvedCapability, st as EnsuredResource, t as CARDINALITY, tn as Projects, tt as EnsureRelayInput, u as AuthDescription, un as Secrets, ut as EnvironmentReviewer, v as BoardRule, vn as SourceTeamMember, vt as LifecycleResult, w as BoardTemplateFile, wn as Tooling, wt as MonitoringAlertChannelState, x as BoardStatusCategory, xn as StorageBranch, xt as Monitoring, y as BoardState, yn as StatusCategory, yt as LifecycleSlot, z as DeployFunctionResult, zt as NotificationsEveryoneLayout } from "../index-oC-J5CCm.mjs";
1
+ import { $ as DnsRecordType, $t as PagesConfig, A as Ci, An as Vault, At as MonitoringCheckInput, B as DeployScriptConfig, Bt as NotificationsForumTag, C as BoardTemplate, Cn as TeamPermission, Ct as MonitoringAlertChannelResult, D as CapabilityKey, Dn as TrackerUser, Dt as MonitoringAssertionComparison, E as CapabilityImpls, En as TrackerDoctorReport, Et as MonitoringAssertion, F as CreateAuthUserInput, Fn as WorkerScriptState, Ft as NotificationsAccess, G as DeploymentRecord, Gt as NotificationsOnboardingLayout, H as Deployment, Ht as NotificationsLinksLayout, I as Credentials, In as Workers, It as NotificationsApplicationLayout, J as DiscussionPatch, Jt as NotificationsPrsFeed, K as DeploymentTarget, Kt as NotificationsPicture, L as CredentialsInspection, Lt as NotificationsChannelLayout, M as CiRunFilter, Mn as Wiki, Mt as MoveReport, N as CiRunStatus, Nn as WikiProvisionOpts, Nt as NormalizedAuthUser, O as Cardinality, On as TunnelRoute, Ot as MonitoringAssertionSource, P as ConnectionStringOptions, Pn as WikiProxyConfig, Pt as Notifications, Q as DnsRecordRequest, Qt as NotificationsWelcomeLayout, R as DeployFunctionConfig, Rt as NotificationsDelivery, S as BoardSummary, Sn as TeamEntry, St as MonitoringAlertChannelInput, T as BoardView, Tn as ToolingDoctorReport, 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 NotificationsSignIn, Y as DiscussionPost, Yt as NotificationsServerLayout, Z as DnsRecord, Zt as NotificationsSignedIn, _ as BoardItem, _n as SourceSecurity, _t as LabelDef, a as REQUIRED_CAPABILITIES, an as RepoRef, at as EnsureWebhookResult, b as BoardStatus, bn as Storage, bt as Logs, c as Analytics, cn as Ruleset, ct as EnsuredTunnel, d as AuthEvent, dn as ServerInspection, dt as Environments, en as ParseWebhookInput, et as EnsureDiscussionInput, f as AuthEventType, fn as Source, ft as Errors, g as BoardFieldType, gn as SourceRulesetDetail, gt as Issues, h as BoardField, hn as SourceRepoInfo, ht as IssueSearchFilter, i as ProviderApiError, in as RelayState, it as EnsureResult, j as CiRun, jn as WebhookDashboardInfo, jt as MonitoringHttpMethod, k as CardinalityFor, kn as Tunnels, kt as MonitoringCheck, l as Auth, ln as SecretScope, lt as Environment, m as AuthUser, mn as SourceFile, mt as Issue, n as ElevationRequiredError, nn as ProviderIdentity, nt as EnsureRelayResult, o as WebhookVerificationError, on as RepoSettings, ot as EnsuredDiscussion, p as AuthIdentity, pn as SourceBranch, pt as InspectRelayInput, q as DeploymentTrigger, qt as NotificationsPinnedLayout, r as MissingTokenError, rn as PullRequest, rt as EnsureReport, s as isMulti, sn as ResolvedCapability, st as EnsuredResource, t as CARDINALITY, tn as Projects, tt as EnsureRelayInput, u as AuthDescription, un as Secrets, ut as EnvironmentReviewer, v as BoardRule, vn as SourceTeamMember, vt as LifecycleResult, w as BoardTemplateFile, wn as Tooling, wt as MonitoringAlertChannelState, x as BoardStatusCategory, xn as StorageBranch, xt as Monitoring, y as BoardState, yn as StatusCategory, yt as LifecycleSlot, z as DeployFunctionResult, zt as NotificationsEveryoneLayout } from "../index-CvlWdUi1.mjs";
2
2
  export { Analytics, Auth, AuthDescription, AuthEvent, AuthEventType, AuthIdentity, AuthUser, BoardField, BoardFieldType, BoardItem, BoardRule, BoardState, BoardStatus, BoardStatusCategory, BoardSummary, BoardTemplate, BoardTemplateFile, BoardView, CARDINALITY, CapabilityImpls, CapabilityKey, Cardinality, CardinalityFor, Ci, CiRun, CiRunFilter, CiRunStatus, ConnectionStringOptions, CreateAuthUserInput, Credentials, CredentialsInspection, DeployFunctionConfig, DeployFunctionResult, DeployScriptConfig, DeployScriptResult, Deployment, DeploymentProject, DeploymentProjectSettings, DeploymentRecord, DeploymentTarget, DeploymentTrigger, DiscussionPatch, DiscussionPost, Dns, DnsRecord, DnsRecordRequest, DnsRecordType, ElevationRequiredError, EnsureDiscussionInput, EnsureRelayInput, EnsureRelayResult, EnsureReport, EnsureResult, EnsureWebhookResult, EnsuredDiscussion, EnsuredResource, EnsuredTunnel, Environment, EnvironmentReviewer, Environments, Errors, InspectRelayInput, Issue, IssueSearchFilter, Issues, LabelDef, LifecycleResult, LifecycleSlot, Logs, MissingTokenError, Monitoring, MonitoringAlertChannelInput, MonitoringAlertChannelResult, MonitoringAlertChannelState, MonitoringAlertSettings, MonitoringAssertion, MonitoringAssertionComparison, MonitoringAssertionSource, MonitoringCheck, MonitoringCheckInput, MonitoringHttpMethod, MoveReport, NormalizedAuthUser, Notifications, NotificationsAccess, NotificationsApplicationLayout, NotificationsChannelLayout, NotificationsDelivery, NotificationsEveryoneLayout, NotificationsForumTag, NotificationsLayout, NotificationsLinksLayout, NotificationsMember, NotificationsMonitoringFeed, NotificationsOnboardingLayout, NotificationsPicture, NotificationsPinnedLayout, NotificationsPrsFeed, NotificationsServerLayout, NotificationsSignIn, NotificationsSignedIn, NotificationsWelcomeLayout, PagesConfig, ParseWebhookInput, Projects, ProviderApiError, ProviderIdentity, PullRequest, REQUIRED_CAPABILITIES, RelayState, RepoRef, RepoSettings, ResolvedCapability, Ruleset, SecretScope, Secrets, ServerInspection, Source, SourceBranch, SourceFile, SourceRepoInfo, SourceRulesetDetail, SourceSecurity, SourceTeamMember, StatusCategory, Storage, StorageBranch, TeamEntry, TeamPermission, Tooling, ToolingDoctorReport, TrackerDoctorReport, TrackerUser, TunnelRoute, Tunnels, Vault, WebhookDashboardInfo, WebhookVerificationError, Wiki, WikiProvisionOpts, WikiProxyConfig, WorkerScriptState, Workers, isMulti };
@@ -1,4 +1,4 @@
1
- import { n as compose, o as Capability, s as ComposedPreset } from "./config-system-BLKX9ztT.mjs";
1
+ import { n as compose, o as Capability, s as ComposedPreset } from "./config-system-uzcuUTOA.mjs";
2
2
  /** Options for the audit capability. */
3
3
  interface AuditOptions {
4
4
  /** Enable Knip unused-export analysis (default: false). */
@@ -87,7 +87,7 @@ declare function react({ test: testOverrides }?: ReactOptions): Capability;
87
87
  */
88
88
  declare function typecheck(): Capability;
89
89
  /**
90
- * Adds the Fern engineering wiki (wiki.theholocron.dev/<repo>) to a repo.
90
+ * Adds the Fern engineering wiki (`wiki.<domain>/<repo>`, the default zone from `presets/constants`) to a repo.
91
91
  * Provisions docs/wiki/{decisions,standards,specifications}/ and wires the
92
92
  * wiki CI workflow to publish on push to main.
93
93
  *
package/dist/presets.mjs CHANGED
@@ -1,4 +1,5 @@
1
1
  import { n as compose } from "./config-system-BVYtgrmR.mjs";
2
+ import { DEFAULT_ORG } from "@theholocron/astromech";
2
3
  // src/presets/capabilities/audit.ts
3
4
  /**
4
5
  * Adds bundle-size measuring (`measure-bundle`) + optional Knip (`lint:unused`) and
@@ -30,6 +31,24 @@ function audit({ knip = false, performance = false, lighthouseConfig } = {}) {
30
31
  ]
31
32
  };
32
33
  }
34
+ // src/presets/constants.ts
35
+ /**
36
+ * The org's DNS zone as the presets ship it to a consumer repo that has no `.holocron/org.ts` of its own. A repo
37
+ * with an org area sets `domain` there instead and does not take it from a preset (both set is a `ConfigError`,
38
+ * #1878): destructure `{ repo, providers, org, docs }` from the preset, as the root `holocron.config.ts` does.
39
+ */
40
+ const DEFAULT_DOMAIN = "theholocron.dev";
41
+ /** The subdomain the engineering wiki is served from, under the org's zone. */
42
+ const WIKI_SUBDOMAIN = "wiki";
43
+ /**
44
+ * The wiki's hostname under a zone.
45
+ *
46
+ * @param domain - The org's zone; defaults to {@link DEFAULT_DOMAIN} when no config is in reach.
47
+ * @returns For example `wiki.theholocron.dev`.
48
+ */
49
+ function wikiHost(domain = DEFAULT_DOMAIN) {
50
+ return `${WIKI_SUBDOMAIN}.${domain}`;
51
+ }
33
52
  // src/presets/capabilities/docs.ts
34
53
  /**
35
54
  * Adds a documentation site deployed to Cloudflare Pages with PR previews.
@@ -41,8 +60,8 @@ function docs() {
41
60
  return {
42
61
  id: "docs",
43
62
  requires: ["node"],
44
- org: "theholocron",
45
- domain: "theholocron.dev",
63
+ org: DEFAULT_ORG,
64
+ domain: DEFAULT_DOMAIN,
46
65
  docs: {
47
66
  build: "workflow",
48
67
  https: true
@@ -138,8 +157,8 @@ function nextjs({ test: testOverrides = {} } = {}) {
138
157
  const nextjsCapability = {
139
158
  id: "nextjs",
140
159
  requires: ["react"],
141
- org: "theholocron",
142
- domain: "theholocron.dev",
160
+ org: DEFAULT_ORG,
161
+ domain: DEFAULT_DOMAIN,
143
162
  providers: { deployment: "vercel" },
144
163
  tasks: [{
145
164
  name: "test:unit",
@@ -247,7 +266,7 @@ function typecheck() {
247
266
  }
248
267
  // src/presets/capabilities/wiki.ts
249
268
  /**
250
- * Adds the Fern engineering wiki (wiki.theholocron.dev/<repo>) to a repo.
269
+ * Adds the Fern engineering wiki (`wiki.<domain>/<repo>`, the default zone from `presets/constants`) to a repo.
251
270
  * Provisions docs/wiki/{decisions,standards,specifications}/ and wires the
252
271
  * wiki CI workflow to publish on push to main.
253
272
  *
@@ -262,7 +281,7 @@ function wiki() {
262
281
  id: "wiki",
263
282
  providers: {
264
283
  wiki: ["fern", {
265
- domain: "wiki.theholocron.dev",
284
+ domain: wikiHost(),
266
285
  fernOrg: "holocron"
267
286
  }],
268
287
  workers: "cloudflare"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/cli",
3
- "version": "5.0.0-alpha.362",
3
+ "version": "5.0.0-alpha.364",
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/astromech": "5.0.0-alpha.362",
58
- "@theholocron/datapad": "5.0.0-alpha.362",
59
- "@theholocron/dagobah": "5.0.0-alpha.362",
57
+ "@theholocron/astromech": "5.0.0-alpha.364",
58
+ "@theholocron/env-utils": "^1.17.0-alpha.1",
60
59
  "@theholocron/fs-utils": "^1.17.0-alpha.1",
60
+ "@theholocron/dagobah": "5.0.0-alpha.364",
61
+ "@theholocron/datapad": "5.0.0-alpha.364",
61
62
  "@theholocron/git-utils": "^1.17.0-alpha.1",
62
- "@theholocron/env-utils": "^1.17.0-alpha.1",
63
- "@theholocron/github-client": "^1.58.0-alpha.14",
64
- "@theholocron/http-client": "^1.58.0-alpha.14",
63
+ "@theholocron/github-client": "^1.58.0-alpha.15",
64
+ "@theholocron/json-utils": "^1.17.0-alpha.1",
65
65
  "@theholocron/misc-utils": "^1.17.0-alpha.1",
66
- "@theholocron/observability": "^0.7.0-alpha.1",
66
+ "@theholocron/kyber": "5.0.0-alpha.364",
67
+ "@theholocron/observability": "^0.7.0-alpha.2",
67
68
  "@theholocron/pkg-utils": "^1.17.0-alpha.1",
68
- "@theholocron/json-utils": "^1.17.0-alpha.1",
69
- "@theholocron/kyber": "5.0.0-alpha.362"
69
+ "@theholocron/http-client": "^1.58.0-alpha.15"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@types/node": "^26",
@@ -79,10 +79,10 @@
79
79
  "tsdown": "^0.23.4",
80
80
  "typescript": "^5.9.3",
81
81
  "vitest": "^5.0.5",
82
- "@theholocron/eslint-config": "^8.9.0-alpha.9",
83
- "@theholocron/rollup-plugin-transform-template": "^8.9.0-alpha.9",
84
- "@theholocron/vitest-config": "^8.9.0-alpha.9",
85
- "@theholocron/tsconfig": "^8.9.0-alpha.9"
82
+ "@theholocron/eslint-config": "^8.9.0-alpha.11",
83
+ "@theholocron/rollup-plugin-transform-template": "^8.9.0-alpha.11",
84
+ "@theholocron/tsconfig": "^8.9.0-alpha.11",
85
+ "@theholocron/vitest-config": "^8.9.0-alpha.11"
86
86
  },
87
87
  "engines": {
88
88
  "node": ">=22.0.0"