squidclaw 3.3.1 → 3.3.3
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/CHANGELOG.md +6 -0
- package/dist/{audio-preflight-BSsGMMaR.js → audio-preflight-B5XvcdFX.js} +4 -4
- package/dist/{audio-transcription-runner-BUC9KMTa.js → audio-transcription-runner-DUC0ItDY.js} +1 -1
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +6 -6
- package/dist/bundled/session-memory/handler.js +6 -6
- package/dist/canvas-host/a2ui/a2ui.bundle.js +1 -1
- package/dist/{chrome-B-c9WuZW.js → chrome-BTwG9Gvh.js} +8 -8
- package/dist/{command-registry-8dFoJNwF.js → command-registry-okNPqigX.js} +4 -4
- package/dist/{completion-cli-DXKg2zHx.js → completion-cli-C_kX-zqx.js} +2 -2
- package/dist/{completion-cli-BLY0f3DS.js → completion-cli-DMPoKYSD.js} +1 -1
- package/dist/control-ui/assets/{index-BqxuPQOl.js → index-Bb5MB8jH.js} +358 -358
- package/dist/control-ui/assets/index-Bb5MB8jH.js.map +1 -0
- package/dist/control-ui/index.html +1 -1
- package/dist/{deliver-cyA5bLhi.js → deliver-DZCNXFM8.js} +1 -1
- package/dist/{deliver-runtime-BVu0kgJH.js → deliver-runtime-BJoBkkm_.js} +3 -3
- package/dist/{deps-send-whatsapp.runtime-BKbax18q.js → deps-send-whatsapp.runtime-CO3zaqTI.js} +7 -7
- package/dist/{doctor-completion-kjDYgxZk.js → doctor-completion-D6js0phx.js} +1 -1
- package/dist/{doctor-completion-B4EOgAHX.js → doctor-completion-Dzzgvaw-.js} +1 -1
- package/dist/entry.js +2 -2
- package/dist/{gateway-cli-7hy6G1el.js → gateway-cli-C_bDC15s.js} +1 -1
- package/dist/{gateway-cli-lvhI_G2p.js → gateway-cli-DZSjLGTJ.js} +1 -1
- package/dist/{image-DNaaTm7C.js → image-COAbpp2B.js} +1 -1
- package/dist/{image-runtime-DzKlwROz.js → image-runtime-Dkwf1-U3.js} +3 -3
- package/dist/index.js +1 -1
- package/dist/llm-slug-generator.js +6 -6
- package/dist/{onboard-CNVVt7F3.js → onboard-CaDp4p48.js} +1 -1
- package/dist/{onboard-BP7rTtCO.js → onboard-qnQqEy5h.js} +1 -1
- package/dist/{onboarding-DQa8M7Fx.js → onboarding-D1z3JAaB.js} +1 -1
- package/dist/{onboarding-LbGi6oDz.js → onboarding-mo7rwJC-.js} +1 -1
- package/dist/{onboarding.finalize-D6qUa-0y.js → onboarding.finalize-CWzwBDG8.js} +67 -21
- package/dist/{onboarding.finalize-CWcaxeIO.js → onboarding.finalize-D8igsmtY.js} +66 -20
- package/dist/{pi-embedded-B0Fw5lST.js → pi-embedded-BKtpY3e4.js} +24 -24
- package/dist/{pi-embedded-helpers-DL-PzuCP.js → pi-embedded-helpers-1Z1aUoto.js} +3 -3
- package/dist/plugin-sdk/{accounts-ByCKM_Y3.js → accounts-BChIl5as.js} +2 -2
- package/dist/plugin-sdk/{accounts-BLOLIF6Q.js → accounts-BhCAa-05.js} +2 -2
- package/dist/plugin-sdk/{accounts-BvzvDHNx.js → accounts-DKXGC2Vu.js} +3 -3
- package/dist/plugin-sdk/{active-listener-Ccj2fSCa.js → active-listener-TTbK9PGk.js} +2 -2
- package/dist/plugin-sdk/{api-key-rotation-0Xm0okk5.js → api-key-rotation-BqhYVBBK.js} +2 -2
- package/dist/plugin-sdk/{audio-preflight-B_pcDw8d.js → audio-preflight-DAf0ptAM.js} +26 -26
- package/dist/plugin-sdk/{audio-transcription-runner-u6tijzUS.js → audio-transcription-runner-CBASOlbc.js} +11 -11
- package/dist/plugin-sdk/{audit-membership-runtime-DHQDvH4u.js → audit-membership-runtime-Xl20kCBe.js} +2 -2
- package/dist/plugin-sdk/{channel-activity-BVUdxSNs.js → channel-activity-95JVLzNY.js} +3 -3
- package/dist/plugin-sdk/{channel-web-BX2s-JXF.js → channel-web-DCkC6Ydu.js} +18 -18
- package/dist/plugin-sdk/{chrome-6EkqVcyR.js → chrome-BlXpNOQu.js} +6 -6
- package/dist/plugin-sdk/{commands-registry-CDHo6SSs.js → commands-registry-C9y_w3eW.js} +4 -4
- package/dist/plugin-sdk/{common-Emz6EPQM.js → common-CEwMUbms.js} +2 -2
- package/dist/plugin-sdk/{config-CMjn_DSB.js → config-sMifxgre.js} +7 -7
- package/dist/plugin-sdk/{deliver-Cz6GluMN.js → deliver-2zt3NeFA.js} +10 -10
- package/dist/plugin-sdk/deliver-runtime-Dx0Sg-lg.js +32 -0
- package/dist/plugin-sdk/deps-send-discord.runtime-bKwjojX0.js +23 -0
- package/dist/plugin-sdk/deps-send-imessage.runtime-DcxfdKGE.js +22 -0
- package/dist/plugin-sdk/deps-send-signal.runtime-79rGat6V.js +21 -0
- package/dist/plugin-sdk/deps-send-slack.runtime-DfMO701H.js +19 -0
- package/dist/plugin-sdk/deps-send-telegram.runtime-Bnjwm6SU.js +24 -0
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-CS50_Jgh.js +57 -0
- package/dist/plugin-sdk/{diagnostic-DhO2TqL_.js → diagnostic-CU_mni6m.js} +2 -2
- package/dist/plugin-sdk/{errors-9oVz7reJ.js → errors-CgRPdp3o.js} +1 -1
- package/dist/plugin-sdk/{fetch-guard-CGQ35-A_.js → fetch-guard-BxMLJbqt.js} +2 -2
- package/dist/plugin-sdk/{fs-safe-B26UxJny.js → fs-safe-5aQcM_qM.js} +3 -3
- package/dist/plugin-sdk/{image-DPgEp54d.js → image-BJXV9IMV.js} +6 -6
- package/dist/plugin-sdk/{image-ops-CbKrfi-N.js → image-ops-DovJMvdf.js} +2 -2
- package/dist/plugin-sdk/image-runtime-f-WKB3Bx.js +25 -0
- package/dist/plugin-sdk/imessage.js +2 -2
- package/dist/plugin-sdk/{ir-4JdLS2Hz.js → ir-DE2ewdq5.js} +7 -7
- package/dist/plugin-sdk/{local-roots-T6lXDGzr.js → local-roots-CIwDgpY2.js} +4 -4
- package/dist/plugin-sdk/{logger-Bg4vIUJn.js → logger-DIb2cGHp.js} +2 -2
- package/dist/plugin-sdk/{login-BNCjks0C.js → login-CLIcsAVy.js} +4 -4
- package/dist/plugin-sdk/{login-qr-CTjNgxhl.js → login-qr-BlxjA0vQ.js} +5 -5
- package/dist/plugin-sdk/{manager-D__CoDGL.js → manager-CpAGPHeX.js} +8 -8
- package/dist/plugin-sdk/manager-runtime-DAKJEbuY.js +15 -0
- package/dist/plugin-sdk/mattermost.js +3 -3
- package/dist/plugin-sdk/{outbound-DTQ-9Cjw.js → outbound-DDpRevO_.js} +5 -5
- package/dist/plugin-sdk/{outbound-attachment-CdHX9v0q.js → outbound-attachment-CVavq5II.js} +2 -2
- package/dist/plugin-sdk/{path-alias-guards-DSCFtpsd.js → path-alias-guards-BfpU4lAT.js} +1 -1
- package/dist/plugin-sdk/{paths-BQHqKGA8.js → paths-CK3lTJYw.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-helpers-B7nmCbf7.js → pi-embedded-helpers-Cb_h9zSJ.js} +16 -16
- package/dist/plugin-sdk/{pi-model-discovery-DyDwYiK3.js → pi-model-discovery-B3B3R7L9.js} +1 -1
- package/dist/plugin-sdk/pi-model-discovery-runtime-Bm4bHwpO.js +8 -0
- package/dist/plugin-sdk/{pi-tools.before-tool-call.runtime-D_f6TDo7.js → pi-tools.before-tool-call.runtime-DivpBAM0.js} +4 -4
- package/dist/plugin-sdk/{plugins-BSPvol4w.js → plugins-BlTrm4bw.js} +4 -4
- package/dist/plugin-sdk/{proxy-env-D-iVYTBk.js → proxy-env-Cdh-OQYk.js} +1 -1
- package/dist/plugin-sdk/{proxy-fetch-Cf3IUSDw.js → proxy-fetch-Dt5BedH8.js} +1 -1
- package/dist/plugin-sdk/{pw-ai-BO445UDA.js → pw-ai-DEDRpMlY.js} +9 -9
- package/dist/plugin-sdk/{qmd-manager-81ezWnIN.js → qmd-manager-Ct9rtJjd.js} +7 -7
- package/dist/plugin-sdk/{query-expansion-DxTmIU4K.js → query-expansion-OdwWuN1S.js} +4 -4
- package/dist/plugin-sdk/{redact-DfACyt0X.js → redact-9WsNyb7S.js} +1 -1
- package/dist/plugin-sdk/{reply-DJ3rbbnv.js → reply-wZhosbPd.js} +73 -73
- package/dist/plugin-sdk/{resolve-outbound-target-DtQd8TzZ.js → resolve-outbound-target-BJmCIkW_.js} +2 -2
- package/dist/plugin-sdk/{run-with-concurrency-CYcPpb5E.js → run-with-concurrency-EUEKeAa8.js} +1 -1
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-D74eZbH7.js +10 -0
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-BidSddX5.js +19 -0
- package/dist/plugin-sdk/{send-CGjI0pJn.js → send-0C4KdD-T.js} +7 -7
- package/dist/plugin-sdk/{send-D6nUI0S3.js → send-BGWGV_mz.js} +6 -6
- package/dist/plugin-sdk/{send-BPEn9L0o.js → send-BMWyVUhm.js} +13 -13
- package/dist/plugin-sdk/{send-B9GVkvTk.js → send-Drs4JqVD.js} +5 -5
- package/dist/plugin-sdk/{send-CZ6HDwDu.js → send-oo6mQbab.js} +8 -8
- package/dist/plugin-sdk/{session-Bwjlseuf.js → session-CXVARKFK.js} +3 -3
- package/dist/plugin-sdk/{skill-commands-BpB2Oe8e.js → skill-commands-CoqGFLfM.js} +4 -4
- package/dist/plugin-sdk/{skills-CaQpr1kx.js → skills-di-5uS9y.js} +6 -6
- package/dist/plugin-sdk/slash-commands.runtime-CseiMacz.js +13 -0
- package/dist/plugin-sdk/slash-dispatch.runtime-88gX6CLk.js +52 -0
- package/dist/plugin-sdk/slash-skill-commands.runtime-BNrQNIZ7.js +16 -0
- package/dist/plugin-sdk/{store-K6C7eOpg.js → store-Dn_E3uaN.js} +2 -2
- package/dist/plugin-sdk/subagent-registry-runtime-Cv8RHTjT.js +52 -0
- package/dist/plugin-sdk/{tables-CeWt6UjS.js → tables-_e9wMygc.js} +1 -1
- package/dist/plugin-sdk/{thinking-gpcjIDQZ.js → thinking-Cih_nxDY.js} +7 -7
- package/dist/plugin-sdk/{tokens-DAL_5WHL.js → tokens-CLE20fRI.js} +1 -1
- package/dist/plugin-sdk/{tool-images-l3TE_qXt.js → tool-images-D6a1Ua4p.js} +2 -2
- package/dist/plugin-sdk/web-C4tTN9Xu.js +56 -0
- package/dist/plugin-sdk/{whatsapp-actions-CbzdjX4B.js → whatsapp-actions-UAnHjKbE.js} +17 -17
- package/dist/plugin-sdk/whatsapp.js +50 -50
- package/dist/{program-DZxExBPG.js → program-Crlu6-Fd.js} +2 -2
- package/dist/{program-context-Cc5-MG37.js → program-context-BUiGRFn1.js} +6 -6
- package/dist/{prompt-select-styled-BmJHQFIe.js → prompt-select-styled-BeIW1IXq.js} +1 -1
- package/dist/{prompt-select-styled-CK2Ienpq.js → prompt-select-styled-DPnXlfvv.js} +1 -1
- package/dist/{pw-ai-DKk-nxfi.js → pw-ai-4QFtj-s9.js} +1 -1
- package/dist/{register.maintenance-Di-_iCcy.js → register.maintenance-BETLfpr3.js} +4 -4
- package/dist/{register.maintenance-zjqp4gVD.js → register.maintenance-DWquSvC1.js} +5 -5
- package/dist/{register.onboard-w_EDtQ3H.js → register.onboard-CJqPKqea.js} +2 -2
- package/dist/{register.onboard-D8V8BiRf.js → register.onboard-FYANtcb-.js} +2 -2
- package/dist/{register.setup-DkncXaAW.js → register.setup-DzAgPerh.js} +2 -2
- package/dist/{register.setup-CuD_ucSh.js → register.setup-_38deeF2.js} +2 -2
- package/dist/{register.subclis-D_k3jp2m.js → register.subclis-DX9OFUYu.js} +3 -3
- package/dist/{run-main-Czc9ESzd.js → run-main-BjSdMh29.js} +3 -3
- package/dist/{slash-dispatch.runtime-C6owhNFn.js → slash-dispatch.runtime-DxM7VUio.js} +6 -6
- package/dist/{subagent-registry-runtime-Chbfn_dG.js → subagent-registry-runtime-CrVeg8cq.js} +6 -6
- package/dist/{update-cli-XGRmAcuW.js → update-cli-Bh_QpVMZ.js} +4 -4
- package/dist/{update-cli-FbS4oJu1.js → update-cli-yUlN0mCs.js} +5 -5
- package/dist/{web-snD8T3x5.js → web-BmVAq-Dx.js} +6 -6
- package/extensions/acpx/node_modules/.bin/acpx +2 -2
- package/extensions/diagnostics-otel/node_modules/.bin/acorn +2 -2
- package/extensions/diffs/node_modules/.bin/playwright-core +2 -2
- package/extensions/googlechat/node_modules/.bin/squidclaw +2 -2
- package/extensions/matrix/node_modules/.bin/markdown-it +2 -2
- package/extensions/memory-core/node_modules/.bin/squidclaw +2 -2
- package/extensions/memory-lancedb/node_modules/.bin/arrow2csv +2 -2
- package/extensions/memory-lancedb/node_modules/.bin/openai +2 -2
- package/extensions/tlon/node_modules/.bin/tlon +2 -2
- package/package.json +1 -1
- package/dist/control-ui/assets/index-BqxuPQOl.js.map +0 -1
- package/dist/plugin-sdk/deliver-runtime-CjCJkoFM.js +0 -32
- package/dist/plugin-sdk/deps-send-discord.runtime-C4AEwjGl.js +0 -23
- package/dist/plugin-sdk/deps-send-imessage.runtime-DCdEe-_E.js +0 -22
- package/dist/plugin-sdk/deps-send-signal.runtime-BNO6SPmR.js +0 -21
- package/dist/plugin-sdk/deps-send-slack.runtime-BChVBURL.js +0 -19
- package/dist/plugin-sdk/deps-send-telegram.runtime-DyCorUw2.js +0 -24
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-DoOYrpKa.js +0 -57
- package/dist/plugin-sdk/image-runtime-DN6PHT8G.js +0 -25
- package/dist/plugin-sdk/manager-runtime-B9aBGLrF.js +0 -15
- package/dist/plugin-sdk/pi-model-discovery-runtime-CN6ZaL0W.js +0 -8
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-ai8hcGi_.js +0 -10
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-BzvoaI1G.js +0 -19
- package/dist/plugin-sdk/slash-commands.runtime-BH06o3dH.js +0 -13
- package/dist/plugin-sdk/slash-dispatch.runtime-BotYesgY.js +0 -52
- package/dist/plugin-sdk/slash-skill-commands.runtime-CzPvxiUD.js +0 -16
- package/dist/plugin-sdk/subagent-registry-runtime-BbcgUYOO.js +0 -52
- package/dist/plugin-sdk/web-DZ7nBzZy.js +0 -56
- package/docs/reference/templates/IDENTITY.md +0 -14
- package/docs/reference/templates/USER.md +0 -9
- package/extensions/nostr/node_modules/.bin/tsc +0 -21
- package/extensions/nostr/node_modules/.bin/tsserver +0 -21
|
@@ -13,15 +13,15 @@ import { a as logWebSelfId, h as resolveAccountEntry, i as getWebAuthAgeMs, m as
|
|
|
13
13
|
import { a as resolveSlackWebClientOptions, c as buildSlackBlocksFallbackText, i as createSlackWebClient, l as parseSlackTarget, n as markdownToSlackMrkdwnChunks, o as parseSlackBlocksInput, r as normalizeSlackOutboundText, s as validateSlackBlocksArray, t as sendMessageSlack, u as resolveSlackChannelId } from "./send-CNzGOCHa.js";
|
|
14
14
|
import { $ as stripUndefinedFields, A as unpinMessageDiscord, At as resolveChannelEntryMatchWithFallback, B as listScheduledEventsDiscord, C as editMessageDiscord, Ct as resolveDiscordSystemLocation, D as pinMessageDiscord, Dt as applyChannelMatchMeta, E as listThreadsDiscord, Et as fetchDiscord, F as fetchMemberInfoDiscord, G as uploadStickerDiscord, H as timeoutMemberDiscord, I as fetchRoleInfoDiscord, J as editChannelDiscord, K as createChannelDiscord, L as fetchVoiceStatusDiscord, M as banMemberDiscord, N as createScheduledEventDiscord, O as readMessagesDiscord, Ot as buildChannelKeyCandidates, P as fetchChannelInfoDiscord, Q as sendDiscordText, R as kickMemberDiscord, S as deleteMessageDiscord, St as formatDiscordUserTag, T as listPinsDiscord, Tt as DiscordApiError, U as listGuildEmojisDiscord, V as removeRoleDiscord, W as uploadEmojiDiscord, X as removeChannelPermissionDiscord, Y as moveChannelDiscord, Z as setChannelPermissionDiscord, _ as sendStickerDiscord, _t as resolveDiscordOwnerAllowFrom, a as sendDiscordComponentMessage, at as parseDiscordTarget, b as formatMention, bt as shouldEmitDiscordReactionNotification, c as parseDiscordComponentCustomId, ct as listDiscordDirectoryPeersLive, d as parseDiscordModalCustomIdForCarbon, dt as normalizeDiscordSlug, et as fetchChannelPermissionsDiscord, f as readDiscordComponentSpec, ft as resolveDiscordAllowListMatch, g as sendPollDiscord, gt as resolveDiscordOwnerAccess, h as sendMessageDiscord, ht as resolveDiscordMemberAccessState, i as removeReactionDiscord, it as createDiscordRestClient, j as addRoleDiscord, k as searchMessagesDiscord, kt as normalizeChannelSlug, l as parseDiscordComponentCustomIdForCarbon, lt as isDiscordGroupAllowedByPolicy, m as resolveDiscordModalEntry, mt as resolveDiscordGuildEntry, n as reactMessageDiscord, nt as chunkDiscordTextWithMode, o as createDiscordFormModal, ot as resolveDiscordChannelId, p as resolveDiscordComponentEntry, pt as resolveDiscordChannelConfigWithFallback, q as deleteChannelDiscord, r as removeOwnReactionsDiscord, rt as createDiscordClient, s as formatDiscordComponentEventText, st as listDiscordDirectoryGroupsLive, t as fetchReactionsDiscord, tt as hasAnyGuildPermissionDiscord, u as parseDiscordModalCustomId, ut as normalizeDiscordAllowList, v as sendVoiceMessageDiscord, vt as resolveDiscordShouldRequireMention, w as fetchMessageDiscord, wt as resolveTimestampMs, x as createThreadDiscord, xt as formatDiscordReactionEmoji, y as sendWebhookMessageDiscord, yt as resolveGroupDmAllow, z as listGuildChannelsDiscord } from "./send-DJcNRhf_.js";
|
|
15
15
|
import { n as generateSecureUuid, t as generateSecureToken } from "./secure-random-CXrBi7Jq.js";
|
|
16
|
-
import { C as createReplyToModeFilterForChannel, D as normalizeTargetForProvider, E as normalizeChannelTargetInput, O as getGlobalHookRunner, S as shouldSuppressReasoningPayload, T as buildTargetResolverSignature, _ as applyReplyThreading, a as normalizeReplyPayloadsForDelivery, b as isRenderablePayload, c as splitMediaFromOutput, d as toInternalMessageReceivedContext, f as toInternalMessageTranscribedContext, g as applyReplyTagsToPayload, h as fireAndForgetHook, i as normalizeOutboundPayloadsForJson, k as initializeGlobalHookRunner, l as deriveInboundMessageHookContext, m as toPluginMessageReceivedEvent, n as formatOutboundPayloadLog, o as throwIfAborted, p as toPluginMessageContext, r as normalizeOutboundPayloads, s as parseReplyDirectives, t as deliverOutboundPayloads, u as toInternalMessagePreprocessedContext, v as filterMessagingToolDuplicates, w as resolveReplyToMode, x as shouldSuppressMessagingToolReplies, y as filterMessagingToolMediaDuplicates } from "./deliver-
|
|
16
|
+
import { C as createReplyToModeFilterForChannel, D as normalizeTargetForProvider, E as normalizeChannelTargetInput, O as getGlobalHookRunner, S as shouldSuppressReasoningPayload, T as buildTargetResolverSignature, _ as applyReplyThreading, a as normalizeReplyPayloadsForDelivery, b as isRenderablePayload, c as splitMediaFromOutput, d as toInternalMessageReceivedContext, f as toInternalMessageTranscribedContext, g as applyReplyTagsToPayload, h as fireAndForgetHook, i as normalizeOutboundPayloadsForJson, k as initializeGlobalHookRunner, l as deriveInboundMessageHookContext, m as toPluginMessageReceivedEvent, n as formatOutboundPayloadLog, o as throwIfAborted, p as toPluginMessageContext, r as normalizeOutboundPayloads, s as parseReplyDirectives, t as deliverOutboundPayloads, u as toInternalMessagePreprocessedContext, v as filterMessagingToolDuplicates, w as resolveReplyToMode, x as shouldSuppressMessagingToolReplies, y as filterMessagingToolMediaDuplicates } from "./deliver-DZCNXFM8.js";
|
|
17
17
|
import { a as logMessageQueued, c as logWebhookError, d as startDiagnosticHeartbeat, f as stopDiagnosticHeartbeat, h as isDiagnosticsEnabled, i as logMessageProcessed, l as logWebhookProcessed, m as emitDiagnosticEvent, n as logLaneDequeue, o as logSessionStateChange, p as getDiagnosticSessionState, r as logLaneEnqueue, t as diag, u as logWebhookReceived } from "./diagnostic-4Dbmo6KU.js";
|
|
18
18
|
import { n as resolveSignalAccount, t as listEnabledSignalAccounts } from "./accounts-DfrJiFJJ.js";
|
|
19
19
|
import { i as resolveTelegramTargetChatType, r as parseTelegramTarget } from "./targets-BiE9e9-P.js";
|
|
20
20
|
import { A as mediaKindFromMime, C as imageMimeFromFormat, E as kindFromMime, O as MAX_IMAGE_BYTES, T as isGifMedia, _ as GATEWAY_CLIENT_IDS, b as detectMime, c as INTERNAL_MESSAGE_CHANNEL, d as isInternalMessageChannel, f as isMarkdownCapableMessageChannel, g as resolveMessageChannel, h as resolveGatewayMessageChannel, i as getImageMetadata, l as isDeliverableMessageChannel, m as normalizeMessageChannel, p as listDeliverableMessageChannels, s as resizeToJpeg, u as isGatewayMessageChannel, v as GATEWAY_CLIENT_MODES, w as isAudioFileName, x as extensionForMime, y as GATEWAY_CLIENT_NAMES } from "./image-ops-QLLBkxzG.js";
|
|
21
21
|
import { $ as removeChannelAllowFromStoreEntry, A as expandTextLinks, B as resolveTelegramThreadSpec, C as buildSenderName, D as buildTelegramThreadParams, E as buildTelegramParentPeer, F as resolveTelegramForumThreadId, G as firstDefined$1, H as normalizeAllowFrom$2, I as resolveTelegramGroupAllowFromContext, J as resolveGroupAllowFromSources, K as isSenderIdAllowed, L as resolveTelegramMediaPlaceholder, M as hasBotMention, N as normalizeForwardedContext, O as buildTypingThreadParams, P as resolveTelegramDirectPeerId, Q as readChannelAllowFromStore, R as resolveTelegramReplyId, S as buildSenderLabel, T as buildTelegramGroupPeerId, U as normalizeDmAllowFromWithStore$1, V as isSenderAllowed$1, W as resolveSenderAllowMatch$1, X as toLocationContext, Y as formatLocationText, Z as addChannelAllowFromStoreEntry, _ as splitTelegramCaption, a as reactMessageTelegram, at as isVoiceCompatibleAudio, b as resolveCronStorePath, c as sendStickerTelegram, d as isRecoverableTelegramNetworkError, et as upsertChannelPairingRequest, f as markdownToTelegramChunks, g as resolveTelegramFetch, h as wrapFileReferencesInHtml, i as editMessageTelegram, it as listPairingChannels, j as extractTelegramLocation, k as describeReplyTarget, l as resolveTelegramVoiceSend, m as renderTelegramHtmlText, n as createForumTopicTelegram, nt as writeJsonFileAtomically, o as sendMessageTelegram, p as markdownToTelegramHtml, q as mergeDmAllowFromSources, r as deleteMessageTelegram, rt as getPairingAdapter, s as sendPollTelegram, t as buildInlineKeyboard, tt as readJsonFileWithFallback, u as wasSentByBot, v as withTelegramApiErrorLogging, w as buildTelegramGroupFrom, x as buildGroupLabel, y as loadCronStore, z as resolveTelegramStreamMode } from "./send-pUHxPU20.js";
|
|
22
22
|
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-DSuyTtRM.js";
|
|
23
|
-
import { $ as deliveryContextKey, $t as matchesAnyGlobPattern, A as isTransientHttpError, At as resolveGroupSessionKey, B as parseSessionThreadInfo, Bt as resolveGatewayCredentialsFromConfig, C as isCompactionFailureError, Ct as setSessionRuntimeModel, D as isLikelyContextOverflowError, Dt as resolveMainSessionKey, E as isFailoverErrorMessage, Et as resolveExplicitAgentSessionKey, F as isTimeoutErrorMessage, Ft as resolveBrowserConfig, G as readSessionUpdatedAt, Gt as collectExplicitAllowlist, Ht as resolveSandboxConfigForAgent, I as ensureSandboxWorkspaceForSession, It as resolveProfile, J as updateSessionStore, Jt as stripPluginOnlyAllowlist, K as recordSessionMetaFromInbound, Kt as expandPolicyWithPluginGroups, L as resolveSandboxContext, Lt as getBridgeAuthForPort, M as parseImageSizeError, Mt as resolveSessionLockMaxHoldFromTimeout, N as sanitizeUserFacingText, Nt as createBrowserRouteContext, O as isRateLimitAssistantError, Ot as deriveSessionMetaPatch, P as isAuthPermanentErrorMessage, Pt as registerBrowserRoutes, Q as deliveryContextFromSession, Qt as compileGlobPatterns, R as resolveSandboxRuntimeStatus, Rt as ensureBrowserControlAuth, S as isCloudCodeAssistFormatError, St as resolveFreshSessionTotalTokens, T as isFailoverAssistantError, U as resolveAndPersistSessionFile, Ut as applyOwnerOnlyToolPolicy, V as appendAssistantMessageToSessionTranscript, Vt as trimToUndefined$1, W as loadSessionStore, Wt as buildPluginToolGroups, X as isCacheEnabled, Xt as normalizeToolName, Y as updateSessionStoreEntry, Yt as expandToolGroups, Z as resolveCacheTtlMs$1, Zt as resolveToolProfilePolicy, _ as formatBillingErrorMessage, _t as resolveSessionResetPolicy, a as isMessagingToolDuplicateNormalized, an as sanitizeGoogleTurnOrdering, at as capArrayByJsonBytes, b as isAuthAssistantError, bt as DEFAULT_RESET_TRIGGERS, c as extractToolCallsFromAssistant, ct as parseInlineDirectives$1, d as downgradeOpenAIFunctionCallReasoningPairs, dt as hasInterSessionUserProvenance, en as buildBootstrapContextFiles, et as mergeDeliveryContext, f as downgradeOpenAIReasoningBlocks, ft as normalizeInputProvenance, g as formatAssistantErrorText, gt as resolveChannelResetConfig, h as classifyFailoverReason, ht as evaluateSessionFreshness, in as resolveBootstrapTotalMaxChars, it as archiveSessionTranscripts, j as parseImageDimensionError, jt as acquireSessionWriteLock, k as isRawApiErrorPayload, kt as resolveConversationLabel, l as extractToolResultId, lt as INPUT_PROVENANCE_KIND_VALUES, m as BILLING_ERROR_USER_MESSAGE, mt as resolveSessionKey, n as validateGeminiTurns, nn as resolveBootstrapMaxChars, nt as normalizeSessionDeliveryFields, o as normalizeTextForComparison, ot as countToolResults, p as isGoogleModelApi, pt as jsonUtf8Bytes, q as updateLastRoute, qt as mergeAlsoAllowPolicy, r as pickFallbackThinkingLevel, rn as resolveBootstrapPromptTruncationWarningMode, rt as normalizeAccountId$3, s as sanitizeSessionMessagesImages, st as extractToolCallNames, t as validateAnthropicTurns, tn as ensureSessionHeader, tt as normalizeDeliveryContext, u as sanitizeToolCallIdsForCloudCodeAssist, ut as applyInputProvenanceToUserMessage, v as formatRawAssistantErrorForUi, vt as resolveSessionResetType, w as isContextOverflowError, wt as canonicalizeMainSessionAlias, x as isBillingAssistantError, xt as mergeSessionEntry, y as getApiErrorPayloadFingerprint, yt as resolveThreadFlag, z as extractDeliveryInfo, zt as resolveBrowserControlAuth } from "./pi-embedded-helpers-
|
|
24
|
-
import { A as rawDataToString, B as isSecureWebSocketUrl, C as ensureChromeExtensionRelayServer, N as DEFAULT_UPLOAD_DIR, P as resolveExistingPathsWithinRoot, U as DEFAULT_AI_SNAPSHOT_MAX_CHARS, s as resolveLsofCommandSync, z as isLoopbackHost } from "./chrome-
|
|
23
|
+
import { $ as deliveryContextKey, $t as matchesAnyGlobPattern, A as isTransientHttpError, At as resolveGroupSessionKey, B as parseSessionThreadInfo, Bt as resolveGatewayCredentialsFromConfig, C as isCompactionFailureError, Ct as setSessionRuntimeModel, D as isLikelyContextOverflowError, Dt as resolveMainSessionKey, E as isFailoverErrorMessage, Et as resolveExplicitAgentSessionKey, F as isTimeoutErrorMessage, Ft as resolveBrowserConfig, G as readSessionUpdatedAt, Gt as collectExplicitAllowlist, Ht as resolveSandboxConfigForAgent, I as ensureSandboxWorkspaceForSession, It as resolveProfile, J as updateSessionStore, Jt as stripPluginOnlyAllowlist, K as recordSessionMetaFromInbound, Kt as expandPolicyWithPluginGroups, L as resolveSandboxContext, Lt as getBridgeAuthForPort, M as parseImageSizeError, Mt as resolveSessionLockMaxHoldFromTimeout, N as sanitizeUserFacingText, Nt as createBrowserRouteContext, O as isRateLimitAssistantError, Ot as deriveSessionMetaPatch, P as isAuthPermanentErrorMessage, Pt as registerBrowserRoutes, Q as deliveryContextFromSession, Qt as compileGlobPatterns, R as resolveSandboxRuntimeStatus, Rt as ensureBrowserControlAuth, S as isCloudCodeAssistFormatError, St as resolveFreshSessionTotalTokens, T as isFailoverAssistantError, U as resolveAndPersistSessionFile, Ut as applyOwnerOnlyToolPolicy, V as appendAssistantMessageToSessionTranscript, Vt as trimToUndefined$1, W as loadSessionStore, Wt as buildPluginToolGroups, X as isCacheEnabled, Xt as normalizeToolName, Y as updateSessionStoreEntry, Yt as expandToolGroups, Z as resolveCacheTtlMs$1, Zt as resolveToolProfilePolicy, _ as formatBillingErrorMessage, _t as resolveSessionResetPolicy, a as isMessagingToolDuplicateNormalized, an as sanitizeGoogleTurnOrdering, at as capArrayByJsonBytes, b as isAuthAssistantError, bt as DEFAULT_RESET_TRIGGERS, c as extractToolCallsFromAssistant, ct as parseInlineDirectives$1, d as downgradeOpenAIFunctionCallReasoningPairs, dt as hasInterSessionUserProvenance, en as buildBootstrapContextFiles, et as mergeDeliveryContext, f as downgradeOpenAIReasoningBlocks, ft as normalizeInputProvenance, g as formatAssistantErrorText, gt as resolveChannelResetConfig, h as classifyFailoverReason, ht as evaluateSessionFreshness, in as resolveBootstrapTotalMaxChars, it as archiveSessionTranscripts, j as parseImageDimensionError, jt as acquireSessionWriteLock, k as isRawApiErrorPayload, kt as resolveConversationLabel, l as extractToolResultId, lt as INPUT_PROVENANCE_KIND_VALUES, m as BILLING_ERROR_USER_MESSAGE, mt as resolveSessionKey, n as validateGeminiTurns, nn as resolveBootstrapMaxChars, nt as normalizeSessionDeliveryFields, o as normalizeTextForComparison, ot as countToolResults, p as isGoogleModelApi, pt as jsonUtf8Bytes, q as updateLastRoute, qt as mergeAlsoAllowPolicy, r as pickFallbackThinkingLevel, rn as resolveBootstrapPromptTruncationWarningMode, rt as normalizeAccountId$3, s as sanitizeSessionMessagesImages, st as extractToolCallNames, t as validateAnthropicTurns, tn as ensureSessionHeader, tt as normalizeDeliveryContext, u as sanitizeToolCallIdsForCloudCodeAssist, ut as applyInputProvenanceToUserMessage, v as formatRawAssistantErrorForUi, vt as resolveSessionResetType, w as isContextOverflowError, wt as canonicalizeMainSessionAlias, x as isBillingAssistantError, xt as mergeSessionEntry, y as getApiErrorPayloadFingerprint, yt as resolveThreadFlag, z as extractDeliveryInfo, zt as resolveBrowserControlAuth } from "./pi-embedded-helpers-1Z1aUoto.js";
|
|
24
|
+
import { A as rawDataToString, B as isSecureWebSocketUrl, C as ensureChromeExtensionRelayServer, N as DEFAULT_UPLOAD_DIR, P as resolveExistingPathsWithinRoot, U as DEFAULT_AI_SNAPSHOT_MAX_CHARS, s as resolveLsofCommandSync, z as isLoopbackHost } from "./chrome-BTwG9Gvh.js";
|
|
25
25
|
import { c as assertSandboxPath, d as resolveSandboxedMediaSource, f as applySkillEnvOverrides, i as resolveSkillsPromptForRun, l as resolveSandboxInputPath, n as buildWorkspaceSkillSnapshot, p as applySkillEnvOverridesFromSnapshot, r as loadWorkspaceSkillEntries, s as assertMediaNotDataUrl } from "./skills-BjHeDO5V.js";
|
|
26
26
|
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-DgNuZPBA.js";
|
|
27
27
|
import { i as testRegexWithBoundedInput, r as compileSafeRegex, t as redactSensitiveText } from "./redact-BSwbgwaV.js";
|
|
@@ -34,8 +34,8 @@ import { t as resolveIMessageAccount } from "./accounts-BFS_qklA.js";
|
|
|
34
34
|
import { i as resolveSessionTranscriptPath, n as resolveSessionFilePath, o as resolveSessionTranscriptsDirForAgent, r as resolveSessionFilePathOptions, s as resolveStorePath, t as resolveDefaultSessionStorePath } from "./paths-7EEBmI5a.js";
|
|
35
35
|
import { n as onSessionTranscriptUpdate, t as emitSessionTranscriptUpdate } from "./transcript-events-uYL2gEou.js";
|
|
36
36
|
import { a as canonicalizeBase64, i as resolveImageSanitizationLimits, n as sanitizeImageBlocks, o as estimateBase64DecodedBytes, r as sanitizeToolResultImages } from "./tool-images-HRwkh81U.js";
|
|
37
|
-
import { C as minimaxUnderstandImage, S as extractTextFromChatContent, _ as formatToolSummary, a as resolveProviderVisionModelFromConfig, b as findCodeRegions, c as extractThinkingFromTaggedStream, d as inferToolMetaFromArgs, f as isAssistantMessage, g as stripThinkingTagsFromText, h as stripMinimaxToolCallXml, i as decodeDataUrl, l as extractThinkingFromTaggedText, m as stripDowngradedToolCallText, n as coerceImageAssistantText, o as extractAssistantText$1, p as promoteThinkingTagsToBlocks, r as coerceImageModelConfig, s as extractAssistantThinking, u as formatReasoningMessage, v as resolveToolDisplay, w as ensureSquidClawModelsJson, x as isInsideCode, y as stripReasoningTagsFromText } from "./image-
|
|
38
|
-
import { _ as resolveAttachmentKind, a as resolveAutoImageModel, b as modelSupportsVision, c as applyTemplate, d as normalizeMediaUnderstandingChatType, f as resolveMediaUnderstandingScope, h as registerUnhandledRejectionHandler, i as normalizeMediaAttachments, l as resolveConcurrency, m as buildRandomTempFilePath, n as buildProviderRegistry, o as resolveMediaAttachmentLocalRoots, p as CLI_OUTPUT_MAX_BUFFER, r as createMediaAttachmentCache, s as runCapability, t as runAudioTranscription, u as resolveTimeoutMs$2, v as findModelInCatalog, y as loadModelCatalog } from "./audio-transcription-runner-
|
|
37
|
+
import { C as minimaxUnderstandImage, S as extractTextFromChatContent, _ as formatToolSummary, a as resolveProviderVisionModelFromConfig, b as findCodeRegions, c as extractThinkingFromTaggedStream, d as inferToolMetaFromArgs, f as isAssistantMessage, g as stripThinkingTagsFromText, h as stripMinimaxToolCallXml, i as decodeDataUrl, l as extractThinkingFromTaggedText, m as stripDowngradedToolCallText, n as coerceImageAssistantText, o as extractAssistantText$1, p as promoteThinkingTagsToBlocks, r as coerceImageModelConfig, s as extractAssistantThinking, u as formatReasoningMessage, v as resolveToolDisplay, w as ensureSquidClawModelsJson, x as isInsideCode, y as stripReasoningTagsFromText } from "./image-COAbpp2B.js";
|
|
38
|
+
import { _ as resolveAttachmentKind, a as resolveAutoImageModel, b as modelSupportsVision, c as applyTemplate, d as normalizeMediaUnderstandingChatType, f as resolveMediaUnderstandingScope, h as registerUnhandledRejectionHandler, i as normalizeMediaAttachments, l as resolveConcurrency, m as buildRandomTempFilePath, n as buildProviderRegistry, o as resolveMediaAttachmentLocalRoots, p as CLI_OUTPUT_MAX_BUFFER, r as createMediaAttachmentCache, s as runCapability, t as runAudioTranscription, u as resolveTimeoutMs$2, v as findModelInCatalog, y as loadModelCatalog } from "./audio-transcription-runner-DUC0ItDY.js";
|
|
39
39
|
import { a as getDefaultMediaLocalRoots, i as getAgentScopedMediaLocalRoots, n as fetchRemoteMedia, r as readResponseWithLimit, t as MediaFetchError } from "./fetch-COEkF6YP.js";
|
|
40
40
|
import { n as fetchWithTimeout, t as bindAbortRelay } from "./fetch-timeout-Wgx3OXYj.js";
|
|
41
41
|
import { n as withStrictGuardedFetchMode, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-CcP28UT1.js";
|
|
@@ -72,7 +72,7 @@ import { CURRENT_SESSION_VERSION, DefaultResourceLoader, SessionManager, Setting
|
|
|
72
72
|
import { EdgeTTS } from "node-edge-tts";
|
|
73
73
|
import { createServer } from "node:http";
|
|
74
74
|
import { ProxyAgent, fetch as fetch$1 } from "undici";
|
|
75
|
-
import WebSocket
|
|
75
|
+
import WebSocket, { WebSocket as WebSocket$1 } from "ws";
|
|
76
76
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
77
77
|
import { createJiti } from "jiti";
|
|
78
78
|
import AjvPkg from "ajv";
|
|
@@ -8233,7 +8233,7 @@ var GatewayClient = class {
|
|
|
8233
8233
|
if (fingerprint !== expected) return /* @__PURE__ */ new Error("gateway tls fingerprint mismatch");
|
|
8234
8234
|
});
|
|
8235
8235
|
}
|
|
8236
|
-
this.ws = new WebSocket(url, wsOptions);
|
|
8236
|
+
this.ws = new WebSocket$1(url, wsOptions);
|
|
8237
8237
|
this.ws.on("open", () => {
|
|
8238
8238
|
if (url.startsWith("wss://") && this.opts.tlsFingerprint) {
|
|
8239
8239
|
const tlsError = this.validateTlsFingerprint();
|
|
@@ -8429,7 +8429,7 @@ var GatewayClient = class {
|
|
|
8429
8429
|
const connectChallengeTimeoutMs = typeof rawConnectDelayMs === "number" && Number.isFinite(rawConnectDelayMs) ? Math.max(250, Math.min(1e4, rawConnectDelayMs)) : 2e3;
|
|
8430
8430
|
if (this.connectTimer) clearTimeout(this.connectTimer);
|
|
8431
8431
|
this.connectTimer = setTimeout(() => {
|
|
8432
|
-
if (this.connectSent || this.ws?.readyState !== WebSocket.OPEN) return;
|
|
8432
|
+
if (this.connectSent || this.ws?.readyState !== WebSocket$1.OPEN) return;
|
|
8433
8433
|
this.opts.onConnectError?.(/* @__PURE__ */ new Error("gateway connect challenge timeout"));
|
|
8434
8434
|
this.ws?.close(1008, "connect challenge timeout");
|
|
8435
8435
|
}, connectChallengeTimeoutMs);
|
|
@@ -8471,7 +8471,7 @@ var GatewayClient = class {
|
|
|
8471
8471
|
return null;
|
|
8472
8472
|
}
|
|
8473
8473
|
async request(method, params, opts) {
|
|
8474
|
-
if (!this.ws || this.ws.readyState !== WebSocket.OPEN) throw new Error("gateway not connected");
|
|
8474
|
+
if (!this.ws || this.ws.readyState !== WebSocket$1.OPEN) throw new Error("gateway not connected");
|
|
8475
8475
|
const id = randomUUID();
|
|
8476
8476
|
const frame = {
|
|
8477
8477
|
type: "req",
|
|
@@ -9893,7 +9893,7 @@ function normalizeReplyPayload(payload, opts = {}) {
|
|
|
9893
9893
|
*/
|
|
9894
9894
|
let deliverRuntimePromise$2 = null;
|
|
9895
9895
|
function loadDeliverRuntime$2() {
|
|
9896
|
-
deliverRuntimePromise$2 ??= import("./deliver-runtime-
|
|
9896
|
+
deliverRuntimePromise$2 ??= import("./deliver-runtime-BJoBkkm_.js");
|
|
9897
9897
|
return deliverRuntimePromise$2;
|
|
9898
9898
|
}
|
|
9899
9899
|
/**
|
|
@@ -11181,7 +11181,7 @@ const DEFAULT_SUBAGENT_ANNOUNCE_TIMEOUT_MS = 6e4;
|
|
|
11181
11181
|
const MAX_TIMER_SAFE_TIMEOUT_MS = 2147e6;
|
|
11182
11182
|
let subagentRegistryRuntimePromise = null;
|
|
11183
11183
|
function loadSubagentRegistryRuntime() {
|
|
11184
|
-
subagentRegistryRuntimePromise ??= import("./subagent-registry-runtime-
|
|
11184
|
+
subagentRegistryRuntimePromise ??= import("./subagent-registry-runtime-CrVeg8cq.js");
|
|
11185
11185
|
return subagentRegistryRuntimePromise;
|
|
11186
11186
|
}
|
|
11187
11187
|
const DIRECT_ANNOUNCE_TRANSIENT_RETRY_DELAYS_MS = FAST_TEST_MODE ? [
|
|
@@ -14535,7 +14535,7 @@ async function runWithConcurrency(tasks, limit) {
|
|
|
14535
14535
|
//#region src/media-understanding/echo-transcript.ts
|
|
14536
14536
|
let deliverRuntimePromise$1 = null;
|
|
14537
14537
|
function loadDeliverRuntime$1() {
|
|
14538
|
-
deliverRuntimePromise$1 ??= import("./deliver-runtime-
|
|
14538
|
+
deliverRuntimePromise$1 ??= import("./deliver-runtime-BJoBkkm_.js");
|
|
14539
14539
|
return deliverRuntimePromise$1;
|
|
14540
14540
|
}
|
|
14541
14541
|
const DEFAULT_ECHO_TRANSCRIPT_FORMAT = "📝 \"{transcript}\"";
|
|
@@ -51470,7 +51470,7 @@ const warnedContexts = /* @__PURE__ */ new Map();
|
|
|
51470
51470
|
const log$10 = createSubsystemLogger("session-maintenance-warning");
|
|
51471
51471
|
let deliverRuntimePromise = null;
|
|
51472
51472
|
function loadDeliverRuntime() {
|
|
51473
|
-
deliverRuntimePromise ??= import("./deliver-runtime-
|
|
51473
|
+
deliverRuntimePromise ??= import("./deliver-runtime-BJoBkkm_.js");
|
|
51474
51474
|
return deliverRuntimePromise;
|
|
51475
51475
|
}
|
|
51476
51476
|
function shouldSendWarning() {
|
|
@@ -56447,7 +56447,7 @@ const VISION_PROVIDERS = [
|
|
|
56447
56447
|
];
|
|
56448
56448
|
let imageRuntimePromise = null;
|
|
56449
56449
|
function loadImageRuntime() {
|
|
56450
|
-
imageRuntimePromise ??= import("./image-runtime-
|
|
56450
|
+
imageRuntimePromise ??= import("./image-runtime-Dkwf1-U3.js");
|
|
56451
56451
|
return imageRuntimePromise;
|
|
56452
56452
|
}
|
|
56453
56453
|
/**
|
|
@@ -58508,7 +58508,7 @@ async function resolveDiscordPreflightAudioMentionContext(params) {
|
|
|
58508
58508
|
hasTypedText
|
|
58509
58509
|
};
|
|
58510
58510
|
try {
|
|
58511
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
58511
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-B5XvcdFX.js");
|
|
58512
58512
|
if (params.abortSignal?.aborted) return {
|
|
58513
58513
|
hasAudioAttachment,
|
|
58514
58514
|
hasTypedText
|
|
@@ -65902,7 +65902,7 @@ let slackSenderRuntimePromise = null;
|
|
|
65902
65902
|
let signalSenderRuntimePromise = null;
|
|
65903
65903
|
let imessageSenderRuntimePromise = null;
|
|
65904
65904
|
function loadWhatsAppSenderRuntime() {
|
|
65905
|
-
whatsappSenderRuntimePromise ??= import("./deps-send-whatsapp.runtime-
|
|
65905
|
+
whatsappSenderRuntimePromise ??= import("./deps-send-whatsapp.runtime-CO3zaqTI.js");
|
|
65906
65906
|
return whatsappSenderRuntimePromise;
|
|
65907
65907
|
}
|
|
65908
65908
|
function loadTelegramSenderRuntime() {
|
|
@@ -69612,7 +69612,7 @@ function createDiscordGatewayPlugin(params) {
|
|
|
69612
69612
|
return super.registerClient(client);
|
|
69613
69613
|
}
|
|
69614
69614
|
createWebSocket(url) {
|
|
69615
|
-
return new WebSocket
|
|
69615
|
+
return new WebSocket(url, { agent: wsAgent });
|
|
69616
69616
|
}
|
|
69617
69617
|
}
|
|
69618
69618
|
return new ProxyGatewayPlugin();
|
|
@@ -78763,7 +78763,7 @@ function loadSlashCommandsRuntime() {
|
|
|
78763
78763
|
return slashCommandsRuntimePromise;
|
|
78764
78764
|
}
|
|
78765
78765
|
function loadSlashDispatchRuntime() {
|
|
78766
|
-
slashDispatchRuntimePromise ??= import("./slash-dispatch.runtime-
|
|
78766
|
+
slashDispatchRuntimePromise ??= import("./slash-dispatch.runtime-DxM7VUio.js");
|
|
78767
78767
|
return slashDispatchRuntimePromise;
|
|
78768
78768
|
}
|
|
78769
78769
|
function loadSlashSkillCommandsRuntime() {
|
|
@@ -82132,7 +82132,7 @@ const buildTelegramMessageContext = async ({ primaryCtx, allMedia, replyMedia =
|
|
|
82132
82132
|
const disableAudioPreflight = firstDefined$1(topicConfig?.disableAudioPreflight, groupConfig?.disableAudioPreflight) === true;
|
|
82133
82133
|
let preflightTranscript;
|
|
82134
82134
|
if (isGroup && requireMention && hasAudio && !hasUserText && mentionRegexes.length > 0 && !disableAudioPreflight) try {
|
|
82135
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
82135
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-B5XvcdFX.js");
|
|
82136
82136
|
preflightTranscript = await transcribeFirstAudio({
|
|
82137
82137
|
ctx: {
|
|
82138
82138
|
MediaPaths: allMedia.length > 0 ? allMedia.map((m) => m.path) : void 0,
|
|
@@ -85058,7 +85058,7 @@ function loadWebLoginQr() {
|
|
|
85058
85058
|
return webLoginQrPromise;
|
|
85059
85059
|
}
|
|
85060
85060
|
function loadWebChannel() {
|
|
85061
|
-
webChannelPromise ??= import("./web-
|
|
85061
|
+
webChannelPromise ??= import("./web-BmVAq-Dx.js");
|
|
85062
85062
|
return webChannelPromise;
|
|
85063
85063
|
}
|
|
85064
85064
|
function loadWhatsAppActions() {
|
|
@@ -93321,7 +93321,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
|
|
|
93321
93321
|
* Throws if the connection is not open.
|
|
93322
93322
|
*/
|
|
93323
93323
|
send(event) {
|
|
93324
|
-
if (!this.ws || this.ws.readyState !== WebSocket
|
|
93324
|
+
if (!this.ws || this.ws.readyState !== WebSocket.OPEN) throw new Error(`OpenAIWebSocketManager: cannot send — connection is not open (readyState=${this.ws?.readyState ?? "no socket"})`);
|
|
93325
93325
|
this.ws.send(JSON.stringify(event));
|
|
93326
93326
|
}
|
|
93327
93327
|
/**
|
|
@@ -93338,7 +93338,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
|
|
|
93338
93338
|
* Returns true if the WebSocket is currently open and ready to send.
|
|
93339
93339
|
*/
|
|
93340
93340
|
isConnected() {
|
|
93341
|
-
return this.ws !== null && this.ws.readyState === WebSocket
|
|
93341
|
+
return this.ws !== null && this.ws.readyState === WebSocket.OPEN;
|
|
93342
93342
|
}
|
|
93343
93343
|
/**
|
|
93344
93344
|
* Permanently closes the WebSocket connection and disables auto-reconnect.
|
|
@@ -93348,7 +93348,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
|
|
|
93348
93348
|
this._cancelRetryTimer();
|
|
93349
93349
|
if (this.ws) {
|
|
93350
93350
|
this.ws.removeAllListeners();
|
|
93351
|
-
if (this.ws.readyState === WebSocket
|
|
93351
|
+
if (this.ws.readyState === WebSocket.OPEN || this.ws.readyState === WebSocket.CONNECTING) this.ws.close(1e3, "Client closed");
|
|
93352
93352
|
this.ws = null;
|
|
93353
93353
|
}
|
|
93354
93354
|
}
|
|
@@ -93358,7 +93358,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
|
|
|
93358
93358
|
reject(/* @__PURE__ */ new Error("OpenAIWebSocketManager: apiKey is required before connecting."));
|
|
93359
93359
|
return;
|
|
93360
93360
|
}
|
|
93361
|
-
const socket = new WebSocket
|
|
93361
|
+
const socket = new WebSocket(this.wsUrl, { headers: {
|
|
93362
93362
|
Authorization: `Bearer ${this.apiKey}`,
|
|
93363
93363
|
"OpenAI-Beta": "responses-websocket=v1"
|
|
93364
93364
|
} });
|
|
@@ -9,7 +9,7 @@ import { d as getChannelDock, o as normalizeThinkLevel, v as normalizeHyphenSlug
|
|
|
9
9
|
import { _ as normalizeChatType, r as normalizeChannelId } from "./plugins-D-K4oUXz.js";
|
|
10
10
|
import { t as generateSecureToken } from "./secure-random-CXrBi7Jq.js";
|
|
11
11
|
import { i as getImageMetadata, m as normalizeMessageChannel, n as buildImageResizeSideGrid, p as listDeliverableMessageChannels, s as resizeToJpeg, t as IMAGE_REDUCE_QUALITY_STEPS } from "./image-ops-QLLBkxzG.js";
|
|
12
|
-
import { C as ensureChromeExtensionRelayServer, D as PROFILE_POST_RESTART_WS_TIMEOUT_MS, E as PROFILE_ATTACH_RETRY_TIMEOUT_MS, G as DEFAULT_BROWSER_EVALUATE_ENABLED, H as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, I as resolveWritablePathWithinRoot, J as DEFAULT_SQUIDCLAW_BROWSER_PROFILE_NAME, K as DEFAULT_SQUIDCLAW_BROWSER_COLOR, M as DEFAULT_TRACE_DIR, N as DEFAULT_UPLOAD_DIR, O as resolveCdpReachabilityTimeouts, P as resolveExistingPathsWithinRoot, R as normalizeBrowserFormField, T as CDP_JSON_NEW_TIMEOUT_MS, U as DEFAULT_AI_SNAPSHOT_MAX_CHARS, V as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, W as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, _ as withBrowserNavigationPolicy, a as resolveSquidClawUserDataDir, b as fetchOk, c as resolveBrowserExecutableForPlatform, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, i as launchSquidClawChrome, j as DEFAULT_DOWNLOAD_DIR, l as captureScreenshot, m as InvalidBrowserNavigationUrlError, n as isChromeCdpReady, o as stopSquidClawChrome, p as snapshotAria, q as DEFAULT_SQUIDCLAW_BROWSER_ENABLED, r as isChromeReachable, u as createTargetViaCdp, v as appendCdpPath, w as stopChromeExtensionRelayServer, y as fetchJson, z as isLoopbackHost } from "./chrome-
|
|
12
|
+
import { C as ensureChromeExtensionRelayServer, D as PROFILE_POST_RESTART_WS_TIMEOUT_MS, E as PROFILE_ATTACH_RETRY_TIMEOUT_MS, G as DEFAULT_BROWSER_EVALUATE_ENABLED, H as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, I as resolveWritablePathWithinRoot, J as DEFAULT_SQUIDCLAW_BROWSER_PROFILE_NAME, K as DEFAULT_SQUIDCLAW_BROWSER_COLOR, M as DEFAULT_TRACE_DIR, N as DEFAULT_UPLOAD_DIR, O as resolveCdpReachabilityTimeouts, P as resolveExistingPathsWithinRoot, R as normalizeBrowserFormField, T as CDP_JSON_NEW_TIMEOUT_MS, U as DEFAULT_AI_SNAPSHOT_MAX_CHARS, V as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, W as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, _ as withBrowserNavigationPolicy, a as resolveSquidClawUserDataDir, b as fetchOk, c as resolveBrowserExecutableForPlatform, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, i as launchSquidClawChrome, j as DEFAULT_DOWNLOAD_DIR, l as captureScreenshot, m as InvalidBrowserNavigationUrlError, n as isChromeCdpReady, o as stopSquidClawChrome, p as snapshotAria, q as DEFAULT_SQUIDCLAW_BROWSER_ENABLED, r as isChromeReachable, u as createTargetViaCdp, v as appendCdpPath, w as stopChromeExtensionRelayServer, y as fetchJson, z as isLoopbackHost } from "./chrome-BTwG9Gvh.js";
|
|
13
13
|
import { a as syncSkillsToWorkspace, l as resolveSandboxInputPath, m as sanitizeEnvVars, u as resolveSandboxPath } from "./skills-BjHeDO5V.js";
|
|
14
14
|
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-DgNuZPBA.js";
|
|
15
15
|
import { n as extractErrorCode, r as formatErrorMessage } from "./errors-Dih7OXdL.js";
|
|
@@ -1278,7 +1278,7 @@ function isModuleNotFoundError(err) {
|
|
|
1278
1278
|
}
|
|
1279
1279
|
async function loadPwAiModule(mode) {
|
|
1280
1280
|
try {
|
|
1281
|
-
return await import("./pw-ai-
|
|
1281
|
+
return await import("./pw-ai-4QFtj-s9.js");
|
|
1282
1282
|
} catch (err) {
|
|
1283
1283
|
if (mode === "soft") return null;
|
|
1284
1284
|
if (isModuleNotFoundError(err)) return null;
|
|
@@ -3644,7 +3644,7 @@ function createProfileAvailability({ opts, profile, state, getProfileState, setP
|
|
|
3644
3644
|
//#region src/browser/server-context.reset.ts
|
|
3645
3645
|
async function closePlaywrightBrowserConnection() {
|
|
3646
3646
|
try {
|
|
3647
|
-
await (await import("./pw-ai-
|
|
3647
|
+
await (await import("./pw-ai-4QFtj-s9.js")).closePlaywrightBrowserConnection();
|
|
3648
3648
|
} catch {}
|
|
3649
3649
|
}
|
|
3650
3650
|
function createProfileResetOps({ profile, getProfileState, stopRunningBrowser, isHttpReachable, resolveSquidClawUserDataDir }) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ot as normalizeAccountId } from "./run-with-concurrency-
|
|
2
|
-
import { v as resolveAccountEntry, y as createAccountListHelpers } from "./accounts-
|
|
1
|
+
import { ot as normalizeAccountId } from "./run-with-concurrency-EUEKeAa8.js";
|
|
2
|
+
import { v as resolveAccountEntry, y as createAccountListHelpers } from "./accounts-DKXGC2Vu.js";
|
|
3
3
|
|
|
4
4
|
//#region src/signal/accounts.ts
|
|
5
5
|
const { listAccountIds, resolveDefaultAccountId } = createAccountListHelpers("signal");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ot as normalizeAccountId } from "./run-with-concurrency-
|
|
2
|
-
import { v as resolveAccountEntry, y as createAccountListHelpers } from "./accounts-
|
|
1
|
+
import { ot as normalizeAccountId } from "./run-with-concurrency-EUEKeAa8.js";
|
|
2
|
+
import { v as resolveAccountEntry, y as createAccountListHelpers } from "./accounts-DKXGC2Vu.js";
|
|
3
3
|
|
|
4
4
|
//#region src/imessage/accounts.ts
|
|
5
5
|
const { listAccountIds, resolveDefaultAccountId } = createAccountListHelpers("imessage");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { at as DEFAULT_ACCOUNT_ID, ot as normalizeAccountId, st as normalizeOptionalAccountId } from "./run-with-concurrency-
|
|
2
|
-
import { Tr as formatCliCommand } from "./config-
|
|
3
|
-
import { B as success, G as getChildLogger, I as info, j as defaultRuntime, m as jidToE164, y as resolveUserPath } from "./logger-
|
|
1
|
+
import { at as DEFAULT_ACCOUNT_ID, ot as normalizeAccountId, st as normalizeOptionalAccountId } from "./run-with-concurrency-EUEKeAa8.js";
|
|
2
|
+
import { Tr as formatCliCommand } from "./config-sMifxgre.js";
|
|
3
|
+
import { B as success, G as getChildLogger, I as info, j as defaultRuntime, m as jidToE164, y as resolveUserPath } from "./logger-DIb2cGHp.js";
|
|
4
4
|
import { o as resolveOAuthDir } from "./paths-Duwviem_.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import fs from "node:fs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { at as DEFAULT_ACCOUNT_ID } from "./run-with-concurrency-
|
|
2
|
-
import { Tr as formatCliCommand } from "./config-
|
|
1
|
+
import { at as DEFAULT_ACCOUNT_ID } from "./run-with-concurrency-EUEKeAa8.js";
|
|
2
|
+
import { Tr as formatCliCommand } from "./config-sMifxgre.js";
|
|
3
3
|
import crypto from "node:crypto";
|
|
4
4
|
|
|
5
5
|
//#region src/logging/redact-identifier.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Ht as normalizeProviderId } from "./config-
|
|
2
|
-
import { r as formatErrorMessage } from "./errors-
|
|
1
|
+
import { Ht as normalizeProviderId } from "./config-sMifxgre.js";
|
|
2
|
+
import { r as formatErrorMessage } from "./errors-CgRPdp3o.js";
|
|
3
3
|
|
|
4
4
|
//#region src/infra/gemini-auth.ts
|
|
5
5
|
/**
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import "./run-with-concurrency-
|
|
2
|
-
import "./config-
|
|
3
|
-
import { L as logVerbose, z as shouldLogVerbose } from "./logger-
|
|
1
|
+
import "./run-with-concurrency-EUEKeAa8.js";
|
|
2
|
+
import "./config-sMifxgre.js";
|
|
3
|
+
import { L as logVerbose, z as shouldLogVerbose } from "./logger-DIb2cGHp.js";
|
|
4
4
|
import "./paths-Duwviem_.js";
|
|
5
|
-
import "./accounts-
|
|
6
|
-
import "./plugins-
|
|
7
|
-
import "./thinking-
|
|
8
|
-
import "./accounts-
|
|
9
|
-
import "./image-ops-
|
|
10
|
-
import "./pi-embedded-helpers-
|
|
11
|
-
import "./accounts-
|
|
5
|
+
import "./accounts-DKXGC2Vu.js";
|
|
6
|
+
import "./plugins-BlTrm4bw.js";
|
|
7
|
+
import "./thinking-Cih_nxDY.js";
|
|
8
|
+
import "./accounts-BhCAa-05.js";
|
|
9
|
+
import "./image-ops-DovJMvdf.js";
|
|
10
|
+
import "./pi-embedded-helpers-Cb_h9zSJ.js";
|
|
11
|
+
import "./accounts-BChIl5as.js";
|
|
12
12
|
import "./github-copilot-token-C0y6vp3r.js";
|
|
13
|
-
import "./paths-
|
|
14
|
-
import { i as normalizeMediaAttachments, o as resolveMediaAttachmentLocalRoots, p as isAudioAttachment, t as runAudioTranscription } from "./audio-transcription-runner-
|
|
15
|
-
import "./image-
|
|
16
|
-
import "./chrome-
|
|
17
|
-
import "./skills-
|
|
18
|
-
import "./path-alias-guards-
|
|
19
|
-
import "./redact-
|
|
20
|
-
import "./errors-
|
|
21
|
-
import "./fs-safe-
|
|
22
|
-
import "./proxy-env-
|
|
23
|
-
import "./store-
|
|
24
|
-
import "./tool-images-
|
|
25
|
-
import "./fetch-guard-
|
|
26
|
-
import "./api-key-rotation-
|
|
27
|
-
import "./local-roots-
|
|
28
|
-
import "./proxy-fetch-
|
|
13
|
+
import "./paths-CK3lTJYw.js";
|
|
14
|
+
import { i as normalizeMediaAttachments, o as resolveMediaAttachmentLocalRoots, p as isAudioAttachment, t as runAudioTranscription } from "./audio-transcription-runner-CBASOlbc.js";
|
|
15
|
+
import "./image-BJXV9IMV.js";
|
|
16
|
+
import "./chrome-BlXpNOQu.js";
|
|
17
|
+
import "./skills-di-5uS9y.js";
|
|
18
|
+
import "./path-alias-guards-BfpU4lAT.js";
|
|
19
|
+
import "./redact-9WsNyb7S.js";
|
|
20
|
+
import "./errors-CgRPdp3o.js";
|
|
21
|
+
import "./fs-safe-5aQcM_qM.js";
|
|
22
|
+
import "./proxy-env-Cdh-OQYk.js";
|
|
23
|
+
import "./store-Dn_E3uaN.js";
|
|
24
|
+
import "./tool-images-D6a1Ua4p.js";
|
|
25
|
+
import "./fetch-guard-BxMLJbqt.js";
|
|
26
|
+
import "./api-key-rotation-BqhYVBBK.js";
|
|
27
|
+
import "./local-roots-CIwDgpY2.js";
|
|
28
|
+
import "./proxy-fetch-Dt5BedH8.js";
|
|
29
29
|
|
|
30
30
|
//#region src/media-understanding/audio-preflight.ts
|
|
31
31
|
/**
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { O as runExec, U as resolveAgentModelFallbackValues, W as resolveAgentModelPrimaryValue } from "./run-with-concurrency-
|
|
2
|
-
import { Fn as resolveSquidClawAgentDir, Ht as normalizeProviderId, Yt as normalizeGoogleModelId, dn as resolveApiKeyForProvider, f as DEFAULT_IMESSAGE_ATTACHMENT_ROOTS, h as resolveIMessageAttachmentRoots, m as mergeInboundPathRoots, n as loadConfig, p as isInboundPathAllowed, un as requireApiKey } from "./config-
|
|
3
|
-
import { L as logVerbose, O as createSubsystemLogger, Y as resolvePreferredSquidClawTmpDir, z as shouldLogVerbose } from "./logger-
|
|
4
|
-
import { _ as normalizeChatType } from "./plugins-
|
|
5
|
-
import { c as detectMime, f as isAudioFileName, m as kindFromMime, u as getFileExtension } from "./image-ops-
|
|
6
|
-
import { C as ensureSquidClawModelsJson, t as describeImageWithModel } from "./image-
|
|
1
|
+
import { O as runExec, U as resolveAgentModelFallbackValues, W as resolveAgentModelPrimaryValue } from "./run-with-concurrency-EUEKeAa8.js";
|
|
2
|
+
import { Fn as resolveSquidClawAgentDir, Ht as normalizeProviderId, Yt as normalizeGoogleModelId, dn as resolveApiKeyForProvider, f as DEFAULT_IMESSAGE_ATTACHMENT_ROOTS, h as resolveIMessageAttachmentRoots, m as mergeInboundPathRoots, n as loadConfig, p as isInboundPathAllowed, un as requireApiKey } from "./config-sMifxgre.js";
|
|
3
|
+
import { L as logVerbose, O as createSubsystemLogger, Y as resolvePreferredSquidClawTmpDir, z as shouldLogVerbose } from "./logger-DIb2cGHp.js";
|
|
4
|
+
import { _ as normalizeChatType } from "./plugins-BlTrm4bw.js";
|
|
5
|
+
import { c as detectMime, f as isAudioFileName, m as kindFromMime, u as getFileExtension } from "./image-ops-DovJMvdf.js";
|
|
6
|
+
import { C as ensureSquidClawModelsJson, t as describeImageWithModel } from "./image-BJXV9IMV.js";
|
|
7
7
|
import { n as fetchWithTimeout } from "./fetch-timeout-CR10Uz2k.js";
|
|
8
|
-
import { t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
9
|
-
import { n as executeWithApiKeyRotation, r as parseGeminiAuth, t as collectProviderApiKeysForExecution } from "./api-key-rotation-
|
|
10
|
-
import { i as fetchRemoteMedia, n as getDefaultMediaLocalRoots, r as MediaFetchError } from "./local-roots-
|
|
11
|
-
import { n as resolveProxyFetchFromEnv } from "./proxy-fetch-
|
|
8
|
+
import { t as fetchWithSsrFGuard } from "./fetch-guard-BxMLJbqt.js";
|
|
9
|
+
import { n as executeWithApiKeyRotation, r as parseGeminiAuth, t as collectProviderApiKeysForExecution } from "./api-key-rotation-BqhYVBBK.js";
|
|
10
|
+
import { i as fetchRemoteMedia, n as getDefaultMediaLocalRoots, r as MediaFetchError } from "./local-roots-CIwDgpY2.js";
|
|
11
|
+
import { n as resolveProxyFetchFromEnv } from "./proxy-fetch-Dt5BedH8.js";
|
|
12
12
|
import path from "node:path";
|
|
13
13
|
import { constants } from "node:fs";
|
|
14
14
|
import os from "node:os";
|
|
@@ -990,7 +990,7 @@ var MediaAttachmentCache = class {
|
|
|
990
990
|
const log = createSubsystemLogger("model-catalog");
|
|
991
991
|
let modelCatalogPromise = null;
|
|
992
992
|
let hasLoggedModelCatalogError = false;
|
|
993
|
-
const defaultImportPiSdk = () => import("./pi-model-discovery-
|
|
993
|
+
const defaultImportPiSdk = () => import("./pi-model-discovery-B3B3R7L9.js").then((n) => n.r);
|
|
994
994
|
let importPiSdk = defaultImportPiSdk;
|
|
995
995
|
const CODEX_PROVIDER = "openai-codex";
|
|
996
996
|
const OPENAI_CODEX_GPT53_MODEL_ID = "gpt-5.3-codex";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { f as isRecord } from "./logger-
|
|
1
|
+
import { f as isRecord } from "./logger-DIb2cGHp.js";
|
|
2
2
|
import "./paths-Duwviem_.js";
|
|
3
3
|
import { n as fetchWithTimeout } from "./fetch-timeout-CR10Uz2k.js";
|
|
4
|
-
import { t as makeProxyFetch } from "./proxy-fetch-
|
|
4
|
+
import { t as makeProxyFetch } from "./proxy-fetch-Dt5BedH8.js";
|
|
5
5
|
import "./proxy-BOZmkV9K.js";
|
|
6
6
|
|
|
7
7
|
//#region src/telegram/audit-membership-runtime.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { en as resolveRetryConfig, tn as retryAsync } from "./config-
|
|
2
|
-
import { O as createSubsystemLogger } from "./logger-
|
|
3
|
-
import { r as formatErrorMessage } from "./errors-
|
|
1
|
+
import { en as resolveRetryConfig, tn as retryAsync } from "./config-sMifxgre.js";
|
|
2
|
+
import { O as createSubsystemLogger } from "./logger-DIb2cGHp.js";
|
|
3
|
+
import { r as formatErrorMessage } from "./errors-CgRPdp3o.js";
|
|
4
4
|
import { RateLimitError } from "@buape/carbon";
|
|
5
5
|
|
|
6
6
|
//#region src/infra/retry-policy.ts
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { $ as normalizeAgentId, J as buildAgentMainSessionKey, X as buildGroupHistoryKey, at as DEFAULT_ACCOUNT_ID, q as DEFAULT_MAIN_KEY } from "./run-with-concurrency-
|
|
2
|
-
import { Tr as formatCliCommand, n as loadConfig, ur as normalizeChatChannelId } from "./config-
|
|
3
|
-
import { C as sleep, G as getChildLogger, L as logVerbose, O as createSubsystemLogger, T as toWhatsappJid, h as normalizeE164, j as defaultRuntime, m as jidToE164, o as clamp, p as isSelfChatMode, v as resolveJidToE164, z as shouldLogVerbose } from "./logger-
|
|
4
|
-
import { i as resolveWhatsAppAccount, p as readWebSelfId, s as getWebAuthAgeMs } from "./accounts-
|
|
5
|
-
import { C as resolveChannelGroupRequireMention, S as resolveChannelGroupPolicy } from "./thinking-
|
|
6
|
-
import { A as shouldComputeCommandAuthorized, B as formatDurationPrecise, C as createInboundDebouncer, D as buildAgentSessionKey, E as createDedupeCache, G as resolveOpenProviderRuntimeGroupPolicy, H as finalizeInboundContext, I as resolveIdentityNamePrefix, K as warnMissingProviderGroupPolicyFallbackOnce, L as resolveMessagePrefix, O as resolveAgentRoute, R as buildMentionRegexes, T as formatInboundEnvelope, V as enqueueSystemEvent, W as resolveDefaultGroupPolicy, _ as resolveDmGroupAccessWithCommandGate, a as parseActivationCommand, b as shouldAckReactionForWhatsApp, c as computeBackoff, d as buildPairingReply, f as resolveMentionGating, g as readStoreAllowFromForDmPolicy, h as recordPendingHistoryEntryIfEnabled, i as normalizeGroupActivation, k as hasControlCommand, l as sleepWithAbort, m as buildHistoryContextFromEntries, p as DEFAULT_GROUP_HISTORY_LIMIT, s as resolveInboundSessionEnvelopeContext, t as getReplyFromConfig, u as createReplyPrefixOptions, v as resolveDmGroupAccessWithLists, w as resolveInboundDebounceMs, x as dispatchReplyWithBufferedBlockDispatcher, y as resolvePinnedMainDmOwnerFromAllowlist, z as normalizeMentionText } from "./reply-
|
|
7
|
-
import { _t as loadSessionStore, bt as updateLastRoute, in as resolveGroupSessionKey, yt as recordSessionMetaFromInbound } from "./pi-embedded-helpers-
|
|
8
|
-
import { s as resolveStorePath } from "./paths-
|
|
9
|
-
import { X as toLocationContext, Y as formatLocationText, et as readChannelAllowFromStoreSync, nt as upsertChannelPairingRequest } from "./send-
|
|
10
|
-
import { f as registerUnhandledRejectionHandler } from "./audio-transcription-runner-
|
|
11
|
-
import { i as saveMediaBuffer } from "./store-
|
|
12
|
-
import { t as getAgentScopedMediaLocalRoots } from "./local-roots-
|
|
13
|
-
import { a as loadWebMedia, d as chunkMarkdownTextWithMode, h as resolveTextChunkLimit, m as resolveChunkMode, s as resolveMarkdownTableMode } from "./ir-
|
|
14
|
-
import { n as recordChannelActivity } from "./channel-activity-
|
|
15
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
16
|
-
import { r as setActiveWebListener } from "./active-listener-
|
|
17
|
-
import { i as markdownToWhatsApp, r as sendReactionWhatsApp } from "./outbound-
|
|
18
|
-
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-
|
|
1
|
+
import { $ as normalizeAgentId, J as buildAgentMainSessionKey, X as buildGroupHistoryKey, at as DEFAULT_ACCOUNT_ID, q as DEFAULT_MAIN_KEY } from "./run-with-concurrency-EUEKeAa8.js";
|
|
2
|
+
import { Tr as formatCliCommand, n as loadConfig, ur as normalizeChatChannelId } from "./config-sMifxgre.js";
|
|
3
|
+
import { C as sleep, G as getChildLogger, L as logVerbose, O as createSubsystemLogger, T as toWhatsappJid, h as normalizeE164, j as defaultRuntime, m as jidToE164, o as clamp, p as isSelfChatMode, v as resolveJidToE164, z as shouldLogVerbose } from "./logger-DIb2cGHp.js";
|
|
4
|
+
import { i as resolveWhatsAppAccount, p as readWebSelfId, s as getWebAuthAgeMs } from "./accounts-DKXGC2Vu.js";
|
|
5
|
+
import { C as resolveChannelGroupRequireMention, S as resolveChannelGroupPolicy } from "./thinking-Cih_nxDY.js";
|
|
6
|
+
import { A as shouldComputeCommandAuthorized, B as formatDurationPrecise, C as createInboundDebouncer, D as buildAgentSessionKey, E as createDedupeCache, G as resolveOpenProviderRuntimeGroupPolicy, H as finalizeInboundContext, I as resolveIdentityNamePrefix, K as warnMissingProviderGroupPolicyFallbackOnce, L as resolveMessagePrefix, O as resolveAgentRoute, R as buildMentionRegexes, T as formatInboundEnvelope, V as enqueueSystemEvent, W as resolveDefaultGroupPolicy, _ as resolveDmGroupAccessWithCommandGate, a as parseActivationCommand, b as shouldAckReactionForWhatsApp, c as computeBackoff, d as buildPairingReply, f as resolveMentionGating, g as readStoreAllowFromForDmPolicy, h as recordPendingHistoryEntryIfEnabled, i as normalizeGroupActivation, k as hasControlCommand, l as sleepWithAbort, m as buildHistoryContextFromEntries, p as DEFAULT_GROUP_HISTORY_LIMIT, s as resolveInboundSessionEnvelopeContext, t as getReplyFromConfig, u as createReplyPrefixOptions, v as resolveDmGroupAccessWithLists, w as resolveInboundDebounceMs, x as dispatchReplyWithBufferedBlockDispatcher, y as resolvePinnedMainDmOwnerFromAllowlist, z as normalizeMentionText } from "./reply-wZhosbPd.js";
|
|
7
|
+
import { _t as loadSessionStore, bt as updateLastRoute, in as resolveGroupSessionKey, yt as recordSessionMetaFromInbound } from "./pi-embedded-helpers-Cb_h9zSJ.js";
|
|
8
|
+
import { s as resolveStorePath } from "./paths-CK3lTJYw.js";
|
|
9
|
+
import { X as toLocationContext, Y as formatLocationText, et as readChannelAllowFromStoreSync, nt as upsertChannelPairingRequest } from "./send-BMWyVUhm.js";
|
|
10
|
+
import { f as registerUnhandledRejectionHandler } from "./audio-transcription-runner-CBASOlbc.js";
|
|
11
|
+
import { i as saveMediaBuffer } from "./store-Dn_E3uaN.js";
|
|
12
|
+
import { t as getAgentScopedMediaLocalRoots } from "./local-roots-CIwDgpY2.js";
|
|
13
|
+
import { a as loadWebMedia, d as chunkMarkdownTextWithMode, h as resolveTextChunkLimit, m as resolveChunkMode, s as resolveMarkdownTableMode } from "./ir-DE2ewdq5.js";
|
|
14
|
+
import { n as recordChannelActivity } from "./channel-activity-95JVLzNY.js";
|
|
15
|
+
import { t as convertMarkdownTables } from "./tables-_e9wMygc.js";
|
|
16
|
+
import { r as setActiveWebListener } from "./active-listener-TTbK9PGk.js";
|
|
17
|
+
import { i as markdownToWhatsApp, r as sendReactionWhatsApp } from "./outbound-DDpRevO_.js";
|
|
18
|
+
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-CXVARKFK.js";
|
|
19
19
|
import { randomUUID } from "node:crypto";
|
|
20
20
|
import { DisconnectReason, downloadMediaMessage, extractMessageContent, getContentType, isJidGroup, normalizeMessageContent } from "@whiskeysockets/baileys";
|
|
21
21
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { R as isNotFoundPathError, z as isPathInside } from "./run-with-concurrency-
|
|
2
|
-
import { A as normalizeIpAddress, O as isLoopbackIpAddress, k as isPrivateOrLoopbackIpAddress, n as loadConfig } from "./config-
|
|
3
|
-
import { O as createSubsystemLogger, Y as resolvePreferredSquidClawTmpDir, a as CONFIG_DIR } from "./logger-
|
|
4
|
-
import { a as isErrno } from "./errors-
|
|
5
|
-
import { i as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-
|
|
6
|
-
import { o as isPrivateNetworkAllowedByPolicy, s as resolvePinnedHostnameWithPolicy, t as hasProxyEnvConfigured } from "./proxy-env-
|
|
1
|
+
import { R as isNotFoundPathError, z as isPathInside } from "./run-with-concurrency-EUEKeAa8.js";
|
|
2
|
+
import { A as normalizeIpAddress, O as isLoopbackIpAddress, k as isPrivateOrLoopbackIpAddress, n as loadConfig } from "./config-sMifxgre.js";
|
|
3
|
+
import { O as createSubsystemLogger, Y as resolvePreferredSquidClawTmpDir, a as CONFIG_DIR } from "./logger-DIb2cGHp.js";
|
|
4
|
+
import { a as isErrno } from "./errors-CgRPdp3o.js";
|
|
5
|
+
import { i as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-5aQcM_qM.js";
|
|
6
|
+
import { o as isPrivateNetworkAllowedByPolicy, s as resolvePinnedHostnameWithPolicy, t as hasProxyEnvConfigured } from "./proxy-env-Cdh-OQYk.js";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import fs from "node:fs";
|
|
9
9
|
import os from "node:os";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Gn as DEFAULT_MODEL, Kn as DEFAULT_PROVIDER, Ut as resolveConfiguredModelRef, dr as getActivePluginRegistry } from "./config-
|
|
2
|
-
import { D as isPlainObject, u as escapeRegExp } from "./logger-
|
|
3
|
-
import { r as normalizeChannelId } from "./plugins-
|
|
4
|
-
import { f as listChannelDocks, r as listThinkingLevels } from "./thinking-
|
|
1
|
+
import { Gn as DEFAULT_MODEL, Kn as DEFAULT_PROVIDER, Ut as resolveConfiguredModelRef, dr as getActivePluginRegistry } from "./config-sMifxgre.js";
|
|
2
|
+
import { D as isPlainObject, u as escapeRegExp } from "./logger-DIb2cGHp.js";
|
|
3
|
+
import { r as normalizeChannelId } from "./plugins-BlTrm4bw.js";
|
|
4
|
+
import { f as listChannelDocks, r as listThinkingLevels } from "./thinking-Cih_nxDY.js";
|
|
5
5
|
|
|
6
6
|
//#region src/config/commands.ts
|
|
7
7
|
function resolveAutoDefault(providerId) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as detectMime } from "./image-ops-
|
|
2
|
-
import { r as sanitizeToolResultImages } from "./tool-images-
|
|
1
|
+
import { c as detectMime } from "./image-ops-DovJMvdf.js";
|
|
2
|
+
import { r as sanitizeToolResultImages } from "./tool-images-D6a1Ua4p.js";
|
|
3
3
|
import fs from "node:fs/promises";
|
|
4
4
|
|
|
5
5
|
//#region src/infra/outbound/target-errors.ts
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { $ as normalizeAgentId, A as canUseBoundaryFileOpen, G as toAgentModelListLike, K as DEFAULT_AGENT_ID, M as openBoundaryFileSync, O as runExec, W as resolveAgentModelPrimaryValue, c as resolveAgentWorkspaceDir, ct as isBlockedObjectKey, i as resolveAgentConfig, l as resolveDefaultAgentId, o as resolveAgentEffectiveModelPrimary, t as runTasksWithConcurrency, z as isPathInside$2 } from "./run-with-concurrency-
|
|
3
|
-
import { C as sleep, D as isPlainObject$2, L as logVerbose, O as createSubsystemLogger, _ as resolveConfigDir, f as isRecord$3, k as stripAnsi, y as resolveUserPath } from "./logger-
|
|
2
|
+
import { $ as normalizeAgentId, A as canUseBoundaryFileOpen, G as toAgentModelListLike, K as DEFAULT_AGENT_ID, M as openBoundaryFileSync, O as runExec, W as resolveAgentModelPrimaryValue, c as resolveAgentWorkspaceDir, ct as isBlockedObjectKey, i as resolveAgentConfig, l as resolveDefaultAgentId, o as resolveAgentEffectiveModelPrimary, t as runTasksWithConcurrency, z as isPathInside$2 } from "./run-with-concurrency-EUEKeAa8.js";
|
|
3
|
+
import { C as sleep, D as isPlainObject$2, L as logVerbose, O as createSubsystemLogger, _ as resolveConfigDir, f as isRecord$3, k as stripAnsi, y as resolveUserPath } from "./logger-DIb2cGHp.js";
|
|
4
4
|
import { c as resolveStateDir, d as resolveRequiredHomeDir, i as resolveDefaultConfigCandidates, l as expandHomePrefix, r as resolveConfigPath, s as resolveOAuthPath, t as DEFAULT_GATEWAY_PORT } from "./paths-Duwviem_.js";
|
|
5
5
|
import { a as saveJsonFile, i as loadJsonFile, r as resolveCopilotApiToken, t as DEFAULT_COPILOT_API_BASE_URL } from "./github-copilot-token-C0y6vp3r.js";
|
|
6
6
|
import { createRequire } from "node:module";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import fs from "node:fs";
|
|
9
9
|
import os from "node:os";
|
|
10
|
-
import
|
|
10
|
+
import JSON5 from "json5";
|
|
11
11
|
import { isDeepStrictEqual } from "node:util";
|
|
12
12
|
import fs$1 from "node:fs/promises";
|
|
13
13
|
import { execFileSync, spawn } from "node:child_process";
|
|
@@ -8162,7 +8162,7 @@ const defaultResolver = {
|
|
|
8162
8162
|
resolvedPath,
|
|
8163
8163
|
rootRealDir
|
|
8164
8164
|
}),
|
|
8165
|
-
parseJson: (raw) =>
|
|
8165
|
+
parseJson: (raw) => JSON5.parse(raw)
|
|
8166
8166
|
};
|
|
8167
8167
|
/**
|
|
8168
8168
|
* Resolves all $include directives in a parsed config object.
|
|
@@ -17371,7 +17371,7 @@ function resolveConfigPathForDeps(deps) {
|
|
|
17371
17371
|
function normalizeDeps(overrides = {}) {
|
|
17372
17372
|
return {
|
|
17373
17373
|
fs: overrides.fs ?? fs,
|
|
17374
|
-
json5: overrides.json5 ??
|
|
17374
|
+
json5: overrides.json5 ?? JSON5,
|
|
17375
17375
|
env: overrides.env ?? process.env,
|
|
17376
17376
|
homedir: overrides.homedir ?? (() => resolveRequiredHomeDir(overrides.env ?? process.env, os.homedir)),
|
|
17377
17377
|
configPath: overrides.configPath ?? "",
|
|
@@ -17382,11 +17382,11 @@ function maybeLoadDotEnvForConfig(env) {
|
|
|
17382
17382
|
if (env !== process.env) return;
|
|
17383
17383
|
loadDotEnv({ quiet: true });
|
|
17384
17384
|
}
|
|
17385
|
-
function parseConfigJson5(raw, json5
|
|
17385
|
+
function parseConfigJson5(raw, json5 = JSON5) {
|
|
17386
17386
|
try {
|
|
17387
17387
|
return {
|
|
17388
17388
|
ok: true,
|
|
17389
|
-
parsed: json5
|
|
17389
|
+
parsed: json5.parse(raw)
|
|
17390
17390
|
};
|
|
17391
17391
|
} catch (err) {
|
|
17392
17392
|
return {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { ot as normalizeAccountId, st as normalizeOptionalAccountId } from "./run-with-concurrency-
|
|
2
|
-
import { Cr as createInternalHookEvent, dr as getActivePluginRegistry, pr as getActivePluginRegistryVersion, wr as triggerInternalHook } from "./config-
|
|
3
|
-
import { L as logVerbose, O as createSubsystemLogger } from "./logger-
|
|
1
|
+
import { ot as normalizeAccountId, st as normalizeOptionalAccountId } from "./run-with-concurrency-EUEKeAa8.js";
|
|
2
|
+
import { Cr as createInternalHookEvent, dr as getActivePluginRegistry, pr as getActivePluginRegistryVersion, wr as triggerInternalHook } from "./config-sMifxgre.js";
|
|
3
|
+
import { L as logVerbose, O as createSubsystemLogger } from "./logger-DIb2cGHp.js";
|
|
4
4
|
import { c as resolveStateDir } from "./paths-Duwviem_.js";
|
|
5
|
-
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-
|
|
6
|
-
import { d as getChannelDock } from "./thinking-
|
|
7
|
-
import { Ft as parseInlineDirectives, ht as resolveMirroredTranscriptText, i as isMessagingToolDuplicate, mt as appendAssistantMessageToSessionTranscript } from "./pi-embedded-helpers-
|
|
8
|
-
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-
|
|
5
|
+
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-BlTrm4bw.js";
|
|
6
|
+
import { d as getChannelDock } from "./thinking-Cih_nxDY.js";
|
|
7
|
+
import { Ft as parseInlineDirectives, ht as resolveMirroredTranscriptText, i as isMessagingToolDuplicate, mt as appendAssistantMessageToSessionTranscript } from "./pi-embedded-helpers-Cb_h9zSJ.js";
|
|
8
|
+
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-CLE20fRI.js";
|
|
9
9
|
import { n as generateSecureUuid } from "./secure-random-D2mQUJdh.js";
|
|
10
|
-
import { t as getAgentScopedMediaLocalRoots } from "./local-roots-
|
|
10
|
+
import { t as getAgentScopedMediaLocalRoots } from "./local-roots-CIwDgpY2.js";
|
|
11
11
|
import { r as parseTelegramTarget } from "./targets-BHZKnwxJ.js";
|
|
12
|
-
import { d as chunkMarkdownTextWithMode, h as resolveTextChunkLimit, l as chunkByParagraph, m as resolveChunkMode, s as resolveMarkdownTableMode, v as parseFenceSpans } from "./ir-
|
|
13
|
-
import { c as markdownToSignalTextChunks, t as sendMessageSignal } from "./send-
|
|
12
|
+
import { d as chunkMarkdownTextWithMode, h as resolveTextChunkLimit, l as chunkByParagraph, m as resolveChunkMode, s as resolveMarkdownTableMode, v as parseFenceSpans } from "./ir-DE2ewdq5.js";
|
|
13
|
+
import { c as markdownToSignalTextChunks, t as sendMessageSignal } from "./send-Drs4JqVD.js";
|
|
14
14
|
import path from "node:path";
|
|
15
15
|
import fs from "node:fs";
|
|
16
16
|
|