@visorcraft/idlehands 4.0.9 → 4.0.11
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/{agent-via-gateway-C29-E0K6.js → agent-via-gateway-8kOQMpw0.js} +1 -1
- package/dist/{agent-via-gateway-D2lUw5_a.js → agent-via-gateway-BmUiVvOs.js} +7 -7
- package/dist/{agent-via-gateway-C9MXMxE9.js → agent-via-gateway-CwNsKA2p.js} +1 -1
- package/dist/{agent-via-gateway-DD6djeRE.js → agent-via-gateway-DFfeM1f8.js} +7 -7
- package/dist/{agents-BTQoPRp2.js → agents-FBXsuMx0.js} +4 -4
- package/dist/{agents.config-Hj50zEpg.js → agents.config-BeC7mTJ2.js} +1 -1
- package/dist/{agents.config-CmrYf0R9.js → agents.config-J5LaHyjZ.js} +1 -1
- package/dist/{anton-Ak5zdzLn.js → anton-BMJsNqqL.js} +1 -1
- package/dist/{anton-CHMhMbfn.js → anton-CSPEUgVi.js} +1 -1
- package/dist/{anton-C7A24R8k.js → anton-_S2TvK6c.js} +1 -1
- package/dist/{anton-Cso65xsA.js → anton-y_9cmetd.js} +1 -1
- package/dist/{audio-preflight-CW8IH1lU.js → audio-preflight-BSlR2jEq.js} +4 -4
- package/dist/{audio-preflight-CSSlgO89.js → audio-preflight-vD3mDc6w.js} +4 -4
- package/dist/{auth-choice-BQUQWOPB.js → auth-choice-Cxc76L50.js} +1 -1
- package/dist/{auth-choice-CNa4gxNm.js → auth-choice-DycYsq6V.js} +1 -1
- package/dist/{banner-C7YGM3JT.js → banner--eQQx-18.js} +1 -1
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +7 -7
- package/dist/bundled/session-memory/handler.js +7 -7
- package/dist/{channel-options-DvaeKHAx.js → channel-options-DYzhL-Ra.js} +1 -1
- package/dist/{channel-options-BKWtYjoK.js → channel-options-E5FeI2sT.js} +1 -1
- package/dist/{channel-web-VN0ZgePd.js → channel-web-D1-7qqL3.js} +2 -2
- package/dist/{channel-web-CAxuafZC.js → channel-web-d0g0MCG8.js} +2 -2
- package/dist/{channels-cli-wID9mrKy.js → channels-cli-DYqCLYO8.js} +7 -7
- package/dist/{channels-cli-BXaEFZn4.js → channels-cli-SHHAxfV7.js} +7 -7
- package/dist/{chrome-Do5potHV.js → chrome-DEnkfZ9p.js} +9 -9
- package/dist/{chrome-BcJB6PcM.js → chrome-_2tzVjVl.js} +9 -9
- package/dist/{cli-Bn2CZFDi.js → cli-CIJ_pp-W.js} +2 -2
- package/dist/{cli-BxRgr1BR.js → cli-Cg2smqR5.js} +2 -2
- package/dist/{command-registry-Dm6V5xBk.js → command-registry-D_coG163.js} +10 -10
- package/dist/{completion-cli-DnvwEZHv.js → completion-cli-CAERO_KP.js} +1 -1
- package/dist/{completion-cli-BaJBGfP6.js → completion-cli-CTGLJrsU.js} +2 -2
- package/dist/{config-cli-DglEI40O.js → config-cli-Ft-MoBA0.js} +1 -1
- package/dist/{config-cli-DTMfFEvU.js → config-cli-QKNRUury.js} +1 -1
- package/dist/{configure-CFDo6pK5.js → configure-CSFuzRuG.js} +3 -3
- package/dist/{configure-DYSAOrvA.js → configure-Dp2SC2bd.js} +3 -3
- package/dist/daemon-cli.js +6 -6
- package/dist/{deliver-whAbSPLk.js → deliver-5FLCa6tB.js} +1 -1
- package/dist/{deliver-BUiQ-9fE.js → deliver-CVTXl0Cv.js} +1 -1
- package/dist/{deps-DHhqEEEB.js → deps-CAYnlnre.js} +1 -1
- package/dist/{deps-Crf9tOgB.js → deps-DMIwjElF.js} +1 -1
- package/dist/{deps-dk-mZVY7.js → deps-DyhYyFzN.js} +1 -1
- package/dist/{deps-BuPPEKKU.js → deps-ruCIL6tu.js} +1 -1
- package/dist/{doctor-completion-DA87R6kk.js → doctor-completion-BTK69nw4.js} +1 -1
- package/dist/{doctor-completion-DHYMwPxZ.js → doctor-completion-C4IaYTpf.js} +1 -1
- package/dist/{emergency-stop-dQB5TH61.js → emergency-stop-7aCLPd3c.js} +2 -2
- package/dist/{emergency-stop-DqK6Iaxy.js → emergency-stop-BFA2JE99.js} +7 -7
- package/dist/{emergency-stop-DSazHQ3v.js → emergency-stop-C4Nj0B8-.js} +7 -7
- package/dist/{emergency-stop-D32_vcC_.js → emergency-stop-NRDPtN2X.js} +2 -2
- package/dist/entry.js +1 -1
- package/dist/extensionAPI.js +7 -7
- package/dist/{gateway-cli-NFBeo83U.js → gateway-cli-DOdmF6H_.js} +9 -9
- package/dist/{gateway-cli-C4c-ntiL.js → gateway-cli-vdmjtTaI.js} +9 -9
- package/dist/{health--cNlCqAN.js → health-Ck3J3S9G.js} +1 -1
- package/dist/{health-eSKHWC16.js → health-D0w6dKOf.js} +1 -1
- package/dist/{hooks-cli-d-CncxOS.js → hooks-cli-6IjNVfwU.js} +3 -3
- package/dist/{hooks-cli-1vbVFYX6.js → hooks-cli-qfbN4qHo.js} +3 -3
- package/dist/{image-D8b_rlQC.js → image-COw__ACq.js} +1 -1
- package/dist/{image-BAsQlUqT.js → image-C_aN5P6-.js} +1 -1
- package/dist/index.js +7 -7
- package/dist/llm-slug-generator.js +7 -7
- package/dist/{models-DRQazay2.js → models-BN3btFZs.js} +2 -2
- package/dist/{models-cli-BMU7V_Gq.js → models-cli-BXIQUriJ.js} +3 -3
- package/dist/{models-cli-byvFsScd.js → models-cli-D0f0UhCd.js} +4 -4
- package/dist/{npm-resolution-CkV9WMS7.js → npm-resolution-CRr1BFy6.js} +1 -1
- package/dist/{npm-resolution-ahyNQr7N.js → npm-resolution-DsNHuATZ.js} +1 -1
- package/dist/{onboard-3KtofxpB.js → onboard-BGttnPtz.js} +2 -2
- package/dist/{onboard-5gLY4vI6.js → onboard-DmJrRFm6.js} +2 -2
- package/dist/{onboard-channels-CO3tBBUm.js → onboard-channels-CDDDee0U.js} +1 -1
- package/dist/{onboard-channels-BaQef_ik.js → onboard-channels-CPzMyGUw.js} +1 -1
- package/dist/{onboarding-oYr_Z-MX.js → onboarding-BH14vh8u.js} +3 -3
- package/dist/{onboarding-DT_a9WqK.js → onboarding-CatctZfr.js} +3 -3
- package/dist/{onboarding.finalize-DI8RNUCe.js → onboarding.finalize-B1xAj3zP.js} +7 -7
- package/dist/{onboarding.finalize-DQlMXUpt.js → onboarding.finalize-y4p-rW_B.js} +6 -6
- package/dist/{pi-embedded-dlIKBCVy.js → pi-embedded-BuvTuh5b.js} +46 -27
- package/dist/{pi-embedded-B6_XaeGr.js → pi-embedded-LzC2NbjE.js} +46 -27
- package/dist/{pi-embedded-helpers-Ct2rwp-P.js → pi-embedded-helpers-C2j0LfJC.js} +4 -4
- package/dist/{pi-embedded-helpers-CghCLoPo.js → pi-embedded-helpers-CyTpDKo5.js} +4 -4
- package/dist/{plugin-registry-aAygraDx.js → plugin-registry-ChPpKka-.js} +1 -1
- package/dist/{plugin-registry-yw2FGDQo.js → plugin-registry-DJWce7ki.js} +1 -1
- package/dist/plugin-sdk/{agent-via-gateway-CYQbsoKO.js → agent-via-gateway-CKHwp3jE.js} +2 -2
- package/dist/plugin-sdk/{anton-BhaZ-_lE.js → anton-BbSJqBoq.js} +1 -1
- package/dist/plugin-sdk/{channel-web-C9WxJKNF.js → channel-web-BpsnbGKO.js} +2 -2
- package/dist/plugin-sdk/{deps-DNCcuQw6.js → deps-UrtR_PKP.js} +1 -1
- package/dist/plugin-sdk/{emergency-stop-DVA2XPoO.js → emergency-stop-CfIXvAZq.js} +2 -2
- package/dist/plugin-sdk/index.js +3 -3
- package/dist/plugin-sdk/{reply-DBeDzICx.js → reply-BTeuxXqB.js} +31 -12
- package/dist/plugin-sdk/{upgrade-command-C2uWxfO3.js → upgrade-command-DKUGbn8D.js} +3 -3
- package/dist/plugin-sdk/{web-BDqEqvD6.js → web-BkoZvzGE.js} +3 -3
- package/dist/{plugins-cli-D5iXgZV0.js → plugins-cli-CjrvJnpu.js} +3 -3
- package/dist/{plugins-cli-_X7ygx92.js → plugins-cli-D2fnJF9k.js} +3 -3
- package/dist/{program-DdvaYjeO.js → program-CA0hdsv9.js} +8 -8
- package/dist/{program-context-GHUcW_u0.js → program-context-C4ufrdyk.js} +22 -22
- package/dist/{prompt-select-styled-DsfDWex-.js → prompt-select-styled-CoVuIbC6.js} +4 -4
- package/dist/{prompt-select-styled-IsBentVx.js → prompt-select-styled-HOmODGGE.js} +4 -4
- package/dist/{provider-auth-helpers-DrbsliXm.js → provider-auth-helpers-BcXvA132.js} +1 -1
- package/dist/{provider-auth-helpers-DrJAeoq0.js → provider-auth-helpers-CjC0J8wK.js} +1 -1
- package/dist/{push-apns-BbrJYz07.js → push-apns-3RpPSOWj.js} +1 -1
- package/dist/{push-apns-JodkXySf.js → push-apns-Bqdhr5u5.js} +1 -1
- package/dist/{pw-ai-CfYaR1K2.js → pw-ai-CowTfhOG.js} +1 -1
- package/dist/{pw-ai-yrIWfcWX.js → pw-ai-DjmrIQle.js} +1 -1
- package/dist/{register.agent-CYk5RGin.js → register.agent-C-ynT_r7.js} +8 -8
- package/dist/{register.agent-Bv2Q4a7v.js → register.agent-snJhCvJ4.js} +9 -9
- package/dist/{register.configure-CKtMVkJ5.js → register.configure-oHPQgac2.js} +8 -8
- package/dist/{register.configure-Cnmmqe9t.js → register.configure-sCW4AYHX.js} +8 -8
- package/dist/{register.maintenance-BJ18f5vw.js → register.maintenance-BNuu5G8a.js} +9 -9
- package/dist/{register.maintenance-irYQ4RHx.js → register.maintenance-DBOmtQ_7.js} +8 -8
- package/dist/{register.message-LaE57X6H.js → register.message-CviOQrxd.js} +3 -3
- package/dist/{register.message-RUihJQu2.js → register.message-aGnFopBN.js} +3 -3
- package/dist/{register.onboard-BbcuO62e.js → register.onboard-5CNO_6MJ.js} +2 -2
- package/dist/{register.onboard-5RSmUDC7.js → register.onboard-DldXC3xb.js} +2 -2
- package/dist/{register.orchestrator-anton-DJPJSUZJ.js → register.orchestrator-anton-BdD-lYjq.js} +2 -2
- package/dist/{register.orchestrator-anton-BtAMVZTG.js → register.orchestrator-anton-Bh-a7hTU.js} +2 -2
- package/dist/{register.setup-BAjbcllf.js → register.setup-B5GQC9NR.js} +2 -2
- package/dist/{register.setup-B_DYnuvj.js → register.setup-Dtbm5ocC.js} +2 -2
- package/dist/{register.status-health-sessions-DoeE4mrI.js → register.status-health-sessions-7LgfFm3K.js} +4 -4
- package/dist/{register.status-health-sessions-CyapPo53.js → register.status-health-sessions-DO5z-I1G.js} +4 -4
- package/dist/{register.subclis-BHO_F5il.js → register.subclis-WjFoTOYx.js} +13 -13
- package/dist/{reply-UTSsx9A5.js → reply-xob39FTF.js} +31 -12
- package/dist/{run-main-BcSggHco.js → run-main-BtJbp5Nx.js} +15 -15
- package/dist/{runner-PgRFPYUj.js → runner-BzNdfqDz.js} +1 -1
- package/dist/{runner-Bv_BA3vd.js → runner-CZW_eyf2.js} +1 -1
- package/dist/{server-node-events-Dy9G22Jd.js → server-node-events-BNL7ha1f.js} +3 -3
- package/dist/{server-node-events-djWxYbcV.js → server-node-events-lrUnxVTz.js} +3 -3
- package/dist/{status-CRW4RVm9.js → status-DLKGKWq_.js} +2 -2
- package/dist/{status-DCTlIRAH.js → status-DvdVIssC.js} +2 -2
- package/dist/{subagent-registry-BOLFoCi4.js → subagent-registry-C1Xg6P75.js} +31 -12
- package/dist/{update-cli-CmbNPprw.js → update-cli-DBsT1H2C.js} +8 -8
- package/dist/{update-cli-Cj0Vr_B2.js → update-cli-Dv_xfkAV.js} +9 -9
- package/dist/{update-runner-BVl7tNUy.js → update-runner-CYdqDxJL.js} +1 -1
- package/dist/{update-runner-DaUhZyT6.js → update-runner-k3nRoLXk.js} +1 -1
- package/dist/{upgrade-command-5UDVpXfB.js → upgrade-command-Bh61DpzA.js} +5 -5
- package/dist/{upgrade-command-B_OSevDd.js → upgrade-command-Bvrv4iDU.js} +5 -5
- package/dist/{upgrade-command-B2yxOLOn.js → upgrade-command-CvbcPPIF.js} +5 -5
- package/dist/{upgrade-command-DP6F1cjV.js → upgrade-command-L9y3xbza.js} +5 -5
- package/dist/{web-HiM9F0MQ.js → web-B8L46t9i.js} +8 -8
- package/dist/{web-3qIgCpGr.js → web-BOZhcGzD.js} +3 -3
- package/dist/{web-DSdRgqhB.js → web-C1TtGYq7.js} +8 -8
- package/dist/{web-BWvhgqLS.js → web-DqzOqUcK.js} +3 -3
- package/package.json +1 -1
|
@@ -22,7 +22,7 @@ import { a as logoutWeb, i as logWebSelfId, l as readWebSelfId, n as getWebAuthA
|
|
|
22
22
|
import { a as resolveSlackWebClientOptions, c as buildSlackBlocksFallbackText, i as createSlackWebClient, l as parseSlackTarget, o as parseSlackBlocksInput, s as validateSlackBlocksArray, t as sendMessageSlack, u as resolveSlackChannelId } from "./send-J10cQN4A.js";
|
|
23
23
|
import { $ as fetchChannelPermissionsDiscord, A as unpinMessageDiscord, B as listScheduledEventsDiscord, C as editMessageDiscord, Ct as resolveTimestampMs, D as pinMessageDiscord, Dt as normalizeChannelSlug, E as listThreadsDiscord, Et as buildChannelKeyCandidates, 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 resolveChannelEntryMatchWithFallback, P as fetchChannelInfoDiscord, Q as stripUndefinedFields, R as kickMemberDiscord, S as deleteMessageDiscord, St as resolveDiscordSystemLocation, T as listPinsDiscord, Tt as applyChannelMatchMeta, U as listGuildEmojisDiscord, V as removeRoleDiscord, W as uploadEmojiDiscord, X as removeChannelPermissionDiscord, Y as moveChannelDiscord, Z as setChannelPermissionDiscord, _ as sendPollDiscord, _t as resolveDiscordShouldRequireMention, a as removeReactionDiscord, at as resolveDiscordChannelId, b as sendWebhookMessageDiscord, bt as formatDiscordReactionEmoji, c as formatDiscordComponentEventText, ct as allowListMatches$1, d as parseDiscordModalCustomId, dt as normalizeDiscordSlug, et as hasAnyGuildPermissionDiscord, f as parseDiscordModalCustomIdForCarbon, ft as resolveDiscordAllowListMatch, g as sendMessageDiscord, gt as resolveDiscordOwnerAllowFrom, h as resolveDiscordModalEntry, ht as resolveDiscordMemberAccessState, i as removeOwnReactionsDiscord, it as parseDiscordTarget, j as addRoleDiscord, k as searchMessagesDiscord, l as parseDiscordComponentCustomId, lt as isDiscordGroupAllowedByPolicy, m as resolveDiscordComponentEntry, mt as resolveDiscordGuildEntry, n as fetchReactionsDiscord, nt as createDiscordClient, o as sendDiscordComponentMessage, ot as listDiscordDirectoryGroupsLive, p as readDiscordComponentSpec, pt as resolveDiscordChannelConfigWithFallback, q as deleteChannelDiscord, r as reactMessageDiscord, rt as createDiscordRestClient, s as createDiscordFormModal, st as listDiscordDirectoryPeersLive, tt as chunkDiscordTextWithMode, u as parseDiscordComponentCustomIdForCarbon, ut as normalizeDiscordAllowList, v as sendStickerDiscord, vt as resolveGroupDmAllow, w as fetchMessageDiscord, wt as fetchDiscord, x as createThreadDiscord, xt as formatDiscordUserTag, y as sendVoiceMessageDiscord, yt as shouldEmitDiscordReactionNotification, z as listGuildChannelsDiscord } from "./send-DLZt92Da.js";
|
|
24
24
|
import { n as generateSecureUuid, t as generateSecureToken } from "./secure-random-BvP4jdcV.js";
|
|
25
|
-
import { C as initializeGlobalHookRunner, S as getGlobalHookRunner, _ as createReplyToModeFilterForChannel, a as normalizeOutboundPayloadsForJson, b as normalizeChannelTargetInput, c as parseReplyDirectives, d as applyReplyThreading, f as filterMessagingToolDuplicates, g as shouldSuppressReasoningPayload, h as shouldSuppressMessagingToolReplies, i as normalizeOutboundPayloads, l as splitMediaFromOutput, m as isRenderablePayload, o as normalizeReplyPayloadsForDelivery, p as filterMessagingToolMediaDuplicates, r as formatOutboundPayloadLog, s as throwIfAborted, t as deliverOutboundPayloads, u as applyReplyTagsToPayload, v as resolveReplyToMode, x as normalizeTargetForProvider, y as buildTargetResolverSignature } from "./deliver-
|
|
25
|
+
import { C as initializeGlobalHookRunner, S as getGlobalHookRunner, _ as createReplyToModeFilterForChannel, a as normalizeOutboundPayloadsForJson, b as normalizeChannelTargetInput, c as parseReplyDirectives, d as applyReplyThreading, f as filterMessagingToolDuplicates, g as shouldSuppressReasoningPayload, h as shouldSuppressMessagingToolReplies, i as normalizeOutboundPayloads, l as splitMediaFromOutput, m as isRenderablePayload, o as normalizeReplyPayloadsForDelivery, p as filterMessagingToolMediaDuplicates, r as formatOutboundPayloadLog, s as throwIfAborted, t as deliverOutboundPayloads, u as applyReplyTagsToPayload, v as resolveReplyToMode, x as normalizeTargetForProvider, y as buildTargetResolverSignature } from "./deliver-5FLCa6tB.js";
|
|
26
26
|
import { a as logMessageProcessed, c as logWebhookError, d as startDiagnosticHeartbeat, f as stopDiagnosticHeartbeat, i as logLaneEnqueue, l as logWebhookProcessed, m as isDiagnosticsEnabled, o as logMessageQueued, p as emitDiagnosticEvent, r as logLaneDequeue, s as logSessionStateChange, t as diag, u as logWebhookReceived } from "./diagnostic-jHCdo9Am.js";
|
|
27
27
|
import { r as getDiagnosticSessionState } from "./diagnostic-session-state-Bx2Le86J.js";
|
|
28
28
|
import { n as resolveSignalAccount, t as listEnabledSignalAccounts } from "./accounts-BRVjft5i.js";
|
|
@@ -30,8 +30,8 @@ import { $ as readJsonFileWithFallback, A as extractTelegramLocation, B as norma
|
|
|
30
30
|
import { c as detectMime, d as imageMimeFromFormat, f as isAudioFileName, g as MAX_IMAGE_BYTES, i as getImageMetadata, l as extensionForMime, p as isGifMedia, s as resizeToJpeg, v as mediaKindFromMime } from "./image-ops-BDG-MYYV.js";
|
|
31
31
|
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-Dic-M5qw.js";
|
|
32
32
|
import { a as isMarkdownCapableMessageChannel, c as resolveGatewayMessageChannel, d as GATEWAY_CLIENT_MODES, f as GATEWAY_CLIENT_NAMES, i as isInternalMessageChannel, l as resolveMessageChannel, n as isDeliverableMessageChannel, o as listDeliverableMessageChannels, r as isGatewayMessageChannel, s as normalizeMessageChannel, t as INTERNAL_MESSAGE_CHANNEL, u as GATEWAY_CLIENT_IDS } from "./message-channel-DqqfOIdx.js";
|
|
33
|
-
import { $ as stripPluginOnlyAllowlist, A as isTimeoutErrorMessage, B as resolveBrowserConfig, C as isCompactionFailureError, D as isLikelyContextOverflowError, E as isFailoverErrorMessage, F as ensureSandboxWorkspaceForSession, G as resolveGatewayCredentialsFromConfig, H as getBridgeAuthForPort, I as resolveSandboxContext, J as applyOwnerOnlyToolPolicy, K as trimToUndefined$1, L as resolveSandboxRuntimeStatus, M as parseImageDimensionError, N as parseImageSizeError, O as isRateLimitAssistantError, P as sanitizeUserFacingText, Q as mergeAlsoAllowPolicy, R as createBrowserRouteContext, S as isCloudCodeAssistFormatError, T as isFailoverAssistantError, U as ensureBrowserControlAuth, V as resolveProfile, W as resolveBrowserControlAuth, X as collectExplicitAllowlist, Y as buildPluginToolGroups, Z as expandPolicyWithPluginGroups, _ as formatRawAssistantErrorForUi, a as isMessagingToolDuplicateNormalized, at as buildBootstrapContextFiles, b as isAuthPermanentErrorMessage, c as extractToolCallsFromAssistant, ct as resolveBootstrapTotalMaxChars, d as downgradeOpenAIReasoningBlocks, et as expandToolGroups, f as isGoogleModelApi, g as formatBillingErrorMessage, h as formatAssistantErrorText, it as matchesAnyGlobPattern, j as isTransientHttpError, k as isRawApiErrorPayload, l as extractToolResultId, lt as sanitizeGoogleTurnOrdering, m as classifyFailoverReason, n as validateGeminiTurns, nt as resolveToolProfilePolicy, o as normalizeTextForComparison, ot as ensureSessionHeader, p as BILLING_ERROR_USER_MESSAGE, q as resolveSandboxConfigForAgent, r as pickFallbackThinkingLevel, rt as compileGlobPatterns, s as sanitizeSessionMessagesImages, st as resolveBootstrapMaxChars, t as validateAnthropicTurns, tt as normalizeToolName, u as sanitizeToolCallIdsForCloudCodeAssist, v as getApiErrorPayloadFingerprint, w as isContextOverflowError, x as isBillingAssistantError, y as isAuthAssistantError, z as registerBrowserRoutes } from "./pi-embedded-helpers-
|
|
34
|
-
import { C as ensureChromeExtensionRelayServer, F as isSecureWebSocketUrl, O as DEFAULT_UPLOAD_DIR, P as isLoopbackHost, R as DEFAULT_AI_SNAPSHOT_MAX_CHARS, T as rawDataToString, k as resolveExistingPathsWithinRoot, s as resolveLsofCommandSync } from "./chrome-
|
|
33
|
+
import { $ as stripPluginOnlyAllowlist, A as isTimeoutErrorMessage, B as resolveBrowserConfig, C as isCompactionFailureError, D as isLikelyContextOverflowError, E as isFailoverErrorMessage, F as ensureSandboxWorkspaceForSession, G as resolveGatewayCredentialsFromConfig, H as getBridgeAuthForPort, I as resolveSandboxContext, J as applyOwnerOnlyToolPolicy, K as trimToUndefined$1, L as resolveSandboxRuntimeStatus, M as parseImageDimensionError, N as parseImageSizeError, O as isRateLimitAssistantError, P as sanitizeUserFacingText, Q as mergeAlsoAllowPolicy, R as createBrowserRouteContext, S as isCloudCodeAssistFormatError, T as isFailoverAssistantError, U as ensureBrowserControlAuth, V as resolveProfile, W as resolveBrowserControlAuth, X as collectExplicitAllowlist, Y as buildPluginToolGroups, Z as expandPolicyWithPluginGroups, _ as formatRawAssistantErrorForUi, a as isMessagingToolDuplicateNormalized, at as buildBootstrapContextFiles, b as isAuthPermanentErrorMessage, c as extractToolCallsFromAssistant, ct as resolveBootstrapTotalMaxChars, d as downgradeOpenAIReasoningBlocks, et as expandToolGroups, f as isGoogleModelApi, g as formatBillingErrorMessage, h as formatAssistantErrorText, it as matchesAnyGlobPattern, j as isTransientHttpError, k as isRawApiErrorPayload, l as extractToolResultId, lt as sanitizeGoogleTurnOrdering, m as classifyFailoverReason, n as validateGeminiTurns, nt as resolveToolProfilePolicy, o as normalizeTextForComparison, ot as ensureSessionHeader, p as BILLING_ERROR_USER_MESSAGE, q as resolveSandboxConfigForAgent, r as pickFallbackThinkingLevel, rt as compileGlobPatterns, s as sanitizeSessionMessagesImages, st as resolveBootstrapMaxChars, t as validateAnthropicTurns, tt as normalizeToolName, u as sanitizeToolCallIdsForCloudCodeAssist, v as getApiErrorPayloadFingerprint, w as isContextOverflowError, x as isBillingAssistantError, y as isAuthAssistantError, z as registerBrowserRoutes } from "./pi-embedded-helpers-C2j0LfJC.js";
|
|
34
|
+
import { C as ensureChromeExtensionRelayServer, F as isSecureWebSocketUrl, O as DEFAULT_UPLOAD_DIR, P as isLoopbackHost, R as DEFAULT_AI_SNAPSHOT_MAX_CHARS, T as rawDataToString, k as resolveExistingPathsWithinRoot, s as resolveLsofCommandSync } from "./chrome-DEnkfZ9p.js";
|
|
35
35
|
import { i as isBlockedHostnameOrIp, o as normalizeHostname, t as SsrFBlockedError } from "./ssrf-DappnhDp.js";
|
|
36
36
|
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-nQcWk6Z6.js";
|
|
37
37
|
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-CGbCFqW8.js";
|
|
@@ -46,7 +46,7 @@ import { a as resolveSessionFilePathOptions, i as resolveSessionFilePath, l as r
|
|
|
46
46
|
import { t as emitSessionTranscriptUpdate } from "./transcript-events-BaUINxJH.js";
|
|
47
47
|
import { a as canonicalizeBase64, i as resolveImageSanitizationLimits, n as sanitizeImageBlocks, o as estimateBase64DecodedBytes, r as sanitizeToolResultImages } from "./tool-images-CpZSs-zE.js";
|
|
48
48
|
import { a as normalizeReasoningLevel, c as normalizeVerboseLevel, i as normalizeElevatedLevel, l as resolveResponseUsageMode, n as formatXHighModelHint, o as normalizeThinkLevel, s as normalizeUsageDisplay, t as formatThinkingLevels, u as supportsXHighThinking } from "./thinking-BFsWfunr.js";
|
|
49
|
-
import { C as extractTextFromChatContent, S as isInsideCode, _ as stripMinimaxToolCallXml, a as decodeDataUrl, b as stripReasoningTagsFromText, c as extractAssistantText$1, d as extractThinkingFromTaggedText, f as formatReasoningMessage, g as stripDowngradedToolCallText, h as promoteThinkingTagsToBlocks, i as coerceImageModelConfig, l as extractAssistantThinking, m as isAssistantMessage, o as resolveProviderVisionModelFromConfig, p as inferToolMetaFromArgs, r as coerceImageAssistantText, s as minimaxUnderstandImage, u as extractThinkingFromTaggedStream, v as stripThinkingTagsFromText, w as ensureIdleHandsModelsJson, x as findCodeRegions, y as resolveToolDisplay } from "./image-
|
|
49
|
+
import { C as extractTextFromChatContent, S as isInsideCode, _ as stripMinimaxToolCallXml, a as decodeDataUrl, b as stripReasoningTagsFromText, c as extractAssistantText$1, d as extractThinkingFromTaggedText, f as formatReasoningMessage, g as stripDowngradedToolCallText, h as promoteThinkingTagsToBlocks, i as coerceImageModelConfig, l as extractAssistantThinking, m as isAssistantMessage, o as resolveProviderVisionModelFromConfig, p as inferToolMetaFromArgs, r as coerceImageAssistantText, s as minimaxUnderstandImage, u as extractThinkingFromTaggedStream, v as stripThinkingTagsFromText, w as ensureIdleHandsModelsJson, x as findCodeRegions, y as resolveToolDisplay } from "./image-C_aN5P6-.js";
|
|
50
50
|
import { n as resolveMemorySearchConfig } from "./manager-DYOflU5p.js";
|
|
51
51
|
import { n as fetchWithTimeout, t as bindAbortRelay } from "./fetch-timeout-B7YMixjc.js";
|
|
52
52
|
import { t as fetchWithSsrFGuard } from "./fetch-guard-BdCPmLBP.js";
|
|
@@ -60,7 +60,7 @@ import { a as loadWebMedia, i as getDefaultLocalRoots } from "./ir-BwkcXPZC.js";
|
|
|
60
60
|
import { _ as isNativeCommandsExplicitlyDisabled, a as listChatCommands, b as resolveNativeSkillsEnabled, c as listNativeCommandSpecsForConfig, d as parseCommandArgs, f as resolveCommandArgChoices, g as isCommandFlagEnabled, h as shouldHandleTextCommands, i as isCommandEnabled, l as maybeResolveTextAlias, m as serializeCommandArgs, o as listChatCommandsForConfig, p as resolveCommandArgMenu, r as findCommandByNativeName, s as listNativeCommandSpecs, t as buildCommandTextFromArgs, u as normalizeCommandBody, v as isRestartEnabled, y as resolveNativeCommandsEnabled } from "./commands-registry-1-Rv2-IS.js";
|
|
61
61
|
import { c as getSkillsSnapshotVersion, d as createAsyncLock, f as readJsonFile, i as resolveSkillCommandInvocation, l as pruneExpiredPending, n as listSkillCommandsForAgents, o as getRemoteSkillEligibility, p as writeJsonAtomic, r as listSkillCommandsForWorkspace, s as ensureSkillsWatcher, t as listReservedChatSlashCommandNames, u as resolvePairingPaths } from "./skill-commands-CHpRgsOw.js";
|
|
62
62
|
import { r as normalizeInboundTextNewlines, t as finalizeInboundContext } from "./inbound-context-DZmR6jxY.js";
|
|
63
|
-
import { _ as resolveMediaUnderstandingScope, a as resolveMediaAttachmentLocalRoots, c as loadModelCatalog, d as resolveAttachmentKind, f as buildRandomTempFilePath, g as normalizeMediaUnderstandingChatType, h as resolveTimeoutMs$2, i as resolveAutoImageModel, l as modelSupportsVision, m as resolveConcurrency, n as createMediaAttachmentCache, o as runCapability, p as registerUnhandledRejectionHandler, r as normalizeMediaAttachments, s as findModelInCatalog, t as buildProviderRegistry, v as CLI_OUTPUT_MAX_BUFFER, y as applyTemplate } from "./runner-
|
|
63
|
+
import { _ as resolveMediaUnderstandingScope, a as resolveMediaAttachmentLocalRoots, c as loadModelCatalog, d as resolveAttachmentKind, f as buildRandomTempFilePath, g as normalizeMediaUnderstandingChatType, h as resolveTimeoutMs$2, i as resolveAutoImageModel, l as modelSupportsVision, m as resolveConcurrency, n as createMediaAttachmentCache, o as runCapability, p as registerUnhandledRejectionHandler, r as normalizeMediaAttachments, s as findModelInCatalog, t as buildProviderRegistry, v as CLI_OUTPUT_MAX_BUFFER, y as applyTemplate } from "./runner-CZW_eyf2.js";
|
|
64
64
|
import { n as wrapFetchWithAbortSignal, t as resolveFetch } from "./fetch-ChVgjTkv.js";
|
|
65
65
|
import { n as recordCommandPoll, r as resetCommandPollCount } from "./command-poll-backoff-DTHhQmHb.js";
|
|
66
66
|
import { n as recordChannelActivity, r as createDiscordRetryRunner, t as getChannelActivity } from "./channel-activity-C3LJmSjf.js";
|
|
@@ -72,7 +72,7 @@ import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-rou
|
|
|
72
72
|
import { i as redactIdentifier, t as getActiveWebListener } from "./active-listener-BnWIC6Jc.js";
|
|
73
73
|
import { t as makeProxyFetch } from "./proxy-CNZpb4NE.js";
|
|
74
74
|
import { a as createReplyReferencePlanner, i as resolveSlackThreadTs, n as deliverReplies$3, t as createSlackReplyDeliveryPlan } from "./replies-CqYEEgmA.js";
|
|
75
|
-
import { r as createOutboundSendDepsFromCliSource, t as createDefaultDeps } from "./deps-
|
|
75
|
+
import { r as createOutboundSendDepsFromCliSource, t as createDefaultDeps } from "./deps-CAYnlnre.js";
|
|
76
76
|
import { createRequire } from "node:module";
|
|
77
77
|
import * as path$1 from "node:path";
|
|
78
78
|
import path, { isAbsolute } from "node:path";
|
|
@@ -91,7 +91,7 @@ import { CURRENT_SESSION_VERSION, DefaultResourceLoader, SessionManager, Setting
|
|
|
91
91
|
import { EdgeTTS } from "node-edge-tts";
|
|
92
92
|
import { createServer } from "node:http";
|
|
93
93
|
import { ProxyAgent, fetch as fetch$1 } from "undici";
|
|
94
|
-
import WebSocket
|
|
94
|
+
import WebSocket, { WebSocket as WebSocket$1 } from "ws";
|
|
95
95
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
96
96
|
import { createJiti } from "jiti";
|
|
97
97
|
import { Type } from "@sinclair/typebox";
|
|
@@ -6371,7 +6371,7 @@ var GatewayClient = class {
|
|
|
6371
6371
|
if (fingerprint !== expected) return /* @__PURE__ */ new Error("gateway tls fingerprint mismatch");
|
|
6372
6372
|
});
|
|
6373
6373
|
}
|
|
6374
|
-
this.ws = new WebSocket(url, wsOptions);
|
|
6374
|
+
this.ws = new WebSocket$1(url, wsOptions);
|
|
6375
6375
|
this.ws.on("open", () => {
|
|
6376
6376
|
if (url.startsWith("wss://") && this.opts.tlsFingerprint) {
|
|
6377
6377
|
const tlsError = this.validateTlsFingerprint();
|
|
@@ -6567,7 +6567,7 @@ var GatewayClient = class {
|
|
|
6567
6567
|
const connectChallengeTimeoutMs = typeof rawConnectDelayMs === "number" && Number.isFinite(rawConnectDelayMs) ? Math.max(250, Math.min(1e4, rawConnectDelayMs)) : 2e3;
|
|
6568
6568
|
if (this.connectTimer) clearTimeout(this.connectTimer);
|
|
6569
6569
|
this.connectTimer = setTimeout(() => {
|
|
6570
|
-
if (this.connectSent || this.ws?.readyState !== WebSocket.OPEN) return;
|
|
6570
|
+
if (this.connectSent || this.ws?.readyState !== WebSocket$1.OPEN) return;
|
|
6571
6571
|
this.opts.onConnectError?.(/* @__PURE__ */ new Error("gateway connect challenge timeout"));
|
|
6572
6572
|
this.ws?.close(1008, "connect challenge timeout");
|
|
6573
6573
|
}, connectChallengeTimeoutMs);
|
|
@@ -6609,7 +6609,7 @@ var GatewayClient = class {
|
|
|
6609
6609
|
return null;
|
|
6610
6610
|
}
|
|
6611
6611
|
async request(method, params, opts) {
|
|
6612
|
-
if (!this.ws || this.ws.readyState !== WebSocket.OPEN) throw new Error("gateway not connected");
|
|
6612
|
+
if (!this.ws || this.ws.readyState !== WebSocket$1.OPEN) throw new Error("gateway not connected");
|
|
6613
6613
|
const id = randomUUID();
|
|
6614
6614
|
const frame = {
|
|
6615
6615
|
type: "req",
|
|
@@ -7933,7 +7933,7 @@ async function routeReply(params) {
|
|
|
7933
7933
|
const resolvedReplyToId = replyToId ?? (channelId === "slack" && threadId != null && threadId !== "" ? String(threadId) : void 0);
|
|
7934
7934
|
const resolvedThreadId = channelId === "slack" ? null : threadId ?? null;
|
|
7935
7935
|
try {
|
|
7936
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
7936
|
+
const { deliverOutboundPayloads } = await import("./deliver-5FLCa6tB.js").then((n) => n.n);
|
|
7937
7937
|
const outboundSession = buildOutboundSessionContext({
|
|
7938
7938
|
cfg,
|
|
7939
7939
|
agentId: resolvedAgentId,
|
|
@@ -23058,7 +23058,7 @@ const handleAntonCommand = async (params, _allowTextCommands) => {
|
|
|
23058
23058
|
};
|
|
23059
23059
|
const arg = body.slice(6).trim();
|
|
23060
23060
|
if (arg === "status" || arg === "") {
|
|
23061
|
-
const { antonStatus } = await import("./anton-
|
|
23061
|
+
const { antonStatus } = await import("./anton-CSPEUgVi.js");
|
|
23062
23062
|
const lines = [];
|
|
23063
23063
|
await antonStatus({
|
|
23064
23064
|
log: (msg) => lines.push(msg),
|
|
@@ -23074,7 +23074,7 @@ const handleAntonCommand = async (params, _allowTextCommands) => {
|
|
|
23074
23074
|
return { shouldContinue: false };
|
|
23075
23075
|
}
|
|
23076
23076
|
if (arg === "stop") {
|
|
23077
|
-
const { antonStop } = await import("./anton-
|
|
23077
|
+
const { antonStop } = await import("./anton-CSPEUgVi.js");
|
|
23078
23078
|
const lines = [];
|
|
23079
23079
|
await antonStop({
|
|
23080
23080
|
log: (msg) => lines.push(msg),
|
|
@@ -23112,8 +23112,8 @@ const handleAntonCommand = async (params, _allowTextCommands) => {
|
|
|
23112
23112
|
await sendProgress(replyCtx, text);
|
|
23113
23113
|
return { shouldContinue: false };
|
|
23114
23114
|
}
|
|
23115
|
-
const { runAnton, formatProgressMessage } = await import("./anton-
|
|
23116
|
-
const { createDefaultDeps } = await import("./deps-
|
|
23115
|
+
const { runAnton, formatProgressMessage } = await import("./anton-CSPEUgVi.js");
|
|
23116
|
+
const { createDefaultDeps } = await import("./deps-CAYnlnre.js").then((n) => n.n);
|
|
23117
23117
|
const { createNonExitingRuntime } = await import("./runtime-8mi3mpYB.js").then((n) => n.r);
|
|
23118
23118
|
const runtime = createNonExitingRuntime();
|
|
23119
23119
|
const deps = createDefaultDeps();
|
|
@@ -29220,7 +29220,7 @@ const handleTtsCommands = async (params, allowTextCommands) => {
|
|
|
29220
29220
|
const handleUpgradeCommand = async (params, _allowTextCommands) => {
|
|
29221
29221
|
if (!params.command.commandBodyNormalized.startsWith("/upgrade")) return null;
|
|
29222
29222
|
if (!params.command.isAuthorizedSender) return { shouldContinue: false };
|
|
29223
|
-
const { performBotUpgrade } = await import("./upgrade-command-
|
|
29223
|
+
const { performBotUpgrade } = await import("./upgrade-command-CvbcPPIF.js");
|
|
29224
29224
|
const channel = params.ctx.OriginatingChannel ?? params.command.channel;
|
|
29225
29225
|
const to = params.ctx.OriginatingTo ?? params.command.from ?? params.command.to ?? "";
|
|
29226
29226
|
await routeReply({
|
|
@@ -43681,6 +43681,21 @@ async function handleInlineActions(params) {
|
|
|
43681
43681
|
reply: commandResult.reply
|
|
43682
43682
|
};
|
|
43683
43683
|
}
|
|
43684
|
+
const simpleBody = cleanedBody.trim().toLowerCase();
|
|
43685
|
+
if ([
|
|
43686
|
+
"hi",
|
|
43687
|
+
"hello",
|
|
43688
|
+
"hey",
|
|
43689
|
+
"yo",
|
|
43690
|
+
"sup",
|
|
43691
|
+
"hola"
|
|
43692
|
+
].includes(simpleBody)) {
|
|
43693
|
+
typing.cleanup();
|
|
43694
|
+
return {
|
|
43695
|
+
kind: "reply",
|
|
43696
|
+
reply: { text: "Hey 👋 I’m here. What do you want to work on?" }
|
|
43697
|
+
};
|
|
43698
|
+
}
|
|
43684
43699
|
return {
|
|
43685
43700
|
kind: "continue",
|
|
43686
43701
|
directives,
|
|
@@ -47118,6 +47133,10 @@ async function runPreparedReply(params) {
|
|
|
47118
47133
|
defaultProvider,
|
|
47119
47134
|
defaultModel
|
|
47120
47135
|
});
|
|
47136
|
+
if (isBareSessionReset) {
|
|
47137
|
+
typing.cleanup();
|
|
47138
|
+
return;
|
|
47139
|
+
}
|
|
47121
47140
|
const sessionIdFinal = sessionId ?? crypto.randomUUID();
|
|
47122
47141
|
const sessionFile = resolveSessionFilePath(sessionIdFinal, sessionEntry, resolveSessionFilePathOptions({
|
|
47123
47142
|
agentId,
|
|
@@ -47406,7 +47425,7 @@ async function deliverSessionMaintenanceWarning(params) {
|
|
|
47406
47425
|
return;
|
|
47407
47426
|
}
|
|
47408
47427
|
try {
|
|
47409
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
47428
|
+
const { deliverOutboundPayloads } = await import("./deliver-5FLCa6tB.js").then((n) => n.n);
|
|
47410
47429
|
const outboundSession = buildOutboundSessionContext({
|
|
47411
47430
|
cfg: params.cfg,
|
|
47412
47431
|
sessionKey: params.sessionKey
|
|
@@ -51842,7 +51861,7 @@ async function describeStickerImage(params) {
|
|
|
51842
51861
|
logVerbose(`telegram: describing sticker with ${provider}/${model}`);
|
|
51843
51862
|
try {
|
|
51844
51863
|
const buffer = await fs.readFile(imagePath);
|
|
51845
|
-
const { describeImageWithModel } = await import("./image-
|
|
51864
|
+
const { describeImageWithModel } = await import("./image-C_aN5P6-.js").then((n) => n.n);
|
|
51846
51865
|
return (await describeImageWithModel({
|
|
51847
51866
|
buffer,
|
|
51848
51867
|
fileName: "sticker.webp",
|
|
@@ -54770,7 +54789,7 @@ async function preflightDiscordMessage(params) {
|
|
|
54770
54789
|
let preflightTranscript;
|
|
54771
54790
|
const hasAudioAttachment = message.attachments?.some((att) => att.contentType?.startsWith("audio/"));
|
|
54772
54791
|
if (!isDirectMessage && shouldRequireMention && hasAudioAttachment && !baseText && mentionRegexes.length > 0) try {
|
|
54773
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
54792
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-vD3mDc6w.js");
|
|
54774
54793
|
const audioPaths = message.attachments?.filter((att) => att.contentType?.startsWith("audio/")).map((att) => att.url) ?? [];
|
|
54775
54794
|
if (audioPaths.length > 0) preflightTranscript = await transcribeFirstAudio({
|
|
54776
54795
|
ctx: {
|
|
@@ -57247,7 +57266,7 @@ function createDiscordMessageHandler(params) {
|
|
|
57247
57266
|
try {
|
|
57248
57267
|
const messageText = resolveDiscordMessageText(data.message)?.trim();
|
|
57249
57268
|
if (messageText) {
|
|
57250
|
-
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-
|
|
57269
|
+
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-C4Nj0B8-.js");
|
|
57251
57270
|
if (isAbortRequestText(messageText)) {
|
|
57252
57271
|
const { resolveAgentRoute } = await import("./resolve-route-BI3VjtwE.js").then((n) => n.r);
|
|
57253
57272
|
const channelId = resolveDiscordMessageChannelId({
|
|
@@ -62693,7 +62712,7 @@ function createDiscordGatewayPlugin(params) {
|
|
|
62693
62712
|
return super.registerClient(client);
|
|
62694
62713
|
}
|
|
62695
62714
|
createWebSocket(url) {
|
|
62696
|
-
return new WebSocket
|
|
62715
|
+
return new WebSocket(url, { agent: wsAgent });
|
|
62697
62716
|
}
|
|
62698
62717
|
}
|
|
62699
62718
|
return new ProxyGatewayPlugin();
|
|
@@ -64745,7 +64764,7 @@ async function monitorIMessageProvider(opts = {}) {
|
|
|
64745
64764
|
}
|
|
64746
64765
|
const msgText = (message.text ?? "").trim();
|
|
64747
64766
|
if (msgText) {
|
|
64748
|
-
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-
|
|
64767
|
+
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-C4Nj0B8-.js");
|
|
64749
64768
|
if (isAbortRequestText(msgText)) {
|
|
64750
64769
|
const { resolveAgentRoute } = await import("./resolve-route-BI3VjtwE.js").then((n) => n.r);
|
|
64751
64770
|
const route = resolveAgentRoute({
|
|
@@ -67356,7 +67375,7 @@ function createSignalEventHandler(deps) {
|
|
|
67356
67375
|
const senderName = envelope.sourceName ?? senderDisplay;
|
|
67357
67376
|
const messageId = typeof envelope.timestamp === "number" ? String(envelope.timestamp) : void 0;
|
|
67358
67377
|
if (bodyText) {
|
|
67359
|
-
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-
|
|
67378
|
+
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-C4Nj0B8-.js");
|
|
67360
67379
|
if (isAbortRequestText(bodyText)) {
|
|
67361
67380
|
const { resolveAgentRoute } = await import("./resolve-route-BI3VjtwE.js").then((n) => n.r);
|
|
67362
67381
|
const route = resolveAgentRoute({
|
|
@@ -70738,7 +70757,7 @@ function createSlackMessageHandler(params) {
|
|
|
70738
70757
|
if (ctx.markMessageSeen(message.channel, message.ts)) return;
|
|
70739
70758
|
const rawText = (message.text ?? "").trim();
|
|
70740
70759
|
if (rawText) {
|
|
70741
|
-
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-
|
|
70760
|
+
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-C4Nj0B8-.js");
|
|
70742
70761
|
if (isAbortRequestText(rawText)) {
|
|
70743
70762
|
const { resolveAgentRoute } = await import("./resolve-route-BI3VjtwE.js").then((n) => n.r);
|
|
70744
70763
|
const route = resolveAgentRoute({
|
|
@@ -72932,7 +72951,7 @@ const registerTelegramHandlers = ({ cfg, accountId, bot, opts, runtime, mediaMax
|
|
|
72932
72951
|
const { ctx, msg, chatId, resolvedThreadId, storeAllowFrom, sendOversizeWarning, oversizeLogMessage } = params;
|
|
72933
72952
|
const text = typeof msg.text === "string" ? msg.text : void 0;
|
|
72934
72953
|
if (text) {
|
|
72935
|
-
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-
|
|
72954
|
+
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-C4Nj0B8-.js");
|
|
72936
72955
|
if (isAbortRequestText(text)) {
|
|
72937
72956
|
const senderId = msg.from?.id ? String(msg.from.id) : "";
|
|
72938
72957
|
if (!senderId || !allowFrom?.length || allowFrom.includes(senderId)) {
|
|
@@ -73819,7 +73838,7 @@ const buildTelegramMessageContext = async ({ primaryCtx, allMedia, replyMedia =
|
|
|
73819
73838
|
const hasAudio = allMedia.some((media) => media.contentType?.startsWith("audio/"));
|
|
73820
73839
|
let preflightTranscript;
|
|
73821
73840
|
if (isGroup && requireMention && hasAudio && !hasUserText && mentionRegexes.length > 0) try {
|
|
73822
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
73841
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-vD3mDc6w.js");
|
|
73823
73842
|
preflightTranscript = await transcribeFirstAudio({
|
|
73824
73843
|
ctx: {
|
|
73825
73844
|
MediaPaths: allMedia.length > 0 ? allMedia.map((m) => m.path) : void 0,
|
|
@@ -76417,7 +76436,7 @@ function loadWebLoginQr() {
|
|
|
76417
76436
|
return webLoginQrPromise;
|
|
76418
76437
|
}
|
|
76419
76438
|
function loadWebChannel() {
|
|
76420
|
-
webChannelPromise ??= import("./web-
|
|
76439
|
+
webChannelPromise ??= import("./web-B8L46t9i.js");
|
|
76421
76440
|
return webChannelPromise;
|
|
76422
76441
|
}
|
|
76423
76442
|
function loadWhatsAppActions() {
|
|
@@ -9,7 +9,7 @@ import { t as formatCliCommand } from "./command-format-BAxx4PW5.js";
|
|
|
9
9
|
import { n as parseBooleanValue } from "./env-BpvqFD5n.js";
|
|
10
10
|
import { t as generateSecureToken } from "./secure-random-BvP4jdcV.js";
|
|
11
11
|
import { i as getImageMetadata, n as buildImageResizeSideGrid, s as resizeToJpeg, t as IMAGE_REDUCE_QUALITY_STEPS } from "./image-ops-BDG-MYYV.js";
|
|
12
|
-
import { B as DEFAULT_BROWSER_EVALUATE_ENABLED, C as ensureChromeExtensionRelayServer, D as DEFAULT_TRACE_DIR, E as DEFAULT_DOWNLOAD_DIR, H as DEFAULT_IDLEHANDS_BROWSER_ENABLED, I as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, L as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, N as normalizeBrowserFormField, O as DEFAULT_UPLOAD_DIR, P as isLoopbackHost, R as DEFAULT_AI_SNAPSHOT_MAX_CHARS, U as DEFAULT_IDLEHANDS_BROWSER_PROFILE_NAME, V as DEFAULT_IDLEHANDS_BROWSER_COLOR, _ as withBrowserNavigationPolicy, a as resolveIdleHandsUserDataDir, b as fetchOk, c as resolveBrowserExecutableForPlatform, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, i as launchIdleHandsChrome, j as resolveWritablePathWithinRoot, k as resolveExistingPathsWithinRoot, l as captureScreenshot, m as InvalidBrowserNavigationUrlError, n as isChromeCdpReady, o as stopIdleHandsChrome, p as snapshotAria, r as isChromeReachable, u as createTargetViaCdp, v as appendCdpPath, w as stopChromeExtensionRelayServer, y as fetchJson, z as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME } from "./chrome-
|
|
12
|
+
import { B as DEFAULT_BROWSER_EVALUATE_ENABLED, C as ensureChromeExtensionRelayServer, D as DEFAULT_TRACE_DIR, E as DEFAULT_DOWNLOAD_DIR, H as DEFAULT_IDLEHANDS_BROWSER_ENABLED, I as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, L as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, N as normalizeBrowserFormField, O as DEFAULT_UPLOAD_DIR, P as isLoopbackHost, R as DEFAULT_AI_SNAPSHOT_MAX_CHARS, U as DEFAULT_IDLEHANDS_BROWSER_PROFILE_NAME, V as DEFAULT_IDLEHANDS_BROWSER_COLOR, _ as withBrowserNavigationPolicy, a as resolveIdleHandsUserDataDir, b as fetchOk, c as resolveBrowserExecutableForPlatform, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, i as launchIdleHandsChrome, j as resolveWritablePathWithinRoot, k as resolveExistingPathsWithinRoot, l as captureScreenshot, m as InvalidBrowserNavigationUrlError, n as isChromeCdpReady, o as stopIdleHandsChrome, p as snapshotAria, r as isChromeReachable, u as createTargetViaCdp, v as appendCdpPath, w as stopChromeExtensionRelayServer, y as fetchJson, z as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME } from "./chrome-DEnkfZ9p.js";
|
|
13
13
|
import { t as SsrFBlockedError } from "./ssrf-DappnhDp.js";
|
|
14
14
|
import { a as syncSkillsToWorkspace, l as resolveSandboxInputPath, m as sanitizeEnvVars, u as resolveSandboxPath } from "./skills-nQcWk6Z6.js";
|
|
15
15
|
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-CGbCFqW8.js";
|
|
@@ -1181,7 +1181,7 @@ function isModuleNotFoundError(err) {
|
|
|
1181
1181
|
}
|
|
1182
1182
|
async function loadPwAiModule(mode) {
|
|
1183
1183
|
try {
|
|
1184
|
-
return await import("./pw-ai-
|
|
1184
|
+
return await import("./pw-ai-DjmrIQle.js");
|
|
1185
1185
|
} catch (err) {
|
|
1186
1186
|
if (mode === "soft") return null;
|
|
1187
1187
|
if (isModuleNotFoundError(err)) return null;
|
|
@@ -3716,11 +3716,11 @@ function createProfileContext(opts, profile) {
|
|
|
3716
3716
|
const userDataDir = resolveIdleHandsUserDataDir(profile.name);
|
|
3717
3717
|
const profileState = getProfileState();
|
|
3718
3718
|
if (await isHttpReachable(300) && !profileState.running) try {
|
|
3719
|
-
await (await import("./pw-ai-
|
|
3719
|
+
await (await import("./pw-ai-DjmrIQle.js")).closePlaywrightBrowserConnection();
|
|
3720
3720
|
} catch {}
|
|
3721
3721
|
if (profileState.running) await stopRunningBrowser();
|
|
3722
3722
|
try {
|
|
3723
|
-
await (await import("./pw-ai-
|
|
3723
|
+
await (await import("./pw-ai-DjmrIQle.js")).closePlaywrightBrowserConnection();
|
|
3724
3724
|
} catch {}
|
|
3725
3725
|
if (!syncFs.existsSync(userDataDir)) return {
|
|
3726
3726
|
moved: false,
|
|
@@ -10,7 +10,7 @@ import { t as formatCliCommand } from "./command-format-BAxx4PW5.js";
|
|
|
10
10
|
import { t as parseBooleanValue } from "./boolean-CE7i9tBR.js";
|
|
11
11
|
import { t as generateSecureToken } from "./secure-random-B1N_MXT_.js";
|
|
12
12
|
import { i as getImageMetadata, n as buildImageResizeSideGrid, s as resizeToJpeg, t as IMAGE_REDUCE_QUALITY_STEPS } from "./image-ops-D1KtygWz.js";
|
|
13
|
-
import { B as DEFAULT_BROWSER_EVALUATE_ENABLED, C as ensureChromeExtensionRelayServer, D as DEFAULT_TRACE_DIR, E as DEFAULT_DOWNLOAD_DIR, H as DEFAULT_IDLEHANDS_BROWSER_ENABLED, I as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, L as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, N as normalizeBrowserFormField, O as DEFAULT_UPLOAD_DIR, P as isLoopbackHost, R as DEFAULT_AI_SNAPSHOT_MAX_CHARS, U as DEFAULT_IDLEHANDS_BROWSER_PROFILE_NAME, V as DEFAULT_IDLEHANDS_BROWSER_COLOR, _ as withBrowserNavigationPolicy, a as resolveIdleHandsUserDataDir, b as fetchOk, c as resolveBrowserExecutableForPlatform, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, i as launchIdleHandsChrome, j as resolveWritablePathWithinRoot, k as resolveExistingPathsWithinRoot, l as captureScreenshot, m as InvalidBrowserNavigationUrlError, n as isChromeCdpReady, o as stopIdleHandsChrome, p as snapshotAria, r as isChromeReachable, u as createTargetViaCdp, v as appendCdpPath, w as stopChromeExtensionRelayServer, y as fetchJson, z as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME } from "./chrome-
|
|
13
|
+
import { B as DEFAULT_BROWSER_EVALUATE_ENABLED, C as ensureChromeExtensionRelayServer, D as DEFAULT_TRACE_DIR, E as DEFAULT_DOWNLOAD_DIR, H as DEFAULT_IDLEHANDS_BROWSER_ENABLED, I as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, L as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, N as normalizeBrowserFormField, O as DEFAULT_UPLOAD_DIR, P as isLoopbackHost, R as DEFAULT_AI_SNAPSHOT_MAX_CHARS, U as DEFAULT_IDLEHANDS_BROWSER_PROFILE_NAME, V as DEFAULT_IDLEHANDS_BROWSER_COLOR, _ as withBrowserNavigationPolicy, a as resolveIdleHandsUserDataDir, b as fetchOk, c as resolveBrowserExecutableForPlatform, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, i as launchIdleHandsChrome, j as resolveWritablePathWithinRoot, k as resolveExistingPathsWithinRoot, l as captureScreenshot, m as InvalidBrowserNavigationUrlError, n as isChromeCdpReady, o as stopIdleHandsChrome, p as snapshotAria, r as isChromeReachable, u as createTargetViaCdp, v as appendCdpPath, w as stopChromeExtensionRelayServer, y as fetchJson, z as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME } from "./chrome-_2tzVjVl.js";
|
|
14
14
|
import { t as SsrFBlockedError } from "./ssrf-CZeHDwVZ.js";
|
|
15
15
|
import { a as syncSkillsToWorkspace, l as resolveSandboxInputPath, m as sanitizeEnvVars, u as resolveSandboxPath } from "./skills-CnAPWfca.js";
|
|
16
16
|
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-Cu1nXNMM.js";
|
|
@@ -1182,7 +1182,7 @@ function isModuleNotFoundError(err) {
|
|
|
1182
1182
|
}
|
|
1183
1183
|
async function loadPwAiModule(mode) {
|
|
1184
1184
|
try {
|
|
1185
|
-
return await import("./pw-ai-
|
|
1185
|
+
return await import("./pw-ai-CowTfhOG.js");
|
|
1186
1186
|
} catch (err) {
|
|
1187
1187
|
if (mode === "soft") return null;
|
|
1188
1188
|
if (isModuleNotFoundError(err)) return null;
|
|
@@ -3717,11 +3717,11 @@ function createProfileContext(opts, profile) {
|
|
|
3717
3717
|
const userDataDir = resolveIdleHandsUserDataDir(profile.name);
|
|
3718
3718
|
const profileState = getProfileState();
|
|
3719
3719
|
if (await isHttpReachable(300) && !profileState.running) try {
|
|
3720
|
-
await (await import("./pw-ai-
|
|
3720
|
+
await (await import("./pw-ai-CowTfhOG.js")).closePlaywrightBrowserConnection();
|
|
3721
3721
|
} catch {}
|
|
3722
3722
|
if (profileState.running) await stopRunningBrowser();
|
|
3723
3723
|
try {
|
|
3724
|
-
await (await import("./pw-ai-
|
|
3724
|
+
await (await import("./pw-ai-CowTfhOG.js")).closePlaywrightBrowserConnection();
|
|
3725
3725
|
} catch {}
|
|
3726
3726
|
if (!syncFs.existsSync(userDataDir)) return {
|
|
3727
3727
|
moved: false,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { ht as loadIdleHandsPlugins } from "./reply-
|
|
2
|
+
import { ht as loadIdleHandsPlugins } from "./reply-xob39FTF.js";
|
|
3
3
|
import { d as resolveDefaultAgentId, u as resolveAgentWorkspaceDir } from "./agent-scope-RA0zXRpu.js";
|
|
4
4
|
import { b as getActivePluginRegistry, t as createSubsystemLogger } from "./subsystem-CGZX2PBV.js";
|
|
5
5
|
import { It as loadConfig } from "./model-selection-0dGxYGp8.js";
|
|
@@ -2,7 +2,7 @@ import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
|
2
2
|
import { E as getActivePluginRegistry, s as createSubsystemLogger } from "./entry.js";
|
|
3
3
|
import { j as loadConfig } from "./auth-profiles-Baj5ImDJ.js";
|
|
4
4
|
import { d as resolveDefaultAgentId, u as resolveAgentWorkspaceDir } from "./agent-scope-mLXQGQde.js";
|
|
5
|
-
import { _ as loadIdleHandsPlugins } from "./subagent-registry-
|
|
5
|
+
import { _ as loadIdleHandsPlugins } from "./subagent-registry-C1Xg6P75.js";
|
|
6
6
|
|
|
7
7
|
//#region src/cli/plugin-registry.ts
|
|
8
8
|
var plugin_registry_exports = /* @__PURE__ */ __exportAll({ ensurePluginRegistryLoaded: () => ensurePluginRegistryLoaded });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { s as normalizeAgentId } from "./session-key-47BV2tLd.js";
|
|
2
2
|
import "./accounts-BLYMokxV.js";
|
|
3
|
-
import { F as callGateway, I as randomIdempotencyKey, d as agentCommand, f as resolveSessionKeyForRequest, p as withProgress } from "./reply-
|
|
3
|
+
import { F as callGateway, I as randomIdempotencyKey, d as agentCommand, f as resolveSessionKeyForRequest, p as withProgress } from "./reply-BTeuxXqB.js";
|
|
4
4
|
import "./paths-CtGV5i8O.js";
|
|
5
5
|
import "./github-copilot-token-CY2euW0d.js";
|
|
6
6
|
import { r as loadConfig } from "./config-CEgzwk0J.js";
|
|
@@ -63,7 +63,7 @@ import "./send-B26cNPqY.js";
|
|
|
63
63
|
import "./proxy-C4ewPdlN.js";
|
|
64
64
|
import "./resolve-route-BZABUE4J.js";
|
|
65
65
|
import "./replies-ZovJp-3F.js";
|
|
66
|
-
import "./deps-
|
|
66
|
+
import "./deps-UrtR_PKP.js";
|
|
67
67
|
import "./outbound-attachment-BisU5Vji.js";
|
|
68
68
|
|
|
69
69
|
//#region src/commands/agent-via-gateway.ts
|
|
@@ -216,7 +216,7 @@ async function loadAntonConfig() {
|
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
218
|
async function runAgentTask(args) {
|
|
219
|
-
const { agentCliCommand } = await import("./agent-via-gateway-
|
|
219
|
+
const { agentCliCommand } = await import("./agent-via-gateway-CKHwp3jE.js");
|
|
220
220
|
const extraSystemPrompt = args.workspaceDir ? `Your working directory is: ${args.workspaceDir}\nAll file paths are relative to this directory. Use this as your cwd for all operations.` : void 0;
|
|
221
221
|
await agentCliCommand({
|
|
222
222
|
message: args.message,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as buildGroupHistoryKey, f as DEFAULT_ACCOUNT_ID, n as DEFAULT_MAIN_KEY, r as buildAgentMainSessionKey, s as normalizeAgentId } from "./session-key-47BV2tLd.js";
|
|
2
2
|
import { i as resolveWhatsAppAccount } from "./accounts-BLYMokxV.js";
|
|
3
|
-
import { A as formatDurationPrecise, Ct as formatInboundEnvelope, Gt as resolveOpenProviderRuntimeGroupPolicy, Lt as resolveDmGroupAccessWithCommandGate, Mt as buildPairingReply, Pt as readStoreAllowFromForDmPolicy, Rt as resolveDmGroupAccessWithLists, Tt as resolveEnvelopeFormatOptions, Wt as resolveDefaultGroupPolicy, X as shouldAckReactionForWhatsApp, Z as resolveMentionGating, _ as resolveInboundDebounceMs, ct as recordPendingHistoryEntryIfEnabled, g as createInboundDebouncer, i as parseActivationCommand, j as enqueueSystemEvent, l as computeBackoff, lt as buildMentionRegexes, m as dispatchReplyWithBufferedBlockDispatcher, nt as buildHistoryContextFromEntries, qt as warnMissingProviderGroupPolicyFallbackOnce, r as normalizeGroupActivation, t as getReplyFromConfig, tt as DEFAULT_GROUP_HISTORY_LIMIT, u as sleepWithAbort, ut as normalizeMentionText, v as hasControlCommand, y as shouldComputeCommandAuthorized, yt as createDedupeCache } from "./reply-
|
|
3
|
+
import { A as formatDurationPrecise, Ct as formatInboundEnvelope, Gt as resolveOpenProviderRuntimeGroupPolicy, Lt as resolveDmGroupAccessWithCommandGate, Mt as buildPairingReply, Pt as readStoreAllowFromForDmPolicy, Rt as resolveDmGroupAccessWithLists, Tt as resolveEnvelopeFormatOptions, Wt as resolveDefaultGroupPolicy, X as shouldAckReactionForWhatsApp, Z as resolveMentionGating, _ as resolveInboundDebounceMs, ct as recordPendingHistoryEntryIfEnabled, g as createInboundDebouncer, i as parseActivationCommand, j as enqueueSystemEvent, l as computeBackoff, lt as buildMentionRegexes, m as dispatchReplyWithBufferedBlockDispatcher, nt as buildHistoryContextFromEntries, qt as warnMissingProviderGroupPolicyFallbackOnce, r as normalizeGroupActivation, t as getReplyFromConfig, tt as DEFAULT_GROUP_HISTORY_LIMIT, u as sleepWithAbort, ut as normalizeMentionText, v as hasControlCommand, y as shouldComputeCommandAuthorized, yt as createDedupeCache } from "./reply-BTeuxXqB.js";
|
|
4
4
|
import { r as loadConfig } from "./config-CEgzwk0J.js";
|
|
5
5
|
import { A as shouldLogVerbose, D as logVerbose, I as getChildLogger, d as normalizeE164, l as isSelfChatMode, m as resolveJidToE164, n as clamp, u as jidToE164, x as toWhatsappJid, y as sleep } from "./utils-Dyj2wV4e.js";
|
|
6
6
|
import { l as normalizeChatChannelId, t as createSubsystemLogger } from "./subsystem-DWPzKeZ0.js";
|
|
@@ -878,7 +878,7 @@ async function monitorWebInbox(options) {
|
|
|
878
878
|
};
|
|
879
879
|
const stopText = (inboundMessage.body ?? "").trim();
|
|
880
880
|
if (stopText) {
|
|
881
|
-
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-
|
|
881
|
+
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-CfIXvAZq.js");
|
|
882
882
|
if (isAbortRequestText(stopText)) {
|
|
883
883
|
const { loadConfig: loadCfg } = await import("./config-CEgzwk0J.js").then((n) => n.t);
|
|
884
884
|
const { resolveAgentRoute } = await import("./resolve-route-BZABUE4J.js").then((n) => n.r);
|
|
@@ -18,7 +18,7 @@ var deps_exports = /* @__PURE__ */ __exportAll({ createDefaultDeps: () => create
|
|
|
18
18
|
function createDefaultDeps() {
|
|
19
19
|
return {
|
|
20
20
|
sendMessageWhatsApp: async (...args) => {
|
|
21
|
-
const { sendMessageWhatsApp } = await import("./web-
|
|
21
|
+
const { sendMessageWhatsApp } = await import("./web-BkoZvzGE.js");
|
|
22
22
|
return await sendMessageWhatsApp(...args);
|
|
23
23
|
},
|
|
24
24
|
sendMessageTelegram: async (...args) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./accounts-BLYMokxV.js";
|
|
2
|
-
import { S as stopSubagentsForRequester, b as formatAbortReplyText, n as abortEmbeddedPiRun, w as clearSessionQueues, x as isAbortRequestText } from "./reply-
|
|
2
|
+
import { S as stopSubagentsForRequester, b as formatAbortReplyText, n as abortEmbeddedPiRun, w as clearSessionQueues, x as isAbortRequestText } from "./reply-BTeuxXqB.js";
|
|
3
3
|
import "./paths-CtGV5i8O.js";
|
|
4
4
|
import "./github-copilot-token-CY2euW0d.js";
|
|
5
5
|
import "./config-CEgzwk0J.js";
|
|
@@ -61,7 +61,7 @@ import "./send-B26cNPqY.js";
|
|
|
61
61
|
import "./proxy-C4ewPdlN.js";
|
|
62
62
|
import "./resolve-route-BZABUE4J.js";
|
|
63
63
|
import "./replies-ZovJp-3F.js";
|
|
64
|
-
import "./deps-
|
|
64
|
+
import "./deps-UrtR_PKP.js";
|
|
65
65
|
import "./outbound-attachment-BisU5Vji.js";
|
|
66
66
|
|
|
67
67
|
//#region src/auto-reply/reply/emergency-stop.ts
|
package/dist/plugin-sdk/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { f as DEFAULT_ACCOUNT_ID, p as normalizeAccountId, u as resolveThreadSessionKeys } from "./session-key-47BV2tLd.js";
|
|
2
2
|
import { a as resolveWhatsAppAuthDir, i as resolveWhatsAppAccount, n as listWhatsAppAccountIds, o as createAccountListHelpers, r as resolveDefaultWhatsAppAccountId } from "./accounts-BLYMokxV.js";
|
|
3
|
-
import { $ as mergeAllowlist, $t as unregisterAcpRuntimeBackend, At as extractToolSend, B as formatDocsLink, Bt as resolveControlCommandGate, D as stripMarkdown, Dt as formatZonedTimestamp, E as processLineMessage, Et as formatUtcTimestamp, Ft as resolveDmAllowState, G as logInboundDrop, Gt as resolveOpenProviderRuntimeGroupPolicy, H as stringEnum, Ht as resetMissingProviderGroupPolicyFallbackWarningsForTesting, It as resolveDmGroupAccessDecision, J as removeAckReactionAfterReply, Jt as isDangerousNameMatchingEnabled, K as logTypingFailure, Kt as resolveRuntimeGroupPolicy, L as resolveDiscordUserAllowlist, Lt as resolveDmGroupAccessWithCommandGate, M as resolveSlackUserAllowlist, N as resolveSlackChannelAllowlist, Nt as DM_GROUP_ACCESS_REASON, O as createReceiptCard, Ot as resolveTimezone, P as detectBinary, Pt as readStoreAllowFromForDmPolicy, Q as resolveMentionGatingWithBypass, Qt as requireAcpRuntimeBackend, R as resolveDiscordChannelAllowlist, Rt as resolveDmGroupAccessWithLists, St as rejectDevicePairing, T as hasMarkdownToConvert, U as recordInboundSession, Ut as resolveAllowlistProviderRuntimeGroupPolicy, V as optionalStringEnum, Vt as GROUP_POLICY_BLOCKED_LABEL, W as logAckFailure, Wt as resolveDefaultGroupPolicy, X as shouldAckReactionForWhatsApp, Xt as getAcpRuntimeBackend, Y as shouldAckReaction, Yt as registerPluginHttpRoute, Z as resolveMentionGating, Zt as registerAcpRuntimeBackend, _t as readRequestBodyWithLimit, a as listLineAccountIds, an as formatAllowlistMatchMeta, at as clearHistoryEntriesIfEnabled, bt as approveDevicePairing, c as resolveLineAccount, cn as BLUEBUBBLES_ACTION_NAMES, ct as recordPendingHistoryEntryIfEnabled, dt as DEFAULT_WEBHOOK_BODY_TIMEOUT_MS, en as ACP_ERROR_CODES, et as summarizeMapping, ft as DEFAULT_WEBHOOK_MAX_BODY_BYTES, gt as readJsonBodyWithLimit, ht as isRequestBodyLimitError, in as unbindThreadBindingsBySessionKey, it as clearHistoryEntries, jt as issuePairingChallenge, k as attachFooterText, kt as buildMediaPayload, ln as BLUEBUBBLES_GROUP_ACTIONS, mt as installRequestBodyLimitGuard, nn as autoBindSpawnedDiscordSubagent, o as normalizeAccountId$1, on as resolveAllowlistMatchSimple, ot as evictOldHistoryKeys, pt as RequestBodyLimitError, q as createTypingCallbacks, qt as warnMissingProviderGroupPolicyFallbackOnce, rn as listThreadBindingsBySessionKey, rt as buildPendingHistoryContextFromMap, s as resolveDefaultLineAccountId, sn as BLUEBUBBLES_ACTIONS, st as recordPendingHistoryEntry, tn as AcpRuntimeError, tt as DEFAULT_GROUP_HISTORY_LIMIT, un as CHANNEL_MESSAGE_ACTION_NAMES, vt as requestBodyErrorToText, wt as formatInboundFromLabel, xt as listDevicePairing, yt as createDedupeCache, z as collectDiscordAuditChannelIds, zt as resolveEffectiveAllowFromLists } from "./reply-
|
|
3
|
+
import { $ as mergeAllowlist, $t as unregisterAcpRuntimeBackend, At as extractToolSend, B as formatDocsLink, Bt as resolveControlCommandGate, D as stripMarkdown, Dt as formatZonedTimestamp, E as processLineMessage, Et as formatUtcTimestamp, Ft as resolveDmAllowState, G as logInboundDrop, Gt as resolveOpenProviderRuntimeGroupPolicy, H as stringEnum, Ht as resetMissingProviderGroupPolicyFallbackWarningsForTesting, It as resolveDmGroupAccessDecision, J as removeAckReactionAfterReply, Jt as isDangerousNameMatchingEnabled, K as logTypingFailure, Kt as resolveRuntimeGroupPolicy, L as resolveDiscordUserAllowlist, Lt as resolveDmGroupAccessWithCommandGate, M as resolveSlackUserAllowlist, N as resolveSlackChannelAllowlist, Nt as DM_GROUP_ACCESS_REASON, O as createReceiptCard, Ot as resolveTimezone, P as detectBinary, Pt as readStoreAllowFromForDmPolicy, Q as resolveMentionGatingWithBypass, Qt as requireAcpRuntimeBackend, R as resolveDiscordChannelAllowlist, Rt as resolveDmGroupAccessWithLists, St as rejectDevicePairing, T as hasMarkdownToConvert, U as recordInboundSession, Ut as resolveAllowlistProviderRuntimeGroupPolicy, V as optionalStringEnum, Vt as GROUP_POLICY_BLOCKED_LABEL, W as logAckFailure, Wt as resolveDefaultGroupPolicy, X as shouldAckReactionForWhatsApp, Xt as getAcpRuntimeBackend, Y as shouldAckReaction, Yt as registerPluginHttpRoute, Z as resolveMentionGating, Zt as registerAcpRuntimeBackend, _t as readRequestBodyWithLimit, a as listLineAccountIds, an as formatAllowlistMatchMeta, at as clearHistoryEntriesIfEnabled, bt as approveDevicePairing, c as resolveLineAccount, cn as BLUEBUBBLES_ACTION_NAMES, ct as recordPendingHistoryEntryIfEnabled, dt as DEFAULT_WEBHOOK_BODY_TIMEOUT_MS, en as ACP_ERROR_CODES, et as summarizeMapping, ft as DEFAULT_WEBHOOK_MAX_BODY_BYTES, gt as readJsonBodyWithLimit, ht as isRequestBodyLimitError, in as unbindThreadBindingsBySessionKey, it as clearHistoryEntries, jt as issuePairingChallenge, k as attachFooterText, kt as buildMediaPayload, ln as BLUEBUBBLES_GROUP_ACTIONS, mt as installRequestBodyLimitGuard, nn as autoBindSpawnedDiscordSubagent, o as normalizeAccountId$1, on as resolveAllowlistMatchSimple, ot as evictOldHistoryKeys, pt as RequestBodyLimitError, q as createTypingCallbacks, qt as warnMissingProviderGroupPolicyFallbackOnce, rn as listThreadBindingsBySessionKey, rt as buildPendingHistoryContextFromMap, s as resolveDefaultLineAccountId, sn as BLUEBUBBLES_ACTIONS, st as recordPendingHistoryEntry, tn as AcpRuntimeError, tt as DEFAULT_GROUP_HISTORY_LIMIT, un as CHANNEL_MESSAGE_ACTION_NAMES, vt as requestBodyErrorToText, wt as formatInboundFromLabel, xt as listDevicePairing, yt as createDedupeCache, z as collectDiscordAuditChannelIds, zt as resolveEffectiveAllowFromLists } from "./reply-BTeuxXqB.js";
|
|
4
4
|
import "./paths-CtGV5i8O.js";
|
|
5
5
|
import "./github-copilot-token-CY2euW0d.js";
|
|
6
6
|
import { A as GroupPolicySchema, An as acquireFileLock, D as BlockStreamingCoalesceSchema, E as ToolPolicySchema, F as TtsConfigSchema, I as TtsModeSchema, L as TtsProviderSchema, M as MarkdownTableModeSchema, N as ReplyRuntimeConfigSchemaShape, O as DmConfigSchema, P as TtsAutoSchema, R as normalizeAllowFrom, d as GoogleChatConfigSchema, f as IMessageConfigSchema, g as TelegramConfigSchema, h as SlackConfigSchema, j as MarkdownConfigSchema, jn as withFileLock, k as DmPolicySchema, l as WhatsAppConfigSchema, m as SignalConfigSchema, p as MSTeamsConfigSchema, u as DiscordConfigSchema, z as requireOpenAllowFrom } from "./config-CEgzwk0J.js";
|
|
@@ -52,7 +52,7 @@ import { h as onDiagnosticEvent, m as isDiagnosticsEnabled, p as emitDiagnosticE
|
|
|
52
52
|
import { n as extractOriginalFilename } from "./store-CCCXwngh.js";
|
|
53
53
|
import "./pi-embedded-helpers-B68z4sHq.js";
|
|
54
54
|
import { t as resolveWhatsAppOutboundTarget } from "./resolve-outbound-target-CnUtsDch.js";
|
|
55
|
-
import { r as resolveWhatsAppHeartbeatRecipients } from "./channel-web-
|
|
55
|
+
import { r as resolveWhatsAppHeartbeatRecipients } from "./channel-web-BpsnbGKO.js";
|
|
56
56
|
import "./thinking-g4Rrlwu4.js";
|
|
57
57
|
import "./image-C_1tftC8.js";
|
|
58
58
|
import "./pi-model-discovery-Dt6899be.js";
|
|
@@ -65,7 +65,7 @@ import "./send-B26cNPqY.js";
|
|
|
65
65
|
import "./proxy-C4ewPdlN.js";
|
|
66
66
|
import "./resolve-route-BZABUE4J.js";
|
|
67
67
|
import "./replies-ZovJp-3F.js";
|
|
68
|
-
import "./deps-
|
|
68
|
+
import "./deps-UrtR_PKP.js";
|
|
69
69
|
import "./outbound-attachment-BisU5Vji.js";
|
|
70
70
|
import "./outbound-Dx_q6JAI.js";
|
|
71
71
|
import "./session-DdJj6_DW.js";
|
|
@@ -72,7 +72,7 @@ import { t as makeProxyFetch } from "./proxy-C4ewPdlN.js";
|
|
|
72
72
|
import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-BZABUE4J.js";
|
|
73
73
|
import { a as createReplyReferencePlanner, i as resolveSlackThreadTs, n as deliverReplies$3, t as createSlackReplyDeliveryPlan } from "./replies-ZovJp-3F.js";
|
|
74
74
|
import { i as redactIdentifier, t as getActiveWebListener } from "./active-listener-WMrtFGPv.js";
|
|
75
|
-
import { r as createOutboundSendDepsFromCliSource, t as createDefaultDeps } from "./deps-
|
|
75
|
+
import { r as createOutboundSendDepsFromCliSource, t as createDefaultDeps } from "./deps-UrtR_PKP.js";
|
|
76
76
|
import { createRequire } from "node:module";
|
|
77
77
|
import fs, { existsSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, statSync, unlinkSync, writeFileSync } from "node:fs";
|
|
78
78
|
import * as path$1 from "node:path";
|
|
@@ -33090,7 +33090,7 @@ function createDiscordMessageHandler(params) {
|
|
|
33090
33090
|
try {
|
|
33091
33091
|
const messageText = resolveDiscordMessageText(data.message)?.trim();
|
|
33092
33092
|
if (messageText) {
|
|
33093
|
-
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-
|
|
33093
|
+
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-CfIXvAZq.js");
|
|
33094
33094
|
if (isAbortRequestText(messageText)) {
|
|
33095
33095
|
const { resolveAgentRoute } = await import("./resolve-route-BZABUE4J.js").then((n) => n.r);
|
|
33096
33096
|
const channelId = resolveDiscordMessageChannelId({
|
|
@@ -43834,7 +43834,7 @@ async function monitorIMessageProvider(opts = {}) {
|
|
|
43834
43834
|
}
|
|
43835
43835
|
const msgText = (message.text ?? "").trim();
|
|
43836
43836
|
if (msgText) {
|
|
43837
|
-
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-
|
|
43837
|
+
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-CfIXvAZq.js");
|
|
43838
43838
|
if (isAbortRequestText(msgText)) {
|
|
43839
43839
|
const { resolveAgentRoute } = await import("./resolve-route-BZABUE4J.js").then((n) => n.r);
|
|
43840
43840
|
const route = resolveAgentRoute({
|
|
@@ -46230,7 +46230,7 @@ function createSignalEventHandler(deps) {
|
|
|
46230
46230
|
const senderName = envelope.sourceName ?? senderDisplay;
|
|
46231
46231
|
const messageId = typeof envelope.timestamp === "number" ? String(envelope.timestamp) : void 0;
|
|
46232
46232
|
if (bodyText) {
|
|
46233
|
-
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-
|
|
46233
|
+
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-CfIXvAZq.js");
|
|
46234
46234
|
if (isAbortRequestText(bodyText)) {
|
|
46235
46235
|
const { resolveAgentRoute } = await import("./resolve-route-BZABUE4J.js").then((n) => n.r);
|
|
46236
46236
|
const route = resolveAgentRoute({
|
|
@@ -49601,7 +49601,7 @@ function createSlackMessageHandler(params) {
|
|
|
49601
49601
|
if (ctx.markMessageSeen(message.channel, message.ts)) return;
|
|
49602
49602
|
const rawText = (message.text ?? "").trim();
|
|
49603
49603
|
if (rawText) {
|
|
49604
|
-
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-
|
|
49604
|
+
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-CfIXvAZq.js");
|
|
49605
49605
|
if (isAbortRequestText(rawText)) {
|
|
49606
49606
|
const { resolveAgentRoute } = await import("./resolve-route-BZABUE4J.js").then((n) => n.r);
|
|
49607
49607
|
const route = resolveAgentRoute({
|
|
@@ -54224,7 +54224,7 @@ const registerTelegramHandlers = ({ cfg, accountId, bot, opts, runtime, mediaMax
|
|
|
54224
54224
|
const { ctx, msg, chatId, resolvedThreadId, storeAllowFrom, sendOversizeWarning, oversizeLogMessage } = params;
|
|
54225
54225
|
const text = typeof msg.text === "string" ? msg.text : void 0;
|
|
54226
54226
|
if (text) {
|
|
54227
|
-
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-
|
|
54227
|
+
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-CfIXvAZq.js");
|
|
54228
54228
|
if (isAbortRequestText(text)) {
|
|
54229
54229
|
const senderId = msg.from?.id ? String(msg.from.id) : "";
|
|
54230
54230
|
if (!senderId || !allowFrom?.length || allowFrom.includes(senderId)) {
|
|
@@ -57709,7 +57709,7 @@ function loadWebLoginQr() {
|
|
|
57709
57709
|
return webLoginQrPromise;
|
|
57710
57710
|
}
|
|
57711
57711
|
function loadWebChannel() {
|
|
57712
|
-
webChannelPromise ??= import("./web-
|
|
57712
|
+
webChannelPromise ??= import("./web-BkoZvzGE.js");
|
|
57713
57713
|
return webChannelPromise;
|
|
57714
57714
|
}
|
|
57715
57715
|
function loadWhatsAppActions() {
|
|
@@ -80281,7 +80281,7 @@ const handleAntonCommand = async (params, _allowTextCommands) => {
|
|
|
80281
80281
|
};
|
|
80282
80282
|
const arg = body.slice(6).trim();
|
|
80283
80283
|
if (arg === "status" || arg === "") {
|
|
80284
|
-
const { antonStatus } = await import("./anton-
|
|
80284
|
+
const { antonStatus } = await import("./anton-BbSJqBoq.js");
|
|
80285
80285
|
const lines = [];
|
|
80286
80286
|
await antonStatus({
|
|
80287
80287
|
log: (msg) => lines.push(msg),
|
|
@@ -80297,7 +80297,7 @@ const handleAntonCommand = async (params, _allowTextCommands) => {
|
|
|
80297
80297
|
return { shouldContinue: false };
|
|
80298
80298
|
}
|
|
80299
80299
|
if (arg === "stop") {
|
|
80300
|
-
const { antonStop } = await import("./anton-
|
|
80300
|
+
const { antonStop } = await import("./anton-BbSJqBoq.js");
|
|
80301
80301
|
const lines = [];
|
|
80302
80302
|
await antonStop({
|
|
80303
80303
|
log: (msg) => lines.push(msg),
|
|
@@ -80335,8 +80335,8 @@ const handleAntonCommand = async (params, _allowTextCommands) => {
|
|
|
80335
80335
|
await sendProgress(replyCtx, text);
|
|
80336
80336
|
return { shouldContinue: false };
|
|
80337
80337
|
}
|
|
80338
|
-
const { runAnton, formatProgressMessage } = await import("./anton-
|
|
80339
|
-
const { createDefaultDeps } = await import("./deps-
|
|
80338
|
+
const { runAnton, formatProgressMessage } = await import("./anton-BbSJqBoq.js");
|
|
80339
|
+
const { createDefaultDeps } = await import("./deps-UrtR_PKP.js").then((n) => n.n);
|
|
80340
80340
|
const { createNonExitingRuntime } = await import("./runtime-CjfcfOBD.js").then((n) => n.r);
|
|
80341
80341
|
const runtime = createNonExitingRuntime();
|
|
80342
80342
|
const deps = createDefaultDeps();
|
|
@@ -82009,7 +82009,7 @@ const handleTtsCommands = async (params, allowTextCommands) => {
|
|
|
82009
82009
|
const handleUpgradeCommand = async (params, _allowTextCommands) => {
|
|
82010
82010
|
if (!params.command.commandBodyNormalized.startsWith("/upgrade")) return null;
|
|
82011
82011
|
if (!params.command.isAuthorizedSender) return { shouldContinue: false };
|
|
82012
|
-
const { performBotUpgrade } = await import("./upgrade-command-
|
|
82012
|
+
const { performBotUpgrade } = await import("./upgrade-command-DKUGbn8D.js");
|
|
82013
82013
|
const channel = params.ctx.OriginatingChannel ?? params.command.channel;
|
|
82014
82014
|
const to = params.ctx.OriginatingTo ?? params.command.from ?? params.command.to ?? "";
|
|
82015
82015
|
await routeReply({
|
|
@@ -84271,6 +84271,21 @@ async function handleInlineActions(params) {
|
|
|
84271
84271
|
reply: commandResult.reply
|
|
84272
84272
|
};
|
|
84273
84273
|
}
|
|
84274
|
+
const simpleBody = cleanedBody.trim().toLowerCase();
|
|
84275
|
+
if ([
|
|
84276
|
+
"hi",
|
|
84277
|
+
"hello",
|
|
84278
|
+
"hey",
|
|
84279
|
+
"yo",
|
|
84280
|
+
"sup",
|
|
84281
|
+
"hola"
|
|
84282
|
+
].includes(simpleBody)) {
|
|
84283
|
+
typing.cleanup();
|
|
84284
|
+
return {
|
|
84285
|
+
kind: "reply",
|
|
84286
|
+
reply: { text: "Hey 👋 I’m here. What do you want to work on?" }
|
|
84287
|
+
};
|
|
84288
|
+
}
|
|
84274
84289
|
return {
|
|
84275
84290
|
kind: "continue",
|
|
84276
84291
|
directives,
|
|
@@ -86536,6 +86551,10 @@ async function runPreparedReply(params) {
|
|
|
86536
86551
|
defaultProvider,
|
|
86537
86552
|
defaultModel
|
|
86538
86553
|
});
|
|
86554
|
+
if (isBareSessionReset) {
|
|
86555
|
+
typing.cleanup();
|
|
86556
|
+
return;
|
|
86557
|
+
}
|
|
86539
86558
|
const sessionIdFinal = sessionId ?? crypto.randomUUID();
|
|
86540
86559
|
const sessionFile = resolveSessionFilePath(sessionIdFinal, sessionEntry, resolveSessionFilePathOptions({
|
|
86541
86560
|
agentId,
|