Files
openclaw/scripts/changed-lanes.d.mts
Peter Steinberger ae12413ee2 chore(tooling): enforce no-floating-promises and drop DOM globals from Node-side typechecking (#104422)
* chore(lint): enforce no-floating-promises repo-wide

* feat(tooling): split DOM globals out of the Node-side typecheck program

tsconfig.core.json now compiles src/ + packages/ with lib ES2023; new
tsconfig.ui.json owns ui/ with DOM. Web-global names used by Node code
alias to canonical undici/stream-web types; highlight.js loads through a
validated narrow API because its d.ts force-includes lib.dom. Boundary,
sparse-guard, changed-lane routing, and profile lanes cover the new ui
graph.

* chore(deps): declare undici-types and teach knip about the highlight.js runtime require

* ci: retrigger dropped pull_request synchronize event

* refactor(types): derive web-global aliases from @types/node fetch globals, drop undici-types dep

* ci: retrigger after dependency guard cleared

* fix(scripts): add ui lane to changed-lanes declaration union
2026-07-11 07:28:20 -07:00

57 lines
1.5 KiB
TypeScript

export type ChangedLane =
| "core"
| "coreTests"
| "ui"
| "extensions"
| "extensionTests"
| "scripts"
| "testRoot"
| "apps"
| "docs"
| "tooling"
| "liveDockerTooling"
| "releaseMetadata"
| "all";
export type ChangedLanes = Record<ChangedLane, boolean>;
export type ChangedLaneResult = {
paths: string[];
lanes: ChangedLanes;
extensionImpactFromCore: boolean;
docsOnly: boolean;
reasons: string[];
};
export type DetectChangedLanesOptions = {
packageJsonChangeKind?: "liveDockerTooling" | "tooling" | null;
};
export function normalizeChangedPath(inputPath: unknown): string;
export function createEmptyChangedLanes(): ChangedLanes;
export function isChangedLaneTestPath(changedPath: string): boolean;
export function detectChangedLanes(
changedPaths: string[],
options?: DetectChangedLanesOptions,
): ChangedLaneResult;
export function detectChangedLanesForPaths(params: {
paths: string[];
base: string;
head?: string;
staged?: boolean;
mergeHeadFirstParent?: boolean;
}): ChangedLaneResult;
export function listChangedPathsFromGit(params: {
base: string;
head?: string;
includeWorktree?: boolean;
cwd?: string;
mergeHeadFirstParent?: boolean;
}): string[];
export function listStagedChangedPaths(cwd?: string): string[];
export function isLiveDockerPackageScriptOnlyChange(before: string, after: string): boolean;
export function isPackageScriptOnlyChange(before: string, after: string): boolean;
export const LIVE_DOCKER_AUTH_SHELL_TARGETS: string[];
export const RELEASE_METADATA_PATHS: Set<string>;