@theholocron/cli 5.0.0-alpha.380 → 5.0.0-alpha.381

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { jn as TeamEntry, k as CapabilityKey, sn as PagesConfig } from "./index-u4KtcSYw.mjs";
1
+ import { Nn as TeamEntry, k as CapabilityKey, ln as PagesConfig } from "./index-BU3l3vpX.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";
@@ -650,6 +650,24 @@ interface IssueSelector {
650
650
  openOnly?: boolean;
651
651
  /** Leave out issues last changed before this moment, as an ISO timestamp. */
652
652
  since?: string;
653
+ /**
654
+ * Read at most this many issues, a positive integer, counted after `openOnly`, `since` and the skipping of pull
655
+ * requests, so those filters never use up the budget. Which ones is decided by `order`. Without it, every issue the
656
+ * rest of the selector names is read.
657
+ */
658
+ limit?: number;
659
+ /**
660
+ * With `limit`, which end of the creation order is kept: `oldest` (the default) the first created, `newest` the last
661
+ * created. The records come back oldest first either way. Without `limit` it has no effect.
662
+ */
663
+ order?: IssueOrder;
664
+ }
665
+ /** Which end of the creation order a limited {@link Issues.export} keeps: the first-created or the last-created issues. */
666
+ type IssueOrder = "oldest" | "newest";
667
+ /** What {@link Issues.export} reports back about the selection, through its optional second argument. */
668
+ interface ExportInfo {
669
+ /** How many issues the selection matched before `limit` cut it, when the provider knows; for a list of keys, how many keys. */
670
+ matched?: number;
653
671
  }
654
672
  /** What {@link Issues.import} needs besides the records. */
