mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-18 18:31:43 +00:00
* 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
57 lines
1.5 KiB
TypeScript
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>;
|