mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-20 09:17:51 +00:00
refactor: trim signal helper exports
This commit is contained in:
parent
dc1d6856bc
commit
d29c470d7c
6 changed files with 11 additions and 15 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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 };
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ function buildSignalSetupPatch(input: {
|
|||
};
|
||||
}
|
||||
|
||||
export async function promptSignalAllowFrom(params: {
|
||||
async function promptSignalAllowFrom(params: {
|
||||
cfg: OpenClawConfig;
|
||||
prompter: WizardPrompter;
|
||||
accountId?: string;
|
||||
|
|
|
|||
|
|
@ -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 };
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue