@theholocron/cli 5.0.0-alpha.353 → 5.0.0-alpha.355

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 { D as CapabilityKey, Qt as PagesConfig, xn as TeamEntry } from "./index-CArtx6o0.mjs";
1
+ import { D as CapabilityKey, Qt as PagesConfig, xn as TeamEntry } from "./index-CmdMBl-M.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";
@@ -323,6 +323,12 @@ const HOLOCRON_AREAS = [
323
323
  "repo",
324
324
  "org"
325
325
  ];
326
+ /**
327
+ * The areas a config in a subdirectory also reads from the repository root's `.holocron/` (SPEC-0069): only `org`,
328
+ * because its values are the organization's and every config needs them. `repo` and `notifications` describe the
329
+ * repository itself, so an app's config does not take them from the root.
330
+ */
331
+ const SHARED_AREAS = ["org"];
326
332
  // src/config/load-config/place-notifications/place-notifications.ts
327
333
  const isTuple$1 = (entry) => Array.isArray(entry) && entry.length === 2 && typeof entry[0] === "string" && typeof entry[1] === "object" && entry[1] !== null && !Array.isArray(entry[1]);
328
334
  const providerName = (entry) => isTuple$1(entry) ? entry[0] : entry;
@@ -388,15 +394,34 @@ function validate(area) {
388
394
  }
389
395
  return area.value;
390
396
  }
397
+ /**
398
+ * The org options of an area and, when the repository root has the same area, the root's under them: an option set in
399
+ * both takes the config's own value, option by option (the root's other options stay). Each file is checked on its own.
400
+ */
401
+ function merge(area) {
402
+ const merged = {};
403
+ for (const layer of area.root ? [area.root, area] : [area]) for (const [provider, options] of Object.entries(validate(layer))) {
404
+ const sourced = merged[provider] ??= {};
405
+ for (const [option, value] of Object.entries(options)) sourced[option] = {
406
+ value,
407
+ path: layer.path
408
+ };
409
+ }
410
+ return merged;
411
+ }
391
412
  /** Fill one entry when it names a provider the area holds; throws when the config already sets one of its options. */
