refactor: trim signal helper exports · openclaw/openclaw@d29c470
steipete
·
2026-05-01
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import { spawn } from "node:child_process"; |
2 | 2 | import type { RuntimeEnv } from "openclaw/plugin-sdk/runtime-env"; |
3 | 3 | |
4 | | -export type SignalDaemonOpts = { |
| 4 | +type SignalDaemonOpts = { |
5 | 5 | cliPath: string; |
6 | 6 | account?: string; |
7 | 7 | httpHost: string; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -11,7 +11,7 @@ import {
|
11 | 11 | } from "../identity.js"; |
12 | 12 | import type { SignalDataMessage } from "./event-handler.types.js"; |
13 | 13 | |
14 | | -export type SignalQuoteContext = { |
| 14 | +type SignalQuoteContext = { |
15 | 15 | contextVisibilityMode: ReturnType<typeof resolveChannelContextVisibilityMode>; |
16 | 16 | decision: ContextVisibilityDecision; |
17 | 17 | quoteSenderAllowed: boolean; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import type { PluginRuntime } from "openclaw/plugin-sdk/core"; |
2 | 2 | import { createPluginRuntimeStore } from "openclaw/plugin-sdk/runtime-store"; |
3 | 3 | |
4 | | -const { |
5 | | -setRuntime: setSignalRuntime, |
6 | | -clearRuntime: clearSignalRuntime, |
7 | | -getRuntime: getSignalRuntime, |
8 | | -} = createPluginRuntimeStore<PluginRuntime>({ |
9 | | -pluginId: "signal", |
10 | | -errorMessage: "Signal runtime not initialized", |
11 | | -}); |
12 | | -export { clearSignalRuntime, getSignalRuntime, setSignalRuntime }; |
| 4 | +const { setRuntime: setSignalRuntime, clearRuntime: clearSignalRuntime } = |
| 5 | +createPluginRuntimeStore<PluginRuntime>({ |
| 6 | +pluginId: "signal", |
| 7 | +errorMessage: "Signal runtime not initialized", |
| 8 | +}); |
| 9 | +export { clearSignalRuntime, setSignalRuntime }; |
| Original file line number | Diff line number | Diff line change |
|---|
@@ -88,7 +88,7 @@ function buildSignalSetupPatch(input: {
|
88 | 88 | }; |
89 | 89 | } |
90 | 90 | |
91 | | -export async function promptSignalAllowFrom(params: { |
| 91 | +async function promptSignalAllowFrom(params: { |
92 | 92 | cfg: OpenClawConfig; |
93 | 93 | prompter: WizardPrompter; |
94 | 94 | accountId?: string; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -13,7 +13,6 @@ import {
|
13 | 13 | signalCompletionNote, |
14 | 14 | signalDmPolicy, |
15 | 15 | signalNumberTextInput, |
16 | | -signalSetupAdapter, |
17 | 16 | } from "./setup-core.js"; |
18 | 17 | |
19 | 18 | const channel = "signal" as const; |
@@ -88,4 +87,4 @@ export const signalSetupWizard: ChannelSetupWizard = {
|
88 | 87 | disable: (cfg) => setSetupChannelEnabled(cfg, channel, false), |
89 | 88 | }; |
90 | 89 | |
91 | | -export { normalizeSignalAccountInput, parseSignalAllowFromEntries, signalSetupAdapter }; |
| 90 | +export { normalizeSignalAccountInput, parseSignalAllowFromEntries }; |
| Original file line number | Diff line number | Diff line change |
|---|
@@ -19,7 +19,7 @@ import {
|
19 | 19 | import { SignalChannelConfigSchema } from "./config-schema.js"; |
20 | 20 | import { createSignalSetupWizardProxy } from "./setup-core.js"; |
21 | 21 | |
22 | | -export const SIGNAL_CHANNEL = "signal" as const; |
| 22 | +const SIGNAL_CHANNEL = "signal" as const; |
23 | 23 | |
24 | 24 | async function loadSignalChannelRuntime() { |
25 | 25 | return await import("./channel.runtime.js"); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。