mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-20 18:46:26 +00:00
Some checks are pending
CI / -4 (push) Blocked by required conditions
CI / -5 (push) Blocked by required conditions
CI / preflight (push) Waiting to run
CI / security-scm-fast (push) Waiting to run
CI / security-dependency-audit (push) Waiting to run
CI / security-fast (push) Blocked by required conditions
CI / build-artifacts (push) Blocked by required conditions
CI / (push) Blocked by required conditions
CI / -1 (push) Blocked by required conditions
CI / checks-fast-contracts-plugins (push) Blocked by required conditions
CI / -2 (push) Blocked by required conditions
CI / checks-fast-contracts-channels (push) Blocked by required conditions
CI / checks-fast-protocol (push) Blocked by required conditions
CI / -3 (push) Blocked by required conditions
CI / checks-node-compat-node22 (push) Blocked by required conditions
CI / checks-node-core (push) Blocked by required conditions
CI / check-dependencies (push) Blocked by required conditions
CI / check-lint (push) Blocked by required conditions
CI / check-policy-guards (push) Blocked by required conditions
CI / check-preflight-guards (push) Blocked by required conditions
CI / check-prod-types (push) Blocked by required conditions
CI / check-strict-smoke (push) Blocked by required conditions
CI / check-test-types (push) Blocked by required conditions
CI / check (push) Blocked by required conditions
CI / check-additional-boundaries (push) Blocked by required conditions
CI / check-additional-extension-bundled (push) Blocked by required conditions
CI / check-additional-extension-channels (push) Blocked by required conditions
CI / check-additional-extension-package-boundary (push) Blocked by required conditions
CI / check-additional-runtime-topology-architecture (push) Blocked by required conditions
CI / check-additional (push) Blocked by required conditions
CI / build-smoke (push) Blocked by required conditions
CI / check-docs (push) Blocked by required conditions
CI / skills-python (push) Blocked by required conditions
CI / -6 (push) Blocked by required conditions
CI / macos-swift (push) Blocked by required conditions
CI / -8 (push) Blocked by required conditions
ClawSweeper Dispatch / dispatch (push) Waiting to run
Docs Sync Publish Repo / sync-publish-repo (push) Waiting to run
Docs / docs (push) Waiting to run
Plugin NPM Release / preview_plugins_npm (push) Waiting to run
Plugin NPM Release / preview_plugin_pack (push) Blocked by required conditions
CI / -7 (push) Blocked by required conditions
Plugin NPM Release / publish_plugins_npm (push) Blocked by required conditions
Workflow Sanity / generated-doc-baselines (push) Waiting to run
Workflow Sanity / no-tabs (push) Waiting to run
Workflow Sanity / actionlint (push) Waiting to run
Summary: - Merged fix: simplify bundled runtime dependency repair after ClawSweeper review. ClawSweeper fixups: - Included follow-up commit: fix: verify cached bundled runtime roots - Included follow-up commit: refactor: simplify plugin runtime startup paths - Included follow-up commit: refactor: trim plugin startup policy helpers - Included follow-up commit: refactor: trust package manager runtime deps materialization - Included follow-up commit: fix: narrow channel runtime deps skip policy - Included follow-up commit: refactor: defer startup plugin runtime deps - Ran the ClawSweeper repair loop before final review. Validation: - ClawSweeper review passed for head04dc566534. - Required merge gates passed before the squash merge. Prepared head SHA:04dc566534Review: https://github.com/openclaw/openclaw/pull/75183#issuecomment-4358383786 Co-authored-by: Peter Steinberger <steipete@gmail.com> Co-authored-by: Shakker <shakkerdroid@gmail.com> Co-authored-by: clawsweeper-repair <clawsweeper-repair@users.noreply.github.com>
68 lines
2.1 KiB
TypeScript
68 lines
2.1 KiB
TypeScript
import { routeLogsToStderr } from "../logging/console.js";
|
|
import type { RuntimeEnv } from "../runtime.js";
|
|
import { resolveCliArgvInvocation } from "./argv-invocation.js";
|
|
import { ensureCliCommandBootstrap } from "./command-bootstrap.js";
|
|
import { resolveCliStartupPolicy } from "./command-startup-policy.js";
|
|
|
|
type CliStartupPolicy = ReturnType<typeof resolveCliStartupPolicy>;
|
|
|
|
export function resolveCliExecutionStartupContext(params: {
|
|
argv: string[];
|
|
jsonOutputMode: boolean;
|
|
env?: NodeJS.ProcessEnv;
|
|
routeMode?: boolean;
|
|
}) {
|
|
const invocation = resolveCliArgvInvocation(params.argv);
|
|
const { commandPath } = invocation;
|
|
return {
|
|
invocation,
|
|
commandPath,
|
|
startupPolicy: resolveCliStartupPolicy({
|
|
argv: params.argv,
|
|
commandPath,
|
|
jsonOutputMode: params.jsonOutputMode,
|
|
env: params.env,
|
|
routeMode: params.routeMode,
|
|
}),
|
|
};
|
|
}
|
|
|
|
export async function applyCliExecutionStartupPresentation(params: {
|
|
argv?: string[];
|
|
routeLogsToStderrOnSuppress?: boolean;
|
|
startupPolicy: CliStartupPolicy;
|
|
showBanner?: boolean;
|
|
version?: string;
|
|
}) {
|
|
if (params.startupPolicy.suppressDoctorStdout && params.routeLogsToStderrOnSuppress !== false) {
|
|
routeLogsToStderr();
|
|
}
|
|
if (params.startupPolicy.hideBanner || params.showBanner === false || !params.version) {
|
|
return;
|
|
}
|
|
const { emitCliBanner } = await import("./banner.js");
|
|
if (params.argv) {
|
|
emitCliBanner(params.version, { argv: params.argv });
|
|
return;
|
|
}
|
|
emitCliBanner(params.version);
|
|
}
|
|
|
|
export async function ensureCliExecutionBootstrap(params: {
|
|
runtime: RuntimeEnv;
|
|
commandPath: string[];
|
|
startupPolicy: CliStartupPolicy;
|
|
allowInvalid?: boolean;
|
|
loadPlugins?: boolean;
|
|
skipConfigGuard?: boolean;
|
|
}) {
|
|
await ensureCliCommandBootstrap({
|
|
runtime: params.runtime,
|
|
commandPath: params.commandPath,
|
|
suppressDoctorStdout: params.startupPolicy.suppressDoctorStdout,
|
|
allowInvalid: params.allowInvalid,
|
|
loadPlugins: params.loadPlugins ?? params.startupPolicy.loadPlugins,
|
|
pluginRegistry: params.startupPolicy.pluginRegistry,
|
|
skipConfigGuard: params.skipConfigGuard ?? params.startupPolicy.skipConfigGuard,
|
|
});
|
|
}
|