@theholocron/cli 5.0.0-alpha.490 → 5.0.0-alpha.492

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.
@@ -3307,6 +3307,17 @@ type NotificationsPicture = string | {
3307
3307
  url?: string;
3308
3308
  image?: string;
3309
3309
  };
3310
+ /**
3311
+ * A forum reaction as a layout writes it: a Unicode emoji (`"✅"`, used as it stands), or one of the server's own emoji
3312
+ * with its name between colons (`":git_merge:"`, the name Discord shows; 2 to 32 letters, digits and underscores).
3313
+ * The object form, `{ emoji: ":git_merge:", image: ".holocron/media/emoji/git_merge.png" }`, also says where `setup`
3314
+ * finds a picture to make the emoji from when the server has none (a file under `.holocron/media/`: PNG, JPEG, GIF,
3315
+ * WebP or AVIF, at most 256 KiB). `setup` never changes or deletes an emoji the server already has.
3316
+ */
3317
+ type NotificationsReaction = string | {
3318
+ emoji: string;
3319
+ image?: string;
3320
+ };
3310
3321
  /** The object form of a channel's `feeds.monitoring`: the names, picture and alert settings of its monitoring feed. */
3311
3322
  interface NotificationsMonitoringFeed {
3312
3323
  /** The alert channel's name; default `Message to #<channel>`. */
@@ -3339,15 +3350,17 @@ interface NotificationsChannelLayout {
3339
3350
  /**
3340
3351
  * The emoji Discord offers as the first reaction on every post of a forum (Get Started: "Set a default reaction
3341
3352
  * for posts"). Only for `kind: "forum"`. Discord allows exactly one per forum, so the rest of a set go in
3342
- * {@link NotificationsChannelLayout.starterReactions}. A Unicode emoji (`"👍"`); custom emoji are not supported.
3353
+ * {@link NotificationsChannelLayout.starterReactions}. A Unicode emoji (`"👍"`) or one of the server's own, named
3354
+ * between colons (`":git_merge:"`; see {@link NotificationsReaction}).
3343
3355
  */
3344
- defaultReaction?: string;
3356
+ defaultReaction?: NotificationsReaction;
3345
3357
  /**
3346
3358
  * Reactions the bot adds to the first message of each post it makes, so a conversation starts with the ways to
3347
3359
  * answer already there (`["✅", "❌", "❓"]` for approve, disapprove, question). Only for `kind: "forum"`. Posts that
3348
- * exist are left alone. Reacting needs the Add Reactions permission.
3360
+ * exist are left alone. Reacting needs the Add Reactions permission. Each is a Unicode emoji or a server emoji
3361
+ * (see {@link NotificationsReaction}).
3349
3362
  */
3350
- starterReactions?: string[];
3363
+ starterReactions?: NotificationsReaction[];
3351
3364
  /** Who may see and post. Overrides the category's, field by field. */
3352
3365
  access?: NotificationsAccess;
3353
3366
  /**
@@ -3702,6 +3715,10 @@ interface ServerInspection {
3702
3715
  };
3703
3716
  /** Set when reading the bot's roles failed; `botPermissions` is then absent and means nothing. */
3704
3717
  botPermissionsError?: string;
3718
+ /** The names (without colons) of the server's emoji, read only when the layout names a server emoji. */
3719
+ emojis?: string[];
3720
+ /** Set when reading the server's emoji failed; `emojis` is then absent and means nothing. */
3721
+ emojisError?: string;
3705
3722
  /** Names of the categories on the server. */
3706
3723
  categories: string[];
3707
3724
  /**
@@ -3719,7 +3736,10 @@ interface ServerInspection {
3719
3736
  kind?: "text" | "forum";
3720
3737
  /** The tags of a forum, in the layout's terms. Absent for a text channel. */
3721
3738
  tags?: NotificationsForumTag[];
3722
- /** The default reaction of a forum, as the layout would spell it. Absent when none is set or for a text channel. */
3739
+ /**
3740
+ * The default reaction of a forum, as the layout would spell it (`":name:"` for a server emoji, the character for
3741
+ * a Unicode one). Absent when none is set or for a text channel.
3742
+ */
3723
3743
  defaultReaction?: string;
3724
3744
  /** Names of the webhooks on the channel. Only filled in for channels the layout gives a webhook or a feed. */
3725
3745
  webhooks: string[];
@@ -3834,8 +3854,19 @@ interface Notifications extends ProviderIdentity {
3834
3854
  kind?: "text" | "forum";
3835
3855
  /** The tags of a forum; see {@link NotificationsChannelLayout.tags}. */
3836
3856
  tags?: NotificationsForumTag[];
3837
- /** The default reaction of a forum; see {@link NotificationsChannelLayout.defaultReaction}. */
3838
- defaultReaction?: string;
3857
+ /**
3858
+ * The default reaction of a forum; see {@link NotificationsChannelLayout.defaultReaction}. A server emoji that
3859
+ * the server does not have is an error naming it.
3860
+ */
3861
+ defaultReaction?: NotificationsReaction;
3862
+ }): Promise<EnsuredResource>;
3863
+ /**
3864
+ * Find the server emoji named `name` (without colons) or make it from `image`, a `data:` URI. An emoji that
3865
+ * exists is left exactly as it is: never replaced, renamed or deleted, and `image` is not compared with it.
3866
+ */
3867
+ ensureEmoji?(input: {
3868
+ name: string;
3869
+ image: string;
3839
3870
  }): Promise<EnsuredResource>;
3840
3871
  /** Find or create a webhook named `name` on the channel, creating the channel first if it is missing. */
3841
3872
  ensureWebhook?(input: {
@@ -4445,6 +4476,8 @@ interface BoardItem {
4445
4476
  priority?: IssuePriority;
4446
4477
  /** The pull requests that close this issue, when the provider reads them. */
4447
4478
  pullRequests?: BoardPullRequest[];
4479
+ /** Why the provider could not read the pull requests of this item; the pull-request rules are then not applied to it. */
4480
+ pullRequestsProblem?: string;
4448
4481
  }
4449
4482
  /** The state of the aggregate required check on a pull request's head commit. */
4450
4483
  type BoardPullRequestChecks = "success" | "failure" | "pending" | "none";
@@ -4909,4 +4942,4 @@ declare class WebhookVerificationError extends Error {
4909
4942
  }
4910
4943
  /** Whether `key` is a capability that can have several providers active at once. */
4911
4944
  declare function isMulti<K extends CapabilityKey>(key: K): CardinalityFor<K> extends "many" ? true : false;
4912
- export { CoverageUploadInput as $, ResolvedProviderEntry as $i, RepoSettings as $n, deriveCapabilities as $r, LabelDef as $t, Cache as A, DocsConfig as Ai, NotificationsDelivery as An, ToolingWorkspaceInput as Ar, Environment as At, ConnectionStringOptions as B, ProviderOptions as Bi, NotificationsPrsFeed as Bn, Wiki as Br, Ideas as Bt, BoardState as C, AgentOptions as Ci, MonitoringStatusPageState as Cn, ToolingExportIssue as Cr, EnsureRelayResult as Ct, BoardTemplate as D, CredentialsConfig as Di, NotificationsAccess as Dn, ToolingOpenPlan as Dr, EnsuredDiscussion as Dt, BoardSummary as E, ChromaticProjectConfig as Ei, Notifications as En, ToolingOpenLaunch as Er, EnsureWebhookResult as Et, CardinalityFor as F, HolocronConfig as Fi, NotificationsMember as Fn, TrackerUser as Fr, ErrorsInspection as Ft, CoverageExpectations as G, RepoProtection as Gi, OrganizationSecretScope as Gn, WikiProbe as Gr, Issue as Gt, CoverageConfigComponent as H, RawProvidersConfig as Hi, NotificationsSignIn as Hn, WikiInstanceState as Hr, ImportResult as Ht, Ci as I, IdeasConfig as Ii, NotificationsMonitoringFeed as In, TunnelRoute as Ir, ErrorsOrgState as It, CoverageStatusContext as J, RepoSecretsSync as Ji, Projects as Jn, WikiPublishedState as Jr, IssuePriority as Jt, CoverageNameDiff as K, RepoSecrets as Ki, PagesConfig as Kn, WikiProvisionOpts as Kr, IssueComment as Kt, CiRun as L, LogConfig as Li, NotificationsOnboardingLayout as Ln, Tunnels as Lr, ErrorsProjectState as Lt, CapabilityImpls as M, EnvConfig as Mi, NotificationsForumTag as Mn, ToolingWorkspaceSide as Mr, EnvironmentReviewer as Mt, CapabilityKey as N, EslintConfig as Ni, NotificationsLayout as Nn, ToolingWorkspaceState as Nr, Environments as Nt, BoardTemplateFile as O, DevConfig as Oi, NotificationsApplicationLayout as On, ToolingOpenWant as Or, EnsuredResource as Ot, Cardinality as P, GitHubAppConfig as Pi, NotificationsLinksLayout as Pn, TrackerDoctorReport as Pr, Errors as Pt, CoverageUploadGroup as Q, ResolvedHolocronConfig as Qi, RepoRef as Qn, KNOWN_STACK_DEPS as Qr, Issues as Qt, CiRunFilter as R, MultiEntry as Ri, NotificationsPicture as Rn, Vault as Rr, ExportInfo as Rt, BoardRule as S, AgentName as Si, MonitoringStatusPageResult as Sn, ToolingExportInput as Sr, EnsureRelayInput as St, BoardStatusCategory as T, CapabilityConfigPackage as Ti, NormalizedAuthUser as Tn, ToolingOpenInput as Tr, EnsureResult as Tt, CoverageConfigDocumentation as U, RepoConfig as Ui, NotificationsSignedIn as Un, WikiNavigationState as Ur, InspectErrorsInput as Ut, Coverage as V, RawProviderEntry as Vi, NotificationsServerLayout as Vn, WikiInspection as Vr, ImportOptions as Vt, CoverageConfigInput as W, RepoProperties as Wi, NotificationsWelcomeLayout as Wn, WikiOrganizationState as Wr, InspectRelayInput as Wt, CoverageTokenCheck as X, RepoVariables as Xi, PullRequest as Xn, WorkerScriptState as Xr, IssueSearchFilter as Xt, CoverageStatusInput as Y, RepoValidationConfig as Yi, ProviderIdentity as Yn, WorkerDeploymentState as Yr, IssueRecord as Yt, CoverageUploadFlagResult as Z, RepoVariablesSync as Zi, RelayState as Zn, Workers as Zr, IssueSelector as Zt, BoardFieldType as _, ConfigError as _i, MonitoringHeartbeatResult as _n, SyncResult as _r, DnsRecord as _t, REQUIRED_CAPABILITIES as a, TelemetryConfig as aa, DeriveProfileInput as ai, MonitoringAlertChannelInput as an, Secrets as ar, DeployFunctionResult as at, BoardPullRequest as b, resolveEntry as bi, MonitoringStatusComponentInput as bn, Tooling as br, DuplicateDiscussion as bt, AddedItem as c, StackName as ci, MonitoringAlertSettings as cn, SourceBranch as cr, Deployment as ct, AuthDescription as d, defineConfig as di, MonitoringAssertionSource as dn, SourceRulesetDetail as dr, DeploymentRecord as dt, ResolvedProvidersConfig as ea, deriveCompliance as ei, LifecycleResult as en, ResolvedCapability as er, CoverageUploadResult as et, AuthEvent as f, loadConfig as fi, MonitoringCheck as fn, SourceSecurity as fr, DeploymentTarget as ft, BoardField as g, TaskEntry as gi, MonitoringHeartbeatInput as gn, StorageBranch as gr, Dns as gt, AuthUser as h, ComposedPreset as hi, MonitoringDashboardState as hn, Storage as hr, DiscussionPost as ht, ProviderApiError as i, TaskEntryConfig as ia, readWorkspacePackageJsons as ii, Monitoring as in, SecretVisibility as ir, DeployFunctionConfig as it, CacheTokenCheck as j, DoctorConfig as ji, NotificationsEveryoneLayout as jn, ToolingWorkspaceResult as jr, EnvironmentEntry as jt, BoardView as k, DevServeConfig as ki, NotificationsChannelLayout as kn, ToolingWorkspaceFile as kr, EnsuredTunnel as kt, Analytics as l, ConfigFileError as li, MonitoringAssertion as ln, SourceFile as lr, DeploymentProject as lt, AuthIdentity as m, Capability as mi, MonitoringDashboardInput as mn, StatusCategory as mr, DiscussionPatch as mt, ElevationRequiredError as n, SingleEntry as na, deriveStack as ni, Logs as nn, SecretAccess as nr, Credentials as nt, WebhookVerificationError as o, WorkflowWithConfig as oa, HolocronProfile as oi, MonitoringAlertChannelResult as on, ServerInspection as or, DeployScriptConfig as ot, AuthEventType as p, LoadedConfig as pi, MonitoringCheckInput as pn, SourceTeamMember as pr, DeploymentTrigger as pt, CoverageRepoReport as q, RepoSecretsDeploy as qi, ParseWebhookInput as qn, WikiProxyConfig as qr, IssueOrder as qt, MissingTokenError as r, StorybookDeployProject as ra, missingCapabilities as ri, LogsDataset as rn, SecretScope as rr, CredentialsInspection as rt, isMulti as s, EnvironmentLayer as sa, PackageJsonLike as si, MonitoringAlertChannelState as sn, Source as sr, DeployScriptResult as st, CARDINALITY as t, ResolvedTuple as ta, deriveProfile as ti, LifecycleSlot as tn, Ruleset as tr, CreateAuthUserInput as tt, Auth as u, compose as ui, MonitoringAssertionComparison as un, SourceRepoInfo as ur, DeploymentProjectSettings as ut, BoardItem as v, credentialsEnvironment as vi, MonitoringHeartbeatUnit as vn, TeamEntry as vr, DnsRecordRequest as vt, BoardStatus as w, AppConfig as wi, MoveReport as wn, ToolingExportResult as wr, EnsureReport as wt, BoardPullRequestChecks as x, resolvePluginPackage as xi, MonitoringStatusPageInput as xn, ToolingDoctorReport as xr, EnsureDiscussionInput as xt, BoardItemInput as y, resolveConfig as yi, MonitoringHttpMethod as yn, TeamPermission as yr, DnsRecordType as yt, CiRunStatus as z, OrgConfig as zi, NotificationsPinnedLayout as zn, WebhookDashboardInfo as zr, IdeaRecord as zt };
4945
+ export { CoverageUploadInput as $, ResolvedHolocronConfig as $i, RepoRef as $n, KNOWN_STACK_DEPS as $r, LabelDef as $t, Cache as A, DevServeConfig as Ai, NotificationsDelivery as An, ToolingWorkspaceFile as Ar, Environment as At, ConnectionStringOptions as B, OrgConfig as Bi, NotificationsPrsFeed as Bn, WebhookDashboardInfo as Br, Ideas as Bt, BoardState as C, AgentName as Ci, MonitoringStatusPageState as Cn, ToolingExportInput as Cr, EnsureRelayResult as Ct, BoardTemplate as D, ChromaticProjectConfig as Di, NotificationsAccess as Dn, ToolingOpenLaunch as Dr, EnsuredDiscussion as Dt, BoardSummary as E, CapabilityConfigPackage as Ei, Notifications as En, ToolingOpenInput as Er, EnsureWebhookResult as Et, CardinalityFor as F, GitHubAppConfig as Fi, NotificationsMember as Fn, TrackerDoctorReport as Fr, ErrorsInspection as Ft, CoverageExpectations as G, RepoProperties as Gi, NotificationsWelcomeLayout as Gn, WikiOrganizationState as Gr, Issue as Gt, CoverageConfigComponent as H, RawProviderEntry as Hi, NotificationsServerLayout as Hn, WikiInspection as Hr, ImportResult as Ht, Ci as I, HolocronConfig as Ii, NotificationsMonitoringFeed as In, TrackerUser as Ir, ErrorsOrgState as It, CoverageStatusContext as J, RepoSecretsDeploy as Ji, ParseWebhookInput as Jn, WikiProxyConfig as Jr, IssuePriority as Jt, CoverageNameDiff as K, RepoProtection as Ki, OrganizationSecretScope as Kn, WikiProbe as Kr, IssueComment as Kt, CiRun as L, IdeasConfig as Li, NotificationsOnboardingLayout as Ln, TunnelRoute as Lr, ErrorsProjectState as Lt, CapabilityImpls as M, DoctorConfig as Mi, NotificationsForumTag as Mn, ToolingWorkspaceResult as Mr, EnvironmentReviewer as Mt, CapabilityKey as N, EnvConfig as Ni, NotificationsLayout as Nn, ToolingWorkspaceSide as Nr, Environments as Nt, BoardTemplateFile as O, CredentialsConfig as Oi, NotificationsApplicationLayout as On, ToolingOpenPlan as Or, EnsuredResource as Ot, Cardinality as P, EslintConfig as Pi, NotificationsLinksLayout as Pn, ToolingWorkspaceState as Pr, Errors as Pt, CoverageUploadGroup as Q, RepoVariablesSync as Qi, RelayState as Qn, Workers as Qr, Issues as Qt, CiRunFilter as R, LogConfig as Ri, NotificationsPicture as Rn, Tunnels as Rr, ExportInfo as Rt, BoardRule as S, resolvePluginPackage as Si, MonitoringStatusPageResult as Sn, ToolingDoctorReport as Sr, EnsureRelayInput as St, BoardStatusCategory as T, AppConfig as Ti, NormalizedAuthUser as Tn, ToolingExportResult as Tr, EnsureResult as Tt, CoverageConfigDocumentation as U, RawProvidersConfig as Ui, NotificationsSignIn as Un, WikiInstanceState as Ur, InspectErrorsInput as Ut, Coverage as V, ProviderOptions as Vi, NotificationsReaction as Vn, Wiki as Vr, ImportOptions as Vt, CoverageConfigInput as W, RepoConfig as Wi, NotificationsSignedIn as Wn, WikiNavigationState as Wr, InspectRelayInput as Wt, CoverageTokenCheck as X, RepoValidationConfig as Xi, ProviderIdentity as Xn, WorkerDeploymentState as Xr, IssueSearchFilter as Xt, CoverageStatusInput as Y, RepoSecretsSync as Yi, Projects as Yn, WikiPublishedState as Yr, IssueRecord as Yt, CoverageUploadFlagResult as Z, RepoVariables as Zi, PullRequest as Zn, WorkerScriptState as Zr, IssueSelector as Zt, BoardFieldType as _, TaskEntry as _i, MonitoringHeartbeatResult as _n, StorageBranch as _r, DnsRecord as _t, REQUIRED_CAPABILITIES as a, TaskEntryConfig as aa, readWorkspacePackageJsons as ai, MonitoringAlertChannelInput as an, SecretVisibility as ar, DeployFunctionResult as at, BoardPullRequest as b, resolveConfig as bi, MonitoringStatusComponentInput as bn, TeamPermission as br, DuplicateDiscussion as bt, AddedItem as c, EnvironmentLayer as ca, PackageJsonLike as ci, MonitoringAlertSettings as cn, Source as cr, Deployment as ct, AuthDescription as d, compose as di, MonitoringAssertionSource as dn, SourceRepoInfo as dr, DeploymentRecord as dt, ResolvedProviderEntry as ea, deriveCapabilities as ei, LifecycleResult as en, RepoSettings as er, CoverageUploadResult as et, AuthEvent as f, defineConfig as fi, MonitoringCheck as fn, SourceRulesetDetail as fr, DeploymentTarget as ft, BoardField as g, ComposedPreset as gi, MonitoringHeartbeatInput as gn, Storage as gr, Dns as gt, AuthUser as h, Capability as hi, MonitoringDashboardState as hn, StatusCategory as hr, DiscussionPost as ht, ProviderApiError as i, StorybookDeployProject as ia, missingCapabilities as ii, Monitoring as in, SecretScope as ir, DeployFunctionConfig as it, CacheTokenCheck as j, DocsConfig as ji, NotificationsEveryoneLayout as jn, ToolingWorkspaceInput as jr, EnvironmentEntry as jt, BoardView as k, DevConfig as ki, NotificationsChannelLayout as kn, ToolingOpenWant as kr, EnsuredTunnel as kt, Analytics as l, StackName as li, MonitoringAssertion as ln, SourceBranch as lr, DeploymentProject as lt, AuthIdentity as m, LoadedConfig as mi, MonitoringDashboardInput as mn, SourceTeamMember as mr, DiscussionPatch as mt, ElevationRequiredError as n, ResolvedTuple as na, deriveProfile as ni, Logs as nn, Ruleset as nr, Credentials as nt, WebhookVerificationError as o, TelemetryConfig as oa, DeriveProfileInput as oi, MonitoringAlertChannelResult as on, Secrets as or, DeployScriptConfig as ot, AuthEventType as p, loadConfig as pi, MonitoringCheckInput as pn, SourceSecurity as pr, DeploymentTrigger as pt, CoverageRepoReport as q, RepoSecrets as qi, PagesConfig as qn, WikiProvisionOpts as qr, IssueOrder as qt, MissingTokenError as r, SingleEntry as ra, deriveStack as ri, LogsDataset as rn, SecretAccess as rr, CredentialsInspection as rt, isMulti as s, WorkflowWithConfig as sa, HolocronProfile as si, MonitoringAlertChannelState as sn, ServerInspection as sr, DeployScriptResult as st, CARDINALITY as t, ResolvedProvidersConfig as ta, deriveCompliance as ti, LifecycleSlot as tn, ResolvedCapability as tr, CreateAuthUserInput as tt, Auth as u, ConfigFileError as ui, MonitoringAssertionComparison as un, SourceFile as ur, DeploymentProjectSettings as ut, BoardItem as v, ConfigError as vi, MonitoringHeartbeatUnit as vn, SyncResult as vr, DnsRecordRequest as vt, BoardStatus as w, AgentOptions as wi, MoveReport as wn, ToolingExportIssue as wr, EnsureReport as wt, BoardPullRequestChecks as x, resolveEntry as xi, MonitoringStatusPageInput as xn, Tooling as xr, EnsureDiscussionInput as xt, BoardItemInput as y, credentialsEnvironment as yi, MonitoringHttpMethod as yn, TeamEntry as yr, DnsRecordType as yt, CiRunStatus as z, MultiEntry as zi, NotificationsPinnedLayout as zn, Vault as zr, IdeaRecord as zt };
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as CoverageUploadInput, $i as ResolvedProviderEntry, $n as RepoSettings, $r as deriveCapabilities, $t as LabelDef, A as Cache, Ai as DocsConfig, An as NotificationsDelivery, Ar as ToolingWorkspaceInput, At as Environment, B as ConnectionStringOptions, Bi as ProviderOptions, Bn as NotificationsPrsFeed, Br as Wiki, Bt as Ideas, C as BoardState, Ci as AgentOptions, Cn as MonitoringStatusPageState, Cr as ToolingExportIssue, Ct as EnsureRelayResult, D as BoardTemplate, Di as CredentialsConfig, Dn as NotificationsAccess, Dr as ToolingOpenPlan, Dt as EnsuredDiscussion, E as BoardSummary, Ei as ChromaticProjectConfig, En as Notifications, Er as ToolingOpenLaunch, Et as EnsureWebhookResult, F as CardinalityFor, Fi as HolocronConfig, Fn as NotificationsMember, Fr as TrackerUser, Ft as ErrorsInspection, G as CoverageExpectations, Gi as RepoProtection, Gn as OrganizationSecretScope, Gr as WikiProbe, Gt as Issue, H as CoverageConfigComponent, Hi as RawProvidersConfig, Hn as NotificationsSignIn, Hr as WikiInstanceState, Ht as ImportResult, I as Ci, Ii as IdeasConfig, In as NotificationsMonitoringFeed, Ir as TunnelRoute, It as ErrorsOrgState, J as CoverageStatusContext, Ji as RepoSecretsSync, Jn as Projects, Jr as WikiPublishedState, Jt as IssuePriority, K as CoverageNameDiff, Ki as RepoSecrets, Kn as PagesConfig, Kr as WikiProvisionOpts, Kt as IssueComment, L as CiRun, Li as LogConfig, Ln as NotificationsOnboardingLayout, Lr as Tunnels, Lt as ErrorsProjectState, M as CapabilityImpls, Mi as EnvConfig, Mn as NotificationsForumTag, Mr as ToolingWorkspaceSide, Mt as EnvironmentReviewer, N as CapabilityKey, Ni as EslintConfig, Nn as NotificationsLayout, Nr as ToolingWorkspaceState, Nt as Environments, O as BoardTemplateFile, Oi as DevConfig, On as NotificationsApplicationLayout, Or as ToolingOpenWant, Ot as EnsuredResource, P as Cardinality, Pi as GitHubAppConfig, Pn as NotificationsLinksLayout, Pr as TrackerDoctorReport, Pt as Errors, Q as CoverageUploadGroup, Qi as ResolvedHolocronConfig, Qn as RepoRef, Qr as KNOWN_STACK_DEPS, Qt as Issues, R as CiRunFilter, Ri as MultiEntry, Rn as NotificationsPicture, Rr as Vault, Rt as ExportInfo, S as BoardRule, Si as AgentName, Sn as MonitoringStatusPageResult, Sr as ToolingExportInput, St as EnsureRelayInput, T as BoardStatusCategory, Ti as CapabilityConfigPackage, Tn as NormalizedAuthUser, Tr as ToolingOpenInput, Tt as EnsureResult, U as CoverageConfigDocumentation, Ui as RepoConfig, Un as NotificationsSignedIn, Ur as WikiNavigationState, Ut as InspectErrorsInput, V as Coverage, Vi as RawProviderEntry, Vn as NotificationsServerLayout, Vr as WikiInspection, Vt as ImportOptions, W as CoverageConfigInput, Wi as RepoProperties, Wn as NotificationsWelcomeLayout, Wr as WikiOrganizationState, Wt as InspectRelayInput, X as CoverageTokenCheck, Xi as RepoVariables, Xn as PullRequest, Xr as WorkerScriptState, Xt as IssueSearchFilter, Y as CoverageStatusInput, Yi as RepoValidationConfig, Yn as ProviderIdentity, Yr as WorkerDeploymentState, Yt as IssueRecord, Z as CoverageUploadFlagResult, Zi as RepoVariablesSync, Zn as RelayState, Zr as Workers, Zt as IssueSelector, _ as BoardFieldType, _i as ConfigError, _n as MonitoringHeartbeatResult, _r as SyncResult, _t as DnsRecord, a as REQUIRED_CAPABILITIES, aa as TelemetryConfig, ai as DeriveProfileInput, an as MonitoringAlertChannelInput, ar as Secrets, at as DeployFunctionResult, b as BoardPullRequest, bi as resolveEntry, bn as MonitoringStatusComponentInput, br as Tooling, bt as DuplicateDiscussion, c as AddedItem, ci as StackName, cn as MonitoringAlertSettings, cr as SourceBranch, ct as Deployment, d as AuthDescription, di as defineConfig, dn as MonitoringAssertionSource, dr as SourceRulesetDetail, dt as DeploymentRecord, ea as ResolvedProvidersConfig, ei as deriveCompliance, en as LifecycleResult, er as ResolvedCapability, et as CoverageUploadResult, f as AuthEvent, fi as loadConfig, fn as MonitoringCheck, fr as SourceSecurity, ft as DeploymentTarget, g as BoardField, gi as TaskEntry, gn as MonitoringHeartbeatInput, gr as StorageBranch, gt as Dns, h as AuthUser, hi as ComposedPreset, hn as MonitoringDashboardState, hr as Storage, ht as DiscussionPost, i as ProviderApiError, ia as TaskEntryConfig, ii as readWorkspacePackageJsons, in as Monitoring, ir as SecretVisibility, it as DeployFunctionConfig, j as CacheTokenCheck, ji as DoctorConfig, jn as NotificationsEveryoneLayout, jr as ToolingWorkspaceResult, jt as EnvironmentEntry, k as BoardView, ki as DevServeConfig, kn as NotificationsChannelLayout, kr as ToolingWorkspaceFile, kt as EnsuredTunnel, l as Analytics, li as ConfigFileError, ln as MonitoringAssertion, lr as SourceFile, lt as DeploymentProject, m as AuthIdentity, mi as Capability, mn as MonitoringDashboardInput, mr as StatusCategory, mt as DiscussionPatch, n as ElevationRequiredError, na as SingleEntry, ni as deriveStack, nn as Logs, nr as SecretAccess, nt as Credentials, o as WebhookVerificationError, oa as WorkflowWithConfig, oi as HolocronProfile, on as MonitoringAlertChannelResult, or as ServerInspection, ot as DeployScriptConfig, p as AuthEventType, pi as LoadedConfig, pn as MonitoringCheckInput, pr as SourceTeamMember, pt as DeploymentTrigger, q as CoverageRepoReport, qi as RepoSecretsDeploy, qn as ParseWebhookInput, qr as WikiProxyConfig, qt as IssueOrder, r as MissingTokenError, ra as StorybookDeployProject, ri as missingCapabilities, rn as LogsDataset, rr as SecretScope, rt as CredentialsInspection, s as isMulti, sa as EnvironmentLayer, si as PackageJsonLike, sn as MonitoringAlertChannelState, sr as Source, st as DeployScriptResult, t as CARDINALITY, ta as ResolvedTuple, ti as deriveProfile, tn as LifecycleSlot, tr as Ruleset, tt as CreateAuthUserInput, u as Auth, ui as compose, un as MonitoringAssertionComparison, ur as SourceRepoInfo, ut as DeploymentProjectSettings, v as BoardItem, vi as credentialsEnvironment, vn as MonitoringHeartbeatUnit, vr as TeamEntry, vt as DnsRecordRequest, w as BoardStatus, wi as AppConfig, wn as MoveReport, wr as ToolingExportResult, wt as EnsureReport, x as BoardPullRequestChecks, xi as resolvePluginPackage, xn as MonitoringStatusPageInput, xr as ToolingDoctorReport, xt as EnsureDiscussionInput, y as BoardItemInput, yi as resolveConfig, yn as MonitoringHttpMethod, yr as TeamPermission, yt as DnsRecordType, z as CiRunStatus, zi as OrgConfig, zn as NotificationsPinnedLayout, zr as WebhookDashboardInfo, zt as IdeaRecord } from "./index-BmhgIDmN.mjs";
1
+ import { $ as CoverageUploadInput, $i as ResolvedHolocronConfig, $n as RepoRef, $r as KNOWN_STACK_DEPS, $t as LabelDef, A as Cache, Ai as DevServeConfig, An as NotificationsDelivery, Ar as ToolingWorkspaceFile, At as Environment, B as ConnectionStringOptions, Bi as OrgConfig, Bn as NotificationsPrsFeed, Br as WebhookDashboardInfo, Bt as Ideas, C as BoardState, Ci as AgentName, Cn as MonitoringStatusPageState, Cr as ToolingExportInput, Ct as EnsureRelayResult, D as BoardTemplate, Di as ChromaticProjectConfig, Dn as NotificationsAccess, Dr as ToolingOpenLaunch, Dt as EnsuredDiscussion, E as BoardSummary, Ei as CapabilityConfigPackage, En as Notifications, Er as ToolingOpenInput, Et as EnsureWebhookResult, F as CardinalityFor, Fi as GitHubAppConfig, Fn as NotificationsMember, Fr as TrackerDoctorReport, Ft as ErrorsInspection, G as CoverageExpectations, Gi as RepoProperties, Gn as NotificationsWelcomeLayout, Gr as WikiOrganizationState, Gt as Issue, H as CoverageConfigComponent, Hi as RawProviderEntry, Hn as NotificationsServerLayout, Hr as WikiInspection, Ht as ImportResult, I as Ci, Ii as HolocronConfig, In as NotificationsMonitoringFeed, Ir as TrackerUser, It as ErrorsOrgState, J as CoverageStatusContext, Ji as RepoSecretsDeploy, Jn as ParseWebhookInput, Jr as WikiProxyConfig, Jt as IssuePriority, K as CoverageNameDiff, Ki as RepoProtection, Kn as OrganizationSecretScope, Kr as WikiProbe, Kt as IssueComment, L as CiRun, Li as IdeasConfig, Ln as NotificationsOnboardingLayout, Lr as TunnelRoute, Lt as ErrorsProjectState, M as CapabilityImpls, Mi as DoctorConfig, Mn as NotificationsForumTag, Mr as ToolingWorkspaceResult, Mt as EnvironmentReviewer, N as CapabilityKey, Ni as EnvConfig, Nn as NotificationsLayout, Nr as ToolingWorkspaceSide, Nt as Environments, O as BoardTemplateFile, Oi as CredentialsConfig, On as NotificationsApplicationLayout, Or as ToolingOpenPlan, Ot as EnsuredResource, P as Cardinality, Pi as EslintConfig, Pn as NotificationsLinksLayout, Pr as ToolingWorkspaceState, Pt as Errors, Q as CoverageUploadGroup, Qi as RepoVariablesSync, Qn as RelayState, Qr as Workers, Qt as Issues, R as CiRunFilter, Ri as LogConfig, Rn as NotificationsPicture, Rr as Tunnels, Rt as ExportInfo, S as BoardRule, Si as resolvePluginPackage, Sn as MonitoringStatusPageResult, Sr as ToolingDoctorReport, St as EnsureRelayInput, T as BoardStatusCategory, Ti as AppConfig, Tn as NormalizedAuthUser, Tr as ToolingExportResult, Tt as EnsureResult, U as CoverageConfigDocumentation, Ui as RawProvidersConfig, Un as NotificationsSignIn, Ur as WikiInstanceState, Ut as InspectErrorsInput, V as Coverage, Vi as ProviderOptions, Vn as NotificationsReaction, Vr as Wiki, Vt as ImportOptions, W as CoverageConfigInput, Wi as RepoConfig, Wn as NotificationsSignedIn, Wr as WikiNavigationState, Wt as InspectRelayInput, X as CoverageTokenCheck, Xi as RepoValidationConfig, Xn as ProviderIdentity, Xr as WorkerDeploymentState, Xt as IssueSearchFilter, Y as CoverageStatusInput, Yi as RepoSecretsSync, Yn as Projects, Yr as WikiPublishedState, Yt as IssueRecord, Z as CoverageUploadFlagResult, Zi as RepoVariables, Zn as PullRequest, Zr as WorkerScriptState, Zt as IssueSelector, _ as BoardFieldType, _i as TaskEntry, _n as MonitoringHeartbeatResult, _r as StorageBranch, _t as DnsRecord, a as REQUIRED_CAPABILITIES, aa as TaskEntryConfig, ai as readWorkspacePackageJsons, an as MonitoringAlertChannelInput, ar as SecretVisibility, at as DeployFunctionResult, b as BoardPullRequest, bi as resolveConfig, bn as MonitoringStatusComponentInput, br as TeamPermission, bt as DuplicateDiscussion, c as AddedItem, ca as EnvironmentLayer, ci as PackageJsonLike, cn as MonitoringAlertSettings, cr as Source, ct as Deployment, d as AuthDescription, di as compose, dn as MonitoringAssertionSource, dr as SourceRepoInfo, dt as DeploymentRecord, ea as ResolvedProviderEntry, ei as deriveCapabilities, en as LifecycleResult, er as RepoSettings, et as CoverageUploadResult, f as AuthEvent, fi as defineConfig, fn as MonitoringCheck, fr as SourceRulesetDetail, ft as DeploymentTarget, g as BoardField, gi as ComposedPreset, gn as MonitoringHeartbeatInput, gr as Storage, gt as Dns, h as AuthUser, hi as Capability, hn as MonitoringDashboardState, hr as StatusCategory, ht as DiscussionPost, i as ProviderApiError, ia as StorybookDeployProject, ii as missingCapabilities, in as Monitoring, ir as SecretScope, it as DeployFunctionConfig, j as CacheTokenCheck, ji as DocsConfig, jn as NotificationsEveryoneLayout, jr as ToolingWorkspaceInput, jt as EnvironmentEntry, k as BoardView, ki as DevConfig, kn as NotificationsChannelLayout, kr as ToolingOpenWant, kt as EnsuredTunnel, l as Analytics, li as StackName, ln as MonitoringAssertion, lr as SourceBranch, lt as DeploymentProject, m as AuthIdentity, mi as LoadedConfig, mn as MonitoringDashboardInput, mr as SourceTeamMember, mt as DiscussionPatch, n as ElevationRequiredError, na as ResolvedTuple, ni as deriveProfile, nn as Logs, nr as Ruleset, nt as Credentials, o as WebhookVerificationError, oa as TelemetryConfig, oi as DeriveProfileInput, on as MonitoringAlertChannelResult, or as Secrets, ot as DeployScriptConfig, p as AuthEventType, pi as loadConfig, pn as MonitoringCheckInput, pr as SourceSecurity, pt as DeploymentTrigger, q as CoverageRepoReport, qi as RepoSecrets, qn as PagesConfig, qr as WikiProvisionOpts, qt as IssueOrder, r as MissingTokenError, ra as SingleEntry, ri as deriveStack, rn as LogsDataset, rr as SecretAccess, rt as CredentialsInspection, s as isMulti, sa as WorkflowWithConfig, si as HolocronProfile, sn as MonitoringAlertChannelState, sr as ServerInspection, st as DeployScriptResult, t as CARDINALITY, ta as ResolvedProvidersConfig, ti as deriveCompliance, tn as LifecycleSlot, tr as ResolvedCapability, tt as CreateAuthUserInput, u as Auth, ui as ConfigFileError, un as MonitoringAssertionComparison, ur as SourceFile, ut as DeploymentProjectSettings, v as BoardItem, vi as ConfigError, vn as MonitoringHeartbeatUnit, vr as SyncResult, vt as DnsRecordRequest, w as BoardStatus, wi as AgentOptions, wn as MoveReport, wr as ToolingExportIssue, wt as EnsureReport, x as BoardPullRequestChecks, xi as resolveEntry, xn as MonitoringStatusPageInput, xr as Tooling, xt as EnsureDiscussionInput, y as BoardItemInput, yi as credentialsEnvironment, yn as MonitoringHttpMethod, yr as TeamEntry, yt as DnsRecordType, z as CiRunStatus, zi as MultiEntry, zn as NotificationsPinnedLayout, zr as Vault, zt as IdeaRecord } from "./index-CTe_yLan.mjs";
2
2
  import { AuthError, ResolveTokenConfig as ResolveTokenConfig$1, ResolveTokenInput, ResolveTokenInput as ResolveTokenInput$1, resolveValue } from "@theholocron/kyber/secrets";
3
3
  import { DocsCoverageMode } from "@theholocron/astromech";
4
4
  import { CheckRow } from "@theholocron/kyber/ui";
@@ -267,6 +267,68 @@ export interface ConnectionProbeInput extends Omit<ConnectionProbeInput$1, "veri
267
267
  * kyber's `connectionProbe`; this types the result as the plugin system's {@link Probe} and `verify` as `VerifyTokenResult`.
268
268
  */
269
269
  export declare function connectionProbe(input: ConnectionProbeInput): Probe;
270
+ /**
271
+ * The first server emoji a layout gives two different pictures, or undefined. One name is one emoji, so it can be made
272
+ * from one file only; the same file written twice is fine.
273
+ */
274
+ export declare function emojiConflictProblem(layout: NotificationsLayout): string | undefined;
275
+ /** One server emoji a layout's reactions name. */
276
+ interface LayoutEmoji {
277
+ /** The emoji's name, without colons. */
278
+ name: string;
279
+ /** The file in the repo it is made from when the server has none, as the layout wrote it. */
280
+ image?: string;
281
+ }
282
+ /**
283
+ * The server emoji a layout's forum reactions name (default and starter), once each, in the order the layout first
284
+ * names them. A name that is given an `image` anywhere keeps it, so the picture can sit on any one of its uses.
285
+ */
286
+ export declare function layoutEmojis(layout: NotificationsLayout | undefined): LayoutEmoji[];
287
+ /** Discord's limit for an emoji file ("256 KiB", its Emoji resource docs). */
288
+ export declare const MAX_EMOJI_BYTES: number;
289
+ /**
290
+ * Reads the picture an emoji is made from, a file in the repo, and returns it as a `data:` URI. The type comes from the
291
+ * first bytes, not the name, and a file Discord would refuse (larger than 256 KiB, or not a JPEG, PNG, GIF, WebP or
292
+ * AVIF image) is refused here, before anything is written. `read` is injected by tests.
293
+ */
294
+ export declare function loadEmojiImage(source: string, baseDir?: string, read?: (path: string) => Promise<Uint8Array>): Promise<string>;
295
+ /** A Unicode emoji, kept as written. */
296
+ interface UnicodeReaction {
297
+ /** Tells it from a server emoji. */
298
+ kind: "unicode";
299
+ /** The emoji character, as written. */
300
+ value: string;
301
+ }
302
+ /** One of the server's own emoji, by name. */
303
+ interface CustomReaction {
304
+ /** Tells it from a Unicode emoji. */
305
+ kind: "custom";
306
+ /** The emoji's name, without colons. */
307
+ name: string;
308
+ /** The file in the repo `setup` makes the emoji from when the server has none. */
309
+ image?: string;
310
+ }
311
+ /** A layout reaction after reading. */
312
+ type ParsedReaction = UnicodeReaction | CustomReaction;
313
+ /** A server emoji written as Discord shows it: `:name:`, the name 2 to 32 letters, digits and underscores. */
314
+ export declare const CUSTOM_EMOJI: RegExp;
315
+ /**
316
+ * Reads a layout reaction. `":git_merge:"` (or `{ emoji: ":git_merge:", image }`) is a server emoji named `git_merge`;
317
+ * any other string is a Unicode emoji and kept as written. It does not judge a value: `reactionProblem()` does, before
318
+ * anything is applied, so an invalid `emoji` here is kept as the name it was given.
319
+ */
320
+ export declare function parseReaction(reaction: NotificationsReaction): ParsedReaction;
321
+ /** The folder a layout's emoji pictures live in, as the webhook avatar's files do. */
322
+ export declare const EMOJI_MEDIA_DIR = ".holocron/media/";
323
+ /**
324
+ * The first reason a reaction cannot work, or undefined; `noun` names it in the message (`` `defaultReaction` ``, "a
325
+ * starter reaction"). A Unicode emoji must be a character, not a word (`git_merge` without colons would be sent to
326
+ * Discord as text), a server emoji `:name:` with a name Discord allows, and an `image` a file under `.holocron/media/`
327
+ * (a path, not a URL, with no `..` out of it). A `null` a config wrote is refused, not read as absent.
328
+ */
329
+ export declare function reactionProblem(noun: string, reaction: NotificationsReaction | null): string | undefined;
330
+ /** How a reaction is written in a layout and shown in a row: `:name:` for a server emoji, the character otherwise. */
331
+ export declare function reactionSpelling(reaction: NotificationsReaction): string;
270
332
  interface RoleSyncOutcome {
271
333
  role: string;
272
334
  team: string;
@@ -687,4 +749,4 @@ export declare const SHARED_AREAS: readonly ["org"];
687
749
  * is a `ConfigError` naming both (no merge, no precedence). With no area files the config is returned as it was.
688
750
  */
689
751
  export declare function placeAreas(areas: ConfigDirArea[], raw: HolocronConfig): HolocronConfig;
690
- export { 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, Coverage, CoverageConfigComponent, CoverageConfigDocumentation, CoverageConfigInput, CoverageExpectations, CoverageNameDiff, CoverageRepoReport, CoverageStatusContext, CoverageStatusInput, CoverageTokenCheck, CoverageUploadFlagResult, CoverageUploadGroup, CoverageUploadInput, CoverageUploadResult, CreateAuthUserInput, Credentials, type CredentialsConfig, CredentialsInspection, DeployFunctionConfig, DeployFunctionResult, DeployScriptConfig, DeployScriptResult, Deployment, DeploymentProject, DeploymentProjectSettings, DeploymentRecord, DeploymentTarget, DeploymentTrigger, type DeriveProfileInput, type DevConfig, type DevServeConfig, DiscussionPatch, DiscussionPost, Dns, DnsRecord, DnsRecordRequest, DnsRecordType, type DocsConfig, type DoctorConfig, DuplicateDiscussion, ElevationRequiredError, EnsureDiscussionInput, EnsureRelayInput, EnsureRelayResult, EnsureReport, EnsureResult, EnsureWebhookResult, EnsuredDiscussion, EnsuredResource, EnsuredTunnel, type EnvConfig, Environment, EnvironmentEntry, type EnvironmentLayer, EnvironmentReviewer, Environments, Errors, ErrorsInspection, ErrorsOrgState, ErrorsProjectState, type EslintConfig, ExportInfo, type FeatureResolver, type FeatureResolverConfig, type GitHubAppConfig, type HolocronConfig, type HolocronProfile, IdeaRecord, Ideas, type IdeasConfig, ImportOptions, ImportResult, InspectErrorsInput, InspectRelayInput, Issue, IssueComment, IssueOrder, IssuePriority, IssueRecord, IssueSearchFilter, IssueSelector, Issues, KNOWN_STACK_DEPS, LabelDef, type LayerTokenExpectation, LifecycleResult, LifecycleSlot, type LinksFile, type LoadedConfig, type LogConfig, Logs, LogsDataset, type MemberLink, MissingTokenError, Monitoring, MonitoringAlertChannelInput, MonitoringAlertChannelResult, MonitoringAlertChannelState, MonitoringAlertSettings, MonitoringAssertion, MonitoringAssertionComparison, MonitoringAssertionSource, MonitoringCheck, MonitoringCheckInput, MonitoringDashboardInput, MonitoringDashboardState, MonitoringHeartbeatInput, MonitoringHeartbeatResult, MonitoringHeartbeatUnit, MonitoringHttpMethod, MonitoringStatusComponentInput, MonitoringStatusPageInput, MonitoringStatusPageResult, MonitoringStatusPageState, MoveReport, type MultiEntry, NormalizedAuthUser, Notifications, NotificationsAccess, NotificationsApplicationLayout, NotificationsChannelLayout, NotificationsDelivery, NotificationsEveryoneLayout, NotificationsForumTag, NotificationsLayout, NotificationsLinksLayout, NotificationsMember, NotificationsMonitoringFeed, NotificationsOnboardingLayout, NotificationsPicture, NotificationsPinnedLayout, NotificationsPrsFeed, NotificationsServerLayout, NotificationsSignIn, NotificationsSignedIn, NotificationsWelcomeLayout, type OrgConfig, OrganizationSecretScope, type PackageJsonLike, PagesConfig, ParseWebhookInput, type PermissionRule, type PluginProbes, type PluginToken, type Probe, type ProbeContext, type ProbeRow, type ProjectOptions, Projects, type ProviderAction, type ProviderActionContext, type ProviderActions, ProviderApiError, ProviderIdentity, type ProviderOptions, type ProviderRow, PullRequest, type PullRequestStatusChange, type PullRequestStatusPlan, type PullRequestStatusReason, type PullRequestStatusUnresolved, REQUIRED_CAPABILITIES, type RawProviderEntry, type RawProvidersConfig, type ReadKeysLimitedInput, type ReconcileChange, type ReconcilePlan, type ReconcileReason, type ReconcileUnresolved, RelayState, type RepoConfig, type RepoProperties, type RepoProtection, RepoRef, type RepoSecrets, type RepoSecretsDeploy, type RepoSecretsSync, RepoSettings, type RepoValidationConfig, type RepoVariables, type RepoVariablesSync, type RequestOptions, type ResolveProjectOptionsResult, type ResolveTokenConfig, type ResolveTokenInput, ResolvedCapability, type ResolvedHolocronConfig, type ResolvedProviderEntry, type ResolvedProvidersConfig, type ResolvedTuple, type RestClient, type RestClientConfig, Ruleset, SecretAccess, SecretScope, SecretVisibility, Secrets, ServerInspection, type SingleEntry, Source, SourceBranch, SourceFile, SourceRepoInfo, SourceRulesetDetail, SourceSecurity, SourceTeamMember, type StackName, StatusCategory, Storage, StorageBranch, type StorybookDeployProject, SyncResult, type SyncRolesInput, type SyncRolesResult, type TaskEntry, type TaskEntryConfig, TeamEntry, TeamPermission, type TelemetryConfig, type TokenExpectation, type TokenExpectationFilter, type TokenLifetime, type TokenResolver, type TokenRotation, Tooling, ToolingDoctorReport, ToolingExportInput, ToolingExportIssue, ToolingExportResult, ToolingOpenInput, ToolingOpenLaunch, ToolingOpenPlan, ToolingOpenWant, ToolingWorkspaceFile, ToolingWorkspaceInput, ToolingWorkspaceResult, ToolingWorkspaceSide, ToolingWorkspaceState, TrackerDoctorReport, TrackerUser, TunnelRoute, Tunnels, Vault, type VerifyTokenFailure, type VerifyTokenResult, type VerifyTokenSuccess, WebhookDashboardInfo, WebhookVerificationError, 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, resolveConfig, resolveEntry, resolvePluginPackage, resolveValue };
752
+ export { 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, 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, EnsureDiscussionInput, EnsureRelayInput, EnsureRelayResult, 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, Issue, IssueComment, IssueOrder, IssuePriority, IssueRecord, IssueSearchFilter, IssueSelector, Issues, KNOWN_STACK_DEPS, LabelDef, type LayerTokenExpectation, type LayoutEmoji, LifecycleResult, LifecycleSlot, type LinksFile, type LoadedConfig, type LogConfig, Logs, LogsDataset, type MemberLink, MissingTokenError, Monitoring, MonitoringAlertChannelInput, MonitoringAlertChannelResult, MonitoringAlertChannelState, MonitoringAlertSettings, MonitoringAssertion, MonitoringAssertionComparison, MonitoringAssertionSource, MonitoringCheck, MonitoringCheckInput, MonitoringDashboardInput, MonitoringDashboardState, MonitoringHeartbeatInput, MonitoringHeartbeatResult, MonitoringHeartbeatUnit, MonitoringHttpMethod, MonitoringStatusComponentInput, MonitoringStatusPageInput, MonitoringStatusPageResult, MonitoringStatusPageState, MoveReport, type MultiEntry, NormalizedAuthUser, Notifications, NotificationsAccess, NotificationsApplicationLayout, NotificationsChannelLayout, NotificationsDelivery, NotificationsEveryoneLayout, NotificationsForumTag, NotificationsLayout, NotificationsLinksLayout, NotificationsMember, NotificationsMonitoringFeed, NotificationsOnboardingLayout, NotificationsPicture, NotificationsPinnedLayout, NotificationsPrsFeed, NotificationsReaction, NotificationsServerLayout, NotificationsSignIn, NotificationsSignedIn, NotificationsWelcomeLayout, type OrgConfig, 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, type PullRequestStatusChange, type PullRequestStatusPlan, type PullRequestStatusReason, type PullRequestStatusUnresolved, REQUIRED_CAPABILITIES, type RawProviderEntry, type RawProvidersConfig, type ReadKeysLimitedInput, type ReconcileChange, type ReconcilePlan, type ReconcileReason, type ReconcileUnresolved, RelayState, type RepoConfig, type RepoProperties, type RepoProtection, RepoRef, type RepoSecrets, type RepoSecretsDeploy, type RepoSecretsSync, RepoSettings, type RepoValidationConfig, type RepoVariables, type RepoVariablesSync, type RequestOptions, type ResolveProjectOptionsResult, type ResolveTokenConfig, type ResolveTokenInput, ResolvedCapability, type ResolvedHolocronConfig, type ResolvedProviderEntry, type ResolvedProvidersConfig, type ResolvedTuple, type RestClient, type RestClientConfig, Ruleset, SecretAccess, SecretScope, SecretVisibility, Secrets, ServerInspection, type SingleEntry, Source, SourceBranch, SourceFile, SourceRepoInfo, SourceRulesetDetail, SourceSecurity, SourceTeamMember, type StackName, StatusCategory, Storage, StorageBranch, type StorybookDeployProject, SyncResult, type SyncRolesInput, type SyncRolesResult, type TaskEntry, type TaskEntryConfig, TeamEntry, TeamPermission, type TelemetryConfig, type TokenExpectation, type TokenExpectationFilter, type TokenLifetime, type TokenResolver, type TokenRotation, Tooling, ToolingDoctorReport, ToolingExportInput, ToolingExportIssue, ToolingExportResult, ToolingOpenInput, ToolingOpenLaunch, ToolingOpenPlan, ToolingOpenWant, ToolingWorkspaceFile, ToolingWorkspaceInput, ToolingWorkspaceResult, ToolingWorkspaceSide, ToolingWorkspaceState, TrackerDoctorReport, TrackerUser, TunnelRoute, Tunnels, type UnicodeReaction, Vault, type VerifyTokenFailure, type VerifyTokenResult, type VerifyTokenSuccess, WebhookDashboardInfo, WebhookVerificationError, 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, resolveConfig, resolveEntry, resolvePluginPackage, resolveValue };
package/dist/index.mjs CHANGED
@@ -1,13 +1,14 @@
1
1
  import { CARDINALITY, ElevationRequiredError, MissingTokenError, ProviderApiError, REQUIRED_CAPABILITIES, WebhookVerificationError, isMulti } from "./plugin/capabilities.mjs";
2
- import { a as placeAreas, c as ConfigError, d as resolveEntry, f as resolvePluginPackage, g as layerEnvironment, h as isEnvironmentLayer, i as loadConfig, l as credentialsEnvironment, m as ENVIRONMENT_LAYERS, n as compose, o as HOLOCRON_AREAS, p as repoSlug, r as defineConfig, s as SHARED_AREAS, t as ConfigFileError, u as resolveConfig } from "./config-system-BzncySAC.mjs";
2
+ import { a as placeAreas, c as ConfigError, d as resolveEntry, f as resolvePluginPackage, g as layerEnvironment, h as isEnvironmentLayer, i as loadConfig, l as credentialsEnvironment, m as ENVIRONMENT_LAYERS, n as compose, o as HOLOCRON_AREAS, p as repoSlug, r as defineConfig, s as SHARED_AREAS, t as ConfigFileError, u as resolveConfig } from "./config-system-BqX0yRVh.mjs";
3
3
  import { Entry, findCredentials } from "@napi-rs/keyring";
4
4
  import { AuthError, createFeatureResolver as createFeatureResolver$1, createKeyring, createResolveToken as createResolveToken$1, resolveValue } from "@theholocron/kyber/secrets";
5
5
  import { DOCUMENTATION_FLAG, codecovFlagNames, readWorkspacePackages } from "@theholocron/astromech";
6
+ import { dirname, join, posix, resolve } from "node:path";
7
+ import { readFile } from "node:fs/promises";
6
8
  import { describeError, style } from "@theholocron/kyber/ui";
7
9
  import { errorMessage } from "@theholocron/misc-utils";
8
10
  import { createRestClient } from "@theholocron/http-client";
9
11
  import { connectionProbe as connectionProbe$1 } from "@theholocron/kyber/checks";
10
- import { dirname, join, resolve } from "node:path";
11
12
  import { readPackageJson } from "@theholocron/pkg-utils";
12
13
  import { fstatSync, mkdirSync } from "node:fs";
13
14
  // src/auth/auth.ts
@@ -80,6 +81,135 @@ function coverageExpectations(repoRoot, docsCoverage = "off") {
80
81
  components: packages.map((pkg) => pkg.slug).sort()
81
82
  };
82
83
  }
84
+ // src/commands/notifications-reaction/parse-reaction/parse-reaction.ts
85
+ /** A server emoji written as Discord shows it: `:name:`, the name 2 to 32 letters, digits and underscores. */
86
+ const CUSTOM_EMOJI = /^:([A-Za-z0-9_]{2,32}):$/;
87
+ /**
88
+ * Reads a layout reaction. `":git_merge:"` (or `{ emoji: ":git_merge:", image }`) is a server emoji named `git_merge`;
89
+ * any other string is a Unicode emoji and kept as written. It does not judge a value: `reactionProblem()` does, before
90
+ * anything is applied, so an invalid `emoji` here is kept as the name it was given.
91
+ */
92
+ function parseReaction(reaction) {
93
+ if (typeof reaction === "string") {
94
+ const name = CUSTOM_EMOJI.exec(reaction)?.[1];
95
+ return name === void 0 ? {
96
+ kind: "unicode",
97
+ value: reaction
98
+ } : {
99
+ kind: "custom",
100
+ name
101
+ };
102
+ }
103
+ return {
104
+ kind: "custom",
105
+ name: CUSTOM_EMOJI.exec(reaction.emoji)?.[1] ?? reaction.emoji,
106
+ ...reaction.image ? { image: reaction.image } : {}
107
+ };
108
+ }
109
+ // src/commands/notifications-reaction/emoji-conflict-problem/emoji-conflict-problem.ts
110
+ /**
111
+ * The first server emoji a layout gives two different pictures, or undefined. One name is one emoji, so it can be made
112
+ * from one file only; the same file written twice is fine.
113
+ */
114
+ function emojiConflictProblem(layout) {
115
+ const images = /* @__PURE__ */ new Map();
116
+ for (const channel of (layout.categories ?? []).flatMap((c) => c.channels ?? [])) {
117
+ const reactions = [...channel.defaultReaction === void 0 ? [] : [channel.defaultReaction], ...channel.starterReactions ?? []];
118
+ for (const reaction of reactions) {
119
+ const parsed = parseReaction(reaction);
120
+ if (parsed.kind !== "custom" || !parsed.image) continue;
121
+ const image = posix.normalize(parsed.image);
122
+ const have = images.get(parsed.name);
123
+ if (have !== void 0 && have !== image) return `emoji \`:${parsed.name}:\` is given two different images, \`${have}\` and \`${image}\``;
124
+ images.set(parsed.name, image);
125
+ }
126
+ }
127
+ }
128
+ // src/commands/notifications-reaction/layout-emojis/layout-emojis.ts
129
+ /**
130
+ * The server emoji a layout's forum reactions name (default and starter), once each, in the order the layout first
131
+ * names them. A name that is given an `image` anywhere keeps it, so the picture can sit on any one of its uses.
132
+ */
133
+ function layoutEmojis(layout) {
134
+ const found = /* @__PURE__ */ new Map();
135
+ for (const channel of (layout?.categories ?? []).flatMap((c) => c.channels ?? [])) {
136
+ const reactions = [...channel.defaultReaction === void 0 ? [] : [channel.defaultReaction], ...channel.starterReactions ?? []];
137
+ for (const reaction of reactions) {
138
+ const parsed = parseReaction(reaction);
139
+ if (parsed.kind !== "custom") continue;
140
+ const have = found.get(parsed.name);
141
+ if (!have) found.set(parsed.name, {
142
+ name: parsed.name,
143
+ ...parsed.image ? { image: parsed.image } : {}
144
+ });
145
+ else if (!have.image && parsed.image) have.image = parsed.image;
146
+ }
147
+ }
148
+ return [...found.values()];
149
+ }
150
+ // src/commands/notifications-reaction/load-emoji-image/load-emoji-image.ts
151
+ /** Discord's limit for an emoji file ("256 KiB", its Emoji resource docs). */
152
+ const MAX_EMOJI_BYTES = 262144;
153
+ const ascii = (bytes, from, to) => Buffer.from(bytes.subarray(from, to)).toString("latin1");
154
+ /** The image type the first bytes show, among the ones Discord takes for an emoji (JPEG, PNG, GIF, WebP, AVIF). */
155
+ function typeOf(bytes) {
156
+ if (bytes.length >= 8 && [
157
+ 137,
158
+ 80,
159
+ 78,
160
+ 71,
161
+ 13,
162
+ 10,
163
+ 26,
164
+ 10
165
+ ].every((b, i) => bytes[i] === b)) return "image/png";
166
+ if (bytes.length >= 3 && bytes[0] === 255 && bytes[1] === 216 && bytes[2] === 255) return "image/jpeg";
167
+ if (ascii(bytes, 0, 4) === "GIF8") return "image/gif";
168
+ if (ascii(bytes, 0, 4) === "RIFF" && ascii(bytes, 8, 12) === "WEBP") return "image/webp";
169
+ if (ascii(bytes, 4, 8) === "ftyp" && ["avif", "avis"].includes(ascii(bytes, 8, 12))) return "image/avif";
170
+ }
171
+ /**
172
+ * Reads the picture an emoji is made from, a file in the repo, and returns it as a `data:` URI. The type comes from the
173
+ * first bytes, not the name, and a file Discord would refuse (larger than 256 KiB, or not a JPEG, PNG, GIF, WebP or
174
+ * AVIF image) is refused here, before anything is written. `read` is injected by tests.
175
+ */
176
+ async function loadEmojiImage(source, baseDir = process.cwd(), read = readFile) {
177
+ const bytes = await read(resolve(baseDir, source));
178
+ if (bytes.length > 262144) throw new Error(`it is ${Math.ceil(bytes.length / 1024)} KiB, and Discord takes an emoji up to 256 KiB`);
179
+ const type = typeOf(bytes);
180
+ if (!type) throw new Error("it is not a JPEG, PNG, GIF, WebP or AVIF image, which are the formats Discord takes");
181
+ return `data:${type};base64,${Buffer.from(bytes).toString("base64")}`;
182
+ }
183
+ // src/commands/notifications-reaction/reaction-problem/reaction-problem.ts
184
+ /** The folder a layout's emoji pictures live in, as the webhook avatar's files do. */
185
+ const EMOJI_MEDIA_DIR = ".holocron/media/";
186
+ /**
187
+ * The first reason a reaction cannot work, or undefined; `noun` names it in the message (`` `defaultReaction` ``, "a
188
+ * starter reaction"). A Unicode emoji must be a character, not a word (`git_merge` without colons would be sent to
189
+ * Discord as text), a server emoji `:name:` with a name Discord allows, and an `image` a file under `.holocron/media/`
190
+ * (a path, not a URL, with no `..` out of it). A `null` a config wrote is refused, not read as absent.
191
+ */
192
+ function reactionProblem(noun, reaction) {
193
+ if (reaction === null || typeof reaction !== "string" && typeof reaction !== "object") return `${noun} must be an emoji, \`:name:\` for a server emoji, or \`{ emoji, image }\``;
194
+ const text = typeof reaction === "string" ? reaction : reaction.emoji;
195
+ if (typeof text !== "string" || text.trim() === "") return `${noun} is empty`;
196
+ const isCustom = CUSTOM_EMOJI.test(text);
197
+ if (typeof reaction === "object" && !isCustom) return `${noun}: \`emoji\` must be a server emoji written \`:name:\` (2 to 32 letters, digits and underscores), not \`${text}\``;
198
+ if (!isCustom && /^:|:$|^[A-Za-z0-9_ ]+$/.test(text)) return `${noun}: \`${text}\` is not an emoji; write a server emoji as \`:name:\` (2 to 32 letters, digits and underscores)`;
199
+ if (typeof reaction === "object" && reaction.image !== void 0) {
200
+ const image = reaction.image;
201
+ if (typeof image !== "string" || image.trim() === "") return `${noun}: \`image\` is empty`;
202
+ if (/^[a-z][a-z0-9+.-]+:/i.test(image)) return `${noun}: \`image\` must be a file under \`${EMOJI_MEDIA_DIR}\`, not a URL`;
203
+ const path = posix.normalize(image);
204
+ if (!path.startsWith(".holocron/media/") || path === ".holocron/media/") return `${noun}: \`image\` must be a file under \`${EMOJI_MEDIA_DIR}\`, not \`${image}\``;
205
+ }
206
+ }
207
+ // src/commands/notifications-reaction/reaction-spelling/reaction-spelling.ts
208
+ /** How a reaction is written in a layout and shown in a row: `:name:` for a server emoji, the character otherwise. */
209
+ function reactionSpelling(reaction) {
210
+ const parsed = parseReaction(reaction);
211
+ return parsed.kind === "custom" ? `:${parsed.name}:` : parsed.value;
212
+ }
83
213
  // src/plugin/issues-provider/order-keys/order-keys.ts
84
214
  /**
85
215
  * Puts issue keys in creation order without asking the tracker: issue numbers (`#12`, `ENG-12`) rise with creation inside
@@ -1019,4 +1149,4 @@ function resolveCredentialsFile(base, file, makeDir = (dir) => void mkdirSync(di
1019
1149
  isDefault: true
1020
1150
  };
1021
1151
  }
1022
- export { AuthError, BUILTIN_TEMPLATES, CANONICAL_LABELS, CARDINALITY, ConfigError, ConfigFileError, DEFAULT_TEMPLATES_DIR, DEFAULT_TOKEN_ROTATION, ElevationRequiredError, HOLOCRON_AREAS, KNOWN_STACK_DEPS, MissingTokenError, PRIVATE_CREDENTIALS_FILE, ProviderApiError, REQUIRED_CAPABILITIES, SHARED_AREAS, WebhookVerificationError, compose, connectionProbe, coverageExpectations, createFeatureResolver, createResolveToken, createRestClient, credentialsEnvironment, defineConfig, deriveCapabilities, deriveCompliance, deriveProfile, deriveStack, ignoreAdvice, isMulti, keyring, loadConfig, missingCapabilities, orderKeys, pickByCreation, placeAreas, planPullRequestStatus, planReconcile, readKeysLimited, readLinks, readWorkspacePackageJsons, reportProgress, resolveConfig, resolveCredentialsFile, resolveEntry, resolveEnvironmentId, resolvePluginPackage, resolveProjectOptions, resolveValue, roleTeamProblem, sourceProblem, stdoutKind, syncRoles, tokenExpectations, tokenRotationRows };
1152
+ export { 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, SHARED_AREAS, WebhookVerificationError, compose, connectionProbe, coverageExpectations, createFeatureResolver, createResolveToken, createRestClient, credentialsEnvironment, defineConfig, deriveCapabilities, deriveCompliance, deriveProfile, deriveStack, emojiConflictProblem, ignoreAdvice, isMulti, keyring, layoutEmojis, loadConfig, loadEmojiImage, missingCapabilities, orderKeys, parseReaction, pickByCreation, placeAreas, planPullRequestStatus, planReconcile, reactionProblem, reactionSpelling, readKeysLimited, readLinks, readWorkspacePackageJsons, reportProgress, resolveConfig, resolveCredentialsFile, resolveEntry, resolveEnvironmentId, resolvePluginPackage, resolveProjectOptions, resolveValue, roleTeamProblem, sourceProblem, stdoutKind, syncRoles, tokenExpectations, tokenRotationRows };
@@ -1,2 +1,2 @@
1
- import { $ as CoverageUploadInput, $n as RepoSettings, $t as LabelDef, A as Cache, An as NotificationsDelivery, Ar as ToolingWorkspaceInput, At as Environment, B as ConnectionStringOptions, Bn as NotificationsPrsFeed, Br as Wiki, Bt as Ideas, C as BoardState, Cn as MonitoringStatusPageState, Cr as ToolingExportIssue, Ct as EnsureRelayResult, D as BoardTemplate, Dn as NotificationsAccess, Dr as ToolingOpenPlan, Dt as EnsuredDiscussion, E as BoardSummary, En as Notifications, Er as ToolingOpenLaunch, Et as EnsureWebhookResult, F as CardinalityFor, Fn as NotificationsMember, Fr as TrackerUser, Ft as ErrorsInspection, G as CoverageExpectations, Gn as OrganizationSecretScope, Gr as WikiProbe, Gt as Issue, H as CoverageConfigComponent, Hn as NotificationsSignIn, Hr as WikiInstanceState, Ht as ImportResult, I as Ci, In as NotificationsMonitoringFeed, Ir as TunnelRoute, It as ErrorsOrgState, J as CoverageStatusContext, Jn as Projects, Jr as WikiPublishedState, Jt as IssuePriority, K as CoverageNameDiff, Kn as PagesConfig, Kr as WikiProvisionOpts, Kt as IssueComment, L as CiRun, Ln as NotificationsOnboardingLayout, Lr as Tunnels, Lt as ErrorsProjectState, M as CapabilityImpls, Mn as NotificationsForumTag, Mr as ToolingWorkspaceSide, Mt as EnvironmentReviewer, N as CapabilityKey, Nn as NotificationsLayout, Nr as ToolingWorkspaceState, Nt as Environments, O as BoardTemplateFile, On as NotificationsApplicationLayout, Or as ToolingOpenWant, Ot as EnsuredResource, P as Cardinality, Pn as NotificationsLinksLayout, Pr as TrackerDoctorReport, Pt as Errors, Q as CoverageUploadGroup, Qn as RepoRef, Qt as Issues, R as CiRunFilter, Rn as NotificationsPicture, Rr as Vault, Rt as ExportInfo, S as BoardRule, Sn as MonitoringStatusPageResult, Sr as ToolingExportInput, St as EnsureRelayInput, T as BoardStatusCategory, Tn as NormalizedAuthUser, Tr as ToolingOpenInput, Tt as EnsureResult, U as CoverageConfigDocumentation, Un as NotificationsSignedIn, Ur as WikiNavigationState, Ut as InspectErrorsInput, V as Coverage, Vn as NotificationsServerLayout, Vr as WikiInspection, Vt as ImportOptions, W as CoverageConfigInput, Wn as NotificationsWelcomeLayout, Wr as WikiOrganizationState, Wt as InspectRelayInput, X as CoverageTokenCheck, Xn as PullRequest, Xr as WorkerScriptState, Xt as IssueSearchFilter, Y as CoverageStatusInput, Yn as ProviderIdentity, Yr as WorkerDeploymentState, Yt as IssueRecord, Z as CoverageUploadFlagResult, Zn as RelayState, Zr as Workers, Zt as IssueSelector, _ as BoardFieldType, _n as MonitoringHeartbeatResult, _r as SyncResult, _t as DnsRecord, a as REQUIRED_CAPABILITIES, an as MonitoringAlertChannelInput, ar as Secrets, at as DeployFunctionResult, b as BoardPullRequest, bn as MonitoringStatusComponentInput, br as Tooling, bt as DuplicateDiscussion, c as AddedItem, cn as MonitoringAlertSettings, cr as SourceBranch, ct as Deployment, d as AuthDescription, dn as MonitoringAssertionSource, dr as SourceRulesetDetail, dt as DeploymentRecord, en as LifecycleResult, er as ResolvedCapability, et as CoverageUploadResult, f as AuthEvent, fn as MonitoringCheck, fr as SourceSecurity, ft as DeploymentTarget, g as BoardField, gn as MonitoringHeartbeatInput, gr as StorageBranch, gt as Dns, h as AuthUser, hn as MonitoringDashboardState, hr as Storage, ht as DiscussionPost, i as ProviderApiError, in as Monitoring, ir as SecretVisibility, it as DeployFunctionConfig, j as CacheTokenCheck, jn as NotificationsEveryoneLayout, jr as ToolingWorkspaceResult, jt as EnvironmentEntry, k as BoardView, kn as NotificationsChannelLayout, kr as ToolingWorkspaceFile, kt as EnsuredTunnel, l as Analytics, ln as MonitoringAssertion, lr as SourceFile, lt as DeploymentProject, m as AuthIdentity, mn as MonitoringDashboardInput, mr as StatusCategory, mt as DiscussionPatch, n as ElevationRequiredError, nn as Logs, nr as SecretAccess, nt as Credentials, o as WebhookVerificationError, on as MonitoringAlertChannelResult, or as ServerInspection, ot as DeployScriptConfig, p as AuthEventType, pn as MonitoringCheckInput, pr as SourceTeamMember, pt as DeploymentTrigger, q as CoverageRepoReport, qn as ParseWebhookInput, qr as WikiProxyConfig, qt as IssueOrder, r as MissingTokenError, rn as LogsDataset, rr as SecretScope, rt as CredentialsInspection, s as isMulti, sn as MonitoringAlertChannelState, sr as Source, st as DeployScriptResult, t as CARDINALITY, tn as LifecycleSlot, tr as Ruleset, tt as CreateAuthUserInput, u as Auth, un as MonitoringAssertionComparison, ur as SourceRepoInfo, ut as DeploymentProjectSettings, v as BoardItem, vn as MonitoringHeartbeatUnit, vr as TeamEntry, vt as DnsRecordRequest, w as BoardStatus, wn as MoveReport, wr as ToolingExportResult, wt as EnsureReport, x as BoardPullRequestChecks, xn as MonitoringStatusPageInput, xr as ToolingDoctorReport, xt as EnsureDiscussionInput, y as BoardItemInput, yn as MonitoringHttpMethod, yr as TeamPermission, yt as DnsRecordType, z as CiRunStatus, zn as NotificationsPinnedLayout, zr as WebhookDashboardInfo, zt as IdeaRecord } from "../index-BmhgIDmN.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, Coverage, CoverageConfigComponent, CoverageConfigDocumentation, CoverageConfigInput, CoverageExpectations, CoverageNameDiff, CoverageRepoReport, CoverageStatusContext, CoverageStatusInput, CoverageTokenCheck, CoverageUploadFlagResult, CoverageUploadGroup, CoverageUploadInput, CoverageUploadResult, CreateAuthUserInput, Credentials, CredentialsInspection, DeployFunctionConfig, DeployFunctionResult, DeployScriptConfig, DeployScriptResult, Deployment, DeploymentProject, DeploymentProjectSettings, DeploymentRecord, DeploymentTarget, DeploymentTrigger, DiscussionPatch, DiscussionPost, Dns, DnsRecord, DnsRecordRequest, DnsRecordType, DuplicateDiscussion, ElevationRequiredError, EnsureDiscussionInput, EnsureRelayInput, EnsureRelayResult, EnsureReport, EnsureResult, EnsureWebhookResult, EnsuredDiscussion, EnsuredResource, EnsuredTunnel, Environment, EnvironmentEntry, EnvironmentReviewer, Environments, Errors, ErrorsInspection, ErrorsOrgState, ErrorsProjectState, ExportInfo, IdeaRecord, Ideas, ImportOptions, ImportResult, InspectErrorsInput, InspectRelayInput, Issue, IssueComment, IssueOrder, IssuePriority, IssueRecord, IssueSearchFilter, IssueSelector, Issues, LabelDef, LifecycleResult, LifecycleSlot, Logs, LogsDataset, MissingTokenError, Monitoring, MonitoringAlertChannelInput, MonitoringAlertChannelResult, MonitoringAlertChannelState, MonitoringAlertSettings, MonitoringAssertion, MonitoringAssertionComparison, MonitoringAssertionSource, MonitoringCheck, MonitoringCheckInput, MonitoringDashboardInput, MonitoringDashboardState, MonitoringHeartbeatInput, MonitoringHeartbeatResult, MonitoringHeartbeatUnit, MonitoringHttpMethod, MonitoringStatusComponentInput, MonitoringStatusPageInput, MonitoringStatusPageResult, MonitoringStatusPageState, MoveReport, NormalizedAuthUser, Notifications, NotificationsAccess, NotificationsApplicationLayout, NotificationsChannelLayout, NotificationsDelivery, NotificationsEveryoneLayout, NotificationsForumTag, NotificationsLayout, NotificationsLinksLayout, NotificationsMember, NotificationsMonitoringFeed, NotificationsOnboardingLayout, NotificationsPicture, NotificationsPinnedLayout, NotificationsPrsFeed, NotificationsServerLayout, NotificationsSignIn, NotificationsSignedIn, NotificationsWelcomeLayout, OrganizationSecretScope, PagesConfig, ParseWebhookInput, Projects, ProviderApiError, ProviderIdentity, PullRequest, REQUIRED_CAPABILITIES, RelayState, RepoRef, RepoSettings, ResolvedCapability, Ruleset, SecretAccess, SecretScope, SecretVisibility, Secrets, ServerInspection, Source, SourceBranch, SourceFile, SourceRepoInfo, SourceRulesetDetail, SourceSecurity, SourceTeamMember, StatusCategory, Storage, StorageBranch, SyncResult, TeamEntry, TeamPermission, Tooling, ToolingDoctorReport, ToolingExportInput, ToolingExportIssue, ToolingExportResult, 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 CoverageUploadInput, $n as RepoRef, $t as LabelDef, A as Cache, An as NotificationsDelivery, Ar as ToolingWorkspaceFile, At as Environment, B as ConnectionStringOptions, Bn as NotificationsPrsFeed, Br as WebhookDashboardInfo, Bt as Ideas, C as BoardState, Cn as MonitoringStatusPageState, Cr as ToolingExportInput, Ct as EnsureRelayResult, D as BoardTemplate, Dn as NotificationsAccess, Dr as ToolingOpenLaunch, Dt as EnsuredDiscussion, E as BoardSummary, En as Notifications, Er as ToolingOpenInput, Et as EnsureWebhookResult, F as CardinalityFor, Fn as NotificationsMember, Fr as TrackerDoctorReport, Ft as ErrorsInspection, G as CoverageExpectations, Gn as NotificationsWelcomeLayout, Gr as WikiOrganizationState, Gt as Issue, H as CoverageConfigComponent, Hn as NotificationsServerLayout, Hr as WikiInspection, Ht as ImportResult, I as Ci, In as NotificationsMonitoringFeed, Ir as TrackerUser, It as ErrorsOrgState, J as CoverageStatusContext, Jn as ParseWebhookInput, Jr as WikiProxyConfig, Jt as IssuePriority, K as CoverageNameDiff, Kn as OrganizationSecretScope, Kr as WikiProbe, Kt as IssueComment, L as CiRun, Ln as NotificationsOnboardingLayout, Lr as TunnelRoute, Lt as ErrorsProjectState, M as CapabilityImpls, Mn as NotificationsForumTag, Mr as ToolingWorkspaceResult, Mt as EnvironmentReviewer, N as CapabilityKey, Nn as NotificationsLayout, Nr as ToolingWorkspaceSide, Nt as Environments, O as BoardTemplateFile, On as NotificationsApplicationLayout, Or as ToolingOpenPlan, Ot as EnsuredResource, P as Cardinality, Pn as NotificationsLinksLayout, Pr as ToolingWorkspaceState, Pt as Errors, Q as CoverageUploadGroup, Qn as RelayState, Qr as Workers, Qt as Issues, R as CiRunFilter, Rn as NotificationsPicture, Rr as Tunnels, Rt as ExportInfo, S as BoardRule, Sn as MonitoringStatusPageResult, Sr as ToolingDoctorReport, St as EnsureRelayInput, T as BoardStatusCategory, Tn as NormalizedAuthUser, Tr as ToolingExportResult, Tt as EnsureResult, U as CoverageConfigDocumentation, Un as NotificationsSignIn, Ur as WikiInstanceState, Ut as InspectErrorsInput, V as Coverage, Vn as NotificationsReaction, Vr as Wiki, Vt as ImportOptions, W as CoverageConfigInput, Wn as NotificationsSignedIn, Wr as WikiNavigationState, Wt as InspectRelayInput, X as CoverageTokenCheck, Xn as ProviderIdentity, Xr as WorkerDeploymentState, Xt as IssueSearchFilter, Y as CoverageStatusInput, Yn as Projects, Yr as WikiPublishedState, Yt as IssueRecord, Z as CoverageUploadFlagResult, Zn as PullRequest, Zr as WorkerScriptState, Zt as IssueSelector, _ as BoardFieldType, _n as MonitoringHeartbeatResult, _r as StorageBranch, _t as DnsRecord, a as REQUIRED_CAPABILITIES, an as MonitoringAlertChannelInput, ar as SecretVisibility, at as DeployFunctionResult, b as BoardPullRequest, bn as MonitoringStatusComponentInput, br as TeamPermission, bt as DuplicateDiscussion, c as AddedItem, cn as MonitoringAlertSettings, cr as Source, ct as Deployment, d as AuthDescription, dn as MonitoringAssertionSource, dr as SourceRepoInfo, dt as DeploymentRecord, en as LifecycleResult, er as RepoSettings, et as CoverageUploadResult, f as AuthEvent, fn as MonitoringCheck, fr as SourceRulesetDetail, ft as DeploymentTarget, g as BoardField, gn as MonitoringHeartbeatInput, gr as Storage, gt as Dns, h as AuthUser, hn as MonitoringDashboardState, hr as StatusCategory, ht as DiscussionPost, i as ProviderApiError, in as Monitoring, ir as SecretScope, it as DeployFunctionConfig, j as CacheTokenCheck, jn as NotificationsEveryoneLayout, jr as ToolingWorkspaceInput, jt as EnvironmentEntry, k as BoardView, kn as NotificationsChannelLayout, kr as ToolingOpenWant, kt as EnsuredTunnel, l as Analytics, ln as MonitoringAssertion, lr as SourceBranch, lt as DeploymentProject, m as AuthIdentity, mn as MonitoringDashboardInput, mr as SourceTeamMember, mt as DiscussionPatch, n as ElevationRequiredError, nn as Logs, nr as Ruleset, nt as Credentials, o as WebhookVerificationError, on as MonitoringAlertChannelResult, or as Secrets, ot as DeployScriptConfig, p as AuthEventType, pn as MonitoringCheckInput, pr as SourceSecurity, pt as DeploymentTrigger, q as CoverageRepoReport, qn as PagesConfig, qr as WikiProvisionOpts, qt as IssueOrder, r as MissingTokenError, rn as LogsDataset, rr as SecretAccess, rt as CredentialsInspection, s as isMulti, sn as MonitoringAlertChannelState, sr as ServerInspection, st as DeployScriptResult, t as CARDINALITY, tn as LifecycleSlot, tr as ResolvedCapability, tt as CreateAuthUserInput, u as Auth, un as MonitoringAssertionComparison, ur as SourceFile, ut as DeploymentProjectSettings, v as BoardItem, vn as MonitoringHeartbeatUnit, vr as SyncResult, vt as DnsRecordRequest, w as BoardStatus, wn as MoveReport, wr as ToolingExportIssue, wt as EnsureReport, x as BoardPullRequestChecks, xn as MonitoringStatusPageInput, xr as Tooling, xt as EnsureDiscussionInput, y as BoardItemInput, yn as MonitoringHttpMethod, yr as TeamEntry, yt as DnsRecordType, z as CiRunStatus, zn as NotificationsPinnedLayout, zr as Vault, zt as IdeaRecord } from "../index-CTe_yLan.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, Coverage, CoverageConfigComponent, CoverageConfigDocumentation, CoverageConfigInput, CoverageExpectations, CoverageNameDiff, CoverageRepoReport, CoverageStatusContext, CoverageStatusInput, CoverageTokenCheck, CoverageUploadFlagResult, CoverageUploadGroup, CoverageUploadInput, CoverageUploadResult, CreateAuthUserInput, Credentials, CredentialsInspection, DeployFunctionConfig, DeployFunctionResult, DeployScriptConfig, DeployScriptResult, Deployment, DeploymentProject, DeploymentProjectSettings, DeploymentRecord, DeploymentTarget, DeploymentTrigger, DiscussionPatch, DiscussionPost, Dns, DnsRecord, DnsRecordRequest, DnsRecordType, DuplicateDiscussion, ElevationRequiredError, EnsureDiscussionInput, EnsureRelayInput, EnsureRelayResult, EnsureReport, EnsureResult, EnsureWebhookResult, EnsuredDiscussion, EnsuredResource, EnsuredTunnel, Environment, EnvironmentEntry, EnvironmentReviewer, Environments, Errors, ErrorsInspection, ErrorsOrgState, ErrorsProjectState, ExportInfo, IdeaRecord, Ideas, ImportOptions, ImportResult, InspectErrorsInput, InspectRelayInput, Issue, IssueComment, IssueOrder, IssuePriority, IssueRecord, IssueSearchFilter, IssueSelector, Issues, LabelDef, LifecycleResult, LifecycleSlot, Logs, LogsDataset, MissingTokenError, Monitoring, MonitoringAlertChannelInput, MonitoringAlertChannelResult, MonitoringAlertChannelState, MonitoringAlertSettings, MonitoringAssertion, MonitoringAssertionComparison, MonitoringAssertionSource, MonitoringCheck, MonitoringCheckInput, MonitoringDashboardInput, MonitoringDashboardState, MonitoringHeartbeatInput, MonitoringHeartbeatResult, MonitoringHeartbeatUnit, MonitoringHttpMethod, MonitoringStatusComponentInput, MonitoringStatusPageInput, MonitoringStatusPageResult, MonitoringStatusPageState, MoveReport, NormalizedAuthUser, Notifications, NotificationsAccess, NotificationsApplicationLayout, NotificationsChannelLayout, NotificationsDelivery, NotificationsEveryoneLayout, NotificationsForumTag, NotificationsLayout, NotificationsLinksLayout, NotificationsMember, NotificationsMonitoringFeed, NotificationsOnboardingLayout, NotificationsPicture, NotificationsPinnedLayout, NotificationsPrsFeed, NotificationsReaction, NotificationsServerLayout, NotificationsSignIn, NotificationsSignedIn, NotificationsWelcomeLayout, OrganizationSecretScope, PagesConfig, ParseWebhookInput, Projects, ProviderApiError, ProviderIdentity, PullRequest, REQUIRED_CAPABILITIES, RelayState, RepoRef, RepoSettings, ResolvedCapability, Ruleset, SecretAccess, SecretScope, SecretVisibility, Secrets, ServerInspection, Source, SourceBranch, SourceFile, SourceRepoInfo, SourceRulesetDetail, SourceSecurity, SourceTeamMember, StatusCategory, Storage, StorageBranch, SyncResult, TeamEntry, TeamPermission, Tooling, ToolingDoctorReport, ToolingExportInput, ToolingExportIssue, ToolingExportResult, 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,4 +1,4 @@
1
- import { hi as ComposedPreset, mi as Capability, ui as compose } from "./index-BmhgIDmN.mjs";
1
+ import { di as compose, gi as ComposedPreset, hi as Capability } from "./index-CTe_yLan.mjs";
2
2
  /** Options for the audit capability. */
3
3
  interface AuditOptions {
4
4
  /** Enable Knip unused-export analysis (default: false). */
package/dist/presets.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { n as compose } from "./config-system-BzncySAC.mjs";
1
+ import { n as compose } from "./config-system-BqX0yRVh.mjs";
2
2
  import { DEFAULT_ORG } from "@theholocron/astromech";
3
3
  // src/presets/capabilities/audit.ts
4
4
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/cli",
3
- "version": "5.0.0-alpha.490",
3
+ "version": "5.0.0-alpha.492",
4
4
  "description": "The Holocron CLI - a pluggable, capability-based orchestrator for spinning up and operating software projects.",
5
5
  "keywords": [
6
6
  "cli",
@@ -59,17 +59,17 @@
59
59
  "posthog-node": "^5.74.0",
60
60
  "tsx": "4.23.15",
61
61
  "yargs": "^18.1.0",
62
- "@theholocron/astromech": "5.0.0-alpha.490",
63
- "@theholocron/dagobah": "5.0.0-alpha.490",
64
- "@theholocron/datapad": "5.0.0-alpha.490",
62
+ "@theholocron/astromech": "5.0.0-alpha.492",
63
+ "@theholocron/dagobah": "5.0.0-alpha.492",
65
64
  "@theholocron/env-utils": "^1.17.0-alpha.5",
66
- "@theholocron/github-client": "^1.58.0-alpha.42",
67
- "@theholocron/http-client": "^1.58.0-alpha.42",
68
- "@theholocron/kyber": "5.0.0-alpha.490",
69
65
  "@theholocron/fs-utils": "^1.17.0-alpha.5",
70
- "@theholocron/misc-utils": "^1.17.0-alpha.5",
71
- "@theholocron/json-utils": "^1.17.0-alpha.5",
72
66
  "@theholocron/git-utils": "^1.17.0-alpha.5",
67
+ "@theholocron/github-client": "^1.58.0-alpha.44",
68
+ "@theholocron/datapad": "5.0.0-alpha.492",
69
+ "@theholocron/http-client": "^1.58.0-alpha.44",
70
+ "@theholocron/json-utils": "^1.17.0-alpha.5",
71
+ "@theholocron/kyber": "5.0.0-alpha.492",
72
+ "@theholocron/misc-utils": "^1.17.0-alpha.5",
73
73
  "@theholocron/observability": "^0.7.0-alpha.5",
74
74
  "@theholocron/pkg-utils": "^1.17.0-alpha.5"
75
75
  },
@@ -85,9 +85,9 @@
85
85
  "typescript": "^5.9.3",
86
86
  "vitest": "^5.1.0",
87
87
  "@theholocron/eslint-config": "^8.9.0-alpha.21",
88
- "@theholocron/vitest-config": "^8.9.0-alpha.21",
88
+ "@theholocron/rollup-plugin-transform-template": "^8.9.0-alpha.21",
89
89
  "@theholocron/tsconfig": "^8.9.0-alpha.21",
90
- "@theholocron/rollup-plugin-transform-template": "^8.9.0-alpha.21"
90
+ "@theholocron/vitest-config": "^8.9.0-alpha.21"
91
91
  },
92
92
  "engines": {
93
93
  "node": ">=22.0.0"
@@ -1,9 +1,9 @@
1
1
  import { CARDINALITY, REQUIRED_CAPABILITIES } from "./plugin/capabilities.mjs";
2
2
  import { resolveTaskName } from "@theholocron/astromech";
3
+ import { basename, dirname } from "node:path";
3
4
  import { resolvePluginPackage as resolvePluginPackage$1 } from "@theholocron/kyber/plugins";
4
5
  import { ConfigError, ConfigError as ConfigError$1, ConfigFileError, createConfigSystem, lastWins, mergeByKey, shallowMerge, union } from "@theholocron/kyber/config";
5
6
  import { readGitRemote } from "@theholocron/git-utils";
6
- import { basename, dirname } from "node:path";
7
7
  import { readPackageJson } from "@theholocron/pkg-utils";
8
8
  import { loadTasksConfig } from "@theholocron/astromech/config";
9
9
  // src/credentials-environments/derives-environment/derives-environment.ts