mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-14 22:16:11 +00:00
* feat(tooling): add tsgo typecheck lane for scripts/** * fix(scripts): burn down scripts type debt surfaced by the new lane Typing-only except bugs the lane surfaced: gh-read timeout race, Discord Headers spread dropping entries, undefined allowedHeadBranches match, plugin-boundary matchAll crash. Deletes retired config keys from fixtures/benches (prompt snapshots regenerated, config dump only) and the orphaned non-runnable sync-moonshot-docs script. Adds full-surface .d.mts declarations for existing .mjs boundaries.
48 lines
1.5 KiB
TypeScript
48 lines
1.5 KiB
TypeScript
import type fs from "node:fs";
|
|
|
|
export type StaticExtensionAsset = {
|
|
pluginDir?: string;
|
|
src: string;
|
|
dest: string;
|
|
};
|
|
|
|
export type RuntimePostBuildParams = {
|
|
rootDir?: string;
|
|
repoRoot?: string;
|
|
cwd?: string;
|
|
env?: NodeJS.ProcessEnv;
|
|
fs?: typeof fs;
|
|
timings?: boolean | "verbose";
|
|
warn?: (message: string) => void;
|
|
};
|
|
|
|
type StaticExtensionAssetParams = Pick<RuntimePostBuildParams, "rootDir" | "fs" | "warn"> & {
|
|
assets?: StaticExtensionAsset[];
|
|
};
|
|
|
|
type LegacyCliExitCompatChunk = { dest: string; contents: string };
|
|
|
|
export function copyStaticExtensionAssets(params?: StaticExtensionAssetParams): void;
|
|
export function listStaticExtensionAssetOutputs(params?: StaticExtensionAssetParams): string[];
|
|
|
|
export const LEGACY_CLI_EXIT_COMPAT_CHUNKS: LegacyCliExitCompatChunk[];
|
|
export function listCoreRuntimePostBuildOutputs(
|
|
params?: Pick<RuntimePostBuildParams, "rootDir" | "fs"> & {
|
|
chunks?: LegacyCliExitCompatChunk[];
|
|
},
|
|
): string[];
|
|
export function writeStableRootRuntimeAliases(
|
|
params?: Pick<RuntimePostBuildParams, "rootDir" | "fs">,
|
|
): void;
|
|
export function rewriteRootRuntimeImportsToStableAliases(
|
|
params?: Pick<RuntimePostBuildParams, "rootDir" | "fs">,
|
|
): void;
|
|
export function writeLegacyRootRuntimeCompatAliases(
|
|
params?: Pick<RuntimePostBuildParams, "rootDir" | "fs">,
|
|
): void;
|
|
export function writeLegacyCliExitCompatChunks(params?: {
|
|
rootDir?: string;
|
|
chunks?: LegacyCliExitCompatChunk[];
|
|
}): void;
|
|
export function runRuntimePostBuild(params?: RuntimePostBuildParams): void;
|