refactor: hide plugin release probes

This commit is contained in:
Peter Steinberger
2026-05-02 07:45:06 +01:00
parent 4c36e9f433
commit f9e6fb8692
2 changed files with 4 additions and 4 deletions

View File

@@ -319,7 +319,7 @@ export function collectClawHubVersionGateErrors(params: {
return errors;
}
export async function isPluginVersionPublishedOnClawHub(
async function isPluginVersionPublishedOnClawHub(
packageName: string,
version: string,
options: {

View File

@@ -122,7 +122,7 @@ export function resolvePublishablePluginVersion(params: {
return { version, parsedVersion };
}
export function normalizeGitDiffPath(path: string): string {
function normalizeGitDiffPath(path: string): string {
return path.trim().replaceAll("\\", "/");
}
@@ -361,7 +361,7 @@ export function collectChangedExtensionIdsFromPaths(paths: readonly string[]): s
return [...extensionIds].toSorted();
}
export function isNullGitRef(ref: string | undefined): boolean {
function isNullGitRef(ref: string | undefined): boolean {
return !ref || /^0+$/.test(ref);
}
@@ -449,7 +449,7 @@ export function resolveChangedPublishablePluginPackages(params: {
return params.plugins.filter((plugin) => changed.has(plugin.extensionId));
}
export function isPluginVersionPublished(packageName: string, version: string): boolean {
function isPluginVersionPublished(packageName: string, version: string): boolean {
const tempDir = mkdtempSync(join(tmpdir(), "openclaw-plugin-npm-view-"));
const userconfigPath = join(tempDir, "npmrc");
writeFileSync(userconfigPath, "");