392
- function fill(entry, org, capability, path) {
413
+ function fill(entry, org, capability) {
393
414
  const [provider, options] = isTuple(entry) ? entry : [entry, {}];
394
415
  const values = org[provider];
395
416
  if (values === void 0 || Object.keys(values).length === 0) return entry;
396
- for (const option of Object.keys(values)) if (options[option] !== void 0) throw new ConfigError(`${provider}.${option} is set in providers.${capability} and in ${path}. Set it in one place: remove the inline option or the key from ${path}`);
417
+ const filled = {};
418
+ for (const [option, { value, path }] of Object.entries(values)) {
419
+ if (options[option] !== void 0) throw new ConfigError(`${provider}.${option} is set in providers.${capability} and in ${path}. Set it in one place: remove the inline option or the key from ${path}`);
420
+ filled[option] = value;
421
+ }
397
422
  return [provider, {
398
423
  ...options,
399
- ...values
424
+ ...filled
400
425
  }];
401
426
  }
402
427
  /**
@@ -404,12 +429,14 @@ function fill(entry, org, capability, path) {
404
429
  * `[name, options]` tuple, or either inside a list) that names a provider the file holds gets each option it leaves
405
430
  * out. An option set inline and in the file is a `ConfigError` naming both (no merge, no precedence); a provider the
406
431
  * config does not use is ignored; a provider or option the file lists but `OrgConfig` does not know is an error.
432
+ * When the area also came from the repository root (`area.root`, a config in a subdirectory), the two files combine
433
+ * option by option and the config's own file wins; that is not an error.
407
434
  */
408
435
  function placeOrg(raw, area) {
409
- const org = validate(area);
436
+ const org = merge(area);
410
437
  if (raw.providers === void 0) return raw;
411
438
  const providers = { ...raw.providers };
412
- for (const [capability, entry] of Object.entries(raw.providers)) providers[capability] = Array.isArray(entry) && !isTuple(entry) ? entry.map((item) => fill(item, org, capability, area.path)) : fill(entry, org, capability, area.path);
439
+ for (const [capability, entry] of Object.entries(raw.providers)) providers[capability] = Array.isArray(entry) && !isTuple(entry) ? entry.map((item) => fill(item, org, capability)) : fill(entry, org, capability);
413
440
  return {
414
441
  ...raw,
415
442
  providers
@@ -465,6 +492,7 @@ function placeAreas(areas, raw) {
465
492
  const system = createConfigSystem({
466
493
  name: "holocron",
467
494
  areas: HOLOCRON_AREAS,
495
+ shared: SHARED_AREAS,
468
496
  place: placeAreas,
469
497
  derive: deriveDefaults,
470
498
  resolve: resolveConfig,
@@ -504,4 +532,4 @@ const loadConfig = system.loadConfig;
504
532
  * const preset = compose(node(), nextjs());
505
533
  */
506
534
  const compose = system.compose;
507
- export { placeAreas as a, credentialsEnvironment as c, resolvePluginPackage$1 as d, loadConfig as i, resolveConfig as l, compose as n, HOLOCRON_AREAS as o, defineConfig as r, ConfigError$1 as s, ConfigFileError as t, resolveEntry as u };
535
+ export { placeAreas as a, ConfigError$1 as c, resolveEntry as d, resolvePluginPackage$1 as f, loadConfig as i, credentialsEnvironment as l, compose as n, HOLOCRON_AREAS as o, defineConfig as r, SHARED_AREAS as s, ConfigFileError as t, resolveConfig as u };
@@ -1490,6 +1490,18 @@ interface NotificationsChannelLayout {
1490
1490
  * list, so a post keeps the tags it has.
1491
1491
  */
1492
1492
  tags?: NotificationsForumTag[];
1493
+ /**
1494
+ * The emoji Discord offers as the first reaction on every post of a forum (Get Started: "Set a default reaction
1495
+ * for posts"). Only for `kind: "forum"`. Discord allows exactly one per forum, so the rest of a set go in
1496
+ * {@link NotificationsChannelLayout.starterReactions}. A Unicode emoji (`"👍"`); custom emoji are not supported.
1497
+ */
1498
+ defaultReaction?: string;
1499
+ /**
1500
+ * Reactions the bot adds to the first message of each post it makes, so a conversation starts with the ways to
1501
+ * answer already there (`["✅", "❌", "❓"]` for approve, disapprove, question). Only for `kind: "forum"`. Posts that
1502
+ * exist are left alone. Reacting needs the Add Reactions permission.
1503
+ */
1504
+ starterReactions?: string[];
1493
1505
  /** Who may see and post. Overrides the category's, field by field. */
1494
1506
  access?: NotificationsAccess;
1495
1507
  /**
@@ -1820,6 +1832,8 @@ interface ServerInspection {
1820
1832
  kind?: "text" | "forum";
1821
1833
  /** The tags of a forum, in the layout's terms. Absent for a text channel. */
1822
1834
  tags?: NotificationsForumTag[];
1835
+ /** The default reaction of a forum, as the layout would spell it. Absent when none is set or for a text channel. */
1836
+ defaultReaction?: string;
1823
1837
  /** Names of the webhooks on the channel. Only filled in for channels the layout gives a webhook or a feed. */
1824
1838
  webhooks: string[];
1825
1839
  /** Which of those webhooks have a picture of their own. */
@@ -1923,6 +1937,8 @@ interface Notifications extends ProviderIdentity {
1923
1937
  kind?: "text" | "forum";
1924
1938
  /** The tags of a forum; see {@link NotificationsChannelLayout.tags}. */
1925
1939
  tags?: NotificationsForumTag[];
1940
+ /** The default reaction of a forum; see {@link NotificationsChannelLayout.defaultReaction}. */
1941
+ defaultReaction?: string;
1926
1942
  }): Promise<EnsuredResource>;
1927
1943
  /** Find or create a webhook named `name` on the channel, creating the channel first if it is missing. */
1928
1944
  ensureWebhook?(input: {
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
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 RawProvidersConfig, B as ResolvedProviderEntry, C as EslintConfig, D as OrgConfig, E as MultiEntry, F as RepoSecretsSync, G as TaskEntryConfig, H as ResolvedTuple, I as RepoValidationConfig, K as TelemetryConfig, L as RepoVariables, M as RepoProperties, N as RepoProtection, O as ProviderOptions, P as RepoSecrets, R as RepoVariablesSync, S as EnvConfig, T as LogConfig, U as SingleEntry, V as ResolvedProvidersConfig, W as StorybookDeployProject, _ 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 RepoConfig, k as RawProviderEntry, l as ConfigError, m as AppConfig, n as compose, o as Capability, p as resolvePluginPackage, q as WorkflowWithConfig, 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 ResolvedHolocronConfig } from "./config-system-CTQ_I-Vm.mjs";
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-CmdMBl-M.mjs";
2
+ import { A as RawProvidersConfig, B as ResolvedProviderEntry, C as EslintConfig, D as OrgConfig, E as MultiEntry, F as RepoSecretsSync, G as TaskEntryConfig, H as ResolvedTuple, I as RepoValidationConfig, K as TelemetryConfig, L as RepoVariables, M as RepoProperties, N as RepoProtection, O as ProviderOptions, P as RepoSecrets, R as RepoVariablesSync, S as EnvConfig, T as LogConfig, U as SingleEntry, V as ResolvedProvidersConfig, W as StorybookDeployProject, _ 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 RepoConfig, k as RawProviderEntry, l as ConfigError, m as AppConfig, n as compose, o as Capability, p as resolvePluginPackage, q as WorkflowWithConfig, 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 ResolvedHolocronConfig } from "./config-system-CTXxGw0f.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";
@@ -313,6 +313,12 @@ export declare function readWorkspacePackageJsons(repoRoot: string, workspacePac
313
313
  * A file not on this list is never read.
314
314
  */
315
315
  export declare const HOLOCRON_AREAS: readonly ["notifications", "repo", "org"];
316
+ /**
317
+ * The areas a config in a subdirectory also reads from the repository root's `.holocron/` (SPEC-0069): only `org`,
318
+ * because its values are the organization's and every config needs them. `repo` and `notifications` describe the
319
+ * repository itself, so an app's config does not take them from the root.
320
+ */
321
+ export declare const SHARED_AREAS: readonly ["org"];
316
322
  /**
317
323
  * Put the area files of `.holocron/` into the config as loaded, before `deriveDefaults` runs: `notifications` becomes
318
324
  * the `layout` of the notifications provider and `repo` supplies keys of `repo` and `org` fills the provider options a config leaves out. A value set both inline and in a file
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-DKtlo5Pb.mjs";
2
+ import { a as placeAreas, c as ConfigError, d as resolveEntry, f as resolvePluginPackage, i as loadConfig, l as credentialsEnvironment, n as compose, o as HOLOCRON_AREAS, r as defineConfig, s as SHARED_AREAS, t as ConfigFileError, u as resolveConfig } from "./config-system-u8-jh7xW.mjs";
3
3
  import { Entry, findCredentials } from "@napi-rs/keyring";
4
4
  import { AuthError, createFeatureResolver as createFeatureResolver$1, createKeyring, createResolveToken as createResolveToken$1, resolveValue } from "@theholocron/kyber/secrets";
5
5
  import { describeError, style } from "@theholocron/kyber/ui";
@@ -392,4 +392,4 @@ async function readWorkspacePackageJsons(repoRoot, workspacePackages) {
392
392
  function connectionProbe(input) {
393
393
  return connectionProbe$1(input);
394
394
  }
395
- export { AuthError, CARDINALITY, ConfigError, ConfigFileError, ElevationRequiredError, HOLOCRON_AREAS, MissingTokenError, ProviderApiError, REQUIRED_CAPABILITIES, WebhookVerificationError, compose, connectionProbe, createFeatureResolver, createResolveToken, createRestClient, credentialsEnvironment, defineConfig, deriveCapabilities, deriveCompliance, deriveProfile, deriveStack, isMulti, keyring, loadConfig, missingCapabilities, placeAreas, readLinks, readWorkspacePackageJsons, resolveConfig, resolveEntry, resolvePluginPackage, resolveValue, roleTeamProblem, sourceProblem, syncRoles };
395
+ export { AuthError, CARDINALITY, ConfigError, ConfigFileError, ElevationRequiredError, HOLOCRON_AREAS, MissingTokenError, ProviderApiError, REQUIRED_CAPABILITIES, SHARED_AREAS, WebhookVerificationError, compose, connectionProbe, createFeatureResolver, createResolveToken, createRestClient, credentialsEnvironment, defineConfig, deriveCapabilities, deriveCompliance, deriveProfile, deriveStack, isMulti, keyring, loadConfig, missingCapabilities, placeAreas, readLinks, readWorkspacePackageJsons, resolveConfig, resolveEntry, resolvePluginPackage, resolveValue, roleTeamProblem, sourceProblem, syncRoles };
@@ -1,2 +1,2 @@
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";
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-CmdMBl-M.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, 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-CTQ_I-Vm.mjs";
1
+ import { n as compose, o as Capability, s as ComposedPreset } from "./config-system-CTXxGw0f.mjs";
2
2
  /** Options for the audit capability. */
3
3
  interface AuditOptions {
4
4
  /** Enable Knip unused-export analysis (default: false). */
@@ -98,8 +98,6 @@ declare function typecheck(): Capability;
98
98
  * ```
99
99
  */
100
100
  declare function wiki(): Capability;
101
- /** Cloudflare account ID for the theholocron org. */
102
- export declare const CLOUDFLARE_ACCOUNT_ID = "9c558af98664d13fc89b7e0a0d93d5a8";
103
101
  /** A composed preset for a TypeScript library that also publishes a documentation site. */
104
102
  type DocsPreset = ComposedPreset;
105
103
  /** A composed preset for a documentation-only site with no TypeScript source. */
package/dist/presets.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { n as compose } from "./config-system-DKtlo5Pb.mjs";
1
+ import { n as compose } from "./config-system-u8-jh7xW.mjs";
2
2
  // src/presets/capabilities/audit.ts
3
3
  /**
4
4
  * Adds bundle-size measuring (`measure-bundle`) + optional Knip (`lint:unused`) and
@@ -30,9 +30,6 @@ function audit({ knip = false, performance = false, lighthouseConfig } = {}) {
30
30
  ]
31
31
  };
32
32
  }
33
- // src/presets/constants.ts
34
- /** Cloudflare account ID for the theholocron org. */
35
- const CLOUDFLARE_ACCOUNT_ID = "9c558af98664d13fc89b7e0a0d93d5a8";
36
33
  // src/presets/capabilities/docs.ts
37
34
  /**
38
35
  * Adds a documentation site deployed to Cloudflare Pages with PR previews.
@@ -51,9 +48,9 @@ function docs() {
51
48
  https: true
52
49
  },
53
50
  providers: {
54
- deployment: ["cloudflare", { accountId: CLOUDFLARE_ACCOUNT_ID }],
51
+ deployment: "cloudflare",
55
52
  dns: "cloudflare",
56
- workers: ["cloudflare", { accountId: CLOUDFLARE_ACCOUNT_ID }]
53
+ workers: "cloudflare"
57
54
  },
58
55
  tasks: [{
59
56
  name: "deploy-docs",
@@ -268,7 +265,7 @@ function wiki() {
268
265
  domain: "wiki.theholocron.dev",
269
266
  fernOrg: "holocron"
270
267
  }],
271
- workers: ["cloudflare", { accountId: "9c558af98664d13fc89b7e0a0d93d5a8" }]
268
+ workers: "cloudflare"
272
269
  },
273
270
  tasks: ["publish-wiki"]
274
271
  };
@@ -420,4 +417,4 @@ const withCapabilities = {
420
417
  /** Publishes the engineering wiki. */
421
418
  withWiki: wiki
422
419
  };
423
- export { CLOUDFLARE_ACCOUNT_ID, compose, docsPreset, docsSitePreset, monorepoPreset, nextjsPreset, nodePreset, reactPreset, withCapabilities };
420
+ export { compose, docsPreset, docsSitePreset, monorepoPreset, nextjsPreset, nodePreset, reactPreset, withCapabilities };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/cli",
3
- "version": "5.0.0-alpha.353",
3
+ "version": "5.0.0-alpha.355",
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.353",
58
- "@theholocron/datapad": "5.0.0-alpha.353",
57
+ "@theholocron/astromech": "5.0.0-alpha.355",
58
+ "@theholocron/datapad": "5.0.0-alpha.355",
59
59
  "@theholocron/env-utils": "^1.17.0-alpha.1",
60
+ "@theholocron/dagobah": "5.0.0-alpha.355",
60
61
  "@theholocron/fs-utils": "^1.17.0-alpha.1",
61
- "@theholocron/dagobah": "5.0.0-alpha.353",
62
+ "@theholocron/github-client": "^1.58.0-alpha.12",
63
+ "@theholocron/http-client": "^1.58.0-alpha.12",
62
64
  "@theholocron/git-utils": "^1.17.0-alpha.1",
63
- "@theholocron/http-client": "^1.58.0-alpha.11",
64
- "@theholocron/github-client": "^1.58.0-alpha.11",
65
65
  "@theholocron/json-utils": "^1.17.0-alpha.1",
66
- "@theholocron/observability": "^0.7.0-alpha.1",
66
+ "@theholocron/kyber": "5.0.0-alpha.355",
67
67
  "@theholocron/misc-utils": "^1.17.0-alpha.1",
68
- "@theholocron/pkg-utils": "^1.17.0-alpha.1",
69
- "@theholocron/kyber": "5.0.0-alpha.353"
68
+ "@theholocron/observability": "^0.7.0-alpha.1",
69
+ "@theholocron/pkg-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/tsconfig": "^8.9.0-alpha.8",
83
+ "@theholocron/rollup-plugin-transform-template": "^8.9.0-alpha.8",
84
84
  "@theholocron/vitest-config": "^8.9.0-alpha.8",
85
- "@theholocron/rollup-plugin-transform-template": "^8.9.0-alpha.8"
85
+ "@theholocron/tsconfig": "^8.9.0-alpha.8"
86
86
  },
87
87
  "engines": {
88
88
  "node": ">=22.0.0"