655
673
  interface ImportOptions {
@@ -703,7 +721,7 @@ interface Issues extends ProviderIdentity {
703
721
  /** Check the tracker connection and how the lifecycle slots map onto the tracker's statuses. */
704
722
  doctor(): Promise<TrackerDoctorReport>;
705
723
  /** Read issues with everything a migration carries. Optional: a provider that cannot be migrated from leaves it out. */
706
- export?(selector: IssueSelector): Promise<IssueRecord[]>;
724
+ export?(selector: IssueSelector, info?: ExportInfo): Promise<IssueRecord[]>;
707
725
  /**
708
726
  * Make the records in this tracker, with their comments, labels, priority and state, and record each one's source
709
727
  * address so a second run skips what exists. Two passes: every record is made first, then the `parent` and
@@ -2863,4 +2881,4 @@ declare class WebhookVerificationError extends Error {
2863
2881
  }
2864
2882
  /** Whether `key` is a capability that can have several providers active at once. */
2865
2883
  declare function isMulti<K extends CapabilityKey>(key: K): CardinalityFor<K> extends "many" ? true : false;
2866
- export { DnsRecord as $, NotificationsOnboardingLayout as $t, Cardinality as A, SyncResult as An, MonitoringAlertChannelInput as At, DeployFunctionConfig as B, WebhookDashboardInfo as Bn, MoveReport as Bt, BoardStatusCategory as C, SourceRepoInfo as Cn, IssueSelector as Ct, BoardView as D, StatusCategory as Dn, LifecycleSlot as Dt, BoardTemplateFile as E, SourceTeamMember as En, LifecycleResult as Et, CiRunStatus as F, TrackerDoctorReport as Fn, MonitoringAssertionComparison as Ft, DeploymentProject as G, Workers as Gn, NotificationsChannelLayout as Gt, DeployScriptConfig as H, WikiProvisionOpts as Hn, Notifications as Ht, ConnectionStringOptions as I, TrackerUser as In, MonitoringAssertionSource as It, DeploymentTarget as J, NotificationsForumTag as Jt, DeploymentProjectSettings as K, NotificationsDelivery as Kt, CreateAuthUserInput as L, TunnelRoute as Ln, MonitoringCheck as Lt, Ci as M, TeamPermission as Mn, MonitoringAlertChannelState as Mt, CiRun as N, Tooling as Nn, MonitoringAlertSettings as Nt, CapabilityImpls as O, Storage as On, Logs as Ot, CiRunFilter as P, ToolingDoctorReport as Pn, MonitoringAssertion as Pt, Dns as Q, NotificationsMonitoringFeed as Qt, Credentials as R, Tunnels as Rn, MonitoringCheckInput as Rt, BoardStatus as S, SourceFile as Sn, IssueSearchFilter as St, BoardTemplate as T, SourceSecurity as Tn, LabelDef as Tt, DeployScriptResult as U, WikiProxyConfig as Un, NotificationsAccess as Ut, DeployFunctionResult as V, Wiki as Vn, NormalizedAuthUser as Vt, Deployment as W, WorkerScriptState as Wn, NotificationsApplicationLayout as Wt, DiscussionPatch as X, NotificationsLinksLayout as Xt, DeploymentTrigger as Y, NotificationsLayout as Yt, DiscussionPost as Z, NotificationsMember as Zt, BoardFieldType as _, SecretScope as _n, InspectRelayInput as _t, REQUIRED_CAPABILITIES as a, NotificationsSignedIn as an, EnsureReport as at, BoardRule as b, Source as bn, IssuePriority as bt, AddedItem as c, ParseWebhookInput as cn, EnsuredDiscussion as ct, AuthDescription as d, PullRequest as dn, Environment as dt, NotificationsPicture as en, DnsRecordRequest as et, AuthEvent as f, RelayState as fn, EnvironmentReviewer as ft, BoardField as g, Ruleset as gn, ImportResult as gt, AuthUser as h, ResolvedCapability as hn, ImportOptions as ht, ProviderApiError as i, NotificationsSignIn as in, EnsureRelayResult as it, CardinalityFor as j, TeamEntry as jn, MonitoringAlertChannelResult as jt, CapabilityKey as k, StorageBranch as kn, Monitoring as kt, Analytics as l, Projects as ln, EnsuredResource as lt, AuthIdentity as m, RepoSettings as mn, Errors as mt, ElevationRequiredError as n, NotificationsPrsFeed as nn, EnsureDiscussionInput as nt, WebhookVerificationError as o, NotificationsWelcomeLayout as on, EnsureResult as ot, AuthEventType as p, RepoRef as pn, Environments as pt, DeploymentRecord as q, NotificationsEveryoneLayout as qt, MissingTokenError as r, NotificationsServerLayout as rn, EnsureRelayInput as rt, isMulti as s, PagesConfig as sn, EnsureWebhookResult as st, CARDINALITY as t, NotificationsPinnedLayout as tn, DnsRecordType as tt, Auth as u, ProviderIdentity as un, EnsuredTunnel as ut, BoardItem as v, Secrets as vn, Issue as vt, BoardSummary as w, SourceRulesetDetail as wn, Issues as wt, BoardState as x, SourceBranch as xn, IssueRecord as xt, BoardItemInput as y, ServerInspection as yn, IssueComment as yt, CredentialsInspection as z, Vault as zn, MonitoringHttpMethod as zt };
2884
+ export { DnsRecord as $, NotificationsMember as $t, Cardinality as A, Storage as An, Logs as At, DeployFunctionConfig as B, Tunnels as Bn, MonitoringCheckInput as Bt, BoardStatusCategory as C, SourceBranch as Cn, IssueRecord as Ct, BoardView as D, SourceSecurity as Dn, LabelDef as Dt, BoardTemplateFile as E, SourceRulesetDetail as En, Issues as Et, CiRunStatus as F, Tooling as Fn, MonitoringAlertSettings as Ft, DeploymentProject as G, WikiProxyConfig as Gn, NotificationsAccess as Gt, DeployScriptConfig as H, WebhookDashboardInfo as Hn, MoveReport as Ht, ConnectionStringOptions as I, ToolingDoctorReport as In, MonitoringAssertion as It, DeploymentTarget as J, NotificationsDelivery as Jt, DeploymentProjectSettings as K, WorkerScriptState as Kn, NotificationsApplicationLayout as Kt, CreateAuthUserInput as L, TrackerDoctorReport as Ln, MonitoringAssertionComparison as Lt, Ci as M, SyncResult as Mn, MonitoringAlertChannelInput as Mt, CiRun as N, TeamEntry as Nn, MonitoringAlertChannelResult as Nt, CapabilityImpls as O, SourceTeamMember as On, LifecycleResult as Ot, CiRunFilter as P, TeamPermission as Pn, MonitoringAlertChannelState as Pt, Dns as Q, NotificationsLinksLayout as Qt, Credentials as R, TrackerUser as Rn, MonitoringAssertionSource as Rt, BoardStatus as S, Source as Sn, IssuePriority as St, BoardTemplate as T, SourceRepoInfo as Tn, IssueSelector as Tt, DeployScriptResult as U, Wiki as Un, NormalizedAuthUser as Ut, DeployFunctionResult as V, Vault as Vn, MonitoringHttpMethod as Vt, Deployment as W, WikiProvisionOpts as Wn, Notifications as Wt, DiscussionPatch as X, NotificationsForumTag as Xt, DeploymentTrigger as Y, NotificationsEveryoneLayout as Yt, DiscussionPost as Z, NotificationsLayout as Zt, BoardFieldType as _, ResolvedCapability as _n, ImportResult as _t, REQUIRED_CAPABILITIES as a, NotificationsServerLayout as an, EnsureReport as at, BoardRule as b, Secrets as bn, IssueComment as bt, AddedItem as c, NotificationsWelcomeLayout as cn, EnsuredDiscussion as ct, AuthDescription as d, Projects as dn, Environment as dt, NotificationsMonitoringFeed as en, DnsRecordRequest as et, AuthEvent as f, ProviderIdentity as fn, EnvironmentReviewer as ft, BoardField as g, RepoSettings as gn, ImportOptions as gt, AuthUser as h, RepoRef as hn, ExportInfo as ht, ProviderApiError as i, NotificationsPrsFeed as in, EnsureRelayResult as it, CardinalityFor as j, StorageBranch as jn, Monitoring as jt, CapabilityKey as k, StatusCategory as kn, LifecycleSlot as kt, Analytics as l, PagesConfig as ln, EnsuredResource as lt, AuthIdentity as m, RelayState as mn, Errors as mt, ElevationRequiredError as n, NotificationsPicture as nn, EnsureDiscussionInput as nt, WebhookVerificationError as o, NotificationsSignIn as on, EnsureResult as ot, AuthEventType as p, PullRequest as pn, Environments as pt, DeploymentRecord as q, Workers as qn, NotificationsChannelLayout as qt, MissingTokenError as r, NotificationsPinnedLayout as rn, EnsureRelayInput as rt, isMulti as s, NotificationsSignedIn as sn, EnsureWebhookResult as st, CARDINALITY as t, NotificationsOnboardingLayout as tn, DnsRecordType as tt, Auth as u, ParseWebhookInput as un, EnsuredTunnel as ut, BoardItem as v, Ruleset as vn, InspectRelayInput as vt, BoardSummary as w, SourceFile as wn, IssueSearchFilter as wt, BoardState as x, ServerInspection as xn, IssueOrder as xt, BoardItemInput as y, SecretScope as yn, Issue as yt, CredentialsInspection as z, TunnelRoute as zn, MonitoringCheck as zt };
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { $ as DnsRecord, $t as NotificationsOnboardingLayout, A as Cardinality, An as SyncResult, At as MonitoringAlertChannelInput, B as DeployFunctionConfig, Bn as WebhookDashboardInfo, Bt as MoveReport, C as BoardStatusCategory, Cn as SourceRepoInfo, Ct as IssueSelector, D as BoardView, Dn as StatusCategory, Dt as LifecycleSlot, E as BoardTemplateFile, En as SourceTeamMember, Et as LifecycleResult, F as CiRunStatus, Fn as TrackerDoctorReport, Ft as MonitoringAssertionComparison, G as DeploymentProject, Gn as Workers, Gt as NotificationsChannelLayout, H as DeployScriptConfig, Hn as WikiProvisionOpts, Ht as Notifications, I as ConnectionStringOptions, In as TrackerUser, It as MonitoringAssertionSource, J as DeploymentTarget, Jt as NotificationsForumTag, K as DeploymentProjectSettings, Kt as NotificationsDelivery, L as CreateAuthUserInput, Ln as TunnelRoute, Lt as MonitoringCheck, M as Ci, Mn as TeamPermission, Mt as MonitoringAlertChannelState, N as CiRun, Nn as Tooling, Nt as MonitoringAlertSettings, O as CapabilityImpls, On as Storage, Ot as Logs, P as CiRunFilter, Pn as ToolingDoctorReport, Pt as MonitoringAssertion, Q as Dns, Qt as NotificationsMonitoringFeed, R as Credentials, Rn as Tunnels, Rt as MonitoringCheckInput, S as BoardStatus, Sn as SourceFile, St as IssueSearchFilter, T as BoardTemplate, Tn as SourceSecurity, Tt as LabelDef, U as DeployScriptResult, Un as WikiProxyConfig, Ut as NotificationsAccess, V as DeployFunctionResult, Vn as Wiki, Vt as NormalizedAuthUser, W as Deployment, Wn as WorkerScriptState, Wt as NotificationsApplicationLayout, X as DiscussionPatch, Xt as NotificationsLinksLayout, Y as DeploymentTrigger, Yt as NotificationsLayout, Z as DiscussionPost, Zt as NotificationsMember, _ as BoardFieldType, _n as SecretScope, _t as InspectRelayInput, a as REQUIRED_CAPABILITIES, an as NotificationsSignedIn, at as EnsureReport, b as BoardRule, bn as Source, bt as IssuePriority, c as AddedItem, cn as ParseWebhookInput, ct as EnsuredDiscussion, d as AuthDescription, dn as PullRequest, dt as Environment, en as NotificationsPicture, et as DnsRecordRequest, f as AuthEvent, fn as RelayState, ft as EnvironmentReviewer, g as BoardField, gn as Ruleset, gt as ImportResult, h as AuthUser, hn as ResolvedCapability, ht as ImportOptions, i as ProviderApiError, in as NotificationsSignIn, it as EnsureRelayResult, j as CardinalityFor, jn as TeamEntry, jt as MonitoringAlertChannelResult, k as CapabilityKey, kn as StorageBranch, kt as Monitoring, l as Analytics, ln as Projects, lt as EnsuredResource, m as AuthIdentity, mn as RepoSettings, mt as Errors, n as ElevationRequiredError, nn as NotificationsPrsFeed, nt as EnsureDiscussionInput, o as WebhookVerificationError, on as NotificationsWelcomeLayout, ot as EnsureResult, p as AuthEventType, pn as RepoRef, pt as Environments, q as DeploymentRecord, qt as NotificationsEveryoneLayout, r as MissingTokenError, rn as NotificationsServerLayout, rt as EnsureRelayInput, s as isMulti, sn as PagesConfig, st as EnsureWebhookResult, t as CARDINALITY, tn as NotificationsPinnedLayout, tt as DnsRecordType, u as Auth, un as ProviderIdentity, ut as EnsuredTunnel, v as BoardItem, vn as Secrets, vt as Issue, w as BoardSummary, wn as SourceRulesetDetail, wt as Issues, x as BoardState, xn as SourceBranch, xt as IssueRecord, y as BoardItemInput, yn as ServerInspection, yt as IssueComment, z as CredentialsInspection, zn as Vault, zt as MonitoringHttpMethod } from "./index-u4KtcSYw.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-BF4CMxY8.mjs";
1
+ import { $ as DnsRecord, $t as NotificationsMember, A as Cardinality, An as Storage, At as Logs, B as DeployFunctionConfig, Bn as Tunnels, Bt as MonitoringCheckInput, C as BoardStatusCategory, Cn as SourceBranch, Ct as IssueRecord, D as BoardView, Dn as SourceSecurity, Dt as LabelDef, E as BoardTemplateFile, En as SourceRulesetDetail, Et as Issues, F as CiRunStatus, Fn as Tooling, Ft as MonitoringAlertSettings, G as DeploymentProject, Gn as WikiProxyConfig, Gt as NotificationsAccess, H as DeployScriptConfig, Hn as WebhookDashboardInfo, Ht as MoveReport, I as ConnectionStringOptions, In as ToolingDoctorReport, It as MonitoringAssertion, J as DeploymentTarget, Jt as NotificationsDelivery, K as DeploymentProjectSettings, Kn as WorkerScriptState, Kt as NotificationsApplicationLayout, L as CreateAuthUserInput, Ln as TrackerDoctorReport, Lt as MonitoringAssertionComparison, M as Ci, Mn as SyncResult, Mt as MonitoringAlertChannelInput, N as CiRun, Nn as TeamEntry, Nt as MonitoringAlertChannelResult, O as CapabilityImpls, On as SourceTeamMember, Ot as LifecycleResult, P as CiRunFilter, Pn as TeamPermission, Pt as MonitoringAlertChannelState, Q as Dns, Qt as NotificationsLinksLayout, R as Credentials, Rn as TrackerUser, Rt as MonitoringAssertionSource, S as BoardStatus, Sn as Source, St as IssuePriority, T as BoardTemplate, Tn as SourceRepoInfo, Tt as IssueSelector, U as DeployScriptResult, Un as Wiki, Ut as NormalizedAuthUser, V as DeployFunctionResult, Vn as Vault, Vt as MonitoringHttpMethod, W as Deployment, Wn as WikiProvisionOpts, Wt as Notifications, X as DiscussionPatch, Xt as NotificationsForumTag, Y as DeploymentTrigger, Yt as NotificationsEveryoneLayout, Z as DiscussionPost, Zt as NotificationsLayout, _ as BoardFieldType, _n as ResolvedCapability, _t as ImportResult, a as REQUIRED_CAPABILITIES, an as NotificationsServerLayout, at as EnsureReport, b as BoardRule, bn as Secrets, bt as IssueComment, c as AddedItem, cn as NotificationsWelcomeLayout, ct as EnsuredDiscussion, d as AuthDescription, dn as Projects, dt as Environment, en as NotificationsMonitoringFeed, et as DnsRecordRequest, f as AuthEvent, fn as ProviderIdentity, ft as EnvironmentReviewer, g as BoardField, gn as RepoSettings, gt as ImportOptions, h as AuthUser, hn as RepoRef, ht as ExportInfo, i as ProviderApiError, in as NotificationsPrsFeed, it as EnsureRelayResult, j as CardinalityFor, jn as StorageBranch, jt as Monitoring, k as CapabilityKey, kn as StatusCategory, kt as LifecycleSlot, l as Analytics, ln as PagesConfig, lt as EnsuredResource, m as AuthIdentity, mn as RelayState, mt as Errors, n as ElevationRequiredError, nn as NotificationsPicture, nt as EnsureDiscussionInput, o as WebhookVerificationError, on as NotificationsSignIn, ot as EnsureResult, p as AuthEventType, pn as PullRequest, pt as Environments, q as DeploymentRecord, qn as Workers, qt as NotificationsChannelLayout, r as MissingTokenError, rn as NotificationsPinnedLayout, rt as EnsureRelayInput, s as isMulti, sn as NotificationsSignedIn, st as EnsureWebhookResult, t as CARDINALITY, tn as NotificationsOnboardingLayout, tt as DnsRecordType, u as Auth, un as ParseWebhookInput, ut as EnsuredTunnel, v as BoardItem, vn as Ruleset, vt as InspectRelayInput, w as BoardSummary, wn as SourceFile, wt as IssueSearchFilter, x as BoardState, xn as ServerInspection, xt as IssueOrder, y as BoardItemInput, yn as SecretScope, yt as Issue, z as CredentialsInspection, zn as TunnelRoute, zt as MonitoringCheck } from "./index-BU3l3vpX.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-BuzBMJRw.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";
@@ -161,6 +161,41 @@ interface ProviderActions {
161
161
  /** Compares what the provider's own config block declares with what exists, read-only. Optional. */
162
162
  doctor?: ProviderAction;
163
163
  }
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;
190
+ }
191
+ /**
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[]>;
164
199
  interface RoleSyncOutcome {
165
200
  role: string;
166
201
  team: string;
@@ -440,4 +475,4 @@ export interface ConnectionProbeInput extends Omit<ConnectionProbeInput$1, "veri
440
475
  * kyber's `connectionProbe`; this types the result as the plugin system's {@link Probe} and `verify` as `VerifyTokenResult`.
441
476
  */
442
477
  export declare function connectionProbe(input: ConnectionProbeInput): Probe;
443
- 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, type FeatureResolver, type FeatureResolverConfig, type GitHubAppConfig, type HolocronConfig, type HolocronProfile, ImportOptions, ImportResult, InspectRelayInput, Issue, IssueComment, IssuePriority, IssueRecord, IssueSearchFilter, IssueSelector, Issues, LabelDef, LifecycleResult, LifecycleSlot, type LinksFile, type LoadedConfig, type LogConfig, Logs, 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, 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 };
478
+ 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, 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
@@ -62,6 +62,60 @@ function createFeatureResolver(config) {
62
62
  keyringKey: config.keyringKey
63
63
  } });
