@theholocron/cli 5.0.0-alpha.39 → 5.0.0-alpha.391
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 +531 -105
- package/dist/cli.mjs +21984 -6638
- package/dist/cli.mjs.map +1 -1
- package/dist/config-system-BVYtgrmR.mjs +578 -0
- package/dist/config-system-u0AcPQ77.d.mts +929 -0
- package/dist/index-nzzQsd0r.d.mts +2916 -0
- package/dist/index.d.mts +382 -592
- package/dist/index.mjs +419 -363
- package/dist/plugin/capabilities.d.mts +2 -807
- package/dist/plugin/capabilities.mjs +53 -4
- package/dist/presets.d.mts +221 -0
- package/dist/presets.mjs +439 -0
- package/package.json +48 -36
package/dist/index.d.mts
CHANGED
|
@@ -1,546 +1,314 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { $ as DnsRecord, $t as NotificationsLinksLayout, A as Cardinality, An as StatusCategory, At as Logs, B as DeployFunctionConfig, Bn as TunnelRoute, Bt as MonitoringCheck, C as BoardStatusCategory, Cn as Source, Ct as IssueRecord, D as BoardView, Dn as SourceRulesetDetail, Dt as LabelDef, E as BoardTemplateFile, En as SourceRepoInfo, Et as Issues, F as CiRunStatus, Fn as TeamPermission, Ft as MonitoringAlertChannelState, G as DeploymentProject, Gn as WikiProvisionOpts, Gt as Notifications, H as DeployScriptConfig, Hn as Vault, Ht as MonitoringHttpMethod, I as ConnectionStringOptions, In as Tooling, It as MonitoringAlertSettings, J as DeploymentTarget, Jn as Workers, Jt as NotificationsChannelLayout, K as DeploymentProjectSettings, Kn as WikiProxyConfig, Kt as NotificationsAccess, L as CreateAuthUserInput, Ln as ToolingDoctorReport, Lt as MonitoringAssertion, M as Ci, Mn as StorageBranch, Mt as Monitoring, N as CiRun, Nn as SyncResult, Nt as MonitoringAlertChannelInput, O as CapabilityImpls, On as SourceSecurity, Ot as LifecycleResult, P as CiRunFilter, Pn as TeamEntry, Pt as MonitoringAlertChannelResult, Q as Dns, Qt as NotificationsLayout, R as Credentials, Rn as TrackerDoctorReport, Rt as MonitoringAssertionComparison, S as BoardStatus, Sn as ServerInspection, St as IssuePriority, T as BoardTemplate, Tn as SourceFile, Tt as IssueSelector, U as DeployScriptResult, Un as WebhookDashboardInfo, Ut as MoveReport, V as DeployFunctionResult, Vn as Tunnels, Vt as MonitoringCheckInput, W as Deployment, Wn as Wiki, Wt as NormalizedAuthUser, X as DiscussionPatch, Xt as NotificationsEveryoneLayout, Y as DeploymentTrigger, Yt as NotificationsDelivery, Z as DiscussionPost, Zt as NotificationsForumTag, _ as BoardFieldType, _n as RepoSettings, _t as ImportResult, a as REQUIRED_CAPABILITIES, an as NotificationsPrsFeed, at as EnsureReport, b as BoardRule, bn as SecretScope, bt as IssueComment, c as AddedItem, cn as NotificationsSignedIn, ct as EnsuredDiscussion, d as AuthDescription, dn as ParseWebhookInput, dt as Environment, en as NotificationsMember, et as DnsRecordRequest, f as AuthEvent, fn as Projects, ft as EnvironmentReviewer, g as BoardField, gn as RepoRef, gt as ImportOptions, h as AuthUser, hn as RelayState, ht as ExportInfo, i as ProviderApiError, in as NotificationsPinnedLayout, it as EnsureRelayResult, j as CardinalityFor, jn as Storage, jt as LogsDataset, k as CapabilityKey, kn as SourceTeamMember, kt as LifecycleSlot, l as Analytics, ln as NotificationsWelcomeLayout, lt as EnsuredResource, m as AuthIdentity, mn as PullRequest, mt as Errors, n as ElevationRequiredError, nn as NotificationsOnboardingLayout, nt as EnsureDiscussionInput, o as WebhookVerificationError, on as NotificationsServerLayout, ot as EnsureResult, p as AuthEventType, pn as ProviderIdentity, pt as Environments, q as DeploymentRecord, qn as WorkerScriptState, qt as NotificationsApplicationLayout, r as MissingTokenError, rn as NotificationsPicture, rt as EnsureRelayInput, s as isMulti, sn as NotificationsSignIn, st as EnsureWebhookResult, t as CARDINALITY, tn as NotificationsMonitoringFeed, tt as DnsRecordType, u as Auth, un as PagesConfig, ut as EnsuredTunnel, v as BoardItem, vn as ResolvedCapability, vt as InspectRelayInput, w as BoardSummary, wn as SourceBranch, wt as IssueSearchFilter, x as BoardState, xn as Secrets, xt as IssueOrder, y as BoardItemInput, yn as Ruleset, yt as Issue, z as CredentialsInspection, zn as TrackerUser, zt as MonitoringAssertionSource } from "./index-nzzQsd0r.mjs";
|
|
2
|
+
import { A as RawProviderEntry, B as ResolvedHolocronConfig, C as EslintConfig, D as MultiEntry, E as LogConfig, F as RepoSecrets, G as StorybookDeployProject, H as ResolvedProvidersConfig, I as RepoSecretsSync, J as WorkflowWithConfig, K as TaskEntryConfig, L as RepoValidationConfig, M as RepoConfig, N as RepoProperties, O as OrgConfig, P as RepoProtection, R as RepoVariables, S as EnvConfig, T as HolocronConfig, U as ResolvedTuple, V as ResolvedProviderEntry, W as SingleEntry, _ as CredentialsConfig, a as LoadedConfig, b as DocsConfig, c as TaskEntry, d as resolveConfig, f as resolveEntry, g as ChromaticProjectConfig, h as CapabilityConfigPackage, i as loadConfig, j as RawProvidersConfig, k as ProviderOptions, l as ConfigError, m as AppConfig, n as compose, o as Capability, p as resolvePluginPackage, q as TelemetryConfig, r as defineConfig, s as ComposedPreset, t as ConfigFileError, u as credentialsEnvironment, v as DevConfig, w as GitHubAppConfig, x as DoctorConfig, y as DevServeConfig, z as RepoVariablesSync } from "./config-system-u0AcPQ77.mjs";
|
|
3
|
+
import { AuthError, ResolveTokenConfig as ResolveTokenConfig$1, ResolveTokenInput, ResolveTokenInput as ResolveTokenInput$1, resolveValue } from "@theholocron/kyber/secrets";
|
|
4
|
+
import { CheckRow } from "@theholocron/kyber/ui";
|
|
5
|
+
import { RequestOptions, RestClient, RestClientConfig, createRestClient } from "@theholocron/http-client";
|
|
6
|
+
import "@theholocron/kyber/plugins";
|
|
7
|
+
import { PackageJson } from "@theholocron/pkg-utils";
|
|
4
8
|
import { WorkspacePackage } from "@theholocron/astromech";
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
import { ConnectionProbeInput as ConnectionProbeInput$1 } from "@theholocron/kyber/checks";
|
|
10
|
+
import "@theholocron/observability/core";
|
|
11
|
+
import { ConfigDirArea } from "@theholocron/datapad";
|
|
12
|
+
/** A plugin's `verifyToken` result when the provider accepted the token. */
|
|
13
|
+
interface VerifyTokenSuccess {
|
|
14
|
+
/** Always `true` for an accepted token. */
|
|
15
|
+
ok: true;
|
|
16
|
+
/** "workplace: acme" / "user: cnewton@x" — surfaced in success output. */
|
|
17
|
+
subject: string;
|
|
18
|
+
/** When the token stops working, ISO 8601 in UTC, for a provider that reports it. Absent when unknown or never. */
|
|
19
|
+
expiresAt?: string;
|
|
20
|
+
}
|
|
21
|
+
/** A plugin's `verifyToken` result when the provider rejected the token. */
|
|
22
|
+
interface VerifyTokenFailure {
|
|
23
|
+
/** Always `false` for a rejected token. */
|
|
24
|
+
ok: false;
|
|
25
|
+
/** Reason the token was rejected. Surfaces to the operator. */
|
|
26
|
+
message: string;
|
|
27
|
+
}
|
|
28
|
+
/** What a plugin's `verifyToken` returns: the token was accepted, or it was rejected with a reason. */
|
|
29
|
+
type VerifyTokenResult = VerifyTokenSuccess | VerifyTokenFailure;
|
|
30
|
+
/** One token a plugin takes, and where it is looked up. */
|
|
31
|
+
interface PluginToken {
|
|
32
|
+
/** The plugin's own environment variable, e.g. `HOLOCRON_ADMIN_TOKEN`. */
|
|
33
|
+
envName: string;
|
|
34
|
+
/** The vendor's own environment variable, e.g. `CLOUDFLARE_API_TOKEN`; read after `envName` and before the keyring. */
|
|
35
|
+
vendorEnvName?: string;
|
|
36
|
+
/** The OS keyring entry, e.g. `github.admin`. */
|
|
37
|
+
keyringKey: string;
|
|
38
|
+
/**
|
|
39
|
+
* `false` when the plugin's `verifyToken` does not apply to this token (it checks a different credential, such as
|
|
40
|
+
* a webhook URL), so `holocron doctor tokens` reports it as set without calling the plugin. Default `true`.
|
|
41
|
+
*/
|
|
42
|
+
verifiable?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* How to check this token when the plugin's one `verifyToken` is for a different credential (the Discord bot token,
|
|
45
|
+
* where `verifyToken` checks a webhook). Wins over the plugin's `verifyToken`.
|
|
46
|
+
*/
|
|
47
|
+
verify?: (token: string) => Promise<VerifyTokenResult>;
|
|
48
|
+
/**
|
|
49
|
+
* `true` when the plugin only falls back to this token: nothing needs it unless a call names no better source (the
|
|
50
|
+
* Discord webhook a post uses when it names no channel). The checks that expect every token a plugin lists, such as
|
|
51
|
+
* `holocron doctor credentials`, do not expect it, and `holocron auth export` marks it as optional when it has none.
|
|
52
|
+
* Default `false`.
|
|
53
|
+
*/
|
|
54
|
+
optional?: boolean;
|
|
55
|
+
}
|
|
56
|
+
/** Options for a token resolver, without the keyring lookup, which the CLI supplies itself. */
|
|
57
|
+
type ResolveTokenConfig = Omit<ResolveTokenConfig$1, "keyring" | "orgEnvName">;
|
|
58
|
+
/** Settings for a feature-specific token resolver: which env var and keyring entry it reads. */
|
|
11
59
|
interface FeatureResolverConfig {
|
|
12
60
|
/** Env var name for this feature, e.g. `"HOLOCRON_ISSUES_TOKEN"`. */
|
|
13
61
|
envName: string;
|
|
14
62
|
/** Keyring account key, e.g. `"github.issues"`. */
|
|
15
63
|
keyringKey: string;
|
|
64
|
+
/** The vendor named in the "no token" message. Default `GitHub`. */
|
|
65
|
+
vendor?: string;
|
|
16
66
|
}
|
|
67
|
+
/** A resolver from `createFeatureResolver`: call it for the token, or read `token` to see where it looks. */
|
|
68
|
+
type FeatureResolver = ((input?: ResolveTokenInput$1) => string) & {
|
|
69
|
+
/** The environment variable and keyring entry this resolver reads, for `holocron doctor tokens`. */
|
|
70
|
+
readonly token: PluginToken;
|
|
71
|
+
};
|
|
72
|
+
/** A resolver from `createResolveToken`: call it for the token, or read `token` to see where it looks. */
|
|
73
|
+
type TokenResolver = ((input?: ResolveTokenInput$1) => string) & {
|
|
74
|
+
/** The environment variables and keyring entry this resolver reads, for `holocron doctor tokens`. */
|
|
75
|
+
readonly token: PluginToken;
|
|
76
|
+
};
|
|
17
77
|
/**
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* No broad-token fallback — if the feature-specific token is absent the
|
|
22
|
-
* operation fails with a message naming the exact env var to set.
|
|
23
|
-
*/
|
|
24
|
-
declare function createFeatureResolver(config: FeatureResolverConfig): (input?: ResolveTokenInput) => string;
|
|
25
|
-
//#endregion
|
|
26
|
-
//#region src/auth/keyring.d.ts
|
|
27
|
-
/**
|
|
28
|
-
* Keyring-backed bootstrap credential store.
|
|
29
|
-
*
|
|
30
|
-
* Every holocron plugin's bootstrap token (the one it needs before it
|
|
31
|
-
* can talk to its vendor's API) can be stored in the OS keyring under
|
|
32
|
-
* a single reverse-DNS service scope. Managed via `holocron auth`
|
|
33
|
-
* subcommands; consulted at position 4 in every plugin's auth
|
|
34
|
-
* precedence chain (after --token / HOLOCRON_<X>_TOKEN / <native>_TOKEN).
|
|
35
|
-
*
|
|
36
|
-
* See `docs/wiki/specifications/tech-auth-bootstrap.spec.md` for the design rationale.
|
|
37
|
-
*
|
|
38
|
-
* Failure model: keyring access is best-effort. Platforms without a
|
|
39
|
-
* supported credential store (some Linux CI images, sandboxed
|
|
40
|
-
* environments) will throw from the underlying library. Every export
|
|
41
|
-
* here catches and returns a null/empty result rather than propagating
|
|
42
|
-
* — the plugin's precedence chain then falls through to
|
|
43
|
-
* env-var-only paths, which is exactly how CI is meant to work.
|
|
44
|
-
*/
|
|
45
|
-
/**
|
|
46
|
-
* Store or overwrite a bootstrap token for a provider. Returns true on
|
|
47
|
-
* success, false when the underlying keyring is unsupported or errored.
|
|
48
|
-
*/
|
|
49
|
-
declare function setToken(provider: string, token: string): boolean;
|
|
50
|
-
/**
|
|
51
|
-
* Read the bootstrap token for a provider. Returns `null` for both
|
|
52
|
-
* "not stored" and "keyring unavailable" — callers can treat them the
|
|
53
|
-
* same way (fall through to env-var precedence).
|
|
78
|
+
* The holocron keyring: `get` answers `null` for "not stored" and for "keyring unavailable" alike, so callers fall
|
|
79
|
+
* through to env-var precedence, and remembers the answer for the process (`clearCache` forgets it); `set` and `delete`
|
|
80
|
+
* answer whether they did anything; `list` names the stored providers; `isAvailable` tells an outage from an empty keyring.
|
|
54
81
|
*/
|
|
55
|
-
declare
|
|
82
|
+
export declare const keyring: import("@theholocron/kyber/secrets").Keyring;
|
|
56
83
|
/**
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
* command output makes the situation clear either way.
|
|
84
|
+
* Kyber's `createResolveToken` with the keyring, the `HOLOCRON_ORG` variable and the `token` description
|
|
85
|
+
* `holocron doctor tokens` reads filled in, so a plugin stays at a one-liner call site. The chain is the flag, the
|
|
86
|
+
* plugin's variable, the vendor's variable, the `credentials` providers' variables, the keyring.
|
|
61
87
|
*/
|
|
62
|
-
declare function
|
|
88
|
+
export declare function createResolveToken(config: ResolveTokenConfig): TokenResolver;
|
|
63
89
|
/**
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
90
|
+
* Kyber's `createFeatureResolver` for a strict, single-feature token: the flag, the feature's variable, the
|
|
91
|
+
* `credentials` providers' variable of that name, the keyring. No broad-token fallback; if the feature's token is absent
|
|
92
|
+
* the operation fails with a message naming the exact variable to set and `holocron auth set`.
|
|
67
93
|
*/
|
|
68
|
-
declare function
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
*/
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
94
|
+
export declare function createFeatureResolver(config: FeatureResolverConfig): FeatureResolver;
|
|
95
|
+
/** One line a probe reports: `info` for a fact, `ok` / `fail` for a result, `heading` to title the rows that follow. */
|
|
96
|
+
interface ProbeRow {
|
|
97
|
+
/** `ok` or `fail` for a result, `info` for a fact, `heading` to title the rows that follow. */
|
|
98
|
+
status: "ok" | "fail" | "info" | "heading";
|
|
99
|
+
/** The row's short title. */
|
|
100
|
+
label: string;
|
|
101
|
+
/** Further detail, when there is some. */
|
|
102
|
+
detail?: string;
|
|
103
|
+
}
|
|
104
|
+
/** What a probe is handed. Everything it prints or changes goes through this, so the runner can enforce the rules. */
|
|
105
|
+
interface ProbeContext {
|
|
106
|
+
/** What the person typed after the probe name (`probe deps who vitest` hands `["vitest"]`). */
|
|
107
|
+
args?: readonly string[];
|
|
108
|
+
/**
|
|
109
|
+
* `--lcov <path>`: where a probe that measures coverage also writes an lcov report, on top of the rows it prints.
|
|
110
|
+
* Relative to the repo root. Unset when the flag was not given.
|
|
111
|
+
*/
|
|
112
|
+
lcov?: string;
|
|
113
|
+
/** `--dry-run`: `write` calls are announced and skipped. */
|
|
114
|
+
dryRun: boolean;
|
|
115
|
+
/** Report one line. The text is scrubbed of secrets before it is printed. */
|
|
116
|
+
say(row: ProbeRow): void;
|
|
117
|
+
/**
|
|
118
|
+
* Change something on the provider. The only way to: on `--dry-run` it prints `would <label>` and does not call `fn`,
|
|
119
|
+
* and a probe that did not declare `writes: true` cannot call it.
|
|
120
|
+
*/
|
|
121
|
+
write<T>(label: string, fn: () => Promise<T>): Promise<T | undefined>;
|
|
122
|
+
/** Register how to undo something this probe made. Runs in reverse order on success, failure and Ctrl-C. */
|
|
123
|
+
cleanup(label: string, fn: () => Promise<void>): void;
|
|
124
|
+
/** Mark a value (a token, a signing secret) as one that must never be printed. */
|
|
125
|
+
secret(value: string | undefined): void;
|
|
90
126
|
}
|
|
127
|
+
/** A named, on-demand poke at a live provider. */
|
|
128
|
+
interface Probe {
|
|
129
|
+
/** One sentence for `holocron probe`'s listing. */
|
|
130
|
+
summary: string;
|
|
131
|
+
/** Whether it creates or changes anything on the provider. Asked about first, and needs `--yes` without a terminal. */
|
|
132
|
+
writes: boolean;
|
|
133
|
+
/** Runs the probe, reporting and changing things only through `ctx`. */
|
|
134
|
+
run(ctx: ProbeContext): Promise<void>;
|
|
135
|
+
}
|
|
136
|
+
/** A plugin's probes by name (kebab-case), as returned from `createPlugin` next to `capabilities`. */
|
|
137
|
+
type PluginProbes = Record<string, Probe>;
|
|
91
138
|
/**
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
* here; the Sentry DSN and PostHog key come from env vars or ship as fallbacks.
|
|
95
|
-
*
|
|
96
|
-
* Precedence: `HOLOCRON_TELEMETRY=false` (env) → `telemetry.enabled` (this) →
|
|
97
|
-
* default on. `enabled` never *re-enables* what the env var turned off.
|
|
139
|
+
* One step of a provider's `setup` or `doctor`, in the shape the shared renderer prints (`printCheckRows`): an id, a
|
|
140
|
+
* title, `ok` / `fail` / `skip`, one line of detail and, for a failure, a line per problem.
|
|
98
141
|
*/
|
|
99
|
-
|
|
142
|
+
type ProviderRow = CheckRow;
|
|
143
|
+
/** What a provider's `setup` and `doctor` are handed. */
|
|
144
|
+
interface ProviderActionContext {
|
|
100
145
|
/**
|
|
101
|
-
*
|
|
102
|
-
*
|
|
146
|
+
* `--dry-run`: `setup` reports what it would change as `ok` rows and changes nothing. `doctor` never changes
|
|
147
|
+
* anything, so it ignores this.
|
|
103
148
|
*/
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* Usage-analytics provider. `"none"` disables PostHog usage analytics while
|
|
107
|
-
* leaving error reporting (Sentry) untouched. Default `"posthog"`.
|
|
108
|
-
*/
|
|
109
|
-
analytics?: "posthog" | "none";
|
|
149
|
+
dryRun: boolean;
|
|
110
150
|
}
|
|
111
|
-
type ProviderOptions = Record<string, unknown>;
|
|
112
151
|
/**
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
* @example
|
|
118
|
-
* // @acme/holocron-vault/index.ts
|
|
119
|
-
* import type { CapabilityConfigPackage } from '@theholocron/cli'
|
|
120
|
-
* export default {
|
|
121
|
-
* provider: '1password',
|
|
122
|
-
* options: { vault: 'acme-app' },
|
|
123
|
-
* } satisfies CapabilityConfigPackage
|
|
152
|
+
* Something only one provider has (a Linear team's automation, a Discord server's roles) and no provider-neutral
|
|
153
|
+
* command can express. It reports one row per step and does not stop at the first failure: a step that fails is a
|
|
154
|
+
* `fail` row and the next step still runs. It never prints a token.
|
|
124
155
|
*/
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
156
|
+
type ProviderAction = (ctx: ProviderActionContext) => Promise<ProviderRow[]>;
|
|
157
|
+
/** A provider's `setup` and `doctor`, as `holocron provider <name> setup|doctor` finds them. */
|
|
158
|
+
interface ProviderActions {
|
|
159
|
+
/** Makes what the provider's own config block declares. Optional. */
|
|
160
|
+
setup?: ProviderAction;
|
|
161
|
+
/** Compares what the provider's own config block declares with what exists, read-only. Optional. */
|
|
162
|
+
doctor?: ProviderAction;
|
|
128
163
|
}
|
|
129
|
-
type SingleEntry = string | [provider: string, options: ProviderOptions];
|
|
130
|
-
type MultiEntry = Array<string | [provider: string, options: ProviderOptions]>;
|
|
131
|
-
type RawProviderEntry = SingleEntry | MultiEntry;
|
|
132
|
-
type RawProvidersConfig = Partial<Record<CapabilityKey, RawProviderEntry>>;
|
|
133
|
-
type RepoProtection = "balanced" | "strict" | "none";
|
|
134
164
|
/**
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
*
|
|
165
|
+
* Puts issue keys in creation order without asking the tracker: issue numbers (`#12`, `ENG-12`) rise with creation inside
|
|
166
|
+
* one repository or team, so the trailing number is the order. `oldest` is ascending, `newest` descending; keys with the
|
|
167
|
+
* same number keep their place. A key with no trailing number is an error, because nothing can be said of its age.
|
|
138
168
|
*/
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* GitHub Pages build source.
|
|
142
|
-
* "workflow" → GitHub Actions (PUT { build_type: "workflow" })
|
|
143
|
-
* "branch" → classic gh-pages branch (PUT { build_type: "legacy", source: { branch: "gh-pages", path: "/" } })
|
|
144
|
-
* When absent, Pages is not managed by `holocron setup`.
|
|
145
|
-
*/
|
|
146
|
-
build?: "workflow" | "branch";
|
|
147
|
-
/**
|
|
148
|
-
* Custom domain / CNAME (e.g. "docs.theholocron.dev").
|
|
149
|
-
* When set and `homepage` is not explicitly provided, setup derives
|
|
150
|
-
* `homepage` as `https://{domain}/` for package.json and the repo website field.
|
|
151
|
-
*/
|
|
152
|
-
domain?: string;
|
|
153
|
-
/** Enforce HTTPS. Only effective once the custom domain is DNS-verified. */
|
|
154
|
-
https?: boolean;
|
|
155
|
-
}
|
|
156
|
-
interface RepoProperties {
|
|
157
|
-
lifecycle?: "active" | "experimental" | "deprecated";
|
|
158
|
-
open_source?: boolean;
|
|
159
|
-
runtime_environment?: "node" | "browser" | "universal" | "none";
|
|
160
|
-
uses_external_packages?: boolean;
|
|
161
|
-
}
|
|
162
|
-
interface RepoConfig {
|
|
163
|
-
/** "owner/name" — the GitHub repository coordinate. Derived from the git remote when absent. */
|
|
164
|
-
name?: string;
|
|
165
|
-
/**
|
|
166
|
-
* Branch protection preset applied by `holocron setup`. When omitted,
|
|
167
|
-
* no protection is applied and no `branch_protection_level` property is set.
|
|
168
|
-
* Required-status-check contexts for `"strict"` are derived from the task
|
|
169
|
-
* manifest — `{ required: true }` tasks + top-level `extraRequiredChecks`
|
|
170
|
-
* (see `astromech.requiredChecks()`).
|
|
171
|
-
*/
|
|
172
|
-
protection?: RepoProtection;
|
|
173
|
-
/**
|
|
174
|
-
* GitHub teams granted repository access. Synced by `holocron setup`, which
|
|
175
|
-
* also writes `.github/CODEOWNERS` for teams with write-or-higher permission.
|
|
176
|
-
* String shorthand defaults to `push` (Write).
|
|
177
|
-
*/
|
|
178
|
-
teams?: TeamEntry[];
|
|
179
|
-
/** GitHub topics set on the repository. */
|
|
180
|
-
topics?: string[];
|
|
181
|
-
/** GitHub custom properties synced to the org dashboard. */
|
|
182
|
-
properties?: RepoProperties;
|
|
183
|
-
}
|
|
184
|
-
interface AppConfig {
|
|
185
|
-
name: string;
|
|
186
|
-
path: string;
|
|
187
|
-
kind?: string;
|
|
188
|
-
}
|
|
189
|
-
interface DoctorConfig {
|
|
190
|
-
checks?: string[];
|
|
191
|
-
}
|
|
192
|
-
interface EnvConfig {
|
|
193
|
-
/**
|
|
194
|
-
* Namespace prefixes used by this project's env vars.
|
|
195
|
-
* Listed from least- to most-specific (cascade model — last wins).
|
|
196
|
-
* Tooling reads this to generate `.env.example`, validate required
|
|
197
|
-
* vars, and produce documentation.
|
|
198
|
-
*
|
|
199
|
-
* @example
|
|
200
|
-
* // Project-only prefix
|
|
201
|
-
* namespaces: ["CLI_TEMPLATE"]
|
|
202
|
-
*
|
|
203
|
-
* // Org-wide defaults + project-specific overrides
|
|
204
|
-
* namespaces: ["HOLOCRON", "MY_CLI"]
|
|
205
|
-
*/
|
|
206
|
-
namespaces?: string[];
|
|
207
|
-
}
|
|
169
|
+
export declare function orderKeys(keys: readonly string[], order: IssueOrder): string[];
|
|
208
170
|
/**
|
|
209
|
-
*
|
|
210
|
-
*
|
|
211
|
-
*
|
|
212
|
-
* The `tokenName` maps to a repository secret named `CHROMATIC_PROJECT_TOKEN_<TOKENNAME>`.
|
|
213
|
-
* Additional fields correspond to chromaui/action inputs and are passed through directly.
|
|
214
|
-
*
|
|
215
|
-
* @see https://www.chromatic.com/docs/monorepos/
|
|
171
|
+
* Keeps the first or last `limit` of a listing by creation time, returned oldest first. `createdAt` reads an item's
|
|
172
|
+
* ISO timestamp; items created in the same instant keep their listed order. The cut happens on what the listing already
|
|
173
|
+
* holds, so no request is spent on an item that is dropped.
|
|
216
174
|
*/
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
buildScript?: string;
|
|
233
|
-
/**
|
|
234
|
-
* Path to the Storybook folder relative to `workingDir`, for TurboSnap.
|
|
235
|
-
* Tells Chromatic where to find `.storybook/` when the Storybook config
|
|
236
|
-
* is in a subdirectory. Corresponds to `--storybook-base-dir`.
|
|
237
|
-
*/
|
|
238
|
-
storybookBaseDir?: string;
|
|
239
|
-
/**
|
|
240
|
-
* Glob patterns of files/dirs that should NOT trigger a TurboSnap bailout
|
|
241
|
-
* when changed. Useful for ignoring non-UI changes in a monorepo
|
|
242
|
-
* (e.g. `"./packages/!(ui)/**"` to focus TurboSnap on the UI package).
|
|
243
|
-
* Corresponds to `--untraced`. Accepts a single glob string or array.
|
|
244
|
-
*/
|
|
245
|
-
untraced?: string | string[];
|
|
246
|
-
/**
|
|
247
|
-
* Glob patterns matching story files to snapshot. When set, only matching
|
|
248
|
-
* stories are captured. Corresponds to `--only-story-files`.
|
|
249
|
-
* Cannot be combined with `onlyStoryNames`.
|
|
250
|
-
*/
|
|
251
|
-
onlyStoryFiles?: string;
|
|
252
|
-
/**
|
|
253
|
-
* Exit with code 0 even when visual changes are detected.
|
|
254
|
-
* Useful during initial setup before baselines are approved.
|
|
255
|
-
* Corresponds to `--exit-zero-on-changes`.
|
|
256
|
-
*/
|
|
257
|
-
exitZeroOnChanges?: boolean;
|
|
175
|
+
export declare function pickByCreation<T>(items: readonly T[], createdAt: (item: T) => string, order: IssueOrder, limit: number): T[];
|
|
176
|
+
/** What {@link readKeysLimited} needs. */
|
|
177
|
+
interface ReadKeysLimitedInput<T> {
|
|
178
|
+
/** The issue keys to choose from. */
|
|
179
|
+
keys: readonly string[];
|
|
180
|
+
/** Which end of the creation order to take first. */
|
|
181
|
+
order: IssueOrder;
|
|
182
|
+
/** How many items to keep. */
|
|
183
|
+
limit: number;
|
|
184
|
+
/** The most issues fetched at once. */
|
|
185
|
+
concurrency: number;
|
|
186
|
+
/** Fetches one issue by key. */
|
|
187
|
+
fetch: (key: string) => Promise<T>;
|
|
188
|
+
/** Whether a fetched issue counts against the limit; false skips it without using the budget. */
|
|
189
|
+
keep: (item: T) => boolean;
|
|
258
190
|
}
|
|
259
191
|
/**
|
|
260
|
-
*
|
|
261
|
-
* `
|
|
262
|
-
*
|
|
192
|
+
* Reads an explicit list of issues in creation order until `limit` of them are kept. The keys are sorted by number first
|
|
193
|
+
* (see {@link orderKeys}), then fetched in small steps of at most `concurrency`, each step no bigger than the places
|
|
194
|
+
* still open, so an issue that is later skipped (a pull request, a closed one) is replaced by the next key and nothing
|
|
195
|
+
* beyond the budget is fetched unless a skip made room. Within a step the fetches run together; the results keep the key
|
|
196
|
+
* order. The kept items come back oldest first, whichever end was chosen.
|
|
263
197
|
*/
|
|
264
|
-
|
|
265
|
-
name?: string;
|
|
266
|
-
path?: string;
|
|
267
|
-
}
|
|
198
|
+
export declare function readKeysLimited<T>(input: ReadKeysLimitedInput<T>): Promise<T[]>;
|
|
268
199
|
/**
|
|
269
|
-
*
|
|
270
|
-
*
|
|
271
|
-
* `run-chromatic` accepts either a plain boolean (single-project) or a
|
|
272
|
-
* `ChromaticProjectConfig[]` object (multi-project monorepo).
|
|
200
|
+
* Calls a provider's optional `onProgress` hook with how many items are done of how many. A hook that throws is
|
|
201
|
+
* ignored, because a progress counter must never change or stop the read or write it reports on.
|
|
273
202
|
*
|
|
274
|
-
* `
|
|
275
|
-
*
|
|
276
|
-
*
|
|
277
|
-
* `paths:` manually for deploy entries.
|
|
278
|
-
*/
|
|
279
|
-
type WorkflowWithConfig = Record<string, unknown> & {
|
|
280
|
-
"run-chromatic"?: boolean | {
|
|
281
|
-
projects: ChromaticProjectConfig[];
|
|
282
|
-
};
|
|
283
|
-
/**
|
|
284
|
-
* Docs deployment shorthand. `true` uses the org-standard `docs/` directory;
|
|
285
|
-
* `{ path: "custom" }` uses a custom directory. Both derive a `paths:` entry automatically.
|
|
286
|
-
*/
|
|
287
|
-
docs?: true | {
|
|
288
|
-
path: string;
|
|
289
|
-
};
|
|
290
|
-
/** Storybook apps to deploy alongside docs. Each entry's `path` is appended to `paths:`. */
|
|
291
|
-
storybook?: StorybookDeployProject[];
|
|
292
|
-
};
|
|
293
|
-
/**
|
|
294
|
-
* A `tasks` manifest entry in object form. A bare string entry is shorthand
|
|
295
|
-
* for `{ name, ci: true, local: true }`.
|
|
203
|
+
* @param onProgress - The hook from `ExportInfo` or `ImportOptions`; nothing happens when it is not given.
|
|
204
|
+
* @param done - How many items are finished.
|
|
205
|
+
* @param total - How many items there are.
|
|
296
206
|
*/
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
/**
|
|
303
|
-
|
|
304
|
-
/**
|
|
305
|
-
|
|
306
|
-
/** The task's CI check context is a required status check + part of `holocron ci`'s default run. */
|
|
307
|
-
required?: boolean;
|
|
207
|
+
export declare function reportProgress(onProgress: ((done: number, total: number) => void) | undefined, done: number, total: number): void;
|
|
208
|
+
interface RoleSyncOutcome {
|
|
209
|
+
role: string;
|
|
210
|
+
team: string;
|
|
211
|
+
plan: RoleSyncPlan;
|
|
212
|
+
/** Members the role was given to (empty on a dry run). */
|
|
213
|
+
added: string[];
|
|
214
|
+
/** Members the role was taken from (empty on a dry run or with `keep`). */
|
|
215
|
+
removed: string[];
|
|
308
216
|
}
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
/**
|
|
314
|
-
|
|
315
|
-
/**
|
|
316
|
-
|
|
317
|
-
* tries `<service>.<org>` before the unnamespaced `<service>` fallback, so
|
|
318
|
-
* a single machine can hold credentials for multiple GitHub orgs without
|
|
319
|
-
* collision. Overridden by `--org` CLI flag or `HOLOCRON_ORG` env var.
|
|
320
|
-
*/
|
|
321
|
-
org?: string;
|
|
322
|
-
/**
|
|
323
|
-
* Org canonical domain (e.g. `"theholocron.dev"`). Subdomains are derived
|
|
324
|
-
* from this — `preview: true` on a deploy workflow resolves the preview base
|
|
325
|
-
* domain as `preview.<domain>`, giving URLs like `<repo>-pr-<n>.<domain>`.
|
|
326
|
-
*/
|
|
327
|
-
domain?: string;
|
|
328
|
-
/**
|
|
329
|
-
* Repository identity and metadata. When set, `PluginLoader` injects
|
|
330
|
-
* `repo.name` into every plugin's `RuntimeContext.repo` so plugins that
|
|
331
|
-
* need a repo (github, etc.) don't require `--repo` on every invocation.
|
|
332
|
-
* `--repo` on the command line still overrides.
|
|
333
|
-
*/
|
|
334
|
-
repo?: RepoConfig;
|
|
335
|
-
/**
|
|
336
|
-
* The task manifest — what this repo runs. Each entry is a task name
|
|
337
|
-
* (backed by a reusable workflow in `theholocron/.github`), or the object
|
|
338
|
-
* form to pass `with:` inputs. `@theholocron/astromech` reads this as the
|
|
339
|
-
* single source for `holocron run` / `holocron ci` / the generated CI
|
|
340
|
-
* workflows / `package.json` scripts.
|
|
341
|
-
*
|
|
342
|
-
* Supported values (intent-facing vocabulary — epic #672, D3):
|
|
343
|
-
* "verification.unitTests" | "verification.typeSafety" | "verification.performance" |
|
|
344
|
-
* "sourceQuality.staticAnalysis" | "sourceQuality.formatting" |
|
|
345
|
-
* "sourceQuality.structuredDataValidation" | "sourceQuality.deadCodeAnalysis" |
|
|
346
|
-
* "security.secretDetection" | "security.codeScanning" |
|
|
347
|
-
* "delivery.build" | "delivery.publish" | "delivery.deploy" | "delivery.bundleSize" |
|
|
348
|
-
* "platform.repoSync" | "platform.commitStandards" | "platform.repoValidation" |
|
|
349
|
-
* "knowledge.wiki" | "knowledge.docs" | "knowledge.components" |
|
|
350
|
-
* "review" | "tag" | "stale" | "greetings" | "dependencies" | "bookkeeping"
|
|
351
|
-
*
|
|
352
|
-
* `holocron setup` writes `.github/workflows/<name>.yml` for each entry,
|
|
353
|
-
* calling the corresponding reusable workflow in `theholocron/.github`.
|
|
354
|
-
* Files are overwritten on each run — they are generated artifacts.
|
|
355
|
-
*
|
|
356
|
-
* ### delivery.deploy / knowledge.docs / knowledge.components
|
|
357
|
-
* `delivery.deploy` uses `docs` and/or `storybook` in `with:` — setup
|
|
358
|
-
* derives `paths:` automatically. `docs: true` uses the org-standard
|
|
359
|
-
* `docs/` directory; `docs: { path: "custom" }` overrides it.
|
|
360
|
-
* `knowledge.docs` / `knowledge.components` are the same underlying
|
|
361
|
-
* mechanism, each dedicated to exactly one type — they imply the
|
|
362
|
-
* corresponding shorthand, so a repo using them never has to spell out
|
|
363
|
-
* `docs: true` / `storybook: […]` itself.
|
|
364
|
-
*
|
|
365
|
-
* ```ts
|
|
366
|
-
* // Docs only (standard layout)
|
|
367
|
-
* { name: "delivery.deploy", with: { docs: true } }
|
|
368
|
-
* // …or equivalently, the dedicated task:
|
|
369
|
-
* "knowledge.docs"
|
|
370
|
-
*
|
|
371
|
-
* // Docs + monorepo storybooks
|
|
372
|
-
* {
|
|
373
|
-
* name: "delivery.deploy",
|
|
374
|
-
* with: {
|
|
375
|
-
* docs: true,
|
|
376
|
-
* storybook: [
|
|
377
|
-
* { name: "web", path: "apps/web" },
|
|
378
|
-
* { name: "ui", path: "packages/ui" },
|
|
379
|
-
* ],
|
|
380
|
-
* },
|
|
381
|
-
* }
|
|
382
|
-
*
|
|
383
|
-
* // Non-standard docs location
|
|
384
|
-
* { name: "delivery.deploy", with: { docs: { path: "packages/site" } } }
|
|
385
|
-
* ```
|
|
386
|
-
*
|
|
387
|
-
* ### run-chromatic
|
|
388
|
-
* For a single-project repo, use `"run-chromatic": true` with a
|
|
389
|
-
* `CHROMATIC_PROJECT_TOKEN` repository secret.
|
|
390
|
-
*
|
|
391
|
-
* For monorepos with multiple Storybooks, use the object form:
|
|
392
|
-
* ```ts
|
|
393
|
-
* "run-chromatic": {
|
|
394
|
-
* projects: [
|
|
395
|
-
* { tokenName: "WEB", workingDir: "apps/web" },
|
|
396
|
-
* { tokenName: "UI", workingDir: "packages/ui" },
|
|
397
|
-
* ]
|
|
398
|
-
* }
|
|
399
|
-
* ```
|
|
400
|
-
* Each `tokenName` maps to a repository secret named
|
|
401
|
-
* `CHROMATIC_PROJECT_TOKEN_<TOKENNAME>`. `holocron setup` expands this
|
|
402
|
-
* to the flat `run-chromatic: true` + `chromatic-projects: <json>` inputs
|
|
403
|
-
* that the reusable workflow accepts.
|
|
404
|
-
*
|
|
405
|
-
* @example
|
|
406
|
-
* ["sourceQuality.staticAnalysis", { "name": "delivery.publish", "with": { "run-build": false } }]
|
|
407
|
-
* { "name": "delivery.deploy", "with": { "docs": true } }
|
|
408
|
-
*/
|
|
409
|
-
tasks?: Array<string | TaskEntryConfig>;
|
|
410
|
-
/**
|
|
411
|
-
* Opt out of `holocron sync`'s `package.json` script writes. Default `true`.
|
|
412
|
-
*/
|
|
413
|
-
syncScripts?: boolean;
|
|
414
|
-
/**
|
|
415
|
-
* The command the synced `"holocron"` `package.json` script runs. Default
|
|
416
|
-
* `"holocron"` (the installed bin). This repo overrides it to run its own
|
|
417
|
-
* build (`"node packages/cli/dist/cli.mjs"`).
|
|
418
|
-
*/
|
|
419
|
-
holocronScript?: string;
|
|
420
|
-
/**
|
|
421
|
-
* Required status-check contexts not backed by a `required` task (codecov
|
|
422
|
-
* gates, the bundle-build check, …). `holocron setup` appends these to the
|
|
423
|
-
* task-derived list from `astromech.requiredChecks()`.
|
|
424
|
-
*/
|
|
425
|
-
extraRequiredChecks?: string[];
|
|
426
|
-
/**
|
|
427
|
-
* Git hooks `holocron setup` installs. `true` / `{ prePush: true }` writes
|
|
428
|
-
* `.husky/pre-push` (runs `holocron ci` before every push); `false` /
|
|
429
|
-
* `{ prePush: false }` opts out. Omitted → on for `protection: "strict"`,
|
|
430
|
-
* off otherwise. `--hooks` / `--no-hooks` on `holocron setup` override.
|
|
431
|
-
*/
|
|
432
|
-
hooks?: boolean | {
|
|
433
|
-
prePush?: boolean;
|
|
434
|
-
};
|
|
435
|
-
providers: RawProvidersConfig;
|
|
436
|
-
apps?: AppConfig[];
|
|
437
|
-
doctor?: DoctorConfig;
|
|
438
|
-
/**
|
|
439
|
-
* Agent runtime that determines where skills are installed by `holocron setup`.
|
|
440
|
-
* Skills are installed to `.agents/skills/<name>/` (canonical) with a
|
|
441
|
-
* relative symlink at the agent-specific path:
|
|
442
|
-
* - `"claude"` → `.claude/skills/<name>` → `../../.agents/skills/<name>`
|
|
443
|
-
* - `"codex"` | `"gemini"` → logged as unsupported; skipped gracefully.
|
|
444
|
-
*/
|
|
445
|
-
agent?: "claude" | "codex" | "gemini";
|
|
446
|
-
/**
|
|
447
|
-
* Skill names from `@theholocron/skills` to install during `holocron setup`.
|
|
448
|
-
* Installed paths are gitignored and managed by setup — do not commit them.
|
|
449
|
-
*
|
|
450
|
-
* @example
|
|
451
|
-
* ["git-safety", "pr-workflow", "commit-standards"]
|
|
452
|
-
*/
|
|
453
|
-
skills?: string[];
|
|
454
|
-
/**
|
|
455
|
-
* GitHub Pages configuration. When present, `holocron setup` calls the
|
|
456
|
-
* Pages API using `HOLOCRON_DEPLOY_TOKEN` (requires `pages:write` + `repo` scope).
|
|
457
|
-
* When absent, Pages is left as-is.
|
|
458
|
-
*
|
|
459
|
-
* @example
|
|
460
|
-
* { build: "workflow", domain: "docs.theholocron.dev", https: true }
|
|
461
|
-
*/
|
|
462
|
-
docs?: DocsConfig;
|
|
463
|
-
/**
|
|
464
|
-
* Environment variable namespace configuration.
|
|
465
|
-
* Declares the prefix(es) this project uses for its env vars so that
|
|
466
|
-
* tooling can generate `.env.example`, validate required vars, and
|
|
467
|
-
* produce accurate documentation without hard-coding prefix strings.
|
|
468
|
-
*
|
|
469
|
-
* @example
|
|
470
|
-
* { namespaces: ["HOLOCRON", "MY_CLI"] }
|
|
471
|
-
*/
|
|
472
|
-
env?: EnvConfig;
|
|
473
|
-
/**
|
|
474
|
-
* Structured-logging config. Only the level belongs here — Axiom
|
|
475
|
-
* credentials come from env vars, never a committed file.
|
|
476
|
-
*
|
|
477
|
-
* @example
|
|
478
|
-
* { level: "debug" }
|
|
479
|
-
*/
|
|
480
|
-
log?: LogConfig;
|
|
481
|
-
/**
|
|
482
|
-
* CLI self-telemetry override layer. Env var (`HOLOCRON_TELEMETRY=false`)
|
|
483
|
-
* still wins; this is the committed way to opt a repo out or drop usage
|
|
484
|
-
* analytics while keeping error reporting.
|
|
485
|
-
*
|
|
486
|
-
* @example
|
|
487
|
-
* { enabled: false }
|
|
488
|
-
* { analytics: "none" }
|
|
489
|
-
*/
|
|
490
|
-
telemetry?: TelemetryConfig;
|
|
217
|
+
/** One person: their GitHub account and their member id on the notifications provider. */
|
|
218
|
+
interface MemberLink {
|
|
219
|
+
/** The GitHub user id, as a string. It survives a rename; the login does not. */
|
|
220
|
+
github: string;
|
|
221
|
+
/** The GitHub login when the link was made; for reports only. */
|
|
222
|
+
login: string;
|
|
223
|
+
/** The member's id on the notifications provider (for Discord, the user id). */
|
|
224
|
+
member: string;
|
|
491
225
|
}
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
/**
|
|
495
|
-
|
|
496
|
-
|
|
226
|
+
/** The file that says which server member is which GitHub account. */
|
|
227
|
+
interface LinksFile {
|
|
228
|
+
/** The file format version. */
|
|
229
|
+
version: 1;
|
|
230
|
+
/** One entry per linked person. */
|
|
231
|
+
links: MemberLink[];
|
|
497
232
|
}
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
233
|
+
interface RoleSyncPlan {
|
|
234
|
+
/** Team members who are linked and do not hold the role: give it to them. */
|
|
235
|
+
add: Array<{
|
|
236
|
+
member: string;
|
|
237
|
+
login: string;
|
|
238
|
+
}>;
|
|
239
|
+
/** Holders linked to a GitHub account that is no longer on the team: take it away. */
|
|
240
|
+
remove: Array<{
|
|
241
|
+
member: string;
|
|
242
|
+
login: string;
|
|
243
|
+
}>;
|
|
244
|
+
/** Team members with no link: the role cannot reach them until they link their account. */
|
|
245
|
+
unlinked: SourceTeamMember[];
|
|
246
|
+
/** Holders with no link at all. Left alone, because nothing says they should not have it. */
|
|
247
|
+
unknownHolders: Array<{
|
|
248
|
+
member: string;
|
|
249
|
+
name?: string;
|
|
250
|
+
}>;
|
|
251
|
+
/** Linked team members who already hold the role. */
|
|
252
|
+
inSync: number;
|
|
253
|
+
}
|
|
254
|
+
/** What {@link syncRoles} needs: the providers, the links, and the roles to keep equal to their teams. */
|
|
255
|
+
interface SyncRolesInput {
|
|
256
|
+
/** The provider that lists and changes who holds a role. */
|
|
257
|
+
notifications: Notifications;
|
|
258
|
+
/** The provider that lists a team's members. */
|
|
259
|
+
source: Source;
|
|
260
|
+
/** Who is which person, from the links file. */
|
|
261
|
+
links: LinksFile;
|
|
262
|
+
/** Each role and the team it follows. */
|
|
263
|
+
roles: ReadonlyArray<{
|
|
264
|
+
name: string;
|
|
265
|
+
team: string;
|
|
266
|
+
}>;
|
|
267
|
+
/** The organisation the teams are in; defaults to the source's own. */
|
|
510
268
|
org?: string;
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
hooks?: boolean | {
|
|
518
|
-
prePush?: boolean;
|
|
519
|
-
};
|
|
520
|
-
providers: ResolvedProvidersConfig;
|
|
521
|
-
apps: AppConfig[];
|
|
522
|
-
doctor: DoctorConfig;
|
|
523
|
-
agent?: "claude" | "codex" | "gemini";
|
|
524
|
-
skills?: string[];
|
|
525
|
-
/** Resolved Pages config. `build` is guaranteed present when this field exists. */
|
|
526
|
-
docs?: PagesConfig;
|
|
527
|
-
env?: EnvConfig;
|
|
528
|
-
log?: LogConfig;
|
|
529
|
-
telemetry?: TelemetryConfig;
|
|
269
|
+
/** Report what would change without changing anything. */
|
|
270
|
+
dryRun?: boolean;
|
|
271
|
+
/** Give the role to new team members but do not take it from people who left. */
|
|
272
|
+
keep?: boolean;
|
|
273
|
+
/** Where progress lines go; nowhere when left out. */
|
|
274
|
+
print?: (line: string) => void;
|
|
530
275
|
}
|
|
531
|
-
|
|
532
|
-
|
|
276
|
+
/** What {@link syncRoles} did. */
|
|
277
|
+
interface SyncRolesResult {
|
|
278
|
+
/** One entry per role whose plan could be made. */
|
|
279
|
+
roles: RoleSyncOutcome[];
|
|
280
|
+
/** Steps that failed; the run carried on past each. */
|
|
281
|
+
failures: Array<{
|
|
282
|
+
step: string;
|
|
283
|
+
message: string;
|
|
284
|
+
}>;
|
|
285
|
+
/** Roles given or taken. */
|
|
286
|
+
ok: number;
|
|
287
|
+
/** Already in sync, left alone, or only previewed. */
|
|
288
|
+
skipped: number;
|
|
533
289
|
}
|
|
290
|
+
/** What a source provider needs to be able to do to feed a role sync, or the reason it cannot. */
|
|
291
|
+
export declare function sourceProblem(source: Source | undefined): string | undefined;
|
|
292
|
+
/** Reads the links file; a file that does not exist yet is an empty one, a damaged one throws. */
|
|
293
|
+
export declare function readLinks(source: Source, layout: NotificationsLayout, org: string | undefined, provider: string): Promise<LinksFile>;
|
|
534
294
|
/**
|
|
535
|
-
*
|
|
536
|
-
*
|
|
537
|
-
* is how third-party plugins published outside the org work.
|
|
295
|
+
* The first role the layout declares for two different teams, or undefined. Names compare ignoring case, as
|
|
296
|
+
* the server does; the role would be synced against one team and then the other, so the last would win.
|
|
538
297
|
*/
|
|
539
|
-
declare function
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
298
|
+
export declare function roleTeamProblem(layout: {
|
|
299
|
+
roles?: ReadonlyArray<{
|
|
300
|
+
name: string;
|
|
301
|
+
team?: string;
|
|
302
|
+
}>;
|
|
303
|
+
}): string | undefined;
|
|
304
|
+
/**
|
|
305
|
+
* Makes each role's holders equal its team, one role after another. This is the sync itself, with no setup in
|
|
306
|
+
* front of it: the caller has already picked the providers, read the links and checked the layout. `holocron
|
|
307
|
+
* notifications sync-roles` and Sentinel's role sync are two callers of it. A step that fails is recorded and the
|
|
308
|
+
* run goes on; nothing here throws for a provider error. Idempotent: a role that already matches changes nothing.
|
|
309
|
+
* Lines go to `input.print` when it is given, and nowhere otherwise.
|
|
310
|
+
*/
|
|
311
|
+
export declare function syncRoles(input: SyncRolesInput): Promise<SyncRolesResult>;
|
|
544
312
|
/**
|
|
545
313
|
* Derived custom-properties (#677). Unlike the existing 6 GitHub
|
|
546
314
|
* custom-properties fields (`lifecycle`, `open_source`, `runtime_environment`,
|
|
@@ -548,20 +316,19 @@ declare function resolveConfig(raw: HolocronConfig): ResolvedHolocronConfig;
|
|
|
548
316
|
* mirror what `holocron.config.ts` already states explicitly — these four are
|
|
549
317
|
* *derived*: signal that isn't an explicit config field today (framework
|
|
550
318
|
* choice, repo archetype, capability drift). See
|
|
551
|
-
*
|
|
319
|
+
* `docs/wiki/specifications/tech-holocron-platform.spec.md` → "Custom-properties sync — field
|
|
552
320
|
* definitions (#677)" for the full design.
|
|
553
321
|
*/
|
|
554
322
|
type HolocronProfile = "library" | "cli" | "plugin" | "template" | "app" | "docs" | "platform";
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
bin?: unknown;
|
|
559
|
-
dependencies?: Record<string, string>;
|
|
560
|
-
devDependencies?: Record<string, string>;
|
|
561
|
-
}
|
|
323
|
+
/** The `package.json` shape profile derivation reads — `@theholocron/pkg-utils`'s `PackageJson`, under the name Sentinel already imports. */
|
|
324
|
+
type PackageJsonLike = PackageJson;
|
|
325
|
+
/** What profile derivation reads to decide a repo's archetype. */
|
|
562
326
|
interface DeriveProfileInput {
|
|
327
|
+
/** The repo's root `package.json`, or `null` when it has none. */
|
|
563
328
|
rootPackageJson: PackageJsonLike | null;
|
|
329
|
+
/** The repository name, without the owner. */
|
|
564
330
|
repoName: string;
|
|
331
|
+
/** Whether the repo is a monorepo with several workspace packages. */
|
|
565
332
|
isMonorepo: boolean;
|
|
566
333
|
/** `packages/*` package.json contents, monorepo repos only — used to find the primary published artifact. */
|
|
567
334
|
workspacePackageJsons: PackageJsonLike[];
|
|
@@ -588,7 +355,7 @@ interface DeriveProfileInput {
|
|
|
588
355
|
* 6. Private, non-publishable, non-docs → `app`.
|
|
589
356
|
* 7. Otherwise, a single publishable package → `library`.
|
|
590
357
|
*/
|
|
591
|
-
declare function deriveProfile(input: DeriveProfileInput): HolocronProfile;
|
|
358
|
+
export declare function deriveProfile(input: DeriveProfileInput): HolocronProfile;
|
|
592
359
|
/**
|
|
593
360
|
* Detected build/framework tooling — the literal "does this repo need
|
|
594
361
|
* next/vite/tsdown" signal `holocron.config.ts` has no field for today
|
|
@@ -596,17 +363,18 @@ declare function deriveProfile(input: DeriveProfileInput): HolocronProfile;
|
|
|
596
363
|
* Curated table, not exhaustive by design — add to `KNOWN_STACK_DEPS` as new
|
|
597
364
|
* frameworks show up rather than trying to detect anything on npm.
|
|
598
365
|
*/
|
|
599
|
-
declare function deriveStack(pkg: PackageJsonLike | null): string[];
|
|
366
|
+
export declare function deriveStack(pkg: PackageJsonLike | null): string[];
|
|
600
367
|
/** The provider capability keys actually wired in `providers: {}` — zero heuristics. */
|
|
601
|
-
declare function deriveCapabilities(providers: ResolvedProvidersConfig | undefined): string[];
|
|
602
|
-
|
|
368
|
+
export declare function deriveCapabilities(providers: ResolvedProvidersConfig | undefined): string[];
|
|
369
|
+
/** Whether a repo's capabilities include the required baseline (`source` and `ci`); `non-compliant` means drift. */
|
|
370
|
+
export declare function deriveCompliance(capabilities: readonly string[]): "compliant" | "non-compliant";
|
|
603
371
|
/**
|
|
604
372
|
* The Phase B refinement `deriveCompliance()`'s own doc comment names —
|
|
605
373
|
* *why* a repo is non-compliant, not just that it is. `[]` when compliant.
|
|
606
374
|
* Same `REQUIRED_BASELINE` `deriveCompliance()` checks against — one
|
|
607
375
|
* table, not two independently-maintained baselines.
|
|
608
376
|
*/
|
|
609
|
-
declare function missingCapabilities(capabilities: readonly string[]): string[];
|
|
377
|
+
export declare function missingCapabilities(capabilities: readonly string[]): string[];
|
|
610
378
|
/**
|
|
611
379
|
* Reads each workspace package's actual `package.json` content (not just
|
|
612
380
|
* `readWorkspacePackages()`'s `{ slug, name, dir }` — `deriveProfile()`'s
|
|
@@ -614,84 +382,106 @@ declare function missingCapabilities(capabilities: readonly string[]): string[];
|
|
|
614
382
|
* Missing/invalid files are skipped, matching `readWorkspacePackages()`'s
|
|
615
383
|
* own soft-fail behavior.
|
|
616
384
|
*/
|
|
617
|
-
declare function readWorkspacePackageJsons(repoRoot: string, workspacePackages: readonly WorkspacePackage[]): Promise<PackageJsonLike[]>;
|
|
618
|
-
//#endregion
|
|
619
|
-
//#region src/config/compose.d.ts
|
|
620
|
-
type TaskEntry = NonNullable<HolocronConfig["tasks"]>[number];
|
|
621
|
-
/** A single composable capability fragment. */
|
|
622
|
-
interface Capability {
|
|
623
|
-
/** Unique identifier — used for deduplication and dependency resolution. */
|
|
624
|
-
id: string;
|
|
625
|
-
/** Other capability IDs that must be present in the same compose() call. */
|
|
626
|
-
requires?: string[];
|
|
627
|
-
/** Task entries contributed by this capability. Merged by name; last writer wins. */
|
|
628
|
-
tasks?: TaskEntry[];
|
|
629
|
-
/** Provider config. Shallow-merged at the top level; later capabilities override per-key. */
|
|
630
|
-
providers?: RawProvidersConfig;
|
|
631
|
-
/**
|
|
632
|
-
* Required status-check contexts **not** backed by a `required` task
|
|
633
|
-
* (codecov gates, `Storybook Publish`, …). Unioned across all capabilities
|
|
634
|
-
* onto the top-level `extraRequiredChecks`. Task-backed checks come from
|
|
635
|
-
* `{ required: true }` task entries via `astromech.requiredChecks()`.
|
|
636
|
-
*/
|
|
637
|
-
extraRequiredChecks?: string[];
|
|
638
|
-
/** Repo config fragment. Scalar fields: last writer wins. properties/topics/teams: merged. */
|
|
639
|
-
repo?: Partial<Omit<RepoConfig, "name">>;
|
|
640
|
-
/** Org name. Last writer wins. */
|
|
641
|
-
org?: string;
|
|
642
|
-
/** Org canonical domain. Last writer wins. */
|
|
643
|
-
domain?: string;
|
|
644
|
-
/** Docs site config. Last writer wins. */
|
|
645
|
-
docs?: DocsConfig;
|
|
646
|
-
}
|
|
647
|
-
/** The merged result of a compose() call. Spreads into defineConfig(). */
|
|
648
|
-
interface ComposedPreset {
|
|
649
|
-
tasks: TaskEntry[];
|
|
650
|
-
providers: RawProvidersConfig;
|
|
651
|
-
repo: Partial<Omit<RepoConfig, "name">>;
|
|
652
|
-
/** Non-task required-check contexts, unioned across capabilities. */
|
|
653
|
-
extraRequiredChecks: string[];
|
|
654
|
-
org?: string;
|
|
655
|
-
domain?: string;
|
|
656
|
-
docs?: DocsConfig;
|
|
657
|
-
}
|
|
385
|
+
export declare function readWorkspacePackageJsons(repoRoot: string, workspacePackages: readonly WorkspacePackage[]): Promise<PackageJsonLike[]>;
|
|
658
386
|
/**
|
|
659
|
-
*
|
|
660
|
-
*
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
387
|
+
* The labels every repository gets from `repo setup`, with their GitHub colours (hex, no `#`) and descriptions. A
|
|
388
|
+
* plugin that makes labels of its own, such as Linear's setup, takes the colour of the one with the same name.
|
|
389
|
+
*/
|
|
390
|
+
export declare const CANONICAL_LABELS: readonly [{
|
|
391
|
+
readonly name: "bug";
|
|
392
|
+
readonly color: "d73a4a";
|
|
393
|
+
readonly description: "Something isn't working";
|
|
394
|
+
}, {
|
|
395
|
+
readonly name: "chore";
|
|
396
|
+
readonly color: "ededed";
|
|
397
|
+
readonly description: "Maintenance, no user-facing change";
|
|
398
|
+
}, {
|
|
399
|
+
readonly name: "ci";
|
|
400
|
+
readonly color: "0075ca";
|
|
401
|
+
readonly description: "CI/CD pipeline changes";
|
|
402
|
+
}, {
|
|
403
|
+
readonly name: "dependencies";
|
|
404
|
+
readonly color: "0366d6";
|
|
405
|
+
readonly description: "Dependency update";
|
|
406
|
+
}, {
|
|
407
|
+
readonly name: "documentation";
|
|
408
|
+
readonly color: "0075ca";
|
|
409
|
+
readonly description: "Documentation only";
|
|
410
|
+
}, {
|
|
411
|
+
readonly name: "duplicate";
|
|
412
|
+
readonly color: "cfd3d7";
|
|
413
|
+
readonly description: "Already reported";
|
|
414
|
+
}, {
|
|
415
|
+
readonly name: "enhancement";
|
|
416
|
+
readonly color: "a2eeef";
|
|
417
|
+
readonly description: "New feature or request";
|
|
418
|
+
}, {
|
|
419
|
+
readonly name: "good first issue";
|
|
420
|
+
readonly color: "7057ff";
|
|
421
|
+
readonly description: "Good for newcomers";
|
|
422
|
+
}, {
|
|
423
|
+
readonly name: "help wanted";
|
|
424
|
+
readonly color: "008672";
|
|
425
|
+
readonly description: "Extra attention needed";
|
|
426
|
+
}, {
|
|
427
|
+
readonly name: "invalid";
|
|
428
|
+
readonly color: "e4e669";
|
|
429
|
+
readonly description: "Doesn't seem right";
|
|
430
|
+
}, {
|
|
431
|
+
readonly name: "performance";
|
|
432
|
+
readonly color: "fbca04";
|
|
433
|
+
readonly description: "Performance improvement";
|
|
434
|
+
}, {
|
|
435
|
+
readonly name: "question";
|
|
436
|
+
readonly color: "d876e3";
|
|
437
|
+
readonly description: "Further information requested";
|
|
438
|
+
}, {
|
|
439
|
+
readonly name: "refactor";
|
|
440
|
+
readonly color: "cfd3d7";
|
|
441
|
+
readonly description: "Code restructuring";
|
|
442
|
+
}, {
|
|
443
|
+
readonly name: "released";
|
|
444
|
+
readonly color: "ededed";
|
|
445
|
+
readonly description: "Included in a release";
|
|
446
|
+
}, {
|
|
447
|
+
readonly name: "test";
|
|
448
|
+
readonly color: "bfd4f2";
|
|
449
|
+
readonly description: "Test-related changes";
|
|
450
|
+
}, {
|
|
451
|
+
readonly name: "triage";
|
|
452
|
+
readonly color: "e4e669";
|
|
453
|
+
readonly description: "Needs investigation";
|
|
454
|
+
}, {
|
|
455
|
+
readonly name: "wontfix";
|
|
456
|
+
readonly color: "ffffff";
|
|
457
|
+
readonly description: "Won't be addressed";
|
|
458
|
+
}];
|
|
459
|
+
/**
|
|
460
|
+
* The closed list of area files `loadConfig` reads from `.holocron/` (the directory is `.<config name>`, set by kyber):
|
|
461
|
+
* `.holocron/notifications.*` fills `providers.notifications`' `layout`, `.holocron/repo.*` fills keys of `repo`, and `.holocron/org.*` fills provider options (`teamId`, `accountId`) a config leaves out.
|
|
462
|
+
* A file not on this list is never read.
|
|
463
|
+
*/
|
|
464
|
+
export declare const HOLOCRON_AREAS: readonly ["notifications", "repo", "org"];
|
|
465
|
+
/**
|
|
466
|
+
* The areas a config in a subdirectory also reads from the repository root's `.holocron/` (SPEC-0069): only `org`,
|
|
467
|
+
* because its values are the organization's and every config needs them. `repo` and `notifications` describe the
|
|
468
|
+
* repository itself, so an app's config does not take them from the root.
|
|
469
|
+
*/
|
|
470
|
+
export declare const SHARED_AREAS: readonly ["org"];
|
|
471
|
+
/**
|
|
472
|
+
* Put the area files of `.holocron/` into the config as loaded, before `deriveDefaults` runs: `notifications` becomes
|
|
473
|
+
* the `layout` of the notifications provider and `repo` supplies keys of `repo` and `org` fills the provider options a config leaves out. A value set both inline and in a file
|
|
474
|
+
* is a `ConfigError` naming both (no merge, no precedence). With no area files the config is returned as it was.
|
|
678
475
|
*/
|
|
679
|
-
declare function
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
//#region src/config/load-config.d.ts
|
|
685
|
-
interface LoadedConfig {
|
|
686
|
-
resolved: ResolvedHolocronConfig;
|
|
687
|
-
/** Absolute path to the file the config was read from. */
|
|
688
|
-
filepath: string;
|
|
476
|
+
export declare function placeAreas(areas: ConfigDirArea[], raw: HolocronConfig): HolocronConfig;
|
|
477
|
+
/** What a connection probe needs to check a provider's host and token: kyber's input, with the plugin's `verifyToken` as `verify`. */
|
|
478
|
+
export interface ConnectionProbeInput extends Omit<ConnectionProbeInput$1, "verify"> {
|
|
479
|
+
/** The plugin's `verifyToken`: asks the provider who the token belongs to. */
|
|
480
|
+
verify: (token: string) => Promise<VerifyTokenResult>;
|
|
689
481
|
}
|
|
690
482
|
/**
|
|
691
|
-
*
|
|
692
|
-
*
|
|
693
|
-
* be loaded, or `ConfigError` when the config is invalid.
|
|
483
|
+
* The `connection` probe every provider offers, for telling a network problem from a credential problem. The checks are
|
|
484
|
+
* kyber's `connectionProbe`; this types the result as the plugin system's {@link Probe} and `verify` as `VerifyTokenResult`.
|
|
694
485
|
*/
|
|
695
|
-
declare function
|
|
696
|
-
|
|
697
|
-
export { Analytics, AppConfig, Auth, AuthDescription, AuthError, AuthEvent, AuthEventType, AuthIdentity, AuthUser, CARDINALITY, Capability, CapabilityConfigPackage, CapabilityImpls, CapabilityKey, Cardinality, CardinalityFor, ChromaticProjectConfig, Ci, CiRun, CiRunFilter, CiRunStatus, ComposedPreset, ConfigError, ConfigFileError, ConnectionStringOptions, CreateAuthUserInput, DeployFunctionConfig, DeployFunctionResult, DeployScriptConfig, DeployScriptResult, Deployment, DeploymentProject, DeploymentProjectSettings, DeploymentRecord, DeploymentTarget, DeploymentTrigger, DeriveProfileInput, Dns, DnsRecord, DnsRecordRequest, DnsRecordType, DocsConfig, DoctorConfig, EnsureResult, EnvConfig, Environment, EnvironmentReviewer, Environments, Errors, FeatureResolverConfig, HolocronConfig, HolocronProfile, Issue, IssueSearchFilter, Issues, LabelDef, LifecycleResult, LifecycleSlot, LoadedConfig, LogConfig, Logs, MultiEntry, NormalizedAuthUser, Notifications, PackageJsonLike, PagesConfig, ParseWebhookInput, ProviderApiError, ProviderIdentity, ProviderOptions, PullRequest, REQUIRED_CAPABILITIES, RawProviderEntry, RawProvidersConfig, RepoConfig, RepoProperties, RepoProtection, RepoRef, RepoSettings, type RequestOptions, ResolveTokenConfig, type ResolveTokenInput, ResolvedCapability, ResolvedHolocronConfig, ResolvedProviderEntry, ResolvedProvidersConfig, ResolvedTuple, type RestClient, type RestClientConfig, Ruleset, SecretScope, Secrets, SingleEntry, Source, StatusCategory, Storage, StorageBranch, StorybookDeployProject, TaskEntryConfig, TeamEntry, TeamPermission, TelemetryConfig, Tooling, ToolingDoctorReport, TrackerDoctorReport, TrackerUser, Vault, WebhookDashboardInfo, WebhookVerificationError, Wiki, WikiProvisionOpts, WikiProxyConfig, Workers, WorkflowWithConfig, compose, createFeatureResolver, createResolveToken, createRestClient, defineConfig, deleteToken, deriveCapabilities, deriveCompliance, deriveProfile, deriveStack, getToken, isMulti, listStoredProviders, loadConfig, missingCapabilities, readWorkspacePackageJsons, resolveConfig, resolveEntry, resolvePluginPackage, setToken };
|
|
486
|
+
export declare function connectionProbe(input: ConnectionProbeInput): Probe;
|
|
487
|
+
export { AddedItem, Analytics, type AppConfig, Auth, AuthDescription, AuthError, AuthEvent, AuthEventType, AuthIdentity, AuthUser, BoardField, BoardFieldType, BoardItem, BoardItemInput, BoardRule, BoardState, BoardStatus, BoardStatusCategory, BoardSummary, BoardTemplate, BoardTemplateFile, BoardView, CARDINALITY, type Capability, type CapabilityConfigPackage, CapabilityImpls, CapabilityKey, Cardinality, CardinalityFor, type ChromaticProjectConfig, Ci, CiRun, CiRunFilter, CiRunStatus, type ComposedPreset, ConfigError, ConfigFileError, ConnectionStringOptions, CreateAuthUserInput, Credentials, type CredentialsConfig, CredentialsInspection, DeployFunctionConfig, DeployFunctionResult, DeployScriptConfig, DeployScriptResult, Deployment, DeploymentProject, DeploymentProjectSettings, DeploymentRecord, DeploymentTarget, DeploymentTrigger, type DeriveProfileInput, type DevConfig, type DevServeConfig, DiscussionPatch, DiscussionPost, Dns, DnsRecord, DnsRecordRequest, DnsRecordType, type DocsConfig, type DoctorConfig, ElevationRequiredError, EnsureDiscussionInput, EnsureRelayInput, EnsureRelayResult, EnsureReport, EnsureResult, EnsureWebhookResult, EnsuredDiscussion, EnsuredResource, EnsuredTunnel, type EnvConfig, Environment, EnvironmentReviewer, Environments, Errors, type EslintConfig, ExportInfo, type FeatureResolver, type FeatureResolverConfig, type GitHubAppConfig, type HolocronConfig, type HolocronProfile, ImportOptions, ImportResult, InspectRelayInput, Issue, IssueComment, IssueOrder, IssuePriority, IssueRecord, IssueSearchFilter, IssueSelector, Issues, LabelDef, LifecycleResult, LifecycleSlot, type LinksFile, type LoadedConfig, type LogConfig, Logs, LogsDataset, type MemberLink, MissingTokenError, Monitoring, MonitoringAlertChannelInput, MonitoringAlertChannelResult, MonitoringAlertChannelState, MonitoringAlertSettings, MonitoringAssertion, MonitoringAssertionComparison, MonitoringAssertionSource, MonitoringCheck, MonitoringCheckInput, MonitoringHttpMethod, MoveReport, type MultiEntry, NormalizedAuthUser, Notifications, NotificationsAccess, NotificationsApplicationLayout, NotificationsChannelLayout, NotificationsDelivery, NotificationsEveryoneLayout, NotificationsForumTag, NotificationsLayout, NotificationsLinksLayout, NotificationsMember, NotificationsMonitoringFeed, NotificationsOnboardingLayout, NotificationsPicture, NotificationsPinnedLayout, NotificationsPrsFeed, NotificationsServerLayout, NotificationsSignIn, NotificationsSignedIn, NotificationsWelcomeLayout, type OrgConfig, type PackageJsonLike, PagesConfig, ParseWebhookInput, type PluginProbes, type PluginToken, type Probe, type ProbeContext, type ProbeRow, Projects, type ProviderAction, type ProviderActionContext, type ProviderActions, ProviderApiError, ProviderIdentity, type ProviderOptions, type ProviderRow, PullRequest, REQUIRED_CAPABILITIES, type RawProviderEntry, type RawProvidersConfig, type ReadKeysLimitedInput, RelayState, type RepoConfig, type RepoProperties, type RepoProtection, RepoRef, type RepoSecrets, type RepoSecretsSync, RepoSettings, type RepoValidationConfig, type RepoVariables, type RepoVariablesSync, type RequestOptions, type ResolveTokenConfig, type ResolveTokenInput, ResolvedCapability, type ResolvedHolocronConfig, type ResolvedProviderEntry, type ResolvedProvidersConfig, type ResolvedTuple, type RestClient, type RestClientConfig, Ruleset, SecretScope, Secrets, ServerInspection, type SingleEntry, Source, SourceBranch, SourceFile, SourceRepoInfo, SourceRulesetDetail, SourceSecurity, SourceTeamMember, StatusCategory, Storage, StorageBranch, type StorybookDeployProject, SyncResult, type SyncRolesInput, type SyncRolesResult, type TaskEntry, type TaskEntryConfig, TeamEntry, TeamPermission, type TelemetryConfig, type TokenResolver, Tooling, ToolingDoctorReport, TrackerDoctorReport, TrackerUser, TunnelRoute, Tunnels, Vault, type VerifyTokenFailure, type VerifyTokenResult, type VerifyTokenSuccess, WebhookDashboardInfo, WebhookVerificationError, Wiki, WikiProvisionOpts, WikiProxyConfig, WorkerScriptState, Workers, type WorkflowWithConfig, compose, createRestClient, credentialsEnvironment, defineConfig, isMulti, loadConfig, resolveConfig, resolveEntry, resolvePluginPackage, resolveValue };
|