@theholocron/cli 5.0.0-alpha.589 → 5.0.0-alpha.590
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.
- package/README.md +13 -12
- package/dist/cli.mjs +390 -12
- package/dist/cli.mjs.map +1 -1
- package/dist/{index-3v-S0lfK.d.mts → index-Bcwg0g8i.d.mts} +46 -2
- package/dist/index.d.mts +28 -2
- package/dist/index.mjs +34 -1
- package/dist/plugin/capabilities.d.mts +2 -2
- package/dist/presets.d.mts +1 -1
- package/package.json +15 -15
|
@@ -3921,6 +3921,36 @@ interface DuplicateDiscussion {
|
|
|
3921
3921
|
/** How many posts there are beyond the oldest, which is the one kept. */
|
|
3922
3922
|
extra: number;
|
|
3923
3923
|
}
|
|
3924
|
+
/** What {@link Notifications.hideLinkPreviews} is asked to do in one text channel. */
|
|
3925
|
+
interface HideLinkPreviewsInput {
|
|
3926
|
+
/** The text channel, by name as the layout and the server spell it. */
|
|
3927
|
+
channel: string;
|
|
3928
|
+
/** How many of the newest messages to read, 1 to 1,000 (the provider clamps it; default 200). */
|
|
3929
|
+
limit?: number;
|
|
3930
|
+
/** Read and count, and edit nothing. */
|
|
3931
|
+
dryRun?: boolean;
|
|
3932
|
+
}
|
|
3933
|
+
/** What {@link Notifications.hideLinkPreviews} did in one channel. Counts and message ids only; no message text, URL or token. */
|
|
3934
|
+
interface HideLinkPreviewsResult {
|
|
3935
|
+
/** Messages read (at most the limit). */
|
|
3936
|
+
read: number;
|
|
3937
|
+
/** Messages with a link preview to hide: a link-type embed, no `rich` embed, not already hidden. */
|
|
3938
|
+
toHide: number;
|
|
3939
|
+
/** Messages edited to hide their previews (always 0 on a dry run). */
|
|
3940
|
+
hidden: number;
|
|
3941
|
+
/** Messages left alone because they carry an embed built on purpose (a `rich` one, or one of an unknown kind). */
|
|
3942
|
+
skipped: number;
|
|
3943
|
+
/** Messages the provider tried to edit and could not. */
|
|
3944
|
+
failed: number;
|
|
3945
|
+
/** Messages that were to be hidden and were not tried because the run stopped early. */
|
|
3946
|
+
left: number;
|
|
3947
|
+
/** The ids of the messages hidden (the first 25), or on a dry run those that would be. */
|
|
3948
|
+
ids: string[];
|
|
3949
|
+
/** Why the run stopped before it was done: the bot may not edit these messages, or Discord asked it to wait. */
|
|
3950
|
+
stopped?: "forbidden" | "rate-limited";
|
|
3951
|
+
/** What to do about `stopped` (names the missing permission and where to grant it), or the first failure's reason. */
|
|
3952
|
+
problem?: string;
|
|
3953
|
+
}
|
|
3924
3954
|
/** What {@link Notifications.updateDiscussion} changes; a field left out is left alone. */
|
|
3925
3955
|
interface DiscussionPatch {
|
|
3926
3956
|
/** A new key: the document moved, and the post records its new path. */
|
|
@@ -4254,11 +4284,16 @@ interface NotificationsApplicationLayout {
|
|
|
4254
4284
|
roleConnectionsUrl?: string;
|
|
4255
4285
|
/**
|
|
4256
4286
|
* Privileged intents the bot needs. `members` lets it list who is in the server, which `sync roles` needs to
|
|
4257
|
-
* find who holds a role. `true` switches
|
|
4287
|
+
* find who holds a role; `messageContent` lets it read message text. `true` switches one on from code; `false` switches it off.
|
|
4258
4288
|
*/
|
|
4259
4289
|
intents?: {
|
|
4260
4290
|
/** The server members intent: lets the bot list who is in the server. */
|
|
4261
4291
|
members?: boolean;
|
|
4292
|
+
/**
|
|
4293
|
+
* The message content intent: lets the bot read the text, embeds and attachments of messages in the server,
|
|
4294
|
+
* which `sync releases` (it looks for its marker in a post) and `cleanup embeds` need.
|
|
4295
|
+
*/
|
|
4296
|
+
messageContent?: boolean;
|
|
4262
4297
|
};
|
|
4263
4298
|
/**
|
|
4264
4299
|
* OAuth2 redirect URIs that must be registered, for `link account`. The provider's API does not allow
|
|
@@ -4792,6 +4827,15 @@ interface Notifications extends ProviderIdentity {
|
|
|
4792
4827
|
* can say what it would delete before it deletes.
|
|
4793
4828
|
*/
|
|
4794
4829
|
duplicateDiscussions?(channel: string): Promise<DuplicateDiscussion[]>;
|
|
4830
|
+
/**
|
|
4831
|
+
* Hide the link-preview cards ("embeds") under the newest messages of a text channel, keeping the links: the message
|
|
4832
|
+
* is edited to set the provider's suppress-embeds flag. Only a message with a link-type embed (`link`, `article`,
|
|
4833
|
+
* `image`, `video`, `gifv`) and no flag yet is edited; one with a `rich` embed (built on purpose, such as a relay's
|
|
4834
|
+
* post) or any embed of another kind is never touched, because the flag hides every embed of the message. A refused
|
|
4835
|
+
* edit (the bot lacks the permission) or a rate limit ends the channel's run and says so in the result instead of
|
|
4836
|
+
* throwing; a channel that is not a text channel of the server throws. Idempotent. Never reports message text or URLs.
|
|
4837
|
+
*/
|
|
4838
|
+
hideLinkPreviews?(input: HideLinkPreviewsInput): Promise<HideLinkPreviewsResult>;
|
|
4795
4839
|
/** Whether the bot holds the permission right now (the owner holds every one). Used to prove an elevation was taken back. */
|
|
4796
4840
|
holdsPermission?(permission: string): Promise<boolean>;
|
|
4797
4841
|
/** Bring onboarding in line with the layout, changing only what differs. Returns what it changed. */
|
|
@@ -5763,4 +5807,4 @@ declare class WebhookVerificationError extends Error {
|
|
|
5763
5807
|
}
|
|
5764
5808
|
/** Whether `key` is a capability that can have several providers active at once. */
|
|
5765
5809
|
declare function isMulti<K extends CapabilityKey>(key: K): CardinalityFor<K> extends "many" ? true : false;
|
|
5766
|
-
export { CoverageUploadGroup as $,
|
|
5810
|
+
export { CoverageUploadGroup as $, TelemetryConfig as $a, compose as $i, NotificationsApplicationLayout as $n, SourceRequiredChecks as $r, IssueClearable as $t, Cache as A, ProviderOptions as Aa, WikiInspection as Ai, MonitoringDashboardInput as An, PullRequestPatch as Ar, EnsureWebhookResult as At, ConnectionStringOptions as B, RepoSecretsDeploy as Ba, Workers as Bi, MonitoringIncidentResolveInput as Bn, Ruleset as Br, ErrorsOrgState as Bt, BoardState as C, GitHubAppConfig as Ca, TrackerDoctorReport as Ci, MonitoringAlertChannelState as Cn, ProviderIdentity as Cr, EnsureDiscussionInput as Ct, BoardTemplate as D, MultiEntry as Da, Vault as Di, MonitoringAssertionSource as Dn, PullRequestFields as Dr, EnsureRelaySourceResult as Dt, BoardSummary as E, LogConfig as Ea, Tunnels as Ei, MonitoringAssertionComparison as En, PullRequestChecksState as Er, EnsureRelaySourceInput as Et, CardinalityFor as F, RepoEnvironmentReviewer as Fa, WikiProvisionOpts as Fi, MonitoringHttpMethod as Fn, RelaySourceState as Fr, EnvironmentEntry as Ft, CoverageConfigInput as G, RepoView as Ga, deriveStack as Gi, MonitoringStatusComponentInput as Gn, ServerInspection as Gr, IdeaRecord as Gt, Coverage as H, RepoValidationConfig as Ha, deriveCapabilities as Hi, MonitoringIncidentUpdate as Hn, SecretScope as Hr, ExportInfo as Ht, Ci as I, RepoLabels as Ia, WikiProxyConfig as Ii, MonitoringIncident as In, RelayState as Ir, EnvironmentReviewer as It, CoverageRepoReport as J, ResolvedProvidersConfig as Ja, DeriveProfileInput as Ji, MonitoringStatusPageState as Jn, SourceCheckRun as Jr, ImportResult as Jt, CoverageExpectations as K, ResolvedHolocronConfig as Ka, missingCapabilities as Ki, MonitoringStatusPageInput as Kn, Source as Kr, Ideas as Kt, CiRun as L, RepoProperties as La, WikiPublishedState as Li, MonitoringIncidentImpact as Ln, RepoRef as Lr, Environments as Lt, CapabilityImpls as M, RawProvidersConfig as Ma, WikiNavigationState as Mi, MonitoringHeartbeatInput as Mn, Registry as Mr, EnsuredResource as Mt, CapabilityKey as N, RepoConfig as Na, WikiOrganizationState as Ni, MonitoringHeartbeatResult as Nn, RelaySourceCapability as Nr, EnsuredTunnel as Nt, BoardTemplateFile as O, OrgConfig as Oa, WebhookDashboardInfo as Oi, MonitoringCheck as On, PullRequestInput as Or, EnsureReport as Ot, Cardinality as P, RepoEnvironment as Pa, WikiProbe as Pi, MonitoringHeartbeatUnit as Pn, RelaySourceMethods as Pr, Environment as Pt, CoverageUploadFlagResult as Q, TaskEntryConfig as Qa, ConfigFileError as Qi, NotificationsAccess as Qn, SourceRepoInfo as Qr, Issue as Qt, CiRunFilter as R, RepoProtection as Ra, WorkerDeploymentState as Ri, MonitoringIncidentInput as Rn, RepoSettings as Rr, Errors as Rt, BoardRule as S, EslintConfig as Sa, ToolingWorkspaceState as Si, MonitoringAlertChannelResult as Sn, Projects as Sr, EmojiCheck as St, BoardStatusCategory as T, IdeasConfig as Ta, TunnelRoute as Ti, MonitoringAssertion as Tn, PullRequestChecks as Tr, EnsureRelayResult as Tt, CoverageConfigComponent as U, RepoVariables as Ua, deriveCompliance as Ui, MonitoringIncidentUpdateInput as Un, SecretVisibility as Ur, HideLinkPreviewsInput as Ut, CoreIssueKind as V, RepoSecretsSync as Va, KNOWN_STACK_DEPS as Vi, MonitoringIncidentStatus as Vn, SecretAccess as Vr, ErrorsProjectState as Vt, CoverageConfigDocumentation as W, RepoVariablesSync as Wa, deriveProfile as Wi, MonitoringIncidentWrite as Wn, Secrets as Wr, HideLinkPreviewsResult as Wt, CoverageStatusInput as X, SingleEntry as Xa, PackageJsonLike as Xi, NormalizedAuthUser as Xn, SourceCommitStatus as Xr, InspectRelayInput as Xt, CoverageStatusContext as Y, ResolvedTuple as Ya, HolocronProfile as Yi, MoveReport as Yn, SourceCheckRunWrite as Yr, InspectErrorsInput as Yt, CoverageTokenCheck as Z, StorybookDeployProject as Za, StackName as Zi, Notifications as Zn, SourceFile as Zr, InspectRelaySourceInput as Zt, BoardFieldType as _, DevConfig as _a, ToolingOpenWant as _i, LifecycleSlot as _n, NotificationsSignedIn as _r, Dns as _t, REQUIRED_CAPABILITIES as a, TaskEntry as aa, StorageBranch as ai, IssueOrder as an, NotificationsLinksLayout as ar, DeployFunctionConfig as at, BoardPullRequest as b, DoctorConfig as ba, ToolingWorkspaceResult as bi, Monitoring as bn, PagesConfig as br, DnsRecordType as bt, AddedItem as c, resolveConfig as ca, TeamPermission as ci, IssueRecord as cn, NotificationsOnboardingLayout as cr, DeployScriptResult as ct, AuthDescription as d, AgentName as da, ToolingExportInput as di, IssueTypeDeclaration as dn, NotificationsPostedMessage as dr, DeploymentProjectSettings as dt, defineConfig as ea, SourceRulesetDetail as ei, IssueComment as en, WorkflowWithConfig as eo, NotificationsChannelLayout as er, CoverageUploadInput as et, AuthEvent as f, AgentOptions as fa, ToolingExportIssue as fi, IssueTypeInfo as fn, NotificationsPrsFeed as fr, DeploymentRecord as ft, BoardField as g, CredentialsConfig as ga, ToolingOpenPlan as gi, LifecycleResult as gn, NotificationsSignIn as gr, DiscussionPost as gt, AuthUser as h, ChromaticProjectConfig as ha, ToolingOpenLaunch as hi, LabelDef as hn, NotificationsServerLayout as hr, DiscussionPatch as ht, ProviderApiError as i, ComposedPreset as ia, Storage as ii, IssueKind as in, NotificationsLayout as ir, CredentialsInspection as it, CacheTokenCheck as j, RawProviderEntry as ja, WikiInstanceState as ji, MonitoringDashboardState as jn, PullRequestResult as jr, EnsuredDiscussion as jt, BoardView as k, OrgIssueType as ka, Wiki as ki, MonitoringCheckInput as kn, PullRequestLink as kr, EnsureResult as kt, Analytics as l, resolveEntry as la, Tooling as li, IssueSearchFilter as ln, NotificationsPicture as lr, Deployment as lt, AuthIdentity as m, CapabilityConfigPackage as ma, ToolingOpenInput as mi, Issues as mn, NotificationsRelaySource as mr, DeploymentTrigger as mt, ElevationRequiredError as n, LoadedConfig as na, SourceTeamMember as ni, IssueEffort as nn, NotificationsEveryoneLayout as nr, CreateAuthUserInput as nt, WebhookVerificationError as o, ConfigError as oa, SyncResult as oi, IssuePatch as on, NotificationsMember as or, DeployFunctionResult as ot, AuthEventType as p, AppConfig as pa, ToolingExportResult as pi, IssueUpdateResult as pn, NotificationsReaction as pr, DeploymentTarget as pt, CoverageNameDiff as q, ResolvedProviderEntry as qa, readWorkspacePackageJsons as qi, MonitoringStatusPageResult as qn, SourceBranch as qr, ImportOptions as qt, MissingTokenError as r, Capability as ra, StatusCategory as ri, IssueFields as rn, NotificationsForumTag as rr, Credentials as rt, isMulti as s, credentialsEnvironment as sa, TeamEntry as si, IssuePriority as sn, NotificationsMonitoringFeed as sr, DeployScriptConfig as st, CARDINALITY as t, loadConfig as ta, SourceSecurity as ti, IssueCreateInput as tn, EnvironmentLayer as to, NotificationsDelivery as tr, CoverageUploadResult as tt, Auth as u, resolvePluginPackage as ua, ToolingDoctorReport as ui, IssueSelector as un, NotificationsPinnedLayout as ur, DeploymentProject as ut, BoardItem as v, DevServeConfig as va, ToolingWorkspaceFile as vi, Logs as vn, NotificationsWelcomeLayout as vr, DnsRecord as vt, BoardStatus as w, HolocronConfig as wa, TrackerUser as wi, MonitoringAlertSettings as wn, PullRequest as wr, EnsureRelayInput as wt, BoardPullRequestChecks as x, EnvConfig as xa, ToolingWorkspaceSide as xi, MonitoringAlertChannelInput as xn, ParseWebhookInput as xr, DuplicateDiscussion as xt, BoardItemInput as y, DocsConfig as ya, ToolingWorkspaceInput as yi, LogsDataset as yn, OrganizationSecretScope as yr, DnsRecordRequest as yt, CiRunStatus as z, RepoSecrets as za, WorkerScriptState as zi, MonitoringIncidentQuery as zn, ResolvedCapability as zr, ErrorsInspection as zt };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as CoverageUploadGroup, $a as
|
|
1
|
+
import { $ as CoverageUploadGroup, $a as TelemetryConfig, $i as compose, $n as NotificationsApplicationLayout, $r as SourceRequiredChecks, $t as IssueClearable, A as Cache, Aa as ProviderOptions, Ai as WikiInspection, An as MonitoringDashboardInput, Ar as PullRequestPatch, At as EnsureWebhookResult, B as ConnectionStringOptions, Ba as RepoSecretsDeploy, Bi as Workers, Bn as MonitoringIncidentResolveInput, Br as Ruleset, Bt as ErrorsOrgState, C as BoardState, Ca as GitHubAppConfig, Ci as TrackerDoctorReport, Cn as MonitoringAlertChannelState, Cr as ProviderIdentity, Ct as EnsureDiscussionInput, D as BoardTemplate, Da as MultiEntry, Di as Vault, Dn as MonitoringAssertionSource, Dr as PullRequestFields, Dt as EnsureRelaySourceResult, E as BoardSummary, Ea as LogConfig, Ei as Tunnels, En as MonitoringAssertionComparison, Er as PullRequestChecksState, Et as EnsureRelaySourceInput, F as CardinalityFor, Fa as RepoEnvironmentReviewer, Fi as WikiProvisionOpts, Fn as MonitoringHttpMethod, Fr as RelaySourceState, Ft as EnvironmentEntry, G as CoverageConfigInput, Ga as RepoView, Gi as deriveStack, Gn as MonitoringStatusComponentInput, Gr as ServerInspection, Gt as IdeaRecord, H as Coverage, Ha as RepoValidationConfig, Hi as deriveCapabilities, Hn as MonitoringIncidentUpdate, Hr as SecretScope, Ht as ExportInfo, I as Ci, Ia as RepoLabels, Ii as WikiProxyConfig, In as MonitoringIncident, Ir as RelayState, It as EnvironmentReviewer, J as CoverageRepoReport, Ja as ResolvedProvidersConfig, Ji as DeriveProfileInput, Jn as MonitoringStatusPageState, Jr as SourceCheckRun, Jt as ImportResult, K as CoverageExpectations, Ka as ResolvedHolocronConfig, Ki as missingCapabilities, Kn as MonitoringStatusPageInput, Kr as Source, Kt as Ideas, L as CiRun, La as RepoProperties, Li as WikiPublishedState, Ln as MonitoringIncidentImpact, Lr as RepoRef, Lt as Environments, M as CapabilityImpls, Ma as RawProvidersConfig, Mi as WikiNavigationState, Mn as MonitoringHeartbeatInput, Mr as Registry, Mt as EnsuredResource, N as CapabilityKey, Na as RepoConfig, Ni as WikiOrganizationState, Nn as MonitoringHeartbeatResult, Nr as RelaySourceCapability, Nt as EnsuredTunnel, O as BoardTemplateFile, Oa as OrgConfig, Oi as WebhookDashboardInfo, On as MonitoringCheck, Or as PullRequestInput, Ot as EnsureReport, P as Cardinality, Pa as RepoEnvironment, Pi as WikiProbe, Pn as MonitoringHeartbeatUnit, Pr as RelaySourceMethods, Pt as Environment, Q as CoverageUploadFlagResult, Qa as TaskEntryConfig, Qi as ConfigFileError, Qn as NotificationsAccess, Qr as SourceRepoInfo, Qt as Issue, R as CiRunFilter, Ra as RepoProtection, Ri as WorkerDeploymentState, Rn as MonitoringIncidentInput, Rr as RepoSettings, Rt as Errors, S as BoardRule, Sa as EslintConfig, Si as ToolingWorkspaceState, Sn as MonitoringAlertChannelResult, Sr as Projects, St as EmojiCheck, T as BoardStatusCategory, Ta as IdeasConfig, Ti as TunnelRoute, Tn as MonitoringAssertion, Tr as PullRequestChecks, Tt as EnsureRelayResult, U as CoverageConfigComponent, Ua as RepoVariables, Ui as deriveCompliance, Un as MonitoringIncidentUpdateInput, Ur as SecretVisibility, Ut as HideLinkPreviewsInput, V as CoreIssueKind, Va as RepoSecretsSync, Vi as KNOWN_STACK_DEPS, Vn as MonitoringIncidentStatus, Vr as SecretAccess, Vt as ErrorsProjectState, W as CoverageConfigDocumentation, Wa as RepoVariablesSync, Wi as deriveProfile, Wn as MonitoringIncidentWrite, Wr as Secrets, Wt as HideLinkPreviewsResult, X as CoverageStatusInput, Xa as SingleEntry, Xi as PackageJsonLike, Xn as NormalizedAuthUser, Xr as SourceCommitStatus, Xt as InspectRelayInput, Y as CoverageStatusContext, Ya as ResolvedTuple, Yi as HolocronProfile, Yn as MoveReport, Yr as SourceCheckRunWrite, Yt as InspectErrorsInput, Z as CoverageTokenCheck, Za as StorybookDeployProject, Zi as StackName, Zn as Notifications, Zr as SourceFile, Zt as InspectRelaySourceInput, _ as BoardFieldType, _a as DevConfig, _i as ToolingOpenWant, _n as LifecycleSlot, _r as NotificationsSignedIn, _t as Dns, a as REQUIRED_CAPABILITIES, aa as TaskEntry, ai as StorageBranch, an as IssueOrder, ar as NotificationsLinksLayout, at as DeployFunctionConfig, b as BoardPullRequest, ba as DoctorConfig, bi as ToolingWorkspaceResult, bn as Monitoring, br as PagesConfig, bt as DnsRecordType, c as AddedItem, ca as resolveConfig, ci as TeamPermission, cn as IssueRecord, cr as NotificationsOnboardingLayout, ct as DeployScriptResult, d as AuthDescription, da as AgentName, di as ToolingExportInput, dn as IssueTypeDeclaration, dr as NotificationsPostedMessage, dt as DeploymentProjectSettings, ea as defineConfig, ei as SourceRulesetDetail, en as IssueComment, eo as WorkflowWithConfig, er as NotificationsChannelLayout, et as CoverageUploadInput, f as AuthEvent, fa as AgentOptions, fi as ToolingExportIssue, fn as IssueTypeInfo, fr as NotificationsPrsFeed, ft as DeploymentRecord, g as BoardField, ga as CredentialsConfig, gi as ToolingOpenPlan, gn as LifecycleResult, gr as NotificationsSignIn, gt as DiscussionPost, h as AuthUser, ha as ChromaticProjectConfig, hi as ToolingOpenLaunch, hn as LabelDef, hr as NotificationsServerLayout, ht as DiscussionPatch, i as ProviderApiError, ia as ComposedPreset, ii as Storage, in as IssueKind, ir as NotificationsLayout, it as CredentialsInspection, j as CacheTokenCheck, ja as RawProviderEntry, ji as WikiInstanceState, jn as MonitoringDashboardState, jr as PullRequestResult, jt as EnsuredDiscussion, k as BoardView, ka as OrgIssueType, ki as Wiki, kn as MonitoringCheckInput, kr as PullRequestLink, kt as EnsureResult, l as Analytics, la as resolveEntry, li as Tooling, ln as IssueSearchFilter, lr as NotificationsPicture, lt as Deployment, m as AuthIdentity, ma as CapabilityConfigPackage, mi as ToolingOpenInput, mn as Issues, mr as NotificationsRelaySource, mt as DeploymentTrigger, n as ElevationRequiredError, na as LoadedConfig, ni as SourceTeamMember, nn as IssueEffort, nr as NotificationsEveryoneLayout, nt as CreateAuthUserInput, o as WebhookVerificationError, oa as ConfigError, oi as SyncResult, on as IssuePatch, or as NotificationsMember, ot as DeployFunctionResult, p as AuthEventType, pa as AppConfig, pi as ToolingExportResult, pn as IssueUpdateResult, pr as NotificationsReaction, pt as DeploymentTarget, q as CoverageNameDiff, qa as ResolvedProviderEntry, qi as readWorkspacePackageJsons, qn as MonitoringStatusPageResult, qr as SourceBranch, qt as ImportOptions, r as MissingTokenError, ra as Capability, ri as StatusCategory, rn as IssueFields, rr as NotificationsForumTag, rt as Credentials, s as isMulti, sa as credentialsEnvironment, si as TeamEntry, sn as IssuePriority, sr as NotificationsMonitoringFeed, st as DeployScriptConfig, t as CARDINALITY, ta as loadConfig, ti as SourceSecurity, tn as IssueCreateInput, to as EnvironmentLayer, tr as NotificationsDelivery, tt as CoverageUploadResult, u as Auth, ua as resolvePluginPackage, ui as ToolingDoctorReport, un as IssueSelector, ur as NotificationsPinnedLayout, ut as DeploymentProject, v as BoardItem, va as DevServeConfig, vi as ToolingWorkspaceFile, vn as Logs, vr as NotificationsWelcomeLayout, vt as DnsRecord, w as BoardStatus, wa as HolocronConfig, wi as TrackerUser, wn as MonitoringAlertSettings, wr as PullRequest, wt as EnsureRelayInput, x as BoardPullRequestChecks, xa as EnvConfig, xi as ToolingWorkspaceSide, xn as MonitoringAlertChannelInput, xr as ParseWebhookInput, xt as DuplicateDiscussion, y as BoardItemInput, ya as DocsConfig, yi as ToolingWorkspaceInput, yn as LogsDataset, yr as OrganizationSecretScope, yt as DnsRecordRequest, z as CiRunStatus, za as RepoSecrets, zi as WorkerScriptState, zn as MonitoringIncidentQuery, zr as ResolvedCapability, zt as ErrorsInspection } from "./index-Bcwg0g8i.mjs";
|
|
2
2
|
import { AuthError, ResolveTokenConfig as ResolveTokenConfig$1, ResolveTokenInput, ResolveTokenInput as ResolveTokenInput$1, resolveValue } from "@theholocron/kyber/secrets";
|
|
3
3
|
import { AGGREGATE_CHECK_NAME, AGGREGATE_SHADOW_CHECK_NAME, DocsCoverageMode, RequiredChecksFailure, RequiredChecksInput, RequiredChecksState, RequiredChecksVerdict, requiredChecksVerdict } from "@theholocron/astromech";
|
|
4
4
|
import { CheckRow } from "@theholocron/kyber/ui";
|
|
@@ -56,6 +56,12 @@ interface TokenExpectation {
|
|
|
56
56
|
permissions?: Readonly<Partial<Record<EnvironmentLayer, Readonly<Record<string, PermissionRule>>>>>;
|
|
57
57
|
/** When the token is due for rotation, in every layer that holds it. Default: `DEFAULT_TOKEN_ROTATION`. */
|
|
58
58
|
rotation?: TokenRotation;
|
|
59
|
+
/**
|
|
60
|
+
* Layers whose Environment must not hold this token at all (#2825), e.g. the stage-only npm token, held in `agent`
|
|
61
|
+
* only. `doctor tokens` fails a row for each one that holds it; no probe is run against it. A layer cannot also be
|
|
62
|
+
* declared in `layers` or `permissions`: `forbiddenTokenLayers()` refuses that.
|
|
63
|
+
*/
|
|
64
|
+
forbiddenLayers?: readonly EnvironmentLayer[];
|
|
59
65
|
}
|
|
60
66
|
/** One token a plugin takes, and where it is looked up. */
|
|
61
67
|
interface PluginToken {
|
|
@@ -802,6 +808,26 @@ interface TokenExpectationFilter {
|
|
|
802
808
|
* walks the declaration itself. A token with no `expect` yields nothing; a layer no token holds is never listed.
|
|
803
809
|
*/
|
|
804
810
|
export declare function tokenExpectations(tokens: readonly PluginToken[], filter?: TokenExpectationFilter): LayerTokenExpectation[];
|
|
811
|
+
/** A layer whose Environment must not hold a token at all, as `forbiddenTokenLayers()` reads it from `expect`. */
|
|
812
|
+
interface ForbiddenTokenLayer {
|
|
813
|
+
/** The token's plugin environment variable (`PluginToken.envName`). */
|
|
814
|
+
envName: string;
|
|
815
|
+
/** The layer that must not hold it. */
|
|
816
|
+
layer: EnvironmentLayer;
|
|
817
|
+
/** The layers the token is declared for, to say where it belongs. In `ENVIRONMENT_LAYERS` order. */
|
|
818
|
+
declaredFor: readonly EnvironmentLayer[];
|
|
819
|
+
}
|
|
820
|
+
/**
|
|
821
|
+
* Reads the layers a plugin's tokens forbid (`TokenExpectation.forbiddenLayers`, #2825) as one entry per token and
|
|
822
|
+
* layer, in the order of `ENVIRONMENT_LAYERS`: the Environments that must not hold the token at all. A separate reader
|
|
823
|
+
* from `tokenExpectations()`, which lists only the layers that hold a token, so the probes, the rotation readers and the
|
|
824
|
+
* docs check never see a forbidden layer. A token with no `forbiddenLayers` yields nothing.
|
|
825
|
+
*
|
|
826
|
+
* @throws {ConfigError} For a layer that is not one of `ENVIRONMENT_LAYERS` (every layer word reads a vault
|
|
827
|
+
* Environment, so none is left out), and for a layer a token is both declared for (`layers`, or a key of
|
|
828
|
+
* `permissions`) and forbids: the declaration contradicts itself.
|
|
829
|
+
*/
|
|
830
|
+
export declare function forbiddenTokenLayers(tokens: readonly PluginToken[], filter?: TokenExpectationFilter): ForbiddenTokenLayer[];
|
|
805
831
|
/** When a provider says a token was made and when it stops working. Each is an ISO date or time, left out when unknown. */
|
|
806
832
|
interface TokenLifetime {
|
|
807
833
|
/** When the token was made, or became valid when that is all the provider says (Cloudflare `not_before`). */
|
|
@@ -916,4 +942,4 @@ export declare const SHARED_AREAS: readonly ["org"];
|
|
|
916
942
|
* is a `ConfigError` naming both (no merge, no precedence). With no area files the config is returned as it was.
|
|
917
943
|
*/
|
|
918
944
|
export declare function placeAreas(areas: ConfigDirArea[], raw: HolocronConfig): HolocronConfig;
|
|
919
|
-
export { AGGREGATE_CHECK_NAME, AGGREGATE_SHADOW_CHECK_NAME, AddedItem, type AgentName, type AgentOptions, Analytics, type AppConfig, Auth, AuthDescription, AuthError, AuthEvent, AuthEventType, type AuthExportOutKind, AuthIdentity, AuthUser, type BoardDeclaration, BoardField, BoardFieldType, BoardItem, BoardItemInput, BoardPullRequest, BoardPullRequestChecks, BoardRule, BoardState, BoardStatus, BoardStatusCategory, BoardSummary, BoardTemplate, BoardTemplateFile, BoardView, CARDINALITY, Cache, CacheTokenCheck, type Capability, type CapabilityConfigPackage, CapabilityImpls, CapabilityKey, Cardinality, CardinalityFor, type ChromaticProjectConfig, Ci, CiRun, CiRunFilter, CiRunStatus, type ComposedPreset, ConfigError, ConfigFileError, ConnectionStringOptions, CoreIssueKind, Coverage, CoverageConfigComponent, CoverageConfigDocumentation, CoverageConfigInput, CoverageExpectations, CoverageNameDiff, CoverageRepoReport, CoverageStatusContext, CoverageStatusInput, CoverageTokenCheck, CoverageUploadFlagResult, CoverageUploadGroup, CoverageUploadInput, CoverageUploadResult, CreateAuthUserInput, Credentials, type CredentialsConfig, CredentialsInspection, type CustomReaction, DeployFunctionConfig, DeployFunctionResult, DeployScriptConfig, DeployScriptResult, Deployment, DeploymentProject, DeploymentProjectSettings, DeploymentRecord, DeploymentTarget, DeploymentTrigger, type DeriveProfileInput, type DevConfig, type DevServeConfig, DiscussionPatch, DiscussionPost, Dns, DnsRecord, DnsRecordRequest, DnsRecordType, type DocsConfig, type DoctorConfig, DuplicateDiscussion, ElevationRequiredError, EmojiCheck, EnsureDiscussionInput, EnsureRelayInput, EnsureRelayResult, EnsureRelaySourceInput, EnsureRelaySourceResult, EnsureReport, EnsureResult, EnsureWebhookResult, EnsuredDiscussion, EnsuredResource, EnsuredTunnel, type EnvConfig, Environment, EnvironmentEntry, type EnvironmentLayer, EnvironmentReviewer, Environments, Errors, ErrorsInspection, ErrorsOrgState, ErrorsProjectState, type EslintConfig, ExportInfo, type FeatureResolver, type FeatureResolverConfig, type GitHubAppConfig, type HolocronConfig, type HolocronProfile, IdeaRecord, Ideas, type IdeasConfig, ImportOptions, ImportResult, InspectErrorsInput, InspectRelayInput, InspectRelaySourceInput, Issue, IssueClearable, IssueComment, IssueCreateInput, IssueEffort, IssueFields, IssueKind, IssueOrder, IssuePatch, IssuePriority, IssueRecord, IssueSearchFilter, IssueSelector, IssueTypeDeclaration, IssueTypeInfo, IssueUpdateResult, Issues, KNOWN_STACK_DEPS, LabelDef, type LayerTokenExpectation, type LayoutEmoji, LifecycleResult, LifecycleSlot, type LinksFile, type LoadedConfig, type LogConfig, Logs, LogsDataset, type MemberLink, type MintToken, type MintTokenInput, type MintTokenResult, MissingTokenError, Monitoring, MonitoringAlertChannelInput, MonitoringAlertChannelResult, MonitoringAlertChannelState, MonitoringAlertSettings, MonitoringAssertion, MonitoringAssertionComparison, MonitoringAssertionSource, MonitoringCheck, MonitoringCheckInput, MonitoringDashboardInput, MonitoringDashboardState, MonitoringHeartbeatInput, MonitoringHeartbeatResult, MonitoringHeartbeatUnit, MonitoringHttpMethod, MonitoringIncident, MonitoringIncidentImpact, MonitoringIncidentInput, MonitoringIncidentQuery, MonitoringIncidentResolveInput, MonitoringIncidentStatus, MonitoringIncidentUpdate, MonitoringIncidentUpdateInput, MonitoringIncidentWrite, MonitoringStatusComponentInput, MonitoringStatusPageInput, MonitoringStatusPageResult, MonitoringStatusPageState, MoveReport, type MultiEntry, NormalizedAuthUser, Notifications, NotificationsAccess, NotificationsApplicationLayout, NotificationsChannelLayout, NotificationsDelivery, NotificationsEveryoneLayout, NotificationsForumTag, NotificationsLayout, NotificationsLinksLayout, NotificationsMember, NotificationsMonitoringFeed, NotificationsOnboardingLayout, NotificationsPicture, NotificationsPinnedLayout, NotificationsPostedMessage, NotificationsPrsFeed, NotificationsReaction, NotificationsRelaySource, NotificationsServerLayout, NotificationsSignIn, NotificationsSignedIn, NotificationsWelcomeLayout, type OrgConfig, type OrgIssueType, OrganizationSecretScope, type PackageJsonLike, PagesConfig, ParseWebhookInput, type ParsedReaction, type PermissionRule, type PluginProbes, type PluginToken, type Probe, type ProbeContext, type ProbeRow, type ProjectOptions, Projects, type ProviderAction, type ProviderActionContext, type ProviderActions, ProviderApiError, ProviderIdentity, type ProviderOptions, type ProviderRow, PullRequest, PullRequestChecks, PullRequestChecksState, PullRequestFields, PullRequestInput, PullRequestLink, PullRequestPatch, PullRequestResult, type PullRequestStatusChange, type PullRequestStatusPlan, type PullRequestStatusReason, type PullRequestStatusUnresolved, REQUIRED_CAPABILITIES, type RawProviderEntry, type RawProvidersConfig, type ReadKeysLimitedInput, type ReadTokenId, type ReconcileChange, type ReconcilePlan, type ReconcileReason, type ReconcileUnresolved, Registry, RelaySourceCapability, RelaySourceMethods, RelaySourceState, RelayState, type RepoConfig, type RepoEnvironment, type RepoEnvironmentReviewer, type RepoLabels, type RepoProperties, type RepoProtection, RepoRef, type RepoSecrets, type RepoSecretsDeploy, type RepoSecretsSync, RepoSettings, type RepoValidationConfig, type RepoVariables, type RepoVariablesSync, type RepoView, type RequestOptions, type RequiredChecksFailure, type RequiredChecksInput, type RequiredChecksState, type RequiredChecksVerdict, type ResolveProjectOptionsResult, type ResolveTokenConfig, type ResolveTokenInput, ResolvedCapability, type ResolvedHolocronConfig, type ResolvedProviderEntry, type ResolvedProvidersConfig, type ResolvedTuple, type RestClient, type RestClientConfig, type RevokeToken, type RevokeTokenInput, type RevokeTokenResult, Ruleset, SecretAccess, SecretScope, SecretVisibility, Secrets, ServerInspection, type SingleEntry, Source, SourceBranch, SourceCheckRun, SourceCheckRunWrite, SourceCommitStatus, SourceFile, SourceRepoInfo, SourceRequiredChecks, SourceRulesetDetail, SourceSecurity, SourceTeamMember, type StackName, StatusCategory, Storage, StorageBranch, type StorybookDeployProject, SyncResult, type SyncRolesInput, type SyncRolesResult, type TaskEntry, type TaskEntryConfig, TeamEntry, TeamPermission, type TelemetryConfig, type TokenExpectation, type TokenExpectationFilter, type TokenLifetime, type TokenResolver, type TokenRotation, Tooling, ToolingDoctorReport, ToolingExportInput, ToolingExportIssue, ToolingExportResult, ToolingOpenInput, ToolingOpenLaunch, ToolingOpenPlan, ToolingOpenWant, ToolingWorkspaceFile, ToolingWorkspaceInput, ToolingWorkspaceResult, ToolingWorkspaceSide, ToolingWorkspaceState, TrackerDoctorReport, TrackerUser, TunnelRoute, Tunnels, type UnicodeReaction, Vault, type VerifyTokenFailure, type VerifyTokenResult, type VerifyTokenSuccess, WebhookDashboardInfo, WebhookVerificationError, type WhoamiInput, Wiki, WikiInspection, WikiInstanceState, WikiNavigationState, WikiOrganizationState, WikiProbe, WikiProvisionOpts, WikiProxyConfig, WikiPublishedState, WorkerDeploymentState, WorkerScriptState, Workers, type WorkflowWithConfig, compose, createRestClient, credentialsEnvironment, defineConfig, deriveCapabilities, deriveCompliance, deriveProfile, deriveStack, isMulti, loadConfig, missingCapabilities, readWorkspacePackageJsons, requiredChecksVerdict, resolveConfig, resolveEntry, resolvePluginPackage, resolveValue };
|
|
945
|
+
export { AGGREGATE_CHECK_NAME, AGGREGATE_SHADOW_CHECK_NAME, AddedItem, type AgentName, type AgentOptions, Analytics, type AppConfig, Auth, AuthDescription, AuthError, AuthEvent, AuthEventType, type AuthExportOutKind, AuthIdentity, AuthUser, type BoardDeclaration, BoardField, BoardFieldType, BoardItem, BoardItemInput, BoardPullRequest, BoardPullRequestChecks, BoardRule, BoardState, BoardStatus, BoardStatusCategory, BoardSummary, BoardTemplate, BoardTemplateFile, BoardView, CARDINALITY, Cache, CacheTokenCheck, type Capability, type CapabilityConfigPackage, CapabilityImpls, CapabilityKey, Cardinality, CardinalityFor, type ChromaticProjectConfig, Ci, CiRun, CiRunFilter, CiRunStatus, type ComposedPreset, ConfigError, ConfigFileError, ConnectionStringOptions, CoreIssueKind, Coverage, CoverageConfigComponent, CoverageConfigDocumentation, CoverageConfigInput, CoverageExpectations, CoverageNameDiff, CoverageRepoReport, CoverageStatusContext, CoverageStatusInput, CoverageTokenCheck, CoverageUploadFlagResult, CoverageUploadGroup, CoverageUploadInput, CoverageUploadResult, CreateAuthUserInput, Credentials, type CredentialsConfig, CredentialsInspection, type CustomReaction, DeployFunctionConfig, DeployFunctionResult, DeployScriptConfig, DeployScriptResult, Deployment, DeploymentProject, DeploymentProjectSettings, DeploymentRecord, DeploymentTarget, DeploymentTrigger, type DeriveProfileInput, type DevConfig, type DevServeConfig, DiscussionPatch, DiscussionPost, Dns, DnsRecord, DnsRecordRequest, DnsRecordType, type DocsConfig, type DoctorConfig, DuplicateDiscussion, ElevationRequiredError, EmojiCheck, EnsureDiscussionInput, EnsureRelayInput, EnsureRelayResult, EnsureRelaySourceInput, EnsureRelaySourceResult, EnsureReport, EnsureResult, EnsureWebhookResult, EnsuredDiscussion, EnsuredResource, EnsuredTunnel, type EnvConfig, Environment, EnvironmentEntry, type EnvironmentLayer, EnvironmentReviewer, Environments, Errors, ErrorsInspection, ErrorsOrgState, ErrorsProjectState, type EslintConfig, ExportInfo, type FeatureResolver, type FeatureResolverConfig, type ForbiddenTokenLayer, type GitHubAppConfig, HideLinkPreviewsInput, HideLinkPreviewsResult, type HolocronConfig, type HolocronProfile, IdeaRecord, Ideas, type IdeasConfig, ImportOptions, ImportResult, InspectErrorsInput, InspectRelayInput, InspectRelaySourceInput, Issue, IssueClearable, IssueComment, IssueCreateInput, IssueEffort, IssueFields, IssueKind, IssueOrder, IssuePatch, IssuePriority, IssueRecord, IssueSearchFilter, IssueSelector, IssueTypeDeclaration, IssueTypeInfo, IssueUpdateResult, Issues, KNOWN_STACK_DEPS, LabelDef, type LayerTokenExpectation, type LayoutEmoji, LifecycleResult, LifecycleSlot, type LinksFile, type LoadedConfig, type LogConfig, Logs, LogsDataset, type MemberLink, type MintToken, type MintTokenInput, type MintTokenResult, MissingTokenError, Monitoring, MonitoringAlertChannelInput, MonitoringAlertChannelResult, MonitoringAlertChannelState, MonitoringAlertSettings, MonitoringAssertion, MonitoringAssertionComparison, MonitoringAssertionSource, MonitoringCheck, MonitoringCheckInput, MonitoringDashboardInput, MonitoringDashboardState, MonitoringHeartbeatInput, MonitoringHeartbeatResult, MonitoringHeartbeatUnit, MonitoringHttpMethod, MonitoringIncident, MonitoringIncidentImpact, MonitoringIncidentInput, MonitoringIncidentQuery, MonitoringIncidentResolveInput, MonitoringIncidentStatus, MonitoringIncidentUpdate, MonitoringIncidentUpdateInput, MonitoringIncidentWrite, MonitoringStatusComponentInput, MonitoringStatusPageInput, MonitoringStatusPageResult, MonitoringStatusPageState, MoveReport, type MultiEntry, NormalizedAuthUser, Notifications, NotificationsAccess, NotificationsApplicationLayout, NotificationsChannelLayout, NotificationsDelivery, NotificationsEveryoneLayout, NotificationsForumTag, NotificationsLayout, NotificationsLinksLayout, NotificationsMember, NotificationsMonitoringFeed, NotificationsOnboardingLayout, NotificationsPicture, NotificationsPinnedLayout, NotificationsPostedMessage, NotificationsPrsFeed, NotificationsReaction, NotificationsRelaySource, NotificationsServerLayout, NotificationsSignIn, NotificationsSignedIn, NotificationsWelcomeLayout, type OrgConfig, type OrgIssueType, OrganizationSecretScope, type PackageJsonLike, PagesConfig, ParseWebhookInput, type ParsedReaction, type PermissionRule, type PluginProbes, type PluginToken, type Probe, type ProbeContext, type ProbeRow, type ProjectOptions, Projects, type ProviderAction, type ProviderActionContext, type ProviderActions, ProviderApiError, ProviderIdentity, type ProviderOptions, type ProviderRow, PullRequest, PullRequestChecks, PullRequestChecksState, PullRequestFields, PullRequestInput, PullRequestLink, PullRequestPatch, PullRequestResult, type PullRequestStatusChange, type PullRequestStatusPlan, type PullRequestStatusReason, type PullRequestStatusUnresolved, REQUIRED_CAPABILITIES, type RawProviderEntry, type RawProvidersConfig, type ReadKeysLimitedInput, type ReadTokenId, type ReconcileChange, type ReconcilePlan, type ReconcileReason, type ReconcileUnresolved, Registry, RelaySourceCapability, RelaySourceMethods, RelaySourceState, RelayState, type RepoConfig, type RepoEnvironment, type RepoEnvironmentReviewer, type RepoLabels, type RepoProperties, type RepoProtection, RepoRef, type RepoSecrets, type RepoSecretsDeploy, type RepoSecretsSync, RepoSettings, type RepoValidationConfig, type RepoVariables, type RepoVariablesSync, type RepoView, type RequestOptions, type RequiredChecksFailure, type RequiredChecksInput, type RequiredChecksState, type RequiredChecksVerdict, type ResolveProjectOptionsResult, type ResolveTokenConfig, type ResolveTokenInput, ResolvedCapability, type ResolvedHolocronConfig, type ResolvedProviderEntry, type ResolvedProvidersConfig, type ResolvedTuple, type RestClient, type RestClientConfig, type RevokeToken, type RevokeTokenInput, type RevokeTokenResult, Ruleset, SecretAccess, SecretScope, SecretVisibility, Secrets, ServerInspection, type SingleEntry, Source, SourceBranch, SourceCheckRun, SourceCheckRunWrite, SourceCommitStatus, SourceFile, SourceRepoInfo, SourceRequiredChecks, SourceRulesetDetail, SourceSecurity, SourceTeamMember, type StackName, StatusCategory, Storage, StorageBranch, type StorybookDeployProject, SyncResult, type SyncRolesInput, type SyncRolesResult, type TaskEntry, type TaskEntryConfig, TeamEntry, TeamPermission, type TelemetryConfig, type TokenExpectation, type TokenExpectationFilter, type TokenLifetime, type TokenResolver, type TokenRotation, Tooling, ToolingDoctorReport, ToolingExportInput, ToolingExportIssue, ToolingExportResult, ToolingOpenInput, ToolingOpenLaunch, ToolingOpenPlan, ToolingOpenWant, ToolingWorkspaceFile, ToolingWorkspaceInput, ToolingWorkspaceResult, ToolingWorkspaceSide, ToolingWorkspaceState, TrackerDoctorReport, TrackerUser, TunnelRoute, Tunnels, type UnicodeReaction, Vault, type VerifyTokenFailure, type VerifyTokenResult, type VerifyTokenSuccess, WebhookDashboardInfo, WebhookVerificationError, type WhoamiInput, Wiki, WikiInspection, WikiInstanceState, WikiNavigationState, WikiOrganizationState, WikiProbe, WikiProvisionOpts, WikiProxyConfig, WikiPublishedState, WorkerDeploymentState, WorkerScriptState, Workers, type WorkflowWithConfig, compose, createRestClient, credentialsEnvironment, defineConfig, deriveCapabilities, deriveCompliance, deriveProfile, deriveStack, isMulti, loadConfig, missingCapabilities, readWorkspacePackageJsons, requiredChecksVerdict, resolveConfig, resolveEntry, resolvePluginPackage, resolveValue };
|
package/dist/index.mjs
CHANGED
|
@@ -8,6 +8,7 @@ import { readFile } from "node:fs/promises";
|
|
|
8
8
|
import { describeError, style } from "@theholocron/kyber/ui";
|
|
9
9
|
import { errorMessage } from "@theholocron/misc-utils";
|
|
10
10
|
import { createRestClient } from "@theholocron/http-client";
|
|
11
|
+
import { ConfigError as ConfigError$1 } from "@theholocron/kyber/config";
|
|
11
12
|
import { connectionProbe as connectionProbe$1 } from "@theholocron/kyber/checks";
|
|
12
13
|
import { readPackageJson } from "@theholocron/pkg-utils";
|
|
13
14
|
import { fstatSync, mkdirSync } from "node:fs";
|
|
@@ -1206,6 +1207,38 @@ function areaLabelsForTitle(title, scopes) {
|
|
|
1206
1207
|
}
|
|
1207
1208
|
return labels;
|
|
1208
1209
|
}
|
|
1210
|
+
// src/commands/forbidden-token-layers/forbidden-token-layers.ts
|
|
1211
|
+
/**
|
|
1212
|
+
* Reads the layers a plugin's tokens forbid (`TokenExpectation.forbiddenLayers`, #2825) as one entry per token and
|
|
1213
|
+
* layer, in the order of `ENVIRONMENT_LAYERS`: the Environments that must not hold the token at all. A separate reader
|
|
1214
|
+
* from `tokenExpectations()`, which lists only the layers that hold a token, so the probes, the rotation readers and the
|
|
1215
|
+
* docs check never see a forbidden layer. A token with no `forbiddenLayers` yields nothing.
|
|
1216
|
+
*
|
|
1217
|
+
* @throws {ConfigError} For a layer that is not one of `ENVIRONMENT_LAYERS` (every layer word reads a vault
|
|
1218
|
+
* Environment, so none is left out), and for a layer a token is both declared for (`layers`, or a key of
|
|
1219
|
+
* `permissions`) and forbids: the declaration contradicts itself.
|
|
1220
|
+
*/
|
|
1221
|
+
function forbiddenTokenLayers(tokens, filter = {}) {
|
|
1222
|
+
const found = [];
|
|
1223
|
+
for (const token of tokens) {
|
|
1224
|
+
const { forbiddenLayers: forbidden, layers = [], permissions = {} } = token.expect ?? {};
|
|
1225
|
+
if (!forbidden || filter.envName !== void 0 && token.envName !== filter.envName) continue;
|
|
1226
|
+
const unknown = forbidden.find((layer) => !isEnvironmentLayer(layer));
|
|
1227
|
+
if (unknown !== void 0) throw new ConfigError$1(`${token.envName} forbids the layer ${JSON.stringify(unknown)}: use one of ${ENVIRONMENT_LAYERS.join(", ")}`);
|
|
1228
|
+
const declaredFor = ENVIRONMENT_LAYERS.filter((layer) => layers.includes(layer) || permissions[layer]);
|
|
1229
|
+
const both = declaredFor.find((layer) => forbidden.includes(layer));
|
|
1230
|
+
if (both !== void 0) throw new ConfigError$1(`${token.envName} is both declared for and forbidden in the ${both} layer`);
|
|
1231
|
+
for (const layer of ENVIRONMENT_LAYERS) {
|
|
1232
|
+
if (!forbidden.includes(layer) || filter.layer !== void 0 && filter.layer !== layer) continue;
|
|
1233
|
+
found.push({
|
|
1234
|
+
envName: token.envName,
|
|
1235
|
+
layer,
|
|
1236
|
+
declaredFor
|
|
1237
|
+
});
|
|
1238
|
+
}
|
|
1239
|
+
}
|
|
1240
|
+
return found;
|
|
1241
|
+
}
|
|
1209
1242
|
// src/commands/token-rotation/token-rotation.ts
|
|
1210
1243
|
/** The rotation policy of a token that declares none: a token is due after 90 days, and an expiry is flagged 14 days ahead. */
|
|
1211
1244
|
const DEFAULT_TOKEN_ROTATION = {
|
|
@@ -1476,4 +1509,4 @@ function resolveCredentialsFile(base, file, makeDir = (dir) => void mkdirSync(di
|
|
|
1476
1509
|
isDefault: true
|
|
1477
1510
|
};
|
|
1478
1511
|
}
|
|
1479
|
-
export { AGGREGATE_CHECK_NAME, AGGREGATE_SHADOW_CHECK_NAME, AREA_LABEL_COLOR, AREA_PREFIX, AuthError, BUILTIN_TEMPLATES, CANONICAL_LABELS, CARDINALITY, CUSTOM_EMOJI, ConfigError, ConfigFileError, DEFAULT_TEMPLATES_DIR, DEFAULT_TOKEN_ROTATION, EMOJI_MEDIA_DIR, ElevationRequiredError, HOLOCRON_AREAS, KNOWN_STACK_DEPS, MAX_EMOJI_BYTES, MissingTokenError, PRIVATE_CREDENTIALS_FILE, ProviderApiError, REQUIRED_CAPABILITIES, ROTATION_LABELS, RULESET_NAME, SHARED_AREAS, WebhookVerificationError, areaForScope, areaLabelDefs, areaLabelsForFiles, areaLabelsForTitle, compose, configRequiredContexts, connectionProbe, coverageExpectations, createFeatureResolver, createResolveToken, createRestClient, credentialsEnvironment, defineConfig, deriveCapabilities, deriveCompliance, deriveProfile, deriveStack, emojiConflictProblem, ignoreAdvice, isMulti, keyring, layoutEmojis, layoutReactions, loadConfig, loadEmojiImage, missingCapabilities, orderKeys, parseReaction, pathMatches, pickByCreation, placeAreas, planPullRequestStatus, planReconcile, reactionProblem, reactionSpelling, readKeysLimited, readLinks, readWorkspacePackageJsons, reportProgress, requiredChecksVerdict, requiredFromContexts, resolveConfig, resolveCredentialsFile, resolveEntry, resolveEnvironmentId, resolvePluginPackage, resolveProjectOptions, resolveValue, roleTeamProblem, sourceProblem, stdoutKind, syncRoles, tagEmojiProblem, titleScopes, tokenExpectations, tokenRotationRows, whoamiAction };
|
|
1512
|
+
export { AGGREGATE_CHECK_NAME, AGGREGATE_SHADOW_CHECK_NAME, AREA_LABEL_COLOR, AREA_PREFIX, AuthError, BUILTIN_TEMPLATES, CANONICAL_LABELS, CARDINALITY, CUSTOM_EMOJI, ConfigError, ConfigFileError, DEFAULT_TEMPLATES_DIR, DEFAULT_TOKEN_ROTATION, EMOJI_MEDIA_DIR, ElevationRequiredError, HOLOCRON_AREAS, KNOWN_STACK_DEPS, MAX_EMOJI_BYTES, MissingTokenError, PRIVATE_CREDENTIALS_FILE, ProviderApiError, REQUIRED_CAPABILITIES, ROTATION_LABELS, RULESET_NAME, SHARED_AREAS, WebhookVerificationError, areaForScope, areaLabelDefs, areaLabelsForFiles, areaLabelsForTitle, compose, configRequiredContexts, connectionProbe, coverageExpectations, createFeatureResolver, createResolveToken, createRestClient, credentialsEnvironment, defineConfig, deriveCapabilities, deriveCompliance, deriveProfile, deriveStack, emojiConflictProblem, forbiddenTokenLayers, ignoreAdvice, isMulti, keyring, layoutEmojis, layoutReactions, loadConfig, loadEmojiImage, missingCapabilities, orderKeys, parseReaction, pathMatches, pickByCreation, placeAreas, planPullRequestStatus, planReconcile, reactionProblem, reactionSpelling, readKeysLimited, readLinks, readWorkspacePackageJsons, reportProgress, requiredChecksVerdict, requiredFromContexts, resolveConfig, resolveCredentialsFile, resolveEntry, resolveEnvironmentId, resolvePluginPackage, resolveProjectOptions, resolveValue, roleTeamProblem, sourceProblem, stdoutKind, syncRoles, tagEmojiProblem, titleScopes, tokenExpectations, tokenRotationRows, whoamiAction };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as CoverageUploadGroup, $n as
|
|
2
|
-
export { AddedItem, Analytics, Auth, AuthDescription, AuthEvent, AuthEventType, AuthIdentity, AuthUser, BoardField, BoardFieldType, BoardItem, BoardItemInput, BoardPullRequest, BoardPullRequestChecks, BoardRule, BoardState, BoardStatus, BoardStatusCategory, BoardSummary, BoardTemplate, BoardTemplateFile, BoardView, CARDINALITY, Cache, CacheTokenCheck, CapabilityImpls, CapabilityKey, Cardinality, CardinalityFor, Ci, CiRun, CiRunFilter, CiRunStatus, ConnectionStringOptions, CoreIssueKind, Coverage, CoverageConfigComponent, CoverageConfigDocumentation, CoverageConfigInput, CoverageExpectations, CoverageNameDiff, CoverageRepoReport, CoverageStatusContext, CoverageStatusInput, CoverageTokenCheck, CoverageUploadFlagResult, CoverageUploadGroup, CoverageUploadInput, CoverageUploadResult, CreateAuthUserInput, Credentials, CredentialsInspection, DeployFunctionConfig, DeployFunctionResult, DeployScriptConfig, DeployScriptResult, Deployment, DeploymentProject, DeploymentProjectSettings, DeploymentRecord, DeploymentTarget, DeploymentTrigger, DiscussionPatch, DiscussionPost, Dns, DnsRecord, DnsRecordRequest, DnsRecordType, DuplicateDiscussion, ElevationRequiredError, EmojiCheck, EnsureDiscussionInput, EnsureRelayInput, EnsureRelayResult, EnsureRelaySourceInput, EnsureRelaySourceResult, EnsureReport, EnsureResult, EnsureWebhookResult, EnsuredDiscussion, EnsuredResource, EnsuredTunnel, Environment, EnvironmentEntry, EnvironmentReviewer, Environments, Errors, ErrorsInspection, ErrorsOrgState, ErrorsProjectState, ExportInfo, IdeaRecord, Ideas, ImportOptions, ImportResult, InspectErrorsInput, InspectRelayInput, InspectRelaySourceInput, Issue, IssueClearable, IssueComment, IssueCreateInput, IssueEffort, IssueFields, IssueKind, IssueOrder, IssuePatch, IssuePriority, IssueRecord, IssueSearchFilter, IssueSelector, IssueTypeDeclaration, IssueTypeInfo, IssueUpdateResult, Issues, LabelDef, LifecycleResult, LifecycleSlot, Logs, LogsDataset, MissingTokenError, Monitoring, MonitoringAlertChannelInput, MonitoringAlertChannelResult, MonitoringAlertChannelState, MonitoringAlertSettings, MonitoringAssertion, MonitoringAssertionComparison, MonitoringAssertionSource, MonitoringCheck, MonitoringCheckInput, MonitoringDashboardInput, MonitoringDashboardState, MonitoringHeartbeatInput, MonitoringHeartbeatResult, MonitoringHeartbeatUnit, MonitoringHttpMethod, MonitoringIncident, MonitoringIncidentImpact, MonitoringIncidentInput, MonitoringIncidentQuery, MonitoringIncidentResolveInput, MonitoringIncidentStatus, MonitoringIncidentUpdate, MonitoringIncidentUpdateInput, MonitoringIncidentWrite, MonitoringStatusComponentInput, MonitoringStatusPageInput, MonitoringStatusPageResult, MonitoringStatusPageState, MoveReport, NormalizedAuthUser, Notifications, NotificationsAccess, NotificationsApplicationLayout, NotificationsChannelLayout, NotificationsDelivery, NotificationsEveryoneLayout, NotificationsForumTag, NotificationsLayout, NotificationsLinksLayout, NotificationsMember, NotificationsMonitoringFeed, NotificationsOnboardingLayout, NotificationsPicture, NotificationsPinnedLayout, NotificationsPostedMessage, NotificationsPrsFeed, NotificationsReaction, NotificationsRelaySource, NotificationsServerLayout, NotificationsSignIn, NotificationsSignedIn, NotificationsWelcomeLayout, OrganizationSecretScope, PagesConfig, ParseWebhookInput, Projects, ProviderApiError, ProviderIdentity, PullRequest, PullRequestChecks, PullRequestChecksState, PullRequestFields, PullRequestInput, PullRequestLink, PullRequestPatch, PullRequestResult, REQUIRED_CAPABILITIES, Registry, RelaySourceCapability, RelaySourceMethods, RelaySourceState, RelayState, RepoRef, RepoSettings, ResolvedCapability, Ruleset, SecretAccess, SecretScope, SecretVisibility, Secrets, ServerInspection, Source, SourceBranch, SourceCheckRun, SourceCheckRunWrite, SourceCommitStatus, SourceFile, SourceRepoInfo, SourceRequiredChecks, SourceRulesetDetail, SourceSecurity, SourceTeamMember, StatusCategory, Storage, StorageBranch, SyncResult, TeamEntry, TeamPermission, Tooling, ToolingDoctorReport, ToolingExportInput, ToolingExportIssue, ToolingExportResult, ToolingOpenInput, ToolingOpenLaunch, ToolingOpenPlan, ToolingOpenWant, ToolingWorkspaceFile, ToolingWorkspaceInput, ToolingWorkspaceResult, ToolingWorkspaceSide, ToolingWorkspaceState, TrackerDoctorReport, TrackerUser, TunnelRoute, Tunnels, Vault, WebhookDashboardInfo, WebhookVerificationError, Wiki, WikiInspection, WikiInstanceState, WikiNavigationState, WikiOrganizationState, WikiProbe, WikiProvisionOpts, WikiProxyConfig, WikiPublishedState, WorkerDeploymentState, WorkerScriptState, Workers, isMulti };
|
|
1
|
+
import { $ as CoverageUploadGroup, $n as NotificationsApplicationLayout, $r as SourceRequiredChecks, $t as IssueClearable, A as Cache, Ai as WikiInspection, An as MonitoringDashboardInput, Ar as PullRequestPatch, At as EnsureWebhookResult, B as ConnectionStringOptions, Bi as Workers, Bn as MonitoringIncidentResolveInput, Br as Ruleset, Bt as ErrorsOrgState, C as BoardState, Ci as TrackerDoctorReport, Cn as MonitoringAlertChannelState, Cr as ProviderIdentity, Ct as EnsureDiscussionInput, D as BoardTemplate, Di as Vault, Dn as MonitoringAssertionSource, Dr as PullRequestFields, Dt as EnsureRelaySourceResult, E as BoardSummary, Ei as Tunnels, En as MonitoringAssertionComparison, Er as PullRequestChecksState, Et as EnsureRelaySourceInput, F as CardinalityFor, Fi as WikiProvisionOpts, Fn as MonitoringHttpMethod, Fr as RelaySourceState, Ft as EnvironmentEntry, G as CoverageConfigInput, Gn as MonitoringStatusComponentInput, Gr as ServerInspection, Gt as IdeaRecord, H as Coverage, Hn as MonitoringIncidentUpdate, Hr as SecretScope, Ht as ExportInfo, I as Ci, Ii as WikiProxyConfig, In as MonitoringIncident, Ir as RelayState, It as EnvironmentReviewer, J as CoverageRepoReport, Jn as MonitoringStatusPageState, Jr as SourceCheckRun, Jt as ImportResult, K as CoverageExpectations, Kn as MonitoringStatusPageInput, Kr as Source, Kt as Ideas, L as CiRun, Li as WikiPublishedState, Ln as MonitoringIncidentImpact, Lr as RepoRef, Lt as Environments, M as CapabilityImpls, Mi as WikiNavigationState, Mn as MonitoringHeartbeatInput, Mr as Registry, Mt as EnsuredResource, N as CapabilityKey, Ni as WikiOrganizationState, Nn as MonitoringHeartbeatResult, Nr as RelaySourceCapability, Nt as EnsuredTunnel, O as BoardTemplateFile, Oi as WebhookDashboardInfo, On as MonitoringCheck, Or as PullRequestInput, Ot as EnsureReport, P as Cardinality, Pi as WikiProbe, Pn as MonitoringHeartbeatUnit, Pr as RelaySourceMethods, Pt as Environment, Q as CoverageUploadFlagResult, Qn as NotificationsAccess, Qr as SourceRepoInfo, Qt as Issue, R as CiRunFilter, Ri as WorkerDeploymentState, Rn as MonitoringIncidentInput, Rr as RepoSettings, Rt as Errors, S as BoardRule, Si as ToolingWorkspaceState, Sn as MonitoringAlertChannelResult, Sr as Projects, St as EmojiCheck, T as BoardStatusCategory, Ti as TunnelRoute, Tn as MonitoringAssertion, Tr as PullRequestChecks, Tt as EnsureRelayResult, U as CoverageConfigComponent, Un as MonitoringIncidentUpdateInput, Ur as SecretVisibility, Ut as HideLinkPreviewsInput, V as CoreIssueKind, Vn as MonitoringIncidentStatus, Vr as SecretAccess, Vt as ErrorsProjectState, W as CoverageConfigDocumentation, Wn as MonitoringIncidentWrite, Wr as Secrets, Wt as HideLinkPreviewsResult, X as CoverageStatusInput, Xn as NormalizedAuthUser, Xr as SourceCommitStatus, Xt as InspectRelayInput, Y as CoverageStatusContext, Yn as MoveReport, Yr as SourceCheckRunWrite, Yt as InspectErrorsInput, Z as CoverageTokenCheck, Zn as Notifications, Zr as SourceFile, Zt as InspectRelaySourceInput, _ as BoardFieldType, _i as ToolingOpenWant, _n as LifecycleSlot, _r as NotificationsSignedIn, _t as Dns, a as REQUIRED_CAPABILITIES, ai as StorageBranch, an as IssueOrder, ar as NotificationsLinksLayout, at as DeployFunctionConfig, b as BoardPullRequest, bi as ToolingWorkspaceResult, bn as Monitoring, br as PagesConfig, bt as DnsRecordType, c as AddedItem, ci as TeamPermission, cn as IssueRecord, cr as NotificationsOnboardingLayout, ct as DeployScriptResult, d as AuthDescription, di as ToolingExportInput, dn as IssueTypeDeclaration, dr as NotificationsPostedMessage, dt as DeploymentProjectSettings, ei as SourceRulesetDetail, en as IssueComment, er as NotificationsChannelLayout, et as CoverageUploadInput, f as AuthEvent, fi as ToolingExportIssue, fn as IssueTypeInfo, fr as NotificationsPrsFeed, ft as DeploymentRecord, g as BoardField, gi as ToolingOpenPlan, gn as LifecycleResult, gr as NotificationsSignIn, gt as DiscussionPost, h as AuthUser, hi as ToolingOpenLaunch, hn as LabelDef, hr as NotificationsServerLayout, ht as DiscussionPatch, i as ProviderApiError, ii as Storage, in as IssueKind, ir as NotificationsLayout, it as CredentialsInspection, j as CacheTokenCheck, ji as WikiInstanceState, jn as MonitoringDashboardState, jr as PullRequestResult, jt as EnsuredDiscussion, k as BoardView, ki as Wiki, kn as MonitoringCheckInput, kr as PullRequestLink, kt as EnsureResult, l as Analytics, li as Tooling, ln as IssueSearchFilter, lr as NotificationsPicture, lt as Deployment, m as AuthIdentity, mi as ToolingOpenInput, mn as Issues, mr as NotificationsRelaySource, mt as DeploymentTrigger, n as ElevationRequiredError, ni as SourceTeamMember, nn as IssueEffort, nr as NotificationsEveryoneLayout, nt as CreateAuthUserInput, o as WebhookVerificationError, oi as SyncResult, on as IssuePatch, or as NotificationsMember, ot as DeployFunctionResult, p as AuthEventType, pi as ToolingExportResult, pn as IssueUpdateResult, pr as NotificationsReaction, pt as DeploymentTarget, q as CoverageNameDiff, qn as MonitoringStatusPageResult, qr as SourceBranch, qt as ImportOptions, r as MissingTokenError, ri as StatusCategory, rn as IssueFields, rr as NotificationsForumTag, rt as Credentials, s as isMulti, si as TeamEntry, sn as IssuePriority, sr as NotificationsMonitoringFeed, st as DeployScriptConfig, t as CARDINALITY, ti as SourceSecurity, tn as IssueCreateInput, tr as NotificationsDelivery, tt as CoverageUploadResult, u as Auth, ui as ToolingDoctorReport, un as IssueSelector, ur as NotificationsPinnedLayout, ut as DeploymentProject, v as BoardItem, vi as ToolingWorkspaceFile, vn as Logs, vr as NotificationsWelcomeLayout, vt as DnsRecord, w as BoardStatus, wi as TrackerUser, wn as MonitoringAlertSettings, wr as PullRequest, wt as EnsureRelayInput, x as BoardPullRequestChecks, xi as ToolingWorkspaceSide, xn as MonitoringAlertChannelInput, xr as ParseWebhookInput, xt as DuplicateDiscussion, y as BoardItemInput, yi as ToolingWorkspaceInput, yn as LogsDataset, yr as OrganizationSecretScope, yt as DnsRecordRequest, z as CiRunStatus, zi as WorkerScriptState, zn as MonitoringIncidentQuery, zr as ResolvedCapability, zt as ErrorsInspection } from "../index-Bcwg0g8i.mjs";
|
|
2
|
+
export { AddedItem, Analytics, Auth, AuthDescription, AuthEvent, AuthEventType, AuthIdentity, AuthUser, BoardField, BoardFieldType, BoardItem, BoardItemInput, BoardPullRequest, BoardPullRequestChecks, BoardRule, BoardState, BoardStatus, BoardStatusCategory, BoardSummary, BoardTemplate, BoardTemplateFile, BoardView, CARDINALITY, Cache, CacheTokenCheck, CapabilityImpls, CapabilityKey, Cardinality, CardinalityFor, Ci, CiRun, CiRunFilter, CiRunStatus, ConnectionStringOptions, CoreIssueKind, Coverage, CoverageConfigComponent, CoverageConfigDocumentation, CoverageConfigInput, CoverageExpectations, CoverageNameDiff, CoverageRepoReport, CoverageStatusContext, CoverageStatusInput, CoverageTokenCheck, CoverageUploadFlagResult, CoverageUploadGroup, CoverageUploadInput, CoverageUploadResult, CreateAuthUserInput, Credentials, CredentialsInspection, DeployFunctionConfig, DeployFunctionResult, DeployScriptConfig, DeployScriptResult, Deployment, DeploymentProject, DeploymentProjectSettings, DeploymentRecord, DeploymentTarget, DeploymentTrigger, DiscussionPatch, DiscussionPost, Dns, DnsRecord, DnsRecordRequest, DnsRecordType, DuplicateDiscussion, ElevationRequiredError, EmojiCheck, EnsureDiscussionInput, EnsureRelayInput, EnsureRelayResult, EnsureRelaySourceInput, EnsureRelaySourceResult, EnsureReport, EnsureResult, EnsureWebhookResult, EnsuredDiscussion, EnsuredResource, EnsuredTunnel, Environment, EnvironmentEntry, EnvironmentReviewer, Environments, Errors, ErrorsInspection, ErrorsOrgState, ErrorsProjectState, ExportInfo, HideLinkPreviewsInput, HideLinkPreviewsResult, IdeaRecord, Ideas, ImportOptions, ImportResult, InspectErrorsInput, InspectRelayInput, InspectRelaySourceInput, Issue, IssueClearable, IssueComment, IssueCreateInput, IssueEffort, IssueFields, IssueKind, IssueOrder, IssuePatch, IssuePriority, IssueRecord, IssueSearchFilter, IssueSelector, IssueTypeDeclaration, IssueTypeInfo, IssueUpdateResult, Issues, LabelDef, LifecycleResult, LifecycleSlot, Logs, LogsDataset, MissingTokenError, Monitoring, MonitoringAlertChannelInput, MonitoringAlertChannelResult, MonitoringAlertChannelState, MonitoringAlertSettings, MonitoringAssertion, MonitoringAssertionComparison, MonitoringAssertionSource, MonitoringCheck, MonitoringCheckInput, MonitoringDashboardInput, MonitoringDashboardState, MonitoringHeartbeatInput, MonitoringHeartbeatResult, MonitoringHeartbeatUnit, MonitoringHttpMethod, MonitoringIncident, MonitoringIncidentImpact, MonitoringIncidentInput, MonitoringIncidentQuery, MonitoringIncidentResolveInput, MonitoringIncidentStatus, MonitoringIncidentUpdate, MonitoringIncidentUpdateInput, MonitoringIncidentWrite, MonitoringStatusComponentInput, MonitoringStatusPageInput, MonitoringStatusPageResult, MonitoringStatusPageState, MoveReport, NormalizedAuthUser, Notifications, NotificationsAccess, NotificationsApplicationLayout, NotificationsChannelLayout, NotificationsDelivery, NotificationsEveryoneLayout, NotificationsForumTag, NotificationsLayout, NotificationsLinksLayout, NotificationsMember, NotificationsMonitoringFeed, NotificationsOnboardingLayout, NotificationsPicture, NotificationsPinnedLayout, NotificationsPostedMessage, NotificationsPrsFeed, NotificationsReaction, NotificationsRelaySource, NotificationsServerLayout, NotificationsSignIn, NotificationsSignedIn, NotificationsWelcomeLayout, OrganizationSecretScope, PagesConfig, ParseWebhookInput, Projects, ProviderApiError, ProviderIdentity, PullRequest, PullRequestChecks, PullRequestChecksState, PullRequestFields, PullRequestInput, PullRequestLink, PullRequestPatch, PullRequestResult, REQUIRED_CAPABILITIES, Registry, RelaySourceCapability, RelaySourceMethods, RelaySourceState, RelayState, RepoRef, RepoSettings, ResolvedCapability, Ruleset, SecretAccess, SecretScope, SecretVisibility, Secrets, ServerInspection, Source, SourceBranch, SourceCheckRun, SourceCheckRunWrite, SourceCommitStatus, SourceFile, SourceRepoInfo, SourceRequiredChecks, SourceRulesetDetail, SourceSecurity, SourceTeamMember, StatusCategory, Storage, StorageBranch, SyncResult, TeamEntry, TeamPermission, Tooling, ToolingDoctorReport, ToolingExportInput, ToolingExportIssue, ToolingExportResult, ToolingOpenInput, ToolingOpenLaunch, ToolingOpenPlan, ToolingOpenWant, ToolingWorkspaceFile, ToolingWorkspaceInput, ToolingWorkspaceResult, ToolingWorkspaceSide, ToolingWorkspaceState, TrackerDoctorReport, TrackerUser, TunnelRoute, Tunnels, Vault, WebhookDashboardInfo, WebhookVerificationError, Wiki, WikiInspection, WikiInstanceState, WikiNavigationState, WikiOrganizationState, WikiProbe, WikiProvisionOpts, WikiProxyConfig, WikiPublishedState, WorkerDeploymentState, WorkerScriptState, Workers, isMulti };
|
package/dist/presets.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $i as compose, ia as ComposedPreset, ra as Capability } from "./index-Bcwg0g8i.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.
|
|
3
|
+
"version": "5.0.0-alpha.590",
|
|
4
4
|
"description": "The Holocron CLI - a pluggable, capability-based orchestrator for spinning up and operating software projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -49,41 +49,41 @@
|
|
|
49
49
|
"@inquirer/prompts": "^8.8.1",
|
|
50
50
|
"@inquirer/search": "^4.4.1",
|
|
51
51
|
"@napi-rs/keyring": "^2.1.2",
|
|
52
|
-
"@sentry/node": "^11.
|
|
52
|
+
"@sentry/node": "^11.20.0",
|
|
53
53
|
"chalk": "^6.0.1",
|
|
54
54
|
"clipboardy": "^5.3.2",
|
|
55
55
|
"dotenv": "^18.0.10",
|
|
56
56
|
"ora": "^10.0.0",
|
|
57
57
|
"pino": "^10.4.0",
|
|
58
58
|
"pino-pretty": "^13.2.0",
|
|
59
|
-
"posthog-node": "^6.0
|
|
59
|
+
"posthog-node": "^6.2.0",
|
|
60
60
|
"tsx": "4.23.15",
|
|
61
61
|
"yargs": "^18.1.0",
|
|
62
|
-
"@theholocron/astromech": "5.0.0-alpha.
|
|
63
|
-
"@theholocron/dagobah": "5.0.0-alpha.
|
|
64
|
-
"@theholocron/datapad": "5.0.0-alpha.
|
|
62
|
+
"@theholocron/astromech": "5.0.0-alpha.590",
|
|
63
|
+
"@theholocron/dagobah": "5.0.0-alpha.590",
|
|
64
|
+
"@theholocron/datapad": "5.0.0-alpha.590",
|
|
65
65
|
"@theholocron/env-utils": "^1.17.0-alpha.9",
|
|
66
66
|
"@theholocron/fs-utils": "^1.17.0-alpha.9",
|
|
67
67
|
"@theholocron/git-utils": "^1.17.0-alpha.9",
|
|
68
|
-
"@theholocron/github-client": "^1.58.0-alpha.
|
|
69
|
-
"@theholocron/http-client": "^1.58.0-alpha.
|
|
68
|
+
"@theholocron/github-client": "^1.58.0-alpha.73",
|
|
69
|
+
"@theholocron/http-client": "^1.58.0-alpha.73",
|
|
70
70
|
"@theholocron/json-utils": "^1.17.0-alpha.9",
|
|
71
|
-
"@theholocron/kyber": "5.0.0-alpha.
|
|
72
|
-
"@theholocron/misc-utils": "^1.17.0-alpha.9",
|
|
71
|
+
"@theholocron/kyber": "5.0.0-alpha.590",
|
|
73
72
|
"@theholocron/observability": "^0.7.0-alpha.9",
|
|
74
|
-
"@theholocron/pkg-utils": "^1.17.0-alpha.9"
|
|
73
|
+
"@theholocron/pkg-utils": "^1.17.0-alpha.9",
|
|
74
|
+
"@theholocron/misc-utils": "^1.17.0-alpha.9"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@types/node": "^26",
|
|
78
78
|
"@types/yargs": "^17.0.35",
|
|
79
|
-
"@vitest/coverage-v8": "^5.1.
|
|
79
|
+
"@vitest/coverage-v8": "^5.1.2",
|
|
80
80
|
"@vitest/eslint-plugin": "^1.6.28",
|
|
81
|
-
"eslint": "^10.
|
|
82
|
-
"eslint-plugin-n": "^18.
|
|
81
|
+
"eslint": "^10.16.0",
|
|
82
|
+
"eslint-plugin-n": "^18.6.0",
|
|
83
83
|
"globals": "^17.14.0",
|
|
84
84
|
"tsdown": "^0.23.7",
|
|
85
85
|
"typescript": "^6.0.3",
|
|
86
|
-
"vitest": "^5.1.
|
|
86
|
+
"vitest": "^5.1.2",
|
|
87
87
|
"@theholocron/eslint-config": "^8.9.0-alpha.24",
|
|
88
88
|
"@theholocron/rollup-plugin-transform-template": "^8.9.0-alpha.24",
|
|
89
89
|
"@theholocron/tsconfig": "^8.9.0-alpha.24",
|