File size: 5,136 Bytes
bbcff29 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 | declare module "*security/opengrep/check-rule-metadata.mjs" {
export function validateRuleMetadata(
rules: Array<{ id: string; metadata?: Record<string, string> }>,
): string[];
}
declare module "*openclaw-changelog-update/scripts/verify-release-notes.mjs" {
type ContributionRecord = {
externalReferences?: string[];
references: number[];
thanks: string[];
};
export function createGithubSnapshotState(params: Record<string, unknown>): {
base: string;
checkpointEvery: number;
dirty: boolean;
filePath: string;
hits: number;
misses: number;
repository: string;
responses: Record<string, unknown>;
target: string;
writesSincePersist: number;
};
export function githubApiWithSnapshot(
args: string[],
fetchApi: (args: string[]) => unknown,
snapshotState: Record<string, unknown>,
): unknown;
export function persistGithubSnapshot(snapshotState: Record<string, unknown>): void;
export function defaultGithubSnapshotPath(
base: string,
target: string,
gitCommonDir: string,
): string;
export function renderContributionRecordEntry(entry: Record<string, unknown>): string;
export function releaseNoteReferences(
sectionSource: string,
shippedBaselines: unknown[],
): number[];
export function standardRevertedHash(message: string): string | null;
export function contributionRecordTarget(section: { source: string }): string | undefined;
export function pullRequestTitleFromCommitSubject(
subject: string,
number: number,
): string | undefined;
export function contributionRecordFor(section: Record<string, unknown>): {
legacyIssues: Map<number, unknown>;
pullRequests: Map<number, ContributionRecord>;
};
export function recoverUnavailablePullRequests(params: {
numbers: Iterable<number>;
nodes: Map<number, unknown>;
record: { pullRequests: Map<number, ContributionRecord> };
recordTarget?: string;
source: {
activeCommits: Array<{
authorHandle?: string;
closingReferences?: number[];
committedAt: string;
hash: string;
pullRequests: number[];
references: number[];
subject: string;
}>;
coauthorsByReference: Map<number, Set<string>>;
pullRequests: Set<number>;
target: string;
};
isAncestor?: (ancestor: string, descendant: string) => boolean;
}): Map<number, unknown>;
export function cumulativeShippedPullRequests(changelog: unknown, label: string): Set<number>;
export function subtractShippedPullRequests(
source: unknown,
baselines: unknown[],
): {
baselines: unknown[];
pullRequests: Set<number>;
};
export function withoutExcludedContributionRecords(
record: {
legacyIssues: Map<number, ContributionRecord>;
pullRequests: Map<number, ContributionRecord>;
},
excluded: Set<number>,
): {
legacyIssues: Map<number, ContributionRecord>;
pullRequests: Map<number, ContributionRecord>;
};
export function renderedContributionRecordReferences(
record: {
legacyIssues: Map<number, ContributionRecord>;
pullRequests: Map<number, ContributionRecord>;
},
writeLedger: boolean,
): number[];
export function contaminatingPullRequestReferences(params: Record<string, unknown>): unknown[];
export function canonicalMainCommitMatches(commit: unknown, candidates: unknown[]): unknown[];
export function canonicalPullRequests(
currentPullRequests: unknown[],
mainPullRequests: unknown[],
hasCanonicalMainCommit?: boolean,
): unknown[];
export function releaseProvenanceMarkers(
message: string,
): Array<{ commit: string; pullRequests: number[] }>;
export function collectReleaseProvenanceOverrides(
activeCommits: Array<{ body: string; hash: string }>,
releaseProvenance?: string[],
): Map<string, number[]>;
export function parseArgs(argv: string[]): {
releaseProvenance: string[];
[key: string]: unknown;
};
export function resolvedReleasePullRequests(
currentPullRequests: number[],
mainPullRequests: number[],
hasCanonicalMainCommit: boolean,
provenanceOverride?: number[],
): number[];
export function releasePullRequestReferencesToSuppress(
currentPullRequests: number[],
subject: string,
associatedPullRequests: number[],
hasProvenanceOverride: boolean,
): number[];
export function validateReleaseProvenanceOverrides(
provenanceOverrides: Map<string, number[]>,
nodes: Map<number, unknown>,
mainCommit: string,
isMainAncestor?: (ancestor: string, descendant: string) => boolean,
): void;
export function ledgerFor(...args: unknown[]): {
entries: unknown[];
issues: unknown[];
ledger: string;
pullRequests: unknown[];
titleReferences: unknown[];
};
export function countTopLevelSectionBullets(sectionSource: string, heading: string): number;
export function highlightCountError(sectionSource: string): string | undefined;
export function isEligibleHandle(handle: string): boolean;
export function ledgerChecks(...args: unknown[]): string[];
}
|