@theholocron/cli 5.0.0-alpha.451 → 5.0.0-alpha.453

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,10 +1,10 @@
1
1
  import { CARDINALITY, REQUIRED_CAPABILITIES } from "./plugin/capabilities.mjs";
2
+ import { resolveTaskName } from "@theholocron/astromech";
2
3
  import { resolvePluginPackage as resolvePluginPackage$1 } from "@theholocron/kyber/plugins";
3
4
  import { ConfigError, ConfigError as ConfigError$1, ConfigFileError, createConfigSystem, lastWins, mergeByKey, shallowMerge, union } from "@theholocron/kyber/config";
4
5
  import { readGitRemote } from "@theholocron/git-utils";
5
6
  import { basename, dirname } from "node:path";
6
7
  import { readPackageJson } from "@theholocron/pkg-utils";
7
- import { resolveTaskName } from "@theholocron/astromech";
8
8
  import { loadTasksConfig } from "@theholocron/astromech/config";
9
9
  // src/credentials-environments/derives-environment/derives-environment.ts
10
10
  /** The providers whose `credentials` entry may leave `environment` out and have it derived (#2063). */
@@ -13,6 +13,29 @@ const DERIVING = /* @__PURE__ */ new Set(["1password"]);
13
13
  function derivesEnvironment(provider) {
14
14
  return DERIVING.has(provider);
15
15
  }
16
+ // src/config/split-agent/split-agent.ts
17
+ const AGENT_OPTIONS = ["dcg"];
18
+ /**
19
+ * Reads `agent` in either form, a name (`"claude"`) or a name with options (`["claude", { dcg: true }]`), the form a
20
+ * provider takes. The name keeps its place in the resolved config, so everything that installs skills reads it as before;
21
+ * the options, when there are any, are kept beside it. A malformed value, an option that does not exist, a `dcg` that is
22
+ * not a boolean, and `dcg: true` on an agent that has no `.claude/settings.json` are a `ConfigError` naming the problem.
23
+ */
24
+ function splitAgent(raw) {
25
+ if (raw === void 0) return {};
26
+ if (typeof raw === "string") return { agent: raw };
27
+ if (!Array.isArray(raw) || typeof raw[0] !== "string" || raw.length > 2) throw new ConfigError$1("`agent` must be a name, or a name with its options: \"claude\" or [\"claude\", { dcg: true }]");
28
+ const [agent, options] = raw;
29
+ if (options === void 0) return { agent };
30
+ if (typeof options !== "object" || options === null || Array.isArray(options)) throw new ConfigError$1(`the options of the \`${agent}\` agent must be an object, like { dcg: true }`);
31
+ for (const key of Object.keys(options)) if (!AGENT_OPTIONS.includes(key)) throw new ConfigError$1(`the \`${agent}\` agent has no option \`${key}\` (the options are: ${AGENT_OPTIONS.join(", ")})`);
32
+ if (options.dcg !== void 0 && typeof options.dcg !== "boolean") throw new ConfigError$1(`the \`dcg\` option of the \`${agent}\` agent must be true or false`);
33
+ if (options.dcg === true && agent !== "claude") throw new ConfigError$1(`\`dcg\` wires a hook into .claude/settings.json, so it is an option of "claude", not "${agent}"`);
34
+ return {
35
+ agent,
36
+ agentOptions: options
37
+ };
38
+ }
16
39
  // src/credentials-environments/layer-environment/layer-environment.ts
17
40
  /** The layer words, in the order the docs list them. */
