@theholocron/cli 5.0.0-alpha.593 → 5.0.0-alpha.594
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 +25 -2
- package/dist/cli.mjs +1391 -273
- package/dist/cli.mjs.map +1 -1
- package/dist/{config-system-kv3gASRw.mjs → config-system-CZ9zgh3-.mjs} +42 -0
- package/dist/{index-DlUw3HKw.d.mts → index-C5MapAsc.d.mts} +121 -3
- package/dist/index.d.mts +13 -3
- package/dist/index.mjs +120 -2
- package/dist/plugin/capabilities.d.mts +1 -1
- package/dist/presets.d.mts +1 -1
- package/dist/presets.mjs +1 -1
- package/package.json +8 -8
|
@@ -41,6 +41,45 @@ function splitAgent(raw) {
|
|
|
41
41
|
agentOptions: options
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
|
+
// src/config/validate-command-log/validate-command-log.ts
|
|
45
|
+
/** The values `notifications.commandLog` accepts. */
|
|
46
|
+
const COMMAND_LOG_MODES = [
|
|
47
|
+
"agents",
|
|
48
|
+
"all",
|
|
49
|
+
"off"
|
|
50
|
+
];
|
|
51
|
+
/**
|
|
52
|
+
* Check `notifications.commandLog` (spec `tech-discord-notifications-v2`, step 6): `agents`, `all` or `off`.
|
|
53
|
+
*
|
|
54
|
+
* @param notifications - The config's top-level `notifications` block, if it has one.
|
|
55
|
+
* @throws {ConfigError} Naming the path and the allowed values.
|
|
56
|
+
*/
|
|
57
|
+
function validateCommandLog(notifications) {
|
|
58
|
+
if (notifications === void 0) return;
|
|
59
|
+
if (typeof notifications !== "object" || notifications === null || Array.isArray(notifications)) throw new ConfigError$1("`notifications` must be an object (for example `{ commandLog: \"agents\" }`)");
|
|
60
|
+
const mode = notifications.commandLog;
|
|
61
|
+
if (mode === void 0) return;
|
|
62
|
+
if (typeof mode !== "string" || !COMMAND_LOG_MODES.includes(mode)) throw new ConfigError$1(`\`notifications.commandLog\` must be one of ${COMMAND_LOG_MODES.map((m) => `"${m}"`).join(", ")}, got ${JSON.stringify(mode)}`);
|
|
63
|
+
}
|
|
64
|
+
// src/config/validate-command-threads/validate-command-threads.ts
|
|
65
|
+
/** The values `notifications.commandThreads` accepts. */
|
|
66
|
+
const COMMAND_THREADS_MODES = [
|
|
67
|
+
"agents",
|
|
68
|
+
"all",
|
|
69
|
+
"off"
|
|
70
|
+
];
|
|
71
|
+
/**
|
|
72
|
+
* Check `notifications.commandThreads` (spec `tech-discord-notifications-v2`, step 7): `agents`, `all` or `off`. The
|
|
73
|
+
* block itself is checked by `validateCommandLog()`, which runs first.
|
|
74
|
+
*
|
|
75
|
+
* @param notifications - The config's top-level `notifications` block, if it has one.
|
|
76
|
+
* @throws {ConfigError} Naming the path and the allowed values.
|
|
77
|
+
*/
|
|
78
|
+
function validateCommandThreads(notifications) {
|
|
79
|
+
const mode = notifications?.commandThreads;
|
|
80
|
+
if (mode === void 0) return;
|
|
81
|
+
if (typeof mode !== "string" || !COMMAND_THREADS_MODES.includes(mode)) throw new ConfigError$1(`\`notifications.commandThreads\` must be one of ${COMMAND_THREADS_MODES.map((m) => `"${m}"`).join(", ")}, got ${JSON.stringify(mode)}`);
|
|
82
|
+
}
|
|
44
83
|
// src/credentials-environments/layer-environment/layer-environment.ts
|
|
45
84
|
/** The layer words, in the order the docs list them. */
|
|
46
85
|
const ENVIRONMENT_LAYERS = [
|
|
@@ -619,6 +658,8 @@ function resolveConfig(raw) {
|
|
|
619
658
|
if (raw.issueTypes !== void 0) validateIssueTypes(raw.issueTypes);
|
|
620
659
|
validateRepoLabels(raw.repo?.labels);
|
|
621
660
|
validateRepoViews(raw.repo?.views);
|
|
661
|
+
validateCommandLog(raw.notifications);
|
|
662
|
+
validateCommandThreads(raw.notifications);
|
|
622
663
|
validateRepoEnvironments(raw.repo?.environments);
|
|
623
664
|
validateRequiredChecks(raw.repo?.requiredChecks);
|
|
624
665
|
validateVariablesSync(raw.repo?.variables);
|
|
@@ -662,6 +703,7 @@ function resolveConfig(raw) {
|
|
|
662
703
|
ideas: raw.ideas,
|
|
663
704
|
log: raw.log,
|
|
664
705
|
telemetry: raw.telemetry,
|
|
706
|
+
notifications: raw.notifications,
|
|
665
707
|
eslint: raw.eslint
|
|
666
708
|
};
|
|
667
709
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { DocsCoverageMode, WorkspacePackage } from "@theholocron/astromech";
|
|
2
|
+
import { LogLevel } from "@theholocron/observability/core";
|
|
2
3
|
import { ProviderApiError } from "@theholocron/http-client";
|
|
3
4
|
import { ConfigError, ConfigFileError } from "@theholocron/kyber/config";
|
|
4
5
|
import { GitExec } from "@theholocron/git-utils";
|
|
5
6
|
import { PackageJson } from "@theholocron/pkg-utils";
|
|
6
7
|
import { CiConfig } from "@theholocron/astromech/config";
|
|
7
|
-
import { LogLevel } from "@theholocron/observability/core";
|
|
8
8
|
/** The layer words a config entry may name instead of an Environment (spec `tech-environment-layers`, #2069). */
|
|
9
9
|
type EnvironmentLayer = "local" | "dev" | "ci" | "prod" | "preview" | "agent";
|
|
10
10
|
/** Structured-logging config. The Axiom **token** never lives here — only in
|
|
@@ -49,6 +49,30 @@ interface TelemetryConfig {
|
|
|
49
49
|
*/
|
|
50
50
|
analytics?: "posthog" | "none";
|
|
51
51
|
}
|
|
52
|
+
/** Who has a command run posted to the `agent-log` channel: `agents` (default), `all` runs, or `off`. */
|
|
53
|
+
type CommandLogMode = "agents" | "all" | "off";
|
|
54
|
+
/**
|
|
55
|
+
* Whose command runs get a Discord thread that streams their log lines as they run (spec
|
|
56
|
+
* `tech-discord-notifications-v2`, step 7): `"off"` (default) none, `"agents"` agent runs only, `"all"` every run.
|
|
57
|
+
*/
|
|
58
|
+
type CommandThreadsMode = "agents" | "all" | "off";
|
|
59
|
+
/**
|
|
60
|
+
* Where a command run is told to people (spec `tech-discord-notifications-v2`, step 6). Every run is always one
|
|
61
|
+
* `command_run` log event; this block only decides the Discord post.
|
|
62
|
+
*/
|
|
63
|
+
interface NotificationsConfig {
|
|
64
|
+
/**
|
|
65
|
+
* Which runs are posted, as one line each, to the `agent-log` channel: `"agents"` (default) posts agent runs only,
|
|
66
|
+
* `"all"` posts human runs too and `"off"` posts nothing. The log event is not affected.
|
|
67
|
+
*/
|
|
68
|
+
commandLog?: CommandLogMode;
|
|
69
|
+
/**
|
|
70
|
+
* Which runs open a thread in the `agent-log` channel and stream their log lines (`info` and above, names and numbers
|
|
71
|
+
* only) into it as they run, ending with the status and exit code: `"off"` (default), `"agents"` or `"all"`. When the
|
|
72
|
+
* thread is open, the `commandLog` line is its last post instead of a second message.
|
|
73
|
+
*/
|
|
74
|
+
commandThreads?: CommandThreadsMode;
|
|
75
|
+
}
|
|
52
76
|
/** Options a provider plugin receives; their shape is the plugin's own. */
|
|
53
77
|
type ProviderOptions = Record<string, unknown>;
|
|
54
78
|
/**
|
|
@@ -1012,6 +1036,13 @@ interface HolocronConfig {
|
|
|
1012
1036
|
* { analytics: "none" }
|
|
1013
1037
|
*/
|
|
1014
1038
|
telemetry?: TelemetryConfig;
|
|
1039
|
+
/**
|
|
1040
|
+
* Notification settings that are not a provider's: `commandLog` sets whether a command run is posted to Discord.
|
|
1041
|
+
*
|
|
1042
|
+
* @example
|
|
1043
|
+
* { commandLog: "all" }
|
|
1044
|
+
*/
|
|
1045
|
+
notifications?: NotificationsConfig;
|
|
1015
1046
|
/**
|
|
1016
1047
|
* ESLint bundle option overrides that Sentinel's centralized static-
|
|
1017
1048
|
* analysis check (holocron#849) can't otherwise see. Bucket 1 checks
|
|
@@ -1116,6 +1147,8 @@ interface ResolvedHolocronConfig {
|
|
|
1116
1147
|
log?: LogConfig;
|
|
1117
1148
|
/** Telemetry settings. */
|
|
1118
1149
|
telemetry?: TelemetryConfig;
|
|
1150
|
+
/** Notification settings that are not a provider's (`commandLog`), validated by `resolveConfig`. */
|
|
1151
|
+
notifications?: NotificationsConfig;
|
|
1119
1152
|
/** ESLint settings. */
|
|
1120
1153
|
eslint?: EslintConfig;
|
|
1121
1154
|
}
|
|
@@ -1311,6 +1344,54 @@ declare function missingCapabilities(capabilities: readonly string[]): string[];
|
|
|
1311
1344
|
* own soft-fail behavior.
|
|
1312
1345
|
*/
|
|
1313
1346
|
declare function readWorkspacePackageJsons(repoRoot: string, workspacePackages: readonly WorkspacePackage[]): Promise<PackageJsonLike[]>;
|
|
1347
|
+
/** The state of a post in the #prs forum, shown as its tag. */
|
|
1348
|
+
type PullRequestTag = "draft" | "conflicts" | "failing" | "changes requested" | "ready" | "in review" | "merged" | "closed";
|
|
1349
|
+
/** A pull request as a post in the PR forum is rendered from it, fetched by the caller and never taken from an event. */
|
|
1350
|
+
interface PullRequestState {
|
|
1351
|
+
/** `owner/repo`. */
|
|
1352
|
+
repo: string;
|
|
1353
|
+
/** The pull request's number. */
|
|
1354
|
+
number: number;
|
|
1355
|
+
/** The pull request's title. */
|
|
1356
|
+
title: string;
|
|
1357
|
+
/** The description as written; empty when there is none. */
|
|
1358
|
+
body: string;
|
|
1359
|
+
/** The address of the pull request's page. */
|
|
1360
|
+
url: string;
|
|
1361
|
+
/** The author's login. */
|
|
1362
|
+
author: string;
|
|
1363
|
+
/** Whether the author is a bot account. */
|
|
1364
|
+
authorIsBot: boolean;
|
|
1365
|
+
/** Whether it is a draft. */
|
|
1366
|
+
draft: boolean;
|
|
1367
|
+
/** Whether it was merged. */
|
|
1368
|
+
merged: boolean;
|
|
1369
|
+
/** Whether it is closed, merged or not. */
|
|
1370
|
+
closed: boolean;
|
|
1371
|
+
/** When it was opened, an ISO timestamp. */
|
|
1372
|
+
createdAt: string;
|
|
1373
|
+
/** When it was closed or merged, an ISO timestamp; absent while it is open or when the provider does not say. */
|
|
1374
|
+
closedAt?: string;
|
|
1375
|
+
/** The branch it merges into. */
|
|
1376
|
+
base: string;
|
|
1377
|
+
/** The people whose review is still asked for. */
|
|
1378
|
+
requestedReviewers: string[];
|
|
1379
|
+
/** Where the reviews stand. */
|
|
1380
|
+
review: "approved" | "changes_requested" | "review_required" | "none";
|
|
1381
|
+
/** The `ci / Required checks` result for the head commit. */
|
|
1382
|
+
ci: "passing" | "failing" | "pending" | "none";
|
|
1383
|
+
/** Whether it merges cleanly. */
|
|
1384
|
+
mergeable: "clean" | "conflicting" | "unknown";
|
|
1385
|
+
}
|
|
1386
|
+
/** What the renderer gives back: the post title, the first message (no footer) and the tag. */
|
|
1387
|
+
interface RenderedPullRequest {
|
|
1388
|
+
/** The post's title. */
|
|
1389
|
+
title: string;
|
|
1390
|
+
/** The first message, without the provider's footer. */
|
|
1391
|
+
body: string;
|
|
1392
|
+
/** The tag the post carries. */
|
|
1393
|
+
tag: PullRequestTag;
|
|
1394
|
+
}
|
|
1314
1395
|
/**
|
|
1315
1396
|
* Capability interfaces — the contracts that providers implement.
|
|
1316
1397
|
*
|
|
@@ -1688,6 +1769,13 @@ interface Source extends ProviderIdentity, RelaySourceMethods {
|
|
|
1688
1769
|
* apart). Optional — providers without a PR concept omit this.
|
|
1689
1770
|
*/
|
|
1690
1771
|
listPullRequests?(state: "open" | "closed", repo?: string): Promise<PullRequest[]>;
|
|
1772
|
+
/**
|
|
1773
|
+
* One pull request as the PR forum's post is rendered from it (`holocron sync prs`): the pull request, its reviews and
|
|
1774
|
+
* the checks of its head commit, read now. `undefined` when the repository has no such pull request. With `required`
|
|
1775
|
+
* (a repo whose `ci.aggregate` is `none`) the "CI" of the state is those required checks' verdict, else the aggregate's.
|
|
1776
|
+
* Optional — providers without a PR concept omit this.
|
|
1777
|
+
*/
|
|
1778
|
+
readPullRequestState?(number: number, repo?: string, required?: SourceRequiredChecks): Promise<PullRequestState | undefined>;
|
|
1691
1779
|
/**
|
|
1692
1780
|
* The commit SHAs of one pull request, in commit order. A squash-merged branch is not an ancestor of the
|
|
1693
1781
|
* base, so this is how a local tip is matched to a PR whose head commit is not in the checkout.
|
|
@@ -3882,6 +3970,8 @@ interface DiscussionPost {
|
|
|
3882
3970
|
idLine?: string;
|
|
3883
3971
|
/** Whether the post is closed: finished with, and locked so that only people who manage it can reply or reopen it. Absent when it is open. */
|
|
3884
3972
|
closed?: boolean;
|
|
3973
|
+
/** How many newer posts carry the same key, which {@link Notifications.dedupeDiscussion} would delete; absent when there are none. */
|
|
3974
|
+
duplicates?: number;
|
|
3885
3975
|
}
|
|
3886
3976
|
/** What {@link Notifications.ensureDiscussion} takes. */
|
|
3887
3977
|
interface EnsureDiscussionInput {
|
|
@@ -4081,6 +4171,13 @@ interface NotificationsChannelLayout {
|
|
|
4081
4171
|
* between colons (`":git_merge:"`; see {@link NotificationsReaction}).
|
|
4082
4172
|
*/
|
|
4083
4173
|
defaultReaction?: NotificationsReaction;
|
|
4174
|
+
/**
|
|
4175
|
+
* How long a post of a forum can sit idle before Discord archives it and takes it off the forum's list, in minutes:
|
|
4176
|
+
* `60`, `1440`, `4320` or `10080` (Discord's four values; `60` is the shortest). It is the forum's default for new
|
|
4177
|
+
* posts (`default_auto_archive_duration`); a post that exists keeps its own. Only for `kind: "forum"`. Left out, the
|
|
4178
|
+
* forum's setting is left alone. A merged or closed pull request's post is archived at once whatever this says.
|
|
4179
|
+
*/
|
|
4180
|
+
autoArchiveMinutes?: 60 | 1440 | 4320 | 10080;
|
|
4084
4181
|
/**
|
|
4085
4182
|
* Reactions the bot adds to the first message of each post it makes, so a conversation starts with the ways to
|
|
4086
4183
|
* answer already there (`["✅", "❌", "❓"]` for approve, disapprove, question). Only for `kind: "forum"`. Posts that
|
|
@@ -4134,7 +4231,7 @@ interface NotificationsChannelLayout {
|
|
|
4134
4231
|
/**
|
|
4135
4232
|
* The pull-request feed: Sentinel keeps one post in this forum for each pull request, tagged with its state
|
|
4136
4233
|
* (spec `tech-sentinel-pr-feed`). Only for `kind: "forum"`, and the forum's `tags` must hold all eight state tags:
|
|
4137
|
-
* `draft`, `conflicts`, `failing`, `changes requested`, `ready`, `
|
|
4234
|
+
* `draft`, `conflicts`, `failing`, `changes requested`, `ready`, `in review`, `merged` and `closed`. `true` follows every
|
|
4138
4235
|
* pull request; the object form leaves out the pull requests of some repositories (`owner/name`) or authors (logins).
|
|
4139
4236
|
* Needs no webhook: the bot makes and tags the posts, so it must be able to post in the forum and manage its threads.
|
|
4140
4237
|
* The forum's messages carry no link previews (the posts are links to pull requests, and the previews bury the status).
|
|
@@ -4179,6 +4276,12 @@ interface NotificationsPrsFeed {
|
|
|
4179
4276
|
/** Authors, by GitHub login. */
|
|
4180
4277
|
authors?: string[];
|
|
4181
4278
|
};
|
|
4279
|
+
/**
|
|
4280
|
+
* How many days after a pull request closes its post is deleted (a positive whole number). Left out, a closed post
|
|
4281
|
+
* is kept, archived and locked. `holocron sync prs` acts on it (spec `tech-discord-notifications-v2`, step 3): it
|
|
4282
|
+
* deletes the post of a closed pull request past the window, and never one a person has replied in. Deleting loses the thread.
|
|
4283
|
+
*/
|
|
4284
|
+
retainDays?: number;
|
|
4182
4285
|
}
|
|
4183
4286
|
/**
|
|
4184
4287
|
* Settings of the server itself. Channels are named as in the layout's `categories`; each field
|
|
@@ -4527,6 +4630,8 @@ interface ServerInspection {
|
|
|
4527
4630
|
* a Unicode one). Absent when none is set or for a text channel.
|
|
4528
4631
|
*/
|
|
4529
4632
|
defaultReaction?: string;
|
|
4633
|
+
/** The forum's default idle time before a post is archived, in minutes; absent for a text channel or when unread. */
|
|
4634
|
+
autoArchiveMinutes?: number;
|
|
4530
4635
|
/** Names of the webhooks on the channel. Only filled in for channels the layout gives a webhook or a feed. */
|
|
4531
4636
|
webhooks: string[];
|
|
4532
4637
|
/** Which of those webhooks have a picture of their own. */
|
|
@@ -4683,6 +4788,8 @@ interface Notifications extends ProviderIdentity {
|
|
|
4683
4788
|
* the server does not have is an error naming it.
|
|
4684
4789
|
*/
|
|
4685
4790
|
defaultReaction?: NotificationsReaction;
|
|
4791
|
+
/** The forum's idle time before a post is archived; see {@link NotificationsChannelLayout.autoArchiveMinutes}. */
|
|
4792
|
+
autoArchiveMinutes?: 60 | 1440 | 4320 | 10080;
|
|
4686
4793
|
}): Promise<EnsuredResource>;
|
|
4687
4794
|
/**
|
|
4688
4795
|
* Find the server emoji named `name` (without colons) or make it from `image`, a `data:` URI. An emoji that
|
|
@@ -4831,6 +4938,17 @@ interface Notifications extends ProviderIdentity {
|
|
|
4831
4938
|
* can say what it would delete before it deletes.
|
|
4832
4939
|
*/
|
|
4833
4940
|
duplicateDiscussions?(channel: string): Promise<DuplicateDiscussion[]>;
|
|
4941
|
+
/**
|
|
4942
|
+
* Every discussion post of a forum channel that records a key (the oldest when several do, with `duplicates` set),
|
|
4943
|
+
* active and archived, in key order. Reads only; `holocron sync prs` finds the posts of a repository's pull requests
|
|
4944
|
+
* with it.
|
|
4945
|
+
*/
|
|
4946
|
+
listDiscussions?(channel: string): Promise<DiscussionPost[]>;
|
|
4947
|
+
/**
|
|
4948
|
+
* Delete the discussion post for `key`, unless a person has written in it: a post whose thread holds a message
|
|
4949
|
+
* that is not a bot's is kept. Returns whether it was deleted (`false` for a kept post, or when there is none).
|
|
4950
|
+
*/
|
|
4951
|
+
deleteDiscussion?(channel: string, key: string): Promise<boolean>;
|
|
4834
4952
|
/**
|
|
4835
4953
|
* Hide the link-preview cards ("embeds") under the newest messages of a text channel, keeping the links: the message
|
|
4836
4954
|
* is edited to set the provider's suppress-embeds flag. Only a message with a link-type embed (`link`, `article`,
|
|
@@ -5812,4 +5930,4 @@ declare class WebhookVerificationError extends Error {
|
|
|
5812
5930
|
}
|
|
5813
5931
|
/** Whether `key` is a capability that can have several providers active at once. */
|
|
5814
5932
|
declare function isMulti<K extends CapabilityKey>(key: K): CardinalityFor<K> extends "many" ? true : false;
|
|
5815
|
-
export { CoverageUploadGroup as $,
|
|
5933
|
+
export { CoverageUploadGroup as $, ResolvedProviderEntry as $a, PackageJsonLike as $i, NotificationsApplicationLayout as $n, SourceRequiredChecks as $r, IssueClearable as $t, Cache as A, IdeasConfig as Aa, WikiInspection as Ai, MonitoringDashboardInput as An, PullRequestPatch as Ar, EnsureWebhookResult as At, ConnectionStringOptions as B, RepoEnvironment as Ba, Workers as Bi, MonitoringIncidentResolveInput as Bn, Ruleset as Br, ErrorsOrgState as Bt, BoardState as C, DevServeConfig as Ca, TrackerDoctorReport as Ci, MonitoringAlertChannelState as Cn, ProviderIdentity as Cr, EnsureDiscussionInput as Ct, BoardTemplate as D, EslintConfig as Da, Vault as Di, MonitoringAssertionSource as Dn, PullRequestFields as Dr, EnsureRelaySourceResult as Dt, BoardSummary as E, EnvConfig as Ea, Tunnels as Ei, MonitoringAssertionComparison as En, PullRequestChecksState as Er, EnsureRelaySourceInput as Et, CardinalityFor as F, OrgIssueType as Fa, WikiProvisionOpts as Fi, MonitoringHttpMethod as Fn, RelaySourceState as Fr, EnvironmentEntry as Ft, CoverageConfigInput as G, RepoSecrets as Ga, deriveCapabilities as Gi, MonitoringStatusComponentInput as Gn, ServerInspection as Gr, IdeaRecord as Gt, Coverage as H, RepoLabels as Ha, PullRequestTag as Hi, MonitoringIncidentUpdate as Hn, SecretScope as Hr, ExportInfo as Ht, Ci as I, ProviderOptions as Ia, WikiProxyConfig as Ii, MonitoringIncident as In, RelayState as Ir, EnvironmentReviewer as It, CoverageRepoReport as J, RepoValidationConfig as Ja, deriveStack as Ji, MonitoringStatusPageState as Jn, SourceCheckRun as Jr, ImportResult as Jt, CoverageExpectations as K, RepoSecretsDeploy as Ka, deriveCompliance as Ki, MonitoringStatusPageInput as Kn, Source as Kr, Ideas as Kt, CiRun as L, RawProviderEntry as La, WikiPublishedState as Li, MonitoringIncidentImpact as Ln, RepoRef as Lr, Environments as Lt, CapabilityImpls as M, MultiEntry as Ma, WikiNavigationState as Mi, MonitoringHeartbeatInput as Mn, Registry as Mr, EnsuredResource as Mt, CapabilityKey as N, NotificationsConfig as Na, WikiOrganizationState as Ni, MonitoringHeartbeatResult as Nn, RelaySourceCapability as Nr, EnsuredTunnel as Nt, BoardTemplateFile as O, GitHubAppConfig as Oa, WebhookDashboardInfo as Oi, MonitoringCheck as On, PullRequestInput as Or, EnsureReport as Ot, Cardinality as P, OrgConfig as Pa, WikiProbe as Pi, MonitoringHeartbeatUnit as Pn, RelaySourceMethods as Pr, Environment as Pt, CoverageUploadFlagResult as Q, ResolvedHolocronConfig as Qa, HolocronProfile as Qi, NotificationsAccess as Qn, SourceRepoInfo as Qr, Issue as Qt, CiRunFilter as R, RawProvidersConfig as Ra, WorkerDeploymentState as Ri, MonitoringIncidentInput as Rn, RepoSettings as Rr, Errors as Rt, BoardRule as S, DevConfig as Sa, ToolingWorkspaceState as Si, MonitoringAlertChannelResult as Sn, Projects as Sr, EmojiCheck as St, BoardStatusCategory as T, DoctorConfig as Ta, TunnelRoute as Ti, MonitoringAssertion as Tn, PullRequestChecks as Tr, EnsureRelayResult as Tt, CoverageConfigComponent as U, RepoProperties as Ua, RenderedPullRequest as Ui, MonitoringIncidentUpdateInput as Un, SecretVisibility as Ur, HideLinkPreviewsInput as Ut, CoreIssueKind as V, RepoEnvironmentReviewer as Va, PullRequestState as Vi, MonitoringIncidentStatus as Vn, SecretAccess as Vr, ErrorsProjectState as Vt, CoverageConfigDocumentation as W, RepoProtection as Wa, KNOWN_STACK_DEPS as Wi, MonitoringIncidentWrite as Wn, Secrets as Wr, HideLinkPreviewsResult as Wt, CoverageStatusInput as X, RepoVariablesSync as Xa, readWorkspacePackageJsons as Xi, NormalizedAuthUser as Xn, SourceCommitStatus as Xr, InspectRelayInput as Xt, CoverageStatusContext as Y, RepoVariables as Ya, missingCapabilities as Yi, MoveReport as Yn, SourceCheckRunWrite as Yr, InspectErrorsInput as Yt, CoverageTokenCheck as Z, RepoView as Za, DeriveProfileInput as Zi, Notifications as Zn, SourceFile as Zr, InspectRelaySourceInput as Zt, BoardFieldType as _, CapabilityConfigPackage as _a, ToolingOpenWant as _i, LifecycleSlot as _n, NotificationsSignedIn as _r, Dns as _t, REQUIRED_CAPABILITIES as a, LoadedConfig as aa, StorageBranch as ai, IssueOrder as an, TelemetryConfig as ao, NotificationsLinksLayout as ar, DeployFunctionConfig as at, BoardPullRequest as b, CommandThreadsMode as ba, ToolingWorkspaceResult as bi, Monitoring as bn, PagesConfig as br, DnsRecordType as bt, AddedItem as c, TaskEntry as ca, TeamPermission as ci, IssueRecord as cn, NotificationsOnboardingLayout as cr, DeployScriptResult as ct, AuthDescription as d, resolveConfig as da, ToolingExportInput as di, IssueTypeDeclaration as dn, NotificationsPostedMessage as dr, DeploymentProjectSettings as dt, StackName as ea, SourceRulesetDetail as ei, IssueComment as en, ResolvedProvidersConfig as eo, NotificationsChannelLayout as er, CoverageUploadInput as et, AuthEvent as f, resolveEntry as fa, ToolingExportIssue as fi, IssueTypeInfo as fn, NotificationsPrsFeed as fr, DeploymentRecord as ft, BoardField as g, AppConfig as ga, ToolingOpenPlan as gi, LifecycleResult as gn, NotificationsSignIn as gr, DiscussionPost as gt, AuthUser as h, AgentOptions as ha, ToolingOpenLaunch as hi, LabelDef as hn, NotificationsServerLayout as hr, DiscussionPatch as ht, ProviderApiError as i, loadConfig as ia, Storage as ii, IssueKind as in, TaskEntryConfig as io, NotificationsLayout as ir, CredentialsInspection as it, CacheTokenCheck as j, LogConfig as ja, WikiInstanceState as ji, MonitoringDashboardState as jn, PullRequestResult as jr, EnsuredDiscussion as jt, BoardView as k, HolocronConfig as ka, Wiki as ki, MonitoringCheckInput as kn, PullRequestLink as kr, EnsureResult as kt, Analytics as l, ConfigError as la, Tooling as li, IssueSearchFilter as ln, NotificationsPicture as lr, Deployment as lt, AuthIdentity as m, AgentName as ma, ToolingOpenInput as mi, Issues as mn, NotificationsRelaySource as mr, DeploymentTrigger as mt, ElevationRequiredError as n, compose as na, SourceTeamMember as ni, IssueEffort as nn, SingleEntry as no, NotificationsEveryoneLayout as nr, CreateAuthUserInput as nt, WebhookVerificationError as o, Capability as oa, SyncResult as oi, IssuePatch as on, WorkflowWithConfig as oo, NotificationsMember as or, DeployFunctionResult as ot, AuthEventType as p, resolvePluginPackage as pa, ToolingExportResult as pi, IssueUpdateResult as pn, NotificationsReaction as pr, DeploymentTarget as pt, CoverageNameDiff as q, RepoSecretsSync as qa, deriveProfile as qi, MonitoringStatusPageResult as qn, SourceBranch as qr, ImportOptions as qt, MissingTokenError as r, defineConfig as ra, StatusCategory as ri, IssueFields as rn, StorybookDeployProject as ro, NotificationsForumTag as rr, Credentials as rt, isMulti as s, ComposedPreset as sa, TeamEntry as si, IssuePriority as sn, EnvironmentLayer as so, NotificationsMonitoringFeed as sr, DeployScriptConfig as st, CARDINALITY as t, ConfigFileError as ta, SourceSecurity as ti, IssueCreateInput as tn, ResolvedTuple as to, NotificationsDelivery as tr, CoverageUploadResult as tt, Auth as u, credentialsEnvironment as ua, ToolingDoctorReport as ui, IssueSelector as un, NotificationsPinnedLayout as ur, DeploymentProject as ut, BoardItem as v, ChromaticProjectConfig as va, ToolingWorkspaceFile as vi, Logs as vn, NotificationsWelcomeLayout as vr, DnsRecord as vt, BoardStatus as w, DocsConfig as wa, TrackerUser as wi, MonitoringAlertSettings as wn, PullRequest as wr, EnsureRelayInput as wt, BoardPullRequestChecks as x, CredentialsConfig as xa, ToolingWorkspaceSide as xi, MonitoringAlertChannelInput as xn, ParseWebhookInput as xr, DuplicateDiscussion as xt, BoardItemInput as y, CommandLogMode as ya, ToolingWorkspaceInput as yi, LogsDataset as yn, OrganizationSecretScope as yr, DnsRecordRequest as yt, CiRunStatus as z, RepoConfig as za, WorkerScriptState as zi, MonitoringIncidentQuery as zn, ResolvedCapability as zr, ErrorsInspection as zt };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { $ as CoverageUploadGroup, $a as
|
|
1
|
+
import { $ as CoverageUploadGroup, $a as ResolvedProviderEntry, $i as PackageJsonLike, $n as NotificationsApplicationLayout, $r as SourceRequiredChecks, $t as IssueClearable, A as Cache, Aa as IdeasConfig, Ai as WikiInspection, An as MonitoringDashboardInput, Ar as PullRequestPatch, At as EnsureWebhookResult, B as ConnectionStringOptions, Ba as RepoEnvironment, Bi as Workers, Bn as MonitoringIncidentResolveInput, Br as Ruleset, Bt as ErrorsOrgState, C as BoardState, Ca as DevServeConfig, Ci as TrackerDoctorReport, Cn as MonitoringAlertChannelState, Cr as ProviderIdentity, Ct as EnsureDiscussionInput, D as BoardTemplate, Da as EslintConfig, Di as Vault, Dn as MonitoringAssertionSource, Dr as PullRequestFields, Dt as EnsureRelaySourceResult, E as BoardSummary, Ea as EnvConfig, Ei as Tunnels, En as MonitoringAssertionComparison, Er as PullRequestChecksState, Et as EnsureRelaySourceInput, F as CardinalityFor, Fa as OrgIssueType, Fi as WikiProvisionOpts, Fn as MonitoringHttpMethod, Fr as RelaySourceState, Ft as EnvironmentEntry, G as CoverageConfigInput, Ga as RepoSecrets, Gi as deriveCapabilities, Gn as MonitoringStatusComponentInput, Gr as ServerInspection, Gt as IdeaRecord, H as Coverage, Ha as RepoLabels, Hi as PullRequestTag, Hn as MonitoringIncidentUpdate, Hr as SecretScope, Ht as ExportInfo, I as Ci, Ia as ProviderOptions, Ii as WikiProxyConfig, In as MonitoringIncident, Ir as RelayState, It as EnvironmentReviewer, J as CoverageRepoReport, Ja as RepoValidationConfig, Ji as deriveStack, Jn as MonitoringStatusPageState, Jr as SourceCheckRun, Jt as ImportResult, K as CoverageExpectations, Ka as RepoSecretsDeploy, Ki as deriveCompliance, Kn as MonitoringStatusPageInput, Kr as Source, Kt as Ideas, L as CiRun, La as RawProviderEntry, Li as WikiPublishedState, Ln as MonitoringIncidentImpact, Lr as RepoRef, Lt as Environments, M as CapabilityImpls, Ma as MultiEntry, Mi as WikiNavigationState, Mn as MonitoringHeartbeatInput, Mr as Registry, Mt as EnsuredResource, N as CapabilityKey, Na as NotificationsConfig, Ni as WikiOrganizationState, Nn as MonitoringHeartbeatResult, Nr as RelaySourceCapability, Nt as EnsuredTunnel, O as BoardTemplateFile, Oa as GitHubAppConfig, Oi as WebhookDashboardInfo, On as MonitoringCheck, Or as PullRequestInput, Ot as EnsureReport, P as Cardinality, Pa as OrgConfig, Pi as WikiProbe, Pn as MonitoringHeartbeatUnit, Pr as RelaySourceMethods, Pt as Environment, Q as CoverageUploadFlagResult, Qa as ResolvedHolocronConfig, Qi as HolocronProfile, Qn as NotificationsAccess, Qr as SourceRepoInfo, Qt as Issue, R as CiRunFilter, Ra as RawProvidersConfig, Ri as WorkerDeploymentState, Rn as MonitoringIncidentInput, Rr as RepoSettings, Rt as Errors, S as BoardRule, Sa as DevConfig, Si as ToolingWorkspaceState, Sn as MonitoringAlertChannelResult, Sr as Projects, St as EmojiCheck, T as BoardStatusCategory, Ta as DoctorConfig, Ti as TunnelRoute, Tn as MonitoringAssertion, Tr as PullRequestChecks, Tt as EnsureRelayResult, U as CoverageConfigComponent, Ua as RepoProperties, Ui as RenderedPullRequest, Un as MonitoringIncidentUpdateInput, Ur as SecretVisibility, Ut as HideLinkPreviewsInput, V as CoreIssueKind, Va as RepoEnvironmentReviewer, Vi as PullRequestState, Vn as MonitoringIncidentStatus, Vr as SecretAccess, Vt as ErrorsProjectState, W as CoverageConfigDocumentation, Wa as RepoProtection, Wi as KNOWN_STACK_DEPS, Wn as MonitoringIncidentWrite, Wr as Secrets, Wt as HideLinkPreviewsResult, X as CoverageStatusInput, Xa as RepoVariablesSync, Xi as readWorkspacePackageJsons, Xn as NormalizedAuthUser, Xr as SourceCommitStatus, Xt as InspectRelayInput, Y as CoverageStatusContext, Ya as RepoVariables, Yi as missingCapabilities, Yn as MoveReport, Yr as SourceCheckRunWrite, Yt as InspectErrorsInput, Z as CoverageTokenCheck, Za as RepoView, Zi as DeriveProfileInput, Zn as Notifications, Zr as SourceFile, Zt as InspectRelaySourceInput, _ as BoardFieldType, _a as CapabilityConfigPackage, _i as ToolingOpenWant, _n as LifecycleSlot, _r as NotificationsSignedIn, _t as Dns, a as REQUIRED_CAPABILITIES, aa as LoadedConfig, ai as StorageBranch, an as IssueOrder, ao as TelemetryConfig, ar as NotificationsLinksLayout, at as DeployFunctionConfig, b as BoardPullRequest, ba as CommandThreadsMode, bi as ToolingWorkspaceResult, bn as Monitoring, br as PagesConfig, bt as DnsRecordType, c as AddedItem, ca as TaskEntry, ci as TeamPermission, cn as IssueRecord, cr as NotificationsOnboardingLayout, ct as DeployScriptResult, d as AuthDescription, da as resolveConfig, di as ToolingExportInput, dn as IssueTypeDeclaration, dr as NotificationsPostedMessage, dt as DeploymentProjectSettings, ea as StackName, ei as SourceRulesetDetail, en as IssueComment, eo as ResolvedProvidersConfig, er as NotificationsChannelLayout, et as CoverageUploadInput, f as AuthEvent, fa as resolveEntry, fi as ToolingExportIssue, fn as IssueTypeInfo, fr as NotificationsPrsFeed, ft as DeploymentRecord, g as BoardField, ga as AppConfig, gi as ToolingOpenPlan, gn as LifecycleResult, gr as NotificationsSignIn, gt as DiscussionPost, h as AuthUser, ha as AgentOptions, hi as ToolingOpenLaunch, hn as LabelDef, hr as NotificationsServerLayout, ht as DiscussionPatch, i as ProviderApiError, ia as loadConfig, ii as Storage, in as IssueKind, io as TaskEntryConfig, ir as NotificationsLayout, it as CredentialsInspection, j as CacheTokenCheck, ja as LogConfig, ji as WikiInstanceState, jn as MonitoringDashboardState, jr as PullRequestResult, jt as EnsuredDiscussion, k as BoardView, ka as HolocronConfig, ki as Wiki, kn as MonitoringCheckInput, kr as PullRequestLink, kt as EnsureResult, l as Analytics, la as ConfigError, li as Tooling, ln as IssueSearchFilter, lr as NotificationsPicture, lt as Deployment, m as AuthIdentity, ma as AgentName, mi as ToolingOpenInput, mn as Issues, mr as NotificationsRelaySource, mt as DeploymentTrigger, n as ElevationRequiredError, na as compose, ni as SourceTeamMember, nn as IssueEffort, no as SingleEntry, nr as NotificationsEveryoneLayout, nt as CreateAuthUserInput, o as WebhookVerificationError, oa as Capability, oi as SyncResult, on as IssuePatch, oo as WorkflowWithConfig, or as NotificationsMember, ot as DeployFunctionResult, p as AuthEventType, pa as resolvePluginPackage, pi as ToolingExportResult, pn as IssueUpdateResult, pr as NotificationsReaction, pt as DeploymentTarget, q as CoverageNameDiff, qa as RepoSecretsSync, qi as deriveProfile, qn as MonitoringStatusPageResult, qr as SourceBranch, qt as ImportOptions, r as MissingTokenError, ra as defineConfig, ri as StatusCategory, rn as IssueFields, ro as StorybookDeployProject, rr as NotificationsForumTag, rt as Credentials, s as isMulti, sa as ComposedPreset, si as TeamEntry, sn as IssuePriority, so as EnvironmentLayer, sr as NotificationsMonitoringFeed, st as DeployScriptConfig, t as CARDINALITY, ta as ConfigFileError, ti as SourceSecurity, tn as IssueCreateInput, to as ResolvedTuple, tr as NotificationsDelivery, tt as CoverageUploadResult, u as Auth, ua as credentialsEnvironment, ui as ToolingDoctorReport, un as IssueSelector, ur as NotificationsPinnedLayout, ut as DeploymentProject, v as BoardItem, va as ChromaticProjectConfig, vi as ToolingWorkspaceFile, vn as Logs, vr as NotificationsWelcomeLayout, vt as DnsRecord, w as BoardStatus, wa as DocsConfig, wi as TrackerUser, wn as MonitoringAlertSettings, wr as PullRequest, wt as EnsureRelayInput, x as BoardPullRequestChecks, xa as CredentialsConfig, xi as ToolingWorkspaceSide, xn as MonitoringAlertChannelInput, xr as ParseWebhookInput, xt as DuplicateDiscussion, y as BoardItemInput, ya as CommandLogMode, yi as ToolingWorkspaceInput, yn as LogsDataset, yr as OrganizationSecretScope, yt as DnsRecordRequest, z as CiRunStatus, za as RepoConfig, zi as WorkerScriptState, zn as MonitoringIncidentQuery, zr as ResolvedCapability, zt as ErrorsInspection } from "./index-C5MapAsc.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";
|
|
5
5
|
import "@theholocron/env-utils/lookup";
|
|
6
|
+
import "@theholocron/observability/core";
|
|
6
7
|
import { RequestOptions, RestClient, RestClientConfig, createRestClient } from "@theholocron/http-client";
|
|
7
8
|
import "@theholocron/kyber/plugins";
|
|
8
9
|
import { GitExec } from "@theholocron/git-utils";
|
|
9
10
|
import { ConnectionProbeInput as ConnectionProbeInput$1 } from "@theholocron/kyber/checks";
|
|
10
11
|
import { Stats } from "node:fs";
|
|
11
12
|
import { TasksConfig } from "@theholocron/astromech/config";
|
|
12
|
-
import "@theholocron/observability/core";
|
|
13
13
|
import { ConfigDirArea } from "@theholocron/datapad";
|
|
14
14
|
/** A plugin's `verifyToken` result when the provider accepted the token. */
|
|
15
15
|
interface VerifyTokenSuccess {
|
|
@@ -138,6 +138,16 @@ export declare function createResolveToken(config: ResolveTokenConfig): TokenRes
|
|
|
138
138
|
* the operation fails with a message naming the exact variable to set and `holocron new token`.
|
|
139
139
|
*/
|
|
140
140
|
export declare function createFeatureResolver(config: FeatureResolverConfig): FeatureResolver;
|
|
141
|
+
/** The key a pull request's post is found by: `owner/repo#123`. */
|
|
142
|
+
export declare function prKey(repo: string, number: number): string;
|
|
143
|
+
/** The tag of a pull request: the first that applies of merged, closed, draft, conflicts, failing, changes requested, ready, in review. */
|
|
144
|
+
export declare function pullRequestTag(state: PullRequestState): PullRequestTag;
|
|
145
|
+
/**
|
|
146
|
+
* The post for a pull request: its title (`repo#123: title`, plain text, because a forum post's title is not
|
|
147
|
+
* markdown), the summary that is the first message (edited in place, no footer: a link to the pull request without
|
|
148
|
+
* repeating the title, the status lines and the author's description with Sourcery's parts removed) and its tag. A pure function of the current state; the caller fetches it, and the provider adds the sync footer.
|
|
149
|
+
*/
|
|
150
|
+
export declare function renderPullRequest(state: PullRequestState, now: Date): RenderedPullRequest;
|
|
141
151
|
/**
|
|
142
152
|
* The flags and components `holocron sync` writes to `codecov.yml` for the workspace at `repoRoot`: the same
|
|
143
153
|
* functions the generator uses, so a coverage provider's `checkRepo()` compares with exactly what is written. A flag per
|
|
@@ -942,4 +952,4 @@ export declare const SHARED_AREAS: readonly ["org"];
|
|
|
942
952
|
* is a `ConfigError` naming both (no merge, no precedence). With no area files the config is returned as it was.
|
|
943
953
|
*/
|
|
944
954
|
export declare function placeAreas(areas: ConfigDirArea[], raw: HolocronConfig): HolocronConfig;
|
|
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 };
|
|
955
|
+
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 CommandLogMode, type CommandThreadsMode, 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, type NotificationsConfig, 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 PullRequestState, type PullRequestStatusChange, type PullRequestStatusPlan, type PullRequestStatusReason, type PullRequestStatusUnresolved, type PullRequestTag, REQUIRED_CAPABILITIES, type RawProviderEntry, type RawProvidersConfig, type ReadKeysLimitedInput, type ReadTokenId, type ReconcileChange, type ReconcilePlan, type ReconcileReason, type ReconcileUnresolved, Registry, RelaySourceCapability, RelaySourceMethods, RelaySourceState, RelayState, type RenderedPullRequest, 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
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
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-CZ9zgh3-.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 { AGGREGATE_CHECK_NAME, AGGREGATE_SHADOW_CHECK_NAME, DOCUMENTATION_FLAG, codecovFlagNames, readWorkspacePackages, requiredChecks, requiredChecksVerdict } from "@theholocron/astromech";
|
|
@@ -1207,6 +1207,124 @@ function areaLabelsForTitle(title, scopes) {
|
|
|
1207
1207
|
}
|
|
1208
1208
|
return labels;
|
|
1209
1209
|
}
|
|
1210
|
+
// src/pull-request-post/pr-key/pr-key.ts
|
|
1211
|
+
/** The key a pull request's post is found by: `owner/repo#123`. */
|
|
1212
|
+
function prKey(repo, number) {
|
|
1213
|
+
return `${repo}#${number}`;
|
|
1214
|
+
}
|
|
1215
|
+
// src/pull-request-post/pull-request-tag/pull-request-tag.ts
|
|
1216
|
+
/** The tag of a pull request: the first that applies of merged, closed, draft, conflicts, failing, changes requested, ready, in review. */
|
|
1217
|
+
function pullRequestTag(state) {
|
|
1218
|
+
if (state.merged) return "merged";
|
|
1219
|
+
if (state.closed) return "closed";
|
|
1220
|
+
if (state.draft) return "draft";
|
|
1221
|
+
if (state.mergeable === "conflicting") return "conflicts";
|
|
1222
|
+
if (state.ci === "failing") return "failing";
|
|
1223
|
+
if (state.review === "changes_requested") return "changes requested";
|
|
1224
|
+
if (state.review === "approved" && state.ci === "passing") return "ready";
|
|
1225
|
+
return "in review";
|
|
1226
|
+
}
|
|
1227
|
+
// src/pull-request-post/age-text/age-text.ts
|
|
1228
|
+
const MINUTE = 6e4;
|
|
1229
|
+
const HOUR = 60 * MINUTE;
|
|
1230
|
+
const DAY = 24 * HOUR;
|
|
1231
|
+
/** How long ago something happened, in the largest whole unit: `just now`, `5 minutes ago`, `1 hour ago`, `3 days ago`. */
|
|
1232
|
+
function ageText(createdAt, now) {
|
|
1233
|
+
const elapsed = Math.max(0, now.getTime() - new Date(createdAt).getTime());
|
|
1234
|
+
if (elapsed < MINUTE) return "just now";
|
|
1235
|
+
const [value, unit] = elapsed >= DAY ? [Math.floor(elapsed / DAY), "day"] : elapsed >= HOUR ? [Math.floor(elapsed / HOUR), "hour"] : [Math.floor(elapsed / MINUTE), "minute"];
|
|
1236
|
+
return `${value} ${unit}${value === 1 ? "" : "s"} ago`;
|
|
1237
|
+
}
|
|
1238
|
+
/** What Sourcery writes between its start and end markers, e.g. the reviewer's guide. */
|
|
1239
|
+
const SOURCERY_BLOCK = /<!--\s*Generated by sourcery-ai[^>]*?start\s+(\w+)\s*-->[\s\S]*?<!--\s*Generated by sourcery-ai[^>]*?end\s+\1\s*-->/gi;
|
|
1240
|
+
/** Sourcery's auto-generated summary starts at this marker and runs to the end of the description. */
|
|
1241
|
+
const SOURCERY_SUMMARY = /<!--\s*This is an auto-generated description by sourcery-ai\.?\s*-->[\s\S]*$/i;
|
|
1242
|
+
/** A command someone typed to Sourcery (`@sourcery-ai summary`). */
|
|
1243
|
+
const SOURCERY_COMMAND = /^.*@sourcery-ai\b.*$/gim;
|
|
1244
|
+
/** Drops each heading that names Sourcery with its section, up to the next heading of the same or a higher level. */
|
|
1245
|
+
function withoutSourcerySections(text) {
|
|
1246
|
+
const kept = [];
|
|
1247
|
+
let skipping = 0;
|
|
1248
|
+
for (const line of text.split("\n")) {
|
|
1249
|
+
const heading = /^(#{1,6})\s/.exec(line);
|
|
1250
|
+
if (heading) {
|
|
1251
|
+
const level = heading[1].length;
|
|
1252
|
+
if (/sourcery/i.test(line)) {
|
|
1253
|
+
skipping = level;
|
|
1254
|
+
continue;
|
|
1255
|
+
}
|
|
1256
|
+
if (skipping > 0 && level <= skipping) skipping = 0;
|
|
1257
|
+
}
|
|
1258
|
+
if (skipping === 0) kept.push(line);
|
|
1259
|
+
}
|
|
1260
|
+
return kept.join("\n");
|
|
1261
|
+
}
|
|
1262
|
+
/**
|
|
1263
|
+
* `text` without its HTML comments, repeated until none is left: taking one out can join the pieces around it into a new
|
|
1264
|
+
* one (`<!<!-- x -->-- y -->`), which a single pass would leave in the post.
|
|
1265
|
+
*/
|
|
1266
|
+
function withoutHtmlComments(text) {
|
|
1267
|
+
let current = text;
|
|
1268
|
+
for (;;) {
|
|
1269
|
+
const next = current.replace(/<!--[\s\S]*?-->/g, "");
|
|
1270
|
+
if (next === current) return next;
|
|
1271
|
+
current = next;
|
|
1272
|
+
}
|
|
1273
|
+
}
|
|
1274
|
+
/**
|
|
1275
|
+
* The part of a pull request's description worth showing in its post: the text the author wrote. Sourcery's summary,
|
|
1276
|
+
* reviewer's guide and commands are removed, and so is every HTML comment (a template's hints), the blank runs they
|
|
1277
|
+
* leave are closed up, and what is left is cut to {@link DESCRIPTION_LIMIT} characters with an ellipsis. A description
|
|
1278
|
+
* with nothing left, or none, is an empty string.
|
|
1279
|
+
*/
|
|
1280
|
+
function prDescription(body) {
|
|
1281
|
+
if (!body) return "";
|
|
1282
|
+
const text = withoutHtmlComments(withoutSourcerySections(body.replace(/\r\n?/g, "\n").replace(SOURCERY_BLOCK, "").replace(SOURCERY_SUMMARY, "")).replace(SOURCERY_COMMAND, "")).replace(/\n{3,}/g, "\n\n").trim();
|
|
1283
|
+
return text.length <= 1500 ? text : `${text.slice(0, 1499).trimEnd()}…`;
|
|
1284
|
+
}
|
|
1285
|
+
// src/pull-request-post/render-pull-request/render-pull-request.ts
|
|
1286
|
+
/** Discord's limit on a post's title. */
|
|
1287
|
+
const TITLE_LIMIT = 100;
|
|
1288
|
+
const CI_TEXT = {
|
|
1289
|
+
passing: "passing",
|
|
1290
|
+
failing: "failing",
|
|
1291
|
+
pending: "running",
|
|
1292
|
+
none: "no result yet"
|
|
1293
|
+
};
|
|
1294
|
+
function cut(text) {
|
|
1295
|
+
return text.length <= TITLE_LIMIT ? text : `${text.slice(0, 99)}…`;
|
|
1296
|
+
}
|
|
1297
|
+
function reviewText(state) {
|
|
1298
|
+
if (state.review === "approved") return "approved";
|
|
1299
|
+
if (state.review === "changes_requested") return "changes requested";
|
|
1300
|
+
if (state.requestedReviewers.length > 0) return `waiting on review from ${state.requestedReviewers.join(", ")}`;
|
|
1301
|
+
return "waiting on review";
|
|
1302
|
+
}
|
|
1303
|
+
/**
|
|
1304
|
+
* The post for a pull request: its title (`repo#123: title`, plain text, because a forum post's title is not
|
|
1305
|
+
* markdown), the summary that is the first message (edited in place, no footer: a link to the pull request without
|
|
1306
|
+
* repeating the title, the status lines and the author's description with Sourcery's parts removed) and its tag. A pure function of the current state; the caller fetches it, and the provider adds the sync footer.
|
|
1307
|
+
*/
|
|
1308
|
+
function renderPullRequest(state, now) {
|
|
1309
|
+
const tag = pullRequestTag(state);
|
|
1310
|
+
const name = state.repo.slice(state.repo.indexOf("/") + 1);
|
|
1311
|
+
const author = state.authorIsBot ? `${state.author} (bot)` : state.author;
|
|
1312
|
+
const status = state.merged ? "merged" : state.closed ? "closed" : state.draft ? "draft" : reviewText(state);
|
|
1313
|
+
const lines = [
|
|
1314
|
+
`**[${state.repo}#${state.number}](${state.url})**`,
|
|
1315
|
+
`by ${author} into \`${state.base}\`, opened ${ageText(state.createdAt, now)}`,
|
|
1316
|
+
`Status: ${status}`,
|
|
1317
|
+
`CI: ${CI_TEXT[state.ci]}`
|
|
1318
|
+
];
|
|
1319
|
+
if (state.mergeable === "conflicting") lines.push(`Conflicts with \`${state.base}\``);
|
|
1320
|
+
const description = prDescription(state.body);
|
|
1321
|
+
const body = description ? `${lines.join("\n")}\n\n${description}` : lines.join("\n");
|
|
1322
|
+
return {
|
|
1323
|
+
title: cut(`${name}#${state.number}: ${state.title}`),
|
|
1324
|
+
body,
|
|
1325
|
+
tag
|
|
1326
|
+
};
|
|
1327
|
+
}
|
|
1210
1328
|
// src/commands/forbidden-token-layers/forbidden-token-layers.ts
|
|
1211
1329
|
/**
|
|
1212
1330
|
* Reads the layers a plugin's tokens forbid (`TokenExpectation.forbiddenLayers`, #2825) as one entry per token and
|
|
@@ -1509,4 +1627,4 @@ function resolveCredentialsFile(base, file, makeDir = (dir) => void mkdirSync(di
|
|
|
1509
1627
|
isDefault: true
|
|
1510
1628
|
};
|
|
1511
1629
|
}
|
|
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 };
|
|
1630
|
+
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, prKey, pullRequestTag, reactionProblem, reactionSpelling, readKeysLimited, readLinks, readWorkspacePackageJsons, renderPullRequest, 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 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-
|
|
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-C5MapAsc.mjs";
|
|
2
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 { na as compose, oa as Capability, sa as ComposedPreset } from "./index-C5MapAsc.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