@theholocron/cli 5.0.0-alpha.393 → 5.0.0-alpha.395

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.
@@ -114,6 +114,17 @@ function validateGitHubApps(apps) {
114
114
  }
115
115
  });
116
116
  }
117
+ /** Throws a {@link ConfigError} naming the first thing wrong with the `ideas` block. */
118
+ function validateIdeas(ideas) {
119
+ const nonEmpty = (value) => typeof value === "string" && value.trim() !== "";
120
+ const isObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
121
+ if (!isObject(ideas)) throw new ConfigError$1("`ideas` must be an object: { dir, states? }");
122
+ if (!nonEmpty(ideas.dir)) throw new ConfigError$1("`ideas.dir` must be the path of the notes folder, got an empty value");
123
+ if (ideas.states !== void 0) {
124
+ if (!isObject(ideas.states)) throw new ConfigError$1("`ideas.states` must be an object: { file? }");
125
+ if (ideas.states.file !== void 0 && !nonEmpty(ideas.states.file)) throw new ConfigError$1("`ideas.states.file` must be a state name, got an empty value");
126
+ }
127
+ }
117
128
  /** Throws a {@link ConfigError} naming the first thing wrong with the `dev` block. */
118
129
  function validateDev(dev) {
119
130
  const nonEmpty = (value) => typeof value === "string" && value.trim() !== "";
@@ -170,6 +181,7 @@ function resolveConfig(raw) {
170
181
  }
171
182
  if (raw.dev !== void 0) validateDev(raw.dev);
172
183
  if (raw.githubApps !== void 0) validateGitHubApps(raw.githubApps);
184
+ if (raw.ideas !== void 0) validateIdeas(raw.ideas);
173
185
  validateVariablesSync(raw.repo?.variables);
174
186
  const credentialsEntry = providers.credentials;
175
187
  if (credentialsEntry?.cardinality === "many") for (const tuple of credentialsEntry.tuples) {
@@ -201,6 +213,7 @@ function resolveConfig(raw) {
201
213
  credentials: raw.credentials,
202
214
  dev: raw.dev,
203
215
  githubApps: raw.githubApps,
216
+ ideas: raw.ideas,
204
217
  log: raw.log,
205
218
  telemetry: raw.telemetry,
206
219
  eslint: raw.eslint
@@ -1,4 +1,4 @@
1
- import { Pn as TeamEntry, k as CapabilityKey, un as PagesConfig } from "./index-nzzQsd0r.mjs";
1
+ import { Pn as TeamEntry, k as CapabilityKey, un as PagesConfig } from "./index-DbptTVsV.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";
@@ -308,6 +308,19 @@ interface GitHubAppConfig {
308
308
  */
309
309
  environment: string;
310
310
  }
311
+ /** The `ideas` block: where the repo's idea notes are and which state files an issue. */
312
+ interface IdeasConfig {
313
+ /**
314
+ * The folder of Markdown notes (an Obsidian vault). May start with `~` for the home folder. `HOLOCRON_IDEAS_DIR`
315
+ * overrides it, since the path differs per machine.
316
+ */
317
+ dir: string;
318
+ /** The names of the note states, so a repo can use its own words. */
319
+ states?: {
320
+ /** The `status:` that means "file this idea" (default `in-progress`). */
321
+ file?: string;
322
+ };
323
+ }
311
324
  /** The `dev` block: how `holocron dev` runs this directory's application locally behind a development tunnel. */
312
325
  interface DevConfig {
313
326
  /**
@@ -705,6 +718,13 @@ interface HolocronConfig {
705
718
  * [{ name: "Sentinel", manifest: "apps/sentinel/github-app.manifest.json", environment: "Sentinel" }]
706
719
  */
707
720
  githubApps?: GitHubAppConfig[];
721
+ /**
722
+ * Where the repo's idea notes are, for `holocron ideas sync`: the folder and the state that files an issue.
723
+ *
724
+ * @example
725
+ * { dir: "~/Library/Mobile Documents/iCloud~md~obsidian/Documents/holocron", states: { file: "in-progress" } }
726
+ */
727
+ ideas?: IdeasConfig;
708
728
  /**
709
729
  * Structured-logging config. Only the level belongs here — Axiom
710
730
  * credentials come from env vars, never a committed file.
@@ -815,6 +835,8 @@ interface ResolvedHolocronConfig {
815
835
  dev?: DevConfig;
816
836
  /** The GitHub App instances `doctor github-app` checks, validated by `resolveConfig`. */
817
837
  githubApps?: GitHubAppConfig[];
838
+ /** The idea notes folder and filing state, validated by `resolveConfig`. */
839
+ ideas?: IdeasConfig;
818
840
  /** Logging settings. */
819
841
  log?: LogConfig;
820
842
  /** Telemetry settings. */
@@ -926,4 +948,4 @@ declare const loadConfig: (cwd: string) => Promise<LoadedConfig>;
926
948
  * const preset = compose(node(), nextjs());
927
949
  */
928
950
  declare const compose: (...args: (Capability | Capability[])[]) => ComposedPreset;
929
- export { RawProviderEntry as A, ResolvedHolocronConfig as B, EslintConfig as C, MultiEntry as D, LogConfig as E, RepoSecrets as F, StorybookDeployProject as G, ResolvedProvidersConfig as H, RepoSecretsSync as I, WorkflowWithConfig as J, TaskEntryConfig as K, RepoValidationConfig as L, RepoConfig as M, RepoProperties as N, OrgConfig as O, RepoProtection as P, RepoVariables as R, EnvConfig as S, HolocronConfig as T, ResolvedTuple as U, ResolvedProviderEntry as V, SingleEntry as W, CredentialsConfig as _, LoadedConfig as a, DocsConfig as b, TaskEntry as c, resolveConfig as d, resolveEntry as f, ChromaticProjectConfig as g, CapabilityConfigPackage as h, loadConfig as i, RawProvidersConfig as j, ProviderOptions as k, ConfigError$1 as l, AppConfig as m, compose as n, Capability as o, resolvePluginPackage as p, TelemetryConfig as q, defineConfig as r, ComposedPreset as s, ConfigFileError as t, credentialsEnvironment as u, DevConfig as v, GitHubAppConfig as w, DoctorConfig as x, DevServeConfig as y, RepoVariablesSync as z };
951
+ export { ProviderOptions as A, RepoVariablesSync as B, EslintConfig as C, LogConfig as D, IdeasConfig as E, RepoProtection as F, SingleEntry as G, ResolvedProviderEntry as H, RepoSecrets as I, TelemetryConfig as J, StorybookDeployProject as K, RepoSecretsSync as L, RawProvidersConfig as M, RepoConfig as N, MultiEntry as O, RepoProperties as P, RepoValidationConfig as R, EnvConfig as S, HolocronConfig as T, ResolvedProvidersConfig as U, ResolvedHolocronConfig as V, ResolvedTuple as W, WorkflowWithConfig as Y, CredentialsConfig as _, LoadedConfig as a, DocsConfig as b, TaskEntry as c, resolveConfig as d, resolveEntry as f, ChromaticProjectConfig as g, CapabilityConfigPackage as h, loadConfig as i, RawProviderEntry as j, OrgConfig as k, ConfigError$1 as l, AppConfig as m, compose as n, Capability as o, resolvePluginPackage as p, TaskEntryConfig as q, defineConfig as r, ComposedPreset as s, ConfigFileError as t, credentialsEnvironment as u, DevConfig as v, GitHubAppConfig as w, DoctorConfig as x, DevServeConfig as y, RepoVariables as z };
@@ -550,6 +550,11 @@ interface IssueSearchFilter {
550
550
  openOnly?: boolean;
551
551
  /** Max number of issues to return. Adapters apply a sensible default. */
552
552
  limit?: number;
553
+ /**
554
+ * Only issues whose title or body contains this text, compared without regard to case. The text is matched
555
+ * literally, markup such as an HTML comment included. Left out, nothing is filtered by text.
556
+ */
557
+ text?: string;
553
558
  }
554
559
  /** What {@link Issues.transition} did. */
555
560
  interface LifecycleResult {
package/dist/index.d.mts CHANGED
@@ -1,12 +1,12 @@
1
- import { $ as DnsRecord, $t as NotificationsLinksLayout, A as Cardinality, An as StatusCategory, At as Logs, B as DeployFunctionConfig, Bn as TunnelRoute, Bt as MonitoringCheck, C as BoardStatusCategory, Cn as Source, Ct as IssueRecord, D as BoardView, Dn as SourceRulesetDetail, Dt as LabelDef, E as BoardTemplateFile, En as SourceRepoInfo, Et as Issues, F as CiRunStatus, Fn as TeamPermission, Ft as MonitoringAlertChannelState, G as DeploymentProject, Gn as WikiProvisionOpts, Gt as Notifications, H as DeployScriptConfig, Hn as Vault, Ht as MonitoringHttpMethod, I as ConnectionStringOptions, In as Tooling, It as MonitoringAlertSettings, J as DeploymentTarget, Jn as Workers, Jt as NotificationsChannelLayout, K as DeploymentProjectSettings, Kn as WikiProxyConfig, Kt as NotificationsAccess, L as CreateAuthUserInput, Ln as ToolingDoctorReport, Lt as MonitoringAssertion, M as Ci, Mn as StorageBranch, Mt as Monitoring, N as CiRun, Nn as SyncResult, Nt as MonitoringAlertChannelInput, O as CapabilityImpls, On as SourceSecurity, Ot as LifecycleResult, P as CiRunFilter, Pn as TeamEntry, Pt as MonitoringAlertChannelResult, Q as Dns, Qt as NotificationsLayout, R as Credentials, Rn as TrackerDoctorReport, Rt as MonitoringAssertionComparison, S as BoardStatus, Sn as ServerInspection, St as IssuePriority, T as BoardTemplate, Tn as SourceFile, Tt as IssueSelector, U as DeployScriptResult, Un as WebhookDashboardInfo, Ut as MoveReport, V as DeployFunctionResult, Vn as Tunnels, Vt as MonitoringCheckInput, W as Deployment, Wn as Wiki, Wt as NormalizedAuthUser, X as DiscussionPatch, Xt as NotificationsEveryoneLayout, Y as DeploymentTrigger, Yt as NotificationsDelivery, Z as DiscussionPost, Zt as NotificationsForumTag, _ as BoardFieldType, _n as RepoSettings, _t as ImportResult, a as REQUIRED_CAPABILITIES, an as NotificationsPrsFeed, at as EnsureReport, b as BoardRule, bn as SecretScope, bt as IssueComment, c as AddedItem, cn as NotificationsSignedIn, ct as EnsuredDiscussion, d as AuthDescription, dn as ParseWebhookInput, dt as Environment, en as NotificationsMember, et as DnsRecordRequest, f as AuthEvent, fn as Projects, ft as EnvironmentReviewer, g as BoardField, gn as RepoRef, gt as ImportOptions, h as AuthUser, hn as RelayState, ht as ExportInfo, i as ProviderApiError, in as NotificationsPinnedLayout, it as EnsureRelayResult, j as CardinalityFor, jn as Storage, jt as LogsDataset, k as CapabilityKey, kn as SourceTeamMember, kt as LifecycleSlot, l as Analytics, ln as NotificationsWelcomeLayout, lt as EnsuredResource, m as AuthIdentity, mn as PullRequest, mt as Errors, n as ElevationRequiredError, nn as NotificationsOnboardingLayout, nt as EnsureDiscussionInput, o as WebhookVerificationError, on as NotificationsServerLayout, ot as EnsureResult, p as AuthEventType, pn as ProviderIdentity, pt as Environments, q as DeploymentRecord, qn as WorkerScriptState, qt as NotificationsApplicationLayout, r as MissingTokenError, rn as NotificationsPicture, rt as EnsureRelayInput, s as isMulti, sn as NotificationsSignIn, st as EnsureWebhookResult, t as CARDINALITY, tn as NotificationsMonitoringFeed, tt as DnsRecordType, u as Auth, un as PagesConfig, ut as EnsuredTunnel, v as BoardItem, vn as ResolvedCapability, vt as InspectRelayInput, w as BoardSummary, wn as SourceBranch, wt as IssueSearchFilter, x as BoardState, xn as Secrets, xt as IssueOrder, y as BoardItemInput, yn as Ruleset, yt as Issue, z as CredentialsInspection, zn as TrackerUser, zt as MonitoringAssertionSource } from "./index-nzzQsd0r.mjs";
2
- import { A as RawProviderEntry, B as ResolvedHolocronConfig, C as EslintConfig, D as MultiEntry, E as LogConfig, F as RepoSecrets, G as StorybookDeployProject, H as ResolvedProvidersConfig, I as RepoSecretsSync, J as WorkflowWithConfig, K as TaskEntryConfig, L as RepoValidationConfig, M as RepoConfig, N as RepoProperties, O as OrgConfig, P as RepoProtection, R as RepoVariables, S as EnvConfig, T as HolocronConfig, U as ResolvedTuple, V as ResolvedProviderEntry, W as SingleEntry, _ as CredentialsConfig, a as LoadedConfig, b as DocsConfig, c as TaskEntry, d as resolveConfig, f as resolveEntry, g as ChromaticProjectConfig, h as CapabilityConfigPackage, i as loadConfig, j as RawProvidersConfig, k as ProviderOptions, l as ConfigError, m as AppConfig, n as compose, o as Capability, p as resolvePluginPackage, q as TelemetryConfig, r as defineConfig, s as ComposedPreset, t as ConfigFileError, u as credentialsEnvironment, v as DevConfig, w as GitHubAppConfig, x as DoctorConfig, y as DevServeConfig, z as RepoVariablesSync } from "./config-system-u0AcPQ77.mjs";
1
+ import { $ as DnsRecord, $t as NotificationsLinksLayout, A as Cardinality, An as StatusCategory, At as Logs, B as DeployFunctionConfig, Bn as TunnelRoute, Bt as MonitoringCheck, C as BoardStatusCategory, Cn as Source, Ct as IssueRecord, D as BoardView, Dn as SourceRulesetDetail, Dt as LabelDef, E as BoardTemplateFile, En as SourceRepoInfo, Et as Issues, F as CiRunStatus, Fn as TeamPermission, Ft as MonitoringAlertChannelState, G as DeploymentProject, Gn as WikiProvisionOpts, Gt as Notifications, H as DeployScriptConfig, Hn as Vault, Ht as MonitoringHttpMethod, I as ConnectionStringOptions, In as Tooling, It as MonitoringAlertSettings, J as DeploymentTarget, Jn as Workers, Jt as NotificationsChannelLayout, K as DeploymentProjectSettings, Kn as WikiProxyConfig, Kt as NotificationsAccess, L as CreateAuthUserInput, Ln as ToolingDoctorReport, Lt as MonitoringAssertion, M as Ci, Mn as StorageBranch, Mt as Monitoring, N as CiRun, Nn as SyncResult, Nt as MonitoringAlertChannelInput, O as CapabilityImpls, On as SourceSecurity, Ot as LifecycleResult, P as CiRunFilter, Pn as TeamEntry, Pt as MonitoringAlertChannelResult, Q as Dns, Qt as NotificationsLayout, R as Credentials, Rn as TrackerDoctorReport, Rt as MonitoringAssertionComparison, S as BoardStatus, Sn as ServerInspection, St as IssuePriority, T as BoardTemplate, Tn as SourceFile, Tt as IssueSelector, U as DeployScriptResult, Un as WebhookDashboardInfo, Ut as MoveReport, V as DeployFunctionResult, Vn as Tunnels, Vt as MonitoringCheckInput, W as Deployment, Wn as Wiki, Wt as NormalizedAuthUser, X as DiscussionPatch, Xt as NotificationsEveryoneLayout, Y as DeploymentTrigger, Yt as NotificationsDelivery, Z as DiscussionPost, Zt as NotificationsForumTag, _ as BoardFieldType, _n as RepoSettings, _t as ImportResult, a as REQUIRED_CAPABILITIES, an as NotificationsPrsFeed, at as EnsureReport, b as BoardRule, bn as SecretScope, bt as IssueComment, c as AddedItem, cn as NotificationsSignedIn, ct as EnsuredDiscussion, d as AuthDescription, dn as ParseWebhookInput, dt as Environment, en as NotificationsMember, et as DnsRecordRequest, f as AuthEvent, fn as Projects, ft as EnvironmentReviewer, g as BoardField, gn as RepoRef, gt as ImportOptions, h as AuthUser, hn as RelayState, ht as ExportInfo, i as ProviderApiError, in as NotificationsPinnedLayout, it as EnsureRelayResult, j as CardinalityFor, jn as Storage, jt as LogsDataset, k as CapabilityKey, kn as SourceTeamMember, kt as LifecycleSlot, l as Analytics, ln as NotificationsWelcomeLayout, lt as EnsuredResource, m as AuthIdentity, mn as PullRequest, mt as Errors, n as ElevationRequiredError, nn as NotificationsOnboardingLayout, nt as EnsureDiscussionInput, o as WebhookVerificationError, on as NotificationsServerLayout, ot as EnsureResult, p as AuthEventType, pn as ProviderIdentity, pt as Environments, q as DeploymentRecord, qn as WorkerScriptState, qt as NotificationsApplicationLayout, r as MissingTokenError, rn as NotificationsPicture, rt as EnsureRelayInput, s as isMulti, sn as NotificationsSignIn, st as EnsureWebhookResult, t as CARDINALITY, tn as NotificationsMonitoringFeed, tt as DnsRecordType, u as Auth, un as PagesConfig, ut as EnsuredTunnel, v as BoardItem, vn as ResolvedCapability, vt as InspectRelayInput, w as BoardSummary, wn as SourceBranch, wt as IssueSearchFilter, x as BoardState, xn as Secrets, xt as IssueOrder, y as BoardItemInput, yn as Ruleset, yt as Issue, z as CredentialsInspection, zn as TrackerUser, zt as MonitoringAssertionSource } from "./index-DbptTVsV.mjs";
2
+ import { A as ProviderOptions, B as RepoVariablesSync, C as EslintConfig, D as LogConfig, E as IdeasConfig, F as RepoProtection, G as SingleEntry, H as ResolvedProviderEntry, I as RepoSecrets, J as TelemetryConfig, K as StorybookDeployProject, L as RepoSecretsSync, M as RawProvidersConfig, N as RepoConfig, O as MultiEntry, P as RepoProperties, R as RepoValidationConfig, S as EnvConfig, T as HolocronConfig, U as ResolvedProvidersConfig, V as ResolvedHolocronConfig, W as ResolvedTuple, Y as WorkflowWithConfig, _ 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 RawProviderEntry, k as OrgConfig, l as ConfigError, m as AppConfig, n as compose, o as Capability, p as resolvePluginPackage, q as TaskEntryConfig, r as defineConfig, s as ComposedPreset, t as ConfigFileError, u as credentialsEnvironment, v as DevConfig, w as GitHubAppConfig, x as DoctorConfig, y as DevServeConfig, z as RepoVariables } from "./config-system-CLi7Ceta.mjs";
3
3
  import { AuthError, ResolveTokenConfig as ResolveTokenConfig$1, ResolveTokenInput, ResolveTokenInput as ResolveTokenInput$1, resolveValue } from "@theholocron/kyber/secrets";
4
4
  import { CheckRow } from "@theholocron/kyber/ui";
5
5
  import { RequestOptions, RestClient, RestClientConfig, createRestClient } from "@theholocron/http-client";
6
6
  import "@theholocron/kyber/plugins";
7
+ import { ConnectionProbeInput as ConnectionProbeInput$1 } from "@theholocron/kyber/checks";
7
8
  import { PackageJson } from "@theholocron/pkg-utils";
8
9
  import { WorkspacePackage } from "@theholocron/astromech";
9
- import { ConnectionProbeInput as ConnectionProbeInput$1 } from "@theholocron/kyber/checks";
10
10
  import "@theholocron/observability/core";
11
11
  import { ConfigDirArea } from "@theholocron/datapad";
12
12
  /** A plugin's `verifyToken` result when the provider accepted the token. */
@@ -92,6 +92,50 @@ export declare function createResolveToken(config: ResolveTokenConfig): TokenRes
92
92
  * the operation fails with a message naming the exact variable to set and `holocron auth set`.
93
93
  */
94
94
  export declare function createFeatureResolver(config: FeatureResolverConfig): FeatureResolver;
95
+ /**
96
+ * Puts issue keys in creation order without asking the tracker: issue numbers (`#12`, `ENG-12`) rise with creation inside
97
+ * one repository or team, so the trailing number is the order. `oldest` is ascending, `newest` descending; keys with the
98
+ * same number keep their place. A key with no trailing number is an error, because nothing can be said of its age.
99
+ */
100
+ export declare function orderKeys(keys: readonly string[], order: IssueOrder): string[];
101
+ /**
102
+ * Keeps the first or last `limit` of a listing by creation time, returned oldest first. `createdAt` reads an item's
103
+ * ISO timestamp; items created in the same instant keep their listed order. The cut happens on what the listing already
104
+ * holds, so no request is spent on an item that is dropped.
105
+ */
106
+ export declare function pickByCreation<T>(items: readonly T[], createdAt: (item: T) => string, order: IssueOrder, limit: number): T[];
107
+ /** What {@link readKeysLimited} needs. */
108
+ interface ReadKeysLimitedInput<T> {
109
+ /** The issue keys to choose from. */
110
+ keys: readonly string[];
111
+ /** Which end of the creation order to take first. */
112
+ order: IssueOrder;
113
+ /** How many items to keep. */
114
+ limit: number;
115
+ /** The most issues fetched at once. */
116
+ concurrency: number;
117
+ /** Fetches one issue by key. */
118
+ fetch: (key: string) => Promise<T>;
119
+ /** Whether a fetched issue counts against the limit; false skips it without using the budget. */
120
+ keep: (item: T) => boolean;
121
+ }
122
+ /**
123
+ * Reads an explicit list of issues in creation order until `limit` of them are kept. The keys are sorted by number first
124
+ * (see {@link orderKeys}), then fetched in small steps of at most `concurrency`, each step no bigger than the places
125
+ * still open, so an issue that is later skipped (a pull request, a closed one) is replaced by the next key and nothing
126
+ * beyond the budget is fetched unless a skip made room. Within a step the fetches run together; the results keep the key
127
+ * order. The kept items come back oldest first, whichever end was chosen.
128
+ */
129
+ export declare function readKeysLimited<T>(input: ReadKeysLimitedInput<T>): Promise<T[]>;
130
+ /**
131
+ * Calls a provider's optional `onProgress` hook with how many items are done of how many. A hook that throws is
132
+ * ignored, because a progress counter must never change or stop the read or write it reports on.
133
+ *
134
+ * @param onProgress - The hook from `ExportInfo` or `ImportOptions`; nothing happens when it is not given.
135
+ * @param done - How many items are finished.
136
+ * @param total - How many items there are.
137
+ */
138
+ export declare function reportProgress(onProgress: ((done: number, total: number) => void) | undefined, done: number, total: number): void;
95
139
  /** One line a probe reports: `info` for a fact, `ok` / `fail` for a result, `heading` to title the rows that follow. */
96
140
  interface ProbeRow {
97
141
  /** `ok` or `fail` for a result, `info` for a fact, `heading` to title the rows that follow. */
@@ -161,50 +205,16 @@ interface ProviderActions {
161
205
  /** Compares what the provider's own config block declares with what exists, read-only. Optional. */
162
206
  doctor?: ProviderAction;
163
207
  }
164
- /**
165
- * Puts issue keys in creation order without asking the tracker: issue numbers (`#12`, `ENG-12`) rise with creation inside
166
- * one repository or team, so the trailing number is the order. `oldest` is ascending, `newest` descending; keys with the
167
- * same number keep their place. A key with no trailing number is an error, because nothing can be said of its age.
168
- */
169
- export declare function orderKeys(keys: readonly string[], order: IssueOrder): string[];
170
- /**
171
- * Keeps the first or last `limit` of a listing by creation time, returned oldest first. `createdAt` reads an item's
172
- * ISO timestamp; items created in the same instant keep their listed order. The cut happens on what the listing already
173
- * holds, so no request is spent on an item that is dropped.
174
- */
175
- export declare function pickByCreation<T>(items: readonly T[], createdAt: (item: T) => string, order: IssueOrder, limit: number): T[];
176
- /** What {@link readKeysLimited} needs. */
177
- interface ReadKeysLimitedInput<T> {
178
- /** The issue keys to choose from. */
179
- keys: readonly string[];
180
- /** Which end of the creation order to take first. */
181
- order: IssueOrder;
182
- /** How many items to keep. */
183
- limit: number;
184
- /** The most issues fetched at once. */
185
- concurrency: number;
186
- /** Fetches one issue by key. */
187
- fetch: (key: string) => Promise<T>;
188
- /** Whether a fetched issue counts against the limit; false skips it without using the budget. */
189
- keep: (item: T) => boolean;
208
+ /** What a connection probe needs to check a provider's host and token: kyber's input, with the plugin's `verifyToken` as `verify`. */
209
+ export interface ConnectionProbeInput extends Omit<ConnectionProbeInput$1, "verify"> {
210
+ /** The plugin's `verifyToken`: asks the provider who the token belongs to. */
211
+ verify: (token: string) => Promise<VerifyTokenResult>;
190
212
  }
191
213
  /**
192
- * Reads an explicit list of issues in creation order until `limit` of them are kept. The keys are sorted by number first
193
- * (see {@link orderKeys}), then fetched in small steps of at most `concurrency`, each step no bigger than the places
194
- * still open, so an issue that is later skipped (a pull request, a closed one) is replaced by the next key and nothing
195
- * beyond the budget is fetched unless a skip made room. Within a step the fetches run together; the results keep the key
196
- * order. The kept items come back oldest first, whichever end was chosen.
197
- */
198
- export declare function readKeysLimited<T>(input: ReadKeysLimitedInput<T>): Promise<T[]>;
199
- /**
200
- * Calls a provider's optional `onProgress` hook with how many items are done of how many. A hook that throws is
201
- * ignored, because a progress counter must never change or stop the read or write it reports on.
202
- *
203
- * @param onProgress - The hook from `ExportInfo` or `ImportOptions`; nothing happens when it is not given.
204
- * @param done - How many items are finished.
205
- * @param total - How many items there are.
214
+ * The `connection` probe every provider offers, for telling a network problem from a credential problem. The checks are
215
+ * kyber's `connectionProbe`; this types the result as the plugin system's {@link Probe} and `verify` as `VerifyTokenResult`.
206
216
  */
207
- export declare function reportProgress(onProgress: ((done: number, total: number) => void) | undefined, done: number, total: number): void;
217
+ export declare function connectionProbe(input: ConnectionProbeInput): Probe;
208
218
  interface RoleSyncOutcome {
209
219
  role: string;
210
220
  team: string;
@@ -474,14 +484,4 @@ export declare const SHARED_AREAS: readonly ["org"];
474
484
  * is a `ConfigError` naming both (no merge, no precedence). With no area files the config is returned as it was.
475
485
  */
476
486
  export declare function placeAreas(areas: ConfigDirArea[], raw: HolocronConfig): HolocronConfig;
477
- /** What a connection probe needs to check a provider's host and token: kyber's input, with the plugin's `verifyToken` as `verify`. */
478
- export interface ConnectionProbeInput extends Omit<ConnectionProbeInput$1, "verify"> {
479
- /** The plugin's `verifyToken`: asks the provider who the token belongs to. */
480
- verify: (token: string) => Promise<VerifyTokenResult>;
481
- }
482
- /**
483
- * The `connection` probe every provider offers, for telling a network problem from a credential problem. The checks are
484
- * kyber's `connectionProbe`; this types the result as the plugin system's {@link Probe} and `verify` as `VerifyTokenResult`.
485
- */
486
- export declare function connectionProbe(input: ConnectionProbeInput): Probe;
487
- export { AddedItem, Analytics, type AppConfig, Auth, AuthDescription, AuthError, AuthEvent, AuthEventType, AuthIdentity, AuthUser, BoardField, BoardFieldType, BoardItem, BoardItemInput, BoardRule, BoardState, BoardStatus, BoardStatusCategory, BoardSummary, BoardTemplate, BoardTemplateFile, BoardView, CARDINALITY, type Capability, type CapabilityConfigPackage, CapabilityImpls, CapabilityKey, Cardinality, CardinalityFor, type ChromaticProjectConfig, Ci, CiRun, CiRunFilter, CiRunStatus, type ComposedPreset, ConfigError, ConfigFileError, ConnectionStringOptions, CreateAuthUserInput, Credentials, type CredentialsConfig, CredentialsInspection, DeployFunctionConfig, DeployFunctionResult, DeployScriptConfig, DeployScriptResult, Deployment, DeploymentProject, DeploymentProjectSettings, DeploymentRecord, DeploymentTarget, DeploymentTrigger, type DeriveProfileInput, type DevConfig, type DevServeConfig, DiscussionPatch, DiscussionPost, Dns, DnsRecord, DnsRecordRequest, DnsRecordType, type DocsConfig, type DoctorConfig, ElevationRequiredError, EnsureDiscussionInput, EnsureRelayInput, EnsureRelayResult, EnsureReport, EnsureResult, EnsureWebhookResult, EnsuredDiscussion, EnsuredResource, EnsuredTunnel, type EnvConfig, Environment, EnvironmentReviewer, Environments, Errors, type EslintConfig, ExportInfo, type FeatureResolver, type FeatureResolverConfig, type GitHubAppConfig, type HolocronConfig, type HolocronProfile, ImportOptions, ImportResult, InspectRelayInput, Issue, IssueComment, IssueOrder, IssuePriority, IssueRecord, IssueSearchFilter, IssueSelector, Issues, LabelDef, 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, type PackageJsonLike, PagesConfig, ParseWebhookInput, 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 RepoSecretsSync, RepoSettings, type RepoValidationConfig, type RepoVariables, type RepoVariablesSync, type RequestOptions, type ResolveTokenConfig, type ResolveTokenInput, ResolvedCapability, type ResolvedHolocronConfig, type ResolvedProviderEntry, type ResolvedProvidersConfig, type ResolvedTuple, type RestClient, type RestClientConfig, Ruleset, SecretScope, Secrets, ServerInspection, type SingleEntry, Source, SourceBranch, SourceFile, SourceRepoInfo, SourceRulesetDetail, SourceSecurity, SourceTeamMember, StatusCategory, Storage, StorageBranch, type StorybookDeployProject, SyncResult, type SyncRolesInput, type SyncRolesResult, type TaskEntry, type TaskEntryConfig, TeamEntry, TeamPermission, type TelemetryConfig, type TokenResolver, Tooling, ToolingDoctorReport, TrackerDoctorReport, TrackerUser, TunnelRoute, Tunnels, Vault, type VerifyTokenFailure, type VerifyTokenResult, type VerifyTokenSuccess, WebhookDashboardInfo, WebhookVerificationError, Wiki, WikiProvisionOpts, WikiProxyConfig, WorkerScriptState, Workers, type WorkflowWithConfig, compose, createRestClient, credentialsEnvironment, defineConfig, isMulti, loadConfig, resolveConfig, resolveEntry, resolvePluginPackage, resolveValue };
487
+ export { AddedItem, Analytics, type AppConfig, Auth, AuthDescription, AuthError, AuthEvent, AuthEventType, AuthIdentity, AuthUser, BoardField, BoardFieldType, BoardItem, BoardItemInput, BoardRule, BoardState, BoardStatus, BoardStatusCategory, BoardSummary, BoardTemplate, BoardTemplateFile, BoardView, CARDINALITY, type Capability, type CapabilityConfigPackage, CapabilityImpls, CapabilityKey, Cardinality, CardinalityFor, type ChromaticProjectConfig, Ci, CiRun, CiRunFilter, CiRunStatus, type ComposedPreset, ConfigError, ConfigFileError, ConnectionStringOptions, CreateAuthUserInput, Credentials, type CredentialsConfig, CredentialsInspection, DeployFunctionConfig, DeployFunctionResult, DeployScriptConfig, DeployScriptResult, Deployment, DeploymentProject, DeploymentProjectSettings, DeploymentRecord, DeploymentTarget, DeploymentTrigger, type DeriveProfileInput, type DevConfig, type DevServeConfig, DiscussionPatch, DiscussionPost, Dns, DnsRecord, DnsRecordRequest, DnsRecordType, type DocsConfig, type DoctorConfig, ElevationRequiredError, EnsureDiscussionInput, EnsureRelayInput, EnsureRelayResult, EnsureReport, EnsureResult, EnsureWebhookResult, EnsuredDiscussion, EnsuredResource, EnsuredTunnel, type EnvConfig, Environment, EnvironmentReviewer, Environments, Errors, type EslintConfig, ExportInfo, type FeatureResolver, type FeatureResolverConfig, type GitHubAppConfig, type HolocronConfig, type HolocronProfile, type IdeasConfig, ImportOptions, ImportResult, InspectRelayInput, Issue, IssueComment, IssueOrder, IssuePriority, IssueRecord, IssueSearchFilter, IssueSelector, Issues, LabelDef, 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, type PackageJsonLike, PagesConfig, ParseWebhookInput, 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 RepoSecretsSync, RepoSettings, type RepoValidationConfig, type RepoVariables, type RepoVariablesSync, type RequestOptions, type ResolveTokenConfig, type ResolveTokenInput, ResolvedCapability, type ResolvedHolocronConfig, type ResolvedProviderEntry, type ResolvedProvidersConfig, type ResolvedTuple, type RestClient, type RestClientConfig, Ruleset, SecretScope, Secrets, ServerInspection, type SingleEntry, Source, SourceBranch, SourceFile, SourceRepoInfo, SourceRulesetDetail, SourceSecurity, SourceTeamMember, StatusCategory, Storage, StorageBranch, type StorybookDeployProject, SyncResult, type SyncRolesInput, type SyncRolesResult, type TaskEntry, type TaskEntryConfig, TeamEntry, TeamPermission, type TelemetryConfig, type TokenResolver, Tooling, ToolingDoctorReport, TrackerDoctorReport, TrackerUser, TunnelRoute, Tunnels, Vault, type VerifyTokenFailure, type VerifyTokenResult, type VerifyTokenSuccess, WebhookDashboardInfo, WebhookVerificationError, Wiki, WikiProvisionOpts, WikiProxyConfig, WorkerScriptState, Workers, type WorkflowWithConfig, compose, createRestClient, credentialsEnvironment, defineConfig, isMulti, loadConfig, resolveConfig, resolveEntry, resolvePluginPackage, resolveValue };
package/dist/index.mjs CHANGED
@@ -1,14 +1,14 @@
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, 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-BVYtgrmR.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-BzAs0RR1.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";
6
6
  import { errorMessage } from "@theholocron/misc-utils";
7
7
  import { createRestClient } from "@theholocron/http-client";
8
+ import { connectionProbe as connectionProbe$1 } from "@theholocron/kyber/checks";
8
9
  import { join } from "node:path";
9
10
  import { readPackageJson } from "@theholocron/pkg-utils";
10
- import { connectionProbe as connectionProbe$1 } from "@theholocron/kyber/checks";
11
- // src/auth.ts
11
+ // src/auth/auth.ts
12
12
  /**
13
13
  * The CLI's credentials: the OS keyring every plugin's bootstrap token lives in, and the two token resolvers built on
14
14
  * it. Both are public, so a plugin's `src/auth.ts` is a one-line call.
@@ -62,7 +62,7 @@ function createFeatureResolver(config) {
62
62
  keyringKey: config.keyringKey
63
63
  } });
64
64
  }
65
- // src/plugin/order-keys/order-keys.ts
65
+ // src/plugin/issues-provider/order-keys/order-keys.ts
66
66
  /**
67
67
  * Puts issue keys in creation order without asking the tracker: issue numbers (`#12`, `ENG-12`) rise with creation inside
68
68
  * one repository or team, so the trailing number is the order. `oldest` is ascending, `newest` descending; keys with the
@@ -81,7 +81,7 @@ function orderKeys(keys, order) {
81
81
  const sign = order === "newest" ? -1 : 1;
82
82
  return numbered.sort((a, b) => sign * (a.n - b.n) || a.index - b.index).map((e) => e.key);
83
83
  }
84
- // src/plugin/pick-by-creation/pick-by-creation.ts
84
+ // src/plugin/issues-provider/pick-by-creation/pick-by-creation.ts
85
85
  /**
86
86
  * Keeps the first or last `limit` of a listing by creation time, returned oldest first. `createdAt` reads an item's
87
87
  * ISO timestamp; items created in the same instant keep their listed order. The cut happens on what the listing already
@@ -95,7 +95,7 @@ function pickByCreation(items, createdAt, order, limit) {
95
95
  })).sort((a, b) => a.at - b.at || a.index - b.index).map((e) => e.item);
96
96
  return order === "newest" ? ascending.slice(Math.max(ascending.length - limit, 0)) : ascending.slice(0, limit);
97
97
  }
98
- // src/plugin/read-keys-limited/read-keys-limited.ts
98
+ // src/plugin/issues-provider/read-keys-limited/read-keys-limited.ts
99
99
  /**
100
100
  * Reads an explicit list of issues in creation order until `limit` of them are kept. The keys are sorted by number first
101
101
  * (see {@link orderKeys}), then fetched in small steps of at most `concurrency`, each step no bigger than the places
@@ -116,7 +116,7 @@ async function readKeysLimited(input) {
116
116
  }
117
117
  return order === "newest" ? kept.reverse() : kept;
118
118
  }
119
- // src/plugin/report-progress/report-progress.ts
119
+ // src/plugin/issues-provider/report-progress/report-progress.ts
120
120
  /**
121
121
  * Calls a provider's optional `onProgress` hook with how many items are done of how many. A hook that throws is
122
122
  * ignored, because a progress counter must never change or stop the read or write it reports on.
@@ -130,6 +130,14 @@ function reportProgress(onProgress, done, total) {
130
130
  onProgress?.(done, total);
131
131
  } catch {}
132
132
  }
133
+ // src/plugin/probes/connection-probe/connection-probe.ts
134
+ /**
135
+ * The `connection` probe every provider offers, for telling a network problem from a credential problem. The checks are
136
+ * kyber's `connectionProbe`; this types the result as the plugin system's {@link Probe} and `verify` as `VerifyTokenResult`.
137
+ */
138
+ function connectionProbe(input) {
139
+ return connectionProbe$1(input);
140
+ }
133
141
  // src/commands/notifications-sync-roles/links.ts
134
142
  const EMPTY_LINKS = {
135
143
  version: 1,
@@ -544,12 +552,4 @@ const CANONICAL_LABELS = [
544
552
  description: "Won't be addressed"
545
553
  }
546
554
  ];
547
- // src/plugin/connection-probe/connection-probe.ts
548
- /**
549
- * The `connection` probe every provider offers, for telling a network problem from a credential problem. The checks are
550
- * kyber's `connectionProbe`; this types the result as the plugin system's {@link Probe} and `verify` as `VerifyTokenResult`.
551
- */
552
- function connectionProbe(input) {
553
- return connectionProbe$1(input);
554
- }
555
555
  export { AuthError, CANONICAL_LABELS, 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, orderKeys, pickByCreation, placeAreas, readKeysLimited, readLinks, readWorkspacePackageJsons, reportProgress, resolveConfig, resolveEntry, resolvePluginPackage, resolveValue, roleTeamProblem, sourceProblem, syncRoles };
@@ -1,2 +1,2 @@
1
- import { $ as DnsRecord, $t as NotificationsLinksLayout, A as Cardinality, An as StatusCategory, At as Logs, B as DeployFunctionConfig, Bn as TunnelRoute, Bt as MonitoringCheck, C as BoardStatusCategory, Cn as Source, Ct as IssueRecord, D as BoardView, Dn as SourceRulesetDetail, Dt as LabelDef, E as BoardTemplateFile, En as SourceRepoInfo, Et as Issues, F as CiRunStatus, Fn as TeamPermission, Ft as MonitoringAlertChannelState, G as DeploymentProject, Gn as WikiProvisionOpts, Gt as Notifications, H as DeployScriptConfig, Hn as Vault, Ht as MonitoringHttpMethod, I as ConnectionStringOptions, In as Tooling, It as MonitoringAlertSettings, J as DeploymentTarget, Jn as Workers, Jt as NotificationsChannelLayout, K as DeploymentProjectSettings, Kn as WikiProxyConfig, Kt as NotificationsAccess, L as CreateAuthUserInput, Ln as ToolingDoctorReport, Lt as MonitoringAssertion, M as Ci, Mn as StorageBranch, Mt as Monitoring, N as CiRun, Nn as SyncResult, Nt as MonitoringAlertChannelInput, O as CapabilityImpls, On as SourceSecurity, Ot as LifecycleResult, P as CiRunFilter, Pn as TeamEntry, Pt as MonitoringAlertChannelResult, Q as Dns, Qt as NotificationsLayout, R as Credentials, Rn as TrackerDoctorReport, Rt as MonitoringAssertionComparison, S as BoardStatus, Sn as ServerInspection, St as IssuePriority, T as BoardTemplate, Tn as SourceFile, Tt as IssueSelector, U as DeployScriptResult, Un as WebhookDashboardInfo, Ut as MoveReport, V as DeployFunctionResult, Vn as Tunnels, Vt as MonitoringCheckInput, W as Deployment, Wn as Wiki, Wt as NormalizedAuthUser, X as DiscussionPatch, Xt as NotificationsEveryoneLayout, Y as DeploymentTrigger, Yt as NotificationsDelivery, Z as DiscussionPost, Zt as NotificationsForumTag, _ as BoardFieldType, _n as RepoSettings, _t as ImportResult, a as REQUIRED_CAPABILITIES, an as NotificationsPrsFeed, at as EnsureReport, b as BoardRule, bn as SecretScope, bt as IssueComment, c as AddedItem, cn as NotificationsSignedIn, ct as EnsuredDiscussion, d as AuthDescription, dn as ParseWebhookInput, dt as Environment, en as NotificationsMember, et as DnsRecordRequest, f as AuthEvent, fn as Projects, ft as EnvironmentReviewer, g as BoardField, gn as RepoRef, gt as ImportOptions, h as AuthUser, hn as RelayState, ht as ExportInfo, i as ProviderApiError, in as NotificationsPinnedLayout, it as EnsureRelayResult, j as CardinalityFor, jn as Storage, jt as LogsDataset, k as CapabilityKey, kn as SourceTeamMember, kt as LifecycleSlot, l as Analytics, ln as NotificationsWelcomeLayout, lt as EnsuredResource, m as AuthIdentity, mn as PullRequest, mt as Errors, n as ElevationRequiredError, nn as NotificationsOnboardingLayout, nt as EnsureDiscussionInput, o as WebhookVerificationError, on as NotificationsServerLayout, ot as EnsureResult, p as AuthEventType, pn as ProviderIdentity, pt as Environments, q as DeploymentRecord, qn as WorkerScriptState, qt as NotificationsApplicationLayout, r as MissingTokenError, rn as NotificationsPicture, rt as EnsureRelayInput, s as isMulti, sn as NotificationsSignIn, st as EnsureWebhookResult, t as CARDINALITY, tn as NotificationsMonitoringFeed, tt as DnsRecordType, u as Auth, un as PagesConfig, ut as EnsuredTunnel, v as BoardItem, vn as ResolvedCapability, vt as InspectRelayInput, w as BoardSummary, wn as SourceBranch, wt as IssueSearchFilter, x as BoardState, xn as Secrets, xt as IssueOrder, y as BoardItemInput, yn as Ruleset, yt as Issue, z as CredentialsInspection, zn as TrackerUser, zt as MonitoringAssertionSource } from "../index-nzzQsd0r.mjs";
1
+ import { $ as DnsRecord, $t as NotificationsLinksLayout, A as Cardinality, An as StatusCategory, At as Logs, B as DeployFunctionConfig, Bn as TunnelRoute, Bt as MonitoringCheck, C as BoardStatusCategory, Cn as Source, Ct as IssueRecord, D as BoardView, Dn as SourceRulesetDetail, Dt as LabelDef, E as BoardTemplateFile, En as SourceRepoInfo, Et as Issues, F as CiRunStatus, Fn as TeamPermission, Ft as MonitoringAlertChannelState, G as DeploymentProject, Gn as WikiProvisionOpts, Gt as Notifications, H as DeployScriptConfig, Hn as Vault, Ht as MonitoringHttpMethod, I as ConnectionStringOptions, In as Tooling, It as MonitoringAlertSettings, J as DeploymentTarget, Jn as Workers, Jt as NotificationsChannelLayout, K as DeploymentProjectSettings, Kn as WikiProxyConfig, Kt as NotificationsAccess, L as CreateAuthUserInput, Ln as ToolingDoctorReport, Lt as MonitoringAssertion, M as Ci, Mn as StorageBranch, Mt as Monitoring, N as CiRun, Nn as SyncResult, Nt as MonitoringAlertChannelInput, O as CapabilityImpls, On as SourceSecurity, Ot as LifecycleResult, P as CiRunFilter, Pn as TeamEntry, Pt as MonitoringAlertChannelResult, Q as Dns, Qt as NotificationsLayout, R as Credentials, Rn as TrackerDoctorReport, Rt as MonitoringAssertionComparison, S as BoardStatus, Sn as ServerInspection, St as IssuePriority, T as BoardTemplate, Tn as SourceFile, Tt as IssueSelector, U as DeployScriptResult, Un as WebhookDashboardInfo, Ut as MoveReport, V as DeployFunctionResult, Vn as Tunnels, Vt as MonitoringCheckInput, W as Deployment, Wn as Wiki, Wt as NormalizedAuthUser, X as DiscussionPatch, Xt as NotificationsEveryoneLayout, Y as DeploymentTrigger, Yt as NotificationsDelivery, Z as DiscussionPost, Zt as NotificationsForumTag, _ as BoardFieldType, _n as RepoSettings, _t as ImportResult, a as REQUIRED_CAPABILITIES, an as NotificationsPrsFeed, at as EnsureReport, b as BoardRule, bn as SecretScope, bt as IssueComment, c as AddedItem, cn as NotificationsSignedIn, ct as EnsuredDiscussion, d as AuthDescription, dn as ParseWebhookInput, dt as Environment, en as NotificationsMember, et as DnsRecordRequest, f as AuthEvent, fn as Projects, ft as EnvironmentReviewer, g as BoardField, gn as RepoRef, gt as ImportOptions, h as AuthUser, hn as RelayState, ht as ExportInfo, i as ProviderApiError, in as NotificationsPinnedLayout, it as EnsureRelayResult, j as CardinalityFor, jn as Storage, jt as LogsDataset, k as CapabilityKey, kn as SourceTeamMember, kt as LifecycleSlot, l as Analytics, ln as NotificationsWelcomeLayout, lt as EnsuredResource, m as AuthIdentity, mn as PullRequest, mt as Errors, n as ElevationRequiredError, nn as NotificationsOnboardingLayout, nt as EnsureDiscussionInput, o as WebhookVerificationError, on as NotificationsServerLayout, ot as EnsureResult, p as AuthEventType, pn as ProviderIdentity, pt as Environments, q as DeploymentRecord, qn as WorkerScriptState, qt as NotificationsApplicationLayout, r as MissingTokenError, rn as NotificationsPicture, rt as EnsureRelayInput, s as isMulti, sn as NotificationsSignIn, st as EnsureWebhookResult, t as CARDINALITY, tn as NotificationsMonitoringFeed, tt as DnsRecordType, u as Auth, un as PagesConfig, ut as EnsuredTunnel, v as BoardItem, vn as ResolvedCapability, vt as InspectRelayInput, w as BoardSummary, wn as SourceBranch, wt as IssueSearchFilter, x as BoardState, xn as Secrets, xt as IssueOrder, y as BoardItemInput, yn as Ruleset, yt as Issue, z as CredentialsInspection, zn as TrackerUser, zt as MonitoringAssertionSource } from "../index-DbptTVsV.mjs";
2
2
  export { AddedItem, Analytics, Auth, AuthDescription, AuthEvent, AuthEventType, AuthIdentity, AuthUser, BoardField, BoardFieldType, BoardItem, BoardItemInput, 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, ExportInfo, 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, 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, SyncResult, 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-u0AcPQ77.mjs";
1
+ import { n as compose, o as Capability, s as ComposedPreset } from "./config-system-CLi7Ceta.mjs";
2
2
  /** Options for the audit capability. */
3
3
  interface AuditOptions {
4
4
  /** Enable Knip unused-export analysis (default: false). */
package/dist/presets.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { n as compose } from "./config-system-BVYtgrmR.mjs";
1
+ import { n as compose } from "./config-system-BzAs0RR1.mjs";
2
2
  import { DEFAULT_ORG } from "@theholocron/astromech";
3
3
  // src/presets/capabilities/audit.ts
4
4
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/cli",
3
- "version": "5.0.0-alpha.393",
3
+ "version": "5.0.0-alpha.395",
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,19 +59,19 @@
59
59
  "posthog-node": "^5.61.2",
60
60
  "tsx": "4.23.15",
61
61
  "yargs": "^18.1.0",
62
- "@theholocron/dagobah": "5.0.0-alpha.393",
63
- "@theholocron/astromech": "5.0.0-alpha.393",
64
- "@theholocron/env-utils": "^1.17.0-alpha.3",
62
+ "@theholocron/astromech": "5.0.0-alpha.395",
63
+ "@theholocron/datapad": "5.0.0-alpha.395",
64
+ "@theholocron/dagobah": "5.0.0-alpha.395",
65
65
  "@theholocron/fs-utils": "^1.17.0-alpha.3",
66
- "@theholocron/http-client": "^1.58.0-alpha.25",
66
+ "@theholocron/env-utils": "^1.17.0-alpha.3",
67
67
  "@theholocron/git-utils": "^1.17.0-alpha.3",
68
+ "@theholocron/github-client": "^1.58.0-alpha.27",
69
+ "@theholocron/http-client": "^1.58.0-alpha.27",
68
70
  "@theholocron/json-utils": "^1.17.0-alpha.3",
69
- "@theholocron/github-client": "^1.58.0-alpha.25",
70
- "@theholocron/kyber": "5.0.0-alpha.393",
71
+ "@theholocron/kyber": "5.0.0-alpha.395",
71
72
  "@theholocron/misc-utils": "^1.17.0-alpha.3",
72
- "@theholocron/datapad": "5.0.0-alpha.393",
73
- "@theholocron/observability": "^0.7.0-alpha.3",
74
- "@theholocron/pkg-utils": "^1.17.0-alpha.3"
73
+ "@theholocron/pkg-utils": "^1.17.0-alpha.3",
74
+ "@theholocron/observability": "^0.7.0-alpha.3"
75
75
  },
76
76
  "devDependencies": {
77
77
  "@types/node": "^26",
@@ -85,9 +85,9 @@
85
85
  "typescript": "^5.9.3",
86
86
  "vitest": "^5.1.0",
87
87
  "@theholocron/eslint-config": "^8.9.0-alpha.15",
88
+ "@theholocron/vitest-config": "^8.9.0-alpha.15",
88
89
  "@theholocron/rollup-plugin-transform-template": "^8.9.0-alpha.15",
89
- "@theholocron/tsconfig": "^8.9.0-alpha.15",
90
- "@theholocron/vitest-config": "^8.9.0-alpha.15"
90
+ "@theholocron/tsconfig": "^8.9.0-alpha.15"
91
91
  },
92
92
  "engines": {
93
93
  "node": ">=22.0.0"
@@ -99,6 +99,7 @@
99
99
  "build": "tsdown",
100
100
  "lint:code": "eslint .",
101
101
  "start": "node ./dist/cli.mjs",
102
+ "start:source": "tsx --import ./src/source-run/register.ts ./src/cli/cli.ts",
102
103
  "test:unit": "vitest run --coverage",
103
104
  "test:watch": "vitest",
104
105
  "typecheck": "tsc --noEmit"