64
64
  }
65
+ // src/plugin/order-keys/order-keys.ts
66
+ /**
67
+ * Puts issue keys in creation order without asking the tracker: issue numbers (`#12`, `ENG-12`) rise with creation inside
68
+ * one repository or team, so the trailing number is the order. `oldest` is ascending, `newest` descending; keys with the
69
+ * same number keep their place. A key with no trailing number is an error, because nothing can be said of its age.
70
+ */
71
+ function orderKeys(keys, order) {
72
+ const numbered = keys.map((key, index) => {
73
+ const match = /(\d+)\s*$/.exec(key);
74
+ if (!match) throw new Error(`Cannot order "${key}" by creation: it has no issue number.`);
75
+ return {
76
+ key,
77
+ index,
78
+ n: Number(match[1])
79
+ };
80
+ });
81
+ const sign = order === "newest" ? -1 : 1;
82
+ return numbered.sort((a, b) => sign * (a.n - b.n) || a.index - b.index).map((e) => e.key);
83
+ }
84
+ // src/plugin/pick-by-creation/pick-by-creation.ts
85
+ /**
86
+ * Keeps the first or last `limit` of a listing by creation time, returned oldest first. `createdAt` reads an item's
87
+ * ISO timestamp; items created in the same instant keep their listed order. The cut happens on what the listing already
88
+ * holds, so no request is spent on an item that is dropped.
89
+ */
90
+ function pickByCreation(items, createdAt, order, limit) {
91
+ const ascending = items.map((item, index) => ({
92
+ item,
93
+ index,
94
+ at: Date.parse(createdAt(item))
95
+ })).sort((a, b) => a.at - b.at || a.index - b.index).map((e) => e.item);
96
+ return order === "newest" ? ascending.slice(Math.max(ascending.length - limit, 0)) : ascending.slice(0, limit);
97
+ }
98
+ // src/plugin/read-keys-limited/read-keys-limited.ts
99
+ /**
100
+ * Reads an explicit list of issues in creation order until `limit` of them are kept. The keys are sorted by number first
101
+ * (see {@link orderKeys}), then fetched in small steps of at most `concurrency`, each step no bigger than the places
102
+ * still open, so an issue that is later skipped (a pull request, a closed one) is replaced by the next key and nothing
103
+ * beyond the budget is fetched unless a skip made room. Within a step the fetches run together; the results keep the key
104
+ * order. The kept items come back oldest first, whichever end was chosen.
105
+ */
106
+ async function readKeysLimited(input) {
107
+ const { keys, order, limit, concurrency, fetch, keep } = input;
108
+ const ordered = orderKeys(keys, order);
109
+ const kept = [];
110
+ let next = 0;
111
+ while (kept.length < limit && next < ordered.length) {
112
+ const step = ordered.slice(next, next + Math.min(concurrency, limit - kept.length));
113
+ next += step.length;
114
+ const fetched = await Promise.all(step.map((key) => fetch(key)));
115
+ for (const item of fetched) if (keep(item)) kept.push(item);
116
+ }
117
+ return order === "newest" ? kept.reverse() : kept;
118
+ }
65
119
  // src/commands/notifications-sync-roles/links.ts
