@vivswan/github-settings-as-code 2.0.1-main.699.20261005.g2b5d2ff → 2.0.1-main.721.20261005.g8f8cd4d
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/lib/pkg/cli.js +2 -2
- package/lib/pkg/index.d.ts +2 -2
- package/lib/pkg/index.js +3 -3
- package/lib/pkg/internal.d.ts +1 -1
- package/lib/pkg/internal.js +1 -1
- package/lib/pkg/{layers-DcnaJxRg.d.ts → layers-CJTF7YGx.d.ts} +424 -174
- package/lib/pkg/{inputs-ClH-MkXs.js → run-config-CAQbD42B.js} +1037 -695
- package/lib/pkg/{src-Gr_Qvisc.js → src-JEPZFkwo.js} +1 -1
- package/package.json +4 -1
package/lib/pkg/cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
import { a as snapshotRepository, o as validateSettings, s as executeRun } from "./src-
|
|
2
|
+
import { $ as maskRegistry, At as sectionGrant, I as failRun, M as readSettingsFile, T as writeReplacing, Wt as countNoun, at as skippedSectionKeys, c as RENDER_INPUTS, ct as describeProblem, d as SNAPSHOT_INPUTS, f as SNAPSHOT_ONLY_INPUTS, h as GitHubApi, ht as SECTIONS, l as RENDER_ONLY_INPUTS, n as parseSnapshotFileConfig, o as INPUT_DECLS, r as snapshotFileDestination, t as parseConfig, tt as redactRanges } from "./run-config-CAQbD42B.js";
|
|
3
|
+
import { a as snapshotRepository, o as validateSettings, s as executeRun } from "./src-JEPZFkwo.js";
|
|
4
4
|
import { appendFileSync, existsSync } from "node:fs";
|
|
5
5
|
import { ResultAsync, err } from "neverthrow";
|
|
6
6
|
import { randomUUID } from "node:crypto";
|
package/lib/pkg/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $
|
|
1
|
+
import { $t as SnapshotContext, An as discoverRepos, At as TaggedEndpoint, Bt as ValidatedBrand, Cn as DEFAULT_DISCOVERY_FILTERS, Cr as SectionKey, Dr as Layering, Dt as SectionSelection, E as ConfigEnv, En as ExcludePattern, Er as UndeclaredPolicySection, Fn as GitHubClient, Ft as PlainTyped, G as failRun, Gn as OutputName, Hn as CollectedLine, In as GraphqlOp, It as SectionInput, Jn as prefixedIo, Kn as collectingIo, Ln as ListOptions, M as InputReader, Mn as DEFAULT_API_VERSION, Mt as allGraphqlOps, Nn as GitHubApi, Nt as sectionModule, Ot as SettingsSource, Pn as GitHubApiOptions, Qn as ApiErrorKind, Qt as SectionPlan, Rn as PAGE_SIZE, Rt as SectionModule, Sr as SECTION_KEYS, St as ValidatedSettings, T as runMulti, Tr as UNDECLARED_POLICY_SECTIONS, U as concludeRender, Un as Io, V as FinishedRender, Vn as AnnotationLevel, Vt as ValidatedInput, W as concludeRun, Wn as MaskPair, Wt as sectionGrant, Xn as silentIo, Xt as PlanContext, Y as TargetOutcome, Yn as redactRanges, Yt as OnMissingPermission, Zn as ApiError, _ as runSingle, _t as worstOf, a as RunConfig, an as SectionFailure, ar as RemoteTarget, at as deliverArtifactReport, bt as RepoRunResult, cn as endpointMethod, cr as dedupeTargets, dr as LayerProblem, dt as SectionSnapshotOutcome, f as SnapshotConfig, fr as Problem, ft as SnapshotResult, g as SingleOutcome, gn as describeRemoval, gr as SettingsProblem, gt as RunOutcome, h as SingleConfig, hn as RemovalNotice, hr as SettingsFileRole, ht as RUN_RESULTS, i as RunCapabilities, in as GraphqlOpDecl, ir as CentralTarget, it as ArtifactUploader, jn as ClientAnswer, jt as allEndpoints, kn as compileExcludePattern, kt as SECTIONS, ln as endpointPath, lr as parseRepoSlug, m as runSnapshot, mn as Layer, nn as planContext, nr as isPermissionError, on as EndpointDecl, or as RepoRef, ot as encryptReport, p as concludeSnapshot, pn as FoldOptions, pr as ProblemOf, qn as maskRegistry, qt as DenialPolicy, r as readLayerFiles, rn as snapshotContext, rr as isRateLimitError, rt as openReportChannel, s as parseConfig, sn as Route, sr as Target, st as parseRecipient, tr as classifyApiError, tt as PrivateReportChannel, u as FinishedSnapshot, ut as RenderableSnapshot, v as RenderConfig, vr as describeProblem, wn as DiscoveryFilters, wr as SettingsFile, x as MultiConfig, xt as SectionOutcome, y as runRender, yn as UndeclaredPolicy, yt as RepoRunOptions, zn as RequestMark, zt as SectionSnapshot } from "./layers-CJTF7YGx.js";
|
|
2
2
|
import { Result } from "neverthrow";
|
|
3
3
|
//#region src/discovery/central.d.ts
|
|
4
4
|
export declare function resolveCentralTargets(reposDir: string, adminOwner: string): Result<{
|
|
@@ -154,4 +154,4 @@ interface ReportInput {
|
|
|
154
154
|
}
|
|
155
155
|
export declare function composeReport(input: ReportInput): string;
|
|
156
156
|
//#endregion
|
|
157
|
-
export { type AnnotationLevel, type ApiError, type ApplyOptions, type ApplyReport, type ArtifactUploader, type CentralTarget, type CheckOptions, type CheckReport, type ClientAnswer, type CollectedLine, type ConfigEnv, DEFAULT_API_VERSION, DEFAULT_DISCOVERY_FILTERS, type DenialPolicy, type DiscoveryFilters, type EndpointDecl, type FinishedRender, type FinishedSnapshot, GitHubApi, type GitHubApiOptions, type GitHubClient, type GraphqlOp, type GraphqlOpDecl, type InputReader, type Io, type Layer, type Layering, type MaskPair, type MergeOptions, type MergeReport, type MultiConfig, type OnMissingPermission, type OutputName, type PlanContext, type PrivateReportChannel, type Problem, RUN_RESULTS, type RemoteTarget, type RemovalNotice, type RenderConfig, type RepoRef, type ReportInput, type RequestMark, type Route, type RunCapabilities, type RunConfig, type RunDeps, type RunEnd, type RunOutcome, SECTIONS, SECTION_KEYS, type SectionFailure, type SectionInput, type SectionKey, type SectionModule, type SectionOutcome, type SectionPlan, SectionSelection, type SectionSnapshot, type SectionSnapshotOutcome, SettingsFile, type SettingsFileRole, type SingleConfig, type SingleOutcome, type SnapshotConfig, type SnapshotContext, type SnapshotOptions, type SnapshotReport, type TaggedEndpoint, type Target, type TargetOutcome, UNDECLARED_POLICY_SECTIONS, type UndeclaredPolicySection, type ValidateOptions, type ValidateReport, type ValidatedBrand, type ValidatedInput, type ValidatedSettings, allEndpoints, allGraphqlOps, collectingIo, concludeRender, concludeRun, concludeSnapshot, dedupeTargets, deliverArtifactReport, describeProblem, describeRemoval, discoverRepos, encryptReport, endpointMethod, endpointPath, failRun, isPermissionError, isRateLimitError, maskRegistry, openReportChannel, parseConfig, parseRecipient, parseRepoSlug, planContext, prefixedIo, readLayerFiles, redactRanges, runMulti, runRender, runSingle, runSnapshot, sectionGrant, sectionModule, silentIo, snapshotContext, worstOf };
|
|
157
|
+
export { type AnnotationLevel, type ApiError, type ApiErrorKind, type ApplyOptions, type ApplyReport, type ArtifactUploader, type CentralTarget, type CheckOptions, type CheckReport, type ClientAnswer, type CollectedLine, type ConfigEnv, DEFAULT_API_VERSION, DEFAULT_DISCOVERY_FILTERS, type DenialPolicy, type DiscoveryFilters, type EndpointDecl, type ExcludePattern, type FinishedRender, type FinishedSnapshot, GitHubApi, type GitHubApiOptions, type GitHubClient, type GraphqlOp, type GraphqlOpDecl, type InputReader, type Io, type Layer, type Layering, type ListOptions, type MaskPair, type MergeOptions, type MergeReport, type MultiConfig, type OnMissingPermission, type OutputName, PAGE_SIZE, type PlainTyped, type PlanContext, type PrivateReportChannel, type Problem, RUN_RESULTS, type RemoteTarget, type RemovalNotice, type RenderConfig, type RepoRef, type ReportInput, type RequestMark, type Route, type RunCapabilities, type RunConfig, type RunDeps, type RunEnd, type RunOutcome, SECTIONS, SECTION_KEYS, type SectionFailure, type SectionInput, type SectionKey, type SectionModule, type SectionOutcome, type SectionPlan, SectionSelection, type SectionSnapshot, type SectionSnapshotOutcome, SettingsFile, type SettingsFileRole, type SingleConfig, type SingleOutcome, type SnapshotConfig, type SnapshotContext, type SnapshotOptions, type SnapshotReport, type TaggedEndpoint, type Target, type TargetOutcome, UNDECLARED_POLICY_SECTIONS, type UndeclaredPolicySection, type ValidateOptions, type ValidateReport, type ValidatedBrand, type ValidatedInput, type ValidatedSettings, allEndpoints, allGraphqlOps, classifyApiError, collectingIo, compileExcludePattern, concludeRender, concludeRun, concludeSnapshot, dedupeTargets, deliverArtifactReport, describeProblem, describeRemoval, discoverRepos, encryptReport, endpointMethod, endpointPath, failRun, isPermissionError, isRateLimitError, maskRegistry, openReportChannel, parseConfig, parseRecipient, parseRepoSlug, planContext, prefixedIo, readLayerFiles, redactRanges, runMulti, runRender, runSingle, runSnapshot, sectionGrant, sectionModule, silentIo, snapshotContext, worstOf };
|
package/lib/pkg/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { a as snapshotRepository, c as runRender, i as snapshotRepositories, n as checkRepository, o as validateSettings, r as mergeSettings, s as executeRun, t as applyRepository } from "./src-
|
|
3
|
-
export { DEFAULT_API_VERSION, DEFAULT_DISCOVERY_FILTERS, GitHubApi, RUN_RESULTS, SECTIONS, SECTION_KEYS, SectionSelection, SettingsFile, UNDECLARED_POLICY_SECTIONS, allEndpoints, allGraphqlOps, applyRepository, checkRepository, collectingIo, composeReport, concludeRender, concludeRun, concludeSnapshot, dedupeTargets, deliverArtifactReport, describeProblem, describeRemoval, discoverRepos, encryptReport, endpointMethod, endpointPath, executeRun, failRun, isPermissionError, isRateLimitError, maskRegistry, mergeSettings, openReportChannel, parseConfig, parseRecipient, parseRepoSlug, parseReposInput, parseSettingsDoc, planContext, prefixedIo, readLayerFiles, readSettingsFile, redactRanges, resolveCentralTargets, runMulti, runRender, runSingle, runSnapshot, sectionGrant, sectionModule, silentIo, snapshotContext, snapshotRepositories, snapshotRepository, validateSettings, worstOf };
|
|
1
|
+
import { $ as maskRegistry, $t as parseRepoSlug, A as runMulti, At as sectionGrant, D as readLayerFiles, Dt as UNDECLARED_POLICY_SECTIONS, Et as SettingsFile, F as concludeRun, Ft as endpointPath, Ht as compileExcludePattern, I as failRun, It as parseReposInput, J as composeReport, Jt as classifyApiError, M as readSettingsFile, P as concludeRender, Pt as endpointMethod, Q as collectingIo, Qt as dedupeTargets, S as runSingle, St as snapshotContext, Tt as SECTION_KEYS, Ut as discoverRepos, W as openReportChannel, X as encryptReport, Xt as isRateLimitError, Y as deliverArtifactReport, Yt as isPermissionError, Z as parseRecipient, Zt as resolveCentralTargets, _t as allGraphqlOps, ct as describeProblem, dt as RUN_RESULTS, et as prefixedIo, ft as worstOf, g as PAGE_SIZE, gt as allEndpoints, h as GitHubApi, ht as SECTIONS, j as parseSettingsDoc, m as DEFAULT_API_VERSION, nt as silentIo, pt as describeRemoval, t as parseConfig, tt as redactRanges, ut as SectionSelection, v as concludeSnapshot, vt as sectionModule, xt as planContext, y as runSnapshot, zt as DEFAULT_DISCOVERY_FILTERS } from "./run-config-CAQbD42B.js";
|
|
2
|
+
import { a as snapshotRepository, c as runRender, i as snapshotRepositories, n as checkRepository, o as validateSettings, r as mergeSettings, s as executeRun, t as applyRepository } from "./src-JEPZFkwo.js";
|
|
3
|
+
export { DEFAULT_API_VERSION, DEFAULT_DISCOVERY_FILTERS, GitHubApi, PAGE_SIZE, RUN_RESULTS, SECTIONS, SECTION_KEYS, SectionSelection, SettingsFile, UNDECLARED_POLICY_SECTIONS, allEndpoints, allGraphqlOps, applyRepository, checkRepository, classifyApiError, collectingIo, compileExcludePattern, composeReport, concludeRender, concludeRun, concludeSnapshot, dedupeTargets, deliverArtifactReport, describeProblem, describeRemoval, discoverRepos, encryptReport, endpointMethod, endpointPath, executeRun, failRun, isPermissionError, isRateLimitError, maskRegistry, mergeSettings, openReportChannel, parseConfig, parseRecipient, parseRepoSlug, parseReposInput, parseSettingsDoc, planContext, prefixedIo, readLayerFiles, readSettingsFile, redactRanges, resolveCentralTargets, runMulti, runRender, runSingle, runSnapshot, sectionGrant, sectionModule, silentIo, snapshotContext, snapshotRepositories, snapshotRepository, validateSettings, worstOf };
|
package/lib/pkg/internal.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as toPublicView, $
|
|
1
|
+
import { $ as toPublicView, $n as SECRET_RESPONSE_WITHHELD, A as InputDecl, B as SNAPSHOT_REJECTED_INPUTS, Bn as TraceIo, C as TargetsConfig, Ct as preflightProbe, D as DEFAULT_PRIVATE_REPOS, Dn as FORKS_FILTERS, Et as validateSettingsDoc, F as RENDER_INPUTS, Fn as GitHubClient, Gt as sectionOperations, H as RunFlowConfig, Ht as denialPosture, I as RENDER_ONLY_INPUTS, J as PublicTargetView, Jt as Justification, K as PRIVATE_REPOS_POLICIES, Kt as writeGatedReads, L as RENDER_REJECTED_INPUTS, Lt as SectionMeta, N as MODES, O as FILTER_INPUTS, On as VISIBILITY_FILTERS, P as Mode, Pt as KeyedListLayering, Q as publicDetail, R as SNAPSHOT_INPUTS, S as ResolvedTargets, Sn as ARCHIVED_FILTERS, Tn as DiscoveryProblem, Tt as skippedSectionKeys, Ut as readGating, X as capturingIo, Z as planRedaction, Zn as ApiError, Zt as PlannedOpBase, _n as mergeLayers, _r as TopLevelShape, b as DEFAULT_SETTINGS_FILE, bn as UndeclaredPolicyList, br as DOCUMENT_DIRECTIVE_KEYS, bt as RepoRunResult, c as parseSnapshotFileConfig, ct as RepoVisibility, d as SNAPSHOT_SCHEMA_URL, dn as SectionPermission, dr as LayerProblem, en as Tolerance, er as SECRET_TRANSPORT_WITHHELD, et as PRIVATE_REPORT_CHANNELS, fn as grantFor, ft as SnapshotResult, gr as SettingsProblem, j as InputName, k as INPUT_DECLS, l as snapshotFileDestination, lt as createVisibilityResolver, mr as RERUN_ADVICE, mt as renderSnapshotYaml, n as foldLayers, nt as applyMarkerInjection, o as SnapshotFileConfig, pr as ProblemOf, pt as SnapshotRunOptions, q as PrivateReposPolicy, t as FoldedLayers, tn as Unverifiable, un as PatResource, ur as CentralFileProblem, ut as RenderableSnapshot, vn as MustBeNever, vt as RepoResult, w as resolveTargets, wt as runForRepo, xn as AFFILIATIONS, xr as PROBOT_PARITY_KEYS, yn as UndeclaredPolicy, yr as quoteList, yt as RepoRunOptions, z as SNAPSHOT_ONLY_INPUTS } from "./layers-CJTF7YGx.js";
|
|
2
2
|
import { Result } from "neverthrow";
|
|
3
3
|
//#region src/engine/canonical.d.ts
|
|
4
4
|
/** The document as a fresh tree in the canonical order; the input is left as it was. */
|
package/lib/pkg/internal.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as publicDetail, Bt as FORKS_FILTERS, Ct as DOCUMENT_DIRECTIVE_KEYS, E as foldLayers, G as ISSUE_TITLE, Gt as createVisibilityResolver, H as PRIVATE_REPORT_CHANNELS, K as MARKER_LABEL, Kt as SECRET_RESPONSE_WITHHELD, L as PRIVATE_REPOS_POLICIES, Lt as AFFILIATIONS, Mt as writeGatedReads, N as getRepoFile, Nt as grantFor, O as DEFAULT_SETTINGS_FILE, Ot as denialPosture, R as capturingIo, Rt as ARCHIVED_FILTERS, T as writeReplacing, U as applyMarkerInjection, V as toPublicView, Vt as VISIBILITY_FILTERS, Wt as countNoun, _ as SNAPSHOT_SCHEMA_URL, a as FILTER_INPUTS, at as skippedSectionKeys, b as renderSnapshotYaml, bt as renderCanonicalYaml, c as RENDER_INPUTS, d as SNAPSHOT_INPUTS, f as SNAPSHOT_ONLY_INPUTS, i as DEFAULT_PRIVATE_REPOS, it as runForRepo, jt as sectionOperations, k as resolveTargets, kt as readGating, l as RENDER_ONLY_INPUTS, lt as quoteList, mt as mergeLayers, n as parseSnapshotFileConfig, o as INPUT_DECLS, ot as validateSettingsDoc, p as SNAPSHOT_REJECTED_INPUTS, q as MARKER_LABEL_CONFIG, qt as SECRET_TRANSPORT_WITHHELD, r as snapshotFileDestination, rt as preflightProbe, s as MODES, st as RERUN_ADVICE, u as RENDER_REJECTED_INPUTS, wt as PROBOT_PARITY_KEYS, yt as canonicalDocument, z as planRedaction } from "./run-config-CAQbD42B.js";
|
|
2
2
|
import "./internal-la_KkjCS.js";
|
|
3
3
|
export { AFFILIATIONS, ARCHIVED_FILTERS, DEFAULT_PRIVATE_REPOS, DEFAULT_SETTINGS_FILE, DOCUMENT_DIRECTIVE_KEYS, FILTER_INPUTS, FORKS_FILTERS, INPUT_DECLS, ISSUE_TITLE, MARKER_LABEL, MARKER_LABEL_CONFIG, MODES, PRIVATE_REPORT_CHANNELS, PRIVATE_REPOS_POLICIES, PROBOT_PARITY_KEYS, RENDER_INPUTS, RENDER_ONLY_INPUTS, RENDER_REJECTED_INPUTS, RERUN_ADVICE, SECRET_RESPONSE_WITHHELD, SECRET_TRANSPORT_WITHHELD, SNAPSHOT_INPUTS, SNAPSHOT_ONLY_INPUTS, SNAPSHOT_REJECTED_INPUTS, SNAPSHOT_SCHEMA_URL, VISIBILITY_FILTERS, applyMarkerInjection, canonicalDocument, capturingIo, countNoun, createVisibilityResolver, denialPosture, foldLayers, getRepoFile, grantFor, mergeLayers, parseSnapshotFileConfig, planRedaction, preflightProbe, publicDetail, quoteList, readGating, renderCanonicalYaml, renderSnapshotYaml, resolveTargets, runForRepo, sectionOperations, skippedSectionKeys, snapshotFileDestination, toPublicView, validateSettingsDoc, writeGatedReads, writeReplacing };
|