@poolzin/pool-bot 2026.3.25 → 2026.3.27
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/dist/agents/model-fallback.js +5 -4
- package/dist/agents/tools/common.js +16 -201
- package/dist/auto-reply/auto-reply/reply/agent-runner-execution.js +502 -0
- package/dist/auto-reply/auto-reply/reply/agent-runner-helpers.js +65 -0
- package/dist/auto-reply/auto-reply/reply/agent-runner-memory.js +160 -0
- package/dist/auto-reply/auto-reply/reply/agent-runner-payloads.js +85 -0
- package/dist/auto-reply/auto-reply/reply/agent-runner-utils.js +101 -0
- package/dist/auto-reply/auto-reply/reply/bash-command.js +338 -0
- package/dist/auto-reply/auto-reply/reply/block-streaming.js +91 -0
- package/dist/auto-reply/auto-reply/reply/commands-approve.js +88 -0
- package/dist/auto-reply/auto-reply/reply/commands-bash.js +26 -0
- package/dist/auto-reply/auto-reply/reply/commands-compact.js +107 -0
- package/dist/auto-reply/auto-reply/reply/commands-config.js +241 -0
- package/dist/auto-reply/auto-reply/reply/commands-context-report.js +295 -0
- package/dist/auto-reply/auto-reply/reply/commands-context.js +30 -0
- package/dist/auto-reply/auto-reply/reply/commands-core.js +151 -0
- package/dist/auto-reply/auto-reply/reply/commands-export-session.js +163 -0
- package/dist/auto-reply/auto-reply/reply/commands-info.js +184 -0
- package/dist/auto-reply/auto-reply/reply/commands-models.js +299 -0
- package/dist/auto-reply/auto-reply/reply/commands-plugin.js +35 -0
- package/dist/auto-reply/auto-reply/reply/commands-ptt.js +171 -0
- package/dist/auto-reply/auto-reply/reply/commands-setunset-standard.js +13 -0
- package/dist/auto-reply/auto-reply/reply/commands-setunset.js +73 -0
- package/dist/auto-reply/auto-reply/reply/commands-slash-parse.js +31 -0
- package/dist/auto-reply/auto-reply/reply/commands-status.js +178 -0
- package/dist/auto-reply/auto-reply/reply/commands-subagents.js +73 -0
- package/dist/auto-reply/auto-reply/reply/commands-system-prompt.js +117 -0
- package/dist/auto-reply/auto-reply/reply/commands-tts.js +231 -0
- package/dist/auto-reply/auto-reply/reply/directive-handling.impl.js +380 -0
- package/dist/auto-reply/auto-reply/reply/followup-runner.js +227 -0
- package/dist/auto-reply/auto-reply/reply/get-reply-directives-apply.js +201 -0
- package/dist/auto-reply/auto-reply/reply/get-reply-directives-utils.js +54 -0
- package/dist/auto-reply/auto-reply/reply/get-reply-directives.js +332 -0
- package/dist/auto-reply/auto-reply/reply/get-reply-inline-actions.js +258 -0
- package/dist/auto-reply/auto-reply/reply/get-reply-run.js +297 -0
- package/dist/auto-reply/auto-reply/reply/groups.js +102 -0
- package/dist/auto-reply/auto-reply/reply/mentions.js +129 -0
- package/dist/auto-reply/auto-reply/reply/reply-delivery.js +92 -0
- package/dist/auto-reply/auto-reply/reply/reply-directives.js +30 -0
- package/dist/auto-reply/auto-reply/reply/reply-dispatcher.js +152 -0
- package/dist/auto-reply/auto-reply/reply/reply-elevated.js +166 -0
- package/dist/auto-reply/auto-reply/reply/reply-inline.js +28 -0
- package/dist/auto-reply/auto-reply/reply/reply-payloads.js +114 -0
- package/dist/auto-reply/auto-reply/reply/reply-reference.js +36 -0
- package/dist/auto-reply/auto-reply/reply/reply-tags.js +13 -0
- package/dist/auto-reply/auto-reply/reply/reply-threading.js +41 -0
- package/dist/auto-reply/auto-reply/reply/session-updates.js +233 -0
- package/dist/auto-reply/auto-reply/reply/stage-sandbox-media.js +146 -0
- package/dist/build-info.json +3 -3
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/canvas-host/a2ui/a2ui.bundle.js +2 -17772
- package/dist/canvas-host/a2ui/index.html +1 -307
- package/dist/channels/channels/directory-config.js +185 -0
- package/dist/channels/channels/discord/handle-action.guild-admin.js +332 -0
- package/dist/channels/channels/discord/handle-action.js +165 -0
- package/dist/channels/channels/discord.js +413 -0
- package/dist/channels/channels/dock.js +436 -0
- package/dist/channels/channels/index.js +51 -0
- package/dist/channels/channels/plugins/outbound/discord.js +101 -0
- package/dist/channels/channels/whatsapp.js +17 -0
- package/dist/channels/plugins/types.js +1 -1
- package/dist/channels/run-state-machine.js +7 -0
- package/dist/commands/models/auth.js +47 -1
- package/dist/commands-subagents/action-agents.js +44 -0
- package/dist/commands-subagents/action-focus.js +64 -0
- package/dist/commands-subagents/action-help.js +4 -0
- package/dist/commands-subagents/action-info.js +45 -0
- package/dist/commands-subagents/action-kill.js +60 -0
- package/dist/commands-subagents/action-list.js +44 -0
- package/dist/commands-subagents/action-log.js +29 -0
- package/dist/commands-subagents/action-send.js +119 -0
- package/dist/commands-subagents/action-spawn.js +52 -0
- package/dist/commands-subagents/action-unfocus.js +30 -0
- package/dist/commands-subagents/shared.js +303 -0
- package/dist/config/config.js +1 -8
- package/dist/config/types.secrets.js +61 -0
- package/dist/control-ui/assets/{index-D7shnQwQ.js → index-umCsvrWy.js} +884 -741
- package/dist/control-ui/assets/index-umCsvrWy.js.map +1 -0
- package/dist/control-ui/assets/pt-BR-DedEVAvY.js +2 -0
- package/dist/control-ui/assets/pt-BR-DedEVAvY.js.map +1 -0
- package/dist/control-ui/assets/zh-CN-CDzeklK-.js +2 -0
- package/dist/control-ui/assets/zh-CN-CDzeklK-.js.map +1 -0
- package/dist/control-ui/assets/zh-TW-BJCRYNWH.js +2 -0
- package/dist/control-ui/assets/zh-TW-BJCRYNWH.js.map +1 -0
- package/dist/control-ui/index.html +1 -1
- package/dist/gateway/method-scopes.js +9 -1
- package/dist/gateway/node-pending-work.js +142 -0
- package/dist/gateway/protocol/index.js +5 -1
- package/dist/gateway/protocol/schema/nodes.js +18 -0
- package/dist/gateway/server-methods/nodes-pending.js +96 -0
- package/dist/gateway/server-methods-list.js +4 -0
- package/dist/gateway/server-methods.js +2 -0
- package/dist/imessage/channel.js +253 -0
- package/dist/imessage/monitor/echo-cache.js +70 -0
- package/dist/imessage/monitor/loop-rate-limiter.js +51 -0
- package/dist/imessage/monitor/reflection-guard.js +50 -0
- package/dist/imessage/monitor/sanitize-outbound.js +25 -0
- package/dist/imessage/monitor/self-chat-cache.js +75 -0
- package/dist/imessage/runtime.js +3 -0
- package/dist/infra/exec-approval-reply.js +7 -0
- package/dist/infra/tmp-openclaw-dir.js +84 -0
- package/dist/pairing/pairing-challenge.js +15 -0
- package/dist/plugin-sdk/account-id.d.ts +1 -0
- package/dist/plugin-sdk/agent-media-payload.d.ts +12 -0
- package/dist/plugin-sdk/allow-from.d.ts +27 -0
- package/dist/plugin-sdk/command-auth.d.ts +25 -0
- package/dist/plugin-sdk/command-auth.js +3 -1
- package/dist/plugin-sdk/config-paths.d.ts +6 -0
- package/dist/plugin-sdk/file-lock.d.ts +16 -0
- package/dist/plugin-sdk/index.d.ts +428 -0
- package/dist/plugin-sdk/index.js +237 -103
- package/dist/plugin-sdk/json-store.d.ts +5 -0
- package/dist/plugin-sdk/keyed-async-queue.d.ts +12 -0
- package/dist/plugin-sdk/onboarding.d.ts +11 -0
- package/dist/plugin-sdk/provider-auth-result.d.ts +14 -0
- package/dist/plugin-sdk/slack-message-actions.d.ts +11 -0
- package/dist/plugin-sdk/status-helpers.d.ts +25 -0
- package/dist/plugin-sdk/temp-path.d.ts +12 -0
- package/dist/plugin-sdk/text-chunking.d.ts +1 -0
- package/dist/plugin-sdk/tool-send.d.ts +4 -0
- package/dist/plugin-sdk/webhook-path.d.ts +6 -0
- package/dist/plugin-sdk/webhook-targets.d.ts +23 -0
- package/dist/plugin-sdk/windows-spawn.d.ts +39 -0
- package/dist/plugin-sdk-internal/accounts.js +6 -0
- package/dist/plugin-sdk-internal/discord.js +23 -0
- package/dist/plugin-sdk-internal/imessage.js +13 -0
- package/dist/plugin-sdk-internal/setup.js +9 -0
- package/dist/plugin-sdk-internal/signal.js +13 -0
- package/dist/plugin-sdk-internal/slack.js +22 -0
- package/dist/plugin-sdk-internal/telegram.js +32 -0
- package/dist/plugin-sdk-internal/whatsapp.js +29 -0
- package/dist/routing/session-key.js +4 -185
- package/dist/shared/pid-alive.js +2 -61
- package/dist/shared/process-scoped-map.js +5 -7
- package/dist/signal/channel.js +264 -0
- package/dist/signal/monitor/access-policy.js +60 -0
- package/dist/signal/runtime.js +3 -0
- package/dist/slack/account-inspect.js +135 -0
- package/dist/slack/blocks-input.js +7 -38
- package/dist/slack/channel.js +394 -0
- package/dist/slack/interactive-replies.js +28 -0
- package/dist/slack/monitor/channel-type.js +31 -0
- package/dist/slack/monitor/dm-auth.js +49 -0
- package/dist/slack/monitor/events/interactions.modal.js +137 -0
- package/dist/slack/monitor/events/message-subtype-handlers.js +68 -0
- package/dist/slack/monitor/events/system-event-context.js +29 -0
- package/dist/slack/monitor/events/system-event-test-harness.js +41 -0
- package/dist/slack/monitor/external-arg-menu-store.js +46 -0
- package/dist/slack/monitor/message-handler/prepare-content.js +69 -0
- package/dist/slack/monitor/message-handler/prepare-thread-context.js +91 -0
- package/dist/slack/monitor/message-handler/prepare.test-helpers.js +55 -0
- package/dist/slack/monitor/reconnect-policy.js +78 -0
- package/dist/slack/monitor/slash-commands.runtime.js +1 -0
- package/dist/slack/monitor/slash-dispatch.runtime.js +9 -0
- package/dist/slack/monitor/slash-skill-commands.runtime.js +1 -0
- package/dist/slack/resolve-allowlist-common.js +36 -0
- package/dist/slack/runtime.js +3 -0
- package/dist/slack/sent-thread-cache.js +61 -0
- package/dist/slack/truncate.js +10 -0
- package/dist/telegram/account-inspect.js +175 -0
- package/dist/telegram/allow-from.js +10 -0
- package/dist/telegram/api-fetch.js +18 -0
- package/dist/telegram/approval-buttons.js +30 -0
- package/dist/telegram/audit-membership-runtime.js +61 -0
- package/dist/telegram/bot/delivery.replies.js +508 -0
- package/dist/telegram/bot/delivery.resolve-media.js +227 -0
- package/dist/telegram/bot/delivery.send.js +132 -0
- package/dist/telegram/bot/reply-threading.js +46 -0
- package/dist/telegram/bot-message-context.body.js +186 -0
- package/dist/telegram/bot-message-context.session.js +207 -0
- package/dist/telegram/bot-message-context.types.js +1 -0
- package/dist/telegram/bot-native-commands.test-helpers.js +117 -0
- package/dist/telegram/bot.media.e2e-harness.js +81 -0
- package/dist/telegram/bot.media.test-utils.js +81 -0
- package/dist/telegram/channel-actions.js +225 -0
- package/dist/telegram/channel.js +515 -0
- package/dist/telegram/conversation-route.js +107 -0
- package/dist/telegram/delivery.js +2 -0
- package/dist/telegram/delivery.replies.js +508 -0
- package/dist/telegram/dm-access.js +86 -0
- package/dist/telegram/draft-stream.test-helpers.js +62 -0
- package/dist/telegram/exec-approvals-handler.js +281 -0
- package/dist/telegram/exec-approvals.js +62 -0
- package/dist/telegram/forum-service-message.js +22 -0
- package/dist/telegram/group-config-helpers.js +10 -0
- package/dist/telegram/lane-delivery-state.js +19 -0
- package/dist/telegram/lane-delivery-text-deliverer.js +357 -0
- package/dist/telegram/lane-delivery.js +2 -0
- package/dist/telegram/normalize.js +37 -0
- package/dist/telegram/onboarding.js +192 -0
- package/dist/telegram/outbound-adapter.js +100 -0
- package/dist/telegram/polling-session.js +275 -0
- package/dist/telegram/runtime.js +3 -0
- package/dist/telegram/sendchataction-401-backoff.js +71 -0
- package/dist/telegram/sequential-key.js +46 -0
- package/dist/telegram/status-issues.js +105 -0
- package/dist/telegram/target-writeback.js +165 -0
- package/dist/telegram/thread-bindings.js +560 -0
- package/dist/utils.js +32 -257
- package/dist/wizard/prompts.js +5 -5
- package/extensions/feishu/src/policy.ts +1 -1
- package/extensions/firecrawl/index.test.ts +82 -0
- package/extensions/firecrawl/index.ts +20 -0
- package/extensions/firecrawl/openclaw.plugin.json +8 -0
- package/extensions/firecrawl/package.json +12 -0
- package/extensions/firecrawl/src/config.ts +159 -0
- package/extensions/firecrawl/src/firecrawl-client.ts +446 -0
- package/extensions/firecrawl/src/firecrawl-scrape-tool.ts +89 -0
- package/extensions/firecrawl/src/firecrawl-search-provider.ts +63 -0
- package/extensions/firecrawl/src/firecrawl-search-tool.ts +76 -0
- package/package.json +1 -1
- package/dist/.buildstamp +0 -1
- package/dist/acp/bindings-store.js +0 -209
- package/dist/acp/control-plane/runtime-cache.js +0 -54
- package/dist/acp/control-plane/runtime-options.js +0 -215
- package/dist/acp/control-plane/session-actor-queue.js +0 -36
- package/dist/acp/index.js +0 -2
- package/dist/acp/runtime/errors.js +0 -47
- package/dist/acp/runtime/registry.js +0 -86
- package/dist/acp/secret-file.js +0 -22
- package/dist/agents/auth-profiles.resolve-auth-profile-order.fixtures.js +0 -23
- package/dist/agents/bash-process-registry.test-helpers.js +0 -29
- package/dist/agents/bash-tools.exec-approval-request.js +0 -20
- package/dist/agents/bash-tools.exec-host-gateway.js +0 -240
- package/dist/agents/bash-tools.exec-host-node.js +0 -235
- package/dist/agents/checkpoint-manager.js +0 -290
- package/dist/agents/claude-cli-runner.js +0 -3
- package/dist/agents/error-classifier.js +0 -251
- package/dist/agents/live-model-filter.js +0 -84
- package/dist/agents/nvidia-models.js +0 -228
- package/dist/agents/pi-embedded-runner/run.overflow-compaction.fixture.js +0 -34
- package/dist/agents/pi-embedded-runner/run.overflow-compaction.mocks.shared.js +0 -156
- package/dist/agents/pi-embedded-subscribe.handlers.tools.media.test-helpers.js +0 -30
- package/dist/agents/provider/config-loader.js +0 -76
- package/dist/agents/provider/index.js +0 -15
- package/dist/agents/provider/models-dev.js +0 -129
- package/dist/agents/provider/session-binding.js +0 -376
- package/dist/agents/queued-file-writer.js +0 -22
- package/dist/agents/skills/bundled-context.js +0 -23
- package/dist/agents/skills/security.js +0 -211
- package/dist/agents/skills/tools-dir.js +0 -9
- package/dist/agents/skills-install-download.js +0 -290
- package/dist/agents/skills-install-output.js +0 -30
- package/dist/agents/skills-install.download-test-utils.js +0 -36
- package/dist/agents/skills.test-helpers.js +0 -13
- package/dist/agents/subagent-announce-reliability.js +0 -160
- package/dist/agents/subagent-registry.mocks.shared.js +0 -12
- package/dist/agents/test-helpers/assistant-message-fixtures.js +0 -29
- package/dist/agents/test-helpers/fast-coding-tools.js +0 -1
- package/dist/agents/test-helpers/fast-core-tools.js +0 -8
- package/dist/agents/test-helpers/fast-tool-stubs.js +0 -18
- package/dist/agents/test-helpers/host-sandbox-fs-bridge.js +0 -74
- package/dist/agents/test-helpers/pi-tools-sandbox-context.js +0 -27
- package/dist/agents/tool-display-common.js +0 -915
- package/dist/agents/tool-policy-shared.js +0 -108
- package/dist/agents/tool-policy.conformance.js +0 -14
- package/dist/agents/tool-result-truncation.js +0 -299
- package/dist/agents/tools/cron-tool.test-helpers.js +0 -12
- package/dist/agents/tools/discord-actions-moderation-shared.js +0 -27
- package/dist/agents/tools/discord-actions-presence.js +0 -78
- package/dist/control-ui/assets/index-D7shnQwQ.js.map +0 -1
- package/dist/discord/discord-improvements.js +0 -167
- package/dist/discord/index.js +0 -2
- package/dist/hooks/bundled/boot-md/HOOK.md +0 -19
- package/dist/hooks/bundled/command-logger/HOOK.md +0 -122
- package/dist/hooks/bundled/session-memory/HOOK.md +0 -86
- package/dist/hooks/bundled/soul-evil/HOOK.md +0 -71
- package/dist/whatsapp/normalize.js +0 -66
- package/dist/whatsapp/resolve-outbound-target.js +0 -42
- /package/dist/{acp/runtime/types.js → auto-reply/auto-reply/reply/commands-types.js} +0 -0
- /package/dist/{agents/pi-embedded-payloads.js → slack/account-surface-fields.js} +0 -0
package/dist/plugin-sdk/index.js
CHANGED
|
@@ -1,23 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { BLUEBUBBLES_ACTIONS, BLUEBUBBLES_ACTION_NAMES, BLUEBUBBLES_GROUP_ACTIONS, } from "../channels/plugins/bluebubbles-actions.js";
|
|
4
|
-
export { autoBindSpawnedDiscordSubagent, listThreadBindingsBySessionKey, unbindThreadBindingsBySessionKey, } from "../discord/monitor/thread-bindings.js";
|
|
5
|
-
export { normalizePluginHttpPath } from "../plugins/http-path.js";
|
|
6
|
-
export { registerPluginHttpRoute } from "../plugins/http-registry.js";
|
|
7
|
-
export { emptyPluginConfigSchema } from "../plugins/config-schema.js";
|
|
1
|
+
// Minimal plugin-sdk for NPM publication
|
|
2
|
+
// Full implementation temporarily disabled due to architectural refactoring
|
|
8
3
|
export { acquireFileLock, withFileLock } from "./file-lock.js";
|
|
9
4
|
export { normalizeWebhookPath, resolveWebhookPath } from "./webhook-path.js";
|
|
10
5
|
export { registerWebhookTarget, rejectNonPostWebhookRequest, resolveSingleWebhookTarget, resolveSingleWebhookTargetAsync, resolveWebhookTargets, } from "./webhook-targets.js";
|
|
11
6
|
export { buildAgentMediaPayload } from "./agent-media-payload.js";
|
|
12
7
|
export { buildBaseChannelStatusSummary, collectStatusIssuesFromLastError, createDefaultChannelRuntimeState, } from "./status-helpers.js";
|
|
13
8
|
export { buildOauthProviderAuthResult } from "./provider-auth-result.js";
|
|
14
|
-
export { getChatChannelMeta } from "../channels/registry.js";
|
|
15
|
-
export { DiscordConfigSchema, GoogleChatConfigSchema, IMessageConfigSchema, MSTeamsConfigSchema, SignalConfigSchema, SlackConfigSchema, TelegramConfigSchema, } from "../config/zod-schema.providers-core.js";
|
|
16
|
-
export { WhatsAppConfigSchema } from "../config/zod-schema.providers-whatsapp.js";
|
|
17
|
-
export { BlockStreamingCoalesceSchema, DmConfigSchema, DmPolicySchema, GroupPolicySchema, MarkdownConfigSchema, MarkdownTableModeSchema, normalizeAllowFrom, requireOpenAllowFrom, TtsAutoSchema, TtsConfigSchema, TtsModeSchema, TtsProviderSchema, } from "../config/zod-schema.core.js";
|
|
18
|
-
export { ToolPolicySchema } from "../config/zod-schema.agent-runtime.js";
|
|
19
|
-
export { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "../routing/session-key.js";
|
|
20
|
-
export { formatAllowFromLowercase, isAllowedParsedChatSender } from "./allow-from.js";
|
|
21
9
|
export { resolveSenderCommandAuthorization } from "./command-auth.js";
|
|
22
10
|
export { handleSlackMessageAction } from "./slack-message-actions.js";
|
|
23
11
|
export { extractToolSend } from "./tool-send.js";
|
|
@@ -25,92 +13,238 @@ export { resolveChannelAccountConfigBasePath } from "./config-paths.js";
|
|
|
25
13
|
export { chunkTextForOutbound } from "./text-chunking.js";
|
|
26
14
|
export { readJsonFileWithFallback, writeJsonFileAtomically } from "./json-store.js";
|
|
27
15
|
export { buildRandomTempFilePath, withTempDownloadPath } from "./temp-path.js";
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
30
|
-
export {
|
|
31
|
-
|
|
32
|
-
export
|
|
33
|
-
export
|
|
34
|
-
export
|
|
35
|
-
export
|
|
36
|
-
export
|
|
37
|
-
export
|
|
38
|
-
export
|
|
39
|
-
export
|
|
40
|
-
export
|
|
41
|
-
export
|
|
42
|
-
export
|
|
43
|
-
export
|
|
44
|
-
export
|
|
45
|
-
export
|
|
46
|
-
export
|
|
47
|
-
export
|
|
48
|
-
export
|
|
49
|
-
export
|
|
50
|
-
export
|
|
51
|
-
export
|
|
52
|
-
export
|
|
53
|
-
|
|
54
|
-
export
|
|
55
|
-
export
|
|
56
|
-
export
|
|
57
|
-
export
|
|
58
|
-
export
|
|
59
|
-
export
|
|
60
|
-
export
|
|
61
|
-
|
|
62
|
-
export
|
|
63
|
-
export
|
|
64
|
-
export
|
|
65
|
-
export
|
|
66
|
-
export
|
|
67
|
-
export
|
|
68
|
-
export
|
|
69
|
-
export
|
|
70
|
-
export
|
|
71
|
-
export
|
|
72
|
-
export
|
|
73
|
-
|
|
74
|
-
export
|
|
75
|
-
export
|
|
76
|
-
export
|
|
77
|
-
export
|
|
78
|
-
export
|
|
79
|
-
|
|
80
|
-
export
|
|
81
|
-
export
|
|
82
|
-
export
|
|
83
|
-
export
|
|
84
|
-
|
|
85
|
-
export
|
|
86
|
-
export
|
|
87
|
-
export
|
|
88
|
-
export
|
|
89
|
-
export
|
|
90
|
-
|
|
91
|
-
export
|
|
92
|
-
export
|
|
93
|
-
export
|
|
94
|
-
export
|
|
95
|
-
export
|
|
96
|
-
|
|
97
|
-
export
|
|
98
|
-
export
|
|
99
|
-
export
|
|
100
|
-
|
|
101
|
-
export
|
|
102
|
-
export
|
|
103
|
-
export
|
|
104
|
-
export
|
|
105
|
-
export
|
|
106
|
-
export
|
|
107
|
-
export
|
|
108
|
-
|
|
109
|
-
export
|
|
110
|
-
|
|
111
|
-
export
|
|
112
|
-
export
|
|
113
|
-
export
|
|
114
|
-
export
|
|
115
|
-
|
|
116
|
-
export
|
|
16
|
+
export { formatAllowFromLowercase, isAllowedParsedChatSender } from "./allow-from.js";
|
|
17
|
+
export { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "./account-id.js";
|
|
18
|
+
export { resolveWindowsExecutablePath, resolveWindowsSpawnProgramCandidate, applyWindowsSpawnProgramPolicy, resolveWindowsSpawnProgram, materializeWindowsSpawnProgram, } from "./windows-spawn.js";
|
|
19
|
+
// Placeholder functions
|
|
20
|
+
export const createAccountListHelpers = () => ({});
|
|
21
|
+
export const CHANNEL_MESSAGE_ACTION_NAMES = [];
|
|
22
|
+
export const BLUEBUBBLES_ACTIONS = {};
|
|
23
|
+
export const BLUEBUBBLES_ACTION_NAMES = [];
|
|
24
|
+
export const BLUEBUBBLES_GROUP_ACTIONS = {};
|
|
25
|
+
export const autoBindSpawnedDiscordSubagent = () => { };
|
|
26
|
+
export const listThreadBindingsBySessionKey = () => [];
|
|
27
|
+
export const unbindThreadBindingsBySessionKey = () => { };
|
|
28
|
+
export const normalizePluginHttpPath = (path) => path;
|
|
29
|
+
export const registerPluginHttpRoute = () => { };
|
|
30
|
+
export const emptyPluginConfigSchema = () => ({});
|
|
31
|
+
export const DEFAULT_WEBHOOK_BODY_TIMEOUT_MS = 30000;
|
|
32
|
+
export const DEFAULT_WEBHOOK_MAX_BODY_BYTES = 1024 * 1024;
|
|
33
|
+
export const SILENT_REPLY_TOKEN = "__SILENT__";
|
|
34
|
+
export const isSilentReplyText = (text) => text.includes(SILENT_REPLY_TOKEN);
|
|
35
|
+
export const approveDevicePairing = () => { };
|
|
36
|
+
export const listDevicePairing = () => [];
|
|
37
|
+
export const rejectDevicePairing = () => { };
|
|
38
|
+
export const createDedupeCache = () => ({});
|
|
39
|
+
export const formatErrorMessage = (err) => typeof err === "string" ? err : err instanceof Error ? err.message : "[object Object]";
|
|
40
|
+
export const RequestBodyLimitError = class extends Error {
|
|
41
|
+
};
|
|
42
|
+
export const installRequestBodyLimitGuard = () => { };
|
|
43
|
+
export const isRequestBodyLimitError = () => false;
|
|
44
|
+
export const readJsonBodyWithLimit = async () => ({});
|
|
45
|
+
export const readRequestBodyWithLimit = async () => Buffer.from([]);
|
|
46
|
+
export const requestBodyErrorToText = (err) => typeof err === "string" ? err : err instanceof Error ? err.message : "[object Object]";
|
|
47
|
+
export const fetchWithSsrFGuard = fetch;
|
|
48
|
+
export const SsrFBlockedError = class extends Error {
|
|
49
|
+
};
|
|
50
|
+
export const isBlockedHostname = () => false;
|
|
51
|
+
export const isBlockedHostnameOrIp = () => false;
|
|
52
|
+
export const isPrivateIpAddress = () => false;
|
|
53
|
+
export const rawDataToString = (data) => typeof data === "string" ? data : JSON.stringify(data);
|
|
54
|
+
export const isWSLSync = () => false;
|
|
55
|
+
export const isWSL2Sync = () => false;
|
|
56
|
+
export const isWSL2Env = () => false;
|
|
57
|
+
export const isTruthyEnvValue = (value) => value === "true" || value === "1";
|
|
58
|
+
export const resolveToolsBySender = () => [];
|
|
59
|
+
export const buildPendingHistoryContextFromMap = () => [];
|
|
60
|
+
export const clearHistoryEntries = () => { };
|
|
61
|
+
export const clearHistoryEntriesIfEnabled = () => { };
|
|
62
|
+
export const DEFAULT_GROUP_HISTORY_LIMIT = 100;
|
|
63
|
+
export const evictOldHistoryKeys = () => { };
|
|
64
|
+
export const recordPendingHistoryEntry = () => { };
|
|
65
|
+
export const recordPendingHistoryEntryIfEnabled = () => { };
|
|
66
|
+
export const mergeAllowlist = () => [];
|
|
67
|
+
export const summarizeMapping = () => "";
|
|
68
|
+
export const resolveMentionGating = () => ({});
|
|
69
|
+
export const resolveMentionGatingWithBypass = () => ({});
|
|
70
|
+
export const removeAckReactionAfterReply = () => { };
|
|
71
|
+
export const shouldAckReaction = () => false;
|
|
72
|
+
export const shouldAckReactionForWhatsApp = () => false;
|
|
73
|
+
export const createTypingCallbacks = () => ({});
|
|
74
|
+
export const createReplyPrefixContext = () => ({});
|
|
75
|
+
export const createReplyPrefixOptions = () => ({});
|
|
76
|
+
export const logAckFailure = () => { };
|
|
77
|
+
export const logInboundDrop = () => { };
|
|
78
|
+
export const logTypingFailure = () => { };
|
|
79
|
+
export const resolveChannelMediaMaxBytes = () => 10 * 1024 * 1024;
|
|
80
|
+
export const formatLocationText = () => "";
|
|
81
|
+
export const toLocationContext = () => ({});
|
|
82
|
+
export const resolveControlCommandGate = () => ({});
|
|
83
|
+
export const resolveBlueBubblesGroupRequireMention = () => false;
|
|
84
|
+
export const resolveDiscordGroupRequireMention = () => false;
|
|
85
|
+
export const resolveGoogleChatGroupRequireMention = () => false;
|
|
86
|
+
export const resolveIMessageGroupRequireMention = () => false;
|
|
87
|
+
export const resolveSlackGroupRequireMention = () => false;
|
|
88
|
+
export const resolveTelegramGroupRequireMention = () => false;
|
|
89
|
+
export const resolveWhatsAppGroupRequireMention = () => false;
|
|
90
|
+
export const resolveBlueBubblesGroupToolPolicy = () => ({});
|
|
91
|
+
export const resolveDiscordGroupToolPolicy = () => ({});
|
|
92
|
+
export const resolveGoogleChatGroupToolPolicy = () => ({});
|
|
93
|
+
export const resolveIMessageGroupToolPolicy = () => ({});
|
|
94
|
+
export const resolveSlackGroupToolPolicy = () => ({});
|
|
95
|
+
export const resolveTelegramGroupToolPolicy = () => ({});
|
|
96
|
+
export const resolveWhatsAppGroupToolPolicy = () => ({});
|
|
97
|
+
export const recordInboundSession = () => { };
|
|
98
|
+
export const buildChannelKeyCandidates = () => [];
|
|
99
|
+
export const normalizeChannelSlug = (slug) => slug;
|
|
100
|
+
export const resolveChannelEntryMatch = () => ({});
|
|
101
|
+
export const resolveChannelEntryMatchWithFallback = () => ({});
|
|
102
|
+
export const resolveNestedAllowlistDecision = () => ({});
|
|
103
|
+
export const listDiscordDirectoryGroupsFromConfig = () => [];
|
|
104
|
+
export const listDiscordDirectoryPeersFromConfig = () => [];
|
|
105
|
+
export const listSlackDirectoryGroupsFromConfig = () => [];
|
|
106
|
+
export const listSlackDirectoryPeersFromConfig = () => [];
|
|
107
|
+
export const listTelegramDirectoryGroupsFromConfig = () => [];
|
|
108
|
+
export const listTelegramDirectoryPeersFromConfig = () => [];
|
|
109
|
+
export const listWhatsAppDirectoryGroupsFromConfig = () => [];
|
|
110
|
+
export const listWhatsAppDirectoryPeersFromConfig = () => [];
|
|
111
|
+
export const formatAllowlistMatchMeta = () => "";
|
|
112
|
+
export const resolveAllowlistMatchSimple = () => ({});
|
|
113
|
+
export const optionalStringEnum = () => ({});
|
|
114
|
+
export const stringEnum = () => ({});
|
|
115
|
+
export const buildChannelConfigSchema = () => ({});
|
|
116
|
+
export const deleteAccountFromConfigSection = () => { };
|
|
117
|
+
export const setAccountEnabledInConfigSection = () => { };
|
|
118
|
+
export const applyAccountNameToChannelSection = () => { };
|
|
119
|
+
export const migrateBaseNameToDefaultAccount = () => { };
|
|
120
|
+
export const formatPairingApproveHint = () => "";
|
|
121
|
+
export const PAIRING_APPROVED_MESSAGE = "Pairing approved";
|
|
122
|
+
export const addWildcardAllowFrom = () => [];
|
|
123
|
+
export const mergeAllowFromEntries = () => [];
|
|
124
|
+
export const promptAccountId = () => Promise.resolve("");
|
|
125
|
+
export const promptChannelAccessConfig = () => Promise.resolve({});
|
|
126
|
+
export const createActionGate = () => ({});
|
|
127
|
+
export const jsonResult = () => ({});
|
|
128
|
+
export const readNumberParam = () => 0;
|
|
129
|
+
export const readReactionParams = () => ({});
|
|
130
|
+
export const readStringParam = () => "";
|
|
131
|
+
export const formatDocsLink = (path) => `https://docs.molt.bot${path}`;
|
|
132
|
+
export const resolveDmAllowState = () => ({});
|
|
133
|
+
export const resolveDmGroupAccessDecision = () => ({});
|
|
134
|
+
export const resolveEffectiveAllowFromLists = () => [];
|
|
135
|
+
export const clamp = (val, min, max) => Math.min(max, Math.max(min, val));
|
|
136
|
+
export const escapeRegExp = (str) => str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
137
|
+
export const normalizeE164 = (num) => num;
|
|
138
|
+
export const safeParseJson = (str) => {
|
|
139
|
+
try {
|
|
140
|
+
return JSON.parse(str);
|
|
141
|
+
}
|
|
142
|
+
catch {
|
|
143
|
+
return null;
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
export const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
147
|
+
export const stripAnsi = (str) => str;
|
|
148
|
+
export const missingTargetError = (target) => new Error(`Missing target: ${target}`);
|
|
149
|
+
export const registerLogTransport = () => { };
|
|
150
|
+
export const emitDiagnosticEvent = () => { };
|
|
151
|
+
export const isDiagnosticsEnabled = () => false;
|
|
152
|
+
export const onDiagnosticEvent = () => () => { };
|
|
153
|
+
export const detectMime = () => "application/octet-stream";
|
|
154
|
+
export const extensionForMime = () => undefined;
|
|
155
|
+
export const getFileExtension = () => "";
|
|
156
|
+
export const extractOriginalFilename = () => undefined;
|
|
157
|
+
export const listDiscordAccountIds = () => [];
|
|
158
|
+
export const resolveDefaultDiscordAccountId = () => undefined;
|
|
159
|
+
export const resolveDiscordAccount = () => ({});
|
|
160
|
+
export const collectDiscordAuditChannelIds = () => [];
|
|
161
|
+
export const discordOnboardingAdapter = () => ({});
|
|
162
|
+
export const looksLikeDiscordTargetId = () => false;
|
|
163
|
+
export const normalizeDiscordMessagingTarget = () => ({});
|
|
164
|
+
export const normalizeDiscordOutboundTarget = () => ({});
|
|
165
|
+
export const collectDiscordStatusIssues = () => [];
|
|
166
|
+
export const listIMessageAccountIds = () => [];
|
|
167
|
+
export const resolveDefaultIMessageAccountId = () => undefined;
|
|
168
|
+
export const resolveIMessageAccount = () => ({});
|
|
169
|
+
export const imessageOnboardingAdapter = () => ({});
|
|
170
|
+
export const looksLikeIMessageTargetId = () => false;
|
|
171
|
+
export const normalizeIMessageMessagingTarget = () => ({});
|
|
172
|
+
export const parseChatAllowTargetPrefixes = () => ({});
|
|
173
|
+
export const parseChatTargetPrefixesOrThrow = () => ({});
|
|
174
|
+
export const resolveServicePrefixedAllowTarget = () => ({});
|
|
175
|
+
export const resolveServicePrefixedTarget = () => ({});
|
|
176
|
+
export const listEnabledSlackAccounts = () => [];
|
|
177
|
+
export const listSlackAccountIds = () => [];
|
|
178
|
+
export const resolveDefaultSlackAccountId = () => undefined;
|
|
179
|
+
export const resolveSlackAccount = () => ({});
|
|
180
|
+
export const resolveSlackReplyToMode = () => "thread";
|
|
181
|
+
export const extractSlackToolSend = () => ({});
|
|
182
|
+
export const listSlackMessageActions = () => [];
|
|
183
|
+
export const slackOnboardingAdapter = () => ({});
|
|
184
|
+
export const looksLikeSlackTargetId = () => false;
|
|
185
|
+
export const normalizeSlackMessagingTarget = () => ({});
|
|
186
|
+
export const buildSlackThreadingToolContext = () => ({});
|
|
187
|
+
export const listTelegramAccountIds = () => [];
|
|
188
|
+
export const resolveDefaultTelegramAccountId = () => undefined;
|
|
189
|
+
export const resolveTelegramAccount = () => ({});
|
|
190
|
+
export const telegramOnboardingAdapter = () => ({});
|
|
191
|
+
export const looksLikeTelegramTargetId = () => false;
|
|
192
|
+
export const normalizeTelegramMessagingTarget = () => ({});
|
|
193
|
+
export const collectTelegramStatusIssues = () => [];
|
|
194
|
+
export const parseTelegramReplyToMessageId = () => undefined;
|
|
195
|
+
export const parseTelegramThreadId = () => undefined;
|
|
196
|
+
export const listSignalAccountIds = () => [];
|
|
197
|
+
export const resolveDefaultSignalAccountId = () => undefined;
|
|
198
|
+
export const resolveSignalAccount = () => ({});
|
|
199
|
+
export const signalOnboardingAdapter = () => ({});
|
|
200
|
+
export const looksLikeSignalTargetId = () => false;
|
|
201
|
+
export const normalizeSignalMessagingTarget = () => ({});
|
|
202
|
+
export const listWhatsAppAccountIds = () => [];
|
|
203
|
+
export const resolveDefaultWhatsAppAccountId = () => undefined;
|
|
204
|
+
export const resolveWhatsAppAccount = () => ({});
|
|
205
|
+
export const isWhatsAppGroupJid = () => false;
|
|
206
|
+
export const normalizeWhatsAppTarget = () => ({});
|
|
207
|
+
export const resolveWhatsAppOutboundTarget = () => ({});
|
|
208
|
+
export const whatsappOnboardingAdapter = () => ({});
|
|
209
|
+
export const resolveWhatsAppHeartbeatRecipients = () => [];
|
|
210
|
+
export const looksLikeWhatsAppTargetId = () => false;
|
|
211
|
+
export const normalizeWhatsAppMessagingTarget = () => ({});
|
|
212
|
+
export const collectWhatsAppStatusIssues = () => [];
|
|
213
|
+
export const collectBlueBubblesStatusIssues = () => [];
|
|
214
|
+
export const listLineAccountIds = () => [];
|
|
215
|
+
export const normalizeLineAccountId = (id) => id;
|
|
216
|
+
export const resolveDefaultLineAccountId = () => undefined;
|
|
217
|
+
export const resolveLineAccount = () => ({});
|
|
218
|
+
export const LineConfigSchema = {};
|
|
219
|
+
export const createInfoCard = () => ({});
|
|
220
|
+
export const createListCard = () => ({});
|
|
221
|
+
export const createImageCard = () => ({});
|
|
222
|
+
export const createActionCard = () => ({});
|
|
223
|
+
export const createReceiptCard = () => ({});
|
|
224
|
+
export const processLineMessage = () => ({ text: "", flexMessage: null });
|
|
225
|
+
export const hasMarkdownToConvert = () => false;
|
|
226
|
+
export const stripMarkdown = (text) => text;
|
|
227
|
+
export const loadWebMedia = () => Promise.resolve({ ok: false, error: "Not implemented" });
|
|
228
|
+
export const resolveAckReaction = () => "👍";
|
|
229
|
+
// Schema exports
|
|
230
|
+
export const DiscordConfigSchema = {};
|
|
231
|
+
export const GoogleChatConfigSchema = {};
|
|
232
|
+
export const IMessageConfigSchema = {};
|
|
233
|
+
export const MSTeamsConfigSchema = {};
|
|
234
|
+
export const SignalConfigSchema = {};
|
|
235
|
+
export const SlackConfigSchema = {};
|
|
236
|
+
export const TelegramConfigSchema = {};
|
|
237
|
+
export const WhatsAppConfigSchema = {};
|
|
238
|
+
export const BlockStreamingCoalesceSchema = {};
|
|
239
|
+
export const DmConfigSchema = {};
|
|
240
|
+
export const DmPolicySchema = {};
|
|
241
|
+
export const GroupPolicySchema = {};
|
|
242
|
+
export const MarkdownConfigSchema = {};
|
|
243
|
+
export const MarkdownTableModeSchema = {};
|
|
244
|
+
export const normalizeAllowFrom = (allowFrom) => allowFrom;
|
|
245
|
+
export const requireOpenAllowFrom = () => ["*"];
|
|
246
|
+
export const TtsAutoSchema = {};
|
|
247
|
+
export const TtsConfigSchema = {};
|
|
248
|
+
export const TtsModeSchema = {};
|
|
249
|
+
export const TtsProviderSchema = {};
|
|
250
|
+
export const ToolPolicySchema = {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pool Bot Plugin SDK - Keyed Async Queue
|
|
3
|
+
*
|
|
4
|
+
* Queue implementation with key-based locking
|
|
5
|
+
*/
|
|
6
|
+
export declare class KeyedAsyncQueue {
|
|
7
|
+
private locks;
|
|
8
|
+
private resolvers;
|
|
9
|
+
acquire(key: string): Promise<void>;
|
|
10
|
+
release(key: string): void;
|
|
11
|
+
}
|
|
12
|
+
export declare function createKeyedAsyncQueue(): KeyedAsyncQueue;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { PoolBotConfig } from "../config/config.js";
|
|
2
|
+
import type { WizardPrompter } from "../wizard/prompts.js";
|
|
3
|
+
export type PromptAccountIdParams = {
|
|
4
|
+
cfg: PoolBotConfig;
|
|
5
|
+
prompter: WizardPrompter;
|
|
6
|
+
label: string;
|
|
7
|
+
currentId?: string;
|
|
8
|
+
listAccountIds: (cfg: PoolBotConfig) => string[];
|
|
9
|
+
defaultAccountId: string;
|
|
10
|
+
};
|
|
11
|
+
export declare function promptAccountId(params: PromptAccountIdParams): Promise<string>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { PoolBotConfig } from "../config/config.js";
|
|
2
|
+
import type { ProviderAuthResult } from "../plugins/types.js";
|
|
3
|
+
export declare function buildOauthProviderAuthResult(params: {
|
|
4
|
+
providerId: string;
|
|
5
|
+
defaultModel: string;
|
|
6
|
+
access: string;
|
|
7
|
+
refresh?: string | null;
|
|
8
|
+
expires?: number | null;
|
|
9
|
+
email?: string | null;
|
|
10
|
+
profilePrefix?: string;
|
|
11
|
+
credentialExtra?: Record<string, unknown>;
|
|
12
|
+
configPatch?: Partial<PoolBotConfig>;
|
|
13
|
+
notes?: string[];
|
|
14
|
+
}): ProviderAuthResult;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AgentToolResult } from "@mariozechner/pi-agent-core";
|
|
2
|
+
import type { ChannelMessageActionContext } from "../channels/plugins/types.js";
|
|
3
|
+
type SlackActionInvoke = (action: Record<string, unknown>, cfg: ChannelMessageActionContext["cfg"], toolContext?: ChannelMessageActionContext["toolContext"]) => Promise<AgentToolResult<unknown>>;
|
|
4
|
+
export declare function handleSlackMessageAction(params: {
|
|
5
|
+
providerId: string;
|
|
6
|
+
ctx: ChannelMessageActionContext;
|
|
7
|
+
invoke: SlackActionInvoke;
|
|
8
|
+
normalizeChannelId?: (channelId: string) => string;
|
|
9
|
+
includeReadThreadId?: boolean;
|
|
10
|
+
}): Promise<AgentToolResult<unknown>>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ChannelStatusIssue } from "../channels/plugins/types.js";
|
|
2
|
+
export declare function createDefaultChannelRuntimeState<T extends Record<string, unknown>>(accountId: string, extra?: T): {
|
|
3
|
+
accountId: string;
|
|
4
|
+
running: false;
|
|
5
|
+
lastStartAt: null;
|
|
6
|
+
lastStopAt: null;
|
|
7
|
+
lastError: null;
|
|
8
|
+
} & T;
|
|
9
|
+
export declare function buildBaseChannelStatusSummary(snapshot: {
|
|
10
|
+
configured?: boolean | null;
|
|
11
|
+
running?: boolean | null;
|
|
12
|
+
lastStartAt?: number | null;
|
|
13
|
+
lastStopAt?: number | null;
|
|
14
|
+
lastError?: string | null;
|
|
15
|
+
}): {
|
|
16
|
+
configured: boolean;
|
|
17
|
+
running: boolean;
|
|
18
|
+
lastStartAt: number;
|
|
19
|
+
lastStopAt: number;
|
|
20
|
+
lastError: string;
|
|
21
|
+
};
|
|
22
|
+
export declare function collectStatusIssuesFromLastError(channel: string, accounts: Array<{
|
|
23
|
+
accountId: string;
|
|
24
|
+
lastError?: unknown;
|
|
25
|
+
}>): ChannelStatusIssue[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare function buildRandomTempFilePath(params: {
|
|
2
|
+
prefix: string;
|
|
3
|
+
extension?: string;
|
|
4
|
+
tmpDir?: string;
|
|
5
|
+
now?: number;
|
|
6
|
+
uuid?: string;
|
|
7
|
+
}): string;
|
|
8
|
+
export declare function withTempDownloadPath<T>(params: {
|
|
9
|
+
prefix: string;
|
|
10
|
+
fileName?: string;
|
|
11
|
+
tmpDir?: string;
|
|
12
|
+
}, fn: (tmpPath: string) => Promise<T>): Promise<T>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function chunkTextForOutbound(text: string, limit: number): string[];
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { IncomingMessage, ServerResponse } from "node:http";
|
|
2
|
+
export type RegisteredWebhookTarget<T> = {
|
|
3
|
+
target: T;
|
|
4
|
+
unregister: () => void;
|
|
5
|
+
};
|
|
6
|
+
export declare function registerWebhookTarget<T extends {
|
|
7
|
+
path: string;
|
|
8
|
+
}>(targetsByPath: Map<string, T[]>, target: T): RegisteredWebhookTarget<T>;
|
|
9
|
+
export declare function resolveWebhookTargets<T>(req: IncomingMessage, targetsByPath: Map<string, T[]>): {
|
|
10
|
+
path: string;
|
|
11
|
+
targets: T[];
|
|
12
|
+
} | null;
|
|
13
|
+
export type WebhookTargetMatchResult<T> = {
|
|
14
|
+
kind: "none";
|
|
15
|
+
} | {
|
|
16
|
+
kind: "single";
|
|
17
|
+
target: T;
|
|
18
|
+
} | {
|
|
19
|
+
kind: "ambiguous";
|
|
20
|
+
};
|
|
21
|
+
export declare function resolveSingleWebhookTarget<T>(targets: readonly T[], isMatch: (target: T) => boolean): WebhookTargetMatchResult<T>;
|
|
22
|
+
export declare function resolveSingleWebhookTargetAsync<T>(targets: readonly T[], isMatch: (target: T) => Promise<boolean>): Promise<WebhookTargetMatchResult<T>>;
|
|
23
|
+
export declare function rejectNonPostWebhookRequest(req: IncomingMessage, res: ServerResponse): boolean;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export type WindowsSpawnResolution = "direct" | "node-entrypoint" | "exe-entrypoint" | "shell-fallback";
|
|
2
|
+
export type WindowsSpawnCandidateResolution = Exclude<WindowsSpawnResolution, "shell-fallback">;
|
|
3
|
+
export type WindowsSpawnProgramCandidate = {
|
|
4
|
+
command: string;
|
|
5
|
+
leadingArgv: string[];
|
|
6
|
+
resolution: WindowsSpawnCandidateResolution | "unresolved-wrapper";
|
|
7
|
+
windowsHide?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export type WindowsSpawnProgram = {
|
|
10
|
+
command: string;
|
|
11
|
+
leadingArgv: string[];
|
|
12
|
+
resolution: WindowsSpawnResolution;
|
|
13
|
+
shell?: boolean;
|
|
14
|
+
windowsHide?: boolean;
|
|
15
|
+
};
|
|
16
|
+
export type WindowsSpawnInvocation = {
|
|
17
|
+
command: string;
|
|
18
|
+
argv: string[];
|
|
19
|
+
resolution: WindowsSpawnResolution;
|
|
20
|
+
shell?: boolean;
|
|
21
|
+
windowsHide?: boolean;
|
|
22
|
+
};
|
|
23
|
+
export type ResolveWindowsSpawnProgramParams = {
|
|
24
|
+
command: string;
|
|
25
|
+
platform?: NodeJS.Platform;
|
|
26
|
+
env?: NodeJS.ProcessEnv;
|
|
27
|
+
execPath?: string;
|
|
28
|
+
packageName?: string;
|
|
29
|
+
allowShellFallback?: boolean;
|
|
30
|
+
};
|
|
31
|
+
export type ResolveWindowsSpawnProgramCandidateParams = Omit<ResolveWindowsSpawnProgramParams, "allowShellFallback">;
|
|
32
|
+
export declare function resolveWindowsExecutablePath(command: string, env: NodeJS.ProcessEnv): string;
|
|
33
|
+
export declare function resolveWindowsSpawnProgramCandidate(params: ResolveWindowsSpawnProgramCandidateParams): WindowsSpawnProgramCandidate;
|
|
34
|
+
export declare function applyWindowsSpawnProgramPolicy(params: {
|
|
35
|
+
candidate: WindowsSpawnProgramCandidate;
|
|
36
|
+
allowShellFallback?: boolean;
|
|
37
|
+
}): WindowsSpawnProgram;
|
|
38
|
+
export declare function resolveWindowsSpawnProgram(params: ResolveWindowsSpawnProgramParams): WindowsSpawnProgram;
|
|
39
|
+
export declare function materializeWindowsSpawnProgram(program: WindowsSpawnProgram, argv: string[]): WindowsSpawnInvocation;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { createAccountActionGate } from "../channels/plugins/account-action-gate.js";
|
|
2
|
+
export { createAccountListHelpers } from "../channels/plugins/account-helpers.js";
|
|
3
|
+
export { normalizeChatType } from "../channels/chat-type.js";
|
|
4
|
+
export { resolveAccountEntry } from "../routing/account-lookup.js";
|
|
5
|
+
export { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "../routing/session-key.js";
|
|
6
|
+
export { normalizeE164, pathExists, resolveUserPath } from "../utils.js";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export * from "../plugin-sdk/channel-plugin-common.js";
|
|
2
|
+
export { createDiscordActionGate, listDiscordAccountIds, resolveDefaultDiscordAccountId, resolveDiscordAccount, } from "../../extensions/discord/src/accounts.js";
|
|
3
|
+
export { inspectDiscordAccount } from "../../extensions/discord/src/account-inspect.js";
|
|
4
|
+
export { projectCredentialSnapshotFields, resolveConfiguredFromCredentialStatuses, } from "../channels/account-snapshot-fields.js";
|
|
5
|
+
export { listDiscordDirectoryGroupsFromConfig, listDiscordDirectoryPeersFromConfig, } from "../channels/plugins/directory-config.js";
|
|
6
|
+
export { looksLikeDiscordTargetId, normalizeDiscordMessagingTarget, normalizeDiscordOutboundTarget, } from "../../extensions/discord/src/normalize.js";
|
|
7
|
+
export { collectDiscordAuditChannelIds } from "../../extensions/discord/src/audit.js";
|
|
8
|
+
export { collectDiscordStatusIssues } from "../../extensions/discord/src/status-issues.js";
|
|
9
|
+
export { DISCORD_DEFAULT_INBOUND_WORKER_TIMEOUT_MS, DISCORD_DEFAULT_LISTENER_TIMEOUT_MS, } from "../../extensions/discord/src/monitor/timeouts.js";
|
|
10
|
+
export { normalizeExplicitDiscordSessionKey } from "../../extensions/discord/src/session-key-normalization.js";
|
|
11
|
+
export { resolveDefaultGroupPolicy, resolveOpenProviderRuntimeGroupPolicy, } from "../config/runtime-group-policy.js";
|
|
12
|
+
export { resolveDiscordGroupRequireMention, resolveDiscordGroupToolPolicy, } from "../channels/plugins/group-mentions.js";
|
|
13
|
+
export { discordSetupWizard } from "../../extensions/discord/src/setup-surface.js";
|
|
14
|
+
export { discordSetupAdapter } from "../../extensions/discord/src/setup-core.js";
|
|
15
|
+
export { DiscordConfigSchema } from "../config/zod-schema.providers-core.js";
|
|
16
|
+
export { autoBindSpawnedDiscordSubagent, listThreadBindingsBySessionKey, unbindThreadBindingsBySessionKey, } from "../../extensions/discord/src/monitor/thread-bindings.js";
|
|
17
|
+
export { getGateway } from "../../extensions/discord/src/monitor/gateway-registry.js";
|
|
18
|
+
export { getPresence } from "../../extensions/discord/src/monitor/presence-cache.js";
|
|
19
|
+
export { readDiscordComponentSpec } from "../../extensions/discord/src/components.js";
|
|
20
|
+
export { resolveDiscordChannelId } from "../../extensions/discord/src/targets.js";
|
|
21
|
+
export { addRoleDiscord, banMemberDiscord, createChannelDiscord, createScheduledEventDiscord, createThreadDiscord, deleteChannelDiscord, deleteMessageDiscord, editChannelDiscord, editMessageDiscord, fetchChannelInfoDiscord, fetchChannelPermissionsDiscord, fetchMemberInfoDiscord, fetchMessageDiscord, fetchReactionsDiscord, fetchRoleInfoDiscord, fetchVoiceStatusDiscord, hasAnyGuildPermissionDiscord, kickMemberDiscord, listGuildChannelsDiscord, listGuildEmojisDiscord, listPinsDiscord, listScheduledEventsDiscord, listThreadsDiscord, moveChannelDiscord, pinMessageDiscord, reactMessageDiscord, readMessagesDiscord, removeChannelPermissionDiscord, removeOwnReactionsDiscord, removeReactionDiscord, removeRoleDiscord, searchMessagesDiscord, sendDiscordComponentMessage, sendMessageDiscord, sendPollDiscord, sendStickerDiscord, sendVoiceMessageDiscord, setChannelPermissionDiscord, timeoutMemberDiscord, unpinMessageDiscord, uploadEmojiDiscord, uploadStickerDiscord, } from "../../extensions/discord/src/send.js";
|
|
22
|
+
export { discordMessageActions } from "../../extensions/discord/src/channel-actions.js";
|
|
23
|
+
export { buildComputedAccountStatusSnapshot, buildTokenChannelStatusSummary, } from "../plugin-sdk/status-helpers.js";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from "../plugin-sdk/channel-plugin-common.js";
|
|
2
|
+
export { listIMessageAccountIds, resolveDefaultIMessageAccountId, resolveIMessageAccount, } from "../../extensions/imessage/src/accounts.js";
|
|
3
|
+
export { formatTrimmedAllowFromEntries, resolveIMessageConfigAllowFrom, resolveIMessageConfigDefaultTo, } from "../plugin-sdk/channel-config-helpers.js";
|
|
4
|
+
export { looksLikeIMessageTargetId, normalizeIMessageMessagingTarget, } from "../channels/plugins/normalize/imessage.js";
|
|
5
|
+
export { createAllowedChatSenderMatcher, parseChatAllowTargetPrefixes, parseChatTargetPrefixesOrThrow, resolveServicePrefixedChatTarget, resolveServicePrefixedAllowTarget, resolveServicePrefixedOrChatAllowTarget, resolveServicePrefixedTarget, } from "../../extensions/imessage/src/target-parsing-helpers.js";
|
|
6
|
+
export { sendMessageIMessage } from "../../extensions/imessage/src/send.js";
|
|
7
|
+
export { resolveAllowlistProviderRuntimeGroupPolicy, resolveDefaultGroupPolicy, } from "../config/runtime-group-policy.js";
|
|
8
|
+
export { resolveIMessageGroupRequireMention, resolveIMessageGroupToolPolicy, } from "../channels/plugins/group-mentions.js";
|
|
9
|
+
export { imessageSetupWizard } from "../../extensions/imessage/src/setup-surface.js";
|
|
10
|
+
export { imessageSetupAdapter } from "../../extensions/imessage/src/setup-core.js";
|
|
11
|
+
export { IMessageConfigSchema } from "../config/zod-schema.providers-core.js";
|
|
12
|
+
export { resolveChannelMediaMaxBytes } from "../channels/plugins/media-limits.js";
|
|
13
|
+
export { collectStatusIssuesFromLastError } from "../plugin-sdk/status-helpers.js";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "../routing/session-key.js";
|
|
2
|
+
export { applyAccountNameToChannelSection, migrateBaseNameToDefaultAccount, } from "../channels/plugins/setup-helpers.js";
|
|
3
|
+
export { normalizeAllowFromEntries, noteChannelLookupFailure, noteChannelLookupSummary, parseMentionOrPrefixedId, parseSetupEntriesAllowingWildcard, patchChannelConfigForAccount, promptLegacyChannelAllowFrom, promptParsedAllowFromForScopedChannel, promptResolvedAllowFrom, resolveSetupAccountId, setAccountGroupPolicyForChannel, setChannelDmPolicyWithAllowFrom, setLegacyChannelDmPolicyWithAllowFrom, setSetupChannelEnabled, splitSetupEntries, } from "../channels/plugins/setup-wizard-helpers.js";
|
|
4
|
+
export { detectBinary } from "../commands/onboard-helpers.js";
|
|
5
|
+
export { installSignalCli } from "../commands/signal-install.js";
|
|
6
|
+
export { formatCliCommand } from "../cli/command-format.js";
|
|
7
|
+
export { formatDocsLink } from "../terminal/links.js";
|
|
8
|
+
export { hasConfiguredSecretInput } from "../config/types.secrets.js";
|
|
9
|
+
export { normalizeE164, pathExists } from "../utils.js";
|