66
120
  const EMPTY_LINKS = {
67
121
  version: 1,
@@ -484,4 +538,4 @@ const CANONICAL_LABELS = [
484
538
  function connectionProbe(input) {
485
539
  return connectionProbe$1(input);
486
540
  }
487
- 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, placeAreas, readLinks, readWorkspacePackageJsons, resolveConfig, resolveEntry, resolvePluginPackage, resolveValue, roleTeamProblem, sourceProblem, syncRoles };
541
+ 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, resolveConfig, resolveEntry, resolvePluginPackage, resolveValue, roleTeamProblem, sourceProblem, syncRoles };
@@ -1,2 +1,2 @@
1
- import { $ as DnsRecord, $t as NotificationsOnboardingLayout, A as Cardinality, An as SyncResult, At as MonitoringAlertChannelInput, B as DeployFunctionConfig, Bn as WebhookDashboardInfo, Bt as MoveReport, C as BoardStatusCategory, Cn as SourceRepoInfo, Ct as IssueSelector, D as BoardView, Dn as StatusCategory, Dt as LifecycleSlot, E as BoardTemplateFile, En as SourceTeamMember, Et as LifecycleResult, F as CiRunStatus, Fn as TrackerDoctorReport, Ft as MonitoringAssertionComparison, G as DeploymentProject, Gn as Workers, Gt as NotificationsChannelLayout, H as DeployScriptConfig, Hn as WikiProvisionOpts, Ht as Notifications, I as ConnectionStringOptions, In as TrackerUser, It as MonitoringAssertionSource, J as DeploymentTarget, Jt as NotificationsForumTag, K as DeploymentProjectSettings, Kt as NotificationsDelivery, L as CreateAuthUserInput, Ln as TunnelRoute, Lt as MonitoringCheck, M as Ci, Mn as TeamPermission, Mt as MonitoringAlertChannelState, N as CiRun, Nn as Tooling, Nt as MonitoringAlertSettings, O as CapabilityImpls, On as Storage, Ot as Logs, P as CiRunFilter, Pn as ToolingDoctorReport, Pt as MonitoringAssertion, Q as Dns, Qt as NotificationsMonitoringFeed, R as Credentials, Rn as Tunnels, Rt as MonitoringCheckInput, S as BoardStatus, Sn as SourceFile, St as IssueSearchFilter, T as BoardTemplate, Tn as SourceSecurity, Tt as LabelDef, U as DeployScriptResult, Un as WikiProxyConfig, Ut as NotificationsAccess, V as DeployFunctionResult, Vn as Wiki, Vt as NormalizedAuthUser, W as Deployment, Wn as WorkerScriptState, Wt as NotificationsApplicationLayout, X as DiscussionPatch, Xt as NotificationsLinksLayout, Y as DeploymentTrigger, Yt as NotificationsLayout, Z as DiscussionPost, Zt as NotificationsMember, _ as BoardFieldType, _n as SecretScope, _t as InspectRelayInput, a as REQUIRED_CAPABILITIES, an as NotificationsSignedIn, at as EnsureReport, b as BoardRule, bn as Source, bt as IssuePriority, c as AddedItem, cn as ParseWebhookInput, ct as EnsuredDiscussion, d as AuthDescription, dn as PullRequest, dt as Environment, en as NotificationsPicture, et as DnsRecordRequest, f as AuthEvent, fn as RelayState, ft as EnvironmentReviewer, g as BoardField, gn as Ruleset, gt as ImportResult, h as AuthUser, hn as ResolvedCapability, ht as ImportOptions, i as ProviderApiError, in as NotificationsSignIn, it as EnsureRelayResult, j as CardinalityFor, jn as TeamEntry, jt as MonitoringAlertChannelResult, k as CapabilityKey, kn as StorageBranch, kt as Monitoring, l as Analytics, ln as Projects, lt as EnsuredResource, m as AuthIdentity, mn as RepoSettings, mt as Errors, n as ElevationRequiredError, nn as NotificationsPrsFeed, nt as EnsureDiscussionInput, o as WebhookVerificationError, on as NotificationsWelcomeLayout, ot as EnsureResult, p as AuthEventType, pn as RepoRef, pt as Environments, q as DeploymentRecord, qt as NotificationsEveryoneLayout, r as MissingTokenError, rn as NotificationsServerLayout, rt as EnsureRelayInput, s as isMulti, sn as PagesConfig, st as EnsureWebhookResult, t as CARDINALITY, tn as NotificationsPinnedLayout, tt as DnsRecordType, u as Auth, un as ProviderIdentity, ut as EnsuredTunnel, v as BoardItem, vn as Secrets, vt as Issue, w as BoardSummary, wn as SourceRulesetDetail, wt as Issues, x as BoardState, xn as SourceBranch, xt as IssueRecord, y as BoardItemInput, yn as ServerInspection, yt as IssueComment, z as CredentialsInspection, zn as Vault, zt as MonitoringHttpMethod } from "../index-u4KtcSYw.mjs";
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, ImportOptions, ImportResult, InspectRelayInput, Issue, IssueComment, IssuePriority, IssueRecord, IssueSearchFilter, IssueSelector, Issues, LabelDef, LifecycleResult, LifecycleSlot, Logs, MissingTokenError, Monitoring, MonitoringAlertChannelInput, MonitoringAlertChannelResult, MonitoringAlertChannelState, MonitoringAlertSettings, MonitoringAssertion, MonitoringAssertionComparison, MonitoringAssertionSource, MonitoringCheck, MonitoringCheckInput, MonitoringHttpMethod, MoveReport, NormalizedAuthUser, Notifications, NotificationsAccess, NotificationsApplicationLayout, NotificationsChannelLayout, NotificationsDelivery, NotificationsEveryoneLayout, NotificationsForumTag, NotificationsLayout, NotificationsLinksLayout, NotificationsMember, NotificationsMonitoringFeed, NotificationsOnboardingLayout, NotificationsPicture, NotificationsPinnedLayout, NotificationsPrsFeed, NotificationsServerLayout, NotificationsSignIn, NotificationsSignedIn, NotificationsWelcomeLayout, PagesConfig, ParseWebhookInput, Projects, ProviderApiError, ProviderIdentity, PullRequest, REQUIRED_CAPABILITIES, RelayState, RepoRef, RepoSettings, ResolvedCapability, Ruleset, SecretScope, Secrets, ServerInspection, Source, SourceBranch, SourceFile, SourceRepoInfo, SourceRulesetDetail, SourceSecurity, SourceTeamMember, StatusCategory, Storage, StorageBranch, SyncResult, TeamEntry, TeamPermission, Tooling, ToolingDoctorReport, TrackerDoctorReport, TrackerUser, TunnelRoute, Tunnels, Vault, WebhookDashboardInfo, WebhookVerificationError, Wiki, WikiProvisionOpts, WikiProxyConfig, WorkerScriptState, Workers, isMulti };
1
+ import { $ as DnsRecord, $t as NotificationsMember, A as Cardinality, An as Storage, At as Logs, B as DeployFunctionConfig, Bn as Tunnels, Bt as MonitoringCheckInput, C as BoardStatusCategory, Cn as SourceBranch, Ct as IssueRecord, D as BoardView, Dn as SourceSecurity, Dt as LabelDef, E as BoardTemplateFile, En as SourceRulesetDetail, Et as Issues, F as CiRunStatus, Fn as Tooling, Ft as MonitoringAlertSettings, G as DeploymentProject, Gn as WikiProxyConfig, Gt as NotificationsAccess, H as DeployScriptConfig, Hn as WebhookDashboardInfo, Ht as MoveReport, I as ConnectionStringOptions, In as ToolingDoctorReport, It as MonitoringAssertion, J as DeploymentTarget, Jt as NotificationsDelivery, K as DeploymentProjectSettings, Kn as WorkerScriptState, Kt as NotificationsApplicationLayout, L as CreateAuthUserInput, Ln as TrackerDoctorReport, Lt as MonitoringAssertionComparison, M as Ci, Mn as SyncResult, Mt as MonitoringAlertChannelInput, N as CiRun, Nn as TeamEntry, Nt as MonitoringAlertChannelResult, O as CapabilityImpls, On as SourceTeamMember, Ot as LifecycleResult, P as CiRunFilter, Pn as TeamPermission, Pt as MonitoringAlertChannelState, Q as Dns, Qt as NotificationsLinksLayout, R as Credentials, Rn as TrackerUser, Rt as MonitoringAssertionSource, S as BoardStatus, Sn as Source, St as IssuePriority, T as BoardTemplate, Tn as SourceRepoInfo, Tt as IssueSelector, U as DeployScriptResult, Un as Wiki, Ut as NormalizedAuthUser, V as DeployFunctionResult, Vn as Vault, Vt as MonitoringHttpMethod, W as Deployment, Wn as WikiProvisionOpts, Wt as Notifications, X as DiscussionPatch, Xt as NotificationsForumTag, Y as DeploymentTrigger, Yt as NotificationsEveryoneLayout, Z as DiscussionPost, Zt as NotificationsLayout, _ as BoardFieldType, _n as ResolvedCapability, _t as ImportResult, a as REQUIRED_CAPABILITIES, an as NotificationsServerLayout, at as EnsureReport, b as BoardRule, bn as Secrets, bt as IssueComment, c as AddedItem, cn as NotificationsWelcomeLayout, ct as EnsuredDiscussion, d as AuthDescription, dn as Projects, dt as Environment, en as NotificationsMonitoringFeed, et as DnsRecordRequest, f as AuthEvent, fn as ProviderIdentity, ft as EnvironmentReviewer, g as BoardField, gn as RepoSettings, gt as ImportOptions, h as AuthUser, hn as RepoRef, ht as ExportInfo, i as ProviderApiError, in as NotificationsPrsFeed, it as EnsureRelayResult, j as CardinalityFor, jn as StorageBranch, jt as Monitoring, k as CapabilityKey, kn as StatusCategory, kt as LifecycleSlot, l as Analytics, ln as PagesConfig, lt as EnsuredResource, m as AuthIdentity, mn as RelayState, mt as Errors, n as ElevationRequiredError, nn as NotificationsPicture, nt as EnsureDiscussionInput, o as WebhookVerificationError, on as NotificationsSignIn, ot as EnsureResult, p as AuthEventType, pn as PullRequest, pt as Environments, q as DeploymentRecord, qn as Workers, qt as NotificationsChannelLayout, r as MissingTokenError, rn as NotificationsPinnedLayout, rt as EnsureRelayInput, s as isMulti, sn as NotificationsSignedIn, st as EnsureWebhookResult, t as CARDINALITY, tn as NotificationsOnboardingLayout, tt as DnsRecordType, u as Auth, un as ParseWebhookInput, ut as EnsuredTunnel, v as BoardItem, vn as Ruleset, vt as InspectRelayInput, w as BoardSummary, wn as SourceFile, wt as IssueSearchFilter, x as BoardState, xn as ServerInspection, xt as IssueOrder, y as BoardItemInput, yn as SecretScope, yt as Issue, z as CredentialsInspection, zn as TunnelRoute, zt as MonitoringCheck } from "../index-BU3l3vpX.mjs";
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, 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-BF4CMxY8.mjs";
1
+ import { n as compose, o as Capability, s as ComposedPreset } from "./config-system-BuzBMJRw.mjs";
2
2
  /** Options for the audit capability. */
