mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 12:10:42 +00:00
refactor: trim script helper exports
This commit is contained in:
@@ -39,7 +39,7 @@ export function resolveTestboxId({ argv = [], env = process.env } = {}) {
|
||||
).trim();
|
||||
}
|
||||
|
||||
export function resolveBlacksmithTestboxStateDir({ env = process.env, homeDir } = {}) {
|
||||
function resolveBlacksmithTestboxStateDir({ env = process.env, homeDir } = {}) {
|
||||
if (env.OPENCLAW_BLACKSMITH_TESTBOX_STATE_DIR) {
|
||||
return env.OPENCLAW_BLACKSMITH_TESTBOX_STATE_DIR;
|
||||
}
|
||||
@@ -90,7 +90,7 @@ export function evaluateLocalTestboxKey({
|
||||
};
|
||||
}
|
||||
|
||||
export function resolveOpenClawTestboxClaimPath({ testboxId, env = process.env, homeDir } = {}) {
|
||||
function resolveOpenClawTestboxClaimPath({ testboxId, env = process.env, homeDir } = {}) {
|
||||
const stateDir = resolveBlacksmithTestboxStateDir({ env, homeDir });
|
||||
return path.join(stateDir, testboxId, OPENCLAW_TESTBOX_CLAIM_FILE);
|
||||
}
|
||||
|
||||
@@ -15,7 +15,6 @@ const checker = createExtensionImportBoundaryChecker({
|
||||
},
|
||||
});
|
||||
|
||||
export const collectSdkPackageExtensionImportBoundaryInventory = checker.collectInventory;
|
||||
export const main = checker.main;
|
||||
|
||||
runAsScript(import.meta.url, main);
|
||||
|
||||
@@ -25,7 +25,6 @@ const checker = createExtensionImportBoundaryChecker({
|
||||
},
|
||||
});
|
||||
|
||||
export const collectSrcExtensionImportBoundaryInventory = checker.collectInventory;
|
||||
export const main = checker.main;
|
||||
|
||||
runAsScript(import.meta.url, main);
|
||||
|
||||
Reference in New Issue
Block a user