18
41
  const ENVIRONMENT_LAYERS = [
@@ -334,6 +357,7 @@ function resolveConfig(raw) {
334
357
  if (credentialsEnvironment(tuple, raw) === void 0 && !derivesEnvironment(tuple.provider)) throw new ConfigError(`the \`${tuple.provider}\` credentials provider has no environment to read: give it an \`environment\` option or set \`credentials.environment\``);
335
358
  }
336
359
  const homepage = raw.homepage ?? (docs?.domain ? `https://${docs.domain}/` : void 0);
360
+ const { agent, agentOptions } = splitAgent(raw.agent);
337
361
  return {
338
362
  name: raw.name,
339
363
  description: raw.description,
@@ -350,7 +374,8 @@ function resolveConfig(raw) {
350
374
  providers,
351
375
  apps: raw.apps ?? [],
352
376
  doctor: raw.doctor ?? {},
353
- agent: raw.agent,
377
+ agent,
378
+ ...agentOptions ? { agentOptions } : {},
354
379
  skills: raw.skills,
355
380
  docs,
356
381
  env: raw.env,
@@ -552,7 +577,7 @@ function placeNotifications(raw, area) {
552
577
  // src/config/load-config/place-org/place-org.ts
553
578
  /** The options each provider key of `.holocron/org.*` may hold. Checked against `OrgConfig` by the type. */
554
579
  const ORG_OPTIONS = {
555
- cloudflare: ["accountId"],
580
+ cloudflare: ["accountId", "zone"],
556
581
  vercel: ["teamId"],
557
582
  checkly: ["accountId"],
558
583
  sentry: ["org"]
@@ -1,8 +1,8 @@
1
+ import { DocsCoverageMode, WorkspacePackage } from "@theholocron/astromech";
1
2
  import { ProviderApiError } from "@theholocron/http-client";
2
3
  import { ConfigError, ConfigFileError } from "@theholocron/kyber/config";
3
4
  import { GitExec } from "@theholocron/git-utils";
4
5
  import { PackageJson } from "@theholocron/pkg-utils";
5
- import { DocsCoverageMode, WorkspacePackage } from "@theholocron/astromech";
6
6
  import { LogLevel } from "@theholocron/observability/core";
7
7
  /** The layer words a config entry may name instead of an Environment (spec `tech-environment-layers`, #2069). */
8
8
  type EnvironmentLayer = "local" | "dev" | "ci" | "prod";
@@ -226,6 +226,16 @@ interface RepoSecretsSync {
226
226
  */
227
227
  repos?: string[];
228
228
  }
229
+ /** The agent runtimes a repo can name in `agent`. */
230
+ type AgentName = "claude" | "codex" | "gemini";
231
+ /** What `holocron setup` and `holocron sync` do for the agent beyond installing its skills; nothing is written unless an option opts in. */
232
+ interface AgentOptions {
233
+ /**
234
+ * Wire the destructive command guard (`dcg`) into `.claude/settings.json` as a `PreToolUse` hook on Bash calls. Only
235
+ * for `"claude"` (any other agent with `dcg` is a `ConfigError`). Needs the `dcg` binary on each machine.
236
+ */
237
+ dcg?: boolean;
238
+ }
229
239
  /** Per-repo switches for the repo-validation checks (spec `tech-api-docs`, #1368). */
230
240
  interface RepoValidationConfig {
231
241
  /**
@@ -254,6 +264,12 @@ interface OrgConfig {
254
264
  cloudflare?: {
255
265
  /** The Cloudflare account id (an identifier, not a credential). */
256
266
  accountId?: string;
267
+ /**
268
+ * The zone the organization's own DNS lives in (`theholocron.dev`). The `token` probe reads this zone's DNS and
269
+ * Workers routes instead of the first few zones of the account, so a token rightly scoped to it is not judged on
270
+ * zones it was never meant to reach.
271
+ */
272
+ zone?: string;
257
273
  };
258
274
  /** Options filled into every `vercel` provider entry. */
259
275
  vercel?: {
@@ -739,8 +755,12 @@ interface HolocronConfig {
739
755
  * relative symlink at the agent-specific path:
740
756
  * - `"claude"` → `.claude/skills/<name>` → `../../.agents/skills/<name>`
741
757
  * - `"codex"` | `"gemini"` → logged as unsupported; skipped gracefully.
758
+ *
759
+ * A name, or a name with options in the form providers use: `["claude", { dcg: true }]`. `dcg: true` makes `setup` and
760
+ * `sync` merge a `PreToolUse` hook that runs the destructive command guard into `.claude/settings.json`, and
761
+ * `probe generated check` fails when it is missing. With no options nothing is written.
742
762
  */
743
- agent?: "claude" | "codex" | "gemini";
763
+ agent?: AgentName | [AgentName, AgentOptions];
744
764
  /**
745
765
  * Skill names from `@theholocron/skills` to install during `holocron setup`.
746
766
  * Installed paths are gitignored and managed by setup — do not commit them.
@@ -899,8 +919,10 @@ interface ResolvedHolocronConfig {
899
919
  apps: AppConfig[];
900
920
  /** Settings for `holocron doctor`; empty when none are declared. */
901
921
  doctor: DoctorConfig;
902
- /** The agent runtime skills are installed for. */
903
- agent?: "claude" | "codex" | "gemini";
922
+ /** The agent runtime skills are installed for (the name, whichever form `agent` was written in). */
923
+ agent?: AgentName;
924
+ /** The options given with the agent, when it was written as `[name, options]`. */
925
+ agentOptions?: AgentOptions;
904
926
  /** Names of the agent skills to install. */
905
927
  skills?: string[];
906
928
  /** Resolved Pages config. `build` is guaranteed present when this field exists. */
@@ -1661,6 +1683,8 @@ interface TrackerUser {
1661
1683
  displayName: string;
1662
1684
  /** Their email address, when the tracker shares it. */
1663
1685
  emailAddress?: string;
1686
+ /** Their GitHub login, when `sync issues` found it in the assignees file (a source that is not GitHub knows none). */
1687
+ login?: string;
1664
1688
  }
1665
1689
  /** An issue in the tracker, in a shape that does not depend on the provider. */
1666
1690
  interface Issue {
@@ -4071,10 +4095,114 @@ interface Coverage extends ProviderIdentity {
4071
4095
  */
4072
4096
  checkToken(): Promise<CoverageTokenCheck>;
4073
4097
  /**
4074
- * Later, when `doctor coverage` is built: the repo is active, the flags and components `holocron sync` writes exist, the
4075
- * required statuses (`codecov/patch`, `codecov/patch/documentation`) are reported.
4076
- */
4077
- checkRepo?(): Promise<CoverageRepoReport>;
4098
+ * Compares the flags and components the repository's config declares (`holocron sync` writes them to `codecov.yml`)
4099
+ * with what the service has for the repository, by name only. The caller passes the expected names, so the provider
4100
+ * never reads the config. A service may need a second credential for this read (Codecov's API takes a personal token,
4101
+ * not the upload token): without it the report says so (`checked: false`) and nothing throws. Read-only.
4102
+ */
4103
+ checkRepo?(expected: CoverageExpectations): Promise<CoverageRepoReport>;
4104
+ /**
4105
+ * Uploads coverage reports to the service, one flag per group, authenticated the way the service allows from the job
4106
+ * it runs in (Codecov: the job's OIDC token, so no stored secret). It reports names and counts only, never a token.
4107
+ * A group that has no report is skipped with a note; a failed upload is a `failed` group and stops the run. A setup
4108
+ * problem (no way to authenticate, a client that cannot be trusted) throws.
4109
+ */
4110
+ upload?(input: CoverageUploadInput): Promise<CoverageUploadResult>;
4111
+ /**
4112
+ * The commit statuses the service posts on a pull request, so the code that decides which statuses the `ci`
4113
+ * aggregate and a ruleset wait on does not spell the service's names. Pure and offline: names only, from the
4114
+ * components and the documentation mode the caller passes. The CLI hands the result to the task runner (which imports
4115
+ * no provider); without a provider, the task runner keeps its default (a context starting with `codecov/` is a status).
4116
+ */
4117
+ statusContexts?(input: CoverageStatusInput): CoverageStatusContext[];
4118
+ /**
4119
+ * The service's own config files for the repository (Codecov: `codecov.yml`), as text by path relative to the
4120
+ * repository root, from the repo's flags and components. A file that already exists comes in through
4121
+ * `input.existing`, so the provider can merge into it and keep every hand edit. Pure and offline: it reads and
4122
+ * writes nothing, so `setup`, `sync` and `probe generated check` can share it. The CLI writes the files (or compares
4123
+ * them with the committed copies); without a provider (or a provider without this method) it writes none.
4124
+ */
4125
+ configFiles?(input: CoverageConfigInput): Record<string, string>;
4126
+ }
4127
+ /** What {@link Coverage.configFiles} takes: names, paths and a mode, never a credential. */
4128
+ interface CoverageConfigInput {
4129
+ /** One component per workspace package, in the order the file lists them. */
4130
+ components: CoverageConfigComponent[];
4131
+ /** The flag names (the ids of the components that get one), in order. */
4132
+ flags: string[];
4133
+ /** `repoValidation.docsCoverage`: whether the documentation flag and its statuses are in the file. */
4134
+ documentation: CoverageStatusInput["documentation"];
4135
+ /** The text of a file already in the repository, or `null` when there is none. The path is relative to the repo root. */
4136
+ existing(path: string): string | null;
4137
+ }
4138
+ /** The mode of {@link CoverageConfigInput.documentation}. */
4139
+ type CoverageConfigDocumentation = CoverageConfigInput["documentation"];
4140
+ /** One workspace package as the config file lists it. */
4141
+ interface CoverageConfigComponent {
4142
+ /** The component id (the package's slug, which is also its flag name). */
4143
+ id: string;
4144
+ /** The package's directory, relative to the repository root, `/`-separated, no trailing slash. */
4145
+ path: string;
4146
+ }
4147
+ /** What {@link Coverage.statusContexts} takes: names and a mode, never a credential. */
4148
+ interface CoverageStatusInput {
4149
+ /** The component ids the config declares (one per workspace package, the names of the flags). */
4150
+ components: string[];
4151
+ /** `repoValidation.docsCoverage`: whether the documentation statuses exist (`warn`, `required`) and gate (`required`). */
4152
+ documentation: "off" | "warn" | "required";
4153
+ }
4154
+ /** One commit status the service posts, as {@link Coverage.statusContexts} lists it. */
4155
+ interface CoverageStatusContext {
4156
+ /** The context GitHub shows. */
4157
+ name: string;
4158
+ /** Whether a pull request must see it reach `success` before it merges. */
4159
+ required: boolean;
4160
+ }
4161
+ /** The flags and components {@link Coverage.checkRepo} expects the service to have, by name. */
4162
+ interface CoverageExpectations {
4163
+ /** The flag names the config declares. */
4164
+ flags: string[];
4165
+ /** The component ids the config declares. */
4166
+ components: string[];
4167
+ }
4168
+ /** One group of {@link Coverage.upload}: the files that carry one flag. */
4169
+ interface CoverageUploadGroup {
4170
+ /** The flag the group's reports are uploaded under. */
4171
+ flag: string;
4172
+ /** Glob patterns, relative to the repository root, for the group's reports (an lcov file each). */
4173
+ files: string[];
4174
+ }
4175
+ /** What {@link Coverage.upload} takes. */
4176
+ interface CoverageUploadInput {
4177
+ /** The groups to upload, in order. */
4178
+ uploads: CoverageUploadGroup[];
4179
+ /** The repository root the `files` patterns are relative to. */
4180
+ repoRoot: string;
4181
+ /**
4182
+ * Lets a run with no report in any group finish quietly (an affected run that selected nothing). Otherwise that is a
4183
+ * problem, so a missing report is not mistaken for a pass.
4184
+ */
4185
+ allowEmpty?: boolean;
4186
+ }
4187
+ /** What {@link Coverage.upload} did for one group. */
4188
+ interface CoverageUploadFlagResult {
4189
+ /** The group's flag. */
4190
+ flag: string;
4191
+ /** `uploaded`, `skipped` (no usable report), or `failed` (the service rejected the upload after every try). */
4192
+ outcome: "failed" | "skipped" | "uploaded";
4193
+ /** How many report files were uploaded. */
4194
+ files: number;
4195
+ /** Why a report was left out, or why the group was skipped or failed. Names and counts only. */
4196
+ notes: string[];
4197
+ }
4198
+ /** What {@link Coverage.upload} did. */
4199
+ interface CoverageUploadResult {
4200
+ /** One entry per group that was reached, in order; a failed group ends the list. */
4201
+ flags: CoverageUploadFlagResult[];
4202
+ /** How many flags were uploaded. */
4203
+ uploaded: number;
4204
+ /** Set when the run as a whole did not succeed: a failed group, or nothing uploaded without `allowEmpty`. */
4205
+ problem?: string;
4078
4206
  }
4079
4207
  /** What {@link Coverage.checkToken} found. */
4080
4208
  interface CoverageTokenCheck {
@@ -4089,10 +4217,25 @@ interface CoverageTokenCheck {
4089
4217
  /** The HTTP status when the outcome is not `accepted`. */
4090
4218
  status?: number;
4091
4219
  }
4092
- /** What {@link Coverage.checkRepo} will report; not built yet. */
4220
+ /** One list of names compared with the service's: what was expected, what is missing there and what is extra there. */
4221
+ interface CoverageNameDiff {
4222
+ /** The names the config declares. */
4223
+ expected: string[];
4224
+ /** Declared in the config, absent on the service. */
4225
+ missing: string[];
4226
+ /** On the service, not declared in the config. */
4227
+ extra: string[];
4228
+ }
4229
+ /** What {@link Coverage.checkRepo} found. Names only. */
4093
4230
  interface CoverageRepoReport {
4094
- /** Whether the repository has received an upload. */
4095
- active: boolean;
4231
+ /** `false` when the service could not be asked (no credential for the read); `reason` then says what to set. */
4232
+ checked: boolean;
4233
+ /** Why nothing was checked, naming the variable to set. Set only when `checked` is `false`. */
4234
+ reason?: string;
4235
+ /** The flags compared. */
4236
+ flags: CoverageNameDiff;
4237
+ /** The components compared. */
4238
+ components: CoverageNameDiff;
4096
4239
  }
4097
4240
  /** Maps each capability key to the interface its provider implements. */
4098
4241
  interface CapabilityImpls {
@@ -4260,4 +4403,4 @@ declare class WebhookVerificationError extends Error {
4260
4403
  }
4261
4404
  /** Whether `key` is a capability that can have several providers active at once. */
4262
4405
  declare function isMulti<K extends CapabilityKey>(key: K): CardinalityFor<K> extends "many" ? true : false;
4263
- export { DeploymentTarget as $, TrackerDoctorReport as $n, RepoConfig as $r, NormalizedAuthUser as $t, CapabilityImpls as A, SecretAccess as An, credentialsEnvironment as Ar, IssueOrder as At, CoverageRepoReport as B, SourceSecurity as Bn, DocsConfig as Br, LogsDataset as Bt, BoardStatusCategory as C, ProviderIdentity as Cn, defineConfig as Cr, IdeaRecord as Ct, BoardView as D, RepoSettings as Dn, ComposedPreset as Dr, InspectRelayInput as Dt, BoardTemplateFile as E, RepoRef as En, Capability as Er, ImportResult as Et, CiRun as F, Source as Fn, CapabilityConfigPackage as Fr, Issues as Ft, DeployFunctionConfig as G, SyncResult as Gn, HolocronConfig as Gr, MonitoringAlertSettings as Gt, CreateAuthUserInput as H, StatusCategory as Hn, EnvConfig as Hr, MonitoringAlertChannelInput as Ht, CiRunFilter as I, SourceBranch as In, ChromaticProjectConfig as Ir, LabelDef as It, DeployScriptResult as J, Tooling as Jn, MultiEntry as Jr, MonitoringAssertionSource as Jt, DeployFunctionResult as K, TeamEntry as Kn, IdeasConfig as Kr, MonitoringAssertion as Kt, CiRunStatus as L, SourceFile as Ln, CredentialsConfig as Lr, LifecycleResult as Lt, Cardinality as M, SecretVisibility as Mn, resolveEntry as Mr, IssueRecord as Mt, CardinalityFor as N, Secrets as Nn, resolvePluginPackage as Nr, IssueSearchFilter as Nt, Cache as O, ResolvedCapability as On, TaskEntry as Or, Issue as Ot, Ci as P, ServerInspection as Pn, AppConfig as Pr, IssueSelector as Pt, DeploymentRecord as Q, ToolingExportResult as Qn, RawProvidersConfig as Qr, MoveReport as Qt, ConnectionStringOptions as R, SourceRepoInfo as Rn, DevConfig as Rr, LifecycleSlot as Rt, BoardStatus as S, Projects as Sn, compose as Sr, ExportInfo as St, BoardTemplate as T, RelayState as Tn, LoadedConfig as Tr, ImportOptions as Tt, Credentials as U, Storage as Un, EslintConfig as Ur, MonitoringAlertChannelResult as Ut, CoverageTokenCheck as V, SourceTeamMember as Vn, DoctorConfig as Vr, Monitoring as Vt, CredentialsInspection as W, StorageBranch as Wn, GitHubAppConfig as Wr, MonitoringAlertChannelState as Wt, DeploymentProject as X, ToolingExportInput as Xn, ProviderOptions as Xr, MonitoringCheckInput as Xt, Deployment as Y, ToolingDoctorReport as Yn, OrgConfig as Yr, MonitoringCheck as Yt, DeploymentProjectSettings as Z, ToolingExportIssue as Zn, RawProviderEntry as Zr, MonitoringHttpMethod as Zt, BoardFieldType as _, EnvironmentLayer as _i, NotificationsSignedIn as _n, DeriveProfileInput as _r, Environment as _t, REQUIRED_CAPABILITIES as a, RepoValidationConfig as ai, NotificationsEveryoneLayout as an, Wiki as ar, DnsRecordRequest as at, BoardRule as b, PagesConfig as bn, StackName as br, Environments as bt, AddedItem as c, ResolvedHolocronConfig as ci, NotificationsLinksLayout as cn, WorkerScriptState as cr, EnsureDiscussionInput as ct, AuthDescription as d, ResolvedTuple as di, NotificationsOnboardingLayout as dn, deriveCapabilities as dr, EnsureReport as dt, RepoProperties as ei, Notifications as en, TrackerUser as er, DeploymentTrigger as et, AuthEvent as f, SingleEntry as fi, NotificationsPicture as fn, deriveCompliance as fr, EnsureResult as ft, BoardField as g, WorkflowWithConfig as gi, NotificationsSignIn as gn, readWorkspacePackageJsons as gr, EnsuredTunnel as gt, AuthUser as h, TelemetryConfig as hi, NotificationsServerLayout as hn, missingCapabilities as hr, EnsuredResource as ht, ProviderApiError as i, RepoSecretsSync as ii, NotificationsDelivery as in, WebhookDashboardInfo as ir, DnsRecord as it, CapabilityKey as j, SecretScope as jn, resolveConfig as jr, IssuePriority as jt, CacheTokenCheck as k, Ruleset as kn, ConfigError as kr, IssueComment as kt, Analytics as l, ResolvedProviderEntry as li, NotificationsMember as ln, Workers as lr, EnsureRelayInput as lt, AuthIdentity as m, TaskEntryConfig as mi, NotificationsPrsFeed as mn, deriveStack as mr, EnsuredDiscussion as mt, ElevationRequiredError as n, RepoSecrets as ni, NotificationsApplicationLayout as nn, Tunnels as nr, DiscussionPost as nt, WebhookVerificationError as o, RepoVariables as oi, NotificationsForumTag as on, WikiProvisionOpts as or, DnsRecordType as ot, AuthEventType as p, StorybookDeployProject as pi, NotificationsPinnedLayout as pn, deriveProfile as pr, EnsureWebhookResult as pt, DeployScriptConfig as q, TeamPermission as qn, LogConfig as qr, MonitoringAssertionComparison as qt, MissingTokenError as r, RepoSecretsDeploy as ri, NotificationsChannelLayout as rn, Vault as rr, Dns as rt, isMulti as s, RepoVariablesSync as si, NotificationsLayout as sn, WikiProxyConfig as sr, DuplicateDiscussion as st, CARDINALITY as t, RepoProtection as ti, NotificationsAccess as tn, TunnelRoute as tr, DiscussionPatch as tt, Auth as u, ResolvedProvidersConfig as ui, NotificationsMonitoringFeed as un, KNOWN_STACK_DEPS as ur, EnsureRelayResult as ut, BoardItem as v, NotificationsWelcomeLayout as vn, HolocronProfile as vr, EnvironmentEntry as vt, BoardSummary as w, PullRequest as wn, loadConfig as wr, Ideas as wt, BoardState as x, ParseWebhookInput as xn, ConfigFileError as xr, Errors as xt, BoardItemInput as y, OrganizationSecretScope as yn, PackageJsonLike as yr, EnvironmentReviewer as yt, Coverage as z, SourceRulesetDetail as zn, DevServeConfig as zr, Logs as zt };
4406
+ export { CreateAuthUserInput as $, StatusCategory as $n, DocsConfig as $r, MonitoringAlertChannelInput as $t, CapabilityImpls as A, EnvironmentLayer as Ai, OrganizationSecretScope as An, PackageJsonLike as Ar, EnvironmentReviewer as At, CoverageConfigComponent as B, Ruleset as Bn, ConfigError as Br, IssueComment as Bt, BoardStatusCategory as C, ResolvedProvidersConfig as Ci, NotificationsPicture as Cn, deriveCompliance as Cr, EnsureResult as Ct, BoardView as D, TaskEntryConfig as Di, NotificationsSignIn as Dn, readWorkspacePackageJsons as Dr, EnsuredTunnel as Dt, BoardTemplateFile as E, StorybookDeployProject as Ei, NotificationsServerLayout as En, missingCapabilities as Er, EnsuredResource as Et, CiRun as F, PullRequest as Fn, loadConfig as Fr, Ideas as Ft, CoverageRepoReport as G, ServerInspection as Gn, AgentName as Gr, IssueSelector as Gt, CoverageConfigInput as H, SecretScope as Hn, resolveConfig as Hr, IssuePriority as Ht, CiRunFilter as I, RelayState as In, LoadedConfig as Ir, ImportOptions as It, CoverageTokenCheck as J, SourceFile as Jn, CapabilityConfigPackage as Jr, LifecycleResult as Jt, CoverageStatusContext as K, Source as Kn, AgentOptions as Kr, Issues as Kt, CiRunStatus as L, RepoRef as Ln, Capability as Lr, ImportResult as Lt, Cardinality as M, ParseWebhookInput as Mn, ConfigFileError as Mr, Errors as Mt, CardinalityFor as N, Projects as Nn, compose as Nr, ExportInfo as Nt, Cache as O, TelemetryConfig as Oi, NotificationsSignedIn as On, DeriveProfileInput as Or, Environment as Ot, Ci as P, ProviderIdentity as Pn, defineConfig as Pr, IdeaRecord as Pt, CoverageUploadResult as Q, SourceTeamMember as Qn, DevServeConfig as Qr, Monitoring as Qt, ConnectionStringOptions as R, RepoSettings as Rn, ComposedPreset as Rr, InspectRelayInput as Rt, BoardStatus as S, ResolvedProviderEntry as Si, NotificationsOnboardingLayout as Sn, deriveCapabilities as Sr, EnsureReport as St, BoardTemplate as T, SingleEntry as Ti, NotificationsPrsFeed as Tn, deriveStack as Tr, EnsuredDiscussion as Tt, CoverageExpectations as U, SecretVisibility as Un, resolveEntry as Ur, IssueRecord as Ut, CoverageConfigDocumentation as V, SecretAccess as Vn, credentialsEnvironment as Vr, IssueOrder as Vt, CoverageNameDiff as W, Secrets as Wn, resolvePluginPackage as Wr, IssueSearchFilter as Wt, CoverageUploadGroup as X, SourceRulesetDetail as Xn, CredentialsConfig as Xr, Logs as Xt, CoverageUploadFlagResult as Y, SourceRepoInfo as Yn, ChromaticProjectConfig as Yr, LifecycleSlot as Yt, CoverageUploadInput as Z, SourceSecurity as Zn, DevConfig as Zr, LogsDataset as Zt, BoardFieldType as _, RepoSecretsSync as _i, NotificationsForumTag as _n, WikiProvisionOpts as _r, DnsRecordType as _t, REQUIRED_CAPABILITIES as a, IdeasConfig as ai, MonitoringAssertionSource as an, Tooling as ar, DeployScriptResult as at, BoardRule as b, RepoVariablesSync as bi, NotificationsMember as bn, Workers as br, EnsureRelayInput as bt, AddedItem as c, OrgConfig as ci, MonitoringHttpMethod as cn, ToolingExportIssue as cr, DeploymentProjectSettings as ct, AuthDescription as d, RawProvidersConfig as di, Notifications as dn, TrackerUser as dr, DeploymentTrigger as dt, DoctorConfig as ei, MonitoringAlertChannelResult as en, Storage as er, Credentials as et, AuthEvent as f, RepoConfig as fi, NotificationsAccess as fn, TunnelRoute as fr, DiscussionPatch as ft, BoardField as g, RepoSecretsDeploy as gi, NotificationsEveryoneLayout as gn, Wiki as gr, DnsRecordRequest as gt, AuthUser as h, RepoSecrets as hi, NotificationsDelivery as hn, WebhookDashboardInfo as hr, DnsRecord as ht, ProviderApiError as i, HolocronConfig as ii, MonitoringAssertionComparison as in, TeamPermission as ir, DeployScriptConfig as it, CapabilityKey as j, PagesConfig as jn, StackName as jr, Environments as jt, CacheTokenCheck as k, WorkflowWithConfig as ki, NotificationsWelcomeLayout as kn, HolocronProfile as kr, EnvironmentEntry as kt, Analytics as l, ProviderOptions as li, MoveReport as ln, ToolingExportResult as lr, DeploymentRecord as lt, AuthIdentity as m, RepoProtection as mi, NotificationsChannelLayout as mn, Vault as mr, Dns as mt, ElevationRequiredError as n, EslintConfig as ni, MonitoringAlertSettings as nn, SyncResult as nr, DeployFunctionConfig as nt, WebhookVerificationError as o, LogConfig as oi, MonitoringCheck as on, ToolingDoctorReport as or, Deployment as ot, AuthEventType as p, RepoProperties as pi, NotificationsApplicationLayout as pn, Tunnels as pr, DiscussionPost as pt, CoverageStatusInput as q, SourceBranch as qn, AppConfig as qr, LabelDef as qt, MissingTokenError as r, GitHubAppConfig as ri, MonitoringAssertion as rn, TeamEntry as rr, DeployFunctionResult as rt, isMulti as s, MultiEntry as si, MonitoringCheckInput as sn, ToolingExportInput as sr, DeploymentProject as st, CARDINALITY as t, EnvConfig as ti, MonitoringAlertChannelState as tn, StorageBranch as tr, CredentialsInspection as tt, Auth as u, RawProviderEntry as ui, NormalizedAuthUser as un, TrackerDoctorReport as ur, DeploymentTarget as ut, BoardItem as v, RepoValidationConfig as vi, NotificationsLayout as vn, WikiProxyConfig as vr, DuplicateDiscussion as vt, BoardSummary as w, ResolvedTuple as wi, NotificationsPinnedLayout as wn, deriveProfile as wr, EnsureWebhookResult as wt, BoardState as x, ResolvedHolocronConfig as xi, NotificationsMonitoringFeed as xn, KNOWN_STACK_DEPS as xr, EnsureRelayResult as xt, BoardItemInput as y, RepoVariables as yi, NotificationsLinksLayout as yn, WorkerScriptState as yr, EnsureDiscussionInput as yt, Coverage as z, ResolvedCapability as zn, TaskEntry as zr, Issue as zt };
package/dist/index.d.mts CHANGED
@@ -1,5 +1,6 @@
1
- import { $ as DeploymentTarget, $n as TrackerDoctorReport, $r as RepoConfig, $t as NormalizedAuthUser, A as CapabilityImpls, An as SecretAccess, Ar as credentialsEnvironment, At as IssueOrder, B as CoverageRepoReport, Bn as SourceSecurity, Br as DocsConfig, Bt as LogsDataset, C as BoardStatusCategory, Cn as ProviderIdentity, Cr as defineConfig, Ct as IdeaRecord, D as BoardView, Dn as RepoSettings, Dr as ComposedPreset, Dt as InspectRelayInput, E as BoardTemplateFile, En as RepoRef, Er as Capability, Et as ImportResult, F as CiRun, Fn as Source, Fr as CapabilityConfigPackage, Ft as Issues, G as DeployFunctionConfig, Gn as SyncResult, Gr as HolocronConfig, Gt as MonitoringAlertSettings, H as CreateAuthUserInput, Hn as StatusCategory, Hr as EnvConfig, Ht as MonitoringAlertChannelInput, I as CiRunFilter, In as SourceBranch, Ir as ChromaticProjectConfig, It as LabelDef, J as DeployScriptResult, Jn as Tooling, Jr as MultiEntry, Jt as MonitoringAssertionSource, K as DeployFunctionResult, Kn as TeamEntry, Kr as IdeasConfig, Kt as MonitoringAssertion, L as CiRunStatus, Ln as SourceFile, Lr as CredentialsConfig, Lt as LifecycleResult, M as Cardinality, Mn as SecretVisibility, Mr as resolveEntry, Mt as IssueRecord, N as CardinalityFor, Nn as Secrets, Nr as resolvePluginPackage, Nt as IssueSearchFilter, O as Cache, On as ResolvedCapability, Or as TaskEntry, Ot as Issue, P as Ci, Pn as ServerInspection, Pr as AppConfig, Pt as IssueSelector, Q as DeploymentRecord, Qn as ToolingExportResult, Qr as RawProvidersConfig, Qt as MoveReport, R as ConnectionStringOptions, Rn as SourceRepoInfo, Rr as DevConfig, Rt as LifecycleSlot, S as BoardStatus, Sn as Projects, Sr as compose, St as ExportInfo, T as BoardTemplate, Tn as RelayState, Tr as LoadedConfig, Tt as ImportOptions, U as Credentials, Un as Storage, Ur as EslintConfig, Ut as MonitoringAlertChannelResult, V as CoverageTokenCheck, Vn as SourceTeamMember, Vr as DoctorConfig, Vt as Monitoring, W as CredentialsInspection, Wn as StorageBranch, Wr as GitHubAppConfig, Wt as MonitoringAlertChannelState, X as DeploymentProject, Xn as ToolingExportInput, Xr as ProviderOptions, Xt as MonitoringCheckInput, Y as Deployment, Yn as ToolingDoctorReport, Yr as OrgConfig, Yt as MonitoringCheck, Z as DeploymentProjectSettings, Zn as ToolingExportIssue, Zr as RawProviderEntry, Zt as MonitoringHttpMethod, _ as BoardFieldType, _i as EnvironmentLayer, _n as NotificationsSignedIn, _r as DeriveProfileInput, _t as Environment, a as REQUIRED_CAPABILITIES, ai as RepoValidationConfig, an as NotificationsEveryoneLayout, ar as Wiki, at as DnsRecordRequest, b as BoardRule, bn as PagesConfig, br as StackName, bt as Environments, c as AddedItem, ci as ResolvedHolocronConfig, cn as NotificationsLinksLayout, cr as WorkerScriptState, ct as EnsureDiscussionInput, d as AuthDescription, di as ResolvedTuple, dn as NotificationsOnboardingLayout, dr as deriveCapabilities, dt as EnsureReport, ei as RepoProperties, en as Notifications, er as TrackerUser, et as DeploymentTrigger, f as AuthEvent, fi as SingleEntry, fn as NotificationsPicture, fr as deriveCompliance, ft as EnsureResult, g as BoardField, gi as WorkflowWithConfig, gn as NotificationsSignIn, gr as readWorkspacePackageJsons, gt as EnsuredTunnel, h as AuthUser, hi as TelemetryConfig, hn as NotificationsServerLayout, hr as missingCapabilities, ht as EnsuredResource, i as ProviderApiError, ii as RepoSecretsSync, in as NotificationsDelivery, ir as WebhookDashboardInfo, it as DnsRecord, j as CapabilityKey, jn as SecretScope, jr as resolveConfig, jt as IssuePriority, k as CacheTokenCheck, kn as Ruleset, kr as ConfigError, kt as IssueComment, l as Analytics, li as ResolvedProviderEntry, ln as NotificationsMember, lr as Workers, lt as EnsureRelayInput, m as AuthIdentity, mi as TaskEntryConfig, mn as NotificationsPrsFeed, mr as deriveStack, mt as EnsuredDiscussion, n as ElevationRequiredError, ni as RepoSecrets, nn as NotificationsApplicationLayout, nr as Tunnels, nt as DiscussionPost, o as WebhookVerificationError, oi as RepoVariables, on as NotificationsForumTag, or as WikiProvisionOpts, ot as DnsRecordType, p as AuthEventType, pi as StorybookDeployProject, pn as NotificationsPinnedLayout, pr as deriveProfile, pt as EnsureWebhookResult, q as DeployScriptConfig, qn as TeamPermission, qr as LogConfig, qt as MonitoringAssertionComparison, r as MissingTokenError, ri as RepoSecretsDeploy, rn as NotificationsChannelLayout, rr as Vault, rt as Dns, s as isMulti, si as RepoVariablesSync, sn as NotificationsLayout, sr as WikiProxyConfig, st as DuplicateDiscussion, t as CARDINALITY, ti as RepoProtection, tn as NotificationsAccess, tr as TunnelRoute, tt as DiscussionPatch, u as Auth, ui as ResolvedProvidersConfig, un as NotificationsMonitoringFeed, ur as KNOWN_STACK_DEPS, ut as EnsureRelayResult, v as BoardItem, vn as NotificationsWelcomeLayout, vr as HolocronProfile, vt as EnvironmentEntry, w as BoardSummary, wn as PullRequest, wr as loadConfig, wt as Ideas, x as BoardState, xn as ParseWebhookInput, xr as ConfigFileError, xt as Errors, y as BoardItemInput, yn as OrganizationSecretScope, yr as PackageJsonLike, yt as EnvironmentReviewer, z as Coverage, zn as SourceRulesetDetail, zr as DevServeConfig, zt as Logs } from "./index-DMoGsKv2.mjs";
1
+ import { $ as CreateAuthUserInput, $n as StatusCategory, $r as DocsConfig, $t as MonitoringAlertChannelInput, A as CapabilityImpls, Ai as EnvironmentLayer, An as OrganizationSecretScope, Ar as PackageJsonLike, At as EnvironmentReviewer, B as CoverageConfigComponent, Bn as Ruleset, Br as ConfigError, Bt as IssueComment, C as BoardStatusCategory, Ci as ResolvedProvidersConfig, Cn as NotificationsPicture, Cr as deriveCompliance, Ct as EnsureResult, D as BoardView, Di as TaskEntryConfig, Dn as NotificationsSignIn, Dr as readWorkspacePackageJsons, Dt as EnsuredTunnel, E as BoardTemplateFile, Ei as StorybookDeployProject, En as NotificationsServerLayout, Er as missingCapabilities, Et as EnsuredResource, F as CiRun, Fn as PullRequest, Fr as loadConfig, Ft as Ideas, G as CoverageRepoReport, Gn as ServerInspection, Gr as AgentName, Gt as IssueSelector, H as CoverageConfigInput, Hn as SecretScope, Hr as resolveConfig, Ht as IssuePriority, I as CiRunFilter, In as RelayState, Ir as LoadedConfig, It as ImportOptions, J as CoverageTokenCheck, Jn as SourceFile, Jr as CapabilityConfigPackage, Jt as LifecycleResult, K as CoverageStatusContext, Kn as Source, Kr as AgentOptions, Kt as Issues, L as CiRunStatus, Ln as RepoRef, Lr as Capability, Lt as ImportResult, M as Cardinality, Mn as ParseWebhookInput, Mr as ConfigFileError, Mt as Errors, N as CardinalityFor, Nn as Projects, Nr as compose, Nt as ExportInfo, O as Cache, Oi as TelemetryConfig, On as NotificationsSignedIn, Or as DeriveProfileInput, Ot as Environment, P as Ci, Pn as ProviderIdentity, Pr as defineConfig, Pt as IdeaRecord, Q as CoverageUploadResult, Qn as SourceTeamMember, Qr as DevServeConfig, Qt as Monitoring, R as ConnectionStringOptions, Rn as RepoSettings, Rr as ComposedPreset, Rt as InspectRelayInput, S as BoardStatus, Si as ResolvedProviderEntry, Sn as NotificationsOnboardingLayout, Sr as deriveCapabilities, St as EnsureReport, T as BoardTemplate, Ti as SingleEntry, Tn as NotificationsPrsFeed, Tr as deriveStack, Tt as EnsuredDiscussion, U as CoverageExpectations, Un as SecretVisibility, Ur as resolveEntry, Ut as IssueRecord, V as CoverageConfigDocumentation, Vn as SecretAccess, Vr as credentialsEnvironment, Vt as IssueOrder, W as CoverageNameDiff, Wn as Secrets, Wr as resolvePluginPackage, Wt as IssueSearchFilter, X as CoverageUploadGroup, Xn as SourceRulesetDetail, Xr as CredentialsConfig, Xt as Logs, Y as CoverageUploadFlagResult, Yn as SourceRepoInfo, Yr as ChromaticProjectConfig, Yt as LifecycleSlot, Z as CoverageUploadInput, Zn as SourceSecurity, Zr as DevConfig, Zt as LogsDataset, _ as BoardFieldType, _i as RepoSecretsSync, _n as NotificationsForumTag, _r as WikiProvisionOpts, _t as DnsRecordType, a as REQUIRED_CAPABILITIES, ai as IdeasConfig, an as MonitoringAssertionSource, ar as Tooling, at as DeployScriptResult, b as BoardRule, bi as RepoVariablesSync, bn as NotificationsMember, br as Workers, bt as EnsureRelayInput, c as AddedItem, ci as OrgConfig, cn as MonitoringHttpMethod, cr as ToolingExportIssue, ct as DeploymentProjectSettings, d as AuthDescription, di as RawProvidersConfig, dn as Notifications, dr as TrackerUser, dt as DeploymentTrigger, ei as DoctorConfig, en as MonitoringAlertChannelResult, er as Storage, et as Credentials, f as AuthEvent, fi as RepoConfig, fn as NotificationsAccess, fr as TunnelRoute, ft as DiscussionPatch, g as BoardField, gi as RepoSecretsDeploy, gn as NotificationsEveryoneLayout, gr as Wiki, gt as DnsRecordRequest, h as AuthUser, hi as RepoSecrets, hn as NotificationsDelivery, hr as WebhookDashboardInfo, ht as DnsRecord, i as ProviderApiError, ii as HolocronConfig, in as MonitoringAssertionComparison, ir as TeamPermission, it as DeployScriptConfig, j as CapabilityKey, jn as PagesConfig, jr as StackName, jt as Environments, k as CacheTokenCheck, ki as WorkflowWithConfig, kn as NotificationsWelcomeLayout, kr as HolocronProfile, kt as EnvironmentEntry, l as Analytics, li as ProviderOptions, ln as MoveReport, lr as ToolingExportResult, lt as DeploymentRecord, m as AuthIdentity, mi as RepoProtection, mn as NotificationsChannelLayout, mr as Vault, mt as Dns, n as ElevationRequiredError, ni as EslintConfig, nn as MonitoringAlertSettings, nr as SyncResult, nt as DeployFunctionConfig, o as WebhookVerificationError, oi as LogConfig, on as MonitoringCheck, or as ToolingDoctorReport, ot as Deployment, p as AuthEventType, pi as RepoProperties, pn as NotificationsApplicationLayout, pr as Tunnels, pt as DiscussionPost, q as CoverageStatusInput, qn as SourceBranch, qr as AppConfig, qt as LabelDef, r as MissingTokenError, ri as GitHubAppConfig, rn as MonitoringAssertion, rr as TeamEntry, rt as DeployFunctionResult, s as isMulti, si as MultiEntry, sn as MonitoringCheckInput, sr as ToolingExportInput, st as DeploymentProject, t as CARDINALITY, ti as EnvConfig, tn as MonitoringAlertChannelState, tr as StorageBranch, tt as CredentialsInspection, u as Auth, ui as RawProviderEntry, un as NormalizedAuthUser, ur as TrackerDoctorReport, ut as DeploymentTarget, v as BoardItem, vi as RepoValidationConfig, vn as NotificationsLayout, vr as WikiProxyConfig, vt as DuplicateDiscussion, w as BoardSummary, wi as ResolvedTuple, wn as NotificationsPinnedLayout, wr as deriveProfile, wt as EnsureWebhookResult, x as BoardState, xi as ResolvedHolocronConfig, xn as NotificationsMonitoringFeed, xr as KNOWN_STACK_DEPS, xt as EnsureRelayResult, y as BoardItemInput, yi as RepoVariables, yn as NotificationsLinksLayout, yr as WorkerScriptState, yt as EnsureDiscussionInput, z as Coverage, zn as ResolvedCapability, zr as TaskEntry, zt as Issue } from "./index-DVz1kZw5.mjs";
2
2
  import { AuthError, ResolveTokenConfig as ResolveTokenConfig$1, ResolveTokenInput, ResolveTokenInput as ResolveTokenInput$1, resolveValue } from "@theholocron/kyber/secrets";
3
+ import { DocsCoverageMode } from "@theholocron/astromech";
3
4
  import { CheckRow } from "@theholocron/kyber/ui";
4
5
  import "@theholocron/env-utils/lookup";
5
6
  import { RequestOptions, RestClient, RestClientConfig, createRestClient } from "@theholocron/http-client";
@@ -125,6 +126,13 @@ export declare function createResolveToken(config: ResolveTokenConfig): TokenRes
125
126
  * the operation fails with a message naming the exact variable to set and `holocron new token`.
126
127
  */
127
128
  export declare function createFeatureResolver(config: FeatureResolverConfig): FeatureResolver;
129
+ /**
130
+ * The flags and components `holocron sync` writes to `codecov.yml` for the workspace at `repoRoot`: the same
131
+ * functions the generator uses, so a coverage provider's `checkRepo()` compares with exactly what is written. A flag per
132
+ * package (none for `docs`), plus `documentation` when `docsCoverage` is `warn` or `required`; a component per package.
133
+ * Both lists are sorted. Plugins call this instead of importing the task runner.
134
+ */
135
+ export declare function coverageExpectations(repoRoot: string, docsCoverage?: DocsCoverageMode): CoverageExpectations;
128
136
  /**
129
137
  * Puts issue keys in creation order without asking the tracker: issue numbers (`#12`, `ENG-12`) rise with creation inside
130
138
  * one repository or team, so the trailing number is the order. `oldest` is ascending, `newest` descending; keys with the
@@ -541,4 +549,4 @@ export declare const SHARED_AREAS: readonly ["org"];
541
549
  * is a `ConfigError` naming both (no merge, no precedence). With no area files the config is returned as it was.
542
550
  */
543
551
  export declare function placeAreas(areas: ConfigDirArea[], raw: HolocronConfig): HolocronConfig;
544
- export { AddedItem, Analytics, type AppConfig, Auth, AuthDescription, AuthError, AuthEvent, AuthEventType, type AuthExportOutKind, AuthIdentity, AuthUser, BoardField, BoardFieldType, BoardItem, BoardItemInput, BoardRule, BoardState, BoardStatus, BoardStatusCategory, BoardSummary, BoardTemplate, BoardTemplateFile, BoardView, CARDINALITY, Cache, CacheTokenCheck, type Capability, type CapabilityConfigPackage, CapabilityImpls, CapabilityKey, Cardinality, CardinalityFor, type ChromaticProjectConfig, Ci, CiRun, CiRunFilter, CiRunStatus, type ComposedPreset, ConfigError, ConfigFileError, ConnectionStringOptions, Coverage, CoverageRepoReport, CoverageTokenCheck, 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, DuplicateDiscussion, ElevationRequiredError, EnsureDiscussionInput, EnsureRelayInput, EnsureRelayResult, EnsureReport, EnsureResult, EnsureWebhookResult, EnsuredDiscussion, EnsuredResource, EnsuredTunnel, type EnvConfig, Environment, EnvironmentEntry, type EnvironmentLayer, EnvironmentReviewer, Environments, Errors, type EslintConfig, ExportInfo, type FeatureResolver, type FeatureResolverConfig, type GitHubAppConfig, type HolocronConfig, type HolocronProfile, IdeaRecord, Ideas, type IdeasConfig, ImportOptions, ImportResult, InspectRelayInput, Issue, IssueComment, IssueOrder, IssuePriority, IssueRecord, IssueSearchFilter, IssueSelector, Issues, KNOWN_STACK_DEPS, LabelDef, type LayerTokenExpectation, LifecycleResult, LifecycleSlot, type LinksFile, type LoadedConfig, type LogConfig, Logs, LogsDataset, 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, NotificationsPrsFeed, NotificationsServerLayout, NotificationsSignIn, NotificationsSignedIn, NotificationsWelcomeLayout, type OrgConfig, OrganizationSecretScope, type PackageJsonLike, PagesConfig, ParseWebhookInput, type PermissionRule, type PluginProbes, type PluginToken, type Probe, type ProbeContext, type ProbeRow, Projects, type ProviderAction, type ProviderActionContext, type ProviderActions, ProviderApiError, ProviderIdentity, type ProviderOptions, type ProviderRow, PullRequest, REQUIRED_CAPABILITIES, type RawProviderEntry, type RawProvidersConfig, type ReadKeysLimitedInput, RelayState, type RepoConfig, type RepoProperties, type RepoProtection, RepoRef, type RepoSecrets, type RepoSecretsDeploy, 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, SecretAccess, SecretScope, SecretVisibility, Secrets, ServerInspection, type SingleEntry, Source, SourceBranch, SourceFile, SourceRepoInfo, SourceRulesetDetail, SourceSecurity, SourceTeamMember, type StackName, StatusCategory, Storage, StorageBranch, type StorybookDeployProject, SyncResult, type SyncRolesInput, type SyncRolesResult, type TaskEntry, type TaskEntryConfig, TeamEntry, TeamPermission, type TelemetryConfig, type TokenExpectation, type TokenExpectationFilter, type TokenLifetime, type TokenResolver, type TokenRotation, Tooling, ToolingDoctorReport, ToolingExportInput, ToolingExportIssue, ToolingExportResult, TrackerDoctorReport, TrackerUser, TunnelRoute, Tunnels, Vault, type VerifyTokenFailure, type VerifyTokenResult, type VerifyTokenSuccess, WebhookDashboardInfo, WebhookVerificationError, Wiki, WikiProvisionOpts, WikiProxyConfig, WorkerScriptState, Workers, type WorkflowWithConfig, compose, createRestClient, credentialsEnvironment, defineConfig, deriveCapabilities, deriveCompliance, deriveProfile, deriveStack, isMulti, loadConfig, missingCapabilities, readWorkspacePackageJsons, resolveConfig, resolveEntry, resolvePluginPackage, resolveValue };
552
+ export { AddedItem, type AgentName, type AgentOptions, Analytics, type AppConfig, Auth, AuthDescription, AuthError, AuthEvent, AuthEventType, type AuthExportOutKind, AuthIdentity, AuthUser, BoardField, BoardFieldType, BoardItem, BoardItemInput, BoardRule, BoardState, BoardStatus, BoardStatusCategory, BoardSummary, BoardTemplate, BoardTemplateFile, BoardView, CARDINALITY, Cache, CacheTokenCheck, type Capability, type CapabilityConfigPackage, CapabilityImpls, CapabilityKey, Cardinality, CardinalityFor, type ChromaticProjectConfig, Ci, CiRun, CiRunFilter, CiRunStatus, type ComposedPreset, ConfigError, ConfigFileError, ConnectionStringOptions, Coverage, CoverageConfigComponent, CoverageConfigDocumentation, CoverageConfigInput, CoverageExpectations, CoverageNameDiff, CoverageRepoReport, CoverageStatusContext, CoverageStatusInput, CoverageTokenCheck, CoverageUploadFlagResult, CoverageUploadGroup, CoverageUploadInput, CoverageUploadResult, 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, DuplicateDiscussion, ElevationRequiredError, EnsureDiscussionInput, EnsureRelayInput, EnsureRelayResult, EnsureReport, EnsureResult, EnsureWebhookResult, EnsuredDiscussion, EnsuredResource, EnsuredTunnel, type EnvConfig, Environment, EnvironmentEntry, type EnvironmentLayer, EnvironmentReviewer, Environments, Errors, type EslintConfig, ExportInfo, type FeatureResolver, type FeatureResolverConfig, type GitHubAppConfig, type HolocronConfig, type HolocronProfile, IdeaRecord, Ideas, type IdeasConfig, ImportOptions, ImportResult, InspectRelayInput, Issue, IssueComment, IssueOrder, IssuePriority, IssueRecord, IssueSearchFilter, IssueSelector, Issues, KNOWN_STACK_DEPS, LabelDef, type LayerTokenExpectation, LifecycleResult, LifecycleSlot, type LinksFile, type LoadedConfig, type LogConfig, Logs, LogsDataset, 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, NotificationsPrsFeed, NotificationsServerLayout, NotificationsSignIn, NotificationsSignedIn, NotificationsWelcomeLayout, type OrgConfig, OrganizationSecretScope, type PackageJsonLike, PagesConfig, ParseWebhookInput, type PermissionRule, type PluginProbes, type PluginToken, type Probe, type ProbeContext, type ProbeRow, Projects, type ProviderAction, type ProviderActionContext, type ProviderActions, ProviderApiError, ProviderIdentity, type ProviderOptions, type ProviderRow, PullRequest, REQUIRED_CAPABILITIES, type RawProviderEntry, type RawProvidersConfig, type ReadKeysLimitedInput, RelayState, type RepoConfig, type RepoProperties, type RepoProtection, RepoRef, type RepoSecrets, type RepoSecretsDeploy, 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, SecretAccess, SecretScope, SecretVisibility, Secrets, ServerInspection, type SingleEntry, Source, SourceBranch, SourceFile, SourceRepoInfo, SourceRulesetDetail, SourceSecurity, SourceTeamMember, type StackName, StatusCategory, Storage, StorageBranch, type StorybookDeployProject, SyncResult, type SyncRolesInput, type SyncRolesResult, type TaskEntry, type TaskEntryConfig, TeamEntry, TeamPermission, type TelemetryConfig, type TokenExpectation, type TokenExpectationFilter, type TokenLifetime, type TokenResolver, type TokenRotation, Tooling, ToolingDoctorReport, ToolingExportInput, ToolingExportIssue, ToolingExportResult, TrackerDoctorReport, TrackerUser, TunnelRoute, Tunnels, Vault, type VerifyTokenFailure, type VerifyTokenResult, type VerifyTokenSuccess, WebhookDashboardInfo, WebhookVerificationError, Wiki, WikiProvisionOpts, WikiProxyConfig, WorkerScriptState, Workers, type WorkflowWithConfig, compose, createRestClient, credentialsEnvironment, defineConfig, deriveCapabilities, deriveCompliance, deriveProfile, deriveStack, isMulti, loadConfig, missingCapabilities, readWorkspacePackageJsons, resolveConfig, resolveEntry, resolvePluginPackage, resolveValue };
package/dist/index.mjs CHANGED
@@ -1,7 +1,8 @@
1
1
  import { CARDINALITY, ElevationRequiredError, MissingTokenError, ProviderApiError, REQUIRED_CAPABILITIES, WebhookVerificationError, isMulti } from "./plugin/capabilities.mjs";
2
- import { a as placeAreas, c as ConfigError, d as resolveEntry, f as resolvePluginPackage, g as layerEnvironment, h as isEnvironmentLayer, i as loadConfig, l as credentialsEnvironment, m as ENVIRONMENT_LAYERS, n as compose, o as HOLOCRON_AREAS, p as repoSlug, r as defineConfig, s as SHARED_AREAS, t as ConfigFileError, u as resolveConfig } from "./config-system-CAYb1d4M.mjs";
2
+ import { a as placeAreas, c as ConfigError, d as resolveEntry, f as resolvePluginPackage, g as layerEnvironment, h as isEnvironmentLayer, i as loadConfig, l as credentialsEnvironment, m as ENVIRONMENT_LAYERS, n as compose, o as HOLOCRON_AREAS, p as repoSlug, r as defineConfig, s as SHARED_AREAS, t as ConfigFileError, u as resolveConfig } from "./config-system-BcdB9khh.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
+ import { DOCUMENTATION_FLAG, codecovFlagNames, readWorkspacePackages } from "@theholocron/astromech";
5
6
  import { describeError, style } from "@theholocron/kyber/ui";
6
7
  import { errorMessage } from "@theholocron/misc-utils";
7
8
  import { createRestClient } from "@theholocron/http-client";
@@ -63,6 +64,22 @@ function createFeatureResolver(config) {
63
64
  keyringKey: config.keyringKey
64
65
  } });
65
66
  }
67
+ // src/commands/coverage-expectations/coverage-expectations.ts
68
+ /**
69
+ * The flags and components `holocron sync` writes to `codecov.yml` for the workspace at `repoRoot`: the same
70
+ * functions the generator uses, so a coverage provider's `checkRepo()` compares with exactly what is written. A flag per
71
+ * package (none for `docs`), plus `documentation` when `docsCoverage` is `warn` or `required`; a component per package.
72
+ * Both lists are sorted. Plugins call this instead of importing the task runner.
73
+ */
74
+ function coverageExpectations(repoRoot, docsCoverage = "off") {
75
+ const packages = readWorkspacePackages(repoRoot);
76
+ const flags = codecovFlagNames(packages);
77
+ if (docsCoverage !== "off") flags.push(DOCUMENTATION_FLAG);
78
+ return {
79
+ flags: [...new Set(flags)].sort(),
80
+ components: packages.map((pkg) => pkg.slug).sort()
81
+ };
82
+ }
66
83
  // src/plugin/issues-provider/order-keys/order-keys.ts
67
84
  /**
68
85
  * Puts issue keys in creation order without asking the tracker: issue numbers (`#12`, `ENG-12`) rise with creation inside
@@ -725,4 +742,4 @@ function resolveCredentialsFile(base, file, makeDir = (dir) => void mkdirSync(di
725
742
  isDefault: true
726
743
  };
727
744
  }
728
- export { AuthError, CANONICAL_LABELS, CARDINALITY, ConfigError, ConfigFileError, DEFAULT_TOKEN_ROTATION, ElevationRequiredError, HOLOCRON_AREAS, KNOWN_STACK_DEPS, MissingTokenError, PRIVATE_CREDENTIALS_FILE, ProviderApiError, REQUIRED_CAPABILITIES, SHARED_AREAS, WebhookVerificationError, compose, connectionProbe, createFeatureResolver, createResolveToken, createRestClient, credentialsEnvironment, defineConfig, deriveCapabilities, deriveCompliance, deriveProfile, deriveStack, ignoreAdvice, isMulti, keyring, loadConfig, missingCapabilities, orderKeys, pickByCreation, placeAreas, readKeysLimited, readLinks, readWorkspacePackageJsons, reportProgress, resolveConfig, resolveCredentialsFile, resolveEntry, resolveEnvironmentId, resolvePluginPackage, resolveValue, roleTeamProblem, sourceProblem, stdoutKind, syncRoles, tokenExpectations, tokenRotationRows };
745
+ export { AuthError, CANONICAL_LABELS, CARDINALITY, ConfigError, ConfigFileError, DEFAULT_TOKEN_ROTATION, ElevationRequiredError, HOLOCRON_AREAS, KNOWN_STACK_DEPS, MissingTokenError, PRIVATE_CREDENTIALS_FILE, ProviderApiError, REQUIRED_CAPABILITIES, SHARED_AREAS, WebhookVerificationError, compose, connectionProbe, coverageExpectations, createFeatureResolver, createResolveToken, createRestClient, credentialsEnvironment, defineConfig, deriveCapabilities, deriveCompliance, deriveProfile, deriveStack, ignoreAdvice, isMulti, keyring, loadConfig, missingCapabilities, orderKeys, pickByCreation, placeAreas, readKeysLimited, readLinks, readWorkspacePackageJsons, reportProgress, resolveConfig, resolveCredentialsFile, resolveEntry, resolveEnvironmentId, resolvePluginPackage, resolveValue, roleTeamProblem, sourceProblem, stdoutKind, syncRoles, tokenExpectations, tokenRotationRows };
@@ -1,2 +1,2 @@
1
- import { $ as DeploymentTarget, $n as TrackerDoctorReport, $t as NormalizedAuthUser, A as CapabilityImpls, An as SecretAccess, At as IssueOrder, B as CoverageRepoReport, Bn as SourceSecurity, Bt as LogsDataset, C as BoardStatusCategory, Cn as ProviderIdentity, Ct as IdeaRecord, D as BoardView, Dn as RepoSettings, Dt as InspectRelayInput, E as BoardTemplateFile, En as RepoRef, Et as ImportResult, F as CiRun, Fn as Source, Ft as Issues, G as DeployFunctionConfig, Gn as SyncResult, Gt as MonitoringAlertSettings, H as CreateAuthUserInput, Hn as StatusCategory, Ht as MonitoringAlertChannelInput, I as CiRunFilter, In as SourceBranch, It as LabelDef, J as DeployScriptResult, Jn as Tooling, Jt as MonitoringAssertionSource, K as DeployFunctionResult, Kn as TeamEntry, Kt as MonitoringAssertion, L as CiRunStatus, Ln as SourceFile, Lt as LifecycleResult, M as Cardinality, Mn as SecretVisibility, Mt as IssueRecord, N as CardinalityFor, Nn as Secrets, Nt as IssueSearchFilter, O as Cache, On as ResolvedCapability, Ot as Issue, P as Ci, Pn as ServerInspection, Pt as IssueSelector, Q as DeploymentRecord, Qn as ToolingExportResult, Qt as MoveReport, R as ConnectionStringOptions, Rn as SourceRepoInfo, Rt as LifecycleSlot, S as BoardStatus, Sn as Projects, St as ExportInfo, T as BoardTemplate, Tn as RelayState, Tt as ImportOptions, U as Credentials, Un as Storage, Ut as MonitoringAlertChannelResult, V as CoverageTokenCheck, Vn as SourceTeamMember, Vt as Monitoring, W as CredentialsInspection, Wn as StorageBranch, Wt as MonitoringAlertChannelState, X as DeploymentProject, Xn as ToolingExportInput, Xt as MonitoringCheckInput, Y as Deployment, Yn as ToolingDoctorReport, Yt as MonitoringCheck, Z as DeploymentProjectSettings, Zn as ToolingExportIssue, Zt as MonitoringHttpMethod, _ as BoardFieldType, _n as NotificationsSignedIn, _t as Environment, a as REQUIRED_CAPABILITIES, an as NotificationsEveryoneLayout, ar as Wiki, at as DnsRecordRequest, b as BoardRule, bn as PagesConfig, bt as Environments, c as AddedItem, cn as NotificationsLinksLayout, cr as WorkerScriptState, ct as EnsureDiscussionInput, d as AuthDescription, dn as NotificationsOnboardingLayout, dt as EnsureReport, en as Notifications, er as TrackerUser, et as DeploymentTrigger, f as AuthEvent, fn as NotificationsPicture, ft as EnsureResult, g as BoardField, gn as NotificationsSignIn, gt as EnsuredTunnel, h as AuthUser, hn as NotificationsServerLayout, ht as EnsuredResource, i as ProviderApiError, in as NotificationsDelivery, ir as WebhookDashboardInfo, it as DnsRecord, j as CapabilityKey, jn as SecretScope, jt as IssuePriority, k as CacheTokenCheck, kn as Ruleset, kt as IssueComment, l as Analytics, ln as NotificationsMember, lr as Workers, lt as EnsureRelayInput, m as AuthIdentity, mn as NotificationsPrsFeed, mt as EnsuredDiscussion, n as ElevationRequiredError, nn as NotificationsApplicationLayout, nr as Tunnels, nt as DiscussionPost, o as WebhookVerificationError, on as NotificationsForumTag, or as WikiProvisionOpts, ot as DnsRecordType, p as AuthEventType, pn as NotificationsPinnedLayout, pt as EnsureWebhookResult, q as DeployScriptConfig, qn as TeamPermission, qt as MonitoringAssertionComparison, r as MissingTokenError, rn as NotificationsChannelLayout, rr as Vault, rt as Dns, s as isMulti, sn as NotificationsLayout, sr as WikiProxyConfig, st as DuplicateDiscussion, t as CARDINALITY, tn as NotificationsAccess, tr as TunnelRoute, tt as DiscussionPatch, u as Auth, un as NotificationsMonitoringFeed, ut as EnsureRelayResult, v as BoardItem, vn as NotificationsWelcomeLayout, vt as EnvironmentEntry, w as BoardSummary, wn as PullRequest, wt as Ideas, x as BoardState, xn as ParseWebhookInput, xt as Errors, y as BoardItemInput, yn as OrganizationSecretScope, yt as EnvironmentReviewer, z as Coverage, zn as SourceRulesetDetail, zt as Logs } from "../index-DMoGsKv2.mjs";
2
- export { AddedItem, Analytics, Auth, AuthDescription, AuthEvent, AuthEventType, AuthIdentity, AuthUser, BoardField, BoardFieldType, BoardItem, BoardItemInput, BoardRule, BoardState, BoardStatus, BoardStatusCategory, BoardSummary, BoardTemplate, BoardTemplateFile, BoardView, CARDINALITY, Cache, CacheTokenCheck, CapabilityImpls, CapabilityKey, Cardinality, CardinalityFor, Ci, CiRun, CiRunFilter, CiRunStatus, ConnectionStringOptions, Coverage, CoverageRepoReport, CoverageTokenCheck, CreateAuthUserInput, Credentials, CredentialsInspection, DeployFunctionConfig, DeployFunctionResult, DeployScriptConfig, DeployScriptResult, Deployment, DeploymentProject, DeploymentProjectSettings, DeploymentRecord, DeploymentTarget, DeploymentTrigger, DiscussionPatch, DiscussionPost, Dns, DnsRecord, DnsRecordRequest, DnsRecordType, DuplicateDiscussion, ElevationRequiredError, EnsureDiscussionInput, EnsureRelayInput, EnsureRelayResult, EnsureReport, EnsureResult, EnsureWebhookResult, EnsuredDiscussion, EnsuredResource, EnsuredTunnel, Environment, EnvironmentEntry, EnvironmentReviewer, Environments, Errors, ExportInfo, IdeaRecord, Ideas, ImportOptions, ImportResult, InspectRelayInput, Issue, IssueComment, IssueOrder, IssuePriority, IssueRecord, IssueSearchFilter, IssueSelector, Issues, LabelDef, LifecycleResult, LifecycleSlot, Logs, LogsDataset, 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, OrganizationSecretScope, PagesConfig, ParseWebhookInput, Projects, ProviderApiError, ProviderIdentity, PullRequest, REQUIRED_CAPABILITIES, RelayState, RepoRef, RepoSettings, ResolvedCapability, Ruleset, SecretAccess, SecretScope, SecretVisibility, Secrets, ServerInspection, Source, SourceBranch, SourceFile, SourceRepoInfo, SourceRulesetDetail, SourceSecurity, SourceTeamMember, StatusCategory, Storage, StorageBranch, SyncResult, TeamEntry, TeamPermission, Tooling, ToolingDoctorReport, ToolingExportInput, ToolingExportIssue, ToolingExportResult, TrackerDoctorReport, TrackerUser, TunnelRoute, Tunnels, Vault, WebhookDashboardInfo, WebhookVerificationError, Wiki, WikiProvisionOpts, WikiProxyConfig, WorkerScriptState, Workers, isMulti };
1
+ import { $ as CreateAuthUserInput, $n as StatusCategory, $t as MonitoringAlertChannelInput, A as CapabilityImpls, An as OrganizationSecretScope, At as EnvironmentReviewer, B as CoverageConfigComponent, Bn as Ruleset, Bt as IssueComment, C as BoardStatusCategory, Cn as NotificationsPicture, Ct as EnsureResult, D as BoardView, Dn as NotificationsSignIn, Dt as EnsuredTunnel, E as BoardTemplateFile, En as NotificationsServerLayout, Et as EnsuredResource, F as CiRun, Fn as PullRequest, Ft as Ideas, G as CoverageRepoReport, Gn as ServerInspection, Gt as IssueSelector, H as CoverageConfigInput, Hn as SecretScope, Ht as IssuePriority, I as CiRunFilter, In as RelayState, It as ImportOptions, J as CoverageTokenCheck, Jn as SourceFile, Jt as LifecycleResult, K as CoverageStatusContext, Kn as Source, Kt as Issues, L as CiRunStatus, Ln as RepoRef, Lt as ImportResult, M as Cardinality, Mn as ParseWebhookInput, Mt as Errors, N as CardinalityFor, Nn as Projects, Nt as ExportInfo, O as Cache, On as NotificationsSignedIn, Ot as Environment, P as Ci, Pn as ProviderIdentity, Pt as IdeaRecord, Q as CoverageUploadResult, Qn as SourceTeamMember, Qt as Monitoring, R as ConnectionStringOptions, Rn as RepoSettings, Rt as InspectRelayInput, S as BoardStatus, Sn as NotificationsOnboardingLayout, St as EnsureReport, T as BoardTemplate, Tn as NotificationsPrsFeed, Tt as EnsuredDiscussion, U as CoverageExpectations, Un as SecretVisibility, Ut as IssueRecord, V as CoverageConfigDocumentation, Vn as SecretAccess, Vt as IssueOrder, W as CoverageNameDiff, Wn as Secrets, Wt as IssueSearchFilter, X as CoverageUploadGroup, Xn as SourceRulesetDetail, Xt as Logs, Y as CoverageUploadFlagResult, Yn as SourceRepoInfo, Yt as LifecycleSlot, Z as CoverageUploadInput, Zn as SourceSecurity, Zt as LogsDataset, _ as BoardFieldType, _n as NotificationsForumTag, _r as WikiProvisionOpts, _t as DnsRecordType, a as REQUIRED_CAPABILITIES, an as MonitoringAssertionSource, ar as Tooling, at as DeployScriptResult, b as BoardRule, bn as NotificationsMember, br as Workers, bt as EnsureRelayInput, c as AddedItem, cn as MonitoringHttpMethod, cr as ToolingExportIssue, ct as DeploymentProjectSettings, d as AuthDescription, dn as Notifications, dr as TrackerUser, dt as DeploymentTrigger, en as MonitoringAlertChannelResult, er as Storage, et as Credentials, f as AuthEvent, fn as NotificationsAccess, fr as TunnelRoute, ft as DiscussionPatch, g as BoardField, gn as NotificationsEveryoneLayout, gr as Wiki, gt as DnsRecordRequest, h as AuthUser, hn as NotificationsDelivery, hr as WebhookDashboardInfo, ht as DnsRecord, i as ProviderApiError, in as MonitoringAssertionComparison, ir as TeamPermission, it as DeployScriptConfig, j as CapabilityKey, jn as PagesConfig, jt as Environments, k as CacheTokenCheck, kn as NotificationsWelcomeLayout, kt as EnvironmentEntry, l as Analytics, ln as MoveReport, lr as ToolingExportResult, lt as DeploymentRecord, m as AuthIdentity, mn as NotificationsChannelLayout, mr as Vault, mt as Dns, n as ElevationRequiredError, nn as MonitoringAlertSettings, nr as SyncResult, nt as DeployFunctionConfig, o as WebhookVerificationError, on as MonitoringCheck, or as ToolingDoctorReport, ot as Deployment, p as AuthEventType, pn as NotificationsApplicationLayout, pr as Tunnels, pt as DiscussionPost, q as CoverageStatusInput, qn as SourceBranch, qt as LabelDef, r as MissingTokenError, rn as MonitoringAssertion, rr as TeamEntry, rt as DeployFunctionResult, s as isMulti, sn as MonitoringCheckInput, sr as ToolingExportInput, st as DeploymentProject, t as CARDINALITY, tn as MonitoringAlertChannelState, tr as StorageBranch, tt as CredentialsInspection, u as Auth, un as NormalizedAuthUser, ur as TrackerDoctorReport, ut as DeploymentTarget, v as BoardItem, vn as NotificationsLayout, vr as WikiProxyConfig, vt as DuplicateDiscussion, w as BoardSummary, wn as NotificationsPinnedLayout, wt as EnsureWebhookResult, x as BoardState, xn as NotificationsMonitoringFeed, xt as EnsureRelayResult, y as BoardItemInput, yn as NotificationsLinksLayout, yr as WorkerScriptState, yt as EnsureDiscussionInput, z as Coverage, zn as ResolvedCapability, zt as Issue } from "../index-DVz1kZw5.mjs";
2
+ export { AddedItem, Analytics, Auth, AuthDescription, AuthEvent, AuthEventType, AuthIdentity, AuthUser, BoardField, BoardFieldType, BoardItem, BoardItemInput, BoardRule, BoardState, BoardStatus, BoardStatusCategory, BoardSummary, BoardTemplate, BoardTemplateFile, BoardView, CARDINALITY, Cache, CacheTokenCheck, CapabilityImpls, CapabilityKey, Cardinality, CardinalityFor, Ci, CiRun, CiRunFilter, CiRunStatus, ConnectionStringOptions, Coverage, CoverageConfigComponent, CoverageConfigDocumentation, CoverageConfigInput, CoverageExpectations, CoverageNameDiff, CoverageRepoReport, CoverageStatusContext, CoverageStatusInput, CoverageTokenCheck, CoverageUploadFlagResult, CoverageUploadGroup, CoverageUploadInput, CoverageUploadResult, CreateAuthUserInput, Credentials, CredentialsInspection, DeployFunctionConfig, DeployFunctionResult, DeployScriptConfig, DeployScriptResult, Deployment, DeploymentProject, DeploymentProjectSettings, DeploymentRecord, DeploymentTarget, DeploymentTrigger, DiscussionPatch, DiscussionPost, Dns, DnsRecord, DnsRecordRequest, DnsRecordType, DuplicateDiscussion, ElevationRequiredError, EnsureDiscussionInput, EnsureRelayInput, EnsureRelayResult, EnsureReport, EnsureResult, EnsureWebhookResult, EnsuredDiscussion, EnsuredResource, EnsuredTunnel, Environment, EnvironmentEntry, EnvironmentReviewer, Environments, Errors, ExportInfo, IdeaRecord, Ideas, ImportOptions, ImportResult, InspectRelayInput, Issue, IssueComment, IssueOrder, IssuePriority, IssueRecord, IssueSearchFilter, IssueSelector, Issues, LabelDef, LifecycleResult, LifecycleSlot, Logs, LogsDataset, 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, OrganizationSecretScope, PagesConfig, ParseWebhookInput, Projects, ProviderApiError, ProviderIdentity, PullRequest, REQUIRED_CAPABILITIES, RelayState, RepoRef, RepoSettings, ResolvedCapability, Ruleset, SecretAccess, SecretScope, SecretVisibility, Secrets, ServerInspection, Source, SourceBranch, SourceFile, SourceRepoInfo, SourceRulesetDetail, SourceSecurity, SourceTeamMember, StatusCategory, Storage, StorageBranch, SyncResult, TeamEntry, TeamPermission, Tooling, ToolingDoctorReport, ToolingExportInput, ToolingExportIssue, ToolingExportResult, TrackerDoctorReport, TrackerUser, TunnelRoute, Tunnels, Vault, WebhookDashboardInfo, WebhookVerificationError, Wiki, WikiProvisionOpts, WikiProxyConfig, WorkerScriptState, Workers, isMulti };
@@ -1,4 +1,4 @@
1
- import { Dr as ComposedPreset, Er as Capability, Sr as compose } from "./index-DMoGsKv2.mjs";
1
+ import { Lr as Capability, Nr as compose, Rr as ComposedPreset } from "./index-DVz1kZw5.mjs";
2
2
  /** Options for the audit capability. */
3
3
  interface AuditOptions {
4
4
  /** Enable Knip unused-export analysis (default: false). */
@@ -17,8 +17,8 @@ interface AuditOptions {
17
17
  declare function audit({ knip, performance, lighthouseConfig }?: AuditOptions): Capability;
18
18
  /**
19
19
  * Adds a documentation site deployed to Cloudflare Pages with PR previews.
20
- * Sets org/domain, wires Cloudflare + DNS providers, and adds the codecov
21
- * `extraRequiredChecks` (enabled for all docs repos).
20
+ * Sets org/domain, wires Cloudflare + DNS providers and the Codecov `coverage` provider (which supplies the
21
+ * `codecov/patch` and `codecov/project` required statuses).
22
22
  * Requires: node
23
23
  */
24
24
  declare function docs(): Capability;
package/dist/presets.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { n as compose } from "./config-system-CAYb1d4M.mjs";
1
+ import { n as compose } from "./config-system-BcdB9khh.mjs";
2
2
  import { DEFAULT_ORG } from "@theholocron/astromech";
3
3
  // src/presets/capabilities/audit.ts
4
4
  /**
@@ -52,8 +52,8 @@ function wikiHost(domain = DEFAULT_DOMAIN) {
52
52
  // src/presets/capabilities/docs.ts
53
53
  /**
54
54
  * Adds a documentation site deployed to Cloudflare Pages with PR previews.
55
- * Sets org/domain, wires Cloudflare + DNS providers, and adds the codecov
56
- * `extraRequiredChecks` (enabled for all docs repos).
55
+ * Sets org/domain, wires Cloudflare + DNS providers and the Codecov `coverage` provider (which supplies the
56
+ * `codecov/patch` and `codecov/project` required statuses).
57
57
  * Requires: node
58
58
  */
59
59
  function docs() {
@@ -69,13 +69,13 @@ function docs() {
69
69
  providers: {
70
70
  deployment: "cloudflare",
71
71
  dns: "cloudflare",
72
- workers: "cloudflare"
72
+ workers: "cloudflare",
73
+ coverage: "codecov"
73
74
  },
74
75
  tasks: [{
75
76
  name: "deploy-docs",
76
77
  with: { preview: true }
77
- }],
78
- extraRequiredChecks: ["codecov/patch", "codecov/project"]
78
+ }]
79
79
  };
80
80
  }
81
81
  // src/presets/capabilities/monorepo.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/cli",
3
- "version": "5.0.0-alpha.451",
3
+ "version": "5.0.0-alpha.453",
4
4
  "description": "The Holocron CLI - a pluggable, capability-based orchestrator for spinning up and operating software projects.",
5
5
  "keywords": [
6
6
  "cli",
@@ -59,18 +59,18 @@
59
59
  "posthog-node": "^5.71.0",
60
60
  "tsx": "4.23.15",
61
61
  "yargs": "^18.1.0",
62
- "@theholocron/dagobah": "5.0.0-alpha.451",
63
- "@theholocron/datapad": "5.0.0-alpha.451",
62
+ "@theholocron/astromech": "5.0.0-alpha.453",
63
+ "@theholocron/dagobah": "5.0.0-alpha.453",
64
+ "@theholocron/datapad": "5.0.0-alpha.453",
64
65
  "@theholocron/env-utils": "^1.17.0-alpha.4",
65
66
  "@theholocron/fs-utils": "^1.17.0-alpha.4",
66
67
  "@theholocron/git-utils": "^1.17.0-alpha.4",
67
- "@theholocron/astromech": "5.0.0-alpha.451",
68
- "@theholocron/http-client": "^1.58.0-alpha.35",
68
+ "@theholocron/github-client": "^1.58.0-alpha.37",
69
+ "@theholocron/http-client": "^1.58.0-alpha.37",
69
70
  "@theholocron/json-utils": "^1.17.0-alpha.4",
70
- "@theholocron/kyber": "5.0.0-alpha.451",
71
+ "@theholocron/kyber": "5.0.0-alpha.453",
71
72
  "@theholocron/misc-utils": "^1.17.0-alpha.4",
72
73
  "@theholocron/observability": "^0.7.0-alpha.4",
73
- "@theholocron/github-client": "^1.58.0-alpha.35",
74
74
  "@theholocron/pkg-utils": "^1.17.0-alpha.4"
75
75
  },
76
76
  "devDependencies": {
@@ -84,10 +84,10 @@
84
84
  "tsdown": "^0.23.7",
85
85
  "typescript": "^5.9.3",
86
86
  "vitest": "^5.1.0",
87
- "@theholocron/rollup-plugin-transform-template": "^8.9.0-alpha.17",
88
- "@theholocron/eslint-config": "^8.9.0-alpha.17",
89
- "@theholocron/tsconfig": "^8.9.0-alpha.17",
90
- "@theholocron/vitest-config": "^8.9.0-alpha.17"
87
+ "@theholocron/eslint-config": "^8.9.0-alpha.18",
88
+ "@theholocron/vitest-config": "^8.9.0-alpha.18",
89
+ "@theholocron/rollup-plugin-transform-template": "^8.9.0-alpha.18",
90
+ "@theholocron/tsconfig": "^8.9.0-alpha.18"
91
91
  },
92
92
  "engines": {
93
93
  "node": ">=22.0.0"