mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 21:20:43 +00:00
fix(daemon): handle sudo user-systemd gateway install failures
* fix(daemon): handle sudo user-systemd gateway install failures * fix(daemon): harden sudo systemctl user scope * fix(plugins): remove static type-cycle edges * test(plugins): update bundle command config mock
This commit is contained in:
@@ -33,6 +33,12 @@ vi.mock("./config-state.js", () => ({
|
||||
}) => ({
|
||||
activated: params.config?.entries?.[params.id]?.enabled !== false,
|
||||
}),
|
||||
resolveEffectiveEnableState: (params: {
|
||||
config?: { entries?: Record<string, { enabled?: boolean }> };
|
||||
id: string;
|
||||
}) => ({
|
||||
enabled: params.config?.entries?.[params.id]?.enabled !== false,
|
||||
}),
|
||||
}));
|
||||
|
||||
const { loadEnabledClaudeBundleCommands } = await import("./bundle-commands.js");
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
import type {
|
||||
RunEmbeddedAgentFn,
|
||||
RunEmbeddedPiAgentFn,
|
||||
} from "../../agents/pi-embedded-runtime.types.js";
|
||||
import type { HeartbeatRunResult } from "../../infra/heartbeat-wake.js";
|
||||
import type { LogLevel } from "../../logging/levels.js";
|
||||
import type { MediaUnderstandingRuntime } from "../../media-understanding/runtime-types.js";
|
||||
@@ -60,8 +56,8 @@ export type PluginRuntimeCore = {
|
||||
model: string;
|
||||
catalog?: import("../../agents/model-catalog.types.js").ModelCatalogEntry[];
|
||||
}) => import("../../auto-reply/thinking.js").ThinkLevel;
|
||||
runEmbeddedAgent: RunEmbeddedAgentFn;
|
||||
runEmbeddedPiAgent: RunEmbeddedPiAgentFn;
|
||||
runEmbeddedAgent: import("../../agents/pi-embedded-runtime.types.js").RunEmbeddedAgentFn;
|
||||
runEmbeddedPiAgent: import("../../agents/pi-embedded-runtime.types.js").RunEmbeddedPiAgentFn;
|
||||
resolveAgentTimeoutMs: typeof import("../../agents/timeout.js").resolveAgentTimeoutMs;
|
||||
ensureAgentWorkspace: typeof import("../../agents/workspace.js").ensureAgentWorkspace;
|
||||
session: {
|
||||
|
||||
@@ -12,7 +12,6 @@ import type {
|
||||
import type { AgentHarness } from "../agents/harness/types.js";
|
||||
import type { ModelCatalogEntry } from "../agents/model-catalog.types.js";
|
||||
import type { FailoverReason } from "../agents/pi-embedded-helpers/types.js";
|
||||
import type { ModelProviderRequestTransportOverrides } from "../agents/provider-request-config.js";
|
||||
import type { ProviderSystemPromptContribution } from "../agents/system-prompt-contribution.js";
|
||||
import type { PromptMode } from "../agents/system-prompt.types.js";
|
||||
import type { AnyAgentTool } from "../agents/tools/common.js";
|
||||
@@ -137,6 +136,9 @@ import type {
|
||||
} from "./tool-types.js";
|
||||
import type { WebFetchProviderPlugin, WebSearchProviderPlugin } from "./web-provider-types.js";
|
||||
|
||||
type ModelProviderRequestTransportOverrides =
|
||||
import("../agents/provider-request-config.js").ModelProviderRequestTransportOverrides;
|
||||
|
||||
export type { PluginRuntime } from "./runtime/types.js";
|
||||
export type { PluginOrigin } from "./plugin-origin.types.js";
|
||||
export type {
|
||||
|
||||
Reference in New Issue
Block a user