refactor: trim signal helper exports

This commit is contained in:
Peter Steinberger
2026-05-01 16:41:09 +01:00
parent dc1d6856bc
commit d29c470d7c
6 changed files with 11 additions and 15 deletions

View File

@@ -1,7 +1,7 @@
import { spawn } from "node:child_process";
import type { RuntimeEnv } from "openclaw/plugin-sdk/runtime-env";
export type SignalDaemonOpts = {
type SignalDaemonOpts = {
cliPath: string;
account?: string;
httpHost: string;

View File

@@ -11,7 +11,7 @@ import {
} from "../identity.js";
import type { SignalDataMessage } from "./event-handler.types.js";
export type SignalQuoteContext = {
type SignalQuoteContext = {
contextVisibilityMode: ReturnType<typeof resolveChannelContextVisibilityMode>;
decision: ContextVisibilityDecision;
quoteSenderAllowed: boolean;

View File

@@ -1,12 +1,9 @@
import type { PluginRuntime } from "openclaw/plugin-sdk/core";
import { createPluginRuntimeStore } from "openclaw/plugin-sdk/runtime-store";
const {
setRuntime: setSignalRuntime,
clearRuntime: clearSignalRuntime,
getRuntime: getSignalRuntime,
} = createPluginRuntimeStore<PluginRuntime>({
pluginId: "signal",
errorMessage: "Signal runtime not initialized",
});
export { clearSignalRuntime, getSignalRuntime, setSignalRuntime };
const { setRuntime: setSignalRuntime, clearRuntime: clearSignalRuntime } =
createPluginRuntimeStore<PluginRuntime>({
pluginId: "signal",
errorMessage: "Signal runtime not initialized",
});
export { clearSignalRuntime, setSignalRuntime };

View File

@@ -88,7 +88,7 @@ function buildSignalSetupPatch(input: {
};
}
export async function promptSignalAllowFrom(params: {
async function promptSignalAllowFrom(params: {
cfg: OpenClawConfig;
prompter: WizardPrompter;
accountId?: string;

View File

@@ -13,7 +13,6 @@ import {
signalCompletionNote,
signalDmPolicy,
signalNumberTextInput,
signalSetupAdapter,
} from "./setup-core.js";
const channel = "signal" as const;
@@ -88,4 +87,4 @@ export const signalSetupWizard: ChannelSetupWizard = {
disable: (cfg) => setSetupChannelEnabled(cfg, channel, false),
};
export { normalizeSignalAccountInput, parseSignalAllowFromEntries, signalSetupAdapter };
export { normalizeSignalAccountInput, parseSignalAllowFromEntries };

View File

@@ -19,7 +19,7 @@ import {
import { SignalChannelConfigSchema } from "./config-schema.js";
import { createSignalSetupWizardProxy } from "./setup-core.js";
export const SIGNAL_CHANNEL = "signal" as const;
const SIGNAL_CHANNEL = "signal" as const;
async function loadSignalChannelRuntime() {
return await import("./channel.runtime.js");