3
3
  interface AuditOptions {
4
4
  /** Enable Knip unused-export analysis (default: false). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/cli",
3
- "version": "5.0.0-alpha.380",
3
+ "version": "5.0.0-alpha.381",
4
4
  "description": "The Holocron CLI - a pluggable, capability-based orchestrator for spinning up and operating software projects.",
5
5
  "keywords": [
6
6
  "cli",
@@ -54,19 +54,19 @@
54
54
  "posthog-node": "^5.61.2",
55
55
  "tsx": "4.23.15",
56
56
  "yargs": "^18.1.0",
57
- "@theholocron/astromech": "5.0.0-alpha.380",
58
- "@theholocron/datapad": "5.0.0-alpha.380",
59
- "@theholocron/dagobah": "5.0.0-alpha.380",
57
+ "@theholocron/datapad": "5.0.0-alpha.381",
58
+ "@theholocron/dagobah": "5.0.0-alpha.381",
60
59
  "@theholocron/env-utils": "^1.17.0-alpha.2",
61
- "@theholocron/git-utils": "^1.17.0-alpha.2",
62
60
  "@theholocron/fs-utils": "^1.17.0-alpha.2",
63
- "@theholocron/github-client": "^1.58.0-alpha.22",
64
61
  "@theholocron/http-client": "^1.58.0-alpha.22",
65
- "@theholocron/json-utils": "^1.17.0-alpha.2",
66
- "@theholocron/kyber": "5.0.0-alpha.380",
62
+ "@theholocron/git-utils": "^1.17.0-alpha.2",
63
+ "@theholocron/kyber": "5.0.0-alpha.381",
67
64
  "@theholocron/misc-utils": "^1.17.0-alpha.2",
68
65
  "@theholocron/observability": "^0.7.0-alpha.2",
69
- "@theholocron/pkg-utils": "^1.17.0-alpha.2"
66
+ "@theholocron/json-utils": "^1.17.0-alpha.2",
67
+ "@theholocron/github-client": "^1.58.0-alpha.22",
68
+ "@theholocron/pkg-utils": "^1.17.0-alpha.2",
69
+ "@theholocron/astromech": "5.0.0-alpha.381"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@types/node": "^26",