@elizaos/plugin-signal 2.0.0-alpha.7 → 2.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/auto-enable.ts ADDED
@@ -0,0 +1,20 @@
1
+ // Auto-enable check for @elizaos/plugin-signal.
2
+ //
3
+ // Plugin manifest entry-point — referenced by package.json's
4
+ // `elizaos.plugin.autoEnableModule`. Keep this module light: env reads only,
5
+ // no service init, no transitive imports of the full plugin runtime. The
6
+ // auto-enable engine loads dozens of these per boot.
7
+ import type { PluginAutoEnableContext } from "@elizaos/core";
8
+
9
+ /** Enable when a `signal` connector block is present and not explicitly disabled. */
10
+ export function shouldEnable(ctx: PluginAutoEnableContext): boolean {
11
+ const c = (ctx.config?.connectors as Record<string, unknown> | undefined)?.signal;
12
+ if (!c || typeof c !== "object") return false;
13
+ const config = c as Record<string, unknown>;
14
+ if (config.enabled === false) return false;
15
+ // The full per-connector field check (signal-cli endpoint / phone number)
16
+ // lives in the central engine's isConnectorConfigured. We delegate to a
17
+ // simple "block present + not explicitly disabled" check here; the central
18
+ // engine's stricter check remains as a fallback during migration.
19
+ return true;
20
+ }
@@ -0,0 +1,127 @@
1
+ import type { IAgentRuntime } from "@elizaos/core";
2
+ /**
3
+ * Default account identifier used when no specific account is configured
4
+ */
5
+ export declare const DEFAULT_ACCOUNT_ID = "default";
6
+ /**
7
+ * DM-specific configuration
8
+ */
9
+ export interface SignalDmConfig {
10
+ /** If false, ignore all incoming Signal DMs */
11
+ enabled?: boolean;
12
+ /** Direct message access policy */
13
+ policy?: "open" | "disabled" | "allowlist" | "pairing";
14
+ /** Allowlist for DM senders (phone numbers or UUIDs) */
15
+ allowFrom?: Array<string | number>;
16
+ }
17
+ /**
18
+ * Group-specific configuration
19
+ */
20
+ export interface SignalGroupConfig {
21
+ /** If false, ignore all group messages */
22
+ enabled?: boolean;
23
+ /** Group message access policy */
24
+ policy?: "open" | "disabled" | "allowlist";
25
+ /** Require bot mention to respond in groups */
26
+ requireMention?: boolean;
27
+ /** Allowlist for groups (IDs or names) */
28
+ allowFrom?: Array<string | number>;
29
+ }
30
+ /**
31
+ * Reaction notification mode
32
+ */
33
+ export type SignalReactionNotificationMode = "off" | "own" | "all" | "allowlist";
34
+ /**
35
+ * Configuration for a single Signal account
36
+ */
37
+ export interface SignalAccountConfig {
38
+ /** Optional display name for this account */
39
+ name?: string;
40
+ /** If false, do not start this Signal account */
41
+ enabled?: boolean;
42
+ /** Signal account phone number in E.164 format */
43
+ account?: string;
44
+ /** Signal CLI HTTP server URL */
45
+ httpUrl?: string;
46
+ /** Signal CLI auth/data directory */
47
+ authDir?: string;
48
+ /** Signal CLI HTTP server host */
49
+ httpHost?: string;
50
+ /** Signal CLI HTTP server port */
51
+ httpPort?: number;
52
+ /** Path to signal-cli binary */
53
+ cliPath?: string;
54
+ /** Auto-start signal-cli daemon if not running */
55
+ autoStart?: boolean;
56
+ /** Outbound text chunk size (chars) */
57
+ textChunkLimit?: number;
58
+ /** History limit for context */
59
+ historyLimit?: number;
60
+ /** Reaction notification mode */
61
+ reactionNotifications?: SignalReactionNotificationMode;
62
+ /** Reaction allowlist when mode is 'allowlist' */
63
+ reactionAllowlist?: Array<string | number>;
64
+ /** DM configuration */
65
+ dm?: SignalDmConfig;
66
+ /** Group configuration */
67
+ group?: SignalGroupConfig;
68
+ /** Whether to ignore group messages */
69
+ shouldIgnoreGroupMessages?: boolean;
70
+ /** Allowed groups */
71
+ allowedGroups?: string[];
72
+ /** Blocked numbers */
73
+ blockedNumbers?: string[];
74
+ }
75
+ /**
76
+ * Multi-account Signal configuration structure
77
+ */
78
+ export interface SignalMultiAccountConfig {
79
+ /** Default/base configuration applied to all accounts */
80
+ enabled?: boolean;
81
+ account?: string;
82
+ httpUrl?: string;
83
+ authDir?: string;
84
+ /** Per-account configuration overrides */
85
+ accounts?: Record<string, SignalAccountConfig>;
86
+ }
87
+ /**
88
+ * Resolved Signal account with all configuration merged
89
+ */
90
+ export interface ResolvedSignalAccount {
91
+ accountId: string;
92
+ enabled: boolean;
93
+ name?: string;
94
+ account?: string;
95
+ baseUrl: string;
96
+ configured: boolean;
97
+ config: SignalAccountConfig;
98
+ }
99
+ /**
100
+ * Normalizes an account ID, returning the default if not provided
101
+ */
102
+ export declare function normalizeAccountId(accountId?: string | null): string;
103
+ /**
104
+ * Gets the multi-account configuration from runtime settings
105
+ */
106
+ export declare function getMultiAccountConfig(runtime: IAgentRuntime): SignalMultiAccountConfig;
107
+ /**
108
+ * Lists all configured account IDs
109
+ */
110
+ export declare function listSignalAccountIds(runtime: IAgentRuntime): string[];
111
+ /**
112
+ * Resolves the default account ID to use
113
+ */
114
+ export declare function resolveDefaultSignalAccountId(runtime: IAgentRuntime): string;
115
+ /**
116
+ * Resolves a complete Signal account configuration
117
+ */
118
+ export declare function resolveSignalAccount(runtime: IAgentRuntime, accountId?: string | null): ResolvedSignalAccount;
119
+ /**
120
+ * Lists all enabled Signal accounts
121
+ */
122
+ export declare function listEnabledSignalAccounts(runtime: IAgentRuntime): ResolvedSignalAccount[];
123
+ /**
124
+ * Checks if multi-account mode is enabled
125
+ */
126
+ export declare function isMultiAccountEnabled(runtime: IAgentRuntime): boolean;
127
+ //# sourceMappingURL=accounts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../src/accounts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD;;GAEG;AACH,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAE5C;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,+CAA+C;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,mCAAmC;IACnC,MAAM,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,WAAW,GAAG,SAAS,CAAC;IACvD,wDAAwD;IACxD,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAA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AyB,CAAC,OAAO,EAAE,aAAa,GAAG,qBAAqB,EAAE,CAIzF;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAGrE"}
@@ -0,0 +1,8 @@
1
+ import type { IAgentRuntime, Memory } from "@elizaos/core";
2
+ import type { SignalService } from "../service";
3
+ export declare function getSignalService(runtime: IAgentRuntime): SignalService | null;
4
+ export declare function hasSignalService(runtime: IAgentRuntime): boolean;
5
+ export declare function isSignalConversation(message: Memory): boolean;
6
+ export declare function getMessageText(message: Memory): string;
7
+ export declare function hasStructuredSignalInvocation(message: Memory, actionName: string, structuredKeys?: string[]): boolean;
8
+ //# sourceMappingURL=action-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action-utils.d.ts","sourceRoot":"","sources":["../../src/actions/action-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAOhD,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,aAAa,GAAG,aAAa,GAAG,IAAI,CAE7E;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAEhE;AAED,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAE7D;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEtD;AAED,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,cAAc,GAAE,MAAM,EAAO,GAC5B,OAAO,CAYT"}
@@ -0,0 +1,90 @@
1
+ /**
2
+ * Signal plugin configuration types.
3
+ *
4
+ * These types define the configuration schema for the Signal plugin.
5
+ * Shared base types are imported from @elizaos/core.
6
+ */
7
+ import type { BlockStreamingCoalesceConfig, ChannelHeartbeatVisibilityConfig, DmConfig, DmPolicy, GroupPolicy, MarkdownConfig } from "@elizaos/core";
8
+ export type SignalReactionNotificationMode = "off" | "own" | "all" | "allowlist";
9
+ export type SignalReactionLevel = "off" | "ack" | "minimal" | "extensive";
10
+ export type SignalActionConfig = {
11
+ /** Enable/disable sending reactions via message tool (default: true). */
12
+ reactions?: boolean;
13
+ };
14
+ export type SignalAccountConfig = {
15
+ /** Optional display name for this account (used in CLI/UI lists). */
16
+ name?: string;
17
+ /** Optional provider capability tags used for agent/runtime guidance. */
18
+ capabilities?: string[];
19
+ /** Markdown formatting overrides (tables). */
20
+ markdown?: MarkdownConfig;
21
+ /** Allow channel-initiated config writes (default: true). */
22
+ configWrites?: boolean;
23
+ /** If false, do not start this Signal account. Default: true. */
24
+ enabled?: boolean;
25
+ /** Optional explicit E.164 account for signal-cli. */
26
+ account?: string;
27
+ /** Optional full base URL for signal-cli HTTP daemon. */
28
+ httpUrl?: string;
29
+ /** HTTP host for signal-cli daemon (default 127.0.0.1). */
30
+ httpHost?: string;
31
+ /** HTTP port for signal-cli daemon (default 8080). */
32
+ httpPort?: number;
33
+ /** signal-cli binary path. Leave blank to auto-resolve/install the default binary where supported. */
34
+ cliPath?: string;
35
+ /** Auto-start signal-cli daemon (default: true if httpUrl not set). */
36
+ autoStart?: boolean;
37
+ /** Max time to wait for signal-cli daemon startup (ms, cap 120000). */
38
+ startupTimeoutMs?: number;
39
+ receiveMode?: "on-start" | "manual";
40
+ ignoreAttachments?: boolean;
41
+ ignoreStories?: boolean;
42
+ sendReadReceipts?: boolean;
43
+ /** Direct message access policy (default: pairing). */
44
+ dmPolicy?: DmPolicy;
45
+ allowFrom?: Array<string | number>;
46
+ /** Optional allowlist for Signal group senders (E.164). */
47
+ groupAllowFrom?: Array<string | number>;
48
+ /**
49
+ * Controls how group messages are handled:
50
+ * - "open": groups bypass allowFrom, no extra gating
51
+ * - "disabled": block all group messages
52
+ * - "allowlist": only allow group messages from senders in groupAllowFrom/allowFrom
53
+ */
54
+ groupPolicy?: GroupPolicy;
55
+ /** Max group messages to keep as history context (0 disables). */
56
+ historyLimit?: number;
57
+ /** Max DM turns to keep as history context. */
58
+ dmHistoryLimit?: number;
59
+ /** Per-DM config overrides keyed by user ID. */
60
+ dms?: Record<string, DmConfig>;
61
+ /** Outbound text chunk size (chars). Default: 4000. */
62
+ textChunkLimit?: number;
63
+ /** Chunking mode: "length" (default) splits by size; "newline" splits on every newline. */
64
+ chunkMode?: "length" | "newline";
65
+ blockStreaming?: boolean;
66
+ /** Merge streamed block replies before sending. */
67
+ blockStreamingCoalesce?: BlockStreamingCoalesceConfig;
68
+ mediaMaxMb?: number;
69
+ /** Reaction notification mode (off|own|all|allowlist). Default: own. */
70
+ reactionNotifications?: SignalReactionNotificationMode;
71
+ /** Allowlist for reaction notifications when mode is allowlist. */
72
+ reactionAllowlist?: Array<string | number>;
73
+ /** Action toggles for message tool capabilities. */
74
+ actions?: SignalActionConfig;
75
+ /**
76
+ * Controls agent reaction behavior:
77
+ * - "off": No reactions
78
+ * - "ack": Only automatic ack reactions (👀 when processing)
79
+ * - "minimal": Agent can react sparingly (default)
80
+ * - "extensive": Agent can react liberally
81
+ */
82
+ reactionLevel?: SignalReactionLevel;
83
+ /** Heartbeat visibility settings for this channel. */
84
+ heartbeat?: ChannelHeartbeatVisibilityConfig;
85
+ };
86
+ export type SignalConfig = {
87
+ /** Optional per-account Signal configuration (multi-account). */
88
+ accounts?: Record<string, SignalAccountConfig>;
89
+ } & SignalAccountConfig;
90
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACV,4BAA4B,EAC5B,gCAAgC,EAChC,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,cAAc,EACf,MAAM,eAAe,CAAC;AAMvB,MAAM,MAAM,8BAA8B,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAA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ACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,kEAAkE;IAClE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,+CAA+C;IAC/C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gDAAgD;IAChD,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IAC/B,uDAAuD;IACvD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,2FAA2F;IAC3F,SAAS,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IACjC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,mDAAmD;IACnD,sBAAsB,CAAC,EAAE,4BAA4B,CAAC;IACtD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wEAAwE;IACxE,qBAAqB,CAAC,EAAE,8BAA8B,CAAC;IACvD,mEAAmE;IACnE,iBAAiB,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IAC3C,oDAAoD;IACpD,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,mBAAmB,CAAC;IACpC,sDAAsD;IACtD,SAAS,CAAC,EAAE,gCAAgC,CAAC;CAC9C,CAAC;AAMF,MAAM,MAAM,YAAY,GAAG;IACzB,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;CAChD,GAAG,mBAAmB,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Signal ConnectorAccountManager provider.
3
+ *
4
+ * Adapts the existing multi-account scaffolding in `accounts.ts` to the
5
+ * `ConnectorAccountProvider` contract from
6
+ * `@elizaos/core/connectors/account-manager`.
7
+ *
8
+ * Source of truth for accounts is character settings (`character.settings.signal`)
9
+ * plus env-var fallbacks (SIGNAL_ACCOUNT_NUMBER, SIGNAL_HTTP_URL, SIGNAL_CLI_PATH).
10
+ * Single-account env-only deployments still surface as a `default` account.
11
+ *
12
+ * Signal pairing happens out of band via signal-cli device link / QR code (see
13
+ * `pairing-service.ts` + `setup-routes.ts`); there is no OAuth flow.
14
+ */
15
+ import type { ConnectorAccountProvider, IAgentRuntime } from "@elizaos/core";
16
+ export declare const SIGNAL_PROVIDER_ID = "signal";
17
+ export declare function createSignalConnectorAccountProvider(runtime: IAgentRuntime): ConnectorAccountProvider;
18
+ //# sourceMappingURL=connector-account-provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connector-account-provider.d.ts","sourceRoot":"","sources":["../src/connector-account-provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAIV,wBAAwB,EACxB,aAAa,EACd,MAAM,eAAe,CAAC;AASvB,eAAO,MAAM,kBAAkB,WAAW,CAAC;AA2C3C,wBAAgB,oCAAoC,CAClD,OAAO,EAAE,aAAa,GACrB,wBAAwB,CAqC1B"}
@@ -0,0 +1,13 @@
1
+ import { type Plugin } from "@elizaos/core";
2
+ declare const signalPlugin: Plugin;
3
+ export default signalPlugin;
4
+ export { DEFAULT_ACCOUNT_ID, isMultiAccountEnabled, listEnabledSignalAccounts, listSignalAccountIds, normalizeAccountId, type ResolvedSignalAccount, resolveDefaultSignalAccountId, resolveSignalAccount, type SignalAccountConfig, type SignalDmConfig, type SignalGroupConfig, type SignalMultiAccountConfig, type SignalReactionNotificationMode, } from "./accounts";
5
+ export type { SignalActionConfig, SignalConfig, SignalReactionLevel, } from "./config";
6
+ export { createSignalConnectorAccountProvider, SIGNAL_PROVIDER_ID, } from "./connector-account-provider";
7
+ export { classifySignalPairingErrorStatus, extractSignalCliProvisioningUrl, parseSignalCliAccountsOutput, type SignalPairingEvent, type SignalPairingOptions, SignalPairingSession, type SignalPairingSnapshot, type SignalPairingStatus, sanitizeAccountId as sanitizeSignalAccountId, signalAuthExists, signalLogout, } from "./pairing-service";
8
+ export { createSignalEventStream, normalizeBaseUrl, parseSignalEventData, type SignalCheckResult, type SignalRpcError, type SignalRpcOptions, type SignalRpcResponse, type SignalSseEvent, signalCheck, signalGetVersion, signalListAccounts, signalListContacts, signalListGroups, signalRpcRequest, signalSend, signalSendReaction, signalSendReadReceipt, signalSendTyping, streamSignalEvents, } from "./rpc";
9
+ export { SignalService } from "./service";
10
+ export { applySignalQrOverride, signalSetupRoutes } from "./setup-routes";
11
+ export type { ISignalService, SignalAttachment, SignalContact, SignalEventPayloadMap, SignalGroup, SignalGroupMember, SignalMessage, SignalMessageReceivedPayload, SignalMessageSendOptions, SignalMessageSentPayload, SignalQuote, SignalReactionInfo, SignalReactionPayload, SignalRecentMessage, SignalSettings, } from "./types";
12
+ export { getSignalContactDisplayName, isValidE164, isValidGroupId, isValidUuid, MAX_SIGNAL_ATTACHMENT_SIZE, MAX_SIGNAL_MESSAGE_LENGTH, normalizeE164, SIGNAL_SERVICE_NAME, SignalApiError, SignalClientNotAvailableError, SignalConfigurationError, SignalEventTypes, SignalPluginError, SignalServiceNotInitializedError, } from "./types";
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0D,KAAK,MAAM,EAAE,MAAM,eAAe,CAAC;AAapG,QAAA,MAAM,YAAY,EAAE,MAyFnB,CAAC;AAEF,eAAe,YAAY,CAAC;AAG5B,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,yBAAyB,EACzB,oBAAoB,EACpB,kBAAkB,EAClB,KAAK,qBAAqB,EAC1B,6BAA6B,EAC7B,oBAAoB,EACpB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,8BAA8B,GACpC,MAAM,YAAY,CAAC;AAEpB,YAAY,EACV,kBAAkB,EAClB,YAAY,EACZ,mBAAmB,GACpB,MAAM,UAAU,CAAC;AAElB,OAAO,EACL,oCAAoC,EACpC,kBA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