@fased/fased 0.1.57 → 0.1.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agents/current-model-catalog.js +5 -2
- package/dist/agents/model-catalog-status.js +6 -1
- package/dist/agents/pi-embedded-runner/session-manager-init.js +5 -20
- package/dist/agents/provider-extension-catalog-manifest.js +2 -2
- package/dist/brand.js +1 -1
- package/dist/build-info.json +3 -3
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/control-ui/assets/{app-DltSyY4Y.js → app-CpgQGqe6.js} +5 -5
- package/dist/control-ui/assets/{index-D5JlBp7f.js → index-DiBBflpv.js} +3 -3
- package/dist/control-ui/index.html +1 -1
- package/dist/control-ui/version.json +1 -1
- package/dist/plugin-sdk/{accounts-CmMwe9Dt.js → accounts-BJuN64m-.js} +1 -1
- package/dist/plugin-sdk/{actions-DYViFQiX.js → actions-DaEvM9Bl.js} +2 -2
- package/dist/plugin-sdk/{active-listener-DVbpcisf.js → active-listener-B8Kuanet.js} +1 -1
- package/dist/plugin-sdk/{audio-preflight-D-Mfay8i.js → audio-preflight-D7tCO0EH.js} +25 -25
- package/dist/plugin-sdk/{audit-JImYFOzJ.js → audit-CVWH4BVP.js} +1 -1
- package/dist/plugin-sdk/{channel-access-cxCK2mci.js → channel-access-CH9FAS-I.js} +1 -1
- package/dist/plugin-sdk/{channel-access-configure-B_qYjml8.js → channel-access-configure-CI0je66H.js} +1 -1
- package/dist/plugin-sdk/channel-plugin-common.js +4 -4
- package/dist/plugin-sdk/{chunk-CF8nvZNj.js → chunk-01oBnQjh.js} +1 -1
- package/dist/plugin-sdk/{chunk-items-yLFoO571.js → chunk-items-D2zDJ8q8.js} +1 -1
- package/dist/plugin-sdk/command-status.js +25 -25
- package/dist/plugin-sdk/{commands-registry-CK4KmMG0.js → commands-registry-ckg4fhYa.js} +2 -2
- package/dist/plugin-sdk/{common-Cky4hpqr.js → common-zHvdO8ly.js} +1 -1
- package/dist/plugin-sdk/{config-Dbxj_jUP.js → config-DrhYEiCM.js} +4 -1
- package/dist/plugin-sdk/{config-schema-aKPMn6ML.js → config-schema-BtjeV5Hm.js} +76 -85
- package/dist/plugin-sdk/discord.d.ts +1 -1
- package/dist/plugin-sdk/discord.js +19 -19
- package/dist/plugin-sdk/{handle-action-BSNDD2Vc.js → handle-action-5dhYpMbP.js} +13 -13
- package/dist/plugin-sdk/{helpers-CDo2XBSr.js → helpers-E9aafRzA.js} +1 -1
- package/dist/plugin-sdk/{image-ops-DbeBxbn4.js → image-ops-D2U9ctmu.js} +1 -1
- package/dist/plugin-sdk/index.d.ts +11 -11
- package/dist/plugin-sdk/index.js +27 -27
- package/dist/plugin-sdk/{login-CWXvFTd8.js → login-hql0fNuL.js} +3 -3
- package/dist/plugin-sdk/{login-qr-CJB2zjmM.js → login-qr-DJJ0svux.js} +3 -3
- package/dist/plugin-sdk/{manager-CbiFFLKS.js → manager-ciNnAMBn.js} +2 -2
- package/dist/plugin-sdk/{markdown-tables-Bskt9r8i.js → markdown-tables-BKxbua_h.js} +1 -1
- package/dist/plugin-sdk/{media-B3aAg5rh.js → media-DUIZ6x9H.js} +2 -2
- package/dist/plugin-sdk/{monitor-BJs6z7AT.js → monitor-CNSGw4uQ.js} +29 -29
- package/dist/plugin-sdk/{monitor-BYGbTI5V.js → monitor-D-giXewh.js} +32 -32
- package/dist/plugin-sdk/{openresponses-http-BGCl2dS2.js → openresponses-http-dbTd8UMk.js} +25 -25
- package/dist/plugin-sdk/{optional-runtime-dependency-BlTVkcAg.js → optional-runtime-dependency-CKsJL1PD.js} +1 -1
- package/dist/plugin-sdk/{outbound-CIemga5_.js → outbound-DhGrjRft.js} +6 -6
- package/dist/plugin-sdk/{outbound-attachment-2RckWqrk.js → outbound-attachment-DAF8huFz.js} +2 -2
- package/dist/plugin-sdk/{pairing-message-r-VQfhFB.js → pairing-message-BsJVvXkb.js} +1 -1
- package/dist/plugin-sdk/{pairing-store-uPnLfGgB.js → pairing-store-DwM-BNbj.js} +2 -2
- package/dist/plugin-sdk/{pi-model-discovery-BpEilAym.js → pi-model-discovery-DkIdlJvJ.js} +1 -1
- package/dist/plugin-sdk/{pi-model-discovery-runtime-DwNdFaz-.js → pi-model-discovery-runtime-Cv7okUMt.js} +2 -2
- package/dist/plugin-sdk/{pw-ai-H7UgunQQ.js → pw-ai-Dxd87W3J.js} +3 -3
- package/dist/plugin-sdk/{replies-CKMwkH4G.js → replies-Bx61SvAC.js} +2 -2
- package/dist/plugin-sdk/{resolve-outbound-target-B68fSoGi.js → resolve-outbound-target-bc-FpPZg.js} +1 -1
- package/dist/plugin-sdk/{resolve-route-B8fOfihG.js → resolve-route-D0eBYPtb.js} +1 -1
- package/dist/plugin-sdk/{retry-policy-B6GQldxB.js → retry-policy-HTrC4zfC.js} +1 -1
- package/dist/plugin-sdk/{runtime-nVJl3PlS.js → runtime-BVkIrYLQ.js} +3 -3
- package/dist/plugin-sdk/{runtime-dependency-DlqVSsSs.js → runtime-dependency-B2PqMdBu.js} +11 -11
- package/dist/plugin-sdk/sat-runtime.js +25 -25
- package/dist/plugin-sdk/{send-D3DQOg2a.js → send-BGDGzxUu.js} +6 -6
- package/dist/plugin-sdk/{send-BCJ4hi3t.js → send-C3QWSYLR.js} +8 -8
- package/dist/plugin-sdk/{send-hSu1HWms.js → send-DT2egZNK.js} +7 -7
- package/dist/plugin-sdk/{send-CPK_HlYW.js → send-DgzZUx2i.js} +5 -5
- package/dist/plugin-sdk/{send-BHokB4TR.js → send-KJy3ajA3.js} +6 -6
- package/dist/plugin-sdk/{session-DQ4Dr-mf.js → session-BCIEFOu1.js} +2 -2
- package/dist/plugin-sdk/{skill-commands-CmdoKLh_.js → skill-commands-CyIkcR8P.js} +2 -2
- package/dist/plugin-sdk/{slack-B70NHpMF.js → slack-DjKNh2uh.js} +37 -37
- package/dist/plugin-sdk/{slack-actions-fSmP981b.js → slack-actions-CeM9LWDp.js} +11 -11
- package/dist/plugin-sdk/slack.d.ts +1 -1
- package/dist/plugin-sdk/slack.js +9 -9
- package/dist/plugin-sdk/{sticker-cache-B4dG2sKU.js → sticker-cache-DcWzQ2wx.js} +3 -3
- package/dist/plugin-sdk/{tables-EX4Hy-a-.js → tables-B2iehyjG.js} +1 -1
- package/dist/plugin-sdk/{targets-BeGUCGWK.js → targets-BPket0SF.js} +1 -1
- package/dist/plugin-sdk/{telegram-actions-CM8SJgc9.js → telegram-actions-Cx_HWVht.js} +28 -28
- package/dist/plugin-sdk/telegram.d.ts +1 -1
- package/dist/plugin-sdk/telegram.js +8 -8
- package/dist/plugin-sdk/{thread-bindings.lifecycle-tHK_1mvp.js → thread-bindings.lifecycle-CYH69SIw.js} +3 -3
- package/dist/plugin-sdk/{thread-bindings.state-D7xG1GHu.js → thread-bindings.state-BN6461WG.js} +2 -2
- package/dist/plugin-sdk/{web-BFolfZ3i.js → web-vR-oNiBv.js} +30 -30
- package/dist/plugin-sdk/{whatsapp-actions-CYmleHCz.js → whatsapp-actions-BYNf8ceY.js} +13 -13
- package/dist/plugin-sdk/{whatsapp-heartbeat-BEwm4GK3.js → whatsapp-heartbeat-DZwa8MF0.js} +2 -2
- package/dist/plugin-sdk/whatsapp.d.ts +6 -6
- package/dist/plugin-sdk/whatsapp.js +12 -12
- package/dist/plugin-sdk/{wsl-BtMDzMv5.js → wsl-WGtdw_6h.js} +3 -3
- package/dist/plugin-sdk/{zod-schema.providers-core-FaYR6KdD.d.ts → zod-schema.providers-core-CIzCjXH9.d.ts} +61 -61
- package/extensions/acpx/package.json +1 -1
- package/extensions/bluebubbles/package.json +1 -1
- package/extensions/copilot-proxy/package.json +1 -1
- package/extensions/diagnostics-otel/package.json +1 -1
- package/extensions/fased-federation/package.json +1 -1
- package/extensions/google-gemini-cli-auth/package.json +1 -1
- package/extensions/imessage/package.json +1 -1
- package/extensions/irc/package.json +1 -1
- package/extensions/line/package.json +1 -1
- package/extensions/llm-task/package.json +1 -1
- package/extensions/lobster/package.json +1 -1
- package/extensions/matrix/CHANGELOG.md +6 -0
- package/extensions/matrix/package.json +1 -1
- package/extensions/mattermost/package.json +1 -1
- package/extensions/memory-core/package.json +2 -2
- package/extensions/memory-lancedb/package.json +1 -1
- package/extensions/minimax-portal-auth/package.json +1 -1
- package/extensions/msteams/CHANGELOG.md +6 -0
- package/extensions/msteams/package.json +1 -1
- package/extensions/nextcloud-talk/package.json +1 -1
- package/extensions/nostr/CHANGELOG.md +6 -0
- package/extensions/nostr/package.json +1 -1
- package/extensions/open-prose/package.json +1 -1
- package/extensions/sat-mining/package.json +1 -1
- package/extensions/signal/package.json +1 -1
- package/extensions/synology-chat/package.json +1 -1
- package/extensions/tlon/package.json +1 -1
- package/extensions/twitch/CHANGELOG.md +6 -0
- package/extensions/twitch/package.json +1 -1
- package/extensions/voice-call/CHANGELOG.md +6 -0
- package/extensions/voice-call/package.json +1 -1
- package/extensions/zalo/CHANGELOG.md +6 -0
- package/extensions/zalo/package.json +1 -1
- package/extensions/zalouser/CHANGELOG.md +6 -0
- package/extensions/zalouser/package.json +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { $ as createInboundDebouncer, A as parseTtsDirectives, B as logAckFailure, Ci as resolveCommandAuthorizedFromAuthorizers, Dr as GatewayClient, F as resolveMentionGatingWithBypass, Gn as resolveAgentAvatar, H as logTypingFailure, J as shouldAckReaction, K as recordInboundSession, Lt as hasControlCommand, N as createTypingCallbacks, O as resolveTtsConfig, St as normalizeMediaAttachments, Tr as buildGatewayConnectionDetails, Tt as runCapability, U as buildPairingReply, V as logInboundDrop, Vt as enqueueSystemEvent, Wi as formatAllowlistMatchMeta, X as dispatchReplyWithBufferedBlockDispatcher, Z as dispatchReplyWithDispatcher, _n as matchesMentionWithExplicit, at as createReplyDispatcherWithTyping, bn as agentCommand, bt as buildProviderRegistry, c as addAllowlistUserEntriesFromConfigEntry, ct as resolveStoredModelOverride, en as stripReasoningTagsFromText, et as resolveInboundDebounceMs, f as patchAllowlistUsersInConfigEntries, fn as clearHistoryEntriesIfEnabled, gn as buildMentionRegexes, hn as recordPendingHistoryEntryIfEnabled, it as dispatchInboundMessage, k as textToSpeech, l as buildAllowlistResolutionSummary, lt as buildModelsProviderData, ot as EmbeddedBlockChunker, p as summarizeMapping, rt as resolveEnvelopeFormatOptions, s as buildMediaPayload, tt as formatInboundEnvelope, u as canonicalizeAllowlistWithResolvedIds, un as buildPendingHistoryContextFromMap, vt as formatDurationSeconds, wi as resolveControlCommandGate, x as isDangerousNameMatchingEnabled, xi as resolveDmGroupAccessWithLists, xt as createMediaAttachmentCache, yi as readStoreAllowFromForDmPolicy } from "./config-schema-
|
|
2
|
-
import { Dn as normalizeMessageChannel, Dt as getChannelDock, Mn as GATEWAY_CLIENT_NAMES, S as readSessionUpdatedAt, jn as GATEWAY_CLIENT_MODES, x as loadSessionStore } from "./runtime-
|
|
1
|
+
import { $ as createInboundDebouncer, A as parseTtsDirectives, B as logAckFailure, Ci as resolveCommandAuthorizedFromAuthorizers, Dr as GatewayClient, F as resolveMentionGatingWithBypass, Gn as resolveAgentAvatar, H as logTypingFailure, J as shouldAckReaction, K as recordInboundSession, Lt as hasControlCommand, N as createTypingCallbacks, O as resolveTtsConfig, St as normalizeMediaAttachments, Tr as buildGatewayConnectionDetails, Tt as runCapability, U as buildPairingReply, V as logInboundDrop, Vt as enqueueSystemEvent, Wi as formatAllowlistMatchMeta, X as dispatchReplyWithBufferedBlockDispatcher, Z as dispatchReplyWithDispatcher, _n as matchesMentionWithExplicit, at as createReplyDispatcherWithTyping, bn as agentCommand, bt as buildProviderRegistry, c as addAllowlistUserEntriesFromConfigEntry, ct as resolveStoredModelOverride, en as stripReasoningTagsFromText, et as resolveInboundDebounceMs, f as patchAllowlistUsersInConfigEntries, fn as clearHistoryEntriesIfEnabled, gn as buildMentionRegexes, hn as recordPendingHistoryEntryIfEnabled, it as dispatchInboundMessage, k as textToSpeech, l as buildAllowlistResolutionSummary, lt as buildModelsProviderData, ot as EmbeddedBlockChunker, p as summarizeMapping, rt as resolveEnvelopeFormatOptions, s as buildMediaPayload, tt as formatInboundEnvelope, u as canonicalizeAllowlistWithResolvedIds, un as buildPendingHistoryContextFromMap, vt as formatDurationSeconds, wi as resolveControlCommandGate, x as isDangerousNameMatchingEnabled, xi as resolveDmGroupAccessWithLists, xt as createMediaAttachmentCache, yi as readStoreAllowFromForDmPolicy } from "./config-schema-BtjeV5Hm.js";
|
|
2
|
+
import { Dn as normalizeMessageChannel, Dt as getChannelDock, Mn as GATEWAY_CLIENT_NAMES, S as readSessionUpdatedAt, jn as GATEWAY_CLIENT_MODES, x as loadSessionStore } from "./runtime-BVkIrYLQ.js";
|
|
3
3
|
import { r as createNonExitingRuntime, t as createSubsystemLogger } from "./subsystem-DBPNbQDQ.js";
|
|
4
4
|
import { i as logVerbose, l as warn, p as getChildLogger, s as shouldLogVerbose, t as danger, w as resolvePreferredFasedAgentTmpDir } from "./globals-B_jjtAje.js";
|
|
5
5
|
import { s as resolveStateDir, u as resolveRequiredHomeDir } from "./paths-BEmvSyOV.js";
|
|
6
6
|
import { S as truncateUtf16Safe } from "./utils-CYk9EKoq.js";
|
|
7
|
-
import {
|
|
7
|
+
import { Kt as normalizeProviderId, Ln as withFileLock, Mt as resolveDiscordPreviewStreamMode, la as formatErrorMessage, n as loadConfig } from "./config-DrhYEiCM.js";
|
|
8
8
|
import { a as resolveAgentDir } from "./agent-scope-CCjfjKoO.js";
|
|
9
9
|
import { n as resolveAccountEntry } from "./account-helpers-Bdfws46K.js";
|
|
10
10
|
import { f as DEFAULT_ACCOUNT_ID, l as resolveAgentIdFromSessionKey, p as normalizeAccountId, u as resolveThreadSessionKeys } from "./session-key-HSJ2KQTc.js";
|
|
@@ -13,7 +13,7 @@ import { t as normalizeDiscordToken } from "./token-D4-H0ByG.js";
|
|
|
13
13
|
import "./accounts-CuqIKU8X.js";
|
|
14
14
|
import { n as logError, t as logDebug } from "./logger-BbFvCoKk.js";
|
|
15
15
|
import "./exec-DQ8j4Fm3.js";
|
|
16
|
-
import "./accounts-
|
|
16
|
+
import "./accounts-BJuN64m-.js";
|
|
17
17
|
import { a as resolveDiscordAllowListMatch, c as resolveDiscordMemberAccessState, d as resolveGroupDmAllow, f as shouldEmitDiscordReactionNotification, g as resolveTimestampMs, h as resolveDiscordSystemLocation, i as normalizeDiscordSlug, l as resolveDiscordOwnerAllowFrom, m as formatDiscordUserTag, n as isDiscordGroupAllowedByPolicy, o as resolveDiscordChannelConfigWithFallback, p as formatDiscordReactionEmoji, r as normalizeDiscordAllowList, s as resolveDiscordGuildEntry, t as allowListMatches, u as resolveDiscordShouldRequireMention } from "./allow-list-DyAxs4yw.js";
|
|
18
18
|
import { i as compileSafeRegex } from "./redact-Bm8vu_ju.js";
|
|
19
19
|
import "./github-copilot-token-CUK__1s1.js";
|
|
@@ -21,52 +21,52 @@ import "./retry-DstNBhDW.js";
|
|
|
21
21
|
import { l as resolveStorePath } from "./paths-CTZ2RS_E.js";
|
|
22
22
|
import "./ssrf-fG4UHKBw.js";
|
|
23
23
|
import "./fetch-guard-CeG6u6ld.js";
|
|
24
|
-
import "./send-
|
|
25
|
-
import { A as resolveDefaultGroupPolicy, M as warnMissingProviderGroupPolicyFallbackOnce, O as GROUP_POLICY_BLOCKED_LABEL, j as resolveOpenProviderRuntimeGroupPolicy } from "./helpers-
|
|
26
|
-
import "./wsl-
|
|
27
|
-
import { a as upsertChannelPairingRequest, o as readJsonFileWithFallback, s as writeJsonFileAtomically } from "./pairing-store-
|
|
28
|
-
import { c as resolveChunkMode, l as resolveTextChunkLimit } from "./chunk-
|
|
24
|
+
import "./send-KJy3ajA3.js";
|
|
25
|
+
import { A as resolveDefaultGroupPolicy, M as warnMissingProviderGroupPolicyFallbackOnce, O as GROUP_POLICY_BLOCKED_LABEL, j as resolveOpenProviderRuntimeGroupPolicy } from "./helpers-E9aafRzA.js";
|
|
26
|
+
import "./wsl-WGtdw_6h.js";
|
|
27
|
+
import { a as upsertChannelPairingRequest, o as readJsonFileWithFallback, s as writeJsonFileAtomically } from "./pairing-store-DwM-BNbj.js";
|
|
28
|
+
import { c as resolveChunkMode, l as resolveTextChunkLimit } from "./chunk-01oBnQjh.js";
|
|
29
29
|
import "./tailscale-status-DwpNdO3Z.js";
|
|
30
30
|
import { a as resolveAckReaction, c as resolveHumanDelayConfig, n as createReplyPrefixOptions } from "./reply-prefix-CeVw7Mn2.js";
|
|
31
31
|
import "./tokens-BbnqfVuu.js";
|
|
32
32
|
import "./pairing-token-Cs3BRKc0.js";
|
|
33
33
|
import "./diagnostic-DLL_zekv.js";
|
|
34
34
|
import "./diagnostic-session-state-DqgfGYqZ.js";
|
|
35
|
-
import "./optional-runtime-dependency-
|
|
36
|
-
import "./image-ops-
|
|
35
|
+
import "./optional-runtime-dependency-CKsJL1PD.js";
|
|
36
|
+
import "./image-ops-D2U9ctmu.js";
|
|
37
37
|
import "./memory-search-DTjIMw8J.js";
|
|
38
|
-
import "./manager-
|
|
38
|
+
import "./manager-ciNnAMBn.js";
|
|
39
39
|
import "./query-expansion-CAI2kKLQ.js";
|
|
40
|
-
import "./common-
|
|
41
|
-
import { C as isNativeCommandsExplicitlyDisabled, E as resolveNativeSkillsEnabled, T as resolveNativeCommandsEnabled, a as listChatCommands, c as listNativeCommandSpecsForConfig, d as parseCommandArgs, f as resolveCommandArgChoices, g as shouldHandleTextCommands, h as serializeCommandArgs, p as resolveCommandArgMenu, r as findCommandByNativeName, t as buildCommandTextFromArgs } from "./commands-registry-
|
|
42
|
-
import "./runtime-dependency-
|
|
40
|
+
import "./common-zHvdO8ly.js";
|
|
41
|
+
import { C as isNativeCommandsExplicitlyDisabled, E as resolveNativeSkillsEnabled, T as resolveNativeCommandsEnabled, a as listChatCommands, c as listNativeCommandSpecsForConfig, d as parseCommandArgs, f as resolveCommandArgChoices, g as shouldHandleTextCommands, h as serializeCommandArgs, p as resolveCommandArgMenu, r as findCommandByNativeName, t as buildCommandTextFromArgs } from "./commands-registry-ckg4fhYa.js";
|
|
42
|
+
import "./runtime-dependency-B2PqMdBu.js";
|
|
43
43
|
import "./path-alias-guards-DjgDArrp.js";
|
|
44
44
|
import "./fs-safe-g4g7GT02.js";
|
|
45
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
46
|
-
import { a as fetchRemoteMedia, n as loadWebMedia, u as getAgentScopedMediaLocalRoots } from "./media-
|
|
47
|
-
import "./send-
|
|
48
|
-
import { a as saveMediaBuffer } from "./outbound-attachment-
|
|
45
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-BKxbua_h.js";
|
|
46
|
+
import { a as fetchRemoteMedia, n as loadWebMedia, u as getAgentScopedMediaLocalRoots } from "./media-DUIZ6x9H.js";
|
|
47
|
+
import "./send-BGDGzxUu.js";
|
|
48
|
+
import { a as saveMediaBuffer } from "./outbound-attachment-DAF8huFz.js";
|
|
49
49
|
import { n as wrapFetchWithAbortSignal, t as resolveFetch } from "./fetch-BtmoPIlf.js";
|
|
50
|
-
import { N as formatThreadBindingDurationLabel, u as isRecentlyUnboundThreadWebhookMessage, z as getSessionBindingService } from "./thread-bindings.state-
|
|
51
|
-
import { n as listSkillCommandsForAgents } from "./skill-commands-
|
|
50
|
+
import { N as formatThreadBindingDurationLabel, u as isRecentlyUnboundThreadWebhookMessage, z as getSessionBindingService } from "./thread-bindings.state-BN6461WG.js";
|
|
51
|
+
import { n as listSkillCommandsForAgents } from "./skill-commands-CyIkcR8P.js";
|
|
52
52
|
import "./sandbox-paths-Dx2lUqCu.js";
|
|
53
53
|
import "./directory-live-CSuYxdwk.js";
|
|
54
|
-
import "./targets-
|
|
55
|
-
import "./pi-model-discovery-
|
|
56
|
-
import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-
|
|
54
|
+
import "./targets-BPket0SF.js";
|
|
55
|
+
import "./pi-model-discovery-DkIdlJvJ.js";
|
|
56
|
+
import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-D0eBYPtb.js";
|
|
57
57
|
import { t as finalizeInboundContext } from "./inbound-context-DrAcXE0y.js";
|
|
58
58
|
import "./render-e7fENCYH.js";
|
|
59
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
59
|
+
import { t as convertMarkdownTables } from "./tables-B2iehyjG.js";
|
|
60
60
|
import { n as recordChannelActivity } from "./channel-activity-DBDMQ3yI.js";
|
|
61
61
|
import { t as withTimeout } from "./with-timeout-ckWB8rTo.js";
|
|
62
62
|
import "./shared-CBgp_GBw.js";
|
|
63
|
-
import { C as editMessageDiscord, Q as stripUndefinedFields, a as removeReactionDiscord, b as sendWebhookMessageDiscord, c as formatDiscordComponentEventText, d as parseDiscordModalCustomId, f as parseDiscordModalCustomIdForCarbon, g as sendMessageDiscord, h as resolveDiscordModalEntry, l as parseDiscordComponentCustomId, m as resolveDiscordComponentEntry, r as reactMessageDiscord, rt as chunkDiscordTextWithMode, s as createDiscordFormModal, tt as createDiscordClient, u as parseDiscordComponentCustomIdForCarbon, y as sendVoiceMessageDiscord } from "./send-
|
|
64
|
-
import { t as createDiscordRetryRunner } from "./retry-policy-
|
|
65
|
-
import { o as createNoopThreadBindingManager, r as reconcileAcpThreadBindingsOnStartup, s as createThreadBindingManager } from "./thread-bindings.lifecycle-
|
|
63
|
+
import { C as editMessageDiscord, Q as stripUndefinedFields, a as removeReactionDiscord, b as sendWebhookMessageDiscord, c as formatDiscordComponentEventText, d as parseDiscordModalCustomId, f as parseDiscordModalCustomIdForCarbon, g as sendMessageDiscord, h as resolveDiscordModalEntry, l as parseDiscordComponentCustomId, m as resolveDiscordComponentEntry, r as reactMessageDiscord, rt as chunkDiscordTextWithMode, s as createDiscordFormModal, tt as createDiscordClient, u as parseDiscordComponentCustomIdForCarbon, y as sendVoiceMessageDiscord } from "./send-C3QWSYLR.js";
|
|
64
|
+
import { t as createDiscordRetryRunner } from "./retry-policy-HTrC4zfC.js";
|
|
65
|
+
import { o as createNoopThreadBindingManager, r as reconcileAcpThreadBindingsOnStartup, s as createThreadBindingManager } from "./thread-bindings.lifecycle-CYH69SIw.js";
|
|
66
66
|
import { a as setPresence, n as registerGateway, r as unregisterGateway } from "./gateway-registry-DZDsqicG.js";
|
|
67
67
|
import { t as createReplyReferencePlanner } from "./reply-reference-Bqk-7HXE.js";
|
|
68
68
|
import { i as createStatusReactionController, r as DEFAULT_TIMING, t as createFinalizableDraftLifecycle } from "./draft-stream-controls-BqchW1vi.js";
|
|
69
|
-
import { n as buildUntrustedChannelMetadata, t as chunkItems } from "./chunk-items-
|
|
69
|
+
import { n as buildUntrustedChannelMetadata, t as chunkItems } from "./chunk-items-D2zDJ8q8.js";
|
|
70
70
|
import { t as fetchDiscordApplicationId } from "./probe-BFroeK3g.js";
|
|
71
71
|
import { t as DiscordUiContainer } from "./ui-Be8cLHIS.js";
|
|
72
72
|
import "./guilds-CDhRIX57.js";
|
|
@@ -79,7 +79,7 @@ import { inspect } from "node:util";
|
|
|
79
79
|
import fs from "node:fs/promises";
|
|
80
80
|
import { randomUUID } from "node:crypto";
|
|
81
81
|
import { ProxyAgent, fetch as fetch$1 } from "undici";
|
|
82
|
-
import WebSocket
|
|
82
|
+
import WebSocket from "ws";
|
|
83
83
|
import { ApplicationCommandOptionType, ButtonStyle, ChannelType, Routes, StickerFormatType } from "discord-api-types/v10";
|
|
84
84
|
import { Button, ChannelSelectMenu, ChannelType as ChannelType$1, Client, Command, CommandWithSubcommands, Container, MentionableSelectMenu, MessageCreateListener, MessageReactionAddListener, MessageReactionRemoveListener, MessageType, Modal, PresenceUpdateListener, ReadyListener, RoleSelectMenu, Row, Separator, StringSelectMenu, TextDisplay, UserSelectMenu, serializePayload } from "@buape/carbon";
|
|
85
85
|
import { GatewayCloseCodes, GatewayIntents, GatewayPlugin } from "@buape/carbon/gateway";
|
|
@@ -1397,7 +1397,7 @@ async function preflightDiscordMessage(params) {
|
|
|
1397
1397
|
let preflightTranscript;
|
|
1398
1398
|
const hasAudioAttachment = message.attachments?.some((att) => att.contentType?.startsWith("audio/"));
|
|
1399
1399
|
if (!isDirectMessage && shouldRequireMention && hasAudioAttachment && !baseText && mentionRegexes.length > 0) try {
|
|
1400
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
1400
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-D7tCO0EH.js");
|
|
1401
1401
|
const audioPaths = message.attachments?.filter((att) => att.contentType?.startsWith("audio/")).map((att) => att.url) ?? [];
|
|
1402
1402
|
if (audioPaths.length > 0) preflightTranscript = await transcribeFirstAudio({
|
|
1403
1403
|
ctx: {
|
|
@@ -6879,7 +6879,7 @@ function createDiscordGatewayPlugin(params) {
|
|
|
6879
6879
|
return super.registerClient(client);
|
|
6880
6880
|
}
|
|
6881
6881
|
createWebSocket(url) {
|
|
6882
|
-
return new WebSocket
|
|
6882
|
+
return new WebSocket(url, { agent: wsAgent });
|
|
6883
6883
|
}
|
|
6884
6884
|
}
|
|
6885
6885
|
return new ProxyGatewayPlugin();
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { An as sendJson, At as DEFAULT_INPUT_MAX_REDIRECTS, Cr as emitAgentEvent, Dn as createDefaultDeps, Ft as resolveInputFileLimits, Mn as writeDone, Mt as extractFileContentFromSource, Nt as extractImageContentFromSource, On as resolveAgentIdForRequest, Ot as DEFAULT_INPUT_IMAGE_MAX_BYTES, Pt as normalizeMimeList, bn as agentCommand, jn as setSseHeaders, jt as DEFAULT_INPUT_TIMEOUT_MS, kn as resolveSessionKey, kt as DEFAULT_INPUT_IMAGE_MIMES, on as handleGatewayPostJsonEndpoint, sn as buildAgentMessageFromConversationEntries, wr as onAgentEvent, yn as resolveAssistantStreamDeltaText } from "./config-schema-
|
|
2
|
-
import "./runtime-
|
|
1
|
+
import { An as sendJson, At as DEFAULT_INPUT_MAX_REDIRECTS, Cr as emitAgentEvent, Dn as createDefaultDeps, Ft as resolveInputFileLimits, Mn as writeDone, Mt as extractFileContentFromSource, Nt as extractImageContentFromSource, On as resolveAgentIdForRequest, Ot as DEFAULT_INPUT_IMAGE_MAX_BYTES, Pt as normalizeMimeList, bn as agentCommand, jn as setSseHeaders, jt as DEFAULT_INPUT_TIMEOUT_MS, kn as resolveSessionKey, kt as DEFAULT_INPUT_IMAGE_MIMES, on as handleGatewayPostJsonEndpoint, sn as buildAgentMessageFromConversationEntries, wr as onAgentEvent, yn as resolveAssistantStreamDeltaText } from "./config-schema-BtjeV5Hm.js";
|
|
2
|
+
import "./runtime-BVkIrYLQ.js";
|
|
3
3
|
import { i as defaultRuntime } from "./subsystem-DBPNbQDQ.js";
|
|
4
4
|
import "./globals-B_jjtAje.js";
|
|
5
5
|
import "./paths-BEmvSyOV.js";
|
|
6
6
|
import "./utils-CYk9EKoq.js";
|
|
7
|
-
import "./config-
|
|
7
|
+
import "./config-DrhYEiCM.js";
|
|
8
8
|
import "./agent-scope-CCjfjKoO.js";
|
|
9
9
|
import "./accounts-RHZyaB73.js";
|
|
10
10
|
import "./accounts-CuqIKU8X.js";
|
|
11
11
|
import { i as logWarn } from "./logger-BbFvCoKk.js";
|
|
12
12
|
import "./exec-DQ8j4Fm3.js";
|
|
13
|
-
import "./accounts-
|
|
13
|
+
import "./accounts-BJuN64m-.js";
|
|
14
14
|
import "./allow-list-DyAxs4yw.js";
|
|
15
15
|
import "./redact-Bm8vu_ju.js";
|
|
16
16
|
import "./github-copilot-token-CUK__1s1.js";
|
|
@@ -18,41 +18,41 @@ import "./retry-DstNBhDW.js";
|
|
|
18
18
|
import "./paths-CTZ2RS_E.js";
|
|
19
19
|
import "./ssrf-fG4UHKBw.js";
|
|
20
20
|
import "./fetch-guard-CeG6u6ld.js";
|
|
21
|
-
import "./send-
|
|
22
|
-
import "./helpers-
|
|
23
|
-
import "./wsl-
|
|
24
|
-
import "./pairing-store-
|
|
25
|
-
import "./chunk-
|
|
21
|
+
import "./send-KJy3ajA3.js";
|
|
22
|
+
import "./helpers-E9aafRzA.js";
|
|
23
|
+
import "./wsl-WGtdw_6h.js";
|
|
24
|
+
import "./pairing-store-DwM-BNbj.js";
|
|
25
|
+
import "./chunk-01oBnQjh.js";
|
|
26
26
|
import "./tailscale-status-DwpNdO3Z.js";
|
|
27
27
|
import "./reply-prefix-CeVw7Mn2.js";
|
|
28
28
|
import "./tokens-BbnqfVuu.js";
|
|
29
29
|
import "./pairing-token-Cs3BRKc0.js";
|
|
30
30
|
import "./diagnostic-DLL_zekv.js";
|
|
31
31
|
import "./diagnostic-session-state-DqgfGYqZ.js";
|
|
32
|
-
import "./optional-runtime-dependency-
|
|
33
|
-
import "./image-ops-
|
|
32
|
+
import "./optional-runtime-dependency-CKsJL1PD.js";
|
|
33
|
+
import "./image-ops-D2U9ctmu.js";
|
|
34
34
|
import "./memory-search-DTjIMw8J.js";
|
|
35
|
-
import "./manager-
|
|
35
|
+
import "./manager-ciNnAMBn.js";
|
|
36
36
|
import "./query-expansion-CAI2kKLQ.js";
|
|
37
|
-
import "./common-
|
|
38
|
-
import "./commands-registry-
|
|
39
|
-
import "./runtime-dependency-
|
|
37
|
+
import "./common-zHvdO8ly.js";
|
|
38
|
+
import "./commands-registry-ckg4fhYa.js";
|
|
39
|
+
import "./runtime-dependency-B2PqMdBu.js";
|
|
40
40
|
import "./path-alias-guards-DjgDArrp.js";
|
|
41
41
|
import "./fs-safe-g4g7GT02.js";
|
|
42
|
-
import "./markdown-tables-
|
|
43
|
-
import "./media-
|
|
44
|
-
import "./send-
|
|
45
|
-
import "./outbound-attachment-
|
|
42
|
+
import "./markdown-tables-BKxbua_h.js";
|
|
43
|
+
import "./media-DUIZ6x9H.js";
|
|
44
|
+
import "./send-BGDGzxUu.js";
|
|
45
|
+
import "./outbound-attachment-DAF8huFz.js";
|
|
46
46
|
import "./fetch-BtmoPIlf.js";
|
|
47
|
-
import "./thread-bindings.state-
|
|
48
|
-
import "./skill-commands-
|
|
47
|
+
import "./thread-bindings.state-BN6461WG.js";
|
|
48
|
+
import "./skill-commands-CyIkcR8P.js";
|
|
49
49
|
import "./sandbox-paths-Dx2lUqCu.js";
|
|
50
50
|
import "./directory-live-CSuYxdwk.js";
|
|
51
|
-
import "./targets-
|
|
52
|
-
import "./pi-model-discovery-
|
|
53
|
-
import "./resolve-route-
|
|
51
|
+
import "./targets-BPket0SF.js";
|
|
52
|
+
import "./pi-model-discovery-DkIdlJvJ.js";
|
|
53
|
+
import "./resolve-route-D0eBYPtb.js";
|
|
54
54
|
import "./render-e7fENCYH.js";
|
|
55
|
-
import "./tables-
|
|
55
|
+
import "./tables-B2iehyjG.js";
|
|
56
56
|
import "./shared-CBgp_GBw.js";
|
|
57
57
|
import { randomUUID } from "node:crypto";
|
|
58
58
|
import { z } from "zod";
|
|
@@ -2,15 +2,15 @@ import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
|
2
2
|
import { t as createSubsystemLogger } from "./subsystem-DBPNbQDQ.js";
|
|
3
3
|
import { p as getChildLogger } from "./globals-B_jjtAje.js";
|
|
4
4
|
import { o as escapeRegExp, x as toWhatsappJid } from "./utils-CYk9EKoq.js";
|
|
5
|
-
import { n as loadConfig } from "./config-
|
|
5
|
+
import { n as loadConfig } from "./config-DrhYEiCM.js";
|
|
6
6
|
import { n as generateSecureUuid } from "./secure-random-BIkG-k4s.js";
|
|
7
7
|
import { t as redactIdentifier } from "./redact-identifier-Lt7t3l7S.js";
|
|
8
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
9
|
-
import { n as loadWebMedia } from "./media-
|
|
8
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-BKxbua_h.js";
|
|
9
|
+
import { n as loadWebMedia } from "./media-DUIZ6x9H.js";
|
|
10
10
|
import { n as normalizePollInput } from "./polls-DKQXVfJp.js";
|
|
11
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
12
|
-
import { n as requireActiveWebListener } from "./active-listener-
|
|
13
|
-
import { n as formatError } from "./session-
|
|
11
|
+
import { t as convertMarkdownTables } from "./tables-B2iehyjG.js";
|
|
12
|
+
import { n as requireActiveWebListener } from "./active-listener-B8Kuanet.js";
|
|
13
|
+
import { n as formatError } from "./session-BCIEFOu1.js";
|
|
14
14
|
|
|
15
15
|
//#region src/markdown/whatsapp.ts
|
|
16
16
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as resolveConfigDir } from "./utils-CYk9EKoq.js";
|
|
2
|
-
import { c as detectMime, l as extensionForMime } from "./image-ops-
|
|
3
|
-
import { n as loadWebMedia } from "./media-
|
|
2
|
+
import { c as detectMime, l as extensionForMime } from "./image-ops-D2U9ctmu.js";
|
|
3
|
+
import { n as loadWebMedia } from "./media-DUIZ6x9H.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { createWriteStream } from "node:fs";
|
|
6
6
|
import fs$1 from "node:fs/promises";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ct as listChannelPlugins, st as getChannelPlugin } from "./runtime-
|
|
1
|
+
import { ct as listChannelPlugins, st as getChannelPlugin } from "./runtime-BVkIrYLQ.js";
|
|
2
2
|
import { a as resolveOAuthDir, s as resolveStateDir, u as resolveRequiredHomeDir } from "./paths-BEmvSyOV.js";
|
|
3
3
|
import { g as safeParseJson } from "./utils-CYk9EKoq.js";
|
|
4
|
-
import {
|
|
4
|
+
import { Ln as withFileLock$1 } from "./config-DrhYEiCM.js";
|
|
5
5
|
import { f as DEFAULT_ACCOUNT_ID } from "./session-key-HSJ2KQTc.js";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import fs from "node:fs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { Kt as normalizeProviderId,
|
|
2
|
+
import { Kt as normalizeProviderId, Mn as ensureAuthProfileStore } from "./config-DrhYEiCM.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import * as PiCodingAgent from "@mariozechner/pi-coding-agent";
|
|
@@ -2,13 +2,13 @@ import "./subsystem-DBPNbQDQ.js";
|
|
|
2
2
|
import "./globals-B_jjtAje.js";
|
|
3
3
|
import "./paths-BEmvSyOV.js";
|
|
4
4
|
import "./utils-CYk9EKoq.js";
|
|
5
|
-
import "./config-
|
|
5
|
+
import "./config-DrhYEiCM.js";
|
|
6
6
|
import "./agent-scope-CCjfjKoO.js";
|
|
7
7
|
import "./logger-BbFvCoKk.js";
|
|
8
8
|
import "./exec-DQ8j4Fm3.js";
|
|
9
9
|
import "./redact-Bm8vu_ju.js";
|
|
10
10
|
import "./github-copilot-token-CUK__1s1.js";
|
|
11
11
|
import "./retry-DstNBhDW.js";
|
|
12
|
-
import { i as discoverModels, n as PiModelRegistryClass, r as discoverAuthStorage, t as PiAuthStorageClass } from "./pi-model-discovery-
|
|
12
|
+
import { i as discoverModels, n as PiModelRegistryClass, r as discoverAuthStorage, t as PiAuthStorageClass } from "./pi-model-discovery-DkIdlJvJ.js";
|
|
13
13
|
|
|
14
14
|
export { discoverAuthStorage, discoverModels };
|
|
@@ -2,7 +2,7 @@ import "./subsystem-DBPNbQDQ.js";
|
|
|
2
2
|
import { w as resolvePreferredFasedAgentTmpDir } from "./globals-B_jjtAje.js";
|
|
3
3
|
import "./paths-BEmvSyOV.js";
|
|
4
4
|
import "./utils-CYk9EKoq.js";
|
|
5
|
-
import {
|
|
5
|
+
import { ba as formatCliCommand, la as formatErrorMessage } from "./config-DrhYEiCM.js";
|
|
6
6
|
import "./agent-scope-CCjfjKoO.js";
|
|
7
7
|
import "./logger-BbFvCoKk.js";
|
|
8
8
|
import "./exec-DQ8j4Fm3.js";
|
|
@@ -10,8 +10,8 @@ import "./redact-Bm8vu_ju.js";
|
|
|
10
10
|
import "./github-copilot-token-CUK__1s1.js";
|
|
11
11
|
import "./retry-DstNBhDW.js";
|
|
12
12
|
import "./ssrf-fG4UHKBw.js";
|
|
13
|
-
import "./optional-runtime-dependency-
|
|
14
|
-
import { A as fetchJson, C as normalizeCdpWsUrl, D as assertBrowserNavigationResultAllowed, E as assertBrowserNavigationAllowed, M as getHeadersWithAuth, N as withCdpSocket, O as withBrowserNavigationPolicy, S as formatAriaSnapshot, c as resolveStrictExistingPathsWithinRoot, f as getChromeWebSocketUrl, k as appendCdpPath, n as loadPlaywrightCore, o as DEFAULT_UPLOAD_DIR, u as DEFAULT_FILL_FIELD_TYPE } from "./runtime-dependency-
|
|
13
|
+
import "./optional-runtime-dependency-CKsJL1PD.js";
|
|
14
|
+
import { A as fetchJson, C as normalizeCdpWsUrl, D as assertBrowserNavigationResultAllowed, E as assertBrowserNavigationAllowed, M as getHeadersWithAuth, N as withCdpSocket, O as withBrowserNavigationPolicy, S as formatAriaSnapshot, c as resolveStrictExistingPathsWithinRoot, f as getChromeWebSocketUrl, k as appendCdpPath, n as loadPlaywrightCore, o as DEFAULT_UPLOAD_DIR, u as DEFAULT_FILL_FIELD_TYPE } from "./runtime-dependency-B2PqMdBu.js";
|
|
15
15
|
import "./path-alias-guards-DjgDArrp.js";
|
|
16
16
|
import "./fs-safe-g4g7GT02.js";
|
|
17
17
|
import path from "node:path";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { i as chunkMarkdownTextWithMode } from "./chunk-
|
|
2
|
+
import { i as chunkMarkdownTextWithMode } from "./chunk-01oBnQjh.js";
|
|
3
3
|
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-BbnqfVuu.js";
|
|
4
|
-
import { r as markdownToSlackMrkdwnChunks, t as sendMessageSlack } from "./send-
|
|
4
|
+
import { r as markdownToSlackMrkdwnChunks, t as sendMessageSlack } from "./send-DgzZUx2i.js";
|
|
5
5
|
import { t as createReplyReferencePlanner } from "./reply-reference-Bqk-7HXE.js";
|
|
6
6
|
|
|
7
7
|
//#region src/slack/monitor/replies.ts
|
package/dist/plugin-sdk/{resolve-outbound-target-B68fSoGi.js → resolve-outbound-target-bc-FpPZg.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { It as isWhatsAppGroupJid, Lt as normalizeWhatsAppTarget } from "./runtime-
|
|
1
|
+
import { It as isWhatsAppGroupJid, Lt as normalizeWhatsAppTarget } from "./runtime-BVkIrYLQ.js";
|
|
2
2
|
import { n as missingTargetError } from "./target-errors-Ckufe179.js";
|
|
3
3
|
|
|
4
4
|
//#region src/whatsapp/resolve-outbound-target.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { sn as listBindings } from "./runtime-
|
|
2
|
+
import { sn as listBindings } from "./runtime-BVkIrYLQ.js";
|
|
3
3
|
import { s as shouldLogVerbose } from "./globals-B_jjtAje.js";
|
|
4
4
|
import { u as resolveDefaultAgentId } from "./agent-scope-CCjfjKoO.js";
|
|
5
5
|
import { t as normalizeChatType } from "./chat-type-C0osVllE.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as createSubsystemLogger } from "./subsystem-DBPNbQDQ.js";
|
|
2
|
-
import {
|
|
2
|
+
import { la as formatErrorMessage } from "./config-DrhYEiCM.js";
|
|
3
3
|
import { n as retryAsync, t as resolveRetryConfig } from "./retry-DstNBhDW.js";
|
|
4
4
|
|
|
5
5
|
//#region src/infra/retry-policy.ts
|
|
@@ -3,7 +3,7 @@ import { c as CHANNEL_IDS, d as normalizeChannelKey, f as normalizeChatChannelId
|
|
|
3
3
|
import { i as logVerbose } from "./globals-B_jjtAje.js";
|
|
4
4
|
import { s as resolveStateDir, u as resolveRequiredHomeDir } from "./paths-BEmvSyOV.js";
|
|
5
5
|
import { c as isRecord$1, d as normalizeE164, h as resolveUserPath, o as escapeRegExp } from "./utils-CYk9EKoq.js";
|
|
6
|
-
import {
|
|
6
|
+
import { Ea as normalizePluginsConfig, Fn as resolveFasedAgentDir, G as isAvatarDataUrl, H as parseDurationMs, Ht as inferUniqueProviderFromConfiguredModels, Jt as resolveConfiguredModelRef, K as isAvatarHttpUrl, Kt as normalizeProviderId, Rn as resolveProcessScopedMap, Sa as isTruthyEnvValue, Ta as isPluginRuntimeSessionReadAllowed, U as parseByteSize, W as AVATAR_MAX_BYTES, X as resolveAvatarMime, Xt as resolveExplicitConfiguredModelRef, Y as isWorkspaceRelativeAvatarPath, Yt as resolveDefaultModelForAgent, ea as DEFAULT_CONTEXT_TOKENS, in as resolveImplicitProviders, ka as resolvePluginAdminRpcActionGrant, n as loadConfig, na as DEFAULT_PROVIDER, nn as normalizeProviders, q as isPathWithinRoot, qt as parseModelRef, rn as resolveImplicitCopilotProvider, ta as DEFAULT_MODEL, zn as isPidAlive } from "./config-DrhYEiCM.js";
|
|
7
7
|
import { G as normalizeAtHashSlug, K as normalizeHyphenSlug, j as openBoundaryFileSync, l as resolveAgentWorkspaceDir, u as resolveDefaultAgentId } from "./agent-scope-CCjfjKoO.js";
|
|
8
8
|
import { t as normalizeChatType } from "./chat-type-C0osVllE.js";
|
|
9
9
|
import { n as resolveConversationLabel } from "./conversation-label-BoVqak2R.js";
|
|
@@ -11,7 +11,7 @@ import { n as resolveAccountEntry, t as createAccountListHelpers } from "./accou
|
|
|
11
11
|
import { S as parseAgentSessionKey, c as normalizeMainKey, f as DEFAULT_ACCOUNT_ID, l as resolveAgentIdFromSessionKey, m as normalizeOptionalAccountId, p as normalizeAccountId$1, r as buildAgentMainSessionKey, s as normalizeAgentId, t as DEFAULT_AGENT_ID, y as isCronRunSessionKey } from "./session-key-HSJ2KQTc.js";
|
|
12
12
|
import { a as resolveDiscordAccount, o as createAccountActionGate } from "./accounts-RHZyaB73.js";
|
|
13
13
|
import { a as resolveSlackReplyToMode, i as resolveSlackAccount } from "./accounts-CuqIKU8X.js";
|
|
14
|
-
import { i as resolveWhatsAppAccount } from "./accounts-
|
|
14
|
+
import { i as resolveWhatsAppAccount } from "./accounts-BJuN64m-.js";
|
|
15
15
|
import { a as resolveSessionTranscriptPath, c as resolveSessionTranscriptsDirForAgent, i as resolveSessionFilePathOptions, l as resolveStorePath, n as resolveDefaultSessionStorePath, o as resolveSessionTranscriptPathInDir, r as resolveSessionFilePath, s as resolveSessionTranscriptsDir, t as SAFE_SESSION_ID_RE, u as validateSessionId } from "./paths-CTZ2RS_E.js";
|
|
16
16
|
import { t as emitSessionTranscriptUpdate } from "./transcript-events-BJQWUdmU.js";
|
|
17
17
|
import path from "node:path";
|
|
@@ -5411,7 +5411,7 @@ async function loadContextCache() {
|
|
|
5411
5411
|
await ensureFasedModelsJson(cfg);
|
|
5412
5412
|
} catch {}
|
|
5413
5413
|
try {
|
|
5414
|
-
const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-runtime-
|
|
5414
|
+
const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-runtime-Cv7okUMt.js");
|
|
5415
5415
|
const agentDir = resolveFasedAgentDir();
|
|
5416
5416
|
const modelRegistry = discoverModels(discoverAuthStorage(agentDir), agentDir);
|
|
5417
5417
|
applyDiscoveredContextWindows({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as createSubsystemLogger } from "./subsystem-DBPNbQDQ.js";
|
|
2
2
|
import { w as resolvePreferredFasedAgentTmpDir } from "./globals-B_jjtAje.js";
|
|
3
3
|
import { t as CONFIG_DIR } from "./utils-CYk9EKoq.js";
|
|
4
|
-
import {
|
|
4
|
+
import { da as isErrno, n as loadConfig } from "./config-DrhYEiCM.js";
|
|
5
5
|
import { I as isNotFoundPathError, L as isPathInside } from "./agent-scope-CCjfjKoO.js";
|
|
6
6
|
import { d as normalizeIpAddress, l as isIpInCidr, s as resolvePinnedHostnameWithPolicy, u as isLoopbackIpAddress } from "./ssrf-fG4UHKBw.js";
|
|
7
|
-
import { t as importOptionalRuntimeDependency } from "./optional-runtime-dependency-
|
|
7
|
+
import { t as importOptionalRuntimeDependency } from "./optional-runtime-dependency-CKsJL1PD.js";
|
|
8
8
|
import { n as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-g4g7GT02.js";
|
|
9
9
|
import path from "node:path";
|
|
10
10
|
import fs from "node:fs";
|
|
@@ -13,7 +13,7 @@ import fs$1 from "node:fs/promises";
|
|
|
13
13
|
import { execFileSync, spawn } from "node:child_process";
|
|
14
14
|
import { createHmac } from "node:crypto";
|
|
15
15
|
import { createServer } from "node:http";
|
|
16
|
-
import WebSocket
|
|
16
|
+
import WebSocket, { WebSocketServer } from "ws";
|
|
17
17
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
18
18
|
import net from "node:net";
|
|
19
19
|
|
|
@@ -275,7 +275,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
275
275
|
let extensionWs = null;
|
|
276
276
|
const cdpClients = /* @__PURE__ */ new Set();
|
|
277
277
|
const connectedTargets = /* @__PURE__ */ new Map();
|
|
278
|
-
const extensionConnected = () => extensionWs?.readyState === WebSocket
|
|
278
|
+
const extensionConnected = () => extensionWs?.readyState === WebSocket.OPEN;
|
|
279
279
|
let extensionDisconnectCleanupTimer = null;
|
|
280
280
|
const extensionReconnectWaiters = /* @__PURE__ */ new Set();
|
|
281
281
|
const flushExtensionReconnectWaiters = (connected) => {
|
|
@@ -326,7 +326,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
326
326
|
let nextExtensionId = 1;
|
|
327
327
|
const sendToExtension = async (payload) => {
|
|
328
328
|
const ws = extensionWs;
|
|
329
|
-
if (!ws || ws.readyState !== WebSocket
|
|
329
|
+
if (!ws || ws.readyState !== WebSocket.OPEN) throw new Error("Chrome extension not connected");
|
|
330
330
|
ws.send(JSON.stringify(payload));
|
|
331
331
|
return await new Promise((resolve, reject) => {
|
|
332
332
|
const timer = setTimeout(() => {
|
|
@@ -343,12 +343,12 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
343
343
|
const broadcastToCdpClients = (evt) => {
|
|
344
344
|
const msg = JSON.stringify(evt);
|
|
345
345
|
for (const ws of cdpClients) {
|
|
346
|
-
if (ws.readyState !== WebSocket
|
|
346
|
+
if (ws.readyState !== WebSocket.OPEN) continue;
|
|
347
347
|
ws.send(msg);
|
|
348
348
|
}
|
|
349
349
|
};
|
|
350
350
|
const sendResponseToCdp = (ws, res) => {
|
|
351
|
-
if (ws.readyState !== WebSocket
|
|
351
|
+
if (ws.readyState !== WebSocket.OPEN) return;
|
|
352
352
|
ws.send(JSON.stringify(res));
|
|
353
353
|
};
|
|
354
354
|
const ensureTargetEventsForClient = (ws, mode) => {
|
|
@@ -558,7 +558,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
558
558
|
rejectUpgrade(socket, 401, "Unauthorized");
|
|
559
559
|
return;
|
|
560
560
|
}
|
|
561
|
-
if (extensionWs && extensionWs.readyState !== WebSocket
|
|
561
|
+
if (extensionWs && extensionWs.readyState !== WebSocket.OPEN) {
|
|
562
562
|
try {
|
|
563
563
|
extensionWs.terminate();
|
|
564
564
|
} catch {}
|
|
@@ -595,7 +595,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
595
595
|
clearExtensionDisconnectCleanupTimer();
|
|
596
596
|
flushExtensionReconnectWaiters(true);
|
|
597
597
|
const ping = setInterval(() => {
|
|
598
|
-
if (ws.readyState !== WebSocket
|
|
598
|
+
if (ws.readyState !== WebSocket.OPEN) return;
|
|
599
599
|
ws.send(JSON.stringify({ method: "ping" }));
|
|
600
600
|
}, 5e3);
|
|
601
601
|
ws.on("message", (data) => {
|
|
@@ -937,7 +937,7 @@ async function fetchOk(url, timeoutMs = 1500, init) {
|
|
|
937
937
|
}
|
|
938
938
|
async function withCdpSocket(wsUrl, fn, opts) {
|
|
939
939
|
const headers = getHeadersWithAuth(wsUrl, opts?.headers ?? {});
|
|
940
|
-
const ws = new WebSocket
|
|
940
|
+
const ws = new WebSocket(wsUrl, {
|
|
941
941
|
handshakeTimeout: typeof opts?.handshakeTimeoutMs === "number" && Number.isFinite(opts.handshakeTimeoutMs) ? Math.max(1, Math.floor(opts.handshakeTimeoutMs)) : 5e3,
|
|
942
942
|
...Object.keys(headers).length ? { headers } : {}
|
|
943
943
|
});
|
|
@@ -1863,7 +1863,7 @@ async function getChromeWebSocketUrl(cdpUrl, timeoutMs = 500) {
|
|
|
1863
1863
|
async function canOpenWebSocket(wsUrl, timeoutMs = 800) {
|
|
1864
1864
|
return await new Promise((resolve) => {
|
|
1865
1865
|
const headers = getHeadersWithAuth(wsUrl);
|
|
1866
|
-
const ws = new WebSocket
|
|
1866
|
+
const ws = new WebSocket(wsUrl, {
|
|
1867
1867
|
handshakeTimeout: timeoutMs,
|
|
1868
1868
|
...Object.keys(headers).length ? { headers } : {}
|
|
1869
1869
|
});
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { $n as enforceWalletCustodyForAutonomousSend, Ar as loadOrCreateDeviceIdentity, Er as callGatewayScoped, Kn as readWalletStatusSnapshot, Mr as signDevicePayload, Nr as verifyDeviceSignature, Or as ErrorCodes, Sr as tryResolveSatRuntimeIds, _r as SAT_RUNTIME_DEFAULTS, ar as readWalletProviderRegistry, br as resolveSatMintProgramIdFromEnv, cr as callLocalSocketSigner, dr as resolveLocalSignerSocketPath, er as createWalletProviderAdapter, fr as resolveWalletRuntimeConfig, gr as syncSatMainnetRuntimeIds, hr as getSatMainnetSyncStatus, ir as resolveWalletRolePolicyProfile, j as resolveModel, jr as publicKeyRawBase64UrlFromPem, kr as errorShape, lr as probeLocalSocketSignerHealth, mr as buildAttestation, nr as loadWalletProviderSecret, or as resolveWalletUserRole, pr as fetchSolanaWalletAssetsViaRpc, qn as createOrExecuteWalletSend, rr as resolveWalletPolicyConfig, sr as upsertNamedWallet, tr as resolveWalletProviderId, ur as requireLocalSocketSignerPath, vr as resolveSatBondProgramIdFromEnv, xr as resolveSatProgramIdFromEnv, yr as resolveSatMintAddressFromEnv } from "./config-schema-
|
|
2
|
-
import "./runtime-
|
|
1
|
+
import { $n as enforceWalletCustodyForAutonomousSend, Ar as loadOrCreateDeviceIdentity, Er as callGatewayScoped, Kn as readWalletStatusSnapshot, Mr as signDevicePayload, Nr as verifyDeviceSignature, Or as ErrorCodes, Sr as tryResolveSatRuntimeIds, _r as SAT_RUNTIME_DEFAULTS, ar as readWalletProviderRegistry, br as resolveSatMintProgramIdFromEnv, cr as callLocalSocketSigner, dr as resolveLocalSignerSocketPath, er as createWalletProviderAdapter, fr as resolveWalletRuntimeConfig, gr as syncSatMainnetRuntimeIds, hr as getSatMainnetSyncStatus, ir as resolveWalletRolePolicyProfile, j as resolveModel, jr as publicKeyRawBase64UrlFromPem, kr as errorShape, lr as probeLocalSocketSignerHealth, mr as buildAttestation, nr as loadWalletProviderSecret, or as resolveWalletUserRole, pr as fetchSolanaWalletAssetsViaRpc, qn as createOrExecuteWalletSend, rr as resolveWalletPolicyConfig, sr as upsertNamedWallet, tr as resolveWalletProviderId, ur as requireLocalSocketSignerPath, vr as resolveSatBondProgramIdFromEnv, xr as resolveSatProgramIdFromEnv, yr as resolveSatMintAddressFromEnv } from "./config-schema-BtjeV5Hm.js";
|
|
2
|
+
import "./runtime-BVkIrYLQ.js";
|
|
3
3
|
import { t as createSubsystemLogger } from "./subsystem-DBPNbQDQ.js";
|
|
4
4
|
import { w as resolvePreferredFasedAgentTmpDir } from "./globals-B_jjtAje.js";
|
|
5
5
|
import { i as resolveGatewayPort } from "./paths-BEmvSyOV.js";
|
|
6
6
|
import "./utils-CYk9EKoq.js";
|
|
7
|
-
import { Bt as buildModelAliasIndex, Jt as resolveConfiguredModelRef, Yt as resolveDefaultModelForAgent, Zt as resolveModelRefFromString, an as getApiKeyForModel, n as loadConfig,
|
|
7
|
+
import { Bt as buildModelAliasIndex, Jt as resolveConfiguredModelRef, Yt as resolveDefaultModelForAgent, Zt as resolveModelRefFromString, an as getApiKeyForModel, n as loadConfig, na as DEFAULT_PROVIDER, sn as requireApiKey } from "./config-DrhYEiCM.js";
|
|
8
8
|
import { a as resolveAgentDir, i as resolveAgentConfig, o as resolveAgentEffectiveModelPrimary, u as resolveDefaultAgentId } from "./agent-scope-CCjfjKoO.js";
|
|
9
9
|
import "./accounts-RHZyaB73.js";
|
|
10
10
|
import "./accounts-CuqIKU8X.js";
|
|
11
11
|
import "./logger-BbFvCoKk.js";
|
|
12
12
|
import "./exec-DQ8j4Fm3.js";
|
|
13
|
-
import "./accounts-
|
|
13
|
+
import "./accounts-BJuN64m-.js";
|
|
14
14
|
import "./allow-list-DyAxs4yw.js";
|
|
15
15
|
import "./redact-Bm8vu_ju.js";
|
|
16
16
|
import "./github-copilot-token-CUK__1s1.js";
|
|
@@ -18,41 +18,41 @@ import "./retry-DstNBhDW.js";
|
|
|
18
18
|
import "./paths-CTZ2RS_E.js";
|
|
19
19
|
import "./ssrf-fG4UHKBw.js";
|
|
20
20
|
import "./fetch-guard-CeG6u6ld.js";
|
|
21
|
-
import "./send-
|
|
22
|
-
import "./helpers-
|
|
23
|
-
import "./wsl-
|
|
24
|
-
import "./pairing-store-
|
|
25
|
-
import "./chunk-
|
|
21
|
+
import "./send-KJy3ajA3.js";
|
|
22
|
+
import "./helpers-E9aafRzA.js";
|
|
23
|
+
import "./wsl-WGtdw_6h.js";
|
|
24
|
+
import "./pairing-store-DwM-BNbj.js";
|
|
25
|
+
import "./chunk-01oBnQjh.js";
|
|
26
26
|
import "./tailscale-status-DwpNdO3Z.js";
|
|
27
27
|
import "./reply-prefix-CeVw7Mn2.js";
|
|
28
28
|
import "./tokens-BbnqfVuu.js";
|
|
29
29
|
import "./pairing-token-Cs3BRKc0.js";
|
|
30
30
|
import "./diagnostic-DLL_zekv.js";
|
|
31
31
|
import "./diagnostic-session-state-DqgfGYqZ.js";
|
|
32
|
-
import "./optional-runtime-dependency-
|
|
33
|
-
import "./image-ops-
|
|
32
|
+
import "./optional-runtime-dependency-CKsJL1PD.js";
|
|
33
|
+
import "./image-ops-D2U9ctmu.js";
|
|
34
34
|
import "./memory-search-DTjIMw8J.js";
|
|
35
|
-
import "./manager-
|
|
35
|
+
import "./manager-ciNnAMBn.js";
|
|
36
36
|
import "./query-expansion-CAI2kKLQ.js";
|
|
37
|
-
import "./common-
|
|
38
|
-
import "./commands-registry-
|
|
39
|
-
import "./runtime-dependency-
|
|
37
|
+
import "./common-zHvdO8ly.js";
|
|
38
|
+
import "./commands-registry-ckg4fhYa.js";
|
|
39
|
+
import "./runtime-dependency-B2PqMdBu.js";
|
|
40
40
|
import "./path-alias-guards-DjgDArrp.js";
|
|
41
41
|
import "./fs-safe-g4g7GT02.js";
|
|
42
|
-
import "./markdown-tables-
|
|
43
|
-
import "./media-
|
|
44
|
-
import "./send-
|
|
45
|
-
import "./outbound-attachment-
|
|
42
|
+
import "./markdown-tables-BKxbua_h.js";
|
|
43
|
+
import "./media-DUIZ6x9H.js";
|
|
44
|
+
import "./send-BGDGzxUu.js";
|
|
45
|
+
import "./outbound-attachment-DAF8huFz.js";
|
|
46
46
|
import "./fetch-BtmoPIlf.js";
|
|
47
|
-
import "./thread-bindings.state-
|
|
48
|
-
import "./skill-commands-
|
|
47
|
+
import "./thread-bindings.state-BN6461WG.js";
|
|
48
|
+
import "./skill-commands-CyIkcR8P.js";
|
|
49
49
|
import "./sandbox-paths-Dx2lUqCu.js";
|
|
50
50
|
import "./directory-live-CSuYxdwk.js";
|
|
51
|
-
import "./targets-
|
|
52
|
-
import "./pi-model-discovery-
|
|
53
|
-
import "./resolve-route-
|
|
51
|
+
import "./targets-BPket0SF.js";
|
|
52
|
+
import "./pi-model-discovery-DkIdlJvJ.js";
|
|
53
|
+
import "./resolve-route-D0eBYPtb.js";
|
|
54
54
|
import "./render-e7fENCYH.js";
|
|
55
|
-
import "./tables-
|
|
55
|
+
import "./tables-B2iehyjG.js";
|
|
56
56
|
import "./shared-CBgp_GBw.js";
|
|
57
57
|
|
|
58
58
|
//#region src/plugin-sdk/sat-runtime.ts
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { fn as resolveSignalAccount } from "./runtime-
|
|
3
|
-
import { n as loadConfig } from "./config-
|
|
2
|
+
import { fn as resolveSignalAccount } from "./runtime-BVkIrYLQ.js";
|
|
3
|
+
import { n as loadConfig } from "./config-DrhYEiCM.js";
|
|
4
4
|
import { n as fetchWithTimeout } from "./fetch-timeout-l_6RdoMw.js";
|
|
5
5
|
import { n as generateSecureUuid } from "./secure-random-BIkG-k4s.js";
|
|
6
|
-
import { v as mediaKindFromMime } from "./image-ops-
|
|
7
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
8
|
-
import { c as markdownToIR, s as chunkMarkdownIR } from "./media-
|
|
9
|
-
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-
|
|
6
|
+
import { v as mediaKindFromMime } from "./image-ops-D2U9ctmu.js";
|
|
7
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-BKxbua_h.js";
|
|
8
|
+
import { c as markdownToIR, s as chunkMarkdownIR } from "./media-DUIZ6x9H.js";
|
|
9
|
+
import { t as resolveOutboundAttachmentFromUrl } from "./outbound-attachment-DAF8huFz.js";
|
|
10
10
|
import { t as resolveFetch } from "./fetch-BtmoPIlf.js";
|
|
11
11
|
|
|
12
12
|
//#region src/signal/format.ts
|