mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-17 13:21:44 +00:00
* feat(tooling): add noUncheckedIndexedAccess strict-ratchet lane * fix(packages): make indexed access explicit across ratchet packages Burns down all 65 noUncheckedIndexedAccess errors in the seven ratchet packages with behavior-identical restructuring (iteration, charAt/slice, regex-group guards, validated hextet tuple). net-policy invariant violations now throw instead of failing open. Adds @openclaw/normalization-core/expect (expectDefined/first/last) with subpath export and tests. memory-host-sdk fixes kept but the package stays out of the lane: it re-exports core src/** so the flag would apply transitively to all of core. * fix(lint): keep .oxlintrc.json strict-JSON parseable for extension lint wrappers
59 lines
1.6 KiB
TypeScript
59 lines
1.6 KiB
TypeScript
export type ChangedLane =
|
|
| "core"
|
|
| "coreTests"
|
|
| "ui"
|
|
| "extensions"
|
|
| "extensionTests"
|
|
| "scripts"
|
|
| "strictRatchet"
|
|
| "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>;
|
|
export const STRICT_RATCHET_PACKAGE_DIRS: string[];
|