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:
Vincent Koc
2026-04-27 01:34:57 -07:00
committed by GitHub
parent c25082f92e
commit 56ca4e2269
9 changed files with 159 additions and 35 deletions

View File

@@ -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");

View File

@@ -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: {

View File

@@ -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 {